gf-components 0.1.13 → 0.1.14
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 +52 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1908 -1855
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/button/DownloadButton.d.ts +3 -0
- package/dist/src/components/button/ExpandButton.d.ts +7 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/tabCard/TabCard.d.ts +18 -0
- package/dist/src/components/tabCard/index.d.ts +1 -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"),bt=require("styled-components"),Pn=require("react-dom");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),bt=require("styled-components"),Pn=require("react-dom");function Ou(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=Ou(_),Fv=Ou(Pn);function Ru(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fi={exports:{}},Qn={};/**
|
|
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 _l;function Lv(){if(_l)return Qn;_l=1;var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var d,f={},v=null,b=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:v,ref:b,props:f,_owner:a.current}}return Qn.Fragment=r,Qn.jsx=i,Qn.jsxs=i,Qn}var Jn={};/**
|
|
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
|
-
`+J+P}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(P,G){if(!P||ae)return"";{var X=fe.get(P);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
17
|
+
*/var Pl;function Dv(){return Pl||(Pl=1,process.env.NODE_ENV!=="production"&&function(){var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function g(P){if(P===null||typeof P!="object")return null;var G=h&&P[h]||P[p];return typeof G=="function"?G:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(P){{for(var G=arguments.length,X=new Array(G>1?G-1:0),ie=1;ie<G;ie++)X[ie-1]=arguments[ie];y("error",P,X)}}function y(P,G,X){{var ie=C.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(G+="%s",X=X.concat([Pe]));var Re=X.map(function(Te){return String(Te)});Re.unshift("Warning: "+G),Function.prototype.apply.call(console[P],console,Re)}}var x=!1,S=!1,E=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function N(P){return!!(typeof P=="string"||typeof P=="function"||P===n||P===o||w||P===a||P===u||P===d||R||P===b||x||S||E||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===f||P.$$typeof===i||P.$$typeof===s||P.$$typeof===l||P.$$typeof===$||P.getModuleId!==void 0))}function F(P,G,X){var ie=P.displayName;if(ie)return ie;var Pe=G.displayName||G.name||"";return Pe!==""?X+"("+Pe+")":X}function j(P){return P.displayName||"Context"}function A(P){if(P==null)return null;if(typeof P.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case s:var G=P;return j(G)+".Consumer";case i:var X=P;return j(X._context)+".Provider";case l:return F(P,P.render,"ForwardRef");case f:var ie=P.displayName||null;return ie!==null?ie:A(P.type)||"Memo";case v:{var Pe=P,Re=Pe._payload,Te=Pe._init;try{return A(Te(Re))}catch{return null}}}return null}var M=Object.assign,H=0,T,O,I,D,V,k,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){T=console.log,O=console.info,I=console.warn,D=console.error,V=console.group,k=console.groupCollapsed,K=console.groupEnd;var P={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}H++}}function Y(){{if(H--,H===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},P,{value:T}),info:M({},P,{value:O}),warn:M({},P,{value:I}),error:M({},P,{value:D}),group:M({},P,{value:V}),groupCollapsed:M({},P,{value:k}),groupEnd:M({},P,{value:K})})}H<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=C.ReactCurrentDispatcher,J;function te(P,G,X){{if(J===void 0)try{throw Error()}catch(Pe){var ie=Pe.stack.trim().match(/\n( *(at )?)/);J=ie&&ie[1]||""}return`
|
|
18
|
+
`+J+P}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(P,G){if(!P||ae)return"";{var X=fe.get(P);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Re;Re=Q.current,Q.current=null,q();try{if(G){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(mt){ie=mt}Reflect.construct(P,[],Te)}else{try{Te.call()}catch(mt){ie=mt}P.call(Te.prototype)}}else{try{throw Error()}catch(mt){ie=mt}P()}}catch(mt){if(mt&&ie&&typeof mt.stack=="string"){for(var Me=mt.stack.split(`
|
|
19
19
|
`),gt=ie.stack.split(`
|
|
20
20
|
`),tt=Me.length-1,Ve=gt.length-1;tt>=1&&Ve>=0&&Me[tt]!==gt[Ve];)Ve--;for(;tt>=1&&Ve>=0;tt--,Ve--)if(Me[tt]!==gt[Ve]){if(tt!==1||Ve!==1)do if(tt--,Ve--,Ve<0||Me[tt]!==gt[Ve]){var wt=`
|
|
21
|
-
`+Me[tt].replace(" at new "," at ");return P.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",P.displayName)),typeof P=="function"&&fe.set(P,wt),wt}while(tt>=1&&Ve>=0);break}}}finally{ae=!1,Q.current
|
|
21
|
+
`+Me[tt].replace(" at new "," at ");return P.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",P.displayName)),typeof P=="function"&&fe.set(P,wt),wt}while(tt>=1&&Ve>=0);break}}}finally{ae=!1,Q.current=Re,Y(),Error.prepareStackTrace=Pe}var Gt=P?P.displayName||P.name:"",Bt=Gt?te(Gt):"";return typeof P=="function"&&fe.set(P,Bt),Bt}function Oe(P,G,X){return ve(P,!1)}function B(P){var G=P.prototype;return!!(G&&G.isReactComponent)}function ce(P,G,X){if(P==null)return"";if(typeof P=="function")return ve(P,B(P));if(typeof P=="string")return te(P);switch(P){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case l:return Oe(P.render);case f:return ce(P.type,G,X);case v:{var ie=P,Pe=ie._payload,Re=ie._init;try{return ce(Re(Pe),G,X)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,xe={},he=C.ReactDebugCurrentFrame;function ne(P){if(P){var G=P._owner,X=ce(P.type,P._source,G?G.type:null);he.setExtraStackFrame(X)}else he.setExtraStackFrame(null)}function ge(P,G,X,ie,Pe){{var Re=Function.call.bind(se);for(var Te in P)if(Re(P,Te)){var Me=void 0;try{if(typeof P[Te]!="function"){var gt=Error((ie||"React class")+": "+X+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw gt.name="Invariant Violation",gt}Me=P[Te](G,Te,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(tt){Me=tt}Me&&!(Me instanceof Error)&&(ne(Pe),m("%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).",ie||"React class",X,Te,typeof Me),ne(null)),Me instanceof Error&&!(Me.message in xe)&&(xe[Me.message]=!0,ne(Pe),m("Failed %s type: %s",X,Me.message),ne(null))}}}var $e=Array.isArray;function Ae(P){return $e(P)}function oe(P){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&P[Symbol.toStringTag]||P.constructor.name||"Object";return X}}function re(P){try{return pe(P),!1}catch{return!0}}function pe(P){return""+P}function be(P){if(re(P))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(P)),pe(P)}var rt=C.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},je,Ke,Ye;Ye={};function Je(P){if(se.call(P,"ref")){var G=Object.getOwnPropertyDescriptor(P,"ref").get;if(G&&G.isReactWarning)return!1}return P.ref!==void 0}function Le(P){if(se.call(P,"key")){var G=Object.getOwnPropertyDescriptor(P,"key").get;if(G&&G.isReactWarning)return!1}return P.key!==void 0}function Ne(P,G){if(typeof P.ref=="string"&&rt.current&&G&&rt.current.stateNode!==G){var X=A(rt.current.type);Ye[X]||(m('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',A(rt.current.type),P.ref),Ye[X]=!0)}}function st(P,G){{var X=function(){je||(je=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(P,"key",{get:X,configurable:!0})}}function Ze(P,G){{var X=function(){Ke||(Ke=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(P,"ref",{get:X,configurable:!0})}}var De=function(P,G,X,ie,Pe,Re,Te){var Me={$$typeof:t,type:P,key:G,ref:X,props:Te,_owner:Re};return Me._store={},Object.defineProperty(Me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Me.props),Object.freeze(Me)),Me};function ue(P,G,X,ie,Pe){{var Re,Te={},Me=null,gt=null;X!==void 0&&(be(X),Me=""+X),Le(G)&&(be(G.key),Me=""+G.key),Je(G)&&(gt=G.ref,Ne(G,Pe));for(Re in G)se.call(G,Re)&&!Xe.hasOwnProperty(Re)&&(Te[Re]=G[Re]);if(P&&P.defaultProps){var tt=P.defaultProps;for(Re in tt)Te[Re]===void 0&&(Te[Re]=tt[Re])}if(Me||gt){var Ve=typeof P=="function"?P.displayName||P.name||"Unknown":P;Me&&st(Te,Ve),gt&&Ze(Te,Ve)}return De(P,Me,gt,Pe,ie,rt.current,Te)}}var Ee=C.ReactCurrentOwner,qe=C.ReactDebugCurrentFrame;function nt(P){if(P){var G=P._owner,X=ce(P.type,P._source,G?G.type:null);qe.setExtraStackFrame(X)}else qe.setExtraStackFrame(null)}var Ct;Ct=!1;function dt(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function ke(){{if(Ee.current){var P=A(Ee.current.type);if(P)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+P+"`."}return""}}function Be(P){return""}var ze={};function _e(P){{var G=ke();if(!G){var X=typeof P=="string"?P:P.displayName||P.name;X&&(G=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+X+">.")}return G}}function
|
|
25
|
+
Check the top-level render call using <`+X+">.")}return G}}function ye(P,G){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var X=_e(G);if(ze[X])return;ze[X]=!0;var ie="";P&&P._owner&&P._owner!==Ee.current&&(ie=" It was passed a child from "+A(P._owner.type)+"."),nt(P),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,ie),nt(null)}}function Ue(P,G){{if(typeof P!="object")return;if(Ae(P))for(var X=0;X<P.length;X++){var ie=P[X];dt(ie)&&ye(ie,G)}else if(dt(P))P._store&&(P._store.validated=!0);else if(P){var Pe=g(P);if(typeof Pe=="function"&&Pe!==P.entries)for(var Re=Pe.call(P),Te;!(Te=Re.next()).done;)dt(Te.value)&&ye(Te.value,G)}}}function ht(P){{var G=P.type;if(G==null||typeof G=="string")return;var X;if(typeof G=="function")X=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===l||G.$$typeof===f))X=G.propTypes;else return;if(X){var ie=A(G);ge(X,P.props,"prop",ie,P)}else if(G.PropTypes!==void 0&&!Ct){Ct=!0;var Pe=A(G);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(P){{for(var G=Object.keys(P.props),X=0;X<G.length;X++){var ie=G[X];if(ie!=="children"&&ie!=="key"){nt(P),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),nt(null);break}}P.ref!==null&&(nt(P),m("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}}var We={};function lt(P,G,X,ie,Pe,Re){{var Te=N(P);if(!Te){var Me="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(Me+=" 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 gt=Be();gt?Me+=gt:Me+=ke();var tt;P===null?tt="null":Ae(P)?tt="array":P!==void 0&&P.$$typeof===t?(tt="<"+(A(P.type)||"Unknown")+" />",Me=" Did you accidentally export a JSX literal instead of a component?"):tt=typeof P,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tt,Me)}var Ve=ue(P,G,X,Pe,Re);if(Ve==null)return Ve;if(Te){var wt=G.children;if(wt!==void 0)if(ie)if(Ae(wt)){for(var Gt=0;Gt<wt.length;Gt++)Ue(wt[Gt],P);Object.freeze&&Object.freeze(wt)}else m("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 Ue(wt,P)}if(se.call(G,"key")){var Bt=A(P),mt=Object.keys(G).filter(function(Ut){return Ut!=="key"}),Cr=mt.length>0?"{key: someKey, "+mt.join(": ..., ")+": ...}":"{key: someKey}";if(!We[Bt+Cr]){var Vr=mt.length>0?"{"+mt.join(": ..., ")+": ...}":"{}";m(`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} />`,Cr,
|
|
30
|
+
<%s key={someKey} {...props} />`,Cr,Bt,Vr,Bt),We[Bt+Cr]=!0}}return P===n?He(Ve):ht(Ve),Ve}}function yt(P,G,X){return lt(P,G,X,!0)}function _t(P,G,X){return lt(P,G,X,!1)}var Vt=_t,Wt=yt;Jn.Fragment=n,Jn.jsx=Vt,Jn.jsxs=Wt}()),Jn}process.env.NODE_ENV==="production"?Fi.exports=Lv():Fi.exports=Dv();var me=Fi.exports;const on=bt.createGlobalStyle`
|
|
31
31
|
:root {
|
|
32
32
|
/* colors */
|
|
33
33
|
--gf-color-bg-base: #FFFFFF;
|
|
@@ -78,11 +78,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
78
78
|
.gf-full-width {
|
|
79
79
|
width: 100%;
|
|
80
80
|
}
|
|
81
|
-
`;var
|
|
81
|
+
`;var _u={exports:{}};/*!
|
|
82
82
|
Copyright (c) 2018 Jed Watson.
|
|
83
83
|
Licensed under the MIT License (MIT), see
|
|
84
84
|
http://jedwatson.github.io/classnames
|
|
85
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(
|
|
85
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(_u);var zv=_u.exports;const Z=Ru(zv);function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},we.apply(null,arguments)}var Li={exports:{}},ct={};/**
|
|
86
86
|
* @license React
|
|
87
87
|
* react-is.production.min.js
|
|
88
88
|
*
|
|
@@ -90,7 +90,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license found in the
|
|
92
92
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var
|
|
93
|
+
*/var Tl;function Vv(){if(Tl)return ct;Tl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var C=g.$$typeof;switch(C){case e:switch(g=g.type,g){case r:case a:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case v:case f:case o:return g;default:return C}}case t:return C}}}return ct.ContextConsumer=i,ct.ContextProvider=o,ct.Element=e,ct.ForwardRef=l,ct.Fragment=r,ct.Lazy=v,ct.Memo=f,ct.Portal=t,ct.Profiler=a,ct.StrictMode=n,ct.Suspense=u,ct.SuspenseList=d,ct.isAsyncMode=function(){return!1},ct.isConcurrentMode=function(){return!1},ct.isContextConsumer=function(g){return p(g)===i},ct.isContextProvider=function(g){return p(g)===o},ct.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ct.isForwardRef=function(g){return p(g)===l},ct.isFragment=function(g){return p(g)===r},ct.isLazy=function(g){return p(g)===v},ct.isMemo=function(g){return p(g)===f},ct.isPortal=function(g){return p(g)===t},ct.isProfiler=function(g){return p(g)===a},ct.isStrictMode=function(g){return p(g)===n},ct.isSuspense=function(g){return p(g)===u},ct.isSuspenseList=function(g){return p(g)===d},ct.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===o||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},ct.typeOf=p,ct}var ut={};/**
|
|
94
94
|
* @license React
|
|
95
95
|
* react-is.development.js
|
|
96
96
|
*
|
|
@@ -98,18 +98,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the MIT license found in the
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var Tl;function Lv(){return Tl||(Tl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,C=!1,m=!1,y;y=Symbol.for("react.module.reference");function x(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||C||B===b||h||p||g||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function S(B){if(typeof B=="object"&&B!==null){var ce=B.$$typeof;switch(ce){case e:var se=B.type;switch(se){case r:case a:case n:case u:case d:return se;default:var Se=se&&se.$$typeof;switch(Se){case s:case i:case l:case v:case f:case o:return Se;default:return ce}}case t:return ce}}}var E=i,R=o,w=e,$=l,N=r,F=v,j=f,A=t,M=a,H=n,T=u,O=d,I=!1,D=!1;function V(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return S(B)===i}function W(B){return S(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return S(B)===l}function Q(B){return S(B)===r}function J(B){return S(B)===v}function te(B){return S(B)===f}function ae(B){return S(B)===t}function fe(B){return S(B)===a}function de(B){return S(B)===n}function ve(B){return S(B)===u}function we(B){return S(B)===d}ut.ContextConsumer=E,ut.ContextProvider=R,ut.Element=w,ut.ForwardRef=$,ut.Fragment=N,ut.Lazy=F,ut.Memo=j,ut.Portal=A,ut.Profiler=M,ut.StrictMode=H,ut.Suspense=T,ut.SuspenseList=O,ut.isAsyncMode=V,ut.isConcurrentMode=k,ut.isContextConsumer=K,ut.isContextProvider=W,ut.isElement=q,ut.isForwardRef=Y,ut.isFragment=Q,ut.isLazy=J,ut.isMemo=te,ut.isPortal=ae,ut.isProfiler=fe,ut.isStrictMode=de,ut.isSuspense=ve,ut.isSuspenseList=we,ut.isValidElementType=x,ut.typeOf=S}()),ut}process.env.NODE_ENV==="production"?Li.exports=Fv():Li.exports=Lv();var la=Li.exports;function Or(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return _.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Or(n)):la.isFragment(n)&&n.props?r=r.concat(Or(n.props.children,t)):r.push(n))}),r}var Di={},Gs=[],Dv=function(t){Gs.push(t)};function Tn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function zv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function _u(){Di={}}function Pu(e,t,r){!t&&!Di[r]&&(e(!1,r),Di[r]=!0)}function ot(e,t){Pu(Tn,e,t)}function Vv(e,t){Pu(zv,e,t)}ot.preMessage=Dv;ot.resetWarned=_u;ot.noteOnce=Vv;function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}function Bv(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tu(e){var t=Bv(e,"string");return Ie(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Tu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function kv(e){return e&&Ie(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function oo(e){var t=kv(e);if(t)return t;if(e instanceof _.Component){var r;return(r=Pn.findDOMNode)===null||r===void 0?void 0:r.call(Pn,e)}return null}function Io(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Us=function(t,r){typeof t=="function"?t(r):Ie(t)==="object"&&t&&"current"in t&&(t.current=r)},Rr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Us(i,o)})}},Pa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(function(){return Rr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},sn=function(t){var r,n,a=la.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==la.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==la.ForwardRef)};function Il(e){return _.isValidElement(e)&&!la.isFragment(e)}Number(_.version.split(".")[0])>=19;var zi=c.createContext(null);function Hv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(zi),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(zi.Provider,{value:i},t)}var Nu=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),Vi=typeof window<"u"&&typeof document<"u"&&window.document===document,ho=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")()}(),Wv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ho):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Gv=2;function Uv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){Wv(o)}function s(){var l=Date.now();if(r){if(l-a<Gv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var Kv=20,qv=["top","right","bottom","left","width","height","size","weight"],Xv=typeof MutationObserver<"u",Yv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Uv(this.refresh.bind(this),Kv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Vi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xv?(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(){!Vi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=qv.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Iu=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ho},Mu=Mo(0,0,0,0);function bo(e){return parseFloat(e)||0}function Ml(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+bo(o)},0)}function Zv(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=bo(i)}return r}function Qv(e){var t=e.getBBox();return Mo(0,0,t.width,t.height)}function Jv(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Mu;var n=Nn(e).getComputedStyle(e),a=Zv(n),o=a.left+a.right,i=a.top+a.bottom,s=bo(n.width),l=bo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Ml(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Ml(n,"top","bottom")+i)),!tg(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Mo(a.left,a.top,s,l)}var eg=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nn(e).SVGGraphicsElement}:function(e){return e instanceof Nn(e).SVGElement&&typeof e.getBBox=="function"}}();function tg(e){return e===Nn(e).document.documentElement}function rg(e){return Vi?eg(e)?Qv(e):Jv(e):Mu}function ng(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Iu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Mo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ag=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=rg(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}(),og=function(){function e(t,r){var n=ng(r);Iu(this,{target:t,contentRect:n})}return e}(),ig=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Nu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ag(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 Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new og(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Au=typeof WeakMap<"u"?new WeakMap:new Nu,ju=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Yv.getInstance(),n=new ig(t,r,this);Au.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ju.prototype[e]=function(){var t;return(t=Au.get(this))[e].apply(t,arguments)}});var sg=function(){return typeof ho.ResizeObserver<"u"?ho.ResizeObserver:ju}(),Ar=new Map;function Fu(e){e.forEach(function(t){var r,n=t.target;(r=Ar.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Lu=new sg(Fu);process.env.NODE_ENV;process.env.NODE_ENV;function lg(e,t){Ar.has(e)||(Ar.set(e,new Set),Lu.observe(e)),Ar.get(e).add(t)}function cg(e,t){Ar.has(e)&&(Ar.get(e).delete(t),Ar.get(e).size||(Lu.unobserve(e),Ar.delete(e)))}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Al(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tu(n.key),n)}}function Lt(e,t,r){return t&&Al(e.prototype,t),r&&Al(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ga(e,t)}function Xr(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&&ga(e,t)}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ma(e)}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ks=function(){return!!e})()}function Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ug(e,t){if(t&&(Ie(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Yr(e){var t=Ks();return function(){var r,n=ma(e);if(t){var a=ma(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ug(this,r)}}var dg=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function fg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(zi),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&sn(l),f=d?l.ref:null,v=Pa(f,a),b=function(){var C;return oo(a.current)||(a.current&&Ie(a.current)==="object"?oo((C=a.current)===null||C===void 0?void 0:C.nativeElement):null)||oo(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var C=h.current,m=C.onResize,y=C.data,x=g.getBoundingClientRect(),S=x.width,E=x.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(S),N=Math.floor(E);if(u.current.width!==$||u.current.height!==N||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:N,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(S)?S:R,A=w===Math.round(E)?E:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,g,y),m&&Promise.resolve().then(function(){m(M,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&lg(g,p),function(){return cg(g,p)}},[a.current,n]),c.createElement(dg,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Du=c.forwardRef(fg);process.env.NODE_ENV!=="production"&&(Du.displayName="SingleObserver");var vg="rc-observer-key";function gg(e,t){var r=e.children,n=typeof r=="function"?[r]:Or(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Tn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Tn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(vg,"-").concat(o);return c.createElement(Du,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var gr=c.forwardRef(gg);process.env.NODE_ENV!=="production"&&(gr.displayName="ResizeObserver");gr.Collection=Hv;function br(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Bi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mg(e){if(Array.isArray(e))return Bi(e)}function zu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qs(e,t){if(e){if(typeof e=="string")return Bi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bi(e,t):void 0}}function pg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
102
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
103
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Hu(e)||hg(e,t)||qs(e,t)||Wu()}function pa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function qt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Fl="data-rc-order",Ll="data-rc-priority",yg="rc-util-key",ki=new Map;function Gu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):yg}function jo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Cg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xs(e){return Array.from((ki.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Cg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Fl,i),s&&o&&l.setAttribute(Ll,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=jo(t),d=u.firstChild;if(n){if(s){var f=(t.styles||Xs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Fl)))return!1;var b=Number(v.getAttribute(Ll)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function Ku(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jo(t);return(t.styles||Xs(r)).find(function(n){return n.getAttribute(Gu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ku(e,t);if(r){var n=jo(t);n.removeChild(r)}}function Sg(e,t){var r=ki.get(e);if(!r||!bg(document,r)){var n=Uu("",t),a=n.parentNode;ki.set(e,a),e.removeChild(n)}}function jr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=jo(r),a=Xs(n),o=z(z({},r),{},{styles:a});Sg(n,o);var i=Ku(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Uu(e,o);return d.setAttribute(Gu(o),t),d}function xg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function et(e,t){if(e==null)return{};var r,n,a=xg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ba(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(ot(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Ie(o)==="object"&&Ie(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var Eg="%";function Hi(e){return e.join(Eg)}var wg=function(){function e(t){Ft(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Lt(e,[{key:"get",value:function(r){return this.opGet(Hi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Hi(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),In="data-token-hash",mr="data-css-hash",$g="data-cache-path",Ur="__cssinjs_instance__";function Og(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(mr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Ur]=a[Ur]||e,a[Ur]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(mr,"]"))).forEach(function(a){var o=a.getAttribute(mr);if(n[o]){if(a[Ur]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new wg(e)}var Rg=c.createContext({hashPriority:"low",cache:Og(),defaultCache:!0});const Fo=Rg;function _g(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){Ft(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Lt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!_g(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Ys,"MAX_CACHE_SIZE",20);L(Ys,"MAX_CACHE_OFFSET",5);var Dl=0,qu=function(){function e(t){Ft(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Dl,t.length===0&&Tn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Dl+=1}return Lt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ni=new Ys;function Wi(e){var t=Array.isArray(e)?e:[e];return ni.has(t)||ni.set(t,new qu(t)),ni.get(t)}var Pg=new WeakMap,ai={};function Tg(e,t){for(var r=Pg,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ai)||r.set(ai,e()),r.get(ai)}var zl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=zl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof qu?r+=a.id:a&&Ie(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),zl.set(e,r)),r}function Vl(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Gi=qt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function yo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},In,t),mr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var io=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ng=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Xu=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=io(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,Ng(a,r,{scope:n==null?void 0:n.scope})]},Bl=process.env.NODE_ENV!=="test"&&qt()?c.useLayoutEffect:c.useEffect,St=function(t,r){var n=c.useRef(!0);Bl(function(){return t(n.current)},r),Bl(function(){return n.current=!1,function(){n.current=!0}},[])},Ui=function(t,r){St(function(n){if(!n)return t()},r)},Ig=z({},c),kl=Ig.useInsertionEffect,Mg=function(t,r,n){c.useMemo(t,n),St(function(){return r(!0)},n)},Ag=kl?function(e,t,r){return kl(function(){return e(),t()},r)}:Mg;const jg=Ag;var Fg=z({},c),Lg=Fg.useInsertionEffect,Dg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&Tn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},zg=function(){return function(t){t()}},Vg=typeof Lg<"u"?Dg:zg;const Bg=Vg;function kg(){return!1}var Ki=!1;function Hg(){return Ki}const Wg=process.env.NODE_ENV==="production"?kg:Hg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var oi=window;if(typeof oi.webpackHotUpdate=="function"){var Gg=oi.webpackHotUpdate;oi.webpackHotUpdate=function(){return Ki=!0,setTimeout(function(){Ki=!1},0),Gg.apply(void 0,arguments)}}}function Zs(e,t,r,n,a){var o=c.useContext(Fo),i=o.cache,s=[e].concat(ye(t)),l=Hi(s),u=Bg([l]),d=Wg(),f=function(p){i.opUpdate(l,function(g){var C=g||[void 0,void 0],m=U(C,2),y=m[0],x=y===void 0?0:y,S=m[1],E=S;process.env.NODE_ENV!=="production"&&S&&d&&(n==null||n(E,d),E=null);var R=E||r(),w=[x,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return jg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),C=g[0],m=g[1];return h&&C===0&&(a==null||a(b)),[C+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],C=U(g,2),m=C[0],y=m===void 0?0:m,x=C[1],S=y-1;return S===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(x,!1))}),null):[y-1,x]})}},[l]),b}var Ug={},Kg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function qg(e){tn.set(e,(tn.get(e)||0)+1)}function Xg(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(In,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ur]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Yg=0;function Zg(e,t){tn.set(e,(tn.get(e)||0)-1);var r=Array.from(tn.keys()),n=r.filter(function(a){var o=tn.get(a)||0;return o<=0});r.length-n.length>Yg&&n.forEach(function(a){Xg(a,t),tn.delete(a)})}var Qg=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},Yu="token";function Jg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_.useContext(Fo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Ug:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Tg(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ca(b),p=ca(u),g=v?ca(v):"",C=Zs(Yu,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):Qg(b,u,e,d),x=z({},y),S="";if(v){var E=Xu(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(E,2);y=R[0],S=R[1]}var w=Vl(y,s);y._tokenKey=w,x._tokenKey=Vl(x,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,qg($);var N="".concat(Kg,"-").concat(pa(w));return y._hashId=N,[y,N,x,S,(v==null?void 0:v.key)||""]},function(m){Zg(m[0]._themeKey,a)},function(m){var y=U(m,4),x=y[0],S=y[3];if(v&&S){var E=jr(S,pa("css-variables-".concat(x._themeKey)),{mark:mr,prepend:"queue",attachTo:o,priority:-999});E[Ur]=a,E.setAttribute(In,x._themeKey)}});return C}var em=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=yo(i,s,d,v,u);return[f,d,b]},tm={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},Zu="comm",Qu="rule",Ju="decl",rm="@import",nm="@keyframes",am="@layer",ed=Math.abs,Qs=String.fromCharCode;function td(e){return e.trim()}function so(e,t,r){return e.replace(t,r)}function om(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function Mn(e,t,r){return e.slice(t,r)}function wr(e){return e.length}function im(e){return e.length}function ka(e,t){return t.push(e),e}var Lo=1,An=1,rd=0,sr=0,Rt=0,zn="";function Js(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Lo,column:An,length:i,return:"",siblings:s}}function sm(){return Rt}function lm(){return Rt=sr>0?ya(zn,--sr):0,An--,Rt===10&&(An=1,Lo--),Rt}function pr(){return Rt=sr<rd?ya(zn,sr++):0,An++,Rt===10&&(An=1,Lo++),Rt}function Kr(){return ya(zn,sr)}function lo(){return sr}function Do(e,t){return Mn(zn,e,t)}function Ca(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 cm(e){return Lo=An=1,rd=wr(zn=e),sr=0,[]}function um(e){return zn="",e}function ii(e){return td(Do(sr-1,qi(e===91?e+2:e===40?e+1:e)))}function dm(e){for(;(Rt=Kr())&&Rt<33;)pr();return Ca(e)>2||Ca(Rt)>3?"":" "}function fm(e,t){for(;--t&&pr()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Do(e,lo()+(t<6&&Kr()==32&&pr()==32))}function qi(e){for(;pr();)switch(Rt){case e:return sr;case 34:case 39:e!==34&&e!==39&&qi(Rt);break;case 40:e===41&&qi(e);break;case 92:pr();break}return sr}function vm(e,t){for(;pr()&&e+Rt!==57;)if(e+Rt===84&&Kr()===47)break;return"/*"+Do(t,sr-1)+"*"+Qs(e===47?e:pr())}function gm(e){for(;!Ca(Kr());)pr();return Do(e,sr)}function mm(e){return um(co("",null,null,null,[""],e=cm(e),0,[0],e))}function co(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,g=1,C=1,m=0,y="",x=a,S=o,E=n,R=y;g;)switch(h=m,m=pr()){case 40:if(h!=108&&ya(R,f-1)==58){om(R+=so(ii(m),"&","&\f"),"&\f",ed(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:R+=ii(m);break;case 9:case 10:case 13:case 32:R+=dm(h);break;case 92:R+=fm(lo()-1,7);continue;case 47:switch(Kr()){case 42:case 47:ka(pm(vm(pr(),lo()),t,r,l),l),(Ca(h||1)==5||Ca(Kr()||1)==5)&&wr(R)&&Mn(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=wr(R)*C;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:C==-1&&(R=so(R,/\f/g,"")),b>0&&(wr(R)-f||p===0&&h===47)&&ka(b>32?Wl(R+";",n,r,f-1,l):Wl(so(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(ka(E=Hl(R,t,r,u,d,a,s,y,x=[],S=[],f,o),o),m===123)if(d===0)co(R,t,E,E,x,o,f,s,S);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:co(e,E,E,n&&ka(Hl(e,E,E,0,0,a,s,y,a,x=[],f,S),S),a,S,f,s,n?x:S);break;default:co(R,E,E,E,[""],S,0,s,S)}}u=d=b=0,p=C=1,y=R="",f=i;break;case 58:f=1+wr(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&lm()==125)continue}switch(R+=Qs(m),m*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(wr(R)-1)*C,C=1;break;case 64:Kr()===45&&(R+=ii(pr())),v=Kr(),d=f=wr(y=R+=gm(lo())),m++;break;case 45:h===45&&wr(R)==2&&(p=0)}}return o}function Hl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=im(b),p=0,g=0,C=0;p<n;++p)for(var m=0,y=Mn(e,v+1,v=ed(g=i[p])),x=e;m<h;++m)(x=td(g>0?b[m]+" "+y:so(y,/&\f/g,b[m])))&&(l[C++]=x);return Js(e,t,r,a===0?Qu:s,l,u,d,f)}function pm(e,t,r,n){return Js(e,t,r,Zu,Qs(sm()),Mn(e,2,-2),0,n)}function Wl(e,t,r,n,a){return Js(e,t,r,Ju,Mn(e,0,n),Mn(e,n+1,-1),n,a)}function Xi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function hm(e,t,r,n){switch(e.type){case am:if(e.children.length)break;case rm:case Ju:return e.return=e.return||e.value;case Zu:return"";case nm:return e.return=e.value+"{"+Xi(e.children,n)+"}";case Qu:if(!wr(e.value=e.props.join(",")))return""}return wr(r=Xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function nd(e,t){var r=t.path,n=t.parentSelectors;ot(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var bm=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&nd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},ym=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&nd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Gl="data-ant-cssinjs-cache-path",ad="_FILE_STYLE__",an,od=!0;function Cm(){if(!an&&(an={},qt())){var e=document.createElement("div");e.className=Gl,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];an[s]=l});var r=document.querySelector("style[".concat(Gl,"]"));if(r){var n;od=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Sm(e){return Cm(),!!an[e]}function xm(e){var t=an[e],r=null;if(t&&qt())if(od)r=ad;else{var n=document.querySelector("style[".concat(mr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var id="_skip_check_",sd="_multi_value_";function uo(e){var t=Xi(mm(e),hm);return t.replace(/\{%%%\:[^;];}/g,";")}function Em(e){return Ie(e)==="object"&&e&&(id in e||sd in e)}function Ul(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(ye(l.slice(1))).join(" ")});return o.join(",")}var wm=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",g={};function C(x){var S=x.getName(s);if(!g[S]){var E=e(x.style,r,{root:!1,parentSelectors:i}),R=U(E,1),w=R[0];g[S]="@keyframes ".concat(x.getName(s)).concat(w)}}function m(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?m(E,S):E&&S.push(E)}),S}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(x){var S=typeof x=="string"&&!a?{}:x;if(typeof S=="string")p+="".concat(S,`
|
|
104
|
-
`);else if(S._keyframe)C(S);else{var E=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},S);Object.keys(E).forEach(function(R){var w=E[R];if(Ie(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!
|
|
105
|
-
`))):p="{".concat(p,"}"),[p,g]};function ld(e,t){return pa("".concat(e.join("%")).concat(t))}function $m(){return null}var cd="style";function Yi(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(Fo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,C=d.transformers,m=d.linters,y=d.cache,x=d.layer,S=r._tokenKey,E=[S];x&&E.push("layer"),E.push.apply(E,ye(n));var R=Gi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Zs(cd,E,function(){var A=E.join("|");if(Sm(A)){var M=xm(A),H=U(M,2),T=H[0],O=H[1];if(T)return[T,S,O,{},s,u]}var I=t(),D=wm(I,{hashId:a,hashPriority:h,layer:x?o:void 0,path:n.join("-"),transformers:C,linters:m}),V=U(D,2),k=V[0],K=V[1],W=uo(k),q=ld(E,W);return[W,S,q,K,s,u]},function(A,M){var H=U(A,3),T=H[2];(M||f)&&Gi&&ha(T,{mark:mr})},function(A){var M=U(A,4),H=M[0];M[1];var T=M[2],O=M[3];if(R&&H!==ad){var I={mark:mr,prepend:x?!1:"queue",attachTo:p,priority:u},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var V=[],k=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):k.push(W)}),V.forEach(function(W){jr(uo(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=jr(H,T,I);K[Ur]=y.instanceId,K.setAttribute(In,S),process.env.NODE_ENV!=="production"&&K.setAttribute($g,E.join("|")),k.forEach(function(W){jr(uo(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),N=$[0],F=$[1],j=$[2];return function(A){var M;return!g||R||!b?M=c.createElement($m,null):M=c.createElement("style",Oe({},L(L({},In,F),mr,j),{dangerouslySetInnerHTML:{__html:N}})),c.createElement(c.Fragment,null,M,A)}}var Om=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=yo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=uo(l[p]),C=yo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=C+b:b+=C}}),[d,s,b]},ud="cssVar",Rm=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=_.useContext(Fo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,u,b]),p=Zs(ud,h,function(){var g=r(),C=Xu(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(C,2),y=m[0],x=m[1],S=ld(h,x);return[y,x,S,n]},function(g){var C=U(g,3),m=C[2];Gi&&ha(m,{mark:mr})},function(g){var C=U(g,3),m=C[1],y=C[2];if(m){var x=jr(m,y,{mark:mr,prepend:"queue",attachTo:v,priority:-999});x[Ur]=f,x.setAttribute(In,n)}});return p},_m=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=yo(o,s,i,f,u);return[d,i,v]};L(L(L({},cd,Om),Yu,em),ud,_m);var Ot=function(){function e(t,r){Ft(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Lt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function vn(e){return e.notSplit=!0,e}vn(["borderTop","borderBottom"]),vn(["borderTop"]),vn(["borderBottom"]),vn(["borderLeft","borderRight"]),vn(["borderLeft"]),vn(["borderRight"]);var el=_.createContext({});function Pm(e){return Hu(e)||zu(e)||qs(e)||Wu()}function $r(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function dd(e,t,r,n){if(!t.length)return r;var a=Pm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ye(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=dd(s[o],i,r,n),s}function fr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!$r(e,t.slice(0,-1))?e:dd(e,t,r,n)}function Tm(e){return Ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Kl(e){return Array.isArray(e)?[]:{}}var Nm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Kl(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=$r(a,i),d=Array.isArray(u);if(d||Tm(u)){if(!l.has(u)){l.add(u);var f=$r(n,i);d?n=fr(n,i,[]):(!f||Ie(f)!=="object")&&(n=fr(n,i,Kl(u))),Nm(u).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=fr(n,i,u)}o([])}),n}function fd(){}let Mr=null;function Im(){Mr=null,_u()}let tl=fd;process.env.NODE_ENV!=="production"&&(tl=(e,t,r)=>{ot(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Im()});const vd=c.createContext({}),Mt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(vd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Mr;Mr||(Mr={}),Mr[e]=Mr[e]||[],Mr[e].includes(o||"")||Mr[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Mr)}else process.env.NODE_ENV!=="production"&&tl(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=fd,e},zo=tl,Mm=_.createContext(void 0);var Am={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"},jm={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Fm=z(z({},jm),{},{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 gd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ql={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"]},Fm),timePickerLocale:Object.assign({},gd)},Zt="${label} is not a valid ${type}",jn={locale:"en",Pagination:Am,DatePicker:ql,TimePicker:gd,Calendar:ql,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:Zt,method:Zt,array:Zt,object:Zt,number:Zt,date:Zt,boolean:Zt,integer:Zt,float:Zt,regexp:Zt,email:Zt,url:Zt,hex:Zt},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({},jn.Modal);let fo=[];const Xl=()=>fo.reduce((e,t)=>Object.assign(Object.assign({},e),t),jn.Modal);function Lm(e){if(e){const t=Object.assign({},e);return fo.push(t),Xl(),()=>{fo=fo.filter(r=>r!==t),Xl()}}Object.assign({},jn.Modal)}const rl=_.createContext(void 0),Dm=(e,t)=>{const r=c.useContext(rl),n=c.useMemo(()=>{var o;const i=jn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?jn.locale:o},[r]);return[n,a]},md="internalMark",pd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Mt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===md,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Lm(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(rl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(pd.displayName="LocaleProvider");function jt(e,t){zm(e)&&(e="100%");var r=Vm(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ha(e){return Math.min(1,Math.max(0,e))}function zm(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Vm(e){return typeof e=="string"&&e.indexOf("%")!==-1}function hd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Bm(e,t,r){return{r:jt(e,255)*255,g:jt(t,255)*255,b:jt(r,255)*255}}function Yl(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function km(e,t,r){var n,a,o;if(e=jt(e,360),t=jt(t,100),r=jt(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=si(s,i,e+1/3),a=si(s,i,e),o=si(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Zi(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Hm(e,t,r){e=jt(e,360)*6,t=jt(t,100),r=jt(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function Qi(e,t,r,n){var a=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Wm(e,t,r,n,a){var o=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16)),rn(Gm(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Gm(e){return Math.round(parseFloat(e)*255).toString(16)}function Zl(e){return Jt(e)/255}function Jt(e){return parseInt(e,16)}function Um(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ji={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 En(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Xm(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=Bm(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(n=Wa(e.s),a=Wa(e.v),t=Hm(e.h,n,a),i=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(n=Wa(e.s),o=Wa(e.l),t=km(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=hd(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Km="[-\\+]?\\d+%?",qm="[-\\+]?\\d*\\.\\d+%?",qr="(?:".concat(qm,")|(?:").concat(Km,")"),li="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),ci="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),dr={CSS_UNIT:new RegExp(qr),rgb:new RegExp("rgb"+li),rgba:new RegExp("rgba"+ci),hsl:new RegExp("hsl"+li),hsla:new RegExp("hsla"+ci),hsv:new RegExp("hsv"+li),hsva:new RegExp("hsva"+ci),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 Xm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ji[e])e=Ji[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=dr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=dr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=dr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=dr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dr.hex8.exec(e),r?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),a:Zl(r[4]),format:t?"name":"hex8"}:(r=dr.hex6.exec(e),r?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),format:t?"name":"hex"}:(r=dr.hex4.exec(e),r?{r:Jt(r[1]+r[1]),g:Jt(r[2]+r[2]),b:Jt(r[3]+r[3]),a:Zl(r[4]+r[4]),format:t?"name":"hex8"}:(r=dr.hex3.exec(e),r?{r:Jt(r[1]+r[1]),g:Jt(r[2]+r[2]),b:Jt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!dr.CSS_UNIT.exec(String(e))}var er=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Um(t)),this.originalInput=t;var a=En(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=hd(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=Zi(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=Zi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Yl(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=Yl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Qi(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),Wm(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(jt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(jt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Qi(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ji);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Ha(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Ha(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Ha(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Ha(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Ga=2,Ql=.16,Ym=.05,Zm=.05,Qm=.15,bd=5,yd=4,Jm=[{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 Jl(e){var t=e.r,r=e.g,n=e.b,a=Zi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ua(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Qi(t,r,n,!1))}function ep(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function ec(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ga*t:Math.round(e.h)+Ga*t:n=r?Math.round(e.h)+Ga*t:Math.round(e.h)-Ga*t,n<0?n+=360:n>=360&&(n-=360),n}function tc(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ql*t:t===yd?n=e.s+Ql:n=e.s+Ym*t,n>1&&(n=1),r&&t===bd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function rc(e,t,r){var n;return r?n=e.v+Zm*t:n=e.v-Qm*t,n>1&&(n=1),Number(n.toFixed(2))}function Sa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=bd;a>0;a-=1){var o=Jl(n),i=Ua(En({h:ec(o,a,!0),s:tc(o,a,!0),v:rc(o,a,!0)}));r.push(i)}r.push(Ua(n));for(var s=1;s<=yd;s+=1){var l=Jl(n),u=Ua(En({h:ec(l,s),s:tc(l,s),v:rc(l,s)}));r.push(u)}return t.theme==="dark"?Jm.map(function(d){var f=d.index,v=d.opacity,b=Ua(ep(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ui={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"},es=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];es.primary=es[5];var ts=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ts.primary=ts[5];var rs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rs.primary=rs[5];var Co=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Co.primary=Co[5];var ns=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ns.primary=ns[5];var as=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];as.primary=as[5];var os=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];os.primary=os[5];var is=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];is.primary=is[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var ss=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ss.primary=ss[5];var ls=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ls.primary=ls[5];var cs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];cs.primary=cs[5];var us=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];us.primary=us[5];var di={red:es,volcano:ts,orange:rs,gold:Co,yellow:ns,lime:as,green:os,cyan:is,blue:So,geekblue:ss,purple:ls,magenta:cs,grey:us};const Cd={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"},xa=Object.assign(Object.assign({},Cd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
101
|
+
*/var Nl;function Bv(){return Nl||(Nl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,C=!1,m=!1,y;y=Symbol.for("react.module.reference");function x(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||C||B===b||h||p||g||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function S(B){if(typeof B=="object"&&B!==null){var ce=B.$$typeof;switch(ce){case e:var se=B.type;switch(se){case r:case a:case n:case u:case d:return se;default:var xe=se&&se.$$typeof;switch(xe){case s:case i:case l:case v:case f:case o:return xe;default:return ce}}case t:return ce}}}var E=i,R=o,w=e,$=l,N=r,F=v,j=f,A=t,M=a,H=n,T=u,O=d,I=!1,D=!1;function V(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return S(B)===i}function W(B){return S(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return S(B)===l}function Q(B){return S(B)===r}function J(B){return S(B)===v}function te(B){return S(B)===f}function ae(B){return S(B)===t}function fe(B){return S(B)===a}function de(B){return S(B)===n}function ve(B){return S(B)===u}function Oe(B){return S(B)===d}ut.ContextConsumer=E,ut.ContextProvider=R,ut.Element=w,ut.ForwardRef=$,ut.Fragment=N,ut.Lazy=F,ut.Memo=j,ut.Portal=A,ut.Profiler=M,ut.StrictMode=H,ut.Suspense=T,ut.SuspenseList=O,ut.isAsyncMode=V,ut.isConcurrentMode=k,ut.isContextConsumer=K,ut.isContextProvider=W,ut.isElement=q,ut.isForwardRef=Y,ut.isFragment=Q,ut.isLazy=J,ut.isMemo=te,ut.isPortal=ae,ut.isProfiler=fe,ut.isStrictMode=de,ut.isSuspense=ve,ut.isSuspenseList=Oe,ut.isValidElementType=x,ut.typeOf=S}()),ut}process.env.NODE_ENV==="production"?Li.exports=Vv():Li.exports=Bv();var la=Li.exports;function Or(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return _.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Or(n)):la.isFragment(n)&&n.props?r=r.concat(Or(n.props.children,t)):r.push(n))}),r}var Di={},Gs=[],kv=function(t){Gs.push(t)};function Tn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Hv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Pu(){Di={}}function Tu(e,t,r){!t&&!Di[r]&&(e(!1,r),Di[r]=!0)}function ot(e,t){Tu(Tn,e,t)}function Wv(e,t){Tu(Hv,e,t)}ot.preMessage=kv;ot.resetWarned=Pu;ot.noteOnce=Wv;function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}function Gv(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nu(e){var t=Gv(e,"string");return Ie(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Nu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Il(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Il(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function Uv(e){return e&&Ie(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function oo(e){var t=Uv(e);if(t)return t;if(e instanceof _.Component){var r;return(r=Pn.findDOMNode)===null||r===void 0?void 0:r.call(Pn,e)}return null}function Io(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Us=function(t,r){typeof t=="function"?t(r):Ie(t)==="object"&&t&&"current"in t&&(t.current=r)},Rr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Us(i,o)})}},Pa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Io(function(){return Rr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},sn=function(t){var r,n,a=la.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==la.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==la.ForwardRef)};function Ml(e){return _.isValidElement(e)&&!la.isFragment(e)}Number(_.version.split(".")[0])>=19;var zi=c.createContext(null);function Kv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(zi),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(zi.Provider,{value:i},t)}var Iu=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),Vi=typeof window<"u"&&typeof document<"u"&&window.document===document,ho=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")()}(),qv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ho):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Xv=2;function Yv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){qv(o)}function s(){var l=Date.now();if(r){if(l-a<Xv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var Zv=20,Qv=["top","right","bottom","left","width","height","size","weight"],Jv=typeof MutationObserver<"u",eg=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Yv(this.refresh.bind(this),Zv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Vi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jv?(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(){!Vi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Qv.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Mu=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ho},Au=Mo(0,0,0,0);function bo(e){return parseFloat(e)||0}function Al(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+bo(o)},0)}function tg(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=bo(i)}return r}function rg(e){var t=e.getBBox();return Mo(0,0,t.width,t.height)}function ng(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Au;var n=Nn(e).getComputedStyle(e),a=tg(n),o=a.left+a.right,i=a.top+a.bottom,s=bo(n.width),l=bo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Al(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Al(n,"top","bottom")+i)),!og(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Mo(a.left,a.top,s,l)}var ag=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nn(e).SVGGraphicsElement}:function(e){return e instanceof Nn(e).SVGElement&&typeof e.getBBox=="function"}}();function og(e){return e===Nn(e).document.documentElement}function ig(e){return Vi?ag(e)?rg(e):ng(e):Au}function sg(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Mu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Mo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var lg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ig(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}(),cg=function(){function e(t,r){var n=sg(r);Mu(this,{target:t,contentRect:n})}return e}(),ug=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Iu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new lg(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 Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new cg(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ju=typeof WeakMap<"u"?new WeakMap:new Iu,Fu=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=eg.getInstance(),n=new ug(t,r,this);ju.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Fu.prototype[e]=function(){var t;return(t=ju.get(this))[e].apply(t,arguments)}});var dg=function(){return typeof ho.ResizeObserver<"u"?ho.ResizeObserver:Fu}(),Ar=new Map;function Lu(e){e.forEach(function(t){var r,n=t.target;(r=Ar.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Du=new dg(Lu);process.env.NODE_ENV;process.env.NODE_ENV;function fg(e,t){Ar.has(e)||(Ar.set(e,new Set),Du.observe(e)),Ar.get(e).add(t)}function vg(e,t){Ar.has(e)&&(Ar.get(e).delete(t),Ar.get(e).size||(Du.unobserve(e),Ar.delete(e)))}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nu(n.key),n)}}function Lt(e,t,r){return t&&jl(e.prototype,t),r&&jl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ga(e,t)}function Xr(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&&ga(e,t)}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ma(e)}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ks=function(){return!!e})()}function Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gg(e,t){if(t&&(Ie(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Yr(e){var t=Ks();return function(){var r,n=ma(e);if(t){var a=ma(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return gg(this,r)}}var mg=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function pg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(zi),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&sn(l),f=d?l.ref:null,v=Pa(f,a),b=function(){var C;return oo(a.current)||(a.current&&Ie(a.current)==="object"?oo((C=a.current)===null||C===void 0?void 0:C.nativeElement):null)||oo(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var C=h.current,m=C.onResize,y=C.data,x=g.getBoundingClientRect(),S=x.width,E=x.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(S),N=Math.floor(E);if(u.current.width!==$||u.current.height!==N||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:N,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(S)?S:R,A=w===Math.round(E)?E:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,g,y),m&&Promise.resolve().then(function(){m(M,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&fg(g,p),function(){return vg(g,p)}},[a.current,n]),c.createElement(mg,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var zu=c.forwardRef(pg);process.env.NODE_ENV!=="production"&&(zu.displayName="SingleObserver");var hg="rc-observer-key";function bg(e,t){var r=e.children,n=typeof r=="function"?[r]:Or(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Tn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Tn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(hg,"-").concat(o);return c.createElement(zu,we({},e,{key:i,ref:o===0?t:void 0}),a)})}var gr=c.forwardRef(bg);process.env.NODE_ENV!=="production"&&(gr.displayName="ResizeObserver");gr.Collection=Kv;function br(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Bi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yg(e){if(Array.isArray(e))return Bi(e)}function Vu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qs(e,t){if(e){if(typeof e=="string")return Bi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bi(e,t):void 0}}function Cg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
102
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(e){return yg(e)||Vu(e)||qs(e)||Cg()}var Bu=function(t){return+setTimeout(t,16)},ku=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Bu=function(t){return window.requestAnimationFrame(t)},ku=function(t){return window.cancelAnimationFrame(t)});var Fl=0,Ao=new Map;function Hu(e){Ao.delete(e)}var Tt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fl+=1;var n=Fl;function a(o){if(o===0)Hu(n),t();else{var i=Bu(function(){a(o-1)});Ao.set(n,i)}}return a(r),n};Tt.cancel=function(e){var t=Ao.get(e);return Hu(e),ku(t)};process.env.NODE_ENV!=="production"&&(Tt.ids=function(){return Ao});function Wu(e){if(Array.isArray(e))return e}function Sg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function Gu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
103
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Wu(e)||Sg(e,t)||qs(e,t)||Gu()}function pa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ll="data-rc-order",Dl="data-rc-priority",Eg="rc-util-key",ki=new Map;function Uu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Eg}function jo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xs(e){return Array.from((ki.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ku(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=wg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Ll,i),s&&o&&l.setAttribute(Dl,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=jo(t),d=u.firstChild;if(n){if(s){var f=(t.styles||Xs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Ll)))return!1;var b=Number(v.getAttribute(Dl)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function qu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jo(t);return(t.styles||Xs(r)).find(function(n){return n.getAttribute(Uu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=qu(e,t);if(r){var n=jo(t);n.removeChild(r)}}function $g(e,t){var r=ki.get(e);if(!r||!xg(document,r)){var n=Ku("",t),a=n.parentNode;ki.set(e,a),e.removeChild(n)}}function jr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=jo(r),a=Xs(n),o=z(z({},r),{},{styles:a});$g(n,o);var i=qu(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Ku(e,o);return d.setAttribute(Uu(o),t),d}function Og(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function et(e,t){if(e==null)return{};var r,n,a=Og(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ba(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(ot(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Ie(o)==="object"&&Ie(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var Rg="%";function Hi(e){return e.join(Rg)}var _g=function(){function e(t){Ft(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Lt(e,[{key:"get",value:function(r){return this.opGet(Hi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Hi(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),In="data-token-hash",mr="data-css-hash",Pg="data-cache-path",Ur="__cssinjs_instance__";function Tg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(mr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Ur]=a[Ur]||e,a[Ur]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(mr,"]"))).forEach(function(a){var o=a.getAttribute(mr);if(n[o]){if(a[Ur]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new _g(e)}var Ng=c.createContext({hashPriority:"low",cache:Tg(),defaultCache:!0});const Fo=Ng;function Ig(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){Ft(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Lt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Ig(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Ys,"MAX_CACHE_SIZE",20);L(Ys,"MAX_CACHE_OFFSET",5);var zl=0,Xu=function(){function e(t){Ft(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=zl,t.length===0&&Tn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),zl+=1}return Lt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ni=new Ys;function Wi(e){var t=Array.isArray(e)?e:[e];return ni.has(t)||ni.set(t,new Xu(t)),ni.get(t)}var Mg=new WeakMap,ai={};function Ag(e,t){for(var r=Mg,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ai)||r.set(ai,e()),r.get(ai)}var Vl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Vl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof Xu?r+=a.id:a&&Ie(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),Vl.set(e,r)),r}function Bl(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Gi=Xt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function yo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},In,t),mr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var io=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},jg=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Yu=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=io(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,jg(a,r,{scope:n==null?void 0:n.scope})]},kl=process.env.NODE_ENV!=="test"&&Xt()?c.useLayoutEffect:c.useEffect,St=function(t,r){var n=c.useRef(!0);kl(function(){return t(n.current)},r),kl(function(){return n.current=!1,function(){n.current=!0}},[])},Ui=function(t,r){St(function(n){if(!n)return t()},r)},Fg=z({},c),Hl=Fg.useInsertionEffect,Lg=function(t,r,n){c.useMemo(t,n),St(function(){return r(!0)},n)},Dg=Hl?function(e,t,r){return Hl(function(){return e(),t()},r)}:Lg;const zg=Dg;var Vg=z({},c),Bg=Vg.useInsertionEffect,kg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&Tn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Hg=function(){return function(t){t()}},Wg=typeof Bg<"u"?kg:Hg;const Gg=Wg;function Ug(){return!1}var Ki=!1;function Kg(){return Ki}const qg=process.env.NODE_ENV==="production"?Ug:Kg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var oi=window;if(typeof oi.webpackHotUpdate=="function"){var Xg=oi.webpackHotUpdate;oi.webpackHotUpdate=function(){return Ki=!0,setTimeout(function(){Ki=!1},0),Xg.apply(void 0,arguments)}}}function Zs(e,t,r,n,a){var o=c.useContext(Fo),i=o.cache,s=[e].concat(Ce(t)),l=Hi(s),u=Gg([l]),d=qg(),f=function(p){i.opUpdate(l,function(g){var C=g||[void 0,void 0],m=U(C,2),y=m[0],x=y===void 0?0:y,S=m[1],E=S;process.env.NODE_ENV!=="production"&&S&&d&&(n==null||n(E,d),E=null);var R=E||r(),w=[x,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return zg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),C=g[0],m=g[1];return h&&C===0&&(a==null||a(b)),[C+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],C=U(g,2),m=C[0],y=m===void 0?0:m,x=C[1],S=y-1;return S===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(x,!1))}),null):[y-1,x]})}},[l]),b}var Yg={},Zg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function Qg(e){tn.set(e,(tn.get(e)||0)+1)}function Jg(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(In,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ur]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var em=0;function tm(e,t){tn.set(e,(tn.get(e)||0)-1);var r=Array.from(tn.keys()),n=r.filter(function(a){var o=tn.get(a)||0;return o<=0});r.length-n.length>em&&n.forEach(function(a){Jg(a,t),tn.delete(a)})}var rm=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},Zu="token";function nm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_.useContext(Fo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Yg:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Ag(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),h=ca(b),p=ca(u),g=v?ca(v):"",C=Zs(Zu,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):rm(b,u,e,d),x=z({},y),S="";if(v){var E=Yu(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(E,2);y=R[0],S=R[1]}var w=Bl(y,s);y._tokenKey=w,x._tokenKey=Bl(x,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,Qg($);var N="".concat(Zg,"-").concat(pa(w));return y._hashId=N,[y,N,x,S,(v==null?void 0:v.key)||""]},function(m){tm(m[0]._themeKey,a)},function(m){var y=U(m,4),x=y[0],S=y[3];if(v&&S){var E=jr(S,pa("css-variables-".concat(x._themeKey)),{mark:mr,prepend:"queue",attachTo:o,priority:-999});E[Ur]=a,E.setAttribute(In,x._themeKey)}});return C}var am=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=yo(i,s,d,v,u);return[f,d,b]},om={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},Qu="comm",Ju="rule",ed="decl",im="@import",sm="@keyframes",lm="@layer",td=Math.abs,Qs=String.fromCharCode;function rd(e){return e.trim()}function so(e,t,r){return e.replace(t,r)}function cm(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function Mn(e,t,r){return e.slice(t,r)}function wr(e){return e.length}function um(e){return e.length}function ka(e,t){return t.push(e),e}var Lo=1,An=1,nd=0,sr=0,Rt=0,zn="";function Js(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Lo,column:An,length:i,return:"",siblings:s}}function dm(){return Rt}function fm(){return Rt=sr>0?ya(zn,--sr):0,An--,Rt===10&&(An=1,Lo--),Rt}function pr(){return Rt=sr<nd?ya(zn,sr++):0,An++,Rt===10&&(An=1,Lo++),Rt}function Kr(){return ya(zn,sr)}function lo(){return sr}function Do(e,t){return Mn(zn,e,t)}function Ca(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 vm(e){return Lo=An=1,nd=wr(zn=e),sr=0,[]}function gm(e){return zn="",e}function ii(e){return rd(Do(sr-1,qi(e===91?e+2:e===40?e+1:e)))}function mm(e){for(;(Rt=Kr())&&Rt<33;)pr();return Ca(e)>2||Ca(Rt)>3?"":" "}function pm(e,t){for(;--t&&pr()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Do(e,lo()+(t<6&&Kr()==32&&pr()==32))}function qi(e){for(;pr();)switch(Rt){case e:return sr;case 34:case 39:e!==34&&e!==39&&qi(Rt);break;case 40:e===41&&qi(e);break;case 92:pr();break}return sr}function hm(e,t){for(;pr()&&e+Rt!==57;)if(e+Rt===84&&Kr()===47)break;return"/*"+Do(t,sr-1)+"*"+Qs(e===47?e:pr())}function bm(e){for(;!Ca(Kr());)pr();return Do(e,sr)}function ym(e){return gm(co("",null,null,null,[""],e=vm(e),0,[0],e))}function co(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,g=1,C=1,m=0,y="",x=a,S=o,E=n,R=y;g;)switch(h=m,m=pr()){case 40:if(h!=108&&ya(R,f-1)==58){cm(R+=so(ii(m),"&","&\f"),"&\f",td(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:R+=ii(m);break;case 9:case 10:case 13:case 32:R+=mm(h);break;case 92:R+=pm(lo()-1,7);continue;case 47:switch(Kr()){case 42:case 47:ka(Cm(hm(pr(),lo()),t,r,l),l),(Ca(h||1)==5||Ca(Kr()||1)==5)&&wr(R)&&Mn(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=wr(R)*C;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:C==-1&&(R=so(R,/\f/g,"")),b>0&&(wr(R)-f||p===0&&h===47)&&ka(b>32?Gl(R+";",n,r,f-1,l):Gl(so(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(ka(E=Wl(R,t,r,u,d,a,s,y,x=[],S=[],f,o),o),m===123)if(d===0)co(R,t,E,E,x,o,f,s,S);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:co(e,E,E,n&&ka(Wl(e,E,E,0,0,a,s,y,a,x=[],f,S),S),a,S,f,s,n?x:S);break;default:co(R,E,E,E,[""],S,0,s,S)}}u=d=b=0,p=C=1,y=R="",f=i;break;case 58:f=1+wr(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&fm()==125)continue}switch(R+=Qs(m),m*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(wr(R)-1)*C,C=1;break;case 64:Kr()===45&&(R+=ii(pr())),v=Kr(),d=f=wr(y=R+=bm(lo())),m++;break;case 45:h===45&&wr(R)==2&&(p=0)}}return o}function Wl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=um(b),p=0,g=0,C=0;p<n;++p)for(var m=0,y=Mn(e,v+1,v=td(g=i[p])),x=e;m<h;++m)(x=rd(g>0?b[m]+" "+y:so(y,/&\f/g,b[m])))&&(l[C++]=x);return Js(e,t,r,a===0?Ju:s,l,u,d,f)}function Cm(e,t,r,n){return Js(e,t,r,Qu,Qs(dm()),Mn(e,2,-2),0,n)}function Gl(e,t,r,n,a){return Js(e,t,r,ed,Mn(e,0,n),Mn(e,n+1,-1),n,a)}function Xi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Sm(e,t,r,n){switch(e.type){case lm:if(e.children.length)break;case im:case ed:return e.return=e.return||e.value;case Qu:return"";case sm:return e.return=e.value+"{"+Xi(e.children,n)+"}";case Ju:if(!wr(e.value=e.props.join(",")))return""}return wr(r=Xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function ad(e,t){var r=t.path,n=t.parentSelectors;ot(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var xm=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&ad("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Em=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&ad("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ul="data-ant-cssinjs-cache-path",od="_FILE_STYLE__",an,id=!0;function wm(){if(!an&&(an={},Xt())){var e=document.createElement("div");e.className=Ul,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];an[s]=l});var r=document.querySelector("style[".concat(Ul,"]"));if(r){var n;id=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function $m(e){return wm(),!!an[e]}function Om(e){var t=an[e],r=null;if(t&&Xt())if(id)r=od;else{var n=document.querySelector("style[".concat(mr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var sd="_skip_check_",ld="_multi_value_";function uo(e){var t=Xi(ym(e),Sm);return t.replace(/\{%%%\:[^;];}/g,";")}function Rm(e){return Ie(e)==="object"&&e&&(sd in e||ld in e)}function Kl(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(Ce(l.slice(1))).join(" ")});return o.join(",")}var _m=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",g={};function C(x){var S=x.getName(s);if(!g[S]){var E=e(x.style,r,{root:!1,parentSelectors:i}),R=U(E,1),w=R[0];g[S]="@keyframes ".concat(x.getName(s)).concat(w)}}function m(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?m(E,S):E&&S.push(E)}),S}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(x){var S=typeof x=="string"&&!a?{}:x;if(typeof S=="string")p+="".concat(S,`
|
|
104
|
+
`);else if(S._keyframe)C(S);else{var E=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},S);Object.keys(E).forEach(function(R){var w=E[R];if(Ie(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!Rm(w)){var $=!1,N=R.trim(),F=!1;(a||o)&&s?N.startsWith("@")?$=!0:N==="&"?N=Kl("",s,d):N=Kl(R,s,d):a&&!s&&(N==="&"||N==="")&&(N="",F=!0);var j=e(w,r,{root:F,injectHash:$,parentSelectors:[].concat(Ce(i),[N])}),A=U(j,2),M=A[0],H=A[1];g=z(z({},g),H),p+="".concat(N).concat(M)}else{let I=function(D,V){process.env.NODE_ENV!=="production"&&(Ie(w)!=="object"||!(w!=null&&w[sd]))&&[xm,Em].concat(Ce(h)).forEach(function(W){return W(D,V,{path:u,hashId:s,parentSelectors:i})});var k=D.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=V;!om[D]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),D==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(C(V),K=V.getName(s)),p+="".concat(k,":").concat(K,";")};var T,O=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Ie(w)==="object"&&w!==null&&w!==void 0&&w[ld]&&Array.isArray(O)?O.forEach(function(D){I(R,D)}):I(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(l.name,";")}).join(`
|
|
105
|
+
`))):p="{".concat(p,"}"),[p,g]};function cd(e,t){return pa("".concat(e.join("%")).concat(t))}function Pm(){return null}var ud="style";function Yi(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(Fo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,C=d.transformers,m=d.linters,y=d.cache,x=d.layer,S=r._tokenKey,E=[S];x&&E.push("layer"),E.push.apply(E,Ce(n));var R=Gi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Zs(ud,E,function(){var A=E.join("|");if($m(A)){var M=Om(A),H=U(M,2),T=H[0],O=H[1];if(T)return[T,S,O,{},s,u]}var I=t(),D=_m(I,{hashId:a,hashPriority:h,layer:x?o:void 0,path:n.join("-"),transformers:C,linters:m}),V=U(D,2),k=V[0],K=V[1],W=uo(k),q=cd(E,W);return[W,S,q,K,s,u]},function(A,M){var H=U(A,3),T=H[2];(M||f)&&Gi&&ha(T,{mark:mr})},function(A){var M=U(A,4),H=M[0];M[1];var T=M[2],O=M[3];if(R&&H!==od){var I={mark:mr,prepend:x?!1:"queue",attachTo:p,priority:u},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var V=[],k=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):k.push(W)}),V.forEach(function(W){jr(uo(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=jr(H,T,I);K[Ur]=y.instanceId,K.setAttribute(In,S),process.env.NODE_ENV!=="production"&&K.setAttribute(Pg,E.join("|")),k.forEach(function(W){jr(uo(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),N=$[0],F=$[1],j=$[2];return function(A){var M;return!g||R||!b?M=c.createElement(Pm,null):M=c.createElement("style",we({},L(L({},In,F),mr,j),{dangerouslySetInnerHTML:{__html:N}})),c.createElement(c.Fragment,null,M,A)}}var Tm=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=yo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=uo(l[p]),C=yo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=C+b:b+=C}}),[d,s,b]},dd="cssVar",Nm=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=_.useContext(Fo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(Ce(t.path),[n,u,b]),p=Zs(dd,h,function(){var g=r(),C=Yu(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(C,2),y=m[0],x=m[1],S=cd(h,x);return[y,x,S,n]},function(g){var C=U(g,3),m=C[2];Gi&&ha(m,{mark:mr})},function(g){var C=U(g,3),m=C[1],y=C[2];if(m){var x=jr(m,y,{mark:mr,prepend:"queue",attachTo:v,priority:-999});x[Ur]=f,x.setAttribute(In,n)}});return p},Im=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=yo(o,s,i,f,u);return[d,i,v]};L(L(L({},ud,Tm),Zu,am),dd,Im);var Ot=function(){function e(t,r){Ft(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Lt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function vn(e){return e.notSplit=!0,e}vn(["borderTop","borderBottom"]),vn(["borderTop"]),vn(["borderBottom"]),vn(["borderLeft","borderRight"]),vn(["borderLeft"]),vn(["borderRight"]);var el=_.createContext({});function Mm(e){return Wu(e)||Vu(e)||qs(e)||Gu()}function $r(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function fd(e,t,r,n){if(!t.length)return r;var a=Mm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Ce(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=fd(s[o],i,r,n),s}function fr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!$r(e,t.slice(0,-1))?e:fd(e,t,r,n)}function Am(e){return Ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ql(e){return Array.isArray(e)?[]:{}}var jm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ql(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=$r(a,i),d=Array.isArray(u);if(d||Am(u)){if(!l.has(u)){l.add(u);var f=$r(n,i);d?n=fr(n,i,[]):(!f||Ie(f)!=="object")&&(n=fr(n,i,ql(u))),jm(u).forEach(function(v){o([].concat(Ce(i),[v]),l)})}}else n=fr(n,i,u)}o([])}),n}function vd(){}let Mr=null;function Fm(){Mr=null,Pu()}let tl=vd;process.env.NODE_ENV!=="production"&&(tl=(e,t,r)=>{ot(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Fm()});const gd=c.createContext({}),Mt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(gd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Mr;Mr||(Mr={}),Mr[e]=Mr[e]||[],Mr[e].includes(o||"")||Mr[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Mr)}else process.env.NODE_ENV!=="production"&&tl(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=vd,e},zo=tl,Lm=_.createContext(void 0);var Dm={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"},zm={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Vm=z(z({},zm),{},{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 md={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Xl={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"]},Vm),timePickerLocale:Object.assign({},md)},Zt="${label} is not a valid ${type}",jn={locale:"en",Pagination:Dm,DatePicker:Xl,TimePicker:md,Calendar:Xl,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:Zt,method:Zt,array:Zt,object:Zt,number:Zt,date:Zt,boolean:Zt,integer:Zt,float:Zt,regexp:Zt,email:Zt,url:Zt,hex:Zt},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({},jn.Modal);let fo=[];const Yl=()=>fo.reduce((e,t)=>Object.assign(Object.assign({},e),t),jn.Modal);function Bm(e){if(e){const t=Object.assign({},e);return fo.push(t),Yl(),()=>{fo=fo.filter(r=>r!==t),Yl()}}Object.assign({},jn.Modal)}const rl=_.createContext(void 0),km=(e,t)=>{const r=c.useContext(rl),n=c.useMemo(()=>{var o;const i=jn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?jn.locale:o},[r]);return[n,a]},pd="internalMark",hd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Mt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===pd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Bm(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(rl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(hd.displayName="LocaleProvider");function jt(e,t){Hm(e)&&(e="100%");var r=Wm(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ha(e){return Math.min(1,Math.max(0,e))}function Hm(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Wm(e){return typeof e=="string"&&e.indexOf("%")!==-1}function bd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Gm(e,t,r){return{r:jt(e,255)*255,g:jt(t,255)*255,b:jt(r,255)*255}}function Zl(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Um(e,t,r){var n,a,o;if(e=jt(e,360),t=jt(t,100),r=jt(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=si(s,i,e+1/3),a=si(s,i,e),o=si(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Zi(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Km(e,t,r){e=jt(e,360)*6,t=jt(t,100),r=jt(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function Qi(e,t,r,n){var a=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function qm(e,t,r,n,a){var o=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16)),rn(Xm(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Xm(e){return Math.round(parseFloat(e)*255).toString(16)}function Ql(e){return Jt(e)/255}function Jt(e){return parseInt(e,16)}function Ym(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ji={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 En(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Jm(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=Gm(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(n=Wa(e.s),a=Wa(e.v),t=Km(e.h,n,a),i=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(n=Wa(e.s),o=Wa(e.l),t=Um(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=bd(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Zm="[-\\+]?\\d+%?",Qm="[-\\+]?\\d*\\.\\d+%?",qr="(?:".concat(Qm,")|(?:").concat(Zm,")"),li="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),ci="[\\s|\\(]+(".concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")[,|\\s]+(").concat(qr,")\\s*\\)?"),dr={CSS_UNIT:new RegExp(qr),rgb:new RegExp("rgb"+li),rgba:new RegExp("rgba"+ci),hsl:new RegExp("hsl"+li),hsla:new RegExp("hsla"+ci),hsv:new RegExp("hsv"+li),hsva:new RegExp("hsva"+ci),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 Jm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ji[e])e=Ji[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=dr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=dr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=dr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=dr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dr.hex8.exec(e),r?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),a:Ql(r[4]),format:t?"name":"hex8"}:(r=dr.hex6.exec(e),r?{r:Jt(r[1]),g:Jt(r[2]),b:Jt(r[3]),format:t?"name":"hex"}:(r=dr.hex4.exec(e),r?{r:Jt(r[1]+r[1]),g:Jt(r[2]+r[2]),b:Jt(r[3]+r[3]),a:Ql(r[4]+r[4]),format:t?"name":"hex8"}:(r=dr.hex3.exec(e),r?{r:Jt(r[1]+r[1]),g:Jt(r[2]+r[2]),b:Jt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!dr.CSS_UNIT.exec(String(e))}var er=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Ym(t)),this.originalInput=t;var a=En(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=bd(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=Zi(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=Zi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Zl(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=Zl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Qi(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),qm(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(jt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(jt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Qi(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ji);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Ha(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Ha(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Ha(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Ha(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Ga=2,Jl=.16,ep=.05,tp=.05,rp=.15,yd=5,Cd=4,np=[{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 ec(e){var t=e.r,r=e.g,n=e.b,a=Zi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ua(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Qi(t,r,n,!1))}function ap(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function tc(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ga*t:Math.round(e.h)+Ga*t:n=r?Math.round(e.h)+Ga*t:Math.round(e.h)-Ga*t,n<0?n+=360:n>=360&&(n-=360),n}function rc(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Jl*t:t===Cd?n=e.s+Jl:n=e.s+ep*t,n>1&&(n=1),r&&t===yd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function nc(e,t,r){var n;return r?n=e.v+tp*t:n=e.v-rp*t,n>1&&(n=1),Number(n.toFixed(2))}function Sa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=yd;a>0;a-=1){var o=ec(n),i=Ua(En({h:tc(o,a,!0),s:rc(o,a,!0),v:nc(o,a,!0)}));r.push(i)}r.push(Ua(n));for(var s=1;s<=Cd;s+=1){var l=ec(n),u=Ua(En({h:tc(l,s),s:rc(l,s),v:nc(l,s)}));r.push(u)}return t.theme==="dark"?np.map(function(d){var f=d.index,v=d.opacity,b=Ua(ap(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ui={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"},es=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];es.primary=es[5];var ts=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ts.primary=ts[5];var rs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rs.primary=rs[5];var Co=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Co.primary=Co[5];var ns=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ns.primary=ns[5];var as=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];as.primary=as[5];var os=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];os.primary=os[5];var is=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];is.primary=is[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var ss=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ss.primary=ss[5];var ls=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ls.primary=ls[5];var cs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];cs.primary=cs[5];var us=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];us.primary=us[5];var di={red:es,volcano:ts,orange:rs,gold:Co,yellow:ns,lime:as,green:os,cyan:is,blue:So,geekblue:ss,purple:ls,magenta:cs,grey:us};const Sd={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"},xa=Object.assign(Object.assign({},Sd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
106
106
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
107
|
-
'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
|
|
107
|
+
'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 op(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=r(l),v=r(a),b=r(o),h=r(i),p=r(s),g=n(u,d),C=e.colorLink||e.colorInfo,m=r(C);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new er("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const ip=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function sp(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},ip(n))}const lp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function vo(e){return(e+8)/e}function cp(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:vo(r)}))}const up=e=>{const t=cp(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],l=n[0],u=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function dp(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Ir=(e,t)=>new er(e).setAlpha(t).toRgbString(),ea=(e,t)=>new er(e).darken(t).toHexString(),fp=e=>{const t=Sa(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]}},vp=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Ir(n,.88),colorTextSecondary:Ir(n,.65),colorTextTertiary:Ir(n,.45),colorTextQuaternary:Ir(n,.25),colorFill:Ir(n,.15),colorFillSecondary:Ir(n,.06),colorFillTertiary:Ir(n,.04),colorFillQuaternary:Ir(n,.02),colorBgLayout:ea(r,4),colorBgContainer:ea(r,0),colorBgElevated:ea(r,0),colorBgSpotlight:Ir(n,.85),colorBgBlur:"transparent",colorBorder:ea(r,15),colorBorderSecondary:ea(r,6)}};function gp(e){ui.pink=ui.magenta,di.pink=di.magenta;const t=Object.keys(Sd).map(r=>{const n=e[r]===ui[r]?di[r]:Sa(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),op(e,{generateColorPalettes:fp,generateNeutralColorPalettes:vp})),up(e.fontSize)),dp(e)),lp(e)),sp(e))}const xd=Wi(gp),ds={token:xa,override:{override:xa},hashed:!0},Ed=_.createContext(ds),xo="ant",wd="anticon",mp=["outlined","borderless","filled"],pp=(e,t)=>t||(e?`${xo}-${e}`:xo),it=c.createContext({getPrefixCls:pp,iconPrefixCls:wd}),hp=`-ant-${Date.now()}-${Math.random()}`;function bp(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(i,s)=>{const l=new er(i),u=Sa(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new er(t.primaryColor),s=Sa(i.toRgbString());s.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=n(i,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(i,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(i,u=>u.setAlpha(u.getAlpha()*.12));const l=new er(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
108
108
|
:root {
|
|
109
109
|
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
110
110
|
`)}
|
|
111
111
|
}
|
|
112
|
-
`.trim()}function mp(e,t){const r=gp(e,t);qt()?jr(r,`${vp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fn=c.createContext(!1),pp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r??n},t)},Ln=c.createContext(void 0),hp=e=>{let{children:t,size:r}=e;const n=c.useContext(Ln);return c.createElement(Ln.Provider,{value:r||n},t)};function bp(){const e=_.useContext(Fn),t=_.useContext(Ln);return{componentDisabled:e,componentSize:t}}var wd=Lt(function e(){Ft(this,e)}),$d="CALC_UNIT",yp=new RegExp($d,"g");function fi(e){return typeof e=="number"?"".concat(e).concat($d):e}var Cp=function(e){Xr(r,e);var t=Yr(r);function r(n,a){var o;Ft(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Ie(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=fi(n):i==="string"&&(o.result=n),o}return Lt(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(fi(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(fi(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(yp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(wd),Sp=function(e){Xr(r,e);var t=Yr(r);function r(n){var a;return Ft(this,r),a=t.call(this),L(Ge(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Lt(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(wd),xp=function(t,r){var n=t==="css"?Cp:Sp;return function(a){return new n(a,r)}},nc=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function kt(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function Ea(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function vi(e){return e!==void 0}function ir(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=Ea(function(){return vi(a)?a:vi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=kt(o),h=Ea([f]),p=U(h,2),g=p[0],C=p[1];Ui(function(){var y=g[0];u!==y&&b(u,y)},[g]),Ui(function(){vi(a)||d(a)},[a]);var m=kt(function(y,x){d(y,x),C([f],x)});return[v,m]}function ac(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&ot(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Od=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",fs=!0;function Dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Od)return Object.assign.apply(Object,[{}].concat(t));fs=!1;var n={};return t.forEach(function(a){if(Ie(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),fs=!0,n}var oc={};function Ep(){}var wp=function(t){var r,n=t,a=Ep;return Od&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return fs&&r.add(s),i[s]}}),a=function(i,s){var l;oc[i]={global:Array.from(r),component:z(z({},(l=oc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function ic(e,t,r){if(typeof r=="function"){var n;return r(Dt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function $p(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return ee(o)}).join(","),")")}}}var Op=1e3*60*10,Rp=function(){function e(){Ft(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Lt(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Ie(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ie(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Op&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),sc=new Rp;function _p(e,t){return _.useMemo(function(){var r=sc.get(t);if(r)return r;var n=e();return sc.set(t,n),n},t)}var Pp=function(){return{}};function Tp(e){var t=e.useCSP,r=t===void 0?Pp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function C(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},x=z(z({},y),{},L({},C("zIndexPopup"),!0));Object.keys(m).forEach(function(w){x[C(w)]=m[w]});var S=z(z({},p),{},{unitless:x,prefixToken:C}),E=d(v,b,h,S),R=u(g,h,S);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,N=E(w,$),F=U(N,2),j=F[1],A=R($),M=U(A,2),H=M[0],T=M[1];return[H,j,T]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,C=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,x=function(R){var w=R.rootCls,$=R.cssVar,N=$===void 0?{}:$,F=n(),j=F.realToken;return Rm({path:[v],prefix:N.prefix,key:N.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=ic(v,j,b),M=ac(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[m(H)]=M[H],delete M[H]}),M}),null},S=function(R){var w=n(),$=w.cssVar;return[function(N){return C&&$?_.createElement(_.Fragment,null,_.createElement(x,{rootCls:R,cssVar:$,component:v}),N):N},$==null?void 0:$.key]};return S}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],C=U(g,1),m=C[0],y=g.join("-");return function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=n(),R=E.theme,w=E.realToken,$=E.hashId,N=E.token,F=E.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),T=F?"css":"js",O=_p(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(io(q,F.prefix)),W.add(io(q,nc(m,F.prefix)))}),xp(T,W)},[T,m,F==null?void 0:F.prefix]),I=$p(T),D=I.max,V=I.min,k={theme:R,token:N,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Yi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(N):[]});var K=Yi(z(z({},k),{},{path:[y,x,M]}),function(){if(p.injectStyle===!1)return[];var W=wp(N),q=W.token,Y=W.flush,Q=ic(m,w,h),J=".".concat(x),te=ac(m,w,Q,{deprecatedTokens:p.deprecatedTokens});F&&Ie(Q)==="object"&&Object.keys(Q).forEach(function(ve){Q[ve]="var(".concat(io(ve,nc(m,F.prefix)),")")});var ae=Dt(q,{componentCls:J,prefixCls:x,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Q:te),fe=b(ae,{hashId:$,prefixCls:x,rootPrefixCls:A,iconPrefixCls:M});Y(m,te);var de=typeof i=="function"?i(ae,x,S,p.resetFont):null;return[p.resetStyle===!1?null:de,fe]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,z({resetStyle:!1,order:-998},p)),C=function(y){var x=y.prefixCls,S=y.rootCls,E=S===void 0?x:S;return g(x,E),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Np="5.20.3";function gi(e){return e>=0&&e<=255}function Ka(e,t){const{r,g:n,b:a,a:o}=new er(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new er(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(gi(d)&&gi(f)&&gi(v))return new er({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new er({r,g:n,b:a,a:1}).toRgbString()}var Ip=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Rd(e){const{override:t}=e,r=Ip(e,["override"]),n=Object.assign({},t);Object.keys(xa).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ka(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:Ka(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ka(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:Ka(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:`
|
|
112
|
+
`.trim()}function yp(e,t){const r=bp(e,t);Xt()?jr(r,`${hp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fn=c.createContext(!1),Cp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r??n},t)},Ln=c.createContext(void 0),Sp=e=>{let{children:t,size:r}=e;const n=c.useContext(Ln);return c.createElement(Ln.Provider,{value:r||n},t)};function xp(){const e=_.useContext(Fn),t=_.useContext(Ln);return{componentDisabled:e,componentSize:t}}var $d=Lt(function e(){Ft(this,e)}),Od="CALC_UNIT",Ep=new RegExp(Od,"g");function fi(e){return typeof e=="number"?"".concat(e).concat(Od):e}var wp=function(e){Xr(r,e);var t=Yr(r);function r(n,a){var o;Ft(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Ie(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=fi(n):i==="string"&&(o.result=n),o}return Lt(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(fi(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(fi(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(Ep,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}($d),$p=function(e){Xr(r,e);var t=Yr(r);function r(n){var a;return Ft(this,r),a=t.call(this),L(Ge(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Lt(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}($d),Op=function(t,r){var n=t==="css"?wp:$p;return function(a){return new n(a,r)}},ac=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ht(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function Ea(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function vi(e){return e!==void 0}function ir(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=Ea(function(){return vi(a)?a:vi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Ht(o),h=Ea([f]),p=U(h,2),g=p[0],C=p[1];Ui(function(){var y=g[0];u!==y&&b(u,y)},[g]),Ui(function(){vi(a)||d(a)},[a]);var m=Ht(function(y,x){d(y,x),C([f],x)});return[v,m]}function oc(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&ot(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Rd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",fs=!0;function Dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Rd)return Object.assign.apply(Object,[{}].concat(t));fs=!1;var n={};return t.forEach(function(a){if(Ie(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),fs=!0,n}var ic={};function Rp(){}var _p=function(t){var r,n=t,a=Rp;return Rd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return fs&&r.add(s),i[s]}}),a=function(i,s){var l;ic[i]={global:Array.from(r),component:z(z({},(l=ic[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function sc(e,t,r){if(typeof r=="function"){var n;return r(Dt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Pp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return ee(o)}).join(","),")")}}}var Tp=1e3*60*10,Np=function(){function e(){Ft(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Lt(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Ie(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ie(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Tp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),lc=new Np;function Ip(e,t){return _.useMemo(function(){var r=lc.get(t);if(r)return r;var n=e();return lc.set(t,n),n},t)}var Mp=function(){return{}};function Ap(e){var t=e.useCSP,r=t===void 0?Mp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function C(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},x=z(z({},y),{},L({},C("zIndexPopup"),!0));Object.keys(m).forEach(function(w){x[C(w)]=m[w]});var S=z(z({},p),{},{unitless:x,prefixToken:C}),E=d(v,b,h,S),R=u(g,h,S);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,N=E(w,$),F=U(N,2),j=F[1],A=R($),M=U(A,2),H=M[0],T=M[1];return[H,j,T]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,C=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,x=function(R){var w=R.rootCls,$=R.cssVar,N=$===void 0?{}:$,F=n(),j=F.realToken;return Nm({path:[v],prefix:N.prefix,key:N.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=sc(v,j,b),M=oc(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[m(H)]=M[H],delete M[H]}),M}),null},S=function(R){var w=n(),$=w.cssVar;return[function(N){return C&&$?_.createElement(_.Fragment,null,_.createElement(x,{rootCls:R,cssVar:$,component:v}),N):N},$==null?void 0:$.key]};return S}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],C=U(g,1),m=C[0],y=g.join("-");return function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=n(),R=E.theme,w=E.realToken,$=E.hashId,N=E.token,F=E.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),T=F?"css":"js",O=Ip(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(io(q,F.prefix)),W.add(io(q,ac(m,F.prefix)))}),Op(T,W)},[T,m,F==null?void 0:F.prefix]),I=Pp(T),D=I.max,V=I.min,k={theme:R,token:N,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Yi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(N):[]});var K=Yi(z(z({},k),{},{path:[y,x,M]}),function(){if(p.injectStyle===!1)return[];var W=_p(N),q=W.token,Y=W.flush,Q=sc(m,w,h),J=".".concat(x),te=oc(m,w,Q,{deprecatedTokens:p.deprecatedTokens});F&&Ie(Q)==="object"&&Object.keys(Q).forEach(function(ve){Q[ve]="var(".concat(io(ve,ac(m,F.prefix)),")")});var ae=Dt(q,{componentCls:J,prefixCls:x,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Q:te),fe=b(ae,{hashId:$,prefixCls:x,rootPrefixCls:A,iconPrefixCls:M});Y(m,te);var de=typeof i=="function"?i(ae,x,S,p.resetFont):null;return[p.resetStyle===!1?null:de,fe]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,z({resetStyle:!1,order:-998},p)),C=function(y){var x=y.prefixCls,S=y.rootCls,E=S===void 0?x:S;return g(x,E),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],jp="5.20.3";function gi(e){return e>=0&&e<=255}function Ka(e,t){const{r,g:n,b:a,a:o}=new er(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new er(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(gi(d)&&gi(f)&&gi(v))return new er({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new er({r,g:n,b:a,a:1}).toRgbString()}var Fp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function _d(e){const{override:t}=e,r=Fp(e,["override"]),n=Object.assign({},t);Object.keys(xa).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ka(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:Ka(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ka(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:Ka(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:`
|
|
113
113
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
114
114
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
115
115
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -141,7 +141,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
141
141
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
142
142
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
143
143
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
144
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var lc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const _d={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},Mp={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},Ap={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},Pd=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=lc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Rd(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=lc(u,["theme"]);let v=f;d&&(v=Pd(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Dr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=_.useContext(xd),o=`${Np}-${t||""}`,i=r||Sd,[s,l,u]=Jg(i,[xa,e],{salt:o,override:n,getComputedToken:Pd,formatToken:Rd,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:_d,ignore:Mp,preserve:Ap}});return[i,u,t?l:"",s,a]}const Td=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=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}},jp=()=>({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"}}),Ta=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Fp=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"}}}),Lp=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Dp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),al=e=>({"&:focus-visible":Object.assign({},Dp(e))}),Nd=(e,t)=>{const[r,n]=Dr();return Yi({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},jp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:yr,genComponentStyleHook:zp,genSubStyleComponent:Vp}=Tp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=_.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Dr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=_.useContext(it);return Nd(t,e),e??{}},getResetStyles:e=>[{"&":Fp(e)}],getCommonStyle:Lp,getCompUnitless:()=>_d});function Bp(e,t){return Eo.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const kp=Object.assign({},c),{useId:cc}=kp,Hp=()=>"",Wp=typeof cc>"u"?Hp:cc;function Gp(e,t,r){var n,a;const o=Mt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},ds),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:ds.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=Wp();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Io(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!ba(f,b,!0)}))}var Up=["children"],Id=c.createContext({});function Kp(e){var t=e.children,r=et(e,Up);return c.createElement(Id.Provider,{value:r},t)}var qp=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Xp(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=kt(function(){return a.current}),i=kt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Gr="none",qa="appear",Xa="enter",Ya="leave",uc="none",vr="prepare",$n="start",On="active",ol="end",Md="prepared";function dc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Yp(e,t){var r={animationend:dc("Animation","AnimationEnd"),transitionend:dc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Zp=Yp(qt(),typeof window<"u"?window:{}),Ad={};if(qt()){var Qp=document.createElement("div");Ad=Qp.style}var Za={};function jd(e){if(Za[e])return Za[e];var t=Zp[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Ad)return Za[e]=t[o],Za[e]}return""}var Fd=jd("animationend"),Ld=jd("transitionend"),Dd=!!(Fd&&Ld),fc=Fd||"animationend",vc=Ld||"transitionend";function gc(e,t){if(!e)return null;if(Ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Jp=function(e){var t=_.useRef();function r(a){a&&(a.removeEventListener(vc,e),a.removeEventListener(fc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(vc,e),a.addEventListener(fc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var zd=qt()?_.useLayoutEffect:_.useEffect;const eh=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Tt(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var th=[vr,$n,On,ol],rh=[vr,Md],Vd=!1,nh=!0;function Bd(e){return e===On||e===ol}const ah=function(e,t,r){var n=Ea(uc),a=U(n,2),o=a[0],i=a[1],s=eh(),l=U(s,2),u=l[0],d=l[1];function f(){i(vr,!0)}var v=t?rh:th;return zd(function(){if(o!==uc&&o!==ol){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Vd?i(h,!0):h&&u(function(g){function C(){g.isCanceled()||i(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function oh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,C=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,E=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=Ea(),N=U($,2),F=N[0],j=N[1],A=Xp(Gr),M=U(A,2),H=M[0],T=M[1],O=Ea(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=_.useRef(!1),W=_.useRef(null);function q(){return r()}var Y=_.useRef(!1);function Q(){T(Gr),V(null,!0)}var J=kt(function(ge){var Ee=H();if(Ee!==Gr){var Ae=q();if(!(ge&&!ge.deadline&&ge.target!==Ae)){var oe=Y.current,re;Ee===qa&&oe?re=S==null?void 0:S(Ae,ge):Ee===Xa&&oe?re=E==null?void 0:E(Ae,ge):Ee===Ya&&oe&&(re=R==null?void 0:R(Ae,ge)),oe&&re!==!1&&Q()}}}),te=Jp(J),ae=U(te,1),fe=ae[0],de=function(Ee){switch(Ee){case qa:return L(L(L({},vr,v),$n,p),On,m);case Xa:return L(L(L({},vr,b),$n,g),On,y);case Ya:return L(L(L({},vr,h),$n,C),On,x);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),we=ah(k,!e,function(ge){if(ge===vr){var Ee=ve[vr];return Ee?Ee(q()):Vd}if(se in ve){var Ae;V(((Ae=ve[se])===null||Ae===void 0?void 0:Ae.call(ve,q(),null))||null)}return se===On&&k!==Gr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Md&&Q(),nh}),B=U(we,2),ce=B[0],se=B[1],Se=Bd(se);Y.current=Se,zd(function(){j(t);var ge=K.current;K.current=!0;var Ee;!ge&&t&&s&&(Ee=qa),ge&&t&&o&&(Ee=Xa),(ge&&!t&&u||!ge&&f&&!t&&u)&&(Ee=Ya);var Ae=de(Ee);Ee&&(e||Ae[vr])?(T(Ee),ce()):T(Gr)},[t]),_.useEffect(function(){(k===qa&&!s||k===Xa&&!o||k===Ya&&!u)&&T(Gr)},[s,o,u]),_.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=c.useRef(!1);_.useEffect(function(){F&&(pe.current=!0),F!==void 0&&k===Gr&&((pe.current||F)&&(w==null||w(F)),pe.current=!0)},[F,k]);var ne=D;return ve[vr]&&se===$n&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function ih(e){var t=e;Ie(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(Id),g=p.motion,C=r(a,g),m=_.useRef(),y=_.useRef();function x(){try{return m.current instanceof HTMLElement?m.current:oo(y.current)}catch{return null}}var S=oh(C,s,x,a),E=U(S,4),R=E[0],w=E[1],$=E[2],N=E[3],F=c.useRef(N);N&&(F.current=!0);var j=c.useCallback(function(D){m.current=D,Us(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Gr)N?A=f(z({},M),j):!u&&F.current&&b?A=f(z(z({},M),{},{className:b}),j):d||!u&&!b?A=f(z(z({},M),{},{style:{display:"none"}}),j):A=null;else{var H;w===vr?H="prepare":Bd(w)?H="active":w===$n&&(H="start");var T=gc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Z(gc(v,R),L(L({},T,T&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&sn(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(qp,{ref:y},A)});return n.displayName="CSSMotion",n}const ln=ih(Dd);var vs="add",gs="keep",ms="remove",mi="removed";function sh(e){var t;return e&&Ie(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(sh)}function lh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=ps(e),i=ps(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:vs})})),n=f),r.push(z(z({},v),{},{status:gs})),n+=1,d=!0;break}}d||r.push(z(z({},u),{},{status:ms}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return z(z({},u),{},{status:vs})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==ms}),r.forEach(function(d){d.key===u&&(d.status=gs)})}),r}var ch=["component","children","onVisibleChanged","onAllRemoved"],uh=["status"],dh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ln,r=function(n){Xr(o,n);var a=Yr(o);function o(){var i;Ft(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(Ge(i),"state",{keyEntities:[]}),L(Ge(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:mi})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==mi}).length}),i}return Lt(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=et(u,ch),p=d||c.Fragment,g={};return dh.forEach(function(C){g[C]=h[C],delete h[C]}),delete h.keys,c.createElement(p,h,l.map(function(C,m){var y=C.status,x=et(C,uh),S=y===vs||y===gs;return c.createElement(t,Oe({},g,{key:x.key,visible:S,eventProps:x,onVisibleChanged:function(R){if(v==null||v(R,{key:x.key}),!R){var w=s.removeKey(x.key);w===0&&b&&b()}}}),function(E,R){return f(z(z({},E),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=ps(u),v=lh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===mi&&b.status===ms)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}fh(Dd);function vh(e){const{children:t}=e,[,r]=Dr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(Kp,{motion:n},t):t}const kd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Mt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(kd.displayName="PropWarning");const gh=process.env.NODE_ENV!=="production"?kd:()=>null;var mh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let hs=!1;process.env.NODE_ENV;const ph=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Hd;function hh(){return Hd||xo}function bh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const yh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Hd=t),n&&bh(n)&&(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),mp(hh(),n))},Ch=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:C,theme:m,componentDisabled:y,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Se,message:pe,tag:ne,table:ge,card:Ee,tabs:Ae,timeline:oe,timePicker:re,upload:me,notification:he,tree:rt,colorPicker:Xe,datePicker:je,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Le,warning:Ne,tour:st,floatButtonGroup:Ze,variant:De,inputNumber:ue,treeSelect:xe}=e,qe=c.useCallback((He,We)=>{const{prefixCls:lt}=e;if(We)return We;const yt=lt||g.getPrefixCls("");return He?`${yt}-${He}`:yt},[g.getPrefixCls,e.prefixCls]),nt=C||g.iconPrefixCls||Ed,Ct=r||g.csp;Nd(nt,Ct);const dt=Gp(m,g.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(hs=hs||!!dt);const ke={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:nt,theme:dt,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:te,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Se,message:pe,tag:ne,table:ge,card:Ee,tabs:Ae,timeline:oe,timePicker:re,upload:me,notification:he,tree:rt,colorPicker:Xe,datePicker:je,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Le,warning:Ne,tour:st,floatButtonGroup:Ze,variant:De,inputNumber:ue,treeSelect:xe};process.env.NODE_ENV!=="production"&&Mt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Be=Object.assign({},g);Object.keys(ke).forEach(He=>{ke[He]!==void 0&&(Be[He]=ke[He])}),ph.forEach(He=>{const We=e[He];We&&(Be[He]=We)}),typeof n<"u"&&(Be.button=Object.assign({autoInsertSpace:n},Be.button));const ze=Io(()=>Be,Be,(He,We)=>{const lt=Object.keys(He),yt=Object.keys(We);return lt.length!==yt.length||lt.some(_t=>He[_t]!==We[_t])}),_e=c.useMemo(()=>({prefixCls:nt,csp:Ct}),[nt,Ct]);let be=c.createElement(c.Fragment,null,c.createElement(gh,{dropdownMatchSelectWidth:v}),t);const Ue=c.useMemo(()=>{var He,We,lt,yt;return wn(((He=jn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((lt=(We=ze.locale)===null||We===void 0?void 0:We.Form)===null||lt===void 0?void 0:lt.defaultValidateMessages)||{},((yt=ze.form)===null||yt===void 0?void 0:yt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(be=c.createElement(Mm.Provider,{value:Ue},be)),s&&(be=c.createElement(pd,{locale:s,_ANT_MARK__:md},be)),(nt||Ct)&&(be=c.createElement(el.Provider,{value:_e},be)),l&&(be=c.createElement(hp,{size:l},be)),be=c.createElement(vh,null,be);const ht=c.useMemo(()=>{const He=dt||{},{algorithm:We,token:lt,components:yt,cssVar:_t}=He,zt=mh(He,["algorithm","token","components","cssVar"]),Ht=We&&(!Array.isArray(We)||We.length>0)?Wi(We):Sd,P={};Object.entries(yt||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=Ht:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Wi($e.algorithm)),delete $e.algorithm),P[ie]=$e});const G=Object.assign(Object.assign({},xa),lt);return Object.assign(Object.assign({},zt),{theme:Ht,token:G,components:P,override:Object.assign({override:G},P),cssVar:_t})},[dt]);return m&&(be=c.createElement(xd.Provider,{value:ht},be)),ze.warning&&(be=c.createElement(vd.Provider,{value:ze.warning},be)),y!==void 0&&(be=c.createElement(pp,{disabled:y},be)),c.createElement(it.Provider,{value:ze},be)},Bn=e=>{const t=c.useContext(it),r=c.useContext(rl);return c.createElement(Ch,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=it;Bn.SizeContext=Ln;Bn.config=yh;Bn.useConfig=bp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ln)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function Wd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Sh(e){return Wd(e)instanceof ShadowRoot}function wo(e){return Sh(e)?Wd(e):null}function xh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Eh(e,t){ot(e,"[@ant-design/icons] ".concat(t))}function mc(e){return Ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ie(e.icon)==="object"||typeof e.icon=="function")}function pc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[xh(r)]=n}return t},{})}function bs(e,t,r){return r?_.createElement(e.tag,z(z({key:t},pc(e.attrs)),r),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):_.createElement(e.tag,z({key:t},pc(e.attrs)),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Gd(e){return Sa(e)[0]}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}var wh=`
|
|
144
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var cc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pd={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},Lp={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},Dp={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},Td=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=cc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=_d(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=cc(u,["theme"]);let v=f;d&&(v=Td(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Dr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=_.useContext(Ed),o=`${jp}-${t||""}`,i=r||xd,[s,l,u]=nm(i,[xa,e],{salt:o,override:n,getComputedToken:Td,formatToken:_d,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Pd,ignore:Lp,preserve:Dp}});return[i,u,t?l:"",s,a]}const Nd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=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}},zp=()=>({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"}}),Ta=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Vp=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"}}}),Bp=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},kp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),al=e=>({"&:focus-visible":Object.assign({},kp(e))}),Id=(e,t)=>{const[r,n]=Dr();return Yi({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},zp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:yr,genComponentStyleHook:Hp,genSubStyleComponent:Wp}=Ap({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=_.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Dr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=_.useContext(it);return Id(t,e),e??{}},getResetStyles:e=>[{"&":Vp(e)}],getCommonStyle:Bp,getCompUnitless:()=>Pd});function Gp(e,t){return Eo.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Up=Object.assign({},c),{useId:uc}=Up,Kp=()=>"",qp=typeof uc>"u"?Kp:uc;function Xp(e,t,r){var n,a;const o=Mt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},ds),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:ds.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=qp();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Io(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!ba(f,b,!0)}))}var Yp=["children"],Md=c.createContext({});function Zp(e){var t=e.children,r=et(e,Yp);return c.createElement(Md.Provider,{value:r},t)}var Qp=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Jp(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Ht(function(){return a.current}),i=Ht(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Gr="none",qa="appear",Xa="enter",Ya="leave",dc="none",vr="prepare",$n="start",On="active",ol="end",Ad="prepared";function fc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function eh(e,t){var r={animationend:fc("Animation","AnimationEnd"),transitionend:fc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var th=eh(Xt(),typeof window<"u"?window:{}),jd={};if(Xt()){var rh=document.createElement("div");jd=rh.style}var Za={};function Fd(e){if(Za[e])return Za[e];var t=th[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in jd)return Za[e]=t[o],Za[e]}return""}var Ld=Fd("animationend"),Dd=Fd("transitionend"),zd=!!(Ld&&Dd),vc=Ld||"animationend",gc=Dd||"transitionend";function mc(e,t){if(!e)return null;if(Ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const nh=function(e){var t=_.useRef();function r(a){a&&(a.removeEventListener(gc,e),a.removeEventListener(vc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(gc,e),a.addEventListener(vc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Vd=Xt()?_.useLayoutEffect:_.useEffect;const ah=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Tt(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var oh=[vr,$n,On,ol],ih=[vr,Ad],Bd=!1,sh=!0;function kd(e){return e===On||e===ol}const lh=function(e,t,r){var n=Ea(dc),a=U(n,2),o=a[0],i=a[1],s=ah(),l=U(s,2),u=l[0],d=l[1];function f(){i(vr,!0)}var v=t?ih:oh;return Vd(function(){if(o!==dc&&o!==ol){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Bd?i(h,!0):h&&u(function(g){function C(){g.isCanceled()||i(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function ch(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,C=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,E=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=Ea(),N=U($,2),F=N[0],j=N[1],A=Jp(Gr),M=U(A,2),H=M[0],T=M[1],O=Ea(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=_.useRef(!1),W=_.useRef(null);function q(){return r()}var Y=_.useRef(!1);function Q(){T(Gr),V(null,!0)}var J=Ht(function(ge){var $e=H();if($e!==Gr){var Ae=q();if(!(ge&&!ge.deadline&&ge.target!==Ae)){var oe=Y.current,re;$e===qa&&oe?re=S==null?void 0:S(Ae,ge):$e===Xa&&oe?re=E==null?void 0:E(Ae,ge):$e===Ya&&oe&&(re=R==null?void 0:R(Ae,ge)),oe&&re!==!1&&Q()}}}),te=nh(J),ae=U(te,1),fe=ae[0],de=function($e){switch($e){case qa:return L(L(L({},vr,v),$n,p),On,m);case Xa:return L(L(L({},vr,b),$n,g),On,y);case Ya:return L(L(L({},vr,h),$n,C),On,x);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),Oe=lh(k,!e,function(ge){if(ge===vr){var $e=ve[vr];return $e?$e(q()):Bd}if(se in ve){var Ae;V(((Ae=ve[se])===null||Ae===void 0?void 0:Ae.call(ve,q(),null))||null)}return se===On&&k!==Gr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Ad&&Q(),sh}),B=U(Oe,2),ce=B[0],se=B[1],xe=kd(se);Y.current=xe,Vd(function(){j(t);var ge=K.current;K.current=!0;var $e;!ge&&t&&s&&($e=qa),ge&&t&&o&&($e=Xa),(ge&&!t&&u||!ge&&f&&!t&&u)&&($e=Ya);var Ae=de($e);$e&&(e||Ae[vr])?(T($e),ce()):T(Gr)},[t]),_.useEffect(function(){(k===qa&&!s||k===Xa&&!o||k===Ya&&!u)&&T(Gr)},[s,o,u]),_.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=c.useRef(!1);_.useEffect(function(){F&&(he.current=!0),F!==void 0&&k===Gr&&((he.current||F)&&(w==null||w(F)),he.current=!0)},[F,k]);var ne=D;return ve[vr]&&se===$n&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function uh(e){var t=e;Ie(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(Md),g=p.motion,C=r(a,g),m=_.useRef(),y=_.useRef();function x(){try{return m.current instanceof HTMLElement?m.current:oo(y.current)}catch{return null}}var S=ch(C,s,x,a),E=U(S,4),R=E[0],w=E[1],$=E[2],N=E[3],F=c.useRef(N);N&&(F.current=!0);var j=c.useCallback(function(D){m.current=D,Us(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Gr)N?A=f(z({},M),j):!u&&F.current&&b?A=f(z(z({},M),{},{className:b}),j):d||!u&&!b?A=f(z(z({},M),{},{style:{display:"none"}}),j):A=null;else{var H;w===vr?H="prepare":kd(w)?H="active":w===$n&&(H="start");var T=mc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Z(mc(v,R),L(L({},T,T&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&sn(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(Qp,{ref:y},A)});return n.displayName="CSSMotion",n}const ln=uh(zd);var vs="add",gs="keep",ms="remove",mi="removed";function dh(e){var t;return e&&Ie(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dh)}function fh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=ps(e),i=ps(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:vs})})),n=f),r.push(z(z({},v),{},{status:gs})),n+=1,d=!0;break}}d||r.push(z(z({},u),{},{status:ms}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return z(z({},u),{},{status:vs})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==ms}),r.forEach(function(d){d.key===u&&(d.status=gs)})}),r}var vh=["component","children","onVisibleChanged","onAllRemoved"],gh=["status"],mh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ln,r=function(n){Xr(o,n);var a=Yr(o);function o(){var i;Ft(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(Ge(i),"state",{keyEntities:[]}),L(Ge(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:mi})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==mi}).length}),i}return Lt(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=et(u,vh),p=d||c.Fragment,g={};return mh.forEach(function(C){g[C]=h[C],delete h[C]}),delete h.keys,c.createElement(p,h,l.map(function(C,m){var y=C.status,x=et(C,gh),S=y===vs||y===gs;return c.createElement(t,we({},g,{key:x.key,visible:S,eventProps:x,onVisibleChanged:function(R){if(v==null||v(R,{key:x.key}),!R){var w=s.removeKey(x.key);w===0&&b&&b()}}}),function(E,R){return f(z(z({},E),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=ps(u),v=fh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===mi&&b.status===ms)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}ph(zd);function hh(e){const{children:t}=e,[,r]=Dr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(Zp,{motion:n},t):t}const Hd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Mt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Hd.displayName="PropWarning");const bh=process.env.NODE_ENV!=="production"?Hd:()=>null;var yh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let hs=!1;process.env.NODE_ENV;const Ch=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Wd;function Sh(){return Wd||xo}function xh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Eh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Wd=t),n&&xh(n)&&(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),yp(Sh(),n))},wh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:C,theme:m,componentDisabled:y,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:Oe,rate:B,switch:ce,transfer:se,avatar:xe,message:he,tag:ne,table:ge,card:$e,tabs:Ae,timeline:oe,timePicker:re,upload:pe,notification:be,tree:rt,colorPicker:Xe,datePicker:je,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Le,warning:Ne,tour:st,floatButtonGroup:Ze,variant:De,inputNumber:ue,treeSelect:Ee}=e,qe=c.useCallback((He,We)=>{const{prefixCls:lt}=e;if(We)return We;const yt=lt||g.getPrefixCls("");return He?`${yt}-${He}`:yt},[g.getPrefixCls,e.prefixCls]),nt=C||g.iconPrefixCls||wd,Ct=r||g.csp;Id(nt,Ct);const dt=Xp(m,g.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(hs=hs||!!dt);const ke={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:nt,theme:dt,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:te,empty:de,badge:ve,radio:Oe,rate:B,switch:ce,transfer:se,avatar:xe,message:he,tag:ne,table:ge,card:$e,tabs:Ae,timeline:oe,timePicker:re,upload:pe,notification:be,tree:rt,colorPicker:Xe,datePicker:je,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Le,warning:Ne,tour:st,floatButtonGroup:Ze,variant:De,inputNumber:ue,treeSelect:Ee};process.env.NODE_ENV!=="production"&&Mt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Be=Object.assign({},g);Object.keys(ke).forEach(He=>{ke[He]!==void 0&&(Be[He]=ke[He])}),Ch.forEach(He=>{const We=e[He];We&&(Be[He]=We)}),typeof n<"u"&&(Be.button=Object.assign({autoInsertSpace:n},Be.button));const ze=Io(()=>Be,Be,(He,We)=>{const lt=Object.keys(He),yt=Object.keys(We);return lt.length!==yt.length||lt.some(_t=>He[_t]!==We[_t])}),_e=c.useMemo(()=>({prefixCls:nt,csp:Ct}),[nt,Ct]);let ye=c.createElement(c.Fragment,null,c.createElement(bh,{dropdownMatchSelectWidth:v}),t);const Ue=c.useMemo(()=>{var He,We,lt,yt;return wn(((He=jn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((lt=(We=ze.locale)===null||We===void 0?void 0:We.Form)===null||lt===void 0?void 0:lt.defaultValidateMessages)||{},((yt=ze.form)===null||yt===void 0?void 0:yt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(ye=c.createElement(Lm.Provider,{value:Ue},ye)),s&&(ye=c.createElement(hd,{locale:s,_ANT_MARK__:pd},ye)),(nt||Ct)&&(ye=c.createElement(el.Provider,{value:_e},ye)),l&&(ye=c.createElement(Sp,{size:l},ye)),ye=c.createElement(hh,null,ye);const ht=c.useMemo(()=>{const He=dt||{},{algorithm:We,token:lt,components:yt,cssVar:_t}=He,Vt=yh(He,["algorithm","token","components","cssVar"]),Wt=We&&(!Array.isArray(We)||We.length>0)?Wi(We):xd,P={};Object.entries(yt||{}).forEach(X=>{let[ie,Pe]=X;const Re=Object.assign({},Pe);"algorithm"in Re&&(Re.algorithm===!0?Re.theme=Wt:(Array.isArray(Re.algorithm)||typeof Re.algorithm=="function")&&(Re.theme=Wi(Re.algorithm)),delete Re.algorithm),P[ie]=Re});const G=Object.assign(Object.assign({},xa),lt);return Object.assign(Object.assign({},Vt),{theme:Wt,token:G,components:P,override:Object.assign({override:G},P),cssVar:_t})},[dt]);return m&&(ye=c.createElement(Ed.Provider,{value:ht},ye)),ze.warning&&(ye=c.createElement(gd.Provider,{value:ze.warning},ye)),y!==void 0&&(ye=c.createElement(Cp,{disabled:y},ye)),c.createElement(it.Provider,{value:ze},ye)},Bn=e=>{const t=c.useContext(it),r=c.useContext(rl);return c.createElement(wh,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=it;Bn.SizeContext=Ln;Bn.config=Eh;Bn.useConfig=xp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ln)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function Gd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $h(e){return Gd(e)instanceof ShadowRoot}function wo(e){return $h(e)?Gd(e):null}function Oh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Rh(e,t){ot(e,"[@ant-design/icons] ".concat(t))}function pc(e){return Ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ie(e.icon)==="object"||typeof e.icon=="function")}function hc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Oh(r)]=n}return t},{})}function bs(e,t,r){return r?_.createElement(e.tag,z(z({key:t},hc(e.attrs)),r),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):_.createElement(e.tag,z({key:t},hc(e.attrs)),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Ud(e){return Sa(e)[0]}function Kd(e){return e?Array.isArray(e)?e:[e]:[]}var _h=`
|
|
145
145
|
.anticon {
|
|
146
146
|
display: inline-flex;
|
|
147
147
|
align-items: center;
|
|
@@ -196,34 +196,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
196
196
|
transform: rotate(360deg);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,$h=function(t){var r=_.useContext(el),n=r.csp,a=r.prefixCls,o=wh;a&&(o=o.replace(/anticon/g,a)),_.useEffect(function(){var i=t.current,s=wo(i);jr(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Oh=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Rh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Gd(t),ua.calculated=!!r}function _h(){return z({},ua)}var kn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=et(t,Oh),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Gd(i)}),$h(u),Eh(mc(r),"icon should be icon definiton, but got ".concat(r)),!mc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),bs(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};kn.displayName="IconReact";kn.getTwoToneColors=_h;kn.setTwoToneColors=Rh;function Kd(e){var t=Ud(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Ph(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Th=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Kd(So.primary);var Yt=c.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=et(e,Th),d=c.useContext(el),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Z(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=Ud(l),m=U(C,2),y=m[0],x=m[1];return c.createElement("span",Oe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(kn,{icon:n,primaryColor:y,secondaryColor:x,style:g}))});Yt.displayName="AntdIcon";Yt.getTwoToneColor=Ph;Yt.setTwoToneColor=Kd;var Nh={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"},Ih=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Nh}))},qd=c.forwardRef(Ih);process.env.NODE_ENV!=="production"&&(qd.displayName="CloseCircleFilled");var Mh={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"},Ah=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Mh}))},Xd=c.forwardRef(Ah);process.env.NODE_ENV!=="production"&&(Xd.displayName="CloseOutlined");function Yd(e){return e&&_.isValidElement(e)&&e.type===_.Fragment}const jh=(e,t,r)=>_.isValidElement(e)?_.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Vo(e,t){return jh(e,e,t)}const il=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=le.F1&&r<=le.F12)return!1;switch(r){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fh={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"},Lh=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Fh}))},sl=c.forwardRef(Lh);process.env.NODE_ENV!=="production"&&(sl.displayName="LoadingOutlined");const ll=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(ll.displayName="zIndexContext");const en=100,Dh=10,zh=en*Dh,Zd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},Vh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Bh(e){return e in Zd}function kh(e,t){const[,r]=Dr(),n=_.useContext(ll),a=Bh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Zd[e]:i+=Vh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Mt(e),s=r.zIndexPopupBase+zh,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function Xt(){Xt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,O,I){T[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(T,O,I){return Object.defineProperty(T,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),T[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(T,O,I,D){var V=O&&O.prototype instanceof C?O:C,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:N(T,I,K)}),k}function f(T,O,I){try{return{type:"normal",arg:T.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function C(){}function m(){}function y(){}var x={};u(x,i,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(H([])));E&&E!==r&&n.call(E,i)&&(x=E);var R=y.prototype=C.prototype=Object.create(x);function w(T){["next","throw","return"].forEach(function(O){u(T,O,function(I){return this._invoke(O,I)})})}function $(T,O){function I(V,k,K,W){var q=f(T[V],T,k);if(q.type!=="throw"){var Y=q.arg,Q=Y.value;return Q&&Ie(Q)=="object"&&n.call(Q,"__await")?O.resolve(Q.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Q).then(function(J){Y.value=J,K(Y)},function(J){return I("throw",J,K,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(k,K){function W(){return new O(function(q,Y){I(k,K,q,Y)})}return D=D?D.then(W,W):W()}})}function N(T,O,I){var D=v;return function(V,k){if(D===h)throw Error("Generator is already running");if(D===p){if(V==="throw")throw k;return{value:e,done:!0}}for(I.method=V,I.arg=k;;){var K=I.delegate;if(K){var W=F(K,I);if(W){if(W===g)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=p,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(T,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===g)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(T,O){var I=O.method,D=T.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&T.iterator.return&&(O.method="return",O.arg=e,F(T,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),g;var V=f(D,T.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var k=V.arg;return k?k.done?(O[T.resultName]=k.value,O.next=T.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function j(T){var O={tryLoc:T[0]};1 in T&&(O.catchLoc=T[1]),2 in T&&(O.finallyLoc=T[2],O.afterLoc=T[3]),this.tryEntries.push(O)}function A(T){var O=T.completion||{};O.type="normal",delete O.arg,T.completion=O}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(j,this),this.reset(!0)}function H(T){if(T||T===""){var O=T[i];if(O)return O.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var I=-1,D=function V(){for(;++I<T.length;)if(n.call(T,I))return V.value=T[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Ie(T)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var O=typeof T=="function"&&T.constructor;return!!O&&(O===m||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,y):(T.__proto__=y,u(T,l,"GeneratorFunction")),T.prototype=Object.create(R),T},t.awrap=function(T){return{__await:T}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(T,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(T,O,I,D),V);return t.isGeneratorFunction(O)?k:k.next().then(function(K){return K.done?K.value:k.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(T){var O=Object(T),I=[];for(var D in O)I.push(D);return I.reverse(),function V(){for(;I.length;){var k=I.pop();if(k in O)return V.value=k,V.done=!1,V}return V.done=!0,V}},t.values=H,M.prototype={constructor:M,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!O)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var I=this;function D(Y,Q){return K.type="throw",K.arg=O,I.next=Y,Q&&(I.method="next",I.arg=e),!!Q}for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V],K=k.completion;if(k.tryLoc==="root")return D("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),q=n.call(k,"finallyLoc");if(W&&q){if(this.prev<k.catchLoc)return D(k.catchLoc,!0);if(this.prev<k.finallyLoc)return D(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return D(k.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return D(k.finallyLoc)}}}},abrupt:function(O,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var k=V;break}}k&&(O==="break"||O==="continue")&&k.tryLoc<=I&&I<=k.finallyLoc&&(k=null);var K=k?k.completion:{};return K.type=O,K.arg=I,k?(this.method="next",this.next=k.finallyLoc,g):this.complete(K)},complete:function(O,I){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&I&&(this.next=I),g},finish:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),A(D),g}},catch:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===O){var V=D.completion;if(V.type==="throw"){var k=V.arg;A(D)}return k}}throw Error("illegal catch attempt")},delegateYield:function(O,I,D){return this.delegate={iterator:H(O),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),g}},t}function hc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function cn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){hc(o,n,a,i,s,"next",l)}function s(l){hc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Na=z({},Iv),Hh=Na.version,Wh=Na.render,Gh=Na.unmountComponentAtNode,Bo;try{var Uh=Number((Hh||"").split(".")[0]);Uh>=18&&(Bo=Na.createRoot)}catch{}function bc(e){var t=Na.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ie(t)==="object"&&(t.usingClientEntryPoint=e)}var $o="__rc_react_root__";function Kh(e,t){bc(!0);var r=t[$o]||Bo(t);bc(!1),r.render(e),t[$o]=r}function qh(e,t){Wh(e,t)}function Xh(e,t){if(Bo){Kh(e,t);return}qh(e,t)}function Yh(e){return ys.apply(this,arguments)}function ys(){return ys=cn(Xt().mark(function e(t){return Xt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[$o])===null||a===void 0||a.unmount(),delete t[$o]}));case 1:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}function Zh(e){Gh(e)}function Qh(e){return Cs.apply(this,arguments)}function Cs(){return Cs=cn(Xt().mark(function e(t){return Xt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Bo===void 0){n.next=2;break}return n.abrupt("return",Yh(t));case 2:Zh(t);case 3:case"end":return n.stop()}},e)})),Cs.apply(this,arguments)}const Qd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,cl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Jh=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},e0=zp("Wave",e=>[Jh(e)]),Jd=`${xo}-wave-target`;function t0(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 pi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&t0(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function r0(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return pi(t)?t:pi(r)?r:pi(n)?n:null}function hi(e){return Number.isNaN(e)?0:e}const n0=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,g]=c.useState(0),[C,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function x(){const E=getComputedStyle(r);i(r0(r));const R=E.position==="static",{borderLeftWidth:w,borderTopWidth:$}=E;d(R?r.offsetLeft:hi(-parseFloat(w))),v(R?r.offsetTop:hi(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=E;l([N,F,A,j].map(M=>hi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const E=Tt(()=>{x(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(r)),()=>{Tt.cancel(E),R==null||R.disconnect()}}},[]),!C)return null;const S=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Jd));return c.createElement(ln,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Qh($).then(()=>{$==null||$.remove()})}return!1}},(E,R)=>{let{className:w}=E;return c.createElement("div",{ref:Rr(a,R),className:Z(t,w,{"wave-quick":S}),style:y})})},a0=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Xh(c.createElement(n0,Object.assign({},t,{target:e})),a)},o0=(e,t,r)=>{const{wave:n}=c.useContext(it),[,a,o]=Dr(),i=kt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Jd}`)||d,{showEffect:v}=n||{};(v||a0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{Tt.cancel(s.current),s.current=Tt(()=>{i(u)})}},ef=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=_.useContext(it),o=_.useRef(null),i=a("wave"),[,s]=e0(i),l=o0(o,Z(i,s),n);if(_.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!cl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!_.isValidElement(t))return t??null;const u=sn(t)?Rr(t.ref,o):o;return Vo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(ef.displayName="Wave");const Hn=e=>{const t=_.useContext(Ln);return _.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},i0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},s0=e=>{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},l0=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}}}},tf=yr("Space",e=>{const t=Dt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[s0(t),l0(t),i0(t)]},()=>({}),{resetStyle:!1});var rf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ko=c.createContext(null),nf=(e,t)=>{const r=c.useContext(ko),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Z(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},c0=e=>{let{children:t}=e;return c.createElement(ko.Provider,{value:null},t)},u0=e=>{var{children:t}=e,r=rf(e,["children"]);return c.createElement(ko.Provider,{value:r},t)},d0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(it),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=rf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=tf(v),p=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(ko),C=Or(u),m=c.useMemo(()=>C.map((y,x)=>{const S=(y==null?void 0:y.key)||`${v}-item-${x}`;return c.createElement(u0,{key:S,compactSize:f,compactDirection:a,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,C,g]);return C.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},f0=d0;var v0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const af=c.createContext(void 0),g0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(it),{prefixCls:n,size:a,className:o}=e,i=v0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Dr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=Mt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(af.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},yc=/^[\u4e00-\u9fa5]{2}$/,Ss=yc.test.bind(yc);function Cc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function m0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Cc(e.type)&&Ss(e.props.children)?Vo(e,{children:e.props.children.split("").join(r)}):Cc(e)?Ss(e)?_.createElement("span",null,e.split("").join(r)):_.createElement("span",null,e):Yd(e)?_.createElement("span",null,e):e}function p0(e,t){let r=!1;const n=[];return _.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),_.Children.map(n,a=>m0(a,t))}const of=_.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Z(`${o}-icon`,r);return _.createElement("span",{ref:t,className:i,style:n},a)}),Sc=_.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return _.createElement(of,{prefixCls:r,className:i,style:a,ref:t},_.createElement(sl,{className:o}))}),bi=()=>({width:0,opacity:0,transform:"scale(0)"}),yi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),h0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?_.createElement(Sc,{prefixCls:t,className:a,style:o}):_.createElement(ln,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:bi,onAppearActive:yi,onEnterStart:bi,onEnterActive:yi,onLeaveStart:yi,onLeaveActive:bi},(s,l)=>{let{className:u,style:d}=s;return _.createElement(Sc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},xc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),b0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},xc(`${t}-primary`,a),xc(`${t}-danger`,o)]}},sf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Dt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},lf=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:vo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:vo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:vo(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},y0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(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({},al(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Lr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),C0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),S0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),x0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),wa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Lr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ul=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},x0(e))}),cf=e=>Object.assign({},ul(e)),Oo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Lr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wa(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},Lr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ul(e))}),E0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Lr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),wa(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},Lr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ul(e))}),w0=e=>Object.assign(Object.assign({},uf(e)),{borderStyle:"dashed"}),$0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Lr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Oo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Lr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Oo(e))}),O0=e=>Object.assign(Object.assign(Object.assign({},Lr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Oo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Oo(e)),Lr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),R0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uf(e),[`${t}-primary`]:E0(e),[`${t}-dashed`]:w0(e),[`${t}-link`]:$0(e),[`${t}-text`]:O0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${ee(u)} ${ee(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:C0(e)},{[`${r}${r}-round${t}`]:S0(e)}]},_0=e=>{const t=Dt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dl(t,e.componentCls)},P0=e=>{const t=Dt(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 dl(t,`${e.componentCls}-sm`)},T0=e=>{const t=Dt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dl(t,`${e.componentCls}-lg`)},N0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},I0=yr("Button",e=>{const t=sf(e);return[y0(t),_0(t),P0(t),T0(t),N0(t),R0(t),b0(t)]},lf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function M0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function A0(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function df(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},M0(e,n,t)),A0(r,n,t))}}function j0(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 F0(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 L0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},j0(e,t)),F0(e.componentCls,t))}}const D0=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},z0=Vp(["Button","compact"],e=>{const t=sf(e);return[df(t),L0(t),D0(t)]},lf);var V0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function B0(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 k0=_.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:g,iconPosition:C="start",ghost:m=!1,block:y=!1,htmlType:x="button",classNames:S,style:E={},autoInsertSpace:R}=e,w=V0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:N,direction:F,button:j}=_.useContext(it),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=N("btn",i),[H,T,O]=I0(M),I=_.useContext(Fn),D=v??I,V=_.useContext(af),k=_.useMemo(()=>B0(o),[o]),[K,W]=_.useState(k.loading),[q,Y]=_.useState(!1),J=Rr(t,_.createRef()),te=_.Children.count(p)===1&&!g&&!Qa($);_.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function me(){re&&(clearTimeout(re),re=null)}return me},[k]),_.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Ss(re)?q||Y(!0):q&&Y(!1)},[J]);const ae=re=>{const{onClick:me}=e;if(K||D){re.preventDefault();return}me==null||me(re)};if(process.env.NODE_ENV!=="production"){const re=Mt("Button");process.env.NODE_ENV!=="production"&&re(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(m&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=nf(M,F),ve={large:"lg",small:"sm",middle:void 0},we=Hn(re=>{var me,he;return(he=(me=d??fe)!==null&&me!==void 0?me:V)!==null&&he!==void 0?he:re}),B=we&&ve[we]||"",ce=K?"loading":g,se=br(w,["navigate"]),Se=Z(M,T,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:m&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:C==="end"},de,b,h,j==null?void 0:j.className),pe=Object.assign(Object.assign({},j==null?void 0:j.style),E),ne=Z(S==null?void 0:S.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),ge=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),Ee=g&&!K?_.createElement(of,{prefixCls:M,className:ne,style:ge},g):_.createElement(h0,{existIcon:!!g,prefixCls:M,loading:K}),Ae=p||p===0?p0(p,te&&A):null;if(se.href!==void 0)return H(_.createElement("a",Object.assign({},se,{className:Z(Se,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:pe,onClick:ae,ref:J,tabIndex:D?-1:0}),Ee,Ae));let oe=_.createElement("button",Object.assign({},w,{type:x,className:Se,style:pe,onClick:ae,disabled:D,ref:J}),Ee,Ae,!!de&&_.createElement(z0,{key:"compact",prefixCls:M}));return Qa($)||(oe=_.createElement(ef,{component:"Button",disabled:K},oe)),H(oe)}),Ho=k0;Ho.Group=g0;Ho.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Ho.displayName="Button");var ff=c.createContext(null),Ec=[];function H0(e,t){var r=c.useState(function(){if(!qt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(ff),s=c.useState(Ec),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(ye(p));return g})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return St(function(){return e?i?i(v):v():b(),b},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(Ec))},[u]),[a,f]}function W0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";jr(`
|
|
199
|
+
`,Ph=function(t){var r=_.useContext(el),n=r.csp,a=r.prefixCls,o=_h;a&&(o=o.replace(/anticon/g,a)),_.useEffect(function(){var i=t.current,s=wo(i);jr(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Th=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Nh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Ud(t),ua.calculated=!!r}function Ih(){return z({},ua)}var kn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=et(t,Th),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Ud(i)}),Ph(u),Rh(pc(r),"icon should be icon definiton, but got ".concat(r)),!pc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),bs(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};kn.displayName="IconReact";kn.getTwoToneColors=Ih;kn.setTwoToneColors=Nh;function qd(e){var t=Kd(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Mh(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ah=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qd(So.primary);var zt=c.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=et(e,Ah),d=c.useContext(el),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Z(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=Kd(l),m=U(C,2),y=m[0],x=m[1];return c.createElement("span",we({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(kn,{icon:n,primaryColor:y,secondaryColor:x,style:g}))});zt.displayName="AntdIcon";zt.getTwoToneColor=Mh;zt.setTwoToneColor=qd;var jh={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"},Fh=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:jh}))},Xd=c.forwardRef(Fh);process.env.NODE_ENV!=="production"&&(Xd.displayName="CloseCircleFilled");var Lh={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"},Dh=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Lh}))},Yd=c.forwardRef(Dh);process.env.NODE_ENV!=="production"&&(Yd.displayName="CloseOutlined");function Zd(e){return e&&_.isValidElement(e)&&e.type===_.Fragment}const zh=(e,t,r)=>_.isValidElement(e)?_.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Vo(e,t){return zh(e,e,t)}const il=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=le.F1&&r<=le.F12)return!1;switch(r){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vh={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"},Bh=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Vh}))},sl=c.forwardRef(Bh);process.env.NODE_ENV!=="production"&&(sl.displayName="LoadingOutlined");const ll=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(ll.displayName="zIndexContext");const en=100,kh=10,Hh=en*kh,Qd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},Wh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Gh(e){return e in Qd}function Uh(e,t){const[,r]=Dr(),n=_.useContext(ll),a=Gh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Qd[e]:i+=Wh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Mt(e),s=r.zIndexPopupBase+Hh,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,O,I){T[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(T,O,I){return Object.defineProperty(T,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),T[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(T,O,I,D){var V=O&&O.prototype instanceof C?O:C,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:N(T,I,K)}),k}function f(T,O,I){try{return{type:"normal",arg:T.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function C(){}function m(){}function y(){}var x={};u(x,i,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(H([])));E&&E!==r&&n.call(E,i)&&(x=E);var R=y.prototype=C.prototype=Object.create(x);function w(T){["next","throw","return"].forEach(function(O){u(T,O,function(I){return this._invoke(O,I)})})}function $(T,O){function I(V,k,K,W){var q=f(T[V],T,k);if(q.type!=="throw"){var Y=q.arg,Q=Y.value;return Q&&Ie(Q)=="object"&&n.call(Q,"__await")?O.resolve(Q.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Q).then(function(J){Y.value=J,K(Y)},function(J){return I("throw",J,K,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(k,K){function W(){return new O(function(q,Y){I(k,K,q,Y)})}return D=D?D.then(W,W):W()}})}function N(T,O,I){var D=v;return function(V,k){if(D===h)throw Error("Generator is already running");if(D===p){if(V==="throw")throw k;return{value:e,done:!0}}for(I.method=V,I.arg=k;;){var K=I.delegate;if(K){var W=F(K,I);if(W){if(W===g)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=p,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(T,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===g)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(T,O){var I=O.method,D=T.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&T.iterator.return&&(O.method="return",O.arg=e,F(T,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),g;var V=f(D,T.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var k=V.arg;return k?k.done?(O[T.resultName]=k.value,O.next=T.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function j(T){var O={tryLoc:T[0]};1 in T&&(O.catchLoc=T[1]),2 in T&&(O.finallyLoc=T[2],O.afterLoc=T[3]),this.tryEntries.push(O)}function A(T){var O=T.completion||{};O.type="normal",delete O.arg,T.completion=O}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(j,this),this.reset(!0)}function H(T){if(T||T===""){var O=T[i];if(O)return O.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var I=-1,D=function V(){for(;++I<T.length;)if(n.call(T,I))return V.value=T[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Ie(T)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var O=typeof T=="function"&&T.constructor;return!!O&&(O===m||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,y):(T.__proto__=y,u(T,l,"GeneratorFunction")),T.prototype=Object.create(R),T},t.awrap=function(T){return{__await:T}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(T,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(T,O,I,D),V);return t.isGeneratorFunction(O)?k:k.next().then(function(K){return K.done?K.value:k.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(T){var O=Object(T),I=[];for(var D in O)I.push(D);return I.reverse(),function V(){for(;I.length;){var k=I.pop();if(k in O)return V.value=k,V.done=!1,V}return V.done=!0,V}},t.values=H,M.prototype={constructor:M,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!O)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var I=this;function D(Y,Q){return K.type="throw",K.arg=O,I.next=Y,Q&&(I.method="next",I.arg=e),!!Q}for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V],K=k.completion;if(k.tryLoc==="root")return D("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),q=n.call(k,"finallyLoc");if(W&&q){if(this.prev<k.catchLoc)return D(k.catchLoc,!0);if(this.prev<k.finallyLoc)return D(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return D(k.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return D(k.finallyLoc)}}}},abrupt:function(O,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var k=V;break}}k&&(O==="break"||O==="continue")&&k.tryLoc<=I&&I<=k.finallyLoc&&(k=null);var K=k?k.completion:{};return K.type=O,K.arg=I,k?(this.method="next",this.next=k.finallyLoc,g):this.complete(K)},complete:function(O,I){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&I&&(this.next=I),g},finish:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),A(D),g}},catch:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===O){var V=D.completion;if(V.type==="throw"){var k=V.arg;A(D)}return k}}throw Error("illegal catch attempt")},delegateYield:function(O,I,D){return this.delegate={iterator:H(O),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),g}},t}function bc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function cn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){bc(o,n,a,i,s,"next",l)}function s(l){bc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Na=z({},Fv),Kh=Na.version,qh=Na.render,Xh=Na.unmountComponentAtNode,Bo;try{var Yh=Number((Kh||"").split(".")[0]);Yh>=18&&(Bo=Na.createRoot)}catch{}function yc(e){var t=Na.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ie(t)==="object"&&(t.usingClientEntryPoint=e)}var $o="__rc_react_root__";function Zh(e,t){yc(!0);var r=t[$o]||Bo(t);yc(!1),r.render(e),t[$o]=r}function Qh(e,t){qh(e,t)}function Jh(e,t){if(Bo){Zh(e,t);return}Qh(e,t)}function e0(e){return ys.apply(this,arguments)}function ys(){return ys=cn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[$o])===null||a===void 0||a.unmount(),delete t[$o]}));case 1:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}function t0(e){Xh(e)}function r0(e){return Cs.apply(this,arguments)}function Cs(){return Cs=cn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Bo===void 0){n.next=2;break}return n.abrupt("return",e0(t));case 2:t0(t);case 3:case"end":return n.stop()}},e)})),Cs.apply(this,arguments)}const Jd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,cl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},n0=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},a0=Hp("Wave",e=>[n0(e)]),ef=`${xo}-wave-target`;function o0(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 pi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&o0(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function i0(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return pi(t)?t:pi(r)?r:pi(n)?n:null}function hi(e){return Number.isNaN(e)?0:e}const s0=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,g]=c.useState(0),[C,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function x(){const E=getComputedStyle(r);i(i0(r));const R=E.position==="static",{borderLeftWidth:w,borderTopWidth:$}=E;d(R?r.offsetLeft:hi(-parseFloat(w))),v(R?r.offsetTop:hi(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=E;l([N,F,A,j].map(M=>hi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const E=Tt(()=>{x(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(r)),()=>{Tt.cancel(E),R==null||R.disconnect()}}},[]),!C)return null;const S=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(ef));return c.createElement(ln,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;r0($).then(()=>{$==null||$.remove()})}return!1}},(E,R)=>{let{className:w}=E;return c.createElement("div",{ref:Rr(a,R),className:Z(t,w,{"wave-quick":S}),style:y})})},l0=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Jh(c.createElement(s0,Object.assign({},t,{target:e})),a)},c0=(e,t,r)=>{const{wave:n}=c.useContext(it),[,a,o]=Dr(),i=Ht(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${ef}`)||d,{showEffect:v}=n||{};(v||l0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{Tt.cancel(s.current),s.current=Tt(()=>{i(u)})}},tf=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=_.useContext(it),o=_.useRef(null),i=a("wave"),[,s]=a0(i),l=c0(o,Z(i,s),n);if(_.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!cl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!_.isValidElement(t))return t??null;const u=sn(t)?Rr(t.ref,o):o;return Vo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(tf.displayName="Wave");const Hn=e=>{const t=_.useContext(Ln);return _.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},u0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},d0=e=>{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},f0=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}}}},rf=yr("Space",e=>{const t=Dt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[d0(t),f0(t),u0(t)]},()=>({}),{resetStyle:!1});var nf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ko=c.createContext(null),af=(e,t)=>{const r=c.useContext(ko),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Z(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},v0=e=>{let{children:t}=e;return c.createElement(ko.Provider,{value:null},t)},g0=e=>{var{children:t}=e,r=nf(e,["children"]);return c.createElement(ko.Provider,{value:r},t)},m0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(it),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=nf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=rf(v),p=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(ko),C=Or(u),m=c.useMemo(()=>C.map((y,x)=>{const S=(y==null?void 0:y.key)||`${v}-item-${x}`;return c.createElement(g0,{key:S,compactSize:f,compactDirection:a,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,C,g]);return C.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},p0=m0;var h0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const of=c.createContext(void 0),b0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(it),{prefixCls:n,size:a,className:o}=e,i=h0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Dr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=Mt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(of.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},Cc=/^[\u4e00-\u9fa5]{2}$/,Ss=Cc.test.bind(Cc);function Sc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function y0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Sc(e.type)&&Ss(e.props.children)?Vo(e,{children:e.props.children.split("").join(r)}):Sc(e)?Ss(e)?_.createElement("span",null,e.split("").join(r)):_.createElement("span",null,e):Zd(e)?_.createElement("span",null,e):e}function C0(e,t){let r=!1;const n=[];return _.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),_.Children.map(n,a=>y0(a,t))}const sf=_.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Z(`${o}-icon`,r);return _.createElement("span",{ref:t,className:i,style:n},a)}),xc=_.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return _.createElement(sf,{prefixCls:r,className:i,style:a,ref:t},_.createElement(sl,{className:o}))}),bi=()=>({width:0,opacity:0,transform:"scale(0)"}),yi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),S0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?_.createElement(xc,{prefixCls:t,className:a,style:o}):_.createElement(ln,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:bi,onAppearActive:yi,onEnterStart:bi,onEnterActive:yi,onLeaveStart:yi,onLeaveActive:bi},(s,l)=>{let{className:u,style:d}=s;return _.createElement(xc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},Ec=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),x0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Ec(`${t}-primary`,a),Ec(`${t}-danger`,o)]}},lf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Dt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},cf=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:vo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:vo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:vo(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},E0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(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({},al(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Lr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),w0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),$0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),O0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),wa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Lr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ul=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},O0(e))}),uf=e=>Object.assign({},ul(e)),Oo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),df=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Lr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wa(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},Lr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ul(e))}),R0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Lr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),wa(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},Lr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ul(e))}),_0=e=>Object.assign(Object.assign({},df(e)),{borderStyle:"dashed"}),P0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Lr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Oo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Lr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Oo(e))}),T0=e=>Object.assign(Object.assign(Object.assign({},Lr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Oo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Oo(e)),Lr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),N0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:df(e),[`${t}-primary`]:R0(e),[`${t}-dashed`]:_0(e),[`${t}-link`]:P0(e),[`${t}-text`]:T0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${ee(u)} ${ee(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:w0(e)},{[`${r}${r}-round${t}`]:$0(e)}]},I0=e=>{const t=Dt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dl(t,e.componentCls)},M0=e=>{const t=Dt(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 dl(t,`${e.componentCls}-sm`)},A0=e=>{const t=Dt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dl(t,`${e.componentCls}-lg`)},j0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},F0=yr("Button",e=>{const t=lf(e);return[E0(t),I0(t),M0(t),A0(t),j0(t),N0(t),x0(t)]},cf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function L0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function D0(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ff(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},L0(e,n,t)),D0(r,n,t))}}function z0(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 V0(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 B0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},z0(e,t)),V0(e.componentCls,t))}}const k0=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},H0=Wp(["Button","compact"],e=>{const t=lf(e);return[ff(t),B0(t),k0(t)]},cf);var W0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function G0(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 U0=_.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:g,iconPosition:C="start",ghost:m=!1,block:y=!1,htmlType:x="button",classNames:S,style:E={},autoInsertSpace:R}=e,w=W0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:N,direction:F,button:j}=_.useContext(it),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=N("btn",i),[H,T,O]=F0(M),I=_.useContext(Fn),D=v??I,V=_.useContext(of),k=_.useMemo(()=>G0(o),[o]),[K,W]=_.useState(k.loading),[q,Y]=_.useState(!1),J=Rr(t,_.createRef()),te=_.Children.count(p)===1&&!g&&!Qa($);_.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function pe(){re&&(clearTimeout(re),re=null)}return pe},[k]),_.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Ss(re)?q||Y(!0):q&&Y(!1)},[J]);const ae=re=>{const{onClick:pe}=e;if(K||D){re.preventDefault();return}pe==null||pe(re)};if(process.env.NODE_ENV!=="production"){const re=Mt("Button");process.env.NODE_ENV!=="production"&&re(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(m&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=af(M,F),ve={large:"lg",small:"sm",middle:void 0},Oe=Hn(re=>{var pe,be;return(be=(pe=d??fe)!==null&&pe!==void 0?pe:V)!==null&&be!==void 0?be:re}),B=Oe&&ve[Oe]||"",ce=K?"loading":g,se=br(w,["navigate"]),xe=Z(M,T,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:m&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:C==="end"},de,b,h,j==null?void 0:j.className),he=Object.assign(Object.assign({},j==null?void 0:j.style),E),ne=Z(S==null?void 0:S.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),ge=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),$e=g&&!K?_.createElement(sf,{prefixCls:M,className:ne,style:ge},g):_.createElement(S0,{existIcon:!!g,prefixCls:M,loading:K}),Ae=p||p===0?C0(p,te&&A):null;if(se.href!==void 0)return H(_.createElement("a",Object.assign({},se,{className:Z(xe,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:he,onClick:ae,ref:J,tabIndex:D?-1:0}),$e,Ae));let oe=_.createElement("button",Object.assign({},w,{type:x,className:xe,style:he,onClick:ae,disabled:D,ref:J}),$e,Ae,!!de&&_.createElement(H0,{key:"compact",prefixCls:M}));return Qa($)||(oe=_.createElement(tf,{component:"Button",disabled:K},oe)),H(oe)}),Ho=U0;Ho.Group=b0;Ho.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Ho.displayName="Button");var vf=c.createContext(null),wc=[];function K0(e,t){var r=c.useState(function(){if(!Xt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(vf),s=c.useState(wc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(Ce(p));return g})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return St(function(){return e?i?i(v):v():b(),b},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(wc))},[u]),[a,f]}function q0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";jr(`
|
|
200
200
|
#`.concat(t,`::-webkit-scrollbar {
|
|
201
201
|
`).concat(d,`
|
|
202
202
|
`).concat(f,`
|
|
203
|
-
}`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ha(t),{width:v,height:b}}function
|
|
203
|
+
}`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ha(t),{width:v,height:b}}function X0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:q0(e)}function Y0(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Z0="rc-util-locker-".concat(Date.now()),$c=0;function Q0(e){var t=!!e,r=c.useState(function(){return $c+=1,"".concat(Z0,"_").concat($c)}),n=U(r,1),a=n[0];St(function(){if(t){var o=X0(document.body).width,i=Y0();jr(`
|
|
204
204
|
html body {
|
|
205
205
|
overflow-y: hidden;
|
|
206
206
|
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
207
|
-
}`),a)}else ha(a);return function(){ha(a)}},[t,a])}var X0=!1;function Y0(e){return X0}var $c=function(t){return t===!1?!1:!qt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},fl=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&ot(qt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return $c(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var j=$c(a);C(j??null)});var m=H0(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;q0(n&&r&&qt()&&(E===x||E===document.body));var R=null;if(l&&sn(l)&&t){var w=l;R=w.ref}var $=Pa(R,t);if(!b||!qt()||g===void 0)return null;var N=E===!1||Y0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(ff.Provider,{value:S},N?F:Pn.createPortal(F,E))});process.env.NODE_ENV!=="production"&&(fl.displayName="Portal");function Z0(){var e=z({},c);return e.useId}var Oc=0,Rc=Z0();const Q0=Rc?function(t){var r=Rc();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=Oc;Oc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",vt=function(){ot(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Dn=c.createContext({getFieldValue:vt,getFieldsValue:vt,getFieldError:vt,getFieldWarning:vt,getFieldsError:vt,isFieldsTouched:vt,isFieldTouched:vt,isFieldValidating:vt,isFieldsValidating:vt,resetFields:vt,setFields:vt,setFieldValue:vt,setFieldsValue:vt,validateFields:vt,submit:vt,getInternalHooks:function(){return vt(),{dispatch:vt,initEntityValue:vt,registerField:vt,useSubscribe:vt,setInitialValues:vt,destroyForm:vt,setCallbacks:vt,registerWatch:vt,getFields:vt,setValidateMessages:vt,setPreserve:vt,getInitialValue:vt}}}),Ro=c.createContext(null);function xs(e){return e==null?[]:Array.isArray(e)?e:[e]}function J0(e){return e&&!!e._init}function Es(){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 ws=Es();function eb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function tb(e,t,r){if(Ks())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ga(a,r.prototype),a}function $s(e){var t=typeof Map=="function"?new Map:void 0;return $s=function(n){if(n===null||!eb(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return tb(n,arguments,ma(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ga(a,n)},$s(e)}var rb=/%[sdj%]/g,vf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(vf=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Os(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function tr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(rb,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function nb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Nt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||nb(t)&&typeof e=="string"&&!e)}function ab(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,ye(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function _c(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function ob(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Pc=function(e){Xr(r,e);var t=Yr(r);function r(n,a){var o;return Ft(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Lt(r)}($s(Error));function ib(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Pc(C,Os(C))):v(a)},p=ob(e);_c(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Pc(d,Os(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?_c(g,r,h):ab(g,r,h)})});return f.catch(function(v){return v}),f}function sb(e){return!!(e&&e.message!==void 0)}function lb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Tc(e,t){return function(r){var n;return e.fullFields?n=lb(t,e.fullFields):n=t[r.field||e.fullField],sb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Nc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var gn="enum",cb=function(t,r,n,a,o){t[gn]=Array.isArray(t[gn])?t[gn]:[],t[gn].indexOf(r)===-1&&a.push(tr(o.messages[gn],t.fullField,t[gn].join(", ")))},ub=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},db=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(tr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(tr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(tr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(tr(o.messages[f].range,t.fullField,t.min,t.max))},gf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Nt(r,i||t.type))&&a.push(tr(o.messages.required,t.fullField))},Ja;const fb=function(){if(Ja)return Ja;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return Ja=new RegExp("(?:^".concat(x,"$)"),"i"),Ja};var Ic={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},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ie(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ic.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fb())},hex:function(t){return typeof t=="string"&&!!t.match(Ic.hex)}},vb=function(t,r,n,a,o){if(t.required&&r===void 0){gf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?oa[s](r)||a.push(tr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(tr(o.messages.types[s],t.fullField,t.type))},gb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(tr(o.messages.whitespace,t.fullField))};const Qe={required:gf,whitespace:gb,type:vb,range:db,enum:cb,pattern:ub};var mb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},pb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!Nt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},yb="enum",Cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[yb](t,r,a,i,o)}n(i)},Sb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Eb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},$b=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Ob=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Rb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r)||Qe.type(t,r,a,i,o)}n(i)},_b=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},Pb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),Nt(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},Ci=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Nt(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),Nt(r,i)||Qe.type(t,r,a,s,o)}n(s)};const da={string:Pb,method:Eb,number:wb,boolean:hb,regexp:Rb,integer:xb,float:Sb,array:pb,object:$b,enum:Cb,pattern:Ob,date:bb,url:Ci,hex:Ci,email:Ci,required:_b,any:mb};var Ia=function(){function e(t){Ft(this,e),L(this,"rules",null),L(this,"_messages",ws),this.define(t)}return Lt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Nc(Es(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,ye(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Os(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===ws&&(d=Es()),Nc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=z({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return ib(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return z(z({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(ye(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Tc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Tc(g,i)):s.error&&($=[s.error(g,tr(s.messages.required,g.field))]),p($);var N={};g.defaultField&&Object.keys(h.value).map(function(A){N[A]=g.defaultField}),N=z(z({},N),h.rule.fields);var F={};Object.keys(N).forEach(function(A){var M=N[A],H=Array.isArray(M)?M:[M];F[A]=H.map(m.bind(null,A))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var M=[];$&&$.length&&M.push.apply(M,ye($)),A&&A.length&&M.push.apply(M,ye(A)),p(M.length?M:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!da.hasOwnProperty(r.type))throw new Error(tr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?da.required:da[this.getType(r)]||void 0}}]),e}();L(Ia,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");da[t]=r});L(Ia,"warning",vf);L(Ia,"messages",ws);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",mf={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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},string:{len:"'${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}"}},Mc=Ia;function Tb(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Ac="CODE_LOGIC_ERROR";function Rs(e,t,r,n,a){return _s.apply(this,arguments)}function _s(){return _s=cn(Xt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Xt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=z({},n),delete i.ruleIndex,Mc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(Ac)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Mc(L({},t,[i])),d=wn(mf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===Ac?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Rs("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(ye(C),ye(m))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Tb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),_s.apply(this,arguments)}function Nb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){ot(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",ot(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=cn(Xt().mark(function f(v,b){var h,p,g;return Xt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Rs(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Rs(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Mb(u):Ib(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Ib(e){return Ps.apply(this,arguments)}function Ps(){return Ps=cn(Xt().mark(function e(t){return Xt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ye(a));return i}));case 1:case"end":return n.stop()}},e)})),Ps.apply(this,arguments)}function Mb(e){return Ts.apply(this,arguments)}function Ts(){return Ts=cn(Xt().mark(function e(t){var r;return Xt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Ts.apply(this,arguments)}function $t(e){return xs(e)}function jc(e,t){var r={};return t.forEach(function(n){var a=$r(e,n);r=fr(r,n,a)}),r}function Rn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return pf(t,n,r)})}function pf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function Ab(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ye(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function jb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Fc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(ye(e.slice(0,r)),[a],ye(e.slice(r,t)),ye(e.slice(t+1,n))):o<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,r+1)),[a],ye(e.slice(r+1,n))):e}var Fb=["name"],nr=[];function Si(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var vl=function(e){Xr(r,e);var t=Yr(r);function r(n){var a;if(Ft(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",nr),L(Ge(a),"warnings",nr),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(ye(v),ye(u)):[]}),L(Ge(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=z(z({},a.getMeta()),{},{destroy:l});ba(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Rn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=nr,a.warnings=nr,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=nr,a.warnings=nr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Si(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||nr),"warnings"in S&&(a.warnings=S.warnings||nr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Rn(u,C,!0)){a.reRender();return}if(v&&!C.length&&Si(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Rn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&Si(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(cn(Xt().mark(function g(){var C,m,y,x,S,E,R;return Xt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var j=xs(F);return j.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(N){setTimeout(N,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Nb(u,d,E,l,y,x),R.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=N.forEach)===null||F===void 0||F.call(N,function(M){var H=M.rule.warningOnly,T=M.errors,O=T===void 0?nr:T;H?A.push.apply(A,ye(O)):j.push.apply(j,ye(O))}),a.errors=j,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=nr,a.warnings=nr,a.triggerMetaEvent(),a.reRender()),p}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(nn),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Or(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return $r(l||u(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(nn),R=E.dispatch,w=a.getValue(),$=g||function(M){return L({},p,M)},N=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){ot(typeof F[M]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var M,H=arguments.length,T=new Array(H),O=0;O<H;O++)T[O]=arguments[O];b?M=b.apply(void 0,T):M=jb.apply(void 0,[p].concat(T)),h&&(M=h(M,w,S(!0))),R({type:"updateValue",namePath:y,value:M}),N&&N.apply(void 0,T)};var A=xs(m||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(Ge(a))}return a}return Lt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(nn),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(ot(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(vl,"contextType",Dn);L(vl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function hf(e){var t=e.name,r=et(e,Fb),n=c.useContext(Dn),a=c.useContext(Ro),o=t!==void 0?$t(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&ot(!1,"`preserve` should not apply on Form.List fields."),c.createElement(vl,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Lb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Dn),l=c.useContext(Ro),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(ye(p),ye($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return ot(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(Ro.Provider,{value:b},c.createElement(Dn.Provider,{value:v},c.createElement(hf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,N){var F=S();N>=0&&N<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,N)),[d.id],ye(d.keys.slice(N))),y([].concat(ye(F.slice(0,N)),[$],ye(F.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>F.length)&&ot(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ye(d.keys),[d.id]),y([].concat(ye(F),[$]))),d.id+=1},remove:function($){var N=S(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(N.filter(function(j,A){return!F.has(A)})))},move:function($,N){if($!==N){var F=S();$<0||$>=F.length||N<0||N>=F.length||(d.keys=Fc(d.keys,$,N),y(Fc(F,$,N)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&ot(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var N=d.keys[$];return N===void 0&&(d.keys[$]=d.id,N=d.keys[$],d.id+=1),{name:$,key:N,isListField:!0}}),E,g)})))}function Db(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var bf="__@field_split__";function xi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(bf)}var mn=function(){function e(){Ft(this,e),L(this,"kvs",new Map)}return Lt(e,[{key:"set",value:function(r,n){this.kvs.set(xi(r),n)}},{key:"get",value:function(r){return this.kvs.get(xi(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(xi(r))}},{key:"map",value:function(r){return ye(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(bf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),zb=["name"],Vb=Lt(function e(t){var r=this;Ft(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===nn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ot(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=wn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=fr(i,l,$r(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new mn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=$r(r.initialValues,n);return n.length?wn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ot(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new mn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),jc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return $r(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new mn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(ye(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map($t);return a.some(function(i){var s=i.getNamePath();return Rn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new mn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)ot(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)ot(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(fr(r.store,v,ye(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,ye(ye(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(wn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(fr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=et(i,zb),u=$t(s);o.push(u),"value"in l&&r.updateStore(fr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=$r(r.store,o);i===void 0&&r.updateStore(fr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!pf(f.getNamePath(),a)})){var d=r.store;r.updateStore(fr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ye(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(fr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=jc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ye(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=wn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new mn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new mn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Rn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map($t):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Rn(l,y,b)){var x=m.validateRules(z({validateMessages:z(z({},mf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var N=$.rule.warningOnly,F=$.errors;N?w.push.apply(w,ye(F)):R.push.apply(R,ye(F))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=Db(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function yf(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Vb(o);t.current=i.getForm()}return[t.current]}var Ns=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bb=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ns),s=c.useRef({});return c.createElement(Ns.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=z(z({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},kb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Hb=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=et(t,kb),x=c.useRef(null),S=c.useContext(Ns),E=yf(i),R=U(E,1),w=R[0],$=w.getInternalHooks(nn),N=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),A(z(z({},S.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,Q=new Array(Y>1?Y-1:0),J=1;J<Y;J++)Q[J-1]=arguments[J];p.apply(void 0,[q].concat(Q))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),M(s);var T=c.useRef(null);F(a,!T.current),T.current||(T.current=!0),c.useEffect(function(){return function(){return H(m)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;N(!I);var V=c.useRef();c.useEffect(function(){Ab(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var k=c.useMemo(function(){return z(z({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Ro.Provider,{value:null},c.createElement(Dn.Provider,{value:k},O));return d===!1?K:c.createElement(d,Oe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Lc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Wb=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=_.useRef(t);ot(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Gb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=J0(o)?{form:o}:o,s=i.form,l=_.useState(),u=U(l,2),d=u[0],f=u[1],v=_.useMemo(function(){return Lc(d)},[d]),b=_.useRef(v);b.current=v;var h=_.useContext(Dn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&ot(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=_.useRef(C);return m.current=C,Wb(C),_.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(nn),E=S.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):$r(A,m.current)},w=E(function(N,F){var j=R(N,F),A=Lc(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var Ub=c.forwardRef(Hb),Ma=Ub;Ma.FormProvider=Bb;Ma.Field=hf;Ma.List=Lb;Ma.useForm=yf;Ma.useWatch=Gb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const Kb=e=>{let{children:t,status:r,override:n}=e;const a=_.useContext($a),o=_.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},qb=_.createContext(void 0),Is=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=_.createElement(Kb,{override:!0,status:!0},a)),t&&(a=_.createElement(c0,null,a)),a};var Cf=function(t){if(qt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Xb=function(t,r){if(!Cf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Dc(e,t){return!Array.isArray(e)&&t!==void 0?Xb(e,t):Cf(e)}const Wo=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},Yb=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Go=e=>({height:e,lineHeight:ee(e)}),_n=e=>Object.assign({width:e},Go(e)),Zb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Yb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ei=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Go(e)),Qb=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},_n(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},_n(a)),[`${t}${t}-sm`]:Object.assign({},_n(o))}},Jb=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},Ei(t,s)),[`${n}-lg`]:Object.assign({},Ei(a,s)),[`${n}-sm`]:Object.assign({},Ei(o,s))}},zc=e=>Object.assign({width:e},Go(e)),ey=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},zc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},$i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Go(e)),ty=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},$i(n,s))},wi(e,n,r)),{[`${r}-lg`]:Object.assign({},$i(a,s))}),wi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},$i(o,s))}),wi(e,o,`${r}-sm`))},ry=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:C,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},_n(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},_n(u)),[`${r}-sm`]:Object.assign({},_n(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ty(e)),Qb(e)),Jb(e)),ey(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
207
|
+
}`),a)}else ha(a);return function(){ha(a)}},[t,a])}var J0=!1;function eb(e){return J0}var Oc=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},fl=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&ot(Xt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Oc(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var j=Oc(a);C(j??null)});var m=K0(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;Q0(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&sn(l)&&t){var w=l;R=w.ref}var $=Pa(R,t);if(!b||!Xt()||g===void 0)return null;var N=E===!1||eb(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(vf.Provider,{value:S},N?F:Pn.createPortal(F,E))});process.env.NODE_ENV!=="production"&&(fl.displayName="Portal");function tb(){var e=z({},c);return e.useId}var Rc=0,_c=tb();const rb=_c?function(t){var r=_c();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=Rc;Rc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",vt=function(){ot(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Dn=c.createContext({getFieldValue:vt,getFieldsValue:vt,getFieldError:vt,getFieldWarning:vt,getFieldsError:vt,isFieldsTouched:vt,isFieldTouched:vt,isFieldValidating:vt,isFieldsValidating:vt,resetFields:vt,setFields:vt,setFieldValue:vt,setFieldsValue:vt,validateFields:vt,submit:vt,getInternalHooks:function(){return vt(),{dispatch:vt,initEntityValue:vt,registerField:vt,useSubscribe:vt,setInitialValues:vt,destroyForm:vt,setCallbacks:vt,registerWatch:vt,getFields:vt,setValidateMessages:vt,setPreserve:vt,getInitialValue:vt}}}),Ro=c.createContext(null);function xs(e){return e==null?[]:Array.isArray(e)?e:[e]}function nb(e){return e&&!!e._init}function Es(){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 ws=Es();function ab(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ob(e,t,r){if(Ks())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ga(a,r.prototype),a}function $s(e){var t=typeof Map=="function"?new Map:void 0;return $s=function(n){if(n===null||!ab(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return ob(n,arguments,ma(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ga(a,n)},$s(e)}var ib=/%[sdj%]/g,gf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(gf=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Os(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function tr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(ib,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function sb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Nt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||sb(t)&&typeof e=="string"&&!e)}function lb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Pc(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function cb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Tc=function(e){Xr(r,e);var t=Yr(r);function r(n,a){var o;return Ft(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Lt(r)}($s(Error));function ub(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Tc(C,Os(C))):v(a)},p=cb(e);Pc(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Tc(d,Os(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?Pc(g,r,h):lb(g,r,h)})});return f.catch(function(v){return v}),f}function db(e){return!!(e&&e.message!==void 0)}function fb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Nc(e,t){return function(r){var n;return e.fullFields?n=fb(t,e.fullFields):n=t[r.field||e.fullField],db(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Ic(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var gn="enum",vb=function(t,r,n,a,o){t[gn]=Array.isArray(t[gn])?t[gn]:[],t[gn].indexOf(r)===-1&&a.push(tr(o.messages[gn],t.fullField,t[gn].join(", ")))},gb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},mb=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(tr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(tr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(tr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(tr(o.messages[f].range,t.fullField,t.min,t.max))},mf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Nt(r,i||t.type))&&a.push(tr(o.messages.required,t.fullField))},Ja;const pb=function(){if(Ja)return Ja;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return Ja=new RegExp("(?:^".concat(x,"$)"),"i"),Ja};var Mc={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},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ie(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Mc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(pb())},hex:function(t){return typeof t=="string"&&!!t.match(Mc.hex)}},hb=function(t,r,n,a,o){if(t.required&&r===void 0){mf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?oa[s](r)||a.push(tr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(tr(o.messages.types[s],t.fullField,t.type))},bb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(tr(o.messages.whitespace,t.fullField))};const Qe={required:mf,whitespace:bb,type:hb,range:mb,enum:vb,pattern:gb};var yb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},Cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Sb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!Nt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},Eb="enum",wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[Eb](t,r,a,i,o)}n(i)},$b=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Ob=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Rb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},_b=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Pb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Tb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Nb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r)||Qe.type(t,r,a,i,o)}n(i)},Ib=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},Mb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),Nt(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},Ci=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Nt(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),Nt(r,i)||Qe.type(t,r,a,s,o)}n(s)};const da={string:Mb,method:Rb,number:_b,boolean:Sb,regexp:Nb,integer:Ob,float:$b,array:Cb,object:Pb,enum:wb,pattern:Tb,date:xb,url:Ci,hex:Ci,email:Ci,required:Ib,any:yb};var Ia=function(){function e(t){Ft(this,e),L(this,"rules",null),L(this,"_messages",ws),this.define(t)}return Lt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Ic(Es(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Os(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===ws&&(d=Es()),Ic(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=z({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return ub(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return z(z({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Nc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Nc(g,i)):s.error&&($=[s.error(g,tr(s.messages.required,g.field))]),p($);var N={};g.defaultField&&Object.keys(h.value).map(function(A){N[A]=g.defaultField}),N=z(z({},N),h.rule.fields);var F={};Object.keys(N).forEach(function(A){var M=N[A],H=Array.isArray(M)?M:[M];F[A]=H.map(m.bind(null,A))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var M=[];$&&$.length&&M.push.apply(M,Ce($)),A&&A.length&&M.push.apply(M,Ce(A)),p(M.length?M:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!da.hasOwnProperty(r.type))throw new Error(tr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?da.required:da[this.getType(r)]||void 0}}]),e}();L(Ia,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");da[t]=r});L(Ia,"warning",gf);L(Ia,"messages",ws);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",pf={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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},string:{len:"'${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}"}},Ac=Ia;function Ab(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var jc="CODE_LOGIC_ERROR";function Rs(e,t,r,n,a){return _s.apply(this,arguments)}function _s(){return _s=cn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=z({},n),delete i.ruleIndex,Ac.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(jc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Ac(L({},t,[i])),d=wn(pf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===jc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Rs("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Ab(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),_s.apply(this,arguments)}function jb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){ot(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",ot(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=cn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Rs(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Rs(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Lb(u):Fb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Fb(e){return Ps.apply(this,arguments)}function Ps(){return Ps=cn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),Ps.apply(this,arguments)}function Lb(e){return Ts.apply(this,arguments)}function Ts(){return Ts=cn(Yt().mark(function e(t){var r;return Yt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Ts.apply(this,arguments)}function $t(e){return xs(e)}function Fc(e,t){var r={};return t.forEach(function(n){var a=$r(e,n);r=fr(r,n,a)}),r}function Rn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return hf(t,n,r)})}function hf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function Db(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function zb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Lc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var Vb=["name"],nr=[];function Si(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var vl=function(e){Xr(r,e);var t=Yr(r);function r(n){var a;if(Ft(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",nr),L(Ge(a),"warnings",nr),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(Ce(v),Ce(u)):[]}),L(Ge(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=z(z({},a.getMeta()),{},{destroy:l});ba(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Rn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=nr,a.warnings=nr,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=nr,a.warnings=nr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Si(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||nr),"warnings"in S&&(a.warnings=S.warnings||nr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Rn(u,C,!0)){a.reRender();return}if(v&&!C.length&&Si(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Rn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&Si(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(cn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var j=xs(F);return j.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(N){setTimeout(N,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=jb(u,d,E,l,y,x),R.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=N.forEach)===null||F===void 0||F.call(N,function(M){var H=M.rule.warningOnly,T=M.errors,O=T===void 0?nr:T;H?A.push.apply(A,Ce(O)):j.push.apply(j,Ce(O))}),a.errors=j,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=nr,a.warnings=nr,a.triggerMetaEvent(),a.reRender()),p}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(nn),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Or(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return $r(l||u(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(nn),R=E.dispatch,w=a.getValue(),$=g||function(M){return L({},p,M)},N=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){ot(typeof F[M]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var M,H=arguments.length,T=new Array(H),O=0;O<H;O++)T[O]=arguments[O];b?M=b.apply(void 0,T):M=zb.apply(void 0,[p].concat(T)),h&&(M=h(M,w,S(!0))),R({type:"updateValue",namePath:y,value:M}),N&&N.apply(void 0,T)};var A=xs(m||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(Ge(a))}return a}return Lt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(nn),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(ot(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(vl,"contextType",Dn);L(vl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function bf(e){var t=e.name,r=et(e,Vb),n=c.useContext(Dn),a=c.useContext(Ro),o=t!==void 0?$t(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&ot(!1,"`preserve` should not apply on Form.List fields."),c.createElement(vl,we({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Bb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Dn),l=c.useContext(Ro),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return ot(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(Ro.Provider,{value:b},c.createElement(Dn.Provider,{value:v},c.createElement(bf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,N){var F=S();N>=0&&N<=F.length?(d.keys=[].concat(Ce(d.keys.slice(0,N)),[d.id],Ce(d.keys.slice(N))),y([].concat(Ce(F.slice(0,N)),[$],Ce(F.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>F.length)&&ot(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(F),[$]))),d.id+=1},remove:function($){var N=S(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(N.filter(function(j,A){return!F.has(A)})))},move:function($,N){if($!==N){var F=S();$<0||$>=F.length||N<0||N>=F.length||(d.keys=Lc(d.keys,$,N),y(Lc(F,$,N)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&ot(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var N=d.keys[$];return N===void 0&&(d.keys[$]=d.id,N=d.keys[$],d.id+=1),{name:$,key:N,isListField:!0}}),E,g)})))}function kb(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var yf="__@field_split__";function xi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(yf)}var mn=function(){function e(){Ft(this,e),L(this,"kvs",new Map)}return Lt(e,[{key:"set",value:function(r,n){this.kvs.set(xi(r),n)}},{key:"get",value:function(r){return this.kvs.get(xi(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(xi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(yf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),Hb=["name"],Wb=Lt(function e(t){var r=this;Ft(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===nn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ot(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=wn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=fr(i,l,$r(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new mn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=$r(r.initialValues,n);return n.length?wn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ot(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new mn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Fc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return $r(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new mn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map($t);return a.some(function(i){var s=i.getNamePath();return Rn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new mn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)ot(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)ot(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(fr(r.store,v,Ce(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,Ce(Ce(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(wn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(fr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=et(i,Hb),u=$t(s);o.push(u),"value"in l&&r.updateStore(fr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=$r(r.store,o);i===void 0&&r.updateStore(fr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!hf(f.getNamePath(),a)})){var d=r.store;r.updateStore(fr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(fr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Fc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=wn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new mn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new mn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Rn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map($t):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Rn(l,y,b)){var x=m.validateRules(z({validateMessages:z(z({},pf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var N=$.rule.warningOnly,F=$.errors;N?w.push.apply(w,Ce(F)):R.push.apply(R,Ce(F))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=kb(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function Cf(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Wb(o);t.current=i.getForm()}return[t.current]}var Ns=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Gb=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ns),s=c.useRef({});return c.createElement(Ns.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=z(z({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},Ub=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Kb=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=et(t,Ub),x=c.useRef(null),S=c.useContext(Ns),E=Cf(i),R=U(E,1),w=R[0],$=w.getInternalHooks(nn),N=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),A(z(z({},S.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,Q=new Array(Y>1?Y-1:0),J=1;J<Y;J++)Q[J-1]=arguments[J];p.apply(void 0,[q].concat(Q))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),M(s);var T=c.useRef(null);F(a,!T.current),T.current||(T.current=!0),c.useEffect(function(){return function(){return H(m)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;N(!I);var V=c.useRef();c.useEffect(function(){Db(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var k=c.useMemo(function(){return z(z({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Ro.Provider,{value:null},c.createElement(Dn.Provider,{value:k},O));return d===!1?K:c.createElement(d,we({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Dc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var qb=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=_.useRef(t);ot(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Xb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=nb(o)?{form:o}:o,s=i.form,l=_.useState(),u=U(l,2),d=u[0],f=u[1],v=_.useMemo(function(){return Dc(d)},[d]),b=_.useRef(v);b.current=v;var h=_.useContext(Dn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&ot(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=_.useRef(C);return m.current=C,qb(C),_.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(nn),E=S.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):$r(A,m.current)},w=E(function(N,F){var j=R(N,F),A=Dc(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var Yb=c.forwardRef(Kb),Ma=Yb;Ma.FormProvider=Gb;Ma.Field=bf;Ma.List=Bb;Ma.useForm=Cf;Ma.useWatch=Xb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const Zb=e=>{let{children:t,status:r,override:n}=e;const a=_.useContext($a),o=_.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},Qb=_.createContext(void 0),Is=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=_.createElement(Zb,{override:!0,status:!0},a)),t&&(a=_.createElement(v0,null,a)),a};var Sf=function(t){if(Xt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Jb=function(t,r){if(!Sf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function zc(e,t){return!Array.isArray(e)&&t!==void 0?Jb(e,t):Sf(e)}const Wo=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},ey=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Go=e=>({height:e,lineHeight:ee(e)}),_n=e=>Object.assign({width:e},Go(e)),ty=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ey,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ei=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Go(e)),ry=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},_n(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},_n(a)),[`${t}${t}-sm`]:Object.assign({},_n(o))}},ny=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},Ei(t,s)),[`${n}-lg`]:Object.assign({},Ei(a,s)),[`${n}-sm`]:Object.assign({},Ei(o,s))}},Vc=e=>Object.assign({width:e},Go(e)),ay=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Vc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Vc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},$i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Go(e)),oy=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},$i(n,s))},wi(e,n,r)),{[`${r}-lg`]:Object.assign({},$i(a,s))}),wi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},$i(o,s))}),wi(e,o,`${r}-sm`))},iy=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:C,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},_n(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},_n(u)),[`${r}-sm`]:Object.assign({},_n(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},oy(e)),ry(e)),ny(e)),ay(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
208
208
|
${n},
|
|
209
209
|
${a} > li,
|
|
210
210
|
${r},
|
|
211
211
|
${o},
|
|
212
212
|
${i},
|
|
213
213
|
${s}
|
|
214
|
-
`]:Object.assign({},
|
|
214
|
+
`]:Object.assign({},ty(e))}}},sy=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Wn=yr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Dt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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[iy(n)]},sy,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ly=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(it),l=s("skeleton",t),[u,d,f]=Wn(l),v=br(e,["prefixCls","className"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Wo,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},cy=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(it),l=s("skeleton",t),[u,d,f]=Wn(l),v=br(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Wo,Object.assign({prefixCls:`${l}-button`,size:i},v))))},uy="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",dy=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(it),s=i("skeleton",t),[l,u,d]=Wn(s),f=Z(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Z(`${s}-image`,r),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:uy,className:`${s}-image-path`})))))},fy=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=c.useContext(it),l=s("skeleton",t),[u,d,f]=Wn(l),v=br(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Wo,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var vy={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"},gy=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:vy}))},xf=c.forwardRef(gy);process.env.NODE_ENV!=="production"&&(xf.displayName="DotChartOutlined");const my=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(it),l=s("skeleton",t),[u,d,f]=Wn(l),v=Z(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(xf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Z(`${l}-image`,r),style:a},b)))},py=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},hy=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=Ce(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:py(s,e)}}));return c.createElement("ul",{className:Z(t,r),style:n},o)},by=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Z(t,r),style:Object.assign({width:n},a)})};function Oi(e){return e&&typeof e=="object"?e:{}}function yy(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Cy(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Sy(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const un=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:o,children:i,avatar:s=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:v,direction:b,skeleton:h}=c.useContext(it),p=v("skeleton",t),[g,C,m]=Wn(p);if(r||!("loading"in e)){const y=!!s,x=!!l,S=!!u;let E;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},yy(x,S)),Oi(s));E=c.createElement("div",{className:`${p}-header`},c.createElement(Wo,Object.assign({},$)))}let R;if(x||S){let $;if(x){const F=Object.assign(Object.assign({prefixCls:`${p}-title`},Cy(y,S)),Oi(l));$=c.createElement(by,Object.assign({},F))}let N;if(S){const F=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},Sy(y,x)),Oi(u));N=c.createElement(hy,Object.assign({},F))}R=c.createElement("div",{className:`${p}-content`},$,N)}const w=Z(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,C,m);return g(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,R))}return i??null};un.Button=cy;un.Avatar=ly;un.Input=fy;un.Image=dy;un.Node=my;process.env.NODE_ENV!=="production"&&(un.displayName="Skeleton");const xy=e=>({animationDuration:e,animationFillMode:"both"}),Ey=e=>({animationDuration:e,animationFillMode:"both"}),Ef=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
215
215
|
${o}${e}-enter,
|
|
216
216
|
${o}${e}-appear
|
|
217
|
-
`]:Object.assign(Object.assign({},
|
|
217
|
+
`]:Object.assign(Object.assign({},xy(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ey(n)),{animationPlayState:"paused"}),[`
|
|
218
218
|
${o}${e}-enter${e}-enter-active,
|
|
219
219
|
${o}${e}-appear${e}-appear-active
|
|
220
|
-
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},
|
|
220
|
+
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},wy=new Ot("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$y=new Ot("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Oy=new Ot("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ry=new Ot("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_y=new Ot("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Py=new Ot("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ty=new Ot("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ny=new Ot("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Iy={"slide-up":{inKeyframes:wy,outKeyframes:$y},"slide-down":{inKeyframes:Oy,outKeyframes:Ry},"slide-left":{inKeyframes:_y,outKeyframes:Py},"slide-right":{inKeyframes:Ty,outKeyframes:Ny}},Bc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Iy[t];return[Ef(n,a,o,e.motionDurationMid),{[`
|
|
221
221
|
${n}-enter,
|
|
222
222
|
${n}-appear
|
|
223
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},
|
|
223
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},My=new Ot("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ay=new Ot("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),kc=new Ot("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hc=new Ot("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),jy=new Ot("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Fy=new Ot("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ly=new Ot("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Dy=new Ot("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),zy=new Ot("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Vy=new Ot("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),By=new Ot("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ky=new Ot("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Hy={zoom:{inKeyframes:My,outKeyframes:Ay},"zoom-big":{inKeyframes:kc,outKeyframes:Hc},"zoom-big-fast":{inKeyframes:kc,outKeyframes:Hc},"zoom-left":{inKeyframes:Ly,outKeyframes:Dy},"zoom-right":{inKeyframes:zy,outKeyframes:Vy},"zoom-up":{inKeyframes:jy,outKeyframes:Fy},"zoom-down":{inKeyframes:By,outKeyframes:ky}},Wy=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Hy[t];return[Ef(n,a,o,e.motionDurationFast),{[`
|
|
224
224
|
${n}-enter,
|
|
225
225
|
${n}-appear
|
|
226
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ef=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 By=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pn=void 0;function ky(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,C=et(e,By),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==pn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:pn,overflowY:m?"hidden":pn,order:i?h:pn,pointerEvents:m?"none":pn,position:m?"absolute":pn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,Oe({className:Z(!n&&r,d),style:z(z({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(gr,{onResize:function($){var N=$.offsetWidth;y(N)},disabled:s},R)),R}var fa=c.forwardRef(ky);fa.displayName="Item";function Hy(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Wy(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Hy(function(){Pn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function ta(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=kt(function(s){e(function(){o(s)})});return[a,i]}var _o=_.createContext(null),Gy=["component"],Uy=["className"],Ky=["className"],qy=function(t,r){var n=c.useContext(_o);if(!n){var a=t.component,o=a===void 0?"div":a,i=et(t,Gy);return c.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=et(n,Uy),u=t.className,d=et(t,Ky);return c.createElement(_o.Provider,{value:null},c.createElement(fa,Oe({ref:r,className:Z(s,u)},l,d)))},wf=c.forwardRef(qy);wf.displayName="RawItem";var Xy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$f="responsive",Of="invalidate";function Yy(e){return"+ ".concat(e.length," ...")}function Zy(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=et(e,Xy),R=f==="full",w=Wy(),$=ta(w,null),N=U($,2),F=N[0],j=N[1],A=F||0,M=ta(w,new Map),H=U(M,2),T=H[0],O=H[1],I=ta(w,0),D=U(I,2),V=D[0],k=D[1],K=ta(w,0),W=U(K,2),q=W[0],Y=W[1],Q=ta(w,0),J=U(Q,2),te=J[0],ae=J[1],fe=_.useState(null),de=U(fe,2),ve=de[0],we=de[1],B=_.useState(null),ce=U(B,2),se=ce[0],Se=ce[1],pe=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=_.useState(!1),ge=U(ne,2),Ee=ge[0],Ae=ge[1],oe="".concat(n,"-item"),re=Math.max(V,q),me=h===$f,he=o.length&&me,rt=h===Of,Xe=he||typeof h=="number"&&o.length>h,je=_.useMemo(function(){var _e=o;return he?F===null&&R?_e=o:_e=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(_e=o.slice(0,h)),_e},[o,d,F,h,he]),Ke=_.useMemo(function(){return he?o.slice(pe+1):o.slice(je.length)},[o,je,he,pe]),Ye=_.useCallback(function(_e,be){var Ue;return typeof l=="function"?l(_e):(Ue=l&&(_e==null?void 0:_e[l]))!==null&&Ue!==void 0?Ue:be},[l]),Je=_.useCallback(i||function(_e){return _e},[i]);function Le(_e,be,Ue){se===_e&&(be===void 0||be===ve)||(Se(_e),Ue||(Ae(_e<o.length-1),S==null||S(_e)),be!==void 0&&we(be))}function Ne(_e,be){j(be.clientWidth)}function st(_e,be){O(function(Ue){var ht=new Map(Ue);return be===null?ht.delete(_e):ht.set(_e,be),ht})}function Ze(_e,be){Y(be),k(q)}function De(_e,be){ae(be)}function ue(_e){return T.get(Ye(je[_e],_e))}St(function(){if(A&&typeof re=="number"&&je){var _e=te,be=je.length,Ue=be-1;if(!be){Le(0,null);return}for(var ht=0;ht<be;ht+=1){var He=ue(ht);if(R&&(He=He||0),He===void 0){Le(ht-1,void 0,!0);break}if(_e+=He,Ue===0&&_e<=A||ht===Ue-1&&_e+ue(Ue)<=A){Le(Ue,null);break}else if(_e+re>A){Le(ht-1,_e-He-te+q);break}}C&&ue(0)+te>A&&we(null)}},[A,T,q,te,Ye,je]);var xe=Ee&&!!Ke.length,qe={};ve!==null&&he&&(qe={position:"absolute",left:ve,top:0});var nt={prefixCls:oe,responsive:he,component:x,invalidate:rt},Ct=s?function(_e,be){var Ue=Ye(_e,be);return c.createElement(_o.Provider,{key:Ue,value:z(z({},nt),{},{order:be,item:_e,itemKey:Ue,registerSize:st,display:be<=pe})},s(_e,be))}:function(_e,be){var Ue=Ye(_e,be);return c.createElement(fa,Oe({},nt,{order:be,key:Ue,item:_e,renderItem:Je,itemKey:Ue,registerSize:st,display:be<=pe}))},dt,ke={order:xe?pe:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ze,display:xe};if(g)g&&(dt=c.createElement(_o.Provider,{value:z(z({},nt),ke)},g(Ke)));else{var Be=p||Yy;dt=c.createElement(fa,Oe({},nt,ke),typeof Be=="function"?Be(Ke):Be)}var ze=c.createElement(y,Oe({className:Z(!rt&&n,b),style:v,ref:t},E),je.map(Ct),Xe?dt:null,C&&c.createElement(fa,Oe({},nt,{responsive:me,responsiveDisabled:!he,order:pe,className:"".concat(oe,"-suffix"),registerSize:De,display:!0,style:qe}),C));return me&&(ze=c.createElement(gr,{onResize:Ne,disabled:!he},ze)),ze}var Fr=c.forwardRef(Zy);Fr.displayName="Overflow";Fr.Item=wf;Fr.RESPONSIVE=$f;Fr.INVALIDATE=Of;function Qy(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function Jy(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(ln,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var Rf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Rf.displayName="PopupContent");var _f=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,N=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,T=e.onPrepare,O=e.stretch,I=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,k=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],Q=q[1];if(St(function(){!Y&&K&&i&&Q(!0)},[Y,K,i]),!Y)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(N||!l){var ae,fe=p.points,de=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ve=de&&fe[0][1]==="r",we=de&&fe[0][0]==="b";ve?(te.right=A,te.left=J):(te.left=F,te.right=J),we?(te.bottom=M,te.top=J):(te.top=j,te.bottom=J)}var B={};return O&&(O.includes("height")&&D?B.height=D:O.includes("minHeight")&&D&&(B.minHeight=D),O.includes("width")&&I?B.width=I:O.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||k,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(Jy,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(gr,{onResize:H,disabled:!l},function(ce){return c.createElement(ln,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(Se){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,Se),s(Se)}}),function(se,Se){var pe=se.className,ne=se.style,ge=Z(a,pe,n);return c.createElement("div",{ref:Rr(ce,t,Se),className:ge,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(Qy,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Rf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(_f.displayName="Popup");var Pf=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=sn(r),o=c.useCallback(function(s){Us(t,n?n(s):s)},[n]),i=Pa(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Pf.displayName="TriggerWrapper");var Hc=c.createContext(null);function Wc(e){return e?Array.isArray(e)?e:[e]:[]}function eC(e,t,r,n){return c.useMemo(function(){var a=Wc(r??t),o=Wc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function tC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function rC(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(tC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Gc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Ms(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Aa(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ra(e){return Oa(parseFloat(e),0)}function Uc(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Aa(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=ra(s),C=ra(l),m=ra(u),y=ra(d),x=Oa(Math.round(f.width/h*1e3)/1e3),S=Oa(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,N=m*x,F=y*x,j=0,A=0;if(o==="clip"){var M=ra(i);j=M*x,A=M*S}var H=f.x+N-j,T=f.y+w-A,O=H+f.width+2*j-N-F-E,I=T+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,T),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function Kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function qc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[Kc(e.width,a),Kc(e.height,o)]}function Xc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function hn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Wr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function nC(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Ms(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=kt(function(){if(t&&r&&e){let Ut=function(Kt,ur){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,fn=V.x+Kt,Yn=V.y+ur,Zn=fn+ae,za=Yn+te,Qo=Math.max(fn,Hr.left),Jo=Math.max(Yn,Hr.top),ei=Math.min(Zn,Hr.right),ti=Math.min(za,Hr.bottom);return Math.max(0,(ei-Qo)*(ti-Jo))},Qr=function(){P=V.y+Be,G=P+te,X=V.x+ke,ie=X+ae};var m,y,x=t,S=x.ownerDocument,E=Aa(x),R=E.getComputedStyle(x),w=R.width,$=R.height,N=R.position,F=x.style.left,j=x.style.top,A=x.style.right,M=x.style.bottom,H=x.style.overflow,T=z(z({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=N,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var V=x.getBoundingClientRect(),k=S.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Y=k.scrollHeight,Q=k.scrollTop,J=k.scrollLeft,te=V.height,ae=V.width,fe=I.height,de=I.width,ve={left:0,top:0,right:K,bottom:W},we={left:-J,top:-Q,right:q-J,bottom:Y-Q},B=T.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var Se=B===se,pe=Uc(we,v),ne=Uc(ve,v),ge=B===ce?ne:pe,Ee=Se?ne:ge;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ae=x.getBoundingClientRect();x.style.left=F,x.style.top=j,x.style.right=A,x.style.bottom=M,x.style.overflow=H,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var oe=Oa(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Oa(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||va(r)&&!cl(r))return;var me=T.offset,he=T.targetOffset,rt=qc(V,me),Xe=U(rt,2),je=Xe[0],Ke=Xe[1],Ye=qc(I,he),Je=U(Ye,2),Le=Je[0],Ne=Je[1];I.x-=Le,I.y-=Ne;var st=T.points||[],Ze=U(st,2),De=Ze[0],ue=Ze[1],xe=Xc(ue),qe=Xc(De),nt=hn(I,xe),Ct=hn(V,qe),dt=z({},T),ke=nt.x-Ct.x+je,Be=nt.y-Ct.y+Ke,ze=Ut(ke,Be),_e=Ut(ke,Be,ne),be=hn(I,["t","l"]),Ue=hn(V,["t","l"]),ht=hn(I,["b","r"]),He=hn(V,["b","r"]),We=T.overflow||{},lt=We.adjustX,yt=We.adjustY,_t=We.shiftX,zt=We.shiftY,Ht=function(ur){return typeof ur=="boolean"?ur:ur>=0},P,G,X,ie;Qr();var Pe=Ht(yt),$e=qe[0]===xe[0];if(Pe&&qe[0]==="t"&&(G>Ee.bottom||b.current.bt)){var Te=Be;$e?Te-=te-fe:Te=be.y-He.y-Ke;var Me=Ut(ke,Te),gt=Ut(ke,Te,ne);Me>ze||Me===ze&&(!Se||gt>=_e)?(b.current.bt=!0,Be=Te,Ke=-Ke,dt.points=[Wr(qe,0),Wr(xe,0)]):b.current.bt=!1}if(Pe&&qe[0]==="b"&&(P<Ee.top||b.current.tb)){var tt=Be;$e?tt+=te-fe:tt=ht.y-Ue.y-Ke;var Ve=Ut(ke,tt),wt=Ut(ke,tt,ne);Ve>ze||Ve===ze&&(!Se||wt>=_e)?(b.current.tb=!0,Be=tt,Ke=-Ke,dt.points=[Wr(qe,0),Wr(xe,0)]):b.current.tb=!1}var Wt=Ht(lt),Vt=qe[1]===xe[1];if(Wt&&qe[1]==="l"&&(ie>Ee.right||b.current.rl)){var mt=ke;Vt?mt-=ae-de:mt=be.x-He.x-je;var Cr=Ut(mt,Be),Vr=Ut(mt,Be,ne);Cr>ze||Cr===ze&&(!Se||Vr>=_e)?(b.current.rl=!0,ke=mt,je=-je,dt.points=[Wr(qe,1),Wr(xe,1)]):b.current.rl=!1}if(Wt&&qe[1]==="r"&&(X<Ee.left||b.current.lr)){var Gt=ke;Vt?Gt+=ae-de:Gt=ht.x-Ue.x-je;var Br=Ut(Gt,Be),Gn=Ut(Gt,Be,ne);Br>ze||Br===ze&&(!Se||Gn>=_e)?(b.current.lr=!0,ke=Gt,je=-je,dt.points=[Wr(qe,1),Wr(xe,1)]):b.current.lr=!1}Qr();var rr=_t===!0?0:_t;typeof rr=="number"&&(X<ne.left&&(ke-=X-ne.left-je,I.x+de<ne.left+rr&&(ke+=I.x-ne.left+de-rr)),ie>ne.right&&(ke-=ie-ne.right-je,I.x>ne.right-rr&&(ke+=I.x-ne.right+rr)));var lr=zt===!0?0:zt;typeof lr=="number"&&(P<ne.top&&(Be-=P-ne.top-Ke,I.y+fe<ne.top+lr&&(Be+=I.y-ne.top+fe-lr)),G>ne.bottom&&(Be-=G-ne.bottom-Ke,I.y>ne.bottom-lr&&(Be+=I.y-ne.bottom+lr)));var kr=V.x+ke,_r=kr+ae,Sr=V.y+Be,Pr=Sr+te,Zr=I.x,Tr=Zr+de,cr=I.y,Un=cr+fe,Kn=Math.max(kr,Zr),qn=Math.min(_r,Tr),dn=(Kn+qn)/2,pt=dn-kr,at=Math.max(Sr,cr),ft=Math.min(Pr,Un),It=(at+ft)/2,At=It-Sr;i==null||i(t,dt);var xr=Ae.right-V.x-(ke+V.width),Er=Ae.bottom-V.y-(Be+V.height);oe===1&&(ke=Math.round(ke),xr=Math.round(xr)),re===1&&(Be=Math.round(Be),Er=Math.round(Er));var Xn={ready:!0,offsetX:ke/oe,offsetY:Be/re,offsetR:xr/oe,offsetB:Er/re,arrowX:pt/oe,arrowY:At/re,scaleX:oe,scaleY:re,align:dt};d(Xn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function aC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Ms(o),l=Ms(i),u=Aa(i),d=new Set([u].concat(ye(s),ye(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function oC(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=wo(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Tn(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var iC=["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 sC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,N=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,T=H===void 0?{}:H,O=r.popupAlign,I=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,k=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,Q=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,we=r.getTriggerDOMNode,B=et(r,iC),ce=$||N||!1,se=c.useState(!1),Se=U(se,2),pe=Se[0],ne=Se[1];St(function(){ne(Ef())},[]);var ge=c.useRef({}),Ee=c.useContext(Hc),Ae=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){ge.current[Fe]=xt,Ee==null||Ee.registerSubPopup(Fe,xt)}}},[Ee]),oe=Q0(),re=c.useState(null),me=U(re,2),he=me[0],rt=me[1],Xe=c.useRef(null),je=kt(function(Ce){Xe.current=Ce,va(Ce)&&he!==Ce&&rt(Ce),Ee==null||Ee.registerSubPopup(oe,Ce)}),Ke=c.useState(null),Ye=U(Ke,2),Je=Ye[0],Le=Ye[1],Ne=c.useRef(null),st=kt(function(Ce){va(Ce)&&Je!==Ce&&(Le(Ce),Ne.current=Ce)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},ue={},xe=kt(function(Ce){var Fe,xt,Pt=Je;return(Pt==null?void 0:Pt.contains(Ce))||((Fe=wo(Pt))===null||Fe===void 0?void 0:Fe.host)===Ce||Ce===Pt||(he==null?void 0:he.contains(Ce))||((xt=wo(he))===null||xt===void 0?void 0:xt.host)===Ce||Ce===he||Object.values(ge.current).some(function(Et){return(Et==null?void 0:Et.contains(Ce))||Ce===Et})}),qe=Gc(o,Q,ae,te),nt=Gc(o,J,de,fe),Ct=c.useState(v||!1),dt=U(Ct,2),ke=dt[0],Be=dt[1],ze=f??ke,_e=kt(function(Ce){f===void 0&&Be(Ce)});St(function(){Be(f||!1)},[f]);var be=c.useRef(ze);be.current=ze;var Ue=c.useRef([]);Ue.current=[];var ht=kt(function(Ce){var Fe;_e(Ce),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Ce&&(Ue.current.push(Ce),b==null||b(Ce))}),He=c.useRef(),We=function(){clearTimeout(He.current)},lt=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?ht(Fe):He.current=setTimeout(function(){ht(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),_t=U(yt,2),zt=_t[0],Ht=_t[1];St(function(Ce){(!Ce||ze)&&Ht(!0)},[ze]);var P=c.useState(null),G=U(P,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),$e=U(Pe,2),Te=$e[0],Me=$e[1],gt=function(Fe){Me([Fe.clientX,Fe.clientY])},tt=nC(ze,he,K?Te:Je,M,T,O,q),Ve=U(tt,11),wt=Ve[0],Wt=Ve[1],Vt=Ve[2],mt=Ve[3],Cr=Ve[4],Vr=Ve[5],Gt=Ve[6],Br=Ve[7],Gn=Ve[8],rr=Ve[9],lr=Ve[10],kr=eC(pe,l,u,d),_r=U(kr,2),Sr=_r[0],Pr=_r[1],Zr=Sr.has("click"),Tr=Pr.has("click")||Pr.has("contextMenu"),cr=kt(function(){zt||lr()}),Un=function(){be.current&&K&&Tr&<(!1)};aC(ze,Je,he,cr,Un),St(function(){cr()},[Te,M]),St(function(){ze&&!(T!=null&&T[M])&&cr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Ce=rC(T,o,rr,K);return Z(Ce,V==null?void 0:V(rr))},[rr,V,T,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:cr}});var qn=c.useState(0),dn=U(qn,2),pt=dn[0],at=dn[1],ft=c.useState(0),It=U(ft,2),At=It[0],xr=It[1],Er=function(){if(D&&Je){var Fe=Je.getBoundingClientRect();at(Fe.width),xr(Fe.height)}},Xn=function(){Er(),cr()},Ut=function(Fe){Ht(!1),lr(),h==null||h(Fe)},Qr=function(){return new Promise(function(Fe){Er(),ie(function(){return Fe})})};St(function(){X&&(lr(),X(),ie(null))},[X]);function Kt(Ce,Fe,xt,Pt){ue[Ce]=function(Et){var Va;Pt==null||Pt(Et),lt(Fe,xt);for(var ri=arguments.length,Ol=new Array(ri>1?ri-1:0),Ba=1;Ba<ri;Ba++)Ol[Ba-1]=arguments[Ba];(Va=De[Ce])===null||Va===void 0||Va.call.apply(Va,[De,Et].concat(Ol))}}(Zr||Tr)&&(ue.onClick=function(Ce){var Fe;be.current&&Tr?lt(!1):!be.current&&Zr&&(gt(Ce),lt(!0));for(var xt=arguments.length,Pt=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)Pt[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Ce].concat(Pt))}),oC(ze,Tr,Je,he,x,E,xe,lt);var ur=Sr.has("hover"),Hr=Pr.has("hover"),fn,Yn;ur&&(Kt("onMouseEnter",!0,p,function(Ce){gt(Ce)}),Kt("onPointerEnter",!0,p,function(Ce){gt(Ce)}),fn=function(Fe){(ze||zt)&&he!==null&&he!==void 0&&he.contains(Fe.target)&<(!0,p)},K&&(ue.onMouseMove=function(Ce){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Ce)})),Hr&&(Kt("onMouseLeave",!1,C),Kt("onPointerLeave",!1,C),Yn=function(){lt(!1,C)}),Sr.has("focus")&&Kt("onFocus",!0,m),Pr.has("focus")&&Kt("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Ce){var Fe;be.current&&Pr.has("contextMenu")?lt(!1):(gt(Ce),lt(!0)),Ce.preventDefault();for(var xt=arguments.length,Pt=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)Pt[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Ce].concat(Pt))}),ve&&(ue.className=Z(De.className,ve));var Zn=z(z({},De),ue),za={},Qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qo.forEach(function(Ce){B[Ce]&&(za[Ce]=function(){for(var Fe,xt=arguments.length,Pt=new Array(xt),Et=0;Et<xt;Et++)Pt[Et]=arguments[Et];(Fe=Zn[Ce])===null||Fe===void 0||Fe.call.apply(Fe,[Zn].concat(Pt)),B[Ce].apply(B,Pt)})});var Jo=c.cloneElement(Ze,z(z({},Zn),za)),ei={x:Vr,y:Gt},ti=Y?z({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(gr,{disabled:!ze,ref:st,onResize:Xn},c.createElement(Pf,{getTriggerDOMNode:we},Jo)),c.createElement(Hc.Provider,{value:Ae},c.createElement(_f,{portal:e,ref:je,prefixCls:o,popup:F,className:Z(j,Kn),style:A,target:Je,onMouseEnter:fn,onMouseLeave:Yn,onPointerEnter:fn,zIndex:I,open:ze,keepDom:zt,fresh:k,onClick:W,mask:x,motion:qe,maskMotion:nt,onVisibleChanged:Ut,onPrepare:Qr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:rr,arrow:ti,arrowPos:ei,ready:wt,offsetX:Wt,offsetY:Vt,offsetR:mt,offsetB:Cr,onAlign:cr,stretch:D,targetWidth:pt/Br,targetHeight:At/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gl=sC(fl);function As(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Tf=(e,t)=>t||e,Nf=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=_.useContext(it),s=_.useContext(qb),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=dp.includes(u);return[u,d]};var lC={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"},cC=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:lC}))},If=c.forwardRef(cC);process.env.NODE_ENV!=="production"&&(If.displayName="CheckOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],uC=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)`}),dC=e=>{const t=e,r=[].concat(Ra).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function fC(){const[,e]=Dr(),t=uC(dC(e));return _.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Mf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var bn={shiftX:64,adjustY:1},yn={adjustX:1,shiftY:!0},ar=[0,0],vC={left:{points:["cr","cl"],overflow:yn,offset:[-4,0],targetOffset:ar},right:{points:["cl","cr"],overflow:yn,offset:[4,0],targetOffset:ar},top:{points:["bc","tc"],overflow:bn,offset:[0,-4],targetOffset:ar},bottom:{points:["tc","bc"],overflow:bn,offset:[0,4],targetOffset:ar},topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-4],targetOffset:ar},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0],targetOffset:ar},topRight:{points:["br","tr"],overflow:bn,offset:[0,-4],targetOffset:ar},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0],targetOffset:ar},bottomRight:{points:["tr","br"],overflow:bn,offset:[0,4],targetOffset:ar},rightBottom:{points:["bl","br"],overflow:yn,offset:[4,0],targetOffset:ar},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,4],targetOffset:ar},leftBottom:{points:["br","bl"],overflow:yn,offset:[-4,0],targetOffset:ar}},gC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],mC=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,T=et(t,gC),O=_.useRef(null);_.useImperativeHandle(r,function(){return O.current});var I=z({},T);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(Mf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(gl,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:vC,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const pC=_.forwardRef(mC);function hC(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,C=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,x=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const bC=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Af=8;function jf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Af:n}}function eo(e,t){return e?t:{}}function yC(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},bC(e,t,a)),{"&:before":{background:t}})]},eo(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),eo(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),eo(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),eo(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function CC(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Yc={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"]}},SC={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"]}},xC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function EC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Yc).forEach(u=>{const d=n&&SC[u]||Yc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,xC.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=jf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=CC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const wC=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ee(e.calc(u).div(2).equal())} ${ee(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Af)}},[`${t}-content`]:{position:"relative"}}),Bp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},yC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$C=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),hC(Dt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ff=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Dt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[wC(s),Vy(n,"zoom-big-fast")]},$C,{resetStyle:!1,injectStyle:t})(e)},OC=Eo.map(e=>`${e}-inverse`);function RC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(OC),ye(Eo)).includes(e):Eo.includes(e)}function Lf(e,t){const r=RC(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const _C=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(it),l=s("tooltip",t),[u,d,f]=Ff(l),v=Lf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(Mf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var PC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const TC=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Dr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(it),$=Mt("Tooltip"),N=c.useRef(null),F=()=>{var oe;(oe=N.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=N.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[re,me]=oe;$.deprecated(!(re in e),re,me)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,A]=ir(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=!p&&!g&&p!==0,H=oe=>{var re,me;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(me=e.onVisibleChange)===null||me===void 0||me.call(e,oe))},T=c.useMemo(()=>{var oe,re;let me=m;return typeof h=="object"&&(me=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),C||EC({arrowPointAtCenter:me,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),I=c.createElement(Is,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=PC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=R("tooltip",a),J=R(),te=e["data-popover-inject"];let ae=j;!("open"in e)&&!("visible"in e)&&M&&(ae=!1);const fe=c.isValidElement(d)&&!Yd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Z(de.className,o||`${Q}-open`):de.className,[we,B,ce]=Ff(Q,!te),se=Lf(Q,l),Se=se.arrowStyle,pe=Object.assign(Object.assign({},u),se.overlayStyle),ne=Z(s,{[`${Q}-rtl`]:w==="rtl"},se.className,q,B,ce),[ge,Ee]=kh("Tooltip",Y.zIndex),Ae=c.createElement(pC,Object.assign({},Y,{zIndex:ge,showArrow:x,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Q,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Se),W),getTooltipContainer:D||i||E,ref:N,builtinPlacements:T,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:pe,arrowContent:c.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Qd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Vo(fe,{className:ve}):fe);return we(c.createElement(ll.Provider,{value:Ee},Ae))}),ja=TC;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=_C;var NC=le.ESC,IC=le.TAB;function MC(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case NC:s();break;case IC:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var AC=_.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=_.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Rr(t,o==null?void 0:o.ref);return _.createElement(_.Fragment,null,n&&_.createElement("div",{className:"".concat(a,"-arrow")}),_.cloneElement(o,{ref:sn(o)?i:void 0}))}),Cn={adjustX:1,adjustY:1},Sn=[0,0],jC={topLeft:{points:["bl","tl"],overflow:Cn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:Cn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:Cn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:Cn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:Cn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:Cn,offset:[0,4],targetOffset:Sn}},FC=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function LC(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?jC:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,N=et(e,FC),F=_.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,T=_.useRef(null),O=_.useRef(null),I=_.useRef(null);_.useImperativeHandle(t,function(){return T.current});var D=function(te){M(te),$==null||$(te)};MC({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:E,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return _.createElement(AC,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?k:k()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=_.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:sn(w)?Rr(I,w.ref):void 0}),Q=g;return!Q&&S.indexOf("contextMenu")!==-1&&(Q=["click"]),_.createElement(gl,Oe({builtinPlacements:b},N,{prefixCls:i,ref:T,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:Q,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Y)}const DC=_.forwardRef(LC);var Df=c.createContext(null);function zf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Vf(e){var t=c.useContext(Df);return zf(t,e)}var zC=["children","locked"],hr=c.createContext(null);function VC(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=et(e,zC),a=c.useContext(hr),o=Io(function(){return VC(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(hr.Provider,{value:o},t)}var BC=[],Bf=c.createContext(null);function Uo(){return c.useContext(Bf)}var kf=c.createContext(BC);function Fa(e){var t=c.useContext(kf);return c.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Hf=c.createContext(null),ml=c.createContext({});function Zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function kC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return Zc(n,t)});return Zc(e,t)&&r.unshift(e),r}var js=le.LEFT,Fs=le.RIGHT,Ls=le.UP,go=le.DOWN,mo=le.ENTER,Wf=le.ESC,na=le.HOME,aa=le.END,Qc=[Ls,go,js,Fs];function HC(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===mo)return{inlineTrigger:!0};var v=(a={},L(a,Ls,l),L(a,go,u),a),b=(o={},L(o,js,r?u:l),L(o,Fs,r?l:u),L(o,go,d),L(o,mo,d),o),h=(i={},L(i,Ls,l),L(i,go,u),L(i,mo,d),L(i,Wf,f),L(i,js,r?d:f),L(i,Fs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function WC(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function GC(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function pl(e,t){var r=kC(e,!0);return r.filter(function(n){return t.has(n)})}function Jc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=pl(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ds=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(zf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function UC(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Qc,[mo,Wf,na,aa]).includes(h)){var p=o(),g=Ds(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=GC(S,m),R=x.get(E),w=HC(e,i(R,!0).length===1,r,h);if(!w&&h!==na&&h!==aa)return;(Qc.includes(h)||[na,aa].includes(h))&&b.preventDefault();var $=function(O){if(O){var I=O,D=O.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var V=x.get(O);s(V),v(),d.current=Tt(function(){f.current===V&&I.focus()})}};if([na,aa].includes(h)||w.sibling||!E){var N;!E||e==="inline"?N=a.current:N=WC(E);var F,j=pl(N,m);h===na?F=j[0]:h===aa?F=j[j.length-1]:F=Jc(N,m,E,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Ds(p,n);var T=E.getAttribute("aria-controls"),O=document.getElementById(T),I=Jc(O,g.elements);$(I)},5);else if(w.offset<0){var A=i(R,!0),M=A[A.length-2],H=y.get(M);l(M,!1),$(H)}}u==null||u(b)}}function KC(e){Promise.resolve().then(e)}var hl="__RC_UTIL_PATH_SPLIT__",eu=function(t){return t.join(hl)},qC=function(t){return t.split(hl)},zs="rc-menu-more";function XC(){var e=c.useState({}),t=U(e,2),r=t[1],n=_.useRef(new Map),a=_.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=_.useRef(0),d=_.useRef(!1),f=function(){d.current||r({})},v=_.useCallback(function(y,x){process.env.NODE_ENV!=="production"&&ot(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=eu(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;KC(function(){E===u.current&&f()})},[]),b=_.useCallback(function(y,x){var S=eu(x);a.current.delete(S),n.current.delete(y)},[]),h=_.useCallback(function(y){l(y)},[]),p=_.useCallback(function(y,x){var S=n.current.get(y)||"",E=qC(S);return x&&s.includes(E[0])&&E.unshift(zs),E},[s]),g=_.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=ye(n.current.keys());return s.length&&x.push(zs),x},m=_.useCallback(function(y){var x="".concat(n.current.get(y)).concat(hl),S=new Set;return ye(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function ia(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var YC=Math.random().toFixed(5).toString().slice(2),tu=0;function ZC(e){var t=ir(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){tu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(YC,"-").concat(tu);a("rc-menu-uuid-".concat(o))},[]),n}function Gf(e,t,r,n){var a=c.useContext(hr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Uf(e){var t=c.useContext(hr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Kf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var QC=["item"];function Po(e){var t=e.item,r=et(e,QC);return Object.defineProperty(r,"item",{get:function(){return ot(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var JC=["title","attribute","elementRef"],eS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],tS=["active"],rS=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=et(a,JC),u=br(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ot(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Fr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),nS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=et(e,eS),C=Vf(o),m=c.useContext(hr),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,N=c.useContext(ml),F=N._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=S||s,T=Pa(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&ot(!1,"MenuItem should not leave undefined `key`.");var I=function(de){return{key:o,keyPath:ye(O).reverse(),item:A.current,domEvent:de}},D=l||R,V=Gf(o,H,f,v),k=V.active,K=et(V,tS),W=w.includes(o),q=Uf(O.length),Y=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),x(ve)}},Q=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),x(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(rS,Oe({ref:A,elementRef:T,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Z(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Y,onKeyDown:Q,onFocus:J}),u,c.createElement(Kf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function aS(e,t){var r=e.eventKey,n=Uo(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(nS,Oe({},e,{ref:t}))}const Ko=c.forwardRef(aS);var oS=["className","children"],iS=function(t,r){var n=t.className,a=t.children,o=et(t,oS),i=c.useContext(hr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",Oe({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},bl=c.forwardRef(iS);bl.displayName="SubMenuList";function yl(e,t){return Or(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(ye(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Bt={adjustX:1,adjustY:1},sS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},lS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function qf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var cS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function uS(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(hr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],N=z(b?z({},lS):z({},sS),g),F=cS[u],j=qf(u,x,S),A=c.useRef(j);u!=="inline"&&(A.current=j);var M=z(z({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=Tt(function(){$(r)}),function(){Tt.cancel(H.current)}},[r]),c.createElement(gl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:N,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:M,fresh:!0},n)}function dS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(hr),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=z({},qf(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(ln,Oe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement(bl,{id:t,className:S,style:E},a)}))}var fS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vS=["active"],gS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=et(e,fS),R=Vf(i),w=c.useContext(hr),$=w.prefixCls,N=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,T=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(ml),K=k._internalRenderSubMenuItem,W=c.useContext(Hf),q=W.isSubPathKey,Y=Fa(),Q="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&ot(!1,"SubMenu should not leave undefined `key`.");var fe=f??T,de=v??O,ve=F.includes(i),we=!A&&ve,B=q(H,i),ce=Gf(i,J,x,S),se=ce.active,Se=et(ce,vS),pe=c.useState(!1),ne=U(pe,2),ge=ne[0],Ee=ne[1],Ae=function(De){J||Ee(De)},oe=function(De){Ae(!0),C==null||C({key:i,domEvent:De})},re=function(De){Ae(!1),m==null||m({key:i,domEvent:De})},me=c.useMemo(function(){return se||(N!=="inline"?ge||q([M],i):!1)},[N,se,M,ge,i,q]),he=Uf(Y.length),rt=function(De){J||(y==null||y({key:i,domEvent:De}),N==="inline"&&D(i,!ve))},Xe=ia(function(Ze){g==null||g(Po(Ze)),I(Ze)}),je=function(De){N!=="inline"&&D(i,De)},Ke=function(){V(i)},Ye=R&&"".concat(R,"-popup"),Je=c.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Q,"-title"),tabIndex:J?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:rt,onFocus:Ke},Se),o,c.createElement(Kf,{icon:N!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},c.createElement("i",{className:"".concat(Q,"-arrow")}))),Le=c.useRef(N);if(N!=="inline"&&Y.length>1?Le.current="vertical":Le.current=N,!A){var Ne=Le.current;Je=c.createElement(uS,{mode:Ne,prefixCls:Q,visible:!u&&we&&N!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(bl,{id:Ye,ref:ae},d)),disabled:J,onVisibleChange:je},Je)}var st=c.createElement(Fr.Item,Oe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(Q,"".concat(Q,"-").concat(N),a,(r={},L(r,"".concat(Q,"-open"),we),L(r,"".concat(Q,"-active"),me),L(r,"".concat(Q,"-selected"),B),L(r,"".concat(Q,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Je,!A&&c.createElement(dS,{id:Ye,open:we,keyPath:Y},d));return K&&(st=K(st,e,{selected:B,active:me,open:we,disabled:J})),c.createElement(_a,{onItemClick:Xe,mode:N==="horizontal"?"vertical":N,itemIcon:fe,expandIcon:de},st)}),qo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Uo();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(gS,Oe({ref:t},e),o),c.createElement(kf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(qo.displayName="SubMenu");function Xf(e){var t=e.className,r=e.style,n=c.useContext(hr),a=n.prefixCls,o=Uo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var mS=["className","title","eventKey","children"],pS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=et(e,mS),i=c.useContext(hr),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Cl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Uo();return i?o:c.createElement(pS,Oe({ref:t},br(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Cl.displayName="MenuItemGroup");var hS=["label","children","key","type"];function Vs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=et(l,hS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,Oe({key:h},b,{title:u}),Vs(d,t)):c.createElement(a,Oe({key:h},b,{title:u}),Vs(d,t)):v==="divider"?c.createElement(o,Oe({key:h},b)):c.createElement(r,Oe({key:h},b),u)}return null}).filter(function(i){return i})}function ru(e,t,r,n){var a=e,o=z({divider:Xf,item:Ko,group:Cl,submenu:qo},n);return t&&(a=Vs(t,o)),yl(a,r)}var bS=["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"],Jr=[],yS=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,N=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,T=a.multiple,O=T===void 0?!1:T,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,Q=a.triggerSubMenuAction,J=Q===void 0?"hover":Q,te=a.builtinPlacements,ae=a.itemIcon,fe=a.expandIcon,de=a.overflowedIndicator,ve=de===void 0?"...":de,we=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ce=a.onClick,se=a.onOpenChange,Se=a.onKeyDown,pe=a.openAnimation,ne=a.openTransitionName,ge=a._internalRenderMenuItem,Ee=a._internalRenderSubMenuItem,Ae=a._internalComponents,oe=et(a,bS),re=c.useMemo(function(){return[ru(b,v,Jr,Ae),ru(b,v,Jr,{})]},[b,v,Ae]),me=U(re,2),he=me[0],rt=me[1],Xe=c.useState(!1),je=U(Xe,2),Ke=je[0],Ye=je[1],Je=c.useRef(),Le=ZC(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&ot(!pe&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=ir(N,{value:F,postState:function(at){return at||Jr}}),Ze=U(st,2),De=Ze[0],ue=Ze[1],xe=function(at){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function It(){ue(at),se==null||se(at)}ft?Pn.flushSync(It):It()},qe=c.useState(De),nt=U(qe,2),Ct=nt[0],dt=nt[1],ke=c.useRef(!1),Be=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(Be,2),_e=ze[0],be=ze[1],Ue=_e==="inline",ht=c.useState(_e),He=U(ht,2),We=He[0],lt=He[1],yt=c.useState(be),_t=U(yt,2),zt=_t[0],Ht=_t[1];c.useEffect(function(){lt(_e),Ht(be),ke.current&&(Ue?ue(Ct):xe(Jr))},[_e,be]);var P=c.useState(0),G=U(P,2),X=G[0],ie=G[1],Pe=X>=he.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&dt(De)},[De]),c.useEffect(function(){return ke.current=!0,function(){ke.current=!1}},[]);var $e=XC(),Te=$e.registerPath,Me=$e.unregisterPath,gt=$e.refreshOverflowKeys,tt=$e.isSubPathKey,Ve=$e.getKeyPath,wt=$e.getKeys,Wt=$e.getSubPathKeys,Vt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),mt=c.useMemo(function(){return{isSubPathKey:tt}},[tt]);c.useEffect(function(){gt(Pe?Jr:he.slice(X+1).map(function(pt){return pt.key}))},[X,Pe]);var Cr=ir(j||A&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),Vr=U(Cr,2),Gt=Vr[0],Br=Vr[1],Gn=ia(function(pt){Br(pt)}),rr=ia(function(){Br(void 0)});_.useImperativeHandle(t,function(){return{list:Je.current,focus:function(at){var ft,It=wt(),At=Ds(It,Le),xr=At.elements,Er=At.key2element,Xn=At.element2key,Ut=pl(Je.current,xr),Qr=Gt??(Ut[0]?Xn.get(Ut[0]):(ft=he.find(function(Hr){return!Hr.props.disabled}))===null||ft===void 0?void 0:ft.key),Kt=Er.get(Qr);if(Qr&&Kt){var ur;Kt==null||(ur=Kt.focus)===null||ur===void 0||ur.call(Kt,at)}}}});var lr=ir(I||[],{value:D,postState:function(at){return Array.isArray(at)?at:at==null?Jr:[at]}}),kr=U(lr,2),_r=kr[0],Sr=kr[1],Pr=function(at){if(H){var ft=at.key,It=_r.includes(ft),At;O?It?At=_r.filter(function(Er){return Er!==ft}):At=[].concat(ye(_r),[ft]):At=[ft],Sr(At);var xr=z(z({},at),{},{selectedKeys:At});It?k==null||k(xr):V==null||V(xr)}!O&&De.length&&We!=="inline"&&xe(Jr)},Zr=ia(function(pt){ce==null||ce(Po(pt)),Pr(pt)}),Tr=ia(function(pt,at){var ft=De.filter(function(At){return At!==pt});if(at)ft.push(pt);else if(We!=="inline"){var It=Wt(pt);ft=ft.filter(function(At){return!It.has(At)})}ba(De,ft,!0)||xe(ft,!0)}),cr=function(at,ft){var It=ft??!De.includes(at);Tr(at,It)},Un=UC(We,Gt,Ne,Le,Je,wt,Ve,Br,cr,Se);c.useEffect(function(){Ye(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:Ee}},[ge,Ee]),qn=We!=="horizontal"||x?he:he.map(function(pt,at){return c.createElement(_a,{key:pt.key,overflowDisabled:at>X},pt)}),dn=c.createElement(Fr,Oe({id:p,ref:Je,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ko,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),zt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(at){return at},renderRawRest:function(at){var ft=at.length,It=ft?he.slice(-ft):null;return c.createElement(qo,{eventKey:zs,title:ve,disabled:Pe,internalPopupClose:ft===0,popupClassName:we},It)},maxCount:We!=="horizontal"||x?Fr.INVALIDATE:Fr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){ie(at)},onKeyDown:Un},oe));return c.createElement(ml.Provider,{value:Kn},c.createElement(Df.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Gt,onActive:Gn,onInactive:rr,selectedKeys:_r,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Zr,onOpenChange:Tr},c.createElement(Hf.Provider,{value:mt},dn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Bf.Provider,{value:Vt},rt)))))}),La=yS;La.Item=Ko;La.SubMenu=qo;La.ItemGroup=Cl;La.Divider=Xf;var CS={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"},SS=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:CS}))},Yf=c.forwardRef(SS);process.env.NODE_ENV!=="production"&&(Yf.displayName="EllipsisOutlined");function xS(e){return Dt(e,{inputAffixPadding:e.paddingXXS})}const ES=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:C,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},wS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Sl=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({},wS(Dt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Zf=(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}}),nu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),$S=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sl(e))}),nu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),nu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),au=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),OS=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},au(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),au(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Sl(e))}})}),RS=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Qf=(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}}),ou=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_S=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sl(e))}),ou(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ou(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),iu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PS=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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},iu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),iu(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),TS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Jf=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},ev=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},TS(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({},Jf(e)),"&-sm":Object.assign({},ev(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),NS=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Jf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ev(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ta()),{[`${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},[`
|
|
226
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wf=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 Gy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pn=void 0;function Uy(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,C=et(e,Gy),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==pn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:pn,overflowY:m?"hidden":pn,order:i?h:pn,pointerEvents:m?"none":pn,position:m?"absolute":pn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,we({className:Z(!n&&r,d),style:z(z({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(gr,{onResize:function($){var N=$.offsetWidth;y(N)},disabled:s},R)),R}var fa=c.forwardRef(Uy);fa.displayName="Item";function Ky(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function qy(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Ky(function(){Pn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function ta(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var _o=_.createContext(null),Xy=["component"],Yy=["className"],Zy=["className"],Qy=function(t,r){var n=c.useContext(_o);if(!n){var a=t.component,o=a===void 0?"div":a,i=et(t,Xy);return c.createElement(o,we({},i,{ref:r}))}var s=n.className,l=et(n,Yy),u=t.className,d=et(t,Zy);return c.createElement(_o.Provider,{value:null},c.createElement(fa,we({ref:r,className:Z(s,u)},l,d)))},$f=c.forwardRef(Qy);$f.displayName="RawItem";var Jy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Of="responsive",Rf="invalidate";function eC(e){return"+ ".concat(e.length," ...")}function tC(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=et(e,Jy),R=f==="full",w=qy(),$=ta(w,null),N=U($,2),F=N[0],j=N[1],A=F||0,M=ta(w,new Map),H=U(M,2),T=H[0],O=H[1],I=ta(w,0),D=U(I,2),V=D[0],k=D[1],K=ta(w,0),W=U(K,2),q=W[0],Y=W[1],Q=ta(w,0),J=U(Q,2),te=J[0],ae=J[1],fe=_.useState(null),de=U(fe,2),ve=de[0],Oe=de[1],B=_.useState(null),ce=U(B,2),se=ce[0],xe=ce[1],he=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=_.useState(!1),ge=U(ne,2),$e=ge[0],Ae=ge[1],oe="".concat(n,"-item"),re=Math.max(V,q),pe=h===Of,be=o.length&&pe,rt=h===Rf,Xe=be||typeof h=="number"&&o.length>h,je=_.useMemo(function(){var _e=o;return be?F===null&&R?_e=o:_e=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(_e=o.slice(0,h)),_e},[o,d,F,h,be]),Ke=_.useMemo(function(){return be?o.slice(he+1):o.slice(je.length)},[o,je,be,he]),Ye=_.useCallback(function(_e,ye){var Ue;return typeof l=="function"?l(_e):(Ue=l&&(_e==null?void 0:_e[l]))!==null&&Ue!==void 0?Ue:ye},[l]),Je=_.useCallback(i||function(_e){return _e},[i]);function Le(_e,ye,Ue){se===_e&&(ye===void 0||ye===ve)||(xe(_e),Ue||(Ae(_e<o.length-1),S==null||S(_e)),ye!==void 0&&Oe(ye))}function Ne(_e,ye){j(ye.clientWidth)}function st(_e,ye){O(function(Ue){var ht=new Map(Ue);return ye===null?ht.delete(_e):ht.set(_e,ye),ht})}function Ze(_e,ye){Y(ye),k(q)}function De(_e,ye){ae(ye)}function ue(_e){return T.get(Ye(je[_e],_e))}St(function(){if(A&&typeof re=="number"&&je){var _e=te,ye=je.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var ht=0;ht<ye;ht+=1){var He=ue(ht);if(R&&(He=He||0),He===void 0){Le(ht-1,void 0,!0);break}if(_e+=He,Ue===0&&_e<=A||ht===Ue-1&&_e+ue(Ue)<=A){Le(Ue,null);break}else if(_e+re>A){Le(ht-1,_e-He-te+q);break}}C&&ue(0)+te>A&&Oe(null)}},[A,T,q,te,Ye,je]);var Ee=$e&&!!Ke.length,qe={};ve!==null&&be&&(qe={position:"absolute",left:ve,top:0});var nt={prefixCls:oe,responsive:be,component:x,invalidate:rt},Ct=s?function(_e,ye){var Ue=Ye(_e,ye);return c.createElement(_o.Provider,{key:Ue,value:z(z({},nt),{},{order:ye,item:_e,itemKey:Ue,registerSize:st,display:ye<=he})},s(_e,ye))}:function(_e,ye){var Ue=Ye(_e,ye);return c.createElement(fa,we({},nt,{order:ye,key:Ue,item:_e,renderItem:Je,itemKey:Ue,registerSize:st,display:ye<=he}))},dt,ke={order:Ee?he:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ze,display:Ee};if(g)g&&(dt=c.createElement(_o.Provider,{value:z(z({},nt),ke)},g(Ke)));else{var Be=p||eC;dt=c.createElement(fa,we({},nt,ke),typeof Be=="function"?Be(Ke):Be)}var ze=c.createElement(y,we({className:Z(!rt&&n,b),style:v,ref:t},E),je.map(Ct),Xe?dt:null,C&&c.createElement(fa,we({},nt,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(oe,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(gr,{onResize:Ne,disabled:!be},ze)),ze}var Fr=c.forwardRef(tC);Fr.displayName="Overflow";Fr.Item=$f;Fr.RESPONSIVE=Of;Fr.INVALIDATE=Rf;function rC(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function nC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(ln,we({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var _f=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(_f.displayName="PopupContent");var Pf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,N=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,T=e.onPrepare,O=e.stretch,I=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,k=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],Q=q[1];if(St(function(){!Y&&K&&i&&Q(!0)},[Y,K,i]),!Y)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(N||!l){var ae,fe=p.points,de=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ve=de&&fe[0][1]==="r",Oe=de&&fe[0][0]==="b";ve?(te.right=A,te.left=J):(te.left=F,te.right=J),Oe?(te.bottom=M,te.top=J):(te.top=j,te.bottom=J)}var B={};return O&&(O.includes("height")&&D?B.height=D:O.includes("minHeight")&&D&&(B.minHeight=D),O.includes("width")&&I?B.width=I:O.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||k,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(nC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(gr,{onResize:H,disabled:!l},function(ce){return c.createElement(ln,we({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(xe){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,xe),s(xe)}}),function(se,xe){var he=se.className,ne=se.style,ge=Z(a,he,n);return c.createElement("div",{ref:Rr(ce,t,xe),className:ge,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(rC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(_f,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Pf.displayName="Popup");var Tf=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=sn(r),o=c.useCallback(function(s){Us(t,n?n(s):s)},[n]),i=Pa(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Tf.displayName="TriggerWrapper");var Wc=c.createContext(null);function Gc(e){return e?Array.isArray(e)?e:[e]:[]}function aC(e,t,r,n){return c.useMemo(function(){var a=Gc(r??t),o=Gc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function oC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function iC(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(oC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Uc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Ms(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Aa(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ra(e){return Oa(parseFloat(e),0)}function Kc(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Aa(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=ra(s),C=ra(l),m=ra(u),y=ra(d),x=Oa(Math.round(f.width/h*1e3)/1e3),S=Oa(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,N=m*x,F=y*x,j=0,A=0;if(o==="clip"){var M=ra(i);j=M*x,A=M*S}var H=f.x+N-j,T=f.y+w-A,O=H+f.width+2*j-N-F-E,I=T+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,T),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Xc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[qc(e.width,a),qc(e.height,o)]}function Yc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function hn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Wr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function sC(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Ms(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,ur){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,fn=V.x+qt,Yn=V.y+ur,Zn=fn+ae,za=Yn+te,Qo=Math.max(fn,Hr.left),Jo=Math.max(Yn,Hr.top),ei=Math.min(Zn,Hr.right),ti=Math.min(za,Hr.bottom);return Math.max(0,(ei-Qo)*(ti-Jo))},Qr=function(){P=V.y+Be,G=P+te,X=V.x+ke,ie=X+ae};var m,y,x=t,S=x.ownerDocument,E=Aa(x),R=E.getComputedStyle(x),w=R.width,$=R.height,N=R.position,F=x.style.left,j=x.style.top,A=x.style.right,M=x.style.bottom,H=x.style.overflow,T=z(z({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=N,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var V=x.getBoundingClientRect(),k=S.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Y=k.scrollHeight,Q=k.scrollTop,J=k.scrollLeft,te=V.height,ae=V.width,fe=I.height,de=I.width,ve={left:0,top:0,right:K,bottom:W},Oe={left:-J,top:-Q,right:q-J,bottom:Y-Q},B=T.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var xe=B===se,he=Kc(Oe,v),ne=Kc(ve,v),ge=B===ce?ne:he,$e=xe?ne:ge;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ae=x.getBoundingClientRect();x.style.left=F,x.style.top=j,x.style.right=A,x.style.bottom=M,x.style.overflow=H,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var oe=Oa(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Oa(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||va(r)&&!cl(r))return;var pe=T.offset,be=T.targetOffset,rt=Xc(V,pe),Xe=U(rt,2),je=Xe[0],Ke=Xe[1],Ye=Xc(I,be),Je=U(Ye,2),Le=Je[0],Ne=Je[1];I.x-=Le,I.y-=Ne;var st=T.points||[],Ze=U(st,2),De=Ze[0],ue=Ze[1],Ee=Yc(ue),qe=Yc(De),nt=hn(I,Ee),Ct=hn(V,qe),dt=z({},T),ke=nt.x-Ct.x+je,Be=nt.y-Ct.y+Ke,ze=Kt(ke,Be),_e=Kt(ke,Be,ne),ye=hn(I,["t","l"]),Ue=hn(V,["t","l"]),ht=hn(I,["b","r"]),He=hn(V,["b","r"]),We=T.overflow||{},lt=We.adjustX,yt=We.adjustY,_t=We.shiftX,Vt=We.shiftY,Wt=function(ur){return typeof ur=="boolean"?ur:ur>=0},P,G,X,ie;Qr();var Pe=Wt(yt),Re=qe[0]===Ee[0];if(Pe&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=Be;Re?Te-=te-fe:Te=ye.y-He.y-Ke;var Me=Kt(ke,Te),gt=Kt(ke,Te,ne);Me>ze||Me===ze&&(!xe||gt>=_e)?(b.current.bt=!0,Be=Te,Ke=-Ke,dt.points=[Wr(qe,0),Wr(Ee,0)]):b.current.bt=!1}if(Pe&&qe[0]==="b"&&(P<$e.top||b.current.tb)){var tt=Be;Re?tt+=te-fe:tt=ht.y-Ue.y-Ke;var Ve=Kt(ke,tt),wt=Kt(ke,tt,ne);Ve>ze||Ve===ze&&(!xe||wt>=_e)?(b.current.tb=!0,Be=tt,Ke=-Ke,dt.points=[Wr(qe,0),Wr(Ee,0)]):b.current.tb=!1}var Gt=Wt(lt),Bt=qe[1]===Ee[1];if(Gt&&qe[1]==="l"&&(ie>$e.right||b.current.rl)){var mt=ke;Bt?mt-=ae-de:mt=ye.x-He.x-je;var Cr=Kt(mt,Be),Vr=Kt(mt,Be,ne);Cr>ze||Cr===ze&&(!xe||Vr>=_e)?(b.current.rl=!0,ke=mt,je=-je,dt.points=[Wr(qe,1),Wr(Ee,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=ke;Bt?Ut+=ae-de:Ut=ht.x-Ue.x-je;var Br=Kt(Ut,Be),Gn=Kt(Ut,Be,ne);Br>ze||Br===ze&&(!xe||Gn>=_e)?(b.current.lr=!0,ke=Ut,je=-je,dt.points=[Wr(qe,1),Wr(Ee,1)]):b.current.lr=!1}Qr();var rr=_t===!0?0:_t;typeof rr=="number"&&(X<ne.left&&(ke-=X-ne.left-je,I.x+de<ne.left+rr&&(ke+=I.x-ne.left+de-rr)),ie>ne.right&&(ke-=ie-ne.right-je,I.x>ne.right-rr&&(ke+=I.x-ne.right+rr)));var lr=Vt===!0?0:Vt;typeof lr=="number"&&(P<ne.top&&(Be-=P-ne.top-Ke,I.y+fe<ne.top+lr&&(Be+=I.y-ne.top+fe-lr)),G>ne.bottom&&(Be-=G-ne.bottom-Ke,I.y>ne.bottom-lr&&(Be+=I.y-ne.bottom+lr)));var kr=V.x+ke,_r=kr+ae,Sr=V.y+Be,Pr=Sr+te,Zr=I.x,Tr=Zr+de,cr=I.y,Un=cr+fe,Kn=Math.max(kr,Zr),qn=Math.min(_r,Tr),dn=(Kn+qn)/2,pt=dn-kr,at=Math.max(Sr,cr),ft=Math.min(Pr,Un),It=(at+ft)/2,At=It-Sr;i==null||i(t,dt);var xr=Ae.right-V.x-(ke+V.width),Er=Ae.bottom-V.y-(Be+V.height);oe===1&&(ke=Math.round(ke),xr=Math.round(xr)),re===1&&(Be=Math.round(Be),Er=Math.round(Er));var Xn={ready:!0,offsetX:ke/oe,offsetY:Be/re,offsetR:xr/oe,offsetB:Er/re,arrowX:pt/oe,arrowY:At/re,scaleX:oe,scaleY:re,align:dt};d(Xn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function lC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Ms(o),l=Ms(i),u=Aa(i),d=new Set([u].concat(Ce(s),Ce(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function cC(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=wo(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Tn(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var uC=["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 dC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,N=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,T=H===void 0?{}:H,O=r.popupAlign,I=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,k=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,Q=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,Oe=r.getTriggerDOMNode,B=et(r,uC),ce=$||N||!1,se=c.useState(!1),xe=U(se,2),he=xe[0],ne=xe[1];St(function(){ne(wf())},[]);var ge=c.useRef({}),$e=c.useContext(Wc),Ae=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){ge.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),oe=rb(),re=c.useState(null),pe=U(re,2),be=pe[0],rt=pe[1],Xe=c.useRef(null),je=Ht(function(Se){Xe.current=Se,va(Se)&&be!==Se&&rt(Se),$e==null||$e.registerSubPopup(oe,Se)}),Ke=c.useState(null),Ye=U(Ke,2),Je=Ye[0],Le=Ye[1],Ne=c.useRef(null),st=Ht(function(Se){va(Se)&&Je!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},ue={},Ee=Ht(function(Se){var Fe,xt,Pt=Je;return(Pt==null?void 0:Pt.contains(Se))||((Fe=wo(Pt))===null||Fe===void 0?void 0:Fe.host)===Se||Se===Pt||(be==null?void 0:be.contains(Se))||((xt=wo(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(ge.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Uc(o,Q,ae,te),nt=Uc(o,J,de,fe),Ct=c.useState(v||!1),dt=U(Ct,2),ke=dt[0],Be=dt[1],ze=f??ke,_e=Ht(function(Se){f===void 0&&Be(Se)});St(function(){Be(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var ht=Ht(function(Se){var Fe;_e(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},lt=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?ht(Fe):He.current=setTimeout(function(){ht(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),_t=U(yt,2),Vt=_t[0],Wt=_t[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var P=c.useState(null),G=U(P,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),Re=U(Pe,2),Te=Re[0],Me=Re[1],gt=function(Fe){Me([Fe.clientX,Fe.clientY])},tt=sC(ze,be,K?Te:Je,M,T,O,q),Ve=U(tt,11),wt=Ve[0],Gt=Ve[1],Bt=Ve[2],mt=Ve[3],Cr=Ve[4],Vr=Ve[5],Ut=Ve[6],Br=Ve[7],Gn=Ve[8],rr=Ve[9],lr=Ve[10],kr=aC(he,l,u,d),_r=U(kr,2),Sr=_r[0],Pr=_r[1],Zr=Sr.has("click"),Tr=Pr.has("click")||Pr.has("contextMenu"),cr=Ht(function(){Vt||lr()}),Un=function(){ye.current&&K&&Tr&<(!1)};lC(ze,Je,be,cr,Un),St(function(){cr()},[Te,M]),St(function(){ze&&!(T!=null&&T[M])&&cr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Se=iC(T,o,rr,K);return Z(Se,V==null?void 0:V(rr))},[rr,V,T,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:cr}});var qn=c.useState(0),dn=U(qn,2),pt=dn[0],at=dn[1],ft=c.useState(0),It=U(ft,2),At=It[0],xr=It[1],Er=function(){if(D&&Je){var Fe=Je.getBoundingClientRect();at(Fe.width),xr(Fe.height)}},Xn=function(){Er(),cr()},Kt=function(Fe){Wt(!1),lr(),h==null||h(Fe)},Qr=function(){return new Promise(function(Fe){Er(),ie(function(){return Fe})})};St(function(){X&&(lr(),X(),ie(null))},[X]);function qt(Se,Fe,xt,Pt){ue[Se]=function(Et){var Va;Pt==null||Pt(Et),lt(Fe,xt);for(var ri=arguments.length,Rl=new Array(ri>1?ri-1:0),Ba=1;Ba<ri;Ba++)Rl[Ba-1]=arguments[Ba];(Va=De[Se])===null||Va===void 0||Va.call.apply(Va,[De,Et].concat(Rl))}}(Zr||Tr)&&(ue.onClick=function(Se){var Fe;ye.current&&Tr?lt(!1):!ye.current&&Zr&&(gt(Se),lt(!0));for(var xt=arguments.length,Pt=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)Pt[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(Pt))}),cC(ze,Tr,Je,be,x,E,Ee,lt);var ur=Sr.has("hover"),Hr=Pr.has("hover"),fn,Yn;ur&&(qt("onMouseEnter",!0,p,function(Se){gt(Se)}),qt("onPointerEnter",!0,p,function(Se){gt(Se)}),fn=function(Fe){(ze||Vt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&<(!0,p)},K&&(ue.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Hr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Yn=function(){lt(!1,C)}),Sr.has("focus")&&qt("onFocus",!0,m),Pr.has("focus")&&qt("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Se){var Fe;ye.current&&Pr.has("contextMenu")?lt(!1):(gt(Se),lt(!0)),Se.preventDefault();for(var xt=arguments.length,Pt=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)Pt[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(Pt))}),ve&&(ue.className=Z(De.className,ve));var Zn=z(z({},De),ue),za={},Qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qo.forEach(function(Se){B[Se]&&(za[Se]=function(){for(var Fe,xt=arguments.length,Pt=new Array(xt),Et=0;Et<xt;Et++)Pt[Et]=arguments[Et];(Fe=Zn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Zn].concat(Pt)),B[Se].apply(B,Pt)})});var Jo=c.cloneElement(Ze,z(z({},Zn),za)),ei={x:Vr,y:Ut},ti=Y?z({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(gr,{disabled:!ze,ref:st,onResize:Xn},c.createElement(Tf,{getTriggerDOMNode:Oe},Jo)),c.createElement(Wc.Provider,{value:Ae},c.createElement(Pf,{portal:e,ref:je,prefixCls:o,popup:F,className:Z(j,Kn),style:A,target:Je,onMouseEnter:fn,onMouseLeave:Yn,onPointerEnter:fn,zIndex:I,open:ze,keepDom:Vt,fresh:k,onClick:W,mask:x,motion:qe,maskMotion:nt,onVisibleChanged:Kt,onPrepare:Qr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:rr,arrow:ti,arrowPos:ei,ready:wt,offsetX:Gt,offsetY:Bt,offsetR:mt,offsetB:Cr,onAlign:cr,stretch:D,targetWidth:pt/Br,targetHeight:At/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gl=dC(fl);function As(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Nf=(e,t)=>t||e,If=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=_.useContext(it),s=_.useContext(Qb),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=mp.includes(u);return[u,d]};var fC={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"},vC=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:fC}))},Mf=c.forwardRef(vC);process.env.NODE_ENV!=="production"&&(Mf.displayName="CheckOutlined");var gC={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"},mC=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:gC}))},Af=c.forwardRef(mC);process.env.NODE_ENV!=="production"&&(Af.displayName="DownOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],pC=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)`}),hC=e=>{const t=e,r=[].concat(Ra).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function bC(){const[,e]=Dr(),t=pC(hC(e));return _.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function jf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var bn={shiftX:64,adjustY:1},yn={adjustX:1,shiftY:!0},ar=[0,0],yC={left:{points:["cr","cl"],overflow:yn,offset:[-4,0],targetOffset:ar},right:{points:["cl","cr"],overflow:yn,offset:[4,0],targetOffset:ar},top:{points:["bc","tc"],overflow:bn,offset:[0,-4],targetOffset:ar},bottom:{points:["tc","bc"],overflow:bn,offset:[0,4],targetOffset:ar},topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-4],targetOffset:ar},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0],targetOffset:ar},topRight:{points:["br","tr"],overflow:bn,offset:[0,-4],targetOffset:ar},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0],targetOffset:ar},bottomRight:{points:["tr","br"],overflow:bn,offset:[0,4],targetOffset:ar},rightBottom:{points:["bl","br"],overflow:yn,offset:[4,0],targetOffset:ar},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,4],targetOffset:ar},leftBottom:{points:["br","bl"],overflow:yn,offset:[-4,0],targetOffset:ar}},CC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],SC=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,T=et(t,CC),O=_.useRef(null);_.useImperativeHandle(r,function(){return O.current});var I=z({},T);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(jf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(gl,we({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:yC,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const xC=_.forwardRef(SC);function EC(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,C=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,x=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const wC=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Ff=8;function Lf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Ff:n}}function eo(e,t){return e?t:{}}function $C(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},wC(e,t,a)),{"&:before":{background:t}})]},eo(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),eo(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),eo(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),eo(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function OC(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Zc={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"]}},RC={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"]}},_C=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function PC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Zc).forEach(u=>{const d=n&&RC[u]||Zc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,_C.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=Lf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=OC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const TC=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ee(e.calc(u).div(2).equal())} ${ee(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Ff)}},[`${t}-content`]:{position:"relative"}}),Gp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},$C(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},NC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Lf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),EC(Dt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Df=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Dt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[TC(s),Wy(n,"zoom-big-fast")]},NC,{resetStyle:!1,injectStyle:t})(e)},IC=Eo.map(e=>`${e}-inverse`);function MC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(IC),Ce(Eo)).includes(e):Eo.includes(e)}function zf(e,t){const r=MC(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const AC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(it),l=s("tooltip",t),[u,d,f]=Df(l),v=zf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(jf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var jC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const FC=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Dr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(it),$=Mt("Tooltip"),N=c.useRef(null),F=()=>{var oe;(oe=N.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=N.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[re,pe]=oe;$.deprecated(!(re in e),re,pe)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,A]=ir(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=!p&&!g&&p!==0,H=oe=>{var re,pe;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,oe))},T=c.useMemo(()=>{var oe,re;let pe=m;return typeof h=="object"&&(pe=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),C||PC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),I=c.createElement(Is,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=jC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=R("tooltip",a),J=R(),te=e["data-popover-inject"];let ae=j;!("open"in e)&&!("visible"in e)&&M&&(ae=!1);const fe=c.isValidElement(d)&&!Zd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Z(de.className,o||`${Q}-open`):de.className,[Oe,B,ce]=Df(Q,!te),se=zf(Q,l),xe=se.arrowStyle,he=Object.assign(Object.assign({},u),se.overlayStyle),ne=Z(s,{[`${Q}-rtl`]:w==="rtl"},se.className,q,B,ce),[ge,$e]=Uh("Tooltip",Y.zIndex),Ae=c.createElement(xC,Object.assign({},Y,{zIndex:ge,showArrow:x,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Q,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},xe),W),getTooltipContainer:D||i||E,ref:N,builtinPlacements:T,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Jd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Vo(fe,{className:ve}):fe);return Oe(c.createElement(ll.Provider,{value:$e},Ae))}),ja=FC;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=AC;var LC=le.ESC,DC=le.TAB;function zC(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case LC:s();break;case DC:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var VC=_.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=_.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Rr(t,o==null?void 0:o.ref);return _.createElement(_.Fragment,null,n&&_.createElement("div",{className:"".concat(a,"-arrow")}),_.cloneElement(o,{ref:sn(o)?i:void 0}))}),Cn={adjustX:1,adjustY:1},Sn=[0,0],BC={topLeft:{points:["bl","tl"],overflow:Cn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:Cn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:Cn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:Cn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:Cn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:Cn,offset:[0,4],targetOffset:Sn}},kC=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function HC(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?BC:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,N=et(e,kC),F=_.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,T=_.useRef(null),O=_.useRef(null),I=_.useRef(null);_.useImperativeHandle(t,function(){return T.current});var D=function(te){M(te),$==null||$(te)};zC({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:E,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return _.createElement(VC,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?k:k()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=_.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:sn(w)?Rr(I,w.ref):void 0}),Q=g;return!Q&&S.indexOf("contextMenu")!==-1&&(Q=["click"]),_.createElement(gl,we({builtinPlacements:b},N,{prefixCls:i,ref:T,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:Q,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Y)}const WC=_.forwardRef(HC);var Vf=c.createContext(null);function Bf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function kf(e){var t=c.useContext(Vf);return Bf(t,e)}var GC=["children","locked"],hr=c.createContext(null);function UC(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=et(e,GC),a=c.useContext(hr),o=Io(function(){return UC(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(hr.Provider,{value:o},t)}var KC=[],Hf=c.createContext(null);function Uo(){return c.useContext(Hf)}var Wf=c.createContext(KC);function Fa(e){var t=c.useContext(Wf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Gf=c.createContext(null),ml=c.createContext({});function Qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function qC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return Qc(n,t)});return Qc(e,t)&&r.unshift(e),r}var js=le.LEFT,Fs=le.RIGHT,Ls=le.UP,go=le.DOWN,mo=le.ENTER,Uf=le.ESC,na=le.HOME,aa=le.END,Jc=[Ls,go,js,Fs];function XC(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===mo)return{inlineTrigger:!0};var v=(a={},L(a,Ls,l),L(a,go,u),a),b=(o={},L(o,js,r?u:l),L(o,Fs,r?l:u),L(o,go,d),L(o,mo,d),o),h=(i={},L(i,Ls,l),L(i,go,u),L(i,mo,d),L(i,Uf,f),L(i,js,r?d:f),L(i,Fs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function YC(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ZC(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function pl(e,t){var r=qC(e,!0);return r.filter(function(n){return t.has(n)})}function eu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=pl(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ds=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Bf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function QC(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Jc,[mo,Uf,na,aa]).includes(h)){var p=o(),g=Ds(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=ZC(S,m),R=x.get(E),w=XC(e,i(R,!0).length===1,r,h);if(!w&&h!==na&&h!==aa)return;(Jc.includes(h)||[na,aa].includes(h))&&b.preventDefault();var $=function(O){if(O){var I=O,D=O.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var V=x.get(O);s(V),v(),d.current=Tt(function(){f.current===V&&I.focus()})}};if([na,aa].includes(h)||w.sibling||!E){var N;!E||e==="inline"?N=a.current:N=YC(E);var F,j=pl(N,m);h===na?F=j[0]:h===aa?F=j[j.length-1]:F=eu(N,m,E,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Ds(p,n);var T=E.getAttribute("aria-controls"),O=document.getElementById(T),I=eu(O,g.elements);$(I)},5);else if(w.offset<0){var A=i(R,!0),M=A[A.length-2],H=y.get(M);l(M,!1),$(H)}}u==null||u(b)}}function JC(e){Promise.resolve().then(e)}var hl="__RC_UTIL_PATH_SPLIT__",tu=function(t){return t.join(hl)},eS=function(t){return t.split(hl)},zs="rc-menu-more";function tS(){var e=c.useState({}),t=U(e,2),r=t[1],n=_.useRef(new Map),a=_.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=_.useRef(0),d=_.useRef(!1),f=function(){d.current||r({})},v=_.useCallback(function(y,x){process.env.NODE_ENV!=="production"&&ot(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=tu(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;JC(function(){E===u.current&&f()})},[]),b=_.useCallback(function(y,x){var S=tu(x);a.current.delete(S),n.current.delete(y)},[]),h=_.useCallback(function(y){l(y)},[]),p=_.useCallback(function(y,x){var S=n.current.get(y)||"",E=eS(S);return x&&s.includes(E[0])&&E.unshift(zs),E},[s]),g=_.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(zs),x},m=_.useCallback(function(y){var x="".concat(n.current.get(y)).concat(hl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function ia(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var rS=Math.random().toFixed(5).toString().slice(2),ru=0;function nS(e){var t=ir(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){ru+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(rS,"-").concat(ru);a("rc-menu-uuid-".concat(o))},[]),n}function Kf(e,t,r,n){var a=c.useContext(hr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function qf(e){var t=c.useContext(hr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Xf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var aS=["item"];function Po(e){var t=e.item,r=et(e,aS);return Object.defineProperty(r,"item",{get:function(){return ot(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var oS=["title","attribute","elementRef"],iS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],sS=["active"],lS=function(e){Xr(r,e);var t=Yr(r);function r(){return Ft(this,r),t.apply(this,arguments)}return Lt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=et(a,oS),u=br(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ot(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Fr.Item,we({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),cS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=et(e,iS),C=kf(o),m=c.useContext(hr),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,N=c.useContext(ml),F=N._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=S||s,T=Pa(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&ot(!1,"MenuItem should not leave undefined `key`.");var I=function(de){return{key:o,keyPath:Ce(O).reverse(),item:A.current,domEvent:de}},D=l||R,V=Kf(o,H,f,v),k=V.active,K=et(V,sS),W=w.includes(o),q=qf(O.length),Y=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),x(ve)}},Q=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),x(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(lS,we({ref:A,elementRef:T,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Z(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Y,onKeyDown:Q,onFocus:J}),u,c.createElement(Xf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function uS(e,t){var r=e.eventKey,n=Uo(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(cS,we({},e,{ref:t}))}const Ko=c.forwardRef(uS);var dS=["className","children"],fS=function(t,r){var n=t.className,a=t.children,o=et(t,dS),i=c.useContext(hr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",we({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},bl=c.forwardRef(fS);bl.displayName="SubMenuList";function yl(e,t){return Or(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Ce(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var kt={adjustX:1,adjustY:1},vS={topLeft:{points:["bl","tl"],overflow:kt},topRight:{points:["br","tr"],overflow:kt},bottomLeft:{points:["tl","bl"],overflow:kt},bottomRight:{points:["tr","br"],overflow:kt},leftTop:{points:["tr","tl"],overflow:kt},leftBottom:{points:["br","bl"],overflow:kt},rightTop:{points:["tl","tr"],overflow:kt},rightBottom:{points:["bl","br"],overflow:kt}},gS={topLeft:{points:["bl","tl"],overflow:kt},topRight:{points:["br","tr"],overflow:kt},bottomLeft:{points:["tl","bl"],overflow:kt},bottomRight:{points:["tr","br"],overflow:kt},rightTop:{points:["tr","tl"],overflow:kt},rightBottom:{points:["br","bl"],overflow:kt},leftTop:{points:["tl","tr"],overflow:kt},leftBottom:{points:["bl","br"],overflow:kt}};function Yf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var mS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pS(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(hr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],N=z(b?z({},gS):z({},vS),g),F=mS[u],j=Yf(u,x,S),A=c.useRef(j);u!=="inline"&&(A.current=j);var M=z(z({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=Tt(function(){$(r)}),function(){Tt.cancel(H.current)}},[r]),c.createElement(gl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:N,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:M,fresh:!0},n)}function hS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(hr),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=z({},Yf(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(ln,we({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement(bl,{id:t,className:S,style:E},a)}))}var bS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yS=["active"],CS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=et(e,bS),R=kf(i),w=c.useContext(hr),$=w.prefixCls,N=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,T=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(ml),K=k._internalRenderSubMenuItem,W=c.useContext(Gf),q=W.isSubPathKey,Y=Fa(),Q="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&ot(!1,"SubMenu should not leave undefined `key`.");var fe=f??T,de=v??O,ve=F.includes(i),Oe=!A&&ve,B=q(H,i),ce=Kf(i,J,x,S),se=ce.active,xe=et(ce,yS),he=c.useState(!1),ne=U(he,2),ge=ne[0],$e=ne[1],Ae=function(De){J||$e(De)},oe=function(De){Ae(!0),C==null||C({key:i,domEvent:De})},re=function(De){Ae(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return se||(N!=="inline"?ge||q([M],i):!1)},[N,se,M,ge,i,q]),be=qf(Y.length),rt=function(De){J||(y==null||y({key:i,domEvent:De}),N==="inline"&&D(i,!ve))},Xe=ia(function(Ze){g==null||g(Po(Ze)),I(Ze)}),je=function(De){N!=="inline"&&D(i,De)},Ke=function(){V(i)},Ye=R&&"".concat(R,"-popup"),Je=c.createElement("div",we({role:"menuitem",style:be,className:"".concat(Q,"-title"),tabIndex:J?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:rt,onFocus:Ke},xe),o,c.createElement(Xf,{icon:N!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(Q,"-arrow")}))),Le=c.useRef(N);if(N!=="inline"&&Y.length>1?Le.current="vertical":Le.current=N,!A){var Ne=Le.current;Je=c.createElement(pS,{mode:Ne,prefixCls:Q,visible:!u&&Oe&&N!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(bl,{id:Ye,ref:ae},d)),disabled:J,onVisibleChange:je},Je)}var st=c.createElement(Fr.Item,we({ref:t,role:"none"},E,{component:"li",style:n,className:Z(Q,"".concat(Q,"-").concat(N),a,(r={},L(r,"".concat(Q,"-open"),Oe),L(r,"".concat(Q,"-active"),pe),L(r,"".concat(Q,"-selected"),B),L(r,"".concat(Q,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Je,!A&&c.createElement(hS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(st=K(st,e,{selected:B,active:pe,open:Oe,disabled:J})),c.createElement(_a,{onItemClick:Xe,mode:N==="horizontal"?"vertical":N,itemIcon:fe,expandIcon:de},st)}),qo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Uo();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(CS,we({ref:t},e),o),c.createElement(Wf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(qo.displayName="SubMenu");function Zf(e){var t=e.className,r=e.style,n=c.useContext(hr),a=n.prefixCls,o=Uo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var SS=["className","title","eventKey","children"],xS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=et(e,SS),i=c.useContext(hr),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",we({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Cl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Uo();return i?o:c.createElement(xS,we({ref:t},br(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Cl.displayName="MenuItemGroup");var ES=["label","children","key","type"];function Vs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=et(l,ES),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,we({key:h},b,{title:u}),Vs(d,t)):c.createElement(a,we({key:h},b,{title:u}),Vs(d,t)):v==="divider"?c.createElement(o,we({key:h},b)):c.createElement(r,we({key:h},b),u)}return null}).filter(function(i){return i})}function nu(e,t,r,n){var a=e,o=z({divider:Zf,item:Ko,group:Cl,submenu:qo},n);return t&&(a=Vs(t,o)),yl(a,r)}var wS=["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"],Jr=[],$S=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,N=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,T=a.multiple,O=T===void 0?!1:T,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,Q=a.triggerSubMenuAction,J=Q===void 0?"hover":Q,te=a.builtinPlacements,ae=a.itemIcon,fe=a.expandIcon,de=a.overflowedIndicator,ve=de===void 0?"...":de,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ce=a.onClick,se=a.onOpenChange,xe=a.onKeyDown,he=a.openAnimation,ne=a.openTransitionName,ge=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,Ae=a._internalComponents,oe=et(a,wS),re=c.useMemo(function(){return[nu(b,v,Jr,Ae),nu(b,v,Jr,{})]},[b,v,Ae]),pe=U(re,2),be=pe[0],rt=pe[1],Xe=c.useState(!1),je=U(Xe,2),Ke=je[0],Ye=je[1],Je=c.useRef(),Le=nS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&ot(!he&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=ir(N,{value:F,postState:function(at){return at||Jr}}),Ze=U(st,2),De=Ze[0],ue=Ze[1],Ee=function(at){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function It(){ue(at),se==null||se(at)}ft?Pn.flushSync(It):It()},qe=c.useState(De),nt=U(qe,2),Ct=nt[0],dt=nt[1],ke=c.useRef(!1),Be=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(Be,2),_e=ze[0],ye=ze[1],Ue=_e==="inline",ht=c.useState(_e),He=U(ht,2),We=He[0],lt=He[1],yt=c.useState(ye),_t=U(yt,2),Vt=_t[0],Wt=_t[1];c.useEffect(function(){lt(_e),Wt(ye),ke.current&&(Ue?ue(Ct):Ee(Jr))},[_e,ye]);var P=c.useState(0),G=U(P,2),X=G[0],ie=G[1],Pe=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&dt(De)},[De]),c.useEffect(function(){return ke.current=!0,function(){ke.current=!1}},[]);var Re=tS(),Te=Re.registerPath,Me=Re.unregisterPath,gt=Re.refreshOverflowKeys,tt=Re.isSubPathKey,Ve=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,Bt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),mt=c.useMemo(function(){return{isSubPathKey:tt}},[tt]);c.useEffect(function(){gt(Pe?Jr:be.slice(X+1).map(function(pt){return pt.key}))},[X,Pe]);var Cr=ir(j||A&&((r=be[0])===null||r===void 0?void 0:r.key),{value:j}),Vr=U(Cr,2),Ut=Vr[0],Br=Vr[1],Gn=ia(function(pt){Br(pt)}),rr=ia(function(){Br(void 0)});_.useImperativeHandle(t,function(){return{list:Je.current,focus:function(at){var ft,It=wt(),At=Ds(It,Le),xr=At.elements,Er=At.key2element,Xn=At.element2key,Kt=pl(Je.current,xr),Qr=Ut??(Kt[0]?Xn.get(Kt[0]):(ft=be.find(function(Hr){return!Hr.props.disabled}))===null||ft===void 0?void 0:ft.key),qt=Er.get(Qr);if(Qr&&qt){var ur;qt==null||(ur=qt.focus)===null||ur===void 0||ur.call(qt,at)}}}});var lr=ir(I||[],{value:D,postState:function(at){return Array.isArray(at)?at:at==null?Jr:[at]}}),kr=U(lr,2),_r=kr[0],Sr=kr[1],Pr=function(at){if(H){var ft=at.key,It=_r.includes(ft),At;O?It?At=_r.filter(function(Er){return Er!==ft}):At=[].concat(Ce(_r),[ft]):At=[ft],Sr(At);var xr=z(z({},at),{},{selectedKeys:At});It?k==null||k(xr):V==null||V(xr)}!O&&De.length&&We!=="inline"&&Ee(Jr)},Zr=ia(function(pt){ce==null||ce(Po(pt)),Pr(pt)}),Tr=ia(function(pt,at){var ft=De.filter(function(At){return At!==pt});if(at)ft.push(pt);else if(We!=="inline"){var It=Gt(pt);ft=ft.filter(function(At){return!It.has(At)})}ba(De,ft,!0)||Ee(ft,!0)}),cr=function(at,ft){var It=ft??!De.includes(at);Tr(at,It)},Un=QC(We,Ut,Ne,Le,Je,wt,Ve,Br,cr,xe);c.useEffect(function(){Ye(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:$e}},[ge,$e]),qn=We!=="horizontal"||x?be:be.map(function(pt,at){return c.createElement(_a,{key:pt.key,overflowDisabled:at>X},pt)}),dn=c.createElement(Fr,we({id:p,ref:Je,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ko,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Vt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(at){return at},renderRawRest:function(at){var ft=at.length,It=ft?be.slice(-ft):null;return c.createElement(qo,{eventKey:zs,title:ve,disabled:Pe,internalPopupClose:ft===0,popupClassName:Oe},It)},maxCount:We!=="horizontal"||x?Fr.INVALIDATE:Fr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){ie(at)},onKeyDown:Un},oe));return c.createElement(ml.Provider,{value:Kn},c.createElement(Vf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Gn,onInactive:rr,selectedKeys:_r,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Zr,onOpenChange:Tr},c.createElement(Gf.Provider,{value:mt},dn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Hf.Provider,{value:Bt},rt)))))}),La=$S;La.Item=Ko;La.SubMenu=qo;La.ItemGroup=Cl;La.Divider=Zf;var OS={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"},RS=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:OS}))},Qf=c.forwardRef(RS);process.env.NODE_ENV!=="production"&&(Qf.displayName="EllipsisOutlined");function _S(e){return Dt(e,{inputAffixPadding:e.paddingXXS})}const PS=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:C,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},TS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Sl=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({},TS(Dt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Jf=(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}}),au=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Jf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),NS=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sl(e))}),au(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),au(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ou=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),IS=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ou(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ou(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Sl(e))}})}),MS=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},ev=(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}}),iu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ev(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),AS=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ev(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sl(e))}),iu(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),iu(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),su=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jS=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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},su(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),su(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),FS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tv=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},rv=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),nv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},FS(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({},tv(e)),"&-sm":Object.assign({},rv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),LS=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},tv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rv(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ta()),{[`${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},[`
|
|
227
227
|
& > ${t}-affix-wrapper,
|
|
228
228
|
& > ${t}-number-affix-wrapper,
|
|
229
229
|
& > ${r}-picker-range
|
|
@@ -236,23 +236,23 @@ html body {
|
|
|
236
236
|
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
237
237
|
& > ${r}-select:last-child > ${r}-select-selector,
|
|
238
238
|
& > ${r}-cascader-picker:last-child ${t},
|
|
239
|
-
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},
|
|
239
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},DS=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),nv(e)),NS(e)),AS(e)),MS(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},zS=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 ${ee(e.inputAffixPadding)}`}}}},VS=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},nv(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),zS(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},BS=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vn(e)),LS(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},IS(e)),jS(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}}})})}},kS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-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,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-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,
|
|
240
240
|
> ${t},
|
|
241
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
241
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},HS=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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"}},[`
|
|
242
242
|
&-allow-clear > ${t},
|
|
243
243
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
244
|
-
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DS=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},rv=yr("Input",e=>{const t=Dt(e,xS(e));return[IS(t),LS(t),AS(t),jS(t),FS(t),DS(t),df(t)]},ES,{resetFont:!1});var zS={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"},VS=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:zS}))},nv=c.forwardRef(VS);process.env.NODE_ENV!=="production"&&(nv.displayName="PlusOutlined");const Xo=_.createContext(null);var BS=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=_.useState(),f=U(d,2),v=f[0],b=f[1],h=_.useRef(),p=_.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return _.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},su={width:0,height:0,left:0,top:0};function kS(e,t,r){return _.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||su,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||su}var f=a.get(l)||z({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function lu(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var HS=.1,cu=.01,po=20,uu=Math.pow(.995,po);function WS(e,t){var r=_.useState(),n=U(r,2),a=n[0],o=n[1],i=_.useState(0),s=U(i,2),l=s[0],u=s[1],d=_.useState(0),f=U(d,2),v=f[0],b=f[1],h=_.useState(),p=U(h,2),g=p[0],C=p[1],m=_.useRef();function y($){var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j});var A=F-a.x,M=j-a.y;t(A,M);var H=Date.now();u(H),b(H-l),C({x:A,y:M})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,N=g.y/v,F=Math.abs($),j=Math.abs(N);if(Math.max(F,j)<HS)return;var A=$,M=N;m.current=window.setInterval(function(){if(Math.abs(A)<cu&&Math.abs(M)<cu){window.clearInterval(m.current);return}A*=uu,M*=uu,t(A*po,M*po)},po)}}var E=_.useRef();function R($){var N=$.deltaX,F=$.deltaY,j=0,A=Math.abs(N),M=Math.abs(F);A===M?j=E.current==="x"?N:F:A>M?(j=N,E.current="x"):(j=F,E.current="y"),t(-j,-j)&&$.preventDefault()}var w=_.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function N(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",F)}},[])}function av(e){var t=_.useState(0),r=U(t,2),n=r[0],a=r[1],o=_.useRef(0),i=_.useRef();return i.current=e,Ui(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function GS(e){var t=_.useRef([]),r=_.useState({}),n=U(r,2),a=n[1],o=_.useRef(typeof e=="function"?e():e),i=av(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var du={width:0,height:0,left:0,top:0,right:0};function US(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),_.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||du;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||du;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function fu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var KS="TABS_DQ";function ov(e){return String(e).replace(/"/g,KS)}function iv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var sv=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Bs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Bs.displayName="ExtraContent");var qS=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,C=e.popupClassName,m=_.useState(!1),y=U(m,2),x=y[0],S=y[1],E=_.useState(null),R=U(E,2),w=R[0],$=R[1],N=l.icon,F=N===void 0?"More":N,j="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),M=w!==null?"".concat(j,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function T(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Y=q.key,Q=q.domEvent;p(Y,Q),S(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,Q=W.closeIcon,J=W.key,te=W.label,ae=iv(q,Q,f,Y);return c.createElement(Ko,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),T(de,J)}},Q||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,Q=q.length,J=0;J<Q;J+=1){Y=(Y+W+Q)%Q;var te=q[Y];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!x){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case le.UP:I(-1),W.preventDefault();break;case le.DOWN:I(1),W.preventDefault();break;case le.ESC:S(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}_.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),_.useEffect(function(){x||$(null)},[x]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Z(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(DC,Oe({prefixCls:A,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(k,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:D},F));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(sv,{prefixCls:r,locale:o,editable:f}))});const XS=c.memo(qS,function(e,t){return t.tabMoving});var YS=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=iv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":ov(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),x($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},ZS=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},xn=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},to=function(t,r){return t[r?0:1]},vu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,C=c.useContext(Xo),m=C.prefixCls,y=C.tabs,x=_.useRef(null),S=_.useRef(null),E=_.useRef(null),R=_.useRef(null),w=_.useRef(null),$=_.useRef(null),N=_.useRef(null),F=f==="top"||f==="bottom",j=lu(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],T=lu(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(T,2),I=O[0],D=O[1],V=_.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=_.useState([0,0]),Y=U(q,2),Q=Y[0],J=Y[1],te=_.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=_.useState([0,0]),we=U(ve,2),B=we[0],ce=we[1],se=GS(new Map),Se=U(se,2),pe=Se[0],ne=Se[1],ge=kS(y,pe,Q[0]),Ee=to(K,F),Ae=to(Q,F),oe=to(fe,F),re=to(B,F),me=Ee<Ae+oe,he=me?Ee-re:Ee-oe,rt="".concat(m,"-nav-operations-hidden"),Xe=0,je=0;F&&s?(Xe=0,je=Math.max(0,Ae-he)):(Xe=Math.min(0,he-Ae),je=0);function Ke(G){return G<Xe?Xe:G>je?je:G}var Ye=_.useRef(null),Je=_.useState(),Le=U(Je,2),Ne=Le[0],st=Le[1];function Ze(){st(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}WS(R,function(G,X){function ie(Pe,$e){Pe(function(Te){var Me=Ke(Te+$e);return Me})}return me?(F?ie(H,G):ie(D,X),De(),Ze(),!0):!1}),_.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){st(0)},100)),De},[Ne]);var ue=US(ge,he,F?M:I,Ae,oe,re,z(z({},e),{},{tabs:y})),xe=U(ue,2),qe=xe[0],nt=xe[1],Ct=kt(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=ge.get(G)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=M;s?X.right<M?ie=X.right:X.right+X.width>M+he&&(ie=X.right+X.width-he):X.left<-M?ie=-X.left:X.left+X.width>-M+he&&(ie=-(X.left+X.width-he)),D(0),H(Ke(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+he&&(Pe=-(X.top+X.height-he)),H(0),D(Ke(Pe))}}),dt={};f==="top"||f==="bottom"?dt[s?"marginRight":"marginLeft"]=v:dt.marginTop=v;var ke=y.map(function(G,X){var ie=G.key;return c.createElement(YS,{id:a,prefixCls:m,key:ie,tab:G,style:X===0?void 0:dt,closable:G.closable,editable:u,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function($e){h(ie,$e)},onFocus:function(){Ct(ie),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Be=function(){return ne(function(){var X,ie=new Map,Pe=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function($e){var Te,Me=$e.key,gt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(ov(Me),'"]'));if(gt){var tt=ZS(gt,Pe),Ve=U(tt,4),wt=Ve[0],Wt=Ve[1],Vt=Ve[2],mt=Ve[3];ie.set(Me,{width:wt,height:Wt,left:Vt,top:mt})}}),ie})};_.useEffect(function(){Be()},[y.map(function(G){return G.key}).join("_")]);var ze=av(function(){var G=xn(x),X=xn(S),ie=xn(E);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=xn(N);de(Pe);var $e=xn($);ce($e);var Te=xn(w);J([Te[0]-Pe[0],Te[1]-Pe[1]]),Be()}),_e=y.slice(0,qe),be=y.slice(nt+1),Ue=[].concat(ye(_e),ye(be)),ht=ge.get(i),He=BS({activeTabOffset:ht,horizontal:F,indicator:g,rtl:s}),We=He.style;_.useEffect(function(){Ct()},[i,Xe,je,fu(ht),fu(ge),F]),_.useEffect(function(){ze()},[s]);var lt=!!Ue.length,yt="".concat(m,"-nav-wrap"),_t,zt,Ht,P;return F?s?(zt=M>0,_t=M!==je):(_t=M<0,zt=M!==Xe):(Ht=I<0,P=I!==Xe),c.createElement(gr,{onResize:ze},c.createElement("div",{ref:Pa(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Bs,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(gr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),_t),"".concat(yt,"-ping-right"),zt),"".concat(yt,"-ping-top"),Ht),"".concat(yt,"-ping-bottom"),P)),ref:R},c.createElement(gr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Ne?"none":void 0}},ke,c.createElement(sv,{ref:N,prefixCls:m,locale:d,editable:u,style:z(z({},ke.length===0?void 0:dt),{},{visibility:lt?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(XS,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!lt&&rt,tabMoving:!!Ne})),c.createElement(Bs,{ref:E,position:"right",extra:l,prefixCls:m})))}),xl=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(xl.displayName="TabPane");var QS=["renderTabBar"],JS=["label","key"],lv=function(t){var r=t.renderTabBar,n=et(t,QS),a=c.useContext(Xo),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=et(s,JS);return c.createElement(xl,Oe({tab:l,key:u,tabKey:u},d))})});return r(i,vu)}return c.createElement(vu,n)};process.env.NODE_ENV!=="production"&&(lv.displayName="TabNavListWrapper");var e1=["key","forceRender","style","className","destroyInactiveTabPane"],t1=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Xo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,C=v.destroyInactiveTabPane,m=et(v,e1),y=b===n;return c.createElement(ln,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(xl,Oe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),E),className:Z(g,R),ref:S}))})})))};function r1(){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=z({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&ot(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var n1=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],gu=0,cv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,N=e.indicator,F=et(e,n1),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=r1(f),H=_.useState(!1),T=U(H,2),O=T[0],I=T[1];_.useEffect(function(){I(Ef())},[]);var D=ir(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(D,2),k=V[0],K=V[1],W=_.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Y=q[0],Q=q[1];_.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Y,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Q(B)},[j.map(function(B){return B.key}).join("_"),k,Y]);var J=ir(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];_.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":gu)),gu+=1)},[]);function de(B,ce){E==null||E(B,ce);var se=B!==k;K(B),se&&(S==null||S(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},we=z(z({},ve),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:N});return c.createElement(Xo.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",Oe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(lv,Oe({},we,{renderTabBar:x})),c.createElement(t1,Oe({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(cv.displayName="Tabs");const a1={motionAppear:!1,motionEnter:!0,motionLeave:!0};function o1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},a1),{motionName:Qd(e,"switch")})),r}var i1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function s1(e){return e.filter(t=>t)}function l1(e,t){if(process.env.NODE_ENV!=="production"&&Mt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Or(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=i1(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return s1(r)}const c1=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Vc(e,"slide-up"),Vc(e,"slide-down")]]},u1=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ee(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ee(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(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 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},d1=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vn(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:`${ee(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},nl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},f1=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
244
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},WS=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},av=yr("Input",e=>{const t=Dt(e,_S(e));return[DS(t),HS(t),VS(t),BS(t),kS(t),WS(t),ff(t)]},PS,{resetFont:!1});var GS={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"},US=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:GS}))},ov=c.forwardRef(US);process.env.NODE_ENV!=="production"&&(ov.displayName="PlusOutlined");const Xo=_.createContext(null);var KS=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=_.useState(),f=U(d,2),v=f[0],b=f[1],h=_.useRef(),p=_.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return _.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},lu={width:0,height:0,left:0,top:0};function qS(e,t,r){return _.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||lu,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||lu}var f=a.get(l)||z({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function cu(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var XS=.1,uu=.01,po=20,du=Math.pow(.995,po);function YS(e,t){var r=_.useState(),n=U(r,2),a=n[0],o=n[1],i=_.useState(0),s=U(i,2),l=s[0],u=s[1],d=_.useState(0),f=U(d,2),v=f[0],b=f[1],h=_.useState(),p=U(h,2),g=p[0],C=p[1],m=_.useRef();function y($){var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j});var A=F-a.x,M=j-a.y;t(A,M);var H=Date.now();u(H),b(H-l),C({x:A,y:M})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,N=g.y/v,F=Math.abs($),j=Math.abs(N);if(Math.max(F,j)<XS)return;var A=$,M=N;m.current=window.setInterval(function(){if(Math.abs(A)<uu&&Math.abs(M)<uu){window.clearInterval(m.current);return}A*=du,M*=du,t(A*po,M*po)},po)}}var E=_.useRef();function R($){var N=$.deltaX,F=$.deltaY,j=0,A=Math.abs(N),M=Math.abs(F);A===M?j=E.current==="x"?N:F:A>M?(j=N,E.current="x"):(j=F,E.current="y"),t(-j,-j)&&$.preventDefault()}var w=_.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function N(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",F)}},[])}function iv(e){var t=_.useState(0),r=U(t,2),n=r[0],a=r[1],o=_.useRef(0),i=_.useRef();return i.current=e,Ui(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function ZS(e){var t=_.useRef([]),r=_.useState({}),n=U(r,2),a=n[1],o=_.useRef(typeof e=="function"?e():e),i=iv(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var fu={width:0,height:0,left:0,top:0,right:0};function QS(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),_.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||fu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||fu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function vu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var JS="TABS_DQ";function sv(e){return String(e).replace(/"/g,JS)}function lv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var cv=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Bs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Bs.displayName="ExtraContent");var e1=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,C=e.popupClassName,m=_.useState(!1),y=U(m,2),x=y[0],S=y[1],E=_.useState(null),R=U(E,2),w=R[0],$=R[1],N=l.icon,F=N===void 0?"More":N,j="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),M=w!==null?"".concat(j,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function T(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Y=q.key,Q=q.domEvent;p(Y,Q),S(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,Q=W.closeIcon,J=W.key,te=W.label,ae=lv(q,Q,f,Y);return c.createElement(Ko,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),T(de,J)}},Q||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,Q=q.length,J=0;J<Q;J+=1){Y=(Y+W+Q)%Q;var te=q[Y];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!x){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case le.UP:I(-1),W.preventDefault();break;case le.DOWN:I(1),W.preventDefault();break;case le.ESC:S(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}_.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),_.useEffect(function(){x||$(null)},[x]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Z(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(WC,we({prefixCls:A,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(k,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:D},F));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(cv,{prefixCls:r,locale:o,editable:f}))});const t1=c.memo(e1,function(e,t){return t.tabMoving});var r1=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=lv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":sv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),x($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},n1=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},xn=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},to=function(t,r){return t[r?0:1]},gu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,C=c.useContext(Xo),m=C.prefixCls,y=C.tabs,x=_.useRef(null),S=_.useRef(null),E=_.useRef(null),R=_.useRef(null),w=_.useRef(null),$=_.useRef(null),N=_.useRef(null),F=f==="top"||f==="bottom",j=cu(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],T=cu(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(T,2),I=O[0],D=O[1],V=_.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=_.useState([0,0]),Y=U(q,2),Q=Y[0],J=Y[1],te=_.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=_.useState([0,0]),Oe=U(ve,2),B=Oe[0],ce=Oe[1],se=ZS(new Map),xe=U(se,2),he=xe[0],ne=xe[1],ge=qS(y,he,Q[0]),$e=to(K,F),Ae=to(Q,F),oe=to(fe,F),re=to(B,F),pe=$e<Ae+oe,be=pe?$e-re:$e-oe,rt="".concat(m,"-nav-operations-hidden"),Xe=0,je=0;F&&s?(Xe=0,je=Math.max(0,Ae-be)):(Xe=Math.min(0,be-Ae),je=0);function Ke(G){return G<Xe?Xe:G>je?je:G}var Ye=_.useRef(null),Je=_.useState(),Le=U(Je,2),Ne=Le[0],st=Le[1];function Ze(){st(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}YS(R,function(G,X){function ie(Pe,Re){Pe(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(F?ie(H,G):ie(D,X),De(),Ze(),!0):!1}),_.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){st(0)},100)),De},[Ne]);var ue=QS(ge,be,F?M:I,Ae,oe,re,z(z({},e),{},{tabs:y})),Ee=U(ue,2),qe=Ee[0],nt=Ee[1],Ct=Ht(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=ge.get(G)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=M;s?X.right<M?ie=X.right:X.right+X.width>M+be&&(ie=X.right+X.width-be):X.left<-M?ie=-X.left:X.left+X.width>-M+be&&(ie=-(X.left+X.width-be)),D(0),H(Ke(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+be&&(Pe=-(X.top+X.height-be)),H(0),D(Ke(Pe))}}),dt={};f==="top"||f==="bottom"?dt[s?"marginRight":"marginLeft"]=v:dt.marginTop=v;var ke=y.map(function(G,X){var ie=G.key;return c.createElement(r1,{id:a,prefixCls:m,key:ie,tab:G,style:X===0?void 0:dt,closable:G.closable,editable:u,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(ie,Re)},onFocus:function(){Ct(ie),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Be=function(){return ne(function(){var X,ie=new Map,Pe=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,gt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(sv(Me),'"]'));if(gt){var tt=n1(gt,Pe),Ve=U(tt,4),wt=Ve[0],Gt=Ve[1],Bt=Ve[2],mt=Ve[3];ie.set(Me,{width:wt,height:Gt,left:Bt,top:mt})}}),ie})};_.useEffect(function(){Be()},[y.map(function(G){return G.key}).join("_")]);var ze=iv(function(){var G=xn(x),X=xn(S),ie=xn(E);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=xn(N);de(Pe);var Re=xn($);ce(Re);var Te=xn(w);J([Te[0]-Pe[0],Te[1]-Pe[1]]),Be()}),_e=y.slice(0,qe),ye=y.slice(nt+1),Ue=[].concat(Ce(_e),Ce(ye)),ht=ge.get(i),He=KS({activeTabOffset:ht,horizontal:F,indicator:g,rtl:s}),We=He.style;_.useEffect(function(){Ct()},[i,Xe,je,vu(ht),vu(ge),F]),_.useEffect(function(){ze()},[s]);var lt=!!Ue.length,yt="".concat(m,"-nav-wrap"),_t,Vt,Wt,P;return F?s?(Vt=M>0,_t=M!==je):(_t=M<0,Vt=M!==Xe):(Wt=I<0,P=I!==Xe),c.createElement(gr,{onResize:ze},c.createElement("div",{ref:Pa(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Bs,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(gr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),_t),"".concat(yt,"-ping-right"),Vt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),P)),ref:R},c.createElement(gr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Ne?"none":void 0}},ke,c.createElement(cv,{ref:N,prefixCls:m,locale:d,editable:u,style:z(z({},ke.length===0?void 0:dt),{},{visibility:lt?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(t1,we({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!lt&&rt,tabMoving:!!Ne})),c.createElement(Bs,{ref:E,position:"right",extra:l,prefixCls:m})))}),xl=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(xl.displayName="TabPane");var a1=["renderTabBar"],o1=["label","key"],uv=function(t){var r=t.renderTabBar,n=et(t,a1),a=c.useContext(Xo),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=et(s,o1);return c.createElement(xl,we({tab:l,key:u,tabKey:u},d))})});return r(i,gu)}return c.createElement(gu,n)};process.env.NODE_ENV!=="production"&&(uv.displayName="TabNavListWrapper");var i1=["key","forceRender","style","className","destroyInactiveTabPane"],s1=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Xo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,C=v.destroyInactiveTabPane,m=et(v,i1),y=b===n;return c.createElement(ln,we({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(xl,we({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),E),className:Z(g,R),ref:S}))})})))};function l1(){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=z({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&ot(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var c1=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],mu=0,dv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,N=e.indicator,F=et(e,c1),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=l1(f),H=_.useState(!1),T=U(H,2),O=T[0],I=T[1];_.useEffect(function(){I(wf())},[]);var D=ir(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(D,2),k=V[0],K=V[1],W=_.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Y=q[0],Q=q[1];_.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Y,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Q(B)},[j.map(function(B){return B.key}).join("_"),k,Y]);var J=ir(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];_.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":mu)),mu+=1)},[]);function de(B,ce){E==null||E(B,ce);var se=B!==k;K(B),se&&(S==null||S(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},Oe=z(z({},ve),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:N});return c.createElement(Xo.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",we({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(uv,we({},Oe,{renderTabBar:x})),c.createElement(s1,we({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(dv.displayName="Tabs");const u1={motionAppear:!1,motionEnter:!0,motionLeave:!0};function d1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},u1),{motionName:Jd(e,"switch")})),r}var f1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function v1(e){return e.filter(t=>t)}function g1(e,t){if(process.env.NODE_ENV!=="production"&&Mt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Or(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=f1(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return v1(r)}const m1=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Bc(e,"slide-up"),Bc(e,"slide-down")]]},p1=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ee(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ee(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(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 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},h1=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vn(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:`${ee(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},nl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},b1=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
245
245
|
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,
|
|
246
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ee(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},v1=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},g1=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},al(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},m1=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(o(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},p1=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},al(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),g1(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"}}}}}},h1=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}},b1=yr("Tabs",e=>{const t=Dt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[v1(t),m1(t),f1(t),d1(t),u1(t),p1(t),c1(t)]},h1),uv=()=>null;process.env.NODE_ENV!=="production"&&(uv.displayName="DeprecatedTabPane");var y1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const El=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:N,style:F,indicatorSize:j,indicator:A}=e,M=y1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:T,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(it),V=I("tabs",H),k=il(V),[K,W,q]=b1(V,k);let Y;v==="editable-card"&&(Y={onEdit:(ve,we)=>{let{key:B,event:ce}=we;g==null||g(ve==="add"?ce:B,ve)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Xd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(nv,null),showAdd:C!==!0});const Q=I();if(process.env.NODE_ENV!=="production"){const ve=Mt("Tabs");process.env.NODE_ENV!=="production"&&ve(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ve(!(j||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=Hn(p),te=l1($,w),ae=o1(V,N),fe=Object.assign(Object.assign({},O==null?void 0:O.style),F),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(cv,Object.assign({direction:T,getPopupContainer:D},M,{items:te,className:Z({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Z(R,W,q,k),style:fe,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:c.createElement(Yf,null),transitionName:`${Q}-slide-up`},E),prefixCls:V,animated:ae,indicator:de})))};El.TabPane=uv;process.env.NODE_ENV!=="production"&&(El.displayName="Tabs");var C1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const dv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=C1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(it),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},S1=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ee(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},Ta()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},nl),{[`
|
|
246
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ee(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},y1=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},C1=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},al(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},S1=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(o(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},x1=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},al(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),C1(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},E1=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},w1=yr("Tabs",e=>{const t=Dt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[y1(t),S1(t),b1(t),h1(t),p1(t),x1(t),m1(t)]},E1),fv=()=>null;process.env.NODE_ENV!=="production"&&(fv.displayName="DeprecatedTabPane");var $1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const El=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:N,style:F,indicatorSize:j,indicator:A}=e,M=$1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:T,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(it),V=I("tabs",H),k=il(V),[K,W,q]=w1(V,k);let Y;v==="editable-card"&&(Y={onEdit:(ve,Oe)=>{let{key:B,event:ce}=Oe;g==null||g(ve==="add"?ce:B,ve)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Yd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(ov,null),showAdd:C!==!0});const Q=I();if(process.env.NODE_ENV!=="production"){const ve=Mt("Tabs");process.env.NODE_ENV!=="production"&&ve(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ve(!(j||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=Hn(p),te=g1($,w),ae=d1(V,N),fe=Object.assign(Object.assign({},O==null?void 0:O.style),F),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(dv,Object.assign({direction:T,getPopupContainer:D},M,{items:te,className:Z({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Z(R,W,q,k),style:fe,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:c.createElement(Qf,null),transitionName:`${Q}-slide-up`},E),prefixCls:V,animated:ae,indicator:de})))};El.TabPane=fv;process.env.NODE_ENV!=="production"&&(El.displayName="Tabs");var O1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const vv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=O1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(it),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},R1=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ee(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},Ta()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},nl),{[`
|
|
247
247
|
> ${r}-typography,
|
|
248
248
|
> ${r}-typography-edit-content
|
|
249
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},
|
|
249
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},_1=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
250
250
|
${ee(a)} 0 0 0 ${r},
|
|
251
251
|
0 ${ee(a)} 0 0 ${r},
|
|
252
252
|
${ee(a)} ${ee(a)} 0 0 ${r},
|
|
253
253
|
${ee(a)} 0 0 0 ${r} inset,
|
|
254
254
|
0 ${ee(a)} 0 0 ${r} inset;
|
|
255
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},E1=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ee(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:ee(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${o}`}}})},w1=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ta()),{"&-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},nl),"&-description":{color:e.colorTextDescription}}),$1=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${ee(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ee(e.padding)} ${ee(r)}`}}},O1=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},R1=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:S1(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),[`${t}-grid`]:x1(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:E1(e),[`${t}-meta`]:w1(e)}),[`${t}-bordered`]:{border:`${ee(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:$1(e),[`${t}-loading`]:O1(e),[`${t}-rtl`]:{direction:"rtl"}}},_1=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${ee(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},P1=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}),T1=yr("Card",e=>{const t=Dt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[R1(t),_1(t)]},P1);var mu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const N1=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},I1=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:g,children:C,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:S,tabProps:E={},classNames:R,styles:w}=e,$=mu(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:N,direction:F,card:j}=c.useContext(it);if(process.env.NODE_ENV!=="production"){const pe=Mt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[ge,Ee]=ne;pe.deprecated(!(ge in e),ge,Ee)})}const A=pe=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,pe)},M=pe=>{var ne;return Z((ne=j==null?void 0:j.classNames)===null||ne===void 0?void 0:ne[pe],R==null?void 0:R[pe])},H=pe=>{var ne;return Object.assign(Object.assign({},(ne=j==null?void 0:j.styles)===null||ne===void 0?void 0:ne[pe]),w==null?void 0:w[pe])},T=c.useMemo(()=>{let pe=!1;return c.Children.forEach(C,ne=>{(ne==null?void 0:ne.type)===dv&&(pe=!0)}),pe},[C]),O=N("card",r),[I,D,V]=T1(O),k=c.createElement(un,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),K=m!==void 0,W=Object.assign(Object.assign({},E),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:x});let q;const Y=Hn(v),Q=!Y||Y==="default"?"large":Y,J=g?c.createElement(El,Object.assign({size:Q},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(pe=>{var{tab:ne}=pe,ge=mu(pe,["tab"]);return Object.assign({label:ne},ge)})})):null;if(u||i||J){const pe=Z(`${O}-head`,M("header")),ne=Z(`${O}-head-title`,M("title")),ge=Z(`${O}-extra`,M("extra")),Ee=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:pe,style:Ee},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:ge,style:H("extra")},i)),J)}const te=Z(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Z(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:C),we=Z(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement(N1,{actionClasses:we,actionStyle:H("actions"),actions:p}):null,ce=br($,["onTabChange"]),se=Z(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:S,[`${O}-contain-grid`]:T,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),Se=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:Se}),q,ae,ve,B))});var M1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const A1=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=M1(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(it),l=s("card",t),u=Z(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},Yo=I1;Yo.Grid=dv;Yo.Meta=A1;process.env.NODE_ENV!=="production"&&(Yo.displayName="Card");const fv=_.createContext({}),j1=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"}}}},F1=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},L1=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},ks=(e,t)=>L1(e,t),D1=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},ks(e,r))}),z1=()=>({}),V1=()=>({}),B1=yr("Grid",j1,z1),k1=yr("Grid",e=>{const t=Dt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[F1(t),ks(t,""),ks(t,"-xs"),Object.keys(r).map(n=>D1(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},V1);var H1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function pu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const W1=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(it),{gutter:a,wrap:o}=c.useContext(fv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=H1(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",i),[m,y,x]=k1(C),S={};let E={};W1.forEach($=>{let N={};const F=e[$];typeof F=="number"?N.span=F:typeof F=="object"&&(N=F||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${C}-${$}-${N.span}`]:N.span!==void 0,[`${C}-${$}-order-${N.order}`]:N.order||N.order===0,[`${C}-${$}-offset-${N.offset}`]:N.offset||N.offset===0,[`${C}-${$}-push-${N.push}`]:N.push||N.push===0,[`${C}-${$}-pull-${N.pull}`]:N.pull||N.pull===0,[`${C}-rtl`]:n==="rtl"}),N.flex&&(E[`${C}-${$}-flex`]=!0,S[`--${C}-${$}-flex`]=pu(N.flex))});const R=Z(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},v,E,y,x),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=pu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),S),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var G1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function hu(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Ra.length;o++){const i=Ra[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const Hs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=G1(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(it),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=hu(a,p),m=hu(n,p),y=c.useRef(l),x=fC();c.useEffect(()=>{const O=x.subscribe(I=>{g(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>x.unsubscribe(O)},[]);const S=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,V)=>{if(typeof D=="object")for(let k=0;k<Ra.length;k++){const K=Ra[k];if(b[K]&&D[K]!==void 0){O[V]=D[K];break}}else O[V]=D}),O},E=f("row",r),[R,w,$]=B1(E),N=S(),F=Z(E,{[`${E}-no-wrap`]:u===!1,[`${E}-${m}`]:m,[`${E}-${C}`]:C,[`${E}-rtl`]:v==="rtl"},o,w,$),j={},A=N[0]!=null&&N[0]>0?N[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=N;j.rowGap=H;const T=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(fv.Provider,{value:T},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Hs.displayName="Row");function U1(e){return!!(e.addonBefore||e.addonAfter)}function K1(e){return!!(e.prefix||e.suffix||e.allowClear)}function bu(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function To(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=bu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=bu(t,e,n),r(a);return}r(a)}}function q1(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var vv=_.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,C=e.allowClear,m=e.value,y=e.handleReset,x=e.hidden,S=e.classes,E=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,N=e.onClear,F=o??a,j=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",M=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",T=_.useRef(null),O=function(B){var ce;(ce=T.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(g==null||g())},I=K1(e),D=_.cloneElement(F,{value:m,className:Z(F.props.className,!I&&(E==null?void 0:E.variant))||null}),V=_.useRef(null);if(_.useImperativeHandle(t,function(){return{nativeElement:V.current||T.current}}),I){var k=null;if(C){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ie(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";k=_.createElement("span",{onClick:function(B){y==null||y(B),N==null||N()},onMouseDown:function(B){return B.preventDefault()},className:Z(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),Q=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&C&&m),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),J=(l||C)&&_.createElement("span",{className:Z("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},k,l);D=_.createElement(j,Oe({className:Q,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:T}),s&&_.createElement("span",{className:Z("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(U1(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Z("".concat(i,"-wrapper"),te,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),ve=Z(fe,L({},"".concat(fe,"-disabled"),b),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);D=_.createElement(A,{className:ve,ref:V},_.createElement(M,{className:de},u&&_.createElement(H,{className:ae},u),D,d&&_.createElement(H,{className:ae},d)))}return _.cloneElement(D,{className:Z((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:x})}),X1=["show"];function gv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ie(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=et(n,X1);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var Y1=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Z1=_.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,C=e.count,m=e.type,y=m===void 0?"text":m,x=e.classes,S=e.classNames,E=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=et(e,Y1),N=_.useState(!1),F=U(N,2),j=F[0],A=F[1],M=_.useRef(!1),H=_.useRef(!1),T=_.useRef(null),O=_.useRef(null),I=function(re){T.current&&q1(T.current,re)},D=ir(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=_.useState(null),Y=U(q,2),Q=Y[0],J=Y[1],te=gv(C,g),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;_.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var me;(me=T.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,he,rt){var Xe;(Xe=T.current)===null||Xe===void 0||Xe.setSelectionRange(me,he,rt)},select:function(){var me;(me=T.current)===null||me===void 0||me.select()},input:T.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||T.current}}),_.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,me,he){var rt=me;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(me)>te.max){if(rt=te.exceedFormatter(me,{max:te.max}),me!==rt){var Xe,je;J([((Xe=T.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((je=T.current)===null||je===void 0?void 0:je.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K(rt),T.current&&To(T.current,re,n,rt)};_.useEffect(function(){if(Q){var oe;(oe=T.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Q))}},[Q]);var we=function(re){ve(re,re.target.value,{source:"change"})},B=function(re){M.current=!1,ve(re,re.currentTarget.value,{source:"compositionEnd"}),w==null||w(re)},ce=function(re){i&&re.key==="Enter"&&!H.current&&(H.current=!0,i(re)),s==null||s(re)},se=function(re){re.key==="Enter"&&(H.current=!1),l==null||l(re)},Se=function(re){A(!0),a==null||a(re)},pe=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),T.current&&To(T.current,re,n)},ge=de&&"".concat(d,"-out-of-range"),Ee=function(){var re=br(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _.createElement("input",Oe({autoComplete:r},re,{onChange:we,onFocus:Se,onBlur:pe,onKeyDown:ce,onKeyUp:se,className:Z(d,L({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:T,size:v,type:y,onCompositionStart:function(he){M.current=!0,R==null||R(he)},onCompositionEnd:B}))},Ae=function(){var re=Number(ae)>0;if(p||te.show){var me=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return _.createElement(_.Fragment,null,te.show&&_.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:z({},E==null?void 0:E.count)},me),p)}return null};return _.createElement(vv,Oe({},$,{prefixCls:d,className:Z(b,ge),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Ae(),disabled:f,classes:x,classNames:S,styles:E}),Ee())});const mv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:_.createElement(qd,null)}),t};function Q1(e,t){const r=_.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return _.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function J1(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function tx(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const rx=_.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:g,rootClassName:C,onChange:m,classNames:y,variant:x}=e,S=ex(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}=Mt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:R,input:w}=_.useContext(it),$=E("input",n),N=_.useRef(null),F=il($),[j,A,M]=rv($,F),{compactSize:H,compactItemClassnames:T}=nf($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=_.useContext(Fn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=_.useContext($a),W=Tf(V,o),q=J1(e)||!!k,Y=_.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Mt("Input");_.useEffect(()=>{var ce;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=N.current)===null||ce===void 0?void 0:ce.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Y.current=q},[q])}const Q=Q1(N),J=B=>{Q(),l==null||l(B)},te=B=>{Q(),u==null||u(B)},ae=B=>{Q(),m==null||m(B)},fe=(k||d)&&_.createElement(_.Fragment,null,d,k&&K),de=mv(f??(w==null?void 0:w.allowClear)),[ve,we]=Nf("input",x,a);return j(_.createElement(Z1,Object.assign({ref:Rr(t,N),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},S,{disabled:D,onBlur:J,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:fe,allowClear:de,className:Z(h,C,M,F,T,w==null?void 0:w.className),onChange:ae,addonBefore:b&&_.createElement(Is,{form:!0,space:!0},b),addonAfter:v&&_.createElement(Is,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Z({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Z({[`${$}-${ve}`]:we},As($,W)),affixWrapper:Z({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Z({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Z({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:we},As(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(rx.displayName="Input");var nx=`
|
|
255
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},P1=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ee(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:ee(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${o}`}}})},T1=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ta()),{"&-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},nl),"&-description":{color:e.colorTextDescription}}),N1=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${ee(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ee(e.padding)} ${ee(r)}`}}},I1=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},M1=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:R1(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),[`${t}-grid`]:_1(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:P1(e),[`${t}-meta`]:T1(e)}),[`${t}-bordered`]:{border:`${ee(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:N1(e),[`${t}-loading`]:I1(e),[`${t}-rtl`]:{direction:"rtl"}}},A1=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${ee(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},j1=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}),F1=yr("Card",e=>{const t=Dt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[M1(t),A1(t)]},j1);var pu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const L1=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},D1=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:g,children:C,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:S,tabProps:E={},classNames:R,styles:w}=e,$=pu(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:N,direction:F,card:j}=c.useContext(it);if(process.env.NODE_ENV!=="production"){const he=Mt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[ge,$e]=ne;he.deprecated(!(ge in e),ge,$e)})}const A=he=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,he)},M=he=>{var ne;return Z((ne=j==null?void 0:j.classNames)===null||ne===void 0?void 0:ne[he],R==null?void 0:R[he])},H=he=>{var ne;return Object.assign(Object.assign({},(ne=j==null?void 0:j.styles)===null||ne===void 0?void 0:ne[he]),w==null?void 0:w[he])},T=c.useMemo(()=>{let he=!1;return c.Children.forEach(C,ne=>{(ne==null?void 0:ne.type)===vv&&(he=!0)}),he},[C]),O=N("card",r),[I,D,V]=F1(O),k=c.createElement(un,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),K=m!==void 0,W=Object.assign(Object.assign({},E),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:x});let q;const Y=Hn(v),Q=!Y||Y==="default"?"large":Y,J=g?c.createElement(El,Object.assign({size:Q},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(he=>{var{tab:ne}=he,ge=pu(he,["tab"]);return Object.assign({label:ne},ge)})})):null;if(u||i||J){const he=Z(`${O}-head`,M("header")),ne=Z(`${O}-head-title`,M("title")),ge=Z(`${O}-extra`,M("extra")),$e=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:he,style:$e},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:ge,style:H("extra")},i)),J)}const te=Z(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Z(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:C),Oe=Z(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement(L1,{actionClasses:Oe,actionStyle:H("actions"),actions:p}):null,ce=br($,["onTabChange"]),se=Z(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:S,[`${O}-contain-grid`]:T,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),xe=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:xe}),q,ae,ve,B))});var z1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const V1=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=z1(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(it),l=s("card",t),u=Z(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},Yo=D1;Yo.Grid=vv;Yo.Meta=V1;process.env.NODE_ENV!=="production"&&(Yo.displayName="Card");const gv=_.createContext({}),B1=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},k1=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},H1=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},ks=(e,t)=>H1(e,t),W1=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},ks(e,r))}),G1=()=>({}),U1=()=>({}),K1=yr("Grid",B1,G1),q1=yr("Grid",e=>{const t=Dt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[k1(t),ks(t,""),ks(t,"-xs"),Object.keys(r).map(n=>W1(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},U1);var X1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function hu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Y1=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(it),{gutter:a,wrap:o}=c.useContext(gv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=X1(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",i),[m,y,x]=q1(C),S={};let E={};Y1.forEach($=>{let N={};const F=e[$];typeof F=="number"?N.span=F:typeof F=="object"&&(N=F||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${C}-${$}-${N.span}`]:N.span!==void 0,[`${C}-${$}-order-${N.order}`]:N.order||N.order===0,[`${C}-${$}-offset-${N.offset}`]:N.offset||N.offset===0,[`${C}-${$}-push-${N.push}`]:N.push||N.push===0,[`${C}-${$}-pull-${N.pull}`]:N.pull||N.pull===0,[`${C}-rtl`]:n==="rtl"}),N.flex&&(E[`${C}-${$}-flex`]=!0,S[`--${C}-${$}-flex`]=hu(N.flex))});const R=Z(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},v,E,y,x),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=hu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),S),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var Z1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function bu(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Ra.length;o++){const i=Ra[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const Hs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=Z1(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(it),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=bu(a,p),m=bu(n,p),y=c.useRef(l),x=bC();c.useEffect(()=>{const O=x.subscribe(I=>{g(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>x.unsubscribe(O)},[]);const S=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,V)=>{if(typeof D=="object")for(let k=0;k<Ra.length;k++){const K=Ra[k];if(b[K]&&D[K]!==void 0){O[V]=D[K];break}}else O[V]=D}),O},E=f("row",r),[R,w,$]=K1(E),N=S(),F=Z(E,{[`${E}-no-wrap`]:u===!1,[`${E}-${m}`]:m,[`${E}-${C}`]:C,[`${E}-rtl`]:v==="rtl"},o,w,$),j={},A=N[0]!=null&&N[0]>0?N[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=N;j.rowGap=H;const T=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(gv.Provider,{value:T},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Hs.displayName="Row");var Q1={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"},J1=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Q1}))},mv=c.forwardRef(J1);process.env.NODE_ENV!=="production"&&(mv.displayName="UpOutlined");function ex(e){return!!(e.addonBefore||e.addonAfter)}function tx(e){return!!(e.prefix||e.suffix||e.allowClear)}function yu(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function To(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=yu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=yu(t,e,n),r(a);return}r(a)}}function rx(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var pv=_.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,C=e.allowClear,m=e.value,y=e.handleReset,x=e.hidden,S=e.classes,E=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,N=e.onClear,F=o??a,j=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",M=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",T=_.useRef(null),O=function(B){var ce;(ce=T.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(g==null||g())},I=tx(e),D=_.cloneElement(F,{value:m,className:Z(F.props.className,!I&&(E==null?void 0:E.variant))||null}),V=_.useRef(null);if(_.useImperativeHandle(t,function(){return{nativeElement:V.current||T.current}}),I){var k=null;if(C){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ie(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";k=_.createElement("span",{onClick:function(B){y==null||y(B),N==null||N()},onMouseDown:function(B){return B.preventDefault()},className:Z(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),Q=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&C&&m),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),J=(l||C)&&_.createElement("span",{className:Z("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},k,l);D=_.createElement(j,we({className:Q,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:T}),s&&_.createElement("span",{className:Z("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(ex(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Z("".concat(i,"-wrapper"),te,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),ve=Z(fe,L({},"".concat(fe,"-disabled"),b),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);D=_.createElement(A,{className:ve,ref:V},_.createElement(M,{className:de},u&&_.createElement(H,{className:ae},u),D,d&&_.createElement(H,{className:ae},d)))}return _.cloneElement(D,{className:Z((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:x})}),nx=["show"];function hv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ie(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=et(n,nx);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var ax=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ox=_.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,C=e.count,m=e.type,y=m===void 0?"text":m,x=e.classes,S=e.classNames,E=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=et(e,ax),N=_.useState(!1),F=U(N,2),j=F[0],A=F[1],M=_.useRef(!1),H=_.useRef(!1),T=_.useRef(null),O=_.useRef(null),I=function(re){T.current&&rx(T.current,re)},D=ir(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=_.useState(null),Y=U(q,2),Q=Y[0],J=Y[1],te=hv(C,g),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;_.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var pe;(pe=T.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,be,rt){var Xe;(Xe=T.current)===null||Xe===void 0||Xe.setSelectionRange(pe,be,rt)},select:function(){var pe;(pe=T.current)===null||pe===void 0||pe.select()},input:T.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||T.current}}),_.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,pe,be){var rt=pe;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(pe)>te.max){if(rt=te.exceedFormatter(pe,{max:te.max}),pe!==rt){var Xe,je;J([((Xe=T.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((je=T.current)===null||je===void 0?void 0:je.selectionEnd)||0])}}else if(be.source==="compositionEnd")return;K(rt),T.current&&To(T.current,re,n,rt)};_.useEffect(function(){if(Q){var oe;(oe=T.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,Ce(Q))}},[Q]);var Oe=function(re){ve(re,re.target.value,{source:"change"})},B=function(re){M.current=!1,ve(re,re.currentTarget.value,{source:"compositionEnd"}),w==null||w(re)},ce=function(re){i&&re.key==="Enter"&&!H.current&&(H.current=!0,i(re)),s==null||s(re)},se=function(re){re.key==="Enter"&&(H.current=!1),l==null||l(re)},xe=function(re){A(!0),a==null||a(re)},he=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),T.current&&To(T.current,re,n)},ge=de&&"".concat(d,"-out-of-range"),$e=function(){var re=br(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _.createElement("input",we({autoComplete:r},re,{onChange:Oe,onFocus:xe,onBlur:he,onKeyDown:ce,onKeyUp:se,className:Z(d,L({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:T,size:v,type:y,onCompositionStart:function(be){M.current=!0,R==null||R(be)},onCompositionEnd:B}))},Ae=function(){var re=Number(ae)>0;if(p||te.show){var pe=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return _.createElement(_.Fragment,null,te.show&&_.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:z({},E==null?void 0:E.count)},pe),p)}return null};return _.createElement(pv,we({},$,{prefixCls:d,className:Z(b,ge),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Ae(),disabled:f,classes:x,classNames:S,styles:E}),$e())});const bv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:_.createElement(Xd,null)}),t};function ix(e,t){const r=_.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return _.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function sx(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function cx(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const ux=_.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:g,rootClassName:C,onChange:m,classNames:y,variant:x}=e,S=lx(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}=Mt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:R,input:w}=_.useContext(it),$=E("input",n),N=_.useRef(null),F=il($),[j,A,M]=av($,F),{compactSize:H,compactItemClassnames:T}=af($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=_.useContext(Fn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=_.useContext($a),W=Nf(V,o),q=sx(e)||!!k,Y=_.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Mt("Input");_.useEffect(()=>{var ce;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=N.current)===null||ce===void 0?void 0:ce.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Y.current=q},[q])}const Q=ix(N),J=B=>{Q(),l==null||l(B)},te=B=>{Q(),u==null||u(B)},ae=B=>{Q(),m==null||m(B)},fe=(k||d)&&_.createElement(_.Fragment,null,d,k&&K),de=bv(f??(w==null?void 0:w.allowClear)),[ve,Oe]=If("input",x,a);return j(_.createElement(ox,Object.assign({ref:Rr(t,N),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},S,{disabled:D,onBlur:J,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:fe,allowClear:de,className:Z(h,C,M,F,T,w==null?void 0:w.className),onChange:ae,addonBefore:b&&_.createElement(Is,{form:!0,space:!0},b),addonAfter:v&&_.createElement(Is,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Z({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Z({[`${$}-${ve}`]:Oe},As($,W)),affixWrapper:Z({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Z({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Z({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:Oe},As(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(ux.displayName="Input");var dx=`
|
|
256
256
|
min-height:0 !important;
|
|
257
257
|
max-height:none !important;
|
|
258
258
|
height:0 !important;
|
|
@@ -263,29 +263,29 @@ html body {
|
|
|
263
263
|
top:0 !important;
|
|
264
264
|
right:0 !important;
|
|
265
265
|
pointer-events: none !important;
|
|
266
|
-
`,ax=["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"],Ri={},or;function ox(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ri[r])return Ri[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=ax.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Ri[r]=l),l}function ix(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;or||(or=document.createElement("textarea"),or.setAttribute("tab-index","-1"),or.setAttribute("aria-hidden","true"),document.body.appendChild(or)),e.getAttribute("wrap")?or.setAttribute("wrap",e.getAttribute("wrap")):or.removeAttribute("wrap");var a=ox(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;or.setAttribute("style","".concat(l,";").concat(nx)),or.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=or.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){or.value=" ";var b=or.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var sx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_i=0,Pi=1,Ti=2,lx=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=et(r,sx),h=ir(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],C=p[1],m=function(Y){C(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var x=c.useMemo(function(){return i&&Ie(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(x,2),E=S[0],R=S[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,Q=Y.selectionStart,J=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(Q,J),y.current.scrollTop=te}}catch{}},N=c.useState(Ti),F=U(N,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),T=H[0],O=H[1],I=function(){A(_i),process.env.NODE_ENV==="test"&&(v==null||v())};St(function(){w&&I()},[o,E,R,w]),St(function(){if(j===_i)A(Pi);else if(j===Pi){var q=ix(y.current,!1,E,R);A(Ti),O(q)}else $()},[j]);var D=c.useRef(),V=function(){Tt.cancel(D.current)},k=function(Y){j===Ti&&(s==null||s(Y),i&&(V(),D.current=Tt(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?T:null,W=z(z({},u),K);return(j===_i||j===Pi)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(gr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",Oe({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),cx=["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"],ux=_.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,g=e.count,C=e.className,m=e.style,y=e.disabled,x=e.hidden,S=e.classNames,E=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,N=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=et(e,cx),M=ir(n,{value:a,defaultValue:n}),H=U(M,2),T=H[0],O=H[1],I=T==null?"":String(T),D=_.useState(!1),V=U(D,2),k=V[0],K=V[1],W=_.useRef(!1),q=_.useState(null),Y=U(q,2),Q=Y[0],J=Y[1],te=_.useRef(null),ae=_.useRef(null),fe=function(){var Ne;return(Ne=ae.current)===null||Ne===void 0?void 0:Ne.textArea},de=function(){fe().focus()};_.useImperativeHandle(t,function(){var Le;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Le=te.current)===null||Le===void 0?void 0:Le.nativeElement)||fe()}}),_.useEffect(function(){K(function(Le){return!y&&Le})},[y]);var ve=_.useState(null),we=U(ve,2),B=we[0],ce=we[1];_.useEffect(function(){if(B){var Le;(Le=fe()).setSelectionRange.apply(Le,ye(B))}},[B]);var se=gv(g,p),Se=(r=se.max)!==null&&r!==void 0?r:u,pe=Number(Se)>0,ne=se.strategy(I),ge=!!Se&&ne>Se,Ee=function(Ne,st){var Ze=st;!W.current&&se.exceedFormatter&&se.max&&se.strategy(st)>se.max&&(Ze=se.exceedFormatter(st,{max:se.max}),st!==Ze&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ze),To(Ne.currentTarget,Ne,s,Ze)},Ae=function(Ne){W.current=!0,d==null||d(Ne)},oe=function(Ne){W.current=!1,Ee(Ne,Ne.currentTarget.value),f==null||f(Ne)},re=function(Ne){Ee(Ne,Ne.target.value)},me=function(Ne){Ne.key==="Enter"&&$&&$(Ne),j==null||j(Ne)},he=function(Ne){K(!0),o==null||o(Ne)},rt=function(Ne){K(!1),i==null||i(Ne)},Xe=function(Ne){O(""),de(),To(fe(),Ne,s)},je=v,Ke;se.show&&(se.showFormatter?Ke=se.showFormatter({value:I,count:ne,maxLength:Se}):Ke="".concat(ne).concat(pe?" / ".concat(Se):""),je=_.createElement(_.Fragment,null,je,_.createElement("span",{className:Z("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Ke)));var Ye=function(Ne){var st;R==null||R(Ne),(st=fe())!==null&&st!==void 0&&st.style.height&&J(!0)},Je=!F&&!p&&!l;return _.createElement(vv,{ref:te,value:I,allowClear:l,handleReset:Xe,suffix:je,prefixCls:h,classNames:z(z({},S),{},{affixWrapper:Z(S==null?void 0:S.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Z(C,ge&&"".concat(h,"-out-of-range")),style:z(z({},m),Q&&!Je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x,readOnly:N,onClear:w},_.createElement(lx,Oe({},A,{autoSize:F,maxLength:u,onKeyDown:me,onChange:re,onFocus:he,onBlur:rt,onCompositionStart:Ae,onCompositionEnd:oe,className:Z(S==null?void 0:S.textarea),style:z(z({},E==null?void 0:E.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:ae,readOnly:N})))}),dx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fx=_.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,g=dx(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=Mt("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:m,textArea:y}=c.useContext(it),x=Hn(i),S=c.useContext(Fn),E=s??S,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),N=Tf(R,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=F.current)===null||V===void 0?void 0:V.resizableTextArea,focus:k=>{var K,W;tx((W=(K=F.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=F.current)===null||k===void 0?void 0:k.blur()}}});const j=C("input",a),A=il(j),[M,H,T]=rv(j,A),[O,I]=Nf("textArea",p,o),D=mv(u??(y==null?void 0:y.allowClear));return M(c.createElement(ux,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:E,allowClear:D,className:Z(T,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Z({[`${j}-sm`]:x==="small",[`${j}-lg`]:x==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${j}-${O}`]:I},As(j,N)),affixWrapper:Z(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:m==="rtl",[`${j}-affix-wrapper-sm`]:x==="small",[`${j}-affix-wrapper-lg`]:x==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:w&&c.createElement("span",{className:`${j}-textarea-suffix`},$),ref:F})))});function No(e){return["small","middle","large"].includes(e)}function yu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const pv=_.createContext({latestIndex:0}),vx=pv.Provider,gx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(pv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var mx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const px=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(it),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:g,wrap:C=!1,classNames:m,styles:y}=e,x=mx(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(l)?l:[l,l],R=No(E),w=No(S),$=yu(E),N=yu(S),F=Or(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,T]=tf(A),O=Z(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${E}`]:R,[`${A}-gap-col-${S}`]:w},d,f,T),I=Z(`${A}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const V=F.map((W,q)=>{var Y,Q;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(gx,{className:I,key:J,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(Q=i==null?void 0:i.styles)===null||Q===void 0?void 0:Q.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return C&&(K.flexWrap="wrap"),!w&&N&&(K.columnGap=S),!R&&$&&(K.rowGap=E),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},x),c.createElement(vx,{value:k},V)))}),Da=px;Da.Compact=f0;process.env.NODE_ENV!=="production"&&(Da.displayName="Space");const hv=["wrap","nowrap","wrap-reverse"],bv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],yv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hx=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&hv.includes(r)}},bx=(e,t)=>{const r={};return yv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},yx=(e,t)=>{const r={};return bv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function Cx(e,t){return Z(Object.assign(Object.assign(Object.assign({},hx(e,t)),bx(e,t)),yx(e,t)))}const Sx=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},xx=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Ex=e=>{const{componentCls:t}=e,r={};return hv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},wx=e=>{const{componentCls:t}=e,r={};return yv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},$x=e=>{const{componentCls:t}=e,r={};return bv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Ox=()=>({}),Rx=yr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Dt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[Sx(a),xx(a),Ex(a),wx(a),$x(a)]},Ox,{resetStyle:!1});var _x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cv=_.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=_x(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=_.useContext(it),p=h("flex",r),[g,C,m]=Rx(p),y=u??(v==null?void 0:v.vertical),x=Z(a,n,v==null?void 0:v.className,p,C,m,Cx(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:No(s),[`${p}-vertical`]:y}),S=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(S.flex=i),s&&!No(s)&&(S.gap=s),g(_.createElement(d,Object.assign({ref:t,className:x,style:S},br(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Cv.displayName="Flex");var Px={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"},Tx=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Px}))},Sv=c.forwardRef(Tx);process.env.NODE_ENV!=="production"&&(Sv.displayName="CopyOutlined");var Nx={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"},Ix=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Nx}))},xv=c.forwardRef(Ix);process.env.NODE_ENV!=="production"&&(xv.displayName="EditOutlined");var Mx={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"},Ax=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:Mx}))},Ev=c.forwardRef(Ax);process.env.NODE_ENV!=="production"&&(Ev.displayName="EnterOutlined");var jx={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"},Fx=function(t,r){return c.createElement(Yt,Oe({},t,{ref:r,icon:jx}))},wv=c.forwardRef(Fx);process.env.NODE_ENV!=="production"&&(wv.displayName="InfoCircleOutlined");var Lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Dx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ws=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===le.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===le.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=Lx(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},Dx)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),zx=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Vx=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
266
|
+
`,fx=["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"],Ri={},or;function vx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ri[r])return Ri[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=fx.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Ri[r]=l),l}function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;or||(or=document.createElement("textarea"),or.setAttribute("tab-index","-1"),or.setAttribute("aria-hidden","true"),document.body.appendChild(or)),e.getAttribute("wrap")?or.setAttribute("wrap",e.getAttribute("wrap")):or.removeAttribute("wrap");var a=vx(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;or.setAttribute("style","".concat(l,";").concat(dx)),or.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=or.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){or.value=" ";var b=or.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var mx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_i=0,Pi=1,Ti=2,px=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=et(r,mx),h=ir(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],C=p[1],m=function(Y){C(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var x=c.useMemo(function(){return i&&Ie(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(x,2),E=S[0],R=S[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,Q=Y.selectionStart,J=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(Q,J),y.current.scrollTop=te}}catch{}},N=c.useState(Ti),F=U(N,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),T=H[0],O=H[1],I=function(){A(_i),process.env.NODE_ENV==="test"&&(v==null||v())};St(function(){w&&I()},[o,E,R,w]),St(function(){if(j===_i)A(Pi);else if(j===Pi){var q=gx(y.current,!1,E,R);A(Ti),O(q)}else $()},[j]);var D=c.useRef(),V=function(){Tt.cancel(D.current)},k=function(Y){j===Ti&&(s==null||s(Y),i&&(V(),D.current=Tt(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?T:null,W=z(z({},u),K);return(j===_i||j===Pi)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(gr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",we({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),hx=["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"],bx=_.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,g=e.count,C=e.className,m=e.style,y=e.disabled,x=e.hidden,S=e.classNames,E=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,N=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=et(e,hx),M=ir(n,{value:a,defaultValue:n}),H=U(M,2),T=H[0],O=H[1],I=T==null?"":String(T),D=_.useState(!1),V=U(D,2),k=V[0],K=V[1],W=_.useRef(!1),q=_.useState(null),Y=U(q,2),Q=Y[0],J=Y[1],te=_.useRef(null),ae=_.useRef(null),fe=function(){var Ne;return(Ne=ae.current)===null||Ne===void 0?void 0:Ne.textArea},de=function(){fe().focus()};_.useImperativeHandle(t,function(){var Le;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Le=te.current)===null||Le===void 0?void 0:Le.nativeElement)||fe()}}),_.useEffect(function(){K(function(Le){return!y&&Le})},[y]);var ve=_.useState(null),Oe=U(ve,2),B=Oe[0],ce=Oe[1];_.useEffect(function(){if(B){var Le;(Le=fe()).setSelectionRange.apply(Le,Ce(B))}},[B]);var se=hv(g,p),xe=(r=se.max)!==null&&r!==void 0?r:u,he=Number(xe)>0,ne=se.strategy(I),ge=!!xe&&ne>xe,$e=function(Ne,st){var Ze=st;!W.current&&se.exceedFormatter&&se.max&&se.strategy(st)>se.max&&(Ze=se.exceedFormatter(st,{max:se.max}),st!==Ze&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ze),To(Ne.currentTarget,Ne,s,Ze)},Ae=function(Ne){W.current=!0,d==null||d(Ne)},oe=function(Ne){W.current=!1,$e(Ne,Ne.currentTarget.value),f==null||f(Ne)},re=function(Ne){$e(Ne,Ne.target.value)},pe=function(Ne){Ne.key==="Enter"&&$&&$(Ne),j==null||j(Ne)},be=function(Ne){K(!0),o==null||o(Ne)},rt=function(Ne){K(!1),i==null||i(Ne)},Xe=function(Ne){O(""),de(),To(fe(),Ne,s)},je=v,Ke;se.show&&(se.showFormatter?Ke=se.showFormatter({value:I,count:ne,maxLength:xe}):Ke="".concat(ne).concat(he?" / ".concat(xe):""),je=_.createElement(_.Fragment,null,je,_.createElement("span",{className:Z("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Ke)));var Ye=function(Ne){var st;R==null||R(Ne),(st=fe())!==null&&st!==void 0&&st.style.height&&J(!0)},Je=!F&&!p&&!l;return _.createElement(pv,{ref:te,value:I,allowClear:l,handleReset:Xe,suffix:je,prefixCls:h,classNames:z(z({},S),{},{affixWrapper:Z(S==null?void 0:S.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Z(C,ge&&"".concat(h,"-out-of-range")),style:z(z({},m),Q&&!Je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x,readOnly:N,onClear:w},_.createElement(px,we({},A,{autoSize:F,maxLength:u,onKeyDown:pe,onChange:re,onFocus:be,onBlur:rt,onCompositionStart:Ae,onCompositionEnd:oe,className:Z(S==null?void 0:S.textarea),style:z(z({},E==null?void 0:E.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:ae,readOnly:N})))}),yx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cx=_.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,g=yx(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=Mt("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:m,textArea:y}=c.useContext(it),x=Hn(i),S=c.useContext(Fn),E=s??S,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),N=Nf(R,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=F.current)===null||V===void 0?void 0:V.resizableTextArea,focus:k=>{var K,W;cx((W=(K=F.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=F.current)===null||k===void 0?void 0:k.blur()}}});const j=C("input",a),A=il(j),[M,H,T]=av(j,A),[O,I]=If("textArea",p,o),D=bv(u??(y==null?void 0:y.allowClear));return M(c.createElement(bx,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:E,allowClear:D,className:Z(T,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Z({[`${j}-sm`]:x==="small",[`${j}-lg`]:x==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${j}-${O}`]:I},As(j,N)),affixWrapper:Z(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:m==="rtl",[`${j}-affix-wrapper-sm`]:x==="small",[`${j}-affix-wrapper-lg`]:x==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:w&&c.createElement("span",{className:`${j}-textarea-suffix`},$),ref:F})))});function No(e){return["small","middle","large"].includes(e)}function Cu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const yv=_.createContext({latestIndex:0}),Sx=yv.Provider,xx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(yv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var Ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wx=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(it),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:g,wrap:C=!1,classNames:m,styles:y}=e,x=Ex(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(l)?l:[l,l],R=No(E),w=No(S),$=Cu(E),N=Cu(S),F=Or(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,T]=rf(A),O=Z(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${E}`]:R,[`${A}-gap-col-${S}`]:w},d,f,T),I=Z(`${A}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const V=F.map((W,q)=>{var Y,Q;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(xx,{className:I,key:J,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(Q=i==null?void 0:i.styles)===null||Q===void 0?void 0:Q.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return C&&(K.flexWrap="wrap"),!w&&N&&(K.columnGap=S),!R&&$&&(K.rowGap=E),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},x),c.createElement(Sx,{value:k},V)))}),Da=wx;Da.Compact=p0;process.env.NODE_ENV!=="production"&&(Da.displayName="Space");const Cv=["wrap","nowrap","wrap-reverse"],Sv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],$x=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Cv.includes(r)}},Ox=(e,t)=>{const r={};return xv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},Rx=(e,t)=>{const r={};return Sv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function _x(e,t){return Z(Object.assign(Object.assign(Object.assign({},$x(e,t)),Ox(e,t)),Rx(e,t)))}const Px=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Tx=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Nx=e=>{const{componentCls:t}=e,r={};return Cv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},Ix=e=>{const{componentCls:t}=e,r={};return xv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},Mx=e=>{const{componentCls:t}=e,r={};return Sv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Ax=()=>({}),jx=yr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Dt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[Px(a),Tx(a),Nx(a),Ix(a),Mx(a)]},Ax,{resetStyle:!1});var Fx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Ev=_.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=Fx(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=_.useContext(it),p=h("flex",r),[g,C,m]=jx(p),y=u??(v==null?void 0:v.vertical),x=Z(a,n,v==null?void 0:v.className,p,C,m,_x(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:No(s),[`${p}-vertical`]:y}),S=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(S.flex=i),s&&!No(s)&&(S.gap=s),g(_.createElement(d,Object.assign({ref:t,className:x,style:S},br(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Ev.displayName="Flex");var Lx={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"},Dx=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Lx}))},wv=c.forwardRef(Dx);process.env.NODE_ENV!=="production"&&(wv.displayName="CopyOutlined");var zx={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"},Vx=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:zx}))},$v=c.forwardRef(Vx);process.env.NODE_ENV!=="production"&&($v.displayName="DownloadOutlined");var Bx={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"},kx=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Bx}))},Ov=c.forwardRef(kx);process.env.NODE_ENV!=="production"&&(Ov.displayName="EditOutlined");var Hx={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"},Wx=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Hx}))},Rv=c.forwardRef(Wx);process.env.NODE_ENV!=="production"&&(Rv.displayName="EnterOutlined");var Gx={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"},Ux=function(t,r){return c.createElement(zt,we({},t,{ref:r,icon:Gx}))},_v=c.forwardRef(Ux);process.env.NODE_ENV!=="production"&&(_v.displayName="InfoCircleOutlined");var Kx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const qx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ws=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===le.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===le.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=Kx(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},qx)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),Xx=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Yx=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
267
267
|
h${n}&,
|
|
268
268
|
div&-h${n},
|
|
269
269
|
div&-h${n} > textarea,
|
|
270
270
|
h${n}
|
|
271
|
-
`]=
|
|
271
|
+
`]=Xx(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Zx=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Nd(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"}}})}},Qx=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:Co[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}}),Jx=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${ee(n)})`},[`${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"}}}},eE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tE=()=>({"\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"}}),rE=e=>{const{componentCls:t,titleMarginTop:r}=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"}},Yx(e)),{[`
|
|
272
272
|
& + h1${t},
|
|
273
273
|
& + h2${t},
|
|
274
274
|
& + h3${t},
|
|
275
275
|
& + h4${t},
|
|
276
276
|
& + h5${t}
|
|
277
|
-
`]:{marginTop:r},"\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:r}}}),
|
|
277
|
+
`]:{marginTop:r},"\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:r}}}),Qx(e)),Zx(e)),{[`
|
|
278
278
|
${t}-expand,
|
|
279
279
|
${t}-collapse,
|
|
280
280
|
${t}-edit,
|
|
281
281
|
${t}-copy
|
|
282
|
-
`]:Object.assign(Object.assign({},Td(e)),{marginInlineStart:e.marginXXS})}),Hx(e)),Wx(e)),Gx()),{"&-rtl":{direction:"rtl"}})}},Kx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$v=yr("Typography",e=>[Ux(e)],Kx),qx=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(Ev,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:T}=h.current.resizableTextArea;T.focus();const{length:O}=T.value;T.setSelectionRange(O,O)}},[]);const y=H=>{let{target:T}=H;m(T.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=H=>{let{keyCode:T}=H;p.current||(g.current=T)},R=()=>{u(C.trim())},w=H=>{let{keyCode:T,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;g.current===T&&!p.current&&!O&&!I&&!D&&!V&&(T===le.ENTER?(R(),f==null||f()):T===le.ESC&&d())},$=()=>{R()},N=v?`${t}-${v}`:"",[F,j,A]=$v(t),M=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,N,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(fx,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Vo(b,{className:`${t}-edit-content-confirm`}):null))};var Xx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},Yx=Xx,Cu={"text/plain":"Text","text/html":"Url",default:"Text"},Zx="Copy to clipboard: #{key}, Enter";function Qx(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Jx(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Yx(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Cu[t.format]||Cu.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Qx("message"in t?t.message:Zx),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var eE=Jx;const tE=Ou(eE);var rE=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const nE=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=kt(f=>rE(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;tE(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Ni(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const aE=e=>{const t=_.useRef();return _.useEffect(()=>{t.current=e}),t.current},oE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var iE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=iE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(it),h=l??v;let p=t;i&&(p=Rr(t,i)),process.env.NODE_ENV!=="production"&&Mt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=$v(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(wl.displayName="Typography");function Su(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ro(e,t,r){return e===!0||e===void 0?t:e||r&&t}function sE(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const lE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=Su(o),f=Su(i),{copied:v,copy:b}=n??{},h=r?ro(d[1],v):ro(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Ws,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?ro(f[1],c.createElement(If,null),!0):ro(f[0],s?c.createElement(sl,null):c.createElement(Sv,null),!0)))},no=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Ov(e){const t=typeof e;return t==="string"||t==="number"}function cE(e){let t=0;return e.forEach(r=>{Ov(r)?t+=String(r).length:t+=1}),t}function xu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Ov(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Ii=0,Mi=1,Ai=2,ji=3,Eu=4,ao={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function uE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Or(n),[n]),d=c.useMemo(()=>cE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Ii),[R,w]=c.useState(0),[$,N]=c.useState(null);St(()=>{E(t&&r&&d?Mi:Ii)},[r,n,o,t,u]),St(()=>{var M,H,T,O;if(S===Mi){E(Ai);const I=p.current&&getComputedStyle(p.current).whiteSpace;N(I)}else if(S===Ai){const I=!!(!((M=g.current)===null||M===void 0)&&M.isExceed());E(I?ji:Eu),b(I?[0,d]:null),x(I);const D=((H=g.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((T=C.current)===null||T===void 0?void 0:T.getHeight())||0,k=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[S]);const F=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var M;const[H,T]=v||[0,0];if(H!==T){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;T-H===1&&(D=I?H:T),b(I?[H,D]:[D,T])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==ji||!v||v[0]!==v[1]){const M=a(u,!1);return S!==Eu&&S!==Ii?c.createElement("span",{style:Object.assign(Object.assign({},ao),{WebkitLineClamp:o})},M):M}return a(i?u:xu(u,v[0]),y)},[i,S,v,u].concat(ye(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,S===Ai&&c.createElement(c.Fragment,null,c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:o}),ref:g},f),c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:1}),ref:m},a([],!0))),S===ji&&v&&v[0]!==v[1]&&c.createElement(no,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(xu(u,F),!0)),S===Mi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Rv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(ja,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Rv.displayName="EllipsisTooltip");var dE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function fE(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const vE="...",Zo=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=dE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(it),[y]=Dm("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=br(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[N,F]=ir(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var xe;ue&&((xe=$.onStart)===null||xe===void 0||xe.call($)),F(ue)},M=aE(N);oE(()=>{var ue;!N&&M&&((ue=S.current)===null||ue===void 0||ue.focus())},[N]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},T=ue=>{var xe;(xe=$.onChange)===null||xe===void 0||xe.call($,ue),A(!1)},O=()=>{var ue;(ue=$.onCancel)===null||ue===void 0||ue.call($),A(!1)},[I,D]=Ni(b),{copied:V,copyLoading:k,onClick:K}=nE({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Y,Q]=c.useState(!1),[J,te]=c.useState(!1),[ae,fe]=c.useState(!1),[de,ve]=c.useState(!0),[we,B]=Ni(f,{expandable:!1,symbol:ue=>ue?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,se]=ir(B.defaultExpanded||!1,{value:B.expanded}),Se=we&&(!ce||B.expandable==="collapsible"),{rows:pe=1}=B,ne=c.useMemo(()=>Se&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[Se,B,w,I]);St(()=>{we&&!ne&&(q(Dc("webkitLineClamp")),Q(Dc("textOverflow")))},[ne,we]);const[ge,Ee]=c.useState(Se),Ae=c.useMemo(()=>ne?!1:pe===1?Y:W,[ne,Y,W]);St(()=>{Ee(Ae&&Se)},[Ae,Se]);const oe=Se&&(ge?ae:J),re=Se&&pe===1&&ge,me=Se&&pe>1&&ge,he=(ue,xe)=>{var qe;se(xe.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,ue,xe)},[rt,Xe]=c.useState(0),je=ue=>{let{offsetWidth:xe}=ue;Xe(xe)},Ke=ue=>{var xe;te(ue),J!==ue&&((xe=B.onEllipsis)===null||xe===void 0||xe.call(B,ue))};c.useEffect(()=>{const ue=x.current;if(we&&ge&&ue){const xe=sE(ue);ae!==xe&&fe(xe)}},[we,ge,d,me,de,rt]),c.useEffect(()=>{const ue=x.current;if(typeof IntersectionObserver>"u"||!ue||!ge||!Se)return;const xe=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return xe.observe(ue),()=>{xe.disconnect()}},[ge,Se]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const Je=c.useMemo(()=>{const ue=xe=>["string","number"].includes(typeof xe);if(!(!we||ge)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Ye.title))return Ye.title}},[we,ge,p,Ye.title,oe]);if(N)return c.createElement(qx,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:T,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:ue,symbol:xe}=B;return ue?c.createElement(Ws,{key:"expand",className:`${E}-${ce?"collapse":"expand"}`,onClick:qe=>he(qe,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof xe=="function"?xe(ce):xe):null},Ne=()=>{if(!w)return;const{icon:ue,tooltip:xe,tabIndex:qe}=$,nt=Or(xe)[0]||(y==null?void 0:y.edit),Ct=typeof nt=="string"?nt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:xe===!1?"":nt},c.createElement(Ws,{ref:S,className:`${E}-edit`,onClick:H,"aria-label":Ct,tabIndex:qe},ue||c.createElement(xv,{role:"button"}))):null},st=()=>I?c.createElement(lE,Object.assign({key:"copy"},D,{prefixCls:E,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ze=ue=>[ue&&Le(),Ne(),st()],De=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},vE),B.suffix,Ze(ue)];return c.createElement(gr,{onResize:je,disabled:!Se},ue=>c.createElement(Rv,{tooltipProps:Ye,enableEllipsis:Se,isEllipsis:oe},c.createElement(wl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:we,[`${E}-ellipsis-single-line`]:re,[`${E}-ellipsis-multiple-line`]:me},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:me?pe:void 0}),component:h,ref:Rr(ue,x,t),direction:m,onClick:j.includes("text")?H:void 0,"aria-label":Je==null?void 0:Je.toString(),title:p},R),c.createElement(uE,{enableMeasure:Se&&!ge,text:d,rows:pe,width:rt,onEllipsis:Ke,expanded:ce,miscDeps:[V,ce,k,w,I]},(xe,qe)=>fE(e,c.createElement(c.Fragment,null,xe.length>0&&qe&&!ce&&Je?c.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,De(qe)))))))});var gE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const mE=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=gE(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Mt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(Zo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),pE=c.forwardRef((e,t)=>c.createElement(Zo,Object.assign({ref:t},e,{component:"div"})));var hE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const bE=(e,t)=>{var{ellipsis:r}=e,n=hE(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?br(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Mt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Zo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},yE=c.forwardRef(bE);var CE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wu=[1,2,3,4,5],SE=c.forwardRef((e,t)=>{const{level:r=1}=e,n=CE(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Mt("Typography.Title");process.env.NODE_ENV!=="production"&&o(wu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return wu.includes(r)?a=`h${r}`:a="h1",c.createElement(Zo,Object.assign({ref:t},n,{component:a}))}),zr=wl;zr.Text=yE;zr.Link=mE;zr.Title=SE;zr.Paragraph=pE;const xE=bt(Ho)`
|
|
282
|
+
`]:Object.assign(Object.assign({},Nd(e)),{marginInlineStart:e.marginXXS})}),Jx(e)),eE(e)),tE()),{"&-rtl":{direction:"rtl"}})}},nE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Pv=yr("Typography",e=>[rE(e)],nE),aE=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(Rv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:T}=h.current.resizableTextArea;T.focus();const{length:O}=T.value;T.setSelectionRange(O,O)}},[]);const y=H=>{let{target:T}=H;m(T.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=H=>{let{keyCode:T}=H;p.current||(g.current=T)},R=()=>{u(C.trim())},w=H=>{let{keyCode:T,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;g.current===T&&!p.current&&!O&&!I&&!D&&!V&&(T===le.ENTER?(R(),f==null||f()):T===le.ESC&&d())},$=()=>{R()},N=v?`${t}-${v}`:"",[F,j,A]=Pv(t),M=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,N,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(Cx,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Vo(b,{className:`${t}-edit-content-confirm`}):null))};var oE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},iE=oE,Su={"text/plain":"Text","text/html":"Url",default:"Text"},sE="Copy to clipboard: #{key}, Enter";function lE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function cE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=iE(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Su[t.format]||Su.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=lE("message"in t?t.message:sE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var uE=cE;const dE=Ru(uE);var fE=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const vE=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Ht(f=>fE(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;dE(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Ni(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const gE=e=>{const t=_.useRef();return _.useEffect(()=>{t.current=e}),t.current},mE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var pE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=pE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(it),h=l??v;let p=t;i&&(p=Rr(t,i)),process.env.NODE_ENV!=="production"&&Mt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=Pv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(wl.displayName="Typography");function xu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ro(e,t,r){return e===!0||e===void 0?t:e||r&&t}function hE(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const bE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=xu(o),f=xu(i),{copied:v,copy:b}=n??{},h=r?ro(d[1],v):ro(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Ws,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?ro(f[1],c.createElement(Mf,null),!0):ro(f[0],s?c.createElement(sl,null):c.createElement(wv,null),!0)))},no=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Tv(e){const t=typeof e;return t==="string"||t==="number"}function yE(e){let t=0;return e.forEach(r=>{Tv(r)?t+=String(r).length:t+=1}),t}function Eu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Tv(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Ii=0,Mi=1,Ai=2,ji=3,wu=4,ao={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function CE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Or(n),[n]),d=c.useMemo(()=>yE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Ii),[R,w]=c.useState(0),[$,N]=c.useState(null);St(()=>{E(t&&r&&d?Mi:Ii)},[r,n,o,t,u]),St(()=>{var M,H,T,O;if(S===Mi){E(Ai);const I=p.current&&getComputedStyle(p.current).whiteSpace;N(I)}else if(S===Ai){const I=!!(!((M=g.current)===null||M===void 0)&&M.isExceed());E(I?ji:wu),b(I?[0,d]:null),x(I);const D=((H=g.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((T=C.current)===null||T===void 0?void 0:T.getHeight())||0,k=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[S]);const F=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var M;const[H,T]=v||[0,0];if(H!==T){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;T-H===1&&(D=I?H:T),b(I?[H,D]:[D,T])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==ji||!v||v[0]!==v[1]){const M=a(u,!1);return S!==wu&&S!==Ii?c.createElement("span",{style:Object.assign(Object.assign({},ao),{WebkitLineClamp:o})},M):M}return a(i?u:Eu(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,S===Ai&&c.createElement(c.Fragment,null,c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:o}),ref:g},f),c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(no,{style:Object.assign(Object.assign(Object.assign({},A),ao),{WebkitLineClamp:1}),ref:m},a([],!0))),S===ji&&v&&v[0]!==v[1]&&c.createElement(no,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(Eu(u,F),!0)),S===Mi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Nv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(ja,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Nv.displayName="EllipsisTooltip");var SE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function xE(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const EE="...",Zo=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=SE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(it),[y]=km("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=br(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[N,F]=ir(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var Ee;ue&&((Ee=$.onStart)===null||Ee===void 0||Ee.call($)),F(ue)},M=gE(N);mE(()=>{var ue;!N&&M&&((ue=S.current)===null||ue===void 0||ue.focus())},[N]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},T=ue=>{var Ee;(Ee=$.onChange)===null||Ee===void 0||Ee.call($,ue),A(!1)},O=()=>{var ue;(ue=$.onCancel)===null||ue===void 0||ue.call($),A(!1)},[I,D]=Ni(b),{copied:V,copyLoading:k,onClick:K}=vE({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Y,Q]=c.useState(!1),[J,te]=c.useState(!1),[ae,fe]=c.useState(!1),[de,ve]=c.useState(!0),[Oe,B]=Ni(f,{expandable:!1,symbol:ue=>ue?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,se]=ir(B.defaultExpanded||!1,{value:B.expanded}),xe=Oe&&(!ce||B.expandable==="collapsible"),{rows:he=1}=B,ne=c.useMemo(()=>xe&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[xe,B,w,I]);St(()=>{Oe&&!ne&&(q(zc("webkitLineClamp")),Q(zc("textOverflow")))},[ne,Oe]);const[ge,$e]=c.useState(xe),Ae=c.useMemo(()=>ne?!1:he===1?Y:W,[ne,Y,W]);St(()=>{$e(Ae&&xe)},[Ae,xe]);const oe=xe&&(ge?ae:J),re=xe&&he===1&&ge,pe=xe&&he>1&&ge,be=(ue,Ee)=>{var qe;se(Ee.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,ue,Ee)},[rt,Xe]=c.useState(0),je=ue=>{let{offsetWidth:Ee}=ue;Xe(Ee)},Ke=ue=>{var Ee;te(ue),J!==ue&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ue))};c.useEffect(()=>{const ue=x.current;if(Oe&&ge&&ue){const Ee=hE(ue);ae!==Ee&&fe(Ee)}},[Oe,ge,d,pe,de,rt]),c.useEffect(()=>{const ue=x.current;if(typeof IntersectionObserver>"u"||!ue||!ge||!xe)return;const Ee=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return Ee.observe(ue),()=>{Ee.disconnect()}},[ge,xe]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const Je=c.useMemo(()=>{const ue=Ee=>["string","number"].includes(typeof Ee);if(!(!Oe||ge)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Ye.title))return Ye.title}},[Oe,ge,p,Ye.title,oe]);if(N)return c.createElement(aE,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:T,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:ue,symbol:Ee}=B;return ue?c.createElement(Ws,{key:"expand",className:`${E}-${ce?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof Ee=="function"?Ee(ce):Ee):null},Ne=()=>{if(!w)return;const{icon:ue,tooltip:Ee,tabIndex:qe}=$,nt=Or(Ee)[0]||(y==null?void 0:y.edit),Ct=typeof nt=="string"?nt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:Ee===!1?"":nt},c.createElement(Ws,{ref:S,className:`${E}-edit`,onClick:H,"aria-label":Ct,tabIndex:qe},ue||c.createElement(Ov,{role:"button"}))):null},st=()=>I?c.createElement(bE,Object.assign({key:"copy"},D,{prefixCls:E,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ze=ue=>[ue&&Le(),Ne(),st()],De=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},EE),B.suffix,Ze(ue)];return c.createElement(gr,{onResize:je,disabled:!xe},ue=>c.createElement(Nv,{tooltipProps:Ye,enableEllipsis:xe,isEllipsis:oe},c.createElement(wl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:re,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:Rr(ue,x,t),direction:m,onClick:j.includes("text")?H:void 0,"aria-label":Je==null?void 0:Je.toString(),title:p},R),c.createElement(CE,{enableMeasure:xe&&!ge,text:d,rows:he,width:rt,onEllipsis:Ke,expanded:ce,miscDeps:[V,ce,k,w,I]},(Ee,qe)=>xE(e,c.createElement(c.Fragment,null,Ee.length>0&&qe&&!ce&&Je?c.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,De(qe)))))))});var wE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $E=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=wE(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Mt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(Zo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),OE=c.forwardRef((e,t)=>c.createElement(Zo,Object.assign({ref:t},e,{component:"div"})));var RE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const _E=(e,t)=>{var{ellipsis:r}=e,n=RE(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?br(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Mt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Zo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},PE=c.forwardRef(_E);var TE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $u=[1,2,3,4,5],NE=c.forwardRef((e,t)=>{const{level:r=1}=e,n=TE(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Mt("Typography.Title");process.env.NODE_ENV!=="production"&&o($u.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return $u.includes(r)?a=`h${r}`:a="h1",c.createElement(Zo,Object.assign({ref:t},n,{component:a}))}),zr=wl;zr.Text=PE;zr.Link=$E;zr.Title=NE;zr.Paragraph=OE;const IE=bt(Ho)`
|
|
283
283
|
border-radius: var(--gf-radius-sm);
|
|
284
284
|
// background: ${e=>e.type==="primary"?"var(--gf-color-button-primary)":""};
|
|
285
285
|
${e=>e.type==="primary"&&bt.css`
|
|
286
286
|
background: var(--gf-color-button-primary);
|
|
287
287
|
`}
|
|
288
|
-
|
|
288
|
+
`,$l=({type:e="default",disabled:t=!1,onClick:r,...n})=>me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsx(IE,{type:e,disabled:t,onClick:r,...n})]}),ME=({disabled:e=!1,onClick:t,...r})=>me.jsx(me.Fragment,{children:me.jsx($l,{type:"default",disabled:e,onClick:t,icon:me.jsx($v,{}),iconPosition:"start",children:"Download",...r})}),AE=({disabled:e=!1,open:t,onClick:r,...n})=>me.jsx(me.Fragment,{children:me.jsx($l,{type:"link",disabled:e,onClick:r,icon:t?me.jsx(mv,{}):me.jsx(Af,{}),iconPosition:"end",...n})}),jE=bt(Yo)`
|
|
289
289
|
border-radius: var(--gf-radius-sm);
|
|
290
290
|
border-color: var(--gf-color-border-base);
|
|
291
291
|
${e=>e.cardtype==="default"&&bt.css`
|
|
@@ -297,7 +297,7 @@ html body {
|
|
|
297
297
|
${e=>e.cardtype==="debug"&&bt.css`
|
|
298
298
|
background: var(--gf-color-bg-debug);
|
|
299
299
|
`}
|
|
300
|
-
|
|
300
|
+
`,Ol=({cardtype:e,...t})=>me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsx(jE,{cardtype:e,...t})]}),{Text:Iv}=zr,Mv=bt(Ol)`
|
|
301
301
|
&:hover {
|
|
302
302
|
cursor: pointer;
|
|
303
303
|
border: 1px solid var(--gf-color-primary-hover);
|
|
@@ -307,25 +307,25 @@ html body {
|
|
|
307
307
|
svg:hover {
|
|
308
308
|
fill: var(--gf-color-primary-hover);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
`,FE=bt(Iv)`
|
|
311
311
|
font: var(--gf-header-h5);
|
|
312
|
-
${
|
|
312
|
+
${Mv}:hover & {
|
|
313
313
|
color: var(--gf-color-primary-hover);
|
|
314
314
|
}
|
|
315
|
-
`,
|
|
315
|
+
`,LE=bt(Iv)`
|
|
316
316
|
font: var(--gf-label-md-default);
|
|
317
317
|
color: var(--gf-color-text-secondary);
|
|
318
|
-
`,
|
|
318
|
+
`,DE=({disabled:e=!1,icon:t=_v,title:r="Title",description:n,onClick:a,...o})=>me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsxs(Mv,{onClick:a,cardtype:"default",...o,children:[me.jsxs(Hs,{gutter:16,children:[me.jsx(sa,{span:1,children:t}),me.jsx(sa,{span:23,children:me.jsx(FE,{children:r})})]}),me.jsxs(Hs,{gutter:16,children:[me.jsx(sa,{span:1}),me.jsx(sa,{span:23,children:me.jsx(LE,{children:n})})]})]})]}),{Paragraph:zE,Text:Av}=zr,VE=bt(Ol)`
|
|
319
319
|
min-width: 226px;
|
|
320
|
-
`,
|
|
320
|
+
`,BE=bt(Av)`
|
|
321
321
|
font: var(--gf-header-h1);
|
|
322
|
-
`,
|
|
322
|
+
`,kE=bt(Av)`
|
|
323
323
|
font: var(--gf-label-md-italic);
|
|
324
324
|
color: var(--gf-color-text-tertiary);
|
|
325
|
-
`,
|
|
325
|
+
`,HE=bt(zE)`
|
|
326
326
|
font: var(--gf-label-lg-default);
|
|
327
327
|
color: var(--gf-color-text-secondary);
|
|
328
|
-
`,
|
|
328
|
+
`,WE=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=_.useState(r),s=n?{onChange:i}:!1;return me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsx(VE,{cardtype:"grey",...a,children:me.jsxs(Ev,{vertical:!0,gap:8,children:[me.jsxs(Da,{direction:"horizontal",size:16,align:"end",children:[me.jsx(BE,{children:`${e}%`}),me.jsx(kE,{children:`€${t} md`})]}),me.jsx(HE,{editable:s,children:o})]})})]})},{Text:jv}=zr,GE=bt(jv)`
|
|
329
329
|
color: var(--gf-color-text-primary) !important;
|
|
330
330
|
${e=>e.type==="primary"&&bt.css`
|
|
331
331
|
font: var(--gf-header-h2);
|
|
@@ -333,7 +333,7 @@ html body {
|
|
|
333
333
|
${e=>e.type==="secondary"&&bt.css`
|
|
334
334
|
font: var(--gf-header-h4);
|
|
335
335
|
`}
|
|
336
|
-
`,
|
|
336
|
+
`,UE=bt(jv)`
|
|
337
337
|
${e=>e.type==="primary"&&bt.css`
|
|
338
338
|
font: var(--gf-label-xl-default);
|
|
339
339
|
color: var(--gf-color-text-primary) !important;
|
|
@@ -342,19 +342,19 @@ html body {
|
|
|
342
342
|
font: var(--gf-label-lg-default);
|
|
343
343
|
color: var(--gf-color-text-secondary) !important;
|
|
344
344
|
`}
|
|
345
|
-
`,
|
|
345
|
+
`,KE=({title:e,subtitle:t,type:r="primary"})=>me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsxs(Da,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[me.jsx(GE,{type:r,children:e}),me.jsx(UE,{type:r,children:t})]})]}),{Text:qE}=zr,XE=bt.a`
|
|
346
346
|
text-decoration: none;
|
|
347
|
-
`,
|
|
347
|
+
`,YE=bt(qE)`
|
|
348
348
|
font: var(--gf-label-md-default);
|
|
349
349
|
line-height: 150%;
|
|
350
350
|
color: ${e=>e.type==="light"?"white":"var(--gf-color-text-secondary)"}
|
|
351
|
-
`,
|
|
351
|
+
`,ZE=({label:e,href:t,icon:r,type:n,placement:a="left",...o})=>me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsx(XE,{href:t,...o,children:me.jsxs(Da,{direction:"horizontal",size:8,align:"start",children:[r&&a==="left"&&r,me.jsx(YE,{type:n,children:e}),r&&a==="right"&&r]})})]}),{Text:QE}=zr,JE=bt.div`
|
|
352
352
|
${e=>e.columns&&e.columns>1&&bt.css`
|
|
353
353
|
column-count: ${e.columns};
|
|
354
354
|
`}
|
|
355
355
|
text-align: ${e=>e.textalign};
|
|
356
|
-
`,
|
|
356
|
+
`,ew=bt(QE)`
|
|
357
357
|
font: var(--gf-label-lg-default);
|
|
358
358
|
color: var(--gf-color-text-secondary) ;
|
|
359
|
-
`,
|
|
359
|
+
`,tw=({text:e,columns:t,editable:r=!1,textalign:n="left",style:a,className:o})=>{const[i,s]=_.useState(e),l=r?{onChange:s}:!1;return me.jsxs(me.Fragment,{children:[me.jsx(on,{}),me.jsx(JE,{columns:t,textalign:n,style:a||{},className:o||"",children:me.jsx(ew,{editable:l,children:i})})]})},rw=()=>me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:me.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"})}),nw=()=>me.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[me.jsxs("g",{clipPath:"url(#clip0_907_17408)",children:[me.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"}),me.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"})]}),me.jsx("defs",{children:me.jsx("clipPath",{id:"clip0_907_17408",children:me.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),aw=()=>me.jsx("svg",{width:"10",height:"15",viewBox:"0 0 10 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:me.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"})});exports.Description=tw;exports.DownloadButton=ME;exports.ExpandButton=AE;exports.GFButton=$l;exports.GFCard=Ol;exports.Link=ZE;exports.LocationIcon=aw;exports.MailIcon=nw;exports.Metrics=WE;exports.NavCard=DE;exports.PhoneIcon=rw;exports.Title=KE;
|
|
360
360
|
//# sourceMappingURL=index.cjs.js.map
|