gf-components 0.1.28 → 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 +152 -112
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +24407 -15482
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/index.d.ts +7 -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 $=require("react"),
|
|
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 n(){for(var
|
|
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 vv;function _S(){return vv||(vv=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"),a=Symbol.for("react.profiler"),i=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"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),p=!1,g=!1,v=!1,x=!1,b=!1,y;y=Symbol.for("react.module.reference");function S(B){return!!(typeof B=="string"||typeof B=="function"||B===n||B===a||b||B===r||B===c||B===u||x||B===m||p||g||v||typeof B=="object"&&B!==null&&(B.$$typeof===h||B.$$typeof===d||B.$$typeof===i||B.$$typeof===o||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function C(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case e:var le=B.type;switch(le){case n:case a:case r:case c:case u:return le;default:var be=le&&le.$$typeof;switch(be){case s:case o:case l:case h:case d:case i:return be;default:return ue}}case t:return ue}}}var _=o,R=i,E=e,O=l,k=n,N=h,z=d,F=t,j=a,I=r,T=c,w=u,P=!1,A=!1;function M(B){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(B){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return C(B)===o}function W(B){return C(B)===i}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function X(B){return C(B)===l}function Q(B){return C(B)===n}function Z(B){return C(B)===h}function J(B){return C(B)===d}function G(B){return C(B)===t}function ee(B){return C(B)===a}function ae(B){return C(B)===r}function V(B){return C(B)===c}function ce(B){return C(B)===u}wt.ContextConsumer=_,wt.ContextProvider=R,wt.Element=E,wt.ForwardRef=O,wt.Fragment=k,wt.Lazy=N,wt.Memo=z,wt.Portal=F,wt.Profiler=j,wt.StrictMode=I,wt.Suspense=T,wt.SuspenseList=w,wt.isAsyncMode=M,wt.isConcurrentMode=L,wt.isContextConsumer=K,wt.isContextProvider=W,wt.isElement=q,wt.isForwardRef=X,wt.isFragment=Q,wt.isLazy=Z,wt.isMemo=J,wt.isPortal=G,wt.isProfiler=ee,wt.isStrictMode=ae,wt.isSuspense=V,wt.isSuspenseList=ce,wt.isValidElementType=S,wt.typeOf=C}()),wt}process.env.NODE_ENV==="production"?Yu.exports=wS():Yu.exports=_S();var Xi=Yu.exports;function tr(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(tr(r)):Xi.isFragment(r)&&r.props?n=n.concat(tr(r.props.children,t)):n.push(r))}),n}var Xu={},Mf=[],$S=function(t){Mf.push(t)};function Ga(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Mf.reduce(function(r,a){return a(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function ES(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Mf.reduce(function(r,a){return a(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function w0(){Xu={}}function _0(e,t,n){!t&&!Xu[n]&&(e(!1,n),Xu[n]=!0)}function xt(e,t){_0(Ga,e,t)}function OS(e,t){_0(ES,e,t)}xt.preMessage=$S;xt.resetWarned=w0;xt.noteOnce=OS;function ke(e){"@babel/helpers - typeof";return ke=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},ke(e)}function TS(e,t){if(ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $0(e){var t=TS(e,"string");return ke(t)=="symbol"?t:t+""}function U(e,t,n){return(t=$0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pv(Object(n),!0).forEach(function(r){U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function io(e){return e instanceof HTMLElement||e instanceof SVGElement}function RS(e){return e&&ke(e)==="object"&&io(e.nativeElement)?e.nativeElement:io(e)?e:null}function Ps(e){var t=RS(e);if(t)return t;if(e instanceof $.Component){var n;return(n=na.findDOMNode)===null||n===void 0?void 0:n.call(na,e)}return null}function wl(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var If=function(t,n){typeof t=="function"?t(n):ke(t)==="object"&&t&&"current"in t&&(t.current=n)},Un=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(i){n.forEach(function(o){If(o,i)})}},No=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wl(function(){return Un.apply(void 0,n)},n,function(a,i){return a.length!==i.length||a.every(function(o,s){return o!==i[s]})})},ua=function(t){var n,r,a=Xi.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Xi.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Xi.ForwardRef)};function gv(e){return $.isValidElement(e)&&!Xi.isFragment(e)}Number($.version.split(".")[0])>=19;var Qu=f.createContext(null);function PS(e){var t=e.children,n=e.onBatchResize,r=f.useRef(0),a=f.useRef([]),i=f.useContext(Qu),o=f.useCallback(function(s,l,c){r.current+=1;var u=r.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(a.current),a.current=[])}),i==null||i(s,l,c)},[n,i]);return f.createElement(Qu.Provider,{value:o},t)}var E0=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,i){return a[0]===n?(r=i,!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),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,i=this.__entries__;a<i.length;a++){var o=i[a];n.call(r,o[1],o[0])}},t}()}(),Zu=typeof window<"u"&&typeof document<"u"&&window.document===document,Ws=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")()}(),MS=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ws):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),IS=2;function NS(e,t){var n=!1,r=!1,a=0;function i(){n&&(n=!1,e()),r&&s()}function o(){MS(i)}function s(){var l=Date.now();if(n){if(l-a<IS)return;r=!0}else n=!0,r=!1,setTimeout(o,t);a=l}return s}var AS=20,jS=["top","right","bottom","left","width","height","size","weight"],kS=typeof MutationObserver<"u",FS=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=NS(this.refresh.bind(this),AS)}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(){!Zu||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kS?(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(){!Zu||!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,a=jS.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),O0=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Ka=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ws},T0=_l(0,0,0,0);function Us(e){return parseFloat(e)||0}function mv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var i=e["border-"+a+"-width"];return r+Us(i)},0)}function LS(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var i=a[r],o=e["padding-"+i];n[i]=Us(o)}return n}function DS(e){var t=e.getBBox();return _l(0,0,t.width,t.height)}function zS(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return T0;var r=Ka(e).getComputedStyle(e),a=LS(r),i=a.left+a.right,o=a.top+a.bottom,s=Us(r.width),l=Us(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=mv(r,"left","right")+i),Math.round(l+o)!==n&&(l-=mv(r,"top","bottom")+o)),!VS(e)){var c=Math.round(s+i)-t,u=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return _l(a.left,a.top,s,l)}var BS=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ka(e).SVGGraphicsElement}:function(e){return e instanceof Ka(e).SVGElement&&typeof e.getBBox=="function"}}();function VS(e){return e===Ka(e).document.documentElement}function HS(e){return Zu?BS(e)?DS(e):zS(e):T0}function WS(e){var t=e.x,n=e.y,r=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return O0(o,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),o}function _l(e,t,n,r){return{x:e,y:t,width:n,height:r}}var US=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_l(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=HS(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}(),qS=function(){function e(t,n){var r=WS(n);O0(this,{target:t,contentRect:r})}return e}(),GS=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new E0,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 Ka(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new US(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 Ka(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 qS(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}(),R0=typeof WeakMap<"u"?new WeakMap:new E0,P0=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=FS.getInstance(),r=new GS(t,n,this);R0.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){P0.prototype[e]=function(){var t;return(t=R0.get(this))[e].apply(t,arguments)}});var KS=function(){return typeof Ws.ResizeObserver<"u"?Ws.ResizeObserver:P0}(),pr=new Map;function M0(e){e.forEach(function(t){var n,r=t.target;(n=pr.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var I0=new KS(M0);process.env.NODE_ENV;process.env.NODE_ENV;function YS(e,t){pr.has(e)||(pr.set(e,new Set),I0.observe(e)),pr.get(e).add(t)}function XS(e,t){pr.has(e)&&(pr.get(e).delete(t),pr.get(e).size||(I0.unobserve(e),pr.delete(e)))}function Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bv(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,$0(r.key),r)}}function en(e,t,n){return t&&bv(e.prototype,t),n&&bv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oo(e,t)}function Dr(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&&oo(e,t)}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},so(e)}function Nf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nf=function(){return!!e})()}function tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QS(e,t){if(t&&(ke(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}function zr(e){var t=Nf();return function(){var n,r=so(e);if(t){var a=so(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return QS(this,n)}}var ZS=function(e){Dr(n,e);var t=zr(n);function n(){return Jt(this,n),t.apply(this,arguments)}return en(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function JS(e,t){var n=e.children,r=e.disabled,a=f.useRef(null),i=f.useRef(null),o=f.useContext(Qu),s=typeof n=="function",l=s?n(a):n,c=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f.isValidElement(l)&&ua(l),d=u?l.ref:null,h=No(d,a),m=function(){var x;return Ps(a.current)||(a.current&&ke(a.current)==="object"?Ps((x=a.current)===null||x===void 0?void 0:x.nativeElement):null)||Ps(i.current)};f.useImperativeHandle(t,function(){return m()});var p=f.useRef(e);p.current=e;var g=f.useCallback(function(v){var x=p.current,b=x.onResize,y=x.data,S=v.getBoundingClientRect(),C=S.width,_=S.height,R=v.offsetWidth,E=v.offsetHeight,O=Math.floor(C),k=Math.floor(_);if(c.current.width!==O||c.current.height!==k||c.current.offsetWidth!==R||c.current.offsetHeight!==E){var N={width:O,height:k,offsetWidth:R,offsetHeight:E};c.current=N;var z=R===Math.round(C)?C:R,F=E===Math.round(_)?_:E,j=Y(Y({},N),{},{offsetWidth:z,offsetHeight:F});o==null||o(j,v,y),b&&Promise.resolve().then(function(){b(j,v)})}},[]);return f.useEffect(function(){var v=m();return v&&!r&&YS(v,g),function(){return XS(v,g)}},[a.current,r]),f.createElement(ZS,{ref:i},u?f.cloneElement(l,{ref:h}):l)}var N0=f.forwardRef(JS);process.env.NODE_ENV!=="production"&&(N0.displayName="SingleObserver");var e2="rc-observer-key";function t2(e,t){var n=e.children,r=typeof n=="function"?[n]:tr(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Ga(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Ga(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(a,i){var o=(a==null?void 0:a.key)||"".concat(e2,"-").concat(i);return f.createElement(N0,Re({},e,{key:o,ref:i===0?t:void 0}),a)})}var zn=f.forwardRef(t2);process.env.NODE_ENV!=="production"&&(zn.displayName="ResizeObserver");zn.Collection=PS;function qn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Ju(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 n2(e){if(Array.isArray(e))return Ju(e)}function A0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Af(e,t){if(e){if(typeof e=="string")return Ju(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)?Ju(e,t):void 0}}function r2(){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 re(e,t){return L0(e)||a2(e,t)||Af(e,t)||D0()}function lo(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 dn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function i2(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 xv="data-rc-order",Cv="data-rc-priority",o2="rc-util-key",ed=new Map;function z0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):o2}function El(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function s2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function jf(e){return Array.from((ed.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function B0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!dn())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,o=s2(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(xv,o),s&&i&&l.setAttribute(Cv,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=El(t),u=c.firstChild;if(r){if(s){var d=(t.styles||jf(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(xv)))return!1;var m=Number(h.getAttribute(Cv)||0);return i>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function V0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=El(t);return(t.styles||jf(n)).find(function(r){return r.getAttribute(z0(t))===e})}function co(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=V0(e,t);if(n){var r=El(t);r.removeChild(n)}}function l2(e,t){var n=ed.get(e);if(!n||!i2(document,n)){var r=B0("",t),a=r.parentNode;ed.set(e,a),e.removeChild(r)}}function gr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=El(n),a=jf(r),i=Y(Y({},n),{},{styles:a});l2(r,i);var o=V0(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=B0(e,i);return u.setAttribute(z0(i),t),u}function c2(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 ot(e,t){if(e==null)return{};var n,r,a=c2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function uo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(xt(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u<i.length;u++)if(!a(i[u],o[u],c))return!1;return!0}if(i&&o&&ke(i)==="object"&&ke(o)==="object"){var d=Object.keys(i);return d.length!==Object.keys(o).length?!1:d.every(function(h){return a(i[h],o[h],c)})}return!1}return a(e,t)}var u2="%";function td(e){return e.join(u2)}var d2=function(){function e(t){Jt(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t}return en(e,[{key:"get",value:function(n){return this.opGet(td(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(td(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),i=r(a);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Ya="data-token-hash",Bn="data-css-hash",f2="data-cache-path",Mr="__cssinjs_instance__";function h2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Bn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Mr]=a[Mr]||e,a[Mr]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Bn,"]"))).forEach(function(a){var i=a.getAttribute(Bn);if(r[i]){if(a[Mr]===e){var o;(o=a.parentNode)===null||o===void 0||o.removeChild(a)}}else r[i]=!0})}return new d2(e)}var Ol=f.createContext({hashPriority:"low",cache:h2(),defaultCache:!0});function v2(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 kf=function(){function e(){Jt(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return en(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,i=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&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=re(c,2),h=d[1];return a.internalGet(u)[1]<h?[u,a.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=re(i,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,a.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 a=n.get(r[0]);if(r.length===1){var i;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var o=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),o}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!v2(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(kf,"MAX_CACHE_SIZE",20);U(kf,"MAX_CACHE_OFFSET",5);var Sv=0,H0=function(){function e(t){Jt(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Sv,t.length===0&&Ga(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Sv+=1}return en(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Wc=new kf;function nd(e){var t=Array.isArray(e)?e:[e];return Wc.has(t)||Wc.set(t,new H0(t)),Wc.get(t)}var p2=new WeakMap,Uc={};function g2(e,t){for(var n=p2,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(Uc)||n.set(Uc,e()),n.get(Uc)}var wv=new WeakMap;function Qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=wv.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof H0?n+=a.id:a&&ke(a)==="object"?n+=Qi(a,t):n+=a}),t&&(n=lo(n)),wv.set(e,n)),n}function _v(e,t){return lo("".concat(t,"_").concat(Qi(e,!0)))}var rd=dn();function se(e){return typeof e=="number"?"".concat(e,"px"):e}function qs(e,t,n){var r=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 i=Y(Y({},r),{},U(U({},Ya,t),Bn,n)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ms=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()},m2=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(a){var i=re(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},W0=function(t,n,r){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=re(o,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,m=Ms(u,r==null?void 0:r.prefix);a[m]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(m,")")}}),[i,m2(a,n,{scope:r==null?void 0:r.scope})]},$v=process.env.NODE_ENV!=="test"&&dn()?f.useLayoutEffect:f.useEffect,kt=function(t,n){var r=f.useRef(!0);$v(function(){return t(r.current)},n),$v(function(){return r.current=!1,function(){r.current=!0}},[])},ad=function(t,n){kt(function(r){if(!r)return t()},n)},b2=Y({},f),Ev=b2.useInsertionEffect,y2=function(t,n,r){f.useMemo(t,r),kt(function(){return n(!0)},r)},x2=Ev?function(e,t,n){return Ev(function(){return e(),t()},n)}:y2,C2=Y({},f),S2=C2.useInsertionEffect,w2=function(t){var n=[],r=!1;function a(i){if(r){process.env.NODE_ENV!=="production"&&Ga(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return f.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),a},_2=function(){return function(t){t()}},$2=typeof S2<"u"?w2:_2;function E2(){return!1}var id=!1;function O2(){return id}const T2=process.env.NODE_ENV==="production"?E2:O2;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var qc=window;if(typeof qc.webpackHotUpdate=="function"){var R2=qc.webpackHotUpdate;qc.webpackHotUpdate=function(){return id=!0,setTimeout(function(){id=!1},0),R2.apply(void 0,arguments)}}}function Ff(e,t,n,r,a){var i=f.useContext(Ol),o=i.cache,s=[e].concat(Oe(t)),l=td(s),c=$2([l]),u=T2(),d=function(g){o.opUpdate(l,function(v){var x=v||[void 0,void 0],b=re(x,2),y=b[0],S=y===void 0?0:y,C=b[1],_=C;process.env.NODE_ENV!=="production"&&C&&u&&(r==null||r(_,u),_=null);var R=_||n(),E=[S,R];return g?g(E):E})};f.useMemo(function(){d()},[l]);var h=o.opGet(l);process.env.NODE_ENV!=="production"&&!h&&(d(),h=o.opGet(l));var m=h[1];return x2(function(){a==null||a(m)},function(p){return d(function(g){var v=re(g,2),x=v[0],b=v[1];return p&&x===0&&(a==null||a(m)),[x+1,b]}),function(){o.opUpdate(l,function(g){var v=g||[],x=re(v,2),b=x[0],y=b===void 0?0:b,S=x[1],C=y-1;return C===0?(c(function(){(p||!o.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),m}var P2={},M2=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Gr=new Map;function I2(e){Gr.set(e,(Gr.get(e)||0)+1)}function N2(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[Mr]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var A2=0;function j2(e,t){Gr.set(e,(Gr.get(e)||0)-1);var n=Array.from(Gr.keys()),r=n.filter(function(a){var i=Gr.get(a)||0;return i<=0});n.length-r.length>A2&&r.forEach(function(a){N2(a,t),Gr.delete(a)})}var k2=function(t,n,r,a){var i=r.getDerivativeToken(t),o=Y(Y({},i),n);return a&&(o=a(o)),o},U0="token";function F2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$.useContext(Ol),a=r.cache.instanceId,i=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?P2:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,m=g2(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),p=Qi(m),g=Qi(c),v=h?Qi(h):"",x=Ff(U0,[s,e.id,p,g,v],function(){var b,y=d?d(m,c,e):k2(m,c,e,u),S=Y({},y),C="";if(h){var _=W0(y,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),R=re(_,2);y=R[0],C=R[1]}var E=_v(y,s);y._tokenKey=E,S._tokenKey=_v(S,s);var O=(b=h==null?void 0:h.key)!==null&&b!==void 0?b:E;y._themeKey=O,I2(O);var k="".concat(M2,"-").concat(lo(E));return y._hashId=k,[y,k,S,C,(h==null?void 0:h.key)||""]},function(b){j2(b[0]._themeKey,a)},function(b){var y=re(b,4),S=y[0],C=y[3];if(h&&C){var _=gr(C,lo("css-variables-".concat(S._themeKey)),{mark:Bn,prepend:"queue",attachTo:i,priority:-999});_[Mr]=a,_.setAttribute(Ya,S._themeKey)}});return x}var L2=function(t,n,r){var a=re(t,5),i=a[2],o=a[3],s=a[4],l=r||{},c=l.plain;if(!o)return null;var u=i._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=qs(o,s,u,h,c);return[d,u,m]},D2={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},q0="comm",G0="rule",K0="decl",z2="@import",B2="@keyframes",V2="@layer",Y0=Math.abs,Lf=String.fromCharCode;function X0(e){return e.trim()}function Is(e,t,n){return e.replace(t,n)}function H2(e,t,n){return e.indexOf(t,n)}function fo(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function W2(e){return e.length}function rs(e,t){return t.push(e),e}var Tl=1,Qa=1,Q0=0,Tn=0,Ht=0,li="";function Df(e,t,n,r,a,i,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Tl,column:Qa,length:o,return:"",siblings:s}}function U2(){return Ht}function q2(){return Ht=Tn>0?fo(li,--Tn):0,Qa--,Ht===10&&(Qa=1,Tl--),Ht}function Vn(){return Ht=Tn<Q0?fo(li,Tn++):0,Qa++,Ht===10&&(Qa=1,Tl++),Ht}function Ir(){return fo(li,Tn)}function Ns(){return Tn}function Rl(e,t){return Xa(li,e,t)}function ho(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 G2(e){return Tl=Qa=1,Q0=Qn(li=e),Tn=0,[]}function K2(e){return li="",e}function Gc(e){return X0(Rl(Tn-1,od(e===91?e+2:e===40?e+1:e)))}function Y2(e){for(;(Ht=Ir())&&Ht<33;)Vn();return ho(e)>2||ho(Ht)>3?"":" "}function X2(e,t){for(;--t&&Vn()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return Rl(e,Ns()+(t<6&&Ir()==32&&Vn()==32))}function od(e){for(;Vn();)switch(Ht){case e:return Tn;case 34:case 39:e!==34&&e!==39&&od(Ht);break;case 40:e===41&&od(e);break;case 92:Vn();break}return Tn}function Q2(e,t){for(;Vn()&&e+Ht!==57;)if(e+Ht===84&&Ir()===47)break;return"/*"+Rl(t,Tn-1)+"*"+Lf(e===47?e:Vn())}function Z2(e){for(;!ho(Ir());)Vn();return Rl(e,Tn)}function J2(e){return K2(As("",null,null,null,[""],e=G2(e),0,[0],e))}function As(e,t,n,r,a,i,o,s,l){for(var c=0,u=0,d=o,h=0,m=0,p=0,g=1,v=1,x=1,b=0,y="",S=a,C=i,_=r,R=y;v;)switch(p=b,b=Vn()){case 40:if(p!=108&&fo(R,d-1)==58){H2(R+=Is(Gc(b),"&","&\f"),"&\f",Y0(c?s[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:R+=Gc(b);break;case 9:case 10:case 13:case 32:R+=Y2(p);break;case 92:R+=X2(Ns()-1,7);continue;case 47:switch(Ir()){case 42:case 47:rs(ew(Q2(Vn(),Ns()),t,n,l),l),(ho(p||1)==5||ho(Ir()||1)==5)&&Qn(R)&&Xa(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*g:s[c++]=Qn(R)*x;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:x==-1&&(R=Is(R,/\f/g,"")),m>0&&(Qn(R)-d||g===0&&p===47)&&rs(m>32?Tv(R+";",r,n,d-1,l):Tv(Is(R," ","")+";",r,n,d-2,l),l);break;case 59:R+=";";default:if(rs(_=Ov(R,t,n,c,u,a,s,y,S=[],C=[],d,i),i),b===123)if(u===0)As(R,t,_,_,S,i,d,s,C);else switch(h===99&&fo(R,3)===110?100:h){case 100:case 108:case 109:case 115:As(e,_,_,r&&rs(Ov(e,_,_,0,0,a,s,y,a,S=[],d,C),C),a,C,d,s,r?S:C);break;default:As(R,_,_,_,[""],C,0,s,C)}}c=u=m=0,g=x=1,y=R="",d=o;break;case 58:d=1+Qn(R),m=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&q2()==125)continue}switch(R+=Lf(b),b*g){case 38:x=u>0?1:(R+="\f",-1);break;case 44:s[c++]=(Qn(R)-1)*x,x=1;break;case 64:Ir()===45&&(R+=Gc(Vn())),h=Ir(),u=d=Qn(y=R+=Z2(Ns())),b++;break;case 45:p===45&&Qn(R)==2&&(g=0)}}return i}function Ov(e,t,n,r,a,i,o,s,l,c,u,d){for(var h=a-1,m=a===0?i:[""],p=W2(m),g=0,v=0,x=0;g<r;++g)for(var b=0,y=Xa(e,h+1,h=Y0(v=o[g])),S=e;b<p;++b)(S=X0(v>0?m[b]+" "+y:Is(y,/&\f/g,m[b])))&&(l[x++]=S);return Df(e,t,n,a===0?G0:s,l,c,u,d)}function ew(e,t,n,r){return Df(e,t,n,q0,Lf(U2()),Xa(e,2,-2),0,r)}function Tv(e,t,n,r,a){return Df(e,t,n,K0,Xa(e,0,r),Xa(e,r+1,-1),r,a)}function sd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tw(e,t,n,r){switch(e.type){case V2:if(e.children.length)break;case z2:case K0:return e.return=e.return||e.value;case q0:return"";case B2:return e.return=e.value+"{"+sd(e.children,r)+"}";case G0:if(!Qn(e.value=e.props.join(",")))return""}return Qn(n=sd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Z0(e,t){var n=t.path,r=t.parentSelectors;xt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var nw=function(t,n,r){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!a.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Z0("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},rw=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Z0("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Rv="data-ant-cssinjs-cache-path",J0="_FILE_STYLE__",Jr,eb=!0;function aw(){if(!Jr&&(Jr={},dn())){var e=document.createElement("div");e.className=Rv,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 i=a.split(":"),o=re(i,2),s=o[0],l=o[1];Jr[s]=l});var n=document.querySelector("style[".concat(Rv,"]"));if(n){var r;eb=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function iw(e){return aw(),!!Jr[e]}function ow(e){var t=Jr[e],n=null;if(t&&dn())if(eb)n=J0;else{var r=document.querySelector("style[".concat(Bn,'="').concat(Jr[e],'"]'));r?n=r.innerHTML:delete Jr[e]}return[n,t]}var tb="_skip_check_",nb="_multi_value_";function js(e){var t=sd(J2(e),tw);return t.replace(/\{%%%\:[^;];}/g,";")}function sw(e){return ke(e)==="object"&&e&&(tb in e||nb in e)}function Pv(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,i=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(a).concat(c.slice(u.length)),[c].concat(Oe(l.slice(1))).join(" ")});return i.join(",")}var lw=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:[]},a=r.root,i=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,h=d===void 0?[]:d,m=n.linters,p=m===void 0?[]:m,g="",v={};function x(S){var C=S.getName(s);if(!v[C]){var _=e(S.style,n,{root:!1,parentSelectors:o}),R=re(_,1),E=R[0];v[C]="@keyframes ".concat(S.getName(s)).concat(E)}}function b(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(_){Array.isArray(_)?b(_,C):_&&C.push(_)}),C}var y=b(Array.isArray(t)?t:[t]);return y.forEach(function(S){var C=typeof S=="string"&&!a?{}:S;if(typeof C=="string")g+="".concat(C,`
|
|
108
|
-
`);else if(
|
|
109
|
-
`))):g="{".concat(g,"}"),[g,v]};function rb(e,t){return lo("".concat(e.join("%")).concat(t))}function cw(){return null}var ab="style";function ld(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f.useContext(Ol),d=u.autoClear,h=u.mock,m=u.defaultCache,p=u.hashPriority,g=u.container,v=u.ssrInline,x=u.transformers,b=u.linters,y=u.cache,S=u.layer,C=n._tokenKey,_=[C];S&&_.push("layer"),_.push.apply(_,Oe(r));var R=rd;process.env.NODE_ENV!=="production"&&h!==void 0&&(R=h==="client");var E=Ff(ab,_,function(){var F=_.join("|");if(iw(F)){var j=ow(F),I=re(j,2),T=I[0],w=I[1];if(T)return[T,C,w,{},s,c]}var P=t(),A=lw(P,{hashId:a,hashPriority:p,layer:S?i:void 0,path:r.join("-"),transformers:x,linters:b}),M=re(A,2),L=M[0],K=M[1],W=js(L),q=rb(_,W);return[W,C,q,K,s,c]},function(F,j){var I=re(F,3),T=I[2];(j||d)&&rd&&co(T,{mark:Bn})},function(F){var j=re(F,4),I=j[0];j[1];var T=j[2],w=j[3];if(R&&I!==J0){var P={mark:Bn,prepend:S?!1:"queue",attachTo:g,priority:c},A=typeof o=="function"?o():o;A&&(P.csp={nonce:A});var M=[],L=[];Object.keys(w).forEach(function(W){W.startsWith("@layer")?M.push(W):L.push(W)}),M.forEach(function(W){gr(js(w[W]),"_layer-".concat(W),Y(Y({},P),{},{prepend:!0}))});var K=gr(I,T,P);K[Mr]=y.instanceId,K.setAttribute(Ya,C),process.env.NODE_ENV!=="production"&&K.setAttribute(f2,_.join("|")),L.forEach(function(W){gr(js(w[W]),"_effect-".concat(W),P)})}}),O=re(E,3),k=O[0],N=O[1],z=O[2];return function(F){var j;return!v||R||!m?j=f.createElement(cw,null):j=f.createElement("style",Re({},U(U({},Ya,N),Bn,z),{dangerouslySetInnerHTML:{__html:k}})),f.createElement(f.Fragment,null,j,F)}}var uw=function(t,n,r){var a=re(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],d=r||{},h=d.plain;if(c)return null;var m=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=qs(i,o,s,p,h),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=js(l[g]),x=qs(v,o,"_effect-".concat(g),p,h);g.startsWith("@layer")?m=x+m:m+=x}}),[u,s,m]},ib="cssVar",dw=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=$.useContext(Ol),d=u.cache.instanceId,h=u.container,m=s._tokenKey,p=[].concat(Oe(t.path),[r,c,m]),g=Ff(ib,p,function(){var v=n(),x=W0(v,r,{prefix:a,unitless:i,ignore:o,scope:c}),b=re(x,2),y=b[0],S=b[1],C=rb(p,S);return[y,S,C,r]},function(v){var x=re(v,3),b=x[2];rd&&co(b,{mark:Bn})},function(v){var x=re(v,3),b=x[1],y=x[2];if(b){var S=gr(b,y,{mark:Bn,prepend:"queue",attachTo:h,priority:-999});S[Mr]=d,S.setAttribute(Ya,r)}});return g},fw=function(t,n,r){var a=re(t,4),i=a[1],o=a[2],s=a[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=qs(i,s,o,d,c);return[u,o,h]};U(U(U({},ab,uw),U0,L2),ib,fw);var Vt=function(){function e(t,n){Jt(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return en(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 wa(e){return e.notSplit=!0,e}wa(["borderTop","borderBottom"]),wa(["borderTop"]),wa(["borderBottom"]),wa(["borderLeft","borderRight"]),wa(["borderLeft"]),wa(["borderRight"]);var zf=$.createContext({});function hw(e){return L0(e)||A0(e)||Af(e)||D0()}function Jn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function ob(e,t,n,r){if(!t.length)return n;var a=hw(t),i=a[0],o=a.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Oe(e):s=Y({},e),r&&n===void 0&&o.length===1?delete s[i][o[0]]:s[i]=ob(s[i],o,n,r),s}function jn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Jn(e,t.slice(0,-1))?e:ob(e,t,n,r)}function vw(e){return ke(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mv(e){return Array.isArray(e)?[]:{}}var pw=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Fa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mv(t[0]);return t.forEach(function(a){function i(o,s){var l=new Set(s),c=Jn(a,o),u=Array.isArray(c);if(u||vw(c)){if(!l.has(c)){l.add(c);var d=Jn(r,o);u?r=jn(r,o,[]):(!d||ke(d)!=="object")&&(r=jn(r,o,Mv(c))),pw(c).forEach(function(h){i([].concat(Oe(o),[h]),l)})}}else r=jn(r,o,c)}i([])}),r}function sb(){}let hr=null;function gw(){hr=null,w0()}let ci=sb;process.env.NODE_ENV!=="production"&&(ci=(e,t,n)=>{xt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&gw()});const lb=f.createContext({}),qt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=f.useContext(lb),n=(r,a,i)=>{if(!r)if(t===!1&&a==="deprecated"){const o=hr;hr||(hr={}),hr[e]=hr[e]||[],hr[e].includes(i||"")||hr[e].push(i||""),o||console.warn("[antd] There exists deprecated usage in your code:",hr)}else process.env.NODE_ENV!=="production"&&ci(r,e,i)};return n.deprecated=(r,a,i,o)=>{n(r,"deprecated",`\`${a}\` is deprecated. Please use \`${i}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=sb,e},mw=$.createContext(void 0);var bw={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"},yw={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},xw=Y(Y({},yw),{},{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 cb={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Iv={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"]},xw),timePickerLocale:Object.assign({},cb)},pn="${label} is not a valid ${type}",Za={locale:"en",Pagination:bw,DatePicker:Iv,TimePicker:cb,Calendar:Iv,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:pn,method:pn,array:pn,object:pn,number:pn,date:pn,boolean:pn,integer:pn,float:pn,regexp:pn,email:pn,url:pn,hex:pn},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({},Za.Modal);let ks=[];const Nv=()=>ks.reduce((e,t)=>Object.assign(Object.assign({},e),t),Za.Modal);function Cw(e){if(e){const t=Object.assign({},e);return ks.push(t),Nv(),()=>{ks=ks.filter(n=>n!==t),Nv()}}Object.assign({},Za.Modal)}const Bf=$.createContext(void 0),Sw=(e,t)=>{const n=f.useContext(Bf),r=f.useMemo(()=>{var i;const o=Za[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),a=f.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Za.locale:i},[n]);return[r,a]},ub="internalMark",db=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=qt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===ub,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}f.useEffect(()=>Cw(t==null?void 0:t.Modal),[t]);const a=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(Bf.Provider,{value:a},n)};process.env.NODE_ENV!=="production"&&(db.displayName="LocaleProvider");function Zt(e,t){ww(e)&&(e="100%");var n=_w(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 as(e){return Math.min(1,Math.max(0,e))}function ww(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function _w(e){return typeof e=="string"&&e.indexOf("%")!==-1}function fb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function is(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Yr(e){return e.length===1?"0"+e:String(e)}function $w(e,t,n){return{r:Zt(e,255)*255,g:Zt(t,255)*255,b:Zt(n,255)*255}}function Av(e,t,n){e=Zt(e,255),t=Zt(t,255),n=Zt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function Kc(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 Ew(e,t,n){var r,a,i;if(e=Zt(e,360),t=Zt(t,100),n=Zt(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Kc(s,o,e+1/3),a=Kc(s,o,e),i=Kc(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function cd(e,t,n){e=Zt(e,255),t=Zt(t,255),n=Zt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Ow(e,t,n){e=Zt(e,360)*6,t=Zt(t,100),n=Zt(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,c=[n,o,i,i,s,n][l],u=[s,n,n,o,i,i][l],d=[i,i,s,n,n,o][l];return{r:c*255,g:u*255,b:d*255}}function ud(e,t,n,r){var a=[Yr(Math.round(e).toString(16)),Yr(Math.round(t).toString(16)),Yr(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Tw(e,t,n,r,a){var i=[Yr(Math.round(e).toString(16)),Yr(Math.round(t).toString(16)),Yr(Math.round(n).toString(16)),Yr(Rw(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Rw(e){return Math.round(parseFloat(e)*255).toString(16)}function jv(e){return mn(e)/255}function mn(e){return parseInt(e,16)}function Pw(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var dd={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 ka(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Nw(e)),typeof e=="object"&&(dr(e.r)&&dr(e.g)&&dr(e.b)?(t=$w(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):dr(e.h)&&dr(e.s)&&dr(e.v)?(r=is(e.s),a=is(e.v),t=Ow(e.h,r,a),o=!0,s="hsv"):dr(e.h)&&dr(e.s)&&dr(e.l)&&(r=is(e.s),i=is(e.l),t=Ew(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=fb(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 Mw="[-\\+]?\\d+%?",Iw="[-\\+]?\\d*\\.\\d+%?",Nr="(?:".concat(Iw,")|(?:").concat(Mw,")"),Yc="[\\s|\\(]+(".concat(Nr,")[,|\\s]+(").concat(Nr,")[,|\\s]+(").concat(Nr,")\\s*\\)?"),Xc="[\\s|\\(]+(".concat(Nr,")[,|\\s]+(").concat(Nr,")[,|\\s]+(").concat(Nr,")[,|\\s]+(").concat(Nr,")\\s*\\)?"),An={CSS_UNIT:new RegExp(Nr),rgb:new RegExp("rgb"+Yc),rgba:new RegExp("rgba"+Xc),hsl:new RegExp("hsl"+Yc),hsla:new RegExp("hsla"+Xc),hsv:new RegExp("hsv"+Yc),hsva:new RegExp("hsva"+Xc),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 Nw(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(dd[e])e=dd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=An.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=An.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=An.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=An.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=An.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=An.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=An.hex8.exec(e),n?{r:mn(n[1]),g:mn(n[2]),b:mn(n[3]),a:jv(n[4]),format:t?"name":"hex8"}:(n=An.hex6.exec(e),n?{r:mn(n[1]),g:mn(n[2]),b:mn(n[3]),format:t?"name":"hex"}:(n=An.hex4.exec(e),n?{r:mn(n[1]+n[1]),g:mn(n[2]+n[2]),b:mn(n[3]+n[3]),a:jv(n[4]+n[4]),format:t?"name":"hex8"}:(n=An.hex3.exec(e),n?{r:mn(n[1]+n[1]),g:mn(n[2]+n[2]),b:mn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function dr(e){return!!An.CSS_UNIT.exec(String(e))}var bn=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=Pw(t)),this.originalInput=t;var a=ka(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=(r=n.format)!==null&&r!==void 0?r:a.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=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(),n,r,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=fb(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=cd(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=cd(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Av(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=Av(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ud(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),Tw(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(Zt(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(Zt(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="#"+ud(this.r,this.g,this.b,!1),n=0,r=Object.entries(dd);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?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=as(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=as(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=as(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=as(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(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+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(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+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(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.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 n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),os=2,kv=.16,Aw=.05,jw=.05,kw=.15,hb=5,vb=4,Fw=[{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 Fv(e){var t=e.r,n=e.g,r=e.b,a=cd(t,n,r);return{h:a.h*360,s:a.s,v:a.v}}function ss(e){var t=e.r,n=e.g,r=e.b;return"#".concat(ud(t,n,r,!1))}function Lw(e,t,n){var r=n/100,a={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 a}function Lv(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-os*t:Math.round(e.h)+os*t:r=n?Math.round(e.h)+os*t:Math.round(e.h)-os*t,r<0?r+=360:r>=360&&(r-=360),r}function Dv(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-kv*t:t===vb?r=e.s+kv:r=e.s+Aw*t,r>1&&(r=1),n&&t===hb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function zv(e,t,n){var r;return n?r=e.v+jw*t:r=e.v-kw*t,r>1&&(r=1),Number(r.toFixed(2))}function vo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ka(e),a=hb;a>0;a-=1){var i=Fv(r),o=ss(ka({h:Lv(i,a,!0),s:Dv(i,a,!0),v:zv(i,a,!0)}));n.push(o)}n.push(ss(r));for(var s=1;s<=vb;s+=1){var l=Fv(r),c=ss(ka({h:Lv(l,s),s:Dv(l,s),v:zv(l,s)}));n.push(c)}return t.theme==="dark"?Fw.map(function(u){var d=u.index,h=u.opacity,m=ss(Lw(ka(t.backgroundColor||"#141414"),ka(n[d]),h*100));return m}):n}var Qc={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"},fd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];fd.primary=fd[5];var hd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hd.primary=hd[5];var vd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vd.primary=vd[5];var Gs=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Gs.primary=Gs[5];var pd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];pd.primary=pd[5];var gd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];gd.primary=gd[5];var md=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];md.primary=md[5];var bd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];bd.primary=bd[5];var Ks=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ks.primary=Ks[5];var yd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];yd.primary=yd[5];var xd=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xd.primary=xd[5];var Cd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Cd.primary=Cd[5];var Sd=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sd.primary=Sd[5];var Zc={red:fd,volcano:hd,orange:vd,gold:Gs,yellow:pd,lime:gd,green:md,cyan:bd,blue:Ks,geekblue:yd,purple:xd,magenta:Cd,grey:Sd};const pb={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"},po=Object.assign(Object.assign({},pb),{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
113
|
${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(`
|
|
114
114
|
`)}
|
|
115
115
|
}
|
|
116
|
-
`.trim()}function Jw(e,t){const n=Zw(e,t);dn()?gr(n,`${Qw}-dynamic-theme`):process.env.NODE_ENV!=="production"&&ci(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ra=f.createContext(!1),e_=e=>{let{children:t,disabled:n}=e;const r=f.useContext(ra);return f.createElement(ra.Provider,{value:n??r},t)},Ja=f.createContext(void 0),t_=e=>{let{children:t,size:n}=e;const r=f.useContext(Ja);return f.createElement(Ja.Provider,{value:n||r},t)};function n_(){const e=$.useContext(ra),t=$.useContext(Ja);return{componentDisabled:e,componentSize:t}}var yb=en(function e(){Jt(this,e)}),xb="CALC_UNIT",r_=new RegExp(xb,"g");function Jc(e){return typeof e=="number"?"".concat(e).concat(xb):e}var a_=function(e){Dr(n,e);var t=zr(n);function n(r,a){var i;Jt(this,n),i=t.call(this),U(tt(i),"result",""),U(tt(i),"unitlessCssVar",void 0),U(tt(i),"lowPriority",void 0);var o=ke(r);return i.unitlessCssVar=a,r instanceof n?i.result="(".concat(r.result,")"):o==="number"?i.result=Jc(r):o==="string"&&(i.result=r),i}return en(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(Jc(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(Jc(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?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 n?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 i=this,o=a||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(r_,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(yb),i_=function(e){Dr(n,e);var t=zr(n);function n(r){var a;return Jt(this,n),a=t.call(this),U(tt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return en(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(yb),o_=function(t,n){var r=t==="css"?a_:i_;return function(a){return new r(a,n)}},Bv=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 an(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function go(e){var t=f.useRef(!1),n=f.useState(e),r=re(n,2),a=r[0],i=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||i(s)}return[a,o]}function eu(e){return e!==void 0}function vn(e,t){var n=t||{},r=n.defaultValue,a=n.value,i=n.onChange,o=n.postState,s=go(function(){return eu(a)?a:eu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=re(s,2),c=l[0],u=l[1],d=a!==void 0?a:c,h=o?o(d):d,m=an(i),p=go([d]),g=re(p,2),v=g[0],x=g[1];ad(function(){var y=v[0];c!==y&&m(c,y)},[v]),ad(function(){eu(a)||u(a)},[a]);var b=an(function(y,S){u(y,S),x([d],S)});return[h,b]}function Vv(e,t,n,r){var a=Y({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=re(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&xt(!(a!=null&&a[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),a!=null&&a[c]||a!=null&&a[u]){var d;(d=a[u])!==null&&d!==void 0||(a[u]=a==null?void 0:a[c])}})}var o=Y(Y({},n),a);return Object.keys(o).forEach(function(s){o[s]===t[s]&&delete o[s]}),o}var Cb=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",_d=!0;function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Cb)return Object.assign.apply(Object,[{}].concat(t));_d=!1;var r={};return t.forEach(function(a){if(ke(a)==="object"){var i=Object.keys(a);i.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return a[o]}})})}}),_d=!0,r}var Hv={};function s_(){}var l_=function(t){var n,r=t,a=s_;return Cb&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,s){return _d&&n.add(s),o[s]}}),a=function(o,s){var l;Hv[o]={global:Array.from(n),component:Y(Y({},(l=Hv[o])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:a}};function Wv(e,t,n){if(typeof n=="function"){var r;return n(Yt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function c_(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(i){return se(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(i){return se(i)}).join(","),")")}}}var u_=1e3*60*10,d_=function(){function e(){Jt(this,e),U(this,"map",new Map),U(this,"objectIDMap",new WeakMap),U(this,"nextID",0),U(this,"lastAccessBeat",new Map),U(this,"accessBeat",0)}return en(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(i){return i&&ke(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(ke(i),"_").concat(i)});return a.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(a,i){r-a>u_&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Uv=new d_;function f_(e,t){return $.useMemo(function(){var n=Uv.get(t);if(n)return n;var r=e();return Uv.set(t,r),r},t)}var h_=function(){return{}};function v_(e){var t=e.useCSP,n=t===void 0?h_:t,r=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(h,m,p,g){var v=Array.isArray(h)?h[0]:h;function x(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var b=(g==null?void 0:g.unitless)||{},y=typeof s=="function"?s(h):{},S=Y(Y({},y),{},U({},x("zIndexPopup"),!0));Object.keys(b).forEach(function(E){S[x(E)]=b[E]});var C=Y(Y({},g),{},{unitless:S,prefixToken:x}),_=u(h,m,p,C),R=c(v,p,C);return function(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,k=_(E,O),N=re(k,2),z=N[1],F=R(O),j=re(F,2),I=j[0],T=j[1];return[I,z,T]}}function c(h,m,p){var g=p.unitless,v=p.injectStyle,x=v===void 0?!0:v,b=p.prefixToken,y=p.ignore,S=function(R){var E=R.rootCls,O=R.cssVar,k=O===void 0?{}:O,N=r(),z=N.realToken;return dw({path:[h],prefix:k.prefix,key:k.key,unitless:g,ignore:y,token:z,scope:E},function(){var F=Wv(h,z,m),j=Vv(h,z,F,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(F).forEach(function(I){j[b(I)]=j[I],delete j[I]}),j}),null},C=function(R){var E=r(),O=E.cssVar;return[function(k){return x&&O?$.createElement($.Fragment,null,$.createElement(S,{rootCls:R,cssVar:O,component:h}),k):k},O==null?void 0:O.key]};return C}function u(h,m,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],x=re(v,1),b=x[0],y=v.join("-");return function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,_=r(),R=_.theme,E=_.realToken,O=_.hashId,k=_.token,N=_.cssVar,z=a(),F=z.rootPrefixCls,j=z.iconPrefixCls,I=n(),T=N?"css":"js",w=f_(function(){var W=new Set;return N&&Object.keys(g.unitless||{}).forEach(function(q){W.add(Ms(q,N.prefix)),W.add(Ms(q,Bv(b,N.prefix)))}),o_(T,W)},[T,b,N==null?void 0:N.prefix]),P=c_(T),A=P.max,M=P.min,L={theme:R,token:k,hashId:O,nonce:function(){return I.nonce},clientOnly:g.clientOnly,layer:{name:"antd"},order:g.order||-999};ld(Y(Y({},L),{},{clientOnly:!1,path:["Shared",F]}),function(){return typeof i=="function"?i(k):[]});var K=ld(Y(Y({},L),{},{path:[y,S,j]}),function(){if(g.injectStyle===!1)return[];var W=l_(k),q=W.token,X=W.flush,Q=Wv(b,E,p),Z=".".concat(S),J=Vv(b,E,Q,{deprecatedTokens:g.deprecatedTokens});N&&ke(Q)==="object"&&Object.keys(Q).forEach(function(V){Q[V]="var(".concat(Ms(V,Bv(b,N.prefix)),")")});var G=Yt(q,{componentCls:Z,prefixCls:S,iconCls:".".concat(j),antCls:".".concat(F),calc:w,max:A,min:M},N?Q:J),ee=m(G,{hashId:O,prefixCls:S,rootPrefixCls:F,iconPrefixCls:j});X(b,J);var ae=typeof o=="function"?o(G,S,C,g.resetFont):null;return[g.resetStyle===!1?null:ae,ee]});return[K,O]}}function d(h,m,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,m,p,Y({resetStyle:!1,order:-998},g)),x=function(y){var S=y.prefixCls,C=y.rootCls,_=C===void 0?S:C;return v(S,_),null};return process.env.NODE_ENV!=="production"&&(x.displayName="SubStyle_".concat(String(Array.isArray(h)?h.join("."):h))),x}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const Xs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],p_="5.20.3";function tu(e){return e>=0&&e<=255}function ls(e,t){const{r:n,g:r,b:a,a:i}=new bn(e).toRgb();if(i<1)return e;const{r:o,g:s,b:l}=new bn(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),h=Math.round((a-l*(1-c))/c);if(tu(u)&&tu(d)&&tu(h))return new bn({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new bn({r:n,g:r,b:a,a:1}).toRgbString()}var g_=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Sb(e){const{override:t}=e,n=g_(e,["override"]),r=Object.assign({},t);Object.keys(po).forEach(h=>{delete r[h]});const a=Object.assign(Object.assign({},n),r),i=480,o=576,s=768,l=992,c=1200,u=1600;if(a.motion===!1){const h="0s";a.motionDurationFast=h,a.motionDurationMid=h,a.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:ls(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:ls(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:ls(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:ls(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)"}),r)}var qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const wb={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},m_={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},b_={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},_b=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,i=qv(t,["override"]);let o=Object.assign(Object.assign({},r),{override:a});return o=Sb(o),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=qv(c,["theme"]);let h=d;u&&(h=_b(Object.assign(Object.assign({},o),d),{override:d},u)),o[l]=h}),o};function xr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=$.useContext(mb),i=`${p_}-${t||""}`,o=n||gb,[s,l,c]=F2(o,[po,e],{salt:i,override:r,getComputedToken:_b,formatToken:Sb,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:wb,ignore:m_,preserve:b_}});return[o,c,t?l:"",s,a]}const $b=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Vf={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},br=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}},y_=()=>({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"}}),Ao=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),x_=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"}}}),C_=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},Hf=e=>({outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Wf=e=>({"&:focus-visible":Object.assign({},Hf(e))}),Eb=(e,t)=>{const[n,r]=xr();return ld({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({},y_()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Pn,genComponentStyleHook:S_,genSubStyleComponent:w_}=v_({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=$.useContext(vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=xr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=$.useContext(vt);return Eb(t,e),e??{}},getResetStyles:e=>[{"&":x_(e)}],getCommonStyle:C_,getCompUnitless:()=>wb});function __(e,t){return Xs.reduce((n,r)=>{const a=e[`${r}1`],i=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const $_=Object.assign({},f),{useId:Gv}=$_,E_=()=>"",O_=typeof Gv>"u"?E_:Gv;function T_(e,t,n){var r,a;const i=qt("ConfigProvider"),o=e||{},s=o.inherit===!1||!t?Object.assign(Object.assign({},wd),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:wd.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=O_();if(process.env.NODE_ENV!=="production"){const c=o.cssVar||s.cssVar,u=!!(typeof o.cssVar=="object"&&(!((a=o.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&i(!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 wl(()=>{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 h=`css-var-${l.replace(/:/g,"")}`,m=((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)||h});return Object.assign(Object.assign(Object.assign({},s),o),{token:Object.assign(Object.assign({},s.token),o.token),components:d,cssVar:m})},[o,s],(c,u)=>c.some((d,h)=>{const m=u[h];return!uo(d,m,!0)}))}var R_=["children"],Ob=f.createContext({});function P_(e){var t=e.children,n=ot(e,R_);return f.createElement(Ob.Provider,{value:n},t)}var M_=function(e){Dr(n,e);var t=zr(n);function n(){return Jt(this,n),t.apply(this,arguments)}return en(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function I_(e){var t=f.useReducer(function(s){return s+1},0),n=re(t,2),r=n[1],a=f.useRef(e),i=an(function(){return a.current}),o=an(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[i,o]}var Pr="none",cs="appear",us="enter",ds="leave",Kv="none",kn="prepare",La="start",Da="active",Uf="end",Tb="prepared";function Yv(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 N_(e,t){var n={animationend:Yv("Animation","AnimationEnd"),transitionend:Yv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var A_=N_(dn(),typeof window<"u"?window:{}),Rb={};if(dn()){var j_=document.createElement("div");Rb=j_.style}var fs={};function Pb(e){if(fs[e])return fs[e];var t=A_[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var i=n[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Rb)return fs[e]=t[i],fs[e]}return""}var Mb=Pb("animationend"),Ib=Pb("transitionend"),Nb=!!(Mb&&Ib),Xv=Mb||"animationend",Qv=Ib||"transitionend";function Zv(e,t){if(!e)return null;if(ke(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const k_=function(e){var t=$.useRef();function n(a){a&&(a.removeEventListener(Qv,e),a.removeEventListener(Xv,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(Qv,e),a.addEventListener(Xv,e),t.current=a)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Ab=dn()?$.useLayoutEffect:$.useEffect;const F_=function(){var e=f.useRef(null);function t(){Ut.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ut(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var L_=[kn,La,Da,Uf],D_=[kn,Tb],jb=!1,z_=!0;function kb(e){return e===Da||e===Uf}const B_=function(e,t,n){var r=go(Kv),a=re(r,2),i=a[0],o=a[1],s=F_(),l=re(s,2),c=l[0],u=l[1];function d(){o(kn,!0)}var h=t?D_:L_;return Ab(function(){if(i!==Kv&&i!==Uf){var m=h.indexOf(i),p=h[m+1],g=n(i);g===jb?o(p,!0):p&&c(function(v){function x(){v.isCanceled()||o(p,!0)}g===!0?x():Promise.resolve(g).then(x)})}},[e,i]),f.useEffect(function(){return function(){u()}},[]),[d,i]};function V_(e,t,n,r){var a=r.motionEnter,i=a===void 0?!0:a,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,p=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,x=r.onLeaveStart,b=r.onAppearActive,y=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,_=r.onEnterEnd,R=r.onLeaveEnd,E=r.onVisibleChanged,O=go(),k=re(O,2),N=k[0],z=k[1],F=I_(Pr),j=re(F,2),I=j[0],T=j[1],w=go(null),P=re(w,2),A=P[0],M=P[1],L=I(),K=$.useRef(!1),W=$.useRef(null);function q(){return n()}var X=$.useRef(!1);function Q(){T(Pr),M(null,!0)}var Z=an(function(ge){var we=I();if(we!==Pr){var Me=q();if(!(ge&&!ge.deadline&&ge.target!==Me)){var ve=X.current,de;we===cs&&ve?de=C==null?void 0:C(Me,ge):we===us&&ve?de=_==null?void 0:_(Me,ge):we===ds&&ve&&(de=R==null?void 0:R(Me,ge)),ve&&de!==!1&&Q()}}}),J=k_(Z),G=re(J,1),ee=G[0],ae=function(we){switch(we){case cs:return U(U(U({},kn,h),La,g),Da,b);case us:return U(U(U({},kn,m),La,v),Da,y);case ds:return U(U(U({},kn,p),La,x),Da,S);default:return{}}},V=f.useMemo(function(){return ae(L)},[L]),ce=B_(L,!e,function(ge){if(ge===kn){var we=V[kn];return we?we(q()):jb}if(le in V){var Me;M(((Me=V[le])===null||Me===void 0?void 0:Me.call(V,q(),null))||null)}return le===Da&&L!==Pr&&(ee(q()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){Z({deadline:!0})},u))),le===Tb&&Q(),z_}),B=re(ce,2),ue=B[0],le=B[1],be=kb(le);X.current=be,Ab(function(){z(t);var ge=K.current;K.current=!0;var we;!ge&&t&&s&&(we=cs),ge&&t&&i&&(we=us),(ge&&!t&&c||!ge&&d&&!t&&c)&&(we=ds);var Me=ae(we);we&&(e||Me[kn])?(T(we),ue()):T(Pr)},[t]),$.useEffect(function(){(L===cs&&!s||L===us&&!i||L===ds&&!c)&&T(Pr)},[s,i,c]),$.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var xe=f.useRef(!1);$.useEffect(function(){N&&(xe.current=!0),N!==void 0&&L===Pr&&((xe.current||N)&&(E==null||E(N)),xe.current=!0)},[N,L]);var fe=A;return V[kn]&&le===La&&(fe=Y({transition:"none"},fe)),[L,le,fe,N??t]}function H_(e){var t=e;ke(e)==="object"&&(t=e.transitionSupport);function n(a,i){return!!(a.motionName&&t&&i!==!1)}var r=f.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,d=a.children,h=a.motionName,m=a.leavedClassName,p=a.eventProps,g=f.useContext(Ob),v=g.motion,x=n(a,v),b=$.useRef(),y=$.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:Ps(y.current)}catch{return null}}var C=V_(x,s,S,a),_=re(C,4),R=_[0],E=_[1],O=_[2],k=_[3],N=f.useRef(k);k&&(N.current=!0);var z=f.useCallback(function(A){b.current=A,If(i,A)},[i]),F,j=Y(Y({},p),{},{visible:s});if(!d)F=null;else if(R===Pr)k?F=d(Y({},j),z):!c&&N.current&&m?F=d(Y(Y({},j),{},{className:m}),z):u||!c&&!m?F=d(Y(Y({},j),{},{style:{display:"none"}}),z):F=null;else{var I;E===kn?I="prepare":kb(E)?I="active":E===La&&(I="start");var T=Zv(h,"".concat(R,"-").concat(I));F=d(Y(Y({},j),{},{className:oe(Zv(h,R),U(U({},T,T&&I),h,typeof h=="string")),style:O}),z)}if(f.isValidElement(F)&&ua(F)){var w=F,P=w.ref;P||(F=f.cloneElement(F,{ref:z}))}return f.createElement(M_,{ref:y},F)});return r.displayName="CSSMotion",r}const da=H_(Nb);var $d="add",Ed="keep",Od="remove",nu="removed";function W_(e){var t;return e&&ke(e)==="object"&&"key"in e?t=e:t={key:e},Y(Y({},t),{},{key:String(t.key)})}function Td(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(W_)}function U_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,i=Td(e),o=Td(t);i.forEach(function(c){for(var u=!1,d=r;d<a;d+=1){var h=o[d];if(h.key===c.key){r<d&&(n=n.concat(o.slice(r,d).map(function(m){return Y(Y({},m),{},{status:$d})})),r=d),n.push(Y(Y({},h),{},{status:Ed})),r+=1,u=!0;break}}u||n.push(Y(Y({},c),{},{status:Od}))}),r<a&&(n=n.concat(o.slice(r).map(function(c){return Y(Y({},c),{},{status:$d})})));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,h=u.status;return d!==c||h!==Od}),n.forEach(function(u){u.key===c&&(u.status=Ed)})}),n}var q_=["component","children","onVisibleChanged","onAllRemoved"],G_=["status"],K_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Y_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:da,n=function(r){Dr(i,r);var a=zr(i);function i(){var o;Jt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=a.call.apply(a,[this].concat(l)),U(tt(o),"state",{keyEntities:[]}),U(tt(o),"removeKey",function(u){var d=o.state.keyEntities,h=d.map(function(m){return m.key!==u?m:Y(Y({},m),{},{status:nu})});return o.setState({keyEntities:h}),h.filter(function(m){var p=m.status;return p!==nu}).length}),o}return en(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged,m=c.onAllRemoved,p=ot(c,q_),g=u||f.Fragment,v={};return K_.forEach(function(x){v[x]=p[x],delete p[x]}),delete p.keys,f.createElement(g,p,l.map(function(x,b){var y=x.status,S=ot(x,G_),C=y===$d||y===Ed;return f.createElement(t,Re({},v,{key:S.key,visible:C,eventProps:S,onVisibleChanged:function(R){if(h==null||h(R,{key:S.key}),!R){var E=s.removeKey(S.key);E===0&&m&&m()}}}),function(_,R){return d(Y(Y({},_),{},{index:b}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Td(c),h=U_(u,d);return{keyEntities:h.filter(function(m){var p=u.find(function(g){var v=g.key;return m.key===v});return!(p&&p.status===nu&&m.status===Od)})}}}]),i}(f.Component);return U(n,"defaultProps",{component:"div"}),n}Y_(Nb);function X_(e){const{children:t}=e,[,n]=xr(),{motion:r}=n,a=f.useRef(!1);return a.current=a.current||r===!1,a.current?f.createElement(P_,{motion:r},t):t}const Fb=f.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return qt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Fb.displayName="PropWarning");const Q_=process.env.NODE_ENV!=="production"?Fb:()=>null;var Z_=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let Rd=!1;process.env.NODE_ENV;const J_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Lb;function e$(){return Lb||Ys}function t$(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const n$=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Lb=t),r&&t$(r)&&(process.env.NODE_ENV!=="production"&&ci(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Jw(e$(),r))},r$=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:p,legacyLocale:g,parentContext:v,iconPrefixCls:x,theme:b,componentDisabled:y,segmented:S,statistic:C,spin:_,calendar:R,carousel:E,cascader:O,collapse:k,typography:N,checkbox:z,descriptions:F,divider:j,drawer:I,skeleton:T,steps:w,image:P,layout:A,list:M,mentions:L,modal:K,progress:W,result:q,slider:X,breadcrumb:Q,menu:Z,pagination:J,input:G,textArea:ee,empty:ae,badge:V,radio:ce,rate:B,switch:ue,transfer:le,avatar:be,message:xe,tag:fe,table:ge,card:we,tabs:Me,timeline:ve,timePicker:de,upload:Ce,notification:Se,tree:st,colorPicker:nt,datePicker:Fe,rangePicker:We,flex:et,wave:rt,dropdown:De,warning:Ie,tour:mt,floatButtonGroup:Ye,variant:ze,inputNumber:me,treeSelect:$e}=e,Je=f.useCallback((Qe,Ge)=>{const{prefixCls:dt}=e;if(Ge)return Ge;const Ct=dt||v.getPrefixCls("");return Qe?`${Ct}-${Qe}`:Ct},[v.getPrefixCls,e.prefixCls]),lt=x||v.iconPrefixCls||bb,pt=n||v.csp;Eb(lt,pt);const gt=T_(b,v.theme,{prefixCls:Je("")});process.env.NODE_ENV!=="production"&&(Rd=Rd||!!gt);const Ue={csp:pt,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:m??h,popupOverflow:p,getPrefixCls:Je,iconPrefixCls:lt,theme:gt,segmented:S,statistic:C,spin:_,calendar:R,carousel:E,cascader:O,collapse:k,typography:N,checkbox:z,descriptions:F,divider:j,drawer:I,skeleton:T,steps:w,image:P,input:G,textArea:ee,layout:A,list:M,mentions:L,modal:K,progress:W,result:q,slider:X,breadcrumb:Q,menu:Z,pagination:J,empty:ae,badge:V,radio:ce,rate:B,switch:ue,transfer:le,avatar:be,message:xe,tag:fe,table:ge,card:we,tabs:Me,timeline:ve,timePicker:de,upload:Ce,notification:Se,tree:st,colorPicker:nt,datePicker:Fe,rangePicker:We,flex:et,wave:rt,dropdown:De,warning:Ie,tour:mt,floatButtonGroup:Ye,variant:ze,inputNumber:me,treeSelect:$e};process.env.NODE_ENV!=="production"&&qt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const qe=Object.assign({},v);Object.keys(Ue).forEach(Qe=>{Ue[Qe]!==void 0&&(qe[Qe]=Ue[Qe])}),J_.forEach(Qe=>{const Ge=e[Qe];Ge&&(qe[Qe]=Ge)}),typeof r<"u"&&(qe.button=Object.assign({autoInsertSpace:r},qe.button));const He=wl(()=>qe,qe,(Qe,Ge)=>{const dt=Object.keys(Qe),Ct=Object.keys(Ge);return dt.length!==Ct.length||dt.some(Dt=>Qe[Dt]!==Ge[Dt])}),Ee=f.useMemo(()=>({prefixCls:lt,csp:pt}),[lt,pt]);let _e=f.createElement(f.Fragment,null,f.createElement(Q_,{dropdownMatchSelectWidth:h}),t);const Be=f.useMemo(()=>{var Qe,Ge,dt,Ct;return Fa(((Qe=Za.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((dt=(Ge=He.locale)===null||Ge===void 0?void 0:Ge.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((Ct=He.form)===null||Ct===void 0?void 0:Ct.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[He,o==null?void 0:o.validateMessages]);Object.keys(Be).length>0&&(_e=f.createElement(mw.Provider,{value:Be},_e)),s&&(_e=f.createElement(db,{locale:s,_ANT_MARK__:ub},_e)),(lt||pt)&&(_e=f.createElement(zf.Provider,{value:Ee},_e)),l&&(_e=f.createElement(t_,{size:l},_e)),_e=f.createElement(X_,null,_e);const Tt=f.useMemo(()=>{const Qe=gt||{},{algorithm:Ge,token:dt,components:Ct,cssVar:Dt}=Qe,jt=Z_(Qe,["algorithm","token","components","cssVar"]),at=Ge&&(!Array.isArray(Ge)||Ge.length>0)?nd(Ge):gb,D={};Object.entries(Ct||{}).forEach(ie=>{let[pe,Ne]=ie;const Pe=Object.assign({},Ne);"algorithm"in Pe&&(Pe.algorithm===!0?Pe.theme=at:(Array.isArray(Pe.algorithm)||typeof Pe.algorithm=="function")&&(Pe.theme=nd(Pe.algorithm)),delete Pe.algorithm),D[pe]=Pe});const te=Object.assign(Object.assign({},po),dt);return Object.assign(Object.assign({},jt),{theme:at,token:te,components:D,override:Object.assign({override:te},D),cssVar:Dt})},[gt]);return b&&(_e=f.createElement(mb.Provider,{value:Tt},_e)),He.warning&&(_e=f.createElement(lb.Provider,{value:He.warning},_e)),y!==void 0&&(_e=f.createElement(e_,{disabled:y},_e)),f.createElement(vt.Provider,{value:He},_e)},fa=e=>{const t=f.useContext(vt),n=f.useContext(Bf);return f.createElement(r$,Object.assign({parentContext:t,legacyLocale:n},e))};fa.ConfigContext=vt;fa.SizeContext=Ja;fa.config=n$;fa.useConfig=n_;Object.defineProperty(fa,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&ci(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ja)});process.env.NODE_ENV!=="production"&&(fa.displayName="ConfigProvider");function Db(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function a$(e){return Db(e)instanceof ShadowRoot}function Qs(e){return a$(e)?Db(e):null}function i$(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function o$(e,t){xt(e,"[@ant-design/icons] ".concat(t))}function Jv(e){return ke(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ke(e.icon)==="object"||typeof e.icon=="function")}function ep(){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[i$(n)]=r}return t},{})}function Pd(e,t,n){return n?$.createElement(e.tag,Y(Y({key:t},ep(e.attrs)),n),(e.children||[]).map(function(r,a){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):$.createElement(e.tag,Y({key:t},ep(e.attrs)),(e.children||[]).map(function(r,a){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function zb(e){return vo(e)[0]}function Bb(e){return e?Array.isArray(e)?e:[e]:[]}var s$=`
|
|
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,41 +211,69 @@ 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`,x$="".concat(b$," ").concat(y$).split(/[\s\n]+/),C$="aria-",S$="data-";function tp(e,t){return e.indexOf(t)===0}function w$(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=Y({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||tp(a,C$))||n.data&&tp(a,S$)||n.attr&&x$.includes(a))&&(r[a]=e[a])}),r}function Ub(e){return e&&$.isValidElement(e)&&e.type===$.Fragment}const _$=(e,t,n)=>$.isValidElement(e)?$.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Pl(e,t){return _$(e,e,t)}const jo=e=>{const[,,,,t]=xr();return t?`${e}-css-var`:""};var ye={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>=ye.F1&&n<=ye.F12)return!1;switch(n){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ye.ZERO&&t<=ye.NINE||t>=ye.NUM_ZERO&&t<=ye.NUM_MULTIPLY||t>=ye.A&&t<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$$={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"},E$=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:$$}))},qf=f.forwardRef(E$);process.env.NODE_ENV!=="production"&&(qf.displayName="LoadingOutlined");const Gf=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(Gf.displayName="zIndexContext");const Wr=100,O$=10,T$=Wr*O$,qb={Modal:Wr,Drawer:Wr,Popover:Wr,Popconfirm:Wr,Tooltip:Wr,Tour:Wr},R$={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function P$(e){return e in qb}function M$(e,t){const[,n]=xr(),r=$.useContext(Gf),a=P$(e);let i;if(t!==void 0)i=[t,t];else{let o=r??0;a?o+=(r?0:n.zIndexPopupBase)+qb[e]:o+=R$[e],i=[r===void 0?t:o,o]}if(process.env.NODE_ENV!=="production"){const o=qt(e),s=n.zIndexPopupBase+T$,l=i[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 i}function fn(){fn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(T,w,P){T[w]=P.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(T,w,P){return Object.defineProperty(T,w,{value:P,enumerable:!0,configurable:!0,writable:!0}),T[w]}try{c({},"")}catch{c=function(P,A,M){return P[A]=M}}function u(T,w,P,A){var M=w&&w.prototype instanceof x?w:x,L=Object.create(M.prototype),K=new j(A||[]);return a(L,"_invoke",{value:k(T,P,K)}),L}function d(T,w,P){try{return{type:"normal",arg:T.call(w,P)}}catch(A){return{type:"throw",arg:A}}}t.wrap=u;var h="suspendedStart",m="suspendedYield",p="executing",g="completed",v={};function x(){}function b(){}function y(){}var S={};c(S,o,function(){return this});var C=Object.getPrototypeOf,_=C&&C(C(I([])));_&&_!==n&&r.call(_,o)&&(S=_);var R=y.prototype=x.prototype=Object.create(S);function E(T){["next","throw","return"].forEach(function(w){c(T,w,function(P){return this._invoke(w,P)})})}function O(T,w){function P(M,L,K,W){var q=d(T[M],T,L);if(q.type!=="throw"){var X=q.arg,Q=X.value;return Q&&ke(Q)=="object"&&r.call(Q,"__await")?w.resolve(Q.__await).then(function(Z){P("next",Z,K,W)},function(Z){P("throw",Z,K,W)}):w.resolve(Q).then(function(Z){X.value=Z,K(X)},function(Z){return P("throw",Z,K,W)})}W(q.arg)}var A;a(this,"_invoke",{value:function(L,K){function W(){return new w(function(q,X){P(L,K,q,X)})}return A=A?A.then(W,W):W()}})}function k(T,w,P){var A=h;return function(M,L){if(A===p)throw Error("Generator is already running");if(A===g){if(M==="throw")throw L;return{value:e,done:!0}}for(P.method=M,P.arg=L;;){var K=P.delegate;if(K){var W=N(K,P);if(W){if(W===v)continue;return W}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(A===h)throw A=g,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);A=p;var q=d(T,w,P);if(q.type==="normal"){if(A=P.done?g:m,q.arg===v)continue;return{value:q.arg,done:P.done}}q.type==="throw"&&(A=g,P.method="throw",P.arg=q.arg)}}}function N(T,w){var P=w.method,A=T.iterator[P];if(A===e)return w.delegate=null,P==="throw"&&T.iterator.return&&(w.method="return",w.arg=e,N(T,w),w.method==="throw")||P!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+P+"' method")),v;var M=d(A,T.iterator,w.arg);if(M.type==="throw")return w.method="throw",w.arg=M.arg,w.delegate=null,v;var L=M.arg;return L?L.done?(w[T.resultName]=L.value,w.next=T.nextLoc,w.method!=="return"&&(w.method="next",w.arg=e),w.delegate=null,v):L:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,v)}function z(T){var w={tryLoc:T[0]};1 in T&&(w.catchLoc=T[1]),2 in T&&(w.finallyLoc=T[2],w.afterLoc=T[3]),this.tryEntries.push(w)}function F(T){var w=T.completion||{};w.type="normal",delete w.arg,T.completion=w}function j(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(z,this),this.reset(!0)}function I(T){if(T||T===""){var w=T[o];if(w)return w.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var P=-1,A=function M(){for(;++P<T.length;)if(r.call(T,P))return M.value=T[P],M.done=!1,M;return M.value=e,M.done=!0,M};return A.next=A}}throw new TypeError(ke(T)+" is not iterable")}return b.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var w=typeof T=="function"&&T.constructor;return!!w&&(w===b||(w.displayName||w.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,y):(T.__proto__=y,c(T,l,"GeneratorFunction")),T.prototype=Object.create(R),T},t.awrap=function(T){return{__await:T}},E(O.prototype),c(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,w,P,A,M){M===void 0&&(M=Promise);var L=new O(u(T,w,P,A),M);return t.isGeneratorFunction(w)?L:L.next().then(function(K){return K.done?K.value:L.next()})},E(R),c(R,l,"Generator"),c(R,o,function(){return this}),c(R,"toString",function(){return"[object Generator]"}),t.keys=function(T){var w=Object(T),P=[];for(var A in w)P.push(A);return P.reverse(),function M(){for(;P.length;){var L=P.pop();if(L in w)return M.value=L,M.done=!1,M}return M.done=!0,M}},t.values=I,j.prototype={constructor:j,reset:function(w){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(F),!w)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var P=this;function A(X,Q){return K.type="throw",K.arg=w,P.next=X,Q&&(P.method="next",P.arg=e),!!Q}for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M],K=L.completion;if(L.tryLoc==="root")return A("end");if(L.tryLoc<=this.prev){var W=r.call(L,"catchLoc"),q=r.call(L,"finallyLoc");if(W&&q){if(this.prev<L.catchLoc)return A(L.catchLoc,!0);if(this.prev<L.finallyLoc)return A(L.finallyLoc)}else if(W){if(this.prev<L.catchLoc)return A(L.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return A(L.finallyLoc)}}}},abrupt:function(w,P){for(var A=this.tryEntries.length-1;A>=0;--A){var M=this.tryEntries[A];if(M.tryLoc<=this.prev&&r.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var L=M;break}}L&&(w==="break"||w==="continue")&&L.tryLoc<=P&&P<=L.finallyLoc&&(L=null);var K=L?L.completion:{};return K.type=w,K.arg=P,L?(this.method="next",this.next=L.finallyLoc,v):this.complete(K)},complete:function(w,P){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&P&&(this.next=P),v},finish:function(w){for(var P=this.tryEntries.length-1;P>=0;--P){var A=this.tryEntries[P];if(A.finallyLoc===w)return this.complete(A.completion,A.afterLoc),F(A),v}},catch:function(w){for(var P=this.tryEntries.length-1;P>=0;--P){var A=this.tryEntries[P];if(A.tryLoc===w){var M=A.completion;if(M.type==="throw"){var L=M.arg;F(A)}return L}}throw Error("illegal catch attempt")},delegateYield:function(w,P,A){return this.delegate={iterator:I(w),resultName:P,nextLoc:A},this.method==="next"&&(this.arg=e),v}},t}function np(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(l){np(i,r,a,o,s,"next",l)}function s(l){np(i,r,a,o,s,"throw",l)}o(void 0)})}}var ko=Y({},yS),I$=ko.version,N$=ko.render,A$=ko.unmountComponentAtNode,Ml;try{var j$=Number((I$||"").split(".")[0]);j$>=18&&(Ml=ko.createRoot)}catch{}function rp(e){var t=ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ke(t)==="object"&&(t.usingClientEntryPoint=e)}var Zs="__rc_react_root__";function k$(e,t){rp(!0);var n=t[Zs]||Ml(t);rp(!1),n.render(e),t[Zs]=n}function F$(e,t){N$(e,t)}function L$(e,t){if(Ml){k$(e,t);return}F$(e,t)}function D$(e){return Md.apply(this,arguments)}function Md(){return Md=ha(fn().mark(function e(t){return fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Zs])===null||a===void 0||a.unmount(),delete t[Zs]}));case 1:case"end":return r.stop()}},e)})),Md.apply(this,arguments)}function z$(e){A$(e)}function B$(e){return Id.apply(this,arguments)}function Id(){return Id=ha(fn().mark(function e(t){return fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ml===void 0){r.next=2;break}return r.abrupt("return",D$(t));case 2:z$(t);case 3:case"end":return r.stop()}},e)})),Id.apply(this,arguments)}const Gb=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Kf=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 a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1},V$=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(",")}}}}},H$=S_("Wave",e=>[V$(e)]),Yf=`${Ys}-wave-target`;function W$(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 ru(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&W$(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function U$(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ru(t)?t:ru(n)?n:ru(r)?r:null}function au(e){return Number.isNaN(e)?0:e}const q$=e=>{const{className:t,target:n,component:r}=e,a=f.useRef(null),[i,o]=f.useState(null),[s,l]=f.useState([]),[c,u]=f.useState(0),[d,h]=f.useState(0),[m,p]=f.useState(0),[g,v]=f.useState(0),[x,b]=f.useState(!1),y={left:c,top:d,width:m,height:g,borderRadius:s.map(_=>`${_}px`).join(" ")};i&&(y["--wave-color"]=i);function S(){const _=getComputedStyle(n);o(U$(n));const R=_.position==="static",{borderLeftWidth:E,borderTopWidth:O}=_;u(R?n.offsetLeft:au(-parseFloat(E))),h(R?n.offsetTop:au(-parseFloat(O))),p(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:N,borderBottomLeftRadius:z,borderBottomRightRadius:F}=_;l([k,N,F,z].map(j=>au(parseFloat(j))))}if(f.useEffect(()=>{if(n){const _=Ut(()=>{S(),b(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(S),R.observe(n)),()=>{Ut.cancel(_),R==null||R.disconnect()}}},[]),!x)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Yf));return f.createElement(da,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,R)=>{var E;if(R.deadline||R.propertyName==="opacity"){const O=(E=a.current)===null||E===void 0?void 0:E.parentElement;B$(O).then(()=>{O==null||O.remove()})}return!1}},(_,R)=>{let{className:E}=_;return f.createElement("div",{ref:Un(a,R),className:oe(t,E,{"wave-quick":C}),style:y})})},G$=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.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),L$(f.createElement(q$,Object.assign({},t,{target:e})),a)},K$=(e,t,n)=>{const{wave:r}=f.useContext(vt),[,a,i]=xr(),o=an(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Yf}`)||u,{showEffect:h}=r||{};(h||G$)(d,{className:t,token:a,component:n,event:c,hashId:i})}),s=f.useRef();return c=>{Ut.cancel(s.current),s.current=Ut(()=>{o(c)})}},Xf=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=$.useContext(vt),i=$.useRef(null),o=a("wave"),[,s]=H$(o),l=K$(i,oe(o,s),r);if($.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=h=>{!Kf(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!$.isValidElement(t))return t??null;const c=ua(t)?Un(t.ref,i):i;return Pl(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Xf.displayName="Wave");const va=e=>{const t=$.useContext(Ja);return $.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Y$=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},X$=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"}}}},Q$=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}}}},Kb=Pn("Space",e=>{const t=Yt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[X$(t),Q$(t),Y$(t)]},()=>({}),{resetStyle:!1});var Yb=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Il=f.createContext(null),Xb=(e,t)=>{const n=f.useContext(Il),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=n,s=a==="vertical"?"-vertical-":"-";return oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${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}},Z$=e=>{let{children:t}=e;return f.createElement(Il.Provider,{value:null},t)},J$=e=>{var{children:t}=e,n=Yb(e,["children"]);return f.createElement(Il.Provider,{value:n},t)},eE=e=>{const{getPrefixCls:t,direction:n}=f.useContext(vt),{size:r,direction:a,block:i,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=Yb(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=va(y=>r??y),h=t("space-compact",o),[m,p]=Kb(h),g=oe(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:a==="vertical"},s,l),v=f.useContext(Il),x=tr(c),b=f.useMemo(()=>x.map((y,S)=>{const C=(y==null?void 0:y.key)||`${h}-item-${S}`;return f.createElement(J$,{key:C,compactSize:d,compactDirection:a,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===x.length-1&&(!v||(v==null?void 0:v.isLastItem))},y)}),[r,x,v]);return x.length===0?null:m(f.createElement("div",Object.assign({className:g},u),b))},tE=eE;var nE=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Qb=f.createContext(void 0),rE=e=>{const{getPrefixCls:t,direction:n}=f.useContext(vt),{prefixCls:r,size:a,className:i}=e,o=nE(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=xr();let c="";switch(a){case"large":c="lg";break;case"small":c="sm";break}if(process.env.NODE_ENV!=="production"){const d=qt("Button.Group");process.env.NODE_ENV!=="production"&&d(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const u=oe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f.createElement(Qb.Provider,{value:a},f.createElement("div",Object.assign({},o,{className:u})))},ap=/^[\u4e00-\u9fa5]{2}$/,Nd=ap.test.bind(ap);function ip(e){return typeof e=="string"}function hs(e){return e==="text"||e==="link"}function aE(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ip(e.type)&&Nd(e.props.children)?Pl(e,{children:e.props.children.split("").join(n)}):ip(e)?Nd(e)?$.createElement("span",null,e.split("").join(n)):$.createElement("span",null,e):Ub(e)?$.createElement("span",null,e):e}function iE(e,t){let n=!1;const r=[];return $.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${a}`}else r.push(a);n=o}),$.Children.map(r,a=>aE(a,t))}const Zb=$.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:i}=e,o=oe(`${i}-icon`,n);return $.createElement("span",{ref:t,className:o,style:r},a)}),op=$.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:i}=e,o=oe(`${n}-loading-icon`,r);return $.createElement(Zb,{prefixCls:n,className:o,style:a,ref:t},$.createElement(qf,{className:i}))}),iu=()=>({width:0,opacity:0,transform:"scale(0)"}),ou=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),oE=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:i}=e,o=!!n;return r?$.createElement(op,{prefixCls:t,className:a,style:i}):$.createElement(da,{visible:o,motionName:`${t}-loading-icon-motion`,motionLeave:o,removeOnLeave:!0,onAppearStart:iu,onAppearActive:ou,onEnterStart:iu,onEnterActive:ou,onLeaveStart:ou,onLeaveActive:iu},(s,l)=>{let{className:c,style:u}=s;return $.createElement(op,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},sp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sE=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},sp(`${t}-primary`,a),sp(`${t}-danger`,i)]}},Jb=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ey=e=>{var t,n,r,a,i,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=(a=e.contentLineHeight)!==null&&a!==void 0?a:Fs(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Fs(l),h=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:Fs(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:h,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*h)/2-e.lineWidth,0)}},lE=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:`${se(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({},Wf(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"}}}},yr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),cE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),uE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),dE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),mo=(e,t,n,r,a,i,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},yr(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),Qf=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},dE(e))}),ty=e=>Object.assign({},Qf(e)),Js=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ny=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),mo(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},yr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mo(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Qf(e))}),fE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),yr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),mo(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},yr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),mo(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qf(e))}),hE=e=>Object.assign(Object.assign({},ny(e)),{borderStyle:"dashed"}),vE=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Js(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Js(e))}),pE=e=>Object.assign(Object.assign(Object.assign({},yr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Js(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Js(e)),yr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),gE=e=>{const{componentCls:t}=e;return{[`${t}-default`]:ny(e),[`${t}-primary`]:fE(e),[`${t}-dashed`]:hE(e),[`${t}-link`]:vE(e),[`${t}-text`]:pE(e),[`${t}-ghost`]:mo(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Zf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:i,borderRadius:o,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:i,height:r,padding:`${se(c)} ${se(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}`]:cE(e)},{[`${n}${n}-round${t}`]:uE(e)}]},mE=e=>{const t=Yt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Zf(t,e.componentCls)},bE=e=>{const t=Yt(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 Zf(t,`${e.componentCls}-sm`)},yE=e=>{const t=Yt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Zf(t,`${e.componentCls}-lg`)},xE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},CE=Pn("Button",e=>{const t=Jb(e);return[lE(t),mE(t),bE(t),yE(t),xE(t),gE(t),sE(t)]},ey,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function SE(e,t,n){const{focusElCls:r,focus:a,borderElCls:i}=n,o=i?"> *":"",s=["hover",a?"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 wE(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";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 ry(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({},SE(e,r,t)),wE(n,r,t))}}function _E(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 $E(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 EE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_E(e,t)),$E(e.componentCls,t))}}const OE=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% + ${se(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% + ${se(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},TE=w_(["Button","compact"],e=>{const t=Jb(e);return[ry(t),EE(t),OE(t)]},ey);var RE=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function PE(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 ME=$.forwardRef((e,t)=>{var n,r,a;const{loading:i=!1,prefixCls:o,type:s,danger:l=!1,shape:c="default",size:u,styles:d,disabled:h,className:m,rootClassName:p,children:g,icon:v,iconPosition:x="start",ghost:b=!1,block:y=!1,htmlType:S="button",classNames:C,style:_={},autoInsertSpace:R}=e,E=RE(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=s||"default",{getPrefixCls:k,direction:N,button:z}=$.useContext(vt),F=(n=R??(z==null?void 0:z.autoInsertSpace))!==null&&n!==void 0?n:!0,j=k("btn",o),[I,T,w]=CE(j),P=$.useContext(ra),A=h??P,M=$.useContext(Qb),L=$.useMemo(()=>PE(i),[i]),[K,W]=$.useState(L.loading),[q,X]=$.useState(!1),Z=Un(t,$.createRef()),J=$.Children.count(g)===1&&!v&&!hs(O);$.useEffect(()=>{let de=null;L.delay>0?de=setTimeout(()=>{de=null,W(!0)},L.delay):W(L.loading);function Ce(){de&&(clearTimeout(de),de=null)}return Ce},[L]),$.useEffect(()=>{if(!Z||!Z.current||!F)return;const de=Z.current.textContent;J&&Nd(de)?q||X(!0):q&&X(!1)},[Z]);const G=de=>{const{onClick:Ce}=e;if(K||A){de.preventDefault();return}Ce==null||Ce(de)};if(process.env.NODE_ENV!=="production"){const de=qt("Button");process.env.NODE_ENV!=="production"&&de(!(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"&&de(!(b&&hs(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ee,compactItemClassnames:ae}=Xb(j,N),V={large:"lg",small:"sm",middle:void 0},ce=va(de=>{var Ce,Se;return(Se=(Ce=u??ee)!==null&&Ce!==void 0?Ce:M)!==null&&Se!==void 0?Se:de}),B=ce&&V[ce]||"",ue=K?"loading":v,le=qn(E,["navigate"]),be=oe(j,T,w,{[`${j}-${c}`]:c!=="default"&&c,[`${j}-${O}`]:O,[`${j}-${B}`]:B,[`${j}-icon-only`]:!g&&g!==0&&!!ue,[`${j}-background-ghost`]:b&&!hs(O),[`${j}-loading`]:K,[`${j}-two-chinese-chars`]:q&&F&&!K,[`${j}-block`]:y,[`${j}-dangerous`]:l,[`${j}-rtl`]:N==="rtl",[`${j}-icon-end`]:x==="end"},ae,m,p,z==null?void 0:z.className),xe=Object.assign(Object.assign({},z==null?void 0:z.style),_),fe=oe(C==null?void 0:C.icon,(r=z==null?void 0:z.classNames)===null||r===void 0?void 0:r.icon),ge=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((a=z==null?void 0:z.styles)===null||a===void 0?void 0:a.icon)||{}),we=v&&!K?$.createElement(Zb,{prefixCls:j,className:fe,style:ge},v):$.createElement(oE,{existIcon:!!v,prefixCls:j,loading:K}),Me=g||g===0?iE(g,J&&F):null;if(le.href!==void 0)return I($.createElement("a",Object.assign({},le,{className:oe(be,{[`${j}-disabled`]:A}),href:A?void 0:le.href,style:xe,onClick:G,ref:Z,tabIndex:A?-1:0}),we,Me));let ve=$.createElement("button",Object.assign({},E,{type:S,className:be,style:xe,onClick:G,disabled:A,ref:Z}),we,Me,!!ae&&$.createElement(TE,{key:"compact",prefixCls:j}));return hs(O)||(ve=$.createElement(Xf,{component:"Button",disabled:K},ve)),I(ve)}),Fo=ME;Fo.Group=rE;Fo.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Fo.displayName="Button");var ay=f.createContext(null),lp=[];function IE(e,t){var n=f.useState(function(){if(!dn())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&p.setAttribute("data-debug",t),p}),r=re(n,1),a=r[0],i=f.useRef(!1),o=f.useContext(ay),s=f.useState(lp),l=re(s,2),c=l[0],u=l[1],d=o||(i.current?void 0:function(p){u(function(g){var v=[p].concat(Oe(g));return v})});function h(){a.parentElement||document.body.appendChild(a),i.current=!0}function m(){var p;(p=a.parentElement)===null||p===void 0||p.removeChild(a),i.current=!1}return kt(function(){return e?o?o(h):h():m(),m},[e]),kt(function(){c.length&&(c.forEach(function(p){return p()}),u(lp))},[c]),[a,d]}function NE(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 a,i;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,";"):"";gr(`
|
|
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
222
|
`).concat(u,`
|
|
223
223
|
`).concat(d,`
|
|
224
|
-
}`),t)}catch(p){console.error(p),
|
|
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(o?"width: calc(100% - ".concat(
|
|
228
|
-
}`),a)}else co(a);return function(){co(a)}},[t,a])}var LE=!1;function DE(e){return LE}var up=function(t){return t===!1?!1:!dn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Jf=f.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer,i=e.debug,o=e.autoDestroy,s=o===void 0?!0:o,l=e.children,c=f.useState(n),u=re(c,2),d=u[0],h=u[1],m=d||n;process.env.NODE_ENV!=="production"&&xt(dn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),f.useEffect(function(){(s||n)&&h(n)},[n,s]);var p=f.useState(function(){return up(a)}),g=re(p,2),v=g[0],x=g[1];f.useEffect(function(){var z=up(a);x(z??null)});var b=IE(m&&!v,i),y=re(b,2),S=y[0],C=y[1],_=v??S;FE(r&&n&&dn()&&(_===S||_===document.body));var R=null;if(l&&ua(l)&&t){var E=l;R=E.ref}var O=No(R,t);if(!m||!dn()||v===void 0)return null;var k=_===!1||DE(),N=l;return t&&(N=f.cloneElement(l,{ref:O})),f.createElement(ay.Provider,{value:C},k?N:na.createPortal(N,_))});process.env.NODE_ENV!=="production"&&(Jf.displayName="Portal");function zE(){var e=Y({},f);return e.useId}var dp=0,fp=zE();const BE=fp?function(t){var n=fp();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=f.useState("ssr-id"),r=re(n,2),a=r[0],i=r[1];return f.useEffect(function(){var o=dp;dp+=1,i("rc_unique_".concat(o))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var Xr="RC_FORM_INTERNAL_HOOKS",Ot=function(){xt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ei=f.createContext({getFieldValue:Ot,getFieldsValue:Ot,getFieldError:Ot,getFieldWarning:Ot,getFieldsError:Ot,isFieldsTouched:Ot,isFieldTouched:Ot,isFieldValidating:Ot,isFieldsValidating:Ot,resetFields:Ot,setFields:Ot,setFieldValue:Ot,setFieldsValue:Ot,validateFields:Ot,submit:Ot,getInternalHooks:function(){return Ot(),{dispatch:Ot,initEntityValue:Ot,registerField:Ot,useSubscribe:Ot,setInitialValues:Ot,destroyForm:Ot,setCallbacks:Ot,registerWatch:Ot,getFields:Ot,setValidateMessages:Ot,setPreserve:Ot,getInitialValue:Ot}}}),el=f.createContext(null);function Ad(e){return e==null?[]:Array.isArray(e)?e:[e]}function VE(e){return e&&!!e._init}function jd(){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 kd=jd();function HE(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function WE(e,t,n){if(Nf())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&oo(a,n.prototype),a}function Fd(e){var t=typeof Map=="function"?new Map:void 0;return Fd=function(r){if(r===null||!HE(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,a)}function a(){return WE(r,arguments,so(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),oo(a,r)},Fd(e)}var UE=/%[sdj%]/g,iy=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(iy=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 Ld(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 yn(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 a=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(UE,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function qE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Gt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qE(t)&&typeof e=="string"&&!e)}function GE(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,Oe(s||[])),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function hp(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<a?t(e[s],i):n([])}i([])}function KE(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Oe(e[n]||[]))}),t}var vp=function(e){Dr(n,e);var t=zr(n);function n(r,a){var i;return Jt(this,n),i=t.call(this,"Async Validation Error"),U(tt(i),"errors",void 0),U(tt(i),"fields",void 0),i.errors=r,i.fields=a,i}return en(n)}(Fd(Error));function YE(e,t,n,r,a){if(t.first){var i=new Promise(function(h,m){var p=function(x){return r(x),x.length?m(new vp(x,Ld(x))):h(a)},g=KE(e);hp(g,n,p)});return i.catch(function(h){return h}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,m){var p=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?m(new vp(u,Ld(u))):h(a)};s.length||(r(u),h(a)),s.forEach(function(g){var v=e[g];o.indexOf(g)!==-1?hp(v,n,p):GE(v,n,p)})});return d.catch(function(h){return h}),d}function XE(e){return!!(e&&e.message!==void 0)}function QE(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function pp(e,t){return function(n){var r;return e.fullFields?r=QE(t,e.fullFields):r=t[n.field||e.fullField],XE(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 gp(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ke(r)==="object"&&ke(e[n])==="object"?e[n]=Y(Y({},e[n]),r):e[n]=r}}return e}var _a="enum",ZE=function(t,n,r,a,i){t[_a]=Array.isArray(t[_a])?t[_a]:[],t[_a].indexOf(n)===-1&&a.push(yn(i.messages[_a],t.fullField,t[_a].join(", ")))},JE=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(yn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||a.push(yn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},e6=function(t,n,r,a,i){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,h=typeof n=="number",m=typeof n=="string",p=Array.isArray(n);if(h?d="number":m?d="string":p&&(d="array"),!d)return!1;p&&(u=n.length),m&&(u=n.replace(c,"_").length),o?u!==t.len&&a.push(yn(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?a.push(yn(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?a.push(yn(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&a.push(yn(i.messages[d].range,t.fullField,t.min,t.max))},oy=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||Gt(n,o||t.type))&&a.push(yn(i.messages.required,t.fullField))},vs;const t6=function(){if(vs)return vs;var e="[a-fA-F\\d:]",t=function(_){return _&&_.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}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(_){return _&&_.exact?s:new RegExp("(?:".concat(t(_)).concat(n).concat(t(_),")|(?:").concat(t(_)).concat(o).concat(t(_),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(o).concat(t(C)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(m,"|").concat(p,"|").concat(g).concat(v).concat(x,")").concat(b).concat(y);return vs=new RegExp("(?:^".concat(S,"$)"),"i"),vs};var mp={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},qi={integer:function(t){return qi.number(t)&&parseInt(t,10)===t},float:function(t){return qi.number(t)&&!qi.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 ke(t)==="object"&&!qi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(mp.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(t6())},hex:function(t){return typeof t=="string"&&!!t.match(mp.hex)}},n6=function(t,n,r,a,i){if(t.required&&n===void 0){oy(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?qi[s](n)||a.push(yn(i.messages.types[s],t.fullField,t.type)):s&&ke(n)!==t.type&&a.push(yn(i.messages.types[s],t.fullField,t.type))},r6=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(yn(i.messages.whitespace,t.fullField))};const it={required:oy,whitespace:r6,type:n6,range:e6,enum:ZE,pattern:JE};var a6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i)}r(o)},i6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();it.required(t,n,a,o,i,"array"),n!=null&&(it.type(t,n,a,o,i),it.range(t,n,a,o,i))}r(o)},o6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&it.type(t,n,a,o,i)}r(o)},s6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n,"date")&&!t.required)return r();if(it.required(t,n,a,o,i),!Gt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),it.type(t,l,a,o,i),l&&it.range(t,l.getTime(),a,o,i)}}r(o)},l6="enum",c6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&it[l6](t,n,a,o,i)}r(o)},u6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&(it.type(t,n,a,o,i),it.range(t,n,a,o,i))}r(o)},d6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&(it.type(t,n,a,o,i),it.range(t,n,a,o,i))}r(o)},f6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&it.type(t,n,a,o,i)}r(o)},h6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&(it.type(t,n,a,o,i),it.range(t,n,a,o,i))}r(o)},v6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),n!==void 0&&it.type(t,n,a,o,i)}r(o)},p6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n,"string")&&!t.required)return r();it.required(t,n,a,o,i),Gt(n,"string")||it.pattern(t,n,a,o,i)}r(o)},g6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n)&&!t.required)return r();it.required(t,n,a,o,i),Gt(n)||it.type(t,n,a,o,i)}r(o)},m6=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":ke(n);it.required(t,n,a,o,i,s),r(o)},b6=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Gt(n,"string")&&!t.required)return r();it.required(t,n,a,o,i,"string"),Gt(n,"string")||(it.type(t,n,a,o,i),it.range(t,n,a,o,i),it.pattern(t,n,a,o,i),t.whitespace===!0&&it.whitespace(t,n,a,o,i))}r(o)},su=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Gt(n,o)&&!t.required)return r();it.required(t,n,a,s,i,o),Gt(n,o)||it.type(t,n,a,s,i)}r(s)};const Ji={string:b6,method:f6,number:h6,boolean:o6,regexp:g6,integer:d6,float:u6,array:i6,object:v6,enum:c6,pattern:p6,date:s6,url:su,hex:su,email:su,required:m6,any:a6};var Lo=function(){function e(t){Jt(this,e),U(this,"rules",null),U(this,"_messages",kd),this.define(t)}return en(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ke(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var i=n[a];r.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=gp(jd(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=a,l=i;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 g=[],v={};function x(y){if(Array.isArray(y)){var S;g=(S=g).concat.apply(S,Oe(y))}else g.push(y)}for(var b=0;b<p.length;b++)x(p[b]);g.length?(v=Ld(g),l(g,v)):l(null,o)}if(s.messages){var u=this.messages();u===kd&&(u=jd()),gp(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach(function(p){var g=r.rules[p],v=o[p];g.forEach(function(x){var b=x;typeof b.transform=="function"&&(o===n&&(o=Y({},o)),v=o[p]=b.transform(v),v!=null&&(b.type=b.type||(Array.isArray(v)?"array":ke(v)))),typeof b=="function"?b={validator:b}:b=Y({},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 m={};return YE(d,s,function(p,g){var v=p.rule,x=(v.type==="object"||v.type==="array")&&(ke(v.fields)==="object"||ke(v.defaultField)==="object");x=x&&(v.required||!v.required&&p.value),v.field=p.field;function b(R,E){return Y(Y({},E),{},{fullField:"".concat(v.fullField,".").concat(R),fullFields:v.fullFields?[].concat(Oe(v.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(R)?R:[R];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var O=E.map(pp(v,o));if(s.first&&O.length)return m[v.field]=1,g(O);if(!x)g(O);else{if(v.required&&!p.value)return v.message!==void 0?O=[].concat(v.message).map(pp(v,o)):s.error&&(O=[s.error(v,yn(s.messages.required,v.field))]),g(O);var k={};v.defaultField&&Object.keys(p.value).map(function(F){k[F]=v.defaultField}),k=Y(Y({},k),p.rule.fields);var N={};Object.keys(k).forEach(function(F){var j=k[F],I=Array.isArray(j)?j:[j];N[F]=I.map(b.bind(null,F))});var z=new e(N);z.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),z.validate(p.value,p.rule.options||s,function(F){var j=[];O&&O.length&&j.push.apply(j,Oe(O)),F&&F.length&&j.push.apply(j,Oe(F)),g(j.length?j:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,p.value,y,p.source,s);else if(v.validator){try{S=v.validator(v,p.value,y,p.source,s)}catch(R){var C,_;(C=(_=console).error)===null||C===void 0||C.call(_,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}S===!0?y():S===!1?y(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?y(S):S instanceof Error&&y(S.message)}S&&S.then&&S.then(function(){return y()},function(R){return y(R)})},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&&!Ji.hasOwnProperty(n.type))throw new Error(yn("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Ji.required:Ji[this.getType(n)]||void 0}}]),e}();U(Lo,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ji[t]=n});U(Lo,"warning",iy);U(Lo,"messages",kd);U(Lo,"validators",Ji);var gn="'${name}' is not a valid ${type}",sy={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:gn,method:gn,array:gn,object:gn,number:gn,date:gn,boolean:gn,integer:gn,float:gn,regexp:gn,email:gn,url:gn,hex:gn},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}"}},bp=Lo;function y6(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 yp="CODE_LOGIC_ERROR";function Dd(e,t,n,r,a){return zd.apply(this,arguments)}function zd(){return zd=ha(fn().mark(function e(t,n,r,a,i){var o,s,l,c,u,d,h,m,p;return fn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=Y({},r),delete o.ruleIndex,bp.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(yp)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new bp(U({},t,[o])),u=Fa(sy,a.validateMessages),c.messages(u),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(U({},t,n),Y({},a)));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(x,b){var y=x.message,S=y===yp?u.default:y;return f.isValidElement(S)?f.cloneElement(S,{key:"error_".concat(b)}):S}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(x,b){return Dd("".concat(t,".").concat(b),x,l,a,i)}));case 21:return h=v.sent,v.abrupt("return",h.reduce(function(x,b){return[].concat(Oe(x),Oe(b))},[]));case 23:return m=Y(Y({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=d.map(function(x){return typeof x=="string"?y6(x,m):x}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),zd.apply(this,arguments)}function x6(e,t,n,r,a,i){var o=e.join("."),s=n.map(function(u,d){var h=u.validator,m=Y(Y({},u),{},{ruleIndex:d});return h&&(m.validator=function(p,g,v){var x=!1,b=function(){for(var C=arguments.length,_=new Array(C),R=0;R<C;R++)_[R]=arguments[R];Promise.resolve().then(function(){xt(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||v.apply(void 0,_)})},y=h(p,g,b);x=y&&typeof y.then=="function"&&typeof y.catch=="function",xt(x,"`callback` is deprecated. Please return a promise instead."),x&&y.then(function(){v()}).catch(function(S){v(S||" ")})}),m}).sort(function(u,d){var h=u.warningOnly,m=u.ruleIndex,p=d.warningOnly,g=d.ruleIndex;return!!h==!!p?m-g:h?1:-1}),l;if(a===!0)l=new Promise(function(){var u=ha(fn().mark(function d(h,m){var p,g,v;return fn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:p=0;case 1:if(!(p<s.length)){b.next=12;break}return g=s[p],b.next=5,Dd(o,t,g,r,i);case 5:if(v=b.sent,!v.length){b.next=9;break}return m([{errors:v,rule:g}]),b.abrupt("return");case 9:p+=1,b.next=1;break;case 12:h([]);case 13:case"end":return b.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Dd(o,t,u,r,i).then(function(d){return{errors:d,rule:u}})});l=(a?S6(c):C6(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function C6(e){return Bd.apply(this,arguments)}function Bd(){return Bd=ha(fn().mark(function e(t){return fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var i,o=(i=[]).concat.apply(i,Oe(a));return o}));case 1:case"end":return r.stop()}},e)})),Bd.apply(this,arguments)}function S6(e){return Vd.apply(this,arguments)}function Vd(){return Vd=ha(fn().mark(function e(t){var n;return fn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(i){t.forEach(function(o){o.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)})),Vd.apply(this,arguments)}function Bt(e){return Ad(e)}function xp(e,t){var n={};return t.forEach(function(r){var a=Jn(e,r);n=jn(n,r,a)}),n}function Ba(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return ly(t,r,n)})}function ly(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,a){return e[a]===r})}function w6(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ke(e)!=="object"||ke(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Oe(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function _6(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ke(t.target)==="object"&&e in t.target?t.target[e]:t}function Cp(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],i=t-n;return i>0?[].concat(Oe(e.slice(0,n)),[a],Oe(e.slice(n,t)),Oe(e.slice(t+1,r))):i<0?[].concat(Oe(e.slice(0,t)),Oe(e.slice(t+1,n+1)),[a],Oe(e.slice(n+1,r))):e}var $6=["name"],wn=[];function lu(e,t,n,r,a,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==a}var eh=function(e){Dr(n,e);var t=zr(n);function n(r){var a;if(Jt(this,n),a=t.call(this,r),U(tt(a),"state",{resetCount:0}),U(tt(a),"cancelRegisterFunc",null),U(tt(a),"mounted",!1),U(tt(a),"touched",!1),U(tt(a),"dirty",!1),U(tt(a),"validatePromise",void 0),U(tt(a),"prevValidating",void 0),U(tt(a),"errors",wn),U(tt(a),"warnings",wn),U(tt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,d=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,Bt(d)),a.cancelRegisterFunc=null}),U(tt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(Oe(h),Oe(c)):[]}),U(tt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})}),U(tt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),U(tt(a),"metaCache",null),U(tt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=Y(Y({},a.getMeta()),{},{destroy:l});uo(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),U(tt(a),"onStoreChange",function(l,c,u){var d=a.props,h=d.shouldUpdate,m=d.dependencies,p=m===void 0?[]:m,g=d.onReset,v=u.store,x=a.getNamePath(),b=a.getValue(l),y=a.getValue(v),S=c&&Ba(c,x);switch(u.type==="valueUpdate"&&u.source==="external"&&!uo(b,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=wn,a.warnings=wn,a.triggerMetaEvent()),u.type){case"reset":if(!c||S){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=wn,a.warnings=wn,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(h&&lu(h,l,v,b,y,u)){a.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||wn),"warnings"in C&&(a.warnings=C.warnings||wn),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&Ba(c,x,!0)){a.reRender();return}if(h&&!x.length&&lu(h,l,v,b,y,u)){a.reRender();return}break}case"dependenciesUpdate":{var _=p.map(Bt);if(_.some(function(R){return Ba(u.relatedFields,R)})){a.reRender();return}break}default:if(S||(!p.length||x.length||h)&&lu(h,l,v,b,y,u)){a.reRender();return}break}h===!0&&a.reRender()}),U(tt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),d=l||{},h=d.triggerName,m=d.validateOnly,p=m===void 0?!1:m,g=Promise.resolve().then(ha(fn().mark(function v(){var x,b,y,S,C,_,R;return fn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(x=a.props,b=x.validateFirst,y=b===void 0?!1:b,S=x.messageVariables,C=x.validateDebounce,_=a.getRules(),h&&(_=_.filter(function(k){return k}).filter(function(k){var N=k.validateTrigger;if(!N)return!0;var z=Ad(N);return z.includes(h)})),!(C&&h)){O.next=10;break}return O.next=8,new Promise(function(k){setTimeout(k,C)});case 8:if(a.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return R=x6(c,u,_,l,y,S),R.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn;if(a.validatePromise===g){var N;a.validatePromise=null;var z=[],F=[];(N=k.forEach)===null||N===void 0||N.call(k,function(j){var I=j.rule.warningOnly,T=j.errors,w=T===void 0?wn:T;I?F.push.apply(F,Oe(w)):z.push.apply(z,Oe(w))}),a.errors=z,a.warnings=F,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",R);case 13:case"end":return O.stop()}},v)})));return p||(a.validatePromise=g,a.dirty=!0,a.errors=wn,a.warnings=wn,a.triggerMetaEvent(),a.reRender()),g}),U(tt(a),"isFieldValidating",function(){return!!a.validatePromise}),U(tt(a),"isFieldTouched",function(){return a.touched}),U(tt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(Xr),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),U(tt(a),"getErrors",function(){return a.errors}),U(tt(a),"getWarnings",function(){return a.warnings}),U(tt(a),"isListField",function(){return a.props.isListField}),U(tt(a),"isList",function(){return a.props.isList}),U(tt(a),"isPreserve",function(){return a.props.preserve}),U(tt(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}),U(tt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return Y(Y({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=tr(l);return u.length!==1||!f.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),U(tt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return Jn(l||c(!0),u)}),U(tt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,d=c.trigger,h=c.validateTrigger,m=c.getValueFromEvent,p=c.normalize,g=c.valuePropName,v=c.getValueProps,x=c.fieldContext,b=h!==void 0?h:x.validateTrigger,y=a.getNamePath(),S=x.getInternalHooks,C=x.getFieldsValue,_=S(Xr),R=_.dispatch,E=a.getValue(),O=v||function(j){return U({},g,j)},k=l[d],N=u!==void 0?O(E):{};process.env.NODE_ENV!=="production"&&N&&Object.keys(N).forEach(function(j){xt(typeof N[j]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(j,")"))});var z=Y(Y({},l),N);z[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var j,I=arguments.length,T=new Array(I),w=0;w<I;w++)T[w]=arguments[w];m?j=m.apply(void 0,T):j=_6.apply(void 0,[g].concat(T)),p&&(j=p(j,E,C(!0))),R({type:"updateValue",namePath:y,value:j}),k&&k.apply(void 0,T)};var F=Ad(b||[]);return F.forEach(function(j){var I=z[j];z[j]=function(){I&&I.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&R({type:"validateField",namePath:y,triggerName:j})}}),z}),r.fieldContext){var i=r.fieldContext.getInternalHooks,o=i(Xr),s=o.initEntityValue;s(tt(a))}return a}return en(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(Xr),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!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,i=this.props.children,o=this.getOnlyChild(i),s=o.child,l=o.isFunction,c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(xt(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:a},c)}}]),n}(f.Component);U(eh,"contextType",ei);U(eh,"defaultProps",{trigger:"onChange",valuePropName:"value"});function cy(e){var t=e.name,n=ot(e,$6),r=f.useContext(ei),a=f.useContext(el),i=t!==void 0?Bt(t):void 0,o="keep";return n.isListField||(o="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&xt(!1,"`preserve` should not apply on Form.List fields."),f.createElement(eh,Re({key:o,name:i,isListField:!!a},n,{fieldContext:r}))}function E6(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,i=e.validateTrigger,o=e.isListField,s=f.useContext(ei),l=f.useContext(el),c=f.useRef({keys:[],id:0}),u=c.current,d=f.useMemo(function(){var g=Bt(s.prefixName)||[];return[].concat(Oe(g),Oe(Bt(t)))},[s.prefixName,t]),h=f.useMemo(function(){return Y(Y({},s),{},{prefixName:d})},[s,d]),m=f.useMemo(function(){return{getKey:function(v){var x=d.length,b=v[x];return[u.keys[b],v.slice(x+1)]}}},[d]);if(typeof r!="function")return xt(!1,"Form.List only accepts function as children."),null;var p=function(v,x,b){var y=b.source;return y==="internal"?!1:v!==x};return f.createElement(el.Provider,{value:m},f.createElement(ei.Provider,{value:h},f.createElement(cy,{name:[],shouldUpdate:p,rules:a,validateTrigger:i,initialValue:n,isList:!0,isListField:o??!!l},function(g,v){var x=g.value,b=x===void 0?[]:x,y=g.onChange,S=s.getFieldValue,C=function(){var O=S(d||[]);return O||[]},_={add:function(O,k){var N=C();k>=0&&k<=N.length?(u.keys=[].concat(Oe(u.keys.slice(0,k)),[u.id],Oe(u.keys.slice(k))),y([].concat(Oe(N.slice(0,k)),[O],Oe(N.slice(k))))):(process.env.NODE_ENV!=="production"&&(k<0||k>N.length)&&xt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Oe(u.keys),[u.id]),y([].concat(Oe(N),[O]))),u.id+=1},remove:function(O){var k=C(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(u.keys=u.keys.filter(function(z,F){return!N.has(F)}),y(k.filter(function(z,F){return!N.has(F)})))},move:function(O,k){if(O!==k){var N=C();O<0||O>=N.length||k<0||k>=N.length||(u.keys=Cp(u.keys,O,k),y(Cp(N,O,k)))}}},R=b||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&xt(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(R.map(function(E,O){var k=u.keys[O];return k===void 0&&(u.keys[O]=u.id,k=u.keys[O],u.id+=1),{name:O,key:k,isListField:!0}}),_,v)})))}function O6(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),a(r))})})}):Promise.resolve([])}var uy="__@field_split__";function cu(e){return e.map(function(t){return"".concat(ke(t),":").concat(t)}).join(uy)}var $a=function(){function e(){Jt(this,e),U(this,"kvs",new Map)}return en(e,[{key:"set",value:function(n,r){this.kvs.set(cu(n),r)}},{key:"get",value:function(n){return this.kvs.get(cu(n))}},{key:"update",value:function(n,r){var a=this.get(n),i=r(a);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(cu(n))}},{key:"map",value:function(n){return Oe(this.kvs.entries()).map(function(r){var a=re(r,2),i=a[0],o=a[1],s=i.split(uy);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=re(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,i=r.value;return n[a.join(".")]=i,null}),n}}]),e}(),T6=["name"],R6=en(function e(t){var n=this;Jt(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),U(this,"getInternalHooks",function(r){return r===Xr?(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}):(xt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),U(this,"useSubscribe",function(r){n.subscribable=r}),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var i,o=Fa(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=jn(o,l,Jn(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),U(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new $a;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),U(this,"getInitialValue",function(r){var a=Jn(n.initialValues,r);return r.length?Fa(a):a}),U(this,"setCallbacks",function(r){n.callbacks=r}),U(this,"setValidateMessages",function(r){n.validateMessages=r}),U(this,"setPreserve",function(r){n.preserve=r}),U(this,"watchList",[]),U(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),U(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(a,i,r)})}}),U(this,"timeoutId",null),U(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||xt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),U(this,"updateStore",function(r){n.store=r}),U(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),U(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new $a;return n.getFieldEntities(r).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),U(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(i){var o=Bt(i);return a.get(o)||{INVALIDATE_NAME_PATH:Bt(i)}})}),U(this,"getFieldsValue",function(r,a){n.warningUnhooked();var i,o,s;if(r===!0||Array.isArray(r)?(i=r,o=a):r&&ke(r)==="object"&&(s=r.strict,o=r.filter),i===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,h,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,g;if((p=(g=u).isList)!==null&&p!==void 0&&p.call(g))return}else if(!i&&(d=(h=u).isListField)!==null&&d!==void 0&&d.call(h))return;if(!o)c.push(m);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(m)}}),xp(n.store,c.map(Bt))}),U(this,"getFieldValue",function(r){n.warningUnhooked();var a=Bt(r);return Jn(n.store,a)}),U(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Bt(r[o]),errors:[],warnings:[]}})}),U(this,"getFieldError",function(r){n.warningUnhooked();var a=Bt(r),i=n.getFieldsError([a])[0];return i.errors}),U(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Bt(r),i=n.getFieldsError([a])[0];return i.warnings}),U(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a[0],s=a[1],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(o)?(l=o.map(Bt),c=!1):(l=null,c=o):(l=o.map(Bt),c=s);var u=n.getFieldEntities(!0),d=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(g){return d(g)||g.isList()}):u.some(d);var h=new $a;l.forEach(function(g){h.set(g,[])}),u.forEach(function(g){var v=g.getNamePath();l.forEach(function(x){x.every(function(b,y){return v[y]===b})&&h.update(x,function(b){return[].concat(Oe(b),[g])})})});var m=function(v){return v.some(d)},p=h.map(function(g){var v=g.value;return v});return c?p.every(m):p.some(m)}),U(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),U(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(o){return o.isFieldValidating()});var i=r.map(Bt);return a.some(function(o){var s=o.getNamePath();return Ba(i,s)&&o.isFieldValidating()})}),U(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),U(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new $a,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=a.get(u)||new Set;d.add({entity:l,value:c}),a.set(u,d)}});var o=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),m=n.getInitialValue(h);if(m!==void 0)xt(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var p=a.get(h);if(p&&p.size>1)xt(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=n.getFieldValue(h),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(jn(n.store,h,Oe(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,Oe(Oe(c).map(function(d){return d.entity})))}})):s=i,o(s)}),U(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Fa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Bt);i.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(jn(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(a,i,{type:"reset"}),n.notifyWatch(i)}),U(this,"setFields",function(r){n.warningUnhooked();var a=n.store,i=[];r.forEach(function(o){var s=o.name,l=ot(o,T6),c=Bt(s);i.push(c),"value"in l&&n.updateStore(jn(n.store,c,l.value)),n.notifyObservers(a,[c],{type:"setField",data:o})}),n.notifyWatch(i)}),U(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=Y(Y({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),U(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),o=Jn(n.store,i);o===void 0&&n.updateStore(jn(n.store,i,a))}}),U(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),U(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[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(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(d){return!ly(d.getNamePath(),a)})){var u=n.store;n.updateStore(jn(u,a,c,!0)),n.notifyObservers(u,[a],{type:"remove"}),n.triggerDependenciesUpdate(u,a)}}n.notifyWatch([a])}}),U(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;n.updateValue(a,i);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),U(this,"notifyObservers",function(r,a,i){if(n.subscribable){var o=Y(Y({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,a,o)})}else n.forceRootUpdate()}),U(this,"triggerDependenciesUpdate",function(r,a){var i=n.getDependencyChildrenFields(a);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(Oe(i))}),i}),U(this,"updateValue",function(r,a){var i=Bt(r),o=n.store;n.updateStore(jn(n.store,i,a)),n.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(o,i),l=n.callbacks.onValuesChange;if(l){var c=xp(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Oe(s)))}),U(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var i=Fa(n.store,r);n.updateStore(i)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),U(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),U(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],o=new $a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Bt(u);o.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(d){if(!a.has(d)){a.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(i.push(h),l(h))}})};return s(r),i}),U(this,"triggerOnFieldsChange",function(r,a){var i=n.callbacks.onFieldsChange;if(i){var o=n.getFields();if(a){var s=new $a;a.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 Ba(r,u)});l.length&&i(l,o)}}),U(this,"validateFields",function(r,a){n.warningUnhooked();var i,o;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,o=a):o=r;var s=!!i,l=s?i.map(Bt):[],c=[],u=String(Date.now()),d=new Set,h=o||{},m=h.recursive,p=h.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(p&&!b.isFieldDirty())){var y=b.getNamePath();if(d.add(y.join(u)),!s||Ba(l,y,m)){var S=b.validateRules(Y({validateMessages:Y(Y({},sy),n.validateMessages)},o));c.push(S.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var _,R=[],E=[];return(_=C.forEach)===null||_===void 0||_.call(C,function(O){var k=O.rule.warningOnly,N=O.errors;k?E.push.apply(E,Oe(N)):R.push.apply(R,Oe(N))}),R.length?Promise.reject({name:y,errors:R,warnings:E}):{name:y,errors:R,warnings:E}}))}}});var g=O6(c);n.lastValidatePromise=g,g.catch(function(b){return b}).then(function(b){var y=b.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,b)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var y=b.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:y,outOfDate:n.lastValidatePromise!==g})});v.catch(function(b){return b});var x=l.filter(function(b){return d.has(b.join(u))});return n.triggerOnFieldsChange(x),v}),U(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function dy(e){var t=f.useRef(),n=f.useState({}),r=re(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new R6(i);t.current=o.getForm()}return[t.current]}var Hd=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),P6=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,i=t.children,o=f.useContext(Hd),s=f.useRef({});return f.createElement(Hd.Provider,{value:Y(Y({},o),{},{validateMessages:Y(Y({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Y(Y({},s.current),{},U({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=Y({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},M6=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],I6=function(t,n){var r=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,m=h===void 0?"onChange":h,p=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,x=t.onFinishFailed,b=t.clearOnDestroy,y=ot(t,M6),S=f.useRef(null),C=f.useContext(Hd),_=dy(o),R=re(_,1),E=R[0],O=E.getInternalHooks(Xr),k=O.useSubscribe,N=O.setInitialValues,z=O.setCallbacks,F=O.setValidateMessages,j=O.setPreserve,I=O.destroyForm;f.useImperativeHandle(n,function(){return Y(Y({},E),{},{nativeElement:S.current})}),f.useEffect(function(){return C.registerForm(r,E),function(){C.unregisterForm(r)}},[C,E,r]),F(Y(Y({},C.validateMessages),d)),z({onValuesChange:p,onFieldsChange:function(q){if(C.triggerFormChange(r,q),g){for(var X=arguments.length,Q=new Array(X>1?X-1:0),Z=1;Z<X;Z++)Q[Z-1]=arguments[Z];g.apply(void 0,[q].concat(Q))}},onFinish:function(q){C.triggerFormFinish(r,q),v&&v(q)},onFinishFailed:x}),j(s);var T=f.useRef(null);N(a,!T.current),T.current||(T.current=!0),f.useEffect(function(){return function(){return I(b)}},[]);var w,P=typeof l=="function";if(P){var A=E.getFieldsValue(!0);w=l(A,E)}else w=l;k(!P);var M=f.useRef();f.useEffect(function(){w6(M.current||[],i||[])||E.setFields(i||[]),M.current=i},[i,E]);var L=f.useMemo(function(){return Y(Y({},E),{},{validateTrigger:m})},[E,m]),K=f.createElement(el.Provider,{value:null},f.createElement(ei.Provider,{value:L},w));return u===!1?K:f.createElement(u,Re({},y,{ref:S,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),E.submit()},onReset:function(q){var X;q.preventDefault(),E.resetFields(),(X=y.onReset)===null||X===void 0||X.call(y,q)}}),K)};function Sp(e){try{return JSON.stringify(e)}catch{return Math.random()}}var N6=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=$.useRef(t);xt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function A6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],i=a===void 0?{}:a,o=VE(i)?{form:i}:i,s=o.form,l=$.useState(),c=re(l,2),u=c[0],d=c[1],h=$.useMemo(function(){return Sp(u)},[u]),m=$.useRef(h);m.current=h;var p=$.useContext(ei),g=s||p,v=g&&g._init;process.env.NODE_ENV!=="production"&&xt(t.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var x=Bt(r),b=$.useRef(x);return b.current=x,N6(x),$.useEffect(function(){if(v){var y=g.getFieldsValue,S=g.getInternalHooks,C=S(Xr),_=C.registerWatch,R=function(N,z){var F=o.preserve?z:N;return typeof r=="function"?r(F):Jn(F,b.current)},E=_(function(k,N){var z=R(k,N),F=Sp(z);m.current!==F&&(m.current=F,d(z))}),O=R(y(),y(!0));return u!==O&&d(O),E}},[v]),u}var j6=f.forwardRef(I6),Do=j6;Do.FormProvider=P6;Do.Field=cy;Do.List=E6;Do.useForm=dy;Do.useWatch=A6;const ti=f.createContext({});process.env.NODE_ENV!=="production"&&(ti.displayName="FormItemInputContext");const k6=e=>{let{children:t,status:n,override:r}=e;const a=$.useContext(ti),i=$.useMemo(()=>{const o=Object.assign({},a);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,a]);return f.createElement(ti.Provider,{value:i},t)},F6=$.createContext(void 0),Wd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=$.createElement(k6,{override:!0,status:!0},a)),t&&(a=$.createElement(Z$,null,a)),a};var fy=function(t){if(dn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},L6=function(t,n){if(!fy(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function wp(e,t){return!Array.isArray(e)&&t!==void 0?L6(e,t):fy(e)}const Nl=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,o=oe({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=oe({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=f.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return f.createElement("span",{className:oe(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},D6=new Vt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Al=e=>({height:e,lineHeight:se(e)}),Va=e=>Object.assign({width:e},Al(e)),z6=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:D6,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),uu=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Al(e)),B6=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Va(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Va(a)),[`${t}${t}-sm`]:Object.assign({},Va(i))}},V6=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},uu(t,s)),[`${r}-lg`]:Object.assign({},uu(a,s)),[`${r}-sm`]:Object.assign({},uu(i,s))}},_p=e=>Object.assign({width:e},Al(e)),H6=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},_p(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},_p(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},du=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},fu=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Al(e)),W6=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,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()},fu(r,s))},du(e,r,n)),{[`${n}-lg`]:Object.assign({},fu(a,s))}),du(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},fu(i,s))}),du(e,i,`${n}-sm`))},U6=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:h,marginSM:m,borderRadius:p,titleHeight:g,blockRadius:v,paragraphLiHeight:x,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Va(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Va(c)),[`${n}-sm`]:Object.assign({},Va(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W6(e)),B6(e)),V6(e)),H6(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
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`]:{[`
|
|
229
229
|
${r},
|
|
230
|
-
${
|
|
230
|
+
${i} > li,
|
|
231
231
|
${n},
|
|
232
|
-
${
|
|
232
|
+
${a},
|
|
233
233
|
${o},
|
|
234
234
|
${s}
|
|
235
|
-
`]:Object.assign({},
|
|
236
|
-
${
|
|
237
|
-
${
|
|
238
|
-
`]:Object.assign(Object.assign({},
|
|
239
|
-
${
|
|
240
|
-
${
|
|
241
|
-
`]:{animationName:t,animationPlayState:"running"},[`${
|
|
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),{[`
|
|
242
245
|
${r}-enter,
|
|
243
246
|
${r}-appear
|
|
244
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},
|
|
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),{[`
|
|
245
248
|
${r}-enter,
|
|
246
249
|
${r}-appear
|
|
247
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},py=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 P5=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ea=void 0;function M5(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,m=e.display,p=e.order,g=e.component,v=g===void 0?"div":g,x=ot(e,P5),b=o&&!m;function y(E){l(c,E)}f.useEffect(function(){return function(){y(null)}},[]);var S=i&&a!==Ea?i(a):h,C;r||(C={opacity:b?0:1,height:b?0:Ea,overflowY:b?"hidden":Ea,order:o?p:Ea,pointerEvents:b?"none":Ea,position:b?"absolute":Ea});var _={};b&&(_["aria-hidden"]=!0);var R=f.createElement(v,Re({className:oe(!r&&n,u),style:Y(Y({},C),d)},_,x,{ref:t}),S);return o&&(R=f.createElement(zn,{onResize:function(O){var k=O.offsetWidth;y(k)},disabled:s},R)),R}var eo=f.forwardRef(M5);eo.displayName="Item";function I5(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function N5(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],I5(function(){na.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Ii(e,t){var n=f.useState(t),r=re(n,2),a=r[0],i=r[1],o=an(function(s){e(function(){i(s)})});return[a,o]}var tl=$.createContext(null),A5=["component"],j5=["className"],k5=["className"],F5=function(t,n){var r=f.useContext(tl);if(!r){var a=t.component,i=a===void 0?"div":a,o=ot(t,A5);return f.createElement(i,Re({},o,{ref:n}))}var s=r.className,l=ot(r,j5),c=t.className,u=ot(t,k5);return f.createElement(tl.Provider,{value:null},f.createElement(eo,Re({ref:n,className:oe(s,c)},l,u)))},gy=f.forwardRef(F5);gy.displayName="RawItem";var L5=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],my="responsive",by="invalidate";function D5(e){return"+ ".concat(e.length," ...")}function z5(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,m=e.className,p=e.maxCount,g=e.renderRest,v=e.renderRawRest,x=e.suffix,b=e.component,y=b===void 0?"div":b,S=e.itemComponent,C=e.onVisibleChange,_=ot(e,L5),R=d==="full",E=N5(),O=Ii(E,null),k=re(O,2),N=k[0],z=k[1],F=N||0,j=Ii(E,new Map),I=re(j,2),T=I[0],w=I[1],P=Ii(E,0),A=re(P,2),M=A[0],L=A[1],K=Ii(E,0),W=re(K,2),q=W[0],X=W[1],Q=Ii(E,0),Z=re(Q,2),J=Z[0],G=Z[1],ee=$.useState(null),ae=re(ee,2),V=ae[0],ce=ae[1],B=$.useState(null),ue=re(B,2),le=ue[0],be=ue[1],xe=f.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,N]),fe=$.useState(!1),ge=re(fe,2),we=ge[0],Me=ge[1],ve="".concat(r,"-item"),de=Math.max(M,q),Ce=p===my,Se=i.length&&Ce,st=p===by,nt=Se||typeof p=="number"&&i.length>p,Fe=$.useMemo(function(){var Ee=i;return Se?N===null&&R?Ee=i:Ee=i.slice(0,Math.min(i.length,F/u)):typeof p=="number"&&(Ee=i.slice(0,p)),Ee},[i,u,N,p,Se]),We=$.useMemo(function(){return Se?i.slice(xe+1):i.slice(Fe.length)},[i,Fe,Se,xe]),et=$.useCallback(function(Ee,_e){var Be;return typeof l=="function"?l(Ee):(Be=l&&(Ee==null?void 0:Ee[l]))!==null&&Be!==void 0?Be:_e},[l]),rt=$.useCallback(o||function(Ee){return Ee},[o]);function De(Ee,_e,Be){le===Ee&&(_e===void 0||_e===V)||(be(Ee),Be||(Me(Ee<i.length-1),C==null||C(Ee)),_e!==void 0&&ce(_e))}function Ie(Ee,_e){z(_e.clientWidth)}function mt(Ee,_e){w(function(Be){var Tt=new Map(Be);return _e===null?Tt.delete(Ee):Tt.set(Ee,_e),Tt})}function Ye(Ee,_e){X(_e),L(q)}function ze(Ee,_e){G(_e)}function me(Ee){return T.get(et(Fe[Ee],Ee))}kt(function(){if(F&&typeof de=="number"&&Fe){var Ee=J,_e=Fe.length,Be=_e-1;if(!_e){De(0,null);return}for(var Tt=0;Tt<_e;Tt+=1){var Qe=me(Tt);if(R&&(Qe=Qe||0),Qe===void 0){De(Tt-1,void 0,!0);break}if(Ee+=Qe,Be===0&&Ee<=F||Tt===Be-1&&Ee+me(Be)<=F){De(Be,null);break}else if(Ee+de>F){De(Tt-1,Ee-Qe-J+q);break}}x&&me(0)+J>F&&ce(null)}},[F,T,q,J,et,Fe]);var $e=we&&!!We.length,Je={};V!==null&&Se&&(Je={position:"absolute",left:V,top:0});var lt={prefixCls:ve,responsive:Se,component:S,invalidate:st},pt=s?function(Ee,_e){var Be=et(Ee,_e);return f.createElement(tl.Provider,{key:Be,value:Y(Y({},lt),{},{order:_e,item:Ee,itemKey:Be,registerSize:mt,display:_e<=xe})},s(Ee,_e))}:function(Ee,_e){var Be=et(Ee,_e);return f.createElement(eo,Re({},lt,{order:_e,key:Be,item:Ee,renderItem:rt,itemKey:Be,registerSize:mt,display:_e<=xe}))},gt,Ue={order:$e?xe:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:Ye,display:$e};if(v)v&&(gt=f.createElement(tl.Provider,{value:Y(Y({},lt),Ue)},v(We)));else{var qe=g||D5;gt=f.createElement(eo,Re({},lt,Ue),typeof qe=="function"?qe(We):qe)}var He=f.createElement(y,Re({className:oe(!st&&r,m),style:h,ref:t},_),Fe.map(pt),nt?gt:null,x&&f.createElement(eo,Re({},lt,{responsive:Ce,responsiveDisabled:!Se,order:xe,className:"".concat(ve,"-suffix"),registerSize:ze,display:!0,style:Je}),x));return Ce&&(He=f.createElement(zn,{onResize:Ie,disabled:!Se},He)),He}var mr=f.forwardRef(z5);mr.displayName="Overflow";mr.Item=gy;mr.RESPONSIVE=my;mr.INVALIDATE=by;function B5(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,i=r||{},o=i.className,s=i.content,l=a.x,c=l===void 0?0:l,u=a.y,d=u===void 0?0:u,h=f.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],g=n.points[1],v=p[0],x=p[1],b=g[0],y=g[1];v===b||!["t","b"].includes(v)?m.top=d:v==="t"?m.top=0:m.bottom=0,x===y||!["l","r"].includes(x)?m.left=c:x==="l"?m.left=0:m.right=0}return f.createElement("div",{ref:h,className:oe("".concat(t,"-arrow"),o),style:m},s)}function V5(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,i=e.motion;return a?f.createElement(da,Re({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return f.createElement("div",{style:{zIndex:r},className:oe("".concat(t,"-mask"),s)})}):null}var yy=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(yy.displayName="PopupContent");var xy=f.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,h=e.mask,m=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,x=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,S=e.autoDestroy,C=e.portal,_=e.zIndex,R=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,k=e.ready,N=e.offsetX,z=e.offsetY,F=e.offsetR,j=e.offsetB,I=e.onAlign,T=e.onPrepare,w=e.stretch,P=e.targetWidth,A=e.targetHeight,M=typeof n=="function"?n():n,L=l||c,K=(y==null?void 0:y.length)>0,W=f.useState(!y||!K),q=re(W,2),X=q[0],Q=q[1];if(kt(function(){!X&&K&&o&&Q(!0)},[X,K,o]),!X)return null;var Z="auto",J={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(k||!l){var G,ee=g.points,ae=g.dynamicInset||((G=g._experimental)===null||G===void 0?void 0:G.dynamicInset),V=ae&&ee[0][1]==="r",ce=ae&&ee[0][0]==="b";V?(J.right=F,J.left=Z):(J.left=N,J.right=Z),ce?(J.bottom=j,J.top=Z):(J.top=z,J.bottom=Z)}var B={};return w&&(w.includes("height")&&A?B.height=A:w.includes("minHeight")&&A&&(B.minHeight=A),w.includes("width")&&P?B.width=P:w.includes("minWidth")&&P&&(B.minWidth=P)),l||(B.pointerEvents="none"),f.createElement(C,{open:b||L,getContainer:y&&function(){return y(o)},autoDestroy:S},f.createElement(V5,{prefixCls:a,open:l,zIndex:_,mask:h,motion:x}),f.createElement(zn,{onResize:I,disabled:!l},function(ue){return f.createElement(da,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(be){var xe;v==null||(xe=v.onVisibleChanged)===null||xe===void 0||xe.call(v,be),s(be)}}),function(le,be){var xe=le.className,fe=le.style,ge=oe(a,xe,r);return f.createElement("div",{ref:Un(ue,t,be),className:ge,style:Y(Y(Y(Y({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},J),B),fe),{},{boxSizing:"border-box",zIndex:_},i),onMouseEnter:R,onMouseLeave:E,onPointerEnter:O,onClick:d},m&&f.createElement(B5,{prefixCls:a,arrow:m,arrowPos:p,align:g}),f.createElement(yy,{cache:!l&&!u},M))})}))});process.env.NODE_ENV!=="production"&&(xy.displayName="Popup");var Cy=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=ua(n),i=f.useCallback(function(s){If(t,r?r(s):s)},[r]),o=No(i,n.ref);return a?f.cloneElement(n,{ref:o}):n});process.env.NODE_ENV!=="production"&&(Cy.displayName="TriggerWrapper");var Tp=f.createContext(null);function Rp(e){return e?Array.isArray(e)?e:[e]:[]}function H5(e,t,n,r){return f.useMemo(function(){var a=Rp(n??t),i=Rp(r??t),o=new Set(a),s=new Set(i);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 W5(){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 U5(e,t,n,r){for(var a=n.points,i=Object.keys(e),o=0;o<i.length;o+=1){var s,l=i[o];if(W5((s=e[l])===null||s===void 0?void 0:s.points,a,r))return"".concat(t,"-placement-").concat(l)}return""}function Pp(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function zo(e){return e.ownerDocument.defaultView}function Ud(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=zo(n).getComputedStyle(n),i=a.overflowX,o=a.overflowY,s=a.overflow;[i,o,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function bo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ni(e){return bo(parseFloat(e),0)}function Mp(e,t){var n=Y({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=zo(r).getComputedStyle(r),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,m=r.clientHeight,p=r.offsetWidth,g=r.clientWidth,v=Ni(s),x=Ni(l),b=Ni(c),y=Ni(u),S=bo(Math.round(d.width/p*1e3)/1e3),C=bo(Math.round(d.height/h*1e3)/1e3),_=(p-g-b-y)*S,R=(h-m-v-x)*C,E=v*C,O=x*C,k=b*S,N=y*S,z=0,F=0;if(i==="clip"){var j=Ni(o);z=j*S,F=j*C}var I=d.x+k-z,T=d.y+E-F,w=I+d.width+2*z-k-N-_,P=T+d.height+2*F-E-O-R;n.left=Math.max(n.left,I),n.top=Math.max(n.top,T),n.right=Math.min(n.right,w),n.bottom=Math.min(n.bottom,P)}}),n}function Ip(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 Np(e,t){var n=t||[],r=re(n,2),a=r[0],i=r[1];return[Ip(e.width,a),Ip(e.height,i)]}function Ap(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Oa(e,t){var n=t[0],r=t[1],a,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function Tr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function q5(e,t,n,r,a,i,o){var s=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),l=re(s,2),c=l[0],u=l[1],d=f.useRef(0),h=f.useMemo(function(){return t?Ud(t):[]},[t]),m=f.useRef({}),p=function(){m.current={}};e||p();var g=an(function(){if(t&&n&&e){let cn=function(un,Nn){var Or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,Sa=M.x+un,Oi=M.y+Nn,Ti=Sa+G,Jo=Oi+J,Dc=Math.max(Sa,Or.left),zc=Math.max(Oi,Or.top),Bc=Math.min(Ti,Or.right),Vc=Math.min(Jo,Or.bottom);return Math.max(0,(Bc-Dc)*(Vc-zc))},Vr=function(){D=M.y+qe,te=D+J,ie=M.x+Ue,pe=ie+G};var b,y,S=t,C=S.ownerDocument,_=zo(S),R=_.getComputedStyle(S),E=R.width,O=R.height,k=R.position,N=S.style.left,z=S.style.top,F=S.style.right,j=S.style.bottom,I=S.style.overflow,T=Y(Y({},a[r]),i),w=C.createElement("div");(b=S.parentElement)===null||b===void 0||b.appendChild(w),w.style.left="".concat(S.offsetLeft,"px"),w.style.top="".concat(S.offsetTop,"px"),w.style.position=k,w.style.height="".concat(S.offsetHeight,"px"),w.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();P={x:A.x,y:A.y,width:A.width,height:A.height}}var M=S.getBoundingClientRect(),L=C.documentElement,K=L.clientWidth,W=L.clientHeight,q=L.scrollWidth,X=L.scrollHeight,Q=L.scrollTop,Z=L.scrollLeft,J=M.height,G=M.width,ee=P.height,ae=P.width,V={left:0,top:0,right:K,bottom:W},ce={left:-Z,top:-Q,right:q-Z,bottom:X-Q},B=T.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var be=B===le,xe=Mp(ce,h),fe=Mp(V,h),ge=B===ue?fe:xe,we=be?fe:ge;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Me=S.getBoundingClientRect();S.style.left=N,S.style.top=z,S.style.right=F,S.style.bottom=j,S.style.overflow=I,(y=S.parentElement)===null||y===void 0||y.removeChild(w);var ve=bo(Math.round(G/parseFloat(E)*1e3)/1e3),de=bo(Math.round(J/parseFloat(O)*1e3)/1e3);if(ve===0||de===0||io(n)&&!Kf(n))return;var Ce=T.offset,Se=T.targetOffset,st=Np(M,Ce),nt=re(st,2),Fe=nt[0],We=nt[1],et=Np(P,Se),rt=re(et,2),De=rt[0],Ie=rt[1];P.x-=De,P.y-=Ie;var mt=T.points||[],Ye=re(mt,2),ze=Ye[0],me=Ye[1],$e=Ap(me),Je=Ap(ze),lt=Oa(P,$e),pt=Oa(M,Je),gt=Y({},T),Ue=lt.x-pt.x+Fe,qe=lt.y-pt.y+We,He=cn(Ue,qe),Ee=cn(Ue,qe,fe),_e=Oa(P,["t","l"]),Be=Oa(M,["t","l"]),Tt=Oa(P,["b","r"]),Qe=Oa(M,["b","r"]),Ge=T.overflow||{},dt=Ge.adjustX,Ct=Ge.adjustY,Dt=Ge.shiftX,jt=Ge.shiftY,at=function(Nn){return typeof Nn=="boolean"?Nn:Nn>=0},D,te,ie,pe;Vr();var Ne=at(Ct),Pe=Je[0]===$e[0];if(Ne&&Je[0]==="t"&&(te>we.bottom||m.current.bt)){var Ae=qe;Pe?Ae-=J-ee:Ae=_e.y-Qe.y-We;var Le=cn(Ue,Ae),Rt=cn(Ue,Ae,fe);Le>He||Le===He&&(!be||Rt>=Ee)?(m.current.bt=!0,qe=Ae,We=-We,gt.points=[Tr(Je,0),Tr($e,0)]):m.current.bt=!1}if(Ne&&Je[0]==="b"&&(D<we.top||m.current.tb)){var ft=qe;Pe?ft+=J-ee:ft=Tt.y-Be.y-We;var Xe=cn(Ue,ft),zt=cn(Ue,ft,fe);Xe>He||Xe===He&&(!be||zt>=Ee)?(m.current.tb=!0,qe=ft,We=-We,gt.points=[Tr(Je,0),Tr($e,0)]):m.current.tb=!1}var sn=at(dt),nn=Je[1]===$e[1];if(sn&&Je[1]==="l"&&(pe>we.right||m.current.rl)){var Mt=Ue;nn?Mt-=G-ae:Mt=_e.x-Qe.x-Fe;var Gn=cn(Mt,qe),_r=cn(Mt,qe,fe);Gn>He||Gn===He&&(!be||_r>=Ee)?(m.current.rl=!0,Ue=Mt,Fe=-Fe,gt.points=[Tr(Je,1),Tr($e,1)]):m.current.rl=!1}if(sn&&Je[1]==="r"&&(ie<we.left||m.current.lr)){var ln=Ue;nn?ln+=G-ae:ln=Tt.x-Be.x-Fe;var $r=cn(ln,qe),Si=cn(ln,qe,fe);$r>He||$r===He&&(!be||Si>=Ee)?(m.current.lr=!0,Ue=ln,Fe=-Fe,gt.points=[Tr(Je,1),Tr($e,1)]):m.current.lr=!1}Vr();var Sn=Dt===!0?0:Dt;typeof Sn=="number"&&(ie<fe.left&&(Ue-=ie-fe.left-Fe,P.x+ae<fe.left+Sn&&(Ue+=P.x-fe.left+ae-Sn)),pe>fe.right&&(Ue-=pe-fe.right-Fe,P.x>fe.right-Sn&&(Ue+=P.x-fe.right+Sn)));var Mn=jt===!0?0:jt;typeof Mn=="number"&&(D<fe.top&&(qe-=D-fe.top-We,P.y+ee<fe.top+Mn&&(qe+=P.y-fe.top+ee-Mn)),te>fe.bottom&&(qe-=te-fe.bottom-We,P.y>fe.bottom-Mn&&(qe+=P.y-fe.bottom+Mn)));var Er=M.x+Ue,lr=Er+G,Kn=M.y+qe,cr=Kn+J,Br=P.x,ur=Br+ae,In=P.y,wi=In+ee,_i=Math.max(Er,Br),$i=Math.min(lr,ur),Ca=(_i+$i)/2,It=Ca-Er,bt=Math.max(Kn,In),Et=Math.min(cr,wi),Kt=(bt+Et)/2,Qt=Kt-Kn;o==null||o(t,gt);var Yn=Me.right-M.x-(Ue+M.width),Xn=Me.bottom-M.y-(qe+M.height);ve===1&&(Ue=Math.round(Ue),Yn=Math.round(Yn)),de===1&&(qe=Math.round(qe),Xn=Math.round(Xn));var Ei={ready:!0,offsetX:Ue/ve,offsetY:qe/de,offsetR:Yn/ve,offsetB:Xn/de,arrowX:It/ve,arrowY:Qt/de,scaleX:ve,scaleY:de,align:gt};u(Ei)}}),v=function(){d.current+=1;var y=d.current;Promise.resolve().then(function(){d.current===y&&g()})},x=function(){u(function(y){return Y(Y({},y),{},{ready:!1})})};return kt(x,[r]),kt(function(){e||x()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function G5(e,t,n,r,a){kt(function(){if(e&&t&&n){let d=function(){r(),a()};var i=t,o=n,s=Ud(i),l=Ud(o),c=zo(o),u=new Set([c].concat(Oe(s),Oe(l)));return u.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function K5(e,t,n,r,a,i,o,s){var l=f.useRef(e);l.current=e,f.useEffect(function(){if(t&&r&&(!a||i)){var c=function(x){var b;l.current&&!o(((b=x.composedPath)===null||b===void 0||(b=b.call(x))===null||b===void 0?void 0:b[0])||x.target)&&s(!1)},u=zo(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var d=Qs(n);if(d&&(d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0)),process.env.NODE_ENV!=="production"){var h,m,p=n==null||(h=n.getRootNode)===null||h===void 0?void 0:h.call(n),g=(m=r.getRootNode)===null||m===void 0?void 0:m.call(r);Ga(p===g,"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,a,i])}var Y5=["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 X5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jf,t=f.forwardRef(function(n,r){var a=n.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,m=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,x=v===void 0?.1:v,b=n.focusDelay,y=n.blurDelay,S=n.mask,C=n.maskClosable,_=C===void 0?!0:C,R=n.getPopupContainer,E=n.forceRender,O=n.autoDestroy,k=n.destroyPopupOnHide,N=n.popup,z=n.popupClassName,F=n.popupStyle,j=n.popupPlacement,I=n.builtinPlacements,T=I===void 0?{}:I,w=n.popupAlign,P=n.zIndex,A=n.stretch,M=n.getPopupClassNameFromAlign,L=n.fresh,K=n.alignPoint,W=n.onPopupClick,q=n.onPopupAlign,X=n.arrow,Q=n.popupMotion,Z=n.maskMotion,J=n.popupTransitionName,G=n.popupAnimation,ee=n.maskTransitionName,ae=n.maskAnimation,V=n.className,ce=n.getTriggerDOMNode,B=ot(n,Y5),ue=O||k||!1,le=f.useState(!1),be=re(le,2),xe=be[0],fe=be[1];kt(function(){fe(py())},[]);var ge=f.useRef({}),we=f.useContext(Tp),Me=f.useMemo(function(){return{registerSubPopup:function(Ve,Ft){ge.current[Ve]=Ft,we==null||we.registerSubPopup(Ve,Ft)}}},[we]),ve=BE(),de=f.useState(null),Ce=re(de,2),Se=Ce[0],st=Ce[1],nt=f.useRef(null),Fe=an(function(Te){nt.current=Te,io(Te)&&Se!==Te&&st(Te),we==null||we.registerSubPopup(ve,Te)}),We=f.useState(null),et=re(We,2),rt=et[0],De=et[1],Ie=f.useRef(null),mt=an(function(Te){io(Te)&&rt!==Te&&(De(Te),Ie.current=Te)}),Ye=f.Children.only(o),ze=(Ye==null?void 0:Ye.props)||{},me={},$e=an(function(Te){var Ve,Ft,Wt=rt;return(Wt==null?void 0:Wt.contains(Te))||((Ve=Qs(Wt))===null||Ve===void 0?void 0:Ve.host)===Te||Te===Wt||(Se==null?void 0:Se.contains(Te))||((Ft=Qs(Se))===null||Ft===void 0?void 0:Ft.host)===Te||Te===Se||Object.values(ge.current).some(function(Lt){return(Lt==null?void 0:Lt.contains(Te))||Te===Lt})}),Je=Pp(i,Q,G,J),lt=Pp(i,Z,ae,ee),pt=f.useState(h||!1),gt=re(pt,2),Ue=gt[0],qe=gt[1],He=d??Ue,Ee=an(function(Te){d===void 0&&qe(Te)});kt(function(){qe(d||!1)},[d]);var _e=f.useRef(He);_e.current=He;var Be=f.useRef([]);Be.current=[];var Tt=an(function(Te){var Ve;Ee(Te),((Ve=Be.current[Be.current.length-1])!==null&&Ve!==void 0?Ve:He)!==Te&&(Be.current.push(Te),m==null||m(Te))}),Qe=f.useRef(),Ge=function(){clearTimeout(Qe.current)},dt=function(Ve){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ge(),Ft===0?Tt(Ve):Qe.current=setTimeout(function(){Tt(Ve)},Ft*1e3)};f.useEffect(function(){return Ge},[]);var Ct=f.useState(!1),Dt=re(Ct,2),jt=Dt[0],at=Dt[1];kt(function(Te){(!Te||He)&&at(!0)},[He]);var D=f.useState(null),te=re(D,2),ie=te[0],pe=te[1],Ne=f.useState([0,0]),Pe=re(Ne,2),Ae=Pe[0],Le=Pe[1],Rt=function(Ve){Le([Ve.clientX,Ve.clientY])},ft=q5(He,Se,K?Ae:rt,j,T,w,q),Xe=re(ft,11),zt=Xe[0],sn=Xe[1],nn=Xe[2],Mt=Xe[3],Gn=Xe[4],_r=Xe[5],ln=Xe[6],$r=Xe[7],Si=Xe[8],Sn=Xe[9],Mn=Xe[10],Er=H5(xe,l,c,u),lr=re(Er,2),Kn=lr[0],cr=lr[1],Br=Kn.has("click"),ur=cr.has("click")||cr.has("contextMenu"),In=an(function(){jt||Mn()}),wi=function(){_e.current&&K&&ur&&dt(!1)};G5(He,rt,Se,In,wi),kt(function(){In()},[Ae,j]),kt(function(){He&&!(T!=null&&T[j])&&In()},[JSON.stringify(w)]);var _i=f.useMemo(function(){var Te=U5(T,i,Sn,K);return oe(Te,M==null?void 0:M(Sn))},[Sn,M,T,i,K]);f.useImperativeHandle(r,function(){return{nativeElement:Ie.current,popupElement:nt.current,forceAlign:In}});var $i=f.useState(0),Ca=re($i,2),It=Ca[0],bt=Ca[1],Et=f.useState(0),Kt=re(Et,2),Qt=Kt[0],Yn=Kt[1],Xn=function(){if(A&&rt){var Ve=rt.getBoundingClientRect();bt(Ve.width),Yn(Ve.height)}},Ei=function(){Xn(),In()},cn=function(Ve){at(!1),Mn(),p==null||p(Ve)},Vr=function(){return new Promise(function(Ve){Xn(),pe(function(){return Ve})})};kt(function(){ie&&(Mn(),ie(),pe(null))},[ie]);function un(Te,Ve,Ft,Wt){me[Te]=function(Lt){var es;Wt==null||Wt(Lt),dt(Ve,Ft);for(var Hc=arguments.length,uv=new Array(Hc>1?Hc-1:0),ts=1;ts<Hc;ts++)uv[ts-1]=arguments[ts];(es=ze[Te])===null||es===void 0||es.call.apply(es,[ze,Lt].concat(uv))}}(Br||ur)&&(me.onClick=function(Te){var Ve;_e.current&&ur?dt(!1):!_e.current&&Br&&(Rt(Te),dt(!0));for(var Ft=arguments.length,Wt=new Array(Ft>1?Ft-1:0),Lt=1;Lt<Ft;Lt++)Wt[Lt-1]=arguments[Lt];(Ve=ze.onClick)===null||Ve===void 0||Ve.call.apply(Ve,[ze,Te].concat(Wt))}),K5(He,ur,rt,Se,S,_,$e,dt);var Nn=Kn.has("hover"),Or=cr.has("hover"),Sa,Oi;Nn&&(un("onMouseEnter",!0,g,function(Te){Rt(Te)}),un("onPointerEnter",!0,g,function(Te){Rt(Te)}),Sa=function(Ve){(He||jt)&&Se!==null&&Se!==void 0&&Se.contains(Ve.target)&&dt(!0,g)},K&&(me.onMouseMove=function(Te){var Ve;(Ve=ze.onMouseMove)===null||Ve===void 0||Ve.call(ze,Te)})),Or&&(un("onMouseLeave",!1,x),un("onPointerLeave",!1,x),Oi=function(){dt(!1,x)}),Kn.has("focus")&&un("onFocus",!0,b),cr.has("focus")&&un("onBlur",!1,y),Kn.has("contextMenu")&&(me.onContextMenu=function(Te){var Ve;_e.current&&cr.has("contextMenu")?dt(!1):(Rt(Te),dt(!0)),Te.preventDefault();for(var Ft=arguments.length,Wt=new Array(Ft>1?Ft-1:0),Lt=1;Lt<Ft;Lt++)Wt[Lt-1]=arguments[Lt];(Ve=ze.onContextMenu)===null||Ve===void 0||Ve.call.apply(Ve,[ze,Te].concat(Wt))}),V&&(me.className=oe(ze.className,V));var Ti=Y(Y({},ze),me),Jo={},Dc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Dc.forEach(function(Te){B[Te]&&(Jo[Te]=function(){for(var Ve,Ft=arguments.length,Wt=new Array(Ft),Lt=0;Lt<Ft;Lt++)Wt[Lt]=arguments[Lt];(Ve=Ti[Te])===null||Ve===void 0||Ve.call.apply(Ve,[Ti].concat(Wt)),B[Te].apply(B,Wt)})});var zc=f.cloneElement(Ye,Y(Y({},Ti),Jo)),Bc={x:_r,y:ln},Vc=X?Y({},X!==!0?X:{}):null;return f.createElement(f.Fragment,null,f.createElement(zn,{disabled:!He,ref:mt,onResize:Ei},f.createElement(Cy,{getTriggerDOMNode:ce},zc)),f.createElement(Tp.Provider,{value:Me},f.createElement(xy,{portal:e,ref:Fe,prefixCls:i,popup:N,className:oe(z,_i),style:F,target:rt,onMouseEnter:Sa,onMouseLeave:Oi,onPointerEnter:Sa,zIndex:P,open:He,keepDom:jt,fresh:L,onClick:W,mask:S,motion:Je,maskMotion:lt,onVisibleChanged:cn,onPrepare:Vr,forceRender:E,autoDestroy:ue,getPopupContainer:R,align:Sn,arrow:Vc,arrowPos:Bc,ready:zt,offsetX:sn,offsetY:nn,offsetR:Mt,offsetB:Gn,onAlign:In,stretch:A,targetWidth:It/$r,targetHeight:Qt/Si})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const th=X5(Jf);function qd(e,t,n){return oe({[`${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 Sy=(e,t)=>t||e,wy=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:i,[e]:o}=$.useContext(vt),s=$.useContext(F6),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(a=(r=s??l)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const u=Yw.includes(c);return[c,u]};var Q5={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"},Z5=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:Q5}))},_y=f.forwardRef(Z5);process.env.NODE_ENV!=="production"&&(_y.displayName="CheckOutlined");var J5={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"},eO=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:J5}))},$y=f.forwardRef(eO);process.env.NODE_ENV!=="production"&&($y.displayName="DownOutlined");const yo=["xxl","xl","lg","md","sm","xs"],tO=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)`}),nO=e=>{const t=e,n=[].concat(yo).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[a+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function rO(){const[,e]=xr(),t=tO(nO(e));return $.useMemo(()=>{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(i){return a=i,n.forEach(o=>o(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const o=t[i],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const o=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},a),{[i]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Ey(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.className,o=e.style;return f.createElement("div",{className:oe("".concat(n,"-content"),i),style:o},f.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Ta={shiftX:64,adjustY:1},Ra={adjustX:1,shiftY:!0},_n=[0,0],aO={left:{points:["cr","cl"],overflow:Ra,offset:[-4,0],targetOffset:_n},right:{points:["cl","cr"],overflow:Ra,offset:[4,0],targetOffset:_n},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:_n},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:_n},topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:_n},leftTop:{points:["tr","tl"],overflow:Ra,offset:[-4,0],targetOffset:_n},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:_n},rightTop:{points:["tl","tr"],overflow:Ra,offset:[4,0],targetOffset:_n},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:_n},rightBottom:{points:["bl","br"],overflow:Ra,offset:[4,0],targetOffset:_n},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:_n},leftBottom:{points:["br","bl"],overflow:Ra,offset:[-4,0],targetOffset:_n}},iO=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],oO=function(t,n){var r=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,m=t.children,p=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,x=t.animation,b=t.motion,y=t.placement,S=y===void 0?"right":y,C=t.align,_=C===void 0?{}:C,R=t.destroyTooltipOnHide,E=R===void 0?!1:R,O=t.defaultVisible,k=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,F=t.id,j=t.showArrow,I=j===void 0?!0:j,T=ot(t,iO),w=$.useRef(null);$.useImperativeHandle(n,function(){return w.current});var P=Y({},T);"visible"in t&&(P.popupVisible=t.visible);var A=function(){return f.createElement(Ey,{key:"content",prefixCls:h,id:F,overlayInnerStyle:N},z)};return f.createElement(th,Re({popupClassName:r,prefixCls:h,popup:A,action:i,builtinPlacements:aO,popupPlacement:S,ref:w,popupAlign:_,getPopupContainer:k,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:x,popupMotion:b,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:I},P),m)};const sO=$.forwardRef(oO);function lO(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,i=0,o=a,s=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),c=a-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*a-c,h=u,m=2*a-s,p=l,g=2*a-i,v=o,x=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),y=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,S=`path('M ${i} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${h} L ${m} ${p} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:x,arrowPath:S,arrowPolygon:y}}const cO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,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:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Oy=8;function Ty(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Oy:r}}function ps(e,t){return e?t:{}}function uO(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:i,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"},cO(e,t,a)),{"&:before":{background:t}})]},ps(!!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% - ${se(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),ps(!!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% - ${se(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),ps(!!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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),ps(!!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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function dO(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const jp={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"]}},fO={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"]}},hO=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vO(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:i,visibleFirst:o}=e,s=t/2,l={};return Object.keys(jp).forEach(c=>{const u=r&&fO[c]||jp[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,hO.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+a;break}const h=Ty({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-s;break}d.overflow=dO(c,h,t,n),o&&(d.htmlRegion="visibleFirst")}),l}const pO=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:o,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},br(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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${se(e.calc(c).div(2).equal())} ${se(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Oy)}},[`${t}-content`]:{position:"relative"}}),__(e,(d,h)=>{let{darkColor:m}=h;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},uO(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},gO=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ty({contentRadius:e.borderRadius,limitVerticalRadius:!0})),lO(Yt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ry=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Pn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=r,s=Yt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[pO(s),R5(r,"zoom-big-fast")]},gO,{resetStyle:!1,injectStyle:t})(e)},mO=Xs.map(e=>`${e}-inverse`);function bO(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Oe(mO),Oe(Xs)).includes(e):Xs.includes(e)}function Py(e,t){const n=bO(t),r=oe({[`${e}-${t}`]:t&&n}),a={},i={};return t&&!n&&(a.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:i}}const yO=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=f.useContext(vt),l=s("tooltip",t),[c,u,d]=Ry(l),h=Py(l,i),m=h.arrowStyle,p=Object.assign(Object.assign({},o),h.overlayStyle),g=oe(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(f.createElement("div",{className:g,style:m},f.createElement("div",{className:`${l}-arrow`}),f.createElement(Ey,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),a)))};var xO=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const CO=f.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:i,getTooltipContainer:o,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:p=!0,title:g,overlay:v,builtinPlacements:x,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,S=!!p,[,C]=xr(),{getPopupContainer:_,getPrefixCls:R,direction:E}=f.useContext(vt),O=qt("Tooltip"),k=f.useRef(null),N=()=>{var ve;(ve=k.current)===null||ve===void 0||ve.forceAlign()};f.useImperativeHandle(t,()=>{var ve;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(ve=k.current)===null||ve===void 0?void 0:ve.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ve=>{let[de,Ce]=ve;O.deprecated(!(de in e),de,Ce)}),process.env.NODE_ENV!=="production"&&O(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&O(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[z,F]=vn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!g&&!v&&g!==0,I=ve=>{var de,Ce;F(j?!1:ve),j||((de=e.onOpenChange)===null||de===void 0||de.call(e,ve),(Ce=e.onVisibleChange)===null||Ce===void 0||Ce.call(e,ve))},T=f.useMemo(()=>{var ve,de;let Ce=b;return typeof p=="object"&&(Ce=(de=(ve=p.pointAtCenter)!==null&&ve!==void 0?ve:p.arrowPointAtCenter)!==null&&de!==void 0?de:b),x||vO({arrowPointAtCenter:Ce,autoAdjustOverflow:y,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[b,p,x,C]),w=f.useMemo(()=>g===0?g:v||g||"",[v,g]),P=f.createElement(Wd,{space:!0},typeof w=="function"?w():w),{getPopupContainer:A,placement:M="top",mouseEnterDelay:L=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,X=xO(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=R("tooltip",a),Z=R(),J=e["data-popover-inject"];let G=z;!("open"in e)&&!("visible"in e)&&j&&(G=!1);const ee=f.isValidElement(u)&&!Ub(u)?u:f.createElement("span",null,u),ae=ee.props,V=!ae.className||typeof ae.className=="string"?oe(ae.className,i||`${Q}-open`):ae.className,[ce,B,ue]=Ry(Q,!J),le=Py(Q,l),be=le.arrowStyle,xe=Object.assign(Object.assign({},c),le.overlayStyle),fe=oe(s,{[`${Q}-rtl`]:E==="rtl"},le.className,q,B,ue),[ge,we]=M$("Tooltip",X.zIndex),Me=f.createElement(sO,Object.assign({},X,{zIndex:ge,showArrow:S,placement:M,mouseEnterDelay:L,mouseLeaveDelay:K,prefixCls:Q,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},be),W),getTooltipContainer:A||o||_,ref:k,builtinPlacements:T,overlay:P,visible:G,onVisibleChange:I,afterVisibleChange:d??h,overlayInnerStyle:xe,arrowContent:f.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Gb(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),G?Pl(ee,{className:V}):ee);return ce(f.createElement(Gf.Provider,{value:we},Me))}),Bo=CO;process.env.NODE_ENV!=="production"&&(Bo.displayName="Tooltip");Bo._InternalPanelDoNotUseOrYouWillBeFired=yO;var SO=ye.ESC,wO=ye.TAB;function _O(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,i=e.overlayRef,o=f.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1)}},l=function(){var d;return(d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),o.current=!0,!0):!1},c=function(d){switch(d.keyCode){case SO:s();break;case wO:{var h=!1;o.current||(h=l()),h?d.preventDefault():s();break}}};f.useEffect(function(){return t?(window.addEventListener("keydown",c),a&&Ut(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var $O=$.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,i=$.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=Un(t,i==null?void 0:i.ref);return $.createElement($.Fragment,null,r&&$.createElement("div",{className:"".concat(a,"-arrow")}),$.cloneElement(i,{ref:ua(i)?o:void 0}))}),Pa={adjustX:1,adjustY:1},Ma=[0,0],EO={topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:Ma},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:Ma},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:Ma},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:Ma},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:Ma},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:Ma}},OO=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function TO(e,t){var n,r=e.arrow,a=r===void 0?!1:r,i=e.prefixCls,o=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,m=h===void 0?EO:h,p=e.getPopupContainer,g=e.showAction,v=e.hideAction,x=e.overlayClassName,b=e.overlayStyle,y=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,_=e.autoFocus,R=e.overlay,E=e.children,O=e.onVisibleChange,k=ot(e,OO),N=$.useState(),z=re(N,2),F=z[0],j=z[1],I="visible"in e?y:F,T=$.useRef(null),w=$.useRef(null),P=$.useRef(null);$.useImperativeHandle(t,function(){return T.current});var A=function(J){j(J),O==null||O(J)};_O({visible:I,triggerRef:P,onVisibleChange:A,autoFocus:_,overlayRef:w});var M=function(J){var G=e.onOverlayClick;j(!1),G&&G(J)},L=function(){return $.createElement($O,{ref:w,overlay:R,prefixCls:o,arrow:a})},K=function(){return typeof R=="function"?L:L()},W=function(){var J=e.minOverlayWidthMatchTrigger,G=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!G},q=function(){var J=e.openClassName;return J!==void 0?J:"".concat(o,"-open")},X=$.cloneElement(E,{className:oe((n=E.props)===null||n===void 0?void 0:n.className,I&&q()),ref:ua(E)?Un(P,E.ref):void 0}),Q=v;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),$.createElement(th,Re({builtinPlacements:m},k,{prefixCls:o,ref:T,popupClassName:oe(x,U({},"".concat(o,"-show-arrow"),a)),popupStyle:b,action:C,showAction:g,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:A,onPopupClick:M,getPopupContainer:p}),X)}const RO=$.forwardRef(TO);var My=f.createContext(null);function Iy(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ny(e){var t=f.useContext(My);return Iy(t,e)}var PO=["children","locked"],Hn=f.createContext(null);function MO(e,t){var n=Y({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function xo(e){var t=e.children,n=e.locked,r=ot(e,PO),a=f.useContext(Hn),i=wl(function(){return MO(a,r)},[a,r],function(o,s){return!n&&(o[0]!==s[0]||!uo(o[1],s[1],!0))});return f.createElement(Hn.Provider,{value:i},t)}var IO=[],Ay=f.createContext(null);function jl(){return f.useContext(Ay)}var jy=f.createContext(IO);function Vo(e){var t=f.useContext(jy);return f.useMemo(function(){return e!==void 0?[].concat(Oe(t),[e]):t},[t,e])}var ky=f.createContext(null),nh=f.createContext({});function kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Kf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function NO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Oe(e.querySelectorAll("*")).filter(function(r){return kp(r,t)});return kp(e,t)&&n.unshift(e),n}var Gd=ye.LEFT,Kd=ye.RIGHT,Yd=ye.UP,Ls=ye.DOWN,Ds=ye.ENTER,Fy=ye.ESC,Ai=ye.HOME,ji=ye.END,Fp=[Yd,Ls,Gd,Kd];function AO(e,t,n,r){var a,i,o,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Ds)return{inlineTrigger:!0};var h=(a={},U(a,Yd,l),U(a,Ls,c),a),m=(i={},U(i,Gd,n?c:l),U(i,Kd,n?l:c),U(i,Ls,u),U(i,Ds,u),i),p=(o={},U(o,Yd,l),U(o,Ls,c),U(o,Ds,u),U(o,Fy,d),U(o,Gd,n?u:d),U(o,Kd,n?d:u),o),g={inline:h,horizontal:m,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},v=(s=g["".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 jO(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function kO(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function rh(e,t){var n=NO(e,!0);return n.filter(function(r){return t.has(r)})}function Lp(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=rh(e,t),i=a.length,o=a.findIndex(function(s){return n===s});return r<0?o===-1?o=i-1:o-=1:r>0&&(o+=1),o=(o+i)%i,a[o]}var Xd=function(t,n){var r=new Set,a=new Map,i=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(Iy(n,o),"']"));s&&(r.add(s),i.set(s,o),a.set(o,s))}),{elements:r,key2element:a,element2key:i}};function FO(e,t,n,r,a,i,o,s,l,c){var u=f.useRef(),d=f.useRef();d.current=t;var h=function(){Ut.cancel(u.current)};return f.useEffect(function(){return function(){h()}},[]),function(m){var p=m.which;if([].concat(Fp,[Ds,Fy,Ai,ji]).includes(p)){var g=i(),v=Xd(g,r),x=v,b=x.elements,y=x.key2element,S=x.element2key,C=y.get(t),_=kO(C,b),R=S.get(_),E=AO(e,o(R,!0).length===1,n,p);if(!E&&p!==Ai&&p!==ji)return;(Fp.includes(p)||[Ai,ji].includes(p))&&m.preventDefault();var O=function(w){if(w){var P=w,A=w.querySelector("a");A!=null&&A.getAttribute("href")&&(P=A);var M=S.get(w);s(M),h(),u.current=Ut(function(){d.current===M&&P.focus()})}};if([Ai,ji].includes(p)||E.sibling||!_){var k;!_||e==="inline"?k=a.current:k=jO(_);var N,z=rh(k,b);p===Ai?N=z[0]:p===ji?N=z[z.length-1]:N=Lp(k,b,_,E.offset),O(N)}else if(E.inlineTrigger)l(R);else if(E.offset>0)l(R,!0),h(),u.current=Ut(function(){v=Xd(g,r);var T=_.getAttribute("aria-controls"),w=document.getElementById(T),P=Lp(w,v.elements);O(P)},5);else if(E.offset<0){var F=o(R,!0),j=F[F.length-2],I=y.get(j);l(j,!1),O(I)}}c==null||c(m)}}function LO(e){Promise.resolve().then(e)}var ah="__RC_UTIL_PATH_SPLIT__",Dp=function(t){return t.join(ah)},DO=function(t){return t.split(ah)},Qd="rc-menu-more";function zO(){var e=f.useState({}),t=re(e,2),n=t[1],r=$.useRef(new Map),a=$.useRef(new Map),i=f.useState([]),o=re(i,2),s=o[0],l=o[1],c=$.useRef(0),u=$.useRef(!1),d=function(){u.current||n({})},h=$.useCallback(function(y,S){process.env.NODE_ENV!=="production"&&xt(!r.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(S.join(" > "),"]"));var C=Dp(S);a.current.set(C,y),r.current.set(y,C),c.current+=1;var _=c.current;LO(function(){_===c.current&&d()})},[]),m=$.useCallback(function(y,S){var C=Dp(S);a.current.delete(C),r.current.delete(y)},[]),p=$.useCallback(function(y){l(y)},[]),g=$.useCallback(function(y,S){var C=r.current.get(y)||"",_=DO(C);return S&&s.includes(_[0])&&_.unshift(Qd),_},[s]),v=$.useCallback(function(y,S){return y.filter(function(C){return C!==void 0}).some(function(C){var _=g(C,!0);return _.includes(S)})},[g]),x=function(){var S=Oe(r.current.keys());return s.length&&S.push(Qd),S},b=$.useCallback(function(y){var S="".concat(r.current.get(y)).concat(ah),C=new Set;return Oe(a.current.keys()).forEach(function(_){_.startsWith(S)&&C.add(a.current.get(_))}),C},[]);return f.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:m,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:g,getKeys:x,getSubPathKeys:b}}function Gi(e){var t=f.useRef(e);t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var BO=Math.random().toFixed(5).toString().slice(2),zp=0;function VO(e){var t=vn(e,{value:e}),n=re(t,2),r=n[0],a=n[1];return f.useEffect(function(){zp+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(BO,"-").concat(zp);a("rc-menu-uuid-".concat(i))},[]),r}function Ly(e,t,n,r){var a=f.useContext(Hn),i=a.activeKey,o=a.onActive,s=a.onInactive,l={active:i===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 Dy(e){var t=f.useContext(Hn),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*a}:{paddingLeft:i*a}}function zy(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=f.createElement(t,Y({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var HO=["item"];function nl(e){var t=e.item,n=ot(e,HO);return Object.defineProperty(n,"item",{get:function(){return xt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var WO=["title","attribute","elementRef"],UO=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],qO=["active"],GO=function(e){Dr(n,e);var t=zr(n);function n(){return Jt(this,n),t.apply(this,arguments)}return en(n,[{key:"render",value:function(){var a=this.props,i=a.title,o=a.attribute,s=a.elementRef,l=ot(a,WO),c=qn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return xt(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(mr.Item,Re({},o,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(f.Component),KO=f.forwardRef(function(e,t){var n,r=e.style,a=e.className,i=e.eventKey,o=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,h=e.onMouseLeave,m=e.onClick,p=e.onKeyDown,g=e.onFocus,v=ot(e,UO),x=Ny(i),b=f.useContext(Hn),y=b.prefixCls,S=b.onItemClick,C=b.disabled,_=b.overflowDisabled,R=b.itemIcon,E=b.selectedKeys,O=b.onActive,k=f.useContext(nh),N=k._internalRenderMenuItem,z="".concat(y,"-item"),F=f.useRef(),j=f.useRef(),I=C||s,T=No(t,j),w=Vo(i);process.env.NODE_ENV!=="production"&&o&&xt(!1,"MenuItem should not leave undefined `key`.");var P=function(ae){return{key:i,keyPath:Oe(w).reverse(),item:F.current,domEvent:ae}},A=l||R,M=Ly(i,I,d,h),L=M.active,K=ot(M,qO),W=E.includes(i),q=Dy(w.length),X=function(ae){if(!I){var V=P(ae);m==null||m(nl(V)),S(V)}},Q=function(ae){if(p==null||p(ae),ae.which===ye.ENTER){var V=P(ae);m==null||m(nl(V)),S(V)}},Z=function(ae){O(i),g==null||g(ae)},J={};e.role==="option"&&(J["aria-selected"]=W);var G=f.createElement(GO,Re({ref:F,elementRef:T,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":_&&x?null:x},v,K,J,{component:"li","aria-disabled":s,style:Y(Y({},q),r),className:oe(z,(n={},U(n,"".concat(z,"-active"),L),U(n,"".concat(z,"-selected"),W),U(n,"".concat(z,"-disabled"),I),n),a),onClick:X,onKeyDown:Q,onFocus:Z}),c,f.createElement(zy,{props:Y(Y({},e),{},{isSelected:W}),icon:A}));return N&&(G=N(G,e,{selected:W})),G});function YO(e,t){var n=e.eventKey,r=jl(),a=Vo(n);return f.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:f.createElement(KO,Re({},e,{ref:t}))}const kl=f.forwardRef(YO);var XO=["className","children"],QO=function(t,n){var r=t.className,a=t.children,i=ot(t,XO),o=f.useContext(Hn),s=o.prefixCls,l=o.mode,c=o.rtl;return f.createElement("ul",Re({className:oe(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),a)},ih=f.forwardRef(QO);ih.displayName="SubMenuList";function oh(e,t){return tr(e).map(function(n,r){if(f.isValidElement(n)){var a,i,o=n.key,s=(a=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&a!==void 0?a:o,l=s==null;l&&(s="tmp_key-".concat([].concat(Oe(t),[r]).join("-")));var c={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),f.cloneElement(n,c)}return n})}var rn={adjustX:1,adjustY:1},ZO={topLeft:{points:["bl","tl"],overflow:rn},topRight:{points:["br","tr"],overflow:rn},bottomLeft:{points:["tl","bl"],overflow:rn},bottomRight:{points:["tr","br"],overflow:rn},leftTop:{points:["tr","tl"],overflow:rn},leftBottom:{points:["br","bl"],overflow:rn},rightTop:{points:["tl","tr"],overflow:rn},rightBottom:{points:["bl","br"],overflow:rn}},JO={topLeft:{points:["bl","tl"],overflow:rn},topRight:{points:["br","tr"],overflow:rn},bottomLeft:{points:["tl","bl"],overflow:rn},bottomRight:{points:["tr","br"],overflow:rn},rightTop:{points:["tr","tl"],overflow:rn},rightBottom:{points:["br","bl"],overflow:rn},leftTop:{points:["tl","tr"],overflow:rn},leftBottom:{points:["bl","br"],overflow:rn}};function By(e,t,n){if(t)return t;if(n)return n[e]||n.other}var e3={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function t3(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,i=e.popupStyle,o=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f.useContext(Hn),h=d.getPopupContainer,m=d.rtl,p=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,x=d.triggerSubMenuAction,b=d.forceSubMenuRender,y=d.rootClassName,S=d.motion,C=d.defaultMotions,_=f.useState(!1),R=re(_,2),E=R[0],O=R[1],k=Y(m?Y({},JO):Y({},ZO),v),N=e3[c],z=By(c,S,C),F=f.useRef(z);c!=="inline"&&(F.current=z);var j=Y(Y({},F.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=f.useRef();return f.useEffect(function(){return I.current=Ut(function(){O(n)}),function(){Ut.cancel(I.current)}},[n]),f.createElement(th,{prefixCls:t,popupClassName:oe("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),m),o,y),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:k,popupPlacement:N,popupVisible:E,popup:a,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[x],mouseEnterDelay:p,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:b,popupMotion:j,fresh:!0},r)}function n3(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,i="inline",o=f.useContext(Hn),s=o.prefixCls,l=o.forceSubMenuRender,c=o.motion,u=o.defaultMotions,d=o.mode,h=f.useRef(!1);h.current=d===i;var m=f.useState(!h.current),p=re(m,2),g=p[0],v=p[1],x=h.current?n:!1;f.useEffect(function(){h.current&&v(!1)},[d]);var b=Y({},By(i,c,u));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(S){return!h.current&&!S&&v(!0),y==null?void 0:y(S)},g?null:f.createElement(xo,{mode:i,locked:!h.current},f.createElement(da,Re({visible:x},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,_=S.style;return f.createElement(ih,{id:t,className:C,style:_},a)}))}var r3=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],a3=["active"],i3=f.forwardRef(function(e,t){var n,r=e.style,a=e.className,i=e.title,o=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,h=e.expandIcon,m=e.popupClassName,p=e.popupOffset,g=e.popupStyle,v=e.onClick,x=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,S=e.onTitleMouseEnter,C=e.onTitleMouseLeave,_=ot(e,r3),R=Ny(o),E=f.useContext(Hn),O=E.prefixCls,k=E.mode,N=E.openKeys,z=E.disabled,F=E.overflowDisabled,j=E.activeKey,I=E.selectedKeys,T=E.itemIcon,w=E.expandIcon,P=E.onItemClick,A=E.onOpenChange,M=E.onActive,L=f.useContext(nh),K=L._internalRenderSubMenuItem,W=f.useContext(ky),q=W.isSubPathKey,X=Vo(),Q="".concat(O,"-submenu"),Z=z||l,J=f.useRef(),G=f.useRef();process.env.NODE_ENV!=="production"&&s&&xt(!1,"SubMenu should not leave undefined `key`.");var ee=d??T,ae=h??w,V=N.includes(o),ce=!F&&V,B=q(I,o),ue=Ly(o,Z,S,C),le=ue.active,be=ot(ue,a3),xe=f.useState(!1),fe=re(xe,2),ge=fe[0],we=fe[1],Me=function(ze){Z||we(ze)},ve=function(ze){Me(!0),x==null||x({key:o,domEvent:ze})},de=function(ze){Me(!1),b==null||b({key:o,domEvent:ze})},Ce=f.useMemo(function(){return le||(k!=="inline"?ge||q([j],o):!1)},[k,le,j,ge,o,q]),Se=Dy(X.length),st=function(ze){Z||(y==null||y({key:o,domEvent:ze}),k==="inline"&&A(o,!V))},nt=Gi(function(Ye){v==null||v(nl(Ye)),P(Ye)}),Fe=function(ze){k!=="inline"&&A(o,ze)},We=function(){M(o)},et=R&&"".concat(R,"-popup"),rt=f.createElement("div",Re({role:"menuitem",style:Se,className:"".concat(Q,"-title"),tabIndex:Z?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":F&&R?null:R,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":et,"aria-disabled":Z,onClick:st,onFocus:We},be),i,f.createElement(zy,{icon:k!=="horizontal"?ae:void 0,props:Y(Y({},e),{},{isOpen:ce,isSubMenu:!0})},f.createElement("i",{className:"".concat(Q,"-arrow")}))),De=f.useRef(k);if(k!=="inline"&&X.length>1?De.current="vertical":De.current=k,!F){var Ie=De.current;rt=f.createElement(t3,{mode:Ie,prefixCls:Q,visible:!c&&ce&&k!=="inline",popupClassName:m,popupOffset:p,popupStyle:g,popup:f.createElement(xo,{mode:Ie==="horizontal"?"vertical":Ie},f.createElement(ih,{id:et,ref:G},u)),disabled:Z,onVisibleChange:Fe},rt)}var mt=f.createElement(mr.Item,Re({ref:t,role:"none"},_,{component:"li",style:r,className:oe(Q,"".concat(Q,"-").concat(k),a,(n={},U(n,"".concat(Q,"-open"),ce),U(n,"".concat(Q,"-active"),Ce),U(n,"".concat(Q,"-selected"),B),U(n,"".concat(Q,"-disabled"),Z),n)),onMouseEnter:ve,onMouseLeave:de}),rt,!F&&f.createElement(n3,{id:et,open:ce,keyPath:X},u));return K&&(mt=K(mt,e,{selected:B,active:Ce,open:ce,disabled:Z})),f.createElement(xo,{onItemClick:nt,mode:k==="horizontal"?"vertical":k,itemIcon:ee,expandIcon:ae},mt)}),Fl=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Vo(n),i=oh(r,a),o=jl();f.useEffect(function(){if(o)return o.registerPath(n,a),function(){o.unregisterPath(n,a)}},[a]);var s;return o?s=i:s=f.createElement(i3,Re({ref:t},e),i),f.createElement(jy.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Fl.displayName="SubMenu");function Vy(e){var t=e.className,n=e.style,r=f.useContext(Hn),a=r.prefixCls,i=jl();return i?null:f.createElement("li",{role:"separator",className:oe("".concat(a,"-item-divider"),t),style:n})}var o3=["className","title","eventKey","children"],s3=f.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,i=ot(e,o3),o=f.useContext(Hn),s=o.prefixCls,l="".concat(s,"-item-group");return f.createElement("li",Re({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:oe(l,n)}),f.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),sh=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Vo(n),i=oh(r,a),o=jl();return o?i:f.createElement(s3,Re({ref:t},qn(e,["warnKey"])),i)});process.env.NODE_ENV!=="production"&&(sh.displayName="MenuItemGroup");var l3=["label","children","key","type"];function Zd(e,t){var n=t.item,r=t.group,a=t.submenu,i=t.divider;return(e||[]).map(function(o,s){if(o&&ke(o)==="object"){var l=o,c=l.label,u=l.children,d=l.key,h=l.type,m=ot(l,l3),p=d??"tmp-".concat(s);return u||h==="group"?h==="group"?f.createElement(r,Re({key:p},m,{title:c}),Zd(u,t)):f.createElement(a,Re({key:p},m,{title:c}),Zd(u,t)):h==="divider"?f.createElement(i,Re({key:p},m)):f.createElement(n,Re({key:p},m),c)}return null}).filter(function(o){return o})}function Bp(e,t,n,r){var a=e,i=Y({divider:Vy,item:kl,group:sh,submenu:Fl},r);return t&&(a=Zd(t,i)),oh(a,n)}var c3=["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"],Hr=[],u3=f.forwardRef(function(e,t){var n,r,a=e,i=a.prefixCls,o=i===void 0?"rc-menu":i,s=a.rootClassName,l=a.style,c=a.className,u=a.tabIndex,d=u===void 0?0:u,h=a.items,m=a.children,p=a.direction,g=a.id,v=a.mode,x=v===void 0?"vertical":v,b=a.inlineCollapsed,y=a.disabled,S=a.disabledOverflow,C=a.subMenuOpenDelay,_=C===void 0?.1:C,R=a.subMenuCloseDelay,E=R===void 0?.1:R,O=a.forceSubMenuRender,k=a.defaultOpenKeys,N=a.openKeys,z=a.activeKey,F=a.defaultActiveFirst,j=a.selectable,I=j===void 0?!0:j,T=a.multiple,w=T===void 0?!1:T,P=a.defaultSelectedKeys,A=a.selectedKeys,M=a.onSelect,L=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,X=a.defaultMotions,Q=a.triggerSubMenuAction,Z=Q===void 0?"hover":Q,J=a.builtinPlacements,G=a.itemIcon,ee=a.expandIcon,ae=a.overflowedIndicator,V=ae===void 0?"...":ae,ce=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,be=a.onKeyDown,xe=a.openAnimation,fe=a.openTransitionName,ge=a._internalRenderMenuItem,we=a._internalRenderSubMenuItem,Me=a._internalComponents,ve=ot(a,c3),de=f.useMemo(function(){return[Bp(m,h,Hr,Me),Bp(m,h,Hr,{})]},[m,h,Me]),Ce=re(de,2),Se=Ce[0],st=Ce[1],nt=f.useState(!1),Fe=re(nt,2),We=Fe[0],et=Fe[1],rt=f.useRef(),De=VO(g),Ie=p==="rtl";process.env.NODE_ENV!=="production"&&xt(!xe&&!fe,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var mt=vn(k,{value:N,postState:function(bt){return bt||Hr}}),Ye=re(mt,2),ze=Ye[0],me=Ye[1],$e=function(bt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Kt(){me(bt),le==null||le(bt)}Et?na.flushSync(Kt):Kt()},Je=f.useState(ze),lt=re(Je,2),pt=lt[0],gt=lt[1],Ue=f.useRef(!1),qe=f.useMemo(function(){return(x==="inline"||x==="vertical")&&b?["vertical",b]:[x,!1]},[x,b]),He=re(qe,2),Ee=He[0],_e=He[1],Be=Ee==="inline",Tt=f.useState(Ee),Qe=re(Tt,2),Ge=Qe[0],dt=Qe[1],Ct=f.useState(_e),Dt=re(Ct,2),jt=Dt[0],at=Dt[1];f.useEffect(function(){dt(Ee),at(_e),Ue.current&&(Be?me(pt):$e(Hr))},[Ee,_e]);var D=f.useState(0),te=re(D,2),ie=te[0],pe=te[1],Ne=ie>=Se.length-1||Ge!=="horizontal"||S;f.useEffect(function(){Be&>(ze)},[ze]),f.useEffect(function(){return Ue.current=!0,function(){Ue.current=!1}},[]);var Pe=zO(),Ae=Pe.registerPath,Le=Pe.unregisterPath,Rt=Pe.refreshOverflowKeys,ft=Pe.isSubPathKey,Xe=Pe.getKeyPath,zt=Pe.getKeys,sn=Pe.getSubPathKeys,nn=f.useMemo(function(){return{registerPath:Ae,unregisterPath:Le}},[Ae,Le]),Mt=f.useMemo(function(){return{isSubPathKey:ft}},[ft]);f.useEffect(function(){Rt(Ne?Hr:Se.slice(ie+1).map(function(It){return It.key}))},[ie,Ne]);var Gn=vn(z||F&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:z}),_r=re(Gn,2),ln=_r[0],$r=_r[1],Si=Gi(function(It){$r(It)}),Sn=Gi(function(){$r(void 0)});$.useImperativeHandle(t,function(){return{list:rt.current,focus:function(bt){var Et,Kt=zt(),Qt=Xd(Kt,De),Yn=Qt.elements,Xn=Qt.key2element,Ei=Qt.element2key,cn=rh(rt.current,Yn),Vr=ln??(cn[0]?Ei.get(cn[0]):(Et=Se.find(function(Or){return!Or.props.disabled}))===null||Et===void 0?void 0:Et.key),un=Xn.get(Vr);if(Vr&&un){var Nn;un==null||(Nn=un.focus)===null||Nn===void 0||Nn.call(un,bt)}}}});var Mn=vn(P||[],{value:A,postState:function(bt){return Array.isArray(bt)?bt:bt==null?Hr:[bt]}}),Er=re(Mn,2),lr=Er[0],Kn=Er[1],cr=function(bt){if(I){var Et=bt.key,Kt=lr.includes(Et),Qt;w?Kt?Qt=lr.filter(function(Xn){return Xn!==Et}):Qt=[].concat(Oe(lr),[Et]):Qt=[Et],Kn(Qt);var Yn=Y(Y({},bt),{},{selectedKeys:Qt});Kt?L==null||L(Yn):M==null||M(Yn)}!w&&ze.length&&Ge!=="inline"&&$e(Hr)},Br=Gi(function(It){ue==null||ue(nl(It)),cr(It)}),ur=Gi(function(It,bt){var Et=ze.filter(function(Qt){return Qt!==It});if(bt)Et.push(It);else if(Ge!=="inline"){var Kt=sn(It);Et=Et.filter(function(Qt){return!Kt.has(Qt)})}uo(ze,Et,!0)||$e(Et,!0)}),In=function(bt,Et){var Kt=Et??!ze.includes(bt);ur(bt,Kt)},wi=FO(Ge,ln,Ie,De,rt,zt,Xe,$r,In,be);f.useEffect(function(){et(!0)},[]);var _i=f.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:we}},[ge,we]),$i=Ge!=="horizontal"||S?Se:Se.map(function(It,bt){return f.createElement(xo,{key:It.key,overflowDisabled:bt>ie},It)}),Ca=f.createElement(mr,Re({id:g,ref:rt,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:kl,className:oe(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ge),c,(r={},U(r,"".concat(o,"-inline-collapsed"),jt),U(r,"".concat(o,"-rtl"),Ie),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:$i,renderRawItem:function(bt){return bt},renderRawRest:function(bt){var Et=bt.length,Kt=Et?Se.slice(-Et):null;return f.createElement(Fl,{eventKey:Qd,title:V,disabled:Ne,internalPopupClose:Et===0,popupClassName:ce},Kt)},maxCount:Ge!=="horizontal"||S?mr.INVALIDATE:mr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(bt){pe(bt)},onKeyDown:wi},ve));return f.createElement(nh.Provider,{value:_i},f.createElement(My.Provider,{value:De},f.createElement(xo,{prefixCls:o,rootClassName:s,mode:Ge,openKeys:ze,rtl:Ie,disabled:y,motion:We?q:null,defaultMotions:We?X:null,activeKey:ln,onActive:Si,onInactive:Sn,selectedKeys:lr,inlineIndent:W,subMenuOpenDelay:_,subMenuCloseDelay:E,forceSubMenuRender:O,builtinPlacements:J,triggerSubMenuAction:Z,getPopupContainer:B,itemIcon:G,expandIcon:ee,onItemClick:Br,onOpenChange:ur},f.createElement(ky.Provider,{value:Mt},Ca),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Ay.Provider,{value:nn},st)))))}),Ho=u3;Ho.Item=kl;Ho.SubMenu=Fl;Ho.ItemGroup=sh;Ho.Divider=Vy;var d3={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"},f3=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:d3}))},Hy=f.forwardRef(f3);process.env.NODE_ENV!=="production"&&(Hy.displayName="EllipsisOutlined");const Wy=f.createContext(null),h3=Wy.Provider,Uy=f.createContext(null),v3=Uy.Provider;var p3=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],g3=$.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,i=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,h=e.title,m=e.onChange,p=ot(e,p3),g=$.useRef(null),v=$.useRef(null),x=vn(c,{value:o}),b=re(x,2),y=b[0],S=b[1];$.useImperativeHandle(t,function(){return{focus:function(E){var O;(O=g.current)===null||O===void 0||O.focus(E)},blur:function(){var E;(E=g.current)===null||E===void 0||E.blur()},input:g.current,nativeElement:v.current}});var C=oe(r,a,U(U({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),s)),_=function(E){s||("checked"in e||S(E.target.checked),m==null||m({target:Y(Y({},e),{},{type:d,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return f.createElement("span",{className:C,title:h,style:i,ref:v},f.createElement("input",Re({},p,{className:"".concat(r,"-input"),ref:g,onChange:_,disabled:s,checked:!!y,type:d})),f.createElement("span",{className:"".concat(r,"-inner")}))});const m3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},br(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"}})}},b3=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:h,paddingXS:m,dotColorDisabled:p,lineType:g,radioColor:v,radioBgColor:x,calc:b}=e,y=`${t}-inner`,C=b(a).sub(b(4).mul(2)),_=b(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},br(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:`${se(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},br(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
248
|
-
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Hf(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:_,height:_,marginBlockStart:b(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:_,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:_,height:_,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`]:{[y]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},y3=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:i,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:h,controlHeightLG:m,controlHeightSM:p,paddingXS:g,borderRadius:v,borderRadiusSM:x,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:_,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:E,colorPrimary:O,colorPrimaryHover:k,colorPrimaryActive:N,buttonSolidCheckedBg:z,buttonSolidCheckedHoverBg:F,buttonSolidCheckedActiveBg:j,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:se(I(n).sub(I(a).mul(2)).equal()),background:d,border:`${se(a)} ${i} ${o}`,borderBlockStartWidth:I(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,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:I(a).mul(-1).equal(),insetInlineStart:I(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${se(a)} ${i} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:m,fontSize:h,lineHeight:se(I(m).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:p,paddingInline:I(g).sub(a).equal(),paddingBlock:0,lineHeight:se(I(p).sub(I(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},Hf(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:O,background:y,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:z,borderColor:z,"&:hover":{color:S,background:F,borderColor:F},"&:active":{color:S,background:j,borderColor:j}},"&-disabled":{color:C,backgroundColor:_,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:_,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:R,borderColor:o,boxShadow:"none"}}}},x3=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:h,colorPrimaryActive:m,colorWhite:p}=e,g=4,v=i,x=t?v-g*2:v-(g+a)*2;return{radioSize:v,dotSize:x,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:p,radioBgColor:t?s:d}},qy=Pn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${se(n)} ${t}`,i=Yt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[m3(i),b3(i),y3(i)]},x3,{unitless:{radioSize:!0,dotSize:!0}});var C3=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const S3=(e,t)=>{var n,r;const a=f.useContext(Wy),i=f.useContext(Uy),{getPrefixCls:o,direction:s,radio:l}=f.useContext(vt),c=f.useRef(null),u=Un(t,c),{isFormItemInput:d}=f.useContext(ti);if(process.env.NODE_ENV!=="production"){const j=qt("Radio");process.env.NODE_ENV!=="production"&&j(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const h=j=>{var I,T;(I=e.onChange)===null||I===void 0||I.call(e,j),(T=a==null?void 0:a.onChange)===null||T===void 0||T.call(a,j)},{prefixCls:m,className:p,rootClassName:g,children:v,style:x,title:b}=e,y=C3(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",m),C=((a==null?void 0:a.optionType)||i)==="button",_=C?`${S}-button`:S,R=jo(S),[E,O,k]=qy(S,R),N=Object.assign({},y),z=f.useContext(ra);a&&(N.name=a.name,N.onChange=h,N.checked=e.value===a.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:a.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:z;const F=oe(`${_}-wrapper`,{[`${_}-wrapper-checked`]:N.checked,[`${_}-wrapper-disabled`]:N.disabled,[`${_}-wrapper-rtl`]:s==="rtl",[`${_}-wrapper-in-form-item`]:d},l==null?void 0:l.className,p,g,O,k,R);return E(f.createElement(Xf,{component:"Radio",disabled:N.disabled},f.createElement("label",{className:F,style:Object.assign(Object.assign({},l==null?void 0:l.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},f.createElement(g3,Object.assign({},N,{className:oe(N.className,{[Yf]:!C}),type:"radio",prefixCls:_,ref:u})),v!==void 0?f.createElement("span",null,v):null)))},Co=f.forwardRef(S3);process.env.NODE_ENV!=="production"&&(Co.displayName="Radio");const w3=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(vt),[a,i]=vn(e.defaultValue,{value:e.value}),o=j=>{const I=a,T=j.target.value;"value"in e||i(T);const{onChange:w}=e;w&&T!==I&&w(j)},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:h,children:m,size:p,style:g,id:v,onMouseEnter:x,onMouseLeave:b,onFocus:y,onBlur:S}=e,C=n("radio",s),_=`${C}-group`,R=jo(C),[E,O,k]=qy(C,R);let N=m;u&&u.length>0&&(N=u.map(j=>typeof j=="string"||typeof j=="number"?f.createElement(Co,{key:j.toString(),prefixCls:C,disabled:h,value:j,checked:a===j},j):f.createElement(Co,{key:`radio-group-value-options-${j.value}`,prefixCls:C,disabled:j.disabled||h,value:j.value,checked:a===j.value,title:j.title,style:j.style,id:j.id,required:j.required},j.label)));const z=va(p),F=oe(_,`${_}-${d}`,{[`${_}-${z}`]:z,[`${_}-rtl`]:r==="rtl"},l,c,O,k,R);return E(f.createElement("div",Object.assign({},w$(e,{aria:!0,data:!0}),{className:F,style:g,onMouseEnter:x,onMouseLeave:b,onFocus:y,onBlur:S,id:v,ref:t}),f.createElement(h3,{value:{onChange:o,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},N)))}),_3=f.memo(w3);var $3=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const E3=(e,t)=>{const{getPrefixCls:n}=f.useContext(vt),{prefixCls:r}=e,a=$3(e,["prefixCls"]),i=n("radio",r);return f.createElement(v3,{value:"button"},f.createElement(Co,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},O3=f.forwardRef(E3),Wo=Co;Wo.Button=O3;Wo.Group=_3;Wo.__ANT_RADIO=!0;function T3(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const R3=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:p,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:x,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-a,paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:d-a,addonBg:h,activeBorderColor:p,hoverBorderColor:m,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${x}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},P3=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),lh=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({},P3(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Gy=(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}}),Vp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),M3=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},lh(e))}),Vp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Vp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Hp=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),I3=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Hp(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Hp(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},lh(e))}})}),N3=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Ky=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Wp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ky(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),A3=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ky(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},lh(e))}),Wp(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Wp(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Up=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),j3=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:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Up(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Up(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:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),k3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Yy=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${se(t)} ${se(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Xy=e=>({padding:`${se(e.paddingBlockSM)} ${se(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Qy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${se(e.paddingBlock)} ${se(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},k3(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({},Yy(e)),"&-sm":Object.assign({},Xy(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),F3=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({},Yy(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Xy(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 ${se(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${se(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${se(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:`${se(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${se(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"},Ao()),{[`${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},[`
|
|
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
279
|
& > ${n}-picker-range
|
|
@@ -258,23 +286,23 @@ html body {
|
|
|
258
286
|
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
259
287
|
& > ${n}-select:last-child > ${n}-select-selector,
|
|
260
288
|
& > ${n}-cascader-picker:last-child ${t},
|
|
261
|
-
& > ${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}}}})}},
|
|
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
293
|
&-affix-wrapper${r}-has-feedback ${t}
|
|
266
|
-
`]:{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}}}}}},W3=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Zy=Pn("Input",e=>{const t=Yt(e,T3(e));return[L3(t),H3(t),z3(t),B3(t),V3(t),W3(t),ry(t)]},R3,{resetFont:!1});var U3={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"},q3=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:U3}))},Jy=f.forwardRef(q3);process.env.NODE_ENV!=="production"&&(Jy.displayName="PlusOutlined");const Ll=$.createContext(null);var G3=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,s=o.size,l=o.align,c=l===void 0?"center":l,u=$.useState(),d=re(u,2),h=d[0],m=d[1],p=$.useRef(),g=$.useCallback(function(x){return typeof s=="function"?s(x):typeof s=="number"?s:x},[s]);function v(){Ut.cancel(p.current)}return $.useEffect(function(){var x={};if(n)if(r){x.width=g(n.width);var b=a?"right":"left";c==="start"&&(x[b]=n[b]),c==="center"&&(x[b]=n[b]+n.width/2,x.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(x[b]=n[b]+n.width,x.transform="translateX(-100%)")}else x.height=g(n.height),c==="start"&&(x.top=n.top),c==="center"&&(x.top=n.top+n.height/2,x.transform="translateY(-50%)"),c==="end"&&(x.top=n.top+n.height,x.transform="translateY(-100%)");return v(),p.current=Ut(function(){m(x)}),v},[n,r,a,c,g]),{style:h}},qp={width:0,height:0,left:0,top:0};function K3(e,t,n){return $.useMemo(function(){for(var r,a=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||qp,o=i.left+i.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)||qp}var d=a.get(l)||Y({},c);d.right=o-d.left-d.width,a.set(l,d)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function Gp(e,t){var n=f.useRef(e),r=f.useState({}),a=re(r,2),i=a[1];function o(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,o]}var Y3=.1,Kp=.01,zs=20,Yp=Math.pow(.995,zs);function X3(e,t){var n=$.useState(),r=re(n,2),a=r[0],i=r[1],o=$.useState(0),s=re(o,2),l=s[0],c=s[1],u=$.useState(0),d=re(u,2),h=d[0],m=d[1],p=$.useState(),g=re(p,2),v=g[0],x=g[1],b=$.useRef();function y(O){var k=O.touches[0],N=k.screenX,z=k.screenY;i({x:N,y:z}),window.clearInterval(b.current)}function S(O){if(a){O.preventDefault();var k=O.touches[0],N=k.screenX,z=k.screenY;i({x:N,y:z});var F=N-a.x,j=z-a.y;t(F,j);var I=Date.now();c(I),m(I-l),x({x:F,y:j})}}function C(){if(a&&(i(null),x(null),v)){var O=v.x/h,k=v.y/h,N=Math.abs(O),z=Math.abs(k);if(Math.max(N,z)<Y3)return;var F=O,j=k;b.current=window.setInterval(function(){if(Math.abs(F)<Kp&&Math.abs(j)<Kp){window.clearInterval(b.current);return}F*=Yp,j*=Yp,t(F*zs,j*zs)},zs)}}var _=$.useRef();function R(O){var k=O.deltaX,N=O.deltaY,z=0,F=Math.abs(k),j=Math.abs(N);F===j?z=_.current==="x"?k:N:F>j?(z=k,_.current="x"):(z=N,_.current="y"),t(-z,-z)&&O.preventDefault()}var E=$.useRef(null);E.current={onTouchStart:y,onTouchMove:S,onTouchEnd:C,onWheel:R},f.useEffect(function(){function O(F){E.current.onTouchStart(F)}function k(F){E.current.onTouchMove(F)}function N(F){E.current.onTouchEnd(F)}function z(F){E.current.onWheel(F)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",z,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",N)}},[])}function e1(e){var t=$.useState(0),n=re(t,2),r=n[0],a=n[1],i=$.useRef(0),o=$.useRef();return o.current=e,ad(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){i.current===r&&(i.current+=1,a(i.current))}}function Q3(e){var t=$.useRef([]),n=$.useState({}),r=re(n,2),a=r[1],i=$.useRef(typeof e=="function"?e():e),o=e1(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var Xp={width:0,height:0,left:0,top:0,right:0};function Z3(e,t,n,r,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,d,h;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),$.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,p=m,g=0;g<m;g+=1){var v=e.get(s[g].key)||Xp;if(v[d]+v[u]>h+t){p=g-1;break}}for(var x=0,b=m-1;b>=0;b-=1){var y=e.get(s[b].key)||Xp;if(y[d]<h){x=b+1;break}}return x>=p?[0,0]:[x,p]},[e,t,r,a,i,h,l,s.map(function(m){return m.key}).join("_"),c])}function Qp(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var J3="TABS_DQ";function t1(e){return String(e).replace(/"/g,J3)}function n1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var r1=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:f.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Jd=f.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return ke(a)==="object"&&!f.isValidElement(a)?o=a:o.right=a,n==="right"&&(i=o.right),n==="left"&&(i=o.left),i?f.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});process.env.NODE_ENV!=="production"&&(Jd.displayName="ExtraContent");var e4=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,h=e.tabBarGutter,m=e.rtl,p=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,x=e.popupClassName,b=$.useState(!1),y=re(b,2),S=y[0],C=y[1],_=$.useState(null),R=re(_,2),E=R[0],O=R[1],k=l.icon,N=k===void 0?"More":k,z="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),j=E!==null?"".concat(z,"-").concat(E):null,I=i==null?void 0:i.dropdownAriaLabel;function T(W,q){W.preventDefault(),W.stopPropagation(),d.onEdit("remove",{key:q,event:W})}var w=f.createElement(Ho,{onClick:function(q){var X=q.key,Q=q.domEvent;g(X,Q),C(!1)},prefixCls:"".concat(F,"-menu"),id:z,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[E],"aria-label":I!==void 0?I:"expanded dropdown"},a.map(function(W){var q=W.closable,X=W.disabled,Q=W.closeIcon,Z=W.key,J=W.label,G=n1(q,Q,d,X);return f.createElement(kl,{key:Z,id:"".concat(z,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:X},f.createElement("span",null,J),G&&f.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(ae){ae.stopPropagation(),T(ae,Z)}},Q||d.removeIcon||"×"))}));function P(W){for(var q=a.filter(function(G){return!G.disabled}),X=q.findIndex(function(G){return G.key===E})||0,Q=q.length,Z=0;Z<Q;Z+=1){X=(X+W+Q)%Q;var J=q[X];if(!J.disabled){O(J.key);return}}}function A(W){var q=W.which;if(!S){[ye.DOWN,ye.SPACE,ye.ENTER].includes(q)&&(C(!0),W.preventDefault());return}switch(q){case ye.UP:P(-1),W.preventDefault();break;case ye.DOWN:P(1),W.preventDefault();break;case ye.ESC:C(!1);break;case ye.SPACE:case ye.ENTER:E!==null&&g(E,W);break}}$.useEffect(function(){var W=document.getElementById(j);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[E]),$.useEffect(function(){S||O(null)},[S]);var M=U({},m?"marginRight":"marginLeft",h);a.length||(M.visibility="hidden",M.order=1);var L=oe(U({},"".concat(F,"-rtl"),m)),K=o?null:f.createElement(RO,Re({prefixCls:F,overlay:w,visible:a.length?S:!1,onVisibleChange:C,overlayClassName:oe(L,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),f.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:M,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":z,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:A},N));return f.createElement("div",{className:oe("".concat(n,"-nav-operations"),u),style:c,ref:t},K,f.createElement(r1,{prefixCls:n,locale:i,editable:d}))});const t4=f.memo(e4,function(e,t){return t.tabMoving});var n4=function(t){var n=t.prefixCls,r=t.id,a=t.active,i=t.tab,o=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=t.closable,h=t.renderWrapper,m=t.removeAriaLabel,p=t.editable,g=t.onClick,v=t.onFocus,x=t.style,b="".concat(n,"-tab"),y=n1(d,c,p,l);function S(E){l||g(E)}function C(E){E.preventDefault(),E.stopPropagation(),p.onEdit("remove",{key:o,event:E})}var _=f.useMemo(function(){return u&&typeof s=="string"?f.createElement("span",null,s):s},[s,u]),R=f.createElement("div",{key:o,"data-node-key":t1(o),className:oe(b,U(U(U({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),a),"".concat(b,"-disabled"),l)),style:x,onClick:S},f.createElement("div",{role:"tab","aria-selected":a,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(O){O.stopPropagation(),S(O)},onKeyDown:function(O){[ye.SPACE,ye.ENTER].includes(O.which)&&(O.preventDefault(),S(O))},onFocus:v},u&&f.createElement("span",{className:"".concat(b,"-icon")},u),s&&_),y&&f.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(O){O.stopPropagation(),C(O)}},c||p.removeIcon||"×"));return h?h(R):R},r4=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,i=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,a,o,i]},Ia=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,i=n.offsetHeight,o=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-a)<1)return[l,c]}return[a,o]},gs=function(t,n){return t[n?0:1]},Zp=f.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,i=e.animated,o=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,h=e.tabBarGutter,m=e.children,p=e.onTabClick,g=e.onTabScroll,v=e.indicator,x=f.useContext(Ll),b=x.prefixCls,y=x.tabs,S=$.useRef(null),C=$.useRef(null),_=$.useRef(null),R=$.useRef(null),E=$.useRef(null),O=$.useRef(null),k=$.useRef(null),N=d==="top"||d==="bottom",z=Gp(0,function(te,ie){N&&g&&g({direction:te>ie?"left":"right"})}),F=re(z,2),j=F[0],I=F[1],T=Gp(0,function(te,ie){!N&&g&&g({direction:te>ie?"top":"bottom"})}),w=re(T,2),P=w[0],A=w[1],M=$.useState([0,0]),L=re(M,2),K=L[0],W=L[1],q=$.useState([0,0]),X=re(q,2),Q=X[0],Z=X[1],J=$.useState([0,0]),G=re(J,2),ee=G[0],ae=G[1],V=$.useState([0,0]),ce=re(V,2),B=ce[0],ue=ce[1],le=Q3(new Map),be=re(le,2),xe=be[0],fe=be[1],ge=K3(y,xe,Q[0]),we=gs(K,N),Me=gs(Q,N),ve=gs(ee,N),de=gs(B,N),Ce=we<Me+ve,Se=Ce?we-de:we-ve,st="".concat(b,"-nav-operations-hidden"),nt=0,Fe=0;N&&s?(nt=0,Fe=Math.max(0,Me-Se)):(nt=Math.min(0,Se-Me),Fe=0);function We(te){return te<nt?nt:te>Fe?Fe:te}var et=$.useRef(null),rt=$.useState(),De=re(rt,2),Ie=De[0],mt=De[1];function Ye(){mt(Date.now())}function ze(){et.current&&clearTimeout(et.current)}X3(R,function(te,ie){function pe(Ne,Pe){Ne(function(Ae){var Le=We(Ae+Pe);return Le})}return Ce?(N?pe(I,te):pe(A,ie),ze(),Ye(),!0):!1}),$.useEffect(function(){return ze(),Ie&&(et.current=setTimeout(function(){mt(0)},100)),ze},[Ie]);var me=Z3(ge,Se,N?j:P,Me,ve,de,Y(Y({},e),{},{tabs:y})),$e=re(me,2),Je=$e[0],lt=$e[1],pt=an(function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,ie=ge.get(te)||{width:0,height:0,left:0,right:0,top:0};if(N){var pe=j;s?ie.right<j?pe=ie.right:ie.right+ie.width>j+Se&&(pe=ie.right+ie.width-Se):ie.left<-j?pe=-ie.left:ie.left+ie.width>-j+Se&&(pe=-(ie.left+ie.width-Se)),A(0),I(We(pe))}else{var Ne=P;ie.top<-P?Ne=-ie.top:ie.top+ie.height>-P+Se&&(Ne=-(ie.top+ie.height-Se)),I(0),A(We(Ne))}}),gt={};d==="top"||d==="bottom"?gt[s?"marginRight":"marginLeft"]=h:gt.marginTop=h;var Ue=y.map(function(te,ie){var pe=te.key;return f.createElement(n4,{id:a,prefixCls:b,key:pe,tab:te,style:ie===0?void 0:gt,closable:te.closable,editable:c,active:pe===o,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(Pe){p(pe,Pe)},onFocus:function(){pt(pe),Ye(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),qe=function(){return fe(function(){var ie,pe=new Map,Ne=(ie=E.current)===null||ie===void 0?void 0:ie.getBoundingClientRect();return y.forEach(function(Pe){var Ae,Le=Pe.key,Rt=(Ae=E.current)===null||Ae===void 0?void 0:Ae.querySelector('[data-node-key="'.concat(t1(Le),'"]'));if(Rt){var ft=r4(Rt,Ne),Xe=re(ft,4),zt=Xe[0],sn=Xe[1],nn=Xe[2],Mt=Xe[3];pe.set(Le,{width:zt,height:sn,left:nn,top:Mt})}}),pe})};$.useEffect(function(){qe()},[y.map(function(te){return te.key}).join("_")]);var He=e1(function(){var te=Ia(S),ie=Ia(C),pe=Ia(_);W([te[0]-ie[0]-pe[0],te[1]-ie[1]-pe[1]]);var Ne=Ia(k);ae(Ne);var Pe=Ia(O);ue(Pe);var Ae=Ia(E);Z([Ae[0]-Ne[0],Ae[1]-Ne[1]]),qe()}),Ee=y.slice(0,Je),_e=y.slice(lt+1),Be=[].concat(Oe(Ee),Oe(_e)),Tt=ge.get(o),Qe=G3({activeTabOffset:Tt,horizontal:N,indicator:v,rtl:s}),Ge=Qe.style;$.useEffect(function(){pt()},[o,nt,Fe,Qp(Tt),Qp(ge),N]),$.useEffect(function(){He()},[s]);var dt=!!Be.length,Ct="".concat(b,"-nav-wrap"),Dt,jt,at,D;return N?s?(jt=j>0,Dt=j!==Fe):(Dt=j<0,jt=j!==nt):(at=P<0,D=P!==nt),f.createElement(zn,{onResize:He},f.createElement("div",{ref:No(t,S),role:"tablist",className:oe("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ye()}},f.createElement(Jd,{ref:C,position:"left",extra:l,prefixCls:b}),f.createElement(zn,{onResize:He},f.createElement("div",{className:oe(Ct,U(U(U(U({},"".concat(Ct,"-ping-left"),Dt),"".concat(Ct,"-ping-right"),jt),"".concat(Ct,"-ping-top"),at),"".concat(Ct,"-ping-bottom"),D)),ref:R},f.createElement(zn,{onResize:He},f.createElement("div",{ref:E,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(P,"px)"),transition:Ie?"none":void 0}},Ue,f.createElement(r1,{ref:k,prefixCls:b,locale:u,editable:c,style:Y(Y({},Ue.length===0?void 0:gt),{},{visibility:dt?"hidden":null})}),f.createElement("div",{className:oe("".concat(b,"-ink-bar"),U({},"".concat(b,"-ink-bar-animated"),i.inkBar)),style:Ge}))))),f.createElement(t4,Re({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:b,tabs:Be,className:!dt&&st,tabMoving:!!Ie})),f.createElement(Jd,{ref:_,position:"right",extra:l,prefixCls:b})))}),ch=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return f.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:oe(n,o&&"".concat(n,"-active"),r),ref:t},l)});process.env.NODE_ENV!=="production"&&(ch.displayName="TabPane");var a4=["renderTabBar"],i4=["label","key"],a1=function(t){var n=t.renderTabBar,r=ot(t,a4),a=f.useContext(Ll),i=a.tabs;if(n){var o=Y(Y({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=ot(s,i4);return f.createElement(ch,Re({tab:l,key:c,tabKey:c},u))})});return n(o,Zp)}return f.createElement(Zp,r)};process.env.NODE_ENV!=="production"&&(a1.displayName="TabNavListWrapper");var o4=["key","forceRender","style","className","destroyInactiveTabPane"],s4=function(t){var n=t.id,r=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,s=f.useContext(Ll),l=s.prefixCls,c=s.tabs,u=a.tabPane,d="".concat(l,"-tabpane");return f.createElement("div",{className:oe("".concat(l,"-content-holder"))},f.createElement("div",{className:oe("".concat(l,"-content"),"".concat(l,"-content-").concat(i),U({},"".concat(l,"-content-animated"),u))},c.map(function(h){var m=h.key,p=h.forceRender,g=h.style,v=h.className,x=h.destroyInactiveTabPane,b=ot(h,o4),y=m===r;return f.createElement(da,Re({key:m,visible:y,forceRender:p,removeOnLeave:!!(o||x),leavedClassName:"".concat(d,"-hidden")},a.tabPaneMotion),function(S,C){var _=S.style,R=S.className;return f.createElement(ch,Re({},b,{prefixCls:d,id:n,tabKey:m,animated:u,active:y,style:Y(Y({},g),_),className:oe(v,R),ref:C}))})})))};function l4(){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=Y({inkBar:!0},ke(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&xt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var c4=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Jp=0,i1=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,i=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,h=e.tabPosition,m=h===void 0?"top":h,p=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,x=e.locale,b=e.more,y=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,_=e.onTabClick,R=e.onTabScroll,E=e.getPopupContainer,O=e.popupClassName,k=e.indicator,N=ot(e,c4),z=f.useMemo(function(){return(o||[]).filter(function(B){return B&&ke(B)==="object"&&"key"in B})},[o]),F=s==="rtl",j=l4(d),I=$.useState(!1),T=re(I,2),w=T[0],P=T[1];$.useEffect(function(){P(py())},[]);var A=vn(function(){var B;return(B=z[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:c}),M=re(A,2),L=M[0],K=M[1],W=$.useState(function(){return z.findIndex(function(B){return B.key===L})}),q=re(W,2),X=q[0],Q=q[1];$.useEffect(function(){var B=z.findIndex(function(le){return le.key===L});if(B===-1){var ue;B=Math.max(0,Math.min(X,z.length-1)),K((ue=z[B])===null||ue===void 0?void 0:ue.key)}Q(B)},[z.map(function(B){return B.key}).join("_"),L,X]);var Z=vn(null,{value:n}),J=re(Z,2),G=J[0],ee=J[1];$.useEffect(function(){n||(ee("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":Jp)),Jp+=1)},[]);function ae(B,ue){_==null||_(B,ue);var le=B!==L;K(B),le&&(C==null||C(B))}var V={id:G,activeKey:L,animated:j,tabPosition:m,rtl:F,mobile:w},ce=Y(Y({},V),{},{editable:u,locale:x,more:b,tabBarGutter:p,onTabClick:ae,onTabScroll:R,extra:v,style:g,panes:null,getPopupContainer:E,popupClassName:O,indicator:k});return f.createElement(Ll.Provider,{value:{tabs:z,prefixCls:a}},f.createElement("div",Re({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(m),U(U(U({},"".concat(a,"-mobile"),w),"".concat(a,"-editable"),u),"".concat(a,"-rtl"),F),i)},N),f.createElement(a1,Re({},ce,{renderTabBar:S})),f.createElement(s4,Re({destroyInactiveTabPane:y},V,{animated:j}))))});process.env.NODE_ENV!=="production"&&(i1.displayName="Tabs");const u4={motionAppear:!1,motionEnter:!0,motionLeave:!0};function d4(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({},u4),{motionName:Gb(e,"switch")})),n}var f4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function h4(e){return e.filter(t=>t)}function v4(e,t){if(process.env.NODE_ENV!=="production"&&qt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=tr(t).map(r=>{if(f.isValidElement(r)){const{key:a,props:i}=r,o=i||{},{tab:s}=o,l=f4(o,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return h4(n)}const p4=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}`}}}}},[$p(e,"slide-up"),$p(e,"slide-down")]]},g4=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${se(e.lineWidth)} ${e.lineType} ${i}`,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:se(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:se(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadiusLG)} 0 0 ${se(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 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},m4=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},br(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:`${se(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({},Vf),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${se(e.paddingXXS)} ${se(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"}}})}})}},b4=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,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:`${se(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
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:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin: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:se(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${se(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:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},y4=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${se(e.borderRadius)} ${se(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${se(e.borderRadius)} ${se(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${se(e.borderRadius)} ${se(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadius)} 0 0 ${se(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},x4=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,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}},Wf(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 ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},C4=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=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:se(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:se(e.marginXS)},marginLeft:{_skip_check_:!0,value:se(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},S4=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},br(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:a},padding:`0 ${se(e.paddingXS)}`,background:"transparent",border:`${se(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},Wf(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),x4(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"}}}}}},w4=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}},_4=Pn("Tabs",e=>{const t=Yt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${se(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${se(e.horizontalItemGutter)}`});return[y4(t),C4(t),b4(t),m4(t),g4(t),S4(t),p4(t)]},w4),o1=()=>null;process.env.NODE_ENV!=="production"&&(o1.displayName="DeprecatedTabPane");var $4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const uh=e=>{var t,n,r,a,i,o,s,l,c,u,d;const{type:h,className:m,rootClassName:p,size:g,onEdit:v,hideAdd:x,centered:b,addIcon:y,removeIcon:S,moreIcon:C,more:_,popupClassName:R,children:E,items:O,animated:k,style:N,indicatorSize:z,indicator:F}=e,j=$4(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=j,{direction:T,tabs:w,getPrefixCls:P,getPopupContainer:A}=f.useContext(vt),M=P("tabs",I),L=jo(M),[K,W,q]=_4(M,L);let X;h==="editable-card"&&(X={onEdit:(V,ce)=>{let{key:B,event:ue}=ce;v==null||v(V==="add"?ue:B,V)},removeIcon:(t=S??(w==null?void 0:w.removeIcon))!==null&&t!==void 0?t:f.createElement(Wb,null),addIcon:(y??(w==null?void 0:w.addIcon))||f.createElement(Jy,null),showAdd:x!==!0});const Q=P();if(process.env.NODE_ENV!=="production"){const V=qt("Tabs");process.env.NODE_ENV!=="production"&&V(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&V(!(z||w!=null&&w.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const Z=va(g),J=v4(O,E),G=d4(M,k),ee=Object.assign(Object.assign({},w==null?void 0:w.style),N),ae={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=w==null?void 0:w.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(a=F==null?void 0:F.size)!==null&&a!==void 0?a:z)!==null&&i!==void 0?i:(o=w==null?void 0:w.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:w==null?void 0:w.indicatorSize};return K(f.createElement(i1,Object.assign({direction:T,getPopupContainer:A},j,{items:J,className:oe({[`${M}-${Z}`]:Z,[`${M}-card`]:["card","editable-card"].includes(h),[`${M}-editable-card`]:h==="editable-card",[`${M}-centered`]:b},w==null?void 0:w.className,m,p,W,q,L),popupClassName:oe(R,W,q,L),style:ee,editable:X,more:Object.assign({icon:(d=(u=(c=(l=w==null?void 0:w.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:w==null?void 0:w.moreIcon)!==null&&u!==void 0?u:C)!==null&&d!==void 0?d:f.createElement(Hy,null),transitionName:`${Q}-slide-up`},_),prefixCls:M,animated:G,indicator:ae})))};uh.TabPane=o1;process.env.NODE_ENV!=="production"&&(uh.displayName="Tabs");var E4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const s1=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=E4(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=f.useContext(vt),o=i("card",t),s=oe(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return f.createElement("div",Object.assign({},a,{className:s}))},O4=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${se(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`},Ao()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Vf),{[`
|
|
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),{[`
|
|
269
297
|
> ${n}-typography,
|
|
270
298
|
> ${n}-typography-edit-content
|
|
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:r}}},R4=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${se(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},Ao()),{"& > 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:se(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:se(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${i}`}}})},P4=e=>Object.assign(Object.assign({margin:`${se(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ao()),{"&-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},Vf),"&-description":{color:e.colorTextDescription}}),M4=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${se(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${se(e.padding)} ${se(n)}`}}},I4=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},N4=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:i,cardPaddingBase:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},br(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:O4(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},Ao()),[`${t}-grid`]:T4(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:R4(e),[`${t}-meta`]:P4(e)}),[`${t}-bordered`]:{border:`${se(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:n}},[`${t}-contain-grid`]:{borderRadius:`${se(e.borderRadiusLG)} ${se(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`]:M4(e),[`${t}-loading`]:I4(e),[`${t}-rtl`]:{direction:"rtl"}}},A4=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${se(n)}`,fontSize:a,[`> ${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"}}}}},j4=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}),k4=Pn("Card",e=>{const t=Yt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[N4(t),A4(t)]},j4);var eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const F4=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return f.createElement("ul",{className:t,style:r},n.map((a,i)=>{const o=`action-${i}`;return f.createElement("li",{style:{width:`${100/n.length}%`},key:o},f.createElement("span",null,a))}))},L4=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:h,type:m,cover:p,actions:g,tabList:v,children:x,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:S,hoverable:C,tabProps:_={},classNames:R,styles:E}=e,O=eg(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:k,direction:N,card:z}=f.useContext(vt);if(process.env.NODE_ENV!=="production"){const xe=qt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(fe=>{let[ge,we]=fe;xe.deprecated(!(ge in e),ge,we)})}const F=xe=>{var fe;(fe=e.onTabChange)===null||fe===void 0||fe.call(e,xe)},j=xe=>{var fe;return oe((fe=z==null?void 0:z.classNames)===null||fe===void 0?void 0:fe[xe],R==null?void 0:R[xe])},I=xe=>{var fe;return Object.assign(Object.assign({},(fe=z==null?void 0:z.styles)===null||fe===void 0?void 0:fe[xe]),E==null?void 0:E[xe])},T=f.useMemo(()=>{let xe=!1;return f.Children.forEach(x,fe=>{(fe==null?void 0:fe.type)===s1&&(xe=!0)}),xe},[x]),w=k("card",n),[P,A,M]=k4(w),L=f.createElement(pa,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),K=b!==void 0,W=Object.assign(Object.assign({},_),{[K?"activeKey":"defaultActiveKey"]:K?b:y,tabBarExtraContent:S});let q;const X=va(h),Q=!X||X==="default"?"large":X,Z=v?f.createElement(uh,Object.assign({size:Q},W,{className:`${w}-head-tabs`,onChange:F,items:v.map(xe=>{var{tab:fe}=xe,ge=eg(xe,["tab"]);return Object.assign({label:fe},ge)})})):null;if(c||o||Z){const xe=oe(`${w}-head`,j("header")),fe=oe(`${w}-head-title`,j("title")),ge=oe(`${w}-extra`,j("extra")),we=Object.assign(Object.assign({},s),I("header"));q=f.createElement("div",{className:xe,style:we},f.createElement("div",{className:`${w}-head-wrapper`},c&&f.createElement("div",{className:fe,style:I("title")},c),o&&f.createElement("div",{className:ge,style:I("extra")},o)),Z)}const J=oe(`${w}-cover`,j("cover")),G=p?f.createElement("div",{className:J,style:I("cover")},p):null,ee=oe(`${w}-body`,j("body")),ae=Object.assign(Object.assign({},l),I("body")),V=f.createElement("div",{className:ee,style:ae},u?L:x),ce=oe(`${w}-actions`,j("actions")),B=g!=null&&g.length?f.createElement(F4,{actionClasses:ce,actionStyle:I("actions"),actions:g}):null,ue=qn(O,["onTabChange"]),le=oe(w,z==null?void 0:z.className,{[`${w}-loading`]:u,[`${w}-bordered`]:d,[`${w}-hoverable`]:C,[`${w}-contain-grid`]:T,[`${w}-contain-tabs`]:v==null?void 0:v.length,[`${w}-${X}`]:X,[`${w}-type-${m}`]:!!m,[`${w}-rtl`]:N==="rtl"},r,a,A,M),be=Object.assign(Object.assign({},z==null?void 0:z.style),i);return P(f.createElement("div",Object.assign({ref:t},ue,{className:le,style:be}),q,G,V,B))});var D4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const z4=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:i}=e,o=D4(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=f.useContext(vt),l=s("card",t),c=oe(`${l}-meta`,n),u=r?f.createElement("div",{className:`${l}-meta-avatar`},r):null,d=a?f.createElement("div",{className:`${l}-meta-title`},a):null,h=i?f.createElement("div",{className:`${l}-meta-description`},i):null,m=d||h?f.createElement("div",{className:`${l}-meta-detail`},d,h):null;return f.createElement("div",Object.assign({},o,{className:c}),u,m)},Dl=L4;Dl.Grid=s1;Dl.Meta=z4;process.env.NODE_ENV!=="production"&&(Dl.displayName="Card");const l1=$.createContext({}),B4=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"}}}},V4=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},H4=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${r}${t}-${o}`]={display:"none"},i[`${r}-push-${o}`]={insetInlineStart:"auto"},i[`${r}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${o}`]={marginInlineStart:0},i[`${r}${t}-order-${o}`]={order:0}):(i[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${r}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${r}${t}-order-${o}`]={order:o});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},ef=(e,t)=>H4(e,t),W4=(e,t,n)=>({[`@media (min-width: ${se(t)})`]:Object.assign({},ef(e,n))}),U4=()=>({}),q4=()=>({}),G4=Pn("Grid",B4,U4),K4=Pn("Grid",e=>{const t=Yt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[V4(t),ef(t,""),ef(t,"-xs"),Object.keys(n).map(r=>W4(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},q4);var Y4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function tg(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const X4=["xs","sm","md","lg","xl","xxl"],Ki=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(vt),{gutter:a,wrap:i}=f.useContext(l1),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:d,className:h,children:m,flex:p,style:g}=e,v=Y4(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",o),[b,y,S]=K4(x),C={};let _={};X4.forEach(O=>{let k={};const N=e[O];typeof N=="number"?k.span=N:typeof N=="object"&&(k=N||{}),delete v[O],_=Object.assign(Object.assign({},_),{[`${x}-${O}-${k.span}`]:k.span!==void 0,[`${x}-${O}-order-${k.order}`]:k.order||k.order===0,[`${x}-${O}-offset-${k.offset}`]:k.offset||k.offset===0,[`${x}-${O}-push-${k.push}`]:k.push||k.push===0,[`${x}-${O}-pull-${k.pull}`]:k.pull||k.pull===0,[`${x}-rtl`]:r==="rtl"}),k.flex&&(_[`${x}-${O}-flex`]=!0,C[`--${x}-${O}-flex`]=tg(k.flex))});const R=oe(x,{[`${x}-${s}`]:s!==void 0,[`${x}-order-${l}`]:l,[`${x}-offset-${c}`]:c,[`${x}-push-${u}`]:u,[`${x}-pull-${d}`]:d},h,_,y,S),E={};if(a&&a[0]>0){const O=a[0]/2;E.paddingLeft=O,E.paddingRight=O}return p&&(E.flex=tg(p),i===!1&&!E.minWidth&&(E.minWidth=0)),b(f.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),C),className:R,ref:t}),m))});process.env.NODE_ENV!=="production"&&(Ki.displayName="Col");var Q4=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ng(e,t){const[n,r]=f.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<yo.length;i++){const o=yo[i];if(!t[o])continue;const s=e[o];if(s!==void 0){r(s);return}}};return f.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const tf=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:o,children:s,gutter:l=0,wrap:c}=e,u=Q4(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:h}=f.useContext(vt),[m,p]=f.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=f.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=ng(a,g),b=ng(r,g),y=f.useRef(l),S=rO();f.useEffect(()=>{const w=S.subscribe(P=>{v(P);const A=y.current||0;(!Array.isArray(A)&&typeof A=="object"||Array.isArray(A)&&(typeof A[0]=="object"||typeof A[1]=="object"))&&p(P)});return()=>S.unsubscribe(w)},[]);const C=()=>{const w=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((A,M)=>{if(typeof A=="object")for(let L=0;L<yo.length;L++){const K=yo[L];if(m[K]&&A[K]!==void 0){w[M]=A[K];break}}else w[M]=A}),w},_=d("row",n),[R,E,O]=G4(_),k=C(),N=oe(_,{[`${_}-no-wrap`]:c===!1,[`${_}-${b}`]:b,[`${_}-${x}`]:x,[`${_}-rtl`]:h==="rtl"},i,E,O),z={},F=k[0]!=null&&k[0]>0?k[0]/-2:void 0;F&&(z.marginLeft=F,z.marginRight=F);const[j,I]=k;z.rowGap=I;const T=f.useMemo(()=>({gutter:[j,I],wrap:c}),[j,I,c]);return R(f.createElement(l1.Provider,{value:T},f.createElement("div",Object.assign({},u,{className:N,style:Object.assign(Object.assign({},z),o),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(tf.displayName="Row");var Z4={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"},J4=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:Z4}))},c1=f.forwardRef(J4);process.env.NODE_ENV!=="production"&&(c1.displayName="UpOutlined");function e8(e){return!!(e.addonBefore||e.addonAfter)}function t8(e){return!!(e.prefix||e.suffix||e.allowClear)}function rg(e,t,n){var r=t.cloneNode(!0),a=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)},a}function rl(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=rg(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=rg(t,e,r),n(a);return}n(a)}}function n8(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var u1=$.forwardRef(function(e,t){var n,r,a=e.inputElement,i=e.children,o=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,h=e.style,m=e.disabled,p=e.readOnly,g=e.focused,v=e.triggerFocus,x=e.allowClear,b=e.value,y=e.handleReset,S=e.hidden,C=e.classes,_=e.classNames,R=e.dataAttrs,E=e.styles,O=e.components,k=e.onClear,N=i??a,z=(O==null?void 0:O.affixWrapper)||"span",F=(O==null?void 0:O.groupWrapper)||"span",j=(O==null?void 0:O.wrapper)||"span",I=(O==null?void 0:O.groupAddon)||"span",T=$.useRef(null),w=function(B){var ue;(ue=T.current)!==null&&ue!==void 0&&ue.contains(B.target)&&(v==null||v())},P=t8(e),A=$.cloneElement(N,{value:b,className:oe(N.props.className,!P&&(_==null?void 0:_.variant))||null}),M=$.useRef(null);if($.useImperativeHandle(t,function(){return{nativeElement:M.current||T.current}}),P){var L=null;if(x){var K=!m&&!p&&b,W="".concat(o,"-clear-icon"),q=ke(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";L=$.createElement("span",{onClick:function(B){y==null||y(B),k==null||k()},onMouseDown:function(B){return B.preventDefault()},className:oe(W,U(U({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var X="".concat(o,"-affix-wrapper"),Q=oe(X,U(U(U(U(U({},"".concat(o,"-disabled"),m),"".concat(X,"-disabled"),m),"".concat(X,"-focused"),g),"".concat(X,"-readonly"),p),"".concat(X,"-input-with-clear-btn"),l&&x&&b),C==null?void 0:C.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),Z=(l||x)&&$.createElement("span",{className:oe("".concat(o,"-suffix"),_==null?void 0:_.suffix),style:E==null?void 0:E.suffix},L,l);A=$.createElement(z,Re({className:Q,style:E==null?void 0:E.affixWrapper,onClick:w},R==null?void 0:R.affixWrapper,{ref:T}),s&&$.createElement("span",{className:oe("".concat(o,"-prefix"),_==null?void 0:_.prefix),style:E==null?void 0:E.prefix},s),A,Z)}if(e8(e)){var J="".concat(o,"-group"),G="".concat(J,"-addon"),ee="".concat(J,"-wrapper"),ae=oe("".concat(o,"-wrapper"),J,C==null?void 0:C.wrapper,_==null?void 0:_.wrapper),V=oe(ee,U({},"".concat(ee,"-disabled"),m),C==null?void 0:C.group,_==null?void 0:_.groupWrapper);A=$.createElement(F,{className:V,ref:M},$.createElement(j,{className:ae},c&&$.createElement(I,{className:G},c),A,u&&$.createElement(I,{className:G},u)))}return $.cloneElement(A,{className:oe((n=A.props)===null||n===void 0?void 0:n.className,d)||null,style:Y(Y({},(r=A.props)===null||r===void 0?void 0:r.style),h),hidden:S})}),r8=["show"];function d1(e,t){return f.useMemo(function(){var n={};t&&(n.show=ke(t)==="object"&&t.formatter?t.formatter:!!t),n=Y(Y({},n),e);var r=n,a=r.show,i=ot(r,r8);return Y(Y({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var a8=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],i8=$.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,h=e.htmlSize,m=e.className,p=e.maxLength,g=e.suffix,v=e.showCount,x=e.count,b=e.type,y=b===void 0?"text":b,S=e.classes,C=e.classNames,_=e.styles,R=e.onCompositionStart,E=e.onCompositionEnd,O=ot(e,a8),k=$.useState(!1),N=re(k,2),z=N[0],F=N[1],j=$.useRef(!1),I=$.useRef(!1),T=$.useRef(null),w=$.useRef(null),P=function(de){T.current&&n8(T.current,de)},A=vn(e.defaultValue,{value:e.value}),M=re(A,2),L=M[0],K=M[1],W=L==null?"":String(L),q=$.useState(null),X=re(q,2),Q=X[0],Z=X[1],J=d1(x,v),G=J.max||p,ee=J.strategy(W),ae=!!G&&ee>G;$.useImperativeHandle(t,function(){var ve;return{focus:P,blur:function(){var Ce;(Ce=T.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Se,st){var nt;(nt=T.current)===null||nt===void 0||nt.setSelectionRange(Ce,Se,st)},select:function(){var Ce;(Ce=T.current)===null||Ce===void 0||Ce.select()},input:T.current,nativeElement:((ve=w.current)===null||ve===void 0?void 0:ve.nativeElement)||T.current}}),$.useEffect(function(){F(function(ve){return ve&&d?!1:ve})},[d]);var V=function(de,Ce,Se){var st=Ce;if(!j.current&&J.exceedFormatter&&J.max&&J.strategy(Ce)>J.max){if(st=J.exceedFormatter(Ce,{max:J.max}),Ce!==st){var nt,Fe;Z([((nt=T.current)===null||nt===void 0?void 0:nt.selectionStart)||0,((Fe=T.current)===null||Fe===void 0?void 0:Fe.selectionEnd)||0])}}else if(Se.source==="compositionEnd")return;K(st),T.current&&rl(T.current,de,r,st)};$.useEffect(function(){if(Q){var ve;(ve=T.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,Oe(Q))}},[Q]);var ce=function(de){V(de,de.target.value,{source:"change"})},B=function(de){j.current=!1,V(de,de.currentTarget.value,{source:"compositionEnd"}),E==null||E(de)},ue=function(de){o&&de.key==="Enter"&&!I.current&&(I.current=!0,o(de)),s==null||s(de)},le=function(de){de.key==="Enter"&&(I.current=!1),l==null||l(de)},be=function(de){F(!0),a==null||a(de)},xe=function(de){F(!1),i==null||i(de)},fe=function(de){K(""),P(),T.current&&rl(T.current,de,r)},ge=ae&&"".concat(u,"-out-of-range"),we=function(){var de=qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return $.createElement("input",Re({autoComplete:n},de,{onChange:ce,onFocus:be,onBlur:xe,onKeyDown:ue,onKeyUp:le,className:oe(u,U({},"".concat(u,"-disabled"),d),C==null?void 0:C.input),style:_==null?void 0:_.input,ref:T,size:h,type:y,onCompositionStart:function(Se){j.current=!0,R==null||R(Se)},onCompositionEnd:B}))},Me=function(){var de=Number(G)>0;if(g||J.show){var Ce=J.showFormatter?J.showFormatter({value:W,count:ee,maxLength:G}):"".concat(ee).concat(de?" / ".concat(G):"");return $.createElement($.Fragment,null,J.show&&$.createElement("span",{className:oe("".concat(u,"-show-count-suffix"),U({},"".concat(u,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:Y({},_==null?void 0:_.count)},Ce),g)}return null};return $.createElement(u1,Re({},O,{prefixCls:u,className:oe(m,ge),handleReset:fe,value:W,focused:z,triggerFocus:P,suffix:Me(),disabled:d,classes:S,classNames:C,styles:_}),we())});const f1=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:$.createElement(Hb,null)}),t};function o8(e,t){const n=$.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.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(a=>{a&&clearTimeout(a)})),[]),r}function s8(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function c8(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 u8=$.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,status:i,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:h,addonBefore:m,className:p,style:g,styles:v,rootClassName:x,onChange:b,classNames:y,variant:S}=e,C=l8(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}=qt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:_,direction:R,input:E}=$.useContext(vt),O=_("input",r),k=$.useRef(null),N=jo(O),[z,F,j]=Zy(O,N),{compactSize:I,compactItemClassnames:T}=Xb(O,R),w=va(B=>{var ue;return(ue=o??I)!==null&&ue!==void 0?ue:B}),P=$.useContext(ra),A=s??P,{status:M,hasFeedback:L,feedbackIcon:K}=$.useContext(ti),W=Sy(M,i),q=s8(e)||!!L,X=$.useRef(q);if(process.env.NODE_ENV!=="production"){const B=qt("Input");$.useEffect(()=>{var ue;q&&!X.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ue=k.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"),X.current=q},[q])}const Q=o8(k),Z=B=>{Q(),l==null||l(B)},J=B=>{Q(),c==null||c(B)},G=B=>{Q(),b==null||b(B)},ee=(L||u)&&$.createElement($.Fragment,null,u,L&&K),ae=f1(d??(E==null?void 0:E.allowClear)),[V,ce]=wy("input",S,a);return z($.createElement(i8,Object.assign({ref:Un(t,k),prefixCls:O,autoComplete:E==null?void 0:E.autoComplete},C,{disabled:A,onBlur:Z,onFocus:J,style:Object.assign(Object.assign({},E==null?void 0:E.style),g),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:ee,allowClear:ae,className:oe(p,x,j,N,T,E==null?void 0:E.className),onChange:G,addonBefore:m&&$.createElement(Wd,{form:!0,space:!0},m),addonAfter:h&&$.createElement(Wd,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},y),E==null?void 0:E.classNames),{input:oe({[`${O}-sm`]:w==="small",[`${O}-lg`]:w==="large",[`${O}-rtl`]:R==="rtl"},y==null?void 0:y.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,F),variant:oe({[`${O}-${V}`]:ce},qd(O,W)),affixWrapper:oe({[`${O}-affix-wrapper-sm`]:w==="small",[`${O}-affix-wrapper-lg`]:w==="large",[`${O}-affix-wrapper-rtl`]:R==="rtl"},F),wrapper:oe({[`${O}-group-rtl`]:R==="rtl"},F),groupWrapper:oe({[`${O}-group-wrapper-sm`]:w==="small",[`${O}-group-wrapper-lg`]:w==="large",[`${O}-group-wrapper-rtl`]:R==="rtl",[`${O}-group-wrapper-${V}`]:ce},qd(`${O}-group-wrapper`,W,L),F)})})))});process.env.NODE_ENV!=="production"&&(u8.displayName="Input");var d8=`
|
|
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
|
-
`,f8=["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"],vu={},$n;function h8(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&&vu[n])return vu[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=f8.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&n&&(vu[n]=l),l}function v8(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;$n||($n=document.createElement("textarea"),$n.setAttribute("tab-index","-1"),$n.setAttribute("aria-hidden","true"),document.body.appendChild($n)),e.getAttribute("wrap")?$n.setAttribute("wrap",e.getAttribute("wrap")):$n.removeAttribute("wrap");var a=h8(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;$n.setAttribute("style","".concat(l,";").concat(d8)),$n.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=$n.scrollHeight;if(s==="border-box"?h+=o:s==="content-box"&&(h-=i),n!==null||r!==null){$n.value=" ";var m=$n.scrollHeight-i;n!==null&&(c=m*n,s==="border-box"&&(c=c+i+o),h=Math.max(c,h)),r!==null&&(u=m*r,s==="border-box"&&(u=u+i+o),d=h>u?"":"hidden",h=Math.min(u,h))}var p={height:h,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var p8=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pu=0,gu=1,mu=2,g8=f.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,i=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,h=n.onInternalAutoSize,m=ot(n,p8),p=vn(a,{value:i,postState:function(X){return X??""}}),g=re(p,2),v=g[0],x=g[1],b=function(X){x(X.target.value),d==null||d(X)},y=f.useRef();f.useImperativeHandle(t,function(){return{textArea:y.current}});var S=f.useMemo(function(){return o&&ke(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=re(S,2),_=C[0],R=C[1],E=!!o,O=function(){try{if(document.activeElement===y.current){var X=y.current,Q=X.selectionStart,Z=X.selectionEnd,J=X.scrollTop;y.current.setSelectionRange(Q,Z),y.current.scrollTop=J}}catch{}},k=f.useState(mu),N=re(k,2),z=N[0],F=N[1],j=f.useState(),I=re(j,2),T=I[0],w=I[1],P=function(){F(pu),process.env.NODE_ENV==="test"&&(h==null||h())};kt(function(){E&&P()},[i,_,R,E]),kt(function(){if(z===pu)F(gu);else if(z===gu){var q=v8(y.current,!1,_,R);F(mu),w(q)}else O()},[z]);var A=f.useRef(),M=function(){Ut.cancel(A.current)},L=function(X){z===mu&&(s==null||s(X),o&&(M(),A.current=Ut(function(){P()})))};f.useEffect(function(){return M},[]);var K=E?T:null,W=Y(Y({},c),K);return(z===pu||z===gu)&&(W.overflowY="hidden",W.overflowX="hidden"),f.createElement(zn,{onResize:L,disabled:!(o||s)},f.createElement("textarea",Re({},m,{ref:y,style:W,className:oe(r,l,U({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),m8=["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"],b8=$.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,m=e.prefixCls,p=m===void 0?"rc-textarea":m,g=e.showCount,v=e.count,x=e.className,b=e.style,y=e.disabled,S=e.hidden,C=e.classNames,_=e.styles,R=e.onResize,E=e.onClear,O=e.onPressEnter,k=e.readOnly,N=e.autoSize,z=e.onKeyDown,F=ot(e,m8),j=vn(r,{value:a,defaultValue:r}),I=re(j,2),T=I[0],w=I[1],P=T==null?"":String(T),A=$.useState(!1),M=re(A,2),L=M[0],K=M[1],W=$.useRef(!1),q=$.useState(null),X=re(q,2),Q=X[0],Z=X[1],J=$.useRef(null),G=$.useRef(null),ee=function(){var Ie;return(Ie=G.current)===null||Ie===void 0?void 0:Ie.textArea},ae=function(){ee().focus()};$.useImperativeHandle(t,function(){var De;return{resizableTextArea:G.current,focus:ae,blur:function(){ee().blur()},nativeElement:((De=J.current)===null||De===void 0?void 0:De.nativeElement)||ee()}}),$.useEffect(function(){K(function(De){return!y&&De})},[y]);var V=$.useState(null),ce=re(V,2),B=ce[0],ue=ce[1];$.useEffect(function(){if(B){var De;(De=ee()).setSelectionRange.apply(De,Oe(B))}},[B]);var le=d1(v,g),be=(n=le.max)!==null&&n!==void 0?n:c,xe=Number(be)>0,fe=le.strategy(P),ge=!!be&&fe>be,we=function(Ie,mt){var Ye=mt;!W.current&&le.exceedFormatter&&le.max&&le.strategy(mt)>le.max&&(Ye=le.exceedFormatter(mt,{max:le.max}),mt!==Ye&&ue([ee().selectionStart||0,ee().selectionEnd||0])),w(Ye),rl(Ie.currentTarget,Ie,s,Ye)},Me=function(Ie){W.current=!0,u==null||u(Ie)},ve=function(Ie){W.current=!1,we(Ie,Ie.currentTarget.value),d==null||d(Ie)},de=function(Ie){we(Ie,Ie.target.value)},Ce=function(Ie){Ie.key==="Enter"&&O&&O(Ie),z==null||z(Ie)},Se=function(Ie){K(!0),i==null||i(Ie)},st=function(Ie){K(!1),o==null||o(Ie)},nt=function(Ie){w(""),ae(),rl(ee(),Ie,s)},Fe=h,We;le.show&&(le.showFormatter?We=le.showFormatter({value:P,count:fe,maxLength:be}):We="".concat(fe).concat(xe?" / ".concat(be):""),Fe=$.createElement($.Fragment,null,Fe,$.createElement("span",{className:oe("".concat(p,"-data-count"),C==null?void 0:C.count),style:_==null?void 0:_.count},We)));var et=function(Ie){var mt;R==null||R(Ie),(mt=ee())!==null&&mt!==void 0&&mt.style.height&&Z(!0)},rt=!N&&!g&&!l;return $.createElement(u1,{ref:J,value:P,allowClear:l,handleReset:nt,suffix:Fe,prefixCls:p,classNames:Y(Y({},C),{},{affixWrapper:oe(C==null?void 0:C.affixWrapper,U(U({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),l))}),disabled:y,focused:L,className:oe(x,ge&&"".concat(p,"-out-of-range")),style:Y(Y({},b),Q&&!rt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof We=="string"?We:void 0}},hidden:S,readOnly:k,onClear:E},$.createElement(g8,Re({},F,{autoSize:N,maxLength:c,onKeyDown:Ce,onChange:de,onFocus:Se,onBlur:st,onCompositionStart:Me,onCompositionEnd:ve,className:oe(C==null?void 0:C.textarea),style:Y(Y({},_==null?void 0:_.textarea),{},{resize:b==null?void 0:b.resize}),disabled:y,prefixCls:p,onResize:et,ref:G,readOnly:k})))}),y8=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const x8=$.forwardRef((e,t)=>{var n,r;const{prefixCls:a,bordered:i=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:h,style:m,styles:p,variant:g}=e,v=y8(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:M}=qt("TextArea");M(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:b,textArea:y}=f.useContext(vt),S=va(o),C=f.useContext(ra),_=s??C,{status:R,hasFeedback:E,feedbackIcon:O}=f.useContext(ti),k=Sy(R,l),N=f.useRef(null);f.useImperativeHandle(t,()=>{var M;return{resizableTextArea:(M=N.current)===null||M===void 0?void 0:M.resizableTextArea,focus:L=>{var K,W;c8((W=(K=N.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,L)},blur:()=>{var L;return(L=N.current)===null||L===void 0?void 0:L.blur()}}});const z=x("input",a),F=jo(z),[j,I,T]=Zy(z,F),[w,P]=wy("textArea",g,i),A=f1(c??(y==null?void 0:y.allowClear));return j(f.createElement(b8,Object.assign({autoComplete:y==null?void 0:y.autoComplete},v,{style:Object.assign(Object.assign({},y==null?void 0:y.style),m),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),p),disabled:_,allowClear:A,className:oe(T,F,h,d,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},u),y==null?void 0:y.classNames),{textarea:oe({[`${z}-sm`]:S==="small",[`${z}-lg`]:S==="large"},I,u==null?void 0:u.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:oe({[`${z}-${w}`]:P},qd(z,k)),affixWrapper:oe(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:b==="rtl",[`${z}-affix-wrapper-sm`]:S==="small",[`${z}-affix-wrapper-lg`]:S==="large",[`${z}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},I)}),prefixCls:z,suffix:E&&f.createElement("span",{className:`${z}-textarea-suffix`},O),ref:N})))});function al(e){return["small","middle","large"].includes(e)}function ag(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const h1=$.createContext({latestIndex:0}),C8=h1.Provider,S8=e=>{let{className:t,index:n,children:r,split:a,style:i}=e;const{latestIndex:o}=f.useContext(h1);return r==null?null:f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:i},r),n<o&&a&&f.createElement("span",{className:`${t}-split`},a))};var w8=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _8=f.forwardRef((e,t)=>{var n,r,a;const{getPrefixCls:i,space:o,direction:s}=f.useContext(vt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:h,direction:m="horizontal",prefixCls:p,split:g,style:v,wrap:x=!1,classNames:b,styles:y}=e,S=w8(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,_]=Array.isArray(l)?l:[l,l],R=al(_),E=al(C),O=ag(_),k=ag(C),N=tr(h,{keepEmpty:!0}),z=c===void 0&&m==="horizontal"?"center":c,F=i("space",p),[j,I,T]=Kb(F),w=oe(F,o==null?void 0:o.className,I,`${F}-${m}`,{[`${F}-rtl`]:s==="rtl",[`${F}-align-${z}`]:z,[`${F}-gap-row-${_}`]:R,[`${F}-gap-col-${C}`]:E},u,d,T),P=oe(`${F}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(a=o==null?void 0:o.classNames)===null||a===void 0?void 0:a.item);let A=0;const M=N.map((W,q)=>{var X,Q;W!=null&&(A=q);const Z=(W==null?void 0:W.key)||`${P}-${q}`;return f.createElement(S8,{className:P,key:Z,index:q,split:g,style:(X=y==null?void 0:y.item)!==null&&X!==void 0?X:(Q=o==null?void 0:o.styles)===null||Q===void 0?void 0:Q.item},W)}),L=f.useMemo(()=>({latestIndex:A}),[A]);if(N.length===0)return null;const K={};return x&&(K.flexWrap="wrap"),!E&&k&&(K.columnGap=C),!R&&O&&(K.rowGap=_),j(f.createElement("div",Object.assign({ref:t,className:w,style:Object.assign(Object.assign(Object.assign({},K),o==null?void 0:o.style),v)},S),f.createElement(C8,{value:L},M)))}),Uo=_8;Uo.Compact=tE;process.env.NODE_ENV!=="production"&&(Uo.displayName="Space");const v1=["wrap","nowrap","wrap-reverse"],p1=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],g1=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],$8=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&v1.includes(n)}},E8=(e,t)=>{const n={};return g1.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},O8=(e,t)=>{const n={};return p1.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function T8(e,t){return oe(Object.assign(Object.assign(Object.assign({},$8(e,t)),E8(e,t)),O8(e,t)))}const R8=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},P8=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},M8=e=>{const{componentCls:t}=e,n={};return v1.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},I8=e=>{const{componentCls:t}=e,n={};return g1.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},N8=e=>{const{componentCls:t}=e,n={};return p1.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},A8=()=>({}),j8=Pn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=Yt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[R8(a),P8(a),M8(a),I8(a),N8(a)]},A8,{resetStyle:!1});var k8=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qo=$.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:a,style:i,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=k8(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:m,getPrefixCls:p}=$.useContext(vt),g=p("flex",n),[v,x,b]=j8(g),y=c??(h==null?void 0:h.vertical),S=oe(a,r,h==null?void 0:h.className,g,x,b,T8(g,e),{[`${g}-rtl`]:m==="rtl",[`${g}-gap-${s}`]:al(s),[`${g}-vertical`]:y}),C=Object.assign(Object.assign({},h==null?void 0:h.style),i);return o&&(C.flex=o),s&&!al(s)&&(C.gap=s),v($.createElement(u,Object.assign({ref:t,className:S,style:C},qn(d,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(qo.displayName="Flex");var F8={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"},L8=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:F8}))},m1=f.forwardRef(L8);process.env.NODE_ENV!=="production"&&(m1.displayName="CopyOutlined");var D8={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"},z8=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:D8}))},b1=f.forwardRef(z8);process.env.NODE_ENV!=="production"&&(b1.displayName="DownloadOutlined");var B8={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"},V8=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:B8}))},y1=f.forwardRef(V8);process.env.NODE_ENV!=="production"&&(y1.displayName="EditOutlined");var H8={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"},W8=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:H8}))},x1=f.forwardRef(W8);process.env.NODE_ENV!=="production"&&(x1.displayName="EnterOutlined");var U8={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"},q8=function(t,n){return f.createElement(tn,Re({},t,{ref:n,icon:U8}))},C1=f.forwardRef(q8);process.env.NODE_ENV!=="production"&&(C1.displayName="InfoCircleOutlined");var G8=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const K8={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},nf=f.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===ye.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:h}=e;d===ye.ENTER&&h&&h()},{style:a,noStyle:i,disabled:o,tabIndex:s=0}=e,l=G8(e,["style","noStyle","disabled","tabIndex"]);let c={};return i||(c=Object.assign({},K8)),o&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),a),f.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),Y8=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},X8=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
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[`
|
|
289
317
|
h${r}&,
|
|
290
318
|
div&-h${r},
|
|
291
319
|
div&-h${r} > textarea,
|
|
292
320
|
h${r}
|
|
293
|
-
`]=
|
|
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: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}}}),
|
|
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({},$b(e)),{marginInlineStart:e.marginXXS})}),J8(e)),eT(e)),tT()),{"&-rtl":{direction:"rtl"}})}},rT=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),S1=Pn("Typography",e=>[nT(e)],rT),aT=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:h,enterIcon:m=f.createElement(x1,null)}=e,p=f.useRef(null),g=f.useRef(!1),v=f.useRef(),[x,b]=f.useState(l);f.useEffect(()=>{b(l)},[l]),f.useEffect(()=>{var I;if(!((I=p.current)===null||I===void 0)&&I.resizableTextArea){const{textArea:T}=p.current.resizableTextArea;T.focus();const{length:w}=T.value;T.setSelectionRange(w,w)}},[]);const y=I=>{let{target:T}=I;b(T.value.replace(/[\n\r]/g,""))},S=()=>{g.current=!0},C=()=>{g.current=!1},_=I=>{let{keyCode:T}=I;g.current||(v.current=T)},R=()=>{c(x.trim())},E=I=>{let{keyCode:T,ctrlKey:w,altKey:P,metaKey:A,shiftKey:M}=I;v.current===T&&!g.current&&!w&&!P&&!A&&!M&&(T===ye.ENTER?(R(),d==null||d()):T===ye.ESC&&u())},O=()=>{R()},k=h?`${t}-${h}`:"",[N,z,F]=S1(t),j=oe(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,k,z,F);return N(f.createElement("div",{className:j,style:a},f.createElement(x8,{ref:p,maxLength:o,value:x,onChange:y,onKeyDown:_,onKeyUp:E,onCompositionStart:S,onCompositionEnd:C,onBlur:O,"aria-label":n,rows:1,autoSize:s}),m!==null?Pl(m,{className:`${t}-edit-content-confirm`}):null))};var iT=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(a){e.addRange(a)}),t&&t.focus()}},oT=iT,ig={"text/plain":"Text","text/html":"Url",default:"Text"},sT="Copy to clipboard: #{key}, Enter";function lT(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function cT(e,t){var n,r,a,i,o,s,l=!1;t||(t={}),n=t.debug||!1;try{a=oT(),i=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=ig[t.format]||ig.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),i.selectNodeContents(s),o.addRange(i);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=lT("message"in t?t.message:sT),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var uT=cT;const dT=Cn(uT);var fT=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,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?i(u.value):a(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const hT=e=>{let{copyConfig:t,children:n}=e;const[r,a]=f.useState(!1),[i,o]=f.useState(!1),s=f.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),f.useEffect(()=>l,[]);const u=an(d=>fT(void 0,void 0,void 0,function*(){var h;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const m=typeof t.text=="function"?yield t.text():t.text;dT(m||String(n)||"",c),o(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,d)}catch(m){throw o(!1),m}}));return{copied:r,copyLoading:i,onClick:u}};function bu(e,t){return f.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vT=e=>{const t=$.useRef();return $.useEffect(()=>{t.current=e}),t.current},pT=(e,t)=>{const n=f.useRef(!1);f.useEffect(()=>{n.current?e():n.current=!0},t)};var gT=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const dh=f.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:i,setContentRef:o,children:s,direction:l,style:c}=e,u=gT(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:h,typography:m}=f.useContext(vt),p=l??h;let g=t;o&&(g=Un(t,o)),process.env.NODE_ENV!=="production"&&qt("Typography").deprecated(!o,"setContentRef","ref");const v=d("typography",n),[x,b,y]=S1(v),S=oe(v,m==null?void 0:m.className,{[`${v}-rtl`]:p==="rtl"},a,i,b,y),C=Object.assign(Object.assign({},m==null?void 0:m.style),c);return x(f.createElement(r,Object.assign({className:S,style:C,ref:g},u),s))});process.env.NODE_ENV!=="production"&&(dh.displayName="Typography");function og(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ms(e,t,n){return e===!0||e===void 0?t:e||n&&t}function mT(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 bT=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:i,icon:o,loading:s,tabIndex:l,onCopy:c}=e,u=og(i),d=og(o),{copied:h,copy:m}=r??{},p=n?ms(u[1],h):ms(u[0],m),v=typeof p=="string"?p:n?h:m;return f.createElement(Bo,{key:"copy",title:p},f.createElement(nf,{className:oe(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":v,tabIndex:l},n?ms(d[1],f.createElement(_y,null),!0):ms(d[0],s?f.createElement(qf,null):f.createElement(m1,null),!0)))},bs=f.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=f.useRef(null);return f.useImperativeHandle(t,()=>({isExceed:()=>{const i=a.current;return i.scrollHeight>i.clientHeight},getHeight:()=>a.current.clientHeight})),f.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)"},n)},r)});function w1(e){const t=typeof e;return t==="string"||t==="number"}function yT(e){let t=0;return e.forEach(n=>{w1(n)?t+=String(n).length:t+=1}),t}function sg(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const i=e[a],s=w1(i)?String(i).length:1,l=n+s;if(l>t){const c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=l}return e}const yu=0,xu=1,Cu=2,Su=3,lg=4,ys={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function xT(e){const{enableMeasure:t,width:n,text:r,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:l}=e,c=f.useMemo(()=>tr(r),[r]),u=f.useMemo(()=>yT(c),[r]),d=f.useMemo(()=>a(c,!1),[r]),[h,m]=f.useState(null),p=f.useRef(null),g=f.useRef(null),v=f.useRef(null),x=f.useRef(null),b=f.useRef(null),[y,S]=f.useState(!1),[C,_]=f.useState(yu),[R,E]=f.useState(0),[O,k]=f.useState(null);kt(()=>{_(t&&n&&u?xu:yu)},[n,r,i,t,c]),kt(()=>{var j,I,T,w;if(C===xu){_(Cu);const P=g.current&&getComputedStyle(g.current).whiteSpace;k(P)}else if(C===Cu){const P=!!(!((j=v.current)===null||j===void 0)&&j.isExceed());_(P?Su:lg),m(P?[0,u]:null),S(P);const A=((I=v.current)===null||I===void 0?void 0:I.getHeight())||0,M=i===1?0:((T=x.current)===null||T===void 0?void 0:T.getHeight())||0,L=((w=b.current)===null||w===void 0?void 0:w.getHeight())||0,K=M+L,W=Math.max(A,K);E(W+1),l(P)}},[C]);const N=h?Math.ceil((h[0]+h[1])/2):0;kt(()=>{var j;const[I,T]=h||[0,0];if(I!==T){const P=(((j=p.current)===null||j===void 0?void 0:j.getHeight())||0)>R;let A=N;T-I===1&&(A=P?I:T),m(P?[I,A]:[A,T])}},[h,N]);const z=f.useMemo(()=>{if(!t)return a(c,!1);if(C!==Su||!h||h[0]!==h[1]){const j=a(c,!1);return C!==lg&&C!==yu?f.createElement("span",{style:Object.assign(Object.assign({},ys),{WebkitLineClamp:i})},j):j}return a(o?c:sg(c,h[0]),y)},[o,C,h,c].concat(Oe(s))),F={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return f.createElement(f.Fragment,null,z,C===Cu&&f.createElement(f.Fragment,null,f.createElement(bs,{style:Object.assign(Object.assign(Object.assign({},F),ys),{WebkitLineClamp:i}),ref:v},d),f.createElement(bs,{style:Object.assign(Object.assign(Object.assign({},F),ys),{WebkitLineClamp:i-1}),ref:x},d),f.createElement(bs,{style:Object.assign(Object.assign(Object.assign({},F),ys),{WebkitLineClamp:1}),ref:b},a([],!0))),C===Su&&h&&h[0]!==h[1]&&f.createElement(bs,{style:Object.assign(Object.assign({},F),{top:400}),ref:p},a(sg(c,N),!0)),C===xu&&f.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const _1=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:f.createElement(Bo,Object.assign({open:n?void 0:!1},a),r)};process.env.NODE_ENV!=="production"&&(_1.displayName="EllipsisTooltip");var CT=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ST(e,t){let{mark:n,code:r,underline:a,delete:i,strong:o,keyboard:s,italic:l}=e,c=t;function u(d,h){h&&(c=f.createElement(d,{},c))}return u("strong",o),u("u",a),u("del",i),u("code",r),u("mark",n),u("kbd",s),u("i",l),c}const wT="...",zl=f.forwardRef((e,t)=>{var n,r,a;const{prefixCls:i,className:o,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:h,copyable:m,component:p,title:g}=e,v=CT(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:b}=f.useContext(vt),[y]=Sw("Text"),S=f.useRef(null),C=f.useRef(null),_=x("typography",i),R=qn(v,["mark","code","delete","underline","strong","keyboard","italic"]),[E,O]=bu(h),[k,N]=vn(!1,{value:O.editing}),{triggerType:z=["icon"]}=O,F=me=>{var $e;me&&(($e=O.onStart)===null||$e===void 0||$e.call(O)),N(me)},j=vT(k);pT(()=>{var me;!k&&j&&((me=C.current)===null||me===void 0||me.focus())},[k]);const I=me=>{me==null||me.preventDefault(),F(!0)},T=me=>{var $e;($e=O.onChange)===null||$e===void 0||$e.call(O,me),F(!1)},w=()=>{var me;(me=O.onCancel)===null||me===void 0||me.call(O),F(!1)},[P,A]=bu(m),{copied:M,copyLoading:L,onClick:K}=hT({copyConfig:A,children:u}),[W,q]=f.useState(!1),[X,Q]=f.useState(!1),[Z,J]=f.useState(!1),[G,ee]=f.useState(!1),[ae,V]=f.useState(!0),[ce,B]=bu(d,{expandable:!1,symbol:me=>me?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=vn(B.defaultExpanded||!1,{value:B.expanded}),be=ce&&(!ue||B.expandable==="collapsible"),{rows:xe=1}=B,fe=f.useMemo(()=>be&&(B.suffix!==void 0||B.onEllipsis||B.expandable||E||P),[be,B,E,P]);kt(()=>{ce&&!fe&&(q(wp("webkitLineClamp")),Q(wp("textOverflow")))},[fe,ce]);const[ge,we]=f.useState(be),Me=f.useMemo(()=>fe?!1:xe===1?X:W,[fe,X,W]);kt(()=>{we(Me&&be)},[Me,be]);const ve=be&&(ge?G:Z),de=be&&xe===1&&ge,Ce=be&&xe>1&&ge,Se=(me,$e)=>{var Je;le($e.expanded),(Je=B.onExpand)===null||Je===void 0||Je.call(B,me,$e)},[st,nt]=f.useState(0),Fe=me=>{let{offsetWidth:$e}=me;nt($e)},We=me=>{var $e;J(me),Z!==me&&(($e=B.onEllipsis)===null||$e===void 0||$e.call(B,me))};f.useEffect(()=>{const me=S.current;if(ce&&ge&&me){const $e=mT(me);G!==$e&&ee($e)}},[ce,ge,u,Ce,ae,st]),f.useEffect(()=>{const me=S.current;if(typeof IntersectionObserver>"u"||!me||!ge||!be)return;const $e=new IntersectionObserver(()=>{V(!!me.offsetParent)});return $e.observe(me),()=>{$e.disconnect()}},[ge,be]);let et={};B.tooltip===!0?et={title:(n=O.text)!==null&&n!==void 0?n:u}:f.isValidElement(B.tooltip)?et={title:B.tooltip}:typeof B.tooltip=="object"?et=Object.assign({title:(r=O.text)!==null&&r!==void 0?r:u},B.tooltip):et={title:B.tooltip};const rt=f.useMemo(()=>{const me=$e=>["string","number"].includes(typeof $e);if(!(!ce||ge)){if(me(O.text))return O.text;if(me(u))return u;if(me(g))return g;if(me(et.title))return et.title}},[ce,ge,g,et.title,ve]);if(k)return f.createElement(aT,{value:(a=O.text)!==null&&a!==void 0?a:typeof u=="string"?u:"",onSave:T,onCancel:w,onEnd:O.onEnd,prefixCls:_,className:o,style:s,direction:b,component:p,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const De=()=>{const{expandable:me,symbol:$e}=B;return me?f.createElement(nf,{key:"expand",className:`${_}-${ue?"collapse":"expand"}`,onClick:Je=>Se(Je,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof $e=="function"?$e(ue):$e):null},Ie=()=>{if(!E)return;const{icon:me,tooltip:$e,tabIndex:Je}=O,lt=tr($e)[0]||(y==null?void 0:y.edit),pt=typeof lt=="string"?lt:"";return z.includes("icon")?f.createElement(Bo,{key:"edit",title:$e===!1?"":lt},f.createElement(nf,{ref:C,className:`${_}-edit`,onClick:I,"aria-label":pt,tabIndex:Je},me||f.createElement(y1,{role:"button"}))):null},mt=()=>P?f.createElement(bT,Object.assign({key:"copy"},A,{prefixCls:_,copied:M,locale:y,onCopy:K,loading:L,iconOnly:u==null})):null,Ye=me=>[me&&De(),Ie(),mt()],ze=me=>[me&&!ue&&f.createElement("span",{"aria-hidden":!0,key:"ellipsis"},wT),B.suffix,Ye(me)];return f.createElement(zn,{onResize:Fe,disabled:!be},me=>f.createElement(_1,{tooltipProps:et,enableEllipsis:be,isEllipsis:ve},f.createElement(dh,Object.assign({className:oe({[`${_}-${l}`]:l,[`${_}-disabled`]:c,[`${_}-ellipsis`]:ce,[`${_}-ellipsis-single-line`]:de,[`${_}-ellipsis-multiple-line`]:Ce},o),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:Ce?xe:void 0}),component:p,ref:Un(me,S,t),direction:b,onClick:z.includes("text")?I:void 0,"aria-label":rt==null?void 0:rt.toString(),title:g},R),f.createElement(xT,{enableMeasure:be&&!ge,text:u,rows:xe,width:st,onEllipsis:We,expanded:ue,miscDeps:[M,ue,L,E,P]},($e,Je)=>ST(e,f.createElement(f.Fragment,null,$e.length>0&&Je&&!ue&&rt?f.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,ze(Je)))))))});var _T=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const $T=f.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=_T(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const o=qt("Typography.Link");process.env.NODE_ENV!=="production"&&o(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,f.createElement(zl,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),ET=f.forwardRef((e,t)=>f.createElement(zl,Object.assign({ref:t},e,{component:"div"})));var OT=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const TT=(e,t)=>{var{ellipsis:n}=e,r=OT(e,["ellipsis"]);const a=f.useMemo(()=>n&&typeof n=="object"?qn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=qt("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return f.createElement(zl,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},RT=f.forwardRef(TT);var PT=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cg=[1,2,3,4,5],MT=f.forwardRef((e,t)=>{const{level:n=1}=e,r=PT(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const i=qt("Typography.Title");process.env.NODE_ENV!=="production"&&i(cg.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return cg.includes(n)?a=`h${n}`:a="h1",f.createElement(zl,Object.assign({ref:t},r,{component:a}))}),ar=dh;ar.Text=RT;ar.Link=$T;ar.Title=MT;ar.Paragraph=ET;const IT=ut(Fo)`
|
|
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,127 +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
|
|
414
442
|
* react-is.production.min.js
|
|
415
443
|
*
|
|
416
444
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
417
445
|
*
|
|
418
446
|
* This source code is licensed under the MIT license found in the
|
|
419
447
|
* LICENSE file in the root directory of this source tree.
|
|
420
|
-
*/var
|
|
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
|
|
421
449
|
* react-is.development.js
|
|
422
450
|
*
|
|
423
451
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
424
452
|
*
|
|
425
453
|
* This source code is licensed under the MIT license found in the
|
|
426
454
|
* LICENSE file in the root directory of this source tree.
|
|
427
|
-
*/var
|
|
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}/*
|
|
428
456
|
object-assign
|
|
429
457
|
(c) Sindre Sorhus
|
|
430
458
|
@license MIT
|
|
431
|
-
*/var
|
|
432
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var V=ae(Z,ee,q,X,Q+"."+ee,n);if(V)return V}return null}return v(L)}function j(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(j);if(M===null||s(M))return!0;var L=d(M);if(L){var K=L.call(M),W;if(L!==M.entries){for(;!(W=K.next()).done;)if(!j(W.value))return!1}else for(;!(W=K.next()).done;){var q=W.value;if(q&&!j(q[1]))return!1}}else return!1;return!0;default:return!1}}function I(M,L){return M==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function T(M){var L=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":I(L,M)?"symbol":L}function w(M){if(typeof M>"u"||M===null)return""+M;var L=T(M);if(L==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return L}function P(M){var L=w(M);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function A(M){return!M.constructor||!M.constructor.name?h:M.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},Ru}var Pu,_g;function N9(){if(_g)return Pu;_g=1;var e=ph();function t(){}function n(){}return n.resetWarningCache=t,Pu=function(){function r(o,s,l,c,u,d){if(d!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Pu}if(process.env.NODE_ENV!=="production"){var A9=U1(),j9=!0;rf.exports=I9()(A9.isElement,j9)}else rf.exports=N9()();var k9=rf.exports;const ne=Cn(k9);var gh=Yo(),Ke=e=>Ko(e,gh),mh=Yo();Ke.write=e=>Ko(e,mh);var Kl=Yo();Ke.onStart=e=>Ko(e,Kl);var bh=Yo();Ke.onFrame=e=>Ko(e,bh);var yh=Yo();Ke.onFinish=e=>Ko(e,yh);var Ha=[];Ke.setTimeout=(e,t)=>{const n=Ke.now()+t,r=()=>{const i=Ha.findIndex(o=>o.cancel==r);~i&&Ha.splice(i,1),jr-=~i?1:0},a={time:n,handler:e,cancel:r};return Ha.splice(G1(n),0,a),jr+=1,K1(),a};var G1=e=>~(~Ha.findIndex(t=>t.time>e)||~Ha.length);Ke.cancel=e=>{Kl.delete(e),bh.delete(e),yh.delete(e),gh.delete(e),mh.delete(e)};Ke.sync=e=>{af=!0,Ke.batchedUpdates(e),af=!1};Ke.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Ke.onStart(n)}return r.handler=e,r.cancel=()=>{Kl.delete(n),t=null},r};var xh=typeof window<"u"?window.requestAnimationFrame:()=>{};Ke.use=e=>xh=e;Ke.now=typeof performance<"u"?()=>performance.now():Date.now;Ke.batchedUpdates=e=>e();Ke.catch=console.error;Ke.frameLoop="always";Ke.advance=()=>{Ke.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):X1()};var Ar=-1,jr=0,af=!1;function Ko(e,t){af?(t.delete(e),e(0)):(t.add(e),K1())}function K1(){Ar<0&&(Ar=0,Ke.frameLoop!=="demand"&&xh(Y1))}function F9(){Ar=-1}function Y1(){~Ar&&(xh(Y1),Ke.batchedUpdates(X1))}function X1(){const e=Ar;Ar=Ke.now();const t=G1(Ar);if(t&&(Q1(Ha.splice(0,t),n=>n.handler()),jr-=t),!jr){F9();return}Kl.flush(),gh.flush(e?Math.min(64,Ar-e):16.667),bh.flush(),mh.flush(),yh.flush()}function Yo(){let e=new Set,t=e;return{add(n){jr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return jr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,jr-=t.size,Q1(t,r=>r(n)&&e.add(r)),jr+=e.size,t=e)}}}function Q1(e,t){e.forEach(n=>{try{t(n)}catch(r){Ke.catch(r)}})}var L9=Object.defineProperty,D9=(e,t)=>{for(var n in t)L9(e,n,{get:t[n],enumerable:!0})},Wn={};D9(Wn,{assign:()=>B9,colors:()=>kr,createStringInterpolator:()=>Sh,skipAnimation:()=>J1,to:()=>Z1,willAdvance:()=>wh});function of(){}var z9=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),he={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 vr(e,t){if(he.arr(e)){if(!he.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 ct=(e,t)=>e.forEach(t);function nr(e,t,n){if(he.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 xn=e=>he.und(e)?[]:he.arr(e)?e:[e];function to(e,t){if(e.size){const n=Array.from(e);e.clear(),ct(n,t)}}var Yi=(e,...t)=>to(e,n=>n(...t)),Ch=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Sh,Z1,kr=null,J1=!1,wh=of,B9=e=>{e.to&&(Z1=e.to),e.now&&(Ke.now=e.now),e.colors!==void 0&&(kr=e.colors),e.skipAnimation!=null&&(J1=e.skipAnimation),e.createStringInterpolator&&(Sh=e.createStringInterpolator),e.requestAnimationFrame&&Ke.use(e.requestAnimationFrame),e.batchedUpdates&&(Ke.batchedUpdates=e.batchedUpdates),e.willAdvance&&(wh=e.willAdvance),e.frameLoop&&(Ke.frameLoop=e.frameLoop)},no=new Set,On=[],Mu=[],ol=0,Yl={get idle(){return!no.size&&!On.length},start(e){ol>e.priority?(no.add(e),Ke.onStart(V9)):(ex(e),Ke(sf))},advance:sf,sort(e){if(ol)Ke.onFrame(()=>Yl.sort(e));else{const t=On.indexOf(e);~t&&(On.splice(t,1),tx(e))}},clear(){On=[],no.clear()}};function V9(){no.forEach(ex),no.clear(),Ke(sf)}function ex(e){On.includes(e)||tx(e)}function tx(e){On.splice(H9(On,t=>t.priority>e.priority),0,e)}function sf(e){const t=Mu;for(let n=0;n<On.length;n++){const r=On[n];ol=r.priority,r.idle||(wh(r),r.advance(e),r.idle||t.push(r))}return ol=0,Mu=On,Mu.length=0,On=t,On.length>0}function H9(e,t){const n=e.findIndex(t);return n<0?e.length:n}var W9=(e,t,n)=>Math.min(Math.max(n,e),t),U9={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},Dn="[-+]?\\d*\\.?\\d+",sl=Dn+"%";function Xl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var q9=new RegExp("rgb"+Xl(Dn,Dn,Dn)),G9=new RegExp("rgba"+Xl(Dn,Dn,Dn,Dn)),K9=new RegExp("hsl"+Xl(Dn,sl,sl)),Y9=new RegExp("hsla"+Xl(Dn,sl,sl,Dn)),X9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Q9=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Z9=/^#([0-9a-fA-F]{6})$/,J9=/^#([0-9a-fA-F]{8})$/;function eM(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Z9.exec(e))?parseInt(t[1]+"ff",16)>>>0:kr&&kr[e]!==void 0?kr[e]:(t=q9.exec(e))?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|255)>>>0:(t=G9.exec(e))?(Na(t[1])<<24|Na(t[2])<<16|Na(t[3])<<8|Og(t[4]))>>>0:(t=X9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=J9.exec(e))?parseInt(t[1],16)>>>0:(t=Q9.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=K9.exec(e))?($g(Eg(t[1]),Cs(t[2]),Cs(t[3]))|255)>>>0:(t=Y9.exec(e))?($g(Eg(t[1]),Cs(t[2]),Cs(t[3]))|Og(t[4]))>>>0:null}function Iu(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 $g(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Iu(a,r,e+1/3),o=Iu(a,r,e),s=Iu(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Na(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Eg(e){return(parseFloat(e)%360+360)%360/360}function Og(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Cs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Tg(e){let t=eM(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var So=(e,t,n)=>{if(he.fun(e))return e;if(he.arr(e))return So({range:e,output:t,extrapolate:n});if(he.str(e.output[0]))return Sh(e);const r=e,a=r.output,i=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=nM(c,i);return tM(c,i[u],i[u+1],a[u],a[u+1],l,o,s,r.map)}};function tM(e,t,n,r,a,i,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===a?r:t===n?e<=t?r:a:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:a===1/0?c=c+r:c=c*(a-r)+r,c)}function nM(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var rM=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return W9(0,1,a/e)},ll=1.70158,Ss=ll*1.525,Rg=ll+1,Pg=2*Math.PI/3,Mg=2*Math.PI/4.5,ws=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,aM={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=>Rg*e*e*e-ll*e*e,easeOutBack:e=>1+Rg*Math.pow(e-1,3)+ll*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Ss+1)*2*e-Ss)/2:(Math.pow(2*e-2,2)*((Ss+1)*(e*2-2)+Ss)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Pg),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Pg)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Mg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Mg)/2+1,easeInBounce:e=>1-ws(1-e),easeOutBounce:ws,easeInOutBounce:e=>e<.5?(1-ws(1-2*e))/2:(1+ws(2*e-1))/2,steps:rM},wo=Symbol.for("FluidValue.get"),ni=Symbol.for("FluidValue.observers"),En=e=>!!(e&&e[wo]),hn=e=>e&&e[wo]?e[wo]():e,Ig=e=>e[ni]||null;function iM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function _o(e,t){const n=e[ni];n&&n.forEach(r=>{iM(r,t)})}var nx=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");oM(this,e)}},oM=(e,t)=>rx(e,wo,t);function gi(e,t){if(e[wo]){let n=e[ni];n||rx(e,ni,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $o(e,t){const n=e[ni];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ni]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var rx=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Bs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,sM=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ng=new RegExp(`(${Bs.source})(%|[a-z]+)`,"i"),lM=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ql=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ax=e=>{const[t,n]=cM(e);if(!t||Ch())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Ql.test(n))return ax(n);if(n)return n}return e},cM=e=>{const t=Ql.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Nu,uM=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,ix=e=>{Nu||(Nu=kr?new RegExp(`(${Object.keys(kr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>hn(i).replace(Ql,ax).replace(sM,Tg).replace(Nu,Tg)),n=t.map(i=>i.match(Bs).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>So({...e,output:i}));return i=>{var l;const o=!Ng.test(t[0])&&((l=t.find(c=>Ng.test(c)))==null?void 0:l.replace(Bs,""));let s=0;return t[0].replace(Bs,()=>`${a[s++](i)}${o||""}`).replace(lM,uM)}},_h="react-spring: ",ox=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${_h}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},dM=ox(console.warn);function fM(){dM(`${_h}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var hM=ox(console.warn);function vM(){hM(`${_h}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 Zl(e){return he.str(e)&&(e[0]=="#"||/\d/.test(e)||!Ch()&&Ql.test(e)||e in(kr||{}))}var $h=Ch()?$.useEffect:$.useLayoutEffect,pM=()=>{const e=$.useRef(!1);return $h(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function sx(){const e=$.useState()[1],t=pM();return()=>{t.current&&e(Math.random())}}function gM(e,t){const[n]=$.useState(()=>({inputs:t,result:e()})),r=$.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&mM(t,i.inputs)||(i={inputs:t,result:e()}):i=n,$.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function mM(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 lx=e=>$.useEffect(e,bM),bM=[];function Ag(e){const t=$.useRef();return $.useEffect(()=>{t.current=e}),t.current}var Eo=Symbol.for("Animated:node"),yM=e=>!!e&&e[Eo]===e,Zn=e=>e&&e[Eo],Eh=(e,t)=>z9(e,Eo,t),Jl=e=>e&&e[Eo]&&e[Eo].getPayload(),cx=class{constructor(){Eh(this,this)}getPayload(){return this.payload||[]}},Xo=class extends cx{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,he.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Xo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return he.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,he.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Oo=class extends Xo{constructor(e){super(0),this._string=null,this._toString=So({output:[e,e]})}static create(e){return new Oo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(he.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=So({output:[this.getValue(),e]})),this._value=0,super.reset()}},cl={dependencies:null},ec=class extends cx{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return nr(this.source,(n,r)=>{yM(n)?t[r]=n.getValue(e):En(n)?t[r]=hn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ct(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return nr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){cl.dependencies&&En(e)&&cl.dependencies.add(e);const t=Jl(e);t&&ct(t,n=>this.add(n))}},ux=class extends ec{constructor(e){super(e)}static create(e){return new ux(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(xM)),!0)}};function xM(e){return(Zl(e)?Oo:Xo).create(e)}function lf(e){const t=Zn(e);return t?t.constructor:he.arr(e)?ux:Zl(e)?Oo:Xo}var jg=(e,t)=>{const n=!he.fun(e)||e.prototype&&e.prototype.isReactComponent;return $.forwardRef((r,a)=>{const i=$.useRef(null),o=n&&$.useCallback(p=>{i.current=wM(a,p)},[a]),[s,l]=SM(r,t),c=sx(),u=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new CM(u,l),h=$.useRef();$h(()=>(h.current=d,ct(l,p=>gi(p,d)),()=>{h.current&&(ct(h.current.deps,p=>$o(p,h.current)),Ke.cancel(h.current.update))})),$.useEffect(u,[]),lx(()=>()=>{const p=h.current;ct(p.deps,g=>$o(g,p))});const m=t.getComponentProps(s.getValue());return f.createElement(e,{...m,ref:o})})},CM=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ke.write(this.update)}};function SM(e,t){const n=new Set;return cl.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ec(e),cl.dependencies=null,[e,n]}function wM(e,t){return e&&(he.fun(e)?e(t):e.current=t),t}var kg=Symbol.for("AnimatedComponent"),_M=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new ec(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Fg(o)||"Anonymous";return he.str(o)?o=i[o]||(i[o]=jg(o,a)):o=o[kg]||(o[kg]=jg(o,a)),o.displayName=`Animated(${s})`,o};return nr(e,(o,s)=>{he.arr(e)&&(s=Fg(o)),i[s]=i(o)}),{animated:i}},Fg=e=>he.str(e)?e:e&&he.str(e.displayName)?e.displayName:he.fun(e)&&e.name||null;function Kr(e,...t){return he.fun(e)?e(...t):e}var ro=(e,t)=>e===!0||!!(t&&e&&(he.fun(e)?e(t):xn(e).includes(t))),dx=(e,t)=>he.obj(e)?t&&e[t]:e,fx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,$M=e=>e,Oh=(e,t=$M)=>{let n=EM;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);he.und(i)||(r[a]=i)}return r},EM=["config","onProps","onStart","onChange","onPause","onResume","onRest"],OM={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 TM(e){const t={};let n=0;if(nr(e,(r,a)=>{OM[a]||(t[a]=r,n++)}),n)return t}function hx(e){const t=TM(e);if(t){const n={to:t};return nr(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function To(e){return e=hn(e),he.arr(e)?e.map(To):Zl(e)?Wn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function RM(e){for(const t in e)return!0;return!1}function cf(e){return he.fun(e)||he.arr(e)&&he.obj(e[0])}function PM(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function MM(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Th={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}},uf={...Th.default,mass:1,damping:1,easing:aM.linear,clamp:!1},IM=class{constructor(){this.velocity=0,Object.assign(this,uf)}};function NM(e,t,n){n&&(n={...n},Lg(n,t),t={...n,...t}),Lg(e,t),Object.assign(e,t);for(const o in uf)e[o]==null&&(e[o]=uf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return he.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Lg(e,t){if(!he.und(t.decay))e.duration=void 0;else{const n=!he.und(t.tension)||!he.und(t.friction);(n||!he.und(t.frequency)||!he.und(t.damping)||!he.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Dg=[],AM=class{constructor(){this.changed=!1,this.values=Dg,this.toValues=null,this.fromValues=Dg,this.config=new IM,this.immediate=!1}};function vx(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let l,c,u=ro(n.cancel??(r==null?void 0:r.cancel),t);if(u)m();else{he.und(n.pause)||(a.paused=ro(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=a.paused||ro(p,t)),l=Kr(n.delay||0,t),p?(a.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){a.resumeQueue.add(h),a.timeouts.delete(c),c.cancel(),l=c.time-Ke.now()}function h(){l>0&&!Wn.skipAnimation?(a.delayed=!0,c=Ke.setTimeout(m,l),a.pauseQueue.add(d),a.timeouts.add(c)):m()}function m(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},o)}catch(p){s(p)}}})}var Rh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Wa(e.get()):t.every(n=>n.noop)?px(e.get()):Fn(e.get(),t.every(n=>n.finished)),px=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Fn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Wa=e=>({value:e,cancelled:!0,finished:!1});function gx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:l}=n;return!i&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=Oh(t,(v,x)=>x==="onRest"?void 0:v);let u,d;const h=new Promise((v,x)=>(u=v,d=x)),m=v=>{const x=a<=(n.cancelId||0)&&Wa(r)||a!==n.asyncId&&Fn(r,!1);if(x)throw v.result=x,d(v),v},p=(v,x)=>{const b=new zg,y=new Bg;return(async()=>{if(Wn.skipAnimation)throw Ro(n),y.result=Fn(r,!1),d(y),y;m(b);const S=he.obj(v)?{...v}:{...x,to:v};S.parentId=a,nr(c,(_,R)=>{he.und(S[R])&&(S[R]=_)});const C=await r.start(S);return m(b),n.paused&&await new Promise(_=>{n.resumeQueue.add(_)}),C})()};let g;if(Wn.skipAnimation)return Ro(n),Fn(r,!1);try{let v;he.arr(e)?v=(async x=>{for(const b of x)await p(b)})(e):v=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([v.then(u),h]),g=Fn(r.get(),!0,!1)}catch(v){if(v instanceof zg)g=v.result;else if(v instanceof Bg)g=v.result;else throw v}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return he.fun(o)&&Ke.batchedUpdates(()=>{o(g,r,r.item)}),g})()}function Ro(e,t){to(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var zg=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.")}},Bg=class extends Error{constructor(){super("SkipAnimationSignal")}},df=e=>e instanceof Ph,jM=1,Ph=class extends nx{constructor(){super(...arguments),this.id=jM++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Zn(this);return e&&e.getValue()}to(...e){return Wn.to(this,e)}interpolate(...e){return fM(),Wn.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){_o(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Yl.sort(this),_o(this,{type:"priority",parent:this,priority:e})}},aa=Symbol.for("SpringPhase"),mx=1,ff=2,hf=4,Au=e=>(e[aa]&mx)>0,Rr=e=>(e[aa]&ff)>0,Fi=e=>(e[aa]&hf)>0,Vg=(e,t)=>t?e[aa]|=ff|mx:e[aa]&=~ff,Hg=(e,t)=>t?e[aa]|=hf:e[aa]&=~hf,kM=class extends Ph{constructor(e,t){if(super(),this.animation=new AM,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,!he.und(e)||!he.und(t)){const n=he.obj(e)?{...e}:{...t,from:e};he.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Rr(this)||this._state.asyncTo)||Fi(this)}get goal(){return hn(this.animation.to)}get velocity(){const e=Zn(this);return e instanceof Xo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Au(this)}get isAnimating(){return Rr(this)}get isPaused(){return Fi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=Jl(r.to);!o&&En(r.to)&&(a=xn(hn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Oo?1:o?o[u].lastPosition:a[u];let h=r.immediate,m=d;if(!h){if(m=c.lastPosition,i.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const g=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=he.arr(i.velocity)?i.velocity[u]:i.velocity;let x;const b=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(he.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,S=Math.exp(-(1-y)*p);m=g+v/(1-y)*(1-S),h=Math.abs(c.lastPosition-m)<=b,x=v*S}else{x=c.lastVelocity==null?v:c.lastVelocity;const y=i.restVelocity||b/10,S=i.clamp?0:i.bounce,C=!he.und(S),_=g==d?c.v0>0:g<d;let R,E=!1;const O=1,k=Math.ceil(e/O);for(let N=0;N<k&&(R=Math.abs(x)>y,!(!R&&(h=Math.abs(d-m)<=b,h)));++N){C&&(E=m==d||m>d==_,E&&(x=-x*S,m=d));const z=-i.tension*1e-6*(m-d),F=-i.friction*.001*x,j=(z+F)/i.mass;x=x+j*O,m=m+x*O}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,p=c.elapsedTime+=e)),y=(i.progress||0)+p/this._memoizedDuration,y=y>1?1:y<0?0:y,c.durationProgress=y),m=g+i.easing(y)*(d-g),x=(m-c.lastPosition)/e,h=y==1}c.lastVelocity=x,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[u].done&&(h=!1),h?c.done=!0:t=!1,c.setValue(m,i.round)&&(n=!0)});const s=Zn(this),l=s.getValue();if(t){const c=hn(r.to);(l!==c||n)&&!i.decay?(s.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ke.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Rr(this)){const{to:e,config:t}=this.animation;Ke.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 he.und(e)?(n=this.queue||[],this.queue=[]):n=[he.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Rh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ro(this._state,e&&this._lastCallId),Ke.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=he.obj(n)?n[t]:n,(n==null||cf(n))&&(n=void 0),r=he.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return Au(this)||(e.reverse&&([n,r]=[r,n]),r=hn(r),he.und(r)?Zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Oh(e,(o,s)=>/^on/.test(s)?dx(o,n):o)),Ug(this,e,"onProps"),Di(this,"onProps",e,this);const a=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 i=this._state;return vx(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Fi(this)||(Hg(this,!0),Yi(i.pauseQueue),Di(this,"onPause",Fn(this,Li(this,this.animation.to)),this))},resume:()=>{Fi(this)&&(Hg(this,!1),Rr(this)&&this._resume(),Yi(i.resumeQueue),Di(this,"onResume",Fn(this,Li(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=bx(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Wa(this));const r=!he.und(e.to),a=!he.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Wa(this));const{key:i,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;a&&!r&&(!t.default||he.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const h=!vr(d,c);h&&(s.from=d),d=hn(d);const m=!vr(u,l);m&&this._focus(u);const p=cf(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||a)&&(g.velocity=0),t.config&&!p&&NM(g,Kr(t.config,i),t.config!==o.config?Kr(o.config,i):void 0);let b=Zn(this);if(!b||he.und(u))return n(Fn(this,!0));const y=he.und(t.reset)?a&&!t.default:!he.und(d)&&ro(t.reset,i),S=y?d:this.get(),C=To(u),_=he.num(C)||he.arr(C)||Zl(C),R=!p&&(!_||ro(o.immediate||t.immediate,i));if(m){const N=lf(u);if(N!==b.constructor)if(R)b=this._set(C);else throw Error(`Cannot animate between ${b.constructor.name} and ${N.name}, as the "to" prop suggests`)}const E=b.constructor;let O=En(u),k=!1;if(!O){const N=y||!Au(this)&&h;(m||N)&&(k=vr(To(S),C),O=!k),(!vr(s.immediate,R)&&!R||!vr(g.decay,v)||!vr(g.velocity,x))&&(O=!0)}if(k&&Rr(this)&&(s.changed&&!y?O=!0:O||this._stop(l)),!p&&((O||En(l))&&(s.values=b.getPayload(),s.toValues=En(u)?null:E==Oo?[1]:xn(C)),s.immediate!=R&&(s.immediate=R,!R&&!y&&this._set(l)),O)){const{onRest:N}=s;ct(LM,F=>Ug(this,t,F));const z=Fn(this,Li(this,l));Yi(this._pendingCalls,z),this._pendingCalls.add(n),s.changed&&Ke.batchedUpdates(()=>{var F;s.changed=!y,N==null||N(z,this),y?Kr(o.onRest,z):(F=s.onStart)==null||F.call(s,z,this)})}y&&this._set(S),p?n(gx(t.to,t,this._state,this)):O?this._start():Rr(this)&&!m?this._pendingCalls.add(n):n(px(S))}_focus(e){const t=this.animation;e!==t.to&&(Ig(this)&&this._detach(),t.to=e,Ig(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;En(t)&&(gi(t,this),df(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;En(e)&&$o(e,this)}_set(e,t=!0){const n=hn(e);if(!he.und(n)){const r=Zn(this);if(!r||!vr(n,r.getValue())){const a=lf(n);!r||r.constructor!=a?Eh(this,a.create(n)):r.setValue(n),r&&Ke.batchedUpdates(()=>{this._onChange(n,t)})}}return Zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Di(this,"onStart",Fn(this,Li(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Kr(this.animation.onChange,e,this)),Kr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Zn(this).reset(hn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Rr(this)||(Vg(this,!0),Fi(this)||this._resume())}_resume(){Wn.skipAnimation?this.finish():Yl.start(this)}_stop(e,t){if(Rr(this)){Vg(this,!1);const n=this.animation;ct(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),_o(this,{type:"idle",parent:this});const r=t?Wa(this.get()):Fn(this.get(),Li(this,e??n.to));Yi(this._pendingCalls,r),n.changed&&(n.changed=!1,Di(this,"onRest",r,this))}}};function Li(e,t){const n=To(t),r=To(e.get());return vr(r,n)}function bx(e,t=e.loop,n=e.to){const r=Kr(t);if(r){const a=r!==!0&&hx(r),i=(a||e).reverse,o=!a||a.reset;return Po({...e,loop:t,default:!1,pause:void 0,to:!i||cf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Po(e){const{to:t,from:n}=e=hx(e),r=new Set;return he.obj(t)&&Wg(t,r),he.obj(n)&&Wg(n,r),e.keys=r.size?Array.from(r):null,e}function FM(e){const t=Po(e);return he.und(t.default)&&(t.default=Oh(t)),t}function Wg(e,t){nr(e,(n,r)=>n!=null&&t.add(r))}var LM=["onStart","onRest","onChange","onPause","onResume"];function Ug(e,t,n){e.animation[n]=t[n]!==fx(t,n)?dx(t[n],e.key):void 0}function Di(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var DM=["onStart","onChange","onRest"],zM=1,BM=class{constructor(e,t){this.id=zM++,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];he.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Po(e)),this}start(e){let{queue:t}=this;return e?t=xn(e).map(Po):this.queue=[],this._flush?this._flush(this,t):(wx(this,t),vf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ct(xn(t),r=>n[r].stop(!!e))}else Ro(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(he.und(e))this.start({pause:!0});else{const t=this.springs;ct(xn(e),n=>t[n].pause())}return this}resume(e){if(he.und(e))this.start({pause:!1});else{const t=this.springs;ct(xn(e),n=>t[n].resume())}return this}each(e){nr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,to(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&to(t,([s,l])=>{l.value=o,s(l,this,this._item)}),i&&(this._started=!1,to(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;Ke.onFrame(this._onFrame)}};function vf(e,t){return Promise.all(t.map(n=>yx(e,n))).then(n=>Rh(e,n))}async function yx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:l}=t,c=he.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const u=he.arr(a)||he.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ct(DM,g=>{const v=t[g];if(he.fun(v)){const x=e._events[g];t[g]=({finished:b,cancelled:y})=>{const S=x.get(v);S?(b||(S.finished=!1),y&&(S.cancelled=!0)):x.set(v,{value:null,finished:b||!1,cancelled:y||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Yi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),m=t.cancel===!0||fx(t,"cancel")===!0;(u||m&&d.asyncId)&&h.push(vx(++e._lastAsyncId,{props:t,state:d,actions:{pause:of,resume:of,start(g,v){m?(Ro(d,e._lastAsyncId),v(Wa(e))):(g.onRest=s,v(gx(u,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const p=Rh(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const g=bx(t,o,a);if(g)return wx(e,[g]),yx(e,g,!0)}return l&&Ke.batchedUpdates(()=>l(p,e,e.item)),p}function qg(e,t){const n={...e.springs};return t&&ct(xn(t),r=>{he.und(r.keys)&&(r=Po(r)),he.obj(r.to)||(r={...r,to:void 0}),Sx(n,r,a=>Cx(a))}),xx(e,n),n}function xx(e,t){nr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,gi(n,e))})}function Cx(e,t){const n=new kM;return n.key=e,t&&gi(n,t),n}function Sx(e,t,n){t.keys&&ct(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function wx(e,t){ct(t,n=>{Sx(e.springs,n,r=>Cx(r,e))})}var tc=({children:e,...t})=>{const n=$.useContext(ul),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=gM(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=ul;return f.createElement(i,{value:t},e)},ul=VM(tc,{});tc.Provider=ul.Provider;tc.Consumer=ul.Consumer;function VM(e,t){return Object.assign(e,f.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var HM=()=>{const e=[],t=function(r){vM();const a=[];return ct(e,(i,o)=>{if(he.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return ct(e,r=>r.pause(...arguments)),this},t.resume=function(){return ct(e,r=>r.resume(...arguments)),this},t.set=function(r){ct(e,(a,i)=>{const o=he.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return ct(e,(i,o)=>{if(he.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return ct(e,r=>r.stop(...arguments)),this},t.update=function(r){return ct(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return he.fun(r)?r(i,a):r};return t._getProps=n,t};function _x(e,t,n){const r=he.fun(t)&&t;r&&!n&&(n=[]);const a=$.useMemo(()=>r||arguments.length==3?HM():void 0,[]),i=$.useRef(0),o=sx(),s=$.useMemo(()=>({ctrls:[],queue:[],flush(x,b){const y=qg(x,b);return i.current>0&&!s.queue.length&&!Object.keys(y).some(C=>!x.springs[C])?vf(x,b):new Promise(C=>{xx(x,y),s.queue.push(()=>{C(vf(x,b))}),o()})}}),[]),l=$.useRef([...s.ctrls]),c=[],u=Ag(e)||0;$.useMemo(()=>{ct(l.current.slice(e,u),x=>{PM(x,a),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),$.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,b){for(let y=x;y<b;y++){const S=l.current[y]||(l.current[y]=new BM(null,s.flush)),C=r?r(y,S):t[y];C&&(c[y]=FM(C))}}const h=l.current.map((x,b)=>qg(x,c[b])),m=$.useContext(tc),p=Ag(m),g=m!==p&&RM(m);$h(()=>{i.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],ct(x,b=>b())),ct(l.current,(b,y)=>{a==null||a.add(b),g&&b.start({default:m});const S=c[y];S&&(MM(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),lx(()=>()=>{ct(s.ctrls,x=>x.stop(!0))});const v=h.map(x=>({...x}));return a?[v,a]:v}function mi(e,t){const n=he.fun(e),[[r],a]=_x(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var $x=class extends Ph{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=So(...t);const n=this._get(),r=lf(n);Eh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();vr(t,n)||(Zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Gg(this._active)&&ju(this)}_get(){const e=he.arr(this.source)?this.source.map(hn):xn(hn(this.source));return this.calc(...e)}_start(){this.idle&&!Gg(this._active)&&(this.idle=!1,ct(Jl(this),e=>{e.done=!1}),Wn.skipAnimation?(Ke.batchedUpdates(()=>this.advance()),ju(this)):Yl.start(this))}_attach(){let e=1;ct(xn(this.source),t=>{En(t)&&gi(t,this),df(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ct(xn(this.source),e=>{En(e)&&$o(e,this)}),this._active.clear(),ju(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=xn(this.source).reduce((t,n)=>Math.max(t,(df(n)?n.priority:0)+1),0))}};function WM(e){return e.idle!==!1}function Gg(e){return!e.size||Array.from(e).every(WM)}function ju(e){e.idle||(e.idle=!0,ct(Jl(e),t=>{t.done=!0}),_o(e,{type:"idle",parent:e}))}var UM=(e,...t)=>new $x(e,t);Wn.assign({createStringInterpolator:ix,to:(e,t)=>new $x(e,t)});var Ex=/^--/;function qM(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ex.test(e)&&!(ao.hasOwnProperty(e)&&ao[e])?t+"px":(""+t).trim()}var Kg={};function GM(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:i,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(h=>n||e.hasAttribute(h)?h:Kg[h]||(Kg[h]=h.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));i!==void 0&&(e.textContent=i);for(const h in a)if(a.hasOwnProperty(h)){const m=qM(h,a[h]);Ex.test(h)?e.style.setProperty(h,m):e.style[h]=m}d.forEach((h,m)=>{e.setAttribute(h,u[m])}),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 ao={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},KM=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),YM=["Webkit","Ms","Moz","O"];ao=Object.keys(ao).reduce((e,t)=>(YM.forEach(n=>e[KM(n,t)]=e[t]),e),ao);var XM=/^(matrix|translate|scale|rotate|skew)/,QM=/^(translate)/,ZM=/^(rotate|skew)/,ku=(e,t)=>he.num(e)&&e!==0?e+t:e,Vs=(e,t)=>he.arr(e)?e.every(n=>Vs(n,t)):he.num(e)?e===t:parseFloat(e)===t,JM=class extends ec{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>ku(s,"px")).join(",")})`,Vs(o,0)])),nr(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(l=>[l,l===""]);else if(XM.test(s)){if(delete r[s],he.und(o))return;const l=QM.test(s)?"px":ZM.test(s)?"deg":"";a.push(xn(o)),i.push(s==="rotate3d"?([c,u,d,h])=>[`rotate3d(${c},${u},${d},${ku(h,l)})`,Vs(h,0)]:c=>[`${s}(${c.map(u=>ku(u,l)).join(",")})`,Vs(c,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new eI(a,i)),super(r)}},eI=class extends nx{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 ct(this.inputs,(n,r)=>{const a=hn(n[0]),[i,o]=this.transforms[r](he.arr(a)?a:n.map(hn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ct(this.inputs,t=>ct(t,n=>En(n)&&gi(n,this)))}observerRemoved(e){e==0&&ct(this.inputs,t=>ct(t,n=>En(n)&&$o(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),_o(this,e)}},tI=["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"];Wn.assign({batchedUpdates:na.unstable_batchedUpdates,createStringInterpolator:ix,colors:U9});var nI=_M(tI,{applyAnimatedValues:GM,createAnimatedStyle:e=>new JM(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),bi=nI.animated;function ia(){return ia=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},ia.apply(this,arguments)}var rI={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Yg=function(e,t){return"translate("+e+"px, "+t+"px)"},Ox=$.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=sr(),o=xa(),s=o.animate,l=o.config,c=YC(),u=c[0],d=c[1],h=$.useRef(!1),m=void 0,p=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),m={transform:Yg(v,x)},h.current||(p=!0),h.current=[v,x]);var b=mi({to:m,config:l,immediate:!s||p}),y=ia({},rI,i.tooltip.wrapper,{transform:(t=b.transform)!=null?t:Yg(v,x),opacity:b.transform?1:0});return H.jsx(bi.div,{ref:u,style:y,children:a})});Ox.displayName="TooltipWrapper";var pf=$.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return H.jsx("span",{style:ia({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),Xg=$.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,l=e.renderContent,c=sr(),u=XC(a);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=H.jsxs("div",{style:c.tooltip.basic,children:[o&&H.jsx(pf,{color:s,style:c.tooltip.chip}),d!==void 0?H.jsxs("span",{children:[n,": ",H.jsx("strong",{children:""+d})]}):n]})}return H.jsx("div",{style:c.tooltip.container,children:t})}),aI={width:"100%",borderCollapse:"collapse"},iI=$.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=sr();return a.length?(t=typeof i=="function"?i():H.jsxs("div",{children:[n&&n,H.jsx("table",{style:ia({},aI,o.tooltip.table),children:H.jsx("tbody",{children:a.map(function(s,l){return H.jsx("tr",{children:s.map(function(c,u){return H.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),H.jsx("div",{style:o.tooltip.container,children:t})):null});iI.displayName="TableTooltip";var gf=$.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=sr(),o=xa(),s=o.animate,l=o.config,c=$.useMemo(function(){return ia({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),u=mi({x1:t,x2:n,y1:r,y2:a,config:l,immediate:!s});return H.jsx(bi.line,ia({},u,{fill:"none",style:c}))});gf.displayName="CrosshairLine";var oI=$.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),H.jsxs(H.Fragment,{children:[t&&H.jsx(gf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&H.jsx(gf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});oI.displayName="Crosshair";var Tx=$.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),mf={isVisible:!1,position:[null,null],content:null,anchor:null},Rx=$.createContext(mf),sI=function(e){var t=$.useState(mf),n=t[0],r=t[1],a=$.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]),i=$.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,h=d===u.width?1:d/u.width,m="touches"in l?l.touches[0]:l,p=m.clientX,g=m.clientY,v=(p-u.left)*h,x=(g-u.top)*h;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=$.useCallback(function(){r(mf)},[r]);return{actions:$.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Px=function(){var e=$.useContext(Tx);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},lI=function(){var e=$.useContext(Rx);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},cI=function(e){return e.isVisible},uI=function(){var e=lI();return cI(e)?H.jsx(Ox,{position:e.position,anchor:e.anchor,children:e.content}):null},dI=function(e){var t=e.container,n=e.children,r=sI(t),a=r.actions,i=r.state;return H.jsx(Tx.Provider,{value:a,children:H.jsx(Rx.Provider,{value:i,children:n})})},fI=ql;function hI(){this.__data__=new fI,this.size=0}var vI=hI;function pI(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var gI=pI;function mI(e){return this.__data__.get(e)}var bI=mI;function yI(e){return this.__data__.has(e)}var xI=yI,CI=ql,SI=hh,wI=vh,_I=200;function $I(e,t){var n=this.__data__;if(n instanceof CI){var r=n.__data__;if(!SI||r.length<_I-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wI(r)}return n.set(e,t),this.size=n.size,this}var EI=$I,OI=ql,TI=vI,RI=gI,PI=bI,MI=xI,II=EI;function yi(e){var t=this.__data__=new OI(e);this.size=t.size}yi.prototype.clear=TI;yi.prototype.delete=RI;yi.prototype.get=PI;yi.prototype.has=MI;yi.prototype.set=II;var Mx=yi,NI=ma,AI=function(){try{var e=NI(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ix=AI,Qg=Ix;function jI(e,t,n){t=="__proto__"&&Qg?Qg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Mh=jI,kI=Mh,FI=Wl;function LI(e,t,n){(n!==void 0&&!FI(e[t],n)||n===void 0&&!(t in e))&&kI(e,t,n)}var Nx=LI;function DI(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(n(i[l],l,i)===!1)break}return t}}var zI=DI,BI=zI,VI=BI(),HI=VI,dl={exports:{}};dl.exports;(function(e,t){var n=ir,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,h=s?s(d):new c.constructor(d);return c.copy(h),h}e.exports=l})(dl,dl.exports);var Ax=dl.exports,WI=ir,UI=WI.Uint8Array,qI=UI,Zg=qI;function GI(e){var t=new e.constructor(e.byteLength);return new Zg(t).set(new Zg(e)),t}var Ih=GI,KI=Ih;function YI(e,t){var n=t?KI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jx=YI;function XI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kx=XI,QI=Cr,Jg=Object.create,ZI=function(){function e(){}return function(t){if(!QI(t))return{};if(Jg)return Jg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),JI=ZI;function eN(e,t){return function(n){return e(t(n))}}var Fx=eN,tN=Fx,nN=tN(Object.getPrototypeOf,Object),Nh=nN,rN=Object.prototype;function aN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||rN;return e===n}var Ah=aN,iN=JI,oN=Nh,sN=Ah;function lN(e){return typeof e.constructor=="function"&&!sN(e)?iN(oN(e)):{}}var Lx=lN;function cN(e){return e!=null&&typeof e=="object"}var Sr=cN,uN=ga,dN=Sr,fN="[object Arguments]";function hN(e){return dN(e)&&uN(e)==fN}var vN=hN,em=vN,pN=Sr,Dx=Object.prototype,gN=Dx.hasOwnProperty,mN=Dx.propertyIsEnumerable,bN=em(function(){return arguments}())?em:function(e){return pN(e)&&gN.call(e,"callee")&&!mN.call(e,"callee")},nc=bN,yN=Array.isArray,or=yN,xN=9007199254740991;function CN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xN}var jh=CN,SN=Vl,wN=jh;function _N(e){return e!=null&&wN(e.length)&&!SN(e)}var rc=_N,$N=rc,EN=Sr;function ON(e){return EN(e)&&$N(e)}var zx=ON,fl={exports:{}};function TN(){return!1}var RN=TN;fl.exports;(function(e,t){var n=ir,r=RN,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(fl,fl.exports);var kh=fl.exports,PN=ga,MN=Nh,IN=Sr,NN="[object Object]",AN=Function.prototype,jN=Object.prototype,Bx=AN.toString,kN=jN.hasOwnProperty,FN=Bx.call(Object);function LN(e){if(!IN(e)||PN(e)!=NN)return!1;var t=MN(e);if(t===null)return!0;var n=kN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Bx.call(n)==FN}var Vx=LN;const Hx=Cn(Vx);var DN=ga,zN=jh,BN=Sr,VN="[object Arguments]",HN="[object Array]",WN="[object Boolean]",UN="[object Date]",qN="[object Error]",GN="[object Function]",KN="[object Map]",YN="[object Number]",XN="[object Object]",QN="[object RegExp]",ZN="[object Set]",JN="[object String]",eA="[object WeakMap]",tA="[object ArrayBuffer]",nA="[object DataView]",rA="[object Float32Array]",aA="[object Float64Array]",iA="[object Int8Array]",oA="[object Int16Array]",sA="[object Int32Array]",lA="[object Uint8Array]",cA="[object Uint8ClampedArray]",uA="[object Uint16Array]",dA="[object Uint32Array]",At={};At[rA]=At[aA]=At[iA]=At[oA]=At[sA]=At[lA]=At[cA]=At[uA]=At[dA]=!0;At[VN]=At[HN]=At[tA]=At[WN]=At[nA]=At[UN]=At[qN]=At[GN]=At[KN]=At[YN]=At[XN]=At[QN]=At[ZN]=At[JN]=At[eA]=!1;function fA(e){return BN(e)&&zN(e.length)&&!!At[DN(e)]}var hA=fA;function vA(e){return function(t){return e(t)}}var ac=vA,hl={exports:{}};hl.exports;(function(e,t){var n=k1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(hl,hl.exports);var Fh=hl.exports,pA=hA,gA=ac,tm=Fh,nm=tm&&tm.isTypedArray,mA=nm?gA(nm):pA,Wx=mA;function bA(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ux=bA,yA=Mh,xA=Wl,CA=Object.prototype,SA=CA.hasOwnProperty;function wA(e,t,n){var r=e[t];(!(SA.call(e,t)&&xA(r,n))||n===void 0&&!(t in e))&&yA(e,t,n)}var Lh=wA,_A=Lh,$A=Mh;function EA(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),a?$A(n,s,l):_A(n,s,l)}return n}var Qo=EA;function OA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var TA=OA,RA=9007199254740991,PA=/^(?:0|[1-9]\d*)$/;function MA(e,t){var n=typeof e;return t=t??RA,!!t&&(n=="number"||n!="symbol"&&PA.test(e))&&e>-1&&e%1==0&&e<t}var ic=MA,IA=TA,NA=nc,AA=or,jA=kh,kA=ic,FA=Wx,LA=Object.prototype,DA=LA.hasOwnProperty;function zA(e,t){var n=AA(e),r=!n&&NA(e),a=!n&&!r&&jA(e),i=!n&&!r&&!a&&FA(e),o=n||r||a||i,s=o?IA(e.length,String):[],l=s.length;for(var c in e)(t||DA.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kA(c,l)))&&s.push(c);return s}var qx=zA;function BA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VA=BA,HA=Cr,WA=Ah,UA=VA,qA=Object.prototype,GA=qA.hasOwnProperty;function KA(e){if(!HA(e))return UA(e);var t=WA(e),n=[];for(var r in e)r=="constructor"&&(t||!GA.call(e,r))||n.push(r);return n}var YA=KA,XA=qx,QA=YA,ZA=rc;function JA(e){return ZA(e)?XA(e,!0):QA(e)}var Zo=JA,ej=Qo,tj=Zo;function nj(e){return ej(e,tj(e))}var rj=nj,rm=Nx,aj=Ax,ij=jx,oj=kx,sj=Lx,am=nc,im=or,lj=zx,cj=kh,uj=Vl,dj=Cr,fj=Vx,hj=Wx,om=Ux,vj=rj;function pj(e,t,n,r,a,i,o){var s=om(e,n),l=om(t,n),c=o.get(l);if(c){rm(e,n,c);return}var u=i?i(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var h=im(l),m=!h&&cj(l),p=!h&&!m&&hj(l);u=l,h||m||p?im(s)?u=s:lj(s)?u=oj(s):m?(d=!1,u=aj(l,!0)):p?(d=!1,u=ij(l,!0)):u=[]:fj(l)||am(l)?(u=s,am(s)?u=vj(s):(!dj(s)||uj(s))&&(u=sj(l))):d=!1}d&&(o.set(l,u),a(u,l,r,i,o),o.delete(l)),rm(e,n,u)}var gj=pj,mj=Mx,bj=Nx,yj=HI,xj=gj,Cj=Cr,Sj=Zo,wj=Ux;function Gx(e,t,n,r,a){e!==t&&yj(t,function(i,o){if(a||(a=new mj),Cj(i))xj(e,t,o,n,Gx,r,a);else{var s=r?r(wj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),bj(e,o,s)}},Sj)}var _j=Gx;function $j(e){return e}var Kx=$j;function Ej(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 Oj=Ej,Tj=Oj,sm=Math.max;function Rj(e,t,n){return t=sm(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=sm(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),Tj(e,this,s)}}var Yx=Rj;function Pj(e){return function(){return e}}var Mj=Pj,Ij=Mj,lm=Ix,Nj=Kx,Aj=lm?function(e,t){return lm(e,"toString",{configurable:!0,enumerable:!1,value:Ij(t),writable:!0})}:Nj,jj=Aj,kj=800,Fj=16,Lj=Date.now;function Dj(e){var t=0,n=0;return function(){var r=Lj(),a=Fj-(r-n);if(n=r,a>0){if(++t>=kj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zj=Dj,Bj=jj,Vj=zj,Hj=Vj(Bj),Xx=Hj,Wj=Kx,Uj=Yx,qj=Xx;function Gj(e,t){return qj(Uj(e,t,Wj),e+"")}var Qx=Gj,Kj=Wl,Yj=rc,Xj=ic,Qj=Cr;function Zj(e,t,n){if(!Qj(n))return!1;var r=typeof t;return(r=="number"?Yj(n)&&Xj(t,n.length):r=="string"&&t in n)?Kj(n[t],e):!1}var Jj=Zj,ek=Qx,tk=Jj;function nk(e){return ek(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&tk(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var rk=nk,ak=_j,ik=rk,ok=ik(function(e,t,n){ak(e,t,n)}),sk=ok;const lk=Cn(sk);var ck=ga,uk=Sr,dk="[object Symbol]";function fk(e){return typeof e=="symbol"||uk(e)&&ck(e)==dk}var Dh=fk,hk=or,vk=Dh,pk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gk=/^\w*$/;function mk(e,t){if(hk(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vk(e)?!0:gk.test(e)||!pk.test(e)||t!=null&&e in Object(t)}var bk=mk,Zx=vh,yk="Expected a function";function zh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yk);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(zh.Cache||Zx),n}zh.Cache=Zx;var xk=zh,Ck=xk,Sk=500;function wk(e){var t=Ck(e,function(r){return n.size===Sk&&n.clear(),r}),n=t.cache;return t}var _k=wk,$k=_k,Ek=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ok=/\\(\\)?/g,Tk=$k(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ek,function(n,r,a,i){t.push(a?i.replace(Ok,"$1"):r||n)}),t}),Rk=Tk;function Pk(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Jx=Pk,cm=fi,Mk=Jx,Ik=or,Nk=Dh,Ak=1/0,um=cm?cm.prototype:void 0,dm=um?um.toString:void 0;function eC(e){if(typeof e=="string")return e;if(Ik(e))return Mk(e,eC)+"";if(Nk(e))return dm?dm.call(e):"";var t=e+"";return t=="0"&&1/e==-Ak?"-0":t}var jk=eC,kk=jk;function Fk(e){return e==null?"":kk(e)}var Lk=Fk,Dk=or,zk=bk,Bk=Rk,Vk=Lk;function Hk(e,t){return Dk(e)?e:zk(e,t)?[e]:Bk(Vk(e))}var oc=Hk,Wk=Dh,Uk=1/0;function qk(e){if(typeof e=="string"||Wk(e))return e;var t=e+"";return t=="0"&&1/e==-Uk?"-0":t}var Bh=qk,Gk=oc,Kk=Bh;function Yk(e,t){t=Gk(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kk(t[n++])];return n&&n==r?e:void 0}var tC=Yk,Xk=tC;function Qk(e,t,n){var r=e==null?void 0:Xk(e,t);return r===void 0?n:r}var Zk=Qk;const ri=Cn(Zk);var Jk=Lh,eF=oc,tF=ic,fm=Cr,nF=Bh;function rF(e,t,n,r){if(!fm(e))return e;t=eF(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=nF(t[a]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=fm(u)?u:tF(t[a+1])?[]:{})}Jk(s,l,c),s=s[l]}return e}var nC=rF,aF=nC;function iF(e,t,n){return e==null?e:aF(e,t,n)}var oF=iF;const sF=Cn(oF);function sc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Vh(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xi(){}var oa=.7,ai=1/oa,Ua="\\s*([+-]?\\d+)\\s*",Mo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lF=/^#([0-9a-f]{3,8})$/,cF=new RegExp(`^rgb\\(${Ua},${Ua},${Ua}\\)$`),uF=new RegExp(`^rgb\\(${er},${er},${er}\\)$`),dF=new RegExp(`^rgba\\(${Ua},${Ua},${Ua},${Mo}\\)$`),fF=new RegExp(`^rgba\\(${er},${er},${er},${Mo}\\)$`),hF=new RegExp(`^hsl\\(${Mo},${er},${er}\\)$`),vF=new RegExp(`^hsla\\(${Mo},${er},${er},${Mo}\\)$`),hm={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};sc(xi,Hh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vm,formatHex:vm,formatHex8:pF,formatHsl:gF,formatRgb:pm,toString:pm});function vm(){return this.rgb().formatHex()}function pF(){return this.rgb().formatHex8()}function gF(){return aC(this).formatHsl()}function pm(){return this.rgb().formatRgb()}function Hh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?gm(t):n===3?new on(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_s(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_s(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=cF.exec(e))?new on(t[1],t[2],t[3],1):(t=uF.exec(e))?new on(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=dF.exec(e))?_s(t[1],t[2],t[3],t[4]):(t=fF.exec(e))?_s(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hF.exec(e))?ym(t[1],t[2]/100,t[3]/100,1):(t=vF.exec(e))?ym(t[1],t[2]/100,t[3]/100,t[4]):hm.hasOwnProperty(e)?gm(hm[e]):e==="transparent"?new on(NaN,NaN,NaN,0):null}function gm(e){return new on(e>>16&255,e>>8&255,e&255,1)}function _s(e,t,n,r){return r<=0&&(e=t=n=NaN),new on(e,t,n,r)}function rC(e){return e instanceof xi||(e=Hh(e)),e?(e=e.rgb(),new on(e.r,e.g,e.b,e.opacity)):new on}function ii(e,t,n,r){return arguments.length===1?rC(e):new on(e,t,n,r??1)}function on(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sc(on,ii,Vh(xi,{brighter(e){return e=e==null?ai:Math.pow(ai,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new on(ea(this.r),ea(this.g),ea(this.b),vl(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:mm,formatHex:mm,formatHex8:mF,formatRgb:bm,toString:bm}));function mm(){return`#${Qr(this.r)}${Qr(this.g)}${Qr(this.b)}`}function mF(){return`#${Qr(this.r)}${Qr(this.g)}${Qr(this.b)}${Qr((isNaN(this.opacity)?1:this.opacity)*255)}`}function bm(){const e=vl(this.opacity);return`${e===1?"rgb(":"rgba("}${ea(this.r)}, ${ea(this.g)}, ${ea(this.b)}${e===1?")":`, ${e})`}`}function vl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ea(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qr(e){return e=ea(e),(e<16?"0":"")+e.toString(16)}function ym(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,n,r)}function aC(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof xi||(e=Hh(e)),!e)return new Ln;if(e instanceof Ln)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new Ln(o,s,l,e.opacity)}function bF(e,t,n,r){return arguments.length===1?aC(e):new Ln(e,t,n,r??1)}function Ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sc(Ln,bF,Vh(xi,{brighter(e){return e=e==null?ai:Math.pow(ai,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new Ln(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,a=2*n-r;return new on(Fu(e>=240?e-240:e+120,a,r),Fu(e,a,r),Fu(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Ln(xm(this.h),$s(this.s),$s(this.l),vl(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=vl(this.opacity);return`${e===1?"hsl(":"hsla("}${xm(this.h)}, ${$s(this.s)*100}%, ${$s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function xm(e){return e=(e||0)%360,e<0?e+360:e}function $s(e){return Math.max(0,Math.min(1,e||0))}function Fu(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 yF=Math.PI/180,xF=180/Math.PI;var iC=-.14861,Wh=1.78277,Uh=-.29227,lc=-.90649,Io=1.97294,Cm=Io*lc,Sm=Io*Wh,wm=Wh*Uh-lc*iC;function CF(e){if(e instanceof ta)return new ta(e.h,e.s,e.l,e.opacity);e instanceof on||(e=rC(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(wm*r+Cm*t-Sm*n)/(wm+Cm-Sm),i=r-a,o=(Io*(n-a)-Uh*i)/lc,s=Math.sqrt(o*o+i*i)/(Io*a*(1-a)),l=s?Math.atan2(o,i)*xF-120:NaN;return new ta(l<0?l+360:l,s,a,e.opacity)}function rr(e,t,n,r){return arguments.length===1?CF(e):new ta(e,t,n,r??1)}function ta(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sc(ta,rr,Vh(xi,{brighter(e){return e=e==null?ai:Math.pow(ai,e),new ta(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new ta(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*yF,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new on(255*(t+n*(iC*r+Wh*a)),255*(t+n*(Uh*r+lc*a)),255*(t+n*(Io*r)),this.opacity)}}));function SF(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function wF(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),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return SF((n-r/t)*t,o,a,i,s)}}const qh=e=>()=>e;function oC(e,t){return function(n){return e+n*t}}function _F(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 $F(e,t){var n=t-e;return n?oC(e,n>180||n<-180?n-360*Math.round(n/360):n):qh(isNaN(e)?t:e)}function EF(e){return(e=+e)==1?qa:function(t,n){return n-t?_F(t,n,e):qh(isNaN(t)?n:t)}}function qa(e,t){var n=t-e;return n?oC(e,n):qh(isNaN(e)?t:e)}(function e(t){var n=EF(t);function r(a,i){var o=n((a=ii(a)).r,(i=ii(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),c=qa(a.opacity,i.opacity);return function(u){return a.r=o(u),a.g=s(u),a.b=l(u),a.opacity=c(u),a+""}}return r.gamma=e,r})(1);function OF(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ii(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(l){return s.r=r(l),s.g=a(l),s.b=i(l),s+""}}}var TF=OF(wF);function RF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var bf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lu=new RegExp(bf.source,"g");function PF(e){return function(){return e}}function MF(e){return function(t){return e(t)+""}}function IF(e,t){var n=bf.lastIndex=Lu.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=bf.exec(e))&&(a=Lu.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:RF(r,a)})),n=Lu.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?MF(l[0].x):PF(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 sC(e){return function t(n){n=+n;function r(a,i){var o=e((a=rr(a)).h,(i=rr(i)).h),s=qa(a.s,i.s),l=qa(a.l,i.l),c=qa(a.opacity,i.opacity);return function(u){return a.h=o(u),a.s=s(u),a.l=l(Math.pow(u,n)),a.opacity=c(u),a+""}}return r.gamma=t,r}(1)}sC($F);var Gh=sC(qa),NF=ga,AF=or,jF=Sr,kF="[object String]";function FF(e){return typeof e=="string"||!AF(e)&&jF(e)&&NF(e)==kF}var LF=FF;const DF=Cn(LF);function zF(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var BF=zF;const je=Cn(BF);class _m extends Map{constructor(t,n=WF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get($m(this,t))}has(t){return super.has($m(this,t))}set(t,n){return super.set(VF(this,t),n)}delete(t){return super.delete(HF(this,t))}}function $m({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function VF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function HF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function WF(e){return e!==null&&typeof e=="object"?e.valueOf():e}function UF(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Em=Symbol("implicit");function za(){var e=new _m,t=[],n=[],r=Em;function a(i){let o=e.get(i);if(o===void 0){if(r!==Em)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new _m;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return za(t,n).unknown(r)},UF.apply(a,arguments),a}function Ze(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 lC=Ze("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),cC=Ze("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),uC=Ze("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),dC=Ze("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),fC=Ze("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),hC=Ze("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),vC=Ze("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),pC=Ze("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Kh=Ze("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),qF=Ze("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Pt=e=>TF(e[e.length-1]);var cc=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ze);const GF=Pt(cc);var uc=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ze);const KF=Pt(uc);var dc=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ze);const YF=Pt(dc);var fc=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ze);const XF=Pt(fc);var hc=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ze);const QF=Pt(hc);var vc=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ze);const ZF=Pt(vc);var pc=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ze);const JF=Pt(pc);var gc=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ze);const eL=Pt(gc);var mc=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ze);const tL=Pt(mc);var bc=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ze);const nL=Pt(bc);var yc=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ze);const rL=Pt(yc);var xc=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ze);const aL=Pt(xc);var Cc=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ze);const iL=Pt(Cc);var Sc=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ze);const oL=Pt(Sc);var wc=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ze);const sL=Pt(wc);var _c=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ze);const lL=Pt(_c);var $c=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ze);const cL=Pt($c);var Ec=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ze);const uL=Pt(Ec);var Oc=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ze);const dL=Pt(Oc);var Tc=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ze);const fL=Pt(Tc);var Rc=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ze);const hL=Pt(Rc);var Pc=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ze);const vL=Pt(Pc);var Mc=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ze);const pL=Pt(Mc);var Ic=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ze);const gL=Pt(Ic);var Nc=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ze);const mL=Pt(Nc);var Ac=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ze);const bL=Pt(Ac);var jc=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ze);const yL=Pt(jc);function xL(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 CL=Gh(rr(300,.5,0),rr(-240,.5,1));var SL=Gh(rr(-100,.75,.35),rr(80,1.5,.8)),wL=Gh(rr(260,.75,.35),rr(80,1.5,.8)),Es=rr();function _L(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Es.h=360*e-100,Es.s=1.5-1.5*t,Es.l=.8-.9*t,Es+""}var Os=ii(),$L=Math.PI/3,EL=Math.PI*2/3;function OL(e){var t;return e=(.5-e)*Math.PI,Os.r=255*(t=Math.sin(e))*t,Os.g=255*(t=Math.sin(e+$L))*t,Os.b=255*(t=Math.sin(e+EL))*t,Os+""}function TL(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 kc(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const RL=kc(Ze("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var PL=kc(Ze("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ML=kc(Ze("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),IL=kc(Ze("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),NL=D1,AL=z1,jL=B1,kL=Jx,FL=ac,LL=V1,DL=200;function zL(e,t,n,r){var a=-1,i=AL,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=kL(t,FL(n))),r?(i=jL,o=!1):t.length>=DL&&(i=LL,o=!1,t=new NL(t));e:for(;++a<s;){var u=e[a],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}var BL=zL,VL=BL,HL=Qx,WL=zx,UL=HL(function(e,t){return WL(e)?VL(e,t):[]}),qL=UL;const gC=Cn(qL);function Aa(e){return function(){return e}}const Om=1e-12,yf=Math.PI,xf=2*yf,Ur=1e-6,GL=xf-Ur;function mC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function KL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return mC;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class YL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?mC:KL(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,l=r-t,c=a-n,u=o-t,d=s-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ur)if(!(Math.abs(d*l-c*u)>Ur)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,p=a-s,g=l*l+c*c,v=m*m+p*p,x=Math.sqrt(g),b=Math.sqrt(h),y=i*Math.tan((yf-Math.acos((g+h-v)/(2*x*b)))/2),S=y/b,C=y/x;Math.abs(S-1)>Ur&&this._append`L${t+S*u},${n+S*d}`,this._append`A${i},${i},0,0,${+(d*m>u*p)},${this._x1=t+C*l},${this._y1=n+C*c}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),c=t+s,u=n+l,d=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ur||Math.abs(this._y1-u)>Ur)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%xf+xf),h>GL?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Ur&&this._append`A${r},${r},0,${+(h>=yf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function XL(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 YL(t)}function QL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bC(e){this._context=e}bC.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 yC(e){return new bC(e)}function ZL(e){return e[0]}function JL(e){return e[1]}function Tm(e,t){var n=Aa(!0),r=null,a=yC,i=null,o=XL(s);e=typeof e=="function"?e:e===void 0?ZL:Aa(e),t=typeof t=="function"?t:t===void 0?JL:Aa(t);function s(l){var c,u=(l=QL(l)).length,d,h=!1,m;for(r==null&&(i=a(m=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(d,c,l),+t(d,c,l));if(m)return i=null,m+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Aa(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Aa(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Aa(!!l),s):n},s.curve=function(l){return arguments.length?(a=l,r!=null&&(i=a(r)),s):a},s.context=function(l){return arguments.length?(l==null?r=i=null:i=a(r=l),s):r},s}function Fr(){}function pl(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 Fc(e){this._context=e}Fc.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:pl(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:pl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eD(e){return new Fc(e)}function xC(e){this._context=e}xC.prototype={areaStart:Fr,areaEnd:Fr,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:pl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tD(e){return new xC(e)}function CC(e){this._context=e}CC.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:pl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nD(e){return new CC(e)}function SC(e,t){this._basis=new Fc(e),this._beta=t}SC.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],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*i),this._beta*t[s]+(1-this._beta)*(a+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const rD=function e(t){function n(r){return t===1?new Fc(r):new SC(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function gl(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 Yh(e,t){this._context=e,this._k=(1-t)/6}Yh.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:gl(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:gl(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 aD=function e(t){function n(r){return new Yh(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xh(e,t){this._context=e,this._k=(1-t)/6}Xh.prototype={areaStart:Fr,areaEnd:Fr,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:gl(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 iD=function e(t){function n(r){return new Xh(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Qh(e,t){this._context=e,this._k=(1-t)/6}Qh.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:gl(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 oD=function e(t){function n(r){return new Qh(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Zh(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Om){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,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Om){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);i=(i*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,a,i,o,e._x2,e._y2)}function wC(e,t){this._context=e,this._alpha=t}wC.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:Zh(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 sD=function e(t){function n(r){return t?new wC(r,t):new Yh(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function _C(e,t){this._context=e,this._alpha=t}_C.prototype={areaStart:Fr,areaEnd:Fr,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:Zh(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 lD=function e(t){function n(r){return t?new _C(r,t):new Xh(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function $C(e,t){this._context=e,this._alpha=t}$C.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:Zh(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 cD=function e(t){function n(r){return t?new $C(r,t):new Qh(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function EC(e){this._context=e}EC.prototype={areaStart:Fr,areaEnd:Fr,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 uD(e){return new EC(e)}function Rm(e){return e<0?-1:1}function Pm(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(Rm(i)+Rm(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Mm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Du(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function ml(e){this._context=e}ml.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:Du(this,this._t0,Mm(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,Du(this,Mm(this,n=Pm(this,e,t)),n);break;default:Du(this,this._t0,n=Pm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function OC(e){this._context=new TC(e)}(OC.prototype=Object.create(ml.prototype)).point=function(e,t){ml.prototype.point.call(this,t,e)};function TC(e){this._context=e}TC.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function RC(e){return new ml(e)}function PC(e){return new OC(e)}function MC(e){this._context=e}MC.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=Im(e),a=Im(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],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 Im(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function dD(e){return new MC(e)}function Lc(e,t){this._context=e,this._t=t}Lc.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 fD(e){return new Lc(e,.5)}function hD(e){return new Lc(e,0)}function vD(e){return new Lc(e,1)}function pD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bl(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 gD(e){return e=bl(Math.abs(e)),e?e[1]:NaN}function mD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function bD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var yD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cf(e){if(!(t=yD.exec(e)))throw new Error("invalid format: "+e);var t;return new Jh({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]})}Cf.prototype=Jh.prototype;function Jh(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+""}Jh.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 xD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var IC;function CD(e,t){var n=bl(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(IC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+bl(e,Math.max(0,t+i-1))[0]}function Nm(e,t){var n=bl(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const Am={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:pD,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 Nm(e*100,t)},r:Nm,s:CD,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jm(e){return e}var km=Array.prototype.map,Fm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SD(e){var t=e.grouping===void 0||e.thousands===void 0?jm:mD(km.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?jm:bD(km.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=Cf(d);var h=d.fill,m=d.align,p=d.sign,g=d.symbol,v=d.zero,x=d.width,b=d.comma,y=d.precision,S=d.trim,C=d.type;C==="n"?(b=!0,C="g"):Am[C]||(y===void 0&&(y=12),S=!0,C="g"),(v||h==="0"&&m==="=")&&(v=!0,h="0",m="=");var _=g==="$"?n:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",R=g==="$"?r:/[%p]/.test(C)?o:"",E=Am[C],O=/[defgprs%]/.test(C);y=y===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function k(N){var z=_,F=R,j,I,T;if(C==="c")F=E(N)+F,N="";else{N=+N;var w=N<0||1/N<0;if(N=isNaN(N)?l:E(Math.abs(N),y),S&&(N=xD(N)),w&&+N==0&&p!=="+"&&(w=!1),z=(w?p==="("?p:s:p==="-"||p==="("?"":p)+z,F=(C==="s"?Fm[8+IC/3]:"")+F+(w&&p==="("?")":""),O){for(j=-1,I=N.length;++j<I;)if(T=N.charCodeAt(j),48>T||T>57){F=(T===46?a+N.slice(j+1):N.slice(j))+F,N=N.slice(0,j);break}}}b&&!v&&(N=t(N,1/0));var P=z.length+N.length+F.length,A=P<x?new Array(x-P+1).join(h):"";switch(b&&v&&(N=t(A+N,A.length?x-F.length:1/0),A=""),m){case"<":N=z+N+F+A;break;case"=":N=z+A+N+F;break;case"^":N=A.slice(0,P=A.length>>1)+z+N+F+A.slice(P);break;default:N=A+z+N+F;break}return i(N)}return k.toString=function(){return d+""},k}function u(d,h){var m=c((d=Cf(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(gD(h)/3)))*3,g=Math.pow(10,-p),v=Fm[8+p/3];return function(x){return m(g*x)+v}}return{format:c,formatPrefix:u}}var Ts,NC;wD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function wD(e){return Ts=SD(e),NC=Ts.format,Ts.formatPrefix,Ts}var zu=new Date,Bu=new Date;function wr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var l=[],c;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return l;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return l},a.filter=function(i){return wr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return zu.setTime(+i),Bu.setTime(+o),e(zu),e(Bu),Math.floor(n(zu,Bu))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const _D=1e3,ev=_D*60,$D=ev*60,tv=$D*24,AC=tv*7;var nv=wr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ev)/tv,e=>e.getDate()-1);nv.range;function ba(e){return wr(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())*ev)/AC})}var jC=ba(0),yl=ba(1),ED=ba(2),OD=ba(3),oi=ba(4),TD=ba(5),RD=ba(6);jC.range;yl.range;ED.range;OD.range;oi.range;TD.range;RD.range;var sa=wr(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()});sa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:wr(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)})};sa.range;var rv=wr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/tv},function(e){return e.getUTCDate()-1});rv.range;function ya(e){return wr(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)/AC})}var kC=ya(0),xl=ya(1),PD=ya(2),MD=ya(3),si=ya(4),ID=ya(5),ND=ya(6);kC.range;xl.range;PD.range;MD.range;si.range;ID.range;ND.range;var la=wr(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()});la.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:wr(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)})};la.range;function Lm(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 a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function FC(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 a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Vu(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}function Hu(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 Wu(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 zi(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function AD(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Bi(a),u=Vi(a),d=Bi(i),h=Vi(i),m=Bi(o),p=Vi(o),g=Bi(s),v=Vi(s),x=Bi(l),b=Vi(l),y={a:w,A:P,b:A,B:M,c:null,d:Wm,e:Wm,f:rz,g:hz,G:pz,H:ez,I:tz,j:nz,L:LC,m:az,M:iz,p:L,q:K,Q:Gm,s:Km,S:oz,u:sz,U:lz,V:cz,w:uz,W:dz,x:null,X:null,y:fz,Y:vz,Z:gz,"%":qm},S={a:W,A:q,b:X,B:Q,c:null,d:Um,e:Um,f:xz,g:Pz,G:Iz,H:mz,I:bz,j:yz,L:zC,m:Cz,M:Sz,p:Z,q:J,Q:Gm,s:Km,S:wz,u:_z,U:$z,V:Ez,w:Oz,W:Tz,x:null,X:null,y:Rz,Y:Mz,Z:Nz,"%":qm},C={a:k,A:N,b:z,B:F,c:j,d:Vm,e:Vm,f:XD,g:Bm,G:zm,H:Hm,I:Hm,j:qD,L:YD,m:UD,M:GD,p:O,q:WD,Q:ZD,s:JD,S:KD,u:DD,U:zD,V:BD,w:LD,W:VD,x:I,X:T,y:Bm,Y:zm,Z:HD,"%":QD};y.x=_(n,y),y.X=_(r,y),y.c=_(t,y),S.x=_(n,S),S.X=_(r,S),S.c=_(t,S);function _(G,ee){return function(ae){var V=[],ce=-1,B=0,ue=G.length,le,be,xe;for(ae instanceof Date||(ae=new Date(+ae));++ce<ue;)G.charCodeAt(ce)===37&&(V.push(G.slice(B,ce)),(be=Dm[le=G.charAt(++ce)])!=null?le=G.charAt(++ce):be=le==="e"?" ":"0",(xe=ee[le])&&(le=xe(ae,be)),V.push(le),B=ce+1);return V.push(G.slice(B,ce)),V.join("")}}function R(G,ee){return function(ae){var V=zi(1900,void 0,1),ce=E(V,G,ae+="",0),B,ue;if(ce!=ae.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(ee&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(B=Wu(zi(V.y,0,1)),ue=B.getUTCDay(),B=ue>4||ue===0?xl.ceil(B):xl(B),B=rv.offset(B,(V.V-1)*7),V.y=B.getUTCFullYear(),V.m=B.getUTCMonth(),V.d=B.getUTCDate()+(V.w+6)%7):(B=Hu(zi(V.y,0,1)),ue=B.getDay(),B=ue>4||ue===0?yl.ceil(B):yl(B),B=nv.offset(B,(V.V-1)*7),V.y=B.getFullYear(),V.m=B.getMonth(),V.d=B.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),ue="Z"in V?Wu(zi(V.y,0,1)).getUTCDay():Hu(zi(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(ue+5)%7:V.w+V.U*7-(ue+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,Wu(V)):Hu(V)}}function E(G,ee,ae,V){for(var ce=0,B=ee.length,ue=ae.length,le,be;ce<B;){if(V>=ue)return-1;if(le=ee.charCodeAt(ce++),le===37){if(le=ee.charAt(ce++),be=C[le in Dm?ee.charAt(ce++):le],!be||(V=be(G,ae,V))<0)return-1}else if(le!=ae.charCodeAt(V++))return-1}return V}function O(G,ee,ae){var V=c.exec(ee.slice(ae));return V?(G.p=u.get(V[0].toLowerCase()),ae+V[0].length):-1}function k(G,ee,ae){var V=m.exec(ee.slice(ae));return V?(G.w=p.get(V[0].toLowerCase()),ae+V[0].length):-1}function N(G,ee,ae){var V=d.exec(ee.slice(ae));return V?(G.w=h.get(V[0].toLowerCase()),ae+V[0].length):-1}function z(G,ee,ae){var V=x.exec(ee.slice(ae));return V?(G.m=b.get(V[0].toLowerCase()),ae+V[0].length):-1}function F(G,ee,ae){var V=g.exec(ee.slice(ae));return V?(G.m=v.get(V[0].toLowerCase()),ae+V[0].length):-1}function j(G,ee,ae){return E(G,t,ee,ae)}function I(G,ee,ae){return E(G,n,ee,ae)}function T(G,ee,ae){return E(G,r,ee,ae)}function w(G){return o[G.getDay()]}function P(G){return i[G.getDay()]}function A(G){return l[G.getMonth()]}function M(G){return s[G.getMonth()]}function L(G){return a[+(G.getHours()>=12)]}function K(G){return 1+~~(G.getMonth()/3)}function W(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function X(G){return l[G.getUTCMonth()]}function Q(G){return s[G.getUTCMonth()]}function Z(G){return a[+(G.getUTCHours()>=12)]}function J(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var ee=_(G+="",y);return ee.toString=function(){return G},ee},parse:function(G){var ee=R(G+="",!1);return ee.toString=function(){return G},ee},utcFormat:function(G){var ee=_(G+="",S);return ee.toString=function(){return G},ee},utcParse:function(G){var ee=R(G+="",!0);return ee.toString=function(){return G},ee}}}var Dm={"-":"",_:" ",0:"0"},Xt=/^\s*\d+/,jD=/^%/,kD=/[\\^$*+?|[\]().{}]/g;function yt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function FD(e){return e.replace(kD,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(FD).join("|")+")","i")}function Vi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function LD(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function DD(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function BD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function VD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zm(e,t,n){var r=Xt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Bm(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function HD(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 WD(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Vm(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qD(e,t,n){var r=Xt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Hm(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function GD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function KD(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function YD(e,t,n){var r=Xt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function XD(e,t,n){var r=Xt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function QD(e,t,n){var r=jD.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ZD(e,t,n){var r=Xt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function JD(e,t,n){var r=Xt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Wm(e,t){return yt(e.getDate(),t,2)}function ez(e,t){return yt(e.getHours(),t,2)}function tz(e,t){return yt(e.getHours()%12||12,t,2)}function nz(e,t){return yt(1+nv.count(sa(e),e),t,3)}function LC(e,t){return yt(e.getMilliseconds(),t,3)}function rz(e,t){return LC(e,t)+"000"}function az(e,t){return yt(e.getMonth()+1,t,2)}function iz(e,t){return yt(e.getMinutes(),t,2)}function oz(e,t){return yt(e.getSeconds(),t,2)}function sz(e){var t=e.getDay();return t===0?7:t}function lz(e,t){return yt(jC.count(sa(e)-1,e),t,2)}function DC(e){var t=e.getDay();return t>=4||t===0?oi(e):oi.ceil(e)}function cz(e,t){return e=DC(e),yt(oi.count(sa(e),e)+(sa(e).getDay()===4),t,2)}function uz(e){return e.getDay()}function dz(e,t){return yt(yl.count(sa(e)-1,e),t,2)}function fz(e,t){return yt(e.getFullYear()%100,t,2)}function hz(e,t){return e=DC(e),yt(e.getFullYear()%100,t,2)}function vz(e,t){return yt(e.getFullYear()%1e4,t,4)}function pz(e,t){var n=e.getDay();return e=n>=4||n===0?oi(e):oi.ceil(e),yt(e.getFullYear()%1e4,t,4)}function gz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yt(t/60|0,"0",2)+yt(t%60,"0",2)}function Um(e,t){return yt(e.getUTCDate(),t,2)}function mz(e,t){return yt(e.getUTCHours(),t,2)}function bz(e,t){return yt(e.getUTCHours()%12||12,t,2)}function yz(e,t){return yt(1+rv.count(la(e),e),t,3)}function zC(e,t){return yt(e.getUTCMilliseconds(),t,3)}function xz(e,t){return zC(e,t)+"000"}function Cz(e,t){return yt(e.getUTCMonth()+1,t,2)}function Sz(e,t){return yt(e.getUTCMinutes(),t,2)}function wz(e,t){return yt(e.getUTCSeconds(),t,2)}function _z(e){var t=e.getUTCDay();return t===0?7:t}function $z(e,t){return yt(kC.count(la(e)-1,e),t,2)}function BC(e){var t=e.getUTCDay();return t>=4||t===0?si(e):si.ceil(e)}function Ez(e,t){return e=BC(e),yt(si.count(la(e),e)+(la(e).getUTCDay()===4),t,2)}function Oz(e){return e.getUTCDay()}function Tz(e,t){return yt(xl.count(la(e)-1,e),t,2)}function Rz(e,t){return yt(e.getUTCFullYear()%100,t,2)}function Pz(e,t){return e=BC(e),yt(e.getUTCFullYear()%100,t,2)}function Mz(e,t){return yt(e.getUTCFullYear()%1e4,t,4)}function Iz(e,t){var n=e.getUTCDay();return e=n>=4||n===0?si(e):si.ceil(e),yt(e.getUTCFullYear()%1e4,t,4)}function Nz(){return"+0000"}function qm(){return"%"}function Gm(e){return+e}function Km(e){return Math.floor(+e/1e3)}var ja,VC;Az({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 Az(e){return ja=AD(e),VC=ja.format,ja.parse,ja.utcFormat,ja.utcParse,ja}var jz=tC,kz=nC,Fz=oc;function Lz(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=jz(e,o);n(s,o)&&kz(i,Fz(o,e),s)}return i}var Dz=Lz;function zz(e,t){return e!=null&&t in Object(e)}var Bz=zz,Vz=oc,Hz=nc,Wz=or,Uz=ic,qz=jh,Gz=Bh;function Kz(e,t,n){t=Vz(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=Gz(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&qz(a)&&Uz(o,a)&&(Wz(e)||Hz(e)))}var Yz=Kz,Xz=Bz,Qz=Yz;function Zz(e,t){return e!=null&&Qz(e,t,Xz)}var Jz=Zz,eB=Dz,tB=Jz;function nB(e,t){return eB(e,t,function(n,r){return tB(e,r)})}var rB=nB;function aB(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var av=aB,Ym=fi,iB=nc,oB=or,Xm=Ym?Ym.isConcatSpreadable:void 0;function sB(e){return oB(e)||iB(e)||!!(Xm&&e&&e[Xm])}var lB=sB,cB=av,uB=lB;function HC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=uB),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?HC(s,t-1,n,r,a):cB(a,s):r||(a[a.length]=s)}return a}var dB=HC,fB=dB;function hB(e){var t=e==null?0:e.length;return t?fB(e,1):[]}var vB=hB,pB=vB,gB=Yx,mB=Xx;function bB(e){return mB(gB(e,void 0,pB),e+"")}var yB=bB,xB=rB,CB=yB;CB(function(e,t){return e==null?{}:xB(e,t)});var Qm=fi,Zm=Qm?Qm.prototype:void 0;Zm&&Zm.valueOf;var SB=av,wB=or;function _B(e,t,n){var r=t(e);return wB(e)?r:SB(r,n(e))}var WC=_B;function $B(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var EB=$B;function OB(){return[]}var UC=OB,TB=EB,RB=UC,PB=Object.prototype,MB=PB.propertyIsEnumerable,Jm=Object.getOwnPropertySymbols,IB=Jm?function(e){return e==null?[]:(e=Object(e),TB(Jm(e),function(t){return MB.call(e,t)}))}:RB,iv=IB,NB=Fx,AB=NB(Object.keys,Object),jB=AB,kB=Ah,FB=jB,LB=Object.prototype,DB=LB.hasOwnProperty;function zB(e){if(!kB(e))return FB(e);var t=[];for(var n in Object(e))DB.call(e,n)&&n!="constructor"&&t.push(n);return t}var BB=zB,VB=qx,HB=BB,WB=rc;function UB(e){return WB(e)?VB(e):HB(e)}var ov=UB,qB=WC,GB=iv,KB=ov;function YB(e){return qB(e,KB,GB)}var XB=YB,QB=ma,ZB=ir,JB=QB(ZB,"DataView"),eV=JB,tV=ma,nV=ir,rV=tV(nV,"Promise"),aV=rV,iV=ma,oV=ir,sV=iV(oV,"WeakMap"),lV=sV,Sf=eV,wf=hh,_f=aV,$f=H1,Ef=lV,qC=ga,Ci=L1,e0="[object Map]",cV="[object Object]",t0="[object Promise]",n0="[object Set]",r0="[object WeakMap]",a0="[object DataView]",uV=Ci(Sf),dV=Ci(wf),fV=Ci(_f),hV=Ci($f),vV=Ci(Ef),qr=qC;(Sf&&qr(new Sf(new ArrayBuffer(1)))!=a0||wf&&qr(new wf)!=e0||_f&&qr(_f.resolve())!=t0||$f&&qr(new $f)!=n0||Ef&&qr(new Ef)!=r0)&&(qr=function(e){var t=qC(e),n=t==cV?e.constructor:void 0,r=n?Ci(n):"";if(r)switch(r){case uV:return a0;case dV:return e0;case fV:return t0;case hV:return n0;case vV:return r0}return t});var sv=qr,pV={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 Lr(){return Lr=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},Lr.apply(this,arguments)}function lv(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var gV=["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"],mV=function(e,t){return Lr({},t,e)},bV=function(e,t){var n=lk({},e,t);return gV.forEach(function(r){sF(n,r,mV(ri(n,r),n.text))}),n},GC=$.createContext(),KC=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=$.useMemo(function(){var s=DF(i)?Th[i]:i;return{animate:r,config:s}},[r,i]);return H.jsx(GC.Provider,{value:o,children:t})},i0={animate:ne.bool,motionConfig:ne.oneOfType([ne.oneOf(Object.keys(Th)),ne.shape({mass:ne.number,tension:ne.number,friction:ne.number,clamp:ne.bool,precision:ne.number,velocity:ne.number,duration:ne.number,easing:ne.func})])};KC.propTypes={children:ne.node.isRequired,animate:i0.animate,config:i0.motionConfig};var xa=function(){return $.useContext(GC)},yV=function(e){var t=xa(),n=t.animate,r=t.config,a=function(s){var l=$.useRef();return $.useEffect(function(){l.current=s},[s]),l.current}(e),i=$.useMemo(function(){return IF(a,e)},[a,e]),o=mi({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return UM(o,i)},xV={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:je(cc),PRGn:je(uc),PiYG:je(dc),PuOr:je(fc),RdBu:je(hc),RdGy:je(vc),RdYlBu:je(pc),RdYlGn:je(gc),spectral:je(mc),blues:je(Pc),greens:je(Mc),greys:je(Ic),oranges:je(jc),purples:je(Nc),reds:je(Ac),BuGn:je(bc),BuPu:je(yc),GnBu:je(xc),OrRd:je(Cc),PuBuGn:je(Sc),PuBu:je(wc),PuRd:je(_c),RdPu:je($c),YlGnBu:je(Ec),YlGn:je(Oc),YlOrBr:je(Tc),YlOrRd:je(Rc)},CV=Object.keys(xV);je(cc),je(uc),je(dc),je(fc),je(hc),je(vc),je(pc),je(gc),je(mc),je(Pc),je(Mc),je(Ic),je(jc),je(Nc),je(Ac),je(bc),je(yc),je(xc),je(Cc),je(Sc),je(wc),je(_c),je($c),je(Ec),je(Oc),je(Tc),je(Rc);ne.oneOfType([ne.oneOf(CV),ne.func,ne.arrayOf(ne.string)]);var SV={basis:eD,basisClosed:tD,basisOpen:nD,bundle:rD,cardinal:aD,cardinalClosed:iD,cardinalOpen:oD,catmullRom:sD,catmullRomClosed:lD,catmullRomOpen:cD,linear:yC,linearClosed:uD,monotoneX:RC,monotoneY:PC,natural:dD,step:fD,stepAfter:vD,stepBefore:hD},cv=Object.keys(SV);cv.filter(function(e){return e.endsWith("Closed")});gC(cv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");gC(cv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");ne.shape({top:ne.number,right:ne.number,bottom:ne.number,left:ne.number}).isRequired;var wV=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];ne.oneOf(wV);za(Kh);var _V={top:0,right:0,bottom:0,left:0},$V=function(e,t,n){return n===void 0&&(n={}),$.useMemo(function(){var r=Lr({},_V,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])},YC=function(){var e=$.useRef(null),t=$.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=$.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return $.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},EV=function(e){return $.useMemo(function(){return bV(pV,e)},[e])},OV=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?VC(e.slice("5")):NC(e):function(t){return""+t}},XC=function(e){return $.useMemo(function(){return OV(e)},[e])},QC=$.createContext(),TV={},ZC=function(e){var t=e.theme,n=t===void 0?TV:t,r=e.children,a=EV(n);return H.jsx(QC.Provider,{value:a,children:r})};ZC.propTypes={children:ne.node.isRequired,theme:ne.object};var sr=function(){return $.useContext(QC)},RV=["outlineWidth","outlineColor","outlineOpacity"],JC=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,lv(e,RV)},eS=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?$.cloneElement(r,{},t):t};eS.propTypes={children:ne.node.isRequired,condition:ne.bool.isRequired,wrapper:ne.element.isRequired};var PV={position:"relative"},tS=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,l=e.motionConfig,c=$.useRef(null);return H.jsx(ZC,{theme:n,children:H.jsx(KC,{animate:s,config:l,children:H.jsx(dI,{container:c,children:H.jsxs(eS,{condition:a,wrapper:H.jsx("div",{style:PV,ref:c}),children:[t,o&&H.jsx(uI,{})]})})})})};tS.propTypes={children:ne.element.isRequired,isInteractive:ne.bool,renderWrapper:ne.bool,theme:ne.object,animate:ne.bool,motionConfig:ne.string};ne.func.isRequired,ne.bool,ne.bool,ne.object.isRequired,ne.bool.isRequired,ne.string;var nS=function(e){var t=e.children,n=YC(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return H.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};nS.propTypes={children:ne.func.isRequired};var MV=["id","colors"],rS=function(e){var t=e.id,n=e.colors,r=lv(e,MV);return H.jsx("linearGradient",Lr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return H.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};rS.propTypes={id:ne.string.isRequired,colors:ne.arrayOf(ne.shape({offset:ne.number.isRequired,color:ne.string.isRequired,opacity:ne.number})).isRequired,gradientTransform:ne.string};var IV={linearGradient:rS},Hi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Of=$.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Hi.background:n,a=e.color,i=a===void 0?Hi.color:a,o=e.size,s=o===void 0?Hi.size:o,l=e.padding,c=l===void 0?Hi.padding:l,u=e.stagger,d=u===void 0?Hi.stagger:u,h=s+c,m=s/2,p=c/2;return d===!0&&(h=2*s+2*c),H.jsxs("pattern",{id:t,width:h,height:h,patternUnits:"userSpaceOnUse",children:[H.jsx("rect",{width:h,height:h,fill:r}),H.jsx("circle",{cx:p+m,cy:p+m,r:m,fill:i}),d&&H.jsx("circle",{cx:1.5*c+s+m,cy:1.5*c+s+m,r:m,fill:i})]})});Of.displayName="PatternDots",Of.propTypes={id:ne.string.isRequired,color:ne.string.isRequired,background:ne.string.isRequired,size:ne.number.isRequired,padding:ne.number.isRequired,stagger:ne.bool.isRequired};var o0=function(e){return e*Math.PI/180},Wi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Tf=$.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Wi.spacing:n,a=e.rotation,i=a===void 0?Wi.rotation:a,o=e.background,s=o===void 0?Wi.background:o,l=e.color,c=l===void 0?Wi.color:l,u=e.lineWidth,d=u===void 0?Wi.lineWidth:u,h=Math.round(i)%360,m=Math.abs(r);h>180?h-=360:h>90?h-=180:h<-180?h+=360:h<-90&&(h+=180);var p,g=m,v=m;return h===0?p=`
|
|
433
|
-
M 0 0 L `+
|
|
434
|
-
M 0 `+v+" L "+
|
|
435
|
-
`:
|
|
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=`
|
|
436
464
|
M 0 0 L 0 `+v+`
|
|
437
|
-
M `+
|
|
438
|
-
`:(
|
|
439
|
-
M 0 `+-v+" L "+2*
|
|
440
|
-
M `+-
|
|
441
|
-
M `+-
|
|
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+`
|
|
442
470
|
`:`
|
|
443
|
-
M `+-
|
|
444
|
-
M `+-
|
|
445
|
-
M 0 `+2*v+" L "+2*
|
|
446
|
-
`),
|
|
447
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
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:`
|
|
448
476
|
M`+r/2+` 0
|
|
449
477
|
L`+.8*r+" "+r/2+`
|
|
450
478
|
L`+r/2+" "+r+`
|
|
451
479
|
L`+.2*r+" "+r/2+`
|
|
452
480
|
L`+r/2+` 0
|
|
453
|
-
`,fill:
|
|
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:`
|
|
454
482
|
M`+r/2+` 0
|
|
455
483
|
L`+r+" "+r+`
|
|
456
484
|
L0 `+r+`
|
|
457
485
|
L`+r/2+` 0
|
|
458
|
-
`,fill:a,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function Zr(){return Zr=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},Zr.apply(this,arguments)}var rH={top:0,right:0,bottom:0,left:0},hS=function(e){var t,n=e.direction,r=e.itemsSpacing,a=e.padding,i=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof a!="number"&&(typeof(t=a)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof a=="number"?{top:a,right:a,bottom:a,left:a}:Zr({},rH,a),c=l.left+l.right,u=l.top+l.bottom,d=o+c,h=s+u,m=(i-1)*r;return n==="row"?d=o*i+m+c:n==="column"&&(h=s*i+m+u),{width:d,height:h,padding:l}},aH=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,a=e.containerWidth,i=e.containerHeight,o=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(a-o)/2;break;case"top-right":l+=a-o;break;case"right":l+=a-o,c+=(i-s)/2;break;case"bottom-right":l+=a-o,c+=i-s;break;case"bottom":l+=(a-o)/2,c+=i-s;break;case"bottom-left":c+=i-s;break;case"left":c+=(i-s)/2;break;case"center":l+=(a-o)/2,c+=(i-s)/2}return{x:l,y:c}},iH=function(e){var t,n,r,a,i,o,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,h=e.height;switch(s){case"left-to-right":t=0,n=(h-c)/2,a=h/2,o="central",l?(r=d,i="end"):(r=c+u,i="start");break;case"right-to-left":t=d-c,n=(h-c)/2,a=h/2,o="central",l?(r=0,i="start"):(r=d-c-u,i="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,i="middle",l?(a=h,o="alphabetic"):(a=c+u,o="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=h-c,r=d/2,i="middle",l?(a=0,o="text-before-edge"):(a=h-c-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:a,labelAnchor:i,labelAlignment:o}},oH={circle:JV,diamond:eH,square:tH,triangle:nH},sH=function(e){var t,n,r,a,i,o,s,l,c,u,d,h=e.x,m=e.y,p=e.width,g=e.height,v=e.data,x=e.direction,b=x===void 0?"left-to-right":x,y=e.justify,S=y!==void 0&&y,C=e.textColor,_=e.background,R=_===void 0?"transparent":_,E=e.opacity,O=E===void 0?1:E,k=e.symbolShape,N=k===void 0?"square":k,z=e.symbolSize,F=z===void 0?16:z,j=e.symbolSpacing,I=j===void 0?8:j,T=e.symbolBorderWidth,w=T===void 0?0:T,P=e.symbolBorderColor,A=P===void 0?"transparent":P,M=e.onClick,L=e.onMouseEnter,K=e.onMouseLeave,W=e.toggleSerie,q=e.effects,X=$.useState({}),Q=X[0],Z=X[1],J=sr(),G=$.useCallback(function(ge){if(q){var we=q.filter(function(Me){return Me.on==="hover"}).reduce(function(Me,ve){return Zr({},Me,ve.style)},{});Z(we)}L==null||L(v,ge)},[L,v,q]),ee=$.useCallback(function(ge){if(q){var we=q.filter(function(Me){return Me.on!=="hover"}).reduce(function(Me,ve){return Zr({},Me,ve.style)},{});Z(we)}K==null||K(v,ge)},[K,v,q]),ae=iH({direction:b,justify:S,symbolSize:(t=Q.symbolSize)!=null?t:F,symbolSpacing:I,width:p,height:g}),V=ae.symbolX,ce=ae.symbolY,B=ae.labelX,ue=ae.labelY,le=ae.labelAnchor,be=ae.labelAlignment,xe=[M,L,K,W].some(function(ge){return ge!==void 0}),fe=typeof N=="function"?N:oH[N];return H.jsxs("g",{transform:"translate("+h+","+m+")",style:{opacity:(n=Q.itemOpacity)!=null?n:O},children:[H.jsx("rect",{width:p,height:g,fill:(r=Q.itemBackground)!=null?r:R,style:{cursor:xe?"pointer":"auto"},onClick:function(ge){M==null||M(v,ge),W==null||W(v.id)},onMouseEnter:G,onMouseLeave:ee}),f.createElement(fe,Zr({id:v.id,x:V,y:ce,size:(a=Q.symbolSize)!=null?a:F,fill:(i=(o=v.fill)!=null?o:v.color)!=null?i:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:w,borderColor:(l=Q.symbolBorderColor)!=null?l:A},v.hidden?J.legends.hidden.symbol:void 0)),H.jsx("text",{textAnchor:le,style:Zr({},JC(J.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:C)!=null?u:J.legends.text.fill)!=null?c:"black",dominantBaseline:be,pointerEvents:"none",userSelect:"none"},v.hidden?J.legends.hidden.text:void 0),x:B,y:ue,children:v.label})]})},lH=function(e){var t=e.data,n=e.x,r=e.y,a=e.direction,i=e.padding,o=i===void 0?0:i,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,h=d===void 0?"left-to-right":d,m=e.itemsSpacing,p=m===void 0?0:m,g=e.itemTextColor,v=e.itemBackground,x=v===void 0?"transparent":v,b=e.itemOpacity,y=b===void 0?1:b,S=e.symbolShape,C=e.symbolSize,_=e.symbolSpacing,R=e.symbolBorderWidth,E=e.symbolBorderColor,O=e.onClick,k=e.onMouseEnter,N=e.onMouseLeave,z=e.toggleSerie,F=hS({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:a,padding:o}).padding,j=a==="row"?c+p:0,I=a==="column"?u+p:0;return H.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(T,w){return H.jsx(sH,{data:T,x:w*j+F.left,y:w*I+F.top,width:c,height:u,direction:h,justify:s,effects:l,textColor:g,background:x,opacity:y,symbolShape:S,symbolSize:C,symbolSpacing:_,symbolBorderWidth:R,symbolBorderColor:E,onClick:O,onMouseEnter:k,onMouseLeave:N,toggleSerie:z},w)})})},cH=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,a=e.translateX,i=a===void 0?0:a,o=e.translateY,s=o===void 0?0:o,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,h=e.justify,m=e.itemsSpacing,p=m===void 0?0:m,g=e.itemWidth,v=e.itemHeight,x=e.itemDirection,b=e.itemTextColor,y=e.itemBackground,S=e.itemOpacity,C=e.symbolShape,_=e.symbolSize,R=e.symbolSpacing,E=e.symbolBorderWidth,O=e.symbolBorderColor,k=e.onClick,N=e.onMouseEnter,z=e.onMouseLeave,F=e.toggleSerie,j=e.effects,I=hS({itemCount:t.length,itemsSpacing:p,itemWidth:g,itemHeight:v,direction:c,padding:d}),T=I.width,w=I.height,P=aH({anchor:l,translateX:i,translateY:s,containerWidth:n,containerHeight:r,width:T,height:w}),A=P.x,M=P.y;return H.jsx(lH,{data:t,x:A,y:M,direction:c,padding:d,justify:h,effects:j,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:x,itemTextColor:b,itemBackground:y,itemOpacity:S,symbolShape:C,symbolSize:_,symbolSpacing:R,symbolBorderWidth:E,symbolBorderColor:O,onClick:k,onMouseEnter:N,onMouseLeave:z,toggleSerie:typeof F=="boolean"?void 0:F})};function uH(e){return e.target.depth}function dH(e){return e.depth}function fH(e,t){return t-1-e.height}function vS(e,t){return e.sourceLinks.length?e.depth:t-1}function hH(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?FC(e.sourceLinks,uH)-1:0}function Rs(e){return function(){return e}}function c0(e,t){return Sl(e.source,t.source)||e.index-t.index}function u0(e,t){return Sl(e.target,t.target)||e.index-t.index}function Sl(e,t){return e.y0-t.y0}function qu(e){return e.value}function vH(e){return e.index}function pH(e){return e.nodes}function gH(e){return e.links}function d0(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function f0({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const a of t.sourceLinks)a.y0=n+a.width/2,n+=a.width;for(const a of t.targetLinks)a.y1=r+a.width/2,r+=a.width}}function mH(){let e=0,t=0,n=1,r=1,a=24,i=8,o,s=vH,l=vS,c,u,d=pH,h=gH,m=6;function p(){const I={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return g(I),v(I),x(I),b(I),C(I),f0(I),I}p.update=function(I){return f0(I),I},p.nodeId=function(I){return arguments.length?(s=typeof I=="function"?I:Rs(I),p):s},p.nodeAlign=function(I){return arguments.length?(l=typeof I=="function"?I:Rs(I),p):l},p.nodeSort=function(I){return arguments.length?(c=I,p):c},p.nodeWidth=function(I){return arguments.length?(a=+I,p):a},p.nodePadding=function(I){return arguments.length?(i=o=+I,p):i},p.nodes=function(I){return arguments.length?(d=typeof I=="function"?I:Rs(I),p):d},p.links=function(I){return arguments.length?(h=typeof I=="function"?I:Rs(I),p):h},p.linkSort=function(I){return arguments.length?(u=I,p):u},p.size=function(I){return arguments.length?(e=t=0,n=+I[0],r=+I[1],p):[n-e,r-t]},p.extent=function(I){return arguments.length?(e=+I[0][0],n=+I[1][0],t=+I[0][1],r=+I[1][1],p):[[e,t],[n,r]]},p.iterations=function(I){return arguments.length?(m=+I,p):m};function g({nodes:I,links:T}){for(const[P,A]of I.entries())A.index=P,A.sourceLinks=[],A.targetLinks=[];const w=new Map(I.map((P,A)=>[s(P,A,I),P]));for(const[P,A]of T.entries()){A.index=P;let{source:M,target:L}=A;typeof M!="object"&&(M=A.source=d0(w,M)),typeof L!="object"&&(L=A.target=d0(w,L)),M.sourceLinks.push(A),L.targetLinks.push(A)}if(u!=null)for(const{sourceLinks:P,targetLinks:A}of I)P.sort(u),A.sort(u)}function v({nodes:I}){for(const T of I)T.value=T.fixedValue===void 0?Math.max(Vu(T.sourceLinks,qu),Vu(T.targetLinks,qu)):T.fixedValue}function x({nodes:I}){const T=I.length;let w=new Set(I),P=new Set,A=0;for(;w.size;){for(const M of w){M.depth=A;for(const{target:L}of M.sourceLinks)P.add(L)}if(++A>T)throw new Error("circular link");w=P,P=new Set}}function b({nodes:I}){const T=I.length;let w=new Set(I),P=new Set,A=0;for(;w.size;){for(const M of w){M.height=A;for(const{source:L}of M.targetLinks)P.add(L)}if(++A>T)throw new Error("circular link");w=P,P=new Set}}function y({nodes:I}){const T=Lm(I,A=>A.depth)+1,w=(n-e-a)/(T-1),P=new Array(T);for(const A of I){const M=Math.max(0,Math.min(T-1,Math.floor(l.call(null,A,T))));A.layer=M,A.x0=e+M*w,A.x1=A.x0+a,P[M]?P[M].push(A):P[M]=[A]}if(c)for(const A of P)A.sort(c);return P}function S(I){const T=FC(I,w=>(r-t-(w.length-1)*o)/Vu(w,qu));for(const w of I){let P=t;for(const A of w){A.y0=P,A.y1=P+A.value*T,P=A.y1+o;for(const M of A.sourceLinks)M.width=M.value*T}P=(r-P+o)/(w.length+1);for(let A=0;A<w.length;++A){const M=w[A];M.y0+=P*(A+1),M.y1+=P*(A+1)}z(w)}}function C(I){const T=y(I);o=Math.min(i,(r-t)/(Lm(T,w=>w.length)-1)),S(T);for(let w=0;w<m;++w){const P=Math.pow(.99,w),A=Math.max(1-P,(w+1)/m);R(T,P,A),_(T,P,A)}}function _(I,T,w){for(let P=1,A=I.length;P<A;++P){const M=I[P];for(const L of M){let K=0,W=0;for(const{source:X,value:Q}of L.targetLinks){let Z=Q*(L.layer-X.layer);K+=F(X,L)*Z,W+=Z}if(!(W>0))continue;let q=(K/W-L.y0)*T;L.y0+=q,L.y1+=q,N(L)}c===void 0&&M.sort(Sl),E(M,w)}}function R(I,T,w){for(let P=I.length,A=P-2;A>=0;--A){const M=I[A];for(const L of M){let K=0,W=0;for(const{target:X,value:Q}of L.sourceLinks){let Z=Q*(X.layer-L.layer);K+=j(L,X)*Z,W+=Z}if(!(W>0))continue;let q=(K/W-L.y0)*T;L.y0+=q,L.y1+=q,N(L)}c===void 0&&M.sort(Sl),E(M,w)}}function E(I,T){const w=I.length>>1,P=I[w];k(I,P.y0-o,w-1,T),O(I,P.y1+o,w+1,T),k(I,r,I.length-1,T),O(I,t,0,T)}function O(I,T,w,P){for(;w<I.length;++w){const A=I[w],M=(T-A.y0)*P;M>1e-6&&(A.y0+=M,A.y1+=M),T=A.y1+o}}function k(I,T,w,P){for(;w>=0;--w){const A=I[w],M=(A.y1-T)*P;M>1e-6&&(A.y0-=M,A.y1-=M),T=A.y0-o}}function N({sourceLinks:I,targetLinks:T}){if(u===void 0){for(const{source:{sourceLinks:w}}of T)w.sort(u0);for(const{target:{targetLinks:w}}of I)w.sort(c0)}}function z(I){if(u===void 0)for(const{sourceLinks:T,targetLinks:w}of I)T.sort(u0),w.sort(c0)}function F(I,T){let w=I.y0-(I.sourceLinks.length-1)*o/2;for(const{target:P,width:A}of I.sourceLinks){if(P===T)break;w+=A+o}for(const{source:P,width:A}of T.targetLinks){if(P===I)break;w-=A}return w}function j(I,T){let w=T.y0-(T.targetLinks.length-1)*o/2;for(const{source:P,width:A}of T.targetLinks){if(P===I)break;w+=A+o}for(const{target:P,width:A}of I.sourceLinks){if(P===T)break;w-=A}return w}return p}function bH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var yH=bH,xH=Qo,CH=ov;function SH(e,t){return e&&xH(t,CH(t),e)}var wH=SH,_H=Qo,$H=Zo;function EH(e,t){return e&&_H(t,$H(t),e)}var OH=EH,TH=Qo,RH=iv;function PH(e,t){return TH(e,RH(e),t)}var MH=PH,IH=av,NH=Nh,AH=iv,jH=UC,kH=Object.getOwnPropertySymbols,FH=kH?function(e){for(var t=[];e;)IH(t,AH(e)),e=NH(e);return t}:jH,pS=FH,LH=Qo,DH=pS;function zH(e,t){return LH(e,DH(e),t)}var BH=zH,VH=WC,HH=pS,WH=Zo;function UH(e){return VH(e,WH,HH)}var qH=UH,GH=Object.prototype,KH=GH.hasOwnProperty;function YH(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&KH.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var XH=YH,QH=Ih;function ZH(e,t){var n=t?QH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var JH=ZH,eW=/\w*$/;function tW(e){var t=new e.constructor(e.source,eW.exec(e));return t.lastIndex=e.lastIndex,t}var nW=tW,h0=fi,v0=h0?h0.prototype:void 0,p0=v0?v0.valueOf:void 0;function rW(e){return p0?Object(p0.call(e)):{}}var aW=rW,iW=Ih,oW=JH,sW=nW,lW=aW,cW=jx,uW="[object Boolean]",dW="[object Date]",fW="[object Map]",hW="[object Number]",vW="[object RegExp]",pW="[object Set]",gW="[object String]",mW="[object Symbol]",bW="[object ArrayBuffer]",yW="[object DataView]",xW="[object Float32Array]",CW="[object Float64Array]",SW="[object Int8Array]",wW="[object Int16Array]",_W="[object Int32Array]",$W="[object Uint8Array]",EW="[object Uint8ClampedArray]",OW="[object Uint16Array]",TW="[object Uint32Array]";function RW(e,t,n){var r=e.constructor;switch(t){case bW:return iW(e);case uW:case dW:return new r(+e);case yW:return oW(e,n);case xW:case CW:case SW:case wW:case _W:case $W:case EW:case OW:case TW:return cW(e,n);case fW:return new r;case hW:case gW:return new r(e);case vW:return sW(e);case pW:return new r;case mW:return lW(e)}}var PW=RW,MW=sv,IW=Sr,NW="[object Map]";function AW(e){return IW(e)&&MW(e)==NW}var jW=AW,kW=jW,FW=ac,g0=Fh,m0=g0&&g0.isMap,LW=m0?FW(m0):kW,DW=LW,zW=sv,BW=Sr,VW="[object Set]";function HW(e){return BW(e)&&zW(e)==VW}var WW=HW,UW=WW,qW=ac,b0=Fh,y0=b0&&b0.isSet,GW=y0?qW(y0):UW,KW=GW,YW=Mx,XW=yH,QW=Lh,ZW=wH,JW=OH,eU=Ax,tU=kx,nU=MH,rU=BH,aU=XB,iU=qH,oU=sv,sU=XH,lU=PW,cU=Lx,uU=or,dU=kh,fU=DW,hU=Cr,vU=KW,pU=ov,gU=Zo,mU=1,bU=2,yU=4,gS="[object Arguments]",xU="[object Array]",CU="[object Boolean]",SU="[object Date]",wU="[object Error]",mS="[object Function]",_U="[object GeneratorFunction]",$U="[object Map]",EU="[object Number]",bS="[object Object]",OU="[object RegExp]",TU="[object Set]",RU="[object String]",PU="[object Symbol]",MU="[object WeakMap]",IU="[object ArrayBuffer]",NU="[object DataView]",AU="[object Float32Array]",jU="[object Float64Array]",kU="[object Int8Array]",FU="[object Int16Array]",LU="[object Int32Array]",DU="[object Uint8Array]",zU="[object Uint8ClampedArray]",BU="[object Uint16Array]",VU="[object Uint32Array]",Nt={};Nt[gS]=Nt[xU]=Nt[IU]=Nt[NU]=Nt[CU]=Nt[SU]=Nt[AU]=Nt[jU]=Nt[kU]=Nt[FU]=Nt[LU]=Nt[$U]=Nt[EU]=Nt[bS]=Nt[OU]=Nt[TU]=Nt[RU]=Nt[PU]=Nt[DU]=Nt[zU]=Nt[BU]=Nt[VU]=!0;Nt[wU]=Nt[mS]=Nt[MU]=!1;function Hs(e,t,n,r,a,i){var o,s=t&mU,l=t&bU,c=t&yU;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!hU(e))return e;var u=uU(e);if(u){if(o=sU(e),!s)return tU(e,o)}else{var d=oU(e),h=d==mS||d==_U;if(dU(e))return eU(e,s);if(d==bS||d==gS||h&&!a){if(o=l||h?{}:cU(e),!s)return l?rU(e,JW(o,e)):nU(e,ZW(o,e))}else{if(!Nt[d])return a?e:{};o=lU(e,d,s)}}i||(i=new YW);var m=i.get(e);if(m)return m;i.set(e,o),vU(e)?e.forEach(function(v){o.add(Hs(v,t,n,v,e,i))}):fU(e)&&e.forEach(function(v,x){o.set(x,Hs(v,t,n,x,e,i))});var p=c?l?iU:aU:l?gU:pU,g=u?void 0:p(e);return XW(g||e,function(v,x){g&&(x=v,v=e[x]),QW(o,x,Hs(v,t,n,x,e,i))}),o}var HU=Hs,WU=HU,UU=1,qU=4;function GU(e){return WU(e,UU|qU)}var KU=GU;const YU=Cn(KU);function ca(){return ca=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},ca.apply(this,arguments)}var Gu={container:{display:"flex",alignItems:"center"},sourceChip:{marginRight:7},targetChip:{marginLeft:7,marginRight:7}},XU={center:hH,justify:vS,start:dH,end:fH},QU=function(e){return XU[e]},ht={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 H.jsx(Xg,{id:t.label,enableChip:!0,color:t.color})},linkTooltip:function(e){var t=e.link;return H.jsx(Xg,{id:H.jsxs("span",{style:Gu.container,children:[H.jsx(pf,{color:t.source.color,style:Gu.sourceChip}),H.jsx("strong",{children:t.source.label})," > ",H.jsx("strong",{children:t.target.label}),H.jsx(pf,{color:t.target.color,style:Gu.targetChip}),H.jsx("strong",{children:t.formattedValue})]})})},legends:[],layers:["links","nodes","labels","legends"],role:"img",animate:!0,motionConfig:"gentle"},ZU=function(e){return e.id},JU=function(e){var t=e.data,n=e.valueFormat,r=e.layout,a=e.width,i=e.height,o=e.sort,s=e.align,l=e.colors,c=e.nodeThickness,u=e.nodeSpacing,d=e.nodeInnerPadding,h=e.nodeBorderColor,m=e.label,p=e.labelTextColor,g=$.useState(null),v=g[0],x=g[1],b=$.useState(null),y=b[0],S=b[1],C=$.useMemo(function(){if(o!=="auto")return o==="input"?null:o==="ascending"?function(P,A){return P.value-A.value}:o==="descending"?function(P,A){return A.value-P.value}:o},[o]),_=o==="input"?null:void 0,R=$.useMemo(function(){return typeof s=="function"?s:QU(s)},[s]),E=sr(),O=ZV(l,"id"),k=l0(h,E),N=DV(m),z=l0(p,E),F=XC(n),j=$.useMemo(function(){return function(P){var A=P.data,M=P.formatValue,L=P.layout,K=P.alignFunction,W=P.sortFunction,q=P.linkSortMode,X=P.nodeThickness,Q=P.nodeSpacing,Z=P.nodeInnerPadding,J=P.width,G=P.height,ee=P.getColor,ae=P.getLabel,V=mH().nodeAlign(K).nodeSort(W).linkSort(q).nodeWidth(X).nodePadding(Q).size(L==="horizontal"?[J,G]:[G,J]).nodeId(ZU),ce=YU(A);return V(ce),ce.nodes.forEach(function(B){if(B.color=ee(B),B.label=ae(B),B.formattedValue=M(B.value),L==="horizontal")B.x=B.x0+Z,B.y=B.y0,B.width=Math.max(B.x1-B.x0-2*Z,0),B.height=Math.max(B.y1-B.y0,0);else{B.x=B.y0,B.y=B.x0+Z,B.width=Math.max(B.y1-B.y0,0),B.height=Math.max(B.x1-B.x0-2*Z,0);var ue=B.x0,le=B.x1;B.x0=B.y0,B.x1=B.y1,B.y0=ue,B.y1=le}}),ce.links.forEach(function(B){B.formattedValue=M(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}),ce}({data:t,formatValue:F,layout:r,alignFunction:R,sortFunction:C,linkSortMode:_,nodeThickness:c,nodeSpacing:u,nodeInnerPadding:d,width:a,height:i,getColor:O,getLabel:N})},[t,F,r,R,C,_,c,u,d,a,i,O,N]),I=j.nodes,T=j.links,w=$.useMemo(function(){return I.map(function(P){return{id:P.id,label:P.label,color:P.color}})},[I]);return{nodes:I,links:T,legendData:w,getNodeBorderColor:k,currentNode:v,setCurrentNode:x,currentLink:y,setCurrentLink:S,getLabelTextColor:z}},eq=function(e){var t=e.node,n=e.x,r=e.y,a=e.width,i=e.height,o=e.color,s=e.opacity,l=e.borderWidth,c=e.borderColor,u=e.borderRadius,d=e.setCurrent,h=e.isInteractive,m=e.onClick,p=e.tooltip,g=xa(),v=g.animate,x=g.config,b=mi({x:n,y:r,width:a,height:i,opacity:s,color:o,config:x,immediate:!v}),y=Px(),S=y.showTooltipFromEvent,C=y.hideTooltip,_=$.useCallback(function(k){d(t),S($.createElement(p,{node:t}),k,"left")},[d,t,S,p]),R=$.useCallback(function(k){S($.createElement(p,{node:t}),k,"left")},[S,t,p]),E=$.useCallback(function(){d(null),C()},[d,C]),O=$.useCallback(function(k){m==null||m(t,k)},[m,t]);return H.jsx(bi.rect,{x:b.x,y:b.y,rx:u,ry:u,width:b.width.to(function(k){return Math.max(k,0)}),height:b.height.to(function(k){return Math.max(k,0)}),fill:b.color,fillOpacity:b.opacity,strokeWidth:l,stroke:c,strokeOpacity:s,onMouseEnter:h?_:void 0,onMouseMove:h?R:void 0,onMouseLeave:h?E:void 0,onClick:h?O:void 0})},tq=function(e){var t=e.nodes,n=e.nodeOpacity,r=e.nodeHoverOpacity,a=e.nodeHoverOthersOpacity,i=e.borderWidth,o=e.getBorderColor,s=e.borderRadius,l=e.setCurrentNode,c=e.currentNode,u=e.currentLink,d=e.isCurrentNode,h=e.isInteractive,m=e.onClick,p=e.tooltip,g=function(v){return c||u?d(v)?r:a:n};return H.jsx(H.Fragment,{children:t.map(function(v){return H.jsx(eq,{node:v,x:v.x,y:v.y,width:v.width,height:v.height,color:v.color,opacity:g(v),borderWidth:i,borderColor:o(v),borderRadius:s,setCurrent:l,isInteractive:h,onClick:m,tooltip:p},v.id)})})},nq=function(e){var t=e.id,n=e.layout,r=e.startColor,a=e.endColor;return H.jsxs("linearGradient",ca({id:t,spreadMethod:"pad"},n==="horizontal"?{x1:"0%",x2:"100%",y1:"0%",y2:"0%"}:{x1:"0%",x2:"0%",y1:"0%",y2:"100%"},{children:[H.jsx("stop",{offset:"0%",stopColor:r}),H.jsx("stop",{offset:"100%",stopColor:a})]}))},rq=function(e){var t=e.link,n=e.layout,r=e.path,a=e.color,i=e.opacity,o=e.blendMode,s=e.enableGradient,l=e.setCurrent,c=e.tooltip,u=e.isInteractive,d=e.onClick,h=t.source.id+"."+t.target.id+"."+t.index,m=xa(),p=m.animate,g=m.config,v=yV(r),x=mi({color:a,opacity:i,config:g,immediate:!p}),b=Px(),y=b.showTooltipFromEvent,S=b.hideTooltip,C=$.useCallback(function(O){l(t),y($.createElement(c,{link:t}),O,"left")},[l,t,y,c]),_=$.useCallback(function(O){y($.createElement(c,{link:t}),O,"left")},[y,t,c]),R=$.useCallback(function(){l(null),S()},[l,S]),E=$.useCallback(function(O){d==null||d(t,O)},[d,t]);return H.jsxs(H.Fragment,{children:[s&&H.jsx(nq,{id:h,layout:n,startColor:t.startColor||t.source.color,endColor:t.endColor||t.target.color}),H.jsx(bi.path,{fill:s?'url("#'+encodeURI(h)+'")':x.color,d:v,fillOpacity:x.opacity,onMouseEnter:u?C:void 0,onMouseMove:u?_:void 0,onMouseLeave:u?R:void 0,onClick:u?E:void 0,style:{mixBlendMode:o}})]})},aq=function(e){var t=e.links,n=e.layout,r=e.linkOpacity,a=e.linkHoverOpacity,i=e.linkHoverOthersOpacity,o=e.linkContract,s=e.linkBlendMode,l=e.enableLinkGradient,c=e.setCurrentLink,u=e.currentLink,d=e.currentNode,h=e.isCurrentLink,m=e.isInteractive,p=e.onClick,g=e.tooltip,v=function(b){return d||u?h(b)?a:i:r},x=$.useMemo(function(){return n==="horizontal"?(b=Tm().curve(RC),function(y,S){var C=Math.max(1,y.thickness-2*S)/2,_=.12*(y.target.x0-y.source.x1),R=[[y.source.x1,y.pos0-C],[y.source.x1+_,y.pos0-C],[y.target.x0-_,y.pos1-C],[y.target.x0,y.pos1-C],[y.target.x0,y.pos1+C],[y.target.x0-_,y.pos1+C],[y.source.x1+_,y.pos0+C],[y.source.x1,y.pos0+C],[y.source.x1,y.pos0-C]];return b(R)+"Z"}):function(){var y=Tm().curve(PC);return function(S,C){var _=Math.max(1,S.thickness-2*C)/2,R=.12*(S.target.y0-S.source.y1),E=[[S.pos0+_,S.source.y1],[S.pos0+_,S.source.y1+R],[S.pos1+_,S.target.y0-R],[S.pos1+_,S.target.y0],[S.pos1-_,S.target.y0],[S.pos1-_,S.target.y0-R],[S.pos0-_,S.source.y1+R],[S.pos0-_,S.source.y1],[S.pos0+_,S.source.y1]];return y(E)+"Z"}}();var b},[n]);return H.jsx(H.Fragment,{children:t.map(function(b){return H.jsx(rq,{link:b,layout:n,path:x(b,o),color:b.color,opacity:v(b),blendMode:s,enableGradient:l,setCurrent:c,isInteractive:m,onClick:p,tooltip:g},b.source.id+"."+b.target.id+"."+b.index)})})},iq=function(e){var t=e.nodes,n=e.layout,r=e.width,a=e.height,i=e.labelPosition,o=e.labelPadding,s=e.labelOrientation,l=e.getLabelTextColor,c=sr(),u=s==="vertical"?-90:0,d=t.map(function(v){var x,b,y;return n==="horizontal"?(b=v.y+v.height/2,v.x<r/2?i==="inside"?(x=v.x1+o,y=s==="vertical"?"middle":"start"):(x=v.x-o,y=s==="vertical"?"middle":"end"):i==="inside"?(x=v.x-o,y=s==="vertical"?"middle":"end"):(x=v.x1+o,y=s==="vertical"?"middle":"start")):n==="vertical"&&(x=v.x+v.width/2,v.y<a/2?i==="inside"?(b=v.y1+o,y=s==="vertical"?"end":"middle"):(b=v.y-o,y=s==="vertical"?"start":"middle"):i==="inside"?(b=v.y-o,y=s==="vertical"?"start":"middle"):(b=v.y1+o,y=s==="vertical"?"end":"middle")),{id:v.id,label:v.label,x,y:b,textAnchor:y,color:l(v)}}),h=xa(),m=h.animate,p=h.config,g=_x(d.length,d.map(function(v){return{transform:"translate("+v.x+", "+v.y+") rotate("+u+")",color:v.color,config:p,immediate:!m}}));return H.jsx(H.Fragment,{children:g.map(function(v,x){var b=d[x];return H.jsx(bi.text,{dominantBaseline:"central",textAnchor:b.textAnchor,transform:v.transform,style:ca({},c.labels.text,{fill:v.color,pointerEvents:"none"}),children:b.label},b.id)})})},oq=["isInteractive","animate","motionConfig","theme","renderWrapper"],sq=function(e){var t=e.data,n=e.valueFormat,r=e.layout,a=r===void 0?ht.layout:r,i=e.sort,o=i===void 0?ht.sort:i,s=e.align,l=s===void 0?ht.align:s,c=e.width,u=e.height,d=e.margin,h=e.colors,m=h===void 0?ht.colors:h,p=e.nodeThickness,g=p===void 0?ht.nodeThickness:p,v=e.nodeSpacing,x=v===void 0?ht.nodeThickness:v,b=e.nodeInnerPadding,y=b===void 0?ht.nodeInnerPadding:b,S=e.nodeBorderColor,C=S===void 0?ht.nodeBorderColor:S,_=e.nodeOpacity,R=_===void 0?ht.nodeOpacity:_,E=e.nodeHoverOpacity,O=E===void 0?ht.nodeHoverOpacity:E,k=e.nodeHoverOthersOpacity,N=k===void 0?ht.nodeHoverOthersOpacity:k,z=e.nodeBorderWidth,F=z===void 0?ht.nodeBorderWidth:z,j=e.nodeBorderRadius,I=j===void 0?ht.nodeBorderRadius:j,T=e.linkOpacity,w=T===void 0?ht.linkOpacity:T,P=e.linkHoverOpacity,A=P===void 0?ht.linkHoverOpacity:P,M=e.linkHoverOthersOpacity,L=M===void 0?ht.linkHoverOthersOpacity:M,K=e.linkContract,W=K===void 0?ht.linkContract:K,q=e.linkBlendMode,X=q===void 0?ht.linkBlendMode:q,Q=e.enableLinkGradient,Z=Q===void 0?ht.enableLinkGradient:Q,J=e.enableLabels,G=J===void 0?ht.enableLabels:J,ee=e.labelPosition,ae=ee===void 0?ht.labelPosition:ee,V=e.labelPadding,ce=V===void 0?ht.labelPadding:V,B=e.labelOrientation,ue=B===void 0?ht.labelOrientation:B,le=e.label,be=le===void 0?ht.label:le,xe=e.labelTextColor,fe=xe===void 0?ht.labelTextColor:xe,ge=e.nodeTooltip,we=ge===void 0?ht.nodeTooltip:ge,Me=e.linkTooltip,ve=Me===void 0?ht.linkTooltip:Me,de=e.isInteractive,Ce=de===void 0?ht.isInteractive:de,Se=e.onClick,st=e.legends,nt=st===void 0?ht.legends:st,Fe=e.layers,We=Fe===void 0?ht.layers:Fe,et=e.role,rt=et===void 0?ht.role:et,De=e.ariaLabel,Ie=e.ariaLabelledBy,mt=e.ariaDescribedBy,Ye=$V(c,u,d),ze=Ye.margin,me=Ye.innerWidth,$e=Ye.innerHeight,Je=Ye.outerWidth,lt=Ye.outerHeight,pt=JU({data:t,valueFormat:n,layout:a,width:me,height:$e,sort:o,align:l,colors:m,nodeThickness:g,nodeSpacing:x,nodeInnerPadding:y,nodeBorderColor:C,label:be,labelTextColor:fe}),gt=pt.nodes,Ue=pt.links,qe=pt.legendData,He=pt.getNodeBorderColor,Ee=pt.currentNode,_e=pt.setCurrentNode,Be=pt.currentLink,Tt=pt.setCurrentLink,Qe=pt.getLabelTextColor,Ge=function(){return!1},dt=function(){return!1};if(Be&&(Ge=function(at){var D=at.id;return D===Be.source.id||D===Be.target.id},dt=function(at){var D=at.source,te=at.target;return D.id===Be.source.id&&te.id===Be.target.id}),Ee){var Ct=[Ee.id];Ue.filter(function(at){var D=at.source,te=at.target;return D.id===Ee.id||te.id===Ee.id}).forEach(function(at){var D=at.source,te=at.target;Ct.push(D.id),Ct.push(te.id)}),Ct=O9(Ct),Ge=function(at){var D=at.id;return Ct.includes(D)},dt=function(at){var D=at.source,te=at.target;return D.id===Ee.id||te.id===Ee.id}}var Dt={links:Ue,nodes:gt,margin:ze,width:c,height:u,outerWidth:Je,outerHeight:lt},jt={links:null,nodes:null,labels:null,legends:null};return We.includes("links")&&(jt.links=H.jsx(aq,{links:Ue,layout:a,linkContract:W,linkOpacity:w,linkHoverOpacity:A,linkHoverOthersOpacity:L,linkBlendMode:X,enableLinkGradient:Z,setCurrentLink:Tt,currentNode:Ee,currentLink:Be,isCurrentLink:dt,isInteractive:Ce,onClick:Se,tooltip:ve},"links")),We.includes("nodes")&&(jt.nodes=H.jsx(tq,{nodes:gt,nodeOpacity:R,nodeHoverOpacity:O,nodeHoverOthersOpacity:N,borderWidth:F,borderRadius:I,getBorderColor:He,setCurrentNode:_e,currentNode:Ee,currentLink:Be,isCurrentNode:Ge,isInteractive:Ce,onClick:Se,tooltip:we},"nodes")),We.includes("labels")&&G&&(jt.labels=H.jsx(iq,{nodes:gt,layout:a,width:me,height:$e,labelPosition:ae,labelPadding:ce,labelOrientation:ue,getLabelTextColor:Qe},"labels")),We.includes("legends")&&(jt.legends=H.jsx($.Fragment,{children:nt.map(function(at,D){return H.jsx(cH,ca({},at,{containerWidth:me,containerHeight:$e,data:qe}),"legend"+D)})},"legends")),H.jsx(iS,{width:Je,height:lt,margin:ze,role:rt,ariaLabel:De,ariaLabelledBy:Ie,ariaDescribedBy:mt,children:We.map(function(at,D){var te;return typeof at=="function"?H.jsx($.Fragment,{children:$.createElement(at,Dt)},D):(te=jt==null?void 0:jt[at])!=null?te:null})})},lq=function(e){var t=e.isInteractive,n=t===void 0?ht.isInteractive:t,r=e.animate,a=r===void 0?ht.animate:r,i=e.motionConfig,o=i===void 0?ht.motionConfig:i,s=e.theme,l=e.renderWrapper,c=function(u,d){if(u==null)return{};var h,m,p={},g=Object.keys(u);for(m=0;m<g.length;m++)h=g[m],d.indexOf(h)>=0||(p[h]=u[h]);return p}(e,oq);return H.jsx(tS,{animate:a,isInteractive:n,motionConfig:o,renderWrapper:l,theme:s,children:H.jsx(sq,ca({isInteractive:n},c))})},cq=function(e){return H.jsx(nS,{children:function(t){var n=t.width,r=t.height;return H.jsx(lq,ca({width:n,height:r},e))}})};const uq={background:"white",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},x0=({style:e=uq,label:t,amount:n,unit:r="kg"})=>H.jsxs(H.Fragment,{children:[H.jsx(Rn,{}),H.jsxs("div",{style:e,children:[t,": ",n," ",r]})]}),dq=({sankeyData:e})=>H.jsxs(H.Fragment,{children:[H.jsx(Rn,{}),H.jsx("div",{style:{width:"100%",height:600},children:H.jsx(cq,{data:e,margin:{top:20,right:120,bottom:20,left:120},nodeTooltip:({node:{id:t,value:n,unit:r}})=>H.jsx(x0,{label:t,amount:n,unit:r}),linkTooltip:({link:t})=>H.jsx(x0,{label:H.jsxs(H.Fragment,{children:[H.jsx("b",{children:t.source.label}),H.jsx("span",{children:" > "}),H.jsx("b",{children:t.target.label})]}),amount:t.value,unit:t.unit})})})]});exports.AddressLink=rR;exports.ButtonControls=jT;exports.Description=lR;exports.DownloadButton=$1;exports.EmailLink=nR;exports.ExpandButton=E1;exports.GFButton=fh;exports.GFCard=Go;exports.GFMetricsGrid=cR;exports.Link=Bl;exports.LocationIcon=j1;exports.MailIcon=A1;exports.Metrics=I1;exports.NavCard=DT;exports.PhoneIcon=N1;exports.PhoneLink=aR;exports.QuickNavCard=qT;exports.Sankey=dq;exports.TabCard=GT;exports.Title=P1;
|
|
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;
|
|
459
499
|
//# sourceMappingURL=index.cjs.js.map
|