gf-components 0.0.1 → 0.0.2
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 +90 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6436 -5789
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/button/GFButton.d.ts +10 -0
- package/dist/src/components/button/index.d.ts +1 -0
- package/dist/src/components/card/GFCard.d.ts +7 -0
- package/dist/src/components/card/index.d.ts +1 -0
- package/dist/src/components/description/Description.d.ts +10 -0
- package/dist/src/components/description/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/components/metrics/Metrics.d.ts +10 -0
- package/dist/src/components/metrics/index.d.ts +1 -0
- package/dist/src/components/navCard/NavCard.d.ts +10 -0
- package/dist/src/components/navCard/index.d.ts +1 -0
- package/dist/src/components/title/Title.d.ts +8 -0
- package/dist/src/components/title/index.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +2 -2
- /package/dist/{globals.d.ts → src/globals.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),Pn=require("react-dom");function xu(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=xu(P),Rv=xu(Pn);function wu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ji={exports:{}},Zn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var wl;function Pv(){if(wl)return Zn;wl=1;var e=P,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 Zn.Fragment=r,Zn.jsx=i,Zn.jsxs=i,Zn}var Jn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var $l;function _v(){return $l||($l=1,process.env.NODE_ENV!=="production"&&function(){var e=P,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 m(_){if(_===null||typeof _!="object")return null;var G=h&&_[h]||_[p];return typeof G=="function"?G:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(_){{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",_,X)}}function y(_,G,X){{var ie=S.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(G+="%s",X=X.concat([Pe]));var $e=X.map(function(_e){return String(_e)});$e.unshift("Warning: "+G),Function.prototype.apply.call(console[_],console,$e)}}var E=!1,C=!1,x=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function T(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||w||_===a||_===u||_===d||R||_===b||E||C||x||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===l||_.$$typeof===$||_.getModuleId!==void 0))}function F(_,G,X){var ie=_.displayName;if(ie)return ie;var Pe=G.displayName||G.name||"";return Pe!==""?X+"("+Pe+")":X}function j(_){return _.displayName||"Context"}function A(_){if(_==null)return null;if(typeof _.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){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 _=="object")switch(_.$$typeof){case s:var G=_;return j(G)+".Consumer";case i:var X=_;return j(X._context)+".Provider";case l:return F(_,_.render,"ForwardRef");case f:var ie=_.displayName||null;return ie!==null?ie:A(_.type)||"Memo";case v:{var Pe=_,$e=Pe._payload,_e=Pe._init;try{return A(_e($e))}catch{return null}}}return null}var M=Object.assign,H=0,N,O,I,D,V,k,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){N=console.log,O=console.info,I=console.warn,D=console.error,V=console.group,k=console.groupCollapsed,K=console.groupEnd;var _={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Q(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},_,{value:N}),info:M({},_,{value:O}),warn:M({},_,{value:I}),error:M({},_,{value:D}),group:M({},_,{value:V}),groupCollapsed:M({},_,{value:k}),groupEnd:M({},_,{value:K})})}H<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=S.ReactCurrentDispatcher,J;function te(_,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+_}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(_,G){if(!_||ae)return"";{var X=fe.get(_);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Z.current,Z.current=null,q();try{if(G){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(mt){ie=mt}Reflect.construct(_,[],_e)}else{try{_e.call()}catch(mt){ie=mt}_.call(_e.prototype)}}else{try{throw Error()}catch(mt){ie=mt}_()}}catch(mt){if(mt&&ie&&typeof mt.stack=="string"){for(var Ie=mt.stack.split(`
|
|
19
|
+
`),vt=ie.stack.split(`
|
|
20
|
+
`),et=Ie.length-1,ze=vt.length-1;et>=1&&ze>=0&&Ie[et]!==vt[ze];)ze--;for(;et>=1&&ze>=0;et--,ze--)if(Ie[et]!==vt[ze]){if(et!==1||ze!==1)do if(et--,ze--,ze<0||Ie[et]!==vt[ze]){var Et=`
|
|
21
|
+
`+Ie[et].replace(" at new "," at ");return _.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",_.displayName)),typeof _=="function"&&fe.set(_,Et),Et}while(et>=1&&ze>=0);break}}}finally{ae=!1,Z.current=$e,Q(),Error.prepareStackTrace=Pe}var Ht=_?_.displayName||_.name:"",zt=Ht?te(Ht):"";return typeof _=="function"&&fe.set(_,zt),zt}function we(_,G,X){return ve(_,!1)}function B(_){var G=_.prototype;return!!(G&&G.isReactComponent)}function ce(_,G,X){if(_==null)return"";if(typeof _=="function")return ve(_,B(_));if(typeof _=="string")return te(_);switch(_){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case l:return we(_.render);case f:return ce(_.type,G,X);case v:{var ie=_,Pe=ie._payload,$e=ie._init;try{return ce($e(Pe),G,X)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Ce={},pe=S.ReactDebugCurrentFrame;function ne(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);pe.setExtraStackFrame(X)}else pe.setExtraStackFrame(null)}function me(_,G,X,ie,Pe){{var $e=Function.call.bind(se);for(var _e in _)if($e(_,_e)){var Ie=void 0;try{if(typeof _[_e]!="function"){var vt=Error((ie||"React class")+": "+X+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=_[_e](G,_e,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){Ie=et}Ie&&!(Ie instanceof Error)&&(ne(Pe),g("%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,_e,typeof Ie),ne(null)),Ie instanceof Error&&!(Ie.message in Ce)&&(Ce[Ie.message]=!0,ne(Pe),g("Failed %s type: %s",X,Ie.message),ne(null))}}}var xe=Array.isArray;function Me(_){return xe(_)}function oe(_){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X}}function re(_){try{return ge(_),!1}catch{return!0}}function ge(_){return""+_}function he(_){if(re(_))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),ge(_)}var tt=S.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ue,Xe;Xe={};function Ze(_){if(se.call(_,"ref")){var G=Object.getOwnPropertyDescriptor(_,"ref").get;if(G&&G.isReactWarning)return!1}return _.ref!==void 0}function Fe(_){if(se.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function Ne(_,G){if(typeof _.ref=="string"&&tt.current&&G&&tt.current.stateNode!==G){var X=A(tt.current.type);Xe[X]||(g('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(tt.current.type),_.ref),Xe[X]=!0)}}function it(_,G){{var X=function(){Ae||(Ae=!0,g("%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(_,"key",{get:X,configurable:!0})}}function Ye(_,G){{var X=function(){Ue||(Ue=!0,g("%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(_,"ref",{get:X,configurable:!0})}}var Le=function(_,G,X,ie,Pe,$e,_e){var Ie={$$typeof:t,type:_,key:G,ref:X,props:_e,_owner:$e};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ue(_,G,X,ie,Pe){{var $e,_e={},Ie=null,vt=null;X!==void 0&&(he(X),Ie=""+X),Fe(G)&&(he(G.key),Ie=""+G.key),Ze(G)&&(vt=G.ref,Ne(G,Pe));for($e in G)se.call(G,$e)&&!qe.hasOwnProperty($e)&&(_e[$e]=G[$e]);if(_&&_.defaultProps){var et=_.defaultProps;for($e in et)_e[$e]===void 0&&(_e[$e]=et[$e])}if(Ie||vt){var ze=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ie&&it(_e,ze),vt&&Ye(_e,ze)}return Le(_,Ie,vt,Pe,ie,tt.current,_e)}}var Ee=S.ReactCurrentOwner,Ke=S.ReactDebugCurrentFrame;function rt(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);Ke.setExtraStackFrame(X)}else Ke.setExtraStackFrame(null)}var bt;bt=!1;function ut(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Be(){{if(Ee.current){var _=A(Ee.current.type);if(_)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+_+"`."}return""}}function Ve(_){return""}var De={};function Re(_){{var G=Be();if(!G){var X=typeof _=="string"?_:_.displayName||_.name;X&&(G=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+X+">.")}return G}}function be(_,G){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var X=Re(G);if(De[X])return;De[X]=!0;var ie="";_&&_._owner&&_._owner!==Ee.current&&(ie=" It was passed a child from "+A(_._owner.type)+"."),rt(_),g('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),rt(null)}}function Ge(_,G){{if(typeof _!="object")return;if(Me(_))for(var X=0;X<_.length;X++){var ie=_[X];ut(ie)&&be(ie,G)}else if(ut(_))_._store&&(_._store.validated=!0);else if(_){var Pe=m(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var $e=Pe.call(_),_e;!(_e=$e.next()).done;)ut(_e.value)&&be(_e.value,G)}}}function pt(_){{var G=_.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);me(X,_.props,"prop",ie,_)}else if(G.PropTypes!==void 0&&!bt){bt=!0;var Pe=A(G);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ke(_){{for(var G=Object.keys(_.props),X=0;X<G.length;X++){var ie=G[X];if(ie!=="children"&&ie!=="key"){rt(_),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),rt(null);break}}_.ref!==null&&(rt(_),g("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}}var He={};function st(_,G,X,ie,Pe,$e){{var _e=T(_);if(!_e){var Ie="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ie+=" 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 vt=Ve();vt?Ie+=vt:Ie+=Be();var et;_===null?et="null":Me(_)?et="array":_!==void 0&&_.$$typeof===t?(et="<"+(A(_.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):et=typeof _,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Ie)}var ze=ue(_,G,X,Pe,$e);if(ze==null)return ze;if(_e){var Et=G.children;if(Et!==void 0)if(ie)if(Me(Et)){for(var Ht=0;Ht<Et.length;Ht++)Ge(Et[Ht],_);Object.freeze&&Object.freeze(Et)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(Et,_)}if(se.call(G,"key")){var zt=A(_),mt=Object.keys(G).filter(function(Wt){return Wt!=="key"}),yr=mt.length>0?"{key: someKey, "+mt.join(": ..., ")+": ...}":"{key: someKey}";if(!He[zt+yr]){var Dr=mt.length>0?"{"+mt.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,yr,zt,Dr,zt),He[zt+yr]=!0}}return _===n?ke(ze):pt(ze),ze}}function ht(_,G,X){return st(_,G,X,!0)}function Rt(_,G,X){return st(_,G,X,!1)}var Dt=Rt,kt=ht;Jn.Fragment=n,Jn.jsx=Dt,Jn.jsxs=kt}()),Jn}process.env.NODE_ENV==="production"?ji.exports=Pv():ji.exports=_v();var wt=ji.exports,$u={exports:{}};/*!
|
|
2
31
|
Copyright (c) 2018 Jed Watson.
|
|
3
32
|
Licensed under the MIT License (MIT), see
|
|
4
33
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function
|
|
34
|
+
*/(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 Nv=$u.exports;const Y=wu(Nv);function Oe(){return Oe=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},Oe.apply(null,arguments)}var Fi={exports:{}},lt={};/**
|
|
6
35
|
* @license React
|
|
7
36
|
* react-is.production.min.js
|
|
8
37
|
*
|
|
@@ -10,7 +39,7 @@
|
|
|
10
39
|
*
|
|
11
40
|
* This source code is licensed under the MIT license found in the
|
|
12
41
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var
|
|
42
|
+
*/var Ol;function Tv(){if(Ol)return lt;Ol=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(m){if(typeof m=="object"&&m!==null){var S=m.$$typeof;switch(S){case e:switch(m=m.type,m){case r:case a:case n:case u:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case v:case f:case o:return m;default:return S}}case t:return S}}}return lt.ContextConsumer=i,lt.ContextProvider=o,lt.Element=e,lt.ForwardRef=l,lt.Fragment=r,lt.Lazy=v,lt.Memo=f,lt.Portal=t,lt.Profiler=a,lt.StrictMode=n,lt.Suspense=u,lt.SuspenseList=d,lt.isAsyncMode=function(){return!1},lt.isConcurrentMode=function(){return!1},lt.isContextConsumer=function(m){return p(m)===i},lt.isContextProvider=function(m){return p(m)===o},lt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},lt.isForwardRef=function(m){return p(m)===l},lt.isFragment=function(m){return p(m)===r},lt.isLazy=function(m){return p(m)===v},lt.isMemo=function(m){return p(m)===f},lt.isPortal=function(m){return p(m)===t},lt.isProfiler=function(m){return p(m)===a},lt.isStrictMode=function(m){return p(m)===n},lt.isSuspense=function(m){return p(m)===u},lt.isSuspenseList=function(m){return p(m)===d},lt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===n||m===u||m===d||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===f||m.$$typeof===o||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},lt.typeOf=p,lt}var ct={};/**
|
|
14
43
|
* @license React
|
|
15
44
|
* react-is.development.js
|
|
16
45
|
*
|
|
@@ -18,18 +47,18 @@
|
|
|
18
47
|
*
|
|
19
48
|
* This source code is licensed under the MIT license found in the
|
|
20
49
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var Cl;function wv(){return Cl||(Cl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),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"),p=!1,g=!1,m=!1,S=!1,h=!1,y;y=Symbol.for("react.module.reference");function E(V){return!!(typeof V=="string"||typeof V=="function"||V===n||V===a||h||V===r||V===u||V===d||S||V===b||p||g||m||typeof V=="object"&&V!==null&&(V.$$typeof===v||V.$$typeof===f||V.$$typeof===o||V.$$typeof===i||V.$$typeof===l||V.$$typeof===y||V.getModuleId!==void 0))}function C(V){if(typeof V=="object"&&V!==null){var se=V.$$typeof;switch(se){case e:var ie=V.type;switch(ie){case n:case a:case r:case u:case d:return ie;default:var he=ie&&ie.$$typeof;switch(he){case s:case i:case l:case v:case f:case o:return he;default:return se}}case t:return se}}}var x=i,P=o,w=e,$=l,N=n,F=v,M=f,A=t,I=a,H=r,_=u,O=d,T=!1,z=!1;function D(V){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(V){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(V){return C(V)===i}function k(V){return C(V)===o}function U(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function q(V){return C(V)===l}function Y(V){return C(V)===n}function Q(V){return C(V)===v}function Z(V){return C(V)===f}function te(V){return C(V)===t}function ue(V){return C(V)===a}function oe(V){return C(V)===r}function de(V){return C(V)===u}function Se(V){return C(V)===d}Je.ContextConsumer=x,Je.ContextProvider=P,Je.Element=w,Je.ForwardRef=$,Je.Fragment=N,Je.Lazy=F,Je.Memo=M,Je.Portal=A,Je.Profiler=I,Je.StrictMode=H,Je.Suspense=_,Je.SuspenseList=O,Je.isAsyncMode=D,Je.isConcurrentMode=B,Je.isContextConsumer=G,Je.isContextProvider=k,Je.isElement=U,Je.isForwardRef=q,Je.isFragment=Y,Je.isLazy=Q,Je.isMemo=Z,Je.isPortal=te,Je.isProfiler=ue,Je.isStrictMode=oe,Je.isSuspense=de,Je.isSuspenseList=Se,Je.isValidElementType=E,Je.typeOf=C}()),Je}process.env.NODE_ENV==="production"?Ii.exports=xv():Ii.exports=wv();var oa=Ii.exports;function Cn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return R.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Cn(r)):oa.isFragment(r)&&r.props?n=n.concat(Cn(r.props.children,t)):n.push(r))}),n}var Mi={},Vs=[],$v=function(t){Vs.push(t)};function Pr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Vs.reduce(function(r,a){return a(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Ov(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Vs.reduce(function(r,a){return a(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Su(){Mi={}}function Cu(e,t,n){!t&&!Mi[n]&&(e(!1,n),Mi[n]=!0)}function Ye(e,t){Cu(Pr,e,t)}function Rv(e,t){Cu(Ov,e,t)}Ye.preMessage=$v;Ye.resetWarned=Su;Ye.noteOnce=Rv;function we(e){"@babel/helpers - typeof";return we=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},we(e)}function Pv(e,t){if(we(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eu(e){var t=Pv(e,"string");return we(t)=="symbol"?t:t+""}function j(e,t,n){return(t=Eu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?El(Object(n),!0).forEach(function(r){j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ua(e){return e instanceof HTMLElement||e instanceof SVGElement}function Nv(e){return e&&we(e)==="object"&&ua(e.nativeElement)?e.nativeElement:ua(e)?e:null}function to(e){var t=Nv(e);if(t)return t;if(e instanceof R.Component){var n;return(n=Rr.findDOMNode)===null||n===void 0?void 0:n.call(Rr,e)}return null}function Po(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Bs=function(t,n){typeof t=="function"?t(n):we(t)==="object"&&t&&"current"in t&&(t.current=n)},En=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(o){n.forEach(function(i){Bs(i,o)})}},Oa=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Po(function(){return En.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},rr=function(t){var n,r,a=oa.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==oa.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==oa.ForwardRef)};function xl(e){return R.isValidElement(e)&&!oa.isFragment(e)}Number(R.version.split(".")[0])>=19;var Ai=c.createContext(null);function _v(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),a=c.useRef([]),o=c.useContext(Ai),i=c.useCallback(function(s,l,u){r.current+=1;var d=r.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,l,u)},[n,o]);return c.createElement(Ai.Provider,{value:i},t)}var xu=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];n.call(r,i[1],i[0])}},t}()}(),Fi=typeof window<"u"&&typeof document<"u"&&window.document===document,vo=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")()}(),Tv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(vo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Iv=2;function Mv(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&s()}function i(){Tv(o)}function s(){var l=Date.now();if(n){if(l-a<Iv)return;r=!0}else n=!0,r=!1,setTimeout(i,t);a=l}return s}var Av=20,Fv=["top","right","bottom","left","width","height","size","weight"],jv=typeof MutationObserver<"u",Lv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Mv(this.refresh.bind(this),Av)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fi||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(){!Fi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=Fv.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wu=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||vo},$u=No(0,0,0,0);function mo(e){return parseFloat(e)||0}function wl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var o=e["border-"+a+"-width"];return r+mo(o)},0)}function zv(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],i=e["padding-"+o];n[o]=mo(i)}return n}function Dv(e){var t=e.getBBox();return No(0,0,t.width,t.height)}function Vv(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return $u;var r=Nr(e).getComputedStyle(e),a=zv(r),o=a.left+a.right,i=a.top+a.bottom,s=mo(r.width),l=mo(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=wl(r,"left","right")+o),Math.round(l+i)!==n&&(l-=wl(r,"top","bottom")+i)),!Hv(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return No(a.left,a.top,s,l)}var Bv=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nr(e).SVGGraphicsElement}:function(e){return e instanceof Nr(e).SVGElement&&typeof e.getBBox=="function"}}();function Hv(e){return e===Nr(e).document.documentElement}function kv(e){return Fi?Bv(e)?Dv(e):Vv(e):$u}function Wv(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return wu(i,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),i}function No(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Gv=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=No(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=kv(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}(),Uv=function(){function e(t,n){var r=Wv(n);wu(this,{target:t,contentRect:r})}return e}(),Kv=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Gv(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 Nr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Uv(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ou=typeof WeakMap<"u"?new WeakMap:new xu,Ru=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Lv.getInstance(),r=new Kv(t,n,this);Ou.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ru.prototype[e]=function(){var t;return(t=Ou.get(this))[e].apply(t,arguments)}});var qv=function(){return typeof vo.ResizeObserver<"u"?vo.ResizeObserver:Ru}(),Nn=new Map;function Pu(e){e.forEach(function(t){var n,r=t.target;(n=Nn.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var Nu=new qv(Pu);process.env.NODE_ENV;process.env.NODE_ENV;function Xv(e,t){Nn.has(e)||(Nn.set(e,new Set),Nu.observe(e)),Nn.get(e).add(t)}function Yv(e,t){Nn.has(e)&&(Nn.get(e).delete(t),Nn.get(e).size||(Nu.unobserve(e),Nn.delete(e)))}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eu(r.key),r)}}function Nt(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function da(e,t){return da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},da(e,t)}function Un(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&&da(e,t)}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fa(e)}function Hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hs=function(){return!!e})()}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qv(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Me(e)}function Kn(e){var t=Hs();return function(){var n,r=fa(e);if(t){var a=fa(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Qv(this,n)}}var Zv=function(e){Un(n,e);var t=Kn(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Nt(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function Jv(e,t){var n=e.children,r=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Ai),s=typeof n=="function",l=s?n(a):n,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&rr(l),f=d?l.ref:null,v=Oa(f,a),b=function(){var S;return to(a.current)||(a.current&&we(a.current)==="object"?to((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||to(o.current)};c.useImperativeHandle(t,function(){return b()});var p=c.useRef(e);p.current=e;var g=c.useCallback(function(m){var S=p.current,h=S.onResize,y=S.data,E=m.getBoundingClientRect(),C=E.width,x=E.height,P=m.offsetWidth,w=m.offsetHeight,$=Math.floor(C),N=Math.floor(x);if(u.current.width!==$||u.current.height!==N||u.current.offsetWidth!==P||u.current.offsetHeight!==w){var F={width:$,height:N,offsetWidth:P,offsetHeight:w};u.current=F;var M=P===Math.round(C)?C:P,A=w===Math.round(x)?x:w,I=L(L({},F),{},{offsetWidth:M,offsetHeight:A});i==null||i(I,m,y),h&&Promise.resolve().then(function(){h(I,m)})}},[]);return c.useEffect(function(){var m=b();return m&&!r&&Xv(m,g),function(){return Yv(m,g)}},[a.current,r]),c.createElement(Zv,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var _u=c.forwardRef(Jv);process.env.NODE_ENV!=="production"&&(_u.displayName="SingleObserver");var em="rc-observer-key";function tm(e,t){var n=e.children,r=typeof n=="function"?[n]:Cn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Pr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Pr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(em,"-").concat(o);return c.createElement(_u,ye({},e,{key:i,ref:o===0?t:void 0}),a)})}var un=c.forwardRef(tm);process.env.NODE_ENV!=="production"&&(un.displayName="ResizeObserver");un.Collection=_v;function mn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nm(e){if(Array.isArray(e))return ji(e)}function Tu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ks(e,t){if(e){if(typeof e=="string")return ji(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}function rm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e,t){return Fu(e)||am(e,t)||ks(e,t)||ju()}function va(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function jt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function om(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Rl="data-rc-order",Pl="data-rc-priority",im="rc-util-key",Li=new Map;function Lu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):im}function To(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ws(e){return Array.from((Li.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jt())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=sm(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Rl,i),s&&o&&l.setAttribute(Pl,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=To(t),d=u.firstChild;if(r){if(s){var f=(t.styles||Ws(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Rl)))return!1;var b=Number(v.getAttribute(Pl)||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 Du(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=To(t);return(t.styles||Ws(n)).find(function(r){return r.getAttribute(Lu(t))===e})}function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Du(e,t);if(n){var r=To(t);r.removeChild(n)}}function lm(e,t){var n=Li.get(e);if(!n||!om(document,n)){var r=zu("",t),a=r.parentNode;Li.set(e,a),e.removeChild(r)}}function _n(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=To(n),a=Ws(r),o=L(L({},n),{},{styles:a});lm(r,o);var i=Du(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=zu(e,o);return d.setAttribute(Lu(o),t),d}function cm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ve(e,t){if(e==null)return{};var n,r,a=cm(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ga(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Ye(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.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&&we(o)==="object"&&we(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 um="%";function zi(e){return e.join(um)}var dm=function(){function e(t){Pt(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t}return Nt(e,[{key:"get",value:function(n){return this.opGet(zi(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(zi(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),o=r(a);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),_r="data-token-hash",dn="data-css-hash",fm="data-cache-path",kn="__cssinjs_instance__";function vm(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(dn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[kn]=a[kn]||e,a[kn]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(dn,"]"))).forEach(function(a){var o=a.getAttribute(dn);if(r[o]){if(a[kn]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else r[o]=!0})}return new dm(e)}var mm=c.createContext({hashPriority:"low",cache:vm(),defaultCache:!0});const Io=mm;function gm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Gs=function(){function e(){Pt(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Nt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.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)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=W(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=W(o,1),s=i[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(u,d){if(d===n.length-1)l.set(u,{value:[r,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(n,r){var a=n.get(r[0]);if(r.length===1){var o;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!gm(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();j(Gs,"MAX_CACHE_SIZE",20);j(Gs,"MAX_CACHE_OFFSET",5);var Nl=0,Vu=function(){function e(t){Pt(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nl,t.length===0&&Pr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Nl+=1}return Nt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Jo=new Gs;function Di(e){var t=Array.isArray(e)?e:[e];return Jo.has(t)||Jo.set(t,new Vu(t)),Jo.get(t)}var pm=new WeakMap,ei={};function hm(e,t){for(var n=pm,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(ei)||n.set(ei,e()),n.get(ei)}var _l=new WeakMap;function ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_l.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof Vu?n+=a.id:a&&we(a)==="object"?n+=ia(a,t):n+=a}),t&&(n=va(n)),_l.set(e,n)),n}function Tl(e,t){return va("".concat(t,"_").concat(ia(e,!0)))}var Vi=jt();function X(e){return typeof e=="number"?"".concat(e,"px"):e}function go(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=L(L({},r),{},j(j({},_r,t),dn,n)),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 no=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bm=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=W(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Bu=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=W(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var v,b=no(d,r==null?void 0:r.prefix);a[b]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,bm(a,n,{scope:r==null?void 0:r.scope})]},Il=process.env.NODE_ENV!=="test"&&jt()?c.useLayoutEffect:c.useEffect,ut=function(t,n){var r=c.useRef(!0);Il(function(){return t(r.current)},n),Il(function(){return r.current=!1,function(){r.current=!0}},[])},Bi=function(t,n){ut(function(r){if(!r)return t()},n)},ym=L({},c),Ml=ym.useInsertionEffect,Sm=function(t,n,r){c.useMemo(t,r),ut(function(){return n(!0)},r)},Cm=Ml?function(e,t,n){return Ml(function(){return e(),t()},n)}:Sm;const Em=Cm;var xm=L({},c),wm=xm.useInsertionEffect,$m=function(t){var n=[],r=!1;function a(o){if(r){process.env.NODE_ENV!=="production"&&Pr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(o)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Om=function(){return function(t){t()}},Rm=typeof wm<"u"?$m:Om;const Pm=Rm;function Nm(){return!1}var Hi=!1;function _m(){return Hi}const Tm=process.env.NODE_ENV==="production"?Nm:_m;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ti=window;if(typeof ti.webpackHotUpdate=="function"){var Im=ti.webpackHotUpdate;ti.webpackHotUpdate=function(){return Hi=!0,setTimeout(function(){Hi=!1},0),Im.apply(void 0,arguments)}}}function Us(e,t,n,r,a){var o=c.useContext(Io),i=o.cache,s=[e].concat(ce(t)),l=zi(s),u=Pm([l]),d=Tm(),f=function(g){i.opUpdate(l,function(m){var S=m||[void 0,void 0],h=W(S,2),y=h[0],E=y===void 0?0:y,C=h[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(r==null||r(x,d),x=null);var P=x||n(),w=[E,P];return g?g(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 Em(function(){a==null||a(b)},function(p){return f(function(g){var m=W(g,2),S=m[0],h=m[1];return p&&S===0&&(a==null||a(b)),[S+1,h]}),function(){i.opUpdate(l,function(g){var m=g||[],S=W(m,2),h=S[0],y=h===void 0?0:h,E=S[1],C=y-1;return C===0?(u(function(){(p||!i.opGet(l))&&(r==null||r(E,!1))}),null):[y-1,E]})}},[l]),b}var Mm={},Am=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Jn=new Map;function Fm(e){Jn.set(e,(Jn.get(e)||0)+1)}function jm(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_r,'="').concat(e,'"]'));n.forEach(function(r){if(r[kn]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Lm=0;function zm(e,t){Jn.set(e,(Jn.get(e)||0)-1);var n=Array.from(Jn.keys()),r=n.filter(function(a){var o=Jn.get(a)||0;return o<=0});n.length-r.length>Lm&&r.forEach(function(a){jm(a,t),Jn.delete(a)})}var Dm=function(t,n,r,a){var o=r.getDerivativeToken(t),i=L(L({},o),n);return a&&(i=a(i)),i},Hu="token";function Vm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.useContext(Io),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,l=n.override,u=l===void 0?Mm:l,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,b=hm(function(){return Object.assign.apply(Object,[{}].concat(ce(t)))},t),p=ia(b),g=ia(u),m=v?ia(v):"",S=Us(Hu,[s,e.id,p,g,m],function(){var h,y=f?f(b,u,e):Dm(b,u,e,d),E=L({},y),C="";if(v){var x=Bu(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),P=W(x,2);y=P[0],C=P[1]}var w=Tl(y,s);y._tokenKey=w,E._tokenKey=Tl(E,s);var $=(h=v==null?void 0:v.key)!==null&&h!==void 0?h:w;y._themeKey=$,Fm($);var N="".concat(Am,"-").concat(va(w));return y._hashId=N,[y,N,E,C,(v==null?void 0:v.key)||""]},function(h){zm(h[0]._themeKey,a)},function(h){var y=W(h,4),E=y[0],C=y[3];if(v&&C){var x=_n(C,va("css-variables-".concat(E._themeKey)),{mark:dn,prepend:"queue",attachTo:o,priority:-999});x[kn]=a,x.setAttribute(_r,E._themeKey)}});return S}var Bm=function(t,n,r){var a=W(t,5),o=a[2],i=a[3],s=a[4],l=r||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=go(i,s,d,v,u);return[f,d,b]},Hm={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},ku="comm",Wu="rule",Gu="decl",km="@import",Wm="@keyframes",Gm="@layer",Uu=Math.abs,Ks=String.fromCharCode;function Ku(e){return e.trim()}function ro(e,t,n){return e.replace(t,n)}function Um(e,t,n){return e.indexOf(t,n)}function pa(e,t){return e.charCodeAt(t)|0}function Tr(e,t,n){return e.slice(t,n)}function yn(e){return e.length}function Km(e){return e.length}function za(e,t){return t.push(e),e}var Mo=1,Ir=1,qu=0,en=0,bt=0,Lr="";function qs(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Mo,column:Ir,length:i,return:"",siblings:s}}function qm(){return bt}function Xm(){return bt=en>0?pa(Lr,--en):0,Ir--,bt===10&&(Ir=1,Mo--),bt}function fn(){return bt=en<qu?pa(Lr,en++):0,Ir++,bt===10&&(Ir=1,Mo++),bt}function Wn(){return pa(Lr,en)}function ao(){return en}function Ao(e,t){return Tr(Lr,e,t)}function ha(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 Ym(e){return Mo=Ir=1,qu=yn(Lr=e),en=0,[]}function Qm(e){return Lr="",e}function ni(e){return Ku(Ao(en-1,ki(e===91?e+2:e===40?e+1:e)))}function Zm(e){for(;(bt=Wn())&&bt<33;)fn();return ha(e)>2||ha(bt)>3?"":" "}function Jm(e,t){for(;--t&&fn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ao(e,ao()+(t<6&&Wn()==32&&fn()==32))}function ki(e){for(;fn();)switch(bt){case e:return en;case 34:case 39:e!==34&&e!==39&&ki(bt);break;case 40:e===41&&ki(e);break;case 92:fn();break}return en}function eg(e,t){for(;fn()&&e+bt!==57;)if(e+bt===84&&Wn()===47)break;return"/*"+Ao(t,en-1)+"*"+Ks(e===47?e:fn())}function tg(e){for(;!ha(Wn());)fn();return Ao(e,en)}function ng(e){return Qm(oo("",null,null,null,[""],e=Ym(e),0,[0],e))}function oo(e,t,n,r,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,p=0,g=1,m=1,S=1,h=0,y="",E=a,C=o,x=r,P=y;m;)switch(p=h,h=fn()){case 40:if(p!=108&&pa(P,f-1)==58){Um(P+=ro(ni(h),"&","&\f"),"&\f",Uu(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:P+=ni(h);break;case 9:case 10:case 13:case 32:P+=Zm(p);break;case 92:P+=Jm(ao()-1,7);continue;case 47:switch(Wn()){case 42:case 47:za(rg(eg(fn(),ao()),t,n,l),l),(ha(p||1)==5||ha(Wn()||1)==5)&&yn(P)&&Tr(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*g:s[u++]=yn(P)*S;case 125*g:case 59:case 0:switch(h){case 0:case 125:m=0;case 59+d:S==-1&&(P=ro(P,/\f/g,"")),b>0&&(yn(P)-f||g===0&&p===47)&&za(b>32?Fl(P+";",r,n,f-1,l):Fl(ro(P," ","")+";",r,n,f-2,l),l);break;case 59:P+=";";default:if(za(x=Al(P,t,n,u,d,a,s,y,E=[],C=[],f,o),o),h===123)if(d===0)oo(P,t,x,x,E,o,f,s,C);else switch(v===99&&pa(P,3)===110?100:v){case 100:case 108:case 109:case 115:oo(e,x,x,r&&za(Al(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,r?E:C);break;default:oo(P,x,x,x,[""],C,0,s,C)}}u=d=b=0,g=S=1,y=P="",f=i;break;case 58:f=1+yn(P),b=p;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&Xm()==125)continue}switch(P+=Ks(h),h*g){case 38:S=d>0?1:(P+="\f",-1);break;case 44:s[u++]=(yn(P)-1)*S,S=1;break;case 64:Wn()===45&&(P+=ni(fn())),v=Wn(),d=f=yn(y=P+=tg(ao())),h++;break;case 45:p===45&&yn(P)==2&&(g=0)}}return o}function Al(e,t,n,r,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],p=Km(b),g=0,m=0,S=0;g<r;++g)for(var h=0,y=Tr(e,v+1,v=Uu(m=i[g])),E=e;h<p;++h)(E=Ku(m>0?b[h]+" "+y:ro(y,/&\f/g,b[h])))&&(l[S++]=E);return qs(e,t,n,a===0?Wu:s,l,u,d,f)}function rg(e,t,n,r){return qs(e,t,n,ku,Ks(qm()),Tr(e,2,-2),0,r)}function Fl(e,t,n,r,a){return qs(e,t,n,Gu,Tr(e,0,r),Tr(e,r+1,-1),r,a)}function Wi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ag(e,t,n,r){switch(e.type){case Gm:if(e.children.length)break;case km:case Gu:return e.return=e.return||e.value;case ku:return"";case Wm:return e.return=e.value+"{"+Wi(e.children,r)+"}";case Wu:if(!yn(e.value=e.props.join(",")))return""}return yn(n=Wi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xu(e,t){var n=t.path,r=t.parentSelectors;Ye(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var og=function(t,n,r){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof n!="string"||o.indexOf(n)===-1&&!a.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Xu("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},ig=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Xu("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},jl="data-ant-cssinjs-cache-path",Yu="_FILE_STYLE__",nr,Qu=!0;function sg(){if(!nr&&(nr={},jt())){var e=document.createElement("div");e.className=jl,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=W(o,2),s=i[0],l=i[1];nr[s]=l});var n=document.querySelector("style[".concat(jl,"]"));if(n){var r;Qu=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function lg(e){return sg(),!!nr[e]}function cg(e){var t=nr[e],n=null;if(t&&jt())if(Qu)n=Yu;else{var r=document.querySelector("style[".concat(dn,'="').concat(nr[e],'"]'));r?n=r.innerHTML:delete nr[e]}return[n,t]}var Zu="_skip_check_",Ju="_multi_value_";function io(e){var t=Wi(ng(e),ag);return t.replace(/\{%%%\:[^;];}/g,";")}function ug(e){return we(e)==="object"&&e&&(Zu in e||Ju in e)}function Ll(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,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 dg=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,v=f===void 0?[]:f,b=n.linters,p=b===void 0?[]:b,g="",m={};function S(E){var C=E.getName(s);if(!m[C]){var x=e(E.style,n,{root:!1,parentSelectors:i}),P=W(x,1),w=P[0];m[C]="@keyframes ".concat(E.getName(s)).concat(w)}}function h(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?h(x,C):x&&C.push(x)}),C}var y=h(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")g+="".concat(C,`
|
|
24
|
-
`);else if(C._keyframe)S(C);else{var x=v.reduce(function(
|
|
25
|
-
`))):g="{".concat(g,"}"),[g,m]};function ed(e,t){return va("".concat(e.join("%")).concat(t))}function fg(){return null}var td="style";function Gi(e,t){var n=e.token,r=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(Io),f=d.autoClear,v=d.mock,b=d.defaultCache,p=d.hashPriority,g=d.container,m=d.ssrInline,S=d.transformers,h=d.linters,y=d.cache,E=d.layer,C=n._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ce(r));var P=Vi;process.env.NODE_ENV!=="production"&&v!==void 0&&(P=v==="client");var w=Us(td,x,function(){var A=x.join("|");if(lg(A)){var I=cg(A),H=W(I,2),_=H[0],O=H[1];if(_)return[_,C,O,{},s,u]}var T=t(),z=dg(T,{hashId:a,hashPriority:p,layer:E?o:void 0,path:r.join("-"),transformers:S,linters:h}),D=W(z,2),B=D[0],G=D[1],k=io(B),U=ed(x,k);return[k,C,U,G,s,u]},function(A,I){var H=W(A,3),_=H[2];(I||f)&&Vi&&ma(_,{mark:dn})},function(A){var I=W(A,4),H=I[0];I[1];var _=I[2],O=I[3];if(P&&H!==Yu){var T={mark:dn,prepend:E?!1:"queue",attachTo:g,priority:u},z=typeof i=="function"?i():i;z&&(T.csp={nonce:z});var D=[],B=[];Object.keys(O).forEach(function(k){k.startsWith("@layer")?D.push(k):B.push(k)}),D.forEach(function(k){_n(io(O[k]),"_layer-".concat(k),L(L({},T),{},{prepend:!0}))});var G=_n(H,_,T);G[kn]=y.instanceId,G.setAttribute(_r,C),process.env.NODE_ENV!=="production"&&G.setAttribute(fm,x.join("|")),B.forEach(function(k){_n(io(O[k]),"_effect-".concat(k),T)})}}),$=W(w,3),N=$[0],F=$[1],M=$[2];return function(A){var I;return!m||P||!b?I=c.createElement(fg,null):I=c.createElement("style",ye({},j(j({},_r,F),dn,M),{dangerouslySetInnerHTML:{__html:N}})),c.createElement(c.Fragment,null,I,A)}}var vg=function(t,n,r){var a=W(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=r||{},v=f.plain;if(u)return null;var b=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=go(o,i,s,p,v),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var m=io(l[g]),S=go(m,i,"_effect-".concat(g),p,v);g.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},nd="cssVar",mg=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=R.useContext(Io),f=d.cache.instanceId,v=d.container,b=s._tokenKey,p=[].concat(ce(t.path),[r,u,b]),g=Us(nd,p,function(){var m=n(),S=Bu(m,r,{prefix:a,unitless:o,ignore:i,scope:u}),h=W(S,2),y=h[0],E=h[1],C=ed(p,E);return[y,E,C,r]},function(m){var S=W(m,3),h=S[2];Vi&&ma(h,{mark:dn})},function(m){var S=W(m,3),h=S[1],y=S[2];if(h){var E=_n(h,y,{mark:dn,prepend:"queue",attachTo:v,priority:-999});E[kn]=f,E.setAttribute(_r,r)}});return g},gg=function(t,n,r){var a=W(t,4),o=a[1],i=a[2],s=a[3],l=r||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=go(o,s,i,f,u);return[d,i,v]};j(j(j({},td,vg),Hu,Bm),nd,gg);var pt=function(){function e(t,n){Pt(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return Nt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function dr(e){return e.notSplit=!0,e}dr(["borderTop","borderBottom"]),dr(["borderTop"]),dr(["borderBottom"]),dr(["borderLeft","borderRight"]),dr(["borderLeft"]),dr(["borderRight"]);var Xs=R.createContext({});function pg(e){return Fu(e)||Tu(e)||ks(e)||ju()}function Sn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function rd(e,t,n,r){if(!t.length)return n;var a=pg(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ce(e):s=L({},e),r&&n===void 0&&i.length===1?delete s[o][i[0]]:s[o]=rd(s[o],i,n,r),s}function ln(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Sn(e,t.slice(0,-1))?e:rd(e,t,n,r)}function hg(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zl(e){return Array.isArray(e)?[]:{}}var bg=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zl(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=Sn(a,i),d=Array.isArray(u);if(d||hg(u)){if(!l.has(u)){l.add(u);var f=Sn(r,i);d?r=ln(r,i,[]):(!f||we(f)!=="object")&&(r=ln(r,i,zl(u))),bg(u).forEach(function(v){o([].concat(ce(i),[v]),l)})}}else r=ln(r,i,u)}o([])}),r}function ad(){}let Pn=null;function yg(){Pn=null,Su()}let zr=ad;process.env.NODE_ENV!=="production"&&(zr=(e,t,n)=>{Ye(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&yg()});const od=c.createContext({}),wt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(od),n=(r,a,o)=>{if(!r)if(t===!1&&a==="deprecated"){const i=Pn;Pn||(Pn={}),Pn[e]=Pn[e]||[],Pn[e].includes(o||"")||Pn[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Pn)}else process.env.NODE_ENV!=="production"&&zr(r,e,o)};return n.deprecated=(r,a,o,i)=>{n(r,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=ad,e},Sg=R.createContext(void 0);var Cg={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"},Eg={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},xg=L(L({},Eg),{},{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 id={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Dl={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"]},xg),timePickerLocale:Object.assign({},id)},Ht="${label} is not a valid ${type}",Mr={locale:"en",Pagination:Cg,DatePicker:Dl,TimePicker:id,Calendar:Dl,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:Ht,method:Ht,array:Ht,object:Ht,number:Ht,date:Ht,boolean:Ht,integer:Ht,float:Ht,regexp:Ht,email:Ht,url:Ht,hex:Ht},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({},Mr.Modal);let so=[];const Vl=()=>so.reduce((e,t)=>Object.assign(Object.assign({},e),t),Mr.Modal);function wg(e){if(e){const t=Object.assign({},e);return so.push(t),Vl(),()=>{so=so.filter(n=>n!==t),Vl()}}Object.assign({},Mr.Modal)}const Ys=R.createContext(void 0),$g=(e,t)=>{const n=c.useContext(Ys),r=c.useMemo(()=>{var o;const i=Mr[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=c.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Mr.locale:o},[n]);return[r,a]},sd="internalMark",ld=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const o=wt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(r===sd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>wg(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Ys.Provider,{value:a},n)};process.env.NODE_ENV!=="production"&&(ld.displayName="LocaleProvider");function Rt(e,t){Og(e)&&(e="100%");var n=Rg(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Da(e){return Math.min(1,Math.max(0,e))}function Og(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Rg(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Va(e){return e<=1?"".concat(Number(e)*100,"%"):e}function er(e){return e.length===1?"0"+e:String(e)}function Pg(e,t,n){return{r:Rt(e,255)*255,g:Rt(t,255)*255,b:Rt(n,255)*255}}function Bl(e,t,n){e=Rt(e,255),t=Rt(t,255),n=Rt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var l=r-a;switch(i=s>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function ri(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ng(e,t,n){var r,a,o;if(e=Rt(e,360),t=Rt(t,100),n=Rt(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=ri(s,i,e+1/3),a=ri(s,i,e),o=ri(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function Ui(e,t,n){e=Rt(e,255),t=Rt(t,255),n=Rt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,l=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function _g(e,t,n){e=Rt(e,360)*6,t=Rt(t,100),n=Rt(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),i=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,i,o,o,s,n][l],d=[s,n,n,i,o,o][l],f=[o,o,s,n,n,i][l];return{r:u*255,g:d*255,b:f*255}}function Ki(e,t,n,r){var a=[er(Math.round(e).toString(16)),er(Math.round(t).toString(16)),er(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Tg(e,t,n,r,a){var o=[er(Math.round(e).toString(16)),er(Math.round(t).toString(16)),er(Math.round(n).toString(16)),er(Ig(r))];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 Ig(e){return Math.round(parseFloat(e)*255).toString(16)}function Hl(e){return Wt(e)/255}function Wt(e){return parseInt(e,16)}function Mg(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qi={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 Cr(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=jg(e)),typeof e=="object"&&(On(e.r)&&On(e.g)&&On(e.b)?(t=Pg(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):On(e.h)&&On(e.s)&&On(e.v)?(r=Va(e.s),a=Va(e.v),t=_g(e.h,r,a),i=!0,s="hsv"):On(e.h)&&On(e.s)&&On(e.l)&&(r=Va(e.s),o=Va(e.l),t=Ng(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cd(n),{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:n}}var Ag="[-\\+]?\\d+%?",Fg="[-\\+]?\\d*\\.\\d+%?",Gn="(?:".concat(Fg,")|(?:").concat(Ag,")"),ai="[\\s|\\(]+(".concat(Gn,")[,|\\s]+(").concat(Gn,")[,|\\s]+(").concat(Gn,")\\s*\\)?"),oi="[\\s|\\(]+(".concat(Gn,")[,|\\s]+(").concat(Gn,")[,|\\s]+(").concat(Gn,")[,|\\s]+(").concat(Gn,")\\s*\\)?"),sn={CSS_UNIT:new RegExp(Gn),rgb:new RegExp("rgb"+ai),rgba:new RegExp("rgba"+oi),hsl:new RegExp("hsl"+ai),hsla:new RegExp("hsla"+oi),hsv:new RegExp("hsv"+ai),hsva:new RegExp("hsva"+oi),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 jg(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qi[e])e=qi[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=sn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sn.hex8.exec(e),n?{r:Wt(n[1]),g:Wt(n[2]),b:Wt(n[3]),a:Hl(n[4]),format:t?"name":"hex8"}:(n=sn.hex6.exec(e),n?{r:Wt(n[1]),g:Wt(n[2]),b:Wt(n[3]),format:t?"name":"hex"}:(n=sn.hex4.exec(e),n?{r:Wt(n[1]+n[1]),g:Wt(n[2]+n[2]),b:Wt(n[3]+n[3]),a:Hl(n[4]+n[4]),format:t?"name":"hex8"}:(n=sn.hex3.exec(e),n?{r:Wt(n[1]+n[1]),g:Wt(n[2]+n[2]),b:Wt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function On(e){return!!sn.CSS_UNIT.exec(String(e))}var Gt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Mg(t)),this.originalInput=t;var a=Cr(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cd(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=Ui(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=Ui(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bl(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=Bl(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ki(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),Tg(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Rt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Rt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ki(this.r,this.g,this.b,!1),n=0,r=Object.entries(qi);n<r.length;n++){var a=r[n],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Da(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Da(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Da(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Da(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));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 n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Ba=2,kl=.16,Lg=.05,zg=.05,Dg=.15,ud=5,dd=4,Vg=[{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 Wl(e){var t=e.r,n=e.g,r=e.b,a=Ui(t,n,r);return{h:a.h*360,s:a.s,v:a.v}}function Ha(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ki(t,n,r,!1))}function Bg(e,t,n){var r=n/100,a={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return a}function Gl(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ba*t:Math.round(e.h)+Ba*t:r=n?Math.round(e.h)+Ba*t:Math.round(e.h)-Ba*t,r<0?r+=360:r>=360&&(r-=360),r}function Ul(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-kl*t:t===dd?r=e.s+kl:r=e.s+Lg*t,r>1&&(r=1),n&&t===ud&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Kl(e,t,n){var r;return n?r=e.v+zg*t:r=e.v-Dg*t,r>1&&(r=1),Number(r.toFixed(2))}function ba(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Cr(e),a=ud;a>0;a-=1){var o=Wl(r),i=Ha(Cr({h:Gl(o,a,!0),s:Ul(o,a,!0),v:Kl(o,a,!0)}));n.push(i)}n.push(Ha(r));for(var s=1;s<=dd;s+=1){var l=Wl(r),u=Ha(Cr({h:Gl(l,s),s:Ul(l,s),v:Kl(l,s)}));n.push(u)}return t.theme==="dark"?Vg.map(function(d){var f=d.index,v=d.opacity,b=Ha(Bg(Cr(t.backgroundColor||"#141414"),Cr(n[f]),v*100));return b}):n}var ii={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"},Xi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xi.primary=Xi[5];var Yi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Yi.primary=Yi[5];var Qi=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Qi.primary=Qi[5];var po=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];po.primary=po[5];var Zi=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zi.primary=Zi[5];var Ji=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ji.primary=Ji[5];var es=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];es.primary=es[5];var ts=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ts.primary=ts[5];var ho=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ho.primary=ho[5];var ns=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ns.primary=ns[5];var rs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rs.primary=rs[5];var as=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];as.primary=as[5];var os=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];os.primary=os[5];var si={red:Xi,volcano:Yi,orange:Qi,gold:po,yellow:Zi,lime:Ji,green:es,cyan:ts,blue:ho,geekblue:ns,purple:rs,magenta:as,grey:os};const fd={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"},ya=Object.assign(Object.assign({},fd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
50
|
+
*/var Rl;function Iv(){return Rl||(Rl=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,m=!1,S=!1,g=!1,y;y=Symbol.for("react.module.reference");function E(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||g||B===n||B===u||B===d||S||B===b||h||p||m||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 C(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 Ce=se&&se.$$typeof;switch(Ce){case s:case i:case l:case v:case f:case o:return Ce;default:return ce}}case t:return ce}}}var x=i,R=o,w=e,$=l,T=r,F=v,j=f,A=t,M=a,H=n,N=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 C(B)===i}function W(B){return C(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Q(B){return C(B)===l}function Z(B){return C(B)===r}function J(B){return C(B)===v}function te(B){return C(B)===f}function ae(B){return C(B)===t}function fe(B){return C(B)===a}function de(B){return C(B)===n}function ve(B){return C(B)===u}function we(B){return C(B)===d}ct.ContextConsumer=x,ct.ContextProvider=R,ct.Element=w,ct.ForwardRef=$,ct.Fragment=T,ct.Lazy=F,ct.Memo=j,ct.Portal=A,ct.Profiler=M,ct.StrictMode=H,ct.Suspense=N,ct.SuspenseList=O,ct.isAsyncMode=V,ct.isConcurrentMode=k,ct.isContextConsumer=K,ct.isContextProvider=W,ct.isElement=q,ct.isForwardRef=Q,ct.isFragment=Z,ct.isLazy=J,ct.isMemo=te,ct.isPortal=ae,ct.isProfiler=fe,ct.isStrictMode=de,ct.isSuspense=ve,ct.isSuspenseList=we,ct.isValidElementType=E,ct.typeOf=C}()),ct}process.env.NODE_ENV==="production"?Fi.exports=Tv():Fi.exports=Iv();var la=Fi.exports;function $r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat($r(n)):la.isFragment(n)&&n.props?r=r.concat($r(n.props.children,t)):r.push(n))}),r}var Li={},Ws=[],Mv=function(t){Ws.push(t)};function _n(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ws.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Av(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ws.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Ou(){Li={}}function Ru(e,t,r){!t&&!Li[r]&&(e(!1,r),Li[r]=!0)}function at(e,t){Ru(_n,e,t)}function jv(e,t){Ru(Av,e,t)}at.preMessage=Mv;at.resetWarned=Ou;at.noteOnce=jv;function Te(e){"@babel/helpers - typeof";return Te=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},Te(e)}function Fv(e,t){if(Te(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Te(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pu(e){var t=Fv(e,"string");return Te(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Pu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(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?Pl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pl(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 Lv(e){return e&&Te(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function ao(e){var t=Lv(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Pn.findDOMNode)===null||r===void 0?void 0:r.call(Pn,e)}return null}function To(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 Gs=function(t,r){typeof t=="function"?t(r):Te(t)==="object"&&t&&"current"in t&&(t.current=r)},Or=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){Gs(i,o)})}},_a=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return To(function(){return Or.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},on=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 _l(e){return P.isValidElement(e)&&!la.isFragment(e)}Number(P.version.split(".")[0])>=19;var Di=c.createContext(null);function Dv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Di),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(Di.Provider,{value:i},t)}var _u=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}()}(),zi=typeof window<"u"&&typeof document<"u"&&window.document===document,po=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")()}(),zv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(po):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Vv=2;function Bv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){zv(o)}function s(){var l=Date.now();if(r){if(l-a<Vv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var kv=20,Hv=["top","right","bottom","left","width","height","size","weight"],Wv=typeof MutationObserver<"u",Gv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Bv(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(){!zi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wv?(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(){!zi||!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=Hv.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}(),Nu=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||po},Tu=Io(0,0,0,0);function ho(e){return parseFloat(e)||0}function Nl(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+ho(o)},0)}function Uv(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]=ho(i)}return r}function Kv(e){var t=e.getBBox();return Io(0,0,t.width,t.height)}function qv(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Tu;var n=Nn(e).getComputedStyle(e),a=Uv(n),o=a.left+a.right,i=a.top+a.bottom,s=ho(n.width),l=ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Nl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Nl(n,"top","bottom")+i)),!Yv(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 Io(a.left,a.top,s,l)}var Xv=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 Yv(e){return e===Nn(e).document.documentElement}function Qv(e){return zi?Xv(e)?Kv(e):qv(e):Tu}function Zv(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 Nu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Io(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Jv=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Io(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Qv(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}(),em=function(){function e(t,r){var n=Zv(r);Nu(this,{target:t,contentRect:n})}return e}(),tm=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new _u,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 Jv(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 em(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}(),Iu=typeof WeakMap<"u"?new WeakMap:new _u,Mu=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=Gv.getInstance(),n=new tm(t,r,this);Iu.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mu.prototype[e]=function(){var t;return(t=Iu.get(this))[e].apply(t,arguments)}});var rm=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:Mu}(),Mr=new Map;function Au(e){e.forEach(function(t){var r,n=t.target;(r=Mr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var ju=new rm(Au);process.env.NODE_ENV;process.env.NODE_ENV;function nm(e,t){Mr.has(e)||(Mr.set(e,new Set),ju.observe(e)),Mr.get(e).add(t)}function am(e,t){Mr.has(e)&&(Mr.get(e).delete(t),Mr.get(e).size||(ju.unobserve(e),Mr.delete(e)))}function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tl(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,Pu(n.key),n)}}function Ft(e,t,r){return t&&Tl(e.prototype,t),r&&Tl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ma(e,t)}function qr(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&&ma(e,t)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(e)}function Us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Us=function(){return!!e})()}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function om(e,t){if(t&&(Te(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Xr(e){var t=Us();return function(){var r,n=ga(e);if(t){var a=ga(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return om(this,r)}}var im=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function sm(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Di),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)&&on(l),f=d?l.ref:null,v=_a(f,a),b=function(){var S;return ao(a.current)||(a.current&&Te(a.current)==="object"?ao((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||ao(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(m){var S=h.current,g=S.onResize,y=S.data,E=m.getBoundingClientRect(),C=E.width,x=E.height,R=m.offsetWidth,w=m.offsetHeight,$=Math.floor(C),T=Math.floor(x);if(u.current.width!==$||u.current.height!==T||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:T,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(C)?C:R,A=w===Math.round(x)?x:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,m,y),g&&Promise.resolve().then(function(){g(M,m)})}},[]);return c.useEffect(function(){var m=b();return m&&!n&&nm(m,p),function(){return am(m,p)}},[a.current,n]),c.createElement(im,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Fu=c.forwardRef(sm);process.env.NODE_ENV!=="production"&&(Fu.displayName="SingleObserver");var lm="rc-observer-key";function cm(e,t){var r=e.children,n=typeof r=="function"?[r]:$r(r);return process.env.NODE_ENV!=="production"&&(n.length>1?_n(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&_n(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(lm,"-").concat(o);return c.createElement(Fu,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var vr=c.forwardRef(cm);process.env.NODE_ENV!=="production"&&(vr.displayName="ResizeObserver");vr.Collection=Dv;function hr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Vi(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 um(e){if(Array.isArray(e))return Vi(e)}function Lu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ks(e,t){if(e){if(typeof e=="string")return Vi(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)?Vi(e,t):void 0}}function dm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return um(e)||Lu(e)||Ks(e)||dm()}var Du=function(t){return+setTimeout(t,16)},zu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Du=function(t){return window.requestAnimationFrame(t)},zu=function(t){return window.cancelAnimationFrame(t)});var Il=0,Mo=new Map;function Vu(e){Mo.delete(e)}var _t=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Il+=1;var n=Il;function a(o){if(o===0)Vu(n),t();else{var i=Du(function(){a(o-1)});Mo.set(n,i)}}return a(r),n};_t.cancel=function(e){var t=Mo.get(e);return Vu(e),zu(t)};process.env.NODE_ENV!=="production"&&(_t.ids=function(){return Mo});function Bu(e){if(Array.isArray(e))return e}function fm(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 ku(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
52
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Bu(e)||fm(e,t)||Ks(e,t)||ku()}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 Kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vm(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 Ml="data-rc-order",Al="data-rc-priority",mm="rc-util-key",Bi=new Map;function Hu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):mm}function Ao(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function gm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function qs(e){return Array.from((Bi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Kt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=gm(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Ml,i),s&&o&&l.setAttribute(Al,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Ao(t),d=u.firstChild;if(n){if(s){var f=(t.styles||qs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Ml)))return!1;var b=Number(v.getAttribute(Al)||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 Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ao(t);return(t.styles||qs(r)).find(function(n){return n.getAttribute(Hu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Gu(e,t);if(r){var n=Ao(t);n.removeChild(r)}}function pm(e,t){var r=Bi.get(e);if(!r||!vm(document,r)){var n=Wu("",t),a=n.parentNode;Bi.set(e,a),e.removeChild(n)}}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ao(r),a=qs(n),o=z(z({},r),{},{styles:a});pm(n,o);var i=Gu(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=Wu(e,o);return d.setAttribute(Hu(o),t),d}function hm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Je(e,t){if(e==null)return{};var r,n,a=hm(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(at(!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&&Te(o)==="object"&&Te(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 bm="%";function ki(e){return e.join(bm)}var ym=function(){function e(t){jt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Ft(e,[{key:"get",value:function(r){return this.opGet(ki(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(ki(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}(),Tn="data-token-hash",mr="data-css-hash",Sm="data-cache-path",Gr="__cssinjs_instance__";function Cm(){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[Gr]=a[Gr]||e,a[Gr]===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[Gr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new ym(e)}var Em=c.createContext({hashPriority:"low",cache:Cm(),defaultCache:!0});const jo=Em;function xm(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 Xs=function(){function e(){jt(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 Ft(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!xm(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Xs,"MAX_CACHE_SIZE",20);L(Xs,"MAX_CACHE_OFFSET",5);var jl=0,Uu=function(){function e(t){jt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=jl,t.length===0&&_n(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),jl+=1}return Ft(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ri=new Xs;function Hi(e){var t=Array.isArray(e)?e:[e];return ri.has(t)||ri.set(t,new Uu(t)),ri.get(t)}var wm=new WeakMap,ni={};function $m(e,t){for(var r=wm,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(ni)||r.set(ni,e()),r.get(ni)}var Fl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Fl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof Uu?r+=a.id:a&&Te(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),Fl.set(e,r)),r}function Ll(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Wi=Kt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function bo(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({},Tn,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 oo=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()},Om=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(""),"}"):""},Ku=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=oo(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,Om(a,r,{scope:n==null?void 0:n.scope})]},Dl=process.env.NODE_ENV!=="test"&&Kt()?c.useLayoutEffect:c.useEffect,yt=function(t,r){var n=c.useRef(!0);Dl(function(){return t(n.current)},r),Dl(function(){return n.current=!1,function(){n.current=!0}},[])},Gi=function(t,r){yt(function(n){if(!n)return t()},r)},Rm=z({},c),zl=Rm.useInsertionEffect,Pm=function(t,r,n){c.useMemo(t,n),yt(function(){return r(!0)},n)},_m=zl?function(e,t,r){return zl(function(){return e(),t()},r)}:Pm;const Nm=_m;var Tm=z({},c),Im=Tm.useInsertionEffect,Mm=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&_n(!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},Am=function(){return function(t){t()}},jm=typeof Im<"u"?Mm:Am;const Fm=jm;function Lm(){return!1}var Ui=!1;function Dm(){return Ui}const zm=process.env.NODE_ENV==="production"?Lm:Dm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ai=window;if(typeof ai.webpackHotUpdate=="function"){var Vm=ai.webpackHotUpdate;ai.webpackHotUpdate=function(){return Ui=!0,setTimeout(function(){Ui=!1},0),Vm.apply(void 0,arguments)}}}function Ys(e,t,r,n,a){var o=c.useContext(jo),i=o.cache,s=[e].concat(ye(t)),l=ki(s),u=Fm([l]),d=zm(),f=function(p){i.opUpdate(l,function(m){var S=m||[void 0,void 0],g=U(S,2),y=g[0],E=y===void 0?0:y,C=g[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(n==null||n(x,d),x=null);var R=x||r(),w=[E,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 Nm(function(){a==null||a(b)},function(h){return f(function(p){var m=U(p,2),S=m[0],g=m[1];return h&&S===0&&(a==null||a(b)),[S+1,g]}),function(){i.opUpdate(l,function(p){var m=p||[],S=U(m,2),g=S[0],y=g===void 0?0:g,E=S[1],C=y-1;return C===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(E,!1))}),null):[y-1,E]})}},[l]),b}var Bm={},km=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function Hm(e){tn.set(e,(tn.get(e)||0)+1)}function Wm(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Tn,'="').concat(e,'"]'));r.forEach(function(n){if(n[Gr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Gm=0;function Um(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>Gm&&n.forEach(function(a){Wm(a,t),tn.delete(a)})}var Km=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},qu="token";function qm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(jo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Bm:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=$m(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ca(b),p=ca(u),m=v?ca(v):"",S=Ys(qu,[s,e.id,h,p,m],function(){var g,y=f?f(b,u,e):Km(b,u,e,d),E=z({},y),C="";if(v){var x=Ku(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(x,2);y=R[0],C=R[1]}var w=Ll(y,s);y._tokenKey=w,E._tokenKey=Ll(E,s);var $=(g=v==null?void 0:v.key)!==null&&g!==void 0?g:w;y._themeKey=$,Hm($);var T="".concat(km,"-").concat(pa(w));return y._hashId=T,[y,T,E,C,(v==null?void 0:v.key)||""]},function(g){Um(g[0]._themeKey,a)},function(g){var y=U(g,4),E=y[0],C=y[3];if(v&&C){var x=Ar(C,pa("css-variables-".concat(E._themeKey)),{mark:mr,prepend:"queue",attachTo:o,priority:-999});x[Gr]=a,x.setAttribute(Tn,E._themeKey)}});return S}var Xm=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=bo(i,s,d,v,u);return[f,d,b]},Ym={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},Xu="comm",Yu="rule",Qu="decl",Qm="@import",Zm="@keyframes",Jm="@layer",Zu=Math.abs,Qs=String.fromCharCode;function Ju(e){return e.trim()}function io(e,t,r){return e.replace(t,r)}function eg(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function In(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function tg(e){return e.length}function Ba(e,t){return t.push(e),e}var Fo=1,Mn=1,ed=0,ir=0,Ot=0,Dn="";function Zs(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Fo,column:Mn,length:i,return:"",siblings:s}}function rg(){return Ot}function ng(){return Ot=ir>0?ya(Dn,--ir):0,Mn--,Ot===10&&(Mn=1,Fo--),Ot}function gr(){return Ot=ir<ed?ya(Dn,ir++):0,Mn++,Ot===10&&(Mn=1,Fo++),Ot}function Ur(){return ya(Dn,ir)}function so(){return ir}function Lo(e,t){return In(Dn,e,t)}function Sa(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 ag(e){return Fo=Mn=1,ed=xr(Dn=e),ir=0,[]}function og(e){return Dn="",e}function oi(e){return Ju(Lo(ir-1,Ki(e===91?e+2:e===40?e+1:e)))}function ig(e){for(;(Ot=Ur())&&Ot<33;)gr();return Sa(e)>2||Sa(Ot)>3?"":" "}function sg(e,t){for(;--t&&gr()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Lo(e,so()+(t<6&&Ur()==32&&gr()==32))}function Ki(e){for(;gr();)switch(Ot){case e:return ir;case 34:case 39:e!==34&&e!==39&&Ki(Ot);break;case 40:e===41&&Ki(e);break;case 92:gr();break}return ir}function lg(e,t){for(;gr()&&e+Ot!==57;)if(e+Ot===84&&Ur()===47)break;return"/*"+Lo(t,ir-1)+"*"+Qs(e===47?e:gr())}function cg(e){for(;!Sa(Ur());)gr();return Lo(e,ir)}function ug(e){return og(lo("",null,null,null,[""],e=ag(e),0,[0],e))}function lo(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,m=1,S=1,g=0,y="",E=a,C=o,x=n,R=y;m;)switch(h=g,g=gr()){case 40:if(h!=108&&ya(R,f-1)==58){eg(R+=io(oi(g),"&","&\f"),"&\f",Zu(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=oi(g);break;case 9:case 10:case 13:case 32:R+=ig(h);break;case 92:R+=sg(so()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ba(dg(lg(gr(),so()),t,r,l),l),(Sa(h||1)==5||Sa(Ur()||1)==5)&&xr(R)&&In(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=xr(R)*S;case 125*p:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+d:S==-1&&(R=io(R,/\f/g,"")),b>0&&(xr(R)-f||p===0&&h===47)&&Ba(b>32?Bl(R+";",n,r,f-1,l):Bl(io(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Ba(x=Vl(R,t,r,u,d,a,s,y,E=[],C=[],f,o),o),g===123)if(d===0)lo(R,t,x,x,E,o,f,s,C);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:lo(e,x,x,n&&Ba(Vl(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:lo(R,x,x,x,[""],C,0,s,C)}}u=d=b=0,p=S=1,y=R="",f=i;break;case 58:f=1+xr(R),b=h;default:if(p<1){if(g==123)--p;else if(g==125&&p++==0&&ng()==125)continue}switch(R+=Qs(g),g*p){case 38:S=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(xr(R)-1)*S,S=1;break;case 64:Ur()===45&&(R+=oi(gr())),v=Ur(),d=f=xr(y=R+=cg(so())),g++;break;case 45:h===45&&xr(R)==2&&(p=0)}}return o}function Vl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=tg(b),p=0,m=0,S=0;p<n;++p)for(var g=0,y=In(e,v+1,v=Zu(m=i[p])),E=e;g<h;++g)(E=Ju(m>0?b[g]+" "+y:io(y,/&\f/g,b[g])))&&(l[S++]=E);return Zs(e,t,r,a===0?Yu:s,l,u,d,f)}function dg(e,t,r,n){return Zs(e,t,r,Xu,Qs(rg()),In(e,2,-2),0,n)}function Bl(e,t,r,n,a){return Zs(e,t,r,Qu,In(e,0,n),In(e,n+1,-1),n,a)}function qi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fg(e,t,r,n){switch(e.type){case Jm:if(e.children.length)break;case Qm:case Qu:return e.return=e.return||e.value;case Xu:return"";case Zm:return e.return=e.value+"{"+qi(e.children,n)+"}";case Yu:if(!xr(e.value=e.props.join(",")))return""}return xr(r=qi(e.children,n))?e.return=e.value+"{"+r+"}":""}function td(e,t){var r=t.path,n=t.parentSelectors;at(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var vg=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)!=="'"))&&td("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},mg=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&td("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},kl="data-ant-cssinjs-cache-path",rd="_FILE_STYLE__",an,nd=!0;function gg(){if(!an&&(an={},Kt())){var e=document.createElement("div");e.className=kl,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(kl,"]"));if(r){var n;nd=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function pg(e){return gg(),!!an[e]}function hg(e){var t=an[e],r=null;if(t&&Kt())if(nd)r=rd;else{var n=document.querySelector("style[".concat(mr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var ad="_skip_check_",od="_multi_value_";function co(e){var t=qi(ug(e),fg);return t.replace(/\{%%%\:[^;];}/g,";")}function bg(e){return Te(e)==="object"&&e&&(ad in e||od in e)}function Hl(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 yg=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="",m={};function S(E){var C=E.getName(s);if(!m[C]){var x=e(E.style,r,{root:!1,parentSelectors:i}),R=U(x,1),w=R[0];m[C]="@keyframes ".concat(E.getName(s)).concat(w)}}function g(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?g(x,C):x&&C.push(x)}),C}var y=g(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")p+="".concat(C,`
|
|
53
|
+
`);else if(C._keyframe)S(C);else{var x=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},C);Object.keys(x).forEach(function(R){var w=x[R];if(Te(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!bg(w)){var $=!1,T=R.trim(),F=!1;(a||o)&&s?T.startsWith("@")?$=!0:T==="&"?T=Hl("",s,d):T=Hl(R,s,d):a&&!s&&(T==="&"||T==="")&&(T="",F=!0);var j=e(w,r,{root:F,injectHash:$,parentSelectors:[].concat(ye(i),[T])}),A=U(j,2),M=A[0],H=A[1];m=z(z({},m),H),p+="".concat(T).concat(M)}else{let I=function(D,V){process.env.NODE_ENV!=="production"&&(Te(w)!=="object"||!(w!=null&&w[ad]))&&[vg,mg].concat(ye(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;!Ym[D]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),D==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(S(V),K=V.getName(s)),p+="".concat(k,":").concat(K,";")};var N,O=(N=w==null?void 0:w.value)!==null&&N!==void 0?N:w;Te(w)==="object"&&w!==null&&w!==void 0&&w[od]&&Array.isArray(O)?O.forEach(function(D){I(R,D)}):I(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(l.name,";")}).join(`
|
|
54
|
+
`))):p="{".concat(p,"}"),[p,m]};function id(e,t){return pa("".concat(e.join("%")).concat(t))}function Sg(){return null}var sd="style";function Xi(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(jo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,m=d.ssrInline,S=d.transformers,g=d.linters,y=d.cache,E=d.layer,C=r._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ye(n));var R=Wi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Ys(sd,x,function(){var A=x.join("|");if(pg(A)){var M=hg(A),H=U(M,2),N=H[0],O=H[1];if(N)return[N,C,O,{},s,u]}var I=t(),D=yg(I,{hashId:a,hashPriority:h,layer:E?o:void 0,path:n.join("-"),transformers:S,linters:g}),V=U(D,2),k=V[0],K=V[1],W=co(k),q=id(x,W);return[W,C,q,K,s,u]},function(A,M){var H=U(A,3),N=H[2];(M||f)&&Wi&&ha(N,{mark:mr})},function(A){var M=U(A,4),H=M[0];M[1];var N=M[2],O=M[3];if(R&&H!==rd){var I={mark:mr,prepend:E?!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){Ar(co(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=Ar(H,N,I);K[Gr]=y.instanceId,K.setAttribute(Tn,C),process.env.NODE_ENV!=="production"&&K.setAttribute(Sm,x.join("|")),k.forEach(function(W){Ar(co(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),T=$[0],F=$[1],j=$[2];return function(A){var M;return!m||R||!b?M=c.createElement(Sg,null):M=c.createElement("style",Oe({},L(L({},Tn,F),mr,j),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,M,A)}}var Cg=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=bo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var m=co(l[p]),S=bo(m,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},ld="cssVar",Eg=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=P.useContext(jo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,u,b]),p=Ys(ld,h,function(){var m=r(),S=Ku(m,n,{prefix:a,unitless:o,ignore:i,scope:u}),g=U(S,2),y=g[0],E=g[1],C=id(h,E);return[y,E,C,n]},function(m){var S=U(m,3),g=S[2];Wi&&ha(g,{mark:mr})},function(m){var S=U(m,3),g=S[1],y=S[2];if(g){var E=Ar(g,y,{mark:mr,prepend:"queue",attachTo:v,priority:-999});E[Gr]=f,E.setAttribute(Tn,n)}});return p},xg=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=bo(o,s,i,f,u);return[d,i,v]};L(L(L({},sd,Cg),qu,Xm),ld,xg);var $t=function(){function e(t,r){jt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Ft(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 fn(e){return e.notSplit=!0,e}fn(["borderTop","borderBottom"]),fn(["borderTop"]),fn(["borderBottom"]),fn(["borderLeft","borderRight"]),fn(["borderLeft"]),fn(["borderRight"]);var Js=P.createContext({});function wg(e){return Bu(e)||Lu(e)||Ks(e)||ku()}function wr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function cd(e,t,r,n){if(!t.length)return r;var a=wg(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]=cd(s[o],i,r,n),s}function dr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!wr(e,t.slice(0,-1))?e:cd(e,t,r,n)}function $g(e){return Te(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wl(e){return Array.isArray(e)?[]:{}}var Og=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function xn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Wl(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=wr(a,i),d=Array.isArray(u);if(d||$g(u)){if(!l.has(u)){l.add(u);var f=wr(n,i);d?n=dr(n,i,[]):(!f||Te(f)!=="object")&&(n=dr(n,i,Wl(u))),Og(u).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=dr(n,i,u)}o([])}),n}function ud(){}let Ir=null;function Rg(){Ir=null,Ou()}let zn=ud;process.env.NODE_ENV!=="production"&&(zn=(e,t,r)=>{at(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Rg()});const dd=c.createContext({}),It=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(dd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ir;Ir||(Ir={}),Ir[e]=Ir[e]||[],Ir[e].includes(o||"")||Ir[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ir)}else process.env.NODE_ENV!=="production"&&zn(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=ud,e},Pg=P.createContext(void 0);var _g={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"},Ng={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Tg=z(z({},Ng),{},{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 fd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gl={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"]},Tg),timePickerLocale:Object.assign({},fd)},Yt="${label} is not a valid ${type}",An={locale:"en",Pagination:_g,DatePicker:Gl,TimePicker:fd,Calendar:Gl,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:Yt,method:Yt,array:Yt,object:Yt,number:Yt,date:Yt,boolean:Yt,integer:Yt,float:Yt,regexp:Yt,email:Yt,url:Yt,hex:Yt},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({},An.Modal);let uo=[];const Ul=()=>uo.reduce((e,t)=>Object.assign(Object.assign({},e),t),An.Modal);function Ig(e){if(e){const t=Object.assign({},e);return uo.push(t),Ul(),()=>{uo=uo.filter(r=>r!==t),Ul()}}Object.assign({},An.Modal)}const el=P.createContext(void 0),Mg=(e,t)=>{const r=c.useContext(el),n=c.useMemo(()=>{var o;const i=An[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?An.locale:o},[r]);return[n,a]},vd="internalMark",md=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=It("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===vd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Ig(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(el.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(md.displayName="LocaleProvider");function At(e,t){Ag(e)&&(e="100%");var r=jg(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 ka(e){return Math.min(1,Math.max(0,e))}function Ag(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jg(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ha(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Fg(e,t,r){return{r:At(e,255)*255,g:At(t,255)*255,b:At(r,255)*255}}function Kl(e,t,r){e=At(e,255),t=At(t,255),r=At(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 ii(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 Lg(e,t,r){var n,a,o;if(e=At(e,360),t=At(t,100),r=At(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=ii(s,i,e+1/3),a=ii(s,i,e),o=ii(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Yi(e,t,r){e=At(e,255),t=At(t,255),r=At(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 Dg(e,t,r){e=At(e,360)*6,t=At(t,100),r=At(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 zg(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(Vg(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 Vg(e){return Math.round(parseFloat(e)*255).toString(16)}function ql(e){return Zt(e)/255}function Zt(e){return parseInt(e,16)}function Bg(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zi={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=Wg(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=Fg(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=Ha(e.s),a=Ha(e.v),t=Dg(e.h,n,a),i=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(n=Ha(e.s),o=Ha(e.l),t=Lg(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=gd(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 kg="[-\\+]?\\d+%?",Hg="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(Hg,")|(?:").concat(kg,")"),si="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),li="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+si),rgba:new RegExp("rgba"+li),hsl:new RegExp("hsl"+si),hsla:new RegExp("hsla"+li),hsv:new RegExp("hsv"+si),hsva:new RegExp("hsva"+li),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 Wg(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zi[e])e=Zi[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ur.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ur.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ur.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ur.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ur.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ur.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ur.hex8.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:ql(r[4]),format:t?"name":"hex8"}:(r=ur.hex6.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=ur.hex4.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),a:ql(r[4]+r[4]),format:t?"name":"hex8"}:(r=ur.hex3.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!ur.CSS_UNIT.exec(String(e))}var Jt=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=Bg(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=gd(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=Yi(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=Yi(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=Kl(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=Kl(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),zg(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(At(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(At(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(Zi);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=ka(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=ka(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=ka(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=ka(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}(),Wa=2,Xl=.16,Gg=.05,Ug=.05,Kg=.15,pd=5,hd=4,qg=[{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 Yl(e){var t=e.r,r=e.g,n=e.b,a=Yi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ga(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Qi(t,r,n,!1))}function Xg(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 Ql(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wa*t:Math.round(e.h)+Wa*t:n=r?Math.round(e.h)+Wa*t:Math.round(e.h)-Wa*t,n<0?n+=360:n>=360&&(n-=360),n}function Zl(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Xl*t:t===hd?n=e.s+Xl:n=e.s+Gg*t,n>1&&(n=1),r&&t===pd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Jl(e,t,r){var n;return r?n=e.v+Ug*t:n=e.v-Kg*t,n>1&&(n=1),Number(n.toFixed(2))}function Ca(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=pd;a>0;a-=1){var o=Yl(n),i=Ga(En({h:Ql(o,a,!0),s:Zl(o,a,!0),v:Jl(o,a,!0)}));r.push(i)}r.push(Ga(n));for(var s=1;s<=hd;s+=1){var l=Yl(n),u=Ga(En({h:Ql(l,s),s:Zl(l,s),v:Jl(l,s)}));r.push(u)}return t.theme==="dark"?qg.map(function(d){var f=d.index,v=d.opacity,b=Ga(Xg(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ci={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"},Ji=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ji.primary=Ji[5];var es=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];es.primary=es[5];var ts=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ts.primary=ts[5];var yo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yo.primary=yo[5];var rs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rs.primary=rs[5];var ns=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ns.primary=ns[5];var as=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];as.primary=as[5];var os=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];os.primary=os[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var is=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];is.primary=is[5];var ss=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ss.primary=ss[5];var ls=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ls.primary=ls[5];var cs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];cs.primary=cs[5];var ui={red:Ji,volcano:es,orange:ts,gold:yo,yellow:rs,lime:ns,green:as,cyan:os,blue:So,geekblue:is,purple:ss,magenta:ls,grey:cs};const bd={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"},Ea=Object.assign(Object.assign({},bd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
26
55
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
27
|
-
'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
|
|
56
|
+
'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 Yg(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),m=n(u,d),S=e.colorLink||e.colorInfo,g=r(S);return Object.assign(Object.assign({},m),{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:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Qg=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 Zg(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},Qg(n))}const Jg=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function fo(e){return(e+8)/e}function ep(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:fo(r)}))}const tp=e=>{const t=ep(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 rp(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 Tr=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),ea=(e,t)=>new Jt(e).darken(t).toHexString(),np=e=>{const t=Ca(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]}},ap=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Tr(n,.88),colorTextSecondary:Tr(n,.65),colorTextTertiary:Tr(n,.45),colorTextQuaternary:Tr(n,.25),colorFill:Tr(n,.15),colorFillSecondary:Tr(n,.06),colorFillTertiary:Tr(n,.04),colorFillQuaternary:Tr(n,.02),colorBgLayout:ea(r,4),colorBgContainer:ea(r,0),colorBgElevated:ea(r,0),colorBgSpotlight:Tr(n,.85),colorBgBlur:"transparent",colorBorder:ea(r,15),colorBorderSecondary:ea(r,6)}};function op(e){ci.pink=ci.magenta,ui.pink=ui.magenta;const t=Object.keys(bd).map(r=>{const n=e[r]===ci[r]?ui[r]:Ca(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),Yg(e,{generateColorPalettes:np,generateNeutralColorPalettes:ap})),tp(e.fontSize)),rp(e)),Jg(e)),Zg(e))}const yd=Hi(op),us={token:Ea,override:{override:Ea},hashed:!0},Sd=P.createContext(us),Co="ant",Cd="anticon",ip=["outlined","borderless","filled"],sp=(e,t)=>t||(e?`${Co}-${e}`:Co),ot=c.createContext({getPrefixCls:sp,iconPrefixCls:Cd}),lp=`-ant-${Date.now()}-${Math.random()}`;function cp(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 Jt(i),u=Ca(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 Jt(t.primaryColor),s=Ca(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 Jt(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"),`
|
|
28
57
|
:root {
|
|
29
|
-
${Object.keys(
|
|
58
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
30
59
|
`)}
|
|
31
60
|
}
|
|
32
|
-
`.trim()}function np(e,t){const n=tp(e,t);jt()?_n(n,`${ep}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ar=c.createContext(!1),rp=e=>{let{children:t,disabled:n}=e;const r=c.useContext(Ar);return c.createElement(Ar.Provider,{value:n??r},t)},Fr=c.createContext(void 0),ap=e=>{let{children:t,size:n}=e;const r=c.useContext(Fr);return c.createElement(Fr.Provider,{value:n||r},t)};function op(){const e=R.useContext(Ar),t=R.useContext(Fr);return{componentDisabled:e,componentSize:t}}var pd=Nt(function e(){Pt(this,e)}),hd="CALC_UNIT",ip=new RegExp(hd,"g");function li(e){return typeof e=="number"?"".concat(e).concat(hd):e}var sp=function(e){Un(n,e);var t=Kn(n);function n(r,a){var o;Pt(this,n),o=t.call(this),j(Me(o),"result",""),j(Me(o),"unitlessCssVar",void 0),j(Me(o),"lowPriority",void 0);var i=we(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=li(r):i==="string"&&(o.result=r),o}return Nt(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(li(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(li(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var 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(ip,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(pd),lp=function(e){Un(n,e);var t=Kn(n);function n(r){var a;return Pt(this,n),a=t.call(this),j(Me(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Nt(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(pd),cp=function(t,n){var r=t==="css"?sp:lp;return function(a){return new r(a,n)}},ql=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Mt(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function Sa(e){var t=c.useRef(!1),n=c.useState(e),r=W(n,2),a=r[0],o=r[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 ci(e){return e!==void 0}function Jt(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,i=n.postState,s=Sa(function(){return ci(a)?a:ci(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=W(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Mt(o),p=Sa([f]),g=W(p,2),m=g[0],S=g[1];Bi(function(){var y=m[0];u!==y&&b(u,y)},[m]),Bi(function(){ci(a)||d(a)},[a]);var h=Mt(function(y,E){d(y,E),S([f],E)});return[v,h]}function Xl(e,t,n,r){var a=L({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=W(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&Ye(!(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=L(L({},n),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var bd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ss=!0;function _t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!bd)return Object.assign.apply(Object,[{}].concat(t));ss=!1;var r={};return t.forEach(function(a){if(we(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),ss=!0,r}var Yl={};function up(){}var dp=function(t){var n,r=t,a=up;return bd&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,s){return ss&&n.add(s),i[s]}}),a=function(i,s){var l;Yl[i]={global:Array.from(n),component:L(L({},(l=Yl[i])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:a}};function Ql(e,t,n){if(typeof n=="function"){var r;return n(_t(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function fp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(o){return X(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(o){return X(o)}).join(","),")")}}}var vp=1e3*60*10,mp=function(){function e(){Pt(this,e),j(this,"map",new Map),j(this,"objectIDMap",new WeakMap),j(this,"nextID",0),j(this,"lastAccessBeat",new Map),j(this,"accessBeat",0)}return Nt(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(o){return o&&we(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(we(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>vp&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Zl=new mp;function gp(e,t){return R.useMemo(function(){var n=Zl.get(t);if(n)return n;var r=e();return Zl.set(t,r),r},t)}var pp=function(){return{}};function hp(e){var t=e.useCSP,n=t===void 0?pp:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,p,g){var m=Array.isArray(v)?v[0]:v;function S(w){return"".concat(String(m)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var h=(g==null?void 0:g.unitless)||{},y=typeof s=="function"?s(v):{},E=L(L({},y),{},j({},S("zIndexPopup"),!0));Object.keys(h).forEach(function(w){E[S(w)]=h[w]});var C=L(L({},g),{},{unitless:E,prefixToken:S}),x=d(v,b,p,C),P=u(m,p,C);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,N=x(w,$),F=W(N,2),M=F[1],A=P($),I=W(A,2),H=I[0],_=I[1];return[H,M,_]}}function u(v,b,p){var g=p.unitless,m=p.injectStyle,S=m===void 0?!0:m,h=p.prefixToken,y=p.ignore,E=function(P){var w=P.rootCls,$=P.cssVar,N=$===void 0?{}:$,F=r(),M=F.realToken;return mg({path:[v],prefix:N.prefix,key:N.key,unitless:g,ignore:y,token:M,scope:w},function(){var A=Ql(v,M,b),I=Xl(v,M,A,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(A).forEach(function(H){I[h(H)]=I[H],delete I[H]}),I}),null},C=function(P){var w=r(),$=w.cssVar;return[function(N){return S&&$?R.createElement(R.Fragment,null,R.createElement(E,{rootCls:P,cssVar:$,component:v}),N):N},$==null?void 0:$.key]};return C}function d(v,b,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(v)?v:[v,v],S=W(m,1),h=S[0],y=m.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=r(),P=x.theme,w=x.realToken,$=x.hashId,N=x.token,F=x.cssVar,M=a(),A=M.rootPrefixCls,I=M.iconPrefixCls,H=n(),_=F?"css":"js",O=gp(function(){var k=new Set;return F&&Object.keys(g.unitless||{}).forEach(function(U){k.add(no(U,F.prefix)),k.add(no(U,ql(h,F.prefix)))}),cp(_,k)},[_,h,F==null?void 0:F.prefix]),T=fp(_),z=T.max,D=T.min,B={theme:P,token:N,hashId:$,nonce:function(){return H.nonce},clientOnly:g.clientOnly,layer:{name:"antd"},order:g.order||-999};Gi(L(L({},B),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(N):[]});var G=Gi(L(L({},B),{},{path:[y,E,I]}),function(){if(g.injectStyle===!1)return[];var k=dp(N),U=k.token,q=k.flush,Y=Ql(h,w,p),Q=".".concat(E),Z=Xl(h,w,Y,{deprecatedTokens:g.deprecatedTokens});F&&we(Y)==="object"&&Object.keys(Y).forEach(function(de){Y[de]="var(".concat(no(de,ql(h,F.prefix)),")")});var te=_t(U,{componentCls:Q,prefixCls:E,iconCls:".".concat(I),antCls:".".concat(A),calc:O,max:z,min:D},F?Y:Z),ue=b(te,{hashId:$,prefixCls:E,rootPrefixCls:A,iconPrefixCls:I});q(h,Z);var oe=typeof i=="function"?i(te,E,C,g.resetFont):null;return[g.resetStyle===!1?null:oe,ue]});return[G,$]}}function f(v,b,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=d(v,b,p,L({resetStyle:!1,order:-998},g)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return m(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const yo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],bp="5.20.3";function ui(e){return e>=0&&e<=255}function ka(e,t){const{r:n,g:r,b:a,a:o}=new Gt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Gt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(ui(d)&&ui(f)&&ui(v))return new Gt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new Gt({r:n,g:r,b:a,a:1}).toRgbString()}var yp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function yd(e){const{override:t}=e,n=yp(e,["override"]),r=Object.assign({},t);Object.keys(ya).forEach(v=>{delete r[v]});const a=Object.assign(Object.assign({},n),r),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:`
|
|
61
|
+
`.trim()}function up(e,t){const r=cp(e,t);Kt()?Ar(r,`${lp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const jn=c.createContext(!1),dp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(jn);return c.createElement(jn.Provider,{value:r??n},t)},Fn=c.createContext(void 0),fp=e=>{let{children:t,size:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r||n},t)};function vp(){const e=P.useContext(jn),t=P.useContext(Fn);return{componentDisabled:e,componentSize:t}}var Ed=Ft(function e(){jt(this,e)}),xd="CALC_UNIT",mp=new RegExp(xd,"g");function di(e){return typeof e=="number"?"".concat(e).concat(xd):e}var gp=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;jt(this,r),o=t.call(this),L(We(o),"result",""),L(We(o),"unitlessCssVar",void 0),L(We(o),"lowPriority",void 0);var i=Te(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=di(n):i==="string"&&(o.result=n),o}return Ft(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(di(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(di(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(mp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ed),pp=function(e){qr(r,e);var t=Xr(r);function r(n){var a;return jt(this,r),a=t.call(this),L(We(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Ft(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}(Ed),hp=function(t,r){var n=t==="css"?gp:pp;return function(a){return new n(a,r)}},ec=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 Bt(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 xa(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 fi(e){return e!==void 0}function or(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=xa(function(){return fi(a)?a:fi(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=Bt(o),h=xa([f]),p=U(h,2),m=p[0],S=p[1];Gi(function(){var y=m[0];u!==y&&b(u,y)},[m]),Gi(function(){fi(a)||d(a)},[a]);var g=Bt(function(y,E){d(y,E),S([f],E)});return[v,g]}function tc(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"&&at(!(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 wd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ds=!0;function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!wd)return Object.assign.apply(Object,[{}].concat(t));ds=!1;var n={};return t.forEach(function(a){if(Te(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),ds=!0,n}var rc={};function bp(){}var yp=function(t){var r,n=t,a=bp;return wd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return ds&&r.add(s),i[s]}}),a=function(i,s){var l;rc[i]={global:Array.from(r),component:z(z({},(l=rc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function nc(e,t,r){if(typeof r=="function"){var n;return r(Lt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Sp(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 Cp=1e3*60*10,Ep=function(){function e(){jt(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 Ft(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&&Te(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Te(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>Cp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ac=new Ep;function xp(e,t){return P.useMemo(function(){var r=ac.get(t);if(r)return r;var n=e();return ac.set(t,n),n},t)}var wp=function(){return{}};function $p(e){var t=e.useCSP,r=t===void 0?wp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var m=Array.isArray(v)?v[0]:v;function S(w){return"".concat(String(m)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var g=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},E=z(z({},y),{},L({},S("zIndexPopup"),!0));Object.keys(g).forEach(function(w){E[S(w)]=g[w]});var C=z(z({},p),{},{unitless:E,prefixToken:S}),x=d(v,b,h,C),R=u(m,h,C);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=x(w,$),F=U(T,2),j=F[1],A=R($),M=U(A,2),H=M[0],N=M[1];return[H,j,N]}}function u(v,b,h){var p=h.unitless,m=h.injectStyle,S=m===void 0?!0:m,g=h.prefixToken,y=h.ignore,E=function(R){var w=R.rootCls,$=R.cssVar,T=$===void 0?{}:$,F=n(),j=F.realToken;return Eg({path:[v],prefix:T.prefix,key:T.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=nc(v,j,b),M=tc(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[g(H)]=M[H],delete M[H]}),M}),null},C=function(R){var w=n(),$=w.cssVar;return[function(T){return S&&$?P.createElement(P.Fragment,null,P.createElement(E,{rootCls:R,cssVar:$,component:v}),T):T},$==null?void 0:$.key]};return C}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(v)?v:[v,v],S=U(m,1),g=S[0],y=m.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=n(),R=x.theme,w=x.realToken,$=x.hashId,T=x.token,F=x.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),N=F?"css":"js",O=xp(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(oo(q,F.prefix)),W.add(oo(q,ec(g,F.prefix)))}),hp(N,W)},[N,g,F==null?void 0:F.prefix]),I=Sp(N),D=I.max,V=I.min,k={theme:R,token:T,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Xi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(T):[]});var K=Xi(z(z({},k),{},{path:[y,E,M]}),function(){if(p.injectStyle===!1)return[];var W=yp(T),q=W.token,Q=W.flush,Z=nc(g,w,h),J=".".concat(E),te=tc(g,w,Z,{deprecatedTokens:p.deprecatedTokens});F&&Te(Z)==="object"&&Object.keys(Z).forEach(function(ve){Z[ve]="var(".concat(oo(ve,ec(g,F.prefix)),")")});var ae=Lt(q,{componentCls:J,prefixCls:E,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Z:te),fe=b(ae,{hashId:$,prefixCls:E,rootPrefixCls:A,iconPrefixCls:M});Q(g,te);var de=typeof i=="function"?i(ae,E,C,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]:{},m=d(v,b,h,z({resetStyle:!1,order:-998},p)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return m(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Op="5.20.3";function vi(e){return e>=0&&e<=255}function Ua(e,t){const{r,g:n,b:a,a:o}=new Jt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Jt(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(vi(d)&&vi(f)&&vi(v))return new Jt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r,g:n,b:a,a:1}).toRgbString()}var Rp=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=Rp(e,["override"]),n=Object.assign({},t);Object.keys(Ea).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:Ua(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:Ua(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ua(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:Ua(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:`
|
|
33
62
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
63
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
64
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -42,9 +71,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42
71
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
43
72
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
44
73
|
`,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
45
|
-
0 1px 2px -2px ${new
|
|
46
|
-
0 3px 6px 0 ${new
|
|
47
|
-
0 5px 12px 4px ${new
|
|
74
|
+
0 1px 2px -2px ${new Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
75
|
+
0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
76
|
+
0 5px 12px 4px ${new Jt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
48
77
|
`,boxShadowDrawerRight:`
|
|
49
78
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
79
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -61,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
90
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
62
91
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
63
92
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
64
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Jl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Sd={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},Sp={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},Cp={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},Cd=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=Jl(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=yd(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=Jl(u,["theme"]);let v=f;d&&(v=Cd(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Mn(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=R.useContext(md),o=`${bp}-${t||""}`,i=n||vd,[s,l,u]=Vm(i,[ya,e],{salt:o,override:r,getComputedToken:Cd,formatToken:yd,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Sd,ignore:Sp,preserve:Cp}});return[i,u,t?l:"",s,a]}const Ed=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Qs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dr=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}},Ep=()=>({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"}}),Ra=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),xp=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"}}}),wp=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},$p=e=>({outline:`${X(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Zs=e=>({"&:focus-visible":Object.assign({},$p(e))}),xd=(e,t)=>{const[n,r]=Mn();return Gi({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ep()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:gn,genComponentStyleHook:Op,genSubStyleComponent:Rp}=hp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=R.useContext(Qe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Mn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=R.useContext(Qe);return xd(t,e),e??{}},getResetStyles:e=>[{"&":xp(e)}],getCommonStyle:wp,getCompUnitless:()=>Sd});function Pp(e,t){return yo.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Np=Object.assign({},c),{useId:ec}=Np,_p=()=>"",Tp=typeof ec>"u"?_p:ec;function Ip(e,t,n){var r,a;const o=wt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},is),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:is.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=Tp();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 Po(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{f[p]=Object.assign(Object.assign({},f[p]),e.components[p])});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:n==null?void 0:n.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!ga(f,b,!0)}))}var Mp=["children"],wd=c.createContext({});function Ap(e){var t=e.children,n=Ve(e,Mp);return c.createElement(wd.Provider,{value:n},t)}var Fp=function(e){Un(n,e);var t=Kn(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Nt(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function jp(e){var t=c.useReducer(function(s){return s+1},0),n=W(t,2),r=n[1],a=c.useRef(e),o=Mt(function(){return a.current}),i=Mt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var Bn="none",Wa="appear",Ga="enter",Ua="leave",tc="none",cn="prepare",xr="start",wr="active",Js="end",$d="prepared";function nc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Lp(e,t){var n={animationend:nc("Animation","AnimationEnd"),transitionend:nc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zp=Lp(jt(),typeof window<"u"?window:{}),Od={};if(jt()){var Dp=document.createElement("div");Od=Dp.style}var Ka={};function Rd(e){if(Ka[e])return Ka[e];var t=zp[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Od)return Ka[e]=t[o],Ka[e]}return""}var Pd=Rd("animationend"),Nd=Rd("transitionend"),_d=!!(Pd&&Nd),rc=Pd||"animationend",ac=Nd||"transitionend";function oc(e,t){if(!e)return null;if(we(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Vp=function(e){var t=R.useRef();function n(a){a&&(a.removeEventListener(ac,e),a.removeEventListener(rc,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(ac,e),a.addEventListener(rc,e),t.current=a)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Td=jt()?R.useLayoutEffect:R.useEffect;const Bp=function(){var e=c.useRef(null);function t(){Ct.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ct(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var Hp=[cn,xr,wr,Js],kp=[cn,$d],Id=!1,Wp=!0;function Md(e){return e===wr||e===Js}const Gp=function(e,t,n){var r=Sa(tc),a=W(r,2),o=a[0],i=a[1],s=Bp(),l=W(s,2),u=l[0],d=l[1];function f(){i(cn,!0)}var v=t?kp:Hp;return Td(function(){if(o!==tc&&o!==Js){var b=v.indexOf(o),p=v[b+1],g=n(o);g===Id?i(p,!0):p&&u(function(m){function S(){m.isCanceled()||i(p,!0)}g===!0?S():Promise.resolve(g).then(S)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function Up(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,u=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,b=r.onEnterPrepare,p=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,S=r.onLeaveStart,h=r.onAppearActive,y=r.onEnterActive,E=r.onLeaveActive,C=r.onAppearEnd,x=r.onEnterEnd,P=r.onLeaveEnd,w=r.onVisibleChanged,$=Sa(),N=W($,2),F=N[0],M=N[1],A=jp(Bn),I=W(A,2),H=I[0],_=I[1],O=Sa(null),T=W(O,2),z=T[0],D=T[1],B=H(),G=R.useRef(!1),k=R.useRef(null);function U(){return n()}var q=R.useRef(!1);function Y(){_(Bn),D(null,!0)}var Q=Mt(function(le){var be=H();if(be!==Bn){var Pe=U();if(!(le&&!le.deadline&&le.target!==Pe)){var ne=q.current,J;be===Wa&&ne?J=C==null?void 0:C(Pe,le):be===Ga&&ne?J=x==null?void 0:x(Pe,le):be===Ua&&ne&&(J=P==null?void 0:P(Pe,le)),ne&&J!==!1&&Y()}}}),Z=Vp(Q),te=W(Z,1),ue=te[0],oe=function(be){switch(be){case Wa:return j(j(j({},cn,v),xr,g),wr,h);case Ga:return j(j(j({},cn,b),xr,m),wr,y);case Ua:return j(j(j({},cn,p),xr,S),wr,E);default:return{}}},de=c.useMemo(function(){return oe(B)},[B]),Se=Gp(B,!e,function(le){if(le===cn){var be=de[cn];return be?be(U()):Id}if(ie in de){var Pe;D(((Pe=de[ie])===null||Pe===void 0?void 0:Pe.call(de,U(),null))||null)}return ie===wr&&B!==Bn&&(ue(U()),d>0&&(clearTimeout(k.current),k.current=setTimeout(function(){Q({deadline:!0})},d))),ie===$d&&Y(),Wp}),V=W(Se,2),se=V[0],ie=V[1],he=Md(ie);q.current=he,Td(function(){M(t);var le=G.current;G.current=!0;var be;!le&&t&&s&&(be=Wa),le&&t&&o&&(be=Ga),(le&&!t&&u||!le&&f&&!t&&u)&&(be=Ua);var Pe=oe(be);be&&(e||Pe[cn])?(_(be),se()):_(Bn)},[t]),R.useEffect(function(){(B===Wa&&!s||B===Ga&&!o||B===Ua&&!u)&&_(Bn)},[s,o,u]),R.useEffect(function(){return function(){G.current=!1,clearTimeout(k.current)}},[]);var me=c.useRef(!1);R.useEffect(function(){F&&(me.current=!0),F!==void 0&&B===Bn&&((me.current||F)&&(w==null||w(F)),me.current=!0)},[F,B]);var ee=z;return de[cn]&&ie===xr&&(ee=L({transition:"none"},ee)),[B,ie,ee,F??t]}function Kp(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=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,p=a.eventProps,g=c.useContext(wd),m=g.motion,S=n(a,m),h=R.useRef(),y=R.useRef();function E(){try{return h.current instanceof HTMLElement?h.current:to(y.current)}catch{return null}}var C=Up(S,s,E,a),x=W(C,4),P=x[0],w=x[1],$=x[2],N=x[3],F=c.useRef(N);N&&(F.current=!0);var M=c.useCallback(function(z){h.current=z,Bs(o,z)},[o]),A,I=L(L({},p),{},{visible:s});if(!f)A=null;else if(P===Bn)N?A=f(L({},I),M):!u&&F.current&&b?A=f(L(L({},I),{},{className:b}),M):d||!u&&!b?A=f(L(L({},I),{},{style:{display:"none"}}),M):A=null;else{var H;w===cn?H="prepare":Md(w)?H="active":w===xr&&(H="start");var _=oc(v,"".concat(P,"-").concat(H));A=f(L(L({},I),{},{className:K(oc(v,P),j(j({},_,_&&H),v,typeof v=="string")),style:$}),M)}if(c.isValidElement(A)&&rr(A)){var O=A,T=O.ref;T||(A=c.cloneElement(A,{ref:M}))}return c.createElement(Fp,{ref:y},A)});return r.displayName="CSSMotion",r}const ar=Kp(_d);var ls="add",cs="keep",us="remove",di="removed";function qp(e){var t;return e&&we(e)==="object"&&"key"in e?t=e:t={key:e},L(L({},t),{},{key:String(t.key)})}function ds(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(qp)}function Xp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=ds(e),i=ds(t);o.forEach(function(u){for(var d=!1,f=r;f<a;f+=1){var v=i[f];if(v.key===u.key){r<f&&(n=n.concat(i.slice(r,f).map(function(b){return L(L({},b),{},{status:ls})})),r=f),n.push(L(L({},v),{},{status:cs})),r+=1,d=!0;break}}d||n.push(L(L({},u),{},{status:us}))}),r<a&&(n=n.concat(i.slice(r).map(function(u){return L(L({},u),{},{status:ls})})));var s={};n.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){n=n.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==us}),n.forEach(function(d){d.key===u&&(d.status=cs)})}),n}var Yp=["component","children","onVisibleChanged","onAllRemoved"],Qp=["status"],Zp=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ar,n=function(r){Un(o,r);var a=Kn(o);function o(){var i;Pt(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)),j(Me(i),"state",{keyEntities:[]}),j(Me(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:L(L({},b),{},{status:di})});return i.setState({keyEntities:v}),v.filter(function(b){var p=b.status;return p!==di}).length}),i}return Nt(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,p=Ve(u,Yp),g=d||c.Fragment,m={};return Zp.forEach(function(S){m[S]=p[S],delete p[S]}),delete p.keys,c.createElement(g,p,l.map(function(S,h){var y=S.status,E=Ve(S,Qp),C=y===ls||y===cs;return c.createElement(t,ye({},m,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(P){if(v==null||v(P,{key:E.key}),!P){var w=s.removeKey(E.key);w===0&&b&&b()}}}),function(x,P){return f(L(L({},x),{},{index:h}),P)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=ds(u),v=Xp(d,f);return{keyEntities:v.filter(function(b){var p=d.find(function(g){var m=g.key;return b.key===m});return!(p&&p.status===di&&b.status===us)})}}}]),o}(c.Component);return j(n,"defaultProps",{component:"div"}),n}Jp(_d);function eh(e){const{children:t}=e,[,n]=Mn(),{motion:r}=n,a=c.useRef(!1);return a.current=a.current||r===!1,a.current?c.createElement(Ap,{motion:r},t):t}const Ad=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return wt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Ad.displayName="PropWarning");const th=process.env.NODE_ENV!=="production"?Ad:()=>null;var nh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let fs=!1;process.env.NODE_ENV;const rh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Fd;function ah(){return Fd||bo}function oh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const ih=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Fd=t),r&&oh(r)&&(process.env.NODE_ENV!=="production"&&zr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),np(ah(),r))},sh=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:p,legacyLocale:g,parentContext:m,iconPrefixCls:S,theme:h,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:P,carousel:w,cascader:$,collapse:N,typography:F,checkbox:M,descriptions:A,divider:I,drawer:H,skeleton:_,steps:O,image:T,layout:z,list:D,mentions:B,modal:G,progress:k,result:U,slider:q,breadcrumb:Y,menu:Q,pagination:Z,input:te,textArea:ue,empty:oe,badge:de,radio:Se,rate:V,switch:se,transfer:ie,avatar:he,message:me,tag:ee,table:le,card:be,tabs:Pe,timeline:ne,timePicker:J,upload:fe,notification:ge,tree:at,colorPicker:Be,datePicker:Re,rangePicker:He,flex:Ue,wave:Ge,dropdown:Ne,warning:xe,tour:et,floatButtonGroup:ke,variant:_e,inputNumber:ae,treeSelect:Ce}=e,We=c.useCallback((Ae,je)=>{const{prefixCls:rt}=e;if(je)return je;const dt=rt||m.getPrefixCls("");return Ae?`${dt}-${Ae}`:dt},[m.getPrefixCls,e.prefixCls]),it=S||m.iconPrefixCls||gd,yt=n||m.csp;xd(it,yt);const st=Ip(h,m.theme,{prefixCls:We("")});process.env.NODE_ENV!=="production"&&(fs=fs||!!st);const Fe={csp:yt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:p,getPrefixCls:We,iconPrefixCls:it,theme:st,segmented:E,statistic:C,spin:x,calendar:P,carousel:w,cascader:$,collapse:N,typography:F,checkbox:M,descriptions:A,divider:I,drawer:H,skeleton:_,steps:O,image:T,input:te,textArea:ue,layout:z,list:D,mentions:B,modal:G,progress:k,result:U,slider:q,breadcrumb:Y,menu:Q,pagination:Z,empty:oe,badge:de,radio:Se,rate:V,switch:se,transfer:ie,avatar:he,message:me,tag:ee,table:le,card:be,tabs:Pe,timeline:ne,timePicker:J,upload:fe,notification:ge,tree:at,colorPicker:Be,datePicker:Re,rangePicker:He,flex:Ue,wave:Ge,dropdown:Ne,warning:xe,tour:et,floatButtonGroup:ke,variant:_e,inputNumber:ae,treeSelect:Ce};process.env.NODE_ENV!=="production"&&wt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ie=Object.assign({},m);Object.keys(Fe).forEach(Ae=>{Fe[Ae]!==void 0&&(Ie[Ae]=Fe[Ae])}),rh.forEach(Ae=>{const je=e[Ae];je&&(Ie[Ae]=je)}),typeof r<"u"&&(Ie.button=Object.assign({autoInsertSpace:r},Ie.button));const Te=Po(()=>Ie,Ie,(Ae,je)=>{const rt=Object.keys(Ae),dt=Object.keys(je);return rt.length!==dt.length||rt.some($t=>Ae[$t]!==je[$t])}),Ee=c.useMemo(()=>({prefixCls:it,csp:yt}),[it,yt]);let pe=c.createElement(c.Fragment,null,c.createElement(th,{dropdownMatchSelectWidth:v}),t);const De=c.useMemo(()=>{var Ae,je,rt,dt;return Er(((Ae=Mr.Form)===null||Ae===void 0?void 0:Ae.defaultValidateMessages)||{},((rt=(je=Te.locale)===null||je===void 0?void 0:je.Form)===null||rt===void 0?void 0:rt.defaultValidateMessages)||{},((dt=Te.form)===null||dt===void 0?void 0:dt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Te,i==null?void 0:i.validateMessages]);Object.keys(De).length>0&&(pe=c.createElement(Sg.Provider,{value:De},pe)),s&&(pe=c.createElement(ld,{locale:s,_ANT_MARK__:sd},pe)),(it||yt)&&(pe=c.createElement(Xs.Provider,{value:Ee},pe)),l&&(pe=c.createElement(ap,{size:l},pe)),pe=c.createElement(eh,null,pe);const ct=c.useMemo(()=>{const Ae=st||{},{algorithm:je,token:rt,components:dt,cssVar:$t}=Ae,zt=nh(Ae,["algorithm","token","components","cssVar"]),Vt=je&&(!Array.isArray(je)||je.length>0)?Di(je):vd,Tt={};Object.entries(dt||{}).forEach($e=>{let[qe,lt]=$e;const Xe=Object.assign({},lt);"algorithm"in Xe&&(Xe.algorithm===!0?Xe.theme=Vt:(Array.isArray(Xe.algorithm)||typeof Xe.algorithm=="function")&&(Xe.theme=Di(Xe.algorithm)),delete Xe.algorithm),Tt[qe]=Xe});const Le=Object.assign(Object.assign({},ya),rt);return Object.assign(Object.assign({},zt),{theme:Vt,token:Le,components:Tt,override:Object.assign({override:Le},Tt),cssVar:$t})},[st]);return h&&(pe=c.createElement(md.Provider,{value:ct},pe)),Te.warning&&(pe=c.createElement(od.Provider,{value:Te.warning},pe)),y!==void 0&&(pe=c.createElement(rp,{disabled:y},pe)),c.createElement(Qe.Provider,{value:Te},pe)},Vr=e=>{const t=c.useContext(Qe),n=c.useContext(Ys);return c.createElement(sh,Object.assign({parentContext:t,legacyLocale:n},e))};Vr.ConfigContext=Qe;Vr.SizeContext=Fr;Vr.config=ih;Vr.useConfig=op;Object.defineProperty(Vr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Fr)});process.env.NODE_ENV!=="production"&&(Vr.displayName="ConfigProvider");function jd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function lh(e){return jd(e)instanceof ShadowRoot}function So(e){return lh(e)?jd(e):null}function ch(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function uh(e,t){Ye(e,"[@ant-design/icons] ".concat(t))}function ic(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function sc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[ch(n)]=r}return t},{})}function vs(e,t,n){return n?R.createElement(e.tag,L(L({key:t},sc(e.attrs)),n),(e.children||[]).map(function(r,a){return vs(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):R.createElement(e.tag,L({key:t},sc(e.attrs)),(e.children||[]).map(function(r,a){return vs(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Ld(e){return ba(e)[0]}function zd(e){return e?Array.isArray(e)?e:[e]:[]}var dh=`
|
|
93
|
+
`,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 oc=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 Od={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},Pp={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},_p={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},Rd=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=oc(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=oc(u,["theme"]);let v=f;d&&(v=Rd(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Lr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Sd),o=`${Op}-${t||""}`,i=r||yd,[s,l,u]=qm(i,[Ea,e],{salt:o,override:n,getComputedToken:Rd,formatToken:$d,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Od,ignore:Pp,preserve:_p}});return[i,u,t?l:"",s,a]}const Pd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),tl={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}},Np=()=>({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"}}),Na=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Tp=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"}}}),Ip=(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})}},Mp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),rl=e=>({"&:focus-visible":Object.assign({},Mp(e))}),_d=(e,t)=>{const[r,n]=Lr();return Xi({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({},Np()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:br,genComponentStyleHook:Ap,genSubStyleComponent:jp}=$p({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Lr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(ot);return _d(t,e),e??{}},getResetStyles:e=>[{"&":Tp(e)}],getCommonStyle:Ip,getCompUnitless:()=>Od});function Fp(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 Lp=Object.assign({},c),{useId:ic}=Lp,Dp=()=>"",zp=typeof ic>"u"?Dp:ic;function Vp(e,t,r){var n,a;const o=It("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},us),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:us.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=zp();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 To(()=>{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 Bp=["children"],Nd=c.createContext({});function kp(e){var t=e.children,r=Je(e,Bp);return c.createElement(Nd.Provider,{value:r},t)}var Hp=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Wp(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Bt(function(){return a.current}),i=Bt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Hr="none",Ka="appear",qa="enter",Xa="leave",sc="none",fr="prepare",wn="start",$n="active",nl="end",Td="prepared";function lc(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 Gp(e,t){var r={animationend:lc("Animation","AnimationEnd"),transitionend:lc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Up=Gp(Kt(),typeof window<"u"?window:{}),Id={};if(Kt()){var Kp=document.createElement("div");Id=Kp.style}var Ya={};function Md(e){if(Ya[e])return Ya[e];var t=Up[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 Id)return Ya[e]=t[o],Ya[e]}return""}var Ad=Md("animationend"),jd=Md("transitionend"),Fd=!!(Ad&&jd),cc=Ad||"animationend",uc=jd||"transitionend";function dc(e,t){if(!e)return null;if(Te(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const qp=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(uc,e),a.removeEventListener(cc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(uc,e),a.addEventListener(cc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Ld=Kt()?P.useLayoutEffect:P.useEffect;const Xp=function(){var e=c.useRef(null);function t(){_t.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=_t(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 Yp=[fr,wn,$n,nl],Qp=[fr,Td],Dd=!1,Zp=!0;function zd(e){return e===$n||e===nl}const Jp=function(e,t,r){var n=xa(sc),a=U(n,2),o=a[0],i=a[1],s=Xp(),l=U(s,2),u=l[0],d=l[1];function f(){i(fr,!0)}var v=t?Qp:Yp;return Ld(function(){if(o!==sc&&o!==nl){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Dd?i(h,!0):h&&u(function(m){function S(){m.isCanceled()||i(h,!0)}p===!0?S():Promise.resolve(p).then(S)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function eh(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,m=n.onEnterStart,S=n.onLeaveStart,g=n.onAppearActive,y=n.onEnterActive,E=n.onLeaveActive,C=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=xa(),T=U($,2),F=T[0],j=T[1],A=Wp(Hr),M=U(A,2),H=M[0],N=M[1],O=xa(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Q=P.useRef(!1);function Z(){N(Hr),V(null,!0)}var J=Bt(function(me){var xe=H();if(xe!==Hr){var Me=q();if(!(me&&!me.deadline&&me.target!==Me)){var oe=Q.current,re;xe===Ka&&oe?re=C==null?void 0:C(Me,me):xe===qa&&oe?re=x==null?void 0:x(Me,me):xe===Xa&&oe&&(re=R==null?void 0:R(Me,me)),oe&&re!==!1&&Z()}}}),te=qp(J),ae=U(te,1),fe=ae[0],de=function(xe){switch(xe){case Ka:return L(L(L({},fr,v),wn,p),$n,g);case qa:return L(L(L({},fr,b),wn,m),$n,y);case Xa:return L(L(L({},fr,h),wn,S),$n,E);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),we=Jp(k,!e,function(me){if(me===fr){var xe=ve[fr];return xe?xe(q()):Dd}if(se in ve){var Me;V(((Me=ve[se])===null||Me===void 0?void 0:Me.call(ve,q(),null))||null)}return se===$n&&k!==Hr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Td&&Z(),Zp}),B=U(we,2),ce=B[0],se=B[1],Ce=zd(se);Q.current=Ce,Ld(function(){j(t);var me=K.current;K.current=!0;var xe;!me&&t&&s&&(xe=Ka),me&&t&&o&&(xe=qa),(me&&!t&&u||!me&&f&&!t&&u)&&(xe=Xa);var Me=de(xe);xe&&(e||Me[fr])?(N(xe),ce()):N(Hr)},[t]),P.useEffect(function(){(k===Ka&&!s||k===qa&&!o||k===Xa&&!u)&&N(Hr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=c.useRef(!1);P.useEffect(function(){F&&(pe.current=!0),F!==void 0&&k===Hr&&((pe.current||F)&&(w==null||w(F)),pe.current=!0)},[F,k]);var ne=D;return ve[fr]&&se===wn&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function th(e){var t=e;Te(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(Nd),m=p.motion,S=r(a,m),g=P.useRef(),y=P.useRef();function E(){try{return g.current instanceof HTMLElement?g.current:ao(y.current)}catch{return null}}var C=eh(S,s,E,a),x=U(C,4),R=x[0],w=x[1],$=x[2],T=x[3],F=c.useRef(T);T&&(F.current=!0);var j=c.useCallback(function(D){g.current=D,Gs(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Hr)T?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===fr?H="prepare":zd(w)?H="active":w===wn&&(H="start");var N=dc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Y(dc(v,R),L(L({},N,N&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&on(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(Hp,{ref:y},A)});return n.displayName="CSSMotion",n}const sn=th(Fd);var fs="add",vs="keep",ms="remove",mi="removed";function rh(e){var t;return e&&Te(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(rh)}function nh(){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=gs(e),i=gs(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:fs})})),n=f),r.push(z(z({},v),{},{status:vs})),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:fs})})));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=vs)})}),r}var ah=["component","children","onVisibleChanged","onAllRemoved"],oh=["status"],ih=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,r=function(n){qr(o,n);var a=Xr(o);function o(){var i;jt(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(We(i),"state",{keyEntities:[]}),L(We(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 Ft(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=Je(u,ah),p=d||c.Fragment,m={};return ih.forEach(function(S){m[S]=h[S],delete h[S]}),delete h.keys,c.createElement(p,h,l.map(function(S,g){var y=S.status,E=Je(S,oh),C=y===fs||y===vs;return c.createElement(t,Oe({},m,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(R){if(v==null||v(R,{key:E.key}),!R){var w=s.removeKey(E.key);w===0&&b&&b()}}}),function(x,R){return f(z(z({},x),{},{index:g}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=gs(u),v=nh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var m=p.key;return b.key===m});return!(h&&h.status===mi&&b.status===ms)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}sh(Fd);function lh(e){const{children:t}=e,[,r]=Lr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(kp,{motion:n},t):t}const Vd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return It("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Vd.displayName="PropWarning");const ch=process.env.NODE_ENV!=="production"?Vd:()=>null;var uh=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 ps=!1;process.env.NODE_ENV;const dh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Bd;function fh(){return Bd||Co}function vh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const mh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Bd=t),n&&vh(n)&&(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),up(fh(),n))},gh=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:m,iconPrefixCls:S,theme:g,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:T,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:N,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Q,breadcrumb:Z,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:me,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:ge,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Ne,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee}=e,Ke=c.useCallback((ke,He)=>{const{prefixCls:st}=e;if(He)return He;const ht=st||m.getPrefixCls("");return ke?`${ht}-${ke}`:ht},[m.getPrefixCls,e.prefixCls]),rt=S||m.iconPrefixCls||Cd,bt=r||m.csp;_d(rt,bt);const ut=Vp(g,m.theme,{prefixCls:Ke("")});process.env.NODE_ENV!=="production"&&(ps=ps||!!ut);const Be={csp:bt,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:Ke,iconPrefixCls:rt,theme:ut,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:T,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:N,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Q,breadcrumb:Z,menu:J,pagination:te,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:me,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:ge,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Ne,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee};process.env.NODE_ENV!=="production"&&It("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},m);Object.keys(Be).forEach(ke=>{Be[ke]!==void 0&&(Ve[ke]=Be[ke])}),dh.forEach(ke=>{const He=e[ke];He&&(Ve[ke]=He)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const De=To(()=>Ve,Ve,(ke,He)=>{const st=Object.keys(ke),ht=Object.keys(He);return st.length!==ht.length||st.some(Rt=>ke[Rt]!==He[Rt])}),Re=c.useMemo(()=>({prefixCls:rt,csp:bt}),[rt,bt]);let be=c.createElement(c.Fragment,null,c.createElement(ch,{dropdownMatchSelectWidth:v}),t);const Ge=c.useMemo(()=>{var ke,He,st,ht;return xn(((ke=An.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((st=(He=De.locale)===null||He===void 0?void 0:He.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((ht=De.form)===null||ht===void 0?void 0:ht.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(Ge).length>0&&(be=c.createElement(Pg.Provider,{value:Ge},be)),s&&(be=c.createElement(md,{locale:s,_ANT_MARK__:vd},be)),(rt||bt)&&(be=c.createElement(Js.Provider,{value:Re},be)),l&&(be=c.createElement(fp,{size:l},be)),be=c.createElement(lh,null,be);const pt=c.useMemo(()=>{const ke=ut||{},{algorithm:He,token:st,components:ht,cssVar:Rt}=ke,Dt=uh(ke,["algorithm","token","components","cssVar"]),kt=He&&(!Array.isArray(He)||He.length>0)?Hi(He):yd,_={};Object.entries(ht||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=kt:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Hi($e.algorithm)),delete $e.algorithm),_[ie]=$e});const G=Object.assign(Object.assign({},Ea),st);return Object.assign(Object.assign({},Dt),{theme:kt,token:G,components:_,override:Object.assign({override:G},_),cssVar:Rt})},[ut]);return g&&(be=c.createElement(Sd.Provider,{value:pt},be)),De.warning&&(be=c.createElement(dd.Provider,{value:De.warning},be)),y!==void 0&&(be=c.createElement(dp,{disabled:y},be)),c.createElement(ot.Provider,{value:De},be)},Bn=e=>{const t=c.useContext(ot),r=c.useContext(el);return c.createElement(gh,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=ot;Bn.SizeContext=Fn;Bn.config=mh;Bn.useConfig=vp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Fn)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function kd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ph(e){return kd(e)instanceof ShadowRoot}function xo(e){return ph(e)?kd(e):null}function hh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function bh(e,t){at(e,"[@ant-design/icons] ".concat(t))}function fc(e){return Te(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Te(e.icon)==="object"||typeof e.icon=="function")}function vc(){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[hh(r)]=n}return t},{})}function hs(e,t,r){return r?P.createElement(e.tag,z(z({key:t},vc(e.attrs)),r),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,z({key:t},vc(e.attrs)),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Hd(e){return Ca(e)[0]}function Wd(e){return e?Array.isArray(e)?e:[e]:[]}var yh=`
|
|
65
94
|
.anticon {
|
|
66
95
|
display: inline-flex;
|
|
67
96
|
align-items: center;
|
|
@@ -116,63 +145,63 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
116
145
|
transform: rotate(360deg);
|
|
117
146
|
}
|
|
118
147
|
}
|
|
119
|
-
`,fh=function(t){var n=R.useContext(Xs),r=n.csp,a=n.prefixCls,o=dh;a&&(o=o.replace(/anticon/g,a)),R.useEffect(function(){var i=t.current,s=So(i);_n(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},vh=["icon","className","onClick","style","primaryColor","secondaryColor"],sa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function mh(e){var t=e.primaryColor,n=e.secondaryColor;sa.primaryColor=t,sa.secondaryColor=n||Ld(t),sa.calculated=!!n}function gh(){return L({},sa)}var Br=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Ve(t,vh),u=c.useRef(),d=sa;if(i&&(d={primaryColor:i,secondaryColor:s||Ld(i)}),fh(u),uh(ic(n),"icon should be icon definiton, but got ".concat(n)),!ic(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=L(L({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),vs(f.icon,"svg-".concat(f.name),L(L({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};Br.displayName="IconReact";Br.getTwoToneColors=gh;Br.setTwoToneColors=mh;function Dd(e){var t=zd(e),n=W(t,2),r=n[0],a=n[1];return Br.setTwoToneColors({primaryColor:r,secondaryColor:a})}function ph(){var e=Br.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var hh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dd(ho.primary);var Dt=c.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Ve(e,hh),d=c.useContext(Xs),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,p=K(b,v,j(j({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!a||r.name==="loading"),n),g=i;g===void 0&&s&&(g=-1);var m=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=zd(l),h=W(S,2),y=h[0],E=h[1];return c.createElement("span",ye({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:s,className:p}),c.createElement(Br,{icon:r,primaryColor:y,secondaryColor:E,style:m}))});Dt.displayName="AntdIcon";Dt.getTwoToneColor=ph;Dt.setTwoToneColor=Dd;var bh={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"},yh=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:bh}))},Vd=c.forwardRef(yh);process.env.NODE_ENV!=="production"&&(Vd.displayName="CloseCircleFilled");var Sh={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"},Ch=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:Sh}))},Bd=c.forwardRef(Ch);process.env.NODE_ENV!=="production"&&(Bd.displayName="CloseOutlined");function Hd(e){return e&&R.isValidElement(e)&&e.type===R.Fragment}const Eh=(e,t,n)=>R.isValidElement(e)?R.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Fo(e,t){return Eh(e,e,t)}const el=e=>{const[,,,,t]=Mn();return t?`${e}-css-var`:""};var re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=re.F1&&n<=re.F12)return!1;switch(n){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=re.ZERO&&t<=re.NINE||t>=re.NUM_ZERO&&t<=re.NUM_MULTIPLY||t>=re.A&&t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xh={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"},wh=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:xh}))},tl=c.forwardRef(wh);process.env.NODE_ENV!=="production"&&(tl.displayName="LoadingOutlined");const nl=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(nl.displayName="zIndexContext");const Zn=100,$h=10,Oh=Zn*$h,kd={Modal:Zn,Drawer:Zn,Popover:Zn,Popconfirm:Zn,Tooltip:Zn,Tour:Zn},Rh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ph(e){return e in kd}function Nh(e,t){const[,n]=Mn(),r=R.useContext(nl),a=Ph(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+kd[e]:i+=Rh[e],o=[r===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=wt(e),s=n.zIndexPopupBase+Oh,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 Lt(){Lt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(_,O,T){_[O]=T.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(_,O,T){return Object.defineProperty(_,O,{value:T,enumerable:!0,configurable:!0,writable:!0}),_[O]}try{u({},"")}catch{u=function(T,z,D){return T[z]=D}}function d(_,O,T,z){var D=O&&O.prototype instanceof S?O:S,B=Object.create(D.prototype),G=new I(z||[]);return a(B,"_invoke",{value:N(_,T,G)}),B}function f(_,O,T){try{return{type:"normal",arg:_.call(O,T)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",p="executing",g="completed",m={};function S(){}function h(){}function y(){}var E={};u(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==n&&r.call(x,i)&&(E=x);var P=y.prototype=S.prototype=Object.create(E);function w(_){["next","throw","return"].forEach(function(O){u(_,O,function(T){return this._invoke(O,T)})})}function $(_,O){function T(D,B,G,k){var U=f(_[D],_,B);if(U.type!=="throw"){var q=U.arg,Y=q.value;return Y&&we(Y)=="object"&&r.call(Y,"__await")?O.resolve(Y.__await).then(function(Q){T("next",Q,G,k)},function(Q){T("throw",Q,G,k)}):O.resolve(Y).then(function(Q){q.value=Q,G(q)},function(Q){return T("throw",Q,G,k)})}k(U.arg)}var z;a(this,"_invoke",{value:function(B,G){function k(){return new O(function(U,q){T(B,G,U,q)})}return z=z?z.then(k,k):k()}})}function N(_,O,T){var z=v;return function(D,B){if(z===p)throw Error("Generator is already running");if(z===g){if(D==="throw")throw B;return{value:e,done:!0}}for(T.method=D,T.arg=B;;){var G=T.delegate;if(G){var k=F(G,T);if(k){if(k===m)continue;return k}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(z===v)throw z=g,T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);z=p;var U=f(_,O,T);if(U.type==="normal"){if(z=T.done?g:b,U.arg===m)continue;return{value:U.arg,done:T.done}}U.type==="throw"&&(z=g,T.method="throw",T.arg=U.arg)}}}function F(_,O){var T=O.method,z=_.iterator[T];if(z===e)return O.delegate=null,T==="throw"&&_.iterator.return&&(O.method="return",O.arg=e,F(_,O),O.method==="throw")||T!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+T+"' method")),m;var D=f(z,_.iterator,O.arg);if(D.type==="throw")return O.method="throw",O.arg=D.arg,O.delegate=null,m;var B=D.arg;return B?B.done?(O[_.resultName]=B.value,O.next=_.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,m):B:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,m)}function M(_){var O={tryLoc:_[0]};1 in _&&(O.catchLoc=_[1]),2 in _&&(O.finallyLoc=_[2],O.afterLoc=_[3]),this.tryEntries.push(O)}function A(_){var O=_.completion||{};O.type="normal",delete O.arg,_.completion=O}function I(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(M,this),this.reset(!0)}function H(_){if(_||_===""){var O=_[i];if(O)return O.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var T=-1,z=function D(){for(;++T<_.length;)if(r.call(_,T))return D.value=_[T],D.done=!1,D;return D.value=e,D.done=!0,D};return z.next=z}}throw new TypeError(we(_)+" is not iterable")}return h.prototype=y,a(P,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:h,configurable:!0}),h.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(_){var O=typeof _=="function"&&_.constructor;return!!O&&(O===h||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,y):(_.__proto__=y,u(_,l,"GeneratorFunction")),_.prototype=Object.create(P),_},t.awrap=function(_){return{__await:_}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(_,O,T,z,D){D===void 0&&(D=Promise);var B=new $(d(_,O,T,z),D);return t.isGeneratorFunction(O)?B:B.next().then(function(G){return G.done?G.value:B.next()})},w(P),u(P,l,"Generator"),u(P,i,function(){return this}),u(P,"toString",function(){return"[object Generator]"}),t.keys=function(_){var O=Object(_),T=[];for(var z in O)T.push(z);return T.reverse(),function D(){for(;T.length;){var B=T.pop();if(B in O)return D.value=B,D.done=!1,D}return D.done=!0,D}},t.values=H,I.prototype={constructor:I,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 T in this)T.charAt(0)==="t"&&r.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=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 T=this;function z(q,Y){return G.type="throw",G.arg=O,T.next=q,Y&&(T.method="next",T.arg=e),!!Y}for(var D=this.tryEntries.length-1;D>=0;--D){var B=this.tryEntries[D],G=B.completion;if(B.tryLoc==="root")return z("end");if(B.tryLoc<=this.prev){var k=r.call(B,"catchLoc"),U=r.call(B,"finallyLoc");if(k&&U){if(this.prev<B.catchLoc)return z(B.catchLoc,!0);if(this.prev<B.finallyLoc)return z(B.finallyLoc)}else if(k){if(this.prev<B.catchLoc)return z(B.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return z(B.finallyLoc)}}}},abrupt:function(O,T){for(var z=this.tryEntries.length-1;z>=0;--z){var D=this.tryEntries[z];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var B=D;break}}B&&(O==="break"||O==="continue")&&B.tryLoc<=T&&T<=B.finallyLoc&&(B=null);var G=B?B.completion:{};return G.type=O,G.arg=T,B?(this.method="next",this.next=B.finallyLoc,m):this.complete(G)},complete:function(O,T){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"&&T&&(this.next=T),m},finish:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var z=this.tryEntries[T];if(z.finallyLoc===O)return this.complete(z.completion,z.afterLoc),A(z),m}},catch:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var z=this.tryEntries[T];if(z.tryLoc===O){var D=z.completion;if(D.type==="throw"){var B=D.arg;A(z)}return B}}throw Error("illegal catch attempt")},delegateYield:function(O,T,z){return this.delegate={iterator:H(O),resultName:T,nextLoc:z},this.method==="next"&&(this.arg=e),m}},t}function lc(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,a)}function or(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(l){lc(o,r,a,i,s,"next",l)}function s(l){lc(o,r,a,i,s,"throw",l)}i(void 0)})}}var Pa=L({},Cv),_h=Pa.version,Th=Pa.render,Ih=Pa.unmountComponentAtNode,jo;try{var Mh=Number((_h||"").split(".")[0]);Mh>=18&&(jo=Pa.createRoot)}catch{}function cc(e){var t=Pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&we(t)==="object"&&(t.usingClientEntryPoint=e)}var Co="__rc_react_root__";function Ah(e,t){cc(!0);var n=t[Co]||jo(t);cc(!1),n.render(e),t[Co]=n}function Fh(e,t){Th(e,t)}function jh(e,t){if(jo){Ah(e,t);return}Fh(e,t)}function Lh(e){return ms.apply(this,arguments)}function ms(){return ms=or(Lt().mark(function e(t){return Lt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Co])===null||a===void 0||a.unmount(),delete t[Co]}));case 1:case"end":return r.stop()}},e)})),ms.apply(this,arguments)}function zh(e){Ih(e)}function Dh(e){return gs.apply(this,arguments)}function gs(){return gs=or(Lt().mark(function e(t){return Lt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(jo===void 0){r.next=2;break}return r.abrupt("return",Lh(t));case 2:zh(t);case 3:case"end":return r.stop()}},e)})),gs.apply(this,arguments)}const Wd=(e,t,n)=>n!==void 0?n:`${e}-${t}`,rl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Vh=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Bh=Op("Wave",e=>[Vh(e)]),Gd=`${bo}-wave-target`;function Hh(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 fi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Hh(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function kh(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return fi(t)?t:fi(n)?n:fi(r)?r:null}function vi(e){return Number.isNaN(e)?0:e}const Wh=e=>{const{className:t,target:n,component:r}=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,p]=c.useState(0),[g,m]=c.useState(0),[S,h]=c.useState(!1),y={left:u,top:f,width:b,height:g,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(n);i(kh(n));const P=x.position==="static",{borderLeftWidth:w,borderTopWidth:$}=x;d(P?n.offsetLeft:vi(-parseFloat(w))),v(P?n.offsetTop:vi(-parseFloat($))),p(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:M,borderBottomRightRadius:A}=x;l([N,F,A,M].map(I=>vi(parseFloat(I))))}if(c.useEffect(()=>{if(n){const x=Ct(()=>{E(),h(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(E),P.observe(n)),()=>{Ct.cancel(x),P==null||P.disconnect()}}},[]),!S)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Gd));return c.createElement(ar,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,P)=>{var w;if(P.deadline||P.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Dh($).then(()=>{$==null||$.remove()})}return!1}},(x,P)=>{let{className:w}=x;return c.createElement("div",{ref:En(a,P),className:K(t,w,{"wave-quick":C}),style:y})})},Gh=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),jh(c.createElement(Wh,Object.assign({},t,{target:e})),a)},Uh=(e,t,n)=>{const{wave:r}=c.useContext(Qe),[,a,o]=Mn(),i=Mt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Gd}`)||d,{showEffect:v}=r||{};(v||Gh)(f,{className:t,token:a,component:n,event:u,hashId:o})}),s=c.useRef();return u=>{Ct.cancel(s.current),s.current=Ct(()=>{i(u)})}},Ud=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=R.useContext(Qe),o=R.useRef(null),i=a("wave"),[,s]=Bh(i),l=Uh(o,K(i,s),r);if(R.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!rl(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)}},[n]),!R.isValidElement(t))return t??null;const u=rr(t)?En(t.ref,o):o;return Fo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Ud.displayName="Wave");const Hr=e=>{const t=R.useContext(Fr);return R.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Kh=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},qh=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Xh=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}}}},Kd=gn("Space",e=>{const t=_t(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qh(t),Xh(t),Kh(t)]},()=>({}),{resetStyle:!1});var qd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Lo=c.createContext(null),Xd=(e,t)=>{const n=c.useContext(Lo),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return K(`${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,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Yh=e=>{let{children:t}=e;return c.createElement(Lo.Provider,{value:null},t)},Qh=e=>{var{children:t}=e,n=qd(e,["children"]);return c.createElement(Lo.Provider,{value:n},t)},Zh=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Qe),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=qd(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hr(y=>r??y),v=t("space-compact",i),[b,p]=Kd(v),g=K(v,p,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),m=c.useContext(Lo),S=Cn(u),h=c.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return c.createElement(Qh,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:E===S.length-1&&(!m||(m==null?void 0:m.isLastItem))},y)}),[r,S,m]);return S.length===0?null:b(c.createElement("div",Object.assign({className:g},d),h))};var Jh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Yd=c.createContext(void 0),e0=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Qe),{prefixCls:r,size:a,className:o}=e,i=Jh(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Mn();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=wt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=K(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,l);return c.createElement(Yd.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},uc=/^[\u4e00-\u9fa5]{2}$/,ps=uc.test.bind(uc);function dc(e){return typeof e=="string"}function qa(e){return e==="text"||e==="link"}function t0(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&dc(e.type)&&ps(e.props.children)?Fo(e,{children:e.props.children.split("").join(n)}):dc(e)?ps(e)?R.createElement("span",null,e.split("").join(n)):R.createElement("span",null,e):Hd(e)?R.createElement("span",null,e):e}function n0(e,t){let n=!1;const r=[];return R.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${a}`}else r.push(a);n=i}),R.Children.map(r,a=>t0(a,t))}const Qd=R.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=K(`${o}-icon`,n);return R.createElement("span",{ref:t,className:i,style:r},a)}),fc=R.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=K(`${n}-loading-icon`,r);return R.createElement(Qd,{prefixCls:n,className:i,style:a,ref:t},R.createElement(tl,{className:o}))}),mi=()=>({width:0,opacity:0,transform:"scale(0)"}),gi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),r0=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?R.createElement(fc,{prefixCls:t,className:a,style:o}):R.createElement(ar,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:mi,onAppearActive:gi,onEnterStart:mi,onEnterActive:gi,onLeaveStart:gi,onLeaveActive:mi},(s,l)=>{let{className:u,style:d}=s;return R.createElement(fc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},vc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),a0=e=>{const{componentCls:t,fontSize:n,lineWidth:r,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(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},vc(`${t}-primary`,a),vc(`${t}-danger`,o)]}},Zd=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return _t(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Jd=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:lo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:lo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:lo(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)}},o0=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${X(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({},Zs(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},In=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),i0=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()}),l0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ca=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},In(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),al=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},l0(e))}),ef=e=>Object.assign({},al(e)),Eo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),tf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ef(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),In(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ca(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},In(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ca(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),al(e))}),c0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ef(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),In(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ca(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},In(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ca(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),al(e))}),u0=e=>Object.assign(Object.assign({},tf(e)),{borderStyle:"dashed"}),d0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},In(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Eo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},In(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Eo(e))}),f0=e=>Object.assign(Object.assign(Object.assign({},In(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Eo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Eo(e)),In(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),v0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:tf(e),[`${t}-primary`]:c0(e),[`${t}-dashed`]:u0(e),[`${t}-link`]:d0(e),[`${t}-text`]:f0(e),[`${t}-ghost`]:Ca(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ol=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${X(u)} ${X(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:i0(e)},{[`${n}${n}-round${t}`]:s0(e)}]},m0=e=>{const t=_t(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ol(t,e.componentCls)},g0=e=>{const t=_t(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 ol(t,`${e.componentCls}-sm`)},p0=e=>{const t=_t(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ol(t,`${e.componentCls}-lg`)},h0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},b0=gn("Button",e=>{const t=Zd(e);return[o0(t),m0(t),g0(t),p0(t),h0(t),v0(t),a0(t)]},Jd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function y0(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,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}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function S0(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function nf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},y0(e,r,t)),S0(n,r,t))}}function C0(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 E0(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 x0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},C0(e,t)),E0(e.componentCls,t))}}const w0=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${X(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${X(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},$0=Rp(["Button","compact"],e=>{const t=Zd(e);return[nf(t),x0(t),w0(t)]},Jd);var O0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function R0(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 P0=R.forwardRef((e,t)=>{var n,r,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:p,children:g,icon:m,iconPosition:S="start",ghost:h=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:P}=e,w=O0(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:M}=R.useContext(Qe),A=(n=P??(M==null?void 0:M.autoInsertSpace))!==null&&n!==void 0?n:!0,I=N("btn",i),[H,_,O]=b0(I),T=R.useContext(Ar),z=v??T,D=R.useContext(Yd),B=R.useMemo(()=>R0(o),[o]),[G,k]=R.useState(B.loading),[U,q]=R.useState(!1),Q=En(t,R.createRef()),Z=R.Children.count(g)===1&&!m&&!qa($);R.useEffect(()=>{let J=null;B.delay>0?J=setTimeout(()=>{J=null,k(!0)},B.delay):k(B.loading);function fe(){J&&(clearTimeout(J),J=null)}return fe},[B]),R.useEffect(()=>{if(!Q||!Q.current||!A)return;const J=Q.current.textContent;Z&&ps(J)?U||q(!0):U&&q(!1)},[Q]);const te=J=>{const{onClick:fe}=e;if(G||z){J.preventDefault();return}fe==null||fe(J)};if(process.env.NODE_ENV!=="production"){const J=wt("Button");process.env.NODE_ENV!=="production"&&J(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&J(!(h&&qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ue,compactItemClassnames:oe}=Xd(I,F),de={large:"lg",small:"sm",middle:void 0},Se=Hr(J=>{var fe,ge;return(ge=(fe=d??ue)!==null&&fe!==void 0?fe:D)!==null&&ge!==void 0?ge:J}),V=Se&&de[Se]||"",se=G?"loading":m,ie=mn(w,["navigate"]),he=K(I,_,O,{[`${I}-${u}`]:u!=="default"&&u,[`${I}-${$}`]:$,[`${I}-${V}`]:V,[`${I}-icon-only`]:!g&&g!==0&&!!se,[`${I}-background-ghost`]:h&&!qa($),[`${I}-loading`]:G,[`${I}-two-chinese-chars`]:U&&A&&!G,[`${I}-block`]:y,[`${I}-dangerous`]:l,[`${I}-rtl`]:F==="rtl",[`${I}-icon-end`]:S==="end"},oe,b,p,M==null?void 0:M.className),me=Object.assign(Object.assign({},M==null?void 0:M.style),x),ee=K(C==null?void 0:C.icon,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.icon),le=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.icon)||{}),be=m&&!G?R.createElement(Qd,{prefixCls:I,className:ee,style:le},m):R.createElement(r0,{existIcon:!!m,prefixCls:I,loading:G}),Pe=g||g===0?n0(g,Z&&A):null;if(ie.href!==void 0)return H(R.createElement("a",Object.assign({},ie,{className:K(he,{[`${I}-disabled`]:z}),href:z?void 0:ie.href,style:me,onClick:te,ref:Q,tabIndex:z?-1:0}),be,Pe));let ne=R.createElement("button",Object.assign({},w,{type:E,className:he,style:me,onClick:te,disabled:z,ref:Q}),be,Pe,!!oe&&R.createElement($0,{key:"compact",prefixCls:I}));return qa($)||(ne=R.createElement(Ud,{component:"Button",disabled:G},ne)),H(ne)}),zo=P0;zo.Group=e0;zo.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(zo.displayName="Button");var rf=c.createContext(null),mc=[];function N0(e,t){var n=c.useState(function(){if(!jt())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&p.setAttribute("data-debug",t),p}),r=W(n,1),a=r[0],o=c.useRef(!1),i=c.useContext(rf),s=c.useState(mc),l=W(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(p){d(function(g){var m=[p].concat(ce(g));return m})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var p;(p=a.parentElement)===null||p===void 0||p.removeChild(a),o.current=!1}return ut(function(){return e?i?i(v):v():b(),b},[e]),ut(function(){u.length&&(u.forEach(function(p){return p()}),d(mc))},[u]),[a,f]}function _0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.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,";"):"";_n(`
|
|
148
|
+
`,Sh=function(t){var r=P.useContext(Js),n=r.csp,a=r.prefixCls,o=yh;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=xo(i);Ar(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Ch=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Eh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Hd(t),ua.calculated=!!r}function xh(){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=Je(t,Ch),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Hd(i)}),Sh(u),bh(fc(r),"icon should be icon definiton, but got ".concat(r)),!fc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),hs(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=xh;kn.setTwoToneColors=Eh;function Gd(e){var t=Wd(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function wh(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gd(So.primary);var Xt=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=Je(e,$h),d=c.useContext(Js),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Y(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 m=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=Wd(l),g=U(S,2),y=g[0],E=g[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:E,style:m}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=wh;Xt.setTwoToneColor=Gd;var Oh={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"},Rh=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Oh}))},Ud=c.forwardRef(Rh);process.env.NODE_ENV!=="production"&&(Ud.displayName="CloseCircleFilled");var Ph={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"},_h=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ph}))},Kd=c.forwardRef(_h);process.env.NODE_ENV!=="production"&&(Kd.displayName="CloseOutlined");function qd(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const Nh=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Do(e,t){return Nh(e,e,t)}const al=e=>{const[,,,,t]=Lr();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}}},Th={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"},Ih=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Th}))},ol=c.forwardRef(Ih);process.env.NODE_ENV!=="production"&&(ol.displayName="LoadingOutlined");const il=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(il.displayName="zIndexContext");const en=100,Mh=10,Ah=en*Mh,Xd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},jh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Fh(e){return e in Xd}function Lh(e,t){const[,r]=Lr(),n=P.useContext(il),a=Fh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Xd[e]:i+=jh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=It(e),s=r.zIndexPopupBase+Ah,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 qt(){qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,O,I){N[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(N,O,I){return Object.defineProperty(N,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),N[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(N,O,I,D){var V=O&&O.prototype instanceof S?O:S,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:T(N,I,K)}),k}function f(N,O,I){try{return{type:"normal",arg:N.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",m={};function S(){}function g(){}function y(){}var E={};u(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==r&&n.call(x,i)&&(E=x);var R=y.prototype=S.prototype=Object.create(E);function w(N){["next","throw","return"].forEach(function(O){u(N,O,function(I){return this._invoke(O,I)})})}function $(N,O){function I(V,k,K,W){var q=f(N[V],N,k);if(q.type!=="throw"){var Q=q.arg,Z=Q.value;return Z&&Te(Z)=="object"&&n.call(Z,"__await")?O.resolve(Z.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Z).then(function(J){Q.value=J,K(Q)},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,Q){I(k,K,q,Q)})}return D=D?D.then(W,W):W()}})}function T(N,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===m)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(N,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===m)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(N,O){var I=O.method,D=N.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&N.iterator.return&&(O.method="return",O.arg=e,F(N,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),m;var V=f(D,N.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,m;var k=V.arg;return k?k.done?(O[N.resultName]=k.value,O.next=N.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,m):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,m)}function j(N){var O={tryLoc:N[0]};1 in N&&(O.catchLoc=N[1]),2 in N&&(O.finallyLoc=N[2],O.afterLoc=N[3]),this.tryEntries.push(O)}function A(N){var O=N.completion||{};O.type="normal",delete O.arg,N.completion=O}function M(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(j,this),this.reset(!0)}function H(N){if(N||N===""){var O=N[i];if(O)return O.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var I=-1,D=function V(){for(;++I<N.length;)if(n.call(N,I))return V.value=N[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Te(N)+" is not iterable")}return g.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:g,configurable:!0}),g.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var O=typeof N=="function"&&N.constructor;return!!O&&(O===g||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,u(N,l,"GeneratorFunction")),N.prototype=Object.create(R),N},t.awrap=function(N){return{__await:N}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(N,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(N,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(N){var O=Object(N),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(Q,Z){return K.type="throw",K.arg=O,I.next=Q,Z&&(I.method="next",I.arg=e),!!Z}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,m):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),m},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),m}},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),m}},t}function mc(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 ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){mc(o,n,a,i,s,"next",l)}function s(l){mc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Ta=z({},Rv),Dh=Ta.version,zh=Ta.render,Vh=Ta.unmountComponentAtNode,zo;try{var Bh=Number((Dh||"").split(".")[0]);Bh>=18&&(zo=Ta.createRoot)}catch{}function gc(e){var t=Ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Te(t)==="object"&&(t.usingClientEntryPoint=e)}var wo="__rc_react_root__";function kh(e,t){gc(!0);var r=t[wo]||zo(t);gc(!1),r.render(e),t[wo]=r}function Hh(e,t){zh(e,t)}function Wh(e,t){if(zo){kh(e,t);return}Hh(e,t)}function Gh(e){return bs.apply(this,arguments)}function bs(){return bs=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[wo])===null||a===void 0||a.unmount(),delete t[wo]}));case 1:case"end":return n.stop()}},e)})),bs.apply(this,arguments)}function Uh(e){Vh(e)}function Kh(e){return ys.apply(this,arguments)}function ys(){return ys=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(zo===void 0){n.next=2;break}return n.abrupt("return",Gh(t));case 2:Uh(t);case 3:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}const Yd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,sl=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},qh=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(",")}}}}},Xh=Ap("Wave",e=>[qh(e)]),Qd=`${Co}-wave-target`;function Yh(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 gi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Yh(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Qh(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return gi(t)?t:gi(r)?r:gi(n)?n:null}function pi(e){return Number.isNaN(e)?0:e}const Zh=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,m]=c.useState(0),[S,g]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(r);i(Qh(r));const R=x.position==="static",{borderLeftWidth:w,borderTopWidth:$}=x;d(R?r.offsetLeft:pi(-parseFloat(w))),v(R?r.offsetTop:pi(-parseFloat($))),h(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=x;l([T,F,A,j].map(M=>pi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const x=_t(()=>{E(),g(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(E),R.observe(r)),()=>{_t.cancel(x),R==null||R.disconnect()}}},[]),!S)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Qd));return c.createElement(sn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Kh($).then(()=>{$==null||$.remove()})}return!1}},(x,R)=>{let{className:w}=x;return c.createElement("div",{ref:Or(a,R),className:Y(t,w,{"wave-quick":C}),style:y})})},Jh=(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),Wh(c.createElement(Zh,Object.assign({},t,{target:e})),a)},e0=(e,t,r)=>{const{wave:n}=c.useContext(ot),[,a,o]=Lr(),i=Bt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Qd}`)||d,{showEffect:v}=n||{};(v||Jh)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{_t.cancel(s.current),s.current=_t(()=>{i(u)})}},Zd=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(ot),o=P.useRef(null),i=a("wave"),[,s]=Xh(i),l=e0(o,Y(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!sl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const u=on(t)?Or(t.ref,o):o;return Do(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Zd.displayName="Wave");const Hn=e=>{const t=P.useContext(Fn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},t0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},r0=e=>{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},n0=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}}}},Jd=br("Space",e=>{const t=Lt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[r0(t),n0(t),t0(t)]},()=>({}),{resetStyle:!1});var ef=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 Vo=c.createContext(null),tf=(e,t)=>{const r=c.useContext(Vo),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Y(`${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}},a0=e=>{let{children:t}=e;return c.createElement(Vo.Provider,{value:null},t)},o0=e=>{var{children:t}=e,r=ef(e,["children"]);return c.createElement(Vo.Provider,{value:r},t)},i0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=ef(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=Jd(v),p=Y(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),m=c.useContext(Vo),S=$r(u),g=c.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return c.createElement(o0,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:E===S.length-1&&(!m||(m==null?void 0:m.isLastItem))},y)}),[n,S,m]);return S.length===0?null:b(c.createElement("div",Object.assign({className:p},d),g))};var s0=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 rf=c.createContext(void 0),l0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{prefixCls:n,size:a,className:o}=e,i=s0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=It("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Y(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(rf.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},pc=/^[\u4e00-\u9fa5]{2}$/,Ss=pc.test.bind(pc);function hc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function c0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hc(e.type)&&Ss(e.props.children)?Do(e,{children:e.props.children.split("").join(r)}):hc(e)?Ss(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):qd(e)?P.createElement("span",null,e):e}function u0(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>c0(a,t))}const nf=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Y(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),bc=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Y(`${r}-loading-icon`,n);return P.createElement(nf,{prefixCls:r,className:i,style:a,ref:t},P.createElement(ol,{className:o}))}),hi=()=>({width:0,opacity:0,transform:"scale(0)"}),bi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),d0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(bc,{prefixCls:t,className:a,style:o}):P.createElement(sn,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:hi,onAppearActive:bi,onEnterStart:hi,onEnterActive:bi,onLeaveStart:bi,onLeaveActive:hi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(bc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},yc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),f0=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}},yc(`${t}-primary`,a),yc(`${t}-danger`,o)]}},af=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Lt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},of=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:fo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:fo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:fo(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)}},v0=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({},rl(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"}}}},Fr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),m0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),g0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),p0=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"},Fr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ll=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},p0(e))}),sf=e=>Object.assign({},ll(e)),$o=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),lf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fr(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},Fr(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)),ll(e))}),h0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fr(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},Fr(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})),ll(e))}),b0=e=>Object.assign(Object.assign({},lf(e)),{borderStyle:"dashed"}),y0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$o(e))}),S0=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$o(e)),Fr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),C0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:lf(e),[`${t}-primary`]:h0(e),[`${t}-dashed`]:b0(e),[`${t}-link`]:y0(e),[`${t}-text`]:S0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},cl=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}`]:m0(e)},{[`${r}${r}-round${t}`]:g0(e)}]},E0=e=>{const t=Lt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return cl(t,e.componentCls)},x0=e=>{const t=Lt(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 cl(t,`${e.componentCls}-sm`)},w0=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cl(t,`${e.componentCls}-lg`)},$0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},O0=br("Button",e=>{const t=af(e);return[v0(t),E0(t),x0(t),w0(t),$0(t),C0(t),f0(t)]},of,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function R0(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 P0(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 cf(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({},R0(e,n,t)),P0(r,n,t))}}function _0(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 N0(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 T0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_0(e,t)),N0(e.componentCls,t))}}const I0=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:'""'}}}}}}},M0=jp(["Button","compact"],e=>{const t=af(e);return[cf(t),T0(t),I0(t)]},of);var A0=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 j0(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 F0=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:m,iconPosition:S="start",ghost:g=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:R}=e,w=A0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:T,direction:F,button:j}=P.useContext(ot),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=T("btn",i),[H,N,O]=O0(M),I=P.useContext(jn),D=v??I,V=P.useContext(rf),k=P.useMemo(()=>j0(o),[o]),[K,W]=P.useState(k.loading),[q,Q]=P.useState(!1),J=Or(t,P.createRef()),te=P.Children.count(p)===1&&!m&&!Qa($);P.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function ge(){re&&(clearTimeout(re),re=null)}return ge},[k]),P.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Ss(re)?q||Q(!0):q&&Q(!1)},[J]);const ae=re=>{const{onClick:ge}=e;if(K||D){re.preventDefault();return}ge==null||ge(re)};if(process.env.NODE_ENV!=="production"){const re=It("Button");process.env.NODE_ENV!=="production"&&re(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(g&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=tf(M,F),ve={large:"lg",small:"sm",middle:void 0},we=Hn(re=>{var ge,he;return(he=(ge=d??fe)!==null&&ge!==void 0?ge:V)!==null&&he!==void 0?he:re}),B=we&&ve[we]||"",ce=K?"loading":m,se=hr(w,["navigate"]),Ce=Y(M,N,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:g&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:S==="end"},de,b,h,j==null?void 0:j.className),pe=Object.assign(Object.assign({},j==null?void 0:j.style),x),ne=Y(C==null?void 0:C.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),me=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)||{}),xe=m&&!K?P.createElement(nf,{prefixCls:M,className:ne,style:me},m):P.createElement(d0,{existIcon:!!m,prefixCls:M,loading:K}),Me=p||p===0?u0(p,te&&A):null;if(se.href!==void 0)return H(P.createElement("a",Object.assign({},se,{className:Y(Ce,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:pe,onClick:ae,ref:J,tabIndex:D?-1:0}),xe,Me));let oe=P.createElement("button",Object.assign({},w,{type:E,className:Ce,style:pe,onClick:ae,disabled:D,ref:J}),xe,Me,!!de&&P.createElement(M0,{key:"compact",prefixCls:M}));return Qa($)||(oe=P.createElement(Zd,{component:"Button",disabled:K},oe)),H(oe)}),Bo=F0;Bo.Group=l0;Bo.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Bo.displayName="Button");var uf=c.createContext(null),Sc=[];function L0(e,t){var r=c.useState(function(){if(!Kt())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(uf),s=c.useState(Sc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var m=[h].concat(ye(p));return m})});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 yt(function(){return e?i?i(v):v():b(),b},[e]),yt(function(){u.length&&(u.forEach(function(h){return h()}),d(Sc))},[u]),[a,f]}function D0(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,";"):"";Ar(`
|
|
120
149
|
#`.concat(t,`::-webkit-scrollbar {
|
|
121
150
|
`).concat(d,`
|
|
122
151
|
`).concat(f,`
|
|
123
|
-
}`),t)}catch(
|
|
152
|
+
}`),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 z0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:D0(e)}function V0(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B0="rc-util-locker-".concat(Date.now()),Cc=0;function k0(e){var t=!!e,r=c.useState(function(){return Cc+=1,"".concat(B0,"_").concat(Cc)}),n=U(r,1),a=n[0];yt(function(){if(t){var o=z0(document.body).width,i=V0();Ar(`
|
|
124
153
|
html body {
|
|
125
154
|
overflow-y: hidden;
|
|
126
155
|
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
127
|
-
}`),a)}else ma(a);return function(){ma(a)}},[t,a])}var F0=!1;function j0(e){return F0}var pc=function(t){return t===!1?!1:!jt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},il=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(n),d=W(u,2),f=d[0],v=d[1],b=f||n;process.env.NODE_ENV!=="production"&&Ye(jt()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||n)&&v(n)},[n,s]);var p=c.useState(function(){return pc(a)}),g=W(p,2),m=g[0],S=g[1];c.useEffect(function(){var M=pc(a);S(M??null)});var h=N0(b&&!m,o),y=W(h,2),E=y[0],C=y[1],x=m??E;A0(r&&n&&jt()&&(x===E||x===document.body));var P=null;if(l&&rr(l)&&t){var w=l;P=w.ref}var $=Oa(P,t);if(!b||!jt()||m===void 0)return null;var N=x===!1||j0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(rf.Provider,{value:C},N?F:Rr.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(il.displayName="Portal");function L0(){var e=L({},c);return e.useId}var hc=0,bc=L0();const z0=bc?function(t){var n=bc();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=c.useState("ssr-id"),r=W(n,2),a=r[0],o=r[1];return c.useEffect(function(){var i=hc;hc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var tr="RC_FORM_INTERNAL_HOOKS",nt=function(){Ye(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jr=c.createContext({getFieldValue:nt,getFieldsValue:nt,getFieldError:nt,getFieldWarning:nt,getFieldsError:nt,isFieldsTouched:nt,isFieldTouched:nt,isFieldValidating:nt,isFieldsValidating:nt,resetFields:nt,setFields:nt,setFieldValue:nt,setFieldsValue:nt,validateFields:nt,submit:nt,getInternalHooks:function(){return nt(),{dispatch:nt,initEntityValue:nt,registerField:nt,useSubscribe:nt,setInitialValues:nt,destroyForm:nt,setCallbacks:nt,registerWatch:nt,getFields:nt,setValidateMessages:nt,setPreserve:nt,getInitialValue:nt}}}),xo=c.createContext(null);function hs(e){return e==null?[]:Array.isArray(e)?e:[e]}function D0(e){return e&&!!e._init}function bs(){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 ys=bs();function V0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function B0(e,t,n){if(Hs())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&da(a,n.prototype),a}function Ss(e){var t=typeof Map=="function"?new Map:void 0;return Ss=function(r){if(r===null||!V0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return B0(r,arguments,fa(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),da(a,r)},Ss(e)}var H0=/%[sdj%]/g,af=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(af=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Cs(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ut(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(H0,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function k0(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Et(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||k0(t)&&typeof e=="string"&&!e)}function W0(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,ce(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function yc(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<a?t(e[s],o):n([])}o([])}function G0(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ce(e[n]||[]))}),t}var Sc=function(e){Un(n,e);var t=Kn(n);function n(r,a){var o;return Pt(this,n),o=t.call(this,"Async Validation Error"),j(Me(o),"errors",void 0),j(Me(o),"fields",void 0),o.errors=r,o.fields=a,o}return Nt(n)}(Ss(Error));function U0(e,t,n,r,a){if(t.first){var o=new Promise(function(v,b){var p=function(S){return r(S),S.length?b(new Sc(S,Cs(S))):v(a)},g=G0(e);yc(g,n,p)});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 p=function(m){if(d.push.apply(d,m),u++,u===l)return r(d),d.length?b(new Sc(d,Cs(d))):v(a)};s.length||(r(d),v(a)),s.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?yc(m,n,p):W0(m,n,p)})});return f.catch(function(v){return v}),f}function K0(e){return!!(e&&e.message!==void 0)}function q0(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cc(e,t){return function(n){var r;return e.fullFields?r=q0(t,e.fullFields):r=t[n.field||e.fullField],K0(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Ec(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];we(r)==="object"&&we(e[n])==="object"?e[n]=L(L({},e[n]),r):e[n]=r}}return e}var fr="enum",X0=function(t,n,r,a,o){t[fr]=Array.isArray(t[fr])?t[fr]:[],t[fr].indexOf(n)===-1&&a.push(Ut(o.messages[fr],t.fullField,t[fr].join(", ")))},Y0=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ut(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(Ut(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Q0=function(t,n,r,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=n,f=null,v=typeof n=="number",b=typeof n=="string",p=Array.isArray(n);if(v?f="number":b?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),b&&(d=n.replace(u,"_").length),i?d!==t.len&&a.push(Ut(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(Ut(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(Ut(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(Ut(o.messages[f].range,t.fullField,t.min,t.max))},of=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Et(n,i||t.type))&&a.push(Ut(o.messages.required,t.fullField))},Xa;const Z0=function(){if(Xa)return Xa;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,p=d.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(p,"|").concat(g).concat(m).concat(S,")").concat(h).concat(y);return Xa=new RegExp("(?:^".concat(E,"$)"),"i"),Xa};var xc={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},na={integer:function(t){return na.number(t)&&parseInt(t,10)===t},float:function(t){return na.number(t)&&!na.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 we(t)==="object"&&!na.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(xc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Z0())},hex:function(t){return typeof t=="string"&&!!t.match(xc.hex)}},J0=function(t,n,r,a,o){if(t.required&&n===void 0){of(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?na[s](n)||a.push(Ut(o.messages.types[s],t.fullField,t.type)):s&&we(n)!==t.type&&a.push(Ut(o.messages.types[s],t.fullField,t.type))},eb=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Ut(o.messages.whitespace,t.fullField))};const ze={required:of,whitespace:eb,type:J0,range:Q0,enum:X0,pattern:Y0};var tb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o)}r(i)},nb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ze.required(t,n,a,i,o,"array"),n!=null&&(ze.type(t,n,a,i,o),ze.range(t,n,a,i,o))}r(i)},rb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&ze.type(t,n,a,i,o)}r(i)},ab=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n,"date")&&!t.required)return r();if(ze.required(t,n,a,i,o),!Et(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ze.type(t,l,a,i,o),l&&ze.range(t,l.getTime(),a,i,o)}}r(i)},ob="enum",ib=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&ze[ob](t,n,a,i,o)}r(i)},sb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&(ze.type(t,n,a,i,o),ze.range(t,n,a,i,o))}r(i)},lb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&(ze.type(t,n,a,i,o),ze.range(t,n,a,i,o))}r(i)},cb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&ze.type(t,n,a,i,o)}r(i)},ub=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&(ze.type(t,n,a,i,o),ze.range(t,n,a,i,o))}r(i)},db=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),n!==void 0&&ze.type(t,n,a,i,o)}r(i)},fb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n,"string")&&!t.required)return r();ze.required(t,n,a,i,o),Et(n,"string")||ze.pattern(t,n,a,i,o)}r(i)},vb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n)&&!t.required)return r();ze.required(t,n,a,i,o),Et(n)||ze.type(t,n,a,i,o)}r(i)},mb=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":we(n);ze.required(t,n,a,i,o,s),r(i)},gb=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Et(n,"string")&&!t.required)return r();ze.required(t,n,a,i,o,"string"),Et(n,"string")||(ze.type(t,n,a,i,o),ze.range(t,n,a,i,o),ze.pattern(t,n,a,i,o),t.whitespace===!0&&ze.whitespace(t,n,a,i,o))}r(i)},pi=function(t,n,r,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Et(n,i)&&!t.required)return r();ze.required(t,n,a,s,o,i),Et(n,i)||ze.type(t,n,a,s,o)}r(s)};const la={string:gb,method:cb,number:ub,boolean:rb,regexp:vb,integer:lb,float:sb,array:nb,object:db,enum:ib,pattern:fb,date:ab,url:pi,hex:pi,email:pi,required:mb,any:tb};var Na=function(){function e(t){Pt(this,e),j(this,"rules",null),j(this,"_messages",ys),this.define(t)}return Nt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(we(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Ec(bs(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,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(p){var g=[],m={};function S(y){if(Array.isArray(y)){var E;g=(E=g).concat.apply(E,ce(y))}else g.push(y)}for(var h=0;h<p.length;h++)S(p[h]);g.length?(m=Cs(g),l(g,m)):l(null,i)}if(s.messages){var d=this.messages();d===ys&&(d=bs()),Ec(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(p){var g=r.rules[p],m=i[p];g.forEach(function(S){var h=S;typeof h.transform=="function"&&(i===n&&(i=L({},i)),m=i[p]=h.transform(m),m!=null&&(h.type=h.type||(Array.isArray(m)?"array":we(m)))),typeof h=="function"?h={validator:h}:h=L({},h),h.validator=r.getValidationMethod(h),h.validator&&(h.field=p,h.fullField=h.fullField||p,h.type=r.getType(h),f[p]=f[p]||[],f[p].push({rule:h,value:m,source:i,field:p}))})});var b={};return U0(f,s,function(p,g){var m=p.rule,S=(m.type==="object"||m.type==="array")&&(we(m.fields)==="object"||we(m.defaultField)==="object");S=S&&(m.required||!m.required&&p.value),m.field=p.field;function h(P,w){return L(L({},w),{},{fullField:"".concat(m.fullField,".").concat(P),fullFields:m.fullFields?[].concat(ce(m.fullFields),[P]):[P]})}function y(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(P)?P:[P];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var $=w.map(Cc(m,i));if(s.first&&$.length)return b[m.field]=1,g($);if(!S)g($);else{if(m.required&&!p.value)return m.message!==void 0?$=[].concat(m.message).map(Cc(m,i)):s.error&&($=[s.error(m,Ut(s.messages.required,m.field))]),g($);var N={};m.defaultField&&Object.keys(p.value).map(function(A){N[A]=m.defaultField}),N=L(L({},N),p.rule.fields);var F={};Object.keys(N).forEach(function(A){var I=N[A],H=Array.isArray(I)?I:[I];F[A]=H.map(h.bind(null,A))});var M=new e(F);M.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),M.validate(p.value,p.rule.options||s,function(A){var I=[];$&&$.length&&I.push.apply(I,ce($)),A&&A.length&&I.push.apply(I,ce(A)),g(I.length?I:null)})}}var E;if(m.asyncValidator)E=m.asyncValidator(m,p.value,y,p.source,s);else if(m.validator){try{E=m.validator(m,p.value,y,p.source,s)}catch(P){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,P),s.suppressValidatorError||setTimeout(function(){throw P},0),y(P.message)}E===!0?y():E===!1?y(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.then(function(){return y()},function(P){return y(P)})},function(p){u(p)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!la.hasOwnProperty(n.type))throw new Error(Ut("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?la.required:la[this.getType(n)]||void 0}}]),e}();j(Na,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");la[t]=n});j(Na,"warning",af);j(Na,"messages",ys);j(Na,"validators",la);var kt="'${name}' is not a valid ${type}",sf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:kt,method:kt,array:kt,object:kt,number:kt,date:kt,boolean:kt,integer:kt,float:kt,regexp:kt,email:kt,url:kt,hex:kt},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}"}},wc=Na;function pb(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var $c="CODE_LOGIC_ERROR";function Es(e,t,n,r,a){return xs.apply(this,arguments)}function xs(){return xs=or(Lt().mark(function e(t,n,r,a,o){var i,s,l,u,d,f,v,b,p;return Lt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=L({},r),delete i.ruleIndex,wc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject($c)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new wc(j({},t,[i])),d=Er(sf,a.validateMessages),u.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(u.validate(j({},t,n),L({},a)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(S,h){var y=S.message,E=y===$c?d.default:y;return c.isValidElement(E)?c.cloneElement(E,{key:"error_".concat(h)}):E}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(n.map(function(S,h){return Es("".concat(t,".").concat(h),S,l,a,o)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(S,h){return[].concat(ce(S),ce(h))},[]));case 23:return b=L(L({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),p=f.map(function(S){return typeof S=="string"?pb(S,b):S}),m.abrupt("return",p);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),xs.apply(this,arguments)}function hb(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,f){var v=d.validator,b=L(L({},d),{},{ruleIndex:f});return v&&(b.validator=function(p,g,m){var S=!1,h=function(){for(var C=arguments.length,x=new Array(C),P=0;P<C;P++)x[P]=arguments[P];Promise.resolve().then(function(){Ye(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||m.apply(void 0,x)})},y=v(p,g,h);S=y&&typeof y.then=="function"&&typeof y.catch=="function",Ye(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){m()}).catch(function(E){m(E||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,p=f.warningOnly,g=f.ruleIndex;return!!v==!!p?b-g:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=or(Lt().mark(function f(v,b){var p,g,m;return Lt().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:p=0;case 1:if(!(p<s.length)){h.next=12;break}return g=s[p],h.next=5,Es(i,t,g,r,o);case 5:if(m=h.sent,!m.length){h.next=9;break}return b([{errors:m,rule:g}]),h.abrupt("return");case 9:p+=1,h.next=1;break;case 12:v([]);case 13:case"end":return h.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Es(i,t,d,r,o).then(function(f){return{errors:f,rule:d}})});l=(a?yb(u):bb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function bb(e){return ws.apply(this,arguments)}function ws(){return ws=or(Lt().mark(function e(t){return Lt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ce(a));return i}));case 1:case"end":return r.stop()}},e)})),ws.apply(this,arguments)}function yb(e){return $s.apply(this,arguments)}function $s(){return $s=or(Lt().mark(function e(t){var n;return Lt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),$s.apply(this,arguments)}function gt(e){return hs(e)}function Oc(e,t){var n={};return t.forEach(function(r){var a=Sn(e,r);n=ln(n,r,a)}),n}function $r(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lf(t,r,n)})}function lf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function Sb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||we(e)!=="object"||we(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Cb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&we(t.target)==="object"&&e in t.target?t.target[e]:t}function Rc(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(ce(e.slice(0,n)),[a],ce(e.slice(n,t)),ce(e.slice(t+1,r))):o<0?[].concat(ce(e.slice(0,t)),ce(e.slice(t+1,n+1)),[a],ce(e.slice(n+1,r))):e}var Eb=["name"],Yt=[];function hi(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var sl=function(e){Un(n,e);var t=Kn(n);function n(r){var a;if(Pt(this,n),a=t.call(this,r),j(Me(a),"state",{resetCount:0}),j(Me(a),"cancelRegisterFunc",null),j(Me(a),"mounted",!1),j(Me(a),"touched",!1),j(Me(a),"dirty",!1),j(Me(a),"validatePromise",void 0),j(Me(a),"prevValidating",void 0),j(Me(a),"errors",Yt),j(Me(a),"warnings",Yt),j(Me(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,gt(f)),a.cancelRegisterFunc=null}),j(Me(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)):[]}),j(Me(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})}),j(Me(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),j(Me(a),"metaCache",null),j(Me(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=L(L({},a.getMeta()),{},{destroy:l});ga(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),j(Me(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,p=b===void 0?[]:b,g=f.onReset,m=d.store,S=a.getNamePath(),h=a.getValue(l),y=a.getValue(m),E=u&&$r(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ga(h,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Yt,a.warnings=Yt,a.triggerMetaEvent()),d.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Yt,a.warnings=Yt,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(v&&hi(v,l,m,h,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||Yt),"warnings"in C&&(a.warnings=C.warnings||Yt),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&$r(u,S,!0)){a.reRender();return}if(v&&!S.length&&hi(v,l,m,h,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=p.map(gt);if(x.some(function(P){return $r(d.relatedFields,P)})){a.reRender();return}break}default:if(E||(!p.length||S.length||v)&&hi(v,l,m,h,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),j(Me(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,p=b===void 0?!1:b,g=Promise.resolve().then(or(Lt().mark(function m(){var S,h,y,E,C,x,P;return Lt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(S=a.props,h=S.validateFirst,y=h===void 0?!1:h,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var M=hs(F);return M.includes(v)})),!(C&&v)){$.next=10;break}return $.next=8,new Promise(function(N){setTimeout(N,C)});case 8:if(a.validatePromise===g){$.next=10;break}return $.abrupt("return",[]);case 10:return P=hb(u,d,x,l,y,E),P.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yt;if(a.validatePromise===g){var F;a.validatePromise=null;var M=[],A=[];(F=N.forEach)===null||F===void 0||F.call(N,function(I){var H=I.rule.warningOnly,_=I.errors,O=_===void 0?Yt:_;H?A.push.apply(A,ce(O)):M.push.apply(M,ce(O))}),a.errors=M,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",P);case 13:case"end":return $.stop()}},m)})));return p||(a.validatePromise=g,a.dirty=!0,a.errors=Yt,a.warnings=Yt,a.triggerMetaEvent(),a.reRender()),g}),j(Me(a),"isFieldValidating",function(){return!!a.validatePromise}),j(Me(a),"isFieldTouched",function(){return a.touched}),j(Me(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(tr),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),j(Me(a),"getErrors",function(){return a.errors}),j(Me(a),"getWarnings",function(){return a.warnings}),j(Me(a),"isListField",function(){return a.props.isListField}),j(Me(a),"isList",function(){return a.props.isList}),j(Me(a),"isPreserve",function(){return a.props.preserve}),j(Me(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}),j(Me(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return L(L({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Cn(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),j(Me(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Sn(l||u(!0),d)}),j(Me(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,p=u.normalize,g=u.valuePropName,m=u.getValueProps,S=u.fieldContext,h=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(tr),P=x.dispatch,w=a.getValue(),$=m||function(I){return j({},g,I)},N=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(I){Ye(typeof F[I]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(I,")"))});var M=L(L({},l),F);M[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var I,H=arguments.length,_=new Array(H),O=0;O<H;O++)_[O]=arguments[O];b?I=b.apply(void 0,_):I=Cb.apply(void 0,[g].concat(_)),p&&(I=p(I,w,C(!0))),P({type:"updateValue",namePath:y,value:I}),N&&N.apply(void 0,_)};var A=hs(h||[]);return A.forEach(function(I){var H=M[I];M[I]=function(){H&&H.apply(void 0,arguments);var _=a.props.rules;_&&_.length&&P({type:"validateField",namePath:y,triggerName:I})}}),M}),r.fieldContext){var o=r.fieldContext.getInternalHooks,i=o(tr),s=i.initEntityValue;s(Me(a))}return a}return Nt(n,[{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(tr),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)):(Ye(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),n}(c.Component);j(sl,"contextType",jr);j(sl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function cf(e){var t=e.name,n=Ve(e,Eb),r=c.useContext(jr),a=c.useContext(xo),o=t!==void 0?gt(t):void 0,i="keep";return n.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&o.length<=1&&Ye(!1,"`preserve` should not apply on Form.List fields."),c.createElement(sl,ye({key:i,name:o,isListField:!!a},n,{fieldContext:r}))}function xb(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(jr),l=c.useContext(xo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var g=gt(s.prefixName)||[];return[].concat(ce(g),ce(gt(t)))},[s.prefixName,t]),v=c.useMemo(function(){return L(L({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(m){var S=f.length,h=m[S];return[d.keys[h],m.slice(S+1)]}}},[f]);if(typeof r!="function")return Ye(!1,"Form.List only accepts function as children."),null;var p=function(m,S,h){var y=h.source;return y==="internal"?!1:m!==S};return c.createElement(xo.Provider,{value:b},c.createElement(jr.Provider,{value:v},c.createElement(cf,{name:[],shouldUpdate:p,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:i??!!l},function(g,m){var S=g.value,h=S===void 0?[]:S,y=g.onChange,E=s.getFieldValue,C=function(){var $=E(f||[]);return $||[]},x={add:function($,N){var F=C();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)&&Ye(!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=C(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(M,A){return!F.has(A)}),y(N.filter(function(M,A){return!F.has(A)})))},move:function($,N){if($!==N){var F=C();$<0||$>=F.length||N<0||N>=F.length||(d.keys=Rc(d.keys,$,N),y(Rc(F,$,N)))}}},P=h||[];return Array.isArray(P)||(P=[],process.env.NODE_ENV!=="production"&&Ye(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(P.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}}),x,m)})))}function wb(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var uf="__@field_split__";function bi(e){return e.map(function(t){return"".concat(we(t),":").concat(t)}).join(uf)}var vr=function(){function e(){Pt(this,e),j(this,"kvs",new Map)}return Nt(e,[{key:"set",value:function(n,r){this.kvs.set(bi(n),r)}},{key:"get",value:function(n){return this.kvs.get(bi(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(bi(n))}},{key:"map",value:function(n){return ce(this.kvs.entries()).map(function(r){var a=W(r,2),o=a[0],i=a[1],s=o.split(uf);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=W(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),$b=["name"],Ob=Nt(function e(t){var n=this;Pt(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===tr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ye(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Er(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=ln(i,l,Sn(r,l))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),j(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new vr;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),j(this,"getInitialValue",function(r){var a=Sn(n.initialValues,r);return r.length?Er(a):a}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Ye(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new vr;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=gt(o);return a.get(i)||{INVALIDATE_NAME_PATH:gt(o)}})}),j(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&we(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var l=n.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 p,g;if((p=(g=d).isList)!==null&&p!==void 0&&p.call(g))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var m="getMeta"in d?d.getMeta():null;i(m)&&u.push(b)}}),Oc(n.store,u.map(gt))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var a=gt(r);return Sn(n.store,a)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:gt(r[i]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var a=gt(r),o=n.getFieldsError([a])[0];return o.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var a=gt(r),o=n.getFieldsError([a])[0];return o.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;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(gt),u=!1):(l=null,u=i):(l=i.map(gt),u=s);var d=n.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return u?d.every(function(g){return f(g)||g.isList()}):d.some(f);var v=new vr;l.forEach(function(g){v.set(g,[])}),d.forEach(function(g){var m=g.getNamePath();l.forEach(function(S){S.every(function(h,y){return m[y]===h})&&v.update(S,function(h){return[].concat(ce(h),[g])})})});var b=function(m){return m.some(f)},p=v.map(function(g){var m=g.value;return m});return u?p.every(b):p.some(b)}),j(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),j(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(i){return i.isFieldValidating()});var o=r.map(gt);return a.some(function(i){var s=i.getNamePath();return $r(o,s)&&i.isFieldValidating()})}),j(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),j(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new vr,o=n.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=n.getInitialValue(v);if(b!==void 0)Ye(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var p=a.get(v);if(p&&p.size>1)Ye(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=n.getFieldValue(v),m=d.isListField();!m&&(!r.skipExist||g===void 0)&&n.updateStore(ln(n.store,v,ce(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.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)}),j(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Er(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(gt);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(ln(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),j(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,l=Ve(i,$b),u=gt(s);o.push(u),"value"in l&&n.updateStore(ln(n.store,u,l.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=L(L({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),j(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Sn(n.store,o);i===void 0&&n.updateStore(ln(n.store,o,a))}}),j(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!lf(f.getNamePath(),a)})){var d=n.store;n.updateStore(ln(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=L(L({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,a,i)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ce(o))}),o}),j(this,"updateValue",function(r,a){var o=gt(r),i=n.store;n.updateStore(ln(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),l=n.callbacks.onValuesChange;if(l){var u=Oc(n.store,[o]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ce(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Er(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),j(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new vr;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=gt(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(r),o}),j(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new vr;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 $r(r,d)});l.length&&o(l,i)}}),j(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,l=s?o.map(gt):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,p=v.dirty;n.getFieldEntities(!0).forEach(function(h){if(s||l.push(h.getNamePath()),!(!h.props.rules||!h.props.rules.length)&&!(p&&!h.isFieldDirty())){var y=h.getNamePath();if(f.add(y.join(d)),!s||$r(l,y,b)){var E=h.validateRules(L({validateMessages:L(L({},sf),n.validateMessages)},i));u.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,P=[],w=[];return(x=C.forEach)===null||x===void 0||x.call(C,function($){var N=$.rule.warningOnly,F=$.errors;N?w.push.apply(w,ce(F)):P.push.apply(P,ce(F))}),P.length?Promise.reject({name:y,errors:P,warnings:w}):{name:y,errors:P,warnings:w}}))}}});var g=wb(u);n.lastValidatePromise=g,g.catch(function(h){return h}).then(function(h){var y=h.map(function(E){var C=E.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,h)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var y=h.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:y,outOfDate:n.lastValidatePromise!==g})});m.catch(function(h){return h});var S=l.filter(function(h){return f.has(h.join(d))});return n.triggerOnFieldsChange(S),m}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function df(e){var t=c.useRef(),n=c.useState({}),r=W(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Ob(o);t.current=i.getForm()}return[t.current]}var Os=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Rb=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Os),s=c.useRef({});return c.createElement(Os.Provider,{value:L(L({},i),{},{validateMessages:L(L({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(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=L(L({},s.current),{},j({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=L({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},Pb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Nb=function(t,n){var r=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,p=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,S=t.onFinishFailed,h=t.clearOnDestroy,y=Ve(t,Pb),E=c.useRef(null),C=c.useContext(Os),x=df(i),P=W(x,1),w=P[0],$=w.getInternalHooks(tr),N=$.useSubscribe,F=$.setInitialValues,M=$.setCallbacks,A=$.setValidateMessages,I=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(n,function(){return L(L({},w),{},{nativeElement:E.current})}),c.useEffect(function(){return C.registerForm(r,w),function(){C.unregisterForm(r)}},[C,w,r]),A(L(L({},C.validateMessages),f)),M({onValuesChange:p,onFieldsChange:function(U){if(C.triggerFormChange(r,U),g){for(var q=arguments.length,Y=new Array(q>1?q-1:0),Q=1;Q<q;Q++)Y[Q-1]=arguments[Q];g.apply(void 0,[U].concat(Y))}},onFinish:function(U){C.triggerFormFinish(r,U),m&&m(U)},onFinishFailed:S}),I(s);var _=c.useRef(null);F(a,!_.current),_.current||(_.current=!0),c.useEffect(function(){return function(){return H(h)}},[]);var O,T=typeof l=="function";if(T){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;N(!T);var D=c.useRef();c.useEffect(function(){Sb(D.current||[],o||[])||w.setFields(o||[]),D.current=o},[o,w]);var B=c.useMemo(function(){return L(L({},w),{},{validateTrigger:b})},[w,b]),G=c.createElement(xo.Provider,{value:null},c.createElement(jr.Provider,{value:B},O));return d===!1?G:c.createElement(d,ye({},y,{ref:E,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),w.submit()},onReset:function(U){var q;U.preventDefault(),w.resetFields(),(q=y.onReset)===null||q===void 0||q.call(y,U)}}),G)};function Pc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var _b=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=R.useRef(t);Ye(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Tb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],o=a===void 0?{}:a,i=D0(o)?{form:o}:o,s=i.form,l=R.useState(),u=W(l,2),d=u[0],f=u[1],v=R.useMemo(function(){return Pc(d)},[d]),b=R.useRef(v);b.current=v;var p=R.useContext(jr),g=s||p,m=g&&g._init;process.env.NODE_ENV!=="production"&&Ye(t.length===2?s?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var S=gt(r),h=R.useRef(S);return h.current=S,_b(S),R.useEffect(function(){if(m){var y=g.getFieldsValue,E=g.getInternalHooks,C=E(tr),x=C.registerWatch,P=function(F,M){var A=i.preserve?M:F;return typeof r=="function"?r(A):Sn(A,h.current)},w=x(function(N,F){var M=P(N,F),A=Pc(M);b.current!==A&&(b.current=A,f(M))}),$=P(y(),y(!0));return d!==$&&f($),w}},[m]),d}var Ib=c.forwardRef(Nb),_a=Ib;_a.FormProvider=Rb;_a.Field=cf;_a.List=xb;_a.useForm=df;_a.useWatch=Tb;const Ea=c.createContext({});process.env.NODE_ENV!=="production"&&(Ea.displayName="FormItemInputContext");const Mb=e=>{let{children:t,status:n,override:r}=e;const a=R.useContext(Ea),o=R.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return c.createElement(Ea.Provider,{value:o},t)},Ab=R.createContext(void 0),Rs=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=R.createElement(Mb,{override:!0,status:!0},a)),t&&(a=R.createElement(Yh,null,a)),a};var ff=function(t){if(jt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},Fb=function(t,n){if(!ff(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function Nc(e,t){return!Array.isArray(e)&&t!==void 0?Fb(e,t):ff(e)}const Do=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=K({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=K({[`${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:K(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},jb=new pt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Vo=e=>({height:e,lineHeight:X(e)}),Or=e=>Object.assign({width:e},Vo(e)),Lb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:jb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),yi=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Vo(e)),zb=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Or(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Or(a)),[`${t}${t}-sm`]:Object.assign({},Or(o))}},Db=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},yi(t,s)),[`${r}-lg`]:Object.assign({},yi(a,s)),[`${r}-sm`]:Object.assign({},yi(o,s))}},_c=e=>Object.assign({width:e},Vo(e)),Vb=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},_c(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},_c(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Si=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ci=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Vo(e)),Bb=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Ci(r,s))},Si(e,r,n)),{[`${n}-lg`]:Object.assign({},Ci(a,s))}),Si(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Ci(o,s))}),Si(e,o,`${n}-sm`))},Hb=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:p,titleHeight:g,blockRadius:m,paragraphLiHeight:S,controlHeightXS:h,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Or(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Or(u)),[`${n}-sm`]:Object.assign({},Or(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:m,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:h}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Bb(e)),zb(e)),Db(e)),Vb(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
128
|
-
${r},
|
|
129
|
-
${a} > li,
|
|
156
|
+
}`),a)}else ha(a);return function(){ha(a)}},[t,a])}var H0=!1;function W0(e){return H0}var Ec=function(t){return t===!1?!1:!Kt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ul=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"&&at(Kt()||!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 Ec(a)}),p=U(h,2),m=p[0],S=p[1];c.useEffect(function(){var j=Ec(a);S(j??null)});var g=L0(b&&!m,o),y=U(g,2),E=y[0],C=y[1],x=m??E;k0(n&&r&&Kt()&&(x===E||x===document.body));var R=null;if(l&&on(l)&&t){var w=l;R=w.ref}var $=_a(R,t);if(!b||!Kt()||m===void 0)return null;var T=x===!1||W0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(uf.Provider,{value:C},T?F:Pn.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(ul.displayName="Portal");function G0(){var e=z({},c);return e.useId}var xc=0,wc=G0();const U0=wc?function(t){var r=wc();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=xc;xc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",ft=function(){at(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ln=c.createContext({getFieldValue:ft,getFieldsValue:ft,getFieldError:ft,getFieldWarning:ft,getFieldsError:ft,isFieldsTouched:ft,isFieldTouched:ft,isFieldValidating:ft,isFieldsValidating:ft,resetFields:ft,setFields:ft,setFieldValue:ft,setFieldsValue:ft,validateFields:ft,submit:ft,getInternalHooks:function(){return ft(),{dispatch:ft,initEntityValue:ft,registerField:ft,useSubscribe:ft,setInitialValues:ft,destroyForm:ft,setCallbacks:ft,registerWatch:ft,getFields:ft,setValidateMessages:ft,setPreserve:ft,getInitialValue:ft}}}),Oo=c.createContext(null);function Cs(e){return e==null?[]:Array.isArray(e)?e:[e]}function K0(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 xs=Es();function q0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function X0(e,t,r){if(Us())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ma(a,r.prototype),a}function ws(e){var t=typeof Map=="function"?new Map:void 0;return ws=function(n){if(n===null||!q0(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 X0(n,arguments,ga(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ma(a,n)},ws(e)}var Y0=/%[sdj%]/g,df=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(df=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 $s(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 er(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(Y0,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 Q0(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||Q0(t)&&typeof e=="string"&&!e)}function Z0(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 J0(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Oc=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;return jt(this,r),o=t.call(this,"Async Validation Error"),L(We(o),"errors",void 0),L(We(o),"fields",void 0),o.errors=n,o.fields=a,o}return Ft(r)}(ws(Error));function eb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(S){return n(S),S.length?b(new Oc(S,$s(S))):v(a)},p=J0(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(m){if(d.push.apply(d,m),u++,u===l)return n(d),d.length?b(new Oc(d,$s(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var m=e[p];i.indexOf(p)!==-1?$c(m,r,h):Z0(m,r,h)})});return f.catch(function(v){return v}),f}function tb(e){return!!(e&&e.message!==void 0)}function rb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Rc(e,t){return function(r){var n;return e.fullFields?n=rb(t,e.fullFields):n=t[r.field||e.fullField],tb(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 Pc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Te(n)==="object"&&Te(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var vn="enum",nb=function(t,r,n,a,o){t[vn]=Array.isArray(t[vn])?t[vn]:[],t[vn].indexOf(r)===-1&&a.push(er(o.messages[vn],t.fullField,t[vn].join(", ")))},ab=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(er(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(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ob=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(er(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(er(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(er(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(er(o.messages[f].range,t.fullField,t.min,t.max))},ff=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Nt(r,i||t.type))&&a.push(er(o.messages.required,t.fullField))},Za;const ib=function(){if(Za)return Za;var e="[a-fA-F\\d:]",t=function(x){return x&&x.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(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"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]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(m).concat(S,")").concat(g).concat(y);return Za=new RegExp("(?:^".concat(E,"$)"),"i"),Za};var _c={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 Te(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(_c.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ib())},hex:function(t){return typeof t=="string"&&!!t.match(_c.hex)}},sb=function(t,r,n,a,o){if(t.required&&r===void 0){ff(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(er(o.messages.types[s],t.fullField,t.type)):s&&Te(r)!==t.type&&a.push(er(o.messages.types[s],t.fullField,t.type))},lb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(er(o.messages.whitespace,t.fullField))};const Qe={required:ff,whitespace:lb,type:sb,range:ob,enum:nb,pattern:ab};var 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)}n(i)},ub=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)},db=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)},fb=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)},vb="enum",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),r!==void 0&&Qe[vb](t,r,a,i,o)}n(i)},gb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(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),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(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)},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),r!==void 0&&Qe.type(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,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r,"string")||Qe.pattern(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(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r)||Qe.type(t,r,a,i,o)}n(i)},Eb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Te(r);Qe.required(t,r,a,i,o,s),n(i)},xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(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)},yi=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:xb,method:hb,number:bb,boolean:db,regexp:Cb,integer:pb,float:gb,array:ub,object:yb,enum:mb,pattern:Sb,date:fb,url:yi,hex:yi,email:yi,required:Eb,any:cb};var Ia=function(){function e(t){jt(this,e),L(this,"rules",null),L(this,"_messages",xs),this.define(t)}return Ft(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Te(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=Pc(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=[],m={};function S(y){if(Array.isArray(y)){var E;p=(E=p).concat.apply(E,ye(y))}else p.push(y)}for(var g=0;g<h.length;g++)S(h[g]);p.length?(m=$s(p),l(p,m)):l(null,i)}if(s.messages){var d=this.messages();d===xs&&(d=Es()),Pc(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],m=i[h];p.forEach(function(S){var g=S;typeof g.transform=="function"&&(i===r&&(i=z({},i)),m=i[h]=g.transform(m),m!=null&&(g.type=g.type||(Array.isArray(m)?"array":Te(m)))),typeof g=="function"?g={validator:g}:g=z({},g),g.validator=n.getValidationMethod(g),g.validator&&(g.field=h,g.fullField=g.fullField||h,g.type=n.getType(g),f[h]=f[h]||[],f[h].push({rule:g,value:m,source:i,field:h}))})});var b={};return eb(f,s,function(h,p){var m=h.rule,S=(m.type==="object"||m.type==="array")&&(Te(m.fields)==="object"||Te(m.defaultField)==="object");S=S&&(m.required||!m.required&&h.value),m.field=h.field;function g(R,w){return z(z({},w),{},{fullField:"".concat(m.fullField,".").concat(R),fullFields:m.fullFields?[].concat(ye(m.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&&m.message!==void 0&&(w=[].concat(m.message));var $=w.map(Rc(m,i));if(s.first&&$.length)return b[m.field]=1,p($);if(!S)p($);else{if(m.required&&!h.value)return m.message!==void 0?$=[].concat(m.message).map(Rc(m,i)):s.error&&($=[s.error(m,er(s.messages.required,m.field))]),p($);var T={};m.defaultField&&Object.keys(h.value).map(function(A){T[A]=m.defaultField}),T=z(z({},T),h.rule.fields);var F={};Object.keys(T).forEach(function(A){var M=T[A],H=Array.isArray(M)?M:[M];F[A]=H.map(g.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 E;if(m.asyncValidator)E=m.asyncValidator(m,h.value,y,h.source,s);else if(m.validator){try{E=m.validator(m,h.value,y,h.source,s)}catch(R){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}E===!0?y():E===!1?y(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.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(er("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",df);L(Ia,"messages",xs);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",vf={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}"}},Nc=Ia;function wb(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 Tc="CODE_LOGIC_ERROR";function Os(e,t,r,n,a){return Rs.apply(this,arguments)}function Rs(){return Rs=ln(qt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return qt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=z({},n),delete i.ruleIndex,Nc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(Tc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Nc(L({},t,[i])),d=xn(vf,a.validateMessages),u.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(S,g){var y=S.message,E=y===Tc?d.default:y;return c.isValidElement(E)?c.cloneElement(E,{key:"error_".concat(g)}):E}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(r.map(function(S,g){return Os("".concat(t,".").concat(g),S,l,a,o)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(S,g){return[].concat(ye(S),ye(g))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?wb(S,b):S}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),Rs.apply(this,arguments)}function $b(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,m){var S=!1,g=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];Promise.resolve().then(function(){at(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||m.apply(void 0,x)})},y=v(h,p,g);S=y&&typeof y.then=="function"&&typeof y.catch=="function",at(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){m()}).catch(function(E){m(E||" ")})}),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=ln(qt().mark(function f(v,b){var h,p,m;return qt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:h=0;case 1:if(!(h<s.length)){g.next=12;break}return p=s[h],g.next=5,Os(i,t,p,n,o);case 5:if(m=g.sent,!m.length){g.next=9;break}return b([{errors:m,rule:p}]),g.abrupt("return");case 9:h+=1,g.next=1;break;case 12:v([]);case 13:case"end":return g.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Os(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Rb(u):Ob(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Ob(e){return Ps.apply(this,arguments)}function Ps(){return Ps=ln(qt().mark(function e(t){return qt().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 Rb(e){return _s.apply(this,arguments)}function _s(){return _s=ln(qt().mark(function e(t){var r;return qt().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)})),_s.apply(this,arguments)}function xt(e){return Cs(e)}function Ic(e,t){var r={};return t.forEach(function(n){var a=wr(e,n);r=dr(r,n,a)}),r}function On(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return mf(t,n,r)})}function mf(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 Pb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Te(e)!=="object"||Te(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 _b(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Te(t.target)==="object"&&e in t.target?t.target[e]:t}function Mc(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 Nb=["name"],rr=[];function Si(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var dl=function(e){qr(r,e);var t=Xr(r);function r(n){var a;if(jt(this,r),a=t.call(this,n),L(We(a),"state",{resetCount:0}),L(We(a),"cancelRegisterFunc",null),L(We(a),"mounted",!1),L(We(a),"touched",!1),L(We(a),"dirty",!1),L(We(a),"validatePromise",void 0),L(We(a),"prevValidating",void 0),L(We(a),"errors",rr),L(We(a),"warnings",rr),L(We(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xt(f)),a.cancelRegisterFunc=null}),L(We(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(We(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(We(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(We(a),"metaCache",null),L(We(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(We(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,m=d.store,S=a.getNamePath(),g=a.getValue(l),y=a.getValue(m),E=u&&On(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(g,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=rr,a.warnings=rr,a.triggerMetaEvent()),d.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Si(v,l,m,g,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||rr),"warnings"in C&&(a.warnings=C.warnings||rr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&On(u,S,!0)){a.reRender();return}if(v&&!S.length&&Si(v,l,m,g,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map(xt);if(x.some(function(R){return On(d.relatedFields,R)})){a.reRender();return}break}default:if(E||(!h.length||S.length||v)&&Si(v,l,m,g,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(We(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(ln(qt().mark(function m(){var S,g,y,E,C,x,R;return qt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(S=a.props,g=S.validateFirst,y=g===void 0?!1:g,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(T){return T}).filter(function(T){var F=T.validateTrigger;if(!F)return!0;var j=Cs(F);return j.includes(v)})),!(C&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,C)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=$b(u,d,x,l,y,E),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=T.forEach)===null||F===void 0||F.call(T,function(M){var H=M.rule.warningOnly,N=M.errors,O=N===void 0?rr:N;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()}},m)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),a.reRender()),p}),L(We(a),"isFieldValidating",function(){return!!a.validatePromise}),L(We(a),"isFieldTouched",function(){return a.touched}),L(We(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(We(a),"getErrors",function(){return a.errors}),L(We(a),"getWarnings",function(){return a.warnings}),L(We(a),"isListField",function(){return a.props.isListField}),L(We(a),"isList",function(){return a.props.isList}),L(We(a),"isPreserve",function(){return a.props.preserve}),L(We(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(We(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=$r(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(We(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return wr(l||u(!0),d)}),L(We(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,m=u.getValueProps,S=u.fieldContext,g=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(nn),R=x.dispatch,w=a.getValue(),$=m||function(M){return L({},p,M)},T=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){at(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,N=new Array(H),O=0;O<H;O++)N[O]=arguments[O];b?M=b.apply(void 0,N):M=_b.apply(void 0,[p].concat(N)),h&&(M=h(M,w,C(!0))),R({type:"updateValue",namePath:y,value:M}),T&&T.apply(void 0,N)};var A=Cs(g||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(We(a))}return a}return Ft(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)):(at(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(dl,"contextType",Ln);L(dl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function gf(e){var t=e.name,r=Je(e,Nb),n=c.useContext(Ln),a=c.useContext(Oo),o=t!==void 0?xt(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&&at(!1,"`preserve` should not apply on Form.List fields."),c.createElement(dl,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Tb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Ln),l=c.useContext(Oo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=xt(s.prefixName)||[];return[].concat(ye(p),ye(xt(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(m){var S=f.length,g=m[S];return[d.keys[g],m.slice(S+1)]}}},[f]);if(typeof n!="function")return at(!1,"Form.List only accepts function as children."),null;var h=function(m,S,g){var y=g.source;return y==="internal"?!1:m!==S};return c.createElement(Oo.Provider,{value:b},c.createElement(Ln.Provider,{value:v},c.createElement(gf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,m){var S=p.value,g=S===void 0?[]:S,y=p.onChange,E=s.getFieldValue,C=function(){var $=E(f||[]);return $||[]},x={add:function($,T){var F=C();T>=0&&T<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,T)),[d.id],ye(d.keys.slice(T))),y([].concat(ye(F.slice(0,T)),[$],ye(F.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>F.length)&&at(!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 T=C(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(T.filter(function(j,A){return!F.has(A)})))},move:function($,T){if($!==T){var F=C();$<0||$>=F.length||T<0||T>=F.length||(d.keys=Mc(d.keys,$,T),y(Mc(F,$,T)))}}},R=g||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&at(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var T=d.keys[$];return T===void 0&&(d.keys[$]=d.id,T=d.keys[$],d.id+=1),{name:$,key:T,isListField:!0}}),x,m)})))}function Ib(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 pf="__@field_split__";function Ci(e){return e.map(function(t){return"".concat(Te(t),":").concat(t)}).join(pf)}var mn=function(){function e(){jt(this,e),L(this,"kvs",new Map)}return Ft(e,[{key:"set",value:function(r,n){this.kvs.set(Ci(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ci(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(Ci(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(pf);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}(),Mb=["name"],Ab=Ft(function e(t){var r=this;jt(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}):(at(!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=xn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=dr(i,l,wr(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=wr(r.initialValues,n);return n.length?xn(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||at(!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=xt(o);return a.get(i)||{INVALIDATE_NAME_PATH:xt(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Te(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 m="getMeta"in d?d.getMeta():null;i(m)&&u.push(b)}}),Ic(r.store,u.map(xt))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=xt(n);return wr(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:xt(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=xt(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(xt),u=!1):(l=null,u=i):(l=i.map(xt),u=s);var d=r.getFieldEntities(!0),f=function(m){return m.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 m=p.getNamePath();l.forEach(function(S){S.every(function(g,y){return m[y]===g})&&v.update(S,function(g){return[].concat(ye(g),[p])})})});var b=function(m){return m.some(f)},h=v.map(function(p){var m=p.value;return m});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(xt);return a.some(function(i){var s=i.getNamePath();return On(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)at(!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)at(!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),m=d.isListField();!m&&(!n.skipExist||p===void 0)&&r.updateStore(dr(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(xn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(xt);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(dr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Mb),u=xt(s);o.push(u),"value"in l&&r.updateStore(dr(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=wr(r.store,o);i===void 0&&r.updateStore(dr(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!mf(f.getNamePath(),a)})){var d=r.store;r.updateStore(dr(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=xt(n),i=r.store;r.updateStore(dr(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=Ic(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=xn(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=xt(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 On(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(xt):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(h&&!g.isFieldDirty())){var y=g.getNamePath();if(f.add(y.join(d)),!s||On(l,y,b)){var E=g.validateRules(z({validateMessages:z(z({},vf),r.validateMessages)},i));u.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,R=[],w=[];return(x=C.forEach)===null||x===void 0||x.call(C,function($){var T=$.rule.warningOnly,F=$.errors;T?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=Ib(u);r.lastValidatePromise=p,p.catch(function(g){return g}).then(function(g){var y=g.map(function(E){var C=E.name;return C});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,g)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var y=g.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});m.catch(function(g){return g});var S=l.filter(function(g){return f.has(g.join(d))});return r.triggerOnFieldsChange(S),m}),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 hf(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 Ab(o);t.current=i.getForm()}return[t.current]}var Ns=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),jb=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)},Fb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Lb=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,m=t.onFinish,S=t.onFinishFailed,g=t.clearOnDestroy,y=Je(t,Fb),E=c.useRef(null),C=c.useContext(Ns),x=hf(i),R=U(x,1),w=R[0],$=w.getInternalHooks(nn),T=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:E.current})}),c.useEffect(function(){return C.registerForm(n,w),function(){C.unregisterForm(n)}},[C,w,n]),A(z(z({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(C.triggerFormChange(n,q),p){for(var Q=arguments.length,Z=new Array(Q>1?Q-1:0),J=1;J<Q;J++)Z[J-1]=arguments[J];p.apply(void 0,[q].concat(Z))}},onFinish:function(q){C.triggerFormFinish(n,q),m&&m(q)},onFinishFailed:S}),M(s);var N=c.useRef(null);F(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return H(g)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;T(!I);var V=c.useRef();c.useEffect(function(){Pb(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(Oo.Provider,{value:null},c.createElement(Ln.Provider,{value:k},O));return d===!1?K:c.createElement(d,Oe({},y,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Q;q.preventDefault(),w.resetFields(),(Q=y.onReset)===null||Q===void 0||Q.call(y,q)}}),K)};function Ac(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Db=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);at(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function zb(){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=K0(o)?{form:o}:o,s=i.form,l=P.useState(),u=U(l,2),d=u[0],f=u[1],v=P.useMemo(function(){return Ac(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Ln),p=s||h,m=p&&p._init;process.env.NODE_ENV!=="production"&&at(t.length===2?s?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var S=xt(n),g=P.useRef(S);return g.current=S,Db(S),P.useEffect(function(){if(m){var y=p.getFieldsValue,E=p.getInternalHooks,C=E(nn),x=C.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):wr(A,g.current)},w=x(function(T,F){var j=R(T,F),A=Ac(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[m]),d}var Vb=c.forwardRef(Lb),Ma=Vb;Ma.FormProvider=jb;Ma.Field=gf;Ma.List=Tb;Ma.useForm=hf;Ma.useWatch=zb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const Bb=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext($a),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},kb=P.createContext(void 0),Ts=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(Bb,{override:!0,status:!0},a)),t&&(a=P.createElement(a0,null,a)),a};var bf=function(t){if(Kt()&&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},Hb=function(t,r){if(!bf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function jc(e,t){return!Array.isArray(e)&&t!==void 0?Hb(e,t):bf(e)}const ko=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Y({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Y({[`${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:Y(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},Wb=new $t("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ho=e=>({height:e,lineHeight:ee(e)}),Rn=e=>Object.assign({width:e},Ho(e)),Gb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Wb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ei=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ho(e)),Ub=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Rn(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Rn(a)),[`${t}${t}-sm`]:Object.assign({},Rn(o))}},Kb=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))}},Fc=e=>Object.assign({width:e},Ho(e)),qb=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},Fc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Fc(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%"}}},xi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},wi=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ho(e)),Xb=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()},wi(n,s))},xi(e,n,r)),{[`${r}-lg`]:Object.assign({},wi(a,s))}),xi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},wi(o,s))}),xi(e,o,`${r}-sm`))},Yb=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:m,paragraphLiHeight:S,controlHeightXS:g,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},Rn(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Rn(u)),[`${r}-sm`]:Object.assign({},Rn(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:m,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:g}}},[`${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"},Xb(e)),Ub(e)),Kb(e)),qb(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
130
157
|
${n},
|
|
158
|
+
${a} > li,
|
|
159
|
+
${r},
|
|
131
160
|
${o},
|
|
132
161
|
${i},
|
|
133
162
|
${s}
|
|
134
|
-
`]:Object.assign({},
|
|
163
|
+
`]:Object.assign({},Gb(e))}}},Qb=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=br("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Lt(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[Yb(n)]},Qb,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Zb=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls","className"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},Jb=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-button`,size:i},v))))},ey="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",ty=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(ot),s=i("skeleton",t),[l,u,d]=Wn(s),f=Y(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Y(`${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:ey,className:`${s}-image-path`})))))},ry=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var ny={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"},ay=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:ny}))},yf=c.forwardRef(ay);process.env.NODE_ENV!=="production"&&(yf.displayName="DotChartOutlined");const oy=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=Y(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(yf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Y(`${l}-image`,r),style:a},b)))},iy=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},sy=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=ye(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:iy(s,e)}}));return c.createElement("ul",{className:Y(t,r),style:n},o)},ly=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Y(t,r),style:Object.assign({width:n},a)})};function $i(e){return e&&typeof e=="object"?e:{}}function cy(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function uy(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function dy(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const cn=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(ot),p=v("skeleton",t),[m,S,g]=Wn(p);if(r||!("loading"in e)){const y=!!s,E=!!l,C=!!u;let x;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},cy(E,C)),$i(s));x=c.createElement("div",{className:`${p}-header`},c.createElement(ko,Object.assign({},$)))}let R;if(E||C){let $;if(E){const F=Object.assign(Object.assign({prefixCls:`${p}-title`},uy(y,C)),$i(l));$=c.createElement(ly,Object.assign({},F))}let T;if(C){const F=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},dy(y,E)),$i(u));T=c.createElement(sy,Object.assign({},F))}R=c.createElement("div",{className:`${p}-content`},$,T)}const w=Y(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,S,g);return m(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},x,R))}return i??null};cn.Button=Jb;cn.Avatar=Zb;cn.Input=ry;cn.Image=ty;cn.Node=oy;process.env.NODE_ENV!=="production"&&(cn.displayName="Skeleton");const fy=e=>({animationDuration:e,animationFillMode:"both"}),vy=e=>({animationDuration:e,animationFillMode:"both"}),Sf=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
135
164
|
${o}${e}-enter,
|
|
136
165
|
${o}${e}-appear
|
|
137
|
-
`]:Object.assign(Object.assign({},
|
|
166
|
+
`]:Object.assign(Object.assign({},fy(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},vy(n)),{animationPlayState:"paused"}),[`
|
|
138
167
|
${o}${e}-enter${e}-enter-active,
|
|
139
168
|
${o}${e}-appear${e}-appear-active
|
|
140
|
-
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:
|
|
141
|
-
${
|
|
142
|
-
${
|
|
143
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${
|
|
144
|
-
${
|
|
145
|
-
${
|
|
146
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gf=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 Ry=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mr=void 0;function Py(e,t){var n=e.prefixCls,r=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,p=e.order,g=e.component,m=g===void 0?"div":g,S=Ve(e,Ry),h=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==mr?o(a):v,C;r||(C={opacity:h?0:1,height:h?0:mr,overflowY:h?"hidden":mr,order:i?p:mr,pointerEvents:h?"none":mr,position:h?"absolute":mr});var x={};h&&(x["aria-hidden"]=!0);var P=c.createElement(m,ye({className:K(!r&&n,d),style:L(L({},C),f)},x,S,{ref:t}),E);return i&&(P=c.createElement(un,{onResize:function($){var N=$.offsetWidth;y(N)},disabled:s},P)),P}var ca=c.forwardRef(Py);ca.displayName="Item";function Ny(e){if(typeof MessageChannel>"u")Ct(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function _y(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],Ny(function(){Rr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Zr(e,t){var n=c.useState(t),r=W(n,2),a=r[0],o=r[1],i=Mt(function(s){e(function(){o(s)})});return[a,i]}var wo=R.createContext(null),Ty=["component"],Iy=["className"],My=["className"],Ay=function(t,n){var r=c.useContext(wo);if(!r){var a=t.component,o=a===void 0?"div":a,i=Ve(t,Ty);return c.createElement(o,ye({},i,{ref:n}))}var s=r.className,l=Ve(r,Iy),u=t.className,d=Ve(t,My);return c.createElement(wo.Provider,{value:null},c.createElement(ca,ye({ref:n,className:K(s,u)},l,d)))},pf=c.forwardRef(Ay);pf.displayName="RawItem";var Fy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hf="responsive",bf="invalidate";function jy(e){return"+ ".concat(e.length," ...")}function Ly(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,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,p=e.maxCount,g=e.renderRest,m=e.renderRawRest,S=e.suffix,h=e.component,y=h===void 0?"div":h,E=e.itemComponent,C=e.onVisibleChange,x=Ve(e,Fy),P=f==="full",w=_y(),$=Zr(w,null),N=W($,2),F=N[0],M=N[1],A=F||0,I=Zr(w,new Map),H=W(I,2),_=H[0],O=H[1],T=Zr(w,0),z=W(T,2),D=z[0],B=z[1],G=Zr(w,0),k=W(G,2),U=k[0],q=k[1],Y=Zr(w,0),Q=W(Y,2),Z=Q[0],te=Q[1],ue=R.useState(null),oe=W(ue,2),de=oe[0],Se=oe[1],V=R.useState(null),se=W(V,2),ie=se[0],he=se[1],me=c.useMemo(function(){return ie===null&&P?Number.MAX_SAFE_INTEGER:ie||0},[ie,F]),ee=R.useState(!1),le=W(ee,2),be=le[0],Pe=le[1],ne="".concat(r,"-item"),J=Math.max(D,U),fe=p===hf,ge=o.length&&fe,at=p===bf,Be=ge||typeof p=="number"&&o.length>p,Re=R.useMemo(function(){var Ee=o;return ge?F===null&&P?Ee=o:Ee=o.slice(0,Math.min(o.length,A/d)):typeof p=="number"&&(Ee=o.slice(0,p)),Ee},[o,d,F,p,ge]),He=R.useMemo(function(){return ge?o.slice(me+1):o.slice(Re.length)},[o,Re,ge,me]),Ue=R.useCallback(function(Ee,pe){var De;return typeof l=="function"?l(Ee):(De=l&&(Ee==null?void 0:Ee[l]))!==null&&De!==void 0?De:pe},[l]),Ge=R.useCallback(i||function(Ee){return Ee},[i]);function Ne(Ee,pe,De){ie===Ee&&(pe===void 0||pe===de)||(he(Ee),De||(Pe(Ee<o.length-1),C==null||C(Ee)),pe!==void 0&&Se(pe))}function xe(Ee,pe){M(pe.clientWidth)}function et(Ee,pe){O(function(De){var ct=new Map(De);return pe===null?ct.delete(Ee):ct.set(Ee,pe),ct})}function ke(Ee,pe){q(pe),B(U)}function _e(Ee,pe){te(pe)}function ae(Ee){return _.get(Ue(Re[Ee],Ee))}ut(function(){if(A&&typeof J=="number"&&Re){var Ee=Z,pe=Re.length,De=pe-1;if(!pe){Ne(0,null);return}for(var ct=0;ct<pe;ct+=1){var Ae=ae(ct);if(P&&(Ae=Ae||0),Ae===void 0){Ne(ct-1,void 0,!0);break}if(Ee+=Ae,De===0&&Ee<=A||ct===De-1&&Ee+ae(De)<=A){Ne(De,null);break}else if(Ee+J>A){Ne(ct-1,Ee-Ae-Z+U);break}}S&&ae(0)+Z>A&&Se(null)}},[A,_,U,Z,Ue,Re]);var Ce=be&&!!He.length,We={};de!==null&&ge&&(We={position:"absolute",left:de,top:0});var it={prefixCls:ne,responsive:ge,component:E,invalidate:at},yt=s?function(Ee,pe){var De=Ue(Ee,pe);return c.createElement(wo.Provider,{key:De,value:L(L({},it),{},{order:pe,item:Ee,itemKey:De,registerSize:et,display:pe<=me})},s(Ee,pe))}:function(Ee,pe){var De=Ue(Ee,pe);return c.createElement(ca,ye({},it,{order:pe,key:De,item:Ee,renderItem:Ge,itemKey:De,registerSize:et,display:pe<=me}))},st,Fe={order:Ce?me:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:ke,display:Ce};if(m)m&&(st=c.createElement(wo.Provider,{value:L(L({},it),Fe)},m(He)));else{var Ie=g||jy;st=c.createElement(ca,ye({},it,Fe),typeof Ie=="function"?Ie(He):Ie)}var Te=c.createElement(y,ye({className:K(!at&&r,b),style:v,ref:t},x),Re.map(yt),Be?st:null,S&&c.createElement(ca,ye({},it,{responsive:fe,responsiveDisabled:!ge,order:me,className:"".concat(ne,"-suffix"),registerSize:_e,display:!0,style:We}),S));return fe&&(Te=c.createElement(un,{onResize:xe,disabled:!ge},Te)),Te}var Tn=c.forwardRef(Ly);Tn.displayName="Overflow";Tn.Item=pf;Tn.RESPONSIVE=hf;Tn.INVALIDATE=bf;function zy(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},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(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],g=n.points[1],m=p[0],S=p[1],h=g[0],y=g[1];m===h||!["t","b"].includes(m)?b.top=f:m==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=u:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:K("".concat(t,"-arrow"),i),style:b},s)}function Dy(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(ar,ye({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var yf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(yf.displayName="PopupContent");var Sf=c.forwardRef(function(e,t){var n=e.popup,r=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,p=e.arrowPos,g=e.align,m=e.motion,S=e.maskMotion,h=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,P=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,N=e.ready,F=e.offsetX,M=e.offsetY,A=e.offsetR,I=e.offsetB,H=e.onAlign,_=e.onPrepare,O=e.stretch,T=e.targetWidth,z=e.targetHeight,D=typeof n=="function"?n():n,B=l||u,G=(y==null?void 0:y.length)>0,k=c.useState(!y||!G),U=W(k,2),q=U[0],Y=U[1];if(ut(function(){!q&&G&&i&&Y(!0)},[q,G,i]),!q)return null;var Q="auto",Z={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(N||!l){var te,ue=g.points,oe=g.dynamicInset||((te=g._experimental)===null||te===void 0?void 0:te.dynamicInset),de=oe&&ue[0][1]==="r",Se=oe&&ue[0][0]==="b";de?(Z.right=A,Z.left=Q):(Z.left=F,Z.right=Q),Se?(Z.bottom=I,Z.top=Q):(Z.top=M,Z.bottom=Q)}var V={};return O&&(O.includes("height")&&z?V.height=z:O.includes("minHeight")&&z&&(V.minHeight=z),O.includes("width")&&T?V.width=T:O.includes("minWidth")&&T&&(V.minWidth=T)),l||(V.pointerEvents="none"),c.createElement(C,{open:h||B,getContainer:y&&function(){return y(i)},autoDestroy:E},c.createElement(Dy,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),c.createElement(un,{onResize:H,disabled:!l},function(se){return c.createElement(ar,ye({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:h,leavedClassName:"".concat(a,"-hidden")},m,{onAppearPrepare:_,onEnterPrepare:_,visible:l,onVisibleChanged:function(he){var me;m==null||(me=m.onVisibleChanged)===null||me===void 0||me.call(m,he),s(he)}}),function(ie,he){var me=ie.className,ee=ie.style,le=K(a,me,r);return c.createElement("div",{ref:En(se,t,he),className:le,style:L(L(L(L({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},Z),V),ee),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:P,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(zy,{prefixCls:a,arrow:b,arrowPos:p,align:g}),c.createElement(yf,{cache:!l&&!d},D))})}))});process.env.NODE_ENV!=="production"&&(Sf.displayName="Popup");var Cf=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=rr(n),o=c.useCallback(function(s){Bs(t,r?r(s):s)},[r]),i=Oa(o,n.ref);return a?c.cloneElement(n,{ref:i}):n});process.env.NODE_ENV!=="production"&&(Cf.displayName="TriggerWrapper");var Ac=c.createContext(null);function Fc(e){return e?Array.isArray(e)?e:[e]:[]}function Vy(e,t,n,r){return c.useMemo(function(){var a=Fc(n??t),o=Fc(r??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,n,r])}function By(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Hy(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(By((s=e[l])===null||s===void 0?void 0:s.points,a,r))return"".concat(t,"-placement-").concat(l)}return""}function jc(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ta(e){return e.ownerDocument.defaultView}function Ps(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Ta(n).getComputedStyle(n),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function xa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Jr(e){return xa(parseFloat(e),0)}function Lc(e,t){var n=L({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Ta(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,b=r.clientHeight,p=r.offsetWidth,g=r.clientWidth,m=Jr(s),S=Jr(l),h=Jr(u),y=Jr(d),E=xa(Math.round(f.width/p*1e3)/1e3),C=xa(Math.round(f.height/v*1e3)/1e3),x=(p-g-h-y)*E,P=(v-b-m-S)*C,w=m*C,$=S*C,N=h*E,F=y*E,M=0,A=0;if(o==="clip"){var I=Jr(i);M=I*E,A=I*C}var H=f.x+N-M,_=f.y+w-A,O=H+f.width+2*M-N-F-x,T=_+f.height+2*A-w-$-P;n.left=Math.max(n.left,H),n.top=Math.max(n.top,_),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,T)}}),n}function zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Dc(e,t){var n=t||[],r=W(n,2),a=r[0],o=r[1];return[zc(e.width,a),zc(e.height,o)]}function Vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function gr(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Vn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function ky(e,t,n,r,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[r]||{}}),l=W(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Ps(t):[]},[t]),b=c.useRef({}),p=function(){b.current={}};e||p();var g=Mt(function(){if(t&&n&&e){let At=function(Ft,on){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le,ur=D.x+Ft,Xr=D.y+on,Yr=ur+te,Fa=Xr+Z,qo=Math.max(ur,Dn.left),Xo=Math.max(Xr,Dn.top),Yo=Math.min(Yr,Dn.right),Qo=Math.min(Fa,Dn.bottom);return Math.max(0,(Yo-qo)*(Qo-Xo))},Yn=function(){Tt=D.y+Ie,Le=Tt+Z,$e=D.x+Fe,qe=$e+te};var h,y,E=t,C=E.ownerDocument,x=Ta(E),P=x.getComputedStyle(E),w=P.width,$=P.height,N=P.position,F=E.style.left,M=E.style.top,A=E.style.right,I=E.style.bottom,H=E.style.overflow,_=L(L({},a[r]),o),O=C.createElement("div");(h=E.parentElement)===null||h===void 0||h.appendChild(O),O.style.left="".concat(E.offsetLeft,"px"),O.style.top="".concat(E.offsetTop,"px"),O.style.position=N,O.style.height="".concat(E.offsetHeight,"px"),O.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var z=n.getBoundingClientRect();T={x:z.x,y:z.y,width:z.width,height:z.height}}var D=E.getBoundingClientRect(),B=C.documentElement,G=B.clientWidth,k=B.clientHeight,U=B.scrollWidth,q=B.scrollHeight,Y=B.scrollTop,Q=B.scrollLeft,Z=D.height,te=D.width,ue=T.height,oe=T.width,de={left:0,top:0,right:G,bottom:k},Se={left:-Q,top:-Y,right:U-Q,bottom:q-Y},V=_.htmlRegion,se="visible",ie="visibleFirst";V!=="scroll"&&V!==ie&&(V=se);var he=V===ie,me=Lc(Se,v),ee=Lc(de,v),le=V===se?ee:me,be=he?ee:le;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Pe=E.getBoundingClientRect();E.style.left=F,E.style.top=M,E.style.right=A,E.style.bottom=I,E.style.overflow=H,(y=E.parentElement)===null||y===void 0||y.removeChild(O);var ne=xa(Math.round(te/parseFloat(w)*1e3)/1e3),J=xa(Math.round(Z/parseFloat($)*1e3)/1e3);if(ne===0||J===0||ua(n)&&!rl(n))return;var fe=_.offset,ge=_.targetOffset,at=Dc(D,fe),Be=W(at,2),Re=Be[0],He=Be[1],Ue=Dc(T,ge),Ge=W(Ue,2),Ne=Ge[0],xe=Ge[1];T.x-=Ne,T.y-=xe;var et=_.points||[],ke=W(et,2),_e=ke[0],ae=ke[1],Ce=Vc(ae),We=Vc(_e),it=gr(T,Ce),yt=gr(D,We),st=L({},_),Fe=it.x-yt.x+Re,Ie=it.y-yt.y+He,Te=At(Fe,Ie),Ee=At(Fe,Ie,ee),pe=gr(T,["t","l"]),De=gr(D,["t","l"]),ct=gr(T,["b","r"]),Ae=gr(D,["b","r"]),je=_.overflow||{},rt=je.adjustX,dt=je.adjustY,$t=je.shiftX,zt=je.shiftY,Vt=function(on){return typeof on=="boolean"?on:on>=0},Tt,Le,$e,qe;Yn();var lt=Vt(dt),Xe=We[0]===Ce[0];if(lt&&We[0]==="t"&&(Le>be.bottom||b.current.bt)){var ht=Ie;Xe?ht-=Z-ue:ht=pe.y-Ae.y-He;var Kt=At(Fe,ht),tn=At(Fe,ht,ee);Kt>Te||Kt===Te&&(!he||tn>=Ee)?(b.current.bt=!0,Ie=ht,He=-He,st.points=[Vn(We,0),Vn(Ce,0)]):b.current.bt=!1}if(lt&&We[0]==="b"&&(Tt<be.top||b.current.tb)){var qt=Ie;Xe?qt+=Z-ue:qt=ct.y-De.y-He;var mt=At(Fe,qt),An=At(Fe,qt,ee);mt>Te||mt===Te&&(!he||An>=Ee)?(b.current.tb=!0,Ie=qt,He=-He,st.points=[Vn(We,0),Vn(Ce,0)]):b.current.tb=!1}var Fn=Vt(rt),jn=We[1]===Ce[1];if(Fn&&We[1]==="l"&&(qe>be.right||b.current.rl)){var nn=Fe;jn?nn-=te-oe:nn=pe.x-Ae.x-Re;var sr=At(nn,Ie),lr=At(nn,Ie,ee);sr>Te||sr===Te&&(!he||lr>=Ee)?(b.current.rl=!0,Fe=nn,Re=-Re,st.points=[Vn(We,1),Vn(Ce,1)]):b.current.rl=!1}if(Fn&&We[1]==="r"&&($e<be.left||b.current.lr)){var Bt=Fe;jn?Bt+=te-oe:Bt=ct.x-De.x-Re;var Ln=At(Bt,Ie),Wr=At(Bt,Ie,ee);Ln>Te||Ln===Te&&(!he||Wr>=Ee)?(b.current.lr=!0,Fe=Bt,Re=-Re,st.points=[Vn(We,1),Vn(Ce,1)]):b.current.lr=!1}Yn();var Xt=$t===!0?0:$t;typeof Xt=="number"&&($e<ee.left&&(Fe-=$e-ee.left-Re,T.x+oe<ee.left+Xt&&(Fe+=T.x-ee.left+oe-Xt)),qe>ee.right&&(Fe-=qe-ee.right-Re,T.x>ee.right-Xt&&(Fe+=T.x-ee.right+Xt)));var rn=zt===!0?0:zt;typeof rn=="number"&&(Tt<ee.top&&(Ie-=Tt-ee.top-He,T.y+ue<ee.top+rn&&(Ie+=T.y-ee.top+ue-rn)),Le>ee.bottom&&(Ie-=Le-ee.bottom-He,T.y>ee.bottom-rn&&(Ie+=T.y-ee.bottom+rn)));var zn=D.x+Fe,xn=zn+te,pn=D.y+Ie,wn=pn+Z,Xn=T.x,$n=Xn+oe,an=T.y,Gr=an+ue,Ur=Math.max(zn,Xn),Kr=Math.min(xn,$n),cr=(Ur+Kr)/2,ot=cr-zn,Ke=Math.max(pn,an),tt=Math.min(wn,Gr),xt=(Ke+tt)/2,Ot=xt-pn;i==null||i(t,st);var hn=Pe.right-D.x-(Fe+D.width),bn=Pe.bottom-D.y-(Ie+D.height);ne===1&&(Fe=Math.round(Fe),hn=Math.round(hn)),J===1&&(Ie=Math.round(Ie),bn=Math.round(bn));var qr={ready:!0,offsetX:Fe/ne,offsetY:Ie/J,offsetR:hn/ne,offsetB:bn/J,arrowX:ot/ne,arrowY:Ot/J,scaleX:ne,scaleY:J,align:st};d(qr)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&g()})},S=function(){d(function(y){return L(L({},y),{},{ready:!1})})};return ut(S,[r]),ut(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function Wy(e,t,n,r,a){ut(function(){if(e&&t&&n){let f=function(){r(),a()};var o=t,i=n,s=Ps(o),l=Ps(i),u=Ta(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}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function Gy(e,t,n,r,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&r&&(!a||o)){var u=function(S){var h;l.current&&!i(((h=S.composedPath)===null||h===void 0||(h=h.call(S))===null||h===void 0?void 0:h[0])||S.target)&&s(!1)},d=Ta(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=So(n);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,p=n==null||(v=n.getRootNode)===null||v===void 0?void 0:v.call(n),g=(b=r.getRootNode)===null||b===void 0?void 0:b.call(r);Pr(p===g,"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,n,r,a,o])}var Uy=["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 Ky(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:il,t=c.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,l=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,b=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,S=m===void 0?.1:m,h=n.focusDelay,y=n.blurDelay,E=n.mask,C=n.maskClosable,x=C===void 0?!0:C,P=n.getPopupContainer,w=n.forceRender,$=n.autoDestroy,N=n.destroyPopupOnHide,F=n.popup,M=n.popupClassName,A=n.popupStyle,I=n.popupPlacement,H=n.builtinPlacements,_=H===void 0?{}:H,O=n.popupAlign,T=n.zIndex,z=n.stretch,D=n.getPopupClassNameFromAlign,B=n.fresh,G=n.alignPoint,k=n.onPopupClick,U=n.onPopupAlign,q=n.arrow,Y=n.popupMotion,Q=n.maskMotion,Z=n.popupTransitionName,te=n.popupAnimation,ue=n.maskTransitionName,oe=n.maskAnimation,de=n.className,Se=n.getTriggerDOMNode,V=Ve(n,Uy),se=$||N||!1,ie=c.useState(!1),he=W(ie,2),me=he[0],ee=he[1];ut(function(){ee(gf())},[]);var le=c.useRef({}),be=c.useContext(Ac),Pe=c.useMemo(function(){return{registerSubPopup:function(Oe,ft){le.current[Oe]=ft,be==null||be.registerSubPopup(Oe,ft)}}},[be]),ne=z0(),J=c.useState(null),fe=W(J,2),ge=fe[0],at=fe[1],Be=c.useRef(null),Re=Mt(function(ve){Be.current=ve,ua(ve)&&ge!==ve&&at(ve),be==null||be.registerSubPopup(ne,ve)}),He=c.useState(null),Ue=W(He,2),Ge=Ue[0],Ne=Ue[1],xe=c.useRef(null),et=Mt(function(ve){ua(ve)&&Ge!==ve&&(Ne(ve),xe.current=ve)}),ke=c.Children.only(i),_e=(ke==null?void 0:ke.props)||{},ae={},Ce=Mt(function(ve){var Oe,ft,St=Ge;return(St==null?void 0:St.contains(ve))||((Oe=So(St))===null||Oe===void 0?void 0:Oe.host)===ve||ve===St||(ge==null?void 0:ge.contains(ve))||((ft=So(ge))===null||ft===void 0?void 0:ft.host)===ve||ve===ge||Object.values(le.current).some(function(vt){return(vt==null?void 0:vt.contains(ve))||ve===vt})}),We=jc(o,Y,te,Z),it=jc(o,Q,oe,ue),yt=c.useState(v||!1),st=W(yt,2),Fe=st[0],Ie=st[1],Te=f??Fe,Ee=Mt(function(ve){f===void 0&&Ie(ve)});ut(function(){Ie(f||!1)},[f]);var pe=c.useRef(Te);pe.current=Te;var De=c.useRef([]);De.current=[];var ct=Mt(function(ve){var Oe;Ee(ve),((Oe=De.current[De.current.length-1])!==null&&Oe!==void 0?Oe:Te)!==ve&&(De.current.push(ve),b==null||b(ve))}),Ae=c.useRef(),je=function(){clearTimeout(Ae.current)},rt=function(Oe){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),ft===0?ct(Oe):Ae.current=setTimeout(function(){ct(Oe)},ft*1e3)};c.useEffect(function(){return je},[]);var dt=c.useState(!1),$t=W(dt,2),zt=$t[0],Vt=$t[1];ut(function(ve){(!ve||Te)&&Vt(!0)},[Te]);var Tt=c.useState(null),Le=W(Tt,2),$e=Le[0],qe=Le[1],lt=c.useState([0,0]),Xe=W(lt,2),ht=Xe[0],Kt=Xe[1],tn=function(Oe){Kt([Oe.clientX,Oe.clientY])},qt=ky(Te,ge,G?ht:Ge,I,_,O,U),mt=W(qt,11),An=mt[0],Fn=mt[1],jn=mt[2],nn=mt[3],sr=mt[4],lr=mt[5],Bt=mt[6],Ln=mt[7],Wr=mt[8],Xt=mt[9],rn=mt[10],zn=Vy(me,l,u,d),xn=W(zn,2),pn=xn[0],wn=xn[1],Xn=pn.has("click"),$n=wn.has("click")||wn.has("contextMenu"),an=Mt(function(){zt||rn()}),Gr=function(){pe.current&&G&&$n&&rt(!1)};Wy(Te,Ge,ge,an,Gr),ut(function(){an()},[ht,I]),ut(function(){Te&&!(_!=null&&_[I])&&an()},[JSON.stringify(O)]);var Ur=c.useMemo(function(){var ve=Hy(_,o,Xt,G);return K(ve,D==null?void 0:D(Xt))},[Xt,D,_,o,G]);c.useImperativeHandle(r,function(){return{nativeElement:xe.current,popupElement:Be.current,forceAlign:an}});var Kr=c.useState(0),cr=W(Kr,2),ot=cr[0],Ke=cr[1],tt=c.useState(0),xt=W(tt,2),Ot=xt[0],hn=xt[1],bn=function(){if(z&&Ge){var Oe=Ge.getBoundingClientRect();Ke(Oe.width),hn(Oe.height)}},qr=function(){bn(),an()},At=function(Oe){Vt(!1),rn(),p==null||p(Oe)},Yn=function(){return new Promise(function(Oe){bn(),qe(function(){return Oe})})};ut(function(){$e&&(rn(),$e(),qe(null))},[$e]);function Ft(ve,Oe,ft,St){ae[ve]=function(vt){var ja;St==null||St(vt),rt(Oe,ft);for(var Zo=arguments.length,yl=new Array(Zo>1?Zo-1:0),La=1;La<Zo;La++)yl[La-1]=arguments[La];(ja=_e[ve])===null||ja===void 0||ja.call.apply(ja,[_e,vt].concat(yl))}}(Xn||$n)&&(ae.onClick=function(ve){var Oe;pe.current&&$n?rt(!1):!pe.current&&Xn&&(tn(ve),rt(!0));for(var ft=arguments.length,St=new Array(ft>1?ft-1:0),vt=1;vt<ft;vt++)St[vt-1]=arguments[vt];(Oe=_e.onClick)===null||Oe===void 0||Oe.call.apply(Oe,[_e,ve].concat(St))}),Gy(Te,$n,Ge,ge,E,x,Ce,rt);var on=pn.has("hover"),Dn=wn.has("hover"),ur,Xr;on&&(Ft("onMouseEnter",!0,g,function(ve){tn(ve)}),Ft("onPointerEnter",!0,g,function(ve){tn(ve)}),ur=function(Oe){(Te||zt)&&ge!==null&&ge!==void 0&&ge.contains(Oe.target)&&rt(!0,g)},G&&(ae.onMouseMove=function(ve){var Oe;(Oe=_e.onMouseMove)===null||Oe===void 0||Oe.call(_e,ve)})),Dn&&(Ft("onMouseLeave",!1,S),Ft("onPointerLeave",!1,S),Xr=function(){rt(!1,S)}),pn.has("focus")&&Ft("onFocus",!0,h),wn.has("focus")&&Ft("onBlur",!1,y),pn.has("contextMenu")&&(ae.onContextMenu=function(ve){var Oe;pe.current&&wn.has("contextMenu")?rt(!1):(tn(ve),rt(!0)),ve.preventDefault();for(var ft=arguments.length,St=new Array(ft>1?ft-1:0),vt=1;vt<ft;vt++)St[vt-1]=arguments[vt];(Oe=_e.onContextMenu)===null||Oe===void 0||Oe.call.apply(Oe,[_e,ve].concat(St))}),de&&(ae.className=K(_e.className,de));var Yr=L(L({},_e),ae),Fa={},qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];qo.forEach(function(ve){V[ve]&&(Fa[ve]=function(){for(var Oe,ft=arguments.length,St=new Array(ft),vt=0;vt<ft;vt++)St[vt]=arguments[vt];(Oe=Yr[ve])===null||Oe===void 0||Oe.call.apply(Oe,[Yr].concat(St)),V[ve].apply(V,St)})});var Xo=c.cloneElement(ke,L(L({},Yr),Fa)),Yo={x:lr,y:Bt},Qo=q?L({},q!==!0?q:{}):null;return c.createElement(c.Fragment,null,c.createElement(un,{disabled:!Te,ref:et,onResize:qr},c.createElement(Cf,{getTriggerDOMNode:Se},Xo)),c.createElement(Ac.Provider,{value:Pe},c.createElement(Sf,{portal:e,ref:Re,prefixCls:o,popup:F,className:K(M,Ur),style:A,target:Ge,onMouseEnter:ur,onMouseLeave:Xr,onPointerEnter:ur,zIndex:T,open:Te,keepDom:zt,fresh:B,onClick:k,mask:E,motion:We,maskMotion:it,onVisibleChanged:At,onPrepare:Yn,forceRender:w,autoDestroy:se,getPopupContainer:P,align:Xt,arrow:Qo,arrowPos:Yo,ready:An,offsetX:Fn,offsetY:jn,offsetR:nn,offsetB:sr,onAlign:an,stretch:z,targetWidth:ot/Ln,targetHeight:Ot/Wr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const ll=Ky(il);function Ns(e,t,n){return K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ef=(e,t)=>t||e,xf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=R.useContext(Qe),s=R.useContext(Ab),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??l)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=Zg.includes(u);return[u,d]};var qy={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"},Xy=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:qy}))},wf=c.forwardRef(Xy);process.env.NODE_ENV!=="production"&&(wf.displayName="CheckOutlined");const wa=["xxl","xl","lg","md","sm","xs"],Yy=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)`}),Qy=e=>{const t=e,n=[].concat(wa).reverse();return n.forEach((r,a)=>{const o=r.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<n.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${n[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function Zy(){const[,e]=Mn(),t=Yy(Qy(e));return R.useMemo(()=>{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.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)}),n.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 $f(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:K("".concat(n,"-content"),o),style:i},c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var pr={shiftX:64,adjustY:1},hr={adjustX:1,shiftY:!0},Qt=[0,0],Jy={left:{points:["cr","cl"],overflow:hr,offset:[-4,0],targetOffset:Qt},right:{points:["cl","cr"],overflow:hr,offset:[4,0],targetOffset:Qt},top:{points:["bc","tc"],overflow:pr,offset:[0,-4],targetOffset:Qt},bottom:{points:["tc","bc"],overflow:pr,offset:[0,4],targetOffset:Qt},topLeft:{points:["bl","tl"],overflow:pr,offset:[0,-4],targetOffset:Qt},leftTop:{points:["tr","tl"],overflow:hr,offset:[-4,0],targetOffset:Qt},topRight:{points:["br","tr"],overflow:pr,offset:[0,-4],targetOffset:Qt},rightTop:{points:["tl","tr"],overflow:hr,offset:[4,0],targetOffset:Qt},bottomRight:{points:["tr","br"],overflow:pr,offset:[0,4],targetOffset:Qt},rightBottom:{points:["bl","br"],overflow:hr,offset:[4,0],targetOffset:Qt},bottomLeft:{points:["tl","bl"],overflow:pr,offset:[0,4],targetOffset:Qt},leftBottom:{points:["br","bl"],overflow:hr,offset:[-4,0],targetOffset:Qt}},eS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],tS=function(t,n){var r=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,p=t.onVisibleChange,g=t.afterVisibleChange,m=t.transitionName,S=t.animation,h=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,P=t.destroyTooltipOnHide,w=P===void 0?!1:P,$=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,A=t.id,I=t.showArrow,H=I===void 0?!0:I,_=Ve(t,eS),O=R.useRef(null);R.useImperativeHandle(n,function(){return O.current});var T=L({},_);"visible"in t&&(T.popupVisible=t.visible);var z=function(){return c.createElement($f,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},M)};return c.createElement(ll,ye({popupClassName:r,prefixCls:v,popup:z,action:o,builtinPlacements:Jy,popupPlacement:E,ref:O,popupAlign:x,getPopupContainer:N,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:m,popupAnimation:S,popupMotion:h,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},T),b)};const nS=R.forwardRef(tS);function rS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,p=l,g=2*a-o,m=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1),y=`polygon(${h}px 100%, 50% ${h}px, ${2*a-h}px 100%, ${h}px 100%)`,E=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${l} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${v} L ${b} ${p} A ${r} ${r} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const aS=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${X(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Of=8;function Rf(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Of:r}}function Ya(e,t){return e?t:{}}function oS(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},aS(e,t,a)),{"&:before":{background:t}})]},Ya(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${X(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ya(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${X(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ya(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Ya(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function iS(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,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 Bc={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"]}},sS={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"]}},lS=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function cS(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Bc).forEach(u=>{const d=r&&sS[u]||Bc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,lS.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=Rf({contentRadius:o,limitVerticalRadius:!0});if(r)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=iS(u,v,t,n),i&&(f.htmlRegion="visibleFirst")}),l}const uS=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,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({},Dr(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${X(e.calc(u).div(2).equal())} ${X(d)}`,color:r,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,Of)}},[`${t}-content`]:{position:"relative"}}),Pp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},oS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},dS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Rf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),rS(_t(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Pf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return gn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=_t(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[uS(s),Oy(r,"zoom-big-fast")]},dS,{resetStyle:!1,injectStyle:t})(e)},fS=yo.map(e=>`${e}-inverse`);function vS(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ce(fS),ce(yo)).includes(e):yo.includes(e)}function Nf(e,t){const n=vS(t),r=K({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const mS=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(Qe),l=s("tooltip",t),[u,d,f]=Pf(l),v=Nf(l,o),b=v.arrowStyle,p=Object.assign(Object.assign({},i),v.overlayStyle),g=K(d,f,l,`${l}-pure`,`${l}-placement-${r}`,n,v.className);return u(c.createElement("div",{className:g,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement($f,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:p}),a)))};var gS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const pS=c.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:p=!0,title:g,overlay:m,builtinPlacements:S,arrowPointAtCenter:h=!1,autoAdjustOverflow:y=!0}=e,E=!!p,[,C]=Mn(),{getPopupContainer:x,getPrefixCls:P,direction:w}=c.useContext(Qe),$=wt("Tooltip"),N=c.useRef(null),F=()=>{var ne;(ne=N.current)===null||ne===void 0||ne.forceAlign()};c.useImperativeHandle(t,()=>{var ne;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(ne=N.current)===null||ne===void 0?void 0:ne.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ne=>{let[J,fe]=ne;$.deprecated(!(J in e),J,fe)}),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"&&$(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[M,A]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=!g&&!m&&g!==0,H=ne=>{var J,fe;A(I?!1:ne),I||((J=e.onOpenChange)===null||J===void 0||J.call(e,ne),(fe=e.onVisibleChange)===null||fe===void 0||fe.call(e,ne))},_=c.useMemo(()=>{var ne,J;let fe=h;return typeof p=="object"&&(fe=(J=(ne=p.pointAtCenter)!==null&&ne!==void 0?ne:p.arrowPointAtCenter)!==null&&J!==void 0?J:h),S||cS({arrowPointAtCenter:fe,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[h,p,S,C]),O=c.useMemo(()=>g===0?g:m||g||"",[m,g]),T=c.createElement(Rs,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:D="top",mouseEnterDelay:B=.1,mouseLeaveDelay:G=.1,overlayStyle:k,rootClassName:U}=e,q=gS(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=P("tooltip",a),Q=P(),Z=e["data-popover-inject"];let te=M;!("open"in e)&&!("visible"in e)&&I&&(te=!1);const ue=c.isValidElement(d)&&!Hd(d)?d:c.createElement("span",null,d),oe=ue.props,de=!oe.className||typeof oe.className=="string"?K(oe.className,o||`${Y}-open`):oe.className,[Se,V,se]=Pf(Y,!Z),ie=Nf(Y,l),he=ie.arrowStyle,me=Object.assign(Object.assign({},u),ie.overlayStyle),ee=K(s,{[`${Y}-rtl`]:w==="rtl"},ie.className,U,V,se),[le,be]=Nh("Tooltip",q.zIndex),Pe=c.createElement(nS,Object.assign({},q,{zIndex:le,showArrow:E,placement:D,mouseEnterDelay:B,mouseLeaveDelay:G,prefixCls:Y,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},he),k),getTooltipContainer:z||i||x,ref:N,builtinPlacements:_,overlay:T,visible:te,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:me,arrowContent:c.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Wd(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),te?Fo(ue,{className:de}):ue);return Se(c.createElement(nl.Provider,{value:be},Pe))}),Ia=pS;process.env.NODE_ENV!=="production"&&(Ia.displayName="Tooltip");Ia._InternalPanelDoNotUseOrYouWillBeFired=mS;var hS=re.ESC,bS=re.TAB;function yS(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!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 hS:s();break;case bS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Ct(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var SS=R.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=R.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=En(t,o==null?void 0:o.ref);return R.createElement(R.Fragment,null,r&&R.createElement("div",{className:"".concat(a,"-arrow")}),R.cloneElement(o,{ref:rr(o)?i:void 0}))}),br={adjustX:1,adjustY:1},yr=[0,0],CS={topLeft:{points:["bl","tl"],overflow:br,offset:[0,-4],targetOffset:yr},top:{points:["bc","tc"],overflow:br,offset:[0,-4],targetOffset:yr},topRight:{points:["br","tr"],overflow:br,offset:[0,-4],targetOffset:yr},bottomLeft:{points:["tl","bl"],overflow:br,offset:[0,4],targetOffset:yr},bottom:{points:["tc","bc"],overflow:br,offset:[0,4],targetOffset:yr},bottomRight:{points:["tr","br"],overflow:br,offset:[0,4],targetOffset:yr}},ES=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function xS(e,t){var n,r=e.arrow,a=r===void 0?!1:r,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?CS:v,p=e.getPopupContainer,g=e.showAction,m=e.hideAction,S=e.overlayClassName,h=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,P=e.overlay,w=e.children,$=e.onVisibleChange,N=Ve(e,ES),F=R.useState(),M=W(F,2),A=M[0],I=M[1],H="visible"in e?y:A,_=R.useRef(null),O=R.useRef(null),T=R.useRef(null);R.useImperativeHandle(t,function(){return _.current});var z=function(Z){I(Z),$==null||$(Z)};yS({visible:H,triggerRef:T,onVisibleChange:z,autoFocus:x,overlayRef:O});var D=function(Z){var te=e.onOverlayClick;I(!1),te&&te(Z)},B=function(){return R.createElement(SS,{ref:O,overlay:P,prefixCls:i,arrow:a})},G=function(){return typeof P=="function"?B:B()},k=function(){var Z=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!te},U=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(i,"-open")},q=R.cloneElement(w,{className:K((n=w.props)===null||n===void 0?void 0:n.className,H&&U()),ref:rr(w)?En(T,w.ref):void 0}),Y=m;return!Y&&C.indexOf("contextMenu")!==-1&&(Y=["click"]),R.createElement(ll,ye({builtinPlacements:b},N,{prefixCls:i,ref:_,popupClassName:K(S,j({},"".concat(i,"-show-arrow"),a)),popupStyle:h,action:C,showAction:g,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:k()?"minWidth":"",popup:G(),onPopupVisibleChange:z,onPopupClick:D,getPopupContainer:p}),q)}const wS=R.forwardRef(xS);var _f=c.createContext(null);function Tf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function If(e){var t=c.useContext(_f);return Tf(t,e)}var $S=["children","locked"],vn=c.createContext(null);function OS(e,t){var n=L({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function $a(e){var t=e.children,n=e.locked,r=Ve(e,$S),a=c.useContext(vn),o=Po(function(){return OS(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!ga(i[1],s[1],!0))});return c.createElement(vn.Provider,{value:o},t)}var RS=[],Mf=c.createContext(null);function Bo(){return c.useContext(Mf)}var Af=c.createContext(RS);function Ma(e){var t=c.useContext(Af);return c.useMemo(function(){return e!==void 0?[].concat(ce(t),[e]):t},[t,e])}var Ff=c.createContext(null),cl=c.createContext({});function Hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rl(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function PS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ce(e.querySelectorAll("*")).filter(function(r){return Hc(r,t)});return Hc(e,t)&&n.unshift(e),n}var _s=re.LEFT,Ts=re.RIGHT,Is=re.UP,co=re.DOWN,uo=re.ENTER,jf=re.ESC,ea=re.HOME,ta=re.END,kc=[Is,co,_s,Ts];function NS(e,t,n,r){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&r===uo)return{inlineTrigger:!0};var v=(a={},j(a,Is,l),j(a,co,u),a),b=(o={},j(o,_s,n?u:l),j(o,Ts,n?l:u),j(o,co,d),j(o,uo,d),o),p=(i={},j(i,Is,l),j(i,co,u),j(i,uo,d),j(i,jf,f),j(i,_s,n?d:f),j(i,Ts,n?f:d),i),g={inline:v,horizontal:b,vertical:p,inlineSub:v,horizontalSub:p,verticalSub:p},m=(s=g["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(m){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 _S(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function TS(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function ul(e,t){var n=PS(e,!0);return n.filter(function(r){return t.has(r)})}function Wc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=ul(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var Ms=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Tf(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function IS(e,t,n,r,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Ct.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var p=b.which;if([].concat(kc,[uo,jf,ea,ta]).includes(p)){var g=o(),m=Ms(g,r),S=m,h=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=TS(C,h),P=E.get(x),w=NS(e,i(P,!0).length===1,n,p);if(!w&&p!==ea&&p!==ta)return;(kc.includes(p)||[ea,ta].includes(p))&&b.preventDefault();var $=function(O){if(O){var T=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(T=z);var D=E.get(O);s(D),v(),d.current=Ct(function(){f.current===D&&T.focus()})}};if([ea,ta].includes(p)||w.sibling||!x){var N;!x||e==="inline"?N=a.current:N=_S(x);var F,M=ul(N,h);p===ea?F=M[0]:p===ta?F=M[M.length-1]:F=Wc(N,h,x,w.offset),$(F)}else if(w.inlineTrigger)l(P);else if(w.offset>0)l(P,!0),v(),d.current=Ct(function(){m=Ms(g,r);var _=x.getAttribute("aria-controls"),O=document.getElementById(_),T=Wc(O,m.elements);$(T)},5);else if(w.offset<0){var A=i(P,!0),I=A[A.length-2],H=y.get(I);l(I,!1),$(H)}}u==null||u(b)}}function MS(e){Promise.resolve().then(e)}var dl="__RC_UTIL_PATH_SPLIT__",Gc=function(t){return t.join(dl)},AS=function(t){return t.split(dl)},As="rc-menu-more";function FS(){var e=c.useState({}),t=W(e,2),n=t[1],r=R.useRef(new Map),a=R.useRef(new Map),o=c.useState([]),i=W(o,2),s=i[0],l=i[1],u=R.useRef(0),d=R.useRef(!1),f=function(){d.current||n({})},v=R.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&Ye(!r.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=Gc(E);a.current.set(C,y),r.current.set(y,C),u.current+=1;var x=u.current;MS(function(){x===u.current&&f()})},[]),b=R.useCallback(function(y,E){var C=Gc(E);a.current.delete(C),r.current.delete(y)},[]),p=R.useCallback(function(y){l(y)},[]),g=R.useCallback(function(y,E){var C=r.current.get(y)||"",x=AS(C);return E&&s.includes(x[0])&&x.unshift(As),x},[s]),m=R.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=g(C,!0);return x.includes(E)})},[g]),S=function(){var E=ce(r.current.keys());return s.length&&E.push(As),E},h=R.useCallback(function(y){var E="".concat(r.current.get(y)).concat(dl),C=new Set;return ce(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:p,isSubPathKey:m,getKeyPath:g,getKeys:S,getSubPathKeys:h}}function ra(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var jS=Math.random().toFixed(5).toString().slice(2),Uc=0;function LS(e){var t=Jt(e,{value:e}),n=W(t,2),r=n[0],a=n[1];return c.useEffect(function(){Uc+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(jS,"-").concat(Uc);a("rc-menu-uuid-".concat(o))},[]),r}function Lf(e,t,n,r){var a=c.useContext(vn),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),l}function zf(e){var t=c.useContext(vn),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*a}:{paddingLeft:o*a}}function Df(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,L({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var zS=["item"];function $o(e){var t=e.item,n=Ve(e,zS);return Object.defineProperty(n,"item",{get:function(){return Ye(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var DS=["title","attribute","elementRef"],VS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],BS=["active"],HS=function(e){Un(n,e);var t=Kn(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Nt(n,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Ve(a,DS),u=mn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ye(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Tn.Item,ye({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),n}(c.Component),kS=c.forwardRef(function(e,t){var n,r=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,p=e.onKeyDown,g=e.onFocus,m=Ve(e,VS),S=If(o),h=c.useContext(vn),y=h.prefixCls,E=h.onItemClick,C=h.disabled,x=h.overflowDisabled,P=h.itemIcon,w=h.selectedKeys,$=h.onActive,N=c.useContext(cl),F=N._internalRenderMenuItem,M="".concat(y,"-item"),A=c.useRef(),I=c.useRef(),H=C||s,_=Oa(t,I),O=Ma(o);process.env.NODE_ENV!=="production"&&i&&Ye(!1,"MenuItem should not leave undefined `key`.");var T=function(oe){return{key:o,keyPath:ce(O).reverse(),item:A.current,domEvent:oe}},z=l||P,D=Lf(o,H,f,v),B=D.active,G=Ve(D,BS),k=w.includes(o),U=zf(O.length),q=function(oe){if(!H){var de=T(oe);b==null||b($o(de)),E(de)}},Y=function(oe){if(p==null||p(oe),oe.which===re.ENTER){var de=T(oe);b==null||b($o(de)),E(de)}},Q=function(oe){$(o),g==null||g(oe)},Z={};e.role==="option"&&(Z["aria-selected"]=k);var te=c.createElement(HS,ye({ref:A,elementRef:_,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},m,G,Z,{component:"li","aria-disabled":s,style:L(L({},U),r),className:K(M,(n={},j(n,"".concat(M,"-active"),B),j(n,"".concat(M,"-selected"),k),j(n,"".concat(M,"-disabled"),H),n),a),onClick:q,onKeyDown:Y,onFocus:Q}),u,c.createElement(Df,{props:L(L({},e),{},{isSelected:k}),icon:z}));return F&&(te=F(te,e,{selected:k})),te});function WS(e,t){var n=e.eventKey,r=Bo(),a=Ma(n);return c.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:c.createElement(kS,ye({},e,{ref:t}))}const Ho=c.forwardRef(WS);var GS=["className","children"],US=function(t,n){var r=t.className,a=t.children,o=Ve(t,GS),i=c.useContext(vn),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",ye({className:K(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),a)},fl=c.forwardRef(US);fl.displayName="SubMenuList";function vl(e,t){return Cn(e).map(function(n,r){if(c.isValidElement(n)){var a,o,i=n.key,s=(a=(o=n.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),[r]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(n,u)}return n})}var It={adjustX:1,adjustY:1},KS={topLeft:{points:["bl","tl"],overflow:It},topRight:{points:["br","tr"],overflow:It},bottomLeft:{points:["tl","bl"],overflow:It},bottomRight:{points:["tr","br"],overflow:It},leftTop:{points:["tr","tl"],overflow:It},leftBottom:{points:["br","bl"],overflow:It},rightTop:{points:["tl","tr"],overflow:It},rightBottom:{points:["bl","br"],overflow:It}},qS={topLeft:{points:["bl","tl"],overflow:It},topRight:{points:["br","tr"],overflow:It},bottomLeft:{points:["tl","bl"],overflow:It},bottomRight:{points:["tr","br"],overflow:It},rightTop:{points:["tr","tl"],overflow:It},rightBottom:{points:["br","bl"],overflow:It},leftTop:{points:["tl","tr"],overflow:It},leftBottom:{points:["bl","br"],overflow:It}};function Vf(e,t,n){if(t)return t;if(n)return n[e]||n.other}var XS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function YS(e){var t=e.prefixCls,n=e.visible,r=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(vn),v=f.getPopupContainer,b=f.rtl,p=f.subMenuOpenDelay,g=f.subMenuCloseDelay,m=f.builtinPlacements,S=f.triggerSubMenuAction,h=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=c.useState(!1),P=W(x,2),w=P[0],$=P[1],N=L(b?L({},qS):L({},KS),m),F=XS[u],M=Vf(u,E,C),A=c.useRef(M);u!=="inline"&&(A.current=M);var I=L(L({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=Ct(function(){$(n)}),function(){Ct.cancel(H.current)}},[n]),c.createElement(ll,{prefixCls:t,popupClassName:K("".concat(t,"-popup"),j({},"".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?[]:[S],mouseEnterDelay:p,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:h,popupMotion:I,fresh:!0},r)}function QS(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,o="inline",i=c.useContext(vn),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),p=W(b,2),g=p[0],m=p[1],S=v.current?n:!1;c.useEffect(function(){v.current&&m(!1)},[f]);var h=L({},Vf(o,u,d));r.length>1&&(h.motionAppear=!1);var y=h.onVisibleChanged;return h.onVisibleChanged=function(E){return!v.current&&!E&&m(!0),y==null?void 0:y(E)},g?null:c.createElement($a,{mode:o,locked:!v.current},c.createElement(ar,ye({visible:S},h,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return c.createElement(fl,{id:t,className:C,style:x},a)}))}var ZS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],JS=["active"],eC=c.forwardRef(function(e,t){var n,r=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,p=e.popupOffset,g=e.popupStyle,m=e.onClick,S=e.onMouseEnter,h=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=Ve(e,ZS),P=If(i),w=c.useContext(vn),$=w.prefixCls,N=w.mode,F=w.openKeys,M=w.disabled,A=w.overflowDisabled,I=w.activeKey,H=w.selectedKeys,_=w.itemIcon,O=w.expandIcon,T=w.onItemClick,z=w.onOpenChange,D=w.onActive,B=c.useContext(cl),G=B._internalRenderSubMenuItem,k=c.useContext(Ff),U=k.isSubPathKey,q=Ma(),Y="".concat($,"-submenu"),Q=M||l,Z=c.useRef(),te=c.useRef();process.env.NODE_ENV!=="production"&&s&&Ye(!1,"SubMenu should not leave undefined `key`.");var ue=f??_,oe=v??O,de=F.includes(i),Se=!A&&de,V=U(H,i),se=Lf(i,Q,E,C),ie=se.active,he=Ve(se,JS),me=c.useState(!1),ee=W(me,2),le=ee[0],be=ee[1],Pe=function(_e){Q||be(_e)},ne=function(_e){Pe(!0),S==null||S({key:i,domEvent:_e})},J=function(_e){Pe(!1),h==null||h({key:i,domEvent:_e})},fe=c.useMemo(function(){return ie||(N!=="inline"?le||U([I],i):!1)},[N,ie,I,le,i,U]),ge=zf(q.length),at=function(_e){Q||(y==null||y({key:i,domEvent:_e}),N==="inline"&&z(i,!de))},Be=ra(function(ke){m==null||m($o(ke)),T(ke)}),Re=function(_e){N!=="inline"&&z(i,_e)},He=function(){D(i)},Ue=P&&"".concat(P,"-popup"),Ge=c.createElement("div",ye({role:"menuitem",style:ge,className:"".concat(Y,"-title"),tabIndex:Q?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":A&&P?null:P,"aria-expanded":Se,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":Q,onClick:at,onFocus:He},he),o,c.createElement(Df,{icon:N!=="horizontal"?oe:void 0,props:L(L({},e),{},{isOpen:Se,isSubMenu:!0})},c.createElement("i",{className:"".concat(Y,"-arrow")}))),Ne=c.useRef(N);if(N!=="inline"&&q.length>1?Ne.current="vertical":Ne.current=N,!A){var xe=Ne.current;Ge=c.createElement(YS,{mode:xe,prefixCls:Y,visible:!u&&Se&&N!=="inline",popupClassName:b,popupOffset:p,popupStyle:g,popup:c.createElement($a,{mode:xe==="horizontal"?"vertical":xe},c.createElement(fl,{id:Ue,ref:te},d)),disabled:Q,onVisibleChange:Re},Ge)}var et=c.createElement(Tn.Item,ye({ref:t,role:"none"},x,{component:"li",style:r,className:K(Y,"".concat(Y,"-").concat(N),a,(n={},j(n,"".concat(Y,"-open"),Se),j(n,"".concat(Y,"-active"),fe),j(n,"".concat(Y,"-selected"),V),j(n,"".concat(Y,"-disabled"),Q),n)),onMouseEnter:ne,onMouseLeave:J}),Ge,!A&&c.createElement(QS,{id:Ue,open:Se,keyPath:q},d));return G&&(et=G(et,e,{selected:V,active:fe,open:Se,disabled:Q})),c.createElement($a,{onItemClick:Be,mode:N==="horizontal"?"vertical":N,itemIcon:ue,expandIcon:oe},et)}),ko=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Ma(n),o=vl(r,a),i=Bo();c.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=c.createElement(eC,ye({ref:t},e),o),c.createElement(Af.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(ko.displayName="SubMenu");function Bf(e){var t=e.className,n=e.style,r=c.useContext(vn),a=r.prefixCls,o=Bo();return o?null:c.createElement("li",{role:"separator",className:K("".concat(a,"-item-divider"),t),style:n})}var tC=["className","title","eventKey","children"],nC=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Ve(e,tC),i=c.useContext(vn),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",ye({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:K(l,n)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),ml=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Ma(n),o=vl(r,a),i=Bo();return i?o:c.createElement(nC,ye({ref:t},mn(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(ml.displayName="MenuItemGroup");var rC=["label","children","key","type"];function Fs(e,t){var n=t.item,r=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&we(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Ve(l,rC),p=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(r,ye({key:p},b,{title:u}),Fs(d,t)):c.createElement(a,ye({key:p},b,{title:u}),Fs(d,t)):v==="divider"?c.createElement(o,ye({key:p},b)):c.createElement(n,ye({key:p},b),u)}return null}).filter(function(i){return i})}function Kc(e,t,n,r){var a=e,o=L({divider:Bf,item:Ho,group:ml,submenu:ko},r);return t&&(a=Fs(t,o)),vl(a,n)}var aC=["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"],Qn=[],oC=c.forwardRef(function(e,t){var n,r,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,p=a.direction,g=a.id,m=a.mode,S=m===void 0?"vertical":m,h=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,P=a.subMenuCloseDelay,w=P===void 0?.1:P,$=a.forceSubMenuRender,N=a.defaultOpenKeys,F=a.openKeys,M=a.activeKey,A=a.defaultActiveFirst,I=a.selectable,H=I===void 0?!0:I,_=a.multiple,O=_===void 0?!1:_,T=a.defaultSelectedKeys,z=a.selectedKeys,D=a.onSelect,B=a.onDeselect,G=a.inlineIndent,k=G===void 0?24:G,U=a.motion,q=a.defaultMotions,Y=a.triggerSubMenuAction,Q=Y===void 0?"hover":Y,Z=a.builtinPlacements,te=a.itemIcon,ue=a.expandIcon,oe=a.overflowedIndicator,de=oe===void 0?"...":oe,Se=a.overflowedIndicatorPopupClassName,V=a.getPopupContainer,se=a.onClick,ie=a.onOpenChange,he=a.onKeyDown,me=a.openAnimation,ee=a.openTransitionName,le=a._internalRenderMenuItem,be=a._internalRenderSubMenuItem,Pe=a._internalComponents,ne=Ve(a,aC),J=c.useMemo(function(){return[Kc(b,v,Qn,Pe),Kc(b,v,Qn,{})]},[b,v,Pe]),fe=W(J,2),ge=fe[0],at=fe[1],Be=c.useState(!1),Re=W(Be,2),He=Re[0],Ue=Re[1],Ge=c.useRef(),Ne=LS(g),xe=p==="rtl";process.env.NODE_ENV!=="production"&&Ye(!me&&!ee,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var et=Jt(N,{value:F,postState:function(Ke){return Ke||Qn}}),ke=W(et,2),_e=ke[0],ae=ke[1],Ce=function(Ke){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xt(){ae(Ke),ie==null||ie(Ke)}tt?Rr.flushSync(xt):xt()},We=c.useState(_e),it=W(We,2),yt=it[0],st=it[1],Fe=c.useRef(!1),Ie=c.useMemo(function(){return(S==="inline"||S==="vertical")&&h?["vertical",h]:[S,!1]},[S,h]),Te=W(Ie,2),Ee=Te[0],pe=Te[1],De=Ee==="inline",ct=c.useState(Ee),Ae=W(ct,2),je=Ae[0],rt=Ae[1],dt=c.useState(pe),$t=W(dt,2),zt=$t[0],Vt=$t[1];c.useEffect(function(){rt(Ee),Vt(pe),Fe.current&&(De?ae(yt):Ce(Qn))},[Ee,pe]);var Tt=c.useState(0),Le=W(Tt,2),$e=Le[0],qe=Le[1],lt=$e>=ge.length-1||je!=="horizontal"||E;c.useEffect(function(){De&&st(_e)},[_e]),c.useEffect(function(){return Fe.current=!0,function(){Fe.current=!1}},[]);var Xe=FS(),ht=Xe.registerPath,Kt=Xe.unregisterPath,tn=Xe.refreshOverflowKeys,qt=Xe.isSubPathKey,mt=Xe.getKeyPath,An=Xe.getKeys,Fn=Xe.getSubPathKeys,jn=c.useMemo(function(){return{registerPath:ht,unregisterPath:Kt}},[ht,Kt]),nn=c.useMemo(function(){return{isSubPathKey:qt}},[qt]);c.useEffect(function(){tn(lt?Qn:ge.slice($e+1).map(function(ot){return ot.key}))},[$e,lt]);var sr=Jt(M||A&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:M}),lr=W(sr,2),Bt=lr[0],Ln=lr[1],Wr=ra(function(ot){Ln(ot)}),Xt=ra(function(){Ln(void 0)});R.useImperativeHandle(t,function(){return{list:Ge.current,focus:function(Ke){var tt,xt=An(),Ot=Ms(xt,Ne),hn=Ot.elements,bn=Ot.key2element,qr=Ot.element2key,At=ul(Ge.current,hn),Yn=Bt??(At[0]?qr.get(At[0]):(tt=ge.find(function(Dn){return!Dn.props.disabled}))===null||tt===void 0?void 0:tt.key),Ft=bn.get(Yn);if(Yn&&Ft){var on;Ft==null||(on=Ft.focus)===null||on===void 0||on.call(Ft,Ke)}}}});var rn=Jt(T||[],{value:z,postState:function(Ke){return Array.isArray(Ke)?Ke:Ke==null?Qn:[Ke]}}),zn=W(rn,2),xn=zn[0],pn=zn[1],wn=function(Ke){if(H){var tt=Ke.key,xt=xn.includes(tt),Ot;O?xt?Ot=xn.filter(function(bn){return bn!==tt}):Ot=[].concat(ce(xn),[tt]):Ot=[tt],pn(Ot);var hn=L(L({},Ke),{},{selectedKeys:Ot});xt?B==null||B(hn):D==null||D(hn)}!O&&_e.length&&je!=="inline"&&Ce(Qn)},Xn=ra(function(ot){se==null||se($o(ot)),wn(ot)}),$n=ra(function(ot,Ke){var tt=_e.filter(function(Ot){return Ot!==ot});if(Ke)tt.push(ot);else if(je!=="inline"){var xt=Fn(ot);tt=tt.filter(function(Ot){return!xt.has(Ot)})}ga(_e,tt,!0)||Ce(tt,!0)}),an=function(Ke,tt){var xt=tt??!_e.includes(Ke);$n(Ke,xt)},Gr=IS(je,Bt,xe,Ne,Ge,An,mt,Ln,an,he);c.useEffect(function(){Ue(!0)},[]);var Ur=c.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:be}},[le,be]),Kr=je!=="horizontal"||E?ge:ge.map(function(ot,Ke){return c.createElement($a,{key:ot.key,overflowDisabled:Ke>$e},ot)}),cr=c.createElement(Tn,ye({id:g,ref:Ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ho,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(je),u,(r={},j(r,"".concat(i,"-inline-collapsed"),zt),j(r,"".concat(i,"-rtl"),xe),r),s),dir:p,style:l,role:"menu",tabIndex:f,data:Kr,renderRawItem:function(Ke){return Ke},renderRawRest:function(Ke){var tt=Ke.length,xt=tt?ge.slice(-tt):null;return c.createElement(ko,{eventKey:As,title:de,disabled:lt,internalPopupClose:tt===0,popupClassName:Se},xt)},maxCount:je!=="horizontal"||E?Tn.INVALIDATE:Tn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ke){qe(Ke)},onKeyDown:Gr},ne));return c.createElement(cl.Provider,{value:Ur},c.createElement(_f.Provider,{value:Ne},c.createElement($a,{prefixCls:i,rootClassName:s,mode:je,openKeys:_e,rtl:xe,disabled:y,motion:He?U:null,defaultMotions:He?q:null,activeKey:Bt,onActive:Wr,onInactive:Xt,selectedKeys:xn,inlineIndent:k,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:V,itemIcon:te,expandIcon:ue,onItemClick:Xn,onOpenChange:$n},c.createElement(Ff.Provider,{value:nn},cr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Mf.Provider,{value:jn},at)))))}),Aa=oC;Aa.Item=Ho;Aa.SubMenu=ko;Aa.ItemGroup=ml;Aa.Divider=Bf;var iC={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"},sC=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:iC}))},Hf=c.forwardRef(sC);process.env.NODE_ENV!=="production"&&(Hf.displayName="EllipsisOutlined");function lC(e){return _t(e,{inputAffixPadding:e.paddingXXS})}const cC=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:p,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:S,colorWarningOutline:h,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/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:p,hoverBorderColor:b,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${S}`,warningActiveShadow:`0 0 0 ${g}px ${h}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},uC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gl=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({},uC(_t(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),kf=(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}}),qc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),dC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gl(e))}),qc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),qc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Xc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),fC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Xc(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Xc(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gl(e))}})}),vC=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Wf=(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}}),Yc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),mC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gl(e))}),Yc(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Yc(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Qc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gC=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:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Qc(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Qc(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),pC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Gf=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${X(t)} ${X(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Uf=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Kf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},pC(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({},Gf(e)),"&-sm":Object.assign({},Uf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),hC=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Gf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Uf(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${X(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ra()),{[`${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},[`
|
|
169
|
+
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},my=new $t("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),gy=new $t("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),py=new $t("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),hy=new $t("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),by=new $t("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yy=new $t("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Sy=new $t("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Cy=new $t("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ey={"slide-up":{inKeyframes:my,outKeyframes:gy},"slide-down":{inKeyframes:py,outKeyframes:hy},"slide-left":{inKeyframes:by,outKeyframes:yy},"slide-right":{inKeyframes:Sy,outKeyframes:Cy}},Lc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Ey[t];return[Sf(n,a,o,e.motionDurationMid),{[`
|
|
170
|
+
${n}-enter,
|
|
171
|
+
${n}-appear
|
|
172
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xy=new $t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wy=new $t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Dc=new $t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zc=new $t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),$y=new $t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Oy=new $t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ry=new $t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Py=new $t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_y=new $t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ny=new $t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ty=new $t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Iy=new $t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),My={zoom:{inKeyframes:xy,outKeyframes:wy},"zoom-big":{inKeyframes:Dc,outKeyframes:zc},"zoom-big-fast":{inKeyframes:Dc,outKeyframes:zc},"zoom-left":{inKeyframes:Ry,outKeyframes:Py},"zoom-right":{inKeyframes:_y,outKeyframes:Ny},"zoom-up":{inKeyframes:$y,outKeyframes:Oy},"zoom-down":{inKeyframes:Ty,outKeyframes:Iy}},Ay=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=My[t];return[Sf(n,a,o,e.motionDurationFast),{[`
|
|
173
|
+
${n}-enter,
|
|
174
|
+
${n}-appear
|
|
175
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cf=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 jy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gn=void 0;function Fy(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,m=p===void 0?"div":p,S=Je(e,jy),g=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==gn?o(a):v,C;n||(C={opacity:g?0:1,height:g?0:gn,overflowY:g?"hidden":gn,order:i?h:gn,pointerEvents:g?"none":gn,position:g?"absolute":gn});var x={};g&&(x["aria-hidden"]=!0);var R=c.createElement(m,Oe({className:Y(!n&&r,d),style:z(z({},C),f)},x,S,{ref:t}),E);return i&&(R=c.createElement(vr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var fa=c.forwardRef(Fy);fa.displayName="Item";function Ly(e){if(typeof MessageChannel>"u")_t(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dy(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Ly(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=Bt(function(s){e(function(){o(s)})});return[a,i]}var Ro=P.createContext(null),zy=["component"],Vy=["className"],By=["className"],ky=function(t,r){var n=c.useContext(Ro);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,zy);return c.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=Je(n,Vy),u=t.className,d=Je(t,By);return c.createElement(Ro.Provider,{value:null},c.createElement(fa,Oe({ref:r,className:Y(s,u)},l,d)))},Ef=c.forwardRef(ky);Ef.displayName="RawItem";var Hy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xf="responsive",wf="invalidate";function Wy(e){return"+ ".concat(e.length," ...")}function Gy(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,m=e.renderRawRest,S=e.suffix,g=e.component,y=g===void 0?"div":g,E=e.itemComponent,C=e.onVisibleChange,x=Je(e,Hy),R=f==="full",w=Dy(),$=ta(w,null),T=U($,2),F=T[0],j=T[1],A=F||0,M=ta(w,new Map),H=U(M,2),N=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],Q=W[1],Z=ta(w,0),J=U(Z,2),te=J[0],ae=J[1],fe=P.useState(null),de=U(fe,2),ve=de[0],we=de[1],B=P.useState(null),ce=U(B,2),se=ce[0],Ce=ce[1],pe=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=P.useState(!1),me=U(ne,2),xe=me[0],Me=me[1],oe="".concat(n,"-item"),re=Math.max(V,q),ge=h===xf,he=o.length&&ge,tt=h===wf,qe=he||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Re=o;return he?F===null&&R?Re=o:Re=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Re=o.slice(0,h)),Re},[o,d,F,h,he]),Ue=P.useMemo(function(){return he?o.slice(pe+1):o.slice(Ae.length)},[o,Ae,he,pe]),Xe=P.useCallback(function(Re,be){var Ge;return typeof l=="function"?l(Re):(Ge=l&&(Re==null?void 0:Re[l]))!==null&&Ge!==void 0?Ge:be},[l]),Ze=P.useCallback(i||function(Re){return Re},[i]);function Fe(Re,be,Ge){se===Re&&(be===void 0||be===ve)||(Ce(Re),Ge||(Me(Re<o.length-1),C==null||C(Re)),be!==void 0&&we(be))}function Ne(Re,be){j(be.clientWidth)}function it(Re,be){O(function(Ge){var pt=new Map(Ge);return be===null?pt.delete(Re):pt.set(Re,be),pt})}function Ye(Re,be){Q(be),k(q)}function Le(Re,be){ae(be)}function ue(Re){return N.get(Xe(Ae[Re],Re))}yt(function(){if(A&&typeof re=="number"&&Ae){var Re=te,be=Ae.length,Ge=be-1;if(!be){Fe(0,null);return}for(var pt=0;pt<be;pt+=1){var ke=ue(pt);if(R&&(ke=ke||0),ke===void 0){Fe(pt-1,void 0,!0);break}if(Re+=ke,Ge===0&&Re<=A||pt===Ge-1&&Re+ue(Ge)<=A){Fe(Ge,null);break}else if(Re+re>A){Fe(pt-1,Re-ke-te+q);break}}S&&ue(0)+te>A&&we(null)}},[A,N,q,te,Xe,Ae]);var Ee=xe&&!!Ue.length,Ke={};ve!==null&&he&&(Ke={position:"absolute",left:ve,top:0});var rt={prefixCls:oe,responsive:he,component:E,invalidate:tt},bt=s?function(Re,be){var Ge=Xe(Re,be);return c.createElement(Ro.Provider,{key:Ge,value:z(z({},rt),{},{order:be,item:Re,itemKey:Ge,registerSize:it,display:be<=pe})},s(Re,be))}:function(Re,be){var Ge=Xe(Re,be);return c.createElement(fa,Oe({},rt,{order:be,key:Ge,item:Re,renderItem:Ze,itemKey:Ge,registerSize:it,display:be<=pe}))},ut,Be={order:Ee?pe:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ye,display:Ee};if(m)m&&(ut=c.createElement(Ro.Provider,{value:z(z({},rt),Be)},m(Ue)));else{var Ve=p||Wy;ut=c.createElement(fa,Oe({},rt,Be),typeof Ve=="function"?Ve(Ue):Ve)}var De=c.createElement(y,Oe({className:Y(!tt&&n,b),style:v,ref:t},x),Ae.map(bt),qe?ut:null,S&&c.createElement(fa,Oe({},rt,{responsive:ge,responsiveDisabled:!he,order:pe,className:"".concat(oe,"-suffix"),registerSize:Le,display:!0,style:Ke}),S));return ge&&(De=c.createElement(vr,{onResize:Ne,disabled:!he},De)),De}var jr=c.forwardRef(Gy);jr.displayName="Overflow";jr.Item=Ef;jr.RESPONSIVE=xf;jr.INVALIDATE=wf;function Uy(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],m=h[0],S=h[1],g=p[0],y=p[1];m===g||!["t","b"].includes(m)?b.top=f:m==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=u:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Y("".concat(t,"-arrow"),i),style:b},s)}function Ky(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(sn,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Y("".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 Of=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,m=e.motion,S=e.maskMotion,g=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,N=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),Q=q[0],Z=q[1];if(yt(function(){!Q&&K&&i&&Z(!0)},[Q,K,i]),!Q)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(T||!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(C,{open:g||k,getContainer:y&&function(){return y(i)},autoDestroy:E},c.createElement(Ky,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),c.createElement(vr,{onResize:H,disabled:!l},function(ce){return c.createElement(sn,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(a,"-hidden")},m,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ce){var pe;m==null||(pe=m.onVisibleChanged)===null||pe===void 0||pe.call(m,Ce),s(Ce)}}),function(se,Ce){var pe=se.className,ne=se.style,me=Y(a,pe,n);return c.createElement("div",{ref:Or(ce,t,Ce),className:me,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:x},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(Uy,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement($f,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Of.displayName="Popup");var Rf=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=on(r),o=c.useCallback(function(s){Gs(t,n?n(s):s)},[n]),i=_a(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Rf.displayName="TriggerWrapper");var Vc=c.createContext(null);function Bc(e){return e?Array.isArray(e)?e:[e]:[]}function qy(e,t,r,n){return c.useMemo(function(){var a=Bc(r??t),o=Bc(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 Xy(){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 Yy(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(Xy((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function kc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Is(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 Hc(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,m=ra(s),S=ra(l),g=ra(u),y=ra(d),E=Oa(Math.round(f.width/h*1e3)/1e3),C=Oa(Math.round(f.height/v*1e3)/1e3),x=(h-p-g-y)*E,R=(v-b-m-S)*C,w=m*C,$=S*C,T=g*E,F=y*E,j=0,A=0;if(o==="clip"){var M=ra(i);j=M*E,A=M*C}var H=f.x+T-j,N=f.y+w-A,O=H+f.width+2*j-T-F-x,I=N+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function Wc(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 Gc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[Wc(e.width,a),Wc(e.height,o)]}function Uc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pn(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 kr(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 Qy(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?Is(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Bt(function(){if(t&&r&&e){let Gt=function(Ut,cr){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,dn=V.x+Ut,Yn=V.y+cr,Qn=dn+ae,Da=Yn+te,Qo=Math.max(dn,Br.left),Zo=Math.max(Yn,Br.top),Jo=Math.min(Qn,Br.right),ei=Math.min(Da,Br.bottom);return Math.max(0,(Jo-Qo)*(ei-Zo))},Zr=function(){_=V.y+Ve,G=_+te,X=V.x+Be,ie=X+ae};var g,y,E=t,C=E.ownerDocument,x=Aa(E),R=x.getComputedStyle(E),w=R.width,$=R.height,T=R.position,F=E.style.left,j=E.style.top,A=E.style.right,M=E.style.bottom,H=E.style.overflow,N=z(z({},a[n]),o),O=C.createElement("div");(g=E.parentElement)===null||g===void 0||g.appendChild(O),O.style.left="".concat(E.offsetLeft,"px"),O.style.top="".concat(E.offsetTop,"px"),O.style.position=T,O.style.height="".concat(E.offsetHeight,"px"),O.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.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=E.getBoundingClientRect(),k=C.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Q=k.scrollHeight,Z=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:-Z,right:q-J,bottom:Q-Z},B=N.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var Ce=B===se,pe=Hc(we,v),ne=Hc(ve,v),me=B===ce?ne:pe,xe=Ce?ne:me;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Me=E.getBoundingClientRect();E.style.left=F,E.style.top=j,E.style.right=A,E.style.bottom=M,E.style.overflow=H,(y=E.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)&&!sl(r))return;var ge=N.offset,he=N.targetOffset,tt=Gc(V,ge),qe=U(tt,2),Ae=qe[0],Ue=qe[1],Xe=Gc(I,he),Ze=U(Xe,2),Fe=Ze[0],Ne=Ze[1];I.x-=Fe,I.y-=Ne;var it=N.points||[],Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=Uc(ue),Ke=Uc(Le),rt=pn(I,Ee),bt=pn(V,Ke),ut=z({},N),Be=rt.x-bt.x+Ae,Ve=rt.y-bt.y+Ue,De=Gt(Be,Ve),Re=Gt(Be,Ve,ne),be=pn(I,["t","l"]),Ge=pn(V,["t","l"]),pt=pn(I,["b","r"]),ke=pn(V,["b","r"]),He=N.overflow||{},st=He.adjustX,ht=He.adjustY,Rt=He.shiftX,Dt=He.shiftY,kt=function(cr){return typeof cr=="boolean"?cr:cr>=0},_,G,X,ie;Zr();var Pe=kt(ht),$e=Ke[0]===Ee[0];if(Pe&&Ke[0]==="t"&&(G>xe.bottom||b.current.bt)){var _e=Ve;$e?_e-=te-fe:_e=be.y-ke.y-Ue;var Ie=Gt(Be,_e),vt=Gt(Be,_e,ne);Ie>De||Ie===De&&(!Ce||vt>=Re)?(b.current.bt=!0,Ve=_e,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.bt=!1}if(Pe&&Ke[0]==="b"&&(_<xe.top||b.current.tb)){var et=Ve;$e?et+=te-fe:et=pt.y-Ge.y-Ue;var ze=Gt(Be,et),Et=Gt(Be,et,ne);ze>De||ze===De&&(!Ce||Et>=Re)?(b.current.tb=!0,Ve=et,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.tb=!1}var Ht=kt(st),zt=Ke[1]===Ee[1];if(Ht&&Ke[1]==="l"&&(ie>xe.right||b.current.rl)){var mt=Be;zt?mt-=ae-de:mt=be.x-ke.x-Ae;var yr=Gt(mt,Ve),Dr=Gt(mt,Ve,ne);yr>De||yr===De&&(!Ce||Dr>=Re)?(b.current.rl=!0,Be=mt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.rl=!1}if(Ht&&Ke[1]==="r"&&(X<xe.left||b.current.lr)){var Wt=Be;zt?Wt+=ae-de:Wt=pt.x-Ge.x-Ae;var zr=Gt(Wt,Ve),Gn=Gt(Wt,Ve,ne);zr>De||zr===De&&(!Ce||Gn>=Re)?(b.current.lr=!0,Be=Wt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.lr=!1}Zr();var tr=Rt===!0?0:Rt;typeof tr=="number"&&(X<ne.left&&(Be-=X-ne.left-Ae,I.x+de<ne.left+tr&&(Be+=I.x-ne.left+de-tr)),ie>ne.right&&(Be-=ie-ne.right-Ae,I.x>ne.right-tr&&(Be+=I.x-ne.right+tr)));var sr=Dt===!0?0:Dt;typeof sr=="number"&&(_<ne.top&&(Ve-=_-ne.top-Ue,I.y+fe<ne.top+sr&&(Ve+=I.y-ne.top+fe-sr)),G>ne.bottom&&(Ve-=G-ne.bottom-Ue,I.y>ne.bottom-sr&&(Ve+=I.y-ne.bottom+sr)));var Vr=V.x+Be,Rr=Vr+ae,Sr=V.y+Ve,Pr=Sr+te,Qr=I.x,_r=Qr+de,lr=I.y,Un=lr+fe,Kn=Math.max(Vr,Qr),qn=Math.min(Rr,_r),un=(Kn+qn)/2,gt=un-Vr,nt=Math.max(Sr,lr),dt=Math.min(Pr,Un),Tt=(nt+dt)/2,Mt=Tt-Sr;i==null||i(t,ut);var Cr=Me.right-V.x-(Be+V.width),Er=Me.bottom-V.y-(Ve+V.height);oe===1&&(Be=Math.round(Be),Cr=Math.round(Cr)),re===1&&(Ve=Math.round(Ve),Er=Math.round(Er));var Xn={ready:!0,offsetX:Be/oe,offsetY:Ve/re,offsetR:Cr/oe,offsetB:Er/re,arrowX:gt/oe,arrowY:Mt/re,scaleX:oe,scaleY:re,align:ut};d(Xn)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},S=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return yt(S,[n]),yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function Zy(e,t,r,n,a){yt(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Is(o),l=Is(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 Jy(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(S){var g;l.current&&!i(((g=S.composedPath)===null||g===void 0||(g=g.call(S))===null||g===void 0?void 0:g[0])||S.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=xo(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);_n(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 eS=["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 tS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ul,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,m=r.mouseLeaveDelay,S=m===void 0?.1:m,g=r.focusDelay,y=r.blurDelay,E=r.mask,C=r.maskClosable,x=C===void 0?!0:C,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,N=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,Q=r.arrow,Z=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,we=r.getTriggerDOMNode,B=Je(r,eS),ce=$||T||!1,se=c.useState(!1),Ce=U(se,2),pe=Ce[0],ne=Ce[1];yt(function(){ne(Cf())},[]);var me=c.useRef({}),xe=c.useContext(Vc),Me=c.useMemo(function(){return{registerSubPopup:function(je,St){me.current[je]=St,xe==null||xe.registerSubPopup(je,St)}}},[xe]),oe=U0(),re=c.useState(null),ge=U(re,2),he=ge[0],tt=ge[1],qe=c.useRef(null),Ae=Bt(function(Se){qe.current=Se,va(Se)&&he!==Se&&tt(Se),xe==null||xe.registerSubPopup(oe,Se)}),Ue=c.useState(null),Xe=U(Ue,2),Ze=Xe[0],Fe=Xe[1],Ne=c.useRef(null),it=Bt(function(Se){va(Se)&&Ze!==Se&&(Fe(Se),Ne.current=Se)}),Ye=c.Children.only(i),Le=(Ye==null?void 0:Ye.props)||{},ue={},Ee=Bt(function(Se){var je,St,Pt=Ze;return(Pt==null?void 0:Pt.contains(Se))||((je=xo(Pt))===null||je===void 0?void 0:je.host)===Se||Se===Pt||(he==null?void 0:he.contains(Se))||((St=xo(he))===null||St===void 0?void 0:St.host)===Se||Se===he||Object.values(me.current).some(function(Ct){return(Ct==null?void 0:Ct.contains(Se))||Se===Ct})}),Ke=kc(o,Z,ae,te),rt=kc(o,J,de,fe),bt=c.useState(v||!1),ut=U(bt,2),Be=ut[0],Ve=ut[1],De=f??Be,Re=Bt(function(Se){f===void 0&&Ve(Se)});yt(function(){Ve(f||!1)},[f]);var be=c.useRef(De);be.current=De;var Ge=c.useRef([]);Ge.current=[];var pt=Bt(function(Se){var je;Re(Se),((je=Ge.current[Ge.current.length-1])!==null&&je!==void 0?je:De)!==Se&&(Ge.current.push(Se),b==null||b(Se))}),ke=c.useRef(),He=function(){clearTimeout(ke.current)},st=function(je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;He(),St===0?pt(je):ke.current=setTimeout(function(){pt(je)},St*1e3)};c.useEffect(function(){return He},[]);var ht=c.useState(!1),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];yt(function(Se){(!Se||De)&&kt(!0)},[De]);var _=c.useState(null),G=U(_,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),$e=U(Pe,2),_e=$e[0],Ie=$e[1],vt=function(je){Ie([je.clientX,je.clientY])},et=Qy(De,he,K?_e:Ze,M,N,O,q),ze=U(et,11),Et=ze[0],Ht=ze[1],zt=ze[2],mt=ze[3],yr=ze[4],Dr=ze[5],Wt=ze[6],zr=ze[7],Gn=ze[8],tr=ze[9],sr=ze[10],Vr=qy(pe,l,u,d),Rr=U(Vr,2),Sr=Rr[0],Pr=Rr[1],Qr=Sr.has("click"),_r=Pr.has("click")||Pr.has("contextMenu"),lr=Bt(function(){Dt||sr()}),Un=function(){be.current&&K&&_r&&st(!1)};Zy(De,Ze,he,lr,Un),yt(function(){lr()},[_e,M]),yt(function(){De&&!(N!=null&&N[M])&&lr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Se=Yy(N,o,tr,K);return Y(Se,V==null?void 0:V(tr))},[tr,V,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:qe.current,forceAlign:lr}});var qn=c.useState(0),un=U(qn,2),gt=un[0],nt=un[1],dt=c.useState(0),Tt=U(dt,2),Mt=Tt[0],Cr=Tt[1],Er=function(){if(D&&Ze){var je=Ze.getBoundingClientRect();nt(je.width),Cr(je.height)}},Xn=function(){Er(),lr()},Gt=function(je){kt(!1),sr(),h==null||h(je)},Zr=function(){return new Promise(function(je){Er(),ie(function(){return je})})};yt(function(){X&&(sr(),X(),ie(null))},[X]);function Ut(Se,je,St,Pt){ue[Se]=function(Ct){var za;Pt==null||Pt(Ct),st(je,St);for(var ti=arguments.length,xl=new Array(ti>1?ti-1:0),Va=1;Va<ti;Va++)xl[Va-1]=arguments[Va];(za=Le[Se])===null||za===void 0||za.call.apply(za,[Le,Ct].concat(xl))}}(Qr||_r)&&(ue.onClick=function(Se){var je;be.current&&_r?st(!1):!be.current&&Qr&&(vt(Se),st(!0));for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onClick)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),Jy(De,_r,Ze,he,E,x,Ee,st);var cr=Sr.has("hover"),Br=Pr.has("hover"),dn,Yn;cr&&(Ut("onMouseEnter",!0,p,function(Se){vt(Se)}),Ut("onPointerEnter",!0,p,function(Se){vt(Se)}),dn=function(je){(De||Dt)&&he!==null&&he!==void 0&&he.contains(je.target)&&st(!0,p)},K&&(ue.onMouseMove=function(Se){var je;(je=Le.onMouseMove)===null||je===void 0||je.call(Le,Se)})),Br&&(Ut("onMouseLeave",!1,S),Ut("onPointerLeave",!1,S),Yn=function(){st(!1,S)}),Sr.has("focus")&&Ut("onFocus",!0,g),Pr.has("focus")&&Ut("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Se){var je;be.current&&Pr.has("contextMenu")?st(!1):(vt(Se),st(!0)),Se.preventDefault();for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onContextMenu)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),ve&&(ue.className=Y(Le.className,ve));var Qn=z(z({},Le),ue),Da={},Qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qo.forEach(function(Se){B[Se]&&(Da[Se]=function(){for(var je,St=arguments.length,Pt=new Array(St),Ct=0;Ct<St;Ct++)Pt[Ct]=arguments[Ct];(je=Qn[Se])===null||je===void 0||je.call.apply(je,[Qn].concat(Pt)),B[Se].apply(B,Pt)})});var Zo=c.cloneElement(Ye,z(z({},Qn),Da)),Jo={x:Dr,y:Wt},ei=Q?z({},Q!==!0?Q:{}):null;return c.createElement(c.Fragment,null,c.createElement(vr,{disabled:!De,ref:it,onResize:Xn},c.createElement(Rf,{getTriggerDOMNode:we},Zo)),c.createElement(Vc.Provider,{value:Me},c.createElement(Of,{portal:e,ref:Ae,prefixCls:o,popup:F,className:Y(j,Kn),style:A,target:Ze,onMouseEnter:dn,onMouseLeave:Yn,onPointerEnter:dn,zIndex:I,open:De,keepDom:Dt,fresh:k,onClick:W,mask:E,motion:Ke,maskMotion:rt,onVisibleChanged:Gt,onPrepare:Zr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:tr,arrow:ei,arrowPos:Jo,ready:Et,offsetX:Ht,offsetY:zt,offsetR:mt,offsetB:yr,onAlign:lr,stretch:D,targetWidth:gt/zr,targetHeight:Mt/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const fl=tS(ul);function Ms(e,t,r){return Y({[`${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 Pf=(e,t)=>t||e,_f=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(ot),s=P.useContext(kb),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=ip.includes(u);return[u,d]};var rS={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"},nS=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:rS}))},Nf=c.forwardRef(nS);process.env.NODE_ENV!=="production"&&(Nf.displayName="CheckOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],aS=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)`}),oS=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 iS(){const[,e]=Lr(),t=aS(oS(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Tf(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:Y("".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 hn={shiftX:64,adjustY:1},bn={adjustX:1,shiftY:!0},nr=[0,0],sS={left:{points:["cr","cl"],overflow:bn,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:bn,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:hn,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:hn,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:hn,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:hn,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:hn,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:bn,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:hn,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:bn,offset:[-4,0],targetOffset:nr}},lS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],cS=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,m=t.transitionName,S=t.animation,g=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,N=Je(t,lS),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var I=z({},N);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(Tf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(fl,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:sS,popupPlacement:E,ref:O,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:m,popupAnimation:S,popupMotion:g,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const uS=P.forwardRef(cS);function dS(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,m=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),g=n*(Math.sqrt(2)-1),y=`polygon(${g}px 100%, 50% ${g}px, ${2*a-g}px 100%, ${g}px 100%)`,E=`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} ${m} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const fS=(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"}}},If=8;function Mf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?If:n}}function Ja(e,t){return e?t:{}}function vS(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"},fS(e,t,a)),{"&:before":{background:t}})]},Ja(!!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}}}})),Ja(!!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}}}})),Ja(!!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}})),Ja(!!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 mS(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 Kc={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"]}},gS={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"]}},pS=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function hS(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Kc).forEach(u=>{const d=n&&gS[u]||Kc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,pS.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=Mf({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=mS(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const bS=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,If)}},[`${t}-content`]:{position:"relative"}}),Fp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},vS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},yS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Mf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),dS(Lt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Af=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return br("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Lt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[bS(s),Ay(n,"zoom-big-fast")]},yS,{resetStyle:!1,injectStyle:t})(e)},SS=Eo.map(e=>`${e}-inverse`);function CS(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(SS),ye(Eo)).includes(e):Eo.includes(e)}function jf(e,t){const r=CS(t),n=Y({[`${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 ES=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("tooltip",t),[u,d,f]=Af(l),v=jf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Y(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(Tf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var xS=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 wS=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:m,builtinPlacements:S,arrowPointAtCenter:g=!1,autoAdjustOverflow:y=!0}=e,E=!!h,[,C]=Lr(),{getPopupContainer:x,getPrefixCls:R,direction:w}=c.useContext(ot),$=It("Tooltip"),T=c.useRef(null),F=()=>{var oe;(oe=T.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=T.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,ge]=oe;$.deprecated(!(re in e),re,ge)}),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]=or(!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&&!m&&p!==0,H=oe=>{var re,ge;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(ge=e.onVisibleChange)===null||ge===void 0||ge.call(e,oe))},N=c.useMemo(()=>{var oe,re;let ge=g;return typeof h=="object"&&(ge=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:g),S||hS({arrowPointAtCenter:ge,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,h,S,C]),O=c.useMemo(()=>p===0?p:m||p||"",[m,p]),I=c.createElement(Ts,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Q=xS(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Z=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)&&!qd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Y(de.className,o||`${Z}-open`):de.className,[we,B,ce]=Af(Z,!te),se=jf(Z,l),Ce=se.arrowStyle,pe=Object.assign(Object.assign({},u),se.overlayStyle),ne=Y(s,{[`${Z}-rtl`]:w==="rtl"},se.className,q,B,ce),[me,xe]=Lh("Tooltip",Q.zIndex),Me=c.createElement(uS,Object.assign({},Q,{zIndex:me,showArrow:E,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ce),W),getTooltipContainer:D||i||x,ref:T,builtinPlacements:N,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:pe,arrowContent:c.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:Yd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Do(fe,{className:ve}):fe);return we(c.createElement(il.Provider,{value:xe},Me))}),ja=wS;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=ES;var $S=le.ESC,OS=le.TAB;function RS(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 $S:s();break;case OS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&_t(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var PS=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Or(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:on(o)?i:void 0}))}),yn={adjustX:1,adjustY:1},Sn=[0,0],_S={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:yn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:yn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:yn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:yn,offset:[0,4],targetOffset:Sn}},NS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function TS(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?_S:v,h=e.getPopupContainer,p=e.showAction,m=e.hideAction,S=e.overlayClassName,g=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,NS),F=P.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,N=P.useRef(null),O=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var D=function(te){M(te),$==null||$(te)};RS({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:x,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return P.createElement(PS,{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")},Q=P.cloneElement(w,{className:Y((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:on(w)?Or(I,w.ref):void 0}),Z=m;return!Z&&C.indexOf("contextMenu")!==-1&&(Z=["click"]),P.createElement(fl,Oe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Y(S,L({},"".concat(i,"-show-arrow"),a)),popupStyle:g,action:C,showAction:p,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Q)}const IS=P.forwardRef(TS);var Ff=c.createContext(null);function Lf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Df(e){var t=c.useContext(Ff);return Lf(t,e)}var MS=["children","locked"],pr=c.createContext(null);function AS(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 Pa(e){var t=e.children,r=e.locked,n=Je(e,MS),a=c.useContext(pr),o=To(function(){return AS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(pr.Provider,{value:o},t)}var jS=[],zf=c.createContext(null);function Wo(){return c.useContext(zf)}var Vf=c.createContext(jS);function Fa(e){var t=c.useContext(Vf);return c.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Bf=c.createContext(null),vl=c.createContext({});function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sl(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 FS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return qc(n,t)});return qc(e,t)&&r.unshift(e),r}var As=le.LEFT,js=le.RIGHT,Fs=le.UP,vo=le.DOWN,mo=le.ENTER,kf=le.ESC,na=le.HOME,aa=le.END,Xc=[Fs,vo,As,js];function LS(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,Fs,l),L(a,vo,u),a),b=(o={},L(o,As,r?u:l),L(o,js,r?l:u),L(o,vo,d),L(o,mo,d),o),h=(i={},L(i,Fs,l),L(i,vo,u),L(i,mo,d),L(i,kf,f),L(i,As,r?d:f),L(i,js,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},m=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(m){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 DS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function zS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function ml(e,t){var r=FS(e,!0);return r.filter(function(n){return t.has(n)})}function Yc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=ml(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 Ls=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(Lf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function VS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){_t.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Xc,[mo,kf,na,aa]).includes(h)){var p=o(),m=Ls(p,n),S=m,g=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=zS(C,g),R=E.get(x),w=LS(e,i(R,!0).length===1,r,h);if(!w&&h!==na&&h!==aa)return;(Xc.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=E.get(O);s(V),v(),d.current=_t(function(){f.current===V&&I.focus()})}};if([na,aa].includes(h)||w.sibling||!x){var T;!x||e==="inline"?T=a.current:T=DS(x);var F,j=ml(T,g);h===na?F=j[0]:h===aa?F=j[j.length-1]:F=Yc(T,g,x,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=_t(function(){m=Ls(p,n);var N=x.getAttribute("aria-controls"),O=document.getElementById(N),I=Yc(O,m.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 BS(e){Promise.resolve().then(e)}var gl="__RC_UTIL_PATH_SPLIT__",Qc=function(t){return t.join(gl)},kS=function(t){return t.split(gl)},Ds="rc-menu-more";function HS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&at(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=Qc(E);a.current.set(C,y),n.current.set(y,C),u.current+=1;var x=u.current;BS(function(){x===u.current&&f()})},[]),b=P.useCallback(function(y,E){var C=Qc(E);a.current.delete(C),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,E){var C=n.current.get(y)||"",x=kS(C);return E&&s.includes(x[0])&&x.unshift(Ds),x},[s]),m=P.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=p(C,!0);return x.includes(E)})},[p]),S=function(){var E=ye(n.current.keys());return s.length&&E.push(Ds),E},g=P.useCallback(function(y){var E="".concat(n.current.get(y)).concat(gl),C=new Set;return ye(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:m,getKeyPath:p,getKeys:S,getSubPathKeys:g}}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 WS=Math.random().toFixed(5).toString().slice(2),Zc=0;function GS(e){var t=or(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){Zc+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(WS,"-").concat(Zc);a("rc-menu-uuid-".concat(o))},[]),n}function Hf(e,t,r,n){var a=c.useContext(pr),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 Wf(e){var t=c.useContext(pr),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 Gf(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 US=["item"];function Po(e){var t=e.item,r=Je(e,US);return Object.defineProperty(r,"item",{get:function(){return at(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var KS=["title","attribute","elementRef"],qS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],XS=["active"],YS=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,KS),u=hr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return at(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(jr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),QS=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,m=Je(e,qS),S=Df(o),g=c.useContext(pr),y=g.prefixCls,E=g.onItemClick,C=g.disabled,x=g.overflowDisabled,R=g.itemIcon,w=g.selectedKeys,$=g.onActive,T=c.useContext(vl),F=T._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=C||s,N=_a(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&at(!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=Hf(o,H,f,v),k=V.active,K=Je(V,XS),W=w.includes(o),q=Wf(O.length),Q=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),E(ve)}},Z=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),E(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(YS,Oe({ref:A,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},m,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Y(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Q,onKeyDown:Z,onFocus:J}),u,c.createElement(Gf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function ZS(e,t){var r=e.eventKey,n=Wo(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(QS,Oe({},e,{ref:t}))}const Go=c.forwardRef(ZS);var JS=["className","children"],eC=function(t,r){var n=t.className,a=t.children,o=Je(t,JS),i=c.useContext(pr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",Oe({className:Y(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)},pl=c.forwardRef(eC);pl.displayName="SubMenuList";function hl(e,t){return $r(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 Vt={adjustX:1,adjustY:1},tC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},leftTop:{points:["tr","tl"],overflow:Vt},leftBottom:{points:["br","bl"],overflow:Vt},rightTop:{points:["tl","tr"],overflow:Vt},rightBottom:{points:["bl","br"],overflow:Vt}},rC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},rightTop:{points:["tr","tl"],overflow:Vt},rightBottom:{points:["br","bl"],overflow:Vt},leftTop:{points:["tl","tr"],overflow:Vt},leftBottom:{points:["bl","br"],overflow:Vt}};function Uf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var nC={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aC(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(pr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,m=f.builtinPlacements,S=f.triggerSubMenuAction,g=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=c.useState(!1),R=U(x,2),w=R[0],$=R[1],T=z(b?z({},rC):z({},tC),m),F=nC[u],j=Uf(u,E,C),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=_t(function(){$(r)}),function(){_t.cancel(H.current)}},[r]),c.createElement(fl,{prefixCls:t,popupClassName:Y("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:g,popupMotion:M,fresh:!0},n)}function oC(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(pr),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],m=h[1],S=v.current?r:!1;c.useEffect(function(){v.current&&m(!1)},[f]);var g=z({},Uf(o,u,d));n.length>1&&(g.motionAppear=!1);var y=g.onVisibleChanged;return g.onVisibleChanged=function(E){return!v.current&&!E&&m(!0),y==null?void 0:y(E)},p?null:c.createElement(Pa,{mode:o,locked:!v.current},c.createElement(sn,Oe({visible:S},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return c.createElement(pl,{id:t,className:C,style:x},a)}))}var iC=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sC=["active"],lC=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,m=e.onClick,S=e.onMouseEnter,g=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=Je(e,iC),R=Df(i),w=c.useContext(pr),$=w.prefixCls,T=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(vl),K=k._internalRenderSubMenuItem,W=c.useContext(Bf),q=W.isSubPathKey,Q=Fa(),Z="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&at(!1,"SubMenu should not leave undefined `key`.");var fe=f??N,de=v??O,ve=F.includes(i),we=!A&&ve,B=q(H,i),ce=Hf(i,J,E,C),se=ce.active,Ce=Je(ce,sC),pe=c.useState(!1),ne=U(pe,2),me=ne[0],xe=ne[1],Me=function(Le){J||xe(Le)},oe=function(Le){Me(!0),S==null||S({key:i,domEvent:Le})},re=function(Le){Me(!1),g==null||g({key:i,domEvent:Le})},ge=c.useMemo(function(){return se||(T!=="inline"?me||q([M],i):!1)},[T,se,M,me,i,q]),he=Wf(Q.length),tt=function(Le){J||(y==null||y({key:i,domEvent:Le}),T==="inline"&&D(i,!ve))},qe=ia(function(Ye){m==null||m(Po(Ye)),I(Ye)}),Ae=function(Le){T!=="inline"&&D(i,Le)},Ue=function(){V(i)},Xe=R&&"".concat(R,"-popup"),Ze=c.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Z,"-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":Xe,"aria-disabled":J,onClick:tt,onFocus:Ue},Ce),o,c.createElement(Gf,{icon:T!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},c.createElement("i",{className:"".concat(Z,"-arrow")}))),Fe=c.useRef(T);if(T!=="inline"&&Q.length>1?Fe.current="vertical":Fe.current=T,!A){var Ne=Fe.current;Ze=c.createElement(aC,{mode:Ne,prefixCls:Z,visible:!u&&we&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(Pa,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(pl,{id:Xe,ref:ae},d)),disabled:J,onVisibleChange:Ae},Ze)}var it=c.createElement(jr.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:Y(Z,"".concat(Z,"-").concat(T),a,(r={},L(r,"".concat(Z,"-open"),we),L(r,"".concat(Z,"-active"),ge),L(r,"".concat(Z,"-selected"),B),L(r,"".concat(Z,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Ze,!A&&c.createElement(oC,{id:Xe,open:we,keyPath:Q},d));return K&&(it=K(it,e,{selected:B,active:ge,open:we,disabled:J})),c.createElement(Pa,{onItemClick:qe,mode:T==="horizontal"?"vertical":T,itemIcon:fe,expandIcon:de},it)}),Uo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=hl(n,a),i=Wo();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(lC,Oe({ref:t},e),o),c.createElement(Vf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Uo.displayName="SubMenu");function Kf(e){var t=e.className,r=e.style,n=c.useContext(pr),a=n.prefixCls,o=Wo();return o?null:c.createElement("li",{role:"separator",className:Y("".concat(a,"-item-divider"),t),style:r})}var cC=["className","title","eventKey","children"],uC=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,cC),i=c.useContext(pr),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:Y(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))}),bl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=hl(n,a),i=Wo();return i?o:c.createElement(uC,Oe({ref:t},hr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(bl.displayName="MenuItemGroup");var dC=["label","children","key","type"];function zs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Te(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,dC),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,Oe({key:h},b,{title:u}),zs(d,t)):c.createElement(a,Oe({key:h},b,{title:u}),zs(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 Jc(e,t,r,n){var a=e,o=z({divider:Kf,item:Go,group:bl,submenu:Uo},n);return t&&(a=zs(t,o)),hl(a,r)}var fC=["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=[],vC=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,m=a.mode,S=m===void 0?"vertical":m,g=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,N=a.multiple,O=N===void 0?!1:N,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Q=a.defaultMotions,Z=a.triggerSubMenuAction,J=Z===void 0?"hover":Z,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,Ce=a.onKeyDown,pe=a.openAnimation,ne=a.openTransitionName,me=a._internalRenderMenuItem,xe=a._internalRenderSubMenuItem,Me=a._internalComponents,oe=Je(a,fC),re=c.useMemo(function(){return[Jc(b,v,Jr,Me),Jc(b,v,Jr,{})]},[b,v,Me]),ge=U(re,2),he=ge[0],tt=ge[1],qe=c.useState(!1),Ae=U(qe,2),Ue=Ae[0],Xe=Ae[1],Ze=c.useRef(),Fe=GS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&at(!pe&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var it=or(T,{value:F,postState:function(nt){return nt||Jr}}),Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tt(){ue(nt),se==null||se(nt)}dt?Pn.flushSync(Tt):Tt()},Ke=c.useState(Le),rt=U(Ke,2),bt=rt[0],ut=rt[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(S==="inline"||S==="vertical")&&g?["vertical",g]:[S,!1]},[S,g]),De=U(Ve,2),Re=De[0],be=De[1],Ge=Re==="inline",pt=c.useState(Re),ke=U(pt,2),He=ke[0],st=ke[1],ht=c.useState(be),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];c.useEffect(function(){st(Re),kt(be),Be.current&&(Ge?ue(bt):Ee(Jr))},[Re,be]);var _=c.useState(0),G=U(_,2),X=G[0],ie=G[1],Pe=X>=he.length-1||He!=="horizontal"||E;c.useEffect(function(){Ge&&ut(Le)},[Le]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var $e=HS(),_e=$e.registerPath,Ie=$e.unregisterPath,vt=$e.refreshOverflowKeys,et=$e.isSubPathKey,ze=$e.getKeyPath,Et=$e.getKeys,Ht=$e.getSubPathKeys,zt=c.useMemo(function(){return{registerPath:_e,unregisterPath:Ie}},[_e,Ie]),mt=c.useMemo(function(){return{isSubPathKey:et}},[et]);c.useEffect(function(){vt(Pe?Jr:he.slice(X+1).map(function(gt){return gt.key}))},[X,Pe]);var yr=or(j||A&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),Dr=U(yr,2),Wt=Dr[0],zr=Dr[1],Gn=ia(function(gt){zr(gt)}),tr=ia(function(){zr(void 0)});P.useImperativeHandle(t,function(){return{list:Ze.current,focus:function(nt){var dt,Tt=Et(),Mt=Ls(Tt,Fe),Cr=Mt.elements,Er=Mt.key2element,Xn=Mt.element2key,Gt=ml(Ze.current,Cr),Zr=Wt??(Gt[0]?Xn.get(Gt[0]):(dt=he.find(function(Br){return!Br.props.disabled}))===null||dt===void 0?void 0:dt.key),Ut=Er.get(Zr);if(Zr&&Ut){var cr;Ut==null||(cr=Ut.focus)===null||cr===void 0||cr.call(Ut,nt)}}}});var sr=or(I||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Jr:[nt]}}),Vr=U(sr,2),Rr=Vr[0],Sr=Vr[1],Pr=function(nt){if(H){var dt=nt.key,Tt=Rr.includes(dt),Mt;O?Tt?Mt=Rr.filter(function(Er){return Er!==dt}):Mt=[].concat(ye(Rr),[dt]):Mt=[dt],Sr(Mt);var Cr=z(z({},nt),{},{selectedKeys:Mt});Tt?k==null||k(Cr):V==null||V(Cr)}!O&&Le.length&&He!=="inline"&&Ee(Jr)},Qr=ia(function(gt){ce==null||ce(Po(gt)),Pr(gt)}),_r=ia(function(gt,nt){var dt=Le.filter(function(Mt){return Mt!==gt});if(nt)dt.push(gt);else if(He!=="inline"){var Tt=Ht(gt);dt=dt.filter(function(Mt){return!Tt.has(Mt)})}ba(Le,dt,!0)||Ee(dt,!0)}),lr=function(nt,dt){var Tt=dt??!Le.includes(nt);_r(nt,Tt)},Un=VS(He,Wt,Ne,Fe,Ze,Et,ze,zr,lr,Ce);c.useEffect(function(){Xe(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:xe}},[me,xe]),qn=He!=="horizontal"||E?he:he.map(function(gt,nt){return c.createElement(Pa,{key:gt.key,overflowDisabled:nt>X},gt)}),un=c.createElement(jr,Oe({id:p,ref:Ze,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Go,className:Y(i,"".concat(i,"-root"),"".concat(i,"-").concat(He),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Dt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var dt=nt.length,Tt=dt?he.slice(-dt):null;return c.createElement(Uo,{eventKey:Ds,title:ve,disabled:Pe,internalPopupClose:dt===0,popupClassName:we},Tt)},maxCount:He!=="horizontal"||E?jr.INVALIDATE:jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){ie(nt)},onKeyDown:Un},oe));return c.createElement(vl.Provider,{value:Kn},c.createElement(Ff.Provider,{value:Fe},c.createElement(Pa,{prefixCls:i,rootClassName:s,mode:He,openKeys:Le,rtl:Ne,disabled:y,motion:Ue?q:null,defaultMotions:Ue?Q:null,activeKey:Wt,onActive:Gn,onInactive:tr,selectedKeys:Rr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Qr,onOpenChange:_r},c.createElement(Bf.Provider,{value:mt},un),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(zf.Provider,{value:zt},tt)))))}),La=vC;La.Item=Go;La.SubMenu=Uo;La.ItemGroup=bl;La.Divider=Kf;var mC={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"},gC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:mC}))},qf=c.forwardRef(gC);process.env.NODE_ENV!=="production"&&(qf.displayName="EllipsisOutlined");function pC(e){return Lt(e,{inputAffixPadding:e.paddingXXS})}const hC=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:m,colorErrorOutline:S,colorWarningOutline:g,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 ${m}`,errorActiveShadow:`0 0 0 ${p}px ${S}`,warningActiveShadow:`0 0 0 ${p}px ${g}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},bC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yl=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({},bC(Lt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Xf=(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}}),eu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Xf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),yC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yl(e))}),eu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),eu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),SC=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}}},tu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),tu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yl(e))}})}),CC=(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)}},Yf=(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}}),ru=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),EC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yl(e))}),ru(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ru(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),xC=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}`}}}},nu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nu(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}`}}}})}),wC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qf=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Zf=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Jf=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}`},wC(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({},Qf(e)),"&-sm":Object.assign({},Zf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),$C=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({},Qf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Zf(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"},Na()),{[`${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},[`
|
|
147
176
|
& > ${t}-affix-wrapper,
|
|
148
177
|
& > ${t}-number-affix-wrapper,
|
|
149
|
-
& > ${
|
|
150
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${
|
|
151
|
-
& > ${
|
|
152
|
-
& > ${
|
|
153
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${
|
|
154
|
-
& > ${
|
|
155
|
-
& > ${
|
|
156
|
-
& > ${
|
|
157
|
-
& > ${
|
|
158
|
-
& > ${
|
|
159
|
-
& > ${
|
|
178
|
+
& > ${r}-picker-range
|
|
179
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
180
|
+
& > ${r}-select-auto-complete ${t},
|
|
181
|
+
& > ${r}-cascader-picker ${t},
|
|
182
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
183
|
+
& > ${r}-select:first-child > ${r}-select-selector,
|
|
184
|
+
& > ${r}-select-auto-complete:first-child ${t},
|
|
185
|
+
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
186
|
+
& > ${r}-select:last-child > ${r}-select-selector,
|
|
187
|
+
& > ${r}-cascader-picker:last-child ${t},
|
|
188
|
+
& > ${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}}}})}},OC=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)),Jf(e)),yC(e)),EC(e)),CC(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"}})}},RC=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)}`}}}},PC=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({},Jf(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}}}),RC(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},_C=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vn(e)),$C(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}}},SC(e)),xC(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}}})})}},NC=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,
|
|
160
189
|
> ${t},
|
|
161
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
190
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},TC=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"}},[`
|
|
162
191
|
&-allow-clear > ${t},
|
|
163
|
-
&-affix-wrapper${
|
|
164
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},wC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},qf=gn("Input",e=>{const t=_t(e,lC(e));return[bC(t),xC(t),SC(t),CC(t),EC(t),wC(t),nf(t)]},cC,{resetFont:!1});var $C={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"},OC=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:$C}))},Xf=c.forwardRef(OC);process.env.NODE_ENV!=="production"&&(Xf.displayName="PlusOutlined");const Wo=R.createContext(null);var RC=function(t){var n=t.activeTabOffset,r=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=R.useState(),f=W(d,2),v=f[0],b=f[1],p=R.useRef(),g=R.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function m(){Ct.cancel(p.current)}return R.useEffect(function(){var S={};if(n)if(r){S.width=g(n.width);var h=a?"right":"left";u==="start"&&(S[h]=n[h]),u==="center"&&(S[h]=n[h]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[h]=n[h]+n.width,S.transform="translateX(-100%)")}else S.height=g(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return m(),p.current=Ct(function(){b(S)}),m},[n,r,a,u,g]),{style:v}},Zc={width:0,height:0,left:0,top:0};function PC(e,t,n){return R.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Zc,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)||Zc}var f=a.get(l)||L({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function Jc(e,t){var n=c.useRef(e),r=c.useState({}),a=W(r,2),o=a[1];function i(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,i]}var NC=.1,eu=.01,fo=20,tu=Math.pow(.995,fo);function _C(e,t){var n=R.useState(),r=W(n,2),a=r[0],o=r[1],i=R.useState(0),s=W(i,2),l=s[0],u=s[1],d=R.useState(0),f=W(d,2),v=f[0],b=f[1],p=R.useState(),g=W(p,2),m=g[0],S=g[1],h=R.useRef();function y($){var N=$.touches[0],F=N.screenX,M=N.screenY;o({x:F,y:M}),window.clearInterval(h.current)}function E($){if(a){$.preventDefault();var N=$.touches[0],F=N.screenX,M=N.screenY;o({x:F,y:M});var A=F-a.x,I=M-a.y;t(A,I);var H=Date.now();u(H),b(H-l),S({x:A,y:I})}}function C(){if(a&&(o(null),S(null),m)){var $=m.x/v,N=m.y/v,F=Math.abs($),M=Math.abs(N);if(Math.max(F,M)<NC)return;var A=$,I=N;h.current=window.setInterval(function(){if(Math.abs(A)<eu&&Math.abs(I)<eu){window.clearInterval(h.current);return}A*=tu,I*=tu,t(A*fo,I*fo)},fo)}}var x=R.useRef();function P($){var N=$.deltaX,F=$.deltaY,M=0,A=Math.abs(N),I=Math.abs(F);A===I?M=x.current==="x"?N:F:A>I?(M=N,x.current="x"):(M=F,x.current="y"),t(-M,-M)&&$.preventDefault()}var w=R.useRef(null);w.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:P},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function N(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function M(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",M,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",F)}},[])}function Yf(e){var t=R.useState(0),n=W(t,2),r=n[0],a=n[1],o=R.useRef(0),i=R.useRef();return i.current=e,Bi(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function TC(e){var t=R.useRef([]),n=R.useState({}),r=W(n,2),a=r[1],o=R.useRef(typeof e=="function"?e():e),i=Yf(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 nu={width:0,height:0,left:0,top:0,right:0};function IC(e,t,n,r,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(n)):(d="height",f="top",v=-n),R.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,p=b,g=0;g<b;g+=1){var m=e.get(s[g].key)||nu;if(m[f]+m[d]>v+t){p=g-1;break}}for(var S=0,h=b-1;h>=0;h-=1){var y=e.get(s[h].key)||nu;if(y[f]<v){S=h+1;break}}return S>=p?[0,0]:[S,p]},[e,t,r,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function ru(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var MC="TABS_DQ";function Qf(e){return String(e).replace(/"/g,MC)}function Zf(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Jf=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),js=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return we(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(js.displayName="ExtraContent");var AC=c.forwardRef(function(e,t){var n=e.prefixCls,r=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,p=e.removeAriaLabel,g=e.onTabClick,m=e.getPopupContainer,S=e.popupClassName,h=R.useState(!1),y=W(h,2),E=y[0],C=y[1],x=R.useState(null),P=W(x,2),w=P[0],$=P[1],N=l.icon,F=N===void 0?"More":N,M="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),I=w!==null?"".concat(M,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function _(k,U){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:U,event:k})}var O=c.createElement(Aa,{onClick:function(U){var q=U.key,Y=U.domEvent;g(q,Y),C(!1)},prefixCls:"".concat(A,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(k){var U=k.closable,q=k.disabled,Y=k.closeIcon,Q=k.key,Z=k.label,te=Zf(U,Y,f,q);return c.createElement(Ho,{key:Q,id:"".concat(M,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:q},c.createElement("span",null,Z),te&&c.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),_(oe,Q)}},Y||f.removeIcon||"×"))}));function T(k){for(var U=a.filter(function(te){return!te.disabled}),q=U.findIndex(function(te){return te.key===w})||0,Y=U.length,Q=0;Q<Y;Q+=1){q=(q+k+Y)%Y;var Z=U[q];if(!Z.disabled){$(Z.key);return}}}function z(k){var U=k.which;if(!E){[re.DOWN,re.SPACE,re.ENTER].includes(U)&&(C(!0),k.preventDefault());return}switch(U){case re.UP:T(-1),k.preventDefault();break;case re.DOWN:T(1),k.preventDefault();break;case re.ESC:C(!1);break;case re.SPACE:case re.ENTER:w!==null&&g(w,k);break}}R.useEffect(function(){var k=document.getElementById(I);k&&k.scrollIntoView&&k.scrollIntoView(!1)},[w]),R.useEffect(function(){E||$(null)},[E]);var D=j({},b?"marginRight":"marginLeft",v);a.length||(D.visibility="hidden",D.order=1);var B=K(j({},"".concat(A,"-rtl"),b)),G=i?null:c.createElement(wS,ye({prefixCls:A,overlay:O,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:K(B,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},l),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:z},F));return c.createElement("div",{className:K("".concat(n,"-nav-operations"),d),style:u,ref:t},G,c.createElement(Jf,{prefixCls:n,locale:o,editable:f}))});const FC=c.memo(AC,function(e,t){return t.tabMoving});var jC=function(t){var n=t.prefixCls,r=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,p=t.editable,g=t.onClick,m=t.onFocus,S=t.style,h="".concat(n,"-tab"),y=Zf(f,u,p,l);function E(w){l||g(w)}function C(w){w.preventDefault(),w.stopPropagation(),p.onEdit("remove",{key:i,event:w})}var x=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),P=c.createElement("div",{key:i,"data-node-key":Qf(i),className:K(h,j(j(j({},"".concat(h,"-with-remove"),y),"".concat(h,"-active"),a),"".concat(h,"-disabled"),l)),style:S,onClick:E},c.createElement("div",{role:"tab","aria-selected":a,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(h,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),E($)},onKeyDown:function($){[re.SPACE,re.ENTER].includes($.which)&&($.preventDefault(),E($))},onFocus:m},d&&c.createElement("span",{className:"".concat(h,"-icon")},d),s&&x),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(h,"-remove"),onClick:function($){$.stopPropagation(),C($)}},u||p.removeIcon||"×"));return v?v(P):P},LC=function(t,n){var r=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-r)<1?[l,u,d-n.x,f-n.y]:[r,a,i,o]},Sr=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,o=n.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]},Qa=function(t,n){return t[n?0:1]},au=c.forwardRef(function(e,t){var n=e.className,r=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,p=e.onTabClick,g=e.onTabScroll,m=e.indicator,S=c.useContext(Wo),h=S.prefixCls,y=S.tabs,E=R.useRef(null),C=R.useRef(null),x=R.useRef(null),P=R.useRef(null),w=R.useRef(null),$=R.useRef(null),N=R.useRef(null),F=f==="top"||f==="bottom",M=Jc(0,function(Le,$e){F&&g&&g({direction:Le>$e?"left":"right"})}),A=W(M,2),I=A[0],H=A[1],_=Jc(0,function(Le,$e){!F&&g&&g({direction:Le>$e?"top":"bottom"})}),O=W(_,2),T=O[0],z=O[1],D=R.useState([0,0]),B=W(D,2),G=B[0],k=B[1],U=R.useState([0,0]),q=W(U,2),Y=q[0],Q=q[1],Z=R.useState([0,0]),te=W(Z,2),ue=te[0],oe=te[1],de=R.useState([0,0]),Se=W(de,2),V=Se[0],se=Se[1],ie=TC(new Map),he=W(ie,2),me=he[0],ee=he[1],le=PC(y,me,Y[0]),be=Qa(G,F),Pe=Qa(Y,F),ne=Qa(ue,F),J=Qa(V,F),fe=be<Pe+ne,ge=fe?be-J:be-ne,at="".concat(h,"-nav-operations-hidden"),Be=0,Re=0;F&&s?(Be=0,Re=Math.max(0,Pe-ge)):(Be=Math.min(0,ge-Pe),Re=0);function He(Le){return Le<Be?Be:Le>Re?Re:Le}var Ue=R.useRef(null),Ge=R.useState(),Ne=W(Ge,2),xe=Ne[0],et=Ne[1];function ke(){et(Date.now())}function _e(){Ue.current&&clearTimeout(Ue.current)}_C(P,function(Le,$e){function qe(lt,Xe){lt(function(ht){var Kt=He(ht+Xe);return Kt})}return fe?(F?qe(H,Le):qe(z,$e),_e(),ke(),!0):!1}),R.useEffect(function(){return _e(),xe&&(Ue.current=setTimeout(function(){et(0)},100)),_e},[xe]);var ae=IC(le,ge,F?I:T,Pe,ne,J,L(L({},e),{},{tabs:y})),Ce=W(ae,2),We=Ce[0],it=Ce[1],yt=Mt(function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,$e=le.get(Le)||{width:0,height:0,left:0,right:0,top:0};if(F){var qe=I;s?$e.right<I?qe=$e.right:$e.right+$e.width>I+ge&&(qe=$e.right+$e.width-ge):$e.left<-I?qe=-$e.left:$e.left+$e.width>-I+ge&&(qe=-($e.left+$e.width-ge)),z(0),H(He(qe))}else{var lt=T;$e.top<-T?lt=-$e.top:$e.top+$e.height>-T+ge&&(lt=-($e.top+$e.height-ge)),H(0),z(He(lt))}}),st={};f==="top"||f==="bottom"?st[s?"marginRight":"marginLeft"]=v:st.marginTop=v;var Fe=y.map(function(Le,$e){var qe=Le.key;return c.createElement(jC,{id:a,prefixCls:h,key:qe,tab:Le,style:$e===0?void 0:st,closable:Le.closable,editable:u,active:qe===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Xe){p(qe,Xe)},onFocus:function(){yt(qe),ke(),P.current&&(s||(P.current.scrollLeft=0),P.current.scrollTop=0)}})}),Ie=function(){return ee(function(){var $e,qe=new Map,lt=($e=w.current)===null||$e===void 0?void 0:$e.getBoundingClientRect();return y.forEach(function(Xe){var ht,Kt=Xe.key,tn=(ht=w.current)===null||ht===void 0?void 0:ht.querySelector('[data-node-key="'.concat(Qf(Kt),'"]'));if(tn){var qt=LC(tn,lt),mt=W(qt,4),An=mt[0],Fn=mt[1],jn=mt[2],nn=mt[3];qe.set(Kt,{width:An,height:Fn,left:jn,top:nn})}}),qe})};R.useEffect(function(){Ie()},[y.map(function(Le){return Le.key}).join("_")]);var Te=Yf(function(){var Le=Sr(E),$e=Sr(C),qe=Sr(x);k([Le[0]-$e[0]-qe[0],Le[1]-$e[1]-qe[1]]);var lt=Sr(N);oe(lt);var Xe=Sr($);se(Xe);var ht=Sr(w);Q([ht[0]-lt[0],ht[1]-lt[1]]),Ie()}),Ee=y.slice(0,We),pe=y.slice(it+1),De=[].concat(ce(Ee),ce(pe)),ct=le.get(i),Ae=RC({activeTabOffset:ct,horizontal:F,indicator:m,rtl:s}),je=Ae.style;R.useEffect(function(){yt()},[i,Be,Re,ru(ct),ru(le),F]),R.useEffect(function(){Te()},[s]);var rt=!!De.length,dt="".concat(h,"-nav-wrap"),$t,zt,Vt,Tt;return F?s?(zt=I>0,$t=I!==Re):($t=I<0,zt=I!==Be):(Vt=T<0,Tt=T!==Be),c.createElement(un,{onResize:Te},c.createElement("div",{ref:Oa(t,E),role:"tablist",className:K("".concat(h,"-nav"),n),style:r,onKeyDown:function(){ke()}},c.createElement(js,{ref:C,position:"left",extra:l,prefixCls:h}),c.createElement(un,{onResize:Te},c.createElement("div",{className:K(dt,j(j(j(j({},"".concat(dt,"-ping-left"),$t),"".concat(dt,"-ping-right"),zt),"".concat(dt,"-ping-top"),Vt),"".concat(dt,"-ping-bottom"),Tt)),ref:P},c.createElement(un,{onResize:Te},c.createElement("div",{ref:w,className:"".concat(h,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(T,"px)"),transition:xe?"none":void 0}},Fe,c.createElement(Jf,{ref:N,prefixCls:h,locale:d,editable:u,style:L(L({},Fe.length===0?void 0:st),{},{visibility:rt?"hidden":null})}),c.createElement("div",{className:K("".concat(h,"-ink-bar"),j({},"".concat(h,"-ink-bar-animated"),o.inkBar)),style:je}))))),c.createElement(FC,ye({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:h,tabs:De,className:!rt&&at,tabMoving:!!xe})),c.createElement(js,{ref:x,position:"right",extra:l,prefixCls:h})))}),pl=c.forwardRef(function(e,t){var n=e.prefixCls,r=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:K(n,i&&"".concat(n,"-active"),r),ref:t},l)});process.env.NODE_ENV!=="production"&&(pl.displayName="TabPane");var zC=["renderTabBar"],DC=["label","key"],ev=function(t){var n=t.renderTabBar,r=Ve(t,zC),a=c.useContext(Wo),o=a.tabs;if(n){var i=L(L({},r),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Ve(s,DC);return c.createElement(pl,ye({tab:l,key:u,tabKey:u},d))})});return n(i,au)}return c.createElement(au,r)};process.env.NODE_ENV!=="production"&&(ev.displayName="TabNavListWrapper");var VC=["key","forceRender","style","className","destroyInactiveTabPane"],BC=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Wo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:K("".concat(l,"-content-holder"))},c.createElement("div",{className:K("".concat(l,"-content"),"".concat(l,"-content-").concat(o),j({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,p=v.forceRender,g=v.style,m=v.className,S=v.destroyInactiveTabPane,h=Ve(v,VC),y=b===r;return c.createElement(ar,ye({key:b,visible:y,forceRender:p,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,P=E.className;return c.createElement(pl,ye({},h,{prefixCls:f,id:n,tabKey:b,animated:d,active:y,style:L(L({},g),x),className:K(m,P),ref:C}))})})))};function HC(){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=L({inkBar:!0},we(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&Ye(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var kC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ou=0,tv=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,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,p=e.tabBarGutter,g=e.tabBarStyle,m=e.tabBarExtraContent,S=e.locale,h=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,P=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,N=e.indicator,F=Ve(e,kC),M=c.useMemo(function(){return(i||[]).filter(function(V){return V&&we(V)==="object"&&"key"in V})},[i]),A=s==="rtl",I=HC(f),H=R.useState(!1),_=W(H,2),O=_[0],T=_[1];R.useEffect(function(){T(gf())},[]);var z=Jt(function(){var V;return(V=M[0])===null||V===void 0?void 0:V.key},{value:l,defaultValue:u}),D=W(z,2),B=D[0],G=D[1],k=R.useState(function(){return M.findIndex(function(V){return V.key===B})}),U=W(k,2),q=U[0],Y=U[1];R.useEffect(function(){var V=M.findIndex(function(ie){return ie.key===B});if(V===-1){var se;V=Math.max(0,Math.min(q,M.length-1)),G((se=M[V])===null||se===void 0?void 0:se.key)}Y(V)},[M.map(function(V){return V.key}).join("_"),B,q]);var Q=Jt(null,{value:n}),Z=W(Q,2),te=Z[0],ue=Z[1];R.useEffect(function(){n||(ue("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":ou)),ou+=1)},[]);function oe(V,se){x==null||x(V,se);var ie=V!==B;G(V),ie&&(C==null||C(V))}var de={id:te,activeKey:B,animated:I,tabPosition:b,rtl:A,mobile:O},Se=L(L({},de),{},{editable:d,locale:S,more:h,tabBarGutter:p,onTabClick:oe,onTabScroll:P,extra:m,style:g,panes:null,getPopupContainer:w,popupClassName:$,indicator:N});return c.createElement(Wo.Provider,{value:{tabs:M,prefixCls:a}},c.createElement("div",ye({ref:t,id:n,className:K(a,"".concat(a,"-").concat(b),j(j(j({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(ev,ye({},Se,{renderTabBar:E})),c.createElement(BC,ye({destroyInactiveTabPane:y},de,{animated:I}))))});process.env.NODE_ENV!=="production"&&(tv.displayName="Tabs");const WC={motionAppear:!1,motionEnter:!0,motionLeave:!0};function GC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},WC),{motionName:Wd(e,"switch")})),n}var UC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function KC(e){return e.filter(t=>t)}function qC(e,t){if(process.env.NODE_ENV!=="production"&&wt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=Cn(t).map(r=>{if(c.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,l=UC(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return KC(n)}const XC=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Tc(e,"slide-up"),Tc(e,"slide-down")]]},YC=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${X(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:X(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:X(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadiusLG)} 0 0 ${X(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 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},QC=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Dr(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:`${X(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Qs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${X(e.paddingXXS)} ${X(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ZC=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,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:`${X(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
192
|
+
&-affix-wrapper${n}-has-feedback ${t}
|
|
193
|
+
`]:{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}}}}}},IC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},ev=br("Input",e=>{const t=Lt(e,pC(e));return[OC(t),TC(t),PC(t),_C(t),NC(t),IC(t),cf(t)]},hC,{resetFont:!1});var MC={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"},AC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:MC}))},tv=c.forwardRef(AC);process.env.NODE_ENV!=="production"&&(tv.displayName="PlusOutlined");const Ko=P.createContext(null);var jC=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function m(){_t.cancel(h.current)}return P.useEffect(function(){var S={};if(r)if(n){S.width=p(r.width);var g=a?"right":"left";u==="start"&&(S[g]=r[g]),u==="center"&&(S[g]=r[g]+r.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[g]=r[g]+r.width,S.transform="translateX(-100%)")}else S.height=p(r.height),u==="start"&&(S.top=r.top),u==="center"&&(S.top=r.top+r.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=r.top+r.height,S.transform="translateY(-100%)");return m(),h.current=_t(function(){b(S)}),m},[r,n,a,u,p]),{style:v}},au={width:0,height:0,left:0,top:0};function FC(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||au,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)||au}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 ou(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 LC=.1,iu=.01,go=20,su=Math.pow(.995,go);function DC(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),m=p[0],S=p[1],g=P.useRef();function y($){var T=$.touches[0],F=T.screenX,j=T.screenY;o({x:F,y:j}),window.clearInterval(g.current)}function E($){if(a){$.preventDefault();var T=$.touches[0],F=T.screenX,j=T.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),S({x:A,y:M})}}function C(){if(a&&(o(null),S(null),m)){var $=m.x/v,T=m.y/v,F=Math.abs($),j=Math.abs(T);if(Math.max(F,j)<LC)return;var A=$,M=T;g.current=window.setInterval(function(){if(Math.abs(A)<iu&&Math.abs(M)<iu){window.clearInterval(g.current);return}A*=su,M*=su,t(A*go,M*go)},go)}}var x=P.useRef();function R($){var T=$.deltaX,F=$.deltaY,j=0,A=Math.abs(T),M=Math.abs(F);A===M?j=x.current==="x"?T:F:A>M?(j=T,x.current="x"):(j=F,x.current="y"),t(-j,-j)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function T(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",T,{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",T),document.removeEventListener("touchend",F)}},[])}function rv(e){var t=P.useState(0),r=U(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Gi(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 zC(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=rv(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 lu={width:0,height:0,left:0,top:0,right:0};function VC(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var m=e.get(s[p].key)||lu;if(m[f]+m[d]>v+t){h=p-1;break}}for(var S=0,g=b-1;g>=0;g-=1){var y=e.get(s[g].key)||lu;if(y[f]<v){S=g+1;break}}return S>=h?[0,0]:[S,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function cu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var BC="TABS_DQ";function nv(e){return String(e).replace(/"/g,BC)}function av(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var ov=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||"+")}),Vs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Te(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"&&(Vs.displayName="ExtraContent");var kC=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,m=e.getPopupContainer,S=e.popupClassName,g=P.useState(!1),y=U(g,2),E=y[0],C=y[1],x=P.useState(null),R=U(x,2),w=R[0],$=R[1],T=l.icon,F=T===void 0?"More":T,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 N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Q=q.key,Z=q.domEvent;p(Q,Z),C(!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,Q=W.disabled,Z=W.closeIcon,J=W.key,te=W.label,ae=av(q,Z,f,Q);return c.createElement(Go,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Q},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(),N(de,J)}},Z||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Q=q.findIndex(function(ae){return ae.key===w})||0,Z=q.length,J=0;J<Z;J+=1){Q=(Q+W+Z)%Z;var te=q[Q];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!E){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(C(!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:C(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){E||$(null)},[E]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Y(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(IS,Oe({prefixCls:A,overlay:O,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:Y(k,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},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":E,onKeyDown:D},F));return c.createElement("div",{className:Y("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(ov,{prefixCls:r,locale:o,editable:f}))});const HC=c.memo(kC,function(e,t){return t.tabMoving});var WC=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,m=t.onFocus,S=t.style,g="".concat(r,"-tab"),y=av(f,u,h,l);function E(w){l||p(w)}function C(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var x=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":nv(i),className:Y(g,L(L(L({},"".concat(g,"-with-remove"),y),"".concat(g,"-active"),a),"".concat(g,"-disabled"),l)),style:S,onClick:E},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(g,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),E($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),E($))},onFocus:m},d&&c.createElement("span",{className:"".concat(g,"-icon")},d),s&&x),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(g,"-remove"),onClick:function($){$.stopPropagation(),C($)}},u||h.removeIcon||"×"));return v?v(R):R},GC=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]},Cn=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]},eo=function(t,r){return t[r?0:1]},uu=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,m=e.indicator,S=c.useContext(Ko),g=S.prefixCls,y=S.tabs,E=P.useRef(null),C=P.useRef(null),x=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),F=f==="top"||f==="bottom",j=ou(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],N=ou(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),I=O[0],D=O[1],V=P.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=P.useState([0,0]),Q=U(q,2),Z=Q[0],J=Q[1],te=P.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=P.useState([0,0]),we=U(ve,2),B=we[0],ce=we[1],se=zC(new Map),Ce=U(se,2),pe=Ce[0],ne=Ce[1],me=FC(y,pe,Z[0]),xe=eo(K,F),Me=eo(Z,F),oe=eo(fe,F),re=eo(B,F),ge=xe<Me+oe,he=ge?xe-re:xe-oe,tt="".concat(g,"-nav-operations-hidden"),qe=0,Ae=0;F&&s?(qe=0,Ae=Math.max(0,Me-he)):(qe=Math.min(0,he-Me),Ae=0);function Ue(G){return G<qe?qe:G>Ae?Ae:G}var Xe=P.useRef(null),Ze=P.useState(),Fe=U(Ze,2),Ne=Fe[0],it=Fe[1];function Ye(){it(Date.now())}function Le(){Xe.current&&clearTimeout(Xe.current)}DC(R,function(G,X){function ie(Pe,$e){Pe(function(_e){var Ie=Ue(_e+$e);return Ie})}return ge?(F?ie(H,G):ie(D,X),Le(),Ye(),!0):!1}),P.useEffect(function(){return Le(),Ne&&(Xe.current=setTimeout(function(){it(0)},100)),Le},[Ne]);var ue=VC(me,he,F?M:I,Me,oe,re,z(z({},e),{},{tabs:y})),Ee=U(ue,2),Ke=Ee[0],rt=Ee[1],bt=Bt(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=me.get(G)||{width:0,height:0,left:0,right:0,top:0};if(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(Ue(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(Ue(Pe))}}),ut={};f==="top"||f==="bottom"?ut[s?"marginRight":"marginLeft"]=v:ut.marginTop=v;var Be=y.map(function(G,X){var ie=G.key;return c.createElement(WC,{id:a,prefixCls:g,key:ie,tab:G,style:X===0?void 0:ut,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(){bt(ie),Ye(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=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 _e,Ie=$e.key,vt=(_e=w.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(nv(Ie),'"]'));if(vt){var et=GC(vt,Pe),ze=U(et,4),Et=ze[0],Ht=ze[1],zt=ze[2],mt=ze[3];ie.set(Ie,{width:Et,height:Ht,left:zt,top:mt})}}),ie})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var De=rv(function(){var G=Cn(E),X=Cn(C),ie=Cn(x);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=Cn(T);de(Pe);var $e=Cn($);ce($e);var _e=Cn(w);J([_e[0]-Pe[0],_e[1]-Pe[1]]),Ve()}),Re=y.slice(0,Ke),be=y.slice(rt+1),Ge=[].concat(ye(Re),ye(be)),pt=me.get(i),ke=jC({activeTabOffset:pt,horizontal:F,indicator:m,rtl:s}),He=ke.style;P.useEffect(function(){bt()},[i,qe,Ae,cu(pt),cu(me),F]),P.useEffect(function(){De()},[s]);var st=!!Ge.length,ht="".concat(g,"-nav-wrap"),Rt,Dt,kt,_;return F?s?(Dt=M>0,Rt=M!==Ae):(Rt=M<0,Dt=M!==qe):(kt=I<0,_=I!==qe),c.createElement(vr,{onResize:De},c.createElement("div",{ref:_a(t,E),role:"tablist",className:Y("".concat(g,"-nav"),r),style:n,onKeyDown:function(){Ye()}},c.createElement(Vs,{ref:C,position:"left",extra:l,prefixCls:g}),c.createElement(vr,{onResize:De},c.createElement("div",{className:Y(ht,L(L(L(L({},"".concat(ht,"-ping-left"),Rt),"".concat(ht,"-ping-right"),Dt),"".concat(ht,"-ping-top"),kt),"".concat(ht,"-ping-bottom"),_)),ref:R},c.createElement(vr,{onResize:De},c.createElement("div",{ref:w,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(ov,{ref:T,prefixCls:g,locale:d,editable:u,style:z(z({},Be.length===0?void 0:ut),{},{visibility:st?"hidden":null})}),c.createElement("div",{className:Y("".concat(g,"-ink-bar"),L({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:He}))))),c.createElement(HC,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:g,tabs:Ge,className:!st&&tt,tabMoving:!!Ne})),c.createElement(Vs,{ref:x,position:"right",extra:l,prefixCls:g})))}),Sl=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:Y(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(Sl.displayName="TabPane");var UC=["renderTabBar"],KC=["label","key"],iv=function(t){var r=t.renderTabBar,n=Je(t,UC),a=c.useContext(Ko),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,KC);return c.createElement(Sl,Oe({tab:l,key:u,tabKey:u},d))})});return r(i,uu)}return c.createElement(uu,n)};process.env.NODE_ENV!=="production"&&(iv.displayName="TabNavListWrapper");var qC=["key","forceRender","style","className","destroyInactiveTabPane"],XC=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Ko),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Y("".concat(l,"-content-holder"))},c.createElement("div",{className:Y("".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,m=v.className,S=v.destroyInactiveTabPane,g=Je(v,qC),y=b===n;return c.createElement(sn,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,R=E.className;return c.createElement(Sl,Oe({},g,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),x),className:Y(m,R),ref:C}))})})))};function YC(){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},Te(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&at(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var QC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],du=0,sv=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,m=e.tabBarExtraContent,S=e.locale,g=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,F=Je(e,QC),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Te(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=YC(f),H=P.useState(!1),N=U(H,2),O=N[0],I=N[1];P.useEffect(function(){I(Cf())},[]);var D=or(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=P.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Q=q[0],Z=q[1];P.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Q,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Z(B)},[j.map(function(B){return B.key}).join("_"),k,Q]);var J=or(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];P.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":du)),du+=1)},[]);function de(B,ce){x==null||x(B,ce);var se=B!==k;K(B),se&&(C==null||C(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},we=z(z({},ve),{},{editable:d,locale:S,more:g,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:m,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(Ko.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",Oe({ref:t,id:r,className:Y(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(iv,Oe({},we,{renderTabBar:E})),c.createElement(XC,Oe({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(sv.displayName="Tabs");const ZC={motionAppear:!1,motionEnter:!0,motionLeave:!0};function JC(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({},ZC),{motionName:Yd(e,"switch")})),r}var eE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function tE(e){return e.filter(t=>t)}function rE(e,t){if(process.env.NODE_ENV!=="production"&&It("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=$r(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=eE(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return tE(r)}const nE=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}`}}}}},[Lc(e,"slide-up"),Lc(e,"slide-down")]]},aE=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}}}}}}},oE=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({},tl),{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"}}})}})}},iE=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},
|
|
165
194
|
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,
|
|
166
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding: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:X(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${X(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},JC=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,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:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadius)} ${X(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${X(e.borderRadius)} ${X(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${X(e.borderRadius)} ${X(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadius)} 0 0 ${X(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},eE=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,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:n}},Zs(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:r},[`&${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}}}},tE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:X(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:X(e.marginXS)},marginLeft:{_skip_check_:!0,value:X(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},nE=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Dr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${X(e.paddingXS)}`,background:"transparent",border:`${X(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${X(e.borderRadiusLG)} ${X(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}},Zs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),eE(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"}}}}}},rE=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}},aE=gn("Tabs",e=>{const t=_t(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${X(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${X(e.horizontalItemGutter)}`});return[JC(t),tE(t),ZC(t),QC(t),YC(t),nE(t),XC(t)]},rE),nv=()=>null;process.env.NODE_ENV!=="production"&&(nv.displayName="DeprecatedTabPane");var oE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hl=e=>{var t,n,r,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:p,size:g,onEdit:m,hideAdd:S,centered:h,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:P,children:w,items:$,animated:N,style:F,indicatorSize:M,indicator:A}=e,I=oE(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=I,{direction:_,tabs:O,getPrefixCls:T,getPopupContainer:z}=c.useContext(Qe),D=T("tabs",H),B=el(D),[G,k,U]=aE(D,B);let q;v==="editable-card"&&(q={onEdit:(de,Se)=>{let{key:V,event:se}=Se;m==null||m(de==="add"?se:V,de)},removeIcon:(t=E??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Bd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(Xf,null),showAdd:S!==!0});const Y=T();if(process.env.NODE_ENV!=="production"){const de=wt("Tabs");process.env.NODE_ENV!=="production"&&de(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&de(!(M||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const Q=Hr(g),Z=qC($,w),te=GC(D,N),ue=Object.assign(Object.assign({},O==null?void 0:O.style),F),oe={align:(n=A==null?void 0:A.align)!==null&&n!==void 0?n:(r=O==null?void 0:O.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:M)!==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 G(c.createElement(tv,Object.assign({direction:_,getPopupContainer:z},I,{items:Z,className:K({[`${D}-${Q}`]:Q,[`${D}-card`]:["card","editable-card"].includes(v),[`${D}-editable-card`]:v==="editable-card",[`${D}-centered`]:h},O==null?void 0:O.className,b,p,k,U,B),popupClassName:K(P,k,U,B),style:ue,editable:q,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:C)!==null&&f!==void 0?f:c.createElement(Hf,null),transitionName:`${Y}-slide-up`},x),prefixCls:D,animated:te,indicator:oe})))};hl.TabPane=nv;process.env.NODE_ENV!=="production"&&(hl.displayName="Tabs");var iE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const rv=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=iE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(Qe),i=o("card",t),s=K(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},a,{className:s}))},sE=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${X(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},Ra()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Qs),{[`
|
|
167
|
-
> ${
|
|
168
|
-
> ${
|
|
169
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${
|
|
170
|
-
${
|
|
171
|
-
0 ${
|
|
172
|
-
${
|
|
173
|
-
${
|
|
174
|
-
0 ${
|
|
175
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},cE=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${X(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},Ra()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:X(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:X(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${o}`}}})},uE=e=>Object.assign(Object.assign({margin:`${X(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ra()),{"&-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},Qs),"&-description":{color:e.colorTextDescription}}),dE=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${X(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${X(e.padding)} ${X(n)}`}}},fE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},vE=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Dr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:sE(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},Ra()),[`${t}-grid`]:lE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:cE(e),[`${t}-meta`]:uE(e)}),[`${t}-bordered`]:{border:`${X(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:dE(e),[`${t}-loading`]:fE(e),[`${t}-rtl`]:{direction:"rtl"}}},mE=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${X(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},gE=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}),pE=gn("Card",e=>{const t=_t(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[vE(t),mE(t)]},gE);var iu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hE=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:i},c.createElement("span",null,a))}))},bE=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:p,actions:g,tabList:m,children:S,activeTabKey:h,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:P,styles:w}=e,$=iu(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:M}=c.useContext(Qe);if(process.env.NODE_ENV!=="production"){const me=wt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ee=>{let[le,be]=ee;me.deprecated(!(le in e),le,be)})}const A=me=>{var ee;(ee=e.onTabChange)===null||ee===void 0||ee.call(e,me)},I=me=>{var ee;return K((ee=M==null?void 0:M.classNames)===null||ee===void 0?void 0:ee[me],P==null?void 0:P[me])},H=me=>{var ee;return Object.assign(Object.assign({},(ee=M==null?void 0:M.styles)===null||ee===void 0?void 0:ee[me]),w==null?void 0:w[me])},_=c.useMemo(()=>{let me=!1;return c.Children.forEach(S,ee=>{(ee==null?void 0:ee.type)===rv&&(me=!0)}),me},[S]),O=N("card",n),[T,z,D]=pE(O),B=c.createElement(ir,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),G=h!==void 0,k=Object.assign(Object.assign({},x),{[G?"activeKey":"defaultActiveKey"]:G?h:y,tabBarExtraContent:E});let U;const q=Hr(v),Y=!q||q==="default"?"large":q,Q=m?c.createElement(hl,Object.assign({size:Y},k,{className:`${O}-head-tabs`,onChange:A,items:m.map(me=>{var{tab:ee}=me,le=iu(me,["tab"]);return Object.assign({label:ee},le)})})):null;if(u||i||Q){const me=K(`${O}-head`,I("header")),ee=K(`${O}-head-title`,I("title")),le=K(`${O}-extra`,I("extra")),be=Object.assign(Object.assign({},s),H("header"));U=c.createElement("div",{className:me,style:be},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ee,style:H("title")},u),i&&c.createElement("div",{className:le,style:H("extra")},i)),Q)}const Z=K(`${O}-cover`,I("cover")),te=p?c.createElement("div",{className:Z,style:H("cover")},p):null,ue=K(`${O}-body`,I("body")),oe=Object.assign(Object.assign({},l),H("body")),de=c.createElement("div",{className:ue,style:oe},d?B:S),Se=K(`${O}-actions`,I("actions")),V=g!=null&&g.length?c.createElement(hE,{actionClasses:Se,actionStyle:H("actions"),actions:g}):null,se=mn($,["onTabChange"]),ie=K(O,M==null?void 0:M.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:C,[`${O}-contain-grid`]:_,[`${O}-contain-tabs`]:m==null?void 0:m.length,[`${O}-${q}`]:q,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},r,a,z,D),he=Object.assign(Object.assign({},M==null?void 0:M.style),o);return T(c.createElement("div",Object.assign({ref:t},se,{className:ie,style:he}),U,te,de,V))});var yE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const SE=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=yE(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(Qe),l=s("card",t),u=K(`${l}-meta`,n),d=r?c.createElement("div",{className:`${l}-meta-avatar`},r):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)},Go=bE;Go.Grid=rv;Go.Meta=SE;process.env.NODE_ENV!=="production"&&(Go.displayName="Card");const av=R.createContext({}),CE=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"}}}},EE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},xE=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},Ls=(e,t)=>xE(e,t),wE=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:Object.assign({},Ls(e,n))}),$E=()=>({}),OE=()=>({}),RE=gn("Grid",CE,$E),PE=gn("Grid",e=>{const t=_t(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[EE(t),Ls(t,""),Ls(t,"-xs"),Object.keys(n).map(r=>wE(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},OE);var NE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function su(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const _E=["xs","sm","md","lg","xl","xxl"],aa=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(Qe),{gutter:a,wrap:o}=c.useContext(av),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:p,style:g}=e,m=NE(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[h,y,E]=PE(S),C={};let x={};_E.forEach($=>{let N={};const F=e[$];typeof F=="number"?N.span=F:typeof F=="object"&&(N=F||{}),delete m[$],x=Object.assign(Object.assign({},x),{[`${S}-${$}-${N.span}`]:N.span!==void 0,[`${S}-${$}-order-${N.order}`]:N.order||N.order===0,[`${S}-${$}-offset-${N.offset}`]:N.offset||N.offset===0,[`${S}-${$}-push-${N.push}`]:N.push||N.push===0,[`${S}-${$}-pull-${N.pull}`]:N.pull||N.pull===0,[`${S}-rtl`]:r==="rtl"}),N.flex&&(x[`${S}-${$}-flex`]=!0,C[`--${S}-${$}-flex`]=su(N.flex))});const P=K(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return p&&(w.flex=su(p),o===!1&&!w.minWidth&&(w.minWidth=0)),h(c.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},w),g),C),className:P,ref:t}),b))});process.env.NODE_ENV!=="production"&&(aa.displayName="Col");var TE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function lu(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<wa.length;o++){const i=wa[o];if(!t[i])continue;const s=e[i];if(s!==void 0){r(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const zs=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=TE(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(Qe),[b,p]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=lu(a,g),h=lu(r,g),y=c.useRef(l),E=Zy();c.useEffect(()=>{const O=E.subscribe(T=>{m(T);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&p(T)});return()=>E.unsubscribe(O)},[]);const C=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,D)=>{if(typeof z=="object")for(let B=0;B<wa.length;B++){const G=wa[B];if(b[G]&&z[G]!==void 0){O[D]=z[G];break}}else O[D]=z}),O},x=f("row",n),[P,w,$]=RE(x),N=C(),F=K(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${h}`]:h,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,w,$),M={},A=N[0]!=null&&N[0]>0?N[0]/-2:void 0;A&&(M.marginLeft=A,M.marginRight=A);const[I,H]=N;M.rowGap=H;const _=c.useMemo(()=>({gutter:[I,H],wrap:u}),[I,H,u]);return P(c.createElement(av.Provider,{value:_},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},M),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(zs.displayName="Row");function IE(e){return!!(e.addonBefore||e.addonAfter)}function ME(e){return!!(e.prefix||e.suffix||e.allowClear)}function cu(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Oo(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=cu(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=cu(t,e,r),n(a);return}n(a)}}function AE(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var ov=R.forwardRef(function(e,t){var n,r,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,p=e.readOnly,g=e.focused,m=e.triggerFocus,S=e.allowClear,h=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,P=e.dataAttrs,w=e.styles,$=e.components,N=e.onClear,F=o??a,M=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",I=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",_=R.useRef(null),O=function(V){var se;(se=_.current)!==null&&se!==void 0&&se.contains(V.target)&&(m==null||m())},T=ME(e),z=R.cloneElement(F,{value:h,className:K(F.props.className,!T&&(x==null?void 0:x.variant))||null}),D=R.useRef(null);if(R.useImperativeHandle(t,function(){return{nativeElement:D.current||_.current}}),T){var B=null;if(S){var G=!b&&!p&&h,k="".concat(i,"-clear-icon"),U=we(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";B=R.createElement("span",{onClick:function(V){y==null||y(V),N==null||N()},onMouseDown:function(V){return V.preventDefault()},className:K(k,j(j({},"".concat(k,"-hidden"),!G),"".concat(k,"-has-suffix"),!!l)),role:"button",tabIndex:-1},U)}var q="".concat(i,"-affix-wrapper"),Y=K(q,j(j(j(j(j({},"".concat(i,"-disabled"),b),"".concat(q,"-disabled"),b),"".concat(q,"-focused"),g),"".concat(q,"-readonly"),p),"".concat(q,"-input-with-clear-btn"),l&&S&&h),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),Q=(l||S)&&R.createElement("span",{className:K("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:w==null?void 0:w.suffix},B,l);z=R.createElement(M,ye({className:Y,style:w==null?void 0:w.affixWrapper,onClick:O},P==null?void 0:P.affixWrapper,{ref:_}),s&&R.createElement("span",{className:K("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:w==null?void 0:w.prefix},s),z,Q)}if(IE(e)){var Z="".concat(i,"-group"),te="".concat(Z,"-addon"),ue="".concat(Z,"-wrapper"),oe=K("".concat(i,"-wrapper"),Z,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),de=K(ue,j({},"".concat(ue,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);z=R.createElement(A,{className:de,ref:D},R.createElement(I,{className:oe},u&&R.createElement(H,{className:te},u),z,d&&R.createElement(H,{className:te},d)))}return R.cloneElement(z,{className:K((n=z.props)===null||n===void 0?void 0:n.className,f)||null,style:L(L({},(r=z.props)===null||r===void 0?void 0:r.style),v),hidden:E})}),FE=["show"];function iv(e,t){return c.useMemo(function(){var n={};t&&(n.show=we(t)==="object"&&t.formatter?t.formatter:!!t),n=L(L({},n),e);var r=n,a=r.show,o=Ve(r,FE);return L(L({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var jE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],LE=R.forwardRef(function(e,t){var n=e.autoComplete,r=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,p=e.maxLength,g=e.suffix,m=e.showCount,S=e.count,h=e.type,y=h===void 0?"text":h,E=e.classes,C=e.classNames,x=e.styles,P=e.onCompositionStart,w=e.onCompositionEnd,$=Ve(e,jE),N=R.useState(!1),F=W(N,2),M=F[0],A=F[1],I=R.useRef(!1),H=R.useRef(!1),_=R.useRef(null),O=R.useRef(null),T=function(J){_.current&&AE(_.current,J)},z=Jt(e.defaultValue,{value:e.value}),D=W(z,2),B=D[0],G=D[1],k=B==null?"":String(B),U=R.useState(null),q=W(U,2),Y=q[0],Q=q[1],Z=iv(S,m),te=Z.max||p,ue=Z.strategy(k),oe=!!te&&ue>te;R.useImperativeHandle(t,function(){var ne;return{focus:T,blur:function(){var fe;(fe=_.current)===null||fe===void 0||fe.blur()},setSelectionRange:function(fe,ge,at){var Be;(Be=_.current)===null||Be===void 0||Be.setSelectionRange(fe,ge,at)},select:function(){var fe;(fe=_.current)===null||fe===void 0||fe.select()},input:_.current,nativeElement:((ne=O.current)===null||ne===void 0?void 0:ne.nativeElement)||_.current}}),R.useEffect(function(){A(function(ne){return ne&&f?!1:ne})},[f]);var de=function(J,fe,ge){var at=fe;if(!I.current&&Z.exceedFormatter&&Z.max&&Z.strategy(fe)>Z.max){if(at=Z.exceedFormatter(fe,{max:Z.max}),fe!==at){var Be,Re;Q([((Be=_.current)===null||Be===void 0?void 0:Be.selectionStart)||0,((Re=_.current)===null||Re===void 0?void 0:Re.selectionEnd)||0])}}else if(ge.source==="compositionEnd")return;G(at),_.current&&Oo(_.current,J,r,at)};R.useEffect(function(){if(Y){var ne;(ne=_.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,ce(Y))}},[Y]);var Se=function(J){de(J,J.target.value,{source:"change"})},V=function(J){I.current=!1,de(J,J.currentTarget.value,{source:"compositionEnd"}),w==null||w(J)},se=function(J){i&&J.key==="Enter"&&!H.current&&(H.current=!0,i(J)),s==null||s(J)},ie=function(J){J.key==="Enter"&&(H.current=!1),l==null||l(J)},he=function(J){A(!0),a==null||a(J)},me=function(J){A(!1),o==null||o(J)},ee=function(J){G(""),T(),_.current&&Oo(_.current,J,r)},le=oe&&"".concat(d,"-out-of-range"),be=function(){var J=mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return R.createElement("input",ye({autoComplete:n},J,{onChange:Se,onFocus:he,onBlur:me,onKeyDown:se,onKeyUp:ie,className:K(d,j({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:_,size:v,type:y,onCompositionStart:function(ge){I.current=!0,P==null||P(ge)},onCompositionEnd:V}))},Pe=function(){var J=Number(te)>0;if(g||Z.show){var fe=Z.showFormatter?Z.showFormatter({value:k,count:ue,maxLength:te}):"".concat(ue).concat(J?" / ".concat(te):"");return R.createElement(R.Fragment,null,Z.show&&R.createElement("span",{className:K("".concat(d,"-show-count-suffix"),j({},"".concat(d,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:L({},x==null?void 0:x.count)},fe),g)}return null};return R.createElement(ov,ye({},$,{prefixCls:d,className:K(b,le),handleReset:ee,value:k,focused:M,triggerFocus:T,suffix:Pe(),disabled:f,classes:E,classNames:C,styles:x}),be())});const sv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:R.createElement(Vd,null)}),t};function zE(e,t){const n=R.useRef([]),r=()=>{n.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 R.useEffect(()=>(r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function DE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var VE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function BE(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const HE=R.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:p,style:g,styles:m,rootClassName:S,onChange:h,classNames:y,variant:E}=e,C=VE(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:V}=wt("Input");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:P,input:w}=R.useContext(Qe),$=x("input",r),N=R.useRef(null),F=el($),[M,A,I]=qf($,F),{compactSize:H,compactItemClassnames:_}=Xd($,P),O=Hr(V=>{var se;return(se=i??H)!==null&&se!==void 0?se:V}),T=R.useContext(Ar),z=s??T,{status:D,hasFeedback:B,feedbackIcon:G}=R.useContext(Ea),k=Ef(D,o),U=DE(e)||!!B,q=R.useRef(U);if(process.env.NODE_ENV!=="production"){const V=wt("Input");R.useEffect(()=>{var se;U&&!q.current&&process.env.NODE_ENV!=="production"&&V(document.activeElement===((se=N.current)===null||se===void 0?void 0:se.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),q.current=U},[U])}const Y=zE(N),Q=V=>{Y(),l==null||l(V)},Z=V=>{Y(),u==null||u(V)},te=V=>{Y(),h==null||h(V)},ue=(B||d)&&R.createElement(R.Fragment,null,d,B&&G),oe=sv(f??(w==null?void 0:w.allowClear)),[de,Se]=xf("input",E,a);return M(R.createElement(LE,Object.assign({ref:En(t,N),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:z,onBlur:Q,onFocus:Z,style:Object.assign(Object.assign({},w==null?void 0:w.style),g),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),m),suffix:ue,allowClear:oe,className:K(p,S,I,F,_,w==null?void 0:w.className),onChange:te,addonBefore:b&&R.createElement(Rs,{form:!0,space:!0},b),addonAfter:v&&R.createElement(Rs,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:K({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:P==="rtl"},y==null?void 0:y.input,(n=w==null?void 0:w.classNames)===null||n===void 0?void 0:n.input,A),variant:K({[`${$}-${de}`]:Se},Ns($,k)),affixWrapper:K({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:P==="rtl"},A),wrapper:K({[`${$}-group-rtl`]:P==="rtl"},A),groupWrapper:K({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:P==="rtl",[`${$}-group-wrapper-${de}`]:Se},Ns(`${$}-group-wrapper`,k,B),A)})})))});process.env.NODE_ENV!=="production"&&(HE.displayName="Input");var kE=`
|
|
195
|
+
> 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}}}}}},sE=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}}}}}},lE=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}},rl(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}}}},cE=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"}}}}},uE=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}},rl(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lE(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"}}}}}},dE=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}},fE=br("Tabs",e=>{const t=Lt(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[sE(t),cE(t),iE(t),oE(t),aE(t),uE(t),nE(t)]},dE),lv=()=>null;process.env.NODE_ENV!=="production"&&(lv.displayName="DeprecatedTabPane");var vE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:m,hideAdd:S,centered:g,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:R,children:w,items:$,animated:T,style:F,indicatorSize:j,indicator:A}=e,M=vE(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:N,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(ot),V=I("tabs",H),k=al(V),[K,W,q]=fE(V,k);let Q;v==="editable-card"&&(Q={onEdit:(ve,we)=>{let{key:B,event:ce}=we;m==null||m(ve==="add"?ce:B,ve)},removeIcon:(t=E??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Kd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(tv,null),showAdd:S!==!0});const Z=I();if(process.env.NODE_ENV!=="production"){const ve=It("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=rE($,w),ae=JC(V,T),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(sv,Object.assign({direction:N,getPopupContainer:D},M,{items:te,className:Y({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:g},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Y(R,W,q,k),style:fe,editable:Q,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:C)!==null&&f!==void 0?f:c.createElement(qf,null),transitionName:`${Z}-slide-up`},x),prefixCls:V,animated:ae,indicator:de})))};Cl.TabPane=lv;process.env.NODE_ENV!=="production"&&(Cl.displayName="Tabs");var mE=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=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=mE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(ot),i=o("card",t),s=Y(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},gE=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`},Na()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},tl),{[`
|
|
196
|
+
> ${r}-typography,
|
|
197
|
+
> ${r}-typography-edit-content
|
|
198
|
+
`]:{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}`}}})},pE=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
199
|
+
${ee(a)} 0 0 0 ${r},
|
|
200
|
+
0 ${ee(a)} 0 0 ${r},
|
|
201
|
+
${ee(a)} ${ee(a)} 0 0 ${r},
|
|
202
|
+
${ee(a)} 0 0 0 ${r} inset,
|
|
203
|
+
0 ${ee(a)} 0 0 ${r} inset;
|
|
204
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},hE=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)}`},Na()),{"& > 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}`}}})},bE=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Na()),{"&-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},tl),"&-description":{color:e.colorTextDescription}}),yE=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)}`}}},SE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},CE=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`]:gE(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)}`},Na()),[`${t}-grid`]:pE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:hE(e),[`${t}-meta`]:bE(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`]:yE(e),[`${t}-loading`]:SE(e),[`${t}-rtl`]:{direction:"rtl"}}},EE=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"}}}}},xE=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}),wE=br("Card",e=>{const t=Lt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[CE(t),EE(t)]},xE);var fu=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=>{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))}))},OE=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:m,children:S,activeTabKey:g,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:R,styles:w}=e,$=fu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:F,card:j}=c.useContext(ot);if(process.env.NODE_ENV!=="production"){const pe=It("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[me,xe]=ne;pe.deprecated(!(me in e),me,xe)})}const A=pe=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,pe)},M=pe=>{var ne;return Y((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])},N=c.useMemo(()=>{let pe=!1;return c.Children.forEach(S,ne=>{(ne==null?void 0:ne.type)===cv&&(pe=!0)}),pe},[S]),O=T("card",r),[I,D,V]=wE(O),k=c.createElement(cn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),K=g!==void 0,W=Object.assign(Object.assign({},x),{[K?"activeKey":"defaultActiveKey"]:K?g:y,tabBarExtraContent:E});let q;const Q=Hn(v),Z=!Q||Q==="default"?"large":Q,J=m?c.createElement(Cl,Object.assign({size:Z},W,{className:`${O}-head-tabs`,onChange:A,items:m.map(pe=>{var{tab:ne}=pe,me=fu(pe,["tab"]);return Object.assign({label:ne},me)})})):null;if(u||i||J){const pe=Y(`${O}-head`,M("header")),ne=Y(`${O}-head-title`,M("title")),me=Y(`${O}-extra`,M("extra")),xe=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:pe,style:xe},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:me,style:H("extra")},i)),J)}const te=Y(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Y(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:S),we=Y(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement($E,{actionClasses:we,actionStyle:H("actions"),actions:p}):null,ce=hr($,["onTabChange"]),se=Y(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:C,[`${O}-contain-grid`]:N,[`${O}-contain-tabs`]:m==null?void 0:m.length,[`${O}-${Q}`]:Q,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),Ce=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:Ce}),q,ae,ve,B))});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 PE=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=RE(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(ot),l=s("card",t),u=Y(`${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)},qo=OE;qo.Grid=cv;qo.Meta=PE;process.env.NODE_ENV!=="production"&&(qo.displayName="Card");const uv=P.createContext({}),_E=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"}}}},NE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TE=(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},Bs=(e,t)=>TE(e,t),IE=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},Bs(e,r))}),ME=()=>({}),AE=()=>({}),jE=br("Grid",_E,ME),FE=br("Grid",e=>{const t=Lt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[NE(t),Bs(t,""),Bs(t,"-xs"),Object.keys(r).map(n=>IE(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},AE);var LE=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 vu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const DE=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(ot),{gutter:a,wrap:o}=c.useContext(uv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,m=LE(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",i),[g,y,E]=FE(S),C={};let x={};DE.forEach($=>{let T={};const F=e[$];typeof F=="number"?T.span=F:typeof F=="object"&&(T=F||{}),delete m[$],x=Object.assign(Object.assign({},x),{[`${S}-${$}-${T.span}`]:T.span!==void 0,[`${S}-${$}-order-${T.order}`]:T.order||T.order===0,[`${S}-${$}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${$}-push-${T.push}`]:T.push||T.push===0,[`${S}-${$}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:n==="rtl"}),T.flex&&(x[`${S}-${$}-flex`]=!0,C[`--${S}-${$}-flex`]=vu(T.flex))});const R=Y(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=vu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),g(c.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},w),p),C),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var zE=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 mu(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 ks=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=zE(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(ot),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,m]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=mu(a,p),g=mu(n,p),y=c.useRef(l),E=iS();c.useEffect(()=>{const O=E.subscribe(I=>{m(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()=>E.unsubscribe(O)},[]);const C=()=>{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},x=f("row",r),[R,w,$]=jE(x),T=C(),F=Y(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${g}`]:g,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,w,$),j={},A=T[0]!=null&&T[0]>0?T[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=T;j.rowGap=H;const N=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(uv.Provider,{value:N},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(ks.displayName="Row");function VE(e){return!!(e.addonBefore||e.addonAfter)}function BE(e){return!!(e.prefix||e.suffix||e.allowClear)}function gu(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 _o(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=gu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=gu(t,e,n),r(a);return}r(a)}}function kE(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 dv=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,m=e.triggerFocus,S=e.allowClear,g=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,T=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",N=P.useRef(null),O=function(B){var ce;(ce=N.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(m==null||m())},I=BE(e),D=P.cloneElement(F,{value:g,className:Y(F.props.className,!I&&(x==null?void 0:x.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),I){var k=null;if(S){var K=!b&&!h&&g,W="".concat(i,"-clear-icon"),q=Te(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";k=P.createElement("span",{onClick:function(B){y==null||y(B),T==null||T()},onMouseDown:function(B){return B.preventDefault()},className:Y(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Q="".concat(i,"-affix-wrapper"),Z=Y(Q,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Q,"-disabled"),b),"".concat(Q,"-focused"),p),"".concat(Q,"-readonly"),h),"".concat(Q,"-input-with-clear-btn"),l&&S&&g),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(l||S)&&P.createElement("span",{className:Y("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:w==null?void 0:w.suffix},k,l);D=P.createElement(j,Oe({className:Z,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Y("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(VE(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Y("".concat(i,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),ve=Y(fe,L({},"".concat(fe,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);D=P.createElement(A,{className:ve,ref:V},P.createElement(M,{className:de},u&&P.createElement(H,{className:ae},u),D,d&&P.createElement(H,{className:ae},d)))}return P.cloneElement(D,{className:Y((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:E})}),HE=["show"];function fv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Te(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=Je(n,HE);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var WE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],GE=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,m=e.showCount,S=e.count,g=e.type,y=g===void 0?"text":g,E=e.classes,C=e.classNames,x=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,WE),T=P.useState(!1),F=U(T,2),j=F[0],A=F[1],M=P.useRef(!1),H=P.useRef(!1),N=P.useRef(null),O=P.useRef(null),I=function(re){N.current&&kE(N.current,re)},D=or(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=P.useState(null),Q=U(q,2),Z=Q[0],J=Q[1],te=fv(S,m),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;P.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var ge;(ge=N.current)===null||ge===void 0||ge.blur()},setSelectionRange:function(ge,he,tt){var qe;(qe=N.current)===null||qe===void 0||qe.setSelectionRange(ge,he,tt)},select:function(){var ge;(ge=N.current)===null||ge===void 0||ge.select()},input:N.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||N.current}}),P.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,ge,he){var tt=ge;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(ge)>te.max){if(tt=te.exceedFormatter(ge,{max:te.max}),ge!==tt){var qe,Ae;J([((qe=N.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ae=N.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K(tt),N.current&&_o(N.current,re,n,tt)};P.useEffect(function(){if(Z){var oe;(oe=N.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Z))}},[Z]);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)},Ce=function(re){A(!0),a==null||a(re)},pe=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),N.current&&_o(N.current,re,n)},me=de&&"".concat(d,"-out-of-range"),xe=function(){var re=hr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Oe({autoComplete:r},re,{onChange:we,onFocus:Ce,onBlur:pe,onKeyDown:ce,onKeyUp:se,className:Y(d,L({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:N,size:v,type:y,onCompositionStart:function(he){M.current=!0,R==null||R(he)},onCompositionEnd:B}))},Me=function(){var re=Number(ae)>0;if(p||te.show){var ge=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Y("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:z({},x==null?void 0:x.count)},ge),p)}return null};return P.createElement(dv,Oe({},$,{prefixCls:d,className:Y(b,me),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Me(),disabled:f,classes:E,classNames:C,styles:x}),xe())});const vv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(Ud,null)}),t};function UE(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function KE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var qE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function XE(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 YE=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:m,rootClassName:S,onChange:g,classNames:y,variant:E}=e,C=qE(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}=It("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:R,input:w}=P.useContext(ot),$=x("input",n),T=P.useRef(null),F=al($),[j,A,M]=ev($,F),{compactSize:H,compactItemClassnames:N}=tf($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=P.useContext(jn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=P.useContext($a),W=Pf(V,o),q=KE(e)||!!k,Q=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=It("Input");P.useEffect(()=>{var ce;q&&!Q.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=T.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"),Q.current=q},[q])}const Z=UE(T),J=B=>{Z(),l==null||l(B)},te=B=>{Z(),u==null||u(B)},ae=B=>{Z(),g==null||g(B)},fe=(k||d)&&P.createElement(P.Fragment,null,d,k&&K),de=vv(f??(w==null?void 0:w.allowClear)),[ve,we]=_f("input",E,a);return j(P.createElement(GE,Object.assign({ref:Or(t,T),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},C,{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),m),suffix:fe,allowClear:de,className:Y(h,S,M,F,N,w==null?void 0:w.className),onChange:ae,addonBefore:b&&P.createElement(Ts,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ts,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Y({[`${$}-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:Y({[`${$}-${ve}`]:we},Ms($,W)),affixWrapper:Y({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Y({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Y({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:we},Ms(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(YE.displayName="Input");var QE=`
|
|
176
205
|
min-height:0 !important;
|
|
177
206
|
max-height:none !important;
|
|
178
207
|
height:0 !important;
|
|
@@ -183,21 +212,21 @@ html body {
|
|
|
183
212
|
top:0 !important;
|
|
184
213
|
right:0 !important;
|
|
185
214
|
pointer-events: none !important;
|
|
186
|
-
`,WE=["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"],xi={},Zt;function GE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xi[n])return xi[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=WE.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(xi[n]=l),l}function UE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Zt||(Zt=document.createElement("textarea"),Zt.setAttribute("tab-index","-1"),Zt.setAttribute("aria-hidden","true"),document.body.appendChild(Zt)),e.getAttribute("wrap")?Zt.setAttribute("wrap",e.getAttribute("wrap")):Zt.removeAttribute("wrap");var a=GE(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;Zt.setAttribute("style","".concat(l,";").concat(kE)),Zt.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=Zt.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),n!==null||r!==null){Zt.value=" ";var b=Zt.scrollHeight-o;n!==null&&(u=b*n,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),r!==null&&(d=b*r,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var p={height:v,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var KE=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],wi=0,$i=1,Oi=2,qE=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,l=n.className,u=n.style,d=n.disabled,f=n.onChange,v=n.onInternalAutoSize,b=Ve(n,KE),p=Jt(a,{value:o,postState:function(q){return q??""}}),g=W(p,2),m=g[0],S=g[1],h=function(q){S(q.target.value),f==null||f(q)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var E=c.useMemo(function(){return i&&we(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=W(E,2),x=C[0],P=C[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var q=y.current,Y=q.selectionStart,Q=q.selectionEnd,Z=q.scrollTop;y.current.setSelectionRange(Y,Q),y.current.scrollTop=Z}}catch{}},N=c.useState(Oi),F=W(N,2),M=F[0],A=F[1],I=c.useState(),H=W(I,2),_=H[0],O=H[1],T=function(){A(wi),process.env.NODE_ENV==="test"&&(v==null||v())};ut(function(){w&&T()},[o,x,P,w]),ut(function(){if(M===wi)A($i);else if(M===$i){var U=UE(y.current,!1,x,P);A(Oi),O(U)}else $()},[M]);var z=c.useRef(),D=function(){Ct.cancel(z.current)},B=function(q){M===Oi&&(s==null||s(q),i&&(D(),z.current=Ct(function(){T()})))};c.useEffect(function(){return D},[]);var G=w?_:null,k=L(L({},u),G);return(M===wi||M===$i)&&(k.overflowY="hidden",k.overflowX="hidden"),c.createElement(un,{onResize:B,disabled:!(i||s)},c.createElement("textarea",ye({},b,{ref:y,style:k,className:K(r,l,j({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:h})))}),XE=["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"],YE=R.forwardRef(function(e,t){var n,r=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,p=b===void 0?"rc-textarea":b,g=e.showCount,m=e.count,S=e.className,h=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,P=e.onResize,w=e.onClear,$=e.onPressEnter,N=e.readOnly,F=e.autoSize,M=e.onKeyDown,A=Ve(e,XE),I=Jt(r,{value:a,defaultValue:r}),H=W(I,2),_=H[0],O=H[1],T=_==null?"":String(_),z=R.useState(!1),D=W(z,2),B=D[0],G=D[1],k=R.useRef(!1),U=R.useState(null),q=W(U,2),Y=q[0],Q=q[1],Z=R.useRef(null),te=R.useRef(null),ue=function(){var xe;return(xe=te.current)===null||xe===void 0?void 0:xe.textArea},oe=function(){ue().focus()};R.useImperativeHandle(t,function(){var Ne;return{resizableTextArea:te.current,focus:oe,blur:function(){ue().blur()},nativeElement:((Ne=Z.current)===null||Ne===void 0?void 0:Ne.nativeElement)||ue()}}),R.useEffect(function(){G(function(Ne){return!y&&Ne})},[y]);var de=R.useState(null),Se=W(de,2),V=Se[0],se=Se[1];R.useEffect(function(){if(V){var Ne;(Ne=ue()).setSelectionRange.apply(Ne,ce(V))}},[V]);var ie=iv(m,g),he=(n=ie.max)!==null&&n!==void 0?n:u,me=Number(he)>0,ee=ie.strategy(T),le=!!he&&ee>he,be=function(xe,et){var ke=et;!k.current&&ie.exceedFormatter&&ie.max&&ie.strategy(et)>ie.max&&(ke=ie.exceedFormatter(et,{max:ie.max}),et!==ke&&se([ue().selectionStart||0,ue().selectionEnd||0])),O(ke),Oo(xe.currentTarget,xe,s,ke)},Pe=function(xe){k.current=!0,d==null||d(xe)},ne=function(xe){k.current=!1,be(xe,xe.currentTarget.value),f==null||f(xe)},J=function(xe){be(xe,xe.target.value)},fe=function(xe){xe.key==="Enter"&&$&&$(xe),M==null||M(xe)},ge=function(xe){G(!0),o==null||o(xe)},at=function(xe){G(!1),i==null||i(xe)},Be=function(xe){O(""),oe(),Oo(ue(),xe,s)},Re=v,He;ie.show&&(ie.showFormatter?He=ie.showFormatter({value:T,count:ee,maxLength:he}):He="".concat(ee).concat(me?" / ".concat(he):""),Re=R.createElement(R.Fragment,null,Re,R.createElement("span",{className:K("".concat(p,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},He)));var Ue=function(xe){var et;P==null||P(xe),(et=ue())!==null&&et!==void 0&&et.style.height&&Q(!0)},Ge=!F&&!g&&!l;return R.createElement(ov,{ref:Z,value:T,allowClear:l,handleReset:Be,suffix:Re,prefixCls:p,classNames:L(L({},C),{},{affixWrapper:K(C==null?void 0:C.affixWrapper,j(j({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),l))}),disabled:y,focused:B,className:K(S,le&&"".concat(p,"-out-of-range")),style:L(L({},h),Y&&!Ge?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof He=="string"?He:void 0}},hidden:E,readOnly:N,onClear:w},R.createElement(qE,ye({},A,{autoSize:F,maxLength:u,onKeyDown:fe,onChange:J,onFocus:ge,onBlur:at,onCompositionStart:Pe,onCompositionEnd:ne,className:K(C==null?void 0:C.textarea),style:L(L({},x==null?void 0:x.textarea),{},{resize:h==null?void 0:h.resize}),disabled:y,prefixCls:p,onResize:Ue,ref:te,readOnly:N})))}),QE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ZE=R.forwardRef((e,t)=>{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:p,variant:g}=e,m=QE(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:D}=wt("TextArea");D(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:h,textArea:y}=c.useContext(Qe),E=Hr(i),C=c.useContext(Ar),x=s??C,{status:P,hasFeedback:w,feedbackIcon:$}=c.useContext(Ea),N=Ef(P,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var D;return{resizableTextArea:(D=F.current)===null||D===void 0?void 0:D.resizableTextArea,focus:B=>{var G,k;BE((k=(G=F.current)===null||G===void 0?void 0:G.resizableTextArea)===null||k===void 0?void 0:k.textArea,B)},blur:()=>{var B;return(B=F.current)===null||B===void 0?void 0:B.blur()}}});const M=S("input",a),A=el(M),[I,H,_]=qf(M,A),[O,T]=xf("textArea",g,o),z=sv(u??(y==null?void 0:y.allowClear));return I(c.createElement(YE,Object.assign({autoComplete:y==null?void 0:y.autoComplete},m,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),p),disabled:x,allowClear:z,className:K(_,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:K({[`${M}-sm`]:E==="small",[`${M}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:K({[`${M}-${O}`]:T},Ns(M,N)),affixWrapper:K(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:h==="rtl",[`${M}-affix-wrapper-sm`]:E==="small",[`${M}-affix-wrapper-lg`]:E==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},H)}),prefixCls:M,suffix:w&&c.createElement("span",{className:`${M}-textarea-suffix`},$),ref:F})))});function Ro(e){return["small","middle","large"].includes(e)}function uu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const lv=R.createContext({latestIndex:0}),JE=lv.Provider,ex=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=c.useContext(lv);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},r),n<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nx=c.forwardRef((e,t)=>{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(Qe),{size:l=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:p,split:g,style:m,wrap:S=!1,classNames:h,styles:y}=e,E=tx(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],P=Ro(x),w=Ro(C),$=uu(x),N=uu(C),F=Cn(v,{keepEmpty:!0}),M=u===void 0&&b==="horizontal"?"center":u,A=o("space",p),[I,H,_]=Kd(A),O=K(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${M}`]:M,[`${A}-gap-row-${x}`]:P,[`${A}-gap-col-${C}`]:w},d,f,_),T=K(`${A}-item`,(r=h==null?void 0:h.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let z=0;const D=F.map((k,U)=>{var q,Y;k!=null&&(z=U);const Q=(k==null?void 0:k.key)||`${T}-${U}`;return c.createElement(ex,{className:T,key:Q,index:U,split:g,style:(q=y==null?void 0:y.item)!==null&&q!==void 0?q:(Y=i==null?void 0:i.styles)===null||Y===void 0?void 0:Y.item},k)}),B=c.useMemo(()=>({latestIndex:z}),[z]);if(F.length===0)return null;const G={};return S&&(G.flexWrap="wrap"),!w&&N&&(G.columnGap=C),!P&&$&&(G.rowGap=x),I(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},G),i==null?void 0:i.style),m)},E),c.createElement(JE,{value:B},D)))}),Uo=nx;Uo.Compact=Zh;process.env.NODE_ENV!=="production"&&(Uo.displayName="Space");const cv=["wrap","nowrap","wrap-reverse"],uv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],dv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],rx=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&cv.includes(n)}},ax=(e,t)=>{const n={};return dv.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},ox=(e,t)=>{const n={};return uv.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function ix(e,t){return K(Object.assign(Object.assign(Object.assign({},rx(e,t)),ax(e,t)),ox(e,t)))}const sx=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},lx=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},cx=e=>{const{componentCls:t}=e,n={};return cv.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},ux=e=>{const{componentCls:t}=e,n={};return dv.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},dx=e=>{const{componentCls:t}=e,n={};return uv.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},fx=()=>({}),vx=gn("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=_t(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[sx(a),lx(a),cx(a),ux(a),dx(a)]},fx,{resetStyle:!1});var mx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fv=R.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=mx(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:p}=R.useContext(Qe),g=p("flex",n),[m,S,h]=vx(g),y=u??(v==null?void 0:v.vertical),E=K(a,r,v==null?void 0:v.className,g,S,h,ix(g,e),{[`${g}-rtl`]:b==="rtl",[`${g}-gap-${s}`]:Ro(s),[`${g}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!Ro(s)&&(C.gap=s),m(R.createElement(d,Object.assign({ref:t,className:E,style:C},mn(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(fv.displayName="Flex");var gx={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"},px=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:gx}))},vv=c.forwardRef(px);process.env.NODE_ENV!=="production"&&(vv.displayName="CopyOutlined");var hx={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"},bx=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:hx}))},mv=c.forwardRef(bx);process.env.NODE_ENV!=="production"&&(mv.displayName="EditOutlined");var yx={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"},Sx=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:yx}))},gv=c.forwardRef(Sx);process.env.NODE_ENV!=="production"&&(gv.displayName="EnterOutlined");var Cx={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"},Ex=function(t,n){return c.createElement(Dt,ye({},t,{ref:n,icon:Cx}))},pv=c.forwardRef(Ex);process.env.NODE_ENV!=="production"&&(pv.displayName="InfoCircleOutlined");var xx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const wx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ds=c.forwardRef((e,t)=>{const n=d=>{const{keyCode:f}=d;f===re.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:v}=e;f===re.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=xx(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},wx)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:n,onKeyUp:r,style:u}))}),$x=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Ox=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
187
|
-
h${
|
|
188
|
-
div&-h${
|
|
189
|
-
div&-h${
|
|
190
|
-
h${
|
|
191
|
-
`]
|
|
215
|
+
`,ZE=["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"],Oi={},ar;function JE(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&&Oi[r])return Oi[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=ZE.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Oi[r]=l),l}function ex(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;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var a=JE(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(QE)),ar.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ar.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ar.value=" ";var b=ar.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 tx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ri=0,Pi=1,_i=2,rx=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=Je(r,tx),h=or(a,{value:o,postState:function(Q){return Q??""}}),p=U(h,2),m=p[0],S=p[1],g=function(Q){S(Q.target.value),f==null||f(Q)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var E=c.useMemo(function(){return i&&Te(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=U(E,2),x=C[0],R=C[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Q=y.current,Z=Q.selectionStart,J=Q.selectionEnd,te=Q.scrollTop;y.current.setSelectionRange(Z,J),y.current.scrollTop=te}}catch{}},T=c.useState(_i),F=U(T,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),N=H[0],O=H[1],I=function(){A(Ri),process.env.NODE_ENV==="test"&&(v==null||v())};yt(function(){w&&I()},[o,x,R,w]),yt(function(){if(j===Ri)A(Pi);else if(j===Pi){var q=ex(y.current,!1,x,R);A(_i),O(q)}else $()},[j]);var D=c.useRef(),V=function(){_t.cancel(D.current)},k=function(Q){j===_i&&(s==null||s(Q),i&&(V(),D.current=_t(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?N:null,W=z(z({},u),K);return(j===Ri||j===Pi)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(vr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",Oe({},b,{ref:y,style:W,className:Y(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:m,onChange:g})))}),nx=["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"],ax=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,m=e.count,S=e.className,g=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,T=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=Je(e,nx),M=or(n,{value:a,defaultValue:n}),H=U(M,2),N=H[0],O=H[1],I=N==null?"":String(N),D=P.useState(!1),V=U(D,2),k=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Q=U(q,2),Z=Q[0],J=Q[1],te=P.useRef(null),ae=P.useRef(null),fe=function(){var Ne;return(Ne=ae.current)===null||Ne===void 0?void 0:Ne.textArea},de=function(){fe().focus()};P.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Fe=te.current)===null||Fe===void 0?void 0:Fe.nativeElement)||fe()}}),P.useEffect(function(){K(function(Fe){return!y&&Fe})},[y]);var ve=P.useState(null),we=U(ve,2),B=we[0],ce=we[1];P.useEffect(function(){if(B){var Fe;(Fe=fe()).setSelectionRange.apply(Fe,ye(B))}},[B]);var se=fv(m,p),Ce=(r=se.max)!==null&&r!==void 0?r:u,pe=Number(Ce)>0,ne=se.strategy(I),me=!!Ce&&ne>Ce,xe=function(Ne,it){var Ye=it;!W.current&&se.exceedFormatter&&se.max&&se.strategy(it)>se.max&&(Ye=se.exceedFormatter(it,{max:se.max}),it!==Ye&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ye),_o(Ne.currentTarget,Ne,s,Ye)},Me=function(Ne){W.current=!0,d==null||d(Ne)},oe=function(Ne){W.current=!1,xe(Ne,Ne.currentTarget.value),f==null||f(Ne)},re=function(Ne){xe(Ne,Ne.target.value)},ge=function(Ne){Ne.key==="Enter"&&$&&$(Ne),j==null||j(Ne)},he=function(Ne){K(!0),o==null||o(Ne)},tt=function(Ne){K(!1),i==null||i(Ne)},qe=function(Ne){O(""),de(),_o(fe(),Ne,s)},Ae=v,Ue;se.show&&(se.showFormatter?Ue=se.showFormatter({value:I,count:ne,maxLength:Ce}):Ue="".concat(ne).concat(pe?" / ".concat(Ce):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Y("".concat(h,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Ue)));var Xe=function(Ne){var it;R==null||R(Ne),(it=fe())!==null&&it!==void 0&&it.style.height&&J(!0)},Ze=!F&&!p&&!l;return P.createElement(dv,{ref:te,value:I,allowClear:l,handleReset:qe,suffix:Ae,prefixCls:h,classNames:z(z({},C),{},{affixWrapper:Y(C==null?void 0:C.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Y(S,me&&"".concat(h,"-out-of-range")),style:z(z({},g),Z&&!Ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:E,readOnly:T,onClear:w},P.createElement(rx,Oe({},A,{autoSize:F,maxLength:u,onKeyDown:ge,onChange:re,onFocus:he,onBlur:tt,onCompositionStart:Me,onCompositionEnd:oe,className:Y(C==null?void 0:C.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:g==null?void 0:g.resize}),disabled:y,prefixCls:h,onResize:Xe,ref:ae,readOnly:T})))}),ox=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 ix=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,m=ox(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=It("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:g,textArea:y}=c.useContext(ot),E=Hn(i),C=c.useContext(jn),x=s??C,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),T=Pf(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;XE((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=S("input",a),A=al(j),[M,H,N]=ev(j,A),[O,I]=_f("textArea",p,o),D=vv(u??(y==null?void 0:y.allowClear));return M(c.createElement(ax,Object.assign({autoComplete:y==null?void 0:y.autoComplete},m,{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:x,allowClear:D,className:Y(N,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Y({[`${j}-sm`]:E==="small",[`${j}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Y({[`${j}-${O}`]:I},Ms(j,T)),affixWrapper:Y(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:g==="rtl",[`${j}-affix-wrapper-sm`]:E==="small",[`${j}-affix-wrapper-lg`]:E==="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 pu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const mv=P.createContext({latestIndex:0}),sx=mv.Provider,lx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(mv);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 cx=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 ux=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(ot),{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:m,wrap:S=!1,classNames:g,styles:y}=e,E=cx(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],R=No(x),w=No(C),$=pu(x),T=pu(C),F=$r(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,N]=Jd(A),O=Y(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${x}`]:R,[`${A}-gap-col-${C}`]:w},d,f,N),I=Y(`${A}-item`,(n=g==null?void 0:g.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 Q,Z;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(lx,{className:I,key:J,index:q,split:p,style:(Q=y==null?void 0:y.item)!==null&&Q!==void 0?Q:(Z=i==null?void 0:i.styles)===null||Z===void 0?void 0:Z.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return S&&(K.flexWrap="wrap"),!w&&T&&(K.columnGap=C),!R&&$&&(K.rowGap=x),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),m)},E),c.createElement(sx,{value:k},V)))}),Xo=ux;Xo.Compact=i0;process.env.NODE_ENV!=="production"&&(Xo.displayName="Space");const gv=["wrap","nowrap","wrap-reverse"],pv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],hv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],dx=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&gv.includes(r)}},fx=(e,t)=>{const r={};return hv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},vx=(e,t)=>{const r={};return pv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function mx(e,t){return Y(Object.assign(Object.assign(Object.assign({},dx(e,t)),fx(e,t)),vx(e,t)))}const gx=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},px=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},hx=e=>{const{componentCls:t}=e,r={};return gv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},bx=e=>{const{componentCls:t}=e,r={};return hv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},yx=e=>{const{componentCls:t}=e,r={};return pv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Sx=()=>({}),Cx=br("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Lt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[gx(a),px(a),hx(a),bx(a),yx(a)]},Sx,{resetStyle:!1});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 bv=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=Ex(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(ot),p=h("flex",r),[m,S,g]=Cx(p),y=u??(v==null?void 0:v.vertical),E=Y(a,n,v==null?void 0:v.className,p,S,g,mx(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:No(s),[`${p}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!No(s)&&(C.gap=s),m(P.createElement(d,Object.assign({ref:t,className:E,style:C},hr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(bv.displayName="Flex");var xx={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"},wx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:xx}))},yv=c.forwardRef(wx);process.env.NODE_ENV!=="production"&&(yv.displayName="CopyOutlined");var $x={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"},Ox=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:$x}))},Sv=c.forwardRef(Ox);process.env.NODE_ENV!=="production"&&(Sv.displayName="EditOutlined");var Rx={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"},Px=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Rx}))},Cv=c.forwardRef(Px);process.env.NODE_ENV!=="production"&&(Cv.displayName="EnterOutlined");var _x={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"},Nx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:_x}))},Ev=c.forwardRef(Nx);process.env.NODE_ENV!=="production"&&(Ev.displayName="InfoCircleOutlined");var Tx=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 Ix={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Hs=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=Tx(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},Ix)),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}))}),Mx=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Ax=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
216
|
+
h${n}&,
|
|
217
|
+
div&-h${n},
|
|
218
|
+
div&-h${n} > textarea,
|
|
219
|
+
h${n}
|
|
220
|
+
`]=Mx(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},jx=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Pd(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"}}})}},Fx=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:yo[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}}),Lx=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"}}}},Dx=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zx=()=>({"\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"}}),Vx=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"}},Ax(e)),{[`
|
|
192
221
|
& + h1${t},
|
|
193
222
|
& + h2${t},
|
|
194
223
|
& + h3${t},
|
|
195
224
|
& + h4${t},
|
|
196
225
|
& + h5${t}
|
|
197
|
-
`]:{marginTop:
|
|
226
|
+
`]:{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}}}),Fx(e)),jx(e)),{[`
|
|
198
227
|
${t}-expand,
|
|
199
228
|
${t}-collapse,
|
|
200
229
|
${t}-edit,
|
|
201
230
|
${t}-copy
|
|
202
|
-
`]:Object.assign(Object.assign({},Ed(e)),{marginInlineStart:e.marginXXS})}),Nx(e)),_x(e)),Tx()),{"&-rtl":{direction:"rtl"}})}},Mx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),hv=gn("Typography",e=>[Ix(e)],Mx),Ax=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(gv,null)}=e,p=c.useRef(null),g=c.useRef(!1),m=c.useRef(),[S,h]=c.useState(l);c.useEffect(()=>{h(l)},[l]),c.useEffect(()=>{var H;if(!((H=p.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:_}=p.current.resizableTextArea;_.focus();const{length:O}=_.value;_.setSelectionRange(O,O)}},[]);const y=H=>{let{target:_}=H;h(_.value.replace(/[\n\r]/g,""))},E=()=>{g.current=!0},C=()=>{g.current=!1},x=H=>{let{keyCode:_}=H;g.current||(m.current=_)},P=()=>{u(S.trim())},w=H=>{let{keyCode:_,ctrlKey:O,altKey:T,metaKey:z,shiftKey:D}=H;m.current===_&&!g.current&&!O&&!T&&!z&&!D&&(_===re.ENTER?(P(),f==null||f()):_===re.ESC&&d())},$=()=>{P()},N=v?`${t}-${v}`:"",[F,M,A]=hv(t),I=K(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},r,N,M,A);return F(c.createElement("div",{className:I,style:a},c.createElement(ZE,{ref:p,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:w,onCompositionStart:E,onCompositionEnd:C,onBlur:$,"aria-label":n,rows:1,autoSize:s}),b!==null?Fo(b,{className:`${t}-edit-content-confirm`}):null))};var Fx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}},jx=Fx,du={"text/plain":"Text","text/html":"Url",default:"Text"},Lx="Copy to clipboard: #{key}, Enter";function zx(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Dx(e,t){var n,r,a,o,i,s,l=!1;t||(t={}),n=t.debug||!1;try{a=jx(),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"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=du[t.format]||du.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){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=zx("message"in t?t.message:Lx),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var Vx=Dx;const Bx=bu(Vx);var Hx=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function l(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};const kx=e=>{let{copyConfig:t,children:n}=e;const[r,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=Mt(f=>Hx(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;Bx(b||String(n)||"",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:r,copyLoading:o,onClick:d}};function Ri(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Wx=e=>{const t=R.useRef();return R.useEffect(()=>{t.current=e}),t.current},Gx=(e,t)=>{const n=c.useRef(!1);c.useEffect(()=>{n.current?e():n.current=!0},t)};var Ux=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const bl=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=Ux(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(Qe),p=l??v;let g=t;i&&(g=En(t,i)),process.env.NODE_ENV!=="production"&&wt("Typography").deprecated(!i,"setContentRef","ref");const m=f("typography",n),[S,h,y]=hv(m),E=K(m,b==null?void 0:b.className,{[`${m}-rtl`]:p==="rtl"},a,o,h,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),u);return S(c.createElement(r,Object.assign({className:E,style:C,ref:g},d),s))});process.env.NODE_ENV!=="production"&&(bl.displayName="Typography");function fu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Za(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Kx(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),!(n.left<=r.left&&r.right<=n.right&&n.top<=r.top&&r.bottom<=n.bottom)}const qx=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=fu(o),f=fu(i),{copied:v,copy:b}=r??{},p=n?Za(d[1],v):Za(d[0],b),m=typeof p=="string"?p:n?v:b;return c.createElement(Ia,{key:"copy",title:p},c.createElement(Ds,{className:K(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":m,tabIndex:l},n?Za(f[1],c.createElement(wf,null),!0):Za(f[0],s?c.createElement(tl,null):c.createElement(vv,null),!0)))},Ja=c.forwardRef((e,t)=>{let{style:n,children:r}=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)"},n)},r)});function bv(e){const t=typeof e;return t==="string"||t==="number"}function Xx(e){let t=0;return e.forEach(n=>{bv(n)?t+=String(n).length:t+=1}),t}function vu(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const o=e[a],s=bv(o)?String(o).length:1,l=n+s;if(l>t){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=l}return e}const Pi=0,Ni=1,_i=2,Ti=3,mu=4,eo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Yx(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Cn(r),[r]),d=c.useMemo(()=>Xx(u),[r]),f=c.useMemo(()=>a(u,!1),[r]),[v,b]=c.useState(null),p=c.useRef(null),g=c.useRef(null),m=c.useRef(null),S=c.useRef(null),h=c.useRef(null),[y,E]=c.useState(!1),[C,x]=c.useState(Pi),[P,w]=c.useState(0),[$,N]=c.useState(null);ut(()=>{x(t&&n&&d?Ni:Pi)},[n,r,o,t,u]),ut(()=>{var I,H,_,O;if(C===Ni){x(_i);const T=g.current&&getComputedStyle(g.current).whiteSpace;N(T)}else if(C===_i){const T=!!(!((I=m.current)===null||I===void 0)&&I.isExceed());x(T?Ti:mu),b(T?[0,d]:null),E(T);const z=((H=m.current)===null||H===void 0?void 0:H.getHeight())||0,D=o===1?0:((_=S.current)===null||_===void 0?void 0:_.getHeight())||0,B=((O=h.current)===null||O===void 0?void 0:O.getHeight())||0,G=D+B,k=Math.max(z,G);w(k+1),l(T)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;ut(()=>{var I;const[H,_]=v||[0,0];if(H!==_){const T=(((I=p.current)===null||I===void 0?void 0:I.getHeight())||0)>P;let z=F;_-H===1&&(z=T?H:_),b(T?[H,z]:[z,_])}},[v,F]);const M=c.useMemo(()=>{if(!t)return a(u,!1);if(C!==Ti||!v||v[0]!==v[1]){const I=a(u,!1);return C!==mu&&C!==Pi?c.createElement("span",{style:Object.assign(Object.assign({},eo),{WebkitLineClamp:o})},I):I}return a(i?u:vu(u,v[0]),y)},[i,C,v,u].concat(ce(s))),A={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,M,C===_i&&c.createElement(c.Fragment,null,c.createElement(Ja,{style:Object.assign(Object.assign(Object.assign({},A),eo),{WebkitLineClamp:o}),ref:m},f),c.createElement(Ja,{style:Object.assign(Object.assign(Object.assign({},A),eo),{WebkitLineClamp:o-1}),ref:S},f),c.createElement(Ja,{style:Object.assign(Object.assign(Object.assign({},A),eo),{WebkitLineClamp:1}),ref:h},a([],!0))),C===Ti&&v&&v[0]!==v[1]&&c.createElement(Ja,{style:Object.assign(Object.assign({},A),{top:400}),ref:p},a(vu(u,F),!0)),C===Ni&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const yv=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:c.createElement(Ia,Object.assign({open:n?void 0:!1},a),r)};process.env.NODE_ENV!=="production"&&(yv.displayName="EllipsisTooltip");var Qx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Zx(e,t){let{mark:n,code:r,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",r),d("mark",n),d("kbd",s),d("i",l),u}const Jx="...",Ko=c.forwardRef((e,t)=>{var n,r,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:p,title:g}=e,m=Qx(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:h}=c.useContext(Qe),[y]=$g("Text"),E=c.useRef(null),C=c.useRef(null),x=S("typography",o),P=mn(m,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ri(v),[N,F]=Jt(!1,{value:$.editing}),{triggerType:M=["icon"]}=$,A=ae=>{var Ce;ae&&((Ce=$.onStart)===null||Ce===void 0||Ce.call($)),F(ae)},I=Wx(N);Gx(()=>{var ae;!N&&I&&((ae=C.current)===null||ae===void 0||ae.focus())},[N]);const H=ae=>{ae==null||ae.preventDefault(),A(!0)},_=ae=>{var Ce;(Ce=$.onChange)===null||Ce===void 0||Ce.call($,ae),A(!1)},O=()=>{var ae;(ae=$.onCancel)===null||ae===void 0||ae.call($),A(!1)},[T,z]=Ri(b),{copied:D,copyLoading:B,onClick:G}=kx({copyConfig:z,children:d}),[k,U]=c.useState(!1),[q,Y]=c.useState(!1),[Q,Z]=c.useState(!1),[te,ue]=c.useState(!1),[oe,de]=c.useState(!0),[Se,V]=Ri(f,{expandable:!1,symbol:ae=>ae?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[se,ie]=Jt(V.defaultExpanded||!1,{value:V.expanded}),he=Se&&(!se||V.expandable==="collapsible"),{rows:me=1}=V,ee=c.useMemo(()=>he&&(V.suffix!==void 0||V.onEllipsis||V.expandable||w||T),[he,V,w,T]);ut(()=>{Se&&!ee&&(U(Nc("webkitLineClamp")),Y(Nc("textOverflow")))},[ee,Se]);const[le,be]=c.useState(he),Pe=c.useMemo(()=>ee?!1:me===1?q:k,[ee,q,k]);ut(()=>{be(Pe&&he)},[Pe,he]);const ne=he&&(le?te:Q),J=he&&me===1&&le,fe=he&&me>1&&le,ge=(ae,Ce)=>{var We;ie(Ce.expanded),(We=V.onExpand)===null||We===void 0||We.call(V,ae,Ce)},[at,Be]=c.useState(0),Re=ae=>{let{offsetWidth:Ce}=ae;Be(Ce)},He=ae=>{var Ce;Z(ae),Q!==ae&&((Ce=V.onEllipsis)===null||Ce===void 0||Ce.call(V,ae))};c.useEffect(()=>{const ae=E.current;if(Se&&le&&ae){const Ce=Kx(ae);te!==Ce&&ue(Ce)}},[Se,le,d,fe,oe,at]),c.useEffect(()=>{const ae=E.current;if(typeof IntersectionObserver>"u"||!ae||!le||!he)return;const Ce=new IntersectionObserver(()=>{de(!!ae.offsetParent)});return Ce.observe(ae),()=>{Ce.disconnect()}},[le,he]);let Ue={};V.tooltip===!0?Ue={title:(n=$.text)!==null&&n!==void 0?n:d}:c.isValidElement(V.tooltip)?Ue={title:V.tooltip}:typeof V.tooltip=="object"?Ue=Object.assign({title:(r=$.text)!==null&&r!==void 0?r:d},V.tooltip):Ue={title:V.tooltip};const Ge=c.useMemo(()=>{const ae=Ce=>["string","number"].includes(typeof Ce);if(!(!Se||le)){if(ae($.text))return $.text;if(ae(d))return d;if(ae(g))return g;if(ae(Ue.title))return Ue.title}},[Se,le,g,Ue.title,ne]);if(N)return c.createElement(Ax,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:_,onCancel:O,onEnd:$.onEnd,prefixCls:x,className:i,style:s,direction:h,component:p,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Ne=()=>{const{expandable:ae,symbol:Ce}=V;return ae?c.createElement(Ds,{key:"expand",className:`${x}-${se?"collapse":"expand"}`,onClick:We=>ge(We,{expanded:!se}),"aria-label":se?y.collapse:y==null?void 0:y.expand},typeof Ce=="function"?Ce(se):Ce):null},xe=()=>{if(!w)return;const{icon:ae,tooltip:Ce,tabIndex:We}=$,it=Cn(Ce)[0]||(y==null?void 0:y.edit),yt=typeof it=="string"?it:"";return M.includes("icon")?c.createElement(Ia,{key:"edit",title:Ce===!1?"":it},c.createElement(Ds,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":yt,tabIndex:We},ae||c.createElement(mv,{role:"button"}))):null},et=()=>T?c.createElement(qx,Object.assign({key:"copy"},z,{prefixCls:x,copied:D,locale:y,onCopy:G,loading:B,iconOnly:d==null})):null,ke=ae=>[ae&&Ne(),xe(),et()],_e=ae=>[ae&&!se&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Jx),V.suffix,ke(ae)];return c.createElement(un,{onResize:Re,disabled:!he},ae=>c.createElement(yv,{tooltipProps:Ue,enableEllipsis:he,isEllipsis:ne},c.createElement(bl,Object.assign({className:K({[`${x}-${l}`]:l,[`${x}-disabled`]:u,[`${x}-ellipsis`]:Se,[`${x}-ellipsis-single-line`]:J,[`${x}-ellipsis-multiple-line`]:fe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:fe?me:void 0}),component:p,ref:En(ae,E,t),direction:h,onClick:M.includes("text")?H:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:g},P),c.createElement(Yx,{enableMeasure:he&&!le,text:d,rows:me,width:at,onEllipsis:He,expanded:se,miscDeps:[D,se,B,w,T]},(Ce,We)=>Zx(e,c.createElement(c.Fragment,null,Ce.length>0&&We&&!se&&Ge?c.createElement("span",{key:"show-content","aria-hidden":!0},Ce):Ce,_e(We)))))))});var e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const t1=c.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=e1(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=wt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,c.createElement(Ko,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),n1=c.forwardRef((e,t)=>c.createElement(Ko,Object.assign({ref:t},e,{component:"div"})));var r1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const a1=(e,t)=>{var{ellipsis:n}=e,r=r1(e,["ellipsis"]);const a=c.useMemo(()=>n&&typeof n=="object"?mn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const o=wt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Ko,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},o1=c.forwardRef(a1);var i1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gu=[1,2,3,4,5],s1=c.forwardRef((e,t)=>{const{level:n=1}=e,r=i1(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=wt("Typography.Title");process.env.NODE_ENV!=="production"&&o(gu.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return gu.includes(n)?a=`h${n}`:a="h1",c.createElement(Ko,Object.assign({ref:t},r,{component:a}))}),qn=bl;qn.Text=o1;qn.Link=t1;qn.Title=s1;qn.Paragraph=n1;const l1=({type:e="default",disabled:t=!1,label:n,onClick:r,...a})=>{const o=K("gf-button",{"gf-button-primary":e==="primary"},a==null?void 0:a.className);return R.createElement(zo,{type:e,disabled:t,onClick:r,...a,className:o},n)},Sv=({cardType:e,...t})=>{const n=K("gf-card",{"gf-card-default":e==="default","gf-card-grey":e==="grey","gf-card-debug":e==="debug"},t==null?void 0:t.className);return R.createElement(Go,{...t,className:n})},Hn={style:{colorBgBase:"#FFFFFF",colorPrimaryHover:"#3858F2",colorBgDebug:"orange",colorBorder:"#EAECF0",colorTextSecondary:"#475467",colorTextHeading:"#1D2939",radiusSm:2,paddingMd:16}},{Text:c1}=qn,u1=({disabled:e=!1,icon:t=pv,title:n="Title",description:r,onClick:a,...o})=>{const[i,s]=R.useState(!1),l={backgroundColor:Hn.style.colorBgBase,border:`1px solid ${i?Hn.style.colorPrimaryHover:Hn.style.colorBorder}`,borderRadius:Hn.style.radiusSm,padding:Hn.style.paddingMd},u={color:i?Hn.style.colorPrimaryHover:Hn.style.colorTextHeading,fontWeight:700};return R.createElement("div",{style:l,onClick:()=>a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},R.createElement(zs,{gutter:16},R.createElement(aa,{span:1},t),R.createElement(aa,{span:23},R.createElement(c1,{style:u},n))),R.createElement(zs,{gutter:16},R.createElement(aa,{span:1}),R.createElement(aa,{span:23},r)))},{Paragraph:d1}=qn,f1=({percent:e,cost:t,description:n,editable:r,...a})=>{const[o,i]=R.useState(n),s=r?{onChange:i}:!1;return R.createElement(Sv,{className:"gf-metrics",cardType:"grey"},R.createElement(fv,{vertical:!0,gap:8},R.createElement(Uo,{direction:"horizontal",size:16,align:"end"},R.createElement("text",{className:"gf-value-bold"},`${e}%`),R.createElement("text",{className:"gf-cost-italic"},`€${t} md`)),R.createElement(d1,{className:"gf-metrics-description",editable:s},o)))},{Text:pu}=qn,v1=({title:e,subtitle:t,type:n="primary"})=>{const r=K({"gf-title-primary":n==="primary","gf-title-secondary":n==="secondary"}),a=K({"gf-subtitle-primary":n==="primary","gf-subtitle-secondary":n==="secondary"});return R.createElement(Uo,{className:"gf-full-width",direction:"vertical",size:8,align:"start"},R.createElement(pu,{className:r},e),R.createElement(pu,{className:a},t))},{Text:m1}=qn,g1=({text:e,columns:t=2,editable:n=!1,style:r,className:a})=>{const[o,i]=R.useState(e),s=n?{onChange:i}:!1,l=K(`gf-description-${t}`,a);return R.createElement("div",{className:l,style:r||{}},R.createElement(m1,{className:"gf-description-body",editable:s},o))};exports.Description=g1;exports.GFButton=l1;exports.GFCard=Sv;exports.Metrics=f1;exports.NavCard=u1;exports.Title=v1;exports.globals=Hn;
|
|
231
|
+
`]:Object.assign(Object.assign({},Pd(e)),{marginInlineStart:e.marginXXS})}),Lx(e)),Dx(e)),zx()),{"&-rtl":{direction:"rtl"}})}},Bx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),xv=br("Typography",e=>[Vx(e)],Bx),kx=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(Cv,null)}=e,h=c.useRef(null),p=c.useRef(!1),m=c.useRef(),[S,g]=c.useState(l);c.useEffect(()=>{g(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=H=>{let{target:N}=H;g(N.value.replace(/[\n\r]/g,""))},E=()=>{p.current=!0},C=()=>{p.current=!1},x=H=>{let{keyCode:N}=H;p.current||(m.current=N)},R=()=>{u(S.trim())},w=H=>{let{keyCode:N,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;m.current===N&&!p.current&&!O&&!I&&!D&&!V&&(N===le.ENTER?(R(),f==null||f()):N===le.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[F,j,A]=xv(t),M=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(ix,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:w,onCompositionStart:E,onCompositionEnd:C,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Do(b,{className:`${t}-edit-content-confirm`}):null))};var Hx=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()}},Wx=Hx,hu={"text/plain":"Text","text/html":"Url",default:"Text"},Gx="Copy to clipboard: #{key}, Enter";function Ux(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Kx(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Wx(),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=hu[t.format]||hu.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=Ux("message"in t?t.message:Gx),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var qx=Kx;const Xx=wu(qx);var Yx=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 Qx=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=Bt(f=>Yx(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;Xx(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 Zx=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},Jx=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var ew=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=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=ew(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(ot),h=l??v;let p=t;i&&(p=Or(t,i)),process.env.NODE_ENV!=="production"&&It("Typography").deprecated(!i,"setContentRef","ref");const m=f("typography",r),[S,g,y]=xv(m),E=Y(m,b==null?void 0:b.className,{[`${m}-rtl`]:h==="rtl"},a,o,g,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),u);return S(c.createElement(n,Object.assign({className:E,style:C,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(El.displayName="Typography");function bu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function to(e,t,r){return e===!0||e===void 0?t:e||r&&t}function tw(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 rw=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=bu(o),f=bu(i),{copied:v,copy:b}=n??{},h=r?to(d[1],v):to(d[0],b),m=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Hs,{className:Y(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":m,tabIndex:l},r?to(f[1],c.createElement(Nf,null),!0):to(f[0],s?c.createElement(ol,null):c.createElement(yv,null),!0)))},ro=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 wv(e){const t=typeof e;return t==="string"||t==="number"}function nw(e){let t=0;return e.forEach(r=>{wv(r)?t+=String(r).length:t+=1}),t}function yu(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=wv(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 Ti=0,Ii=1,Mi=2,Ai=3,Su=4,no={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function aw(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>$r(n),[n]),d=c.useMemo(()=>nw(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),m=c.useRef(null),S=c.useRef(null),g=c.useRef(null),[y,E]=c.useState(!1),[C,x]=c.useState(Ti),[R,w]=c.useState(0),[$,T]=c.useState(null);yt(()=>{x(t&&r&&d?Ii:Ti)},[r,n,o,t,u]),yt(()=>{var M,H,N,O;if(C===Ii){x(Mi);const I=p.current&&getComputedStyle(p.current).whiteSpace;T(I)}else if(C===Mi){const I=!!(!((M=m.current)===null||M===void 0)&&M.isExceed());x(I?Ai:Su),b(I?[0,d]:null),E(I);const D=((H=m.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((N=S.current)===null||N===void 0?void 0:N.getHeight())||0,k=((O=g.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;yt(()=>{var M;const[H,N]=v||[0,0];if(H!==N){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;N-H===1&&(D=I?H:N),b(I?[H,D]:[D,N])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(C!==Ai||!v||v[0]!==v[1]){const M=a(u,!1);return C!==Su&&C!==Ti?c.createElement("span",{style:Object.assign(Object.assign({},no),{WebkitLineClamp:o})},M):M}return a(i?u:yu(u,v[0]),y)},[i,C,v,u].concat(ye(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,C===Mi&&c.createElement(c.Fragment,null,c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o}),ref:m},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o-1}),ref:S},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:1}),ref:g},a([],!0))),C===Ai&&v&&v[0]!==v[1]&&c.createElement(ro,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(yu(u,F),!0)),C===Ii&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const $v=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"&&($v.displayName="EllipsisTooltip");var ow=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 iw(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 sw="...",Yo=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,m=ow(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:g}=c.useContext(ot),[y]=Mg("Text"),E=c.useRef(null),C=c.useRef(null),x=S("typography",o),R=hr(m,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[T,F]=or(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var Ee;ue&&((Ee=$.onStart)===null||Ee===void 0||Ee.call($)),F(ue)},M=Zx(T);Jx(()=>{var ue;!T&&M&&((ue=C.current)===null||ue===void 0||ue.focus())},[T]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},N=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}=Qx({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Q,Z]=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]=or(B.defaultExpanded||!1,{value:B.expanded}),Ce=we&&(!ce||B.expandable==="collapsible"),{rows:pe=1}=B,ne=c.useMemo(()=>Ce&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[Ce,B,w,I]);yt(()=>{we&&!ne&&(q(jc("webkitLineClamp")),Z(jc("textOverflow")))},[ne,we]);const[me,xe]=c.useState(Ce),Me=c.useMemo(()=>ne?!1:pe===1?Q:W,[ne,Q,W]);yt(()=>{xe(Me&&Ce)},[Me,Ce]);const oe=Ce&&(me?ae:J),re=Ce&&pe===1&&me,ge=Ce&&pe>1&&me,he=(ue,Ee)=>{var Ke;se(Ee.expanded),(Ke=B.onExpand)===null||Ke===void 0||Ke.call(B,ue,Ee)},[tt,qe]=c.useState(0),Ae=ue=>{let{offsetWidth:Ee}=ue;qe(Ee)},Ue=ue=>{var Ee;te(ue),J!==ue&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ue))};c.useEffect(()=>{const ue=E.current;if(we&&me&&ue){const Ee=tw(ue);ae!==Ee&&fe(Ee)}},[we,me,d,ge,de,tt]),c.useEffect(()=>{const ue=E.current;if(typeof IntersectionObserver>"u"||!ue||!me||!Ce)return;const Ee=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return Ee.observe(ue),()=>{Ee.disconnect()}},[me,Ce]);let Xe={};B.tooltip===!0?Xe={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Xe={title:B.tooltip}:typeof B.tooltip=="object"?Xe=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Xe={title:B.tooltip};const Ze=c.useMemo(()=>{const ue=Ee=>["string","number"].includes(typeof Ee);if(!(!we||me)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Xe.title))return Xe.title}},[we,me,p,Xe.title,oe]);if(T)return c.createElement(kx,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:x,className:i,style:s,direction:g,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Fe=()=>{const{expandable:ue,symbol:Ee}=B;return ue?c.createElement(Hs,{key:"expand",className:`${x}-${ce?"collapse":"expand"}`,onClick:Ke=>he(Ke,{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:Ke}=$,rt=$r(Ee)[0]||(y==null?void 0:y.edit),bt=typeof rt=="string"?rt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:Ee===!1?"":rt},c.createElement(Hs,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":bt,tabIndex:Ke},ue||c.createElement(Sv,{role:"button"}))):null},it=()=>I?c.createElement(rw,Object.assign({key:"copy"},D,{prefixCls:x,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ye=ue=>[ue&&Fe(),Ne(),it()],Le=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},sw),B.suffix,Ye(ue)];return c.createElement(vr,{onResize:Ae,disabled:!Ce},ue=>c.createElement($v,{tooltipProps:Xe,enableEllipsis:Ce,isEllipsis:oe},c.createElement(El,Object.assign({className:Y({[`${x}-${l}`]:l,[`${x}-disabled`]:u,[`${x}-ellipsis`]:we,[`${x}-ellipsis-single-line`]:re,[`${x}-ellipsis-multiple-line`]:ge},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ge?pe:void 0}),component:h,ref:Or(ue,E,t),direction:g,onClick:j.includes("text")?H:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:p},R),c.createElement(aw,{enableMeasure:Ce&&!me,text:d,rows:pe,width:tt,onEllipsis:Ue,expanded:ce,miscDeps:[V,ce,k,w,I]},(Ee,Ke)=>iw(e,c.createElement(c.Fragment,null,Ee.length>0&&Ke&&!ce&&Ze?c.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Le(Ke)))))))});var lw=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 cw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=lw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=It("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(Yo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),uw=c.forwardRef((e,t)=>c.createElement(Yo,Object.assign({ref:t},e,{component:"div"})));var dw=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 fw=(e,t)=>{var{ellipsis:r}=e,n=dw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?hr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=It("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(Yo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},vw=c.forwardRef(fw);var mw=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 Cu=[1,2,3,4,5],gw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=mw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=It("Typography.Title");process.env.NODE_ENV!=="production"&&o(Cu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Cu.includes(r)?a=`h${r}`:a="h1",c.createElement(Yo,Object.assign({ref:t},n,{component:a}))}),Yr=El;Yr.Text=vw;Yr.Link=cw;Yr.Title=gw;Yr.Paragraph=uw;const pw=({type:e="default",disabled:t=!1,label:r,onClick:n,...a})=>{const o=Y("gf-button",{"gf-button-primary":e==="primary"},a==null?void 0:a.className);return wt.jsx(Bo,{type:e,disabled:t,onClick:n,...a,className:o,children:r})},Ov=({cardType:e,...t})=>{const r=Y("gf-card",{"gf-card-default":e==="default","gf-card-grey":e==="grey","gf-card-debug":e==="debug"},t==null?void 0:t.className);return wt.jsx(qo,{...t,className:r})},Wr={style:{colorBgBase:"#FFFFFF",colorPrimaryHover:"#3858F2",colorBgDebug:"orange",colorBorder:"#EAECF0",colorTextSecondary:"#475467",colorTextHeading:"#1D2939",radiusSm:2,paddingMd:16}},{Text:hw}=Yr,bw=({disabled:e=!1,icon:t=Ev,title:r="Title",description:n,onClick:a,...o})=>{const[i,s]=P.useState(!1),l={backgroundColor:Wr.style.colorBgBase,border:`1px solid ${i?Wr.style.colorPrimaryHover:Wr.style.colorBorder}`,borderRadius:Wr.style.radiusSm,padding:Wr.style.paddingMd},u={color:i?Wr.style.colorPrimaryHover:Wr.style.colorTextHeading,fontWeight:700};return wt.jsxs("div",{style:l,onClick:()=>a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...o,children:[wt.jsxs(ks,{gutter:16,children:[wt.jsx(sa,{span:1,children:t}),wt.jsx(sa,{span:23,children:wt.jsx(hw,{style:u,children:r})})]}),wt.jsxs(ks,{gutter:16,children:[wt.jsx(sa,{span:1}),wt.jsx(sa,{span:23,children:n})]})]})},{Paragraph:yw}=Yr,Sw=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return wt.jsx(Ov,{className:"gf-metrics",cardType:"grey",...a,children:wt.jsxs(bv,{vertical:!0,gap:8,children:[wt.jsxs(Xo,{direction:"horizontal",size:16,align:"end",children:[wt.jsx("text",{className:"gf-value-bold",children:`${e}%`}),wt.jsx("text",{className:"gf-cost-italic",children:`€${t} md`})]}),wt.jsx(yw,{className:"gf-metrics-description",editable:s,children:o})]})})},{Text:Eu}=Yr,Cw=({title:e,subtitle:t,type:r="primary"})=>{const n=Y({"gf-title-primary":r==="primary","gf-title-secondary":r==="secondary"}),a=Y({"gf-subtitle-primary":r==="primary","gf-subtitle-secondary":r==="secondary"});return wt.jsxs(Xo,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[wt.jsx(Eu,{className:n,children:e}),wt.jsx(Eu,{className:a,children:t})]})},{Text:Ew}=Yr,xw=({text:e,columns:t=2,editable:r=!1,style:n,className:a})=>{const[o,i]=P.useState(e),s=r?{onChange:i}:!1,l=Y(`gf-description-${t}`,a);return wt.jsx("div",{className:l,style:n||{},children:wt.jsx(Ew,{className:"gf-description-body",editable:s,children:o})})};exports.Description=xw;exports.GFButton=pw;exports.GFCard=Ov;exports.Metrics=Sw;exports.NavCard=bw;exports.Title=Cw;exports.globals=Wr;
|
|
203
232
|
//# sourceMappingURL=index.cjs.js.map
|