var nf=Object.defineProperty;var rf=(e,t,n)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>rf(e,typeof t!="symbol"?t+"":t,n);import{q as l,R as of,l as sf,b as A,i as af,r as cf}from"./vendor-react-DQR3_HYc.js";const we=e=>{const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function ve(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ca=ve()?l.useLayoutEffect:l.useEffect,$t=(e,t)=>{const n=l.useRef(!0);ca(()=>e(n.current),t),ca(()=>(n.current=!1,()=>{n.current=!0}),[])},db=(e,t)=>{$t(n=>{if(!n)return e()},t)},co=e=>{const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function Wc(e,t){const[n,r]=l.useState(e),o=t!==void 0?t:n;return $t(s=>{s||r(t)},[t]),[o,r]}function lf(){return{...of}.useId}let la=0;function mb(e,t){const r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}const ua=lf(),qc=ua?function(t){const n=ua();return t||n}:function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const o=la;la+=1,r(`rc_unique_${o}`)},[]),t||n};function $i(e,t,n){const r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ci(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=we(()=>n.current),o=we(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}var Uc={exports:{}},ne={};/**
* @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 Ei=Symbol.for("react.element"),wi=Symbol.for("react.portal"),lo=Symbol.for("react.fragment"),uo=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),mo=Symbol.for("react.provider"),ho=Symbol.for("react.context"),uf=Symbol.for("react.server_context"),go=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),yo=Symbol.for("react.suspense_list"),bo=Symbol.for("react.memo"),vo=Symbol.for("react.lazy"),ff=Symbol.for("react.offscreen"),Xc;Xc=Symbol.for("react.module.reference");function Qe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ei:switch(e=e.type,e){case lo:case fo:case uo:case po:case yo:return e;default:switch(e=e&&e.$$typeof,e){case uf:case ho:case go:case vo:case bo:case mo:return e;default:return t}}case wi:return t}}}ne.ContextConsumer=ho;ne.ContextProvider=mo;ne.Element=Ei;ne.ForwardRef=go;ne.Fragment=lo;ne.Lazy=vo;ne.Memo=bo;ne.Portal=wi;ne.Profiler=fo;ne.StrictMode=uo;ne.Suspense=po;ne.SuspenseList=yo;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return Qe(e)===ho};ne.isContextProvider=function(e){return Qe(e)===mo};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ei};ne.isForwardRef=function(e){return Qe(e)===go};ne.isFragment=function(e){return Qe(e)===lo};ne.isLazy=function(e){return Qe(e)===vo};ne.isMemo=function(e){return Qe(e)===bo};ne.isPortal=function(e){return Qe(e)===wi};ne.isProfiler=function(e){return Qe(e)===fo};ne.isStrictMode=function(e){return Qe(e)===uo};ne.isSuspense=function(e){return Qe(e)===po};ne.isSuspenseList=function(e){return Qe(e)===yo};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lo||e===fo||e===uo||e===po||e===yo||e===ff||typeof e=="object"&&e!==null&&(e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===mo||e.$$typeof===ho||e.$$typeof===go||e.$$typeof===Xc||e.getModuleId!==void 0)};ne.typeOf=Qe;Uc.exports=ne;var jo=Uc.exports;const df=Symbol.for("react.element"),mf=Symbol.for("react.transitional.element"),hf=Symbol.for("react.fragment");function Kc(e){return e&&typeof e=="object"&&(e.$$typeof===df||e.$$typeof===mf)&&e.type===hf}const gf=Number(l.version.split(".")[0]),pf=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},gn=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{pf(r,n)})}},Pi=(...e)=>$i(()=>gn(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),xo=e=>{var n,r;if(!e)return!1;if(Ti(e)&&gf>=19)return!0;const t=jo.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==jo.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==jo.ForwardRef)};function Ti(e){return l.isValidElement(e)&&!Kc(e)}const Ri=e=>Ti(e)&&xo(e),kn=e=>{if(e&&Ti(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function yf(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 fa="data-rc-order",da="data-rc-priority",bf="rc-util-key",gs=new Map;function Gc({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:bf}function So(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function vf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Mi(e){return Array.from((gs.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Yc(e,t={}){if(!ve())return null;const{csp:n,prepend:r,priority:o=0}=t,s=vf(r),i=s==="prependQueue",a=document.createElement("style");a.setAttribute(fa,s),i&&o&&a.setAttribute(da,`${o}`),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const u=So(t),{firstChild:c}=u;if(r){if(i){const f=(t.styles||Mi(u)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(fa)))return!1;const m=Number(d.getAttribute(da)||0);return o>=m});if(f.length)return u.insertBefore(a,f[f.length-1].nextSibling),a}u.insertBefore(a,c)}else u.appendChild(a);return a}function Qc(e,t={}){let{styles:n}=t;return n||(n=Mi(So(t))),n.find(r=>r.getAttribute(Gc(t))===e)}function or(e,t={}){const n=Qc(e,t);n&&So(t).removeChild(n)}function xf(e,t){const n=gs.get(e);if(!n||!yf(document,n)){const r=Yc("",t),{parentNode:o}=r;gs.set(e,o),e.removeChild(r)}}function Bt(e,t,n={}){var u,c,f;const r=So(n),o=Mi(r),s={...n,styles:o};xf(r,s);const i=Qc(t,s);if(i)return(u=s.csp)!=null&&u.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=Yc(e,s);return a.setAttribute(Gc(s),t),a}function Jr(e){return e instanceof HTMLElement||e instanceof SVGElement}function $o(e){return e&&typeof e=="object"&&Jr(e.nativeElement)?e.nativeElement:Jr(e)?e:null}const Oi=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 ma(e,t=!1){if(Oi(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 Zc(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>ma(r,t));return ma(e,t)&&n.unshift(e),n}function hb(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 An=null,Lt=[];const ps=new Map,Fi=new Map;function Ai(){return Lt[Lt.length-1]}function Sf(e){const t=Ai();if(e&&t){let n;for(const[o,s]of ps.entries())if(s===t){n=o;break}const r=Fi.get(n);return!!r&&(r===e||r.contains(e))}return!1}function $f(e){const{activeElement:t}=document;return e===t||e.contains(t)}function zo(){const e=Ai(),{activeElement:t}=document;if(!Sf(t))if(e&&!$f(e)){const n=Zc(e),r=n.includes(An)?An:n[0];r==null||r.focus({preventScroll:!0})}else An=t}function ha(e){if(e.key==="Tab"){const{activeElement:t}=document,n=Ai(),r=Zc(n),o=r[r.length-1];e.shiftKey&&t===r[0]?An=o:!e.shiftKey&&t===o&&(An=r[0])}}function Cf(e,t){return e&&(ps.set(t,e),Lt=Lt.filter(n=>n!==e),Lt.push(e),window.addEventListener("focusin",zo),window.addEventListener("keydown",ha,!0),zo()),()=>{An=null,Lt=Lt.filter(n=>n!==e),ps.delete(t),Fi.delete(t),Lt.length===0&&(window.removeEventListener("focusin",zo),window.removeEventListener("keydown",ha,!0))}}function Ef(e,t){const n=l.useRef(0),[r,o]=l.useState(0);l.useEffect(()=>{n.current=0},t),l.useEffect(()=>{const[s,i]=e(n.current);return i||(n.current+=1,o(a=>a+1)),s},[...t,r])}function gb(e,t){const n=qc(),r=l.useRef(t);return r.current=t,Ef(i=>{if(!e)return[void 0,!0];const a=r.current();return a?[Cf(a,n),!0]:[void 0,i>=1]},[n,e]),[i=>{i&&Fi.set(n,i)}]}function Jc(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function wf(e){return Jc(e)instanceof ShadowRoot}function Pf(e){return wf(e)?Jc(e):null}const Tf=e=>{if(ve()&&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 pb(e,t){return Tf(e)}const ga={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 Vo;function el(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 u=getComputedStyle(e);r.scrollbarColor=u.scrollbarColor,r.scrollbarWidth=u.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};`:"";Bt(`
#${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),or(t),{width:i,height:a}}function yb(e){return typeof document>"u"?0:(Vo===void 0&&(Vo=el()),Vo.width)}function Rf(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:el(e)}let ys={};const Mf=e=>{};function Of(e,t){}function Ff(e,t){}function Af(){ys={}}function tl(e,t,n){!t&&!ys[n]&&(e(!1,n),ys[n]=!0)}function Ne(e,t){tl(Of,e,t)}function If(e,t){tl(Ff,e,t)}Ne.preMessage=Mf;Ne.resetWarned=Af;Ne.noteOnce=If;function bs(e,t,n=!1){const r=new Set;function o(s,i,a=1){const u=r.has(s);if(Ne(!u,"Warning: There may be circular references"),u)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 Co={exports:{}};Co.exports=Ii;Co.exports.isMobile=Ii;Co.exports.default=Ii;const Lf=/(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,Nf=/CrOS/,_f=/android|ipad|playbook|silk/i;function Ii(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=Lf.test(t)&&!Nf.test(t)||!!e.tablet&&_f.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}var kf=Co.exports;const Hf=sf(kf);let Do;const bb=()=>(typeof Do>"u"&&(Do=Hf()),Do);function Li(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const Bf=`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`,jf=`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`,zf=`${Bf} ${jf}`.split(/[\s\n]+/),Vf="aria-",Df="data-";function pa(e,t){return e.indexOf(t)===0}function nl(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"||pa(o,Vf))||n.data&&pa(o,Df)||n.attr&&zf.includes(o))&&(r[o]=e[o])}),r}function vb(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 rl=e=>+setTimeout(e,16),ol=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(rl=e=>window.requestAnimationFrame(e),ol=e=>window.cancelAnimationFrame(e));let ya=0;const Ni=new Map;function sl(e){Ni.delete(e)}const Te=(e,t=1)=>{ya+=1;const n=ya;function r(o){if(o===0)sl(n),e();else{const s=rl(()=>{r(o-1)});Ni.set(n,s)}}return r(t),n};Te.cancel=e=>{const t=Ni.get(e);return sl(e),ol(t)};function zt(e,t={}){let n=[];return A.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zt(r)):Kc(r)&&r.props?n=n.concat(zt(r.props.children,t)):n.push(r))}),n}function ba(...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 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 il(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]=il(i[o],s,n,r),i}function ze(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Ge(e,t.slice(0,-1))?e:il(e,t,n,r)}function Wf(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function va(e){return Array.isArray(e)?[]:{}}const qf=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Uf(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=va(e[0]);return e.forEach(s=>{function i(a,u){const c=new Set(u),f=Ge(s,a),d=Array.isArray(f);if(d||Wf(f)){if(!c.has(f)){c.add(f);const m=Ge(o,a);d?o=ze(o,a,r(m,f)):(!m||typeof m!="object")&&(o=ze(o,a,va(f))),qf(f).forEach(h=>{Object.getOwnPropertyDescriptor(f,h).enumerable&&i([...a,h],c)})}}else o=ze(o,a,f)}i([])}),o}function On(...e){return Uf(e)}const eo="__rc_react_root__";function Xf(e,t){const n=t[eo]||af.createRoot(t);n.render(e),t[eo]=n}async function Kf(e){return Promise.resolve().then(()=>{var t;(t=e[eo])==null||t.unmount(),delete e[eo]})}function Gf(){}const Yf=l.createContext({}),Qf=()=>{const e=()=>{};return e.deprecated=Gf,e},vs=l.createContext(null);function Zf({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),o=l.useContext(vs),s=l.useCallback((i,a,u)=>{n.current+=1;const c=n.current;r.current.push({size:i,element:a,data:u}),Promise.resolve().then(()=>{c===n.current&&(t==null||t(r.current),r.current=[])}),o==null||o(i,a,u)},[t,o]);return l.createElement(vs.Provider,{value:s},e)}const _t=new Map;function Jf(e){e.forEach(t=>{var r;const{target:n}=t;(r=_t.get(n))==null||r.forEach(o=>o(n))})}let Wo;function al(){return Wo||(Wo=new ResizeObserver(Jf)),Wo}function ed(e,t){_t.has(e)||(_t.set(e,new Set),al().observe(e)),_t.get(e).add(t)}function td(e,t){_t.has(e)&&(_t.get(e).delete(t),_t.get(e).size||(al().unobserve(e),_t.delete(e)))}function nd(e,t,n,r){const o=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=we(u=>{const{width:c,height:f}=u.getBoundingClientRect(),{offsetWidth:d,offsetHeight:m}=u,h=Math.floor(c),y=Math.floor(f);if(o.current.width!==h||o.current.height!==y||o.current.offsetWidth!==d||o.current.offsetHeight!==m){const p={width:h,height:y,offsetWidth:d,offsetHeight:m};o.current=p;const x=d===Math.round(c)?c:d,v=m===Math.round(f)?f:m,b={...p,offsetWidth:x,offsetHeight:v};r==null||r(b,u),Promise.resolve().then(()=>{n==null||n(b,u)})}}),i=typeof t=="function",a=l.useRef(0);l.useEffect(()=>{const u=i?t():t;return u&&e?ed(u,s):e&&i&&(a.current+=1),()=>{u&&td(u,s)}},[e,i?a.current:t])}function rd(e,t){const{children:n,disabled:r,onResize:o,data:s}=e,i=l.useRef(null),a=l.useContext(vs),u=typeof n=="function",c=u?n(i):n,f=!u&&l.isValidElement(c)&&xo(c),d=f?kn(c):null,m=Pi(d,i),h=()=>$o(i.current);return l.useImperativeHandle(t,()=>h()),nd(!r,h,o,(y,p)=>{a==null||a(y,p,s)}),f?l.cloneElement(c,{ref:m}):c}const od=l.forwardRef(rd);function xs(){return xs=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},xs.apply(this,arguments)}const sd="rc-observer-key";function id(e,t){const{children:n}=e;return(typeof n=="function"?[n]:zt(n)).map((o,s)=>{const i=(o==null?void 0:o.key)||`${sd}-${s}`;return l.createElement(od,xs({},e,{key:i,ref:s===0?t:void 0}),o)})}const cl=l.forwardRef(id);cl.Collection=Zf;function ll(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=ll(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ll(e))&&(r&&(r+=" "),r+=t);return r}function Ss(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 ad(e){if(Array.isArray(e))return Ss(e)}function cd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ul(e,t){if(e){if(typeof e=="string")return Ss(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)?Ss(e,t):void 0}}function ld(){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 dn(e){return ad(e)||cd(e)||ul(e)||ld()}const sr="ant",Eo="anticon",xb=["outlined","borderless","filled","underlined"],ud=(e,t)=>t||(e?`${sr}-${e}`:sr),Pe=l.createContext({getPrefixCls:ud,iconPrefixCls:Eo}),{Consumer:Sb}=Pe,xa={};function _i(e){const t=l.useContext(Pe),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}=t,i=t[e];return{classNames:xa,styles:xa,...i,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}}function ir(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 fd="%";function $s(e){return e.join(fd)}let Sa=0;class dd{constructor(t){P(this,"instanceId");P(this,"cache",new Map);P(this,"updateTimes",new Map);P(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet($s(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate($s(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,Sa),Sa+=1)}}const ki="data-token-hash",St="data-css-hash",xt="__cssinjs_instance__";function md(){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[xt]||(o[xt]=e),o[xt]===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[xt]===e&&((i=o.parentNode)==null||i.removeChild(o)):r[s]=!0})}return new dd(e)}const hr=l.createContext({hashPriority:"low",cache:md(),defaultCache:!0,autoPrefix:!1});function hd(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 Fn=class Fn{constructor(){P(this,"cache");P(this,"keys");P(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>Fn.MAX_CACHE_SIZE+Fn.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=>!hd(n,t)),this.deleteByPath(this.cache,t)}};P(Fn,"MAX_CACHE_SIZE",20),P(Fn,"MAX_CACHE_OFFSET",5);let Cs=Fn,$a=0;class fl{constructor(t){P(this,"derivatives");P(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 qo=new Cs;function Es(e){const t=Array.isArray(e)?e:[e];return qo.has(t)||qo.set(t,new fl(t)),qo.get(t)}const gd=new WeakMap,Uo={};function pd(e,t){let n=gd;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(Uo)||n.set(Uo,e()),n.get(Uo)}const Ca=new WeakMap;function tr(e){let t=Ca.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof fl?t+=r.id:r&&typeof r=="object"?t+=tr(r):t+=r}),t=ir(t),Ca.set(e,t)),t}function yd(e,t){return ir(`${t}_${tr(e)}`)}const ws=ve();function ye(e){return typeof e=="number"?`${e}px`:e}function dl(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const bd=e=>e!=null;function Hi(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const qr=(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(),vd=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const i=`${dl({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("")}}`},ml=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:s,unitless:i,ignore:a,preserve:u}=n||{},c={},f={};return Object.entries(e).forEach(([d,m])=>{if(u!=null&&u[d])f[d]=m;else if((typeof m=="string"||typeof m=="number")&&!(a!=null&&a[d])){const h=qr(d,s);c[h]=typeof m=="number"&&!(i!=null&&i[d])?`${m}px`:String(m),f[d]=`var(${h})`}}),[f,vd(c,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:o})]},Pr=new Map;function Bi(e,t,n,r,o){const{cache:s}=l.useContext(hr),i=[e,...t],a=$s(i),u=d=>{s.opUpdate(a,m=>{const[h=0,y]=m||[void 0,void 0],x=y||n(),v=[h,x];return d?d(v):v})};l.useMemo(()=>{u()},[a]);const f=s.opGet(a)[1];return l.useInsertionEffect(()=>(u(([d,m])=>[d+1,m]),Pr.has(a)||(o==null||o(f),Pr.set(a,!0),Promise.resolve().then(()=>{Pr.delete(a)})),()=>{s.opUpdate(a,d=>{const[m=0,h]=d||[];return m-1===0?(r==null||r(h,!1),Pr.delete(a),null):[m-1,h]})}),[a]),f}const xd={},Sd="css",Zt=new Map;function $d(e){Zt.set(e,(Zt.get(e)||0)+1)}function Cd(e,t){typeof document<"u"&&document.querySelectorAll(`style[${ki}="${e}"]`).forEach(r=>{var o;r[xt]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const Ed=-1;function wd(e,t){Zt.set(e,(Zt.get(e)||0)-1);const n=new Set;Zt.forEach((r,o)=>{r<=0&&n.add(o)}),Zt.size-n.size>Ed&&n.forEach(r=>{Cd(r,t),Zt.delete(r)})}const Pd=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},Td="token";function Rd(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:s}=l.useContext(hr),{salt:i="",override:a=xd,formatToken:u,getComputedToken:c,cssVar:f,nonce:d}=n,m=pd(()=>Object.assign({},...t),t),h=tr(m),y=tr(a),p=tr(f);return Bi(Td,[i,e.id,h,y,p],()=>{const v=c?c(m,a,e):Pd(m,a,e,u),b={...v},g=`${i}_${f.prefix}`,$=ir(g),S=`${Sd}-${$}`;b._tokenKey=yd(b,g);const[E,C]=ml(v,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve,hashPriority:s,hashCls:f.hashed?S:void 0});return E._hashId=$,$d(f.key),[E,S,b,C,f.key]},([,,,,v])=>{wd(v,r)},([,,,v,b])=>{if(!v)return;let g={mark:St,prepend:"queue",attachTo:o,priority:-999};g=Hi(g,d);const $=Bt(v,ir(`css-var-${b}`),g);$[xt]=r,$.setAttribute(ki,b)})}var Md={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},ce="-ms-",nr="-moz-",Q="-webkit-",hl="comm",ji="rule",zi="decl",Od="@import",Fd="@namespace",gl="@keyframes",Ad="@layer",pl=Math.abs,Vi=String.fromCharCode,Ps=Object.assign;function Id(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 yl(e){return e.trim()}function vt(e,t){return(e=t.exec(e))?e[0]:e}function q(e,t,n){return e.replace(t,n)}function Ur(e,t,n){return e.indexOf(t,n)}function Se(e,t){return e.charCodeAt(t)|0}function mn(e,t,n){return e.slice(t,n)}function rt(e){return e.length}function bl(e){return e.length}function Zn(e,t){return t.push(e),e}function Ld(e,t){return e.map(t).join("")}function Ea(e,t){return e.filter(function(n){return!vt(n,t)})}var wo=1,Ln=1,vl=0,Ye=0,be=0,Hn="";function Po(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:wo,column:Ln,length:i,return:"",siblings:a}}function At(e,t){return Ps(Po("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function En(e){for(;e.root;)e=At(e.root,{children:[e]});Zn(e,e.siblings)}function Nd(){return be}function _d(){return be=Ye>0?Se(Hn,--Ye):0,Ln--,be===10&&(Ln=1,wo--),be}function at(){return be=Ye<vl?Se(Hn,Ye++):0,Ln++,be===10&&(Ln=1,wo++),be}function kt(){return Se(Hn,Ye)}function Xr(){return Ye}function To(e,t){return mn(Hn,e,t)}function ar(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 kd(e){return wo=Ln=1,vl=rt(Hn=e),Ye=0,[]}function Hd(e){return Hn="",e}function Xo(e){return yl(To(Ye-1,Ts(e===91?e+2:e===40?e+1:e)))}function Bd(e){for(;(be=kt())&&be<33;)at();return ar(e)>2||ar(be)>3?"":" "}function jd(e,t){for(;--t&&at()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return To(e,Xr()+(t<6&&kt()==32&&at()==32))}function Ts(e){for(;at();)switch(be){case e:return Ye;case 34:case 39:e!==34&&e!==39&&Ts(be);break;case 40:e===41&&Ts(e);break;case 92:at();break}return Ye}function zd(e,t){for(;at()&&e+be!==57;)if(e+be===84&&kt()===47)break;return"/*"+To(t,Ye-1)+"*"+Vi(e===47?e:at())}function Vd(e){for(;!ar(kt());)at();return To(e,Ye)}function wa(e){return Hd(Kr("",null,null,null,[""],e=kd(e),0,[0],e))}function Kr(e,t,n,r,o,s,i,a,u){for(var c=0,f=0,d=i,m=0,h=0,y=0,p=1,x=1,v=1,b=0,g="",$=o,S=s,E=r,C=g;x;)switch(y=b,b=at()){case 40:if(y!=108&&Se(C,d-1)==58){Ur(C+=q(Xo(b),"&","&\f"),"&\f",pl(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:C+=Xo(b);break;case 9:case 10:case 13:case 32:C+=Bd(y);break;case 92:C+=jd(Xr()-1,7);continue;case 47:switch(kt()){case 42:case 47:Zn(Dd(zd(at(),Xr()),t,n,u),u),(ar(y||1)==5||ar(kt()||1)==5)&&rt(C)&&mn(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*p:a[c++]=rt(C)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+f:v==-1&&(C=q(C,/\f/g,"")),h>0&&(rt(C)-d||p===0&&y===47)&&Zn(h>32?Ta(C+";",r,n,d-1,u):Ta(q(C," ","")+";",r,n,d-2,u),u);break;case 59:C+=";";default:if(Zn(E=Pa(C,t,n,c,f,o,a,g,$=[],S=[],d,s),s),b===123)if(f===0)Kr(C,t,E,E,$,s,d,a,S);else{switch(m){case 99:if(Se(C,3)===110)break;case 108:if(Se(C,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Kr(e,E,E,r&&Zn(Pa(e,E,E,0,0,o,a,g,o,$=[],d,S),S),o,S,d,a,r?$:S):Kr(C,E,E,E,[""],S,0,a,S)}}c=f=h=0,p=v=1,g=C="",d=i;break;case 58:d=1+rt(C),h=y;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_d()==125)continue}switch(C+=Vi(b),b*p){case 38:v=f>0?1:(C+="\f",-1);break;case 44:a[c++]=(rt(C)-1)*v,v=1;break;case 64:kt()===45&&(C+=Xo(at())),m=kt(),f=d=rt(g=C+=Vd(Xr())),b++;break;case 45:y===45&&rt(C)==2&&(p=0)}}return s}function Pa(e,t,n,r,o,s,i,a,u,c,f,d){for(var m=o-1,h=o===0?s:[""],y=bl(h),p=0,x=0,v=0;p<r;++p)for(var b=0,g=mn(e,m+1,m=pl(x=i[p])),$=e;b<y;++b)($=yl(x>0?h[b]+" "+g:q(g,/&\f/g,h[b])))&&(u[v++]=$);return Po(e,t,n,o===0?ji:a,u,c,f,d)}function Dd(e,t,n,r){return Po(e,t,n,hl,Vi(Nd()),mn(e,2,-2),0,r)}function Ta(e,t,n,r,o){return Po(e,t,n,zi,mn(e,0,r),mn(e,r+1,-1),r,o)}function xl(e,t,n){switch(Id(e,t)){case 5103:return Q+"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 Q+e+e;case 4855:return Q+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return nr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+nr+e+ce+e+e;case 5936:switch(Se(e,t+11)){case 114:return Q+e+ce+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+ce+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+ce+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Q+e+ce+e+e;case 6165:return Q+e+ce+"flex-"+e+e;case 5187:return Q+e+q(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+ce+"flex-$1$2")+e;case 5443:return Q+e+ce+"flex-item-"+q(e,/flex-|-self/g,"")+(vt(e,/flex-|baseline/)?"":ce+"grid-row-"+q(e,/flex-|-self/g,""))+e;case 4675:return Q+e+ce+"flex-line-pack"+q(e,/align-content|flex-|-self/g,"")+e;case 5548:return Q+e+ce+q(e,"shrink","negative")+e;case 5292:return Q+e+ce+q(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+q(e,"-grow","")+Q+e+ce+q(e,"grow","positive")+e;case 4554:return Q+q(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+ce+"flex-pack:$3"),/space-between/,"justify")+Q+e+e;case 4200:if(!vt(e,/flex-|baseline/))return ce+"grid-column-align"+mn(e,t)+e;break;case 2592:case 3360:return ce+q(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,vt(r.props,/grid-\w+-end/)})?~Ur(e+(n=n[t].value),"span",0)?e:ce+q(e,"-start","")+e+ce+"grid-row-span:"+(~Ur(n,"span",0)?vt(n,/\d+/):+vt(n,/\d+/)-+vt(e,/\d+/))+";":ce+q(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return vt(r.props,/grid-\w+-start/)})?e:ce+q(q(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,Q+"$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(rt(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+nr+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ur(e,"stretch",0)?xl(q(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return q(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,u,c){return ce+o+":"+s+c+(i?ce+o+"-span:"+(a?u:+u-+s)+c:"")+e});case 4949:if(Se(e,t+6)===121)return q(e,":",":"+Q)+e;break;case 6444:switch(Se(e,Se(e,14)===45?18:11)){case 120:return q(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Q+(Se(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+ce+"$2box$3")+e;case 100:return q(e,":",":"+ce)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return q(e,"scroll-","scroll-snap-")+e}return e}function cr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ra(e,t,n,r){switch(e.type){case Ad:if(e.children.length)break;case Od:case Fd:case zi:return e.return=e.return||e.value;case hl:return"";case gl:return e.return=e.value+"{"+cr(e.children,r)+"}";case ji:if(!rt(e.value=e.props.join(",")))return""}return rt(n=cr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Wd(e){var t=bl(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 qd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zi:e.return=xl(e.value,e.length,n);return;case gl:return cr([At(e,{value:q(e.value,"@","@"+Q)})],r);case ji:if(e.length)return Ld(n=e.props,function(o){switch(vt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":En(At(e,{props:[q(o,/:(read-\w+)/,":"+nr+"$1")]})),En(At(e,{props:[o]})),Ps(e,{props:Ea(n,r)});break;case"::placeholder":En(At(e,{props:[q(o,/:(plac\w+)/,":"+Q+"input-$1")]})),En(At(e,{props:[q(o,/:(plac\w+)/,":"+nr+"$1")]})),En(At(e,{props:[q(o,/:(plac\w+)/,ce+"input-$1")]})),En(At(e,{props:[o]})),Ps(e,{props:Ea(n,r)});break}return""})}}const Ma="data-ant-cssinjs-cache-path",Sl="_FILE_STYLE__";let un,$l=!0;function Ud(){var e;if(!un&&(un={},ve())){const t=document.createElement("div");t.className=Ma,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(":");un[s]=i});const r=document.querySelector(`style[${Ma}]`);r&&($l=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function Xd(e){return Ud(),!!un[e]}function Kd(e){const t=un[e];let n=null;if(t&&ve())if($l)n=Sl;else{const r=document.querySelector(`style[${St}="${un[e]}"]`);r?n=r.innerHTML:delete un[e]}return[n,t]}const Gd="_skip_check_",Cl="_multi_value_";function Ko(e,t){return(t?cr(wa(e),Wd([qd,Ra])):cr(wa(e),Ra)).replace(/\{%%%\:[^;];}/g,";")}function Yd(e){return typeof e=="object"&&e&&(Gd in e||Cl in e)}function Oa(e,t,n="high"){if(!t)return e;const r=dl({hashCls:t,hashPriority:n});return e.split(",").map(s=>{var c;const i=s.trim().split(/\s+/);let a=i[0]||"";const u=((c=a.match(/^\w+/))==null?void 0:c[0])||"";return a=`${u}${r}${a.slice(u.length)}`,[a,...i.slice(1)].join(" ")}).join(",")}const Rs=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:i,path:a,hashPriority:u,transformers:c=[],linters:f=[]}=t;let d="",m={};function h(x){const v=x.getName(s);if(!m[v]){const[b]=Rs(x.style,t,{root:!1,parentSelectors:o});m[v]=`@keyframes ${x.getName(s)}${b}`}}function y(x,v=[]){return x.forEach(b=>{Array.isArray(b)?y(b,v):b&&v.push(b)}),v}return y(Array.isArray(e)?e:[e]).forEach(x=>{const v=typeof x=="string"&&!n?{}:x;if(typeof v=="string")d+=`${v}
`;else if(v._keyframe)h(v);else{const b=c.reduce((g,$)=>{var S;return((S=$==null?void 0:$.visit)==null?void 0:S.call($,g))||g},v);Object.keys(b).forEach(g=>{const $=b[g];if(typeof $=="object"&&$&&(g!=="animationName"||!$._keyframe)&&!Yd($)){let S=!1,E=g.trim(),C=!1;(n||r)&&s?E.startsWith("@")?S=!0:E==="&"?E=Oa("",s,u):E=Oa(g,s,u):n&&!s&&(E==="&"||E==="")&&(E="",C=!0);const[T,R]=Rs($,t,{root:C,injectHash:S,parentSelectors:[...o,E]});m={...m,...R},d+=`${E}${T}`}else{let S=function(C,T){const R=C.replace(/[A-Z]/g,w=>`-${w.toLowerCase()}`);let M=T;!Md[C]&&typeof M=="number"&&M!==0&&(M=`${M}px`),C==="animationName"&&(T!=null&&T._keyframe)&&(h(T),M=T.getName(s)),d+=`${R}:${M};`};const E=($==null?void 0:$.value)??$;typeof $=="object"&&($!=null&&$[Cl])&&Array.isArray(E)?E.forEach(C=>{S(g,C)}):bd(E)&&S(g,E)}})}}),n?i&&(d&&(d=`@layer ${i.name} {${d}}`),i.dependencies&&(m[`@layer ${i.name}`]=i.dependencies.map(x=>`@layer ${x}, ${i.name};`).join(`
`))):d=`{${d}}`,[d,m]};function El(e,t){return ir(`${e.join("%")}${t}`)}const Qd="style";function Ms(e,t){const{path:n,hashId:r,layer:o,nonce:s,clientOnly:i,order:a=0}=e,{mock:u,hashPriority:c,container:f,transformers:d,linters:m,cache:h,layer:y,autoPrefix:p}=l.useContext(hr),x=[r||""];y&&x.push("layer"),x.push(...n);let v=ws;Bi(Qd,x,()=>{const b=x.join("|");if(Xd(b)){const[T,R]=Kd(b);if(T)return[T,R,{},i,a]}const g=t(),[$,S]=Rs(g,{hashId:r,hashPriority:c,layer:y?o:void 0,path:n.join("-"),transformers:d,linters:m}),E=Ko($,p||!1),C=El(x,E);return[E,C,S,i,a]},(b,g)=>{const[,$]=b;g&&ws&&or($,{mark:St,attachTo:f})},b=>{const[g,$,S,,E]=b;if(v&&g!==Sl){let C={mark:St,prepend:y?!1:"queue",attachTo:f,priority:E};C=Hi(C,s);const T=[],R=[];Object.keys(S).forEach(w=>{w.startsWith("@layer")?T.push(w):R.push(w)}),T.forEach(w=>{Bt(Ko(S[w],p||!1),`_layer-${w}`,{...C,prepend:!0})});const M=Bt(g,$,C);M[xt]=h.instanceId,R.forEach(w=>{Bt(Ko(S[w],p||!1),`_effect-${w}`,C)})}})}const Zd="cssVar",Jd=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:s,token:i,hashId:a,scope:u,nonce:c}=e,{cache:{instanceId:f},container:d,hashPriority:m}=l.useContext(hr),{_tokenKey:h}=i,y=Array.isArray(u)?u.join("@@"):u,p=[...e.path,n,y,h];return Bi(Zd,p,()=>{const v=t(),[b,g]=ml(v,n,{prefix:r,unitless:o,ignore:s,scope:u,hashPriority:m,hashCls:a}),$=El(p,g);return[b,g,$,n]},([,,v])=>{ws&&or(v,{mark:St,attachTo:d})},([,v,b])=>{if(!v)return;let g={mark:St,prepend:"queue",attachTo:d,priority:-999};g=Hi(g,c);const $=Bt(v,b,g);$[xt]=f,$.setAttribute(ki,n)})};class Z{constructor(t,n){P(this,"name");P(this,"style");P(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function wn(e){return e.notSplit=!0,e}wn(["borderTop","borderBottom"]),wn(["borderTop"]),wn(["borderBottom"]),wn(["borderLeft","borderRight"]),wn(["borderLeft"]),wn(["borderRight"]);function ct(e){"@babel/helpers - typeof";return ct=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},ct(e)}function em(e){if(Array.isArray(e))return e}function tm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,a=[],u=!0,c=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function nm(){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 wl(e,t){return em(e)||tm(e,t)||ul(e,t)||nm()}function rm(e,t){if(ct(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ct(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pl(e){var t=rm(e,"string");return ct(t)=="symbol"?t:t+""}function gt(e,t,n){return(t=Pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(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 Le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fa(Object(n),!0).forEach(function(r){gt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function om(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,Pl(r.key),r)}}function Mo(e,t,n){return t&&om(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Os(e,t){return Os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Os(e,t)}function sm(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&&Os(e,t)}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},to(e)}function Tl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tl=function(){return!!e})()}function im(e,t){if(t&&(ct(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function am(e){var t=Tl();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return im(this,n)}}var cm=Mo(function e(){Ro(this,e)}),Rl="CALC_UNIT",lm=new RegExp(Rl,"g");function Go(e){return typeof e=="number"?"".concat(e).concat(Rl):e}var um=function(e){sm(n,e);var t=am(n);function n(r,o){var s;Ro(this,n),s=t.call(this),gt(Gr(s),"result",""),gt(Gr(s),"unitlessCssVar",void 0),gt(Gr(s),"lowPriority",void 0);var i=ct(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):i==="number"?s.result=Go(r):i==="string"&&(s.result=r),s}return Mo(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(Go(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(Go(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,u=!0;return typeof a=="boolean"?u=a:Array.from(this.unitlessCssVar).some(function(c){return s.result.includes(c)})&&(u=!1),this.result=this.result.replace(lm,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(cm),fm=function(t,n){var r=um;return function(o){return new r(o,n)}},Aa=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 Ia(e,t,n,r){var o=Le({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(a){var u=wl(a,2),c=u[0],f=u[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=Le(Le({},n),o);return Object.keys(i).forEach(function(a){i[a]===t[a]&&delete i[a]}),i}var Ml=typeof CSSINJS_STATISTIC<"u",Fs=!0;function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ml)return Object.assign.apply(Object,[{}].concat(t));Fs=!1;var r={};return t.forEach(function(o){if(ct(o)==="object"){var s=Object.keys(o);s.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),Fs=!0,r}var La={};function dm(){}var mm=function(t){var n,r=t,o=dm;return Ml&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,a){if(Fs){var u;(u=n)===null||u===void 0||u.add(a)}return i[a]}}),o=function(i,a){var u;La[i]={global:Array.from(n),component:Le(Le({},(u=La[i])===null||u===void 0?void 0:u.component),a)}}),{token:r,keys:n,flush:o}};function Na(e,t,n){if(typeof n=="function"){var r;return n(Vt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function hm(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 ye(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 ye(s)}).join(","),")")}}}var gm=1e3*60*10,pm=function(){function e(){Ro(this,e),gt(this,"map",new Map),gt(this,"objectIDMap",new WeakMap),gt(this,"nextID",0),gt(this,"lastAccessBeat",new Map),gt(this,"accessBeat",0)}return Mo(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&&ct(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(ct(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>gm&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e}(),_a=new pm;function ym(e,t){return A.useMemo(function(){var n=_a.get(t);if(n)return n;var r=e();return _a.set(t,r),r},t)}var bm=function(){return{}};function vm(e){var t=e.useCSP,n=t===void 0?bm:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,i=e.getCommonStyle,a=e.getCompUnitless;function u(m,h,y,p){var x=Array.isArray(m)?m[0]:m;function v(T){return"".concat(String(x)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var b=(p==null?void 0:p.unitless)||{},g=typeof a=="function"?a(m):{},$=Le(Le({},g),{},gt({},v("zIndexPopup"),!0));Object.keys(b).forEach(function(T){$[v(T)]=b[T]});var S=Le(Le({},p),{},{unitless:$,prefixToken:v}),E=f(m,h,y,S),C=c(x,y,S);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,M=E(T,R),w=p==null?void 0:p.extraCssVarPrefixCls,F=typeof w=="function"?w({prefixCls:T,rootCls:R}):w,I=C(F!=null&&F.length?[R].concat(dn(F)):R);return[M,I]}}function c(m,h,y){var p=y.unitless,x=y.prefixToken,v=y.ignore;return function(b){var g=r(),$=g.cssVar,S=g.realToken,E=n();return Jd({path:[m],prefix:$.prefix,key:$.key,unitless:p,ignore:v,token:S,scope:b,nonce:function(){return E.nonce}},function(){var C=Na(m,S,h),T=Ia(m,S,C,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return C&&Object.keys(C).forEach(function(R){T[x(R)]=T[R],delete T[R]}),T}),$==null?void 0:$.key}}function f(m,h,y){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(m)?m:[m,m],v=wl(x,1),b=v[0],g=x.join("-"),$=e.layer||{name:"antd"};return function(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=r(),T=C.theme,R=C.realToken,M=C.hashId,w=C.token,F=C.cssVar,I=C.zeroRuntime,k=l.useMemo(function(){return I},[]);if(k)return M;var j=o(),L=j.rootPrefixCls,N=j.iconPrefixCls,V=n(),K="css",X=ym(function(){var J=new Set;return Object.keys(p.unitless||{}).forEach(function(G){J.add(qr(G,F.prefix)),J.add(qr(G,Aa(b,F.prefix)))}),fm(K,J)},[K,b,F==null?void 0:F.prefix]),ge=hm(),B=ge.max,le=ge.min,ee={theme:T,token:w,hashId:M,nonce:function(){return V.nonce},clientOnly:p.clientOnly,layer:$,order:p.order||-999};return typeof s=="function"&&Ms(Le(Le({},ee),{},{clientOnly:!1,path:["Shared",L]}),function(){return s(w,{prefix:{rootPrefixCls:L,iconPrefixCls:N},csp:V})}),Ms(Le(Le({},ee),{},{path:[g,S,N]}),function(){if(p.injectStyle===!1)return[];var J=mm(w),G=J.token,ue=J.flush,O=Na(b,R,y),_=".".concat(S),D=Ia(b,R,O,{deprecatedTokens:p.deprecatedTokens});O&&ct(O)==="object"&&Object.keys(O).forEach(function(Ze){O[Ze]="var(".concat(qr(Ze,Aa(b,F.prefix)),")")});var te=Vt(G,{componentCls:_,prefixCls:S,iconCls:".".concat(N),antCls:".".concat(L),calc:X,max:B,min:le},O),H=h(te,{hashId:M,prefixCls:S,rootPrefixCls:L,iconPrefixCls:N});ue(b,D);var lt=typeof i=="function"?i(te,S,E,p.resetFont):null;return[p.resetStyle===!1?null:lt,H]}),M}}function d(m,h,y){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=f(m,h,y,Le({resetStyle:!1,order:-998},p)),v=function(g){var $=g.prefixCls,S=g.rootCls,E=S===void 0?$:S;return x($,E),null};return v}return{genStyleHooks:u,genSubStyleComponent:d,genComponentStyleHook:f}}const Ct=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Yr(e){return(e+8)/e}function xm(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:Yr(n)}))}const Sm="6.4.4",Di={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"},lr={...Di,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},$m={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"},Ee=Math.round;function Yo(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 ka=(e,t,n)=>n===0?e:e/100;function Kn(e,t){const n=t||255;return e>n?n:e<0?0:e}class he{constructor(t){P(this,"isValid",!0);P(this,"r",0);P(this,"g",0);P(this,"b",0);P(this,"a",1);P(this,"_h");P(this,"_hsl_s");P(this,"_hsv_s");P(this,"_l");P(this,"_v");P(this,"_max");P(this,"_min");P(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=$m[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof he)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=Kn(t.r),this.g=Kn(t.g),this.b=Kn(t.b),this.a=typeof t.a=="number"?Kn(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=Ee(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:Ee(s("r")),g:Ee(s("g")),b:Ee(s("b")),a:Ee(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=>Ee((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=Ee(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=Ee(this.getHSLSaturation()*100),r=Ee(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]=Kn(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=Ee(r*255);this.r=h,this.g=h,this.b=h;return}let i=0,a=0,u=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,u=d):c>=3&&c<4?(a=d,u=f):c>=4&&c<5?(i=d,u=f):c>=5&&c<6&&(i=f,u=d);const m=r-f/2;this.r=Ee((i+m)*255),this.g=Ee((a+m)*255),this.b=Ee((u+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=Ee(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=s/60,u=Math.floor(a),c=a-u,f=Ee(r*(1-n)*255),d=Ee(r*(1-n*c)*255),m=Ee(r*(1-n*(1-c))*255);switch(u){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=Yo(t,ka);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Yo(t,ka);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Yo(t,(r,o)=>o.includes("%")?Ee(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Tr=2,Ha=.16,Cm=.05,Em=.05,wm=.15,Ol=5,Fl=4,Pm=[{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 Ba(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Tr*t:Math.round(e.h)+Tr*t:r=n?Math.round(e.h)+Tr*t:Math.round(e.h)-Tr*t,r<0?r+=360:r>=360&&(r-=360),r}function ja(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Ha*t:t===Fl?r=e.s+Ha:r=e.s+Cm*t,r>1&&(r=1),n&&t===Ol&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function za(e,t,n){let r;return n?r=e.v+Em*t:r=e.v-wm*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function gr(e,t={}){const n=[],r=new he(e),o=r.toHsv();for(let s=Ol;s>0;s-=1){const i=new he({h:Ba(o,s,!0),s:ja(o,s,!0),v:za(o,s,!0)});n.push(i)}n.push(r);for(let s=1;s<=Fl;s+=1){const i=new he({h:Ba(o,s),s:ja(o,s),v:za(o,s)});n.push(i)}return t.theme==="dark"?Pm.map(({index:s,amount:i})=>new he(t.backgroundColor||"#141414").mix(n[s],i).toHexString()):n.map(s=>s.toHexString())}const Qo={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"},As=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];As.primary=As[5];const Is=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Is.primary=Is[5];const Ls=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ls.primary=Ls[5];const Ns=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ns.primary=Ns[5];const _s=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_s.primary=_s[5];const ks=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ks.primary=ks[5];const Hs=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hs.primary=Hs[5];const Bs=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Bs.primary=Bs[5];const no=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];no.primary=no[5];const js=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];js.primary=js[5];const zs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zs.primary=zs[5];const Vs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Vs.primary=Vs[5];const Ds=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ds.primary=Ds[5];const Zo={red:As,volcano:Is,orange:Ls,gold:Ns,yellow:_s,lime:ks,green:Hs,cyan:Bs,blue:no,geekblue:js,purple:zs,magenta:Vs,grey:Ds};function Al(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:a,colorBgBase:u,colorTextBase:c}=e,f=t(a),d=t(r),m=t(o),h=t(s),y=t(i),p=n(u,c),x=e.colorLink||e.colorInfo,v=t(x),b=new he(h[1]).mix(new he(h[3]),50).toHexString(),g={};return Ct.forEach($=>{const S=e[$];if(S){const E=t(S);g[`${$}Hover`]=E[5],g[`${$}Active`]=E[7]}}),{...p,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:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],...g,colorBgMask:new he("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Tm=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 Rm(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,...Tm(r)}}const Mm=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Om=e=>{const t=xm(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],u=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:u,fontHeight:Math.round(a*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(u*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Fm(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 he(e).setA(t).toRgbString(),Pn=(e,t)=>new he(e).darken(t).toHexString(),Am=e=>{const t=gr(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]}},Im=(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:Pn(r,4),colorBgContainer:Pn(r,0),colorBgElevated:Pn(r,0),colorBgSpotlight:Xe(o,.85),colorBgBlur:"transparent",colorBorder:Pn(r,15),colorBorderDisabled:Pn(r,15),colorBorderSecondary:Pn(r,6)}};function Wi(e){Qo.pink=Qo.magenta,Zo.pink=Zo.magenta;const t=Object.keys(Di).map(n=>{const r=e[n]===Qo[n]?Zo[n]:gr(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,...Al(e,{generateColorPalettes:Am,generateNeutralColorPalettes:Im}),...Om(e.fontSize),...Fm(e),...Mm(e),...Rm(e)}}const Il=Es(Wi),ro={token:lr,override:{override:lr},hashed:!0},Ll=A.createContext(ro);function Jo(e){return e>=0&&e<=255}function Jn(e,t){const{r:n,g:r,b:o,a:s}=new he(e).toRgb();if(s<1)return e;const{r:i,g:a,b:u}=new he(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-u*(1-c))/c);if(Jo(f)&&Jo(d)&&Jo(m))return new he({r:f,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new he({r:n,g:r,b:o,a:1}).toRgbString()}function Lm(e){const{override:t,...n}=e,r={...t};Object.keys(lr).forEach(x=>{delete r[x]});const o={...n,...r},s=new he(o.colorShadow),i=s.a,a=x=>s.clone().setA(i*x).toRgbString(),u=480,c=576,f=768,d=992,m=1200,h=1600,y=1920;if(o.motion===!1){const x="0s";o.motionDurationFast=x,o.motionDurationMid=x,o.motionDurationSlow=x}return{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Jn(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:Jn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Jn(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:Jn(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:u,screenXSMin:u,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:y-1,screenXXXL:y,screenXXXLMin:y,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 Nl={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},Nm={motionBase:!0,motionUnit:!0},_m={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},_l=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...s}=t;let i={...r,override:o};return i=Lm(i),s&&Object.entries(s).forEach(([a,u])=>{const{theme:c,...f}=u;let d=f;c&&(d=_l({...i,...f},{override:f},c)),i[a]=d}),i};function Et(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:s}=A.useContext(Ll),{csp:i,getPrefixCls:a}=A.useContext(Pe),u={prefix:(o==null?void 0:o.prefix)??a(),key:(o==null?void 0:o.key)??"css-var-root"},c=`${Sm}-${t||""}`,f=n||Il,[d,m,h]=Rd(f,[lr,e],{salt:c,override:r,getComputedToken:_l,cssVar:{...u,unitless:Nl,ignore:Nm,preserve:_m},nonce:i==null?void 0:i.nonce});return[f,h,t?m:"",d,u,!!s]}const $b={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},km=(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}),qi=()=>({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"}}),Hm=new Z("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),Cb=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bm=(e,t)=>({outline:`${ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),Oo=(e,t)=>({"&:focus-visible":Bm(e,t)}),jm=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},...Oo(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),zm=(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}}},kl=e=>({[`.${e}`]:{...qi(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:Hm,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),Eb=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Oo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Fo,genComponentStyleHook:Vm,genSubStyleComponent:Dm}=vm({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(Pe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,s]=Et();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(Pe);return e??{}},getResetStyles:(e,t)=>{const n=jm(e);return[n,{"&":n},kl((t==null?void 0:t.prefix.iconPrefixCls)??Eo)]},getCommonStyle:zm,getCompUnitless:()=>Nl}),pr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,i)=>i?`var(${n}${s}, ${i})`:`var(${n}${s})`]};function wb(e,t){return Ct.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 Wm=(e,t)=>(Et(),Ms({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>kl(e))),Ui=l.createContext({});function qm(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Um(e,t){Ne(e,`[@ant-design/icons] ${t}`)}function Va(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Da(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[qm(n)]=r}return t},{})}function Ws(e,t,n){return n?A.createElement(e.tag,{key:t,...Da(e.attrs),...n},(e.children||[]).map((r,o)=>Ws(r,`${t}-${e.tag}-${o}`))):A.createElement(e.tag,{key:t,...Da(e.attrs)},(e.children||[]).map((r,o)=>Ws(r,`${t}-${e.tag}-${o}`)))}function Hl(e){return gr(e)[0]}function Bl(e){return e?Array.isArray(e)?e:[e]:[]}const Xm=`
.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);
}
}
`,Km=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(Ui);let o=Xm;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),l.useEffect(()=>{const s=e.current,i=Pf(s);Bt(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:i})},[])},rr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Gm({primaryColor:e,secondaryColor:t}){rr.primaryColor=e,rr.secondaryColor=t||Hl(e),rr.calculated=!!t}function Ym(){return{...rr}}const Bn=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:s,secondaryColor:i,...a}=e,u=l.useRef(null);let c=rr;if(s&&(c={primaryColor:s,secondaryColor:i||Hl(s)}),Km(u),Um(Va(t),`icon should be icon definiton, but got ${t}`),!Va(t))return null;let f=t;return f&&typeof f.icon=="function"&&(f={...f,icon:f.icon(c.primaryColor,c.secondaryColor)}),Ws(f.icon,`svg-${f.name}`,{className:n,onClick:r,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...a,ref:u})};Bn.displayName="IconReact";Bn.getTwoToneColors=Ym;Bn.setTwoToneColors=Gm;function jl(e){const[t,n]=Bl(e);return Bn.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Qm(){const e=Bn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}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)}jl(no.primary);const jn=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:s,tabIndex:i,onClick:a,twoToneColor:u,...c}=e,{prefixCls:f="anticon",rootClassName:d}=l.useContext(Ui),m=z(d,f,{[`${f}-${r.name}`]:!!r.name,[`${f}-spin`]:!!o||r.name==="loading"},n);let h=i;h===void 0&&a&&(h=-1);const y=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[p,x]=Bl(u);return l.createElement("span",qs({role:"img","aria-label":r.name},c,{ref:t,tabIndex:h,onClick:a,className:m}),l.createElement(Bn,{icon:r,primaryColor:p,secondaryColor:x,style:y}))});jn.getTwoToneColor=Qm;jn.setTwoToneColor=jl;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});var Zm={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"},Jm=zl.default=Zm;function Us(){return Us=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},Us.apply(this,arguments)}const eh=(e,t)=>l.createElement(jn,Us({},e,{ref:t,icon:Jm})),th=l.forwardRef(eh);var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});var nh={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"},rh=Vl.default=nh;function Xs(){return Xs=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},Xs.apply(this,arguments)}const oh=(e,t)=>l.createElement(jn,Xs({},e,{ref:t,icon:rh})),Dl=l.forwardRef(oh),Wl=l.createContext({}),sh=e=>{const{children:t,...n}=e,r=l.useMemo(()=>({motion:n.motion}),[n.motion]);return l.createElement(Wl.Provider,{value:r},t)},dt="none",Rr="appear",Mr="enter",Or="leave",Wa="none",ot="prepare",Jt="start",en="active",Xi="end",ql="prepared";function qa(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 ih(e,t){const n={animationend:qa("Animation","AnimationEnd"),transitionend:qa("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const ah=ih(ve(),typeof window<"u"?window:{});let Ul={};ve()&&({style:Ul}=document.createElement("div"));const Fr={};function Xl(e){if(Fr[e])return Fr[e];const t=ah[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 Ul)return Fr[e]=t[s],Fr[e]}}return""}const Kl=Xl("animationend"),Gl=Xl("transitionend"),ch=!!(Kl&&Gl),Ua=Kl||"animationend",Xa=Gl||"transitionend";function Ka(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 lh=e=>{const t=l.useRef();function n(o){o&&(o.removeEventListener(Xa,e),o.removeEventListener(Ua,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Xa,e),o.addEventListener(Ua,e),t.current=o)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]},Yl=ve()?l.useLayoutEffect:l.useEffect,uh=()=>{const e=l.useRef(null);function t(){Te.cancel(e.current)}function n(r,o=2){t();const s=Te(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]},fh=[ot,Jt,en,Xi],dh=[ot,ql],Ql=!1,mh=!0;function Zl(e){return e===en||e===Xi}const hh=(e,t,n)=>{const[r,o]=co(Wa),[s,i]=uh();function a(){o(ot,!0)}const u=t?dh:fh;return Yl(()=>{if(r!==Wa&&r!==Xi){const c=u.indexOf(r),f=u[c+1],d=n(r);d===Ql?o(f,!0):f&&s(m=>{function h(){m.isCanceled()||o(f,!0)}d===!0?h():Promise.resolve(d).then(h)})}},[e,r]),l.useEffect(()=>()=>{i()},[]),[a,r]};function gh(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:a,onAppearPrepare:u,onEnterPrepare:c,onLeavePrepare:f,onAppearStart:d,onEnterStart:m,onLeaveStart:h,onAppearActive:y,onEnterActive:p,onLeaveActive:x,onAppearEnd:v,onEnterEnd:b,onLeaveEnd:g,onVisibleChanged:$}){const[S,E]=l.useState(),[C,T]=Ci(dt),[R,M]=l.useState([null,null]),w=C(),F=l.useRef(!1),I=l.useRef(null);function k(){return n()}const j=l.useRef(!1);function L(){T(dt),M([null,null])}const N=we(O=>{const _=C();if(_===dt)return;const D=k();if(O&&!O.deadline&&O.target!==D)return;const te=j.current;let H;_===Rr&&te?H=v==null?void 0:v(D,O):_===Mr&&te?H=b==null?void 0:b(D,O):_===Or&&te&&(H=g==null?void 0:g(D,O)),te&&H!==!1&&L()}),[V]=lh(N),K=O=>{switch(O){case Rr:return{[ot]:u,[Jt]:d,[en]:y};case Mr:return{[ot]:c,[Jt]:m,[en]:p};case Or:return{[ot]:f,[Jt]:h,[en]:x};default:return{}}},X=l.useMemo(()=>K(w),[w]),[ge,B]=hh(w,!e,O=>{var _;if(O===ot){const D=X[ot];return D?D(k()):Ql}return O in X&&M([((_=X[O])==null?void 0:_.call(X,k(),null))||null,O]),O===en&&w!==dt&&(V(k()),i>0&&(clearTimeout(I.current),I.current=setTimeout(()=>{N({deadline:!0})},i))),O===ql&&L(),mh}),le=Zl(B);j.current=le;const ee=l.useRef(null);Yl(()=>{if(F.current&&ee.current===t)return;E(t);const O=F.current;F.current=!0;let _;!O&&t&&o&&(_=Rr),O&&t&&r&&(_=Mr),(O&&!t&&s||!O&&a&&!t&&s)&&(_=Or);const D=K(_);_&&(e||D[ot])?(T(_),ge()):T(dt),ee.current=t},[t]),l.useEffect(()=>{(w===Rr&&!o||w===Mr&&!r||w===Or&&!s)&&T(dt)},[o,r,s]),l.useEffect(()=>()=>{F.current=!1,clearTimeout(I.current)},[]);const J=l.useRef(!1);l.useEffect(()=>{S&&(J.current=!0),S!==void 0&&w===dt&&((J.current||S)&&($==null||$(S)),J.current=!0)},[S,w]);let G=R[0];X[ot]&&B===Jt&&(G={transition:"none",...G});const ue=R[1];return[C,B,G,S??t,!F.current&&w===dt&&e&&o?"NONE":B===Jt||B===en?ue===B:!0]}function Jl(e){return(e==null?void 0:e.length)<2}function ph(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=l.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:a=!0,forceRender:u,children:c,motionName:f,leavedClassName:d,eventProps:m}=o,{motion:h}=l.useContext(Wl),y=n(o,h),p=l.useRef();function x(){return $o(p.current)}const[v,b,g,$,S]=gh(y,i,x,o),E=v(),C=l.useRef($);$&&(C.current=!0);const T=l.useMemo(()=>{const w={};return Object.defineProperties(w,{nativeElement:{enumerable:!0,get:x},inMotion:{enumerable:!0,get:()=>()=>v()!==dt},enableMotion:{enumerable:!0,get:()=>()=>y}}),w},[]);l.useImperativeHandle(s,()=>T,[]);const R=l.useRef(0);S&&(R.current+=1);const M=l.useMemo(()=>{if(S==="NONE")return null;let w;const F={...m,visible:i};if(!c)w=null;else if(E===dt)$?w=c({...F},p):!a&&C.current&&d?w=c({...F,className:d},p):u||!a&&!d?w=c({...F,style:{display:"none"}},p):w=null;else{let I;b===ot?I="prepare":Zl(b)?I="active":b===Jt&&(I="start");const k=Ka(f,`${E}-${I}`);w=c({...F,className:z(Ka(f,E),{[k]:k&&I,[f]:typeof f=="string"}),style:g},p)}return w},[R.current]);if(Jl(c)&&Ri(M)){const w=kn(M);if(w!==p)return l.cloneElement(M,{ref:gn(w,p)})}return M});return r.displayName="CSSMotion",r}const Ao=ph(ch),Ks="add",Gs="keep",Ys="remove",es="removed";function yh(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Qs(e=[]){return e.map(yh)}function bh(e=[],t=[]){let n=[],r=0;const o=t.length,s=Qs(e),i=Qs(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:Ks}))),r=d),n.push({...m,status:Gs}),r+=1,f=!0;break}}f||n.push({...c,status:Ys})}),r<o&&(n=n.concat(i.slice(r).map(c=>({...c,status:Ks}))));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!==Ys),n.forEach(f=>{f.key===c&&(f.status=Gs)})}),n}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)}const vh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xh(e,t=Ao){class n extends l.Component{constructor(){super(...arguments);P(this,"state",{keyEntities:[]});P(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(u=>u.key!==s?u:{...u,status:es})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:u})=>u!==es).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const a=Qs(s);return{keyEntities:bh(i,a).filter(c=>{const f=i.find(({key:d})=>c.key===d);return!(f&&f.status===es&&c.status===Ys)})}}render(){const{keyEntities:s}=this.state,{component:i,children:a,onVisibleChanged:u,onAllRemoved:c,...f}=this.props,d=i||l.Fragment,m={};return vh.forEach(h=>{m[h]=f[h],delete f[h]}),delete f.keys,l.createElement(d,f,s.map(({status:h,...y},p)=>{const x=h===Ks||h===Gs;return l.createElement(t,Zs({},m,{key:y.key,visible:x,eventProps:y,onVisibleChanged:v=>{u==null||u(v,{key:y.key}),v||this.removeKey(y.key)}}),Jl(a)?v=>a({...v,index:p}):(v,b)=>a({...v,index:p},b))}))}}return P(n,"defaultProps",{component:"div"}),n}const Pb=xh(),jt=e=>e!=null,yr=e=>jt(e)&&e!==!1&&e!=="",br=e=>typeof e=="number"&&!Number.isNaN(e),fn=e=>typeof e=="string",Ve=e=>e!==null&&typeof e=="object",We=e=>typeof e=="function",ts=e=>jt(e)&&We(e.then),Tb=e=>typeof e!="object"&&!We(e)||e===null,eu=e=>Ve(e)&&"propertyName"in e&&fn(e.propertyName),Js=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{t[r]._default?n[r]||(n[r]={}):n[r]=Js(n[r],t[r])}),n},tu=(e={},...t)=>t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(o=>{const s=e[o],i=r[o];if(s)if(Ve(i))n[o]=tu(s,n[o],i);else{const{_default:a}=s;a&&(n[o]=n[o]||{},n[o][a]=z(n[o][a],i))}else n[o]=z(n[o],i)}),n),{}),Sh=(e,...t)=>l.useMemo(()=>tu.apply(void 0,[e].concat(t)),[e].concat(t)),$h=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),Ch=(...e)=>l.useMemo(()=>$h.apply(void 0,e),[].concat(e)),Ga=(e,t)=>We(e)?e(t):e,Ki=(e,t,n,r)=>{const o=e.map(u=>u?Ga(u,n):void 0),s=t.map(u=>u?Ga(u,n):void 0),i=Sh.apply(void 0,[r].concat(dn(o))),a=Ch.apply(void 0,dn(s));return l.useMemo(()=>r?[Js(i,r),Js(a,r)]:[i,a],[i,a,r])},ei=e=>jt(e)&&e===e.window,Eh=e=>{var n;if(typeof window>"u")return 0;let t=0;return ei(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!ei(e)&&!br(t)&&(t=(n=(e.ownerDocument??e).documentElement)==null?void 0:n.scrollTop),t};function wh(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 Rb(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,s=n(),i=Eh(s),a=Date.now();let u;const c=()=>{const d=Date.now()-a,m=wh(d>o?o:d,i,e,o);ei(s)?s.scrollTo(window.pageXOffset,m):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=m:s.scrollTop=m,d<o?u=Te(c):We(r)&&r()};return u=Te(c),()=>{Te.cancel(u)}}const Mb=e=>`${e}-css-var`,Ph=l.createContext(void 0),Th={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"};var Rh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}function Ya(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 Qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ya(Object(n),!0).forEach(function(r){Mh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mh(e,t,n){return t=Oh(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oh(e){var t=Fh(e,"string");return ur(t)=="symbol"?t:String(t)}function Fh(e,t){if(ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ah=Qa(Qa({},Rh),{},{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"});const nu={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Za={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"],...Ah},timePickerLocale:{...nu}},je="${label} is not a valid ${type}",hn={locale:"en",Pagination:Th,DatePicker:Za,TimePicker:nu,Calendar:Za,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:je,method:je,array:je,object:je,number:je,date:je,boolean:je,integer:je,float:je,regexp:je,email:je,url:je,hex:je},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 Qr={...hn.Modal},Zr=[];const Ja=()=>Zr.reduce((e,t)=>({...e,...t}),hn.Modal);function Ih(e){if(e){const t={...e};return Zr.push(t),Qr=Ja(),()=>{Zr=Zr.filter(n=>n!==t),Qr=Ja()}}Qr={...hn.Modal}}function Ob(){return Qr}const Gi=l.createContext(void 0),Io=(e,t)=>{const n=l.useContext(Gi),r=l.useMemo(()=>{const s=t||hn[e],i=(n==null?void 0:n[e])??{};return{...We(s)?s():s,...i||{}}},[e,t,n]),o=l.useMemo(()=>{const s=n==null?void 0:n.locale;return n!=null&&n.exist&&!s?hn.locale:s},[n]);return[r,o]},Lh="internalMark",Nh=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>Ih(t==null?void 0:t.Modal),[t]);const o=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(Gi.Provider,{value:o},n)},ru=l.createContext(null);let _h=!1;function kh(e){return _h}const ec=[];function Hh(e,t){const[n]=l.useState(()=>ve()?document.createElement("div"):null),r=l.useRef(!1),o=l.useContext(ru),[s,i]=l.useState(ec),a=o||(r.current?void 0:f=>{i(d=>[f,...d])});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function c(){var f;(f=n.parentElement)==null||f.removeChild(n),r.current=!1}return $t(()=>(e?o?o(u):u():c(),c),[e]),$t(()=>{s.length&&(s.forEach(f=>f()),i(ec))},[s]),[n,a]}function Bh(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const jh=`rc-util-locker-${Date.now()}`;let tc=0;function zh(e){const t=!!e,[n]=l.useState(()=>(tc+=1,`${jh}_${tc}`));$t(()=>{if(t){const r=Rf(document.body).width,o=Bh();Bt(`
html body {
overflow-y: hidden;
${o?`width: calc(100% - ${r}px);`:""}
}`,n)}else or(n);return()=>{or(n)}},[t,n])}let an=[];const Vh=200;let ou=0;const su=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-ou<Vh)return;const n=an.length;for(let r=n-1;r>=0;r-=1)an[r].onEsc({top:r===n-1,event:e})}},iu=()=>{ou=Date.now()};function Dh(){window.addEventListener("keydown",su),window.addEventListener("compositionend",iu)}function Wh(){an.length===0&&(window.removeEventListener("keydown",su),window.removeEventListener("compositionend",iu))}function qh(e,t){const n=qc(),r=we(t),o=()=>{an.find(i=>i.id===n)||an.push({id:n,onEsc:r})},s=()=>{an=an.filter(i=>i.id!==n)};l.useMemo(()=>{e?o():e||s()},[e]),l.useEffect(()=>{if(e)return o(),Dh(),()=>{s(),Wh()}},[e])}const nc=e=>e===!1?!1:!ve()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Uh=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:i=!0,children:a,onEsc:u}=e,[c,f]=l.useState(n),d=c||n;l.useEffect(()=>{(i||n)&&f(n)},[n,i]);const[m,h]=l.useState(()=>nc(o));l.useEffect(()=>{const S=nc(o);h(()=>S??null)});const[y,p]=Hh(d&&!m),x=m??y;zh(r&&n&&ve()&&(x===y||x===document.body)),qh(n,u);let v=null;a&&xo(a)&&t&&(v=kn(a));const b=Pi(v,t);if(!d||!ve()||m===void 0)return null;const g=x===!1||kh();let $=a;return t&&($=l.cloneElement(a,{ref:b})),l.createElement(ru.Provider,{value:p},g?$:cf.createPortal($,x))}),Xh=l.createContext({}),mt="none",Ar="appear",Ir="enter",Lr="leave",rc="none",st="prepare",tn="start",nn="active",Yi="end",au="prepared";function oc(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 Kh(e,t){const n={animationend:oc("Animation","AnimationEnd"),transitionend:oc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const Gh=Kh(ve(),typeof window<"u"?window:{});let cu={};ve()&&({style:cu}=document.createElement("div"));const Nr={};function lu(e){if(Nr[e])return Nr[e];const t=Gh[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 cu)return Nr[e]=t[s],Nr[e]}}return""}const uu=lu("animationend"),fu=lu("transitionend"),Yh=!!(uu&&fu),sc=uu||"animationend",ic=fu||"transitionend";function ac(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 Qh=e=>{const t=l.useRef();function n(o){o&&(o.removeEventListener(ic,e),o.removeEventListener(sc,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ic,e),o.addEventListener(sc,e),t.current=o)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]},du=ve()?l.useLayoutEffect:l.useEffect,Zh=()=>{const e=l.useRef(null);function t(){Te.cancel(e.current)}function n(r,o=2){t();const s=Te(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]},Jh=[st,tn,nn,Yi],eg=[st,au],mu=!1,tg=!0;function hu(e){return e===nn||e===Yi}const ng=(e,t,n)=>{const[r,o]=co(rc),[s,i]=Zh();function a(){o(st,!0)}const u=t?eg:Jh;return du(()=>{if(r!==rc&&r!==Yi){const c=u.indexOf(r),f=u[c+1],d=n(r);d===mu?o(f,!0):f&&s(m=>{function h(){m.isCanceled()||o(f,!0)}d===!0?h():Promise.resolve(d).then(h)})}},[e,r]),l.useEffect(()=>()=>{i()},[]),[a,r]};function rg(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:a,onAppearPrepare:u,onEnterPrepare:c,onLeavePrepare:f,onAppearStart:d,onEnterStart:m,onLeaveStart:h,onAppearActive:y,onEnterActive:p,onLeaveActive:x,onAppearEnd:v,onEnterEnd:b,onLeaveEnd:g,onVisibleChanged:$}){const[S,E]=l.useState(),[C,T]=Ci(mt),[R,M]=l.useState([null,null]),w=C(),F=l.useRef(!1),I=l.useRef(null);function k(){return n()}const j=l.useRef(!1);function L(){T(mt),M([null,null])}const N=we(O=>{const _=C();if(_===mt)return;const D=k();if(O&&!O.deadline&&O.target!==D)return;const te=j.current;let H;_===Ar&&te?H=v==null?void 0:v(D,O):_===Ir&&te?H=b==null?void 0:b(D,O):_===Lr&&te&&(H=g==null?void 0:g(D,O)),te&&H!==!1&&L()}),[V]=Qh(N),K=O=>{switch(O){case Ar:return{[st]:u,[tn]:d,[nn]:y};case Ir:return{[st]:c,[tn]:m,[nn]:p};case Lr:return{[st]:f,[tn]:h,[nn]:x};default:return{}}},X=l.useMemo(()=>K(w),[w]),[ge,B]=ng(w,!e,O=>{var _;if(O===st){const D=X[st];return D?D(k()):mu}return O in X&&M([((_=X[O])==null?void 0:_.call(X,k(),null))||null,O]),O===nn&&w!==mt&&(V(k()),i>0&&(clearTimeout(I.current),I.current=setTimeout(()=>{N({deadline:!0})},i))),O===au&&L(),tg}),le=hu(B);j.current=le;const ee=l.useRef(null);du(()=>{if(F.current&&ee.current===t)return;E(t);const O=F.current;F.current=!0;let _;!O&&t&&o&&(_=Ar),O&&t&&r&&(_=Ir),(O&&!t&&s||!O&&a&&!t&&s)&&(_=Lr);const D=K(_);_&&(e||D[st])?(T(_),ge()):T(mt),ee.current=t},[t]),l.useEffect(()=>{(w===Ar&&!o||w===Ir&&!r||w===Lr&&!s)&&T(mt)},[o,r,s]),l.useEffect(()=>()=>{F.current=!1,clearTimeout(I.current)},[]);const J=l.useRef(!1);l.useEffect(()=>{S&&(J.current=!0),S!==void 0&&w===mt&&((J.current||S)&&($==null||$(S)),J.current=!0)},[S,w]);let G=R[0];X[st]&&B===tn&&(G={transition:"none",...G});const ue=R[1];return[C,B,G,S??t,!F.current&&w===mt&&e&&o?"NONE":B===tn||B===nn?ue===B:!0]}function og(e){return(e==null?void 0:e.length)<2}function sg(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=l.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:a=!0,forceRender:u,children:c,motionName:f,leavedClassName:d,eventProps:m}=o,{motion:h}=l.useContext(Xh),y=n(o,h),p=l.useRef();function x(){return $o(p.current)}const[v,b,g,$,S]=rg(y,i,x,o),E=v(),C=l.useRef($);$&&(C.current=!0);const T=l.useMemo(()=>{const w={};return Object.defineProperties(w,{nativeElement:{enumerable:!0,get:x},inMotion:{enumerable:!0,get:()=>()=>v()!==mt},enableMotion:{enumerable:!0,get:()=>()=>y}}),w},[]);l.useImperativeHandle(s,()=>T,[]);const R=l.useRef(0);S&&(R.current+=1);const M=l.useMemo(()=>{if(S==="NONE")return null;let w;const F={...m,visible:i};if(!c)w=null;else if(E===mt)$?w=c({...F},p):!a&&C.current&&d?w=c({...F,className:d},p):u||!a&&!d?w=c({...F,style:{display:"none"}},p):w=null;else{let I;b===st?I="prepare":hu(b)?I="active":b===tn&&(I="start");const k=ac(f,`${E}-${I}`);w=c({...F,className:z(ac(f,E),{[k]:k&&I,[f]:typeof f=="string"}),style:g},p)}return w},[R.current]);if(og(c)&&Ri(M)){const w=kn(M);if(w!==p)return l.cloneElement(M,{ref:gn(w,p)})}return M});return r.displayName="CSSMotion",r}const Qi=sg(Yh);function ig(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:s,content:i,style:a}=r||{},{x:u=0,y:c=0}=o,f=l.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],y=m[0],p=m[1],x=h[0],v=h[1];y===x||!["t","b"].includes(y)?d.top=c:y==="t"?d.top=0:d.bottom=0,p===v||!["l","r"].includes(p)?d.left=u:p==="l"?d.left=0:d.right=0}return l.createElement("div",{ref:f,className:z(`${t}-arrow`,s),style:{...d,...a}},i)}function ti(){return ti=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},ti.apply(this,arguments)}function ag(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:s,mobile:i}=e;return o?l.createElement(Qi,ti({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:a})=>l.createElement("div",{style:{zIndex:r},className:z(`${t}-mask`,i&&`${t}-mobile-mask`,a)})):null}const cg=l.memo(({children:e})=>e,(e,t)=>t.cache);function gu(e,t,n,r,o,s,i,a){var f;const u="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:u,bottom:u};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",y=m&&d[0][0]==="b";h?(c.right=o,c.left=u):(c.left=i,c.right=u),y?(c.bottom=s,c.top=u):(c.top=a,c.bottom=u)}return c}function ni(){return ni=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},ni.apply(this,arguments)}const lg=l.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:s,style:i,target:a,onVisibleChanged:u,open:c,keepDom:f,fresh:d,onClick:m,mask:h,arrow:y,arrowPos:p,align:x,motion:v,maskMotion:b,mobile:g,forceRender:$,getPopupContainer:S,autoDestroy:E,portal:C,children:T,zIndex:R,onMouseEnter:M,onMouseLeave:w,onPointerEnter:F,onPointerDownCapture:I,ready:k,offsetX:j,offsetY:L,offsetR:N,offsetB:V,onAlign:K,onPrepare:X,onResize:ge,stretch:B,targetWidth:le,targetHeight:ee}=e,J=typeof r=="function"?r():r,G=c||f,ue=!!g,[O,_,D]=l.useMemo(()=>g?[g.mask,g.maskMotion,g.motion]:[h,b,v],[g,h,b,v]),te=(S==null?void 0:S.length)>0,[H,lt]=l.useState(!S||!te);$t(()=>{!H&&te&&a&<(!0)},[H,te,a]);const Ze=we((Y,Ce)=>{ge==null||ge(Y,Ce),K()}),Je=gu(ue,k,c,x,N,V,j,L);if(!H)return null;const xe={};return B&&(B.includes("height")&&ee?xe.height=ee:B.includes("minHeight")&&ee&&(xe.minHeight=ee),B.includes("width")&&le?xe.width=le:B.includes("minWidth")&&le&&(xe.minWidth=le)),c||(xe.pointerEvents="none"),l.createElement(C,{open:$||G,getContainer:S&&(()=>S(a)),autoDestroy:E,onEsc:n},l.createElement(ag,{prefixCls:s,open:c,zIndex:R,mask:O,motion:_,mobile:ue}),l.createElement(cl,{onResize:Ze,disabled:!c},Y=>l.createElement(Qi,ni({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:`${s}-hidden`},D,{onAppearPrepare:X,onEnterPrepare:X,visible:c,onVisibleChanged:Ce=>{var de;(de=v==null?void 0:v.onVisibleChanged)==null||de.call(v,Ce),u(Ce)}}),({className:Ce,style:de},pt)=>{const Fe=z(s,Ce,o,{[`${s}-mobile`]:ue});return l.createElement("div",{ref:gn(Y,t,pt),className:Fe,style:{"--arrow-x":`${p.x||0}px`,"--arrow-y":`${p.y||0}px`,...Je,...xe,...de,boxSizing:"border-box",zIndex:R,...i},onMouseEnter:M,onMouseLeave:w,onPointerEnter:F,onClick:m,onPointerDownCapture:I},y&&l.createElement(ig,{prefixCls:s,arrow:y,arrowPos:p,align:x}),l.createElement(cg,{cache:!c&&!d},J))})),T)}),cc=l.createContext(null),ug=l.createContext(null);function fg(e=[],t=[],n){const r=(o,s)=>o[s]||"";return r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function dg(e,t,n,r){var i;const{points:o}=n,s=Object.keys(e);for(let a=0;a<s.length;a+=1){const u=s[a];if(fg((i=e[u])==null?void 0:i.points,o))return`${t}-placement-${u}`}return""}function Zi(e){return e.ownerDocument.defaultView}function mg(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 fr(e,t=1){return Number.isNaN(e)?t:e}function Gn(e){return fr(parseFloat(e),0)}function lc(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:u,borderRightWidth:c}=Zi(r).getComputedStyle(r),f=r.getBoundingClientRect(),{offsetHeight:d,clientHeight:m,offsetWidth:h,clientWidth:y}=r,p=Gn(i),x=Gn(a),v=Gn(u),b=Gn(c),g=fr(Math.round(f.width/h*1e3)/1e3),$=fr(Math.round(f.height/d*1e3)/1e3),S=(h-y-v-b)*g,E=(d-m-p-x)*$,C=p*$,T=x*$,R=v*g,M=b*g;let w=0,F=0;if(o==="clip"){const N=Gn(s);w=N*g,F=N*$}const I=f.x+R-w,k=f.y+C-F,j=I+f.width+2*w-R-M-S,L=k+f.height+2*F-C-T-E;n.left=Math.max(n.left,I),n.top=Math.max(n.top,k),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,L)}),n}function uc(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function fc(e,t){const[n,r]=t||[];return[uc(e.width,n),uc(e.height,r)]}function dc(e=""){return[e[0],e[1]]}function Tn(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 Ft(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function mc(e){return e.join("")}function hg(e,t,n,r,o,s,i,a){const[u,c]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),f=l.useRef(0),d=l.useMemo(()=>!t||a?[]:mg(t),[t]),m=l.useRef({});e||(()=>{m.current={}})();const y=we(()=>{var v,b;if(t&&n&&e&&!a){let Me=function(W,Be,Ue=Ce){const ia=N.x+W,aa=N.y+Be,Yu=ia+ue,Qu=aa+G,Zu=Math.max(ia,Ue.left),Ju=Math.max(aa,Ue.top),ef=Math.min(Yu,Ue.right),tf=Math.min(Qu,Ue.bottom);return Math.max(0,(ef-Zu)*(tf-Ju))},$n=function(){Ut=N.y+ie,xn=Ut+G,Xt=N.x+se,Sn=Xt+ue};const g=t,$=g.ownerDocument,S=Zi(g),{position:E}=S.getComputedStyle(g),C=g.style.left,T=g.style.top,R=g.style.right,M=g.style.bottom,w=g.style.overflow,F=g.style.overflowX,I=g.style.overflowY,k={...o[r],...s},j=$.createElement("div");(v=g.parentElement)==null||v.appendChild(j),j.style.left=`${g.offsetLeft}px`,j.style.top=`${g.offsetTop}px`,j.style.position=E,j.style.height=`${g.offsetHeight}px`,j.style.width=`${g.offsetWidth}px`,g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden";let L;if(Array.isArray(n))L={x:n[0],y:n[1],width:0,height:0};else{const W=n.getBoundingClientRect();W.x=W.x??W.left,W.y=W.y??W.top,L={x:W.x,y:W.y,width:W.width,height:W.height}}const N=g.getBoundingClientRect(),{height:V,width:K}=S.getComputedStyle(g);N.x=N.x??N.left,N.y=N.y??N.top;const{clientWidth:X,clientHeight:ge,scrollWidth:B,scrollHeight:le,scrollTop:ee,scrollLeft:J}=$.documentElement,G=N.height,ue=N.width,O=L.height,_=L.width,D={left:0,top:0,right:X,bottom:ge},te={left:-J,top:-ee,right:B-J,bottom:le-ee};let{htmlRegion:H}=k;const lt="visible",Ze="visibleFirst";H!=="scroll"&&H!==Ze&&(H=lt);const Je=H===Ze,xe=lc(te,d),Y=lc(D,d),Ce=H===lt?Y:xe,de=Je?Y:Ce;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";const pt=g.getBoundingClientRect();g.style.left=C,g.style.top=T,g.style.right=R,g.style.bottom=M,g.style.overflow=w,g.style.overflowX=F,g.style.overflowY=I,(b=g.parentElement)==null||b.removeChild(j);const Fe=fr(Math.round(ue/parseFloat(K)*1e3)/1e3),et=fr(Math.round(G/parseFloat(V)*1e3)/1e3);if(Fe===0||et===0||Jr(n)&&!Oi(n))return;const{offset:yt,targetOffset:pn}=k;let[Ae,Re]=fc(N,yt);const[yn,Vn]=fc(L,pn);L.x-=yn,L.y-=Vn;const[bn,Dt]=k.points||[],wt=dc(Dt),_e=dc(bn),Pt=Tn(L,wt),vn=Tn(N,_e),Tt={...k};let pe=[_e,wt],se=Pt.x-vn.x+Ae,ie=Pt.y-vn.y+Re;const ke=Me(se,ie),Rt=Me(se,ie,Y),Wt=Tn(L,["t","l"]),ut=Tn(N,["t","l"]),qt=Tn(L,["b","r"]),Mt=Tn(N,["b","r"]),ae=k.overflow||{},{adjustX:Ot,adjustY:_o,shiftX:xr,shiftY:Sr}=ae,$r=W=>typeof W=="boolean"?W:W>=0;let Ut,xn,Xt,Sn;$n();const Dn=$r(_o),Kt=_e[0]===wt[0];if(Dn&&_e[0]==="t"&&(xn>de.bottom||m.current.bt)){let W=ie;Kt?W-=G-O:W=Wt.y-Mt.y-Re;const Be=Me(se,W),Ue=Me(se,W,Y);Be>ke||Be===ke&&(!Je||Ue>=Rt)?(m.current.bt=!0,ie=W,Re=-Re,pe=[Ft(pe[0],0),Ft(pe[1],0)]):m.current.bt=!1}if(Dn&&_e[0]==="b"&&(Ut<de.top||m.current.tb)){let W=ie;Kt?W+=G-O:W=qt.y-ut.y-Re;const Be=Me(se,W),Ue=Me(se,W,Y);Be>ke||Be===ke&&(!Je||Ue>=Rt)?(m.current.tb=!0,ie=W,Re=-Re,pe=[Ft(pe[0],0),Ft(pe[1],0)]):m.current.tb=!1}const Gt=$r(Ot),Cn=_e[1]===wt[1];if(Gt&&_e[1]==="l"&&(Sn>de.right||m.current.rl)){let W=se;Cn?W-=ue-_:W=Wt.x-Mt.x-Ae;const Be=Me(W,ie),Ue=Me(W,ie,Y);Be>ke||Be===ke&&(!Je||Ue>=Rt)?(m.current.rl=!0,se=W,Ae=-Ae,pe=[Ft(pe[0],1),Ft(pe[1],1)]):m.current.rl=!1}if(Gt&&_e[1]==="r"&&(Xt<de.left||m.current.lr)){let W=se;Cn?W+=ue-_:W=qt.x-ut.x-Ae;const Be=Me(W,ie),Ue=Me(W,ie,Y);Be>ke||Be===ke&&(!Je||Ue>=Rt)?(m.current.lr=!0,se=W,Ae=-Ae,pe=[Ft(pe[0],1),Ft(pe[1],1)]):m.current.lr=!1}Tt.points=[mc(pe[0]),mc(pe[1])],$n();const bt=xr===!0?0:xr;typeof bt=="number"&&(Xt<Y.left&&(se-=Xt-Y.left-Ae,L.x+_<Y.left+bt&&(se+=L.x-Y.left+_-bt)),Sn>Y.right&&(se-=Sn-Y.right-Ae,L.x>Y.right-bt&&(se+=L.x-Y.right+bt)));const qe=Sr===!0?0:Sr;typeof qe=="number"&&(Ut<Y.top&&(ie-=Ut-Y.top-Re,L.y+O<Y.top+qe&&(ie+=L.y-Y.top+O-qe)),xn>Y.bottom&&(ie-=xn-Y.bottom-Re,L.y>Y.bottom-qe&&(ie+=L.y-Y.bottom+qe)));const ft=N.x+se,Cr=ft+ue,Wn=N.y+ie,me=Wn+G,qn=L.x,ko=qn+_,oe=L.y,Oe=oe+O,tt=Math.max(ft,qn),nt=Math.min(Cr,ko),Er=(tt+nt)/2-ft,Xn=Math.max(Wn,oe),wr=Math.min(me,Oe),Ho=(Xn+wr)/2-Wn;let He=pt.right-N.x-(se+N.width),Bo=pt.bottom-N.y-(ie+N.height);Fe===1&&(se=Math.floor(se),He=Math.floor(He)),et===1&&(ie=Math.floor(ie),Bo=Math.floor(Bo));const Gu={ready:!0,offsetX:se/Fe,offsetY:ie/et,offsetR:He/Fe,offsetB:Bo/et,arrowX:Er/Fe,arrowY:Ho/et,scaleX:Fe,scaleY:et,align:Tt};c(Gu)}}),p=()=>{f.current+=1;const v=f.current;Promise.resolve().then(()=>{f.current===v&&y()})},x=()=>{c(v=>({...v,ready:!1}))};return $t(x,[r]),$t(()=>{e||x()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function gg(){const e=l.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 l.useEffect(()=>()=>{t()},[]),n}function pg(){const[e,t]=A.useState(null),[n,r]=A.useState(!1),[o,s]=A.useState(!1),i=A.useRef(null),a=we(c=>{c===!1?(i.current=null,r(!1)):o&&n?i.current=c:(r(!0),t(c),i.current=null,n||s(!0))}),u=we(c=>{c?(s(!1),i.current&&(t(i.current),i.current=null)):(s(!1),i.current=null)});return[a,n,e,u]}function ri(){return ri=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},ri.apply(this,arguments)}const yg=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:s,offsetR:i,offsetB:a,offsetX:u,offsetY:c,arrowPos:f,popupSize:d,motion:m,uniqueContainerClassName:h,uniqueContainerStyle:y}=e,p=`${t}-unique-container`,[x,v]=A.useState(!1),b=gu(n,r,o,s,i,a,u,c),g=A.useRef(b);r&&(g.current=b);const $={};return d&&($.width=d.width,$.height=d.height),A.createElement(Qi,ri({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${p}-hidden`},m,{visible:o,onVisibleChanged:S=>{v(S)}}),({className:S,style:E})=>{const C=z(p,S,h,{[`${p}-visible`]:x});return A.createElement("div",{className:C,style:{"--arrow-x":`${(f==null?void 0:f.x)||0}px`,"--arrow-y":`${(f==null?void 0:f.y)||0}px`,...g.current,...$,...E,...y}})})},bg=({children:e,postTriggerProps:t})=>{const[n,r,o,s]=pg(),i=l.useMemo(()=>!o||!t?o:t(o),[o,t]),[a,u]=l.useState(null),[c,f]=l.useState(null),d=l.useRef(null),m=we(V=>{d.current=V,Jr(V)&&a!==V&&u(V)}),h=l.useRef(null),y=gg(),p=we((V,K)=>{h.current=K,y(()=>{n(V)},V.delay)}),x=V=>{y(()=>{var K;(K=h.current)!=null&&K.call(h)||n(!1)},V)},v=we(V=>{s(V)}),[b,g,$,S,E,C,T,,,R,M]=hg(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),w=l.useMemo(()=>{var K;if(!i)return"";const V=dg(i.builtinPlacements||{},i.prefixCls||"",R);return z(V,(K=i.getPopupClassNameFromAlign)==null?void 0:K.call(i,R))},[R,i==null?void 0:i.getPopupClassNameFromAlign,i==null?void 0:i.builtinPlacements,i==null?void 0:i.prefixCls]),F=l.useMemo(()=>({show:p,hide:x}),[]);l.useEffect(()=>{M()},[i==null?void 0:i.target]);const I=we(()=>(M(),Promise.resolve())),k=l.useRef({}),j=l.useContext(cc),L=l.useMemo(()=>({registerSubPopup:(V,K)=>{k.current[V]=K,j==null||j.registerSubPopup(V,K)}}),[j]),N=i==null?void 0:i.prefixCls;return l.createElement(ug.Provider,{value:F},e,i&&l.createElement(cc.Provider,{value:L},l.createElement(lg,{ref:m,portal:Uh,onEsc:i.onEsc,prefixCls:N,popup:i.popup,className:z(i.popupClassName,w,`${N}-unique-controlled`),style:i.popupStyle,target:i.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:v,ready:b,offsetX:g,offsetY:$,offsetR:S,offsetB:E,onAlign:M,onPrepare:I,onResize:V=>f({width:V.offsetWidth,height:V.offsetHeight}),arrowPos:{x:C,y:T},align:R,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},l.createElement(yg,{prefixCls:N,isMobile:!1,ready:b,open:r,align:R,offsetR:S,offsetB:E,offsetX:g,offsetY:$,arrowPos:{x:C,y:T},popupSize:c,motion:i.popupMotion,uniqueContainerClassName:z(i.uniqueContainerClassName,w),uniqueContainerStyle:i.uniqueContainerStyle}))))};function vg(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const xg=(e,t,n)=>A.isValidElement(e)?A.cloneElement(e,We(n)?n(e.props||{}):n):t;function dr(e,t){return xg(e,e,t)}const Sg=({children:e})=>{const{getPrefixCls:t}=A.useContext(Pe),n=t();return A.isValidElement(e)?A.createElement(Ao,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:o})=>dr(e,s=>({className:z(s.className,o),style:{...s.style,...r}}))):e},_r=[null,null];function $g(e){if(_r[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),_r[0]=e,_r[1]=t}return _r[1]}const Cg=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:s}=n,i=We(s)?s():s,a=$g(o);return{...n,getPopupContainer:null,arrow:!1,popup:A.createElement(Sg,{key:r},i),builtinPlacements:a}};return A.createElement(bg,{postTriggerProps:t},e)},oo=l.createContext(!1),Eg=({children:e,disabled:t})=>{const n=l.useContext(oo);return l.createElement(oo.Provider,{value:t??n},e)},Nn=l.createContext(void 0),wg=({children:e,size:t})=>{const n=l.useContext(Nn);return l.createElement(Nn.Provider,{value:t||n},e)};function Pg(){const e=l.useContext(oo),t=l.useContext(Nn);return{componentDisabled:e,componentSize:t}}function Tg(e,t,n){Qf();const r=e||{},o=r.inherit===!1||!t?{...ro,hashed:(t==null?void 0:t.hashed)??ro.hashed,cssVar:t==null?void 0:t.cssVar}:t,s=l.useId();return $i(()=>{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,"")}`,u={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:u}},[r,o],(i,a)=>i.some((u,c)=>{const f=a[c];return!bs(u,f,!0)}))}const hc=l.createContext(!0);function Rg(e){const t=l.useContext(hc),{children:n}=e,[,r]=Et(),{motion:o}=r,s=l.useRef(!1);return s.current||(s.current=t!==o),s.current?l.createElement(hc.Provider,{value:o},l.createElement(sh,{motion:o},n)):n}const Mg=()=>null,Og=({iconPrefixCls:e,csp:t})=>(Wm(e,t),null),Fg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let so,pu,yu,bu;function ns(){return so||sr}function Ag(){return pu||Eo}const Ig=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(so=t),n!==void 0&&(pu=n),"holderRender"in e&&(bu=o),r&&(yu=r)},Fb=()=>({getPrefixCls:(e,t)=>t||(e?`${ns()}-${e}`:ns()),getIconPrefixCls:Ag,getRootPrefixCls:()=>so||ns(),getTheme:()=>yu,holderRender:bu}),Lg=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:a,form:u,locale:c,componentSize:f,direction:d,space:m,splitter:h,virtual:y,dropdownMatchSelectWidth:p,popupMatchSelectWidth:x,popupOverflow:v,legacyLocale:b,parentContext:g,iconPrefixCls:$,theme:S,componentDisabled:E,segmented:C,statistic:T,spin:R,calendar:M,carousel:w,cascader:F,collapse:I,typography:k,checkbox:j,descriptions:L,divider:N,drawer:V,skeleton:K,steps:X,image:ge,layout:B,list:le,mentions:ee,modal:J,progress:G,result:ue,slider:O,breadcrumb:_,masonry:D,menu:te,pagination:H,input:lt,inputPassword:Ze,inputSearch:Je,textArea:xe,otp:Y,empty:Ce,badge:de,borderBeam:pt,radio:Fe,rate:et,ribbon:yt,switch:pn,transfer:Ae,avatar:Re,message:yn,tag:Vn,table:bn,card:Dt,cardMeta:wt,tabs:_e,timeline:Pt,timePicker:vn,upload:Tt,notification:pe,tree:se,colorPicker:ie,datePicker:Me,rangePicker:ke,flex:Rt,wave:Wt,dropdown:ut,warning:qt,tour:Mt,tooltip:ae,popover:Ot,popconfirm:_o,qrcode:xr,floatButton:Sr,floatButtonGroup:$r,variant:Ut,inputNumber:xn,treeSelect:Xt,watermark:Sn}=e,$n=l.useMemo(()=>{var oe;return Ve(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&((oe=c.default)!=null&&oe.locale)?c.default:c},[c]),Dn=l.useCallback((oe,Oe)=>{const{prefixCls:tt}=e;if(Oe)return Oe;const nt=tt||g.getPrefixCls("");return oe?`${nt}-${oe}`:nt},[g.getPrefixCls,e.prefixCls]),Kt=$||g.iconPrefixCls||Eo,Gt=n||g.csp,Cn=Tg(S,g.theme,{prefixCls:Dn("")}),bt={csp:Gt,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:a,locale:$n||b,direction:d,space:m,splitter:h,virtual:y,popupMatchSelectWidth:x??p,popupOverflow:v,getPrefixCls:Dn,iconPrefixCls:Kt,theme:Cn,segmented:C,statistic:T,spin:R,calendar:M,carousel:w,cascader:F,collapse:I,typography:k,checkbox:j,descriptions:L,divider:N,drawer:V,skeleton:K,steps:X,image:ge,input:lt,inputPassword:Ze,inputSearch:Je,textArea:xe,otp:Y,layout:B,list:le,mentions:ee,modal:J,progress:G,result:ue,slider:O,breadcrumb:_,masonry:D,menu:te,pagination:H,empty:Ce,badge:de,borderBeam:pt,radio:Fe,rate:et,ribbon:yt,switch:pn,transfer:Ae,avatar:Re,message:yn,tag:Vn,table:bn,card:Dt,cardMeta:wt,tabs:_e,timeline:Pt,timePicker:vn,upload:Tt,notification:pe,tree:se,colorPicker:ie,datePicker:Me,rangePicker:ke,flex:Rt,wave:Wt,dropdown:ut,warning:qt,tour:Mt,tooltip:ae,popover:Ot,popconfirm:_o,qrcode:xr,floatButton:Sr,floatButtonGroup:$r,variant:Ut,inputNumber:xn,treeSelect:Xt,watermark:Sn},qe={...g};Object.keys(bt).forEach(oe=>{bt[oe]!==void 0&&(qe[oe]=bt[oe])}),Fg.forEach(oe=>{const Oe=e[oe];Oe&&(qe[oe]=Oe)}),typeof r<"u"&&(qe.button={autoInsertSpace:r,...qe.button});const ft=$i(()=>qe,qe,(oe,Oe)=>{const tt=Object.keys(oe),nt=Object.keys(Oe);return tt.length!==nt.length||tt.some(Un=>oe[Un]!==Oe[Un])}),{layer:Cr}=l.useContext(hr),Wn=l.useMemo(()=>({prefixCls:Kt,csp:Gt,layer:Cr?"antd":void 0}),[Kt,Gt,Cr]);let me=l.createElement(l.Fragment,null,l.createElement(Og,{iconPrefixCls:Kt,csp:Gt}),l.createElement(Mg,{dropdownMatchSelectWidth:p}),t);const qn=l.useMemo(()=>{var oe,Oe,tt,nt;return On(((oe=hn.Form)==null?void 0:oe.defaultValidateMessages)||{},((tt=(Oe=ft.locale)==null?void 0:Oe.Form)==null?void 0:tt.defaultValidateMessages)||{},((nt=ft.form)==null?void 0:nt.validateMessages)||{},(u==null?void 0:u.validateMessages)||{})},[ft,u==null?void 0:u.validateMessages]);Object.keys(qn).length>0&&(me=l.createElement(Ph.Provider,{value:qn},me)),$n&&(me=l.createElement(Nh,{locale:$n,_ANT_MARK__:Lh},me)),me=l.createElement(Ui.Provider,{value:Wn},me),f&&(me=l.createElement(wg,{size:f},me)),me=l.createElement(Rg,null,me),ae!=null&&ae.unique&&(me=l.createElement(Cg,null,me));const ko=l.useMemo(()=>{const{algorithm:oe,token:Oe,components:tt,cssVar:nt,...Un}=Cn||{},Er=oe&&(!Array.isArray(oe)||oe.length>0)?Es(oe):Il,Xn={};Object.entries(tt||{}).forEach(([sa,Ho])=>{const He={...Ho};"algorithm"in He&&(He.algorithm===!0?He.theme=Er:(Array.isArray(He.algorithm)||We(He.algorithm))&&(He.theme=Es(He.algorithm)),delete He.algorithm),Xn[sa]=He});const wr={...lr,...Oe};return{...Un,theme:Er,token:wr,components:Xn,override:{override:wr,...Xn},cssVar:nt}},[Cn]);return S&&(me=l.createElement(Ll.Provider,{value:ko},me)),ft.warning&&(me=l.createElement(Yf.Provider,{value:ft.warning},me)),E!==void 0&&(me=l.createElement(Eg,{disabled:E},me)),l.createElement(Pe.Provider,{value:ft},me)},zn=e=>{const t=l.useContext(Pe),n=l.useContext(Gi);return l.createElement(Lg,{parentContext:t,legacyLocale:n,...e})};zn.ConfigContext=Pe;zn.SizeContext=Nn;zn.config=Ig;zn.useConfig=Pg;Object.defineProperty(zn,"SizeContext",{get:()=>Nn});const Ng=l.createContext({}),ht="none",kr="appear",Hr="enter",Br="leave",gc="none",it="prepare",rn="start",on="active",Ji="end",vu="prepared";function pc(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 _g(e,t){const n={animationend:pc("Animation","AnimationEnd"),transitionend:pc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const kg=_g(ve(),typeof window<"u"?window:{});let xu={};ve()&&({style:xu}=document.createElement("div"));const jr={};function Su(e){if(jr[e])return jr[e];const t=kg[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 xu)return jr[e]=t[s],jr[e]}}return""}const $u=Su("animationend"),Cu=Su("transitionend"),Hg=!!($u&&Cu),yc=$u||"animationend",bc=Cu||"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 Bg=e=>{const t=l.useRef();function n(o){o&&(o.removeEventListener(bc,e),o.removeEventListener(yc,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(bc,e),o.addEventListener(yc,e),t.current=o)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]},Eu=ve()?l.useLayoutEffect:l.useEffect,jg=()=>{const e=l.useRef(null);function t(){Te.cancel(e.current)}function n(r,o=2){t();const s=Te(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]},zg=[it,rn,on,Ji],Vg=[it,vu],wu=!1,Dg=!0;function Pu(e){return e===on||e===Ji}const Wg=(e,t,n)=>{const[r,o]=co(gc),[s,i]=jg();function a(){o(it,!0)}const u=t?Vg:zg;return Eu(()=>{if(r!==gc&&r!==Ji){const c=u.indexOf(r),f=u[c+1],d=n(r);d===wu?o(f,!0):f&&s(m=>{function h(){m.isCanceled()||o(f,!0)}d===!0?h():Promise.resolve(d).then(h)})}},[e,r]),l.useEffect(()=>()=>{i()},[]),[a,r]};function qg(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:a,onAppearPrepare:u,onEnterPrepare:c,onLeavePrepare:f,onAppearStart:d,onEnterStart:m,onLeaveStart:h,onAppearActive:y,onEnterActive:p,onLeaveActive:x,onAppearEnd:v,onEnterEnd:b,onLeaveEnd:g,onVisibleChanged:$}){const[S,E]=l.useState(),[C,T]=Ci(ht),[R,M]=l.useState([null,null]),w=C(),F=l.useRef(!1),I=l.useRef(null);function k(){return n()}const j=l.useRef(!1);function L(){T(ht),M([null,null])}const N=we(O=>{const _=C();if(_===ht)return;const D=k();if(O&&!O.deadline&&O.target!==D)return;const te=j.current;let H;_===kr&&te?H=v==null?void 0:v(D,O):_===Hr&&te?H=b==null?void 0:b(D,O):_===Br&&te&&(H=g==null?void 0:g(D,O)),te&&H!==!1&&L()}),[V]=Bg(N),K=O=>{switch(O){case kr:return{[it]:u,[rn]:d,[on]:y};case Hr:return{[it]:c,[rn]:m,[on]:p};case Br:return{[it]:f,[rn]:h,[on]:x};default:return{}}},X=l.useMemo(()=>K(w),[w]),[ge,B]=Wg(w,!e,O=>{var _;if(O===it){const D=X[it];return D?D(k()):wu}return O in X&&M([((_=X[O])==null?void 0:_.call(X,k(),null))||null,O]),O===on&&w!==ht&&(V(k()),i>0&&(clearTimeout(I.current),I.current=setTimeout(()=>{N({deadline:!0})},i))),O===vu&&L(),Dg}),le=Pu(B);j.current=le;const ee=l.useRef(null);Eu(()=>{if(F.current&&ee.current===t)return;E(t);const O=F.current;F.current=!0;let _;!O&&t&&o&&(_=kr),O&&t&&r&&(_=Hr),(O&&!t&&s||!O&&a&&!t&&s)&&(_=Br);const D=K(_);_&&(e||D[it])?(T(_),ge()):T(ht),ee.current=t},[t]),l.useEffect(()=>{(w===kr&&!o||w===Hr&&!r||w===Br&&!s)&&T(ht)},[o,r,s]),l.useEffect(()=>()=>{F.current=!1,clearTimeout(I.current)},[]);const J=l.useRef(!1);l.useEffect(()=>{S&&(J.current=!0),S!==void 0&&w===ht&&((J.current||S)&&($==null||$(S)),J.current=!0)},[S,w]);let G=R[0];X[it]&&B===rn&&(G={transition:"none",...G});const ue=R[1];return[C,B,G,S??t,!F.current&&w===ht&&e&&o?"NONE":B===rn||B===on?ue===B:!0]}function Tu(e){return(e==null?void 0:e.length)<2}function Ug(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=l.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:a=!0,forceRender:u,children:c,motionName:f,leavedClassName:d,eventProps:m}=o,{motion:h}=l.useContext(Ng),y=n(o,h),p=l.useRef();function x(){return $o(p.current)}const[v,b,g,$,S]=qg(y,i,x,o),E=v(),C=l.useRef($);$&&(C.current=!0);const T=l.useMemo(()=>{const w={};return Object.defineProperties(w,{nativeElement:{enumerable:!0,get:x},inMotion:{enumerable:!0,get:()=>()=>v()!==ht},enableMotion:{enumerable:!0,get:()=>()=>y}}),w},[]);l.useImperativeHandle(s,()=>T,[]);const R=l.useRef(0);S&&(R.current+=1);const M=l.useMemo(()=>{if(S==="NONE")return null;let w;const F={...m,visible:i};if(!c)w=null;else if(E===ht)$?w=c({...F},p):!a&&C.current&&d?w=c({...F,className:d},p):u||!a&&!d?w=c({...F,style:{display:"none"}},p):w=null;else{let I;b===it?I="prepare":Pu(b)?I="active":b===rn&&(I="start");const k=vc(f,`${E}-${I}`);w=c({...F,className:z(vc(f,E),{[k]:k&&I,[f]:typeof f=="string"}),style:g},p)}return w},[R.current]);if(Tu(c)&&Ri(M)){const w=kn(M);if(w!==p)return l.cloneElement(M,{ref:gn(w,p)})}return M});return r.displayName="CSSMotion",r}const Ru=Ug(Hg),oi="add",si="keep",ii="remove",rs="removed";function Xg(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function ai(e=[]){return e.map(Xg)}function Kg(e=[],t=[]){let n=[],r=0;const o=t.length,s=ai(e),i=ai(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:oi}))),r=d),n.push({...m,status:si}),r+=1,f=!0;break}}f||n.push({...c,status:ii})}),r<o&&(n=n.concat(i.slice(r).map(c=>({...c,status:oi}))));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!==ii),n.forEach(f=>{f.key===c&&(f.status=si)})}),n}function ci(){return ci=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},ci.apply(this,arguments)}const Gg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Yg(e,t=Ru){class n extends l.Component{constructor(){super(...arguments);P(this,"state",{keyEntities:[]});P(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(u=>u.key!==s?u:{...u,status:rs})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:u})=>u!==rs).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const a=ai(s);return{keyEntities:Kg(i,a).filter(c=>{const f=i.find(({key:d})=>c.key===d);return!(f&&f.status===rs&&c.status===ii)})}}render(){const{keyEntities:s}=this.state,{component:i,children:a,onVisibleChanged:u,onAllRemoved:c,...f}=this.props,d=i||l.Fragment,m={};return Gg.forEach(h=>{m[h]=f[h],delete f[h]}),delete f.keys,l.createElement(d,f,s.map(({status:h,...y},p)=>{const x=h===oi||h===si;return l.createElement(t,ci({},m,{key:y.key,visible:x,eventProps:y,onVisibleChanged:v=>{u==null||u(v,{key:y.key}),v||this.removeKey(y.key)}}),Tu(a)?v=>a({...v,index:p}):(v,b)=>a({...v,index:p},b))}))}}return P(n,"defaultProps",{component:"div"}),n}const Ab=Yg();var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var Qg={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"},Zg=Mu.default=Qg;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 Jg=(e,t)=>l.createElement(jn,li({},e,{ref:t,icon:Zg})),ep=l.forwardRef(Jg);function tp(...e){return e.find(t=>t!==void 0)}const Ib=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:o,defaultAllowClear:s,componentName:i}=e;return l.useMemo(()=>t??r??s?{clearIcon:tp(Ve(t)?t==null?void 0:t.clearIcon:n,Ve(r)?r==null?void 0:r.clearIcon:o,A.createElement(th,null)),disabled:(Ve(t)?t==null?void 0:t.disabled:void 0)??(Ve(r)?r==null?void 0:r.disabled:void 0)}:!1,[t,n,r,o,s])},Lb=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Ou={},xc=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!jt(e)&&!jt(t))return null;let n={closeIcon:typeof t!="boolean"&&jt(t)?t:void 0};return Ve(e)&&(n={...n,...e}),n},np=(e,t,n)=>e===!1?!1:e?ba(n,t,e):t===!1?!1:t?ba(n,t):n.closable?n:!1,rp=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...s}=e;let i=o;const a=nl(s,!0);return jt(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]},op=(e,t,n=Ou,r="Close")=>{const o=xc(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),s=xc(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),i={closeIcon:A.createElement(Dl,null),...n},a=np(o,s,i),u=typeof a!="boolean"?!!(a!=null&&a.disabled):!1;if(a===!1)return[!1,null,u,{}];const[c,f]=rp(a,i,r);return[!0,c,u,f]},Nb=(e,t,n=Ou)=>{const[r]=Io("global",hn.global);return A.useMemo(()=>op(e,t,{closeIcon:A.createElement(Dl,null),...n},r.close),[e,t,n,r.close])},sp=()=>A.useReducer(e=>e+1,0),Sc=(e,t)=>{let n={};return Ve(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},_b=(e,t,n,r)=>l.useMemo(()=>{const o=Sc(e,r),s=Sc(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]),kb=e=>{const[t,n]=l.useState(null);return[l.useCallback((o,s,i)=>{const a=t??o,u=Math.min(a||0,o),c=Math.max(a||0,o),f=s.slice(u,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]},$c=e=>e==="horizontal"||e==="vertical",ip=(e,t,n)=>l.useMemo(()=>{const r=$c(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=$c(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),Hb=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(o=>[].concat(dn(o),[r])),()=>{t(o=>o.filter(s=>s!==r))}),[]);return[e,n]},ap=(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),Bb=(e,t)=>l.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)}}):ap(r,n)}),jb=e=>{const t=l.useRef(e),[,n]=sp();return[()=>t.current,r=>{t.current=r,n()}]},cp=A.createContext(void 0),It=100,lp=10,zb=It*lp,Fu={Modal:It,Drawer:It,Popover:It,Popconfirm:It,Tooltip:It,Tour:It,FloatButton:It},up={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},fp=e=>e in Fu,Vb=(e,t)=>{const[,n]=Et(),r=A.useContext(cp),o=fp(e);let s;if(t!==void 0)s=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+Fu[e]:i+=up[e],s=[r===void 0?t:i,i]}return s},os=()=>({height:0,opacity:0}),Cc=e=>({height:(e==null?void 0:e.scrollHeight)??0,opacity:e?1:0}),dp=e=>({height:(e==null?void 0:e.offsetHeight)??0}),ss=(e,t)=>(t==null?void 0:t.deadline)===!0||eu(t)&&t.propertyName==="height",mp=(e=sr)=>({motionName:`${e}-motion-collapse`,onAppearStart:os,onEnterStart:os,onAppearActive:Cc,onEnterActive:Cc,onLeaveStart:dp,onLeaveActive:os,onAppearEnd:ss,onEnterEnd:ss,onLeaveEnd:ss,motionDeadline:500}),Db=(e,t,n)=>n!==void 0?n:`${e}-${t}`,hp=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:s,antCls:i}=e,[,a]=pr(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(u=>`${u} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(u=>`${u} ${r} ${o}`).join(",")}}}}},gp=Vm("Wave",hp),Au=`${sr}-wave-target`,Ec=e=>e?fn(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 pp(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:s}=n;return t&&Ec(n[t])?n[t]:[r,o,s].find(Ec)??null}function is(e){return Number.isNaN(e)?0:e}const yp=e=>{const{className:t,target:n,component:r,colorSource:o}=e,s=l.useRef(null),{getPrefixCls:i}=l.useContext(Pe),a=i(),[u]=pr(a,"wave"),[c,f]=l.useState(null),[d,m]=l.useState([]),[h,y]=l.useState(0),[p,x]=l.useState(0),[v,b]=l.useState(0),[g,$]=l.useState(0),[S,E]=l.useState(!1),C={left:h,top:p,width:v,height:g,borderRadius:d.map(M=>`${M}px`).join(" ")};c&&(C[u("color")]=c);function T(){const M=getComputedStyle(n);f(pp(n,o));const w=M.position==="static",{borderLeftWidth:F,borderTopWidth:I}=M;y(w?n.offsetLeft:is(-Number.parseFloat(F))),x(w?n.offsetTop:is(-Number.parseFloat(I))),b(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:j,borderBottomLeftRadius:L,borderBottomRightRadius:N}=M;m([k,j,N,L].map(V=>is(Number.parseFloat(V))))}if(l.useEffect(()=>{if(n){const M=Te(()=>{T(),E(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(T),w.observe(n)),()=>{Te.cancel(M),w==null||w.disconnect()}}},[n]),!S)return null;const R=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Au));return l.createElement(Ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,w)=>{var F;if(w.deadline||eu(w)&&w.propertyName==="opacity"){const I=(F=s.current)==null?void 0:F.parentElement;Kf(I).then(()=>{I==null||I.remove()})}return!1}},({className:M},w)=>l.createElement("div",{ref:gn(s,w),className:z(t,M,{"wave-quick":R}),style:C}))},bp=(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),Xf(l.createElement(yp,{...t,target:e}),r)},vp=(e,t,n,r)=>{const{wave:o}=l.useContext(Pe),[,s,i]=Et(),a=we(f=>{const d=e.current;if(o!=null&&o.disabled||!d)return;const m=d.querySelector(`.${Au}`)||d,{showEffect:h}=o||{};(h||bp)(m,{className:t,token:s,component:n,event:f,hashId:i,colorSource:r})}),u=l.useRef(null);return l.useEffect(()=>()=>{Te.cancel(u.current)},[]),f=>{Te.cancel(u.current),u.current=Te(()=>{a(f)})}},wc={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},xp=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:s,wave:i}=l.useContext(Pe),a=l.useRef(null),u=s("wave"),c=gp(u),f=vp(a,z(u,c),r,o);if(A.useEffect(()=>{const m=a.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||n)return;const h=x=>{!Oi(x.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(x)},y=i==null?void 0:i.triggerType,p=y&&y in wc?wc[y]:"click";return m.addEventListener(p,h,!0),()=>{m.removeEventListener(p,h,!0)}},[n,i==null?void 0:i.triggerType]),!A.isValidElement(t))return t??null;const d=xo(t)?gn(kn(t),a):a;return dr(t,{ref:d})},ea=e=>{const t=A.useContext(Nn);return A.useMemo(()=>e?fn(e)?e??t:We(e)?e(t):t:t,[e,t])},Sp=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},$p=Fo(["Space","Compact"],Sp,()=>({}),{resetStyle:!1}),Lo=l.createContext(null),Cp=(e,t)=>{const n=l.useContext(Lo),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,a=o==="vertical"?"-vertical-":"-";return z(`${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}},Ep=e=>{const{children:t}=e;return l.createElement(Lo.Provider,{value:null},t)},wp=e=>{const{children:t,...n}=e;return l.createElement(Lo.Provider,{value:l.useMemo(()=>n,[n])},t)},Wb=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Pe),{size:r,direction:o,orientation:s,block:i,prefixCls:a,className:u,rootClassName:c,children:f,vertical:d,...m}=e,[h,y]=ip(s,d,o),p=ea(E=>r??E),x=t("space-compact",a),[v]=$p(x),b=z(x,v,{[`${x}-rtl`]:n==="rtl",[`${x}-block`]:i,[`${x}-vertical`]:y},u,c),g=l.useContext(Lo),$=zt(f),S=l.useMemo(()=>$.map((E,C)=>{const T=(E==null?void 0:E.key)||`${x}-item-${C}`;return l.createElement(wp,{key:T,compactSize:p,compactDirection:h,isFirstItem:C===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:C===$.length-1&&(!g||(g==null?void 0:g.isLastItem))},E)}),[$,g,h,p,x]);return $.length===0?null:l.createElement("div",{className:b,...m},S)},Iu=l.createContext(void 0),Pp=e=>{const{getPrefixCls:t,direction:n}=l.useContext(Pe),{prefixCls:r,size:o,className:s,...i}=e,a=t("btn-group",r),[,,u]=Et(),c=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),f=z(a,{[`${a}-${c}`]:c,[`${a}-rtl`]:n==="rtl"},s,u);return l.createElement(Iu.Provider,{value:o},l.createElement("div",{...i,className:f}))},Pc=/^[\u4E00-\u9FA5]{2}$/,ui=Pc.test.bind(Pc);function Tp(e){return e==="danger"?{danger:!0}:{type:e}}function as(e){return e==="text"||e==="link"}function Rp(e,t,n,r){if(!yr(e))return;const o=t?" ":"";return!fn(e)&&!br(e)&&fn(e.type)&&ui(e.props.children)?dr(e,s=>{const i=z(s.className,r)||void 0,a={...n,...s.style};return{...s,children:s.children.split("").join(o),className:i,style:a}}):fn(e)?A.createElement("span",{className:r,style:n},ui(e)?e.split("").join(o):e):vg(e)?A.createElement("span",{className:r,style:n},e):dr(e,s=>({...s,className:z(s.className,r)||void 0,style:{...s.style,...n}}))}function Mp(e,t,n,r){let o=!1;const s=[];return A.Children.forEach(e,i=>{const a=fn(i)||br(i);if(o&&a){const u=s.length-1,c=s[u];s[u]=`${c}${i}`}else s.push(i);o=a}),A.Children.map(s,i=>Rp(i,t,n,r))}["default","primary","danger"].concat(dn(Ct));const Lu=l.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,i=z(`${s}-icon`,n);return A.createElement("span",{ref:t,className:i,style:r},o)}),Tc=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,i=z(`${n}-loading-icon`,r);return A.createElement(Lu,{prefixCls:n,className:i,style:o,ref:t},A.createElement(ep,{className:s}))}),cs=()=>({width:0,opacity:0,transform:"scale(0)"}),ls=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Op=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:i}=e,a=!!n;return r?A.createElement(Tc,{prefixCls:t,className:o,style:s}):A.createElement(Ao,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:cs,onAppearActive:ls,onEnterStart:cs,onEnterActive:ls,onLeaveStart:ls,onLeaveActive:cs},({className:u,style:c},f)=>{const d={...s,...c};return A.createElement(Tc,{prefixCls:t,className:z(o,u),style:d,ref:f})})},Fp=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`}}}},Rc=e=>({animationDuration:e,animationFillMode:"both"}),No=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
${s}${e}-enter,
${s}${e}-appear
`]:{...Rc(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...Rc(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"}}},Ap=new Z("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Ip=new Z("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),qb=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[No(r,Ap,Ip,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Lp=new Z("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Np=new Z("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),_p=new Z("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kp=new Z("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Hp=new Z("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bp=new Z("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jp=new Z("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zp=new Z("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Vp={"move-up":{inKeyframes:jp,outKeyframes:zp},"move-down":{inKeyframes:Lp,outKeyframes:Np},"move-left":{inKeyframes:_p,outKeyframes:kp},"move-right":{inKeyframes:Hp,outKeyframes:Bp}},Ub=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Vp[t];return[No(r,o,s,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dp=new Z("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Wp=new Z("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qp=new Z("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Up=new Z("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Xp=new Z("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Kp=new Z("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gp=new Z("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Yp=new Z("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Qp={"slide-up":{inKeyframes:Dp,outKeyframes:Wp},"slide-down":{inKeyframes:qp,outKeyframes:Up},"slide-left":{inKeyframes:Xp,outKeyframes:Kp},"slide-right":{inKeyframes:Gp,outKeyframes:Yp}},Xb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Qp[t];return[No(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}}]},Zp=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),Jp=new Z("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e0=new Z("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mc=new Z("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Oc=new Z("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),t0=new Z("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),n0=new Z("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),r0=new Z("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),o0=new Z("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),s0=new Z("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),i0=new Z("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),a0=new Z("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),c0=new Z("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),l0={zoom:{inKeyframes:Jp,outKeyframes:e0},"zoom-big":{inKeyframes:Mc,outKeyframes:Oc},"zoom-big-fast":{inKeyframes:Mc,outKeyframes:Oc},"zoom-left":{inKeyframes:r0,outKeyframes:o0},"zoom-right":{inKeyframes:s0,outKeyframes:i0},"zoom-up":{inKeyframes:t0,outKeyframes:n0},"zoom-down":{inKeyframes:a0,outKeyframes:c0}},Kb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=l0[t];return[No(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}}]},Fc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),u0=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}},Fc(`${t}-primary`,o),Fc(`${t}-danger`,s)]}},us=e=>Math.round(Number(e||0)),f0=e=>{if(e instanceof he)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 mr extends he{constructor(t){super(f0(t))}toHsbString(){const t=this.toHsb(),n=us(t.s*100),r=us(t.b*100),o=us(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 d0=e=>e instanceof mr?e:new mr(e);d0("#1677ff");const m0=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",h0=(e,t)=>e?m0(e,t):"";let fi=function(){function e(t){var r;if(Ro(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 mr(this.colors[0].color.metaColor)):this.metaColor=new mr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Mo(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return h0(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 Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var g0={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"},p0=Nu.default=g0;function di(){return di=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},di.apply(this,arguments)}const y0=(e,t)=>l.createElement(jn,di({},e,{ref:t,icon:p0})),b0=l.forwardRef(y0);function Ht(){return Ht=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},Ht.apply(null,arguments)}const v0=A.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:o,style:s,children:i,isActive:a,role:u,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:z(`${n}-panel`,{[`${n}-panel-active`]:a,[`${n}-panel-inactive`]:!a},o),style:s,role:u},A.createElement("div",{className:z(`${n}-body`,c==null?void 0:c.body),style:f==null?void 0:f.body},i)):null}),_u=A.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:o,onItemClick:s,forceRender:i,className:a,classNames:u={},styles:c={},prefixCls:f,collapsible:d,accordion:m,panelKey:h,extra:y,header:p,expandIcon:x,openMotion:v,destroyOnHidden:b,children:g,...$}=e,S=d==="disabled",E=y!=null&&typeof y!="boolean",C={onClick:()=>{s==null||s(h)},onKeyDown:I=>{(I.key==="Enter"||I.keyCode===ga.ENTER||I.which===ga.ENTER)&&(s==null||s(h))},role:m?"tab":"button","aria-expanded":o,"aria-disabled":S,tabIndex:S?-1:0},T=typeof x=="function"?x(e):A.createElement("i",{className:"arrow"}),R=T&&A.createElement("div",Ht({className:z(`${f}-expand-icon`,u==null?void 0:u.icon),style:c==null?void 0:c.icon},["header","icon"].includes(d)?C:{}),T),M=z(`${f}-item`,{[`${f}-item-active`]:o,[`${f}-item-disabled`]:S},a),F={className:z(r,`${f}-header`,{[`${f}-collapsible-${d}`]:!!d},u==null?void 0:u.header),style:c==null?void 0:c.header,...["header","icon"].includes(d)?{}:C};return A.createElement("div",Ht({},$,{ref:t,className:M}),A.createElement("div",F,n&&R,A.createElement("span",Ht({className:z(`${f}-title`,u==null?void 0:u.title),style:c==null?void 0:c.title},d==="header"?C:{}),p),E&&A.createElement("div",{className:`${f}-extra`},y)),A.createElement(Ru,Ht({visible:o,leavedClassName:`${f}-panel-hidden`},v,{forceRender:i,removeOnLeave:b}),({className:I,style:k},j)=>A.createElement(v0,{ref:j,prefixCls:f,className:I,classNames:u,style:k,styles:c,isActive:o,forceRender:i,role:m?"tabpanel":void 0},g)))});function ku(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 x0(e,t){return ku(e,t,(n,r)=>z(n,r))}function S0(e,t){return ku(e,t,(n,r)=>({...n,...r}))}const $0=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:o,destroyOnHidden:s,onItemClick:i,activeKey:a,openMotion:u,expandIcon:c,classNames:f,styles:d}=t;return e.map((m,h)=>{const{children:y,label:p,key:x,collapsible:v,onItemClick:b,destroyOnHidden:g,classNames:$,styles:S,...E}=m,C=String(x??h),T=v??o,R=g??s,M=F=>{T!=="disabled"&&(i(F),b==null||b(F))};let w=!1;return r?w=a[0]===C:w=a.indexOf(C)>-1,A.createElement(_u,Ht({},E,{classNames:x0(f,$),styles:S0(d,S),prefixCls:n,key:C,panelKey:C,isActive:w,accordion:r,openMotion:u,expandIcon:c,header:p,collapsible:T,onItemClick:M,destroyOnHidden:R}),y)})},C0=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:o,collapsible:s,destroyOnHidden:i,onItemClick:a,activeKey:u,openMotion:c,expandIcon:f,classNames:d,styles:m}=n,h=e.key||String(t),{header:y,headerClass:p,destroyOnHidden:x,collapsible:v,onItemClick:b}=e.props;let g=!1;o?g=u[0]===h:g=u.indexOf(h)>-1;const $=v??s,S=C=>{$!=="disabled"&&(a(C),b==null||b(C))},E={key:h,panelKey:h,header:y,headerClass:p,classNames:d,styles:m,isActive:g,prefixCls:r,destroyOnHidden:x??i,openMotion:c,accordion:o,children:e.props.children,onItemClick:S,expandIcon:f,collapsible:$};return typeof e.type=="string"?e:(Object.keys(E).forEach(C=>{typeof E[C]>"u"&&delete E[C]}),A.cloneElement(e,E))};function E0(e,t,n){return Array.isArray(e)?$0(e,n):zt(t).map((r,o)=>C0(r,o,n))}function Ac(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 w0=A.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:o,accordion:s,className:i,children:a,collapsible:u,openMotion:c,expandIcon:f,activeKey:d,defaultActiveKey:m,onChange:h,items:y,classNames:p,styles:x}=e,v=z(n,i),[b,g]=Wc(m,d),$=Ac(b),S=we(T=>{const R=Ac(T);g(R),h==null||h(R)}),E=T=>{S(s?$[0]===T?[]:[T]:$.includes(T)?$.filter(R=>R!==T):[...$,T])};Ne(!a,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const C=E0(y,a,{prefixCls:n,accordion:s,openMotion:c,expandIcon:f,collapsible:u,destroyOnHidden:r,onItemClick:E,activeKey:$,classNames:p,styles:x});return A.createElement("div",Ht({ref:t,className:v,style:o,role:s?"tablist":void 0},nl(e,{aria:!0,data:!0})),C)}),ta=Object.assign(w0,{Panel:_u}),{Panel:Gb}=ta,P0=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(Pe),{prefixCls:r,className:o,showArrow:s=!0}=e,i=n("collapse",r),a=z({[`${i}-no-arrow`]:!s},o);return l.createElement(ta.Panel,{ref:t,...e,prefixCls:i,className:a})}),T0=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:s,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:u,lineWidth:c,lineType:f,colorBorder:d,colorText:m,colorTextHeading:h,colorTextDisabled:y,fontSizeLG:p,lineHeight:x,lineHeightLG:v,marginSM:b,paddingSM:g,paddingLG:$,paddingXS:S,motionDurationSlow:E,fontSizeIcon:C,contentPadding:T,fontHeight:R,fontHeightLG:M}=e,w=`${ye(c)} ${f} ${d}`;return{[t]:{...km(e),backgroundColor:o,border:w,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,"&:first-child":{[`
&,
& > ${t}-header`]:{borderRadius:`${ye(u)} ${ye(u)} 0 0`}},"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${ye(u)} ${ye(u)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:h,lineHeight:x,cursor:"pointer",transition:`all ${E}, visibility 0s`,...Oo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",marginInlineEnd:b},[`${t}-arrow`]:{...qi(),fontSize:C,transition:`transform ${E}`,svg:{transition:`transform ${E}`}},[`${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:w,[`& > ${t}-body`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(g).sub(S).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:g}}},"&-large":{[`> ${t}-item`]:{fontSize:p,lineHeight:v,[`> ${t}-header`]:{padding:a,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc($).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:$}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${ye(u)} ${ye(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:y,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:b}}}}}}},R0=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},M0=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${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}}}},O0=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}}}}}},F0=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),A0=Fo("Collapse",e=>{const t=Vt(e,{collapseHeaderPaddingSM:`${ye(e.paddingXS)} ${ye(e.paddingSM)}`,collapseHeaderPaddingLG:`${ye(e.padding)} ${ye(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[T0(t),M0(t),O0(t),R0(t),Fp(t)]},F0),I0=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:s,style:i,classNames:a,styles:u}=_i("collapse"),{prefixCls:c,className:f,rootClassName:d,style:m,bordered:h=!0,ghost:y,size:p,expandIconPlacement:x,expandIconPosition:v,children:b,destroyInactivePanel:g,destroyOnHidden:$,expandIcon:S,classNames:E,styles:C}=e,T=ea(B=>p??B??"middle"),R=n("collapse",c),M=n(),[w,F]=A0(R),I=x??v??"start",k={...e,size:T,bordered:h,expandIconPlacement:I},[j,L]=Ki([a,E],[u,C],{props:k}),N=S??o,V=l.useCallback((B={})=>{const le=We(N)?N(B):l.createElement(b0,{rotate:B.isActive?r==="rtl"?-90:90:void 0,"aria-label":B.isActive?"expanded":"collapsed"});return dr(le,ee=>({className:z(ee.className,`${R}-arrow`)}))},[N,R,r]),K=z(`${R}-icon-placement-${I}`,{[`${R}-borderless`]:!h,[`${R}-rtl`]:r==="rtl",[`${R}-ghost`]:!!y,[`${R}-large`]:T==="large",[`${R}-small`]:T==="small"},s,f,d,w,F,j.root),X=l.useMemo(()=>({...mp(M),motionAppear:!1,leavedClassName:`${R}-panel-hidden`}),[M,R]),ge=l.useMemo(()=>b?zt(b).map(B=>B):null,[b]);return l.createElement(ta,{ref:t,openMotion:X,...Li(e,["rootClassName"]),expandIcon:V,prefixCls:R,className:K,style:{...L.root,...i,...m},classNames:j,styles:L,destroyOnHidden:$??g},ge)}),Yb=Object.assign(I0,{Panel:P0}),Qb=e=>e instanceof fi?e:new fi(e),L0=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),i=new mr(e.toRgbString()).onBackground(t).toHsv();return s<=.5?i.v>.5:n*.299+r*.587+o*.114>192},Hu=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Vt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Bu=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??Yr(t),s=e.contentLineHeightSM??Yr(n),i=e.contentLineHeightLG??Yr(r),a=L0(new fi(e.colorBgSolid),"#fff")?"#000":"#fff",u=Ct.reduce((d,m)=>({...d,[`${m}ShadowColor`]:`0 ${ye(e.controlOutlineWidth)} 0 ${Jn(e[`${m}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,f=e.colorBgContainerDisabled;return{...u,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}},N0=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,s]=pr(n,"btn");return{[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:s("border-color"),[o("border-color-active")]:s("border-color"),[o("border-color-disabled")]:s("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color"),[o("text-color-disabled")]:s("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:s("bg-color"),[o("bg-color-active")]:s("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:s("color-base"),[o("solid-bg-color-hover")]:s("color-hover"),[o("solid-bg-color-active")]:s("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:s("solid-bg-color"),[o("bg-color-hover")]:s("solid-bg-color-hover"),[o("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:s("color-base"),[o("border-color-hover")]:s("color-hover"),[o("border-color-active")]:s("color-active"),[o("bg-color")]:s("bg-color-container"),[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("bg-color")]:s("color-light"),[o("bg-color-hover")]:s("color-light-hover"),[o("bg-color-active")]:s("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:s("color-light"),[o("bg-color-active")]:s("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},Ct.map(i=>{const a=e[`${i}6`],u=e[`${i}1`],c=e[`${i}Hover`],f=e[`${i}2`],d=e[`${i}3`],m=e[`${i}Active`],h=e[`${i}ShadowColor`];return{[`&${t}-color-${i}`]:{[o("color-base")]:a,[o("color-hover")]:c,[o("color-active")]:m,[o("color-light")]:u,[o("color-light-hover")]:f,[o("color-light-active")]:d,[o("shadow")]:h}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},_0=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:i,iconGap:a,calc:u}=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",...Zp(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:qi(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":Oo(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:u(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(a).mul(-1).equal()}}}}}},k0=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:u,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${ye(u)} ${ye(i)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[a]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:k0(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},H0=e=>{const t=Vt(e,{fontSize:e.contentFontSize});return na(t,e.componentCls)},B0=e=>{const t=Vt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return na(t,`${e.componentCls}-sm`)},j0=e=>{const t=Vt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return na(t,`${e.componentCls}-lg`)},z0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},V0=Fo("Button",e=>{const t=Hu(e);return[_0(t),H0(t),B0(t),j0(t),z0(t),N0(t),u0(t)]},Bu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function D0(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:i}=n,a=i?"> *":"",u=a?` ${a}`:"",c=m=>m.filter(Boolean).map(h=>`&:${h}${u}`).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 W0(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 q0(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,s=`${o}-compact`;return{[s]:{...D0(e,s,t,o),...W0(o,s,t)}}}function U0(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 X0(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 K0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...U0(e,t,e.componentCls),...X0(e.componentCls,t)}}}const G0=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(),[u,c]=pr(t,"btn"),f=d=>({[`${n}-compact${d?"-vertical":""}-item`]:{[u("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`]:{[u("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${s})`}}]},Y0=Dm(["Button","compact"],e=>{const t=Hu(e);return[q0(t),K0(t),G0(t)]},Bu);function Q0(e){if(Ve(e)){let t=e==null?void 0:e.delay;return t=br(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Z0={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},J0=A.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:s,variant:i,type:a,danger:u=!1,shape:c,size:f,disabled:d,className:m,rootClassName:h,children:y,icon:p,iconPosition:x,iconPlacement:v,ghost:b=!1,block:g=!1,htmlType:$="button",classNames:S,styles:E,style:C,autoInsertSpace:T,autoFocus:R,...M}=e,w=zt(y),F=a||"default",{getPrefixCls:I,direction:k,autoInsertSpace:j,className:L,style:N,classNames:V,styles:K,loadingIcon:X,shape:ge,color:B,variant:le}=_i("button"),ee=c||ge||"default",[J,G]=l.useMemo(()=>{if(s&&i)return[s,i];if(a||u){const ae=Z0[F]||[];return u?["danger",ae[1]]:ae}return i==="solid"?["primary",i]:B&&le?[B,le]:le==="solid"?["primary",le]:["default","outlined"]},[s,i,a,u,B,le,F]),[ue,O]=l.useMemo(()=>b&&G==="solid"?[J,"outlined"]:[J,G],[J,G,b]),_=ue==="danger",D=_?"dangerous":ue,te=T??j??!0,H=I("btn",o),[lt,Ze]=V0(H),Je=l.useContext(oo),xe=d??Je,Y=l.useContext(Iu),Ce=l.useMemo(()=>Q0(r),[r]),[de,pt]=l.useState(Ce.loading),[Fe,et]=l.useState(!1),yt=l.useRef(null),pn=Pi(t,yt),Ae=w.length===1&&!p&&!as(O),Re=l.useRef(!0);A.useEffect(()=>(Re.current=!1,()=>{Re.current=!0}),[]),$t(()=>{let ae=null;Ce.delay>0?ae=setTimeout(()=>{ae=null,pt(!0)},Ce.delay):pt(Ce.loading);function Ot(){ae&&(clearTimeout(ae),ae=null)}return Ot},[Ce.delay,Ce.loading]),l.useEffect(()=>{if(!yt.current||!te)return;const ae=yt.current.textContent||"";Ae&&ui(ae)?Fe||et(!0):Fe&&et(!1)}),l.useEffect(()=>{R&&yt.current&&yt.current.focus()},[]);const yn=A.useCallback(ae=>{var Ot;if(de||xe){ae.preventDefault();return}(Ot=e.onClick)==null||Ot.call(e,("href"in e,ae))},[e.onClick,de,xe]),{compactSize:Vn,compactItemClassnames:bn}=Cp(H,k),Dt=ea(ae=>f??Vn??Y??ae),wt=de?"loading":p,_e=v??x??"start",Pt=Li(M,["navigate"]),vn={...e,type:F,color:ue,variant:O,danger:_,shape:ee,size:Dt,disabled:xe,loading:de,iconPlacement:_e},[Tt,pe]=Ki([n?void 0:V,S],[n?void 0:K,E],{props:vn}),se=z(H,lt,Ze,{[`${H}-${ee}`]:ee!=="default"&&ee!=="square"&&ee,[`${H}-${F}`]:F,[`${H}-dangerous`]:u,[`${H}-color-${D}`]:D,[`${H}-variant-${O}`]:O,[`${H}-lg`]:Dt==="large",[`${H}-sm`]:Dt==="small",[`${H}-icon-only`]:!y&&y!==0&&!!wt,[`${H}-background-ghost`]:b&&!as(O),[`${H}-loading`]:de,[`${H}-two-chinese-chars`]:Fe&&te&&!de,[`${H}-block`]:g,[`${H}-rtl`]:k==="rtl",[`${H}-icon-end`]:_e==="end"},bn,m,h,L,Tt.root),ie={...pe.root,...N,...C},Me={className:Tt.icon,style:pe.icon},ke=ae=>A.createElement(Lu,{prefixCls:H,...Me},ae),Rt=A.createElement(Op,{existIcon:!!p,prefixCls:H,loading:de,mount:Re.current,...Me}),Wt=Ve(r)&&r.icon||X;let ut;p&&!de?ut=ke(p):r&&Wt?ut=ke(Wt):ut=Rt;const qt=yr(y)?Mp(y,Ae&&te,pe.content,Tt.content):null;if(Pt.href!==void 0)return A.createElement("a",{...Pt,className:z(se,{[`${H}-disabled`]:xe}),href:xe?void 0:Pt.href,style:ie,onClick:yn,ref:pn,tabIndex:xe?-1:0,"aria-disabled":xe},ut,qt);let Mt=A.createElement("button",{...M,type:$,className:se,style:ie,onClick:yn,disabled:xe,ref:pn},ut,qt,bn&&A.createElement(Y0,{prefixCls:H}));return as(O)||(Mt=A.createElement(xp,{component:"Button",disabled:de},Mt)),Mt}),ra=J0;ra.Group=Pp;ra.__ANT_BUTTON=!0;const Zb=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:s,autoFocus:i,emitEvent:a,isSilent:u,quitOnNullishReturnValue:c,actionFn:f}=e,d=l.useRef(!1),m=l.useRef(null),[h,y]=co(!1),p=(...b)=>{s==null||s(...b)};l.useEffect(()=>{let b=null;return i&&(b=setTimeout(()=>{var g;(g=m.current)==null||g.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[i]);const x=b=>{ts(b)&&(y(!0),b.then((...g)=>{y(!1,!0),p.apply(void 0,g),d.current=!1},g=>{if(y(!1,!0),d.current=!1,!(u!=null&&u()))return Promise.reject(g)}))},v=b=>{if(d.current)return;if(d.current=!0,!f){p();return}let g;if(a){if(g=f(b),c&&!ts(g)){d.current=!1,p(b);return}}else if(f.length)g=f(s),d.current=!1;else if(g=f(),!ts(g)){p();return}x(g)};return l.createElement(ra,{...Tp(t),onClick:v,loading:h,prefixCls:r,...o,ref:m},n)},cn="RC_FORM_INTERNAL_HOOKS",re=()=>{Ne(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_n=l.createContext({getFieldValue:re,getFieldsValue:re,getFieldError:re,getFieldWarning:re,getFieldsError:re,isFieldsTouched:re,isFieldTouched:re,isFieldValidating:re,isFieldsValidating:re,resetFields:re,setFields:re,setFieldValue:re,setFieldsValue:re,validateFields:re,submit:re,getInternalHooks:()=>(re(),{dispatch:re,initEntityValue:re,registerField:re,useSubscribe:re,setInitialValues:re,destroyForm:re,setCallbacks:re,registerWatch:re,getFields:re,setValidateMessages:re,setPreserve:re,getInitialValue:re})}),io=l.createContext(null);function mi(e){return e==null?[]:Array.isArray(e)?e:[e]}function ey(e){return e&&!!e._init}function hi(){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 fs=hi(),ty=/%[sdj%]/g;let ny=()=>{};function gi(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 De(e,...t){let n=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(ty,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 ry(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||ry(t)&&typeof e=="string"&&!e)}function oy(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 Ic(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 sy(e){const t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}class Lc extends Error{constructor(n,r){super("Async Validation Error");P(this,"errors");P(this,"fields");this.errors=n,this.fields=r}}function iy(e,t,n,r,o){if(t.first){const d=new Promise((m,h)=>{const y=x=>(r(x),x.length?h(new Lc(x,gi(x))):m(o)),p=sy(e);Ic(p,n,y)});return d.catch(m=>m),d}const s=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),a=i.length;let u=0;const c=[],f=new Promise((d,m)=>{const h=y=>{if(c.push.apply(c,y),u++,u===a)return r(c),c.length?m(new Lc(c,gi(c))):d(o)};i.length||(r(c),d(o)),i.forEach(y=>{const p=e[y];s.indexOf(y)!==-1?Ic(p,n,h):oy(p,n,h)})});return f.catch(d=>d),f}function ay(e){return!!(e&&e.message!==void 0)}function cy(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 Nc(e,t){return n=>{let r;return e.fullFields?r=cy(t,e.fullFields):r=t[n.field||e.fullField],ay(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 _c(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 Rn="enum",ly=(e,t,n,r,o)=>{e[Rn]=Array.isArray(e[Rn])?e[Rn]:[],e[Rn].indexOf(t)===-1&&r.push(De(o.messages[Rn],e.fullField,e[Rn].join(", ")))},uy=(e,t,n,r,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(De(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(De(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},fy=(e,t,n,r,o)=>{const s=typeof e.len=="number",i=typeof e.min=="number",a=typeof e.max=="number",u=/[\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(u,"_").length),s?c!==e.len&&r.push(De(o.messages[f].len,e.fullField,e.len)):i&&!a&&c<e.min?r.push(De(o.messages[f].min,e.fullField,e.min)):a&&!i&&c>e.max?r.push(De(o.messages[f].max,e.fullField,e.max)):i&&a&&(c<e.min||c>e.max)&&r.push(De(o.messages[f].range,e.fullField,e.min,e.max))},ju=(e,t,n,r,o,s)=>{e.required&&(!n.hasOwnProperty(e.field)||$e(t,s||e.type))&&r.push(De(o.messages.required,e.fullField))};let zr;const dy=()=>{if(zr)return zr;const e="[a-fA-F\\d:]",t=S=>S&&S.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}$)`),u=new RegExp(`^${n}$`),c=new RegExp(`^${i}$`),f=S=>S&&S.exact?a:new RegExp(`(?:${t(S)}${n}${t(S)})|(?:${t(S)}${i}${t(S)})`,"g");f.v4=S=>S&&S.exact?u:new RegExp(`${t(S)}${n}${t(S)}`,"g"),f.v6=S=>S&&S.exact?c:new RegExp(`${t(S)}${i}${t(S)}`,"g");const d="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,y=f.v6().source,$=`(?:${d}|www\\.)${m}(?:localhost|${h}|${y}|(?:(?:[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 zr=new RegExp(`(?:^${$}$)`,"i"),zr},ds={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},er={integer(e){return er.number(e)&&parseInt(e,10)===e},float(e){return er.number(e)&&!er.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"&&!er.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(ds.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(ds.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(dy())},hex(e){return typeof e=="string"&&!!e.match(ds.hex)}},my=(e,t,n,r,o)=>{if(e.required&&t===void 0){ju(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?er[i](t)||r.push(De(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(De(o.messages.types[i],e.fullField,e.type))},hy=(e,t,n,r,o)=>{(/^\s+$/.test(t)||t==="")&&r.push(De(o.messages.whitespace,e.fullField))},U={required:ju,whitespace:hy,type:my,range:fy,enum:ly,pattern:uy},gy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o)}n(s)},py=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();U.required(e,t,r,s,o,"array"),t!=null&&(U.type(e,t,r,s,o),U.range(e,t,r,s,o))}n(s)},yy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&U.type(e,t,r,s,o)}n(s)},by=(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(U.required(e,t,r,s,o),!$e(t,"date")){let a;t instanceof Date?a=t:a=new Date(t),U.type(e,a,r,s,o),a&&U.range(e,a.getTime(),r,s,o)}}n(s)},vy="enum",xy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&U[vy](e,t,r,s,o)}n(s)},Sy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&(U.type(e,t,r,s,o),U.range(e,t,r,s,o))}n(s)},$y=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&(U.type(e,t,r,s,o),U.range(e,t,r,s,o))}n(s)},Cy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&U.type(e,t,r,s,o)}n(s)},Ey=(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();U.required(e,t,r,s,o),t!==void 0&&(U.type(e,t,r,s,o),U.range(e,t,r,s,o))}n(s)},wy=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),t!==void 0&&U.type(e,t,r,s,o)}n(s)},Py=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,"string")&&!e.required)return n();U.required(e,t,r,s,o),$e(t,"string")||U.pattern(e,t,r,s,o)}n(s)},Ty=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t)&&!e.required)return n();U.required(e,t,r,s,o),$e(t)||U.type(e,t,r,s,o)}n(s)},Ry=(e,t,n,r,o)=>{const s=[],i=Array.isArray(t)?"array":typeof t;U.required(e,t,r,s,o,i),n(s)},My=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if($e(t,"string")&&!e.required)return n();U.required(e,t,r,s,o,"string"),$e(t,"string")||(U.type(e,t,r,s,o),U.range(e,t,r,s,o),U.pattern(e,t,r,s,o),e.whitespace===!0&&U.whitespace(e,t,r,s,o))}n(s)},Vr=(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();U.required(e,t,r,i,o,s),$e(t,s)||U.type(e,t,r,i,o)}n(i)},Yn={string:My,method:Cy,number:Ey,boolean:yy,regexp:Ty,integer:$y,float:Sy,array:py,object:wy,enum:xy,pattern:Py,date:by,url:Vr,hex:Vr,email:Vr,tel:Vr,required:Ry,any:gy},Nt=class Nt{constructor(t){P(this,"rules",null);P(this,"_messages",fs);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=_c(hi(),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 y(p){Array.isArray(p)?m=m.concat(...p):m.push(p)}for(let p=0;p<d.length;p++)y(d[p]);m.length?(h=gi(m),i(m,h)):i(null,o)}if(s.messages){let d=this.messages();d===fs&&(d=hi()),_c(d,s.messages),s.messages=d}else s.messages=this.messages();const u={};(s.keys||Object.keys(this.rules)).forEach(d=>{const m=this.rules[d];let h=o[d];m.forEach(y=>{let p=y;typeof p.transform=="function"&&(o===t&&(o={...o}),h=o[d]=p.transform(h),h!=null&&(p.type=p.type||(Array.isArray(h)?"array":typeof h))),typeof p=="function"?p={validator:p}:p={...p},p.validator=this.getValidationMethod(p),p.validator&&(p.field=d,p.fullField=p.fullField||d,p.type=this.getType(p),u[d]=u[d]||[],u[d].push({rule:p,value:h,source:o,field:d}))})});const f={};return iy(u,s,(d,m)=>{var b;const h=d.rule;let y=(h.type==="object"||h.type==="array")&&(typeof h.fields=="object"||typeof h.defaultField=="object");y=y&&(h.required||!h.required&&d.value),h.field=d.field;function p(g,$){return{...$,fullField:`${h.fullField}.${g}`,fullFields:h.fullFields?[...h.fullFields,g]:[g]}}function x(g=[]){let $=Array.isArray(g)?g:[g];!s.suppressWarning&&$.length&&Nt.warning("async-validator:",$),$.length&&h.message!==void 0&&h.message!==null&&($=[].concat(h.message));let S=$.map(Nc(h,o));if(s.first&&S.length)return f[h.field]=1,m(S);if(!y)m(S);else{if(h.required&&!d.value)return h.message!==void 0?S=[].concat(h.message).map(Nc(h,o)):s.error&&(S=[s.error(h,De(s.messages.required,h.field))]),m(S);let E={};h.defaultField&&Object.keys(d.value).map(R=>{E[R]=h.defaultField}),E={...E,...d.rule.fields};const C={};Object.keys(E).forEach(R=>{const M=E[R],w=Array.isArray(M)?M:[M];C[R]=w.map(p.bind(null,R))});const T=new Nt(C);T.messages(s.messages),d.rule.options&&(d.rule.options.messages=s.messages,d.rule.options.error=s.error),T.validate(d.value,d.rule.options||s,R=>{const M=[];S&&S.length&&M.push(...S),R&&R.length&&M.push(...R),m(M.length?M:null)})}}let v;if(h.asyncValidator)v=h.asyncValidator(h,d.value,x,d.source,s);else if(h.validator){try{v=h.validator(h,d.value,x,d.source,s)}catch(g){(b=console.error)==null||b.call(console,g),s.suppressValidatorError||setTimeout(()=>{throw g},0),x(g.message)}v===!0?x():v===!1?x(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||`${h.fullField||h.field} fails`):v instanceof Array?x(v):v instanceof Error&&x(v.message)}v&&v.then&&v.then(()=>x(),g=>x(g))},d=>{a(d)},o)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Yn.hasOwnProperty(t.type))throw new Error(De("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"?Yn.required:Yn[this.getType(t)]||void 0}};P(Nt,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Yn[n]=r}),P(Nt,"warning",ny),P(Nt,"messages",fs),P(Nt,"validators",Yn);let pi=Nt;const Ie="'${name}' is not a valid ${type}",zu={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}"}},kc=pi;function Oy(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 Hc="CODE_LOGIC_ERROR";async function yi(e,t,n,r,o){const s={...n};if(delete s.ruleIndex,kc.warning=()=>{},s.validator){const m=s.validator;s.validator=(...h)=>{try{return m(...h)}catch(y){return console.error(y),Promise.reject(Hc)}}}let i=null;s&&s.type==="array"&&s.defaultField&&(i=s.defaultField,delete s.defaultField);const a=new kc({[e]:[s]}),u=On(zu,r.validateMessages);a.messages(u);let c=[];try{await Promise.resolve(a.validate({[e]:t},{...r}))}catch(m){m.errors&&(c=m.errors.map(({message:h},y)=>{const p=h===Hc?u.default:h;return l.isValidElement(p)?l.cloneElement(p,{key:`error_${y}`}):p}))}if(!c.length&&i&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((h,y)=>yi(`${e}.${y}`,h,i,r,o)))).reduce((h,y)=>[...h,...y],[]);const f={...n,name:e,enum:(n.enum||[]).join(", "),...o};return c.map(m=>typeof m=="string"?Oy(m,f):m)}function Fy(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,y,p)=>{let x=!1;const b=d(h,y,(...g)=>{Promise.resolve().then(()=>{Ne(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||p(...g)})});x=b&&typeof b.then=="function"&&typeof b.catch=="function",Ne(x,"`callback` is deprecated. Please return a promise instead."),x&&b.then(()=>{p()}).catch(g=>{p(g||" ")})}),m}).sort(({warningOnly:c,ruleIndex:f},{warningOnly:d,ruleIndex:m})=>!!c==!!d?f-m:c?1:-1);let u;if(o===!0)u=new Promise(async(c,f)=>{for(let d=0;d<a.length;d+=1){const m=a[d],h=await yi(i,t,m,r,s);if(h.length){f([{errors:h,rule:m}]);return}}c([])});else{const c=a.map(f=>yi(i,t,f,r,s).then(d=>({errors:d,rule:f})));u=(o?Iy(c):Ay(c)).then(f=>Promise.reject(f))}return u.catch(c=>c),u}async function Ay(e){return Promise.all(e).then(t=>[].concat(...t))}async function Iy(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 fe(e){return mi(e)}function Bc(e,t){let n={};return t.forEach(r=>{const o=Ge(e,r);n=ze(n,r,o)}),n}function In(e,t,n=!1){return e&&e.some(r=>ao(t,r,n))}function ao(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,o)=>e[o]===r)}function Ly(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 Ny(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function jc(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 Vu=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class _y{constructor(t){P(this,"namePathList",[]);P(this,"taskId",0);P(this,"watcherList",new Set);P(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=>!ao(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;Vu(()=>{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 ky(){return new Promise(e=>{Vu(()=>{Te(()=>{e()})})})}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 Yt=[],Qn=[];function ms(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}class Du extends l.PureComponent{constructor(n){super(n);P(this,"state",{resetCount:0});P(this,"cancelRegisterFunc",null);P(this,"mounted",!1);P(this,"touched",!1);P(this,"dirty",!1);P(this,"validatePromise");P(this,"prevValidating");P(this,"errors",Yt);P(this,"warnings",Qn);P(this,"cancelRegister",()=>{const{preserve:n,isListField:r,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,fe(o)),this.cancelRegisterFunc=null});P(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:o=[]}=r;return n!==void 0?[...o,...n]:[]});P(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(o=>typeof o=="function"?o(r):o)});P(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});P(this,"metaCache",null);P(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const o={...this.getMeta(),destroy:n};bs(this.metaCache,o)||r(o),this.metaCache=o}else this.metaCache=null});P(this,"onStoreChange",(n,r,o)=>{const{shouldUpdate:s,dependencies:i=[],onReset:a}=this.props,{store:u}=o,c=this.getNamePath(),f=this.getValue(n),d=this.getValue(u),m=r&&In(r,c);switch(o.type==="valueUpdate"&&o.source==="external"&&!bs(f,d)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Yt,this.warnings=Qn,this.triggerMetaEvent()),o.type){case"reset":if(!r||m){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Yt,this.warnings=Qn,this.triggerMetaEvent(),a==null||a(),this.refresh();return}break;case"remove":{if(s&&ms(s,n,u,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||Yt),"warnings"in h&&(this.warnings=h.warnings||Qn),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in h&&In(r,c,!0)){this.reRender();return}if(s&&!c.length&&ms(s,n,u,f,d,o)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(fe).some(y=>In(o.relatedFields,y))){this.reRender();return}break}default:if(m||(!i.length||c.length||s)&&ms(s,n,u,f,d,o)){this.reRender();return}break}s===!0&&this.reRender()});P(this,"validateRules",n=>{const r=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:i=!1,delayFrame:a}=n||{},u=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:c=!1,messageVariables:f,validateDebounce:d}=this.props;a&&await ky();let m=this.getRules();if(s&&(m=m.filter(y=>y).filter(y=>{const{validateTrigger:p}=y;return p?mi(p).includes(s):!0})),d&&s&&(await new Promise(y=>{setTimeout(y,d)}),this.validatePromise!==u))return[];const h=Fy(r,o,m,n,c,f);return h.catch(y=>y).then((y=Yt)=>{var p;if(this.validatePromise===u){this.validatePromise=null;const x=[],v=[];(p=y.forEach)==null||p.call(y,({rule:{warningOnly:b},errors:g=Yt})=>{b?v.push(...g):x.push(...g)}),this.errors=x,this.warnings=v,this.triggerMetaEvent(),this.reRender()}}),h});return i||(this.validatePromise=u,this.dirty=!0,this.errors=Yt,this.warnings=Qn,this.triggerMetaEvent(),this.reRender()),u});P(this,"isFieldValidating",()=>!!this.validatePromise);P(this,"isFieldTouched",()=>this.touched);P(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(cn);return r(this.getNamePath())!==void 0});P(this,"getErrors",()=>this.errors);P(this,"getWarnings",()=>this.warnings);P(this,"isListField",()=>this.props.isListField);P(this,"isList",()=>this.props.isList);P(this,"isPreserve",()=>this.props.preserve);P(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}));P(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=zt(n);return r.length!==1||!l.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});P(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,o=this.getNamePath();return Ge(n||r(!0),o)});P(this,"getControlled",(n={})=>{const{name:r,trigger:o="onChange",validateTrigger:s,getValueFromEvent:i,normalize:a,valuePropName:u="value",getValueProps:c,fieldContext:f}=this.props,d=s!==void 0?s:f.validateTrigger,m=this.getNamePath(),{getInternalHooks:h,getFieldsValue:y}=f,{dispatch:p}=h(cn),x=this.getValue(),v=c||(E=>({[u]:E})),b=n[o],g=r!==void 0?v(x):{},$={...n,...g};return $[o]=(...E)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let C;i?C=i(...E):C=Ny(u,...E),a&&(C=a(C,x,y(!0))),C!==x&&p({type:"updateValue",namePath:m,value:C}),b&&b(...E)},mi(d||[]).forEach(E=>{const C=$[E];$[E]=(...T)=>{C&&C(...T);const{rules:R}=this.props;R&&R.length&&p({type:"validateField",namePath:m,triggerName:E})}}),$});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:o}=r(cn);o(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:o}=r,{registerField:s}=o(cn);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:l.isValidElement(o)?i=l.cloneElement(o,this.getControlled(o.props)):(Ne(!o,"`children` of Field is not validate ReactElement."),i=o),l.createElement(l.Fragment,{key:n},i)}}P(Du,"contextType",_n);function Wu({name:e,...t}){const n=l.useContext(_n),r=l.useContext(io),o=e!==void 0?fe(e):void 0,s=t.isListField??!!r;let i="keep";return s||(i=`_${(o||[]).join("_")}`),l.createElement(Du,bi({key:i,name:o,isListField:s},t,{fieldContext:n}))}function Hy({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:s}){const i=l.useContext(_n),a=l.useContext(io),c=l.useRef({keys:[],id:0}).current,f=l.useMemo(()=>[...fe(i.prefixName)||[],...fe(e)],[i.prefixName,e]),d=l.useMemo(()=>({...i,prefixName:f}),[i,f]),m=l.useMemo(()=>({getKey:y=>{const p=f.length,x=y[p];return[c.keys[x],y.slice(p+1)]}}),[c,f]);if(typeof n!="function")return Ne(!1,"Form.List only accepts function as children."),null;const h=(y,p,{source:x})=>x==="internal"?!1:y!==p;return l.createElement(io.Provider,{value:m},l.createElement(_n.Provider,{value:d},l.createElement(Wu,{name:[],shouldUpdate:h,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:s??!!a},({value:y=[],onChange:p},x)=>{const{getFieldValue:v}=i,b=()=>v(f||[])||[],g={add:(S,E)=>{const C=b();E>=0&&E<=C.length?(c.keys=[...c.keys.slice(0,E),c.id,...c.keys.slice(E)],p([...C.slice(0,E),S,...C.slice(E)])):(c.keys=[...c.keys,c.id],p([...C,S])),c.id+=1},remove:S=>{const E=b(),C=new Set(Array.isArray(S)?S:[S]);C.size<=0||(c.keys=c.keys.filter((T,R)=>!C.has(R)),p(E.filter((T,R)=>!C.has(R))))},move(S,E){if(S===E)return;const C=b();S<0||S>=C.length||E<0||E>=C.length||(c.keys=jc(c.keys,S,E),p(jc(C,S,E)))}};let $=y||[];return Array.isArray($)||($=[]),n($.map((S,E)=>{let C=c.keys[E];return C===void 0&&(c.keys[E]=c.id,C=c.keys[E],c.id+=1),{name:E,key:C,isListField:!0}}),g,x)})))}function By(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,s)=>{e.forEach((i,a)=>{i.catch(u=>(t=!0,u)).then(u=>{n-=1,r[a]=u,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}const vi="__@field_split__";function Dr(e){return e.map(t=>`${typeof t}:${t}`).join(vi)}class Mn{constructor(){P(this,"kvs",new Map)}set(t,n){this.kvs.set(Dr(t),n)}get(t){return this.kvs.get(Dr(t))}getAsPrefix(t){const n=Dr(t),r=n+vi,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(Dr(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const o=n.split(vi);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 jy{constructor(t){P(this,"formHooked",!1);P(this,"forceRootUpdate");P(this,"subscribable",!0);P(this,"store",{});P(this,"fieldEntities",[]);P(this,"initialValues",{});P(this,"callbacks",{});P(this,"validateMessages",null);P(this,"preserve",null);P(this,"lastValidatePromise",null);P(this,"watcherCenter",new _y(this));P(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}));P(this,"getInternalHooks",t=>t===cn?(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}):(Ne(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));P(this,"useSubscribe",t=>{this.subscribable=t});P(this,"prevWithoutPreserves",null);P(this,"setInitialValues",(t,n)=>{var r;if(this.initialValues=t||{},n){let o=On(t,this.store);(r=this.prevWithoutPreserves)==null||r.map(({key:s})=>{o=ze(o,s,Ge(t,s))}),this.prevWithoutPreserves=null,this.updateStore(o)}});P(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new Mn;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});P(this,"getInitialValue",t=>{const n=Ge(this.initialValues,t);return t.length?On(n):n});P(this,"setCallbacks",t=>{this.callbacks=t});P(this,"setValidateMessages",t=>{this.validateMessages=t});P(this,"setPreserve",t=>{this.preserve=t});P(this,"registerWatch",t=>this.watcherCenter.register(t));P(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});P(this,"timeoutId",null);P(this,"warningUnhooked",()=>{});P(this,"updateStore",t=>{this.store=t});P(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);P(this,"getFieldsMap",(t=!1)=>{const n=new Mn;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r)}),n});P(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(o=>{const s=fe(o),i=r.getAsPrefix(s);return i.length?i:[{INVALIDATE_NAME_PATH:s}]}):t.map(o=>{const s=fe(o);return r.get(s)||{INVALIDATE_NAME_PATH:fe(o)}})});P(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 u=Bc(this.store,i.map(fe));return a.forEach(c=>{Ge(u,c)||(u=ze(u,c,[]))}),u});P(this,"getFieldValue",t=>{this.warningUnhooked();const n=fe(t);return Ge(this.store,n)});P(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:fe(t[o]),errors:[],warnings:[]})));P(this,"getFieldError",t=>{this.warningUnhooked();const n=fe(t);return this.getFieldsError([n])[0].errors});P(this,"getFieldWarning",t=>{this.warningUnhooked();const n=fe(t);return this.getFieldsError([n])[0].warnings});P(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(fe),s=!1):(o=null,s=n):(o=n.map(fe),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 u=new Mn;o.forEach(d=>{u.set(d,[])}),i.forEach(d=>{const m=d.getNamePath();o.forEach(h=>{h.every((y,p)=>m[p]===y)&&u.update(h,y=>[...y,d])})});const c=d=>d.some(a),f=u.map(({value:d})=>d);return s?f.every(c):f.some(c)});P(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));P(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(fe);return n.some(o=>{const s=o.getNamePath();return In(r,s)&&o.isFieldValidating()})});P(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));P(this,"resetWithFieldInitialValue",(t={})=>{const n=new Mn,r=this.getFieldEntities(!0);r.forEach(i=>{const{initialValue:a}=i.props,u=i.getNamePath();if(a!==void 0){const c=n.get(u)||new Set;c.add({entity:i,value:a}),n.set(u,c)}});const o=i=>{i.forEach(a=>{const{initialValue:u}=a.props;if(u!==void 0){const c=a.getNamePath();if(this.getInitialValue(c)!==void 0)Ne(!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)Ne(!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(ze(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(u=>u.entity))})):s=r,o(s)});P(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(On(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(fe);r.forEach(o=>{const s=this.getInitialValue(o);this.updateStore(ze(this.store,o,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});P(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:s,...i}=o,a=fe(s);r.push(a),"value"in i&&this.updateStore(ze(this.store,a,i.value)),this.notifyObservers(n,[a],{type:"setField",data:o})}),this.notifyWatch(r)});P(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}));P(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Ge(this.store,r)===void 0&&this.updateStore(ze(this.store,r,n))}});P(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);P(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=>!ao(a.getNamePath(),n))){const a=this.store;this.updateStore(ze(a,n,i,!0)),this.notifyObservers(a,[n],{type:"remove"}),this.triggerDependenciesUpdate(a,n)}}this.notifyWatch([n])}});P(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}}});P(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()});P(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});P(this,"updateValue",(t,n)=>{const r=fe(t),o=this.store;this.updateStore(ze(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=Bc(this.store,[r]),u=this.getFieldsValue(),c=ze(u,r,Ge(a,r));i(a,c)}this.triggerOnFieldsChange([r,...s])});P(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=On(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});P(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});P(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],o=new Mn;this.getFieldEntities().forEach(i=>{const{dependencies:a}=i.props;(a||[]).forEach(u=>{const c=fe(u);o.update(c,(f=new Set)=>(f.add(i),f))})});const s=i=>{(o.get(i)||new Set).forEach(u=>{if(!n.has(u)){n.add(u);const c=u.getNamePath();u.isFieldDirty()&&c.length&&(r.push(c),s(c))}})};return s(t),r});P(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const i=new Mn;n.forEach(({name:a,errors:u})=>{i.set(a,u)}),o.forEach(a=>{a.errors=i.get(a.name)||a.errors})}const s=o.filter(({name:i})=>In(t,i));s.length&&r(s,o)}});P(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(fe):[],a=[...i],u=[],c=String(Date.now()),f=new Set,{recursive:d,dirty:m}=o||{};this.getFieldEntities(!0).forEach(x=>{const v=x.getNamePath();if(s||((!x.isList()||!i.some(b=>ao(b,v,!0)))&&a.push(v),i.push(v)),!(!x.props.rules||!x.props.rules.length)&&!(m&&!x.isFieldDirty())&&(f.add(v.join(c)),!s||In(i,v,d))){const b=x.validateRules({validateMessages:{...zu,...this.validateMessages},...o});u.push(b.then(()=>({name:v,errors:[],warnings:[]})).catch(g=>{var E;const $=[],S=[];return(E=g.forEach)==null||E.call(g,({rule:{warningOnly:C},errors:T})=>{C?S.push(...T):$.push(...T)}),$.length?Promise.reject({name:v,errors:$,warnings:S}):{name:v,errors:$,warnings:S}}))}});const h=By(u);this.lastValidatePromise=h,h.catch(x=>x).then(x=>{const v=x.map(({name:b})=>b);this.notifyObservers(this.store,v,{type:"validateFinish"}),this.triggerOnFieldsChange(v,x)});const y=h.then(()=>this.lastValidatePromise===h?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(x=>{var g,$;const v=x.filter(S=>S&&S.errors.length),b=($=(g=v[0])==null?void 0:g.errors)==null?void 0:$[0];return Promise.reject({message:b,values:this.getFieldsValue(i),errorFields:v,outOfDate:this.lastValidatePromise!==h})});y.catch(x=>x);const p=i.filter(x=>f.has(x.join(c)));return this.triggerOnFieldsChange(p),y});P(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 qu(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},o=new jy(r);t.current=o.getForm()}return[t.current]}const xi=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Uu=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=l.useContext(xi),s=l.useRef({});return l.createElement(xi.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 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 zy=(e,t)=>{const{name:n,initialValues:r,fields:o,form:s,preserve:i,children:a,component:u="form",validateMessages:c,validateTrigger:f="onChange",onValuesChange:d,onFieldsChange:m,onFinish:h,onFinishFailed:y,clearOnDestroy:p,...x}=e,v=l.useRef(null),b=l.useContext(xi),[g]=qu(s),{useSubscribe:$,setInitialValues:S,setCallbacks:E,setValidateMessages:C,setPreserve:T,destroyForm:R}=g.getInternalHooks(cn);l.useImperativeHandle(t,()=>({...g,nativeElement:v.current})),l.useEffect(()=>(b.registerForm(n,g),()=>{b.unregisterForm(n)}),[b,g,n]),C({...b.validateMessages,...c}),E({onValuesChange:d,onFieldsChange:(L,...N)=>{b.triggerFormChange(n,L),m&&m(L,...N)},onFinish:L=>{b.triggerFormFinish(n,L),h&&h(L)},onFinishFailed:y}),T(i);const M=l.useRef(null);S(r,!M.current),M.current||(M.current=!0),l.useEffect(()=>()=>R(p),[]);let w;const F=typeof a=="function";if(F){const L=g.getFieldsValue(!0);w=a(L,g)}else w=a;$(!F);const I=l.useRef(null);l.useEffect(()=>{Ly(I.current||[],o||[])||g.setFields(o||[]),I.current=o},[o,g]);const k=l.useMemo(()=>({...g,validateTrigger:f}),[g,f]),j=l.createElement(io.Provider,{value:null},l.createElement(_n.Provider,{value:k},w));return u===!1?j:l.createElement(u,Si({},x,{ref:v,onSubmit:L=>{L.preventDefault(),L.stopPropagation(),g.submit()},onReset:L=>{var N;L.preventDefault(),g.resetFields(),(N=x.onReset)==null||N.call(x,L)}}),j)};function hs(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Vy(...e){const[t,n={}]=e,r=ey(n)?{form:n}:n,o=r.form,[s,i]=l.useState(()=>typeof t=="function"?t({}):void 0),a=l.useMemo(()=>hs(s),[s]),u=l.useRef(a);u.current=a;const c=l.useContext(_n),f=o||c,d=f&&f._init,{getFieldsValue:m,getInternalHooks:h}=f,{registerWatch:y}=h(cn),p=we((v,b)=>{const g=r.preserve?b??m(!0):v??m(),$=typeof t=="function"?t(g):Ge(g,fe(t));hs(s)!==hs($)&&i($)}),x=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{d&&p()},[d,x]),l.useEffect(()=>d?y((b,g)=>{p(b,g)}):void 0,[d]),s}const Dy=l.forwardRef(zy),vr=Dy;vr.FormProvider=Uu;vr.Field=Wu;vr.List=Hy;vr.useForm=qu;vr.useWatch=Vy;const Jb=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),ev=l.createContext(null),tv=e=>{const t=Li(e,["prefixCls"]);return l.createElement(Uu,{...t})},nv=l.createContext({prefixCls:""}),zc=l.createContext({}),Wy=({children:e,status:t,override:n})=>{const r=l.useContext(zc),o=l.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return l.createElement(zc.Provider,{value:o},e)},rv=l.createContext(void 0),ov=e=>{const{space:t,form:n,children:r}=e;if(!yr(r))return null;let o=r;return n&&(o=A.createElement(Wy,{override:!0,status:!0},o)),t&&(o=A.createElement(Ep,null,o)),o},sv=()=>ve()&&window.document.documentElement;function qy(e){return t=>l.createElement(zn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const iv=(e,t,n,r,o)=>qy(i=>{const{prefixCls:a,style:u}=i,c=l.useRef(null),[f,d]=l.useState(0),[m,h]=l.useState(0),[y,p]=Wc(!1,i.open),{getPrefixCls:x}=l.useContext(Pe),v=x(r||"select",a);l.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const $=new ResizeObserver(E=>{const C=E[0].target;d(C.offsetHeight+8),h(C.offsetWidth)}),S=setInterval(()=>{var T;const E=o?`.${o(v)}`:`.${v}-dropdown`,C=(T=c.current)==null?void 0:T.querySelector(E);C&&(clearInterval(S),$.observe(C))},10);return()=>{clearInterval(S),$.disconnect()}}},[v]);let b={...i,style:{...u,margin:0},open:y,getPopupContainer:()=>c.current};n&&(b=n(b)),t&&(b={...b,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const g={paddingBottom:f,position:"relative",minWidth:m};return l.createElement("div",{ref:c,style:g},l.createElement(e,{...b}))});function av(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}const cv=(e,t,n)=>z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),lv=(e,t)=>t||e,ln=(e,t)=>e!=null&&e.startsWith("var(")||t!=null&&t.startsWith("var(")?e:new he(e).onBackground(t).toHexString(),Uy=()=>{const[,e]=Et(),[t]=Io("Empty"),{colorBgContainer:n,colorFill:r,colorFillSecondary:o,colorFillTertiary:s,colorTextQuaternary:i}=e,{panelBgColor:a,borderColor:u,detailColor:c,shadowColor:f,iconColor:d}=l.useMemo(()=>({panelBgColor:ln(s,n),borderColor:ln(i,n),detailColor:ln(r,n),shadowColor:ln(o,n),iconColor:n}),[n,r,o,s,i]);return l.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.7)"},l.createElement("ellipse",{fillOpacity:".8",fill:f,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),l.createElement("path",{fill:u,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"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{fill:d,transform:"translate(149.7 15.4)"},l.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),l.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},Xy=()=>{const[,e]=Et(),[t]=Io("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:i,shadowColor:a,contentColor:u}=l.useMemo(()=>({borderColor:ln(n,s),shadowColor:ln(r,s),contentColor:ln(o,s)}),[n,r,o,s]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(t==null?void 0:t.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:i},l.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),l.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:u}))))},Ky=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}}}}},Gy=Fo("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Vt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Ky(o)}),Xu=l.createElement(Uy,null),Ku=l.createElement(Xy,null),sn=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:s,children:i,imageStyle:a,style:u,classNames:c,styles:f,...d}=e,{getPrefixCls:m,direction:h,className:y,style:p,classNames:x,styles:v,image:b}=_i("empty"),g=m("empty",r),[$,S]=Gy(g),[E,C]=Ki([x,c],[v,f],{props:e}),[T]=Io("Empty"),R=typeof s<"u"?s:T==null?void 0:T.description,M=typeof R=="string"?R:"empty",w=o??b??Xu;let F=null;return typeof w=="string"?F=l.createElement("img",{draggable:!1,alt:M,src:w}):F=w,l.createElement("div",{className:z($,S,g,y,{[`${g}-normal`]:w===Ku,[`${g}-rtl`]:h==="rtl"},t,n,E.root),style:{...C.root,...p,...u},...d},l.createElement("div",{className:z(`${g}-image`,E.image),style:{...a,...C.image}},F),R&&l.createElement("div",{className:z(`${g}-description`,E.description),style:C.description},R),i&&l.createElement("div",{className:z(`${g}-footer`,E.footer),style:C.footer},i))};sn.PRESENTED_IMAGE_DEFAULT=Xu;sn.PRESENTED_IMAGE_SIMPLE=Ku;const uv=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(Pe),r=n("empty");switch(t){case"Table":case"List":return A.createElement(sn,{image:sn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return A.createElement(sn,{image:sn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return A.createElement(sn,null)}},oa=["xxxl","xxl","xl","lg","md","sm","xs"],fv=[].concat(oa).reverse(),Yy=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Qy=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 u=`screen${s}Max`;if(!(t[a]<=t[u]))throw new Error(`${a}<=${u} fails : !(${t[a]}<=${t[u]})`);const f=`screen${n[o+1].toUpperCase()}Min`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`)}}),e},dv=(e,t)=>{if(t){for(const n of oa)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},mv=()=>{const[,e]=Et(),t=Yy(Qy(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})},u=window.matchMedia(i);We(u.addEventListener)&&u.addEventListener("change",a),this.matchHandlers[i]={mql:u,listener:a},a(u)})},unregister(){Object.values(t).forEach(s=>{const i=this.matchHandlers[s];We(i==null?void 0:i.mql.removeEventListener)&&i.mql.removeEventListener("change",i==null?void 0:i.listener)}),n.clear()}}},[t])},hv=e=>yr(e)?We(e)?e():e:null;function gv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,i=o,a=r*1/Math.sqrt(2),u=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,y=u,p=2*o-s,x=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),g=`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,$=`path('M ${s} ${i} A ${r} ${r} 0 0 0 ${a} ${u} L ${c} ${f} A ${n} ${n} 0 0 1 ${d} ${m} L ${h} ${y} A ${r} ${r} 0 0 0 ${p} ${x} Z')`;return{arrowShadowWidth:v,arrowPath:$,arrowPolygon:g}}const Zy=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:i,borderRadiusXS:a,calc:u}=e,c={content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ye(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:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":c}},Jy=8;function eb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Jy:r}}function Wr(e,t){return e?t:{}}const pv=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:i,antCls:a}=e,[u]=pr(a,"tooltip"),{arrowDistance:c=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0},arrowShadow:d=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...Zy(e,t,d?o:!1),"&:before":{background:t}}],...Wr(!!f.top,{[[`&-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":{[u("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{[u("arrow-offset-x")]:`calc(100% - ${ye(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...Wr(!!f.bottom,{[[`&-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":{[u("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{[u("arrow-offset-x")]:`calc(100% - ${ye(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...Wr(!!f.left,{[[`&-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}}),...Wr(!!f.right,{[[`&-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 tb(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=Ve(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 Vc={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"]}},nb={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"]}},rb=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function yv(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:i}=e,a=t/2,u={},c=eb({contentRadius:s,limitVerticalRadius:!0});return Object.keys(Vc).forEach(f=>{const m={...r&&nb[f]||Vc[f],offset:[0,0],dynamicInset:!0};switch(u[f]=m,rb.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=tb(f,c,t,n),i&&(m.htmlRegion="visibleFirst")}),u}const ob=Ct.map(e=>`${e}-inverse`),sb=["success","processing","error","default","warning"];function bv(e,t=!0){return t?[].concat(dn(ob),dn(Ct)).includes(e):Ct.includes(e)}function vv(e){return sb.includes(e)}function xv(e){return["small","middle","medium","large"].includes(e)}function Sv(e){return e?br(e):!1}const $v=(e,t)=>yr(e)?Ve(e)&&!l.isValidElement(e)?{...t,...e}:{...t,title:e}:null,Cv=(e,t={})=>!jt(e)&&(t!=null&&t.skipEmpty)?[]:Array.isArray(e)?e:[e];function Ev(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ke=(e,t)=>new he(e).setA(t).toRgbString(),Qt=(e,t)=>new he(e).lighten(t).toHexString(),Dc=e=>{const t=gr(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]}},ib=(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:Qt(r,12),colorBgContainer:Qt(r,8),colorBgLayout:Qt(r,0),colorBgSpotlight:Qt(r,26),colorBgBlur:Ke(o,.04),colorBorder:Qt(r,26),colorBorderDisabled:Qt(r,26),colorBorderSecondary:Qt(r,19)}},ab=(e,t)=>{const n=Object.keys(Di).map(i=>{const a=gr(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,c,f)=>(u[`${i}-${f+1}`]=a[f],u[`${i}${f+1}`]=a[f],u),{})}).reduce((i,a)=>(i={...i,...a},i),{}),r=t??Wi(e),o=Al(e,{generateColorPalettes:Dc,generateNeutralColorPalettes:ib}),s=Ct.reduce((i,a)=>{const u=e[a];if(u){const c=Dc(u);i[`${a}Hover`]=c[7],i[`${a}Active`]=c[5]}return i},{});return{...r,...n,...o,...s,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}},wv={defaultSeed:ro.token,defaultAlgorithm:Wi,darkAlgorithm:ab},cb=(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})}},lb=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 Pv(e,t){if(typeof e!="string")return!1;const n=(t==null?void 0:t.format)==="text/html";return!!(await lb(e,n)||cb(e,n))}export{sm as $,Zb as A,ra as B,zb as C,uv as D,sn as E,he as F,rv as G,xb as H,jn as I,Wu as J,ga as K,Hy as L,Jy as M,Wy as N,Mo as O,Uh as P,gt as Q,vr as R,Nn as S,Au as T,Cg as U,Ph as V,xp as W,Ht as X,to as Y,cp as Z,Ro as _,fi as a,We as a$,Tl as a0,im as a1,wl as a2,dn as a3,ct as a4,wv as a5,no as a6,sv as a7,ve as a8,Ev as a9,pv as aA,gv as aB,Ob as aC,$o as aD,Zc as aE,mb as aF,bb as aG,lv as aH,kn as aI,yv as aJ,hv as aK,yb as aL,Pf as aM,cv as aN,Rf as aO,Db as aP,Fb as aQ,Ns as aR,mp as aS,qb as aT,Ub as aU,Xb as aV,Kb as aW,L0 as aX,Jr as aY,bs as aZ,vg as a_,Cb as aa,dr as ab,z as ac,gn as ad,op as ae,yf as af,Tp as ag,$v as ah,Pv as ai,Qf as aj,tp as ak,pf as al,Fp as am,q0 as an,pr as ao,Bm as ap,Oo as aq,Zp as ar,wb as as,iv as at,Zy as au,Fo as av,Dm as aw,Qb as ax,Ge as ay,eb as az,Ru as b,$i as b$,jt as b0,br as b1,Ve as b2,bv as b3,xv as b4,vv as b5,Tb as b6,yr as b7,fn as b8,pb as b9,qp as bA,Up as bB,Dp as bC,Wp as bD,Ri as bE,xo as bF,$b as bG,zt as bH,Cv as bI,hb as bJ,ye as bK,Kf as bL,Ib as bM,Mb as bN,Nb as bO,Cp as bP,_i as bQ,Pi as bR,Wc as bS,we as bT,sp as bU,qu as bV,qc as bW,$t as bX,db as bY,Io as bZ,gb as b_,Sv as ba,Oi as bb,Th as bc,Za as bd,hn as be,dv as bf,Vt as bg,On as bh,ba as bi,av as bj,Sc as bk,Li as bl,Eb as bm,nl as bn,Lb as bo,Qo as bp,vb as bq,Xf as br,xg as bs,km as bt,qi as bu,Ga as bv,oa as bw,fv as bx,Rb as by,ze as bz,Ao as c,Ki as c0,_b as c1,kb as c2,ip as c3,Hb as c4,Bb as c5,nd as c6,mv as c7,co as c8,ea as c9,jb as ca,Et as cb,Vy as cc,Vb as cd,Ne as ce,qy as cf,Te as cg,Jp as ch,Ab as d,Pb as e,Yb as f,Wb as g,Pe as h,zn as i,_n as j,ov as k,oo as l,Eg as m,Jb as n,zc as o,nv as p,tv as q,Z as r,io as s,ev as t,Ct as u,th as v,ep as w,Dl as x,b0 as y,cl as z};