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