dynamicformdjx-react 0.1.0 → 0.1.1

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.
@@ -1,173 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Vt=require("react/jsx-runtime"),P=require("react"),Lo=require("react-dom");function Cc(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 d=Cc(P),Sc=Cc(Lo);function ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ra={exports:{}};var Ms;function vf(){return Ms||(Ms=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ra)),Ra.exports}var mf=vf();const J=ff(mf);function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fe.apply(null,arguments)}function de(e){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(e)}var gf=Symbol.for("react.element"),pf=Symbol.for("react.transitional.element"),hf=Symbol.for("react.fragment");function xc(e){return e&&de(e)==="object"&&(e.$$typeof===gf||e.$$typeof===pf)&&e.type===hf}function In(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(In(n)):xc(n)&&n.props?r=r.concat(In(n.props.children,t)):r.push(n))}),r}var ni={},rs=[],bf=function(t){rs.push(t)};function en(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=rs.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function yf(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=rs.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function wc(){ni={}}function Ec(e,t,r){!t&&!ni[r]&&(e(!1,r),ni[r]=!0)}function Le(e,t){Ec(en,e,t)}function Cf(e,t){Ec(yf,e,t)}Le.preMessage=bf;Le.resetWarned=wc;Le.noteOnce=Cf;function Sf(e,t){if(de(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(de(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $c(e){var t=Sf(e,"string");return de(t)=="symbol"?t:t+""}function _(e,t,r){return(t=$c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(n){_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fn(e){return e instanceof HTMLElement||e instanceof SVGElement}function Oc(e){return e&&de(e)==="object"&&Fn(e.nativeElement)?e.nativeElement:Fn(e)?e:null}function To(e){var t=Oc(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Lo.findDOMNode)===null||r===void 0?void 0:r.call(Lo,e)}return null}var po={exports:{}},Re={};var js;function xf(){if(js)return Re;js=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case o:case n:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case m:case f:case a:return v;default:return y}}case t:return y}}}return Re.ContextConsumer=i,Re.ContextProvider=a,Re.Element=e,Re.ForwardRef=l,Re.Fragment=r,Re.Lazy=m,Re.Memo=f,Re.Portal=t,Re.Profiler=o,Re.StrictMode=n,Re.Suspense=c,Re.SuspenseList=u,Re.isAsyncMode=function(){return!1},Re.isConcurrentMode=function(){return!1},Re.isContextConsumer=function(v){return p(v)===i},Re.isContextProvider=function(v){return p(v)===a},Re.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Re.isForwardRef=function(v){return p(v)===l},Re.isFragment=function(v){return p(v)===r},Re.isLazy=function(v){return p(v)===m},Re.isMemo=function(v){return p(v)===f},Re.isPortal=function(v){return p(v)===t},Re.isProfiler=function(v){return p(v)===o},Re.isStrictMode=function(v){return p(v)===n},Re.isSuspense=function(v){return p(v)===c},Re.isSuspenseList=function(v){return p(v)===u},Re.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===c||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},Re.typeOf=p,Re}var _e={};var Vs;function wf(){return Vs||(Vs=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,v=!1,y=!1,b=!1,C;C=Symbol.for("react.module.reference");function x(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===o||b||W===n||W===c||W===u||y||W===h||g||p||v||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===f||W.$$typeof===a||W.$$typeof===i||W.$$typeof===l||W.$$typeof===C||W.getModuleId!==void 0))}function S(W){if(typeof W=="object"&&W!==null){var ce=W.$$typeof;switch(ce){case e:var Y=W.type;switch(Y){case r:case o:case n:case c:case u:return Y;default:var ie=Y&&Y.$$typeof;switch(ie){case s:case i:case l:case m:case f:case a:return ie;default:return ce}}case t:return ce}}}var w=i,E=a,$=e,O=l,R=r,N=m,I=f,F=t,T=o,V=n,j=c,M=u,D=!1,z=!1;function U(W){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(W){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(W){return S(W)===i}function H(W){return S(W)===a}function L(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function q(W){return S(W)===l}function B(W){return S(W)===r}function oe(W){return S(W)===m}function G(W){return S(W)===f}function Q(W){return S(W)===t}function ee(W){return S(W)===o}function te(W){return S(W)===n}function se(W){return S(W)===c}function le(W){return S(W)===u}_e.ContextConsumer=w,_e.ContextProvider=E,_e.Element=$,_e.ForwardRef=O,_e.Fragment=R,_e.Lazy=N,_e.Memo=I,_e.Portal=F,_e.Profiler=T,_e.StrictMode=V,_e.Suspense=j,_e.SuspenseList=M,_e.isAsyncMode=U,_e.isConcurrentMode=K,_e.isContextConsumer=k,_e.isContextProvider=H,_e.isElement=L,_e.isForwardRef=q,_e.isFragment=B,_e.isLazy=oe,_e.isMemo=G,_e.isPortal=Q,_e.isProfiler=ee,_e.isStrictMode=te,_e.isSuspense=se,_e.isSuspenseList=le,_e.isValidElementType=x,_e.typeOf=S})()),_e}var Ds;function Ef(){return Ds||(Ds=1,process.env.NODE_ENV==="production"?po.exports=xf():po.exports=wf()),po.exports}var _a=Ef();function ns(e,t,r){var n=d.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var $f=Number(P.version.split(".")[0]),os=function(t,r){typeof t=="function"?t(r):de(t)==="object"&&t&&"current"in t&&(t.current=r)},hr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(a){r.forEach(function(i){os(i,a)})}},Ko=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ns(function(){return hr.apply(void 0,r)},r,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},ln=function(t){var r,n;if(!t)return!1;if(Pc(t)&&$f>=19)return!0;var o=_a.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==_a.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==_a.ForwardRef)};function Pc(e){return P.isValidElement(e)&&!xc(e)}var qn=function(t){if(t&&Pc(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},oi=d.createContext(null);function Of(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),o=d.useRef([]),a=d.useContext(oi),i=d.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),a?.(s,l,c)},[r,a]);return d.createElement(oi.Provider,{value:i},t)}var Rc=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,a){return o[0]===r?(n=a,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];r.call(n,i[1],i[0])}},t})()})(),ai=typeof window<"u"&&typeof document<"u"&&window.document===document,zo=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Pf=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Rf=2;function _f(e,t){var r=!1,n=!1,o=0;function a(){r&&(r=!1,e()),n&&s()}function i(){Pf(a)}function s(){var l=Date.now();if(r){if(l-o<Rf)return;n=!0}else r=!0,n=!1,setTimeout(i,t);o=l}return s}var Nf=20,Tf=["top","right","bottom","left","width","height","size","weight"],If=typeof MutationObserver<"u",Ff=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_f(this.refresh.bind(this),Nf)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ai||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),If?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ai||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=Tf.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),_c=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),tn=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||zo}),Nc=Yo(0,0,0,0);function Ho(e){return parseFloat(e)||0}function Ls(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+Ho(a)},0)}function Mf(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var a=o[n],i=e["padding-"+a];r[a]=Ho(i)}return r}function Af(e){var t=e.getBBox();return Yo(0,0,t.width,t.height)}function jf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Nc;var n=tn(e).getComputedStyle(e),o=Mf(n),a=o.left+o.right,i=o.top+o.bottom,s=Ho(n.width),l=Ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=Ls(n,"left","right")+a),Math.round(l+i)!==r&&(l-=Ls(n,"top","bottom")+i)),!Df(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Yo(o.left,o.top,s,l)}var Vf=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof tn(e).SVGGraphicsElement}:function(e){return e instanceof tn(e).SVGElement&&typeof e.getBBox=="function"}})();function Df(e){return e===tn(e).document.documentElement}function Lf(e){return ai?Vf(e)?Af(e):jf(e):Nc}function zf(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return _c(i,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),i}function Yo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Hf=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Lf(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),Bf=(function(){function e(t,r){var n=zf(r);_c(this,{target:t,contentRect:n})}return e})(),Wf=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Rc,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof tn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Hf(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof tn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Bf(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Tc=typeof WeakMap<"u"?new WeakMap:new Rc,Ic=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ff.getInstance(),n=new Wf(t,r,this);Tc.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ic.prototype[e]=function(){var t;return(t=Tc.get(this))[e].apply(t,arguments)}});var kf=(function(){return typeof zo.ResizeObserver<"u"?zo.ResizeObserver:Ic})(),er=new Map;function Fc(e){e.forEach(function(t){var r,n=t.target;(r=er.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var Mc=new kf(Fc);process.env.NODE_ENV;process.env.NODE_ENV;function qf(e,t){er.has(e)||(er.set(e,new Set),Mc.observe(e)),er.get(e).add(t)}function Gf(e,t){er.has(e)&&(er.get(e).delete(t),er.get(e).size||(Mc.unobserve(e),er.delete(e)))}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$c(n.key),n)}}function rt(e,t,r){return t&&zs(e.prototype,t),r&&zs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(e,t){return Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Mn(e,t)}function br(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mn(e,t)}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(e)}function as(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(as=function(){return!!e})()}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uf(e,t){if(t&&(de(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(e)}function yr(e){var t=as();return function(){var r,n=An(e);if(t){var o=An(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Uf(this,r)}}var Xf=(function(e){br(r,e);var t=yr(r);function r(){return tt(this,r),t.apply(this,arguments)}return rt(r,[{key:"render",value:function(){return this.props.children}}]),r})(d.Component);function Kf(e,t){var r=e.children,n=e.disabled,o=d.useRef(null),a=d.useRef(null),i=d.useContext(oi),s=typeof r=="function",l=s?r(o):r,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&d.isValidElement(l)&&ln(l),f=u?qn(l):null,m=Ko(f,o),h=function(){var y;return To(o.current)||(o.current&&de(o.current)==="object"?To((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||To(a.current)};d.useImperativeHandle(t,function(){return h()});var g=d.useRef(e);g.current=e;var p=d.useCallback(function(v){var y=g.current,b=y.onResize,C=y.data,x=v.getBoundingClientRect(),S=x.width,w=x.height,E=v.offsetWidth,$=v.offsetHeight,O=Math.floor(S),R=Math.floor(w);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==E||c.current.offsetHeight!==$){var N={width:O,height:R,offsetWidth:E,offsetHeight:$};c.current=N;var I=E===Math.round(S)?S:E,F=$===Math.round(w)?w:$,T=A(A({},N),{},{offsetWidth:I,offsetHeight:F});i?.(T,v,C),b&&Promise.resolve().then(function(){b(T,v)})}},[]);return d.useEffect(function(){var v=h();return v&&!n&&qf(v,p),function(){return Gf(v,p)}},[o.current,n]),d.createElement(Xf,{ref:a},u?d.cloneElement(l,{ref:m}):l)}var Ac=d.forwardRef(Kf);process.env.NODE_ENV!=="production"&&(Ac.displayName="SingleObserver");var Yf="rc-observer-key";function Qf(e,t){var r=e.children,n=typeof r=="function"?[r]:In(r);return process.env.NODE_ENV!=="production"&&(n.length>1?en(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&en(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,a){var i=o?.key||"".concat(Yf,"-").concat(a);return d.createElement(Ac,Fe({},e,{key:i,ref:a===0?t:void 0}),o)})}var Gn=d.forwardRef(Qf);process.env.NODE_ENV!=="production"&&(Gn.displayName="ResizeObserver");Gn.Collection=Of;function ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Zf(e){if(Array.isArray(e))return ii(e)}function jc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function is(e,t){if(e){if(typeof e=="string")return ii(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ii(e,t):void 0}}function Jf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(e){return Zf(e)||jc(e)||is(e)||Jf()}var Vc=function(t){return+setTimeout(t,16)},Dc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Vc=function(t){return window.requestAnimationFrame(t)},Dc=function(t){return window.cancelAnimationFrame(t)});var Hs=0,Qo=new Map;function Lc(e){Qo.delete(e)}var St=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Hs+=1;var n=Hs;function o(a){if(a===0)Lc(n),t();else{var i=Vc(function(){o(a-1)});Qo.set(n,i)}}return o(r),n};St.cancel=function(e){var t=Qo.get(e);return Lc(e),Dc(t)};process.env.NODE_ENV!=="production"&&(St.ids=function(){return Qo});function zc(e){if(Array.isArray(e))return e}function ev(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Hc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e,t){return zc(e)||ev(e,t)||is(e,t)||Hc()}function jn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function pt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function tv(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Bs="data-rc-order",Ws="data-rc-priority",rv="rc-util-key",si=new Map;function Bc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):rv}function Zo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nv(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ss(e){return Array.from((si.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pt())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=nv(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Bs,i),s&&a&&l.setAttribute(Ws,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Zo(t),u=c.firstChild;if(n){if(s){var f=(t.styles||ss(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Bs)))return!1;var h=Number(m.getAttribute(Ws)||0);return a>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Zo(t);return(t.styles||ss(r)).find(function(n){return n.getAttribute(Bc(t))===e})}function Vn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=kc(e,t);if(r){var n=Zo(t);n.removeChild(r)}}function ov(e,t){var r=si.get(e);if(!r||!tv(document,r)){var n=Wc("",t),o=n.parentNode;si.set(e,o),e.removeChild(n)}}function tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Zo(r),o=ss(n),a=A(A({},r),{},{styles:o});ov(n,a);var i=kc(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Wc(e,a);return u.setAttribute(Bc(a),t),u}function av(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function dt(e,t){if(e==null)return{};var r,n,o=av(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function li(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(Le(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&de(a)==="object"&&de(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(m){return o(a[m],i[m],c)})}return!1}return o(e,t)}var iv="%";function ci(e){return e.join(iv)}var sv=(function(){function e(t){tt(this,e),_(this,"instanceId",void 0),_(this,"cache",new Map),_(this,"extracted",new Set),this.instanceId=t}return rt(e,[{key:"get",value:function(r){return this.opGet(ci(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(ci(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e})(),rn="data-token-hash",Lt="data-css-hash",lv="data-cache-path",vr="__cssinjs_instance__";function cv(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Lt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[vr]=o[vr]||e,o[vr]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Lt,"]"))).forEach(function(o){var a=o.getAttribute(Lt);if(n[a]){if(o[vr]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new sv(e)}var Un=d.createContext({hashPriority:"low",cache:cv(),defaultCache:!0});function uv(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var ls=(function(){function e(){tt(this,e),_(this,"cache",void 0),_(this,"keys",void 0),_(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return rt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var f=X(c,2),m=f[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=X(a,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var a;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!uv(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();_(ls,"MAX_CACHE_SIZE",20);_(ls,"MAX_CACHE_OFFSET",5);var ks=0,qc=(function(){function e(t){tt(this,e),_(this,"derivatives",void 0),_(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ks,t.length===0&&en(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ks+=1}return rt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),Na=new ls;function ui(e){var t=Array.isArray(e)?e:[e];return Na.has(t)||Na.set(t,new qc(t)),Na.get(t)}var dv=new WeakMap,Ta={};function fv(e,t){for(var r=dv,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Ta)||r.set(Ta,e()),r.get(Ta)}var qs=new WeakMap;function Rn(e){var t=qs.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof qc?t+=n.id:n&&de(n)==="object"?t+=Rn(n):t+=n}),t=jn(t),qs.set(e,t)),t}function Gs(e,t){return jn("".concat(t,"_").concat(Rn(e)))}var di=pt();function be(e){return typeof e=="number"?"".concat(e,"px"):e}function Bo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=A(A({},n),{},_(_({},rn,t),Lt,r)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Io=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},vv=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var a=X(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Gc=function(t,r,n){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=X(i,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])a[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var m,h=Io(u,n?.prefix);o[h]=typeof f=="number"&&!(n!=null&&(m=n.unitless)!==null&&m!==void 0&&m[u])?"".concat(f,"px"):String(f),a[u]="var(".concat(h,")")}}),[a,vv(o,r,{scope:n?.scope})]},Us=process.env.NODE_ENV!=="test"&&pt()?d.useLayoutEffect:d.useEffect,Ue=function(t,r){var n=d.useRef(!0);Us(function(){return t(n.current)},r),Us(function(){return n.current=!1,function(){n.current=!0}},[])},Xs=function(t,r){Ue(function(n){if(!n)return t()},r)},mv=A({},d),Ks=mv.useInsertionEffect,gv=function(t,r,n){d.useMemo(t,n),Ue(function(){return r(!0)},n)},pv=Ks?function(e,t,r){return Ks(function(){return e(),t()},r)}:gv,hv=A({},d),bv=hv.useInsertionEffect,yv=function(t){var r=[],n=!1;function o(a){if(n){process.env.NODE_ENV!=="production"&&en(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(a)}return d.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},Cv=function(){return function(t){t()}},Sv=typeof bv<"u"?yv:Cv;function xv(){return!1}var fi=!1;function wv(){return fi}const Ev=process.env.NODE_ENV==="production"?xv:wv;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(ho&&typeof ho.webpackHotUpdate=="function"){var $v=ho.webpackHotUpdate;ho.webpackHotUpdate=function(){return fi=!0,setTimeout(function(){fi=!1},0),$v.apply(void 0,arguments)}}}function cs(e,t,r,n,o){var a=d.useContext(Un),i=a.cache,s=[e].concat(re(t)),l=ci(s),c=Sv([l]),u=Ev(),f=function(p){i.opUpdate(l,function(v){var y=v||[void 0,void 0],b=X(y,2),C=b[0],x=C===void 0?0:C,S=b[1],w=S;process.env.NODE_ENV!=="production"&&S&&u&&(n?.(w,u),w=null);var E=w||r(),$=[x,E];return p?p($):$})};d.useMemo(function(){f()},[l]);var m=i.opGet(l);process.env.NODE_ENV!=="production"&&!m&&(f(),m=i.opGet(l));var h=m[1];return pv(function(){o?.(h)},function(g){return f(function(p){var v=X(p,2),y=v[0],b=v[1];return g&&y===0&&o?.(h),[y+1,b]}),function(){i.opUpdate(l,function(p){var v=p||[],y=X(v,2),b=y[0],C=b===void 0?0:b,x=y[1],S=C-1;return S===0?(c(function(){(g||!i.opGet(l))&&n?.(x,!1)}),null):[C-1,x]})}},[l]),h}var Ov={},Pv=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",$r=new Map;function Rv(e){$r.set(e,($r.get(e)||0)+1)}function _v(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(rn,'="').concat(e,'"]'));r.forEach(function(n){if(n[vr]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var Nv=0;function Tv(e,t){$r.set(e,($r.get(e)||0)-1);var r=new Set;$r.forEach(function(n,o){n<=0&&r.add(o)}),$r.size-r.size>Nv&&r.forEach(function(n){_v(n,t),$r.delete(n)})}var Iv=function(t,r,n,o){var a=n.getDerivativeToken(t),i=A(A({},a),r);return o&&(i=o(i)),i},Uc="token";function Fv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(Un),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?Ov:l,u=r.formatToken,f=r.getComputedToken,m=r.cssVar,h=fv(function(){return Object.assign.apply(Object,[{}].concat(re(t)))},t),g=Rn(h),p=Rn(c),v=m?Rn(m):"",y=cs(Uc,[s,e.id,g,p,v],function(){var b,C=f?f(h,c,e):Iv(h,c,e,u),x=A({},C),S="";if(m){var w=Gc(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=X(w,2);C=E[0],S=E[1]}var $=Gs(C,s);C._tokenKey=$,x._tokenKey=Gs(x,s);var O=(b=m?.key)!==null&&b!==void 0?b:$;C._themeKey=O,Rv(O);var R="".concat(Pv,"-").concat(jn($));return C._hashId=R,[C,R,x,S,m?.key||""]},function(b){Tv(b[0]._themeKey,o)},function(b){var C=X(b,4),x=C[0],S=C[3];if(m&&S){var w=tr(S,jn("css-variables-".concat(x._themeKey)),{mark:Lt,prepend:"queue",attachTo:a,priority:-999});w[vr]=o,w.setAttribute(rn,x._themeKey)}});return y}var Mv=function(t,r,n){var o=X(t,5),a=o[2],i=o[3],s=o[4],l=n||{},c=l.plain;if(!i)return null;var u=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Bo(i,s,u,m,c);return[f,u,h]},Av={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xc="comm",Kc="rule",Yc="decl",jv="@import",Vv="@namespace",Dv="@keyframes",Lv="@layer",Qc=Math.abs,us=String.fromCharCode;function Zc(e){return e.trim()}function Fo(e,t,r){return e.replace(t,r)}function zv(e,t,r){return e.indexOf(t,r)}function Qr(e,t){return e.charCodeAt(t)|0}function nn(e,t,r){return e.slice(t,r)}function Gt(e){return e.length}function Hv(e){return e.length}function bo(e,t){return t.push(e),e}var Jo=1,on=1,Jc=0,Tt=0,Ye=0,cn="";function ds(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Jo,column:on,length:i,return:"",siblings:s}}function Bv(){return Ye}function Wv(){return Ye=Tt>0?Qr(cn,--Tt):0,on--,Ye===10&&(on=1,Jo--),Ye}function zt(){return Ye=Tt<Jc?Qr(cn,Tt++):0,on++,Ye===10&&(on=1,Jo++),Ye}function mr(){return Qr(cn,Tt)}function Mo(){return Tt}function ea(e,t){return nn(cn,e,t)}function Dn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kv(e){return Jo=on=1,Jc=Gt(cn=e),Tt=0,[]}function qv(e){return cn="",e}function Ia(e){return Zc(ea(Tt-1,vi(e===91?e+2:e===40?e+1:e)))}function Gv(e){for(;(Ye=mr())&&Ye<33;)zt();return Dn(e)>2||Dn(Ye)>3?"":" "}function Uv(e,t){for(;--t&&zt()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return ea(e,Mo()+(t<6&&mr()==32&&zt()==32))}function vi(e){for(;zt();)switch(Ye){case e:return Tt;case 34:case 39:e!==34&&e!==39&&vi(Ye);break;case 40:e===41&&vi(e);break;case 92:zt();break}return Tt}function Xv(e,t){for(;zt()&&e+Ye!==57;)if(e+Ye===84&&mr()===47)break;return"/*"+ea(t,Tt-1)+"*"+us(e===47?e:zt())}function Kv(e){for(;!Dn(mr());)zt();return ea(e,Tt)}function Yv(e){return qv(Ao("",null,null,null,[""],e=kv(e),0,[0],e))}function Ao(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,f=i,m=0,h=0,g=0,p=1,v=1,y=1,b=0,C="",x=o,S=a,w=n,E=C;v;)switch(g=b,b=zt()){case 40:if(g!=108&&Qr(E,f-1)==58){zv(E+=Fo(Ia(b),"&","&\f"),"&\f",Qc(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=Ia(b);break;case 9:case 10:case 13:case 32:E+=Gv(g);break;case 92:E+=Uv(Mo()-1,7);continue;case 47:switch(mr()){case 42:case 47:bo(Qv(Xv(zt(),Mo()),t,r,l),l),(Dn(g||1)==5||Dn(mr()||1)==5)&&Gt(E)&&nn(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*p:s[c++]=Gt(E)*y;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(E=Fo(E,/\f/g,"")),h>0&&(Gt(E)-f||p===0&&g===47)&&bo(h>32?Qs(E+";",n,r,f-1,l):Qs(Fo(E," ","")+";",n,r,f-2,l),l);break;case 59:E+=";";default:if(bo(w=Ys(E,t,r,c,u,o,s,C,x=[],S=[],f,a),a),b===123)if(u===0)Ao(E,t,w,w,x,a,f,s,S);else{switch(m){case 99:if(Qr(E,3)===110)break;case 108:if(Qr(E,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ao(e,w,w,n&&bo(Ys(e,w,w,0,0,o,s,C,o,x=[],f,S),S),o,S,f,s,n?x:S):Ao(E,w,w,w,[""],S,0,s,S)}}c=u=h=0,p=y=1,C=E="",f=i;break;case 58:f=1+Gt(E),h=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Wv()==125)continue}switch(E+=us(b),b*p){case 38:y=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Gt(E)-1)*y,y=1;break;case 64:mr()===45&&(E+=Ia(zt())),m=mr(),u=f=Gt(C=E+=Kv(Mo())),b++;break;case 45:g===45&&Gt(E)==2&&(p=0)}}return a}function Ys(e,t,r,n,o,a,i,s,l,c,u,f){for(var m=o-1,h=o===0?a:[""],g=Hv(h),p=0,v=0,y=0;p<n;++p)for(var b=0,C=nn(e,m+1,m=Qc(v=i[p])),x=e;b<g;++b)(x=Zc(v>0?h[b]+" "+C:Fo(C,/&\f/g,h[b])))&&(l[y++]=x);return ds(e,t,r,o===0?Kc:s,l,c,u,f)}function Qv(e,t,r,n){return ds(e,t,r,Xc,us(Bv()),nn(e,2,-2),0,n)}function Qs(e,t,r,n,o){return ds(e,t,r,Yc,nn(e,0,n),nn(e,n+1,-1),n,o)}function mi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Zv(e,t,r,n){switch(e.type){case Lv:if(e.children.length)break;case jv:case Vv:case Yc:return e.return=e.return||e.value;case Xc:return"";case Dv:return e.return=e.value+"{"+mi(e.children,n)+"}";case Kc:if(!Gt(e.value=e.props.join(",")))return""}return Gt(r=mi(e.children,n))?e.return=e.value+"{"+r+"}":""}function eu(e,t){var r=t.path,n=t.parentSelectors;Le(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Jv=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&eu("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},em=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&eu("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Zs="data-ant-cssinjs-cache-path",tu="_FILE_STYLE__",Rr,ru=!0;function tm(){if(!Rr&&(Rr={},pt())){var e=document.createElement("div");e.className=Zs,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=X(a,2),s=i[0],l=i[1];Rr[s]=l});var r=document.querySelector("style[".concat(Zs,"]"));if(r){var n;ru=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function rm(e){return tm(),!!Rr[e]}function nm(e){var t=Rr[e],r=null;if(t&&pt())if(ru)r=tu;else{var n=document.querySelector("style[".concat(Lt,'="').concat(Rr[e],'"]'));n?r=n.innerHTML:delete Rr[e]}return[r,t]}var nu="_skip_check_",ou="_multi_value_";function jo(e){var t=mi(Yv(e),Zv);return t.replace(/\{%%%\:[^;];}/g,";")}function om(e){return de(e)==="object"&&e&&(nu in e||ou in e)}function Js(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(re(l.slice(1))).join(" ")});return a.join(",")}var am=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,m=f===void 0?[]:f,h=r.linters,g=h===void 0?[]:h,p="",v={};function y(x){var S=x.getName(s);if(!v[S]){var w=e(x.style,r,{root:!1,parentSelectors:i}),E=X(w,1),$=E[0];v[S]="@keyframes ".concat(x.getName(s)).concat($)}}function b(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(w){Array.isArray(w)?b(w,S):w&&S.push(w)}),S}var C=b(Array.isArray(t)?t:[t]);return C.forEach(function(x){var S=typeof x=="string"&&!o?{}:x;if(typeof S=="string")p+="".concat(S,`
4
- `);else if(S._keyframe)y(S);else{var w=m.reduce(function(E,$){var O;return($==null||(O=$.visit)===null||O===void 0?void 0:O.call($,E))||E},S);Object.keys(w).forEach(function(E){var $=w[E];if(de($)==="object"&&$&&(E!=="animationName"||!$._keyframe)&&!om($)){var O=!1,R=E.trim(),N=!1;(o||a)&&s?R.startsWith("@")?O=!0:R==="&"?R=Js("",s,u):R=Js(E,s,u):o&&!s&&(R==="&"||R==="")&&(R="",N=!0);var I=e($,r,{root:N,injectHash:O,parentSelectors:[].concat(re(i),[R])}),F=X(I,2),T=F[0],V=F[1];v=A(A({},v),V),p+="".concat(R).concat(T)}else{let D=function(z,U){process.env.NODE_ENV!=="production"&&(de($)!=="object"||!($!=null&&$[nu]))&&[Jv,em].concat(re(g)).forEach(function(H){return H(z,U,{path:c,hashId:s,parentSelectors:i})});var K=z.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),k=U;!Av[z]&&typeof k=="number"&&k!==0&&(k="".concat(k,"px")),z==="animationName"&&U!==null&&U!==void 0&&U._keyframe&&(y(U),k=U.getName(s)),p+="".concat(K,":").concat(k,";")};var j,M=(j=$?.value)!==null&&j!==void 0?j:$;de($)==="object"&&$!==null&&$!==void 0&&$[ou]&&Array.isArray(M)?M.forEach(function(z){D(E,z)}):D(E,M)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(l.name,";")}).join(`
5
- `))):p="{".concat(p,"}"),[p,v]};function au(e,t){return jn("".concat(e.join("%")).concat(t))}function im(){return null}var iu="style";function gi(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Un),f=u.autoClear,m=u.mock,h=u.defaultCache,g=u.hashPriority,p=u.container,v=u.ssrInline,y=u.transformers,b=u.linters,C=u.cache,x=u.layer,S=r._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,re(n));var E=di;process.env.NODE_ENV!=="production"&&m!==void 0&&(E=m==="client");var $=cs(iu,w,function(){var F=w.join("|");if(rm(F)){var T=nm(F),V=X(T,2),j=V[0],M=V[1];if(j)return[j,S,M,{},s,c]}var D=t(),z=am(D,{hashId:o,hashPriority:g,layer:x?a:void 0,path:n.join("-"),transformers:y,linters:b}),U=X(z,2),K=U[0],k=U[1],H=jo(K),L=au(w,H);return[H,S,L,k,s,c]},function(F,T){var V=X(F,3),j=V[2];(T||f)&&di&&Vn(j,{mark:Lt,attachTo:p})},function(F){var T=X(F,4),V=T[0];T[1];var j=T[2],M=T[3];if(E&&V!==tu){var D={mark:Lt,prepend:x?!1:"queue",attachTo:p,priority:c},z=typeof i=="function"?i():i;z&&(D.csp={nonce:z});var U=[],K=[];Object.keys(M).forEach(function(H){H.startsWith("@layer")?U.push(H):K.push(H)}),U.forEach(function(H){tr(jo(M[H]),"_layer-".concat(H),A(A({},D),{},{prepend:!0}))});var k=tr(V,j,D);k[vr]=C.instanceId,k.setAttribute(rn,S),process.env.NODE_ENV!=="production"&&k.setAttribute(lv,w.join("|")),K.forEach(function(H){tr(jo(M[H]),"_effect-".concat(H),D)})}}),O=X($,3),R=O[0],N=O[1],I=O[2];return function(F){var T;return!v||E||!h?T=d.createElement(im,null):T=d.createElement("style",Fe({},_(_({},rn,N),Lt,I),{dangerouslySetInnerHTML:{__html:R}})),d.createElement(d.Fragment,null,T,F)}}var sm=function(t,r,n){var o=X(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},m=f.plain;if(c)return null;var h=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Bo(a,i,s,g,m),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var v=jo(l[p]),y=Bo(v,i,"_effect-".concat(p),g,m);p.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},su="cssVar",lm=function(t,r){var n=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=P.useContext(Un),f=u.cache.instanceId,m=u.container,h=s._tokenKey,g=[].concat(re(t.path),[n,c,h]),p=cs(su,g,function(){var v=r(),y=Gc(v,n,{prefix:o,unitless:a,ignore:i,scope:c}),b=X(y,2),C=b[0],x=b[1],S=au(g,x);return[C,x,S,n]},function(v){var y=X(v,3),b=y[2];di&&Vn(b,{mark:Lt,attachTo:m})},function(v){var y=X(v,3),b=y[1],C=y[2];if(b){var x=tr(b,C,{mark:Lt,prepend:"queue",attachTo:m,priority:-999});x[vr]=f,x.setAttribute(rn,n)}});return p},cm=function(t,r,n){var o=X(t,4),a=o[1],i=o[2],s=o[3],l=n||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=Bo(a,s,i,f,c);return[u,i,m]};_(_(_({},iu,sm),Uc,Mv),su,cm);var It=(function(){function e(t,r){tt(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return rt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Hr(e){return e.notSplit=!0,e}Hr(["borderTop","borderBottom"]),Hr(["borderTop"]),Hr(["borderBottom"]),Hr(["borderLeft","borderRight"]),Hr(["borderLeft"]),Hr(["borderRight"]);var fs=P.createContext({});function um(e){return zc(e)||jc(e)||is(e)||Hc()}function _t(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function lu(e,t,r,n){if(!t.length)return r;var o=um(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=re(e):s=A({},e),n&&r===void 0&&i.length===1?delete s[a][i[0]]:s[a]=lu(s[a],i,r,n),s}function Rt(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!_t(e,t.slice(0,-1))?e:lu(e,t,r,n)}function dm(e){return de(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function el(e){return Array.isArray(e)?[]:{}}var fm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=el(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=_t(o,i),u=Array.isArray(c);if(u||dm(c)){if(!l.has(c)){l.add(c);var f=_t(n,i);u?n=Rt(n,i,[]):(!f||de(f)!=="object")&&(n=Rt(n,i,el(c))),fm(c).forEach(function(m){a([].concat(re(i),[m]),l)})}}else n=Rt(n,i,c)}a([])}),n}function cu(){}let Zt=null;function vm(){Zt=null,wc()}let uu=cu;process.env.NODE_ENV!=="production"&&(uu=(e,t,r)=>{Le(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&vm()});const Fr=uu,du=d.createContext({}),lt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=d.useContext(du),r=(n,o,a)=>{if(!n)if(t===!1&&o==="deprecated"){const i=Zt;Zt||(Zt={}),Zt[e]=Zt[e]||[],Zt[e].includes(a||"")||Zt[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Zt)}else process.env.NODE_ENV!=="production"&&Fr(n,e,a)};return r.deprecated=(n,o,a,i)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=cu,e},fu=P.createContext(void 0);var mm={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},gm={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},pm=A(A({},gm),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const vu={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},tl={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},pm),timePickerLocale:Object.assign({},vu)},ht="${label} is not a valid ${type}",_r={locale:"en",Pagination:mm,DatePicker:tl,TimePicker:vu,Calendar:tl,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ht,method:ht,array:ht,object:ht,number:ht,date:ht,boolean:ht,integer:ht,float:ht,regexp:ht,email:ht,url:ht,hex:ht},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},_r.Modal);let Vo=[];const rl=()=>Vo.reduce((e,t)=>Object.assign(Object.assign({},e),t),_r.Modal);function hm(e){if(e){const t=Object.assign({},e);return Vo.push(t),rl(),()=>{Vo=Vo.filter(r=>r!==t),rl()}}Object.assign({},_r.Modal)}const vs=P.createContext(void 0),bm=(e,t)=>{const r=d.useContext(vs),n=d.useMemo(()=>{var a;const i=_r[e],s=(a=r?.[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),o=d.useMemo(()=>{const a=r?.locale;return r?.exist&&!a?_r.locale:a},[r]);return[n,o]},mu="internalMark",gu=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const a=lt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(n===mu,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}d.useEffect(()=>hm(t?.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(vs.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(gu.displayName="LocaleProvider");const pu={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ln=Object.assign(Object.assign({},pu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
6
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
7
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),et=Math.round;function Fa(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const nl=(e,t,r)=>r===0?e:e/100;function wn(e,t){const r=t||255;return e>r?r:e<0?0:e}class ze{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof ze)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=wn(t.r),this.g=wn(t.g),this.b=wn(t.b),this.a=typeof t.a=="number"?wn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=et(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,a=s=>(n[s]-this[s])*o+this[s],i={r:et(a("r")),g:et(a("g")),b:et(a("b")),a:et(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=a=>et((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=et(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=et(this.getSaturation()*100),n=et(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=wn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const m=et(n*255);this.r=m,this.g=m,this.b=m}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const f=n-c/2;this.r=et((a+f)*255),this.g=et((i+f)*255),this.b=et((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const a=et(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=et(n*(1-r)*255),u=et(n*(1-r*l)*255),f=et(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=Fa(t,nl);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Fa(t,nl);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Fa(t,(n,o)=>o.includes("%")?et(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var yo=2,ol=.16,ym=.05,Cm=.05,Sm=.15,hu=5,bu=4,xm=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function al(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-yo*t:Math.round(e.h)+yo*t:n=r?Math.round(e.h)+yo*t:Math.round(e.h)-yo*t,n<0?n+=360:n>=360&&(n-=360),n}function il(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-ol*t:t===bu?n=e.s+ol:n=e.s+ym*t,n>1&&(n=1),r&&t===hu&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function sl(e,t,r){var n;return r?n=e.v+Cm*t:n=e.v-Sm*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function zn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new ze(e),o=n.toHsv(),a=hu;a>0;a-=1){var i=new ze({h:al(o,a,!0),s:il(o,a,!0),v:sl(o,a,!0)});r.push(i)}r.push(n);for(var s=1;s<=bu;s+=1){var l=new ze({h:al(o,s),s:il(o,s),v:sl(o,s)});r.push(l)}return t.theme==="dark"?xm.map(function(c){var u=c.index,f=c.amount;return new ze(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ma={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pi.primary=pi[5];var hi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hi.primary=hi[5];var bi=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];bi.primary=bi[5];var yi=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yi.primary=yi[5];var Ci=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ci.primary=Ci[5];var Si=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Si.primary=Si[5];var xi=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xi.primary=xi[5];var wi=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wi.primary=wi[5];var Wo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wo.primary=Wo[5];var Ei=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ei.primary=Ei[5];var $i=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$i.primary=$i[5];var Oi=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Oi.primary=Oi[5];var Pi=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Pi.primary=Pi[5];var Aa={red:pi,volcano:hi,orange:bi,gold:yi,yellow:Ci,lime:Si,green:xi,cyan:wi,blue:Wo,geekblue:Ei,purple:$i,magenta:Oi,grey:Pi};function wm(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),m=t(o),h=t(a),g=t(i),p=r(l,c),v=e.colorLink||e.colorInfo,y=t(v),b=new ze(h[1]).mix(new ze(h[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new ze("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Em=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function $m(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},Em(n))}const Om=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Do(e){return(e+8)/e}function Pm(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,a=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:Do(r)}))}const Rm=e=>{const t=Pm(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function _m(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const $t=(e,t)=>new ze(e).setA(t).toRgbString(),En=(e,t)=>new ze(e).darken(t).toHexString(),Nm=e=>{const t=zn(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Tm=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:$t(n,.88),colorTextSecondary:$t(n,.65),colorTextTertiary:$t(n,.45),colorTextQuaternary:$t(n,.25),colorFill:$t(n,.15),colorFillSecondary:$t(n,.06),colorFillTertiary:$t(n,.04),colorFillQuaternary:$t(n,.02),colorBgSolid:$t(n,1),colorBgSolidHover:$t(n,.75),colorBgSolidActive:$t(n,.95),colorBgLayout:En(r,4),colorBgContainer:En(r,0),colorBgElevated:En(r,0),colorBgSpotlight:$t(n,.85),colorBgBlur:"transparent",colorBorder:En(r,15),colorBorderSecondary:En(r,6)}};function Im(e){Ma.pink=Ma.magenta,Aa.pink=Aa.magenta;const t=Object.keys(pu).map(r=>{const n=e[r]===Ma[r]?Aa[r]:zn(e[r]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wm(e,{generateColorPalettes:Nm,generateNeutralColorPalettes:Tm})),Rm(e.fontSize)),_m(e)),Om(e)),$m(e))}const yu=ui(Im),Ri={token:Ln,override:{override:Ln},hashed:!0},Cu=P.createContext(Ri),Hn="ant",ms="anticon",Fm=["outlined","borderless","filled","underlined"],Mm=(e,t)=>t||(e?`${Hn}-${e}`:Hn),We=d.createContext({getPrefixCls:Mm,iconPrefixCls:ms}),{Consumer:qC}=We,ll={};function Xn(e){const t=d.useContext(We),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:ll,styles:ll},a),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Am=`-ant-${Date.now()}-${Math.random()}`;function jm(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=s?.(l)||l,l.toRgbString()},o=(i,s)=>{const l=new ze(i),c=zn(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new ze(t.primaryColor),s=zn(i.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setA(c.a*.12));const l=new ze(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
8
- :root {
9
- ${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
10
- `)}
11
- }
12
- `.trim()}function Vm(e,t){const r=jm(e,t);pt()?tr(r,`${Am}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Fr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const pr=d.createContext(!1),Su=({children:e,disabled:t})=>{const r=d.useContext(pr);return d.createElement(pr.Provider,{value:t??r},e)},Nr=d.createContext(void 0),Dm=({children:e,size:t})=>{const r=d.useContext(Nr);return d.createElement(Nr.Provider,{value:t||r},e)};function Lm(){const e=P.useContext(pr),t=P.useContext(Nr);return{componentDisabled:e,componentSize:t}}var xu=rt(function e(){tt(this,e)}),wu="CALC_UNIT",zm=new RegExp(wu,"g");function ja(e){return typeof e=="number"?"".concat(e).concat(wu):e}var Hm=(function(e){br(r,e);var t=yr(r);function r(n,o){var a;tt(this,r),a=t.call(this),_(he(a),"result",""),_(he(a),"unitlessCssVar",void 0),_(he(a),"lowPriority",void 0);var i=de(n);return a.unitlessCssVar=o,n instanceof r?a.result="(".concat(n.result,")"):i==="number"?a.result=ja(n):i==="string"&&(a.result=n),a}return rt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(ja(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(ja(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(zm,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(xu),Bm=(function(e){br(r,e);var t=yr(r);function r(n){var o;return tt(this,r),o=t.call(this),_(he(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return rt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(xu),Wm=function(t,r){var n=t==="css"?Hm:Bm;return function(o){return new n(o,r)}},cl=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function st(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function an(e){var t=d.useRef(!1),r=d.useState(e),n=X(r,2),o=n[0],a=n[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function Va(e){return e!==void 0}function Kn(e,t){var r=t||{},n=r.defaultValue,o=r.value,a=r.onChange,i=r.postState,s=an(function(){return Va(o)?o:Va(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=X(s,2),c=l[0],u=l[1],f=o!==void 0?o:c,m=i?i(f):f,h=st(a),g=an([f]),p=X(g,2),v=p[0],y=p[1];Xs(function(){var C=v[0];c!==C&&h(c,C)},[v]),Xs(function(){Va(o)||u(o)},[o]);var b=st(function(C,x){u(C,x),y([f],x)});return[m,b]}function ul(e,t,r,n){var o=A({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(s){var l=X(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&Le(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o?.[c])}})}var i=A(A({},r),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Eu=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",_i=!0;function vt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Eu)return Object.assign.apply(Object,[{}].concat(t));_i=!1;var n={};return t.forEach(function(o){if(de(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),_i=!0,n}var dl={};function km(){}var qm=function(t){var r,n=t,o=km;return Eu&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(_i){var l;(l=r)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;dl[i]={global:Array.from(r),component:A(A({},(l=dl[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function fl(e,t,r){if(typeof r=="function"){var n;return r(vt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Gm(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(a){return be(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(a){return be(a)}).join(","),")")}}}var Um=1e3*60*10,Xm=(function(){function e(){tt(this,e),_(this,"map",new Map),_(this,"objectIDMap",new WeakMap),_(this,"nextID",0),_(this,"lastAccessBeat",new Map),_(this,"accessBeat",0)}return rt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(a){return a&&de(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(de(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,a){n-o>Um&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),vl=new Xm;function Km(e,t){return P.useMemo(function(){var r=vl.get(t);if(r)return r;var n=e();return vl.set(t,n),n},t)}var Ym=function(){return{}};function Qm(e){var t=e.useCSP,r=t===void 0?Ym:t,n=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(m,h,g,p){var v=Array.isArray(m)?m[0]:m;function y($){return"".concat(String(v)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var b=p?.unitless||{},C=typeof s=="function"?s(m):{},x=A(A({},C),{},_({},y("zIndexPopup"),!0));Object.keys(b).forEach(function($){x[y($)]=b[$]});var S=A(A({},p),{},{unitless:x,prefixToken:y}),w=u(m,h,g,S),E=c(v,g,S);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,R=w($,O),N=X(R,2),I=N[1],F=E(O),T=X(F,2),V=T[0],j=T[1];return[V,I,j]}}function c(m,h,g){var p=g.unitless,v=g.injectStyle,y=v===void 0?!0:v,b=g.prefixToken,C=g.ignore,x=function(E){var $=E.rootCls,O=E.cssVar,R=O===void 0?{}:O,N=n(),I=N.realToken;return lm({path:[m],prefix:R.prefix,key:R.key,unitless:p,ignore:C,token:I,scope:$},function(){var F=fl(m,I,h),T=ul(m,I,F,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(F).forEach(function(V){T[b(V)]=T[V],delete T[V]}),T}),null},S=function(E){var $=n(),O=$.cssVar;return[function(R){return y&&O?P.createElement(P.Fragment,null,P.createElement(x,{rootCls:E,cssVar:O,component:m}),R):R},O?.key]};return S}function u(m,h,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(m)?m:[m,m],y=X(v,1),b=y[0],C=v.join("-"),x=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,E=n(),$=E.theme,O=E.realToken,R=E.hashId,N=E.token,I=E.cssVar,F=o(),T=F.rootPrefixCls,V=F.iconPrefixCls,j=r(),M=I?"css":"js",D=Km(function(){var L=new Set;return I&&Object.keys(p.unitless||{}).forEach(function(q){L.add(Io(q,I.prefix)),L.add(Io(q,cl(b,I.prefix)))}),Wm(M,L)},[M,b,I?.prefix]),z=Gm(M),U=z.max,K=z.min,k={theme:$,token:N,hashId:R,nonce:function(){return j.nonce},clientOnly:p.clientOnly,layer:x,order:p.order||-999};typeof a=="function"&&gi(A(A({},k),{},{clientOnly:!1,path:["Shared",T]}),function(){return a(N,{prefix:{rootPrefixCls:T,iconPrefixCls:V},csp:j})});var H=gi(A(A({},k),{},{path:[C,S,V]}),function(){if(p.injectStyle===!1)return[];var L=qm(N),q=L.token,B=L.flush,oe=fl(b,O,g),G=".".concat(S),Q=ul(b,O,oe,{deprecatedTokens:p.deprecatedTokens});I&&oe&&de(oe)==="object"&&Object.keys(oe).forEach(function(le){oe[le]="var(".concat(Io(le,cl(b,I.prefix)),")")});var ee=vt(q,{componentCls:G,prefixCls:S,iconCls:".".concat(V),antCls:".".concat(T),calc:D,max:U,min:K},I?oe:Q),te=h(ee,{hashId:R,prefixCls:S,rootPrefixCls:T,iconPrefixCls:V});B(b,Q);var se=typeof i=="function"?i(ee,S,w,p.resetFont):null;return[p.resetStyle===!1?null:se,te]});return[H,R]}}function f(m,h,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(m,h,g,A({resetStyle:!1,order:-998},p)),y=function(C){var x=C.prefixCls,S=C.rootCls,w=S===void 0?x:S;return v(x,w),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(m)?m.join("."):m))),y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Tr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Zm="5.29.1";function Da(e){return e>=0&&e<=255}function On(e,t){const{r,g:n,b:o,a}=new ze(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new ze(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Da(u)&&Da(f)&&Da(m))return new ze({r:u,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new ze({r,g:n,b:o,a:1}).toRgbString()}var Jm=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function $u(e){const{override:t}=e,r=Jm(e,["override"]),n=Object.assign({},t);Object.keys(Ln).forEach(m=>{delete n[m]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:On(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:On(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:On(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:On(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
13
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
14
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
15
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
16
- `,boxShadowSecondary:`
17
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
18
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
19
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
20
- `,boxShadowTertiary:`
21
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
22
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
23
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
24
- `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
25
- 0 1px 2px -2px ${new ze("rgba(0, 0, 0, 0.16)").toRgbString()},
26
- 0 3px 6px 0 ${new ze("rgba(0, 0, 0, 0.12)").toRgbString()},
27
- 0 5px 12px 4px ${new ze("rgba(0, 0, 0, 0.09)").toRgbString()}
28
- `,boxShadowDrawerRight:`
29
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
30
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
31
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
32
- `,boxShadowDrawerLeft:`
33
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
34
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
35
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
36
- `,boxShadowDrawerUp:`
37
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
38
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
39
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
40
- `,boxShadowDrawerDown:`
41
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
42
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
43
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
44
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var ml=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ou={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},eg={motionBase:!0,motionUnit:!0},tg={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pu=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=ml(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=$u(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=ml(l,["theme"]);let f=u;c&&(f=Pu(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=f}),i};function or(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=P.useContext(Cu),a=`${Zm}-${t||""}`,i=r||yu,[s,l,c]=Fv(i,[Ln,e],{salt:a,override:n,getComputedToken:Pu,formatToken:$u,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Ou,ignore:eg,preserve:tg}});return[i,c,t?l:"",s,o]}const Yn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ru=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),ng=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),og=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},ag=(e,t)=>({outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ig=(e,t)=>({"&:focus-visible":ag(e)}),_u=e=>({[`.${e}`]:Object.assign(Object.assign({},Ru()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:ar,genComponentStyleHook:sg,genSubStyleComponent:Nu}=Qm({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(We);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=or();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=P.useContext(We);return e??{}},getResetStyles:(e,t)=>{var r;const n=ng(e);return[n,{"&":n},_u((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:ms)]},getCommonStyle:og,getCompUnitless:()=>Ou});function lg(e,t){return Tr.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const cg=(e,t)=>{const[r,n]=or();return gi({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>_u(e))},ug=Object.assign({},d),{useId:gl}=ug,dg=()=>"",fg=typeof gl>"u"?dg:gl;function vg(e,t,r){var n,o;const a=lt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},Ri),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Ri.hashed,cssVar:t?.cssVar}):t,l=fg();if(process.env.NODE_ENV!=="production"){const c=i.cssVar||s.cssVar,u=!!(typeof i.cssVar=="object"&&(!((o=i.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&a(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ns(()=>{var c,u;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(g=>{f[g]=Object.assign(Object.assign({},f[g]),e.components[g])});const m=`css-var-${l.replace(/:/g,"")}`,h=((c=i.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((u=i.cssVar)===null||u===void 0?void 0:u.key)||m});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:h})},[i,s],(c,u)=>c.some((f,m)=>{const h=u[m];return!li(f,h,!0)}))}var mg=["children"],Tu=d.createContext({});function gg(e){var t=e.children,r=dt(e,mg);return d.createElement(Tu.Provider,{value:r},t)}var pg=(function(e){br(r,e);var t=yr(r);function r(){return tt(this,r),t.apply(this,arguments)}return rt(r,[{key:"render",value:function(){return this.props.children}}]),r})(d.Component);function hg(e){var t=d.useReducer(function(s){return s+1},0),r=X(t,2),n=r[1],o=d.useRef(e),a=st(function(){return o.current}),i=st(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var fr="none",Co="appear",So="enter",xo="leave",pl="none",Dt="prepare",Kr="start",Yr="active",gs="end",Iu="prepared";function hl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function bg(e,t){var r={animationend:hl("Animation","AnimationEnd"),transitionend:hl("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var yg=bg(pt(),typeof window<"u"?window:{}),Fu={};if(pt()){var Cg=document.createElement("div");Fu=Cg.style}var wo={};function Mu(e){if(wo[e])return wo[e];var t=yg[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Fu)return wo[e]=t[a],wo[e]}return""}var Au=Mu("animationend"),ju=Mu("transitionend"),Vu=!!(Au&&ju),bl=Au||"animationend",yl=ju||"transitionend";function Cl(e,t){if(!e)return null;if(de(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Sg=(function(e){var t=P.useRef();function r(o){o&&(o.removeEventListener(yl,e),o.removeEventListener(bl,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(yl,e),o.addEventListener(bl,e),t.current=o)}return d.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Du=pt()?P.useLayoutEffect:P.useEffect;const xg=(function(){var e=d.useRef(null);function t(){St.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=St(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[r,t]});var wg=[Dt,Kr,Yr,gs],Eg=[Dt,Iu],Lu=!1,$g=!0;function zu(e){return e===Yr||e===gs}const Og=(function(e,t,r){var n=an(pl),o=X(n,2),a=o[0],i=o[1],s=xg(),l=X(s,2),c=l[0],u=l[1];function f(){i(Dt,!0)}var m=t?Eg:wg;return Du(function(){if(a!==pl&&a!==gs){var h=m.indexOf(a),g=m[h+1],p=r(a);p===Lu?i(g,!0):g&&c(function(v){function y(){v.isCanceled()||i(g,!0)}p===!0?y():Promise.resolve(p).then(y)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]});function Pg(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,m=n.onAppearPrepare,h=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,v=n.onEnterStart,y=n.onLeaveStart,b=n.onAppearActive,C=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,E=n.onLeaveEnd,$=n.onVisibleChanged,O=an(),R=X(O,2),N=R[0],I=R[1],F=hg(fr),T=X(F,2),V=T[0],j=T[1],M=an(null),D=X(M,2),z=D[0],U=D[1],K=V(),k=P.useRef(!1),H=P.useRef(null);function L(){return r()}var q=P.useRef(!1);function B(){j(fr),U(null,!0)}var oe=st(function(me){var ye=V();if(ye!==fr){var ue=L();if(!(me&&!me.deadline&&me.target!==ue)){var Z=q.current,pe;ye===Co&&Z?pe=S?.(ue,me):ye===So&&Z?pe=w?.(ue,me):ye===xo&&Z&&(pe=E?.(ue,me)),Z&&pe!==!1&&B()}}}),G=Sg(oe),Q=X(G,1),ee=Q[0],te=function(ye){switch(ye){case Co:return _(_(_({},Dt,m),Kr,p),Yr,b);case So:return _(_(_({},Dt,h),Kr,v),Yr,C);case xo:return _(_(_({},Dt,g),Kr,y),Yr,x);default:return{}}},se=d.useMemo(function(){return te(K)},[K]),le=Og(K,!e,function(me){if(me===Dt){var ye=se[Dt];return ye?ye(L()):Lu}if(Y in se){var ue;U(((ue=se[Y])===null||ue===void 0?void 0:ue.call(se,L(),null))||null)}return Y===Yr&&K!==fr&&(ee(L()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){oe({deadline:!0})},u))),Y===Iu&&B(),$g}),W=X(le,2),ce=W[0],Y=W[1],ie=zu(Y);q.current=ie;var ge=P.useRef(null);Du(function(){if(!(k.current&&ge.current===t)){I(t);var me=k.current;k.current=!0;var ye;!me&&t&&s&&(ye=Co),me&&t&&a&&(ye=So),(me&&!t&&c||!me&&f&&!t&&c)&&(ye=xo);var ue=te(ye);ye&&(e||ue[Dt])?(j(ye),ce()):j(fr),ge.current=t}},[t]),P.useEffect(function(){(K===Co&&!s||K===So&&!a||K===xo&&!c)&&j(fr)},[s,a,c]),P.useEffect(function(){return function(){k.current=!1,clearTimeout(H.current)}},[]);var ae=d.useRef(!1);P.useEffect(function(){N&&(ae.current=!0),N!==void 0&&K===fr&&((ae.current||N)&&$?.(N),ae.current=!0)},[N,K]);var Ce=z;return se[Dt]&&Y===Kr&&(Ce=A({transition:"none"},Ce)),[K,Y,Ce,N??t]}function Rg(e){var t=e;de(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=d.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,p=d.useContext(Tu),v=p.motion,y=r(o,v),b=P.useRef(),C=P.useRef();function x(){try{return b.current instanceof HTMLElement?b.current:To(C.current)}catch{return null}}var S=Pg(y,s,x,o),w=X(S,4),E=w[0],$=w[1],O=w[2],R=w[3],N=d.useRef(R);R&&(N.current=!0);var I=d.useCallback(function(D){b.current=D,os(a,D)},[a]),F,T=A(A({},g),{},{visible:s});if(!f)F=null;else if(E===fr)R?F=f(A({},T),I):!c&&N.current&&h?F=f(A(A({},T),{},{className:h}),I):u||!c&&!h?F=f(A(A({},T),{},{style:{display:"none"}}),I):F=null;else{var V;$===Dt?V="prepare":zu($)?V="active":$===Kr&&(V="start");var j=Cl(m,"".concat(E,"-").concat(V));F=f(A(A({},T),{},{className:J(Cl(m,E),_(_({},j,j&&V),m,typeof m=="string")),style:O}),I)}if(d.isValidElement(F)&&ln(F)){var M=qn(F);M||(F=d.cloneElement(F,{ref:I}))}return d.createElement(pg,{ref:C},F)});return n.displayName="CSSMotion",n}const un=Rg(Vu);var Ni="add",Ti="keep",Ii="remove",La="removed";function _g(e){var t;return e&&de(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function Fi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_g)}function Ng(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=Fi(e),i=Fi(t);a.forEach(function(c){for(var u=!1,f=n;f<o;f+=1){var m=i[f];if(m.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(h){return A(A({},h),{},{status:Ni})})),n=f),r.push(A(A({},m),{},{status:Ti})),n+=1,u=!0;break}}u||r.push(A(A({},c),{},{status:Ii}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return A(A({},c),{},{status:Ni})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,m=u.status;return f!==c||m!==Ii}),r.forEach(function(u){u.key===c&&(u.status=Ti)})}),r}var Tg=["component","children","onVisibleChanged","onAllRemoved"],Ig=["status"],Fg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un,r=(function(n){br(a,n);var o=yr(a);function a(){var i;tt(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),_(he(i),"state",{keyEntities:[]}),_(he(i),"removeKey",function(u){i.setState(function(f){var m=f.keyEntities.map(function(h){return h.key!==u?h:A(A({},h),{},{status:La})});return{keyEntities:m}},function(){var f=i.state.keyEntities,m=f.filter(function(h){var g=h.status;return g!==La}).length;m===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return rt(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,m=c.onVisibleChanged;c.onAllRemoved;var h=dt(c,Tg),g=u||d.Fragment,p={};return Fg.forEach(function(v){p[v]=h[v],delete h[v]}),delete h.keys,d.createElement(g,h,l.map(function(v,y){var b=v.status,C=dt(v,Ig),x=b===Ni||b===Ti;return d.createElement(t,Fe({},p,{key:C.key,visible:x,eventProps:C,onVisibleChanged:function(w){m?.(w,{key:C.key}),w||s.removeKey(C.key)}}),function(S,w){return f(A(A({},S),{},{index:y}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Fi(c),m=Ng(u,f);return{keyEntities:m.filter(function(h){var g=u.find(function(p){var v=p.key;return h.key===v});return!(g&&g.status===La&&h.status===Ii)})}}}]),a})(d.Component);return _(r,"defaultProps",{component:"div"}),r}const Ag=Mg(Vu),Mi=d.createContext(!0);process.env.NODE_ENV!=="production"&&(Mi.displayName="MotionCacheContext");function jg(e){const t=d.useContext(Mi),{children:r}=e,[,n]=or(),{motion:o}=n,a=d.useRef(!1);return a.current||(a.current=t!==o),a.current?d.createElement(Mi.Provider,{value:o},d.createElement(gg,{motion:o},r)):r}const Hu=d.memo(({dropdownMatchSelectWidth:e})=>(lt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Hu.displayName="PropWarning");const Vg=process.env.NODE_ENV!=="production"?Hu:()=>null;var Dg=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let Ai=!1;process.env.NODE_ENV;const Lg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Bu;function zg(){return Bu||Hn}function Hg(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Bg=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(Bu=t),n&&Hg(n)&&(process.env.NODE_ENV!=="production"&&Fr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Vm(zg(),n))},Wg=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:p,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:C,componentDisabled:x,segmented:S,statistic:w,spin:E,calendar:$,carousel:O,cascader:R,collapse:N,typography:I,checkbox:F,descriptions:T,divider:V,drawer:j,skeleton:M,steps:D,image:z,layout:U,list:K,mentions:k,modal:H,progress:L,result:q,slider:B,breadcrumb:oe,menu:G,pagination:Q,input:ee,textArea:te,empty:se,badge:le,radio:W,rate:ce,switch:Y,transfer:ie,avatar:ge,message:ae,tag:Ce,table:me,card:ye,tabs:ue,timeline:Z,timePicker:pe,upload:Ee,notification:Xe,tree:Me,colorPicker:je,datePicker:ct,rangePicker:Oe,flex:$e,wave:Se,dropdown:ve,warning:Ae,tour:nt,tooltip:we,popover:Ke,popconfirm:Xt,floatButton:gn,floatButtonGroup:Ar,variant:pn,inputNumber:jr,treeSelect:Ft}=e,ot=d.useCallback((Te,qe)=>{const{prefixCls:mt}=e;if(qe)return qe;const it=mt||y.getPrefixCls("");return Te?`${it}-${Te}`:it},[y.getPrefixCls,e.prefixCls]),ke=b||y.iconPrefixCls||ms,Kt=r||y.csp;cg(ke,Kt);const at=vg(C,y.theme,{prefixCls:ot("")});process.env.NODE_ENV!=="production"&&(Ai=Ai||!!at);const Ne={csp:Kt,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||v,direction:c,space:u,splitter:f,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:p,getPrefixCls:ot,iconPrefixCls:ke,theme:at,segmented:S,statistic:w,spin:E,calendar:$,carousel:O,cascader:R,collapse:N,typography:I,checkbox:F,descriptions:T,divider:V,drawer:j,skeleton:M,steps:D,image:z,input:ee,textArea:te,layout:U,list:K,mentions:k,modal:H,progress:L,result:q,slider:B,breadcrumb:oe,menu:G,pagination:Q,empty:se,badge:le,radio:W,rate:ce,switch:Y,transfer:ie,avatar:ge,message:ae,tag:Ce,table:me,card:ye,tabs:ue,timeline:Z,timePicker:pe,upload:Ee,notification:Xe,tree:Me,colorPicker:je,datePicker:ct,rangePicker:Oe,flex:$e,wave:Se,dropdown:ve,warning:Ae,tour:nt,tooltip:we,popover:Ke,popconfirm:Xt,floatButton:gn,floatButtonGroup:Ar,variant:pn,inputNumber:jr,treeSelect:Ft};process.env.NODE_ENV!=="production"&&lt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Pe=Object.assign({},y);Object.keys(Ne).forEach(Te=>{Ne[Te]!==void 0&&(Pe[Te]=Ne[Te])}),Lg.forEach(Te=>{const qe=e[Te];qe&&(Pe[Te]=qe)}),typeof n<"u"&&(Pe.button=Object.assign({autoInsertSpace:n},Pe.button));const Je=ns(()=>Pe,Pe,(Te,qe)=>{const mt=Object.keys(Te),it=Object.keys(qe);return mt.length!==it.length||mt.some(Wt=>Te[Wt]!==qe[Wt])}),{layer:Bt}=d.useContext(Un),gt=d.useMemo(()=>({prefixCls:ke,csp:Kt,layer:Bt?"antd":void 0}),[ke,Kt,Bt]);let He=d.createElement(d.Fragment,null,d.createElement(Vg,{dropdownMatchSelectWidth:h}),t);const ir=d.useMemo(()=>{var Te,qe,mt,it;return Xr(((Te=_r.Form)===null||Te===void 0?void 0:Te.defaultValidateMessages)||{},((mt=(qe=Je.locale)===null||qe===void 0?void 0:qe.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((it=Je.form)===null||it===void 0?void 0:it.validateMessages)||{},i?.validateMessages||{})},[Je,i?.validateMessages]);Object.keys(ir).length>0&&(He=d.createElement(fu.Provider,{value:ir},He)),s&&(He=d.createElement(gu,{locale:s,_ANT_MARK__:mu},He)),He=d.createElement(fs.Provider,{value:gt},He),l&&(He=d.createElement(Dm,{size:l},He)),He=d.createElement(jg,null,He);const Yt=d.useMemo(()=>{const Te=at||{},{algorithm:qe,token:mt,components:it,cssVar:Wt}=Te,Vr=Dg(Te,["algorithm","token","components","cssVar"]),Mt=qe&&(!Array.isArray(qe)||qe.length>0)?ui(qe):yu,wt={};Object.entries(it||{}).forEach(([At,Dr])=>{const Ve=Object.assign({},Dr);"algorithm"in Ve&&(Ve.algorithm===!0?Ve.theme=Mt:(Array.isArray(Ve.algorithm)||typeof Ve.algorithm=="function")&&(Ve.theme=ui(Ve.algorithm)),delete Ve.algorithm),wt[At]=Ve});const kt=Object.assign(Object.assign({},Ln),mt);return Object.assign(Object.assign({},Vr),{theme:Mt,token:kt,components:wt,override:Object.assign({override:kt},wt),cssVar:Wt})},[at]);return C&&(He=d.createElement(Cu.Provider,{value:Yt},He)),Je.warning&&(He=d.createElement(du.Provider,{value:Je.warning},He)),x!==void 0&&(He=d.createElement(Su,{disabled:x},He)),d.createElement(We.Provider,{value:Je},He)},dn=e=>{const t=d.useContext(We),r=d.useContext(vs);return d.createElement(Wg,Object.assign({parentContext:t,legacyLocale:r},e))};dn.ConfigContext=We;dn.SizeContext=Nr;dn.config=Bg;dn.useConfig=Lm;Object.defineProperty(dn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Fr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Nr)});process.env.NODE_ENV!=="production"&&(dn.displayName="ConfigProvider");var kg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Wu(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function qg(e){return Wu(e)instanceof ShadowRoot}function ko(e){return qg(e)?Wu(e):null}function Gg(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Ug(e,t){Le(e,"[@ant-design/icons] ".concat(t))}function Sl(e){return de(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(de(e.icon)==="object"||typeof e.icon=="function")}function xl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Gg(r)]=n}return t},{})}function ji(e,t,r){return r?P.createElement(e.tag,A(A({key:t},xl(e.attrs)),r),(e.children||[]).map(function(n,o){return ji(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):P.createElement(e.tag,A({key:t},xl(e.attrs)),(e.children||[]).map(function(n,o){return ji(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ku(e){return zn(e)[0]}function qu(e){return e?Array.isArray(e)?e:[e]:[]}var Xg=`
45
- .anticon {
46
- display: inline-flex;
47
- align-items: center;
48
- color: inherit;
49
- font-style: normal;
50
- line-height: 0;
51
- text-align: center;
52
- text-transform: none;
53
- vertical-align: -0.125em;
54
- text-rendering: optimizeLegibility;
55
- -webkit-font-smoothing: antialiased;
56
- -moz-osx-font-smoothing: grayscale;
57
- }
58
-
59
- .anticon > * {
60
- line-height: 1;
61
- }
62
-
63
- .anticon svg {
64
- display: inline-block;
65
- }
66
-
67
- .anticon::before {
68
- display: none;
69
- }
70
-
71
- .anticon .anticon-icon {
72
- display: block;
73
- }
74
-
75
- .anticon[tabindex] {
76
- cursor: pointer;
77
- }
78
-
79
- .anticon-spin::before,
80
- .anticon-spin {
81
- display: inline-block;
82
- -webkit-animation: loadingCircle 1s infinite linear;
83
- animation: loadingCircle 1s infinite linear;
84
- }
85
-
86
- @-webkit-keyframes loadingCircle {
87
- 100% {
88
- -webkit-transform: rotate(360deg);
89
- transform: rotate(360deg);
90
- }
91
- }
92
-
93
- @keyframes loadingCircle {
94
- 100% {
95
- -webkit-transform: rotate(360deg);
96
- transform: rotate(360deg);
97
- }
98
- }
99
- `,Kg=function(t){var r=P.useContext(fs),n=r.csp,o=r.prefixCls,a=r.layer,i=Xg;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
100
- `).concat(i,`
101
- }`)),P.useEffect(function(){var s=t.current,l=ko(s);tr(i,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])},Yg=["icon","className","onClick","style","primaryColor","secondaryColor"],_n={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qg(e){var t=e.primaryColor,r=e.secondaryColor;_n.primaryColor=t,_n.secondaryColor=r||ku(t),_n.calculated=!!r}function Zg(){return A({},_n)}var fn=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=dt(t,Yg),c=d.useRef(),u=_n;if(i&&(u={primaryColor:i,secondaryColor:s||ku(i)}),Kg(c),Ug(Sl(r),"icon should be icon definiton, but got ".concat(r)),!Sl(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),ji(f.icon,"svg-".concat(f.name),A(A({className:n,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};fn.displayName="IconReact";fn.getTwoToneColors=Zg;fn.setTwoToneColors=Qg;function Gu(e){var t=qu(e),r=X(t,2),n=r[0],o=r[1];return fn.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Jg(){var e=fn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ep=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gu(Wo.primary);var Ht=d.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=dt(e,ep),u=d.useContext(fs),f=u.prefixCls,m=f===void 0?"anticon":f,h=u.rootClassName,g=J(h,m,_(_({},"".concat(m,"-").concat(n.name),!!n.name),"".concat(m,"-spin"),!!o||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=qu(l),b=X(y,2),C=b[0],x=b[1];return d.createElement("span",Fe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:g}),d.createElement(fn,{icon:n,primaryColor:C,secondaryColor:x,style:v}))});Ht.displayName="AntdIcon";Ht.getTwoToneColor=Jg;Ht.setTwoToneColor=Gu;var tp=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:kg}))},Uu=d.forwardRef(tp);process.env.NODE_ENV!=="production"&&(Uu.displayName="CheckCircleFilled");var rp={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},np=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:rp}))},ps=d.forwardRef(np);process.env.NODE_ENV!=="production"&&(ps.displayName="CloseCircleFilled");var op={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},ap=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:op}))},Xu=d.forwardRef(ap);process.env.NODE_ENV!=="production"&&(Xu.displayName="ExclamationCircleFilled");var ip=`accept acceptCharset accessKey action allowFullScreen allowTransparency
102
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
103
- charSet checked classID className colSpan cols content contentEditable contextMenu
104
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
105
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
106
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
107
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
108
- mediaGroup method min minLength multiple muted name noValidate nonce open
109
- optimum pattern placeholder poster preload radioGroup readOnly rel required
110
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
111
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
112
- summary tabIndex target title type useMap value width wmode wrap`,sp=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
113
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
114
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
115
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
116
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
117
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
118
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lp="".concat(ip," ").concat(sp).split(/[\s\n]+/),cp="aria-",up="data-";function wl(e,t){return e.indexOf(t)===0}function dp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=A({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||wl(o,cp))||r.data&&wl(o,up)||r.attr&&lp.includes(o))&&(n[o]=e[o])}),n}function Ku(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const fp=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function sn(e,t){return fp(e,e,t)}const El=e=>typeof e=="object"&&e!=null&&e.nodeType===1,$l=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Eo=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return $l(r.overflowY,t)||$l(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},$o=(e,t,r,n,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=r||i>=t&&s>=r?a-e-n:i>t&&s<r||a<e&&s>r?i-t+o:0,vp=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ol=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:j=>j!==c;if(!El(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let g=e;for(;El(g)&&f(g);){if(g=vp(g),g===m){h.push(g);break}g!=null&&g===document.body&&Eo(g)&&!Eo(document.documentElement)||g!=null&&Eo(g,u)&&h.push(g)}const p=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,v=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:y,scrollY:b}=window,{height:C,width:x,top:S,right:w,bottom:E,left:$}=e.getBoundingClientRect(),{top:O,right:R,bottom:N,left:I}=(j=>{const M=window.getComputedStyle(j);return{top:parseFloat(M.scrollMarginTop)||0,right:parseFloat(M.scrollMarginRight)||0,bottom:parseFloat(M.scrollMarginBottom)||0,left:parseFloat(M.scrollMarginLeft)||0}})(e);let F=s==="start"||s==="nearest"?S-O:s==="end"?E+N:S+C/2-O+N,T=l==="center"?$+x/2-I+R:l==="end"?w+R:$-I;const V=[];for(let j=0;j<h.length;j++){const M=h[j],{height:D,width:z,top:U,right:K,bottom:k,left:H}=M.getBoundingClientRect();if(i==="if-needed"&&S>=0&&$>=0&&E<=v&&w<=p&&(M===m&&!Eo(M)||S>=U&&E<=k&&$>=H&&w<=K))return V;const L=getComputedStyle(M),q=parseInt(L.borderLeftWidth,10),B=parseInt(L.borderTopWidth,10),oe=parseInt(L.borderRightWidth,10),G=parseInt(L.borderBottomWidth,10);let Q=0,ee=0;const te="offsetWidth"in M?M.offsetWidth-M.clientWidth-q-oe:0,se="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-G:0,le="offsetWidth"in M?M.offsetWidth===0?0:z/M.offsetWidth:0,W="offsetHeight"in M?M.offsetHeight===0?0:D/M.offsetHeight:0;if(m===M)Q=s==="start"?F:s==="end"?F-v:s==="nearest"?$o(b,b+v,v,B,G,b+F,b+F+C,C):F-v/2,ee=l==="start"?T:l==="center"?T-p/2:l==="end"?T-p:$o(y,y+p,p,q,oe,y+T,y+T+x,x),Q=Math.max(0,Q+b),ee=Math.max(0,ee+y);else{Q=s==="start"?F-U-B:s==="end"?F-k+G+se:s==="nearest"?$o(U,k,D,B,G+se,F,F+C,C):F-(U+D/2)+se/2,ee=l==="start"?T-H-q:l==="center"?T-(H+z/2)+te/2:l==="end"?T-K+oe+te:$o(H,K,z,q,oe+te,T,T+x,x);const{scrollLeft:ce,scrollTop:Y}=M;Q=W===0?0:Math.max(0,Math.min(Y+Q/W,M.scrollHeight-D/W+se)),ee=le===0?0:Math.max(0,Math.min(ce+ee/le,M.scrollWidth-z/le+te)),F+=Y-Q,T+=ce-ee}V.push({el:M,top:Q,left:ee})}return V},mp=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function gp(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ol(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of Ol(e,mp(t))){const s=a-r.top+r.bottom,l=i-r.left+r.right;o.scroll({top:s,left:l,behavior:n})}}const Qn=e=>{const[,,,,t]=or();return t?`${e}-css-var`:""};var pp={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},hp=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:pp}))},hs=d.forwardRef(hp);process.env.NODE_ENV!=="production"&&(hs.displayName="LoadingOutlined");const bp=()=>P.useReducer(e=>e+1,0),bs=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(bs.displayName="zIndexContext");const Jt=100,yp=10,Cp=Jt*yp,Sp=Cp+Jt,Yu={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},xp={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function wp(e){return e in Yu}const Ep=(e,t)=>{const[,r]=or(),n=P.useContext(bs),o=wp(e);let a;if(t!==void 0)a=[t,t];else{let i=n??0;o?i+=(n?0:r.zIndexPopupBase)+Yu[e]:i+=xp[e],a=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=lt(e),s=r.zIndexPopupBase+Sp,l=a[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Qu(e,t){this.v=e,this.k=t}function ut(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}ut=function(i,s,l,c){function u(f,m){ut(i,f,function(h){return this._invoke(f,m,h)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},ut(e,t,r,n)}function ys(){var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(h,g,p,v){var y=g&&g.prototype instanceof s?g:s,b=Object.create(y.prototype);return ut(b,"_invoke",(function(C,x,S){var w,E,$,O=0,R=S||[],N=!1,I={p:0,n:0,v:e,a:F,f:F.bind(e,4),d:function(V,j){return w=V,E=0,$=e,I.n=j,i}};function F(T,V){for(E=T,$=V,t=0;!N&&O&&!j&&t<R.length;t++){var j,M=R[t],D=I.p,z=M[2];T>3?(j=z===V)&&($=M[(E=M[4])?5:(E=3,3)],M[4]=M[5]=e):M[0]<=D&&((j=T<2&&D<M[1])?(E=0,I.v=V,I.n=M[1]):D<z&&(j=T<3||M[0]>V||V>z)&&(M[4]=T,M[5]=V,I.n=z,E=0))}if(j||T>1)return i;throw N=!0,V}return function(T,V,j){if(O>1)throw TypeError("Generator is already running");for(N&&V===1&&F(V,j),E=V,$=j;(t=E<2?e:$)||!N;){w||(E?E<3?(E>1&&(I.n=-1),F(E,$)):I.n=$:I.v=$);try{if(O=2,w){if(E||(T="next"),t=w[T]){if(!(t=t.call(w,$)))throw TypeError("iterator result is not an object");if(!t.done)return t;$=t.value,E<2&&(E=0)}else E===1&&(t=w.return)&&t.call(w),E<2&&($=TypeError("The iterator does not provide a '"+T+"' method"),E=1);w=e}else if((t=(N=I.n<0)?$:C.call(x,I))!==i)break}catch(M){w=e,E=1,$=M}finally{O=1}}return{value:t,done:N}}})(h,p,v),!0),b}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ut(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,ut(h,o,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=c,ut(f,"constructor",c),ut(c,"constructor",l),l.displayName="GeneratorFunction",ut(c,o,"GeneratorFunction"),ut(f),ut(f,o,"Generator"),ut(f,n,function(){return this}),ut(f,"toString",function(){return"[object Generator]"}),(ys=function(){return{w:a,m}})()}function qo(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof Qu?t.resolve(c.v).then(function(u){r("next",u,i,s)},function(u){r("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return r("throw",u,i,s)})}catch(u){s(u)}}var n;this.next||(ut(qo.prototype),ut(qo.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ut(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function Zu(e,t,r,n,o){return new qo(ys().w(e,t,r,n),o||Promise)}function $p(e,t,r,n,o){var a=Zu(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function Op(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Pl(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(de(e)+" is not iterable")}function ft(){var e=ys(),t=e.m(ft),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,m){return l(c.a,o[f],m)},delegateYield:function(f,m,h){return s.resultName=m,l(c.d,Pl(f),h)},finish:function(f){return l(c.f,f)}},l=function(f,m,h){c.p=s.prev,c.n=s.next;try{return f(m,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(ft=function(){return{wrap:function(l,c,u,f){return e.w(a(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Qu(l,c)},AsyncIterator:qo,async:function(l,c,u,f,m){return(n(c)?Zu:$p)(a(l),c,u,f,m)},keys:Op,values:Pl}})()}function Rl(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Mr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){Rl(a,n,o,i,s,"next",l)}function s(l){Rl(a,n,o,i,s,"throw",l)}i(void 0)})}}var Zn=A({},Sc),Pp=Zn.version,za=Zn.render,Rp=Zn.unmountComponentAtNode,ta;try{var _p=Number((Pp||"").split(".")[0]);_p>=18&&(ta=Zn.createRoot)}catch{}function _l(e){var t=Zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&de(t)==="object"&&(t.usingClientEntryPoint=e)}var Go="__rc_react_root__";function Np(e,t){_l(!0);var r=t[Go]||ta(t);_l(!1),r.render(e),t[Go]=r}function Tp(e,t){za?.(e,t)}function Ip(e,t){if(ta){Np(e,t);return}Tp(e,t)}function Fp(e){return Vi.apply(this,arguments)}function Vi(){return Vi=Mr(ft().mark(function e(t){return ft().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Go])===null||o===void 0||o.unmount(),delete t[Go]}));case 1:case"end":return n.stop()}},e)})),Vi.apply(this,arguments)}function Mp(e){Rp(e)}function Ap(e){return Di.apply(this,arguments)}function Di(){return Di=Mr(ft().mark(function e(t){return ft().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ta===void 0){n.next=2;break}return n.abrupt("return",Fp(t));case 2:Mp(t);case 3:case"end":return n.stop()}},e)})),Di.apply(this,arguments)}const jp=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=Number.parseInt(d.version.split(".")[0],10),n=Object.keys(Sc);process.env.NODE_ENV!=="production"&&Fr(r<19||n.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return Ip(e,t),()=>Ap(t)};let Vp=jp;function Dp(e){return Vp}const Ha=()=>({height:0,opacity:0}),Nl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Lp=e=>({height:e?e.offsetHeight:0}),Ba=(e,t)=>t?.deadline===!0||t.propertyName==="height",Tl=(e=Hn)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ha,onEnterStart:Ha,onAppearActive:Nl,onEnterActive:Nl,onLeaveStart:Lp,onLeaveActive:Ha,onAppearEnd:Ba,onEnterEnd:Ba,onLeaveEnd:Ba,motionDeadline:500}),zp=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Jn(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const Cs=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),Hp=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Bp=sg("Wave",Hp),Ju=`${Hn}-wave-target`;function Wp(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function kp(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:o}=getComputedStyle(e);return(t=[r,n,o].find(Wp))!==null&&t!==void 0?t:null}function Wa(e){return Number.isNaN(e)?0:e}const qp=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,a=d.useRef(null),i=d.useRef(null);d.useEffect(()=>{i.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,m]=d.useState(0),[h,g]=d.useState(0),[p,v]=d.useState(0),[y,b]=d.useState(0),[C,x]=d.useState(!1),S={left:f,top:h,width:p,height:y,borderRadius:c.map($=>`${$}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){const $=getComputedStyle(r);l(kp(r));const O=$.position==="static",{borderLeftWidth:R,borderTopWidth:N}=$;m(O?r.offsetLeft:Wa(-Number.parseFloat(R))),g(O?r.offsetTop:Wa(-Number.parseFloat(N))),v(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:F,borderBottomLeftRadius:T,borderBottomRightRadius:V}=$;u([I,F,V,T].map(j=>Wa(Number.parseFloat(j))))}if(d.useEffect(()=>{if(r){const $=St(()=>{w(),x(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(w),O.observe(r)),()=>{St.cancel($),O?.disconnect()}}},[r]),!C)return null;const E=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(Ju);return d.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,O)=>{var R,N;if(O.deadline||O.propertyName==="opacity"){const I=(R=a.current)===null||R===void 0?void 0:R.parentElement;(N=i.current)===null||N===void 0||N.call(i).then(()=>{I?.remove()})}return!1}},({className:$},O)=>d.createElement("div",{ref:hr(a,O),className:J(t,$,{"wave-quick":E}),style:S}))},Gp=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);const a=Dp();let i=null;function s(){return i}i=a(d.createElement(qp,Object.assign({},t,{target:e,registerUnmount:s})),o)},Up=(e,t,r)=>{const{wave:n}=d.useContext(We),[,o,a]=or(),i=st(c=>{const u=e.current;if(n?.disabled||!u)return;const f=u.querySelector(`.${Ju}`)||u,{showEffect:m}=n||{};(m||Gp)(f,{className:t,token:o,component:r,event:c,hashId:a})}),s=d.useRef(null);return c=>{St.cancel(s.current),s.current=St(()=>{i(c)})}},ed=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=P.useContext(We),a=P.useRef(null),i=o("wave"),[,s]=Bp(i),l=Up(a,J(i,s),n);if(P.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||r)return;const f=m=>{!Cs(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(m)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const c=ln(t)?hr(qn(t),a):a;return sn(t,{ref:c})};process.env.NODE_ENV!=="production"&&(ed.displayName="Wave");const vn=e=>{const t=P.useContext(Nr);return P.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},td=d.createContext(null),ra=(e,t)=>{const r=d.useContext(td),n=d.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return J(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},Xp=e=>{const{children:t}=e;return d.createElement(td.Provider,{value:null},t)};var Kp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const rd=d.createContext(void 0),Yp=e=>{const{getPrefixCls:t,direction:r}=d.useContext(We),{prefixCls:n,size:o,className:a}=e,i=Kp(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=or(),c=d.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const f=lt("Button.Group");f.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=J(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},a,l);return d.createElement(rd.Provider,{value:o},d.createElement("div",Object.assign({},i,{className:u})))},Il=/^[\u4E00-\u9FA5]{2}$/,Li=Il.test.bind(Il);function Fl(e){return typeof e=="string"}function Oo(e){return e==="text"||e==="link"}function Qp(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Fl(e.type)&&Li(e.props.children)?sn(e,{children:e.props.children.split("").join(r)}):Fl(e)?Li(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):Ku(e)?P.createElement("span",null,e):e}function Zp(e,t){let r=!1;const n=[];return P.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=i}),P.Children.map(n,o=>Qp(o,t))}["default","primary","danger"].concat(re(Tr));const zi=P.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:a}=e,i=J(`${a}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},o)}),Ml=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:a}=e,i=J(`${r}-loading-icon`,n);return P.createElement(zi,{prefixCls:r,className:i,style:o,ref:t},P.createElement(hs,{className:a}))}),ka=()=>({width:0,opacity:0,transform:"scale(0)"}),qa=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Jp=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:a,mount:i}=e,s=!!r;return n?P.createElement(Ml,{prefixCls:t,className:o,style:a}):P.createElement(un,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:ka,onAppearActive:qa,onEnterStart:ka,onEnterActive:qa,onLeaveStart:qa,onLeaveActive:ka},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},a),c);return P.createElement(Ml,{prefixCls:t,className:J(o,l),style:f,ref:u})})},Al=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),eh=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Al(`${t}-primary`,o),Al(`${t}-danger`,a)]}};var th=["b"],rh=["v"],Ga=function(t){return Math.round(Number(t||0))},nh=function(t){if(t instanceof ze)return t;if(t&&de(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=dt(r,th);return A(A({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},rr=(function(e){br(r,e);var t=yr(r);function r(n){return tt(this,r),t.call(this,nh(n))}return rt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Ga(o.s*100),i=Ga(o.b*100),s=Ga(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=dt(o,rh);return A(A({},i),{},{b:a,a:this.a})}}]),r})(ze),oh="rc-color-picker",Zr=function(t){return t instanceof rr?t:new rr(t)},ah=Zr("#1677ff"),nd=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),f=u.width,m=u.height,h=f/2,g=m/2,p=(r.x+h)/l,v=1-(r.y+g)/c,y=a.toHsb(),b=p,C=(r.x+h)/l*360;if(i)switch(i){case"hue":return Zr(A(A({},y),{},{h:C<=0?0:C}));case"alpha":return Zr(A(A({},y),{},{a:b<=0?0:b}))}return Zr({h:y.h,s:p<=0?0:p,b:v>=1?1:v,a:y.a})},od=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},ih=function(t){var r=t.color,n=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(n,"-color-block");return P.createElement("div",{className:J(s,o),style:a,onClick:i},P.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function sh(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function ad(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,a=e.onDragChangeComplete,i=e.calculate,s=e.color,l=e.disabledDrag,c=P.useState({x:0,y:0}),u=X(c,2),f=u[0],m=u[1],h=P.useRef(null),g=P.useRef(null);P.useEffect(function(){m(i())},[s]),P.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null}},[]);var p=function(x){var S=sh(x),w=S.pageX,E=S.pageY,$=r.current.getBoundingClientRect(),O=$.x,R=$.y,N=$.width,I=$.height,F=t.current.getBoundingClientRect(),T=F.width,V=F.height,j=T/2,M=V/2,D=Math.max(0,Math.min(w-O,N))-j,z=Math.max(0,Math.min(E-R,I))-M,U={x:D,y:n==="x"?f.y:z};if(T===0&&V===0||T!==V)return!1;o?.(U)},v=function(x){x.preventDefault(),p(x)},y=function(x){x.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null,a?.()},b=function(x){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),!l&&(p(x),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,g.current=y)};return[f,b]}var id=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,a=t.prefixCls;return P.createElement("div",{className:J("".concat(a,"-handler"),_({},"".concat(a,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},sd=function(t){var r=t.children,n=t.style,o=t.prefixCls;return P.createElement("div",{className:"".concat(o,"-palette"),style:A({position:"relative"},n)},r)},ld=P.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return P.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),lh=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=P.useRef(),l=P.useRef(),c=P.useRef(r),u=st(function(p){var v=nd({offset:p,targetRef:l,containerRef:s,color:r});c.current=v,n(v)}),f=ad({color:r,containerRef:s,targetRef:l,calculate:function(){return od(r)},onDragChange:u,onDragChangeComplete:function(){return a?.(c.current)},disabledDrag:i}),m=X(f,2),h=m[0],g=m[1];return P.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},P.createElement(sd,{prefixCls:o},P.createElement(ld,{x:h.x,y:h.y,ref:l},P.createElement(id,{color:r.toRgbString(),prefixCls:o})),P.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ch=function(t,r){var n=Kn(t,{value:r}),o=X(n,2),a=o[0],i=o[1],s=P.useMemo(function(){return Zr(a)},[a]);return[s,i]},uh=function(t){var r=t.colors,n=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=P.useMemo(function(){return r.map(function(c,u){var f=Zr(c);return i==="alpha"&&u===r.length-1&&(f=new rr(f.setA(1))),f.toRgbString()}).join(",")},[r,i]);return P.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},n)},dh=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,a=t.onChange,i=t.onChangeComplete,s=t.color,l=t.type,c=P.useRef(),u=P.useRef(),f=P.useRef(s),m=function(S){return l==="hue"?S.getHue():S.a*100},h=st(function(x){var S=nd({offset:x,targetRef:u,containerRef:c,color:s,type:l});f.current=S,a(m(S))}),g=ad({color:s,targetRef:u,containerRef:c,calculate:function(){return od(s,l)},onDragChange:h,onDragChangeComplete:function(){i(m(f.current))},direction:"x",disabledDrag:o}),p=X(g,2),v=p[0],y=p[1],b=P.useMemo(function(){if(l==="hue"){var x=s.toHsb();x.s=1,x.b=1,x.a=1;var S=new rr(x);return S}return s},[s,l]),C=P.useMemo(function(){return n.map(function(x){return"".concat(x.color," ").concat(x.percent,"%")})},[n]);return P.createElement("div",{ref:c,className:J("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},P.createElement(sd,{prefixCls:r},P.createElement(ld,{x:v.x,y:v.y,ref:u},P.createElement(id,{size:"small",color:b.toHexString(),prefixCls:r})),P.createElement(uh,{colors:C,type:l,prefixCls:r})))};function fh(e){return d.useMemo(function(){var t=e||{},r=t.slider;return[r||dh]},[e])}var vh=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],mh=P.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,a=o===void 0?oh:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,p=e.components,v=fh(p),y=X(v,1),b=y[0],C=ch(n||ah,r),x=X(C,2),S=x[0],w=x[1],E=P.useMemo(function(){return S.setA(1).toRgbString()},[S]),$=function(z,U){r||w(z),i?.(z,U)},O=function(z){return new rr(S.setHue(z))},R=function(z){return new rr(S.setA(z/100))},N=function(z){$(O(z),{type:"hue",value:z})},I=function(z){$(R(z),{type:"alpha",value:z})},F=function(z){s&&s(O(z))},T=function(z){s&&s(R(z))},V=J("".concat(a,"-panel"),l,_({},"".concat(a,"-panel-disabled"),g)),j={prefixCls:a,disabled:g,color:S},M=P.createElement(P.Fragment,null,P.createElement(lh,Fe({onChange:$},j,{onChangeComplete:s})),P.createElement("div",{className:"".concat(a,"-slider-container")},P.createElement("div",{className:J("".concat(a,"-slider-group"),_({},"".concat(a,"-slider-group-disabled-alpha"),m))},P.createElement(b,Fe({},j,{type:"hue",colors:vh,min:0,max:359,value:S.getHue(),onChange:N,onChangeComplete:F})),!m&&P.createElement(b,Fe({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:S.a*100,onChange:I,onChangeComplete:T}))),P.createElement(ih,{color:S.toRgbString(),prefixCls:a})));return P.createElement("div",{className:V,style:c,ref:t},typeof u=="function"?u(M):M)});process.env.NODE_ENV!=="production"&&(mh.displayName="ColorPicker");const gh=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",ph=(e,t)=>e?gh(e,t):"";let Hi=(function(){function e(t){tt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new rr(this.colors[0].color.metaColor)):this.metaColor=new rr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return rt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ph(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const a=r.colors[o];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const hh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
119
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
120
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),bh=e=>({animationDuration:e,animationFillMode:"both"}),yh=e=>({animationDuration:e,animationFillMode:"both"}),Ch=(e,t,r,n,o=!1)=>{const a=o?"&":"";return{[`
121
- ${a}${e}-enter,
122
- ${a}${e}-appear
123
- `]:Object.assign(Object.assign({},bh(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},yh(n)),{animationPlayState:"paused"}),[`
124
- ${a}${e}-enter${e}-enter-active,
125
- ${a}${e}-appear${e}-appear-active
126
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Ss=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sh=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),jl=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Vl=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),xh=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wh=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Eh=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$h=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Oh=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ph=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Rh=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_h=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Nh={zoom:{inKeyframes:Ss,outKeyframes:Sh},"zoom-big":{inKeyframes:jl,outKeyframes:Vl},"zoom-big-fast":{inKeyframes:jl,outKeyframes:Vl},"zoom-left":{inKeyframes:Eh,outKeyframes:$h},"zoom-right":{inKeyframes:Oh,outKeyframes:Ph},"zoom-up":{inKeyframes:xh,outKeyframes:wh},"zoom-down":{inKeyframes:Rh,outKeyframes:_h}},Th=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=Nh[t];return[Ch(n,o,a,e.motionDurationFast),{[`
127
- ${n}-enter,
128
- ${n}-appear
129
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ih=e=>e instanceof Hi?e:new Hi(e),Fh=(e,t)=>{const{r,g:n,b:o,a}=e.toRgb(),i=new rr(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:r*.299+n*.587+o*.114>192},cd=e=>{const{paddingInline:t,onlyIconSize:r}=e;return vt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ud=e=>{var t,r,n,o,a,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:Do(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Do(l),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Do(c),h=Fh(new Hi(e.colorBgSolid),"#fff")?"#000":"#fff",g=Tr.reduce((p,v)=>Object.assign(Object.assign({},p),{[`${v}ShadowColor`]:`0 ${be(e.controlOutlineWidth)} 0 ${On(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)})},Mh=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ru(),"> a":{color:"currentColor"},"&:not(:disabled)":ig(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},dd=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Ah=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),jh=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),na=(e,t,r,n,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},dd(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Vh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jh(e))}),Dh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),oa=(e,t,r,n)=>{const a=n&&["link","text"].includes(n)?Dh:Vh;return Object.assign(Object.assign({},a(e)),dd(e.componentCls,t,r))},aa=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},oa(e,n,o))}),ia=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},oa(e,n,o))}),sa=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),la=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},oa(e,r,n))}),Ut=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},oa(e,n,o,r))}),Lh=e=>{const{componentCls:t}=e;return Tr.reduce((r,n)=>{const o=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},aa(e,e.colorTextLightSolid,o,{background:i},{background:c})),ia(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),sa(e)),la(e,a,{color:o,background:s},{color:o,background:l})),Ut(e,o,"link",{color:i},{color:c})),Ut(e,o,"text",{color:i,background:a},{color:c,background:l}))})},{})},zh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},aa(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),sa(e)),la(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),na(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ut(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Hh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ia(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),sa(e)),la(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Ut(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ut(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),na(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Bh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},aa(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ia(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sa(e)),la(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Ut(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ut(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),na(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Wh=e=>Object.assign(Object.assign({},Ut(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),na(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),kh=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:zh(e),[`${t}-color-primary`]:Hh(e),[`${t}-color-dangerous`]:Bh(e),[`${t}-color-link`]:Wh(e)},Lh(e))},qh=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ia(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ut(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),aa(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ut(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),xs=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${be(l)} ${be(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:Ah(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Gh=e=>{const t=vt(e,{fontSize:e.contentFontSize});return xs(t,e.componentCls)},Uh=e=>{const t=vt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return xs(t,`${e.componentCls}-sm`)},Xh=e=>{const t=vt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return xs(t,`${e.componentCls}-lg`)},Kh=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Yh=ar("Button",e=>{const t=cd(e);return[Mh(t),Gh(t),Uh(t),Xh(t),Kh(t),kh(t),qh(t),eh(t)]},ud,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Qh(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Zh(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fd(e,t={focus:!0}){const{componentCls:r}=e,{componentCls:n}=t,o=n||r,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},Qh(e,a,t,o)),Zh(o,a,t))}}function Jh(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function e0(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function t0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Jh(e,t,e.componentCls)),e0(e.componentCls,t))}}const r0=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,a=o(n).mul(-1).equal(),i=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},n0=Nu(["Button","compact"],e=>{const t=cd(e);return[fd(t),t0(t),r0(t)]},ud);var o0=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function a0(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const i0={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},s0=P.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:a,color:i,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:m,disabled:h,className:g,rootClassName:p,children:v,icon:y,iconPosition:b="start",ghost:C=!1,block:x=!1,htmlType:S="button",classNames:w,style:E={},autoInsertSpace:$,autoFocus:O}=e,R=o0(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=l||"default",{button:I}=P.useContext(We),F=u||I?.shape||"default",[T,V]=P.useMemo(()=>{if(i&&s)return[i,s];if(l||c){const we=i0[N]||[];return c?["danger",we[1]]:we}return I?.color&&I?.variant?[I.color,I.variant]:["default","outlined"]},[i,s,l,c,I?.color,I?.variant,N]),M=T==="danger"?"dangerous":T,{getPrefixCls:D,direction:z,autoInsertSpace:U,className:K,style:k,classNames:H,styles:L}=Xn("button"),q=(r=$??U)!==null&&r!==void 0?r:!0,B=D("btn",a),[oe,G,Q]=Yh(B),ee=P.useContext(pr),te=h??ee,se=P.useContext(rd),le=P.useMemo(()=>a0(o),[o]),[W,ce]=P.useState(le.loading),[Y,ie]=P.useState(!1),ge=P.useRef(null),ae=Ko(t,ge),Ce=P.Children.count(v)===1&&!y&&!Oo(V),me=P.useRef(!0);P.useEffect(()=>(me.current=!1,()=>{me.current=!0}),[]),Ue(()=>{let we=null;le.delay>0?we=setTimeout(()=>{we=null,ce(!0)},le.delay):ce(le.loading);function Ke(){we&&(clearTimeout(we),we=null)}return Ke},[le.delay,le.loading]),P.useEffect(()=>{if(!ge.current||!q)return;const we=ge.current.textContent||"";Ce&&Li(we)?Y||ie(!0):Y&&ie(!1)}),P.useEffect(()=>{O&&ge.current&&ge.current.focus()},[]);const ye=P.useCallback(we=>{var Ke;if(W||te){we.preventDefault();return}(Ke=e.onClick)===null||Ke===void 0||Ke.call(e,("href"in e,we))},[e.onClick,W,te]);if(process.env.NODE_ENV!=="production"){const we=lt("Button");process.env.NODE_ENV!=="production"&&we(!(typeof y=="string"&&y.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${y}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&we(!(C&&Oo(V)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ue,compactItemClassnames:Z}=ra(B,z),pe={large:"lg",small:"sm",middle:void 0},Ee=vn(we=>{var Ke,Xt;return(Xt=(Ke=f??ue)!==null&&Ke!==void 0?Ke:se)!==null&&Xt!==void 0?Xt:we}),Xe=Ee&&(n=pe[Ee])!==null&&n!==void 0?n:"",Me=W?"loading":y,je=Jn(R,["navigate"]),ct=J(B,G,Q,{[`${B}-${F}`]:F!=="default"&&F,[`${B}-${N}`]:N,[`${B}-dangerous`]:c,[`${B}-color-${M}`]:M,[`${B}-variant-${V}`]:V,[`${B}-${Xe}`]:Xe,[`${B}-icon-only`]:!v&&v!==0&&!!Me,[`${B}-background-ghost`]:C&&!Oo(V),[`${B}-loading`]:W,[`${B}-two-chinese-chars`]:Y&&q&&!W,[`${B}-block`]:x,[`${B}-rtl`]:z==="rtl",[`${B}-icon-end`]:b==="end"},Z,g,p,K),Oe=Object.assign(Object.assign({},k),E),$e=J(w?.icon,H.icon),Se=Object.assign(Object.assign({},m?.icon||{}),L.icon||{}),ve=y&&!W?P.createElement(zi,{prefixCls:B,className:$e,style:Se},y):o&&typeof o=="object"&&o.icon?P.createElement(zi,{prefixCls:B,className:$e,style:Se},o.icon):P.createElement(Jp,{existIcon:!!y,prefixCls:B,loading:W,mount:me.current}),Ae=v||v===0?Zp(v,Ce&&q):null;if(je.href!==void 0)return oe(P.createElement("a",Object.assign({},je,{className:J(ct,{[`${B}-disabled`]:te}),href:te?void 0:je.href,style:Oe,onClick:ye,ref:ae,tabIndex:te?-1:0,"aria-disabled":te}),ve,Ae));let nt=P.createElement("button",Object.assign({},R,{type:S,className:ct,style:Oe,onClick:ye,disabled:te,ref:ae}),ve,Ae,Z&&P.createElement(n0,{prefixCls:B}));return Oo(V)||(nt=P.createElement(ed,{component:"Button",disabled:W},nt)),oe(nt)}),ca=s0;ca.Group=Yp;ca.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(ca.displayName="Button");var vd=d.createContext(null),Dl=[];function l0(e,t){var r=d.useState(function(){if(!pt())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&g.setAttribute("data-debug",t),g}),n=X(r,1),o=n[0],a=d.useRef(!1),i=d.useContext(vd),s=d.useState(Dl),l=X(s,2),c=l[0],u=l[1],f=i||(a.current?void 0:function(g){u(function(p){var v=[g].concat(re(p));return v})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Ue(function(){return e?i?i(m):m():h(),h},[e]),Ue(function(){c.length&&(c.forEach(function(g){return g()}),u(Dl))},[c]),[o,f]}function c0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";tr(`
130
- #`.concat(t,`::-webkit-scrollbar {
131
- `).concat(u,`
132
- `).concat(f,`
133
- }`),t)}catch(g){console.error(g),o=l,a=c}}document.body.appendChild(r);var m=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,h=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Vn(t),{width:m,height:h}}function u0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:c0(e)}function d0(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var f0="rc-util-locker-".concat(Date.now()),Ll=0;function v0(e){var t=!!e,r=d.useState(function(){return Ll+=1,"".concat(f0,"_").concat(Ll)}),n=X(r,1),o=n[0];Ue(function(){if(t){var a=u0(document.body).width,i=d0();tr(`
134
- html body {
135
- overflow-y: hidden;
136
- `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
137
- }`),o)}else Vn(o);return function(){Vn(o)}},[t,o])}var m0=!1;function g0(e){return m0}var zl=function(t){return t===!1?!1:!pt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ws=d.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,c=d.useState(r),u=X(c,2),f=u[0],m=u[1],h=f||r;process.env.NODE_ENV!=="production"&&Le(pt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),d.useEffect(function(){(s||r)&&m(r)},[r,s]);var g=d.useState(function(){return zl(o)}),p=X(g,2),v=p[0],y=p[1];d.useEffect(function(){var I=zl(o);y(I??null)});var b=l0(h&&!v,a),C=X(b,2),x=C[0],S=C[1],w=v??x;v0(n&&r&&pt()&&(w===x||w===document.body));var E=null;if(l&&ln(l)&&t){var $=l;E=$.ref}var O=Ko(E,t);if(!h||!pt()||v===void 0)return null;var R=w===!1||g0(),N=l;return t&&(N=d.cloneElement(l,{ref:O})),d.createElement(vd.Provider,{value:S},R?N:Lo.createPortal(N,w))});process.env.NODE_ENV!=="production"&&(ws.displayName="Portal");function p0(){var e=A({},d);return e.useId}var Hl=0,Bl=p0();const md=Bl?function(t){var r=Bl();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=d.useState("ssr-id"),n=X(r,2),o=n[0],a=n[1];return d.useEffect(function(){var i=Hl;Hl+=1,a("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var Pr="RC_FORM_INTERNAL_HOOKS",Ie=function(){Le(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ir=d.createContext({getFieldValue:Ie,getFieldsValue:Ie,getFieldError:Ie,getFieldWarning:Ie,getFieldsError:Ie,isFieldsTouched:Ie,isFieldTouched:Ie,isFieldValidating:Ie,isFieldsValidating:Ie,resetFields:Ie,setFields:Ie,setFieldValue:Ie,setFieldsValue:Ie,validateFields:Ie,submit:Ie,getInternalHooks:function(){return Ie(),{dispatch:Ie,initEntityValue:Ie,registerField:Ie,useSubscribe:Ie,setInitialValues:Ie,destroyForm:Ie,setCallbacks:Ie,registerWatch:Ie,getFields:Ie,setValidateMessages:Ie,setPreserve:Ie,getInitialValue:Ie}}}),Bn=d.createContext(null);function Bi(e){return e==null?[]:Array.isArray(e)?e:[e]}function h0(e){return e&&!!e._init}function Wi(){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 ki=Wi();function b0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function y0(e,t,r){if(as())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Mn(o,r.prototype),o}function qi(e){var t=typeof Map=="function"?new Map:void 0;return qi=function(n){if(n===null||!b0(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,o)}function o(){return y0(n,arguments,An(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Mn(o,n)},qi(e)}var C0=/%[sdj%]/g,gd=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(gd=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 Gi(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 Ct(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 o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(C0,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function S0(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ze(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||S0(t)&&typeof e=="string"&&!e)}function x0(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,re(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function Wl(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function w0(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,re(e[r]||[]))}),t}var kl=(function(e){br(r,e);var t=yr(r);function r(n,o){var a;return tt(this,r),a=t.call(this,"Async Validation Error"),_(he(a),"errors",void 0),_(he(a),"fields",void 0),a.errors=n,a.fields=o,a}return rt(r)})(qi(Error));function E0(e,t,r,n,o){if(t.first){var a=new Promise(function(m,h){var g=function(y){return n(y),y.length?h(new kl(y,Gi(y))):m(o)},p=w0(e);Wl(p,r,g)});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(m,h){var g=function(v){if(u.push.apply(u,v),c++,c===l)return n(u),u.length?h(new kl(u,Gi(u))):m(o)};s.length||(n(u),m(o)),s.forEach(function(p){var v=e[p];i.indexOf(p)!==-1?Wl(v,r,g):x0(v,r,g)})});return f.catch(function(m){return m}),f}function $0(e){return!!(e&&e.message!==void 0)}function O0(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function ql(e,t){return function(r){var n;return e.fullFields?n=O0(t,e.fullFields):n=t[r.field||e.fullField],$0(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 Gl(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];de(n)==="object"&&de(e[r])==="object"?e[r]=A(A({},e[r]),n):e[r]=n}}return e}var Br="enum",P0=function(t,r,n,o,a){t[Br]=Array.isArray(t[Br])?t[Br]:[],t[Br].indexOf(r)===-1&&o.push(Ct(a.messages[Br],t.fullField,t[Br].join(", ")))},R0=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Ct(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(Ct(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},_0=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,m=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(m?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(u=r.length),h&&(u=r.replace(c,"_").length),i?u!==t.len&&o.push(Ct(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Ct(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Ct(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Ct(a.messages[f].range,t.fullField,t.min,t.max))},pd=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||Ze(r,i||t.type))&&o.push(Ct(a.messages.required,t.fullField))},Po;const N0=(function(){if(Po)return Po;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}",o=["(?:".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}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,g=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(h,"|").concat(g,"|").concat(p).concat(v).concat(y,")").concat(b).concat(C);return Po=new RegExp("(?:^".concat(x,"$)"),"i"),Po});var Ul={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},Pn={integer:function(t){return Pn.number(t)&&parseInt(t,10)===t},float:function(t){return Pn.number(t)&&!Pn.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 de(t)==="object"&&!Pn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ul.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(N0())},hex:function(t){return typeof t=="string"&&!!t.match(Ul.hex)}},T0=function(t,r,n,o,a){if(t.required&&r===void 0){pd(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Pn[s](r)||o.push(Ct(a.messages.types[s],t.fullField,t.type)):s&&de(r)!==t.type&&o.push(Ct(a.messages.types[s],t.fullField,t.type))},I0=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(Ct(a.messages.whitespace,t.fullField))};const xe={required:pd,whitespace:I0,type:T0,range:_0,enum:P0,pattern:R0};var F0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a)}n(i)},M0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();xe.required(t,r,o,i,a,"array"),r!=null&&(xe.type(t,r,o,i,a),xe.range(t,r,o,i,a))}n(i)},A0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&xe.type(t,r,o,i,a)}n(i)},j0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r,"date")&&!t.required)return n();if(xe.required(t,r,o,i,a),!Ze(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),xe.type(t,l,o,i,a),l&&xe.range(t,l.getTime(),o,i,a)}}n(i)},V0="enum",D0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&xe[V0](t,r,o,i,a)}n(i)},L0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&(xe.type(t,r,o,i,a),xe.range(t,r,o,i,a))}n(i)},z0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&(xe.type(t,r,o,i,a),xe.range(t,r,o,i,a))}n(i)},H0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&xe.type(t,r,o,i,a)}n(i)},B0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&(xe.type(t,r,o,i,a),xe.range(t,r,o,i,a))}n(i)},W0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),r!==void 0&&xe.type(t,r,o,i,a)}n(i)},k0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r,"string")&&!t.required)return n();xe.required(t,r,o,i,a),Ze(r,"string")||xe.pattern(t,r,o,i,a)}n(i)},q0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r)&&!t.required)return n();xe.required(t,r,o,i,a),Ze(r)||xe.type(t,r,o,i,a)}n(i)},G0=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":de(r);xe.required(t,r,o,i,a,s),n(i)},U0=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ze(r,"string")&&!t.required)return n();xe.required(t,r,o,i,a,"string"),Ze(r,"string")||(xe.type(t,r,o,i,a),xe.range(t,r,o,i,a),xe.pattern(t,r,o,i,a),t.whitespace===!0&&xe.whitespace(t,r,o,i,a))}n(i)},Ua=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ze(r,i)&&!t.required)return n();xe.required(t,r,o,s,a,i),Ze(r,i)||xe.type(t,r,o,s,a)}n(s)};const Nn={string:U0,method:H0,number:B0,boolean:A0,regexp:q0,integer:z0,float:L0,array:M0,object:W0,enum:D0,pattern:k0,date:j0,url:Ua,hex:Ua,email:Ua,required:G0,any:F0};var eo=(function(){function e(t){tt(this,e),_(this,"rules",null),_(this,"_messages",ki),this.define(t)}return rt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(de(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];n.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=Gl(Wi(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(g){var p=[],v={};function y(C){if(Array.isArray(C)){var x;p=(x=p).concat.apply(x,re(C))}else p.push(C)}for(var b=0;b<g.length;b++)y(g[b]);p.length?(v=Gi(p),l(p,v)):l(null,i)}if(s.messages){var u=this.messages();u===ki&&(u=Wi()),Gl(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(g){var p=n.rules[g],v=i[g];p.forEach(function(y){var b=y;typeof b.transform=="function"&&(i===r&&(i=A({},i)),v=i[g]=b.transform(v),v!=null&&(b.type=b.type||(Array.isArray(v)?"array":de(v)))),typeof b=="function"?b={validator:b}:b=A({},b),b.validator=n.getValidationMethod(b),b.validator&&(b.field=g,b.fullField=b.fullField||g,b.type=n.getType(b),f[g]=f[g]||[],f[g].push({rule:b,value:v,source:i,field:g}))})});var h={};return E0(f,s,function(g,p){var v=g.rule,y=(v.type==="object"||v.type==="array")&&(de(v.fields)==="object"||de(v.defaultField)==="object");y=y&&(v.required||!v.required&&g.value),v.field=g.field;function b(E,$){return A(A({},$),{},{fullField:"".concat(v.fullField,".").concat(E),fullFields:v.fullFields?[].concat(re(v.fullFields),[E]):[E]})}function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(E)?E:[E];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&v.message!==void 0&&($=[].concat(v.message));var O=$.map(ql(v,i));if(s.first&&O.length)return h[v.field]=1,p(O);if(!y)p(O);else{if(v.required&&!g.value)return v.message!==void 0?O=[].concat(v.message).map(ql(v,i)):s.error&&(O=[s.error(v,Ct(s.messages.required,v.field))]),p(O);var R={};v.defaultField&&Object.keys(g.value).map(function(F){R[F]=v.defaultField}),R=A(A({},R),g.rule.fields);var N={};Object.keys(R).forEach(function(F){var T=R[F],V=Array.isArray(T)?T:[T];N[F]=V.map(b.bind(null,F))});var I=new e(N);I.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),I.validate(g.value,g.rule.options||s,function(F){var T=[];O&&O.length&&T.push.apply(T,re(O)),F&&F.length&&T.push.apply(T,re(F)),p(T.length?T:null)})}}var x;if(v.asyncValidator)x=v.asyncValidator(v,g.value,C,g.source,s);else if(v.validator){try{x=v.validator(v,g.value,C,g.source,s)}catch(E){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,E),s.suppressValidatorError||setTimeout(function(){throw E},0),C(E.message)}x===!0?C():x===!1?C(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):x instanceof Array?C(x):x instanceof Error&&C(x.message)}x&&x.then&&x.then(function(){return C()},function(E){return C(E)})},function(g){c(g)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Nn.hasOwnProperty(r.type))throw new Error(Ct("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),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?Nn.required:Nn[this.getType(r)]||void 0}}]),e})();_(eo,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Nn[t]=r});_(eo,"warning",gd);_(eo,"messages",ki);_(eo,"validators",Nn);var bt="'${name}' is not a valid ${type}",hd={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:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},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}"}},Xl=eo;function X0(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 Kl="CODE_LOGIC_ERROR";function Ui(e,t,r,n,o){return Xi.apply(this,arguments)}function Xi(){return Xi=Mr(ft().mark(function e(t,r,n,o,a){var i,s,l,c,u,f,m,h,g;return ft().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return i=A({},n),delete i.ruleIndex,Xl.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Kl)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Xl(_({},t,[i])),u=Xr(hd,o.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(_({},t,r),A({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,b){var C=y.message,x=C===Kl?u.default:C;return d.isValidElement(x)?d.cloneElement(x,{key:"error_".concat(b)}):x}));case 18:if(!(!f.length&&l&&Array.isArray(r)&&r.length>0)){v.next=23;break}return v.next=21,Promise.all(r.map(function(y,b){return Ui("".concat(t,".").concat(b),y,l,o,a)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(y,b){return[].concat(re(y),re(b))},[]));case 23:return h=A(A({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),g=f.map(function(y){return typeof y=="string"?X0(y,h):y}),v.abrupt("return",g);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Xi.apply(this,arguments)}function K0(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(u,f){var m=u.validator,h=A(A({},u),{},{ruleIndex:f});return m&&(h.validator=function(g,p,v){var y=!1,b=function(){for(var S=arguments.length,w=new Array(S),E=0;E<S;E++)w[E]=arguments[E];Promise.resolve().then(function(){Le(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,w)})},C=m(g,p,b);y=C&&typeof C.then=="function"&&typeof C.catch=="function",Le(y,"`callback` is deprecated. Please return a promise instead."),y&&C.then(function(){v()}).catch(function(x){v(x||" ")})}),h}).sort(function(u,f){var m=u.warningOnly,h=u.ruleIndex,g=f.warningOnly,p=f.ruleIndex;return!!m==!!g?h-p:m?1:-1}),l;if(o===!0)l=new Promise((function(){var u=Mr(ft().mark(function f(m,h){var g,p,v;return ft().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:g=0;case 1:if(!(g<s.length)){b.next=12;break}return p=s[g],b.next=5,Ui(i,t,p,n,a);case 5:if(v=b.sent,!v.length){b.next=9;break}return h([{errors:v,rule:p}]),b.abrupt("return");case 9:g+=1,b.next=1;break;case 12:m([]);case 13:case"end":return b.stop()}},f)}));return function(f,m){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return Ui(i,t,u,n,a).then(function(f){return{errors:f,rule:u}})});l=(o?Q0(c):Y0(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function Y0(e){return Ki.apply(this,arguments)}function Ki(){return Ki=Mr(ft().mark(function e(t){return ft().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,re(o));return i}));case 1:case"end":return n.stop()}},e)})),Ki.apply(this,arguments)}function Q0(e){return Yi.apply(this,arguments)}function Yi(){return Yi=Mr(ft().mark(function e(t){var r;return ft().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Yi.apply(this,arguments)}function Ge(e){return Bi(e)}function Yl(e,t){var r={};return t.forEach(function(n){var o=_t(e,n);r=Rt(r,n,o)}),r}function Jr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return bd(t,n,r)})}function bd(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,o){return e[o]===n})}function Z0(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||de(e)!=="object"||de(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return re(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function J0(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&de(t.target)==="object"&&e in t.target?t.target[e]:t}function Ql(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(re(e.slice(0,r)),[o],re(e.slice(r,t)),re(e.slice(t+1,n))):a<0?[].concat(re(e.slice(0,t)),re(e.slice(t+1,r+1)),[o],re(e.slice(r+1,n))):e}var eb=["name"],Ot=[];function Xa(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var Es=(function(e){br(r,e);var t=yr(r);function r(n){var o;if(tt(this,r),o=t.call(this,n),_(he(o),"state",{resetCount:0}),_(he(o),"cancelRegisterFunc",null),_(he(o),"mounted",!1),_(he(o),"touched",!1),_(he(o),"dirty",!1),_(he(o),"validatePromise",void 0),_(he(o),"prevValidating",void 0),_(he(o),"errors",Ot),_(he(o),"warnings",Ot),_(he(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ge(f)),o.cancelRegisterFunc=null}),_(he(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(re(m),re(c)):[]}),_(he(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(f):m})}),_(he(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(he(o),"metaCache",null),_(he(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=A(A({},o.getMeta()),{},{destroy:l});li(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(he(o),"onStoreChange",function(l,c,u){var f=o.props,m=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,p=f.onReset,v=u.store,y=o.getNamePath(),b=o.getValue(l),C=o.getValue(v),x=c&&Jr(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!li(b,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ot,o.warnings=Ot,o.triggerMetaEvent()),u.type){case"reset":if(!c||x){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ot,o.warnings=Ot,o.triggerMetaEvent(),p?.(),o.refresh();return}break;case"remove":{if(m&&Xa(m,l,v,b,C,u)){o.reRender();return}break}case"setField":{var S=u.data;if(x){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Ot),"warnings"in S&&(o.warnings=S.warnings||Ot),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Jr(c,y,!0)){o.reRender();return}if(m&&!y.length&&Xa(m,l,v,b,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=g.map(Ge);if(w.some(function(E){return Jr(u.relatedFields,E)})){o.reRender();return}break}default:if(x||(!g.length||y.length||m)&&Xa(m,l,v,b,C,u)){o.reRender();return}break}m===!0&&o.reRender()}),_(he(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},m=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,p=Promise.resolve().then(Mr(ft().mark(function v(){var y,b,C,x,S,w,E;return ft().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(y=o.props,b=y.validateFirst,C=b===void 0?!1:b,x=y.messageVariables,S=y.validateDebounce,w=o.getRules(),m&&(w=w.filter(function(R){return R}).filter(function(R){var N=R.validateTrigger;if(!N)return!0;var I=Bi(N);return I.includes(m)})),!(S&&m)){O.next=10;break}return O.next=8,new Promise(function(R){setTimeout(R,S)});case 8:if(o.validatePromise===p){O.next=10;break}return O.abrupt("return",[]);case 10:return E=K0(c,u,w,l,C,x),E.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ot;if(o.validatePromise===p){var N;o.validatePromise=null;var I=[],F=[];(N=R.forEach)===null||N===void 0||N.call(R,function(T){var V=T.rule.warningOnly,j=T.errors,M=j===void 0?Ot:j;V?F.push.apply(F,re(M)):I.push.apply(I,re(M))}),o.errors=I,o.warnings=F,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},v)})));return g||(o.validatePromise=p,o.dirty=!0,o.errors=Ot,o.warnings=Ot,o.triggerMetaEvent(),o.reRender()),p}),_(he(o),"isFieldValidating",function(){return!!o.validatePromise}),_(he(o),"isFieldTouched",function(){return o.touched}),_(he(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Pr),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(he(o),"getErrors",function(){return o.errors}),_(he(o),"getWarnings",function(){return o.warnings}),_(he(o),"isListField",function(){return o.props.isListField}),_(he(o),"isList",function(){return o.props.isList}),_(he(o),"isPreserve",function(){return o.props.preserve}),_(he(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(he(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return A(A({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=In(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(he(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return _t(l||c(!0),u)}),_(he(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,m=c.validateTrigger,h=c.getValueFromEvent,g=c.normalize,p=c.valuePropName,v=c.getValueProps,y=c.fieldContext,b=m!==void 0?m:y.validateTrigger,C=o.getNamePath(),x=y.getInternalHooks,S=y.getFieldsValue,w=x(Pr),E=w.dispatch,$=o.getValue(),O=v||function(T){return _({},p,T)},R=l[f],N=u!==void 0?O($):{};process.env.NODE_ENV!=="production"&&N&&Object.keys(N).forEach(function(T){Le(typeof N[T]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(T,")"))});var I=A(A({},l),N);I[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var T,V=arguments.length,j=new Array(V),M=0;M<V;M++)j[M]=arguments[M];h?T=h.apply(void 0,j):T=J0.apply(void 0,[p].concat(j)),g&&(T=g(T,$,S(!0))),T!==$&&E({type:"updateValue",namePath:C,value:T}),R&&R.apply(void 0,j)};var F=Bi(b||[]);return F.forEach(function(T){var V=I[T];I[T]=function(){V&&V.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&E({type:"validateField",namePath:C,triggerName:T})}}),I}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(Pr),s=i.initEntityValue;s(he(o))}return o}return rt(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(Pr),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:d.isValidElement(s)?c=d.cloneElement(s,this.getControlled(s.props)):(Le(!s,"`children` of Field is not validate ReactElement."),c=s),d.createElement(d.Fragment,{key:o},c)}}]),r})(d.Component);_(Es,"contextType",Ir);_(Es,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $s(e){var t,r=e.name,n=dt(e,eb),o=d.useContext(Ir),a=d.useContext(Bn),i=r!==void 0?Ge(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&i.length<=1&&Le(!1,"`preserve` should not apply on Form.List fields."),d.createElement(Es,Fe({key:l,name:i,isListField:s},n,{fieldContext:o}))}function yd(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=d.useContext(Ir),l=d.useContext(Bn),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var p=Ge(s.prefixName)||[];return[].concat(re(p),re(Ge(t)))},[s.prefixName,t]),m=d.useMemo(function(){return A(A({},s),{},{prefixName:f})},[s,f]),h=d.useMemo(function(){return{getKey:function(v){var y=f.length,b=v[y];return[u.keys[b],v.slice(y+1)]}}},[f]);if(typeof n!="function")return Le(!1,"Form.List only accepts function as children."),null;var g=function(v,y,b){var C=b.source;return C==="internal"?!1:v!==y};return d.createElement(Bn.Provider,{value:h},d.createElement(Ir.Provider,{value:m},d.createElement($s,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(p,v){var y=p.value,b=y===void 0?[]:y,C=p.onChange,x=s.getFieldValue,S=function(){var O=x(f||[]);return O||[]},w={add:function(O,R){var N=S();R>=0&&R<=N.length?(u.keys=[].concat(re(u.keys.slice(0,R)),[u.id],re(u.keys.slice(R))),C([].concat(re(N.slice(0,R)),[O],re(N.slice(R))))):(process.env.NODE_ENV!=="production"&&(R<0||R>N.length)&&Le(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(re(u.keys),[u.id]),C([].concat(re(N),[O]))),u.id+=1},remove:function(O){var R=S(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(u.keys=u.keys.filter(function(I,F){return!N.has(F)}),C(R.filter(function(I,F){return!N.has(F)})))},move:function(O,R){if(O!==R){var N=S();O<0||O>=N.length||R<0||R>=N.length||(u.keys=Ql(u.keys,O,R),C(Ql(N,O,R)))}}},E=b||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&Le(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(E.map(function($,O){var R=u.keys[O];return R===void 0&&(u.keys[O]=u.id,R=u.keys[O],u.id+=1),{name:O,key:R,isListField:!0}}),w,v)})))}function tb(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var Cd="__@field_split__";function Ka(e){return e.map(function(t){return"".concat(de(t),":").concat(t)}).join(Cd)}var Wr=(function(){function e(){tt(this,e),_(this,"kvs",new Map)}return rt(e,[{key:"set",value:function(r,n){this.kvs.set(Ka(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ka(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ka(r))}},{key:"map",value:function(r){return re(this.kvs.entries()).map(function(n){var o=X(n,2),a=o[0],i=o[1],s=a.split(Cd);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=X(c,3),f=u[1],m=u[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e})(),rb=["name"],nb=rt(function e(t){var r=this;tt(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(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}}),_(this,"getInternalHooks",function(n){return n===Pr?(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}):(Le(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=Xr(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Rt(i,l,_t(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Wr;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=_t(r.initialValues,n);return n.length?Xr(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||Le(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Wr;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=Ge(a);return o.get(i)||{INVALIDATE_NAME_PATH:Ge(a)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&de(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var f,m,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,p;if((g=(p=u).isList)!==null&&g!==void 0&&g.call(p))return}else if(!a&&(f=(m=u).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)c.push(h);else{var v="getMeta"in u?u.getMeta():null;i(v)&&c.push(h)}}),Yl(r.store,c.map(Ge))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=Ge(n);return _t(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ge(n[i]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=Ge(n),a=r.getFieldsError([o])[0];return a.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Ge(n),a=r.getFieldsError([o])[0];return a.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(Ge),c=!1):(l=null,c=i):(l=i.map(Ge),c=s);var u=r.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(p){return f(p)||p.isList()}):u.some(f);var m=new Wr;l.forEach(function(p){m.set(p,[])}),u.forEach(function(p){var v=p.getNamePath();l.forEach(function(y){y.every(function(b,C){return v[C]===b})&&m.update(y,function(b){return[].concat(re(b),[p])})})});var h=function(v){return v.some(f)},g=m.map(function(p){var v=p.value;return v});return c?g.every(h):g.some(h)}),_(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),_(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(Ge);return o.some(function(i){var s=i.getNamePath();return Jr(a,s)&&i.isFieldValidating()})}),_(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),_(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Wr,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var m=u.getNamePath(),h=r.getInitialValue(m);if(h!==void 0)Le(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=o.get(m);if(g&&g.size>1)Le(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var p=r.getFieldValue(m),v=u.isListField();!v&&(!n.skipExist||p===void 0)&&r.updateStore(Rt(r.store,m,re(g)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,re(re(c).map(function(f){return f.entity})))}})):s=a,i(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Xr(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Ge);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(Rt(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=dt(i,rb),c=Ge(s);a.push(c),"value"in l&&r.updateStore(Rt(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=A(A({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=_t(r.store,a);i===void 0&&r.updateStore(Rt(r.store,a,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[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 c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!bd(f.getNamePath(),o)})){var u=r.store;r.updateStore(Rt(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),_(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=A(A({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(re(a))}),a}),_(this,"updateValue",function(n,o){var a=Ge(n),i=r.store;r.updateStore(Rt(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=Yl(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(re(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=Xr(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new Wr;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Ge(u);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),l(m))}})};return s(n),a}),_(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new Wr;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return Jr(n,u)});l.length&&a(l,i)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(Ge):[],c=[],u=String(Date.now()),f=new Set,m=i||{},h=m.recursive,g=m.dirty;r.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(g&&!b.isFieldDirty())){var C=b.getNamePath();if(f.add(C.join(u)),!s||Jr(l,C,h)){var x=b.validateRules(A({validateMessages:A(A({},hd),r.validateMessages)},i));c.push(x.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(S){var w,E=[],$=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(O){var R=O.rule.warningOnly,N=O.errors;R?$.push.apply($,re(N)):E.push.apply(E,re(N))}),E.length?Promise.reject({name:C,errors:E,warnings:$}):{name:C,errors:E,warnings:$}}))}}});var p=tb(c);r.lastValidatePromise=p,p.catch(function(b){return b}).then(function(b){var C=b.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,C,{type:"validateFinish"}),r.triggerOnFieldsChange(C,b)});var v=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var C=b.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:C,outOfDate:r.lastValidatePromise!==p})});v.catch(function(b){return b});var y=l.filter(function(b){return f.has(b.join(u))});return r.triggerOnFieldsChange(y),v}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Os(e){var t=d.useRef(),r=d.useState({}),n=X(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new nb(a);t.current=i.getForm()}return[t.current]}var Qi=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Sd=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=d.useContext(Qi),s=d.useRef({});return d.createElement(Qi.Provider,{value:A(A({},i),{},{validateMessages:A(A({},i.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=A(A({},s.current),{},_({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=A({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},ob=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ab=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,g=t.onValuesChange,p=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,C=dt(t,ob),x=d.useRef(null),S=d.useContext(Qi),w=Os(i),E=X(w,1),$=E[0],O=$.getInternalHooks(Pr),R=O.useSubscribe,N=O.setInitialValues,I=O.setCallbacks,F=O.setValidateMessages,T=O.setPreserve,V=O.destroyForm;d.useImperativeHandle(r,function(){return A(A({},$),{},{nativeElement:x.current})}),d.useEffect(function(){return S.registerForm(n,$),function(){S.unregisterForm(n)}},[S,$,n]),F(A(A({},S.validateMessages),f)),I({onValuesChange:g,onFieldsChange:function(L){if(S.triggerFormChange(n,L),p){for(var q=arguments.length,B=new Array(q>1?q-1:0),oe=1;oe<q;oe++)B[oe-1]=arguments[oe];p.apply(void 0,[L].concat(B))}},onFinish:function(L){S.triggerFormFinish(n,L),v&&v(L)},onFinishFailed:y}),T(s);var j=d.useRef(null);N(o,!j.current),j.current||(j.current=!0),d.useEffect(function(){return function(){return V(b)}},[]);var M,D=typeof l=="function";if(D){var z=$.getFieldsValue(!0);M=l(z,$)}else M=l;R(!D);var U=d.useRef();d.useEffect(function(){Z0(U.current||[],a||[])||$.setFields(a||[]),U.current=a},[a,$]);var K=d.useMemo(function(){return A(A({},$),{},{validateTrigger:h})},[$,h]),k=d.createElement(Bn.Provider,{value:null},d.createElement(Ir.Provider,{value:K},M));return u===!1?k:d.createElement(u,Fe({},C,{ref:x,onSubmit:function(L){L.preventDefault(),L.stopPropagation(),$.submit()},onReset:function(L){var q;L.preventDefault(),$.resetFields(),(q=C.onReset)===null||q===void 0||q.call(C,L)}}),k)};function Zl(e){try{return JSON.stringify(e)}catch{return Math.random()}}var ib=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);Le(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function xd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=h0(a)?{form:a}:a,s=i.form,l=P.useState(),c=X(l,2),u=c[0],f=c[1],m=P.useMemo(function(){return Zl(u)},[u]),h=P.useRef(m);h.current=m;var g=P.useContext(Ir),p=s||g,v=p&&p._init;process.env.NODE_ENV!=="production"&&Le(t.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=Ge(n),b=P.useRef(y);return b.current=y,ib(y),P.useEffect(function(){if(v){var C=p.getFieldsValue,x=p.getInternalHooks,S=x(Pr),w=S.registerWatch,E=function(N,I){var F=i.preserve?I:N;return typeof n=="function"?n(F):_t(F,b.current)},$=w(function(R,N){var I=E(R,N),F=Zl(I);h.current!==F&&(h.current=F,f(I))}),O=E(C(),C(!0));return u!==O&&f(O),$}},[v]),u}var sb=d.forwardRef(ab),mn=sb;mn.FormProvider=Sd;mn.Field=$s;mn.List=yd;mn.useForm=Os;mn.useWatch=xd;const nr=d.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),wd=d.createContext(null),Ed=e=>{const t=Jn(e,["prefixCls"]);return d.createElement(Sd,Object.assign({},t))},Ps=d.createContext({prefixCls:""}),xt=d.createContext({});process.env.NODE_ENV!=="production"&&(xt.displayName="FormItemInputContext");const $d=({children:e,status:t,override:r})=>{const n=d.useContext(xt),o=d.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return d.createElement(xt.Provider,{value:o},e)},Od=d.createContext(void 0),Zi=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=P.createElement($d,{override:!0,status:!0},o)),t&&(o=P.createElement(Xp,null,o)),o},lb=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},cb=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ub=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${n}${t}-${i}`]={display:"none"},a[`${n}-push-${i}`]={insetInlineStart:"auto"},a[`${n}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${n}${t}-offset-${i}`]={marginInlineStart:0},a[`${n}${t}-order-${i}`]={order:0}):(a[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${n}${t}-order-${i}`]={order:i});return a[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},a},Ji=(e,t)=>ub(e,t),db=(e,t,r)=>({[`@media (min-width: ${be(t)})`]:Object.assign({},Ji(e,r))}),fb=()=>({}),vb=()=>({}),mb=ar("Grid",lb,fb),gb=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),pb=ar("Grid",e=>{const t=vt(e,{gridColumns:24}),r=gb(t);return delete r.xs,[cb(t),Ji(t,""),Ji(t,"-xs"),Object.keys(r).map(n=>db(t,r[n],`-${n}`)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},vb),hb=(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?.substr(0,4))});function bb(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,m=d.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],p=r.points[1],v=g[0],y=g[1],b=p[0],C=p[1];v===b||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===C||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:m,className:J("".concat(t,"-arrow"),i),style:h},s)}function yb(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?d.createElement(un,Fe({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return d.createElement("div",{style:{zIndex:n},className:J("".concat(t,"-mask"),s)})}):null}var Pd=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Pd.displayName="PopupContent");var Rd=d.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,g=e.arrowPos,p=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,x=e.autoDestroy,S=e.portal,w=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,R=e.onPointerDownCapture,N=e.ready,I=e.offsetX,F=e.offsetY,T=e.offsetR,V=e.offsetB,j=e.onAlign,M=e.onPrepare,D=e.stretch,z=e.targetWidth,U=e.targetHeight,K=typeof r=="function"?r():r,k=l||c,H=C?.length>0,L=d.useState(!C||!H),q=X(L,2),B=q[0],oe=q[1];if(Ue(function(){!B&&H&&i&&oe(!0)},[B,H,i]),!B)return null;var G="auto",Q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(N||!l){var ee,te=p.points,se=p.dynamicInset||((ee=p._experimental)===null||ee===void 0?void 0:ee.dynamicInset),le=se&&te[0][1]==="r",W=se&&te[0][0]==="b";le?(Q.right=T,Q.left=G):(Q.left=I,Q.right=G),W?(Q.bottom=V,Q.top=G):(Q.top=F,Q.bottom=G)}var ce={};return D&&(D.includes("height")&&U?ce.height=U:D.includes("minHeight")&&U&&(ce.minHeight=U),D.includes("width")&&z?ce.width=z:D.includes("minWidth")&&z&&(ce.minWidth=z)),l||(ce.pointerEvents="none"),d.createElement(S,{open:b||k,getContainer:C&&function(){return C(i)},autoDestroy:x},d.createElement(yb,{prefixCls:o,open:l,zIndex:w,mask:m,motion:y}),d.createElement(Gn,{onResize:j,disabled:!l},function(Y){return d.createElement(un,Fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:M,onEnterPrepare:M,visible:l,onVisibleChanged:function(ge){var ae;v==null||(ae=v.onVisibleChanged)===null||ae===void 0||ae.call(v,ge),s(ge)}}),function(ie,ge){var ae=ie.className,Ce=ie.style,me=J(o,ae,n);return d.createElement("div",{ref:hr(Y,t,ge),className:me,style:A(A(A(A({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},Q),ce),Ce),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:O,onClick:f,onPointerDownCapture:R},h&&d.createElement(bb,{prefixCls:o,arrow:h,arrowPos:g,align:p}),d.createElement(Pd,{cache:!l&&!u},K))})}))});process.env.NODE_ENV!=="production"&&(Rd.displayName="Popup");var _d=d.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=ln(r),a=d.useCallback(function(s){os(t,n?n(s):s)},[n]),i=Ko(a,qn(r));return o?d.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(_d.displayName="TriggerWrapper");var Jl=d.createContext(null);function ec(e){return e?Array.isArray(e)?e:[e]:[]}function Cb(e,t,r,n){return d.useMemo(function(){var o=ec(r??t),a=ec(n??t),i=new Set(o),s=new Set(a);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 Sb(){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 xb(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(Sb((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function tc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function to(e){return e.ownerDocument.defaultView}function es(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=to(r).getComputedStyle(r),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Wn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function $n(e){return Wn(parseFloat(e),0)}function rc(e,t){var r=A({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=to(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),m=n.offsetHeight,h=n.clientHeight,g=n.offsetWidth,p=n.clientWidth,v=$n(s),y=$n(l),b=$n(c),C=$n(u),x=Wn(Math.round(f.width/g*1e3)/1e3),S=Wn(Math.round(f.height/m*1e3)/1e3),w=(g-p-b-C)*x,E=(m-h-v-y)*S,$=v*S,O=y*S,R=b*x,N=C*x,I=0,F=0;if(a==="clip"){var T=$n(i);I=T*x,F=T*S}var V=f.x+R-I,j=f.y+$-F,M=V+f.width+2*I-R-N-w,D=j+f.height+2*F-$-O-E;r.left=Math.max(r.left,V),r.top=Math.max(r.top,j),r.right=Math.min(r.right,M),r.bottom=Math.min(r.bottom,D)}}),r}function nc(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 oc(e,t){var r=t||[],n=X(r,2),o=n[0],a=n[1];return[nc(e.width,o),nc(e.height,a)]}function ac(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function kr(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function dr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function wb(e,t,r,n,o,a,i){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=X(s,2),c=l[0],u=l[1],f=d.useRef(0),m=d.useMemo(function(){return t?es(t):[]},[t]),h=d.useRef({}),g=function(){h.current={}};e||g();var p=st(function(){if(t&&r&&e){let Et=function(Sn,Qt){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,xn=k.x+Sn,vo=k.y+Qt,Ea=xn+W,$a=vo+le,Oa=Math.max(xn,ur.left),ne=Math.max(vo,ur.top),fe=Math.min(Ea,ur.right),De=Math.min($a,ur.bottom);return Math.max(0,(fe-Oa)*(De-ne))},zr=function(){Mt=k.y+Pe,wt=Mt+le,kt=k.x+Ne,At=kt+W};var b,C,x,S,w=t,E=w.ownerDocument,$=to(w),O=$.getComputedStyle(w),R=O.position,N=w.style.left,I=w.style.top,F=w.style.right,T=w.style.bottom,V=w.style.overflow,j=A(A({},o[n]),a),M=E.createElement("div");(b=w.parentElement)===null||b===void 0||b.appendChild(M),M.style.left="".concat(w.offsetLeft,"px"),M.style.top="".concat(w.offsetTop,"px"),M.style.position=R,M.style.height="".concat(w.offsetHeight,"px"),M.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var D;if(Array.isArray(r))D={x:r[0],y:r[1],width:0,height:0};else{var z,U,K=r.getBoundingClientRect();K.x=(z=K.x)!==null&&z!==void 0?z:K.left,K.y=(U=K.y)!==null&&U!==void 0?U:K.top,D={x:K.x,y:K.y,width:K.width,height:K.height}}var k=w.getBoundingClientRect(),H=$.getComputedStyle(w),L=H.height,q=H.width;k.x=(C=k.x)!==null&&C!==void 0?C:k.left,k.y=(x=k.y)!==null&&x!==void 0?x:k.top;var B=E.documentElement,oe=B.clientWidth,G=B.clientHeight,Q=B.scrollWidth,ee=B.scrollHeight,te=B.scrollTop,se=B.scrollLeft,le=k.height,W=k.width,ce=D.height,Y=D.width,ie={left:0,top:0,right:oe,bottom:G},ge={left:-se,top:-te,right:Q-se,bottom:ee-te},ae=j.htmlRegion,Ce="visible",me="visibleFirst";ae!=="scroll"&&ae!==me&&(ae=Ce);var ye=ae===me,ue=rc(ge,m),Z=rc(ie,m),pe=ae===Ce?Z:ue,Ee=ye?Z:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Xe=w.getBoundingClientRect();w.style.left=N,w.style.top=I,w.style.right=F,w.style.bottom=T,w.style.overflow=V,(S=w.parentElement)===null||S===void 0||S.removeChild(M);var Me=Wn(Math.round(W/parseFloat(q)*1e3)/1e3),je=Wn(Math.round(le/parseFloat(L)*1e3)/1e3);if(Me===0||je===0||Fn(r)&&!Cs(r))return;var ct=j.offset,Oe=j.targetOffset,$e=oc(k,ct),Se=X($e,2),ve=Se[0],Ae=Se[1],nt=oc(D,Oe),we=X(nt,2),Ke=we[0],Xt=we[1];D.x-=Ke,D.y-=Xt;var gn=j.points||[],Ar=X(gn,2),pn=Ar[0],jr=Ar[1],Ft=ac(jr),ot=ac(pn),ke=kr(D,Ft),Kt=kr(k,ot),at=A({},j),Ne=ke.x-Kt.x+ve,Pe=ke.y-Kt.y+Ae,Je=Et(Ne,Pe),Bt=Et(Ne,Pe,Z),gt=kr(D,["t","l"]),He=kr(k,["t","l"]),ir=kr(D,["b","r"]),Yt=kr(k,["b","r"]),Te=j.overflow||{},qe=Te.adjustX,mt=Te.adjustY,it=Te.shiftX,Wt=Te.shiftY,Vr=function(Qt){return typeof Qt=="boolean"?Qt:Qt>=0},Mt,wt,kt,At;zr();var Dr=Vr(mt),Ve=ot[0]===Ft[0];if(Dr&&ot[0]==="t"&&(wt>Ee.bottom||h.current.bt)){var Cr=Pe;Ve?Cr-=le-ce:Cr=gt.y-Yt.y-Ae;var no=Et(Ne,Cr),va=Et(Ne,Cr,Z);no>Je||no===Je&&(!ye||va>=Bt)?(h.current.bt=!0,Pe=Cr,Ae=-Ae,at.points=[dr(ot,0),dr(Ft,0)]):h.current.bt=!1}if(Dr&&ot[0]==="b"&&(Mt<Ee.top||h.current.tb)){var Sr=Pe;Ve?Sr+=le-ce:Sr=ir.y-He.y-Ae;var oo=Et(Ne,Sr),ma=Et(Ne,Sr,Z);oo>Je||oo===Je&&(!ye||ma>=Bt)?(h.current.tb=!0,Pe=Sr,Ae=-Ae,at.points=[dr(ot,0),dr(Ft,0)]):h.current.tb=!1}var ao=Vr(qe),io=ot[1]===Ft[1];if(ao&&ot[1]==="l"&&(At>Ee.right||h.current.rl)){var xr=Ne;io?xr-=W-Y:xr=gt.x-Yt.x-ve;var wr=Et(xr,Pe),hn=Et(xr,Pe,Z);wr>Je||wr===Je&&(!ye||hn>=Bt)?(h.current.rl=!0,Ne=xr,ve=-ve,at.points=[dr(ot,1),dr(Ft,1)]):h.current.rl=!1}if(ao&&ot[1]==="r"&&(kt<Ee.left||h.current.lr)){var Er=Ne;io?Er+=W-Y:Er=ir.x-He.x-ve;var bn=Et(Er,Pe),Lr=Et(Er,Pe,Z);bn>Je||bn===Je&&(!ye||Lr>=Bt)?(h.current.lr=!0,Ne=Er,ve=-ve,at.points=[dr(ot,1),dr(Ft,1)]):h.current.lr=!1}zr();var jt=it===!0?0:it;typeof jt=="number"&&(kt<Z.left&&(Ne-=kt-Z.left-ve,D.x+Y<Z.left+jt&&(Ne+=D.x-Z.left+Y-jt)),At>Z.right&&(Ne-=At-Z.right-ve,D.x>Z.right-jt&&(Ne+=D.x-Z.right+jt)));var sr=Wt===!0?0:Wt;typeof sr=="number"&&(Mt<Z.top&&(Pe-=Mt-Z.top-Ae,D.y+ce<Z.top+sr&&(Pe+=D.y-Z.top+ce-sr)),wt>Z.bottom&&(Pe-=wt-Z.bottom-Ae,D.y>Z.bottom-sr&&(Pe+=D.y-Z.bottom+sr)));var lr=k.x+Ne,cr=lr+W,yn=k.y+Pe,ga=yn+le,so=D.x,lo=so+Y,co=D.y,pa=co+ce,ha=Math.max(lr,so),uo=Math.min(cr,lo),ba=(ha+uo)/2,ya=ba-lr,fo=Math.max(yn,co),Ca=Math.min(ga,pa),Sa=(fo+Ca)/2,xa=Sa-yn;i?.(t,at);var qt=Xe.right-k.x-(Ne+k.width),Cn=Xe.bottom-k.y-(Pe+k.height);Me===1&&(Ne=Math.round(Ne),qt=Math.round(qt)),je===1&&(Pe=Math.round(Pe),Cn=Math.round(Cn));var wa={ready:!0,offsetX:Ne/Me,offsetY:Pe/je,offsetR:qt/Me,offsetB:Cn/je,arrowX:ya/Me,arrowY:xa/je,scaleX:Me,scaleY:je,align:at};u(wa)}}),v=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&p()})},y=function(){u(function(C){return A(A({},C),{},{ready:!1})})};return Ue(y,[n]),Ue(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function Eb(e,t,r,n,o){Ue(function(){if(e&&t&&r){let f=function(){n(),o()};var a=t,i=r,s=es(a),l=es(i),c=to(i),u=new Set([c].concat(re(s),re(l)));return u.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){u.forEach(function(m){m.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function $b(e,t,r,n,o,a,i,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&n&&(!o||a)){var f=function(){c.current=!1},m=function(x){var S;l.current&&!i(((S=x.composedPath)===null||S===void 0||(S=S.call(x))===null||S===void 0?void 0:S[0])||x.target)&&!c.current&&s(!1)},h=to(n);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0);var g=ko(r);if(g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),process.env.NODE_ENV!=="production"){var p,v,y=r==null||(p=r.getRootNode)===null||p===void 0?void 0:p.call(r),b=(v=n.getRootNode)===null||v===void 0?void 0:v.call(n);en(y===b,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,r,n,o,a]);function u(){c.current=!0}return u}var Ob=["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 Pb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ws,t=d.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,m=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,p=r.mouseEnterDelay,v=r.mouseLeaveDelay,y=v===void 0?.1:v,b=r.focusDelay,C=r.blurDelay,x=r.mask,S=r.maskClosable,w=S===void 0?!0:S,E=r.getPopupContainer,$=r.forceRender,O=r.autoDestroy,R=r.destroyPopupOnHide,N=r.popup,I=r.popupClassName,F=r.popupStyle,T=r.popupPlacement,V=r.builtinPlacements,j=V===void 0?{}:V,M=r.popupAlign,D=r.zIndex,z=r.stretch,U=r.getPopupClassNameFromAlign,K=r.fresh,k=r.alignPoint,H=r.onPopupClick,L=r.onPopupAlign,q=r.arrow,B=r.popupMotion,oe=r.maskMotion,G=r.popupTransitionName,Q=r.popupAnimation,ee=r.maskTransitionName,te=r.maskAnimation,se=r.className,le=r.getTriggerDOMNode,W=dt(r,Ob),ce=O||R||!1,Y=d.useState(!1),ie=X(Y,2),ge=ie[0],ae=ie[1];Ue(function(){ae(hb())},[]);var Ce=d.useRef({}),me=d.useContext(Jl),ye=d.useMemo(function(){return{registerSubPopup:function(fe,De){Ce.current[fe]=De,me?.registerSubPopup(fe,De)}}},[me]),ue=md(),Z=d.useState(null),pe=X(Z,2),Ee=pe[0],Xe=pe[1],Me=d.useRef(null),je=st(function(ne){Me.current=ne,Fn(ne)&&Ee!==ne&&Xe(ne),me?.registerSubPopup(ue,ne)}),ct=d.useState(null),Oe=X(ct,2),$e=Oe[0],Se=Oe[1],ve=d.useRef(null),Ae=st(function(ne){Fn(ne)&&$e!==ne&&(Se(ne),ve.current=ne)}),nt=d.Children.only(i),we=nt?.props||{},Ke={},Xt=st(function(ne){var fe,De,Qe=$e;return Qe?.contains(ne)||((fe=ko(Qe))===null||fe===void 0?void 0:fe.host)===ne||ne===Qe||Ee?.contains(ne)||((De=ko(Ee))===null||De===void 0?void 0:De.host)===ne||ne===Ee||Object.values(Ce.current).some(function(Be){return Be?.contains(ne)||ne===Be})}),gn=tc(a,B,Q,G),Ar=tc(a,oe,te,ee),pn=d.useState(m||!1),jr=X(pn,2),Ft=jr[0],ot=jr[1],ke=f??Ft,Kt=st(function(ne){f===void 0&&ot(ne)});Ue(function(){ot(f||!1)},[f]);var at=d.useRef(ke);at.current=ke;var Ne=d.useRef([]);Ne.current=[];var Pe=st(function(ne){var fe;Kt(ne),((fe=Ne.current[Ne.current.length-1])!==null&&fe!==void 0?fe:ke)!==ne&&(Ne.current.push(ne),h?.(ne))}),Je=d.useRef(),Bt=function(){clearTimeout(Je.current)},gt=function(fe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Bt(),De===0?Pe(fe):Je.current=setTimeout(function(){Pe(fe)},De*1e3)};d.useEffect(function(){return Bt},[]);var He=d.useState(!1),ir=X(He,2),Yt=ir[0],Te=ir[1];Ue(function(ne){(!ne||ke)&&Te(!0)},[ke]);var qe=d.useState(null),mt=X(qe,2),it=mt[0],Wt=mt[1],Vr=d.useState(null),Mt=X(Vr,2),wt=Mt[0],kt=Mt[1],At=function(fe){kt([fe.clientX,fe.clientY])},Dr=wb(ke,Ee,k&&wt!==null?wt:$e,T,j,M,L),Ve=X(Dr,11),Cr=Ve[0],no=Ve[1],va=Ve[2],Sr=Ve[3],oo=Ve[4],ma=Ve[5],ao=Ve[6],io=Ve[7],xr=Ve[8],wr=Ve[9],hn=Ve[10],Er=Cb(ge,l,c,u),bn=X(Er,2),Lr=bn[0],jt=bn[1],sr=Lr.has("click"),lr=jt.has("click")||jt.has("contextMenu"),cr=st(function(){Yt||hn()}),yn=function(){at.current&&k&&lr&&gt(!1)};Eb(ke,$e,Ee,cr,yn),Ue(function(){cr()},[wt,T]),Ue(function(){ke&&!(j!=null&&j[T])&&cr()},[JSON.stringify(M)]);var ga=d.useMemo(function(){var ne=xb(j,a,wr,k);return J(ne,U?.(wr))},[wr,U,j,a,k]);d.useImperativeHandle(n,function(){return{nativeElement:ve.current,popupElement:Me.current,forceAlign:cr}});var so=d.useState(0),lo=X(so,2),co=lo[0],pa=lo[1],ha=d.useState(0),uo=X(ha,2),ba=uo[0],ya=uo[1],fo=function(){if(z&&$e){var fe=$e.getBoundingClientRect();pa(fe.width),ya(fe.height)}},Ca=function(){fo(),cr()},Sa=function(fe){Te(!1),hn(),g?.(fe)},xa=function(){return new Promise(function(fe){fo(),Wt(function(){return fe})})};Ue(function(){it&&(hn(),it(),Wt(null))},[it]);function qt(ne,fe,De,Qe){Ke[ne]=function(Be){var mo;Qe?.(Be),gt(fe,De);for(var Pa=arguments.length,Fs=new Array(Pa>1?Pa-1:0),go=1;go<Pa;go++)Fs[go-1]=arguments[go];(mo=we[ne])===null||mo===void 0||mo.call.apply(mo,[we,Be].concat(Fs))}}(sr||lr)&&(Ke.onClick=function(ne){var fe;at.current&&lr?gt(!1):!at.current&&sr&&(At(ne),gt(!0));for(var De=arguments.length,Qe=new Array(De>1?De-1:0),Be=1;Be<De;Be++)Qe[Be-1]=arguments[Be];(fe=we.onClick)===null||fe===void 0||fe.call.apply(fe,[we,ne].concat(Qe))});var Cn=$b(ke,lr,$e,Ee,x,w,Xt,gt),wa=Lr.has("hover"),Et=jt.has("hover"),zr,Sn;wa&&(qt("onMouseEnter",!0,p,function(ne){At(ne)}),qt("onPointerEnter",!0,p,function(ne){At(ne)}),zr=function(fe){(ke||Yt)&&Ee!==null&&Ee!==void 0&&Ee.contains(fe.target)&&gt(!0,p)},k&&(Ke.onMouseMove=function(ne){var fe;(fe=we.onMouseMove)===null||fe===void 0||fe.call(we,ne)})),Et&&(qt("onMouseLeave",!1,y),qt("onPointerLeave",!1,y),Sn=function(){gt(!1,y)}),Lr.has("focus")&&qt("onFocus",!0,b),jt.has("focus")&&qt("onBlur",!1,C),Lr.has("contextMenu")&&(Ke.onContextMenu=function(ne){var fe;at.current&&jt.has("contextMenu")?gt(!1):(At(ne),gt(!0)),ne.preventDefault();for(var De=arguments.length,Qe=new Array(De>1?De-1:0),Be=1;Be<De;Be++)Qe[Be-1]=arguments[Be];(fe=we.onContextMenu)===null||fe===void 0||fe.call.apply(fe,[we,ne].concat(Qe))}),se&&(Ke.className=J(we.className,se));var Qt=d.useRef(!1);Qt.current||(Qt.current=$||ke||Yt);var ur=A(A({},we),Ke),xn={},vo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vo.forEach(function(ne){W[ne]&&(xn[ne]=function(){for(var fe,De=arguments.length,Qe=new Array(De),Be=0;Be<De;Be++)Qe[Be]=arguments[Be];(fe=ur[ne])===null||fe===void 0||fe.call.apply(fe,[ur].concat(Qe)),W[ne].apply(W,Qe)})});var Ea=d.cloneElement(nt,A(A({},ur),xn)),$a={x:ma,y:ao},Oa=q?A({},q!==!0?q:{}):null;return d.createElement(d.Fragment,null,d.createElement(Gn,{disabled:!ke,ref:Ae,onResize:Ca},d.createElement(_d,{getTriggerDOMNode:le},Ea)),Qt.current&&d.createElement(Jl.Provider,{value:ye},d.createElement(Rd,{portal:e,ref:je,prefixCls:a,popup:N,className:J(I,ga),style:F,target:$e,onMouseEnter:zr,onMouseLeave:Sn,onPointerEnter:zr,zIndex:D,open:ke,keepDom:Yt,fresh:K,onClick:H,onPointerDownCapture:Cn,mask:x,motion:gn,maskMotion:Ar,onVisibleChanged:Sa,onPrepare:xa,forceRender:$,autoDestroy:ce,getPopupContainer:E,align:wr,arrow:Oa,arrowPos:$a,ready:Cr,offsetX:no,offsetY:va,offsetR:Sr,offsetB:oo,onAlign:cr,stretch:z,targetWidth:co/io,targetHeight:ba/xr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Rb=Pb(ws);function ts(e,t,r){return J({[`${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 Rs=(e,t)=>t||e,Nd=(e,t,r)=>{var n,o;const{variant:a,[e]:i}=d.useContext(We),s=d.useContext(Od),l=i?.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:a)!==null&&o!==void 0?o:"outlined";const u=Fm.includes(c);return[c,u]};var _b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Nb=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:_b}))},Td=d.forwardRef(Nb);process.env.NODE_ENV!=="production"&&(Td.displayName="SearchOutlined");const Tb=(e,t)=>{typeof e?.addEventListener<"u"?e.addEventListener("change",t):typeof e?.addListener<"u"&&e.addListener(t)},Ib=(e,t)=>{typeof e?.removeEventListener<"u"?e.removeEventListener("change",t):typeof e?.removeListener<"u"&&e.removeListener(t)},kn=["xxl","xl","lg","md","sm","xs"],Fb=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)`}),Mb=e=>{const t=e,r=[].concat(kn).reverse();return r.forEach((n,o)=>{const a=n.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<r.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${r[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e},Ab=()=>{const[,e]=or(),t=Fb(Mb(e));return P.useMemo(()=>{const r=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,r.forEach(i=>i(o)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(o),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},l=window.matchMedia(i);Tb(l,s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];Ib(i?.mql,i?.listener)}),r.clear()}}},[t])};function jb(e=!0,t={}){const r=P.useRef(t),[,n]=bp(),o=Ab();return Ue(()=>{const a=o.subscribe(i=>{r.current=i,e&&n()});return()=>o.unsubscribe(a)},[]),r.current}function Id(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return d.createElement("div",{className:J("".concat(r,"-content"),i),style:s},d.createElement("div",{className:J("".concat(r,"-inner"),a),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var qr={shiftX:64,adjustY:1},Gr={adjustX:1,shiftY:!0},Pt=[0,0],Vb={left:{points:["cr","cl"],overflow:Gr,offset:[-4,0],targetOffset:Pt},right:{points:["cl","cr"],overflow:Gr,offset:[4,0],targetOffset:Pt},top:{points:["bc","tc"],overflow:qr,offset:[0,-4],targetOffset:Pt},bottom:{points:["tc","bc"],overflow:qr,offset:[0,4],targetOffset:Pt},topLeft:{points:["bl","tl"],overflow:qr,offset:[0,-4],targetOffset:Pt},leftTop:{points:["tr","tl"],overflow:Gr,offset:[-4,0],targetOffset:Pt},topRight:{points:["br","tr"],overflow:qr,offset:[0,-4],targetOffset:Pt},rightTop:{points:["tl","tr"],overflow:Gr,offset:[4,0],targetOffset:Pt},bottomRight:{points:["tr","br"],overflow:qr,offset:[0,4],targetOffset:Pt},rightBottom:{points:["bl","br"],overflow:Gr,offset:[4,0],targetOffset:Pt},bottomLeft:{points:["tl","bl"],overflow:qr,offset:[0,4],targetOffset:Pt},leftBottom:{points:["br","bl"],overflow:Gr,offset:[-4,0],targetOffset:Pt}},Db=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Lb=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,p=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,C=t.placement,x=C===void 0?"right":C,S=t.align,w=S===void 0?{}:S,E=t.destroyTooltipOnHide,$=E===void 0?!1:E,O=t.defaultVisible,R=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,F=t.id,T=t.showArrow,V=T===void 0?!0:T,j=t.classNames,M=t.styles,D=dt(t,Db),z=md(F),U=P.useRef(null);P.useImperativeHandle(r,function(){return U.current});var K=A({},D);"visible"in t&&(K.popupVisible=t.visible);var k=function(){return d.createElement(Id,{key:"content",prefixCls:m,id:z,bodyClassName:j?.body,overlayInnerStyle:A(A({},N),M?.body)},I)},H=function(){var q=d.Children.only(h),B=q?.props||{},oe=A(A({},B),{},{"aria-describedby":I?z:null});return d.cloneElement(h,oe)};return d.createElement(Rb,Fe({popupClassName:J(n,j?.root),prefixCls:m,popup:k,action:a,builtinPlacements:Vb,popupPlacement:x,ref:U,popupAlign:w,getPopupContainer:R,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:O,autoDestroy:$,mouseLeaveDelay:c,popupStyle:A(A({},u),M?.root),mouseEnterDelay:s,arrow:V},K),H())};const zb=P.forwardRef(Lb);function Hb(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,m=u,h=2*o-s,g=l,p=2*o-a,v=i,y=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,x=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${m} L ${h} ${g} A ${n} ${n} 0 0 0 ${p} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:x,arrowPolygon:C}}const Bb=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,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:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${be(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Fd=8;function Md(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Fd:n}}function Ro(e,t){return e?t:{}}function Wb(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,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"},Bb(e,t,o)),{"&:before":{background:t}})]},Ro(!!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% - ${be(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ro(!!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% - ${be(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ro(!!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:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ro(!!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:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function kb(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const ic={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"]}},qb={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"]}},Gb=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ub(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a}=e,i=t/2,s={},l=Md({contentRadius:a,limitVerticalRadius:!0});return Object.keys(ic).forEach(c=>{const u=n&&qb[c]||ic[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,Gb.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=l.arrowOffsetHorizontal*2-i;break}f.overflow=kb(c,l,t,r),f.htmlRegion="visibleFirst"}),s}const Xb=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:h}=e,g=t(i).add(h).add(m).equal(),p=t(i).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Yn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:p,minHeight:l,padding:`${be(e.calc(u).div(2).equal())} ${be(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,Fd)}},[`${r}-content`]:{position:"relative"}}),lg(e,(v,{darkColor:y})=>({[`&${r}-${v}`]:{[`${r}-inner`]:{backgroundColor:y},[`${r}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},Wb(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Kb=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Md({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hb(vt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ad=(e,t=!0)=>ar("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=vt(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[Xb(s),Th(n,"zoom-big-fast")]},Kb,{resetStyle:!1,injectStyle:t})(e),Yb=Tr.map(e=>`${e}-inverse`);function Qb(e,t=!0){return t?[].concat(re(Yb),re(Tr)).includes(e):Tr.includes(e)}function jd(e,t){const r=Qb(t),n=J({[`${e}-${t}`]:t&&r}),o={},a={},i=Ih(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const Zb=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=d.useContext(We),l=s("tooltip",t),[c,u,f]=Ad(l),m=jd(l,a),h=m.arrowStyle,g=Object.assign(Object.assign({},i),m.overlayStyle),p=J(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,m.className);return c(d.createElement("div",{className:p,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(Id,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),o)))};var Jb=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const ey=d.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:h,arrow:g=!0,title:p,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:C=!0,motion:x,getPopupContainer:S,placement:w="top",mouseEnterDelay:E=.1,mouseLeaveDelay:$=.1,overlayStyle:O,rootClassName:R,overlayClassName:N,styles:I,classNames:F}=e,T=Jb(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),V=!!g,[,j]=or(),{getPopupContainer:M,getPrefixCls:D,direction:z,className:U,style:K,classNames:k,styles:H}=Xn("tooltip"),L=lt("Tooltip"),q=d.useRef(null),B=()=>{var Oe;(Oe=q.current)===null||Oe===void 0||Oe.forceAlign()};d.useImperativeHandle(t,()=>{var Oe,$e;return{forceAlign:B,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:(Oe=q.current)===null||Oe===void 0?void 0:Oe.nativeElement,popupElement:($e=q.current)===null||$e===void 0?void 0:$e.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Oe,$e])=>{L.deprecated(!(Oe in e),Oe,$e)}),process.env.NODE_ENV!=="production"&&L(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&L(!g||typeof g=="boolean"||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[oe,G]=Kn(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Q=!p&&!v&&p!==0,ee=Oe=>{var $e,Se;G(Q?!1:Oe),Q||(($e=e.onOpenChange)===null||$e===void 0||$e.call(e,Oe),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,Oe))},te=d.useMemo(()=>{var Oe,$e;let Se=b;return typeof g=="object"&&(Se=($e=(Oe=g.pointAtCenter)!==null&&Oe!==void 0?Oe:g.arrowPointAtCenter)!==null&&$e!==void 0?$e:b),y||Ub({arrowPointAtCenter:Se,autoAdjustOverflow:C,arrowWidth:V?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[b,g,y,j]),se=d.useMemo(()=>p===0?p:v||p||"",[v,p]),le=d.createElement(Zi,{space:!0},typeof se=="function"?se():se),W=D("tooltip",o),ce=D(),Y=e["data-popover-inject"];let ie=oe;!("open"in e)&&!("visible"in e)&&Q&&(ie=!1);const ge=d.isValidElement(c)&&!Ku(c)?c:d.createElement("span",null,c),ae=ge.props,Ce=!ae.className||typeof ae.className=="string"?J(ae.className,a||`${W}-open`):ae.className,[me,ye,ue]=Ad(W,!Y),Z=jd(W,s),pe=Z.arrowStyle,Ee=J(N,{[`${W}-rtl`]:z==="rtl"},Z.className,R,ye,ue,U,k.root,F?.root),Xe=J(k.body,F?.body),[Me,je]=Ep("Tooltip",T.zIndex),ct=d.createElement(zb,Object.assign({},T,{zIndex:Me,showArrow:V,placement:w,mouseEnterDelay:E,mouseLeaveDelay:$,prefixCls:W,classNames:{root:Ee,body:Xe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),H.root),K),O),I?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},H.body),l),I?.body),Z.overlayStyle)},getTooltipContainer:S||i||M,ref:q,builtinPlacements:te,overlay:le,visible:ie,onVisibleChange:ee,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:zp(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!m}),ie?sn(ge,{className:Ce}):ge);return me(d.createElement(bs.Provider,{value:je},ct))}),_s=ey;process.env.NODE_ENV!=="production"&&(_s.displayName="Tooltip");_s._InternalPanelDoNotUseOrYouWillBeFired=Zb;const ty=["parentNode"],ry="form_item";function Tn(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Vd(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:ty.includes(r)?`${ry}_${r}`:r}function Dd(e,t,r,n,o,a){let i=n;return a!==void 0?i=a:r.validating?i="validating":e.length?i="error":t.length?i="warning":(r.touched||o&&r.validated)&&(i="success"),i}var ny=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function sc(e){return Tn(e).join("_")}function lc(e,t){const r=t.getFieldInstance(e),n=Oc(r);if(n)return n;const o=Vd(Tn(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Ld(e){const[t]=Os(),r=d.useRef({}),n=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=sc(o);a?r.current[i]=a:delete r.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,s=ny(a,["focus"]),l=lc(o,n);l&&(gp(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),i&&n.focusField(o))},focusField:o=>{var a,i;const s=n.getFieldInstance(o);typeof s?.focus=="function"?s.focus():(i=(a=lc(o,n))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=sc(o);return r.current[a]}}),[e,t]);return[n]}function ua(e){return vt(e,{inputAffixPadding:e.paddingXXS})}const da=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:p,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:C,inputFontSize:x,inputFontSizeLG:S,inputFontSizeSM:w}=e,E=x||r,$=w||E,O=S||s,R=Math.round((t-E*n)/2*10)/10-o,N=Math.round((a-$*n)/2*10)/10-o,I=Math.ceil((i-O*l)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(I,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${p}px ${v}`,errorActiveShadow:`0 0 0 ${p}px ${y}`,warningActiveShadow:`0 0 0 ${p}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:E,inputFontSizeLG:O,inputFontSizeSM:$}},oy=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ns=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({},oy(vt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),zd=(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}}),cc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ay=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ns(e))}),cc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),cc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),uc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),iy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},uc(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),uc(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ns(e))}})}),sy=(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,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Hd=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},dc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ly=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ns(e))}),dc(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),dc(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),fc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),cy=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},fc(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),fc(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:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Bd=(e,t)=>({background:e.colorBgContainer,borderWidth:`${be(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),vc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Bd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),uy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),vc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),vc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),dy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Wd=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${be(t)} ${be(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},kd=e=>({padding:`${be(e.paddingBlockSM)} ${be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),qd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${be(e.paddingBlock)} ${be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dy(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Wd(e)),"&-sm":Object.assign({},kd(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fy=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({},Wd(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},kd(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 ${be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${be(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:`${be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${be(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"},rg()),{[`${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},[`
138
- & > ${t}-affix-wrapper,
139
- & > ${t}-number-affix-wrapper,
140
- & > ${r}-picker-range
141
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
142
- & > ${r}-select-auto-complete ${t},
143
- & > ${r}-cascader-picker ${t},
144
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
145
- & > ${r}-select:first-child > ${r}-select-selector,
146
- & > ${r}-select-auto-complete:first-child ${t},
147
- & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
148
- & > ${r}-select:last-child > ${r}-select-selector,
149
- & > ${r}-cascader-picker:last-child ${t},
150
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},vy=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,i=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yn(e)),qd(e)),ay(e)),ly(e)),sy(e)),uy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},my=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${be(e.inputAffixPadding)}`}}}},gy=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},qd(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),my(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},py=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Yn(e)),fy(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},iy(e)),cy(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},hy=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
151
- > ${t},
152
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},by=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Gd=ar(["Input","Shared"],e=>{const t=vt(e,ua(e));return[vy(t),gy(t)]},da,{resetFont:!1}),Ud=ar(["Input","Component"],e=>{const t=vt(e,ua(e));return[py(t),hy(t),by(t),fd(t)]},da,{resetFont:!1}),Xd=P.createContext({});var yy=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function mc(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Cy=["xs","sm","md","lg","xl","xxl"],fa=d.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=d.useContext(We),{gutter:o,wrap:a}=d.useContext(Xd),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:f,className:m,children:h,flex:g,style:p}=e,v=yy(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=r("col",i),[b,C,x]=pb(y),S={};let w={};Cy.forEach(O=>{let R={};const N=e[O];typeof N=="number"?R.span=N:typeof N=="object"&&(R=N||{}),delete v[O],w=Object.assign(Object.assign({},w),{[`${y}-${O}-${R.span}`]:R.span!==void 0,[`${y}-${O}-order-${R.order}`]:R.order||R.order===0,[`${y}-${O}-offset-${R.offset}`]:R.offset||R.offset===0,[`${y}-${O}-push-${R.push}`]:R.push||R.push===0,[`${y}-${O}-pull-${R.pull}`]:R.pull||R.pull===0,[`${y}-rtl`]:n==="rtl"}),R.flex&&(w[`${y}-${O}-flex`]=!0,S[`--${y}-${O}-flex`]=mc(R.flex))});const E=J(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},m,w,C,x),$={};if(o?.[0]){const O=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;$.paddingLeft=O,$.paddingRight=O}return g&&($.flex=mc(g),a===!1&&!$.minWidth&&($.minWidth=0)),b(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},$),p),S),className:E,ref:t}),h))});process.env.NODE_ENV!=="production"&&(fa.displayName="Col");function Sy(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<kn.length;s++){const l=kn[s];if(o[l]&&a[l]!==void 0){r[i]=a[l];break}}else r[i]=a}),r}var xy=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function gc(e,t){const[r,n]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let a=0;a<kn.length;a++){const i=kn[a];if(!t||!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),r}const Ts=d.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=xy(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=d.useContext(We),h=jb(!0,null),g=gc(o,h),p=gc(n,h),v=f("row",r),[y,b,C]=mb(v),x=Sy(l,h),S=J(v,{[`${v}-no-wrap`]:c===!1,[`${v}-${p}`]:p,[`${v}-${g}`]:g,[`${v}-rtl`]:m==="rtl"},a,b,C),w={};if(x?.[0]){const R=typeof x[0]=="number"?`${x[0]/-2}px`:`calc(${x[0]} / -2)`;w.marginLeft=R,w.marginRight=R}const[E,$]=x;w.rowGap=$;const O=d.useMemo(()=>({gutter:[E,$],wrap:c}),[E,$,c]);return y(d.createElement(Xd.Provider,{value:O},d.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},w),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Ts.displayName="Row");function wy(e){return!!(e.addonBefore||e.addonAfter)}function Ey(e){return!!(e.prefix||e.suffix||e.allowClear)}function pc(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Uo(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=pc(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=pc(t,e,n),r(o);return}r(o)}}function Kd(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Yd=P.forwardRef(function(e,t){var r,n,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,m=e.className,h=e.style,g=e.disabled,p=e.readOnly,v=e.focused,y=e.triggerFocus,b=e.allowClear,C=e.value,x=e.handleReset,S=e.hidden,w=e.classes,E=e.classNames,$=e.dataAttrs,O=e.styles,R=e.components,N=e.onClear,I=i??a,F=R?.affixWrapper||"span",T=R?.groupWrapper||"span",V=R?.wrapper||"span",j=R?.groupAddon||"span",M=P.useRef(null),D=function(ce){var Y;(Y=M.current)!==null&&Y!==void 0&&Y.contains(ce.target)&&y?.()},z=Ey(e),U=P.cloneElement(I,{value:C,className:J((r=I.props)===null||r===void 0?void 0:r.className,!z&&E?.variant)||null}),K=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:K.current||M.current}}),z){var k=null;if(b){var H=!g&&!p&&C,L="".concat(s,"-clear-icon"),q=de(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";k=P.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){x?.(ce),N?.()},onMouseDown:function(ce){return ce.preventDefault()},className:J(L,_(_({},"".concat(L,"-hidden"),!H),"".concat(L,"-has-suffix"),!!c))},q)}var B="".concat(s,"-affix-wrapper"),oe=J(B,_(_(_(_(_({},"".concat(s,"-disabled"),g),"".concat(B,"-disabled"),g),"".concat(B,"-focused"),v),"".concat(B,"-readonly"),p),"".concat(B,"-input-with-clear-btn"),c&&b&&C),w?.affixWrapper,E?.affixWrapper,E?.variant),G=(c||b)&&P.createElement("span",{className:J("".concat(s,"-suffix"),E?.suffix),style:O?.suffix},k,c);U=P.createElement(F,Fe({className:oe,style:O?.affixWrapper,onClick:D},$?.affixWrapper,{ref:M}),l&&P.createElement("span",{className:J("".concat(s,"-prefix"),E?.prefix),style:O?.prefix},l),U,G)}if(wy(e)){var Q="".concat(s,"-group"),ee="".concat(Q,"-addon"),te="".concat(Q,"-wrapper"),se=J("".concat(s,"-wrapper"),Q,w?.wrapper,E?.wrapper),le=J(te,_({},"".concat(te,"-disabled"),g),w?.group,E?.groupWrapper);U=P.createElement(T,{className:le,ref:K},P.createElement(V,{className:se},u&&P.createElement(j,{className:ee},u),U,f&&P.createElement(j,{className:ee},f)))}return P.cloneElement(U,{className:J((n=U.props)===null||n===void 0?void 0:n.className,m)||null,style:A(A({},(o=U.props)===null||o===void 0?void 0:o.style),h),hidden:S})}),$y=["show"];function Qd(e,t){return d.useMemo(function(){var r={};t&&(r.show=de(t)==="object"&&t.formatter?t.formatter:!!t),r=A(A({},r),e);var n=r,o=n.show,a=dt(n,$y);return A(A({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var Oy=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Py=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,m=e.htmlSize,h=e.className,g=e.maxLength,p=e.suffix,v=e.showCount,y=e.count,b=e.type,C=b===void 0?"text":b,x=e.classes,S=e.classNames,w=e.styles,E=e.onCompositionStart,$=e.onCompositionEnd,O=dt(e,Oy),R=P.useState(!1),N=X(R,2),I=N[0],F=N[1],T=P.useRef(!1),V=P.useRef(!1),j=P.useRef(null),M=P.useRef(null),D=function(Z){j.current&&Kd(j.current,Z)},z=Kn(e.defaultValue,{value:e.value}),U=X(z,2),K=U[0],k=U[1],H=K==null?"":String(K),L=P.useState(null),q=X(L,2),B=q[0],oe=q[1],G=Qd(y,v),Q=G.max||g,ee=G.strategy(H),te=!!Q&&ee>Q;P.useImperativeHandle(t,function(){var ue;return{focus:D,blur:function(){var pe;(pe=j.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,Ee,Xe){var Me;(Me=j.current)===null||Me===void 0||Me.setSelectionRange(pe,Ee,Xe)},select:function(){var pe;(pe=j.current)===null||pe===void 0||pe.select()},input:j.current,nativeElement:((ue=M.current)===null||ue===void 0?void 0:ue.nativeElement)||j.current}}),P.useEffect(function(){V.current&&(V.current=!1),F(function(ue){return ue&&f?!1:ue})},[f]);var se=function(Z,pe,Ee){var Xe=pe;if(!T.current&&G.exceedFormatter&&G.max&&G.strategy(pe)>G.max){if(Xe=G.exceedFormatter(pe,{max:G.max}),pe!==Xe){var Me,je;oe([((Me=j.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((je=j.current)===null||je===void 0?void 0:je.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;k(Xe),j.current&&Uo(j.current,Z,n,Xe)};P.useEffect(function(){if(B){var ue;(ue=j.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,re(B))}},[B]);var le=function(Z){se(Z,Z.target.value,{source:"change"})},W=function(Z){T.current=!1,se(Z,Z.currentTarget.value,{source:"compositionEnd"}),$?.(Z)},ce=function(Z){i&&Z.key==="Enter"&&!V.current&&(V.current=!0,i(Z)),s?.(Z)},Y=function(Z){Z.key==="Enter"&&(V.current=!1),l?.(Z)},ie=function(Z){F(!0),o?.(Z)},ge=function(Z){V.current&&(V.current=!1),F(!1),a?.(Z)},ae=function(Z){k(""),D(),j.current&&Uo(j.current,Z,n)},Ce=te&&"".concat(u,"-out-of-range"),me=function(){var Z=Jn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Fe({autoComplete:r},Z,{onChange:le,onFocus:ie,onBlur:ge,onKeyDown:ce,onKeyUp:Y,className:J(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:j,size:m,type:C,onCompositionStart:function(Ee){T.current=!0,E?.(Ee)},onCompositionEnd:W}))},ye=function(){var Z=Number(Q)>0;if(p||G.show){var pe=G.showFormatter?G.showFormatter({value:H,count:ee,maxLength:Q}):"".concat(ee).concat(Z?" / ".concat(Q):"");return P.createElement(P.Fragment,null,G.show&&P.createElement("span",{className:J("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!p),S?.count),style:A({},w?.count)},pe),p)}return null};return P.createElement(Yd,Fe({},O,{prefixCls:u,className:J(h,Ce),handleReset:ae,value:H,focused:I,triggerFocus:D,suffix:ye(),disabled:f,classes:x,classNames:S,styles:w,ref:M}),me())});const Zd=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:P.createElement(ps,null)}),t};function Jd(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function Ry(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _y=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const ro=P.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:m,className:h,style:g,styles:p,rootClassName:v,onChange:y,classNames:b,variant:C}=e,x=_y(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ae}=lt("Input");[["bordered","variant"],["addonAfter","Space.Compact"],["addonBefore","Space.Compact"]].forEach(([Ce,me])=>{ae(!(Ce in e),Ce,me)})}const{getPrefixCls:S,direction:w,allowClear:E,autoComplete:$,className:O,style:R,classNames:N,styles:I}=Xn("input"),F=S("input",r),T=P.useRef(null),V=Qn(F),[j,M,D]=Gd(F,v),[z]=Ud(F,V),{compactSize:U,compactItemClassnames:K}=ra(F,w),k=vn(ae=>{var Ce;return(Ce=a??U)!==null&&Ce!==void 0?Ce:ae}),H=P.useContext(pr),L=i??H,{status:q,hasFeedback:B,feedbackIcon:oe}=P.useContext(xt),G=Rs(q,o),Q=Ry(e)||!!B,ee=P.useRef(Q);if(process.env.NODE_ENV!=="production"){const ae=lt("Input");P.useEffect(()=>{var Ce;Q&&!ee.current&&process.env.NODE_ENV!=="production"&&ae(document.activeElement===((Ce=T.current)===null||Ce===void 0?void 0:Ce.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),ee.current=Q},[Q])}const te=Jd(T,!0),se=ae=>{te(),s?.(ae)},le=ae=>{te(),l?.(ae)},W=ae=>{te(),y?.(ae)},ce=(B||c)&&P.createElement(P.Fragment,null,c,B&&oe),Y=Zd(u??E),[ie,ge]=Nd("input",C,n);return j(z(P.createElement(Py,Object.assign({ref:hr(t,T),prefixCls:F,autoComplete:$},x,{disabled:L,onBlur:se,onFocus:le,style:Object.assign(Object.assign({},R),g),styles:Object.assign(Object.assign({},I),p),suffix:ce,allowClear:Y,className:J(h,v,D,V,K,O),onChange:W,addonBefore:m&&P.createElement(Zi,{form:!0,space:!0},m),addonAfter:f&&P.createElement(Zi,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},b),N),{input:J({[`${F}-sm`]:k==="small",[`${F}-lg`]:k==="large",[`${F}-rtl`]:w==="rtl"},b?.input,N.input,M),variant:J({[`${F}-${ie}`]:ge},ts(F,G)),affixWrapper:J({[`${F}-affix-wrapper-sm`]:k==="small",[`${F}-affix-wrapper-lg`]:k==="large",[`${F}-affix-wrapper-rtl`]:w==="rtl"},M),wrapper:J({[`${F}-group-rtl`]:w==="rtl"},M),groupWrapper:J({[`${F}-group-wrapper-sm`]:k==="small",[`${F}-group-wrapper-lg`]:k==="large",[`${F}-group-wrapper-rtl`]:w==="rtl",[`${F}-group-wrapper-${ie}`]:ge},ts(`${F}-group-wrapper`,G,B),M)})}))))});process.env.NODE_ENV!=="production"&&(ro.displayName="Input");function Ny(e){return e==null?null:typeof e=="object"&&!P.isValidElement(e)?e:{title:e}}function Xo(e){const[t,r]=d.useState(e);return d.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const Ty=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
153
- opacity ${e.motionDurationFast} ${e.motionEaseInOut},
154
- transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},Iy=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${be(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),hc=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Fy=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Yn(e)),Iy(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},hc(e,e.controlHeightSM)),"&-large":Object.assign({},hc(e,e.controlHeightLG))})}},My=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Yn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
155
- &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Ss,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Or=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ay=e=>{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label,
156
- ${t}-col-xl-24${r}-label`]:Or(e)}}},jy=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
157
- > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},Vy=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:Or(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Dy=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
158
- ${n}-col-24${r}-label,
159
- ${n}-col-xl-24${r}-label`]:Or(e)},[`@media (max-width: ${be(e.screenXSMax)})`]:[Vy(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:Or(e)}}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:Or(e)}}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:Or(e)}}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:Or(e)}}}}},Ly=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ef=(e,t)=>vt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Is=ar("Form",(e,{rootPrefixCls:t})=>{const r=ef(e,t);return[Fy(r),My(r),Ty(r),Ay(r),jy(r),Dy(r),hh(r),Ss]},Ly,{order:-1e3}),bc=[];function Ya(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const tf=({help:e,helpStatus:t,errors:r=bc,warnings:n=bc,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:s}=d.useContext(Ps),l=`${s}-item-explain`,c=Qn(s),[u,f,m]=Is(s,c),h=d.useMemo(()=>Tl(s),[s]),g=Xo(r),p=Xo(n),v=d.useMemo(()=>e!=null?[Ya(e,"help",t)]:[].concat(re(g.map((C,x)=>Ya(C,"error","error",x))),re(p.map((C,x)=>Ya(C,"warning","warning",x)))),[e,t,g,p]),y=d.useMemo(()=>{const C={};return v.forEach(({key:x})=>{C[x]=(C[x]||0)+1}),v.map((x,S)=>Object.assign(Object.assign({},x),{key:C[x.key]>1?`${x.key}-fallback-${S}`:x.key}))},[v]),b={};return a&&(b.id=`${a}_help`),u(d.createElement(un,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:i},C=>{const{className:x,style:S}=C;return d.createElement("div",Object.assign({},b,{className:J(l,x,m,c,o,f),style:S}),d.createElement(Ag,Object.assign({keys:y},Tl(s),{motionName:`${s}-show-help-item`,component:!1}),w=>{const{key:E,error:$,errorStatus:O,className:R,style:N}=w;return d.createElement("div",{key:E,className:J(R,{[`${l}-${O}`]:O}),style:N},$)}))}))},_o={};function zy({name:e}){const t=lt("Form");d.useEffect(()=>{if(e)return _o[e]=(_o[e]||0)+1,process.env.NODE_ENV!=="production"&&t(_o[e]<=1,"usage","There exist multiple Form with same `name`."),()=>{_o[e]-=1}},[e])}var Hy=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const By=(e,t)=>{const r=d.useContext(pr),{getPrefixCls:n,direction:o,requiredMark:a,colon:i,scrollToFirstError:s,className:l,style:c}=Xn("form"),{prefixCls:u,className:f,rootClassName:m,size:h,disabled:g=r,form:p,colon:v,labelAlign:y,labelWrap:b,labelCol:C,wrapperCol:x,hideRequiredMark:S,layout:w="horizontal",scrollToFirstError:E,requiredMark:$,onFinishFailed:O,name:R,style:N,feedbackIcons:I,variant:F}=e,T=Hy(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),V=vn(h),j=d.useContext(fu);process.env.NODE_ENV!=="production"&&zy(e);const M=d.useMemo(()=>$!==void 0?$:S?!1:a!==void 0?a:!0,[S,$,a]),D=v??i,z=n("form",u),U=Qn(z),[K,k,H]=Is(z,U),L=J(z,`${z}-${w}`,{[`${z}-hide-required-mark`]:M===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${V}`]:V},H,U,k,l,f,m),[q]=Ld(p),{__INTERNAL__:B}=q;B.name=R;const oe=d.useMemo(()=>({name:R,labelAlign:y,labelCol:C,labelWrap:b,wrapperCol:x,layout:w,colon:D,requiredMark:M,itemRef:B.itemRef,form:q,feedbackIcons:I}),[R,y,C,x,w,D,M,q,I]),G=d.useRef(null);d.useImperativeHandle(t,()=>{var te;return Object.assign(Object.assign({},q),{nativeElement:(te=G.current)===null||te===void 0?void 0:te.nativeElement})});const Q=(te,se)=>{if(te){let le={block:"nearest"};typeof te=="object"&&(le=Object.assign(Object.assign({},le),te)),q.scrollToField(se,le)}},ee=te=>{if(O?.(te),te.errorFields.length){const se=te.errorFields[0].name;if(E!==void 0){Q(E,se);return}s!==void 0&&Q(s,se)}};return K(d.createElement(Od.Provider,{value:F},d.createElement(Su,{disabled:g},d.createElement(Nr.Provider,{value:V},d.createElement(Ed,{validateMessages:j},d.createElement(nr.Provider,{value:oe},d.createElement($d,{status:!0},d.createElement(mn,Object.assign({id:R},T,{name:R,onFinishFailed:ee,form:q,ref:G,style:Object.assign(Object.assign({},c),N),className:L})))))))))},rf=d.forwardRef(By);process.env.NODE_ENV!=="production"&&(rf.displayName="Form");function Wy(e){if(typeof e=="function")return e;const t=In(e);return t.length<=1?t[0]:t}const nf=()=>{const{status:e,errors:t=[],warnings:r=[]}=d.useContext(xt);if(process.env.NODE_ENV!=="production"){const n=lt("Form.Item");process.env.NODE_ENV!=="production"&&n(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:r}};nf.Context=xt;function ky(e){const[t,r]=d.useState(e),n=d.useRef(null),o=d.useRef([]),a=d.useRef(!1);d.useEffect(()=>(a.current=!1,()=>{a.current=!0,St.cancel(n.current),n.current=null}),[]);function i(s){a.current||(n.current===null&&(o.current=[],n.current=St(()=>{n.current=null,r(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,i]}function qy(){const{itemRef:e}=d.useContext(nr),t=d.useRef({});function r(n,o){const a=o&&typeof o=="object"&&qn(o),i=n.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=hr(e(n),a)),t.current.ref}return r}const Gy=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Uy=Nu(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=ef(e,t);return Gy(r)});var Xy=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ky=24,Yy=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:o,children:a,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:m,onErrorVisibleChanged:h,label:g}=e,p=`${t}-item`,v=d.useContext(nr),y=d.useMemo(()=>{let T=Object.assign({},o||v.wrapperCol||{});return g===null&&!n&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const M=j?[j]:[],D=_t(v.labelCol,M),z=typeof D=="object"?D:{},U=_t(T,M),K=typeof U=="object"?U:{};"span"in z&&!("offset"in K)&&z.span<Ky&&(T=Rt(T,[].concat(M,["offset"]),z.span))}),T},[o,v.wrapperCol,v.labelCol,g,n]),b=J(`${p}-control`,y.className),C=d.useMemo(()=>{const{labelCol:T,wrapperCol:V}=v;return Xy(v,["labelCol","wrapperCol"])},[v]),x=d.useRef(null),[S,w]=d.useState(0);Ue(()=>{c&&x.current?w(x.current.clientHeight):w(0)},[c]);const E=d.createElement("div",{className:`${p}-control-input`},d.createElement("div",{className:`${p}-control-input-content`},a)),$=d.useMemo(()=>({prefixCls:t,status:r}),[t,r]),O=m!==null||i.length||s.length?d.createElement(Ps.Provider,{value:$},d.createElement(tf,{fieldId:f,errors:i,warnings:s,help:u,helpStatus:r,className:`${p}-explain-connected`,onVisibleChanged:h})):null,R={};f&&(R.id=`${f}_extra`);const N=c?d.createElement("div",Object.assign({},R,{className:`${p}-extra`,ref:x}),c):null,I=O||N?d.createElement("div",{className:`${p}-additional`,style:m?{minHeight:m+S}:{}},O,N):null,F=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:O,extra:N}):d.createElement(d.Fragment,null,E,I);return d.createElement(nr.Provider,{value:C},d.createElement(fa,Object.assign({},y,{className:b}),F),d.createElement(Uy,{prefixCls:t}))};var Qy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Zy=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:Qy}))},of=d.forwardRef(Zy);process.env.NODE_ENV!=="production"&&(of.displayName="QuestionCircleOutlined");var Jy=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const eC=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:o,colon:a,required:i,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[f]=bm("Form"),{labelAlign:m,labelCol:h,labelWrap:g,colon:p}=d.useContext(nr);if(!t)return null;const v=n||h||{},y=o||m,b=`${e}-item-label`,C=J(b,y==="left"&&`${b}-left`,v.className,{[`${b}-wrap`]:!!g});let x=t;const S=a===!0||p!==!1&&a!==!1;S&&!c&&typeof t=="string"&&t.trim()&&(x=t.replace(/[:|:]\s*$/,""));const E=Ny(l);if(E){const{icon:F=d.createElement(of,null)}=E,T=Jy(E,["icon"]),V=d.createElement(_s,Object.assign({},T),d.cloneElement(F,{className:`${e}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));x=d.createElement(d.Fragment,null,x,V)}const $=s==="optional",O=typeof s=="function",R=s===!1;O?x=s(x,{required:!!i}):$&&!i&&(x=d.createElement(d.Fragment,null,x,d.createElement("span",{className:`${e}-item-optional`,title:""},f?.optional||((u=_r.Form)===null||u===void 0?void 0:u.optional))));let N;R?N="hidden":($||O)&&(N="optional");const I=J({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!S});return d.createElement(fa,Object.assign({},v,{className:C}),d.createElement("label",{htmlFor:r,className:I,title:typeof t=="string"?t:""},x))},tC={success:Uu,warning:Xu,error:ps,validating:hs};function af({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:o,prefixCls:a,meta:i,noStyle:s,name:l}){const c=`${a}-item`,{feedbackIcons:u}=d.useContext(nr),f=Dd(t,r,i,null,!!n,o),{isFormItemInput:m,status:h,hasFeedback:g,feedbackIcon:p,name:v}=d.useContext(xt),y=d.useMemo(()=>{var b;let C;if(n){const S=n!==!0&&n.icons||u,w=f&&((b=S?.({status:f,errors:t,warnings:r}))===null||b===void 0?void 0:b[f]),E=f?tC[f]:null;C=w!==!1&&E?d.createElement("span",{className:J(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||d.createElement(E,null)):null}const x={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:C,isFormItemInput:!0,name:l};return s&&(x.status=(f??h)||"",x.isFormItemInput=m,x.hasFeedback=!!(n??g),x.feedbackIcon=n!==void 0?x.feedbackIcon:p,x.name=l??v),x},[f,n,s,m,h]);return d.createElement(xt.Provider,{value:y},e)}var rC=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function nC(e){const{prefixCls:t,className:r,rootClassName:n,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:m,fieldId:h,required:g,isRequired:p,onSubItemMetaChange:v,layout:y,name:b}=e,C=rC(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),x=`${t}-item`,{requiredMark:S,layout:w}=d.useContext(nr),E=y||w,$=E==="vertical",O=d.useRef(null),R=Xo(i),N=Xo(s),I=a!=null,F=!!(I||i.length||s.length),T=!!O.current&&Cs(O.current),[V,j]=d.useState(null);Ue(()=>{if(F&&O.current){const K=getComputedStyle(O.current);j(Number.parseInt(K.marginBottom,10))}},[F,T]);const M=K=>{K||j(null)},z=((K=!1)=>{const k=K?R:c.errors,H=K?N:c.warnings;return Dd(k,H,c,"",!!u,l)})(),U=J(x,r,n,{[`${x}-with-help`]:I||R.length||N.length,[`${x}-has-feedback`]:z&&u,[`${x}-has-success`]:z==="success",[`${x}-has-warning`]:z==="warning",[`${x}-has-error`]:z==="error",[`${x}-is-validating`]:z==="validating",[`${x}-hidden`]:f,[`${x}-${E}`]:E});return d.createElement("div",{className:U,style:o,ref:O},d.createElement(Ts,Object.assign({className:`${x}-row`},Jn(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(eC,Object.assign({htmlFor:h},e,{requiredMark:S,required:g??p,prefixCls:t,vertical:$})),d.createElement(Yy,Object.assign({},e,c,{errors:R,warnings:N,prefixCls:t,status:z,help:a,marginBottom:V,onErrorVisibleChanged:M}),d.createElement(wd.Provider,{value:v},d.createElement(af,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z,name:b},m)))),!!V&&d.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-V}}))}const oC="__SPLIT__";function aC(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const iC=d.memo(({children:e})=>e,(e,t)=>aC(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function yc(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function sC(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:g,help:p,layout:v}=e,{getPrefixCls:y}=d.useContext(We),{name:b}=d.useContext(nr),C=Wy(l),x=typeof C=="function",S=d.useContext(wd),{validateTrigger:w}=d.useContext(Ir),E=h!==void 0?h:w,$=t!=null,O=y("form",a),R=Qn(O),[N,I,F]=Is(O,R),T=lt("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&T(t!==null,"usage","`null` is passed as `name` property");const V=d.useContext(Bn),j=d.useRef(null),[M,D]=ky({}),[z,U]=an(()=>yc()),K=G=>{const Q=V?.getKey(G.name);if(U(G.destroy?yc():G,!0),r&&p!==!1&&S){let ee=G.name;if(G.destroy)ee=j.current||ee;else if(Q!==void 0){const[te,se]=Q;ee=[te].concat(re(se)),j.current=ee}S(G,ee)}},k=(G,Q)=>{D(ee=>{const te=Object.assign({},ee),le=[].concat(re(G.name.slice(0,-1)),re(Q)).join(oC);return G.destroy?delete te[le]:te[le]=G,te})},[H,L]=d.useMemo(()=>{const G=re(z.errors),Q=re(z.warnings);return Object.values(M).forEach(ee=>{G.push.apply(G,re(ee.errors||[])),Q.push.apply(Q,re(ee.warnings||[]))}),[G,Q]},[M,z.errors,z.warnings]),q=qy();function B(G,Q,ee){return r&&!g?d.createElement(af,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:H,warnings:L,noStyle:!0,name:t},G):d.createElement(nC,Object.assign({key:"row"},e,{className:J(n,F,R,I),prefixCls:O,fieldId:Q,isRequired:ee,errors:H,warnings:L,meta:z,onSubItemMetaChange:k,layout:v,name:t}),G)}if(!$&&!x&&!o)return N(B(C));let oe={};return typeof u=="string"?oe.label=u:t&&(oe.label=String(t)),f&&(oe=Object.assign(Object.assign({},oe),f)),N(d.createElement($s,Object.assign({},e,{messageVariables:oe,trigger:m,validateTrigger:E,onMetaChange:K}),(G,Q,ee)=>{const te=Tn(t).length&&Q?Q.name:[],se=Vd(te,b),le=c!==void 0?c:!!s?.some(Y=>{if(Y&&typeof Y=="object"&&Y.required&&!Y.warningOnly)return!0;if(typeof Y=="function"){const ie=Y(ee);return ie?.required&&!ie?.warningOnly}return!1}),W=Object.assign({},G);let ce=null;if(process.env.NODE_ENV!=="production"&&T(!(i&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(C)&&$)process.env.NODE_ENV!=="production"&&T(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ce=C;else if(x&&(!(i||o)||$))process.env.NODE_ENV!=="production"&&T(!!(i||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&T(!$,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!x&&!$)process.env.NODE_ENV!=="production"&&T(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(d.isValidElement(C)){process.env.NODE_ENV!=="production"&&T(C.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const Y=Object.assign(Object.assign({},C.props),W);if(Y.id||(Y.id=se),p||H.length>0||L.length>0||e.extra){const ae=[];(p||H.length>0)&&ae.push(`${se}_help`),e.extra&&ae.push(`${se}_extra`),Y["aria-describedby"]=ae.join(" ")}H.length>0&&(Y["aria-invalid"]="true"),le&&(Y["aria-required"]="true"),ln(C)&&(Y.ref=q(te,C)),new Set([].concat(re(Tn(m)),re(Tn(E)))).forEach(ae=>{Y[ae]=(...Ce)=>{var me,ye,ue,Z,pe;(ue=W[ae])===null||ue===void 0||(me=ue).call.apply(me,[W].concat(Ce)),(pe=(Z=C.props)[ae])===null||pe===void 0||(ye=pe).call.apply(ye,[Z].concat(Ce))}});const ge=[Y["aria-required"],Y["aria-invalid"],Y["aria-describedby"]];ce=d.createElement(iC,{control:W,update:C,childProps:ge},sn(C,Y))}else x&&(i||o)&&!$?ce=C(ee):(process.env.NODE_ENV!=="production"&&T(!te.length||!!r,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ce=C);return B(ce,se,le)}))}const sf=sC;sf.useStatus=nf;var lC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const cC=e=>{var{prefixCls:t,children:r}=e,n=lC(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const s=lt("Form.List");process.env.NODE_ENV!=="production"&&s(typeof n.name=="number"||(Array.isArray(n.name)?!!n.name.length:!!n.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=d.useContext(We),a=o("form",t),i=d.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return d.createElement(yd,Object.assign({},n),(s,l,c)=>d.createElement(Ps.Provider,{value:i},r(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function uC(){const{form:e}=d.useContext(nr);return e}const Nt=rf;Nt.Item=sf;Nt.List=cC;Nt.ErrorList=tf;Nt.useForm=Ld;Nt.useFormInstance=uC;Nt.useWatch=xd;Nt.Provider=Ed;Nt.create=()=>{process.env.NODE_ENV!=="production"&&Fr(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var dC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},fC=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:dC}))},lf=d.forwardRef(fC);process.env.NODE_ENV!=="production"&&(lf.displayName="EyeOutlined");const vC=e=>{const{getPrefixCls:t,direction:r}=P.useContext(We),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l,c]=Ud(i),u=J(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},l,o),f=P.useContext(xt),m=P.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return process.env.NODE_ENV!=="production"&&lt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(xt.Provider,{value:m},e.children)))},mC=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},gC=ar(["Input","OTP"],e=>{const t=vt(e,ua(e));return mC(t)},da);var pC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const hC=d.forwardRef((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:a,index:i,mask:s}=e,l=pC(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(We),u=c("otp"),f=typeof s=="string"?s:n,m=d.useRef(null);d.useImperativeHandle(t,()=>m.current);const h=v=>{o(i,v.target.value)},g=()=>{St(()=>{var v;const y=(v=m.current)===null||v===void 0?void 0:v.input;document.activeElement===y&&y&&y.select()})},p=v=>{const{key:y,ctrlKey:b,metaKey:C}=v;y==="ArrowLeft"?a(i-1):y==="ArrowRight"?a(i+1):y==="z"&&(b||C)?v.preventDefault():y==="Backspace"&&!n&&a(i-1),g()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(ro,Object.assign({"aria-label":`OTP Input ${i+1}`,type:s===!0?"password":"text"},l,{ref:m,value:n,onInput:h,onFocus:g,onKeyDown:p,onMouseDown:g,onMouseUp:g,className:J(r,{[`${u}-mask-input`]:s})})))});var bC=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function No(e){return(e||"").split("")}const yC=e=>{const{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?d.createElement("span",{className:`${r}-separator`},o):null},CC=d.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:m,autoFocus:h,mask:g,type:p,onInput:v,inputMode:y}=e,b=bC(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const L=lt("Input.OTP");process.env.NODE_ENV!=="production"&&L(!(typeof g=="string"&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:C,direction:x}=d.useContext(We),S=C("otp",r),w=dp(b,{aria:!0,data:!0,attr:!0}),[E,$,O]=gC(S),R=vn(L=>o??L),N=d.useContext(xt),I=Rs(N.status,m),F=d.useMemo(()=>Object.assign(Object.assign({},N),{status:I,hasFeedback:!1,feedbackIcon:null}),[N,I]),T=d.useRef(null),V=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var L;(L=V.current[0])===null||L===void 0||L.focus()},blur:()=>{var L;for(let q=0;q<n;q+=1)(L=V.current[q])===null||L===void 0||L.blur()},nativeElement:T.current}));const j=L=>l?l(L):L,[M,D]=d.useState(()=>No(j(a||"")));d.useEffect(()=>{i!==void 0&&D(No(i))},[i]);const z=st(L=>{D(L),v&&v(L),s&&L.length===n&&L.every(q=>q)&&L.some((q,B)=>M[B]!==q)&&s(L.join(""))}),U=st((L,q)=>{let B=re(M);for(let G=0;G<L;G+=1)B[G]||(B[G]="");q.length<=1?B[L]=q:B=B.slice(0,L).concat(No(q)),B=B.slice(0,n);for(let G=B.length-1;G>=0&&!B[G];G-=1)B.pop();const oe=j(B.map(G=>G||" ").join(""));return B=No(oe).map((G,Q)=>G===" "&&!B[Q]?B[Q]:G),B}),K=(L,q)=>{var B;const oe=U(L,q),G=Math.min(L+q.length,n-1);G!==L&&oe[L]!==void 0&&((B=V.current[G])===null||B===void 0||B.focus()),z(oe)},k=L=>{var q;(q=V.current[L])===null||q===void 0||q.focus()},H={variant:u,disabled:f,status:I,mask:g,type:p,inputMode:y};return E(d.createElement("div",Object.assign({},w,{ref:T,className:J(S,{[`${S}-sm`]:R==="small",[`${S}-lg`]:R==="large",[`${S}-rtl`]:x==="rtl"},O,$),role:"group"}),d.createElement(xt.Provider,{value:F},Array.from({length:n}).map((L,q)=>{const B=`otp-${q}`,oe=M[q]||"";return d.createElement(d.Fragment,{key:B},d.createElement(hC,Object.assign({ref:G=>{V.current[q]=G},index:q,size:R,htmlSize:1,className:`${S}-input`,onChange:K,value:oe,onActiveChange:k,autoFocus:q===0&&h},H)),q<n-1&&d.createElement(yC,{separator:c,index:q,prefixCls:S}))}))))});var SC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},xC=function(t,r){return d.createElement(Ht,Fe({},t,{ref:r,icon:SC}))},cf=d.forwardRef(xC);process.env.NODE_ENV!=="production"&&(cf.displayName="EyeInvisibleOutlined");var wC=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const EC=e=>e?d.createElement(lf,null):d.createElement(cf,null),$C={click:"onClick",hover:"onMouseOver"},uf=d.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a=EC,suffix:i}=e,s=d.useContext(pr),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[u,f]=P.useState(()=>c?o.visible:!1),m=P.useRef(null);d.useEffect(()=>{c&&f(o.visible)},[c,o]);const h=Jd(m),g=()=>{var N;if(l)return;u&&h();const I=!u;f(I),typeof o=="object"&&((N=o.onVisibleChange)===null||N===void 0||N.call(o,I))},p=N=>{const I=$C[n]||"",F=a(u),T={[I]:g,className:`${N}-icon`,key:"passwordIcon",onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()}};return d.cloneElement(d.isValidElement(F)?F:d.createElement("span",null,F),T)},{className:v,prefixCls:y,inputPrefixCls:b,size:C}=e,x=wC(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=d.useContext(We),w=S("input",b),E=S("input-password",y),$=o&&p(E),O=J(E,v,{[`${E}-${C}`]:!!C}),R=Object.assign(Object.assign({},Jn(x,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:O,prefixCls:w,suffix:d.createElement(d.Fragment,null,$,i)});return C&&(R.size=C),d.createElement(ro,Object.assign({ref:hr(t,m)},R))});process.env.NODE_ENV!=="production"&&(uf.displayName="Input.Password");var OC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const df=d.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:g,variant:p,onPressEnter:v}=e,y=OC(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:b,direction:C}=d.useContext(We),x=d.useRef(!1),S=b("input-search",r),w=b("input",n),{compactSize:E}=ra(S,C),$=vn(H=>{var L;return(L=a??E)!==null&&L!==void 0?L:H}),O=d.useRef(null),R=H=>{H?.target&&H.type==="click"&&f&&f(H.target.value,H,{source:"clear"}),m?.(H)},N=H=>{var L;document.activeElement===((L=O.current)===null||L===void 0?void 0:L.input)&&H.preventDefault()},I=H=>{var L,q;f&&f((q=(L=O.current)===null||L===void 0?void 0:L.input)===null||q===void 0?void 0:q.value,H,{source:"input"})},F=H=>{x.current||c||(v?.(H),I(H))},T=typeof s=="boolean"?d.createElement(Td,null):null,V=`${S}-button`;let j;const M=s||{},D=M.type&&M.type.__ANT_BUTTON===!0;D||M.type==="button"?j=sn(M,Object.assign({onMouseDown:N,onClick:H=>{var L,q;(q=(L=M?.props)===null||L===void 0?void 0:L.onClick)===null||q===void 0||q.call(L,H),I(H)},key:"enterButton"},D?{className:V,size:$}:{})):j=d.createElement(ca,{className:V,color:s?"primary":"default",size:$,disabled:u,key:"enterButton",onMouseDown:N,onClick:I,loading:c,icon:T,variant:p==="borderless"||p==="filled"||p==="underlined"?"text":s?"solid":void 0},s),l&&(j=[j,sn(l,{key:"addonAfter"})]);const z=J(S,{[`${S}-rtl`]:C==="rtl",[`${S}-${$}`]:!!$,[`${S}-with-button`]:!!s},o),U=H=>{x.current=!0,h?.(H)},K=H=>{x.current=!1,g?.(H)},k=Object.assign(Object.assign({},y),{className:z,prefixCls:w,type:"search",size:$,variant:p,onPressEnter:F,onCompositionStart:U,onCompositionEnd:K,addonAfter:j,suffix:i,onChange:R,disabled:u});return d.createElement(ro,Object.assign({ref:hr(O,t)},k))});process.env.NODE_ENV!=="production"&&(df.displayName="Search");var PC=`
160
- min-height:0 !important;
161
- max-height:none !important;
162
- height:0 !important;
163
- visibility:hidden !important;
164
- overflow:hidden !important;
165
- position:absolute !important;
166
- z-index:-1000 !important;
167
- top:0 !important;
168
- right:0 !important;
169
- pointer-events: none !important;
170
- `,RC=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Qa={},yt;function _C(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Qa[r])return Qa[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=RC.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(Qa[r]=l),l}function NC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yt||(yt=document.createElement("textarea"),yt.setAttribute("tab-index","-1"),yt.setAttribute("aria-hidden","true"),yt.setAttribute("name","hiddenTextarea"),document.body.appendChild(yt)),e.getAttribute("wrap")?yt.setAttribute("wrap",e.getAttribute("wrap")):yt.removeAttribute("wrap");var o=_C(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;yt.setAttribute("style","".concat(l,";").concat(PC)),yt.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,m=yt.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),r!==null||n!==null){yt.value=" ";var h=yt.scrollHeight-a;r!==null&&(c=h*r,s==="border-box"&&(c=c+a+i),m=Math.max(c,m)),n!==null&&(u=h*n,s==="border-box"&&(u=u+a+i),f=m>u?"":"hidden",m=Math.min(u,m))}var g={height:m,overflowY:f,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var TC=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Za=0,Ja=1,ei=2,IC=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,m=r.onInternalAutoSize,h=dt(r,TC),g=Kn(o,{value:a,postState:function(L){return L??""}}),p=X(g,2),v=p[0],y=p[1],b=function(L){y(L.target.value),f?.(L)},C=d.useRef();d.useImperativeHandle(t,function(){return{textArea:C.current}});var x=d.useMemo(function(){return i&&de(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=X(x,2),w=S[0],E=S[1],$=!!i,O=d.useState(ei),R=X(O,2),N=R[0],I=R[1],F=d.useState(),T=X(F,2),V=T[0],j=T[1],M=function(){I(Za),process.env.NODE_ENV==="test"&&m?.()};Ue(function(){$&&M()},[a,w,E,$]),Ue(function(){if(N===Za)I(Ja);else if(N===Ja){var H=NC(C.current,!1,w,E);I(ei),j(H)}},[N]);var D=d.useRef(),z=function(){St.cancel(D.current)},U=function(L){N===ei&&(s?.(L),i&&(z(),D.current=St(function(){M()})))};d.useEffect(function(){return z},[]);var K=$?V:null,k=A(A({},c),K);return(N===Za||N===Ja)&&(k.overflowY="hidden",k.overflowX="hidden"),d.createElement(Gn,{onResize:U,disabled:!(i||s)},d.createElement("textarea",Fe({},h,{ref:C,style:k,className:J(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),FC=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],MC=P.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,p=e.showCount,v=e.count,y=e.className,b=e.style,C=e.disabled,x=e.hidden,S=e.classNames,w=e.styles,E=e.onResize,$=e.onClear,O=e.onPressEnter,R=e.readOnly,N=e.autoSize,I=e.onKeyDown,F=dt(e,FC),T=Kn(n,{value:o,defaultValue:n}),V=X(T,2),j=V[0],M=V[1],D=j==null?"":String(j),z=P.useState(!1),U=X(z,2),K=U[0],k=U[1],H=P.useRef(!1),L=P.useState(null),q=X(L,2),B=q[0],oe=q[1],G=P.useRef(null),Q=P.useRef(null),ee=function(){var ve;return(ve=Q.current)===null||ve===void 0?void 0:ve.textArea},te=function(){ee().focus()};P.useImperativeHandle(t,function(){var Se;return{resizableTextArea:Q.current,focus:te,blur:function(){ee().blur()},nativeElement:((Se=G.current)===null||Se===void 0?void 0:Se.nativeElement)||ee()}}),P.useEffect(function(){k(function(Se){return!C&&Se})},[C]);var se=P.useState(null),le=X(se,2),W=le[0],ce=le[1];P.useEffect(function(){if(W){var Se;(Se=ee()).setSelectionRange.apply(Se,re(W))}},[W]);var Y=Qd(v,p),ie=(r=Y.max)!==null&&r!==void 0?r:c,ge=Number(ie)>0,ae=Y.strategy(D),Ce=!!ie&&ae>ie,me=function(ve,Ae){var nt=Ae;!H.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ae)>Y.max&&(nt=Y.exceedFormatter(Ae,{max:Y.max}),Ae!==nt&&ce([ee().selectionStart||0,ee().selectionEnd||0])),M(nt),Uo(ve.currentTarget,ve,s,nt)},ye=function(ve){H.current=!0,u?.(ve)},ue=function(ve){H.current=!1,me(ve,ve.currentTarget.value),f?.(ve)},Z=function(ve){me(ve,ve.target.value)},pe=function(ve){ve.key==="Enter"&&O&&O(ve),I?.(ve)},Ee=function(ve){k(!0),a?.(ve)},Xe=function(ve){k(!1),i?.(ve)},Me=function(ve){M(""),te(),Uo(ee(),ve,s)},je=m,ct;Y.show&&(Y.showFormatter?ct=Y.showFormatter({value:D,count:ae,maxLength:ie}):ct="".concat(ae).concat(ge?" / ".concat(ie):""),je=P.createElement(P.Fragment,null,je,P.createElement("span",{className:J("".concat(g,"-data-count"),S?.count),style:w?.count},ct)));var Oe=function(ve){var Ae;E?.(ve),(Ae=ee())!==null&&Ae!==void 0&&Ae.style.height&&oe(!0)},$e=!N&&!p&&!l;return P.createElement(Yd,{ref:G,value:D,allowClear:l,handleReset:Me,suffix:je,prefixCls:g,classNames:A(A({},S),{},{affixWrapper:J(S?.affixWrapper,_(_({},"".concat(g,"-show-count"),p),"".concat(g,"-textarea-allow-clear"),l))}),disabled:C,focused:K,className:J(y,Ce&&"".concat(g,"-out-of-range")),style:A(A({},b),B&&!$e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ct=="string"?ct:void 0}},hidden:x,readOnly:R,onClear:$},P.createElement(IC,Fe({},F,{autoSize:N,maxLength:c,onKeyDown:pe,onChange:Z,onFocus:Ee,onBlur:Xe,onCompositionStart:ye,onCompositionEnd:ue,className:J(S?.textarea),style:A(A({},w?.textarea),{},{resize:b?.resize}),disabled:C,prefixCls:g,onResize:Oe,ref:Q,readOnly:R})))});const AC=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${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"}},[`
171
- &-allow-clear > ${t},
172
- &-affix-wrapper${n}-has-feedback ${t}
173
- `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},jC=ar(["Input","TextArea"],e=>{const t=vt(e,ua(e));return AC(t)},da,{resetFont:!1});var VC=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const DC=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:m,styles:h,variant:g,showCount:p,onMouseDown:v,onResize:y}=e,b=VC(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:Y}=lt("TextArea");Y(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:x,allowClear:S,autoComplete:w,className:E,style:$,classNames:O,styles:R}=Xn("textArea"),N=d.useContext(pr),I=i??N,{status:F,hasFeedback:T,feedbackIcon:V}=d.useContext(xt),j=Rs(F,s),M=d.useRef(null);d.useImperativeHandle(t,()=>{var Y;return{resizableTextArea:(Y=M.current)===null||Y===void 0?void 0:Y.resizableTextArea,focus:ie=>{var ge,ae;Kd((ae=(ge=M.current)===null||ge===void 0?void 0:ge.resizableTextArea)===null||ae===void 0?void 0:ae.textArea,ie)},blur:()=>{var ie;return(ie=M.current)===null||ie===void 0?void 0:ie.blur()}}});const D=C("input",n),z=Qn(D),[U,K,k]=Gd(D,u),[H]=jC(D,z),{compactSize:L,compactItemClassnames:q}=ra(D,x),B=vn(Y=>{var ie;return(ie=a??L)!==null&&ie!==void 0?ie:Y}),[oe,G]=Nd("textArea",g,o),Q=Zd(l??S),[ee,te]=d.useState(!1),[se,le]=d.useState(!1),W=Y=>{te(!0),v?.(Y);const ie=()=>{te(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},ce=Y=>{var ie,ge;if(y?.(Y),ee&&typeof getComputedStyle=="function"){const ae=(ge=(ie=M.current)===null||ie===void 0?void 0:ie.nativeElement)===null||ge===void 0?void 0:ge.querySelector("textarea");ae&&getComputedStyle(ae).resize==="both"&&le(!0)}};return U(H(d.createElement(MC,Object.assign({autoComplete:w},b,{style:Object.assign(Object.assign({},$),m),styles:Object.assign(Object.assign({},R),h),disabled:I,allowClear:Q,className:J(k,z,f,u,q,E,se&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:J({[`${D}-sm`]:B==="small",[`${D}-lg`]:B==="large"},K,c?.textarea,O.textarea,ee&&`${D}-mouse-active`),variant:J({[`${D}-${oe}`]:G},ts(D,j)),affixWrapper:J(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:x==="rtl",[`${D}-affix-wrapper-sm`]:B==="small",[`${D}-affix-wrapper-lg`]:B==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},K)}),prefixCls:D,suffix:T&&d.createElement("span",{className:`${D}-textarea-suffix`},V),showCount:p,ref:M,onResize:ce,onMouseDown:W}))))}),gr=ro;gr.Group=vC;gr.Search=df;gr.TextArea=DC;gr.Password=uf;gr.OTP=CC;function Ur(e){return Array.isArray(e)?e:typeof e=="string"&&e.includes(".")?e.split("."):e}function ti(e){return Array.isArray(e)?e.join("."):String(e)}function LC(e,t){return(Array.isArray(t)?t:[t]).reduce((n,o)=>n==null?n:n[o],e)}function zC(e,t,r){const n=Array.isArray(t)?t:[t];let o=e;for(let a=0;a<n.length;a++){const i=n[a];a===n.length-1?o[i]=r:((o[i]==null||typeof o[i]!="object")&&(o[i]={}),o=o[i])}}function ri(e){const t={};return e.forEach(r=>{const n=Ur(r?.path??r?.key);zC(t,n,r?.value)}),t}const HC=P.forwardRef((e,t)=>{const[r]=Nt.useForm(),n=e.validateTrigger??"onBlur",o=e.validateTrigger===null?void 0:n,a=e.preset??"fullRow",[i,s]=P.useState({}),l=P.useMemo(()=>(e.items??[]).filter(g=>!g?.hidden),[e.items]),c=P.useMemo(()=>[...l].sort((g,p)=>{const v=g?.sort??1/0,y=p?.sort??1/0;return Number(v)-Number(y)}),[l]),u=P.useMemo(()=>{const g={};return l.forEach(p=>{const v=Ur(p?.path??p?.key),y=ti(v);let b=p?.rule;if(p?.required&&!p?.rule){const C=typeof p?.label=="string"?p.label:"";b={required:!0,message:p?.requiredHint?.(C)??`${C||p?.key}不能为空`,validateTrigger:o}}if(b&&(g[y]=b,p.isCustom)){const C=Array.isArray(b)?b:[b];s(x=>({...x,[v]:{status:!1,help:C.map(S=>S.message).filter(Boolean).join(",")}}))}}),{...g,...e.rules??{}}},[l,e.rules]);P.useEffect(()=>{r.setFieldsValue(ri(l))},[r,l]);const f=(g,p)=>{l.forEach(v=>{const y=Ur(v?.path??v?.key);v.value=LC(p,y)})};P.useImperativeHandle(t,()=>({reset:(g=null)=>{l.forEach(p=>p.value=g),r.setFieldsValue(ri(l))},validator:async()=>{const g=l.filter(C=>!C.isCustom).map(C=>Ur(C?.path??C?.key)),p=await r.validateFields(g);let v={};const y=l.filter(C=>C.isCustom),b=[];for(const C of y){const x=Ur(C?.path??C?.key),S=ti(x),w=u[S],E=Array.isArray(w)?w:w?[w]:[];s($=>({...$,[S]:{status:"validating",help:""}})),v={...v,[S]:C.value};try{await WC(C.value,E),s($=>({...$,[S]:{status:"success",help:""}}))}catch($){const O=$?.message||E.map(R=>R.message).filter(Boolean).join(",");s(R=>({...R,[S]:{status:"error",help:O}})),b.push({name:S,errors:[O]})}}return b.length?Promise.reject({errorFields:b,outOfDate:!1}):{...p,...v}},getResult:(g="res")=>g==="ori"?l:ri(l),form:r}));const m=(g,p)=>typeof g?.render2=="function"?g.render2.length>=2?g.render2(g,p):g.render2(g):null,h=g=>{const p=Ur(g?.path??g?.key),v=ti(p),y=u[v],b=Array.isArray(y)?y:y?[y]:void 0;let C=b?.map(O=>O.validateTrigger)?.filter(Boolean)??[];o&&(C=C.concat(n));const x=g?.colProps??{span:g?.span??24,offset:g?.offset??0},S=g?.formItemProps??{},{status:w,help:E}=i[v]??{status:void 0,help:void 0},$=g.isCustom?Vt.jsx(Nt.Item,{name:void 0,label:g?.label,required:!!g?.required||i[v],validateStatus:w,help:w==="error"?E:void 0,...S,children:m(g,r)},v):Vt.jsx(Nt.Item,{name:p,label:g?.label,rules:b,validateTrigger:C,...S,children:m(g,r)},v);return a==="grid"?Vt.jsx(fa,{...x,children:$},v):$};return Vt.jsxs("div",{className:"dynamicForm",children:[e.header&&Vt.jsx("div",{className:"header",children:e.header()}),Vt.jsx(Nt,{form:r,onValuesChange:f,...e.formConfig,children:a==="grid"?Vt.jsx(Ts,{gutter:e.gridConfig?.gutter??10,...e.gridConfig,children:c.map(h)}):c.map(h)}),e.footer&&Vt.jsx("div",{className:"footer",children:e.footer()})]})});function BC(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0)}async function WC(e,t){for(const r of t){const n=r;if(n?.required&&BC(e))throw new Error(n?.message||"必填");typeof n?.validator=="function"&&await n.validator(n,e)}}function kC(e={},t){const{type:r="text",key:n,render2:o,...a}=t??{},i=s=>{t?.onChange?.(s.target.value,t),e?.onChange?.(s)};switch(r){case"password":return Vt.jsx(gr.Password,{...a,...e,onChange:i});case"textarea":return Vt.jsx(gr.TextArea,{...a,...e,onChange:i});default:return Vt.jsx(gr,{...a,...e,onChange:i})}}exports.AdDynamicForm=HC;exports.renderInput=kC;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),b=require("react"),y=require("antd");function I(e){return Array.isArray(e)?e:typeof e=="string"&&e.includes(".")?e.split("."):e}function p(e){return Array.isArray(e)?e.join("."):String(e)}function E(e,l){return(Array.isArray(l)?l:[l]).reduce((a,c)=>a==null?a:a[c],e)}function B(e,l,s){const a=Array.isArray(l)?l:[l];let c=e;for(let m=0;m<a.length;m++){const d=a[m];m===a.length-1?c[d]=s:((c[d]==null||typeof c[d]!="object")&&(c[d]={}),c=c[d])}}function w(e){const l={};return e.forEach(s=>{const a=I(s?.path??s?.key);B(l,a,s?.value)}),l}const S=b.forwardRef((e,l)=>{const[s]=y.Form.useForm(),a=e.validateTrigger??"onBlur",c=e.validateTrigger===null?void 0:a,m=e.preset??"fullRow",[d,A]=b.useState({}),u=b.useMemo(()=>(e.items??[]).filter(r=>!r?.hidden),[e.items]),q=b.useMemo(()=>[...u].sort((r,t)=>{const o=r?.sort??1/0,f=t?.sort??1/0;return Number(o)-Number(f)}),[u]),P=b.useMemo(()=>{const r={};return u.forEach(t=>{const o=I(t?.path??t?.key),f=p(o);let i=t?.rule;if(t?.required&&!t?.rule){const n=typeof t?.label=="string"?t.label:"";i={required:!0,message:t?.requiredHint?.(n)??`${n||t?.key}不能为空`,validateTrigger:c}}if(i&&(r[f]=i,t.isCustom)){const n=Array.isArray(i)?i:[i];A(C=>({...C,[o]:{status:!1,help:n.map(h=>h.message).filter(Boolean).join(",")}}))}}),{...r,...e.rules??{}}},[u,e.rules]);b.useEffect(()=>{s.setFieldsValue(w(u))},[s,u]);const R=(r,t)=>{u.forEach(o=>{const f=I(o?.path??o?.key);o.value=E(t,f)})};b.useImperativeHandle(l,()=>({reset:(r=null)=>{u.forEach(t=>t.value=r),s.setFieldsValue(w(u))},validator:async()=>{const r=u.filter(n=>!n.isCustom).map(n=>I(n?.path??n?.key)),t=await s.validateFields(r);let o={};const f=u.filter(n=>n.isCustom),i=[];for(const n of f){const C=I(n?.path??n?.key),h=p(C),j=P[h],F=Array.isArray(j)?j:j?[j]:[];A(v=>({...v,[h]:{status:"validating",help:""}})),o={...o,[h]:n.value};try{await M(n.value,F),A(v=>({...v,[h]:{status:"success",help:""}}))}catch(v){const x=v?.message||F.map(k=>k.message).filter(Boolean).join(",");A(k=>({...k,[h]:{status:"error",help:x}})),i.push({name:h,errors:[x]})}}return i.length?Promise.reject({errorFields:i,outOfDate:!1}):{...t,...o}},getResult:(r="res")=>r==="ori"?u:w(u),form:s}));const T=(r,t)=>typeof r?.render2=="function"?r.render2.length>=2?r.render2(r,t):r.render2(r):null,N=r=>{const t=I(r?.path??r?.key),o=p(t),f=P[o],i=Array.isArray(f)?f:f?[f]:void 0;let n=i?.map(x=>x.validateTrigger)?.filter(Boolean)??[];c&&(n=n.concat(a));const C=r?.colProps??{span:r?.span??24,offset:r?.offset??0},h=r?.formItemProps??{},{status:j,help:F}=d[o]??{status:void 0,help:void 0},v=r.isCustom?g.jsx(y.Form.Item,{name:void 0,label:r?.label,required:!!r?.required||d[o],validateStatus:j,help:j==="error"?F:void 0,...h,children:T(r,s)},o):g.jsx(y.Form.Item,{name:t,label:r?.label,rules:i,validateTrigger:n,...h,children:T(r,s)},o);return m==="grid"?g.jsx(y.Col,{...C,children:v},o):v};return g.jsxs("div",{className:"dynamicForm",children:[e.header&&g.jsx("div",{className:"header",children:e.header()}),g.jsx(y.Form,{form:s,onValuesChange:R,...e.formConfig,children:m==="grid"?g.jsx(y.Row,{gutter:e.gridConfig?.gutter??10,...e.gridConfig,children:q.map(N)}):q.map(N)}),e.footer&&g.jsx("div",{className:"footer",children:e.footer()})]})});function V(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0)}async function M(e,l){for(const s of l){const a=s;if(a?.required&&V(e))throw new Error(a?.message||"必填");typeof a?.validator=="function"&&await a.validator(a,e)}}function O(e={},l){const{type:s="text",key:a,render2:c,...m}=l??{},d=A=>{l?.onChange?.(A.target.value,l),e?.onChange?.(A)};switch(s){case"password":return g.jsx(y.Input.Password,{...m,...e,onChange:d});case"textarea":return g.jsx(y.Input.TextArea,{...m,...e,onChange:d});default:return g.jsx(y.Input,{...m,...e,onChange:d})}}exports.AdDynamicForm=S;exports.renderInput=O;