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