function yx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Im={exports:{}},zs={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hS;function YR(){if(hS)return zs;hS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var u=null;if(s!==void 0&&(u=""+s),o.key!==void 0&&(u=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:s}}return zs.Fragment=t,zs.jsx=n,zs.jsxs=n,zs}var pS;function KR(){return pS||(pS=1,Im.exports=YR()),Im.exports}var ke=KR(),Pm={exports:{}},Ut={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bS;function XR(){if(bS)return Ut;bS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.iterator;function b(_){return _===null||typeof _!="object"?null:(_=p&&_[p]||_["@@iterator"],typeof _=="function"?_:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function y(_,L,W){this.props=_,this.context=L,this.refs=E,this.updater=W||x}y.prototype.isReactComponent={},y.prototype.setState=function(_,L){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,L,"setState")},y.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function w(){}w.prototype=y.prototype;function $(_,L,W){this.props=_,this.context=L,this.refs=E,this.updater=W||x}var O=$.prototype=new w;O.constructor=$,C(O,y.prototype),O.isPureReactComponent=!0;var T=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function I(_,L,W,Y,U,X){return W=X.ref,{$$typeof:e,type:_,key:L,ref:W!==void 0?W:null,props:X}}function z(_,L){return I(_.type,L,void 0,void 0,void 0,_.props)}function P(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function j(_){var L={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(W){return L[W]})}var H=/\/+/g;function G(_,L){return typeof _=="object"&&_!==null&&_.key!=null?j(""+_.key):L.toString(36)}function k(){}function F(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(k,k):(_.status="pending",_.then(function(L){_.status==="pending"&&(_.status="fulfilled",_.value=L)},function(L){_.status==="pending"&&(_.status="rejected",_.reason=L)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function V(_,L,W,Y,U){var X=typeof _;(X==="undefined"||X==="boolean")&&(_=null);var Z=!1;if(_===null)Z=!0;else switch(X){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(_.$$typeof){case e:case t:Z=!0;break;case g:return Z=_._init,V(Z(_._payload),L,W,Y,U)}}if(Z)return U=U(_),Z=Y===""?"."+G(_,0):Y,T(U)?(W="",Z!=null&&(W=Z.replace(H,"$&/")+"/"),V(U,L,W,"",function(re){return re})):U!=null&&(P(U)&&(U=z(U,W+(U.key==null||_&&_.key===U.key?"":(""+U.key).replace(H,"$&/")+"/")+Z)),L.push(U)),1;Z=0;var te=Y===""?".":Y+":";if(T(_))for(var ne=0;ne<_.length;ne++)Y=_[ne],X=te+G(Y,ne),Z+=V(Y,L,W,X,U);else if(ne=b(_),typeof ne=="function")for(_=ne.call(_),ne=0;!(Y=_.next()).done;)Y=Y.value,X=te+G(Y,ne++),Z+=V(Y,L,W,X,U);else if(X==="object"){if(typeof _.then=="function")return V(F(_),L,W,Y,U);throw L=String(_),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Z}function R(_,L,W){if(_==null)return _;var Y=[],U=0;return V(_,Y,"","",function(X){return L.call(W,X,U++)}),Y}function N(_){if(_._status===-1){var L=_._result;L=L(),L.then(function(W){(_._status===0||_._status===-1)&&(_._status=1,_._result=W)},function(W){(_._status===0||_._status===-1)&&(_._status=2,_._result=W)}),_._status===-1&&(_._status=0,_._result=L)}if(_._status===1)return _._result.default;throw _._result}var A=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function q(){}return Ut.Children={map:R,forEach:function(_,L,W){R(_,function(){L.apply(this,arguments)},W)},count:function(_){var L=0;return R(_,function(){L++}),L},toArray:function(_){return R(_,function(L){return L})||[]},only:function(_){if(!P(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ut.Component=y,Ut.Fragment=n,Ut.Profiler=o,Ut.PureComponent=$,Ut.StrictMode=r,Ut.Suspense=v,Ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ut.__COMPILER_RUNTIME={__proto__:null,c:function(_){return M.H.useMemoCache(_)}},Ut.cache=function(_){return function(){return _.apply(null,arguments)}},Ut.cloneElement=function(_,L,W){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var Y=C({},_.props),U=_.key,X=void 0;if(L!=null)for(Z in L.ref!==void 0&&(X=void 0),L.key!==void 0&&(U=""+L.key),L)!D.call(L,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&L.ref===void 0||(Y[Z]=L[Z]);var Z=arguments.length-2;if(Z===1)Y.children=W;else if(1<Z){for(var te=Array(Z),ne=0;ne<Z;ne++)te[ne]=arguments[ne+2];Y.children=te}return I(_.type,U,void 0,void 0,X,Y)},Ut.createContext=function(_){return _={$$typeof:u,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:s,_context:_},_},Ut.createElement=function(_,L,W){var Y,U={},X=null;if(L!=null)for(Y in L.key!==void 0&&(X=""+L.key),L)D.call(L,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(U[Y]=L[Y]);var Z=arguments.length-2;if(Z===1)U.children=W;else if(1<Z){for(var te=Array(Z),ne=0;ne<Z;ne++)te[ne]=arguments[ne+2];U.children=te}if(_&&_.defaultProps)for(Y in Z=_.defaultProps,Z)U[Y]===void 0&&(U[Y]=Z[Y]);return I(_,X,void 0,void 0,null,U)},Ut.createRef=function(){return{current:null}},Ut.forwardRef=function(_){return{$$typeof:d,render:_}},Ut.isValidElement=P,Ut.lazy=function(_){return{$$typeof:g,_payload:{_status:-1,_result:_},_init:N}},Ut.memo=function(_,L){return{$$typeof:m,type:_,compare:L===void 0?null:L}},Ut.startTransition=function(_){var L=M.T,W={};M.T=W;try{var Y=_(),U=M.S;U!==null&&U(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(q,A)}catch(X){A(X)}finally{M.T=L}},Ut.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ut.use=function(_){return M.H.use(_)},Ut.useActionState=function(_,L,W){return M.H.useActionState(_,L,W)},Ut.useCallback=function(_,L){return M.H.useCallback(_,L)},Ut.useContext=function(_){return M.H.useContext(_)},Ut.useDebugValue=function(){},Ut.useDeferredValue=function(_,L){return M.H.useDeferredValue(_,L)},Ut.useEffect=function(_,L,W){var Y=M.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(_,L)},Ut.useId=function(){return M.H.useId()},Ut.useImperativeHandle=function(_,L,W){return M.H.useImperativeHandle(_,L,W)},Ut.useInsertionEffect=function(_,L){return M.H.useInsertionEffect(_,L)},Ut.useLayoutEffect=function(_,L){return M.H.useLayoutEffect(_,L)},Ut.useMemo=function(_,L){return M.H.useMemo(_,L)},Ut.useOptimistic=function(_,L){return M.H.useOptimistic(_,L)},Ut.useReducer=function(_,L,W){return M.H.useReducer(_,L,W)},Ut.useRef=function(_){return M.H.useRef(_)},Ut.useState=function(_){return M.H.useState(_)},Ut.useSyncExternalStore=function(_,L,W){return M.H.useSyncExternalStore(_,L,W)},Ut.useTransition=function(){return M.H.useTransition()},Ut.version="19.1.0",Ut}var yS;function Wh(){return yS||(yS=1,Pm.exports=XR()),Pm.exports}var c=Wh();const Ie=Oa(c),rd=yx({__proto__:null,default:Ie},[c]);var Am={exports:{}},js={},zm={exports:{}},jm={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var SS;function QR(){return SS||(SS=1,function(e){function t(R,N){var A=R.length;R.push(N);e:for(;0<A;){var q=A-1>>>1,_=R[q];if(0<o(_,N))R[q]=N,R[A]=_,A=q;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var N=R[0],A=R.pop();if(A!==N){R[0]=A;e:for(var q=0,_=R.length,L=_>>>1;q<L;){var W=2*(q+1)-1,Y=R[W],U=W+1,X=R[U];if(0>o(Y,A))U<_&&0>o(X,Y)?(R[q]=X,R[U]=A,q=U):(R[q]=Y,R[W]=A,q=W);else if(U<_&&0>o(X,A))R[q]=X,R[U]=A,q=U;else break e}}return N}function o(R,N){var A=R.sortIndex-N.sortIndex;return A!==0?A:R.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var v=[],m=[],g=1,p=null,b=3,x=!1,C=!1,E=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function T(R){for(var N=n(m);N!==null;){if(N.callback===null)r(m);else if(N.startTime<=R)r(m),N.sortIndex=N.expirationTime,t(v,N);else break;N=n(m)}}function M(R){if(E=!1,T(R),!C)if(n(v)!==null)C=!0,D||(D=!0,G());else{var N=n(m);N!==null&&V(M,N.startTime-R)}}var D=!1,I=-1,z=5,P=-1;function j(){return y?!0:!(e.unstable_now()-P<z)}function H(){if(y=!1,D){var R=e.unstable_now();P=R;var N=!0;try{e:{C=!1,E&&(E=!1,$(I),I=-1),x=!0;var A=b;try{t:{for(T(R),p=n(v);p!==null&&!(p.expirationTime>R&&j());){var q=p.callback;if(typeof q=="function"){p.callback=null,b=p.priorityLevel;var _=q(p.expirationTime<=R);if(R=e.unstable_now(),typeof _=="function"){p.callback=_,T(R),N=!0;break t}p===n(v)&&r(v),T(R)}else r(v);p=n(v)}if(p!==null)N=!0;else{var L=n(m);L!==null&&V(M,L.startTime-R),N=!1}}break e}finally{p=null,b=A,x=!1}N=void 0}}finally{N?G():D=!1}}}var G;if(typeof O=="function")G=function(){O(H)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,F=k.port2;k.port1.onmessage=H,G=function(){F.postMessage(null)}}else G=function(){w(H,0)};function V(R,N){I=w(function(){R(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(R){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var A=b;b=N;try{return R()}finally{b=A}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(R,N){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=b;b=R;try{return N()}finally{b=A}},e.unstable_scheduleCallback=function(R,N,A){var q=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?q+A:q):A=q,R){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=A+_,R={id:g++,callback:N,priorityLevel:R,startTime:A,expirationTime:_,sortIndex:-1},A>q?(R.sortIndex=A,t(m,R),n(v)===null&&R===n(m)&&(E?($(I),I=-1):E=!0,V(M,A-q))):(R.sortIndex=_,t(v,R),C||x||(C=!0,D||(D=!0,G()))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var N=b;return function(){var A=b;b=N;try{return R.apply(this,arguments)}finally{b=A}}}}(jm)),jm}var CS;function ZR(){return CS||(CS=1,zm.exports=QR()),zm.exports}var Hm={exports:{}},$r={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xS;function JR(){if(xS)return $r;xS=1;var e=Wh();function t(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(v,m,g){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:v,containerInfo:m,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return $r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$r.createPortal=function(v,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(v,m,null,g)},$r.flushSync=function(v){var m=u.T,g=r.p;try{if(u.T=null,r.p=2,v)return v()}finally{u.T=m,r.p=g,r.d.f()}},$r.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(v,m))},$r.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},$r.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var g=m.as,p=d(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:x}):g==="script"&&r.d.X(v,{crossOrigin:p,integrity:b,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},$r.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);r.d.M(v,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(v)},$r.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,p=d(g,m.crossOrigin);r.d.L(v,g,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},$r.preloadModule=function(v,m){if(typeof v=="string")if(m){var g=d(m.as,m.crossOrigin);r.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(v)},$r.requestFormReset=function(v){r.d.r(v)},$r.unstable_batchedUpdates=function(v,m){return v(m)},$r.useFormState=function(v,m,g){return u.H.useFormState(v,m,g)},$r.useFormStatus=function(){return u.H.useHostTransitionStatus()},$r.version="19.1.0",$r}var wS;function Sx(){if(wS)return Hm.exports;wS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hm.exports=JR(),Hm.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ES;function eM(){if(ES)return js;ES=1;var e=ZR(),t=Wh(),n=Sx();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function u(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(s(a)!==a)throw Error(r(188))}function v(a){var i=a.alternate;if(!i){if(i=s(a),i===null)throw Error(r(188));return i!==a?null:a}for(var l=a,f=i;;){var h=l.return;if(h===null)break;var S=h.alternate;if(S===null){if(f=h.return,f!==null){l=f;continue}break}if(h.child===S.child){for(S=h.child;S;){if(S===l)return d(h),a;if(S===f)return d(h),i;S=S.sibling}throw Error(r(188))}if(l.return!==f.return)l=h,f=S;else{for(var B=!1,K=h.child;K;){if(K===l){B=!0,l=h,f=S;break}if(K===f){B=!0,f=h,l=S;break}K=K.sibling}if(!B){for(K=S.child;K;){if(K===l){B=!0,l=S,f=h;break}if(K===f){B=!0,f=S,l=h;break}K=K.sibling}if(!B)throw Error(r(189))}}if(l.alternate!==f)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?a:i}function m(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=m(a),i!==null)return i;a=a.sibling}return null}var g=Object.assign,p=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),$=Symbol.for("react.consumer"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function G(a){return a===null||typeof a!="object"?null:(a=H&&a[H]||a["@@iterator"],typeof a=="function"?a:null)}var k=Symbol.for("react.client.reference");function F(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===k?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case C:return"Fragment";case y:return"Profiler";case E:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case P:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case O:return(a.displayName||"Context")+".Provider";case $:return(a._context.displayName||"Context")+".Consumer";case T:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case I:return i=a.displayName||null,i!==null?i:F(a.type)||"Memo";case z:i=a._payload,a=a._init;try{return F(a(i))}catch{}}return null}var V=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},q=[],_=-1;function L(a){return{current:a}}function W(a){0>_||(a.current=q[_],q[_]=null,_--)}function Y(a,i){_++,q[_]=a.current,a.current=i}var U=L(null),X=L(null),Z=L(null),te=L(null);function ne(a,i){switch(Y(Z,i),Y(X,a),Y(U,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?Uy(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=Uy(i),a=qy(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}W(U),Y(U,a)}function re(){W(U),W(X),W(Z)}function le(a){a.memoizedState!==null&&Y(te,a);var i=U.current,l=qy(i,a.type);i!==l&&(Y(X,a),Y(U,l))}function oe(a){X.current===a&&(W(U),W(X)),te.current===a&&(W(te),Ns._currentValue=A)}var ie=Object.prototype.hasOwnProperty,ce=e.unstable_scheduleCallback,de=e.unstable_cancelCallback,ue=e.unstable_shouldYield,fe=e.unstable_requestPaint,xe=e.unstable_now,pe=e.unstable_getCurrentPriorityLevel,Ne=e.unstable_ImmediatePriority,De=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,Le=e.unstable_LowPriority,Ee=e.unstable_IdlePriority,Me=e.log,Fe=e.unstable_setDisableYieldValue,Te=null,Ye=null;function Xe(a){if(typeof Me=="function"&&Fe(a),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(Te,a)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ze=Math.log,et=Math.LN2;function Ge(a){return a>>>=0,a===0?32:31-(Ze(a)/et|0)|0}var qe=256,ye=4194304;function Oe(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function $e(a,i,l){var f=a.pendingLanes;if(f===0)return 0;var h=0,S=a.suspendedLanes,B=a.pingedLanes;a=a.warmLanes;var K=f&134217727;return K!==0?(f=K&~S,f!==0?h=Oe(f):(B&=K,B!==0?h=Oe(B):l||(l=K&~a,l!==0&&(h=Oe(l))))):(K=f&~S,K!==0?h=Oe(K):B!==0?h=Oe(B):l||(l=f&~a,l!==0&&(h=Oe(l)))),h===0?0:i!==0&&i!==h&&(i&S)===0&&(S=h&-h,l=i&-i,S>=l||S===32&&(l&4194048)!==0)?i:h}function Se(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function Be(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mt(){var a=qe;return qe<<=1,(qe&4194048)===0&&(qe=256),a}function Ot(){var a=ye;return ye<<=1,(ye&62914560)===0&&(ye=4194304),a}function Dt(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Kt(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function zt(a,i,l,f,h,S){var B=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var K=a.entanglements,ae=a.expirationTimes,be=a.hiddenUpdates;for(l=B&~l;0<l;){var _e=31-He(l),ze=1<<_e;K[_e]=0,ae[_e]=-1;var Ce=be[_e];if(Ce!==null)for(be[_e]=null,_e=0;_e<Ce.length;_e++){var we=Ce[_e];we!==null&&(we.lane&=-536870913)}l&=~ze}f!==0&&Tt(a,f,0),S!==0&&h===0&&a.tag!==0&&(a.suspendedLanes|=S&~(B&~i))}function Tt(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var f=31-He(i);a.entangledLanes|=i,a.entanglements[f]=a.entanglements[f]|1073741824|l&4194090}function Rt(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var f=31-He(l),h=1<<f;h&i|a[f]&i&&(a[f]|=i),l&=~h}}function gt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function at(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function tt(){var a=N.p;return a!==0?a:(a=window.event,a===void 0?32:uS(a.type))}function Qe(a,i){var l=N.p;try{return N.p=a,i()}finally{N.p=l}}var Ct=Math.random().toString(36).slice(2),yt="__reactFiber$"+Ct,We="__reactProps$"+Ct,Ke="__reactContainer$"+Ct,it="__reactEvents$"+Ct,ft="__reactListeners$"+Ct,st="__reactHandles$"+Ct,dt="__reactResources$"+Ct,Vt="__reactMarker$"+Ct;function jt(a){delete a[yt],delete a[We],delete a[it],delete a[ft],delete a[st]}function Lt(a){var i=a[yt];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Ke]||l[yt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=Ky(a);a!==null;){if(l=a[yt])return l;a=Ky(a)}return i}a=l,l=a.parentNode}return null}function Ht(a){if(a=a[yt]||a[Ke]){var i=a.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return a}return null}function Ft(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function nn(a){var i=a[dt];return i||(i=a[dt]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wt(a){a[Vt]=!0}var $n=new Set,ln={};function rn(a,i){Ue(a,i),Ue(a+"Capture",i)}function Ue(a,i){for(ln[a]=i,a=0;a<i.length;a++)$n.add(i[a])}var lt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nt={},Ve={};function ht(a){return ie.call(Ve,a)?!0:ie.call(nt,a)?!1:lt.test(a)?Ve[a]=!0:(nt[a]=!0,!1)}function It(a,i,l){if(ht(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+l)}}function Xt(a,i,l){if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+l)}}function Jt(a,i,l,f){if(f===null)a.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttributeNS(i,l,""+f)}}var On,cn;function dn(a){if(On===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);On=i&&i[1]||"",cn=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+On+a+cn}var Cn=!1;function ar(a,i){if(!a||Cn)return"";Cn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(we){var Ce=we}Reflect.construct(a,[],ze)}else{try{ze.call()}catch(we){Ce=we}a.call(ze.prototype)}}else{try{throw Error()}catch(we){Ce=we}(ze=a())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(we){if(we&&Ce&&typeof we.stack=="string")return[we.stack,Ce.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=f.DetermineComponentFrameRoot(),B=S[0],K=S[1];if(B&&K){var ae=B.split(`
`),be=K.split(`
`);for(h=f=0;f<ae.length&&!ae[f].includes("DetermineComponentFrameRoot");)f++;for(;h<be.length&&!be[h].includes("DetermineComponentFrameRoot");)h++;if(f===ae.length||h===be.length)for(f=ae.length-1,h=be.length-1;1<=f&&0<=h&&ae[f]!==be[h];)h--;for(;1<=f&&0<=h;f--,h--)if(ae[f]!==be[h]){if(f!==1||h!==1)do if(f--,h--,0>h||ae[f]!==be[h]){var _e=`
`+ae[f].replace(" at new "," at ");return a.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",a.displayName)),_e}while(1<=f&&0<=h);break}}}finally{Cn=!1,Error.prepareStackTrace=l}return(l=a?a.displayName||a.name:"")?dn(l):""}function xr(a){switch(a.tag){case 26:case 27:case 5:return dn(a.type);case 16:return dn("Lazy");case 13:return dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return ar(a.type,!1);case 11:return ar(a.type.render,!1);case 1:return ar(a.type,!0);case 31:return dn("Activity");default:return""}}function zn(a){try{var i="";do i+=xr(a),a=a.return;while(a);return i}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function un(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function hr(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function wr(a){var i=hr(a)?"checked":"value",l=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),f=""+a[i];if(!a.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,S=l.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return h.call(this)},set:function(B){f=""+B,S.call(this,B)}}),Object.defineProperty(a,i,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(B){f=""+B},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Fn(a){a._valueTracker||(a._valueTracker=wr(a))}function Tr(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),f="";return a&&(f=hr(a)?a.checked?"true":"false":a.value),a=f,a!==l?(i.setValue(a),!0):!1}function Gt(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var ut=/[\n"\\]/g;function Je(a){return a.replace(ut,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Yt(a,i,l,f,h,S,B,K){a.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?a.type=B:a.removeAttribute("type"),i!=null?B==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+un(i)):a.value!==""+un(i)&&(a.value=""+un(i)):B!=="submit"&&B!=="reset"||a.removeAttribute("value"),i!=null?rt(a,B,un(i)):l!=null?rt(a,B,un(l)):f!=null&&a.removeAttribute("value"),h==null&&S!=null&&(a.defaultChecked=!!S),h!=null&&(a.checked=h&&typeof h!="function"&&typeof h!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?a.name=""+un(K):a.removeAttribute("name")}function ot(a,i,l,f,h,S,B,K){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(a.type=S),i!=null||l!=null){if(!(S!=="submit"&&S!=="reset"||i!=null))return;l=l!=null?""+un(l):"",i=i!=null?""+un(i):l,K||i===a.value||(a.value=i),a.defaultValue=i}f=f??h,f=typeof f!="function"&&typeof f!="symbol"&&!!f,a.checked=K?a.checked:!!f,a.defaultChecked=!!f,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(a.name=B)}function rt(a,i,l){i==="number"&&Gt(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function At(a,i,l,f){if(a=a.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<a.length;l++)h=i.hasOwnProperty("$"+a[l].value),a[l].selected!==h&&(a[l].selected=h),h&&f&&(a[l].defaultSelected=!0)}else{for(l=""+un(l),i=null,h=0;h<a.length;h++){if(a[h].value===l){a[h].selected=!0,f&&(a[h].defaultSelected=!0);return}i!==null||a[h].disabled||(i=a[h])}i!==null&&(i.selected=!0)}}function xn(a,i,l){if(i!=null&&(i=""+un(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+un(l):""}function jn(a,i,l,f){if(i==null){if(f!=null){if(l!=null)throw Error(r(92));if(V(f)){if(1<f.length)throw Error(r(93));f=f[0]}l=f}l==null&&(l=""),i=l}l=un(i),a.defaultValue=l,f=a.textContent,f===l&&f!==""&&f!==null&&(a.value=f)}function Ln(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}var Jn=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function er(a,i,l){var f=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?f?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":f?a.setProperty(i,l):typeof l!="number"||l===0||Jn.has(i)?i==="float"?a.cssFloat=l:a[i]=(""+l).trim():a[i]=l+"px"}function _t(a,i,l){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,l!=null){for(var f in l)!l.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?a.setProperty(f,""):f==="float"?a.cssFloat="":a[f]="");for(var h in i)f=i[h],i.hasOwnProperty(h)&&l[h]!==f&&er(a,h,f)}else for(var S in i)i.hasOwnProperty(S)&&er(a,S,i[S])}function pt(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hn(a){return Rn.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var Gn=null;function Ta(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Fr=null,_r=null;function Ba(a){var i=Ht(a);if(i&&(a=i.stateNode)){var l=a[We]||null;e:switch(a=i.stateNode,i.type){case"input":if(Yt(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=a;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Je(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var f=l[i];if(f!==a&&f.form===a.form){var h=f[We]||null;if(!h)throw Error(r(90));Yt(f,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)f=l[i],f.form===a.form&&Tr(f)}break e;case"textarea":xn(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&At(a,!!l.multiple,i,!1)}}}var mo=!1;function Ko(a,i,l){if(mo)return a(i,l);mo=!0;try{var f=a(i);return f}finally{if(mo=!1,(Fr!==null||_r!==null)&&(Tu(),Fr&&(i=Fr,a=_r,_r=Fr=null,Ba(i),a)))for(i=0;i<a.length;i++)Ba(a[i])}}function Fa(a,i){var l=a.stateNode;if(l===null)return null;var f=l[We]||null;if(f===null)return null;l=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(a=a.type,f=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!f;break e;default:a=!1}if(a)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$t=!1;if(ct)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){$t=!0}}),window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch{$t=!1}var bn=null,Mn=null,Va=null;function ji(){if(Va)return Va;var a,i=Mn,l=i.length,f,h="value"in bn?bn.value:bn.textContent,S=h.length;for(a=0;a<l&&i[a]===h[a];a++);var B=l-a;for(f=1;f<=B&&i[l-f]===h[S-f];f++);return Va=h.slice(a,1<f?1-f:void 0)}function Xo(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function ka(){return!0}function Kp(){return!1}function Ar(a){function i(l,f,h,S,B){this._reactName=l,this._targetInst=h,this.type=f,this.nativeEvent=S,this.target=B,this.currentTarget=null;for(var K in a)a.hasOwnProperty(K)&&(l=a[K],this[K]=l?l(S):S[K]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?ka:Kp,this.isPropagationStopped=Kp,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ka)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ka)},persist:function(){},isPersistent:ka}),i}var Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yc=Ar(Qo),Wl=g({},Qo,{view:0,detail:0}),Y2=Ar(Wl),Hd,Ld,Gl,Kc=g({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Gl&&(Gl&&a.type==="mousemove"?(Hd=a.screenX-Gl.screenX,Ld=a.screenY-Gl.screenY):Ld=Hd=0,Gl=a),Hd)},movementY:function(a){return"movementY"in a?a.movementY:Ld}}),Xp=Ar(Kc),K2=g({},Kc,{dataTransfer:0}),X2=Ar(K2),Q2=g({},Wl,{relatedTarget:0}),Bd=Ar(Q2),Z2=g({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),J2=Ar(Z2),eO=g({},Qo,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),tO=Ar(eO),nO=g({},Qo,{data:0}),Qp=Ar(nO),rO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iO(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=oO[a])?!!i[a]:!1}function Fd(){return iO}var lO=g({},Wl,{key:function(a){if(a.key){var i=rO[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Xo(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?aO[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(a){return a.type==="keypress"?Xo(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Xo(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),sO=Ar(lO),cO=g({},Kc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zp=Ar(cO),uO=g({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),fO=Ar(uO),dO=g({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),vO=Ar(dO),mO=g({},Kc,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),gO=Ar(mO),hO=g({},Qo,{newState:0,oldState:0}),pO=Ar(hO),bO=[9,13,27,32],Vd=ct&&"CompositionEvent"in window,Yl=null;ct&&"documentMode"in document&&(Yl=document.documentMode);var yO=ct&&"TextEvent"in window&&!Yl,Jp=ct&&(!Vd||Yl&&8<Yl&&11>=Yl),e0=" ",t0=!1;function n0(a,i){switch(a){case"keyup":return bO.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r0(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Hi=!1;function SO(a,i){switch(a){case"compositionend":return r0(i);case"keypress":return i.which!==32?null:(t0=!0,e0);case"textInput":return a=i.data,a===e0&&t0?null:a;default:return null}}function CO(a,i){if(Hi)return a==="compositionend"||!Vd&&n0(a,i)?(a=ji(),Va=Mn=bn=null,Hi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Jp&&i.locale!=="ko"?null:i.data;default:return null}}var xO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function a0(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!xO[a.type]:i==="textarea"}function o0(a,i,l,f){Fr?_r?_r.push(f):_r=[f]:Fr=f,i=Au(i,"onChange"),0<i.length&&(l=new Yc("onChange","change",null,l,f),a.push({event:l,listeners:i}))}var Kl=null,Xl=null;function wO(a){Ly(a,0)}function Xc(a){var i=Ft(a);if(Tr(i))return a}function i0(a,i){if(a==="change")return i}var l0=!1;if(ct){var kd;if(ct){var Ud="oninput"in document;if(!Ud){var s0=document.createElement("div");s0.setAttribute("oninput","return;"),Ud=typeof s0.oninput=="function"}kd=Ud}else kd=!1;l0=kd&&(!document.documentMode||9<document.documentMode)}function c0(){Kl&&(Kl.detachEvent("onpropertychange",u0),Xl=Kl=null)}function u0(a){if(a.propertyName==="value"&&Xc(Xl)){var i=[];o0(i,Xl,a,Ta(a)),Ko(wO,i)}}function EO(a,i,l){a==="focusin"?(c0(),Kl=i,Xl=l,Kl.attachEvent("onpropertychange",u0)):a==="focusout"&&c0()}function $O(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Xc(Xl)}function OO(a,i){if(a==="click")return Xc(i)}function RO(a,i){if(a==="input"||a==="change")return Xc(i)}function MO(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var Vr=typeof Object.is=="function"?Object.is:MO;function Ql(a,i){if(Vr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var l=Object.keys(a),f=Object.keys(i);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var h=l[f];if(!ie.call(i,h)||!Vr(a[h],i[h]))return!1}return!0}function f0(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function d0(a,i){var l=f0(a);a=0;for(var f;l;){if(l.nodeType===3){if(f=a+l.textContent.length,a<=i&&f>=i)return{node:l,offset:i-a};a=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=f0(l)}}function v0(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?v0(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function m0(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Gt(a.document);i instanceof a.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)a=i.contentWindow;else break;i=Gt(a.document)}return i}function qd(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var TO=ct&&"documentMode"in document&&11>=document.documentMode,Li=null,Wd=null,Zl=null,Gd=!1;function g0(a,i,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gd||Li==null||Li!==Gt(f)||(f=Li,"selectionStart"in f&&qd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Zl&&Ql(Zl,f)||(Zl=f,f=Au(Wd,"onSelect"),0<f.length&&(i=new Yc("onSelect","select",null,i,l),a.push({event:i,listeners:f}),i.target=Li)))}function Zo(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l["Webkit"+a]="webkit"+i,l["Moz"+a]="moz"+i,l}var Bi={animationend:Zo("Animation","AnimationEnd"),animationiteration:Zo("Animation","AnimationIteration"),animationstart:Zo("Animation","AnimationStart"),transitionrun:Zo("Transition","TransitionRun"),transitionstart:Zo("Transition","TransitionStart"),transitioncancel:Zo("Transition","TransitionCancel"),transitionend:Zo("Transition","TransitionEnd")},Yd={},h0={};ct&&(h0=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function Jo(a){if(Yd[a])return Yd[a];if(!Bi[a])return a;var i=Bi[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in h0)return Yd[a]=i[l];return a}var p0=Jo("animationend"),b0=Jo("animationiteration"),y0=Jo("animationstart"),_O=Jo("transitionrun"),NO=Jo("transitionstart"),DO=Jo("transitioncancel"),S0=Jo("transitionend"),C0=new Map,Kd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kd.push("scrollEnd");function ha(a,i){C0.set(a,i),rn(i,[a])}var x0=new WeakMap;function ea(a,i){if(typeof a=="object"&&a!==null){var l=x0.get(a);return l!==void 0?l:(i={value:a,source:i,stack:zn(i)},x0.set(a,i),i)}return{value:a,source:i,stack:zn(i)}}var ta=[],Fi=0,Xd=0;function Qc(){for(var a=Fi,i=Xd=Fi=0;i<a;){var l=ta[i];ta[i++]=null;var f=ta[i];ta[i++]=null;var h=ta[i];ta[i++]=null;var S=ta[i];if(ta[i++]=null,f!==null&&h!==null){var B=f.pending;B===null?h.next=h:(h.next=B.next,B.next=h),f.pending=h}S!==0&&w0(l,h,S)}}function Zc(a,i,l,f){ta[Fi++]=a,ta[Fi++]=i,ta[Fi++]=l,ta[Fi++]=f,Xd|=f,a.lanes|=f,a=a.alternate,a!==null&&(a.lanes|=f)}function Qd(a,i,l,f){return Zc(a,i,l,f),Jc(a)}function Vi(a,i){return Zc(a,null,null,i),Jc(a)}function w0(a,i,l){a.lanes|=l;var f=a.alternate;f!==null&&(f.lanes|=l);for(var h=!1,S=a.return;S!==null;)S.childLanes|=l,f=S.alternate,f!==null&&(f.childLanes|=l),S.tag===22&&(a=S.stateNode,a===null||a._visibility&1||(h=!0)),a=S,S=S.return;return a.tag===3?(S=a.stateNode,h&&i!==null&&(h=31-He(l),a=S.hiddenUpdates,f=a[h],f===null?a[h]=[i]:f.push(i),i.lane=l|536870912),S):null}function Jc(a){if(50<ws)throw ws=0,rm=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var ki={};function IO(a,i,l,f){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(a,i,l,f){return new IO(a,i,l,f)}function Zd(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ua(a,i){var l=a.alternate;return l===null?(l=kr(a.tag,i,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l.alternate=a,a.alternate=l):(l.pendingProps=i,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,i=a.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l}function E0(a,i){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,i=l.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function eu(a,i,l,f,h,S){var B=0;if(f=a,typeof a=="function")Zd(a)&&(B=1);else if(typeof a=="string")B=AR(a,l,U.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case P:return a=kr(31,l,i,h),a.elementType=P,a.lanes=S,a;case C:return ei(l.children,h,S,i);case E:B=8,h|=24;break;case y:return a=kr(12,l,i,h|2),a.elementType=y,a.lanes=S,a;case M:return a=kr(13,l,i,h),a.elementType=M,a.lanes=S,a;case D:return a=kr(19,l,i,h),a.elementType=D,a.lanes=S,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case w:case O:B=10;break e;case $:B=9;break e;case T:B=11;break e;case I:B=14;break e;case z:B=16,f=null;break e}B=29,l=Error(r(130,a===null?"null":typeof a,"")),f=null}return i=kr(B,l,i,h),i.elementType=a,i.type=f,i.lanes=S,i}function ei(a,i,l,f){return a=kr(7,a,f,i),a.lanes=l,a}function Jd(a,i,l){return a=kr(6,a,null,i),a.lanes=l,a}function ev(a,i,l){return i=kr(4,a.children!==null?a.children:[],a.key,i),i.lanes=l,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var Ui=[],qi=0,tu=null,nu=0,na=[],ra=0,ti=null,qa=1,Wa="";function ni(a,i){Ui[qi++]=nu,Ui[qi++]=tu,tu=a,nu=i}function $0(a,i,l){na[ra++]=qa,na[ra++]=Wa,na[ra++]=ti,ti=a;var f=qa;a=Wa;var h=32-He(f)-1;f&=~(1<<h),l+=1;var S=32-He(i)+h;if(30<S){var B=h-h%5;S=(f&(1<<B)-1).toString(32),f>>=B,h-=B,qa=1<<32-He(i)+h|l<<h|f,Wa=S+a}else qa=1<<S|l<<h|f,Wa=a}function tv(a){a.return!==null&&(ni(a,1),$0(a,1,0))}function nv(a){for(;a===tu;)tu=Ui[--qi],Ui[qi]=null,nu=Ui[--qi],Ui[qi]=null;for(;a===ti;)ti=na[--ra],na[ra]=null,Wa=na[--ra],na[ra]=null,qa=na[--ra],na[ra]=null}var Nr=null,qn=null,mn=!1,ri=null,_a=!1,rv=Error(r(519));function ai(a){var i=Error(r(418,""));throw ts(ea(i,a)),rv}function O0(a){var i=a.stateNode,l=a.type,f=a.memoizedProps;switch(i[yt]=a,i[We]=f,l){case"dialog":on("cancel",i),on("close",i);break;case"iframe":case"object":case"embed":on("load",i);break;case"video":case"audio":for(l=0;l<$s.length;l++)on($s[l],i);break;case"source":on("error",i);break;case"img":case"image":case"link":on("error",i),on("load",i);break;case"details":on("toggle",i);break;case"input":on("invalid",i),ot(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),Fn(i);break;case"select":on("invalid",i);break;case"textarea":on("invalid",i),jn(i,f.value,f.defaultValue,f.children),Fn(i)}l=f.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||f.suppressHydrationWarning===!0||ky(i.textContent,l)?(f.popover!=null&&(on("beforetoggle",i),on("toggle",i)),f.onScroll!=null&&on("scroll",i),f.onScrollEnd!=null&&on("scrollend",i),f.onClick!=null&&(i.onclick=zu),i=!0):i=!1,i||ai(a)}function R0(a){for(Nr=a.return;Nr;)switch(Nr.tag){case 5:case 13:_a=!1;return;case 27:case 3:_a=!0;return;default:Nr=Nr.return}}function Jl(a){if(a!==Nr)return!1;if(!mn)return R0(a),mn=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||ym(a.type,a.memoizedProps)),l=!l),l&&qn&&ai(a),R0(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,i=0;a;){if(a.nodeType===8)if(l=a.data,l==="/$"){if(i===0){qn=ba(a.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;a=a.nextSibling}qn=null}}else i===27?(i=qn,_o(a.type)?(a=wm,wm=null,qn=a):qn=i):qn=Nr?ba(a.stateNode.nextSibling):null;return!0}function es(){qn=Nr=null,mn=!1}function M0(){var a=ri;return a!==null&&(Hr===null?Hr=a:Hr.push.apply(Hr,a),ri=null),a}function ts(a){ri===null?ri=[a]:ri.push(a)}var av=L(null),oi=null,Ga=null;function go(a,i,l){Y(av,i._currentValue),i._currentValue=l}function Ya(a){a._currentValue=av.current,W(av)}function ov(a,i,l){for(;a!==null;){var f=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),a===l)break;a=a.return}}function iv(a,i,l,f){var h=a.child;for(h!==null&&(h.return=a);h!==null;){var S=h.dependencies;if(S!==null){var B=h.child;S=S.firstContext;e:for(;S!==null;){var K=S;S=h;for(var ae=0;ae<i.length;ae++)if(K.context===i[ae]){S.lanes|=l,K=S.alternate,K!==null&&(K.lanes|=l),ov(S.return,l,a),f||(B=null);break e}S=K.next}}else if(h.tag===18){if(B=h.return,B===null)throw Error(r(341));B.lanes|=l,S=B.alternate,S!==null&&(S.lanes|=l),ov(B,l,a),B=null}else B=h.child;if(B!==null)B.return=h;else for(B=h;B!==null;){if(B===a){B=null;break}if(h=B.sibling,h!==null){h.return=B.return,B=h;break}B=B.return}h=B}}function ns(a,i,l,f){a=null;for(var h=i,S=!1;h!==null;){if(!S){if((h.flags&524288)!==0)S=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var B=h.alternate;if(B===null)throw Error(r(387));if(B=B.memoizedProps,B!==null){var K=h.type;Vr(h.pendingProps.value,B.value)||(a!==null?a.push(K):a=[K])}}else if(h===te.current){if(B=h.alternate,B===null)throw Error(r(387));B.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(a!==null?a.push(Ns):a=[Ns])}h=h.return}a!==null&&iv(i,a,l,f),i.flags|=262144}function ru(a){for(a=a.firstContext;a!==null;){if(!Vr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ii(a){oi=a,Ga=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Er(a){return T0(oi,a)}function au(a,i){return oi===null&&ii(a),T0(a,i)}function T0(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Ga===null){if(a===null)throw Error(r(308));Ga=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else Ga=Ga.next=i;return l}var PO=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,f){a.push(f)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},AO=e.unstable_scheduleCallback,zO=e.unstable_NormalPriority,or={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lv(){return{controller:new PO,data:new Map,refCount:0}}function rs(a){a.refCount--,a.refCount===0&&AO(zO,function(){a.controller.abort()})}var as=null,sv=0,Wi=0,Gi=null;function jO(a,i){if(as===null){var l=as=[];sv=0,Wi=um(),Gi={status:"pending",value:void 0,then:function(f){l.push(f)}}}return sv++,i.then(_0,_0),i}function _0(){if(--sv===0&&as!==null){Gi!==null&&(Gi.status="fulfilled");var a=as;as=null,Wi=0,Gi=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function HO(a,i){var l=[],f={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return a.then(function(){f.status="fulfilled",f.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(f.status="rejected",f.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),f}var N0=R.S;R.S=function(a,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&jO(a,i),N0!==null&&N0(a,i)};var li=L(null);function cv(){var a=li.current;return a!==null?a:Pn.pooledCache}function ou(a,i){i===null?Y(li,li.current):Y(li,i.pool)}function D0(){var a=cv();return a===null?null:{parent:or._currentValue,pool:a}}var os=Error(r(460)),I0=Error(r(474)),iu=Error(r(542)),uv={then:function(){}};function P0(a){return a=a.status,a==="fulfilled"||a==="rejected"}function lu(){}function A0(a,i,l){switch(l=a[l],l===void 0?a.push(i):l!==i&&(i.then(lu,lu),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,j0(a),a;default:if(typeof i.status=="string")i.then(lu,lu);else{if(a=Pn,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(f){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=f}},function(f){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,j0(a),a}throw is=i,os}}var is=null;function z0(){if(is===null)throw Error(r(459));var a=is;return is=null,a}function j0(a){if(a===os||a===iu)throw Error(r(483))}var ho=!1;function fv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dv(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function po(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function bo(a,i,l){var f=a.updateQueue;if(f===null)return null;if(f=f.shared,(wn&2)!==0){var h=f.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),f.pending=i,i=Jc(a),w0(a,null,l),i}return Zc(a,f,i,l),Jc(a)}function ls(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var f=i.lanes;f&=a.pendingLanes,l|=f,i.lanes=l,Rt(a,l)}}function vv(a,i){var l=a.updateQueue,f=a.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var h=null,S=null;if(l=l.firstBaseUpdate,l!==null){do{var B={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};S===null?h=S=B:S=S.next=B,l=l.next}while(l!==null);S===null?h=S=i:S=S.next=i}else h=S=i;l={baseState:f.baseState,firstBaseUpdate:h,lastBaseUpdate:S,shared:f.shared,callbacks:f.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}var mv=!1;function ss(){if(mv){var a=Gi;if(a!==null)throw a}}function cs(a,i,l,f){mv=!1;var h=a.updateQueue;ho=!1;var S=h.firstBaseUpdate,B=h.lastBaseUpdate,K=h.shared.pending;if(K!==null){h.shared.pending=null;var ae=K,be=ae.next;ae.next=null,B===null?S=be:B.next=be,B=ae;var _e=a.alternate;_e!==null&&(_e=_e.updateQueue,K=_e.lastBaseUpdate,K!==B&&(K===null?_e.firstBaseUpdate=be:K.next=be,_e.lastBaseUpdate=ae))}if(S!==null){var ze=h.baseState;B=0,_e=be=ae=null,K=S;do{var Ce=K.lane&-536870913,we=Ce!==K.lane;if(we?(fn&Ce)===Ce:(f&Ce)===Ce){Ce!==0&&Ce===Wi&&(mv=!0),_e!==null&&(_e=_e.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var Pt=a,Mt=K;Ce=i;var Nn=l;switch(Mt.tag){case 1:if(Pt=Mt.payload,typeof Pt=="function"){ze=Pt.call(Nn,ze,Ce);break e}ze=Pt;break e;case 3:Pt.flags=Pt.flags&-65537|128;case 0:if(Pt=Mt.payload,Ce=typeof Pt=="function"?Pt.call(Nn,ze,Ce):Pt,Ce==null)break e;ze=g({},ze,Ce);break e;case 2:ho=!0}}Ce=K.callback,Ce!==null&&(a.flags|=64,we&&(a.flags|=8192),we=h.callbacks,we===null?h.callbacks=[Ce]:we.push(Ce))}else we={lane:Ce,tag:K.tag,payload:K.payload,callback:K.callback,next:null},_e===null?(be=_e=we,ae=ze):_e=_e.next=we,B|=Ce;if(K=K.next,K===null){if(K=h.shared.pending,K===null)break;we=K,K=we.next,we.next=null,h.lastBaseUpdate=we,h.shared.pending=null}}while(!0);_e===null&&(ae=ze),h.baseState=ae,h.firstBaseUpdate=be,h.lastBaseUpdate=_e,S===null&&(h.shared.lanes=0),Oo|=B,a.lanes=B,a.memoizedState=ze}}function H0(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function L0(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)H0(l[a],i)}var Yi=L(null),su=L(0);function B0(a,i){a=to,Y(su,a),Y(Yi,i),to=a|i.baseLanes}function gv(){Y(su,to),Y(Yi,Yi.current)}function hv(){to=su.current,W(Yi),W(su)}var yo=0,Qt=null,Tn=null,tr=null,cu=!1,Ki=!1,si=!1,uu=0,us=0,Xi=null,LO=0;function Yn(){throw Error(r(321))}function pv(a,i){if(i===null)return!1;for(var l=0;l<i.length&&l<a.length;l++)if(!Vr(a[l],i[l]))return!1;return!0}function bv(a,i,l,f,h,S){return yo=S,Qt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,R.H=a===null||a.memoizedState===null?wb:Eb,si=!1,S=l(f,h),si=!1,Ki&&(S=V0(i,l,f,h)),F0(a),S}function F0(a){R.H=hu;var i=Tn!==null&&Tn.next!==null;if(yo=0,tr=Tn=Qt=null,cu=!1,us=0,Xi=null,i)throw Error(r(300));a===null||fr||(a=a.dependencies,a!==null&&ru(a)&&(fr=!0))}function V0(a,i,l,f){Qt=a;var h=0;do{if(Ki&&(Xi=null),us=0,Ki=!1,25<=h)throw Error(r(301));if(h+=1,tr=Tn=null,a.updateQueue!=null){var S=a.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}R.H=WO,S=i(l,f)}while(Ki);return S}function BO(){var a=R.H,i=a.useState()[0];return i=typeof i.then=="function"?fs(i):i,a=a.useState()[0],(Tn!==null?Tn.memoizedState:null)!==a&&(Qt.flags|=1024),i}function yv(){var a=uu!==0;return uu=0,a}function Sv(a,i,l){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~l}function Cv(a){if(cu){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}cu=!1}yo=0,tr=Tn=Qt=null,Ki=!1,us=uu=0,Xi=null}function zr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tr===null?Qt.memoizedState=tr=a:tr=tr.next=a,tr}function nr(){if(Tn===null){var a=Qt.alternate;a=a!==null?a.memoizedState:null}else a=Tn.next;var i=tr===null?Qt.memoizedState:tr.next;if(i!==null)tr=i,Tn=a;else{if(a===null)throw Qt.alternate===null?Error(r(467)):Error(r(310));Tn=a,a={memoizedState:Tn.memoizedState,baseState:Tn.baseState,baseQueue:Tn.baseQueue,queue:Tn.queue,next:null},tr===null?Qt.memoizedState=tr=a:tr=tr.next=a}return tr}function xv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(a){var i=us;return us+=1,Xi===null&&(Xi=[]),a=A0(Xi,a,i),i=Qt,(tr===null?i.memoizedState:tr.next)===null&&(i=i.alternate,R.H=i===null||i.memoizedState===null?wb:Eb),a}function fu(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return fs(a);if(a.$$typeof===O)return Er(a)}throw Error(r(438,String(a)))}function wv(a){var i=null,l=Qt.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var f=Qt.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=xv(),Qt.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(a),f=0;f<a;f++)l[f]=j;return i.index++,l}function Ka(a,i){return typeof i=="function"?i(a):i}function du(a){var i=nr();return Ev(i,Tn,a)}function Ev(a,i,l){var f=a.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=l;var h=a.baseQueue,S=f.pending;if(S!==null){if(h!==null){var B=h.next;h.next=S.next,S.next=B}i.baseQueue=h=S,f.pending=null}if(S=a.baseState,h===null)a.memoizedState=S;else{i=h.next;var K=B=null,ae=null,be=i,_e=!1;do{var ze=be.lane&-536870913;if(ze!==be.lane?(fn&ze)===ze:(yo&ze)===ze){var Ce=be.revertLane;if(Ce===0)ae!==null&&(ae=ae.next={lane:0,revertLane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),ze===Wi&&(_e=!0);else if((yo&Ce)===Ce){be=be.next,Ce===Wi&&(_e=!0);continue}else ze={lane:0,revertLane:be.revertLane,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ae===null?(K=ae=ze,B=S):ae=ae.next=ze,Qt.lanes|=Ce,Oo|=Ce;ze=be.action,si&&l(S,ze),S=be.hasEagerState?be.eagerState:l(S,ze)}else Ce={lane:ze,revertLane:be.revertLane,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},ae===null?(K=ae=Ce,B=S):ae=ae.next=Ce,Qt.lanes|=ze,Oo|=ze;be=be.next}while(be!==null&&be!==i);if(ae===null?B=S:ae.next=K,!Vr(S,a.memoizedState)&&(fr=!0,_e&&(l=Gi,l!==null)))throw l;a.memoizedState=S,a.baseState=B,a.baseQueue=ae,f.lastRenderedState=S}return h===null&&(f.lanes=0),[a.memoizedState,f.dispatch]}function $v(a){var i=nr(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var f=l.dispatch,h=l.pending,S=i.memoizedState;if(h!==null){l.pending=null;var B=h=h.next;do S=a(S,B.action),B=B.next;while(B!==h);Vr(S,i.memoizedState)||(fr=!0),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),l.lastRenderedState=S}return[S,f]}function k0(a,i,l){var f=Qt,h=nr(),S=mn;if(S){if(l===void 0)throw Error(r(407));l=l()}else l=i();var B=!Vr((Tn||h).memoizedState,l);B&&(h.memoizedState=l,fr=!0),h=h.queue;var K=W0.bind(null,f,h,a);if(ds(2048,8,K,[a]),h.getSnapshot!==i||B||tr!==null&&tr.memoizedState.tag&1){if(f.flags|=2048,Qi(9,vu(),q0.bind(null,f,h,l,i),null),Pn===null)throw Error(r(349));S||(yo&124)!==0||U0(f,i,l)}return l}function U0(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=Qt.updateQueue,i===null?(i=xv(),Qt.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function q0(a,i,l,f){i.value=l,i.getSnapshot=f,G0(i)&&Y0(a)}function W0(a,i,l){return l(function(){G0(i)&&Y0(a)})}function G0(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Vr(a,l)}catch{return!0}}function Y0(a){var i=Vi(a,2);i!==null&&Yr(i,a,2)}function Ov(a){var i=zr();if(typeof a=="function"){var l=a;if(a=l(),si){Xe(!0);try{l()}finally{Xe(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:a},i}function K0(a,i,l,f){return a.baseState=l,Ev(a,Tn,typeof f=="function"?f:Ka)}function FO(a,i,l,f,h){if(gu(a))throw Error(r(485));if(a=i.action,a!==null){var S={payload:h,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(B){S.listeners.push(B)}};R.T!==null?l(!0):S.isTransition=!1,f(S),l=i.pending,l===null?(S.next=i.pending=S,X0(i,S)):(S.next=l.next,i.pending=l.next=S)}}function X0(a,i){var l=i.action,f=i.payload,h=a.state;if(i.isTransition){var S=R.T,B={};R.T=B;try{var K=l(h,f),ae=R.S;ae!==null&&ae(B,K),Q0(a,i,K)}catch(be){Rv(a,i,be)}finally{R.T=S}}else try{S=l(h,f),Q0(a,i,S)}catch(be){Rv(a,i,be)}}function Q0(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(f){Z0(a,i,f)},function(f){return Rv(a,i,f)}):Z0(a,i,l)}function Z0(a,i,l){i.status="fulfilled",i.value=l,J0(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,X0(a,l)))}function Rv(a,i,l){var f=a.pending;if(a.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=l,J0(i),i=i.next;while(i!==f)}a.action=null}function J0(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function eb(a,i){return i}function tb(a,i){if(mn){var l=Pn.formState;if(l!==null){e:{var f=Qt;if(mn){if(qn){t:{for(var h=qn,S=_a;h.nodeType!==8;){if(!S){h=null;break t}if(h=ba(h.nextSibling),h===null){h=null;break t}}S=h.data,h=S==="F!"||S==="F"?h:null}if(h){qn=ba(h.nextSibling),f=h.data==="F!";break e}}ai(f)}f=!1}f&&(i=l[0])}}return l=zr(),l.memoizedState=l.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eb,lastRenderedState:i},l.queue=f,l=Sb.bind(null,Qt,f),f.dispatch=l,f=Ov(!1),S=Dv.bind(null,Qt,!1,f.queue),f=zr(),h={state:i,dispatch:null,action:a,pending:null},f.queue=h,l=FO.bind(null,Qt,h,S,l),h.dispatch=l,f.memoizedState=a,[i,l,!1]}function nb(a){var i=nr();return rb(i,Tn,a)}function rb(a,i,l){if(i=Ev(a,i,eb)[0],a=du(Ka)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=fs(i)}catch(B){throw B===os?iu:B}else f=i;i=nr();var h=i.queue,S=h.dispatch;return l!==i.memoizedState&&(Qt.flags|=2048,Qi(9,vu(),VO.bind(null,h,l),null)),[f,S,a]}function VO(a,i){a.action=i}function ab(a){var i=nr(),l=Tn;if(l!==null)return rb(i,l,a);nr(),i=i.memoizedState,l=nr();var f=l.queue.dispatch;return l.memoizedState=a,[i,f,!1]}function Qi(a,i,l,f){return a={tag:a,create:l,deps:f,inst:i,next:null},i=Qt.updateQueue,i===null&&(i=xv(),Qt.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=a.next=a:(f=l.next,l.next=a,a.next=f,i.lastEffect=a),a}function vu(){return{destroy:void 0,resource:void 0}}function ob(){return nr().memoizedState}function mu(a,i,l,f){var h=zr();f=f===void 0?null:f,Qt.flags|=a,h.memoizedState=Qi(1|i,vu(),l,f)}function ds(a,i,l,f){var h=nr();f=f===void 0?null:f;var S=h.memoizedState.inst;Tn!==null&&f!==null&&pv(f,Tn.memoizedState.deps)?h.memoizedState=Qi(i,S,l,f):(Qt.flags|=a,h.memoizedState=Qi(1|i,S,l,f))}function ib(a,i){mu(8390656,8,a,i)}function lb(a,i){ds(2048,8,a,i)}function sb(a,i){return ds(4,2,a,i)}function cb(a,i){return ds(4,4,a,i)}function ub(a,i){if(typeof i=="function"){a=a();var l=i(a);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function fb(a,i,l){l=l!=null?l.concat([a]):null,ds(4,4,ub.bind(null,i,a),l)}function Mv(){}function db(a,i){var l=nr();i=i===void 0?null:i;var f=l.memoizedState;return i!==null&&pv(i,f[1])?f[0]:(l.memoizedState=[a,i],a)}function vb(a,i){var l=nr();i=i===void 0?null:i;var f=l.memoizedState;if(i!==null&&pv(i,f[1]))return f[0];if(f=a(),si){Xe(!0);try{a()}finally{Xe(!1)}}return l.memoizedState=[f,i],f}function Tv(a,i,l){return l===void 0||(yo&1073741824)!==0?a.memoizedState=i:(a.memoizedState=l,a=hy(),Qt.lanes|=a,Oo|=a,l)}function mb(a,i,l,f){return Vr(l,i)?l:Yi.current!==null?(a=Tv(a,l,f),Vr(a,i)||(fr=!0),a):(yo&42)===0?(fr=!0,a.memoizedState=l):(a=hy(),Qt.lanes|=a,Oo|=a,i)}function gb(a,i,l,f,h){var S=N.p;N.p=S!==0&&8>S?S:8;var B=R.T,K={};R.T=K,Dv(a,!1,i,l);try{var ae=h(),be=R.S;if(be!==null&&be(K,ae),ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var _e=HO(ae,f);vs(a,i,_e,Gr(a))}else vs(a,i,f,Gr(a))}catch(ze){vs(a,i,{then:function(){},status:"rejected",reason:ze},Gr())}finally{N.p=S,R.T=B}}function kO(){}function _v(a,i,l,f){if(a.tag!==5)throw Error(r(476));var h=hb(a).queue;gb(a,h,i,A,l===null?kO:function(){return pb(a),l(f)})}function hb(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:A},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:l},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function pb(a){var i=hb(a).next.queue;vs(a,i,{},Gr())}function Nv(){return Er(Ns)}function bb(){return nr().memoizedState}function yb(){return nr().memoizedState}function UO(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var l=Gr();a=po(l);var f=bo(i,a,l);f!==null&&(Yr(f,i,l),ls(f,i,l)),i={cache:lv()},a.payload=i;return}i=i.return}}function qO(a,i,l){var f=Gr();l={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},gu(a)?Cb(i,l):(l=Qd(a,i,l,f),l!==null&&(Yr(l,a,f),xb(l,i,f)))}function Sb(a,i,l){var f=Gr();vs(a,i,l,f)}function vs(a,i,l,f){var h={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(gu(a))Cb(i,h);else{var S=a.alternate;if(a.lanes===0&&(S===null||S.lanes===0)&&(S=i.lastRenderedReducer,S!==null))try{var B=i.lastRenderedState,K=S(B,l);if(h.hasEagerState=!0,h.eagerState=K,Vr(K,B))return Zc(a,i,h,0),Pn===null&&Qc(),!1}catch{}finally{}if(l=Qd(a,i,h,f),l!==null)return Yr(l,a,f),xb(l,i,f),!0}return!1}function Dv(a,i,l,f){if(f={lane:2,revertLane:um(),action:f,hasEagerState:!1,eagerState:null,next:null},gu(a)){if(i)throw Error(r(479))}else i=Qd(a,l,f,2),i!==null&&Yr(i,a,2)}function gu(a){var i=a.alternate;return a===Qt||i!==null&&i===Qt}function Cb(a,i){Ki=cu=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function xb(a,i,l){if((l&4194048)!==0){var f=i.lanes;f&=a.pendingLanes,l|=f,i.lanes=l,Rt(a,l)}}var hu={readContext:Er,use:fu,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useLayoutEffect:Yn,useInsertionEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useSyncExternalStore:Yn,useId:Yn,useHostTransitionStatus:Yn,useFormState:Yn,useActionState:Yn,useOptimistic:Yn,useMemoCache:Yn,useCacheRefresh:Yn},wb={readContext:Er,use:fu,useCallback:function(a,i){return zr().memoizedState=[a,i===void 0?null:i],a},useContext:Er,useEffect:ib,useImperativeHandle:function(a,i,l){l=l!=null?l.concat([a]):null,mu(4194308,4,ub.bind(null,i,a),l)},useLayoutEffect:function(a,i){return mu(4194308,4,a,i)},useInsertionEffect:function(a,i){mu(4,2,a,i)},useMemo:function(a,i){var l=zr();i=i===void 0?null:i;var f=a();if(si){Xe(!0);try{a()}finally{Xe(!1)}}return l.memoizedState=[f,i],f},useReducer:function(a,i,l){var f=zr();if(l!==void 0){var h=l(i);if(si){Xe(!0);try{l(i)}finally{Xe(!1)}}}else h=i;return f.memoizedState=f.baseState=h,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:h},f.queue=a,a=a.dispatch=qO.bind(null,Qt,a),[f.memoizedState,a]},useRef:function(a){var i=zr();return a={current:a},i.memoizedState=a},useState:function(a){a=Ov(a);var i=a.queue,l=Sb.bind(null,Qt,i);return i.dispatch=l,[a.memoizedState,l]},useDebugValue:Mv,useDeferredValue:function(a,i){var l=zr();return Tv(l,a,i)},useTransition:function(){var a=Ov(!1);return a=gb.bind(null,Qt,a.queue,!0,!1),zr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,l){var f=Qt,h=zr();if(mn){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),Pn===null)throw Error(r(349));(fn&124)!==0||U0(f,i,l)}h.memoizedState=l;var S={value:l,getSnapshot:i};return h.queue=S,ib(W0.bind(null,f,S,a),[a]),f.flags|=2048,Qi(9,vu(),q0.bind(null,f,S,l,i),null),l},useId:function(){var a=zr(),i=Pn.identifierPrefix;if(mn){var l=Wa,f=qa;l=(f&~(1<<32-He(f)-1)).toString(32)+l,i="«"+i+"R"+l,l=uu++,0<l&&(i+="H"+l.toString(32)),i+="»"}else l=LO++,i="«"+i+"r"+l.toString(32)+"»";return a.memoizedState=i},useHostTransitionStatus:Nv,useFormState:tb,useActionState:tb,useOptimistic:function(a){var i=zr();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Dv.bind(null,Qt,!0,l),l.dispatch=i,[a,i]},useMemoCache:wv,useCacheRefresh:function(){return zr().memoizedState=UO.bind(null,Qt)}},Eb={readContext:Er,use:fu,useCallback:db,useContext:Er,useEffect:lb,useImperativeHandle:fb,useInsertionEffect:sb,useLayoutEffect:cb,useMemo:vb,useReducer:du,useRef:ob,useState:function(){return du(Ka)},useDebugValue:Mv,useDeferredValue:function(a,i){var l=nr();return mb(l,Tn.memoizedState,a,i)},useTransition:function(){var a=du(Ka)[0],i=nr().memoizedState;return[typeof a=="boolean"?a:fs(a),i]},useSyncExternalStore:k0,useId:bb,useHostTransitionStatus:Nv,useFormState:nb,useActionState:nb,useOptimistic:function(a,i){var l=nr();return K0(l,Tn,a,i)},useMemoCache:wv,useCacheRefresh:yb},WO={readContext:Er,use:fu,useCallback:db,useContext:Er,useEffect:lb,useImperativeHandle:fb,useInsertionEffect:sb,useLayoutEffect:cb,useMemo:vb,useReducer:$v,useRef:ob,useState:function(){return $v(Ka)},useDebugValue:Mv,useDeferredValue:function(a,i){var l=nr();return Tn===null?Tv(l,a,i):mb(l,Tn.memoizedState,a,i)},useTransition:function(){var a=$v(Ka)[0],i=nr().memoizedState;return[typeof a=="boolean"?a:fs(a),i]},useSyncExternalStore:k0,useId:bb,useHostTransitionStatus:Nv,useFormState:ab,useActionState:ab,useOptimistic:function(a,i){var l=nr();return Tn!==null?K0(l,Tn,a,i):(l.baseState=a,[a,l.queue.dispatch])},useMemoCache:wv,useCacheRefresh:yb},Zi=null,ms=0;function pu(a){var i=ms;return ms+=1,Zi===null&&(Zi=[]),A0(Zi,a,i)}function gs(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function bu(a,i){throw i.$$typeof===p?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function $b(a){var i=a._init;return i(a._payload)}function Ob(a){function i(ve,se){if(a){var he=ve.deletions;he===null?(ve.deletions=[se],ve.flags|=16):he.push(se)}}function l(ve,se){if(!a)return null;for(;se!==null;)i(ve,se),se=se.sibling;return null}function f(ve){for(var se=new Map;ve!==null;)ve.key!==null?se.set(ve.key,ve):se.set(ve.index,ve),ve=ve.sibling;return se}function h(ve,se){return ve=Ua(ve,se),ve.index=0,ve.sibling=null,ve}function S(ve,se,he){return ve.index=he,a?(he=ve.alternate,he!==null?(he=he.index,he<se?(ve.flags|=67108866,se):he):(ve.flags|=67108866,se)):(ve.flags|=1048576,se)}function B(ve){return a&&ve.alternate===null&&(ve.flags|=67108866),ve}function K(ve,se,he,Pe){return se===null||se.tag!==6?(se=Jd(he,ve.mode,Pe),se.return=ve,se):(se=h(se,he),se.return=ve,se)}function ae(ve,se,he,Pe){var St=he.type;return St===C?_e(ve,se,he.props.children,Pe,he.key):se!==null&&(se.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===z&&$b(St)===se.type)?(se=h(se,he.props),gs(se,he),se.return=ve,se):(se=eu(he.type,he.key,he.props,null,ve.mode,Pe),gs(se,he),se.return=ve,se)}function be(ve,se,he,Pe){return se===null||se.tag!==4||se.stateNode.containerInfo!==he.containerInfo||se.stateNode.implementation!==he.implementation?(se=ev(he,ve.mode,Pe),se.return=ve,se):(se=h(se,he.children||[]),se.return=ve,se)}function _e(ve,se,he,Pe,St){return se===null||se.tag!==7?(se=ei(he,ve.mode,Pe,St),se.return=ve,se):(se=h(se,he),se.return=ve,se)}function ze(ve,se,he){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=Jd(""+se,ve.mode,he),se.return=ve,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case b:return he=eu(se.type,se.key,se.props,null,ve.mode,he),gs(he,se),he.return=ve,he;case x:return se=ev(se,ve.mode,he),se.return=ve,se;case z:var Pe=se._init;return se=Pe(se._payload),ze(ve,se,he)}if(V(se)||G(se))return se=ei(se,ve.mode,he,null),se.return=ve,se;if(typeof se.then=="function")return ze(ve,pu(se),he);if(se.$$typeof===O)return ze(ve,au(ve,se),he);bu(ve,se)}return null}function Ce(ve,se,he,Pe){var St=se!==null?se.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return St!==null?null:K(ve,se,""+he,Pe);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case b:return he.key===St?ae(ve,se,he,Pe):null;case x:return he.key===St?be(ve,se,he,Pe):null;case z:return St=he._init,he=St(he._payload),Ce(ve,se,he,Pe)}if(V(he)||G(he))return St!==null?null:_e(ve,se,he,Pe,null);if(typeof he.then=="function")return Ce(ve,se,pu(he),Pe);if(he.$$typeof===O)return Ce(ve,se,au(ve,he),Pe);bu(ve,he)}return null}function we(ve,se,he,Pe,St){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number"||typeof Pe=="bigint")return ve=ve.get(he)||null,K(se,ve,""+Pe,St);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case b:return ve=ve.get(Pe.key===null?he:Pe.key)||null,ae(se,ve,Pe,St);case x:return ve=ve.get(Pe.key===null?he:Pe.key)||null,be(se,ve,Pe,St);case z:var en=Pe._init;return Pe=en(Pe._payload),we(ve,se,he,Pe,St)}if(V(Pe)||G(Pe))return ve=ve.get(he)||null,_e(se,ve,Pe,St,null);if(typeof Pe.then=="function")return we(ve,se,he,pu(Pe),St);if(Pe.$$typeof===O)return we(ve,se,he,au(se,Pe),St);bu(se,Pe)}return null}function Pt(ve,se,he,Pe){for(var St=null,en=null,xt=se,Nt=se=0,vr=null;xt!==null&&Nt<he.length;Nt++){xt.index>Nt?(vr=xt,xt=null):vr=xt.sibling;var vn=Ce(ve,xt,he[Nt],Pe);if(vn===null){xt===null&&(xt=vr);break}a&&xt&&vn.alternate===null&&i(ve,xt),se=S(vn,se,Nt),en===null?St=vn:en.sibling=vn,en=vn,xt=vr}if(Nt===he.length)return l(ve,xt),mn&&ni(ve,Nt),St;if(xt===null){for(;Nt<he.length;Nt++)xt=ze(ve,he[Nt],Pe),xt!==null&&(se=S(xt,se,Nt),en===null?St=xt:en.sibling=xt,en=xt);return mn&&ni(ve,Nt),St}for(xt=f(xt);Nt<he.length;Nt++)vr=we(xt,ve,Nt,he[Nt],Pe),vr!==null&&(a&&vr.alternate!==null&&xt.delete(vr.key===null?Nt:vr.key),se=S(vr,se,Nt),en===null?St=vr:en.sibling=vr,en=vr);return a&&xt.forEach(function(Ao){return i(ve,Ao)}),mn&&ni(ve,Nt),St}function Mt(ve,se,he,Pe){if(he==null)throw Error(r(151));for(var St=null,en=null,xt=se,Nt=se=0,vr=null,vn=he.next();xt!==null&&!vn.done;Nt++,vn=he.next()){xt.index>Nt?(vr=xt,xt=null):vr=xt.sibling;var Ao=Ce(ve,xt,vn.value,Pe);if(Ao===null){xt===null&&(xt=vr);break}a&&xt&&Ao.alternate===null&&i(ve,xt),se=S(Ao,se,Nt),en===null?St=Ao:en.sibling=Ao,en=Ao,xt=vr}if(vn.done)return l(ve,xt),mn&&ni(ve,Nt),St;if(xt===null){for(;!vn.done;Nt++,vn=he.next())vn=ze(ve,vn.value,Pe),vn!==null&&(se=S(vn,se,Nt),en===null?St=vn:en.sibling=vn,en=vn);return mn&&ni(ve,Nt),St}for(xt=f(xt);!vn.done;Nt++,vn=he.next())vn=we(xt,ve,Nt,vn.value,Pe),vn!==null&&(a&&vn.alternate!==null&&xt.delete(vn.key===null?Nt:vn.key),se=S(vn,se,Nt),en===null?St=vn:en.sibling=vn,en=vn);return a&&xt.forEach(function(GR){return i(ve,GR)}),mn&&ni(ve,Nt),St}function Nn(ve,se,he,Pe){if(typeof he=="object"&&he!==null&&he.type===C&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case b:e:{for(var St=he.key;se!==null;){if(se.key===St){if(St=he.type,St===C){if(se.tag===7){l(ve,se.sibling),Pe=h(se,he.props.children),Pe.return=ve,ve=Pe;break e}}else if(se.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===z&&$b(St)===se.type){l(ve,se.sibling),Pe=h(se,he.props),gs(Pe,he),Pe.return=ve,ve=Pe;break e}l(ve,se);break}else i(ve,se);se=se.sibling}he.type===C?(Pe=ei(he.props.children,ve.mode,Pe,he.key),Pe.return=ve,ve=Pe):(Pe=eu(he.type,he.key,he.props,null,ve.mode,Pe),gs(Pe,he),Pe.return=ve,ve=Pe)}return B(ve);case x:e:{for(St=he.key;se!==null;){if(se.key===St)if(se.tag===4&&se.stateNode.containerInfo===he.containerInfo&&se.stateNode.implementation===he.implementation){l(ve,se.sibling),Pe=h(se,he.children||[]),Pe.return=ve,ve=Pe;break e}else{l(ve,se);break}else i(ve,se);se=se.sibling}Pe=ev(he,ve.mode,Pe),Pe.return=ve,ve=Pe}return B(ve);case z:return St=he._init,he=St(he._payload),Nn(ve,se,he,Pe)}if(V(he))return Pt(ve,se,he,Pe);if(G(he)){if(St=G(he),typeof St!="function")throw Error(r(150));return he=St.call(he),Mt(ve,se,he,Pe)}if(typeof he.then=="function")return Nn(ve,se,pu(he),Pe);if(he.$$typeof===O)return Nn(ve,se,au(ve,he),Pe);bu(ve,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(he=""+he,se!==null&&se.tag===6?(l(ve,se.sibling),Pe=h(se,he),Pe.return=ve,ve=Pe):(l(ve,se),Pe=Jd(he,ve.mode,Pe),Pe.return=ve,ve=Pe),B(ve)):l(ve,se)}return function(ve,se,he,Pe){try{ms=0;var St=Nn(ve,se,he,Pe);return Zi=null,St}catch(xt){if(xt===os||xt===iu)throw xt;var en=kr(29,xt,null,ve.mode);return en.lanes=Pe,en.return=ve,en}finally{}}}var Ji=Ob(!0),Rb=Ob(!1),aa=L(null),Na=null;function So(a){var i=a.alternate;Y(ir,ir.current&1),Y(aa,a),Na===null&&(i===null||Yi.current!==null||i.memoizedState!==null)&&(Na=a)}function Mb(a){if(a.tag===22){if(Y(ir,ir.current),Y(aa,a),Na===null){var i=a.alternate;i!==null&&i.memoizedState!==null&&(Na=a)}}else Co()}function Co(){Y(ir,ir.current),Y(aa,aa.current)}function Xa(a){W(aa),Na===a&&(Na=null),W(ir)}var ir=L(0);function yu(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||xm(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Iv(a,i,l,f){i=a.memoizedState,l=l(f,i),l=l==null?i:g({},i,l),a.memoizedState=l,a.lanes===0&&(a.updateQueue.baseState=l)}var Pv={enqueueSetState:function(a,i,l){a=a._reactInternals;var f=Gr(),h=po(f);h.payload=i,l!=null&&(h.callback=l),i=bo(a,h,f),i!==null&&(Yr(i,a,f),ls(i,a,f))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var f=Gr(),h=po(f);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=bo(a,h,f),i!==null&&(Yr(i,a,f),ls(i,a,f))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=Gr(),f=po(l);f.tag=2,i!=null&&(f.callback=i),i=bo(a,f,l),i!==null&&(Yr(i,a,l),ls(i,a,l))}};function Tb(a,i,l,f,h,S,B){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(f,S,B):i.prototype&&i.prototype.isPureReactComponent?!Ql(l,f)||!Ql(h,S):!0}function _b(a,i,l,f){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,f),i.state!==a&&Pv.enqueueReplaceState(i,i.state,null)}function ci(a,i){var l=i;if("ref"in i){l={};for(var f in i)f!=="ref"&&(l[f]=i[f])}if(a=a.defaultProps){l===i&&(l=g({},l));for(var h in a)l[h]===void 0&&(l[h]=a[h])}return l}var Su=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function Nb(a){Su(a)}function Db(a){console.error(a)}function Ib(a){Su(a)}function Cu(a,i){try{var l=a.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}function Pb(a,i,l){try{var f=a.onCaughtError;f(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Av(a,i,l){return l=po(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(a,i)},l}function Ab(a){return a=po(a),a.tag=3,a}function zb(a,i,l,f){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var S=f.value;a.payload=function(){return h(S)},a.callback=function(){Pb(i,l,f)}}var B=l.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(a.callback=function(){Pb(i,l,f),typeof h!="function"&&(Ro===null?Ro=new Set([this]):Ro.add(this));var K=f.stack;this.componentDidCatch(f.value,{componentStack:K!==null?K:""})})}function GO(a,i,l,f,h){if(l.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=l.alternate,i!==null&&ns(i,l,h,!0),l=aa.current,l!==null){switch(l.tag){case 13:return Na===null?om():l.alternate===null&&Wn===0&&(Wn=3),l.flags&=-257,l.flags|=65536,l.lanes=h,f===uv?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([f]):i.add(f),lm(a,f,h)),!1;case 22:return l.flags|=65536,f===uv?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([f]):l.add(f)),lm(a,f,h)),!1}throw Error(r(435,l.tag))}return lm(a,f,h),om(),!1}if(mn)return i=aa.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,f!==rv&&(a=Error(r(422),{cause:f}),ts(ea(a,l)))):(f!==rv&&(i=Error(r(423),{cause:f}),ts(ea(i,l))),a=a.current.alternate,a.flags|=65536,h&=-h,a.lanes|=h,f=ea(f,l),h=Av(a.stateNode,f,h),vv(a,h),Wn!==4&&(Wn=2)),!1;var S=Error(r(520),{cause:f});if(S=ea(S,l),xs===null?xs=[S]:xs.push(S),Wn!==4&&(Wn=2),i===null)return!0;f=ea(f,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=h&-h,l.lanes|=a,a=Av(l.stateNode,f,a),vv(l,a),!1;case 1:if(i=l.type,S=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Ro===null||!Ro.has(S))))return l.flags|=65536,h&=-h,l.lanes|=h,h=Ab(h),zb(h,a,l,f),vv(l,h),!1}l=l.return}while(l!==null);return!1}var jb=Error(r(461)),fr=!1;function pr(a,i,l,f){i.child=a===null?Rb(i,null,l,f):Ji(i,a.child,l,f)}function Hb(a,i,l,f,h){l=l.render;var S=i.ref;if("ref"in f){var B={};for(var K in f)K!=="ref"&&(B[K]=f[K])}else B=f;return ii(i),f=bv(a,i,l,B,S,h),K=yv(),a!==null&&!fr?(Sv(a,i,h),Qa(a,i,h)):(mn&&K&&tv(i),i.flags|=1,pr(a,i,f,h),i.child)}function Lb(a,i,l,f,h){if(a===null){var S=l.type;return typeof S=="function"&&!Zd(S)&&S.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=S,Bb(a,i,S,f,h)):(a=eu(l.type,null,f,i,i.mode,h),a.ref=i.ref,a.return=i,i.child=a)}if(S=a.child,!kv(a,h)){var B=S.memoizedProps;if(l=l.compare,l=l!==null?l:Ql,l(B,f)&&a.ref===i.ref)return Qa(a,i,h)}return i.flags|=1,a=Ua(S,f),a.ref=i.ref,a.return=i,i.child=a}function Bb(a,i,l,f,h){if(a!==null){var S=a.memoizedProps;if(Ql(S,f)&&a.ref===i.ref)if(fr=!1,i.pendingProps=f=S,kv(a,h))(a.flags&131072)!==0&&(fr=!0);else return i.lanes=a.lanes,Qa(a,i,h)}return zv(a,i,l,f,h)}function Fb(a,i,l){var f=i.pendingProps,h=f.children,S=a!==null?a.memoizedState:null;if(f.mode==="hidden"){if((i.flags&128)!==0){if(f=S!==null?S.baseLanes|l:l,a!==null){for(h=i.child=a.child,S=0;h!==null;)S=S|h.lanes|h.childLanes,h=h.sibling;i.childLanes=S&~f}else i.childLanes=0,i.child=null;return Vb(a,i,f,l)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&ou(i,S!==null?S.cachePool:null),S!==null?B0(i,S):gv(),Mb(i);else return i.lanes=i.childLanes=536870912,Vb(a,i,S!==null?S.baseLanes|l:l,l)}else S!==null?(ou(i,S.cachePool),B0(i,S),Co(),i.memoizedState=null):(a!==null&&ou(i,null),gv(),Co());return pr(a,i,h,l),i.child}function Vb(a,i,l,f){var h=cv();return h=h===null?null:{parent:or._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},a!==null&&ou(i,null),gv(),Mb(i),a!==null&&ns(a,i,f,!0),null}function xu(a,i){var l=i.ref;if(l===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(a===null||a.ref!==l)&&(i.flags|=4194816)}}function zv(a,i,l,f,h){return ii(i),l=bv(a,i,l,f,void 0,h),f=yv(),a!==null&&!fr?(Sv(a,i,h),Qa(a,i,h)):(mn&&f&&tv(i),i.flags|=1,pr(a,i,l,h),i.child)}function kb(a,i,l,f,h,S){return ii(i),i.updateQueue=null,l=V0(i,f,l,h),F0(a),f=yv(),a!==null&&!fr?(Sv(a,i,S),Qa(a,i,S)):(mn&&f&&tv(i),i.flags|=1,pr(a,i,l,S),i.child)}function Ub(a,i,l,f,h){if(ii(i),i.stateNode===null){var S=ki,B=l.contextType;typeof B=="object"&&B!==null&&(S=Er(B)),S=new l(f,S),i.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=Pv,i.stateNode=S,S._reactInternals=i,S=i.stateNode,S.props=f,S.state=i.memoizedState,S.refs={},fv(i),B=l.contextType,S.context=typeof B=="object"&&B!==null?Er(B):ki,S.state=i.memoizedState,B=l.getDerivedStateFromProps,typeof B=="function"&&(Iv(i,l,B,f),S.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(B=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),B!==S.state&&Pv.enqueueReplaceState(S,S.state,null),cs(i,f,S,h),ss(),S.state=i.memoizedState),typeof S.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(a===null){S=i.stateNode;var K=i.memoizedProps,ae=ci(l,K);S.props=ae;var be=S.context,_e=l.contextType;B=ki,typeof _e=="object"&&_e!==null&&(B=Er(_e));var ze=l.getDerivedStateFromProps;_e=typeof ze=="function"||typeof S.getSnapshotBeforeUpdate=="function",K=i.pendingProps!==K,_e||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(K||be!==B)&&_b(i,S,f,B),ho=!1;var Ce=i.memoizedState;S.state=Ce,cs(i,f,S,h),ss(),be=i.memoizedState,K||Ce!==be||ho?(typeof ze=="function"&&(Iv(i,l,ze,f),be=i.memoizedState),(ae=ho||Tb(i,l,ae,f,Ce,be,B))?(_e||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(i.flags|=4194308)):(typeof S.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=be),S.props=f,S.state=be,S.context=B,f=ae):(typeof S.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{S=i.stateNode,dv(a,i),B=i.memoizedProps,_e=ci(l,B),S.props=_e,ze=i.pendingProps,Ce=S.context,be=l.contextType,ae=ki,typeof be=="object"&&be!==null&&(ae=Er(be)),K=l.getDerivedStateFromProps,(be=typeof K=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(B!==ze||Ce!==ae)&&_b(i,S,f,ae),ho=!1,Ce=i.memoizedState,S.state=Ce,cs(i,f,S,h),ss();var we=i.memoizedState;B!==ze||Ce!==we||ho||a!==null&&a.dependencies!==null&&ru(a.dependencies)?(typeof K=="function"&&(Iv(i,l,K,f),we=i.memoizedState),(_e=ho||Tb(i,l,_e,f,Ce,we,ae)||a!==null&&a.dependencies!==null&&ru(a.dependencies))?(be||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(f,we,ae),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(f,we,ae)),typeof S.componentDidUpdate=="function"&&(i.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof S.componentDidUpdate!="function"||B===a.memoizedProps&&Ce===a.memoizedState||(i.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&Ce===a.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=we),S.props=f,S.state=we,S.context=ae,f=_e):(typeof S.componentDidUpdate!="function"||B===a.memoizedProps&&Ce===a.memoizedState||(i.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||B===a.memoizedProps&&Ce===a.memoizedState||(i.flags|=1024),f=!1)}return S=f,xu(a,i),f=(i.flags&128)!==0,S||f?(S=i.stateNode,l=f&&typeof l.getDerivedStateFromError!="function"?null:S.render(),i.flags|=1,a!==null&&f?(i.child=Ji(i,a.child,null,h),i.child=Ji(i,null,l,h)):pr(a,i,l,h),i.memoizedState=S.state,a=i.child):a=Qa(a,i,h),a}function qb(a,i,l,f){return es(),i.flags|=256,pr(a,i,l,f),i.child}var jv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hv(a){return{baseLanes:a,cachePool:D0()}}function Lv(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=oa),a}function Wb(a,i,l){var f=i.pendingProps,h=!1,S=(i.flags&128)!==0,B;if((B=S)||(B=a!==null&&a.memoizedState===null?!1:(ir.current&2)!==0),B&&(h=!0,i.flags&=-129),B=(i.flags&32)!==0,i.flags&=-33,a===null){if(mn){if(h?So(i):Co(),mn){var K=qn,ae;if(ae=K){e:{for(ae=K,K=_a;ae.nodeType!==8;){if(!K){K=null;break e}if(ae=ba(ae.nextSibling),ae===null){K=null;break e}}K=ae}K!==null?(i.memoizedState={dehydrated:K,treeContext:ti!==null?{id:qa,overflow:Wa}:null,retryLane:536870912,hydrationErrors:null},ae=kr(18,null,null,0),ae.stateNode=K,ae.return=i,i.child=ae,Nr=i,qn=null,ae=!0):ae=!1}ae||ai(i)}if(K=i.memoizedState,K!==null&&(K=K.dehydrated,K!==null))return xm(K)?i.lanes=32:i.lanes=536870912,null;Xa(i)}return K=f.children,f=f.fallback,h?(Co(),h=i.mode,K=wu({mode:"hidden",children:K},h),f=ei(f,h,l,null),K.return=i,f.return=i,K.sibling=f,i.child=K,h=i.child,h.memoizedState=Hv(l),h.childLanes=Lv(a,B,l),i.memoizedState=jv,f):(So(i),Bv(i,K))}if(ae=a.memoizedState,ae!==null&&(K=ae.dehydrated,K!==null)){if(S)i.flags&256?(So(i),i.flags&=-257,i=Fv(a,i,l)):i.memoizedState!==null?(Co(),i.child=a.child,i.flags|=128,i=null):(Co(),h=f.fallback,K=i.mode,f=wu({mode:"visible",children:f.children},K),h=ei(h,K,l,null),h.flags|=2,f.return=i,h.return=i,f.sibling=h,i.child=f,Ji(i,a.child,null,l),f=i.child,f.memoizedState=Hv(l),f.childLanes=Lv(a,B,l),i.memoizedState=jv,i=h);else if(So(i),xm(K)){if(B=K.nextSibling&&K.nextSibling.dataset,B)var be=B.dgst;B=be,f=Error(r(419)),f.stack="",f.digest=B,ts({value:f,source:null,stack:null}),i=Fv(a,i,l)}else if(fr||ns(a,i,l,!1),B=(l&a.childLanes)!==0,fr||B){if(B=Pn,B!==null&&(f=l&-l,f=(f&42)!==0?1:gt(f),f=(f&(B.suspendedLanes|l))!==0?0:f,f!==0&&f!==ae.retryLane))throw ae.retryLane=f,Vi(a,f),Yr(B,a,f),jb;K.data==="$?"||om(),i=Fv(a,i,l)}else K.data==="$?"?(i.flags|=192,i.child=a.child,i=null):(a=ae.treeContext,qn=ba(K.nextSibling),Nr=i,mn=!0,ri=null,_a=!1,a!==null&&(na[ra++]=qa,na[ra++]=Wa,na[ra++]=ti,qa=a.id,Wa=a.overflow,ti=i),i=Bv(i,f.children),i.flags|=4096);return i}return h?(Co(),h=f.fallback,K=i.mode,ae=a.child,be=ae.sibling,f=Ua(ae,{mode:"hidden",children:f.children}),f.subtreeFlags=ae.subtreeFlags&65011712,be!==null?h=Ua(be,h):(h=ei(h,K,l,null),h.flags|=2),h.return=i,f.return=i,f.sibling=h,i.child=f,f=h,h=i.child,K=a.child.memoizedState,K===null?K=Hv(l):(ae=K.cachePool,ae!==null?(be=or._currentValue,ae=ae.parent!==be?{parent:be,pool:be}:ae):ae=D0(),K={baseLanes:K.baseLanes|l,cachePool:ae}),h.memoizedState=K,h.childLanes=Lv(a,B,l),i.memoizedState=jv,f):(So(i),l=a.child,a=l.sibling,l=Ua(l,{mode:"visible",children:f.children}),l.return=i,l.sibling=null,a!==null&&(B=i.deletions,B===null?(i.deletions=[a],i.flags|=16):B.push(a)),i.child=l,i.memoizedState=null,l)}function Bv(a,i){return i=wu({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function wu(a,i){return a=kr(22,a,null,i),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function Fv(a,i,l){return Ji(i,a.child,null,l),a=Bv(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function Gb(a,i,l){a.lanes|=i;var f=a.alternate;f!==null&&(f.lanes|=i),ov(a.return,i,l)}function Vv(a,i,l,f,h){var S=a.memoizedState;S===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:h}:(S.isBackwards=i,S.rendering=null,S.renderingStartTime=0,S.last=f,S.tail=l,S.tailMode=h)}function Yb(a,i,l){var f=i.pendingProps,h=f.revealOrder,S=f.tail;if(pr(a,i,f.children,l),f=ir.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Gb(a,l,i);else if(a.tag===19)Gb(a,l,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}f&=1}switch(Y(ir,f),h){case"forwards":for(l=i.child,h=null;l!==null;)a=l.alternate,a!==null&&yu(a)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),Vv(i,!1,h,l,S);break;case"backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(a=h.alternate,a!==null&&yu(a)===null){i.child=h;break}a=h.sibling,h.sibling=l,l=h,h=a}Vv(i,!0,l,null,S);break;case"together":Vv(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Qa(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),Oo|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(ns(a,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,l=Ua(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=Ua(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function kv(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&ru(a)))}function YO(a,i,l){switch(i.tag){case 3:ne(i,i.stateNode.containerInfo),go(i,or,a.memoizedState.cache),es();break;case 27:case 5:le(i);break;case 4:ne(i,i.stateNode.containerInfo);break;case 10:go(i,i.type,i.memoizedProps.value);break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(So(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Wb(a,i,l):(So(i),a=Qa(a,i,l),a!==null?a.sibling:null);So(i);break;case 19:var h=(a.flags&128)!==0;if(f=(l&i.childLanes)!==0,f||(ns(a,i,l,!1),f=(l&i.childLanes)!==0),h){if(f)return Yb(a,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Y(ir,ir.current),f)break;return null;case 22:case 23:return i.lanes=0,Fb(a,i,l);case 24:go(i,or,a.memoizedState.cache)}return Qa(a,i,l)}function Kb(a,i,l){if(a!==null)if(a.memoizedProps!==i.pendingProps)fr=!0;else{if(!kv(a,l)&&(i.flags&128)===0)return fr=!1,YO(a,i,l);fr=(a.flags&131072)!==0}else fr=!1,mn&&(i.flags&1048576)!==0&&$0(i,nu,i.index);switch(i.lanes=0,i.tag){case 16:e:{a=i.pendingProps;var f=i.elementType,h=f._init;if(f=h(f._payload),i.type=f,typeof f=="function")Zd(f)?(a=ci(f,a),i.tag=1,i=Ub(null,i,f,a,l)):(i.tag=0,i=zv(null,i,f,a,l));else{if(f!=null){if(h=f.$$typeof,h===T){i.tag=11,i=Hb(null,i,f,a,l);break e}else if(h===I){i.tag=14,i=Lb(null,i,f,a,l);break e}}throw i=F(f)||f,Error(r(306,i,""))}}return i;case 0:return zv(a,i,i.type,i.pendingProps,l);case 1:return f=i.type,h=ci(f,i.pendingProps),Ub(a,i,f,h,l);case 3:e:{if(ne(i,i.stateNode.containerInfo),a===null)throw Error(r(387));f=i.pendingProps;var S=i.memoizedState;h=S.element,dv(a,i),cs(i,f,null,l);var B=i.memoizedState;if(f=B.cache,go(i,or,f),f!==S.cache&&iv(i,[or],l,!0),ss(),f=B.element,S.isDehydrated)if(S={element:f,isDehydrated:!1,cache:B.cache},i.updateQueue.baseState=S,i.memoizedState=S,i.flags&256){i=qb(a,i,f,l);break e}else if(f!==h){h=ea(Error(r(424)),i),ts(h),i=qb(a,i,f,l);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(qn=ba(a.firstChild),Nr=i,mn=!0,ri=null,_a=!0,l=Rb(i,null,f,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(es(),f===h){i=Qa(a,i,l);break e}pr(a,i,f,l)}i=i.child}return i;case 26:return xu(a,i),a===null?(l=Jy(i.type,null,i.pendingProps,null))?i.memoizedState=l:mn||(l=i.type,a=i.pendingProps,f=ju(Z.current).createElement(l),f[yt]=i,f[We]=a,yr(f,l,a),wt(f),i.stateNode=f):i.memoizedState=Jy(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return le(i),a===null&&mn&&(f=i.stateNode=Xy(i.type,i.pendingProps,Z.current),Nr=i,_a=!0,h=qn,_o(i.type)?(wm=h,qn=ba(f.firstChild)):qn=h),pr(a,i,i.pendingProps.children,l),xu(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&mn&&((h=f=qn)&&(f=xR(f,i.type,i.pendingProps,_a),f!==null?(i.stateNode=f,Nr=i,qn=ba(f.firstChild),_a=!1,h=!0):h=!1),h||ai(i)),le(i),h=i.type,S=i.pendingProps,B=a!==null?a.memoizedProps:null,f=S.children,ym(h,S)?f=null:B!==null&&ym(h,B)&&(i.flags|=32),i.memoizedState!==null&&(h=bv(a,i,BO,null,null,l),Ns._currentValue=h),xu(a,i),pr(a,i,f,l),i.child;case 6:return a===null&&mn&&((a=l=qn)&&(l=wR(l,i.pendingProps,_a),l!==null?(i.stateNode=l,Nr=i,qn=null,a=!0):a=!1),a||ai(i)),null;case 13:return Wb(a,i,l);case 4:return ne(i,i.stateNode.containerInfo),f=i.pendingProps,a===null?i.child=Ji(i,null,f,l):pr(a,i,f,l),i.child;case 11:return Hb(a,i,i.type,i.pendingProps,l);case 7:return pr(a,i,i.pendingProps,l),i.child;case 8:return pr(a,i,i.pendingProps.children,l),i.child;case 12:return pr(a,i,i.pendingProps.children,l),i.child;case 10:return f=i.pendingProps,go(i,i.type,f.value),pr(a,i,f.children,l),i.child;case 9:return h=i.type._context,f=i.pendingProps.children,ii(i),h=Er(h),f=f(h),i.flags|=1,pr(a,i,f,l),i.child;case 14:return Lb(a,i,i.type,i.pendingProps,l);case 15:return Bb(a,i,i.type,i.pendingProps,l);case 19:return Yb(a,i,l);case 31:return f=i.pendingProps,l=i.mode,f={mode:f.mode,children:f.children},a===null?(l=wu(f,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=Ua(a.child,f),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return Fb(a,i,l);case 24:return ii(i),f=Er(or),a===null?(h=cv(),h===null&&(h=Pn,S=lv(),h.pooledCache=S,S.refCount++,S!==null&&(h.pooledCacheLanes|=l),h=S),i.memoizedState={parent:f,cache:h},fv(i),go(i,or,h)):((a.lanes&l)!==0&&(dv(a,i),cs(i,null,null,l),ss()),h=a.memoizedState,S=i.memoizedState,h.parent!==f?(h={parent:f,cache:f},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),go(i,or,f)):(f=S.cache,go(i,or,f),f!==h.cache&&iv(i,[or],l,!0))),pr(a,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Za(a){a.flags|=4}function Xb(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!aS(i)){if(i=aa.current,i!==null&&((fn&4194048)===fn?Na!==null:(fn&62914560)!==fn&&(fn&536870912)===0||i!==Na))throw is=uv,I0;a.flags|=8192}}function Eu(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Ot():536870912,a.lanes|=i,rl|=i)}function hs(a,i){if(!mn)switch(a.tailMode){case"hidden":i=a.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a.tail=null:l.sibling=null;break;case"collapsed":l=a.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:f.sibling=null}}function Vn(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,f=0;if(i)for(var h=a.child;h!==null;)l|=h.lanes|h.childLanes,f|=h.subtreeFlags&65011712,f|=h.flags&65011712,h.return=a,h=h.sibling;else for(h=a.child;h!==null;)l|=h.lanes|h.childLanes,f|=h.subtreeFlags,f|=h.flags,h.return=a,h=h.sibling;return a.subtreeFlags|=f,a.childLanes=l,i}function KO(a,i,l){var f=i.pendingProps;switch(nv(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(i),null;case 1:return Vn(i),null;case 3:return l=i.stateNode,f=null,a!==null&&(f=a.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),Ya(or),re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(Jl(i)?Za(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,M0())),Vn(i),null;case 26:return l=i.memoizedState,a===null?(Za(i),l!==null?(Vn(i),Xb(i,l)):(Vn(i),i.flags&=-16777217)):l?l!==a.memoizedState?(Za(i),Vn(i),Xb(i,l)):(Vn(i),i.flags&=-16777217):(a.memoizedProps!==f&&Za(i),Vn(i),i.flags&=-16777217),null;case 27:oe(i),l=Z.current;var h=i.type;if(a!==null&&i.stateNode!=null)a.memoizedProps!==f&&Za(i);else{if(!f){if(i.stateNode===null)throw Error(r(166));return Vn(i),null}a=U.current,Jl(i)?O0(i):(a=Xy(h,f,l),i.stateNode=a,Za(i))}return Vn(i),null;case 5:if(oe(i),l=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==f&&Za(i);else{if(!f){if(i.stateNode===null)throw Error(r(166));return Vn(i),null}if(a=U.current,Jl(i))O0(i);else{switch(h=ju(Z.current),a){case 1:a=h.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=h.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=h.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof f.is=="string"?h.createElement("select",{is:f.is}):h.createElement("select"),f.multiple?a.multiple=!0:f.size&&(a.size=f.size);break;default:a=typeof f.is=="string"?h.createElement(l,{is:f.is}):h.createElement(l)}}a[yt]=i,a[We]=f;e:for(h=i.child;h!==null;){if(h.tag===5||h.tag===6)a.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)break e;for(;h.sibling===null;){if(h.return===null||h.return===i)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}i.stateNode=a;e:switch(yr(a,l,f),l){case"button":case"input":case"select":case"textarea":a=!!f.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Za(i)}}return Vn(i),i.flags&=-16777217,null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==f&&Za(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(r(166));if(a=Z.current,Jl(i)){if(a=i.stateNode,l=i.memoizedProps,f=null,h=Nr,h!==null)switch(h.tag){case 27:case 5:f=h.memoizedProps}a[yt]=i,a=!!(a.nodeValue===l||f!==null&&f.suppressHydrationWarning===!0||ky(a.nodeValue,l)),a||ai(i)}else a=ju(a).createTextNode(f),a[yt]=i,i.stateNode=a}return Vn(i),null;case 13:if(f=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(h=Jl(i),f!==null&&f.dehydrated!==null){if(a===null){if(!h)throw Error(r(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[yt]=i}else es(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Vn(i),h=!1}else h=M0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Xa(i),i):(Xa(i),null)}if(Xa(i),(i.flags&128)!==0)return i.lanes=l,i;if(l=f!==null,a=a!==null&&a.memoizedState!==null,l){f=i.child,h=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(h=f.alternate.memoizedState.cachePool.pool);var S=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(S=f.memoizedState.cachePool.pool),S!==h&&(f.flags|=2048)}return l!==a&&l&&(i.child.flags|=8192),Eu(i,i.updateQueue),Vn(i),null;case 4:return re(),a===null&&mm(i.stateNode.containerInfo),Vn(i),null;case 10:return Ya(i.type),Vn(i),null;case 19:if(W(ir),h=i.memoizedState,h===null)return Vn(i),null;if(f=(i.flags&128)!==0,S=h.rendering,S===null)if(f)hs(h,!1);else{if(Wn!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(S=yu(a),S!==null){for(i.flags|=128,hs(h,!1),a=S.updateQueue,i.updateQueue=a,Eu(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)E0(l,a),l=l.sibling;return Y(ir,ir.current&1|2),i.child}a=a.sibling}h.tail!==null&&xe()>Ru&&(i.flags|=128,f=!0,hs(h,!1),i.lanes=4194304)}else{if(!f)if(a=yu(S),a!==null){if(i.flags|=128,f=!0,a=a.updateQueue,i.updateQueue=a,Eu(i,a),hs(h,!0),h.tail===null&&h.tailMode==="hidden"&&!S.alternate&&!mn)return Vn(i),null}else 2*xe()-h.renderingStartTime>Ru&&l!==536870912&&(i.flags|=128,f=!0,hs(h,!1),i.lanes=4194304);h.isBackwards?(S.sibling=i.child,i.child=S):(a=h.last,a!==null?a.sibling=S:i.child=S,h.last=S)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=xe(),i.sibling=null,a=ir.current,Y(ir,f?a&1|2:a&1),i):(Vn(i),null);case 22:case 23:return Xa(i),hv(),f=i.memoizedState!==null,a!==null?a.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(l&536870912)!==0&&(i.flags&128)===0&&(Vn(i),i.subtreeFlags&6&&(i.flags|=8192)):Vn(i),l=i.updateQueue,l!==null&&Eu(i,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==l&&(i.flags|=2048),a!==null&&W(li),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Ya(or),Vn(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function XO(a,i){switch(nv(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Ya(or),re(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return oe(i),null;case 13:if(Xa(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));es()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return W(ir),null;case 4:return re(),null;case 10:return Ya(i.type),null;case 22:case 23:return Xa(i),hv(),a!==null&&W(li),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Ya(or),null;case 25:return null;default:return null}}function Qb(a,i){switch(nv(i),i.tag){case 3:Ya(or),re();break;case 26:case 27:case 5:oe(i);break;case 4:re();break;case 13:Xa(i);break;case 19:W(ir);break;case 10:Ya(i.type);break;case 22:case 23:Xa(i),hv(),a!==null&&W(li);break;case 24:Ya(or)}}function ps(a,i){try{var l=i.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&a)===a){f=void 0;var S=l.create,B=l.inst;f=S(),B.destroy=f}l=l.next}while(l!==h)}}catch(K){In(i,i.return,K)}}function xo(a,i,l){try{var f=i.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var S=h.next;f=S;do{if((f.tag&a)===a){var B=f.inst,K=B.destroy;if(K!==void 0){B.destroy=void 0,h=i;var ae=l,be=K;try{be()}catch(_e){In(h,ae,_e)}}}f=f.next}while(f!==S)}}catch(_e){In(i,i.return,_e)}}function Zb(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;try{L0(i,l)}catch(f){In(a,a.return,f)}}}function Jb(a,i,l){l.props=ci(a.type,a.memoizedProps),l.state=a.memoizedState;try{l.componentWillUnmount()}catch(f){In(a,i,f)}}function bs(a,i){try{var l=a.ref;if(l!==null){switch(a.tag){case 26:case 27:case 5:var f=a.stateNode;break;case 30:f=a.stateNode;break;default:f=a.stateNode}typeof l=="function"?a.refCleanup=l(f):l.current=f}}catch(h){In(a,i,h)}}function Da(a,i){var l=a.ref,f=a.refCleanup;if(l!==null)if(typeof f=="function")try{f()}catch(h){In(a,i,h)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){In(a,i,h)}else l.current=null}function ey(a){var i=a.type,l=a.memoizedProps,f=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&f.focus();break e;case"img":l.src?f.src=l.src:l.srcSet&&(f.srcset=l.srcSet)}}catch(h){In(a,a.return,h)}}function Uv(a,i,l){try{var f=a.stateNode;pR(f,a.type,l,i),f[We]=i}catch(h){In(a,a.return,h)}}function ty(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&_o(a.type)||a.tag===4}function qv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||ty(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&_o(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wv(a,i,l){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(a),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=zu));else if(f!==4&&(f===27&&_o(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(Wv(a,i,l),a=a.sibling;a!==null;)Wv(a,i,l),a=a.sibling}function $u(a,i,l){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?l.insertBefore(a,i):l.appendChild(a);else if(f!==4&&(f===27&&_o(a.type)&&(l=a.stateNode),a=a.child,a!==null))for($u(a,i,l),a=a.sibling;a!==null;)$u(a,i,l),a=a.sibling}function ny(a){var i=a.stateNode,l=a.memoizedProps;try{for(var f=a.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);yr(i,f,l),i[yt]=a,i[We]=l}catch(S){In(a,a.return,S)}}var Ja=!1,Kn=!1,Gv=!1,ry=typeof WeakSet=="function"?WeakSet:Set,dr=null;function QO(a,i){if(a=a.containerInfo,pm=ku,a=m0(a),qd(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var h=f.anchorOffset,S=f.focusNode;f=f.focusOffset;try{l.nodeType,S.nodeType}catch{l=null;break e}var B=0,K=-1,ae=-1,be=0,_e=0,ze=a,Ce=null;t:for(;;){for(var we;ze!==l||h!==0&&ze.nodeType!==3||(K=B+h),ze!==S||f!==0&&ze.nodeType!==3||(ae=B+f),ze.nodeType===3&&(B+=ze.nodeValue.length),(we=ze.firstChild)!==null;)Ce=ze,ze=we;for(;;){if(ze===a)break t;if(Ce===l&&++be===h&&(K=B),Ce===S&&++_e===f&&(ae=B),(we=ze.nextSibling)!==null)break;ze=Ce,Ce=ze.parentNode}ze=we}l=K===-1||ae===-1?null:{start:K,end:ae}}else l=null}l=l||{start:0,end:0}}else l=null;for(bm={focusedElem:a,selectionRange:l},ku=!1,dr=i;dr!==null;)if(i=dr,a=i.child,(i.subtreeFlags&1024)!==0&&a!==null)a.return=i,dr=a;else for(;dr!==null;){switch(i=dr,S=i.alternate,a=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&S!==null){a=void 0,l=i,h=S.memoizedProps,S=S.memoizedState,f=l.stateNode;try{var Pt=ci(l.type,h,l.elementType===l.type);a=f.getSnapshotBeforeUpdate(Pt,S),f.__reactInternalSnapshotBeforeUpdate=a}catch(Mt){In(l,l.return,Mt)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,l=a.nodeType,l===9)Cm(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Cm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,dr=a;break}dr=i.return}}function ay(a,i,l){var f=l.flags;switch(l.tag){case 0:case 11:case 15:wo(a,l),f&4&&ps(5,l);break;case 1:if(wo(a,l),f&4)if(a=l.stateNode,i===null)try{a.componentDidMount()}catch(B){In(l,l.return,B)}else{var h=ci(l.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(h,i,a.__reactInternalSnapshotBeforeUpdate)}catch(B){In(l,l.return,B)}}f&64&&Zb(l),f&512&&bs(l,l.return);break;case 3:if(wo(a,l),f&64&&(a=l.updateQueue,a!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{L0(a,i)}catch(B){In(l,l.return,B)}}break;case 27:i===null&&f&4&&ny(l);case 26:case 5:wo(a,l),i===null&&f&4&&ey(l),f&512&&bs(l,l.return);break;case 12:wo(a,l);break;case 13:wo(a,l),f&4&&ly(a,l),f&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(l=iR.bind(null,l),ER(a,l))));break;case 22:if(f=l.memoizedState!==null||Ja,!f){i=i!==null&&i.memoizedState!==null||Kn,h=Ja;var S=Kn;Ja=f,(Kn=i)&&!S?Eo(a,l,(l.subtreeFlags&8772)!==0):wo(a,l),Ja=h,Kn=S}break;case 30:break;default:wo(a,l)}}function oy(a){var i=a.alternate;i!==null&&(a.alternate=null,oy(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&jt(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Bn=null,jr=!1;function eo(a,i,l){for(l=l.child;l!==null;)iy(a,i,l),l=l.sibling}function iy(a,i,l){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(Te,l)}catch{}switch(l.tag){case 26:Kn||Da(l,i),eo(a,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Kn||Da(l,i);var f=Bn,h=jr;_o(l.type)&&(Bn=l.stateNode,jr=!1),eo(a,i,l),Rs(l.stateNode),Bn=f,jr=h;break;case 5:Kn||Da(l,i);case 6:if(f=Bn,h=jr,Bn=null,eo(a,i,l),Bn=f,jr=h,Bn!==null)if(jr)try{(Bn.nodeType===9?Bn.body:Bn.nodeName==="HTML"?Bn.ownerDocument.body:Bn).removeChild(l.stateNode)}catch(S){In(l,i,S)}else try{Bn.removeChild(l.stateNode)}catch(S){In(l,i,S)}break;case 18:Bn!==null&&(jr?(a=Bn,Yy(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),As(a)):Yy(Bn,l.stateNode));break;case 4:f=Bn,h=jr,Bn=l.stateNode.containerInfo,jr=!0,eo(a,i,l),Bn=f,jr=h;break;case 0:case 11:case 14:case 15:Kn||xo(2,l,i),Kn||xo(4,l,i),eo(a,i,l);break;case 1:Kn||(Da(l,i),f=l.stateNode,typeof f.componentWillUnmount=="function"&&Jb(l,i,f)),eo(a,i,l);break;case 21:eo(a,i,l);break;case 22:Kn=(f=Kn)||l.memoizedState!==null,eo(a,i,l),Kn=f;break;default:eo(a,i,l)}}function ly(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{As(a)}catch(l){In(i,i.return,l)}}function ZO(a){switch(a.tag){case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new ry),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new ry),i;default:throw Error(r(435,a.tag))}}function Yv(a,i){var l=ZO(a);i.forEach(function(f){var h=lR.bind(null,a,f);l.has(f)||(l.add(f),f.then(h,h))})}function Ur(a,i){var l=i.deletions;if(l!==null)for(var f=0;f<l.length;f++){var h=l[f],S=a,B=i,K=B;e:for(;K!==null;){switch(K.tag){case 27:if(_o(K.type)){Bn=K.stateNode,jr=!1;break e}break;case 5:Bn=K.stateNode,jr=!1;break e;case 3:case 4:Bn=K.stateNode.containerInfo,jr=!0;break e}K=K.return}if(Bn===null)throw Error(r(160));iy(S,B,h),Bn=null,jr=!1,S=h.alternate,S!==null&&(S.return=null),h.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)sy(i,a),i=i.sibling}var pa=null;function sy(a,i){var l=a.alternate,f=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Ur(i,a),qr(a),f&4&&(xo(3,a,a.return),ps(3,a),xo(5,a,a.return));break;case 1:Ur(i,a),qr(a),f&512&&(Kn||l===null||Da(l,l.return)),f&64&&Ja&&(a=a.updateQueue,a!==null&&(f=a.callbacks,f!==null&&(l=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=l===null?f:l.concat(f))));break;case 26:var h=pa;if(Ur(i,a),qr(a),f&512&&(Kn||l===null||Da(l,l.return)),f&4){var S=l!==null?l.memoizedState:null;if(f=a.memoizedState,l===null)if(f===null)if(a.stateNode===null){e:{f=a.type,l=a.memoizedProps,h=h.ownerDocument||h;t:switch(f){case"title":S=h.getElementsByTagName("title")[0],(!S||S[Vt]||S[yt]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=h.createElement(f),h.head.insertBefore(S,h.querySelector("head > title"))),yr(S,f,l),S[yt]=a,wt(S),f=S;break e;case"link":var B=nS("link","href",h).get(f+(l.href||""));if(B){for(var K=0;K<B.length;K++)if(S=B[K],S.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&S.getAttribute("rel")===(l.rel==null?null:l.rel)&&S.getAttribute("title")===(l.title==null?null:l.title)&&S.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){B.splice(K,1);break t}}S=h.createElement(f),yr(S,f,l),h.head.appendChild(S);break;case"meta":if(B=nS("meta","content",h).get(f+(l.content||""))){for(K=0;K<B.length;K++)if(S=B[K],S.getAttribute("content")===(l.content==null?null:""+l.content)&&S.getAttribute("name")===(l.name==null?null:l.name)&&S.getAttribute("property")===(l.property==null?null:l.property)&&S.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&S.getAttribute("charset")===(l.charSet==null?null:l.charSet)){B.splice(K,1);break t}}S=h.createElement(f),yr(S,f,l),h.head.appendChild(S);break;default:throw Error(r(468,f))}S[yt]=a,wt(S),f=S}a.stateNode=f}else rS(h,a.type,a.stateNode);else a.stateNode=tS(h,f,a.memoizedProps);else S!==f?(S===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):S.count--,f===null?rS(h,a.type,a.stateNode):tS(h,f,a.memoizedProps)):f===null&&a.stateNode!==null&&Uv(a,a.memoizedProps,l.memoizedProps)}break;case 27:Ur(i,a),qr(a),f&512&&(Kn||l===null||Da(l,l.return)),l!==null&&f&4&&Uv(a,a.memoizedProps,l.memoizedProps);break;case 5:if(Ur(i,a),qr(a),f&512&&(Kn||l===null||Da(l,l.return)),a.flags&32){h=a.stateNode;try{Ln(h,"")}catch(we){In(a,a.return,we)}}f&4&&a.stateNode!=null&&(h=a.memoizedProps,Uv(a,h,l!==null?l.memoizedProps:h)),f&1024&&(Gv=!0);break;case 6:if(Ur(i,a),qr(a),f&4){if(a.stateNode===null)throw Error(r(162));f=a.memoizedProps,l=a.stateNode;try{l.nodeValue=f}catch(we){In(a,a.return,we)}}break;case 3:if(Bu=null,h=pa,pa=Hu(i.containerInfo),Ur(i,a),pa=h,qr(a),f&4&&l!==null&&l.memoizedState.isDehydrated)try{As(i.containerInfo)}catch(we){In(a,a.return,we)}Gv&&(Gv=!1,cy(a));break;case 4:f=pa,pa=Hu(a.stateNode.containerInfo),Ur(i,a),qr(a),pa=f;break;case 12:Ur(i,a),qr(a);break;case 13:Ur(i,a),qr(a),a.child.flags&8192&&a.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(em=xe()),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Yv(a,f)));break;case 22:h=a.memoizedState!==null;var ae=l!==null&&l.memoizedState!==null,be=Ja,_e=Kn;if(Ja=be||h,Kn=_e||ae,Ur(i,a),Kn=_e,Ja=be,qr(a),f&8192)e:for(i=a.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(l===null||ae||Ja||Kn||ui(a)),l=null,i=a;;){if(i.tag===5||i.tag===26){if(l===null){ae=l=i;try{if(S=ae.stateNode,h)B=S.style,typeof B.setProperty=="function"?B.setProperty("display","none","important"):B.display="none";else{K=ae.stateNode;var ze=ae.memoizedProps.style,Ce=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;K.style.display=Ce==null||typeof Ce=="boolean"?"":(""+Ce).trim()}}catch(we){In(ae,ae.return,we)}}}else if(i.tag===6){if(l===null){ae=i;try{ae.stateNode.nodeValue=h?"":ae.memoizedProps}catch(we){In(ae,ae.return,we)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=a.updateQueue,f!==null&&(l=f.retryQueue,l!==null&&(f.retryQueue=null,Yv(a,l))));break;case 19:Ur(i,a),qr(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Yv(a,f)));break;case 30:break;case 21:break;default:Ur(i,a),qr(a)}}function qr(a){var i=a.flags;if(i&2){try{for(var l,f=a.return;f!==null;){if(ty(f)){l=f;break}f=f.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var h=l.stateNode,S=qv(a);$u(a,S,h);break;case 5:var B=l.stateNode;l.flags&32&&(Ln(B,""),l.flags&=-33);var K=qv(a);$u(a,K,B);break;case 3:case 4:var ae=l.stateNode.containerInfo,be=qv(a);Wv(a,be,ae);break;default:throw Error(r(161))}}catch(_e){In(a,a.return,_e)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function cy(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;cy(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function wo(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ay(a,i.alternate,i),i=i.sibling}function ui(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:xo(4,i,i.return),ui(i);break;case 1:Da(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Jb(i,i.return,l),ui(i);break;case 27:Rs(i.stateNode);case 26:case 5:Da(i,i.return),ui(i);break;case 22:i.memoizedState===null&&ui(i);break;case 30:ui(i);break;default:ui(i)}a=a.sibling}}function Eo(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,h=a,S=i,B=S.flags;switch(S.tag){case 0:case 11:case 15:Eo(h,S,l),ps(4,S);break;case 1:if(Eo(h,S,l),f=S,h=f.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(be){In(f,f.return,be)}if(f=S,h=f.updateQueue,h!==null){var K=f.stateNode;try{var ae=h.shared.hiddenCallbacks;if(ae!==null)for(h.shared.hiddenCallbacks=null,h=0;h<ae.length;h++)H0(ae[h],K)}catch(be){In(f,f.return,be)}}l&&B&64&&Zb(S),bs(S,S.return);break;case 27:ny(S);case 26:case 5:Eo(h,S,l),l&&f===null&&B&4&&ey(S),bs(S,S.return);break;case 12:Eo(h,S,l);break;case 13:Eo(h,S,l),l&&B&4&&ly(h,S);break;case 22:S.memoizedState===null&&Eo(h,S,l),bs(S,S.return);break;case 30:break;default:Eo(h,S,l)}i=i.sibling}}function Kv(a,i){var l=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(a!=null&&a.refCount++,l!=null&&rs(l))}function Xv(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&rs(a))}function Ia(a,i,l,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)uy(a,i,l,f),i=i.sibling}function uy(a,i,l,f){var h=i.flags;switch(i.tag){case 0:case 11:case 15:Ia(a,i,l,f),h&2048&&ps(9,i);break;case 1:Ia(a,i,l,f);break;case 3:Ia(a,i,l,f),h&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&rs(a)));break;case 12:if(h&2048){Ia(a,i,l,f),a=i.stateNode;try{var S=i.memoizedProps,B=S.id,K=S.onPostCommit;typeof K=="function"&&K(B,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(ae){In(i,i.return,ae)}}else Ia(a,i,l,f);break;case 13:Ia(a,i,l,f);break;case 23:break;case 22:S=i.stateNode,B=i.alternate,i.memoizedState!==null?S._visibility&2?Ia(a,i,l,f):ys(a,i):S._visibility&2?Ia(a,i,l,f):(S._visibility|=2,el(a,i,l,f,(i.subtreeFlags&10256)!==0)),h&2048&&Kv(B,i);break;case 24:Ia(a,i,l,f),h&2048&&Xv(i.alternate,i);break;default:Ia(a,i,l,f)}}function el(a,i,l,f,h){for(h=h&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var S=a,B=i,K=l,ae=f,be=B.flags;switch(B.tag){case 0:case 11:case 15:el(S,B,K,ae,h),ps(8,B);break;case 23:break;case 22:var _e=B.stateNode;B.memoizedState!==null?_e._visibility&2?el(S,B,K,ae,h):ys(S,B):(_e._visibility|=2,el(S,B,K,ae,h)),h&&be&2048&&Kv(B.alternate,B);break;case 24:el(S,B,K,ae,h),h&&be&2048&&Xv(B.alternate,B);break;default:el(S,B,K,ae,h)}i=i.sibling}}function ys(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=a,f=i,h=f.flags;switch(f.tag){case 22:ys(l,f),h&2048&&Kv(f.alternate,f);break;case 24:ys(l,f),h&2048&&Xv(f.alternate,f);break;default:ys(l,f)}i=i.sibling}}var Ss=8192;function tl(a){if(a.subtreeFlags&Ss)for(a=a.child;a!==null;)fy(a),a=a.sibling}function fy(a){switch(a.tag){case 26:tl(a),a.flags&Ss&&a.memoizedState!==null&&jR(pa,a.memoizedState,a.memoizedProps);break;case 5:tl(a);break;case 3:case 4:var i=pa;pa=Hu(a.stateNode.containerInfo),tl(a),pa=i;break;case 22:a.memoizedState===null&&(i=a.alternate,i!==null&&i.memoizedState!==null?(i=Ss,Ss=16777216,tl(a),Ss=i):tl(a));break;default:tl(a)}}function dy(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Cs(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var f=i[l];dr=f,my(f,a)}dy(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)vy(a),a=a.sibling}function vy(a){switch(a.tag){case 0:case 11:case 15:Cs(a),a.flags&2048&&xo(9,a,a.return);break;case 3:Cs(a);break;case 12:Cs(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,Ou(a)):Cs(a);break;default:Cs(a)}}function Ou(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var f=i[l];dr=f,my(f,a)}dy(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:xo(8,i,i.return),Ou(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Ou(i));break;default:Ou(i)}a=a.sibling}}function my(a,i){for(;dr!==null;){var l=dr;switch(l.tag){case 0:case 11:case 15:xo(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var f=l.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:rs(l.memoizedState.cache)}if(f=l.child,f!==null)f.return=l,dr=f;else e:for(l=a;dr!==null;){f=dr;var h=f.sibling,S=f.return;if(oy(f),f===l){dr=null;break e}if(h!==null){h.return=S,dr=h;break e}dr=S}}}var JO={getCacheForType:function(a){var i=Er(or),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l}},eR=typeof WeakMap=="function"?WeakMap:Map,wn=0,Pn=null,an=null,fn=0,En=0,Wr=null,$o=!1,nl=!1,Qv=!1,to=0,Wn=0,Oo=0,fi=0,Zv=0,oa=0,rl=0,xs=null,Hr=null,Jv=!1,em=0,Ru=1/0,Mu=null,Ro=null,br=0,Mo=null,al=null,ol=0,tm=0,nm=null,gy=null,ws=0,rm=null;function Gr(){if((wn&2)!==0&&fn!==0)return fn&-fn;if(R.T!==null){var a=Wi;return a!==0?a:um()}return tt()}function hy(){oa===0&&(oa=(fn&536870912)===0||mn?mt():536870912);var a=aa.current;return a!==null&&(a.flags|=32),oa}function Yr(a,i,l){(a===Pn&&(En===2||En===9)||a.cancelPendingCommit!==null)&&(il(a,0),To(a,fn,oa,!1)),Kt(a,l),((wn&2)===0||a!==Pn)&&(a===Pn&&((wn&2)===0&&(fi|=l),Wn===4&&To(a,fn,oa,!1)),Pa(a))}function py(a,i,l){if((wn&6)!==0)throw Error(r(327));var f=!l&&(i&124)===0&&(i&a.expiredLanes)===0||Se(a,i),h=f?rR(a,i):im(a,i,!0),S=f;do{if(h===0){nl&&!f&&To(a,i,0,!1);break}else{if(l=a.current.alternate,S&&!tR(l)){h=im(a,i,!1),S=!1;continue}if(h===2){if(S=i,a.errorRecoveryDisabledLanes&S)var B=0;else B=a.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){i=B;e:{var K=a;h=xs;var ae=K.current.memoizedState.isDehydrated;if(ae&&(il(K,B).flags|=256),B=im(K,B,!1),B!==2){if(Qv&&!ae){K.errorRecoveryDisabledLanes|=S,fi|=S,h=4;break e}S=Hr,Hr=h,S!==null&&(Hr===null?Hr=S:Hr.push.apply(Hr,S))}h=B}if(S=!1,h!==2)continue}}if(h===1){il(a,0),To(a,i,0,!0);break}e:{switch(f=a,S=h,S){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:To(f,i,oa,!$o);break e;case 2:Hr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(h=em+300-xe(),10<h)){if(To(f,i,oa,!$o),$e(f,0,!0)!==0)break e;f.timeoutHandle=Wy(by.bind(null,f,l,Hr,Mu,Jv,i,oa,fi,rl,$o,S,2,-0,0),h);break e}by(f,l,Hr,Mu,Jv,i,oa,fi,rl,$o,S,0,-0,0)}}break}while(!0);Pa(a)}function by(a,i,l,f,h,S,B,K,ae,be,_e,ze,Ce,we){if(a.timeoutHandle=-1,ze=i.subtreeFlags,(ze&8192||(ze&16785408)===16785408)&&(_s={stylesheets:null,count:0,unsuspend:zR},fy(i),ze=HR(),ze!==null)){a.cancelPendingCommit=ze($y.bind(null,a,i,S,l,f,h,B,K,ae,_e,1,Ce,we)),To(a,S,B,!be);return}$y(a,i,S,l,f,h,B,K,ae)}function tR(a){for(var i=a;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var f=0;f<l.length;f++){var h=l[f],S=h.getSnapshot;h=h.value;try{if(!Vr(S(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function To(a,i,l,f){i&=~Zv,i&=~fi,a.suspendedLanes|=i,a.pingedLanes&=~i,f&&(a.warmLanes|=i),f=a.expirationTimes;for(var h=i;0<h;){var S=31-He(h),B=1<<S;f[S]=-1,h&=~B}l!==0&&Tt(a,l,i)}function Tu(){return(wn&6)===0?(Es(0),!1):!0}function am(){if(an!==null){if(En===0)var a=an.return;else a=an,Ga=oi=null,Cv(a),Zi=null,ms=0,a=an;for(;a!==null;)Qb(a.alternate,a),a=a.return;an=null}}function il(a,i){var l=a.timeoutHandle;l!==-1&&(a.timeoutHandle=-1,yR(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),am(),Pn=a,an=l=Ua(a.current,null),fn=i,En=0,Wr=null,$o=!1,nl=Se(a,i),Qv=!1,rl=oa=Zv=fi=Oo=Wn=0,Hr=xs=null,Jv=!1,(i&8)!==0&&(i|=i&32);var f=a.entangledLanes;if(f!==0)for(a=a.entanglements,f&=i;0<f;){var h=31-He(f),S=1<<h;i|=a[h],f&=~S}return to=i,Qc(),l}function yy(a,i){Qt=null,R.H=hu,i===os||i===iu?(i=z0(),En=3):i===I0?(i=z0(),En=4):En=i===jb?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Wr=i,an===null&&(Wn=1,Cu(a,ea(i,a.current)))}function Sy(){var a=R.H;return R.H=hu,a===null?hu:a}function Cy(){var a=R.A;return R.A=JO,a}function om(){Wn=4,$o||(fn&4194048)!==fn&&aa.current!==null||(nl=!0),(Oo&134217727)===0&&(fi&134217727)===0||Pn===null||To(Pn,fn,oa,!1)}function im(a,i,l){var f=wn;wn|=2;var h=Sy(),S=Cy();(Pn!==a||fn!==i)&&(Mu=null,il(a,i)),i=!1;var B=Wn;e:do try{if(En!==0&&an!==null){var K=an,ae=Wr;switch(En){case 8:am(),B=6;break e;case 3:case 2:case 9:case 6:aa.current===null&&(i=!0);var be=En;if(En=0,Wr=null,ll(a,K,ae,be),l&&nl){B=0;break e}break;default:be=En,En=0,Wr=null,ll(a,K,ae,be)}}nR(),B=Wn;break}catch(_e){yy(a,_e)}while(!0);return i&&a.shellSuspendCounter++,Ga=oi=null,wn=f,R.H=h,R.A=S,an===null&&(Pn=null,fn=0,Qc()),B}function nR(){for(;an!==null;)xy(an)}function rR(a,i){var l=wn;wn|=2;var f=Sy(),h=Cy();Pn!==a||fn!==i?(Mu=null,Ru=xe()+500,il(a,i)):nl=Se(a,i);e:do try{if(En!==0&&an!==null){i=an;var S=Wr;t:switch(En){case 1:En=0,Wr=null,ll(a,i,S,1);break;case 2:case 9:if(P0(S)){En=0,Wr=null,wy(i);break}i=function(){En!==2&&En!==9||Pn!==a||(En=7),Pa(a)},S.then(i,i);break e;case 3:En=7;break e;case 4:En=5;break e;case 7:P0(S)?(En=0,Wr=null,wy(i)):(En=0,Wr=null,ll(a,i,S,7));break;case 5:var B=null;switch(an.tag){case 26:B=an.memoizedState;case 5:case 27:var K=an;if(!B||aS(B)){En=0,Wr=null;var ae=K.sibling;if(ae!==null)an=ae;else{var be=K.return;be!==null?(an=be,_u(be)):an=null}break t}}En=0,Wr=null,ll(a,i,S,5);break;case 6:En=0,Wr=null,ll(a,i,S,6);break;case 8:am(),Wn=6;break e;default:throw Error(r(462))}}aR();break}catch(_e){yy(a,_e)}while(!0);return Ga=oi=null,R.H=f,R.A=h,wn=l,an!==null?0:(Pn=null,fn=0,Qc(),Wn)}function aR(){for(;an!==null&&!ue();)xy(an)}function xy(a){var i=Kb(a.alternate,a,to);a.memoizedProps=a.pendingProps,i===null?_u(a):an=i}function wy(a){var i=a,l=i.alternate;switch(i.tag){case 15:case 0:i=kb(l,i,i.pendingProps,i.type,void 0,fn);break;case 11:i=kb(l,i,i.pendingProps,i.type.render,i.ref,fn);break;case 5:Cv(i);default:Qb(l,i),i=an=E0(i,to),i=Kb(l,i,to)}a.memoizedProps=a.pendingProps,i===null?_u(a):an=i}function ll(a,i,l,f){Ga=oi=null,Cv(i),Zi=null,ms=0;var h=i.return;try{if(GO(a,h,i,l,fn)){Wn=1,Cu(a,ea(l,a.current)),an=null;return}}catch(S){if(h!==null)throw an=h,S;Wn=1,Cu(a,ea(l,a.current)),an=null;return}i.flags&32768?(mn||f===1?a=!0:nl||(fn&536870912)!==0?a=!1:($o=a=!0,(f===2||f===9||f===3||f===6)&&(f=aa.current,f!==null&&f.tag===13&&(f.flags|=16384))),Ey(i,a)):_u(i)}function _u(a){var i=a;do{if((i.flags&32768)!==0){Ey(i,$o);return}a=i.return;var l=KO(i.alternate,i,to);if(l!==null){an=l;return}if(i=i.sibling,i!==null){an=i;return}an=i=a}while(i!==null);Wn===0&&(Wn=5)}function Ey(a,i){do{var l=XO(a.alternate,a);if(l!==null){l.flags&=32767,an=l;return}if(l=a.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(a=a.sibling,a!==null)){an=a;return}an=a=l}while(a!==null);Wn=6,an=null}function $y(a,i,l,f,h,S,B,K,ae){a.cancelPendingCommit=null;do Nu();while(br!==0);if((wn&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(S=i.lanes|i.childLanes,S|=Xd,zt(a,l,S,B,K,ae),a===Pn&&(an=Pn=null,fn=0),al=i,Mo=a,ol=l,tm=S,nm=h,gy=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,sR(Re,function(){return _y(),null})):(a.callbackNode=null,a.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=R.T,R.T=null,h=N.p,N.p=2,B=wn,wn|=4;try{QO(a,i,l)}finally{wn=B,N.p=h,R.T=f}}br=1,Oy(),Ry(),My()}}function Oy(){if(br===1){br=0;var a=Mo,i=al,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var f=N.p;N.p=2;var h=wn;wn|=4;try{sy(i,a);var S=bm,B=m0(a.containerInfo),K=S.focusedElem,ae=S.selectionRange;if(B!==K&&K&&K.ownerDocument&&v0(K.ownerDocument.documentElement,K)){if(ae!==null&&qd(K)){var be=ae.start,_e=ae.end;if(_e===void 0&&(_e=be),"selectionStart"in K)K.selectionStart=be,K.selectionEnd=Math.min(_e,K.value.length);else{var ze=K.ownerDocument||document,Ce=ze&&ze.defaultView||window;if(Ce.getSelection){var we=Ce.getSelection(),Pt=K.textContent.length,Mt=Math.min(ae.start,Pt),Nn=ae.end===void 0?Mt:Math.min(ae.end,Pt);!we.extend&&Mt>Nn&&(B=Nn,Nn=Mt,Mt=B);var ve=d0(K,Mt),se=d0(K,Nn);if(ve&&se&&(we.rangeCount!==1||we.anchorNode!==ve.node||we.anchorOffset!==ve.offset||we.focusNode!==se.node||we.focusOffset!==se.offset)){var he=ze.createRange();he.setStart(ve.node,ve.offset),we.removeAllRanges(),Mt>Nn?(we.addRange(he),we.extend(se.node,se.offset)):(he.setEnd(se.node,se.offset),we.addRange(he))}}}}for(ze=[],we=K;we=we.parentNode;)we.nodeType===1&&ze.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K<ze.length;K++){var Pe=ze[K];Pe.element.scrollLeft=Pe.left,Pe.element.scrollTop=Pe.top}}ku=!!pm,bm=pm=null}finally{wn=h,N.p=f,R.T=l}}a.current=i,br=2}}function Ry(){if(br===2){br=0;var a=Mo,i=al,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var f=N.p;N.p=2;var h=wn;wn|=4;try{ay(a,i.alternate,i)}finally{wn=h,N.p=f,R.T=l}}br=3}}function My(){if(br===4||br===3){br=0,fe();var a=Mo,i=al,l=ol,f=gy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?br=5:(br=0,al=Mo=null,Ty(a,a.pendingLanes));var h=a.pendingLanes;if(h===0&&(Ro=null),at(l),i=i.stateNode,Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(Te,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=R.T,h=N.p,N.p=2,R.T=null;try{for(var S=a.onRecoverableError,B=0;B<f.length;B++){var K=f[B];S(K.value,{componentStack:K.stack})}}finally{R.T=i,N.p=h}}(ol&3)!==0&&Nu(),Pa(a),h=a.pendingLanes,(l&4194090)!==0&&(h&42)!==0?a===rm?ws++:(ws=0,rm=a):ws=0,Es(0)}}function Ty(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,rs(i)))}function Nu(a){return Oy(),Ry(),My(),_y()}function _y(){if(br!==5)return!1;var a=Mo,i=tm;tm=0;var l=at(ol),f=R.T,h=N.p;try{N.p=32>l?32:l,R.T=null,l=nm,nm=null;var S=Mo,B=ol;if(br=0,al=Mo=null,ol=0,(wn&6)!==0)throw Error(r(331));var K=wn;if(wn|=4,vy(S.current),uy(S,S.current,B,l),wn=K,Es(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(Te,S)}catch{}return!0}finally{N.p=h,R.T=f,Ty(a,i)}}function Ny(a,i,l){i=ea(l,i),i=Av(a.stateNode,i,2),a=bo(a,i,2),a!==null&&(Kt(a,2),Pa(a))}function In(a,i,l){if(a.tag===3)Ny(a,a,l);else for(;i!==null;){if(i.tag===3){Ny(i,a,l);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ro===null||!Ro.has(f))){a=ea(l,a),l=Ab(2),f=bo(i,l,2),f!==null&&(zb(l,f,i,a),Kt(f,2),Pa(f));break}}i=i.return}}function lm(a,i,l){var f=a.pingCache;if(f===null){f=a.pingCache=new eR;var h=new Set;f.set(i,h)}else h=f.get(i),h===void 0&&(h=new Set,f.set(i,h));h.has(l)||(Qv=!0,h.add(l),a=oR.bind(null,a,i,l),i.then(a,a))}function oR(a,i,l){var f=a.pingCache;f!==null&&f.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,Pn===a&&(fn&l)===l&&(Wn===4||Wn===3&&(fn&62914560)===fn&&300>xe()-em?(wn&2)===0&&il(a,0):Zv|=l,rl===fn&&(rl=0)),Pa(a)}function Dy(a,i){i===0&&(i=Ot()),a=Vi(a,i),a!==null&&(Kt(a,i),Pa(a))}function iR(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),Dy(a,l)}function lR(a,i){var l=0;switch(a.tag){case 13:var f=a.stateNode,h=a.memoizedState;h!==null&&(l=h.retryLane);break;case 19:f=a.stateNode;break;case 22:f=a.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(i),Dy(a,l)}function sR(a,i){return ce(a,i)}var Du=null,sl=null,sm=!1,Iu=!1,cm=!1,di=0;function Pa(a){a!==sl&&a.next===null&&(sl===null?Du=sl=a:sl=sl.next=a),Iu=!0,sm||(sm=!0,uR())}function Es(a,i){if(!cm&&Iu){cm=!0;do for(var l=!1,f=Du;f!==null;){if(a!==0){var h=f.pendingLanes;if(h===0)var S=0;else{var B=f.suspendedLanes,K=f.pingedLanes;S=(1<<31-He(42|a)+1)-1,S&=h&~(B&~K),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(l=!0,zy(f,S))}else S=fn,S=$e(f,f===Pn?S:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(S&3)===0||Se(f,S)||(l=!0,zy(f,S));f=f.next}while(l);cm=!1}}function cR(){Iy()}function Iy(){Iu=sm=!1;var a=0;di!==0&&(bR()&&(a=di),di=0);for(var i=xe(),l=null,f=Du;f!==null;){var h=f.next,S=Py(f,i);S===0?(f.next=null,l===null?Du=h:l.next=h,h===null&&(sl=l)):(l=f,(a!==0||(S&3)!==0)&&(Iu=!0)),f=h}Es(a)}function Py(a,i){for(var l=a.suspendedLanes,f=a.pingedLanes,h=a.expirationTimes,S=a.pendingLanes&-62914561;0<S;){var B=31-He(S),K=1<<B,ae=h[B];ae===-1?((K&l)===0||(K&f)!==0)&&(h[B]=Be(K,i)):ae<=i&&(a.expiredLanes|=K),S&=~K}if(i=Pn,l=fn,l=$e(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f=a.callbackNode,l===0||a===i&&(En===2||En===9)||a.cancelPendingCommit!==null)return f!==null&&f!==null&&de(f),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||Se(a,l)){if(i=l&-l,i===a.callbackPriority)return i;switch(f!==null&&de(f),at(l)){case 2:case 8:l=De;break;case 32:l=Re;break;case 268435456:l=Ee;break;default:l=Re}return f=Ay.bind(null,a),l=ce(l,f),a.callbackPriority=i,a.callbackNode=l,i}return f!==null&&f!==null&&de(f),a.callbackPriority=2,a.callbackNode=null,2}function Ay(a,i){if(br!==0&&br!==5)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(Nu()&&a.callbackNode!==l)return null;var f=fn;return f=$e(a,a===Pn?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f===0?null:(py(a,f,i),Py(a,xe()),a.callbackNode!=null&&a.callbackNode===l?Ay.bind(null,a):null)}function zy(a,i){if(Nu())return null;py(a,i,!0)}function uR(){SR(function(){(wn&6)!==0?ce(Ne,cR):Iy()})}function um(){return di===0&&(di=mt()),di}function jy(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Hn(""+a)}function Hy(a,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,a.id&&l.setAttribute("form",a.id),i.parentNode.insertBefore(l,i),a=new FormData(a),l.parentNode.removeChild(l),a}function fR(a,i,l,f,h){if(i==="submit"&&l&&l.stateNode===h){var S=jy((h[We]||null).action),B=f.submitter;B&&(i=(i=B[We]||null)?jy(i.formAction):B.getAttribute("formAction"),i!==null&&(S=i,B=null));var K=new Yc("action","action",null,f,h);a.push({event:K,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(di!==0){var ae=B?Hy(h,B):new FormData(h);_v(l,{pending:!0,data:ae,method:h.method,action:S},null,ae)}}else typeof S=="function"&&(K.preventDefault(),ae=B?Hy(h,B):new FormData(h),_v(l,{pending:!0,data:ae,method:h.method,action:S},S,ae))},currentTarget:h}]})}}for(var fm=0;fm<Kd.length;fm++){var dm=Kd[fm],dR=dm.toLowerCase(),vR=dm[0].toUpperCase()+dm.slice(1);ha(dR,"on"+vR)}ha(p0,"onAnimationEnd"),ha(b0,"onAnimationIteration"),ha(y0,"onAnimationStart"),ha("dblclick","onDoubleClick"),ha("focusin","onFocus"),ha("focusout","onBlur"),ha(_O,"onTransitionRun"),ha(NO,"onTransitionStart"),ha(DO,"onTransitionCancel"),ha(S0,"onTransitionEnd"),Ue("onMouseEnter",["mouseout","mouseover"]),Ue("onMouseLeave",["mouseout","mouseover"]),Ue("onPointerEnter",["pointerout","pointerover"]),Ue("onPointerLeave",["pointerout","pointerover"]),rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $s="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($s));function Ly(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var f=a[l],h=f.event;f=f.listeners;e:{var S=void 0;if(i)for(var B=f.length-1;0<=B;B--){var K=f[B],ae=K.instance,be=K.currentTarget;if(K=K.listener,ae!==S&&h.isPropagationStopped())break e;S=K,h.currentTarget=be;try{S(h)}catch(_e){Su(_e)}h.currentTarget=null,S=ae}else for(B=0;B<f.length;B++){if(K=f[B],ae=K.instance,be=K.currentTarget,K=K.listener,ae!==S&&h.isPropagationStopped())break e;S=K,h.currentTarget=be;try{S(h)}catch(_e){Su(_e)}h.currentTarget=null,S=ae}}}}function on(a,i){var l=i[it];l===void 0&&(l=i[it]=new Set);var f=a+"__bubble";l.has(f)||(By(i,a,2,!1),l.add(f))}function vm(a,i,l){var f=0;i&&(f|=4),By(l,a,f,i)}var Pu="_reactListening"+Math.random().toString(36).slice(2);function mm(a){if(!a[Pu]){a[Pu]=!0,$n.forEach(function(l){l!=="selectionchange"&&(mR.has(l)||vm(l,!1,a),vm(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Pu]||(i[Pu]=!0,vm("selectionchange",!1,i))}}function By(a,i,l,f){switch(uS(i)){case 2:var h=FR;break;case 8:h=VR;break;default:h=Mm}l=h.bind(null,i,l,a),h=void 0,!$t||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),f?h!==void 0?a.addEventListener(i,l,{capture:!0,passive:h}):a.addEventListener(i,l,!0):h!==void 0?a.addEventListener(i,l,{passive:h}):a.addEventListener(i,l,!1)}function gm(a,i,l,f,h){var S=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var B=f.tag;if(B===3||B===4){var K=f.stateNode.containerInfo;if(K===h)break;if(B===4)for(B=f.return;B!==null;){var ae=B.tag;if((ae===3||ae===4)&&B.stateNode.containerInfo===h)return;B=B.return}for(;K!==null;){if(B=Lt(K),B===null)return;if(ae=B.tag,ae===5||ae===6||ae===26||ae===27){f=S=B;continue e}K=K.parentNode}}f=f.return}Ko(function(){var be=S,_e=Ta(l),ze=[];e:{var Ce=C0.get(a);if(Ce!==void 0){var we=Yc,Pt=a;switch(a){case"keypress":if(Xo(l)===0)break e;case"keydown":case"keyup":we=sO;break;case"focusin":Pt="focus",we=Bd;break;case"focusout":Pt="blur",we=Bd;break;case"beforeblur":case"afterblur":we=Bd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=Xp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=fO;break;case p0:case b0:case y0:we=J2;break;case S0:we=vO;break;case"scroll":case"scrollend":we=Y2;break;case"wheel":we=gO;break;case"copy":case"cut":case"paste":we=tO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=Zp;break;case"toggle":case"beforetoggle":we=pO}var Mt=(i&4)!==0,Nn=!Mt&&(a==="scroll"||a==="scrollend"),ve=Mt?Ce!==null?Ce+"Capture":null:Ce;Mt=[];for(var se=be,he;se!==null;){var Pe=se;if(he=Pe.stateNode,Pe=Pe.tag,Pe!==5&&Pe!==26&&Pe!==27||he===null||ve===null||(Pe=Fa(se,ve),Pe!=null&&Mt.push(Os(se,Pe,he))),Nn)break;se=se.return}0<Mt.length&&(Ce=new we(Ce,Pt,null,l,_e),ze.push({event:Ce,listeners:Mt}))}}if((i&7)===0){e:{if(Ce=a==="mouseover"||a==="pointerover",we=a==="mouseout"||a==="pointerout",Ce&&l!==Gn&&(Pt=l.relatedTarget||l.fromElement)&&(Lt(Pt)||Pt[Ke]))break e;if((we||Ce)&&(Ce=_e.window===_e?_e:(Ce=_e.ownerDocument)?Ce.defaultView||Ce.parentWindow:window,we?(Pt=l.relatedTarget||l.toElement,we=be,Pt=Pt?Lt(Pt):null,Pt!==null&&(Nn=s(Pt),Mt=Pt.tag,Pt!==Nn||Mt!==5&&Mt!==27&&Mt!==6)&&(Pt=null)):(we=null,Pt=be),we!==Pt)){if(Mt=Xp,Pe="onMouseLeave",ve="onMouseEnter",se="mouse",(a==="pointerout"||a==="pointerover")&&(Mt=Zp,Pe="onPointerLeave",ve="onPointerEnter",se="pointer"),Nn=we==null?Ce:Ft(we),he=Pt==null?Ce:Ft(Pt),Ce=new Mt(Pe,se+"leave",we,l,_e),Ce.target=Nn,Ce.relatedTarget=he,Pe=null,Lt(_e)===be&&(Mt=new Mt(ve,se+"enter",Pt,l,_e),Mt.target=he,Mt.relatedTarget=Nn,Pe=Mt),Nn=Pe,we&&Pt)t:{for(Mt=we,ve=Pt,se=0,he=Mt;he;he=cl(he))se++;for(he=0,Pe=ve;Pe;Pe=cl(Pe))he++;for(;0<se-he;)Mt=cl(Mt),se--;for(;0<he-se;)ve=cl(ve),he--;for(;se--;){if(Mt===ve||ve!==null&&Mt===ve.alternate)break t;Mt=cl(Mt),ve=cl(ve)}Mt=null}else Mt=null;we!==null&&Fy(ze,Ce,we,Mt,!1),Pt!==null&&Nn!==null&&Fy(ze,Nn,Pt,Mt,!0)}}e:{if(Ce=be?Ft(be):window,we=Ce.nodeName&&Ce.nodeName.toLowerCase(),we==="select"||we==="input"&&Ce.type==="file")var St=i0;else if(a0(Ce))if(l0)St=RO;else{St=$O;var en=EO}else we=Ce.nodeName,!we||we.toLowerCase()!=="input"||Ce.type!=="checkbox"&&Ce.type!=="radio"?be&&pt(be.elementType)&&(St=i0):St=OO;if(St&&(St=St(a,be))){o0(ze,St,l,_e);break e}en&&en(a,Ce,be),a==="focusout"&&be&&Ce.type==="number"&&be.memoizedProps.value!=null&&rt(Ce,"number",Ce.value)}switch(en=be?Ft(be):window,a){case"focusin":(a0(en)||en.contentEditable==="true")&&(Li=en,Wd=be,Zl=null);break;case"focusout":Zl=Wd=Li=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,g0(ze,l,_e);break;case"selectionchange":if(TO)break;case"keydown":case"keyup":g0(ze,l,_e)}var xt;if(Vd)e:{switch(a){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else Hi?n0(a,l)&&(Nt="onCompositionEnd"):a==="keydown"&&l.keyCode===229&&(Nt="onCompositionStart");Nt&&(Jp&&l.locale!=="ko"&&(Hi||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&Hi&&(xt=ji()):(bn=_e,Mn="value"in bn?bn.value:bn.textContent,Hi=!0)),en=Au(be,Nt),0<en.length&&(Nt=new Qp(Nt,a,null,l,_e),ze.push({event:Nt,listeners:en}),xt?Nt.data=xt:(xt=r0(l),xt!==null&&(Nt.data=xt)))),(xt=yO?SO(a,l):CO(a,l))&&(Nt=Au(be,"onBeforeInput"),0<Nt.length&&(en=new Qp("onBeforeInput","beforeinput",null,l,_e),ze.push({event:en,listeners:Nt}),en.data=xt)),fR(ze,a,be,l,_e)}Ly(ze,i)})}function Os(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Au(a,i){for(var l=i+"Capture",f=[];a!==null;){var h=a,S=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||S===null||(h=Fa(a,l),h!=null&&f.unshift(Os(a,h,S)),h=Fa(a,i),h!=null&&f.push(Os(a,h,S))),a.tag===3)return f;a=a.return}return[]}function cl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Fy(a,i,l,f,h){for(var S=i._reactName,B=[];l!==null&&l!==f;){var K=l,ae=K.alternate,be=K.stateNode;if(K=K.tag,ae!==null&&ae===f)break;K!==5&&K!==26&&K!==27||be===null||(ae=be,h?(be=Fa(l,S),be!=null&&B.unshift(Os(l,be,ae))):h||(be=Fa(l,S),be!=null&&B.push(Os(l,be,ae)))),l=l.return}B.length!==0&&a.push({event:i,listeners:B})}var gR=/\r\n?/g,hR=/\u0000|\uFFFD/g;function Vy(a){return(typeof a=="string"?a:""+a).replace(gR,`
`).replace(hR,"")}function ky(a,i){return i=Vy(i),Vy(a)===i}function zu(){}function _n(a,i,l,f,h,S){switch(l){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||Ln(a,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&Ln(a,""+f);break;case"className":Xt(a,"class",f);break;case"tabIndex":Xt(a,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Xt(a,l,f);break;case"style":_t(a,f,S);break;case"data":if(i!=="object"){Xt(a,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||l!=="href")){a.removeAttribute(l);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(l);break}f=Hn(""+f),a.setAttribute(l,f);break;case"action":case"formAction":if(typeof f=="function"){a.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(l==="formAction"?(i!=="input"&&_n(a,i,"name",h.name,h,null),_n(a,i,"formEncType",h.formEncType,h,null),_n(a,i,"formMethod",h.formMethod,h,null),_n(a,i,"formTarget",h.formTarget,h,null)):(_n(a,i,"encType",h.encType,h,null),_n(a,i,"method",h.method,h,null),_n(a,i,"target",h.target,h,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(l);break}f=Hn(""+f),a.setAttribute(l,f);break;case"onClick":f!=null&&(a.onclick=zu);break;case"onScroll":f!=null&&on("scroll",a);break;case"onScrollEnd":f!=null&&on("scrollend",a);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(l=f.__html,l!=null){if(h.children!=null)throw Error(r(60));a.innerHTML=l}}break;case"multiple":a.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":a.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){a.removeAttribute("xlink:href");break}l=Hn(""+f),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(l,""+f):a.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(l,""):a.removeAttribute(l);break;case"capture":case"download":f===!0?a.setAttribute(l,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(l,f):a.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?a.setAttribute(l,f):a.removeAttribute(l);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?a.removeAttribute(l):a.setAttribute(l,f);break;case"popover":on("beforetoggle",a),on("toggle",a),It(a,"popover",f);break;case"xlinkActuate":Jt(a,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Jt(a,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Jt(a,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Jt(a,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Jt(a,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Jt(a,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Jt(a,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Jt(a,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Jt(a,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":It(a,"is",f);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Bt.get(l)||l,It(a,l,f))}}function hm(a,i,l,f,h,S){switch(l){case"style":_t(a,f,S);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(l=f.__html,l!=null){if(h.children!=null)throw Error(r(60));a.innerHTML=l}}break;case"children":typeof f=="string"?Ln(a,f):(typeof f=="number"||typeof f=="bigint")&&Ln(a,""+f);break;case"onScroll":f!=null&&on("scroll",a);break;case"onScrollEnd":f!=null&&on("scrollend",a);break;case"onClick":f!=null&&(a.onclick=zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ln.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),S=a[We]||null,S=S!=null?S[l]:null,typeof S=="function"&&a.removeEventListener(i,S,h),typeof f=="function")){typeof S!="function"&&S!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,f,h);break e}l in a?a[l]=f:f===!0?a.setAttribute(l,""):It(a,l,f)}}}function yr(a,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":on("error",a),on("load",a);var f=!1,h=!1,S;for(S in l)if(l.hasOwnProperty(S)){var B=l[S];if(B!=null)switch(S){case"src":f=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:_n(a,i,S,B,l,null)}}h&&_n(a,i,"srcSet",l.srcSet,l,null),f&&_n(a,i,"src",l.src,l,null);return;case"input":on("invalid",a);var K=S=B=h=null,ae=null,be=null;for(f in l)if(l.hasOwnProperty(f)){var _e=l[f];if(_e!=null)switch(f){case"name":h=_e;break;case"type":B=_e;break;case"checked":ae=_e;break;case"defaultChecked":be=_e;break;case"value":S=_e;break;case"defaultValue":K=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,i));break;default:_n(a,i,f,_e,l,null)}}ot(a,S,K,ae,be,B,h,!1),Fn(a);return;case"select":on("invalid",a),f=B=S=null;for(h in l)if(l.hasOwnProperty(h)&&(K=l[h],K!=null))switch(h){case"value":S=K;break;case"defaultValue":B=K;break;case"multiple":f=K;default:_n(a,i,h,K,l,null)}i=S,l=B,a.multiple=!!f,i!=null?At(a,!!f,i,!1):l!=null&&At(a,!!f,l,!0);return;case"textarea":on("invalid",a),S=h=f=null;for(B in l)if(l.hasOwnProperty(B)&&(K=l[B],K!=null))switch(B){case"value":f=K;break;case"defaultValue":h=K;break;case"children":S=K;break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(91));break;default:_n(a,i,B,K,l,null)}jn(a,f,h,S),Fn(a);return;case"option":for(ae in l)if(l.hasOwnProperty(ae)&&(f=l[ae],f!=null))switch(ae){case"selected":a.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:_n(a,i,ae,f,l,null)}return;case"dialog":on("beforetoggle",a),on("toggle",a),on("cancel",a),on("close",a);break;case"iframe":case"object":on("load",a);break;case"video":case"audio":for(f=0;f<$s.length;f++)on($s[f],a);break;case"image":on("error",a),on("load",a);break;case"details":on("toggle",a);break;case"embed":case"source":case"link":on("error",a),on("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(be in l)if(l.hasOwnProperty(be)&&(f=l[be],f!=null))switch(be){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:_n(a,i,be,f,l,null)}return;default:if(pt(i)){for(_e in l)l.hasOwnProperty(_e)&&(f=l[_e],f!==void 0&&hm(a,i,_e,f,l,void 0));return}}for(K in l)l.hasOwnProperty(K)&&(f=l[K],f!=null&&_n(a,i,K,f,l,null))}function pR(a,i,l,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,S=null,B=null,K=null,ae=null,be=null,_e=null;for(we in l){var ze=l[we];if(l.hasOwnProperty(we)&&ze!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":ae=ze;default:f.hasOwnProperty(we)||_n(a,i,we,null,f,ze)}}for(var Ce in f){var we=f[Ce];if(ze=l[Ce],f.hasOwnProperty(Ce)&&(we!=null||ze!=null))switch(Ce){case"type":S=we;break;case"name":h=we;break;case"checked":be=we;break;case"defaultChecked":_e=we;break;case"value":B=we;break;case"defaultValue":K=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,i));break;default:we!==ze&&_n(a,i,Ce,we,f,ze)}}Yt(a,B,K,ae,be,_e,S,h);return;case"select":we=B=K=Ce=null;for(S in l)if(ae=l[S],l.hasOwnProperty(S)&&ae!=null)switch(S){case"value":break;case"multiple":we=ae;default:f.hasOwnProperty(S)||_n(a,i,S,null,f,ae)}for(h in f)if(S=f[h],ae=l[h],f.hasOwnProperty(h)&&(S!=null||ae!=null))switch(h){case"value":Ce=S;break;case"defaultValue":K=S;break;case"multiple":B=S;default:S!==ae&&_n(a,i,h,S,f,ae)}i=K,l=B,f=we,Ce!=null?At(a,!!l,Ce,!1):!!f!=!!l&&(i!=null?At(a,!!l,i,!0):At(a,!!l,l?[]:"",!1));return;case"textarea":we=Ce=null;for(K in l)if(h=l[K],l.hasOwnProperty(K)&&h!=null&&!f.hasOwnProperty(K))switch(K){case"value":break;case"children":break;default:_n(a,i,K,null,f,h)}for(B in f)if(h=f[B],S=l[B],f.hasOwnProperty(B)&&(h!=null||S!=null))switch(B){case"value":Ce=h;break;case"defaultValue":we=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:h!==S&&_n(a,i,B,h,f,S)}xn(a,Ce,we);return;case"option":for(var Pt in l)if(Ce=l[Pt],l.hasOwnProperty(Pt)&&Ce!=null&&!f.hasOwnProperty(Pt))switch(Pt){case"selected":a.selected=!1;break;default:_n(a,i,Pt,null,f,Ce)}for(ae in f)if(Ce=f[ae],we=l[ae],f.hasOwnProperty(ae)&&Ce!==we&&(Ce!=null||we!=null))switch(ae){case"selected":a.selected=Ce&&typeof Ce!="function"&&typeof Ce!="symbol";break;default:_n(a,i,ae,Ce,f,we)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Mt in l)Ce=l[Mt],l.hasOwnProperty(Mt)&&Ce!=null&&!f.hasOwnProperty(Mt)&&_n(a,i,Mt,null,f,Ce);for(be in f)if(Ce=f[be],we=l[be],f.hasOwnProperty(be)&&Ce!==we&&(Ce!=null||we!=null))switch(be){case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,i));break;default:_n(a,i,be,Ce,f,we)}return;default:if(pt(i)){for(var Nn in l)Ce=l[Nn],l.hasOwnProperty(Nn)&&Ce!==void 0&&!f.hasOwnProperty(Nn)&&hm(a,i,Nn,void 0,f,Ce);for(_e in f)Ce=f[_e],we=l[_e],!f.hasOwnProperty(_e)||Ce===we||Ce===void 0&&we===void 0||hm(a,i,_e,Ce,f,we);return}}for(var ve in l)Ce=l[ve],l.hasOwnProperty(ve)&&Ce!=null&&!f.hasOwnProperty(ve)&&_n(a,i,ve,null,f,Ce);for(ze in f)Ce=f[ze],we=l[ze],!f.hasOwnProperty(ze)||Ce===we||Ce==null&&we==null||_n(a,i,ze,Ce,f,we)}var pm=null,bm=null;function ju(a){return a.nodeType===9?a:a.ownerDocument}function Uy(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qy(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function ym(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Sm=null;function bR(){var a=window.event;return a&&a.type==="popstate"?a===Sm?!1:(Sm=a,!0):(Sm=null,!1)}var Wy=typeof setTimeout=="function"?setTimeout:void 0,yR=typeof clearTimeout=="function"?clearTimeout:void 0,Gy=typeof Promise=="function"?Promise:void 0,SR=typeof queueMicrotask=="function"?queueMicrotask:typeof Gy<"u"?function(a){return Gy.resolve(null).then(a).catch(CR)}:Wy;function CR(a){setTimeout(function(){throw a})}function _o(a){return a==="head"}function Yy(a,i){var l=i,f=0,h=0;do{var S=l.nextSibling;if(a.removeChild(l),S&&S.nodeType===8)if(l=S.data,l==="/$"){if(0<f&&8>f){l=f;var B=a.ownerDocument;if(l&1&&Rs(B.documentElement),l&2&&Rs(B.body),l&4)for(l=B.head,Rs(l),B=l.firstChild;B;){var K=B.nextSibling,ae=B.nodeName;B[Vt]||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&B.rel.toLowerCase()==="stylesheet"||l.removeChild(B),B=K}}if(h===0){a.removeChild(S),As(i);return}h--}else l==="$"||l==="$?"||l==="$!"?h++:f=l.charCodeAt(0)-48;else f=0;l=S}while(l);As(i)}function Cm(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Cm(l),jt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function xR(a,i,l,f){for(;a.nodeType===1;){var h=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(f){if(!a[Vt])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(S=a.getAttribute("rel"),S==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(S!==h.rel||a.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||a.getAttribute("title")!==(h.title==null?null:h.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(S=a.getAttribute("src"),(S!==(h.src==null?null:h.src)||a.getAttribute("type")!==(h.type==null?null:h.type)||a.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&S&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var S=h.name==null?null:""+h.name;if(h.type==="hidden"&&a.getAttribute("name")===S)return a}else return a;if(a=ba(a.nextSibling),a===null)break}return null}function wR(a,i,l){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=ba(a.nextSibling),a===null))return null;return a}function xm(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function ER(a,i){var l=a.ownerDocument;if(a.data!=="$?"||l.readyState==="complete")i();else{var f=function(){i(),l.removeEventListener("DOMContentLoaded",f)};l.addEventListener("DOMContentLoaded",f),a._reactRetry=f}}function ba(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return a}var wm=null;function Ky(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return a;i--}else l==="/$"&&i++}a=a.previousSibling}return null}function Xy(a,i,l){switch(i=ju(l),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Rs(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);jt(a)}var ia=new Map,Qy=new Set;function Hu(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var no=N.d;N.d={f:$R,r:OR,D:RR,C:MR,L:TR,m:_R,X:DR,S:NR,M:IR};function $R(){var a=no.f(),i=Tu();return a||i}function OR(a){var i=Ht(a);i!==null&&i.tag===5&&i.type==="form"?pb(i):no.r(a)}var ul=typeof document>"u"?null:document;function Zy(a,i,l){var f=ul;if(f&&typeof i=="string"&&i){var h=Je(i);h='link[rel="'+a+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),Qy.has(h)||(Qy.add(h),a={rel:a,crossOrigin:l,href:i},f.querySelector(h)===null&&(i=f.createElement("link"),yr(i,"link",a),wt(i),f.head.appendChild(i)))}}function RR(a){no.D(a),Zy("dns-prefetch",a,null)}function MR(a,i){no.C(a,i),Zy("preconnect",a,i)}function TR(a,i,l){no.L(a,i,l);var f=ul;if(f&&a&&i){var h='link[rel="preload"][as="'+Je(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+Je(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+Je(l.imageSizes)+'"]')):h+='[href="'+Je(a)+'"]';var S=h;switch(i){case"style":S=fl(a);break;case"script":S=dl(a)}ia.has(S)||(a=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:a,as:i},l),ia.set(S,a),f.querySelector(h)!==null||i==="style"&&f.querySelector(Ms(S))||i==="script"&&f.querySelector(Ts(S))||(i=f.createElement("link"),yr(i,"link",a),wt(i),f.head.appendChild(i)))}}function _R(a,i){no.m(a,i);var l=ul;if(l&&a){var f=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+Je(f)+'"][href="'+Je(a)+'"]',S=h;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=dl(a)}if(!ia.has(S)&&(a=g({rel:"modulepreload",href:a},i),ia.set(S,a),l.querySelector(h)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ts(S)))return}f=l.createElement("link"),yr(f,"link",a),wt(f),l.head.appendChild(f)}}}function NR(a,i,l){no.S(a,i,l);var f=ul;if(f&&a){var h=nn(f).hoistableStyles,S=fl(a);i=i||"default";var B=h.get(S);if(!B){var K={loading:0,preload:null};if(B=f.querySelector(Ms(S)))K.loading=5;else{a=g({rel:"stylesheet",href:a,"data-precedence":i},l),(l=ia.get(S))&&Em(a,l);var ae=B=f.createElement("link");wt(ae),yr(ae,"link",a),ae._p=new Promise(function(be,_e){ae.onload=be,ae.onerror=_e}),ae.addEventListener("load",function(){K.loading|=1}),ae.addEventListener("error",function(){K.loading|=2}),K.loading|=4,Lu(B,i,f)}B={type:"stylesheet",instance:B,count:1,state:K},h.set(S,B)}}}function DR(a,i){no.X(a,i);var l=ul;if(l&&a){var f=nn(l).hoistableScripts,h=dl(a),S=f.get(h);S||(S=l.querySelector(Ts(h)),S||(a=g({src:a,async:!0},i),(i=ia.get(h))&&$m(a,i),S=l.createElement("script"),wt(S),yr(S,"link",a),l.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},f.set(h,S))}}function IR(a,i){no.M(a,i);var l=ul;if(l&&a){var f=nn(l).hoistableScripts,h=dl(a),S=f.get(h);S||(S=l.querySelector(Ts(h)),S||(a=g({src:a,async:!0,type:"module"},i),(i=ia.get(h))&&$m(a,i),S=l.createElement("script"),wt(S),yr(S,"link",a),l.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},f.set(h,S))}}function Jy(a,i,l,f){var h=(h=Z.current)?Hu(h):null;if(!h)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=fl(l.href),l=nn(h).hoistableStyles,f=l.get(i),f||(f={type:"style",instance:null,count:0,state:null},l.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){a=fl(l.href);var S=nn(h).hoistableStyles,B=S.get(a);if(B||(h=h.ownerDocument||h,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(a,B),(S=h.querySelector(Ms(a)))&&!S._p&&(B.instance=S,B.state.loading=5),ia.has(a)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ia.set(a,l),S||PR(h,a,l,B.state))),i&&f===null)throw Error(r(528,""));return B}if(i&&f!==null)throw Error(r(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=dl(l),l=nn(h).hoistableScripts,f=l.get(i),f||(f={type:"script",instance:null,count:0,state:null},l.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function fl(a){return'href="'+Je(a)+'"'}function Ms(a){return'link[rel="stylesheet"]['+a+"]"}function eS(a){return g({},a,{"data-precedence":a.precedence,precedence:null})}function PR(a,i,l,f){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=a.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),yr(i,"link",l),wt(i),a.head.appendChild(i))}function dl(a){return'[src="'+Je(a)+'"]'}function Ts(a){return"script[async]"+a}function tS(a,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var f=a.querySelector('style[data-href~="'+Je(l.href)+'"]');if(f)return i.instance=f,wt(f),f;var h=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return f=(a.ownerDocument||a).createElement("style"),wt(f),yr(f,"style",h),Lu(f,l.precedence,a),i.instance=f;case"stylesheet":h=fl(l.href);var S=a.querySelector(Ms(h));if(S)return i.state.loading|=4,i.instance=S,wt(S),S;f=eS(l),(h=ia.get(h))&&Em(f,h),S=(a.ownerDocument||a).createElement("link"),wt(S);var B=S;return B._p=new Promise(function(K,ae){B.onload=K,B.onerror=ae}),yr(S,"link",f),i.state.loading|=4,Lu(S,l.precedence,a),i.instance=S;case"script":return S=dl(l.src),(h=a.querySelector(Ts(S)))?(i.instance=h,wt(h),h):(f=l,(h=ia.get(S))&&(f=g({},l),$m(f,h)),a=a.ownerDocument||a,h=a.createElement("script"),wt(h),yr(h,"link",f),a.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,Lu(f,l.precedence,a));return i.instance}function Lu(a,i,l){for(var f=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=f.length?f[f.length-1]:null,S=h,B=0;B<f.length;B++){var K=f[B];if(K.dataset.precedence===i)S=K;else if(S!==h)break}S?S.parentNode.insertBefore(a,S.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(a,i.firstChild))}function Em(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function $m(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var Bu=null;function nS(a,i,l){if(Bu===null){var f=new Map,h=Bu=new Map;h.set(l,f)}else h=Bu,f=h.get(l),f||(f=new Map,h.set(l,f));if(f.has(a))return f;for(f.set(a,null),l=l.getElementsByTagName(a),h=0;h<l.length;h++){var S=l[h];if(!(S[Vt]||S[yt]||a==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var B=S.getAttribute(i)||"";B=a+B;var K=f.get(B);K?K.push(S):f.set(B,[S])}}return f}function rS(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function AR(a,i,l){if(l===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function aS(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var _s=null;function zR(){}function jR(a,i,l){if(_s===null)throw Error(r(475));var f=_s;if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=fl(l.href),S=a.querySelector(Ms(h));if(S){a=S._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(f.count++,f=Fu.bind(f),a.then(f,f)),i.state.loading|=4,i.instance=S,wt(S);return}S=a.ownerDocument||a,l=eS(l),(h=ia.get(h))&&Em(l,h),S=S.createElement("link"),wt(S);var B=S;B._p=new Promise(function(K,ae){B.onload=K,B.onerror=ae}),yr(S,"link",l),i.instance=S}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(f.count++,i=Fu.bind(f),a.addEventListener("load",i),a.addEventListener("error",i))}}function HR(){if(_s===null)throw Error(r(475));var a=_s;return a.stylesheets&&a.count===0&&Om(a,a.stylesheets),0<a.count?function(i){var l=setTimeout(function(){if(a.stylesheets&&Om(a,a.stylesheets),a.unsuspend){var f=a.unsuspend;a.unsuspend=null,f()}},6e4);return a.unsuspend=i,function(){a.unsuspend=null,clearTimeout(l)}}:null}function Fu(){if(this.count--,this.count===0){if(this.stylesheets)Om(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Vu=null;function Om(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Vu=new Map,i.forEach(LR,a),Vu=null,Fu.call(a))}function LR(a,i){if(!(i.state.loading&4)){var l=Vu.get(a);if(l)var f=l.get(null);else{l=new Map,Vu.set(a,l);for(var h=a.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<h.length;S++){var B=h[S];(B.nodeName==="LINK"||B.getAttribute("media")!=="not all")&&(l.set(B.dataset.precedence,B),f=B)}f&&l.set(null,f)}h=i.instance,B=h.getAttribute("data-precedence"),S=l.get(B)||f,S===f&&l.set(null,h),l.set(B,h),this.count++,f=Fu.bind(this),h.addEventListener("load",f),h.addEventListener("error",f),S?S.parentNode.insertBefore(h,S.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(h,a.firstChild)),i.state.loading|=4}}var Ns={$$typeof:O,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function BR(a,i,l,f,h,S,B,K){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dt(0),this.hiddenUpdates=Dt(null),this.identifierPrefix=f,this.onUncaughtError=h,this.onCaughtError=S,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function oS(a,i,l,f,h,S,B,K,ae,be,_e,ze){return a=new BR(a,i,l,B,K,ae,be,ze),i=1,S===!0&&(i|=24),S=kr(3,null,null,i),a.current=S,S.stateNode=a,i=lv(),i.refCount++,a.pooledCache=i,i.refCount++,S.memoizedState={element:f,isDehydrated:l,cache:i},fv(S),a}function iS(a){return a?(a=ki,a):ki}function lS(a,i,l,f,h,S){h=iS(h),f.context===null?f.context=h:f.pendingContext=h,f=po(i),f.payload={element:l},S=S===void 0?null:S,S!==null&&(f.callback=S),l=bo(a,f,i),l!==null&&(Yr(l,a,i),ls(l,a,i))}function sS(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function Rm(a,i){sS(a,i),(a=a.alternate)&&sS(a,i)}function cS(a){if(a.tag===13){var i=Vi(a,67108864);i!==null&&Yr(i,a,67108864),Rm(a,67108864)}}var ku=!0;function FR(a,i,l,f){var h=R.T;R.T=null;var S=N.p;try{N.p=2,Mm(a,i,l,f)}finally{N.p=S,R.T=h}}function VR(a,i,l,f){var h=R.T;R.T=null;var S=N.p;try{N.p=8,Mm(a,i,l,f)}finally{N.p=S,R.T=h}}function Mm(a,i,l,f){if(ku){var h=Tm(f);if(h===null)gm(a,i,f,Uu,l),fS(a,f);else if(UR(h,a,i,l,f))f.stopPropagation();else if(fS(a,f),i&4&&-1<kR.indexOf(a)){for(;h!==null;){var S=Ht(h);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var B=Oe(S.pendingLanes);if(B!==0){var K=S;for(K.pendingLanes|=2,K.entangledLanes|=2;B;){var ae=1<<31-He(B);K.entanglements[1]|=ae,B&=~ae}Pa(S),(wn&6)===0&&(Ru=xe()+500,Es(0))}}break;case 13:K=Vi(S,2),K!==null&&Yr(K,S,2),Tu(),Rm(S,2)}if(S=Tm(f),S===null&&gm(a,i,f,Uu,l),S===h)break;h=S}h!==null&&f.stopPropagation()}else gm(a,i,f,null,l)}}function Tm(a){return a=Ta(a),_m(a)}var Uu=null;function _m(a){if(Uu=null,a=Lt(a),a!==null){var i=s(a);if(i===null)a=null;else{var l=i.tag;if(l===13){if(a=u(i),a!==null)return a;a=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Uu=a,null}function uS(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pe()){case Ne:return 2;case De:return 8;case Re:case Le:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var Nm=!1,No=null,Do=null,Io=null,Ds=new Map,Is=new Map,Po=[],kR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fS(a,i){switch(a){case"focusin":case"focusout":No=null;break;case"dragenter":case"dragleave":Do=null;break;case"mouseover":case"mouseout":Io=null;break;case"pointerover":case"pointerout":Ds.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Is.delete(i.pointerId)}}function Ps(a,i,l,f,h,S){return a===null||a.nativeEvent!==S?(a={blockedOn:i,domEventName:l,eventSystemFlags:f,nativeEvent:S,targetContainers:[h]},i!==null&&(i=Ht(i),i!==null&&cS(i)),a):(a.eventSystemFlags|=f,i=a.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),a)}function UR(a,i,l,f,h){switch(i){case"focusin":return No=Ps(No,a,i,l,f,h),!0;case"dragenter":return Do=Ps(Do,a,i,l,f,h),!0;case"mouseover":return Io=Ps(Io,a,i,l,f,h),!0;case"pointerover":var S=h.pointerId;return Ds.set(S,Ps(Ds.get(S)||null,a,i,l,f,h)),!0;case"gotpointercapture":return S=h.pointerId,Is.set(S,Ps(Is.get(S)||null,a,i,l,f,h)),!0}return!1}function dS(a){var i=Lt(a.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=u(l),i!==null){a.blockedOn=i,Qe(a.priority,function(){if(l.tag===13){var f=Gr();f=gt(f);var h=Vi(l,f);h!==null&&Yr(h,l,f),Rm(l,f)}});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){a.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}a.blockedOn=null}function qu(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=Tm(a.nativeEvent);if(l===null){l=a.nativeEvent;var f=new l.constructor(l.type,l);Gn=f,l.target.dispatchEvent(f),Gn=null}else return i=Ht(l),i!==null&&cS(i),a.blockedOn=l,!1;i.shift()}return!0}function vS(a,i,l){qu(a)&&l.delete(i)}function qR(){Nm=!1,No!==null&&qu(No)&&(No=null),Do!==null&&qu(Do)&&(Do=null),Io!==null&&qu(Io)&&(Io=null),Ds.forEach(vS),Is.forEach(vS)}function Wu(a,i){a.blockedOn===i&&(a.blockedOn=null,Nm||(Nm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qR)))}var Gu=null;function mS(a){Gu!==a&&(Gu=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gu===a&&(Gu=null);for(var i=0;i<a.length;i+=3){var l=a[i],f=a[i+1],h=a[i+2];if(typeof f!="function"){if(_m(f||l)===null)continue;break}var S=Ht(l);S!==null&&(a.splice(i,3),i-=3,_v(S,{pending:!0,data:h,method:l.method,action:f},f,h))}}))}function As(a){function i(ae){return Wu(ae,a)}No!==null&&Wu(No,a),Do!==null&&Wu(Do,a),Io!==null&&Wu(Io,a),Ds.forEach(i),Is.forEach(i);for(var l=0;l<Po.length;l++){var f=Po[l];f.blockedOn===a&&(f.blockedOn=null)}for(;0<Po.length&&(l=Po[0],l.blockedOn===null);)dS(l),l.blockedOn===null&&Po.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(f=0;f<l.length;f+=3){var h=l[f],S=l[f+1],B=h[We]||null;if(typeof S=="function")B||mS(l);else if(B){var K=null;if(S&&S.hasAttribute("formAction")){if(h=S,B=S[We]||null)K=B.formAction;else if(_m(h)!==null)continue}else K=B.action;typeof K=="function"?l[f+1]=K:(l.splice(f,3),f-=3),mS(l)}}}function Dm(a){this._internalRoot=a}Yu.prototype.render=Dm.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var l=i.current,f=Gr();lS(l,f,a,i,null,null)},Yu.prototype.unmount=Dm.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;lS(a.current,2,null,a,null,null),Tu(),i[Ke]=null}};function Yu(a){this._internalRoot=a}Yu.prototype.unstable_scheduleHydration=function(a){if(a){var i=tt();a={blockedOn:null,target:a,priority:i};for(var l=0;l<Po.length&&i!==0&&i<Po[l].priority;l++);Po.splice(l,0,a),l===0&&dS(a)}};var gS=t.version;if(gS!=="19.1.0")throw Error(r(527,gS,"19.1.0"));N.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=v(i),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var WR={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{Te=Ku.inject(WR),Ye=Ku}catch{}}return js.createRoot=function(a,i){if(!o(a))throw Error(r(299));var l=!1,f="",h=Nb,S=Db,B=Ib,K=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&(B=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(K=i.unstable_transitionCallbacks)),i=oS(a,1,!1,null,null,l,f,h,S,B,K,null),a[Ke]=i.current,mm(a),new Dm(i)},js.hydrateRoot=function(a,i,l){if(!o(a))throw Error(r(299));var f=!1,h="",S=Nb,B=Db,K=Ib,ae=null,be=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(S=l.onUncaughtError),l.onCaughtError!==void 0&&(B=l.onCaughtError),l.onRecoverableError!==void 0&&(K=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(ae=l.unstable_transitionCallbacks),l.formState!==void 0&&(be=l.formState)),i=oS(a,1,!0,i,l??null,f,h,S,B,K,ae,be),i.context=iS(null),l=i.current,f=Gr(),f=gt(f),h=po(f),h.callback=null,bo(l,h,f),l=f,i.current.lanes=l,Kt(i,l),Pa(i),a[Ke]=i.current,mm(a),new Yu(i)},js.version="19.1.0",js}var $S;function tM(){if($S)return Am.exports;$S=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Am.exports=eM(),Am.exports}var nM=tM(),Hs={},OS;function rM(){if(OS)return Hs;OS=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.parse=u,Hs.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,s=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function u(b,x){const C=new s,E=b.length;if(E<2)return C;const y=(x==null?void 0:x.decode)||g;let w=0;do{const $=b.indexOf("=",w);if($===-1)break;const O=b.indexOf(";",w),T=O===-1?E:O;if($>T){w=b.lastIndexOf(";",$-1)+1;continue}const M=d(b,w,$),D=v(b,$,M),I=b.slice(M,D);if(C[I]===void 0){let z=d(b,$+1,T),P=v(b,T,z);const j=y(b.slice(z,P));C[I]=j}w=T+1}while(w<E);return C}function d(b,x,C){do{const E=b.charCodeAt(x);if(E!==32&&E!==9)return x}while(++x<C);return C}function v(b,x,C){for(;x>C;){const E=b.charCodeAt(--x);if(E!==32&&E!==9)return x+1}return C}function m(b,x,C){const E=(C==null?void 0:C.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const y=E(x);if(!t.test(y))throw new TypeError(`argument val is invalid: ${x}`);let w=b+"="+y;if(!C)return w;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);w+="; Max-Age="+C.maxAge}if(C.domain){if(!n.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);w+="; Domain="+C.domain}if(C.path){if(!r.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);w+="; Path="+C.path}if(C.expires){if(!p(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);w+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(w+="; HttpOnly"),C.secure&&(w+="; Secure"),C.partitioned&&(w+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return w}function g(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function p(b){return o.call(b)==="[object Date]"}return Hs}rM();var RS="popstate";function aM(e={}){function t(o,s){let{pathname:u="/",search:d="",hash:v=""}=Ri(o.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Lg("",{pathname:u,search:d,hash:v},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let u=o.document.querySelector("base"),d="";if(u&&u.getAttribute("href")){let v=o.location.href,m=v.indexOf("#");d=m===-1?v:v.slice(0,m)}return d+"#"+(typeof s=="string"?s:lc(s))}function r(o,s){Ea(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return iM(t,n,r,e)}function kn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ea(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oM(){return Math.random().toString(36).substring(2,10)}function MS(e,t){return{usr:e.state,key:e.key,idx:t}}function Lg(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ri(t):t,state:n,key:t&&t.key||r||oM()}}function lc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ri(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function iM(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,u=o.history,d="POP",v=null,m=g();m==null&&(m=0,u.replaceState({...u.state,idx:m},""));function g(){return(u.state||{idx:null}).idx}function p(){d="POP";let y=g(),w=y==null?null:y-m;m=y,v&&v({action:d,location:E.location,delta:w})}function b(y,w){d="PUSH";let $=Lg(E.location,y,w);n&&n($,y),m=g()+1;let O=MS($,m),T=E.createHref($);try{u.pushState(O,"",T)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(T)}s&&v&&v({action:d,location:E.location,delta:1})}function x(y,w){d="REPLACE";let $=Lg(E.location,y,w);n&&n($,y),m=g();let O=MS($,m),T=E.createHref($);u.replaceState(O,"",T),s&&v&&v({action:d,location:E.location,delta:0})}function C(y){let w=o.location.origin!=="null"?o.location.origin:o.location.href,$=typeof y=="string"?y:lc(y);return $=$.replace(/ $/,"%20"),kn(w,`No window.location.(origin|href) available to create URL for href: ${$}`),new URL($,w)}let E={get action(){return d},get location(){return e(o,u)},listen(y){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(RS,p),v=y,()=>{o.removeEventListener(RS,p),v=null}},createHref(y){return t(o,y)},createURL:C,encodeLocation(y){let w=C(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:b,replace:x,go(y){return u.go(y)}};return E}function Cx(e,t,n="/"){return lM(e,t,n,!1)}function lM(e,t,n,r){let o=typeof t=="string"?Ri(t):t,s=io(o.pathname||"/",n);if(s==null)return null;let u=xx(e);sM(u);let d=null;for(let v=0;d==null&&v<u.length;++v){let m=yM(s);d=pM(u[v],m,r)}return d}function xx(e,t=[],n=[],r=""){let o=(s,u,d)=>{let v={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};v.relativePath.startsWith("/")&&(kn(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length));let m=ro([r,v.relativePath]),g=n.concat(v);s.children&&s.children.length>0&&(kn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),xx(s.children,t,g,m)),!(s.path==null&&!s.index)&&t.push({path:m,score:gM(m,s.index),routesMeta:g})};return e.forEach((s,u)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))o(s,u);else for(let v of wx(s.path))o(s,u,v)}),t}function wx(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let u=wx(r.join("/")),d=[];return d.push(...u.map(v=>v===""?s:[s,v].join("/"))),o&&d.push(...u),d.map(v=>e.startsWith("/")&&v===""?"/":v)}function sM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var cM=/^:[\w-]+$/,uM=3,fM=2,dM=1,vM=10,mM=-2,TS=e=>e==="*";function gM(e,t){let n=e.split("/"),r=n.length;return n.some(TS)&&(r+=mM),t&&(r+=fM),n.filter(o=>!TS(o)).reduce((o,s)=>o+(cM.test(s)?uM:s===""?dM:vM),r)}function hM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function pM(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",u=[];for(let d=0;d<r.length;++d){let v=r[d],m=d===r.length-1,g=s==="/"?t:t.slice(s.length)||"/",p=Bf({path:v.relativePath,caseSensitive:v.caseSensitive,end:m},g),b=v.route;if(!p&&m&&n&&!r[r.length-1].route.index&&(p=Bf({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},g)),!p)return null;Object.assign(o,p.params),u.push({params:o,pathname:ro([s,p.pathname]),pathnameBase:wM(ro([s,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(s=ro([s,p.pathnameBase]))}return u}function Bf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bM(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],u=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:r.reduce((m,{paramName:g,isOptional:p},b)=>{if(g==="*"){let C=d[b]||"";u=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const x=d[b];return p&&!x?m[g]=void 0:m[g]=(x||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:u,pattern:e}}function bM(e,t=!1,n=!0){Ea(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,v)=>(r.push({paramName:d,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ea(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function io(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SM(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ri(e):e;return{pathname:n?n.startsWith("/")?n:CM(n,t):t,search:EM(r),hash:$M(o)}}function CM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Lm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ex(e){let t=xM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function $x(e,t,n,r=!1){let o;typeof e=="string"?o=Ri(e):(o={...e},kn(!o.pathname||!o.pathname.includes("?"),Lm("?","pathname","search",o)),kn(!o.pathname||!o.pathname.includes("#"),Lm("#","pathname","hash",o)),kn(!o.search||!o.search.includes("#"),Lm("#","search","hash",o)));let s=e===""||o.pathname==="",u=s?"/":o.pathname,d;if(u==null)d=n;else{let p=t.length-1;if(!r&&u.startsWith("..")){let b=u.split("/");for(;b[0]==="..";)b.shift(),p-=1;o.pathname=b.join("/")}d=p>=0?t[p]:"/"}let v=SM(o,d),m=u&&u!=="/"&&u.endsWith("/"),g=(s||u===".")&&n.endsWith("/");return!v.pathname.endsWith("/")&&(m||g)&&(v.pathname+="/"),v}var ro=e=>e.join("/").replace(/\/\/+/g,"/"),wM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$M=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ox=["POST","PUT","PATCH","DELETE"];new Set(Ox);var RM=["GET",...Ox];new Set(RM);var zl=c.createContext(null);zl.displayName="DataRouter";var ad=c.createContext(null);ad.displayName="DataRouterState";var Rx=c.createContext({isTransitioning:!1});Rx.displayName="ViewTransition";var MM=c.createContext(new Map);MM.displayName="Fetchers";var TM=c.createContext(null);TM.displayName="Await";var La=c.createContext(null);La.displayName="Navigation";var Mc=c.createContext(null);Mc.displayName="Location";var co=c.createContext({outlet:null,matches:[],isDataRoute:!1});co.displayName="Route";var Gh=c.createContext(null);Gh.displayName="RouteError";function _M(e,{relative:t}={}){kn(Tc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(La),{hash:o,pathname:s,search:u}=_c(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:ro([n,s])),r.createHref({pathname:d,search:u,hash:o})}function Tc(){return c.useContext(Mc)!=null}function qo(){return kn(Tc(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(Mc).location}var Mx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tx(e){c.useContext(La).static||c.useLayoutEffect(e)}function NM(){let{isDataRoute:e}=c.useContext(co);return e?UM():DM()}function DM(){kn(Tc(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(zl),{basename:t,navigator:n}=c.useContext(La),{matches:r}=c.useContext(co),{pathname:o}=qo(),s=JSON.stringify(Ex(r)),u=c.useRef(!1);return Tx(()=>{u.current=!0}),c.useCallback((v,m={})=>{if(Ea(u.current,Mx),!u.current)return;if(typeof v=="number"){n.go(v);return}let g=$x(v,JSON.parse(s),o,m.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ro([t,g.pathname])),(m.replace?n.replace:n.push)(g,m.state,m)},[t,n,s,o,e])}c.createContext(null);function _c(e,{relative:t}={}){let{matches:n}=c.useContext(co),{pathname:r}=qo(),o=JSON.stringify(Ex(n));return c.useMemo(()=>$x(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function IM(e,t){return _x(e,t)}function _x(e,t,n,r){var $;kn(Tc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:s}=c.useContext(La),{matches:u}=c.useContext(co),d=u[u.length-1],v=d?d.params:{},m=d?d.pathname:"/",g=d?d.pathnameBase:"/",p=d&&d.route;{let O=p&&p.path||"";Nx(m,!p||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let b=qo(),x;if(t){let O=typeof t=="string"?Ri(t):t;kn(g==="/"||(($=O.pathname)==null?void 0:$.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${O.pathname}" was given in the \`location\` prop.`),x=O}else x=b;let C=x.pathname||"/",E=C;if(g!=="/"){let O=g.replace(/^\//,"").split("/");E="/"+C.replace(/^\//,"").split("/").slice(O.length).join("/")}let y=!s&&n&&n.matches&&n.matches.length>0?n.matches:Cx(e,{pathname:E});Ea(p||y!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ea(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=HM(y&&y.map(O=>Object.assign({},O,{params:Object.assign({},v,O.params),pathname:ro([g,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?g:ro([g,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,n,r);return t&&w?c.createElement(Mc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},w):w}function PM(){let e=kM(),t=OM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:s},"ErrorBoundary")," or"," ",c.createElement("code",{style:s},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,u)}var AM=c.createElement(PM,null),zM=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?c.createElement(co.Provider,{value:this.props.routeContext},c.createElement(Gh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jM({routeContext:e,match:t,children:n}){let r=c.useContext(zl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(co.Provider,{value:e},n)}function HM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n==null?void 0:n.errors;if(s!=null){let v=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);kn(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,v+1))}let u=!1,d=-1;if(n)for(let v=0;v<o.length;v++){let m=o[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=v),m.route.id){let{loaderData:g,errors:p}=n,b=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!p||p[m.route.id]===void 0);if(m.route.lazy||b){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((v,m,g)=>{let p,b=!1,x=null,C=null;n&&(p=s&&m.route.id?s[m.route.id]:void 0,x=m.route.errorElement||AM,u&&(d<0&&g===0?(Nx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,C=null):d===g&&(b=!0,C=m.route.hydrateFallbackElement||null)));let E=t.concat(o.slice(0,g+1)),y=()=>{let w;return p?w=x:b?w=C:m.route.Component?w=c.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=v,c.createElement(jM,{match:m,routeContext:{outlet:v,matches:E,isDataRoute:n!=null},children:w})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?c.createElement(zM,{location:n.location,revalidation:n.revalidation,component:x,error:p,children:y(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):y()},null)}function Yh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function LM(e){let t=c.useContext(zl);return kn(t,Yh(e)),t}function BM(e){let t=c.useContext(ad);return kn(t,Yh(e)),t}function FM(e){let t=c.useContext(co);return kn(t,Yh(e)),t}function Kh(e){let t=FM(e),n=t.matches[t.matches.length-1];return kn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function VM(){return Kh("useRouteId")}function kM(){var r;let e=c.useContext(Gh),t=BM("useRouteError"),n=Kh("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function UM(){let{router:e}=LM("useNavigate"),t=Kh("useNavigate"),n=c.useRef(!1);return Tx(()=>{n.current=!0}),c.useCallback(async(o,s={})=>{Ea(n.current,Mx),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var _S={};function Nx(e,t,n){!t&&!_S[e]&&(_S[e]=!0,Ea(!1,n))}c.memo(qM);function qM({routes:e,future:t,state:n}){return _x(e,void 0,n,t)}function Dx(e){kn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function WM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1}){kn(!Tc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=c.useMemo(()=>({basename:u,navigator:o,static:s,future:{}}),[u,o,s]);typeof n=="string"&&(n=Ri(n));let{pathname:v="/",search:m="",hash:g="",state:p=null,key:b="default"}=n,x=c.useMemo(()=>{let C=io(v,u);return C==null?null:{location:{pathname:C,search:m,hash:g,state:p,key:b},navigationType:r}},[u,v,m,g,p,b,r]);return Ea(x!=null,`<Router basename="${u}"> is not able to match the URL "${v}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:c.createElement(La.Provider,{value:d},c.createElement(Mc.Provider,{children:t,value:x}))}function GM({children:e,location:t}){return IM(Bg(e),t)}function Bg(e,t=[]){let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let s=[...t,o];if(r.type===c.Fragment){n.push.apply(n,Bg(r.props.children,s));return}kn(r.type===Dx,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),kn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=Bg(r.props.children,s)),n.push(u)}),n}var yf="get",Sf="application/x-www-form-urlencoded";function od(e){return e!=null&&typeof e.tagName=="string"}function YM(e){return od(e)&&e.tagName.toLowerCase()==="button"}function KM(e){return od(e)&&e.tagName.toLowerCase()==="form"}function XM(e){return od(e)&&e.tagName.toLowerCase()==="input"}function QM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZM(e,t){return e.button===0&&(!t||t==="_self")&&!QM(e)}var Xu=null;function JM(){if(Xu===null)try{new FormData(document.createElement("form"),0),Xu=!1}catch{Xu=!0}return Xu}var eT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bm(e){return e!=null&&!eT.has(e)?(Ea(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Sf}"`),null):e}function tT(e,t){let n,r,o,s,u;if(KM(e)){let d=e.getAttribute("action");r=d?io(d,t):null,n=e.getAttribute("method")||yf,o=Bm(e.getAttribute("enctype"))||Sf,s=new FormData(e)}else if(YM(e)||XM(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=e.getAttribute("formaction")||d.getAttribute("action");if(r=v?io(v,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||yf,o=Bm(e.getAttribute("formenctype"))||Bm(d.getAttribute("enctype"))||Sf,s=new FormData(d,e),!JM()){let{name:m,type:g,value:p}=e;if(g==="image"){let b=m?`${m}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else m&&s.append(m,p)}}else{if(od(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yf,r=null,o=Sf,u=e}return s&&o==="text/plain"&&(u=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:u}}function Xh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function nT(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aT(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let u=await nT(s,n);return u.links?u.links():[]}return[]}));return sT(r.flat(1).filter(rT).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function NS(e,t,n,r,o,s){let u=(v,m)=>n[m]?v.route.id!==n[m].route.id:!0,d=(v,m)=>{var g;return n[m].pathname!==v.pathname||((g=n[m].route.path)==null?void 0:g.endsWith("*"))&&n[m].params["*"]!==v.params["*"]};return s==="assets"?t.filter((v,m)=>u(v,m)||d(v,m)):s==="data"?t.filter((v,m)=>{var p;let g=r.routes[v.route.id];if(!g||!g.hasLoader)return!1;if(u(v,m)||d(v,m))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function oT(e,t,{includeHydrateFallback:n}={}){return iT(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function iT(e){return[...new Set(e)]}function lT(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function sT(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(lT(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}var cT=new Set([100,101,204,205]);function uT(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&io(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Ix(){let e=c.useContext(zl);return Xh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fT(){let e=c.useContext(ad);return Xh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qh=c.createContext(void 0);Qh.displayName="FrameworkContext";function Px(){let e=c.useContext(Qh);return Xh(e,"You must render this element inside a <HydratedRouter> element"),e}function dT(e,t){let n=c.useContext(Qh),[r,o]=c.useState(!1),[s,u]=c.useState(!1),{onFocus:d,onBlur:v,onMouseEnter:m,onMouseLeave:g,onTouchStart:p}=t,b=c.useRef(null);c.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let E=w=>{w.forEach($=>{u($.isIntersecting)})},y=new IntersectionObserver(E,{threshold:.5});return b.current&&y.observe(b.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(r){let E=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(E)}}},[r]);let x=()=>{o(!0)},C=()=>{o(!1),u(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Ls(d,x),onBlur:Ls(v,C),onMouseEnter:Ls(m,x),onMouseLeave:Ls(g,C),onTouchStart:Ls(p,x)}]:[!1,b,{}]}function Ls(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function vT({page:e,...t}){let{router:n}=Ix(),r=c.useMemo(()=>Cx(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?c.createElement(gT,{page:e,matches:r,...t}):null}function mT(e){let{manifest:t,routeModules:n}=Px(),[r,o]=c.useState([]);return c.useEffect(()=>{let s=!1;return aT(e,t,n).then(u=>{s||o(u)}),()=>{s=!0}},[e,t,n]),r}function gT({page:e,matches:t,...n}){let r=qo(),{manifest:o,routeModules:s}=Px(),{basename:u}=Ix(),{loaderData:d,matches:v}=fT(),m=c.useMemo(()=>NS(e,t,v,o,r,"data"),[e,t,v,o,r]),g=c.useMemo(()=>NS(e,t,v,o,r,"assets"),[e,t,v,o,r]),p=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let C=new Set,E=!1;if(t.forEach(w=>{var O;let $=o.routes[w.route.id];!$||!$.hasLoader||(!m.some(T=>T.route.id===w.route.id)&&w.route.id in d&&((O=s[w.route.id])!=null&&O.shouldRevalidate)||$.hasClientLoader?E=!0:C.add(w.route.id))}),C.size===0)return[];let y=uT(e,u);return E&&C.size>0&&y.searchParams.set("_routes",t.filter(w=>C.has(w.route.id)).map(w=>w.route.id).join(",")),[y.pathname+y.search]},[u,d,r,o,m,t,e,s]),b=c.useMemo(()=>oT(g,o),[g,o]),x=mT(g);return c.createElement(c.Fragment,null,p.map(C=>c.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...n})),b.map(C=>c.createElement("link",{key:C,rel:"modulepreload",href:C,...n})),x.map(({key:C,link:E})=>c.createElement("link",{key:C,...E})))}function hT(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Ax=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ax&&(window.__reactRouterVersion="7.5.2")}catch{}function pT({basename:e,children:t,window:n}){let r=c.useRef();r.current==null&&(r.current=aM({window:n,v5Compat:!0}));let o=r.current,[s,u]=c.useState({action:o.action,location:o.location}),d=c.useCallback(v=>{c.startTransition(()=>u(v))},[u]);return c.useLayoutEffect(()=>o.listen(d),[o,d]),c.createElement(WM,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var zx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sc=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:u,state:d,target:v,to:m,preventScrollReset:g,viewTransition:p,...b},x){let{basename:C}=c.useContext(La),E=typeof m=="string"&&zx.test(m),y,w=!1;if(typeof m=="string"&&E&&(y=m,Ax))try{let P=new URL(window.location.href),j=m.startsWith("//")?new URL(P.protocol+m):new URL(m),H=io(j.pathname,C);j.origin===P.origin&&H!=null?m=H+j.search+j.hash:w=!0}catch{Ea(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=_M(m,{relative:o}),[O,T,M]=dT(r,b),D=CT(m,{replace:u,state:d,target:v,preventScrollReset:g,relative:o,viewTransition:p});function I(P){t&&t(P),P.defaultPrevented||D(P)}let z=c.createElement("a",{...b,...M,href:y||$,onClick:w||s?t:I,ref:hT(x,T),target:v,"data-discover":!E&&n==="render"?"true":void 0});return O&&!E?c.createElement(c.Fragment,null,z,c.createElement(vT,{page:$})):z});sc.displayName="Link";var bT=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:u,viewTransition:d,children:v,...m},g){let p=_c(u,{relative:m.relative}),b=qo(),x=c.useContext(ad),{navigator:C,basename:E}=c.useContext(La),y=x!=null&&OT(p)&&d===!0,w=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,$=b.pathname,O=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||($=$.toLowerCase(),O=O?O.toLowerCase():null,w=w.toLowerCase()),O&&E&&(O=io(O,E)||O);const T=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let M=$===w||!o&&$.startsWith(w)&&$.charAt(T)==="/",D=O!=null&&(O===w||!o&&O.startsWith(w)&&O.charAt(w.length)==="/"),I={isActive:M,isPending:D,isTransitioning:y},z=M?t:void 0,P;typeof r=="function"?P=r(I):P=[r,M?"active":null,D?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let j=typeof s=="function"?s(I):s;return c.createElement(sc,{...m,"aria-current":z,className:P,ref:g,style:j,to:u,viewTransition:d},typeof v=="function"?v(I):v)});bT.displayName="NavLink";var yT=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:u=yf,action:d,onSubmit:v,relative:m,preventScrollReset:g,viewTransition:p,...b},x)=>{let C=ET(),E=$T(d,{relative:m}),y=u.toLowerCase()==="get"?"get":"post",w=typeof d=="string"&&zx.test(d),$=O=>{if(v&&v(O),O.defaultPrevented)return;O.preventDefault();let T=O.nativeEvent.submitter,M=(T==null?void 0:T.getAttribute("formmethod"))||u;C(T||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:o,state:s,relative:m,preventScrollReset:g,viewTransition:p})};return c.createElement("form",{ref:x,method:y,action:E,onSubmit:r?v:$,...b,"data-discover":!w&&e==="render"?"true":void 0})});yT.displayName="Form";function ST(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function jx(e){let t=c.useContext(zl);return kn(t,ST(e)),t}function CT(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:u}={}){let d=NM(),v=qo(),m=_c(e,{relative:s});return c.useCallback(g=>{if(ZM(g,t)){g.preventDefault();let p=n!==void 0?n:lc(v)===lc(m);d(e,{replace:p,state:r,preventScrollReset:o,relative:s,viewTransition:u})}},[v,d,m,n,r,t,e,o,s,u])}var xT=0,wT=()=>`__${String(++xT)}__`;function ET(){let{router:e}=jx("useSubmit"),{basename:t}=c.useContext(La),n=VM();return c.useCallback(async(r,o={})=>{let{action:s,method:u,encType:d,formData:v,body:m}=tT(r,t);if(o.navigate===!1){let g=o.fetcherKey||wT();await e.fetch(g,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||u,formEncType:o.encType||d,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||u,formEncType:o.encType||d,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function $T(e,{relative:t}={}){let{basename:n}=c.useContext(La),r=c.useContext(co);kn(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={..._c(e||".",{relative:t})},u=qo();if(e==null){s.search=u.search;let d=new URLSearchParams(s.search),v=d.getAll("index");if(v.some(g=>g==="")){d.delete("index"),v.filter(p=>p).forEach(p=>d.append("index",p));let g=d.toString();s.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ro([n,s.pathname])),lc(s)}function OT(e,t={}){let n=c.useContext(Rx);kn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=jx("useViewTransitionState"),o=_c(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=io(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=io(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Bf(o.pathname,u)!=null||Bf(o.pathname,s)!=null}new TextEncoder;[...cT];var Uo=Sx();const Fg=Oa(Uo),RT=yx({__proto__:null,default:Fg},[Uo]);var Fm={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var DS;function MT(){return DS||(DS=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",u=0;u<arguments.length;u++){var d=arguments[u];d&&(s=o(s,r(d)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var u="";for(var d in s)t.call(s,d)&&s[d]&&(u=o(u,d));return u}function o(s,u){return u?s?s+" "+u:s+u:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Fm)),Fm.exports}var TT=MT();const me=Oa(TT);function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}function vt(e){"@babel/helpers - typeof";return vt=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},vt(e)}var _T=Symbol.for("react.element"),NT=Symbol.for("react.transitional.element"),DT=Symbol.for("react.fragment");function Hx(e){return e&&vt(e)==="object"&&(e.$$typeof===_T||e.$$typeof===NT)&&e.type===DT}function ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Ie.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ja(r)):Hx(r)&&r.props?n=n.concat(ja(r.props.children,t)):n.push(r))}),n}var Vg={},IT=function(t){};function PT(e,t){}function AT(e,t){}function zT(){Vg={}}function Lx(e,t,n){!t&&!Vg[n]&&(e(!1,n),Vg[n]=!0)}function Sr(e,t){Lx(PT,e,t)}function jT(e,t){Lx(AT,e,t)}Sr.preMessage=IT;Sr.resetWarned=zT;Sr.noteOnce=jT;function HT(e,t){if(vt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bx(e){var t=HT(e,"string");return vt(t)=="symbol"?t:t+""}function Q(e,t,n){return(t=Bx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(n),!0).forEach(function(r){Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cc(e){return e instanceof HTMLElement||e instanceof SVGElement}function Fx(e){return e&&vt(e)==="object"&&cc(e.nativeElement)?e.nativeElement:cc(e)?e:null}function Cf(e){var t=Fx(e);if(t)return t;if(e instanceof Ie.Component){var n;return(n=Fg.findDOMNode)===null||n===void 0?void 0:n.call(Fg,e)}return null}var Vm={exports:{}},yn={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PS;function LT(){if(PS)return yn;PS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function E(y){if(typeof y=="object"&&y!==null){var w=y.$$typeof;switch(w){case e:switch(y=y.type,y){case n:case o:case r:case m:case g:return y;default:switch(y=y&&y.$$typeof,y){case d:case u:case v:case b:case p:case s:return y;default:return w}}case t:return w}}}return yn.ContextConsumer=u,yn.ContextProvider=s,yn.Element=e,yn.ForwardRef=v,yn.Fragment=n,yn.Lazy=b,yn.Memo=p,yn.Portal=t,yn.Profiler=o,yn.StrictMode=r,yn.Suspense=m,yn.SuspenseList=g,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(y){return E(y)===u},yn.isContextProvider=function(y){return E(y)===s},yn.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},yn.isForwardRef=function(y){return E(y)===v},yn.isFragment=function(y){return E(y)===n},yn.isLazy=function(y){return E(y)===b},yn.isMemo=function(y){return E(y)===p},yn.isPortal=function(y){return E(y)===t},yn.isProfiler=function(y){return E(y)===o},yn.isStrictMode=function(y){return E(y)===r},yn.isSuspense=function(y){return E(y)===m},yn.isSuspenseList=function(y){return E(y)===g},yn.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===m||y===g||y===x||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===p||y.$$typeof===s||y.$$typeof===u||y.$$typeof===v||y.$$typeof===C||y.getModuleId!==void 0)},yn.typeOf=E,yn}var AS;function BT(){return AS||(AS=1,Vm.exports=LT()),Vm.exports}var km=BT();function Nc(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var FT=Number(c.version.split(".")[0]),Zh=function(t,n){typeof t=="function"?t(n):vt(t)==="object"&&t&&"current"in t&&(t.current=n)},Br=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(s){n.forEach(function(u){Zh(u,s)})}},Mi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nc(function(){return Br.apply(void 0,n)},n,function(o,s){return o.length!==s.length||o.every(function(u,d){return u!==s[d]})})},Wo=function(t){var n,r;if(!t)return!1;if(Vx(t)&&FT>=19)return!0;var o=km.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==km.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==km.ForwardRef)};function Vx(e){return c.isValidElement(e)&&!Hx(e)}var Ti=function(t){if(t&&Vx(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},kg=c.createContext(null);function VT(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),s=c.useContext(kg),u=c.useCallback(function(d,v,m){r.current+=1;var g=r.current;o.current.push({size:d,element:v,data:m}),Promise.resolve().then(function(){g===r.current&&(n==null||n(o.current),o.current=[])}),s==null||s(d,v,m)},[n,s]);return c.createElement(kg.Provider,{value:u},t)}var kx=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,s){return o[0]===n?(r=s,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,s=this.__entries__;o<s.length;o++){var u=s[o];n.call(r,u[1],u[0])}},t}()}(),Ug=typeof window<"u"&&typeof document<"u"&&window.document===document,Ff=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")()}(),kT=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ff):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),UT=2;function qT(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&d()}function u(){kT(s)}function d(){var v=Date.now();if(n){if(v-o<UT)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=v}return d}var WT=20,GT=["top","right","bottom","left","width","height","size","weight"],YT=typeof MutationObserver<"u",KT=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qT(this.refresh.bind(this),WT)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ug||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YT?(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(){!Ug||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=GT.some(function(s){return!!~r.indexOf(s)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ux=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Tl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ff},qx=id(0,0,0,0);function Vf(e){return parseFloat(e)||0}function zS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var s=e["border-"+o+"-width"];return r+Vf(s)},0)}function XT(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var s=o[r],u=e["padding-"+s];n[s]=Vf(u)}return n}function QT(e){var t=e.getBBox();return id(0,0,t.width,t.height)}function ZT(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return qx;var r=Tl(e).getComputedStyle(e),o=XT(r),s=o.left+o.right,u=o.top+o.bottom,d=Vf(r.width),v=Vf(r.height);if(r.boxSizing==="border-box"&&(Math.round(d+s)!==t&&(d-=zS(r,"left","right")+s),Math.round(v+u)!==n&&(v-=zS(r,"top","bottom")+u)),!e_(e)){var m=Math.round(d+s)-t,g=Math.round(v+u)-n;Math.abs(m)!==1&&(d-=m),Math.abs(g)!==1&&(v-=g)}return id(o.left,o.top,d,v)}var JT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Tl(e).SVGGraphicsElement}:function(e){return e instanceof Tl(e).SVGElement&&typeof e.getBBox=="function"}}();function e_(e){return e===Tl(e).document.documentElement}function t_(e){return Ug?JT(e)?QT(e):ZT(e):qx}function n_(e){var t=e.x,n=e.y,r=e.width,o=e.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(s.prototype);return Ux(u,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),u}function id(e,t,n,r){return{x:e,y:t,width:n,height:r}}var r_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=id(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=t_(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),a_=function(){function e(t,n){var r=n_(n);Ux(this,{target:t,contentRect:r})}return e}(),o_=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new kx,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Tl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new r_(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 Tl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new a_(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Wx=typeof WeakMap<"u"?new WeakMap:new kx,Gx=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=KT.getInstance(),r=new o_(t,n,this);Wx.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Gx.prototype[e]=function(){var t;return(t=Wx.get(this))[e].apply(t,arguments)}});var i_=function(){return typeof Ff.ResizeObserver<"u"?Ff.ResizeObserver:Gx}(),Bo=new Map;function l_(e){e.forEach(function(t){var n,r=t.target;(n=Bo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Yx=new i_(l_);function s_(e,t){Bo.has(e)||(Bo.set(e,new Set),Yx.observe(e)),Bo.get(e).add(t)}function c_(e,t){Bo.has(e)&&(Bo.get(e).delete(t),Bo.get(e).size||(Yx.unobserve(e),Bo.delete(e)))}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bx(r.key),r)}}function Zn(e,t,n){return t&&jS(e.prototype,t),n&&jS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},uc(e,t)}function uo(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&&uc(e,t)}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fc(e)}function Jh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jh=function(){return!!e})()}function Zt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u_(e,t){if(t&&(vt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zt(e)}function fo(e){var t=Jh();return function(){var n,r=fc(e);if(t){var o=fc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u_(this,n)}}var f_=function(e){uo(n,e);var t=fo(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function d_(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),s=c.useRef(null),u=c.useContext(kg),d=typeof n=="function",v=d?n(o):n,m=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!d&&c.isValidElement(v)&&Wo(v),p=g?Ti(v):null,b=Mi(p,o),x=function(){var w;return Cf(o.current)||(o.current&&vt(o.current)==="object"?Cf((w=o.current)===null||w===void 0?void 0:w.nativeElement):null)||Cf(s.current)};c.useImperativeHandle(t,function(){return x()});var C=c.useRef(e);C.current=e;var E=c.useCallback(function(y){var w=C.current,$=w.onResize,O=w.data,T=y.getBoundingClientRect(),M=T.width,D=T.height,I=y.offsetWidth,z=y.offsetHeight,P=Math.floor(M),j=Math.floor(D);if(m.current.width!==P||m.current.height!==j||m.current.offsetWidth!==I||m.current.offsetHeight!==z){var H={width:P,height:j,offsetWidth:I,offsetHeight:z};m.current=H;var G=I===Math.round(M)?M:I,k=z===Math.round(D)?D:z,F=J(J({},H),{},{offsetWidth:G,offsetHeight:k});u==null||u(F,y,O),$&&Promise.resolve().then(function(){$(F,y)})}},[]);return c.useEffect(function(){var y=x();return y&&!r&&s_(y,E),function(){return c_(y,E)}},[o.current,r]),c.createElement(f_,{ref:s},g?c.cloneElement(v,{ref:b}):v)}var v_=c.forwardRef(d_),m_="rc-observer-key";function g_(e,t){var n=e.children,r=typeof n=="function"?[n]:ja(n);return r.map(function(o,s){var u=(o==null?void 0:o.key)||"".concat(m_,"-").concat(s);return c.createElement(v_,Ae({},e,{key:u,ref:s===0?t:void 0}),o)})}var Lr=c.forwardRef(g_);Lr.Collection=VT;function qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h_(e){if(Array.isArray(e))return qg(e)}function Kx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ep(e,t){if(e){if(typeof e=="string")return qg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qg(e,t):void 0}}function p_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(e){return h_(e)||Kx(e)||ep(e)||p_()}var Xx=function(t){return+setTimeout(t,16)},Qx=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Xx=function(t){return window.requestAnimationFrame(t)},Qx=function(t){return window.cancelAnimationFrame(t)});var HS=0,tp=new Map;function Zx(e){tp.delete(e)}var kt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;HS+=1;var r=HS;function o(s){if(s===0)Zx(r),t();else{var u=Xx(function(){o(s-1)});tp.set(r,u)}}return o(n),r};kt.cancel=function(e){var t=tp.get(e);return Zx(e),Qx(t)};function Jx(e){if(Array.isArray(e))return e}function b_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,u,d=[],v=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);v=!0);}catch(g){m=!0,o=g}finally{try{if(!v&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw o}}return d}}function ew(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(e,t){return Jx(e)||b_(e,t)||ep(e,t)||ew()}function dc(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Ir(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function y_(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var LS="data-rc-order",BS="data-rc-priority",S_="rc-util-key",Wg=new Map;function tw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):S_}function ld(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function C_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function np(e){return Array.from((Wg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ir())return null;var n=t.csp,r=t.prepend,o=t.priority,s=o===void 0?0:o,u=C_(r),d=u==="prependQueue",v=document.createElement("style");v.setAttribute(LS,u),d&&s&&v.setAttribute(BS,"".concat(s)),n!=null&&n.nonce&&(v.nonce=n==null?void 0:n.nonce),v.innerHTML=e;var m=ld(t),g=m.firstChild;if(r){if(d){var p=(t.styles||np(m)).filter(function(b){if(!["prepend","prependQueue"].includes(b.getAttribute(LS)))return!1;var x=Number(b.getAttribute(BS)||0);return s>=x});if(p.length)return m.insertBefore(v,p[p.length-1].nextSibling),v}m.insertBefore(v,g)}else m.appendChild(v);return v}function rw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ld(t);return(t.styles||np(n)).find(function(r){return r.getAttribute(tw(t))===e})}function vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rw(e,t);if(n){var r=ld(t);r.removeChild(n)}}function x_(e,t){var n=Wg.get(e);if(!n||!y_(document,n)){var r=nw("",t),o=r.parentNode;Wg.set(e,o),e.removeChild(r)}}function ao(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ld(n),o=np(r),s=J(J({},n),{},{styles:o});x_(r,s);var u=rw(t,s);if(u){var d,v;if((d=s.csp)!==null&&d!==void 0&&d.nonce&&u.nonce!==((v=s.csp)===null||v===void 0?void 0:v.nonce)){var m;u.nonce=(m=s.csp)===null||m===void 0?void 0:m.nonce}return u.innerHTML!==e&&(u.innerHTML=e),u}var g=nw(e,s);return g.setAttribute(tw(s),t),g}function w_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Et(e,t){if(e==null)return{};var n,r,o=w_(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(s,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=r.has(s);if(Sr(!v,"Warning: There may be circular references"),v)return!1;if(s===u)return!0;if(n&&d>1)return!1;r.add(s);var m=d+1;if(Array.isArray(s)){if(!Array.isArray(u)||s.length!==u.length)return!1;for(var g=0;g<s.length;g++)if(!o(s[g],u[g],m))return!1;return!0}if(s&&u&&vt(s)==="object"&&vt(u)==="object"){var p=Object.keys(s);return p.length!==Object.keys(u).length?!1:p.every(function(b){return o(s[b],u[b],m)})}return!1}return o(e,t)}var E_="%";function Gg(e){return e.join(E_)}var $_=function(){function e(t){Qn(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return Zn(e,[{key:"get",value:function(n){return this.opGet(Gg(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Gg(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),s=r(o);s===null?this.cache.delete(n):this.cache.set(n,s)}}]),e}(),_l="data-token-hash",Ca="data-css-hash",Fo="__cssinjs_instance__";function O_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ca,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Fo]=o[Fo]||e,o[Fo]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ca,"]"))).forEach(function(o){var s=o.getAttribute(Ca);if(r[s]){if(o[Fo]===e){var u;(u=o.parentNode)===null||u===void 0||u.removeChild(o)}}else r[s]=!0})}return new $_(e)}var Dc=c.createContext({hashPriority:"low",cache:O_(),defaultCache:!0});function R_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var rp=function(){function e(){Qn(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u={map:this.cache};return n.forEach(function(d){if(!u)u=void 0;else{var v;u=(v=u)===null||v===void 0||(v=v.map)===null||v===void 0?void 0:v.get(d)}}),(r=u)!==null&&r!==void 0&&r.value&&s&&(u.value[1]=this.cacheCallTimes++),(o=u)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var s=this.keys.reduce(function(m,g){var p=ee(m,2),b=p[1];return o.internalGet(g)[1]<b?[g,o.internalGet(g)[1]]:m},[this.keys[0],this.cacheCallTimes]),u=ee(s,1),d=u[0];this.delete(d)}this.keys.push(n)}var v=this.cache;n.forEach(function(m,g){if(g===n.length-1)v.set(m,{value:[r,o.cacheCallTimes++]});else{var p=v.get(m);p?p.map||(p.map=new Map):v.set(m,{map:new Map}),v=v.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var s;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(s=o.value)===null||s===void 0?void 0:s[0]}var u=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),u}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!R_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Q(rp,"MAX_CACHE_SIZE",20);Q(rp,"MAX_CACHE_OFFSET",5);var FS=0,aw=function(){function e(t){Qn(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=FS,t.length===0&&(t.length>0,void 0),FS+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Um=new rp;function Yg(e){var t=Array.isArray(e)?e:[e];return Um.has(t)||Um.set(t,new aw(t)),Um.get(t)}var M_=new WeakMap,qm={};function T_(e,t){for(var n=M_,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(qm)||n.set(qm,e()),n.get(qm)}var VS=new WeakMap;function tc(e){var t=VS.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof aw?t+=r.id:r&&vt(r)==="object"?t+=tc(r):t+=r}),t=dc(t),VS.set(e,t)),t}function kS(e,t){return dc("".concat(t,"_").concat(tc(e)))}var Kg=Ir();function ge(e){return typeof e=="number"?"".concat(e,"px"):e}function kf(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(s)return e;var u=J(J({},o),{},(r={},Q(r,_l,t),Q(r,Ca,n),r)),d=Object.keys(u).map(function(v){var m=u[v];return m?"".concat(v,'="').concat(m,'"'):null}).filter(function(v){return v}).join(" ");return"<style ".concat(d,">").concat(e,"</style>")}var xf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},__=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var s=ee(o,2),u=s[0],d=s[1];return"".concat(u,":").concat(d,";")}).join(""),"}"):""},ow=function(t,n,r){var o={},s={};return Object.entries(t).forEach(function(u){var d,v,m=ee(u,2),g=m[0],p=m[1];if(r!=null&&(d=r.preserve)!==null&&d!==void 0&&d[g])s[g]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(v=r.ignore)!==null&&v!==void 0&&v[g])){var b,x=xf(g,r==null?void 0:r.prefix);o[x]=typeof p=="number"&&!(r!=null&&(b=r.unitless)!==null&&b!==void 0&&b[g])?"".concat(p,"px"):String(p),s[g]="var(".concat(x,")")}}),[s,__(o,n,{scope:r==null?void 0:r.scope})]},US=Ir()?c.useLayoutEffect:c.useEffect,qt=function(t,n){var r=c.useRef(!0);US(function(){return t(r.current)},n),US(function(){return r.current=!1,function(){r.current=!0}},[])},Uf=function(t,n){qt(function(r){if(!r)return t()},n)},N_=J({},rd),qS=N_.useInsertionEffect,D_=function(t,n,r){c.useMemo(t,r),qt(function(){return n(!0)},r)},I_=qS?function(e,t,n){return qS(function(){return e(),t()},n)}:D_,P_=J({},rd),A_=P_.useInsertionEffect,z_=function(t){var n=[],r=!1;function o(s){r||n.push(s)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(s){return s()})}},t),o},j_=function(){return function(t){t()}},H_=typeof A_<"u"?z_:j_;function ap(e,t,n,r,o){var s=c.useContext(Dc),u=s.cache,d=[e].concat(je(t)),v=Gg(d),m=H_([v]),g=function(C){u.opUpdate(v,function(E){var y=E||[void 0,void 0],w=ee(y,2),$=w[0],O=$===void 0?0:$,T=w[1],M=T,D=M||n(),I=[O,D];return C?C(I):I})};c.useMemo(function(){g()},[v]);var p=u.opGet(v),b=p[1];return I_(function(){o==null||o(b)},function(x){return g(function(C){var E=ee(C,2),y=E[0],w=E[1];return x&&y===0&&(o==null||o(b)),[y+1,w]}),function(){u.opUpdate(v,function(C){var E=C||[],y=ee(E,2),w=y[0],$=w===void 0?0:w,O=y[1],T=$-1;return T===0?(m(function(){(x||!u.opGet(v))&&(r==null||r(O,!1))}),null):[$-1,O]})}},[v]),b}var L_={},B_="css",gi=new Map;function F_(e){gi.set(e,(gi.get(e)||0)+1)}function V_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_l,'="').concat(e,'"]'));n.forEach(function(r){if(r[Fo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var k_=0;function U_(e,t){gi.set(e,(gi.get(e)||0)-1);var n=Array.from(gi.keys()),r=n.filter(function(o){var s=gi.get(o)||0;return s<=0});n.length-r.length>k_&&r.forEach(function(o){V_(o,t),gi.delete(o)})}var q_=function(t,n,r,o){var s=r.getDerivativeToken(t),u=J(J({},s),n);return o&&(u=o(u)),u},iw="token";function W_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Dc),o=r.cache.instanceId,s=r.container,u=n.salt,d=u===void 0?"":u,v=n.override,m=v===void 0?L_:v,g=n.formatToken,p=n.getComputedToken,b=n.cssVar,x=T_(function(){return Object.assign.apply(Object,[{}].concat(je(t)))},t),C=tc(x),E=tc(m),y=b?tc(b):"",w=ap(iw,[d,e.id,C,E,y],function(){var $,O=p?p(x,m,e):q_(x,m,e,g),T=J({},O),M="";if(b){var D=ow(O,b.key,{prefix:b.prefix,ignore:b.ignore,unitless:b.unitless,preserve:b.preserve}),I=ee(D,2);O=I[0],M=I[1]}var z=kS(O,d);O._tokenKey=z,T._tokenKey=kS(T,d);var P=($=b==null?void 0:b.key)!==null&&$!==void 0?$:z;O._themeKey=P,F_(P);var j="".concat(B_,"-").concat(dc(z));return O._hashId=j,[O,j,T,M,(b==null?void 0:b.key)||""]},function($){U_($[0]._themeKey,o)},function($){var O=ee($,4),T=O[0],M=O[3];if(b&&M){var D=ao(M,dc("css-variables-".concat(T._themeKey)),{mark:Ca,prepend:"queue",attachTo:s,priority:-999});D[Fo]=o,D.setAttribute(_l,T._themeKey)}});return w}var G_=function(t,n,r){var o=ee(t,5),s=o[2],u=o[3],d=o[4],v=r||{},m=v.plain;if(!u)return null;var g=s._tokenKey,p=-999,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},x=kf(u,d,g,b,m);return[p,g,x]},Y_={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},lw="comm",sw="rule",cw="decl",K_="@import",X_="@namespace",Q_="@keyframes",Z_="@layer",uw=Math.abs,op=String.fromCharCode;function fw(e){return e.trim()}function wf(e,t,n){return e.replace(t,n)}function J_(e,t,n){return e.indexOf(t,n)}function Ol(e,t){return e.charCodeAt(t)|0}function Nl(e,t,n){return e.slice(t,n)}function Aa(e){return e.length}function eN(e){return e.length}function Qu(e,t){return t.push(e),e}var sd=1,Dl=1,dw=0,va=0,rr=0,jl="";function ip(e,t,n,r,o,s,u,d){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:sd,column:Dl,length:u,return:"",siblings:d}}function tN(){return rr}function nN(){return rr=va>0?Ol(jl,--va):0,Dl--,rr===10&&(Dl=1,sd--),rr}function xa(){return rr=va<dw?Ol(jl,va++):0,Dl++,rr===10&&(Dl=1,sd++),rr}function Vo(){return Ol(jl,va)}function Ef(){return va}function cd(e,t){return Nl(jl,e,t)}function gc(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 rN(e){return sd=Dl=1,dw=Aa(jl=e),va=0,[]}function aN(e){return jl="",e}function Wm(e){return fw(cd(va-1,Xg(e===91?e+2:e===40?e+1:e)))}function oN(e){for(;(rr=Vo())&&rr<33;)xa();return gc(e)>2||gc(rr)>3?"":" "}function iN(e,t){for(;--t&&xa()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return cd(e,Ef()+(t<6&&Vo()==32&&xa()==32))}function Xg(e){for(;xa();)switch(rr){case e:return va;case 34:case 39:e!==34&&e!==39&&Xg(rr);break;case 40:e===41&&Xg(e);break;case 92:xa();break}return va}function lN(e,t){for(;xa()&&e+rr!==57;)if(e+rr===84&&Vo()===47)break;return"/*"+cd(t,va-1)+"*"+op(e===47?e:xa())}function sN(e){for(;!gc(Vo());)xa();return cd(e,va)}function cN(e){return aN($f("",null,null,null,[""],e=rN(e),0,[0],e))}function $f(e,t,n,r,o,s,u,d,v){for(var m=0,g=0,p=u,b=0,x=0,C=0,E=1,y=1,w=1,$=0,O="",T=o,M=s,D=r,I=O;y;)switch(C=$,$=xa()){case 40:if(C!=108&&Ol(I,p-1)==58){J_(I+=wf(Wm($),"&","&\f"),"&\f",uw(m?d[m-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:I+=Wm($);break;case 9:case 10:case 13:case 32:I+=oN(C);break;case 92:I+=iN(Ef()-1,7);continue;case 47:switch(Vo()){case 42:case 47:Qu(uN(lN(xa(),Ef()),t,n,v),v),(gc(C||1)==5||gc(Vo()||1)==5)&&Aa(I)&&Nl(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*E:d[m++]=Aa(I)*w;case 125*E:case 59:case 0:switch($){case 0:case 125:y=0;case 59+g:w==-1&&(I=wf(I,/\f/g,"")),x>0&&(Aa(I)-p||E===0&&C===47)&&Qu(x>32?GS(I+";",r,n,p-1,v):GS(wf(I," ","")+";",r,n,p-2,v),v);break;case 59:I+=";";default:if(Qu(D=WS(I,t,n,m,g,o,d,O,T=[],M=[],p,s),s),$===123)if(g===0)$f(I,t,D,D,T,s,p,d,M);else{switch(b){case 99:if(Ol(I,3)===110)break;case 108:if(Ol(I,2)===97)break;default:g=0;case 100:case 109:case 115:}g?$f(e,D,D,r&&Qu(WS(e,D,D,0,0,o,d,O,o,T=[],p,M),M),o,M,p,d,r?T:M):$f(I,D,D,D,[""],M,0,d,M)}}m=g=x=0,E=w=1,O=I="",p=u;break;case 58:p=1+Aa(I),x=C;default:if(E<1){if($==123)--E;else if($==125&&E++==0&&nN()==125)continue}switch(I+=op($),$*E){case 38:w=g>0?1:(I+="\f",-1);break;case 44:d[m++]=(Aa(I)-1)*w,w=1;break;case 64:Vo()===45&&(I+=Wm(xa())),b=Vo(),g=p=Aa(O=I+=sN(Ef())),$++;break;case 45:C===45&&Aa(I)==2&&(E=0)}}return s}function WS(e,t,n,r,o,s,u,d,v,m,g,p){for(var b=o-1,x=o===0?s:[""],C=eN(x),E=0,y=0,w=0;E<r;++E)for(var $=0,O=Nl(e,b+1,b=uw(y=u[E])),T=e;$<C;++$)(T=fw(y>0?x[$]+" "+O:wf(O,/&\f/g,x[$])))&&(v[w++]=T);return ip(e,t,n,o===0?sw:d,v,m,g,p)}function uN(e,t,n,r){return ip(e,t,n,lw,op(tN()),Nl(e,2,-2),0,r)}function GS(e,t,n,r,o){return ip(e,t,n,cw,Nl(e,0,r),Nl(e,r+1,-1),r,o)}function Qg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fN(e,t,n,r){switch(e.type){case Z_:if(e.children.length)break;case K_:case X_:case cw:return e.return=e.return||e.value;case lw:return"";case Q_:return e.return=e.value+"{"+Qg(e.children,r)+"}";case sw:if(!Aa(e.value=e.props.join(",")))return""}return Aa(n=Qg(e.children,r))?e.return=e.value+"{"+n+"}":""}var YS="data-ant-cssinjs-cache-path",vw="_FILE_STYLE__",yi,mw=!0;function dN(){if(!yi&&(yi={},Ir())){var e=document.createElement("div");e.className=YS,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 s=o.split(":"),u=ee(s,2),d=u[0],v=u[1];yi[d]=v});var n=document.querySelector("style[".concat(YS,"]"));if(n){var r;mw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function vN(e){return dN(),!!yi[e]}function mN(e){var t=yi[e],n=null;if(t&&Ir())if(mw)n=vw;else{var r=document.querySelector("style[".concat(Ca,'="').concat(yi[e],'"]'));r?n=r.innerHTML:delete yi[e]}return[n,t]}var gN="_skip_check_",gw="_multi_value_";function Of(e){var t=Qg(cN(e),fN);return t.replace(/\{%%%\:[^;];}/g,";")}function hN(e){return vt(e)==="object"&&e&&(gN in e||gw in e)}function KS(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,s=e.split(",").map(function(u){var d,v=u.trim().split(/\s+/),m=v[0]||"",g=((d=m.match(/^\w+/))===null||d===void 0?void 0:d[0])||"";return m="".concat(g).concat(o).concat(m.slice(g.length)),[m].concat(je(v.slice(1))).join(" ")});return s.join(",")}var pN=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,s=r.injectHash,u=r.parentSelectors,d=n.hashId,v=n.layer;n.path;var m=n.hashPriority,g=n.transformers,p=g===void 0?[]:g;n.linters;var b="",x={};function C(w){var $=w.getName(d);if(!x[$]){var O=e(w.style,n,{root:!1,parentSelectors:u}),T=ee(O,1),M=T[0];x[$]="@keyframes ".concat(w.getName(d)).concat(M)}}function E(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(O){Array.isArray(O)?E(O,$):O&&$.push(O)}),$}var y=E(Array.isArray(t)?t:[t]);return y.forEach(function(w){var $=typeof w=="string"&&!o?{}:w;if(typeof $=="string")b+="".concat($,`
`);else if($._keyframe)C($);else{var O=p.reduce(function(T,M){var D;return(M==null||(D=M.visit)===null||D===void 0?void 0:D.call(M,T))||T},$);Object.keys(O).forEach(function(T){var M=O[T];if(vt(M)==="object"&&M&&(T!=="animationName"||!M._keyframe)&&!hN(M)){var D=!1,I=T.trim(),z=!1;(o||s)&&d?I.startsWith("@")?D=!0:I==="&"?I=KS("",d,m):I=KS(T,d,m):o&&!d&&(I==="&"||I==="")&&(I="",z=!0);var P=e(M,n,{root:z,injectHash:D,parentSelectors:[].concat(je(u),[I])}),j=ee(P,2),H=j[0],G=j[1];x=J(J({},x),G),b+="".concat(I).concat(H)}else{let V=function(R,N){var A=R.replace(/[A-Z]/g,function(_){return"-".concat(_.toLowerCase())}),q=N;!Y_[R]&&typeof q=="number"&&q!==0&&(q="".concat(q,"px")),R==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(C(N),q=N.getName(d)),b+="".concat(A,":").concat(q,";")};var k,F=(k=M==null?void 0:M.value)!==null&&k!==void 0?k:M;vt(M)==="object"&&M!==null&&M!==void 0&&M[gw]&&Array.isArray(F)?F.forEach(function(R){V(T,R)}):V(T,F)}})}}),o?v&&(b&&(b="@layer ".concat(v.name," {").concat(b,"}")),v.dependencies&&(x["@layer ".concat(v.name)]=v.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(v.name,";")}).join(`
`))):b="{".concat(b,"}"),[b,x]};function hw(e,t){return dc("".concat(e.join("%")).concat(t))}function bN(){return null}var pw="style";function Zg(e,t){var n=e.token,r=e.path,o=e.hashId,s=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,m=v===void 0?0:v,g=c.useContext(Dc),p=g.autoClear;g.mock;var b=g.defaultCache,x=g.hashPriority,C=g.container,E=g.ssrInline,y=g.transformers,w=g.linters,$=g.cache,O=g.layer,T=n._tokenKey,M=[T];O&&M.push("layer"),M.push.apply(M,je(r));var D=Kg,I=ap(pw,M,function(){var G=M.join("|");if(vN(G)){var k=mN(G),F=ee(k,2),V=F[0],R=F[1];if(V)return[V,T,R,{},d,m]}var N=t(),A=pN(N,{hashId:o,hashPriority:x,layer:O?s:void 0,path:r.join("-"),transformers:y,linters:w}),q=ee(A,2),_=q[0],L=q[1],W=Of(_),Y=hw(M,W);return[W,T,Y,L,d,m]},function(G,k){var F=ee(G,3),V=F[2];(k||p)&&Kg&&vc(V,{mark:Ca})},function(G){var k=ee(G,4),F=k[0];k[1];var V=k[2],R=k[3];if(D&&F!==vw){var N={mark:Ca,prepend:O?!1:"queue",attachTo:C,priority:m},A=typeof u=="function"?u():u;A&&(N.csp={nonce:A});var q=[],_=[];Object.keys(R).forEach(function(W){W.startsWith("@layer")?q.push(W):_.push(W)}),q.forEach(function(W){ao(Of(R[W]),"_layer-".concat(W),J(J({},N),{},{prepend:!0}))});var L=ao(F,V,N);L[Fo]=$.instanceId,L.setAttribute(_l,T),_.forEach(function(W){ao(Of(R[W]),"_effect-".concat(W),N)})}}),z=ee(I,3),P=z[0],j=z[1],H=z[2];return function(G){var k;if(!E||D||!b)k=c.createElement(bN,null);else{var F;k=c.createElement("style",Ae({},(F={},Q(F,_l,j),Q(F,Ca,H),F),{dangerouslySetInnerHTML:{__html:P}}))}return c.createElement(c.Fragment,null,k,G)}}var yN=function(t,n,r){var o=ee(t,6),s=o[0],u=o[1],d=o[2],v=o[3],m=o[4],g=o[5],p=r||{},b=p.plain;if(m)return null;var x=s,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)};return x=kf(s,u,d,C,b),v&&Object.keys(v).forEach(function(E){if(!n[E]){n[E]=!0;var y=Of(v[E]),w=kf(y,u,"_effect-".concat(E),C,b);E.startsWith("@layer")?x=w+x:x+=w}}),[g,d,x]},bw="cssVar",SN=function(t,n){var r=t.key,o=t.prefix,s=t.unitless,u=t.ignore,d=t.token,v=t.scope,m=v===void 0?"":v,g=c.useContext(Dc),p=g.cache.instanceId,b=g.container,x=d._tokenKey,C=[].concat(je(t.path),[r,m,x]),E=ap(bw,C,function(){var y=n(),w=ow(y,r,{prefix:o,unitless:s,ignore:u,scope:m}),$=ee(w,2),O=$[0],T=$[1],M=hw(C,T);return[O,T,M,r]},function(y){var w=ee(y,3),$=w[2];Kg&&vc($,{mark:Ca})},function(y){var w=ee(y,3),$=w[1],O=w[2];if($){var T=ao($,O,{mark:Ca,prepend:"queue",attachTo:b,priority:-999});T[Fo]=p,T.setAttribute(_l,r)}});return E},CN=function(t,n,r){var o=ee(t,4),s=o[1],u=o[2],d=o[3],v=r||{},m=v.plain;if(!s)return null;var g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=kf(s,d,u,p,m);return[g,u,b]},Bs;Bs={},Q(Bs,pw,yN),Q(Bs,iw,G_),Q(Bs,bw,CN);var hn=function(){function e(t,n){Qn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function vl(e){return e.notSplit=!0,e}vl(["borderTop","borderBottom"]),vl(["borderTop"]),vl(["borderBottom"]),vl(["borderLeft","borderRight"]),vl(["borderLeft"]),vl(["borderRight"]);var lp=c.createContext({});function yw(e){return Jx(e)||Kx(e)||ep(e)||ew()}function da(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Sw(e,t,n,r){if(!t.length)return n;var o=yw(t),s=o[0],u=o.slice(1),d;return!e&&typeof s=="number"?d=[]:Array.isArray(e)?d=je(e):d=J({},e),r&&n===void 0&&u.length===1?delete d[s][u[0]]:d[s]=Sw(d[s],u,n,r),d}function fa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!da(e,t.slice(0,-1))?e:Sw(e,t,n,r)}function xN(e){return vt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function XS(e){return Array.isArray(e)?[]:{}}var wN=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=XS(t[0]);return t.forEach(function(o){function s(u,d){var v=new Set(d),m=da(o,u),g=Array.isArray(m);if(g||xN(m)){if(!v.has(m)){v.add(m);var p=da(r,u);g?r=fa(r,u,[]):(!p||vt(p)!=="object")&&(r=fa(r,u,XS(m))),wN(m).forEach(function(b){s([].concat(je(u),[b]),v)})}}else r=fa(r,u,m)}s([])}),r}function EN(){}const $N=c.createContext({}),ud=()=>{const e=()=>{};return e.deprecated=EN,e},Cw=c.createContext(void 0);var ON={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"},RN={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},MN=J(J({},RN),{},{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 xw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},qf={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"]},MN),timePickerLocale:Object.assign({},xw)},Kr="${label} is not a valid ${type}",Si={locale:"en",Pagination:ON,DatePicker:qf,TimePicker:xw,Calendar:qf,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Kr,method:Kr,array:Kr,object:Kr,number:Kr,date:Kr,boolean:Kr,integer:Kr,float:Kr,regexp:Kr,email:Kr,url:Kr,hex:Kr},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({},Si.Modal);let Rf=[];const QS=()=>Rf.reduce((e,t)=>Object.assign(Object.assign({},e),t),Si.Modal);function TN(e){if(e){const t=Object.assign({},e);return Rf.push(t),QS(),()=>{Rf=Rf.filter(n=>n!==t),QS()}}Object.assign({},Si.Modal)}const sp=c.createContext(void 0),_i=(e,t)=>{const n=c.useContext(sp),r=c.useMemo(()=>{var s;const u=t||Si[e],d=(s=n==null?void 0:n[e])!==null&&s!==void 0?s:{};return Object.assign(Object.assign({},typeof u=="function"?u():u),d||{})},[e,t,n]),o=c.useMemo(()=>{const s=n==null?void 0:n.locale;return n!=null&&n.exist&&!s?Si.locale:s},[n]);return[r,o]},_N="internalMark",NN=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>TN(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(sp.Provider,{value:o},n)},ww={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"},hc=Object.assign(Object.assign({},ww),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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}),mr=Math.round;function Gm(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ZS=(e,t,n)=>n===0?e:e/100;function Fs(e,t){const n=t||255;return e>n?n:e<0?0:e}class gn{constructor(t){Q(this,"isValid",!0),Q(this,"r",0),Q(this,"g",0),Q(this,"b",0),Q(this,"a",1),Q(this,"_h",void 0),Q(this,"_s",void 0),Q(this,"_l",void 0),Q(this,"_v",void 0),Q(this,"_max",void 0),Q(this,"_min",void 0),Q(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(u){return o.startsWith(u)};var r=s;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):s("rgb")?this.fromRgbString(o):s("hsl")?this.fromHslString(o):(s("hsv")||s("hsb"))&&this.fromHsvString(o)}else if(t instanceof gn)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(n("rgb"))this.r=Fs(t.r),this.g=Fs(t.g),this.b=Fs(t.b),this.a=typeof t.a=="number"?Fs(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(s){const u=s/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=mr(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 n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,s=d=>(r[d]-this[d])*o+this[d],u={r:mr(s("r")),g:mr(s("g")),b:mr(s("b")),a:mr(s("a")*100)/100};return this._c(u)}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 n=this._c(t),r=this.a+n.a*(1-this.a),o=s=>mr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;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 s=mr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=mr(this.getSaturation()*100),r=mr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}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,n,r){const o=this.clone();return o[t]=Fs(n,r),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 n=t.replace("#","");function r(o,s){return parseInt(n[o]+n[s||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const b=mr(r*255);this.r=b,this.g=b,this.b=b}let s=0,u=0,d=0;const v=t/60,m=(1-Math.abs(2*r-1))*n,g=m*(1-Math.abs(v%2-1));v>=0&&v<1?(s=m,u=g):v>=1&&v<2?(s=g,u=m):v>=2&&v<3?(u=m,d=g):v>=3&&v<4?(u=g,d=m):v>=4&&v<5?(s=g,d=m):v>=5&&v<6&&(s=m,d=g);const p=r-m/2;this.r=mr((s+p)*255),this.g=mr((u+p)*255),this.b=mr((d+p)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const s=mr(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const u=t/60,d=Math.floor(u),v=u-d,m=mr(r*(1-n)*255),g=mr(r*(1-n*v)*255),p=mr(r*(1-n*(1-v))*255);switch(d){case 0:this.g=p,this.b=m;break;case 1:this.r=g,this.b=m;break;case 2:this.r=m,this.b=p;break;case 3:this.r=m,this.g=g;break;case 4:this.r=p,this.g=m;break;case 5:default:this.g=m,this.b=g;break}}fromHsvString(t){const n=Gm(t,ZS);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Gm(t,ZS);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Gm(t,(r,o)=>o.includes("%")?mr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Zu=2,JS=.16,DN=.05,IN=.05,PN=.15,Ew=5,$w=4,AN=[{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 eC(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Zu*t:Math.round(e.h)+Zu*t:r=n?Math.round(e.h)+Zu*t:Math.round(e.h)-Zu*t,r<0?r+=360:r>=360&&(r-=360),r}function tC(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-JS*t:t===$w?r=e.s+JS:r=e.s+DN*t,r>1&&(r=1),n&&t===Ew&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nC(e,t,n){var r;return n?r=e.v+IN*t:r=e.v-PN*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function pc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new gn(e),o=r.toHsv(),s=Ew;s>0;s-=1){var u=new gn({h:eC(o,s,!0),s:tC(o,s,!0),v:nC(o,s,!0)});n.push(u)}n.push(r);for(var d=1;d<=$w;d+=1){var v=new gn({h:eC(o,d),s:tC(o,d),v:nC(o,d)});n.push(v)}return t.theme==="dark"?AN.map(function(m){var g=m.index,p=m.amount;return new gn(t.backgroundColor||"#141414").mix(n[g],p).toHexString()}):n.map(function(m){return m.toHexString()})}var Ym={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"},Jg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Jg.primary=Jg[5];var eh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];eh.primary=eh[5];var th=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];th.primary=th[5];var Wf=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wf.primary=Wf[5];var nh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];nh.primary=nh[5];var rh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];rh.primary=rh[5];var ah=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ah.primary=ah[5];var oh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];oh.primary=oh[5];var Gf=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Gf.primary=Gf[5];var ih=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ih.primary=ih[5];var lh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];lh.primary=lh[5];var sh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];sh.primary=sh[5];var ch=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ch.primary=ch[5];var Km={red:Jg,volcano:eh,orange:th,gold:Wf,yellow:nh,lime:rh,green:ah,cyan:oh,blue:Gf,geekblue:ih,purple:lh,magenta:sh,grey:ch};function zN(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:s,colorError:u,colorInfo:d,colorPrimary:v,colorBgBase:m,colorTextBase:g}=e,p=n(v),b=n(o),x=n(s),C=n(u),E=n(d),y=r(m,g),w=e.colorLink||e.colorInfo,$=n(w),O=new gn(C[1]).mix(new gn(C[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:b[1],colorSuccessBgHover:b[2],colorSuccessBorder:b[3],colorSuccessBorderHover:b[4],colorSuccessHover:b[4],colorSuccess:b[6],colorSuccessActive:b[7],colorSuccessTextHover:b[8],colorSuccessText:b[9],colorSuccessTextActive:b[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:O,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:x[1],colorWarningBgHover:x[2],colorWarningBorder:x[3],colorWarningBorderHover:x[4],colorWarningHover:x[4],colorWarning:x[6],colorWarningActive:x[7],colorWarningTextHover:x[8],colorWarningText:x[9],colorWarningTextActive:x[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new gn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const jN=e=>{let t=e,n=e,r=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?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function HN(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},jN(r))}const LN=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Mf(e){return(e+8)/e}function BN(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.pow(Math.E,o/5),u=r>1?Math.floor(s):Math.ceil(s);return Math.floor(u/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Mf(n)}))}const FN=e=>{const t=BN(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),o=n[1],s=n[0],u=n[2],d=r[1],v=r[0],m=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:u,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:m,lineHeightSM:v,fontHeight:Math.round(d*o),fontHeightLG:Math.round(m*u),fontHeightSM:Math.round(v*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function VN(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const la=(e,t)=>new gn(e).setA(t).toRgbString(),Vs=(e,t)=>new gn(e).darken(t).toHexString(),kN=e=>{const t=pc(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]}},UN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:la(r,.88),colorTextSecondary:la(r,.65),colorTextTertiary:la(r,.45),colorTextQuaternary:la(r,.25),colorFill:la(r,.15),colorFillSecondary:la(r,.06),colorFillTertiary:la(r,.04),colorFillQuaternary:la(r,.02),colorBgSolid:la(r,1),colorBgSolidHover:la(r,.75),colorBgSolidActive:la(r,.95),colorBgLayout:Vs(n,4),colorBgContainer:Vs(n,0),colorBgElevated:Vs(n,0),colorBgSpotlight:la(r,.85),colorBgBlur:"transparent",colorBorder:Vs(n,15),colorBorderSecondary:Vs(n,6)}};function qN(e){Ym.pink=Ym.magenta,Km.pink=Km.magenta;const t=Object.keys(ww).map(n=>{const r=e[n]===Ym[n]?Km[n]:pc(e[n]);return Array.from({length:10},()=>1).reduce((o,s,u)=>(o[`${n}-${u+1}`]=r[u],o[`${n}${u+1}`]=r[u],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),zN(e,{generateColorPalettes:kN,generateNeutralColorPalettes:UN})),FN(e.fontSize)),VN(e)),LN(e)),HN(e))}const Ow=Yg(qN),uh={token:hc,override:{override:hc},hashed:!0},Rw=Ie.createContext(uh),bc="ant",fd="anticon",WN=["outlined","borderless","filled","underlined"],GN=(e,t)=>t||(e?`${bc}-${e}`:bc),Wt=c.createContext({getPrefixCls:GN,iconPrefixCls:fd}),{Consumer:XF}=Wt,rC={};function vo(e){const t=c.useContext(Wt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,s=t[e];return Object.assign(Object.assign({classNames:rC,styles:rC},s),{getPrefixCls:n,direction:r,getPopupContainer:o})}const YN=`-ant-${Date.now()}-${Math.random()}`;function KN(e,t){const n={},r=(u,d)=>{let v=u.clone();return v=(d==null?void 0:d(v))||v,v.toRgbString()},o=(u,d)=>{const v=new gn(u),m=pc(v.toRgbString());n[`${d}-color`]=r(v),n[`${d}-color-disabled`]=m[1],n[`${d}-color-hover`]=m[4],n[`${d}-color-active`]=m[6],n[`${d}-color-outline`]=v.clone().setA(.2).toRgbString(),n[`${d}-color-deprecated-bg`]=m[0],n[`${d}-color-deprecated-border`]=m[2]};if(t.primaryColor){o(t.primaryColor,"primary");const u=new gn(t.primaryColor),d=pc(u.toRgbString());d.forEach((m,g)=>{n[`primary-${g+1}`]=m}),n["primary-color-deprecated-l-35"]=r(u,m=>m.lighten(35)),n["primary-color-deprecated-l-20"]=r(u,m=>m.lighten(20)),n["primary-color-deprecated-t-20"]=r(u,m=>m.tint(20)),n["primary-color-deprecated-t-50"]=r(u,m=>m.tint(50)),n["primary-color-deprecated-f-12"]=r(u,m=>m.setA(m.a*.12));const v=new gn(d[0]);n["primary-color-active-deprecated-f-30"]=r(v,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(v,m=>m.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"),`
  :root {
    ${Object.keys(n).map(u=>`--${e}-${u}: ${n[u]};`).join(`
`)}
  }
  `.trim()}function XN(e,t){const n=KN(e,t);Ir()&&ao(n,`${YN}-dynamic-theme`)}const ma=c.createContext(!1),Mw=e=>{let{children:t,disabled:n}=e;const r=c.useContext(ma);return c.createElement(ma.Provider,{value:n??r},t)},Ci=c.createContext(void 0),QN=e=>{let{children:t,size:n}=e;const r=c.useContext(Ci);return c.createElement(Ci.Provider,{value:n||r},t)};function ZN(){const e=c.useContext(ma),t=c.useContext(Ci);return{componentDisabled:e,componentSize:t}}var Tw=Zn(function e(){Qn(this,e)}),_w="CALC_UNIT",JN=new RegExp(_w,"g");function Xm(e){return typeof e=="number"?"".concat(e).concat(_w):e}var eD=function(e){uo(n,e);var t=fo(n);function n(r,o){var s;Qn(this,n),s=t.call(this),Q(Zt(s),"result",""),Q(Zt(s),"unitlessCssVar",void 0),Q(Zt(s),"lowPriority",void 0);var u=vt(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):u==="number"?s.result=Xm(r):u==="string"&&(s.result=r),s}return Zn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Xm(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Xm(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?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 n?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 s=this,u=o||{},d=u.unit,v=!0;return typeof d=="boolean"?v=d:Array.from(this.unitlessCssVar).some(function(m){return s.result.includes(m)})&&(v=!1),this.result=this.result.replace(JN,v?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Tw),tD=function(e){uo(n,e);var t=fo(n);function n(r){var o;return Qn(this,n),o=t.call(this),Q(Zt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Zn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(Tw),nD=function(t,n){var r=t==="css"?eD:tD;return function(o){return new r(o,n)}},aC=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function tn(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(s))},[]);return n}function Il(e){var t=c.useRef(!1),n=c.useState(e),r=ee(n,2),o=r[0],s=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function u(d,v){v&&t.current||s(d)}return[o,u]}function Qm(e){return e!==void 0}function An(e,t){var n=t||{},r=n.defaultValue,o=n.value,s=n.onChange,u=n.postState,d=Il(function(){return Qm(o)?o:Qm(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),v=ee(d,2),m=v[0],g=v[1],p=o!==void 0?o:m,b=u?u(p):p,x=tn(s),C=Il([p]),E=ee(C,2),y=E[0],w=E[1];Uf(function(){var O=y[0];m!==O&&x(m,O)},[y]),Uf(function(){Qm(o)||g(o)},[o]);var $=tn(function(O,T){g(O,T),w([p],T)});return[b,$]}function oC(e,t,n,r){var o=J({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var v=ee(d,2),m=v[0],g=v[1];if(o!=null&&o[m]||o!=null&&o[g]){var p;(p=o[g])!==null&&p!==void 0||(o[g]=o==null?void 0:o[m])}})}var u=J(J({},n),o);return Object.keys(u).forEach(function(d){u[d]===t[d]&&delete u[d]}),u}var Nw=typeof CSSINJS_STATISTIC<"u",fh=!0;function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Nw)return Object.assign.apply(Object,[{}].concat(t));fh=!1;var r={};return t.forEach(function(o){if(vt(o)==="object"){var s=Object.keys(o);s.forEach(function(u){Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:function(){return o[u]}})})}}),fh=!0,r}var iC={};function rD(){}var aD=function(t){var n,r=t,o=rD;return Nw&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(u,d){if(fh){var v;(v=n)===null||v===void 0||v.add(d)}return u[d]}}),o=function(u,d){var v;iC[u]={global:Array.from(n),component:J(J({},(v=iC[u])===null||v===void 0?void 0:v.component),d)}}),{token:r,keys:n,flush:o}};function lC(e,t,n){if(typeof n=="function"){var r;return n(Sn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function oD(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(s){return ge(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(s){return ge(s)}).join(","),")")}}}var iD=1e3*60*10,lD=function(){function e(){Qn(this,e),Q(this,"map",new Map),Q(this,"objectIDMap",new WeakMap),Q(this,"nextID",0),Q(this,"lastAccessBeat",new Map),Q(this,"accessBeat",0)}return Zn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(s){return s&&vt(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(vt(s),"_").concat(s)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,s){r-o>iD&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e}(),sC=new lD;function sD(e,t){return Ie.useMemo(function(){var n=sC.get(t);if(n)return n;var r=e();return sC.set(t,r),r},t)}var cD=function(){return{}};function uD(e){var t=e.useCSP,n=t===void 0?cD:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,u=e.getCommonStyle,d=e.getCompUnitless;function v(b,x,C,E){var y=Array.isArray(b)?b[0]:b;function w(z){return"".concat(String(y)).concat(z.slice(0,1).toUpperCase()).concat(z.slice(1))}var $=(E==null?void 0:E.unitless)||{},O=typeof d=="function"?d(b):{},T=J(J({},O),{},Q({},w("zIndexPopup"),!0));Object.keys($).forEach(function(z){T[w(z)]=$[z]});var M=J(J({},E),{},{unitless:T,prefixToken:w}),D=g(b,x,C,M),I=m(y,C,M);return function(z){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,j=D(z,P),H=ee(j,2),G=H[1],k=I(P),F=ee(k,2),V=F[0],R=F[1];return[V,G,R]}}function m(b,x,C){var E=C.unitless,y=C.injectStyle,w=y===void 0?!0:y,$=C.prefixToken,O=C.ignore,T=function(I){var z=I.rootCls,P=I.cssVar,j=P===void 0?{}:P,H=r(),G=H.realToken;return SN({path:[b],prefix:j.prefix,key:j.key,unitless:E,ignore:O,token:G,scope:z},function(){var k=lC(b,G,x),F=oC(b,G,k,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(k).forEach(function(V){F[$(V)]=F[V],delete F[V]}),F}),null},M=function(I){var z=r(),P=z.cssVar;return[function(j){return w&&P?Ie.createElement(Ie.Fragment,null,Ie.createElement(T,{rootCls:I,cssVar:P,component:b}),j):j},P==null?void 0:P.key]};return M}function g(b,x,C){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(b)?b:[b,b],w=ee(y,1),$=w[0],O=y.join("-"),T=e.layer||{name:"antd"};return function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,I=r(),z=I.theme,P=I.realToken,j=I.hashId,H=I.token,G=I.cssVar,k=o(),F=k.rootPrefixCls,V=k.iconPrefixCls,R=n(),N=G?"css":"js",A=sD(function(){var U=new Set;return G&&Object.keys(E.unitless||{}).forEach(function(X){U.add(xf(X,G.prefix)),U.add(xf(X,aC($,G.prefix)))}),nD(N,U)},[N,$,G==null?void 0:G.prefix]),q=oD(N),_=q.max,L=q.min,W={theme:z,token:H,hashId:j,nonce:function(){return R.nonce},clientOnly:E.clientOnly,layer:T,order:E.order||-999};typeof s=="function"&&Zg(J(J({},W),{},{clientOnly:!1,path:["Shared",F]}),function(){return s(H,{prefix:{rootPrefixCls:F,iconPrefixCls:V},csp:R})});var Y=Zg(J(J({},W),{},{path:[O,M,V]}),function(){if(E.injectStyle===!1)return[];var U=aD(H),X=U.token,Z=U.flush,te=lC($,P,C),ne=".".concat(M),re=oC($,P,te,{deprecatedTokens:E.deprecatedTokens});G&&te&&vt(te)==="object"&&Object.keys(te).forEach(function(ce){te[ce]="var(".concat(xf(ce,aC($,G.prefix)),")")});var le=Sn(X,{componentCls:ne,prefixCls:M,iconCls:".".concat(V),antCls:".".concat(F),calc:A,max:_,min:L},G?te:re),oe=x(le,{hashId:j,prefixCls:M,rootPrefixCls:F,iconPrefixCls:V});Z($,re);var ie=typeof u=="function"?u(le,M,D,E.resetFont):null;return[E.resetStyle===!1?null:ie,oe]});return[Y,j]}}function p(b,x,C){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=g(b,x,C,J({resetStyle:!1,order:-998},E)),w=function(O){var T=O.prefixCls,M=O.rootCls,D=M===void 0?T:M;return y(T,D),null};return w}return{genStyleHooks:v,genSubStyleComponent:p,genComponentStyleHook:g}}const xi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fD="5.24.9";function Zm(e){return e>=0&&e<=255}function Ks(e,t){const{r:n,g:r,b:o,a:s}=new gn(e).toRgb();if(s<1)return e;const{r:u,g:d,b:v}=new gn(t).toRgb();for(let m=.01;m<=1;m+=.01){const g=Math.round((n-u*(1-m))/m),p=Math.round((r-d*(1-m))/m),b=Math.round((o-v*(1-m))/m);if(Zm(g)&&Zm(p)&&Zm(b))return new gn({r:g,g:p,b,a:Math.round(m*100)/100}).toRgbString()}return new gn({r:n,g:r,b:o,a:1}).toRgbString()}var dD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dw(e){const{override:t}=e,n=dD(e,["override"]),r=Object.assign({},t);Object.keys(hc).forEach(b=>{delete r[b]});const o=Object.assign(Object.assign({},n),r),s=480,u=576,d=768,v=992,m=1200,g=1600;if(o.motion===!1){const b="0s";o.motionDurationFast=b,o.motionDurationMid=b,o.motionDurationSlow=b}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ks(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:Ks(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ks(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:Ks(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:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:s,screenXSMin:s,screenXSMax:u-1,screenSM:u,screenSMMin:u,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:v-1,screenLG:v,screenLGMin:v,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new gn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new gn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new gn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var cC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Iw={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},vD={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},mD={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},Pw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,s=cC(t,["override"]);let u=Object.assign(Object.assign({},r),{override:o});return u=Dw(u),s&&Object.entries(s).forEach(d=>{let[v,m]=d;const{theme:g}=m,p=cC(m,["theme"]);let b=p;g&&(b=Pw(Object.assign(Object.assign({},u),p),{override:p},g)),u[v]=b}),u};function ga(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Ie.useContext(Rw),s=`${fD}-${t||""}`,u=n||Ow,[d,v,m]=W_(u,[hc,e],{salt:s,override:r,getComputedToken:Pw,formatToken:Dw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Iw,ignore:vD,preserve:mD}});return[u,m,t?v:"",d,o]}const wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Cr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},dd=()=>({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"}}),Ic=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gD=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"}}}),hD=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,u={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:Object.assign(Object.assign(Object.assign({},d),u),{[o]:u})}},vd=(e,t)=>({outline:`${ge(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),yc=(e,t)=>({"&:focus-visible":Object.assign({},vd(e,t))}),Aw=e=>({[`.${e}`]:Object.assign(Object.assign({},dd()),{[`.${e} .${e}-icon`]:{display:"block"}})}),zw=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},yc(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:gr,genComponentStyleHook:pD,genSubStyleComponent:jw}=uD({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(Wt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=ga();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=c.useContext(Wt);return e??{}},getResetStyles:(e,t)=>{var n;const r=gD(e);return[r,{"&":r},Aw((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:fd)]},getCommonStyle:hD,getCompUnitless:()=>Iw});function bD(e,t){return xi.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],u=e[`${r}6`],d=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:s,darkColor:u,textColor:d}))},{})}const yD=(e,t)=>{const[n,r]=ga();return Zg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Aw(e)])},SD=Object.assign({},rd),{useId:uC}=SD,CD=()=>"",xD=typeof uC>"u"?CD:uC;function wD(e,t,n){var r;ud();const o=e||{},s=o.inherit===!1||!t?Object.assign(Object.assign({},uh),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:uh.hashed,cssVar:t==null?void 0:t.cssVar}):t,u=xD();return Nc(()=>{var d,v;if(!e)return t;const m=Object.assign({},s.components);Object.keys(e.components||{}).forEach(b=>{m[b]=Object.assign(Object.assign({},m[b]),e.components[b])});const g=`css-var-${u.replace(/:/g,"")}`,p=((d=o.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((v=o.cssVar)===null||v===void 0?void 0:v.key)||g});return Object.assign(Object.assign(Object.assign({},s),o),{token:Object.assign(Object.assign({},s.token),o.token),components:m,cssVar:p})},[o,s],(d,v)=>d.some((m,g)=>{const p=v[g];return!mc(m,p,!0)}))}var ED=["children"],Hw=c.createContext({});function $D(e){var t=e.children,n=Et(e,ED);return c.createElement(Hw.Provider,{value:n},t)}var OD=function(e){uo(n,e);var t=fo(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function RD(e){var t=c.useReducer(function(d){return d+1},0),n=ee(t,2),r=n[1],o=c.useRef(e),s=tn(function(){return o.current}),u=tn(function(d){o.current=typeof d=="function"?d(o.current):d,r()});return[s,u]}var Ho="none",Ju="appear",ef="enter",tf="leave",fC="none",ya="prepare",El="start",$l="active",cp="end",Lw="prepared";function dC(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function MD(e,t){var n={animationend:dC("Animation","AnimationEnd"),transitionend:dC("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TD=MD(Ir(),typeof window<"u"?window:{}),Bw={};if(Ir()){var _D=document.createElement("div");Bw=_D.style}var nf={};function Fw(e){if(nf[e])return nf[e];var t=TD[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in Bw)return nf[e]=t[s],nf[e]}return""}var Vw=Fw("animationend"),kw=Fw("transitionend"),Uw=!!(Vw&&kw),vC=Vw||"animationend",mC=kw||"transitionend";function gC(e,t){if(!e)return null;if(vt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const ND=function(e){var t=c.useRef();function n(o){o&&(o.removeEventListener(mC,e),o.removeEventListener(vC,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(mC,e),o.addEventListener(vC,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var qw=Ir()?c.useLayoutEffect:c.useEffect;const DD=function(){var e=c.useRef(null);function t(){kt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var s=kt(function(){o<=1?r({isCanceled:function(){return s!==e.current}}):n(r,o-1)});e.current=s}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var ID=[ya,El,$l,cp],PD=[ya,Lw],Ww=!1,AD=!0;function Gw(e){return e===$l||e===cp}const zD=function(e,t,n){var r=Il(fC),o=ee(r,2),s=o[0],u=o[1],d=DD(),v=ee(d,2),m=v[0],g=v[1];function p(){u(ya,!0)}var b=t?PD:ID;return qw(function(){if(s!==fC&&s!==cp){var x=b.indexOf(s),C=b[x+1],E=n(s);E===Ww?u(C,!0):C&&m(function(y){function w(){y.isCanceled()||u(C,!0)}E===!0?w():Promise.resolve(E).then(w)})}},[e,s]),c.useEffect(function(){return function(){g()}},[]),[p,s]};function jD(e,t,n,r){var o=r.motionEnter,s=o===void 0?!0:o,u=r.motionAppear,d=u===void 0?!0:u,v=r.motionLeave,m=v===void 0?!0:v,g=r.motionDeadline,p=r.motionLeaveImmediately,b=r.onAppearPrepare,x=r.onEnterPrepare,C=r.onLeavePrepare,E=r.onAppearStart,y=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,O=r.onEnterActive,T=r.onLeaveActive,M=r.onAppearEnd,D=r.onEnterEnd,I=r.onLeaveEnd,z=r.onVisibleChanged,P=Il(),j=ee(P,2),H=j[0],G=j[1],k=RD(Ho),F=ee(k,2),V=F[0],R=F[1],N=Il(null),A=ee(N,2),q=A[0],_=A[1],L=V(),W=c.useRef(!1),Y=c.useRef(null);function U(){return n()}var X=c.useRef(!1);function Z(){R(Ho),_(null,!0)}var te=tn(function(Re){var Le=V();if(Le!==Ho){var Ee=U();if(!(Re&&!Re.deadline&&Re.target!==Ee)){var Me=X.current,Fe;Le===Ju&&Me?Fe=M==null?void 0:M(Ee,Re):Le===ef&&Me?Fe=D==null?void 0:D(Ee,Re):Le===tf&&Me&&(Fe=I==null?void 0:I(Ee,Re)),Me&&Fe!==!1&&Z()}}}),ne=ND(te),re=ee(ne,1),le=re[0],oe=function(Le){switch(Le){case Ju:return Q(Q(Q({},ya,b),El,E),$l,$);case ef:return Q(Q(Q({},ya,x),El,y),$l,O);case tf:return Q(Q(Q({},ya,C),El,w),$l,T);default:return{}}},ie=c.useMemo(function(){return oe(L)},[L]),ce=zD(L,!e,function(Re){if(Re===ya){var Le=ie[ya];return Le?Le(U()):Ww}if(fe in ie){var Ee;_(((Ee=ie[fe])===null||Ee===void 0?void 0:Ee.call(ie,U(),null))||null)}return fe===$l&&L!==Ho&&(le(U()),g>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){te({deadline:!0})},g))),fe===Lw&&Z(),AD}),de=ee(ce,2),ue=de[0],fe=de[1],xe=Gw(fe);X.current=xe;var pe=c.useRef(null);qw(function(){if(!(W.current&&pe.current===t)){G(t);var Re=W.current;W.current=!0;var Le;!Re&&t&&d&&(Le=Ju),Re&&t&&s&&(Le=ef),(Re&&!t&&m||!Re&&p&&!t&&m)&&(Le=tf);var Ee=oe(Le);Le&&(e||Ee[ya])?(R(Le),ue()):R(Ho),pe.current=t}},[t]),c.useEffect(function(){(L===Ju&&!d||L===ef&&!s||L===tf&&!m)&&R(Ho)},[d,s,m]),c.useEffect(function(){return function(){W.current=!1,clearTimeout(Y.current)}},[]);var Ne=c.useRef(!1);c.useEffect(function(){H&&(Ne.current=!0),H!==void 0&&L===Ho&&((Ne.current||H)&&(z==null||z(H)),Ne.current=!0)},[H,L]);var De=q;return ie[ya]&&fe===El&&(De=J({transition:"none"},De)),[L,fe,De,H??t]}function HD(e){var t=e;vt(e)==="object"&&(t=e.transitionSupport);function n(o,s){return!!(o.motionName&&t&&s!==!1)}var r=c.forwardRef(function(o,s){var u=o.visible,d=u===void 0?!0:u,v=o.removeOnLeave,m=v===void 0?!0:v,g=o.forceRender,p=o.children,b=o.motionName,x=o.leavedClassName,C=o.eventProps,E=c.useContext(Hw),y=E.motion,w=n(o,y),$=c.useRef(),O=c.useRef();function T(){try{return $.current instanceof HTMLElement?$.current:Cf(O.current)}catch{return null}}var M=jD(w,d,T,o),D=ee(M,4),I=D[0],z=D[1],P=D[2],j=D[3],H=c.useRef(j);j&&(H.current=!0);var G=c.useCallback(function(A){$.current=A,Zh(s,A)},[s]),k,F=J(J({},C),{},{visible:d});if(!p)k=null;else if(I===Ho)j?k=p(J({},F),G):!m&&H.current&&x?k=p(J(J({},F),{},{className:x}),G):g||!m&&!x?k=p(J(J({},F),{},{style:{display:"none"}}),G):k=null;else{var V;z===ya?V="prepare":Gw(z)?V="active":z===El&&(V="start");var R=gC(b,"".concat(I,"-").concat(V));k=p(J(J({},F),{},{className:me(gC(b,I),Q(Q({},R,R&&V),b,typeof b=="string")),style:P}),G)}if(c.isValidElement(k)&&Wo(k)){var N=Ti(k);N||(k=c.cloneElement(k,{ref:G}))}return c.createElement(OD,{ref:O},k)});return r.displayName="CSSMotion",r}const Go=HD(Uw);var dh="add",vh="keep",mh="remove",Jm="removed";function LD(e){var t;return e&&vt(e)==="object"&&"key"in e?t=e:t={key:e},J(J({},t),{},{key:String(t.key)})}function gh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(LD)}function BD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,s=gh(e),u=gh(t);s.forEach(function(m){for(var g=!1,p=r;p<o;p+=1){var b=u[p];if(b.key===m.key){r<p&&(n=n.concat(u.slice(r,p).map(function(x){return J(J({},x),{},{status:dh})})),r=p),n.push(J(J({},b),{},{status:vh})),r+=1,g=!0;break}}g||n.push(J(J({},m),{},{status:mh}))}),r<o&&(n=n.concat(u.slice(r).map(function(m){return J(J({},m),{},{status:dh})})));var d={};n.forEach(function(m){var g=m.key;d[g]=(d[g]||0)+1});var v=Object.keys(d).filter(function(m){return d[m]>1});return v.forEach(function(m){n=n.filter(function(g){var p=g.key,b=g.status;return p!==m||b!==mh}),n.forEach(function(g){g.key===m&&(g.status=vh)})}),n}var FD=["component","children","onVisibleChanged","onAllRemoved"],VD=["status"],kD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Go,n=function(r){uo(s,r);var o=fo(s);function s(){var u;Qn(this,s);for(var d=arguments.length,v=new Array(d),m=0;m<d;m++)v[m]=arguments[m];return u=o.call.apply(o,[this].concat(v)),Q(Zt(u),"state",{keyEntities:[]}),Q(Zt(u),"removeKey",function(g){u.setState(function(p){var b=p.keyEntities.map(function(x){return x.key!==g?x:J(J({},x),{},{status:Jm})});return{keyEntities:b}},function(){var p=u.state.keyEntities,b=p.filter(function(x){var C=x.status;return C!==Jm}).length;b===0&&u.props.onAllRemoved&&u.props.onAllRemoved()})}),u}return Zn(s,[{key:"render",value:function(){var d=this,v=this.state.keyEntities,m=this.props,g=m.component,p=m.children,b=m.onVisibleChanged;m.onAllRemoved;var x=Et(m,FD),C=g||c.Fragment,E={};return kD.forEach(function(y){E[y]=x[y],delete x[y]}),delete x.keys,c.createElement(C,x,v.map(function(y,w){var $=y.status,O=Et(y,VD),T=$===dh||$===vh;return c.createElement(t,Ae({},E,{key:O.key,visible:T,eventProps:O,onVisibleChanged:function(D){b==null||b(D,{key:O.key}),D||d.removeKey(O.key)}}),function(M,D){return p(J(J({},M),{},{index:w}),D)})}))}}],[{key:"getDerivedStateFromProps",value:function(d,v){var m=d.keys,g=v.keyEntities,p=gh(m),b=BD(g,p);return{keyEntities:b.filter(function(x){var C=g.find(function(E){var y=E.key;return x.key===y});return!(C&&C.status===Jm&&x.status===mh)})}}}]),s}(c.Component);return Q(n,"defaultProps",{component:"div"}),n}const Yw=UD(Uw);function qD(e){const{children:t}=e,[,n]=ga(),{motion:r}=n,o=c.useRef(!1);return o.current=o.current||r===!1,o.current?c.createElement($D,{motion:r},t):t}const WD=()=>null;var GD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YD=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Yf,Kw,Xw,Qw;function Tf(){return Yf||bc}function KD(){return Kw||fd}function XD(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const QD=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Yf=t),n!==void 0&&(Kw=n),"holderRender"in e&&(Qw=o),r&&(XD(r)?XN(Tf(),r):Xw=r)},ZD=()=>({getPrefixCls:(e,t)=>t||(e?`${Tf()}-${e}`:Tf()),getIconPrefixCls:KD,getRootPrefixCls:()=>Yf||Tf(),getTheme:()=>Xw,holderRender:Qw}),JD=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:s,form:u,locale:d,componentSize:v,direction:m,space:g,splitter:p,virtual:b,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,popupOverflow:E,legacyLocale:y,parentContext:w,iconPrefixCls:$,theme:O,componentDisabled:T,segmented:M,statistic:D,spin:I,calendar:z,carousel:P,cascader:j,collapse:H,typography:G,checkbox:k,descriptions:F,divider:V,drawer:R,skeleton:N,steps:A,image:q,layout:_,list:L,mentions:W,modal:Y,progress:U,result:X,slider:Z,breadcrumb:te,menu:ne,pagination:re,input:le,textArea:oe,empty:ie,badge:ce,radio:de,rate:ue,switch:fe,transfer:xe,avatar:pe,message:Ne,tag:De,table:Re,card:Le,tabs:Ee,timeline:Me,timePicker:Fe,upload:Te,notification:Ye,tree:Xe,colorPicker:He,datePicker:Ze,rangePicker:et,flex:Ge,wave:qe,dropdown:ye,warning:Oe,tour:$e,tooltip:Se,popover:Be,popconfirm:mt,floatButtonGroup:Ot,variant:Dt,inputNumber:Kt,treeSelect:zt}=e,Tt=c.useCallback((st,dt)=>{const{prefixCls:Vt}=e;if(dt)return dt;const jt=Vt||w.getPrefixCls("");return st?`${jt}-${st}`:jt},[w.getPrefixCls,e.prefixCls]),Rt=$||w.iconPrefixCls||fd,gt=n||w.csp;yD(Rt,gt);const at=wD(O,w.theme,{prefixCls:Tt("")}),tt={csp:gt,autoInsertSpaceInButton:r,alert:o,anchor:s,locale:d||y,direction:m,space:g,splitter:p,virtual:b,popupMatchSelectWidth:C??x,popupOverflow:E,getPrefixCls:Tt,iconPrefixCls:Rt,theme:at,segmented:M,statistic:D,spin:I,calendar:z,carousel:P,cascader:j,collapse:H,typography:G,checkbox:k,descriptions:F,divider:V,drawer:R,skeleton:N,steps:A,image:q,input:le,textArea:oe,layout:_,list:L,mentions:W,modal:Y,progress:U,result:X,slider:Z,breadcrumb:te,menu:ne,pagination:re,empty:ie,badge:ce,radio:de,rate:ue,switch:fe,transfer:xe,avatar:pe,message:Ne,tag:De,table:Re,card:Le,tabs:Ee,timeline:Me,timePicker:Fe,upload:Te,notification:Ye,tree:Xe,colorPicker:He,datePicker:Ze,rangePicker:et,flex:Ge,wave:qe,dropdown:ye,warning:Oe,tour:$e,tooltip:Se,popover:Be,popconfirm:mt,floatButtonGroup:Ot,variant:Dt,inputNumber:Kt,treeSelect:zt},Qe=Object.assign({},w);Object.keys(tt).forEach(st=>{tt[st]!==void 0&&(Qe[st]=tt[st])}),YD.forEach(st=>{const dt=e[st];dt&&(Qe[st]=dt)}),typeof r<"u"&&(Qe.button=Object.assign({autoInsertSpace:r},Qe.button));const Ct=Nc(()=>Qe,Qe,(st,dt)=>{const Vt=Object.keys(st),jt=Object.keys(dt);return Vt.length!==jt.length||Vt.some(Lt=>st[Lt]!==dt[Lt])}),{layer:yt}=c.useContext(Dc),We=c.useMemo(()=>({prefixCls:Rt,csp:gt,layer:yt?"antd":void 0}),[Rt,gt,yt]);let Ke=c.createElement(c.Fragment,null,c.createElement(WD,{dropdownMatchSelectWidth:x}),t);const it=c.useMemo(()=>{var st,dt,Vt,jt;return wl(((st=Si.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((Vt=(dt=Ct.locale)===null||dt===void 0?void 0:dt.Form)===null||Vt===void 0?void 0:Vt.defaultValidateMessages)||{},((jt=Ct.form)===null||jt===void 0?void 0:jt.validateMessages)||{},(u==null?void 0:u.validateMessages)||{})},[Ct,u==null?void 0:u.validateMessages]);Object.keys(it).length>0&&(Ke=c.createElement(Cw.Provider,{value:it},Ke)),d&&(Ke=c.createElement(NN,{locale:d,_ANT_MARK__:_N},Ke)),Ke=c.createElement(lp.Provider,{value:We},Ke),v&&(Ke=c.createElement(QN,{size:v},Ke)),Ke=c.createElement(qD,null,Ke);const ft=c.useMemo(()=>{const st=at||{},{algorithm:dt,token:Vt,components:jt,cssVar:Lt}=st,Ht=GD(st,["algorithm","token","components","cssVar"]),Ft=dt&&(!Array.isArray(dt)||dt.length>0)?Yg(dt):Ow,nn={};Object.entries(jt||{}).forEach($n=>{let[ln,rn]=$n;const Ue=Object.assign({},rn);"algorithm"in Ue&&(Ue.algorithm===!0?Ue.theme=Ft:(Array.isArray(Ue.algorithm)||typeof Ue.algorithm=="function")&&(Ue.theme=Yg(Ue.algorithm)),delete Ue.algorithm),nn[ln]=Ue});const wt=Object.assign(Object.assign({},hc),Vt);return Object.assign(Object.assign({},Ht),{theme:Ft,token:wt,components:nn,override:Object.assign({override:wt},nn),cssVar:Lt})},[at]);return O&&(Ke=c.createElement(Rw.Provider,{value:ft},Ke)),Ct.warning&&(Ke=c.createElement($N.Provider,{value:Ct.warning},Ke)),T!==void 0&&(Ke=c.createElement(Mw,{disabled:T},Ke)),c.createElement(Wt.Provider,{value:Ct},Ke)},Ni=e=>{const t=c.useContext(Wt),n=c.useContext(sp);return c.createElement(JD,Object.assign({parentContext:t,legacyLocale:n},e))};Ni.ConfigContext=Wt;Ni.SizeContext=Ci;Ni.config=QD;Ni.useConfig=ZN;Object.defineProperty(Ni,"SizeContext",{get:()=>Ci});var eI={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 Zw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function tI(e){return Zw(e)instanceof ShadowRoot}function Kf(e){return tI(e)?Zw(e):null}function nI(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function rI(e,t){Sr(e,"[@ant-design/icons] ".concat(t))}function hC(e){return vt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(vt(e.icon)==="object"||typeof e.icon=="function")}function pC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[nI(n)]=r}return t},{})}function hh(e,t,n){return n?Ie.createElement(e.tag,J(J({key:t},pC(e.attrs)),n),(e.children||[]).map(function(r,o){return hh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Ie.createElement(e.tag,J({key:t},pC(e.attrs)),(e.children||[]).map(function(r,o){return hh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Jw(e){return pc(e)[0]}function eE(e){return e?Array.isArray(e)?e:[e]:[]}var aI=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,oI=function(t){var n=c.useContext(lp),r=n.csp,o=n.prefixCls,s=n.layer,u=aI;o&&(u=u.replace(/anticon/g,o)),s&&(u="@layer ".concat(s,` {
`).concat(u,`
}`)),c.useEffect(function(){var d=t.current,v=Kf(d);ao(u,"@ant-design-icons",{prepend:!s,csp:r,attachTo:v})},[])},iI=["icon","className","onClick","style","primaryColor","secondaryColor"],nc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function lI(e){var t=e.primaryColor,n=e.secondaryColor;nc.primaryColor=t,nc.secondaryColor=n||Jw(t),nc.calculated=!!n}function sI(){return J({},nc)}var Hl=function(t){var n=t.icon,r=t.className,o=t.onClick,s=t.style,u=t.primaryColor,d=t.secondaryColor,v=Et(t,iI),m=c.useRef(),g=nc;if(u&&(g={primaryColor:u,secondaryColor:d||Jw(u)}),oI(m),rI(hC(n),"icon should be icon definiton, but got ".concat(n)),!hC(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=J(J({},p),{},{icon:p.icon(g.primaryColor,g.secondaryColor)})),hh(p.icon,"svg-".concat(p.name),J(J({className:r,onClick:o,style:s,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:m}))};Hl.displayName="IconReact";Hl.getTwoToneColors=sI;Hl.setTwoToneColors=lI;function tE(e){var t=eE(e),n=ee(t,2),r=n[0],o=n[1];return Hl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function cI(){var e=Hl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var uI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tE(Gf.primary);var Un=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,s=e.rotate,u=e.tabIndex,d=e.onClick,v=e.twoToneColor,m=Et(e,uI),g=c.useContext(lp),p=g.prefixCls,b=p===void 0?"anticon":p,x=g.rootClassName,C=me(x,b,Q(Q({},"".concat(b,"-").concat(r.name),!!r.name),"".concat(b,"-spin"),!!o||r.name==="loading"),n),E=u;E===void 0&&d&&(E=-1);var y=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,w=eE(v),$=ee(w,2),O=$[0],T=$[1];return c.createElement("span",Ae({role:"img","aria-label":r.name},m,{ref:t,tabIndex:E,onClick:d,className:C}),c.createElement(Hl,{icon:r,primaryColor:O,secondaryColor:T,style:y}))});Un.displayName="AntdIcon";Un.getTwoToneColor=cI;Un.setTwoToneColor=tE;var fI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:eI}))},nE=c.forwardRef(fI),dI={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"},vI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:dI}))},md=c.forwardRef(vI),mI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},gI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:mI}))},up=c.forwardRef(gI),hI={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"},pI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:hI}))},rE=c.forwardRef(pI),bI={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},yI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:bI}))},SI=c.forwardRef(yI),CI=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,xI=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,wI="".concat(CI," ").concat(xI).split(/[\s\n]+/),EI="aria-",$I="data-";function bC(e,t){return e.indexOf(t)===0}function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=J({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||bC(o,EI))||n.data&&bC(o,$I)||n.attr&&wI.includes(o))&&(r[o]=e[o])}),r}function aE(e){return e&&Ie.isValidElement(e)&&e.type===Ie.Fragment}const OI=(e,t,n)=>Ie.isValidElement(e)?Ie.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ei(e,t){return OI(e,e,t)}const yC=e=>typeof e=="object"&&e!=null&&e.nodeType===1,SC=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",rf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return SC(n.overflowY,t)||SC(n.overflowX,t)||(r=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},af=(e,t,n,r,o,s,u,d)=>s<e&&u>t||s>e&&u<t?0:s<=e&&d<=n||u>=t&&d>=n?s-e-r:u>t&&d<n||s<e&&d>n?u-t+o:0,RI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},CC=(e,t)=>{var n,r,o,s;if(typeof document>"u")return[];const{scrollMode:u,block:d,inline:v,boundary:m,skipOverflowHiddenElements:g}=t,p=typeof m=="function"?m:R=>R!==m;if(!yC(e))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,x=[];let C=e;for(;yC(C)&&p(C);){if(C=RI(C),C===b){x.push(C);break}C!=null&&C===document.body&&rf(C)&&!rf(document.documentElement)||C!=null&&rf(C,g)&&x.push(C)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:w,scrollY:$}=window,{height:O,width:T,top:M,right:D,bottom:I,left:z}=e.getBoundingClientRect(),{top:P,right:j,bottom:H,left:G}=(R=>{const N=window.getComputedStyle(R);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let k=d==="start"||d==="nearest"?M-P:d==="end"?I+H:M+O/2-P+H,F=v==="center"?z+T/2-G+j:v==="end"?D+j:z-G;const V=[];for(let R=0;R<x.length;R++){const N=x[R],{height:A,width:q,top:_,right:L,bottom:W,left:Y}=N.getBoundingClientRect();if(u==="if-needed"&&M>=0&&z>=0&&I<=y&&D<=E&&(N===b&&!rf(N)||M>=_&&I<=W&&z>=Y&&D<=L))return V;const U=getComputedStyle(N),X=parseInt(U.borderLeftWidth,10),Z=parseInt(U.borderTopWidth,10),te=parseInt(U.borderRightWidth,10),ne=parseInt(U.borderBottomWidth,10);let re=0,le=0;const oe="offsetWidth"in N?N.offsetWidth-N.clientWidth-X-te:0,ie="offsetHeight"in N?N.offsetHeight-N.clientHeight-Z-ne:0,ce="offsetWidth"in N?N.offsetWidth===0?0:q/N.offsetWidth:0,de="offsetHeight"in N?N.offsetHeight===0?0:A/N.offsetHeight:0;if(b===N)re=d==="start"?k:d==="end"?k-y:d==="nearest"?af($,$+y,y,Z,ne,$+k,$+k+O,O):k-y/2,le=v==="start"?F:v==="center"?F-E/2:v==="end"?F-E:af(w,w+E,E,X,te,w+F,w+F+T,T),re=Math.max(0,re+$),le=Math.max(0,le+w);else{re=d==="start"?k-_-Z:d==="end"?k-W+ne+ie:d==="nearest"?af(_,W,A,Z,ne+ie,k,k+O,O):k-(_+A/2)+ie/2,le=v==="start"?F-Y-X:v==="center"?F-(Y+q/2)+oe/2:v==="end"?F-L+te+oe:af(Y,L,q,X,te+oe,F,F+T,T);const{scrollLeft:ue,scrollTop:fe}=N;re=de===0?0:Math.max(0,Math.min(fe+re/de,N.scrollHeight-A/de+ie)),le=ce===0?0:Math.max(0,Math.min(ue+le/ce,N.scrollWidth-q/ce+oe)),k+=fe-re,F+=ue-le}V.push({el:N,top:re,left:le})}return V},MI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function TI(e,t){if(!e.isConnected||!(o=>{let s=o;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(o=>{const s=window.getComputedStyle(o);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(CC(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:s,left:u}of CC(e,MI(t))){const d=s-n.top+n.bottom,v=u-n.left+n.right;o.scroll({top:d,left:v,behavior:r})}}const Jr=e=>{const[,,,,t]=ga();return t?`${e}-css-var`:""};var bt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},oE=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,s=e.duration,u=s===void 0?4.5:s,d=e.showProgress,v=e.pauseOnHover,m=v===void 0?!0:v,g=e.eventKey,p=e.content,b=e.closable,x=e.closeIcon,C=x===void 0?"x":x,E=e.props,y=e.onClick,w=e.onNoticeClose,$=e.times,O=e.hovering,T=c.useState(!1),M=ee(T,2),D=M[0],I=M[1],z=c.useState(0),P=ee(z,2),j=P[0],H=P[1],G=c.useState(0),k=ee(G,2),F=k[0],V=k[1],R=O||D,N=u>0&&d,A=function(){w(g)},q=function(X){(X.key==="Enter"||X.code==="Enter"||X.keyCode===bt.ENTER)&&A()};c.useEffect(function(){if(!R&&u>0){var U=Date.now()-F,X=setTimeout(function(){A()},u*1e3-F);return function(){m&&clearTimeout(X),V(Date.now()-U)}}},[u,R,$]),c.useEffect(function(){if(!R&&N&&(m||F===0)){var U=performance.now(),X,Z=function te(){cancelAnimationFrame(X),X=requestAnimationFrame(function(ne){var re=ne+F-U,le=Math.min(re/(u*1e3),1);H(le*100),le<1&&te()})};return Z(),function(){m&&cancelAnimationFrame(X)}}},[u,F,R,N,$]);var _=c.useMemo(function(){return vt(b)==="object"&&b!==null?b:b?{closeIcon:C}:{}},[b,C]),L=lo(_,!0),W=100-(!j||j<0?0:j>100?100:j),Y="".concat(n,"-notice");return c.createElement("div",Ae({},E,{ref:t,className:me(Y,o,Q({},"".concat(Y,"-closable"),b)),style:r,onMouseEnter:function(X){var Z;I(!0),E==null||(Z=E.onMouseEnter)===null||Z===void 0||Z.call(E,X)},onMouseLeave:function(X){var Z;I(!1),E==null||(Z=E.onMouseLeave)===null||Z===void 0||Z.call(E,X)},onClick:y}),c.createElement("div",{className:"".concat(Y,"-content")},p),b&&c.createElement("a",Ae({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:q,"aria-label":"Close"},L,{onClick:function(X){X.preventDefault(),X.stopPropagation(),A()}}),_.closeIcon),N&&c.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:W},W+"%"))}),iE=Ie.createContext({}),_I=function(t){var n=t.children,r=t.classNames;return Ie.createElement(iE.Provider,{value:{classNames:r}},n)},xC=8,wC=3,EC=16,NI=function(t){var n={offset:xC,threshold:wC,gap:EC};if(t&&vt(t)==="object"){var r,o,s;n.offset=(r=t.offset)!==null&&r!==void 0?r:xC,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:wC,n.gap=(s=t.gap)!==null&&s!==void 0?s:EC}return[!!t,n]},DI=["className","style","classNames","styles"],II=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,s=t.className,u=t.style,d=t.motion,v=t.onAllNoticeRemoved,m=t.onNoticeClose,g=t.stack,p=c.useContext(iE),b=p.classNames,x=c.useRef({}),C=c.useState(null),E=ee(C,2),y=E[0],w=E[1],$=c.useState([]),O=ee($,2),T=O[0],M=O[1],D=n.map(function(R){return{config:R,key:String(R.key)}}),I=NI(g),z=ee(I,2),P=z[0],j=z[1],H=j.offset,G=j.threshold,k=j.gap,F=P&&(T.length>0||D.length<=G),V=typeof d=="function"?d(r):d;return c.useEffect(function(){P&&T.length>1&&M(function(R){return R.filter(function(N){return D.some(function(A){var q=A.key;return N===q})})})},[T,D,P]),c.useEffect(function(){var R;if(P&&x.current[(R=D[D.length-1])===null||R===void 0?void 0:R.key]){var N;w(x.current[(N=D[D.length-1])===null||N===void 0?void 0:N.key])}},[D,P]),Ie.createElement(Yw,Ae({key:r,className:me(o,"".concat(o,"-").concat(r),b==null?void 0:b.list,s,Q(Q({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),F)),style:u,keys:D,motionAppear:!0},V,{onAllRemoved:function(){v(r)}}),function(R,N){var A=R.config,q=R.className,_=R.style,L=R.index,W=A,Y=W.key,U=W.times,X=String(Y),Z=A,te=Z.className,ne=Z.style,re=Z.classNames,le=Z.styles,oe=Et(Z,DI),ie=D.findIndex(function(Me){return Me.key===X}),ce={};if(P){var de=D.length-1-(ie>-1?ie:L-1),ue=r==="top"||r==="bottom"?"-50%":"0";if(de>0){var fe,xe,pe;ce.height=F?(fe=x.current[X])===null||fe===void 0?void 0:fe.offsetHeight:y==null?void 0:y.offsetHeight;for(var Ne=0,De=0;De<de;De++){var Re;Ne+=((Re=x.current[D[D.length-1-De].key])===null||Re===void 0?void 0:Re.offsetHeight)+k}var Le=(F?Ne:de*H)*(r.startsWith("top")?1:-1),Ee=!F&&y!==null&&y!==void 0&&y.offsetWidth&&(xe=x.current[X])!==null&&xe!==void 0&&xe.offsetWidth?((y==null?void 0:y.offsetWidth)-H*2*(de<3?de:3))/((pe=x.current[X])===null||pe===void 0?void 0:pe.offsetWidth):1;ce.transform="translate3d(".concat(ue,", ").concat(Le,"px, 0) scaleX(").concat(Ee,")")}else ce.transform="translate3d(".concat(ue,", 0, 0)")}return Ie.createElement("div",{ref:N,className:me("".concat(o,"-notice-wrapper"),q,re==null?void 0:re.wrapper),style:J(J(J({},_),ce),le==null?void 0:le.wrapper),onMouseEnter:function(){return M(function(Fe){return Fe.includes(X)?Fe:[].concat(je(Fe),[X])})},onMouseLeave:function(){return M(function(Fe){return Fe.filter(function(Te){return Te!==X})})}},Ie.createElement(oE,Ae({},oe,{ref:function(Fe){ie>-1?x.current[X]=Fe:delete x.current[X]},prefixCls:o,classNames:re,styles:le,className:me(te,b==null?void 0:b.notice),style:ne,times:U,key:Y,eventKey:Y,onNoticeClose:m,hovering:P&&T.length>0})))})},PI=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,s=e.motion,u=e.maxCount,d=e.className,v=e.style,m=e.onAllRemoved,g=e.stack,p=e.renderNotifications,b=c.useState([]),x=ee(b,2),C=x[0],E=x[1],y=function(P){var j,H=C.find(function(G){return G.key===P});H==null||(j=H.onClose)===null||j===void 0||j.call(H),E(function(G){return G.filter(function(k){return k.key!==P})})};c.useImperativeHandle(t,function(){return{open:function(P){E(function(j){var H=je(j),G=H.findIndex(function(V){return V.key===P.key}),k=J({},P);if(G>=0){var F;k.times=(((F=j[G])===null||F===void 0?void 0:F.times)||0)+1,H[G]=k}else k.times=0,H.push(k);return u>0&&H.length>u&&(H=H.slice(-u)),H})},close:function(P){y(P)},destroy:function(){E([])}}});var w=c.useState({}),$=ee(w,2),O=$[0],T=$[1];c.useEffect(function(){var z={};C.forEach(function(P){var j=P.placement,H=j===void 0?"topRight":j;H&&(z[H]=z[H]||[],z[H].push(P))}),Object.keys(O).forEach(function(P){z[P]=z[P]||[]}),T(z)},[C]);var M=function(P){T(function(j){var H=J({},j),G=H[P]||[];return G.length||delete H[P],H})},D=c.useRef(!1);if(c.useEffect(function(){Object.keys(O).length>0?D.current=!0:D.current&&(m==null||m(),D.current=!1)},[O]),!o)return null;var I=Object.keys(O);return Uo.createPortal(c.createElement(c.Fragment,null,I.map(function(z){var P=O[z],j=c.createElement(II,{key:z,configList:P,placement:z,prefixCls:r,className:d==null?void 0:d(z),style:v==null?void 0:v(z),motion:s,onNoticeClose:y,onAllNoticeRemoved:M,stack:g});return p?p(j,{prefixCls:r,key:z}):j})),o)}),AI=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],zI=function(){return document.body},$C=0;function jI(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(s){var u=o[s];u!==void 0&&(e[s]=u)})}),e}function HI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?zI:t,r=e.motion,o=e.prefixCls,s=e.maxCount,u=e.className,d=e.style,v=e.onAllRemoved,m=e.stack,g=e.renderNotifications,p=Et(e,AI),b=c.useState(),x=ee(b,2),C=x[0],E=x[1],y=c.useRef(),w=c.createElement(PI,{container:C,ref:y,prefixCls:o,motion:r,maxCount:s,className:u,style:d,onAllRemoved:v,stack:m,renderNotifications:g}),$=c.useState([]),O=ee($,2),T=O[0],M=O[1],D=tn(function(z){var P=jI(p,z);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat($C),$C+=1),M(function(j){return[].concat(je(j),[{type:"open",config:P}])})}),I=c.useMemo(function(){return{open:D,close:function(P){M(function(j){return[].concat(je(j),[{type:"close",key:P}])})},destroy:function(){M(function(P){return[].concat(je(P),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){E(n())}),c.useEffect(function(){if(y.current&&T.length){T.forEach(function(j){switch(j.type){case"open":y.current.open(j.config);break;case"close":y.current.close(j.key);break;case"destroy":y.current.destroy();break}});var z,P;M(function(j){return(z!==j||!P)&&(z=j,P=j.filter(function(H){return!T.includes(H)})),P})}},[T]),[I,w]}var LI={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"},BI=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:LI}))},Pc=c.forwardRef(BI);const lE=Ie.createContext(void 0),Lo=100,FI=10,VI=Lo*FI,sE={Modal:Lo,Drawer:Lo,Popover:Lo,Popconfirm:Lo,Tooltip:Lo,Tour:Lo,FloatButton:Lo},kI={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function UI(e){return e in sE}const gd=(e,t)=>{const[,n]=ga(),r=Ie.useContext(lE),o=UI(e);let s;if(t!==void 0)s=[t,t];else{let u=r??0;o?u+=(r?0:n.zIndexPopupBase)+sE[e]:u+=kI[e],s=[r===void 0?t:u,u]}return s},qI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:s,colorError:u,colorWarning:d,colorInfo:v,fontSizeLG:m,motionEaseInOutCirc:g,motionDurationSlow:p,marginXS:b,paddingXS:x,borderRadiusLG:C,zIndexPopup:E,contentPadding:y,contentBg:w}=e,$=`${t}-notice`,O=new hn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:x,transform:"translateY(0)",opacity:1}}),T=new hn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:x,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),M={padding:x,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:b,fontSize:m},[`${$}-content`]:{display:"inline-block",padding:y,background:w,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:u},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:v}};return[{[t]:Object.assign(Object.assign({},Cr(e)),{color:o,position:"fixed",top:b,width:"100%",pointerEvents:"none",zIndex:E,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:O,animationDuration:p,animationPlayState:"paused",animationTimingFunction:g},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:T,animationDuration:p,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},M)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},M),{padding:0,textAlign:"start"})}]},WI=e=>({zIndexPopup:e.zIndexPopupBase+VI+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),cE=gr("Message",e=>{const t=Sn(e,{height:150});return[qI(t)]},WI);var GI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YI={info:c.createElement(SI,null),success:c.createElement(nE,null),error:c.createElement(md,null),warning:c.createElement(rE,null),loading:c.createElement(Pc,null)},uE=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return c.createElement("div",{className:me(`${t}-custom-content`,`${t}-${n}`)},r||YI[n],c.createElement("span",null,o))},KI=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:s}=e,u=GI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:d}=c.useContext(Wt),v=t||d("message"),m=Jr(v),[g,p,b]=cE(v,m);return g(c.createElement(oE,Object.assign({},u,{prefixCls:v,className:me(n,p,`${v}-notice-pure-panel`,b,m),eventKey:"pure",duration:null,content:c.createElement(uE,{prefixCls:v,type:r,icon:o},s)})))};function XI(e,t){return{motionName:t??`${e}-move-up`}}function fp(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}var QI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZI=8,JI=3,eP=e=>{let{children:t,prefixCls:n}=e;const r=Jr(n),[o,s,u]=cE(n,r);return o(c.createElement(_I,{classNames:{list:me(s,u,r)}},t))},tP=(e,t)=>{let{prefixCls:n,key:r}=t;return c.createElement(eP,{prefixCls:n,key:r},e)},nP=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:s,duration:u=JI,rtl:d,transitionName:v,onAllRemoved:m}=e,{getPrefixCls:g,getPopupContainer:p,message:b,direction:x}=c.useContext(Wt),C=r||g("message"),E=()=>({left:"50%",transform:"translateX(-50%)",top:n??ZI}),y=()=>me({[`${C}-rtl`]:d??x==="rtl"}),w=()=>XI(C,v),$=c.createElement("span",{className:`${C}-close-x`},c.createElement(up,{className:`${C}-close-icon`})),[O,T]=HI({prefixCls:C,style:E,className:y,motion:w,closable:!1,closeIcon:$,duration:u,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:s,onAllRemoved:m,renderNotifications:tP});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:C,message:b})),T});let OC=0;function fE(e){const t=c.useRef(null);return ud(),[c.useMemo(()=>{const r=v=>{var m;(m=t.current)===null||m===void 0||m.close(v)},o=v=>{if(!t.current){const D=()=>{};return D.then=()=>{},D}const{open:m,prefixCls:g,message:p}=t.current,b=`${g}-notice`,{content:x,icon:C,type:E,key:y,className:w,style:$,onClose:O}=v,T=QI(v,["content","icon","type","key","className","style","onClose"]);let M=y;return M==null&&(OC+=1,M=`antd-message-${OC}`),fp(D=>(m(Object.assign(Object.assign({},T),{key:M,content:c.createElement(uE,{prefixCls:g,type:E,icon:C},x),placement:"top",className:me(E&&`${b}-${E}`,w,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),$),onClose:()=>{O==null||O(),D()}})),()=>{r(M)}))},u={open:o,destroy:v=>{var m;v!==void 0?r(v):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(v=>{const m=(g,p,b)=>{let x;g&&typeof g=="object"&&"content"in g?x=g:x={content:g};let C,E;typeof p=="function"?E=p:(C=p,E=b);const y=Object.assign(Object.assign({onClose:E,duration:C},x),{type:v});return o(y)};u[v]=m}),u},[]),c.createElement(nP,Object.assign({key:"message-holder"},e,{ref:t}))]}function rP(e){return fE(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(R,N,A){R[N]=A.value},s=typeof Symbol=="function"?Symbol:{},u=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",v=s.toStringTag||"@@toStringTag";function m(R,N,A){return Object.defineProperty(R,N,{value:A,enumerable:!0,configurable:!0,writable:!0}),R[N]}try{m({},"")}catch{m=function(A,q,_){return A[q]=_}}function g(R,N,A,q){var _=N&&N.prototype instanceof w?N:w,L=Object.create(_.prototype),W=new F(q||[]);return o(L,"_invoke",{value:j(R,A,W)}),L}function p(R,N,A){try{return{type:"normal",arg:R.call(N,A)}}catch(q){return{type:"throw",arg:q}}}t.wrap=g;var b="suspendedStart",x="suspendedYield",C="executing",E="completed",y={};function w(){}function $(){}function O(){}var T={};m(T,u,function(){return this});var M=Object.getPrototypeOf,D=M&&M(M(V([])));D&&D!==n&&r.call(D,u)&&(T=D);var I=O.prototype=w.prototype=Object.create(T);function z(R){["next","throw","return"].forEach(function(N){m(R,N,function(A){return this._invoke(N,A)})})}function P(R,N){function A(_,L,W,Y){var U=p(R[_],R,L);if(U.type!=="throw"){var X=U.arg,Z=X.value;return Z&&vt(Z)=="object"&&r.call(Z,"__await")?N.resolve(Z.__await).then(function(te){A("next",te,W,Y)},function(te){A("throw",te,W,Y)}):N.resolve(Z).then(function(te){X.value=te,W(X)},function(te){return A("throw",te,W,Y)})}Y(U.arg)}var q;o(this,"_invoke",{value:function(L,W){function Y(){return new N(function(U,X){A(L,W,U,X)})}return q=q?q.then(Y,Y):Y()}})}function j(R,N,A){var q=b;return function(_,L){if(q===C)throw Error("Generator is already running");if(q===E){if(_==="throw")throw L;return{value:e,done:!0}}for(A.method=_,A.arg=L;;){var W=A.delegate;if(W){var Y=H(W,A);if(Y){if(Y===y)continue;return Y}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(q===b)throw q=E,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);q=C;var U=p(R,N,A);if(U.type==="normal"){if(q=A.done?E:x,U.arg===y)continue;return{value:U.arg,done:A.done}}U.type==="throw"&&(q=E,A.method="throw",A.arg=U.arg)}}}function H(R,N){var A=N.method,q=R.iterator[A];if(q===e)return N.delegate=null,A==="throw"&&R.iterator.return&&(N.method="return",N.arg=e,H(R,N),N.method==="throw")||A!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+A+"' method")),y;var _=p(q,R.iterator,N.arg);if(_.type==="throw")return N.method="throw",N.arg=_.arg,N.delegate=null,y;var L=_.arg;return L?L.done?(N[R.resultName]=L.value,N.next=R.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,y):L:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,y)}function G(R){var N={tryLoc:R[0]};1 in R&&(N.catchLoc=R[1]),2 in R&&(N.finallyLoc=R[2],N.afterLoc=R[3]),this.tryEntries.push(N)}function k(R){var N=R.completion||{};N.type="normal",delete N.arg,R.completion=N}function F(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(G,this),this.reset(!0)}function V(R){if(R||R===""){var N=R[u];if(N)return N.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var A=-1,q=function _(){for(;++A<R.length;)if(r.call(R,A))return _.value=R[A],_.done=!1,_;return _.value=e,_.done=!0,_};return q.next=q}}throw new TypeError(vt(R)+" is not iterable")}return $.prototype=O,o(I,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:$,configurable:!0}),$.displayName=m(O,v,"GeneratorFunction"),t.isGeneratorFunction=function(R){var N=typeof R=="function"&&R.constructor;return!!N&&(N===$||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,m(R,v,"GeneratorFunction")),R.prototype=Object.create(I),R},t.awrap=function(R){return{__await:R}},z(P.prototype),m(P.prototype,d,function(){return this}),t.AsyncIterator=P,t.async=function(R,N,A,q,_){_===void 0&&(_=Promise);var L=new P(g(R,N,A,q),_);return t.isGeneratorFunction(N)?L:L.next().then(function(W){return W.done?W.value:L.next()})},z(I),m(I,v,"Generator"),m(I,u,function(){return this}),m(I,"toString",function(){return"[object Generator]"}),t.keys=function(R){var N=Object(R),A=[];for(var q in N)A.push(q);return A.reverse(),function _(){for(;A.length;){var L=A.pop();if(L in N)return _.value=L,_.done=!1,_}return _.done=!0,_}},t.values=V,F.prototype={constructor:F,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!N)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var A=this;function q(X,Z){return W.type="throw",W.arg=N,A.next=X,Z&&(A.method="next",A.arg=e),!!Z}for(var _=this.tryEntries.length-1;_>=0;--_){var L=this.tryEntries[_],W=L.completion;if(L.tryLoc==="root")return q("end");if(L.tryLoc<=this.prev){var Y=r.call(L,"catchLoc"),U=r.call(L,"finallyLoc");if(Y&&U){if(this.prev<L.catchLoc)return q(L.catchLoc,!0);if(this.prev<L.finallyLoc)return q(L.finallyLoc)}else if(Y){if(this.prev<L.catchLoc)return q(L.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return q(L.finallyLoc)}}}},abrupt:function(N,A){for(var q=this.tryEntries.length-1;q>=0;--q){var _=this.tryEntries[q];if(_.tryLoc<=this.prev&&r.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var L=_;break}}L&&(N==="break"||N==="continue")&&L.tryLoc<=A&&A<=L.finallyLoc&&(L=null);var W=L?L.completion:{};return W.type=N,W.arg=A,L?(this.method="next",this.next=L.finallyLoc,y):this.complete(W)},complete:function(N,A){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&A&&(this.next=A),y},finish:function(N){for(var A=this.tryEntries.length-1;A>=0;--A){var q=this.tryEntries[A];if(q.finallyLoc===N)return this.complete(q.completion,q.afterLoc),k(q),y}},catch:function(N){for(var A=this.tryEntries.length-1;A>=0;--A){var q=this.tryEntries[A];if(q.tryLoc===N){var _=q.completion;if(_.type==="throw"){var L=_.arg;k(q)}return L}}throw Error("illegal catch attempt")},delegateYield:function(N,A,q){return this.delegate={iterator:V(N),resultName:A,nextLoc:q},this.method==="next"&&(this.arg=e),y}},t}function RC(e,t,n,r,o,s,u){try{var d=e[s](u),v=d.value}catch(m){return void n(m)}d.done?t(v):Promise.resolve(v).then(r,o)}function Di(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function u(v){RC(s,r,o,u,d,"next",v)}function d(v){RC(s,r,o,u,d,"throw",v)}u(void 0)})}}var Ac=J({},RT),aP=Ac.version,eg=Ac.render,oP=Ac.unmountComponentAtNode,hd;try{var iP=Number((aP||"").split(".")[0]);iP>=18&&(hd=Ac.createRoot)}catch{}function MC(e){var t=Ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&vt(t)==="object"&&(t.usingClientEntryPoint=e)}var Xf="__rc_react_root__";function lP(e,t){MC(!0);var n=t[Xf]||hd(t);MC(!1),n.render(e),t[Xf]=n}function sP(e,t){eg==null||eg(e,t)}function cP(e,t){if(hd){lP(e,t);return}sP(e,t)}function uP(e){return ph.apply(this,arguments)}function ph(){return ph=Di(Pr().mark(function e(t){return Pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Xf])===null||o===void 0||o.unmount(),delete t[Xf]}));case 1:case"end":return r.stop()}},e)})),ph.apply(this,arguments)}function fP(e){oP(e)}function dP(e){return bh.apply(this,arguments)}function bh(){return bh=Di(Pr().mark(function e(t){return Pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(hd===void 0){r.next=2;break}return r.abrupt("return",uP(t));case 2:fP(t);case 3:case"end":return r.stop()}},e)})),bh.apply(this,arguments)}const vP=(e,t)=>(cP(e,t),()=>dP(t));let mP=vP;function dE(){return mP}const tg=()=>({height:0,opacity:0}),TC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gP=e=>({height:e?e.offsetHeight:0}),ng=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_C=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:bc}-motion-collapse`,onAppearStart:tg,onEnterStart:tg,onAppearActive:TC,onEnterActive:TC,onLeaveStart:gP,onLeaveActive:tg,onAppearEnd:ng,onEnterEnd:ng,onLeaveEnd:ng,motionDeadline:500}},dp=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function ur(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const zc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),s=o.width,u=o.height;if(s||u)return!0}}return!1},hP=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},pP=pD("Wave",e=>[hP(e)]),vp=`${bc}-wave-target`;function rg(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"}function bP(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return rg(t)?t:rg(n)?n:rg(r)?r:null}function ag(e){return Number.isNaN(e)?0:e}const yP=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,s=c.useRef(null),u=c.useRef(null);c.useEffect(()=>{u.current=o()},[]);const[d,v]=c.useState(null),[m,g]=c.useState([]),[p,b]=c.useState(0),[x,C]=c.useState(0),[E,y]=c.useState(0),[w,$]=c.useState(0),[O,T]=c.useState(!1),M={left:p,top:x,width:E,height:w,borderRadius:m.map(z=>`${z}px`).join(" ")};d&&(M["--wave-color"]=d);function D(){const z=getComputedStyle(n);v(bP(n));const P=z.position==="static",{borderLeftWidth:j,borderTopWidth:H}=z;b(P?n.offsetLeft:ag(-parseFloat(j))),C(P?n.offsetTop:ag(-parseFloat(H))),y(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:G,borderTopRightRadius:k,borderBottomLeftRadius:F,borderBottomRightRadius:V}=z;g([G,k,V,F].map(R=>ag(parseFloat(R))))}if(c.useEffect(()=>{if(n){const z=kt(()=>{D(),T(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(D),P.observe(n)),()=>{kt.cancel(z),P==null||P.disconnect()}}},[]),!O)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(vp));return c.createElement(Go,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,P)=>{var j,H;if(P.deadline||P.propertyName==="opacity"){const G=(j=s.current)===null||j===void 0?void 0:j.parentElement;(H=u.current)===null||H===void 0||H.call(u).then(()=>{G==null||G.remove()})}return!1}},(z,P)=>{let{className:j}=z;return c.createElement("div",{ref:Br(s,P),className:me(t,j,{"wave-quick":I}),style:M})})},SP=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const s=dE();let u=null;function d(){return u}u=s(c.createElement(yP,Object.assign({},t,{target:e,registerUnmount:d})),o)},CP=(e,t,n)=>{const{wave:r}=c.useContext(Wt),[,o,s]=ga(),u=tn(m=>{const g=e.current;if(r!=null&&r.disabled||!g)return;const p=g.querySelector(`.${vp}`)||g,{showEffect:b}=r||{};(b||SP)(p,{className:t,token:o,component:n,event:m,hashId:s})}),d=c.useRef(null);return m=>{kt.cancel(d.current),d.current=kt(()=>{u(m)})}},vE=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(Wt),s=c.useRef(null),u=o("wave"),[,d]=pP(u),v=CP(s,me(u,d),r);if(Ie.useEffect(()=>{const g=s.current;if(!g||g.nodeType!==1||n)return;const p=b=>{!zc(b.target)||!g.getAttribute||g.getAttribute("disabled")||g.disabled||g.className.includes("disabled")||g.className.includes("-leave")||v(b)};return g.addEventListener("click",p,!0),()=>{g.removeEventListener("click",p,!0)}},[n]),!Ie.isValidElement(t))return t??null;const m=Wo(t)?Br(Ti(t),s):s;return Ei(t,{ref:m})},Ra=e=>{const t=Ie.useContext(Ci);return Ie.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},mE=c.createContext(null),Ii=(e,t)=>{const n=c.useContext(mE),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:u}=n,d=o==="vertical"?"-vertical-":"-";return me(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:s,[`${e}-compact${d}last-item`]:u,[`${e}-compact${d}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},xP=e=>{const{children:t}=e;return c.createElement(mE.Provider,{value:null},t)};var wP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gE=c.createContext(void 0),EP=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Wt),{prefixCls:r,size:o,className:s}=e,u=wP(e,["prefixCls","size","className"]),d=t("btn-group",r),[,,v]=ga(),m=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),g=me(d,{[`${d}-${m}`]:m,[`${d}-rtl`]:n==="rtl"},s,v);return c.createElement(gE.Provider,{value:o},c.createElement("div",Object.assign({},u,{className:g})))},NC=/^[\u4E00-\u9FA5]{2}$/,yh=NC.test.bind(NC);function DC(e){return typeof e=="string"}function og(e){return e==="text"||e==="link"}function $P(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&DC(e.type)&&yh(e.props.children)?Ei(e,{children:e.props.children.split("").join(n)}):DC(e)?yh(e)?Ie.createElement("span",null,e.split("").join(n)):Ie.createElement("span",null,e):aE(e)?Ie.createElement("span",null,e):e}function OP(e,t){let n=!1;const r=[];return Ie.Children.forEach(e,o=>{const s=typeof o,u=s==="string"||s==="number";if(n&&u){const d=r.length-1,v=r[d];r[d]=`${v}${o}`}else r.push(o);n=u}),Ie.Children.map(r,o=>$P(o,t))}["default","primary","danger"].concat(je(xi));const Sh=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,u=me(`${s}-icon`,n);return Ie.createElement("span",{ref:t,className:u,style:r},o)}),IC=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,u=me(`${n}-loading-icon`,r);return Ie.createElement(Sh,{prefixCls:n,className:u,style:o,ref:t},Ie.createElement(Pc,{className:s}))}),ig=()=>({width:0,opacity:0,transform:"scale(0)"}),lg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),RP=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:u}=e,d=!!n;return r?Ie.createElement(IC,{prefixCls:t,className:o,style:s}):Ie.createElement(Go,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!u,motionEnter:!u,motionLeave:!u,removeOnLeave:!0,onAppearStart:ig,onAppearActive:lg,onEnterStart:ig,onEnterActive:lg,onLeaveStart:lg,onLeaveActive:ig},(v,m)=>{let{className:g,style:p}=v;const b=Object.assign(Object.assign({},s),p);return Ie.createElement(IC,{prefixCls:t,className:me(o,g),style:b,ref:m})})},PC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MP=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},PC(`${t}-primary`,o),PC(`${t}-danger`,s)]}};var TP=["b"],_P=["v"],sg=function(t){return Math.round(Number(t||0))},NP=function(t){if(t instanceof gn)return t;if(t&&vt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Et(n,TP);return J(J({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Sc=function(e){uo(n,e);var t=fo(n);function n(r){return Qn(this,n),t.call(this,NP(r))}return Zn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),s=sg(o.s*100),u=sg(o.b*100),d=sg(o.h),v=o.a,m="hsb(".concat(d,", ").concat(s,"%, ").concat(u,"%)"),g="hsba(".concat(d,", ").concat(s,"%, ").concat(u,"%, ").concat(v.toFixed(v===0?0:2),")");return v===1?m:g}},{key:"toHsb",value:function(){var o=this.toHsv(),s=o.v,u=Et(o,_P);return J(J({},u),{},{b:s,a:this.a})}}]),n}(gn),DP=function(t){return t instanceof Sc?t:new Sc(t)};DP("#1677ff");const IP=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",PP=(e,t)=>e?IP(e,t):"";let AP=function(){function e(t){Qn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:s,percent:u}=o;return{color:new e(s),percent:u}}),this.metaColor=new Sc(this.colors[0].color.metaColor)):this.metaColor=new Sc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Zn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return PP(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:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const s=n.colors[o];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])}();const zP=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),jP=e=>({animationDuration:e,animationFillMode:"both"}),HP=e=>({animationDuration:e,animationFillMode:"both"}),mp=function(e,t,n,r){const s=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${s}${e}-enter,
      ${s}${e}-appear
    `]:Object.assign(Object.assign({},jP(r)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:Object.assign(Object.assign({},HP(r)),{animationPlayState:"paused"}),[`
      ${s}${e}-enter${e}-enter-active,
      ${s}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},LP=new hn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BP=new hn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),FP=new hn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),VP=new hn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kP=new hn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),UP=new hn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qP=new hn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),WP=new hn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),GP={"move-up":{inKeyframes:qP,outKeyframes:WP},"move-down":{inKeyframes:LP,outKeyframes:BP},"move-left":{inKeyframes:FP,outKeyframes:VP},"move-right":{inKeyframes:kP,outKeyframes:UP}},Qf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=GP[t];return[mp(r,o,s,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gp=new hn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),hp=new hn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pp=new hn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),bp=new hn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),YP=new hn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),KP=new hn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),XP=new hn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),QP=new hn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ZP={"slide-up":{inKeyframes:gp,outKeyframes:hp},"slide-down":{inKeyframes:pp,outKeyframes:bp},"slide-left":{inKeyframes:YP,outKeyframes:KP},"slide-right":{inKeyframes:XP,outKeyframes:QP}},Pl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=ZP[t];return[mp(r,o,s,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},yp=new hn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),JP=new hn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),AC=new hn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zC=new hn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eA=new hn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),tA=new hn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nA=new hn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),rA=new hn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),aA=new hn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oA=new hn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),iA=new hn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lA=new hn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),sA={zoom:{inKeyframes:yp,outKeyframes:JP},"zoom-big":{inKeyframes:AC,outKeyframes:zC},"zoom-big-fast":{inKeyframes:AC,outKeyframes:zC},"zoom-left":{inKeyframes:nA,outKeyframes:rA},"zoom-right":{inKeyframes:aA,outKeyframes:oA},"zoom-up":{inKeyframes:eA,outKeyframes:tA},"zoom-down":{inKeyframes:iA,outKeyframes:lA}},cA=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=sA[t];return[mp(r,o,s,e.motionDurationFast),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},uA=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),u=new Sc(e.toRgbString()).onBackground(t).toHsv();return s<=.5?u.v>.5:n*.299+r*.587+o*.114>192},hE=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Sn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},pE=e=>{var t,n,r,o,s,u;const d=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,v=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,g=(o=e.contentLineHeight)!==null&&o!==void 0?o:Mf(d),p=(s=e.contentLineHeightSM)!==null&&s!==void 0?s:Mf(v),b=(u=e.contentLineHeightLG)!==null&&u!==void 0?u:Mf(m),x=uA(new AP(e.colorBgSolid),"#fff")?"#000":"#fff",C=xi.reduce((E,y)=>Object.assign(Object.assign({},E),{[`${y}ShadowColor`]:`0 ${ge(e.controlOutlineWidth)} 0 ${Ks(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"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:x,contentFontSize:d,contentFontSizeSM:v,contentFontSizeLG:m,contentLineHeight:g,contentLineHeightSM:p,contentLineHeightLG:b,paddingBlock:Math.max((e.controlHeight-d*g)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-v*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*b)/2-e.lineWidth,0)})},fA=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:u,marginXS:d,calc:v}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ge(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`]:dd(),"> a":{color:"currentColor"},"&:not(:disabled)":yc(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${s} ${u}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:v(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:v(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:v(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:v(d).mul(-1).equal()}}}}}},bE=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),dA=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),vA=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),pd=(e,t,n,r,o,s,u,d)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},bE(e,Object.assign({background:t},u),Object.assign({background:t},d))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:s||void 0}})}),gA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mA(e))}),hA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),bd=(e,t,n,r)=>{const s=r&&["link","text"].includes(r)?hA:gA;return Object.assign(Object.assign({},s(e)),bE(e.componentCls,t,n))},yd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},bd(e,r,o))}),Sd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},bd(e,r,o))}),Cd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},bd(e,n,r))}),Ha=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},bd(e,r,o,n))}),pA=e=>{const{componentCls:t}=e;return xi.reduce((n,r)=>{const o=e[`${r}6`],s=e[`${r}1`],u=e[`${r}5`],d=e[`${r}2`],v=e[`${r}3`],m=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},yd(e,e.colorTextLightSolid,o,{background:u},{background:m})),Sd(e,o,e.colorBgContainer,{color:u,borderColor:u,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),Cd(e)),xd(e,s,{background:d},{background:v})),Ha(e,o,"link",{color:u},{color:m})),Ha(e,o,"text",{color:u,background:s},{color:m,background:v}))})},{})},bA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},yd(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Cd(e)),xd(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),pd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ha(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Sd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Cd(e)),xd(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ha(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ha(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),pd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),SA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},yd(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Sd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Cd(e)),xd(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ha(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ha(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),pd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),CA=e=>Object.assign(Object.assign({},Ha(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),pd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),xA=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:bA(e),[`${t}-color-primary`]:yA(e),[`${t}-color-dangerous`]:SA(e),[`${t}-color-link`]:CA(e)},pA(e))},wA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Sd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ha(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),yd(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ha(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Sp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:u,iconCls:d,buttonPaddingVertical:v,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${ge(v)} ${ge(u)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:dA(e)},{[`${n}${n}-round${t}`]:vA(e)}]},EA=e=>{const t=Sn(e,{fontSize:e.contentFontSize});return Sp(t,e.componentCls)},$A=e=>{const t=Sn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Sp(t,`${e.componentCls}-sm`)},OA=e=>{const t=Sn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Sp(t,`${e.componentCls}-lg`)},RA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},MA=gr("Button",e=>{const t=hE(e);return[fA(t),EA(t),$A(t),OA(t),RA(t),xA(t),wA(t),MP(t)]},pE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function TA(e,t,n){const{focusElCls:r,focus:o,borderElCls:s}=n,u=s?"> *":"",d=["hover",o?"focus":null,"active"].filter(Boolean).map(v=>`&:${v} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[d]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function _A(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";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 wd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},TA(e,r,t)),_A(n,r,t))}}function NA(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function DA(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 IA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},NA(e,t)),DA(e.componentCls,t))}}const PA=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,s=o(r).mul(-1).equal(),u=d=>{const v=`${t}-compact${d?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${v} + ${v}::before`]:{position:"absolute",top:d?s:0,insetInlineStart:d?0:s,backgroundColor:n,content:'""',width:d?"100%":r,height:d?r:"100%"}}};return Object.assign(Object.assign({},u()),u(!0))},AA=jw(["Button","compact"],e=>{const t=hE(e);return[wd(t),IA(t),PA(t)]},pE);var zA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jA(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const HA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},LA=Ie.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:s,color:u,variant:d,type:v,danger:m=!1,shape:g="default",size:p,styles:b,disabled:x,className:C,rootClassName:E,children:y,icon:w,iconPosition:$="start",ghost:O=!1,block:T=!1,htmlType:M="button",classNames:D,style:I={},autoInsertSpace:z,autoFocus:P}=e,j=zA(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),H=v||"default",[G,k]=c.useMemo(()=>{if(u&&d)return[u,d];const Oe=HA[H]||[];return m?["danger",Oe[1]]:Oe},[v,u,d,m]),V=G==="danger"?"dangerous":G,{getPrefixCls:R,direction:N,autoInsertSpace:A,className:q,style:_,classNames:L,styles:W}=vo("button"),Y=(n=z??A)!==null&&n!==void 0?n:!0,U=R("btn",s),[X,Z,te]=MA(U),ne=c.useContext(ma),re=x??ne,le=c.useContext(gE),oe=c.useMemo(()=>jA(o),[o]),[ie,ce]=c.useState(oe.loading),[de,ue]=c.useState(!1),fe=c.useRef(null),xe=Mi(t,fe),pe=c.Children.count(y)===1&&!w&&!og(k),Ne=c.useRef(!0);Ie.useEffect(()=>(Ne.current=!1,()=>{Ne.current=!0}),[]),c.useEffect(()=>{let Oe=null;oe.delay>0?Oe=setTimeout(()=>{Oe=null,ce(!0)},oe.delay):ce(oe.loading);function $e(){Oe&&(clearTimeout(Oe),Oe=null)}return $e},[oe]),c.useEffect(()=>{if(!fe.current||!Y)return;const Oe=fe.current.textContent||"";pe&&yh(Oe)?de||ue(!0):de&&ue(!1)}),c.useEffect(()=>{P&&fe.current&&fe.current.focus()},[]);const De=Ie.useCallback(Oe=>{var $e;if(ie||re){Oe.preventDefault();return}($e=e.onClick)===null||$e===void 0||$e.call(e,("href"in e,Oe))},[e.onClick,ie,re]),{compactSize:Re,compactItemClassnames:Le}=Ii(U,N),Ee={large:"lg",small:"sm",middle:void 0},Me=Ra(Oe=>{var $e,Se;return(Se=($e=p??Re)!==null&&$e!==void 0?$e:le)!==null&&Se!==void 0?Se:Oe}),Fe=Me&&(r=Ee[Me])!==null&&r!==void 0?r:"",Te=ie?"loading":w,Ye=ur(j,["navigate"]),Xe=me(U,Z,te,{[`${U}-${g}`]:g!=="default"&&g,[`${U}-${H}`]:H,[`${U}-dangerous`]:m,[`${U}-color-${V}`]:V,[`${U}-variant-${k}`]:k,[`${U}-${Fe}`]:Fe,[`${U}-icon-only`]:!y&&y!==0&&!!Te,[`${U}-background-ghost`]:O&&!og(k),[`${U}-loading`]:ie,[`${U}-two-chinese-chars`]:de&&Y&&!ie,[`${U}-block`]:T,[`${U}-rtl`]:N==="rtl",[`${U}-icon-end`]:$==="end"},Le,C,E,q),He=Object.assign(Object.assign({},_),I),Ze=me(D==null?void 0:D.icon,L.icon),et=Object.assign(Object.assign({},(b==null?void 0:b.icon)||{}),W.icon||{}),Ge=w&&!ie?Ie.createElement(Sh,{prefixCls:U,className:Ze,style:et},w):o&&typeof o=="object"&&o.icon?Ie.createElement(Sh,{prefixCls:U,className:Ze,style:et},o.icon):Ie.createElement(RP,{existIcon:!!w,prefixCls:U,loading:ie,mount:Ne.current}),qe=y||y===0?OP(y,pe&&Y):null;if(Ye.href!==void 0)return X(Ie.createElement("a",Object.assign({},Ye,{className:me(Xe,{[`${U}-disabled`]:re}),href:re?void 0:Ye.href,style:He,onClick:De,ref:xe,tabIndex:re?-1:0}),Ge,qe));let ye=Ie.createElement("button",Object.assign({},j,{type:M,className:Xe,style:He,onClick:De,disabled:re,ref:xe}),Ge,qe,Le&&Ie.createElement(AA,{prefixCls:U}));return og(k)||(ye=Ie.createElement(vE,{component:"Button",disabled:ie},ye)),X(ye)}),jc=LA;jc.Group=EP;jc.__ANT_BUTTON=!0;var yE=c.createContext(null),jC=[];function BA(e,t){var n=c.useState(function(){if(!Ir())return null;var C=document.createElement("div");return C}),r=ee(n,1),o=r[0],s=c.useRef(!1),u=c.useContext(yE),d=c.useState(jC),v=ee(d,2),m=v[0],g=v[1],p=u||(s.current?void 0:function(C){g(function(E){var y=[C].concat(je(E));return y})});function b(){o.parentElement||document.body.appendChild(o),s.current=!0}function x(){var C;(C=o.parentElement)===null||C===void 0||C.removeChild(o),s.current=!1}return qt(function(){return e?u?u(b):b():x(),x},[e]),qt(function(){m.length&&(m.forEach(function(C){return C()}),g(jC))},[m]),[o,p]}function FA(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,s;if(e){var u=getComputedStyle(e);r.scrollbarColor=u.scrollbarColor,r.scrollbarWidth=u.scrollbarWidth;var d=getComputedStyle(e,"::-webkit-scrollbar"),v=parseInt(d.width,10),m=parseInt(d.height,10);try{var g=v?"width: ".concat(d.width,";"):"",p=m?"height: ".concat(d.height,";"):"";ao(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(g,`
`).concat(p,`
}`),t)}catch(C){console.error(C),o=v,s=m}}document.body.appendChild(n);var b=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,x=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),vc(t),{width:b,height:x}}function VA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:FA(e)}function kA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UA="rc-util-locker-".concat(Date.now()),HC=0;function qA(e){var t=!!e,n=c.useState(function(){return HC+=1,"".concat(UA,"_").concat(HC)}),r=ee(n,1),o=r[0];qt(function(){if(t){var s=VA(document.body).width,u=kA();ao(`
html body {
  overflow-y: hidden;
  `.concat(u?"width: calc(100% - ".concat(s,"px);"):"",`
}`),o)}else vc(o);return function(){vc(o)}},[t,o])}var WA=!1;function GA(e){return WA}var LC=function(t){return t===!1?!1:!Ir()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},SE=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var s=e.autoDestroy,u=s===void 0?!0:s,d=e.children,v=c.useState(n),m=ee(v,2),g=m[0],p=m[1],b=g||n;c.useEffect(function(){(u||n)&&p(n)},[n,u]);var x=c.useState(function(){return LC(o)}),C=ee(x,2),E=C[0],y=C[1];c.useEffect(function(){var H=LC(o);y(H??null)});var w=BA(b&&!E),$=ee(w,2),O=$[0],T=$[1],M=E??O;qA(r&&n&&Ir()&&(M===O||M===document.body));var D=null;if(d&&Wo(d)&&t){var I=d;D=I.ref}var z=Mi(D,t);if(!b||!Ir()||E===void 0)return null;var P=M===!1||GA(),j=d;return t&&(j=c.cloneElement(d,{ref:z})),c.createElement(yE.Provider,{value:T},P?j:Uo.createPortal(j,M))});function YA(){var e=J({},rd);return e.useId}var BC=0,FC=YA();const CE=FC?function(t){var n=FC();return t||n}:function(t){var n=c.useState("ssr-id"),r=ee(n,2),o=r[0],s=r[1];return c.useEffect(function(){var u=BC;BC+=1,s("rc_unique_".concat(u))},[]),t||o};var pi="RC_FORM_INTERNAL_HOOKS",Dn=function(){Sr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},$i=c.createContext({getFieldValue:Dn,getFieldsValue:Dn,getFieldError:Dn,getFieldWarning:Dn,getFieldsError:Dn,isFieldsTouched:Dn,isFieldTouched:Dn,isFieldValidating:Dn,isFieldsValidating:Dn,resetFields:Dn,setFields:Dn,setFieldValue:Dn,setFieldsValue:Dn,validateFields:Dn,submit:Dn,getInternalHooks:function(){return Dn(),{dispatch:Dn,initEntityValue:Dn,registerField:Dn,useSubscribe:Dn,setInitialValues:Dn,destroyForm:Dn,setCallbacks:Dn,registerWatch:Dn,getFields:Dn,setValidateMessages:Dn,setPreserve:Dn,getInitialValue:Dn}}}),Cc=c.createContext(null);function Ch(e){return e==null?[]:Array.isArray(e)?e:[e]}function KA(e){return e&&!!e._init}function xh(){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 wh=xh();function XA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function QA(e,t,n){if(Jh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&uc(o,n.prototype),o}function Eh(e){var t=typeof Map=="function"?new Map:void 0;return Eh=function(r){if(r===null||!XA(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return QA(r,arguments,fc(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),uc(o,r)},Eh(e)}var ZA=/%[sdj%]/g,JA=function(){};function $h(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Zr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var u=e.replace(ZA,function(d){if(d==="%%")return"%";if(o>=s)return d;switch(d){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return d}});return u}return e}function e4(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function cr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||e4(t)&&typeof e=="string"&&!e)}function t4(e,t,n){var r=[],o=0,s=e.length;function u(d){r.push.apply(r,je(d||[])),o++,o===s&&n(r)}e.forEach(function(d){t(d,u)})}function VC(e,t,n){var r=0,o=e.length;function s(u){if(u&&u.length){n(u);return}var d=r;r=r+1,d<o?t(e[d],s):n([])}s([])}function n4(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,je(e[n]||[]))}),t}var kC=function(e){uo(n,e);var t=fo(n);function n(r,o){var s;return Qn(this,n),s=t.call(this,"Async Validation Error"),Q(Zt(s),"errors",void 0),Q(Zt(s),"fields",void 0),s.errors=r,s.fields=o,s}return Zn(n)}(Eh(Error));function r4(e,t,n,r,o){if(t.first){var s=new Promise(function(b,x){var C=function(w){return r(w),w.length?x(new kC(w,$h(w))):b(o)},E=n4(e);VC(E,n,C)});return s.catch(function(b){return b}),s}var u=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),v=d.length,m=0,g=[],p=new Promise(function(b,x){var C=function(y){if(g.push.apply(g,y),m++,m===v)return r(g),g.length?x(new kC(g,$h(g))):b(o)};d.length||(r(g),b(o)),d.forEach(function(E){var y=e[E];u.indexOf(E)!==-1?VC(y,n,C):t4(y,n,C)})});return p.catch(function(b){return b}),p}function a4(e){return!!(e&&e.message!==void 0)}function o4(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function UC(e,t){return function(n){var r;return e.fullFields?r=o4(t,e.fullFields):r=t[n.field||e.fullField],a4(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function qC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];vt(r)==="object"&&vt(e[n])==="object"?e[n]=J(J({},e[n]),r):e[n]=r}}return e}var ml="enum",i4=function(t,n,r,o,s){t[ml]=Array.isArray(t[ml])?t[ml]:[],t[ml].indexOf(n)===-1&&o.push(Zr(s.messages[ml],t.fullField,t[ml].join(", ")))},l4=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Zr(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(n)||o.push(Zr(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},s4=function(t,n,r,o,s){var u=typeof t.len=="number",d=typeof t.min=="number",v=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,p=null,b=typeof n=="number",x=typeof n=="string",C=Array.isArray(n);if(b?p="number":x?p="string":C&&(p="array"),!p)return!1;C&&(g=n.length),x&&(g=n.replace(m,"_").length),u?g!==t.len&&o.push(Zr(s.messages[p].len,t.fullField,t.len)):d&&!v&&g<t.min?o.push(Zr(s.messages[p].min,t.fullField,t.min)):v&&!d&&g>t.max?o.push(Zr(s.messages[p].max,t.fullField,t.max)):d&&v&&(g<t.min||g>t.max)&&o.push(Zr(s.messages[p].range,t.fullField,t.min,t.max))},xE=function(t,n,r,o,s,u){t.required&&(!r.hasOwnProperty(t.field)||cr(n,u||t.type))&&o.push(Zr(s.messages.required,t.fullField))},of;const c4=function(){if(of)return of;var e="[a-fA-F\\d:]",t=function(D){return D&&D.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",u="(?:".concat(o.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(u,"$)")),v=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(u,"$")),g=function(D){return D&&D.exact?d:new RegExp("(?:".concat(t(D)).concat(n).concat(t(D),")|(?:").concat(t(D)).concat(u).concat(t(D),")"),"g")};g.v4=function(M){return M&&M.exact?v:new RegExp("".concat(t(M)).concat(n).concat(t(M)),"g")},g.v6=function(M){return M&&M.exact?m:new RegExp("".concat(t(M)).concat(u).concat(t(M)),"g")};var p="(?:(?:[a-z]+:)?//)",b="(?:\\S+(?::\\S*)?@)?",x=g.v4().source,C=g.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',T="(?:".concat(p,"|www\\.)").concat(b,"(?:localhost|").concat(x,"|").concat(C,"|").concat(E).concat(y).concat(w,")").concat($).concat(O);return of=new RegExp("(?:^".concat(T,"$)"),"i"),of};var WC={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},Xs={integer:function(t){return Xs.number(t)&&parseInt(t,10)===t},float:function(t){return Xs.number(t)&&!Xs.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 vt(t)==="object"&&!Xs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(WC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(c4())},hex:function(t){return typeof t=="string"&&!!t.match(WC.hex)}},u4=function(t,n,r,o,s){if(t.required&&n===void 0){xE(t,n,r,o,s);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],d=t.type;u.indexOf(d)>-1?Xs[d](n)||o.push(Zr(s.messages.types[d],t.fullField,t.type)):d&&vt(n)!==t.type&&o.push(Zr(s.messages.types[d],t.fullField,t.type))},f4=function(t,n,r,o,s){(/^\s+$/.test(n)||n==="")&&o.push(Zr(s.messages.whitespace,t.fullField))};const sn={required:xE,whitespace:f4,type:u4,range:s4,enum:i4,pattern:l4};var d4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s)}r(u)},v4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();sn.required(t,n,o,u,s,"array"),n!=null&&(sn.type(t,n,o,u,s),sn.range(t,n,o,u,s))}r(u)},m4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&sn.type(t,n,o,u,s)}r(u)},g4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n,"date")&&!t.required)return r();if(sn.required(t,n,o,u,s),!cr(n,"date")){var v;n instanceof Date?v=n:v=new Date(n),sn.type(t,v,o,u,s),v&&sn.range(t,v.getTime(),o,u,s)}}r(u)},h4="enum",p4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&sn[h4](t,n,o,u,s)}r(u)},b4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&(sn.type(t,n,o,u,s),sn.range(t,n,o,u,s))}r(u)},y4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&(sn.type(t,n,o,u,s),sn.range(t,n,o,u,s))}r(u)},S4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&sn.type(t,n,o,u,s)}r(u)},C4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&(sn.type(t,n,o,u,s),sn.range(t,n,o,u,s))}r(u)},x4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),n!==void 0&&sn.type(t,n,o,u,s)}r(u)},w4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n,"string")&&!t.required)return r();sn.required(t,n,o,u,s),cr(n,"string")||sn.pattern(t,n,o,u,s)}r(u)},E4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n)&&!t.required)return r();sn.required(t,n,o,u,s),cr(n)||sn.type(t,n,o,u,s)}r(u)},$4=function(t,n,r,o,s){var u=[],d=Array.isArray(n)?"array":vt(n);sn.required(t,n,o,u,s,d),r(u)},O4=function(t,n,r,o,s){var u=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(cr(n,"string")&&!t.required)return r();sn.required(t,n,o,u,s,"string"),cr(n,"string")||(sn.type(t,n,o,u,s),sn.range(t,n,o,u,s),sn.pattern(t,n,o,u,s),t.whitespace===!0&&sn.whitespace(t,n,o,u,s))}r(u)},cg=function(t,n,r,o,s){var u=t.type,d=[],v=t.required||!t.required&&o.hasOwnProperty(t.field);if(v){if(cr(n,u)&&!t.required)return r();sn.required(t,n,o,d,s,u),cr(n,u)||sn.type(t,n,o,d,s)}r(d)};const rc={string:O4,method:S4,number:C4,boolean:m4,regexp:E4,integer:y4,float:b4,array:v4,object:x4,enum:p4,pattern:w4,date:g4,url:cg,hex:cg,email:cg,required:$4,any:d4};var Hc=function(){function e(t){Qn(this,e),Q(this,"rules",null),Q(this,"_messages",wh),this.define(t)}return Zn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(vt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var s=n[o];r.rules[o]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=qC(xh(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},u=n,d=o,v=s;if(typeof d=="function"&&(v=d,d={}),!this.rules||Object.keys(this.rules).length===0)return v&&v(null,u),Promise.resolve(u);function m(C){var E=[],y={};function w(O){if(Array.isArray(O)){var T;E=(T=E).concat.apply(T,je(O))}else E.push(O)}for(var $=0;$<C.length;$++)w(C[$]);E.length?(y=$h(E),v(E,y)):v(null,u)}if(d.messages){var g=this.messages();g===wh&&(g=xh()),qC(g,d.messages),d.messages=g}else d.messages=this.messages();var p={},b=d.keys||Object.keys(this.rules);b.forEach(function(C){var E=r.rules[C],y=u[C];E.forEach(function(w){var $=w;typeof $.transform=="function"&&(u===n&&(u=J({},u)),y=u[C]=$.transform(y),y!=null&&($.type=$.type||(Array.isArray(y)?"array":vt(y)))),typeof $=="function"?$={validator:$}:$=J({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=C,$.fullField=$.fullField||C,$.type=r.getType($),p[C]=p[C]||[],p[C].push({rule:$,value:y,source:u,field:C}))})});var x={};return r4(p,d,function(C,E){var y=C.rule,w=(y.type==="object"||y.type==="array")&&(vt(y.fields)==="object"||vt(y.defaultField)==="object");w=w&&(y.required||!y.required&&C.value),y.field=C.field;function $(I,z){return J(J({},z),{},{fullField:"".concat(y.fullField,".").concat(I),fullFields:y.fullFields?[].concat(je(y.fullFields),[I]):[I]})}function O(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=Array.isArray(I)?I:[I];!d.suppressWarning&&z.length&&e.warning("async-validator:",z),z.length&&y.message!==void 0&&(z=[].concat(y.message));var P=z.map(UC(y,u));if(d.first&&P.length)return x[y.field]=1,E(P);if(!w)E(P);else{if(y.required&&!C.value)return y.message!==void 0?P=[].concat(y.message).map(UC(y,u)):d.error&&(P=[d.error(y,Zr(d.messages.required,y.field))]),E(P);var j={};y.defaultField&&Object.keys(C.value).map(function(k){j[k]=y.defaultField}),j=J(J({},j),C.rule.fields);var H={};Object.keys(j).forEach(function(k){var F=j[k],V=Array.isArray(F)?F:[F];H[k]=V.map($.bind(null,k))});var G=new e(H);G.messages(d.messages),C.rule.options&&(C.rule.options.messages=d.messages,C.rule.options.error=d.error),G.validate(C.value,C.rule.options||d,function(k){var F=[];P&&P.length&&F.push.apply(F,je(P)),k&&k.length&&F.push.apply(F,je(k)),E(F.length?F:null)})}}var T;if(y.asyncValidator)T=y.asyncValidator(y,C.value,O,C.source,d);else if(y.validator){try{T=y.validator(y,C.value,O,C.source,d)}catch(I){var M,D;(M=(D=console).error)===null||M===void 0||M.call(D,I),d.suppressValidatorError||setTimeout(function(){throw I},0),O(I.message)}T===!0?O():T===!1?O(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):T instanceof Array?O(T):T instanceof Error&&O(T.message)}T&&T.then&&T.then(function(){return O()},function(I){return O(I)})},function(C){m(C)},u)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!rc.hasOwnProperty(n.type))throw new Error(Zr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?rc.required:rc[this.getType(n)]||void 0}}]),e}();Q(Hc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");rc[t]=n});Q(Hc,"warning",JA);Q(Hc,"messages",wh);Q(Hc,"validators",rc);var Xr="'${name}' is not a valid ${type}",wE={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:Xr,method:Xr,array:Xr,object:Xr,number:Xr,date:Xr,boolean:Xr,integer:Xr,float:Xr,regexp:Xr,email:Xr,url:Xr,hex:Xr},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}"}},GC=Hc;function R4(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var YC="CODE_LOGIC_ERROR";function Oh(e,t,n,r,o){return Rh.apply(this,arguments)}function Rh(){return Rh=Di(Pr().mark(function e(t,n,r,o,s){var u,d,v,m,g,p,b,x,C;return Pr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return u=J({},r),delete u.ruleIndex,GC.warning=function(){},u.validator&&(d=u.validator,u.validator=function(){try{return d.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(YC)}}),v=null,u&&u.type==="array"&&u.defaultField&&(v=u.defaultField,delete u.defaultField),m=new GC(Q({},t,[u])),g=wl(wE,o.validateMessages),m.messages(g),p=[],y.prev=10,y.next=13,Promise.resolve(m.validate(Q({},t,n),J({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(p=y.t0.errors.map(function(w,$){var O=w.message,T=O===YC?g.default:O;return c.isValidElement(T)?c.cloneElement(T,{key:"error_".concat($)}):T}));case 18:if(!(!p.length&&v)){y.next=23;break}return y.next=21,Promise.all(n.map(function(w,$){return Oh("".concat(t,".").concat($),w,v,o,s)}));case 21:return b=y.sent,y.abrupt("return",b.reduce(function(w,$){return[].concat(je(w),je($))},[]));case 23:return x=J(J({},r),{},{name:t,enum:(r.enum||[]).join(", ")},s),C=p.map(function(w){return typeof w=="string"?R4(w,x):w}),y.abrupt("return",C);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Rh.apply(this,arguments)}function M4(e,t,n,r,o,s){var u=e.join("."),d=n.map(function(g,p){var b=g.validator,x=J(J({},g),{},{ruleIndex:p});return b&&(x.validator=function(C,E,y){var w=!1,$=function(){for(var M=arguments.length,D=new Array(M),I=0;I<M;I++)D[I]=arguments[I];Promise.resolve().then(function(){Sr(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||y.apply(void 0,D)})},O=b(C,E,$);w=O&&typeof O.then=="function"&&typeof O.catch=="function",Sr(w,"`callback` is deprecated. Please return a promise instead."),w&&O.then(function(){y()}).catch(function(T){y(T||" ")})}),x}).sort(function(g,p){var b=g.warningOnly,x=g.ruleIndex,C=p.warningOnly,E=p.ruleIndex;return!!b==!!C?x-E:b?1:-1}),v;if(o===!0)v=new Promise(function(){var g=Di(Pr().mark(function p(b,x){var C,E,y;return Pr().wrap(function($){for(;;)switch($.prev=$.next){case 0:C=0;case 1:if(!(C<d.length)){$.next=12;break}return E=d[C],$.next=5,Oh(u,t,E,r,s);case 5:if(y=$.sent,!y.length){$.next=9;break}return x([{errors:y,rule:E}]),$.abrupt("return");case 9:C+=1,$.next=1;break;case 12:b([]);case 13:case"end":return $.stop()}},p)}));return function(p,b){return g.apply(this,arguments)}}());else{var m=d.map(function(g){return Oh(u,t,g,r,s).then(function(p){return{errors:p,rule:g}})});v=(o?_4(m):T4(m)).then(function(g){return Promise.reject(g)})}return v.catch(function(g){return g}),v}function T4(e){return Mh.apply(this,arguments)}function Mh(){return Mh=Di(Pr().mark(function e(t){return Pr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var s,u=(s=[]).concat.apply(s,je(o));return u}));case 1:case"end":return r.stop()}},e)})),Mh.apply(this,arguments)}function _4(e){return Th.apply(this,arguments)}function Th(){return Th=Di(Pr().mark(function e(t){var n;return Pr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(s){t.forEach(function(u){u.then(function(d){d.errors.length&&s([d]),n+=1,n===t.length&&s([])})})}));case 2:case"end":return o.stop()}},e)})),Th.apply(this,arguments)}function Xn(e){return Ch(e)}function KC(e,t){var n={};return t.forEach(function(r){var o=da(e,r);n=fa(n,r,o)}),n}function Rl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return EE(t,r,n)})}function EE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function N4(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||vt(e)!=="object"||vt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return je(o).every(function(s){var u=e[s],d=t[s];return typeof u=="function"&&typeof d=="function"?!0:u===d})}function D4(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&vt(t.target)==="object"&&e in t.target?t.target[e]:t}function XC(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],s=t-n;return s>0?[].concat(je(e.slice(0,n)),[o],je(e.slice(n,t)),je(e.slice(t+1,r))):s<0?[].concat(je(e.slice(0,t)),je(e.slice(t+1,n+1)),[o],je(e.slice(n+1,r))):e}var I4=["name"],sa=[];function ug(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}var Cp=function(e){uo(n,e);var t=fo(n);function n(r){var o;if(Qn(this,n),o=t.call(this,r),Q(Zt(o),"state",{resetCount:0}),Q(Zt(o),"cancelRegisterFunc",null),Q(Zt(o),"mounted",!1),Q(Zt(o),"touched",!1),Q(Zt(o),"dirty",!1),Q(Zt(o),"validatePromise",void 0),Q(Zt(o),"prevValidating",void 0),Q(Zt(o),"errors",sa),Q(Zt(o),"warnings",sa),Q(Zt(o),"cancelRegister",function(){var v=o.props,m=v.preserve,g=v.isListField,p=v.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(g,m,Xn(p)),o.cancelRegisterFunc=null}),Q(Zt(o),"getNamePath",function(){var v=o.props,m=v.name,g=v.fieldContext,p=g.prefixName,b=p===void 0?[]:p;return m!==void 0?[].concat(je(b),je(m)):[]}),Q(Zt(o),"getRules",function(){var v=o.props,m=v.rules,g=m===void 0?[]:m,p=v.fieldContext;return g.map(function(b){return typeof b=="function"?b(p):b})}),Q(Zt(o),"refresh",function(){o.mounted&&o.setState(function(v){var m=v.resetCount;return{resetCount:m+1}})}),Q(Zt(o),"metaCache",null),Q(Zt(o),"triggerMetaEvent",function(v){var m=o.props.onMetaChange;if(m){var g=J(J({},o.getMeta()),{},{destroy:v});mc(o.metaCache,g)||m(g),o.metaCache=g}else o.metaCache=null}),Q(Zt(o),"onStoreChange",function(v,m,g){var p=o.props,b=p.shouldUpdate,x=p.dependencies,C=x===void 0?[]:x,E=p.onReset,y=g.store,w=o.getNamePath(),$=o.getValue(v),O=o.getValue(y),T=m&&Rl(m,w);switch(g.type==="valueUpdate"&&g.source==="external"&&!mc($,O)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=sa,o.warnings=sa,o.triggerMetaEvent()),g.type){case"reset":if(!m||T){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=sa,o.warnings=sa,o.triggerMetaEvent(),E==null||E(),o.refresh();return}break;case"remove":{if(b&&ug(b,v,y,$,O,g)){o.reRender();return}break}case"setField":{var M=g.data;if(T){"touched"in M&&(o.touched=M.touched),"validating"in M&&!("originRCField"in M)&&(o.validatePromise=M.validating?Promise.resolve([]):null),"errors"in M&&(o.errors=M.errors||sa),"warnings"in M&&(o.warnings=M.warnings||sa),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in M&&Rl(m,w,!0)){o.reRender();return}if(b&&!w.length&&ug(b,v,y,$,O,g)){o.reRender();return}break}case"dependenciesUpdate":{var D=C.map(Xn);if(D.some(function(I){return Rl(g.relatedFields,I)})){o.reRender();return}break}default:if(T||(!C.length||w.length||b)&&ug(b,v,y,$,O,g)){o.reRender();return}break}b===!0&&o.reRender()}),Q(Zt(o),"validateRules",function(v){var m=o.getNamePath(),g=o.getValue(),p=v||{},b=p.triggerName,x=p.validateOnly,C=x===void 0?!1:x,E=Promise.resolve().then(Di(Pr().mark(function y(){var w,$,O,T,M,D,I;return Pr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(w=o.props,$=w.validateFirst,O=$===void 0?!1:$,T=w.messageVariables,M=w.validateDebounce,D=o.getRules(),b&&(D=D.filter(function(j){return j}).filter(function(j){var H=j.validateTrigger;if(!H)return!0;var G=Ch(H);return G.includes(b)})),!(M&&b)){P.next=10;break}return P.next=8,new Promise(function(j){setTimeout(j,M)});case 8:if(o.validatePromise===E){P.next=10;break}return P.abrupt("return",[]);case 10:return I=M4(m,g,D,v,O,T),I.catch(function(j){return j}).then(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sa;if(o.validatePromise===E){var H;o.validatePromise=null;var G=[],k=[];(H=j.forEach)===null||H===void 0||H.call(j,function(F){var V=F.rule.warningOnly,R=F.errors,N=R===void 0?sa:R;V?k.push.apply(k,je(N)):G.push.apply(G,je(N))}),o.errors=G,o.warnings=k,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",I);case 13:case"end":return P.stop()}},y)})));return C||(o.validatePromise=E,o.dirty=!0,o.errors=sa,o.warnings=sa,o.triggerMetaEvent(),o.reRender()),E}),Q(Zt(o),"isFieldValidating",function(){return!!o.validatePromise}),Q(Zt(o),"isFieldTouched",function(){return o.touched}),Q(Zt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var v=o.props.fieldContext,m=v.getInternalHooks(pi),g=m.getInitialValue;return g(o.getNamePath())!==void 0}),Q(Zt(o),"getErrors",function(){return o.errors}),Q(Zt(o),"getWarnings",function(){return o.warnings}),Q(Zt(o),"isListField",function(){return o.props.isListField}),Q(Zt(o),"isList",function(){return o.props.isList}),Q(Zt(o),"isPreserve",function(){return o.props.preserve}),Q(Zt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var v={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return v}),Q(Zt(o),"getOnlyChild",function(v){if(typeof v=="function"){var m=o.getMeta();return J(J({},o.getOnlyChild(v(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var g=ja(v);return g.length!==1||!c.isValidElement(g[0])?{child:g,isFunction:!1}:{child:g[0],isFunction:!1}}),Q(Zt(o),"getValue",function(v){var m=o.props.fieldContext.getFieldsValue,g=o.getNamePath();return da(v||m(!0),g)}),Q(Zt(o),"getControlled",function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,g=m.name,p=m.trigger,b=m.validateTrigger,x=m.getValueFromEvent,C=m.normalize,E=m.valuePropName,y=m.getValueProps,w=m.fieldContext,$=b!==void 0?b:w.validateTrigger,O=o.getNamePath(),T=w.getInternalHooks,M=w.getFieldsValue,D=T(pi),I=D.dispatch,z=o.getValue(),P=y||function(F){return Q({},E,F)},j=v[p],H=g!==void 0?P(z):{},G=J(J({},v),H);G[p]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,V=arguments.length,R=new Array(V),N=0;N<V;N++)R[N]=arguments[N];x?F=x.apply(void 0,R):F=D4.apply(void 0,[E].concat(R)),C&&(F=C(F,z,M(!0))),F!==z&&I({type:"updateValue",namePath:O,value:F}),j&&j.apply(void 0,R)};var k=Ch($||[]);return k.forEach(function(F){var V=G[F];G[F]=function(){V&&V.apply(void 0,arguments);var R=o.props.rules;R&&R.length&&I({type:"validateField",namePath:O,triggerName:F})}}),G}),r.fieldContext){var s=r.fieldContext.getInternalHooks,u=s(pi),d=u.initEntityValue;d(Zt(o))}return o}return Zn(n,[{key:"componentDidMount",value:function(){var o=this.props,s=o.shouldUpdate,u=o.fieldContext;if(this.mounted=!0,u){var d=u.getInternalHooks,v=d(pi),m=v.registerField;this.cancelRegisterFunc=m(this)}s===!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,s=this.props.children,u=this.getOnlyChild(s),d=u.child,v=u.isFunction,m;return v?m=d:c.isValidElement(d)?m=c.cloneElement(d,this.getControlled(d.props)):(Sr(!d,"`children` of Field is not validate ReactElement."),m=d),c.createElement(c.Fragment,{key:o},m)}}]),n}(c.Component);Q(Cp,"contextType",$i);Q(Cp,"defaultProps",{trigger:"onChange",valuePropName:"value"});function xp(e){var t,n=e.name,r=Et(e,I4),o=c.useContext($i),s=c.useContext(Cc),u=n!==void 0?Xn(n):void 0,d=(t=r.isListField)!==null&&t!==void 0?t:!!s,v="keep";return d||(v="_".concat((u||[]).join("_"))),c.createElement(Cp,Ae({key:v,name:u,isListField:d},r,{fieldContext:o}))}function $E(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,s=e.validateTrigger,u=e.isListField,d=c.useContext($i),v=c.useContext(Cc),m=c.useRef({keys:[],id:0}),g=m.current,p=c.useMemo(function(){var E=Xn(d.prefixName)||[];return[].concat(je(E),je(Xn(t)))},[d.prefixName,t]),b=c.useMemo(function(){return J(J({},d),{},{prefixName:p})},[d,p]),x=c.useMemo(function(){return{getKey:function(y){var w=p.length,$=y[w];return[g.keys[$],y.slice(w+1)]}}},[p]);if(typeof r!="function")return Sr(!1,"Form.List only accepts function as children."),null;var C=function(y,w,$){var O=$.source;return O==="internal"?!1:y!==w};return c.createElement(Cc.Provider,{value:x},c.createElement($i.Provider,{value:b},c.createElement(xp,{name:[],shouldUpdate:C,rules:o,validateTrigger:s,initialValue:n,isList:!0,isListField:u??!!v},function(E,y){var w=E.value,$=w===void 0?[]:w,O=E.onChange,T=d.getFieldValue,M=function(){var P=T(p||[]);return P||[]},D={add:function(P,j){var H=M();j>=0&&j<=H.length?(g.keys=[].concat(je(g.keys.slice(0,j)),[g.id],je(g.keys.slice(j))),O([].concat(je(H.slice(0,j)),[P],je(H.slice(j))))):(g.keys=[].concat(je(g.keys),[g.id]),O([].concat(je(H),[P]))),g.id+=1},remove:function(P){var j=M(),H=new Set(Array.isArray(P)?P:[P]);H.size<=0||(g.keys=g.keys.filter(function(G,k){return!H.has(k)}),O(j.filter(function(G,k){return!H.has(k)})))},move:function(P,j){if(P!==j){var H=M();P<0||P>=H.length||j<0||j>=H.length||(g.keys=XC(g.keys,P,j),O(XC(H,P,j)))}}},I=$||[];return Array.isArray(I)||(I=[]),r(I.map(function(z,P){var j=g.keys[P];return j===void 0&&(g.keys[P]=g.id,j=g.keys[P],g.id+=1),{name:P,key:j,isListField:!0}}),D,y)})))}function P4(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,s){e.forEach(function(u,d){u.catch(function(v){return t=!0,v}).then(function(v){n-=1,r[d]=v,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}var OE="__@field_split__";function fg(e){return e.map(function(t){return"".concat(vt(t),":").concat(t)}).join(OE)}var gl=function(){function e(){Qn(this,e),Q(this,"kvs",new Map)}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(fg(n),r)}},{key:"get",value:function(n){return this.kvs.get(fg(n))}},{key:"update",value:function(n,r){var o=this.get(n),s=r(o);s?this.set(n,s):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(fg(n))}},{key:"map",value:function(n){return je(this.kvs.entries()).map(function(r){var o=ee(r,2),s=o[0],u=o[1],d=s.split(OE);return n({key:d.map(function(v){var m=v.match(/^([^:]*):(.*)$/),g=ee(m,3),p=g[1],b=g[2];return p==="number"?Number(b):b}),value:u})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,s=r.value;return n[o.join(".")]=s,null}),n}}]),e}(),A4=["name"],z4=Zn(function e(t){var n=this;Qn(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Q(this,"getInternalHooks",function(r){return r===pi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Sr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Q(this,"useSubscribe",function(r){n.subscribable=r}),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var s,u=wl(r,n.store);(s=n.prevWithoutPreserves)===null||s===void 0||s.map(function(d){var v=d.key;u=fa(u,v,da(r,v))}),n.prevWithoutPreserves=null,n.updateStore(u)}}),Q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new gl;n.getFieldEntities(!0).forEach(function(s){n.isMergedPreserve(s.isPreserve())||o.set(s.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Q(this,"getInitialValue",function(r){var o=da(n.initialValues,r);return r.length?wl(o):o}),Q(this,"setCallbacks",function(r){n.callbacks=r}),Q(this,"setValidateMessages",function(r){n.validateMessages=r}),Q(this,"setPreserve",function(r){n.preserve=r}),Q(this,"watchList",[]),Q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),s=n.getFieldsValue(!0);n.watchList.forEach(function(u){u(o,s,r)})}}),Q(this,"timeoutId",null),Q(this,"warningUnhooked",function(){}),Q(this,"updateStore",function(r){n.store=r}),Q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new gl;return n.getFieldEntities(r).forEach(function(s){var u=s.getNamePath();o.set(u,s)}),o}),Q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(s){var u=Xn(s);return o.get(u)||{INVALIDATE_NAME_PATH:Xn(s)}})}),Q(this,"getFieldsValue",function(r,o){n.warningUnhooked();var s,u,d;if(r===!0||Array.isArray(r)?(s=r,u=o):r&&vt(r)==="object"&&(d=r.strict,u=r.filter),s===!0&&!u)return n.store;var v=n.getFieldEntitiesForNamePathList(Array.isArray(s)?s:null),m=[];return v.forEach(function(g){var p,b,x="INVALIDATE_NAME_PATH"in g?g.INVALIDATE_NAME_PATH:g.getNamePath();if(d){var C,E;if((C=(E=g).isList)!==null&&C!==void 0&&C.call(E))return}else if(!s&&(p=(b=g).isListField)!==null&&p!==void 0&&p.call(b))return;if(!u)m.push(x);else{var y="getMeta"in g?g.getMeta():null;u(y)&&m.push(x)}}),KC(n.store,m.map(Xn))}),Q(this,"getFieldValue",function(r){n.warningUnhooked();var o=Xn(r);return da(n.store,o)}),Q(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(s,u){return s&&!("INVALIDATE_NAME_PATH"in s)?{name:s.getNamePath(),errors:s.getErrors(),warnings:s.getWarnings()}:{name:Xn(r[u]),errors:[],warnings:[]}})}),Q(this,"getFieldError",function(r){n.warningUnhooked();var o=Xn(r),s=n.getFieldsError([o])[0];return s.errors}),Q(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Xn(r),s=n.getFieldsError([o])[0];return s.warnings}),Q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var u=o[0],d=o[1],v,m=!1;o.length===0?v=null:o.length===1?Array.isArray(u)?(v=u.map(Xn),m=!1):(v=null,m=u):(v=u.map(Xn),m=d);var g=n.getFieldEntities(!0),p=function(y){return y.isFieldTouched()};if(!v)return m?g.every(function(E){return p(E)||E.isList()}):g.some(p);var b=new gl;v.forEach(function(E){b.set(E,[])}),g.forEach(function(E){var y=E.getNamePath();v.forEach(function(w){w.every(function($,O){return y[O]===$})&&b.update(w,function($){return[].concat(je($),[E])})})});var x=function(y){return y.some(p)},C=b.map(function(E){var y=E.value;return y});return m?C.every(x):C.some(x)}),Q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Q(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(u){return u.isFieldValidating()});var s=r.map(Xn);return o.some(function(u){var d=u.getNamePath();return Rl(s,d)&&u.isFieldValidating()})}),Q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new gl,s=n.getFieldEntities(!0);s.forEach(function(v){var m=v.props.initialValue,g=v.getNamePath();if(m!==void 0){var p=o.get(g)||new Set;p.add({entity:v,value:m}),o.set(g,p)}});var u=function(m){m.forEach(function(g){var p=g.props.initialValue;if(p!==void 0){var b=g.getNamePath(),x=n.getInitialValue(b);if(x!==void 0)Sr(!1,"Form already set 'initialValues' with path '".concat(b.join("."),"'. Field can not overwrite it."));else{var C=o.get(b);if(C&&C.size>1)Sr(!1,"Multiple Field with path '".concat(b.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var E=n.getFieldValue(b),y=g.isListField();!y&&(!r.skipExist||E===void 0)&&n.updateStore(fa(n.store,b,je(C)[0].value))}}}})},d;r.entities?d=r.entities:r.namePathList?(d=[],r.namePathList.forEach(function(v){var m=o.get(v);if(m){var g;(g=d).push.apply(g,je(je(m).map(function(p){return p.entity})))}})):d=s,u(d)}),Q(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(wl(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var s=r.map(Xn);s.forEach(function(u){var d=n.getInitialValue(u);n.updateStore(fa(n.store,u,d))}),n.resetWithFieldInitialValue({namePathList:s}),n.notifyObservers(o,s,{type:"reset"}),n.notifyWatch(s)}),Q(this,"setFields",function(r){n.warningUnhooked();var o=n.store,s=[];r.forEach(function(u){var d=u.name,v=Et(u,A4),m=Xn(d);s.push(m),"value"in v&&n.updateStore(fa(n.store,m,v.value)),n.notifyObservers(o,[m],{type:"setField",data:u})}),n.notifyWatch(s)}),Q(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(s){var u=s.getNamePath(),d=s.getMeta(),v=J(J({},d),{},{name:u,value:n.getFieldValue(u)});return Object.defineProperty(v,"originRCField",{value:!0}),v});return o}),Q(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var s=r.getNamePath(),u=da(n.store,s);u===void 0&&n.updateStore(fa(n.store,s,o))}}),Q(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Q(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var s=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(s,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(u,d){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(d)&&(!u||v.length>1)){var m=u?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(p){return!EE(p.getNamePath(),o)})){var g=n.store;n.updateStore(fa(g,o,m,!0)),n.notifyObservers(g,[o],{type:"remove"}),n.triggerDependenciesUpdate(g,o)}}n.notifyWatch([o])}}),Q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,s=r.value;n.updateValue(o,s);break}case"validateField":{var u=r.namePath,d=r.triggerName;n.validateFields([u],{triggerName:d});break}}}),Q(this,"notifyObservers",function(r,o,s){if(n.subscribable){var u=J(J({},s),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(d){var v=d.onStoreChange;v(r,o,u)})}else n.forceRootUpdate()}),Q(this,"triggerDependenciesUpdate",function(r,o){var s=n.getDependencyChildrenFields(o);return s.length&&n.validateFields(s),n.notifyObservers(r,s,{type:"dependenciesUpdate",relatedFields:[o].concat(je(s))}),s}),Q(this,"updateValue",function(r,o){var s=Xn(r),u=n.store;n.updateStore(fa(n.store,s,o)),n.notifyObservers(u,[s],{type:"valueUpdate",source:"internal"}),n.notifyWatch([s]);var d=n.triggerDependenciesUpdate(u,s),v=n.callbacks.onValuesChange;if(v){var m=KC(n.store,[s]);v(m,n.getFieldsValue())}n.triggerOnFieldsChange([s].concat(je(d)))}),Q(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var s=wl(n.store,r);n.updateStore(s)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Q(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Q(this,"getDependencyChildrenFields",function(r){var o=new Set,s=[],u=new gl;n.getFieldEntities().forEach(function(v){var m=v.props.dependencies;(m||[]).forEach(function(g){var p=Xn(g);u.update(p,function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return b.add(v),b})})});var d=function v(m){var g=u.get(m)||new Set;g.forEach(function(p){if(!o.has(p)){o.add(p);var b=p.getNamePath();p.isFieldDirty()&&b.length&&(s.push(b),v(b))}})};return d(r),s}),Q(this,"triggerOnFieldsChange",function(r,o){var s=n.callbacks.onFieldsChange;if(s){var u=n.getFields();if(o){var d=new gl;o.forEach(function(m){var g=m.name,p=m.errors;d.set(g,p)}),u.forEach(function(m){m.errors=d.get(m.name)||m.errors})}var v=u.filter(function(m){var g=m.name;return Rl(r,g)});v.length&&s(v,u)}}),Q(this,"validateFields",function(r,o){n.warningUnhooked();var s,u;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(s=r,u=o):u=r;var d=!!s,v=d?s.map(Xn):[],m=[],g=String(Date.now()),p=new Set,b=u||{},x=b.recursive,C=b.dirty;n.getFieldEntities(!0).forEach(function($){if(d||v.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(C&&!$.isFieldDirty())){var O=$.getNamePath();if(p.add(O.join(g)),!d||Rl(v,O,x)){var T=$.validateRules(J({validateMessages:J(J({},wE),n.validateMessages)},u));m.push(T.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(M){var D,I=[],z=[];return(D=M.forEach)===null||D===void 0||D.call(M,function(P){var j=P.rule.warningOnly,H=P.errors;j?z.push.apply(z,je(H)):I.push.apply(I,je(H))}),I.length?Promise.reject({name:O,errors:I,warnings:z}):{name:O,errors:I,warnings:z}}))}}});var E=P4(m);n.lastValidatePromise=E,E.catch(function($){return $}).then(function($){var O=$.map(function(T){var M=T.name;return M});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,$)});var y=E.then(function(){return n.lastValidatePromise===E?Promise.resolve(n.getFieldsValue(v)):Promise.reject([])}).catch(function($){var O=$.filter(function(T){return T&&T.errors.length});return Promise.reject({values:n.getFieldsValue(v),errorFields:O,outOfDate:n.lastValidatePromise!==E})});y.catch(function($){return $});var w=v.filter(function($){return p.has($.join(g))});return n.triggerOnFieldsChange(w),y}),Q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(s){console.error(s)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function wp(e){var t=c.useRef(),n=c.useState({}),r=ee(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var s=function(){o({})},u=new z4(s);t.current=u.getForm()}return[t.current]}var _h=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),RE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,s=t.children,u=c.useContext(_h),d=c.useRef({});return c.createElement(_h.Provider,{value:J(J({},u),{},{validateMessages:J(J({},u.validateMessages),n),triggerFormChange:function(m,g){r&&r(m,{changedFields:g,forms:d.current}),u.triggerFormChange(m,g)},triggerFormFinish:function(m,g){o&&o(m,{values:g,forms:d.current}),u.triggerFormFinish(m,g)},registerForm:function(m,g){m&&(d.current=J(J({},d.current),{},Q({},m,g))),u.registerForm(m,g)},unregisterForm:function(m){var g=J({},d.current);delete g[m],d.current=g,u.unregisterForm(m)}})},s)},j4=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],H4=function(t,n){var r=t.name,o=t.initialValues,s=t.fields,u=t.form,d=t.preserve,v=t.children,m=t.component,g=m===void 0?"form":m,p=t.validateMessages,b=t.validateTrigger,x=b===void 0?"onChange":b,C=t.onValuesChange,E=t.onFieldsChange,y=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,O=Et(t,j4),T=c.useRef(null),M=c.useContext(_h),D=wp(u),I=ee(D,1),z=I[0],P=z.getInternalHooks(pi),j=P.useSubscribe,H=P.setInitialValues,G=P.setCallbacks,k=P.setValidateMessages,F=P.setPreserve,V=P.destroyForm;c.useImperativeHandle(n,function(){return J(J({},z),{},{nativeElement:T.current})}),c.useEffect(function(){return M.registerForm(r,z),function(){M.unregisterForm(r)}},[M,z,r]),k(J(J({},M.validateMessages),p)),G({onValuesChange:C,onFieldsChange:function(U){if(M.triggerFormChange(r,U),E){for(var X=arguments.length,Z=new Array(X>1?X-1:0),te=1;te<X;te++)Z[te-1]=arguments[te];E.apply(void 0,[U].concat(Z))}},onFinish:function(U){M.triggerFormFinish(r,U),y&&y(U)},onFinishFailed:w}),F(d);var R=c.useRef(null);H(o,!R.current),R.current||(R.current=!0),c.useEffect(function(){return function(){return V($)}},[]);var N,A=typeof v=="function";if(A){var q=z.getFieldsValue(!0);N=v(q,z)}else N=v;j(!A);var _=c.useRef();c.useEffect(function(){N4(_.current||[],s||[])||z.setFields(s||[]),_.current=s},[s,z]);var L=c.useMemo(function(){return J(J({},z),{},{validateTrigger:x})},[z,x]),W=c.createElement(Cc.Provider,{value:null},c.createElement($i.Provider,{value:L},N));return g===!1?W:c.createElement(g,Ae({},O,{ref:T,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),z.submit()},onReset:function(U){var X;U.preventDefault(),z.resetFields(),(X=O.onReset)===null||X===void 0||X.call(O,U)}}),W)};function QC(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ME(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],s=o===void 0?{}:o,u=KA(s)?{form:s}:s,d=u.form,v=c.useState(),m=ee(v,2),g=m[0],p=m[1],b=c.useMemo(function(){return QC(g)},[g]),x=c.useRef(b);x.current=b;var C=c.useContext($i),E=d||C,y=E&&E._init,w=Xn(r),$=c.useRef(w);return $.current=w,c.useEffect(function(){if(y){var O=E.getFieldsValue,T=E.getInternalHooks,M=T(pi),D=M.registerWatch,I=function(H,G){var k=u.preserve?G:H;return typeof r=="function"?r(k):da(k,$.current)},z=D(function(j,H){var G=I(j,H),k=QC(G);x.current!==k&&(x.current=k,p(G))}),P=I(O(),O(!0));return g!==P&&p(P),z}},[y]),g}var L4=c.forwardRef(H4),Ll=L4;Ll.FormProvider=RE;Ll.Field=xp;Ll.List=$E;Ll.useForm=wp;Ll.useWatch=ME;const so=c.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),TE=c.createContext(null),_E=e=>{const t=ur(e,["prefixCls"]);return c.createElement(RE,Object.assign({},t))},Ep=c.createContext({prefixCls:""}),Mr=c.createContext({}),B4=e=>{let{children:t,status:n,override:r}=e;const o=c.useContext(Mr),s=c.useMemo(()=>{const u=Object.assign({},o);return r&&delete u.isFormItemInput,n&&(delete u.status,delete u.hasFeedback,delete u.feedbackIcon),u},[n,r,o]);return c.createElement(Mr.Provider,{value:s},t)},NE=c.createContext(void 0),xc=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Ie.createElement(B4,{override:!0,status:!0},o)),t&&(o=Ie.createElement(xP,null,o)),o};var F4=function(t){if(Ir()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function ZC(e,t){return F4(e)}const Ed=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:s}=e,u=me({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),d=me({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),v=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:me(t,u,d,n),style:Object.assign(Object.assign({},v),r)})},V4=new hn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$d=e=>({height:e,lineHeight:ge(e)}),Ml=e=>Object.assign({width:e},$d(e)),k4=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:V4,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),dg=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},$d(e)),U4=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ml(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ml(o)),[`${t}${t}-sm`]:Object.assign({},Ml(s))}},q4=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:u,calc:d}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:u,borderRadius:n},dg(t,d)),[`${r}-lg`]:Object.assign({},dg(o,d)),[`${r}-sm`]:Object.assign({},dg(s,d))}},JC=e=>Object.assign({width:e},$d(e)),W4=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:s}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},JC(s(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},JC(n)),{maxWidth:s(n).mul(4).equal(),maxHeight:s(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},vg=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},mg=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},$d(e)),G4=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:u,calc:d}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:u,borderRadius:t,width:d(r).mul(2).equal(),minWidth:d(r).mul(2).equal()},mg(r,d))},vg(e,r,n)),{[`${n}-lg`]:Object.assign({},mg(o,d))}),vg(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},mg(s,d))}),vg(e,s,`${n}-sm`))},Y4=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:s,skeletonInputCls:u,skeletonImageCls:d,controlHeight:v,controlHeightLG:m,controlHeightSM:g,gradientFromColor:p,padding:b,marginSM:x,borderRadius:C,titleHeight:E,blockRadius:y,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:b,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Ml(v)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ml(m)),[`${n}-sm`]:Object.assign({},Ml(g))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:E,background:p,borderRadius:y,[`+ ${o}`]:{marginBlockStart:g}},[o]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:p,borderRadius:y,"+ li":{marginBlockStart:$}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:x,[`+ ${o}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},G4(e)),U4(e)),q4(e)),W4(e)),[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[u]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${s},
        ${u},
        ${d}
      `]:Object.assign({},k4(e))}}},K4=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Bl=gr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Sn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Y4(r)]},K4,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),X4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:s="circle",size:u="default"}=e,{getPrefixCls:d}=c.useContext(Wt),v=d("skeleton",t),[m,g,p]=Bl(v),b=ur(e,["prefixCls","className"]),x=me(v,`${v}-element`,{[`${v}-active`]:o},n,r,g,p);return m(c.createElement("div",{className:x},c.createElement(Ed,Object.assign({prefixCls:`${v}-avatar`,shape:s,size:u},b))))},Q4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:s=!1,size:u="default"}=e,{getPrefixCls:d}=c.useContext(Wt),v=d("skeleton",t),[m,g,p]=Bl(v),b=ur(e,["prefixCls"]),x=me(v,`${v}-element`,{[`${v}-active`]:o,[`${v}-block`]:s},n,r,g,p);return m(c.createElement("div",{className:x},c.createElement(Ed,Object.assign({prefixCls:`${v}-button`,size:u},b))))},Z4="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",J4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:s}=e,{getPrefixCls:u}=c.useContext(Wt),d=u("skeleton",t),[v,m,g]=Bl(d),p=me(d,`${d}-element`,{[`${d}-active`]:s},n,r,m,g);return v(c.createElement("div",{className:p},c.createElement("div",{className:me(`${d}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${d}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:Z4,className:`${d}-image-path`})))))},e3=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:s,size:u="default"}=e,{getPrefixCls:d}=c.useContext(Wt),v=d("skeleton",t),[m,g,p]=Bl(v),b=ur(e,["prefixCls"]),x=me(v,`${v}-element`,{[`${v}-active`]:o,[`${v}-block`]:s},n,r,g,p);return m(c.createElement("div",{className:x},c.createElement(Ed,Object.assign({prefixCls:`${v}-input`,size:u},b))))},t3=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:s,children:u}=e,{getPrefixCls:d}=c.useContext(Wt),v=d("skeleton",t),[m,g,p]=Bl(v),b=me(v,`${v}-element`,{[`${v}-active`]:s},g,n,r,p);return m(c.createElement("div",{className:b},c.createElement("div",{className:me(`${v}-image`,n),style:o},u)))},n3=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},r3=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,s=Array.from({length:o}).map((u,d)=>c.createElement("li",{key:d,style:{width:n3(d,e)}}));return c.createElement("ul",{className:me(t,n),style:r},s)},a3=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return c.createElement("h3",{className:me(t,n),style:Object.assign({width:r},o)})};function gg(e){return e&&typeof e=="object"?e:{}}function o3(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function i3(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function l3(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const oo=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:s,children:u,avatar:d=!1,title:v=!0,paragraph:m=!0,active:g,round:p}=e,{getPrefixCls:b,direction:x,className:C,style:E}=vo("skeleton"),y=b("skeleton",t),[w,$,O]=Bl(y);if(n||!("loading"in e)){const T=!!d,M=!!v,D=!!m;let I;if(T){const j=Object.assign(Object.assign({prefixCls:`${y}-avatar`},o3(M,D)),gg(d));I=c.createElement("div",{className:`${y}-header`},c.createElement(Ed,Object.assign({},j)))}let z;if(M||D){let j;if(M){const G=Object.assign(Object.assign({prefixCls:`${y}-title`},i3(T,D)),gg(v));j=c.createElement(a3,Object.assign({},G))}let H;if(D){const G=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},l3(T,M)),gg(m));H=c.createElement(r3,Object.assign({},G))}z=c.createElement("div",{className:`${y}-content`},j,H)}const P=me(y,{[`${y}-with-avatar`]:T,[`${y}-active`]:g,[`${y}-rtl`]:x==="rtl",[`${y}-round`]:p},C,r,o,$,O);return w(c.createElement("div",{className:P,style:Object.assign(Object.assign({},E),s)},I,z))}return u??null};oo.Button=Q4;oo.Avatar=X4;oo.Input=e3;oo.Image=J4;oo.Node=t3;const s3=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"}}}},c3=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},u3=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,s={};for(let u=o;u>=0;u--)u===0?(s[`${r}${t}-${u}`]={display:"none"},s[`${r}-push-${u}`]={insetInlineStart:"auto"},s[`${r}-pull-${u}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${u}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${u}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${u}`]={marginInlineStart:0},s[`${r}${t}-order-${u}`]={order:0}):(s[`${r}${t}-${u}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${u/o*100}%`,maxWidth:`${u/o*100}%`}],s[`${r}${t}-push-${u}`]={insetInlineStart:`${u/o*100}%`},s[`${r}${t}-pull-${u}`]={insetInlineEnd:`${u/o*100}%`},s[`${r}${t}-offset-${u}`]={marginInlineStart:`${u/o*100}%`},s[`${r}${t}-order-${u}`]={order:u});return s[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},s},Nh=(e,t)=>u3(e,t),f3=(e,t,n)=>({[`@media (min-width: ${ge(t)})`]:Object.assign({},Nh(e,n))}),d3=()=>({}),v3=()=>({}),m3=gr("Grid",s3,d3),g3=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),h3=gr("Grid",e=>{const t=Sn(e,{gridColumns:24}),n=g3(t);return delete n.xs,[c3(t),Nh(t,""),Nh(t,"-xs"),Object.keys(n).map(r=>f3(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},v3),p3=Ie.createContext({});function b3(e){return t=>c.createElement(Ni,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const $p=(e,t,n,r,o)=>b3(u=>{const{prefixCls:d,style:v}=u,m=c.useRef(null),[g,p]=c.useState(0),[b,x]=c.useState(0),[C,E]=An(!1,{value:u.open}),{getPrefixCls:y}=c.useContext(Wt),w=y(r||"select",d);c.useEffect(()=>{if(E(!0),typeof ResizeObserver<"u"){const T=new ResizeObserver(D=>{const I=D[0].target;p(I.offsetHeight+8),x(I.offsetWidth)}),M=setInterval(()=>{var D;const I=`.${w}-dropdown`,z=(D=m.current)===null||D===void 0?void 0:D.querySelector(I);z&&(clearInterval(M),T.observe(z))},10);return()=>{clearInterval(M),T.disconnect()}}},[]);let $=Object.assign(Object.assign({},u),{style:Object.assign(Object.assign({},v),{margin:0}),open:C,visible:C,getPopupContainer:()=>m.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:g,position:"relative",minWidth:b};return c.createElement("div",{ref:m,style:O},c.createElement(e,Object.assign({},$)))}),Op=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Od=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,s=t.children,u=t.onMouseDown,d=t.onClick,v=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(g){g.preventDefault(),u==null||u(g)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:d,"aria-hidden":!0},v!==void 0?v:c.createElement("span",{className:me(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},s))},y3=function(t,n,r,o,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,d=arguments.length>6?arguments[6]:void 0,v=arguments.length>7?arguments[7]:void 0,m=Ie.useMemo(function(){if(vt(o)==="object")return o.clearIcon;if(s)return s},[o,s]),g=Ie.useMemo(function(){return!!(!u&&o&&(r.length||d)&&!(v==="combobox"&&d===""))},[o,u,r.length,d,v]);return{allowClear:g,clearIcon:Ie.createElement(Od,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},DE=c.createContext(null);function S3(){return c.useContext(DE)}function C3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ee(t,2),r=n[0],o=n[1],s=c.useRef(null),u=function(){window.clearTimeout(s.current)};c.useEffect(function(){return u},[]);var d=function(m,g){u(),s.current=window.setTimeout(function(){o(m),g&&g()},e)};return[r,d,u]}function IE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function x3(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function s(u){var d;if(!((d=o.current)!==null&&d!==void 0&&d.customizedTrigger)){var v=u.target;v.shadowRoot&&u.composed&&(v=u.composedPath()[0]||v),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(v)&&m!==v})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",s),function(){return window.removeEventListener("mousedown",s)}},[])}function w3(e){return e&&![bt.ESC,bt.SHIFT,bt.BACKSPACE,bt.TAB,bt.WIN_KEY,bt.ALT,bt.META,bt.WIN_KEY_RIGHT,bt.CTRL,bt.SEMICOLON,bt.EQUALS,bt.CAPS_LOCK,bt.CONTEXT_MENU,bt.F1,bt.F2,bt.F3,bt.F4,bt.F5,bt.F6,bt.F7,bt.F8,bt.F9,bt.F10,bt.F11,bt.F12].includes(e)}var E3=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],hl=void 0;function $3(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,s=e.renderItem,u=e.responsive,d=e.responsiveDisabled,v=e.registerSize,m=e.itemKey,g=e.className,p=e.style,b=e.children,x=e.display,C=e.order,E=e.component,y=E===void 0?"div":E,w=Et(e,E3),$=u&&!x;function O(z){v(m,z)}c.useEffect(function(){return function(){O(null)}},[]);var T=s&&o!==hl?s(o,{index:C}):b,M;r||(M={opacity:$?0:1,height:$?0:hl,overflowY:$?"hidden":hl,order:u?C:hl,pointerEvents:$?"none":hl,position:$?"absolute":hl});var D={};$&&(D["aria-hidden"]=!0);var I=c.createElement(y,Ae({className:me(!r&&n,g),style:J(J({},M),p)},D,w,{ref:t}),T);return u&&(I=c.createElement(Lr,{onResize:function(P){var j=P.offsetWidth;O(j)},disabled:d},I)),I}var ac=c.forwardRef($3);ac.displayName="Item";function O3(e){if(typeof MessageChannel>"u")kt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function R3(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],O3(function(){Uo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ks(e,t){var n=c.useState(t),r=ee(n,2),o=r[0],s=r[1],u=tn(function(d){e(function(){s(d)})});return[o,u]}var Zf=Ie.createContext(null),M3=["component"],T3=["className"],_3=["className"],N3=function(t,n){var r=c.useContext(Zf);if(!r){var o=t.component,s=o===void 0?"div":o,u=Et(t,M3);return c.createElement(s,Ae({},u,{ref:n}))}var d=r.className,v=Et(r,T3),m=t.className,g=Et(t,_3);return c.createElement(Zf.Provider,{value:null},c.createElement(ac,Ae({ref:n,className:me(d,m)},v,g)))},PE=c.forwardRef(N3);PE.displayName="RawItem";var D3=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],AE="responsive",zE="invalidate";function I3(e){return"+ ".concat(e.length," ...")}function P3(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,s=o===void 0?[]:o,u=e.renderItem,d=e.renderRawItem,v=e.itemKey,m=e.itemWidth,g=m===void 0?10:m,p=e.ssr,b=e.style,x=e.className,C=e.maxCount,E=e.renderRest,y=e.renderRawRest,w=e.suffix,$=e.component,O=$===void 0?"div":$,T=e.itemComponent,M=e.onVisibleChange,D=Et(e,D3),I=p==="full",z=R3(),P=ks(z,null),j=ee(P,2),H=j[0],G=j[1],k=H||0,F=ks(z,new Map),V=ee(F,2),R=V[0],N=V[1],A=ks(z,0),q=ee(A,2),_=q[0],L=q[1],W=ks(z,0),Y=ee(W,2),U=Y[0],X=Y[1],Z=ks(z,0),te=ee(Z,2),ne=te[0],re=te[1],le=c.useState(null),oe=ee(le,2),ie=oe[0],ce=oe[1],de=c.useState(null),ue=ee(de,2),fe=ue[0],xe=ue[1],pe=c.useMemo(function(){return fe===null&&I?Number.MAX_SAFE_INTEGER:fe||0},[fe,H]),Ne=c.useState(!1),De=ee(Ne,2),Re=De[0],Le=De[1],Ee="".concat(r,"-item"),Me=Math.max(_,U),Fe=C===AE,Te=s.length&&Fe,Ye=C===zE,Xe=Te||typeof C=="number"&&s.length>C,He=c.useMemo(function(){var at=s;return Te?H===null&&I?at=s:at=s.slice(0,Math.min(s.length,k/g)):typeof C=="number"&&(at=s.slice(0,C)),at},[s,g,H,C,Te]),Ze=c.useMemo(function(){return Te?s.slice(pe+1):s.slice(He.length)},[s,He,Te,pe]),et=c.useCallback(function(at,tt){var Qe;return typeof v=="function"?v(at):(Qe=v&&(at==null?void 0:at[v]))!==null&&Qe!==void 0?Qe:tt},[v]),Ge=c.useCallback(u||function(at){return at},[u]);function qe(at,tt,Qe){fe===at&&(tt===void 0||tt===ie)||(xe(at),Qe||(Le(at<s.length-1),M==null||M(at)),tt!==void 0&&ce(tt))}function ye(at,tt){G(tt.clientWidth)}function Oe(at,tt){N(function(Qe){var Ct=new Map(Qe);return tt===null?Ct.delete(at):Ct.set(at,tt),Ct})}function $e(at,tt){X(tt),L(U)}function Se(at,tt){re(tt)}function Be(at){return R.get(et(He[at],at))}qt(function(){if(k&&typeof Me=="number"&&He){var at=ne,tt=He.length,Qe=tt-1;if(!tt){qe(0,null);return}for(var Ct=0;Ct<tt;Ct+=1){var yt=Be(Ct);if(I&&(yt=yt||0),yt===void 0){qe(Ct-1,void 0,!0);break}if(at+=yt,Qe===0&&at<=k||Ct===Qe-1&&at+Be(Qe)<=k){qe(Qe,null);break}else if(at+Me>k){qe(Ct-1,at-yt-ne+U);break}}w&&Be(0)+ne>k&&ce(null)}},[k,R,U,ne,et,He]);var mt=Re&&!!Ze.length,Ot={};ie!==null&&Te&&(Ot={position:"absolute",left:ie,top:0});var Dt={prefixCls:Ee,responsive:Te,component:T,invalidate:Ye},Kt=d?function(at,tt){var Qe=et(at,tt);return c.createElement(Zf.Provider,{key:Qe,value:J(J({},Dt),{},{order:tt,item:at,itemKey:Qe,registerSize:Oe,display:tt<=pe})},d(at,tt))}:function(at,tt){var Qe=et(at,tt);return c.createElement(ac,Ae({},Dt,{order:tt,key:Qe,item:at,renderItem:Ge,itemKey:Qe,registerSize:Oe,display:tt<=pe}))},zt={order:mt?pe:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:$e,display:mt},Tt=E||I3,Rt=y?c.createElement(Zf.Provider,{value:J(J({},Dt),zt)},y(Ze)):c.createElement(ac,Ae({},Dt,zt),typeof Tt=="function"?Tt(Ze):Tt),gt=c.createElement(O,Ae({className:me(!Ye&&r,x),style:b,ref:t},D),He.map(Kt),Xe?Rt:null,w&&c.createElement(ac,Ae({},Dt,{responsive:Fe,responsiveDisabled:!Te,order:pe,className:"".concat(Ee,"-suffix"),registerSize:Se,display:!0,style:Ot}),w));return Fe?c.createElement(Lr,{onResize:ye,disabled:!Te},gt):gt}var wa=c.forwardRef(P3);wa.displayName="Overflow";wa.Item=PE;wa.RESPONSIVE=AE;wa.INVALIDATE=zE;var A3=function(t,n){var r,o=t.prefixCls,s=t.id,u=t.inputElement,d=t.disabled,v=t.tabIndex,m=t.autoFocus,g=t.autoComplete,p=t.editable,b=t.activeDescendantId,x=t.value,C=t.maxLength,E=t.onKeyDown,y=t.onMouseDown,w=t.onChange,$=t.onPaste,O=t.onCompositionStart,T=t.onCompositionEnd,M=t.onBlur,D=t.open,I=t.attrs,z=u||c.createElement("input",null),P=z,j=P.ref,H=P.props,G=H.onKeyDown,k=H.onChange,F=H.onMouseDown,V=H.onCompositionStart,R=H.onCompositionEnd,N=H.onBlur,A=H.style;return"maxLength"in z.props,z=c.cloneElement(z,J(J(J({type:"search"},H),{},{id:s,ref:Br(n,j),disabled:d,tabIndex:v,autoComplete:g||"off",autoFocus:m,className:me("".concat(o,"-selection-search-input"),(r=z)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":D||!1,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":D?b:void 0},I),{},{value:p?x:"",maxLength:C,readOnly:!p,unselectable:p?null:"on",style:J(J({},A),{},{opacity:p?null:0}),onKeyDown:function(_){E(_),G&&G(_)},onMouseDown:function(_){y(_),F&&F(_)},onChange:function(_){w(_),k&&k(_)},onCompositionStart:function(_){O(_),V&&V(_)},onCompositionEnd:function(_){T(_),R&&R(_)},onPaste:$,onBlur:function(_){M(_),N&&N(_)}})),z},jE=c.forwardRef(A3);function HE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var z3=typeof window<"u"&&window.document&&window.document.documentElement,j3=z3;function H3(e){return e!=null}function L3(e){return!e&&e!==0}function e1(e){return["string","number"].includes(vt(e))}function LE(e){var t=void 0;return e&&(e1(e.title)?t=e.title.toString():e1(e.label)&&(t=e.label.toString())),t}function B3(e,t){j3?c.useLayoutEffect(e,t):c.useEffect(e,t)}function F3(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var t1=function(t){t.preventDefault(),t.stopPropagation()},V3=function(t){var n=t.id,r=t.prefixCls,o=t.values,s=t.open,u=t.searchValue,d=t.autoClearSearchValue,v=t.inputRef,m=t.placeholder,g=t.disabled,p=t.mode,b=t.showSearch,x=t.autoFocus,C=t.autoComplete,E=t.activeDescendantId,y=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,O=t.maxTagTextLength,T=t.maxTagPlaceholder,M=T===void 0?function(de){return"+ ".concat(de.length," ...")}:T,D=t.tagRender,I=t.onToggleOpen,z=t.onRemove,P=t.onInputChange,j=t.onInputPaste,H=t.onInputKeyDown,G=t.onInputMouseDown,k=t.onInputCompositionStart,F=t.onInputCompositionEnd,V=t.onInputBlur,R=c.useRef(null),N=c.useState(0),A=ee(N,2),q=A[0],_=A[1],L=c.useState(!1),W=ee(L,2),Y=W[0],U=W[1],X="".concat(r,"-selection"),Z=s||p==="multiple"&&d===!1||p==="tags"?u:"",te=p==="tags"||p==="multiple"&&d===!1||b&&(s||Y);B3(function(){_(R.current.scrollWidth)},[Z]);var ne=function(ue,fe,xe,pe,Ne){return c.createElement("span",{title:LE(ue),className:me("".concat(X,"-item"),Q({},"".concat(X,"-item-disabled"),xe))},c.createElement("span",{className:"".concat(X,"-item-content")},fe),pe&&c.createElement(Od,{className:"".concat(X,"-item-remove"),onMouseDown:t1,onClick:Ne,customizeIcon:w},"×"))},re=function(ue,fe,xe,pe,Ne,De){var Re=function(Ee){t1(Ee),I(!s)};return c.createElement("span",{onMouseDown:Re},D({label:fe,value:ue,disabled:xe,closable:pe,onClose:Ne,isMaxTag:!!De}))},le=function(ue){var fe=ue.disabled,xe=ue.label,pe=ue.value,Ne=!g&&!fe,De=xe;if(typeof O=="number"&&(typeof xe=="string"||typeof xe=="number")){var Re=String(De);Re.length>O&&(De="".concat(Re.slice(0,O),"..."))}var Le=function(Me){Me&&Me.stopPropagation(),z(ue)};return typeof D=="function"?re(pe,De,fe,Ne,Le):ne(ue,De,fe,Ne,Le)},oe=function(ue){if(!o.length)return null;var fe=typeof M=="function"?M(ue):M;return typeof D=="function"?re(void 0,fe,!1,!1,void 0,!0):ne({title:fe},fe,!1)},ie=c.createElement("div",{className:"".concat(X,"-search"),style:{width:q},onFocus:function(){U(!0)},onBlur:function(){U(!1)}},c.createElement(jE,{ref:v,open:s,prefixCls:r,id:n,inputElement:null,disabled:g,autoFocus:x,autoComplete:C,editable:te,activeDescendantId:E,value:Z,onKeyDown:H,onMouseDown:G,onChange:P,onPaste:j,onCompositionStart:k,onCompositionEnd:F,onBlur:V,tabIndex:y,attrs:lo(t,!0)}),c.createElement("span",{ref:R,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},Z," ")),ce=c.createElement(wa,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:le,renderRest:oe,suffix:ie,itemKey:F3,maxCount:$});return c.createElement("span",{className:"".concat(X,"-wrap")},ce,!o.length&&!Z&&c.createElement("span",{className:"".concat(X,"-placeholder")},m))},k3=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,s=t.inputRef,u=t.disabled,d=t.autoFocus,v=t.autoComplete,m=t.activeDescendantId,g=t.mode,p=t.open,b=t.values,x=t.placeholder,C=t.tabIndex,E=t.showSearch,y=t.searchValue,w=t.activeValue,$=t.maxLength,O=t.onInputKeyDown,T=t.onInputMouseDown,M=t.onInputChange,D=t.onInputPaste,I=t.onInputCompositionStart,z=t.onInputCompositionEnd,P=t.onInputBlur,j=t.title,H=c.useState(!1),G=ee(H,2),k=G[0],F=G[1],V=g==="combobox",R=V||E,N=b[0],A=y||"";V&&w&&!k&&(A=w),c.useEffect(function(){V&&F(!1)},[V,w]);var q=g!=="combobox"&&!p&&!E?!1:!!A,_=j===void 0?LE(N):j,L=c.useMemo(function(){return N?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:q?{visibility:"hidden"}:void 0},x)},[N,q,x,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(jE,{ref:s,prefixCls:r,id:o,open:p,inputElement:n,disabled:u,autoFocus:d,autoComplete:v,editable:R,activeDescendantId:m,value:A,onKeyDown:O,onMouseDown:T,onChange:function(Y){F(!0),M(Y)},onPaste:D,onCompositionStart:I,onCompositionEnd:z,onBlur:P,tabIndex:C,attrs:lo(t,!0),maxLength:V?$:void 0})),!V&&N?c.createElement("span",{className:"".concat(r,"-selection-item"),title:_,style:q?{visibility:"hidden"}:void 0},N.label):null,L)},U3=function(t,n){var r=c.useRef(null),o=c.useRef(!1),s=t.prefixCls,u=t.open,d=t.mode,v=t.showSearch,m=t.tokenWithEnter,g=t.disabled,p=t.prefix,b=t.autoClearSearchValue,x=t.onSearch,C=t.onSearchSubmit,E=t.onToggleOpen,y=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(_){r.current.focus(_)},blur:function(){r.current.blur()}}});var O=IE(0),T=ee(O,2),M=T[0],D=T[1],I=function(_){var L=_.which,W=r.current instanceof HTMLTextAreaElement;!W&&u&&(L===bt.UP||L===bt.DOWN)&&_.preventDefault(),y&&y(_),L===bt.ENTER&&d==="tags"&&!o.current&&!u&&(C==null||C(_.target.value)),!(W&&!u&&~[bt.UP,bt.DOWN,bt.LEFT,bt.RIGHT].indexOf(L))&&w3(L)&&E(!0)},z=function(){D(!0)},P=c.useRef(null),j=function(_){x(_,!0,o.current)!==!1&&E(!0)},H=function(){o.current=!0},G=function(_){o.current=!1,d!=="combobox"&&j(_.target.value)},k=function(_){var L=_.target.value;if(m&&P.current&&/[\r\n]/.test(P.current)){var W=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(W,P.current)}P.current=null,j(L)},F=function(_){var L=_.clipboardData,W=L==null?void 0:L.getData("text");P.current=W||""},V=function(_){var L=_.target;if(L!==r.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(_){var L=M();_.target!==r.current&&!L&&!(d==="combobox"&&g)&&_.preventDefault(),(d!=="combobox"&&(!v||!L)||!u)&&(u&&b!==!1&&x("",!0,!1),E())},N={inputRef:r,onInputKeyDown:I,onInputMouseDown:z,onInputChange:k,onInputPaste:F,onInputCompositionStart:H,onInputCompositionEnd:G,onInputBlur:w},A=d==="multiple"||d==="tags"?c.createElement(V3,Ae({},t,N)):c.createElement(k3,Ae({},t,N));return c.createElement("div",{ref:$,className:"".concat(s,"-selector"),onClick:V,onMouseDown:R},p&&c.createElement("div",{className:"".concat(s,"-prefix")},p),A)},q3=c.forwardRef(U3);function W3(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,s=r||{},u=s.className,d=s.content,v=o.x,m=v===void 0?0:v,g=o.y,p=g===void 0?0:g,b=c.useRef();if(!n||!n.points)return null;var x={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],E=n.points[1],y=C[0],w=C[1],$=E[0],O=E[1];y===$||!["t","b"].includes(y)?x.top=p:y==="t"?x.top=0:x.bottom=0,w===O||!["l","r"].includes(w)?x.left=m:w==="l"?x.left=0:x.right=0}return c.createElement("div",{ref:b,className:me("".concat(t,"-arrow"),u),style:x},d)}function G3(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,s=e.motion;return o?c.createElement(Go,Ae({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(u){var d=u.className;return c.createElement("div",{style:{zIndex:r},className:me("".concat(t,"-mask"),d)})}):null}var Y3=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),K3=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,v=e.open,m=e.keepDom,g=e.fresh,p=e.onClick,b=e.mask,x=e.arrow,C=e.arrowPos,E=e.align,y=e.motion,w=e.maskMotion,$=e.forceRender,O=e.getPopupContainer,T=e.autoDestroy,M=e.portal,D=e.zIndex,I=e.onMouseEnter,z=e.onMouseLeave,P=e.onPointerEnter,j=e.onPointerDownCapture,H=e.ready,G=e.offsetX,k=e.offsetY,F=e.offsetR,V=e.offsetB,R=e.onAlign,N=e.onPrepare,A=e.stretch,q=e.targetWidth,_=e.targetHeight,L=typeof n=="function"?n():n,W=v||m,Y=(O==null?void 0:O.length)>0,U=c.useState(!O||!Y),X=ee(U,2),Z=X[0],te=X[1];if(qt(function(){!Z&&Y&&u&&te(!0)},[Z,Y,u]),!Z)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(H||!v){var le,oe=E.points,ie=E.dynamicInset||((le=E._experimental)===null||le===void 0?void 0:le.dynamicInset),ce=ie&&oe[0][1]==="r",de=ie&&oe[0][0]==="b";ce?(re.right=F,re.left=ne):(re.left=G,re.right=ne),de?(re.bottom=V,re.top=ne):(re.top=k,re.bottom=ne)}var ue={};return A&&(A.includes("height")&&_?ue.height=_:A.includes("minHeight")&&_&&(ue.minHeight=_),A.includes("width")&&q?ue.width=q:A.includes("minWidth")&&q&&(ue.minWidth=q)),v||(ue.pointerEvents="none"),c.createElement(M,{open:$||W,getContainer:O&&function(){return O(u)},autoDestroy:T},c.createElement(G3,{prefixCls:o,open:v,zIndex:D,mask:b,motion:w}),c.createElement(Lr,{onResize:R,disabled:!v},function(fe){return c.createElement(Go,Ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:N,onEnterPrepare:N,visible:v,onVisibleChanged:function(pe){var Ne;y==null||(Ne=y.onVisibleChanged)===null||Ne===void 0||Ne.call(y,pe),d(pe)}}),function(xe,pe){var Ne=xe.className,De=xe.style,Re=me(o,Ne,r);return c.createElement("div",{ref:Br(fe,t,pe),className:Re,style:J(J(J(J({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},re),ue),De),{},{boxSizing:"border-box",zIndex:D},s),onMouseEnter:I,onMouseLeave:z,onPointerEnter:P,onClick:p,onPointerDownCapture:j},x&&c.createElement(W3,{prefixCls:o,arrow:x,arrowPos:C,align:E}),c.createElement(Y3,{cache:!v&&!g},L))})}))}),X3=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Wo(n),s=c.useCallback(function(d){Zh(t,r?r(d):d)},[r]),u=Mi(s,Ti(n));return o?c.cloneElement(n,{ref:u}):n}),n1=c.createContext(null);function r1(e){return e?Array.isArray(e)?e:[e]:[]}function Q3(e,t,n,r){return c.useMemo(function(){var o=r1(n??t),s=r1(r??t),u=new Set(o),d=new Set(s);return e&&(u.has("hover")&&(u.delete("hover"),u.add("click")),d.has("hover")&&(d.delete("hover"),d.add("click"))),[u,d]},[e,t,n,r])}function Z3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function J3(e,t,n,r){for(var o=n.points,s=Object.keys(e),u=0;u<s.length;u+=1){var d,v=s[u];if(Z3((d=e[v])===null||d===void 0?void 0:d.points,o,r))return"".concat(t,"-placement-").concat(v)}return""}function a1(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Lc(e){return e.ownerDocument.defaultView}function Dh(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Lc(n).getComputedStyle(n),s=o.overflowX,u=o.overflowY,d=o.overflow;[s,u,d].some(function(v){return r.includes(v)})&&t.push(n),n=n.parentElement}return t}function wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Us(e){return wc(parseFloat(e),0)}function o1(e,t){var n=J({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Lc(r).getComputedStyle(r),s=o.overflow,u=o.overflowClipMargin,d=o.borderTopWidth,v=o.borderBottomWidth,m=o.borderLeftWidth,g=o.borderRightWidth,p=r.getBoundingClientRect(),b=r.offsetHeight,x=r.clientHeight,C=r.offsetWidth,E=r.clientWidth,y=Us(d),w=Us(v),$=Us(m),O=Us(g),T=wc(Math.round(p.width/C*1e3)/1e3),M=wc(Math.round(p.height/b*1e3)/1e3),D=(C-E-$-O)*T,I=(b-x-y-w)*M,z=y*M,P=w*M,j=$*T,H=O*T,G=0,k=0;if(s==="clip"){var F=Us(u);G=F*T,k=F*M}var V=p.x+j-G,R=p.y+z-k,N=V+p.width+2*G-j-H-D,A=R+p.height+2*k-z-P-I;n.left=Math.max(n.left,V),n.top=Math.max(n.top,R),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A)}}),n}function i1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function l1(e,t){var n=t||[],r=ee(n,2),o=r[0],s=r[1];return[i1(e.width,o),i1(e.height,s)]}function s1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pl(e,t){var n=t[0],r=t[1],o,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:s}}function zo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function ez(e,t,n,r,o,s,u){var d=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),v=ee(d,2),m=v[0],g=v[1],p=c.useRef(0),b=c.useMemo(function(){return t?Dh(t):[]},[t]),x=c.useRef({}),C=function(){x.current={}};e||C();var E=tn(function(){if(t&&n&&e){let Gn=function(Fr,_r){var Ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Me,mo=U.x+Fr,Ko=U.y+_r,Fa=mo+ce,ct=Ko+ie,$t=Math.max(mo,Ba.left),pn=Math.max(Ko,Ba.top),bn=Math.min(Fa,Ba.right),Mn=Math.min(ct,Ba.bottom);return Math.max(0,(bn-$t)*(Mn-pn))},Ta=function(){Ft=U.y+Qe,nn=Ft+ie,wt=U.x+tt,$n=wt+ce};var Rn=Gn,Hn=Ta,$,O,T,M,D=t,I=D.ownerDocument,z=Lc(D),P=z.getComputedStyle(D),j=P.width,H=P.height,G=P.position,k=D.style.left,F=D.style.top,V=D.style.right,R=D.style.bottom,N=D.style.overflow,A=J(J({},o[r]),s),q=I.createElement("div");($=D.parentElement)===null||$===void 0||$.appendChild(q),q.style.left="".concat(D.offsetLeft,"px"),q.style.top="".concat(D.offsetTop,"px"),q.style.position=G,q.style.height="".concat(D.offsetHeight,"px"),q.style.width="".concat(D.offsetWidth,"px"),D.style.left="0",D.style.top="0",D.style.right="auto",D.style.bottom="auto",D.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else{var L,W,Y=n.getBoundingClientRect();Y.x=(L=Y.x)!==null&&L!==void 0?L:Y.left,Y.y=(W=Y.y)!==null&&W!==void 0?W:Y.top,_={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var U=D.getBoundingClientRect();U.x=(O=U.x)!==null&&O!==void 0?O:U.left,U.y=(T=U.y)!==null&&T!==void 0?T:U.top;var X=I.documentElement,Z=X.clientWidth,te=X.clientHeight,ne=X.scrollWidth,re=X.scrollHeight,le=X.scrollTop,oe=X.scrollLeft,ie=U.height,ce=U.width,de=_.height,ue=_.width,fe={left:0,top:0,right:Z,bottom:te},xe={left:-oe,top:-le,right:ne-oe,bottom:re-le},pe=A.htmlRegion,Ne="visible",De="visibleFirst";pe!=="scroll"&&pe!==De&&(pe=Ne);var Re=pe===De,Le=o1(xe,b),Ee=o1(fe,b),Me=pe===Ne?Ee:Le,Fe=Re?Ee:Me;D.style.left="auto",D.style.top="auto",D.style.right="0",D.style.bottom="0";var Te=D.getBoundingClientRect();D.style.left=k,D.style.top=F,D.style.right=V,D.style.bottom=R,D.style.overflow=N,(M=D.parentElement)===null||M===void 0||M.removeChild(q);var Ye=wc(Math.round(ce/parseFloat(j)*1e3)/1e3),Xe=wc(Math.round(ie/parseFloat(H)*1e3)/1e3);if(Ye===0||Xe===0||cc(n)&&!zc(n))return;var He=A.offset,Ze=A.targetOffset,et=l1(U,He),Ge=ee(et,2),qe=Ge[0],ye=Ge[1],Oe=l1(_,Ze),$e=ee(Oe,2),Se=$e[0],Be=$e[1];_.x-=Se,_.y-=Be;var mt=A.points||[],Ot=ee(mt,2),Dt=Ot[0],Kt=Ot[1],zt=s1(Kt),Tt=s1(Dt),Rt=pl(_,zt),gt=pl(U,Tt),at=J({},A),tt=Rt.x-gt.x+qe,Qe=Rt.y-gt.y+ye,Ct=Gn(tt,Qe),yt=Gn(tt,Qe,Ee),We=pl(_,["t","l"]),Ke=pl(U,["t","l"]),it=pl(_,["b","r"]),ft=pl(U,["b","r"]),st=A.overflow||{},dt=st.adjustX,Vt=st.adjustY,jt=st.shiftX,Lt=st.shiftY,Ht=function(_r){return typeof _r=="boolean"?_r:_r>=0},Ft,nn,wt,$n;Ta();var ln=Ht(Vt),rn=Tt[0]===zt[0];if(ln&&Tt[0]==="t"&&(nn>Fe.bottom||x.current.bt)){var Ue=Qe;rn?Ue-=ie-de:Ue=We.y-ft.y-ye;var lt=Gn(tt,Ue),nt=Gn(tt,Ue,Ee);lt>Ct||lt===Ct&&(!Re||nt>=yt)?(x.current.bt=!0,Qe=Ue,ye=-ye,at.points=[zo(Tt,0),zo(zt,0)]):x.current.bt=!1}if(ln&&Tt[0]==="b"&&(Ft<Fe.top||x.current.tb)){var Ve=Qe;rn?Ve+=ie-de:Ve=it.y-Ke.y-ye;var ht=Gn(tt,Ve),It=Gn(tt,Ve,Ee);ht>Ct||ht===Ct&&(!Re||It>=yt)?(x.current.tb=!0,Qe=Ve,ye=-ye,at.points=[zo(Tt,0),zo(zt,0)]):x.current.tb=!1}var Xt=Ht(dt),Jt=Tt[1]===zt[1];if(Xt&&Tt[1]==="l"&&($n>Fe.right||x.current.rl)){var On=tt;Jt?On-=ce-ue:On=We.x-ft.x-qe;var cn=Gn(On,Qe),dn=Gn(On,Qe,Ee);cn>Ct||cn===Ct&&(!Re||dn>=yt)?(x.current.rl=!0,tt=On,qe=-qe,at.points=[zo(Tt,1),zo(zt,1)]):x.current.rl=!1}if(Xt&&Tt[1]==="r"&&(wt<Fe.left||x.current.lr)){var Cn=tt;Jt?Cn+=ce-ue:Cn=it.x-Ke.x-qe;var ar=Gn(Cn,Qe),xr=Gn(Cn,Qe,Ee);ar>Ct||ar===Ct&&(!Re||xr>=yt)?(x.current.lr=!0,tt=Cn,qe=-qe,at.points=[zo(Tt,1),zo(zt,1)]):x.current.lr=!1}Ta();var zn=jt===!0?0:jt;typeof zn=="number"&&(wt<Ee.left&&(tt-=wt-Ee.left-qe,_.x+ue<Ee.left+zn&&(tt+=_.x-Ee.left+ue-zn)),$n>Ee.right&&(tt-=$n-Ee.right-qe,_.x>Ee.right-zn&&(tt+=_.x-Ee.right+zn)));var un=Lt===!0?0:Lt;typeof un=="number"&&(Ft<Ee.top&&(Qe-=Ft-Ee.top-ye,_.y+de<Ee.top+un&&(Qe+=_.y-Ee.top+de-un)),nn>Ee.bottom&&(Qe-=nn-Ee.bottom-ye,_.y>Ee.bottom-un&&(Qe+=_.y-Ee.bottom+un)));var hr=U.x+tt,wr=hr+ce,Fn=U.y+Qe,Tr=Fn+ie,Gt=_.x,ut=Gt+ue,Je=_.y,Yt=Je+de,ot=Math.max(hr,Gt),rt=Math.min(wr,ut),At=(ot+rt)/2,xn=At-hr,jn=Math.max(Fn,Je),Ln=Math.min(Tr,Yt),Jn=(jn+Ln)/2,er=Jn-Fn;u==null||u(t,at);var _t=Te.right-U.x-(tt+U.width),pt=Te.bottom-U.y-(Qe+U.height);Ye===1&&(tt=Math.round(tt),_t=Math.round(_t)),Xe===1&&(Qe=Math.round(Qe),pt=Math.round(pt));var Bt={ready:!0,offsetX:tt/Ye,offsetY:Qe/Xe,offsetR:_t/Ye,offsetB:pt/Xe,arrowX:xn/Ye,arrowY:er/Xe,scaleX:Ye,scaleY:Xe,align:at};g(Bt)}}),y=function(){p.current+=1;var O=p.current;Promise.resolve().then(function(){p.current===O&&E()})},w=function(){g(function(O){return J(J({},O),{},{ready:!1})})};return qt(w,[r]),qt(function(){e||w()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,y]}function tz(e,t,n,r,o){qt(function(){if(e&&t&&n){let b=function(){r(),o()};var p=b,s=t,u=n,d=Dh(s),v=Dh(u),m=Lc(u),g=new Set([m].concat(je(d),je(v)));return g.forEach(function(x){x.addEventListener("scroll",b,{passive:!0})}),m.addEventListener("resize",b,{passive:!0}),r(),function(){g.forEach(function(x){x.removeEventListener("scroll",b),m.removeEventListener("resize",b)})}}},[e,t,n])}function nz(e,t,n,r,o,s,u,d){var v=c.useRef(e);v.current=e;var m=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||s)){var p=function(){m.current=!1},b=function(y){var w;v.current&&!u(((w=y.composedPath)===null||w===void 0||(w=w.call(y))===null||w===void 0?void 0:w[0])||y.target)&&!m.current&&d(!1)},x=Lc(r);x.addEventListener("pointerdown",p,!0),x.addEventListener("mousedown",b,!0),x.addEventListener("contextmenu",b,!0);var C=Kf(n);return C&&(C.addEventListener("mousedown",b,!0),C.addEventListener("contextmenu",b,!0)),function(){x.removeEventListener("pointerdown",p,!0),x.removeEventListener("mousedown",b,!0),x.removeEventListener("contextmenu",b,!0),C&&(C.removeEventListener("mousedown",b,!0),C.removeEventListener("contextmenu",b,!0))}}},[t,n,r,o,s]);function g(){m.current=!0}return g}var rz=["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 az(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SE,t=c.forwardRef(function(n,r){var o=n.prefixCls,s=o===void 0?"rc-trigger-popup":o,u=n.children,d=n.action,v=d===void 0?"hover":d,m=n.showAction,g=n.hideAction,p=n.popupVisible,b=n.defaultPopupVisible,x=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,E=n.mouseEnterDelay,y=n.mouseLeaveDelay,w=y===void 0?.1:y,$=n.focusDelay,O=n.blurDelay,T=n.mask,M=n.maskClosable,D=M===void 0?!0:M,I=n.getPopupContainer,z=n.forceRender,P=n.autoDestroy,j=n.destroyPopupOnHide,H=n.popup,G=n.popupClassName,k=n.popupStyle,F=n.popupPlacement,V=n.builtinPlacements,R=V===void 0?{}:V,N=n.popupAlign,A=n.zIndex,q=n.stretch,_=n.getPopupClassNameFromAlign,L=n.fresh,W=n.alignPoint,Y=n.onPopupClick,U=n.onPopupAlign,X=n.arrow,Z=n.popupMotion,te=n.maskMotion,ne=n.popupTransitionName,re=n.popupAnimation,le=n.maskTransitionName,oe=n.maskAnimation,ie=n.className,ce=n.getTriggerDOMNode,de=Et(n,rz),ue=P||j||!1,fe=c.useState(!1),xe=ee(fe,2),pe=xe[0],Ne=xe[1];qt(function(){Ne(Op())},[]);var De=c.useRef({}),Re=c.useContext(n1),Le=c.useMemo(function(){return{registerSubPopup:function($t,pn){De.current[$t]=pn,Re==null||Re.registerSubPopup($t,pn)}}},[Re]),Ee=CE(),Me=c.useState(null),Fe=ee(Me,2),Te=Fe[0],Ye=Fe[1],Xe=c.useRef(null),He=tn(function(ct){Xe.current=ct,cc(ct)&&Te!==ct&&Ye(ct),Re==null||Re.registerSubPopup(Ee,ct)}),Ze=c.useState(null),et=ee(Ze,2),Ge=et[0],qe=et[1],ye=c.useRef(null),Oe=tn(function(ct){cc(ct)&&Ge!==ct&&(qe(ct),ye.current=ct)}),$e=c.Children.only(u),Se=($e==null?void 0:$e.props)||{},Be={},mt=tn(function(ct){var $t,pn,bn=Ge;return(bn==null?void 0:bn.contains(ct))||(($t=Kf(bn))===null||$t===void 0?void 0:$t.host)===ct||ct===bn||(Te==null?void 0:Te.contains(ct))||((pn=Kf(Te))===null||pn===void 0?void 0:pn.host)===ct||ct===Te||Object.values(De.current).some(function(Mn){return(Mn==null?void 0:Mn.contains(ct))||ct===Mn})}),Ot=a1(s,Z,re,ne),Dt=a1(s,te,oe,le),Kt=c.useState(b||!1),zt=ee(Kt,2),Tt=zt[0],Rt=zt[1],gt=p??Tt,at=tn(function(ct){p===void 0&&Rt(ct)});qt(function(){Rt(p||!1)},[p]);var tt=c.useRef(gt);tt.current=gt;var Qe=c.useRef([]);Qe.current=[];var Ct=tn(function(ct){var $t;at(ct),(($t=Qe.current[Qe.current.length-1])!==null&&$t!==void 0?$t:gt)!==ct&&(Qe.current.push(ct),x==null||x(ct))}),yt=c.useRef(),We=function(){clearTimeout(yt.current)},Ke=function($t){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),pn===0?Ct($t):yt.current=setTimeout(function(){Ct($t)},pn*1e3)};c.useEffect(function(){return We},[]);var it=c.useState(!1),ft=ee(it,2),st=ft[0],dt=ft[1];qt(function(ct){(!ct||gt)&&dt(!0)},[gt]);var Vt=c.useState(null),jt=ee(Vt,2),Lt=jt[0],Ht=jt[1],Ft=c.useState(null),nn=ee(Ft,2),wt=nn[0],$n=nn[1],ln=function($t){$n([$t.clientX,$t.clientY])},rn=ez(gt,Te,W&&wt!==null?wt:Ge,F,R,N,U),Ue=ee(rn,11),lt=Ue[0],nt=Ue[1],Ve=Ue[2],ht=Ue[3],It=Ue[4],Xt=Ue[5],Jt=Ue[6],On=Ue[7],cn=Ue[8],dn=Ue[9],Cn=Ue[10],ar=Q3(pe,v,m,g),xr=ee(ar,2),zn=xr[0],un=xr[1],hr=zn.has("click"),wr=un.has("click")||un.has("contextMenu"),Fn=tn(function(){st||Cn()}),Tr=function(){tt.current&&W&&wr&&Ke(!1)};tz(gt,Ge,Te,Fn,Tr),qt(function(){Fn()},[wt,F]),qt(function(){gt&&!(R!=null&&R[F])&&Fn()},[JSON.stringify(N)]);var Gt=c.useMemo(function(){var ct=J3(R,s,dn,W);return me(ct,_==null?void 0:_(dn))},[dn,_,R,s,W]);c.useImperativeHandle(r,function(){return{nativeElement:ye.current,popupElement:Xe.current,forceAlign:Fn}});var ut=c.useState(0),Je=ee(ut,2),Yt=Je[0],ot=Je[1],rt=c.useState(0),At=ee(rt,2),xn=At[0],jn=At[1],Ln=function(){if(q&&Ge){var $t=Ge.getBoundingClientRect();ot($t.width),jn($t.height)}},Jn=function(){Ln(),Fn()},er=function($t){dt(!1),Cn(),C==null||C($t)},_t=function(){return new Promise(function($t){Ln(),Ht(function(){return $t})})};qt(function(){Lt&&(Cn(),Lt(),Ht(null))},[Lt]);function pt(ct,$t,pn,bn){Be[ct]=function(Mn){var Va;bn==null||bn(Mn),Ke($t,pn);for(var ji=arguments.length,Xo=new Array(ji>1?ji-1:0),ka=1;ka<ji;ka++)Xo[ka-1]=arguments[ka];(Va=Se[ct])===null||Va===void 0||Va.call.apply(Va,[Se,Mn].concat(Xo))}}(hr||wr)&&(Be.onClick=function(ct){var $t;tt.current&&wr?Ke(!1):!tt.current&&hr&&(ln(ct),Ke(!0));for(var pn=arguments.length,bn=new Array(pn>1?pn-1:0),Mn=1;Mn<pn;Mn++)bn[Mn-1]=arguments[Mn];($t=Se.onClick)===null||$t===void 0||$t.call.apply($t,[Se,ct].concat(bn))});var Bt=nz(gt,wr,Ge,Te,T,D,mt,Ke),Rn=zn.has("hover"),Hn=un.has("hover"),Gn,Ta;Rn&&(pt("onMouseEnter",!0,E,function(ct){ln(ct)}),pt("onPointerEnter",!0,E,function(ct){ln(ct)}),Gn=function($t){(gt||st)&&Te!==null&&Te!==void 0&&Te.contains($t.target)&&Ke(!0,E)},W&&(Be.onMouseMove=function(ct){var $t;($t=Se.onMouseMove)===null||$t===void 0||$t.call(Se,ct)})),Hn&&(pt("onMouseLeave",!1,w),pt("onPointerLeave",!1,w),Ta=function(){Ke(!1,w)}),zn.has("focus")&&pt("onFocus",!0,$),un.has("focus")&&pt("onBlur",!1,O),zn.has("contextMenu")&&(Be.onContextMenu=function(ct){var $t;tt.current&&un.has("contextMenu")?Ke(!1):(ln(ct),Ke(!0)),ct.preventDefault();for(var pn=arguments.length,bn=new Array(pn>1?pn-1:0),Mn=1;Mn<pn;Mn++)bn[Mn-1]=arguments[Mn];($t=Se.onContextMenu)===null||$t===void 0||$t.call.apply($t,[Se,ct].concat(bn))}),ie&&(Be.className=me(Se.className,ie));var Fr=J(J({},Se),Be),_r={},Ba=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ba.forEach(function(ct){de[ct]&&(_r[ct]=function(){for(var $t,pn=arguments.length,bn=new Array(pn),Mn=0;Mn<pn;Mn++)bn[Mn]=arguments[Mn];($t=Fr[ct])===null||$t===void 0||$t.call.apply($t,[Fr].concat(bn)),de[ct].apply(de,bn)})});var mo=c.cloneElement($e,J(J({},Fr),_r)),Ko={x:Xt,y:Jt},Fa=X?J({},X!==!0?X:{}):null;return c.createElement(c.Fragment,null,c.createElement(Lr,{disabled:!gt,ref:Oe,onResize:Jn},c.createElement(X3,{getTriggerDOMNode:ce},mo)),c.createElement(n1.Provider,{value:Le},c.createElement(K3,{portal:e,ref:He,prefixCls:s,popup:H,className:me(G,Gt),style:k,target:Ge,onMouseEnter:Gn,onMouseLeave:Ta,onPointerEnter:Gn,zIndex:A,open:gt,keepDom:st,fresh:L,onClick:Y,onPointerDownCapture:Bt,mask:T,motion:Ot,maskMotion:Dt,onVisibleChanged:er,onPrepare:_t,forceRender:z,autoDestroy:ue,getPopupContainer:I,align:dn,arrow:Fa,arrowPos:Ko,ready:lt,offsetX:nt,offsetY:Ve,offsetR:ht,offsetB:It,onAlign:Fn,stretch:q,targetWidth:Yt/On,targetHeight:xn/cn})))});return t}const Bc=az(SE);var oz=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],iz=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},lz=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,s=t.children,u=t.popupElement,d=t.animation,v=t.transitionName,m=t.dropdownStyle,g=t.dropdownClassName,p=t.direction,b=p===void 0?"ltr":p,x=t.placement,C=t.builtinPlacements,E=t.dropdownMatchSelectWidth,y=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,O=t.empty,T=t.getTriggerDOMNode,M=t.onPopupVisibleChange,D=t.onPopupMouseEnter,I=Et(t,oz),z="".concat(r,"-dropdown"),P=u;y&&(P=y(u));var j=c.useMemo(function(){return C||iz(E)},[C,E]),H=d?"".concat(z,"-").concat(d):v,G=typeof E=="number",k=c.useMemo(function(){return G?null:E===!1?"minWidth":"width"},[E,G]),F=m;G&&(F=J(J({},F),{},{width:E}));var V=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var N;return(N=V.current)===null||N===void 0?void 0:N.popupElement}}}),c.createElement(Bc,Ae({},I,{showAction:M?["click"]:[],hideAction:M?["click"]:[],popupPlacement:x||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:z,popupTransitionName:H,popup:c.createElement("div",{onMouseEnter:D},P),ref:V,stretch:k,popupAlign:w,popupVisible:o,getPopupContainer:$,popupClassName:me(g,Q({},"".concat(z,"-empty"),O)),popupStyle:F,getTriggerDOMNode:T,onPopupVisibleChange:M}),s)},sz=c.forwardRef(lz);function c1(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Ih(e){return typeof e<"u"&&!Number.isNaN(e)}function BE(e,t){var n=e||{},r=n.label,o=n.value,s=n.options,u=n.groupLabel,d=r||(t?"children":"label");return{label:d,value:o||"value",options:s||"options",groupLabel:u||d}}function cz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],s=BE(n,!1),u=s.label,d=s.value,v=s.options,m=s.groupLabel;function g(p,b){Array.isArray(p)&&p.forEach(function(x){if(b||!(v in x)){var C=x[d];o.push({key:c1(x,o.length),groupOption:b,data:x,label:x[u],value:C})}else{var E=x[m];E===void 0&&r&&(E=x.label),o.push({key:c1(x,o.length),group:!0,data:x,label:E}),g(x[v],!0)}})}return g(e,!1),o}function Ph(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Sr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var uz=function(t,n,r){if(!n||!n.length)return null;var o=!1,s=function d(v,m){var g=yw(m),p=g[0],b=g.slice(1);if(!p)return[v];var x=v.split(p);return o=o||x.length>1,x.reduce(function(C,E){return[].concat(je(C),je(d(E,b)))},[]).filter(Boolean)},u=s(t,n);return o?typeof r<"u"?u.slice(0,r):u:null},Rp=c.createContext(null);function fz(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var s=o.label,u=o.value;return["number","string"].includes(vt(s))?s:u}).join(", ")),n.length>r?", ...":null)}var dz=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vz=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ah=function(t){return t==="tags"||t==="multiple"},mz=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,s=e.className,u=e.showSearch,d=e.tagRender,v=e.direction,m=e.omitDomProps,g=e.displayValues,p=e.onDisplayValuesChange,b=e.emptyOptions,x=e.notFoundContent,C=x===void 0?"Not Found":x,E=e.onClear,y=e.mode,w=e.disabled,$=e.loading,O=e.getInputElement,T=e.getRawInputElement,M=e.open,D=e.defaultOpen,I=e.onDropdownVisibleChange,z=e.activeValue,P=e.onActiveValueChange,j=e.activeDescendantId,H=e.searchValue,G=e.autoClearSearchValue,k=e.onSearch,F=e.onSearchSplit,V=e.tokenSeparators,R=e.allowClear,N=e.prefix,A=e.suffixIcon,q=e.clearIcon,_=e.OptionList,L=e.animation,W=e.transitionName,Y=e.dropdownStyle,U=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Z=e.dropdownRender,te=e.dropdownAlign,ne=e.placement,re=e.builtinPlacements,le=e.getPopupContainer,oe=e.showAction,ie=oe===void 0?[]:oe,ce=e.onFocus,de=e.onBlur,ue=e.onKeyUp,fe=e.onKeyDown,xe=e.onMouseDown,pe=Et(e,dz),Ne=Ah(y),De=(u!==void 0?u:Ne)||y==="combobox",Re=J({},pe);vz.forEach(function(ut){delete Re[ut]}),m==null||m.forEach(function(ut){delete Re[ut]});var Le=c.useState(!1),Ee=ee(Le,2),Me=Ee[0],Fe=Ee[1];c.useEffect(function(){Fe(Op())},[]);var Te=c.useRef(null),Ye=c.useRef(null),Xe=c.useRef(null),He=c.useRef(null),Ze=c.useRef(null),et=c.useRef(!1),Ge=C3(),qe=ee(Ge,3),ye=qe[0],Oe=qe[1],$e=qe[2];c.useImperativeHandle(t,function(){var ut,Je;return{focus:(ut=He.current)===null||ut===void 0?void 0:ut.focus,blur:(Je=He.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(ot){var rt;return(rt=Ze.current)===null||rt===void 0?void 0:rt.scrollTo(ot)},nativeElement:Te.current||Ye.current}});var Se=c.useMemo(function(){var ut;if(y!=="combobox")return H;var Je=(ut=g[0])===null||ut===void 0?void 0:ut.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[H,y,g]),Be=y==="combobox"&&typeof O=="function"&&O()||null,mt=typeof T=="function"&&T(),Ot=Mi(Ye,mt==null||(n=mt.props)===null||n===void 0?void 0:n.ref),Dt=c.useState(!1),Kt=ee(Dt,2),zt=Kt[0],Tt=Kt[1];qt(function(){Tt(!0)},[]);var Rt=An(!1,{defaultValue:D,value:M}),gt=ee(Rt,2),at=gt[0],tt=gt[1],Qe=zt?at:!1,Ct=!C&&b;(w||Ct&&Qe&&y==="combobox")&&(Qe=!1);var yt=Ct?!1:Qe,We=c.useCallback(function(ut){var Je=ut!==void 0?ut:!Qe;w||(tt(Je),Qe!==Je&&(I==null||I(Je)))},[w,Qe,tt,I]),Ke=c.useMemo(function(){return(V||[]).some(function(ut){return[`
`,`\r
`].includes(ut)})},[V]),it=c.useContext(Rp)||{},ft=it.maxCount,st=it.rawValues,dt=function(Je,Yt,ot){if(!(Ne&&Ih(ft)&&(st==null?void 0:st.size)>=ft)){var rt=!0,At=Je;P==null||P(null);var xn=uz(Je,V,Ih(ft)?ft-st.size:void 0),jn=ot?null:xn;return y!=="combobox"&&jn&&(At="",F==null||F(jn),We(!1),rt=!1),k&&Se!==At&&k(At,{source:Yt?"typing":"effect"}),rt}},Vt=function(Je){!Je||!Je.trim()||k(Je,{source:"submit"})};c.useEffect(function(){!Qe&&!Ne&&y!=="combobox"&&dt("",!1,!1)},[Qe]),c.useEffect(function(){at&&w&&tt(!1),w&&!et.current&&Oe(!1)},[w]);var jt=IE(),Lt=ee(jt,2),Ht=Lt[0],Ft=Lt[1],nn=c.useRef(!1),wt=function(Je){var Yt=Ht(),ot=Je.key,rt=ot==="Enter";if(rt&&(y!=="combobox"&&Je.preventDefault(),Qe||We(!0)),Ft(!!Se),ot==="Backspace"&&!Yt&&Ne&&!Se&&g.length){for(var At=je(g),xn=null,jn=At.length-1;jn>=0;jn-=1){var Ln=At[jn];if(!Ln.disabled){At.splice(jn,1),xn=Ln;break}}xn&&p(At,{type:"remove",values:[xn]})}for(var Jn=arguments.length,er=new Array(Jn>1?Jn-1:0),_t=1;_t<Jn;_t++)er[_t-1]=arguments[_t];if(Qe&&(!rt||!nn.current)){var pt;rt&&(nn.current=!0),(pt=Ze.current)===null||pt===void 0||pt.onKeyDown.apply(pt,[Je].concat(er))}fe==null||fe.apply(void 0,[Je].concat(er))},$n=function(Je){for(var Yt=arguments.length,ot=new Array(Yt>1?Yt-1:0),rt=1;rt<Yt;rt++)ot[rt-1]=arguments[rt];if(Qe){var At;(At=Ze.current)===null||At===void 0||At.onKeyUp.apply(At,[Je].concat(ot))}Je.key==="Enter"&&(nn.current=!1),ue==null||ue.apply(void 0,[Je].concat(ot))},ln=function(Je){var Yt=g.filter(function(ot){return ot!==Je});p(Yt,{type:"remove",values:[Je]})},rn=function(){nn.current=!1},Ue=c.useRef(!1),lt=function(){Oe(!0),w||(ce&&!Ue.current&&ce.apply(void 0,arguments),ie.includes("focus")&&We(!0)),Ue.current=!0},nt=function(){et.current=!0,Oe(!1,function(){Ue.current=!1,et.current=!1,We(!1)}),!w&&(Se&&(y==="tags"?k(Se,{source:"submit"}):y==="multiple"&&k("",{source:"blur"})),de&&de.apply(void 0,arguments))},Ve=[];c.useEffect(function(){return function(){Ve.forEach(function(ut){return clearTimeout(ut)}),Ve.splice(0,Ve.length)}},[]);var ht=function(Je){var Yt,ot=Je.target,rt=(Yt=Xe.current)===null||Yt===void 0?void 0:Yt.getPopupElement();if(rt&&rt.contains(ot)){var At=setTimeout(function(){var Jn=Ve.indexOf(At);if(Jn!==-1&&Ve.splice(Jn,1),$e(),!Me&&!rt.contains(document.activeElement)){var er;(er=He.current)===null||er===void 0||er.focus()}});Ve.push(At)}for(var xn=arguments.length,jn=new Array(xn>1?xn-1:0),Ln=1;Ln<xn;Ln++)jn[Ln-1]=arguments[Ln];xe==null||xe.apply(void 0,[Je].concat(jn))},It=c.useState({}),Xt=ee(It,2),Jt=Xt[1];function On(){Jt({})}var cn;mt&&(cn=function(Je){We(Je)}),x3(function(){var ut;return[Te.current,(ut=Xe.current)===null||ut===void 0?void 0:ut.getPopupElement()]},yt,We,!!mt);var dn=c.useMemo(function(){return J(J({},e),{},{notFoundContent:C,open:Qe,triggerOpen:yt,id:r,showSearch:De,multiple:Ne,toggleOpen:We})},[e,C,yt,Qe,r,De,Ne,We]),Cn=!!A||$,ar;Cn&&(ar=c.createElement(Od,{className:me("".concat(o,"-arrow"),Q({},"".concat(o,"-arrow-loading"),$)),customizeIcon:A,customizeIconProps:{loading:$,searchValue:Se,open:Qe,focused:ye,showSearch:De}}));var xr=function(){var Je;E==null||E(),(Je=He.current)===null||Je===void 0||Je.focus(),p([],{type:"clear",values:g}),dt("",!1,!1)},zn=y3(o,xr,g,R,q,w,Se,y),un=zn.allowClear,hr=zn.clearIcon,wr=c.createElement(_,{ref:Ze}),Fn=me(o,s,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(o,"-focused"),ye),"".concat(o,"-multiple"),Ne),"".concat(o,"-single"),!Ne),"".concat(o,"-allow-clear"),R),"".concat(o,"-show-arrow"),Cn),"".concat(o,"-disabled"),w),"".concat(o,"-loading"),$),"".concat(o,"-open"),Qe),"".concat(o,"-customize-input"),Be),"".concat(o,"-show-search"),De)),Tr=c.createElement(sz,{ref:Xe,disabled:w,prefixCls:o,visible:yt,popupElement:wr,animation:L,transitionName:W,dropdownStyle:Y,dropdownClassName:U,direction:v,dropdownMatchSelectWidth:X,dropdownRender:Z,dropdownAlign:te,placement:ne,builtinPlacements:re,getPopupContainer:le,empty:b,getTriggerDOMNode:function(Je){return Ye.current||Je},onPopupVisibleChange:cn,onPopupMouseEnter:On},mt?c.cloneElement(mt,{ref:Ot}):c.createElement(q3,Ae({},e,{domRef:Ye,prefixCls:o,inputElement:Be,ref:He,id:r,prefix:N,showSearch:De,autoClearSearchValue:G,mode:y,activeDescendantId:j,tagRender:d,values:g,open:Qe,onToggleOpen:We,activeValue:z,searchValue:Se,onSearch:dt,onSearchSubmit:Vt,onRemove:ln,tokenWithEnter:Ke,onInputBlur:rn}))),Gt;return mt?Gt=Tr:Gt=c.createElement("div",Ae({className:Fn},Re,{ref:Te,onMouseDown:ht,onKeyDown:wt,onKeyUp:$n,onFocus:lt,onBlur:nt}),c.createElement(fz,{visible:ye&&!Qe,values:g}),Tr,ar,un&&hr),c.createElement(DE.Provider,{value:dn},Gt)}),Mp=function(){return null};Mp.isSelectOptGroup=!0;var Tp=function(){return null};Tp.isSelectOption=!0;var FE=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,s=e.children,u=e.prefixCls,d=e.onInnerResize,v=e.innerProps,m=e.rtl,g=e.extra,p={},b={display:"flex",flexDirection:"column"};return r!==void 0&&(p={height:n,position:"relative",overflow:"hidden"},b=J(J({},b),{},Q(Q(Q(Q(Q({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:p},c.createElement(Lr,{onResize:function(C){var E=C.offsetHeight;E&&d&&d()}},c.createElement("div",Ae({style:b,className:me(Q({},"".concat(u,"-holder-inner"),u)),ref:t},v),s,g)))});FE.displayName="Filler";function gz(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function hz(e,t,n,r,o,s,u,d){var v=d.getKey;return e.slice(t,n+1).map(function(m,g){var p=t+g,b=u(m,p,{style:{width:r},offsetX:o}),x=v(m);return c.createElement(gz,{key:x,setRef:function(E){return s(m,E)}},b)})}function pz(e,t,n){var r=e.length,o=t.length,s,u;if(r===0&&o===0)return null;r<o?(s=e,u=t):(s=t,u=e);var d={__EMPTY_ITEM__:!0};function v(C){return C!==void 0?n(C):d}for(var m=null,g=Math.abs(r-o)!==1,p=0;p<u.length;p+=1){var b=v(s[p]),x=v(u[p]);if(b!==x){m=p,g=g||b!==v(u[p+1]);break}}return m===null?null:{index:m,multiple:g}}function bz(e,t,n){var r=c.useState(e),o=ee(r,2),s=o[0],u=o[1],d=c.useState(null),v=ee(d,2),m=v[0],g=v[1];return c.useEffect(function(){var p=pz(s||[],e||[],t);(p==null?void 0:p.index)!==void 0&&g(e[p.index]),u(e)},[e]),[m]}var u1=(typeof navigator>"u"?"undefined":vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const VE=function(e,t,n,r){var o=c.useRef(!1),s=c.useRef(null);function u(){clearTimeout(s.current),o.current=!0,s.current=setTimeout(function(){o.current=!1},50)}var d=c.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,function(v,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=v?m<0&&d.current.left||m>0&&d.current.right:m<0&&d.current.top||m>0&&d.current.bottom;return g&&p?(clearTimeout(s.current),o.current=!1):(!p||o.current)&&u(),!o.current&&p}};function yz(e,t,n,r,o,s,u){var d=c.useRef(0),v=c.useRef(null),m=c.useRef(null),g=c.useRef(!1),p=VE(t,n,r,o);function b($,O){if(kt.cancel(v.current),!p(!1,O)){var T=$;if(!T._virtualHandled)T._virtualHandled=!0;else return;d.current+=O,m.current=O,u1||T.preventDefault(),v.current=kt(function(){var M=g.current?10:1;u(d.current*M,!1),d.current=0})}}function x($,O){u(O,!0),u1||$.preventDefault()}var C=c.useRef(null),E=c.useRef(null);function y($){if(e){kt.cancel(E.current),E.current=kt(function(){C.current=null},2);var O=$.deltaX,T=$.deltaY,M=$.shiftKey,D=O,I=T;(C.current==="sx"||!C.current&&M&&T&&!O)&&(D=T,I=0,C.current="sx");var z=Math.abs(D),P=Math.abs(I);C.current===null&&(C.current=s&&z>P?"x":"y"),C.current==="y"?b($,I):x($,D)}}function w($){e&&(g.current=$.detail===m.current)}return[y,w]}function Sz(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),s=ee(o,2),u=s[0],d=s[1],v=function(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,b=u.get(g),x=u.get(p);if(b===void 0||x===void 0)for(var C=e.length,E=d.length;E<C;E+=1){var y,w=e[E],$=t(w);u.set($,E);var O=(y=n.get($))!==null&&y!==void 0?y:r;if(d[E]=(d[E-1]||0)+O,$===g&&(b=E),$===p&&(x=E),b!==void 0&&x!==void 0)break}return{top:d[b-1]||0,bottom:d[x]}};return v}var Cz=function(){function e(){Qn(this,e),Q(this,"maps",void 0),Q(this,"id",0),Q(this,"diffKeys",new Set),this.maps=Object.create(null)}return Zn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function f1(e){var t=parseFloat(e);return isNaN(t)?0:t}function xz(e,t,n){var r=c.useState(0),o=ee(r,2),s=o[0],u=o[1],d=c.useRef(new Map),v=c.useRef(new Cz),m=c.useRef(0);function g(){m.current+=1}function p(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var C=function(){var w=!1;d.current.forEach(function($,O){if($&&$.offsetParent){var T=$.offsetHeight,M=getComputedStyle($),D=M.marginTop,I=M.marginBottom,z=f1(D),P=f1(I),j=T+z+P;v.current.get(O)!==j&&(v.current.set(O,j),w=!0)}}),w&&u(function($){return $+1})};if(x)C();else{m.current+=1;var E=m.current;Promise.resolve().then(function(){E===m.current&&C()})}}function b(x,C){var E=e(x);d.current.get(E),C?(d.current.set(E,C),p()):d.current.delete(E)}return c.useEffect(function(){return g},[]),[b,p,v.current,s]}var d1=14/15;function wz(e,t,n){var r=c.useRef(!1),o=c.useRef(0),s=c.useRef(0),u=c.useRef(null),d=c.useRef(null),v,m=function(x){if(r.current){var C=Math.ceil(x.touches[0].pageX),E=Math.ceil(x.touches[0].pageY),y=o.current-C,w=s.current-E,$=Math.abs(y)>Math.abs(w);$?o.current=C:s.current=E;var O=n($,$?y:w,!1,x);O&&x.preventDefault(),clearInterval(d.current),O&&(d.current=setInterval(function(){$?y*=d1:w*=d1;var T=Math.floor($?y:w);(!n($,T,!0)||Math.abs(T)<=.1)&&clearInterval(d.current)},16))}},g=function(){r.current=!1,v()},p=function(x){v(),x.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(x.touches[0].pageX),s.current=Math.ceil(x.touches[0].pageY),u.current=x.target,u.current.addEventListener("touchmove",m,{passive:!1}),u.current.addEventListener("touchend",g,{passive:!0}))};v=function(){u.current&&(u.current.removeEventListener("touchmove",m),u.current.removeEventListener("touchend",g))},qt(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var b;(b=t.current)===null||b===void 0||b.removeEventListener("touchstart",p),v(),clearInterval(d.current)}},[e])}function v1(e){return Math.floor(Math.pow(e,.5))}function zh(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Ez(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,s,u,d=function(){kt.cancel(s)},v=function b(){d(),s=kt(function(){n(u),b()})},m=function(x){if(!(x.target.draggable||x.button!==0)){var C=x;C._virtualHandled||(C._virtualHandled=!0,o=!0)}},g=function(){o=!1,d()},p=function(x){if(o){var C=zh(x,!1),E=r.getBoundingClientRect(),y=E.top,w=E.bottom;if(C<=y){var $=y-C;u=-v1($),v()}else if(C>=w){var O=C-w;u=v1(O),v()}else d()}};return r.addEventListener("mousedown",m),r.ownerDocument.addEventListener("mouseup",g),r.ownerDocument.addEventListener("mousemove",p),function(){r.removeEventListener("mousedown",m),r.ownerDocument.removeEventListener("mouseup",g),r.ownerDocument.removeEventListener("mousemove",p),d()}}},[e])}var $z=10;function Oz(e,t,n,r,o,s,u,d){var v=c.useRef(),m=c.useState(null),g=ee(m,2),p=g[0],b=g[1];return qt(function(){if(p&&p.times<$z){if(!e.current){b(function(q){return J({},q)});return}s();var x=p.targetAlign,C=p.originAlign,E=p.index,y=p.offset,w=e.current.clientHeight,$=!1,O=x,T=null;if(w){for(var M=x||C,D=0,I=0,z=0,P=Math.min(t.length-1,E),j=0;j<=P;j+=1){var H=o(t[j]);I=D;var G=n.get(H);z=I+(G===void 0?r:G),D=z}for(var k=M==="top"?y:w-y,F=P;F>=0;F-=1){var V=o(t[F]),R=n.get(V);if(R===void 0){$=!0;break}if(k-=R,k<=0)break}switch(M){case"top":T=I-y;break;case"bottom":T=z-w+y;break;default:{var N=e.current.scrollTop,A=N+w;I<N?O="top":z>A&&(O="bottom")}}T!==null&&u(T),T!==p.lastTop&&($=!0)}$&&b(J(J({},p),{},{times:p.times+1,targetAlign:O,lastTop:T}))}},[p,e.current]),function(x){if(x==null){d();return}if(kt.cancel(v.current),typeof x=="number")u(x);else if(x&&vt(x)==="object"){var C,E=x.align;"index"in x?C=x.index:C=t.findIndex(function($){return o($)===x.key});var y=x.offset,w=y===void 0?0:y;b({times:0,index:C,offset:w,originAlign:E})}}}var m1=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,s=e.scrollRange,u=e.onStartMove,d=e.onStopMove,v=e.onScroll,m=e.horizontal,g=e.spinSize,p=e.containerSize,b=e.style,x=e.thumbStyle,C=e.showScrollBar,E=c.useState(!1),y=ee(E,2),w=y[0],$=y[1],O=c.useState(null),T=ee(O,2),M=T[0],D=T[1],I=c.useState(null),z=ee(I,2),P=z[0],j=z[1],H=!r,G=c.useRef(),k=c.useRef(),F=c.useState(C),V=ee(F,2),R=V[0],N=V[1],A=c.useRef(),q=function(){C===!0||C===!1||(clearTimeout(A.current),N(!0),A.current=setTimeout(function(){N(!1)},3e3))},_=s-p||0,L=p-g||0,W=c.useMemo(function(){if(o===0||_===0)return 0;var oe=o/_;return oe*L},[o,_,L]),Y=function(ie){ie.stopPropagation(),ie.preventDefault()},U=c.useRef({top:W,dragging:w,pageY:M,startTop:P});U.current={top:W,dragging:w,pageY:M,startTop:P};var X=function(ie){$(!0),D(zh(ie,m)),j(U.current.top),u(),ie.stopPropagation(),ie.preventDefault()};c.useEffect(function(){var oe=function(ue){ue.preventDefault()},ie=G.current,ce=k.current;return ie.addEventListener("touchstart",oe,{passive:!1}),ce.addEventListener("touchstart",X,{passive:!1}),function(){ie.removeEventListener("touchstart",oe),ce.removeEventListener("touchstart",X)}},[]);var Z=c.useRef();Z.current=_;var te=c.useRef();te.current=L,c.useEffect(function(){if(w){var oe,ie=function(ue){var fe=U.current,xe=fe.dragging,pe=fe.pageY,Ne=fe.startTop;kt.cancel(oe);var De=G.current.getBoundingClientRect(),Re=p/(m?De.width:De.height);if(xe){var Le=(zh(ue,m)-pe)*Re,Ee=Ne;!H&&m?Ee-=Le:Ee+=Le;var Me=Z.current,Fe=te.current,Te=Fe?Ee/Fe:0,Ye=Math.ceil(Te*Me);Ye=Math.max(Ye,0),Ye=Math.min(Ye,Me),oe=kt(function(){v(Ye,m)})}},ce=function(){$(!1),d()};return window.addEventListener("mousemove",ie,{passive:!0}),window.addEventListener("touchmove",ie,{passive:!0}),window.addEventListener("mouseup",ce,{passive:!0}),window.addEventListener("touchend",ce,{passive:!0}),function(){window.removeEventListener("mousemove",ie),window.removeEventListener("touchmove",ie),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),kt.cancel(oe)}}},[w]),c.useEffect(function(){return q(),function(){clearTimeout(A.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:q}});var ne="".concat(n,"-scrollbar"),re={position:"absolute",visibility:R?null:"hidden"},le={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return m?(re.height=8,re.left=0,re.right=0,re.bottom=0,le.height="100%",le.width=g,H?le.left=W:le.right=W):(re.width=8,re.top=0,re.bottom=0,H?re.right=0:re.left=0,le.width="100%",le.height=g,le.top=W),c.createElement("div",{ref:G,className:me(ne,Q(Q(Q({},"".concat(ne,"-horizontal"),m),"".concat(ne,"-vertical"),!m),"".concat(ne,"-visible"),R)),style:J(J({},re),b),onMouseDown:Y,onMouseMove:q},c.createElement("div",{ref:k,className:me("".concat(ne,"-thumb"),Q({},"".concat(ne,"-thumb-moving"),w)),style:J(J({},le),x),onMouseDown:X}))}),Rz=20;function g1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Rz),Math.floor(n)}var Mz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Tz=[],_z={overflowY:"auto",overflowAnchor:"none"};function Nz(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,s=e.height,u=e.itemHeight,d=e.fullHeight,v=d===void 0?!0:d,m=e.style,g=e.data,p=e.children,b=e.itemKey,x=e.virtual,C=e.direction,E=e.scrollWidth,y=e.component,w=y===void 0?"div":y,$=e.onScroll,O=e.onVirtualScroll,T=e.onVisibleChange,M=e.innerProps,D=e.extraRender,I=e.styles,z=e.showScrollBar,P=z===void 0?"optional":z,j=Et(e,Mz),H=c.useCallback(function(Ue){return typeof b=="function"?b(Ue):Ue==null?void 0:Ue[b]},[b]),G=xz(H),k=ee(G,4),F=k[0],V=k[1],R=k[2],N=k[3],A=!!(x!==!1&&s&&u),q=c.useMemo(function(){return Object.values(R.maps).reduce(function(Ue,lt){return Ue+lt},0)},[R.id,R.maps]),_=A&&g&&(Math.max(u*g.length,q)>s||!!E),L=C==="rtl",W=me(r,Q({},"".concat(r,"-rtl"),L),o),Y=g||Tz,U=c.useRef(),X=c.useRef(),Z=c.useRef(),te=c.useState(0),ne=ee(te,2),re=ne[0],le=ne[1],oe=c.useState(0),ie=ee(oe,2),ce=ie[0],de=ie[1],ue=c.useState(!1),fe=ee(ue,2),xe=fe[0],pe=fe[1],Ne=function(){pe(!0)},De=function(){pe(!1)},Re={getKey:H};function Le(Ue){le(function(lt){var nt;typeof Ue=="function"?nt=Ue(lt):nt=Ue;var Ve=Tt(nt);return U.current.scrollTop=Ve,Ve})}var Ee=c.useRef({start:0,end:Y.length}),Me=c.useRef(),Fe=bz(Y,H),Te=ee(Fe,1),Ye=Te[0];Me.current=Ye;var Xe=c.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!_){var Ue;return{scrollHeight:((Ue=X.current)===null||Ue===void 0?void 0:Ue.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var lt=0,nt,Ve,ht,It=Y.length,Xt=0;Xt<It;Xt+=1){var Jt=Y[Xt],On=H(Jt),cn=R.get(On),dn=lt+(cn===void 0?u:cn);dn>=re&&nt===void 0&&(nt=Xt,Ve=lt),dn>re+s&&ht===void 0&&(ht=Xt),lt=dn}return nt===void 0&&(nt=0,Ve=0,ht=Math.ceil(s/u)),ht===void 0&&(ht=Y.length-1),ht=Math.min(ht+1,Y.length-1),{scrollHeight:lt,start:nt,end:ht,offset:Ve}},[_,A,re,Y,N,s]),He=Xe.scrollHeight,Ze=Xe.start,et=Xe.end,Ge=Xe.offset;Ee.current.start=Ze,Ee.current.end=et,c.useLayoutEffect(function(){var Ue=R.getRecord();if(Ue.size===1){var lt=Array.from(Ue)[0],nt=Y[Ze];if(nt){var Ve=H(nt);if(Ve===lt){var ht=R.get(lt),It=ht-u;Le(function(Xt){return Xt+It})}}}R.resetRecord()},[He]);var qe=c.useState({width:0,height:s}),ye=ee(qe,2),Oe=ye[0],$e=ye[1],Se=function(lt){$e({width:lt.offsetWidth,height:lt.offsetHeight})},Be=c.useRef(),mt=c.useRef(),Ot=c.useMemo(function(){return g1(Oe.width,E)},[Oe.width,E]),Dt=c.useMemo(function(){return g1(Oe.height,He)},[Oe.height,He]),Kt=He-s,zt=c.useRef(Kt);zt.current=Kt;function Tt(Ue){var lt=Ue;return Number.isNaN(zt.current)||(lt=Math.min(lt,zt.current)),lt=Math.max(lt,0),lt}var Rt=re<=0,gt=re>=Kt,at=ce<=0,tt=ce>=E,Qe=VE(Rt,gt,at,tt),Ct=function(){return{x:L?-ce:ce,y:re}},yt=c.useRef(Ct()),We=tn(function(Ue){if(O){var lt=J(J({},Ct()),Ue);(yt.current.x!==lt.x||yt.current.y!==lt.y)&&(O(lt),yt.current=lt)}});function Ke(Ue,lt){var nt=Ue;lt?(Uo.flushSync(function(){de(nt)}),We()):Le(nt)}function it(Ue){var lt=Ue.currentTarget.scrollTop;lt!==re&&Le(lt),$==null||$(Ue),We()}var ft=function(lt){var nt=lt,Ve=E?E-Oe.width:0;return nt=Math.max(nt,0),nt=Math.min(nt,Ve),nt},st=tn(function(Ue,lt){lt?(Uo.flushSync(function(){de(function(nt){var Ve=nt+(L?-Ue:Ue);return ft(Ve)})}),We()):Le(function(nt){var Ve=nt+Ue;return Ve})}),dt=yz(A,Rt,gt,at,tt,!!E,st),Vt=ee(dt,2),jt=Vt[0],Lt=Vt[1];wz(A,U,function(Ue,lt,nt,Ve){var ht=Ve;return Qe(Ue,lt,nt)?!1:!ht||!ht._virtualHandled?(ht&&(ht._virtualHandled=!0),jt({preventDefault:function(){},deltaX:Ue?lt:0,deltaY:Ue?0:lt}),!0):!1}),Ez(_,U,function(Ue){Le(function(lt){return lt+Ue})}),qt(function(){function Ue(nt){var Ve=Rt&&nt.detail<0,ht=gt&&nt.detail>0;A&&!Ve&&!ht&&nt.preventDefault()}var lt=U.current;return lt.addEventListener("wheel",jt,{passive:!1}),lt.addEventListener("DOMMouseScroll",Lt,{passive:!0}),lt.addEventListener("MozMousePixelScroll",Ue,{passive:!1}),function(){lt.removeEventListener("wheel",jt),lt.removeEventListener("DOMMouseScroll",Lt),lt.removeEventListener("MozMousePixelScroll",Ue)}},[A,Rt,gt]),qt(function(){if(E){var Ue=ft(ce);de(Ue),We({x:Ue})}},[Oe.width,E]);var Ht=function(){var lt,nt;(lt=Be.current)===null||lt===void 0||lt.delayHidden(),(nt=mt.current)===null||nt===void 0||nt.delayHidden()},Ft=Oz(U,Y,R,u,H,function(){return V(!0)},Le,Ht);c.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:Ct,scrollTo:function(lt){function nt(Ve){return Ve&&vt(Ve)==="object"&&("left"in Ve||"top"in Ve)}nt(lt)?(lt.left!==void 0&&de(ft(lt.left)),Ft(lt.top)):Ft(lt)}}}),qt(function(){if(T){var Ue=Y.slice(Ze,et+1);T(Ue,Y)}},[Ze,et,Y]);var nn=Sz(Y,H,R,u),wt=D==null?void 0:D({start:Ze,end:et,virtual:_,offsetX:ce,offsetY:Ge,rtl:L,getSize:nn}),$n=hz(Y,Ze,et,E,ce,F,p,Re),ln=null;s&&(ln=J(Q({},v?"height":"maxHeight",s),_z),A&&(ln.overflowY="hidden",E&&(ln.overflowX="hidden"),xe&&(ln.pointerEvents="none")));var rn={};return L&&(rn.dir="rtl"),c.createElement("div",Ae({ref:Z,style:J(J({},m),{},{position:"relative"}),className:W},rn,j),c.createElement(Lr,{onResize:Se},c.createElement(w,{className:"".concat(r,"-holder"),style:ln,ref:U,onScroll:it,onMouseEnter:Ht},c.createElement(FE,{prefixCls:r,height:He,offsetX:ce,offsetY:Ge,scrollWidth:E,onInnerResize:V,ref:X,innerProps:M,rtl:L,extra:wt},$n))),_&&He>s&&c.createElement(m1,{ref:Be,prefixCls:r,scrollOffset:re,scrollRange:He,rtl:L,onScroll:Ke,onStartMove:Ne,onStopMove:De,spinSize:Dt,containerSize:Oe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb,showScrollBar:P}),_&&E>Oe.width&&c.createElement(m1,{ref:mt,prefixCls:r,scrollOffset:ce,scrollRange:E,rtl:L,onScroll:Ke,onStartMove:Ne,onStopMove:De,spinSize:Ot,containerSize:Oe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb,showScrollBar:P}))}var kE=c.forwardRef(Nz);kE.displayName="List";function Dz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Iz=["disabled","title","children","style","className"];function h1(e){return typeof e=="string"||typeof e=="number"}var Pz=function(t,n){var r=S3(),o=r.prefixCls,s=r.id,u=r.open,d=r.multiple,v=r.mode,m=r.searchValue,g=r.toggleOpen,p=r.notFoundContent,b=r.onPopupScroll,x=c.useContext(Rp),C=x.maxCount,E=x.flattenOptions,y=x.onActiveValue,w=x.defaultActiveFirstOption,$=x.onSelect,O=x.menuItemSelectedIcon,T=x.rawValues,M=x.fieldNames,D=x.virtual,I=x.direction,z=x.listHeight,P=x.listItemHeight,j=x.optionRender,H="".concat(o,"-item"),G=Nc(function(){return E},[u,E],function(oe,ie){return ie[0]&&oe[1]!==ie[1]}),k=c.useRef(null),F=c.useMemo(function(){return d&&Ih(C)&&(T==null?void 0:T.size)>=C},[d,C,T==null?void 0:T.size]),V=function(ie){ie.preventDefault()},R=function(ie){var ce;(ce=k.current)===null||ce===void 0||ce.scrollTo(typeof ie=="number"?{index:ie}:ie)},N=c.useCallback(function(oe){return v==="combobox"?!1:T.has(oe)},[v,je(T).toString(),T.size]),A=function(ie){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=G.length,ue=0;ue<de;ue+=1){var fe=(ie+ue*ce+de)%de,xe=G[fe]||{},pe=xe.group,Ne=xe.data;if(!pe&&!(Ne!=null&&Ne.disabled)&&(N(Ne.value)||!F))return fe}return-1},q=c.useState(function(){return A(0)}),_=ee(q,2),L=_[0],W=_[1],Y=function(ie){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;W(ie);var de={source:ce?"keyboard":"mouse"},ue=G[ie];if(!ue){y(null,-1,de);return}y(ue.value,ie,de)};c.useEffect(function(){Y(w!==!1?A(0):-1)},[G.length,m]);var U=c.useCallback(function(oe){return v==="combobox"?String(oe).toLowerCase()===m.toLowerCase():T.has(oe)},[v,m,je(T).toString(),T.size]);c.useEffect(function(){var oe=setTimeout(function(){if(!d&&u&&T.size===1){var ce=Array.from(T)[0],de=G.findIndex(function(ue){var fe=ue.data;return fe.value===ce});de!==-1&&(Y(de),R(de))}});if(u){var ie;(ie=k.current)===null||ie===void 0||ie.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[u,m]);var X=function(ie){ie!==void 0&&$(ie,{selected:!T.has(ie)}),d||g(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(ie){var ce=ie.which,de=ie.ctrlKey;switch(ce){case bt.N:case bt.P:case bt.UP:case bt.DOWN:{var ue=0;if(ce===bt.UP?ue=-1:ce===bt.DOWN?ue=1:Dz()&&de&&(ce===bt.N?ue=1:ce===bt.P&&(ue=-1)),ue!==0){var fe=A(L+ue,ue);R(fe),Y(fe,!0)}break}case bt.TAB:case bt.ENTER:{var xe,pe=G[L];pe&&!(pe!=null&&(xe=pe.data)!==null&&xe!==void 0&&xe.disabled)&&!F?X(pe.value):X(void 0),u&&ie.preventDefault();break}case bt.ESC:g(!1),u&&ie.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ie){R(ie)}}}),G.length===0)return c.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(H,"-empty"),onMouseDown:V},p);var Z=Object.keys(M).map(function(oe){return M[oe]}),te=function(ie){return ie.label};function ne(oe,ie){var ce=oe.group;return{role:ce?"presentation":"option",id:"".concat(s,"_list_").concat(ie)}}var re=function(ie){var ce=G[ie];if(!ce)return null;var de=ce.data||{},ue=de.value,fe=ce.group,xe=lo(de,!0),pe=te(ce);return ce?c.createElement("div",Ae({"aria-label":typeof pe=="string"&&!fe?pe:null},xe,{key:ie},ne(ce,ie),{"aria-selected":U(ue)}),ue):null},le={role:"listbox",id:"".concat(s,"_list")};return c.createElement(c.Fragment,null,D&&c.createElement("div",Ae({},le,{style:{height:0,width:0,overflow:"hidden"}}),re(L-1),re(L),re(L+1)),c.createElement(kE,{itemKey:"key",ref:k,data:G,height:z,itemHeight:P,fullHeight:!1,onMouseDown:V,onScroll:b,virtual:D,direction:I,innerProps:D?null:le},function(oe,ie){var ce=oe.group,de=oe.groupOption,ue=oe.data,fe=oe.label,xe=oe.value,pe=ue.key;if(ce){var Ne,De=(Ne=ue.title)!==null&&Ne!==void 0?Ne:h1(fe)?fe.toString():void 0;return c.createElement("div",{className:me(H,"".concat(H,"-group"),ue.className),title:De},fe!==void 0?fe:pe)}var Re=ue.disabled,Le=ue.title;ue.children;var Ee=ue.style,Me=ue.className,Fe=Et(ue,Iz),Te=ur(Fe,Z),Ye=N(xe),Xe=Re||!Ye&&F,He="".concat(H,"-option"),Ze=me(H,He,Me,Q(Q(Q(Q({},"".concat(He,"-grouped"),de),"".concat(He,"-active"),L===ie&&!Xe),"".concat(He,"-disabled"),Xe),"".concat(He,"-selected"),Ye)),et=te(oe),Ge=!O||typeof O=="function"||Ye,qe=typeof et=="number"?et:et||xe,ye=h1(qe)?qe.toString():void 0;return Le!==void 0&&(ye=Le),c.createElement("div",Ae({},lo(Te),D?{}:ne(oe,ie),{"aria-selected":U(xe),className:Ze,title:ye,onMouseMove:function(){L===ie||Xe||Y(ie)},onClick:function(){Xe||X(xe)},style:Ee}),c.createElement("div",{className:"".concat(He,"-content")},typeof j=="function"?j(oe,{index:ie}):qe),c.isValidElement(O)||Ye,Ge&&c.createElement(Od,{className:"".concat(H,"-option-state"),customizeIcon:O,customizeIconProps:{value:xe,disabled:Xe,isSelected:Ye}},Ye?"✓":null))}))},Az=c.forwardRef(Pz);const zz=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var s=n.current,u=s.values,d=s.options,v=e.map(function(p){if(p.label===void 0){var b;return J(J({},p),{},{label:(b=u.get(p.value))===null||b===void 0?void 0:b.label})}return p}),m=new Map,g=new Map;return v.forEach(function(p){m.set(p.value,p),g.set(p.value,t.get(p.value)||d.get(p.value))}),n.current.values=m,n.current.options=g,v},[e,t]),o=c.useCallback(function(s){return t.get(s)||n.current.options.get(s)},[t]);return[r,o]};function hg(e,t){return HE(e).join("").toUpperCase().includes(t)}const jz=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var s=t.options,u=t.label,d=t.value,v=[],m=typeof r=="function",g=n.toUpperCase(),p=m?r:function(x,C){return o?hg(C[o],g):C[s]?hg(C[u!=="children"?u:"label"],g):hg(C[d],g)},b=m?function(x){return Ph(x)}:function(x){return x};return e.forEach(function(x){if(x[s]){var C=p(n,b(x));if(C)v.push(x);else{var E=x[s].filter(function(y){return p(n,b(y))});E.length&&v.push(J(J({},x),{},Q({},s,E)))}return}p(n,b(x))&&v.push(x)}),v},[e,r,o,n,t])};var p1=0,Hz=Ir();function Lz(){var e;return Hz?(e=p1,p1+=1):e="TEST_OR_SSR",e}function Bz(e){var t=c.useState(),n=ee(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(Lz()))},[]),e||r}var Fz=["children","value"],Vz=["children"];function kz(e){var t=e,n=t.key,r=t.props,o=r.children,s=r.value,u=Et(r,Fz);return J({key:n,value:s!==void 0?s:n,children:o},u)}function UE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ja(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,s=o.type.isSelectOptGroup,u=o.key,d=o.props,v=d.children,m=Et(d,Vz);return t||!s?kz(n):J(J({key:"__RC_SELECT_GRP__".concat(u===null?r:u,"__"),label:u},m),{},{options:UE(v)})}).filter(function(n){return n})}var Uz=function(t,n,r,o,s){return c.useMemo(function(){var u=t,d=!t;d&&(u=UE(n));var v=new Map,m=new Map,g=function(x,C,E){E&&typeof E=="string"&&x.set(C[E],C)},p=function b(x){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=0;E<x.length;E+=1){var y=x[E];!y[r.options]||C?(v.set(y[r.value],y),g(m,y,r.label),g(m,y,o),g(m,y,s)):b(y[r.options],!0)}};return p(u),{options:u,valueOptions:v,labelOptions:m}},[t,n,r,o,s])};function b1(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var qz=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Wz=["inputValue"];function Gz(e){return!e||vt(e)!=="object"}var Yz=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,s=o===void 0?"rc-select":o,u=e.backfill,d=e.fieldNames,v=e.inputValue,m=e.searchValue,g=e.onSearch,p=e.autoClearSearchValue,b=p===void 0?!0:p,x=e.onSelect,C=e.onDeselect,E=e.dropdownMatchSelectWidth,y=E===void 0?!0:E,w=e.filterOption,$=e.filterSort,O=e.optionFilterProp,T=e.optionLabelProp,M=e.options,D=e.optionRender,I=e.children,z=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,j=e.virtual,H=e.direction,G=e.listHeight,k=G===void 0?200:G,F=e.listItemHeight,V=F===void 0?20:F,R=e.labelRender,N=e.value,A=e.defaultValue,q=e.labelInValue,_=e.onChange,L=e.maxCount,W=Et(e,qz),Y=Bz(n),U=Ah(r),X=!!(!M&&I),Z=c.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),te=c.useMemo(function(){return BE(d,X)},[JSON.stringify(d),X]),ne=An("",{value:m!==void 0?m:v,postState:function(Ke){return Ke||""}}),re=ee(ne,2),le=re[0],oe=re[1],ie=Uz(M,I,te,O,T),ce=ie.valueOptions,de=ie.labelOptions,ue=ie.options,fe=c.useCallback(function(We){var Ke=HE(We);return Ke.map(function(it){var ft,st,dt,Vt,jt;if(Gz(it))ft=it;else{var Lt;dt=it.key,st=it.label,ft=(Lt=it.value)!==null&&Lt!==void 0?Lt:dt}var Ht=ce.get(ft);if(Ht){var Ft;st===void 0&&(st=Ht==null?void 0:Ht[T||te.label]),dt===void 0&&(dt=(Ft=Ht==null?void 0:Ht.key)!==null&&Ft!==void 0?Ft:ft),Vt=Ht==null?void 0:Ht.disabled,jt=Ht==null?void 0:Ht.title}return{label:st,value:ft,key:dt,disabled:Vt,title:jt}})},[te,T,ce]),xe=An(A,{value:N}),pe=ee(xe,2),Ne=pe[0],De=pe[1],Re=c.useMemo(function(){var We,Ke=U&&Ne===null?[]:Ne,it=fe(Ke);return r==="combobox"&&L3((We=it[0])===null||We===void 0?void 0:We.value)?[]:it},[Ne,fe,r,U]),Le=zz(Re,ce),Ee=ee(Le,2),Me=Ee[0],Fe=Ee[1],Te=c.useMemo(function(){if(!r&&Me.length===1){var We=Me[0];if(We.value===null&&(We.label===null||We.label===void 0))return[]}return Me.map(function(Ke){var it;return J(J({},Ke),{},{label:(it=typeof R=="function"?R(Ke):Ke.label)!==null&&it!==void 0?it:Ke.value})})},[r,Me,R]),Ye=c.useMemo(function(){return new Set(Me.map(function(We){return We.value}))},[Me]);c.useEffect(function(){if(r==="combobox"){var We,Ke=(We=Me[0])===null||We===void 0?void 0:We.value;oe(H3(Ke)?String(Ke):"")}},[Me]);var Xe=b1(function(We,Ke){var it=Ke??We;return Q(Q({},te.value,We),te.label,it)}),He=c.useMemo(function(){if(r!=="tags")return ue;var We=je(ue),Ke=function(ft){return ce.has(ft)};return je(Me).sort(function(it,ft){return it.value<ft.value?-1:1}).forEach(function(it){var ft=it.value;Ke(ft)||We.push(Xe(ft,it.label))}),We},[Xe,ue,ce,Me,r]),Ze=jz(He,te,le,Z,O),et=c.useMemo(function(){return r!=="tags"||!le||Ze.some(function(We){return We[O||"value"]===le})||Ze.some(function(We){return We[te.value]===le})?Ze:[Xe(le)].concat(je(Ze))},[Xe,O,r,Ze,le,te]),Ge=function We(Ke){var it=je(Ke).sort(function(ft,st){return $(ft,st,{searchValue:le})});return it.map(function(ft){return Array.isArray(ft.options)?J(J({},ft),{},{options:ft.options.length>0?We(ft.options):ft.options}):ft})},qe=c.useMemo(function(){return $?Ge(et):et},[et,$,le]),ye=c.useMemo(function(){return cz(qe,{fieldNames:te,childrenAsData:X})},[qe,te,X]),Oe=function(Ke){var it=fe(Ke);if(De(it),_&&(it.length!==Me.length||it.some(function(dt,Vt){var jt;return((jt=Me[Vt])===null||jt===void 0?void 0:jt.value)!==(dt==null?void 0:dt.value)}))){var ft=q?it:it.map(function(dt){return dt.value}),st=it.map(function(dt){return Ph(Fe(dt.value))});_(U?ft:ft[0],U?st:st[0])}},$e=c.useState(null),Se=ee($e,2),Be=Se[0],mt=Se[1],Ot=c.useState(0),Dt=ee(Ot,2),Kt=Dt[0],zt=Dt[1],Tt=z!==void 0?z:r!=="combobox",Rt=c.useCallback(function(We,Ke){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ft=it.source,st=ft===void 0?"keyboard":ft;zt(Ke),u&&r==="combobox"&&We!==null&&st==="keyboard"&&mt(String(We))},[u,r]),gt=function(Ke,it,ft){var st=function(){var ln,rn=Fe(Ke);return[q?{label:rn==null?void 0:rn[te.label],value:Ke,key:(ln=rn==null?void 0:rn.key)!==null&&ln!==void 0?ln:Ke}:Ke,Ph(rn)]};if(it&&x){var dt=st(),Vt=ee(dt,2),jt=Vt[0],Lt=Vt[1];x(jt,Lt)}else if(!it&&C&&ft!=="clear"){var Ht=st(),Ft=ee(Ht,2),nn=Ft[0],wt=Ft[1];C(nn,wt)}},at=b1(function(We,Ke){var it,ft=U?Ke.selected:!0;ft?it=U?[].concat(je(Me),[We]):[We]:it=Me.filter(function(st){return st.value!==We}),Oe(it),gt(We,ft),r==="combobox"?mt(""):(!Ah||b)&&(oe(""),mt(""))}),tt=function(Ke,it){Oe(Ke);var ft=it.type,st=it.values;(ft==="remove"||ft==="clear")&&st.forEach(function(dt){gt(dt.value,!1,ft)})},Qe=function(Ke,it){if(oe(Ke),mt(null),it.source==="submit"){var ft=(Ke||"").trim();if(ft){var st=Array.from(new Set([].concat(je(Ye),[ft])));Oe(st),gt(ft,!0),oe("")}return}it.source!=="blur"&&(r==="combobox"&&Oe(Ke),g==null||g(Ke))},Ct=function(Ke){var it=Ke;r!=="tags"&&(it=Ke.map(function(st){var dt=de.get(st);return dt==null?void 0:dt.value}).filter(function(st){return st!==void 0}));var ft=Array.from(new Set([].concat(je(Ye),je(it))));Oe(ft),ft.forEach(function(st){gt(st,!0)})},yt=c.useMemo(function(){var We=j!==!1&&y!==!1;return J(J({},ie),{},{flattenOptions:ye,onActiveValue:Rt,defaultActiveFirstOption:Tt,onSelect:at,menuItemSelectedIcon:P,rawValues:Ye,fieldNames:te,virtual:We,direction:H,listHeight:k,listItemHeight:V,childrenAsData:X,maxCount:L,optionRender:D})},[L,ie,ye,Rt,Tt,at,P,Ye,te,j,y,H,k,V,X,D]);return c.createElement(Rp.Provider,{value:yt},c.createElement(mz,Ae({},W,{id:Y,prefixCls:s,ref:t,omitDomProps:Wz,mode:r,displayValues:Te,onDisplayValuesChange:tt,direction:H,searchValue:le,onSearch:Qe,autoClearSearchValue:b,onSearchSplit:Ct,dropdownMatchSelectWidth:y,OptionList:Az,emptyOptions:!ye.length,activeValue:Be,activeDescendantId:"".concat(Y,"_list_").concat(Kt)})))}),_p=Yz;_p.Option=Tp;_p.OptGroup=Mp;function Al(e,t,n){return me({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Fl=(e,t)=>t||e,Kz=()=>{const[,e]=ga(),[t]=_i("Empty"),r=new gn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),c.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),c.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),c.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),c.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Xz=()=>{const[,e]=ga(),[t]=_i("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:u,shadowColor:d,contentColor:v}=c.useMemo(()=>({borderColor:new gn(n).onBackground(s).toHexString(),shadowColor:new gn(r).onBackground(s).toHexString(),contentColor:new gn(o).onBackground(s).toHexString()}),[n,r,o,s]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:u},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:v}))))},Qz=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:u}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:u,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Zz=gr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Sn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Qz(o)]});var Jz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qE=c.createElement(Kz,null),WE=c.createElement(Xz,null),hi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=qE,description:s,children:u,imageStyle:d,style:v,classNames:m,styles:g}=e,p=Jz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:x,className:C,style:E,classNames:y,styles:w}=vo("empty"),$=b("empty",r),[O,T,M]=Zz($),[D]=_i("Empty"),I=typeof s<"u"?s:D==null?void 0:D.description,z=typeof I=="string"?I:"empty";let P=null;return typeof o=="string"?P=c.createElement("img",{alt:z,src:o}):P=o,O(c.createElement("div",Object.assign({className:me(T,M,$,C,{[`${$}-normal`]:o===WE,[`${$}-rtl`]:x==="rtl"},t,n,y.root,m==null?void 0:m.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),E),g==null?void 0:g.root),v)},p),c.createElement("div",{className:me(`${$}-image`,y.image,m==null?void 0:m.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),g==null?void 0:g.image)},P),I&&c.createElement("div",{className:me(`${$}-description`,y.description,m==null?void 0:m.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},I),u&&c.createElement("div",{className:me(`${$}-footer`,y.footer,m==null?void 0:m.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};hi.PRESENTED_IMAGE_DEFAULT=qE;hi.PRESENTED_IMAGE_SIMPLE=WE;const e6=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(Wt),r=n("empty");switch(t){case"Table":case"List":return Ie.createElement(hi,{image:hi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ie.createElement(hi,{image:hi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Ie.createElement(hi,null)}},Vl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:s,[e]:u}=c.useContext(Wt),d=c.useContext(NE),v=u==null?void 0:u.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=d??v)!==null&&r!==void 0?r:s)!==null&&o!==void 0?o:"outlined";const g=WN.includes(m);return[m,g]},t6=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function n6(e,t){return e||t6(t)}const y1=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},r6=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,u=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,v=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Cr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${d}bottomLeft,
          ${s}${d}bottomLeft
        `]:{animationName:gp},[`
          ${o}${d}topLeft,
          ${s}${d}topLeft,
          ${o}${d}topRight,
          ${s}${d}topRight
        `]:{animationName:pp},[`${u}${d}bottomLeft`]:{animationName:hp},[`
          ${u}${d}topLeft,
          ${u}${d}topRight
        `]:{animationName:bp},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},y1(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},wi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},y1(e)),{color:e.colorTextDisabled})}),[`${v}:has(+ ${v})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${v}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Pl(e,"slide-up"),Pl(e,"slide-down"),Qf(e,"move-up"),Qf(e,"move-down")]},GE=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,s=e.max(e.calc(n).sub(r).equal(),0),u=e.max(e.calc(s).sub(o).equal(),0);return{basePadding:s,containerPadding:u,itemHeight:ge(t),itemLineHeight:ge(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},a6=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},YE=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:s,multipleItemColorDisabled:u,multipleItemBorderColorDisabled:d,colorIcon:v,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:g}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(g).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:u,borderColor:d,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},dd()),{display:"inline-flex",alignItems:"center",color:v,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},o6=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,s=e.multipleSelectItemHeight,u=a6(e),d=t?`${n}-${t}`:"",v=GE(e);return{[`${n}-multiple${d}`]:Object.assign(Object.assign({},YE(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:v.basePadding,paddingBlock:v.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ge(r)} 0`,lineHeight:ge(s),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:v.itemHeight,lineHeight:ge(v.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ge(s),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(v.basePadding).equal()},[`${o}-item + ${o}-item,
        ${n}-prefix + ${n}-selection-wrap
      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:v.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u).equal(),"\n          &-input,\n          &-mirror\n        ":{height:s,fontFamily:e.fontFamily,lineHeight:ge(s),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(v.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function pg(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[o6(e,t),o]}const i6=e=>{const{componentCls:t}=e,n=Sn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Sn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[pg(e),pg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},pg(r,"lg")]};function bg(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,s=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),u=t?`${n}-${t}`:"";return{[`${n}-single${u}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Cr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ge(s)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{display:"block",padding:0,lineHeight:ge(s),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-search,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ge(r)}`,[`${n}-selection-search-input`]:{height:s,fontSize:e.fontSize},"&:after":{lineHeight:ge(s)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ge(r)}`,"&:after":{display:"none"}}}}}}}function l6(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[bg(e),bg(Sn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ge(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},bg(Sn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const s6=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:s,controlHeightLG:u,paddingXXS:d,controlPaddingHorizontal:v,zIndexPopupBase:m,colorText:g,fontWeightStrong:p,controlItemBgActive:b,controlItemBgHover:x,colorBgContainer:C,colorFillSecondary:E,colorBgContainerDisabled:y,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:O,controlOutline:T}=e,M=d*2,D=r*2,I=Math.min(o-M,o-D),z=Math.min(s-M,s-D),P=Math.min(u-M,u-D);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:m+50,optionSelectedColor:g,optionSelectedFontWeight:p,optionSelectedBg:b,optionActiveBg:x,optionPadding:`${(o-t*n)/2}px ${v}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:C,clearBg:C,singleItemHeightLG:u,multipleItemBg:E,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:z,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:O,activeOutlineColor:T,selectAffixPadding:d}},KE=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ge(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ge(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},S1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KE(e,t))}),c6=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},KE(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),S1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),S1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XE=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ge(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},C1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},XE(e,t))}),u6=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},XE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),C1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),C1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ge(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),f6=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ge(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),QE=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ge(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},x1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},QE(e,t))}),d6=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},QE(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),x1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),x1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),v6=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},c6(e)),u6(e)),f6(e)),d6(e))}),m6=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},g6=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},h6=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,s={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Cr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},m6(e)),g6(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},wi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},dd()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},p6=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},h6(e),l6(e),i6(e),r6(e),{[`${t}-rtl`]:{direction:"rtl"}},wd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},b6=gr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Sn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[p6(r),v6(r)]},s6,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var y6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},S6=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:y6}))},ZE=c.forwardRef(S6),C6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},x6=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:C6}))},w6=c.forwardRef(x6),E6={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"},$6=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:E6}))},JE=c.forwardRef($6);function e$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:s,multiple:u,hasFeedback:d,prefixCls:v,showSuffixIcon:m,feedbackIcon:g,showArrow:p,componentName:b}=e;const x=n??c.createElement(md,null),C=$=>t===null&&!d&&!p?null:c.createElement(c.Fragment,null,m!==!1&&$,d&&g);let E=null;if(t!==void 0)E=C(t);else if(s)E=C(c.createElement(Pc,{spin:!0}));else{const $=`${v}-suffix`;E=O=>{let{open:T,showSearch:M}=O;return C(T&&M?c.createElement(JE,{className:$}):c.createElement(w6,{className:$}))}}let y=null;r!==void 0?y=r:u?y=c.createElement(ZE,null):y=null;let w=null;return o!==void 0?w=o:w=c.createElement(up,null),{clearIcon:x,suffixIcon:E,itemIcon:y,removeIcon:w}}function O6(e,t){return t!==void 0?t:e!==null}var R6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const t$="SECRET_COMBOBOX_MODE_DO_NOT_USE",M6=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:s,rootClassName:u,getPopupContainer:d,popupClassName:v,dropdownClassName:m,listHeight:g=256,placement:p,listItemHeight:b,size:x,disabled:C,notFoundContent:E,status:y,builtinPlacements:w,dropdownMatchSelectWidth:$,popupMatchSelectWidth:O,direction:T,style:M,allowClear:D,variant:I,dropdownStyle:z,transitionName:P,tagRender:j,maxCount:H,prefix:G}=e,k=R6(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:F,getPrefixCls:V,renderEmpty:R,direction:N,virtual:A,popupMatchSelectWidth:q,popupOverflow:_}=c.useContext(Wt),L=vo("select"),[,W]=ga(),Y=b??(W==null?void 0:W.controlHeight),U=V("select",r),X=V(),Z=T??N,{compactSize:te,compactItemClassnames:ne}=Ii(U,Z),[re,le]=Vl("select",I,o),oe=Jr(U),[ie,ce,de]=b6(U,oe),ue=c.useMemo(()=>{const{mode:Be}=e;if(Be!=="combobox")return Be===t$?"combobox":Be},[e.mode]),fe=ue==="multiple"||ue==="tags",xe=O6(e.suffixIcon,e.showArrow),pe=(n=O??$)!==null&&n!==void 0?n:q,{status:Ne,hasFeedback:De,isFormItemInput:Re,feedbackIcon:Le}=c.useContext(Mr),Ee=Fl(Ne,y);let Me;E!==void 0?Me=E:ue==="combobox"?Me=null:Me=(R==null?void 0:R("Select"))||c.createElement(e6,{componentName:"Select"});const{suffixIcon:Fe,itemIcon:Te,removeIcon:Ye,clearIcon:Xe}=e$(Object.assign(Object.assign({},k),{multiple:fe,hasFeedback:De,feedbackIcon:Le,showSuffixIcon:xe,prefixCls:U,componentName:"Select"})),He=D===!0?{clearIcon:Xe}:D,Ze=ur(k,["suffixIcon","itemIcon"]),et=me(v||m,{[`${U}-dropdown-${Z}`]:Z==="rtl"},u,de,oe,ce),Ge=Ra(Be=>{var mt;return(mt=x??te)!==null&&mt!==void 0?mt:Be}),qe=c.useContext(ma),ye=C??qe,Oe=me({[`${U}-lg`]:Ge==="large",[`${U}-sm`]:Ge==="small",[`${U}-rtl`]:Z==="rtl",[`${U}-${re}`]:le,[`${U}-in-form-item`]:Re},Al(U,Ee,De),ne,L.className,s,u,de,oe,ce),$e=c.useMemo(()=>p!==void 0?p:Z==="rtl"?"bottomRight":"bottomLeft",[p,Z]),[Se]=gd("SelectLike",z==null?void 0:z.zIndex);return ie(c.createElement(_p,Object.assign({ref:t,virtual:A,showSearch:L.showSearch},Ze,{style:Object.assign(Object.assign({},L.style),M),dropdownMatchSelectWidth:pe,transitionName:dp(X,"slide-up",P),builtinPlacements:n6(w,_),listHeight:g,listItemHeight:Y,mode:ue,prefixCls:U,placement:$e,direction:Z,prefix:G,suffixIcon:Fe,menuItemSelectedIcon:Te,removeIcon:Ye,allowClear:He,notFoundContent:Me,className:Oe,getPopupContainer:d||F,dropdownClassName:et,disabled:ye,dropdownStyle:Object.assign(Object.assign({},z),{zIndex:Se}),maxCount:fe?H:void 0,tagRender:fe?j:void 0})))},Pi=c.forwardRef(M6),T6=$p(Pi,"dropdownAlign");Pi.SECRET_COMBOBOX_MODE_DO_NOT_USE=t$;Pi.Option=Tp;Pi.OptGroup=Mp;Pi._InternalPanelDoNotUseOrYouWillBeFired=T6;const Ec=["xxl","xl","lg","md","sm","xs"],_6=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)`}),N6=e=>{const t=e,n=[].concat(Ec).reverse();return n.forEach((r,o)=>{const s=r.toUpperCase(),u=`screen${s}Min`,d=`screen${s}`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);if(o<n.length-1){const v=`screen${s}Max`;if(!(t[d]<=t[v]))throw new Error(`${d}<=${v} fails : !(${t[d]}<=${t[v]})`);const g=`screen${n[o+1].toUpperCase()}Min`;if(!(t[v]<=t[g]))throw new Error(`${v}<=${g} fails : !(${t[v]}<=${t[g]})`)}}),e},D6=()=>{const[,e]=ga(),t=_6(N6(e));return Ie.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return o=s,n.forEach(u=>u(o)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(o),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.keys(t).forEach(s=>{const u=t[s],d=m=>{let{matches:g}=m;this.dispatch(Object.assign(Object.assign({},o),{[s]:g}))},v=window.matchMedia(u);v.addListener(d),this.matchHandlers[u]={mql:v,listener:d},d(v)})},unregister(){Object.keys(t).forEach(s=>{const u=t[s],d=this.matchHandlers[u];d==null||d.mql.removeListener(d==null?void 0:d.listener)}),n.clear()}}},[e])};function I6(){const[,e]=c.useReducer(t=>t+1,0);return e}function P6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=c.useRef(t),r=I6(),o=D6();return qt(()=>{const s=o.subscribe(u=>{n.current=u,e&&r()});return()=>o.unsubscribe(s)},[]),n.current}function n$(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,s=e.bodyClassName,u=e.className,d=e.style;return c.createElement("div",{className:me("".concat(n,"-content"),u),style:d},c.createElement("div",{className:me("".concat(n,"-inner"),s),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var bl={shiftX:64,adjustY:1},yl={adjustX:1,shiftY:!0},ca=[0,0],A6={left:{points:["cr","cl"],overflow:yl,offset:[-4,0],targetOffset:ca},right:{points:["cl","cr"],overflow:yl,offset:[4,0],targetOffset:ca},top:{points:["bc","tc"],overflow:bl,offset:[0,-4],targetOffset:ca},bottom:{points:["tc","bc"],overflow:bl,offset:[0,4],targetOffset:ca},topLeft:{points:["bl","tl"],overflow:bl,offset:[0,-4],targetOffset:ca},leftTop:{points:["tr","tl"],overflow:yl,offset:[-4,0],targetOffset:ca},topRight:{points:["br","tr"],overflow:bl,offset:[0,-4],targetOffset:ca},rightTop:{points:["tl","tr"],overflow:yl,offset:[4,0],targetOffset:ca},bottomRight:{points:["tr","br"],overflow:bl,offset:[0,4],targetOffset:ca},rightBottom:{points:["bl","br"],overflow:yl,offset:[4,0],targetOffset:ca},bottomLeft:{points:["tl","bl"],overflow:bl,offset:[0,4],targetOffset:ca},leftBottom:{points:["br","bl"],overflow:yl,offset:[-4,0],targetOffset:ca}},z6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],j6=function(t,n){var r=t.overlayClassName,o=t.trigger,s=o===void 0?["hover"]:o,u=t.mouseEnterDelay,d=u===void 0?0:u,v=t.mouseLeaveDelay,m=v===void 0?.1:v,g=t.overlayStyle,p=t.prefixCls,b=p===void 0?"rc-tooltip":p,x=t.children,C=t.onVisibleChange,E=t.afterVisibleChange,y=t.transitionName,w=t.animation,$=t.motion,O=t.placement,T=O===void 0?"right":O,M=t.align,D=M===void 0?{}:M,I=t.destroyTooltipOnHide,z=I===void 0?!1:I,P=t.defaultVisible,j=t.getTooltipContainer,H=t.overlayInnerStyle;t.arrowContent;var G=t.overlay,k=t.id,F=t.showArrow,V=F===void 0?!0:F,R=t.classNames,N=t.styles,A=Et(t,z6),q=CE(k),_=c.useRef(null);c.useImperativeHandle(n,function(){return _.current});var L=J({},A);"visible"in t&&(L.popupVisible=t.visible);var W=function(){return c.createElement(n$,{key:"content",prefixCls:b,id:q,bodyClassName:R==null?void 0:R.body,overlayInnerStyle:J(J({},H),N==null?void 0:N.body)},G)},Y=function(){var X=c.Children.only(x),Z=(X==null?void 0:X.props)||{},te=J(J({},Z),{},{"aria-describedby":G?q:null});return c.cloneElement(x,te)};return c.createElement(Bc,Ae({popupClassName:me(r,R==null?void 0:R.root),prefixCls:b,popup:W,action:s,builtinPlacements:A6,popupPlacement:T,ref:_,popupAlign:D,getPopupContainer:j,onPopupVisibleChange:C,afterPopupVisibleChange:E,popupTransitionName:y,popupAnimation:w,popupMotion:$,defaultPopupVisible:P,autoDestroy:z,mouseLeaveDelay:m,popupStyle:J(J({},g),N==null?void 0:N.root),mouseEnterDelay:d,arrow:V},L),Y())};const H6=c.forwardRef(j6);function r$(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,u=o,d=r*1/Math.sqrt(2),v=o-r*(1-1/Math.sqrt(2)),m=o-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-m,b=g,x=2*o-d,C=v,E=2*o-s,y=u,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),O=`polygon(${$}px 100%, 50% ${$}px, ${2*o-$}px 100%, ${$}px 100%)`,T=`path('M ${s} ${u} A ${r} ${r} 0 0 0 ${d} ${v} L ${m} ${g} A ${n} ${n} 0 0 1 ${p} ${b} L ${x} ${C} A ${r} ${r} 0 0 0 ${E} ${y} Z')`;return{arrowShadowWidth:w,arrowPath:T,arrowPolygon:O}}const a$=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:u,borderRadiusXS:d,calc:v}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:v(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ge(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},o$=8;function i$(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o$:r}}function lf(e,t){return e?t:{}}function L6(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:u}=e,{arrowDistance:d=0,arrowPlacement:v={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},a$(e,t,o)),{"&:before":{background:t}})]},lf(!!v.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ge(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}}})),lf(!!v.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":u,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ge(u)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:u}}}})),lf(!!v.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}})),lf(!!v.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}))}}function B6(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const u=Object.assign(Object.assign({},s),o);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const w1={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"]}},F6={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"]}},V6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function k6(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s}=e,u=t/2,d={};return Object.keys(w1).forEach(v=>{const m=r&&F6[v]||w1[v],g=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(d[v]=g,V6.has(v)&&(g.autoArrow=!1),v){case"top":case"topLeft":case"topRight":g.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=u+o;break}const p=i$({contentRadius:s,limitVerticalRadius:!0});if(r)switch(v){case"topLeft":case"bottomLeft":g.offset[0]=-p.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":g.offset[0]=p.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":g.offset[1]=-p.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":g.offset[1]=p.arrowOffsetHorizontal*2-u;break}g.overflow=B6(v,p,t,n),g.htmlRegion="visibleFirst"}),d}const U6=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:s,tooltipBorderRadius:u,zIndexPopup:d,controlHeight:v,boxShadowSecondary:m,paddingSM:g,paddingXS:p,arrowOffsetHorizontal:b,sizePopupArrow:x}=e,C=t(u).add(x).add(b).equal(),E=t(u).mul(2).add(x).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Cr(e)),{position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-inner`]:{minWidth:E,minHeight:v,padding:`${ge(e.calc(g).div(2).equal())} ${ge(p)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:u,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(u,o$)}},[`${n}-content`]:{position:"relative"}}),bD(e,(y,w)=>{let{darkColor:$}=w;return{[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}})),{"&-rtl":{direction:"rtl"}})},L6(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},q6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},i$({contentRadius:e.borderRadius,limitVerticalRadius:!0})),r$(Sn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),l$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return gr("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:s,colorBgSpotlight:u}=r,d=Sn(r,{tooltipMaxWidth:250,tooltipColor:s,tooltipBorderRadius:o,tooltipBg:u});return[U6(d),cA(r,"zoom-big-fast")]},q6,{resetStyle:!1,injectStyle:t})(e)},W6=xi.map(e=>`${e}-inverse`);function G6(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(je(W6),je(xi)).includes(e):xi.includes(e)}function s$(e,t){const n=G6(t),r=me({[`${e}-${t}`]:t&&n}),o={},s={};return t&&!n&&(o.background=t,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:s}}const Y6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:s,overlayInnerStyle:u}=e,{getPrefixCls:d}=c.useContext(Wt),v=d("tooltip",t),[m,g,p]=l$(v),b=s$(v,s),x=b.arrowStyle,C=Object.assign(Object.assign({},u),b.overlayStyle),E=me(g,p,v,`${v}-pure`,`${v}-placement-${r}`,n,b.className);return m(c.createElement("div",{className:E,style:x},c.createElement("div",{className:`${v}-arrow`}),c.createElement(n$,Object.assign({},e,{className:g,prefixCls:v,overlayInnerStyle:C}),o)))};var K6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X6=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:s,getTooltipContainer:u,color:d,overlayInnerStyle:v,children:m,afterOpenChange:g,afterVisibleChange:p,destroyTooltipOnHide:b,arrow:x=!0,title:C,overlay:E,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:$=!0,motion:O,getPopupContainer:T,placement:M="top",mouseEnterDelay:D=.1,mouseLeaveDelay:I=.1,overlayStyle:z,rootClassName:P,overlayClassName:j,styles:H,classNames:G}=e,k=K6(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!x,[,V]=ga(),{getPopupContainer:R,getPrefixCls:N,direction:A,className:q,style:_,classNames:L,styles:W}=vo("tooltip"),Y=ud(),U=c.useRef(null),X=()=>{var Ze;(Ze=U.current)===null||Ze===void 0||Ze.forceAlign()};c.useImperativeHandle(t,()=>{var Ze,et;return{forceAlign:X,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(Ze=U.current)===null||Ze===void 0?void 0:Ze.nativeElement,popupElement:(et=U.current)===null||et===void 0?void 0:et.popupElement}});const[Z,te]=An(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ne=!C&&!E&&C!==0,re=Ze=>{var et,Ge;te(ne?!1:Ze),ne||((et=e.onOpenChange)===null||et===void 0||et.call(e,Ze),(Ge=e.onVisibleChange)===null||Ge===void 0||Ge.call(e,Ze))},le=c.useMemo(()=>{var Ze,et;let Ge=w;return typeof x=="object"&&(Ge=(et=(Ze=x.pointAtCenter)!==null&&Ze!==void 0?Ze:x.arrowPointAtCenter)!==null&&et!==void 0?et:w),y||k6({arrowPointAtCenter:Ge,autoAdjustOverflow:$,arrowWidth:F?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS})},[w,x,y,V]),oe=c.useMemo(()=>C===0?C:E||C||"",[E,C]),ie=c.createElement(xc,{space:!0},typeof oe=="function"?oe():oe),ce=N("tooltip",o),de=N(),ue=e["data-popover-inject"];let fe=Z;!("open"in e)&&!("visible"in e)&&ne&&(fe=!1);const xe=c.isValidElement(m)&&!aE(m)?m:c.createElement("span",null,m),pe=xe.props,Ne=!pe.className||typeof pe.className=="string"?me(pe.className,s||`${ce}-open`):pe.className,[De,Re,Le]=l$(ce,!ue),Ee=s$(ce,d),Me=Ee.arrowStyle,Fe=me(j,{[`${ce}-rtl`]:A==="rtl"},Ee.className,P,Re,Le,q,L.root,G==null?void 0:G.root),Te=me(L.body,G==null?void 0:G.body),[Ye,Xe]=gd("Tooltip",k.zIndex),He=c.createElement(H6,Object.assign({},k,{zIndex:Ye,showArrow:F,placement:M,mouseEnterDelay:D,mouseLeaveDelay:I,prefixCls:ce,classNames:{root:Fe,body:Te},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me),W.root),_),z),H==null?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),v),H==null?void 0:H.body),Ee.overlayStyle)},getTooltipContainer:T||u||R,ref:U,builtinPlacements:le,overlay:ie,visible:fe,onVisibleChange:re,afterVisibleChange:g??p,arrowContent:c.createElement("span",{className:`${ce}-arrow-content`}),motion:{motionName:dp(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),fe?Ei(xe,{className:Ne}):xe);return De(c.createElement(lE.Provider,{value:Xe},He))}),Fc=X6;Fc._InternalPanelDoNotUseOrYouWillBeFired=Y6;var Q6=bt.ESC,Z6=bt.TAB;function J6(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,s=e.overlayRef,u=c.useRef(!1),d=function(){if(t){var p,b;(p=n.current)===null||p===void 0||(b=p.focus)===null||b===void 0||b.call(p),r==null||r(!1)}},v=function(){var p;return(p=s.current)!==null&&p!==void 0&&p.focus?(s.current.focus(),u.current=!0,!0):!1},m=function(p){switch(p.keyCode){case Q6:d();break;case Z6:{var b=!1;u.current||(b=v()),b?p.preventDefault():d();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&kt(v,3),function(){window.removeEventListener("keydown",m),u.current=!1}):function(){u.current=!1}},[t])}var ej=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,s=c.useMemo(function(){var d;return typeof n=="function"?d=n():d=n,d},[n]),u=Br(t,Ti(s));return Ie.createElement(Ie.Fragment,null,r&&Ie.createElement("div",{className:"".concat(o,"-arrow")}),Ie.cloneElement(s,{ref:Wo(s)?u:void 0}))}),Sl={adjustX:1,adjustY:1},Cl=[0,0],tj={topLeft:{points:["bl","tl"],overflow:Sl,offset:[0,-4],targetOffset:Cl},top:{points:["bc","tc"],overflow:Sl,offset:[0,-4],targetOffset:Cl},topRight:{points:["br","tr"],overflow:Sl,offset:[0,-4],targetOffset:Cl},bottomLeft:{points:["tl","bl"],overflow:Sl,offset:[0,4],targetOffset:Cl},bottom:{points:["tc","bc"],overflow:Sl,offset:[0,4],targetOffset:Cl},bottomRight:{points:["tr","br"],overflow:Sl,offset:[0,4],targetOffset:Cl}},nj=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rj(e,t){var n,r=e.arrow,o=r===void 0?!1:r,s=e.prefixCls,u=s===void 0?"rc-dropdown":s,d=e.transitionName,v=e.animation,m=e.align,g=e.placement,p=g===void 0?"bottomLeft":g,b=e.placements,x=b===void 0?tj:b,C=e.getPopupContainer,E=e.showAction,y=e.hideAction,w=e.overlayClassName,$=e.overlayStyle,O=e.visible,T=e.trigger,M=T===void 0?["hover"]:T,D=e.autoFocus,I=e.overlay,z=e.children,P=e.onVisibleChange,j=Et(e,nj),H=Ie.useState(),G=ee(H,2),k=G[0],F=G[1],V="visible"in e?O:k,R=Ie.useRef(null),N=Ie.useRef(null),A=Ie.useRef(null);Ie.useImperativeHandle(t,function(){return R.current});var q=function(ne){F(ne),P==null||P(ne)};J6({visible:V,triggerRef:A,onVisibleChange:q,autoFocus:D,overlayRef:N});var _=function(ne){var re=e.onOverlayClick;F(!1),re&&re(ne)},L=function(){return Ie.createElement(ej,{ref:N,overlay:I,prefixCls:u,arrow:o})},W=function(){return typeof I=="function"?L:L()},Y=function(){var ne=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!re},U=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(u,"-open")},X=Ie.cloneElement(z,{className:me((n=z.props)===null||n===void 0?void 0:n.className,V&&U()),ref:Wo(z)?Br(A,Ti(z)):void 0}),Z=y;return!Z&&M.indexOf("contextMenu")!==-1&&(Z=["click"]),Ie.createElement(Bc,Ae({builtinPlacements:x},j,{prefixCls:u,ref:R,popupClassName:me(w,Q({},"".concat(u,"-show-arrow"),o)),popupStyle:$,action:M,showAction:E,hideAction:Z,popupPlacement:p,popupAlign:m,popupTransitionName:d,popupAnimation:v,popupVisible:V,stretch:Y()?"minWidth":"",popup:W(),onPopupVisibleChange:q,onPopupClick:_,getPopupContainer:C}),X)}const aj=Ie.forwardRef(rj);var c$=c.createContext(null);function u$(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function f$(e){var t=c.useContext(c$);return u$(t,e)}var oj=["children","locked"],$a=c.createContext(null);function ij(e,t){var n=J({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function $c(e){var t=e.children,n=e.locked,r=Et(e,oj),o=c.useContext($a),s=Nc(function(){return ij(o,r)},[o,r],function(u,d){return!n&&(u[0]!==d[0]||!mc(u[1],d[1],!0))});return c.createElement($a.Provider,{value:s},t)}var lj=[],d$=c.createContext(null);function Rd(){return c.useContext(d$)}var v$=c.createContext(lj);function Vc(e){var t=c.useContext(v$);return c.useMemo(function(){return e!==void 0?[].concat(je(t),[e]):t},[t,e])}var m$=c.createContext(null),Np=c.createContext({});function E1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o),u=null;return o&&!Number.isNaN(s)?u=s:r&&u===null&&(u=0),r&&e.disabled&&(u=null),u!==null&&(u>=0||t&&u<0)}return!1}function sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=je(e.querySelectorAll("*")).filter(function(r){return E1(r,t)});return E1(e,t)&&n.unshift(e),n}var jh=bt.LEFT,Hh=bt.RIGHT,Lh=bt.UP,_f=bt.DOWN,Nf=bt.ENTER,g$=bt.ESC,qs=bt.HOME,Ws=bt.END,$1=[Lh,_f,jh,Hh];function cj(e,t,n,r){var o,s="prev",u="next",d="children",v="parent";if(e==="inline"&&r===Nf)return{inlineTrigger:!0};var m=Q(Q({},Lh,s),_f,u),g=Q(Q(Q(Q({},jh,n?u:s),Hh,n?s:u),_f,d),Nf,d),p=Q(Q(Q(Q(Q(Q({},Lh,s),_f,u),Nf,d),g$,v),jh,n?d:v),Hh,n?v:d),b={inline:m,horizontal:g,vertical:p,inlineSub:m,horizontalSub:p,verticalSub:p},x=(o=b["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(x){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case v:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function uj(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function fj(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Dp(e,t){var n=sj(e,!0);return n.filter(function(r){return t.has(r)})}function O1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Dp(e,t),s=o.length,u=o.findIndex(function(d){return n===d});return r<0?u===-1?u=s-1:u-=1:r>0&&(u+=1),u=(u+s)%s,o[u]}var Bh=function(t,n){var r=new Set,o=new Map,s=new Map;return t.forEach(function(u){var d=document.querySelector("[data-menu-id='".concat(u$(n,u),"']"));d&&(r.add(d),s.set(d,u),o.set(u,d))}),{elements:r,key2element:o,element2key:s}};function dj(e,t,n,r,o,s,u,d,v,m){var g=c.useRef(),p=c.useRef();p.current=t;var b=function(){kt.cancel(g.current)};return c.useEffect(function(){return function(){b()}},[]),function(x){var C=x.which;if([].concat($1,[Nf,g$,qs,Ws]).includes(C)){var E=s(),y=Bh(E,r),w=y,$=w.elements,O=w.key2element,T=w.element2key,M=O.get(t),D=fj(M,$),I=T.get(D),z=cj(e,u(I,!0).length===1,n,C);if(!z&&C!==qs&&C!==Ws)return;($1.includes(C)||[qs,Ws].includes(C))&&x.preventDefault();var P=function(N){if(N){var A=N,q=N.querySelector("a");q!=null&&q.getAttribute("href")&&(A=q);var _=T.get(N);d(_),b(),g.current=kt(function(){p.current===_&&A.focus()})}};if([qs,Ws].includes(C)||z.sibling||!D){var j;!D||e==="inline"?j=o.current:j=uj(D);var H,G=Dp(j,$);C===qs?H=G[0]:C===Ws?H=G[G.length-1]:H=O1(j,$,D,z.offset),P(H)}else if(z.inlineTrigger)v(I);else if(z.offset>0)v(I,!0),b(),g.current=kt(function(){y=Bh(E,r);var R=D.getAttribute("aria-controls"),N=document.getElementById(R),A=O1(N,y.elements);P(A)},5);else if(z.offset<0){var k=u(I,!0),F=k[k.length-2],V=O.get(F);v(F,!1),P(V)}}m==null||m(x)}}function vj(e){Promise.resolve().then(e)}var Ip="__RC_UTIL_PATH_SPLIT__",R1=function(t){return t.join(Ip)},mj=function(t){return t.split(Ip)},Fh="rc-menu-more";function gj(){var e=c.useState({}),t=ee(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),s=c.useState([]),u=ee(s,2),d=u[0],v=u[1],m=c.useRef(0),g=c.useRef(!1),p=function(){g.current||n({})},b=c.useCallback(function(O,T){var M=R1(T);o.current.set(M,O),r.current.set(O,M),m.current+=1;var D=m.current;vj(function(){D===m.current&&p()})},[]),x=c.useCallback(function(O,T){var M=R1(T);o.current.delete(M),r.current.delete(O)},[]),C=c.useCallback(function(O){v(O)},[]),E=c.useCallback(function(O,T){var M=r.current.get(O)||"",D=mj(M);return T&&d.includes(D[0])&&D.unshift(Fh),D},[d]),y=c.useCallback(function(O,T){return O.filter(function(M){return M!==void 0}).some(function(M){var D=E(M,!0);return D.includes(T)})},[E]),w=function(){var T=je(r.current.keys());return d.length&&T.push(Fh),T},$=c.useCallback(function(O){var T="".concat(r.current.get(O)).concat(Ip),M=new Set;return je(o.current.keys()).forEach(function(D){D.startsWith(T)&&M.add(o.current.get(D))}),M},[]);return c.useEffect(function(){return function(){g.current=!0}},[]),{registerPath:b,unregisterPath:x,refreshOverflowKeys:C,isSubPathKey:y,getKeyPath:E,getKeys:w,getSubPathKeys:$}}function Qs(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(s))},[]);return e?n:void 0}var hj=Math.random().toFixed(5).toString().slice(2),M1=0;function pj(e){var t=An(e,{value:e}),n=ee(t,2),r=n[0],o=n[1];return c.useEffect(function(){M1+=1;var s="".concat(hj,"-").concat(M1);o("rc-menu-uuid-".concat(s))},[]),r}function h$(e,t,n,r){var o=c.useContext($a),s=o.activeKey,u=o.onActive,d=o.onInactive,v={active:s===e};return t||(v.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),u(e)},v.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),d(e)}),v}function p$(e){var t=c.useContext($a),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var s=e;return r?{paddingRight:s*o}:{paddingLeft:s*o}}function b$(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,J({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var bj=["item"];function Jf(e){var t=e.item,n=Et(e,bj);return Object.defineProperty(n,"item",{get:function(){return Sr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var yj=["title","attribute","elementRef"],Sj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Cj=["active"],xj=function(e){uo(n,e);var t=fo(n);function n(){return Qn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){var o=this.props,s=o.title,u=o.attribute,d=o.elementRef,v=Et(o,yj),m=ur(v,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Sr(!u,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(wa.Item,Ae({},u,{title:typeof s=="string"?s:void 0},m,{ref:d}))}}]),n}(c.Component),wj=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var s=e.disabled,u=e.itemIcon,d=e.children,v=e.role,m=e.onMouseEnter,g=e.onMouseLeave,p=e.onClick,b=e.onKeyDown,x=e.onFocus,C=Et(e,Sj),E=f$(o),y=c.useContext($a),w=y.prefixCls,$=y.onItemClick,O=y.disabled,T=y.overflowDisabled,M=y.itemIcon,D=y.selectedKeys,I=y.onActive,z=c.useContext(Np),P=z._internalRenderMenuItem,j="".concat(w,"-item"),H=c.useRef(),G=c.useRef(),k=O||s,F=Mi(t,G),V=Vc(o),R=function(re){return{key:o,keyPath:je(V).reverse(),item:H.current,domEvent:re}},N=u||M,A=h$(o,k,m,g),q=A.active,_=Et(A,Cj),L=D.includes(o),W=p$(V.length),Y=function(re){if(!k){var le=R(re);p==null||p(Jf(le)),$(le)}},U=function(re){if(b==null||b(re),re.which===bt.ENTER){var le=R(re);p==null||p(Jf(le)),$(le)}},X=function(re){I(o),x==null||x(re)},Z={};e.role==="option"&&(Z["aria-selected"]=L);var te=c.createElement(xj,Ae({ref:H,elementRef:F,role:v===null?"none":v||"menuitem",tabIndex:s?null:-1,"data-menu-id":T&&E?null:E},ur(C,["extra"]),_,Z,{component:"li","aria-disabled":s,style:J(J({},W),n),className:me(j,Q(Q(Q({},"".concat(j,"-active"),q),"".concat(j,"-selected"),L),"".concat(j,"-disabled"),k),r),onClick:Y,onKeyDown:U,onFocus:X}),d,c.createElement(b$,{props:J(J({},e),{},{isSelected:L}),icon:N}));return P&&(te=P(te,e,{selected:L})),te});function Ej(e,t){var n=e.eventKey,r=Rd(),o=Vc(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(wj,Ae({},e,{ref:t}))}const Md=c.forwardRef(Ej);var $j=["className","children"],Oj=function(t,n){var r=t.className,o=t.children,s=Et(t,$j),u=c.useContext($a),d=u.prefixCls,v=u.mode,m=u.rtl;return c.createElement("ul",Ae({className:me(d,m&&"".concat(d,"-rtl"),"".concat(d,"-sub"),"".concat(d,"-").concat(v==="inline"?"inline":"vertical"),r),role:"menu"},s,{"data-menu-list":!0,ref:n}),o)},Pp=c.forwardRef(Oj);Pp.displayName="SubMenuList";function Ap(e,t){return ja(e).map(function(n,r){if(c.isValidElement(n)){var o,s,u=n.key,d=(o=(s=n.props)===null||s===void 0?void 0:s.eventKey)!==null&&o!==void 0?o:u,v=d==null;v&&(d="tmp_key-".concat([].concat(je(t),[r]).join("-")));var m={key:d,eventKey:d};return c.cloneElement(n,m)}return n})}var Or={adjustX:1,adjustY:1},Rj={topLeft:{points:["bl","tl"],overflow:Or},topRight:{points:["br","tr"],overflow:Or},bottomLeft:{points:["tl","bl"],overflow:Or},bottomRight:{points:["tr","br"],overflow:Or},leftTop:{points:["tr","tl"],overflow:Or},leftBottom:{points:["br","bl"],overflow:Or},rightTop:{points:["tl","tr"],overflow:Or},rightBottom:{points:["bl","br"],overflow:Or}},Mj={topLeft:{points:["bl","tl"],overflow:Or},topRight:{points:["br","tr"],overflow:Or},bottomLeft:{points:["tl","bl"],overflow:Or},bottomRight:{points:["tr","br"],overflow:Or},rightTop:{points:["tr","tl"],overflow:Or},rightBottom:{points:["br","bl"],overflow:Or},leftTop:{points:["tl","tr"],overflow:Or},leftBottom:{points:["bl","br"],overflow:Or}};function y$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Tj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function _j(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,s=e.popupStyle,u=e.popupClassName,d=e.popupOffset,v=e.disabled,m=e.mode,g=e.onVisibleChange,p=c.useContext($a),b=p.getPopupContainer,x=p.rtl,C=p.subMenuOpenDelay,E=p.subMenuCloseDelay,y=p.builtinPlacements,w=p.triggerSubMenuAction,$=p.forceSubMenuRender,O=p.rootClassName,T=p.motion,M=p.defaultMotions,D=c.useState(!1),I=ee(D,2),z=I[0],P=I[1],j=J(x?J({},Mj):J({},Rj),y),H=Tj[m],G=y$(m,T,M),k=c.useRef(G);m!=="inline"&&(k.current=G);var F=J(J({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=c.useRef();return c.useEffect(function(){return V.current=kt(function(){P(n)}),function(){kt.cancel(V.current)}},[n]),c.createElement(Bc,{prefixCls:t,popupClassName:me("".concat(t,"-popup"),Q({},"".concat(t,"-rtl"),x),u,O),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:b,builtinPlacements:j,popupPlacement:H,popupVisible:z,popup:o,popupStyle:s,popupAlign:d&&{offset:d},action:v?[]:[w],mouseEnterDelay:C,mouseLeaveDelay:E,onPopupVisibleChange:g,forceRender:$,popupMotion:F,fresh:!0},r)}function Nj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,s="inline",u=c.useContext($a),d=u.prefixCls,v=u.forceSubMenuRender,m=u.motion,g=u.defaultMotions,p=u.mode,b=c.useRef(!1);b.current=p===s;var x=c.useState(!b.current),C=ee(x,2),E=C[0],y=C[1],w=b.current?n:!1;c.useEffect(function(){b.current&&y(!1)},[p]);var $=J({},y$(s,m,g));r.length>1&&($.motionAppear=!1);var O=$.onVisibleChanged;return $.onVisibleChanged=function(T){return!b.current&&!T&&y(!0),O==null?void 0:O(T)},E?null:c.createElement($c,{mode:s,locked:!b.current},c.createElement(Go,Ae({visible:w},$,{forceRender:v,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(T){var M=T.className,D=T.style;return c.createElement(Pp,{id:t,className:M,style:D},o)}))}var Dj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ij=["active"],Pj=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,s=e.eventKey;e.warnKey;var u=e.disabled,d=e.internalPopupClose,v=e.children,m=e.itemIcon,g=e.expandIcon,p=e.popupClassName,b=e.popupOffset,x=e.popupStyle,C=e.onClick,E=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,O=e.onTitleMouseLeave,T=Et(e,Dj),M=f$(s),D=c.useContext($a),I=D.prefixCls,z=D.mode,P=D.openKeys,j=D.disabled,H=D.overflowDisabled,G=D.activeKey,k=D.selectedKeys,F=D.itemIcon,V=D.expandIcon,R=D.onItemClick,N=D.onOpenChange,A=D.onActive,q=c.useContext(Np),_=q._internalRenderSubMenuItem,L=c.useContext(m$),W=L.isSubPathKey,Y=Vc(),U="".concat(I,"-submenu"),X=j||u,Z=c.useRef(),te=c.useRef(),ne=m??F,re=g??V,le=P.includes(s),oe=!H&&le,ie=W(k,s),ce=h$(s,X,$,O),de=ce.active,ue=Et(ce,Ij),fe=c.useState(!1),xe=ee(fe,2),pe=xe[0],Ne=xe[1],De=function($e){X||Ne($e)},Re=function($e){De(!0),E==null||E({key:s,domEvent:$e})},Le=function($e){De(!1),y==null||y({key:s,domEvent:$e})},Ee=c.useMemo(function(){return de||(z!=="inline"?pe||W([G],s):!1)},[z,de,G,pe,s,W]),Me=p$(Y.length),Fe=function($e){X||(w==null||w({key:s,domEvent:$e}),z==="inline"&&N(s,!le))},Te=Qs(function(Oe){C==null||C(Jf(Oe)),R(Oe)}),Ye=function($e){z!=="inline"&&N(s,$e)},Xe=function(){A(s)},He=M&&"".concat(M,"-popup"),Ze=c.useMemo(function(){return c.createElement(b$,{icon:z!=="horizontal"?re:void 0,props:J(J({},e),{},{isOpen:oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(U,"-arrow")}))},[z,re,e,oe,U]),et=c.createElement("div",Ae({role:"menuitem",style:Me,className:"".concat(U,"-title"),tabIndex:X?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":H&&M?null:M,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":He,"aria-disabled":X,onClick:Fe,onFocus:Xe},ue),o,Ze),Ge=c.useRef(z);if(z!=="inline"&&Y.length>1?Ge.current="vertical":Ge.current=z,!H){var qe=Ge.current;et=c.createElement(_j,{mode:qe,prefixCls:U,visible:!d&&oe&&z!=="inline",popupClassName:p,popupOffset:b,popupStyle:x,popup:c.createElement($c,{mode:qe==="horizontal"?"vertical":qe},c.createElement(Pp,{id:He,ref:te},v)),disabled:X,onVisibleChange:Ye},et)}var ye=c.createElement(wa.Item,Ae({ref:t,role:"none"},T,{component:"li",style:n,className:me(U,"".concat(U,"-").concat(z),r,Q(Q(Q(Q({},"".concat(U,"-open"),oe),"".concat(U,"-active"),Ee),"".concat(U,"-selected"),ie),"".concat(U,"-disabled"),X)),onMouseEnter:Re,onMouseLeave:Le}),et,!H&&c.createElement(Nj,{id:He,open:oe,keyPath:Y},v));return _&&(ye=_(ye,e,{selected:ie,active:Ee,open:oe,disabled:X})),c.createElement($c,{onItemClick:Te,mode:z==="horizontal"?"vertical":z,itemIcon:ne,expandIcon:re},ye)}),zp=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Vc(n),s=Ap(r,o),u=Rd();c.useEffect(function(){if(u)return u.registerPath(n,o),function(){u.unregisterPath(n,o)}},[o]);var d;return u?d=s:d=c.createElement(Pj,Ae({ref:t},e),s),c.createElement(v$.Provider,{value:o},d)});function S$(e){var t=e.className,n=e.style,r=c.useContext($a),o=r.prefixCls,s=Rd();return s?null:c.createElement("li",{role:"separator",className:me("".concat(o,"-item-divider"),t),style:n})}var Aj=["className","title","eventKey","children"],zj=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,s=Et(e,Aj),u=c.useContext($a),d=u.prefixCls,v="".concat(d,"-item-group");return c.createElement("li",Ae({ref:t,role:"presentation"},s,{onClick:function(g){return g.stopPropagation()},className:me(v,n)}),c.createElement("div",{role:"presentation",className:"".concat(v,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(v,"-list")},o))}),C$=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Vc(n),s=Ap(r,o),u=Rd();return u?s:c.createElement(zj,Ae({ref:t},ur(e,["warnKey"])),s)}),jj=["label","children","key","type","extra"];function Vh(e,t,n){var r=t.item,o=t.group,s=t.submenu,u=t.divider;return(e||[]).map(function(d,v){if(d&&vt(d)==="object"){var m=d,g=m.label,p=m.children,b=m.key,x=m.type,C=m.extra,E=Et(m,jj),y=b??"tmp-".concat(v);return p||x==="group"?x==="group"?c.createElement(o,Ae({key:y},E,{title:g}),Vh(p,t,n)):c.createElement(s,Ae({key:y},E,{title:g}),Vh(p,t,n)):x==="divider"?c.createElement(u,Ae({key:y},E)):c.createElement(r,Ae({key:y},E,{extra:C}),g,(!!C||C===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(d){return d})}function T1(e,t,n,r,o){var s=e,u=J({divider:S$,item:Md,group:C$,submenu:zp},r);return t&&(s=Vh(t,u,o)),Ap(s,n)}var Hj=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],vi=[],Lj=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,s=o===void 0?"rc-menu":o,u=r.rootClassName,d=r.style,v=r.className,m=r.tabIndex,g=m===void 0?0:m,p=r.items,b=r.children,x=r.direction,C=r.id,E=r.mode,y=E===void 0?"vertical":E,w=r.inlineCollapsed,$=r.disabled,O=r.disabledOverflow,T=r.subMenuOpenDelay,M=T===void 0?.1:T,D=r.subMenuCloseDelay,I=D===void 0?.1:D,z=r.forceSubMenuRender,P=r.defaultOpenKeys,j=r.openKeys,H=r.activeKey,G=r.defaultActiveFirst,k=r.selectable,F=k===void 0?!0:k,V=r.multiple,R=V===void 0?!1:V,N=r.defaultSelectedKeys,A=r.selectedKeys,q=r.onSelect,_=r.onDeselect,L=r.inlineIndent,W=L===void 0?24:L,Y=r.motion,U=r.defaultMotions,X=r.triggerSubMenuAction,Z=X===void 0?"hover":X,te=r.builtinPlacements,ne=r.itemIcon,re=r.expandIcon,le=r.overflowedIndicator,oe=le===void 0?"...":le,ie=r.overflowedIndicatorPopupClassName,ce=r.getPopupContainer,de=r.onClick,ue=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,pe=r._internalRenderSubMenuItem,Ne=r._internalComponents,De=Et(r,Hj),Re=c.useMemo(function(){return[T1(b,p,vi,Ne,s),T1(b,p,vi,{},s)]},[b,p,Ne]),Le=ee(Re,2),Ee=Le[0],Me=Le[1],Fe=c.useState(!1),Te=ee(Fe,2),Ye=Te[0],Xe=Te[1],He=c.useRef(),Ze=pj(C),et=x==="rtl",Ge=An(P,{value:j,postState:function(ut){return ut||vi}}),qe=ee(Ge,2),ye=qe[0],Oe=qe[1],$e=function(ut){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Yt(){Oe(ut),ue==null||ue(ut)}Je?Uo.flushSync(Yt):Yt()},Se=c.useState(ye),Be=ee(Se,2),mt=Be[0],Ot=Be[1],Dt=c.useRef(!1),Kt=c.useMemo(function(){return(y==="inline"||y==="vertical")&&w?["vertical",w]:[y,!1]},[y,w]),zt=ee(Kt,2),Tt=zt[0],Rt=zt[1],gt=Tt==="inline",at=c.useState(Tt),tt=ee(at,2),Qe=tt[0],Ct=tt[1],yt=c.useState(Rt),We=ee(yt,2),Ke=We[0],it=We[1];c.useEffect(function(){Ct(Tt),it(Rt),Dt.current&&(gt?Oe(mt):$e(vi))},[Tt,Rt]);var ft=c.useState(0),st=ee(ft,2),dt=st[0],Vt=st[1],jt=dt>=Ee.length-1||Qe!=="horizontal"||O;c.useEffect(function(){gt&&Ot(ye)},[ye]),c.useEffect(function(){return Dt.current=!0,function(){Dt.current=!1}},[]);var Lt=gj(),Ht=Lt.registerPath,Ft=Lt.unregisterPath,nn=Lt.refreshOverflowKeys,wt=Lt.isSubPathKey,$n=Lt.getKeyPath,ln=Lt.getKeys,rn=Lt.getSubPathKeys,Ue=c.useMemo(function(){return{registerPath:Ht,unregisterPath:Ft}},[Ht,Ft]),lt=c.useMemo(function(){return{isSubPathKey:wt}},[wt]);c.useEffect(function(){nn(jt?vi:Ee.slice(dt+1).map(function(Gt){return Gt.key}))},[dt,jt]);var nt=An(H||G&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:H}),Ve=ee(nt,2),ht=Ve[0],It=Ve[1],Xt=Qs(function(Gt){It(Gt)}),Jt=Qs(function(){It(void 0)});c.useImperativeHandle(t,function(){return{list:He.current,focus:function(ut){var Je,Yt=ln(),ot=Bh(Yt,Ze),rt=ot.elements,At=ot.key2element,xn=ot.element2key,jn=Dp(He.current,rt),Ln=ht??(jn[0]?xn.get(jn[0]):(Je=Ee.find(function(_t){return!_t.props.disabled}))===null||Je===void 0?void 0:Je.key),Jn=At.get(Ln);if(Ln&&Jn){var er;Jn==null||(er=Jn.focus)===null||er===void 0||er.call(Jn,ut)}}}});var On=An(N||[],{value:A,postState:function(ut){return Array.isArray(ut)?ut:ut==null?vi:[ut]}}),cn=ee(On,2),dn=cn[0],Cn=cn[1],ar=function(ut){if(F){var Je=ut.key,Yt=dn.includes(Je),ot;R?Yt?ot=dn.filter(function(At){return At!==Je}):ot=[].concat(je(dn),[Je]):ot=[Je],Cn(ot);var rt=J(J({},ut),{},{selectedKeys:ot});Yt?_==null||_(rt):q==null||q(rt)}!R&&ye.length&&Qe!=="inline"&&$e(vi)},xr=Qs(function(Gt){de==null||de(Jf(Gt)),ar(Gt)}),zn=Qs(function(Gt,ut){var Je=ye.filter(function(ot){return ot!==Gt});if(ut)Je.push(Gt);else if(Qe!=="inline"){var Yt=rn(Gt);Je=Je.filter(function(ot){return!Yt.has(ot)})}mc(ye,Je,!0)||$e(Je,!0)}),un=function(ut,Je){var Yt=Je??!ye.includes(ut);zn(ut,Yt)},hr=dj(Qe,ht,et,Ze,He,ln,$n,It,un,fe);c.useEffect(function(){Xe(!0)},[]);var wr=c.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:pe}},[xe,pe]),Fn=Qe!=="horizontal"||O?Ee:Ee.map(function(Gt,ut){return c.createElement($c,{key:Gt.key,overflowDisabled:ut>dt},Gt)}),Tr=c.createElement(wa,Ae({id:C,ref:He,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Md,className:me(s,"".concat(s,"-root"),"".concat(s,"-").concat(Qe),v,Q(Q({},"".concat(s,"-inline-collapsed"),Ke),"".concat(s,"-rtl"),et),u),dir:x,style:d,role:"menu",tabIndex:g,data:Fn,renderRawItem:function(ut){return ut},renderRawRest:function(ut){var Je=ut.length,Yt=Je?Ee.slice(-Je):null;return c.createElement(zp,{eventKey:Fh,title:oe,disabled:jt,internalPopupClose:Je===0,popupClassName:ie},Yt)},maxCount:Qe!=="horizontal"||O?wa.INVALIDATE:wa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ut){Vt(ut)},onKeyDown:hr},De));return c.createElement(Np.Provider,{value:wr},c.createElement(c$.Provider,{value:Ze},c.createElement($c,{prefixCls:s,rootClassName:u,mode:Qe,openKeys:ye,rtl:et,disabled:$,motion:Ye?Y:null,defaultMotions:Ye?U:null,activeKey:ht,onActive:Xt,onInactive:Jt,selectedKeys:dn,inlineIndent:W,subMenuOpenDelay:M,subMenuCloseDelay:I,forceSubMenuRender:z,builtinPlacements:te,triggerSubMenuAction:Z,getPopupContainer:ce,itemIcon:ne,expandIcon:re,onItemClick:xr,onOpenChange:zn},c.createElement(m$.Provider,{value:lt},Tr),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(d$.Provider,{value:Ue},Me)))))}),kc=Lj;kc.Item=Md;kc.SubMenu=zp;kc.ItemGroup=C$;kc.Divider=S$;var Bj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Fj=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:Bj}))},Vj=c.forwardRef(Fj),Df={exports:{}},kj=Df.exports,_1;function Uj(){return _1||(_1=1,function(e,t){(function(n,r){e.exports=r()})(kj,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",u="second",d="minute",v="hour",m="day",g="week",p="month",b="quarter",x="year",C="date",E="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var V=["th","st","nd","rd"],R=F%100;return"["+F+(V[(R-20)%10]||V[R]||V[0])+"]"}},O=function(F,V,R){var N=String(F);return!N||N.length>=V?F:""+Array(V+1-N.length).join(R)+F},T={s:O,z:function(F){var V=-F.utcOffset(),R=Math.abs(V),N=Math.floor(R/60),A=R%60;return(V<=0?"+":"-")+O(N,2,"0")+":"+O(A,2,"0")},m:function F(V,R){if(V.date()<R.date())return-F(R,V);var N=12*(R.year()-V.year())+(R.month()-V.month()),A=V.clone().add(N,p),q=R-A<0,_=V.clone().add(N+(q?-1:1),p);return+(-(N+(R-A)/(q?A-_:_-A))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:p,y:x,w:g,d:m,D:C,h:v,m:d,s:u,ms:s,Q:b}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},M="en",D={};D[M]=$;var I="$isDayjsObject",z=function(F){return F instanceof G||!(!F||!F[I])},P=function F(V,R,N){var A;if(!V)return M;if(typeof V=="string"){var q=V.toLowerCase();D[q]&&(A=q),R&&(D[q]=R,A=q);var _=V.split("-");if(!A&&_.length>1)return F(_[0])}else{var L=V.name;D[L]=V,A=L}return!N&&A&&(M=A),A||!N&&M},j=function(F,V){if(z(F))return F.clone();var R=typeof V=="object"?V:{};return R.date=F,R.args=arguments,new G(R)},H=T;H.l=P,H.i=z,H.w=function(F,V){return j(F,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var G=function(){function F(R){this.$L=P(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[I]=!0}var V=F.prototype;return V.parse=function(R){this.$d=function(N){var A=N.date,q=N.utc;if(A===null)return new Date(NaN);if(H.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var _=A.match(y);if(_){var L=_[2]-1||0,W=(_[7]||"0").substring(0,3);return q?new Date(Date.UTC(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,W)):new Date(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,W)}}return new Date(A)}(R),this.init()},V.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},V.$utils=function(){return H},V.isValid=function(){return this.$d.toString()!==E},V.isSame=function(R,N){var A=j(R);return this.startOf(N)<=A&&A<=this.endOf(N)},V.isAfter=function(R,N){return j(R)<this.startOf(N)},V.isBefore=function(R,N){return this.endOf(N)<j(R)},V.$g=function(R,N,A){return H.u(R)?this[N]:this.set(A,R)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(R,N){var A=this,q=!!H.u(N)||N,_=H.p(R),L=function(re,le){var oe=H.w(A.$u?Date.UTC(A.$y,le,re):new Date(A.$y,le,re),A);return q?oe:oe.endOf(m)},W=function(re,le){return H.w(A.toDate()[re].apply(A.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(le)),A)},Y=this.$W,U=this.$M,X=this.$D,Z="set"+(this.$u?"UTC":"");switch(_){case x:return q?L(1,0):L(31,11);case p:return q?L(1,U):L(0,U+1);case g:var te=this.$locale().weekStart||0,ne=(Y<te?Y+7:Y)-te;return L(q?X-ne:X+(6-ne),U);case m:case C:return W(Z+"Hours",0);case v:return W(Z+"Minutes",1);case d:return W(Z+"Seconds",2);case u:return W(Z+"Milliseconds",3);default:return this.clone()}},V.endOf=function(R){return this.startOf(R,!1)},V.$set=function(R,N){var A,q=H.p(R),_="set"+(this.$u?"UTC":""),L=(A={},A[m]=_+"Date",A[C]=_+"Date",A[p]=_+"Month",A[x]=_+"FullYear",A[v]=_+"Hours",A[d]=_+"Minutes",A[u]=_+"Seconds",A[s]=_+"Milliseconds",A)[q],W=q===m?this.$D+(N-this.$W):N;if(q===p||q===x){var Y=this.clone().set(C,1);Y.$d[L](W),Y.init(),this.$d=Y.set(C,Math.min(this.$D,Y.daysInMonth())).$d}else L&&this.$d[L](W);return this.init(),this},V.set=function(R,N){return this.clone().$set(R,N)},V.get=function(R){return this[H.p(R)]()},V.add=function(R,N){var A,q=this;R=Number(R);var _=H.p(N),L=function(U){var X=j(q);return H.w(X.date(X.date()+Math.round(U*R)),q)};if(_===p)return this.set(p,this.$M+R);if(_===x)return this.set(x,this.$y+R);if(_===m)return L(1);if(_===g)return L(7);var W=(A={},A[d]=r,A[v]=o,A[u]=n,A)[_]||1,Y=this.$d.getTime()+R*W;return H.w(Y,this)},V.subtract=function(R,N){return this.add(-1*R,N)},V.format=function(R){var N=this,A=this.$locale();if(!this.isValid())return A.invalidDate||E;var q=R||"YYYY-MM-DDTHH:mm:ssZ",_=H.z(this),L=this.$H,W=this.$m,Y=this.$M,U=A.weekdays,X=A.months,Z=A.meridiem,te=function(le,oe,ie,ce){return le&&(le[oe]||le(N,q))||ie[oe].slice(0,ce)},ne=function(le){return H.s(L%12||12,le,"0")},re=Z||function(le,oe,ie){var ce=le<12?"AM":"PM";return ie?ce.toLowerCase():ce};return q.replace(w,function(le,oe){return oe||function(ie){switch(ie){case"YY":return String(N.$y).slice(-2);case"YYYY":return H.s(N.$y,4,"0");case"M":return Y+1;case"MM":return H.s(Y+1,2,"0");case"MMM":return te(A.monthsShort,Y,X,3);case"MMMM":return te(X,Y);case"D":return N.$D;case"DD":return H.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return te(A.weekdaysMin,N.$W,U,2);case"ddd":return te(A.weekdaysShort,N.$W,U,3);case"dddd":return U[N.$W];case"H":return String(L);case"HH":return H.s(L,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return re(L,W,!0);case"A":return re(L,W,!1);case"m":return String(W);case"mm":return H.s(W,2,"0");case"s":return String(N.$s);case"ss":return H.s(N.$s,2,"0");case"SSS":return H.s(N.$ms,3,"0");case"Z":return _}return null}(le)||_.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(R,N,A){var q,_=this,L=H.p(N),W=j(R),Y=(W.utcOffset()-this.utcOffset())*r,U=this-W,X=function(){return H.m(_,W)};switch(L){case x:q=X()/12;break;case p:q=X();break;case b:q=X()/3;break;case g:q=(U-Y)/6048e5;break;case m:q=(U-Y)/864e5;break;case v:q=U/o;break;case d:q=U/r;break;case u:q=U/n;break;default:q=U}return A?q:H.a(q)},V.daysInMonth=function(){return this.endOf(p).$D},V.$locale=function(){return D[this.$L]},V.locale=function(R,N){if(!R)return this.$L;var A=this.clone(),q=P(R,N,!0);return q&&(A.$L=q),A},V.clone=function(){return H.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},F}(),k=G.prototype;return j.prototype=k,[["$ms",s],["$s",u],["$m",d],["$H",v],["$W",m],["$M",p],["$y",x],["$D",C]].forEach(function(F){k[F[1]]=function(V){return this.$g(V,F[0],F[1])}}),j.extend=function(F,V){return F.$i||(F(V,G,j),F.$i=!0),j},j.locale=P,j.isDayjs=z,j.unix=function(F){return j(1e3*F)},j.en=D[M],j.Ls=D,j.p={},j})}(Df)),Df.exports}var qj=Uj();const Dr=Oa(qj);var If={exports:{}},Wj=If.exports,N1;function Gj(){return N1||(N1=1,function(e,t){(function(n,r){e.exports=r()})(Wj,function(){return function(n,r){r.prototype.weekday=function(o){var s=this.$locale().weekStart||0,u=this.$W,d=(u<s?u+7:u)-s;return this.$utils().u(o)?d:this.subtract(d,"day").add(o,"day")}}})}(If)),If.exports}var Yj=Gj();const Kj=Oa(Yj);var Pf={exports:{}},Xj=Pf.exports,D1;function Qj(){return D1||(D1=1,function(e,t){(function(n,r){e.exports=r()})(Xj,function(){return function(n,r,o){var s=r.prototype,u=function(p){return p&&(p.indexOf?p:p.s)},d=function(p,b,x,C,E){var y=p.name?p:p.$locale(),w=u(y[b]),$=u(y[x]),O=w||$.map(function(M){return M.slice(0,C)});if(!E)return O;var T=y.weekStart;return O.map(function(M,D){return O[(D+(T||0))%7]})},v=function(){return o.Ls[o.locale()]},m=function(p,b){return p.formats[b]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,y){return E||y.slice(1)})}(p.formats[b.toUpperCase()])},g=function(){var p=this;return{months:function(b){return b?b.format("MMMM"):d(p,"months")},monthsShort:function(b){return b?b.format("MMM"):d(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):d(p,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):d(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):d(p,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return m(p.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},o.localeData=function(){var p=v();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(b){return m(p,b)},meridiem:p.meridiem,ordinal:p.ordinal}},o.months=function(){return d(v(),"months")},o.monthsShort=function(){return d(v(),"monthsShort","months",3)},o.weekdays=function(p){return d(v(),"weekdays",null,null,p)},o.weekdaysShort=function(p){return d(v(),"weekdaysShort","weekdays",3,p)},o.weekdaysMin=function(p){return d(v(),"weekdaysMin","weekdays",2,p)}}})}(Pf)),Pf.exports}var Zj=Qj();const Jj=Oa(Zj);var Af={exports:{}},eH=Af.exports,I1;function tH(){return I1||(I1=1,function(e,t){(function(n,r){e.exports=r()})(eH,function(){var n="week",r="year";return function(o,s,u){var d=s.prototype;d.week=function(v){if(v===void 0&&(v=null),v!==null)return this.add(7*(v-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=u(this).startOf(r).add(1,r).date(m),p=u(this).endOf(n);if(g.isBefore(p))return 1}var b=u(this).startOf(r).date(m).startOf(n).subtract(1,"millisecond"),x=this.diff(b,n,!0);return x<0?u(this).startOf("week").week():Math.ceil(x)},d.weeks=function(v){return v===void 0&&(v=null),this.week(v)}}})}(Af)),Af.exports}var nH=tH();const rH=Oa(nH);var zf={exports:{}},aH=zf.exports,P1;function oH(){return P1||(P1=1,function(e,t){(function(n,r){e.exports=r()})(aH,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),s=this.week(),u=this.year();return s===1&&o===11?u+1:o===0&&s>=52?u-1:u}}})}(zf)),zf.exports}var iH=oH();const lH=Oa(iH);var jf={exports:{}},sH=jf.exports,A1;function cH(){return A1||(A1=1,function(e,t){(function(n,r){e.exports=r()})(sH,function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(u){var d=this,v=this.$locale();if(!this.isValid())return s.bind(this)(u);var m=this.$utils(),g=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return v.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return v.ordinal(d.week(),"W");case"w":case"ww":return m.s(d.week(),p==="w"?1:2,"0");case"W":case"WW":return m.s(d.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return m.s(String(d.$H===0?24:d.$H),p==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return p}});return s.bind(this)(g)}}})}(jf)),jf.exports}var uH=cH();const fH=Oa(uH);var Hf={exports:{}},dH=Hf.exports,z1;function vH(){return z1||(z1=1,function(e,t){(function(n,r){e.exports=r()})(dH,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,u=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,v={},m=function(y){return(y=+y)+(y>68?1900:2e3)},g=function(y){return function(w){this[y]=+w}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var $=w.match(/([+-]|\d\d)/g),O=60*$[1]+(+$[2]||0);return O===0?0:$[0]==="+"?-O:O}(y)}],b=function(y){var w=v[y];return w&&(w.indexOf?w:w.s.concat(w.f))},x=function(y,w){var $,O=v.meridiem;if(O){for(var T=1;T<=24;T+=1)if(y.indexOf(O(T,0,w))>-1){$=T>12;break}}else $=y===(w?"pm":"PM");return $},C={A:[d,function(y){this.afternoon=x(y,!1)}],a:[d,function(y){this.afternoon=x(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[u,g("seconds")],ss:[u,g("seconds")],m:[u,g("minutes")],mm:[u,g("minutes")],H:[u,g("hours")],h:[u,g("hours")],HH:[u,g("hours")],hh:[u,g("hours")],D:[u,g("day")],DD:[s,g("day")],Do:[d,function(y){var w=v.ordinal,$=y.match(/\d+/);if(this.day=$[0],w)for(var O=1;O<=31;O+=1)w(O).replace(/\[|\]/g,"")===y&&(this.day=O)}],w:[u,g("week")],ww:[s,g("week")],M:[u,g("month")],MM:[s,g("month")],MMM:[d,function(y){var w=b("months"),$=(b("monthsShort")||w.map(function(O){return O.slice(0,3)})).indexOf(y)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[d,function(y){var w=b("months").indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(y){this.year=m(y)}],YYYY:[/\d{4}/,g("year")],Z:p,ZZ:p};function E(y){var w,$;w=y,$=v&&v.formats;for(var O=(y=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,H,G){var k=G&&G.toUpperCase();return H||$[G]||n[G]||$[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,V,R){return V||R.slice(1)})})).match(r),T=O.length,M=0;M<T;M+=1){var D=O[M],I=C[D],z=I&&I[0],P=I&&I[1];O[M]=P?{regex:z,parser:P}:D.replace(/^\[|\]$/g,"")}return function(j){for(var H={},G=0,k=0;G<T;G+=1){var F=O[G];if(typeof F=="string")k+=F.length;else{var V=F.regex,R=F.parser,N=j.slice(k),A=V.exec(N)[0];R.call(H,A),j=j.replace(A,"")}}return function(q){var _=q.afternoon;if(_!==void 0){var L=q.hours;_?L<12&&(q.hours+=12):L===12&&(q.hours=0),delete q.afternoon}}(H),H}}return function(y,w,$){$.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(m=y.parseTwoDigitYear);var O=w.prototype,T=O.parse;O.parse=function(M){var D=M.date,I=M.utc,z=M.args;this.$u=I;var P=z[1];if(typeof P=="string"){var j=z[2]===!0,H=z[3]===!0,G=j||H,k=z[2];H&&(k=z[2]),v=this.$locale(),!j&&k&&(v=$.Ls[k]),this.$d=function(N,A,q,_){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*N);var L=E(A)(N),W=L.year,Y=L.month,U=L.day,X=L.hours,Z=L.minutes,te=L.seconds,ne=L.milliseconds,re=L.zone,le=L.week,oe=new Date,ie=U||(W||Y?1:oe.getDate()),ce=W||oe.getFullYear(),de=0;W&&!Y||(de=Y>0?Y-1:oe.getMonth());var ue,fe=X||0,xe=Z||0,pe=te||0,Ne=ne||0;return re?new Date(Date.UTC(ce,de,ie,fe,xe,pe,Ne+60*re.offset*1e3)):q?new Date(Date.UTC(ce,de,ie,fe,xe,pe,Ne)):(ue=new Date(ce,de,ie,fe,xe,pe,Ne),le&&(ue=_(ue).week(le).toDate()),ue)}catch{return new Date("")}}(D,P,I,$),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),G&&D!=this.format(P)&&(this.$d=new Date("")),v={}}else if(P instanceof Array)for(var F=P.length,V=1;V<=F;V+=1){z[1]=P[V-1];var R=$.apply(this,z);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}V===F&&(this.$d=new Date(""))}else T.call(this,M)}}})}(Hf)),Hf.exports}var mH=vH();const gH=Oa(mH);Dr.extend(gH);Dr.extend(fH);Dr.extend(Kj);Dr.extend(Jj);Dr.extend(rH);Dr.extend(lH);Dr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var u=(s||"").replace("Wo","wo");return r.bind(this)(u)}});var hH={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},mi=function(t){var n=hH[t];return n||t.split("_")[0]},pH={getNow:function(){var t=Dr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Dr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Dr().locale(mi(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(mi(t)).weekday(0)},getWeek:function(t,n){return n.locale(mi(t)).week()},getShortWeekDays:function(t){return Dr().locale(mi(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Dr().locale(mi(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(mi(t)).format(r)},parse:function(t,n,r){for(var o=mi(t),s=0;s<r.length;s+=1){var u=r[s],d=n;if(u.includes("wo")||u.includes("Wo")){for(var v=d.split("-")[0],m=d.split("-")[1],g=Dr(v,"YYYY").startOf("year").locale(o),p=0;p<=52;p+=1){var b=g.add(p,"week");if(b.format("Wo")===m)return b}return null}var x=Dr(d,u,!0).locale(o);if(x.isValid())return x}return null}}};function bH(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Ma=c.createContext(null),yH={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function x$(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,s=e.transitionName,u=e.getPopupContainer,d=e.children,v=e.range,m=e.placement,g=e.builtinPlacements,p=g===void 0?yH:g,b=e.direction,x=e.visible,C=e.onClose,E=c.useContext(Ma),y=E.prefixCls,w="".concat(y,"-dropdown"),$=bH(m,b==="rtl");return c.createElement(Bc,{showAction:[],hideAction:["click"],popupPlacement:$,builtinPlacements:p,prefixCls:w,popupTransitionName:s,popup:t,popupAlign:o,popupVisible:x,popupClassName:me(r,Q(Q({},"".concat(w,"-range"),v),"".concat(w,"-rtl"),b==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:u,onPopupVisibleChange:function(T){T||C()}},d)}function jp(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function Ai(e){return e==null?[]:Array.isArray(e)?e:[e]}function oc(e,t,n){var r=je(e);return r[t]=n,r}function Td(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function w$(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function E$(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(s){return e[s]});return r!==o?e[o]:void 0}function $$(e){return Td(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Hp(e,t,n,r){var o=c.useMemo(function(){return e||function(u,d){var v=u;return t&&d.type==="date"?t(v,d.today):n&&d.type==="month"?n(v,d.locale):d.originNode}},[e,n,t]),s=c.useCallback(function(u,d){return o(u,J(J({},d),{},{range:r}))},[o,r]);return s}function O$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),o=ee(r,2),s=o[0],u=o[1],d=function(g,p){u(function(b){return oc(b,p,g)})},v=c.useMemo(function(){return s.map(function(m,g){if(m)return!0;var p=e[g];return p?!!(!n[g]&&!p||p&&t(p,{activeIndex:g})):!1})},[e,s,t,n]);return[v,d]}function R$(e,t,n,r,o){var s="",u=[];return e&&u.push(o?"hh":"HH"),t&&u.push("mm"),n&&u.push("ss"),s=u.join(":"),r&&(s+=".SSS"),o&&(s+=" A"),s}function SH(e,t,n,r,o,s){var u=e.fieldDateTimeFormat,d=e.fieldDateFormat,v=e.fieldTimeFormat,m=e.fieldMonthFormat,g=e.fieldYearFormat,p=e.fieldWeekFormat,b=e.fieldQuarterFormat,x=e.yearFormat,C=e.cellYearFormat,E=e.cellQuarterFormat,y=e.dayFormat,w=e.cellDateFormat,$=R$(t,n,r,o,s);return J(J({},e),{},{fieldDateTimeFormat:u||"YYYY-MM-DD ".concat($),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:v||$,fieldMonthFormat:m||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:p||"gggg-wo",fieldQuarterFormat:b||"YYYY-[Q]Q",yearFormat:x||"YYYY",cellYearFormat:C||"YYYY",cellQuarterFormat:E||"[Q]Q",cellDateFormat:w||y||"D"})}function M$(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,s=t.showMillisecond,u=t.use12Hours;return Ie.useMemo(function(){return SH(e,n,r,o,s,u)},[e,n,r,o,s,u])}function Gs(e,t,n){return n??t.some(function(r){return e.includes(r)})}var CH=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function xH(e){var t=Td(e,CH),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=vt(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function wH(e){return e&&typeof e=="string"}function T$(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function _$(e,t,n,r,o){var s=t,u=n,d=r;if(!e&&!s&&!u&&!d&&!o)s=!0,u=!0,d=!0;else if(e){var v,m,g,p=[s,u,d].some(function(C){return C===!1}),b=[s,u,d].some(function(C){return C===!0}),x=p?!0:!b;s=(v=s)!==null&&v!==void 0?v:x,u=(m=u)!==null&&m!==void 0?m:x,d=(g=d)!==null&&g!==void 0?g:x}return[s,u,d,o]}function N$(e){var t=e.showTime,n=xH(e),r=ee(n,2),o=r[0],s=r[1],u=t&&vt(t)==="object"?t:{},d=J(J({defaultOpenValue:u.defaultOpenValue||u.defaultValue},o),u),v=d.showMillisecond,m=d.showHour,g=d.showMinute,p=d.showSecond,b=T$(m,g,p,v),x=_$(b,m,g,p,v),C=ee(x,3);return m=C[0],g=C[1],p=C[2],[d,J(J({},d),{},{showHour:m,showMinute:g,showSecond:p,showMillisecond:v}),d.format,s]}function D$(e,t,n,r,o){var s=e==="time";if(e==="datetime"||s){for(var u=r,d=w$(e,o,null),v=d,m=[t,n],g=0;g<m.length;g+=1){var p=Ai(m[g])[0];if(wH(p)){v=p;break}}var b=u.showHour,x=u.showMinute,C=u.showSecond,E=u.showMillisecond,y=u.use12Hours,w=Gs(v,["a","A","LT","LLL","LTS"],y),$=T$(b,x,C,E);$||(b=Gs(v,["H","h","k","LT","LLL"]),x=Gs(v,["m","LT","LLL"]),C=Gs(v,["s","LTS"]),E=Gs(v,["SSS"]));var O=_$($,b,x,C,E),T=ee(O,3);b=T[0],x=T[1],C=T[2];var M=t||R$(b,x,C,E,w);return J(J({},u),{},{format:M,showHour:b,showMinute:x,showSecond:C,showMillisecond:E,use12Hours:w})}return null}function EH(e,t,n){if(t===!1)return null;var r=t&&vt(t)==="object"?t:{};return r.clearIcon||n||c.createElement("span",{className:"".concat(e,"-clear-btn")})}var yg=7;function Yo(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function kh(e,t,n){return Yo(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function Oi(e,t,n){return Yo(t,n,function(){return e.getYear(t)===e.getYear(n)})}function j1(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function $H(e,t,n){return Yo(t,n,function(){return Oi(e,t,n)&&j1(e,t)===j1(e,n)})}function Lp(e,t,n){return Yo(t,n,function(){return Oi(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Bp(e,t,n){return Yo(t,n,function(){return Oi(e,t,n)&&Lp(e,t,n)&&e.getDate(t)===e.getDate(n)})}function I$(e,t,n){return Yo(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function P$(e,t,n){return Yo(t,n,function(){return Bp(e,t,n)&&I$(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Zs(e,t,n,r){return Yo(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return Oi(e,o,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Rr(e,t,n,r,o){switch(o){case"date":return Bp(e,n,r);case"week":return Zs(e,t.locale,n,r);case"month":return Lp(e,n,r);case"quarter":return $H(e,n,r);case"year":return Oi(e,n,r);case"decade":return kh(e,n,r);case"time":return I$(e,n,r);default:return P$(e,n,r)}}function _d(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function sf(e,t,n,r,o){return Rr(e,t,n,r,o)?!0:e.isAfter(n,r)}function OH(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),s=t.getWeekDay(o),u=t.addDate(o,r-s);return t.getMonth(u)===t.getMonth(n)&&t.getDate(u)>1&&(u=t.addDate(u,-7)),u}function sr(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function ed(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(u,d){n?r=e[u](r,e[o[d]](n)):r=e[u](r,0)}),r}function RH(e,t,n,r,o){var s=tn(function(u,d){return!!(n&&n(u,d)||r&&e.isAfter(r,u)&&!Rr(e,t,r,u,d.type)||o&&e.isAfter(u,o)&&!Rr(e,t,o,u,d.type))});return s}function MH(e,t,n){return c.useMemo(function(){var r=w$(e,t,n),o=Ai(r),s=o[0],u=vt(s)==="object"&&s.type==="mask"?s.format:null;return[o.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),u]},[e,t,n])}function TH(e,t,n){return typeof e[0]=="function"||n?!0:t}function _H(e,t,n,r){var o=tn(function(s,u){var d=J({type:t},u);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var v,m=u&&u.activeIndex===1?"end":"start",g=((v=r.disabledTime)===null||v===void 0?void 0:v.call(r,s,m,{from:d.from}))||{},p=g.disabledHours,b=g.disabledMinutes,x=g.disabledSeconds,C=g.disabledMilliseconds,E=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=p||E,O=b||y,T=x||w,M=e.getHour(s),D=e.getMinute(s),I=e.getSecond(s),z=e.getMillisecond(s);if($&&$().includes(M)||O&&O(M).includes(D)||T&&T(M,D).includes(I)||C&&C(M,D,I).includes(z))return!0}return!1});return o}function cf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&Ai(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function A$(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,s=o===void 0?"date":o,u=e.prefixCls,d=u===void 0?"rc-picker":u,v=e.styles,m=v===void 0?{}:v,g=e.classNames,p=g===void 0?{}:g,b=e.order,x=b===void 0?!0:b,C=e.components,E=C===void 0?{}:C,y=e.inputRender,w=e.allowClear,$=e.clearIcon,O=e.needConfirm,T=e.multiple,M=e.format,D=e.inputReadOnly,I=e.disabledDate,z=e.minDate,P=e.maxDate,j=e.showTime,H=e.value,G=e.defaultValue,k=e.pickerValue,F=e.defaultPickerValue,V=cf(H),R=cf(G),N=cf(k),A=cf(F),q=s==="date"&&j?"datetime":s,_=q==="time"||q==="datetime",L=_||T,W=O??_,Y=N$(e),U=ee(Y,4),X=U[0],Z=U[1],te=U[2],ne=U[3],re=M$(r,Z),le=c.useMemo(function(){return D$(q,te,ne,X,re)},[q,te,ne,X,re]),oe=c.useMemo(function(){return J(J({},e),{},{prefixCls:d,locale:re,picker:s,styles:m,classNames:p,order:x,components:J({input:y},E),clearIcon:EH(d,w,$),showTime:le,value:V,defaultValue:R,pickerValue:N,defaultPickerValue:A},t==null?void 0:t())},[e]),ie=MH(q,re,M),ce=ee(ie,2),de=ce[0],ue=ce[1],fe=TH(de,D,T),xe=RH(n,r,I,z,P),pe=_H(n,s,xe,le),Ne=c.useMemo(function(){return J(J({},oe),{},{needConfirm:W,inputReadOnly:fe,disabledDate:xe})},[oe,W,fe,xe]);return[Ne,q,L,de,ue,pe]}function NH(e,t,n){var r=An(t,{value:e}),o=ee(r,2),s=o[0],u=o[1],d=Ie.useRef(e),v=Ie.useRef(),m=function(){kt.cancel(v.current)},g=tn(function(){u(d.current),n&&s!==d.current&&n(d.current)}),p=tn(function(b,x){m(),d.current=b,b||x?g():v.current=kt(g)});return Ie.useEffect(function(){return m},[]),[s,p]}function z$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(g){return g})?!1:e,s=NH(o,t||!1,r),u=ee(s,2),d=u[0],v=u[1];function m(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!p.inherit||d)&&v(g,p.force)}return[d,m]}function j$(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var s;(s=t.current)===null||s===void 0||s.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function H$(e,t){return c.useMemo(function(){return e||(t?(Sr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ee(n,2),o=r[0],s=r[1];return{label:o,value:s}})):[])},[e,t])}function Fp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,Uf(function(){if(e)r.current(e);else{var o=kt(function(){r.current(e)},n);return function(){kt.cancel(o)}}},[e])}function L$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=c.useState(0),o=ee(r,2),s=o[0],u=o[1],d=c.useState(!1),v=ee(d,2),m=v[0],g=v[1],p=c.useRef([]),b=c.useRef(null),x=c.useRef(null),C=function(T){b.current=T},E=function(T){return b.current===T},y=function(T){g(T)},w=function(T){return T&&(x.current=T),x.current},$=function(T){var M=p.current,D=new Set(M.filter(function(z){return T[z]||t[z]})),I=M[M.length-1]===0?1:0;return D.size>=2||e[I]?null:I};return Fp(m||n,function(){m||(p.current=[],C(null))}),c.useEffect(function(){m&&p.current.push(s)},[m,s]),[m,y,w,s,u,$,p.current,C,E]}function DH(e,t,n,r,o,s){var u=n[n.length-1],d=function(m,g){var p=ee(e,2),b=p[0],x=p[1],C=J(J({},g),{},{from:E$(e,n)});return u===1&&t[0]&&b&&!Rr(r,o,b,m,C.type)&&r.isAfter(b,m)||u===0&&t[1]&&x&&!Rr(r,o,x,m,C.type)&&r.isAfter(m,x)?!0:s==null?void 0:s(m,C)};return d}function Js(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Sg=[];function B$(e,t,n,r,o,s,u,d){var v=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Sg,m=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Sg,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Sg,p=arguments.length>11?arguments[11]:void 0,b=arguments.length>12?arguments[12]:void 0,x=arguments.length>13?arguments[13]:void 0,C=u==="time",E=s||0,y=function(N){var A=e.getNow();return C&&(A=ed(e,A)),v[N]||n[N]||A},w=ee(m,2),$=w[0],O=w[1],T=An(function(){return y(0)},{value:$}),M=ee(T,2),D=M[0],I=M[1],z=An(function(){return y(1)},{value:O}),P=ee(z,2),j=P[0],H=P[1],G=c.useMemo(function(){var R=[D,j][E];return C?R:ed(e,R,g[E])},[C,D,j,E,e,g]),k=function(N){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",q=[I,H][E];q(N);var _=[D,j];_[E]=N,p&&(!Rr(e,t,D,_[0],u)||!Rr(e,t,j,_[1],u))&&p(_,{source:A,range:E===1?"end":"start",mode:r})},F=function(N,A){if(d){var q={date:"month",week:"month",month:"year",quarter:"year"},_=q[u];if(_&&!Rr(e,t,N,A,_))return Js(e,u,A,-1);if(u==="year"&&N){var L=Math.floor(e.getYear(N)/10),W=Math.floor(e.getYear(A)/10);if(L!==W)return Js(e,u,A,-1)}}return A},V=c.useRef(null);return qt(function(){if(o&&!v[E]){var R=C?null:e.getNow();if(V.current!==null&&V.current!==E?R=[D,j][E^1]:n[E]?R=E===0?n[0]:F(n[0],n[1]):n[E^1]&&(R=n[E^1]),R){b&&e.isAfter(b,R)&&(R=b);var N=d?Js(e,u,R,1):R;x&&e.isAfter(N,x)&&(R=d?Js(e,u,x,-1):x),k(R,"reset")}}},[o,E,n[E]]),c.useEffect(function(){o?V.current=E:V.current=null},[o,E]),qt(function(){o&&v&&v[E]&&k(v[E],"reset")},[o,E]),[G,k]}function F$(e,t){var n=c.useRef(e),r=c.useState({}),o=ee(r,2),s=o[1],u=function(m){return m&&t!==void 0?t:n.current},d=function(m){n.current=m,s({})};return[u,d,u(!0)]}var IH=[];function V$(e,t,n){var r=function(u){return u.map(function(d){return sr(d,{generateConfig:e,locale:t,format:n[0]})})},o=function(u,d){for(var v=Math.max(u.length,d.length),m=-1,g=0;g<v;g+=1){var p=u[g]||null,b=d[g]||null;if(p!==b&&!P$(e,p,b)){m=g;break}}return[m<0,m!==0]};return[r,o]}function k$(e,t){return je(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function PH(e){var t=F$(e),n=ee(t,2),r=n[0],o=n[1],s=tn(function(){o(e)});return c.useEffect(function(){s()},[e]),[r,o]}function U$(e,t,n,r,o,s,u,d,v){var m=An(s,{value:u}),g=ee(m,2),p=g[0],b=g[1],x=p||IH,C=PH(x),E=ee(C,2),y=E[0],w=E[1],$=V$(e,t,n),O=ee($,2),T=O[0],M=O[1],D=tn(function(z){var P=je(z);if(r)for(var j=0;j<2;j+=1)P[j]=P[j]||null;else o&&(P=k$(P.filter(function(R){return R}),e));var H=M(y(),P),G=ee(H,2),k=G[0],F=G[1];if(!k&&(w(P),d)){var V=T(P);d(P,V,{range:F?"end":"start"})}}),I=function(){v&&v(y())};return[x,b,y,D,I]}function q$(e,t,n,r,o,s,u,d,v,m){var g=e.generateConfig,p=e.locale,b=e.picker,x=e.onChange,C=e.allowEmpty,E=e.order,y=s.some(function(k){return k})?!1:E,w=V$(g,p,u),$=ee(w,2),O=$[0],T=$[1],M=F$(t),D=ee(M,2),I=D[0],z=D[1],P=tn(function(){z(t)});c.useEffect(function(){P()},[t]);var j=tn(function(k){var F=k===null,V=je(k||I());if(F)for(var R=Math.max(s.length,V.length),N=0;N<R;N+=1)s[N]||(V[N]=null);y&&V[0]&&V[1]&&(V=k$(V,g)),o(V);var A=V,q=ee(A,2),_=q[0],L=q[1],W=!_,Y=!L,U=C?(!W||C[0])&&(!Y||C[1]):!0,X=!E||W||Y||Rr(g,p,_,L,b)||g.isAfter(L,_),Z=(s[0]||!_||!m(_,{activeIndex:0}))&&(s[1]||!L||!m(L,{from:_,activeIndex:1})),te=F||U&&X&&Z;if(te){n(V);var ne=T(V,t),re=ee(ne,1),le=re[0];x&&!le&&x(F&&V.every(function(oe){return!oe})?null:V,O(V))}return te}),H=tn(function(k,F){var V=oc(I(),k,r()[k]);z(V),F&&j()}),G=!d&&!v;return Fp(!G,function(){G&&(j(),o(t),P())},2),[H,j]}function W$(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function AH(e,t,n,r,o,s){var u=e;function d(p,b,x){var C=s[p](u),E=x.find(function(O){return O.value===C});if(!E||E.disabled){var y=x.filter(function(O){return!O.disabled}),w=je(y).reverse(),$=w.find(function(O){return O.value<=C})||y[0];$&&(C=$.value,u=s[b](u,C))}return C}var v=d("getHour","setHour",t()),m=d("getMinute","setMinute",n(v)),g=d("getSecond","setSecond",r(v,m));return d("getMillisecond","setMillisecond",o(v,m,g)),u}function uf(){return[]}function ff(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,u=[],d=n>=1?n|0:1,v=e;v<=t;v+=d){var m=o.includes(v);(!m||!r)&&u.push({label:jp(v,s),value:v,disabled:m})}return u}function Vp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,s=r.hourStep,u=s===void 0?1:s,d=r.minuteStep,v=d===void 0?1:d,m=r.secondStep,g=m===void 0?1:m,p=r.millisecondStep,b=p===void 0?100:p,x=r.hideDisabledOptions,C=r.disabledTime,E=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=c.useMemo(function(){return n||e.getNow()},[n,e]),O=c.useCallback(function(A){var q=(C==null?void 0:C(A))||{};return[q.disabledHours||E||uf,q.disabledMinutes||y||uf,q.disabledSeconds||w||uf,q.disabledMilliseconds||uf]},[C,E,y,w]),T=c.useMemo(function(){return O($)},[$,O]),M=ee(T,4),D=M[0],I=M[1],z=M[2],P=M[3],j=c.useCallback(function(A,q,_,L){var W=ff(0,23,u,x,A()),Y=o?W.map(function(te){return J(J({},te),{},{label:jp(te.value%12||12,2)})}):W,U=function(ne){return ff(0,59,v,x,q(ne))},X=function(ne,re){return ff(0,59,g,x,_(ne,re))},Z=function(ne,re,le){return ff(0,999,b,x,L(ne,re,le),3)};return[Y,U,X,Z]},[x,u,o,b,v,g]),H=c.useMemo(function(){return j(D,I,z,P)},[j,D,I,z,P]),G=ee(H,4),k=G[0],F=G[1],V=G[2],R=G[3],N=function(q,_){var L=function(){return k},W=F,Y=V,U=R;if(_){var X=O(_),Z=ee(X,4),te=Z[0],ne=Z[1],re=Z[2],le=Z[3],oe=j(te,ne,re,le),ie=ee(oe,4),ce=ie[0],de=ie[1],ue=ie[2],fe=ie[3];L=function(){return ce},W=de,Y=ue,U=fe}var xe=AH(q,L,W,Y,U,e);return xe};return[N,k,F,V,R]}function zH(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,s=e.showTime,u=e.onSubmit,d=e.onNow,v=e.invalid,m=e.needConfirm,g=e.generateConfig,p=e.disabledDate,b=c.useContext(Ma),x=b.prefixCls,C=b.locale,E=b.button,y=E===void 0?"button":E,w=g.getNow(),$=Vp(g,s,w),O=ee($,1),T=O[0],M=r==null?void 0:r(t),D=p(w,{type:t}),I=function(){if(!D){var F=T(w);d(F)}},z="".concat(x,"-now"),P="".concat(z,"-btn"),j=o&&c.createElement("li",{className:z},c.createElement("a",{className:me(P,D&&"".concat(P,"-disabled")),"aria-disabled":D,onClick:I},n==="date"?C.today:C.now)),H=m&&c.createElement("li",{className:"".concat(x,"-ok")},c.createElement(y,{disabled:v,onClick:u},C.ok)),G=(j||H)&&c.createElement("ul",{className:"".concat(x,"-ranges")},j,H);return!M&&!G?null:c.createElement("div",{className:"".concat(x,"-footer")},M&&c.createElement("div",{className:"".concat(x,"-footer-extra")},M),G)}function G$(e,t,n){function r(o,s){var u=o.findIndex(function(v){return Rr(e,t,v,s,n)});if(u===-1)return[].concat(je(o),[s]);var d=je(o);return d.splice(u,1),d}return r}var zi=c.createContext(null);function Nd(){return c.useContext(zi)}function kl(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,s=e.disabledDate,u=e.minDate,d=e.maxDate,v=e.cellRender,m=e.hoverValue,g=e.hoverRangeValue,p=e.onHover,b=e.values,x=e.pickerValue,C=e.onSelect,E=e.prevIcon,y=e.nextIcon,w=e.superPrevIcon,$=e.superNextIcon,O=r.getNow(),T={now:O,values:b,pickerValue:x,prefixCls:n,disabledDate:s,minDate:u,maxDate:d,cellRender:v,hoverValue:m,hoverRangeValue:g,onHover:p,locale:o,generateConfig:r,onSelect:C,panelType:t,prevIcon:E,nextIcon:y,superPrevIcon:w,superNextIcon:$};return[T,O]}var ko=c.createContext({});function Uc(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,s=e.prefixColumn,u=e.rowClassName,d=e.titleFormat,v=e.getCellText,m=e.getCellClassName,g=e.headerCells,p=e.cellSelection,b=p===void 0?!0:p,x=e.disabledDate,C=Nd(),E=C.prefixCls,y=C.panelType,w=C.now,$=C.disabledDate,O=C.cellRender,T=C.onHover,M=C.hoverValue,D=C.hoverRangeValue,I=C.generateConfig,z=C.values,P=C.locale,j=C.onSelect,H=x||$,G="".concat(E,"-cell"),k=c.useContext(ko),F=k.onCellDblClick,V=function(Y){return z.some(function(U){return U&&Rr(I,P,Y,U,y)})},R=[],N=0;N<t;N+=1){for(var A=[],q=void 0,_=function(){var Y=N*n+L,U=o(r,Y),X=H==null?void 0:H(U,{type:y});L===0&&(q=U,s&&A.push(s(q)));var Z=!1,te=!1,ne=!1;if(b&&D){var re=ee(D,2),le=re[0],oe=re[1];Z=_d(I,le,oe,U),te=Rr(I,P,U,le,y),ne=Rr(I,P,U,oe,y)}var ie=d?sr(U,{locale:P,format:d,generateConfig:I}):void 0,ce=c.createElement("div",{className:"".concat(G,"-inner")},v(U));A.push(c.createElement("td",{key:L,title:ie,className:me(G,J(Q(Q(Q(Q(Q(Q({},"".concat(G,"-disabled"),X),"".concat(G,"-hover"),(M||[]).some(function(de){return Rr(I,P,U,de,y)})),"".concat(G,"-in-range"),Z&&!te&&!ne),"".concat(G,"-range-start"),te),"".concat(G,"-range-end"),ne),"".concat(E,"-cell-selected"),!D&&y!=="week"&&V(U)),m(U))),onClick:function(){X||j(U)},onDoubleClick:function(){!X&&F&&F()},onMouseEnter:function(){X||T==null||T(U)},onMouseLeave:function(){X||T==null||T(null)}},O?O(U,{prefixCls:E,originNode:ce,today:w,type:y,locale:P}):ce))},L=0;L<n;L+=1)_();R.push(c.createElement("tr",{key:N,className:u==null?void 0:u(q)},A))}return c.createElement("div",{className:"".concat(E,"-body")},c.createElement("table",{className:"".concat(E,"-content")},g&&c.createElement("thead",null,c.createElement("tr",null,g)),c.createElement("tbody",null,R)))}var df={visibility:"hidden"};function Ul(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,s=e.getEnd,u=e.children,d=Nd(),v=d.prefixCls,m=d.prevIcon,g=m===void 0?"‹":m,p=d.nextIcon,b=p===void 0?"›":p,x=d.superPrevIcon,C=x===void 0?"«":x,E=d.superNextIcon,y=E===void 0?"»":E,w=d.minDate,$=d.maxDate,O=d.generateConfig,T=d.locale,M=d.pickerValue,D=d.panelType,I="".concat(v,"-header"),z=c.useContext(ko),P=z.hidePrev,j=z.hideNext,H=z.hideHeader,G=c.useMemo(function(){if(!w||!t||!s)return!1;var W=s(t(-1,M));return!sf(O,T,W,w,D)},[w,t,M,s,O,T,D]),k=c.useMemo(function(){if(!w||!n||!s)return!1;var W=s(n(-1,M));return!sf(O,T,W,w,D)},[w,n,M,s,O,T,D]),F=c.useMemo(function(){if(!$||!t||!o)return!1;var W=o(t(1,M));return!sf(O,T,$,W,D)},[$,t,M,o,O,T,D]),V=c.useMemo(function(){if(!$||!n||!o)return!1;var W=o(n(1,M));return!sf(O,T,$,W,D)},[$,n,M,o,O,T,D]),R=function(Y){t&&r(t(Y,M))},N=function(Y){n&&r(n(Y,M))};if(H)return null;var A="".concat(I,"-prev-btn"),q="".concat(I,"-next-btn"),_="".concat(I,"-super-prev-btn"),L="".concat(I,"-super-next-btn");return c.createElement("div",{className:I},n&&c.createElement("button",{type:"button","aria-label":T.previousYear,onClick:function(){return N(-1)},tabIndex:-1,className:me(_,k&&"".concat(_,"-disabled")),disabled:k,style:P?df:{}},C),t&&c.createElement("button",{type:"button","aria-label":T.previousMonth,onClick:function(){return R(-1)},tabIndex:-1,className:me(A,G&&"".concat(A,"-disabled")),disabled:G,style:P?df:{}},g),c.createElement("div",{className:"".concat(I,"-view")},u),t&&c.createElement("button",{type:"button","aria-label":T.nextMonth,onClick:function(){return R(1)},tabIndex:-1,className:me(q,F&&"".concat(q,"-disabled")),disabled:F,style:j?df:{}},b),n&&c.createElement("button",{type:"button","aria-label":T.nextYear,onClick:function(){return N(1)},tabIndex:-1,className:me(L,V&&"".concat(L,"-disabled")),disabled:V,style:j?df:{}},y))}function Dd(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,s=e.generateConfig,u=e.pickerValue,d=e.onPickerValueChange,v=e.onModeChange,m=e.mode,g=m===void 0?"date":m,p=e.disabledDate,b=e.onSelect,x=e.onHover,C=e.showWeek,E="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),w=g==="week",$=kl(e,g),O=ee($,2),T=O[0],M=O[1],D=s.locale.getWeekFirstDay(o.locale),I=s.setDate(u,1),z=OH(o.locale,s,I),P=s.getMonth(u),j=C===void 0?w:C,H=j?function(W){var Y=p==null?void 0:p(W,{type:"week"});return c.createElement("td",{key:"week",className:me(y,"".concat(y,"-week"),Q({},"".concat(y,"-disabled"),Y)),onClick:function(){Y||b(W)},onMouseEnter:function(){Y||x==null||x(W)},onMouseLeave:function(){Y||x==null||x(null)}},c.createElement("div",{className:"".concat(y,"-inner")},s.locale.getWeek(o.locale,W)))}:null,G=[],k=o.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(o.locale):[]);H&&G.push(c.createElement("th",{key:"empty"},c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var F=0;F<yg;F+=1)G.push(c.createElement("th",{key:F},k[(F+D)%yg]));var V=function(Y,U){return s.addDate(Y,U)},R=function(Y){return sr(Y,{locale:o,format:o.cellDateFormat,generateConfig:s})},N=function(Y){var U=Q(Q({},"".concat(t,"-cell-in-view"),Lp(s,Y,u)),"".concat(t,"-cell-today"),Bp(s,Y,M));return U},A=o.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(o.locale):[]),q=c.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){v("year",u)},tabIndex:-1,className:"".concat(t,"-year-btn")},sr(u,{locale:o,format:o.yearFormat,generateConfig:s})),_=c.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){v("month",u)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?sr(u,{locale:o,format:o.monthFormat,generateConfig:s}):A[P]),L=o.monthBeforeYear?[_,q]:[q,_];return c.createElement(zi.Provider,{value:T},c.createElement("div",{className:me(E,C&&"".concat(E,"-show-week"))},c.createElement(Ul,{offset:function(Y){return s.addMonth(u,Y)},superOffset:function(Y){return s.addYear(u,Y)},onChange:d,getStart:function(Y){return s.setDate(Y,1)},getEnd:function(Y){var U=s.setDate(Y,1);return U=s.addMonth(U,1),s.addDate(U,-1)}},L),c.createElement(Uc,Ae({titleFormat:o.fieldDateFormat},e,{colNum:yg,rowNum:6,baseDate:z,headerCells:G,getCellDate:V,getCellText:R,getCellClassName:N,prefixColumn:H,cellSelection:!w}))))}var jH=1/3;function HH(e,t){var n=c.useRef(!1),r=c.useRef(null),o=c.useRef(null),s=function(){return n.current},u=function(){kt.cancel(r.current),n.current=!1},d=c.useRef(),v=function(){var p=e.current;if(o.current=null,d.current=0,p){var b=p.querySelector('[data-value="'.concat(t,'"]')),x=p.querySelector("li"),C=function E(){u(),n.current=!0,d.current+=1;var y=p.scrollTop,w=x.offsetTop,$=b.offsetTop,O=$-w;if($===0&&b!==x||!zc(p)){d.current<=5&&(r.current=kt(E));return}var T=y+(O-y)*jH,M=Math.abs(O-T);if(o.current!==null&&o.current<M){u();return}if(o.current=M,M<=1){p.scrollTop=O,u();return}p.scrollTop=T,r.current=kt(E)};b&&x&&C()}},m=tn(v);return[m,u,s]}var LH=300;function BH(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function Ys(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,s=e.onChange,u=e.onHover,d=e.onDblClick,v=e.changeOnScroll,m=Nd(),g=m.prefixCls,p=m.cellRender,b=m.now,x=m.locale,C="".concat(g,"-time-panel"),E="".concat(g,"-time-panel-cell"),y=c.useRef(null),w=c.useRef(),$=function(){clearTimeout(w.current)},O=HH(y,n??r),T=ee(O,3),M=T[0],D=T[1],I=T[2];qt(function(){return M(),$(),function(){D(),$()}},[n,r,BH(t)]);var z=function(H){$();var G=H.target;!I()&&v&&(w.current=setTimeout(function(){var k=y.current,F=k.querySelector("li").offsetTop,V=Array.from(k.querySelectorAll("li")),R=V.map(function(L){return L.offsetTop-F}),N=R.map(function(L,W){return t[W].disabled?Number.MAX_SAFE_INTEGER:Math.abs(L-G.scrollTop)}),A=Math.min.apply(Math,je(N)),q=N.findIndex(function(L){return L===A}),_=t[q];_&&!_.disabled&&s(_.value)},LH))},P="".concat(C,"-column");return c.createElement("ul",{className:P,ref:y,"data-type":o,onScroll:z},t.map(function(j){var H=j.label,G=j.value,k=j.disabled,F=c.createElement("div",{className:"".concat(E,"-inner")},H);return c.createElement("li",{key:G,className:me(E,Q(Q({},"".concat(E,"-selected"),n===G),"".concat(E,"-disabled"),k)),onClick:function(){k||s(G)},onDoubleClick:function(){!k&&d&&d()},onMouseEnter:function(){u(G)},onMouseLeave:function(){u(null)},"data-value":G},p?p(G,{prefixCls:g,originNode:F,today:b,type:"time",subType:o,locale:x}):F)}))}function jo(e){return e<12}function FH(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,s=e.use12Hours,u=e.changeOnScroll,d=Nd(),v=d.prefixCls,m=d.values,g=d.generateConfig,p=d.locale,b=d.onSelect,x=d.onHover,C=x===void 0?function(){}:x,E=d.pickerValue,y=(m==null?void 0:m[0])||null,w=c.useContext(ko),$=w.onCellDblClick,O=Vp(g,e,y),T=ee(O,5),M=T[0],D=T[1],I=T[2],z=T[3],P=T[4],j=function(Be){var mt=y&&g[Be](y),Ot=E&&g[Be](E);return[mt,Ot]},H=j("getHour"),G=ee(H,2),k=G[0],F=G[1],V=j("getMinute"),R=ee(V,2),N=R[0],A=R[1],q=j("getSecond"),_=ee(q,2),L=_[0],W=_[1],Y=j("getMillisecond"),U=ee(Y,2),X=U[0],Z=U[1],te=k===null?null:jo(k)?"am":"pm",ne=c.useMemo(function(){return s?jo(k)?D.filter(function(Se){return jo(Se.value)}):D.filter(function(Se){return!jo(Se.value)}):D},[k,D,s]),re=function(Be,mt){var Ot,Dt=Be.filter(function(Kt){return!Kt.disabled});return mt??(Dt==null||(Ot=Dt[0])===null||Ot===void 0?void 0:Ot.value)},le=re(D,k),oe=c.useMemo(function(){return I(le)},[I,le]),ie=re(oe,N),ce=c.useMemo(function(){return z(le,ie)},[z,le,ie]),de=re(ce,L),ue=c.useMemo(function(){return P(le,ie,de)},[P,le,ie,de]),fe=re(ue,X),xe=c.useMemo(function(){if(!s)return[];var Se=g.getNow(),Be=g.setHour(Se,6),mt=g.setHour(Se,18),Ot=function(Kt,zt){var Tt=p.cellMeridiemFormat;return Tt?sr(Kt,{generateConfig:g,locale:p,format:Tt}):zt};return[{label:Ot(Be,"AM"),value:"am",disabled:D.every(function(Dt){return Dt.disabled||!jo(Dt.value)})},{label:Ot(mt,"PM"),value:"pm",disabled:D.every(function(Dt){return Dt.disabled||jo(Dt.value)})}]},[D,s,g,p]),pe=function(Be){var mt=M(Be);b(mt)},Ne=c.useMemo(function(){var Se=y||E||g.getNow(),Be=function(Ot){return Ot!=null};return Be(k)?(Se=g.setHour(Se,k),Se=g.setMinute(Se,N),Se=g.setSecond(Se,L),Se=g.setMillisecond(Se,X)):Be(F)?(Se=g.setHour(Se,F),Se=g.setMinute(Se,A),Se=g.setSecond(Se,W),Se=g.setMillisecond(Se,Z)):Be(le)&&(Se=g.setHour(Se,le),Se=g.setMinute(Se,ie),Se=g.setSecond(Se,de),Se=g.setMillisecond(Se,fe)),Se},[y,E,k,N,L,X,le,ie,de,fe,F,A,W,Z,g]),De=function(Be,mt){return Be===null?null:g[mt](Ne,Be)},Re=function(Be){return De(Be,"setHour")},Le=function(Be){return De(Be,"setMinute")},Ee=function(Be){return De(Be,"setSecond")},Me=function(Be){return De(Be,"setMillisecond")},Fe=function(Be){return Be===null?null:Be==="am"&&!jo(k)?g.setHour(Ne,k-12):Be==="pm"&&jo(k)?g.setHour(Ne,k+12):Ne},Te=function(Be){pe(Re(Be))},Ye=function(Be){pe(Le(Be))},Xe=function(Be){pe(Ee(Be))},He=function(Be){pe(Me(Be))},Ze=function(Be){pe(Fe(Be))},et=function(Be){C(Re(Be))},Ge=function(Be){C(Le(Be))},qe=function(Be){C(Ee(Be))},ye=function(Be){C(Me(Be))},Oe=function(Be){C(Fe(Be))},$e={onDblClick:$,changeOnScroll:u};return c.createElement("div",{className:"".concat(v,"-content")},t&&c.createElement(Ys,Ae({units:ne,value:k,optionalValue:F,type:"hour",onChange:Te,onHover:et},$e)),n&&c.createElement(Ys,Ae({units:oe,value:N,optionalValue:A,type:"minute",onChange:Ye,onHover:Ge},$e)),r&&c.createElement(Ys,Ae({units:ce,value:L,optionalValue:W,type:"second",onChange:Xe,onHover:qe},$e)),o&&c.createElement(Ys,Ae({units:ue,value:X,optionalValue:Z,type:"millisecond",onChange:He,onHover:ye},$e)),s&&c.createElement(Ys,Ae({units:xe,value:te,type:"meridiem",onChange:Ze,onHover:Oe},$e)))}function Y$(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,s=e.showTime,u=s||{},d=u.format,v="".concat(t,"-time-panel"),m=kl(e,"time"),g=ee(m,1),p=g[0];return c.createElement(zi.Provider,{value:p},c.createElement("div",{className:me(v)},c.createElement(Ul,null,n?sr(n,{locale:r,format:d,generateConfig:o}):" "),c.createElement(FH,s)))}function VH(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,s=e.value,u=e.pickerValue,d=e.onHover,v="".concat(t,"-datetime-panel"),m=Vp(n,r),g=ee(m,1),p=g[0],b=function(y){return s?ed(n,y,s):ed(n,y,u)},x=function(y){d==null||d(y&&b(y))},C=function(y){var w=b(y);o(p(w,w))};return c.createElement("div",{className:v},c.createElement(Dd,Ae({},e,{onSelect:C,onHover:x})),c.createElement(Y$,e))}function kH(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,s=e.disabledDate,u=e.onPickerValueChange,d="".concat(t,"-decade-panel"),v=kl(e,"decade"),m=ee(v,1),g=m[0],p=function(D){var I=Math.floor(r.getYear(D)/100)*100;return r.setYear(D,I)},b=function(D){var I=p(D);return r.addYear(I,99)},x=p(o),C=b(o),E=r.addYear(x,-10),y=function(D,I){return r.addYear(D,I*10)},w=function(D){var I=n.cellYearFormat,z=sr(D,{locale:n,format:I,generateConfig:r}),P=sr(r.addYear(D,9),{locale:n,format:I,generateConfig:r});return"".concat(z,"-").concat(P)},$=function(D){return Q({},"".concat(t,"-cell-in-view"),kh(r,D,x)||kh(r,D,C)||_d(r,x,C,D))},O=s?function(M,D){var I=r.setDate(M,1),z=r.setMonth(I,0),P=r.setYear(z,Math.floor(r.getYear(z)/10)*10),j=r.addYear(P,10),H=r.addDate(j,-1);return s(P,D)&&s(H,D)}:null,T="".concat(sr(x,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(sr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(zi.Provider,{value:g},c.createElement("div",{className:d},c.createElement(Ul,{superOffset:function(D){return r.addYear(o,D*100)},onChange:u,getStart:p,getEnd:b},T),c.createElement(Uc,Ae({},e,{disabledDate:O,colNum:3,rowNum:4,baseDate:E,getCellDate:y,getCellText:w,getCellClassName:$}))))}function UH(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,s=e.disabledDate,u=e.onPickerValueChange,d=e.onModeChange,v="".concat(t,"-month-panel"),m=kl(e,"month"),g=ee(m,1),p=g[0],b=r.setMonth(o,0),x=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),C=function(T,M){return r.addMonth(T,M)},E=function(T){var M=r.getMonth(T);return n.monthFormat?sr(T,{locale:n,format:n.monthFormat,generateConfig:r}):x[M]},y=function(){return Q({},"".concat(t,"-cell-in-view"),!0)},w=s?function(O,T){var M=r.setDate(O,1),D=r.setMonth(M,r.getMonth(M)+1),I=r.addDate(D,-1);return s(M,T)&&s(I,T)}:null,$=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},sr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(zi.Provider,{value:p},c.createElement("div",{className:v},c.createElement(Ul,{superOffset:function(T){return r.addYear(o,T)},onChange:u,getStart:function(T){return r.setMonth(T,0)},getEnd:function(T){return r.setMonth(T,11)}},$),c.createElement(Uc,Ae({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:b,getCellDate:C,getCellText:E,getCellClassName:y}))))}function qH(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,s=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-quarter-panel"),v=kl(e,"quarter"),m=ee(v,1),g=m[0],p=r.setMonth(o,0),b=function(w,$){return r.addMonth(w,$*3)},x=function(w){return sr(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},C=function(){return Q({},"".concat(t,"-cell-in-view"),!0)},E=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},sr(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(zi.Provider,{value:g},c.createElement("div",{className:d},c.createElement(Ul,{superOffset:function(w){return r.addYear(o,w)},onChange:s,getStart:function(w){return r.setMonth(w,0)},getEnd:function(w){return r.setMonth(w,11)}},E),c.createElement(Uc,Ae({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:p,getCellDate:b,getCellText:x,getCellClassName:C}))))}function WH(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,s=e.hoverValue,u=e.hoverRangeValue,d=r.locale,v="".concat(t,"-week-panel-row"),m=function(p){var b={};if(u){var x=ee(u,2),C=x[0],E=x[1],y=Zs(n,d,C,p),w=Zs(n,d,E,p);b["".concat(v,"-range-start")]=y,b["".concat(v,"-range-end")]=w,b["".concat(v,"-range-hover")]=!y&&!w&&_d(n,C,E,p)}return s&&(b["".concat(v,"-hover")]=s.some(function($){return Zs(n,d,p,$)})),me(v,Q({},"".concat(v,"-selected"),!u&&Zs(n,d,o,p)),b)};return c.createElement(Dd,Ae({},e,{mode:"week",panelName:"week",rowClassName:m}))}function GH(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,s=e.disabledDate,u=e.onPickerValueChange,d=e.onModeChange,v="".concat(t,"-year-panel"),m=kl(e,"year"),g=ee(m,1),p=g[0],b=function(I){var z=Math.floor(r.getYear(I)/10)*10;return r.setYear(I,z)},x=function(I){var z=b(I);return r.addYear(z,9)},C=b(o),E=x(o),y=r.addYear(C,-1),w=function(I,z){return r.addYear(I,z)},$=function(I){return sr(I,{locale:n,format:n.cellYearFormat,generateConfig:r})},O=function(I){return Q({},"".concat(t,"-cell-in-view"),Oi(r,I,C)||Oi(r,I,E)||_d(r,C,E,I))},T=s?function(D,I){var z=r.setMonth(D,0),P=r.setDate(z,1),j=r.addYear(P,1),H=r.addDate(j,-1);return s(P,I)&&s(H,I)}:null,M=c.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){d("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},sr(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-",sr(E,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(zi.Provider,{value:p},c.createElement("div",{className:v},c.createElement(Ul,{superOffset:function(I){return r.addYear(o,I*10)},onChange:u,getStart:b,getEnd:x},M),c.createElement(Uc,Ae({},e,{disabledDate:T,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:w,getCellText:$,getCellClassName:O}))))}var YH={date:Dd,datetime:VH,week:WH,month:UH,quarter:qH,year:GH,decade:kH,time:Y$};function KH(e,t){var n,r=e.locale,o=e.generateConfig,s=e.direction,u=e.prefixCls,d=e.tabIndex,v=d===void 0?0:d,m=e.multiple,g=e.defaultValue,p=e.value,b=e.onChange,x=e.onSelect,C=e.defaultPickerValue,E=e.pickerValue,y=e.onPickerValueChange,w=e.mode,$=e.onPanelChange,O=e.picker,T=O===void 0?"date":O,M=e.showTime,D=e.hoverValue,I=e.hoverRangeValue,z=e.cellRender,P=e.dateRender,j=e.monthCellRender,H=e.components,G=H===void 0?{}:H,k=e.hideHeader,F=((n=c.useContext(Ma))===null||n===void 0?void 0:n.prefixCls)||u||"rc-picker",V=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:V.current}});var R=N$(e),N=ee(R,4),A=N[0],q=N[1],_=N[2],L=N[3],W=M$(r,q),Y=T==="date"&&M?"datetime":T,U=c.useMemo(function(){return D$(Y,_,L,A,W)},[Y,_,L,A,W]),X=o.getNow(),Z=An(T,{value:w,postState:function(Oe){return Oe||"date"}}),te=ee(Z,2),ne=te[0],re=te[1],le=ne==="date"&&U?"datetime":ne,oe=G$(o,r,Y),ie=An(g,{value:p}),ce=ee(ie,2),de=ce[0],ue=ce[1],fe=c.useMemo(function(){var ye=Ai(de).filter(function(Oe){return Oe});return m?ye:ye.slice(0,1)},[de,m]),xe=tn(function(ye){ue(ye),b&&(ye===null||fe.length!==ye.length||fe.some(function(Oe,$e){return!Rr(o,r,Oe,ye[$e],Y)}))&&(b==null||b(m?ye:ye[0]))}),pe=tn(function(ye){if(x==null||x(ye),ne===T){var Oe=m?oe(fe,ye):[ye];xe(Oe)}}),Ne=An(C||fe[0]||X,{value:E}),De=ee(Ne,2),Re=De[0],Le=De[1];c.useEffect(function(){fe[0]&&!E&&Le(fe[0])},[fe[0]]);var Ee=function(Oe,$e){$==null||$(Oe||E,$e||ne)},Me=function(Oe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Le(Oe),y==null||y(Oe),$e&&Ee(Oe)},Fe=function(Oe,$e){re(Oe),$e&&Me($e),Ee($e,Oe)},Te=function(Oe){if(pe(Oe),Me(Oe),ne!==T){var $e=["decade","year"],Se=[].concat($e,["month"]),Be={quarter:[].concat($e,["quarter"]),week:[].concat(je(Se),["week"]),date:[].concat(je(Se),["date"])},mt=Be[T]||Se,Ot=mt.indexOf(ne),Dt=mt[Ot+1];Dt&&Fe(Dt,Oe)}},Ye=c.useMemo(function(){var ye,Oe;if(Array.isArray(I)){var $e=ee(I,2);ye=$e[0],Oe=$e[1]}else ye=I;return!ye&&!Oe?null:(ye=ye||Oe,Oe=Oe||ye,o.isAfter(ye,Oe)?[Oe,ye]:[ye,Oe])},[I,o]),Xe=Hp(z,P,j),He=G[le]||YH[le]||Dd,Ze=c.useContext(ko),et=c.useMemo(function(){return J(J({},Ze),{},{hideHeader:k})},[Ze,k]),Ge="".concat(F,"-panel"),qe=Td(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(ko.Provider,{value:et},c.createElement("div",{ref:V,tabIndex:v,className:me(Ge,Q({},"".concat(Ge,"-rtl"),s==="rtl"))},c.createElement(He,Ae({},qe,{showTime:U,prefixCls:F,locale:W,generateConfig:o,onModeChange:Fe,pickerValue:Re,onPickerValueChange:function(Oe){Me(Oe,!0)},value:fe[0],onSelect:Te,values:fe,cellRender:Xe,hoverRangeValue:Ye,hoverValue:D}))))}var Cg=c.memo(c.forwardRef(KH));function XH(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,s=e.needConfirm,u=e.onSubmit,d=e.range,v=e.hoverValue,m=c.useContext(Ma),g=m.prefixCls,p=m.generateConfig,b=c.useCallback(function($,O){return Js(p,t,$,O)},[p,t]),x=c.useMemo(function(){return b(r,1)},[r,b]),C=function(O){o(b(O,-1))},E={onCellDblClick:function(){s&&u()}},y=t==="time",w=J(J({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return d?w.hoverRangeValue=v:w.hoverValue=v,n?c.createElement("div",{className:"".concat(g,"-panels")},c.createElement(ko.Provider,{value:J(J({},E),{},{hideNext:!0})},c.createElement(Cg,w)),c.createElement(ko.Provider,{value:J(J({},E),{},{hidePrev:!0})},c.createElement(Cg,Ae({},w,{pickerValue:x,onPickerValueChange:C})))):c.createElement(ko.Provider,{value:J({},E)},c.createElement(Cg,w))}function H1(e){return typeof e=="function"?e():e}function QH(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(s,u){var d=s.label,v=s.value;return c.createElement("li",{key:u,onClick:function(){r(H1(v))},onMouseEnter:function(){o(H1(v))},onMouseLeave:function(){o(null)}},d)}))):null}function K$(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,s=e.range,u=e.multiple,d=e.activeInfo,v=d===void 0?[0,0,0]:d,m=e.presets,g=e.onPresetHover,p=e.onPresetSubmit,b=e.onFocus,x=e.onBlur,C=e.onPanelMouseDown,E=e.direction,y=e.value,w=e.onSelect,$=e.isInvalid,O=e.defaultOpenValue,T=e.onOk,M=e.onSubmit,D=c.useContext(Ma),I=D.prefixCls,z="".concat(I,"-panel"),P=E==="rtl",j=c.useRef(null),H=c.useRef(null),G=c.useState(0),k=ee(G,2),F=k[0],V=k[1],R=c.useState(0),N=ee(R,2),A=N[0],q=N[1],_=c.useState(0),L=ee(_,2),W=L[0],Y=L[1],U=function(Te){Te.width&&V(Te.width)},X=ee(v,3),Z=X[0],te=X[1],ne=X[2],re=c.useState(0),le=ee(re,2),oe=le[0],ie=le[1];c.useEffect(function(){ie(10)},[Z]),c.useEffect(function(){if(s&&H.current){var Fe,Te=((Fe=j.current)===null||Fe===void 0?void 0:Fe.offsetWidth)||0,Ye=H.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){ie(function(et){return Math.max(0,et-1)});return}var Xe=(P?te-Te:Z)-Ye.left;if(Y(Xe),F&&F<ne){var He=P?Ye.right-(te-Te+F):Z+Te-Ye.left-F,Ze=Math.max(0,He);q(Ze)}else q(0)}},[oe,P,F,Z,te,ne,s]);function ce(Fe){return Fe.filter(function(Te){return Te})}var de=c.useMemo(function(){return ce(Ai(y))},[y]),ue=r==="time"&&!de.length,fe=c.useMemo(function(){return ue?ce([O]):de},[ue,de,O]),xe=ue?O:de,pe=c.useMemo(function(){return fe.length?fe.some(function(Fe){return $(Fe)}):!0},[fe,$]),Ne=function(){ue&&w(O),T(),M()},De=c.createElement("div",{className:"".concat(I,"-panel-layout")},c.createElement(QH,{prefixCls:I,presets:m,onClick:p,onHover:g}),c.createElement("div",null,c.createElement(XH,Ae({},e,{value:xe})),c.createElement(zH,Ae({},e,{showNow:u?!1:o,invalid:pe,onSubmit:Ne}))));t&&(De=t(De));var Re="".concat(z,"-container"),Le="marginLeft",Ee="marginRight",Me=c.createElement("div",{onMouseDown:C,tabIndex:-1,className:me(Re,"".concat(I,"-").concat(n,"-panel-container")),style:Q(Q({},P?Ee:Le,A),P?Le:Ee,"auto"),onFocus:b,onBlur:x},De);return s&&(Me=c.createElement("div",{onMouseDown:C,ref:H,className:me("".concat(I,"-range-wrapper"),"".concat(I,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:j,className:"".concat(I,"-range-arrow"),style:{left:W}}),c.createElement(Lr,{onResize:U},Me))),Me}function X$(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,s=e.locale,u=e.preserveInvalidOnBlur,d=e.inputReadOnly,v=e.required,m=e["aria-required"],g=e.onSubmit,p=e.onFocus,b=e.onBlur,x=e.onInputChange,C=e.onInvalid,E=e.open,y=e.onOpenChange,w=e.onKeyDown,$=e.onChange,O=e.activeHelp,T=e.name,M=e.autoComplete,D=e.id,I=e.value,z=e.invalid,P=e.placeholder,j=e.disabled,H=e.activeIndex,G=e.allHelp,k=e.picker,F=function(W,Y){var U=o.locale.parse(s.locale,W,[Y]);return U&&o.isValidate(U)?U:null},V=n[0],R=c.useCallback(function(L){return sr(L,{locale:s,format:V,generateConfig:o})},[s,o,V]),N=c.useMemo(function(){return I.map(R)},[I,R]),A=c.useMemo(function(){var L=k==="time"?8:10,W=typeof V=="function"?V(o.getNow()).length:V.length;return Math.max(L,W)+2},[V,k,o]),q=function(W){for(var Y=0;Y<n.length;Y+=1){var U=n[Y];if(typeof U=="string"){var X=F(W,U);if(X)return X}}return!1},_=function(W){function Y(Z){return W!==void 0?Z[W]:Z}var U=lo(e,{aria:!0,data:!0}),X=J(J({},U),{},{format:r,validateFormat:function(te){return!!q(te)},preserveInvalidOnBlur:u,readOnly:d,required:v,"aria-required":m,name:T,autoComplete:M,size:A,id:Y(D),value:Y(N)||"",invalid:Y(z),placeholder:Y(P),active:H===W,helped:G||O&&H===W,disabled:Y(j),onFocus:function(te){p(te,W)},onBlur:function(te){b(te,W)},onSubmit:g,onChange:function(te){x();var ne=q(te);if(ne){C(!1,W),$(ne,W);return}C(!!te,W)},onHelp:function(){y(!0,{index:W})},onKeyDown:function(te){var ne=!1;if(w==null||w(te,function(){ne=!0}),!te.defaultPrevented&&!ne)switch(te.key){case"Escape":y(!1,{index:W});break;case"Enter":E||y(!0);break}}},t==null?void 0:t({valueTexts:N}));return Object.keys(X).forEach(function(Z){X[Z]===void 0&&delete X[Z]}),X};return[_,R]}var ZH=["onMouseEnter","onMouseLeave"];function Q$(e){return c.useMemo(function(){return Td(e,ZH)},[e])}var JH=["icon","type"],e5=["onClear"];function Id(e){var t=e.icon,n=e.type,r=Et(e,JH),o=c.useContext(Ma),s=o.prefixCls;return t?c.createElement("span",Ae({className:"".concat(s,"-").concat(n)},r),t):null}function Uh(e){var t=e.onClear,n=Et(e,e5);return c.createElement(Id,Ae({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var xg=["YYYY","MM","DD","HH","mm","ss","SSS"],L1="顧",t5=function(){function e(t){Qn(this,e),Q(this,"format",void 0),Q(this,"maskFormat",void 0),Q(this,"cells",void 0),Q(this,"maskCells",void 0),this.format=t;var n=xg.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return L1.repeat(d.length)});var o=new RegExp("(".concat(xg.join("|"),")")),s=(t.split(o)||[]).filter(function(d){return d}),u=0;this.cells=s.map(function(d){var v=xg.includes(d),m=u,g=u+d.length;return u=g,{text:d,mask:v,start:m,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return Zn(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,s=r.end;return[o||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],s=n[r];if(!s||o!==L1&&o!==s)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,o=0,s=0;s<this.maskCells.length;s+=1){var u=this.maskCells[s],d=u.start,v=u.end;if(n>=d&&n<=v)return s;var m=Math.min(Math.abs(n-d),Math.abs(n-v));m<r&&(r=m,o=s)}return o}}]),e}();function n5(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var r5=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],qh=c.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,s=e.suffixIcon,u=e.format,d=e.validateFormat,v=e.onChange;e.onInput;var m=e.helped,g=e.onHelp,p=e.onSubmit,b=e.onKeyDown,x=e.preserveInvalidOnBlur,C=x===void 0?!1:x,E=e.invalid,y=e.clearIcon,w=Et(e,r5),$=e.value,O=e.onFocus,T=e.onBlur,M=e.onMouseUp,D=c.useContext(Ma),I=D.prefixCls,z=D.input,P=z===void 0?"input":z,j="".concat(I,"-input"),H=c.useState(!1),G=ee(H,2),k=G[0],F=G[1],V=c.useState($),R=ee(V,2),N=R[0],A=R[1],q=c.useState(""),_=ee(q,2),L=_[0],W=_[1],Y=c.useState(null),U=ee(Y,2),X=U[0],Z=U[1],te=c.useState(null),ne=ee(te,2),re=ne[0],le=ne[1],oe=N||"";c.useEffect(function(){A($)},[$]);var ie=c.useRef(),ce=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:ie.current,inputElement:ce.current,focus:function(ye){ce.current.focus(ye)},blur:function(){ce.current.blur()}}});var de=c.useMemo(function(){return new t5(u||"")},[u]),ue=c.useMemo(function(){return m?[0,0]:de.getSelection(X)},[de,X,m]),fe=ee(ue,2),xe=fe[0],pe=fe[1],Ne=function(ye){ye&&ye!==u&&ye!==$&&g()},De=tn(function(qe){d(qe)&&v(qe),A(qe),Ne(qe)}),Re=function(ye){if(!u){var Oe=ye.target.value;Ne(Oe),A(Oe),v(Oe)}},Le=function(ye){var Oe=ye.clipboardData.getData("text");d(Oe)&&De(Oe)},Ee=c.useRef(!1),Me=function(){Ee.current=!0},Fe=function(ye){var Oe=ye.target,$e=Oe.selectionStart,Se=de.getMaskCellIndex($e);Z(Se),le({}),M==null||M(ye),Ee.current=!1},Te=function(ye){F(!0),Z(0),W(""),O(ye)},Ye=function(ye){T(ye)},Xe=function(ye){F(!1),Ye(ye)};Fp(n,function(){!n&&!C&&A($)});var He=function(ye){ye.key==="Enter"&&d(oe)&&p(),b==null||b(ye)},Ze=function(ye){He(ye);var Oe=ye.key,$e=null,Se=null,Be=pe-xe,mt=u.slice(xe,pe),Ot=function(Tt){Z(function(Rt){var gt=Rt+Tt;return gt=Math.max(gt,0),gt=Math.min(gt,de.size()-1),gt})},Dt=function(Tt){var Rt=n5(mt),gt=ee(Rt,3),at=gt[0],tt=gt[1],Qe=gt[2],Ct=oe.slice(xe,pe),yt=Number(Ct);if(isNaN(yt))return String(Qe||(Tt>0?at:tt));var We=yt+Tt,Ke=tt-at+1;return String(at+(Ke+We-at)%Ke)};switch(Oe){case"Backspace":case"Delete":$e="",Se=mt;break;case"ArrowLeft":$e="",Ot(-1);break;case"ArrowRight":$e="",Ot(1);break;case"ArrowUp":$e="",Se=Dt(1);break;case"ArrowDown":$e="",Se=Dt(-1);break;default:isNaN(Number(Oe))||($e=L+Oe,Se=$e);break}if($e!==null&&(W($e),$e.length>=Be&&(Ot(1),W(""))),Se!==null){var Kt=oe.slice(0,xe)+jp(Se,Be)+oe.slice(pe);De(Kt.slice(0,u.length))}le({})},et=c.useRef();qt(function(){if(!(!k||!u||Ee.current)){if(!de.match(oe)){De(u);return}return ce.current.setSelectionRange(xe,pe),et.current=kt(function(){ce.current.setSelectionRange(xe,pe)}),function(){kt.cancel(et.current)}}},[de,u,k,oe,X,xe,pe,re,De]);var Ge=u?{onFocus:Te,onBlur:Xe,onKeyDown:Ze,onMouseDown:Me,onMouseUp:Fe,onPaste:Le}:{};return c.createElement("div",{ref:ie,className:me(j,Q(Q({},"".concat(j,"-active"),n&&o),"".concat(j,"-placeholder"),m))},c.createElement(P,Ae({ref:ce,"aria-invalid":E,autoComplete:"off"},w,{onKeyDown:He,onBlur:Ye},Ge,{value:oe,onChange:Re})),c.createElement(Id,{type:"suffix",icon:s}),y)}),a5=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],o5=["index"];function i5(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,s=e.suffixIcon,u=e.separator,d=u===void 0?"~":u,v=e.activeIndex;e.activeHelp,e.allHelp;var m=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,p=e.className,b=e.style,x=e.onClick,C=e.onClear,E=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,w=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var O=e.onActiveInfo;e.placement;var T=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,D=e.tabIndex,I=Et(e,a5),z=$==="rtl",P=c.useContext(Ma),j=P.prefixCls,H=c.useMemo(function(){if(typeof n=="string")return[n];var re=n||{};return[re.start,re.end]},[n]),G=c.useRef(),k=c.useRef(),F=c.useRef(),V=function(le){var oe;return(oe=[k,F][le])===null||oe===void 0?void 0:oe.current};c.useImperativeHandle(t,function(){return{nativeElement:G.current,focus:function(le){if(vt(le)==="object"){var oe,ie=le||{},ce=ie.index,de=ce===void 0?0:ce,ue=Et(ie,o5);(oe=V(de))===null||oe===void 0||oe.focus(ue)}else{var fe;(fe=V(le??0))===null||fe===void 0||fe.focus()}},blur:function(){var le,oe;(le=V(0))===null||le===void 0||le.blur(),(oe=V(1))===null||oe===void 0||oe.blur()}}});var R=Q$(I),N=c.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),A=X$(J(J({},e),{},{id:H,placeholder:N})),q=ee(A,1),_=q[0],L=c.useState({position:"absolute",width:0}),W=ee(L,2),Y=W[0],U=W[1],X=tn(function(){var re=V(v);if(re){var le=re.nativeElement.getBoundingClientRect(),oe=G.current.getBoundingClientRect(),ie=le.left-oe.left;U(function(ce){return J(J({},ce),{},{width:le.width,left:ie})}),O([le.left,le.right,oe.width])}});c.useEffect(function(){X()},[v]);var Z=o&&(E[0]&&!y[0]||E[1]&&!y[1]),te=M&&!y[0],ne=M&&!te&&!y[1];return c.createElement(Lr,{onResize:X},c.createElement("div",Ae({},R,{className:me(j,"".concat(j,"-range"),Q(Q(Q(Q({},"".concat(j,"-focused"),m),"".concat(j,"-disabled"),y.every(function(re){return re})),"".concat(j,"-invalid"),w.some(function(re){return re})),"".concat(j,"-rtl"),z),p),style:b,ref:G,onClick:x,onMouseDown:function(le){var oe=le.target;oe!==k.current.inputElement&&oe!==F.current.inputElement&&le.preventDefault(),T==null||T(le)}}),r&&c.createElement("div",{className:"".concat(j,"-prefix")},r),c.createElement(qh,Ae({ref:k},_(0),{autoFocus:te,tabIndex:D,"date-range":"start"})),c.createElement("div",{className:"".concat(j,"-range-separator")},d),c.createElement(qh,Ae({ref:F},_(1),{autoFocus:ne,tabIndex:D,"date-range":"end"})),c.createElement("div",{className:"".concat(j,"-active-bar"),style:Y}),c.createElement(Id,{type:"suffix",icon:s}),Z&&c.createElement(Uh,{icon:o,onClear:C})))}var l5=c.forwardRef(i5);function B1(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function vf(e){return e===1?"end":"start"}function s5(e,t){var n=A$(e,function(){var _t=e.disabled,pt=e.allowEmpty,Bt=B1(_t,!1),Rn=B1(pt,!1);return{disabled:Bt,allowEmpty:Rn}}),r=ee(n,6),o=r[0],s=r[1],u=r[2],d=r[3],v=r[4],m=r[5],g=o.prefixCls,p=o.styles,b=o.classNames,x=o.defaultValue,C=o.value,E=o.needConfirm,y=o.onKeyDown,w=o.disabled,$=o.allowEmpty,O=o.disabledDate,T=o.minDate,M=o.maxDate,D=o.defaultOpen,I=o.open,z=o.onOpenChange,P=o.locale,j=o.generateConfig,H=o.picker,G=o.showNow,k=o.showToday,F=o.showTime,V=o.mode,R=o.onPanelChange,N=o.onCalendarChange,A=o.onOk,q=o.defaultPickerValue,_=o.pickerValue,L=o.onPickerValueChange,W=o.inputReadOnly,Y=o.suffixIcon,U=o.onFocus,X=o.onBlur,Z=o.presets,te=o.ranges,ne=o.components,re=o.cellRender,le=o.dateRender,oe=o.monthCellRender,ie=o.onClick,ce=j$(t),de=z$(I,D,w,z),ue=ee(de,2),fe=ue[0],xe=ue[1],pe=function(pt,Bt){(w.some(function(Rn){return!Rn})||!pt)&&xe(pt,Bt)},Ne=U$(j,P,d,!0,!1,x,C,N,A),De=ee(Ne,5),Re=De[0],Le=De[1],Ee=De[2],Me=De[3],Fe=De[4],Te=Ee(),Ye=L$(w,$,fe),Xe=ee(Ye,9),He=Xe[0],Ze=Xe[1],et=Xe[2],Ge=Xe[3],qe=Xe[4],ye=Xe[5],Oe=Xe[6],$e=Xe[7],Se=Xe[8],Be=function(pt,Bt){Ze(!0),U==null||U(pt,{range:vf(Bt??Ge)})},mt=function(pt,Bt){Ze(!1),X==null||X(pt,{range:vf(Bt??Ge)})},Ot=c.useMemo(function(){if(!F)return null;var _t=F.disabledTime,pt=_t?function(Bt){var Rn=vf(Ge),Hn=E$(Te,Oe,Ge);return _t(Bt,Rn,{from:Hn})}:void 0;return J(J({},F),{},{disabledTime:pt})},[F,Ge,Te,Oe]),Dt=An([H,H],{value:V}),Kt=ee(Dt,2),zt=Kt[0],Tt=Kt[1],Rt=zt[Ge]||H,gt=Rt==="date"&&Ot?"datetime":Rt,at=gt===H&&gt!=="time",tt=W$(H,Rt,G,k,!0),Qe=q$(o,Re,Le,Ee,Me,w,d,He,fe,m),Ct=ee(Qe,2),yt=Ct[0],We=Ct[1],Ke=DH(Te,w,Oe,j,P,O),it=O$(Te,m,$),ft=ee(it,2),st=ft[0],dt=ft[1],Vt=B$(j,P,Te,zt,fe,Ge,s,at,q,_,Ot==null?void 0:Ot.defaultOpenValue,L,T,M),jt=ee(Vt,2),Lt=jt[0],Ht=jt[1],Ft=tn(function(_t,pt,Bt){var Rn=oc(zt,Ge,pt);if((Rn[0]!==zt[0]||Rn[1]!==zt[1])&&Tt(Rn),R&&Bt!==!1){var Hn=je(Te);_t&&(Hn[Ge]=_t),R(Hn,Rn)}}),nn=function(pt,Bt){return oc(Te,Bt,pt)},wt=function(pt,Bt){var Rn=Te;pt&&(Rn=nn(pt,Ge)),$e(Ge);var Hn=ye(Rn);Me(Rn),yt(Ge,Hn===null),Hn===null?pe(!1,{force:!0}):Bt||ce.current.focus({index:Hn})},$n=function(pt){var Bt,Rn=pt.target.getRootNode();if(!ce.current.nativeElement.contains((Bt=Rn.activeElement)!==null&&Bt!==void 0?Bt:document.activeElement)){var Hn=w.findIndex(function(Gn){return!Gn});Hn>=0&&ce.current.focus({index:Hn})}pe(!0),ie==null||ie(pt)},ln=function(){We(null),pe(!1,{force:!0})},rn=c.useState(null),Ue=ee(rn,2),lt=Ue[0],nt=Ue[1],Ve=c.useState(null),ht=ee(Ve,2),It=ht[0],Xt=ht[1],Jt=c.useMemo(function(){return It||Te},[Te,It]);c.useEffect(function(){fe||Xt(null)},[fe]);var On=c.useState([0,0,0]),cn=ee(On,2),dn=cn[0],Cn=cn[1],ar=H$(Z,te),xr=function(pt){Xt(pt),nt("preset")},zn=function(pt){var Bt=We(pt);Bt&&pe(!1,{force:!0})},un=function(pt){wt(pt)},hr=function(pt){Xt(pt?nn(pt,Ge):null),nt("cell")},wr=function(pt){pe(!0),Be(pt)},Fn=function(){et("panel")},Tr=function(pt){var Bt=oc(Te,Ge,pt);Me(Bt),!E&&!u&&s===gt&&wt(pt)},Gt=function(){pe(!1)},ut=Hp(re,le,oe,vf(Ge)),Je=Te[Ge]||null,Yt=tn(function(_t){return m(_t,{activeIndex:Ge})}),ot=c.useMemo(function(){var _t=lo(o,!1),pt=ur(o,[].concat(je(Object.keys(_t)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pt},[o]),rt=c.createElement(K$,Ae({},ot,{showNow:tt,showTime:Ot,range:!0,multiplePanel:at,activeInfo:dn,disabledDate:Ke,onFocus:wr,onBlur:mt,onPanelMouseDown:Fn,picker:H,mode:Rt,internalMode:gt,onPanelChange:Ft,format:v,value:Je,isInvalid:Yt,onChange:null,onSelect:Tr,pickerValue:Lt,defaultOpenValue:Ai(F==null?void 0:F.defaultOpenValue)[Ge],onPickerValueChange:Ht,hoverValue:Jt,onHover:hr,needConfirm:E,onSubmit:wt,onOk:Fe,presets:ar,onPresetHover:xr,onPresetSubmit:zn,onNow:un,cellRender:ut})),At=function(pt,Bt){var Rn=nn(pt,Bt);Me(Rn)},xn=function(){et("input")},jn=function(pt,Bt){var Rn=Oe.length,Hn=Oe[Rn-1];if(Rn&&Hn!==Bt&&E&&!$[Hn]&&!Se(Hn)&&Te[Hn]){ce.current.focus({index:Hn});return}et("input"),pe(!0,{inherit:!0}),Ge!==Bt&&fe&&!E&&u&&wt(null,!0),qe(Bt),Be(pt,Bt)},Ln=function(pt,Bt){if(pe(!1),!E&&et()==="input"){var Rn=ye(Te);yt(Ge,Rn===null)}mt(pt,Bt)},Jn=function(pt,Bt){pt.key==="Tab"&&wt(null,!0),y==null||y(pt,Bt)},er=c.useMemo(function(){return{prefixCls:g,locale:P,generateConfig:j,button:ne.button,input:ne.input}},[g,P,j,ne.button,ne.input]);return qt(function(){fe&&Ge!==void 0&&Ft(null,H,!1)},[fe,Ge,H]),qt(function(){var _t=et();!fe&&_t==="input"&&(pe(!1),wt(null,!0)),!fe&&u&&!E&&_t==="panel"&&(pe(!0),wt())},[fe]),c.createElement(Ma.Provider,{value:er},c.createElement(x$,Ae({},$$(o),{popupElement:rt,popupStyle:p.popup,popupClassName:b.popup,visible:fe,onClose:Gt,range:!0}),c.createElement(l5,Ae({},o,{ref:ce,suffixIcon:Y,activeIndex:He||fe?Ge:null,activeHelp:!!It,allHelp:!!It&&lt==="preset",focused:He,onFocus:jn,onBlur:Ln,onKeyDown:Jn,onSubmit:wt,value:Jt,maskFormat:v,onChange:At,onInputChange:xn,format:d,inputReadOnly:W,disabled:w,open:fe,onOpenChange:pe,onClick:$n,onClear:ln,invalid:st,onInvalid:dt,onActiveInfo:Cn}))))}var c5=c.forwardRef(s5);function u5(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,s=o===void 0?"×":o,u=e.formatDate,d=e.disabled,v=e.maxTagCount,m=e.placeholder,g="".concat(t,"-selector"),p="".concat(t,"-selection"),b="".concat(p,"-overflow");function x(y,w){return c.createElement("span",{className:me("".concat(p,"-item")),title:typeof y=="string"?y:null},c.createElement("span",{className:"".concat(p,"-item-content")},y),!d&&w&&c.createElement("span",{onMouseDown:function(O){O.preventDefault()},onClick:w,className:"".concat(p,"-item-remove")},s))}function C(y){var w=u(y),$=function(T){T&&T.stopPropagation(),r(y)};return x(w,$)}function E(y){var w="+ ".concat(y.length," ...");return x(w)}return c.createElement("div",{className:g},c.createElement(wa,{prefixCls:b,data:n,renderItem:C,renderRest:E,itemKey:function(w){return u(w)},maxCount:v}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},m))}var f5=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function d5(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,s=e.suffixIcon;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var d=e.locale,v=e.generateConfig,m=e.placeholder,g=e.className,p=e.style,b=e.onClick,x=e.onClear,C=e.internalPicker,E=e.value,y=e.onChange,w=e.onSubmit;e.onInputChange;var $=e.multiple,O=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var T=e.disabled,M=e.invalid;e.inputReadOnly;var D=e.direction;e.onOpenChange;var I=e.onMouseDown;e.required,e["aria-required"];var z=e.autoFocus,P=e.tabIndex,j=e.removeIcon,H=Et(e,f5),G=D==="rtl",k=c.useContext(Ma),F=k.prefixCls,V=c.useRef(),R=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:V.current,focus:function(te){var ne;(ne=R.current)===null||ne===void 0||ne.focus(te)},blur:function(){var te;(te=R.current)===null||te===void 0||te.blur()}}});var N=Q$(H),A=function(te){y([te])},q=function(te){var ne=E.filter(function(re){return re&&!Rr(v,d,re,te,C)});y(ne),n||w()},_=X$(J(J({},e),{},{onChange:A}),function(Z){var te=Z.valueTexts;return{value:te[0]||"",active:u}}),L=ee(_,2),W=L[0],Y=L[1],U=!!(o&&E.length&&!T),X=$?c.createElement(c.Fragment,null,c.createElement(u5,{prefixCls:F,value:E,onRemove:q,formatDate:Y,maxTagCount:O,disabled:T,removeIcon:j,placeholder:m}),c.createElement("input",{className:"".concat(F,"-multiple-input"),value:E.map(Y).join(","),ref:R,readOnly:!0,autoFocus:z,tabIndex:P}),c.createElement(Id,{type:"suffix",icon:s}),U&&c.createElement(Uh,{icon:o,onClear:x})):c.createElement(qh,Ae({ref:R},W(),{autoFocus:z,tabIndex:P,suffixIcon:s,clearIcon:U&&c.createElement(Uh,{icon:o,onClear:x}),showActiveCls:!1}));return c.createElement("div",Ae({},N,{className:me(F,Q(Q(Q(Q(Q({},"".concat(F,"-multiple"),$),"".concat(F,"-focused"),u),"".concat(F,"-disabled"),T),"".concat(F,"-invalid"),M),"".concat(F,"-rtl"),G),g),style:p,ref:V,onClick:b,onMouseDown:function(te){var ne,re=te.target;re!==((ne=R.current)===null||ne===void 0?void 0:ne.inputElement)&&te.preventDefault(),I==null||I(te)}}),r&&c.createElement("div",{className:"".concat(F,"-prefix")},r),X)}var v5=c.forwardRef(d5);function m5(e,t){var n=A$(e),r=ee(n,6),o=r[0],s=r[1],u=r[2],d=r[3],v=r[4],m=r[5],g=o,p=g.prefixCls,b=g.styles,x=g.classNames,C=g.order,E=g.defaultValue,y=g.value,w=g.needConfirm,$=g.onChange,O=g.onKeyDown,T=g.disabled,M=g.disabledDate,D=g.minDate,I=g.maxDate,z=g.defaultOpen,P=g.open,j=g.onOpenChange,H=g.locale,G=g.generateConfig,k=g.picker,F=g.showNow,V=g.showToday,R=g.showTime,N=g.mode,A=g.onPanelChange,q=g.onCalendarChange,_=g.onOk,L=g.multiple,W=g.defaultPickerValue,Y=g.pickerValue,U=g.onPickerValueChange,X=g.inputReadOnly,Z=g.suffixIcon,te=g.removeIcon,ne=g.onFocus,re=g.onBlur,le=g.presets,oe=g.components,ie=g.cellRender,ce=g.dateRender,de=g.monthCellRender,ue=g.onClick,fe=j$(t);function xe(ot){return ot===null?null:L?ot:ot[0]}var pe=G$(G,H,s),Ne=z$(P,z,[T],j),De=ee(Ne,2),Re=De[0],Le=De[1],Ee=function(rt,At,xn){if(q){var jn=J({},xn);delete jn.range,q(xe(rt),xe(At),jn)}},Me=function(rt){_==null||_(xe(rt))},Fe=U$(G,H,d,!1,C,E,y,Ee,Me),Te=ee(Fe,5),Ye=Te[0],Xe=Te[1],He=Te[2],Ze=Te[3],et=Te[4],Ge=He(),qe=L$([T]),ye=ee(qe,4),Oe=ye[0],$e=ye[1],Se=ye[2],Be=ye[3],mt=function(rt){$e(!0),ne==null||ne(rt,{})},Ot=function(rt){$e(!1),re==null||re(rt,{})},Dt=An(k,{value:N}),Kt=ee(Dt,2),zt=Kt[0],Tt=Kt[1],Rt=zt==="date"&&R?"datetime":zt,gt=W$(k,zt,F,V),at=$&&function(ot,rt){$(xe(ot),xe(rt))},tt=q$(J(J({},o),{},{onChange:at}),Ye,Xe,He,Ze,[],d,Oe,Re,m),Qe=ee(tt,2),Ct=Qe[1],yt=O$(Ge,m),We=ee(yt,2),Ke=We[0],it=We[1],ft=c.useMemo(function(){return Ke.some(function(ot){return ot})},[Ke]),st=function(rt,At){if(U){var xn=J(J({},At),{},{mode:At.mode[0]});delete xn.range,U(rt[0],xn)}},dt=B$(G,H,Ge,[zt],Re,Be,s,!1,W,Y,Ai(R==null?void 0:R.defaultOpenValue),st,D,I),Vt=ee(dt,2),jt=Vt[0],Lt=Vt[1],Ht=tn(function(ot,rt,At){if(Tt(rt),A&&At!==!1){var xn=ot||Ge[Ge.length-1];A(xn,rt)}}),Ft=function(){Ct(He()),Le(!1,{force:!0})},nn=function(rt){!T&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),Le(!0),ue==null||ue(rt)},wt=function(){Ct(null),Le(!1,{force:!0})},$n=c.useState(null),ln=ee($n,2),rn=ln[0],Ue=ln[1],lt=c.useState(null),nt=ee(lt,2),Ve=nt[0],ht=nt[1],It=c.useMemo(function(){var ot=[Ve].concat(je(Ge)).filter(function(rt){return rt});return L?ot:ot.slice(0,1)},[Ge,Ve,L]),Xt=c.useMemo(function(){return!L&&Ve?[Ve]:Ge.filter(function(ot){return ot})},[Ge,Ve,L]);c.useEffect(function(){Re||ht(null)},[Re]);var Jt=H$(le),On=function(rt){ht(rt),Ue("preset")},cn=function(rt){var At=L?pe(He(),rt):[rt],xn=Ct(At);xn&&!L&&Le(!1,{force:!0})},dn=function(rt){cn(rt)},Cn=function(rt){ht(rt),Ue("cell")},ar=function(rt){Le(!0),mt(rt)},xr=function(rt){if(Se("panel"),!(L&&Rt!==k)){var At=L?pe(He(),rt):[rt];Ze(At),!w&&!u&&s===Rt&&Ft()}},zn=function(){Le(!1)},un=Hp(ie,ce,de),hr=c.useMemo(function(){var ot=lo(o,!1),rt=ur(o,[].concat(je(Object.keys(ot)),["onChange","onCalendarChange","style","className","onPanelChange"]));return J(J({},rt),{},{multiple:o.multiple})},[o]),wr=c.createElement(K$,Ae({},hr,{showNow:gt,showTime:R,disabledDate:M,onFocus:ar,onBlur:Ot,picker:k,mode:zt,internalMode:Rt,onPanelChange:Ht,format:v,value:Ge,isInvalid:m,onChange:null,onSelect:xr,pickerValue:jt,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:Lt,hoverValue:It,onHover:Cn,needConfirm:w,onSubmit:Ft,onOk:et,presets:Jt,onPresetHover:On,onPresetSubmit:cn,onNow:dn,cellRender:un})),Fn=function(rt){Ze(rt)},Tr=function(){Se("input")},Gt=function(rt){Se("input"),Le(!0,{inherit:!0}),mt(rt)},ut=function(rt){Le(!1),Ot(rt)},Je=function(rt,At){rt.key==="Tab"&&Ft(),O==null||O(rt,At)},Yt=c.useMemo(function(){return{prefixCls:p,locale:H,generateConfig:G,button:oe.button,input:oe.input}},[p,H,G,oe.button,oe.input]);return qt(function(){Re&&Be!==void 0&&Ht(null,k,!1)},[Re,Be,k]),qt(function(){var ot=Se();!Re&&ot==="input"&&(Le(!1),Ft()),!Re&&u&&!w&&ot==="panel"&&Ft()},[Re]),c.createElement(Ma.Provider,{value:Yt},c.createElement(x$,Ae({},$$(o),{popupElement:wr,popupStyle:b.popup,popupClassName:x.popup,visible:Re,onClose:zn}),c.createElement(v5,Ae({},o,{ref:fe,suffixIcon:Z,removeIcon:te,activeHelp:!!Ve,allHelp:!!Ve&&rn==="preset",focused:Oe,onFocus:Gt,onBlur:ut,onKeyDown:Je,onSubmit:Ft,value:Xt,maskFormat:v,onChange:Fn,onInputChange:Tr,internalPicker:s,format:d,inputReadOnly:X,disabled:T,open:Re,onOpenChange:Le,onClick:nn,onClear:wt,invalid:ft,onInvalid:function(rt){it(rt,0)}}))))}var g5=c.forwardRef(m5),h5=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],p5=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,s=e.style,u=e.checked,d=e.disabled,v=e.defaultChecked,m=v===void 0?!1:v,g=e.type,p=g===void 0?"checkbox":g,b=e.title,x=e.onChange,C=Et(e,h5),E=c.useRef(null),y=c.useRef(null),w=An(m,{value:u}),$=ee(w,2),O=$[0],T=$[1];c.useImperativeHandle(t,function(){return{focus:function(z){var P;(P=E.current)===null||P===void 0||P.focus(z)},blur:function(){var z;(z=E.current)===null||z===void 0||z.blur()},input:E.current,nativeElement:y.current}});var M=me(r,o,Q(Q({},"".concat(r,"-checked"),O),"".concat(r,"-disabled"),d)),D=function(z){d||("checked"in e||T(z.target.checked),x==null||x({target:J(J({},e),{},{type:p,checked:z.target.checked}),stopPropagation:function(){z.stopPropagation()},preventDefault:function(){z.preventDefault()},nativeEvent:z.nativeEvent}))};return c.createElement("span",{className:M,title:b,style:s,ref:y},c.createElement("input",Ae({},C,{className:"".concat(r,"-input"),ref:E,onChange:D,disabled:d,checked:!!O,type:p})),c.createElement("span",{className:"".concat(r,"-inner")}))});function b5(e){const t=Ie.useRef(null),n=()=>{kt.cancel(t.current),t.current=null};return[()=>{n(),t.current=kt(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}function qc(e){return Sn(e,{inputAffixPadding:e.paddingXXS})}const Wc=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:u,fontSizeLG:d,lineHeightLG:v,paddingSM:m,controlPaddingHorizontalSM:g,controlPaddingHorizontal:p,colorFillAlter:b,colorPrimaryHover:x,colorPrimary:C,controlOutlineWidth:E,controlOutline:y,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:O,inputFontSize:T,inputFontSizeLG:M,inputFontSizeSM:D}=e,I=T||n,z=D||I,P=M||d,j=Math.round((t-I*r)/2*10)/10-o,H=Math.round((s-z*r)/2*10)/10-o,G=Math.ceil((u-P*v)/2*10)/10-o;return{paddingBlock:Math.max(j,0),paddingBlockSM:Math.max(H,0),paddingBlockLG:Math.max(G,0),paddingInline:m-o,paddingInlineSM:g-o,paddingInlineLG:p-o,addonBg:b,activeBorderColor:C,hoverBorderColor:x,activeShadow:`0 0 0 ${E}px ${y}`,errorActiveShadow:`0 0 0 ${E}px ${w}`,warningActiveShadow:`0 0 0 ${E}px ${$}`,hoverBg:O,activeBg:O,inputFontSize:I,inputFontSizeLG:P,inputFontSizeSM:z}},y5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kp=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({},y5(Sn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Z$=(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}}),F1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Z$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),J$=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Z$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kp(e))}),F1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),F1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),V1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),S5=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},V1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),V1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},kp(e))}})}),e2=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},t2=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},k1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},t2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),n2=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kp(e))}),k1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),k1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),U1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),C5=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ge(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ge(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},U1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),U1(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:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),r2=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ge(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),q1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},r2(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`}}),a2=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r2(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"}}),q1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),q1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),o2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),i2=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ge(t)} ${ge(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},l2=e=>({padding:`${ge(e.paddingBlockSM)} ${ge(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),s2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ge(e.paddingBlock)} ${ge(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},o2(e.colorTextPlaceholder)),{"&-lg":Object.assign({},i2(e)),"&-sm":Object.assign({},l2(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),x5=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},i2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},l2(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ge(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ge(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ge(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ge(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ge(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ic()),{[`${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},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},w5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,u=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cr(e)),s2(e)),J$(e)),n2(e)),e2(e)),a2(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:u,paddingBottom:u}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},E5=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 ${ge(e.inputAffixPadding)}`}}}},$5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:s,colorIconHover:u,iconCls:d}=e,v=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[v]:Object.assign(Object.assign(Object.assign(Object.assign({},s2(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),E5(e)),{[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:u}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${d}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},O5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Cr(e)),x5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},S5(e)),C5(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}}})})}},R5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},M5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},c2=gr(["Input","Shared"],e=>{const t=Sn(e,qc(e));return[w5(t),$5(t)]},Wc,{resetFont:!1}),u2=gr(["Input","Component"],e=>{const t=Sn(e,qc(e));return[O5(t),R5(t),M5(t),wd(t)]},Wc,{resetFont:!1}),wg=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",s=GE(e);return[{[`${n}-multiple${o}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:ge(s.itemLineHeight)}}}]},T5=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Sn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=Sn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[wg(o,"small"),wg(e),wg(s,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},YE(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},_5=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:s,cellHoverBg:u,lineWidth:d,lineType:v,colorPrimary:m,cellActiveWithRangeBg:g,colorTextLightSolid:p,colorTextDisabled:b,cellBgDisabled:x,colorFillSecondary:C}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ge(r),borderRadius:o,transition:`background ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:u}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ge(d)} ${v} ${m}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:g}},[`&-in-view${t}-selected,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:p,background:m},[`&${t}-disabled ${n}`]:{background:C}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:b,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${t}-today ${n}::before`]:{borderColor:b}}},N5=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:s,cellWidth:u,paddingSM:d,paddingXS:v,paddingXXS:m,colorBgContainer:g,lineWidth:p,lineType:b,borderRadiusLG:x,colorPrimary:C,colorTextHeading:E,colorSplit:y,pickerControlIconBorderWidth:w,colorIcon:$,textHeight:O,motionDurationMid:T,colorIconHover:M,fontWeightStrong:D,cellHeight:I,pickerCellPaddingVertical:z,colorTextDisabled:P,colorText:j,fontSize:H,motionDurationSlow:G,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:F,borderRadiusSM:V,colorTextLightSolid:R,cellHoverBg:N,timeColumnHeight:A,timeColumnWidth:q,timeCellHeight:_,controlItemBgActive:L,marginXXS:W,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:U}=e,X=e.calc(u).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:x,outline:"none","&-focused":{borderColor:C},"&-rtl":{[`${t}-prev-icon,
              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:X},"&-header":{display:"flex",padding:`0 ${ge(v)}`,color:E,borderBottom:`${ge(p)} ${b} ${y}`,"> *":{flex:"none"},button:{padding:0,color:$,lineHeight:ge(O),background:"transparent",border:0,cursor:"pointer",transition:`color ${T}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:H,"&:hover":{color:M},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:D,lineHeight:ge(O),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:v},"&:hover":{color:C}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:w,borderInlineStartWidth:w,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(z).mul(2)).equal(),color:j,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ge(z)} 0`,color:P,cursor:"pointer","&-in-view":{color:j}},_5(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${ge(v)}`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},"&-decade-panel":{[r]:{padding:`0 ${ge(e.calc(v).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${ge(v)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${ge(v)} ${ge(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
            &-selected ${r},
            ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${T}`},"&:first-child:before":{borderStartStartRadius:V,borderEndStartRadius:V},"&:last-child:before":{borderStartEndRadius:V,borderEndEndRadius:V}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:C},[`&${t}-cell-week`]:{color:new gn(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:L}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ge(v)} ${ge(d)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ge(p)} ${b} ${y}`},[`${t}-date-panel,
          ${t}-time-panel`]:{transition:`opacity ${G}`},"&-active":{[`${t}-date-panel,
            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:q,margin:`${ge(m)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${T}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ge(_)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ge(p)} ${b} ${y}`},"&-active":{background:new gn(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:W,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(q).sub(e.calc(W).mul(2)).equal(),height:_,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(q).sub(_).div(2).equal(),color:j,lineHeight:ge(_),borderRadius:V,cursor:"pointer",transition:`background ${T}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},D5=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:s,colorPrimary:u,cellActiveWithRangeBg:d,colorPrimaryBorder:v,lineType:m,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ge(r)} ${m} ${g}`,"&-extra":{padding:`0 ${ge(o)}`,lineHeight:ge(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ge(r)} ${m} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ge(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ge(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:u,background:d,borderColor:v,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},I5=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},P5=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:s,lineWidth:u}=e,d=s*2,v=u*2,m=Math.min(n-d,n-v),g=Math.min(r-d,r-v),p=Math.min(o-d,o-v);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new gn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new gn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightSM:g,multipleItemHeightLG:p,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},A5=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wc(e)),P5(e)),r$(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),z5=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},J$(e)),a2(e)),n2(e)),e2(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ge(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ge(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Eg=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),s=e.max(e.calc(t).sub(o).div(2).equal(),0),u=e.max(e.calc(t).sub(o).sub(s).equal(),0);return{padding:`${ge(s)} ${ge(r)} ${ge(u)}`}},j5=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},H5=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:s,lineType:u,colorBorder:d,borderRadius:v,motionDurationMid:m,colorTextDisabled:g,colorTextPlaceholder:p,controlHeightLG:b,fontSizeLG:x,controlHeightSM:C,paddingInlineSM:E,paddingXS:y,marginXS:w,colorIcon:$,lineWidthBold:O,colorPrimary:T,motionDurationSlow:M,zIndexPopup:D,paddingXXS:I,sizePopupArrow:z,colorBgElevated:P,borderRadiusLG:j,boxShadowSecondary:H,borderRadiusSM:G,colorSplit:k,cellHoverBg:F,presetsWidth:V,presetsMaxWidth:R,boxShadowPopoverArrow:N,fontHeight:A,fontHeightLG:q,lineHeightLG:_}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Cr(e)),Eg(e,r,A,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:v,transition:`border ${m}, box-shadow ${m}, background ${m}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${m}`},o2(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:g,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:p}}},"&-large":Object.assign(Object.assign({},Eg(e,b,q,o)),{[`${t}-input > input`]:{fontSize:x,lineHeight:_}}),"&-small":Object.assign({},Eg(e,C,A,E)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:g,lineHeight:1,pointerEvents:"none",transition:`opacity ${m}, color ${m}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${m}, color ${m}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:x,color:g,fontSize:x,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:$},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(s).mul(-1).equal(),height:O,background:T,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ge(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:E}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Cr(e)),N5(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:D,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
            &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
            &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:pp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:gp},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:bp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:hp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},a$(e,P,N)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:j,boxShadow:H,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:V,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${ge(s)} ${u} ${k}`,li:Object.assign(Object.assign({},wi),{borderRadius:G,paddingInline:y,paddingBlock:e.calc(C).sub(A).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:w},"&:hover":{background:F}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:d}}}}),"&-dropdown-range":{padding:`${ge(e.calc(z).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Pl(e,"slide-up"),Pl(e,"slide-down"),Qf(e,"move-up"),Qf(e,"move-down")]},f2=gr("DatePicker",e=>{const t=Sn(qc(e),I5(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[D5(t),H5(t),z5(t),j5(t),T5(t),wd(e,{focusElCls:`${e.componentCls}-focused`})]},A5);var L5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},B5=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:L5}))},F5=c.forwardRef(B5);const Pd=c.createContext(null);var V5=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,s=t.indicator,u=s===void 0?{}:s,d=u.size,v=u.align,m=v===void 0?"center":v,g=c.useState(),p=ee(g,2),b=p[0],x=p[1],C=c.useRef(),E=Ie.useCallback(function(w){return typeof d=="function"?d(w):typeof d=="number"?d:w},[d]);function y(){kt.cancel(C.current)}return c.useEffect(function(){var w={};if(n)if(r){w.width=E(n.width);var $=o?"right":"left";m==="start"&&(w[$]=n[$]),m==="center"&&(w[$]=n[$]+n.width/2,w.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&(w[$]=n[$]+n.width,w.transform="translateX(-100%)")}else w.height=E(n.height),m==="start"&&(w.top=n.top),m==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),m==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return y(),C.current=kt(function(){var O=b&&w&&Object.keys(w).every(function(T){var M=w[T],D=b[T];return typeof M=="number"&&typeof D=="number"?Math.round(M)===Math.round(D):M===D});O||x(w)}),y},[JSON.stringify(n),r,o,m,E]),{style:b}},W1={width:0,height:0,left:0,top:0};function k5(e,t,n){return c.useMemo(function(){for(var r,o=new Map,s=t.get((r=e[0])===null||r===void 0?void 0:r.key)||W1,u=s.left+s.width,d=0;d<e.length;d+=1){var v=e[d].key,m=t.get(v);if(!m){var g;m=t.get((g=e[d-1])===null||g===void 0?void 0:g.key)||W1}var p=o.get(v)||J({},m);p.right=u-p.left-p.width,o.set(v,p)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function G1(e,t){var n=c.useRef(e),r=c.useState({}),o=ee(r,2),s=o[1];function u(d){var v=typeof d=="function"?d(n.current):d;v!==n.current&&t(v,n.current),n.current=v,s({})}return[n.current,u]}var U5=.1,Y1=.01,Lf=20,K1=Math.pow(.995,Lf);function q5(e,t){var n=c.useState(),r=ee(n,2),o=r[0],s=r[1],u=c.useState(0),d=ee(u,2),v=d[0],m=d[1],g=c.useState(0),p=ee(g,2),b=p[0],x=p[1],C=c.useState(),E=ee(C,2),y=E[0],w=E[1],$=c.useRef();function O(P){var j=P.touches[0],H=j.screenX,G=j.screenY;s({x:H,y:G}),window.clearInterval($.current)}function T(P){if(o){var j=P.touches[0],H=j.screenX,G=j.screenY;s({x:H,y:G});var k=H-o.x,F=G-o.y;t(k,F);var V=Date.now();m(V),x(V-v),w({x:k,y:F})}}function M(){if(o&&(s(null),w(null),y)){var P=y.x/b,j=y.y/b,H=Math.abs(P),G=Math.abs(j);if(Math.max(H,G)<U5)return;var k=P,F=j;$.current=window.setInterval(function(){if(Math.abs(k)<Y1&&Math.abs(F)<Y1){window.clearInterval($.current);return}k*=K1,F*=K1,t(k*Lf,F*Lf)},Lf)}}var D=c.useRef();function I(P){var j=P.deltaX,H=P.deltaY,G=0,k=Math.abs(j),F=Math.abs(H);k===F?G=D.current==="x"?j:H:k>F?(G=j,D.current="x"):(G=H,D.current="y"),t(-G,-G)&&P.preventDefault()}var z=c.useRef(null);z.current={onTouchStart:O,onTouchMove:T,onTouchEnd:M,onWheel:I},c.useEffect(function(){function P(k){z.current.onTouchStart(k)}function j(k){z.current.onTouchMove(k)}function H(k){z.current.onTouchEnd(k)}function G(k){z.current.onWheel(k)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",H,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",G,{passive:!1}),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",H)}},[])}function d2(e){var t=c.useState(0),n=ee(t,2),r=n[0],o=n[1],s=c.useRef(0),u=c.useRef();return u.current=e,Uf(function(){var d;(d=u.current)===null||d===void 0||d.call(u)},[r]),function(){s.current===r&&(s.current+=1,o(s.current))}}function W5(e){var t=c.useRef([]),n=c.useState({}),r=ee(n,2),o=r[1],s=c.useRef(typeof e=="function"?e():e),u=d2(function(){var v=s.current;t.current.forEach(function(m){v=m(v)}),t.current=[],s.current=v,o({})});function d(v){t.current.push(v),u()}return[s.current,d]}var X1={width:0,height:0,left:0,top:0,right:0};function G5(e,t,n,r,o,s,u){var d=u.tabs,v=u.tabPosition,m=u.rtl,g,p,b;return["top","bottom"].includes(v)?(g="width",p=m?"right":"left",b=Math.abs(n)):(g="height",p="top",b=-n),c.useMemo(function(){if(!d.length)return[0,0];for(var x=d.length,C=x,E=0;E<x;E+=1){var y=e.get(d[E].key)||X1;if(Math.floor(y[p]+y[g])>Math.floor(b+t)){C=E-1;break}}for(var w=0,$=x-1;$>=0;$-=1){var O=e.get(d[$].key)||X1;if(O[p]<b){w=$+1;break}}return w>=C?[0,0]:[w,C]},[e,t,r,o,s,b,v,d.map(function(x){return x.key}).join("_"),m])}function Q1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Y5="TABS_DQ";function v2(e){return String(e).replace(/"/g,Y5)}function Up(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var m2=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,s=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:s,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(d){r.onEdit("add",{event:d})}},r.addIcon||"+")}),Z1=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var s,u={};return vt(o)==="object"&&!c.isValidElement(o)?u=o:u.right=o,n==="right"&&(s=u.right),n==="left"&&(s=u.left),s?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},s):null}),K5=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,s=e.locale,u=e.mobile,d=e.more,v=d===void 0?{}:d,m=e.style,g=e.className,p=e.editable,b=e.tabBarGutter,x=e.rtl,C=e.removeAriaLabel,E=e.onTabClick,y=e.getPopupContainer,w=e.popupClassName,$=c.useState(!1),O=ee($,2),T=O[0],M=O[1],D=c.useState(null),I=ee(D,2),z=I[0],P=I[1],j=v.icon,H=j===void 0?"More":j,G="".concat(r,"-more-popup"),k="".concat(n,"-dropdown"),F=z!==null?"".concat(G,"-").concat(z):null,V=s==null?void 0:s.dropdownAriaLabel;function R(Y,U){Y.preventDefault(),Y.stopPropagation(),p.onEdit("remove",{key:U,event:Y})}var N=c.createElement(kc,{onClick:function(U){var X=U.key,Z=U.domEvent;E(X,Z),M(!1)},prefixCls:"".concat(k,"-menu"),id:G,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[z],"aria-label":V!==void 0?V:"expanded dropdown"},o.map(function(Y){var U=Y.closable,X=Y.disabled,Z=Y.closeIcon,te=Y.key,ne=Y.label,re=Up(U,Z,p,X);return c.createElement(Md,{key:te,id:"".concat(G,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:X},c.createElement("span",null,ne),re&&c.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),R(oe,te)}},Z||p.removeIcon||"×"))}));function A(Y){for(var U=o.filter(function(re){return!re.disabled}),X=U.findIndex(function(re){return re.key===z})||0,Z=U.length,te=0;te<Z;te+=1){X=(X+Y+Z)%Z;var ne=U[X];if(!ne.disabled){P(ne.key);return}}}function q(Y){var U=Y.which;if(!T){[bt.DOWN,bt.SPACE,bt.ENTER].includes(U)&&(M(!0),Y.preventDefault());return}switch(U){case bt.UP:A(-1),Y.preventDefault();break;case bt.DOWN:A(1),Y.preventDefault();break;case bt.ESC:M(!1);break;case bt.SPACE:case bt.ENTER:z!==null&&E(z,Y);break}}c.useEffect(function(){var Y=document.getElementById(F);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[z]),c.useEffect(function(){T||P(null)},[T]);var _=Q({},x?"marginRight":"marginLeft",b);o.length||(_.visibility="hidden",_.order=1);var L=me(Q({},"".concat(k,"-rtl"),x)),W=u?null:c.createElement(aj,Ae({prefixCls:k,overlay:N,visible:o.length?T:!1,onVisibleChange:M,overlayClassName:me(L,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},v),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:_,"aria-haspopup":"listbox","aria-controls":G,id:"".concat(r,"-more"),"aria-expanded":T,onKeyDown:q},H));return c.createElement("div",{className:me("".concat(n,"-nav-operations"),g),style:m,ref:t},W,c.createElement(m2,{prefixCls:n,locale:s,editable:p}))});const X5=c.memo(K5,function(e,t){return t.tabMoving});var Q5=function(t){var n=t.prefixCls,r=t.id,o=t.active,s=t.focus,u=t.tab,d=u.key,v=u.label,m=u.disabled,g=u.closeIcon,p=u.icon,b=t.closable,x=t.renderWrapper,C=t.removeAriaLabel,E=t.editable,y=t.onClick,w=t.onFocus,$=t.onBlur,O=t.onKeyDown,T=t.onMouseDown,M=t.onMouseUp,D=t.style,I=t.tabCount,z=t.currentPosition,P="".concat(n,"-tab"),j=Up(b,g,E,m);function H(R){m||y(R)}function G(R){R.preventDefault(),R.stopPropagation(),E.onEdit("remove",{key:d,event:R})}var k=c.useMemo(function(){return p&&typeof v=="string"?c.createElement("span",null,v):v},[v,p]),F=c.useRef(null);c.useEffect(function(){s&&F.current&&F.current.focus()},[s]);var V=c.createElement("div",{key:d,"data-node-key":v2(d),className:me(P,Q(Q(Q(Q({},"".concat(P,"-with-remove"),j),"".concat(P,"-active"),o),"".concat(P,"-disabled"),m),"".concat(P,"-focus"),s)),style:D,onClick:H},c.createElement("div",{ref:F,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(d),className:"".concat(P,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(d),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(N){N.stopPropagation(),H(N)},onKeyDown:O,onMouseDown:T,onMouseUp:M,onFocus:w,onBlur:$},s&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(z," of ").concat(I)),p&&c.createElement("span",{className:"".concat(P,"-icon")},p),v&&k),j&&c.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:o?0:-1,className:"".concat(P,"-remove"),onClick:function(N){N.stopPropagation(),G(N)}},g||E.removeIcon||"×"));return x?x(V):V},Z5=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,s=t.offsetTop,u=t.offsetLeft,d=t.getBoundingClientRect(),v=d.width,m=d.height,g=d.left,p=d.top;return Math.abs(v-r)<1?[v,m,g-n.left,p-n.top]:[r,o,u,s]},xl=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,s=n.offsetHeight,u=s===void 0?0:s;if(t.current){var d=t.current.getBoundingClientRect(),v=d.width,m=d.height;if(Math.abs(v-o)<1)return[v,m]}return[o,u]},mf=function(t,n){return t[n?0:1]},J1=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,s=e.animated,u=e.activeKey,d=e.rtl,v=e.extra,m=e.editable,g=e.locale,p=e.tabPosition,b=e.tabBarGutter,x=e.children,C=e.onTabClick,E=e.onTabScroll,y=e.indicator,w=c.useContext(Pd),$=w.prefixCls,O=w.tabs,T=c.useRef(null),M=c.useRef(null),D=c.useRef(null),I=c.useRef(null),z=c.useRef(null),P=c.useRef(null),j=c.useRef(null),H=p==="top"||p==="bottom",G=G1(0,function(nt,Ve){H&&E&&E({direction:nt>Ve?"left":"right"})}),k=ee(G,2),F=k[0],V=k[1],R=G1(0,function(nt,Ve){!H&&E&&E({direction:nt>Ve?"top":"bottom"})}),N=ee(R,2),A=N[0],q=N[1],_=c.useState([0,0]),L=ee(_,2),W=L[0],Y=L[1],U=c.useState([0,0]),X=ee(U,2),Z=X[0],te=X[1],ne=c.useState([0,0]),re=ee(ne,2),le=re[0],oe=re[1],ie=c.useState([0,0]),ce=ee(ie,2),de=ce[0],ue=ce[1],fe=W5(new Map),xe=ee(fe,2),pe=xe[0],Ne=xe[1],De=k5(O,pe,Z[0]),Re=mf(W,H),Le=mf(Z,H),Ee=mf(le,H),Me=mf(de,H),Fe=Math.floor(Re)<Math.floor(Le+Ee),Te=Fe?Re-Me:Re-Ee,Ye="".concat($,"-nav-operations-hidden"),Xe=0,He=0;H&&d?(Xe=0,He=Math.max(0,Le-Te)):(Xe=Math.min(0,Te-Le),He=0);function Ze(nt){return nt<Xe?Xe:nt>He?He:nt}var et=c.useRef(null),Ge=c.useState(),qe=ee(Ge,2),ye=qe[0],Oe=qe[1];function $e(){Oe(Date.now())}function Se(){et.current&&clearTimeout(et.current)}q5(I,function(nt,Ve){function ht(It,Xt){It(function(Jt){var On=Ze(Jt+Xt);return On})}return Fe?(H?ht(V,nt):ht(q,Ve),Se(),$e(),!0):!1}),c.useEffect(function(){return Se(),ye&&(et.current=setTimeout(function(){Oe(0)},100)),Se},[ye]);var Be=G5(De,Te,H?F:A,Le,Ee,Me,J(J({},e),{},{tabs:O})),mt=ee(Be,2),Ot=mt[0],Dt=mt[1],Kt=tn(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ve=De.get(nt)||{width:0,height:0,left:0,right:0,top:0};if(H){var ht=F;d?Ve.right<F?ht=Ve.right:Ve.right+Ve.width>F+Te&&(ht=Ve.right+Ve.width-Te):Ve.left<-F?ht=-Ve.left:Ve.left+Ve.width>-F+Te&&(ht=-(Ve.left+Ve.width-Te)),q(0),V(Ze(ht))}else{var It=A;Ve.top<-A?It=-Ve.top:Ve.top+Ve.height>-A+Te&&(It=-(Ve.top+Ve.height-Te)),V(0),q(Ze(It))}}),zt=c.useState(),Tt=ee(zt,2),Rt=Tt[0],gt=Tt[1],at=c.useState(!1),tt=ee(at,2),Qe=tt[0],Ct=tt[1],yt=O.filter(function(nt){return!nt.disabled}).map(function(nt){return nt.key}),We=function(Ve){var ht=yt.indexOf(Rt||u),It=yt.length,Xt=(ht+Ve+It)%It,Jt=yt[Xt];gt(Jt)},Ke=function(Ve){var ht=Ve.code,It=d&&H,Xt=yt[0],Jt=yt[yt.length-1];switch(ht){case"ArrowLeft":{H&&We(It?1:-1);break}case"ArrowRight":{H&&We(It?-1:1);break}case"ArrowUp":{Ve.preventDefault(),H||We(-1);break}case"ArrowDown":{Ve.preventDefault(),H||We(1);break}case"Home":{Ve.preventDefault(),gt(Xt);break}case"End":{Ve.preventDefault(),gt(Jt);break}case"Enter":case"Space":{Ve.preventDefault(),C(Rt??u,Ve);break}case"Backspace":case"Delete":{var On=yt.indexOf(Rt),cn=O.find(function(Cn){return Cn.key===Rt}),dn=Up(cn==null?void 0:cn.closable,cn==null?void 0:cn.closeIcon,m,cn==null?void 0:cn.disabled);dn&&(Ve.preventDefault(),Ve.stopPropagation(),m.onEdit("remove",{key:Rt,event:Ve}),On===yt.length-1?We(-1):We(1));break}}},it={};H?it[d?"marginRight":"marginLeft"]=b:it.marginTop=b;var ft=O.map(function(nt,Ve){var ht=nt.key;return c.createElement(Q5,{id:o,prefixCls:$,key:ht,tab:nt,style:Ve===0?void 0:it,closable:nt.closable,editable:m,active:ht===u,focus:ht===Rt,renderWrapper:x,removeAriaLabel:g==null?void 0:g.removeAriaLabel,tabCount:yt.length,currentPosition:Ve+1,onClick:function(Xt){C(ht,Xt)},onKeyDown:Ke,onFocus:function(){Qe||gt(ht),Kt(ht),$e(),I.current&&(d||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:function(){gt(void 0)},onMouseDown:function(){Ct(!0)},onMouseUp:function(){Ct(!1)}})}),st=function(){return Ne(function(){var Ve,ht=new Map,It=(Ve=z.current)===null||Ve===void 0?void 0:Ve.getBoundingClientRect();return O.forEach(function(Xt){var Jt,On=Xt.key,cn=(Jt=z.current)===null||Jt===void 0?void 0:Jt.querySelector('[data-node-key="'.concat(v2(On),'"]'));if(cn){var dn=Z5(cn,It),Cn=ee(dn,4),ar=Cn[0],xr=Cn[1],zn=Cn[2],un=Cn[3];ht.set(On,{width:ar,height:xr,left:zn,top:un})}}),ht})};c.useEffect(function(){st()},[O.map(function(nt){return nt.key}).join("_")]);var dt=d2(function(){var nt=xl(T),Ve=xl(M),ht=xl(D);Y([nt[0]-Ve[0]-ht[0],nt[1]-Ve[1]-ht[1]]);var It=xl(j);oe(It);var Xt=xl(P);ue(Xt);var Jt=xl(z);te([Jt[0]-It[0],Jt[1]-It[1]]),st()}),Vt=O.slice(0,Ot),jt=O.slice(Dt+1),Lt=[].concat(je(Vt),je(jt)),Ht=De.get(u),Ft=V5({activeTabOffset:Ht,horizontal:H,indicator:y,rtl:d}),nn=Ft.style;c.useEffect(function(){Kt()},[u,Xe,He,Q1(Ht),Q1(De),H]),c.useEffect(function(){dt()},[d]);var wt=!!Lt.length,$n="".concat($,"-nav-wrap"),ln,rn,Ue,lt;return H?d?(rn=F>0,ln=F!==He):(ln=F<0,rn=F!==Xe):(Ue=A<0,lt=A!==Xe),c.createElement(Lr,{onResize:dt},c.createElement("div",{ref:Mi(t,T),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:me("".concat($,"-nav"),n),style:r,onKeyDown:function(){$e()}},c.createElement(Z1,{ref:M,position:"left",extra:v,prefixCls:$}),c.createElement(Lr,{onResize:dt},c.createElement("div",{className:me($n,Q(Q(Q(Q({},"".concat($n,"-ping-left"),ln),"".concat($n,"-ping-right"),rn),"".concat($n,"-ping-top"),Ue),"".concat($n,"-ping-bottom"),lt)),ref:I},c.createElement(Lr,{onResize:dt},c.createElement("div",{ref:z,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(A,"px)"),transition:ye?"none":void 0}},ft,c.createElement(m2,{ref:j,prefixCls:$,locale:g,editable:m,style:J(J({},ft.length===0?void 0:it),{},{visibility:wt?"hidden":null})}),c.createElement("div",{className:me("".concat($,"-ink-bar"),Q({},"".concat($,"-ink-bar-animated"),s.inkBar)),style:nn}))))),c.createElement(X5,Ae({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:P,prefixCls:$,tabs:Lt,className:!wt&&Ye,tabMoving:!!ye})),c.createElement(Z1,{ref:D,position:"right",extra:v,prefixCls:$})))}),g2=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,s=e.id,u=e.active,d=e.tabKey,v=e.children;return c.createElement("div",{id:s&&"".concat(s,"-panel-").concat(d),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(d),"aria-hidden":!u,style:o,className:me(n,u&&"".concat(n,"-active"),r),ref:t},v)}),J5=["renderTabBar"],eL=["label","key"],tL=function(t){var n=t.renderTabBar,r=Et(t,J5),o=c.useContext(Pd),s=o.tabs;if(n){var u=J(J({},r),{},{panes:s.map(function(d){var v=d.label,m=d.key,g=Et(d,eL);return c.createElement(g2,Ae({tab:v,key:m,tabKey:m},g))})});return n(u,J1)}return c.createElement(J1,r)},nL=["key","forceRender","style","className","destroyInactiveTabPane"],rL=function(t){var n=t.id,r=t.activeKey,o=t.animated,s=t.tabPosition,u=t.destroyInactiveTabPane,d=c.useContext(Pd),v=d.prefixCls,m=d.tabs,g=o.tabPane,p="".concat(v,"-tabpane");return c.createElement("div",{className:me("".concat(v,"-content-holder"))},c.createElement("div",{className:me("".concat(v,"-content"),"".concat(v,"-content-").concat(s),Q({},"".concat(v,"-content-animated"),g))},m.map(function(b){var x=b.key,C=b.forceRender,E=b.style,y=b.className,w=b.destroyInactiveTabPane,$=Et(b,nL),O=x===r;return c.createElement(Go,Ae({key:x,visible:O,forceRender:C,removeOnLeave:!!(u||w),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(T,M){var D=T.style,I=T.className;return c.createElement(g2,Ae({},$,{prefixCls:p,id:n,tabKey:x,animated:g,active:O,style:J(J({},E),D),className:me(y,I),ref:M}))})})))};function aL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=J({inkBar:!0},vt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var oL=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],ex=0,iL=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,s=e.className,u=e.items,d=e.direction,v=e.activeKey,m=e.defaultActiveKey,g=e.editable,p=e.animated,b=e.tabPosition,x=b===void 0?"top":b,C=e.tabBarGutter,E=e.tabBarStyle,y=e.tabBarExtraContent,w=e.locale,$=e.more,O=e.destroyInactiveTabPane,T=e.renderTabBar,M=e.onChange,D=e.onTabClick,I=e.onTabScroll,z=e.getPopupContainer,P=e.popupClassName,j=e.indicator,H=Et(e,oL),G=c.useMemo(function(){return(u||[]).filter(function(de){return de&&vt(de)==="object"&&"key"in de})},[u]),k=d==="rtl",F=aL(p),V=c.useState(!1),R=ee(V,2),N=R[0],A=R[1];c.useEffect(function(){A(Op())},[]);var q=An(function(){var de;return(de=G[0])===null||de===void 0?void 0:de.key},{value:v,defaultValue:m}),_=ee(q,2),L=_[0],W=_[1],Y=c.useState(function(){return G.findIndex(function(de){return de.key===L})}),U=ee(Y,2),X=U[0],Z=U[1];c.useEffect(function(){var de=G.findIndex(function(fe){return fe.key===L});if(de===-1){var ue;de=Math.max(0,Math.min(X,G.length-1)),W((ue=G[de])===null||ue===void 0?void 0:ue.key)}Z(de)},[G.map(function(de){return de.key}).join("_"),L,X]);var te=An(null,{value:n}),ne=ee(te,2),re=ne[0],le=ne[1];c.useEffect(function(){n||(le("rc-tabs-".concat(ex)),ex+=1)},[]);function oe(de,ue){D==null||D(de,ue);var fe=de!==L;W(de),fe&&(M==null||M(de))}var ie={id:re,activeKey:L,animated:F,tabPosition:x,rtl:k,mobile:N},ce=J(J({},ie),{},{editable:g,locale:w,more:$,tabBarGutter:C,onTabClick:oe,onTabScroll:I,extra:y,style:E,panes:null,getPopupContainer:z,popupClassName:P,indicator:j});return c.createElement(Pd.Provider,{value:{tabs:G,prefixCls:o}},c.createElement("div",Ae({ref:t,id:n,className:me(o,"".concat(o,"-").concat(x),Q(Q(Q({},"".concat(o,"-mobile"),N),"".concat(o,"-editable"),g),"".concat(o,"-rtl"),k),s)},H),c.createElement(tL,Ae({},ce,{renderTabBar:T})),c.createElement(rL,Ae({destroyInactiveTabPane:O},ie,{animated:F}))))});const lL={motionAppear:!1,motionEnter:!0,motionLeave:!0};function sL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},lL),{motionName:dp(e,"switch")})),n}var cL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function uL(e){return e.filter(t=>t)}function fL(e,t){if(e)return e;const n=ja(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:s}=r,u=s||{},{tab:d}=u,v=cL(u,["tab"]);return Object.assign(Object.assign({key:String(o)},v),{label:d})}return null});return uL(n)}const dL=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Pl(e,"slide-up"),Pl(e,"slide-down")]]},vL=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:s,itemSelectedColor:u}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ge(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:u,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},vd(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ge(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ge(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge(e.borderRadiusLG)} 0 0 ${ge(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},mL=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Cr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ge(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ge(e.paddingXXS)} ${ge(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},gL=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:s,verticalItemMargin:u,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ge(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:u},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ge(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},hL=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ge(e.borderRadius)} ${ge(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ge(e.borderRadius)} ${ge(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge(e.borderRadius)} ${ge(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge(e.borderRadius)} 0 0 ${ge(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},pL=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:s,horizontalItemPadding:u,itemSelectedColor:d,itemColor:v}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:u,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:v,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},yc(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:d,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn`]:Object.assign({},vd(e)),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:s}}}},bL=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:s}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ge(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ge(e.marginXS)},marginLeft:{_skip_check_:!0,value:ge(s(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},yL=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:s,itemActiveColor:u,colorBorderSecondary:d}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Cr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:ge(e.paddingXS),background:"transparent",border:`${ge(e.lineWidth)} ${e.lineType} ${d}`,borderRadius:`${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:u}},yc(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),pL(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},yc(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},SL=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},CL=gr("Tabs",e=>{const t=Sn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ge(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ge(e.horizontalItemGutter)}`});return[hL(t),bL(t),gL(t),mL(t),vL(t),yL(t),dL(t)]},SL),xL=()=>null;var wL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h2=e=>{var t,n,r,o,s,u,d,v,m,g,p;const{type:b,className:x,rootClassName:C,size:E,onEdit:y,hideAdd:w,centered:$,addIcon:O,removeIcon:T,moreIcon:M,more:D,popupClassName:I,children:z,items:P,animated:j,style:H,indicatorSize:G,indicator:k}=e,F=wL(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:V}=F,{direction:R,tabs:N,getPrefixCls:A,getPopupContainer:q}=c.useContext(Wt),_=A("tabs",V),L=Jr(_),[W,Y,U]=CL(_,L);let X;b==="editable-card"&&(X={onEdit:(ie,ce)=>{let{key:de,event:ue}=ce;y==null||y(ie==="add"?ue:de,ie)},removeIcon:(t=T??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:c.createElement(up,null),addIcon:(O??(N==null?void 0:N.addIcon))||c.createElement(F5,null),showAdd:w!==!0});const Z=A(),te=Ra(E),ne=fL(P,z),re=sL(_,j),le=Object.assign(Object.assign({},N==null?void 0:N.style),H),oe={align:(n=k==null?void 0:k.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(d=(s=(o=k==null?void 0:k.size)!==null&&o!==void 0?o:G)!==null&&s!==void 0?s:(u=N==null?void 0:N.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:N==null?void 0:N.indicatorSize};return W(c.createElement(iL,Object.assign({direction:R,getPopupContainer:q},F,{items:ne,className:me({[`${_}-${te}`]:te,[`${_}-card`]:["card","editable-card"].includes(b),[`${_}-editable-card`]:b==="editable-card",[`${_}-centered`]:$},N==null?void 0:N.className,x,C,Y,U,L),popupClassName:me(I,Y,U,L),style:le,editable:X,more:Object.assign({icon:(p=(g=(m=(v=N==null?void 0:N.more)===null||v===void 0?void 0:v.icon)!==null&&m!==void 0?m:N==null?void 0:N.moreIcon)!==null&&g!==void 0?g:M)!==null&&p!==void 0?p:c.createElement(Vj,null),transitionName:`${Z}-slide-up`},D),prefixCls:_,animated:re,indicator:oe})))};h2.TabPane=xL;var EL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const p2=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=EL(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=c.useContext(Wt),u=s("card",t),d=me(`${u}-grid`,n,{[`${u}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},o,{className:d}))},$L=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:s}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ge(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0 0`},Ic()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wi),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},OL=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${ge(o)} 0 0 0 ${n},
      0 ${ge(o)} 0 0 ${n},
      ${ge(o)} ${ge(o)} 0 0 ${n},
      ${ge(o)} 0 0 0 ${n} inset,
      0 ${ge(o)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},RL=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:s,actionsBg:u}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:u,borderTop:`${ge(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)}`},Ic()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ge(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:ge(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ge(e.lineWidth)} ${e.lineType} ${s}`}}})},ML=e=>Object.assign(Object.assign({margin:`${ge(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ic()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},wi),"&-description":{color:e.colorTextDescription}}),TL=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${ge(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ge(e.padding)} ${ge(o)}`}}},_L=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},NL=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:s,bodyPadding:u,extraColor:d}=e;return{[t]:Object.assign(Object.assign({},Cr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:$L(e),[`${t}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:u,borderRadius:`0 0 ${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)}`},Ic()),[`${t}-grid`]:OL(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:RL(e),[`${t}-meta`]:ML(e)}),[`${t}-bordered`]:{border:`${ge(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ge(e.borderRadiusLG)} ${ge(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:TL(e),[`${t}-loading`]:_L(e),[`${t}-rtl`]:{direction:"rtl"}}},DL=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${ge(r)}`,fontSize:s,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},IL=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},PL=gr("Card",e=>{const t=Sn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[NL(t),DL(t)]},IL);var tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AL=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((o,s)=>{const u=`action-${s}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:u},c.createElement("span",null,o))}))},zL=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,extra:u,headStyle:d={},bodyStyle:v={},title:m,loading:g,bordered:p,variant:b,size:x,type:C,cover:E,actions:y,tabList:w,children:$,activeTabKey:O,defaultActiveTabKey:T,tabBarExtraContent:M,hoverable:D,tabProps:I={},classNames:z,styles:P}=e,j=tx(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:H,direction:G,card:k}=c.useContext(Wt),[F]=Vl("card",b,p),V=De=>{var Re;(Re=e.onTabChange)===null||Re===void 0||Re.call(e,De)},R=De=>{var Re;return me((Re=k==null?void 0:k.classNames)===null||Re===void 0?void 0:Re[De],z==null?void 0:z[De])},N=De=>{var Re;return Object.assign(Object.assign({},(Re=k==null?void 0:k.styles)===null||Re===void 0?void 0:Re[De]),P==null?void 0:P[De])},A=c.useMemo(()=>{let De=!1;return c.Children.forEach($,Re=>{(Re==null?void 0:Re.type)===p2&&(De=!0)}),De},[$]),q=H("card",n),[_,L,W]=PL(q),Y=c.createElement(oo,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),U=O!==void 0,X=Object.assign(Object.assign({},I),{[U?"activeKey":"defaultActiveKey"]:U?O:T,tabBarExtraContent:M});let Z;const te=Ra(x),ne=!te||te==="default"?"large":te,re=w?c.createElement(h2,Object.assign({size:ne},X,{className:`${q}-head-tabs`,onChange:V,items:w.map(De=>{var{tab:Re}=De,Le=tx(De,["tab"]);return Object.assign({label:Re},Le)})})):null;if(m||u||re){const De=me(`${q}-head`,R("header")),Re=me(`${q}-head-title`,R("title")),Le=me(`${q}-extra`,R("extra")),Ee=Object.assign(Object.assign({},d),N("header"));Z=c.createElement("div",{className:De,style:Ee},c.createElement("div",{className:`${q}-head-wrapper`},m&&c.createElement("div",{className:Re,style:N("title")},m),u&&c.createElement("div",{className:Le,style:N("extra")},u)),re)}const le=me(`${q}-cover`,R("cover")),oe=E?c.createElement("div",{className:le,style:N("cover")},E):null,ie=me(`${q}-body`,R("body")),ce=Object.assign(Object.assign({},v),N("body")),de=c.createElement("div",{className:ie,style:ce},g?Y:$),ue=me(`${q}-actions`,R("actions")),fe=y!=null&&y.length?c.createElement(AL,{actionClasses:ue,actionStyle:N("actions"),actions:y}):null,xe=ur(j,["onTabChange"]),pe=me(q,k==null?void 0:k.className,{[`${q}-loading`]:g,[`${q}-bordered`]:F!=="borderless",[`${q}-hoverable`]:D,[`${q}-contain-grid`]:A,[`${q}-contain-tabs`]:w==null?void 0:w.length,[`${q}-${te}`]:te,[`${q}-type-${C}`]:!!C,[`${q}-rtl`]:G==="rtl"},r,o,L,W),Ne=Object.assign(Object.assign({},k==null?void 0:k.style),s);return _(c.createElement("div",Object.assign({ref:t},xe,{className:pe,style:Ne}),Z,oe,de,fe))});var jL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HL=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:s}=e,u=jL(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:d}=c.useContext(Wt),v=d("card",t),m=me(`${v}-meta`,n),g=r?c.createElement("div",{className:`${v}-meta-avatar`},r):null,p=o?c.createElement("div",{className:`${v}-meta-title`},o):null,b=s?c.createElement("div",{className:`${v}-meta-description`},s):null,x=p||b?c.createElement("div",{className:`${v}-meta-detail`},p,b):null;return c.createElement("div",Object.assign({},u,{className:m}),g,x)},qp=zL;qp.Grid=p2;qp.Meta=HL;const LL=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Cr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Cr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Cr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},vd(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ge(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function BL(e,t){const n=Sn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[LL(n)]}const b2=gr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[BL(n,e)]}),y2=Ie.createContext(null);var FL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VL=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:s,children:u,indeterminate:d=!1,style:v,onMouseEnter:m,onMouseLeave:g,skipGroup:p=!1,disabled:b}=e,x=FL(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:E,checkbox:y}=c.useContext(Wt),w=c.useContext(y2),{isFormItemInput:$}=c.useContext(Mr),O=c.useContext(ma),T=(n=(w==null?void 0:w.disabled)||b)!==null&&n!==void 0?n:O,M=c.useRef(x.value),D=c.useRef(null),I=Br(t,D);c.useEffect(()=>{w==null||w.registerValue(x.value)},[]),c.useEffect(()=>{if(!p)return x.value!==M.current&&(w==null||w.cancelValue(M.current),w==null||w.registerValue(x.value),M.current=x.value),()=>w==null?void 0:w.cancelValue(x.value)},[x.value]),c.useEffect(()=>{var A;!((A=D.current)===null||A===void 0)&&A.input&&(D.current.input.indeterminate=d)},[d]);const z=C("checkbox",r),P=Jr(z),[j,H,G]=b2(z,P),k=Object.assign({},x);w&&!p&&(k.onChange=function(){x.onChange&&x.onChange.apply(x,arguments),w.toggleOption&&w.toggleOption({label:u,value:x.value})},k.name=w.name,k.checked=w.value.includes(x.value));const F=me(`${z}-wrapper`,{[`${z}-rtl`]:E==="rtl",[`${z}-wrapper-checked`]:k.checked,[`${z}-wrapper-disabled`]:T,[`${z}-wrapper-in-form-item`]:$},y==null?void 0:y.className,o,s,G,P,H),V=me({[`${z}-indeterminate`]:d},vp,H),[R,N]=b5(k.onClick);return j(c.createElement(vE,{component:"Checkbox",disabled:T},c.createElement("label",{className:F,style:Object.assign(Object.assign({},y==null?void 0:y.style),v),onMouseEnter:m,onMouseLeave:g,onClick:R},c.createElement(p5,Object.assign({},k,{onClick:N,prefixCls:z,className:V,disabled:T,ref:I})),u!==void 0&&c.createElement("span",{className:`${z}-label`},u))))},S2=c.forwardRef(VL);var kL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UL=c.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:s,className:u,rootClassName:d,style:v,onChange:m}=e,g=kL(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:b}=c.useContext(Wt),[x,C]=c.useState(g.value||n||[]),[E,y]=c.useState([]);c.useEffect(()=>{"value"in g&&C(g.value||[])},[g.value]);const w=c.useMemo(()=>o.map(V=>typeof V=="string"||typeof V=="number"?{label:V,value:V}:V),[o]),$=V=>{y(R=>R.filter(N=>N!==V))},O=V=>{y(R=>[].concat(je(R),[V]))},T=V=>{const R=x.indexOf(V.value),N=je(x);R===-1?N.push(V.value):N.splice(R,1),"value"in g||C(N),m==null||m(N.filter(A=>E.includes(A)).sort((A,q)=>{const _=w.findIndex(W=>W.value===A),L=w.findIndex(W=>W.value===q);return _-L}))},M=p("checkbox",s),D=`${M}-group`,I=Jr(M),[z,P,j]=b2(M,I),H=ur(g,["value","disabled"]),G=o.length?w.map(V=>c.createElement(S2,{prefixCls:M,key:V.value.toString(),disabled:"disabled"in V?V.disabled:g.disabled,value:V.value,checked:x.includes(V.value),onChange:V.onChange,className:`${D}-item`,style:V.style,title:V.title,id:V.id,required:V.required},V.label)):r,k={toggleOption:T,value:x,disabled:g.disabled,name:g.name,registerValue:O,cancelValue:$},F=me(D,{[`${D}-rtl`]:b==="rtl"},u,d,j,I,P);return z(c.createElement("div",Object.assign({className:F,style:v},H,{ref:t}),c.createElement(y2.Provider,{value:k},G)))}),Wp=S2;Wp.Group=UL;Wp.__ANT_CHECKBOX=!0;const C2=c.createContext({});var qL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nx(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const WL=["xs","sm","md","lg","xl","xxl"],x2=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(Wt),{gutter:o,wrap:s}=c.useContext(C2),{prefixCls:u,span:d,order:v,offset:m,push:g,pull:p,className:b,children:x,flex:C,style:E}=e,y=qL(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",u),[$,O,T]=h3(w),M={};let D={};WL.forEach(P=>{let j={};const H=e[P];typeof H=="number"?j.span=H:typeof H=="object"&&(j=H||{}),delete y[P],D=Object.assign(Object.assign({},D),{[`${w}-${P}-${j.span}`]:j.span!==void 0,[`${w}-${P}-order-${j.order}`]:j.order||j.order===0,[`${w}-${P}-offset-${j.offset}`]:j.offset||j.offset===0,[`${w}-${P}-push-${j.push}`]:j.push||j.push===0,[`${w}-${P}-pull-${j.pull}`]:j.pull||j.pull===0,[`${w}-rtl`]:r==="rtl"}),j.flex&&(D[`${w}-${P}-flex`]=!0,M[`--${w}-${P}-flex`]=nx(j.flex))});const I=me(w,{[`${w}-${d}`]:d!==void 0,[`${w}-order-${v}`]:v,[`${w}-offset-${m}`]:m,[`${w}-push-${g}`]:g,[`${w}-pull-${p}`]:p},b,D,O,T),z={};if(o&&o[0]>0){const P=o[0]/2;z.paddingLeft=P,z.paddingRight=P}return C&&(z.flex=nx(C),s===!1&&!z.minWidth&&(z.minWidth=0)),$(c.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},z),E),M),className:I,ref:t}),x))});function GL(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((s,u)=>{if(typeof s=="object"&&s!==null)for(let d=0;d<Ec.length;d++){const v=Ec[d];if(o[v]&&s[v]!==void 0){n[u]=s[v];break}}else n[u]=s}),n}var YL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rx(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<Ec.length;s++){const u=Ec[s];if(!t||!t[u])continue;const d=e[u];if(d!==void 0){r(d);return}}};return c.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const KL=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:s,style:u,children:d,gutter:v=0,wrap:m}=e,g=YL(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:b}=c.useContext(Wt),x=P6(!0,null),C=rx(o,x),E=rx(r,x),y=p("row",n),[w,$,O]=m3(y),T=GL(v,x),M=me(y,{[`${y}-no-wrap`]:m===!1,[`${y}-${E}`]:E,[`${y}-${C}`]:C,[`${y}-rtl`]:b==="rtl"},s,$,O),D={},I=T[0]!=null&&T[0]>0?T[0]/-2:void 0;I&&(D.marginLeft=I,D.marginRight=I);const[z,P]=T;D.rowGap=P;const j=c.useMemo(()=>({gutter:[z,P],wrap:m}),[z,P,m]);return w(c.createElement(C2.Provider,{value:j},c.createElement("div",Object.assign({},g,{className:M,style:Object.assign(Object.assign({},D),u),ref:t}),d)))});function XL(e){return!!(e.addonBefore||e.addonAfter)}function QL(e){return!!(e.prefix||e.suffix||e.allowClear)}function ax(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function td(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=ax(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=ax(t,e,r),n(o);return}n(o)}}function w2(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var E2=Ie.forwardRef(function(e,t){var n,r,o,s=e.inputElement,u=e.children,d=e.prefixCls,v=e.prefix,m=e.suffix,g=e.addonBefore,p=e.addonAfter,b=e.className,x=e.style,C=e.disabled,E=e.readOnly,y=e.focused,w=e.triggerFocus,$=e.allowClear,O=e.value,T=e.handleReset,M=e.hidden,D=e.classes,I=e.classNames,z=e.dataAttrs,P=e.styles,j=e.components,H=e.onClear,G=u??s,k=(j==null?void 0:j.affixWrapper)||"span",F=(j==null?void 0:j.groupWrapper)||"span",V=(j==null?void 0:j.wrapper)||"span",R=(j==null?void 0:j.groupAddon)||"span",N=c.useRef(null),A=function(ue){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(ue.target)&&(w==null||w())},q=QL(e),_=c.cloneElement(G,{value:O,className:me((n=G.props)===null||n===void 0?void 0:n.className,!q&&(I==null?void 0:I.variant))||null}),L=c.useRef(null);if(Ie.useImperativeHandle(t,function(){return{nativeElement:L.current||N.current}}),q){var W=null;if($){var Y=!C&&!E&&O,U="".concat(d,"-clear-icon"),X=vt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";W=Ie.createElement("button",{type:"button",tabIndex:-1,onClick:function(ue){T==null||T(ue),H==null||H()},onMouseDown:function(ue){return ue.preventDefault()},className:me(U,Q(Q({},"".concat(U,"-hidden"),!Y),"".concat(U,"-has-suffix"),!!m))},X)}var Z="".concat(d,"-affix-wrapper"),te=me(Z,Q(Q(Q(Q(Q({},"".concat(d,"-disabled"),C),"".concat(Z,"-disabled"),C),"".concat(Z,"-focused"),y),"".concat(Z,"-readonly"),E),"".concat(Z,"-input-with-clear-btn"),m&&$&&O),D==null?void 0:D.affixWrapper,I==null?void 0:I.affixWrapper,I==null?void 0:I.variant),ne=(m||$)&&Ie.createElement("span",{className:me("".concat(d,"-suffix"),I==null?void 0:I.suffix),style:P==null?void 0:P.suffix},W,m);_=Ie.createElement(k,Ae({className:te,style:P==null?void 0:P.affixWrapper,onClick:A},z==null?void 0:z.affixWrapper,{ref:N}),v&&Ie.createElement("span",{className:me("".concat(d,"-prefix"),I==null?void 0:I.prefix),style:P==null?void 0:P.prefix},v),_,ne)}if(XL(e)){var re="".concat(d,"-group"),le="".concat(re,"-addon"),oe="".concat(re,"-wrapper"),ie=me("".concat(d,"-wrapper"),re,D==null?void 0:D.wrapper,I==null?void 0:I.wrapper),ce=me(oe,Q({},"".concat(oe,"-disabled"),C),D==null?void 0:D.group,I==null?void 0:I.groupWrapper);_=Ie.createElement(F,{className:ce,ref:L},Ie.createElement(V,{className:ie},g&&Ie.createElement(R,{className:le},g),_,p&&Ie.createElement(R,{className:le},p)))}return Ie.cloneElement(_,{className:me((r=_.props)===null||r===void 0?void 0:r.className,b)||null,style:J(J({},(o=_.props)===null||o===void 0?void 0:o.style),x),hidden:M})}),ZL=["show"];function $2(e,t){return c.useMemo(function(){var n={};t&&(n.show=vt(t)==="object"&&t.formatter?t.formatter:!!t),n=J(J({},n),e);var r=n,o=r.show,s=Et(r,ZL);return J(J({},s),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:s.strategy||function(u){return u.length}})},[e,t])}var JL=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],e8=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,s=e.onBlur,u=e.onPressEnter,d=e.onKeyDown,v=e.onKeyUp,m=e.prefixCls,g=m===void 0?"rc-input":m,p=e.disabled,b=e.htmlSize,x=e.className,C=e.maxLength,E=e.suffix,y=e.showCount,w=e.count,$=e.type,O=$===void 0?"text":$,T=e.classes,M=e.classNames,D=e.styles,I=e.onCompositionStart,z=e.onCompositionEnd,P=Et(e,JL),j=c.useState(!1),H=ee(j,2),G=H[0],k=H[1],F=c.useRef(!1),V=c.useRef(!1),R=c.useRef(null),N=c.useRef(null),A=function(Me){R.current&&w2(R.current,Me)},q=An(e.defaultValue,{value:e.value}),_=ee(q,2),L=_[0],W=_[1],Y=L==null?"":String(L),U=c.useState(null),X=ee(U,2),Z=X[0],te=X[1],ne=$2(w,y),re=ne.max||C,le=ne.strategy(Y),oe=!!re&&le>re;c.useImperativeHandle(t,function(){var Ee;return{focus:A,blur:function(){var Fe;(Fe=R.current)===null||Fe===void 0||Fe.blur()},setSelectionRange:function(Fe,Te,Ye){var Xe;(Xe=R.current)===null||Xe===void 0||Xe.setSelectionRange(Fe,Te,Ye)},select:function(){var Fe;(Fe=R.current)===null||Fe===void 0||Fe.select()},input:R.current,nativeElement:((Ee=N.current)===null||Ee===void 0?void 0:Ee.nativeElement)||R.current}}),c.useEffect(function(){V.current&&(V.current=!1),k(function(Ee){return Ee&&p?!1:Ee})},[p]);var ie=function(Me,Fe,Te){var Ye=Fe;if(!F.current&&ne.exceedFormatter&&ne.max&&ne.strategy(Fe)>ne.max){if(Ye=ne.exceedFormatter(Fe,{max:ne.max}),Fe!==Ye){var Xe,He;te([((Xe=R.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((He=R.current)===null||He===void 0?void 0:He.selectionEnd)||0])}}else if(Te.source==="compositionEnd")return;W(Ye),R.current&&td(R.current,Me,r,Ye)};c.useEffect(function(){if(Z){var Ee;(Ee=R.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,je(Z))}},[Z]);var ce=function(Me){ie(Me,Me.target.value,{source:"change"})},de=function(Me){F.current=!1,ie(Me,Me.currentTarget.value,{source:"compositionEnd"}),z==null||z(Me)},ue=function(Me){u&&Me.key==="Enter"&&!V.current&&(V.current=!0,u(Me)),d==null||d(Me)},fe=function(Me){Me.key==="Enter"&&(V.current=!1),v==null||v(Me)},xe=function(Me){k(!0),o==null||o(Me)},pe=function(Me){V.current&&(V.current=!1),k(!1),s==null||s(Me)},Ne=function(Me){W(""),A(),R.current&&td(R.current,Me,r)},De=oe&&"".concat(g,"-out-of-range"),Re=function(){var Me=ur(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Ie.createElement("input",Ae({autoComplete:n},Me,{onChange:ce,onFocus:xe,onBlur:pe,onKeyDown:ue,onKeyUp:fe,className:me(g,Q({},"".concat(g,"-disabled"),p),M==null?void 0:M.input),style:D==null?void 0:D.input,ref:R,size:b,type:O,onCompositionStart:function(Te){F.current=!0,I==null||I(Te)},onCompositionEnd:de}))},Le=function(){var Me=Number(re)>0;if(E||ne.show){var Fe=ne.showFormatter?ne.showFormatter({value:Y,count:le,maxLength:re}):"".concat(le).concat(Me?" / ".concat(re):"");return Ie.createElement(Ie.Fragment,null,ne.show&&Ie.createElement("span",{className:me("".concat(g,"-show-count-suffix"),Q({},"".concat(g,"-show-count-has-suffix"),!!E),M==null?void 0:M.count),style:J({},D==null?void 0:D.count)},Fe),E)}return null};return Ie.createElement(E2,Ae({},P,{prefixCls:g,className:me(x,De),handleReset:Ne,value:Y,focused:G,triggerFocus:A,suffix:Le(),disabled:p,classes:T,classNames:M,styles:D,ref:N}),Re())});const O2=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Ie.createElement(md,null)}),t};function R2(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,s,u,d;!((o=e.current)===null||o===void 0)&&o.input&&((s=e.current)===null||s===void 0?void 0:s.input.getAttribute("type"))==="password"&&(!((u=e.current)===null||u===void 0)&&u.input.hasAttribute("value"))&&((d=e.current)===null||d===void 0||d.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function t8(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var n8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ad=c.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:s,disabled:u,onBlur:d,onFocus:v,suffix:m,allowClear:g,addonAfter:p,addonBefore:b,className:x,style:C,styles:E,rootClassName:y,onChange:w,classNames:$,variant:O}=e,T=n8(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:M,direction:D,allowClear:I,autoComplete:z,className:P,style:j,classNames:H,styles:G}=vo("input"),k=M("input",n),F=c.useRef(null),V=Jr(k),[R,N,A]=c2(k,y),[q]=u2(k,V),{compactSize:_,compactItemClassnames:L}=Ii(k,D),W=Ra(pe=>{var Ne;return(Ne=s??_)!==null&&Ne!==void 0?Ne:pe}),Y=Ie.useContext(ma),U=u??Y,{status:X,hasFeedback:Z,feedbackIcon:te}=c.useContext(Mr),ne=Fl(X,o),re=t8(e)||!!Z;c.useRef(re);const le=R2(F,!0),oe=pe=>{le(),d==null||d(pe)},ie=pe=>{le(),v==null||v(pe)},ce=pe=>{le(),w==null||w(pe)},de=(Z||m)&&Ie.createElement(Ie.Fragment,null,m,Z&&te),ue=O2(g??I),[fe,xe]=Vl("input",O,r);return R(q(Ie.createElement(e8,Object.assign({ref:Br(t,F),prefixCls:k,autoComplete:z},T,{disabled:U,onBlur:oe,onFocus:ie,style:Object.assign(Object.assign({},j),C),styles:Object.assign(Object.assign({},G),E),suffix:de,allowClear:ue,className:me(x,y,A,V,L,P),onChange:ce,addonBefore:b&&Ie.createElement(xc,{form:!0,space:!0},b),addonAfter:p&&Ie.createElement(xc,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},$),H),{input:me({[`${k}-sm`]:W==="small",[`${k}-lg`]:W==="large",[`${k}-rtl`]:D==="rtl"},$==null?void 0:$.input,H.input,N),variant:me({[`${k}-${fe}`]:xe},Al(k,ne)),affixWrapper:me({[`${k}-affix-wrapper-sm`]:W==="small",[`${k}-affix-wrapper-lg`]:W==="large",[`${k}-affix-wrapper-rtl`]:D==="rtl"},N),wrapper:me({[`${k}-group-rtl`]:D==="rtl"},N),groupWrapper:me({[`${k}-group-wrapper-sm`]:W==="small",[`${k}-group-wrapper-lg`]:W==="large",[`${k}-group-wrapper-rtl`]:D==="rtl",[`${k}-group-wrapper-${fe}`]:xe},Al(`${k}-group-wrapper`,ne,Z),N)})}))))});var r8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},a8=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:r8}))},M2=c.forwardRef(a8),o8={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},i8=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:o8}))},T2=c.forwardRef(i8),l8={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},s8=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:l8}))},c8=c.forwardRef(s8);function u8(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function f8(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function _2(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=e$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[d8,v8]=["week","WeekPicker"],[m8,g8]=["month","MonthPicker"],[h8,p8]=["year","YearPicker"],[b8,y8]=["quarter","QuarterPicker"],[N2,ox]=["time","TimePicker"],S8=e=>c.createElement(jc,Object.assign({size:"small",type:"primary"},e));function D2(e){return c.useMemo(()=>Object.assign({button:S8},e),[e])}var C8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const x8=e=>c.forwardRef((n,r)=>{var o;const{prefixCls:s,getPopupContainer:u,components:d,className:v,style:m,placement:g,size:p,disabled:b,bordered:x=!0,placeholder:C,popupClassName:E,dropdownClassName:y,status:w,rootClassName:$,variant:O,picker:T}=n,M=C8(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),D=c.useRef(null),{getPrefixCls:I,direction:z,getPopupContainer:P,rangePicker:j}=c.useContext(Wt),H=I("picker",s),{compactSize:G,compactItemClassnames:k}=Ii(H,z),F=I(),[V,R]=Vl("rangePicker",O,x),N=Jr(H),[A,q,_]=f2(H,N),[L]=_2(n,H),W=D2(d),Y=Ra(de=>{var ue;return(ue=p??G)!==null&&ue!==void 0?ue:de}),U=c.useContext(ma),X=b??U,Z=c.useContext(Mr),{hasFeedback:te,status:ne,feedbackIcon:re}=Z,le=c.createElement(c.Fragment,null,T===N2?c.createElement(T2,null):c.createElement(M2,null),te&&re);c.useImperativeHandle(r,()=>D.current);const[oe]=_i("Calendar",qf),ie=Object.assign(Object.assign({},oe),n.locale),[ce]=gd("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return A(c.createElement(xc,{space:!0},c.createElement(c5,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${H}-separator`},c.createElement(c8,null)),disabled:X,ref:D,placement:g,placeholder:f8(ie,T,C),suffixIcon:le,prevIcon:c.createElement("span",{className:`${H}-prev-icon`}),nextIcon:c.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:T},M,{className:me({[`${H}-${Y}`]:Y,[`${H}-${V}`]:R},Al(H,Fl(ne,w),te),q,k,v,j==null?void 0:j.className,_,N,$),style:Object.assign(Object.assign({},j==null?void 0:j.style),m),locale:ie.lang,prefixCls:H,getPopupContainer:u||P,generateConfig:e,components:W,direction:z,classNames:{popup:me(q,E||y,_,N,$)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ce})},allowClear:L}))))});var w8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E8=e=>{const t=(v,m)=>{const g=m===ox?"timePicker":"datePicker";return c.forwardRef((b,x)=>{var C;const{prefixCls:E,getPopupContainer:y,components:w,style:$,className:O,rootClassName:T,size:M,bordered:D,placement:I,placeholder:z,popupClassName:P,dropdownClassName:j,disabled:H,status:G,variant:k,onCalendarChange:F}=b,V=w8(b,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:R,direction:N,getPopupContainer:A,[g]:q}=c.useContext(Wt),_=R("picker",E),{compactSize:L,compactItemClassnames:W}=Ii(_,N),Y=c.useRef(null),[U,X]=Vl("datePicker",k,D),Z=Jr(_),[te,ne,re]=f2(_,Z);c.useImperativeHandle(x,()=>Y.current);const le={showToday:!0},oe=v||b.picker,ie=R(),{onSelect:ce,multiple:de}=V,ue=ce&&v==="time"&&!de,fe=(et,Ge,qe)=>{F==null||F(et,Ge,qe),ue&&ce(et)},[xe,pe]=_2(b,_),Ne=D2(w),De=Ra(et=>{var Ge;return(Ge=M??L)!==null&&Ge!==void 0?Ge:et}),Re=c.useContext(ma),Le=H??Re,Ee=c.useContext(Mr),{hasFeedback:Me,status:Fe,feedbackIcon:Te}=Ee,Ye=c.createElement(c.Fragment,null,oe==="time"?c.createElement(T2,null):c.createElement(M2,null),Me&&Te),[Xe]=_i("DatePicker",qf),He=Object.assign(Object.assign({},Xe),b.locale),[Ze]=gd("DatePicker",(C=b.popupStyle)===null||C===void 0?void 0:C.zIndex);return te(c.createElement(xc,{space:!0},c.createElement(g5,Object.assign({ref:Y,placeholder:u8(He,oe,z),suffixIcon:Ye,placement:I,prevIcon:c.createElement("span",{className:`${_}-prev-icon`}),nextIcon:c.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:v,onCalendarChange:fe},le,V,{locale:He.lang,className:me({[`${_}-${De}`]:De,[`${_}-${U}`]:X},Al(_,Fl(Fe,G),Me),ne,W,q==null?void 0:q.className,O,re,Z,T),style:Object.assign(Object.assign({},q==null?void 0:q.style),$),prefixCls:_,getPopupContainer:y||A,generateConfig:e,components:Ne,direction:N,disabled:Le,classNames:{popup:me(ne,re,Z,T,P||j)},styles:{popup:Object.assign(Object.assign({},b.popupStyle),{zIndex:Ze})},allowClear:xe,removeIcon:pe}))))})},n=t(),r=t(d8,v8),o=t(m8,g8),s=t(h8,p8),u=t(b8,y8),d=t(N2,ox);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:s,TimePicker:d,QuarterPicker:u}},I2=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:s,QuarterPicker:u}=E8(e),d=x8(e),v=t;return v.WeekPicker=n,v.MonthPicker=r,v.YearPicker=o,v.RangePicker=d,v.TimePicker=s,v.QuarterPicker=u,v},ql=I2(pH),$8=$p(ql,"popupAlign",void 0,"picker");ql._InternalPanelDoNotUseOrYouWillBeFired=$8;const O8=$p(ql.RangePicker,"popupAlign",void 0,"picker");ql._InternalRangePanelDoNotUseOrYouWillBeFired=O8;ql.generatePicker=I2;function nd(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const R8=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},
                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},M8=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ge(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 ${ge(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ix=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},T8=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Cr(e)),M8(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ix(e,e.controlHeightSM)),"&-large":Object.assign({},ix(e,e.controlHeightLG))})}},_8=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:s,labelColor:u,labelFontSize:d,labelHeight:v,labelColonMarginInlineStart:m,labelColonMarginInlineEnd:g,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},Cr(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-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":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:v,color:u,fontSize:d,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,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:m,marginInlineEnd:g},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[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:yp,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},lx=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},N8=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Sa=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),P2=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Sa(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},D8=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:Sa(e)}},[`@media (max-width: ${ge(e.screenXSMax)})`]:[P2(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Sa(e)}}}],[`@media (max-width: ${ge(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Sa(e)}}},[`@media (max-width: ${ge(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Sa(e)}}},[`@media (max-width: ${ge(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Sa(e)}}}}},I8=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
      ${n}-col-24${t}-label,
      ${n}-col-xl-24${t}-label`]:Sa(e),[`@media (max-width: ${ge(e.screenXSMax)})`]:[P2(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Sa(e)}}],[`@media (max-width: ${ge(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Sa(e)}},[`@media (max-width: ${ge(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Sa(e)}},[`@media (max-width: ${ge(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Sa(e)}}}},P8=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}),A2=(e,t)=>Sn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Gp=gr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=A2(e,n);return[T8(r),_8(r),R8(r),lx(r,r.componentCls),lx(r,r.formItemCls),N8(r),D8(r),I8(r),zP(r),yp]},P8,{order:-1e3}),sx=[];function $g(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const z2=e=>{let{help:t,helpStatus:n,errors:r=sx,warnings:o=sx,className:s,fieldId:u,onVisibleChanged:d}=e;const{prefixCls:v}=c.useContext(Ep),m=`${v}-item-explain`,g=Jr(v),[p,b,x]=Gp(v,g),C=c.useMemo(()=>_C(v),[v]),E=nd(r),y=nd(o),w=c.useMemo(()=>t!=null?[$g(t,"help",n)]:[].concat(je(E.map((T,M)=>$g(T,"error","error",M))),je(y.map((T,M)=>$g(T,"warning","warning",M)))),[t,n,E,y]),$=c.useMemo(()=>{const T={};return w.forEach(M=>{let{key:D}=M;T[D]=(T[D]||0)+1}),w.map((M,D)=>Object.assign(Object.assign({},M),{key:T[M.key]>1?`${M.key}-fallback-${D}`:M.key}))},[w]),O={};return u&&(O.id=`${u}_help`),p(c.createElement(Go,{motionDeadline:C.motionDeadline,motionName:`${v}-show-help`,visible:!!$.length,onVisibleChanged:d},T=>{const{className:M,style:D}=T;return c.createElement("div",Object.assign({},O,{className:me(m,M,x,g,s,b),style:D}),c.createElement(Yw,Object.assign({keys:$},_C(v),{motionName:`${v}-show-help-item`,component:!1}),I=>{const{key:z,error:P,errorStatus:j,className:H,style:G}=I;return c.createElement("div",{key:z,className:me(H,{[`${m}-${j}`]:j}),style:G},P)}))}))},A8=["parentNode"],z8="form_item";function ic(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function j2(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:A8.includes(n)?`${z8}_${n}`:n}function H2(e,t,n,r,o,s){let u=r;return s!==void 0?u=s:n.validating?u="validating":e.length?u="error":t.length?u="warning":(n.touched||o&&n.validated)&&(u="success"),u}var j8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function cx(e){return ic(e).join("_")}function ux(e,t){const n=t.getFieldInstance(e),r=Fx(n);if(r)return r;const o=j2(ic(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function L2(e){const[t]=wp(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>s=>{const u=cx(o);s?n.current[u]=s:delete n.current[u]}},scrollToField:function(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:u}=s,d=j8(s,["focus"]),v=ux(o,r);v&&(TI(v,Object.assign({scrollMode:"if-needed",block:"nearest"},d)),u&&r.focusField(o))},focusField:o=>{var s,u;const d=r.getFieldInstance(o);typeof(d==null?void 0:d.focus)=="function"?d.focus():(u=(s=ux(o,r))===null||s===void 0?void 0:s.focus)===null||u===void 0||u.call(s)},getFieldInstance:o=>{const s=cx(o);return n.current[s]}}),[e,t]);return[r]}var H8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L8=(e,t)=>{const n=c.useContext(ma),{getPrefixCls:r,direction:o,requiredMark:s,colon:u,scrollToFirstError:d,className:v,style:m}=vo("form"),{prefixCls:g,className:p,rootClassName:b,size:x,disabled:C=n,form:E,colon:y,labelAlign:w,labelWrap:$,labelCol:O,wrapperCol:T,hideRequiredMark:M,layout:D="horizontal",scrollToFirstError:I,requiredMark:z,onFinishFailed:P,name:j,style:H,feedbackIcons:G,variant:k}=e,F=H8(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),V=Ra(x),R=c.useContext(Cw),N=c.useMemo(()=>z!==void 0?z:M?!1:s!==void 0?s:!0,[M,z,s]),A=y??u,q=r("form",g),_=Jr(q),[L,W,Y]=Gp(q,_),U=me(q,`${q}-${D}`,{[`${q}-hide-required-mark`]:N===!1,[`${q}-rtl`]:o==="rtl",[`${q}-${V}`]:V},Y,_,W,v,p,b),[X]=L2(E),{__INTERNAL__:Z}=X;Z.name=j;const te=c.useMemo(()=>({name:j,labelAlign:w,labelCol:O,labelWrap:$,wrapperCol:T,vertical:D==="vertical",colon:A,requiredMark:N,itemRef:Z.itemRef,form:X,feedbackIcons:G}),[j,w,O,T,D,A,N,X,G]),ne=c.useRef(null);c.useImperativeHandle(t,()=>{var oe;return Object.assign(Object.assign({},X),{nativeElement:(oe=ne.current)===null||oe===void 0?void 0:oe.nativeElement})});const re=(oe,ie)=>{if(oe){let ce={block:"nearest"};typeof oe=="object"&&(ce=Object.assign(Object.assign({},ce),oe)),X.scrollToField(ie,ce)}},le=oe=>{if(P==null||P(oe),oe.errorFields.length){const ie=oe.errorFields[0].name;if(I!==void 0){re(I,ie);return}d!==void 0&&re(d,ie)}};return L(c.createElement(NE.Provider,{value:k},c.createElement(Mw,{disabled:C},c.createElement(Ci.Provider,{value:V},c.createElement(_E,{validateMessages:R},c.createElement(so.Provider,{value:te},c.createElement(Ll,Object.assign({id:j},F,{name:j,onFinishFailed:le,form:X,ref:ne,style:Object.assign(Object.assign({},m),H),className:U}))))))))},B8=c.forwardRef(L8);function F8(e){if(typeof e=="function")return e;const t=ja(e);return t.length<=1?t[0]:t}const B2=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(Mr);return{status:e,errors:t,warnings:n}};B2.Context=Mr;function V8(e){const[t,n]=c.useState(e),r=c.useRef(null),o=c.useRef([]),s=c.useRef(!1);c.useEffect(()=>(s.current=!1,()=>{s.current=!0,kt.cancel(r.current),r.current=null}),[]);function u(d){s.current||(r.current===null&&(o.current=[],r.current=kt(()=>{r.current=null,n(v=>{let m=v;return o.current.forEach(g=>{m=g(m)}),m})})),o.current.push(d))}return[t,u]}function k8(){const{itemRef:e}=c.useContext(so),t=c.useRef({});function n(r,o){const s=o&&typeof o=="object"&&Ti(o),u=r.join("_");return(t.current.name!==u||t.current.originRef!==s)&&(t.current.name=u,t.current.originRef=s,t.current.ref=Br(e(r),s)),t.current.ref}return n}const U8=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},q8=jw(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=A2(e,n);return[U8(r)]});var W8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G8=24,Y8=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:s,errors:u,warnings:d,_internalItemRender:v,extra:m,help:g,fieldId:p,marginBottom:b,onErrorVisibleChanged:x,label:C}=e,E=`${t}-item`,y=c.useContext(so),w=c.useMemo(()=>{let F=Object.assign({},o||y.wrapperCol||{});return C===null&&!r&&!o&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const N=R?[R]:[],A=da(y.labelCol,N),q=typeof A=="object"?A:{},_=da(F,N),L=typeof _=="object"?_:{};"span"in q&&!("offset"in L)&&q.span<G8&&(F=fa(F,[].concat(N,["offset"]),q.span))}),F},[o,y]),$=me(`${E}-control`,w.className),O=c.useMemo(()=>{const{labelCol:F,wrapperCol:V}=y;return W8(y,["labelCol","wrapperCol"])},[y]),T=c.useRef(null),[M,D]=c.useState(0);qt(()=>{m&&T.current?D(T.current.clientHeight):D(0)},[m]);const I=c.createElement("div",{className:`${E}-control-input`},c.createElement("div",{className:`${E}-control-input-content`},s)),z=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=b!==null||u.length||d.length?c.createElement(Ep.Provider,{value:z},c.createElement(z2,{fieldId:p,errors:u,warnings:d,help:g,helpStatus:n,className:`${E}-explain-connected`,onVisibleChanged:x})):null,j={};p&&(j.id=`${p}_extra`);const H=m?c.createElement("div",Object.assign({},j,{className:`${E}-extra`,ref:T}),m):null,G=P||H?c.createElement("div",{className:`${E}-additional`,style:b?{minHeight:b+M}:{}},P,H):null,k=v&&v.mark==="pro_table_render"&&v.render?v.render(e,{input:I,errorList:P,extra:H}):c.createElement(c.Fragment,null,I,G);return c.createElement(so.Provider,{value:O},c.createElement(x2,Object.assign({},w,{className:$}),k),c.createElement(q8,{prefixCls:t}))};var K8={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"},X8=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:K8}))},Q8=c.forwardRef(X8),Z8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function J8(e){return e?typeof e=="object"&&!c.isValidElement(e)?e:{title:e}:null}const eB=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:s,colon:u,required:d,requiredMark:v,tooltip:m,vertical:g}=e;var p;const[b]=_i("Form"),{labelAlign:x,labelCol:C,labelWrap:E,colon:y}=c.useContext(so);if(!n)return null;const w=o||C||{},$=s||x,O=`${t}-item-label`,T=me(O,$==="left"&&`${O}-left`,w.className,{[`${O}-wrap`]:!!E});let M=n;const D=u===!0||y!==!1&&u!==!1;D&&!g&&typeof n=="string"&&n.trim()&&(M=n.replace(/[:|：]\s*$/,""));const z=J8(m);if(z){const{icon:F=c.createElement(Q8,null)}=z,V=Z8(z,["icon"]),R=c.createElement(Fc,Object.assign({},V),c.cloneElement(F,{className:`${t}-item-tooltip`,title:"",onClick:N=>{N.preventDefault()},tabIndex:null}));M=c.createElement(c.Fragment,null,M,R)}const P=v==="optional",j=typeof v=="function",H=v===!1;j?M=v(M,{required:!!d}):P&&!d&&(M=c.createElement(c.Fragment,null,M,c.createElement("span",{className:`${t}-item-optional`,title:""},(b==null?void 0:b.optional)||((p=Si.Form)===null||p===void 0?void 0:p.optional))));let G;H?G="hidden":(P||j)&&(G="optional");const k=me({[`${t}-item-required`]:d,[`${t}-item-required-mark-${G}`]:G,[`${t}-item-no-colon`]:!D});return c.createElement(x2,Object.assign({},w,{className:T}),c.createElement("label",{htmlFor:r,className:k,title:typeof n=="string"?n:""},M))},tB={success:nE,warning:rE,error:md,validating:Pc};function F2(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:s,prefixCls:u,meta:d,noStyle:v}=e;const m=`${u}-item`,{feedbackIcons:g}=c.useContext(so),p=H2(n,r,d,null,!!o,s),{isFormItemInput:b,status:x,hasFeedback:C,feedbackIcon:E}=c.useContext(Mr),y=c.useMemo(()=>{var w;let $;if(o){const T=o!==!0&&o.icons||g,M=p&&((w=T==null?void 0:T({status:p,errors:n,warnings:r}))===null||w===void 0?void 0:w[p]),D=p&&tB[p];$=M!==!1&&D?c.createElement("span",{className:me(`${m}-feedback-icon`,`${m}-feedback-icon-${p}`)},M||c.createElement(D,null)):null}const O={status:p||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:$,isFormItemInput:!0};return v&&(O.status=(p??x)||"",O.isFormItemInput=b,O.hasFeedback=!!(o??C),O.feedbackIcon=o!==void 0?O.feedbackIcon:E),O},[p,o,v,b,x]);return c.createElement(Mr.Provider,{value:y},t)}var nB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rB(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:s,errors:u,warnings:d,validateStatus:v,meta:m,hasFeedback:g,hidden:p,children:b,fieldId:x,required:C,isRequired:E,onSubItemMetaChange:y,layout:w}=e,$=nB(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),O=`${t}-item`,{requiredMark:T,vertical:M}=c.useContext(so),D=M||w==="vertical",I=c.useRef(null),z=nd(u),P=nd(d),j=s!=null,H=!!(j||u.length||d.length),G=!!I.current&&zc(I.current),[k,F]=c.useState(null);qt(()=>{if(H&&I.current){const q=getComputedStyle(I.current);F(parseInt(q.marginBottom,10))}},[H,G]);const V=q=>{q||F(null)},N=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _=q?z:m.errors,L=q?P:m.warnings;return H2(_,L,m,"",!!g,v)}(),A=me(O,n,r,{[`${O}-with-help`]:j||z.length||P.length,[`${O}-has-feedback`]:N&&g,[`${O}-has-success`]:N==="success",[`${O}-has-warning`]:N==="warning",[`${O}-has-error`]:N==="error",[`${O}-is-validating`]:N==="validating",[`${O}-hidden`]:p,[`${O}-${w}`]:w});return c.createElement("div",{className:A,style:o,ref:I},c.createElement(KL,Object.assign({className:`${O}-row`},ur($,["_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"])),c.createElement(eB,Object.assign({htmlFor:x},e,{requiredMark:T,required:C??E,prefixCls:t,vertical:D})),c.createElement(Y8,Object.assign({},e,m,{errors:z,warnings:P,prefixCls:t,status:N,help:s,marginBottom:k,onErrorVisibleChanged:V}),c.createElement(TE.Provider,{value:y},c.createElement(F2,{prefixCls:t,meta:m,errors:m.errors,warnings:m.warnings,hasFeedback:g,validateStatus:N},b)))),!!k&&c.createElement("div",{className:`${O}-margin-offset`,style:{marginBottom:-k}}))}const aB="__SPLIT__";function oB(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const s=e[o],u=t[o];return s===u||typeof s=="function"||typeof u=="function"})}const iB=c.memo(e=>{let{children:t}=e;return t},(e,t)=>oB(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function fx(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lB(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:s,shouldUpdate:u,rules:d,children:v,required:m,label:g,messageVariables:p,trigger:b="onChange",validateTrigger:x,hidden:C,help:E,layout:y}=e,{getPrefixCls:w}=c.useContext(Wt),{name:$}=c.useContext(so),O=F8(v),T=typeof O=="function",M=c.useContext(TE),{validateTrigger:D}=c.useContext($i),I=x!==void 0?x:D,z=t!=null,P=w("form",s),j=Jr(P),[H,G,k]=Gp(P,j);ud();const F=c.useContext(Cc),V=c.useRef(null),[R,N]=V8({}),[A,q]=Il(()=>fx()),_=te=>{const ne=F==null?void 0:F.getKey(te.name);if(q(te.destroy?fx():te,!0),n&&E!==!1&&M){let re=te.name;if(te.destroy)re=V.current||re;else if(ne!==void 0){const[le,oe]=ne;re=[le].concat(je(oe)),V.current=re}M(te,re)}},L=(te,ne)=>{N(re=>{const le=Object.assign({},re),ie=[].concat(je(te.name.slice(0,-1)),je(ne)).join(aB);return te.destroy?delete le[ie]:le[ie]=te,le})},[W,Y]=c.useMemo(()=>{const te=je(A.errors),ne=je(A.warnings);return Object.values(R).forEach(re=>{te.push.apply(te,je(re.errors||[])),ne.push.apply(ne,je(re.warnings||[]))}),[te,ne]},[R,A.errors,A.warnings]),U=k8();function X(te,ne,re){return n&&!C?c.createElement(F2,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:W,warnings:Y,noStyle:!0},te):c.createElement(rB,Object.assign({key:"row"},e,{className:me(r,k,j,G),prefixCls:P,fieldId:ne,isRequired:re,errors:W,warnings:Y,meta:A,onSubItemMetaChange:L,layout:y}),te)}if(!z&&!T&&!o)return H(X(O));let Z={};return typeof g=="string"?Z.label=g:t&&(Z.label=String(t)),p&&(Z=Object.assign(Object.assign({},Z),p)),H(c.createElement(xp,Object.assign({},e,{messageVariables:Z,trigger:b,validateTrigger:I,onMetaChange:_}),(te,ne,re)=>{const le=ic(t).length&&ne?ne.name:[],oe=j2(le,$),ie=m!==void 0?m:!!(d!=null&&d.some(ue=>{if(ue&&typeof ue=="object"&&ue.required&&!ue.warningOnly)return!0;if(typeof ue=="function"){const fe=ue(re);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),ce=Object.assign({},te);let de=null;if(Array.isArray(O)&&z)de=O;else if(!(T&&(!(u||o)||z))){if(!(o&&!T&&!z))if(c.isValidElement(O)){const ue=Object.assign(Object.assign({},O.props),ce);if(ue.id||(ue.id=oe),E||W.length>0||Y.length>0||e.extra){const pe=[];(E||W.length>0)&&pe.push(`${oe}_help`),e.extra&&pe.push(`${oe}_extra`),ue["aria-describedby"]=pe.join(" ")}W.length>0&&(ue["aria-invalid"]="true"),ie&&(ue["aria-required"]="true"),Wo(O)&&(ue.ref=U(le,O)),new Set([].concat(je(ic(b)),je(ic(I)))).forEach(pe=>{ue[pe]=function(){for(var Ne,De,Re,Le,Ee,Me=arguments.length,Fe=new Array(Me),Te=0;Te<Me;Te++)Fe[Te]=arguments[Te];(Re=ce[pe])===null||Re===void 0||(Ne=Re).call.apply(Ne,[ce].concat(Fe)),(Ee=(Le=O.props)[pe])===null||Ee===void 0||(De=Ee).call.apply(De,[Le].concat(Fe))}});const xe=[ue["aria-required"],ue["aria-invalid"],ue["aria-describedby"]];de=c.createElement(iB,{control:ce,update:O,childProps:xe},Ei(O,ue))}else T&&(u||o)&&!z?de=O(re):de=O}return X(de,oe,ie)}))}const V2=lB;V2.useStatus=B2;var sB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cB=e=>{var{prefixCls:t,children:n}=e,r=sB(e,["prefixCls","children"]);const{getPrefixCls:o}=c.useContext(Wt),s=o("form",t),u=c.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return c.createElement($E,Object.assign({},r),(d,v,m)=>c.createElement(Ep.Provider,{value:u},n(d.map(g=>Object.assign(Object.assign({},g),{fieldKey:g.key})),v,{errors:m.errors,warnings:m.warnings})))};function uB(){const{form:e}=c.useContext(so);return e}const lr=B8;lr.Item=V2;lr.List=cB;lr.ErrorList=z2;lr.useForm=L2;lr.useFormInstance=uB;lr.useWatch=ME;lr.Provider=_E;lr.create=()=>{};var fB={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"},dB=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:fB}))},vB=c.forwardRef(dB);const mB=e=>{const{getPrefixCls:t,direction:n}=c.useContext(Wt),{prefixCls:r,className:o}=e,s=t("input-group",r),u=t("input"),[d,v,m]=u2(u),g=me(s,m,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},v,o),p=c.useContext(Mr),b=c.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return d(c.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Mr.Provider,{value:b},e.children)))},gB=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${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:"var(--ant-color-text)"},[`${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}}}},hB=gr(["Input","OTP"],e=>{const t=Sn(e,qc(e));return[gB(t)]},Wc);var pB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bB=c.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:s,index:u,mask:d}=e,v=pB(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:m}=c.useContext(Wt),g=m("otp"),p=typeof d=="string"?d:r,b=c.useRef(null);c.useImperativeHandle(t,()=>b.current);const x=w=>{o(u,w.target.value)},C=()=>{kt(()=>{var w;const $=(w=b.current)===null||w===void 0?void 0:w.input;document.activeElement===$&&$&&$.select()})},E=w=>{const{key:$,ctrlKey:O,metaKey:T}=w;$==="ArrowLeft"?s(u-1):$==="ArrowRight"?s(u+1):$==="z"&&(O||T)&&w.preventDefault(),C()},y=w=>{w.key==="Backspace"&&!r&&s(u-1),C()};return c.createElement("span",{className:`${g}-input-wrapper`,role:"presentation"},d&&r!==""&&r!==void 0&&c.createElement("span",{className:`${g}-mask-icon`,"aria-hidden":"true"},p),c.createElement(Ad,Object.assign({"aria-label":`OTP Input ${u+1}`,type:d===!0?"password":"text"},v,{ref:b,value:r,onInput:x,onFocus:C,onKeyDown:E,onKeyUp:y,onMouseDown:C,onMouseUp:C,className:me(n,{[`${g}-mask-input`]:d})})))});var yB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gf(e){return(e||"").split("")}const SB=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?c.createElement("span",{className:`${n}-separator`},o):null},CB=c.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:s,value:u,onChange:d,formatter:v,separator:m,variant:g,disabled:p,status:b,autoFocus:x,mask:C,type:E,onInput:y,inputMode:w}=e,$=yB(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:O,direction:T}=c.useContext(Wt),M=O("otp",n),D=lo($,{aria:!0,data:!0,attr:!0}),[I,z,P]=hB(M),j=Ra(U=>o??U),H=c.useContext(Mr),G=Fl(H.status,b),k=c.useMemo(()=>Object.assign(Object.assign({},H),{status:G,hasFeedback:!1,feedbackIcon:null}),[H,G]),F=c.useRef(null),V=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{var U;(U=V.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let X=0;X<r;X+=1)(U=V.current[X])===null||U===void 0||U.blur()},nativeElement:F.current}));const R=U=>v?v(U):U,[N,A]=c.useState(()=>gf(R(s||"")));c.useEffect(()=>{u!==void 0&&A(gf(u))},[u]);const q=tn(U=>{A(U),y&&y(U),d&&U.length===r&&U.every(X=>X)&&U.some((X,Z)=>N[Z]!==X)&&d(U.join(""))}),_=tn((U,X)=>{let Z=je(N);for(let ne=0;ne<U;ne+=1)Z[ne]||(Z[ne]="");X.length<=1?Z[U]=X:Z=Z.slice(0,U).concat(gf(X)),Z=Z.slice(0,r);for(let ne=Z.length-1;ne>=0&&!Z[ne];ne-=1)Z.pop();const te=R(Z.map(ne=>ne||" ").join(""));return Z=gf(te).map((ne,re)=>ne===" "&&!Z[re]?Z[re]:ne),Z}),L=(U,X)=>{var Z;const te=_(U,X),ne=Math.min(U+X.length,r-1);ne!==U&&te[U]!==void 0&&((Z=V.current[ne])===null||Z===void 0||Z.focus()),q(te)},W=U=>{var X;(X=V.current[U])===null||X===void 0||X.focus()},Y={variant:g,disabled:p,status:G,mask:C,type:E,inputMode:w};return I(c.createElement("div",Object.assign({},D,{ref:F,className:me(M,{[`${M}-sm`]:j==="small",[`${M}-lg`]:j==="large",[`${M}-rtl`]:T==="rtl"},P,z),role:"group"}),c.createElement(Mr.Provider,{value:k},Array.from({length:r}).map((U,X)=>{const Z=`otp-${X}`,te=N[X]||"";return c.createElement(c.Fragment,{key:Z},c.createElement(bB,Object.assign({ref:ne=>{V.current[X]=ne},index:X,size:j,htmlSize:1,className:`${M}-input`,onChange:L,value:te,onActiveChange:W,autoFocus:X===0&&x},Y)),X<r-1&&c.createElement(SB,{separator:m,index:X,prefixCls:M}))}))))});var xB={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"},wB=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:xB}))},EB=c.forwardRef(wB),$B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OB=e=>e?c.createElement(vB,null):c.createElement(EB,null),RB={click:"onClick",hover:"onMouseOver"},MB=c.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:s=OB}=e,u=c.useContext(ma),d=n??u,v=typeof o=="object"&&o.visible!==void 0,[m,g]=c.useState(()=>v?o.visible:!1),p=c.useRef(null);c.useEffect(()=>{v&&g(o.visible)},[v,o]);const b=R2(p),x=()=>{var j;if(d)return;m&&b();const H=!m;g(H),typeof o=="object"&&((j=o.onVisibleChange)===null||j===void 0||j.call(o,H))},C=j=>{const H=RB[r]||"",G=s(m),k={[H]:x,className:`${j}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return c.cloneElement(c.isValidElement(G)?G:c.createElement("span",null,G),k)},{className:E,prefixCls:y,inputPrefixCls:w,size:$}=e,O=$B(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:T}=c.useContext(Wt),M=T("input",w),D=T("input-password",y),I=o&&C(D),z=me(D,E,{[`${D}-${$}`]:!!$}),P=Object.assign(Object.assign({},ur(O,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:z,prefixCls:M,suffix:I});return $&&(P.size=$),c.createElement(Ad,Object.assign({ref:Br(t,p)},P))});var TB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _B=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:s,suffix:u,enterButton:d=!1,addonAfter:v,loading:m,disabled:g,onSearch:p,onChange:b,onCompositionStart:x,onCompositionEnd:C}=e,E=TB(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:w}=c.useContext(Wt),$=c.useRef(!1),O=y("input-search",n),T=y("input",r),{compactSize:M}=Ii(O,w),D=Ra(L=>{var W;return(W=s??M)!==null&&W!==void 0?W:L}),I=c.useRef(null),z=L=>{L!=null&&L.target&&L.type==="click"&&p&&p(L.target.value,L,{source:"clear"}),b==null||b(L)},P=L=>{var W;document.activeElement===((W=I.current)===null||W===void 0?void 0:W.input)&&L.preventDefault()},j=L=>{var W,Y;p&&p((Y=(W=I.current)===null||W===void 0?void 0:W.input)===null||Y===void 0?void 0:Y.value,L,{source:"input"})},H=L=>{$.current||m||j(L)},G=typeof d=="boolean"?c.createElement(JE,null):null,k=`${O}-button`;let F;const V=d||{},R=V.type&&V.type.__ANT_BUTTON===!0;R||V.type==="button"?F=Ei(V,Object.assign({onMouseDown:P,onClick:L=>{var W,Y;(Y=(W=V==null?void 0:V.props)===null||W===void 0?void 0:W.onClick)===null||Y===void 0||Y.call(W,L),j(L)},key:"enterButton"},R?{className:k,size:D}:{})):F=c.createElement(jc,{className:k,type:d?"primary":void 0,size:D,disabled:g,key:"enterButton",onMouseDown:P,onClick:j,loading:m,icon:G},d),v&&(F=[F,Ei(v,{key:"addonAfter"})]);const N=me(O,{[`${O}-rtl`]:w==="rtl",[`${O}-${D}`]:!!D,[`${O}-with-button`]:!!d},o),A=Object.assign(Object.assign({},E),{className:N,prefixCls:T,type:"search"}),q=L=>{$.current=!0,x==null||x(L)},_=L=>{$.current=!1,C==null||C(L)};return c.createElement(Ad,Object.assign({ref:Br(I,t),onPressEnter:H},A,{size:D,onCompositionStart:q,onCompositionEnd:_,addonAfter:F,suffix:u,onChange:z,disabled:g}))});var NB=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,DB=["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"],Og={},Qr;function IB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Og[n])return Og[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),d=DB.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),v={sizingStyle:d,paddingSize:s,borderSize:u,boxSizing:o};return t&&n&&(Og[n]=v),v}function PB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qr||(Qr=document.createElement("textarea"),Qr.setAttribute("tab-index","-1"),Qr.setAttribute("aria-hidden","true"),Qr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qr)),e.getAttribute("wrap")?Qr.setAttribute("wrap",e.getAttribute("wrap")):Qr.removeAttribute("wrap");var o=IB(e,t),s=o.paddingSize,u=o.borderSize,d=o.boxSizing,v=o.sizingStyle;Qr.setAttribute("style","".concat(v,";").concat(NB)),Qr.value=e.value||e.placeholder||"";var m=void 0,g=void 0,p,b=Qr.scrollHeight;if(d==="border-box"?b+=u:d==="content-box"&&(b-=s),n!==null||r!==null){Qr.value=" ";var x=Qr.scrollHeight-s;n!==null&&(m=x*n,d==="border-box"&&(m=m+s+u),b=Math.max(m,b)),r!==null&&(g=x*r,d==="border-box"&&(g=g+s+u),p=b>g?"":"hidden",b=Math.min(g,b))}var C={height:b,overflowY:p,resize:"none"};return m&&(C.minHeight=m),g&&(C.maxHeight=g),C}var AB=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rg=0,Mg=1,Tg=2,zB=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,s=n.value,u=n.autoSize,d=n.onResize,v=n.className,m=n.style,g=n.disabled,p=n.onChange;n.onInternalAutoSize;var b=Et(n,AB),x=An(o,{value:s,postState:function(U){return U??""}}),C=ee(x,2),E=C[0],y=C[1],w=function(U){y(U.target.value),p==null||p(U)},$=c.useRef();c.useImperativeHandle(t,function(){return{textArea:$.current}});var O=c.useMemo(function(){return u&&vt(u)==="object"?[u.minRows,u.maxRows]:[]},[u]),T=ee(O,2),M=T[0],D=T[1],I=!!u,z=function(){try{if(document.activeElement===$.current){var U=$.current,X=U.selectionStart,Z=U.selectionEnd,te=U.scrollTop;$.current.setSelectionRange(X,Z),$.current.scrollTop=te}}catch{}},P=c.useState(Tg),j=ee(P,2),H=j[0],G=j[1],k=c.useState(),F=ee(k,2),V=F[0],R=F[1],N=function(){G(Rg)};qt(function(){I&&N()},[s,M,D,I]),qt(function(){if(H===Rg)G(Mg);else if(H===Mg){var Y=PB($.current,!1,M,D);G(Tg),R(Y)}else z()},[H]);var A=c.useRef(),q=function(){kt.cancel(A.current)},_=function(U){H===Tg&&(d==null||d(U),u&&(q(),A.current=kt(function(){N()})))};c.useEffect(function(){return q},[]);var L=I?V:null,W=J(J({},m),L);return(H===Rg||H===Mg)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(Lr,{onResize:_,disabled:!(u||d)},c.createElement("textarea",Ae({},b,{ref:$,style:W,className:me(r,v,Q({},"".concat(r,"-disabled"),g)),disabled:g,value:E,onChange:w})))}),jB=["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"],HB=Ie.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,s=e.onFocus,u=e.onBlur,d=e.onChange,v=e.allowClear,m=e.maxLength,g=e.onCompositionStart,p=e.onCompositionEnd,b=e.suffix,x=e.prefixCls,C=x===void 0?"rc-textarea":x,E=e.showCount,y=e.count,w=e.className,$=e.style,O=e.disabled,T=e.hidden,M=e.classNames,D=e.styles,I=e.onResize,z=e.onClear,P=e.onPressEnter,j=e.readOnly,H=e.autoSize,G=e.onKeyDown,k=Et(e,jB),F=An(r,{value:o,defaultValue:r}),V=ee(F,2),R=V[0],N=V[1],A=R==null?"":String(R),q=Ie.useState(!1),_=ee(q,2),L=_[0],W=_[1],Y=Ie.useRef(!1),U=Ie.useState(null),X=ee(U,2),Z=X[0],te=X[1],ne=c.useRef(null),re=c.useRef(null),le=function(){var ye;return(ye=re.current)===null||ye===void 0?void 0:ye.textArea},oe=function(){le().focus()};c.useImperativeHandle(t,function(){var qe;return{resizableTextArea:re.current,focus:oe,blur:function(){le().blur()},nativeElement:((qe=ne.current)===null||qe===void 0?void 0:qe.nativeElement)||le()}}),c.useEffect(function(){W(function(qe){return!O&&qe})},[O]);var ie=Ie.useState(null),ce=ee(ie,2),de=ce[0],ue=ce[1];Ie.useEffect(function(){if(de){var qe;(qe=le()).setSelectionRange.apply(qe,je(de))}},[de]);var fe=$2(y,E),xe=(n=fe.max)!==null&&n!==void 0?n:m,pe=Number(xe)>0,Ne=fe.strategy(A),De=!!xe&&Ne>xe,Re=function(ye,Oe){var $e=Oe;!Y.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Oe)>fe.max&&($e=fe.exceedFormatter(Oe,{max:fe.max}),Oe!==$e&&ue([le().selectionStart||0,le().selectionEnd||0])),N($e),td(ye.currentTarget,ye,d,$e)},Le=function(ye){Y.current=!0,g==null||g(ye)},Ee=function(ye){Y.current=!1,Re(ye,ye.currentTarget.value),p==null||p(ye)},Me=function(ye){Re(ye,ye.target.value)},Fe=function(ye){ye.key==="Enter"&&P&&P(ye),G==null||G(ye)},Te=function(ye){W(!0),s==null||s(ye)},Ye=function(ye){W(!1),u==null||u(ye)},Xe=function(ye){N(""),oe(),td(le(),ye,d)},He=b,Ze;fe.show&&(fe.showFormatter?Ze=fe.showFormatter({value:A,count:Ne,maxLength:xe}):Ze="".concat(Ne).concat(pe?" / ".concat(xe):""),He=Ie.createElement(Ie.Fragment,null,He,Ie.createElement("span",{className:me("".concat(C,"-data-count"),M==null?void 0:M.count),style:D==null?void 0:D.count},Ze)));var et=function(ye){var Oe;I==null||I(ye),(Oe=le())!==null&&Oe!==void 0&&Oe.style.height&&te(!0)},Ge=!H&&!E&&!v;return Ie.createElement(E2,{ref:ne,value:A,allowClear:v,handleReset:Xe,suffix:He,prefixCls:C,classNames:J(J({},M),{},{affixWrapper:me(M==null?void 0:M.affixWrapper,Q(Q({},"".concat(C,"-show-count"),E),"".concat(C,"-textarea-allow-clear"),v))}),disabled:O,focused:L,className:me(w,De&&"".concat(C,"-out-of-range")),style:J(J({},$),Z&&!Ge?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ze=="string"?Ze:void 0}},hidden:T,readOnly:j,onClear:z},Ie.createElement(zB,Ae({},k,{autoSize:H,maxLength:m,onKeyDown:Fe,onChange:Me,onFocus:Te,onBlur:Ye,onCompositionStart:Le,onCompositionEnd:Ee,className:me(M==null?void 0:M.textarea),style:J(J({},D==null?void 0:D.textarea),{},{resize:$==null?void 0:$.resize}),disabled:O,prefixCls:C,onResize:et,ref:re,readOnly:j})))});const LB=e=>{const{componentCls:t,paddingLG:n}=e,r=`${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"},[r]:{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"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-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},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},BB=gr(["Input","TextArea"],e=>{const t=Sn(e,qc(e));return[LB(t)]},Wc,{resetFont:!1});var FB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const k2=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:s,disabled:u,status:d,allowClear:v,classNames:m,rootClassName:g,className:p,style:b,styles:x,variant:C,showCount:E,onMouseDown:y,onResize:w}=e,$=FB(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:T,allowClear:M,autoComplete:D,className:I,style:z,classNames:P,styles:j}=vo("textArea"),H=c.useContext(ma),G=u??H,{status:k,hasFeedback:F,feedbackIcon:V}=c.useContext(Mr),R=Fl(k,d),N=c.useRef(null);c.useImperativeHandle(t,()=>{var fe;return{resizableTextArea:(fe=N.current)===null||fe===void 0?void 0:fe.resizableTextArea,focus:xe=>{var pe,Ne;w2((Ne=(pe=N.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||Ne===void 0?void 0:Ne.textArea,xe)},blur:()=>{var xe;return(xe=N.current)===null||xe===void 0?void 0:xe.blur()}}});const A=O("input",r),q=Jr(A),[_,L,W]=c2(A,g),[Y]=BB(A,q),{compactSize:U,compactItemClassnames:X}=Ii(A,T),Z=Ra(fe=>{var xe;return(xe=s??U)!==null&&xe!==void 0?xe:fe}),[te,ne]=Vl("textArea",C,o),re=O2(v??M),[le,oe]=c.useState(!1),[ie,ce]=c.useState(!1),de=fe=>{oe(!0),y==null||y(fe);const xe=()=>{oe(!1),document.removeEventListener("mouseup",xe)};document.addEventListener("mouseup",xe)},ue=fe=>{var xe,pe;if(w==null||w(fe),le&&typeof getComputedStyle=="function"){const Ne=(pe=(xe=N.current)===null||xe===void 0?void 0:xe.nativeElement)===null||pe===void 0?void 0:pe.querySelector("textarea");Ne&&getComputedStyle(Ne).resize==="both"&&ce(!0)}};return _(Y(c.createElement(HB,Object.assign({autoComplete:D},$,{style:Object.assign(Object.assign({},z),b),styles:Object.assign(Object.assign({},j),x),disabled:G,allowClear:re,className:me(W,q,p,g,X,I,ie&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),P),{textarea:me({[`${A}-sm`]:Z==="small",[`${A}-lg`]:Z==="large"},L,m==null?void 0:m.textarea,P.textarea,le&&`${A}-mouse-active`),variant:me({[`${A}-${te}`]:ne},Al(A,R)),affixWrapper:me(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:T==="rtl",[`${A}-affix-wrapper-sm`]:Z==="small",[`${A}-affix-wrapper-lg`]:Z==="large",[`${A}-textarea-show-count`]:E||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:A,suffix:F&&c.createElement("span",{className:`${A}-textarea-suffix`},V),showCount:E,ref:N,onResize:ue,onMouseDown:de}))))}),za=Ad;za.Group=mB;za.Search=_B;za.TextArea=k2;za.Password=MB;za.OTP=CB;const VB=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let ua=null,bi=e=>e(),Oc=[],Rc={};function dx(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Rc,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:o}}const kB=Ie.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(Wt),s=Rc.prefixCls||o("message"),u=c.useContext(p3),[d,v]=fE(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),u.message));return Ie.useImperativeHandle(t,()=>{const m=Object.assign({},d);return Object.keys(m).forEach(g=>{m[g]=function(){return r(),d[g].apply(d,arguments)}}),{instance:m,sync:r}}),v}),UB=Ie.forwardRef((e,t)=>{const[n,r]=Ie.useState(dx),o=()=>{r(dx)};Ie.useEffect(o,[]);const s=ZD(),u=s.getRootPrefixCls(),d=s.getIconPrefixCls(),v=s.getTheme(),m=Ie.createElement(kB,{ref:t,sync:o,messageConfig:n});return Ie.createElement(Ni,{prefixCls:u,iconPrefixCls:d,theme:v},s.holderRender?s.holderRender(m):m)});function zd(){if(!ua){const e=document.createDocumentFragment(),t={fragment:e};ua=t,bi(()=>{dE()(Ie.createElement(UB,{ref:r=>{const{instance:o,sync:s}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=s,zd())})}}),e)});return}ua.instance&&(Oc.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{bi(()=>{const r=ua.instance.open(Object.assign(Object.assign({},Rc),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":bi(()=>{ua==null||ua.instance.destroy(e.key)});break;default:bi(()=>{var r;const o=(r=ua.instance)[t].apply(r,je(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Oc=[])}function qB(e){Rc=Object.assign(Object.assign({},Rc),e),bi(()=>{var t;(t=ua==null?void 0:ua.sync)===null||t===void 0||t.call(ua)})}function WB(e){const t=fp(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return Oc.push(o),()=>{r?bi(()=>{r()}):o.skipped=!0}});return zd(),t}function GB(e,t){const n=fp(r=>{let o;const s={type:e,args:t,resolve:r,setCloseFn:u=>{o=u}};return Oc.push(s),()=>{o?bi(()=>{o()}):s.skipped=!0}});return zd(),n}const YB=e=>{Oc.push({type:"destroy",key:e}),zd()},KB=["success","info","warning","error","loading"],XB={open:WB,destroy:YB,config:qB,useMessage:rP,_InternalPanelDoNotUseOrYouWillBeFired:KI},ec=XB;KB.forEach(e=>{ec[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return GB(e,n)}});var QB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ZB=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:QB}))},JB=c.forwardRef(ZB),eF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},tF=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:eF}))},nF=c.forwardRef(tF),rF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},aF=function(t,n){return c.createElement(Un,Ae({},t,{ref:n,icon:rF}))},oF=c.forwardRef(aF);const iF=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:s}=r;return{marginBottom:o,color:n,fontWeight:s,fontSize:e,lineHeight:t}},lF=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=iF(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},sF=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},zw(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},cF=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Wf[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),uF=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ge(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},fF=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),dF=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),vF=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},lF(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),cF(e)),sF(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},zw(e)),{marginInlineStart:e.marginXXS})}),uF(e)),fF(e)),dF()),{"&-rtl":{direction:"rtl"}})}},mF=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),U2=gr("Typography",e=>[vF(e)],mF),gF=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:s,maxLength:u,autoSize:d=!0,value:v,onSave:m,onCancel:g,onEnd:p,component:b,enterIcon:x=c.createElement(oF,null)}=e,C=c.useRef(null),E=c.useRef(!1),y=c.useRef(null),[w,$]=c.useState(v);c.useEffect(()=>{$(v)},[v]),c.useEffect(()=>{var F;if(!((F=C.current)===null||F===void 0)&&F.resizableTextArea){const{textArea:V}=C.current.resizableTextArea;V.focus();const{length:R}=V.value;V.setSelectionRange(R,R)}},[]);const O=F=>{let{target:V}=F;$(V.value.replace(/[\n\r]/g,""))},T=()=>{E.current=!0},M=()=>{E.current=!1},D=F=>{let{keyCode:V}=F;E.current||(y.current=V)},I=()=>{m(w.trim())},z=F=>{let{keyCode:V,ctrlKey:R,altKey:N,metaKey:A,shiftKey:q}=F;y.current!==V||E.current||R||N||A||q||(V===bt.ENTER?(I(),p==null||p()):V===bt.ESC&&g())},P=()=>{I()},[j,H,G]=U2(t),k=me(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${b}`]:!!b},r,H,G);return j(c.createElement("div",{className:k,style:o},c.createElement(k2,{ref:C,maxLength:u,value:w,onChange:O,onKeyDown:D,onKeyUp:z,onCompositionStart:T,onCompositionEnd:M,onBlur:P,"aria-label":n,rows:1,autoSize:d}),x!==null?Ei(x,{className:`${t}-edit-content-confirm`}):null))};var _g,vx;function hF(){return vx||(vx=1,_g=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),_g}var Ng,mx;function pF(){if(mx)return Ng;mx=1;var e=hF(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(s){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,u)}function o(s,u){var d,v,m,g,p,b,x=!1;u||(u={}),d=u.debug||!1;try{m=e(),g=document.createRange(),p=document.getSelection(),b=document.createElement("span"),b.textContent=s,b.ariaHidden="true",b.style.all="unset",b.style.position="fixed",b.style.top=0,b.style.clip="rect(0, 0, 0, 0)",b.style.whiteSpace="pre",b.style.webkitUserSelect="text",b.style.MozUserSelect="text",b.style.msUserSelect="text",b.style.userSelect="text",b.addEventListener("copy",function(E){if(E.stopPropagation(),u.format)if(E.preventDefault(),typeof E.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[u.format]||t.default;window.clipboardData.setData(y,s)}else E.clipboardData.clearData(),E.clipboardData.setData(u.format,s);u.onCopy&&(E.preventDefault(),u.onCopy(E.clipboardData))}),document.body.appendChild(b),g.selectNodeContents(b),p.addRange(g);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");x=!0}catch(E){d&&console.error("unable to copy using execCommand: ",E),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",s),u.onCopy&&u.onCopy(window.clipboardData),x=!0}catch(y){d&&console.error("unable to copy using clipboardData: ",y),d&&console.error("falling back to prompt"),v=r("message"in u?u.message:n),window.prompt(v,s)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(g):p.removeAllRanges()),b&&document.body.removeChild(b),m()}return x}return Ng=o,Ng}var bF=pF();const yF=Oa(bF);var SF=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(u){u(s)})}return new(n||(n=Promise))(function(s,u){function d(g){try{m(r.next(g))}catch(p){u(p)}}function v(g){try{m(r.throw(g))}catch(p){u(p)}}function m(g){g.done?s(g.value):o(g.value).then(d,v)}m((r=r.apply(e,t||[])).next())})};const CF=e=>{let{copyConfig:t,children:n}=e;const[r,o]=c.useState(!1),[s,u]=c.useState(!1),d=c.useRef(null),v=()=>{d.current&&clearTimeout(d.current)},m={};t.format&&(m.format=t.format),c.useEffect(()=>v,[]);const g=tn(p=>SF(void 0,void 0,void 0,function*(){var b;p==null||p.preventDefault(),p==null||p.stopPropagation(),u(!0);try{const x=typeof t.text=="function"?yield t.text():t.text;yF(x||VB(n,!0).join("")||"",m),u(!1),o(!0),v(),d.current=setTimeout(()=>{o(!1)},3e3),(b=t.onCopy)===null||b===void 0||b.call(t,p)}catch(x){throw u(!1),x}}));return{copied:r,copyLoading:s,onClick:g}};function Dg(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const xF=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},wF=(e,t,n)=>c.useMemo(()=>e===!0?{title:t??n}:c.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var EF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q2=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:s,setContentRef:u,children:d,direction:v,style:m}=e,g=EF(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:b,className:x,style:C}=vo("typography"),E=v??b,y=u?Br(t,u):t,w=p("typography",n),[$,O,T]=U2(w),M=me(w,x,{[`${w}-rtl`]:E==="rtl"},o,s,O,T),D=Object.assign(Object.assign({},C),m);return $(c.createElement(r,Object.assign({className:M,style:D,ref:y},g),d))});function gx(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ig(e,t,n){return e===!0||e===void 0?t:e||n&&t}function $F(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const Yp=e=>["string","number"].includes(typeof e),OF=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:s,icon:u,tabIndex:d,onCopy:v,loading:m}=e;const g=gx(s),p=gx(u),{copied:b,copy:x}=r??{},C=n?b:x,E=Ig(g[n?1:0],C),y=typeof E=="string"?E:C;return c.createElement(Fc,{title:E},c.createElement("button",{type:"button",className:me(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:v,"aria-label":y,tabIndex:d},n?Ig(p[1],c.createElement(ZE,null),!0):Ig(p[0],m?c.createElement(Pc,null):c.createElement(JB,null),!0)))},hf=c.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const s=o.current;return s.scrollHeight>s.clientHeight},getHeight:()=>o.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),RF=e=>e.reduce((t,n)=>t+(Yp(n)?String(n).length:1),0);function hx(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const s=e[o],d=Yp(s)?String(s).length:1,v=n+d;if(v>t){const m=t-n;return r.push(String(s).slice(0,m)),r}r.push(s),n=v}return e}const Pg=0,Ag=1,zg=2,jg=3,px=4,pf={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function MF(e){const{enableMeasure:t,width:n,text:r,children:o,rows:s,expanded:u,miscDeps:d,onEllipsis:v}=e,m=c.useMemo(()=>ja(r),[r]),g=c.useMemo(()=>RF(m),[r]),p=c.useMemo(()=>o(m,!1),[r]),[b,x]=c.useState(null),C=c.useRef(null),E=c.useRef(null),y=c.useRef(null),w=c.useRef(null),$=c.useRef(null),[O,T]=c.useState(!1),[M,D]=c.useState(Pg),[I,z]=c.useState(0),[P,j]=c.useState(null);qt(()=>{D(t&&n&&g?Ag:Pg)},[n,r,s,t,m]),qt(()=>{var F,V,R,N;if(M===Ag){D(zg);const A=E.current&&getComputedStyle(E.current).whiteSpace;j(A)}else if(M===zg){const A=!!(!((F=y.current)===null||F===void 0)&&F.isExceed());D(A?jg:px),x(A?[0,g]:null),T(A);const q=((V=y.current)===null||V===void 0?void 0:V.getHeight())||0,_=s===1?0:((R=w.current)===null||R===void 0?void 0:R.getHeight())||0,L=((N=$.current)===null||N===void 0?void 0:N.getHeight())||0,W=Math.max(q,_+L);z(W+1),v(A)}},[M]);const H=b?Math.ceil((b[0]+b[1])/2):0;qt(()=>{var F;const[V,R]=b||[0,0];if(V!==R){const A=(((F=C.current)===null||F===void 0?void 0:F.getHeight())||0)>I;let q=H;R-V===1&&(q=A?V:R),x(A?[V,q]:[q,R])}},[b,H]);const G=c.useMemo(()=>{if(!t)return o(m,!1);if(M!==jg||!b||b[0]!==b[1]){const F=o(m,!1);return[px,Pg].includes(M)?F:c.createElement("span",{style:Object.assign(Object.assign({},pf),{WebkitLineClamp:s})},F)}return o(u?m:hx(m,b[0]),O)},[u,M,b,m].concat(je(d))),k={width:n,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,G,M===zg&&c.createElement(c.Fragment,null,c.createElement(hf,{style:Object.assign(Object.assign(Object.assign({},k),pf),{WebkitLineClamp:s}),ref:y},p),c.createElement(hf,{style:Object.assign(Object.assign(Object.assign({},k),pf),{WebkitLineClamp:s-1}),ref:w},p),c.createElement(hf,{style:Object.assign(Object.assign(Object.assign({},k),pf),{WebkitLineClamp:1}),ref:$},o([],!0))),M===jg&&b&&b[0]!==b[1]&&c.createElement(hf,{style:Object.assign(Object.assign({},k),{top:400}),ref:C},o(hx(m,H),!0)),M===Ag&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:E}))}const TF=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:c.createElement(Fc,Object.assign({open:n?void 0:!1},o),r)};var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function NF(e,t){let{mark:n,code:r,underline:o,delete:s,strong:u,keyboard:d,italic:v}=e,m=t;function g(p,b){b&&(m=c.createElement(p,{},m))}return g("strong",u),g("u",o),g("del",s),g("code",r),g("mark",n),g("kbd",d),g("i",v),m}const DF="...",jd=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:s,type:u,disabled:d,children:v,ellipsis:m,editable:g,copyable:p,component:b,title:x}=e,C=_F(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:E,direction:y}=c.useContext(Wt),[w]=_i("Text"),$=c.useRef(null),O=c.useRef(null),T=E("typography",r),M=ur(C,["mark","code","delete","underline","strong","keyboard","italic"]),[D,I]=Dg(g),[z,P]=An(!1,{value:I.editing}),{triggerType:j=["icon"]}=I,H=$e=>{var Se;$e&&((Se=I.onStart)===null||Se===void 0||Se.call(I)),P($e)},G=xF(z);qt(()=>{var $e;!z&&G&&(($e=O.current)===null||$e===void 0||$e.focus())},[z]);const k=$e=>{$e==null||$e.preventDefault(),H(!0)},F=$e=>{var Se;(Se=I.onChange)===null||Se===void 0||Se.call(I,$e),H(!1)},V=()=>{var $e;($e=I.onCancel)===null||$e===void 0||$e.call(I),H(!1)},[R,N]=Dg(p),{copied:A,copyLoading:q,onClick:_}=CF({copyConfig:N,children:v}),[L,W]=c.useState(!1),[Y,U]=c.useState(!1),[X,Z]=c.useState(!1),[te,ne]=c.useState(!1),[re,le]=c.useState(!0),[oe,ie]=Dg(m,{expandable:!1,symbol:$e=>$e?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[ce,de]=An(ie.defaultExpanded||!1,{value:ie.expanded}),ue=oe&&(!ce||ie.expandable==="collapsible"),{rows:fe=1}=ie,xe=c.useMemo(()=>ue&&(ie.suffix!==void 0||ie.onEllipsis||ie.expandable||D||R),[ue,ie,D,R]);qt(()=>{oe&&!xe&&(W(ZC("webkitLineClamp")),U(ZC("textOverflow")))},[xe,oe]);const[pe,Ne]=c.useState(ue),De=c.useMemo(()=>xe?!1:fe===1?Y:L,[xe,Y,L]);qt(()=>{Ne(De&&ue)},[De,ue]);const Re=ue&&(pe?te:X),Le=ue&&fe===1&&pe,Ee=ue&&fe>1&&pe,Me=($e,Se)=>{var Be;de(Se.expanded),(Be=ie.onExpand)===null||Be===void 0||Be.call(ie,$e,Se)},[Fe,Te]=c.useState(0),Ye=$e=>{let{offsetWidth:Se}=$e;Te(Se)},Xe=$e=>{var Se;Z($e),X!==$e&&((Se=ie.onEllipsis)===null||Se===void 0||Se.call(ie,$e))};c.useEffect(()=>{const $e=$.current;if(oe&&pe&&$e){const Se=$F($e);te!==Se&&ne(Se)}},[oe,pe,v,Ee,re,Fe]),c.useEffect(()=>{const $e=$.current;if(typeof IntersectionObserver>"u"||!$e||!pe||!ue)return;const Se=new IntersectionObserver(()=>{le(!!$e.offsetParent)});return Se.observe($e),()=>{Se.disconnect()}},[pe,ue]);const He=wF(ie.tooltip,I.text,v),Ze=c.useMemo(()=>{if(!(!oe||pe))return[I.text,v,x,He.title].find(Yp)},[oe,pe,x,He.title,Re]);if(z)return c.createElement(gF,{value:(n=I.text)!==null&&n!==void 0?n:typeof v=="string"?v:"",onSave:F,onCancel:V,onEnd:I.onEnd,prefixCls:T,className:o,style:s,direction:y,component:b,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const et=()=>{const{expandable:$e,symbol:Se}=ie;return $e?c.createElement("button",{type:"button",key:"expand",className:`${T}-${ce?"collapse":"expand"}`,onClick:Be=>Me(Be,{expanded:!ce}),"aria-label":ce?w.collapse:w==null?void 0:w.expand},typeof Se=="function"?Se(ce):Se):null},Ge=()=>{if(!D)return;const{icon:$e,tooltip:Se,tabIndex:Be}=I,mt=ja(Se)[0]||(w==null?void 0:w.edit),Ot=typeof mt=="string"?mt:"";return j.includes("icon")?c.createElement(Fc,{key:"edit",title:Se===!1?"":mt},c.createElement("button",{type:"button",ref:O,className:`${T}-edit`,onClick:k,"aria-label":Ot,tabIndex:Be},$e||c.createElement(nF,{role:"button"}))):null},qe=()=>R?c.createElement(OF,Object.assign({key:"copy"},N,{prefixCls:T,copied:A,locale:w,onCopy:_,loading:q,iconOnly:v==null})):null,ye=$e=>[$e&&et(),Ge(),qe()],Oe=$e=>[$e&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},DF),ie.suffix,ye($e)];return c.createElement(Lr,{onResize:Ye,disabled:!ue},$e=>c.createElement(TF,{tooltipProps:He,enableEllipsis:ue,isEllipsis:Re},c.createElement(q2,Object.assign({className:me({[`${T}-${u}`]:u,[`${T}-disabled`]:d,[`${T}-ellipsis`]:oe,[`${T}-ellipsis-single-line`]:Le,[`${T}-ellipsis-multiple-line`]:Ee},o),prefixCls:r,style:Object.assign(Object.assign({},s),{WebkitLineClamp:Ee?fe:void 0}),component:b,ref:Br($e,$,t),direction:y,onClick:j.includes("text")?k:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:x},M),c.createElement(MF,{enableMeasure:ue&&!pe,text:v,rows:fe,width:Fe,onEllipsis:Xe,expanded:ce,miscDeps:[A,ce,q,D,R,w]},(Se,Be)=>NF(e,c.createElement(c.Fragment,null,Se.length>0&&Be&&!ce&&Ze?c.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,Oe(Be)))))))});var IF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PF=c.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=IF(e,["ellipsis","rel"]);const s=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete s.navigate,c.createElement(jd,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}))}),AF=c.forwardRef((e,t)=>c.createElement(jd,Object.assign({ref:t},e,{component:"div"})));var zF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jF=(e,t)=>{var{ellipsis:n}=e,r=zF(e,["ellipsis"]);const o=c.useMemo(()=>n&&typeof n=="object"?ur(n,["expandable","rows"]):n,[n]);return c.createElement(jd,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},HF=c.forwardRef(jF);var LF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BF=[1,2,3,4,5],FF=c.forwardRef((e,t)=>{const{level:n=1}=e,r=LF(e,["level"]),o=BF.includes(n)?`h${n}`:"h1";return c.createElement(jd,Object.assign({ref:t},r,{component:o}))}),Gc=q2;Gc.Text=HF;Gc.Link=PF;Gc.Title=FF;Gc.Paragraph=AF;const W2=()=>{const[e,t]=c.useState([]),[n,r]=c.useState(!0),[o,s]=c.useState(null);return c.useEffect(()=>{(async()=>{const v=await(await fetch("https://dochase.marketjs-cloud2.com/gameslist.xml")).text(),g=new DOMParser().parseFromString(v,"text/xml"),b=Array.from(g.getElementsByTagName("game")).map(x=>{var C,E,y,w;return{title:((C=x.getElementsByTagName("title")[0])==null?void 0:C.textContent)??"",link:((E=x.getElementsByTagName("link")[0])==null?void 0:E.textContent)??"",description:((y=x.getElementsByTagName("description")[0])==null?void 0:y.textContent)??"",logo:((w=x.getElementsByTagName("game_logo")[0])==null?void 0:w.textContent)??""}});t(b),r(!1)})()},[]),o?ke.jsxs("div",{className:"w-full h-screen flex flex-col",children:[ke.jsxs("div",{className:"p-4 bg-white shadow flex items-center justify-between",children:[ke.jsx("h2",{className:"font-semibold text-lg",children:o.title}),ke.jsx("button",{onClick:()=>s(null),className:"px-4 py-2 bg-red-500 text-white rounded",children:"Exit Game"})]}),ke.jsx("iframe",{src:o.link,title:o.title,className:"flex-1 w-full border-none",allowFullScreen:!0})]}):n?ke.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-[5%] bg-[url('/src/assets/cover.svg')] bg-center",children:Array.from({length:8}).map((u,d)=>ke.jsxs("div",{className:"border border-[#FFE1B5] rounded-xl p-4 bg-white sadow-sm",children:[ke.jsx(oo.Image,{active:!0,className:"w-full h-[180px] mb-4 rounded-lg"}),ke.jsx(oo,{active:!0,title:{width:"70%"},paragraph:{rows:2}}),ke.jsx(oo.Button,{active:!0,block:!0,className:"mt-4 h-10 rounded-full"})]},d))}):ke.jsx("div",{className:"bg-[url('/src/assets/cover.svg')] bg-center h-full p-[5%]",children:ke.jsx("div",{className:"max-w-7xl mx-auto",children:ke.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map(u=>ke.jsxs("div",{className:"border border-[#FFE1B5] rounded-xl p-4 bg-white shadow-sm flex flex-col",children:[ke.jsx("img",{src:u.logo,alt:u.title,className:"rounded-lg mb-4"}),ke.jsx("h3",{className:"font-semibold text-lg mb-2",children:u.title}),ke.jsx("p",{className:"text-sm text-gray-600 flex-1",children:u.description}),ke.jsx("button",{onClick:()=>s(u),className:"mt-4 w-full bg-yellow-400 hover:bg-yellow-500 text-black font-medium py-2 rounded-full",children:"Play"})]},u.title))})})})},VF="/assets/game-B6UnbD5f.svg",G2=()=>ke.jsxs("header",{className:"w-full px-[5%]",children:[ke.jsxs("div",{className:"relative max-w-7xl mx-auto mt-6 bg-[url('/src/assets/bg.svg')] h-[500px] md:h-full bg-no-repeat overflow-hidden rounded-[80px] p-10",children:[ke.jsxs("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[ke.jsx(sc,{to:"/",children:ke.jsxs("div",{className:"text-white font-bold text-xl",children:[ke.jsx("span",{className:"block leading-none text-[#FFFFFF]",children:"Game"}),ke.jsx("span",{className:"block leading-none text-[#FFFFFF]",children:"Center"})]})}),ke.jsxs("nav",{className:"hidden md:flex items-center gap-8 text-white",children:[ke.jsx(sc,{to:"/",className:"hover:opacity-80",children:"Home"}),ke.jsx("a",{href:"#",className:"hover:opacity-80",children:"Play Games"}),ke.jsx("a",{href:"#",className:"hover:opacity-80",children:"Profile"})]}),ke.jsx("button",{className:"bg-yellow-400 hover:bg-yellow-500 text-black px-5 py-2 rounded-full font-medium",children:"Log In"})]}),ke.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 items-center px-6 md:px-12 py-12 md:py-20",children:[ke.jsx("div",{className:"text-white z-10",children:ke.jsxs("h1",{className:"text-3xl md:text-6xl font-bold leading-tight",children:[ke.jsx("span",{className:"text-yellow-400",children:"Games"})," for your",ke.jsx("br",{}),ke.jsx("span",{className:"text-white",children:"Entertainment"}),ke.jsx("br",{}),"and ",ke.jsx("span",{className:"text-yellow-400",children:"Fun"})]})}),ke.jsx("div",{className:"relative flex justify-center md:justify-end mt-8 md:mt-0",children:ke.jsx("img",{src:VF,alt:"Game Controller"})})]}),ke.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[ke.jsx("div",{className:"absolute -bottom-24 -left-24 w-72 h-72 bg-blue-500 rounded-full opacity-40"}),ke.jsx("div",{className:"absolute top-10 right-20 w-40 h-40 bg-blue-500 rounded-full opacity-30"})]})]}),ke.jsxs("section",{className:"max-w-7xl mx-auto mt-16 px-2",children:[ke.jsxs("h2",{className:"text-2xl font-bold",children:["Our ",ke.jsx("span",{className:"italic",children:"Games"})]}),ke.jsx("p",{className:"text-gray-600 max-w-md mt-2",children:"Explore a world of fun and adventure with our collection of exciting games. Whether you're into fast-paced action, mind-bending puzzles, or immersive stories, there's something here for everyone to enjoy."})]})]}),kF=()=>ke.jsxs("div",{children:[ke.jsx(G2,{}),ke.jsx(W2,{})]}),bx=()=>ke.jsxs("div",{className:"min-h-screen",children:[ke.jsx(G2,{}),ke.jsx(W2,{})]}),{Title:UF,Text:Hg}=Gc,{Option:bf}=Pi;function qF(){const[e,t]=c.useState(!1),[n]=lr.useForm(),r=async o=>{t(!0);try{const s=new FormData;s.append("FullName",o.FullName),s.append("Email",o.Email),s.append("Password",o.Password),s.append("DateOfBirth",o.DateOfBirth.format("DD/MM/YYYY")),s.append("Gender",o.Gender),s.append("WhatsappNumber",o.WhatsappNumber),s.append("TelegramNumber",o.TelegramNumber||"");const u=await fetch("https://script.google.com/macros/s/AKfycbwWrkiLTgbFhzceVP7vU47QlSqfyJZIKaV3s76TTUqPXpa2HCrs6utraXZdJ2OyZpL8/exec",{method:"POST",body:s}),d=await u.text();if(console.log("Response text:",d),u.ok&&!d.trim().startsWith("{")){ec.success({content:"🎉 Account created successfully!",duration:3}),n.resetFields();return}let v;try{v=JSON.parse(d)}catch{v={}}v.result==="success"||v.status==="success"?(ec.success({content:"🎉 Account created successfully!",duration:3}),n.resetFields()):ec.error("Failed to save data. Please try again.")}catch(s){console.error("Error:",s),ec.error("An error occurred while saving data.")}finally{t(!1)}};return ke.jsx("div",{className:"min-h-screen flex items-center justify-center px-4 py-10 bg-gradient-to-br from-[#f9fafb] via-[#f5f7fa] to-[#eef2f7]",children:ke.jsxs(qp,{className:"w-full max-w-lg rounded-3xl shadow-lg border border-gray-100",bodyStyle:{padding:"2rem"},children:[ke.jsxs("div",{className:"text-center mb-8",children:[ke.jsx(UF,{level:2,className:"!mb-2 !text-gray-900 !font-bold tracking-tight",children:"Create Your Account"}),ke.jsx(Hg,{type:"secondary",className:"text-base",children:"Join thousands earning daily rewards effortlessly"})]}),ke.jsxs(lr,{layout:"vertical",form:n,onFinish:r,requiredMark:!1,className:"space-y-4",children:[ke.jsx(lr.Item,{name:"FullName",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Full Name"}),rules:[{required:!0,message:"Please enter your full name"}],children:ke.jsx(za,{size:"large",placeholder:"John Doe",className:"h-12 rounded-xl"})}),ke.jsx(lr.Item,{name:"Email",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Email"}),rules:[{required:!0,message:"Please enter your email"},{type:"email",message:"Enter a valid email"}],children:ke.jsx(za,{size:"large",placeholder:"john@example.com",className:"h-12 rounded-xl"})}),ke.jsx(lr.Item,{name:"Password",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Password"}),rules:[{required:!0,message:"Please create a password"},{min:8,message:"Password must be at least 8 characters"}],children:ke.jsx(za.Password,{size:"large",placeholder:"Create a password",className:"h-12 rounded-xl"})}),ke.jsx(lr.Item,{name:"DateOfBirth",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Date of Birth"}),rules:[{required:!0,message:"Please select your date of birth"}],children:ke.jsx(ql,{size:"large",className:"w-full h-12 rounded-xl",format:"DD/MM/YYYY",disabledDate:o=>o&&o>Dr().endOf("day")})}),ke.jsx(lr.Item,{name:"Gender",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Gender"}),rules:[{required:!0,message:"Please select your gender"}],children:ke.jsxs(Pi,{size:"large",placeholder:"Select gender",className:"rounded-xl",children:[ke.jsx(bf,{value:"male",children:"Male"}),ke.jsx(bf,{value:"female",children:"Female"}),ke.jsx(bf,{value:"other",children:"Other"}),ke.jsx(bf,{value:"prefer-not-to-say",children:"Prefer not to say"})]})}),ke.jsx(lr.Item,{name:"WhatsappNumber",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"WhatsApp Number"}),rules:[{required:!0,message:"Please enter your WhatsApp number"}],children:ke.jsx(za,{size:"large",placeholder:"+234 800 000 0000",className:"h-12 rounded-xl"})}),ke.jsxs(lr.Item,{name:"TelegramNumber",label:ke.jsx("span",{className:"font-medium text-gray-700",children:"Telegram Number"}),children:[ke.jsx(za,{size:"large",placeholder:"+234 800 000 0000",className:"h-12 rounded-xl"}),ke.jsx(Hg,{type:"secondary",className:"text-xs",children:"Optional"})]}),ke.jsx(lr.Item,{name:"agreedToTerms",valuePropName:"checked",rules:[{validator:(o,s)=>s?Promise.resolve():Promise.reject("You must agree to the terms")}],children:ke.jsxs(Wp,{className:"text-gray-700",children:["I agree to the"," ",ke.jsx("a",{href:"https://www.dochase.com/terms-and-conditions/",target:"_blank",rel:"noopener noreferrer",className:"underline text-blue-600 hover:text-blue-800",children:"Terms of Service"})," ","and"," ",ke.jsx("a",{href:"https://www.dochase.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"underline text-blue-600 hover:text-blue-800",children:"Privacy Policy"})]})}),ke.jsx(lr.Item,{children:ke.jsx(jc,{type:"primary",htmlType:"submit",size:"large",className:"w-full h-12 !bg-[#015f78] rounded-xl font-semibold shadow-md hover:shadow-lg transition-all duration-200",loading:e,children:"Create Account"})})]}),ke.jsx("div",{className:"text-center mt-6",children:ke.jsxs(Hg,{type:"secondary",children:["Already have an account?"," ",ke.jsx(sc,{to:"/",className:"font-medium text-blue-600 hover:underline",children:"Sign in"})]})})]})})}const WF=[{path:"/",component:bx},{path:"/sign-up",component:qF},{path:"/games",component:kF},{path:"*",component:bx}],GF=()=>{const{pathname:e}=qo();return c.useEffect(()=>{window.scrollTo(0,0)},[e]),null},YF=()=>ke.jsxs(pT,{children:[ke.jsx(GF,{}),ke.jsx(GM,{children:WF.map((e,t)=>ke.jsx(Dx,{path:e.path,element:ke.jsx(e.component,{})},t))})]});function KF(){return ke.jsx(YF,{})}nM.createRoot(document.getElementById("root")).render(ke.jsx(c.StrictMode,{children:ke.jsx(KF,{})}));
