gf-components 0.1.16 → 0.1.18
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 +42 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +642 -625
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/card/GFCard.d.ts +1 -0
- package/dist/src/components/quickNavCard/QuickNavCard.d.ts +15 -0
- package/dist/src/components/quickNavCard/index.d.ts +1 -0
- package/dist/src/components/title/Title.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),ft=require("styled-components"),Mn=require("react-dom");function Iu(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=Iu(P),Wv=Iu(Mn);function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vi={exports:{}},ea={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/var Al;function Uv(){return Al||(Al=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 g(I){if(I===null||typeof I!="object")return null;var G=h&&I[h]||I[p];return typeof G=="function"?G:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(I){{for(var G=arguments.length,X=new Array(G>1?G-1:0),se=1;se<G;se++)X[se-1]=arguments[se];y("error",I,X)}}function y(I,G,X){{var se=C.ReactDebugCurrentFrame,_e=se.getStackAddendum();_e!==""&&(G+="%s",X=X.concat([_e]));var Re=X.map(function(Te){return String(Te)});Re.unshift("Warning: "+G),Function.prototype.apply.call(console[I],console,Re)}}var x=!1,S=!1,E=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function T(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===o||w||I===a||I===u||I===d||R||I===b||x||S||E||typeof I=="object"&&I!==null&&(I.$$typeof===v||I.$$typeof===f||I.$$typeof===i||I.$$typeof===s||I.$$typeof===l||I.$$typeof===$||I.getModuleId!==void 0))}function M(I,G,X){var se=I.displayName;if(se)return se;var _e=G.displayName||G.name||"";return _e!==""?X+"("+_e+")":X}function F(I){return I.displayName||"Context"}function j(I){if(I==null)return null;if(typeof I.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){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 I=="object")switch(I.$$typeof){case s:var G=I;return F(G)+".Consumer";case i:var X=I;return F(X._context)+".Provider";case l:return M(I,I.render,"ForwardRef");case f:var se=I.displayName||null;return se!==null?se:j(I.type)||"Memo";case v:{var _e=I,Re=_e._payload,Te=_e._init;try{return j(Te(Re))}catch{return null}}}return null}var _=Object.assign,V=0,N,O,A,z,k,H,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(V===0){N=console.log,O=console.info,A=console.warn,z=console.error,k=console.group,H=console.groupCollapsed,K=console.groupEnd;var I={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}V++}}function Y(){{if(V--,V===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},I,{value:N}),info:_({},I,{value:O}),warn:_({},I,{value:A}),error:_({},I,{value:z}),group:_({},I,{value:k}),groupCollapsed:_({},I,{value:H}),groupEnd:_({},I,{value:K})})}V<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,ee;function te(I,G,X){{if(ee===void 0)try{throw Error()}catch(_e){var se=_e.stack.trim().match(/\n( *(at )?)/);ee=se&&se[1]||""}return`
|
|
18
18
|
`+ee+I}}var ae=!1,ve;{var fe=typeof WeakMap=="function"?WeakMap:Map;ve=new fe}function ge(I,G){if(!I||ae)return"";{var X=ve.get(I);if(X!==void 0)return X}var se;ae=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Re;Re=J.current,J.current=null,q();try{if(G){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(pt){se=pt}Reflect.construct(I,[],Te)}else{try{Te.call()}catch(pt){se=pt}I.call(Te.prototype)}}else{try{throw Error()}catch(pt){se=pt}I()}}catch(pt){if(pt&&se&&typeof pt.stack=="string"){for(var Me=pt.stack.split(`
|
|
19
|
-
`),
|
|
20
|
-
`),tt=Me.length-1,Ve=
|
|
21
|
-
`+Me[tt].replace(" at new "," at ");return I.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",I.displayName)),typeof I=="function"&&ve.set(I,wt),wt}while(tt>=1&&Ve>=0);break}}}finally{ae=!1,J.current=Re,Y(),Error.prepareStackTrace=_e}var Gt=I?I.displayName||I.name:"",kt=Gt?te(Gt):"";return typeof I=="function"&&ve.set(I,kt),kt}function Oe(I,G,X){return ge(I,!1)}function B(I){var G=I.prototype;return!!(G&&G.isReactComponent)}function ue(I,G,X){if(I==null)return"";if(typeof I=="function")return ge(I,B(I));if(typeof I=="string")return te(I);switch(I){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case l:return Oe(I.render);case f:return ue(I.type,G,X);case v:{var se=I,_e=se._payload,Re=se._init;try{return ue(Re(_e),G,X)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,Ee={},he=C.ReactDebugCurrentFrame;function ne(I){if(I){var G=I._owner,X=ue(I.type,I._source,G?G.type:null);he.setExtraStackFrame(X)}else he.setExtraStackFrame(null)}function me(I,G,X,se,_e){{var Re=Function.call.bind(le);for(var Te in I)if(Re(I,Te)){var Me=void 0;try{if(typeof I[Te]!="function"){var
|
|
19
|
+
`),mt=se.stack.split(`
|
|
20
|
+
`),tt=Me.length-1,Ve=mt.length-1;tt>=1&&Ve>=0&&Me[tt]!==mt[Ve];)Ve--;for(;tt>=1&&Ve>=0;tt--,Ve--)if(Me[tt]!==mt[Ve]){if(tt!==1||Ve!==1)do if(tt--,Ve--,Ve<0||Me[tt]!==mt[Ve]){var wt=`
|
|
21
|
+
`+Me[tt].replace(" at new "," at ");return I.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",I.displayName)),typeof I=="function"&&ve.set(I,wt),wt}while(tt>=1&&Ve>=0);break}}}finally{ae=!1,J.current=Re,Y(),Error.prepareStackTrace=_e}var Gt=I?I.displayName||I.name:"",kt=Gt?te(Gt):"";return typeof I=="function"&&ve.set(I,kt),kt}function Oe(I,G,X){return ge(I,!1)}function B(I){var G=I.prototype;return!!(G&&G.isReactComponent)}function ue(I,G,X){if(I==null)return"";if(typeof I=="function")return ge(I,B(I));if(typeof I=="string")return te(I);switch(I){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case l:return Oe(I.render);case f:return ue(I.type,G,X);case v:{var se=I,_e=se._payload,Re=se._init;try{return ue(Re(_e),G,X)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,Ee={},he=C.ReactDebugCurrentFrame;function ne(I){if(I){var G=I._owner,X=ue(I.type,I._source,G?G.type:null);he.setExtraStackFrame(X)}else he.setExtraStackFrame(null)}function me(I,G,X,se,_e){{var Re=Function.call.bind(le);for(var Te in I)if(Re(I,Te)){var Me=void 0;try{if(typeof I[Te]!="function"){var mt=Error((se||"React class")+": "+X+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}Me=I[Te](G,Te,se,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(tt){Me=tt}Me&&!(Me instanceof Error)&&(ne(_e),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",se||"React class",X,Te,typeof Me),ne(null)),Me instanceof Error&&!(Me.message in Ee)&&(Ee[Me.message]=!0,ne(_e),m("Failed %s type: %s",X,Me.message),ne(null))}}}var $e=Array.isArray;function Ae(I){return $e(I)}function oe(I){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&I[Symbol.toStringTag]||I.constructor.name||"Object";return X}}function re(I){try{return pe(I),!1}catch{return!0}}function pe(I){return""+I}function be(I){if(re(I))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(I)),pe(I)}var nt=C.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},je,Ke,Ye;Ye={};function et(I){if(le.call(I,"ref")){var G=Object.getOwnPropertyDescriptor(I,"ref").get;if(G&&G.isReactWarning)return!1}return I.ref!==void 0}function Le(I){if(le.call(I,"key")){var G=Object.getOwnPropertyDescriptor(I,"key").get;if(G&&G.isReactWarning)return!1}return I.key!==void 0}function Ne(I,G){if(typeof I.ref=="string"&&nt.current&&G&&nt.current.stateNode!==G){var X=j(nt.current.type);Ye[X]||(m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(nt.current.type),I.ref),Ye[X]=!0)}}function st(I,G){{var X=function(){je||(je=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(I,"key",{get:X,configurable:!0})}}function Ze(I,G){{var X=function(){Ke||(Ke=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",G))};X.isReactWarning=!0,Object.defineProperty(I,"ref",{get:X,configurable:!0})}}var De=function(I,G,X,se,_e,Re,Te){var Me={$$typeof:t,type:I,key:G,ref:X,props:Te,_owner:Re};return Me._store={},Object.defineProperty(Me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(Me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(Me.props),Object.freeze(Me)),Me};function de(I,G,X,se,_e){{var Re,Te={},Me=null,mt=null;X!==void 0&&(be(X),Me=""+X),Le(G)&&(be(G.key),Me=""+G.key),et(G)&&(mt=G.ref,Ne(G,_e));for(Re in G)le.call(G,Re)&&!Xe.hasOwnProperty(Re)&&(Te[Re]=G[Re]);if(I&&I.defaultProps){var tt=I.defaultProps;for(Re in tt)Te[Re]===void 0&&(Te[Re]=tt[Re])}if(Me||mt){var Ve=typeof I=="function"?I.displayName||I.name||"Unknown":I;Me&&st(Te,Ve),mt&&Ze(Te,Ve)}return De(I,Me,mt,_e,se,nt.current,Te)}}var we=C.ReactCurrentOwner,qe=C.ReactDebugCurrentFrame;function at(I){if(I){var G=I._owner,X=ue(I.type,I._source,G?G.type:null);qe.setExtraStackFrame(X)}else qe.setExtraStackFrame(null)}var Ct;Ct=!1;function dt(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function Be(){{if(we.current){var I=j(we.current.type);if(I)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+I+"`."}return""}}function ke(I){return""}var ze={};function Pe(I){{var G=Be();if(!G){var X=typeof I=="string"?I:I.displayName||I.name;X&&(G=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+X+">.")}return G}}function ye(I,G){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var X=Pe(G);if(ze[X])return;ze[X]=!0;var se="";I&&I._owner&&I._owner!==we.current&&(se=" It was passed a child from "+j(I._owner.type)+"."),at(I),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,se),at(null)}}function Ue(I,G){{if(typeof I!="object")return;if(Ae(I))for(var X=0;X<I.length;X++){var se=I[X];dt(se)&&ye(se,G)}else if(dt(I))I._store&&(I._store.validated=!0);else if(I){var _e=g(I);if(typeof _e=="function"&&_e!==I.entries)for(var Re=_e.call(I),Te;!(Te=Re.next()).done;)dt(Te.value)&&ye(Te.value,G)}}}function bt(I){{var G=I.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 se=j(G);me(X,I.props,"prop",se,I)}else if(G.PropTypes!==void 0&&!Ct){Ct=!0;var _e=j(G);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_e||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(I){{for(var G=Object.keys(I.props),X=0;X<G.length;X++){var se=G[X];if(se!=="children"&&se!=="key"){at(I),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),at(null);break}}I.ref!==null&&(at(I),m("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}var We={};function lt(I,G,X,se,_e,Re){{var Te=T(I);if(!Te){var Me="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var
|
|
25
|
+
Check the top-level render call using <`+X+">.")}return G}}function ye(I,G){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var X=Pe(G);if(ze[X])return;ze[X]=!0;var se="";I&&I._owner&&I._owner!==we.current&&(se=" It was passed a child from "+j(I._owner.type)+"."),at(I),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,se),at(null)}}function Ue(I,G){{if(typeof I!="object")return;if(Ae(I))for(var X=0;X<I.length;X++){var se=I[X];dt(se)&&ye(se,G)}else if(dt(I))I._store&&(I._store.validated=!0);else if(I){var _e=g(I);if(typeof _e=="function"&&_e!==I.entries)for(var Re=_e.call(I),Te;!(Te=Re.next()).done;)dt(Te.value)&&ye(Te.value,G)}}}function bt(I){{var G=I.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 se=j(G);me(X,I.props,"prop",se,I)}else if(G.PropTypes!==void 0&&!Ct){Ct=!0;var _e=j(G);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_e||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(I){{for(var G=Object.keys(I.props),X=0;X<G.length;X++){var se=G[X];if(se!=="children"&&se!=="key"){at(I),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),at(null);break}}I.ref!==null&&(at(I),m("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}var We={};function lt(I,G,X,se,_e,Re){{var Te=T(I);if(!Te){var Me="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=ke();mt?Me+=mt:Me+=Be();var tt;I===null?tt="null":Ae(I)?tt="array":I!==void 0&&I.$$typeof===t?(tt="<"+(j(I.type)||"Unknown")+" />",Me=" Did you accidentally export a JSX literal instead of a component?"):tt=typeof I,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tt,Me)}var Ve=de(I,G,X,_e,Re);if(Ve==null)return Ve;if(Te){var wt=G.children;if(wt!==void 0)if(se)if(Ae(wt)){for(var Gt=0;Gt<wt.length;Gt++)Ue(wt[Gt],I);Object.freeze&&Object.freeze(wt)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(wt,I)}if(le.call(G,"key")){var kt=j(I),pt=Object.keys(G).filter(function(Ut){return Ut!=="key"}),Sr=pt.length>0?"{key: someKey, "+pt.join(": ..., ")+": ...}":"{key: someKey}";if(!We[kt+Sr]){var Br=pt.length>0?"{"+pt.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Sr,kt,Br,kt),We[kt+Sr]=!0}}return I===n?He(Ve):bt(Ve),Ve}}function yt(I,G,X){return lt(I,G,X,!0)}function Pt(I,G,X){return lt(I,G,X,!1)}var Vt=Pt,Wt=yt;ta.Fragment=n,ta.jsx=Vt,ta.jsxs=Wt}()),ta}process.env.NODE_ENV==="production"?Vi.exports=Gv():Vi.exports=Uv();var ie=Vi.exports;const zr=
|
|
30
|
+
<%s key={someKey} {...props} />`,Sr,kt,Br,kt),We[kt+Sr]=!0}}return I===n?He(Ve):bt(Ve),Ve}}function yt(I,G,X){return lt(I,G,X,!0)}function Pt(I,G,X){return lt(I,G,X,!1)}var Vt=Pt,Wt=yt;ta.Fragment=n,ta.jsx=Vt,ta.jsxs=Wt}()),ta}process.env.NODE_ENV==="production"?Vi.exports=Gv():Vi.exports=Uv();var ie=Vi.exports;const zr=ft.createGlobalStyle`
|
|
31
31
|
:root {
|
|
32
32
|
/* colors */
|
|
33
33
|
--gf-color-bg-base: #FFFFFF;
|
|
@@ -226,7 +226,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
226
226
|
html body {
|
|
227
227
|
overflow-y: hidden;
|
|
228
228
|
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
229
|
-
}`),a)}else ya(a);return function(){ya(a)}},[t,a])}var cb=!1;function ub(e){return cb}var Ic=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},hl=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"&&it(Xt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Ic(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var F=Ic(a);C(F??null)});var m=nb(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;lb(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&cn(l)&&t){var w=l;R=w.ref}var $=Na(R,t);if(!b||!Xt()||g===void 0)return null;var T=E===!1||ub(),M=l;return t&&(M=c.cloneElement(l,{ref:$})),c.createElement(hf.Provider,{value:S},T?M:Mn.createPortal(M,E))});process.env.NODE_ENV!=="production"&&(hl.displayName="Portal");function db(){var e=D({},c);return e.useId}var Mc=0,Ac=db();const fb=Ac?function(t){var r=Ac();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=Mc;Mc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var on="RC_FORM_INTERNAL_HOOKS",vt=function(){it(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kn=c.createContext({getFieldValue:vt,getFieldsValue:vt,getFieldError:vt,getFieldWarning:vt,getFieldsError:vt,isFieldsTouched:vt,isFieldTouched:vt,isFieldValidating:vt,isFieldsValidating:vt,resetFields:vt,setFields:vt,setFieldValue:vt,setFieldsValue:vt,validateFields:vt,submit:vt,getInternalHooks:function(){return vt(),{dispatch:vt,initEntityValue:vt,registerField:vt,useSubscribe:vt,setInitialValues:vt,destroyForm:vt,setCallbacks:vt,registerWatch:vt,getFields:vt,setValidateMessages:vt,setPreserve:vt,getInitialValue:vt}}}),No=c.createContext(null);function Os(e){return e==null?[]:Array.isArray(e)?e:[e]}function vb(e){return e&&!!e._init}function Rs(){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 Ps=Rs();function gb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function mb(e,t,r){if(Zs())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&pa(a,r.prototype),a}function _s(e){var t=typeof Map=="function"?new Map:void 0;return _s=function(n){if(n===null||!gb(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 mb(n,arguments,ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pa(a,n)},_s(e)}var pb=/%[sdj%]/g,bf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(bf=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 Ts(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(pb,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 hb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||hb(t)&&typeof e=="string"&&!e)}function bb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function jc(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 yb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Fc=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;return Lt(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Dt(r)}(_s(Error));function Cb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Fc(C,Ts(C))):v(a)},p=yb(e);jc(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Fc(d,Ts(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?jc(g,r,h):bb(g,r,h)})});return f.catch(function(v){return v}),f}function Sb(e){return!!(e&&e.message!==void 0)}function xb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Lc(e,t){return function(r){var n;return e.fullFields?n=xb(t,e.fullFields):n=t[r.field||e.fullField],Sb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Dc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var bn="enum",Eb=function(t,r,n,a,o){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&a.push(rr(o.messages[bn],t.fullField,t[bn].join(", ")))},wb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},$b=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(rr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},yf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||It(r,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},no;const Ob=function(){if(no)return no;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return no=new RegExp("(?:^".concat(x,"$)"),"i"),no};var zc={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sa={integer:function(t){return sa.number(t)&&parseInt(t,10)===t},float:function(t){return sa.number(t)&&!sa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ie(t)==="object"&&!sa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(zc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ob())},hex:function(t){return typeof t=="string"&&!!t.match(zc.hex)}},Rb=function(t,r,n,a,o){if(t.required&&r===void 0){yf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?sa[s](r)||a.push(rr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(rr(o.messages.types[s],t.fullField,t.type))},Pb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Qe={required:yf,whitespace:Pb,type:Rb,range:$b,enum:Eb,pattern:wb};var _b=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},Tb=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)},Nb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Ib=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!It(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},Mb="enum",Ab=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[Mb](t,r,a,i,o)}n(i)},jb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Lb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Db=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},zb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),It(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),It(r)||Qe.type(t,r,a,i,o)}n(i)},Bb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},Hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),It(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},wi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(It(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),It(r,i)||Qe.type(t,r,a,s,o)}n(s)};const va={string:Hb,method:Lb,number:Db,boolean:Nb,regexp:kb,integer:Fb,float:jb,array:Tb,object:zb,enum:Ab,pattern:Vb,date:Ib,url:wi,hex:wi,email:wi,required:Bb,any:_b};var ja=function(){function e(t){Lt(this,e),L(this,"rules",null),L(this,"_messages",Ps),this.define(t)}return Dt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Dc(Rs(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Ts(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===Ps&&(d=Rs()),Dc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=D({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return Cb(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Lc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Lc(g,i)):s.error&&($=[s.error(g,rr(s.messages.required,g.field))]),p($);var T={};g.defaultField&&Object.keys(h.value).map(function(j){T[j]=g.defaultField}),T=D(D({},T),h.rule.fields);var M={};Object.keys(T).forEach(function(j){var _=T[j],V=Array.isArray(_)?_:[_];M[j]=V.map(m.bind(null,j))});var F=new e(M);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(j){var _=[];$&&$.length&&_.push.apply(_,Ce($)),j&&j.length&&_.push.apply(_,Ce(j)),p(_.length?_:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!va.hasOwnProperty(r.type))throw new Error(rr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?va.required:va[this.getType(r)]||void 0}}]),e}();L(ja,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");va[t]=r});L(ja,"warning",bf);L(ja,"messages",Ps);L(ja,"validators",va);var Jt="'${name}' is not a valid ${type}",Cf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Vc=ja;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 kc="CODE_LOGIC_ERROR";function Ns(e,t,r,n,a){return Is.apply(this,arguments)}function Is(){return Is=fn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Vc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(kc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Vc(L({},t,[i])),d=Pn(Cf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),D({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===kc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Ns("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Wb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Is.apply(this,arguments)}function Gb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=D(D({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){it(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",it(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=fn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Ns(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Ns(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Kb(u):Ub(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Ub(e){return Ms.apply(this,arguments)}function Ms(){return Ms=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),Ms.apply(this,arguments)}function Kb(e){return As.apply(this,arguments)}function As(){return As=fn(Yt().mark(function e(t){var r;return Yt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),As.apply(this,arguments)}function $t(e){return Os(e)}function Bc(e,t){var r={};return t.forEach(function(n){var a=Or(e,n);r=vr(r,n,a)}),r}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Sf(t,n,r)})}function Sf(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 qb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Xb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Hc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var Yb=["name"],ar=[];function $i(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var bl=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;if(Lt(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",ar),L(Ge(a),"warnings",ar),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(Ce(v),Ce(u)):[]}),L(Ge(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=D(D({},a.getMeta()),{},{destroy:l});Ca(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Nn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ca(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ar,a.warnings=ar,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&$i(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||ar),"warnings"in S&&(a.warnings=S.warnings||ar),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Nn(u,C,!0)){a.reRender();return}if(v&&!C.length&&$i(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Nn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&$i(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(fn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var F=Os(M);return F.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Gb(u,d,E,l,y,x),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar;if(a.validatePromise===p){var M;a.validatePromise=null;var F=[],j=[];(M=T.forEach)===null||M===void 0||M.call(T,function(_){var V=_.rule.warningOnly,N=_.errors,O=N===void 0?ar:N;V?j.push.apply(j,Ce(O)):F.push.apply(F,Ce(O))}),a.errors=F,a.warnings=j,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),a.reRender()),p}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(on),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return D(D({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Rr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Or(l||u(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(on),R=E.dispatch,w=a.getValue(),$=g||function(_){return L({},p,_)},T=l[f],M=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(_){it(typeof M[_]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(_,")"))});var F=D(D({},l),M);F[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,V=arguments.length,N=new Array(V),O=0;O<V;O++)N[O]=arguments[O];b?_=b.apply(void 0,N):_=Xb.apply(void 0,[p].concat(N)),h&&(_=h(_,w,S(!0))),R({type:"updateValue",namePath:y,value:_}),T&&T.apply(void 0,N)};var j=Os(m||[]);return j.forEach(function(_){var V=F[_];F[_]=function(){V&&V.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:_})}}),F}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(on),s=i.initEntityValue;s(Ge(a))}return a}return Dt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(on),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(it(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(bl,"contextType",kn);L(bl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function xf(e){var t=e.name,r=Je(e,Yb),n=c.useContext(kn),a=c.useContext(No),o=t!==void 0?$t(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&it(!1,"`preserve` should not apply on Form.List fields."),c.createElement(bl,xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Zb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(kn),l=c.useContext(No),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return it(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(No.Provider,{value:b},c.createElement(kn.Provider,{value:v},c.createElement(xf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,T){var M=S();T>=0&&T<=M.length?(d.keys=[].concat(Ce(d.keys.slice(0,T)),[d.id],Ce(d.keys.slice(T))),y([].concat(Ce(M.slice(0,T)),[$],Ce(M.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>M.length)&&it(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(M),[$]))),d.id+=1},remove:function($){var T=S(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(d.keys=d.keys.filter(function(F,j){return!M.has(j)}),y(T.filter(function(F,j){return!M.has(j)})))},move:function($,T){if($!==T){var M=S();$<0||$>=M.length||T<0||T>=M.length||(d.keys=Hc(d.keys,$,T),y(Hc(M,$,T)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&it(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var T=d.keys[$];return T===void 0&&(d.keys[$]=d.id,T=d.keys[$],d.id+=1),{name:$,key:T,isListField:!0}}),E,g)})))}function Qb(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 Ef="__@field_split__";function Oi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(Ef)}var yn=function(){function e(){Lt(this,e),L(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(r,n){this.kvs.set(Oi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Oi(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(Oi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(Ef);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}(),Jb=["name"],ey=Dt(function e(t){var r=this;Lt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===on?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(it(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=Pn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=vr(i,l,Or(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new yn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=Or(r.initialValues,n);return n.length?Pn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||it(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new yn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Bc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return Or(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new yn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map($t);return a.some(function(i){var s=i.getNamePath();return Nn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new yn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)it(!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)it(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(vr(r.store,v,Ce(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,Ce(Ce(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Pn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(vr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Jb),u=$t(s);o.push(u),"value"in l&&r.updateStore(vr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=D(D({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=Or(r.store,o);i===void 0&&r.updateStore(vr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!Sf(f.getNamePath(),a)})){var d=r.store;r.updateStore(vr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(vr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Bc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=Pn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new yn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new yn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Nn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map($t):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Nn(l,y,b)){var x=m.validateRules(D({validateMessages:D(D({},Cf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var T=$.rule.warningOnly,M=$.errors;T?w.push.apply(w,Ce(M)):R.push.apply(R,Ce(M))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=Qb(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function wf(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 ey(o);t.current=i.getForm()}return[t.current]}var js=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ty=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(js),s=c.useRef({});return c.createElement(js.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=D(D({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},ry=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ny=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,ry),x=c.useRef(null),S=c.useContext(js),E=wf(i),R=U(E,1),w=R[0],$=w.getInternalHooks(on),T=$.useSubscribe,M=$.setInitialValues,F=$.setCallbacks,j=$.setValidateMessages,_=$.setPreserve,V=$.destroyForm;c.useImperativeHandle(r,function(){return D(D({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),j(D(D({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),ee=1;ee<Y;ee++)J[ee-1]=arguments[ee];p.apply(void 0,[q].concat(J))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),_(s);var N=c.useRef(null);M(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return V(m)}},[]);var O,A=typeof l=="function";if(A){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;T(!A);var k=c.useRef();c.useEffect(function(){qb(k.current||[],o||[])||w.setFields(o||[]),k.current=o},[o,w]);var H=c.useMemo(function(){return D(D({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(No.Provider,{value:null},c.createElement(kn.Provider,{value:H},O));return d===!1?K:c.createElement(d,xe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Wc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var ay=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);it(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function oy(){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=vb(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 Wc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(kn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&it(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=P.useRef(C);return m.current=C,ay(C),P.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(on),E=S.registerWatch,R=function(M,F){var j=i.preserve?F:M;return typeof n=="function"?n(j):Or(j,m.current)},w=E(function(T,M){var F=R(T,M),j=Wc(F);b.current!==j&&(b.current=j,f(F))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var iy=c.forwardRef(ny),Fa=iy;Fa.FormProvider=ty;Fa.Field=xf;Fa.List=Zb;Fa.useForm=wf;Fa.useWatch=oy;const Bn=c.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="FormItemInputContext");const sy=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Bn),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement(Bn.Provider,{value:o},t)},ly=P.createContext(void 0),Fs=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(sy,{override:!0,status:!0},a)),t&&(a=P.createElement(E0,null,a)),a};var $f=function(t){if(Xt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},cy=function(t,r){if(!$f(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Gc(e,t){return!Array.isArray(e)&&t!==void 0?cy(e,t):$f(e)}const Ko=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},uy=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),qo=e=>({height:e,lineHeight:Q(e)}),In=e=>Object.assign({width:e},qo(e)),dy=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:uy,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ri=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},qo(e)),fy=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},In(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},In(a)),[`${t}${t}-sm`]:Object.assign({},In(o))}},vy=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},Ri(t,s)),[`${n}-lg`]:Object.assign({},Ri(a,s)),[`${n}-sm`]:Object.assign({},Ri(o,s))}},Uc=e=>Object.assign({width:e},qo(e)),gy=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},Uc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Uc(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%"}}},Pi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},_i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},qo(e)),my=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},_i(n,s))},Pi(e,n,r)),{[`${r}-lg`]:Object.assign({},_i(a,s))}),Pi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},_i(o,s))}),Pi(e,o,`${r}-sm`))},py=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:C,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},In(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},In(u)),[`${r}-sm`]:Object.assign({},In(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},my(e)),fy(e)),vy(e)),gy(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
229
|
+
}`),a)}else ya(a);return function(){ya(a)}},[t,a])}var cb=!1;function ub(e){return cb}var Ic=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},hl=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"&&it(Xt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Ic(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var F=Ic(a);C(F??null)});var m=nb(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;lb(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&cn(l)&&t){var w=l;R=w.ref}var $=Na(R,t);if(!b||!Xt()||g===void 0)return null;var T=E===!1||ub(),M=l;return t&&(M=c.cloneElement(l,{ref:$})),c.createElement(hf.Provider,{value:S},T?M:Mn.createPortal(M,E))});process.env.NODE_ENV!=="production"&&(hl.displayName="Portal");function db(){var e=D({},c);return e.useId}var Mc=0,Ac=db();const fb=Ac?function(t){var r=Ac();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=Mc;Mc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var on="RC_FORM_INTERNAL_HOOKS",gt=function(){it(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kn=c.createContext({getFieldValue:gt,getFieldsValue:gt,getFieldError:gt,getFieldWarning:gt,getFieldsError:gt,isFieldsTouched:gt,isFieldTouched:gt,isFieldValidating:gt,isFieldsValidating:gt,resetFields:gt,setFields:gt,setFieldValue:gt,setFieldsValue:gt,validateFields:gt,submit:gt,getInternalHooks:function(){return gt(),{dispatch:gt,initEntityValue:gt,registerField:gt,useSubscribe:gt,setInitialValues:gt,destroyForm:gt,setCallbacks:gt,registerWatch:gt,getFields:gt,setValidateMessages:gt,setPreserve:gt,getInitialValue:gt}}}),No=c.createContext(null);function Os(e){return e==null?[]:Array.isArray(e)?e:[e]}function vb(e){return e&&!!e._init}function Rs(){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 Ps=Rs();function gb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function mb(e,t,r){if(Zs())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&pa(a,r.prototype),a}function _s(e){var t=typeof Map=="function"?new Map:void 0;return _s=function(n){if(n===null||!gb(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 mb(n,arguments,ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pa(a,n)},_s(e)}var pb=/%[sdj%]/g,bf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(bf=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 Ts(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(pb,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 hb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||hb(t)&&typeof e=="string"&&!e)}function bb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function jc(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 yb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Fc=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;return Lt(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Dt(r)}(_s(Error));function Cb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Fc(C,Ts(C))):v(a)},p=yb(e);jc(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Fc(d,Ts(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?jc(g,r,h):bb(g,r,h)})});return f.catch(function(v){return v}),f}function Sb(e){return!!(e&&e.message!==void 0)}function xb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Lc(e,t){return function(r){var n;return e.fullFields?n=xb(t,e.fullFields):n=t[r.field||e.fullField],Sb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Dc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var bn="enum",Eb=function(t,r,n,a,o){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&a.push(rr(o.messages[bn],t.fullField,t[bn].join(", ")))},wb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},$b=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(rr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},yf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||It(r,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},no;const Ob=function(){if(no)return no;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return no=new RegExp("(?:^".concat(x,"$)"),"i"),no};var zc={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sa={integer:function(t){return sa.number(t)&&parseInt(t,10)===t},float:function(t){return sa.number(t)&&!sa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ie(t)==="object"&&!sa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(zc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ob())},hex:function(t){return typeof t=="string"&&!!t.match(zc.hex)}},Rb=function(t,r,n,a,o){if(t.required&&r===void 0){yf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?sa[s](r)||a.push(rr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(rr(o.messages.types[s],t.fullField,t.type))},Pb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Qe={required:yf,whitespace:Pb,type:Rb,range:$b,enum:Eb,pattern:wb};var _b=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},Tb=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)},Nb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Ib=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!It(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},Mb="enum",Ab=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[Mb](t,r,a,i,o)}n(i)},jb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Lb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Db=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},zb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),It(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),It(r)||Qe.type(t,r,a,i,o)}n(i)},Bb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},Hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),It(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},wi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(It(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),It(r,i)||Qe.type(t,r,a,s,o)}n(s)};const va={string:Hb,method:Lb,number:Db,boolean:Nb,regexp:kb,integer:Fb,float:jb,array:Tb,object:zb,enum:Ab,pattern:Vb,date:Ib,url:wi,hex:wi,email:wi,required:Bb,any:_b};var ja=function(){function e(t){Lt(this,e),L(this,"rules",null),L(this,"_messages",Ps),this.define(t)}return Dt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Dc(Rs(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Ts(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===Ps&&(d=Rs()),Dc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=D({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return Cb(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Lc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Lc(g,i)):s.error&&($=[s.error(g,rr(s.messages.required,g.field))]),p($);var T={};g.defaultField&&Object.keys(h.value).map(function(j){T[j]=g.defaultField}),T=D(D({},T),h.rule.fields);var M={};Object.keys(T).forEach(function(j){var _=T[j],V=Array.isArray(_)?_:[_];M[j]=V.map(m.bind(null,j))});var F=new e(M);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(j){var _=[];$&&$.length&&_.push.apply(_,Ce($)),j&&j.length&&_.push.apply(_,Ce(j)),p(_.length?_:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!va.hasOwnProperty(r.type))throw new Error(rr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?va.required:va[this.getType(r)]||void 0}}]),e}();L(ja,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");va[t]=r});L(ja,"warning",bf);L(ja,"messages",Ps);L(ja,"validators",va);var Jt="'${name}' is not a valid ${type}",Cf={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Vc=ja;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 kc="CODE_LOGIC_ERROR";function Ns(e,t,r,n,a){return Is.apply(this,arguments)}function Is(){return Is=fn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Vc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(kc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Vc(L({},t,[i])),d=Pn(Cf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),D({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===kc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Ns("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Wb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Is.apply(this,arguments)}function Gb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=D(D({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){it(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",it(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=fn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Ns(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Ns(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Kb(u):Ub(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Ub(e){return Ms.apply(this,arguments)}function Ms(){return Ms=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),Ms.apply(this,arguments)}function Kb(e){return As.apply(this,arguments)}function As(){return As=fn(Yt().mark(function e(t){var r;return Yt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),As.apply(this,arguments)}function $t(e){return Os(e)}function Bc(e,t){var r={};return t.forEach(function(n){var a=Or(e,n);r=vr(r,n,a)}),r}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Sf(t,n,r)})}function Sf(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 qb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Xb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Hc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var Yb=["name"],ar=[];function $i(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var bl=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;if(Lt(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",ar),L(Ge(a),"warnings",ar),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(Ce(v),Ce(u)):[]}),L(Ge(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=D(D({},a.getMeta()),{},{destroy:l});Ca(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Nn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ca(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ar,a.warnings=ar,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&$i(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||ar),"warnings"in S&&(a.warnings=S.warnings||ar),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Nn(u,C,!0)){a.reRender();return}if(v&&!C.length&&$i(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Nn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&$i(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(fn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var F=Os(M);return F.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Gb(u,d,E,l,y,x),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar;if(a.validatePromise===p){var M;a.validatePromise=null;var F=[],j=[];(M=T.forEach)===null||M===void 0||M.call(T,function(_){var V=_.rule.warningOnly,N=_.errors,O=N===void 0?ar:N;V?j.push.apply(j,Ce(O)):F.push.apply(F,Ce(O))}),a.errors=F,a.warnings=j,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),a.reRender()),p}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(on),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return D(D({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Rr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Or(l||u(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(on),R=E.dispatch,w=a.getValue(),$=g||function(_){return L({},p,_)},T=l[f],M=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(_){it(typeof M[_]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(_,")"))});var F=D(D({},l),M);F[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,V=arguments.length,N=new Array(V),O=0;O<V;O++)N[O]=arguments[O];b?_=b.apply(void 0,N):_=Xb.apply(void 0,[p].concat(N)),h&&(_=h(_,w,S(!0))),R({type:"updateValue",namePath:y,value:_}),T&&T.apply(void 0,N)};var j=Os(m||[]);return j.forEach(function(_){var V=F[_];F[_]=function(){V&&V.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:_})}}),F}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(on),s=i.initEntityValue;s(Ge(a))}return a}return Dt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(on),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(it(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(bl,"contextType",kn);L(bl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function xf(e){var t=e.name,r=Je(e,Yb),n=c.useContext(kn),a=c.useContext(No),o=t!==void 0?$t(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&it(!1,"`preserve` should not apply on Form.List fields."),c.createElement(bl,xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Zb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(kn),l=c.useContext(No),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return it(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(No.Provider,{value:b},c.createElement(kn.Provider,{value:v},c.createElement(xf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,T){var M=S();T>=0&&T<=M.length?(d.keys=[].concat(Ce(d.keys.slice(0,T)),[d.id],Ce(d.keys.slice(T))),y([].concat(Ce(M.slice(0,T)),[$],Ce(M.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>M.length)&&it(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(M),[$]))),d.id+=1},remove:function($){var T=S(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(d.keys=d.keys.filter(function(F,j){return!M.has(j)}),y(T.filter(function(F,j){return!M.has(j)})))},move:function($,T){if($!==T){var M=S();$<0||$>=M.length||T<0||T>=M.length||(d.keys=Hc(d.keys,$,T),y(Hc(M,$,T)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&it(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var T=d.keys[$];return T===void 0&&(d.keys[$]=d.id,T=d.keys[$],d.id+=1),{name:$,key:T,isListField:!0}}),E,g)})))}function Qb(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 Ef="__@field_split__";function Oi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(Ef)}var yn=function(){function e(){Lt(this,e),L(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(r,n){this.kvs.set(Oi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Oi(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(Oi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(Ef);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}(),Jb=["name"],ey=Dt(function e(t){var r=this;Lt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===on?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(it(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=Pn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=vr(i,l,Or(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new yn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=Or(r.initialValues,n);return n.length?Pn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||it(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new yn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Bc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return Or(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new yn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map($t);return a.some(function(i){var s=i.getNamePath();return Nn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new yn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)it(!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)it(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(vr(r.store,v,Ce(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,Ce(Ce(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Pn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(vr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Jb),u=$t(s);o.push(u),"value"in l&&r.updateStore(vr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=D(D({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=Or(r.store,o);i===void 0&&r.updateStore(vr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!Sf(f.getNamePath(),a)})){var d=r.store;r.updateStore(vr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(vr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Bc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=Pn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new yn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new yn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Nn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map($t):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Nn(l,y,b)){var x=m.validateRules(D({validateMessages:D(D({},Cf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var T=$.rule.warningOnly,M=$.errors;T?w.push.apply(w,Ce(M)):R.push.apply(R,Ce(M))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=Qb(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function wf(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 ey(o);t.current=i.getForm()}return[t.current]}var js=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ty=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(js),s=c.useRef({});return c.createElement(js.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=D(D({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},ry=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ny=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,ry),x=c.useRef(null),S=c.useContext(js),E=wf(i),R=U(E,1),w=R[0],$=w.getInternalHooks(on),T=$.useSubscribe,M=$.setInitialValues,F=$.setCallbacks,j=$.setValidateMessages,_=$.setPreserve,V=$.destroyForm;c.useImperativeHandle(r,function(){return D(D({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),j(D(D({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),ee=1;ee<Y;ee++)J[ee-1]=arguments[ee];p.apply(void 0,[q].concat(J))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),_(s);var N=c.useRef(null);M(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return V(m)}},[]);var O,A=typeof l=="function";if(A){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;T(!A);var k=c.useRef();c.useEffect(function(){qb(k.current||[],o||[])||w.setFields(o||[]),k.current=o},[o,w]);var H=c.useMemo(function(){return D(D({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(No.Provider,{value:null},c.createElement(kn.Provider,{value:H},O));return d===!1?K:c.createElement(d,xe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Wc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var ay=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);it(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function oy(){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=vb(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 Wc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(kn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&it(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=P.useRef(C);return m.current=C,ay(C),P.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(on),E=S.registerWatch,R=function(M,F){var j=i.preserve?F:M;return typeof n=="function"?n(j):Or(j,m.current)},w=E(function(T,M){var F=R(T,M),j=Wc(F);b.current!==j&&(b.current=j,f(F))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var iy=c.forwardRef(ny),Fa=iy;Fa.FormProvider=ty;Fa.Field=xf;Fa.List=Zb;Fa.useForm=wf;Fa.useWatch=oy;const Bn=c.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="FormItemInputContext");const sy=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Bn),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement(Bn.Provider,{value:o},t)},ly=P.createContext(void 0),Fs=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(sy,{override:!0,status:!0},a)),t&&(a=P.createElement(E0,null,a)),a};var $f=function(t){if(Xt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},cy=function(t,r){if(!$f(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Gc(e,t){return!Array.isArray(e)&&t!==void 0?cy(e,t):$f(e)}const Ko=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},uy=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),qo=e=>({height:e,lineHeight:Q(e)}),In=e=>Object.assign({width:e},qo(e)),dy=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:uy,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ri=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},qo(e)),fy=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},In(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},In(a)),[`${t}${t}-sm`]:Object.assign({},In(o))}},vy=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},Ri(t,s)),[`${n}-lg`]:Object.assign({},Ri(a,s)),[`${n}-sm`]:Object.assign({},Ri(o,s))}},Uc=e=>Object.assign({width:e},qo(e)),gy=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},Uc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Uc(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%"}}},Pi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},_i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},qo(e)),my=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},_i(n,s))},Pi(e,n,r)),{[`${r}-lg`]:Object.assign({},_i(a,s))}),Pi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},_i(o,s))}),Pi(e,o,`${r}-sm`))},py=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:C,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},In(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},In(u)),[`${r}-sm`]:Object.assign({},In(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},my(e)),fy(e)),vy(e)),gy(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
230
230
|
${n},
|
|
231
231
|
${a} > li,
|
|
232
232
|
${r},
|
|
@@ -245,7 +245,7 @@ html body {
|
|
|
245
245
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Hy=new Ot("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wy=new Ot("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qc=new Ot("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xc=new Ot("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Gy=new Ot("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Uy=new Ot("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ky=new Ot("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qy=new Ot("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xy=new Ot("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Yy=new Ot("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Zy=new Ot("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Qy=new Ot("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Jy={zoom:{inKeyframes:Hy,outKeyframes:Wy},"zoom-big":{inKeyframes:qc,outKeyframes:Xc},"zoom-big-fast":{inKeyframes:qc,outKeyframes:Xc},"zoom-left":{inKeyframes:Ky,outKeyframes:qy},"zoom-right":{inKeyframes:Xy,outKeyframes:Yy},"zoom-up":{inKeyframes:Gy,outKeyframes:Uy},"zoom-down":{inKeyframes:Zy,outKeyframes:Qy}},eC=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Jy[t];return[Rf(n,a,o,e.motionDurationFast),{[`
|
|
246
246
|
${n}-enter,
|
|
247
247
|
${n}-appear
|
|
248
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pf=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 tC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function rC(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,C=Je(e,tC),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==Cn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:Cn,overflowY:m?"hidden":Cn,order:i?h:Cn,pointerEvents:m?"none":Cn,position:m?"absolute":Cn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,xe({className:Z(!n&&r,d),style:D(D({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(mr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var ga=c.forwardRef(rC);ga.displayName="Item";function nC(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aC(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],nC(function(){Mn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function na(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var Io=P.createContext(null),oC=["component"],iC=["className"],sC=["className"],lC=function(t,r){var n=c.useContext(Io);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,oC);return c.createElement(o,xe({},i,{ref:r}))}var s=n.className,l=Je(n,iC),u=t.className,d=Je(t,sC);return c.createElement(Io.Provider,{value:null},c.createElement(ga,xe({ref:r,className:Z(s,u)},l,d)))},_f=c.forwardRef(lC);_f.displayName="RawItem";var cC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Tf="responsive",Nf="invalidate";function uC(e){return"+ ".concat(e.length," ...")}function dC(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=Je(e,cC),R=f==="full",w=aC(),$=na(w,null),T=U($,2),M=T[0],F=T[1],j=M||0,_=na(w,new Map),V=U(_,2),N=V[0],O=V[1],A=na(w,0),z=U(A,2),k=z[0],H=z[1],K=na(w,0),W=U(K,2),q=W[0],Y=W[1],J=na(w,0),ee=U(J,2),te=ee[0],ae=ee[1],ve=P.useState(null),fe=U(ve,2),ge=fe[0],Oe=fe[1],B=P.useState(null),ue=U(B,2),le=ue[0],Ee=ue[1],he=c.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,M]),ne=P.useState(!1),me=U(ne,2),$e=me[0],Ae=me[1],oe="".concat(n,"-item"),re=Math.max(k,q),pe=h===Tf,be=o.length&&pe,nt=h===Nf,Xe=be||typeof h=="number"&&o.length>h,je=P.useMemo(function(){var Pe=o;return be?M===null&&R?Pe=o:Pe=o.slice(0,Math.min(o.length,j/d)):typeof h=="number"&&(Pe=o.slice(0,h)),Pe},[o,d,M,h,be]),Ke=P.useMemo(function(){return be?o.slice(he+1):o.slice(je.length)},[o,je,be,he]),Ye=P.useCallback(function(Pe,ye){var Ue;return typeof l=="function"?l(Pe):(Ue=l&&(Pe==null?void 0:Pe[l]))!==null&&Ue!==void 0?Ue:ye},[l]),et=P.useCallback(i||function(Pe){return Pe},[i]);function Le(Pe,ye,Ue){le===Pe&&(ye===void 0||ye===ge)||(Ee(Pe),Ue||(Ae(Pe<o.length-1),S==null||S(Pe)),ye!==void 0&&Oe(ye))}function Ne(Pe,ye){F(ye.clientWidth)}function st(Pe,ye){O(function(Ue){var bt=new Map(Ue);return ye===null?bt.delete(Pe):bt.set(Pe,ye),bt})}function Ze(Pe,ye){Y(ye),H(q)}function De(Pe,ye){ae(ye)}function de(Pe){return N.get(Ye(je[Pe],Pe))}St(function(){if(j&&typeof re=="number"&&je){var Pe=te,ye=je.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var bt=0;bt<ye;bt+=1){var He=de(bt);if(R&&(He=He||0),He===void 0){Le(bt-1,void 0,!0);break}if(Pe+=He,Ue===0&&Pe<=j||bt===Ue-1&&Pe+de(Ue)<=j){Le(Ue,null);break}else if(Pe+re>j){Le(bt-1,Pe-He-te+q);break}}C&&de(0)+te>j&&Oe(null)}},[j,N,q,te,Ye,je]);var we=$e&&!!Ke.length,qe={};ge!==null&&be&&(qe={position:"absolute",left:ge,top:0});var at={prefixCls:oe,responsive:be,component:x,invalidate:nt},Ct=s?function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(Io.Provider,{key:Ue,value:D(D({},at),{},{order:ye,item:Pe,itemKey:Ue,registerSize:st,display:ye<=he})},s(Pe,ye))}:function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(ga,xe({},at,{order:ye,key:Ue,item:Pe,renderItem:et,itemKey:Ue,registerSize:st,display:ye<=he}))},dt,Be={order:we?he:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ze,display:we};if(g)g&&(dt=c.createElement(Io.Provider,{value:D(D({},at),Be)},g(Ke)));else{var ke=p||uC;dt=c.createElement(ga,xe({},at,Be),typeof ke=="function"?ke(Ke):ke)}var ze=c.createElement(y,xe({className:Z(!nt&&n,b),style:v,ref:t},E),je.map(Ct),Xe?dt:null,C&&c.createElement(ga,xe({},at,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(oe,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(mr,{onResize:Ne,disabled:!be},ze)),ze}var Fr=c.forwardRef(dC);Fr.displayName="Overflow";Fr.Item=_f;Fr.RESPONSIVE=Tf;Fr.INVALIDATE=Nf;function fC(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function vC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(un,xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var If=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(If.displayName="PopupContent");var Mf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,M=e.offsetX,F=e.offsetY,j=e.offsetR,_=e.offsetB,V=e.onAlign,N=e.onPrepare,O=e.stretch,A=e.targetWidth,z=e.targetHeight,k=typeof r=="function"?r():r,H=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],J=q[1];if(St(function(){!Y&&K&&i&&J(!0)},[Y,K,i]),!Y)return null;var ee="auto",te={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(T||!l){var ae,ve=p.points,fe=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ge=fe&&ve[0][1]==="r",Oe=fe&&ve[0][0]==="b";ge?(te.right=j,te.left=ee):(te.left=M,te.right=ee),Oe?(te.bottom=_,te.top=ee):(te.top=F,te.bottom=ee)}var B={};return O&&(O.includes("height")&&z?B.height=z:O.includes("minHeight")&&z&&(B.minHeight=z),O.includes("width")&&A?B.width=A:O.includes("minWidth")&&A&&(B.minWidth=A)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||H,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(vC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(mr,{onResize:V,disabled:!l},function(ue){return c.createElement(un,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ee){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,Ee),s(Ee)}}),function(le,Ee){var he=le.className,ne=le.style,me=Z(a,he,n);return c.createElement("div",{ref:yr(ue,t,Ee),className:me,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(fC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(If,{cache:!l&&!d},k))})}))});process.env.NODE_ENV!=="production"&&(Mf.displayName="Popup");var Af=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=cn(r),o=c.useCallback(function(s){Ys(t,n?n(s):s)},[n]),i=Na(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Af.displayName="TriggerWrapper");var Yc=c.createContext(null);function Zc(e){return e?Array.isArray(e)?e:[e]:[]}function gC(e,t,r,n){return c.useMemo(function(){var a=Zc(r??t),o=Zc(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 mC(){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 pC(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(mC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Qc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function La(e){return e.ownerDocument.defaultView}function Ls(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=La(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function aa(e){return Ra(parseFloat(e),0)}function Jc(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=La(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=aa(s),C=aa(l),m=aa(u),y=aa(d),x=Ra(Math.round(f.width/h*1e3)/1e3),S=Ra(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,T=m*x,M=y*x,F=0,j=0;if(o==="clip"){var _=aa(i);F=_*x,j=_*S}var V=f.x+T-F,N=f.y+w-j,O=V+f.width+2*F-T-M-E,A=N+f.height+2*j-w-$-R;r.left=Math.max(r.left,V),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,A)}}),r}function eu(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 tu(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[eu(e.width,a),eu(e.height,o)]}function ru(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ur(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function hC(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?Ls(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,dr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pn=k.x+qt,Qn=k.y+dr,Jn=pn+ae,Ha=Qn+te,ri=Math.max(pn,Gr.left),ni=Math.max(Qn,Gr.top),ai=Math.min(Jn,Gr.right),oi=Math.min(Ha,Gr.bottom);return Math.max(0,(ai-ri)*(oi-ni))},en=function(){I=k.y+ke,G=I+te,X=k.x+Be,se=X+ae};var m,y,x=t,S=x.ownerDocument,E=La(x),R=E.getComputedStyle(x),w=R.width,$=R.height,T=R.position,M=x.style.left,F=x.style.top,j=x.style.right,_=x.style.bottom,V=x.style.overflow,N=D(D({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=T,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var A;if(Array.isArray(r))A={x:r[0],y:r[1],width:0,height:0};else{var z=r.getBoundingClientRect();A={x:z.x,y:z.y,width:z.width,height:z.height}}var k=x.getBoundingClientRect(),H=S.documentElement,K=H.clientWidth,W=H.clientHeight,q=H.scrollWidth,Y=H.scrollHeight,J=H.scrollTop,ee=H.scrollLeft,te=k.height,ae=k.width,ve=A.height,fe=A.width,ge={left:0,top:0,right:K,bottom:W},Oe={left:-ee,top:-J,right:q-ee,bottom:Y-J},B=N.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var Ee=B===le,he=Jc(Oe,v),ne=Jc(ge,v),me=B===ue?ne:he,$e=Ee?ne:me;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ae=x.getBoundingClientRect();x.style.left=M,x.style.top=F,x.style.right=j,x.style.bottom=_,x.style.overflow=V,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var oe=Ra(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Ra(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||ma(r)&&!fl(r))return;var pe=N.offset,be=N.targetOffset,nt=tu(k,pe),Xe=U(nt,2),je=Xe[0],Ke=Xe[1],Ye=tu(A,be),et=U(Ye,2),Le=et[0],Ne=et[1];A.x-=Le,A.y-=Ne;var st=N.points||[],Ze=U(st,2),De=Ze[0],de=Ze[1],we=ru(de),qe=ru(De),at=Sn(A,we),Ct=Sn(k,qe),dt=D({},N),Be=at.x-Ct.x+je,ke=at.y-Ct.y+Ke,ze=Kt(Be,ke),Pe=Kt(Be,ke,ne),ye=Sn(A,["t","l"]),Ue=Sn(k,["t","l"]),bt=Sn(A,["b","r"]),He=Sn(k,["b","r"]),We=N.overflow||{},lt=We.adjustX,yt=We.adjustY,Pt=We.shiftX,Vt=We.shiftY,Wt=function(dr){return typeof dr=="boolean"?dr:dr>=0},I,G,X,se;en();var _e=Wt(yt),Re=qe[0]===we[0];if(_e&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=ke;Re?Te-=te-ve:Te=ye.y-He.y-Ke;var Me=Kt(Be,Te),gt=Kt(Be,Te,ne);Me>ze||Me===ze&&(!Ee||gt>=Pe)?(b.current.bt=!0,ke=Te,Ke=-Ke,dt.points=[Ur(qe,0),Ur(we,0)]):b.current.bt=!1}if(_e&&qe[0]==="b"&&(I<$e.top||b.current.tb)){var tt=ke;Re?tt+=te-ve:tt=bt.y-Ue.y-Ke;var Ve=Kt(Be,tt),wt=Kt(Be,tt,ne);Ve>ze||Ve===ze&&(!Ee||wt>=Pe)?(b.current.tb=!0,ke=tt,Ke=-Ke,dt.points=[Ur(qe,0),Ur(we,0)]):b.current.tb=!1}var Gt=Wt(lt),kt=qe[1]===we[1];if(Gt&&qe[1]==="l"&&(se>$e.right||b.current.rl)){var pt=Be;kt?pt-=ae-fe:pt=ye.x-He.x-je;var Sr=Kt(pt,ke),Br=Kt(pt,ke,ne);Sr>ze||Sr===ze&&(!Ee||Br>=Pe)?(b.current.rl=!0,Be=pt,je=-je,dt.points=[Ur(qe,1),Ur(we,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=Be;kt?Ut+=ae-fe:Ut=bt.x-Ue.x-je;var Hr=Kt(Ut,ke),Kn=Kt(Ut,ke,ne);Hr>ze||Hr===ze&&(!Ee||Kn>=Pe)?(b.current.lr=!0,Be=Ut,je=-je,dt.points=[Ur(qe,1),Ur(we,1)]):b.current.lr=!1}en();var nr=Pt===!0?0:Pt;typeof nr=="number"&&(X<ne.left&&(Be-=X-ne.left-je,A.x+fe<ne.left+nr&&(Be+=A.x-ne.left+fe-nr)),se>ne.right&&(Be-=se-ne.right-je,A.x>ne.right-nr&&(Be+=A.x-ne.right+nr)));var cr=Vt===!0?0:Vt;typeof cr=="number"&&(I<ne.top&&(ke-=I-ne.top-Ke,A.y+ve<ne.top+cr&&(ke+=A.y-ne.top+ve-cr)),G>ne.bottom&&(ke-=G-ne.bottom-Ke,A.y>ne.bottom-cr&&(ke+=A.y-ne.bottom+cr)));var Wr=k.x+Be,Pr=Wr+ae,xr=k.y+ke,_r=xr+te,Jr=A.x,Tr=Jr+fe,ur=A.y,qn=ur+ve,Xn=Math.max(Wr,Jr),Yn=Math.min(Pr,Tr),mn=(Xn+Yn)/2,ht=mn-Wr,ot=Math.max(xr,ur),ft=Math.min(_r,qn),Mt=(ot+ft)/2,jt=Mt-xr;i==null||i(t,dt);var Er=Ae.right-k.x-(Be+k.width),wr=Ae.bottom-k.y-(ke+k.height);oe===1&&(Be=Math.round(Be),Er=Math.round(Er)),re===1&&(ke=Math.round(ke),wr=Math.round(wr));var Zn={ready:!0,offsetX:Be/oe,offsetY:ke/re,offsetR:Er/oe,offsetB:wr/re,arrowX:ht/oe,arrowY:jt/re,scaleX:oe,scaleY:re,align:dt};d(Zn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function bC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Ls(o),l=Ls(i),u=La(i),d=new Set([u].concat(Ce(s),Ce(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function yC(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=La(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=Po(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);An(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 CC=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function SC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,M=r.popup,F=r.popupClassName,j=r.popupStyle,_=r.popupPlacement,V=r.builtinPlacements,N=V===void 0?{}:V,O=r.popupAlign,A=r.zIndex,z=r.stretch,k=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,J=r.popupMotion,ee=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,ve=r.maskTransitionName,fe=r.maskAnimation,ge=r.className,Oe=r.getTriggerDOMNode,B=Je(r,CC),ue=$||T||!1,le=c.useState(!1),Ee=U(le,2),he=Ee[0],ne=Ee[1];St(function(){ne(Pf())},[]);var me=c.useRef({}),$e=c.useContext(Yc),Ae=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){me.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),oe=fb(),re=c.useState(null),pe=U(re,2),be=pe[0],nt=pe[1],Xe=c.useRef(null),je=Ht(function(Se){Xe.current=Se,ma(Se)&&be!==Se&&nt(Se),$e==null||$e.registerSubPopup(oe,Se)}),Ke=c.useState(null),Ye=U(Ke,2),et=Ye[0],Le=Ye[1],Ne=c.useRef(null),st=Ht(function(Se){ma(Se)&&et!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},de={},we=Ht(function(Se){var Fe,xt,_t=et;return(_t==null?void 0:_t.contains(Se))||((Fe=Po(_t))===null||Fe===void 0?void 0:Fe.host)===Se||Se===_t||(be==null?void 0:be.contains(Se))||((xt=Po(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(me.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Qc(o,J,ae,te),at=Qc(o,ee,fe,ve),Ct=c.useState(v||!1),dt=U(Ct,2),Be=dt[0],ke=dt[1],ze=f??Be,Pe=Ht(function(Se){f===void 0&&ke(Se)});St(function(){ke(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var bt=Ht(function(Se){var Fe;Pe(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},lt=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(Fe):He.current=setTimeout(function(){bt(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),Pt=U(yt,2),Vt=Pt[0],Wt=Pt[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var I=c.useState(null),G=U(I,2),X=G[0],se=G[1],_e=c.useState([0,0]),Re=U(_e,2),Te=Re[0],Me=Re[1],gt=function(Fe){Me([Fe.clientX,Fe.clientY])},tt=hC(ze,be,K?Te:et,_,N,O,q),Ve=U(tt,11),wt=Ve[0],Gt=Ve[1],kt=Ve[2],pt=Ve[3],Sr=Ve[4],Br=Ve[5],Ut=Ve[6],Hr=Ve[7],Kn=Ve[8],nr=Ve[9],cr=Ve[10],Wr=gC(he,l,u,d),Pr=U(Wr,2),xr=Pr[0],_r=Pr[1],Jr=xr.has("click"),Tr=_r.has("click")||_r.has("contextMenu"),ur=Ht(function(){Vt||cr()}),qn=function(){ye.current&&K&&Tr&<(!1)};bC(ze,et,be,ur,qn),St(function(){ur()},[Te,_]),St(function(){ze&&!(N!=null&&N[_])&&ur()},[JSON.stringify(O)]);var Xn=c.useMemo(function(){var Se=pC(N,o,nr,K);return Z(Se,k==null?void 0:k(nr))},[nr,k,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:ur}});var Yn=c.useState(0),mn=U(Yn,2),ht=mn[0],ot=mn[1],ft=c.useState(0),Mt=U(ft,2),jt=Mt[0],Er=Mt[1],wr=function(){if(z&&et){var Fe=et.getBoundingClientRect();ot(Fe.width),Er(Fe.height)}},Zn=function(){wr(),ur()},Kt=function(Fe){Wt(!1),cr(),h==null||h(Fe)},en=function(){return new Promise(function(Fe){wr(),se(function(){return Fe})})};St(function(){X&&(cr(),X(),se(null))},[X]);function qt(Se,Fe,xt,_t){de[Se]=function(Et){var Wa;_t==null||_t(Et),lt(Fe,xt);for(var ii=arguments.length,Il=new Array(ii>1?ii-1:0),Ga=1;Ga<ii;Ga++)Il[Ga-1]=arguments[Ga];(Wa=De[Se])===null||Wa===void 0||Wa.call.apply(Wa,[De,Et].concat(Il))}}(Jr||Tr)&&(de.onClick=function(Se){var Fe;ye.current&&Tr?lt(!1):!ye.current&&Jr&&(gt(Se),lt(!0));for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),yC(ze,Tr,et,be,x,E,we,lt);var dr=xr.has("hover"),Gr=_r.has("hover"),pn,Qn;dr&&(qt("onMouseEnter",!0,p,function(Se){gt(Se)}),qt("onPointerEnter",!0,p,function(Se){gt(Se)}),pn=function(Fe){(ze||Vt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&<(!0,p)},K&&(de.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Gr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Qn=function(){lt(!1,C)}),xr.has("focus")&&qt("onFocus",!0,m),_r.has("focus")&&qt("onBlur",!1,y),xr.has("contextMenu")&&(de.onContextMenu=function(Se){var Fe;ye.current&&_r.has("contextMenu")?lt(!1):(gt(Se),lt(!0)),Se.preventDefault();for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),ge&&(de.className=Z(De.className,ge));var Jn=D(D({},De),de),Ha={},ri=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ri.forEach(function(Se){B[Se]&&(Ha[Se]=function(){for(var Fe,xt=arguments.length,_t=new Array(xt),Et=0;Et<xt;Et++)_t[Et]=arguments[Et];(Fe=Jn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Jn].concat(_t)),B[Se].apply(B,_t)})});var ni=c.cloneElement(Ze,D(D({},Jn),Ha)),ai={x:Br,y:Ut},oi=Y?D({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(mr,{disabled:!ze,ref:st,onResize:Zn},c.createElement(Af,{getTriggerDOMNode:Oe},ni)),c.createElement(Yc.Provider,{value:Ae},c.createElement(Mf,{portal:e,ref:je,prefixCls:o,popup:M,className:Z(F,Xn),style:j,target:et,onMouseEnter:pn,onMouseLeave:Qn,onPointerEnter:pn,zIndex:A,open:ze,keepDom:Vt,fresh:H,onClick:W,mask:x,motion:qe,maskMotion:at,onVisibleChanged:Kt,onPrepare:en,forceRender:w,autoDestroy:ue,getPopupContainer:R,align:nr,arrow:oi,arrowPos:ai,ready:wt,offsetX:Gt,offsetY:kt,offsetR:pt,offsetB:Sr,onAlign:ur,stretch:z,targetWidth:ht/Hr,targetHeight:jt/Kn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const yl=SC(hl);function Ds(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const jf=(e,t)=>t||e,Ff=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(rt),s=P.useContext(ly),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=Cp.includes(u);return[u,d]};var xC={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"},EC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xC}))},Lf=c.forwardRef(EC);process.env.NODE_ENV!=="production"&&(Lf.displayName="CheckOutlined");var wC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},$C=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:wC}))},Df=c.forwardRef($C);process.env.NODE_ENV!=="production"&&(Df.displayName="DownOutlined");const Pa=["xxl","xl","lg","md","sm","xs"],OC=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)`}),RC=e=>{const t=e,r=[].concat(Pa).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function PC(){const[,e]=Vr(),t=OC(RC(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 zf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var xn={shiftX:64,adjustY:1},En={adjustX:1,shiftY:!0},or=[0,0],_C={left:{points:["cr","cl"],overflow:En,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:En,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:xn,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:xn,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:xn,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:xn,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:En,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:En,offset:[-4,0],targetOffset:or}},TC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],NC=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,j=t.id,_=t.showArrow,V=_===void 0?!0:_,N=Je(t,TC),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var A=D({},N);"visible"in t&&(A.popupVisible=t.visible);var z=function(){return c.createElement(zf,{key:"content",prefixCls:v,id:j,overlayInnerStyle:M},F)};return c.createElement(yl,xe({popupClassName:n,prefixCls:v,popup:z,action:o,builtinPlacements:_C,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:V},A),b)};const IC=P.forwardRef(NC);function MC(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,C=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,x=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const AC=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vf=8;function kf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vf:n}}function ao(e,t){return e?t:{}}function jC(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"},AC(e,t,a)),{"&:before":{background:t}})]},ao(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ao(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ao(!!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}})),ao(!!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 FC(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 nu={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"]}},LC={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"]}},DC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(nu).forEach(u=>{const d=n&&LC[u]||nu[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,DC.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=kf({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=FC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const VC=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({},Lr(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Vf)}},[`${t}-content`]:{position:"relative"}}),Xp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},jC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},kC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},kf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),MC(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Bf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=At(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[VC(s),eC(n,"zoom-big-fast")]},kC,{resetStyle:!1,injectStyle:t})(e)},BC=Ro.map(e=>`${e}-inverse`);function HC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(BC),Ce(Ro)).includes(e):Ro.includes(e)}function Hf(e,t){const r=HC(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const WC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(rt),l=s("tooltip",t),[u,d,f]=Bf(l),v=Hf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(zf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var GC=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 UC=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Vr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(rt),$=Nt("Tooltip"),T=c.useRef(null),M=()=>{var oe;(oe=T.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},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,pe]=oe;$.deprecated(!(re in e),re,pe)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[F,j]=Zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),_=!p&&!g&&p!==0,V=oe=>{var re,pe;j(_?!1:oe),_||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,oe))},N=c.useMemo(()=>{var oe,re;let pe=m;return typeof h=="object"&&(pe=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),C||zC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),A=c.createElement(Fs,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:k="top",mouseEnterDelay:H=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=GC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=R("tooltip",a),ee=R(),te=e["data-popover-inject"];let ae=F;!("open"in e)&&!("visible"in e)&&_&&(ae=!1);const ve=c.isValidElement(d)&&!nf(d)?d:c.createElement("span",null,d),fe=ve.props,ge=!fe.className||typeof fe.className=="string"?Z(fe.className,o||`${J}-open`):fe.className,[Oe,B,ue]=Bf(J,!te),le=Hf(J,l),Ee=le.arrowStyle,he=Object.assign(Object.assign({},u),le.overlayStyle),ne=Z(s,{[`${J}-rtl`]:w==="rtl"},le.className,q,B,ue),[me,$e]=r0("Tooltip",Y.zIndex),Ae=c.createElement(IC,Object.assign({},Y,{zIndex:me,showArrow:x,placement:k,mouseEnterDelay:H,mouseLeaveDelay:K,prefixCls:J,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ee),W),getTooltipContainer:z||i||E,ref:T,builtinPlacements:N,overlay:A,visible:ae,onVisibleChange:V,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:of(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Ho(ve,{className:ge}):ve);return Oe(c.createElement(dl.Provider,{value:$e},Ae))}),Da=UC;process.env.NODE_ENV!=="production"&&(Da.displayName="Tooltip");Da._InternalPanelDoNotUseOrYouWillBeFired=WC;var KC=ce.ESC,qC=ce.TAB;function XC(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 KC:s();break;case qC:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var YC=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=yr(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:cn(o)?i:void 0}))}),wn={adjustX:1,adjustY:1},$n=[0,0],ZC={topLeft:{points:["bl","tl"],overflow:wn,offset:[0,-4],targetOffset:$n},top:{points:["bc","tc"],overflow:wn,offset:[0,-4],targetOffset:$n},topRight:{points:["br","tr"],overflow:wn,offset:[0,-4],targetOffset:$n},bottomLeft:{points:["tl","bl"],overflow:wn,offset:[0,4],targetOffset:$n},bottom:{points:["tc","bc"],overflow:wn,offset:[0,4],targetOffset:$n},bottomRight:{points:["tr","br"],overflow:wn,offset:[0,4],targetOffset:$n}},QC=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function JC(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?ZC:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,QC),M=P.useState(),F=U(M,2),j=F[0],_=F[1],V="visible"in e?y:j,N=P.useRef(null),O=P.useRef(null),A=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var z=function(te){_(te),$==null||$(te)};XC({visible:V,triggerRef:A,onVisibleChange:z,autoFocus:E,overlayRef:O});var k=function(te){var ae=e.onOverlayClick;_(!1),ae&&ae(te)},H=function(){return P.createElement(YC,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?H:H()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,V&&q()),ref:cn(w)?yr(A,w.ref):void 0}),J=g;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),P.createElement(yl,xe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:V,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:z,onPopupClick:k,getPopupContainer:h}),Y)}const eS=P.forwardRef(JC);var Wf=c.createContext(null);function Gf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Uf(e){var t=c.useContext(Wf);return Gf(t,e)}var tS=["children","locked"],br=c.createContext(null);function rS(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=Je(e,tS),a=c.useContext(br),o=Fo(function(){return rS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ca(i[1],s[1],!0))});return c.createElement(br.Provider,{value:o},t)}var nS=[],Kf=c.createContext(null);function Xo(){return c.useContext(Kf)}var qf=c.createContext(nS);function za(e){var t=c.useContext(qf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Xf=c.createContext(null),Cl=c.createContext({});function au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fl(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 aS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return au(n,t)});return au(e,t)&&r.unshift(e),r}var zs=ce.LEFT,Vs=ce.RIGHT,ks=ce.UP,bo=ce.DOWN,yo=ce.ENTER,Yf=ce.ESC,oa=ce.HOME,ia=ce.END,ou=[ks,bo,zs,Vs];function oS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===yo)return{inlineTrigger:!0};var v=(a={},L(a,ks,l),L(a,bo,u),a),b=(o={},L(o,zs,r?u:l),L(o,Vs,r?l:u),L(o,bo,d),L(o,yo,d),o),h=(i={},L(i,ks,l),L(i,bo,u),L(i,yo,d),L(i,Yf,f),L(i,zs,r?d:f),L(i,Vs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function iS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function Sl(e,t){var r=aS(e,!0);return r.filter(function(n){return t.has(n)})}function iu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Sl(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 Bs=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(Gf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function lS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(ou,[yo,Yf,oa,ia]).includes(h)){var p=o(),g=Bs(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=sS(S,m),R=x.get(E),w=oS(e,i(R,!0).length===1,r,h);if(!w&&h!==oa&&h!==ia)return;(ou.includes(h)||[oa,ia].includes(h))&&b.preventDefault();var $=function(O){if(O){var A=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(A=z);var k=x.get(O);s(k),v(),d.current=Tt(function(){f.current===k&&A.focus()})}};if([oa,ia].includes(h)||w.sibling||!E){var T;!E||e==="inline"?T=a.current:T=iS(E);var M,F=Sl(T,m);h===oa?M=F[0]:h===ia?M=F[F.length-1]:M=iu(T,m,E,w.offset),$(M)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Bs(p,n);var N=E.getAttribute("aria-controls"),O=document.getElementById(N),A=iu(O,g.elements);$(A)},5);else if(w.offset<0){var j=i(R,!0),_=j[j.length-2],V=y.get(_);l(_,!1),$(V)}}u==null||u(b)}}function cS(e){Promise.resolve().then(e)}var xl="__RC_UTIL_PATH_SPLIT__",su=function(t){return t.join(xl)},uS=function(t){return t.split(xl)},Hs="rc-menu-more";function dS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,x){process.env.NODE_ENV!=="production"&&it(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=su(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;cS(function(){E===u.current&&f()})},[]),b=P.useCallback(function(y,x){var S=su(x);a.current.delete(S),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,x){var S=n.current.get(y)||"",E=uS(S);return x&&s.includes(E[0])&&E.unshift(Hs),E},[s]),g=P.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(Hs),x},m=P.useCallback(function(y){var x="".concat(n.current.get(y)).concat(xl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function la(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var fS=Math.random().toFixed(5).toString().slice(2),lu=0;function vS(e){var t=Zt(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){lu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(fS,"-").concat(lu);a("rc-menu-uuid-".concat(o))},[]),n}function Zf(e,t,r,n){var a=c.useContext(br),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Qf(e){var t=c.useContext(br),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Jf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,D({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var gS=["item"];function Mo(e){var t=e.item,r=Je(e,gS);return Object.defineProperty(r,"item",{get:function(){return it(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var mS=["title","attribute","elementRef"],pS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],hS=["active"],bS=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,mS),u=Cr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return it(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Fr.Item,xe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),yS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=Je(e,pS),C=Uf(o),m=c.useContext(br),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,T=c.useContext(Cl),M=T._internalRenderMenuItem,F="".concat(y,"-item"),j=c.useRef(),_=c.useRef(),V=S||s,N=Na(t,_),O=za(o);process.env.NODE_ENV!=="production"&&i&&it(!1,"MenuItem should not leave undefined `key`.");var A=function(fe){return{key:o,keyPath:Ce(O).reverse(),item:j.current,domEvent:fe}},z=l||R,k=Zf(o,V,f,v),H=k.active,K=Je(k,hS),W=w.includes(o),q=Qf(O.length),Y=function(fe){if(!V){var ge=A(fe);b==null||b(Mo(ge)),x(ge)}},J=function(fe){if(h==null||h(fe),fe.which===ce.ENTER){var ge=A(fe);b==null||b(Mo(ge)),x(ge)}},ee=function(fe){$(o),p==null||p(fe)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(bS,xe({ref:j,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:D(D({},q),n),className:Z(F,(r={},L(r,"".concat(F,"-active"),H),L(r,"".concat(F,"-selected"),W),L(r,"".concat(F,"-disabled"),V),r),a),onClick:Y,onKeyDown:J,onFocus:ee}),u,c.createElement(Jf,{props:D(D({},e),{},{isSelected:W}),icon:z}));return M&&(ae=M(ae,e,{selected:W})),ae});function CS(e,t){var r=e.eventKey,n=Xo(),a=za(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(yS,xe({},e,{ref:t}))}const Yo=c.forwardRef(CS);var SS=["className","children"],xS=function(t,r){var n=t.className,a=t.children,o=Je(t,SS),i=c.useContext(br),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",xe({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},El=c.forwardRef(xS);El.displayName="SubMenuList";function wl(e,t){return Rr(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Ce(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Bt={adjustX:1,adjustY:1},ES={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},wS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function ev(e,t,r){if(t)return t;if(r)return r[e]||r.other}var $S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function OS(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(br),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],T=D(b?D({},wS):D({},ES),g),M=$S[u],F=ev(u,x,S),j=c.useRef(F);u!=="inline"&&(j.current=F);var _=D(D({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=c.useRef();return c.useEffect(function(){return V.current=Tt(function(){$(r)}),function(){Tt.cancel(V.current)}},[r]),c.createElement(yl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:M,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},n)}function RS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(br),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=D({},ev(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(un,xe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement(El,{id:t,className:S,style:E},a)}))}var PS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_S=["active"],TS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Je(e,PS),R=Uf(i),w=c.useContext(br),$=w.prefixCls,T=w.mode,M=w.openKeys,F=w.disabled,j=w.overflowDisabled,_=w.activeKey,V=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,A=w.onItemClick,z=w.onOpenChange,k=w.onActive,H=c.useContext(Cl),K=H._internalRenderSubMenuItem,W=c.useContext(Xf),q=W.isSubPathKey,Y=za(),J="".concat($,"-submenu"),ee=F||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&it(!1,"SubMenu should not leave undefined `key`.");var ve=f??N,fe=v??O,ge=M.includes(i),Oe=!j&&ge,B=q(V,i),ue=Zf(i,ee,x,S),le=ue.active,Ee=Je(ue,_S),he=c.useState(!1),ne=U(he,2),me=ne[0],$e=ne[1],Ae=function(De){ee||$e(De)},oe=function(De){Ae(!0),C==null||C({key:i,domEvent:De})},re=function(De){Ae(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return le||(T!=="inline"?me||q([_],i):!1)},[T,le,_,me,i,q]),be=Qf(Y.length),nt=function(De){ee||(y==null||y({key:i,domEvent:De}),T==="inline"&&z(i,!ge))},Xe=la(function(Ze){g==null||g(Mo(Ze)),A(Ze)}),je=function(De){T!=="inline"&&z(i,De)},Ke=function(){k(i)},Ye=R&&"".concat(R,"-popup"),et=c.createElement("div",xe({role:"menuitem",style:be,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":j&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":ee,onClick:nt,onFocus:Ke},Ee),o,c.createElement(Jf,{icon:T!=="horizontal"?fe:void 0,props:D(D({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(J,"-arrow")}))),Le=c.useRef(T);if(T!=="inline"&&Y.length>1?Le.current="vertical":Le.current=T,!j){var Ne=Le.current;et=c.createElement(OS,{mode:Ne,prefixCls:J,visible:!u&&Oe&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(El,{id:Ye,ref:ae},d)),disabled:ee,onVisibleChange:je},et)}var st=c.createElement(Fr.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(J,"".concat(J,"-").concat(T),a,(r={},L(r,"".concat(J,"-open"),Oe),L(r,"".concat(J,"-active"),pe),L(r,"".concat(J,"-selected"),B),L(r,"".concat(J,"-disabled"),ee),r)),onMouseEnter:oe,onMouseLeave:re}),et,!j&&c.createElement(RS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(st=K(st,e,{selected:B,active:pe,open:Oe,disabled:ee})),c.createElement(_a,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:ve,expandIcon:fe},st)}),Zo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=za(r),o=wl(n,a),i=Xo();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(TS,xe({ref:t},e),o),c.createElement(qf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Zo.displayName="SubMenu");function tv(e){var t=e.className,r=e.style,n=c.useContext(br),a=n.prefixCls,o=Xo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var NS=["className","title","eventKey","children"],IS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,NS),i=c.useContext(br),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),$l=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=za(r),o=wl(n,a),i=Xo();return i?o:c.createElement(IS,xe({ref:t},Cr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&($l.displayName="MenuItemGroup");var MS=["label","children","key","type"];function Ws(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,MS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,xe({key:h},b,{title:u}),Ws(d,t)):c.createElement(a,xe({key:h},b,{title:u}),Ws(d,t)):v==="divider"?c.createElement(o,xe({key:h},b)):c.createElement(r,xe({key:h},b),u)}return null}).filter(function(i){return i})}function cu(e,t,r,n){var a=e,o=D({divider:tv,item:Yo,group:$l,submenu:Zo},n);return t&&(a=Ws(t,o)),wl(a,r)}var AS=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],tn=[],jS=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,M=a.openKeys,F=a.activeKey,j=a.defaultActiveFirst,_=a.selectable,V=_===void 0?!0:_,N=a.multiple,O=N===void 0?!1:N,A=a.defaultSelectedKeys,z=a.selectedKeys,k=a.onSelect,H=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,te=a.builtinPlacements,ae=a.itemIcon,ve=a.expandIcon,fe=a.overflowedIndicator,ge=fe===void 0?"...":fe,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,Ee=a.onKeyDown,he=a.openAnimation,ne=a.openTransitionName,me=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,Ae=a._internalComponents,oe=Je(a,AS),re=c.useMemo(function(){return[cu(b,v,tn,Ae),cu(b,v,tn,{})]},[b,v,Ae]),pe=U(re,2),be=pe[0],nt=pe[1],Xe=c.useState(!1),je=U(Xe,2),Ke=je[0],Ye=je[1],et=c.useRef(),Le=vS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&it(!he&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=Zt(T,{value:M,postState:function(ot){return ot||tn}}),Ze=U(st,2),De=Ze[0],de=Ze[1],we=function(ot){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mt(){de(ot),le==null||le(ot)}ft?Mn.flushSync(Mt):Mt()},qe=c.useState(De),at=U(qe,2),Ct=at[0],dt=at[1],Be=c.useRef(!1),ke=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(ke,2),Pe=ze[0],ye=ze[1],Ue=Pe==="inline",bt=c.useState(Pe),He=U(bt,2),We=He[0],lt=He[1],yt=c.useState(ye),Pt=U(yt,2),Vt=Pt[0],Wt=Pt[1];c.useEffect(function(){lt(Pe),Wt(ye),Be.current&&(Ue?de(Ct):we(tn))},[Pe,ye]);var I=c.useState(0),G=U(I,2),X=G[0],se=G[1],_e=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&dt(De)},[De]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var Re=dS(),Te=Re.registerPath,Me=Re.unregisterPath,gt=Re.refreshOverflowKeys,tt=Re.isSubPathKey,Ve=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,kt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),pt=c.useMemo(function(){return{isSubPathKey:tt}},[tt]);c.useEffect(function(){gt(_e?tn:be.slice(X+1).map(function(ht){return ht.key}))},[X,_e]);var Sr=Zt(F||j&&((r=be[0])===null||r===void 0?void 0:r.key),{value:F}),Br=U(Sr,2),Ut=Br[0],Hr=Br[1],Kn=la(function(ht){Hr(ht)}),nr=la(function(){Hr(void 0)});P.useImperativeHandle(t,function(){return{list:et.current,focus:function(ot){var ft,Mt=wt(),jt=Bs(Mt,Le),Er=jt.elements,wr=jt.key2element,Zn=jt.element2key,Kt=Sl(et.current,Er),en=Ut??(Kt[0]?Zn.get(Kt[0]):(ft=be.find(function(Gr){return!Gr.props.disabled}))===null||ft===void 0?void 0:ft.key),qt=wr.get(en);if(en&&qt){var dr;qt==null||(dr=qt.focus)===null||dr===void 0||dr.call(qt,ot)}}}});var cr=Zt(A||[],{value:z,postState:function(ot){return Array.isArray(ot)?ot:ot==null?tn:[ot]}}),Wr=U(cr,2),Pr=Wr[0],xr=Wr[1],_r=function(ot){if(V){var ft=ot.key,Mt=Pr.includes(ft),jt;O?Mt?jt=Pr.filter(function(wr){return wr!==ft}):jt=[].concat(Ce(Pr),[ft]):jt=[ft],xr(jt);var Er=D(D({},ot),{},{selectedKeys:jt});Mt?H==null||H(Er):k==null||k(Er)}!O&&De.length&&We!=="inline"&&we(tn)},Jr=la(function(ht){ue==null||ue(Mo(ht)),_r(ht)}),Tr=la(function(ht,ot){var ft=De.filter(function(jt){return jt!==ht});if(ot)ft.push(ht);else if(We!=="inline"){var Mt=Gt(ht);ft=ft.filter(function(jt){return!Mt.has(jt)})}Ca(De,ft,!0)||we(ft,!0)}),ur=function(ot,ft){var Mt=ft??!De.includes(ot);Tr(ot,Mt)},qn=lS(We,Ut,Ne,Le,et,wt,Ve,Hr,ur,Ee);c.useEffect(function(){Ye(!0)},[]);var Xn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:$e}},[me,$e]),Yn=We!=="horizontal"||x?be:be.map(function(ht,ot){return c.createElement(_a,{key:ht.key,overflowDisabled:ot>X},ht)}),mn=c.createElement(Fr,xe({id:p,ref:et,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Yo,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Vt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:Yn,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var ft=ot.length,Mt=ft?be.slice(-ft):null;return c.createElement(Zo,{eventKey:Hs,title:ge,disabled:_e,internalPopupClose:ft===0,popupClassName:Oe},Mt)},maxCount:We!=="horizontal"||x?Fr.INVALIDATE:Fr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){se(ot)},onKeyDown:qn},oe));return c.createElement(Cl.Provider,{value:Xn},c.createElement(Wf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Kn,onInactive:nr,selectedKeys:Pr,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:B,itemIcon:ae,expandIcon:ve,onItemClick:Jr,onOpenChange:Tr},c.createElement(Xf.Provider,{value:pt},mn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Kf.Provider,{value:kt},nt)))))}),Va=jS;Va.Item=Yo;Va.SubMenu=Zo;Va.ItemGroup=$l;Va.Divider=tv;var FS={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"},LS=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:FS}))},rv=c.forwardRef(LS);process.env.NODE_ENV!=="production"&&(rv.displayName="EllipsisOutlined");const nv=c.createContext(null),DS=nv.Provider,av=c.createContext(null),zS=av.Provider;var VS=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],kS=P.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,b=e.onChange,h=Je(e,VS),p=P.useRef(null),g=P.useRef(null),C=Zt(u,{value:i}),m=U(C,2),y=m[0],x=m[1];P.useImperativeHandle(t,function(){return{focus:function(w){var $;($=p.current)===null||$===void 0||$.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:g.current}});var S=Z(n,a,L(L({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),E=function(w){s||("checked"in e||x(w.target.checked),b==null||b({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:v,style:o,ref:g},c.createElement("input",xe({},h,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(n,"-inner")}))});const BS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},Lr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},HS=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:b,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:m}=e,y=`${t}-inner`,S=m(a).sub(m(4).mul(2)),E=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Lr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Q(d)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
248
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pf=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 tC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function rC(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,C=Je(e,tC),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==Cn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:Cn,overflowY:m?"hidden":Cn,order:i?h:Cn,pointerEvents:m?"none":Cn,position:m?"absolute":Cn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,xe({className:Z(!n&&r,d),style:D(D({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(mr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var ga=c.forwardRef(rC);ga.displayName="Item";function nC(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aC(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],nC(function(){Mn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function na(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var Io=P.createContext(null),oC=["component"],iC=["className"],sC=["className"],lC=function(t,r){var n=c.useContext(Io);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,oC);return c.createElement(o,xe({},i,{ref:r}))}var s=n.className,l=Je(n,iC),u=t.className,d=Je(t,sC);return c.createElement(Io.Provider,{value:null},c.createElement(ga,xe({ref:r,className:Z(s,u)},l,d)))},_f=c.forwardRef(lC);_f.displayName="RawItem";var cC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Tf="responsive",Nf="invalidate";function uC(e){return"+ ".concat(e.length," ...")}function dC(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=Je(e,cC),R=f==="full",w=aC(),$=na(w,null),T=U($,2),M=T[0],F=T[1],j=M||0,_=na(w,new Map),V=U(_,2),N=V[0],O=V[1],A=na(w,0),z=U(A,2),k=z[0],H=z[1],K=na(w,0),W=U(K,2),q=W[0],Y=W[1],J=na(w,0),ee=U(J,2),te=ee[0],ae=ee[1],ve=P.useState(null),fe=U(ve,2),ge=fe[0],Oe=fe[1],B=P.useState(null),ue=U(B,2),le=ue[0],Ee=ue[1],he=c.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,M]),ne=P.useState(!1),me=U(ne,2),$e=me[0],Ae=me[1],oe="".concat(n,"-item"),re=Math.max(k,q),pe=h===Tf,be=o.length&&pe,nt=h===Nf,Xe=be||typeof h=="number"&&o.length>h,je=P.useMemo(function(){var Pe=o;return be?M===null&&R?Pe=o:Pe=o.slice(0,Math.min(o.length,j/d)):typeof h=="number"&&(Pe=o.slice(0,h)),Pe},[o,d,M,h,be]),Ke=P.useMemo(function(){return be?o.slice(he+1):o.slice(je.length)},[o,je,be,he]),Ye=P.useCallback(function(Pe,ye){var Ue;return typeof l=="function"?l(Pe):(Ue=l&&(Pe==null?void 0:Pe[l]))!==null&&Ue!==void 0?Ue:ye},[l]),et=P.useCallback(i||function(Pe){return Pe},[i]);function Le(Pe,ye,Ue){le===Pe&&(ye===void 0||ye===ge)||(Ee(Pe),Ue||(Ae(Pe<o.length-1),S==null||S(Pe)),ye!==void 0&&Oe(ye))}function Ne(Pe,ye){F(ye.clientWidth)}function st(Pe,ye){O(function(Ue){var bt=new Map(Ue);return ye===null?bt.delete(Pe):bt.set(Pe,ye),bt})}function Ze(Pe,ye){Y(ye),H(q)}function De(Pe,ye){ae(ye)}function de(Pe){return N.get(Ye(je[Pe],Pe))}St(function(){if(j&&typeof re=="number"&&je){var Pe=te,ye=je.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var bt=0;bt<ye;bt+=1){var He=de(bt);if(R&&(He=He||0),He===void 0){Le(bt-1,void 0,!0);break}if(Pe+=He,Ue===0&&Pe<=j||bt===Ue-1&&Pe+de(Ue)<=j){Le(Ue,null);break}else if(Pe+re>j){Le(bt-1,Pe-He-te+q);break}}C&&de(0)+te>j&&Oe(null)}},[j,N,q,te,Ye,je]);var we=$e&&!!Ke.length,qe={};ge!==null&&be&&(qe={position:"absolute",left:ge,top:0});var at={prefixCls:oe,responsive:be,component:x,invalidate:nt},Ct=s?function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(Io.Provider,{key:Ue,value:D(D({},at),{},{order:ye,item:Pe,itemKey:Ue,registerSize:st,display:ye<=he})},s(Pe,ye))}:function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(ga,xe({},at,{order:ye,key:Ue,item:Pe,renderItem:et,itemKey:Ue,registerSize:st,display:ye<=he}))},dt,Be={order:we?he:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ze,display:we};if(g)g&&(dt=c.createElement(Io.Provider,{value:D(D({},at),Be)},g(Ke)));else{var ke=p||uC;dt=c.createElement(ga,xe({},at,Be),typeof ke=="function"?ke(Ke):ke)}var ze=c.createElement(y,xe({className:Z(!nt&&n,b),style:v,ref:t},E),je.map(Ct),Xe?dt:null,C&&c.createElement(ga,xe({},at,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(oe,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(mr,{onResize:Ne,disabled:!be},ze)),ze}var Fr=c.forwardRef(dC);Fr.displayName="Overflow";Fr.Item=_f;Fr.RESPONSIVE=Tf;Fr.INVALIDATE=Nf;function fC(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function vC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(un,xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var If=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(If.displayName="PopupContent");var Mf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,M=e.offsetX,F=e.offsetY,j=e.offsetR,_=e.offsetB,V=e.onAlign,N=e.onPrepare,O=e.stretch,A=e.targetWidth,z=e.targetHeight,k=typeof r=="function"?r():r,H=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],J=q[1];if(St(function(){!Y&&K&&i&&J(!0)},[Y,K,i]),!Y)return null;var ee="auto",te={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(T||!l){var ae,ve=p.points,fe=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ge=fe&&ve[0][1]==="r",Oe=fe&&ve[0][0]==="b";ge?(te.right=j,te.left=ee):(te.left=M,te.right=ee),Oe?(te.bottom=_,te.top=ee):(te.top=F,te.bottom=ee)}var B={};return O&&(O.includes("height")&&z?B.height=z:O.includes("minHeight")&&z&&(B.minHeight=z),O.includes("width")&&A?B.width=A:O.includes("minWidth")&&A&&(B.minWidth=A)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||H,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(vC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(mr,{onResize:V,disabled:!l},function(ue){return c.createElement(un,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ee){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,Ee),s(Ee)}}),function(le,Ee){var he=le.className,ne=le.style,me=Z(a,he,n);return c.createElement("div",{ref:yr(ue,t,Ee),className:me,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(fC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(If,{cache:!l&&!d},k))})}))});process.env.NODE_ENV!=="production"&&(Mf.displayName="Popup");var Af=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=cn(r),o=c.useCallback(function(s){Ys(t,n?n(s):s)},[n]),i=Na(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Af.displayName="TriggerWrapper");var Yc=c.createContext(null);function Zc(e){return e?Array.isArray(e)?e:[e]:[]}function gC(e,t,r,n){return c.useMemo(function(){var a=Zc(r??t),o=Zc(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 mC(){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 pC(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(mC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Qc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function La(e){return e.ownerDocument.defaultView}function Ls(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=La(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function aa(e){return Ra(parseFloat(e),0)}function Jc(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=La(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=aa(s),C=aa(l),m=aa(u),y=aa(d),x=Ra(Math.round(f.width/h*1e3)/1e3),S=Ra(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,T=m*x,M=y*x,F=0,j=0;if(o==="clip"){var _=aa(i);F=_*x,j=_*S}var V=f.x+T-F,N=f.y+w-j,O=V+f.width+2*F-T-M-E,A=N+f.height+2*j-w-$-R;r.left=Math.max(r.left,V),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,A)}}),r}function eu(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 tu(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[eu(e.width,a),eu(e.height,o)]}function ru(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ur(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function hC(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?Ls(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,dr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pn=k.x+qt,Qn=k.y+dr,Jn=pn+ae,Ha=Qn+te,ri=Math.max(pn,Gr.left),ni=Math.max(Qn,Gr.top),ai=Math.min(Jn,Gr.right),oi=Math.min(Ha,Gr.bottom);return Math.max(0,(ai-ri)*(oi-ni))},en=function(){I=k.y+ke,G=I+te,X=k.x+Be,se=X+ae};var m,y,x=t,S=x.ownerDocument,E=La(x),R=E.getComputedStyle(x),w=R.width,$=R.height,T=R.position,M=x.style.left,F=x.style.top,j=x.style.right,_=x.style.bottom,V=x.style.overflow,N=D(D({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=T,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var A;if(Array.isArray(r))A={x:r[0],y:r[1],width:0,height:0};else{var z=r.getBoundingClientRect();A={x:z.x,y:z.y,width:z.width,height:z.height}}var k=x.getBoundingClientRect(),H=S.documentElement,K=H.clientWidth,W=H.clientHeight,q=H.scrollWidth,Y=H.scrollHeight,J=H.scrollTop,ee=H.scrollLeft,te=k.height,ae=k.width,ve=A.height,fe=A.width,ge={left:0,top:0,right:K,bottom:W},Oe={left:-ee,top:-J,right:q-ee,bottom:Y-J},B=N.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var Ee=B===le,he=Jc(Oe,v),ne=Jc(ge,v),me=B===ue?ne:he,$e=Ee?ne:me;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ae=x.getBoundingClientRect();x.style.left=M,x.style.top=F,x.style.right=j,x.style.bottom=_,x.style.overflow=V,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var oe=Ra(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Ra(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||ma(r)&&!fl(r))return;var pe=N.offset,be=N.targetOffset,nt=tu(k,pe),Xe=U(nt,2),je=Xe[0],Ke=Xe[1],Ye=tu(A,be),et=U(Ye,2),Le=et[0],Ne=et[1];A.x-=Le,A.y-=Ne;var st=N.points||[],Ze=U(st,2),De=Ze[0],de=Ze[1],we=ru(de),qe=ru(De),at=Sn(A,we),Ct=Sn(k,qe),dt=D({},N),Be=at.x-Ct.x+je,ke=at.y-Ct.y+Ke,ze=Kt(Be,ke),Pe=Kt(Be,ke,ne),ye=Sn(A,["t","l"]),Ue=Sn(k,["t","l"]),bt=Sn(A,["b","r"]),He=Sn(k,["b","r"]),We=N.overflow||{},lt=We.adjustX,yt=We.adjustY,Pt=We.shiftX,Vt=We.shiftY,Wt=function(dr){return typeof dr=="boolean"?dr:dr>=0},I,G,X,se;en();var _e=Wt(yt),Re=qe[0]===we[0];if(_e&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=ke;Re?Te-=te-ve:Te=ye.y-He.y-Ke;var Me=Kt(Be,Te),mt=Kt(Be,Te,ne);Me>ze||Me===ze&&(!Ee||mt>=Pe)?(b.current.bt=!0,ke=Te,Ke=-Ke,dt.points=[Ur(qe,0),Ur(we,0)]):b.current.bt=!1}if(_e&&qe[0]==="b"&&(I<$e.top||b.current.tb)){var tt=ke;Re?tt+=te-ve:tt=bt.y-Ue.y-Ke;var Ve=Kt(Be,tt),wt=Kt(Be,tt,ne);Ve>ze||Ve===ze&&(!Ee||wt>=Pe)?(b.current.tb=!0,ke=tt,Ke=-Ke,dt.points=[Ur(qe,0),Ur(we,0)]):b.current.tb=!1}var Gt=Wt(lt),kt=qe[1]===we[1];if(Gt&&qe[1]==="l"&&(se>$e.right||b.current.rl)){var pt=Be;kt?pt-=ae-fe:pt=ye.x-He.x-je;var Sr=Kt(pt,ke),Br=Kt(pt,ke,ne);Sr>ze||Sr===ze&&(!Ee||Br>=Pe)?(b.current.rl=!0,Be=pt,je=-je,dt.points=[Ur(qe,1),Ur(we,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=Be;kt?Ut+=ae-fe:Ut=bt.x-Ue.x-je;var Hr=Kt(Ut,ke),Kn=Kt(Ut,ke,ne);Hr>ze||Hr===ze&&(!Ee||Kn>=Pe)?(b.current.lr=!0,Be=Ut,je=-je,dt.points=[Ur(qe,1),Ur(we,1)]):b.current.lr=!1}en();var nr=Pt===!0?0:Pt;typeof nr=="number"&&(X<ne.left&&(Be-=X-ne.left-je,A.x+fe<ne.left+nr&&(Be+=A.x-ne.left+fe-nr)),se>ne.right&&(Be-=se-ne.right-je,A.x>ne.right-nr&&(Be+=A.x-ne.right+nr)));var cr=Vt===!0?0:Vt;typeof cr=="number"&&(I<ne.top&&(ke-=I-ne.top-Ke,A.y+ve<ne.top+cr&&(ke+=A.y-ne.top+ve-cr)),G>ne.bottom&&(ke-=G-ne.bottom-Ke,A.y>ne.bottom-cr&&(ke+=A.y-ne.bottom+cr)));var Wr=k.x+Be,Pr=Wr+ae,xr=k.y+ke,_r=xr+te,Jr=A.x,Tr=Jr+fe,ur=A.y,qn=ur+ve,Xn=Math.max(Wr,Jr),Yn=Math.min(Pr,Tr),mn=(Xn+Yn)/2,ht=mn-Wr,ot=Math.max(xr,ur),vt=Math.min(_r,qn),Mt=(ot+vt)/2,jt=Mt-xr;i==null||i(t,dt);var Er=Ae.right-k.x-(Be+k.width),wr=Ae.bottom-k.y-(ke+k.height);oe===1&&(Be=Math.round(Be),Er=Math.round(Er)),re===1&&(ke=Math.round(ke),wr=Math.round(wr));var Zn={ready:!0,offsetX:Be/oe,offsetY:ke/re,offsetR:Er/oe,offsetB:wr/re,arrowX:ht/oe,arrowY:jt/re,scaleX:oe,scaleY:re,align:dt};d(Zn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function bC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Ls(o),l=Ls(i),u=La(i),d=new Set([u].concat(Ce(s),Ce(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function yC(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=La(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=Po(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);An(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 CC=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function SC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,M=r.popup,F=r.popupClassName,j=r.popupStyle,_=r.popupPlacement,V=r.builtinPlacements,N=V===void 0?{}:V,O=r.popupAlign,A=r.zIndex,z=r.stretch,k=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,J=r.popupMotion,ee=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,ve=r.maskTransitionName,fe=r.maskAnimation,ge=r.className,Oe=r.getTriggerDOMNode,B=Je(r,CC),ue=$||T||!1,le=c.useState(!1),Ee=U(le,2),he=Ee[0],ne=Ee[1];St(function(){ne(Pf())},[]);var me=c.useRef({}),$e=c.useContext(Yc),Ae=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){me.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),oe=fb(),re=c.useState(null),pe=U(re,2),be=pe[0],nt=pe[1],Xe=c.useRef(null),je=Ht(function(Se){Xe.current=Se,ma(Se)&&be!==Se&&nt(Se),$e==null||$e.registerSubPopup(oe,Se)}),Ke=c.useState(null),Ye=U(Ke,2),et=Ye[0],Le=Ye[1],Ne=c.useRef(null),st=Ht(function(Se){ma(Se)&&et!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},de={},we=Ht(function(Se){var Fe,xt,_t=et;return(_t==null?void 0:_t.contains(Se))||((Fe=Po(_t))===null||Fe===void 0?void 0:Fe.host)===Se||Se===_t||(be==null?void 0:be.contains(Se))||((xt=Po(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(me.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Qc(o,J,ae,te),at=Qc(o,ee,fe,ve),Ct=c.useState(v||!1),dt=U(Ct,2),Be=dt[0],ke=dt[1],ze=f??Be,Pe=Ht(function(Se){f===void 0&&ke(Se)});St(function(){ke(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var bt=Ht(function(Se){var Fe;Pe(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},lt=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(Fe):He.current=setTimeout(function(){bt(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),Pt=U(yt,2),Vt=Pt[0],Wt=Pt[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var I=c.useState(null),G=U(I,2),X=G[0],se=G[1],_e=c.useState([0,0]),Re=U(_e,2),Te=Re[0],Me=Re[1],mt=function(Fe){Me([Fe.clientX,Fe.clientY])},tt=hC(ze,be,K?Te:et,_,N,O,q),Ve=U(tt,11),wt=Ve[0],Gt=Ve[1],kt=Ve[2],pt=Ve[3],Sr=Ve[4],Br=Ve[5],Ut=Ve[6],Hr=Ve[7],Kn=Ve[8],nr=Ve[9],cr=Ve[10],Wr=gC(he,l,u,d),Pr=U(Wr,2),xr=Pr[0],_r=Pr[1],Jr=xr.has("click"),Tr=_r.has("click")||_r.has("contextMenu"),ur=Ht(function(){Vt||cr()}),qn=function(){ye.current&&K&&Tr&<(!1)};bC(ze,et,be,ur,qn),St(function(){ur()},[Te,_]),St(function(){ze&&!(N!=null&&N[_])&&ur()},[JSON.stringify(O)]);var Xn=c.useMemo(function(){var Se=pC(N,o,nr,K);return Z(Se,k==null?void 0:k(nr))},[nr,k,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:ur}});var Yn=c.useState(0),mn=U(Yn,2),ht=mn[0],ot=mn[1],vt=c.useState(0),Mt=U(vt,2),jt=Mt[0],Er=Mt[1],wr=function(){if(z&&et){var Fe=et.getBoundingClientRect();ot(Fe.width),Er(Fe.height)}},Zn=function(){wr(),ur()},Kt=function(Fe){Wt(!1),cr(),h==null||h(Fe)},en=function(){return new Promise(function(Fe){wr(),se(function(){return Fe})})};St(function(){X&&(cr(),X(),se(null))},[X]);function qt(Se,Fe,xt,_t){de[Se]=function(Et){var Wa;_t==null||_t(Et),lt(Fe,xt);for(var ii=arguments.length,Il=new Array(ii>1?ii-1:0),Ga=1;Ga<ii;Ga++)Il[Ga-1]=arguments[Ga];(Wa=De[Se])===null||Wa===void 0||Wa.call.apply(Wa,[De,Et].concat(Il))}}(Jr||Tr)&&(de.onClick=function(Se){var Fe;ye.current&&Tr?lt(!1):!ye.current&&Jr&&(mt(Se),lt(!0));for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),yC(ze,Tr,et,be,x,E,we,lt);var dr=xr.has("hover"),Gr=_r.has("hover"),pn,Qn;dr&&(qt("onMouseEnter",!0,p,function(Se){mt(Se)}),qt("onPointerEnter",!0,p,function(Se){mt(Se)}),pn=function(Fe){(ze||Vt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&<(!0,p)},K&&(de.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Gr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Qn=function(){lt(!1,C)}),xr.has("focus")&&qt("onFocus",!0,m),_r.has("focus")&&qt("onBlur",!1,y),xr.has("contextMenu")&&(de.onContextMenu=function(Se){var Fe;ye.current&&_r.has("contextMenu")?lt(!1):(mt(Se),lt(!0)),Se.preventDefault();for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),ge&&(de.className=Z(De.className,ge));var Jn=D(D({},De),de),Ha={},ri=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ri.forEach(function(Se){B[Se]&&(Ha[Se]=function(){for(var Fe,xt=arguments.length,_t=new Array(xt),Et=0;Et<xt;Et++)_t[Et]=arguments[Et];(Fe=Jn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Jn].concat(_t)),B[Se].apply(B,_t)})});var ni=c.cloneElement(Ze,D(D({},Jn),Ha)),ai={x:Br,y:Ut},oi=Y?D({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(mr,{disabled:!ze,ref:st,onResize:Zn},c.createElement(Af,{getTriggerDOMNode:Oe},ni)),c.createElement(Yc.Provider,{value:Ae},c.createElement(Mf,{portal:e,ref:je,prefixCls:o,popup:M,className:Z(F,Xn),style:j,target:et,onMouseEnter:pn,onMouseLeave:Qn,onPointerEnter:pn,zIndex:A,open:ze,keepDom:Vt,fresh:H,onClick:W,mask:x,motion:qe,maskMotion:at,onVisibleChanged:Kt,onPrepare:en,forceRender:w,autoDestroy:ue,getPopupContainer:R,align:nr,arrow:oi,arrowPos:ai,ready:wt,offsetX:Gt,offsetY:kt,offsetR:pt,offsetB:Sr,onAlign:ur,stretch:z,targetWidth:ht/Hr,targetHeight:jt/Kn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const yl=SC(hl);function Ds(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const jf=(e,t)=>t||e,Ff=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(rt),s=P.useContext(ly),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=Cp.includes(u);return[u,d]};var xC={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"},EC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xC}))},Lf=c.forwardRef(EC);process.env.NODE_ENV!=="production"&&(Lf.displayName="CheckOutlined");var wC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},$C=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:wC}))},Df=c.forwardRef($C);process.env.NODE_ENV!=="production"&&(Df.displayName="DownOutlined");const Pa=["xxl","xl","lg","md","sm","xs"],OC=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)`}),RC=e=>{const t=e,r=[].concat(Pa).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function PC(){const[,e]=Vr(),t=OC(RC(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 zf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var xn={shiftX:64,adjustY:1},En={adjustX:1,shiftY:!0},or=[0,0],_C={left:{points:["cr","cl"],overflow:En,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:En,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:xn,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:xn,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:xn,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:xn,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:En,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:En,offset:[-4,0],targetOffset:or}},TC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],NC=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,j=t.id,_=t.showArrow,V=_===void 0?!0:_,N=Je(t,TC),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var A=D({},N);"visible"in t&&(A.popupVisible=t.visible);var z=function(){return c.createElement(zf,{key:"content",prefixCls:v,id:j,overlayInnerStyle:M},F)};return c.createElement(yl,xe({popupClassName:n,prefixCls:v,popup:z,action:o,builtinPlacements:_C,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:V},A),b)};const IC=P.forwardRef(NC);function MC(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,C=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,x=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const AC=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vf=8;function kf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vf:n}}function ao(e,t){return e?t:{}}function jC(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"},AC(e,t,a)),{"&:before":{background:t}})]},ao(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ao(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ao(!!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}})),ao(!!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 FC(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 nu={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"]}},LC={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"]}},DC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(nu).forEach(u=>{const d=n&&LC[u]||nu[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,DC.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=kf({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=FC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const VC=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({},Lr(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Vf)}},[`${t}-content`]:{position:"relative"}}),Xp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},jC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},kC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},kf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),MC(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Bf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=At(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[VC(s),eC(n,"zoom-big-fast")]},kC,{resetStyle:!1,injectStyle:t})(e)},BC=Ro.map(e=>`${e}-inverse`);function HC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(BC),Ce(Ro)).includes(e):Ro.includes(e)}function Hf(e,t){const r=HC(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const WC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(rt),l=s("tooltip",t),[u,d,f]=Bf(l),v=Hf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(zf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var GC=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 UC=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Vr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(rt),$=Nt("Tooltip"),T=c.useRef(null),M=()=>{var oe;(oe=T.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},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,pe]=oe;$.deprecated(!(re in e),re,pe)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[F,j]=Zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),_=!p&&!g&&p!==0,V=oe=>{var re,pe;j(_?!1:oe),_||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,oe))},N=c.useMemo(()=>{var oe,re;let pe=m;return typeof h=="object"&&(pe=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),C||zC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),A=c.createElement(Fs,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:k="top",mouseEnterDelay:H=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=GC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=R("tooltip",a),ee=R(),te=e["data-popover-inject"];let ae=F;!("open"in e)&&!("visible"in e)&&_&&(ae=!1);const ve=c.isValidElement(d)&&!nf(d)?d:c.createElement("span",null,d),fe=ve.props,ge=!fe.className||typeof fe.className=="string"?Z(fe.className,o||`${J}-open`):fe.className,[Oe,B,ue]=Bf(J,!te),le=Hf(J,l),Ee=le.arrowStyle,he=Object.assign(Object.assign({},u),le.overlayStyle),ne=Z(s,{[`${J}-rtl`]:w==="rtl"},le.className,q,B,ue),[me,$e]=r0("Tooltip",Y.zIndex),Ae=c.createElement(IC,Object.assign({},Y,{zIndex:me,showArrow:x,placement:k,mouseEnterDelay:H,mouseLeaveDelay:K,prefixCls:J,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ee),W),getTooltipContainer:z||i||E,ref:T,builtinPlacements:N,overlay:A,visible:ae,onVisibleChange:V,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:of(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Ho(ve,{className:ge}):ve);return Oe(c.createElement(dl.Provider,{value:$e},Ae))}),Da=UC;process.env.NODE_ENV!=="production"&&(Da.displayName="Tooltip");Da._InternalPanelDoNotUseOrYouWillBeFired=WC;var KC=ce.ESC,qC=ce.TAB;function XC(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 KC:s();break;case qC:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var YC=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=yr(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:cn(o)?i:void 0}))}),wn={adjustX:1,adjustY:1},$n=[0,0],ZC={topLeft:{points:["bl","tl"],overflow:wn,offset:[0,-4],targetOffset:$n},top:{points:["bc","tc"],overflow:wn,offset:[0,-4],targetOffset:$n},topRight:{points:["br","tr"],overflow:wn,offset:[0,-4],targetOffset:$n},bottomLeft:{points:["tl","bl"],overflow:wn,offset:[0,4],targetOffset:$n},bottom:{points:["tc","bc"],overflow:wn,offset:[0,4],targetOffset:$n},bottomRight:{points:["tr","br"],overflow:wn,offset:[0,4],targetOffset:$n}},QC=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function JC(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?ZC:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,QC),M=P.useState(),F=U(M,2),j=F[0],_=F[1],V="visible"in e?y:j,N=P.useRef(null),O=P.useRef(null),A=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var z=function(te){_(te),$==null||$(te)};XC({visible:V,triggerRef:A,onVisibleChange:z,autoFocus:E,overlayRef:O});var k=function(te){var ae=e.onOverlayClick;_(!1),ae&&ae(te)},H=function(){return P.createElement(YC,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?H:H()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,V&&q()),ref:cn(w)?yr(A,w.ref):void 0}),J=g;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),P.createElement(yl,xe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:V,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:z,onPopupClick:k,getPopupContainer:h}),Y)}const eS=P.forwardRef(JC);var Wf=c.createContext(null);function Gf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Uf(e){var t=c.useContext(Wf);return Gf(t,e)}var tS=["children","locked"],br=c.createContext(null);function rS(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=Je(e,tS),a=c.useContext(br),o=Fo(function(){return rS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ca(i[1],s[1],!0))});return c.createElement(br.Provider,{value:o},t)}var nS=[],Kf=c.createContext(null);function Xo(){return c.useContext(Kf)}var qf=c.createContext(nS);function za(e){var t=c.useContext(qf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Xf=c.createContext(null),Cl=c.createContext({});function au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fl(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 aS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return au(n,t)});return au(e,t)&&r.unshift(e),r}var zs=ce.LEFT,Vs=ce.RIGHT,ks=ce.UP,bo=ce.DOWN,yo=ce.ENTER,Yf=ce.ESC,oa=ce.HOME,ia=ce.END,ou=[ks,bo,zs,Vs];function oS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===yo)return{inlineTrigger:!0};var v=(a={},L(a,ks,l),L(a,bo,u),a),b=(o={},L(o,zs,r?u:l),L(o,Vs,r?l:u),L(o,bo,d),L(o,yo,d),o),h=(i={},L(i,ks,l),L(i,bo,u),L(i,yo,d),L(i,Yf,f),L(i,zs,r?d:f),L(i,Vs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function iS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function Sl(e,t){var r=aS(e,!0);return r.filter(function(n){return t.has(n)})}function iu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Sl(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 Bs=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(Gf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function lS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(ou,[yo,Yf,oa,ia]).includes(h)){var p=o(),g=Bs(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=sS(S,m),R=x.get(E),w=oS(e,i(R,!0).length===1,r,h);if(!w&&h!==oa&&h!==ia)return;(ou.includes(h)||[oa,ia].includes(h))&&b.preventDefault();var $=function(O){if(O){var A=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(A=z);var k=x.get(O);s(k),v(),d.current=Tt(function(){f.current===k&&A.focus()})}};if([oa,ia].includes(h)||w.sibling||!E){var T;!E||e==="inline"?T=a.current:T=iS(E);var M,F=Sl(T,m);h===oa?M=F[0]:h===ia?M=F[F.length-1]:M=iu(T,m,E,w.offset),$(M)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Bs(p,n);var N=E.getAttribute("aria-controls"),O=document.getElementById(N),A=iu(O,g.elements);$(A)},5);else if(w.offset<0){var j=i(R,!0),_=j[j.length-2],V=y.get(_);l(_,!1),$(V)}}u==null||u(b)}}function cS(e){Promise.resolve().then(e)}var xl="__RC_UTIL_PATH_SPLIT__",su=function(t){return t.join(xl)},uS=function(t){return t.split(xl)},Hs="rc-menu-more";function dS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,x){process.env.NODE_ENV!=="production"&&it(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=su(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;cS(function(){E===u.current&&f()})},[]),b=P.useCallback(function(y,x){var S=su(x);a.current.delete(S),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,x){var S=n.current.get(y)||"",E=uS(S);return x&&s.includes(E[0])&&E.unshift(Hs),E},[s]),g=P.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(Hs),x},m=P.useCallback(function(y){var x="".concat(n.current.get(y)).concat(xl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function la(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var fS=Math.random().toFixed(5).toString().slice(2),lu=0;function vS(e){var t=Zt(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){lu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(fS,"-").concat(lu);a("rc-menu-uuid-".concat(o))},[]),n}function Zf(e,t,r,n){var a=c.useContext(br),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Qf(e){var t=c.useContext(br),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Jf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,D({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var gS=["item"];function Mo(e){var t=e.item,r=Je(e,gS);return Object.defineProperty(r,"item",{get:function(){return it(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var mS=["title","attribute","elementRef"],pS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],hS=["active"],bS=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,mS),u=Cr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return it(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Fr.Item,xe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),yS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=Je(e,pS),C=Uf(o),m=c.useContext(br),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,T=c.useContext(Cl),M=T._internalRenderMenuItem,F="".concat(y,"-item"),j=c.useRef(),_=c.useRef(),V=S||s,N=Na(t,_),O=za(o);process.env.NODE_ENV!=="production"&&i&&it(!1,"MenuItem should not leave undefined `key`.");var A=function(fe){return{key:o,keyPath:Ce(O).reverse(),item:j.current,domEvent:fe}},z=l||R,k=Zf(o,V,f,v),H=k.active,K=Je(k,hS),W=w.includes(o),q=Qf(O.length),Y=function(fe){if(!V){var ge=A(fe);b==null||b(Mo(ge)),x(ge)}},J=function(fe){if(h==null||h(fe),fe.which===ce.ENTER){var ge=A(fe);b==null||b(Mo(ge)),x(ge)}},ee=function(fe){$(o),p==null||p(fe)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(bS,xe({ref:j,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:D(D({},q),n),className:Z(F,(r={},L(r,"".concat(F,"-active"),H),L(r,"".concat(F,"-selected"),W),L(r,"".concat(F,"-disabled"),V),r),a),onClick:Y,onKeyDown:J,onFocus:ee}),u,c.createElement(Jf,{props:D(D({},e),{},{isSelected:W}),icon:z}));return M&&(ae=M(ae,e,{selected:W})),ae});function CS(e,t){var r=e.eventKey,n=Xo(),a=za(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(yS,xe({},e,{ref:t}))}const Yo=c.forwardRef(CS);var SS=["className","children"],xS=function(t,r){var n=t.className,a=t.children,o=Je(t,SS),i=c.useContext(br),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",xe({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},El=c.forwardRef(xS);El.displayName="SubMenuList";function wl(e,t){return Rr(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Ce(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Bt={adjustX:1,adjustY:1},ES={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},wS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function ev(e,t,r){if(t)return t;if(r)return r[e]||r.other}var $S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function OS(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(br),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],T=D(b?D({},wS):D({},ES),g),M=$S[u],F=ev(u,x,S),j=c.useRef(F);u!=="inline"&&(j.current=F);var _=D(D({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=c.useRef();return c.useEffect(function(){return V.current=Tt(function(){$(r)}),function(){Tt.cancel(V.current)}},[r]),c.createElement(yl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:M,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},n)}function RS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(br),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=D({},ev(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(un,xe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement(El,{id:t,className:S,style:E},a)}))}var PS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_S=["active"],TS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Je(e,PS),R=Uf(i),w=c.useContext(br),$=w.prefixCls,T=w.mode,M=w.openKeys,F=w.disabled,j=w.overflowDisabled,_=w.activeKey,V=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,A=w.onItemClick,z=w.onOpenChange,k=w.onActive,H=c.useContext(Cl),K=H._internalRenderSubMenuItem,W=c.useContext(Xf),q=W.isSubPathKey,Y=za(),J="".concat($,"-submenu"),ee=F||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&it(!1,"SubMenu should not leave undefined `key`.");var ve=f??N,fe=v??O,ge=M.includes(i),Oe=!j&&ge,B=q(V,i),ue=Zf(i,ee,x,S),le=ue.active,Ee=Je(ue,_S),he=c.useState(!1),ne=U(he,2),me=ne[0],$e=ne[1],Ae=function(De){ee||$e(De)},oe=function(De){Ae(!0),C==null||C({key:i,domEvent:De})},re=function(De){Ae(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return le||(T!=="inline"?me||q([_],i):!1)},[T,le,_,me,i,q]),be=Qf(Y.length),nt=function(De){ee||(y==null||y({key:i,domEvent:De}),T==="inline"&&z(i,!ge))},Xe=la(function(Ze){g==null||g(Mo(Ze)),A(Ze)}),je=function(De){T!=="inline"&&z(i,De)},Ke=function(){k(i)},Ye=R&&"".concat(R,"-popup"),et=c.createElement("div",xe({role:"menuitem",style:be,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":j&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":ee,onClick:nt,onFocus:Ke},Ee),o,c.createElement(Jf,{icon:T!=="horizontal"?fe:void 0,props:D(D({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(J,"-arrow")}))),Le=c.useRef(T);if(T!=="inline"&&Y.length>1?Le.current="vertical":Le.current=T,!j){var Ne=Le.current;et=c.createElement(OS,{mode:Ne,prefixCls:J,visible:!u&&Oe&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(El,{id:Ye,ref:ae},d)),disabled:ee,onVisibleChange:je},et)}var st=c.createElement(Fr.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(J,"".concat(J,"-").concat(T),a,(r={},L(r,"".concat(J,"-open"),Oe),L(r,"".concat(J,"-active"),pe),L(r,"".concat(J,"-selected"),B),L(r,"".concat(J,"-disabled"),ee),r)),onMouseEnter:oe,onMouseLeave:re}),et,!j&&c.createElement(RS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(st=K(st,e,{selected:B,active:pe,open:Oe,disabled:ee})),c.createElement(_a,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:ve,expandIcon:fe},st)}),Zo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=za(r),o=wl(n,a),i=Xo();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(TS,xe({ref:t},e),o),c.createElement(qf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Zo.displayName="SubMenu");function tv(e){var t=e.className,r=e.style,n=c.useContext(br),a=n.prefixCls,o=Xo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var NS=["className","title","eventKey","children"],IS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,NS),i=c.useContext(br),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),$l=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=za(r),o=wl(n,a),i=Xo();return i?o:c.createElement(IS,xe({ref:t},Cr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&($l.displayName="MenuItemGroup");var MS=["label","children","key","type"];function Ws(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,MS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,xe({key:h},b,{title:u}),Ws(d,t)):c.createElement(a,xe({key:h},b,{title:u}),Ws(d,t)):v==="divider"?c.createElement(o,xe({key:h},b)):c.createElement(r,xe({key:h},b),u)}return null}).filter(function(i){return i})}function cu(e,t,r,n){var a=e,o=D({divider:tv,item:Yo,group:$l,submenu:Zo},n);return t&&(a=Ws(t,o)),wl(a,r)}var AS=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],tn=[],jS=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,M=a.openKeys,F=a.activeKey,j=a.defaultActiveFirst,_=a.selectable,V=_===void 0?!0:_,N=a.multiple,O=N===void 0?!1:N,A=a.defaultSelectedKeys,z=a.selectedKeys,k=a.onSelect,H=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,te=a.builtinPlacements,ae=a.itemIcon,ve=a.expandIcon,fe=a.overflowedIndicator,ge=fe===void 0?"...":fe,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,Ee=a.onKeyDown,he=a.openAnimation,ne=a.openTransitionName,me=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,Ae=a._internalComponents,oe=Je(a,AS),re=c.useMemo(function(){return[cu(b,v,tn,Ae),cu(b,v,tn,{})]},[b,v,Ae]),pe=U(re,2),be=pe[0],nt=pe[1],Xe=c.useState(!1),je=U(Xe,2),Ke=je[0],Ye=je[1],et=c.useRef(),Le=vS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&it(!he&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=Zt(T,{value:M,postState:function(ot){return ot||tn}}),Ze=U(st,2),De=Ze[0],de=Ze[1],we=function(ot){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mt(){de(ot),le==null||le(ot)}vt?Mn.flushSync(Mt):Mt()},qe=c.useState(De),at=U(qe,2),Ct=at[0],dt=at[1],Be=c.useRef(!1),ke=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(ke,2),Pe=ze[0],ye=ze[1],Ue=Pe==="inline",bt=c.useState(Pe),He=U(bt,2),We=He[0],lt=He[1],yt=c.useState(ye),Pt=U(yt,2),Vt=Pt[0],Wt=Pt[1];c.useEffect(function(){lt(Pe),Wt(ye),Be.current&&(Ue?de(Ct):we(tn))},[Pe,ye]);var I=c.useState(0),G=U(I,2),X=G[0],se=G[1],_e=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&dt(De)},[De]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var Re=dS(),Te=Re.registerPath,Me=Re.unregisterPath,mt=Re.refreshOverflowKeys,tt=Re.isSubPathKey,Ve=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,kt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),pt=c.useMemo(function(){return{isSubPathKey:tt}},[tt]);c.useEffect(function(){mt(_e?tn:be.slice(X+1).map(function(ht){return ht.key}))},[X,_e]);var Sr=Zt(F||j&&((r=be[0])===null||r===void 0?void 0:r.key),{value:F}),Br=U(Sr,2),Ut=Br[0],Hr=Br[1],Kn=la(function(ht){Hr(ht)}),nr=la(function(){Hr(void 0)});P.useImperativeHandle(t,function(){return{list:et.current,focus:function(ot){var vt,Mt=wt(),jt=Bs(Mt,Le),Er=jt.elements,wr=jt.key2element,Zn=jt.element2key,Kt=Sl(et.current,Er),en=Ut??(Kt[0]?Zn.get(Kt[0]):(vt=be.find(function(Gr){return!Gr.props.disabled}))===null||vt===void 0?void 0:vt.key),qt=wr.get(en);if(en&&qt){var dr;qt==null||(dr=qt.focus)===null||dr===void 0||dr.call(qt,ot)}}}});var cr=Zt(A||[],{value:z,postState:function(ot){return Array.isArray(ot)?ot:ot==null?tn:[ot]}}),Wr=U(cr,2),Pr=Wr[0],xr=Wr[1],_r=function(ot){if(V){var vt=ot.key,Mt=Pr.includes(vt),jt;O?Mt?jt=Pr.filter(function(wr){return wr!==vt}):jt=[].concat(Ce(Pr),[vt]):jt=[vt],xr(jt);var Er=D(D({},ot),{},{selectedKeys:jt});Mt?H==null||H(Er):k==null||k(Er)}!O&&De.length&&We!=="inline"&&we(tn)},Jr=la(function(ht){ue==null||ue(Mo(ht)),_r(ht)}),Tr=la(function(ht,ot){var vt=De.filter(function(jt){return jt!==ht});if(ot)vt.push(ht);else if(We!=="inline"){var Mt=Gt(ht);vt=vt.filter(function(jt){return!Mt.has(jt)})}Ca(De,vt,!0)||we(vt,!0)}),ur=function(ot,vt){var Mt=vt??!De.includes(ot);Tr(ot,Mt)},qn=lS(We,Ut,Ne,Le,et,wt,Ve,Hr,ur,Ee);c.useEffect(function(){Ye(!0)},[]);var Xn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:$e}},[me,$e]),Yn=We!=="horizontal"||x?be:be.map(function(ht,ot){return c.createElement(_a,{key:ht.key,overflowDisabled:ot>X},ht)}),mn=c.createElement(Fr,xe({id:p,ref:et,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Yo,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Vt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:Yn,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var vt=ot.length,Mt=vt?be.slice(-vt):null;return c.createElement(Zo,{eventKey:Hs,title:ge,disabled:_e,internalPopupClose:vt===0,popupClassName:Oe},Mt)},maxCount:We!=="horizontal"||x?Fr.INVALIDATE:Fr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){se(ot)},onKeyDown:qn},oe));return c.createElement(Cl.Provider,{value:Xn},c.createElement(Wf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Kn,onInactive:nr,selectedKeys:Pr,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:B,itemIcon:ae,expandIcon:ve,onItemClick:Jr,onOpenChange:Tr},c.createElement(Xf.Provider,{value:pt},mn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Kf.Provider,{value:kt},nt)))))}),Va=jS;Va.Item=Yo;Va.SubMenu=Zo;Va.ItemGroup=$l;Va.Divider=tv;var FS={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"},LS=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:FS}))},rv=c.forwardRef(LS);process.env.NODE_ENV!=="production"&&(rv.displayName="EllipsisOutlined");const nv=c.createContext(null),DS=nv.Provider,av=c.createContext(null),zS=av.Provider;var VS=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],kS=P.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,b=e.onChange,h=Je(e,VS),p=P.useRef(null),g=P.useRef(null),C=Zt(u,{value:i}),m=U(C,2),y=m[0],x=m[1];P.useImperativeHandle(t,function(){return{focus:function(w){var $;($=p.current)===null||$===void 0||$.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:g.current}});var S=Z(n,a,L(L({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),E=function(w){s||("checked"in e||x(w.target.checked),b==null||b({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:v,style:o,ref:g},c.createElement("input",xe({},h,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(n,"-inner")}))});const BS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},Lr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},HS=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:b,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:m}=e,y=`${t}-inner`,S=m(a).sub(m(4).mul(2)),E=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Lr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Q(d)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
249
249
|
&:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},sl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:m(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:m(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${m(S).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},WS=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:b,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:C,borderRadiusLG:m,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:S,colorBgContainerDisabled:E,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:w,colorPrimary:$,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:_,calc:V}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:Q(V(r).sub(V(a).mul(2)).equal()),background:f,border:`${Q(a)} ${o} ${i}`,borderBlockStartWidth:V(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:V(a).mul(-1).equal(),insetInlineStart:V(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Q(a)} ${o} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:b,fontSize:v,lineHeight:Q(V(b).sub(V(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},[`${n}-group-small &`]:{height:h,paddingInline:V(p).sub(a).equal(),paddingBlock:0,lineHeight:Q(V(h).sub(V(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},sl(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:F,borderColor:F,"&:hover":{color:x,background:j,borderColor:j},"&:active":{color:x,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:E,borderColor:i}},[`&-disabled${n}-button-wrapper-checked`]:{color:w,backgroundColor:R,borderColor:i,boxShadow:"none"}}}},GS=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:b,colorWhite:h}=e,p=4,g=o,C=t?g-p*2:g-(p+a)*2;return{radioSize:g,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:b,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:h,radioBgColor:t?s:f}},ov=lr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Q(r)} ${t}`,o=At(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[BS(o),HS(o),WS(o)]},GS,{unitless:{radioSize:!0,dotSize:!0}});var US=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 KS=(e,t)=>{var r,n;const a=c.useContext(nv),o=c.useContext(av),{getPrefixCls:i,direction:s,radio:l}=c.useContext(rt),u=c.useRef(null),d=yr(t,u),{isFormItemInput:f}=c.useContext(Bn);if(process.env.NODE_ENV!=="production"){const _=Nt("Radio");process.env.NODE_ENV!=="production"&&_(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=_=>{var V,N;(V=e.onChange)===null||V===void 0||V.call(e,_),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,_)},{prefixCls:b,className:h,rootClassName:p,children:g,style:C,title:m}=e,y=US(e,["prefixCls","className","rootClassName","children","style","title"]),x=i("radio",b),S=((a==null?void 0:a.optionType)||o)==="button",E=S?`${x}-button`:x,R=Ma(x),[w,$,T]=ov(x,R),M=Object.assign({},y),F=c.useContext(ln);a&&(M.name=a.name,M.onChange=v,M.checked=e.value===a.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:a.disabled),M.disabled=(n=M.disabled)!==null&&n!==void 0?n:F;const j=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:M.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},l==null?void 0:l.className,h,p,$,T,R);return w(c.createElement(gl,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:j,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m},c.createElement(kS,Object.assign({},M,{className:Z(M.className,{[vl]:!S}),type:"radio",prefixCls:E,ref:d})),g!==void 0?c.createElement("span",null,g):null)))},Ta=c.forwardRef(KS);process.env.NODE_ENV!=="production"&&(Ta.displayName="Radio");const qS=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(rt),[a,o]=Zt(e.defaultValue,{value:e.value}),i=_=>{const V=a,N=_.target.value;"value"in e||o(N);const{onChange:O}=e;O&&N!==V&&O(_)},{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:f="outline",disabled:v,children:b,size:h,style:p,id:g,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x}=e,S=r("radio",s),E=`${S}-group`,R=Ma(S),[w,$,T]=ov(S,R);let M=b;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(Ta,{key:_.toString(),prefixCls:S,disabled:v,value:_,checked:a===_},_):c.createElement(Ta,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||v,value:_.value,checked:a===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const F=vn(h),j=Z(E,`${E}-${f}`,{[`${E}-${F}`]:F,[`${E}-rtl`]:n==="rtl"},l,u,$,T,R);return w(c.createElement("div",Object.assign({},qh(e,{aria:!0,data:!0}),{className:j,style:p,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x,id:g,ref:t}),c.createElement(DS,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),XS=c.memo(qS);var YS=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 ZS=(e,t)=>{const{getPrefixCls:r}=c.useContext(rt),{prefixCls:n}=e,a=YS(e,["prefixCls"]),o=r("radio",n);return c.createElement(zS,{value:"button"},c.createElement(Ta,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},QS=c.forwardRef(ZS),ka=Ta;ka.Button=QS;ka.Group=XS;ka.__ANT_RADIO=!0;function JS(e){return At(e,{inputAffixPadding:e.paddingXXS})}const e1=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:C,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},t1=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ol=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({},t1(At(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iv=(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}}),uu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),r1=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ol(e))}),uu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),uu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),du=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),n1=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},du(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),du(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ol(e))}})}),a1=(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)}},sv=(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}}),fu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),o1=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ol(e))}),fu(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),fu(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),i1=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},vu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vu(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),s1=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),lv=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${Q(t)} ${Q(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},cv=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),uv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},s1(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({},lv(e)),"&-sm":Object.assign({},cv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),l1=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({},lv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cv(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ia()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
250
250
|
& > ${t}-affix-wrapper,
|
|
251
251
|
& > ${t}-number-affix-wrapper,
|
|
@@ -264,7 +264,7 @@ html body {
|
|
|
264
264
|
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},g1=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"}},[`
|
|
265
265
|
&-allow-clear > ${t},
|
|
266
266
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
267
|
-
`]:{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}}}}}},m1=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},dv=lr("Input",e=>{const t=At(e,JS(e));return[c1(t),g1(t),d1(t),f1(t),v1(t),m1(t),pf(t)]},e1,{resetFont:!1});var p1={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"},h1=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:p1}))},fv=c.forwardRef(h1);process.env.NODE_ENV!=="production"&&(fv.displayName="PlusOutlined");const Qo=P.createContext(null);var b1=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return P.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},gu={width:0,height:0,left:0,top:0};function y1(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)||gu,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)||gu}var f=a.get(l)||D({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function mu(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 C1=.1,pu=.01,Co=20,hu=Math.pow(.995,Co);function S1(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),g=p[0],C=p[1],m=P.useRef();function y($){var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F});var j=M-a.x,_=F-a.y;t(j,_);var V=Date.now();u(V),b(V-l),C({x:j,y:_})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,T=g.y/v,M=Math.abs($),F=Math.abs(T);if(Math.max(M,F)<C1)return;var j=$,_=T;m.current=window.setInterval(function(){if(Math.abs(j)<pu&&Math.abs(_)<pu){window.clearInterval(m.current);return}j*=hu,_*=hu,t(j*Co,_*Co)},Co)}}var E=P.useRef();function R($){var T=$.deltaX,M=$.deltaY,F=0,j=Math.abs(T),_=Math.abs(M);j===_?F=E.current==="x"?T:M:j>_?(F=T,E.current="x"):(F=M,E.current="y"),t(-F,-F)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(j){w.current.onTouchStart(j)}function T(j){w.current.onTouchMove(j)}function M(j){w.current.onTouchEnd(j)}function F(j){w.current.onWheel(j)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function vv(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,Yi(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 x1(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=vv(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 bu={width:0,height:0,left:0,top:0,right:0};function E1(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||bu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||bu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function yu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var w1="TABS_DQ";function gv(e){return String(e).replace(/"/g,w1)}function mv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var pv=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||"+")}),Gs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Gs.displayName="ExtraContent");var $1=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,C=e.popupClassName,m=P.useState(!1),y=U(m,2),x=y[0],S=y[1],E=P.useState(null),R=U(E,2),w=R[0],$=R[1],T=l.icon,M=T===void 0?"More":T,F="".concat(n,"-more-popup"),j="".concat(r,"-dropdown"),_=w!==null?"".concat(F,"-").concat(w):null,V=o==null?void 0:o.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(Va,{onClick:function(q){var Y=q.key,J=q.domEvent;p(Y,J),S(!1)},prefixCls:"".concat(j,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[w],"aria-label":V!==void 0?V:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,J=W.closeIcon,ee=W.key,te=W.label,ae=mv(q,J,f,Y);return c.createElement(Yo,{key:ee,id:"".concat(F,"-").concat(ee),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(ee),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),N(fe,ee)}},J||f.removeIcon||"×"))}));function A(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,J=q.length,ee=0;ee<J;ee+=1){Y=(Y+W+J)%J;var te=q[Y];if(!te.disabled){$(te.key);return}}}function z(W){var q=W.which;if(!x){[ce.DOWN,ce.SPACE,ce.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case ce.UP:A(-1),W.preventDefault();break;case ce.DOWN:A(1),W.preventDefault();break;case ce.ESC:S(!1);break;case ce.SPACE:case ce.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){x||$(null)},[x]);var k=L({},b?"marginRight":"marginLeft",v);a.length||(k.visibility="hidden",k.order=1);var H=Z(L({},"".concat(j,"-rtl"),b)),K=i?null:c.createElement(eS,xe({prefixCls:j,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:k,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:z},M));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(pv,{prefixCls:r,locale:o,editable:f}))});const O1=c.memo($1,function(e,t){return t.tabMoving});var R1=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=mv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":gv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),x($)},onKeyDown:function($){[ce.SPACE,ce.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},P1=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},On=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},oo=function(t,r){return t[r?0:1]},Cu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,C=c.useContext(Qo),m=C.prefixCls,y=C.tabs,x=P.useRef(null),S=P.useRef(null),E=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),M=f==="top"||f==="bottom",F=mu(0,function(G,X){M&&p&&p({direction:G>X?"left":"right"})}),j=U(F,2),_=j[0],V=j[1],N=mu(0,function(G,X){!M&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),A=O[0],z=O[1],k=P.useState([0,0]),H=U(k,2),K=H[0],W=H[1],q=P.useState([0,0]),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useState([0,0]),ae=U(te,2),ve=ae[0],fe=ae[1],ge=P.useState([0,0]),Oe=U(ge,2),B=Oe[0],ue=Oe[1],le=x1(new Map),Ee=U(le,2),he=Ee[0],ne=Ee[1],me=y1(y,he,J[0]),$e=oo(K,M),Ae=oo(J,M),oe=oo(ve,M),re=oo(B,M),pe=$e<Ae+oe,be=pe?$e-re:$e-oe,nt="".concat(m,"-nav-operations-hidden"),Xe=0,je=0;M&&s?(Xe=0,je=Math.max(0,Ae-be)):(Xe=Math.min(0,be-Ae),je=0);function Ke(G){return G<Xe?Xe:G>je?je:G}var Ye=P.useRef(null),et=P.useState(),Le=U(et,2),Ne=Le[0],st=Le[1];function Ze(){st(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}S1(R,function(G,X){function se(_e,Re){_e(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(M?se(V,G):se(z,X),De(),Ze(),!0):!1}),P.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){st(0)},100)),De},[Ne]);var de=E1(me,be,M?_:A,Ae,oe,re,D(D({},e),{},{tabs:y})),we=U(de,2),qe=we[0],at=we[1],Ct=Ht(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=me.get(G)||{width:0,height:0,left:0,right:0,top:0};if(M){var se=_;s?X.right<_?se=X.right:X.right+X.width>_+be&&(se=X.right+X.width-be):X.left<-_?se=-X.left:X.left+X.width>-_+be&&(se=-(X.left+X.width-be)),z(0),V(Ke(se))}else{var _e=A;X.top<-A?_e=-X.top:X.top+X.height>-A+be&&(_e=-(X.top+X.height-be)),V(0),z(Ke(_e))}}),dt={};f==="top"||f==="bottom"?dt[s?"marginRight":"marginLeft"]=v:dt.marginTop=v;var Be=y.map(function(G,X){var se=G.key;return c.createElement(R1,{id:a,prefixCls:m,key:se,tab:G,style:X===0?void 0:dt,closable:G.closable,editable:u,active:se===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(se,Re)},onFocus:function(){Ct(se),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),ke=function(){return ne(function(){var X,se=new Map,_e=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,gt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(gv(Me),'"]'));if(gt){var tt=P1(gt,_e),Ve=U(tt,4),wt=Ve[0],Gt=Ve[1],kt=Ve[2],pt=Ve[3];se.set(Me,{width:wt,height:Gt,left:kt,top:pt})}}),se})};P.useEffect(function(){ke()},[y.map(function(G){return G.key}).join("_")]);var ze=vv(function(){var G=On(x),X=On(S),se=On(E);W([G[0]-X[0]-se[0],G[1]-X[1]-se[1]]);var _e=On(T);fe(_e);var Re=On($);ue(Re);var Te=On(w);ee([Te[0]-_e[0],Te[1]-_e[1]]),ke()}),Pe=y.slice(0,qe),ye=y.slice(at+1),Ue=[].concat(Ce(Pe),Ce(ye)),bt=me.get(i),He=b1({activeTabOffset:bt,horizontal:M,indicator:g,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,je,yu(bt),yu(me),M]),P.useEffect(function(){ze()},[s]);var lt=!!Ue.length,yt="".concat(m,"-nav-wrap"),Pt,Vt,Wt,I;return M?s?(Vt=_>0,Pt=_!==je):(Pt=_<0,Vt=_!==Xe):(Wt=A<0,I=A!==Xe),c.createElement(mr,{onResize:ze},c.createElement("div",{ref:Na(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Gs,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(mr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),Pt),"".concat(yt,"-ping-right"),Vt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),I)),ref:R},c.createElement(mr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(A,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(pv,{ref:T,prefixCls:m,locale:d,editable:u,style:D(D({},Be.length===0?void 0:dt),{},{visibility:lt?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(O1,xe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!lt&&nt,tabMoving:!!Ne})),c.createElement(Gs,{ref:E,position:"right",extra:l,prefixCls:m})))}),Rl=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(Rl.displayName="TabPane");var _1=["renderTabBar"],T1=["label","key"],hv=function(t){var r=t.renderTabBar,n=Je(t,_1),a=c.useContext(Qo),o=a.tabs;if(r){var i=D(D({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,T1);return c.createElement(Rl,xe({tab:l,key:u,tabKey:u},d))})});return r(i,Cu)}return c.createElement(Cu,n)};process.env.NODE_ENV!=="production"&&(hv.displayName="TabNavListWrapper");var N1=["key","forceRender","style","className","destroyInactiveTabPane"],I1=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Qo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,C=v.destroyInactiveTabPane,m=Je(v,N1),y=b===n;return c.createElement(un,xe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(Rl,xe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:D(D({},p),E),className:Z(g,R),ref:S}))})})))};function M1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&it(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var A1=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Su=0,bv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,M=Je(e,A1),F=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),j=s==="rtl",_=M1(f),V=P.useState(!1),N=U(V,2),O=N[0],A=N[1];P.useEffect(function(){A(Pf())},[]);var z=Zt(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),k=U(z,2),H=k[0],K=k[1],W=P.useState(function(){return F.findIndex(function(B){return B.key===H})}),q=U(W,2),Y=q[0],J=q[1];P.useEffect(function(){var B=F.findIndex(function(le){return le.key===H});if(B===-1){var ue;B=Math.max(0,Math.min(Y,F.length-1)),K((ue=F[B])===null||ue===void 0?void 0:ue.key)}J(B)},[F.map(function(B){return B.key}).join("_"),H,Y]);var ee=Zt(null,{value:r}),te=U(ee,2),ae=te[0],ve=te[1];P.useEffect(function(){r||(ve("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":Su)),Su+=1)},[]);function fe(B,ue){E==null||E(B,ue);var le=B!==H;K(B),le&&(S==null||S(B))}var ge={id:ae,activeKey:H,animated:_,tabPosition:b,rtl:j,mobile:O},Oe=D(D({},ge),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:fe,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(Qo.Provider,{value:{tabs:F,prefixCls:a}},c.createElement("div",xe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),j),o)},M),c.createElement(hv,xe({},Oe,{renderTabBar:x})),c.createElement(I1,xe({destroyInactiveTabPane:y},ge,{animated:_}))))});process.env.NODE_ENV!=="production"&&(bv.displayName="Tabs");const j1={motionAppear:!1,motionEnter:!0,motionLeave:!0};function F1(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({},j1),{motionName:of(e,"switch")})),r}var L1=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 D1(e){return e.filter(t=>t)}function z1(e,t){if(process.env.NODE_ENV!=="production"&&Nt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Rr(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=L1(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return D1(r)}const V1=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}`}}}}},[Kc(e,"slide-up"),Kc(e,"slide-down")]]},k1=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${Q(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Q(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},B1=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Q(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},il),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},H1=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
267
|
+
`]:{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}}}}}},m1=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},dv=lr("Input",e=>{const t=At(e,JS(e));return[c1(t),g1(t),d1(t),f1(t),v1(t),m1(t),pf(t)]},e1,{resetFont:!1});var p1={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"},h1=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:p1}))},fv=c.forwardRef(h1);process.env.NODE_ENV!=="production"&&(fv.displayName="PlusOutlined");const Qo=P.createContext(null);var b1=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return P.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},gu={width:0,height:0,left:0,top:0};function y1(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)||gu,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)||gu}var f=a.get(l)||D({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function mu(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 C1=.1,pu=.01,Co=20,hu=Math.pow(.995,Co);function S1(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),g=p[0],C=p[1],m=P.useRef();function y($){var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F});var j=M-a.x,_=F-a.y;t(j,_);var V=Date.now();u(V),b(V-l),C({x:j,y:_})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,T=g.y/v,M=Math.abs($),F=Math.abs(T);if(Math.max(M,F)<C1)return;var j=$,_=T;m.current=window.setInterval(function(){if(Math.abs(j)<pu&&Math.abs(_)<pu){window.clearInterval(m.current);return}j*=hu,_*=hu,t(j*Co,_*Co)},Co)}}var E=P.useRef();function R($){var T=$.deltaX,M=$.deltaY,F=0,j=Math.abs(T),_=Math.abs(M);j===_?F=E.current==="x"?T:M:j>_?(F=T,E.current="x"):(F=M,E.current="y"),t(-F,-F)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(j){w.current.onTouchStart(j)}function T(j){w.current.onTouchMove(j)}function M(j){w.current.onTouchEnd(j)}function F(j){w.current.onWheel(j)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function vv(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,Yi(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 x1(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=vv(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 bu={width:0,height:0,left:0,top:0,right:0};function E1(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||bu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||bu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function yu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var w1="TABS_DQ";function gv(e){return String(e).replace(/"/g,w1)}function mv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var pv=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||"+")}),Gs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Gs.displayName="ExtraContent");var $1=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,C=e.popupClassName,m=P.useState(!1),y=U(m,2),x=y[0],S=y[1],E=P.useState(null),R=U(E,2),w=R[0],$=R[1],T=l.icon,M=T===void 0?"More":T,F="".concat(n,"-more-popup"),j="".concat(r,"-dropdown"),_=w!==null?"".concat(F,"-").concat(w):null,V=o==null?void 0:o.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(Va,{onClick:function(q){var Y=q.key,J=q.domEvent;p(Y,J),S(!1)},prefixCls:"".concat(j,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[w],"aria-label":V!==void 0?V:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,J=W.closeIcon,ee=W.key,te=W.label,ae=mv(q,J,f,Y);return c.createElement(Yo,{key:ee,id:"".concat(F,"-").concat(ee),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(ee),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),N(fe,ee)}},J||f.removeIcon||"×"))}));function A(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,J=q.length,ee=0;ee<J;ee+=1){Y=(Y+W+J)%J;var te=q[Y];if(!te.disabled){$(te.key);return}}}function z(W){var q=W.which;if(!x){[ce.DOWN,ce.SPACE,ce.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case ce.UP:A(-1),W.preventDefault();break;case ce.DOWN:A(1),W.preventDefault();break;case ce.ESC:S(!1);break;case ce.SPACE:case ce.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){x||$(null)},[x]);var k=L({},b?"marginRight":"marginLeft",v);a.length||(k.visibility="hidden",k.order=1);var H=Z(L({},"".concat(j,"-rtl"),b)),K=i?null:c.createElement(eS,xe({prefixCls:j,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:k,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:z},M));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(pv,{prefixCls:r,locale:o,editable:f}))});const O1=c.memo($1,function(e,t){return t.tabMoving});var R1=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=mv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":gv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),x($)},onKeyDown:function($){[ce.SPACE,ce.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},P1=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},On=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},oo=function(t,r){return t[r?0:1]},Cu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,C=c.useContext(Qo),m=C.prefixCls,y=C.tabs,x=P.useRef(null),S=P.useRef(null),E=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),M=f==="top"||f==="bottom",F=mu(0,function(G,X){M&&p&&p({direction:G>X?"left":"right"})}),j=U(F,2),_=j[0],V=j[1],N=mu(0,function(G,X){!M&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),A=O[0],z=O[1],k=P.useState([0,0]),H=U(k,2),K=H[0],W=H[1],q=P.useState([0,0]),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useState([0,0]),ae=U(te,2),ve=ae[0],fe=ae[1],ge=P.useState([0,0]),Oe=U(ge,2),B=Oe[0],ue=Oe[1],le=x1(new Map),Ee=U(le,2),he=Ee[0],ne=Ee[1],me=y1(y,he,J[0]),$e=oo(K,M),Ae=oo(J,M),oe=oo(ve,M),re=oo(B,M),pe=$e<Ae+oe,be=pe?$e-re:$e-oe,nt="".concat(m,"-nav-operations-hidden"),Xe=0,je=0;M&&s?(Xe=0,je=Math.max(0,Ae-be)):(Xe=Math.min(0,be-Ae),je=0);function Ke(G){return G<Xe?Xe:G>je?je:G}var Ye=P.useRef(null),et=P.useState(),Le=U(et,2),Ne=Le[0],st=Le[1];function Ze(){st(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}S1(R,function(G,X){function se(_e,Re){_e(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(M?se(V,G):se(z,X),De(),Ze(),!0):!1}),P.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){st(0)},100)),De},[Ne]);var de=E1(me,be,M?_:A,Ae,oe,re,D(D({},e),{},{tabs:y})),we=U(de,2),qe=we[0],at=we[1],Ct=Ht(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=me.get(G)||{width:0,height:0,left:0,right:0,top:0};if(M){var se=_;s?X.right<_?se=X.right:X.right+X.width>_+be&&(se=X.right+X.width-be):X.left<-_?se=-X.left:X.left+X.width>-_+be&&(se=-(X.left+X.width-be)),z(0),V(Ke(se))}else{var _e=A;X.top<-A?_e=-X.top:X.top+X.height>-A+be&&(_e=-(X.top+X.height-be)),V(0),z(Ke(_e))}}),dt={};f==="top"||f==="bottom"?dt[s?"marginRight":"marginLeft"]=v:dt.marginTop=v;var Be=y.map(function(G,X){var se=G.key;return c.createElement(R1,{id:a,prefixCls:m,key:se,tab:G,style:X===0?void 0:dt,closable:G.closable,editable:u,active:se===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(se,Re)},onFocus:function(){Ct(se),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),ke=function(){return ne(function(){var X,se=new Map,_e=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,mt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(gv(Me),'"]'));if(mt){var tt=P1(mt,_e),Ve=U(tt,4),wt=Ve[0],Gt=Ve[1],kt=Ve[2],pt=Ve[3];se.set(Me,{width:wt,height:Gt,left:kt,top:pt})}}),se})};P.useEffect(function(){ke()},[y.map(function(G){return G.key}).join("_")]);var ze=vv(function(){var G=On(x),X=On(S),se=On(E);W([G[0]-X[0]-se[0],G[1]-X[1]-se[1]]);var _e=On(T);fe(_e);var Re=On($);ue(Re);var Te=On(w);ee([Te[0]-_e[0],Te[1]-_e[1]]),ke()}),Pe=y.slice(0,qe),ye=y.slice(at+1),Ue=[].concat(Ce(Pe),Ce(ye)),bt=me.get(i),He=b1({activeTabOffset:bt,horizontal:M,indicator:g,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,je,yu(bt),yu(me),M]),P.useEffect(function(){ze()},[s]);var lt=!!Ue.length,yt="".concat(m,"-nav-wrap"),Pt,Vt,Wt,I;return M?s?(Vt=_>0,Pt=_!==je):(Pt=_<0,Vt=_!==Xe):(Wt=A<0,I=A!==Xe),c.createElement(mr,{onResize:ze},c.createElement("div",{ref:Na(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Gs,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(mr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),Pt),"".concat(yt,"-ping-right"),Vt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),I)),ref:R},c.createElement(mr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(A,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(pv,{ref:T,prefixCls:m,locale:d,editable:u,style:D(D({},Be.length===0?void 0:dt),{},{visibility:lt?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(O1,xe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!lt&&nt,tabMoving:!!Ne})),c.createElement(Gs,{ref:E,position:"right",extra:l,prefixCls:m})))}),Rl=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(Rl.displayName="TabPane");var _1=["renderTabBar"],T1=["label","key"],hv=function(t){var r=t.renderTabBar,n=Je(t,_1),a=c.useContext(Qo),o=a.tabs;if(r){var i=D(D({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,T1);return c.createElement(Rl,xe({tab:l,key:u,tabKey:u},d))})});return r(i,Cu)}return c.createElement(Cu,n)};process.env.NODE_ENV!=="production"&&(hv.displayName="TabNavListWrapper");var N1=["key","forceRender","style","className","destroyInactiveTabPane"],I1=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Qo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,C=v.destroyInactiveTabPane,m=Je(v,N1),y=b===n;return c.createElement(un,xe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(Rl,xe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:D(D({},p),E),className:Z(g,R),ref:S}))})})))};function M1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&it(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var A1=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Su=0,bv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,M=Je(e,A1),F=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),j=s==="rtl",_=M1(f),V=P.useState(!1),N=U(V,2),O=N[0],A=N[1];P.useEffect(function(){A(Pf())},[]);var z=Zt(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),k=U(z,2),H=k[0],K=k[1],W=P.useState(function(){return F.findIndex(function(B){return B.key===H})}),q=U(W,2),Y=q[0],J=q[1];P.useEffect(function(){var B=F.findIndex(function(le){return le.key===H});if(B===-1){var ue;B=Math.max(0,Math.min(Y,F.length-1)),K((ue=F[B])===null||ue===void 0?void 0:ue.key)}J(B)},[F.map(function(B){return B.key}).join("_"),H,Y]);var ee=Zt(null,{value:r}),te=U(ee,2),ae=te[0],ve=te[1];P.useEffect(function(){r||(ve("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":Su)),Su+=1)},[]);function fe(B,ue){E==null||E(B,ue);var le=B!==H;K(B),le&&(S==null||S(B))}var ge={id:ae,activeKey:H,animated:_,tabPosition:b,rtl:j,mobile:O},Oe=D(D({},ge),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:fe,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(Qo.Provider,{value:{tabs:F,prefixCls:a}},c.createElement("div",xe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),j),o)},M),c.createElement(hv,xe({},Oe,{renderTabBar:x})),c.createElement(I1,xe({destroyInactiveTabPane:y},ge,{animated:_}))))});process.env.NODE_ENV!=="production"&&(bv.displayName="Tabs");const j1={motionAppear:!1,motionEnter:!0,motionLeave:!0};function F1(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({},j1),{motionName:of(e,"switch")})),r}var L1=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 D1(e){return e.filter(t=>t)}function z1(e,t){if(process.env.NODE_ENV!=="production"&&Nt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Rr(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=L1(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return D1(r)}const V1=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}`}}}}},[Kc(e,"slide-up"),Kc(e,"slide-down")]]},k1=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${Q(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Q(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},B1=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Q(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},il),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},H1=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
268
268
|
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,
|
|
269
269
|
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},W1=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},G1=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},ll(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}}}},U1=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(o(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},K1=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({},Lr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${Q(e.paddingXS)}`,background:"transparent",border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ll(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),G1(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},q1=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}},X1=lr("Tabs",e=>{const t=At(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[W1(t),U1(t),H1(t),B1(t),k1(t),K1(t),V1(t)]},q1),yv=()=>null;process.env.NODE_ENV!=="production"&&(yv.displayName="DeprecatedTabPane");var Y1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:T,style:M,indicatorSize:F,indicator:j}=e,_=Y1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:V}=_,{direction:N,tabs:O,getPrefixCls:A,getPopupContainer:z}=c.useContext(rt),k=A("tabs",V),H=Ma(k),[K,W,q]=X1(k,H);let Y;v==="editable-card"&&(Y={onEdit:(ge,Oe)=>{let{key:B,event:ue}=Oe;g==null||g(ge==="add"?ue:B,ge)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(rf,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(fv,null),showAdd:C!==!0});const J=A();if(process.env.NODE_ENV!=="production"){const ge=Nt("Tabs");process.env.NODE_ENV!=="production"&&ge(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ge(!(F||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const ee=vn(p),te=z1($,w),ae=F1(k,T),ve=Object.assign(Object.assign({},O==null?void 0:O.style),M),fe={align:(r=j==null?void 0:j.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=j==null?void 0:j.size)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(bv,Object.assign({direction:N,getPopupContainer:z},_,{items:te,className:Z({[`${k}-${ee}`]:ee,[`${k}-card`]:["card","editable-card"].includes(v),[`${k}-editable-card`]:v==="editable-card",[`${k}-centered`]:m},O==null?void 0:O.className,b,h,W,q,H),popupClassName:Z(R,W,q,H),style:ve,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:c.createElement(rv,null),transitionName:`${J}-slide-up`},E),prefixCls:k,animated:ae,indicator:fe})))};Pl.TabPane=yv;process.env.NODE_ENV!=="production"&&(Pl.displayName="Tabs");var Z1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=Z1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(rt),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},Q1=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${Q(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},Ia()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},il),{[`
|
|
270
270
|
> ${r}-typography,
|
|
@@ -302,30 +302,29 @@ html body {
|
|
|
302
302
|
${t}-collapse,
|
|
303
303
|
${t}-edit,
|
|
304
304
|
${t}-copy
|
|
305
|
-
`]:Object.assign(Object.assign({},Ld(e)),{marginInlineStart:e.marginXXS})}),wE(e)),$E(e)),OE()),{"&-rtl":{direction:"rtl"}})}},PE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),jv=lr("Typography",e=>[RE(e)],PE),_E=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(Mv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var V;if(!((V=h.current)===null||V===void 0)&&V.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=V=>{let{target:N}=V;m(N.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=V=>{let{keyCode:N}=V;p.current||(g.current=N)},R=()=>{u(C.trim())},w=V=>{let{keyCode:N,ctrlKey:O,altKey:A,metaKey:z,shiftKey:k}=V;g.current===N&&!p.current&&!O&&!A&&!z&&!k&&(N===ce.ENTER?(R(),f==null||f()):N===ce.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[M,F,j]=jv(t),_=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,F,j);return M(c.createElement("div",{className:_,style:a},c.createElement(Gx,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Ho(b,{className:`${t}-edit-content-confirm`}):null))};var TE=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()}},NE=TE,Ru={"text/plain":"Text","text/html":"Url",default:"Text"},IE="Copy to clipboard: #{key}, Enter";function ME(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function AE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=NE(),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=Ru[t.format]||Ru.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=ME("message"in t?t.message:IE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var jE=AE;const FE=Mu(jE);var LE=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 DE=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Ht(f=>LE(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;FE(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 ji(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const zE=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},VE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var kE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Tl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=kE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(rt),h=l??v;let p=t;i&&(p=yr(t,i)),process.env.NODE_ENV!=="production"&&Nt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=jv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(Tl.displayName="Typography");function Pu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function io(e,t,r){return e===!0||e===void 0?t:e||r&&t}function BE(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 HE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=Pu(o),f=Pu(i),{copied:v,copy:b}=n??{},h=r?io(d[1],v):io(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(Da,{key:"copy",title:h},c.createElement(qs,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?io(f[1],c.createElement(Lf,null),!0):io(f[0],s?c.createElement(ul,null):c.createElement(Tv,null),!0)))},so=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 Fv(e){const t=typeof e;return t==="string"||t==="number"}function WE(e){let t=0;return e.forEach(r=>{Fv(r)?t+=String(r).length:t+=1}),t}function _u(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=Fv(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 Fi=0,Li=1,Di=2,zi=3,Tu=4,lo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function GE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Rr(n),[n]),d=c.useMemo(()=>WE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Fi),[R,w]=c.useState(0),[$,T]=c.useState(null);St(()=>{E(t&&r&&d?Li:Fi)},[r,n,o,t,u]),St(()=>{var _,V,N,O;if(S===Li){E(Di);const A=p.current&&getComputedStyle(p.current).whiteSpace;T(A)}else if(S===Di){const A=!!(!((_=g.current)===null||_===void 0)&&_.isExceed());E(A?zi:Tu),b(A?[0,d]:null),x(A);const z=((V=g.current)===null||V===void 0?void 0:V.getHeight())||0,k=o===1?0:((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=k+H,W=Math.max(z,K);w(W+1),l(A)}},[S]);const M=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var _;const[V,N]=v||[0,0];if(V!==N){const A=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>R;let z=M;N-V===1&&(z=A?V:N),b(A?[V,z]:[z,N])}},[v,M]);const F=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==zi||!v||v[0]!==v[1]){const _=a(u,!1);return S!==Tu&&S!==Fi?c.createElement("span",{style:Object.assign(Object.assign({},lo),{WebkitLineClamp:o})},_):_}return a(i?u:_u(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),j={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,F,S===Di&&c.createElement(c.Fragment,null,c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:o}),ref:g},f),c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:1}),ref:m},a([],!0))),S===zi&&v&&v[0]!==v[1]&&c.createElement(so,{style:Object.assign(Object.assign({},j),{top:400}),ref:h},a(_u(u,M),!0)),S===Li&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Lv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(Da,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Lv.displayName="EllipsisTooltip");var UE=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 KE(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 qE="...",ei=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=UE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(rt),[y]=Km("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=Cr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=ji(v),[T,M]=Zt(!1,{value:$.editing}),{triggerType:F=["icon"]}=$,j=de=>{var we;de&&((we=$.onStart)===null||we===void 0||we.call($)),M(de)},_=zE(T);VE(()=>{var de;!T&&_&&((de=S.current)===null||de===void 0||de.focus())},[T]);const V=de=>{de==null||de.preventDefault(),j(!0)},N=de=>{var we;(we=$.onChange)===null||we===void 0||we.call($,de),j(!1)},O=()=>{var de;(de=$.onCancel)===null||de===void 0||de.call($),j(!1)},[A,z]=ji(b),{copied:k,copyLoading:H,onClick:K}=DE({copyConfig:z,children:d}),[W,q]=c.useState(!1),[Y,J]=c.useState(!1),[ee,te]=c.useState(!1),[ae,ve]=c.useState(!1),[fe,ge]=c.useState(!0),[Oe,B]=ji(f,{expandable:!1,symbol:de=>de?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=Zt(B.defaultExpanded||!1,{value:B.expanded}),Ee=Oe&&(!ue||B.expandable==="collapsible"),{rows:he=1}=B,ne=c.useMemo(()=>Ee&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||A),[Ee,B,w,A]);St(()=>{Oe&&!ne&&(q(Gc("webkitLineClamp")),J(Gc("textOverflow")))},[ne,Oe]);const[me,$e]=c.useState(Ee),Ae=c.useMemo(()=>ne?!1:he===1?Y:W,[ne,Y,W]);St(()=>{$e(Ae&&Ee)},[Ae,Ee]);const oe=Ee&&(me?ae:ee),re=Ee&&he===1&&me,pe=Ee&&he>1&&me,be=(de,we)=>{var qe;le(we.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,de,we)},[nt,Xe]=c.useState(0),je=de=>{let{offsetWidth:we}=de;Xe(we)},Ke=de=>{var we;te(de),ee!==de&&((we=B.onEllipsis)===null||we===void 0||we.call(B,de))};c.useEffect(()=>{const de=x.current;if(Oe&&me&&de){const we=BE(de);ae!==we&&ve(we)}},[Oe,me,d,pe,fe,nt]),c.useEffect(()=>{const de=x.current;if(typeof IntersectionObserver>"u"||!de||!me||!Ee)return;const we=new IntersectionObserver(()=>{ge(!!de.offsetParent)});return we.observe(de),()=>{we.disconnect()}},[me,Ee]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const et=c.useMemo(()=>{const de=we=>["string","number"].includes(typeof we);if(!(!Oe||me)){if(de($.text))return $.text;if(de(d))return d;if(de(p))return p;if(de(Ye.title))return Ye.title}},[Oe,me,p,Ye.title,oe]);if(T)return c.createElement(_E,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:de,symbol:we}=B;return de?c.createElement(qs,{key:"expand",className:`${E}-${ue?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof we=="function"?we(ue):we):null},Ne=()=>{if(!w)return;const{icon:de,tooltip:we,tabIndex:qe}=$,at=Rr(we)[0]||(y==null?void 0:y.edit),Ct=typeof at=="string"?at:"";return F.includes("icon")?c.createElement(Da,{key:"edit",title:we===!1?"":at},c.createElement(qs,{ref:S,className:`${E}-edit`,onClick:V,"aria-label":Ct,tabIndex:qe},de||c.createElement(Iv,{role:"button"}))):null},st=()=>A?c.createElement(HE,Object.assign({key:"copy"},z,{prefixCls:E,copied:k,locale:y,onCopy:K,loading:H,iconOnly:d==null})):null,Ze=de=>[de&&Le(),Ne(),st()],De=de=>[de&&!ue&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},qE),B.suffix,Ze(de)];return c.createElement(mr,{onResize:je,disabled:!Ee},de=>c.createElement(Lv,{tooltipProps:Ye,enableEllipsis:Ee,isEllipsis:oe},c.createElement(Tl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:re,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:yr(de,x,t),direction:m,onClick:F.includes("text")?V:void 0,"aria-label":et==null?void 0:et.toString(),title:p},R),c.createElement(GE,{enableMeasure:Ee&&!me,text:d,rows:he,width:nt,onEllipsis:Ke,expanded:ue,miscDeps:[k,ue,H,w,A]},(we,qe)=>KE(e,c.createElement(c.Fragment,null,we.length>0&&qe&&!ue&&et?c.createElement("span",{key:"show-content","aria-hidden":!0},we):we,De(qe)))))))});var XE=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 YE=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=XE(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Nt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(ei,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),ZE=c.forwardRef((e,t)=>c.createElement(ei,Object.assign({ref:t},e,{component:"div"})));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};const JE=(e,t)=>{var{ellipsis:r}=e,n=QE(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?Cr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(ei,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},ew=c.forwardRef(JE);var tw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Nu=[1,2,3,4,5],rw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=tw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Nu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Nu.includes(r)?a=`h${r}`:a="h1",c.createElement(ei,Object.assign({ref:t},n,{component:a}))}),kr=Tl;kr.Text=ew;kr.Link=YE;kr.Title=rw;kr.Paragraph=ZE;const nw=mt(Uo)`
|
|
305
|
+
`]:Object.assign(Object.assign({},Ld(e)),{marginInlineStart:e.marginXXS})}),wE(e)),$E(e)),OE()),{"&-rtl":{direction:"rtl"}})}},PE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),jv=lr("Typography",e=>[RE(e)],PE),_E=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(Mv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var V;if(!((V=h.current)===null||V===void 0)&&V.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=V=>{let{target:N}=V;m(N.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=V=>{let{keyCode:N}=V;p.current||(g.current=N)},R=()=>{u(C.trim())},w=V=>{let{keyCode:N,ctrlKey:O,altKey:A,metaKey:z,shiftKey:k}=V;g.current===N&&!p.current&&!O&&!A&&!z&&!k&&(N===ce.ENTER?(R(),f==null||f()):N===ce.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[M,F,j]=jv(t),_=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,F,j);return M(c.createElement("div",{className:_,style:a},c.createElement(Gx,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Ho(b,{className:`${t}-edit-content-confirm`}):null))};var TE=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()}},NE=TE,Ru={"text/plain":"Text","text/html":"Url",default:"Text"},IE="Copy to clipboard: #{key}, Enter";function ME(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function AE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=NE(),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=Ru[t.format]||Ru.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=ME("message"in t?t.message:IE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var jE=AE;const FE=Mu(jE);var LE=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 DE=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Ht(f=>LE(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;FE(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 ji(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const zE=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},VE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var kE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Tl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=kE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(rt),h=l??v;let p=t;i&&(p=yr(t,i)),process.env.NODE_ENV!=="production"&&Nt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=jv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(Tl.displayName="Typography");function Pu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function io(e,t,r){return e===!0||e===void 0?t:e||r&&t}function BE(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 HE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=Pu(o),f=Pu(i),{copied:v,copy:b}=n??{},h=r?io(d[1],v):io(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(Da,{key:"copy",title:h},c.createElement(qs,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?io(f[1],c.createElement(Lf,null),!0):io(f[0],s?c.createElement(ul,null):c.createElement(Tv,null),!0)))},so=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 Fv(e){const t=typeof e;return t==="string"||t==="number"}function WE(e){let t=0;return e.forEach(r=>{Fv(r)?t+=String(r).length:t+=1}),t}function _u(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=Fv(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 Fi=0,Li=1,Di=2,zi=3,Tu=4,lo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function GE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Rr(n),[n]),d=c.useMemo(()=>WE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Fi),[R,w]=c.useState(0),[$,T]=c.useState(null);St(()=>{E(t&&r&&d?Li:Fi)},[r,n,o,t,u]),St(()=>{var _,V,N,O;if(S===Li){E(Di);const A=p.current&&getComputedStyle(p.current).whiteSpace;T(A)}else if(S===Di){const A=!!(!((_=g.current)===null||_===void 0)&&_.isExceed());E(A?zi:Tu),b(A?[0,d]:null),x(A);const z=((V=g.current)===null||V===void 0?void 0:V.getHeight())||0,k=o===1?0:((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=k+H,W=Math.max(z,K);w(W+1),l(A)}},[S]);const M=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var _;const[V,N]=v||[0,0];if(V!==N){const A=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>R;let z=M;N-V===1&&(z=A?V:N),b(A?[V,z]:[z,N])}},[v,M]);const F=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==zi||!v||v[0]!==v[1]){const _=a(u,!1);return S!==Tu&&S!==Fi?c.createElement("span",{style:Object.assign(Object.assign({},lo),{WebkitLineClamp:o})},_):_}return a(i?u:_u(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),j={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,F,S===Di&&c.createElement(c.Fragment,null,c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:o}),ref:g},f),c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(so,{style:Object.assign(Object.assign(Object.assign({},j),lo),{WebkitLineClamp:1}),ref:m},a([],!0))),S===zi&&v&&v[0]!==v[1]&&c.createElement(so,{style:Object.assign(Object.assign({},j),{top:400}),ref:h},a(_u(u,M),!0)),S===Li&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Lv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(Da,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Lv.displayName="EllipsisTooltip");var UE=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 KE(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 qE="...",ei=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=UE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(rt),[y]=Km("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=Cr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=ji(v),[T,M]=Zt(!1,{value:$.editing}),{triggerType:F=["icon"]}=$,j=de=>{var we;de&&((we=$.onStart)===null||we===void 0||we.call($)),M(de)},_=zE(T);VE(()=>{var de;!T&&_&&((de=S.current)===null||de===void 0||de.focus())},[T]);const V=de=>{de==null||de.preventDefault(),j(!0)},N=de=>{var we;(we=$.onChange)===null||we===void 0||we.call($,de),j(!1)},O=()=>{var de;(de=$.onCancel)===null||de===void 0||de.call($),j(!1)},[A,z]=ji(b),{copied:k,copyLoading:H,onClick:K}=DE({copyConfig:z,children:d}),[W,q]=c.useState(!1),[Y,J]=c.useState(!1),[ee,te]=c.useState(!1),[ae,ve]=c.useState(!1),[fe,ge]=c.useState(!0),[Oe,B]=ji(f,{expandable:!1,symbol:de=>de?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=Zt(B.defaultExpanded||!1,{value:B.expanded}),Ee=Oe&&(!ue||B.expandable==="collapsible"),{rows:he=1}=B,ne=c.useMemo(()=>Ee&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||A),[Ee,B,w,A]);St(()=>{Oe&&!ne&&(q(Gc("webkitLineClamp")),J(Gc("textOverflow")))},[ne,Oe]);const[me,$e]=c.useState(Ee),Ae=c.useMemo(()=>ne?!1:he===1?Y:W,[ne,Y,W]);St(()=>{$e(Ae&&Ee)},[Ae,Ee]);const oe=Ee&&(me?ae:ee),re=Ee&&he===1&&me,pe=Ee&&he>1&&me,be=(de,we)=>{var qe;le(we.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,de,we)},[nt,Xe]=c.useState(0),je=de=>{let{offsetWidth:we}=de;Xe(we)},Ke=de=>{var we;te(de),ee!==de&&((we=B.onEllipsis)===null||we===void 0||we.call(B,de))};c.useEffect(()=>{const de=x.current;if(Oe&&me&&de){const we=BE(de);ae!==we&&ve(we)}},[Oe,me,d,pe,fe,nt]),c.useEffect(()=>{const de=x.current;if(typeof IntersectionObserver>"u"||!de||!me||!Ee)return;const we=new IntersectionObserver(()=>{ge(!!de.offsetParent)});return we.observe(de),()=>{we.disconnect()}},[me,Ee]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const et=c.useMemo(()=>{const de=we=>["string","number"].includes(typeof we);if(!(!Oe||me)){if(de($.text))return $.text;if(de(d))return d;if(de(p))return p;if(de(Ye.title))return Ye.title}},[Oe,me,p,Ye.title,oe]);if(T)return c.createElement(_E,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:de,symbol:we}=B;return de?c.createElement(qs,{key:"expand",className:`${E}-${ue?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof we=="function"?we(ue):we):null},Ne=()=>{if(!w)return;const{icon:de,tooltip:we,tabIndex:qe}=$,at=Rr(we)[0]||(y==null?void 0:y.edit),Ct=typeof at=="string"?at:"";return F.includes("icon")?c.createElement(Da,{key:"edit",title:we===!1?"":at},c.createElement(qs,{ref:S,className:`${E}-edit`,onClick:V,"aria-label":Ct,tabIndex:qe},de||c.createElement(Iv,{role:"button"}))):null},st=()=>A?c.createElement(HE,Object.assign({key:"copy"},z,{prefixCls:E,copied:k,locale:y,onCopy:K,loading:H,iconOnly:d==null})):null,Ze=de=>[de&&Le(),Ne(),st()],De=de=>[de&&!ue&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},qE),B.suffix,Ze(de)];return c.createElement(mr,{onResize:je,disabled:!Ee},de=>c.createElement(Lv,{tooltipProps:Ye,enableEllipsis:Ee,isEllipsis:oe},c.createElement(Tl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:re,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:yr(de,x,t),direction:m,onClick:F.includes("text")?V:void 0,"aria-label":et==null?void 0:et.toString(),title:p},R),c.createElement(GE,{enableMeasure:Ee&&!me,text:d,rows:he,width:nt,onEllipsis:Ke,expanded:ue,miscDeps:[k,ue,H,w,A]},(we,qe)=>KE(e,c.createElement(c.Fragment,null,we.length>0&&qe&&!ue&&et?c.createElement("span",{key:"show-content","aria-hidden":!0},we):we,De(qe)))))))});var XE=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 YE=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=XE(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Nt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(ei,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),ZE=c.forwardRef((e,t)=>c.createElement(ei,Object.assign({ref:t},e,{component:"div"})));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};const JE=(e,t)=>{var{ellipsis:r}=e,n=QE(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?Cr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(ei,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},ew=c.forwardRef(JE);var tw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Nu=[1,2,3,4,5],rw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=tw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Nu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Nu.includes(r)?a=`h${r}`:a="h1",c.createElement(ei,Object.assign({ref:t},n,{component:a}))}),kr=Tl;kr.Text=ew;kr.Link=YE;kr.Title=rw;kr.Paragraph=ZE;const nw=ft(Uo)`
|
|
306
306
|
border-radius: var(--gf-radius-sm);
|
|
307
|
-
|
|
308
|
-
${e=>e.type==="primary"&&mt.css`
|
|
307
|
+
${e=>e.type==="primary"&&ft.css`
|
|
309
308
|
background: var(--gf-color-button-primary);
|
|
310
309
|
`}
|
|
311
|
-
`,Nl=({type:e="default",disabled:t=!1,onClick:r,...n})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(nw,{type:e,disabled:t,onClick:r,...n})]}),Dv=({disabled:e=!1,onClick:t,...r})=>ie.jsx(ie.Fragment,{children:ie.jsx(Nl,{type:"default",disabled:e,onClick:t,icon:ie.jsx(Nv,{}),iconPosition:"start",children:"Download",...r})}),zv=({disabled:e=!1,open:t,onClick:r,...n})=>ie.jsx(ie.Fragment,{children:ie.jsx(Nl,{type:"link",disabled:e,onClick:r,icon:t?ie.jsx(xv,{}):ie.jsx(Df,{}),iconPosition:"end",...n})}),aw=
|
|
312
|
-
`,ow=
|
|
310
|
+
`,Nl=({type:e="default",disabled:t=!1,onClick:r,...n})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(nw,{type:e,disabled:t,onClick:r,...n})]}),Dv=({disabled:e=!1,onClick:t,...r})=>ie.jsx(ie.Fragment,{children:ie.jsx(Nl,{type:"default",disabled:e,onClick:t,icon:ie.jsx(Nv,{}),iconPosition:"start",children:"Download",...r})}),zv=({disabled:e=!1,open:t,onClick:r,...n})=>ie.jsx(ie.Fragment,{children:ie.jsx(Nl,{type:"link",disabled:e,onClick:r,icon:t?ie.jsx(xv,{}):ie.jsx(Df,{}),iconPosition:"end",...n})}),aw=ft(ka.Group)`
|
|
311
|
+
`,ow=ft(ka.Button)`
|
|
313
312
|
height: 24px;
|
|
314
313
|
font: var(--gf-label-md-default);
|
|
315
314
|
color: --gf-color-text-primary;
|
|
316
|
-
`,iw=({content:e,handler:t,disabled:r=!1,...n})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(dn,{theme:{components:{Radio:{borderRadius:2,colorBorder:"#EAECF0",colorPrimary:"#152BEE"}}},children:ie.jsx(aw,{disabled:r,onChange:t,defaultValue:0,...n,children:e.map(a=>ie.jsx(ow,{value:a.key,disabled:a.disabled,children:a.label},`gf-control-button-${a.key}`))})})]}),sw=
|
|
315
|
+
`,iw=({content:e,handler:t,disabled:r=!1,...n})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(dn,{theme:{components:{Radio:{borderRadius:2,colorBorder:"#EAECF0",colorPrimary:"#152BEE"}}},children:ie.jsx(aw,{disabled:r,onChange:t,defaultValue:0,...n,children:e.map(a=>ie.jsx(ow,{value:a.key,disabled:a.disabled,children:a.label},`gf-control-button-${a.key}`))})})]}),sw=ft(Jo)`
|
|
317
316
|
border-radius: var(--gf-radius-sm);
|
|
318
317
|
border-color: var(--gf-color-border-base);
|
|
319
|
-
${e=>e.cardtype==="default"&&
|
|
318
|
+
${e=>e.cardtype==="default"&&ft.css`
|
|
320
319
|
background: var(--gf-color-bg-base);
|
|
321
320
|
`}
|
|
322
|
-
${e=>e.cardtype==="grey"&&
|
|
321
|
+
${e=>e.cardtype==="grey"&&ft.css`
|
|
323
322
|
background: var(--gf-color-bg-tertiary);
|
|
324
323
|
`}
|
|
325
|
-
${e=>e.cardtype==="debug"&&
|
|
324
|
+
${e=>e.cardtype==="debug"&&ft.css`
|
|
326
325
|
background: var(--gf-color-bg-debug);
|
|
327
326
|
`}
|
|
328
|
-
`,ti=({cardtype:e,...
|
|
327
|
+
`,ti=({cardtype:e,padding:t=32,...r})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(sw,{cardtype:e,styles:{header:{padding:t},body:{padding:t}},...r})]}),{Text:Vv}=kr,kv=ft(ti)`
|
|
329
328
|
&:hover {
|
|
330
329
|
cursor: pointer;
|
|
331
330
|
border: 1px solid var(--gf-color-primary-hover);
|
|
@@ -335,53 +334,60 @@ html body {
|
|
|
335
334
|
svg:hover {
|
|
336
335
|
fill: var(--gf-color-primary-hover);
|
|
337
336
|
}
|
|
338
|
-
`,lw=
|
|
337
|
+
`,lw=ft(Vv)`
|
|
339
338
|
font: var(--gf-header-h5);
|
|
340
339
|
${kv}:hover & {
|
|
341
340
|
color: var(--gf-color-primary-hover);
|
|
342
341
|
}
|
|
343
|
-
`,cw=
|
|
342
|
+
`,cw=ft(Vv)`
|
|
344
343
|
font: var(--gf-label-md-default);
|
|
345
344
|
color: var(--gf-color-text-secondary);
|
|
346
|
-
`,uw=({disabled:e=!1,icon:t=Av,title:r="Title",description:n,onClick:a,...o})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsxs(kv,{onClick:a,cardtype:"default",...o,children:[ie.jsxs(Ks,{gutter:16,children:[ie.jsx(ca,{span:1,children:t}),ie.jsx(ca,{span:23,children:ie.jsx(lw,{children:r})})]}),ie.jsxs(Ks,{gutter:16,children:[ie.jsx(ca,{span:1}),ie.jsx(ca,{span:23,children:ie.jsx(cw,{children:n})})]})]})]}),dw=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,handleDownload:a,...o})=>{var v;const[i,s]=P.useState((v=e==null?void 0:e[0])==null?void 0:v.key),[l,u]=P.useState(!1),d=b=>{s(b)},f=()=>{u(b=>!b)};return ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(ti,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:i,onTabChange:d,tabBarExtraContent:ie.jsx(Dv,{onClick:a}),actions:r!=null&&r[i]?[ie.jsxs(_l,{vertical:!0,children:[ie.jsx(zv,{open:l,onClick:f,children:n}),l&&(r==null?void 0:r[i])]})]:void 0,...o,children:t==null?void 0:t[i]})]})},{Paragraph:fw,Text:Bv}=kr,vw=
|
|
345
|
+
`,uw=({disabled:e=!1,icon:t=Av,title:r="Title",description:n,onClick:a,...o})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsxs(kv,{onClick:a,padding:24,cardtype:"default",...o,children:[ie.jsxs(Ks,{gutter:16,children:[ie.jsx(ca,{span:1,children:t}),ie.jsx(ca,{span:23,children:ie.jsx(lw,{children:r})})]}),ie.jsxs(Ks,{gutter:16,children:[ie.jsx(ca,{span:1}),ie.jsx(ca,{span:23,children:ie.jsx(cw,{children:n})})]})]})]}),dw=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,handleDownload:a,...o})=>{var v;const[i,s]=P.useState((v=e==null?void 0:e[0])==null?void 0:v.key),[l,u]=P.useState(!1),d=b=>{s(b)},f=()=>{u(b=>!b)};return ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(ti,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:i,onTabChange:d,tabBarExtraContent:ie.jsx(Dv,{onClick:a}),actions:r!=null&&r[i]?[ie.jsxs(_l,{vertical:!0,children:[ie.jsx(zv,{open:l,onClick:f,children:n}),l&&(r==null?void 0:r[i])]})]:void 0,...o,children:t==null?void 0:t[i]})]})},{Paragraph:fw,Text:Bv}=kr,vw=ft(ti)`
|
|
347
346
|
min-width: 226px;
|
|
348
|
-
`,gw=
|
|
347
|
+
`,gw=ft(Bv)`
|
|
349
348
|
font: var(--gf-header-h1);
|
|
350
|
-
`,mw=
|
|
349
|
+
`,mw=ft(Bv)`
|
|
351
350
|
font: var(--gf-label-md-italic);
|
|
352
351
|
color: var(--gf-color-text-tertiary);
|
|
353
|
-
`,pw=
|
|
352
|
+
`,pw=ft(fw)`
|
|
354
353
|
font: var(--gf-label-lg-default);
|
|
355
354
|
color: var(--gf-color-text-secondary);
|
|
356
|
-
`,hw=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(vw,{cardtype:"grey",...a,children:ie.jsxs(_l,{vertical:!0,gap:8,children:[ie.jsxs(Ba,{direction:"horizontal",size:16,align:"end",children:[ie.jsx(gw,{children:`${e}%`}),ie.jsx(mw,{children:`€${t} md`})]}),ie.jsx(pw,{editable:s,children:o})]})})]})},{Text:Hv}=kr,bw=
|
|
355
|
+
`,hw=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(vw,{cardtype:"grey",padding:24,...a,children:ie.jsxs(_l,{vertical:!0,gap:8,children:[ie.jsxs(Ba,{direction:"horizontal",size:16,align:"end",children:[ie.jsx(gw,{children:`${e}%`}),ie.jsx(mw,{children:`€${t} md`})]}),ie.jsx(pw,{editable:s,children:o})]})})]})},{Text:Hv}=kr,bw=ft(Hv)`
|
|
357
356
|
color: var(--gf-color-text-primary) !important;
|
|
358
|
-
${e=>e.type==="primary"&&
|
|
357
|
+
${e=>e.type==="primary"&&ft.css`
|
|
359
358
|
font: var(--gf-header-h2);
|
|
360
359
|
`}
|
|
361
|
-
${e=>e.type==="secondary"&&
|
|
360
|
+
${e=>e.type==="secondary"&&ft.css`
|
|
362
361
|
font: var(--gf-header-h4);
|
|
363
362
|
`}
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
${e=>e.type==="header"&&ft.css`
|
|
364
|
+
font: var(--gf-header-h1);
|
|
365
|
+
`}
|
|
366
|
+
`,yw=ft(Hv)`
|
|
367
|
+
${e=>e.type==="primary"&&ft.css`
|
|
366
368
|
font: var(--gf-label-xl-default);
|
|
367
369
|
color: var(--gf-color-text-primary) !important;
|
|
368
370
|
`}
|
|
369
|
-
${e=>e.type==="secondary"&&
|
|
371
|
+
${e=>e.type==="secondary"&&ft.css`
|
|
370
372
|
font: var(--gf-label-lg-default);
|
|
371
373
|
color: var(--gf-color-text-secondary) !important;
|
|
372
374
|
`}
|
|
373
|
-
|
|
375
|
+
${e=>e.type==="header"&&ft.css`
|
|
376
|
+
font: var(--gf-label-xl-default);
|
|
377
|
+
color: var(--gf-color-text-secondary) !important;
|
|
378
|
+
`}
|
|
379
|
+
`,Cw=({title:e,subtitle:t,type:r="primary"})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsxs(Ba,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[ie.jsx(bw,{type:r,children:e}),ie.jsx(yw,{type:r,children:t})]})]}),{Text:Sw}=kr,xw=ft.a`
|
|
374
380
|
text-decoration: none;
|
|
375
|
-
`,Ew=
|
|
381
|
+
`,Ew=ft(Sw)`
|
|
376
382
|
font: var(--gf-label-md-default);
|
|
377
383
|
line-height: 150%;
|
|
378
384
|
color: ${e=>e.type==="light"?"white":"var(--gf-color-text-secondary)"}
|
|
379
|
-
`,ww=({label:e,href:t,icon:r,type:n,placement:a="left",...o})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(xw,{href:t,...o,children:ie.jsxs(Ba,{direction:"horizontal",size:8,align:"start",children:[r&&a==="left"&&r,ie.jsx(Ew,{type:n,children:e}),r&&a==="right"&&r]})})]}),{Text:$w}=kr,Ow=
|
|
380
|
-
${e=>e.columns&&e.columns>1&&
|
|
385
|
+
`,ww=({label:e,href:t,icon:r,type:n,placement:a="left",...o})=>ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(xw,{href:t,...o,children:ie.jsxs(Ba,{direction:"horizontal",size:8,align:"start",children:[r&&a==="left"&&r,ie.jsx(Ew,{type:n,children:e}),r&&a==="right"&&r]})})]}),{Text:$w}=kr,Ow=ft.div`
|
|
386
|
+
${e=>e.columns&&e.columns>1&&ft.css`
|
|
381
387
|
column-count: ${e.columns};
|
|
382
388
|
`}
|
|
383
389
|
text-align: ${e=>e.textalign};
|
|
384
|
-
`,Rw=
|
|
390
|
+
`,Rw=ft($w)`
|
|
385
391
|
font: var(--gf-label-lg-default);
|
|
386
392
|
color: var(--gf-color-text-secondary) ;
|
|
387
393
|
`,Pw=({text:e,columns:t,editable:r=!1,textalign:n="left",style:a,className:o})=>{const[i,s]=P.useState(e),l=r?{onChange:s}:!1;return ie.jsxs(ie.Fragment,{children:[ie.jsx(zr,{}),ie.jsx(Ow,{columns:t,textalign:n,style:a||{},className:o||"",children:ie.jsx(Rw,{editable:l,children:i})})]})},_w=()=>ie.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:ie.jsx("path",{d:"M14.1674 10.5211L11.4504 9.31407C11.1681 9.18782 10.8519 9.15859 10.5512 9.23096C10.2506 9.30332 9.98233 9.4732 9.78838 9.71407L9.00538 10.6931C7.72168 9.86934 6.62893 8.78067 5.80038 7.50007L6.77938 6.71707C7.02003 6.52318 7.18977 6.25511 7.26212 5.95466C7.33448 5.65421 7.30539 5.33826 7.17938 5.05607L5.97938 2.33207C5.84476 2.02875 5.60677 1.78311 5.30786 1.63897C5.00895 1.49482 4.66855 1.46155 4.34738 1.54507L2.04738 2.14507C1.71408 2.23182 1.42444 2.43838 1.23387 2.72526C1.04329 3.01214 0.965148 3.3592 1.01438 3.70007C1.44298 6.67478 2.82344 9.43069 4.94914 11.5553C7.07484 13.6799 9.83145 15.059 12.8064 15.4861C13.1473 15.5343 13.4941 15.4553 13.7804 15.264C14.0667 15.0726 14.2725 14.7825 14.3584 14.4491L14.9584 12.1491C15.0418 11.828 15.008 11.4876 14.863 11.1892C14.718 10.8908 14.4714 10.6539 14.1674 10.5211Z",fill:"#152BEE"})}),Tw=()=>ie.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ie.jsxs("g",{clipPath:"url(#clip0_907_17408)",children:[ie.jsx("path",{d:"M8.93333 10.2336C8.65931 10.4212 8.33178 10.5148 8 10.5003C7.66822 10.5148 7.34069 10.4212 7.06667 10.2336L0 6.43359V13.1669C0 13.6974 0.210714 14.2061 0.585786 14.5811C0.960859 14.9562 1.46957 15.1669 2 15.1669H14C14.5304 15.1669 15.0391 14.9562 15.4142 14.5811C15.7893 14.2061 16 13.6974 16 13.1669V6.43359L8.93333 10.2336Z",fill:"#152BEE"}),ie.jsx("path",{d:"M14 1.8335H2.00001C1.46958 1.8335 0.960869 2.04421 0.585796 2.41928C0.210723 2.79436 9.8296e-06 3.30306 9.8296e-06 3.8335V4.50016C-0.00062718 4.62038 0.029707 4.73873 0.0880899 4.84382C0.146473 4.94891 0.230936 5.03719 0.333343 5.10016L7.66668 9.10016C7.76904 9.15405 7.8848 9.17721 8.00001 9.16683C8.11522 9.17721 8.23098 9.15405 8.33334 9.10016L15.6667 5.10016C15.7691 5.03719 15.8535 4.94891 15.9119 4.84382C15.9703 4.73873 16.0006 4.62038 16 4.50016V3.8335C16 3.30306 15.7893 2.79436 15.4142 2.41928C15.0392 2.04421 14.5304 1.8335 14 1.8335Z",fill:"#152BEE"})]}),ie.jsx("defs",{children:ie.jsx("clipPath",{id:"clip0_907_17408",children:ie.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),Nw=()=>ie.jsx("svg",{width:"10",height:"15",viewBox:"0 0 10 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie.jsx("path",{d:"M10 5.5C10 2.74167 7.75833 0.5 5 0.5C2.24167 0.5 0 2.74167 0 5.5C0 9.25 5 14.6667 5 14.6667C5 14.6667 10 9.25 10 5.5ZM3.33333 5.5C3.33333 4.58333 4.08333 3.83333 5 3.83333C5.91667 3.83333 6.66667 4.58333 6.66667 5.5C6.66667 5.94203 6.49107 6.36595 6.17851 6.67851C5.86595 6.99107 5.44203 7.16667 5 7.16667C4.55797 7.16667 4.13405 6.99107 3.82149 6.67851C3.50893 6.36595 3.33333 5.94203 3.33333 5.5Z",fill:"#152BEE"})});exports.ButtonControls=iw;exports.Description=Pw;exports.DownloadButton=Dv;exports.ExpandButton=zv;exports.GFButton=Nl;exports.GFCard=ti;exports.Link=ww;exports.LocationIcon=Nw;exports.MailIcon=Tw;exports.Metrics=hw;exports.NavCard=uw;exports.PhoneIcon=_w;exports.TabCard=dw;exports.Title=Cw;
|