var Of=Object.defineProperty;var Lf=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>Lf(e,typeof t!="symbol"?t+"":t,n);import{r as u,R as vi,g as dr,b as A,c as Nf,d as _f}from"./vendor-react-xnlkqCTC.js";const kf=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function Si(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ca=Si()?u.useLayoutEffect:u.useEffect,hl=(e,t)=>{const n=u.useRef(!0);ca(()=>e(n.current),t),ca(()=>(n.current=!1,()=>{n.current=!0}),[])},Hf=e=>{const t=u.useRef(!1),[n,r]=u.useState(e);u.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function Bf(e,t){const[n,r]=u.useState(e),o=t!==void 0?t:n;return hl(s=>{s||r(t)},[t]),[o,r]}let pl=e=>+setTimeout(e,16),gl=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(pl=e=>window.requestAnimationFrame(e),gl=e=>window.cancelAnimationFrame(e));let la=0;const $i=new Map;function yl(e){$i.delete(e)}const vt=(e,t=1)=>{la+=1;const n=la;function r(o){if(o===0)yl(n),e();else{const s=pl(()=>{r(o-1)});$i.set(n,s)}}return r(t),n};vt.cancel=e=>{const t=$i.get(e);return yl(e),gl(t)};function zf(){return{...vi}.useId}let ua=0;const fa=zf(),nv=fa?(function(t){const n=fa();return t||n}):(function(t){const[n,r]=u.useState("ssr-id");return u.useEffect(()=>{const o=ua;ua+=1,r(`rc_unique_${o}`)},[]),t||n});function xi(e,t,n){const r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Eo={exports:{}},re={};/**
* @license React
* react-is.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 da;function Vf(){if(da)return re;da=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"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function b(g){if(typeof g=="object"&&g!==null){var p=g.$$typeof;switch(p){case e:switch(g=g.type,g){case n:case o:case r:case l:case c:case m:return g;default:switch(g=g&&g.$$typeof,g){case i:case a:case d:case f:return g;case s:return g;default:return p}}case t:return p}}}return re.ContextConsumer=s,re.ContextProvider=i,re.Element=e,re.ForwardRef=a,re.Fragment=n,re.Lazy=d,re.Memo=f,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=l,re.SuspenseList=c,re.isContextConsumer=function(g){return b(g)===s},re.isContextProvider=function(g){return b(g)===i},re.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},re.isForwardRef=function(g){return b(g)===a},re.isFragment=function(g){return b(g)===n},re.isLazy=function(g){return b(g)===d},re.isMemo=function(g){return b(g)===f},re.isPortal=function(g){return b(g)===t},re.isProfiler=function(g){return b(g)===o},re.isStrictMode=function(g){return b(g)===r},re.isSuspense=function(g){return b(g)===l},re.isSuspenseList=function(g){return b(g)===c},re.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===c||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===i||g.$$typeof===s||g.$$typeof===a||g.$$typeof===h||g.getModuleId!==void 0)},re.typeOf=b,re}var ma;function Df(){return ma||(ma=1,Eo.exports=Vf()),Eo.exports}var Co=Df();const jf=Symbol.for("react.element"),Wf=Symbol.for("react.transitional.element"),qf=Symbol.for("react.fragment");function bl(e){return e&&typeof e=="object"&&(e.$$typeof===jf||e.$$typeof===Wf)&&e.type===qf}const Uf=Number(u.version.split(".")[0]),Xf=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Ei=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Xf(r,n)})}},Kf=(...e)=>xi(()=>Ei(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),vl=e=>{var n,r;if(!e)return!1;if(Ci(e)&&Uf>=19)return!0;const t=Co.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Co.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Co.ForwardRef)};function Ci(e){return u.isValidElement(e)&&!bl(e)}const rv=e=>Ci(e)&&vl(e),Gf=e=>{if(e&&Ci(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function ha(e){return e instanceof HTMLElement||e instanceof SVGElement}function ov(e){return e&&typeof e=="object"&&ha(e.nativeElement)?e.nativeElement:ha(e)?e:null}const Yf=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function sv(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Qf=e=>{if(Si()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function iv(e,t){return Qf(e)}const av={ENTER:13,ESC:27};let rs={};const Zf=e=>{};function Jf(e,t){}function ed(e,t){}function td(){rs={}}function Sl(e,t,n){!t&&!rs[n]&&(e(!1,n),rs[n]=!0)}function ro(e,t){Sl(Jf,e,t)}function nd(e,t){Sl(ed,e,t)}ro.preMessage=Zf;ro.resetWarned=td;ro.noteOnce=nd;function rd(e,t,n=!1){const r=new Set;function o(s,i,a=1){const l=r.has(s);if(ro(!l,"Warning: There may be circular references"),l)return!1;if(s===i)return!0;if(n&&a>1)return!1;r.add(s);const c=a+1;if(Array.isArray(s)){if(!Array.isArray(i)||s.length!==i.length)return!1;for(let f=0;f<s.length;f++)if(!o(s[f],i[f],c))return!1;return!0}if(s&&i&&typeof s=="object"&&typeof i=="object"){const f=Object.keys(s);return f.length!==Object.keys(i).length?!1:f.every(d=>o(s[d],i[d],c))}return!1}return o(e,t)}var qn={exports:{}},pa;function od(){if(pa)return qn.exports;pa=1,qn.exports=r,qn.exports.isMobile=r,qn.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(o){o||(o={});let s=o.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let i=e.test(s)&&!t.test(s)||!!o.tablet&&n.test(s);return!i&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(i=!0),i}return qn.exports}var sd=od();const id=dr(sd);function wi(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const ad=`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`,cd=`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
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
onAnimationStart onAnimationEnd onAnimationIteration
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
onBeforeInput onReset onInvalid
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,ld=`${ad} ${cd}`.split(/[\s\n]+/),ud="aria-",fd="data-";function ga(e,t){return e.indexOf(t)===0}function dd(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||ga(o,ud))||n.data&&ga(o,fd)||n.attr&&ld.includes(o))&&(r[o]=e[o])}),r}function nr(e,t={}){let n=[];return A.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(nr(r)):bl(r)&&r.props?n=n.concat(nr(r.props.children,t)):n.push(r))}),n}function ya(...e){const t={};for(const n of e)if(n)for(const r of Object.keys(n))n[r]!==void 0&&(t[r]=n[r]);return t}function os(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function $l(e,t,n,r){if(!t.length)return n;const[o,...s]=t;let i;return!e&&typeof o=="number"?i=[]:Array.isArray(e)?i=[...e]:i={...e},r&&n===void 0&&s.length===1?delete i[o][s[0]]:i[o]=$l(i[o],s,n,r),i}function wo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!os(e,t.slice(0,-1))?e:$l(e,t,n,r)}function md(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ba(e){return Array.isArray(e)?[]:{}}const hd=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function pd(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=ba(e[0]);return e.forEach(s=>{function i(a,l){const c=new Set(l),f=os(s,a),d=Array.isArray(f);if(d||md(f)){if(!c.has(f)){c.add(f);const m=os(o,a);d?o=wo(o,a,r(m,f)):(!m||typeof m!="object")&&(o=wo(o,a,ba(f))),hd(f).forEach(h=>{Object.getOwnPropertyDescriptor(f,h).enumerable&&i([...a,h],c)})}}else o=wo(o,a,f)}i([])}),o}function gd(...e){return pd(e)}const Gr="__rc_react_root__";function yd(e,t){const n=t[Gr]||Nf.createRoot(t);n.render(e),t[Gr]=n}async function bd(e){return Promise.resolve().then(()=>{var t;(t=e[Gr])==null||t.unmount(),delete e[Gr]})}function vd(){}const Sd=u.createContext({}),$d=()=>{const e=()=>{};return e.deprecated=vd,e},xd=$d,Ed=Symbol.for("react.element"),Cd=Symbol.for("react.transitional.element"),wd=Symbol.for("react.fragment");function xl(e){return e&&typeof e=="object"&&(e.$$typeof===Ed||e.$$typeof===Cd)&&e.type===wd}function rr(e,t={}){let n=[];return A.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(rr(r)):xl(r)&&r.props?n=n.concat(rr(r.props.children,t)):n.push(r))}),n}let ss={};const Pd=e=>{};function Rd(e,t){}function Md(e,t){}function Td(){ss={}}function El(e,t,n){!t&&!ss[n]&&(e(!1,n),ss[n]=!0)}function De(e,t){El(Rd,e,t)}function Ad(e,t){El(Md,e,t)}De.preMessage=Pd;De.resetWarned=Td;De.noteOnce=Ad;function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function Cl(e){return e&&typeof e=="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}var Po={exports:{}},J={};/**
* @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 Sa;function Fd(){if(Sa)return J;Sa=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"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function g(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case e:switch(p=p.type,p){case n:case o:case r:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case i:case l:case m:case d:case s:return p;default:return v}}case t:return v}}}return J.ContextConsumer=i,J.ContextProvider=s,J.Element=e,J.ForwardRef=l,J.Fragment=n,J.Lazy=m,J.Memo=d,J.Portal=t,J.Profiler=o,J.StrictMode=r,J.Suspense=c,J.SuspenseList=f,J.isAsyncMode=function(){return!1},J.isConcurrentMode=function(){return!1},J.isContextConsumer=function(p){return g(p)===i},J.isContextProvider=function(p){return g(p)===s},J.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},J.isForwardRef=function(p){return g(p)===l},J.isFragment=function(p){return g(p)===n},J.isLazy=function(p){return g(p)===m},J.isMemo=function(p){return g(p)===d},J.isPortal=function(p){return g(p)===t},J.isProfiler=function(p){return g(p)===o},J.isStrictMode=function(p){return g(p)===r},J.isSuspense=function(p){return g(p)===c},J.isSuspenseList=function(p){return g(p)===f},J.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===c||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===b||p.getModuleId!==void 0)},J.typeOf=g,J}var $a;function Id(){return $a||($a=1,Po.exports=Fd()),Po.exports}var Ro=Id();function Od(e,t,n){const r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const Ld=Number(u.version.split(".")[0]),Nd=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},wl=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Nd(r,n)})}},_d=(...e)=>Od(()=>wl(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),Pl=e=>{var n,r;if(!e)return!1;if(Pi(e)&&Ld>=19)return!0;const t=Ro.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Ro.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Ro.ForwardRef)};function Pi(e){return u.isValidElement(e)&&!xl(e)}const kd=e=>Pi(e)&&Pl(e),Rl=e=>{if(e&&Pi(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},is=u.createContext(null);function Hd({children:e,onBatchResize:t}){const n=u.useRef(0),r=u.useRef([]),o=u.useContext(is),s=u.useCallback((i,a,l)=>{n.current+=1;const c=n.current;r.current.push({size:i,element:a,data:l}),Promise.resolve().then(()=>{c===n.current&&(t==null||t(r.current),r.current=[])}),o==null||o(i,a,l)},[t,o]);return u.createElement(is.Provider,{value:s},e)}const It=new Map;function Bd(e){e.forEach(t=>{var r;const{target:n}=t;(r=It.get(n))==null||r.forEach(o=>o(n))})}let Mo;function Ml(){return Mo||(Mo=new ResizeObserver(Bd)),Mo}function zd(e,t){It.has(e)||(It.set(e,new Set),Ml().observe(e)),It.get(e).add(t)}function Vd(e,t){It.has(e)&&(It.get(e).delete(t),It.get(e).size||(Ml().unobserve(e),It.delete(e)))}const An=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const xa=kt()?u.useLayoutEffect:u.useEffect,Tl=(e,t)=>{const n=u.useRef(!0);xa(()=>e(n.current),t),xa(()=>(n.current=!1,()=>{n.current=!0}),[])},cv=(e,t)=>{Tl(n=>{if(!n)return e()},t)},Dd=e=>{const t=u.useRef(!1),[n,r]=u.useState(e);u.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function jd(e,t){const[n,r]=u.useState(e),o=t!==void 0?t:n;return Tl(s=>{s||r(t)},[t]),[o,r]}function Wd(){return{...vi}.useId}let Ea=0;function lv(e,t){const r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}const Ca=Wd(),qd=Ca?(function(t){const n=Ca();return t||n}):(function(t){const[n,r]=u.useState("ssr-id");return u.useEffect(()=>{const o=Ea;Ea+=1,r(`rc_unique_${o}`)},[]),t||n});function Ud(e){const[,t]=u.useReducer(s=>s+1,0),n=u.useRef(e),r=An(()=>n.current),o=An(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}function Xd(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const wa="data-rc-order",Pa="data-rc-priority",Kd="rc-util-key",as=new Map;function Al({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Kd}function oo(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Gd(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ri(e){return Array.from((as.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Fl(e,t={}){if(!kt())return null;const{csp:n,prepend:r,priority:o=0}=t,s=Gd(r),i=s==="prependQueue",a=document.createElement("style");a.setAttribute(wa,s),i&&o&&a.setAttribute(Pa,`${o}`),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const l=oo(t),{firstChild:c}=l;if(r){if(i){const f=(t.styles||Ri(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(wa)))return!1;const m=Number(d.getAttribute(Pa)||0);return o>=m});if(f.length)return l.insertBefore(a,f[f.length-1].nextSibling),a}l.insertBefore(a,c)}else l.appendChild(a);return a}function Il(e,t={}){let{styles:n}=t;return n||(n=Ri(oo(t))),n.find(r=>r.getAttribute(Al(t))===e)}function Mi(e,t={}){const n=Il(e,t);n&&oo(t).removeChild(n)}function Yd(e,t){const n=as.get(e);if(!n||!Xd(document,n)){const r=Fl("",t),{parentNode:o}=r;as.set(e,o),e.removeChild(r)}}function Pn(e,t,n={}){var l,c,f;const r=oo(n),o=Ri(r),s={...n,styles:o};Yd(r,s);const i=Il(t,s);if(i)return(l=s.csp)!=null&&l.nonce&&i.nonce!==((c=s.csp)==null?void 0:c.nonce)&&(i.nonce=(f=s.csp)==null?void 0:f.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=Fl(e,s);return a.setAttribute(Al(s),t),a}const Qd=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Ra(e,t=!1){if(Qd(e)){const 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);let i=null;return o&&!Number.isNaN(s)?i=s:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Ol(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>Ra(r,t));return Ra(e,t)&&n.unshift(e),n}function uv(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let Rn=null,At=[];const cs=new Map,Ti=new Map;function Ai(){return At[At.length-1]}function Zd(e){const t=Ai();if(e&&t){let n;for(const[o,s]of cs.entries())if(s===t){n=o;break}const r=Ti.get(n);return!!r&&(r===e||r.contains(e))}return!1}function Jd(e){const{activeElement:t}=document;return e===t||e.contains(t)}function To(){const e=Ai(),{activeElement:t}=document;if(!Zd(t))if(e&&!Jd(e)){const n=Ol(e),r=n.includes(Rn)?Rn:n[0];r==null||r.focus({preventScroll:!0})}else Rn=t}function Ma(e){if(e.key==="Tab"){const{activeElement:t}=document,n=Ai(),r=Ol(n),o=r[r.length-1];e.shiftKey&&t===r[0]?Rn=o:!e.shiftKey&&t===o&&(Rn=r[0])}}function em(e,t){return e&&(cs.set(t,e),At=At.filter(n=>n!==e),At.push(e),window.addEventListener("focusin",To),window.addEventListener("keydown",Ma,!0),To()),()=>{Rn=null,At=At.filter(n=>n!==e),cs.delete(t),Ti.delete(t),At.length===0&&(window.removeEventListener("focusin",To),window.removeEventListener("keydown",Ma,!0))}}function tm(e,t){const n=u.useRef(0),[r,o]=u.useState(0);u.useEffect(()=>{n.current=0},t),u.useEffect(()=>{const[s,i]=e(n.current);return i||(n.current+=1,o(a=>a+1)),s},[...t,r])}function fv(e,t){const n=qd(),r=u.useRef(t);return r.current=t,tm(i=>{if(!e)return[void 0,!0];const a=r.current();return a?[em(a,n),!0]:[void 0,i>=1]},[n,e]),[i=>{i&&Ti.set(n,i)}]}function Ll(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function nm(e){return Ll(e)instanceof ShadowRoot}function dv(e){return nm(e)?Ll(e):null}const Ta={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};let Ao;function Nl(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,s;if(e){const l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;const c=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(c.width,10),d=parseInt(c.height,10);try{const m=f?`width: ${c.width};`:"",h=d?`height: ${c.height};`:"";Pn(`
#${t}::-webkit-scrollbar {
${m}
${h}
}`,t)}catch(m){console.error(m),o=f,s=d}}document.body.appendChild(n);const i=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,a=e&&s&&!Number.isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Mi(t),{width:i,height:a}}function mv(e){return typeof document>"u"?0:(Ao===void 0&&(Ao=Nl()),Ao.width)}function hv(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Nl(e)}function Aa(e,t,n=!1){const r=new Set;function o(s,i,a=1){const l=r.has(s);if(De(!l,"Warning: There may be circular references"),l)return!1;if(s===i)return!0;if(n&&a>1)return!1;r.add(s);const c=a+1;if(Array.isArray(s)){if(!Array.isArray(i)||s.length!==i.length)return!1;for(let f=0;f<s.length;f++)if(!o(s[f],i[f],c))return!1;return!0}if(s&&i&&typeof s=="object"&&typeof i=="object"){const f=Object.keys(s);return f.length!==Object.keys(i).length?!1:f.every(d=>o(s[d],i[d],c))}return!1}return o(e,t)}let Fo;const pv=()=>(typeof Fo>"u"&&(Fo=id()),Fo);function gv(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const rm=`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`,om=`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`,sm=`${rm} ${om}`.split(/[\s\n]+/),im="aria-",am="data-";function Fa(e,t){return e.indexOf(t)===0}function cm(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||Fa(o,im))||n.data&&Fa(o,am)||n.attr&&sm.includes(o))&&(r[o]=e[o])}),r}function yv(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}let _l=e=>+setTimeout(e,16),kl=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(_l=e=>window.requestAnimationFrame(e),kl=e=>window.cancelAnimationFrame(e));let Ia=0;const Fi=new Map;function Hl(e){Fi.delete(e)}const Yr=(e,t=1)=>{Ia+=1;const n=Ia;function r(o){if(o===0)Hl(n),e();else{const s=_l(()=>{r(o-1)});Fi.set(n,s)}}return r(t),n};Yr.cancel=e=>{const t=Fi.get(e);return Hl(e),kl(t)};function Ge(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Bl(e,t,n,r){if(!t.length)return n;const[o,...s]=t;let i;return!e&&typeof o=="number"?i=[]:Array.isArray(e)?i=[...e]:i={...e},r&&n===void 0&&s.length===1?delete i[o][s[0]]:i[o]=Bl(i[o],s,n,r),i}function Be(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ge(e,t.slice(0,-1))?e:Bl(e,t,n,r)}function lm(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Oa(e){return Array.isArray(e)?[]:{}}const um=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function fm(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=Oa(e[0]);return e.forEach(s=>{function i(a,l){const c=new Set(l),f=Ge(s,a),d=Array.isArray(f);if(d||lm(f)){if(!c.has(f)){c.add(f);const m=Ge(o,a);d?o=Be(o,a,r(m,f)):(!m||typeof m!="object")&&(o=Be(o,a,Oa(f))),um(f).forEach(h=>{Object.getOwnPropertyDescriptor(f,h).enumerable&&i([...a,h],c)})}}else o=Be(o,a,f)}i([])}),o}function Yn(...e){return fm(e)}function dm(e,t,n,r){const o=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=An(l=>{const{width:c,height:f}=l.getBoundingClientRect(),{offsetWidth:d,offsetHeight:m}=l,h=Math.floor(c),b=Math.floor(f);if(o.current.width!==h||o.current.height!==b||o.current.offsetWidth!==d||o.current.offsetHeight!==m){const g={width:h,height:b,offsetWidth:d,offsetHeight:m};o.current=g;const p=d===Math.round(c)?c:d,v=m===Math.round(f)?f:m,S={...g,offsetWidth:p,offsetHeight:v};r==null||r(S,l),Promise.resolve().then(()=>{n==null||n(S,l)})}}),i=typeof t=="function",a=u.useRef(0);u.useEffect(()=>{const l=i?t():t;return l&&e?zd(l,s):e&&i&&(a.current+=1),()=>{l&&Vd(l,s)}},[e,i?a.current:t])}function mm(e,t){const{children:n,disabled:r,onResize:o,data:s}=e,i=u.useRef(null),a=u.useContext(is),l=typeof n=="function",c=l?n(i):n,f=!l&&u.isValidElement(c)&&Pl(c),d=f?Rl(c):null,m=_d(d,i),h=()=>Cl(i.current);return u.useImperativeHandle(t,()=>h()),dm(!r,h,o,(b,g)=>{a==null||a(b,g,s)}),f?u.cloneElement(c,{ref:m}):c}const hm=u.forwardRef(mm);function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ls.apply(this,arguments)}const pm="rc-observer-key";function gm(e,t){const{children:n}=e;return(typeof n=="function"?[n]:rr(n)).map((o,s)=>{const i=(o==null?void 0:o.key)||`${pm}-${s}`;return u.createElement(hm,ls({},e,{key:i,ref:s===0?t:void 0}),o)})}const zl=u.forwardRef(gm);zl.Collection=Hd;function Vl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function B(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vl(e))&&(r&&(r+=" "),r+=t);return r}function us(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 ym(e){if(Array.isArray(e))return us(e)}function bm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dl(e,t){if(e){if(typeof e=="string")return us(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)?us(e,t):void 0}}function vm(){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 sn(e){return ym(e)||bm(e)||Dl(e)||vm()}const or="ant",so="anticon",bv=["outlined","borderless","filled","underlined"],Sm=(e,t)=>t||(e?`${or}-${e}`:or),Pe=u.createContext({getPrefixCls:Sm,iconPrefixCls:so}),{Consumer:vv}=Pe,La={};function Ii(e){const t=u.useContext(Pe),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}=t,i=t[e];return{classNames:La,styles:La,...i,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}}function sr(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)}const $m="%";function fs(e){return e.join($m)}let Na=0;class xm{constructor(t){w(this,"instanceId");w(this,"cache",new Map);w(this,"updateTimes",new Map);w(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(fs(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(fs(t),n)}opUpdate(t,n){const r=this.cache.get(t),o=n(r);o===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,o),this.updateTimes.set(t,Na),Na+=1)}}const Oi="data-token-hash",St="data-css-hash",bt="__cssinjs_instance__";function Em(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${St}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[bt]||(o[bt]=e),o[bt]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${St}]`)).forEach(o=>{var i;const s=o.getAttribute(St);r[s]?o[bt]===e&&((i=o.parentNode)==null||i.removeChild(o)):r[s]=!0})}return new xm(e)}const mr=u.createContext({hashPriority:"low",cache:Em(),defaultCache:!0,autoPrefix:!1});function Cm(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const wn=class wn{constructor(){w(this,"cache");w(this,"keys");w(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(o=>{var s;r?r=(s=r==null?void 0:r.map)==null?void 0:s.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>wn.MAX_CACHE_SIZE+wn.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((s,i)=>{const[,a]=s;return this.internalGet(i)[1]<a?[i,this.internalGet(i)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,s)=>{if(s===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var s;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(s=r.value)==null?void 0:s[0];const o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Cm(n,t)),this.deleteByPath(this.cache,t)}};w(wn,"MAX_CACHE_SIZE",20),w(wn,"MAX_CACHE_OFFSET",5);let ds=wn,_a=0;class jl{constructor(t){w(this,"derivatives");w(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=_a,t.length===0&&(t.length>0,void 0),_a+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Io=new ds;function ms(e){const t=Array.isArray(e)?e:[e];return Io.has(t)||Io.set(t,new jl(t)),Io.get(t)}const wm=new WeakMap,Oo={};function Pm(e,t){let n=wm;for(let r=0;r<t.length;r+=1){const o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Oo)||n.set(Oo,e()),n.get(Oo)}const ka=new WeakMap;function er(e){let t=ka.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof jl?t+=r.id:r&&typeof r=="object"?t+=er(r):t+=r}),t=sr(t),ka.set(e,t)),t}function Rm(e,t){return sr(`${t}_${er(e)}`)}const hs=kt();function U(e){return typeof e=="number"?`${e}px`:e}function Wl(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const Mm=e=>e!=null;function Li(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const Vr=(e,t="")=>`--${t?`${t}-`:""}${e}`.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(),Tm=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const i=`${Wl({hashCls:r,hashPriority:o})}.${t}`,a=[s].flat().filter(Boolean);return`${a.length?a.map(c=>`${i}.${c}`).join(", "):i}{${Object.entries(e).map(([c,f])=>`${c}:${f};`).join("")}}`},ql=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:s,unitless:i,ignore:a,preserve:l}=n||{},c={},f={};return Object.entries(e).forEach(([d,m])=>{if(l!=null&&l[d])f[d]=m;else if((typeof m=="string"||typeof m=="number")&&!(a!=null&&a[d])){const h=Vr(d,s);c[h]=typeof m=="number"&&!(i!=null&&i[d])?`${m}px`:String(m),f[d]=`var(${h})`}}),[f,Tm(c,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:o})]},Er=new Map;function Ni(e,t,n,r,o){const{cache:s}=u.useContext(mr),i=[e,...t],a=fs(i),l=d=>{s.opUpdate(a,m=>{const[h=0,b]=m||[void 0,void 0],p=b||n(),v=[h,p];return d?d(v):v})};u.useMemo(()=>{l()},[a]);const f=s.opGet(a)[1];return u.useInsertionEffect(()=>(l(([d,m])=>[d+1,m]),Er.has(a)||(o==null||o(f),Er.set(a,!0),Promise.resolve().then(()=>{Er.delete(a)})),()=>{s.opUpdate(a,d=>{const[m=0,h]=d||[];return m-1===0?(r==null||r(h,!1),Er.delete(a),null):[m-1,h]})}),[a]),f}const Am={},Fm="css",Kt=new Map;function Im(e){Kt.set(e,(Kt.get(e)||0)+1)}function Om(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Oi}="${e}"]`).forEach(r=>{var o;r[bt]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const Lm=-1;function Nm(e,t){Kt.set(e,(Kt.get(e)||0)-1);const n=new Set;Kt.forEach((r,o)=>{r<=0&&n.add(o)}),Kt.size-n.size>Lm&&n.forEach(r=>{Om(r,t),Kt.delete(r)})}const _m=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},km="token";function Hm(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:s}=u.useContext(mr),{salt:i="",override:a=Am,formatToken:l,getComputedToken:c,cssVar:f,nonce:d}=n,m=Pm(()=>Object.assign({},...t),t),h=er(m),b=er(a),g=er(f);return Ni(km,[i,e.id,h,b,g],()=>{const v=c?c(m,a,e):_m(m,a,e,l),S={...v},y=`${i}_${f.prefix}`,x=sr(y),$=`${Fm}-${x}`;S._tokenKey=Rm(S,y);const[C,E]=ql(v,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve,hashPriority:s,hashCls:f.hashed?$:void 0});return C._hashId=x,Im(f.key),[C,$,S,E,f.key]},([,,,,v])=>{Nm(v,r)},([,,,v,S])=>{if(!v)return;let y={mark:St,prepend:"queue",attachTo:o,priority:-999};y=Li(y,d);const x=Pn(v,sr(`css-var-${S}`),y);x[bt]=r,x.setAttribute(Oi,S)})}var Bm={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},ue="-ms-",tr="-moz-",Y="-webkit-",Ul="comm",_i="rule",ki="decl",zm="@import",Vm="@namespace",Xl="@keyframes",Dm="@layer",Kl=Math.abs,Hi=String.fromCharCode,ps=Object.assign;function jm(e,t){return Se(e,0)^45?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}function Gl(e){return e.trim()}function yt(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,n){return e.replace(t,n)}function Dr(e,t,n){return e.indexOf(t,n)}function Se(e,t){return e.charCodeAt(t)|0}function an(e,t,n){return e.slice(t,n)}function nt(e){return e.length}function Yl(e){return e.length}function Qn(e,t){return t.push(e),e}function Wm(e,t){return e.map(t).join("")}function Ha(e,t){return e.filter(function(n){return!yt(n,t)})}var io=1,Fn=1,Ql=0,Ye=0,be=0,_n="";function ao(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:io,column:Fn,length:i,return:"",siblings:a}}function Mt(e,t){return ps(ao("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function vn(e){for(;e.root;)e=Mt(e.root,{children:[e]});Qn(e,e.siblings)}function qm(){return be}function Um(){return be=Ye>0?Se(_n,--Ye):0,Fn--,be===10&&(Fn=1,io--),be}function st(){return be=Ye<Ql?Se(_n,Ye++):0,Fn++,be===10&&(Fn=1,io++),be}function Ot(){return Se(_n,Ye)}function jr(){return Ye}function co(e,t){return an(_n,e,t)}function ir(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 Xm(e){return io=Fn=1,Ql=nt(_n=e),Ye=0,[]}function Km(e){return _n="",e}function Lo(e){return Gl(co(Ye-1,gs(e===91?e+2:e===40?e+1:e)))}function Gm(e){for(;(be=Ot())&&be<33;)st();return ir(e)>2||ir(be)>3?"":" "}function Ym(e,t){for(;--t&&st()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return co(e,jr()+(t<6&&Ot()==32&&st()==32))}function gs(e){for(;st();)switch(be){case e:return Ye;case 34:case 39:e!==34&&e!==39&&gs(be);break;case 40:e===41&&gs(e);break;case 92:st();break}return Ye}function Qm(e,t){for(;st()&&e+be!==57;)if(e+be===84&&Ot()===47)break;return"/*"+co(t,Ye-1)+"*"+Hi(e===47?e:st())}function Zm(e){for(;!ir(Ot());)st();return co(e,Ye)}function Ba(e){return Km(Wr("",null,null,null,[""],e=Xm(e),0,[0],e))}function Wr(e,t,n,r,o,s,i,a,l){for(var c=0,f=0,d=i,m=0,h=0,b=0,g=1,p=1,v=1,S=0,y="",x=o,$=s,C=r,E=y;p;)switch(b=S,S=st()){case 40:if(b!=108&&Se(E,d-1)==58){Dr(E+=V(Lo(S),"&","&\f"),"&\f",Kl(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Lo(S);break;case 9:case 10:case 13:case 32:E+=Gm(b);break;case 92:E+=Ym(jr()-1,7);continue;case 47:switch(Ot()){case 42:case 47:Qn(Jm(Qm(st(),jr()),t,n,l),l),(ir(b||1)==5||ir(Ot()||1)==5)&&nt(E)&&an(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*g:a[c++]=nt(E)*v;case 125*g:case 59:case 0:switch(S){case 0:case 125:p=0;case 59+f:v==-1&&(E=V(E,/\f/g,"")),h>0&&(nt(E)-d||g===0&&b===47)&&Qn(h>32?Va(E+";",r,n,d-1,l):Va(V(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(Qn(C=za(E,t,n,c,f,o,a,y,x=[],$=[],d,s),s),S===123)if(f===0)Wr(E,t,C,C,x,s,d,a,$);else{switch(m){case 99:if(Se(E,3)===110)break;case 108:if(Se(E,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Wr(e,C,C,r&&Qn(za(e,C,C,0,0,o,a,y,o,x=[],d,$),$),o,$,d,a,r?x:$):Wr(E,C,C,C,[""],$,0,a,$)}}c=f=h=0,g=v=1,y=E="",d=i;break;case 58:d=1+nt(E),h=b;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&Um()==125)continue}switch(E+=Hi(S),S*g){case 38:v=f>0?1:(E+="\f",-1);break;case 44:a[c++]=(nt(E)-1)*v,v=1;break;case 64:Ot()===45&&(E+=Lo(st())),m=Ot(),f=d=nt(y=E+=Zm(jr())),S++;break;case 45:b===45&&nt(E)==2&&(g=0)}}return s}function za(e,t,n,r,o,s,i,a,l,c,f,d){for(var m=o-1,h=o===0?s:[""],b=Yl(h),g=0,p=0,v=0;g<r;++g)for(var S=0,y=an(e,m+1,m=Kl(p=i[g])),x=e;S<b;++S)(x=Gl(p>0?h[S]+" "+y:V(y,/&\f/g,h[S])))&&(l[v++]=x);return ao(e,t,n,o===0?_i:a,l,c,f,d)}function Jm(e,t,n,r){return ao(e,t,n,Ul,Hi(qm()),an(e,2,-2),0,r)}function Va(e,t,n,r,o){return ao(e,t,n,ki,an(e,0,r),an(e,r+1,-1),r,o)}function Zl(e,t,n){switch(jm(e,t)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Y+e+e;case 4855:return Y+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+tr+e+ue+e+e;case 5936:switch(Se(e,t+11)){case 114:return Y+e+ue+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+ue+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+ue+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+ue+e+e;case 6165:return Y+e+ue+"flex-"+e+e;case 5187:return Y+e+V(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+ue+"flex-$1$2")+e;case 5443:return Y+e+ue+"flex-item-"+V(e,/flex-|-self/g,"")+(yt(e,/flex-|baseline/)?"":ue+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return Y+e+ue+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+ue+V(e,"shrink","negative")+e;case 5292:return Y+e+ue+V(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+V(e,"-grow","")+Y+e+ue+V(e,"grow","positive")+e;case 4554:return Y+V(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+ue+"flex-pack:$3"),/space-between/,"justify")+Y+e+e;case 4200:if(!yt(e,/flex-|baseline/))return ue+"grid-column-align"+an(e,t)+e;break;case 2592:case 3360:return ue+V(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,yt(r.props,/grid-\w+-end/)})?~Dr(e+(n=n[t].value),"span",0)?e:ue+V(e,"-start","")+e+ue+"grid-row-span:"+(~Dr(n,"span",0)?yt(n,/\d+/):+yt(n,/\d+/)-+yt(e,/\d+/))+";":ue+V(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return yt(r.props,/grid-\w+-start/)})?e:ue+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nt(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+tr+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dr(e,"stretch",0)?Zl(V(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,c){return ue+o+":"+s+c+(i?ue+o+"-span:"+(a?l:+l-+s)+c:"")+e});case 4949:if(Se(e,t+6)===121)return V(e,":",":"+Y)+e;break;case 6444:switch(Se(e,Se(e,14)===45?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(Se(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+ue+"$2box$3")+e;case 100:return V(e,":",":"+ue)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function ar(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Da(e,t,n,r){switch(e.type){case Dm:if(e.children.length)break;case zm:case Vm:case ki:return e.return=e.return||e.value;case Ul:return"";case Xl:return e.return=e.value+"{"+ar(e.children,r)+"}";case _i:if(!nt(e.value=e.props.join(",")))return""}return nt(n=ar(e.children,r))?e.return=e.value+"{"+n+"}":""}function eh(e){var t=Yl(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function th(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ki:e.return=Zl(e.value,e.length,n);return;case Xl:return ar([Mt(e,{value:V(e.value,"@","@"+Y)})],r);case _i:if(e.length)return Wm(n=e.props,function(o){switch(yt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vn(Mt(e,{props:[V(o,/:(read-\w+)/,":"+tr+"$1")]})),vn(Mt(e,{props:[o]})),ps(e,{props:Ha(n,r)});break;case"::placeholder":vn(Mt(e,{props:[V(o,/:(plac\w+)/,":"+Y+"input-$1")]})),vn(Mt(e,{props:[V(o,/:(plac\w+)/,":"+tr+"$1")]})),vn(Mt(e,{props:[V(o,/:(plac\w+)/,ue+"input-$1")]})),vn(Mt(e,{props:[o]})),ps(e,{props:Ha(n,r)});break}return""})}}const ja="data-ant-cssinjs-cache-path",Jl="_FILE_STYLE__";let rn,eu=!0;function nh(){var e;if(!rn&&(rn={},kt())){const t=document.createElement("div");t.className=ja,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[s,i]=o.split(":");rn[s]=i});const r=document.querySelector(`style[${ja}]`);r&&(eu=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function rh(e){return nh(),!!rn[e]}function oh(e){const t=rn[e];let n=null;if(t&&kt())if(eu)n=Jl;else{const r=document.querySelector(`style[${St}="${rn[e]}"]`);r?n=r.innerHTML:delete rn[e]}return[n,t]}const sh="_skip_check_",tu="_multi_value_";function No(e,t){return(t?ar(Ba(e),eh([th,Da])):ar(Ba(e),Da)).replace(/\{%%%\:[^;];}/g,";")}function ih(e){return typeof e=="object"&&e&&(sh in e||tu in e)}function Wa(e,t,n="high"){if(!t)return e;const r=Wl({hashCls:t,hashPriority:n});return e.split(",").map(s=>{var c;const i=s.trim().split(/\s+/);let a=i[0]||"";const l=((c=a.match(/^\w+/))==null?void 0:c[0])||"";return a=`${l}${r}${a.slice(l.length)}`,[a,...i.slice(1)].join(" ")}).join(",")}const ys=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:i,path:a,hashPriority:l,transformers:c=[],linters:f=[]}=t;let d="",m={};function h(p){const v=p.getName(s);if(!m[v]){const[S]=ys(p.style,t,{root:!1,parentSelectors:o});m[v]=`@keyframes ${p.getName(s)}${S}`}}function b(p,v=[]){return p.forEach(S=>{Array.isArray(S)?b(S,v):S&&v.push(S)}),v}return b(Array.isArray(e)?e:[e]).forEach(p=>{const v=typeof p=="string"&&!n?{}:p;if(typeof v=="string")d+=`${v}
`;else if(v._keyframe)h(v);else{const S=c.reduce((y,x)=>{var $;return(($=x==null?void 0:x.visit)==null?void 0:$.call(x,y))||y},v);Object.keys(S).forEach(y=>{const x=S[y];if(typeof x=="object"&&x&&(y!=="animationName"||!x._keyframe)&&!ih(x)){let $=!1,C=y.trim(),E=!1;(n||r)&&s?C.startsWith("@")?$=!0:C==="&"?C=Wa("",s,l):C=Wa(y,s,l):n&&!s&&(C==="&"||C==="")&&(C="",E=!0);const[R,M]=ys(x,t,{root:E,injectHash:$,parentSelectors:[...o,C]});m={...m,...M},d+=`${C}${R}`}else{let $=function(E,R){const M=E.replace(/[A-Z]/g,P=>`-${P.toLowerCase()}`);let T=R;!Bm[E]&&typeof T=="number"&&T!==0&&(T=`${T}px`),E==="animationName"&&(R!=null&&R._keyframe)&&(h(R),T=R.getName(s)),d+=`${M}:${T};`};const C=(x==null?void 0:x.value)??x;typeof x=="object"&&(x!=null&&x[tu])&&Array.isArray(C)?C.forEach(E=>{$(y,E)}):Mm(C)&&$(y,C)}})}}),n?i&&(d&&(d=`@layer ${i.name} {${d}}`),i.dependencies&&(m[`@layer ${i.name}`]=i.dependencies.map(p=>`@layer ${p}, ${i.name};`).join(`
`))):d=`{${d}}`,[d,m]};function nu(e,t){return sr(`${e.join("%")}${t}`)}const ah="style";function bs(e,t){const{path:n,hashId:r,layer:o,nonce:s,clientOnly:i,order:a=0}=e,{mock:l,hashPriority:c,container:f,transformers:d,linters:m,cache:h,layer:b,autoPrefix:g}=u.useContext(mr),p=[r||""];b&&p.push("layer"),p.push(...n);let v=hs;Ni(ah,p,()=>{const S=p.join("|");if(rh(S)){const[R,M]=oh(S);if(R)return[R,M,{},i,a]}const y=t(),[x,$]=ys(y,{hashId:r,hashPriority:c,layer:b?o:void 0,path:n.join("-"),transformers:d,linters:m}),C=No(x,g||!1),E=nu(p,C);return[C,E,$,i,a]},(S,y)=>{const[,x]=S;y&&hs&&Mi(x,{mark:St,attachTo:f})},S=>{const[y,x,$,,C]=S;if(v&&y!==Jl){let E={mark:St,prepend:b?!1:"queue",attachTo:f,priority:C};E=Li(E,s);const R=[],M=[];Object.keys($).forEach(P=>{P.startsWith("@layer")?R.push(P):M.push(P)}),R.forEach(P=>{Pn(No($[P],g||!1),`_layer-${P}`,{...E,prepend:!0})});const T=Pn(y,x,E);T[bt]=h.instanceId,M.forEach(P=>{Pn(No($[P],g||!1),`_effect-${P}`,E)})}})}const ch="cssVar",lh=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:s,token:i,hashId:a,scope:l,nonce:c}=e,{cache:{instanceId:f},container:d,hashPriority:m}=u.useContext(mr),{_tokenKey:h}=i,b=Array.isArray(l)?l.join("@@"):l,g=[...e.path,n,b,h];return Ni(ch,g,()=>{const v=t(),[S,y]=ql(v,n,{prefix:r,unitless:o,ignore:s,scope:l,hashPriority:m,hashCls:a}),x=nu(g,y);return[S,y,x,n]},([,,v])=>{hs&&Mi(v,{mark:St,attachTo:d})},([,v,S])=>{if(!v)return;let y={mark:St,prepend:"queue",attachTo:d,priority:-999};y=Li(y,c);const x=Pn(v,S,y);x[bt]=f,x.setAttribute(Oi,n)})};class Q{constructor(t,n){w(this,"name");w(this,"style");w(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function Sn(e){return e.notSplit=!0,e}Sn(["borderTop","borderBottom"]),Sn(["borderTop"]),Sn(["borderBottom"]),Sn(["borderLeft","borderRight"]),Sn(["borderLeft"]),Sn(["borderRight"]);function it(e){"@babel/helpers - typeof";return it=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},it(e)}function uh(e){if(Array.isArray(e))return e}function fh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(f){c=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function dh(){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 ru(e,t){return uh(e)||fh(e,t)||Dl(e,t)||dh()}function mh(e,t){if(it(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(it(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ou(e){var t=mh(e,"string");return it(t)=="symbol"?t:t+""}function mt(e,t,n){return(t=ou(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qa(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(r){mt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hh(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,ou(r.key),r)}}function uo(e,t,n){return t&&hh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vs(e,t){return vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vs(e,t)}function ph(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&&vs(e,t)}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qr(e)}function su(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(su=function(){return!!e})()}function gh(e,t){if(t&&(it(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qr(e)}function yh(e){var t=su();return function(){var n,r=Qr(e);if(t){var o=Qr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gh(this,n)}}var bh=uo(function e(){lo(this,e)}),iu="CALC_UNIT",vh=new RegExp(iu,"g");function _o(e){return typeof e=="number"?"".concat(e).concat(iu):e}var Sh=(function(e){ph(n,e);var t=yh(n);function n(r,o){var s;lo(this,n),s=t.call(this),mt(qr(s),"result",""),mt(qr(s),"unitlessCssVar",void 0),mt(qr(s),"lowPriority",void 0);var i=it(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):i==="number"?s.result=_o(r):i==="string"&&(s.result=r),s}return uo(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(_o(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(_o(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,i=o||{},a=i.unit,l=!0;return typeof a=="boolean"?l=a:Array.from(this.unitlessCssVar).some(function(c){return s.result.includes(c)})&&(l=!1),this.result=this.result.replace(vh,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(bh),$h=function(t,n){var r=Sh;return function(o){return new r(o,n)}},Ua=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 Xa(e,t,n,r){var o=Oe({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(a){var l=ru(a,2),c=l[0],f=l[1];if(o!=null&&o[c]||o!=null&&o[f]){var d;(d=o[f])!==null&&d!==void 0||(o[f]=o==null?void 0:o[c])}})}var i=Oe(Oe({},n),o);return Object.keys(i).forEach(function(a){i[a]===t[a]&&delete i[a]}),i}var au=typeof CSSINJS_STATISTIC<"u",Ss=!0;function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!au)return Object.assign.apply(Object,[{}].concat(t));Ss=!1;var r={};return t.forEach(function(o){if(it(o)==="object"){var s=Object.keys(o);s.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Ss=!0,r}var Ka={};function xh(){}var Eh=function(t){var n,r=t,o=xh;return au&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,a){if(Ss){var l;(l=n)===null||l===void 0||l.add(a)}return i[a]}}),o=function(i,a){var l;Ka[i]={global:Array.from(n),component:Oe(Oe({},(l=Ka[i])===null||l===void 0?void 0:l.component),a)}}),{token:r,keys:n,flush:o}};function Ga(e,t,n){if(typeof n=="function"){var r;return n(Ht(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Ch(e){return{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 U(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 U(s)}).join(","),")")}}}var wh=1e3*60*10,Ph=(function(){function e(){lo(this,e),mt(this,"map",new Map),mt(this,"objectIDMap",new WeakMap),mt(this,"nextID",0),mt(this,"lastAccessBeat",new Map),mt(this,"accessBeat",0)}return uo(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&&it(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(it(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>wh&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Ya=new Ph;function Rh(e,t){return A.useMemo(function(){var n=Ya.get(t);if(n)return n;var r=e();return Ya.set(t,r),r},t)}var Mh=function(){return{}};function Th(e){var t=e.useCSP,n=t===void 0?Mh:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,i=e.getCommonStyle,a=e.getCompUnitless;function l(m,h,b,g){var p=Array.isArray(m)?m[0]:m;function v(R){return"".concat(String(p)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var S=(g==null?void 0:g.unitless)||{},y=typeof a=="function"?a(m):{},x=Oe(Oe({},y),{},mt({},v("zIndexPopup"),!0));Object.keys(S).forEach(function(R){x[v(R)]=S[R]});var $=Oe(Oe({},g),{},{unitless:x,prefixToken:v}),C=f(m,h,b,$),E=c(p,b,$);return function(R){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,T=C(R,M),P=g==null?void 0:g.extraCssVarPrefixCls,F=typeof P=="function"?P({prefixCls:R,rootCls:M}):P,O=E(F!=null&&F.length?[M].concat(sn(F)):M);return[T,O]}}function c(m,h,b){var g=b.unitless,p=b.prefixToken,v=b.ignore;return function(S){var y=r(),x=y.cssVar,$=y.realToken,C=n();return lh({path:[m],prefix:x.prefix,key:x.key,unitless:g,ignore:v,token:$,scope:S,nonce:function(){return C.nonce}},function(){var E=Ga(m,$,h),R=Xa(m,$,E,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return E&&Object.keys(E).forEach(function(M){R[p(M)]=R[M],delete R[M]}),R}),x==null?void 0:x.key}}function f(m,h,b){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(m)?m:[m,m],v=ru(p,1),S=v[0],y=p.join("-"),x=e.layer||{name:"antd"};return function($){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,E=r(),R=E.theme,M=E.realToken,T=E.hashId,P=E.token,F=E.cssVar,O=E.zeroRuntime,_=u.useMemo(function(){return O},[]);if(_)return T;var j=o(),L=j.rootPrefixCls,N=j.iconPrefixCls,D=n(),X="css",se=Rh(function(){var ne=new Set;return Object.keys(g.unitless||{}).forEach(function(te){ne.add(Vr(te,F.prefix)),ne.add(Vr(te,Ua(S,F.prefix)))}),$h(X,ne)},[X,S,F==null?void 0:F.prefix]),xe=Ch(),K=xe.max,de=xe.min,q={theme:R,token:P,hashId:T,nonce:function(){return D.nonce},clientOnly:g.clientOnly,layer:x,order:g.order||-999};return typeof s=="function"&&bs(Oe(Oe({},q),{},{clientOnly:!1,path:["Shared",L]}),function(){return s(P,{prefix:{rootPrefixCls:L,iconPrefixCls:N},csp:D})}),bs(Oe(Oe({},q),{},{path:[y,$,N]}),function(){if(g.injectStyle===!1)return[];var ne=Eh(P),te=ne.token,me=ne.flush,I=Ga(S,M,b),H=".".concat($),Z=Xa(S,M,I,{deprecatedTokens:g.deprecatedTokens});I&&it(I)==="object"&&Object.keys(I).forEach(function(Qe){I[Qe]="var(".concat(Vr(Qe,Ua(S,F.prefix)),")")});var fe=Ht(te,{componentCls:H,prefixCls:$,iconCls:".".concat(N),antCls:".".concat(L),calc:se,max:K,min:de},I),k=h(fe,{hashId:T,prefixCls:$,rootPrefixCls:L,iconPrefixCls:N});me(S,Z);var at=typeof i=="function"?i(fe,$,C,g.resetFont):null;return[g.resetStyle===!1?null:at,k]}),T}}function d(m,h,b){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=f(m,h,b,Oe({resetStyle:!1,order:-998},g)),v=function(y){var x=y.prefixCls,$=y.rootCls,C=$===void 0?x:$;return p(x,C),null};return v}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:f}}const $t=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ur(e){return(e+8)/e}function Ah(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.E**(o/5),i=r>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ur(n)}))}const Fh="6.5.2",Bi={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"},cr={...Bi,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},Ih={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},we=Math.round;function ko(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 Qa=(e,t,n)=>n===0?e:e/100;function Un(e,t){const n=t||255;return e>n?n:e<0?0:e}class ye{constructor(t){w(this,"isValid",!0);w(this,"r",0);w(this,"g",0);w(this,"b",0);w(this,"a",1);w(this,"_h");w(this,"_hsl_s");w(this,"_hsv_s");w(this,"_l");w(this,"_v");w(this,"_max");w(this,"_min");w(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(s){return r.startsWith(s)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(o("rgb"))this.fromRgbString(r);else if(o("hsl"))this.fromHslString(r);else if(o("hsv")||o("hsb"))this.fromHsvString(r);else{const s=Ih[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof ye)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Un(t.r),this.g=Un(t.g),this.b=Un(t.b),this.a=typeof t.a=="number"?Un(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 i=s/255;return i<=.03928?i/12.92:Math.pow((i+.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=we(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(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_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=a=>(r[a]-this[a])*o+this[a],i={r:we(s("r")),g:we(s("g")),b:we(s("b")),a:we(s("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=s=>we((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=we(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=we(this.getHSLSaturation()*100),r=we(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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]=Un(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}){const s=(t%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=we(r*255);this.r=h,this.g=h,this.b=h;return}let i=0,a=0,l=0;const c=s/60,f=(1-Math.abs(2*r-1))*n,d=f*(1-Math.abs(c%2-1));c>=0&&c<1?(i=f,a=d):c>=1&&c<2?(i=d,a=f):c>=2&&c<3?(a=f,l=d):c>=3&&c<4?(a=d,l=f):c>=4&&c<5?(i=d,l=f):c>=5&&c<6&&(i=f,l=d);const m=r-f/2;this.r=we((i+m)*255),this.g=we((a+m)*255),this.b=we((l+m)*255)}fromHsv({h:t,s:n,v:r,a:o}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=we(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=s/60,l=Math.floor(a),c=a-l,f=we(r*(1-n)*255),d=we(r*(1-n*c)*255),m=we(r*(1-n*(1-c))*255);switch(l){case 0:this.g=m,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=m;break;case 3:this.r=f,this.g=d;break;case 4:this.r=m,this.g=f;break;case 5:default:this.g=f,this.b=d;break}}fromHsvString(t){const n=ko(t,Qa);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ko(t,Qa);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ko(t,(r,o)=>o.includes("%")?we(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Cr=2,Za=.16,Oh=.05,Lh=.05,Nh=.15,cu=5,lu=4,_h=[{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 Ja(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Cr*t:Math.round(e.h)+Cr*t:r=n?Math.round(e.h)+Cr*t:Math.round(e.h)-Cr*t,r<0?r+=360:r>=360&&(r-=360),r}function ec(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Za*t:t===lu?r=e.s+Za:r=e.s+Oh*t,r>1&&(r=1),n&&t===cu&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function tc(e,t,n){let r;return n?r=e.v+Lh*t:r=e.v-Nh*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function fo(e,t={}){const n=[],r=new ye(e),o=r.toHsv();for(let s=cu;s>0;s-=1){const i=new ye({h:Ja(o,s,!0),s:ec(o,s,!0),v:tc(o,s,!0)});n.push(i)}n.push(r);for(let s=1;s<=lu;s+=1){const i=new ye({h:Ja(o,s),s:ec(o,s),v:tc(o,s)});n.push(i)}return t.theme==="dark"?_h.map(({index:s,amount:i})=>new ye(t.backgroundColor||"#141414").mix(n[s],i).toHexString()):n.map(s=>s.toHexString())}const Ho={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"},$s=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];$s.primary=$s[5];const xs=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];xs.primary=xs[5];const Es=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Es.primary=Es[5];const Cs=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Cs.primary=Cs[5];const ws=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ws.primary=ws[5];const Ps=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ps.primary=Ps[5];const Rs=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rs.primary=Rs[5];const Ms=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ms.primary=Ms[5];const Ts=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ts.primary=Ts[5];const As=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];As.primary=As[5];const Fs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Fs.primary=Fs[5];const Is=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Is.primary=Is[5];const Os=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Os.primary=Os[5];const Bo={red:$s,volcano:xs,orange:Es,gold:Cs,yellow:ws,lime:Ps,green:Rs,cyan:Ms,blue:Ts,geekblue:As,purple:Fs,magenta:Is,grey:Os};function uu(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:a,colorBgBase:l,colorTextBase:c}=e,f=t(a),d=t(r),m=t(o),h=t(s),b=t(i),g=n(l,c),p=e.colorLink||e.colorInfo,v=t(p),S=new ye(h[1]).mix(new ye(h[3]),50).toHexString(),y={};return $t.forEach(x=>{const $=e[x];if($){const C=t($);y[`${x}Hover`]=C[5],y[`${x}Active`]=C[7]}}),{...g,colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:S,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],...y,colorBgMask:new ye("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const kh=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 Hh(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1,...kh(r)}}const Bh=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},zh=e=>{const t=Ah(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),o=n[1],s=n[0],i=n[2],a=r[1],l=r[0],c=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:a,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(a*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Vh(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 Xe=(e,t)=>new ye(e).setA(t).toRgbString(),$n=(e,t)=>new ye(e).darken(t).toHexString(),Dh=e=>{const t=fo(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]}},jh=(e,t,n)=>{const r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"#000",colorText:Xe(o,.88),colorTextSecondary:Xe(o,.65),colorTextTertiary:Xe(o,.45),colorTextQuaternary:Xe(o,.25),colorFill:Xe(o,.15),colorFillSecondary:Xe(o,.06),colorFillTertiary:Xe(o,.04),colorFillQuaternary:Xe(o,.02),colorBgSolid:Xe(o,1),colorBgSolidHover:Xe(o,.75),colorBgSolidActive:Xe(o,.95),colorBgLayout:$n(r,4),colorBgContainer:$n(r,0),colorBgElevated:$n(r,0),colorBgSpotlight:Xe(o,.85),colorBgBlur:"transparent",colorBorder:$n(r,15),colorBorderDisabled:$n(r,15),colorBorderSecondary:$n(r,6)}};function zi(e){Ho.pink=Ho.magenta,Bo.pink=Bo.magenta;const t=Object.keys(Bi).map(n=>{const r=e[n]===Ho[n]?Bo[n]:fo(e[n]);return Array.from({length:10},()=>1).reduce((o,s,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...uu(e,{generateColorPalettes:Dh,generateNeutralColorPalettes:jh}),...zh(e.fontSize),...Vh(e),...Bh(e),...Hh(e)}}const fu=ms(zi),Zr={token:cr,override:{override:cr},hashed:!0},du=A.createContext(Zr);function zo(e){return e>=0&&e<=255}function Zn(e,t){const{r:n,g:r,b:o,a:s}=new ye(e).toRgb();if(s<1)return e;const{r:i,g:a,b:l}=new ye(t).toRgb();for(let c=.01;c<=1;c+=.01){const f=Math.round((n-i*(1-c))/c),d=Math.round((r-a*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(zo(f)&&zo(d)&&zo(m))return new ye({r:f,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new ye({r:n,g:r,b:o,a:1}).toRgbString()}function Wh(e){const{override:t,...n}=e,r={...t};Object.keys(cr).forEach(p=>{delete r[p]});const o={...n,...r},s=new ye(o.colorShadow),i=s.a,a=p=>s.clone().setA(i*p).toRgbString(),l=480,c=576,f=768,d=992,m=1200,h=1600,b=1920;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Zn(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:Zn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Zn(o.colorWarningBg,o.colorBgContainer),colorErrorAffix:o.colorError,colorWarningAffix:o.colorWarning,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:Zn(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 ${a(.08)},
0 3px 6px -4px ${a(.12)},
0 9px 28px 8px ${a(.05)}
`,boxShadowSecondary:`
0 6px 16px 0 ${a(.08)},
0 3px 6px -4px ${a(.12)},
0 9px 28px 8px ${a(.05)}
`,boxShadowTertiary:`
0 1px 2px 0 ${a(.05)},
0 1px 6px -1px ${a(.03)},
0 2px 4px 0 ${a(.03)}
`,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:f-1,screenMD:f,screenMDMin:f,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,screenXXLMax:b-1,screenXXXL:b,screenXXXLMin:b,boxShadowPopoverArrow:`2px 2px 5px ${a(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${a(.08)}) drop-shadow(0 3px 6px ${a(.12)}) drop-shadow(0 9px 28px ${a(.05)})`,boxShadowCard:`
0 1px 2px -2px ${a(.16)},
0 3px 6px 0 ${a(.12)},
0 5px 12px 4px ${a(.09)}
`,boxShadowDrawerRight:`
-6px 0 16px 0 ${a(.08)},
-3px 0 6px -4px ${a(.12)},
-9px 0 28px 8px ${a(.05)}
`,boxShadowDrawerLeft:`
6px 0 16px 0 ${a(.08)},
3px 0 6px -4px ${a(.12)},
9px 0 28px 8px ${a(.05)}
`,boxShadowDrawerUp:`
0 6px 16px 0 ${a(.08)},
0 3px 6px -4px ${a(.12)},
0 9px 28px 8px ${a(.05)}
`,boxShadowDrawerDown:`
0 -6px 16px 0 ${a(.08)},
0 -3px 6px -4px ${a(.12)},
0 -9px 28px 8px ${a(.05)}
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${a(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${a(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${a(.08)}`,...r}}const mu={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},qh={motionBase:!0,motionUnit:!0},Uh={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},hu=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...s}=t;let i={...r,override:o};return i=Wh(i),s&&Object.entries(s).forEach(([a,l])=>{const{theme:c,...f}=l;let d=f;c&&(d=hu({...i,...f},{override:f},c)),i[a]=d}),i};function xt(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:s}=A.useContext(du),{csp:i,getPrefixCls:a}=A.useContext(Pe),l={prefix:(o==null?void 0:o.prefix)??a(),key:(o==null?void 0:o.key)??"css-var-root"},c=`${Fh}-${t||""}`,f=n||fu,[d,m,h]=Hm(f,[cr,e],{salt:c,override:r,getComputedToken:hu,cssVar:{...l,unitless:mu,ignore:qh,preserve:Uh},nonce:i==null?void 0:i.nonce});return[f,h,t?m:"",d,l,!!s]}const Sv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xh=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Vi=()=>({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"}}),Kh=new Q("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),$v=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Gh=(e,t)=>({outline:`${U(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),mo=(e,t)=>({"&:focus-visible":Gh(e,t)}),Yh=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},...mo(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Qh=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return r!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...a,...i,[o]:i}}},pu=e=>({[`.${e}`]:{...Vi(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:Kh,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),xv=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...mo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ho,genComponentStyleHook:Zh,genSubStyleComponent:Jh}=Th({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Pe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,s]=xt();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:s}},useCSP:()=>{const{csp:e}=u.useContext(Pe);return e??{}},getResetStyles:(e,t)=>{const n=Yh(e);return[n,{"&":n},pu((t==null?void 0:t.prefix.iconPrefixCls)??so)]},getCommonStyle:Qh,getCompUnitless:()=>mu}),hr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,i)=>i?`var(${n}${s}, ${i})`:`var(${n}${s})`]};function Ev(e,t){return $t.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],i=e[`${r}6`],a=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:s,darkColor:i,textColor:a})}},{})}const ep=(e,t)=>(xt(),bs({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>pu(e))),Di=u.createContext({}),nc="data-rc-order",rc="data-rc-priority",tp="rc-util-key",Ls=new Map;function gu(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function np(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function yu({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:tp}function ji(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rp(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wi(e){return Array.from((Ls.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function bu(e,t={}){if(!gu())return null;const{csp:n,prepend:r,priority:o=0}=t,s=rp(r),i=s==="prependQueue",a=document.createElement("style");a.setAttribute(nc,s),i&&o&&a.setAttribute(rc,`${o}`),n!=null&&n.nonce&&(a.nonce=n.nonce),a.innerHTML=e;const l=ji(t),{firstChild:c}=l;if(r){if(i){const f=(t.styles||Wi(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(nc)))return!1;const m=Number(d.getAttribute(rc)||0);return o>=m});if(f.length)return l.insertBefore(a,f[f.length-1].nextSibling),a}l.insertBefore(a,c)}else l.appendChild(a);return a}function op(e,t={}){let{styles:n}=t;return n||(n=Wi(ji(t))),n.find(r=>r.getAttribute(yu(t))===e)}function sp(e,t){const n=Ls.get(e);if(!n||!np(document,n)){const r=bu("",t);if(!r)return;const{parentNode:o}=r;Ls.set(e,o),e.removeChild(r)}}function ip(e,t,n={}){var l;if(!gu())return null;const r=ji(n),o=Wi(r),s={...n,styles:o};sp(r,s);const i=op(t,s);if(i)return(l=s.csp)!=null&&l.nonce&&i.nonce!==s.csp.nonce&&(i.nonce=s.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=bu(e,s);return a==null||a.setAttribute(yu(s),t),a}function ap(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function cp(e){const t=ap(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const oc={};function lp(e,t){e||oc[t]||(oc[t]=!0)}function up(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function fp(e,t){lp(e,`[@ant-design/icons] ${t}`)}function sc(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function ic(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[up(n)]=r}return t},{})}function Ns(e,t,n){return n?A.createElement(e.tag,{key:t,...ic(e.attrs),...n},(e.children||[]).map((r,o)=>Ns(r,`${t}-${e.tag}-${o}`))):A.createElement(e.tag,{key:t,...ic(e.attrs)},(e.children||[]).map((r,o)=>Ns(r,`${t}-${e.tag}-${o}`)))}const dp=`
.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;
vertical-align: inherit;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin {
-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);
}
}
`,mp=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:o}=u.useContext(Di);let s=dp;n&&(s=s.replace(/anticon/g,n)),r&&(s=`@layer ${r} {
${s}
}`),u.useEffect(()=>{if(o)return;const i=e.current,a=cp(i);ip(s,"@ant-design-icons",{prepend:!r,csp:t,attachTo:a})},[])},vu=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:s,secondaryColor:i,...a}=e,l=u.useRef(null);if(mp(l),fp(sc(t),`icon should be icon definiton, but got ${t}`),!sc(t))return null;const c=t;return Ns(c.icon,`svg-${c.name}`,{className:n,onClick:r,style:o,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...a,ref:l})};vu.displayName="IconReact";function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(this,arguments)}const po=u.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:s,tabIndex:i,onClick:a,twoToneColor:l,...c}=e,{prefixCls:f="anticon",rootClassName:d}=u.useContext(Di),m=B(d,f,{[`${f}-${r.name}`]:!!r.name,[`${f}-spin`]:!!o||r.name==="loading"},n);let h=i;h===void 0&&a&&(h=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0;return u.createElement("span",_s({role:"img","aria-label":r.name},c,{ref:t,tabIndex:h,onClick:a,className:m}),u.createElement(vu,{icon:r,style:b}))});var wr={},ac;function hp(){if(ac)return wr;ac=1,Object.defineProperty(wr,"__esModule",{value:!0});var e={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"};return wr.default=e,wr}var pp=hp();const gp=dr(pp);function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}const yp=(e,t)=>u.createElement(po,ks({},e,{ref:t,icon:gp})),bp=u.forwardRef(yp);var Pr={},cc;function vp(){if(cc)return Pr;cc=1,Object.defineProperty(Pr,"__esModule",{value:!0});var e={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"};return Pr.default=e,Pr}var Sp=vp();const $p=dr(Sp);function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hs.apply(this,arguments)}const xp=(e,t)=>u.createElement(po,Hs({},e,{ref:t,icon:$p})),Su=u.forwardRef(xp),Bs=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function qi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Ep=e=>{const t=u.useRef(!1),[n,r]=u.useState(e);u.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function Cp(e){const[,t]=u.useReducer(s=>s+1,0),n=u.useRef(e),r=Bs(()=>n.current),o=Bs(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}var Vo={exports:{}},ee={};/**
* @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 lc;function wp(){if(lc)return ee;lc=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"),i=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function g(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case e:switch(p=p.type,p){case n:case o:case r:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case i:case l:case m:case d:case s:return p;default:return v}}case t:return v}}}return ee.ContextConsumer=i,ee.ContextProvider=s,ee.Element=e,ee.ForwardRef=l,ee.Fragment=n,ee.Lazy=m,ee.Memo=d,ee.Portal=t,ee.Profiler=o,ee.StrictMode=r,ee.Suspense=c,ee.SuspenseList=f,ee.isAsyncMode=function(){return!1},ee.isConcurrentMode=function(){return!1},ee.isContextConsumer=function(p){return g(p)===i},ee.isContextProvider=function(p){return g(p)===s},ee.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ee.isForwardRef=function(p){return g(p)===l},ee.isFragment=function(p){return g(p)===n},ee.isLazy=function(p){return g(p)===m},ee.isMemo=function(p){return g(p)===d},ee.isPortal=function(p){return g(p)===t},ee.isProfiler=function(p){return g(p)===o},ee.isStrictMode=function(p){return g(p)===r},ee.isSuspense=function(p){return g(p)===c},ee.isSuspenseList=function(p){return g(p)===f},ee.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===c||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===b||p.getModuleId!==void 0)},ee.typeOf=g,ee}var uc;function Pp(){return uc||(uc=1,Vo.exports=wp()),Vo.exports}var Mn=Pp();const Rp=Symbol.for("react.element"),Mp=Symbol.for("react.transitional.element"),Tp=Symbol.for("react.fragment");function Ap(e){return e&&typeof e=="object"&&(e.$$typeof===Rp||e.$$typeof===Mp)&&e.type===Tp}const Fp=Number(u.version.split(".")[0]),Ip=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Op=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Ip(r,n)})}},Lp=e=>{var n,r;if(!e)return!1;if(Ui(e)&&Fp>=19)return!0;const t=Mn.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Mn.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Mn.ForwardRef)};function Ui(e){return u.isValidElement(e)&&!Ap(e)}const Np=e=>Ui(e)&&Lp(e),_p=e=>{if(e&&Ui(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function fc(e){return e instanceof HTMLElement||e instanceof SVGElement}function kp(e){return e&&typeof e=="object"&&fc(e.nativeElement)?e.nativeElement:fc(e)?e:null}let $u=e=>+setTimeout(e,16),xu=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&($u=e=>window.requestAnimationFrame(e),xu=e=>window.cancelAnimationFrame(e));let dc=0;const Xi=new Map;function Eu(e){Xi.delete(e)}const zs=(e,t=1)=>{dc+=1;const n=dc;function r(o){if(o===0)Eu(n),e();else{const s=$u(()=>{r(o-1)});Xi.set(n,s)}}return r(t),n};zs.cancel=e=>{const t=Xi.get(e);return Eu(e),xu(t)};const Cu=u.createContext({}),Hp=e=>{const{children:t,...n}=e,r=u.useMemo(()=>({motion:n.motion}),[n.motion]);return u.createElement(Cu.Provider,{value:r},t)},ft="none",Rr="appear",Mr="enter",Tr="leave",mc="none",rt="prepare",Gt="start",Yt="active",Ki="end",wu="prepared";function hc(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Bp(e,t){const n={animationend:hc("Animation","AnimationEnd"),transitionend:hc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const zp=Bp(qi(),typeof window<"u"?window:{});let Pu={};qi()&&({style:Pu}=document.createElement("div"));const Ar={};function Ru(e){if(Ar[e])return Ar[e];const t=zp[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in Pu)return Ar[e]=t[s],Ar[e]}}return""}const Mu=Ru("animationend"),Tu=Ru("transitionend"),Vp=!!(Mu&&Tu),pc=Mu||"animationend",gc=Tu||"transitionend";function yc(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const Dp=(e=>{const t=u.useRef();function n(o){o&&(o.removeEventListener(gc,e),o.removeEventListener(pc,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(gc,e),o.addEventListener(pc,e),t.current=o)}return u.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Au=qi()?u.useLayoutEffect:u.useEffect,jp=(()=>{const e=u.useRef(null);function t(){zs.cancel(e.current)}function n(r,o=2){t();const s=zs(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return u.useEffect(()=>()=>{t()},[]),[n,t]}),Wp=[rt,Gt,Yt,Ki],qp=[rt,wu],Fu=!1,Up=!0;function Iu(e){return e===Yt||e===Ki}const Xp=((e,t,n)=>{const[r,o]=Ep(mc),[s,i]=jp();function a(){o(rt,!0)}const l=t?qp:Wp;return Au(()=>{if(r!==mc&&r!==Ki){const c=l.indexOf(r),f=l[c+1],d=n(r);d===Fu?o(f,!0):f&&s(m=>{function h(){m.isCanceled()||o(f,!0)}d===!0?h():Promise.resolve(d).then(h)})}},[e,r]),u.useEffect(()=>()=>{i()},[]),[a,r]});function Kp(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:a,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:f,onAppearStart:d,onEnterStart:m,onLeaveStart:h,onAppearActive:b,onEnterActive:g,onLeaveActive:p,onAppearEnd:v,onEnterEnd:S,onLeaveEnd:y,onVisibleChanged:x}){const[$,C]=u.useState(),[E,R]=Cp(ft),[M,T]=u.useState([null,null]),P=E(),F=u.useRef(!1),O=u.useRef(null);function _(){return n()}const j=u.useRef(!1);function L(){R(ft),T([null,null])}const N=Bs(I=>{const H=E();if(H===ft)return;const Z=_();if(I&&!I.deadline&&I.target!==Z)return;const fe=j.current;let k;H===Rr&&fe?k=v==null?void 0:v(Z,I):H===Mr&&fe?k=S==null?void 0:S(Z,I):H===Tr&&fe&&(k=y==null?void 0:y(Z,I)),fe&&k!==!1&&L()}),[D]=Dp(N),X=I=>{switch(I){case Rr:return{[rt]:l,[Gt]:d,[Yt]:b};case Mr:return{[rt]:c,[Gt]:m,[Yt]:g};case Tr:return{[rt]:f,[Gt]:h,[Yt]:p};default:return{}}},se=u.useMemo(()=>X(P),[P]),[xe,K]=Xp(P,!e,I=>{var H;if(I===rt){const Z=se[rt];return Z?Z(_()):Fu}return I in se&&T([((H=se[I])==null?void 0:H.call(se,_(),null))||null,I]),I===Yt&&P!==ft&&(D(_()),i>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{N({deadline:!0})},i))),I===wu&&L(),Up}),de=Iu(K);j.current=de;const q=u.useRef(null);Au(()=>{if(F.current&&q.current===t)return;C(t);const I=F.current;F.current=!0;let H;!I&&t&&o&&(H=Rr),I&&t&&r&&(H=Mr),(I&&!t&&s||!I&&a&&!t&&s)&&(H=Tr);const Z=X(H);H&&(e||Z[rt])?(R(H),xe()):R(ft),q.current=t},[t]),u.useEffect(()=>{(P===Rr&&!o||P===Mr&&!r||P===Tr&&!s)&&R(ft)},[o,r,s]),u.useEffect(()=>()=>{F.current=!1,clearTimeout(O.current)},[]);const ne=u.useRef(!1);u.useEffect(()=>{$&&(ne.current=!0),$!==void 0&&P===ft&&((ne.current||$)&&(x==null||x($)),ne.current=!0)},[$,P]);let te=M[0];se[rt]&&K===Gt&&(te={transition:"none",...te});const me=M[1];return[E,K,te,$??t,!F.current&&P===ft&&e&&o?"NONE":K===Gt||K===Yt?me===K:!0]}function Ou(e){return(e==null?void 0:e.length)<2}function Gp(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=u.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:a=!0,forceRender:l,children:c,motionName:f,leavedClassName:d,eventProps:m}=o,{motion:h}=u.useContext(Cu),b=n(o,h),g=u.useRef();function p(){return kp(g.current)}const[v,S,y,x,$]=Kp(b,i,p,o),C=v(),E=u.useRef(x);x&&(E.current=!0);const R=u.useMemo(()=>{const P={};return Object.defineProperties(P,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>v()!==ft},enableMotion:{enumerable:!0,get:()=>()=>b}}),P},[]);u.useImperativeHandle(s,()=>R,[]);const M=u.useRef(0);$&&(M.current+=1);const T=u.useMemo(()=>{if($==="NONE")return null;let P;const F={...m,visible:i};if(!c)P=null;else if(C===ft)x?P=c({...F},g):!a&&E.current&&d?P=c({...F,className:d},g):l||!a&&!d?P=c({...F,style:{display:"none"}},g):P=null;else{let O;S===rt?O="prepare":Iu(S)?O="active":S===Gt&&(O="start");const _=yc(f,`${C}-${O}`);P=c({...F,className:B(yc(f,C),{[_]:_&&O,[f]:typeof f=="string"}),style:y},g)}return P},[M.current]);if(Ou(c)&&Np(T)){const P=_p(T);if(P!==g)return u.cloneElement(T,{ref:Op(P,g)})}return T});return r.displayName="CSSMotion",r}const ln=Gp(Vp),Vs="add",Ds="keep",js="remove",Do="removed";function Yp(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Ws(e=[]){return e.map(Yp)}function Qp(e=[],t=[]){let n=[],r=0;const o=t.length,s=Ws(e),i=Ws(t);s.forEach(c=>{let f=!1;for(let d=r;d<o;d+=1){const m=i[d];if(m.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(h=>({...h,status:Vs}))),r=d),n.push({...m,status:Ds}),r+=1,f=!0;break}}f||n.push({...c,status:js})}),r<o&&(n=n.concat(i.slice(r).map(c=>({...c,status:Vs}))));const a={};return n.forEach(({key:c})=>{a[c]=(a[c]||0)+1}),Object.keys(a).filter(c=>a[c]>1).forEach(c=>{n=n.filter(({key:f,status:d})=>f!==c||d!==js),n.forEach(f=>{f.key===c&&(f.status=Ds)})}),n}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(this,arguments)}const Zp=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jp(e,t=ln){class n extends u.Component{constructor(){super(...arguments);w(this,"state",{keyEntities:[]});w(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==s?l:{...l,status:Do})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==Do).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const a=Ws(s);return{keyEntities:Qp(i,a).filter(c=>{const f=i.find(({key:d})=>c.key===d);return!(f&&f.status===Do&&c.status===js)})}}render(){const{keyEntities:s}=this.state,{component:i,children:a,onVisibleChanged:l,onAllRemoved:c,...f}=this.props,d=i||u.Fragment,m={};return Zp.forEach(h=>{m[h]=f[h],delete f[h]}),delete f.keys,u.createElement(d,f,s.map(({status:h,...b},g)=>{const p=h===Vs||h===Ds;return u.createElement(t,qs({},m,{key:b.key,visible:p,eventProps:b,onVisibleChanged:v=>{l==null||l(v,{key:b.key}),v||this.removeKey(b.key)}}),Ou(a)?v=>a({...v,index:g}):(v,S)=>a({...v,index:g},S))}))}}return w(n,"defaultProps",{component:"div"}),n}const Cv=Jp(),_t=e=>e!=null,pr=e=>_t(e)&&e!==!1&&e!=="",gr=e=>typeof e=="number"&&!Number.isNaN(e),on=e=>typeof e=="string",ze=e=>e!==null&&typeof e=="object",je=e=>typeof e=="function",jo=e=>_t(e)&&je(e.then),wv=e=>typeof e!="object"&&!je(e)||e===null,Lu=e=>ze(e)&&"propertyName"in e&&on(e.propertyName),Us=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{t[r]._default?n[r]||(n[r]={}):n[r]=Us(n[r],t[r])}),n},Nu=(e={},...t)=>t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(o=>{const s=e[o],i=r[o];if(s)if(ze(i))n[o]=Nu(s,n[o],i);else{const{_default:a}=s;a&&(n[o]=n[o]||{},n[o][a]=B(n[o][a],i))}else n[o]=B(n[o],i)}),n),{}),eg=(e,...t)=>u.useMemo(()=>Nu.apply(void 0,[e].concat(t)),[e].concat(t)),tg=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),ng=(...e)=>u.useMemo(()=>tg.apply(void 0,e),[].concat(e)),In=e=>u.useMemo(()=>e?{root:e}:void 0,[e]),bc=(e,t)=>je(e)?e(t):e,Gi=(e,t,n,r)=>{const o=e.map(l=>l?bc(l,n):void 0),s=t.map(l=>l?bc(l,n):void 0),i=eg.apply(void 0,[r].concat(sn(o))),a=ng.apply(void 0,sn(s));return u.useMemo(()=>r?[Us(i,r),Us(a,r)]:[i,a],[i,a,r])},Xs=e=>_t(e)&&e===e.window,rg=e=>e instanceof Document||e.constructor.name==="HTMLDocument"||e.nodeType===window.Node.DOCUMENT_NODE,og=e=>{var n;if(typeof window>"u")return 0;let t=0;return Xs(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Xs(e)&&!gr(t)&&(t=(n=(e.ownerDocument??e).documentElement)==null?void 0:n.scrollTop),t};function sg(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Pv(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,s=n(),i=og(s),a=Date.now();let l;const c=()=>{const d=Date.now()-a,m=sg(d>o?o:d,i,e,o);Xs(s)?s.scrollTo(window.pageXOffset,m):rg(s)?s.documentElement.scrollTop=m:s.scrollTop=m,d<o?l=vt(c):je(r)&&r()};return l=vt(c),()=>{vt.cancel(l)}}const Rv=e=>`${e}-css-var`,ig=u.createContext(void 0),ag={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"},cg={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},lg={...cg,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",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"},_u={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vc={lang:{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"],...lg},timePickerLocale:{..._u}},He="${label} is not a valid ${type}",cn={locale:"en",Pagination:ag,DatePicker:vc,TimePicker:_u,Calendar:vc,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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:He,method:He,array:He,object:He,number:He,date:He,boolean:He,integer:He,float:He,regexp:He,email:He,url:He,hex:He},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Xr={...cn.Modal},Kr=[];const Sc=()=>Kr.reduce((e,t)=>({...e,...t}),cn.Modal);function ug(e){if(e){const t={...e};return Kr.push(t),Xr=Sc(),()=>{Kr=Kr.filter(n=>n!==t),Xr=Sc()}}Xr={...cn.Modal}}function Mv(){return Xr}const Yi=u.createContext(void 0),go=(e,t)=>{const n=u.useContext(Yi),r=u.useMemo(()=>{const s=t||cn[e],i=(n==null?void 0:n[e])??{};return{...je(s)?s():s,...i||{}}},[e,t,n]),o=u.useMemo(()=>{const s=n==null?void 0:n.locale;return n!=null&&n.exist&&!s?cn.locale:s},[n]);return[r,o]},fg="internalMark",dg=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>ug(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>({...t,exist:!0}),[t]);return u.createElement(Yi.Provider,{value:o},n)},mg=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function On(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const $c=On()?u.useLayoutEffect:u.useEffect,Ks=(e,t)=>{const n=u.useRef(!0);$c(()=>e(n.current),t),$c(()=>(n.current=!1,()=>{n.current=!0}),[])};function hg(){return{...vi}.useId}let xc=0;const Ec=hg(),pg=Ec?(function(t){const n=Ec();return t||n}):(function(t){const[n,r]=u.useState("ssr-id");return u.useEffect(()=>{const o=xc;xc+=1,r(`rc_unique_${o}`)},[]),t||n});function gg(e,t,n){const r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const yg=Symbol.for("react.element"),bg=Symbol.for("react.transitional.element"),vg=Symbol.for("react.fragment");function Sg(e){return e&&typeof e=="object"&&(e.$$typeof===yg||e.$$typeof===bg)&&e.type===vg}const $g=Number(u.version.split(".")[0]),xg=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Eg=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{xg(r,n)})}},Cg=(...e)=>gg(()=>Eg(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),wg=e=>{var n,r;if(!e)return!1;if(ku(e)&&$g>=19)return!0;const t=Mn.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Mn.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Mn.ForwardRef)};function ku(e){return u.isValidElement(e)&&!Sg(e)}const Pg=e=>{if(e&&ku(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Rg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const Cc="data-rc-order",wc="data-rc-priority",Mg="rc-util-key",Gs=new Map;function Hu({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Mg}function yo(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Tg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Qi(e){return Array.from((Gs.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Bu(e,t={}){if(!On())return null;const{csp:n,prepend:r,priority:o=0}=t,s=Tg(r),i=s==="prependQueue",a=document.createElement("style");a.setAttribute(Cc,s),i&&o&&a.setAttribute(wc,`${o}`),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const l=yo(t),{firstChild:c}=l;if(r){if(i){const f=(t.styles||Qi(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(Cc)))return!1;const m=Number(d.getAttribute(wc)||0);return o>=m});if(f.length)return l.insertBefore(a,f[f.length-1].nextSibling),a}l.insertBefore(a,c)}else l.appendChild(a);return a}function zu(e,t={}){let{styles:n}=t;return n||(n=Qi(yo(t))),n.find(r=>r.getAttribute(Hu(t))===e)}function Ys(e,t={}){const n=zu(e,t);n&&yo(t).removeChild(n)}function Ag(e,t){const n=Gs.get(e);if(!n||!Rg(document,n)){const r=Bu("",t),{parentNode:o}=r;Gs.set(e,o),e.removeChild(r)}}function Vu(e,t,n={}){var l,c,f;const r=yo(n),o=Qi(r),s={...n,styles:o};Ag(r,s);const i=zu(t,s);if(i)return(l=s.csp)!=null&&l.nonce&&i.nonce!==((c=s.csp)==null?void 0:c.nonce)&&(i.nonce=(f=s.csp)==null?void 0:f.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const a=Bu(e,s);return a.setAttribute(Hu(s),t),a}function Fg(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,s;if(e){const l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;const c=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(c.width,10),d=parseInt(c.height,10);try{const m=f?`width: ${c.width};`:"",h=d?`height: ${c.height};`:"";Vu(`
#${t}::-webkit-scrollbar {
${m}
${h}
}`,t)}catch(m){console.error(m),o=f,s=d}}document.body.appendChild(n);const i=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,a=e&&s&&!Number.isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ys(t),{width:i,height:a}}function Ig(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Fg(e)}const Du=u.createContext(null);let Og=!1;function Lg(e){return Og}const Pc=[];function Ng(e,t){const[n]=u.useState(()=>On()?document.createElement("div"):null),r=u.useRef(!1),o=u.useContext(Du),[s,i]=u.useState(Pc),a=o||(r.current?void 0:f=>{i(d=>[f,...d])});function l(){n.parentElement||document.body.appendChild(n),r.current=!0}function c(){var f;(f=n.parentElement)==null||f.removeChild(n),r.current=!1}return Ks(()=>(e?o?o(l):l():c(),c),[e]),Ks(()=>{s.length&&(s.forEach(f=>f()),i(Pc))},[s]),[n,a]}function _g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const kg=`rc-util-locker-${Date.now()}`;let Rc=0;function Hg(e){const t=!!e,[n]=u.useState(()=>(Rc+=1,`${kg}_${Rc}`));Ks(()=>{if(t){const r=Ig(document.body).width,o=_g();Vu(`
html body {
overflow-y: hidden;
${o?`width: calc(100% - ${r}px);`:""}
}`,n)}else Ys(n);return()=>{Ys(n)}},[t,n])}let en=[];const Bg=200;let ju=0;const Wu=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-ju<Bg)return;const n=en.length;for(let r=n-1;r>=0;r-=1)en[r].onEsc({top:r===n-1,event:e})}},qu=()=>{ju=Date.now()};function zg(){window.addEventListener("keydown",Wu),window.addEventListener("compositionend",qu)}function Vg(){en.length===0&&(window.removeEventListener("keydown",Wu),window.removeEventListener("compositionend",qu))}function Dg(e,t){const n=pg(),r=mg(t),o=()=>{en.find(i=>i.id===n)||en.push({id:n,onEsc:r})},s=()=>{en=en.filter(i=>i.id!==n)};u.useMemo(()=>{e?o():e||s()},[e]),u.useEffect(()=>{if(e)return o(),zg(),()=>{s(),Vg()}},[e])}const Mc=e=>e===!1?!1:!On()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,jg=u.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:i=!0,children:a,onEsc:l}=e,[c,f]=u.useState(n),d=c||n;u.useEffect(()=>{(i||n)&&f(n)},[n,i]);const[m,h]=u.useState(()=>Mc(o));u.useEffect(()=>{const $=Mc(o);h(()=>$??null)});const[b,g]=Ng(d&&!m),p=m??b;Hg(r&&n&&On()&&(p===b||p===document.body)),Dg(n,l);let v=null;a&&wg(a)&&t&&(v=Pg(a));const S=Cg(v,t);if(!d||!On()||m===void 0)return null;const y=p===!1||Lg();let x=a;return t&&(x=u.cloneElement(a,{ref:S})),u.createElement(Du.Provider,{value:g},y?x:_f.createPortal(x,p))}),Lt=e=>{const t=u.useRef(e);return t.current=e,u.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function Wg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Tc=Wg()?u.useLayoutEffect:u.useEffect,Qs=(e,t)=>{const n=u.useRef(!0);Tc(()=>e(n.current),t),Tc(()=>(n.current=!1,()=>{n.current=!0}),[])};Number(u.version.split(".")[0]);const qg=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Ug=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{qg(r,n)})}};function Uu(e){return e instanceof HTMLElement||e instanceof SVGElement}const Xg=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function Kg(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:s,content:i,style:a}=r||{},{x:l=0,y:c=0}=o,f=u.useRef(null);if(!n||!n.points)return null;const d={position:"absolute"};if(n.autoArrow!==!1){const m=n.points[0],h=n.points[1],b=m[0],g=m[1],p=h[0],v=h[1];b===p||!["t","b"].includes(b)?d.top=c:b==="t"?d.top=0:d.bottom=0,g===v||!["l","r"].includes(g)?d.left=l:g==="l"?d.left=0:d.right=0}return u.createElement("div",{ref:f,className:B(`${t}-arrow`,s),style:{...d,...a}},i)}function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zs.apply(this,arguments)}function Gg(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:s,mobile:i}=e;return o?u.createElement(ln,Zs({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:a})=>u.createElement("div",{style:{zIndex:r},className:B(`${t}-mask`,i&&`${t}-mobile-mask`,a)})):null}const Yg=u.memo(({children:e})=>e,(e,t)=>t.cache);function Xu(e,t,n,r,o,s,i,a){var f;const l="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:l,bottom:l};if(!e&&(t||!n)){const{points:d}=r,m=r.dynamicInset||((f=r._experimental)==null?void 0:f.dynamicInset),h=m&&d[0][1]==="r",b=m&&d[0][0]==="b";h?(c.right=o,c.left=l):(c.left=i,c.right=l),b?(c.bottom=s,c.top=l):(c.top=a,c.bottom=l)}return c}function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(this,arguments)}const Qg=u.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:s,style:i,target:a,onVisibleChanged:l,open:c,keepDom:f,fresh:d,onClick:m,mask:h,arrow:b,arrowPos:g,align:p,motion:v,maskMotion:S,mobile:y,forceRender:x,getPopupContainer:$,autoDestroy:C,portal:E,children:R,zIndex:M,onMouseEnter:T,onMouseLeave:P,onPointerEnter:F,onPointerDownCapture:O,ready:_,offsetX:j,offsetY:L,offsetR:N,offsetB:D,onAlign:X,onPrepare:se,onResize:xe,stretch:K,targetWidth:de,targetHeight:q}=e,ne=typeof r=="function"?r():r,te=c||f,me=!!y,[I,H,Z]=u.useMemo(()=>y?[y.mask,y.maskMotion,y.motion]:[h,S,v],[y,h,S,v]),fe=($==null?void 0:$.length)>0,[k,at]=u.useState(!$||!fe);Qs(()=>{!k&&fe&&a&&at(!0)},[k,fe,a]);const Qe=Lt((G,Ee)=>{xe==null||xe(G,Ee),X()}),Ze=Xu(me,_,c,p,N,D,j,L);if(!k)return null;const ve={};return K&&(K.includes("height")&&q?ve.height=q:K.includes("minHeight")&&q&&(ve.minHeight=q),K.includes("width")&&de?ve.width=de:K.includes("minWidth")&&de&&(ve.minWidth=de)),c||(ve.pointerEvents="none"),u.createElement(E,{open:x||te,getContainer:$&&(()=>$(a)),autoDestroy:C,onEsc:n},u.createElement(Gg,{prefixCls:s,open:c,zIndex:M,mask:I,motion:H,mobile:me}),u.createElement(zl,{onResize:Qe,disabled:!c},G=>u.createElement(ln,Js({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:`${s}-hidden`},Z,{onAppearPrepare:se,onEnterPrepare:se,visible:c,onVisibleChanged:Ee=>{var pe;(pe=v==null?void 0:v.onVisibleChanged)==null||pe.call(v,Ee),l(Ee)}}),({className:Ee,style:pe},ht)=>{const Ae=B(s,Ee,o,{[`${s}-mobile`]:me});return u.createElement("div",{ref:Ug(G,t,ht),className:Ae,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...Ze,...ve,...pe,boxSizing:"border-box",zIndex:M,...i},onMouseEnter:T,onMouseLeave:P,onPointerEnter:F,onClick:m,onPointerDownCapture:O},b&&u.createElement(Kg,{prefixCls:s,arrow:b,arrowPos:g,align:p}),u.createElement(Yg,{cache:!c&&!d},ne))})),R)}),Ac=u.createContext(null),Zg=u.createContext(null);function Jg(e=[],t=[],n){const r=(o,s)=>o[s]||"";return r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function e0(e,t,n,r){var i;const{points:o}=n,s=Object.keys(e);for(let a=0;a<s.length;a+=1){const l=s[a];if(Jg((i=e[l])==null?void 0:i.points,o))return`${t}-placement-${l}`}return""}function Zi(e){return e.ownerDocument.defaultView}function t0(e){const t=[];let n=e==null?void 0:e.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:s,overflow:i}=Zi(n).getComputedStyle(n);[o,s,i].some(a=>r.includes(a))&&t.push(n),n=n.parentElement}return t}function lr(e,t=1){return Number.isNaN(e)?t:e}function Xn(e){return lr(parseFloat(e),0)}function Fc(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:s,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:l,borderRightWidth:c}=Zi(r).getComputedStyle(r),f=r.getBoundingClientRect(),{offsetHeight:d,clientHeight:m,offsetWidth:h,clientWidth:b}=r,g=Xn(i),p=Xn(a),v=Xn(l),S=Xn(c),y=lr(Math.round(f.width/h*1e3)/1e3),x=lr(Math.round(f.height/d*1e3)/1e3),$=(h-b-v-S)*y,C=(d-m-g-p)*x,E=g*x,R=p*x,M=v*y,T=S*y;let P=0,F=0;if(o==="clip"){const N=Xn(s);P=N*y,F=N*x}const O=f.x+M-P,_=f.y+E-F,j=O+f.width+2*P-M-T-$,L=_+f.height+2*F-E-R-C;n.left=Math.max(n.left,O),n.top=Math.max(n.top,_),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,L)}),n}function Ic(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Oc(e,t){const[n,r]=t||[];return[Ic(e.width,n),Ic(e.height,r)]}function Lc(e=""){return[e[0],e[1]]}function xn(e,t){const n=t[0],r=t[1];let 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 Rt(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function Nc(e){return e.join("")}function n0(e,t,n,r,o,s,i,a){const[l,c]=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=u.useRef(0),d=u.useMemo(()=>!t||a?[]:t0(t),[t]),m=u.useRef({});e||(()=>{m.current={}})();const b=Lt(()=>{var v,S;if(t&&n&&e&&!a){let Me=function(z,ke,Ue=Ee){const ia=N.x+z,aa=N.y+ke,Rf=ia+me,Mf=aa+te,Tf=Math.max(ia,Ue.left),Af=Math.max(aa,Ue.top),Ff=Math.min(Rf,Ue.right),If=Math.min(Mf,Ue.bottom);return Math.max(0,(Ff-Tf)*(If-Af))},bn=function(){Dt=N.y+ie,gn=Dt+te,jt=N.x+ae,yn=jt+me};const y=t,x=y.ownerDocument,$=Zi(y),{position:C}=$.getComputedStyle(y),E=y.style.left,R=y.style.top,M=y.style.right,T=y.style.bottom,P=y.style.overflow,F=y.style.overflowX,O=y.style.overflowY,_={...o[r],...s},j=x.createElement("div");(v=y.parentElement)==null||v.appendChild(j),j.style.left=`${y.offsetLeft}px`,j.style.top=`${y.offsetTop}px`,j.style.position=C,j.style.height=`${y.offsetHeight}px`,j.style.width=`${y.offsetWidth}px`,y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";let L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{const z=n.getBoundingClientRect();z.x=z.x??z.left,z.y=z.y??z.top,L={x:z.x,y:z.y,width:z.width,height:z.height}}const N=y.getBoundingClientRect(),{height:D,width:X}=$.getComputedStyle(y);N.x=N.x??N.left,N.y=N.y??N.top;const{clientWidth:se,clientHeight:xe,scrollWidth:K,scrollHeight:de,scrollTop:q,scrollLeft:ne}=x.documentElement,te=N.height,me=N.width,I=L.height,H=L.width,Z={left:0,top:0,right:se,bottom:xe},fe={left:-ne,top:-q,right:K-ne,bottom:de-q};let{htmlRegion:k}=_;const at="visible",Qe="visibleFirst";k!=="scroll"&&k!==Qe&&(k=at);const Ze=k===Qe,ve=Fc(fe,d),G=Fc(Z,d),Ee=k===at?G:ve,pe=Ze?G:Ee;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";const ht=y.getBoundingClientRect();y.style.left=E,y.style.top=R,y.style.right=M,y.style.bottom=T,y.style.overflow=P,y.style.overflowX=F,y.style.overflowY=O,(S=y.parentElement)==null||S.removeChild(j);const Ae=lr(Math.round(me/parseFloat(X)*1e3)/1e3),Je=lr(Math.round(te/parseFloat(D)*1e3)/1e3);if(Ae===0||Je===0||Uu(n)&&!Xg(n))return;const{offset:Et,targetOffset:un}=_;let[Fe,Re]=Oc(N,Et);const[fn,Hn]=Oc(L,un);L.x-=fn,L.y-=Hn;const[dn,Bt]=_.points||[],Ct=Lc(Bt),Le=Lc(dn),wt=xn(L,Ct),mn=xn(N,Le),hn={..._};let Ce=[Le,Ct],ae=wt.x-mn.x+Fe,ie=wt.y-mn.y+Re;const Ne=Me(ae,ie),pt=Me(ae,ie,G),pn=xn(L,["t","l"]),zt=xn(N,["t","l"]),ct=xn(L,["b","r"]),Vt=xn(N,["b","r"]),lt=_.overflow||{},{adjustX:le,adjustY:Pt,shiftX:br,shiftY:vr}=lt,Sr=z=>typeof z=="boolean"?z:z>=0;let Dt,gn,jt,yn;bn();const Bn=Sr(Pt),Wt=Le[0]===Ct[0];if(Bn&&Le[0]==="t"&&(gn>pe.bottom||m.current.bt)){let z=ie;Wt?z-=te-I:z=pn.y-Vt.y-Re;const ke=Me(ae,z),Ue=Me(ae,z,G);ke>Ne||ke===Ne&&(!Ze||Ue>=pt)?(m.current.bt=!0,ie=z,Re=-Re,Ce=[Rt(Ce[0],0),Rt(Ce[1],0)]):m.current.bt=!1}if(Bn&&Le[0]==="b"&&(Dt<pe.top||m.current.tb)){let z=ie;Wt?z+=te-I:z=ct.y-zt.y-Re;const ke=Me(ae,z),Ue=Me(ae,z,G);ke>Ne||ke===Ne&&(!Ze||Ue>=pt)?(m.current.tb=!0,ie=z,Re=-Re,Ce=[Rt(Ce[0],0),Rt(Ce[1],0)]):m.current.tb=!1}const qt=Sr(le),We=Le[1]===Ct[1];if(qt&&Le[1]==="l"&&(yn>pe.right||m.current.rl)){let z=ae;We?z-=me-H:z=pn.x-Vt.x-Fe;const ke=Me(z,ie),Ue=Me(z,ie,G);ke>Ne||ke===Ne&&(!Ze||Ue>=pt)?(m.current.rl=!0,ae=z,Fe=-Fe,Ce=[Rt(Ce[0],1),Rt(Ce[1],1)]):m.current.rl=!1}if(qt&&Le[1]==="r"&&(jt<pe.left||m.current.lr)){let z=ae;We?z+=me-H:z=ct.x-zt.x-Fe;const ke=Me(z,ie),Ue=Me(z,ie,G);ke>Ne||ke===Ne&&(!Ze||Ue>=pt)?(m.current.lr=!0,ae=z,Fe=-Fe,Ce=[Rt(Ce[0],1),Rt(Ce[1],1)]):m.current.lr=!1}hn.points=[Nc(Ce[0]),Nc(Ce[1])],bn();const gt=br===!0?0:br;typeof gt=="number"&&(jt<G.left&&(ae-=jt-G.left-Fe,L.x+H<G.left+gt&&(ae+=L.x-G.left+H-gt)),yn>G.right&&(ae-=yn-G.right-Fe,L.x>G.right-gt&&(ae+=L.x-G.right+gt)));const qe=vr===!0?0:vr;typeof qe=="number"&&(Dt<G.top&&(ie-=Dt-G.top-Re,L.y+I<G.top+qe&&(ie+=L.y-G.top+I-qe)),gn>G.bottom&&(ie-=gn-G.bottom-Re,L.y>G.bottom-qe&&(ie+=L.y-G.bottom+qe)));const ut=N.x+ae,zn=ut+me,Vn=N.y+ie,ge=Vn+te,Dn=L.x,So=Dn+H,ce=L.y,Te=ce+I,et=Math.max(ut,Dn),tt=Math.min(zn,So),$r=(et+tt)/2-ut,Wn=Math.max(Vn,ce),xr=Math.min(ge,Te),$o=(Wn+xr)/2-Vn;let _e=ht.right-N.x-(ae+N.width),xo=ht.bottom-N.y-(ie+N.height);Ae===1&&(ae=Math.floor(ae),_e=Math.floor(_e)),Je===1&&(ie=Math.floor(ie),xo=Math.floor(xo));const Pf={ready:!0,offsetX:ae/Ae,offsetY:ie/Je,offsetR:_e/Ae,offsetB:xo/Je,arrowX:$r/Ae,arrowY:$o/Je,scaleX:Ae,scaleY:Je,align:hn};c(Pf)}}),g=()=>{f.current+=1;const v=f.current;Promise.resolve().then(()=>{f.current===v&&b()})},p=()=>{c(v=>({...v,ready:!1}))};return Qs(p,[r]),Qs(()=>{e||p()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,g]}function r0(){const e=u.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,o)=>{t(),o===0?r():e.current=setTimeout(()=>{r()},o*1e3)};return u.useEffect(()=>()=>{t()},[]),n}function o0(){const[e,t]=A.useState(null),[n,r]=A.useState(!1),[o,s]=A.useState(!1),i=A.useRef(null),a=Lt(c=>{c===!1?(i.current=null,r(!1)):o&&n?i.current=c:(r(!0),t(c),i.current=null,n||s(!0))}),l=Lt(c=>{c?(s(!1),i.current&&(t(i.current),i.current=null)):(s(!1),i.current=null)});return[a,n,e,l]}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ei.apply(this,arguments)}const s0=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:s,offsetR:i,offsetB:a,offsetX:l,offsetY:c,arrowPos:f,popupSize:d,motion:m,uniqueContainerClassName:h,uniqueContainerStyle:b}=e,g=`${t}-unique-container`,[p,v]=A.useState(!1),S=Xu(n,r,o,s,i,a,l,c),y=A.useRef(S);r&&(y.current=S);const x={};return d&&(x.width=d.width,x.height=d.height),A.createElement(ln,ei({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},m,{visible:o,onVisibleChanged:$=>{v($)}}),({className:$,style:C})=>{const E=B(g,$,h,{[`${g}-visible`]:p});return A.createElement("div",{className:E,style:{"--arrow-x":`${(f==null?void 0:f.x)||0}px`,"--arrow-y":`${(f==null?void 0:f.y)||0}px`,...y.current,...x,...C,...b}})})},i0=({children:e,postTriggerProps:t})=>{const[n,r,o,s]=o0(),i=u.useMemo(()=>!o||!t?o:t(o),[o,t]),[a,l]=u.useState(null),[c,f]=u.useState(null),d=u.useRef(null),m=Lt(D=>{d.current=D,Uu(D)&&a!==D&&l(D)}),h=u.useRef(null),b=r0(),g=Lt((D,X)=>{h.current=X,b(()=>{n(D)},D.delay)}),p=D=>{b(()=>{var X;(X=h.current)!=null&&X.call(h)||n(!1)},D)},v=Lt(D=>{s(D)}),[S,y,x,$,C,E,R,,,M,T]=n0(r,a,i==null?void 0:i.target,i==null?void 0:i.popupPlacement,(i==null?void 0:i.builtinPlacements)||{},i==null?void 0:i.popupAlign,void 0,!1),P=u.useMemo(()=>{var X;if(!i)return"";const D=e0(i.builtinPlacements||{},i.prefixCls||"",M);return B(D,(X=i.getPopupClassNameFromAlign)==null?void 0:X.call(i,M))},[M,i==null?void 0:i.getPopupClassNameFromAlign,i==null?void 0:i.builtinPlacements,i==null?void 0:i.prefixCls]),F=u.useMemo(()=>({show:g,hide:p}),[]);u.useEffect(()=>{T()},[i==null?void 0:i.target]);const O=Lt(()=>(T(),Promise.resolve())),_=u.useRef({}),j=u.useContext(Ac),L=u.useMemo(()=>({registerSubPopup:(D,X)=>{_.current[D]=X,j==null||j.registerSubPopup(D,X)}}),[j]),N=i==null?void 0:i.prefixCls;return u.createElement(Zg.Provider,{value:F},e,i&&u.createElement(Ac.Provider,{value:L},u.createElement(Qg,{ref:m,portal:jg,onEsc:i.onEsc,prefixCls:N,popup:i.popup,className:B(i.popupClassName,P,`${N}-unique-controlled`),style:i.popupStyle,target:i.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:v,ready:S,offsetX:y,offsetY:x,offsetR:$,offsetB:C,onAlign:T,onPrepare:O,onResize:D=>f({width:D.offsetWidth,height:D.offsetHeight}),arrowPos:{x:E,y:R},align:M,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},u.createElement(s0,{prefixCls:N,isMobile:!1,ready:S,open:r,align:M,offsetR:$,offsetB:C,offsetX:y,offsetY:x,arrowPos:{x:E,y:R},popupSize:c,motion:i.popupMotion,uniqueContainerClassName:B(i.uniqueContainerClassName,P),uniqueContainerStyle:i.uniqueContainerStyle}))))};function a0(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const c0=(e,t,n)=>A.isValidElement(e)?A.cloneElement(e,je(n)?n(e.props||{}):n):t;function ur(e,t){return c0(e,e,t)}const l0=({children:e})=>{const{getPrefixCls:t}=A.useContext(Pe),n=t();return A.isValidElement(e)?A.createElement(ln,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:o})=>ur(e,s=>({className:B(s.className,o),style:{...s.style,...r}}))):e},Fr=[null,null];function u0(e){if(Fr[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Fr[0]=e,Fr[1]=t}return Fr[1]}const f0=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:s}=n,i=je(s)?s():s,a=u0(o);return{...n,getPopupContainer:null,arrow:!1,popup:A.createElement(l0,{key:r},i),builtinPlacements:a}};return A.createElement(i0,{postTriggerProps:t},e)},Jr=u.createContext(!1),d0=({children:e,disabled:t})=>{const n=u.useContext(Jr);return u.createElement(Jr.Provider,{value:t??n},e)},Ln=u.createContext(void 0),m0=({children:e,size:t})=>{const n=u.useContext(Ln);return u.createElement(Ln.Provider,{value:t||n},e)};function h0(){const e=u.useContext(Jr),t=u.useContext(Ln);return{componentDisabled:e,componentSize:t}}function p0(e,t,n){xd();const r=e||{},o=r.inherit===!1||!t?{...Zr,hashed:(t==null?void 0:t.hashed)??Zr.hashed,cssVar:t==null?void 0:t.cssVar}:t,s=u.useId();return xi(()=>{var c;if(!e)return t;const i={...o.components};Object.keys(e.components||{}).forEach(f=>{i[f]={...i[f],...e.components[f]}});const a=`css-var-${s.replace(/:/g,"")}`,l={prefix:n==null?void 0:n.prefixCls,...o.cssVar,...r.cssVar,key:((c=r.cssVar)==null?void 0:c.key)||a};return{...o,...r,token:{...o.token,...r.token},components:i,cssVar:l}},[r,o,n==null?void 0:n.prefixCls,s],(i,a)=>i.some((l,c)=>{const f=a[c];return!rd(l,f,!0)}))}const _c=u.createContext(!0);function g0(e){const t=u.useContext(_c),{children:n}=e,[,r]=xt(),{motion:o}=r,s=u.useRef(!1);return s.current||(s.current=t!==o),s.current?u.createElement(_c.Provider,{value:o},u.createElement(Hp,{motion:o},n)):n}const y0=()=>null,b0=({iconPrefixCls:e,csp:t})=>(ep(e,t),null),v0=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let eo,Ku,Gu,Yu;function Wo(){return eo||or}function S0(){return Ku||so}const $0=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(eo=t),n!==void 0&&(Ku=n),"holderRender"in e&&(Yu=o),r&&(Gu=r)},Tv=()=>({getPrefixCls:(e,t)=>t||(e?`${Wo()}-${e}`:Wo()),getIconPrefixCls:S0,getRootPrefixCls:()=>eo||Wo(),getTheme:()=>Gu,holderRender:Yu}),x0=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:a,form:l,locale:c,componentSize:f,direction:d,space:m,splitter:h,virtual:b,dropdownMatchSelectWidth:g,popupMatchSelectWidth:p,popupOverflow:v,legacyLocale:S,parentContext:y,iconPrefixCls:x,theme:$,componentDisabled:C,segmented:E,statistic:R,spin:M,calendar:T,carousel:P,cascader:F,collapse:O,typography:_,checkbox:j,descriptions:L,divider:N,drawer:D,skeleton:X,steps:se,image:xe,layout:K,list:de,mentions:q,modal:ne,progress:te,result:me,slider:I,breadcrumb:H,masonry:Z,menu:fe,pagination:k,input:at,inputPassword:Qe,inputSearch:Ze,textArea:ve,otp:G,empty:Ee,badge:pe,borderBeam:ht,radio:Ae,rate:Je,ribbon:Et,switch:un,transfer:Fe,avatar:Re,message:fn,tag:Hn,table:dn,card:Bt,cardMeta:Ct,tabs:Le,timeline:wt,timePicker:mn,upload:hn,notification:Ce,tree:ae,colorPicker:ie,datePicker:Me,rangePicker:Ne,flex:pt,wave:pn,dropdown:zt,warning:ct,tour:Vt,tooltip:lt,popover:le,popconfirm:Pt,qrcode:br,floatButton:vr,floatButtonGroup:Sr,variant:Dt,inputNumber:gn,treeSelect:jt,watermark:yn}=e,bn=u.useMemo(()=>{var ce;return ze(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&((ce=c.default)!=null&&ce.locale)?c.default:c},[c]),Bn=u.useCallback((ce,Te)=>{const{prefixCls:et}=e;if(Te)return Te;const tt=et||y.getPrefixCls("");return ce?`${tt}-${ce}`:tt},[y.getPrefixCls,e.prefixCls]),Wt=x||y.iconPrefixCls||so,qt=n||y.csp,We=p0($,y.theme,{prefixCls:Bn("")}),gt={csp:qt,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:a,locale:bn||S,direction:d,space:m,splitter:h,virtual:b,popupMatchSelectWidth:p??g,popupOverflow:v,getPrefixCls:Bn,iconPrefixCls:Wt,theme:We,segmented:E,statistic:R,spin:M,calendar:T,carousel:P,cascader:F,collapse:O,typography:_,checkbox:j,descriptions:L,divider:N,drawer:D,skeleton:X,steps:se,image:xe,input:at,inputPassword:Qe,inputSearch:Ze,textArea:ve,otp:G,layout:K,list:de,mentions:q,modal:ne,progress:te,result:me,slider:I,breadcrumb:H,masonry:Z,menu:fe,pagination:k,empty:Ee,badge:pe,borderBeam:ht,radio:Ae,rate:Je,ribbon:Et,switch:un,transfer:Fe,avatar:Re,message:fn,tag:Hn,table:dn,card:Bt,cardMeta:Ct,tabs:Le,timeline:wt,timePicker:mn,upload:hn,notification:Ce,tree:ae,colorPicker:ie,datePicker:Me,rangePicker:Ne,flex:pt,wave:pn,dropdown:zt,warning:ct,tour:Vt,tooltip:lt,popover:le,popconfirm:Pt,qrcode:br,floatButton:vr,floatButtonGroup:Sr,variant:Dt,inputNumber:gn,treeSelect:jt,watermark:yn},qe={...y};Object.keys(gt).forEach(ce=>{gt[ce]!==void 0&&(qe[ce]=gt[ce])}),v0.forEach(ce=>{const Te=e[ce];Te&&(qe[ce]=Te)}),typeof r<"u"&&(qe.button={autoInsertSpace:r,...qe.button});const ut=xi(()=>qe,qe,(ce,Te)=>{const et=Object.keys(ce),tt=Object.keys(Te);return et.length!==tt.length||et.some(jn=>ce[jn]!==Te[jn])}),{layer:zn}=u.useContext(mr),Vn=u.useMemo(()=>({prefixCls:Wt,csp:qt,layer:zn?"antd":void 0,zeroRuntime:!!zn||(We==null?void 0:We.zeroRuntime)}),[Wt,qt,zn,We==null?void 0:We.zeroRuntime]);let ge=u.createElement(u.Fragment,null,u.createElement(b0,{iconPrefixCls:Wt,csp:qt}),u.createElement(y0,{dropdownMatchSelectWidth:g}),t);const Dn=u.useMemo(()=>{var ce,Te,et,tt;return gd(((ce=cn.Form)==null?void 0:ce.defaultValidateMessages)||{},((et=(Te=ut.locale)==null?void 0:Te.Form)==null?void 0:et.defaultValidateMessages)||{},((tt=ut.form)==null?void 0:tt.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[ut,l==null?void 0:l.validateMessages]);Object.keys(Dn).length>0&&(ge=u.createElement(ig.Provider,{value:Dn},ge)),bn&&(ge=u.createElement(dg,{locale:bn,_ANT_MARK__:fg},ge)),ge=u.createElement(Di.Provider,{value:Vn},ge),f&&(ge=u.createElement(m0,{size:f},ge)),ge=u.createElement(g0,null,ge),lt!=null&<.unique&&(ge=u.createElement(f0,null,ge));const So=u.useMemo(()=>{const{algorithm:ce,token:Te,components:et,cssVar:tt,...jn}=We||{},$r=ce&&(!Array.isArray(ce)||ce.length>0)?ms(ce):fu,Wn={};Object.entries(et||{}).forEach(([sa,$o])=>{const _e={...$o};"algorithm"in _e&&(_e.algorithm===!0?_e.theme=$r:(Array.isArray(_e.algorithm)||je(_e.algorithm))&&(_e.theme=ms(_e.algorithm)),delete _e.algorithm),Wn[sa]=_e});const xr={...cr,...Te};return{...jn,theme:$r,token:xr,components:Wn,override:{override:xr,...Wn},cssVar:tt}},[We]);return $&&(ge=u.createElement(du.Provider,{value:So},ge)),ut.warning&&(ge=u.createElement(Sd.Provider,{value:ut.warning},ge)),C!==void 0&&(ge=u.createElement(d0,{disabled:C},ge)),u.createElement(Pe.Provider,{value:ut},ge)},kn=e=>{const t=u.useContext(Pe),n=u.useContext(Yi);return u.createElement(x0,{parentContext:t,legacyLocale:n,...e})};kn.ConfigContext=Pe;kn.SizeContext=Ln;kn.config=$0;kn.useConfig=h0;Object.defineProperty(kn,"SizeContext",{get:()=>Ln});const E0=u.createContext({}),dt="none",Ir="appear",Or="enter",Lr="leave",kc="none",ot="prepare",Qt="start",Zt="active",Ji="end",Qu="prepared";function Hc(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function C0(e,t){const n={animationend:Hc("Animation","AnimationEnd"),transitionend:Hc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const w0=C0(kt(),typeof window<"u"?window:{});let Zu={};kt()&&({style:Zu}=document.createElement("div"));const Nr={};function Ju(e){if(Nr[e])return Nr[e];const t=w0[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in Zu)return Nr[e]=t[s],Nr[e]}}return""}const ef=Ju("animationend"),tf=Ju("transitionend"),P0=!!(ef&&tf),Bc=ef||"animationend",zc=tf||"transitionend";function Vc(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const R0=(e=>{const t=u.useRef();function n(o){o&&(o.removeEventListener(zc,e),o.removeEventListener(Bc,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(zc,e),o.addEventListener(Bc,e),t.current=o)}return u.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),nf=kt()?u.useLayoutEffect:u.useEffect,M0=(()=>{const e=u.useRef(null);function t(){Yr.cancel(e.current)}function n(r,o=2){t();const s=Yr(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return u.useEffect(()=>()=>{t()},[]),[n,t]}),T0=[ot,Qt,Zt,Ji],A0=[ot,Qu],rf=!1,F0=!0;function of(e){return e===Zt||e===Ji}const I0=((e,t,n)=>{const[r,o]=Dd(kc),[s,i]=M0();function a(){o(ot,!0)}const l=t?A0:T0;return nf(()=>{if(r!==kc&&r!==Ji){const c=l.indexOf(r),f=l[c+1],d=n(r);d===rf?o(f,!0):f&&s(m=>{function h(){m.isCanceled()||o(f,!0)}d===!0?h():Promise.resolve(d).then(h)})}},[e,r]),u.useEffect(()=>()=>{i()},[]),[a,r]});function O0(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:a,onAppearPrepare:l,onEnterPrepare:c,onLeavePrepare:f,onAppearStart:d,onEnterStart:m,onLeaveStart:h,onAppearActive:b,onEnterActive:g,onLeaveActive:p,onAppearEnd:v,onEnterEnd:S,onLeaveEnd:y,onVisibleChanged:x}){const[$,C]=u.useState(),[E,R]=Ud(dt),[M,T]=u.useState([null,null]),P=E(),F=u.useRef(!1),O=u.useRef(null);function _(){return n()}const j=u.useRef(!1);function L(){R(dt),T([null,null])}const N=An(I=>{const H=E();if(H===dt)return;const Z=_();if(I&&!I.deadline&&I.target!==Z)return;const fe=j.current;let k;H===Ir&&fe?k=v==null?void 0:v(Z,I):H===Or&&fe?k=S==null?void 0:S(Z,I):H===Lr&&fe&&(k=y==null?void 0:y(Z,I)),fe&&k!==!1&&L()}),[D]=R0(N),X=I=>{switch(I){case Ir:return{[ot]:l,[Qt]:d,[Zt]:b};case Or:return{[ot]:c,[Qt]:m,[Zt]:g};case Lr:return{[ot]:f,[Qt]:h,[Zt]:p};default:return{}}},se=u.useMemo(()=>X(P),[P]),[xe,K]=I0(P,!e,I=>{var H;if(I===ot){const Z=se[ot];return Z?Z(_()):rf}return I in se&&T([((H=se[I])==null?void 0:H.call(se,_(),null))||null,I]),I===Zt&&P!==dt&&(D(_()),i>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{N({deadline:!0})},i))),I===Qu&&L(),F0}),de=of(K);j.current=de;const q=u.useRef(null);nf(()=>{if(F.current&&q.current===t)return;C(t);const I=F.current;F.current=!0;let H;!I&&t&&o&&(H=Ir),I&&t&&r&&(H=Or),(I&&!t&&s||!I&&a&&!t&&s)&&(H=Lr);const Z=X(H);H&&(e||Z[ot])?(R(H),xe()):R(dt),q.current=t},[t]),u.useEffect(()=>{(P===Ir&&!o||P===Or&&!r||P===Lr&&!s)&&R(dt)},[o,r,s]),u.useEffect(()=>()=>{F.current=!1,clearTimeout(O.current)},[]);const ne=u.useRef(!1);u.useEffect(()=>{$&&(ne.current=!0),$!==void 0&&P===dt&&((ne.current||$)&&(x==null||x($)),ne.current=!0)},[$,P]);let te=M[0];se[ot]&&K===Qt&&(te={transition:"none",...te});const me=M[1];return[E,K,te,$??t,!F.current&&P===dt&&e&&o?"NONE":K===Qt||K===Zt?me===K:!0]}function sf(e){return(e==null?void 0:e.length)<2}function L0(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=u.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:a=!0,forceRender:l,children:c,motionName:f,leavedClassName:d,eventProps:m}=o,{motion:h}=u.useContext(E0),b=n(o,h),g=u.useRef();function p(){return Cl(g.current)}const[v,S,y,x,$]=O0(b,i,p,o),C=v(),E=u.useRef(x);x&&(E.current=!0);const R=u.useMemo(()=>{const P={};return Object.defineProperties(P,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>v()!==dt},enableMotion:{enumerable:!0,get:()=>()=>b}}),P},[]);u.useImperativeHandle(s,()=>R,[]);const M=u.useRef(0);$&&(M.current+=1);const T=u.useMemo(()=>{if($==="NONE")return null;let P;const F={...m,visible:i};if(!c)P=null;else if(C===dt)x?P=c({...F},g):!a&&E.current&&d?P=c({...F,className:d},g):l||!a&&!d?P=c({...F,style:{display:"none"}},g):P=null;else{let O;S===ot?O="prepare":of(S)?O="active":S===Qt&&(O="start");const _=Vc(f,`${C}-${O}`);P=c({...F,className:B(Vc(f,C),{[_]:_&&O,[f]:typeof f=="string"}),style:y},g)}return P},[M.current]);if(sf(c)&&kd(T)){const P=Rl(T);if(P!==g)return u.cloneElement(T,{ref:wl(P,g)})}return T});return r.displayName="CSSMotion",r}const af=L0(P0),ti="add",ni="keep",ri="remove",qo="removed";function N0(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function oi(e=[]){return e.map(N0)}function _0(e=[],t=[]){let n=[],r=0;const o=t.length,s=oi(e),i=oi(t);s.forEach(c=>{let f=!1;for(let d=r;d<o;d+=1){const m=i[d];if(m.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(h=>({...h,status:ti}))),r=d),n.push({...m,status:ni}),r+=1,f=!0;break}}f||n.push({...c,status:ri})}),r<o&&(n=n.concat(i.slice(r).map(c=>({...c,status:ti}))));const a={};return n.forEach(({key:c})=>{a[c]=(a[c]||0)+1}),Object.keys(a).filter(c=>a[c]>1).forEach(c=>{n=n.filter(({key:f,status:d})=>f!==c||d!==ri),n.forEach(f=>{f.key===c&&(f.status=ni)})}),n}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}const k0=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function H0(e,t=af){class n extends u.Component{constructor(){super(...arguments);w(this,"state",{keyEntities:[]});w(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==s?l:{...l,status:qo})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==qo).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const a=oi(s);return{keyEntities:_0(i,a).filter(c=>{const f=i.find(({key:d})=>c.key===d);return!(f&&f.status===qo&&c.status===ri)})}}render(){const{keyEntities:s}=this.state,{component:i,children:a,onVisibleChanged:l,onAllRemoved:c,...f}=this.props,d=i||u.Fragment,m={};return k0.forEach(h=>{m[h]=f[h],delete f[h]}),delete f.keys,u.createElement(d,f,s.map(({status:h,...b},g)=>{const p=h===ti||h===ni;return u.createElement(t,si({},m,{key:b.key,visible:p,eventProps:b,onVisibleChanged:v=>{l==null||l(v,{key:b.key}),v||this.removeKey(b.key)}}),sf(a)?v=>a({...v,index:g}):(v,S)=>a({...v,index:g},S))}))}}return w(n,"defaultProps",{component:"div"}),n}const Av=H0();var _r={},Dc;function B0(){if(Dc)return _r;Dc=1,Object.defineProperty(_r,"__esModule",{value:!0});var e={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"};return _r.default=e,_r}var z0=B0();const V0=dr(z0);function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(this,arguments)}const D0=(e,t)=>u.createElement(po,ii({},e,{ref:t,icon:V0})),j0=u.forwardRef(D0);function W0(...e){return e.find(t=>t!==void 0)}const Fv=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:o,defaultAllowClear:s,componentName:i}=e;return u.useMemo(()=>t??r??s?{clearIcon:W0(ze(t)?t==null?void 0:t.clearIcon:n,ze(r)?r==null?void 0:r.clearIcon:o,A.createElement(bp,null)),disabled:(ze(t)?t==null?void 0:t.disabled:void 0)??(ze(r)?r==null?void 0:r.disabled:void 0)}:!1,[t,n,r,o,s])},Iv=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},cf={},jc=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!_t(e)&&!_t(t))return null;let n={closeIcon:typeof t!="boolean"&&_t(t)?t:void 0};return ze(e)&&(n={...n,...e}),n},q0=(e,t,n)=>e===!1?!1:e?ya(n,t,e):t===!1?!1:t?ya(n,t):n.closable?n:!1,U0=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...s}=e;let i=o;const a=dd(s,!0);return _t(i)&&(r&&(i=r(i)),i=A.isValidElement(i)?A.cloneElement(i,{"aria-label":n,...i.props,...a}):A.createElement("span",{"aria-label":n,...a},i)),[i,a]},X0=(e,t,n=cf,r="Close")=>{const o=jc(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),s=jc(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),i={closeIcon:A.createElement(Su,null),...n},a=q0(o,s,i),l=typeof a!="boolean"?!!(a!=null&&a.disabled):!1;if(a===!1)return[!1,null,l,{}];const[c,f]=U0(a,i,r);return[!0,c,l,f]},Ov=(e,t,n=cf)=>{const[r]=go("global",cn.global);return A.useMemo(()=>X0(e,t,{closeIcon:A.createElement(Su,null),...n},r.close),[e,t,n,r.close])},K0=()=>A.useReducer(e=>e+1,0),Wc=(e,t)=>{let n={};return ze(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},Lv=(e,t,n,r)=>u.useMemo(()=>{const o=Wc(e,r),s=Wc(t),i={blur:!1,...s,...o,closable:o.closable??r??s.closable??!0},a=i.blur?`${n}-mask-blur`:void 0;return[i.enabled!==!1,{mask:a},!!i.closable]},[e,t,n,r]),Nv=e=>{const[t,n]=u.useState(null);return[u.useCallback((o,s,i)=>{const a=t??o,l=Math.min(a||0,o),c=Math.max(a||0,o),f=s.slice(l,c+1).map(e),d=f.some(h=>!i.has(h)),m=[];return f.forEach(h=>{d?(i.has(h)||m.push(h),i.add(h)):(i.delete(h),m.push(h))}),n(d?c:null),m},[t]),n]},qc=e=>e==="horizontal"||e==="vertical",G0=(e,t,n)=>u.useMemo(()=>{const r=qc(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=qc(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),_v=()=>{const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(sn(o),[r])),()=>{t(o=>o.filter(s=>s!==r))}),[]);return[e,n]},Y0=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),kv=(e,t)=>u.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,s){return n[s]?n[s]:Reflect.get(o,s)}}):Y0(r,n)}),Hv=e=>{const t=u.useRef(e),[,n]=K0();return[()=>t.current,r=>{t.current=r,n()}]},Q0=A.createContext(void 0),Tt=100,Z0=10,Bv=Tt*Z0,lf={Modal:Tt,Drawer:Tt,Popover:Tt,Popconfirm:Tt,Tooltip:Tt,Tour:Tt,FloatButton:Tt},J0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},ey=e=>e in lf,zv=(e,t)=>{const[,n]=xt(),r=A.useContext(Q0),o=ey(e);let s;if(t!==void 0)s=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+lf[e]:i+=J0[e],s=[r===void 0?t:i,i]}return s},Uo=()=>({height:0,opacity:0}),Uc=e=>({height:(e==null?void 0:e.scrollHeight)??0,opacity:e?1:0}),ty=e=>({height:(e==null?void 0:e.offsetHeight)??0}),Xo=(e,t)=>(t==null?void 0:t.deadline)===!0||Lu(t)&&t.propertyName==="height",ny=(e=or)=>({motionName:`${e}-motion-collapse`,onAppearStart:Uo,onEnterStart:Uo,onAppearActive:Uc,onEnterActive:Uc,onLeaveStart:ty,onLeaveActive:Uo,onAppearEnd:Xo,onEnterEnd:Xo,onLeaveEnd:Xo,motionDeadline:500}),Vv=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ry=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:s,antCls:i}=e,[,a]=hr(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:a("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(l=>`${l} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(l=>`${l} ${r} ${o}`).join(",")}}}}},oy=Zh("Wave",ry),uf=`${or}-wave-target`,Xc=e=>e?on(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function sy(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:s}=n;return t&&Xc(n[t])?n[t]:[r,o,s].find(Xc)??null}function Ko(e){return Number.isNaN(e)?0:e}const iy=e=>{const{className:t,target:n,component:r,colorSource:o}=e,s=u.useRef(null),{getPrefixCls:i}=u.useContext(Pe),a=i(),[l]=hr(a,"wave"),[c,f]=u.useState(null),[d,m]=u.useState([]),[h,b]=u.useState(0),[g,p]=u.useState(0),[v,S]=u.useState(0),[y,x]=u.useState(0),[$,C]=u.useState(!1),E={left:h,top:g,width:v,height:y,borderRadius:d.map(T=>`${T}px`).join(" ")};c&&(E[l("color")]=c);function R(){const T=getComputedStyle(n);f(sy(n,o));const P=T.position==="static",{borderLeftWidth:F,borderTopWidth:O}=T;b(P?n.offsetLeft:Ko(-Number.parseFloat(F))),p(P?n.offsetTop:Ko(-Number.parseFloat(O))),S(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:j,borderBottomLeftRadius:L,borderBottomRightRadius:N}=T;m([_,j,N,L].map(D=>Ko(Number.parseFloat(D))))}if(u.useEffect(()=>{if(n){const T=vt(()=>{R(),C(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(R),P.observe(n)),()=>{vt.cancel(T),P==null||P.disconnect()}}},[n]),!$)return null;const M=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(uf));return u.createElement(ln,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,P)=>{var F;if(P.deadline||Lu(P)&&P.propertyName==="opacity"){const O=(F=s.current)==null?void 0:F.parentElement;bd(O).then(()=>{O==null||O.remove()})}return!1}},({className:T},P)=>u.createElement("div",{ref:Ei(s,P),className:B(t,T,{"wave-quick":M}),style:E}))},ay=(e,t)=>{var o;const{component:n}=t;if(n==="Checkbox"&&!((o=e.querySelector("input"))!=null&&o.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),yd(u.createElement(iy,{...t,target:e}),r)},cy=(e,t,n,r)=>{const{wave:o}=u.useContext(Pe),[,s,i]=xt(),a=kf(f=>{const d=e.current;if(o!=null&&o.disabled||!d)return;const m=d.querySelector(`.${uf}`)||d,{showEffect:h}=o||{};(h||ay)(m,{className:t,token:s,component:n,event:f,hashId:i,colorSource:r})}),l=u.useRef(null);return u.useEffect(()=>()=>{vt.cancel(l.current)},[]),f=>{vt.cancel(l.current),l.current=vt(()=>{a(f)})}},Kc={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},ly=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:s,wave:i}=u.useContext(Pe),a=u.useRef(null),l=s("wave"),c=oy(l),f=cy(a,B(l,c),r,o);if(A.useEffect(()=>{const m=a.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||n)return;const h=p=>{!Yf(p.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")&&!m.className.includes("disabled:")||m.getAttribute("aria-disabled")==="true"||m.className.includes("-leave")||f(p)},b=i==null?void 0:i.triggerType,g=b&&b in Kc?Kc[b]:"click";return m.addEventListener(g,h,!0),()=>{m.removeEventListener(g,h,!0)}},[n,i==null?void 0:i.triggerType]),!A.isValidElement(t))return t??null;const d=vl(t)?Ei(Gf(t),a):a;return ur(t,{ref:d})},ea=e=>{const t=A.useContext(Ln);return A.useMemo(()=>e?on(e)?e??t:je(e)?e(t):t:t,[e,t])},uy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},fy=ho(["Space","Compact"],uy,()=>({}),{resetStyle:!1}),bo=u.createContext(null),dy=(e,t)=>{const n=u.useContext(bo),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,a=o==="vertical"?"-vertical-":"-";return B(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:s,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},my=e=>{const{children:t}=e;return u.createElement(bo.Provider,{value:null},t)},hy=e=>{const{children:t,...n}=e;return u.createElement(bo.Provider,{value:u.useMemo(()=>n,[n])},t)},Dv=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Pe),{size:r,direction:o,orientation:s,block:i,prefixCls:a,className:l,rootClassName:c,children:f,vertical:d,...m}=e,[h,b]=G0(s,d,o),g=ea(C=>r??C),p=t("space-compact",a),[v]=fy(p),S=B(p,v,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:b},l,c),y=u.useContext(bo),x=nr(f),$=u.useMemo(()=>x.map((C,E)=>{const R=(C==null?void 0:C.key)||`${p}-item-${E}`;return u.createElement(hy,{key:R,compactSize:g,compactDirection:h,isFirstItem:E===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:E===x.length-1&&(!y||(y==null?void 0:y.isLastItem))},C)}),[x,y,h,g,p]);return x.length===0?null:u.createElement("div",{className:S,...m},$)},ff=u.createContext(void 0),py=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Pe),{prefixCls:r,size:o,className:s,...i}=e,a=t("btn-group",r),[,,l]=xt(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),f=B(a,{[`${a}-${c}`]:c,[`${a}-rtl`]:n==="rtl"},s,l);return u.createElement(ff.Provider,{value:o},u.createElement("div",{...i,className:f}))},Gc=/^[\u4E00-\u9FA5]{2}$/,ai=Gc.test.bind(Gc);function gy(e){return e==="danger"?{danger:!0}:{type:e}}function Go(e){return e==="text"||e==="link"}function yy(e,t,n,r){if(!pr(e))return;const o=t?" ":"";return!on(e)&&!gr(e)&&on(e.type)&&ai(e.props.children)?ur(e,s=>{const i=B(s.className,r)||void 0,a={...n,...s.style};return{...s,children:s.children.split("").join(o),className:i,style:a}}):on(e)?A.createElement("span",{className:r,style:n},ai(e)?e.split("").join(o):e):a0(e)?A.createElement("span",{className:r,style:n},e):ur(e,s=>({...s,className:B(s.className,r)||void 0,style:{...s.style,...n}}))}function by(e,t,n,r){let o=!1;const s=[];return A.Children.forEach(e,i=>{const a=on(i)||gr(i);if(o&&a){const l=s.length-1,c=s[l];s[l]=`${c}${i}`}else s.push(i);o=a}),A.Children.map(s,i=>yy(i,t,n,r))}["default","primary","danger"].concat(sn($t));const df=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,i=B(`${s}-icon`,n);return A.createElement("span",{ref:t,className:i,style:r},o)}),Yc=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,i=B(`${n}-loading-icon`,r);return A.createElement(df,{prefixCls:n,className:i,style:o,ref:t},A.createElement(j0,{className:s}))}),Yo=()=>({width:0,opacity:0,transform:"scale(0)"}),Qo=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),vy=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:i}=e,a=!!n;return r?A.createElement(Yc,{prefixCls:t,className:o,style:s}):A.createElement(ln,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Yo,onAppearActive:Qo,onEnterStart:Yo,onEnterActive:Qo,onLeaveStart:Qo,onLeaveActive:Yo},({className:l,style:c},f)=>{const d={...s,...c};return A.createElement(Yc,{prefixCls:t,className:B(o,l),style:d,ref:f})})},Sy=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(s=>`${s} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(s=>`${s} ${r} ${o}`).join(", ")} !important`}}}},Qc=e=>({animationDuration:e,animationFillMode:"both"}),vo=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
${s}${e}-enter,
${s}${e}-appear
`]:{...Qc(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...Qc(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"}}},$y=new Q("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),xy=new Q("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),jv=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[vo(r,$y,xy,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Ey=new Q("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cy=new Q("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),wy=new Q("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Py=new Q("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ry=new Q("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),My=new Q("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ty=new Q("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ay=new Q("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Fy={"move-up":{inKeyframes:Ty,outKeyframes:Ay},"move-down":{inKeyframes:Ey,outKeyframes:Cy},"move-left":{inKeyframes:wy,outKeyframes:Py},"move-right":{inKeyframes:Ry,outKeyframes:My}},Wv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Fy[t];return[vo(r,o,s,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Iy=new Q("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Oy=new Q("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ly=new Q("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ny=new Q("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_y=new Q("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ky=new Q("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hy=new Q("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),By=new Q("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),zy={"slide-up":{inKeyframes:Iy,outKeyframes:Oy},"slide-down":{inKeyframes:Ly,outKeyframes:Ny},"slide-left":{inKeyframes:_y,outKeyframes:ky},"slide-right":{inKeyframes:Hy,outKeyframes:By}},qv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=zy[t];return[vo(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}}]},Vy=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),Uv=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),Dy=new Q("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jy=new Q("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Zc=new Q("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jc=new Q("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wy=new Q("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qy=new Q("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Uy=new Q("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Xy=new Q("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ky=new Q("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Gy=new Q("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Yy=new Q("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Qy=new Q("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Zy={zoom:{inKeyframes:Dy,outKeyframes:jy},"zoom-big":{inKeyframes:Zc,outKeyframes:Jc},"zoom-big-fast":{inKeyframes:Zc,outKeyframes:Jc},"zoom-left":{inKeyframes:Uy,outKeyframes:Xy},"zoom-right":{inKeyframes:Ky,outKeyframes:Gy},"zoom-up":{inKeyframes:Wy,outKeyframes:qy},"zoom-down":{inKeyframes:Yy,outKeyframes:Qy}},Xv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Zy[t];return[vo(r,o,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},el=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Jy=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}},el(`${t}-primary`,o),el(`${t}-danger`,s)]}},Zo=e=>Math.round(Number(e||0)),eb=e=>{if(e instanceof ye)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class fr extends ye{constructor(t){super(eb(t))}toHsbString(){const t=this.toHsb(),n=Zo(t.s*100),r=Zo(t.b*100),o=Zo(t.h),s=t.a,i=`hsb(${o}, ${n}%, ${r}%)`,a=`hsba(${o}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?i:a}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const tb=e=>e instanceof fr?e:new fr(e);tb("#1677ff");const nb=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",rb=(e,t)=>e?nb(e,t):"";let ci=(function(){function e(t){var r;if(lo(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)==null?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:s})=>({color:new e(o),percent:s})),this.metaColor=new fr(this.colors[0].color.metaColor)):this.metaColor=new fr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return uo(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return rb(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()}}])})();var kr={},tl;function ob(){if(tl)return kr;tl=1,Object.defineProperty(kr,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};return kr.default=e,kr}var sb=ob();const ib=dr(sb);function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const ab=(e,t)=>u.createElement(po,li({},e,{ref:t,icon:ib})),cb=u.forwardRef(ab);function Nt(){return Nt=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},Nt.apply(null,arguments)}const lb=A.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:o,style:s,children:i,isActive:a,role:l,classNames:c,styles:f}=e,[d,m]=A.useState(a||r);return A.useEffect(()=>{(r||a)&&m(!0)},[r,a]),d?A.createElement("div",{ref:t,className:B(`${n}-panel`,{[`${n}-panel-active`]:a,[`${n}-panel-inactive`]:!a},o),style:s,role:l},A.createElement("div",{className:B(`${n}-body`,c==null?void 0:c.body),style:f==null?void 0:f.body},i)):null}),mf=A.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:o,onItemClick:s,forceRender:i,className:a,classNames:l={},styles:c={},prefixCls:f,collapsible:d,accordion:m,panelKey:h,extra:b,header:g,expandIcon:p,openMotion:v,destroyOnHidden:S,children:y,...x}=e,$=d==="disabled",C=b!=null&&typeof b!="boolean",E={onClick:()=>{s==null||s(h)},onKeyDown:O=>{(O.key==="Enter"||O.keyCode===Ta.ENTER||O.which===Ta.ENTER)&&(s==null||s(h))},role:m?"tab":"button","aria-expanded":o,"aria-disabled":$,tabIndex:$?-1:0},R=typeof p=="function"?p(e):A.createElement("i",{className:"arrow"}),M=R&&A.createElement("div",Nt({className:B(`${f}-expand-icon`,l==null?void 0:l.icon),style:c==null?void 0:c.icon},["header","icon"].includes(d)?E:{}),R),T=B(`${f}-item`,{[`${f}-item-active`]:o,[`${f}-item-disabled`]:$},a),F={className:B(r,`${f}-header`,{[`${f}-collapsible-${d}`]:!!d},l==null?void 0:l.header),style:c==null?void 0:c.header,...["header","icon"].includes(d)?{}:E};return A.createElement("div",Nt({},x,{ref:t,className:T}),A.createElement("div",F,n&&M,A.createElement("span",Nt({className:B(`${f}-title`,l==null?void 0:l.title),style:c==null?void 0:c.title},d==="header"?E:{}),g),C&&A.createElement("div",{className:`${f}-extra`},b)),A.createElement(af,Nt({visible:o,leavedClassName:`${f}-panel-hidden`},v,{forceRender:i,removeOnLeave:S}),({className:O,style:_},j)=>A.createElement(lb,{ref:j,prefixCls:f,className:O,classNames:l,style:_,styles:c,isActive:o,forceRender:i,role:m?"tabpanel":void 0},y)))});function hf(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),o={};return r.forEach(s=>{o[s]=n(e[s],t[s])}),o}function ub(e,t){return hf(e,t,(n,r)=>B(n,r))}function fb(e,t){return hf(e,t,(n,r)=>({...n,...r}))}const db=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:o,destroyOnHidden:s,onItemClick:i,activeKey:a,openMotion:l,expandIcon:c,classNames:f,styles:d}=t;return e.map((m,h)=>{const{children:b,label:g,key:p,collapsible:v,onItemClick:S,destroyOnHidden:y,classNames:x,styles:$,...C}=m,E=String(p??h),R=v??o,M=y??s,T=F=>{R!=="disabled"&&(i(F),S==null||S(F))};let P=!1;return r?P=a[0]===E:P=a.indexOf(E)>-1,A.createElement(mf,Nt({},C,{classNames:ub(f,x),styles:fb(d,$),prefixCls:n,key:E,panelKey:E,isActive:P,accordion:r,openMotion:l,expandIcon:c,header:g,collapsible:R,onItemClick:T,destroyOnHidden:M}),b)})},mb=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:o,collapsible:s,destroyOnHidden:i,onItemClick:a,activeKey:l,openMotion:c,expandIcon:f,classNames:d,styles:m}=n,h=e.key||String(t),{header:b,headerClass:g,destroyOnHidden:p,collapsible:v,onItemClick:S}=e.props;let y=!1;o?y=l[0]===h:y=l.indexOf(h)>-1;const x=v??s,$=E=>{x!=="disabled"&&(a(E),S==null||S(E))},C={key:h,panelKey:h,header:b,headerClass:g,classNames:d,styles:m,isActive:y,prefixCls:r,destroyOnHidden:p??i,openMotion:c,accordion:o,children:e.props.children,onItemClick:$,expandIcon:f,collapsible:x};return typeof e.type=="string"?e:(Object.keys(C).forEach(E=>{typeof C[E]>"u"&&delete C[E]}),A.cloneElement(e,C))};function hb(e,t,n){return Array.isArray(e)?db(e,n):rr(t).map((r,o)=>mb(r,o,n))}function nl(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const pb=A.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:o,accordion:s,className:i,children:a,collapsible:l,openMotion:c,expandIcon:f,activeKey:d,defaultActiveKey:m,onChange:h,items:b,classNames:g,styles:p}=e,v=B(n,i),[S,y]=jd(m,d),x=nl(S),$=An(R=>{const M=nl(R);y(M),h==null||h(M)}),C=R=>{$(s?x[0]===R?[]:[R]:x.includes(R)?x.filter(M=>M!==R):[...x,R])};De(!a,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const E=hb(b,a,{prefixCls:n,accordion:s,openMotion:c,expandIcon:f,collapsible:l,destroyOnHidden:r,onItemClick:C,activeKey:x,classNames:g,styles:p});return A.createElement("div",Nt({ref:t,className:v,style:o,role:s?"tablist":void 0},cm(e,{aria:!0,data:!0})),E)}),ta=Object.assign(pb,{Panel:mf}),{Panel:Kv}=ta,gb=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Pe),{prefixCls:r,className:o,showArrow:s=!0}=e,i=n("collapse",r),a=B({[`${i}-no-arrow`]:!s},o);return u.createElement(ta.Panel,{ref:t,...e,prefixCls:i,className:a})}),yb=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:s,headerPaddingSM:i,headerPaddingLG:a,collapsePanelBorderRadius:l,lineWidth:c,lineType:f,colorBorder:d,colorText:m,colorTextHeading:h,colorTextDisabled:b,fontSizeLG:g,lineHeight:p,lineHeightLG:v,marginSM:S,paddingSM:y,paddingLG:x,paddingXS:$,motionDurationSlow:C,fontSizeIcon:E,contentPadding:R,contentPaddingSM:M,contentPaddingLG:T,fontHeight:P,fontHeightLG:F}=e,O=`${U(c)} ${f} ${d}`;return{[t]:{...Xh(e),backgroundColor:o,border:O,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:first-child":{[`
&,
& > ${t}-header`]:{borderRadius:`${U(l)} ${U(l)} 0 0`}},"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${U(l)} ${U(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:h,lineHeight:p,cursor:"pointer",transition:`all ${C}, visibility 0s`,...mo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:P,display:"flex",alignItems:"center",marginInlineEnd:S},[`${t}-arrow`]:{...Vi(),fontSize:E,transition:`transform ${C}`,svg:{transition:`transform ${C}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:m,backgroundColor:n,borderTop:O,[`& > ${t}-body`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub($).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:M}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:a,[`> ${t}-expand-icon`]:{height:F,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${U(l)} ${U(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:b,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:S}}}}}}},bb=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},vb=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`${U(e.lineWidth)} ${e.lineType} ${s}`},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Sb=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},$b=e=>({headerPadding:`${U(e.paddingSM)} ${U(e.padding)}`,headerPaddingSM:`${U(e.paddingXS)} ${U(e.paddingSM)} ${U(e.paddingXS)} ${U(e.paddingXS)}`,headerPaddingLG:`${U(e.padding)} ${U(e.paddingLG)} ${U(e.padding)} ${U(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${U(e.padding)} ${U(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${U(e.paddingXXS)} ${U(16)} ${U(e.padding)}`,borderlessContentBg:"transparent"}),xb=ho("Collapse",e=>{const t=Ht(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[yb(t),vb(t),Sb(t),bb(t),Sy(t)]},$b),Eb=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:s,style:i,classNames:a,styles:l}=Ii("collapse"),{prefixCls:c,className:f,rootClassName:d,style:m,bordered:h=!0,ghost:b,size:g,expandIconPlacement:p,expandIconPosition:v,children:S,destroyInactivePanel:y,destroyOnHidden:x,expandIcon:$,classNames:C,styles:E}=e,R=ea(q=>g??q??"middle"),M=n("collapse",c),T=n(),[P,F]=xb(M),O=p??v??"start",_={...e,size:R,bordered:h,expandIconPlacement:O},j=In(i),L=In(m),[N,D]=Gi([a,C],[l,j,E,L],{props:_}),X=$??o,se=u.useCallback((q={})=>{const ne=je(X)?X(q):u.createElement(cb,{rotate:q.isActive?r==="rtl"?-90:90:void 0,"aria-label":q.isActive?"expanded":"collapsed"});return ur(ne,te=>({className:B(te.className,`${M}-arrow`)}))},[X,M,r]),xe=B(`${M}-icon-placement-${O}`,{[`${M}-borderless`]:!h,[`${M}-rtl`]:r==="rtl",[`${M}-ghost`]:!!b,[`${M}-large`]:R==="large",[`${M}-small`]:R==="small"},s,f,d,P,F,N.root),K=u.useMemo(()=>({...ny(T),motionAppear:!1,leavedClassName:`${M}-panel-hidden`}),[T,M]),de=u.useMemo(()=>S?nr(S).map(q=>q):null,[S]);return u.createElement(ta,{ref:t,openMotion:K,...wi(e,["rootClassName"]),expandIcon:se,prefixCls:M,className:xe,style:D.root,classNames:N,styles:D,destroyOnHidden:x??y},de)}),Gv=Object.assign(Eb,{Panel:gb}),Yv=e=>e instanceof ci?e:new ci(e),Cb=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),i=new fr(e.toRgbString()).onBackground(t).toHsv();return s<=.5?i.v>.5:n*.299+r*.587+o*.114>192},pf=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Ht(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},gf=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??Ur(t),s=e.contentLineHeightSM??Ur(n),i=e.contentLineHeightLG??Ur(r),a=Cb(new ci(e.colorBgSolid),"#fff")?"#000":"#fff",l=$t.reduce((d,m)=>({...d,[`${m}ShadowColor`]:`0 ${U(e.controlOutlineWidth)} 0 ${Zn(e[`${m}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,f=e.colorBgContainerDisabled;return{...l,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,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:a,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:s,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:f}},wb=e=>{const{componentCls:t,antCls:n,lineWidth:r,lineType:o}=e,[s,i]=hr(n,"btn");return{[t]:[{[s("border-width")]:r,[s("border-color")]:"#000",[s("border-color-hover")]:i("border-color"),[s("border-color-active")]:i("border-color"),[s("border-color-disabled")]:i("border-color"),[s("border-style")]:o,[s("text-color")]:"#000",[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color"),[s("text-color-disabled")]:i("text-color"),[s("bg-color")]:"#ddd",[s("bg-color-hover")]:i("bg-color"),[s("bg-color-active")]:i("bg-color"),[s("bg-color-disabled")]:e.colorBgContainerDisabled,[s("bg-color-container")]:e.colorBgContainer,[s("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[s("solid-bg-color")]:i("color-base"),[s("solid-bg-color-hover")]:i("color-hover"),[s("solid-bg-color-active")]:i("color-active"),[s("border-color")]:"transparent",[s("text-color")]:e.colorTextLightSolid,[s("bg-color")]:i("solid-bg-color"),[s("bg-color-hover")]:i("solid-bg-color-hover"),[s("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("border-color")]:i("color-base"),[s("border-color-hover")]:i("color-hover"),[s("border-color-active")]:i("color-active"),[s("bg-color")]:i("bg-color-container"),[s("text-color")]:i("color-base"),[s("text-color-hover")]:i("color-hover"),[s("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[s("border-style")]:"dashed",[s("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[s("border-color")]:"transparent",[s("text-color")]:i("color-base"),[s("bg-color")]:i("color-light"),[s("bg-color-hover")]:i("color-light-hover"),[s("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[s("border-color")]:"transparent",[s("text-color")]:i("color-base"),[s("text-color-hover")]:i("color-hover"),[s("text-color-active")]:i("color-active"),[s("bg-color")]:"transparent",[s("bg-color-hover")]:"transparent",[s("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[s("bg-color-hover")]:i("color-light"),[s("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[s("color-base")]:e.colorLink,[s("color-hover")]:e.colorLinkHover,[s("color-active")]:e.colorLinkActive,[s("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[s("color-base")]:e.colorPrimary,[s("color-hover")]:e.colorPrimaryHover,[s("color-active")]:e.colorPrimaryActive,[s("color-light")]:e.colorPrimaryBg,[s("color-light-hover")]:e.colorPrimaryBgHover,[s("color-light-active")]:e.colorPrimaryBorder,[s("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.primaryColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[s("color-base")]:e.colorError,[s("color-hover")]:e.colorErrorHover,[s("color-active")]:e.colorErrorActive,[s("color-light")]:e.colorErrorBg,[s("color-light-hover")]:e.colorErrorBgFilledHover,[s("color-light-active")]:e.colorErrorBgActive,[s("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.dangerColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[s("solid-bg-color")]:e.colorBgSolid,[s("solid-bg-color-hover")]:e.colorBgSolidHover,[s("solid-bg-color-active")]:e.colorBgSolidActive,[s("color-base")]:e.defaultBorderColor,[s("color-hover")]:e.defaultHoverBorderColor,[s("color-active")]:e.defaultActiveBorderColor,[s("color-light")]:e.colorFillTertiary,[s("color-light-hover")]:e.colorFillSecondary,[s("color-light-active")]:e.colorFill,[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[s("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[s("text-color")]:e.solidTextColor,[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[s("text-color-hover")]:i("text-color"),[s("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("bg-color-container")]:e.defaultBg,[s("bg-color-hover")]:e.defaultHoverBg,[s("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[s("text-color")]:e.textTextColor,[s("text-color-hover")]:e.textTextHoverColor,[s("text-color-active")]:e.textTextActiveColor,[s("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultGhostColor,[s("border-color")]:e.defaultGhostBorderColor}}}},$t.map(a=>{const l=e[`${a}6`],c=e[`${a}1`],f=e[`${a}Hover`],d=e[`${a}2`],m=e[`${a}3`],h=e[`${a}Active`],b=e[`${a}ShadowColor`];return{[`&${t}-color-${a}`]:{[s("color-base")]:l,[s("color-hover")]:f,[s("color-active")]:h,[s("color-light")]:c,[s("color-light-hover")]:d,[s("color-light-active")]:m,[s("shadow")]:b}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[s("bg-color")]:e.ghostBg,[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg,[s("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg}}}]}},Pb=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:i,iconGap:a,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:a,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Vy(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Vi(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[n]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":mo(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}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${s} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(a).mul(-1).equal()}}}}}},Rb=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),na=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:i,iconCls:a,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${U(l)} ${U(i)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[a]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Rb(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Mb=e=>{const t=Ht(e,{fontSize:e.contentFontSize});return na(t,e.componentCls)},Tb=e=>{const t=Ht(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return na(t,`${e.componentCls}-sm`)},Ab=e=>{const t=Ht(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return na(t,`${e.componentCls}-lg`)},Fb=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ib=ho("Button",e=>{const t=pf(e);return[Pb(t),Mb(t),Tb(t),Ab(t),Fb(t),wb(t),Jy(t)]},gf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Ob(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:i}=n,a=i?"> *":"",l=a?` ${a}`:"",c=m=>m.filter(Boolean).map(h=>`&:${h}${l}`).join(","),f=c(["hover",o?`hover${o}`:null]),d=c([s?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[f]:{zIndex:4},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function Lb(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 Nb(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,s=`${o}-compact`;return{[s]:{...Ob(e,s,t,o),...Lb(o,s,t)}}}function _b(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function kb(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 Hb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{..._b(e,t,e.componentCls),...kb(e.componentCls,t)}}}const Bb=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:s}=e,i=`${n}-variant-solid:not([disabled])`,a=o(r).mul(-1).equal(),[l,c]=hr(t,"btn"),f=d=>({[`${n}-compact${d?"-vertical":""}-item`]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},d?{top:a,insetInline:a,height:r}:{insetBlock:a,insetInlineStart:a,width:r}],"&:hover:before":{display:"none"}}}});return[f(),f(!0),{[`${i}${n}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${s})`}}]},zb=Jh(["Button","compact"],e=>{const t=pf(e);return[Nb(t),Hb(t),Bb(t)]},gf);function Vb(e){if(ze(e)){let t=e==null?void 0:e.delay;return t=gr(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Db={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},jb=A.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:s,variant:i,type:a,danger:l=!1,shape:c,size:f,disabled:d,className:m,rootClassName:h,children:b,icon:g,iconPosition:p,iconPlacement:v,ghost:S=!1,block:y=!1,htmlType:x="button",classNames:$,styles:C,style:E,autoInsertSpace:R,autoFocus:M,...T}=e,P=nr(b),F=a||"default",{getPrefixCls:O,direction:_,autoInsertSpace:j,className:L,style:N,classNames:D,styles:X,loadingIcon:se,shape:xe,color:K,variant:de}=Ii("button"),q=c||xe||"default",[ne,te]=u.useMemo(()=>{if(s&&i)return[s,i];if(a||l){const le=Db[F]||[];return l?["danger",le[1]]:le}return i==="solid"?["primary",i]:K&&de?[K,de]:de==="solid"?["primary",de]:["default","outlined"]},[s,i,a,l,K,de,F]),[me,I]=u.useMemo(()=>S&&te==="solid"?[ne,"outlined"]:[ne,te],[ne,te,S]),H=me==="danger",Z=H?"dangerous":me,fe=R??j??!0,k=O("btn",o),[at,Qe]=Ib(k),Ze=u.useContext(Jr),ve=d??Ze,G=u.useContext(ff),Ee=u.useMemo(()=>Vb(r),[r]),[pe,ht]=u.useState(Ee.loading),[Ae,Je]=u.useState(!1),Et=u.useRef(null),un=Kf(t,Et),Fe=P.length===1&&!g&&!Go(I),Re=u.useRef(!0);A.useEffect(()=>(Re.current=!1,()=>{Re.current=!0}),[]),hl(()=>{let le=null;Ee.delay>0?le=setTimeout(()=>{le=null,ht(!0)},Ee.delay):ht(Ee.loading);function Pt(){le&&(clearTimeout(le),le=null)}return Pt},[Ee.delay,Ee.loading]),u.useEffect(()=>{if(!Et.current||!fe)return;const le=Et.current.textContent||"";Fe&&ai(le)?Ae||Je(!0):Ae&&Je(!1)}),u.useEffect(()=>{var le;M&&((le=Et.current)==null||le.focus())},[]);const fn=A.useCallback(le=>{var Pt;if(pe||ve){le.preventDefault();return}(Pt=e.onClick)==null||Pt.call(e,("href"in e,le))},[e.onClick,pe,ve]),{compactSize:Hn,compactItemClassnames:dn}=dy(k,_),Bt=ea(le=>f??Hn??G??le),Ct=pe?"loading":g,Le=v??p??"start",wt=wi(T,["navigate"]),mn={...e,type:F,color:me,variant:I,danger:H,shape:q,size:Bt,disabled:ve,loading:pe,iconPlacement:Le},hn=In(N),Ce=In(E),[ae,ie]=Gi([n?void 0:D,$],[n?void 0:X,hn,C,Ce],{props:mn}),Me=B(k,at,Qe,{[`${k}-${q}`]:q!=="default"&&q!=="square"&&q,[`${k}-${F}`]:F,[`${k}-dangerous`]:l,[`${k}-color-${Z}`]:Z,[`${k}-variant-${I}`]:I,[`${k}-lg`]:Bt==="large",[`${k}-sm`]:Bt==="small",[`${k}-icon-only`]:!b&&b!==0&&!!Ct,[`${k}-background-ghost`]:S&&!Go(I),[`${k}-loading`]:pe,[`${k}-two-chinese-chars`]:Ae&&fe&&!pe,[`${k}-block`]:y,[`${k}-rtl`]:_==="rtl",[`${k}-icon-end`]:Le==="end"},dn,m,h,L,ae.root),Ne={className:ae.icon,style:ie.icon},pt=le=>A.createElement(df,{prefixCls:k,...Ne},le),pn=A.createElement(vy,{existIcon:!!g,prefixCls:k,loading:pe,mount:Re.current,...Ne}),zt=ze(r)&&r.icon||se;let ct;g&&!pe?ct=pt(g):r&&zt?ct=pt(zt):ct=pn;const Vt=pr(b)?by(b,Fe&&fe,ie.content,ae.content):null;if(wt.href!==void 0)return A.createElement("a",{...wt,className:B(Me,{[`${k}-disabled`]:ve}),href:ve?void 0:wt.href,style:ie.root,onClick:fn,ref:un,tabIndex:ve?-1:0,"aria-disabled":ve},ct,Vt);let lt=A.createElement("button",{...T,type:x,className:Me,style:ie.root,onClick:fn,disabled:ve,ref:un},ct,Vt,dn&&A.createElement(zb,{prefixCls:k}));return Go(I)||(lt=A.createElement(ly,{component:"Button",disabled:pe},lt)),lt}),ra=jb;ra.Group=py;ra.__ANT_BUTTON=!0;const Qv=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:s,autoFocus:i,emitEvent:a,isSilent:l,quitOnNullishReturnValue:c,actionFn:f}=e,d=u.useRef(!1),m=u.useRef(null),[h,b]=Hf(!1),g=(...S)=>{s==null||s(...S)};u.useEffect(()=>{let S=null;return i&&(S=setTimeout(()=>{var y;(y=m.current)==null||y.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[i]);const p=S=>{jo(S)&&(b(!0),S.then((...y)=>{b(!1,!0),g.apply(void 0,y),d.current=!1},y=>{if(b(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(y)}))},v=S=>{if(d.current)return;if(d.current=!0,!f){g();return}let y;if(a){if(y=f(S),c&&!jo(y)){d.current=!1,g(S);return}}else if(f.length)y=f(s),d.current=!1;else if(y=f(),!jo(y)){g();return}p(y)};return u.createElement(ra,{...gy(t),onClick:v,loading:h,prefixCls:r,...o,ref:m},n)},tn="RC_FORM_INTERNAL_HOOKS",oe=()=>{De(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Nn=u.createContext({getFieldValue:oe,getFieldsValue:oe,getFieldError:oe,getFieldWarning:oe,getFieldsError:oe,isFieldsTouched:oe,isFieldTouched:oe,isFieldValidating:oe,isFieldsValidating:oe,resetFields:oe,setFields:oe,setFieldValue:oe,setFieldsValue:oe,validateFields:oe,submit:oe,getInternalHooks:()=>(oe(),{dispatch:oe,initEntityValue:oe,registerField:oe,useSubscribe:oe,setInitialValues:oe,destroyForm:oe,setCallbacks:oe,registerWatch:oe,getFields:oe,setValidateMessages:oe,setPreserve:oe,getInitialValue:oe})}),to=u.createContext(null);function ui(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wb(e){return e&&!!e._init}function fi(){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",tel:"%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(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const Jo=fi(),qb=/%[sdj%]/g;let Ub=()=>{};function di(e){if(!e||!e.length)return null;const t={};return e.forEach(n=>{const r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ve(e,...t){let n=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(qb,s=>{if(s==="%%")return"%";if(n>=r)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}}):e}function Xb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function $e(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xb(t)&&typeof e=="string"&&!e)}function Kb(e,t,n){const r=[];let o=0;const s=e.length;function i(a){r.push(...a||[]),o++,o===s&&n(r)}e.forEach(a=>{t(a,i)})}function rl(e,t,n){let r=0;const o=e.length;function s(i){if(i&&i.length){n(i);return}const a=r;r=r+1,a<o?t(e[a],s):n([])}s([])}function Gb(e){const t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}class ol extends Error{constructor(n,r){super("Async Validation Error");w(this,"errors");w(this,"fields");this.errors=n,this.fields=r}}function Yb(e,t,n,r,o){if(t.first){const d=new Promise((m,h)=>{const b=p=>(r(p),p.length?h(new ol(p,di(p))):m(o)),g=Gb(e);rl(g,n,b)});return d.catch(m=>m),d}const s=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),a=i.length;let l=0;const c=[],f=new Promise((d,m)=>{const h=b=>{if(c.push.apply(c,b),l++,l===a)return r(c),c.length?m(new ol(c,di(c))):d(o)};i.length||(r(c),d(o)),i.forEach(b=>{const g=e[b];s.indexOf(b)!==-1?rl(g,n,h):Kb(g,n,h)})});return f.catch(d=>d),f}function Qb(e){return!!(e&&e.message!==void 0)}function Zb(e,t){let n=e;for(let r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function sl(e,t){return n=>{let r;return e.fullFields?r=Zb(t,e.fullFields):r=t[n.field||e.fullField],Qb(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 il(e,t){if(t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]={...e[n],...r}:e[n]=r}}return e}const En="enum",Jb=(e,t,n,r,o)=>{e[En]=Array.isArray(e[En])?e[En]:[],e[En].indexOf(t)===-1&&r.push(Ve(o.messages[En],e.fullField,e[En].join(", ")))},e1=(e,t,n,r,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ve(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(Ve(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},t1=(e,t,n,r,o)=>{const s=typeof e.len=="number",i=typeof e.min=="number",a=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let c=t,f=null;const d=typeof t=="number",m=typeof t=="string",h=Array.isArray(t);if(d?f="number":m?f="string":h&&(f="array"),!f)return!1;h&&(c=t.length),m&&(c=t.replace(l,"_").length),s?c!==e.len&&r.push(Ve(o.messages[f].len,e.fullField,e.len)):i&&!a&&c<e.min?r.push(Ve(o.messages[f].min,e.fullField,e.min)):a&&!i&&c>e.max?r.push(Ve(o.messages[f].max,e.fullField,e.max)):i&&a&&(c<e.min||c>e.max)&&r.push(Ve(o.messages[f].range,e.fullField,e.min,e.max))},yf=(e,t,n,r,o,s)=>{e.required&&(!n.hasOwnProperty(e.field)||$e(t,s||e.type))&&r.push(Ve(o.messages.required,e.fullField))};let Hr;const n1=(()=>{if(Hr)return Hr;const e="[a-fA-F\\d:]",t=$=>$&&$.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${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}",i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,a=new RegExp(`(?:^${n}$)|(?:^${i}$)`),l=new RegExp(`^${n}$`),c=new RegExp(`^${i}$`),f=$=>$&&$.exact?a:new RegExp(`(?:${t($)}${n}${t($)})|(?:${t($)}${i}${t($)})`,"g");f.v4=$=>$&&$.exact?l:new RegExp(`${t($)}${n}${t($)}`,"g"),f.v6=$=>$&&$.exact?c:new RegExp(`${t($)}${i}${t($)}`,"g");const d="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,b=f.v6().source,x=`(?:${d}|www\\.)${m}(?:localhost|${h}|${b}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Hr=new RegExp(`(?:^${x}$)`,"i"),Hr}),es={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Jn={integer(e){return Jn.number(e)&&parseInt(e,10)===e},float(e){return Jn.number(e)&&!Jn.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!Jn.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(es.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(es.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(n1())},hex(e){return typeof e=="string"&&!!e.match(es.hex)}},r1=(e,t,n,r,o)=>{if(e.required&&t===void 0){yf(e,t,n,r,o);return}const s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],i=e.type;s.indexOf(i)>-1?Jn[i](t)||r.push(Ve(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Ve(o.messages.types[i],e.fullField,e.type))},o1=(e,t,n,r,o)=>{(/^\s+$/.test(t)||t==="")&&r.push(Ve(o.messages.whitespace,e.fullField))},W={required:yf,whitespace:o1,type:r1,range:t1,enum:Jb,pattern:e1},s1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o)}n(s)},i1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();W.required(e,t,r,s,o,"array"),t!=null&&(W.type(e,t,r,s,o),W.range(e,t,r,s,o))}n(s)},a1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&W.type(e,t,r,s,o)}n(s)},c1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,"date")&&!e.required)return n();if(W.required(e,t,r,s,o),!$e(t,"date")){let a;t instanceof Date?a=t:a=new Date(t),W.type(e,a,r,s,o),a&&W.range(e,a.getTime(),r,s,o)}}n(s)},l1="enum",u1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&W[l1](e,t,r,s,o)}n(s)},f1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&(W.type(e,t,r,s,o),W.range(e,t,r,s,o))}n(s)},d1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&(W.type(e,t,r,s,o),W.range(e,t,r,s,o))}n(s)},m1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&W.type(e,t,r,s,o)}n(s)},h1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),$e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&(W.type(e,t,r,s,o),W.range(e,t,r,s,o))}n(s)},p1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),t!==void 0&&W.type(e,t,r,s,o)}n(s)},g1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,"string")&&!e.required)return n();W.required(e,t,r,s,o),$e(t,"string")||W.pattern(e,t,r,s,o)}n(s)},y1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();W.required(e,t,r,s,o),$e(t)||W.type(e,t,r,s,o)}n(s)},b1=(e,t,n,r,o)=>{const s=[],i=Array.isArray(t)?"array":typeof t;W.required(e,t,r,s,o,i),n(s)},v1=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,"string")&&!e.required)return n();W.required(e,t,r,s,o,"string"),$e(t,"string")||(W.type(e,t,r,s,o),W.range(e,t,r,s,o),W.pattern(e,t,r,s,o),e.whitespace===!0&&W.whitespace(e,t,r,s,o))}n(s)},Br=(e,t,n,r,o)=>{const s=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,s)&&!e.required)return n();W.required(e,t,r,i,o,s),$e(t,s)||W.type(e,t,r,i,o)}n(i)},Kn={string:v1,method:m1,number:h1,boolean:a1,regexp:y1,integer:d1,float:f1,array:i1,object:p1,enum:u1,pattern:g1,date:c1,url:Br,hex:Br,email:Br,tel:Br,required:b1,any:s1},Ft=class Ft{constructor(t){w(this,"rules",null);w(this,"_messages",Jo);this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(n=>{const r=t[n];this.rules[n]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=il(fi(),t)),this._messages}validate(t,n={},r=()=>{}){let o=t,s=n,i=r;if(typeof s=="function"&&(i=s,s={}),!this.rules||Object.keys(this.rules).length===0)return i&&i(null,o),Promise.resolve(o);function a(d){let m=[],h={};function b(g){Array.isArray(g)?m=m.concat(...g):m.push(g)}for(let g=0;g<d.length;g++)b(d[g]);m.length?(h=di(m),i(m,h)):i(null,o)}if(s.messages){let d=this.messages();d===Jo&&(d=fi()),il(d,s.messages),s.messages=d}else s.messages=this.messages();const l={};(s.keys||Object.keys(this.rules)).forEach(d=>{const m=this.rules[d];let h=o[d];m.forEach(b=>{let g=b;typeof g.transform=="function"&&(o===t&&(o={...o}),h=o[d]=g.transform(h),h!=null&&(g.type=g.type||(Array.isArray(h)?"array":typeof h))),typeof g=="function"?g={validator:g}:g={...g},g.validator=this.getValidationMethod(g),g.validator&&(g.field=d,g.fullField=g.fullField||d,g.type=this.getType(g),l[d]=l[d]||[],l[d].push({rule:g,value:h,source:o,field:d}))})});const f={};return Yb(l,s,(d,m)=>{var S;const h=d.rule;let b=(h.type==="object"||h.type==="array")&&(typeof h.fields=="object"||typeof h.defaultField=="object");b=b&&(h.required||!h.required&&d.value),h.field=d.field;function g(y,x){return{...x,fullField:`${h.fullField}.${y}`,fullFields:h.fullFields?[...h.fullFields,y]:[y]}}function p(y=[]){let x=Array.isArray(y)?y:[y];!s.suppressWarning&&x.length&&Ft.warning("async-validator:",x),x.length&&h.message!==void 0&&h.message!==null&&(x=[].concat(h.message));let $=x.map(sl(h,o));if(s.first&&$.length)return f[h.field]=1,m($);if(!b)m($);else{if(h.required&&!d.value)return h.message!==void 0?$=[].concat(h.message).map(sl(h,o)):s.error&&($=[s.error(h,Ve(s.messages.required,h.field))]),m($);let C={};h.defaultField&&Object.keys(d.value).map(M=>{C[M]=h.defaultField}),C={...C,...d.rule.fields};const E={};Object.keys(C).forEach(M=>{const T=C[M],P=Array.isArray(T)?T:[T];E[M]=P.map(g.bind(null,M))});const R=new Ft(E);R.messages(s.messages),d.rule.options&&(d.rule.options.messages=s.messages,d.rule.options.error=s.error),R.validate(d.value,d.rule.options||s,M=>{const T=[];$&&$.length&&T.push(...$),M&&M.length&&T.push(...M),m(T.length?T:null)})}}let v;if(h.asyncValidator)v=h.asyncValidator(h,d.value,p,d.source,s);else if(h.validator){try{v=h.validator(h,d.value,p,d.source,s)}catch(y){(S=console.error)==null||S.call(console,y),s.suppressValidatorError||setTimeout(()=>{throw y},0),p(y.message)}v===!0?p():v===!1?p(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||`${h.fullField||h.field} fails`):v instanceof Array?p(v):v instanceof Error&&p(v.message)}v&&v.then&&v.then(()=>p(),y=>p(y))},d=>{a(d)},o)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Kn.hasOwnProperty(t.type))throw new Error(Ve("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Kn.required:Kn[this.getType(t)]||void 0}};w(Ft,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kn[n]=r}),w(Ft,"warning",Ub),w(Ft,"messages",Jo),w(Ft,"validators",Kn);let mi=Ft;const Ie="'${name}' is not a valid ${type}",bf={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:Ie,method:Ie,array:Ie,object:Ie,number:Ie,date:Ie,boolean:Ie,integer:Ie,float:Ie,regexp:Ie,email:Ie,tel:Ie,url:Ie,hex:Ie},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}"}},al=mi;function S1(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const cl="CODE_LOGIC_ERROR";async function hi(e,t,n,r,o){const s={...n};if(delete s.ruleIndex,al.warning=()=>{},s.validator){const m=s.validator;s.validator=(...h)=>{try{return m(...h)}catch(b){return console.error(b),Promise.reject(cl)}}}let i=null;s&&s.type==="array"&&s.defaultField&&(i=s.defaultField,delete s.defaultField);const a=new al({[e]:[s]}),l=Yn(bf,r.validateMessages);a.messages(l);let c=[];try{await Promise.resolve(a.validate({[e]:t},{...r}))}catch(m){m.errors&&(c=m.errors.map(({message:h},b)=>{const g=h===cl?l.default:h;return u.isValidElement(g)?u.cloneElement(g,{key:`error_${b}`}):g}))}if(!c.length&&i&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((h,b)=>hi(`${e}.${b}`,h,i,r,o)))).reduce((h,b)=>[...h,...b],[]);const f={...n,name:e,enum:(n.enum||[]).join(", "),...o};return c.map(m=>typeof m=="string"?S1(m,f):m)}function $1(e,t,n,r,o,s){const i=e.join("."),a=n.map((c,f)=>{const d=c.validator,m={...c,ruleIndex:f};return d&&(m.validator=(h,b,g)=>{let p=!1;const S=d(h,b,(...y)=>{Promise.resolve().then(()=>{De(!p,"Your validator function has already return a promise. `callback` will be ignored."),p||g(...y)})});p=S&&typeof S.then=="function"&&typeof S.catch=="function",De(p,"`callback` is deprecated. Please return a promise instead."),p&&S.then(()=>{g()}).catch(y=>{g(y||" ")})}),m}).sort(({warningOnly:c,ruleIndex:f},{warningOnly:d,ruleIndex:m})=>!!c==!!d?f-m:c?1:-1);let l;if(o===!0)l=new Promise(async(c,f)=>{for(let d=0;d<a.length;d+=1){const m=a[d],h=await hi(i,t,m,r,s);if(h.length){f([{errors:h,rule:m}]);return}}c([])});else{const c=a.map(f=>hi(i,t,f,r,s).then(d=>({errors:d,rule:f})));l=(o?E1(c):x1(c)).then(f=>Promise.reject(f))}return l.catch(c=>c),l}async function x1(e){return Promise.all(e).then(t=>[].concat(...t))}async function E1(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})}function he(e){return ui(e)}function ll(e,t){let n={};return t.forEach(r=>{const o=Ge(e,r);n=Be(n,r,o)}),n}function Tn(e,t,n=!1){return e&&e.some(r=>no(t,r,n))}function no(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,o)=>e[o]===r)}function C1(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const i=e[s],a=t[s];return typeof i=="function"&&typeof a=="function"?!0:i===a})}function w1(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function ul(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],s=t-n;return s>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}const vf=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class P1{constructor(t){w(this,"namePathList",[]);w(this,"taskId",0);w(this,"watcherList",new Set);w(this,"form");this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!no(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;vf(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),o=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,o,this.namePathList)}),this.namePathList=[]}})}}async function R1(){return new Promise(e=>{vf(()=>{Yr(()=>{e()})})})}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}const Ut=[],Gn=[];function ts(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}class Sf extends u.PureComponent{constructor(n){super(n);w(this,"state",{resetCount:0});w(this,"cancelRegisterFunc",null);w(this,"mounted",!1);w(this,"touched",!1);w(this,"dirty",!1);w(this,"validatePromise");w(this,"prevValidating");w(this,"errors",Ut);w(this,"warnings",Gn);w(this,"cancelRegister",()=>{const{preserve:n,isListField:r,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,he(o)),this.cancelRegisterFunc=null});w(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:o=[]}=r;return n!==void 0?[...o,...n]:[]});w(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(o=>typeof o=="function"?o(r):o)});w(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});w(this,"metaCache",null);w(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const o={...this.getMeta(),destroy:n};Aa(this.metaCache,o)||r(o),this.metaCache=o}else this.metaCache=null});w(this,"onStoreChange",(n,r,o)=>{const{shouldUpdate:s,dependencies:i=[],onReset:a}=this.props,{store:l}=o,c=this.getNamePath(),f=this.getValue(n),d=this.getValue(l),m=r&&Tn(r,c);switch(o.type==="valueUpdate"&&o.source==="external"&&!Aa(f,d)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ut,this.warnings=Gn,this.triggerMetaEvent()),o.type){case"reset":if(!r||m){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ut,this.warnings=Gn,this.triggerMetaEvent(),a==null||a(),this.refresh();return}break;case"remove":{if(s&&ts(s,n,l,f,d,o)){this.reRender();return}break}case"setField":{const{data:h}=o;if(m){"touched"in h&&(this.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(this.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(this.errors=h.errors||Ut),"warnings"in h&&(this.warnings=h.warnings||Gn),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in h&&Tn(r,c,!0)){this.reRender();return}if(s&&!c.length&&ts(s,n,l,f,d,o)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(he).some(b=>Tn(o.relatedFields,b))){this.reRender();return}break}default:if(m||(!i.length||c.length||s)&&ts(s,n,l,f,d,o)){this.reRender();return}break}s===!0&&this.reRender()});w(this,"validateRules",n=>{const r=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:i=!1,delayFrame:a}=n||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:c=!1,messageVariables:f,validateDebounce:d}=this.props;a&&await R1();let m=this.getRules();if(s&&(m=m.filter(b=>b).filter(b=>{const{validateTrigger:g}=b;return g?ui(g).includes(s):!0})),d&&s&&(await new Promise(b=>{setTimeout(b,d)}),this.validatePromise!==l))return[];const h=$1(r,o,m,n,c,f);return h.catch(b=>b).then((b=Ut)=>{var g;if(this.validatePromise===l){this.validatePromise=null;const p=[],v=[];(g=b.forEach)==null||g.call(b,({rule:{warningOnly:S},errors:y=Ut})=>{S?v.push(...y):p.push(...y)}),this.errors=p,this.warnings=v,this.triggerMetaEvent(),this.reRender()}}),h});return i||(this.validatePromise=l,this.dirty=!0,this.errors=Ut,this.warnings=Gn,this.triggerMetaEvent(),this.reRender()),l});w(this,"isFieldValidating",()=>!!this.validatePromise);w(this,"isFieldTouched",()=>this.touched);w(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(tn);return r(this.getNamePath())!==void 0});w(this,"getErrors",()=>this.errors);w(this,"getWarnings",()=>this.warnings);w(this,"isListField",()=>this.props.isListField);w(this,"isList",()=>this.props.isList);w(this,"isPreserve",()=>this.props.preserve);w(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));w(this,"getOnlyChild",n=>{if(typeof n=="function"){const o=this.getMeta();return{...this.getOnlyChild(n(this.getControlled(),o,this.props.fieldContext)),isFunction:!0}}const r=rr(n);return r.length!==1||!u.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});w(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,o=this.getNamePath();return Ge(n||r(!0),o)});w(this,"getControlled",(n={})=>{const{name:r,trigger:o="onChange",validateTrigger:s,getValueFromEvent:i,normalize:a,valuePropName:l="value",getValueProps:c,fieldContext:f}=this.props,d=s!==void 0?s:f.validateTrigger,m=this.getNamePath(),{getInternalHooks:h,getFieldsValue:b}=f,{dispatch:g}=h(tn),p=this.getValue(),v=c||(C=>({[l]:C})),S=n[o],y=r!==void 0?v(p):{},x={...n,...y};return x[o]=(...C)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();const E=this.getValue();let R;i?R=i(...C):R=w1(l,...C),a&&(R=a(R,E,b(!0))),R!==E&&g({type:"updateValue",namePath:m,value:R}),S&&S(...C)},ui(d||[]).forEach(C=>{const E=x[C];x[C]=(...R)=>{E&&E(...R);const{rules:M}=this.props;M&&M.length&&g({type:"validateField",namePath:m,triggerName:C})}}),x});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:o}=r(tn);o(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:o}=r,{registerField:s}=o(tn);this.cancelRegisterFunc=s(this)}n===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:n}=this.state,{children:r}=this.props,{child:o,isFunction:s}=this.getOnlyChild(r);let i;return s?i=o:u.isValidElement(o)?i=u.cloneElement(o,this.getControlled(o.props)):(De(!o,"`children` of Field is not validate ReactElement."),i=o),u.createElement(u.Fragment,{key:n},i)}}w(Sf,"contextType",Nn);function $f({name:e,...t}){const n=u.useContext(Nn),r=u.useContext(to),o=e!==void 0?he(e):void 0,s=t.isListField??!!r;let i="keep";return s||(i=`_${(o||[]).join("_")}`),u.createElement(Sf,pi({key:i,name:o,isListField:s},t,{fieldContext:n}))}function M1({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:s}){const i=u.useContext(Nn),a=u.useContext(to),c=u.useRef({keys:[],id:0}).current,f=u.useMemo(()=>[...he(i.prefixName)||[],...he(e)],[i.prefixName,e]),d=u.useMemo(()=>({...i,prefixName:f}),[i,f]),m=u.useMemo(()=>({getKey:b=>{const g=f.length,p=b[g];return[c.keys[p],b.slice(g+1)]}}),[c,f]);if(typeof n!="function")return De(!1,"Form.List only accepts function as children."),null;const h=(b,g,{source:p})=>p==="internal"?!1:b!==g;return u.createElement(to.Provider,{value:m},u.createElement(Nn.Provider,{value:d},u.createElement($f,{name:[],shouldUpdate:h,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:s??!!a},({value:b=[],onChange:g},p)=>{const{getFieldValue:v}=i,S=()=>v(f||[])||[],y={add:($,C)=>{const E=S();C>=0&&C<=E.length?(c.keys=[...c.keys.slice(0,C),c.id,...c.keys.slice(C)],g([...E.slice(0,C),$,...E.slice(C)])):(c.keys=[...c.keys,c.id],g([...E,$])),c.id+=1},remove:$=>{const C=S(),E=new Set(Array.isArray($)?$:[$]);E.size<=0||(c.keys=c.keys.filter((R,M)=>!E.has(M)),g(C.filter((R,M)=>!E.has(M))))},move($,C){if($===C)return;const E=S();$<0||$>=E.length||C<0||C>=E.length||(c.keys=ul(c.keys,$,C),g(ul(E,$,C)))}};let x=b||[];return Array.isArray(x)||(x=[]),n(x.map(($,C)=>{let E=c.keys[C];return E===void 0&&(c.keys[C]=c.id,E=c.keys[C],c.id+=1),{name:C,key:E,isListField:!0}}),y,p)})))}function T1(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,s)=>{e.forEach((i,a)=>{i.catch(l=>(t=!0,l)).then(l=>{n-=1,r[a]=l,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}const gi="__@field_split__";function zr(e){return e.map(t=>`${typeof t}:${t}`).join(gi)}class Cn{constructor(){w(this,"kvs",new Map)}set(t,n){this.kvs.set(zr(t),n)}get(t){return this.kvs.get(zr(t))}getAsPrefix(t){const n=zr(t),r=n+gi,o=[],s=this.kvs.get(n);return s!==void 0&&o.push(s),this.kvs.forEach((i,a)=>{a.startsWith(r)&&o.push(i)}),o}update(t,n){const r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}delete(t){this.kvs.delete(zr(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const o=n.split(gi);return t({key:o.map(s=>{const[,i,a]=s.match(/^([^:]*):(.*)$/);return i==="number"?Number(a):a}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}class A1{constructor(t){w(this,"formHooked",!1);w(this,"forceRootUpdate");w(this,"subscribable",!0);w(this,"store",{});w(this,"fieldEntities",[]);w(this,"initialValues",{});w(this,"callbacks",{});w(this,"validateMessages",null);w(this,"preserve",null);w(this,"lastValidatePromise",null);w(this,"watcherCenter",new P1(this));w(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));w(this,"getInternalHooks",t=>t===tn?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(De(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));w(this,"useSubscribe",t=>{this.subscribable=t});w(this,"prevWithoutPreserves",null);w(this,"setInitialValues",(t,n)=>{var r;if(this.initialValues=t||{},n){let o=Yn(t,this.store);(r=this.prevWithoutPreserves)==null||r.map(({key:s})=>{o=Be(o,s,Ge(t,s))}),this.prevWithoutPreserves=null,this.updateStore(o)}});w(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new Cn;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});w(this,"getInitialValue",t=>{const n=Ge(this.initialValues,t);return t.length?Yn(n):n});w(this,"setCallbacks",t=>{this.callbacks=t});w(this,"setValidateMessages",t=>{this.validateMessages=t});w(this,"setPreserve",t=>{this.preserve=t});w(this,"registerWatch",t=>this.watcherCenter.register(t));w(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});w(this,"timeoutId",null);w(this,"warningUnhooked",()=>{});w(this,"updateStore",t=>{this.store=t});w(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);w(this,"getFieldsMap",(t=!1)=>{const n=new Cn;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r)}),n});w(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(o=>{const s=he(o),i=r.getAsPrefix(s);return i.length?i:[{INVALIDATE_NAME_PATH:s}]}):t.map(o=>{const s=he(o);return r.get(s)||{INVALIDATE_NAME_PATH:he(o)}})});w(this,"getFieldsValue",(t,n)=>{this.warningUnhooked();let r,o;if(t===!0||Array.isArray(t)?(r=t,o=n):t&&typeof t=="object"&&(o=t.filter),r===!0&&!o)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),i=[],a=[];s.forEach(c=>{var d;const f=c.INVALIDATE_NAME_PATH||c.getNamePath();if((d=c.isList)!=null&&d.call(c)){a.push(f);return}if(!o)i.push(f);else{const m="getMeta"in c?c.getMeta():null;o(m)&&i.push(f)}});let l=ll(this.store,i.map(he));return a.forEach(c=>{Ge(l,c)||(l=Be(l,c,[]))}),l});w(this,"getFieldValue",t=>{this.warningUnhooked();const n=he(t);return Ge(this.store,n)});w(this,"getFieldsError",t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,o)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:he(t[o]),errors:[],warnings:[]})));w(this,"getFieldError",t=>{this.warningUnhooked();const n=he(t);return this.getFieldsError([n])[0].errors});w(this,"getFieldWarning",t=>{this.warningUnhooked();const n=he(t);return this.getFieldsError([n])[0].warnings});w(this,"isFieldsTouched",(...t)=>{this.warningUnhooked();const[n,r]=t;let o,s=!1;t.length===0?o=null:t.length===1?Array.isArray(n)?(o=n.map(he),s=!1):(o=null,s=n):(o=n.map(he),s=r);const i=this.getFieldEntities(!0),a=d=>d.isFieldTouched();if(!o)return s?i.every(d=>a(d)||d.isList()):i.some(a);const l=new Cn;o.forEach(d=>{l.set(d,[])}),i.forEach(d=>{const m=d.getNamePath();o.forEach(h=>{h.every((b,g)=>m[g]===b)&&l.update(h,b=>[...b,d])})});const c=d=>d.some(a),f=l.map(({value:d})=>d);return s?f.every(c):f.some(c)});w(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));w(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(he);return n.some(o=>{const s=o.getNamePath();return Tn(r,s)&&o.isFieldValidating()})});w(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));w(this,"resetWithFieldInitialValue",(t={})=>{const n=new Cn,r=this.getFieldEntities(!0);r.forEach(i=>{const{initialValue:a}=i.props,l=i.getNamePath();if(a!==void 0){const c=n.get(l)||new Set;c.add({entity:i,value:a}),n.set(l,c)}});const o=i=>{i.forEach(a=>{const{initialValue:l}=a.props;if(l!==void 0){const c=a.getNamePath();if(this.getInitialValue(c)!==void 0)De(!1,`Form already set 'initialValues' with path '${c.join(".")}'. Field can not overwrite it.`);else{const d=n.get(c);if(d&&d.size>1)De(!1,`Multiple Field with path '${c.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(d){const m=this.getFieldValue(c);!a.isListField()&&(!t.skipExist||m===void 0)&&this.updateStore(Be(this.store,c,[...d][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(i=>{const a=n.get(i);a&&s.push(...[...a].map(l=>l.entity))})):s=r,o(s)});w(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(Yn(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(he);r.forEach(o=>{const s=this.getInitialValue(o);this.updateStore(Be(this.store,o,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});w(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:s,...i}=o,a=he(s);r.push(a),"value"in i&&this.updateStore(Be(this.store,a,i.value)),this.notifyObservers(n,[a],{type:"setField",data:o})}),this.notifyWatch(r)});w(this,"getFields",()=>this.getFieldEntities(!0).map(r=>{const o=r.getNamePath(),i={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(i,"originRCField",{value:!0}),i}));w(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Ge(this.store,r)===void 0&&this.updateStore(Be(this.store,r,n))}});w(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);w(this,"registerField",t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,o,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(i=>i!==t),!this.isMergedPreserve(o)&&(!r||s.length>1)){const i=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==i&&this.fieldEntities.every(a=>!no(a.getNamePath(),n))){const a=this.store;this.updateStore(Be(a,n,i,!0)),this.notifyObservers(a,[n],{type:"remove"}),this.triggerDependenciesUpdate(a,n)}}this.notifyWatch([n])}});w(this,"dispatch",t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}});w(this,"notifyObservers",(t,n,r)=>{if(this.subscribable){const o={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,o)})}else this.forceRootUpdate()});w(this,"triggerDependenciesUpdate",(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r});w(this,"updateValue",(t,n)=>{const r=he(t),o=this.store;this.updateStore(Be(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(o,r),{onValuesChange:i}=this.callbacks;if(i){const a=ll(this.store,[r]),l=this.getFieldsValue(),c=Be(l,r,Ge(a,r));i(a,c)}this.triggerOnFieldsChange([r,...s])});w(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=Yn(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});w(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});w(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],o=new Cn;this.getFieldEntities().forEach(i=>{const{dependencies:a}=i.props;(a||[]).forEach(l=>{const c=he(l);o.update(c,(f=new Set)=>(f.add(i),f))})});const s=i=>{(o.get(i)||new Set).forEach(l=>{if(!n.has(l)){n.add(l);const c=l.getNamePath();l.isFieldDirty()&&c.length&&(r.push(c),s(c))}})};return s(t),r});w(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const i=new Cn;n.forEach(({name:a,errors:l})=>{i.set(a,l)}),o.forEach(a=>{a.errors=i.get(a.name)||a.errors})}const s=o.filter(({name:i})=>Tn(t,i));s.length&&r(s,o)}});w(this,"validateFields",(t,n)=>{this.warningUnhooked();let r,o;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,o=n):o=t;const s=!!r,i=s?r.map(he):[],a=[...i],l=[],c=String(Date.now()),f=new Set,{recursive:d,dirty:m}=o||{};this.getFieldEntities(!0).forEach(p=>{const v=p.getNamePath();if(s||((!p.isList()||!i.some(S=>no(S,v,!0)))&&a.push(v),i.push(v)),!(!p.props.rules||!p.props.rules.length)&&!(m&&!p.isFieldDirty())&&(f.add(v.join(c)),!s||Tn(i,v,d))){const S=p.validateRules({validateMessages:{...bf,...this.validateMessages},...o});l.push(S.then(()=>({name:v,errors:[],warnings:[]})).catch(y=>{var C;const x=[],$=[];return(C=y.forEach)==null||C.call(y,({rule:{warningOnly:E},errors:R})=>{E?$.push(...R):x.push(...R)}),x.length?Promise.reject({name:v,errors:x,warnings:$}):{name:v,errors:x,warnings:$}}))}});const h=T1(l);this.lastValidatePromise=h,h.catch(p=>p).then(p=>{const v=p.map(({name:S})=>S);this.notifyObservers(this.store,v,{type:"validateFinish"}),this.triggerOnFieldsChange(v,p)});const b=h.then(()=>this.lastValidatePromise===h?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(p=>{var y,x;const v=p.filter($=>$&&$.errors.length),S=(x=(y=v[0])==null?void 0:y.errors)==null?void 0:x[0];return Promise.reject({message:S,values:this.getFieldsValue(i),errorFields:v,outOfDate:this.lastValidatePromise!==h})});b.catch(p=>p);const g=i.filter(p=>f.has(p.join(c)));return this.triggerOnFieldsChange(g),b});w(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})});this.forceRootUpdate=t}}function xf(e){const t=u.useRef(null),[,n]=u.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},o=new A1(r);t.current=o.getForm()}return[t.current]}const yi=u.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Ef=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=u.useContext(yi),s=u.useRef({});return u.createElement(yi.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(i,a)=>{t&&t(i,{changedFields:a,forms:s.current}),o.triggerFormChange(i,a)},triggerFormFinish:(i,a)=>{n&&n(i,{values:a,forms:s.current}),o.triggerFormFinish(i,a)},registerForm:(i,a)=>{i&&(s.current={...s.current,[i]:a}),o.registerForm(i,a)},unregisterForm:i=>{const a={...s.current};delete a[i],s.current=a,o.unregisterForm(i)}}},r)};function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(this,arguments)}const F1=(e,t)=>{const{name:n,initialValues:r,fields:o,form:s,preserve:i,children:a,component:l="form",validateMessages:c,validateTrigger:f="onChange",onValuesChange:d,onFieldsChange:m,onFinish:h,onFinishFailed:b,clearOnDestroy:g,...p}=e,v=u.useRef(null),S=u.useContext(yi),[y]=xf(s),{useSubscribe:x,setInitialValues:$,setCallbacks:C,setValidateMessages:E,setPreserve:R,destroyForm:M}=y.getInternalHooks(tn);u.useImperativeHandle(t,()=>({...y,nativeElement:v.current})),u.useEffect(()=>(S.registerForm(n,y),()=>{S.unregisterForm(n)}),[S,y,n]),E({...S.validateMessages,...c}),C({onValuesChange:d,onFieldsChange:(L,...N)=>{S.triggerFormChange(n,L),m&&m(L,...N)},onFinish:L=>{S.triggerFormFinish(n,L),h&&h(L)},onFinishFailed:b}),R(i);const T=u.useRef(null);$(r,!T.current),T.current||(T.current=!0),u.useEffect(()=>()=>M(g),[]);let P;const F=typeof a=="function";if(F){const L=y.getFieldsValue(!0);P=a(L,y)}else P=a;x(!F);const O=u.useRef(null);u.useEffect(()=>{C1(O.current||[],o||[])||y.setFields(o||[]),O.current=o},[o,y]);const _=u.useMemo(()=>({...y,validateTrigger:f}),[y,f]),j=u.createElement(to.Provider,{value:null},u.createElement(Nn.Provider,{value:_},P));return l===!1?j:u.createElement(l,bi({},p,{ref:v,onSubmit:L=>{L.preventDefault(),L.stopPropagation(),y.submit()},onReset:L=>{var N;L.preventDefault(),y.resetFields(),(N=p.onReset)==null||N.call(p,L)}}),j)};function ns(e){try{return JSON.stringify(e)}catch{return Math.random()}}function I1(...e){const[t,n={}]=e,r=Wb(n)?{form:n}:n,o=r.form,[s,i]=u.useState(()=>typeof t=="function"?t({}):void 0),a=u.useMemo(()=>ns(s),[s]),l=u.useRef(a);l.current=a;const c=u.useContext(Nn),f=o||c,d=f&&f._init,{getFieldsValue:m,getInternalHooks:h}=f,{registerWatch:b}=h(tn),g=An((v,S)=>{const y=r.preserve?S??m(!0):v??m(),x=typeof t=="function"?t(y):Ge(y,he(t));ns(s)!==ns(x)&&i(x)}),p=typeof t=="function"?t:JSON.stringify(t);return u.useEffect(()=>{d&&g()},[d,p]),u.useEffect(()=>d?b((S,y)=>{g(S,y)}):void 0,[d]),s}const O1=u.forwardRef(F1),yr=O1;yr.FormProvider=Ef;yr.Field=$f;yr.List=M1;yr.useForm=xf;yr.useWatch=I1;const Zv=u.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),Jv=u.createContext(null),eS=e=>{const t=wi(e,["prefixCls"]);return u.createElement(Ef,{...t})},tS=u.createContext({prefixCls:""}),fl=u.createContext({}),L1=({children:e,status:t,override:n})=>{const r=u.useContext(fl),o=u.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return u.createElement(fl.Provider,{value:o},e)},nS=u.createContext(void 0),rS=e=>{const{space:t,form:n,children:r}=e;if(!pr(r))return null;let o=r;return n&&(o=A.createElement(L1,{override:!0,status:!0},o)),t&&(o=A.createElement(my,null,o)),o},oS=()=>Si()&&window.document.documentElement;function N1(e){return t=>u.createElement(kn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,{...t}))}const sS=(e,t,n,r,o)=>N1(i=>{const{prefixCls:a,style:l}=i,c=u.useRef(null),[f,d]=u.useState(0),[m,h]=u.useState(0),[b,g]=Bf(!1,i.open),{getPrefixCls:p}=u.useContext(Pe),v=p(r||"select",a);u.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(C=>{const E=C[0].target;d(E.offsetHeight+8),h(E.offsetWidth)}),$=setInterval(()=>{var R;const C=o?`.${o(v)}`:`.${v}-dropdown`,E=(R=c.current)==null?void 0:R.querySelector(C);E&&(clearInterval($),x.observe(E))},10);return()=>{clearInterval($),x.disconnect()}}},[v]);let S={...i,style:{...l,margin:0},open:b,getPopupContainer:()=>c.current};n&&(S=n(S)),t&&(S={...S,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:f,position:"relative",minWidth:m};return u.createElement("div",{ref:c,style:y},u.createElement(e,{...S}))});function iS(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}const aS=(e,t,n)=>B({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),cS=(e,t)=>t||e,nn=(e,t)=>e!=null&&e.startsWith("var(")||t!=null&&t.startsWith("var(")?e:new ye(e).onBackground(t).toHexString(),_1=()=>{const[,e]=xt(),[t]=go("Empty"),{colorBgContainer:n,colorFill:r,colorFillSecondary:o,colorFillTertiary:s,colorTextQuaternary:i}=e,{panelBgColor:a,borderColor:l,detailColor:c,shadowColor:f,iconColor:d}=u.useMemo(()=>({panelBgColor:nn(s,n),borderColor:nn(i,n),detailColor:nn(r,n),shadowColor:nn(o,n),iconColor:n}),[n,r,o,s,i]);return u.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.7)"},u.createElement("ellipse",{fillOpacity:".8",fill:f,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),u.createElement("path",{fill:l,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),u.createElement("path",{fill:a,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),u.createElement("path",{fill:c,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),u.createElement("path",{fill:c,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),u.createElement("g",{fill:d,transform:"translate(149.7 15.4)"},u.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),u.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},k1=()=>{const[,e]=xt(),[t]=go("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:i,shadowColor:a,contentColor:l}=u.useMemo(()=>({borderColor:nn(n,s),shadowColor:nn(r,s),contentColor:nn(o,s)}),[n,r,o,s]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:i},u.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),u.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:l}))))},H1=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:i,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}}}}},B1=ho("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ht(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return H1(o)}),Cf=u.createElement(_1,null),wf=u.createElement(k1,null),Jt=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:s,children:i,imageStyle:a,style:l,classNames:c,styles:f,...d}=e,{getPrefixCls:m,direction:h,className:b,style:g,classNames:p,styles:v,image:S}=Ii("empty"),y=m("empty",r),[x,$]=B1(y),C=In(g),E=In(l),[R,M]=Gi([p,c],[v,C,f,E],{props:e}),[T]=go("Empty"),P=typeof s<"u"?s:T==null?void 0:T.description,F=typeof P=="string"?P:"empty",O=o??S??Cf;let _=null;return typeof O=="string"?_=u.createElement("img",{draggable:!1,alt:F,src:O}):_=O,u.createElement("div",{className:B(x,$,y,b,{[`${y}-normal`]:O===wf,[`${y}-rtl`]:h==="rtl"},t,n,R.root),style:M.root,...d},u.createElement("div",{className:B(`${y}-image`,R.image),style:{...a,...M.image}},_),P&&u.createElement("div",{className:B(`${y}-description`,R.description),style:M.description},P),i&&u.createElement("div",{className:B(`${y}-footer`,R.footer),style:M.footer},i))};Jt.PRESENTED_IMAGE_DEFAULT=Cf;Jt.PRESENTED_IMAGE_SIMPLE=wf;const lS=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(Pe),r=n("empty");switch(t){case"Table":case"List":return A.createElement(Jt,{image:Jt.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return A.createElement(Jt,{image:Jt.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return A.createElement(Jt,null)}},oa=["xxxl","xxl","xl","lg","md","sm","xs"],uS=[].concat(oa).reverse(),z1=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),V1=e=>{const t=e,n=[].concat(oa).reverse();return n.forEach((r,o)=>{const s=r.toUpperCase(),i=`screen${s}Min`,a=`screen${s}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const l=`screen${s}Max`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);const f=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[f]))throw new Error(`${l}<=${f} fails : !(${t[l]}<=${t[f]})`)}}),e},fS=(e,t)=>{if(t){for(const n of oa)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},dS=()=>{const[,e]=xt(),t=z1(V1(e));return A.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return o=s,n.forEach(i=>{i(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.entries(t).forEach(([s,i])=>{const a=({matches:c})=>{this.dispatch({...o,[s]:c})},l=window.matchMedia(i);je(l.addEventListener)&&l.addEventListener("change",a),this.matchHandlers[i]={mql:l,listener:a},a(l)})},unregister(){Object.values(t).forEach(s=>{const i=this.matchHandlers[s];je(i==null?void 0:i.mql.removeEventListener)&&i.mql.removeEventListener("change",i==null?void 0:i.listener)}),n.clear()}}},[t])},mS=e=>pr(e)?je(e)?e():e:null;function hS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,i=o,a=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-c,m=f,h=2*o-a,b=l,g=2*o-s,p=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(Math.sqrt(2)-1),y=`polygon(${S}px 100%, 50% ${S}px, ${2*o-S}px 100%, ${S}px 100%)`,x=`path('M ${s} ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${f} A ${n} ${n} 0 0 1 ${d} ${m} L ${h} ${b} A ${r} ${r} 0 0 0 ${g} ${p} Z')`;return{arrowShadowWidth:v,arrowPath:x,arrowPolygon:y}}const D1=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:i,borderRadiusXS:a,calc:l}=e,c={content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${U(a)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(c.boxShadow=n),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":c}},j1=8;function W1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?j1:r}}const pS=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:i,antCls:a}=e,[l]=hr(a,"tooltip"),{arrowDistance:c=0,arrowShadow:f=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...D1(e,t,f?o:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[l("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{[l("arrow-offset-x")]:`calc(100% - ${U(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[l("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{[l("arrow-offset-x")]:`calc(100% - ${U(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},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},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},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 q1(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=ze(r)?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 i={...s,...o};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const dl={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"]}},U1={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"]}},X1=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function gS(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:i}=e,a=t/2,l={},c=W1({contentRadius:s,limitVerticalRadius:!0});return Object.keys(dl).forEach(f=>{const m={...r&&U1[f]||dl[f],offset:[0,0],dynamicInset:!0};switch(l[f]=m,X1.has(f)&&(m.autoArrow=!1),f){case"top":case"topLeft":case"topRight":m.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=a+o;break}if(r)switch(f){case"topLeft":case"bottomLeft":m.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":m.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":m.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":m.offset[1]=c.arrowOffsetHorizontal*2-a;break}m.overflow=q1(f,c,t,n),i&&(m.htmlRegion="visibleFirst")}),l}const K1=$t.map(e=>`${e}-inverse`),G1=["success","processing","error","default","warning"];function yS(e,t=!0){return t?[].concat(sn(K1),sn($t)).includes(e):$t.includes(e)}function bS(e){return G1.includes(e)}function vS(e){return["small","middle","medium","large"].includes(e)}function SS(e){return e?gr(e):!1}const $S=(e,t)=>pr(e)?ze(e)&&!u.isValidElement(e)?{...t,...e}:{...t,title:e}:null,xS=(e,t={})=>!_t(e)&&(t!=null&&t.skipEmpty)?[]:Array.isArray(e)?e:[e];function ES(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ke=(e,t)=>new ye(e).setA(t).toRgbString(),Xt=(e,t)=>new ye(e).lighten(t).toHexString(),ml=e=>{const t=fo(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Y1=(e,t,n)=>{const r=e||"#000",o=t||"#fff";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:Ke(o,.85),colorTextSecondary:Ke(o,.65),colorTextTertiary:Ke(o,.45),colorTextQuaternary:Ke(o,.25),colorFill:Ke(o,.18),colorFillSecondary:Ke(o,.12),colorFillTertiary:Ke(o,.08),colorFillQuaternary:Ke(o,.04),colorBgSolid:Ke(o,.95),colorBgSolidHover:Ke(o,1),colorBgSolidActive:Ke(o,.9),colorBgElevated:Xt(r,12),colorBgContainer:Xt(r,8),colorBgLayout:Xt(r,0),colorBgSpotlight:Xt(r,26),colorBgBlur:Ke(o,.04),colorBorder:Xt(r,26),colorBorderDisabled:Xt(r,26),colorBorderSecondary:Xt(r,19)}},Q1=(e,t)=>{const n=Object.keys(Bi).map(i=>{const a=fo(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,f)=>(l[`${i}-${f+1}`]=a[f],l[`${i}${f+1}`]=a[f],l),{})}).reduce((i,a)=>(i={...i,...a},i),{}),r=t??zi(e),o=uu(e,{generateColorPalettes:ml,generateNeutralColorPalettes:Y1}),s=$t.reduce((i,a)=>{const l=e[a];if(l){const c=ml(l);i[`${a}Hover`]=c[7],i[`${a}Active`]=c[5]}return i},{});return{...r,...n,...o,...s,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}},CS={defaultSeed:Zr.token,defaultAlgorithm:zi,darkAlgorithm:Q1},Z1=(e,t)=>{let n=!1;const r=o=>{var s,i,a;o.stopPropagation(),o.preventDefault(),(s=o.clipboardData)==null||s.clearData(),(i=o.clipboardData)==null||i.setData("text/plain",e),t&&((a=o.clipboardData)==null||a.setData("text/html",e)),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},J1=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function wS(e,t){if(typeof e!="string")return!1;const n=(t==null?void 0:t.format)==="text/html";return!!(await J1(e,n)||Z1(e,n))}export{dy as $,Od as A,rr as B,af as C,Pe as D,bv as E,Sv as F,Ny as G,Oy as H,Ly as I,Iy as J,Ta as K,Xh as L,qv as M,Wv as N,Vi as O,Nb as P,po as Q,zl as R,W0 as S,bp as T,j0 as U,nS as V,Su as W,rS as X,Ii as Y,xt as Z,Nt as _,Pn as a,vS as a$,fl as a0,lS as a1,iS as a2,wi as a3,ea as a4,Jr as a5,In as a6,Gi as a7,aS as a8,zv as a9,ln as aA,pr as aB,_t as aC,on as aD,gr as aE,Aa as aF,Ol as aG,nr as aH,rv as aI,Kf as aJ,Gf as aK,Gh as aL,Sy as aM,$v as aN,ye as aO,kf as aP,ny as aQ,By as aR,ky as aS,Hy as aT,_y as aU,mo as aV,wv as aW,cb as aX,uS as aY,oa as aZ,G0 as a_,Vv as aa,Rv as ab,cS as ac,sS as ad,K0 as ae,dS as af,hl as ag,Xv as ah,Ev as ai,j1 as aj,jv as ak,pS as al,hS as am,W1 as an,yS as ao,Yv as ap,Bf as aq,gS as ar,je as as,a0 as at,ur as au,Q0 as av,xd as aw,f0 as ax,Q as ay,ze as az,qd as b,Qr as b$,Dv as b0,SS as b1,ra as b2,sv as b3,Fv as b4,Jh as b5,go as b6,ag as b7,ya as b8,sn as b9,Qv as bA,Dd as bB,Ud as bC,kd as bD,fv as bE,Xd as bF,gy as bG,d0 as bH,Mv as bI,Lv as bJ,oS as bK,Wc as bL,bd as bM,cn as bN,_v as bO,cv as bP,D1 as bQ,ru as bR,uo as bS,lo as bT,mt as bU,yv as bV,uv as bW,vc as bX,gd as bY,N1 as bZ,vt as b_,xv as ba,Cs as bb,av as bc,wS as bd,xS as be,iv as bf,Ei as bg,Jt as bh,CS as bi,kn as bj,Vy as bk,Uv as bl,ly as bm,Av as bn,Bv as bo,bc as bp,yd as bq,Tv as br,Cb as bs,ci as bt,dd as bu,bS as bv,ES as bw,Ov as bx,Iv as by,c0 as bz,kt as c,gh as c0,su as c1,ph as c2,$t as c3,mS as c4,uf as c5,nv as c6,lv as c7,Ge as c8,Nd as c9,$f as cA,vl as cB,M1 as cC,I1 as cD,pv as cE,X0 as cF,fS as cG,Gv as cH,Ho as cI,it as cJ,mv as ca,Nv as cb,Hv as cc,rd as cd,kv as ce,Pv as cf,xf as cg,ov as ch,Dy as ci,tS as cj,Zv as ck,Cv as cl,ig as cm,Ln as cn,eS as co,L1 as cp,yr as cq,os as cr,wo as cs,$S as ct,Yf as cu,Jv as cv,Nn as cw,$d as cx,to as cy,Hf as cz,An as d,Rl as e,_d as f,hv as g,ho as h,U as i,hr as j,B as k,wl as l,Ht as m,va as n,Qd as o,dv as p,Cl as q,Mi as r,Pl as s,jd as t,Tl as u,dm as v,De as w,Yr as x,cm as y,gv as z};