Optimized the root .gitignore to exclude virtual environments, node modules, and temp folders to ensure clean and lightweight version tracking. Co-authored-by: Cursor <cursoragent@cursor.com>
277 lines
707 KiB
JavaScript
277 lines
707 KiB
JavaScript
var uy=Object.defineProperty;var dy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var le=(e,t,n)=>dy(e,typeof t!="symbol"?t+"":t,n);import{r as i,R as N,$ as fy,a as Vn,c as my}from"./vendor-react.js?v=1775123024591";import{r as Ir,e as xt,f as Uo,s as Kd,i as Yd,j as py,k as Qd,n as gy,u as hy,o as In,q as Pn,t as fg,v as mg,w as Ve,x as Fo,y as Zt,z as St,A as Au,B as tr,d as z,C as by,D as Oi,E as Ai,F as Et,G as vy,H as yy,I as $y,J as Zr,K as pg,L as zu,N as Cy,O as Sy,P as Hn,Q as ua,R as Ko,S as Yt,T as gg}from"./vendor-common.js?v=1775123024591";import{g as xy,a as wy}from"./_commonjsHelpers.js?v=1775123024591";function We(e){const t=i.useRef(e);return t.current=e,i.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function Ot(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Zd=Ot()?i.useLayoutEffect:i.useEffect,nt=(e,t)=>{const n=i.useRef(!0);Zd(()=>e(n.current),t),Zd(()=>(n.current=!1,()=>{n.current=!0}),[])},Ks=(e,t)=>{nt(n=>{if(!n)return e()},t)},si=e=>{const t=i.useRef(!1),[n,r]=i.useState(e);i.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,a){a&&t.current||r(s)}return[n,o]};function bt(e,t){const[n,r]=i.useState(e),o=t!==void 0?t:n;return nt(s=>{s||r(t)},[t]),[o,r]}function po(e,t,n){const r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const Ey=Symbol.for("react.element"),Iy=Symbol.for("react.transitional.element"),Py=Symbol.for("react.fragment");function hg(e){return e&&typeof e=="object"&&(e.$$typeof===Ey||e.$$typeof===Iy)&&e.type===Py}const Ry=Number(i.version.split(".")[0]),My=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Ft=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{My(r,n)})}},qn=(...e)=>po(()=>Ft(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),dr=e=>{var n,r;if(!e)return!1;if(Bu(e)&&Ry>=19)return!0;const t=Ir.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Ir.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Ir.ForwardRef)};function Bu(e){return i.isValidElement(e)&&!hg(e)}const Ny=e=>Bu(e)&&dr(e),Gn=e=>{if(e&&Bu(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function xn(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 bg(e,t,n,r){if(!t.length)return n;const[o,...s]=t;let a;return!e&&typeof o=="number"?a=[]:Array.isArray(e)?a=[...e]:a={...e},r&&n===void 0&&s.length===1?delete a[o][s[0]]:a[o]=bg(a[o],s,n,r),a}function gn(e,t,n,r=!1){return t.length&&r&&n===void 0&&!xn(e,t.slice(0,-1))?e:bg(e,t,n,r)}function Ty(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Jd(e){return Array.isArray(e)?[]:{}}const Oy=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function vg(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=Jd(e[0]);return e.forEach(s=>{function a(l,c){const u=new Set(c),d=xn(s,l),f=Array.isArray(d);if(f||Ty(d)){if(!u.has(d)){u.add(d);const m=xn(o,l);f?o=gn(o,l,r(m,d)):(!m||typeof m!="object")&&(o=gn(o,l,Jd(d))),Oy(d).forEach(p=>{Object.getOwnPropertyDescriptor(d,p).enumerable&&a([...l,p],u)})}}else o=gn(o,l,d)}a([])}),o}function Jr(...e){return vg(e)}let il={};const Ay=e=>{};function zy(e,t){}function By(e,t){}function Ly(){il={}}function yg(e,t,n){!t&&!il[n]&&(e(!1,n),il[n]=!0)}function Pt(e,t){yg(zy,e,t)}function Hy(e,t){yg(By,e,t)}Pt.preMessage=Ay;Pt.resetWarned=Ly;Pt.noteOnce=Hy;function yt(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function Vt(e,t={}){let n=[];return N.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Vt(r)):hg(r)&&r.props?n=n.concat(Vt(r.props.children,t)):n.push(r))}),n}const Dy=i.createContext({});function lo(e){return e instanceof HTMLElement||e instanceof SVGElement}function co(e){return e&&typeof e=="object"&&lo(e.nativeElement)?e.nativeElement:lo(e)?e:null}const al=i.createContext(null);function Fy({children:e,onBatchResize:t}){const n=i.useRef(0),r=i.useRef([]),o=i.useContext(al),s=i.useCallback((a,l,c)=>{n.current+=1;const u=n.current;r.current.push({size:a,element:l,data:c}),Promise.resolve().then(()=>{u===n.current&&(t==null||t(r.current),r.current=[])}),o==null||o(a,l,c)},[t,o]);return i.createElement(al.Provider,{value:s},e)}const nr=new Map;function _y(e){e.forEach(t=>{var r;const{target:n}=t;(r=nr.get(n))==null||r.forEach(o=>o(n))})}let da;function $g(){return da||(da=new ResizeObserver(_y)),da}function ky(e,t){nr.has(e)||(nr.set(e,new Set),$g().observe(e)),nr.get(e).add(t)}function Vy(e,t){nr.has(e)&&(nr.get(e).delete(t),nr.get(e).size||($g().unobserve(e),nr.delete(e)))}function Cg(e,t,n,r){const o=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=We(l=>{const{width:c,height:u}=l.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=l,m=Math.floor(c),p=Math.floor(u);if(o.current.width!==m||o.current.height!==p||o.current.offsetWidth!==d||o.current.offsetHeight!==f){const g={width:m,height:p,offsetWidth:d,offsetHeight:f};o.current=g;const h=d===Math.round(c)?c:d,b=f===Math.round(u)?u:f,$={...g,offsetWidth:h,offsetHeight:b};r==null||r($,l),Promise.resolve().then(()=>{n==null||n($,l)})}}),a=typeof t=="function";i.useEffect(()=>{const l=a?t():t;return l&&e&&ky(l,s),()=>{l&&Vy(l,s)}},[e,a?0:t])}function Wy(e,t){const{children:n,disabled:r,onResize:o,data:s}=e,a=i.useRef(null),l=i.useContext(al),c=typeof n=="function",u=c?n(a):n,d=!c&&i.isValidElement(u)&&dr(u),f=d?Gn(u):null,m=qn(f,a),p=()=>co(a.current);return i.useImperativeHandle(t,()=>p()),Cg(!r,p,o,(g,h)=>{l==null||l(g,h,s)}),d?i.cloneElement(u,{ref:m}):u}const jy=i.forwardRef(Wy);function ll(){return ll=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},ll.apply(this,arguments)}const qy="rc-observer-key";function Gy(e,t){const{children:n}=e;return(typeof n=="function"?[n]:Vt(n)).map((o,s)=>{const a=(o==null?void 0:o.key)||`${qy}-${s}`;return i.createElement(jy,ll({},e,{key:a,ref:s===0?t:void 0}),o)})}const Fn=i.forwardRef(Gy);Fn.Collection=Fy;let Sg=e=>+setTimeout(e,16),xg=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Sg=e=>window.requestAnimationFrame(e),xg=e=>window.cancelAnimationFrame(e));let ef=0;const Lu=new Map;function wg(e){Lu.delete(e)}const Ke=(e,t=1)=>{ef+=1;const n=ef;function r(o){if(o===0)wg(n),e();else{const s=Sg(()=>{r(o-1)});Lu.set(n,s)}}return r(t),n};Ke.cancel=e=>{const t=Lu.get(e);return wg(e),xg(t)};function tf(e){let t=null;const n=o=>()=>{t=null,e.apply(void 0,xt(o))},r=(...o)=>{t===null&&(t=Ke(n(o)))};return r.cancel=()=>{Ke.cancel(t),t=null},r}const Yo="ant",zi="anticon",Xy=["outlined","borderless","filled","underlined"],Uy=(e,t)=>t||(e?`${Yo}-${e}`:Yo),je=i.createContext({getPrefixCls:Uy,iconPrefixCls:zi}),{Consumer:t8}=je,nf={};function dt(e){const t=i.useContext(je),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}=t,a=t[e];return{classNames:nf,styles:nf,...a,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}}function cl(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 rf="data-rc-order",of="data-rc-priority",Ky="rc-util-key",ul=new Map;function Eg({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Ky}function Bi(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Yy(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Hu(e){return Array.from((ul.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ig(e,t={}){if(!Ot())return null;const{csp:n,prepend:r,priority:o=0}=t,s=Yy(r),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(rf,s),a&&o&&l.setAttribute(of,`${o}`),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;const c=Bi(t),{firstChild:u}=c;if(r){if(a){const d=(t.styles||Hu(c)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(rf)))return!1;const m=Number(f.getAttribute(of)||0);return o>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Pg(e,t={}){let{styles:n}=t;return n||(n=Hu(Bi(t))),n.find(r=>r.getAttribute(Eg(t))===e)}function Or(e,t={}){const n=Pg(e,t);n&&Bi(t).removeChild(n)}function Qy(e,t){const n=ul.get(e);if(!n||!cl(document,n)){const r=Ig("",t),{parentNode:o}=r;ul.set(e,o),e.removeChild(r)}}function sr(e,t,n={}){var c,u,d;const r=Bi(n),o=Hu(r),s={...n,styles:o};Qy(r,s);const a=Pg(t,s);if(a)return(c=s.csp)!=null&&c.nonce&&a.nonce!==((u=s.csp)==null?void 0:u.nonce)&&(a.nonce=(d=s.csp)==null?void 0:d.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=Ig(e,s);return l.setAttribute(Eg(s),t),l}function ar(e,t,n=!1){const r=new Set;function o(s,a,l=1){const c=r.has(s);if(Pt(!c,"Warning: There may be circular references"),c)return!1;if(s===a)return!0;if(n&&l>1)return!1;r.add(s);const u=l+1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let d=0;d<s.length;d++)if(!o(s[d],a[d],u))return!1;return!0}if(s&&a&&typeof s=="object"&&typeof a=="object"){const d=Object.keys(s);return d.length!==Object.keys(a).length?!1:d.every(f=>o(s[f],a[f],u))}return!1}return o(e,t)}const Zy="%";function dl(e){return e.join(Zy)}let sf=0;class Jy{constructor(t){le(this,"instanceId");le(this,"cache",new Map);le(this,"updateTimes",new Map);le(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(dl(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(dl(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,sf),sf+=1)}}const e1={},Du="data-token-hash",_n="data-css-hash",Dn="__cssinjs_instance__";function Rg(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${_n}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[Dn]||(o[Dn]=e),o[Dn]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${_n}]`)).forEach(o=>{var a;const s=o.getAttribute(_n);r[s]?o[Dn]===e&&((a=o.parentNode)==null||a.removeChild(o)):r[s]=!0})}return new Jy(e)}const Ar=i.createContext({hashPriority:"low",cache:Rg(),defaultCache:!0,autoPrefix:!1}),n8=e=>{const{children:t,...n}=e,r=i.useContext(Ar),o=po(()=>{const s={...r};Object.keys(n).forEach(c=>{const u=n[c];n[c]!==void 0&&(s[c]=u)});const{cache:a,transformers:l=[]}=n;return s.cache=s.cache||Rg(),s.defaultCache=!a&&r.defaultCache,l.includes(e1)&&(s.autoPrefix=!0),s},[r,n],(s,a)=>!ar(s[0],a[0],!0)||!ar(s[1],a[1],!0));return i.createElement(Ar.Provider,{value:o},t)};function t1(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 oo=class oo{constructor(){le(this,"cache");le(this,"keys");le(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>oo.MAX_CACHE_SIZE+oo.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((s,a)=>{const[,l]=s;return this.internalGet(a)[1]<l?[a,this.internalGet(a)[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 a=r.get(o);a?a.map||(a.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=>!t1(n,t)),this.deleteByPath(this.cache,t)}};le(oo,"MAX_CACHE_SIZE",20),le(oo,"MAX_CACHE_OFFSET",5);let fl=oo,af=0;class Mg{constructor(t){le(this,"derivatives");le(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=af,t.length===0&&(t.length>0,void 0),af+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const fa=new fl;function ml(e){const t=Array.isArray(e)?e:[e];return fa.has(t)||fa.set(t,new Mg(t)),fa.get(t)}const n1=new WeakMap,ma={};function r1(e,t){let n=n1;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(ma)||n.set(ma,e()),n.get(ma)}const lf=new WeakMap;function _o(e){if(!e||typeof e!="object")return"";let t=lf.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof Mg?t+=r.id:r&&typeof r=="object"?t+=_o(r):t+=r}),t=Uo(t),lf.set(e,t)),t}function o1(e,t){return Uo(`${t}_${_o(e)}`)}const pl=Ot();function K(e){return typeof e=="number"?`${e}px`:e}function Ng(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const s1=e=>e!=null,Pr=(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(),i1=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const a=`${Ng({hashCls:r,hashPriority:o})}.${t}`,l=[s].flat().filter(Boolean);return`${l.length?l.map(u=>`${a}.${u}`).join(", "):a}{${Object.entries(e).map(([u,d])=>`${u}:${d};`).join("")}}`},Tg=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:s,unitless:a,ignore:l,preserve:c}=n||{},u={},d={};return Object.entries(e).forEach(([f,m])=>{if(c!=null&&c[f])d[f]=m;else if((typeof m=="string"||typeof m=="number")&&!(l!=null&&l[f])){const p=Pr(f,s);u[p]=typeof m=="number"&&!(a!=null&&a[f])?`${m}px`:String(m),d[f]=`var(${p})`}}),[d,i1(u,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:o})]},Ts=new Map;function Fu(e,t,n,r,o){const{cache:s}=i.useContext(Ar),a=[e,...t],l=dl(a),c=f=>{s.opUpdate(l,m=>{const[p=0,g]=m||[void 0,void 0],b=g||n(),$=[p,b];return f?f($):$})};i.useMemo(()=>{c()},[l]);const d=s.opGet(l)[1];return i.useInsertionEffect(()=>(c(([f,m])=>[f+1,m]),Ts.has(l)||(o==null||o(d),Ts.set(l,!0),Promise.resolve().then(()=>{Ts.delete(l)})),()=>{s.opUpdate(l,f=>{const[m=0,p]=f||[];return m-1===0?(r==null||r(p,!1),Ts.delete(l),null):[m-1,p]})}),[l]),d}const a1={},l1="css",vr=new Map;function c1(e){vr.set(e,(vr.get(e)||0)+1)}function u1(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Du}="${e}"]`).forEach(r=>{var o;r[Dn]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const d1=-1;function f1(e,t){vr.set(e,(vr.get(e)||0)-1);const n=new Set;vr.forEach((r,o)=>{r<=0&&n.add(o)}),vr.size-n.size>d1&&n.forEach(r=>{u1(r,t),vr.delete(r)})}const m1=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},p1="token";function g1(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:s}=i.useContext(Ar),{salt:a="",override:l=a1,formatToken:c,getComputedToken:u,cssVar:d}=n,f=r1(()=>Object.assign({},...t),t),m=_o(f),p=_o(l),g=_o(d);return Fu(p1,[a,e.id,m,p,g],()=>{const b=u?u(f,l,e):m1(f,l,e,c),$={...b},y=`${a}_${d.prefix}`,v=Uo(y),C=`${l1}-${v}`;$._tokenKey=o1($,y);const[S,x]=Tg(b,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:s,hashCls:d.hashed?C:void 0});return S._hashId=v,c1(d.key),[S,C,$,x,d.key]},([,,,,b])=>{f1(b,r)},([,,,b,$])=>{if(!b)return;const y=sr(b,Uo(`css-var-${$}`),{mark:_n,prepend:"queue",attachTo:o,priority:-999});y[Dn]=r,y.setAttribute(Du,$)})}const cf="data-ant-cssinjs-cache-path",Og="_FILE_STYLE__";let Rr,Ag=!0;function h1(){var e;if(!Rr&&(Rr={},Ot())){const t=document.createElement("div");t.className=cf,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,a]=o.split(":");Rr[s]=a});const r=document.querySelector(`style[${cf}]`);r&&(Ag=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function b1(e){return h1(),!!Rr[e]}function v1(e){const t=Rr[e];let n=null;if(t&&Ot())if(Ag)n=Og;else{const r=document.querySelector(`style[${_n}="${Rr[e]}"]`);r?n=r.innerHTML:delete Rr[e]}return[n,t]}const y1="_skip_check_",zg="_multi_value_";function pa(e,t){return(t?Kd(Yd(e),py([gy,Qd])):Kd(Yd(e),Qd)).replace(/\{%%%\:[^;];}/g,";")}function $1(e){return typeof e=="object"&&e&&(y1 in e||zg in e)}function uf(e,t,n="high"){if(!t)return e;const r=Ng({hashCls:t,hashPriority:n});return e.split(",").map(s=>{var u;const a=s.trim().split(/\s+/);let l=a[0]||"";const c=((u=l.match(/^\w+/))==null?void 0:u[0])||"";return l=`${c}${r}${l.slice(c.length)}`,[l,...a.slice(1)].join(" ")}).join(",")}const gl=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:a,path:l,hashPriority:c,transformers:u=[],linters:d=[]}=t;let f="",m={};function p(b){const $=b.getName(s);if(!m[$]){const[y]=gl(b.style,t,{root:!1,parentSelectors:o});m[$]=`@keyframes ${b.getName(s)}${y}`}}function g(b,$=[]){return b.forEach(y=>{Array.isArray(y)?g(y,$):y&&$.push(y)}),$}return g(Array.isArray(e)?e:[e]).forEach(b=>{const $=typeof b=="string"&&!n?{}:b;if(typeof $=="string")f+=`${$}
|
||
`;else if($._keyframe)p($);else{const y=u.reduce((v,C)=>{var S;return((S=C==null?void 0:C.visit)==null?void 0:S.call(C,v))||v},$);Object.keys(y).forEach(v=>{const C=y[v];if(typeof C=="object"&&C&&(v!=="animationName"||!C._keyframe)&&!$1(C)){let S=!1,x=v.trim(),w=!1;(n||r)&&s?x.startsWith("@")?S=!0:x==="&"?x=uf("",s,c):x=uf(v,s,c):n&&!s&&(x==="&"||x==="")&&(x="",w=!0);const[I,E]=gl(C,t,{root:w,injectHash:S,parentSelectors:[...o,x]});m={...m,...E},f+=`${x}${I}`}else{let S=function(w,I){const E=w.replace(/[A-Z]/g,P=>`-${P.toLowerCase()}`);let R=I;!hy[w]&&typeof R=="number"&&R!==0&&(R=`${R}px`),w==="animationName"&&(I!=null&&I._keyframe)&&(p(I),R=I.getName(s)),f+=`${E}:${R};`};const x=(C==null?void 0:C.value)??C;typeof C=="object"&&(C!=null&&C[zg])&&Array.isArray(x)?x.forEach(w=>{S(v,w)}):s1(x)&&S(v,x)}})}}),n?a&&(f&&(f=`@layer ${a.name} {${f}}`),a.dependencies&&(m[`@layer ${a.name}`]=a.dependencies.map(b=>`@layer ${b}, ${a.name};`).join(`
|
||
`))):f=`{${f}}`,[f,m]};function Bg(e,t){return Uo(`${e.join("%")}${t}`)}const C1="style";function Qo(e,t){const{path:n,hashId:r,layer:o,nonce:s,clientOnly:a,order:l=0}=e,{mock:c,hashPriority:u,container:d,transformers:f,linters:m,cache:p,layer:g,autoPrefix:h}=i.useContext(Ar),b=[r||""];g&&b.push("layer"),b.push(...n);let $=pl;Fu(C1,b,()=>{const y=b.join("|");if(b1(y)){const[I,E]=v1(y);if(I)return[I,E,{},a,l]}const v=t(),[C,S]=gl(v,{hashId:r,hashPriority:u,layer:g?o:void 0,path:n.join("-"),transformers:f,linters:m}),x=pa(C,h||!1),w=Bg(b,x);return[x,w,S,a,l]},(y,v)=>{const[,C]=y;v&&pl&&Or(C,{mark:_n,attachTo:d})},y=>{const[v,C,S,,x]=y;if($&&v!==Og){const w={mark:_n,prepend:g?!1:"queue",attachTo:d,priority:x},I=typeof s=="function"?s():s;I&&(w.csp={nonce:I});const E=[],R=[];Object.keys(S).forEach(M=>{M.startsWith("@layer")?E.push(M):R.push(M)}),E.forEach(M=>{sr(pa(S[M],h||!1),`_layer-${M}`,{...w,prepend:!0})});const P=sr(v,C,w);P[Dn]=p.instanceId,R.forEach(M=>{sr(pa(S[M],h||!1),`_effect-${M}`,w)})}})}const S1="cssVar",Lg=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:s,token:a,hashId:l,scope:c}=e,{cache:{instanceId:u},container:d,hashPriority:f}=i.useContext(Ar),{_tokenKey:m}=a,p=Array.isArray(c)?c.join("@@"):c,g=[...e.path,n,p,m];return Fu(S1,g,()=>{const b=t(),[$,y]=Tg(b,n,{prefix:r,unitless:o,ignore:s,scope:c,hashPriority:f,hashCls:l}),v=Bg(g,y);return[$,y,v,n]},([,,b])=>{pl&&Or(b,{mark:_n,attachTo:d})},([,b,$])=>{if(!b)return;const y=sr(b,$,{mark:_n,prepend:"queue",attachTo:d,priority:-999});y[Dn]=u,y.setAttribute(Du,n)})};class et{constructor(t,n){le(this,"name");le(this,"style");le(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function _r(e){return e.notSplit=!0,e}_r(["borderTop","borderBottom"]),_r(["borderTop"]),_r(["borderBottom"]),_r(["borderLeft","borderRight"]),_r(["borderLeft"]),_r(["borderRight"]);var x1=In(function e(){Pn(this,e)}),Hg="CALC_UNIT",w1=new RegExp(Hg,"g");function ga(e){return typeof e=="number"?"".concat(e).concat(Hg):e}var E1=function(e){fg(n,e);var t=mg(n);function n(r,o){var s;Pn(this,n),s=t.call(this),Ve(Fo(s),"result",""),Ve(Fo(s),"unitlessCssVar",void 0),Ve(Fo(s),"lowPriority",void 0);var a=Zt(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):a==="number"?s.result=ga(r):a==="string"&&(s.result=r),s}return In(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(ga(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(ga(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,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return s.result.includes(u)})&&(c=!1),this.result=this.result.replace(w1,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(x1),I1=function(t,n){var r=E1;return function(o){return new r(o,n)}},df=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 ff(e,t,n,r){var o=St({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(l){var c=Au(l,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var a=St(St({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Dg=typeof CSSINJS_STATISTIC<"u",hl=!0;function rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Dg)return Object.assign.apply(Object,[{}].concat(t));hl=!1;var r={};return t.forEach(function(o){if(Zt(o)==="object"){var s=Object.keys(o);s.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),hl=!0,r}var mf={};function P1(){}var R1=function(t){var n,r=t,o=P1;return Dg&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(hl){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;mf[a]={global:Array.from(n),component:St(St({},(c=mf[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:o}};function pf(e,t,n){if(typeof n=="function"){var r;return n(rt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function M1(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 K(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 K(s)}).join(","),")")}}}var N1=1e3*60*10,T1=function(){function e(){Pn(this,e),Ve(this,"map",new Map),Ve(this,"objectIDMap",new WeakMap),Ve(this,"nextID",0),Ve(this,"lastAccessBeat",new Map),Ve(this,"accessBeat",0)}return In(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&&Zt(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Zt(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>N1&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e}(),gf=new T1;function O1(e,t){return N.useMemo(function(){var n=gf.get(t);if(n)return n;var r=e();return gf.set(t,r),r},t)}var A1=function(){return{}};function z1(e){var t=e.useCSP,n=t===void 0?A1:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,p,g,h){var b=Array.isArray(m)?m[0]:m;function $(I){return"".concat(String(b)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var y=(h==null?void 0:h.unitless)||{},v=typeof l=="function"?l(m):{},C=St(St({},v),{},Ve({},$("zIndexPopup"),!0));Object.keys(y).forEach(function(I){C[$(I)]=y[I]});var S=St(St({},h),{},{unitless:C,prefixToken:$}),x=d(m,p,g,S),w=u(b,g,S);return function(I){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,R=x(I,E),P=h==null?void 0:h.extraCssVarPrefixCls,M=typeof P=="function"?P({prefixCls:I,rootCls:E}):P,O=w(M!=null&&M.length?[E].concat(tr(M)):E);return[R,O]}}function u(m,p,g){var h=g.unitless,b=g.prefixToken,$=g.ignore;return function(y){var v=r(),C=v.cssVar,S=v.realToken;return Lg({path:[m],prefix:C.prefix,key:C.key,unitless:h,ignore:$,token:S,scope:y},function(){var x=pf(m,S,p),w=ff(m,S,x,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return x&&Object.keys(x).forEach(function(I){w[b(I)]=w[I],delete w[I]}),w}),C==null?void 0:C.key}}function d(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(m)?m:[m,m],$=Au(b,1),y=$[0],v=b.join("-"),C=e.layer||{name:"antd"};return function(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,w=r(),I=w.theme,E=w.realToken,R=w.hashId,P=w.token,M=w.cssVar,O=w.zeroRuntime,A=i.useMemo(function(){return O},[]);if(A)return R;var T=o(),F=T.rootPrefixCls,H=T.iconPrefixCls,L=n(),B="css",D=O1(function(){var U=new Set;return Object.keys(h.unitless||{}).forEach(function(j){U.add(Pr(j,M.prefix)),U.add(Pr(j,df(y,M.prefix)))}),I1(B,U)},[B,y,M==null?void 0:M.prefix]),k=M1(),W=k.max,_=k.min,X={theme:I,token:P,hashId:R,nonce:function(){return L.nonce},clientOnly:h.clientOnly,layer:C,order:h.order||-999};return typeof s=="function"&&Qo(St(St({},X),{},{clientOnly:!1,path:["Shared",F]}),function(){return s(P,{prefix:{rootPrefixCls:F,iconPrefixCls:H},csp:L})}),Qo(St(St({},X),{},{path:[v,S,H]}),function(){if(h.injectStyle===!1)return[];var U=R1(P),j=U.token,V=U.flush,G=pf(y,E,g),te=".".concat(S),ee=ff(y,E,G,{deprecatedTokens:h.deprecatedTokens});G&&Zt(G)==="object"&&Object.keys(G).forEach(function(ue){G[ue]="var(".concat(Pr(ue,df(y,M.prefix)),")")});var ne=rt(j,{componentCls:te,prefixCls:S,iconCls:".".concat(H),antCls:".".concat(F),calc:D,max:W,min:_},G),Y=p(ne,{hashId:R,prefixCls:S,rootPrefixCls:F,iconPrefixCls:H});V(y,ee);var se=typeof a=="function"?a(ne,S,x,h.resetFont):null;return[h.resetStyle===!1?null:se,Y]}),R}}function f(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(m,p,g,St({resetStyle:!1,order:-998},h)),$=function(v){var C=v.prefixCls,S=v.rootCls,x=S===void 0?C:S;return b(C,x),null};return $}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Tn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ys(e){return(e+8)/e}function B1(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.E**(o/5),a=r>1?Math.floor(s):Math.ceil(s);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ys(n)}))}const L1="6.3.0",_u={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"},Zo={..._u,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},H1={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"},Nt=Math.round;function ha(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 hf=(e,t,n)=>n===0?e:e/100;function Ro(e,t){const n=t||255;return e>n?n:e<0?0:e}let gt=class Fg{constructor(t){le(this,"isValid",!0);le(this,"r",0);le(this,"g",0);le(this,"b",0);le(this,"a",1);le(this,"_h");le(this,"_hsl_s");le(this,"_hsv_s");le(this,"_l");le(this,"_v");le(this,"_max");le(this,"_min");le(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=H1[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof Fg)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=Ro(t.r),this.g=Ro(t.g),this.b=Ro(t.b),this.a=typeof t.a=="number"?Ro(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 a=s/255;return a<=.03928?a/12.92:Math.pow((a+.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=Nt(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=l=>(r[l]-this[l])*o+this[l],a={r:Nt(s("r")),g:Nt(s("g")),b:Nt(s("b")),a:Nt(s("a")*100)/100};return this._c(a)}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=>Nt((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=Nt(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=Nt(this.getHSLSaturation()*100),r=Nt(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]=Ro(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 p=Nt(r*255);this.r=p,this.g=p,this.b=p;return}let a=0,l=0,c=0;const u=s/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(u%2-1));u>=0&&u<1?(a=d,l=f):u>=1&&u<2?(a=f,l=d):u>=2&&u<3?(l=d,c=f):u>=3&&u<4?(l=f,c=d):u>=4&&u<5?(a=f,c=d):u>=5&&u<6&&(a=d,c=f);const m=r-d/2;this.r=Nt((a+m)*255),this.g=Nt((l+m)*255),this.b=Nt((c+m)*255)}fromHsv({h:t,s:n,v:r,a:o}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=Nt(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=s/60,c=Math.floor(l),u=l-c,d=Nt(r*(1-n)*255),f=Nt(r*(1-n*u)*255),m=Nt(r*(1-n*(1-u))*255);switch(c){case 0:this.g=m,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=f;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=ha(t,hf);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ha(t,hf);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ha(t,(r,o)=>o.includes("%")?Nt(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};const Os=2,bf=.16,D1=.05,F1=.05,_1=.15,_g=5,kg=4,k1=[{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 vf(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Os*t:Math.round(e.h)+Os*t:r=n?Math.round(e.h)+Os*t:Math.round(e.h)-Os*t,r<0?r+=360:r>=360&&(r-=360),r}function yf(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-bf*t:t===kg?r=e.s+bf:r=e.s+D1*t,r>1&&(r=1),n&&t===_g&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $f(e,t,n){let r;return n?r=e.v+F1*t:r=e.v-_1*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Li(e,t={}){const n=[],r=new gt(e),o=r.toHsv();for(let s=_g;s>0;s-=1){const a=new gt({h:vf(o,s,!0),s:yf(o,s,!0),v:$f(o,s,!0)});n.push(a)}n.push(r);for(let s=1;s<=kg;s+=1){const a=new gt({h:vf(o,s),s:yf(o,s),v:$f(o,s)});n.push(a)}return t.theme==="dark"?k1.map(({index:s,amount:a})=>new gt(t.backgroundColor||"#141414").mix(n[s],a).toHexString()):n.map(s=>s.toHexString())}const ba={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"},bl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bl.primary=bl[5];const vl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];vl.primary=vl[5];const yl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yl.primary=yl[5];const ii=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ii.primary=ii[5];const $l=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$l.primary=$l[5];const Cl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cl.primary=Cl[5];const Sl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Sl.primary=Sl[5];const xl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];xl.primary=xl[5];const wl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];wl.primary=wl[5];const El=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];El.primary=El[5];const Il=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Il.primary=Il[5];const Pl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Pl.primary=Pl[5];const Rl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Rl.primary=Rl[5];const va={red:bl,volcano:vl,orange:yl,gold:ii,yellow:$l,lime:Cl,green:Sl,cyan:xl,blue:wl,geekblue:El,purple:Il,magenta:Pl,grey:Rl};function Vg(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=t(l),f=t(r),m=t(o),p=t(s),g=t(a),h=n(c,u),b=e.colorLink||e.colorInfo,$=t(b),y=new gt(p[1]).mix(new gt(p[3]),50).toHexString(),v={};return Tn.forEach(C=>{const S=e[C];if(S){const x=t(S);v[`${C}Hover`]=x[5],v[`${C}Active`]=x[7]}}),{...h,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:y,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg: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:$[4],colorLink:$[6],colorLinkActive:$[7],...v,colorBgMask:new gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const V1=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 W1(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,...V1(r)}}const j1=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},q1=e=>{const t=B1(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],s=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function G1(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 fn=(e,t)=>new gt(e).setA(t).toRgbString(),kr=(e,t)=>new gt(e).darken(t).toHexString(),X1=e=>{const t=Li(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]}},U1=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:fn(r,.88),colorTextSecondary:fn(r,.65),colorTextTertiary:fn(r,.45),colorTextQuaternary:fn(r,.25),colorFill:fn(r,.15),colorFillSecondary:fn(r,.06),colorFillTertiary:fn(r,.04),colorFillQuaternary:fn(r,.02),colorBgSolid:fn(r,1),colorBgSolidHover:fn(r,.75),colorBgSolidActive:fn(r,.95),colorBgLayout:kr(n,4),colorBgContainer:kr(n,0),colorBgElevated:kr(n,0),colorBgSpotlight:fn(r,.85),colorBgBlur:"transparent",colorBorder:kr(n,15),colorBorderDisabled:kr(n,15),colorBorderSecondary:kr(n,6)}};function ku(e){ba.pink=ba.magenta,va.pink=va.magenta;const t=Object.keys(_u).map(n=>{const r=e[n]===ba[n]?va[n]:Li(e[n]);return Array.from({length:10},()=>1).reduce((o,s,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...Vg(e,{generateColorPalettes:X1,generateNeutralColorPalettes:U1}),...q1(e.fontSize),...G1(e),...j1(e),...W1(e)}}const Wg=ml(ku),ai={token:Zo,override:{override:Zo},hashed:!0},Vu=N.createContext(ai);function ya(e){return e>=0&&e<=255}function zo(e,t){const{r:n,g:r,b:o,a:s}=new gt(e).toRgb();if(s<1)return e;const{r:a,g:l,b:c}=new gt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(ya(d)&&ya(f)&&ya(m))return new gt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new gt({r:n,g:r,b:o,a:1}).toRgbString()}function K1(e){const{override:t,...n}=e,r={...t};Object.keys(Zo).forEach(p=>{delete r[p]});const o={...n,...r},s=480,a=576,l=768,c=992,u=1200,d=1600,f=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:zo(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:zo(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:zo(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:zo(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:s,screenXSMin:s,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}const jg={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},Y1={motionBase:!0,motionUnit:!0},Q1={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},qg=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...s}=t;let a={...r,override:o};return a=K1(a),s&&Object.entries(s).forEach(([l,c])=>{const{theme:u,...d}=c;let f=d;u&&(f=qg({...a,...d},{override:d},u)),a[l]=f}),a};function jt(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:s}=N.useContext(Vu),a={prefix:(o==null?void 0:o.prefix)??"ant",key:(o==null?void 0:o.key)??"css-var-root"},l=`${L1}-${t||""}`,c=n||Wg,[u,d,f]=g1(c,[Zo,e],{salt:l,override:r,getComputedToken:qg,cssVar:{...a,unitless:jg,ignore:Y1,preserve:Q1}});return[c,f,t?d:"",u,a,!!s]}const Wn={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ct=(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}),go=()=>({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"}}),li=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Z1=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),J1=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...l,...a,[o]:a}}},ho=(e,t)=>({outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),bn=(e,t)=>({"&:focus-visible":ho(e,t)}),Gg=e=>({[`.${e}`]:{...go(),[`.${e} .${e}-icon`]:{display:"block"}}}),Xg=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...bn(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:at,genComponentStyleHook:e$,genSubStyleComponent:Ug}=z1({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(je);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,s]=jt();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:s}},useCSP:()=>{const{csp:e}=i.useContext(je);return e??{}},getResetStyles:(e,t)=>{const n=Z1(e);return[n,{"&":n},Gg((t==null?void 0:t.prefix.iconPrefixCls)??zi)]},getCommonStyle:J1,getCompUnitless:()=>jg}),At=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,a)=>a?`var(${n}${s}, ${a})`:`var(${n}${s})`]};function t$(e,t){return Tn.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:s,darkColor:a,textColor:l})}},{})}const n$=(e,t)=>(jt(),Qo({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Gg(e))),r$=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},o$=e=>({zIndexPopup:e.zIndexBase+10}),s$=at("Affix",r$,o$);function As(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Cf(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function Sf(e,t,n){if(n!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+n){const r=window.innerHeight-t.bottom;return n+r}}const xf=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],i$=()=>typeof window<"u"?window:null,wf=0,Ef=1,a$=N.forwardRef((e,t)=>{const{style:n,offsetTop:r,offsetBottom:o,prefixCls:s,className:a,rootClassName:l,children:c,target:u,onChange:d,onTestUpdatePosition:f,...m}=e,{getPrefixCls:p,className:g,style:h}=dt("affix"),{getTargetContainer:b}=N.useContext(je),$=p("affix",s),[y,v]=N.useState(!1),[C,S]=N.useState(),[x,w]=N.useState(),I=N.useRef(wf),E=N.useRef(null),R=N.useRef(null),P=N.useRef(null),M=N.useRef(null),O=N.useRef(null),A=u??b??i$,T=o===void 0&&r===void 0?0:r,F=()=>{if(I.current!==Ef||!M.current||!P.current||!A)return;const j=A();if(j){const V={status:wf},G=As(P.current);if(G.top===0&&G.left===0&&G.width===0&&G.height===0)return;const te=As(j),ee=Cf(G,te,T),ne=Sf(G,te,o);ee!==void 0?(V.affixStyle={position:"fixed",top:ee,width:G.width,height:G.height},V.placeholderStyle={width:G.width,height:G.height}):ne!==void 0&&(V.affixStyle={position:"fixed",bottom:ne,width:G.width,height:G.height},V.placeholderStyle={width:G.width,height:G.height}),V.lastAffix=!!V.affixStyle,y!==V.lastAffix&&(d==null||d(V.lastAffix)),I.current=V.status,S(V.affixStyle),w(V.placeholderStyle),v(V.lastAffix)}},H=()=>{I.current=Ef,F()},L=tf(()=>{H()}),B=tf(()=>{if(A&&C){const j=A();if(j&&P.current){const V=As(j),G=As(P.current),te=Cf(G,V,T),ee=Sf(G,V,o);if(te!==void 0&&C.top===te||ee!==void 0&&C.bottom===ee)return}}H()}),D=()=>{const j=A==null?void 0:A();j&&(xf.forEach(V=>{var G;R.current&&((G=E.current)==null||G.removeEventListener(V,R.current)),j==null||j.addEventListener(V,B)}),E.current=j,R.current=B)},k=()=>{const j=A==null?void 0:A();xf.forEach(V=>{var G;j==null||j.removeEventListener(V,B),R.current&&((G=E.current)==null||G.removeEventListener(V,R.current))}),L.cancel(),B.cancel()};N.useImperativeHandle(t,()=>({updatePosition:L})),N.useEffect(()=>(O.current=setTimeout(D),()=>{O.current&&(clearTimeout(O.current),O.current=null),k()}),[]),N.useEffect(()=>(D(),()=>k()),[u,C,y,r,o]),N.useEffect(()=>{L()},[u,r,o]);const[W,_]=s$($),X=z(l,W,$,_),U=z({[X]:C});return N.createElement(Fn,{onResize:L},N.createElement("div",{style:{...h,...n},className:z(a,g),ref:P,...m},C&&N.createElement("div",{style:x,"aria-hidden":"true"}),N.createElement("div",{className:U,ref:M,style:C},N.createElement(Fn,{onResize:L},c))))});var l$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const c$={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"},Tt=Math.round;function $a(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 If=(e,t,n)=>n===0?e:e/100;function Mo(e,t){const n=t||255;return e>n?n:e<0?0:e}class eo{constructor(t){le(this,"isValid",!0);le(this,"r",0);le(this,"g",0);le(this,"b",0);le(this,"a",1);le(this,"_h");le(this,"_s");le(this,"_l");le(this,"_v");le(this,"_max");le(this,"_min");le(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=c$[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof eo)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Mo(t.r),this.g=Mo(t.g),this.b=Mo(t.b),this.a=typeof t.a=="number"?Mo(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 a=s/255;return a<=.03928?a/12.92:Math.pow((a+.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=Tt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,s=l=>(r[l]-this[l])*o+this[l],a={r:Tt(s("r")),g:Tt(s("g")),b:Tt(s("b")),a:Tt(s("a")*100)/100};return this._c(a)}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=>Tt((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=Tt(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Tt(this.getSaturation()*100),r=Tt(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Mo(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,s){return parseInt(n[o]+n[s||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=Tt(r*255);this.r=m,this.g=m,this.b=m}let s=0,a=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(s=u,a=d):c>=1&&c<2?(s=d,a=u):c>=2&&c<3?(a=u,l=d):c>=3&&c<4?(a=d,l=u):c>=4&&c<5?(s=d,l=u):c>=5&&c<6&&(s=u,l=d);const f=r-u/2;this.r=Tt((s+f)*255),this.g=Tt((a+f)*255),this.b=Tt((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const s=Tt(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,u=Tt(r*(1-n)*255),d=Tt(r*(1-n*c)*255),f=Tt(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=$a(t,If);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=$a(t,If);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=$a(t,(r,o)=>o.includes("%")?Tt(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const zs=2,Pf=.16,u$=.05,d$=.05,f$=.15,Kg=5,Yg=4,m$=[{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 Rf(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-zs*t:Math.round(e.h)+zs*t:r=n?Math.round(e.h)+zs*t:Math.round(e.h)-zs*t,r<0?r+=360:r>=360&&(r-=360),r}function Mf(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Pf*t:t===Yg?r=e.s+Pf:r=e.s+u$*t,r>1&&(r=1),n&&t===Kg&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Nf(e,t,n){let r;return n?r=e.v+d$*t:r=e.v-f$*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function p$(e,t={}){const n=[],r=new eo(e),o=r.toHsv();for(let s=Kg;s>0;s-=1){const a=new eo({h:Rf(o,s,!0),s:Mf(o,s,!0),v:Nf(o,s,!0)});n.push(a)}n.push(r);for(let s=1;s<=Yg;s+=1){const a=new eo({h:Rf(o,s),s:Mf(o,s),v:Nf(o,s)});n.push(a)}return t.theme==="dark"?m$.map(({index:s,amount:a})=>new eo(t.backgroundColor||"#141414").mix(n[s],a).toHexString()):n.map(s=>s.toHexString())}const Ml=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ml.primary=Ml[5];const Hi=i.createContext({});function g$(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function h$(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 Tf="data-rc-order",Of="data-rc-priority",b$="rc-util-key",Nl=new Map;function Qg({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:b$}function Wu(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function v$(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ju(e){return Array.from((Nl.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Zg(e,t={}){if(!g$())return null;const{csp:n,prepend:r,priority:o=0}=t,s=v$(r),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(Tf,s),a&&o&&l.setAttribute(Of,`${o}`),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;const c=Wu(t),{firstChild:u}=c;if(r){if(a){const d=(t.styles||ju(c)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(Tf)))return!1;const m=Number(f.getAttribute(Of)||0);return o>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function y$(e,t={}){let{styles:n}=t;return n||(n=ju(Wu(t))),n.find(r=>r.getAttribute(Qg(t))===e)}function $$(e,t){const n=Nl.get(e);if(!n||!h$(document,n)){const r=Zg("",t),{parentNode:o}=r;Nl.set(e,o),e.removeChild(r)}}function C$(e,t,n={}){var c,u,d;const r=Wu(n),o=ju(r),s={...n,styles:o};$$(r,s);const a=y$(t,s);if(a)return(c=s.csp)!=null&&c.nonce&&a.nonce!==((u=s.csp)==null?void 0:u.nonce)&&(a.nonce=(d=s.csp)==null?void 0:d.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=Zg(e,s);return l.setAttribute(Qg(s),t),l}function Jg(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function S$(e){return Jg(e)instanceof ShadowRoot}function x$(e){return S$(e)?Jg(e):null}let Tl={};const w$=e=>{};function E$(e,t){}function I$(e,t){}function P$(){Tl={}}function eh(e,t,n){!t&&!Tl[n]&&(e(!1,n),Tl[n]=!0)}function Di(e,t){eh(E$,e,t)}function R$(e,t){eh(I$,e,t)}Di.preMessage=w$;Di.resetWarned=P$;Di.noteOnce=R$;function M$(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function N$(e,t){Di(e,`[@ant-design/icons] ${t}`)}function Af(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function zf(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[M$(n)]=r}return t},{})}function Ol(e,t,n){return n?N.createElement(e.tag,{key:t,...zf(e.attrs),...n},(e.children||[]).map((r,o)=>Ol(r,`${t}-${e.tag}-${o}`))):N.createElement(e.tag,{key:t,...zf(e.attrs)},(e.children||[]).map((r,o)=>Ol(r,`${t}-${e.tag}-${o}`)))}function th(e){return p$(e)[0]}function nh(e){return e?Array.isArray(e)?e:[e]:[]}const T$=`
|
||
.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::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,O$=e=>{const{csp:t,prefixCls:n,layer:r}=i.useContext(Hi);let o=T$;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
|
||
${o}
|
||
}`),i.useEffect(()=>{const s=e.current,a=x$(s);C$(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:a})},[])},ko={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function A$({primaryColor:e,secondaryColor:t}){ko.primaryColor=e,ko.secondaryColor=t||th(e),ko.calculated=!!t}function z$(){return{...ko}}const bo=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:s,secondaryColor:a,...l}=e,c=i.useRef(null);let u=ko;if(s&&(u={primaryColor:s,secondaryColor:a||th(s)}),O$(c),N$(Af(t),`icon should be icon definiton, but got ${t}`),!Af(t))return null;let d=t;return d&&typeof d.icon=="function"&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),Ol(d.icon,`svg-${d.name}`,{className:n,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};bo.displayName="IconReact";bo.getTwoToneColors=z$;bo.setTwoToneColors=A$;function rh(e){const[t,n]=nh(e);return bo.setTwoToneColors({primaryColor:t,secondaryColor:n})}function B$(){const e=bo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Al(){return Al=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},Al.apply(this,arguments)}rh(Ml.primary);const Ye=i.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:s,tabIndex:a,onClick:l,twoToneColor:c,...u}=e,{prefixCls:d="anticon",rootClassName:f}=i.useContext(Hi),m=z(f,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!o||r.name==="loading"},n);let p=a;p===void 0&&l&&(p=-1);const g=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[h,b]=nh(c);return i.createElement("span",Al({role:"img","aria-label":r.name},u,{ref:t,tabIndex:p,onClick:l,className:m}),i.createElement(bo,{icon:r,primaryColor:h,secondaryColor:b,style:g}))});Ye.getTwoToneColor=B$;Ye.setTwoToneColor=rh;function zl(){return zl=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},zl.apply(this,arguments)}const L$=(e,t)=>i.createElement(Ye,zl({},e,{ref:t,icon:l$})),qu=i.forwardRef(L$);var H$={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 Bl(){return Bl=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},Bl.apply(this,arguments)}const D$=(e,t)=>i.createElement(Ye,Bl({},e,{ref:t,icon:H$})),is=i.forwardRef(D$);var F$={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 Ll(){return Ll=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},Ll.apply(this,arguments)}const _$=(e,t)=>i.createElement(Ye,Ll({},e,{ref:t,icon:F$})),Br=i.forwardRef(_$);var k$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function Hl(){return Hl=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},Hl.apply(this,arguments)}const V$=(e,t)=>i.createElement(Ye,Hl({},e,{ref:t,icon:k$})),as=i.forwardRef(V$);var W$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function Dl(){return Dl=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},Dl.apply(this,arguments)}const j$=(e,t)=>i.createElement(Ye,Dl({},e,{ref:t,icon:W$})),Gu=i.forwardRef(j$),oh=i.createContext({});function q$({children:e,...t}){return i.createElement(oh.Provider,{value:t},e)}function G$(e){const[,t]=i.useReducer(s=>s+1,0),n=i.useRef(e),r=We(()=>n.current),o=We(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}const Ln="none",Bs="appear",Ls="enter",Hs="leave",Bf="none",Sn="prepare",to="start",no="active",Xu="end",sh="prepared";function Lf(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 X$(e,t){const n={animationend:Lf("Animation","AnimationEnd"),transitionend:Lf("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const U$=X$(Ot(),typeof window<"u"?window:{});let ih={};Ot()&&({style:ih}=document.createElement("div"));const Ds={};function ah(e){if(Ds[e])return Ds[e];const t=U$[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 ih)return Ds[e]=t[s],Ds[e]}}return""}const lh=ah("animationend"),ch=ah("transitionend"),K$=!!(lh&&ch),Hf=lh||"animationend",Df=ch||"transitionend";function Ff(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 Y$=e=>{const t=i.useRef();function n(o){o&&(o.removeEventListener(Df,e),o.removeEventListener(Hf,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Df,e),o.addEventListener(Hf,e),t.current=o)}return i.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]},uh=Ot()?i.useLayoutEffect:i.useEffect,Q$=()=>{const e=i.useRef(null);function t(){Ke.cancel(e.current)}function n(r,o=2){t();const s=Ke(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return i.useEffect(()=>()=>{t()},[]),[n,t]},Z$=[Sn,to,no,Xu],J$=[Sn,sh],dh=!1,eC=!0;function fh(e){return e===no||e===Xu}const tC=(e,t,n)=>{const[r,o]=si(Bf),[s,a]=Q$();function l(){o(Sn,!0)}const c=t?J$:Z$;return uh(()=>{if(r!==Bf&&r!==Xu){const u=c.indexOf(r),d=c[u+1],f=n(r);f===dh?o(d,!0):d&&s(m=>{function p(){m.isCanceled()||o(d,!0)}f===!0?p():Promise.resolve(f).then(p)})}},[e,r]),i.useEffect(()=>()=>{a()},[]),[l,r]};function nC(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:a,motionLeaveImmediately:l,onAppearPrepare:c,onEnterPrepare:u,onLeavePrepare:d,onAppearStart:f,onEnterStart:m,onLeaveStart:p,onAppearActive:g,onEnterActive:h,onLeaveActive:b,onAppearEnd:$,onEnterEnd:y,onLeaveEnd:v,onVisibleChanged:C}){const[S,x]=si(),[w,I]=G$(Ln),[E,R]=si(null),P=w(),M=i.useRef(!1),O=i.useRef(null);function A(){return n()}const T=i.useRef(!1);function F(){I(Ln),R(null,!0)}const H=We(V=>{const G=w();if(G===Ln)return;const te=A();if(V&&!V.deadline&&V.target!==te)return;const ee=T.current;let ne;G===Bs&&ee?ne=$==null?void 0:$(te,V):G===Ls&&ee?ne=y==null?void 0:y(te,V):G===Hs&&ee&&(ne=v==null?void 0:v(te,V)),ee&&ne!==!1&&F()}),[L]=Y$(H),B=V=>{switch(V){case Bs:return{[Sn]:c,[to]:f,[no]:g};case Ls:return{[Sn]:u,[to]:m,[no]:h};case Hs:return{[Sn]:d,[to]:p,[no]:b};default:return{}}},D=i.useMemo(()=>B(P),[P]),[k,W]=tC(P,!e,V=>{var G;if(V===Sn){const te=D[Sn];return te?te(A()):dh}return W in D&&R(((G=D[W])==null?void 0:G.call(D,A(),null))||null),W===no&&P!==Ln&&(L(A()),a>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{H({deadline:!0})},a))),W===sh&&F(),eC}),_=fh(W);T.current=_;const X=i.useRef(null);uh(()=>{if(M.current&&X.current===t)return;x(t);const V=M.current;M.current=!0;let G;!V&&t&&o&&(G=Bs),V&&t&&r&&(G=Ls),(V&&!t&&s||!V&&l&&!t&&s)&&(G=Hs);const te=B(G);G&&(e||te[Sn])?(I(G),k()):I(Ln),X.current=t},[t]),i.useEffect(()=>{(P===Bs&&!o||P===Ls&&!r||P===Hs&&!s)&&I(Ln)},[o,r,s]),i.useEffect(()=>()=>{M.current=!1,clearTimeout(O.current)},[]);const U=i.useRef(!1);i.useEffect(()=>{S&&(U.current=!0),S!==void 0&&P===Ln&&((U.current||S)&&(C==null||C(S)),U.current=!0)},[S,P]);let j=E;return D[Sn]&&W===to&&(j={transition:"none",...j}),[w,W,j,S??t]}function rC(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=i.forwardRef((o,s)=>{const{visible:a=!0,removeOnLeave:l=!0,forceRender:c,children:u,motionName:d,leavedClassName:f,eventProps:m}=o,{motion:p}=i.useContext(oh),g=n(o,p),h=i.useRef();function b(){return co(h.current)}const[$,y,v,C]=nC(g,a,b,o),S=$(),x=i.useRef(C);C&&(x.current=!0);const w=i.useMemo(()=>{const R={};return Object.defineProperties(R,{nativeElement:{enumerable:!0,get:b},inMotion:{enumerable:!0,get:()=>()=>$()!==Ln},enableMotion:{enumerable:!0,get:()=>()=>g}}),R},[]);i.useImperativeHandle(s,()=>w,[]);let I;const E={...m,visible:a};if(!u)I=null;else if(S===Ln)C?I=u({...E},h):!l&&x.current&&f?I=u({...E,className:f},h):c||!l&&!f?I=u({...E,style:{display:"none"}},h):I=null;else{let R;y===Sn?R="prepare":fh(y)?R="active":y===to&&(R="start");const P=Ff(d,`${S}-${R}`);I=u({...E,className:z(Ff(d,S),{[P]:P&&R,[d]:typeof d=="string"}),style:v},h)}return i.isValidElement(I)&&dr(I)&&(Gn(I)||(I=i.cloneElement(I,{ref:h}))),I});return r.displayName="CSSMotion",r}const un=rC(K$),Fl="add",_l="keep",kl="remove",Ca="removed";function oC(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Vl(e=[]){return e.map(oC)}function sC(e=[],t=[]){let n=[],r=0;const o=t.length,s=Vl(e),a=Vl(t);s.forEach(u=>{let d=!1;for(let f=r;f<o;f+=1){const m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(p=>({...p,status:Fl}))),r=f),n.push({...m,status:_l}),r+=1,d=!0;break}}d||n.push({...u,status:kl})}),r<o&&(n=n.concat(a.slice(r).map(u=>({...u,status:Fl}))));const l={};return n.forEach(({key:u})=>{l[u]=(l[u]||0)+1}),Object.keys(l).filter(u=>l[u]>1).forEach(u=>{n=n.filter(({key:d,status:f})=>d!==u||f!==kl),n.forEach(d=>{d.key===u&&(d.status=_l)})}),n}function Wl(){return Wl=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},Wl.apply(this,arguments)}const iC=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function aC(e,t=un){class n extends i.Component{constructor(){super(...arguments);le(this,"state",{keyEntities:[]});le(this,"removeKey",s=>{this.setState(a=>({keyEntities:a.keyEntities.map(c=>c.key!==s?c:{...c,status:Ca})}),()=>{const{keyEntities:a}=this.state;a.filter(({status:c})=>c!==Ca).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:a}){const l=Vl(s);return{keyEntities:sC(a,l).filter(u=>{const d=a.find(({key:f})=>u.key===f);return!(d&&d.status===Ca&&u.status===kl)})}}render(){const{keyEntities:s}=this.state,{component:a,children:l,onVisibleChanged:c,onAllRemoved:u,...d}=this.props,f=a||i.Fragment,m={};return iC.forEach(p=>{m[p]=d[p],delete d[p]}),delete d.keys,i.createElement(f,d,s.map(({status:p,...g},h)=>{const b=p===Fl||p===_l;return i.createElement(t,Wl({},m,{key:g.key,visible:b,eventProps:g,onVisibleChanged:$=>{c==null||c($,{key:g.key}),$||this.removeKey(g.key)}}),($,y)=>l({...$,index:h},y))}))}}return le(n,"defaultProps",{component:"div"}),n}const lC=aC(),cC=`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`,uC=`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`,dC=`${cC} ${uC}`.split(/[\s\n]+/),fC="aria-",mC="data-";function _f(e,t){return e.indexOf(t)===0}function cn(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"||_f(o,fC))||n.data&&_f(o,mC)||n.attr&&dC.includes(o))&&(r[o]=e[o])}),r}const pC={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 gC={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function kf(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 Vf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kf(Object(n),!0).forEach(function(r){hC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hC(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=vC(e,"string");return Jo(t)=="symbol"?t:String(t)}function vC(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mh=Vf(Vf({},gC),{},{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 yC=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),ph={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Wf={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"],...mh},timePickerLocale:{...ph}},en="${label} is not a valid ${type}",jn={locale:"en",Pagination:pC,DatePicker:Wf,TimePicker:ph,Calendar:Wf,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:en,method:en,array:en,object:en,number:en,date:en,boolean:en,integer:en,float:en,regexp:en,email:en,url:en,hex:en},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 Qs={...jn.Modal},Zs=[];const jf=()=>Zs.reduce((e,t)=>({...e,...t}),jn.Modal);function $C(e){if(e){const t={...e};return Zs.push(t),Qs=jf(),()=>{Zs=Zs.filter(n=>n!==t),Qs=jf()}}Qs={...jn.Modal}}function gh(){return Qs}const Uu=i.createContext(void 0),dn=(e,t)=>{const n=i.useContext(Uu),r=i.useMemo(()=>{const s=t||jn[e],a=(n==null?void 0:n[e])??{};return{...typeof s=="function"?s():s,...a||{}}},[e,t,n]),o=i.useMemo(()=>{const s=n==null?void 0:n.locale;return n!=null&&n.exist&&!s?jn.locale:s},[n]);return[r,o]},CC="internalMark",SC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>$C(t==null?void 0:t.Modal),[t]);const o=i.useMemo(()=>({...t,exist:!0}),[t]);return i.createElement(Uu.Provider,{value:o},n)};function qf(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const vn=e=>e!=null,ci=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},hh={},Gf=(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 e&&typeof e=="object"&&(n={...n,...e}),n},xC=(e,t,n)=>e===!1?!1:e?qf(n,t,e):t===!1?!1:t?qf(n,t):n.closable?n:!1,wC=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...s}=e;let a=o;const l=cn(s,!0);return vn(a)&&(r&&(a=r(a)),a=N.isValidElement(a)?N.cloneElement(a,{"aria-label":n,...a.props,...l}):N.createElement("span",{"aria-label":n,...l},a)),[a,l]},bh=(e,t,n=hh,r="Close")=>{const o=Gf(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),s=Gf(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),a={closeIcon:N.createElement(Br,null),...n},l=xC(o,s,a),c=typeof l!="boolean"?!!(l!=null&&l.disabled):!1;if(l===!1)return[!1,null,c,{}];const[u,d]=wC(l,a,r);return[!0,u,c,d]},EC=(e,t,n=hh)=>{const[r]=dn("global",jn.global);return N.useMemo(()=>bh(e,t,{closeIcon:N.createElement(Br,null),...n},r.close),[e,t,n,r.close])},IC=()=>N.useReducer(e=>e+1,0),jl=(e,t)=>{let n={};return e&&typeof e=="object"&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},PC=(e,t,n,r)=>i.useMemo(()=>{const o=jl(e,r),s=jl(t),a={blur:!1,...s,...o,closable:o.closable??r??s.closable??!0},l=a.blur?`${n}-mask-blur`:void 0;return[a.enabled!==!1,{mask:l},!!a.closable]},[e,t,n,r]),Fi=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,o)=>(Object.keys(o||{}).forEach(s=>{const a=n[s],l=o[s];if(a&&typeof a=="object")if(l&&typeof l=="object")r[s]=Fi(a,r[s],l);else{const{_default:c}=a;c&&(r[s]=r[s]||{},r[s][c]=z(r[s][c],l))}else r[s]=z(r[s],l)}),r),{})},RC=(e,...t)=>i.useMemo(()=>Fi.apply(void 0,[e].concat(t)),[e].concat(t)),Ku=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),MC=(...e)=>i.useMemo(()=>Ku.apply(void 0,e),[].concat(e)),ql=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],s=n[r]||{};n[r]=o?ql(s,o):s}}),n},rr=(e,t)=>typeof e=="function"?e(t):e,pt=(e,t,n,r)=>{const o=e.map(c=>c?rr(c,n):void 0),s=t.map(c=>c?rr(c,n):void 0),a=RC.apply(void 0,[r].concat(xt(o))),l=MC.apply(void 0,xt(s));return i.useMemo(()=>r?[ql(a,r),ql(l,r)]:[a,l],[a,l,r])},Xf=e=>e==="horizontal"||e==="vertical",vo=(e,t,n)=>i.useMemo(()=>{const r=Xf(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=Xf(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),NC=()=>{const[e,t]=i.useState([]),n=i.useCallback(r=>(t(o=>[].concat(xt(o),[r])),()=>{t(o=>o.filter(s=>s!==r))}),[]);return[e,n]},_i=N.createContext(void 0),Jn=100,TC=10,Yu=Jn*TC,vh={Modal:Jn,Drawer:Jn,Popover:Jn,Popconfirm:Jn,Tooltip:Jn,Tour:Jn,FloatButton:Jn},OC={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},AC=e=>e in vh,ls=(e,t)=>{const[,n]=jt(),r=N.useContext(_i),o=AC(e);let s;if(t!==void 0)s=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+vh[e]:a+=OC[e],s=[r===void 0?t:a,a]}return s};function Gl(e){return vn(e)&&e===e.window}const yh=e=>{var n;if(typeof window>"u")return 0;let t=0;return Gl(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Gl(e)&&typeof t!="number"&&(t=(n=(e.ownerDocument??e).documentElement)==null?void 0:n.scrollTop),t};function zC(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 BC(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,s=n(),a=yh(s),l=Date.now();let c;const u=()=>{const f=Date.now()-l,m=zC(f>o?o:f,a,e,o);Gl(s)?s.scrollTo(window.pageXOffset,m):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=m:s.scrollTop=m,f<o?c=Ke(u):typeof r=="function"&&r()};return c=Ke(u),()=>{Ke.cancel(c)}}const _t=e=>`${e}-css-var`,LC=i.createContext(void 0),$h=i.createContext(null);let HC=!1;function DC(e){return HC}const Uf=[];function FC(e,t){const[n]=i.useState(()=>Ot()?document.createElement("div"):null),r=i.useRef(!1),o=i.useContext($h),[s,a]=i.useState(Uf),l=o||(r.current?void 0:d=>{a(f=>[d,...f])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var d;(d=n.parentElement)==null||d.removeChild(n),r.current=!1}return nt(()=>(e?o?o(c):c():u(),u),[e]),nt(()=>{s.length&&(s.forEach(d=>d()),a(Uf))},[s]),[n,l]}function _C(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 u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),f=parseInt(u.height,10);try{const m=d?`width: ${u.width};`:"",p=f?`height: ${u.height};`:"";sr(`
|
||
#${t}::-webkit-scrollbar {
|
||
${m}
|
||
${p}
|
||
}`,t)}catch(m){console.error(m),o=d,s=f}}document.body.appendChild(n);const a=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Or(t),{width:a,height:l}}function Ch(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:_C(e)}function kC(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const VC=`rc-util-locker-${Date.now()}`;let Kf=0;function WC(e){const t=!!e,[n]=i.useState(()=>(Kf+=1,`${VC}_${Kf}`));nt(()=>{if(t){const r=Ch(document.body).width,o=kC();sr(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${o?`width: calc(100% - ${r}px);`:""}
|
||
}`,n)}else Or(n);return()=>{Or(n)}},[t,n])}function jC(){return{...fy}.useId}let Yf=0;const Qf=jC(),Xn=Qf?function(t){const n=Qf();return t||n}:function(t){const[n,r]=i.useState("ssr-id");return i.useEffect(()=>{const o=Yf;Yf+=1,r(`rc_unique_${o}`)},[]),t||n};let Cr=[];const qC=200;let Sh=0;const xh=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-Sh<qC)return;const n=Cr.length;for(let r=n-1;r>=0;r-=1)Cr[r].onEsc({top:r===n-1,event:e})}},wh=()=>{Sh=Date.now()};function GC(){window.addEventListener("keydown",xh),window.addEventListener("compositionend",wh)}function XC(){Cr.length===0&&(window.removeEventListener("keydown",xh),window.removeEventListener("compositionend",wh))}function UC(e,t){const n=Xn(),r=We(t),o=()=>{Cr.find(a=>a.id===n)||Cr.push({id:n,onEsc:r})},s=()=>{Cr=Cr.filter(a=>a.id!==n)};i.useMemo(()=>{e?o():e||s()},[e]),i.useEffect(()=>{if(e)return o(),GC(),()=>{s(),XC()}},[e])}const Zf=e=>e===!1?!1:!Ot()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Qu=i.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:a=!0,children:l,onEsc:c}=e,[u,d]=i.useState(n),f=u||n;i.useEffect(()=>{(a||n)&&d(n)},[n,a]);const[m,p]=i.useState(()=>Zf(o));i.useEffect(()=>{const S=Zf(o);p(()=>S??null)});const[g,h]=FC(f&&!m),b=m??g;WC(r&&n&&Ot()&&(b===g||b===document.body)),UC(n,c);let $=null;l&&dr(l)&&t&&($=Gn(l));const y=qn($,t);if(!f||!Ot()||m===void 0)return null;const v=b===!1||DC();let C=l;return t&&(C=i.cloneElement(l,{ref:y})),i.createElement($h.Provider,{value:h},v?C:Vn.createPortal(C,b))});function Eh(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function KC(e){return Eh(e)instanceof ShadowRoot}function Xl(e){return KC(e)?Eh(e):null}function YC(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:s,content:a,style:l}=r||{},{x:c=0,y:u=0}=o,d=i.useRef(null);if(!n||!n.points)return null;const f={position:"absolute"};if(n.autoArrow!==!1){const m=n.points[0],p=n.points[1],g=m[0],h=m[1],b=p[0],$=p[1];g===b||!["t","b"].includes(g)?f.top=u:g==="t"?f.top=0:f.bottom=0,h===$||!["l","r"].includes(h)?f.left=c:h==="l"?f.left=0:f.right=0}return i.createElement("div",{ref:d,className:z(`${t}-arrow`,s),style:{...f,...l}},a)}function Ul(){return Ul=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},Ul.apply(this,arguments)}function QC(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:s,mobile:a}=e;return o?i.createElement(un,Ul({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:l})=>i.createElement("div",{style:{zIndex:r},className:z(`${t}-mask`,a&&`${t}-mobile-mask`,l)})):null}const ZC=i.memo(({children:e})=>e,(e,t)=>t.cache);function Ih(e,t,n,r,o,s,a,l){var d;const c="auto",u=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!n)){const{points:f}=r,m=r.dynamicInset||((d=r._experimental)==null?void 0:d.dynamicInset),p=m&&f[0][1]==="r",g=m&&f[0][0]==="b";p?(u.right=o,u.left=c):(u.left=a,u.right=c),g?(u.bottom=s,u.top=c):(u.top=l,u.bottom=c)}return u}function Kl(){return Kl=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},Kl.apply(this,arguments)}const Ph=i.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:s,style:a,target:l,onVisibleChanged:c,open:u,keepDom:d,fresh:f,onClick:m,mask:p,arrow:g,arrowPos:h,align:b,motion:$,maskMotion:y,mobile:v,forceRender:C,getPopupContainer:S,autoDestroy:x,portal:w,children:I,zIndex:E,onMouseEnter:R,onMouseLeave:P,onPointerEnter:M,onPointerDownCapture:O,ready:A,offsetX:T,offsetY:F,offsetR:H,offsetB:L,onAlign:B,onPrepare:D,onResize:k,stretch:W,targetWidth:_,targetHeight:X}=e,U=typeof r=="function"?r():r,j=u||d,V=!!v,[G,te,ee]=i.useMemo(()=>v?[v.mask,v.maskMotion,v.motion]:[p,y,$],[v,p,y,$]),ne=(S==null?void 0:S.length)>0,[Y,se]=i.useState(!S||!ne);nt(()=>{!Y&&ne&&l&&se(!0)},[Y,ne,l]);const ue=We((Z,J)=>{k==null||k(Z,J),B()}),q=Ih(V,A,u,b,H,L,T,F);if(!Y)return null;const oe={};return W&&(W.includes("height")&&X?oe.height=X:W.includes("minHeight")&&X&&(oe.minHeight=X),W.includes("width")&&_?oe.width=_:W.includes("minWidth")&&_&&(oe.minWidth=_)),u||(oe.pointerEvents="none"),i.createElement(w,{open:C||j,getContainer:S&&(()=>S(l)),autoDestroy:x,onEsc:n},i.createElement(QC,{prefixCls:s,open:u,zIndex:E,mask:G,motion:te,mobile:V}),i.createElement(Fn,{onResize:ue,disabled:!u},Z=>i.createElement(un,Kl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:`${s}-hidden`},ee,{onAppearPrepare:D,onEnterPrepare:D,visible:u,onVisibleChanged:J=>{var ae;(ae=$==null?void 0:$.onVisibleChanged)==null||ae.call($,J),c(J)}}),({className:J,style:ae},we)=>{const de=z(s,J,o,{[`${s}-mobile`]:V});return i.createElement("div",{ref:Ft(Z,t,we),className:de,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...q,...oe,...ae,boxSizing:"border-box",zIndex:E,...a},onMouseEnter:R,onMouseLeave:P,onPointerEnter:M,onClick:m,onPointerDownCapture:O},g&&i.createElement(YC,{prefixCls:s,arrow:g,arrowPos:h,align:b}),i.createElement(ZC,{cache:!u&&!f},U))})),I)}),ui=i.createContext(null),Rh=i.createContext(null);function Jf(e){return e?Array.isArray(e)?e:[e]:[]}function JC(e,t,n){return i.useMemo(()=>{const r=Jf(t??e),o=Jf(n??e),s=new Set(r),a=new Set(o);return s.has("hover")&&!s.has("click")&&s.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[s,a]},[e,t,n])}const Zu=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 eS(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 Mh(e,t,n,r){var a;const{points:o}=n,s=Object.keys(e);for(let l=0;l<s.length;l+=1){const c=s[l];if(eS((a=e[c])==null?void 0:a.points,o,r))return`${t}-placement-${c}`}return""}function cs(e){return e.ownerDocument.defaultView}function Yl(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:a}=cs(n).getComputedStyle(n);[o,s,a].some(l=>r.includes(l))&&t.push(n),n=n.parentElement}return t}function es(e,t=1){return Number.isNaN(e)?t:e}function No(e){return es(parseFloat(e),0)}function em(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:s,borderTopWidth:a,borderBottomWidth:l,borderLeftWidth:c,borderRightWidth:u}=cs(r).getComputedStyle(r),d=r.getBoundingClientRect(),{offsetHeight:f,clientHeight:m,offsetWidth:p,clientWidth:g}=r,h=No(a),b=No(l),$=No(c),y=No(u),v=es(Math.round(d.width/p*1e3)/1e3),C=es(Math.round(d.height/f*1e3)/1e3),S=(p-g-$-y)*v,x=(f-m-h-b)*C,w=h*C,I=b*C,E=$*v,R=y*v;let P=0,M=0;if(o==="clip"){const H=No(s);P=H*v,M=H*C}const O=d.x+E-P,A=d.y+w-M,T=O+d.width+2*P-E-R-S,F=A+d.height+2*M-w-I-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,A),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,F)}),n}function tm(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function nm(e,t){const[n,r]=t||[];return[tm(e.width,n),tm(e.height,r)]}function rm(e=""){return[e[0],e[1]]}function Vr(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 Qn(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function om(e){return e.join("")}function Nh(e,t,n,r,o,s,a,l){const[c,u]=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=i.useRef(0),f=i.useMemo(()=>!t||l?[]:Yl(t),[t]),m=i.useRef({});e||(()=>{m.current={}})();const g=We(()=>{var $,y;if(t&&n&&e&&!l){let ke=function(Ue,Lt,zt=oe){const fr=T.x+Ue,mr=T.y+Lt,Ns=fr+U,Gd=mr+X,aa=Math.max(fr,zt.left),la=Math.max(mr,zt.top),ca=Math.min(Ns,zt.right),Le=Math.min(Gd,zt.bottom);return Math.max(0,(ca-aa)*(Le-la))},xe=function(){Q=T.y+$e,pe=Q+X,ie=T.x+re,he=ie+U};const v=t,C=v.ownerDocument,S=cs(v),{position:x}=S.getComputedStyle(v),w=v.style.left,I=v.style.top,E=v.style.right,R=v.style.bottom,P=v.style.overflow,M={...o[r],...s},O=C.createElement("div");($=v.parentElement)==null||$.appendChild(O),O.style.left=`${v.offsetLeft}px`,O.style.top=`${v.offsetTop}px`,O.style.position=x,O.style.height=`${v.offsetHeight}px`,O.style.width=`${v.offsetWidth}px`,v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden";let A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{const Ue=n.getBoundingClientRect();Ue.x=Ue.x??Ue.left,Ue.y=Ue.y??Ue.top,A={x:Ue.x,y:Ue.y,width:Ue.width,height:Ue.height}}const T=v.getBoundingClientRect(),{height:F,width:H}=S.getComputedStyle(v);T.x=T.x??T.left,T.y=T.y??T.top;const{clientWidth:L,clientHeight:B,scrollWidth:D,scrollHeight:k,scrollTop:W,scrollLeft:_}=C.documentElement,X=T.height,U=T.width,j=A.height,V=A.width,G={left:0,top:0,right:L,bottom:B},te={left:-_,top:-W,right:D-_,bottom:k-W};let{htmlRegion:ee}=M;const ne="visible",Y="visibleFirst";ee!=="scroll"&&ee!==Y&&(ee=ne);const se=ee===Y,ue=em(te,f),q=em(G,f),oe=ee===ne?q:ue,Z=se?q:oe;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";const J=v.getBoundingClientRect();v.style.left=w,v.style.top=I,v.style.right=E,v.style.bottom=R,v.style.overflow=P,(y=v.parentElement)==null||y.removeChild(O);const ae=es(Math.round(U/parseFloat(H)*1e3)/1e3),we=es(Math.round(X/parseFloat(F)*1e3)/1e3);if(ae===0||we===0||lo(n)&&!Zu(n))return;const{offset:de,targetOffset:ge}=M;let[be,me]=nm(T,de);const[Ne,Ae]=nm(A,ge);A.x-=Ne,A.y-=Ae;const[Ee,ze]=M.points||[],Re=rm(ze),ve=rm(Ee),fe=Vr(A,Re),Ce=Vr(T,ve),He={...M};let Ie=[ve,Re],re=fe.x-Ce.x+be,$e=fe.y-Ce.y+me;const De=ke(re,$e),ot=ke(re,$e,q),qe=Vr(A,["t","l"]),ft=Vr(T,["t","l"]),Qe=Vr(A,["b","r"]),st=Vr(T,["b","r"]),lt=M.overflow||{},{adjustX:Se,adjustY:Be,shiftX:Pe,shiftY:ye}=lt,ce=Ue=>typeof Ue=="boolean"?Ue:Ue>=0;let Q,pe,ie,he;xe();const Te=ce(Be),Fe=ve[0]===Re[0];if(Te&&ve[0]==="t"&&(pe>Z.bottom||m.current.bt)){let Ue=$e;Fe?Ue-=X-j:Ue=qe.y-st.y-me;const Lt=ke(re,Ue),zt=ke(re,Ue,q);Lt>De||Lt===De&&(!se||zt>=ot)?(m.current.bt=!0,$e=Ue,me=-me,Ie=[Qn(Ie[0],0),Qn(Ie[1],0)]):m.current.bt=!1}if(Te&&ve[0]==="b"&&(Q<Z.top||m.current.tb)){let Ue=$e;Fe?Ue+=X-j:Ue=Qe.y-ft.y-me;const Lt=ke(re,Ue),zt=ke(re,Ue,q);Lt>De||Lt===De&&(!se||zt>=ot)?(m.current.tb=!0,$e=Ue,me=-me,Ie=[Qn(Ie[0],0),Qn(Ie[1],0)]):m.current.tb=!1}const Je=ce(Se),tt=ve[1]===Re[1];if(Je&&ve[1]==="l"&&(he>Z.right||m.current.rl)){let Ue=re;tt?Ue-=U-V:Ue=qe.x-st.x-be;const Lt=ke(Ue,$e),zt=ke(Ue,$e,q);Lt>De||Lt===De&&(!se||zt>=ot)?(m.current.rl=!0,re=Ue,be=-be,Ie=[Qn(Ie[0],1),Qn(Ie[1],1)]):m.current.rl=!1}if(Je&&ve[1]==="r"&&(ie<Z.left||m.current.lr)){let Ue=re;tt?Ue+=U-V:Ue=Qe.x-ft.x-be;const Lt=ke(Ue,$e),zt=ke(Ue,$e,q);Lt>De||Lt===De&&(!se||zt>=ot)?(m.current.lr=!0,re=Ue,be=-be,Ie=[Qn(Ie[0],1),Qn(Ie[1],1)]):m.current.lr=!1}He.points=[om(Ie[0]),om(Ie[1])],xe();const Ze=Pe===!0?0:Pe;typeof Ze=="number"&&(ie<q.left&&(re-=ie-q.left-be,A.x+V<q.left+Ze&&(re+=A.x-q.left+V-Ze)),he>q.right&&(re-=he-q.right-be,A.x>q.right-Ze&&(re+=A.x-q.right+Ze)));const Mt=ye===!0?0:ye;typeof Mt=="number"&&(Q<q.top&&($e-=Q-q.top-me,A.y+j<q.top+Mt&&($e+=A.y-q.top+j-Mt)),pe>q.bottom&&($e-=pe-q.bottom-me,A.y>q.bottom-Mt&&($e+=A.y-q.bottom+Mt)));const qt=T.x+re,mt=qt+U,Ge=T.y+$e,Oe=Ge+X,_e=A.x,Xe=_e+V,it=A.y,ht=it+j,It=Math.max(qt,_e),$t=Math.min(mt,Xe),Xt=(It+$t)/2-qt,kt=Math.max(Ge,it),Dr=Math.min(Oe,ht),Eo=(kt+Dr)/2-Ge;a==null||a(t,He);let Io=J.right-T.x-(re+T.width),Po=J.bottom-T.y-($e+T.height);ae===1&&(re=Math.floor(re),Io=Math.floor(Io)),we===1&&($e=Math.floor($e),Po=Math.floor(Po));const ia={ready:!0,offsetX:re/ae,offsetY:$e/we,offsetR:Io/ae,offsetB:Po/we,arrowX:Xt/ae,arrowY:Eo/we,scaleX:ae,scaleY:we,align:He};u(ia)}}),h=()=>{d.current+=1;const $=d.current;Promise.resolve().then(()=>{d.current===$&&g()})},b=()=>{u($=>({...$,ready:!1}))};return nt(b,[r]),nt(()=>{e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function Th(){const e=i.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 i.useEffect(()=>()=>{t()},[]),n}function tS(e,t,n,r,o){nt(()=>{if(e&&t&&n){let f=function(){r(),o()};const s=t,a=n,l=Yl(s),c=Yl(a),u=cs(a),d=new Set([u,...l,...c]);return d.forEach(m=>{m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),()=>{d.forEach(m=>{m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function nS(e,t,n,r,o,s,a,l){const c=i.useRef(e);c.current=e;const u=i.useRef(!1);i.useEffect(()=>{if(t&&r&&(!o||s)){const f=()=>{u.current=!1},m=h=>{var b,$;c.current&&!a((($=(b=h.composedPath)==null?void 0:b.call(h))==null?void 0:$[0])||h.target)&&!u.current&&l(!1)},p=cs(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);const g=Xl(n);return g&&(g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0)),()=>{p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),g&&(g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,s]);function d(){u.current=!0}return d}function rS(){const[e,t]=N.useState(null),[n,r]=N.useState(!1),[o,s]=N.useState(!1),a=N.useRef(null),l=We(u=>{u===!1?(a.current=null,r(!1)):o&&n?a.current=u:(r(!0),t(u),a.current=null,n||s(!0))}),c=We(u=>{u?(s(!1),a.current&&(t(a.current),a.current=null)):(s(!1),a.current=null)});return[l,n,e,c]}function Ql(){return Ql=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},Ql.apply(this,arguments)}const oS=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:s,offsetR:a,offsetB:l,offsetX:c,offsetY:u,arrowPos:d,popupSize:f,motion:m,uniqueContainerClassName:p,uniqueContainerStyle:g}=e,h=`${t}-unique-container`,[b,$]=N.useState(!1),y=Ih(n,r,o,s,a,l,c,u),v=N.useRef(y);r&&(v.current=y);const C={};return f&&(C.width=f.width,C.height=f.height),N.createElement(un,Ql({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},m,{visible:o,onVisibleChanged:S=>{$(S)}}),({className:S,style:x})=>{const w=z(h,S,p,{[`${h}-visible`]:b});return N.createElement("div",{className:w,style:{"--arrow-x":`${(d==null?void 0:d.x)||0}px`,"--arrow-y":`${(d==null?void 0:d.y)||0}px`,...v.current,...C,...x,...g}})})},sS=({children:e,postTriggerProps:t})=>{const[n,r,o,s]=rS(),a=i.useMemo(()=>!o||!t?o:t(o),[o,t]),[l,c]=i.useState(null),[u,d]=i.useState(null),f=i.useRef(null),m=We(L=>{f.current=L,lo(L)&&l!==L&&c(L)}),p=i.useRef(null),g=Th(),h=We((L,B)=>{p.current=B,g(()=>{n(L)},L.delay)}),b=L=>{g(()=>{var B;(B=p.current)!=null&&B.call(p)||n(!1)},L)},$=We(L=>{s(L)}),[y,v,C,S,x,w,I,,,E,R]=Nh(r,l,a==null?void 0:a.target,a==null?void 0:a.popupPlacement,(a==null?void 0:a.builtinPlacements)||{},a==null?void 0:a.popupAlign,void 0,!1),P=i.useMemo(()=>{var B;if(!a)return"";const L=Mh(a.builtinPlacements||{},a.prefixCls||"",E,!1);return z(L,(B=a.getPopupClassNameFromAlign)==null?void 0:B.call(a,E))},[E,a==null?void 0:a.getPopupClassNameFromAlign,a==null?void 0:a.builtinPlacements,a==null?void 0:a.prefixCls]),M=i.useMemo(()=>({show:h,hide:b}),[]);i.useEffect(()=>{R()},[a==null?void 0:a.target]);const O=We(()=>(R(),Promise.resolve())),A=i.useRef({}),T=i.useContext(ui),F=i.useMemo(()=>({registerSubPopup:(L,B)=>{A.current[L]=B,T==null||T.registerSubPopup(L,B)}}),[T]),H=a==null?void 0:a.prefixCls;return i.createElement(Rh.Provider,{value:M},e,a&&i.createElement(ui.Provider,{value:F},i.createElement(Ph,{ref:m,portal:Qu,onEsc:a.onEsc,prefixCls:H,popup:a.popup,className:z(a.popupClassName,P,`${H}-unique-controlled`),style:a.popupStyle,target:a.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:$,ready:y,offsetX:v,offsetY:C,offsetR:S,offsetB:x,onAlign:R,onPrepare:O,onResize:L=>d({width:L.offsetWidth,height:L.offsetHeight}),arrowPos:{x:w,y:I},align:E,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},i.createElement(oS,{prefixCls:H,isMobile:!1,ready:y,open:r,align:E,offsetR:S,offsetB:x,offsetX:v,offsetY:C,arrowPos:{x:w,y:I},popupSize:u,motion:a.popupMotion,uniqueContainerClassName:z(a.uniqueContainerClassName,P),uniqueContainerStyle:a.uniqueContainerStyle}))))};function iS(e=Qu){return i.forwardRef((n,r)=>{const{prefixCls:o="rc-trigger-popup",children:s,action:a="hover",showAction:l,hideAction:c,popupVisible:u,defaultPopupVisible:d,onOpenChange:f,afterOpenChange:m,onPopupVisibleChange:p,afterPopupVisibleChange:g,mouseEnterDelay:h,mouseLeaveDelay:b=.1,focusDelay:$,blurDelay:y,mask:v,maskClosable:C=!0,getPopupContainer:S,forceRender:x,autoDestroy:w,popup:I,popupClassName:E,uniqueContainerClassName:R,uniqueContainerStyle:P,popupStyle:M,popupPlacement:O,builtinPlacements:A={},popupAlign:T,zIndex:F,stretch:H,getPopupClassNameFromAlign:L,fresh:B,unique:D,alignPoint:k,onPopupClick:W,onPopupAlign:_,arrow:X,popupMotion:U,maskMotion:j,mobile:V,...G}=n,te=w||!1,ee=u===void 0,ne=!!V,Y=i.useRef({}),se=i.useContext(ui),ue=i.useMemo(()=>({registerSubPopup:(Le,ct)=>{Y.current[Le]=ct,se==null||se.registerSubPopup(Le,ct)}}),[se]),q=i.useContext(Rh),oe=Xn(),[Z,J]=i.useState(null),ae=i.useRef(null),we=We(Le=>{ae.current=Le,lo(Le)&&Z!==Le&&J(Le),se==null||se.registerSubPopup(oe,Le)}),[de,ge]=i.useState(null),be=i.useRef(null),me=We(Le=>{const ct=co(Le);lo(ct)&&de!==ct&&(ge(ct),be.current=ct)}),Ne={},Ae=We(Le=>{var Ht,Fr;const ct=de;return(ct==null?void 0:ct.contains(Le))||((Ht=Xl(ct))==null?void 0:Ht.host)===Le||Le===ct||(Z==null?void 0:Z.contains(Le))||((Fr=Xl(Z))==null?void 0:Fr.host)===Le||Le===Z||Object.values(Y.current).some(pr=>(pr==null?void 0:pr.contains(Le))||Le===pr)}),Ee=X?{...X!==!0?X:{}}:null,[ze,Re]=bt(d||!1,u),ve=ze||!1,fe=i.useMemo(()=>{const Le=typeof s=="function"?s({open:ve}):s;return i.Children.only(Le)},[s,ve]),Ce=(fe==null?void 0:fe.props)||{},He=We(()=>ve),Ie=We((Le=0)=>({popup:I,target:de,delay:Le,prefixCls:o,popupClassName:E,uniqueContainerClassName:R,uniqueContainerStyle:P,popupStyle:M,popupPlacement:O,builtinPlacements:A,popupAlign:T,zIndex:F,mask:v,maskClosable:C,popupMotion:U,maskMotion:j,arrow:Ee,getPopupContainer:S,getPopupClassNameFromAlign:L,id:oe,onEsc:ot}));nt(()=>{q&&D&&de&&!ee&&!se&&(ve?q.show(Ie(h),He):q.hide(b))},[ve,de]);const re=i.useRef(ve);re.current=ve;const $e=We(Le=>{Vn.flushSync(()=>{ve!==Le&&(Re(Le),f==null||f(Le),p==null||p(Le))})}),ke=Th(),De=(Le,ct=0)=>{if(u!==void 0){ke(()=>{$e(Le)},ct);return}if(q&&D&&ee&&!se){Le?q.show(Ie(ct),He):q.hide(ct);return}ke(()=>{$e(Le)},ct)};function ot({top:Le}){Le&&De(!1)}const[qe,ft]=i.useState(!1);nt(Le=>{(!Le||ve)&&ft(!0)},[ve]);const[Qe,st]=i.useState(null),[lt,Se]=i.useState(null),Be=Le=>{Se([Le.clientX,Le.clientY])},[Pe,ye,ce,Q,pe,ie,he,xe,Te,Fe,Je]=Nh(ve,Z,k&<!==null?lt:de,O,A,T,_,ne),[tt,Ze]=JC(a,l,c),Mt=tt.has("click"),qt=Ze.has("click")||Ze.has("contextMenu"),mt=We(()=>{qe||Je()});tS(ve,de,Z,mt,()=>{re.current&&k&&qt&&De(!1)}),nt(()=>{mt()},[lt,O]),nt(()=>{ve&&!(A!=null&&A[O])&&mt()},[JSON.stringify(T)]);const Oe=i.useMemo(()=>{const Le=Mh(A,o,Fe,k);return z(Le,L==null?void 0:L(Fe))},[Fe,L,A,o,k]);i.useImperativeHandle(r,()=>({nativeElement:be.current,popupElement:ae.current,forceAlign:mt}));const[_e,Xe]=i.useState(0),[it,ht]=i.useState(0),It=()=>{if(H&&de){const Le=de.getBoundingClientRect();Xe(Le.width),ht(Le.height)}},$t=()=>{It(),mt()},Gt=Le=>{ft(!1),Je(),m==null||m(Le),g==null||g(Le)},Xt=()=>new Promise(Le=>{It(),st(()=>Le)});nt(()=>{Qe&&(Je(),Qe(),st(null))},[Qe]);function kt(Le,ct,Ht,Fr,pr){Ne[Le]=(Xd,...cy)=>{var Ud;(!pr||!pr())&&(Fr==null||Fr(Xd),De(ct,Ht)),(Ud=Ce[Le])==null||Ud.call(Ce,Xd,...cy)}}const Dr=tt.has("touch"),Ut=Ze.has("touch"),Eo=i.useRef(!1);(Dr||Ut)&&(Ne.onTouchStart=(...Le)=>{var ct;Eo.current=!0,re.current&&Ut?De(!1):!re.current&&Dr&&De(!0),(ct=Ce.onTouchStart)==null||ct.call(Ce,...Le)}),(Mt||qt)&&(Ne.onClick=(Le,...ct)=>{var Ht;re.current&&qt?De(!1):!re.current&&Mt&&(Be(Le),De(!0)),(Ht=Ce.onClick)==null||Ht.call(Ce,Le,...ct),Eo.current=!1});const Io=nS(ve,qt||Ut,de,Z,v,C,Ae,De),Po=tt.has("hover"),ia=Ze.has("hover");let Ue,Lt;const zt=()=>Eo.current;if(Po){const Le=ct=>{Be(ct)};kt("onMouseEnter",!0,h,Le,zt),kt("onPointerEnter",!0,h,Le,zt),Ue=ct=>{(ve||qe)&&(Z!=null&&Z.contains(ct.target))&&De(!0,h)},k&&(Ne.onMouseMove=ct=>{var Ht;(Ht=Ce.onMouseMove)==null||Ht.call(Ce,ct)})}ia&&(kt("onMouseLeave",!1,b,void 0,zt),kt("onPointerLeave",!1,b,void 0,zt),Lt=()=>{De(!1,b)}),tt.has("focus")&&kt("onFocus",!0,$),Ze.has("focus")&&kt("onBlur",!1,y),tt.has("contextMenu")&&(Ne.onContextMenu=(Le,...ct)=>{var Ht;re.current&&Ze.has("contextMenu")?De(!1):(Be(Le),De(!0)),Le.preventDefault(),(Ht=Ce.onContextMenu)==null||Ht.call(Ce,Le,...ct)});const fr=i.useRef(!1);fr.current||(fr.current=x||ve||qe);const mr={...Ce,...Ne},Ns={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Le=>{G[Le]&&(Ns[Le]=(...ct)=>{var Ht;(Ht=mr[Le])==null||Ht.call(mr,...ct),G[Le](...ct)})});const aa={x:ie,y:he};Cg(ve,de,$t);const la=qn(me,Gn(fe)),ca=i.cloneElement(fe,{...mr,...Ns,ref:la});return i.createElement(i.Fragment,null,ca,fr.current&&(!q||!D)&&i.createElement(ui.Provider,{value:ue},i.createElement(Ph,{portal:e,ref:we,prefixCls:o,popup:I,className:z(E,!ne&&Oe),style:M,target:de,onMouseEnter:Ue,onMouseLeave:Lt,onPointerEnter:Ue,zIndex:F,open:ve,keepDom:qe,fresh:B,onClick:W,onPointerDownCapture:Io,mask:v,motion:U,maskMotion:j,onVisibleChanged:Gt,onPrepare:Xt,forceRender:x,autoDestroy:te,getPopupContainer:S,onEsc:ot,align:Fe,arrow:Ee,arrowPos:aa,ready:Pe,offsetX:ye,offsetY:ce,offsetR:Q,offsetB:pe,onAlign:mt,stretch:H,targetWidth:_e/xe,targetHeight:it/Te,mobile:V})))})}const ki=iS(Qu);function Oh(e){return e&&N.isValidElement(e)&&e.type===N.Fragment}const aS=(e,t,n)=>N.isValidElement(e)?N.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Wt(e,t){return aS(e,e,t)}const lS=({children:e})=>{const{getPrefixCls:t}=N.useContext(je),n=t();return N.isValidElement(e)?N.createElement(un,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:o})=>Wt(e,s=>({className:z(s.className,o),style:{...s.style,...r}}))):e},Fs=[null,null];function cS(e){if(Fs[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Fs[0]=e,Fs[1]=t}return Fs[1]}const Ah=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:s}=n,a=typeof s=="function"?s():s,l=cS(o);return{...n,getPopupContainer:null,arrow:!1,popup:N.createElement(lS,{key:r},a),builtinPlacements:l}};return N.createElement(sS,{postTriggerProps:t},e)},yn=i.createContext(!1),zh=({children:e,disabled:t})=>{const n=i.useContext(yn);return i.createElement(yn.Provider,{value:t??n},e)},uo=i.createContext(void 0),uS=({children:e,size:t})=>{const n=i.useContext(uo);return i.createElement(uo.Provider,{value:t||n},e)};function dS(){const e=i.useContext(yn),t=i.useContext(uo);return{componentDisabled:e,componentSize:t}}function fS(e,t,n){const r=e||{},o=r.inherit===!1||!t?{...ai,hashed:(t==null?void 0:t.hashed)??ai.hashed,cssVar:t==null?void 0:t.cssVar}:t,s=i.useId();return po(()=>{var u;if(!e)return t;const a={...o.components};Object.keys(e.components||{}).forEach(d=>{a[d]={...a[d],...e.components[d]}});const l=`css-var-${s.replace(/:/g,"")}`,c={prefix:n==null?void 0:n.prefixCls,...o.cssVar,...r.cssVar,key:((u=r.cssVar)==null?void 0:u.key)||l};return{...o,...r,token:{...o.token,...r.token},components:a,cssVar:c}},[r,o],(a,l)=>a.some((c,u)=>{const d=l[u];return!ar(c,d,!0)}))}const sm=i.createContext(!0);function mS(e){const t=i.useContext(sm),{children:n}=e,[,r]=jt(),{motion:o}=r,s=i.useRef(!1);return s.current||(s.current=t!==o),s.current?i.createElement(sm.Provider,{value:o},i.createElement(q$,{motion:o},n)):n}const pS=()=>null,gS=({iconPrefixCls:e,csp:t})=>(n$(e,t),null),hS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let di,Bh,Lh,Hh;function Sa(){return di||Yo}function bS(){return Bh||zi}const vS=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(di=t),n!==void 0&&(Bh=n),"holderRender"in e&&(Hh=o),r&&(Lh=r)},Dh=()=>({getPrefixCls:(e,t)=>t||(e?`${Sa()}-${e}`:Sa()),getIconPrefixCls:bS,getRootPrefixCls:()=>di||Sa(),getTheme:()=>Lh,holderRender:Hh}),yS=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:a,app:l,form:c,locale:u,componentSize:d,direction:f,space:m,splitter:p,virtual:g,dropdownMatchSelectWidth:h,popupMatchSelectWidth:b,popupOverflow:$,legacyLocale:y,parentContext:v,iconPrefixCls:C,theme:S,componentDisabled:x,segmented:w,statistic:I,spin:E,calendar:R,carousel:P,cascader:M,collapse:O,typography:A,checkbox:T,descriptions:F,divider:H,drawer:L,skeleton:B,steps:D,image:k,layout:W,list:_,mentions:X,modal:U,progress:j,result:V,slider:G,breadcrumb:te,masonry:ee,menu:ne,pagination:Y,input:se,textArea:ue,otp:q,empty:oe,badge:Z,radio:J,rate:ae,ribbon:we,switch:de,transfer:ge,avatar:be,message:me,tag:Ne,table:Ae,card:Ee,cardMeta:ze,tabs:Re,timeline:ve,timePicker:fe,upload:Ce,notification:He,tree:Ie,colorPicker:re,datePicker:$e,rangePicker:ke,flex:De,wave:ot,dropdown:qe,warning:ft,tour:Qe,tooltip:st,popover:lt,popconfirm:Se,qrcode:Be,floatButton:Pe,floatButtonGroup:ye,variant:ce,inputNumber:Q,treeSelect:pe,watermark:ie}=e,he=i.useCallback((_e,Xe)=>{const{prefixCls:it}=e;if(Xe)return Xe;const ht=it||v.getPrefixCls("");return _e?`${ht}-${_e}`:ht},[v.getPrefixCls,e.prefixCls]),xe=C||v.iconPrefixCls||zi,Te=n||v.csp,Fe=fS(S,v.theme,{prefixCls:he("")}),Je={csp:Te,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:a,app:l,locale:u||y,direction:f,space:m,splitter:p,virtual:g,popupMatchSelectWidth:b??h,popupOverflow:$,getPrefixCls:he,iconPrefixCls:xe,theme:Fe,segmented:w,statistic:I,spin:E,calendar:R,carousel:P,cascader:M,collapse:O,typography:A,checkbox:T,descriptions:F,divider:H,drawer:L,skeleton:B,steps:D,image:k,input:se,textArea:ue,otp:q,layout:W,list:_,mentions:X,modal:U,progress:j,result:V,slider:G,breadcrumb:te,masonry:ee,menu:ne,pagination:Y,empty:oe,badge:Z,radio:J,rate:ae,ribbon:we,switch:de,transfer:ge,avatar:be,message:me,tag:Ne,table:Ae,card:Ee,cardMeta:ze,tabs:Re,timeline:ve,timePicker:fe,upload:Ce,notification:He,tree:Ie,colorPicker:re,datePicker:$e,rangePicker:ke,flex:De,wave:ot,dropdown:qe,warning:ft,tour:Qe,tooltip:st,popover:lt,popconfirm:Se,qrcode:Be,floatButton:Pe,floatButtonGroup:ye,variant:ce,inputNumber:Q,treeSelect:pe,watermark:ie},tt={...v};Object.keys(Je).forEach(_e=>{Je[_e]!==void 0&&(tt[_e]=Je[_e])}),hS.forEach(_e=>{const Xe=e[_e];Xe&&(tt[_e]=Xe)}),typeof r<"u"&&(tt.button={autoInsertSpace:r,...tt.button});const Ze=po(()=>tt,tt,(_e,Xe)=>{const it=Object.keys(_e),ht=Object.keys(Xe);return it.length!==ht.length||it.some(It=>_e[It]!==Xe[It])}),{layer:Mt}=i.useContext(Ar),qt=i.useMemo(()=>({prefixCls:xe,csp:Te,layer:Mt?"antd":void 0}),[xe,Te,Mt]);let mt=i.createElement(i.Fragment,null,i.createElement(gS,{iconPrefixCls:xe,csp:Te}),i.createElement(pS,{dropdownMatchSelectWidth:h}),t);const Ge=i.useMemo(()=>{var _e,Xe,it,ht;return Jr(((_e=jn.Form)==null?void 0:_e.defaultValidateMessages)||{},((it=(Xe=Ze.locale)==null?void 0:Xe.Form)==null?void 0:it.defaultValidateMessages)||{},((ht=Ze.form)==null?void 0:ht.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[Ze,c==null?void 0:c.validateMessages]);Object.keys(Ge).length>0&&(mt=i.createElement(LC.Provider,{value:Ge},mt)),u&&(mt=i.createElement(SC,{locale:u,_ANT_MARK__:CC},mt)),mt=i.createElement(Hi.Provider,{value:qt},mt),d&&(mt=i.createElement(uS,{size:d},mt)),mt=i.createElement(mS,null,mt),st!=null&&st.unique&&(mt=i.createElement(Ah,null,mt));const Oe=i.useMemo(()=>{const{algorithm:_e,token:Xe,components:it,cssVar:ht,...It}=Fe||{},$t=_e&&(!Array.isArray(_e)||_e.length>0)?ml(_e):Wg,Gt={};Object.entries(it||{}).forEach(([kt,Dr])=>{const Ut={...Dr};"algorithm"in Ut&&(Ut.algorithm===!0?Ut.theme=$t:(Array.isArray(Ut.algorithm)||typeof Ut.algorithm=="function")&&(Ut.theme=ml(Ut.algorithm)),delete Ut.algorithm),Gt[kt]=Ut});const Xt={...Zo,...Xe};return{...It,theme:$t,token:Xt,components:Gt,override:{override:Xt,...Gt},cssVar:ht}},[Fe]);return S&&(mt=i.createElement(Vu.Provider,{value:Oe},mt)),Ze.warning&&(mt=i.createElement(Dy.Provider,{value:Ze.warning},mt)),x!==void 0&&(mt=i.createElement(zh,{disabled:x},mt)),i.createElement(je.Provider,{value:Ze},mt)},An=e=>{const t=i.useContext(je),n=i.useContext(Uu);return i.createElement(yS,{parentContext:t,legacyLocale:n,...e})};An.ConfigContext=je;An.SizeContext=uo;An.config=vS;An.useConfig=dS;Object.defineProperty(An,"SizeContext",{get:()=>uo});const Fh=i.createContext(void 0),_h=e=>{const{href:t,title:n,prefixCls:r,children:o,className:s,target:a,replace:l}=e,c=i.useContext(Fh),{registerLink:u,unregisterLink:d,scrollTo:f,onClick:m,activeLink:p,direction:g,classNames:h,styles:b}=c||{};i.useEffect(()=>(u==null||u(t),()=>{d==null||d(t)}),[t]);const $=w=>{if(m==null||m(w,{title:n,href:t}),f==null||f(t),w.defaultPrevented)return;if(t.startsWith("http://")||t.startsWith("https://")){l&&(w.preventDefault(),window.location.replace(t));return}w.preventDefault();const E=l?"replaceState":"pushState";window.history[E](null,"",t)},{getPrefixCls:y}=i.useContext(je),v=y("anchor",r),C=p===t,S=z(`${v}-link`,s,h==null?void 0:h.item,{[`${v}-link-active`]:C}),x=z(`${v}-link-title`,h==null?void 0:h.itemTitle,{[`${v}-link-title-active`]:C});return i.createElement("div",{className:S,style:b==null?void 0:b.item},i.createElement("a",{className:x,style:b==null?void 0:b.itemTitle,href:t,title:typeof n=="string"?n:"",target:a,onClick:$},n),g!=="horizontal"?o:null)},$S=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:s,lineType:a,colorSplit:l,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:{...Ct(e),position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${K(e.linkPaddingInlineStart)} 0`,"&-title":{...Wn,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${K(o)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:s,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},CS=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:["left","width"].map(s=>`${s} ${n} ease-in-out`).join(", "),height:r,backgroundColor:o}}}}},SS=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),xS=at("Anchor",e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:o}=e,s=rt(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:o(r).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(n).div(2).equal()});return[$S(s),CS(s)]},SS);function wS(){return window}function im(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const am=/#([\S ]+)$/,ES=e=>{const{rootClassName:t,prefixCls:n,className:r,style:o,offsetTop:s,affix:a=!0,showInkInFixed:l=!1,children:c,items:u,direction:d="vertical",bounds:f,targetOffset:m,onClick:p,onChange:g,getContainer:h,getCurrentAnchor:b,replace:$,classNames:y,styles:v}=e,[C,S]=i.useState([]),[x,w]=i.useState(null),I=i.useRef(x),E=i.useRef(null),R=i.useRef(null),P=i.useRef(!1),M=i.useRef(null),{direction:O,getPrefixCls:A,className:T,style:F,classNames:H,styles:L}=dt("anchor"),{getTargetContainer:B}=i.useContext(je),D=A("anchor",n),k=_t(D),[W,_]=xS(D,k),X=h??B??wS,U=JSON.stringify(C),j=We(me=>{C.includes(me)||S(Ne=>[].concat(xt(Ne),[me]))}),V=We(me=>{C.includes(me)&&S(Ne=>Ne.filter(Ae=>Ae!==me))}),G=()=>{var Ne;const me=(Ne=E.current)==null?void 0:Ne.querySelector(`.${D}-link-title-active`);if(me&&R.current){const{style:Ae}=R.current,Ee=d==="horizontal";Ae.top=Ee?"":`${me.offsetTop+me.clientHeight/2}px`,Ae.height=Ee?"":`${me.clientHeight}px`,Ae.left=Ee?`${me.offsetLeft}px`:"",Ae.width=Ee?`${me.clientWidth}px`:"",Ee&&by(me,{scrollMode:"if-needed",block:"nearest"})}},te=(me,Ne=0,Ae=5)=>{const Ee=[],ze=X();return me.forEach(Re=>{const ve=am.exec(Re==null?void 0:Re.toString());if(!ve)return;const fe=document.getElementById(ve[1]);if(fe){const Ce=im(fe,ze);Ce<=Ne+Ae&&Ee.push({link:Re,top:Ce})}}),Ee.length?Ee.reduce((ve,fe)=>fe.top>ve.top?fe:ve).link:""},ee=We(me=>{if(I.current===me)return;const Ne=typeof b=="function"?b(me):me;w(Ne),I.current=Ne,g==null||g(me)}),ne=i.useCallback(()=>{if(P.current)return;const me=te(C,m!==void 0?m:s||0,f);ee(me)},[C,m,s,f]),Y=i.useCallback(me=>{var Ce;const Ne=I.current;ee(me);const Ae=am.exec(me);if(!Ae)return;const Ee=document.getElementById(Ae[1]);if(!Ee)return;if(P.current){if(Ne===me)return;(Ce=M.current)==null||Ce.call(M)}const ze=X(),Re=yh(ze),ve=im(Ee,ze);let fe=Re+ve;fe-=m!==void 0?m:s||0,P.current=!0,M.current=BC(fe,{getContainer:X,callback(){P.current=!1}})},[m,s]),se={...e,direction:d},[ue,q]=pt([H,y],[L,v],{props:se}),oe=z(W,_,k,t,`${D}-wrapper`,{[`${D}-wrapper-horizontal`]:d==="horizontal",[`${D}-rtl`]:O==="rtl"},r,T,ue.root),Z=z(D,{[`${D}-fixed`]:!a&&!l}),J=z(`${D}-ink`,ue.indicator,{[`${D}-ink-visible`]:x}),ae={maxHeight:s?`calc(100vh - ${s}px)`:"100vh",...q.root,...F,...o},we=me=>Array.isArray(me)?me.map(Ne=>i.createElement(_h,{replace:$,...Ne,key:Ne.key},d==="vertical"&&we(Ne.children))):null,de=i.createElement("div",{ref:E,className:oe,style:ae},i.createElement("div",{className:Z},i.createElement("span",{className:J,ref:R,style:q.indicator}),"items"in e?we(u):c));i.useEffect(()=>{const me=X();return ne(),me==null||me.addEventListener("scroll",ne),()=>{me==null||me.removeEventListener("scroll",ne)}},[U]),i.useEffect(()=>{typeof b=="function"&&ee(b(I.current||""))},[b]),i.useEffect(()=>{G()},[d,b,U,x]);const ge=i.useMemo(()=>({registerLink:j,unregisterLink:V,scrollTo:Y,activeLink:x,onClick:p,direction:d,classNames:ue,styles:q}),[x,p,Y,d,q,ue]),be=a&&typeof a=="object"?a:void 0;return i.createElement(Fh.Provider,{value:ge},a?i.createElement(a$,{offsetTop:s,target:X,...be},de):de)},IS=ES;IS.Link=_h;const Me={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,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};function fi(){return fi=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},fi.apply(this,arguments)}const kh=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,duration:s=4.5,showProgress:a,pauseOnHover:l=!0,eventKey:c,content:u,closable:d,props:f,onClick:m,onNoticeClose:p,times:g,hovering:h}=e,[b,$]=i.useState(!1),[y,v]=i.useState(0),[C,S]=i.useState(0),x=h||b,w=typeof s=="number"?s:0,I=w>0&&a,E=()=>{p(c)},R=T=>{(T.key==="Enter"||T.code==="Enter"||T.keyCode===Me.ENTER)&&E()};i.useEffect(()=>{if(!x&&w>0){const T=Date.now()-C,F=setTimeout(()=>{E()},w*1e3-C);return()=>{l&&clearTimeout(F),S(Date.now()-T)}}},[w,x,g]),i.useEffect(()=>{if(!x&&I&&(l||C===0)){const T=performance.now();let F;const H=()=>{cancelAnimationFrame(F),F=requestAnimationFrame(L=>{const B=L+C-T,D=Math.min(B/(w*1e3),1);v(D*100),D<1&&H()})};return H(),()=>{l&&cancelAnimationFrame(F)}}},[w,C,x,I,g]);const P=i.useMemo(()=>typeof d=="object"&&d!==null?d:{},[d]),M=cn(P,!0),O=100-(!y||y<0?0:y>100?100:y),A=`${n}-notice`;return i.createElement("div",fi({},f,{ref:t,className:z(A,o,{[`${A}-closable`]:d}),style:r,onMouseEnter:T=>{var F;$(!0),(F=f==null?void 0:f.onMouseEnter)==null||F.call(f,T)},onMouseLeave:T=>{var F;$(!1),(F=f==null?void 0:f.onMouseLeave)==null||F.call(f,T)},onClick:m}),i.createElement("div",{className:`${A}-content`},u),d&&i.createElement("button",fi({className:`${A}-close`,onKeyDown:R,"aria-label":"Close"},M,{onClick:T=>{T.preventDefault(),T.stopPropagation(),E()}}),P.closeIcon??"x"),I&&i.createElement("progress",{className:`${A}-progress`,max:"100",value:O},O+"%"))}),Vh=N.createContext({}),Wh=({children:e,classNames:t})=>N.createElement(Vh.Provider,{value:{classNames:t}},e),lm=8,cm=3,um=16,PS=e=>{const t={offset:lm,threshold:cm,gap:um};return e&&typeof e=="object"&&(t.offset=e.offset??lm,t.threshold=e.threshold??cm,t.gap=e.gap??um),[!!e,t]};function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mi.apply(this,arguments)}const RS=e=>{const{configList:t,placement:n,prefixCls:r,className:o,style:s,motion:a,onAllNoticeRemoved:l,onNoticeClose:c,stack:u}=e,{classNames:d}=i.useContext(Vh),f=i.useRef({}),[m,p]=i.useState(null),[g,h]=i.useState([]),b=t.map(w=>({config:w,key:String(w.key)})),[$,{offset:y,threshold:v,gap:C}]=PS(u),S=$&&(g.length>0||b.length<=v),x=typeof a=="function"?a(n):a;return i.useEffect(()=>{$&&g.length>1&&h(w=>w.filter(I=>b.some(({key:E})=>I===E)))},[g,b,$]),i.useEffect(()=>{var w,I;$&&f.current[(w=b[b.length-1])==null?void 0:w.key]&&p(f.current[(I=b[b.length-1])==null?void 0:I.key])},[b,$]),N.createElement(lC,mi({key:n,className:z(r,`${r}-${n}`,d==null?void 0:d.list,o,{[`${r}-stack`]:!!$,[`${r}-stack-expanded`]:S}),style:s,keys:b,motionAppear:!0},x,{onAllRemoved:()=>{l(n)}}),({config:w,className:I,style:E,index:R},P)=>{var W,_,X,U;const{key:M,times:O}=w,A=String(M),{className:T,style:F,classNames:H,styles:L,...B}=w,D=b.findIndex(j=>j.key===A),k={};if($){const j=b.length-1-(D>-1?D:R-1),V=n==="top"||n==="bottom"?"-50%":"0";if(j>0){k.height=S?(W=f.current[A])==null?void 0:W.offsetHeight:m==null?void 0:m.offsetHeight;let G=0;for(let ne=0;ne<j;ne++)G+=((_=f.current[b[b.length-1-ne].key])==null?void 0:_.offsetHeight)+C;const te=(S?G:j*y)*(n.startsWith("top")?1:-1),ee=!S&&(m!=null&&m.offsetWidth)&&((X=f.current[A])!=null&&X.offsetWidth)?((m==null?void 0:m.offsetWidth)-y*2*(j<3?j:3))/((U=f.current[A])==null?void 0:U.offsetWidth):1;k.transform=`translate3d(${V}, ${te}px, 0) scaleX(${ee})`}else k.transform=`translate3d(${V}, 0, 0)`}return N.createElement("div",{ref:P,className:z(`${r}-notice-wrapper`,I,H==null?void 0:H.wrapper),style:{...E,...k,...L==null?void 0:L.wrapper},onMouseEnter:()=>h(j=>j.includes(A)?j:[...j,A]),onMouseLeave:()=>h(j=>j.filter(V=>V!==A))},N.createElement(kh,mi({},B,{ref:j=>{D>-1?f.current[A]=j:delete f.current[A]},prefixCls:r,classNames:H,styles:L,className:z(T,d==null?void 0:d.notice),style:F,times:O,key:M,eventKey:M,onNoticeClose:c,hovering:$&&g.length>0})))})},MS=i.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:s,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:d}=e,[f,m]=i.useState([]),p=v=>{var I;const C=f.find(E=>E.key===v),S=C==null?void 0:C.closable,x=S&&typeof S=="object"?S:{},{onClose:w}=x;w==null||w(),(I=C==null?void 0:C.onClose)==null||I.call(C),m(E=>E.filter(R=>R.key!==v))};i.useImperativeHandle(t,()=>({open:v=>{m(C=>{var I;let S=[...C];const x=S.findIndex(E=>E.key===v.key),w={...v};return x>=0?(w.times=(((I=C[x])==null?void 0:I.times)||0)+1,S[x]=w):(w.times=0,S.push(w)),s>0&&S.length>s&&(S=S.slice(-s)),S})},close:v=>{p(v)},destroy:()=>{m([])}}));const[g,h]=i.useState({});i.useEffect(()=>{const v={};f.forEach(C=>{const{placement:S="topRight"}=C;S&&(v[S]=v[S]||[],v[S].push(C))}),Object.keys(g).forEach(C=>{v[C]=v[C]||[]}),h(v)},[f]);const b=v=>{h(C=>{const S={...C};return(S[v]||[]).length||delete S[v],S})},$=i.useRef(!1);if(i.useEffect(()=>{Object.keys(g).length>0?$.current=!0:$.current&&(c==null||c(),$.current=!1)},[g]),!r)return null;const y=Object.keys(g);return Vn.createPortal(i.createElement(i.Fragment,null,y.map(v=>{const C=g[v],S=i.createElement(RS,{key:v,configList:C,placement:v,prefixCls:n,className:a==null?void 0:a(v),style:l==null?void 0:l(v),motion:o,onNoticeClose:p,onAllNoticeRemoved:b,stack:u});return d?d(S,{prefixCls:n,key:v}):S})),r)}),NS=()=>document.body;let dm=0;function TS(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(t[r]=o)})}),t}function jh(e={}){const{getContainer:t=NS,motion:n,prefixCls:r,maxCount:o,className:s,style:a,onAllRemoved:l,stack:c,renderNotifications:u,...d}=e,[f,m]=i.useState(),p=i.useRef(),g=i.createElement(MS,{container:f,ref:p,prefixCls:r,motion:n,maxCount:o,className:s,style:a,onAllRemoved:l,stack:c,renderNotifications:u}),[h,b]=i.useState([]),$=We(v=>{const C=TS(d,v);(C.key===null||C.key===void 0)&&(C.key=`rc-notification-${dm}`,dm+=1),b(S=>[...S,{type:"open",config:C}])}),y=i.useMemo(()=>({open:$,close:v=>{b(C=>[...C,{type:"close",key:v}])},destroy:()=>{b(v=>[...v,{type:"destroy"}])}}),[]);return i.useEffect(()=>{m(t())}),i.useEffect(()=>{if(p.current&&h.length){h.forEach(S=>{switch(S.type){case"open":p.current.open(S.config);break;case"close":p.current.close(S.key);break;case"destroy":p.current.destroy();break}});let v,C;b(S=>((v!==S||!C)&&(v=S,C=S.filter(x=>!h.includes(x))),C))}},[h]),[y,g]}var OS={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 Zl(){return Zl=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},Zl.apply(this,arguments)}const AS=(e,t)=>i.createElement(Ye,Zl({},e,{ref:t,icon:OS})),us=i.forwardRef(AS),zS=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:s,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:g,zIndexPopup:h,contentPadding:b,contentBg:$}=e,y=`${t}-notice`,v=new et("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),C=new et("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${y}-content`]:{display:"inline-block",padding:b,background:$,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
||
${t}-loading > ${n}`]:{color:c}};return[{[t]:{...Ct(e),color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:v,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
||
${t}-move-up-appear${t}-move-up-appear-active,
|
||
${t}-move-up-enter${t}-move-up-enter-active
|
||
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${y}-wrapper`]:{...S}}},{[`${t}-notice-pure-panel`]:{...S,padding:0,textAlign:"start"}}]},BS=e=>({zIndexPopup:e.zIndexPopupBase+Yu+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),qh=at("Message",e=>{const t=rt(e,{height:150});return zS(t)},BS),LS={info:i.createElement(Gu,null),success:i.createElement(qu,null),error:i.createElement(is,null),warning:i.createElement(as,null),loading:i.createElement(us,null)},Gh=e=>{const{prefixCls:t,type:n,icon:r,children:o,classNames:s,styles:a}=e,l=r||n&&LS[n],c=Wt(l,u=>{const d={...u==null?void 0:u.style,...a==null?void 0:a.icon};return{className:z(u.className,s==null?void 0:s.icon),style:d}});return i.createElement("div",{className:z(`${t}-custom-content`,`${t}-${n}`)},c,i.createElement("span",{className:s==null?void 0:s.content,style:a==null?void 0:a.content},o))},HS=e=>{const{prefixCls:t,className:n,style:r,type:o,icon:s,content:a,classNames:l,styles:c,...u}=e,{getPrefixCls:d,className:f,style:m,classNames:p,styles:g}=dt("message"),h=t||d("message"),b=_t(h),[$,y]=qh(h,b),[v,C]=pt([p,l],[g,c],{props:e});return i.createElement(kh,{...u,prefixCls:h,className:z(f,v.root,n,$,`${h}-notice-pure-panel`,y,b),style:{...C.root,...m,...r},eventKey:"pure",duration:null,content:i.createElement(Gh,{prefixCls:h,type:o,icon:s,classNames:v,styles:C},a)})};function DS(e,t){return{motionName:t??`${e}-move-up`}}function Ju(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}const FS=8,_S=3,kS=({children:e,prefixCls:t})=>{const n=_t(t),[r,o]=qh(t,n);return i.createElement(Wh,{classNames:{list:z(r,o,n)}},e)},VS=(e,{prefixCls:t,key:n})=>i.createElement(kS,{prefixCls:t,key:n},e),WS=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:s,duration:a=_S,rtl:l,transitionName:c,onAllRemoved:u,pauseOnHover:d=!0}=e,{getPrefixCls:f,direction:m,getPopupContainer:p}=dt("message"),{message:g}=i.useContext(je),h=r||f("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??FS}),$=()=>z({[`${h}-rtl`]:l??m==="rtl"}),y=()=>DS(h,c),[v,C]=pt([e==null?void 0:e.classNames,g==null?void 0:g.classNames],[e==null?void 0:e.styles,g==null?void 0:g.styles],{props:e}),[S,x]=jh({prefixCls:h,style:b,className:$,motion:y,closable:!1,duration:a,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:s,onAllRemoved:u,renderNotifications:VS,pauseOnHover:d});return i.useImperativeHandle(t,()=>({...S,prefixCls:h,message:g,classNames:v,styles:C})),x});let fm=0;function Xh(e){const t=i.useRef(null);return[i.useMemo(()=>{const r=c=>{var u;(u=t.current)==null||u.close(c)},o=c=>{if(!t.current){const k=()=>{};return k.then=()=>{},k}const{open:u,prefixCls:d,message:f,classNames:m,styles:p}=t.current,g=(f==null?void 0:f.className)||{},h=(f==null?void 0:f.style)||{},b=(f==null?void 0:f.classNames)||{},$=(f==null?void 0:f.styles)||{},y=`${d}-notice`,{content:v,icon:C,type:S,key:x,className:w,style:I,onClose:E,classNames:R={},styles:P={},...M}=c;let O=x;vn(O)||(fm+=1,O=`antd-message-${fm}`);const A={...e,...c},T=rr(b,{props:A}),F=rr(R,{props:A}),H=rr($,{props:A}),L=rr(P,{props:A}),B=Fi(void 0,T,F,m),D=Ku(H,L,p);return Ju(k=>(u({...M,key:O,content:i.createElement(Gh,{prefixCls:d,type:S,icon:C,classNames:B,styles:D},v),placement:"top",className:z({[`${y}-${S}`]:S},w,g,B.root),style:{...D.root,...h,...I},onClose:()=>{E==null||E(),k()}}),()=>{r(O)}))},a={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)==null||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let p;d&&typeof d=="object"&&"content"in d?p=d:p={content:d};let g,h;typeof f=="function"?h=f:(g=f,h=m);const b={onClose:h,duration:g,...p,type:c};return o(b)};a[c]=u}),a},[]),i.createElement(WS,{key:"message-holder",...e,ref:t})]}function Uh(e){return Xh(e)}const pi="__rc_react_root__";function ed(e,t){const n=t[pi]||my(t);n.render(e),t[pi]=n}async function Kh(e){return Promise.resolve().then(()=>{var t;(t=e[pi])==null||t.unmount(),delete e[pi]})}const xa=()=>({height:0,opacity:0}),mm=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},jS=e=>({height:e?e.offsetHeight:0}),wa=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Yh=(e=Yo)=>({motionName:`${e}-motion-collapse`,onAppearStart:xa,onEnterStart:xa,onAppearActive:mm,onEnterActive:mm,onLeaveStart:jS,onLeaveActive:xa,onAppearEnd:wa,onEnterEnd:wa,onLeaveEnd:wa,motionDeadline:500}),lr=(e,t,n)=>n!==void 0?n:`${e}-${t}`,qS=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:s,antCls:a}=e,[,l]=At(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("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(",")}}}}},GS=e$("Wave",qS),Qh=`${Yo}-wave-target`;function pm(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 XS(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:s}=n;return t&&pm(n[t])?n[t]:[r,o,s].find(pm)??null}function Ea(e){return Number.isNaN(e)?0:e}const US=e=>{const{className:t,target:n,component:r,colorSource:o}=e,s=i.useRef(null),{getPrefixCls:a}=i.useContext(je),l=a(),[c]=At(l,"wave"),[u,d]=i.useState(null),[f,m]=i.useState([]),[p,g]=i.useState(0),[h,b]=i.useState(0),[$,y]=i.useState(0),[v,C]=i.useState(0),[S,x]=i.useState(!1),w={left:p,top:h,width:$,height:v,borderRadius:f.map(R=>`${R}px`).join(" ")};u&&(w[c("color")]=u);function I(){const R=getComputedStyle(n);d(XS(n,o));const P=R.position==="static",{borderLeftWidth:M,borderTopWidth:O}=R;g(P?n.offsetLeft:Ea(-Number.parseFloat(M))),b(P?n.offsetTop:Ea(-Number.parseFloat(O))),y(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:T,borderBottomLeftRadius:F,borderBottomRightRadius:H}=R;m([A,T,H,F].map(L=>Ea(Number.parseFloat(L))))}if(i.useEffect(()=>{if(n){const R=Ke(()=>{I(),x(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(I),P.observe(n)),()=>{Ke.cancel(R),P==null||P.disconnect()}}},[n]),!S)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Qh));return i.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var M;if(P.deadline||P.propertyName==="opacity"){const O=(M=s.current)==null?void 0:M.parentElement;Kh(O).then(()=>{O==null||O.remove()})}return!1}},({className:R},P)=>i.createElement("div",{ref:Ft(s,P),className:z(t,R,{"wave-quick":E}),style:w}))},KS=(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),ed(i.createElement(US,{...t,target:e}),r)},YS=(e,t,n,r)=>{const{wave:o}=i.useContext(je),[,s,a]=jt(),l=We(d=>{const f=e.current;if(o!=null&&o.disabled||!f)return;const m=f.querySelector(`.${Qh}`)||f,{showEffect:p}=o||{};(p||KS)(m,{className:t,token:s,component:n,event:d,hashId:a,colorSource:r})}),c=i.useRef(null);return i.useEffect(()=>()=>{Ke.cancel(c.current)},[]),d=>{Ke.cancel(c.current),c.current=Ke(()=>{l(d)})}},Zh=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:s}=i.useContext(je),a=i.useRef(null),l=s("wave"),c=GS(l),u=YS(a,z(l,c),r,o);if(N.useEffect(()=>{const f=a.current;if(!f||f.nodeType!==window.Node.ELEMENT_NODE||n)return;const m=p=>{!Zu(p.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")&&!f.className.includes("disabled:")||f.getAttribute("aria-disabled")==="true"||f.className.includes("-leave")||u(p)};return f.addEventListener("click",m,!0),()=>{f.removeEventListener("click",m,!0)}},[n]),!N.isValidElement(t))return t??null;const d=dr(t)?Ft(Gn(t),a):a;return Wt(t,{ref:d})},Jt=e=>{const t=N.useContext(uo);return N.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},QS=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},ZS=at(["Space","Compact"],e=>[QS(e)],()=>({}),{resetStyle:!1}),Vi=i.createContext(null),Un=(e,t)=>{const n=i.useContext(Vi),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return z(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:s,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},JS=e=>{const{children:t}=e;return i.createElement(Vi.Provider,{value:null},t)},ex=e=>{const{children:t,...n}=e;return i.createElement(Vi.Provider,{value:i.useMemo(()=>n,[n])},t)},td=e=>{const{getPrefixCls:t,direction:n}=i.useContext(je),{size:r,direction:o,orientation:s,block:a,prefixCls:l,className:c,rootClassName:u,children:d,vertical:f,...m}=e,[p,g]=vo(s,f,o),h=Jt(x=>r??x),b=t("space-compact",l),[$]=ZS(b),y=z(b,$,{[`${b}-rtl`]:n==="rtl",[`${b}-block`]:a,[`${b}-vertical`]:g},c,u),v=i.useContext(Vi),C=Vt(d),S=i.useMemo(()=>C.map((x,w)=>{const I=(x==null?void 0:x.key)||`${b}-item-${w}`;return i.createElement(ex,{key:I,compactSize:h,compactDirection:p,isFirstItem:w===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:w===C.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[C,v,p,h,b]);return C.length===0?null:i.createElement("div",{className:y,...m},S)},Jh=i.createContext(void 0),tx=e=>{const{getPrefixCls:t,direction:n}=i.useContext(je),{prefixCls:r,size:o,className:s,...a}=e,l=t("btn-group",r),[,,c]=jt(),u=i.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=z(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},s,c);return i.createElement(Jh.Provider,{value:o},i.createElement("div",{...a,className:d}))},gm=/^[\u4E00-\u9FA5]{2}$/,Jl=gm.test.bind(gm);function nd(e){return e==="danger"?{danger:!0}:{type:e}}function hm(e){return typeof e=="string"}function Ia(e){return e==="text"||e==="link"}function nx(e,t,n,r){if(!vn(e)||e==="")return;const o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hm(e.type)&&Jl(e.props.children)?Wt(e,s=>{const a=z(s.className,r)||void 0,l={...n,...s.style};return{...s,children:s.children.split("").join(o),className:a,style:l}}):hm(e)?N.createElement("span",{className:r,style:n},Jl(e)?e.split("").join(o):e):Oh(e)?N.createElement("span",{className:r,style:n},e):Wt(e,s=>({...s,className:z(s.className,r)||void 0,style:{...s.style,...n}}))}function rx(e,t,n,r){let o=!1;const s=[];return N.Children.forEach(e,a=>{const l=typeof a,c=l==="string"||l==="number";if(o&&c){const u=s.length-1,d=s[u];s[u]=`${d}${a}`}else s.push(a);o=c}),N.Children.map(s,a=>nx(a,t,n,r))}["default","primary","danger"].concat(xt(Tn));const e0=i.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,a=z(`${s}-icon`,n);return N.createElement("span",{ref:t,className:a,style:r},o)}),bm=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,a=z(`${n}-loading-icon`,r);return N.createElement(e0,{prefixCls:n,className:a,style:o,ref:t},N.createElement(us,{className:s}))}),Pa=()=>({width:0,opacity:0,transform:"scale(0)"}),Ra=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ox=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:a}=e,l=!!n;return r?N.createElement(bm,{prefixCls:t,className:o,style:s}):N.createElement(un,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Pa,onAppearActive:Ra,onEnterStart:Pa,onEnterActive:Ra,onLeaveStart:Ra,onLeaveActive:Pa},({className:c,style:u},d)=>{const f={...s,...u};return N.createElement(bm,{prefixCls:t,className:z(o,c),style:f,ref:d})})},vm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sx=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}},vm(`${t}-primary`,o),vm(`${t}-danger`,s)]}},Ma=e=>Math.round(Number(e||0)),ix=e=>{if(e instanceof gt)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 wn extends gt{constructor(t){super(ix(t))}toHsbString(){const t=this.toHsb(),n=Ma(t.s*100),r=Ma(t.b*100),o=Ma(t.h),s=t.a,a=`hsb(${o}, ${n}%, ${r}%)`,l=`hsba(${o}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?a:l}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const ax="rc-color-picker",so=e=>e instanceof wn?e:new wn(e),lx=so("#1677ff"),t0=e=>{const{offset:t,targetRef:n,containerRef:r,color:o,type:s}=e,{width:a,height:l}=r.current.getBoundingClientRect(),{width:c,height:u}=n.current.getBoundingClientRect(),d=c/2,f=u/2,m=(t.x+d)/a,p=1-(t.y+f)/l,g=o.toHsb(),h=m,b=(t.x+d)/a*360;if(s)switch(s){case"hue":return so({...g,h:b<=0?0:b});case"alpha":return so({...g,a:h<=0?0:h})}return so({h:g.h,s:m<=0?0:m,b:p>=1?1:p,a:g.a})},n0=(e,t)=>{const n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},rd=({color:e,prefixCls:t,className:n,style:r,innerClassName:o,innerStyle:s,onClick:a})=>{const l=`${t}-color-block`;return N.createElement("div",{className:z(l,n),style:r,onClick:a},N.createElement("div",{className:z(`${l}-inner`,o),style:{background:e,...s}}))};function cx(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function r0(e){const{targetRef:t,containerRef:n,direction:r,onDragChange:o,onDragChangeComplete:s,calculate:a,color:l,disabledDrag:c}=e,[u,d]=i.useState({x:0,y:0}),f=i.useRef(null),m=i.useRef(null);i.useEffect(()=>{d(a())},[l]),i.useEffect(()=>()=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",m.current),f.current=null,m.current=null},[]);const p=$=>{const{pageX:y,pageY:v}=cx($),{x:C,y:S,width:x,height:w}=n.current.getBoundingClientRect(),{width:I,height:E}=t.current.getBoundingClientRect(),R=I/2,P=E/2,M=Math.max(0,Math.min(y-C,x))-R,O=Math.max(0,Math.min(v-S,w))-P,A={x:M,y:r==="x"?u.y:O};if(I===0&&E===0||I!==E)return!1;o==null||o(A)},g=$=>{$.preventDefault(),p($)},h=$=>{$.preventDefault(),document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",m.current),f.current=null,m.current=null,s==null||s()};return[u,$=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",m.current),!c&&(p($),document.addEventListener("mousemove",g),document.addEventListener("mouseup",h),document.addEventListener("touchmove",g),document.addEventListener("touchend",h),f.current=g,m.current=h)}]}const o0=({size:e="default",color:t,prefixCls:n})=>N.createElement("div",{className:z(`${n}-handler`,{[`${n}-handler-sm`]:e==="small"}),style:{backgroundColor:t}}),s0=({children:e,style:t,prefixCls:n})=>N.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),i0=i.forwardRef((e,t)=>{const{children:n,x:r,y:o}=e;return N.createElement("div",{ref:t,style:{position:"absolute",left:`${r}%`,top:`${o}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),ux=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:o})=>{const s=i.useRef(),a=i.useRef(),l=i.useRef(e),c=We(f=>{const m=t0({offset:f,targetRef:a,containerRef:s,color:e});l.current=m,t(m)}),[u,d]=r0({color:e,containerRef:s,targetRef:a,calculate:()=>n0(e),onDragChange:c,onDragChangeComplete:()=>r==null?void 0:r(l.current),disabledDrag:o});return N.createElement("div",{ref:s,className:`${n}-select`,onMouseDown:d,onTouchStart:d},N.createElement(s0,{prefixCls:n},N.createElement(i0,{x:u.x,y:u.y,ref:a},N.createElement(o0,{color:e.toRgbString(),prefixCls:n})),N.createElement("div",{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},dx=(e,t)=>{const[n,r]=bt(e,t);return[i.useMemo(()=>so(n),[n]),r]},fx=({colors:e,children:t,direction:n="to right",type:r,prefixCls:o})=>{const s=i.useMemo(()=>e.map((a,l)=>{let c=so(a);return r==="alpha"&&l===e.length-1&&(c=new wn(c.setA(1))),c.toRgbString()}).join(","),[e,r]);return N.createElement("div",{className:`${o}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${n}, ${s})`}},t)},mx=e=>{const{prefixCls:t,colors:n,disabled:r,onChange:o,onChangeComplete:s,color:a,type:l}=e,c=i.useRef(null),u=i.useRef(null),d=i.useRef(a),f=$=>l==="hue"?$.getHue():$.a*100,m=We($=>{const y=t0({offset:$,targetRef:u,containerRef:c,color:a,type:l});d.current=y,o(f(y))}),[p,g]=r0({color:a,targetRef:u,containerRef:c,calculate:()=>n0(a,l),onDragChange:m,onDragChangeComplete(){s(f(d.current))},direction:"x",disabledDrag:r}),h=N.useMemo(()=>{if(l==="hue"){const $=a.toHsb();return $.s=1,$.b=1,$.a=1,new wn($)}return a},[a,l]),b=N.useMemo(()=>n.map($=>`${$.color} ${$.percent}%`),[n]);return N.createElement("div",{ref:c,className:z(`${t}-slider`,`${t}-slider-${l}`),onMouseDown:g,onTouchStart:g},N.createElement(s0,{prefixCls:t},N.createElement(i0,{x:p.x,y:p.y,ref:u},N.createElement(o0,{size:"small",color:h.toHexString(),prefixCls:t})),N.createElement(fx,{colors:b,type:l,prefixCls:t})))};function px(e){return i.useMemo(()=>{const{slider:t}=e||{};return[t||mx]},[e])}function Vo(){return Vo=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},Vo.apply(this,arguments)}const gx=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],hx=i.forwardRef((e,t)=>{const{value:n,defaultValue:r,prefixCls:o=ax,onChange:s,onChangeComplete:a,className:l,style:c,panelRender:u,disabledAlpha:d=!1,disabled:f=!1,components:m}=e,[p]=px(m),[g,h]=dx(r||lx,n),b=i.useMemo(()=>g.setA(1).toRgbString(),[g]),$=(P,M)=>{n||h(P),s==null||s(P,M)},y=P=>new wn(g.setHue(P)),v=P=>new wn(g.setA(P/100)),C=P=>{$(y(P),{type:"hue",value:P})},S=P=>{$(v(P),{type:"alpha",value:P})},x=P=>{a&&a(y(P))},w=P=>{a&&a(v(P))},I=z(`${o}-panel`,l,{[`${o}-panel-disabled`]:f}),E={prefixCls:o,disabled:f,color:g},R=N.createElement(N.Fragment,null,N.createElement(ux,Vo({onChange:$},E,{onChangeComplete:a})),N.createElement("div",{className:`${o}-slider-container`},N.createElement("div",{className:z(`${o}-slider-group`,{[`${o}-slider-group-disabled-alpha`]:d})},N.createElement(p,Vo({},E,{type:"hue",colors:gx,min:0,max:359,value:g.getHue(),onChange:C,onChangeComplete:x})),!d&&N.createElement(p,Vo({},E,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:g.a*100,onChange:S,onChangeComplete:w}))),N.createElement(rd,{color:g.toRgbString(),prefixCls:o})));return N.createElement("div",{className:I,style:c,ref:t},typeof u=="function"?u(R):R)}),Bo=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",bx=(e,t)=>e?Bo(e,t):"";let an=function(){function e(t){var r;if(Ai(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 wn(this.colors[0].color.metaColor)):this.metaColor=new wn(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Oi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return bx(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 vx={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 ec(){return ec=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},ec.apply(this,arguments)}const yx=(e,t)=>i.createElement(Ye,ec({},e,{ref:t,icon:vx})),a0=i.forwardRef(yx),$x=N.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:o,style:s,children:a,isActive:l,role:c,classNames:u,styles:d}=e,[f,m]=N.useState(l||r);return N.useEffect(()=>{(r||l)&&m(!0)},[r,l]),f?N.createElement("div",{ref:t,className:z(`${n}-panel`,{[`${n}-panel-active`]:l,[`${n}-panel-inactive`]:!l},o),style:s,role:c},N.createElement("div",{className:z(`${n}-body`,u==null?void 0:u.body),style:d==null?void 0:d.body},a)):null}),l0=N.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:o,onItemClick:s,forceRender:a,className:l,classNames:c={},styles:u={},prefixCls:d,collapsible:f,accordion:m,panelKey:p,extra:g,header:h,expandIcon:b,openMotion:$,destroyOnHidden:y,children:v,...C}=e,S=f==="disabled",x=g!=null&&typeof g!="boolean",w={onClick:()=>{s==null||s(p)},onKeyDown:O=>{(O.key==="Enter"||O.keyCode===Me.ENTER||O.which===Me.ENTER)&&(s==null||s(p))},role:m?"tab":"button","aria-expanded":o,"aria-disabled":S,tabIndex:S?-1:0},I=typeof b=="function"?b(e):N.createElement("i",{className:"arrow"}),E=I&&N.createElement("div",Et({className:z(`${d}-expand-icon`,c==null?void 0:c.icon),style:u==null?void 0:u.icon},["header","icon"].includes(f)?w:{}),I),R=z(`${d}-item`,{[`${d}-item-active`]:o,[`${d}-item-disabled`]:S},l),M={className:z(r,`${d}-header`,{[`${d}-collapsible-${f}`]:!!f},c==null?void 0:c.header),style:u==null?void 0:u.header,...["header","icon"].includes(f)?{}:w};return N.createElement("div",Et({},C,{ref:t,className:R}),N.createElement("div",M,n&&E,N.createElement("span",Et({className:z(`${d}-title`,c==null?void 0:c.title),style:u==null?void 0:u.title},f==="header"?w:{}),h),x&&N.createElement("div",{className:`${d}-extra`},g)),N.createElement(un,Et({visible:o,leavedClassName:`${d}-panel-hidden`},$,{forceRender:a,removeOnLeave:y}),({className:O,style:A},T)=>N.createElement($x,{ref:T,prefixCls:d,className:O,classNames:c,style:A,styles:u,isActive:o,forceRender:a,role:m?"tabpanel":void 0},v)))});function c0(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 Cx(e,t){return c0(e,t,(n,r)=>z(n,r))}function Sx(e,t){return c0(e,t,(n,r)=>({...n,...r}))}const xx=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:o,destroyOnHidden:s,onItemClick:a,activeKey:l,openMotion:c,expandIcon:u,classNames:d,styles:f}=t;return e.map((m,p)=>{const{children:g,label:h,key:b,collapsible:$,onItemClick:y,destroyOnHidden:v,classNames:C,styles:S,...x}=m,w=String(b??p),I=$??o,E=v??s,R=M=>{I!=="disabled"&&(a(M),y==null||y(M))};let P=!1;return r?P=l[0]===w:P=l.indexOf(w)>-1,N.createElement(l0,Et({},x,{classNames:Cx(d,C),styles:Sx(f,S),prefixCls:n,key:w,panelKey:w,isActive:P,accordion:r,openMotion:c,expandIcon:u,header:h,collapsible:I,onItemClick:R,destroyOnHidden:E}),g)})},wx=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:o,collapsible:s,destroyOnHidden:a,onItemClick:l,activeKey:c,openMotion:u,expandIcon:d,classNames:f,styles:m}=n,p=e.key||String(t),{header:g,headerClass:h,destroyOnHidden:b,collapsible:$,onItemClick:y}=e.props;let v=!1;o?v=c[0]===p:v=c.indexOf(p)>-1;const C=$??s,S=w=>{C!=="disabled"&&(l(w),y==null||y(w))},x={key:p,panelKey:p,header:g,headerClass:h,classNames:f,styles:m,isActive:v,prefixCls:r,destroyOnHidden:b??a,openMotion:u,accordion:o,children:e.props.children,onItemClick:S,expandIcon:d,collapsible:C};return typeof e.type=="string"?e:(Object.keys(x).forEach(w=>{typeof x[w]>"u"&&delete x[w]}),N.cloneElement(e,x))};function Ex(e,t,n){return Array.isArray(e)?xx(e,n):Vt(t).map((r,o)=>wx(r,o,n))}function ym(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 Ix=N.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:o,accordion:s,className:a,children:l,collapsible:c,openMotion:u,expandIcon:d,activeKey:f,defaultActiveKey:m,onChange:p,items:g,classNames:h,styles:b}=e,$=z(n,a),[y,v]=bt(m,f),C=ym(y),S=We(I=>{const E=ym(I);v(E),p==null||p(E)}),x=I=>{S(s?C[0]===I?[]:[I]:C.includes(I)?C.filter(E=>E!==I):[...C,I])};Pt(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const w=Ex(g,l,{prefixCls:n,accordion:s,openMotion:u,expandIcon:d,collapsible:c,destroyOnHidden:r,onItemClick:x,activeKey:C,classNames:h,styles:b});return N.createElement("div",Et({ref:t,className:$,style:o,role:s?"tablist":void 0},cn(e,{aria:!0,data:!0})),w)}),od=Object.assign(Ix,{Panel:l0}),{Panel:r8}=od,Px=i.forwardRef((e,t)=>{const{getPrefixCls:n}=i.useContext(je),{prefixCls:r,className:o,showArrow:s=!0}=e,a=n("collapse",r),l=z({[`${a}-no-arrow`]:!s},o);return i.createElement(od.Panel,{ref:t,...e,prefixCls:a,className:l})}),u0=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`}}}},Rx=e=>({animationDuration:e,animationFillMode:"both"}),Mx=e=>({animationDuration:e,animationFillMode:"both"}),Wi=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
|
||
${s}${e}-enter,
|
||
${s}${e}-appear
|
||
`]:{...Rx(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...Mx(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"}}},Nx=new et("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Tx=new et("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),d0=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Wi(r,Nx,Tx,e.motionDurationMid,t),{[`
|
||
${o}${r}-enter,
|
||
${o}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Ox=new et("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ax=new et("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),zx=new et("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bx=new et("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Lx=new et("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hx=new et("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Dx=new et("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fx=new et("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_x={"move-up":{inKeyframes:Dx,outKeyframes:Fx},"move-down":{inKeyframes:Ox,outKeyframes:Ax},"move-left":{inKeyframes:zx,outKeyframes:Bx},"move-right":{inKeyframes:Lx,outKeyframes:Hx}},gi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=_x[t];return[Wi(r,o,s,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sd=new et("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),id=new et("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ad=new et("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ld=new et("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kx=new et("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vx=new et("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wx=new et("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jx=new et("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qx={"slide-up":{inKeyframes:sd,outKeyframes:id},"slide-down":{inKeyframes:ad,outKeyframes:ld},"slide-left":{inKeyframes:kx,outKeyframes:Vx},"slide-right":{inKeyframes:Wx,outKeyframes:jx}},cr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=qx[t];return[Wi(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}}]},Gx=new et("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xx=new et("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$m=new et("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Cm=new et("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ux=new et("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Kx=new et("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Yx=new et("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Qx=new et("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zx=new et("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Jx=new et("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ew=new et("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tw=new et("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nw={zoom:{inKeyframes:Gx,outKeyframes:Xx},"zoom-big":{inKeyframes:$m,outKeyframes:Cm},"zoom-big-fast":{inKeyframes:$m,outKeyframes:Cm},"zoom-left":{inKeyframes:Yx,outKeyframes:Qx},"zoom-right":{inKeyframes:Zx,outKeyframes:Jx},"zoom-up":{inKeyframes:Ux,outKeyframes:Kx},"zoom-down":{inKeyframes:ew,outKeyframes:tw}},ds=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=nw[t];return[Wi(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}}]},rw=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:s,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:p,colorTextDisabled:g,fontSizeLG:h,lineHeight:b,lineHeightLG:$,marginSM:y,paddingSM:v,paddingLG:C,paddingXS:S,motionDurationSlow:x,fontSizeIcon:w,contentPadding:I,fontHeight:E,fontHeightLG:R}=e,P=`${K(u)} ${d} ${f}`;return{[t]:{...Ct(e),backgroundColor:o,border:P,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${K(c)} ${K(c)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:p,lineHeight:b,cursor:"pointer",transition:`all ${x}, visibility 0s`,...bn(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",marginInlineEnd:y},[`${t}-arrow`]:{...go(),fontSize:w,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:m,backgroundColor:n,borderTop:P,[`& > ${t}-body`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(v).sub(S).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:$,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:R,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:y}}}}}}},ow=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},sw=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}}}},iw=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}}}}}},aw=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"}),lw=at("Collapse",e=>{const t=rt(e,{collapseHeaderPaddingSM:`${K(e.paddingXS)} ${K(e.paddingSM)}`,collapseHeaderPaddingLG:`${K(e.padding)} ${K(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[rw(t),sw(t),iw(t),ow(t),u0(t)]},aw),cw=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:s,style:a,classNames:l,styles:c}=dt("collapse"),{prefixCls:u,className:d,rootClassName:f,style:m,bordered:p=!0,ghost:g,size:h,expandIconPlacement:b,expandIconPosition:$,children:y,destroyInactivePanel:v,destroyOnHidden:C,expandIcon:S,classNames:x,styles:w}=e,I=Jt(W=>h??W??"middle"),E=n("collapse",u),R=n(),[P,M]=lw(E),O=b??$??"start",A={...e,size:I,bordered:p,expandIconPlacement:O},[T,F]=pt([l,x],[c,w],{props:A}),H=S??o,L=i.useCallback((W={})=>{const _=typeof H=="function"?H(W):i.createElement(a0,{rotate:W.isActive?r==="rtl"?-90:90:void 0,"aria-label":W.isActive?"expanded":"collapsed"});return Wt(_,X=>({className:z(X.className,`${E}-arrow`)}))},[H,E,r]),B=z(`${E}-icon-placement-${O}`,{[`${E}-borderless`]:!p,[`${E}-rtl`]:r==="rtl",[`${E}-ghost`]:!!g,[`${E}-${I}`]:I!=="middle"},s,d,f,P,M,T.root),D=i.useMemo(()=>({...Yh(R),motionAppear:!1,leavedClassName:`${E}-panel-hidden`}),[R,E]),k=i.useMemo(()=>y?Vt(y).map(W=>W):null,[y]);return i.createElement(od,{ref:t,openMotion:D,...yt(e,["rootClassName"]),expandIcon:L,prefixCls:E,className:B,style:{...F.root,...a,...m},classNames:T,styles:F,destroyOnHidden:C??v},k)}),uw=Object.assign(cw,{Panel:Px}),Bt=e=>e instanceof an?e:new an(e),Js=e=>Math.round(Number(e||0)),cd=e=>Js(e.toHsb().a*100),ei=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Bt(r)}return n.a=1,Bt(n)},f0=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(xt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const o=n[r].percent,s=n[r+1].percent,a=n[r].color,l=n[r+1].color;if(o<=t&&t<=s){const c=s-o;if(c===0)return a;const u=(t-o)/c*100,d=new wn(a),f=new wn(l);return d.mix(f,u).toRgbString()}}return""},dw=e=>e.map(t=>(t.colors=t.colors.map(Bt),t)),m0=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),a=new wn(e.toRgbString()).onBackground(t).toHsv();return s<=.5?a.v>.5:n*.299+r*.587+o*.114>192},Sm=(e,t)=>`panel-${e.key??t}`,fw=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[o]=dn("ColorPicker"),[,s]=jt(),a=i.useMemo(()=>dw(t),[t]),l=`${e}-presets`,c=i.useMemo(()=>a.reduce((f,m,p)=>{const{defaultOpen:g=!0}=m;return g&&f.push(Sm(m,p)),f},[]),[a]),u=f=>{r==null||r(f)},d=a.map((f,m)=>{var p;return{key:Sm(f,m),label:N.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:N.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((p=f.colors)==null?void 0:p.length)>0?f.colors.map((g,h)=>{const b=Bt(g);return N.createElement(rd,{key:`preset-${h}-${g.toHexString()}`,color:b.toCssString(),prefixCls:e,className:z(`${l}-color`,{[`${l}-color-checked`]:g.toCssString()===(n==null?void 0:n.toCssString()),[`${l}-color-bright`]:m0(g,s.colorBgElevated)}),onClick:()=>u(g)})}):N.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return N.createElement("div",{className:l},N.createElement(uw,{defaultActiveKey:c,ghost:!0,items:d}))},p0=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return rt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},g0=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??Ys(t),s=e.contentLineHeightSM??Ys(n),a=e.contentLineHeightLG??Ys(r),l=m0(new an(e.colorBgSolid),"#fff")?"#000":"#fff",c=Tn.reduce((f,m)=>({...f,[`${m}ShadowColor`]:`0 ${K(e.controlOutlineWidth)} 0 ${zo(e[`${m}1`],e.colorBgContainer)}`}),{}),u=e.colorBgContainerDisabled,d=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:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:s,contentLineHeightLG:a,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*a)/2-e.lineWidth,0),defaultBgDisabled:u,dashedBgDisabled:d}},mw=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,s]=At(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}}}},Tn.map(a=>{const l=e[`${a}6`],c=e[`${a}1`],u=e[`${a}Hover`],d=e[`${a}2`],f=e[`${a}3`],m=e[`${a}Active`],p=e[`${a}ShadowColor`];return{[`&${t}-color-${a}`]:{[o("color-base")]:l,[o("color-hover")]:u,[o("color-active")]:m,[o("color-light")]:c,[o("color-light-hover")]:d,[o("color-light-active")]:f,[o("shadow")]:p}}}),{[`&: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}}}]}},pw=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:a,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:go(),"> a":{color:"currentColor"},"&:not(:disabled)":bn(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(u=>`${u} ${s} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},gw=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),ud=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${K(c)} ${K(a)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:gw(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},hw=e=>{const t=rt(e,{fontSize:e.contentFontSize});return ud(t,e.componentCls)},bw=e=>{const t=rt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ud(t,`${e.componentCls}-sm`)},vw=e=>{const t=rt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ud(t,`${e.componentCls}-lg`)},yw=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},$w=at("Button",e=>{const t=p0(e);return[pw(t),hw(t),bw(t),vw(t),yw(t),mw(t),sx(t)]},g0,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Cw(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:a}=n,l=a?"> *":"",c=["hover",s?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${l}`).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] ${l}`]:{zIndex:0}}}}function Sw(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 yo(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,s=`${o}-compact`;return{[s]:{...Cw(e,s,t,o),...Sw(o,s,t)}}}function xw(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 ww(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 Ew(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...xw(e,t,e.componentCls),...ww(e.componentCls,t)}}}const Iw=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:s}=e,a=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[c,u]=At(t,"btn"),d=f=>({[`${n}-compact${f?"-vertical":""}-item`]:{[c("compact-connect-border-color")]:u("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:u("compact-connect-border-color"),content:'""'},f?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}});return[d(),d(!0),{[`${a}${n}-color-default`]:{[c("compact-connect-border-color")]:`color-mix(in srgb, ${u("bg-color-hover")} 75%, ${s})`}}]},Pw=Ug(["Button","compact"],e=>{const t=p0(e);return[yo(t),Ew(t),Iw(t)]},g0);function Rw(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Mw={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Nw=N.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:s,variant:a,type:l,danger:c=!1,shape:u,size:d,disabled:f,className:m,rootClassName:p,children:g,icon:h,iconPosition:b,iconPlacement:$,ghost:y=!1,block:v=!1,htmlType:C="button",classNames:S,styles:x,style:w,autoInsertSpace:I,autoFocus:E,...R}=e,P=Vt(g),M=l||"default",{getPrefixCls:O,direction:A,autoInsertSpace:T,className:F,style:H,classNames:L,styles:B,loadingIcon:D,shape:k,color:W,variant:_}=dt("button"),X=u||k||"default",[U,j]=i.useMemo(()=>{if(s&&a)return[s,a];if(l||c){const ye=Mw[M]||[];return c?["danger",ye[1]]:ye}return W&&_?[W,_]:["default","outlined"]},[s,a,l,c,W,_,M]),[V,G]=i.useMemo(()=>y&&j==="solid"?[U,"outlined"]:[U,j],[U,j,y]),te=V==="danger",ee=te?"dangerous":V,ne=I??T??!0,Y=O("btn",o),[se,ue]=$w(Y),q=i.useContext(yn),oe=f??q,Z=i.useContext(Jh),J=i.useMemo(()=>Rw(r),[r]),[ae,we]=i.useState(J.loading),[de,ge]=i.useState(!1),be=i.useRef(null),me=qn(t,be),Ne=P.length===1&&!h&&!Ia(G),Ae=i.useRef(!0);N.useEffect(()=>(Ae.current=!1,()=>{Ae.current=!0}),[]),nt(()=>{let ye=null;J.delay>0?ye=setTimeout(()=>{ye=null,we(!0)},J.delay):we(J.loading);function ce(){ye&&(clearTimeout(ye),ye=null)}return ce},[J.delay,J.loading]),i.useEffect(()=>{if(!be.current||!ne)return;const ye=be.current.textContent||"";Ne&&Jl(ye)?de||ge(!0):de&&ge(!1)}),i.useEffect(()=>{E&&be.current&&be.current.focus()},[]);const Ee=N.useCallback(ye=>{var ce;if(ae||oe){ye.preventDefault();return}(ce=e.onClick)==null||ce.call(e,("href"in e,ye))},[e.onClick,ae,oe]),{compactSize:ze,compactItemClassnames:Re}=Un(Y,A),ve={large:"lg",small:"sm",middle:void 0,medium:void 0},fe=Jt(ye=>d??ze??Z??ye),Ce=fe?ve[fe]??"":"",He=ae?"loading":h,Ie=$??b??"start",re=yt(R,["navigate"]),$e={...e,type:M,color:V,variant:G,danger:te,shape:X,size:fe,disabled:oe,loading:ae,iconPlacement:Ie},[ke,De]=pt([n?void 0:L,S],[n?void 0:B,x],{props:$e}),ot=z(Y,se,ue,{[`${Y}-${X}`]:X!=="default"&&X!=="square"&&X,[`${Y}-${M}`]:M,[`${Y}-dangerous`]:c,[`${Y}-color-${ee}`]:ee,[`${Y}-variant-${G}`]:G,[`${Y}-${Ce}`]:Ce,[`${Y}-icon-only`]:!g&&g!==0&&!!He,[`${Y}-background-ghost`]:y&&!Ia(G),[`${Y}-loading`]:ae,[`${Y}-two-chinese-chars`]:de&&ne&&!ae,[`${Y}-block`]:v,[`${Y}-rtl`]:A==="rtl",[`${Y}-icon-end`]:Ie==="end"},Re,m,p,F,ke.root),qe={...De.root,...H,...w},ft={className:ke.icon,style:De.icon},Qe=ye=>N.createElement(e0,{prefixCls:Y,...ft},ye),st=N.createElement(ox,{existIcon:!!h,prefixCls:Y,loading:ae,mount:Ae.current,...ft}),lt=r&&typeof r=="object"&&r.icon||D;let Se;h&&!ae?Se=Qe(h):r&<?Se=Qe(lt):Se=st;const Be=vn(g)?rx(g,Ne&&ne,De.content,ke.content):null;if(re.href!==void 0)return N.createElement("a",{...re,className:z(ot,{[`${Y}-disabled`]:oe}),href:oe?void 0:re.href,style:qe,onClick:Ee,ref:me,tabIndex:oe?-1:0,"aria-disabled":oe},Se,Be);let Pe=N.createElement("button",{...R,type:C,className:ot,style:qe,onClick:Ee,disabled:oe,ref:me},Se,Be,Re&&N.createElement(Pw,{prefixCls:Y}));return Ia(G)||(Pe=N.createElement(Zh,{component:"Button",disabled:ae},Pe)),Pe}),On=Nw;On.Group=tx;On.__ANT_BUTTON=!0;const Na=e=>typeof(e==null?void 0:e.then)=="function",dd=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:s,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=i.useRef(!1),m=i.useRef(null),[p,g]=si(!1),h=(...y)=>{s==null||s(...y)};i.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var v;(v=m.current)==null||v.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[a]);const b=y=>{Na(y)&&(g(!0),y.then((...v)=>{g(!1,!0),h.apply(void 0,v),f.current=!1},v=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(v)}))},$=y=>{if(f.current)return;if(f.current=!0,!d){h();return}let v;if(l){if(v=d(y),u&&!Na(v)){f.current=!1,h(y);return}}else if(d.length)v=d(s),f.current=!1;else if(v=d(),!Na(v)){h();return}b(v)};return i.createElement(On,{...nd(t),onClick:$,loading:p,prefixCls:r,...o,ref:m},n)},fs=N.createContext({}),{Provider:h0}=fs,xm=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:s,close:a,onCancel:l,onConfirm:c,onClose:u}=i.useContext(fs);return o?N.createElement(dd,{isSilent:r,actionFn:l,close:(...d)=>{a==null||a(...d),c==null||c(!1),u==null||u()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},wm=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:s,okType:a,onConfirm:l,onOk:c,onClose:u}=i.useContext(fs);return N.createElement(dd,{isSilent:n,type:a||"primary",actionFn:c,close:(...d)=>{t==null||t(...d),l==null||l(!0),u==null||u()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},s)},b0=i.createContext(null);let Tw=!1;function Ow(e){return Tw}const Em=[];function Aw(e,t){const[n]=i.useState(()=>Ot()?document.createElement("div"):null),r=i.useRef(!1),o=i.useContext(b0),[s,a]=i.useState(Em),l=o||(r.current?void 0:d=>{a(f=>[d,...f])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var d;(d=n.parentElement)==null||d.removeChild(n),r.current=!1}return nt(()=>(e?o?o(c):c():u(),u),[e]),nt(()=>{s.length&&(s.forEach(d=>d()),a(Em))},[s]),[n,l]}function zw(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Bw=`rc-util-locker-${Date.now()}`;let Im=0;function Lw(e){const t=!!e,[n]=i.useState(()=>(Im+=1,`${Bw}_${Im}`));nt(()=>{if(t){const r=Ch(document.body).width,o=zw();sr(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${o?`width: calc(100% - ${r}px);`:""}
|
||
}`,n)}else Or(n);return()=>{Or(n)}},[t,n])}let Zn=[];function Hw(e,t){const n=Xn(),r=We(o=>{if(o.key==="Escape"&&!o.isComposing){const s=Zn[Zn.length-1]===n;t==null||t({top:s,event:o})}});i.useMemo(()=>{e&&!Zn.includes(n)?Zn.push(n):e||(Zn=Zn.filter(o=>o!==n))},[e,n]),i.useEffect(()=>{if(e)return window.addEventListener("keydown",r),()=>{Zn=Zn.filter(o=>o!==n),window.removeEventListener("keydown",r)}},[e,n])}const Pm=e=>e===!1?!1:!Ot()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Dw=i.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:a=!0,children:l,onEsc:c}=e,[u,d]=i.useState(n),f=u||n;i.useEffect(()=>{(a||n)&&d(n)},[n,a]);const[m,p]=i.useState(()=>Pm(o));i.useEffect(()=>{const S=Pm(o);p(()=>S??null)});const[g,h]=Aw(f&&!m),b=m??g;Lw(r&&n&&Ot()&&(b===g||b===document.body)),Hw(n,c);let $=null;l&&dr(l)&&t&&($=Gn(l));const y=qn($,t);if(!f||!Ot()||m===void 0)return null;const v=b===!1||Ow();let C=l;return t&&(C=i.cloneElement(l,{ref:y})),i.createElement(b0.Provider,{value:h},v?C:Vn.createPortal(C,b))}),v0=i.createContext({});function Rm(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function Mm(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function Fw(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Mm(o),n.top+=Mm(o,!0),n}function Nm(e,t=!1){if(Zu(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o);let a=null;return o&&!Number.isNaN(s)?a=s:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function fd(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>Nm(r,t));return Nm(e,t)&&n.unshift(e),n}function md(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let io=null,er=[];const tc=new Map,pd=new Map;function gd(){return er[er.length-1]}function _w(e){const t=gd();if(e&&t){let n;for(const[o,s]of tc.entries())if(s===t){n=o;break}const r=pd.get(n);return!!r&&(r===e||r.contains(e))}return!1}function kw(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Ta(){const e=gd(),{activeElement:t}=document;if(!_w(t))if(e&&!kw(e)){const n=fd(e),r=n.includes(io)?io:n[0];r==null||r.focus({preventScroll:!0})}else io=t}function Tm(e){if(e.key==="Tab"){const{activeElement:t}=document,n=gd(),r=fd(n),o=r[r.length-1];e.shiftKey&&t===r[0]?io=o:!e.shiftKey&&t===o&&(io=r[0])}}function Vw(e,t){return e&&(tc.set(t,e),er=er.filter(n=>n!==e),er.push(e),window.addEventListener("focusin",Ta),window.addEventListener("keydown",Tm,!0),Ta()),()=>{io=null,er=er.filter(n=>n!==e),tc.delete(t),pd.delete(t),er.length===0&&(window.removeEventListener("focusin",Ta),window.removeEventListener("keydown",Tm,!0))}}function Ww(e,t){const n=Xn();return i.useEffect(()=>{if(e){const o=t();if(o)return Vw(o,n)}},[e,n]),[o=>{o&&pd.set(n,o)}]}const jw=i.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function hi(){return hi=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},hi.apply(this,arguments)}const y0=N.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:s,ariaId:a,footer:l,closable:c,closeIcon:u,onClose:d,children:f,bodyStyle:m,bodyProps:p,modalRender:g,onMouseDown:h,onMouseUp:b,holderRef:$,visible:y,forceRender:v,width:C,height:S,classNames:x,styles:w,isFixedPos:I,focusTrap:E}=e,{panel:R}=N.useContext(v0),P=i.useRef(null),M=qn($,R,P),[O]=Ww(y&&I&&E!==!1,()=>P.current);N.useImperativeHandle(t,()=>({focus:()=>{var W;(W=P.current)==null||W.focus({preventScroll:!0})}}));const A={};C!==void 0&&(A.width=C),S!==void 0&&(A.height=S);const T=l?N.createElement("div",{className:z(`${n}-footer`,x==null?void 0:x.footer),style:{...w==null?void 0:w.footer}},l):null,F=s?N.createElement("div",{className:z(`${n}-header`,x==null?void 0:x.header),style:{...w==null?void 0:w.header}},N.createElement("div",{className:z(`${n}-title`,x==null?void 0:x.title),id:a,style:{...w==null?void 0:w.title}},s)):null,H=i.useMemo(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:u??N.createElement("span",{className:`${n}-close-x`})}:{},[c,u,n]),L=cn(H,!0),B=typeof c=="object"&&c.disabled,D=c?N.createElement("button",hi({type:"button",onClick:d,"aria-label":"Close"},L,{className:`${n}-close`,disabled:B}),H.closeIcon):null,k=N.createElement("div",{className:z(`${n}-container`,x==null?void 0:x.container),style:w==null?void 0:w.container},D,F,N.createElement("div",hi({className:z(`${n}-body`,x==null?void 0:x.body),style:{...m,...w==null?void 0:w.body}},p),f),T);return N.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?a:null,"aria-modal":"true",ref:M,style:{...o,...A},className:z(n,r),onMouseDown:h,onMouseUp:b,tabIndex:-1,onFocus:W=>{O(W.target)}},N.createElement(jw,{shouldUpdate:y||v},g?g(k):k))});function nc(){return nc=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},nc.apply(this,arguments)}const qw=i.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:s,visible:a,forceRender:l,destroyOnHidden:c,motionName:u,ariaId:d,onVisibleChanged:f,mousePosition:m}=e,p=i.useRef(null),g=i.useRef(null);i.useImperativeHandle(t,()=>({...g.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));const[h,b]=i.useState(),$={};h&&($.transformOrigin=h);function y(){var C;if(!((C=p.current)!=null&&C.nativeElement))return;const v=Fw(p.current.nativeElement);b(m&&(m.x||m.y)?`${m.x-v.left}px ${m.y-v.top}px`:"")}return i.createElement(un,{visible:a,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:l,motionName:u,removeOnLeave:c,ref:p},({className:v,style:C},S)=>i.createElement(y0,nc({},e,{ref:g,title:r,ariaId:d,prefixCls:n,holderRef:S,style:{...C,...o,...$},className:z(s,v)})))});function rc(){return rc=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},rc.apply(this,arguments)}const Gw=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:s,className:a}=e;return i.createElement(un,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:l,style:c},u)=>i.createElement("div",rc({ref:u,style:{...c,...n},className:z(`${t}-mask`,l,a)},o)))};function Wo(){return Wo=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},Wo.apply(this,arguments)}const Xw=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:o=!0,wrapStyle:s,wrapClassName:a,wrapProps:l,onClose:c,afterOpenChange:u,afterClose:d,transitionName:f,animation:m,closable:p=!0,mask:g=!0,maskTransitionName:h,maskAnimation:b,maskClosable:$=!0,maskStyle:y,maskProps:v,rootClassName:C,rootStyle:S,classNames:x,styles:w}=e,I=i.useRef(null),E=i.useRef(null),R=i.useRef(null),[P,M]=i.useState(r),[O,A]=i.useState(!1),T=Xn();function F(){cl(E.current,document.activeElement)||(I.current=document.activeElement)}function H(){var U;cl(E.current,document.activeElement)||(U=R.current)==null||U.focus()}function L(){if(M(!1),g&&I.current&&o){try{I.current.focus({preventScroll:!0})}catch{}I.current=null}P&&(d==null||d())}function B(U){U?H():L(),u==null||u(U)}function D(U){c==null||c(U)}const k=i.useRef(!1);let W=null;$&&(W=U=>{E.current===U.target&&k.current&&D(U)});function _(U){k.current=U.target===E.current}i.useEffect(()=>{if(r){if(k.current=!1,M(!0),F(),E.current){const U=getComputedStyle(E.current);A(U.position==="fixed")}}else P&&R.current.enableMotion()&&!R.current.inMotion()&&L()},[r]);const X={zIndex:n,...s,...w==null?void 0:w.wrapper,display:P?null:"none"};return i.createElement("div",Wo({className:z(`${t}-root`,C),style:S},cn(e,{data:!0})),i.createElement(Gw,{prefixCls:t,visible:g&&r,motionName:Rm(t,h,b),style:{zIndex:n,...y,...w==null?void 0:w.mask},maskProps:v,className:x==null?void 0:x.mask}),i.createElement("div",Wo({className:z(`${t}-wrap`,a,x==null?void 0:x.wrapper),ref:E,onClick:W,onMouseDown:_,style:X},l),i.createElement(qw,Wo({},e,{isFixedPos:O,ref:R,closable:p,ariaId:T,prefixCls:t,visible:r&&P,onClose:D,onVisibleChanged:B,motionName:Rm(t,f,m)}))))};function oc(){return oc=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},oc.apply(this,arguments)}const Uw=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=!1,afterClose:s,closable:a,panelRef:l,keyboard:c=!0,onClose:u}=e,[d,f]=i.useState(t),m=i.useMemo(()=>({panel:l}),[l]),p=({top:g,event:h})=>{if(g&&c){h.stopPropagation(),u==null||u(h);return}};return i.useEffect(()=>{t&&f(!0)},[t]),!r&&o&&!d?null:i.createElement(v0.Provider,{value:m},i.createElement(Dw,{open:t||r||d,onEsc:p,autoDestroy:!1,getContainer:n,autoLock:t||d},i.createElement(Xw,oc({},e,{destroyOnHidden:o,afterClose:()=>{const g=a&&typeof a=="object"?a:{},{afterClose:h}=g||{};h==null||h(),s==null||s(),f(!1)}}))))},Sr="RC_FORM_INTERNAL_HOOKS",vt=()=>{Pt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},fo=i.createContext({getFieldValue:vt,getFieldsValue:vt,getFieldError:vt,getFieldWarning:vt,getFieldsError:vt,isFieldsTouched:vt,isFieldTouched:vt,isFieldValidating:vt,isFieldsValidating:vt,resetFields:vt,setFields:vt,setFieldValue:vt,setFieldsValue:vt,validateFields:vt,submit:vt,getInternalHooks:()=>(vt(),{dispatch:vt,initEntityValue:vt,registerField:vt,useSubscribe:vt,setInitialValues:vt,destroyForm:vt,setCallbacks:vt,registerWatch:vt,getFields:vt,setValidateMessages:vt,setPreserve:vt,getInitialValue:vt})}),bi=i.createContext(null);function sc(e){return e==null?[]:Array.isArray(e)?e:[e]}function Kw(e){return e&&!!e._init}function ic(){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 ac=ic(),Yw=/%[sdj%]/g,Qw=function(){};function lc(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 ln(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 a=e.replace(Yw,function(l){if(l==="%%")return"%";if(o>=s)return l;switch(l){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 l}});return a}return e}function Zw(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Rt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Zw(t)&&typeof e=="string"&&!e)}function Jw(e,t,n){var r=[],o=0,s=e.length;function a(l){r.push.apply(r,tr(l||[])),o++,o===s&&n(r)}e.forEach(function(l){t(l,a)})}function Om(e,t,n){var r=0,o=e.length;function s(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],s):n([])}s([])}function eE(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,tr(e[n]||[]))}),t}var Am=function(e){fg(n,e);var t=mg(n);function n(r,o){var s;return Pn(this,n),s=t.call(this,"Async Validation Error"),Ve(Fo(s),"errors",void 0),Ve(Fo(s),"fields",void 0),s.errors=r,s.fields=o,s}return In(n)}(vy(Error));function tE(e,t,n,r,o){if(t.first){var s=new Promise(function(m,p){var g=function($){return r($),$.length?p(new Am($,lc($))):m(o)},h=eE(e);Om(h,n,g)});return s.catch(function(m){return m}),s}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(m,p){var g=function(b){if(d.push.apply(d,b),u++,u===c)return r(d),d.length?p(new Am(d,lc(d))):m(o)};l.length||(r(d),m(o)),l.forEach(function(h){var b=e[h];a.indexOf(h)!==-1?Om(b,n,g):Jw(b,n,g)})});return f.catch(function(m){return m}),f}function nE(e){return!!(e&&e.message!==void 0)}function rE(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function zm(e,t){return function(n){var r;return e.fullFields?r=rE(t,e.fullFields):r=t[n.field||e.fullField],nE(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 Bm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Zt(r)==="object"&&Zt(e[n])==="object"?e[n]=St(St({},e[n]),r):e[n]=r}}return e}var Wr="enum",oE=function(t,n,r,o,s){t[Wr]=Array.isArray(t[Wr])?t[Wr]:[],t[Wr].indexOf(n)===-1&&o.push(ln(s.messages[Wr],t.fullField,t[Wr].join(", ")))},sE=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ln(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(ln(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},iE=function(t,n,r,o,s){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(m?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(ln(s.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?o.push(ln(s.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?o.push(ln(s.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&o.push(ln(s.messages[f].range,t.fullField,t.min,t.max))},$0=function(t,n,r,o,s,a){t.required&&(!r.hasOwnProperty(t.field)||Rt(n,a||t.type))&&o.push(ln(s.messages.required,t.fullField))},_s;const aE=function(){if(_s)return _s;var e="[a-fA-F\\d:]",t=function(x){return x&&x.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,})?",a="(?:".concat(o.join("|"),")").concat(s),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function(x){return x&&x.exact?l:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};d.v4=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,g=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(g,"|").concat(h).concat(b).concat($,")").concat(y).concat(v);return _s=new RegExp("(?:^".concat(C,"$)"),"i"),_s};var Oa={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},Lo={integer:function(t){return Lo.number(t)&&parseInt(t,10)===t},float:function(t){return Lo.number(t)&&!Lo.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 Zt(t)==="object"&&!Lo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Oa.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Oa.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aE())},hex:function(t){return typeof t=="string"&&!!t.match(Oa.hex)}},lE=function(t,n,r,o,s){if(t.required&&n===void 0){$0(t,n,r,o,s);return}var a=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Lo[l](n)||o.push(ln(s.messages.types[l],t.fullField,t.type)):l&&Zt(n)!==t.type&&o.push(ln(s.messages.types[l],t.fullField,t.type))},cE=function(t,n,r,o,s){(/^\s+$/.test(n)||n==="")&&o.push(ln(s.messages.whitespace,t.fullField))};const ut={required:$0,whitespace:cE,type:lE,range:iE,enum:oE,pattern:sE};var uE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s)}r(a)},dE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();ut.required(t,n,o,a,s,"array"),n!=null&&(ut.type(t,n,o,a,s),ut.range(t,n,o,a,s))}r(a)},fE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&ut.type(t,n,o,a,s)}r(a)},mE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n,"date")&&!t.required)return r();if(ut.required(t,n,o,a,s),!Rt(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),ut.type(t,c,o,a,s),c&&ut.range(t,c.getTime(),o,a,s)}}r(a)},pE="enum",gE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&ut[pE](t,n,o,a,s)}r(a)},hE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&(ut.type(t,n,o,a,s),ut.range(t,n,o,a,s))}r(a)},bE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&(ut.type(t,n,o,a,s),ut.range(t,n,o,a,s))}r(a)},vE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&ut.type(t,n,o,a,s)}r(a)},yE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&(ut.type(t,n,o,a,s),ut.range(t,n,o,a,s))}r(a)},$E=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),n!==void 0&&ut.type(t,n,o,a,s)}r(a)},CE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n,"string")&&!t.required)return r();ut.required(t,n,o,a,s),Rt(n,"string")||ut.pattern(t,n,o,a,s)}r(a)},SE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n)&&!t.required)return r();ut.required(t,n,o,a,s),Rt(n)||ut.type(t,n,o,a,s)}r(a)},xE=function(t,n,r,o,s){var a=[],l=Array.isArray(n)?"array":Zt(n);ut.required(t,n,o,a,s,l),r(a)},wE=function(t,n,r,o,s){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Rt(n,"string")&&!t.required)return r();ut.required(t,n,o,a,s,"string"),Rt(n,"string")||(ut.type(t,n,o,a,s),ut.range(t,n,o,a,s),ut.pattern(t,n,o,a,s),t.whitespace===!0&&ut.whitespace(t,n,o,a,s))}r(a)},ks=function(t,n,r,o,s){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Rt(n,a)&&!t.required)return r();ut.required(t,n,o,l,s,a),Rt(n,a)||ut.type(t,n,o,l,s)}r(l)};const jo={string:wE,method:vE,number:yE,boolean:fE,regexp:SE,integer:bE,float:hE,array:dE,object:$E,enum:gE,pattern:CE,date:mE,url:ks,hex:ks,email:ks,tel:ks,required:xE,any:uE};var ms=function(){function e(t){Pn(this,e),Ve(this,"rules",null),Ve(this,"_messages",ac),this.define(t)}return In(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Zt(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=Bm(ic(),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(){},a=n,l=o,c=s;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(g){var h=[],b={};function $(v){if(Array.isArray(v)){var C;h=(C=h).concat.apply(C,tr(v))}else h.push(v)}for(var y=0;y<g.length;y++)$(g[y]);h.length?(b=lc(h),c(h,b)):c(null,a)}if(l.messages){var d=this.messages();d===ac&&(d=ic()),Bm(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},m=l.keys||Object.keys(this.rules);m.forEach(function(g){var h=r.rules[g],b=a[g];h.forEach(function($){var y=$;typeof y.transform=="function"&&(a===n&&(a=St({},a)),b=a[g]=y.transform(b),b!=null&&(y.type=y.type||(Array.isArray(b)?"array":Zt(b)))),typeof y=="function"?y={validator:y}:y=St({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=g,y.fullField=y.fullField||g,y.type=r.getType(y),f[g]=f[g]||[],f[g].push({rule:y,value:b,source:a,field:g}))})});var p={};return tE(f,l,function(g,h){var b=g.rule,$=(b.type==="object"||b.type==="array")&&(Zt(b.fields)==="object"||Zt(b.defaultField)==="object");$=$&&(b.required||!b.required&&g.value),b.field=g.field;function y(w,I){return St(St({},I),{},{fullField:"".concat(b.fullField,".").concat(w),fullFields:b.fullFields?[].concat(tr(b.fullFields),[w]):[w]})}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(w)?w:[w];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&b.message!==void 0&&b.message!==null&&(I=[].concat(b.message));var E=I.map(zm(b,a));if(l.first&&E.length)return p[b.field]=1,h(E);if(!$)h(E);else{if(b.required&&!g.value)return b.message!==void 0?E=[].concat(b.message).map(zm(b,a)):l.error&&(E=[l.error(b,ln(l.messages.required,b.field))]),h(E);var R={};b.defaultField&&Object.keys(g.value).map(function(O){R[O]=b.defaultField}),R=St(St({},R),g.rule.fields);var P={};Object.keys(R).forEach(function(O){var A=R[O],T=Array.isArray(A)?A:[A];P[O]=T.map(y.bind(null,O))});var M=new e(P);M.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),M.validate(g.value,g.rule.options||l,function(O){var A=[];E&&E.length&&A.push.apply(A,tr(E)),O&&O.length&&A.push.apply(A,tr(O)),h(A.length?A:null)})}}var C;if(b.asyncValidator)C=b.asyncValidator(b,g.value,v,g.source,l);else if(b.validator){try{C=b.validator(b,g.value,v,g.source,l)}catch(w){var S,x;(S=(x=console).error)===null||S===void 0||S.call(x,w),l.suppressValidatorError||setTimeout(function(){throw w},0),v(w.message)}C===!0?v():C===!1?v(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):C instanceof Array?v(C):C instanceof Error&&v(C.message)}C&&C.then&&C.then(function(){return v()},function(w){return v(w)})},function(g){u(g)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!jo.hasOwnProperty(n.type))throw new Error(ln("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"?jo.required:jo[this.getType(n)]||void 0}}]),e}();Ve(ms,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jo[t]=n});Ve(ms,"warning",Qw);Ve(ms,"messages",ac);Ve(ms,"validators",jo);const Kt="'${name}' is not a valid ${type}",C0={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:Kt,method:Kt,array:Kt,object:Kt,number:Kt,date:Kt,boolean:Kt,integer:Kt,float:Kt,regexp:Kt,email:Kt,tel:Kt,url:Kt,hex:Kt},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}"}},Lm=ms;function EE(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 Hm="CODE_LOGIC_ERROR";async function cc(e,t,n,r,o){const s={...n};if(delete s.ruleIndex,Lm.warning=()=>{},s.validator){const m=s.validator;s.validator=(...p)=>{try{return m(...p)}catch(g){return console.error(g),Promise.reject(Hm)}}}let a=null;s&&s.type==="array"&&s.defaultField&&(a=s.defaultField,delete s.defaultField);const l=new Lm({[e]:[s]}),c=Jr(C0,r.validateMessages);l.messages(c);let u=[];try{await Promise.resolve(l.validate({[e]:t},{...r}))}catch(m){m.errors&&(u=m.errors.map(({message:p},g)=>{const h=p===Hm?c.default:p;return i.isValidElement(h)?i.cloneElement(h,{key:`error_${g}`}):h}))}if(!u.length&&a&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((p,g)=>cc(`${e}.${g}`,p,a,r,o)))).reduce((p,g)=>[...p,...g],[]);const d={...n,name:e,enum:(n.enum||[]).join(", "),...o};return u.map(m=>typeof m=="string"?EE(m,d):m)}function IE(e,t,n,r,o,s){const a=e.join("."),l=n.map((u,d)=>{const f=u.validator,m={...u,ruleIndex:d};return f&&(m.validator=(p,g,h)=>{let b=!1;const y=f(p,g,(...v)=>{Promise.resolve().then(()=>{Pt(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||h(...v)})});b=y&&typeof y.then=="function"&&typeof y.catch=="function",Pt(b,"`callback` is deprecated. Please return a promise instead."),b&&y.then(()=>{h()}).catch(v=>{h(v||" ")})}),m}).sort(({warningOnly:u,ruleIndex:d},{warningOnly:f,ruleIndex:m})=>!!u==!!f?d-m:u?1:-1);let c;if(o===!0)c=new Promise(async(u,d)=>{for(let f=0;f<l.length;f+=1){const m=l[f],p=await cc(a,t,m,r,s);if(p.length){d([{errors:p,rule:m}]);return}}u([])});else{const u=l.map(d=>cc(a,t,d,r,s).then(f=>({errors:f,rule:d})));c=(o?RE(u):PE(u)).then(d=>Promise.reject(d))}return c.catch(u=>u),c}async function PE(e){return Promise.all(e).then(t=>[].concat(...t))}async function RE(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 wt(e){return sc(e)}function Dm(e,t){let n={};return t.forEach(r=>{const o=xn(e,r);n=gn(n,r,o)}),n}function ao(e,t,n=!1){return e&&e.some(r=>vi(t,r,n))}function vi(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,o)=>e[o]===r)}function ME(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 a=e[s],l=t[s];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function NE(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function Fm(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}function uc(){return uc=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},uc.apply(this,arguments)}const gr=[],To=[];function Aa(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}class S0 extends i.Component{constructor(n){super(n);le(this,"state",{resetCount:0});le(this,"cancelRegisterFunc",null);le(this,"mounted",!1);le(this,"touched",!1);le(this,"dirty",!1);le(this,"validatePromise");le(this,"prevValidating");le(this,"errors",gr);le(this,"warnings",To);le(this,"cancelRegister",()=>{const{preserve:n,isListField:r,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,wt(o)),this.cancelRegisterFunc=null});le(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:o=[]}=r;return n!==void 0?[...o,...n]:[]});le(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(o=>typeof o=="function"?o(r):o)});le(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});le(this,"metaCache",null);le(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const o={...this.getMeta(),destroy:n};ar(this.metaCache,o)||r(o),this.metaCache=o}else this.metaCache=null});le(this,"onStoreChange",(n,r,o)=>{const{shouldUpdate:s,dependencies:a=[],onReset:l}=this.props,{store:c}=o,u=this.getNamePath(),d=this.getValue(n),f=this.getValue(c),m=r&&ao(r,u);switch(o.type==="valueUpdate"&&o.source==="external"&&!ar(d,f)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=gr,this.warnings=To,this.triggerMetaEvent()),o.type){case"reset":if(!r||m){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=gr,this.warnings=To,this.triggerMetaEvent(),l==null||l(),this.refresh();return}break;case"remove":{if(s&&Aa(s,n,c,d,f,o)){this.reRender();return}break}case"setField":{const{data:p}=o;if(m){"touched"in p&&(this.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(this.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(this.errors=p.errors||gr),"warnings"in p&&(this.warnings=p.warnings||To),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in p&&ao(r,u,!0)){this.reRender();return}if(s&&!u.length&&Aa(s,n,c,d,f,o)){this.reRender();return}break}case"dependenciesUpdate":{if(a.map(wt).some(g=>ao(o.relatedFields,g))){this.reRender();return}break}default:if(m||(!a.length||u.length||s)&&Aa(s,n,c,d,f,o)){this.reRender();return}break}s===!0&&this.reRender()});le(this,"validateRules",n=>{const r=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:a=!1}=n||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:c=!1,messageVariables:u,validateDebounce:d}=this.props;let f=this.getRules();if(s&&(f=f.filter(p=>p).filter(p=>{const{validateTrigger:g}=p;return g?sc(g).includes(s):!0})),d&&s&&(await new Promise(p=>{setTimeout(p,d)}),this.validatePromise!==l))return[];const m=IE(r,o,f,n,c,u);return m.catch(p=>p).then((p=gr)=>{var g;if(this.validatePromise===l){this.validatePromise=null;const h=[],b=[];(g=p.forEach)==null||g.call(p,({rule:{warningOnly:$},errors:y=gr})=>{$?b.push(...y):h.push(...y)}),this.errors=h,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),m});return a||(this.validatePromise=l,this.dirty=!0,this.errors=gr,this.warnings=To,this.triggerMetaEvent(),this.reRender()),l});le(this,"isFieldValidating",()=>!!this.validatePromise);le(this,"isFieldTouched",()=>this.touched);le(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(Sr);return r(this.getNamePath())!==void 0});le(this,"getErrors",()=>this.errors);le(this,"getWarnings",()=>this.warnings);le(this,"isListField",()=>this.props.isListField);le(this,"isList",()=>this.props.isList);le(this,"isPreserve",()=>this.props.preserve);le(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}));le(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=Vt(n);return r.length!==1||!i.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});le(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,o=this.getNamePath();return xn(n||r(!0),o)});le(this,"getControlled",(n={})=>{const{name:r,trigger:o="onChange",validateTrigger:s,getValueFromEvent:a,normalize:l,valuePropName:c="value",getValueProps:u,fieldContext:d}=this.props,f=s!==void 0?s:d.validateTrigger,m=this.getNamePath(),{getInternalHooks:p,getFieldsValue:g}=d,{dispatch:h}=p(Sr),b=this.getValue(),$=u||(x=>({[c]:x})),y=n[o],v=r!==void 0?$(b):{},C={...n,...v};return C[o]=(...x)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let w;a?w=a(...x):w=NE(c,...x),l&&(w=l(w,b,g(!0))),w!==b&&h({type:"updateValue",namePath:m,value:w}),y&&y(...x)},sc(f||[]).forEach(x=>{const w=C[x];C[x]=(...I)=>{w&&w(...I);const{rules:E}=this.props;E&&E.length&&h({type:"validateField",namePath:m,triggerName:x})}}),C});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:o}=r(Sr);o(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:o}=r,{registerField:s}=o(Sr);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 a;return s?a=o:i.isValidElement(o)?a=i.cloneElement(o,this.getControlled(o.props)):(Pt(!o,"`children` of Field is not validate ReactElement."),a=o),i.createElement(i.Fragment,{key:n},a)}}le(S0,"contextType",fo);function x0({name:e,...t}){const n=i.useContext(fo),r=i.useContext(bi),o=e!==void 0?wt(e):void 0,s=t.isListField??!!r;let a="keep";return s||(a=`_${(o||[]).join("_")}`),i.createElement(S0,uc({key:a,name:o,isListField:s},t,{fieldContext:n}))}function TE({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:s}){const a=i.useContext(fo),l=i.useContext(bi),u=i.useRef({keys:[],id:0}).current,d=i.useMemo(()=>[...wt(a.prefixName)||[],...wt(e)],[a.prefixName,e]),f=i.useMemo(()=>({...a,prefixName:d}),[a,d]),m=i.useMemo(()=>({getKey:g=>{const h=d.length,b=g[h];return[u.keys[b],g.slice(h+1)]}}),[u,d]);if(typeof n!="function")return Pt(!1,"Form.List only accepts function as children."),null;const p=(g,h,{source:b})=>b==="internal"?!1:g!==h;return i.createElement(bi.Provider,{value:m},i.createElement(fo.Provider,{value:f},i.createElement(x0,{name:[],shouldUpdate:p,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:s??!!l},({value:g=[],onChange:h},b)=>{const{getFieldValue:$}=a,y=()=>$(d||[])||[],v={add:(S,x)=>{const w=y();x>=0&&x<=w.length?(u.keys=[...u.keys.slice(0,x),u.id,...u.keys.slice(x)],h([...w.slice(0,x),S,...w.slice(x)])):(u.keys=[...u.keys,u.id],h([...w,S])),u.id+=1},remove:S=>{const x=y(),w=new Set(Array.isArray(S)?S:[S]);w.size<=0||(u.keys=u.keys.filter((I,E)=>!w.has(E)),h(x.filter((I,E)=>!w.has(E))))},move(S,x){if(S===x)return;const w=y();S<0||S>=w.length||x<0||x>=w.length||(u.keys=Fm(u.keys,S,x),h(Fm(w,S,x)))}};let C=g||[];return Array.isArray(C)||(C=[]),n(C.map((S,x)=>{let w=u.keys[x];return w===void 0&&(u.keys[x]=u.id,w=u.keys[x],u.id+=1),{name:x,key:w,isListField:!0}}),v,b)})))}function OE(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,s)=>{e.forEach((a,l)=>{a.catch(c=>(t=!0,c)).then(c=>{n-=1,r[l]=c,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}const dc="__@field_split__";function Vs(e){return e.map(t=>`${typeof t}:${t}`).join(dc)}class jr{constructor(){le(this,"kvs",new Map)}set(t,n){this.kvs.set(Vs(t),n)}get(t){return this.kvs.get(Vs(t))}getAsPrefix(t){const n=Vs(t),r=n+dc,o=[],s=this.kvs.get(n);return s!==void 0&&o.push(s),this.kvs.forEach((a,l)=>{l.startsWith(r)&&o.push(a)}),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(Vs(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const o=n.split(dc);return t({key:o.map(s=>{const[,a,l]=s.match(/^([^:]*):(.*)$/);return a==="number"?Number(l):l}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const AE=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class zE{constructor(t){le(this,"namePathList",[]);le(this,"taskId",0);le(this,"watcherList",new Set);le(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=>!vi(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;AE(()=>{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=[]}})}}class BE{constructor(t){le(this,"formHooked",!1);le(this,"forceRootUpdate");le(this,"subscribable",!0);le(this,"store",{});le(this,"fieldEntities",[]);le(this,"initialValues",{});le(this,"callbacks",{});le(this,"validateMessages",null);le(this,"preserve",null);le(this,"lastValidatePromise",null);le(this,"watcherCenter",new zE(this));le(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}));le(this,"getInternalHooks",t=>t===Sr?(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}):(Pt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));le(this,"useSubscribe",t=>{this.subscribable=t});le(this,"prevWithoutPreserves",null);le(this,"setInitialValues",(t,n)=>{var r;if(this.initialValues=t||{},n){let o=Jr(t,this.store);(r=this.prevWithoutPreserves)==null||r.map(({key:s})=>{o=gn(o,s,xn(t,s))}),this.prevWithoutPreserves=null,this.updateStore(o)}});le(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new jr;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});le(this,"getInitialValue",t=>{const n=xn(this.initialValues,t);return t.length?Jr(n):n});le(this,"setCallbacks",t=>{this.callbacks=t});le(this,"setValidateMessages",t=>{this.validateMessages=t});le(this,"setPreserve",t=>{this.preserve=t});le(this,"registerWatch",t=>this.watcherCenter.register(t));le(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});le(this,"timeoutId",null);le(this,"warningUnhooked",()=>{});le(this,"updateStore",t=>{this.store=t});le(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);le(this,"getFieldsMap",(t=!1)=>{const n=new jr;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r)}),n});le(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(o=>{const s=wt(o),a=r.getAsPrefix(s);return a.length?a:[{INVALIDATE_NAME_PATH:s}]}):t.map(o=>{const s=wt(o);return r.get(s)||{INVALIDATE_NAME_PATH:wt(o)}})});le(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),a=[],l=[];s.forEach(u=>{var f;const d=u.INVALIDATE_NAME_PATH||u.getNamePath();if((f=u.isList)!=null&&f.call(u)){l.push(d);return}if(!o)a.push(d);else{const m="getMeta"in u?u.getMeta():null;o(m)&&a.push(d)}});let c=Dm(this.store,a.map(wt));return l.forEach(u=>{xn(c,u)||(c=gn(c,u,[]))}),c});le(this,"getFieldValue",t=>{this.warningUnhooked();const n=wt(t);return xn(this.store,n)});le(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:wt(t[o]),errors:[],warnings:[]})));le(this,"getFieldError",t=>{this.warningUnhooked();const n=wt(t);return this.getFieldsError([n])[0].errors});le(this,"getFieldWarning",t=>{this.warningUnhooked();const n=wt(t);return this.getFieldsError([n])[0].warnings});le(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(wt),s=!1):(o=null,s=n):(o=n.map(wt),s=r);const a=this.getFieldEntities(!0),l=f=>f.isFieldTouched();if(!o)return s?a.every(f=>l(f)||f.isList()):a.some(l);const c=new jr;o.forEach(f=>{c.set(f,[])}),a.forEach(f=>{const m=f.getNamePath();o.forEach(p=>{p.every((g,h)=>m[h]===g)&&c.update(p,g=>[...g,f])})});const u=f=>f.some(l),d=c.map(({value:f})=>f);return s?d.every(u):d.some(u)});le(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));le(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(wt);return n.some(o=>{const s=o.getNamePath();return ao(r,s)&&o.isFieldValidating()})});le(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));le(this,"resetWithFieldInitialValue",(t={})=>{const n=new jr,r=this.getFieldEntities(!0);r.forEach(a=>{const{initialValue:l}=a.props,c=a.getNamePath();if(l!==void 0){const u=n.get(c)||new Set;u.add({entity:a,value:l}),n.set(c,u)}});const o=a=>{a.forEach(l=>{const{initialValue:c}=l.props;if(c!==void 0){const u=l.getNamePath();if(this.getInitialValue(u)!==void 0)Pt(!1,`Form already set 'initialValues' with path '${u.join(".")}'. Field can not overwrite it.`);else{const f=n.get(u);if(f&&f.size>1)Pt(!1,`Multiple Field with path '${u.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(f){const m=this.getFieldValue(u);!l.isListField()&&(!t.skipExist||m===void 0)&&this.updateStore(gn(this.store,u,[...f][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(a=>{const l=n.get(a);l&&s.push(...[...l].map(c=>c.entity))})):s=r,o(s)});le(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(Jr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(wt);r.forEach(o=>{const s=this.getInitialValue(o);this.updateStore(gn(this.store,o,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});le(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:s,...a}=o,l=wt(s);r.push(l),"value"in a&&this.updateStore(gn(this.store,l,a.value)),this.notifyObservers(n,[l],{type:"setField",data:o})}),this.notifyWatch(r)});le(this,"getFields",()=>this.getFieldEntities(!0).map(r=>{const o=r.getNamePath(),a={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(a,"originRCField",{value:!0}),a}));le(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();xn(this.store,r)===void 0&&this.updateStore(gn(this.store,r,n))}});le(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);le(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(a=>a!==t),!this.isMergedPreserve(o)&&(!r||s.length>1)){const a=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==a&&this.fieldEntities.every(l=>!vi(l.getNamePath(),n))){const l=this.store;this.updateStore(gn(l,n,a,!0)),this.notifyObservers(l,[n],{type:"remove"}),this.triggerDependenciesUpdate(l,n)}}this.notifyWatch([n])}});le(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}}});le(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()});le(this,"triggerDependenciesUpdate",(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r});le(this,"updateValue",(t,n)=>{const r=wt(t),o=this.store;this.updateStore(gn(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(o,r),{onValuesChange:a}=this.callbacks;if(a){const l=this.getFieldsMap(!0).get(r),c=Dm(this.store,[r]),u=this.getFieldsValue(),d=vg([u,c],{prepareArray:f=>l!=null&&l.isList()?[]:[...f||[]]});a(c,d)}this.triggerOnFieldsChange([r,...s])});le(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=Jr(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});le(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});le(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],o=new jr;this.getFieldEntities().forEach(a=>{const{dependencies:l}=a.props;(l||[]).forEach(c=>{const u=wt(c);o.update(u,(d=new Set)=>(d.add(a),d))})});const s=a=>{(o.get(a)||new Set).forEach(c=>{if(!n.has(c)){n.add(c);const u=c.getNamePath();c.isFieldDirty()&&u.length&&(r.push(u),s(u))}})};return s(t),r});le(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const a=new jr;n.forEach(({name:l,errors:c})=>{a.set(l,c)}),o.forEach(l=>{l.errors=a.get(l.name)||l.errors})}const s=o.filter(({name:a})=>ao(t,a));s.length&&r(s,o)}});le(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,a=s?r.map(wt):[],l=[...a],c=[],u=String(Date.now()),d=new Set,{recursive:f,dirty:m}=o||{};this.getFieldEntities(!0).forEach(b=>{const $=b.getNamePath();if(s||((!b.isList()||!a.some(y=>vi(y,$,!0)))&&l.push($),a.push($)),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())&&(d.add($.join(u)),!s||ao(a,$,f))){const y=b.validateRules({validateMessages:{...C0,...this.validateMessages},...o});c.push(y.then(()=>({name:$,errors:[],warnings:[]})).catch(v=>{var x;const C=[],S=[];return(x=v.forEach)==null||x.call(v,({rule:{warningOnly:w},errors:I})=>{w?S.push(...I):C.push(...I)}),C.length?Promise.reject({name:$,errors:C,warnings:S}):{name:$,errors:C,warnings:S}}))}});const p=OE(c);this.lastValidatePromise=p,p.catch(b=>b).then(b=>{const $=b.map(({name:y})=>y);this.notifyObservers(this.store,$,{type:"validateFinish"}),this.triggerOnFieldsChange($,b)});const g=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(b=>{var v,C;const $=b.filter(S=>S&&S.errors.length),y=(C=(v=$[0])==null?void 0:v.errors)==null?void 0:C[0];return Promise.reject({message:y,values:this.getFieldsValue(a),errorFields:$,outOfDate:this.lastValidatePromise!==p})});g.catch(b=>b);const h=a.filter(b=>d.has(b.join(u)));return this.triggerOnFieldsChange(h),g});le(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 w0(e){const t=i.useRef(null),[,n]=i.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},o=new BE(r);t.current=o.getForm()}return[t.current]}const fc=i.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),LE=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=i.useContext(fc),s=i.useRef({});return i.createElement(fc.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(a,l)=>{t&&t(a,{changedFields:l,forms:s.current}),o.triggerFormChange(a,l)},triggerFormFinish:(a,l)=>{n&&n(a,{values:l,forms:s.current}),o.triggerFormFinish(a,l)},registerForm:(a,l)=>{a&&(s.current={...s.current,[a]:l}),o.registerForm(a,l)},unregisterForm:a=>{const l={...s.current};delete l[a],s.current=l,o.unregisterForm(a)}}},r)};function mc(){return mc=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},mc.apply(this,arguments)}const HE=({name:e,initialValues:t,fields:n,form:r,preserve:o,children:s,component:a="form",validateMessages:l,validateTrigger:c="onChange",onValuesChange:u,onFieldsChange:d,onFinish:f,onFinishFailed:m,clearOnDestroy:p,...g},h)=>{const b=i.useRef(null),$=i.useContext(fc),[y]=w0(r),{useSubscribe:v,setInitialValues:C,setCallbacks:S,setValidateMessages:x,setPreserve:w,destroyForm:I}=y.getInternalHooks(Sr);i.useImperativeHandle(h,()=>({...y,nativeElement:b.current})),i.useEffect(()=>($.registerForm(e,y),()=>{$.unregisterForm(e)}),[$,y,e]),x({...$.validateMessages,...l}),S({onValuesChange:u,onFieldsChange:(T,...F)=>{$.triggerFormChange(e,T),d&&d(T,...F)},onFinish:T=>{$.triggerFormFinish(e,T),f&&f(T)},onFinishFailed:m}),w(o);const E=i.useRef(null);C(t,!E.current),E.current||(E.current=!0),i.useEffect(()=>()=>I(p),[]);let R;const P=typeof s=="function";if(P){const T=y.getFieldsValue(!0);R=s(T,y)}else R=s;v(!P);const M=i.useRef(null);i.useEffect(()=>{ME(M.current||[],n||[])||y.setFields(n||[]),M.current=n},[n,y]);const O=i.useMemo(()=>({...y,validateTrigger:c}),[y,c]),A=i.createElement(bi.Provider,{value:null},i.createElement(fo.Provider,{value:O},R));return a===!1?A:i.createElement(a,mc({},g,{ref:b,onSubmit:T=>{T.preventDefault(),T.stopPropagation(),y.submit()},onReset:T=>{var F;T.preventDefault(),y.resetFields(),(F=g.onReset)==null||F.call(g,T)}}),A)};function za(e){try{return JSON.stringify(e)}catch{return Math.random()}}function DE(...e){const[t,n={}]=e,r=Kw(n)?{form:n}:n,o=r.form,[s,a]=i.useState(()=>typeof t=="function"?t({}):void 0),l=i.useMemo(()=>za(s),[s]),c=i.useRef(l);c.current=l;const u=i.useContext(fo),d=o||u,f=d&&d._init,{getFieldsValue:m,getInternalHooks:p}=d,{registerWatch:g}=p(Sr),h=We(($,y)=>{const v=r.preserve?y??m(!0):$??m(),C=typeof t=="function"?t(v):xn(v,wt(t));za(s)!==za(C)&&a(C)}),b=typeof t=="function"?t:JSON.stringify(t);return i.useEffect(()=>{f&&h()},[f,b]),i.useEffect(()=>f?g((y,v)=>{h(y,v)}):void 0,[f]),s}const FE=i.forwardRef(HE),ps=FE;ps.FormProvider=LE;ps.Field=x0;ps.List=TE;ps.useForm=w0;ps.useWatch=DE;const $n=i.createContext({}),_E=({children:e,status:t,override:n})=>{const r=i.useContext($n),o=i.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return i.createElement($n.Provider,{value:o},e)},kE=i.createContext(void 0),ur=e=>{const{space:t,form:n,children:r}=e;if(!vn(r))return null;let o=r;return n&&(o=N.createElement(_E,{override:!0,status:!0},o)),t&&(o=N.createElement(JS,null,o)),o},VE=e=>{if(Ot()&&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 _m(e,t){return VE(e)}const WE=()=>Ot()&&window.document.documentElement;function jE(e,t,n){return i.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const ji=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:s}=e,a=z({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=z({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),c=i.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return i.createElement("span",{className:z(t,a,l,n),style:{...c,...r}})},qE=new et("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),hd=e=>({height:e,lineHeight:K(e)}),ir=e=>({width:e,...hd(e)}),GE=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:qE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ba=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...hd(e)}),XE=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...ir(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...ir(o)},[`${t}${t}-sm`]:{...ir(s)}}},UE=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:n,...Ba(t,l)},[`${r}-lg`]:{...Ba(o,l)},[`${r}-sm`]:{...Ba(s,l)}}},E0=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...ir(o(r).mul(2).equal())}},KE=e=>({[e.skeletonNodeCls]:{...E0(e)}}),YE=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...E0(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...ir(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},La=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ha=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...hd(e)}),QE=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...Ha(r,l)},...La(e,r,n),[`${n}-lg`]:{...Ha(o,l)},...La(e,o,`${n}-lg`),[`${n}-sm`]:{...Ha(s,l)},...La(e,s,`${n}-sm`)}},ZE=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:s,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:c,controlHeight:u,controlHeightLG:d,controlHeightSM:f,gradientFromColor:m,padding:p,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:$,paragraphLiHeight:y,controlHeightXS:v,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:m,...ir(u)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...ir(d)},[`${n}-sm`]:{...ir(f)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:m,borderRadius:$,[`+ ${o}`]:{marginBlockStart:f}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:m,borderRadius:$,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...QE(e),...XE(e),...UE(e),...KE(e),...YE(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${o} > li,
|
||
${n},
|
||
${s},
|
||
${a},
|
||
${l},
|
||
${c}
|
||
`]:{...GE(e)}}}},JE=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},gs=at("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=rt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return ZE(r)},JE,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),e2=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,style:a,styles:l,shape:c="circle",size:u="default",...d}=e,{getPrefixCls:f}=i.useContext(je),m=f("skeleton",t),[p,g]=gs(m),h=z(m,`${m}-element`,{[`${m}-active`]:s},r==null?void 0:r.root,n,o,p,g);return i.createElement("div",{className:h,style:l==null?void 0:l.root},i.createElement(ji,{prefixCls:`${m}-avatar`,className:r==null?void 0:r.content,style:{...l==null?void 0:l.content,...a},shape:c,size:u,...d}))},t2=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:s,style:a,styles:l,block:c=!1,size:u="default",...d}=e,{getPrefixCls:f}=i.useContext(je),m=f("skeleton",t),[p,g]=gs(m),h=z(m,`${m}-element`,{[`${m}-active`]:s,[`${m}-block`]:c},o==null?void 0:o.root,n,r,p,g);return i.createElement("div",{className:h,style:l==null?void 0:l.root},i.createElement(ji,{prefixCls:`${m}-button`,className:o==null?void 0:o.content,style:{...l==null?void 0:l.content,...a},size:u,...d}))},I0=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:s,style:a,styles:l,active:c,children:u}=e,{getPrefixCls:d}=i.useContext(je),f=d("skeleton",t),[m,p]=gs(f),g=z(f,`${f}-element`,{[`${f}-active`]:c},m,r==null?void 0:r.root,n,o,p);return i.createElement("div",{className:g,style:l==null?void 0:l.root},i.createElement("div",{className:z(r==null?void 0:r.content,s||`${f}-node`),style:{...l==null?void 0:l.content,...a}},u))},n2=e=>{const{getPrefixCls:t}=i.useContext(je),n=t("skeleton",e.prefixCls);return i.createElement(I0,{...e,internalClassName:`${n}-image`},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},r2=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,block:a,style:l,styles:c,size:u="default",...d}=e,{getPrefixCls:f}=i.useContext(je),m=f("skeleton",t),[p,g]=gs(m),h=z(m,`${m}-element`,{[`${m}-active`]:s,[`${m}-block`]:a},r==null?void 0:r.root,n,o,p,g);return i.createElement("div",{className:h,style:c==null?void 0:c.root},i.createElement(ji,{prefixCls:`${m}-input`,className:r==null?void 0:r.content,style:{...c==null?void 0:c.content,...l},size:u,...d}))},o2=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},s2=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,s=Array.from({length:o}).map((a,l)=>i.createElement("li",{key:l,style:{width:o2(l,e)}}));return i.createElement("ul",{className:z(t,n),style:r},s)},i2=({prefixCls:e,className:t,width:n,style:r})=>i.createElement("h3",{className:z(e,t),style:{width:n,...r}});function Da(e){return e&&typeof e=="object"?e:{}}function a2(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function l2(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function c2(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const $o=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,classNames:s,style:a,styles:l,children:c,avatar:u=!1,title:d=!0,paragraph:f=!0,active:m,round:p}=e,{getPrefixCls:g,direction:h,className:b,style:$,classNames:y,styles:v}=dt("skeleton"),C=g("skeleton",t),[S,x]=gs(C),w={...e,avatar:u,title:d,paragraph:f},[I,E]=pt([y,s],[v,l],{props:w});if(n||!("loading"in e)){const R=!!u,P=!!d,M=!!f;let O;if(R){const F={className:I.avatar,prefixCls:`${C}-avatar`,...a2(P,M),...Da(u),style:E.avatar};O=i.createElement("div",{className:z(I.header,`${C}-header`),style:E.header},i.createElement(ji,{...F}))}let A;if(P||M){let F;if(P){const L={className:I.title,prefixCls:`${C}-title`,...l2(R,M),...Da(d),style:E.title};F=i.createElement(i2,{...L})}let H;if(M){const L={className:I.paragraph,prefixCls:`${C}-paragraph`,...c2(R,P),...Da(f),style:E.paragraph};H=i.createElement(s2,{...L})}A=i.createElement("div",{className:z(I.section,`${C}-section`),style:E.section},F,H)}const T=z(C,{[`${C}-with-avatar`]:R,[`${C}-active`]:m,[`${C}-rtl`]:h==="rtl",[`${C}-round`]:p},I.root,b,r,o,S,x);return i.createElement("div",{className:T,style:{...E.root,...$,...a}},O,A)}return c??null};$o.Button=t2;$o.Avatar=e2;$o.Input=r2;$o.Image=n2;$o.Node=I0;function km(){}const u2=i.createContext({add:km,remove:km});function d2(e){const t=i.useContext(u2),n=i.useRef(null);return We(o=>{if(o){const s=e?o.querySelector(e):o;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const Vm=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=i.useContext(fs);return N.createElement(On,{onClick:n,...e},t)},Wm=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=i.useContext(fs);return N.createElement(On,{...nd(n),loading:e,onClick:o,...t},r)};function P0(e,t){return N.createElement("span",{className:`${e}-close-x`},t||N.createElement(Br,{className:`${e}-close-icon`}))}const R0=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:s,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=dn("Modal",gh()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p=N.useMemo(()=>({confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:s,onCancel:a}),[o,l,c,f,m,n,s,a]);let g;return typeof u=="function"||typeof u>"u"?(g=N.createElement(N.Fragment,null,N.createElement(Vm,null),N.createElement(Wm,null)),typeof u=="function"&&(g=u(g,{OkBtn:Wm,CancelBtn:Vm})),g=N.createElement(h0,{value:p},g)):g=u,N.createElement(zh,{disabled:!1},g)},f2=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},m2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},p2=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[s,a]=At(o,"grid"),[,l]=At(o,"col"),c={};for(let u=r;u>=0;u--)u===0?(c[`${n}${t}-${u}`]={display:"none"},c[`${n}-push-${u}`]={insetInlineStart:"auto"},c[`${n}-pull-${u}`]={insetInlineEnd:"auto"},c[`${n}${t}-push-${u}`]={insetInlineStart:"auto"},c[`${n}${t}-pull-${u}`]={insetInlineEnd:"auto"},c[`${n}${t}-offset-${u}`]={marginInlineStart:0},c[`${n}${t}-order-${u}`]={order:0}):(c[`${n}${t}-${u}`]=[{[s("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${u/r*100}%`,maxWidth:`${u/r*100}%`}],c[`${n}${t}-push-${u}`]={insetInlineStart:`${u/r*100}%`},c[`${n}${t}-pull-${u}`]={insetInlineEnd:`${u/r*100}%`},c[`${n}${t}-offset-${u}`]={marginInlineStart:`${u/r*100}%`},c[`${n}${t}-order-${u}`]={order:u});return c[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},c},pc=(e,t)=>p2(e,t),g2=(e,t,n)=>({[`@media (min-width: ${K(t)})`]:{...pc(e,n)}}),h2=()=>({}),b2=()=>({});at("Grid",f2,h2);const M0=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});at("Grid",e=>{const t=rt(e,{gridColumns:24}),n=M0(t);return delete n.xs,[m2(t),pc(t,""),pc(t,"-xs"),Object.keys(n).map(r=>g2(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},b2);function jm(e){return{position:e,inset:0}}const v2=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...jm("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...jm("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:d0(e)}]},y2=e=>{const{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${K(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Ct(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${K(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...ho(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:K(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...bn(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${K(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
||
${t}-body,
|
||
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},$2=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},C2=e=>{const{componentCls:t}=e,n=M0(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,s=Object.keys(r).map(a=>({[`@media (min-width: ${K(r[a])})`]:{width:`var(${o}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(xt(Object.keys(n).map((a,l)=>{const c=Object.keys(n)[l-1];return c?{[`${o}${a}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],xt(s))}}},N0=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return rt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},T0=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${K(e.paddingMD)} ${K(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${K(e.padding)} ${K(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${K(e.paddingXS)} ${K(e.padding)}`:0,footerBorderTop:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${K(e.padding*2)} ${K(e.padding*2)} ${K(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),O0=at("Modal",e=>{const t=N0(e);return[y2(t),$2(t),v2(t),ds(t,"zoom"),C2(t)]},T0,{unitless:{titleLineHeight:!0}});let gc;const S2=e=>{gc={x:e.pageX,y:e.pageY},setTimeout(()=>{gc=null},100)};WE()&&document.documentElement.addEventListener("click",S2,!0);const A0=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:s,centered:a,getContainer:l,style:c,width:u=520,footer:d,classNames:f,styles:m,children:p,loading:g,confirmLoading:h,zIndex:b,mousePosition:$,onOk:y,onCancel:v,okButtonProps:C,cancelButtonProps:S,destroyOnHidden:x,destroyOnClose:w,panelRef:I=null,closable:E,mask:R,modalRender:P,maskClosable:M,focusTriggerAfterClose:O,focusable:A,...T}=e,{getPopupContainer:F,getPrefixCls:H,direction:L,className:B,style:D,classNames:k,styles:W,centered:_,cancelButtonProps:X,okButtonProps:U,mask:j}=dt("modal"),{modal:V}=i.useContext(je),[G,te]=i.useMemo(()=>typeof E=="boolean"?[void 0,void 0]:[E==null?void 0:E.afterClose,E==null?void 0:E.onClose],[E]),ee=H("modal",t),ne=H(),[Y,se,ue]=PC(R,j,ee,M),q=jE(A,Y,O),oe=qe=>{h||(v==null||v(qe),te==null||te())},Z=qe=>{y==null||y(qe),te==null||te()},J=_t(ee),[ae,we]=O0(ee,J),de=z(s,{[`${ee}-centered`]:a??_,[`${ee}-wrap-rtl`]:L==="rtl"}),ge=d!==null&&!g?i.createElement(R0,{...e,okButtonProps:{...U,...C},onOk:Z,cancelButtonProps:{...X,...S},onCancel:oe}):null,[be,me,Ne,Ae]=EC(ci(e),ci(V),{closable:!0,closeIcon:i.createElement(Br,{className:`${ee}-close-icon`}),closeIconRender:qe=>P0(ee,qe)}),Ee=be?{disabled:Ne,closeIcon:me,afterClose:G,...Ae}:!1,ze=P?qe=>i.createElement("div",{className:`${ee}-render`},P(qe)):void 0,Re=`.${ee}-${P?"render":"container"}`,ve=d2(Re),fe=Ft(I,ve),[Ce,He]=ls("Modal",b),Ie={...e,width:u,panelRef:I,focusTriggerAfterClose:q.focusTriggerAfterClose,focusable:q,mask:Y,maskClosable:ue,zIndex:Ce},[re,$e]=pt([k,f,se],[W,m],{props:Ie}),[ke,De]=i.useMemo(()=>u&&typeof u=="object"?[void 0,u]:[u,void 0],[u]),ot=i.useMemo(()=>{const qe={};return De&&Object.keys(De).forEach(ft=>{const Qe=De[ft];Qe!==void 0&&(qe[`--${ee}-${ft}-width`]=typeof Qe=="number"?`${Qe}px`:Qe)}),qe},[ee,De]);return i.createElement(ur,{form:!0,space:!0},i.createElement(_i.Provider,{value:He},i.createElement(Uw,{width:ke,...T,zIndex:Ce,getContainer:l===void 0?F:l,prefixCls:ee,rootClassName:z(ae,r,we,J,re.root),rootStyle:$e.root,footer:ge,visible:o,mousePosition:$??gc,onClose:oe,closable:Ee,closeIcon:me,transitionName:lr(ne,"zoom",e.transitionName),maskTransitionName:lr(ne,"fade",e.maskTransitionName),mask:Y,maskClosable:ue,className:z(ae,n,B),style:{...D,...c,...ot},classNames:{...re,wrapper:z(re.wrapper,de)},styles:$e,panelRef:fe,destroyOnHidden:x??w,modalRender:ze,focusTriggerAfterClose:q.focusTriggerAfterClose,focusTrap:q.trap},g?i.createElement($o,{active:!0,title:!1,paragraph:{rows:4},className:`${ee}-body-skeleton`}):p)))},x2=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:s,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:{...li()},[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${K(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${K(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-container`]:{color:e.colorText,fontSize:s,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
||
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},w2=Ug(["Modal","confirm"],e=>{const t=N0(e);return x2(t)},T0,{order:-1e3}),z0=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:s,type:a,okCancel:l,footer:c,locale:u,autoFocusButton:d,focusable:f,...m}=e;let p=n;if(!n&&n!==null)switch(a){case"info":p=i.createElement(Gu,null);break;case"success":p=i.createElement(qu,null);break;case"error":p=i.createElement(is,null);break;default:p=i.createElement(as,null)}const g=l??a==="confirm",h=i.useMemo(()=>{const R=(f==null?void 0:f.autoFocusButton)||d;return R||R===null?R:"ok"},[d,f==null?void 0:f.autoFocusButton]),[b]=dn("Modal"),$=u||b,y=r||(g?$==null?void 0:$.okText:$==null?void 0:$.justOkText),v=o||($==null?void 0:$.cancelText),{closable:C}=m,{onClose:S}=C&&typeof C=="object"?C:{},x=i.useMemo(()=>({autoFocusButton:h,cancelTextLocale:v,okTextLocale:y,mergedOkCancel:g,onClose:S,...m}),[h,v,y,g,S,m]),w=i.createElement(i.Fragment,null,i.createElement(xm,null),i.createElement(wm,null)),I=e.title!==void 0&&e.title!==null,E=`${s}-body`;return i.createElement("div",{className:`${s}-body-wrapper`},i.createElement("div",{className:z(E,{[`${E}-has-title`]:I})},p,i.createElement("div",{className:`${s}-paragraph`},I&&i.createElement("span",{className:`${s}-title`},e.title),i.createElement("div",{className:`${s}-content`},e.content))),c===void 0||typeof c=="function"?i.createElement(h0,{value:x},i.createElement("div",{className:`${s}-btns`},typeof c=="function"?c(w,{OkBtn:wm,CancelBtn:xm}):w)):c,i.createElement(w2,{prefixCls:t}))},E2=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:s,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m,mask:p,maskClosable:g,okButtonProps:h,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:y}=dt("modal"),v=`${s}-confirm`,C=e.width||416,S=e.style||{},x=z(v,`${v}-${e.type}`,{[`${v}-rtl`]:o==="rtl"},e.className),w=i.useMemo(()=>{const R=jl(p,g);return R.closable??(R.closable=!1),R},[p,g]),[,I]=jt(),E=i.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+Yu,[n,I]);return i.createElement(A0,{...e,className:x,wrapClassName:z({[`${v}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:lr(l||"","zoom",e.transitionName),maskTransitionName:lr(l||"","fade",e.maskTransitionName),mask:w,style:S,styles:{body:c,mask:r,...f},width:C,zIndex:E,closable:u},i.createElement(z0,{...e,confirmPrefixCls:v,okButtonProps:{...y,...h},cancelButtonProps:{...$,...b}}))},B0=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return i.createElement(An,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},i.createElement(E2,{...e}))},xr=[];let L0="";function H0(){return L0}const I2=e=>{var u;const{prefixCls:t,getContainer:n,direction:r}=e,o=gh(),s=i.useContext(je),a=H0()||s.getPrefixCls(),l=t||`${a}-modal`;let c=n;return c===!1&&(c=void 0),N.createElement(B0,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:((u=s.locale)==null?void 0:u.Modal)??o,getContainer:c})};function hs(e){const t=Dh(),n=document.createDocumentFragment();let r={...e,close:l,open:!0},o;function s(...u){var f;u.some(m=>m==null?void 0:m.triggerCancel)&&((f=e.onCancel)==null||f.call(e,()=>{},...u.slice(1)));for(let m=0;m<xr.length;m++)if(xr[m]===l){xr.splice(m,1);break}Kh(n).then(()=>{})}const a=u=>{clearTimeout(o),o=setTimeout(()=>{const d=t.getPrefixCls(void 0,H0()),f=t.getIconPrefixCls(),m=t.getTheme(),p=N.createElement(I2,{...u});ed(N.createElement(An,{prefixCls:d,iconPrefixCls:f,theme:m},typeof t.holderRender=="function"?t.holderRender(p):p),n)})};function l(...u){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,u)}},a(r)}function c(u){typeof u=="function"?r=u(r):r={...r,...u},a(r)}return a(r),xr.push(l),{destroy:l,update:c}}function D0(e){return{...e,type:"warning"}}function F0(e){return{...e,type:"info"}}function _0(e){return{...e,type:"success"}}function k0(e){return{...e,type:"error"}}function V0(e){return{...e,type:"confirm"}}function P2({rootPrefixCls:e}){L0=e}const R2=({afterClose:e,config:t,...n},r)=>{const[o,s]=i.useState(!0),[a,l]=i.useState(t),{direction:c,getPrefixCls:u}=i.useContext(je),d=u("modal"),f=u(),m=()=>{var b;e(),(b=a.afterClose)==null||b.call(a)},p=(...b)=>{var y;s(!1),b.some(v=>v==null?void 0:v.triggerCancel)&&((y=a.onCancel)==null||y.call(a,()=>{},...b.slice(1)))};i.useImperativeHandle(r,()=>({destroy:p,update:b=>{l($=>{const y=typeof b=="function"?b($):b;return{...$,...y}})}}));const g=a.okCancel??a.type==="confirm",[h]=dn("Modal",jn.Modal);return i.createElement(B0,{prefixCls:d,rootPrefixCls:f,...a,close:p,open:o,afterClose:m,okText:a.okText||(g?h==null?void 0:h.okText:h==null?void 0:h.justOkText),direction:a.direction||c,cancelText:a.cancelText||(h==null?void 0:h.cancelText),...n})},M2=i.forwardRef(R2);let qm=0;const N2=i.memo(i.forwardRef((e,t)=>{const[n,r]=NC();return i.useImperativeHandle(t,()=>({patchElement:r}),[r]),i.createElement(i.Fragment,null,n)}));function W0(){const e=i.useRef(null),[t,n]=i.useState([]);i.useEffect(()=>{t.length&&(xt(t).forEach(a=>{a()}),n([]))},[t]);const r=i.useCallback(s=>function(l){var h;qm+=1;const c=i.createRef();let u;const d=new Promise(b=>{u=b});let f=!1,m;const p=i.createElement(M2,{key:`modal-${qm}`,config:s(l),ref:c,afterClose:()=>{m==null||m()},isSilent:()=>f,onConfirm:b=>{u(b)}});return m=(h=e.current)==null?void 0:h.patchElement(p),m&&xr.push(m),{destroy:()=>{function b(){var $;($=c.current)==null||$.destroy()}c.current?b():n($=>[].concat(xt($),[b]))},update:b=>{function $(){var y;(y=c.current)==null||y.update(b)}c.current?$():n(y=>[].concat(xt(y),[$]))},then:b=>(f=!0,d.then(b))}},[]);return[i.useMemo(()=>({info:r(F0),success:r(_0),error:r(k0),warning:r(D0),confirm:r(V0)}),[r]),i.createElement(N2,{key:"modal-holder",ref:e})]}const T2=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,s=new et("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new et("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new et("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new et("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},O2=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],A2={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},z2=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[A2[t]]:{value:0,_skip_check_:!0}}}}},B2=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},L2=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return{...t}},H2=e=>{const{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...B2(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...L2(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...O2.map(n=>z2(e,n)).reduce((n,r)=>({...n,...r}),{})}},D2=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:s,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:p,notificationMarginEdge:g,progressBg:h,notificationProgressHeight:b,fontSize:$,lineHeight:y,width:v,notificationIconSize:C,colorText:S,colorSuccessBg:x,colorErrorBg:w,colorInfoBg:I,colorWarningBg:E,motionDurationMid:R}=e,P=`${n}-notice`;return{position:"relative",marginBottom:s,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[P]:{padding:p,width:v,maxWidth:`calc(100vw - ${K(e.calc(g).mul(2).equal())})`,lineHeight:y,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":x?{background:x}:{},"&-error":w?{background:w}:{},"&-info":I?{background:I}:{},"&-warning":E?{background:E}:{}},[`${P}-title`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${P}-description`]:{fontSize:$,color:S,marginTop:e.marginXS},[`${P}-closable ${P}-title`]:{paddingInlineEnd:e.paddingLG},[`${P}-with-icon ${P}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:o},[`${P}-with-icon ${P}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:$},[`${P}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${P}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(M=>`${M} ${R}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...bn(e)},[`${P}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${K(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:b,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:a,background:h}},[`${P}-actions`]:{float:"right",marginTop:e.marginSM}}},F2=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:s}=e,a=`${t}-notice`,l=new et("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...Ct(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:s,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:s,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:D2(e)}}]},_2=e=>({zIndexPopup:e.zIndexPopupBase+Yu+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),k2=e=>{const t=e.paddingMD,n=e.paddingLG;return rt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${K(e.paddingMD)} ${K(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},V2=at("Notification",e=>{const t=k2(e);return[F2(t),T2(t),H2(t)]},_2);function j0(e,t){return t===null||t===!1?null:t||i.createElement(Br,{className:`${e}-close-icon`})}const W2={success:qu,info:Gu,error:is,warning:as},j2=e=>{const{prefixCls:t,icon:n,type:r,title:o,description:s,actions:a,role:l="alert",styles:c,classNames:u}=e;let d=null;return n?d=i.createElement("span",{className:z(`${t}-icon`,u.icon),style:c.icon},n):r&&(d=i.createElement(W2[r]||null,{className:z(`${t}-icon`,u.icon,`${t}-icon-${r}`),style:c.icon})),i.createElement("div",{className:z({[`${t}-with-icon`]:d}),role:l},d,i.createElement("div",{className:z(`${t}-title`,u.title),style:c.title},o),s&&i.createElement("div",{className:z(`${t}-description`,u.description),style:c.description},s),a&&i.createElement("div",{className:z(`${t}-actions`,u.actions),style:c.actions},a))};function q2(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function G2(e){return{motionName:`${e}-fade`}}function X2(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}const Gm=24,U2=4.5,K2="topRight",Y2=({children:e,prefixCls:t})=>{const n=_t(t),[r,o]=V2(t,n);return N.createElement(Wh,{classNames:{list:z(r,o,n)}},e)},Q2=(e,{prefixCls:t,key:n})=>N.createElement(Y2,{prefixCls:t,key:n},e),Z2=N.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:s,maxCount:a,rtl:l,onAllRemoved:c,stack:u,duration:d=U2,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:p,getPopupContainer:g,direction:h}=dt("notification"),{notification:b}=i.useContext(je),[,$]=jt(),y=o||p("notification"),v=i.useMemo(()=>typeof d=="number"&&d>0?d:!1,[d]),C=P=>q2(P,n??Gm,r??Gm),S=()=>z({[`${y}-rtl`]:l??h==="rtl"}),x=()=>G2(y),[w,I]=jh({prefixCls:y,style:C,className:S,motion:x,closable:{closeIcon:j0(y)},duration:v,getContainer:()=>(s==null?void 0:s())||(g==null?void 0:g())||document.body,maxCount:a,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:Q2,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:$.margin}}),[E,R]=pt([b==null?void 0:b.classNames,e==null?void 0:e.classNames],[b==null?void 0:b.styles,e==null?void 0:e.styles],{props:e});return N.useImperativeHandle(t,()=>({...w,prefixCls:y,notification:b,classNames:E,styles:R})),I});function J2(e){const t=N.useRef(null),{notification:n}=N.useContext(je);return[N.useMemo(()=>{const o=c=>{if(!t.current)return;const{open:u,prefixCls:d,notification:f,classNames:m,styles:p}=t.current,g=(f==null?void 0:f.className)||{},h=(f==null?void 0:f.style)||{},b=`${d}-notice`,{title:$,message:y,description:v,icon:C,type:S,btn:x,actions:w,className:I,style:E,role:R="alert",closeIcon:P,closable:M,classNames:O={},styles:A={},...T}=c,F=$??y,H=w??x,L=j0(b,X2(P,e,f)),[B,D,,k]=bh(ci({...e||{},...c}),ci(n),{closable:!0,closeIcon:L}),W=B?{onClose:M&&typeof M=="object"?M.onClose:void 0,closeIcon:D,...k}:!1,_=rr(O,{props:c}),X=rr(A,{props:c}),U=Fi(void 0,m,_),j=Ku(p,X);return u({placement:(e==null?void 0:e.placement)??K2,...T,content:N.createElement(j2,{prefixCls:b,icon:C,type:S,title:F,description:v,actions:H,role:R,classNames:U,styles:j}),className:z({[`${b}-${S}`]:S},I,g,U.root),style:{...h,...j.root,...E},closable:W})},a={open:o,destroy:c=>{var u,d;c!==void 0?(u=t.current)==null||u.close(c):(d=t.current)==null||d.destroy()}};return["success","info","warning","error"].forEach(c=>{a[c]=u=>o({...u,type:c})}),a},[e,n]),N.createElement(Z2,{key:"notification-holder",...e,ref:t})]}function eI(e){return J2(e)}const hc=N.createContext({}),q0=N.createContext({message:{},notification:{},modal:{}}),tI=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:s}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:s,[`&${t}-rtl`]:{direction:"rtl"}}}},nI=()=>({}),rI=at("App",tI,nI),oI=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:s,notification:a,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d,className:f,style:m}=dt("app"),p=d("app",t),[g,h]=rI(p),b=z(g,p,r,o,h,{[`${p}-rtl`]:u==="rtl"}),$=i.useContext(hc),y=N.useMemo(()=>({message:{...$.message,...s},notification:{...$.notification,...a}}),[s,a,$.message,$.notification]),[v,C]=Uh(y.message),[S,x]=eI(y.notification),[w,I]=W0(),E=N.useMemo(()=>({message:v,notification:S,modal:w}),[v,S,w]),R=c===!1?N.Fragment:c,P={className:z(f,b),style:{...m,...l}};return N.createElement(q0.Provider,{value:E},N.createElement(hc.Provider,{value:y},N.createElement(R,{...c===!1?void 0:P},I,C,x,n)))},sI=()=>N.useContext(q0),iI=oI;iI.useApp=sI;function G0(e){return t=>i.createElement(An,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,{...t}))}const bd=(e,t,n,r,o)=>G0(a=>{const{prefixCls:l,style:c}=a,u=i.useRef(null),[d,f]=i.useState(0),[m,p]=i.useState(0),[g,h]=bt(!1,a.open),{getPrefixCls:b}=i.useContext(je),$=b(r||"select",l);i.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(x=>{const w=x[0].target;f(w.offsetHeight+8),p(w.offsetWidth)}),S=setInterval(()=>{var I;const x=o?`.${o($)}`:`.${$}-dropdown`,w=(I=u.current)==null?void 0:I.querySelector(x);w&&(clearInterval(S),C.observe(w))},10);return()=>{clearInterval(S),C.disconnect()}}},[$]);let y={...a,style:{...c,margin:0},open:g,getPopupContainer:()=>u.current};n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const v={paddingBottom:d,position:"relative",minWidth:m};return i.createElement("div",{ref:u,style:v},i.createElement(e,{...y}))}),aI=(e,t,n,r,o=!1,s,a)=>{const l=i.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return i.useMemo(()=>{const c=!o&&l.allowClear!==!1&&(t.length||s)&&!(a==="combobox"&&s==="");return{allowClear:c,clearIcon:c?l.clearIcon||r||"×":null}},[l,r,o,t.length,s,a])},X0=i.createContext(null);function Lr(){return i.useContext(X0)}function lI(e=250){const t=i.useRef(null),n=i.useRef(null);i.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function U0(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function cI(e,t,n,r){const o=We(s=>{if(r)return;let a=s.target;a.shadowRoot&&s.composed&&(a=s.composedPath()[0]||a),s._ori_target&&(a=s._ori_target),t&&!U0(e(),a)&&n(!1)});i.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o])}function bc(){return bc=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},bc.apply(this,arguments)}const uI=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},dI=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:s,popupElement:a,animation:l,transitionName:c,popupStyle:u,popupClassName:d,direction:f="ltr",placement:m,builtinPlacements:p,popupMatchSelectWidth:g,popupRender:h,popupAlign:b,getPopupContainer:$,empty:y,onPopupVisibleChange:v,onPopupMouseEnter:C,onPopupMouseDown:S,onPopupBlur:x,...w}=e,I=`${n}-dropdown`;let E=a;h&&(E=h(a));const R=i.useMemo(()=>p||uI(g),[p,g]),P=l?`${I}-${l}`:c,M=typeof g=="number",O=i.useMemo(()=>M?null:g===!1?"minWidth":"width",[g,M]);let A=u;M&&(A={...u,width:g});const T=i.useRef(null);return i.useImperativeHandle(t,()=>({getPopupElement:()=>{var F;return(F=T.current)==null?void 0:F.popupElement}})),i.createElement(ki,bc({},w,{showAction:v?["click"]:[],hideAction:v?["click"]:[],popupPlacement:m||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:I,popupMotion:{motionName:P},popup:i.createElement("div",{onMouseEnter:C,onMouseDown:S,onBlur:x},E),ref:T,stretch:O,popupAlign:b,popupVisible:o,getPopupContainer:$,popupClassName:z(d,{[`${I}-empty`]:y}),popupStyle:A,onPopupVisibleChange:v}),s)},fI=i.forwardRef(dI);function Xm(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function vc(e){return typeof e<"u"&&!Number.isNaN(e)}function K0(e,t){const{label:n,value:r,options:o,groupLabel:s}=e||{},a=n||(t?"children":"label");return{label:a,value:r||"value",options:o||"options",groupLabel:s||a}}function mI(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:s,options:a,groupLabel:l}=K0(t,!1);function c(u,d){Array.isArray(u)&&u.forEach(f=>{if(d||!(a in f)){const m=f[s];r.push({key:Xm(f,r.length),groupOption:d,data:f,label:f[o],value:m})}else{let m=f[l];m===void 0&&n&&(m=f.label),r.push({key:Xm(f,r.length),group:!0,data:f,label:m}),c(f[a],!0)}})}return c(e,!1),r}function yc(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Pt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const pI=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const o=(a,[l,...c])=>{if(!l)return[a];const u=a.split(l);return r=r||u.length>1,u.reduce((d,f)=>[...d,...o(f,c)],[]).filter(Boolean)},s=o(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function gI(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:o,value:s})=>["number","string"].includes(typeof o)?o:s).join(", ")}`,n.length>r?", ...":null)}const hI=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},vd=(e,t=1)=>{if(t<=0){e();return}hI(()=>{vd(e,t-1)})};function bI(e,t,n,r){const[o,s]=i.useState(!1);i.useEffect(()=>{s(!0)},[]);const[a,l]=bt(e,t),[c,u]=i.useState(!1),d=o?a:!1,f=r(d),m=i.useRef(0),p=We(h=>{n&&f!==h&&n(h),l(h)}),g=We((h,b={})=>{const{cancelFun:$}=b;m.current+=1;const y=m.current,v=typeof h=="boolean"?h:!f;u(!v);function C(){y===m.current&&!($!=null&&$())&&(p(v),u(!1))}v?C():vd(()=>{C()})});return[d,f,g,c]}function Fa(e){const{children:t,...n}=e;return t?i.createElement("div",n,t):null}const Y0=i.createContext(null);function bs(){return i.useContext(Y0)}const Q0=i.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:s,syncWidth:a,value:l,className:c,autoComplete:u,...d}=e,{prefixCls:f,mode:m,onSearch:p,onSearchSubmit:g,onInputBlur:h,autoFocus:b,tokenWithEnter:$,placeholder:y,components:{input:v="input"}}=bs(),{id:C,classNames:S,styles:x,open:w,activeDescendantId:I,role:E,disabled:R}=Lr()||{},P=z(`${f}-input`,S==null?void 0:S.input,c),M=i.useRef(!1),O=i.useRef(null),A=i.useRef(null);i.useImperativeHandle(t,()=>A.current);const T=U=>{let{value:j}=U.target;if($&&O.current&&/[\r\n]/.test(O.current)){const V=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(V,O.current)}O.current=null,p&&p(j,!0,M.current),n==null||n(U)},F=U=>{const{key:j}=U,{value:V}=U.currentTarget;j==="Enter"&&m==="tags"&&!M.current&&g&&g(V),r==null||r(U)},H=U=>{h==null||h(),o==null||o(U)},L=()=>{M.current=!0},B=U=>{if(M.current=!1,m!=="combobox"){const{value:j}=U.currentTarget;p==null||p(j,!0,!1)}},D=U=>{const{clipboardData:j}=U,V=j==null?void 0:j.getData("text");O.current=V||""},[k,W]=i.useState(void 0);nt(()=>{const U=A.current;if(a&&U){U.style.width="0px";const j=U.scrollWidth;W(j),U.style.width=""}},[a,l]);const _={id:C,type:m==="combobox"?"text":"search",...d,ref:A,style:{...x==null?void 0:x.input,...s,"--select-input-width":k},autoFocus:b,autoComplete:u||"off",className:P,disabled:R,value:l||"",onChange:T,onKeyDown:F,onBlur:H,onPaste:D,onCompositionStart:L,onCompositionEnd:B,role:E||"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":w?`${C}_list`:void 0,"aria-autocomplete":"list","aria-controls":w?`${C}_list`:void 0,"aria-activedescendant":w?I:void 0};if(i.isValidElement(v)){const U=v.props||{},j={placeholder:e.placeholder||y,..._,...U};return Object.keys(U).forEach(V=>{const G=U[V];typeof G=="function"&&(j[V]=(...te)=>{var ee;G(...te),(ee=_[V])==null||ee.call(_,...te)})}),j.ref=Ft(v.ref,_.ref),i.cloneElement(v,j)}const X=v;return i.createElement(X,_)});function Z0(e){const{prefixCls:t,placeholder:n,displayValues:r}=bs(),{classNames:o,styles:s}=Lr(),{show:a=!0}=e;return r.length?null:i.createElement("div",{className:z(`${t}-placeholder`,o==null?void 0:o.placeholder),style:{visibility:a?"visible":"hidden",...s==null?void 0:s.placeholder}},n)}const yd=i.createContext(null);function J0(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function vI(e){return e!=null}function yI(e){return!e&&e!==0}function Um(e){return["string","number"].includes(typeof e)}function $c(e){let t;return e&&(Um(e.title)?t=e.title.toString():Um(e.label)&&(t=e.label.toString())),t}function Cc(){return Cc=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},Cc.apply(this,arguments)}const $I=i.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:s,maxLength:a,mode:l}=bs(),{triggerOpen:c,title:u,showSearch:d,classNames:f,styles:m}=Lr(),p=i.useContext(yd),[g,h]=i.useState(!1),b=l==="combobox",$=s[0],y=i.useMemo(()=>b&&o&&!g&&c?o:d?r:"",[b,o,g,c,r,d]),[v,C,S,x]=i.useMemo(()=>{let E,R,P;if($&&(p!=null&&p.flattenOptions)){const O=p.flattenOptions.find(A=>A.value===$.value);O!=null&&O.data&&(E=O.data.className,R=O.data.style,P=$c(O.data))}return $&&!P&&(P=$c($)),u!==void 0&&(P=u),[E,R,P,!!E||!!R]},[$,p==null?void 0:p.flattenOptions,u]);i.useEffect(()=>{b&&h(!1)},[b,o]);const w=$&&$.label!==null&&$.label!==void 0&&String($.label).trim()!=="",I=$?x?i.createElement("div",{className:z(`${n}-content-value`,v),style:{...y?{visibility:"hidden"}:{},...C},title:S},$.label):$.label:i.createElement(Z0,{show:!y});return i.createElement("div",{className:z(`${n}-content`,w&&`${n}-content-has-value`,y&&`${n}-content-has-search-value`,x&&`${n}-content-has-option-style`,f==null?void 0:f.content),style:m==null?void 0:m.content,title:x?void 0:S},I,i.createElement(Q0,Cc({ref:t},e,{value:y,maxLength:l==="combobox"?a:void 0,onChange:E=>{var R;h(!0),(R=e.onChange)==null||R.call(e,E)}})))}),CI=Symbol.for("react.element"),SI=Symbol.for("react.transitional.element"),xI=Symbol.for("react.fragment");function eb(e){return e&&typeof e=="object"&&(e.$$typeof===CI||e.$$typeof===SI)&&e.type===xI}function Sc(e,t={}){let n=[];return N.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Sc(r)):eb(r)&&r.props?n=n.concat(Sc(r.props.children,t)):n.push(r))}),n}function Km(e){return e instanceof HTMLElement||e instanceof SVGElement}function wI(e){return e&&typeof e=="object"&&Km(e.nativeElement)?e.nativeElement:Km(e)?e:null}function EI(e,t,n){const r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const II=Number(i.version.split(".")[0]),PI=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},RI=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{PI(r,n)})}},MI=(...e)=>EI(()=>RI(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),NI=e=>{var n,r;if(!e)return!1;if(tb(e)&&II>=19)return!0;const t=Ir.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Ir.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Ir.ForwardRef)};function tb(e){return i.isValidElement(e)&&!eb(e)}const TI=e=>{if(e&&tb(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},xc=i.createContext(null);function OI({children:e,onBatchResize:t}){const n=i.useRef(0),r=i.useRef([]),o=i.useContext(xc),s=i.useCallback((a,l,c)=>{n.current+=1;const u=n.current;r.current.push({size:a,element:l,data:c}),Promise.resolve().then(()=>{u===n.current&&(t==null||t(r.current),r.current=[])}),o==null||o(a,l,c)},[t,o]);return i.createElement(xc.Provider,{value:s},e)}const or=new Map;function AI(e){e.forEach(t=>{var r;const{target:n}=t;(r=or.get(n))==null||r.forEach(o=>o(n))})}let _a;function nb(){return _a||(_a=new ResizeObserver(AI)),_a}function zI(e,t){or.has(e)||(or.set(e,new Set),nb().observe(e)),or.get(e).add(t)}function BI(e,t){or.has(e)&&(or.get(e).delete(t),or.get(e).size||(nb().unobserve(e),or.delete(e)))}function LI(e,t){const{children:n,disabled:r}=e,o=i.useRef(null),s=i.useContext(xc),a=typeof n=="function",l=a?n(o):n,c=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&i.isValidElement(l)&&NI(l),d=u?TI(l):null,f=MI(d,o),m=()=>wI(o.current);i.useImperativeHandle(t,()=>m());const p=i.useRef(e);p.current=e;const g=i.useCallback(h=>{const{onResize:b,data:$}=p.current,{width:y,height:v}=h.getBoundingClientRect(),{offsetWidth:C,offsetHeight:S}=h,x=Math.floor(y),w=Math.floor(v);if(c.current.width!==x||c.current.height!==w||c.current.offsetWidth!==C||c.current.offsetHeight!==S){const I={width:x,height:w,offsetWidth:C,offsetHeight:S};c.current=I;const E=C===Math.round(y)?y:C,R=S===Math.round(v)?v:S,P={...I,offsetWidth:E,offsetHeight:R};s==null||s(P,h,$),b&&Promise.resolve().then(()=>{b(P,h)})}},[]);return i.useEffect(()=>{const h=m();return h&&!r&&zI(h,g),()=>BI(h,g)},[o.current,r]),u?i.cloneElement(l,{ref:f}):l}const HI=i.forwardRef(LI);function wc(){return wc=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},wc.apply(this,arguments)}const DI="rc-observer-key";function FI(e,t){const{children:n}=e;return(typeof n=="function"?[n]:Sc(n)).map((o,s)=>{const a=(o==null?void 0:o.key)||`${DI}-${s}`;return i.createElement(HI,wc({},e,{key:a,ref:s===0?t:void 0}),o)})}const vs=i.forwardRef(FI);vs.Collection=OI;const qr=void 0;function _I(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:s,responsive:a,responsiveDisabled:l,registerSize:c,itemKey:u,className:d,style:f,children:m,display:p,order:g,component:h="div",...b}=e,$=a&&!p;function y(w){c(u,w)}i.useEffect(()=>()=>{y(null)},[]);const v=s&&o!==qr?s(o,{index:g}):m;let C;r||(C={opacity:$?0:1,height:$?0:qr,overflowY:$?"hidden":qr,order:a?g:qr,pointerEvents:$?"none":qr,position:$?"absolute":qr});const S={};$&&(S["aria-hidden"]=!0);let x=i.createElement(h,Et({className:z(!r&&n,d),style:{...C,...f}},S,b,{ref:t}),v);return a&&(x=i.createElement(vs,{onResize:({offsetWidth:w})=>{y(w)},disabled:l},x)),x}const Ho=i.forwardRef(_I);function kI(e){if(typeof MessageChannel>"u")Ke(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function VI(){const e=i.useRef(null);return n=>{e.current||(e.current=[],kI(()=>{Vn.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Gr(e,t){const[n,r]=i.useState(t),o=We(s=>{e(()=>{r(s)})});return[n,o]}const yi=N.createContext(null),WI=(e,t)=>{const n=i.useContext(yi);if(!n){const{component:l="div",...c}=e;return i.createElement(l,Et({},c,{ref:t}))}const{className:r,...o}=n,{className:s,...a}=e;return i.createElement(yi.Provider,{value:null},i.createElement(Ho,Et({ref:t,className:z(r,s)},o,a)))},jI=i.forwardRef(WI),rb="responsive",ob="invalidate";function qI(e){return`+ ${e.length} ...`}function GI(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:s,itemKey:a,itemWidth:l=10,ssr:c,style:u,className:d,maxCount:f,renderRest:m,renderRawRest:p,prefix:g,suffix:h,component:b="div",itemComponent:$,onVisibleChange:y,...v}=e,C=c==="full",S=VI(),[x,w]=Gr(S,null),I=x||0,[E,R]=Gr(S,new Map),[P,M]=Gr(S,0),[O,A]=Gr(S,0),[T,F]=Gr(S,0),[H,L]=Gr(S,0),[B,D]=i.useState(null),[k,W]=i.useState(null),_=i.useMemo(()=>k===null&&C?Number.MAX_SAFE_INTEGER:k||0,[k,x]),[X,U]=i.useState(!1),j=`${n}-item`,V=Math.max(P,O),G=f===rb,te=r.length&&G,ee=f===ob,ne=te||typeof f=="number"&&r.length>f,Y=i.useMemo(()=>{let fe=r;return te?x===null&&C?fe=r:fe=r.slice(0,Math.min(r.length,I/l)):typeof f=="number"&&(fe=r.slice(0,f)),fe},[r,l,x,f,te]),se=i.useMemo(()=>te?r.slice(_+1):r.slice(Y.length),[r,Y,te,_]),ue=i.useCallback((fe,Ce)=>typeof a=="function"?a(fe):(a&&(fe==null?void 0:fe[a]))??Ce,[a]),q=i.useCallback(o||(fe=>fe),[o]);function oe(fe,Ce,He){k===fe&&(Ce===void 0||Ce===B)||(W(fe),He||(U(fe<r.length-1),y==null||y(fe)),Ce!==void 0&&D(Ce))}function Z(fe,Ce){w(Ce.clientWidth)}function J(fe,Ce){R(He=>{const Ie=new Map(He);return Ce===null?Ie.delete(fe):Ie.set(fe,Ce),Ie})}function ae(fe,Ce){A(Ce),M(O)}function we(fe,Ce){F(Ce)}function de(fe,Ce){L(Ce)}function ge(fe){return E.get(ue(Y[fe],fe))}nt(()=>{if(I&&typeof V=="number"&&Y){let fe=T+H;const Ce=Y.length,He=Ce-1;if(!Ce){oe(0,null);return}for(let Ie=0;Ie<Ce;Ie+=1){let re=ge(Ie);if(C&&(re=re||0),re===void 0){oe(Ie-1,void 0,!0);break}if(fe+=re,He===0&&fe<=I||Ie===He-1&&fe+ge(He)<=I){oe(He,null);break}else if(fe+V>I){oe(Ie-1,fe-re-H+O);break}}h&&ge(0)+H>I&&D(null)}},[I,E,O,T,H,ue,Y]);const be=X&&!!se.length;let me={};B!==null&&te&&(me={position:"absolute",left:B,top:0});const Ne={prefixCls:j,responsive:te,component:$,invalidate:ee},Ae=s?(fe,Ce)=>{const He=ue(fe,Ce);return i.createElement(yi.Provider,{key:He,value:{...Ne,order:Ce,item:fe,itemKey:He,registerSize:J,display:Ce<=_}},s(fe,Ce))}:(fe,Ce)=>{const He=ue(fe,Ce);return i.createElement(Ho,Et({},Ne,{order:Ce,key:He,item:fe,renderItem:q,itemKey:He,registerSize:J,display:Ce<=_}))},Ee={order:be?_:Number.MAX_SAFE_INTEGER,className:`${j}-rest`,registerSize:ae,display:be},ze=m||qI,Re=p?i.createElement(yi.Provider,{value:{...Ne,...Ee}},p(se)):i.createElement(Ho,Et({},Ne,Ee),typeof ze=="function"?ze(se):ze),ve=i.createElement(b,Et({className:z(!ee&&n,d),style:u,ref:t},v),g&&i.createElement(Ho,Et({},Ne,{responsive:G,responsiveDisabled:!te,order:-1,className:`${j}-prefix`,registerSize:we,display:!0}),g),Y.map(Ae),ne?Re:null,h&&i.createElement(Ho,Et({},Ne,{responsive:G,responsiveDisabled:!te,order:_,className:`${j}-suffix`,registerSize:de,display:!0,style:me}),h));return G?i.createElement(vs,{onResize:Z,disabled:!te},ve):ve}const kn=i.forwardRef(GI);kn.Item=jI;kn.RESPONSIVE=rb;kn.INVALIDATE=ob;const sb=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:s,onMouseDown:a,onClick:l}=e,c=typeof r=="function"?r(o):r;return i.createElement("span",{className:t,onMouseDown:u=>{u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:i.createElement("span",{className:z(t.split(/\s+/).map(u=>`${u}-icon`))},s))};function Ec(){return Ec=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},Ec.apply(this,arguments)}function XI(e){return e.key??e.value}const Ym=e=>{e.preventDefault(),e.stopPropagation()},UI=i.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:s,mode:a,onSelectorRemove:l,removeIcon:c}=bs(),{disabled:u,showSearch:d,triggerOpen:f,rawOpen:m,toggleOpen:p,autoClearSearchValue:g,tagRender:h,maxTagPlaceholder:b,maxTagTextLength:$,maxTagCount:y,classNames:v,styles:C}=Lr(),S=`${r}-selection-item`;let x=s;!m&&a==="multiple"&&g!==!1&&(x="");const w=d&&x||"",I=d&&!u,E=c??"×",R=b??(L=>`+ ${L.length} ...`),P=h,M=L=>{p(L)},O=L=>{l==null||l(L)},A=(L,B,D,k,W)=>i.createElement("span",{title:$c(L),className:z(S,{[`${S}-disabled`]:D},v==null?void 0:v.item),style:C==null?void 0:C.item},i.createElement("span",{className:z(`${S}-content`,v==null?void 0:v.itemContent),style:C==null?void 0:C.itemContent},B),k&&i.createElement(sb,{className:z(`${S}-remove`,v==null?void 0:v.itemRemove),style:C==null?void 0:C.itemRemove,onMouseDown:Ym,onClick:W,customizeIcon:E},"×")),T=(L,B,D,k,W,_,X)=>{const U=j=>{Ym(j),M(!f)};return i.createElement("span",{onMouseDown:U},P({label:B,value:L,index:X==null?void 0:X.index,disabled:D,closable:k,onClose:W,isMaxTag:!!_}))},F=(L,B)=>{const{disabled:D,label:k,value:W}=L,_=!u&&!D;let X=k;if(typeof $=="number"&&(typeof k=="string"||typeof k=="number")){const j=String(X);j.length>$&&(X=`${j.slice(0,$)}...`)}const U=j=>{j&&j.stopPropagation(),O(L)};return typeof P=="function"?T(W,X,D,_,U,void 0,B):A(L,X,D,_,U)},H=L=>{if(!o.length)return null;const B=typeof R=="function"?R(L):R;return typeof P=="function"?T(void 0,B,!1,!1,void 0,!0):A({title:B},B,!1)};return i.createElement(kn,{prefixCls:`${r}-content`,className:v==null?void 0:v.content,style:C==null?void 0:C.content,prefix:!o.length&&!w&&i.createElement(Z0,null),data:o,renderItem:F,renderRest:H,suffix:i.createElement(Q0,Ec({ref:n,disabled:u,readOnly:!I},t,{value:w||"",syncWidth:!0})),itemKey:XI,maxCount:y})}),KI=i.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:s}=bs(),a=Lr(),{showSearch:l}=a,u={...cn(a,{aria:!0}),onKeyDown:o,readOnly:!l,tabIndex:s};return r?i.createElement(UI,{ref:n,inputProps:u}):i.createElement($I,{ref:n,inputProps:u})});function YI(e){return e&&![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.UP,Me.LEFT,Me.RIGHT,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(e)}function $i(){return $i=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},$i.apply(this,arguments)}const QI=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],ZI=i.forwardRef(function(t,n){const{prefixCls:r,className:o,style:s,prefix:a,suffix:l,clearIcon:c,children:u,multiple:d,displayValues:f,placeholder:m,mode:p,searchValue:g,onSearch:h,onSearchSubmit:b,onInputBlur:$,maxLength:y,autoFocus:v,onMouseDown:C,onClearMouseDown:S,onInputKeyDown:x,onSelectorRemove:w,tokenWithEnter:I,components:E,...R}=t,{triggerOpen:P,toggleOpen:M,showSearch:O,disabled:A,loading:T,classNames:F,styles:H}=Lr(),L=i.useRef(null),B=i.useRef(null),D=We(V=>{const{which:G}=V,te=B.current instanceof HTMLTextAreaElement;if(!te&&P&&(G===Me.UP||G===Me.DOWN)&&V.preventDefault(),x&&x(V),te&&!P&&~[Me.UP,Me.DOWN,Me.LEFT,Me.RIGHT].indexOf(G))return;!(V.ctrlKey||V.altKey||V.metaKey)&&YI(G)&&M(!0)});i.useImperativeHandle(n,()=>({focus:V=>{var G,te;(te=(G=B.current||L.current).focus)==null||te.call(G,V)},blur:()=>{var V,G;(G=(V=B.current||L.current).blur)==null||G.call(V)},nativeElement:L.current}));const k=We(V=>{var G;if(!A){const te=co(B.current);V.nativeEvent._ori_target=te,te&&V.target!==te&&!te.contains(V.target)&&V.preventDefault();const ee=P&&!d&&(p==="combobox"||O);V.nativeEvent._select_lazy?P&&M(!1):((G=B.current)==null||G.focus(),ee||M())}C==null||C(V)}),{root:W}=E,_=yt(R,QI),X=cn(_,{aria:!0}),U=Object.keys(X),j={...t,onInputKeyDown:D};return W?i.isValidElement(W)?i.cloneElement(W,{..._,ref:Ft(W.ref,L)}):i.createElement(W,$i({},_,{ref:L})):i.createElement(Y0.Provider,{value:j},i.createElement("div",$i({},yt(_,U),{ref:L,className:o,style:s,onMouseDown:k}),i.createElement(Fa,{className:z(`${r}-prefix`,F==null?void 0:F.prefix),style:H==null?void 0:H.prefix},a),i.createElement(KI,{ref:B}),i.createElement(Fa,{className:z(`${r}-suffix`,{[`${r}-suffix-loading`]:T},F==null?void 0:F.suffix),style:H==null?void 0:H.suffix},l),c&&i.createElement(Fa,{className:z(`${r}-clear`,F==null?void 0:F.clear),style:H==null?void 0:H.clear,onMouseDown:V=>{V.nativeEvent._select_lazy=!0,S==null||S(V)}},c),u))});function JI(e,t,n){return i.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}function Ic(){return Ic=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},Ic.apply(this,arguments)}const Pc=e=>e==="tags"||e==="multiple",eP=i.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:s,classNames:a,showSearch:l,tagRender:c,showScrollBar:u="optional",direction:d,omitDomProps:f,displayValues:m,onDisplayValuesChange:p,emptyOptions:g,notFoundContent:h="Not Found",onClear:b,maxCount:$,placeholder:y,mode:v,disabled:C,loading:S,getInputElement:x,getRawInputElement:w,open:I,defaultOpen:E,onPopupVisibleChange:R,activeValue:P,onActiveValueChange:M,activeDescendantId:O,searchValue:A,autoClearSearchValue:T,onSearch:F,onSearchSplit:H,tokenSeparators:L,allowClear:B,prefix:D,suffix:k,suffixIcon:W,clearIcon:_,OptionList:X,animation:U,transitionName:j,popupStyle:V,popupClassName:G,popupMatchSelectWidth:te,popupRender:ee,popupAlign:ne,placement:Y,builtinPlacements:se,getPopupContainer:ue,showAction:q=[],onFocus:oe,onBlur:Z,onKeyUp:J,onKeyDown:ae,onMouseDown:we,components:de,...ge}=e,be=Pc(v),me=i.useRef(null),Ne=i.useRef(null),Ae=i.useRef(null),[Ee,ze]=i.useState(!1);i.useImperativeHandle(t,()=>{var Oe,_e;return{focus:(Oe=me.current)==null?void 0:Oe.focus,blur:(_e=me.current)==null?void 0:_e.blur,scrollTo:Xe=>{var it;return(it=Ae.current)==null?void 0:it.scrollTo(Xe)},nativeElement:co(me.current)}});const Re=JI(de,x,w),ve=i.useMemo(()=>{var _e;if(v!=="combobox")return A;const Oe=(_e=m[0])==null?void 0:_e.value;return typeof Oe=="string"||typeof Oe=="number"?String(Oe):""},[A,v,m]),fe=v==="combobox"&&typeof x=="function"&&x()||null,Ce=!h&&g,[He,Ie,re,$e]=bI(E||!1,I,R,Oe=>C||Ce?!1:Oe),ke=i.useMemo(()=>(L||[]).some(Oe=>[`
|
||
`,`\r
|
||
`].includes(Oe)),[L]),De=(Oe,_e,Xe)=>{if(be&&vc($)&&m.length>=$)return;let it=!0,ht=Oe;M==null||M(null);const It=pI(Oe,L,vc($)?$-m.length:void 0),$t=Xe?null:It;return v!=="combobox"&&$t&&(ht="",H==null||H($t),re(!1),it=!1),F&&ve!==ht&&F(ht,{source:_e?"typing":"effect"}),Oe&&_e&&it&&re(!0),it},ot=Oe=>{!Oe||!Oe.trim()||F(Oe,{source:"submit"})};i.useEffect(()=>{!He&&!be&&v!=="combobox"&&De("",!1,!1)},[He]),i.useEffect(()=>{C&&(re(!1),ze(!1))},[C,Ie]);const[qe,ft]=lI(),Qe=i.useRef(!1),st=Oe=>{var It;const _e=qe(),{key:Xe}=Oe,it=Xe==="Enter",ht=Xe===" ";if(it||ht){const $t=v==="combobox";(ht&&!($t||l)||it&&!$t)&&Oe.preventDefault(),Ie||re(!0)}if(ft(!!ve),Xe==="Backspace"&&!_e&&be&&!ve&&m.length){const $t=[...m];let Gt=null;for(let Xt=$t.length-1;Xt>=0;Xt-=1){const kt=$t[Xt];if(!kt.disabled){$t.splice(Xt,1),Gt=kt;break}}Gt&&p($t,{type:"remove",values:[Gt]})}Ie&&(!it||!Qe.current)&&!ht&&(it&&(Qe.current=!0),(It=Ae.current)==null||It.onKeyDown(Oe)),ae==null||ae(Oe)},lt=(Oe,..._e)=>{var Xe;Ie&&((Xe=Ae.current)==null||Xe.onKeyUp(Oe,..._e)),Oe.key==="Enter"&&(Qe.current=!1),J==null||J(Oe,..._e)},Se=We(Oe=>{const _e=m.filter(Xe=>Xe!==Oe);p(_e,{type:"remove",values:[Oe]})}),Be=()=>{Qe.current=!1},Pe=()=>{var Oe;return[co(me.current),(Oe=Ne.current)==null?void 0:Oe.getPopupElement()]};cI(Pe,Ie,re,!!Re.root);const ye=i.useRef(!1),ce=Oe=>{ze(!0),C||(q.includes("focus")&&re(!0),oe==null||oe(Oe))},Q=()=>{Ie&&!ye.current&&re(!1,{cancelFun:()=>U0(Pe(),document.activeElement)})},pe=Oe=>{ze(!1),ve&&(v==="tags"?F(ve,{source:"submit"}):v==="multiple"&&F("",{source:"blur"})),Q(),C||Z==null||Z(Oe)},ie=(Oe,..._e)=>{var ht;const{target:Xe}=Oe,it=(ht=Ne.current)==null?void 0:ht.getPopupElement();it!=null&&it.contains(Xe)&&re&&re(!0),we==null||we(Oe,..._e),ye.current=!0,vd(()=>{ye.current=!1})},[,he]=i.useState({});function xe(){he({})}let Te;Re.root&&(Te=Oe=>{re(Oe)});const Fe=i.useMemo(()=>({...e,notFoundContent:h,open:Ie,triggerOpen:Ie,rawOpen:He,id:n,showSearch:l,multiple:be,toggleOpen:re,showScrollBar:u,styles:s,classNames:a,lockOptions:$e}),[e,h,re,n,l,be,Ie,He,u,s,a,$e]),Je=i.useMemo(()=>{const Oe=k??W;return typeof Oe=="function"?Oe({searchValue:ve,open:Ie,focused:Ee,showSearch:l,loading:S}):Oe},[k,W,ve,Ie,Ee,l,S]),tt=()=>{var Oe;b==null||b(),(Oe=me.current)==null||Oe.focus(),p([],{type:"clear",values:m}),De("",!1,!1)},{allowClear:Ze,clearIcon:Mt}=aI(r,m,B,_,C,ve,v),qt=i.createElement(X,{ref:Ae}),mt=z(r,o,{[`${r}-focused`]:Ee,[`${r}-multiple`]:be,[`${r}-single`]:!be,[`${r}-allow-clear`]:Ze,[`${r}-show-arrow`]:Je!=null,[`${r}-disabled`]:C,[`${r}-loading`]:S,[`${r}-open`]:Ie,[`${r}-customize-input`]:fe,[`${r}-show-search`]:l});let Ge=i.createElement(ZI,Ic({},ge,{ref:me,prefixCls:r,className:mt,focused:Ee,prefix:D,suffix:Je,clearIcon:Mt,multiple:be,mode:v,displayValues:m,placeholder:y,searchValue:ve,activeValue:P,onSearch:De,onSearchSubmit:ot,onInputBlur:Be,onFocus:ce,onBlur:pe,onClearMouseDown:tt,onKeyDown:st,onKeyUp:lt,onSelectorRemove:Se,tokenWithEnter:ke,onMouseDown:ie,components:Re}));return Ge=i.createElement(fI,{ref:Ne,disabled:C,prefixCls:r,visible:Ie,popupElement:qt,animation:U,transitionName:j,popupStyle:V,popupClassName:G,direction:d,popupMatchSelectWidth:te,popupRender:ee,popupAlign:ne,placement:Y,builtinPlacements:se,getPopupContainer:ue,empty:g,onPopupVisibleChange:Te,onPopupMouseEnter:xe,onPopupMouseDown:ie,onPopupBlur:Q},Ge),i.createElement(X0.Provider,{value:Fe},i.createElement(gI,{visible:Ee&&!Ie,values:m}),Ge)}),$d=()=>null;$d.isSelectOptGroup=!0;const Cd=()=>null;Cd.isSelectOption=!0;const ib=i.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:s,innerProps:a,rtl:l,extra:c},u)=>{let d={},f={display:"flex",flexDirection:"column"};return t!==void 0&&(d={height:e,position:"relative",overflow:"hidden"},f={...f,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),i.createElement("div",{style:d},i.createElement(vs,{onResize:({offsetHeight:m})=>{m&&s&&s()}},i.createElement("div",Et({style:f,className:z({[`${o}-holder-inner`]:o}),ref:u},a),r,c)))});ib.displayName="Filler";function tP({children:e,setRef:t}){const n=i.useCallback(r=>{t(r)},[]);return i.cloneElement(e,{ref:n})}function nP(e,t,n,r,o,s,a,{getKey:l}){return e.slice(t,n+1).map((c,u)=>{const d=t+u,f=a(c,d,{style:{width:r},offsetX:o}),m=l(c);return i.createElement(tP,{key:m,setRef:p=>s(c,p)},f)})}function rP(e,t,n){const r=e.length,o=t.length;let s,a;if(r===0&&o===0)return null;r<o?(s=e,a=t):(s=t,a=e);const l={__EMPTY_ITEM__:!0};function c(f){return f!==void 0?n(f):l}let u=null,d=Math.abs(r-o)!==1;for(let f=0;f<a.length;f+=1){const m=c(s[f]),p=c(a[f]);if(m!==p){u=f,d=d||m!==c(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function oP(e,t,n){const[r,o]=i.useState(e),[s,a]=i.useState(null);return i.useEffect(()=>{const l=rP(r||[],e||[],t);(l==null?void 0:l.index)!==void 0&&a(e[l.index]),o(e)},[e]),[s]}const Qm=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),ab=(e,t,n,r)=>{const o=i.useRef(!1),s=i.useRef(null);function a(){clearTimeout(s.current),o.current=!0,s.current=setTimeout(()=>{o.current=!1},50)}const l=i.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,(c,u,d=!1)=>{const f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(s.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function sP(e,t,n,r,o,s,a){const l=i.useRef(0),c=i.useRef(null),u=i.useRef(null),d=i.useRef(!1),f=ab(t,n,r,o);function m(y,v){if(Ke.cancel(c.current),f(!1,v))return;const C=y;if(!C._virtualHandled)C._virtualHandled=!0;else return;l.current+=v,u.current=v,Qm||C.preventDefault(),c.current=Ke(()=>{const S=d.current?10:1;a(l.current*S,!1),l.current=0})}function p(y,v){a(v,!0),Qm||y.preventDefault()}const g=i.useRef(null),h=i.useRef(null);function b(y){if(!e)return;Ke.cancel(h.current),h.current=Ke(()=>{g.current=null},2);const{deltaX:v,deltaY:C,shiftKey:S}=y;let x=v,w=C;(g.current==="sx"||!g.current&&S&&C&&!v)&&(x=C,w=0,g.current="sx");const I=Math.abs(x),E=Math.abs(w);g.current===null&&(g.current=s&&I>E?"x":"y"),g.current==="y"?m(y,w):p(y,x)}function $(y){e&&(d.current=y.detail===u.current)}return[b,$]}function iP(e,t,n,r){const[o,s]=i.useMemo(()=>[new Map,[]],[e,n.id,r]);return(l,c=l)=>{let u=o.get(l),d=o.get(c);if(u===void 0||d===void 0){const f=e.length;for(let m=s.length;m<f;m+=1){const p=e[m],g=t(p);o.set(g,m);const h=n.get(g)??r;if(s[m]=(s[m-1]||0)+h,g===l&&(u=m),g===c&&(d=m),u!==void 0&&d!==void 0)break}}return{top:s[u-1]||0,bottom:s[d]}}}class aP{constructor(){le(this,"maps");le(this,"id",0);le(this,"diffRecords",new Map);this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function Zm(e){const t=parseFloat(e);return isNaN(t)?0:t}function lP(e,t,n){const[r,o]=i.useState(0),s=i.useRef(new Map),a=i.useRef(new aP),l=i.useRef(0);function c(){l.current+=1}function u(f=!1){c();const m=()=>{let p=!1;s.current.forEach((g,h)=>{if(g&&g.offsetParent){const{offsetHeight:b}=g,{marginTop:$,marginBottom:y}=getComputedStyle(g),v=Zm($),C=Zm(y),S=b+v+C;a.current.get(h)!==S&&(a.current.set(h,S),p=!0)}}),p&&o(g=>g+1)};if(f)m();else{l.current+=1;const p=l.current;Promise.resolve().then(()=>{p===l.current&&m()})}}function d(f,m){const p=e(f);s.current.get(p),m?(s.current.set(p,m),u()):s.current.delete(p)}return i.useEffect(()=>c,[]),[d,u,a.current,r]}const Jm=14/15;function cP(e,t,n){const r=i.useRef(!1),o=i.useRef(0),s=i.useRef(0),a=i.useRef(null),l=i.useRef(null);let c;const u=m=>{if(r.current){const p=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY);let h=o.current-p,b=s.current-g;const $=Math.abs(h)>Math.abs(b);$?o.current=p:s.current=g;const y=n($,$?h:b,!1,m);y&&m.preventDefault(),clearInterval(l.current),y&&(l.current=setInterval(()=>{$?h*=Jm:b*=Jm;const v=Math.floor($?h:b);(!n($,v,!0)||Math.abs(v)<=.1)&&clearInterval(l.current)},16))}},d=()=>{r.current=!1,c()},f=m=>{c(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageX),s.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};c=()=>{a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",d))},nt(()=>(e&&t.current.addEventListener("touchstart",f,{passive:!0}),()=>{var m;(m=t.current)==null||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}),[e])}function ep(e){return Math.floor(e**.5)}function Rc(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function uP(e,t,n){i.useEffect(()=>{const r=t.current;if(e&&r){let o=!1,s,a;const l=()=>{Ke.cancel(s)},c=()=>{l(),s=Ke(()=>{n(a),c()})},u=()=>{o=!1,l()},d=m=>{if(m.target.draggable||m.button!==0)return;const p=m;p._virtualHandled||(p._virtualHandled=!0,o=!0)},f=m=>{if(o){const p=Rc(m,!1),{top:g,bottom:h}=r.getBoundingClientRect();if(p<=g){const b=g-p;a=-ep(b),c()}else if(p>=h){const b=p-h;a=ep(b),c()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),()=>{r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}const dP=10;function fP(e,t,n,r,o,s,a,l){const c=i.useRef(),[u,d]=i.useState(null);return nt(()=>{if(u&&u.times<dP){if(!e.current){d(v=>({...v}));return}s();const{targetAlign:f,originAlign:m,index:p,offset:g}=u,h=e.current.clientHeight;let b=!1,$=f,y=null;if(h){const v=f||m;let C=0,S=0,x=0;const w=Math.min(t.length-1,p);for(let E=0;E<=w;E+=1){const R=o(t[E]);S=C;const P=n.get(R);x=S+(P===void 0?r:P),C=x}let I=v==="top"?g:h-g;for(let E=w;E>=0;E-=1){const R=o(t[E]),P=n.get(R);if(P===void 0){b=!0;break}if(I-=P,I<=0)break}switch(v){case"top":y=S-g;break;case"bottom":y=x-h+g;break;default:{const{scrollTop:E}=e.current,R=E+h;S<E?$="top":x>R&&($="bottom")}}y!==null&&a(y),y!==u.lastTop&&(b=!0)}b&&d({...u,times:u.times+1,targetAlign:$,lastTop:y})}},[u,e.current]),f=>{if(f==null){l();return}if(Ke.cancel(c.current),typeof f=="number")a(f);else if(f&&typeof f=="object"){let m;const{align:p}=f;"index"in f?{index:m}=f:m=t.findIndex(h=>o(h)===f.key);const{offset:g=0}=f;d({times:0,index:m,offset:g,originAlign:p})}}}const tp=i.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:s,onStartMove:a,onStopMove:l,onScroll:c,horizontal:u,spinSize:d,containerSize:f,style:m,thumbStyle:p,showScrollBar:g}=e,[h,b]=i.useState(!1),[$,y]=i.useState(null),[v,C]=i.useState(null),S=!r,x=i.useRef(),w=i.useRef(),[I,E]=i.useState(g),R=i.useRef(),P=()=>{g===!0||g===!1||(clearTimeout(R.current),E(!0),R.current=setTimeout(()=>{E(!1)},3e3))},M=s-f||0,O=f-d||0,A=i.useMemo(()=>o===0||M===0?0:o/M*O,[o,M,O]),T=_=>{_.stopPropagation(),_.preventDefault()},F=i.useRef({top:A,dragging:h,pageY:$,startTop:v});F.current={top:A,dragging:h,pageY:$,startTop:v};const H=_=>{b(!0),y(Rc(_,u)),C(F.current.top),a(),_.stopPropagation(),_.preventDefault()};i.useEffect(()=>{const _=j=>{j.preventDefault()},X=x.current,U=w.current;return X.addEventListener("touchstart",_,{passive:!1}),U.addEventListener("touchstart",H,{passive:!1}),()=>{X.removeEventListener("touchstart",_),U.removeEventListener("touchstart",H)}},[]);const L=i.useRef();L.current=M;const B=i.useRef();B.current=O,i.useEffect(()=>{if(h){let _;const X=j=>{const{dragging:V,pageY:G,startTop:te}=F.current;Ke.cancel(_);const ee=x.current.getBoundingClientRect(),ne=f/(u?ee.width:ee.height);if(V){const Y=(Rc(j,u)-G)*ne;let se=te;!S&&u?se-=Y:se+=Y;const ue=L.current,q=B.current,oe=q?se/q:0;let Z=Math.ceil(oe*ue);Z=Math.max(Z,0),Z=Math.min(Z,ue),_=Ke(()=>{c(Z,u)})}},U=()=>{b(!1),l()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",U,{passive:!0}),window.addEventListener("touchend",U,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),Ke.cancel(_)}}},[h]),i.useEffect(()=>(P(),()=>{clearTimeout(R.current)}),[o]),i.useImperativeHandle(t,()=>({delayHidden:P}));const D=`${n}-scrollbar`,k={position:"absolute",visibility:I?null:"hidden"},W={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(k,{height:8,left:0,right:0,bottom:0}),Object.assign(W,{height:"100%",width:d,[S?"left":"right"]:A})):(Object.assign(k,{width:8,top:0,bottom:0,[S?"right":"left"]:0}),Object.assign(W,{width:"100%",height:d,top:A})),i.createElement("div",{ref:x,className:z(D,{[`${D}-horizontal`]:u,[`${D}-vertical`]:!u,[`${D}-visible`]:I}),style:{...k,...m},onMouseDown:T,onMouseMove:P},i.createElement("div",{ref:w,className:z(`${D}-thumb`,{[`${D}-thumb-moving`]:h}),style:{...W,...p},onMouseDown:H}))}),mP=20;function np(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,mP),Math.floor(n)}const pP=[],gP={overflowY:"auto",overflowAnchor:"none"};function hP(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:s,fullHeight:a=!0,style:l,data:c,children:u,itemKey:d,virtual:f,direction:m,scrollWidth:p,component:g="div",onScroll:h,onVirtualScroll:b,onVisibleChange:$,innerProps:y,extraRender:v,styles:C,showScrollBar:S="optional",...x}=e,w=i.useCallback(ce=>typeof d=="function"?d(ce):ce==null?void 0:ce[d],[d]),[I,E,R,P]=lP(w),M=!!(f!==!1&&o&&s),O=i.useMemo(()=>Object.values(R.maps).reduce((ce,Q)=>ce+Q,0),[R.id,R.maps]),A=M&&c&&(Math.max(s*c.length,O)>o||!!p),T=m==="rtl",F=z(n,{[`${n}-rtl`]:T},r),H=c||pP,L=i.useRef(),B=i.useRef(),D=i.useRef(),[k,W]=i.useState(0),[_,X]=i.useState(0),[U,j]=i.useState(!1),V=()=>{j(!0)},G=()=>{j(!1)},te={getKey:w};function ee(ce){W(Q=>{let pe;typeof ce=="function"?pe=ce(Q):pe=ce;const ie=Ee(pe);return L.current.scrollTop=ie,ie})}const ne=i.useRef({start:0,end:H.length}),Y=i.useRef(),[se]=oP(H,w);Y.current=se;const{scrollHeight:ue,start:q,end:oe,offset:Z}=i.useMemo(()=>{var xe;if(!M)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!A)return{scrollHeight:((xe=B.current)==null?void 0:xe.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};let ce=0,Q,pe,ie;const he=H.length;for(let Te=0;Te<he;Te+=1){const Fe=H[Te],Je=w(Fe),tt=R.get(Je),Ze=ce+(tt===void 0?s:tt);Ze>=k&&Q===void 0&&(Q=Te,pe=ce),Ze>k+o&&ie===void 0&&(ie=Te),ce=Ze}return Q===void 0&&(Q=0,pe=0,ie=Math.ceil(o/s)),ie===void 0&&(ie=H.length-1),ie=Math.min(ie+1,H.length-1),{scrollHeight:ce,start:Q,end:ie,offset:pe}},[A,M,k,H,P,o]);ne.current.start=q,ne.current.end=oe,i.useLayoutEffect(()=>{const ce=R.getRecord();if(ce.size===1){const Q=Array.from(ce.keys())[0],pe=ce.get(Q),ie=H[q];if(ie&&pe===void 0&&w(ie)===Q){const Te=R.get(Q)-s;ee(Fe=>Fe+Te)}}R.resetRecord()},[ue]);const[J,ae]=i.useState({width:0,height:o}),we=ce=>{ae({width:ce.offsetWidth,height:ce.offsetHeight})},de=i.useRef(),ge=i.useRef(),be=i.useMemo(()=>np(J.width,p),[J.width,p]),me=i.useMemo(()=>np(J.height,ue),[J.height,ue]),Ne=ue-o,Ae=i.useRef(Ne);Ae.current=Ne;function Ee(ce){let Q=ce;return Number.isNaN(Ae.current)||(Q=Math.min(Q,Ae.current)),Q=Math.max(Q,0),Q}const ze=k<=0,Re=k>=Ne,ve=_<=0,fe=_>=p,Ce=ab(ze,Re,ve,fe),He=()=>({x:T?-_:_,y:k}),Ie=i.useRef(He()),re=We(ce=>{if(b){const Q={...He(),...ce};(Ie.current.x!==Q.x||Ie.current.y!==Q.y)&&(b(Q),Ie.current=Q)}});function $e(ce,Q){const pe=ce;Q?(Vn.flushSync(()=>{X(pe)}),re()):ee(pe)}function ke(ce){const{scrollTop:Q}=ce.currentTarget;Q!==k&&ee(Q),h==null||h(ce),re()}const De=ce=>{let Q=ce;const pe=p?p-J.width:0;return Q=Math.max(Q,0),Q=Math.min(Q,pe),Q},ot=We((ce,Q)=>{Q?(Vn.flushSync(()=>{X(pe=>{const ie=pe+(T?-ce:ce);return De(ie)})}),re()):ee(pe=>pe+ce)}),[qe,ft]=sP(M,ze,Re,ve,fe,!!p,ot);cP(M,L,(ce,Q,pe,ie)=>{const he=ie;return Ce(ce,Q,pe)?!1:!he||!he._virtualHandled?(he&&(he._virtualHandled=!0),qe({preventDefault(){},deltaX:ce?Q:0,deltaY:ce?0:Q}),!0):!1}),uP(A,L,ce=>{ee(Q=>Q+ce)}),nt(()=>{function ce(pe){const ie=ze&&pe.detail<0,he=Re&&pe.detail>0;M&&!ie&&!he&&pe.preventDefault()}const Q=L.current;return Q.addEventListener("wheel",qe,{passive:!1}),Q.addEventListener("DOMMouseScroll",ft,{passive:!0}),Q.addEventListener("MozMousePixelScroll",ce,{passive:!1}),()=>{Q.removeEventListener("wheel",qe),Q.removeEventListener("DOMMouseScroll",ft),Q.removeEventListener("MozMousePixelScroll",ce)}},[M,ze,Re]),nt(()=>{if(p){const ce=De(_);X(ce),re({x:ce})}},[J.width,p]);const Qe=()=>{var ce,Q;(ce=de.current)==null||ce.delayHidden(),(Q=ge.current)==null||Q.delayHidden()},st=fP(L,H,R,s,w,()=>E(!0),ee,Qe);i.useImperativeHandle(t,()=>({nativeElement:D.current,getScrollInfo:He,scrollTo:ce=>{function Q(pe){return pe&&typeof pe=="object"&&("left"in pe||"top"in pe)}Q(ce)?(ce.left!==void 0&&X(De(ce.left)),st(ce.top)):st(ce)}})),nt(()=>{if($){const ce=H.slice(q,oe+1);$(ce,H)}},[q,oe,H]);const lt=iP(H,w,R,s),Se=v==null?void 0:v({start:q,end:oe,virtual:A,offsetX:_,offsetY:Z,rtl:T,getSize:lt}),Be=nP(H,q,oe,p,_,I,u,te);let Pe=null;o&&(Pe={[a?"height":"maxHeight"]:o,...gP},M&&(Pe.overflowY="hidden",p&&(Pe.overflowX="hidden"),U&&(Pe.pointerEvents="none")));const ye={};return T&&(ye.dir="rtl"),i.createElement("div",Et({ref:D,style:{...l,position:"relative"},className:F},ye,x),i.createElement(vs,{onResize:we},i.createElement(g,{className:`${n}-holder`,style:Pe,ref:L,onScroll:ke,onMouseEnter:Qe},i.createElement(ib,{prefixCls:n,height:ue,offsetX:_,offsetY:Z,scrollWidth:p,onInnerResize:E,ref:B,innerProps:y,rtl:T,extra:Se},Be))),A&&ue>o&&i.createElement(tp,{ref:de,prefixCls:n,scrollOffset:k,scrollRange:ue,rtl:T,onScroll:$e,onStartMove:V,onStopMove:G,spinSize:me,containerSize:J.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb,showScrollBar:S}),A&&p>J.width&&i.createElement(tp,{ref:ge,prefixCls:n,scrollOffset:_,scrollRange:p,rtl:T,onScroll:$e,onStartMove:V,onStopMove:G,spinSize:be,containerSize:J.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb,showScrollBar:S}))}const lb=i.forwardRef(hP);lb.displayName="List";function bP(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function qo(){return qo=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},qo.apply(this,arguments)}function rp(e){return typeof e=="string"||typeof e=="number"}const vP=(e,t)=>{var ee,ne;const{prefixCls:n,id:r,open:o,multiple:s,mode:a,searchValue:l,toggleOpen:c,notFoundContent:u,onPopupScroll:d,showScrollBar:f,lockOptions:m}=Lr(),{maxCount:p,flattenOptions:g,onActiveValue:h,defaultActiveFirstOption:b,onSelect:$,menuItemSelectedIcon:y,rawValues:v,fieldNames:C,virtual:S,direction:x,listHeight:w,listItemHeight:I,optionRender:E,classNames:R,styles:P}=i.useContext(yd),M=`${n}-item`,O=po(()=>g,[o,m],(Y,se)=>se[0]&&!se[1]),A=i.useRef(null),T=i.useMemo(()=>s&&vc(p)&&(v==null?void 0:v.size)>=p,[s,p,v==null?void 0:v.size]),F=Y=>{Y.preventDefault()},H=Y=>{var se;(se=A.current)==null||se.scrollTo(typeof Y=="number"?{index:Y}:Y)},L=i.useCallback(Y=>a==="combobox"?!1:v.has(Y),[a,[...v].toString(),v.size]),B=(Y,se=1)=>{const ue=O.length;for(let q=0;q<ue;q+=1){const oe=(Y+q*se+ue)%ue,{group:Z,data:J}=O[oe]||{};if(!Z&&!(J!=null&&J.disabled)&&(L(J.value)||!T))return oe}return-1},[D,k]=i.useState(()=>B(0)),W=(Y,se=!1)=>{k(Y);const ue={source:se?"keyboard":"mouse"},q=O[Y];if(!q){h(null,-1,ue);return}h(q.value,Y,ue)};i.useEffect(()=>{W(b!==!1?B(0):-1)},[O.length,l]);const _=i.useCallback(Y=>a==="combobox"?String(Y).toLowerCase()===l.toLowerCase():v.has(Y),[a,l,[...v].toString(),v.size]);i.useEffect(()=>{var se;let Y;if(!s&&o&&v.size===1){const ue=Array.from(v)[0],q=O.findIndex(({data:oe})=>l?String(oe.value).startsWith(l):oe.value===ue);q!==-1&&(W(q),Y=setTimeout(()=>{H(q)}))}return o&&((se=A.current)==null||se.scrollTo(void 0)),()=>clearTimeout(Y)},[o,l]);const X=Y=>{Y!==void 0&&$(Y,{selected:!v.has(Y)}),s||c(!1)};if(i.useImperativeHandle(t,()=>({onKeyDown:Y=>{const{which:se,ctrlKey:ue}=Y;switch(se){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{let q=0;if(se===Me.UP?q=-1:se===Me.DOWN?q=1:bP()&&ue&&(se===Me.N?q=1:se===Me.P&&(q=-1)),q!==0){const oe=B(D+q,q);H(oe),W(oe,!0)}break}case Me.TAB:case Me.ENTER:{const q=O[D];if(!q||q.data.disabled)return X(void 0);!T||v.has(q.value)?X(q.value):X(void 0),o&&Y.preventDefault();break}case Me.ESC:c(!1),o&&Y.stopPropagation()}},onKeyUp:()=>{},scrollTo:Y=>{H(Y)}})),O.length===0)return i.createElement("div",{role:"listbox",id:`${r}_list`,className:`${M}-empty`,onMouseDown:F},u);const U=Object.keys(C).map(Y=>C[Y]),j=Y=>Y.label;function V(Y,se){const{group:ue}=Y;return{role:ue?"presentation":"option",id:`${r}_list_${se}`}}const G=Y=>{const se=O[Y];if(!se)return null;const ue=se.data||{},{value:q}=ue,{group:oe}=se,Z=cn(ue,!0),J=j(se);return se?i.createElement("div",qo({"aria-label":typeof J=="string"&&!oe?J:null},Z,{key:Y},V(se,Y),{"aria-selected":_(q)}),q):null},te={role:"listbox",id:`${r}_list`};return i.createElement(i.Fragment,null,S&&i.createElement("div",qo({},te,{style:{height:0,width:0,overflow:"hidden"}}),G(D-1),G(D),G(D+1)),i.createElement(lb,{itemKey:"key",ref:A,data:O,height:w,itemHeight:I,fullHeight:!1,onMouseDown:F,onScroll:d,virtual:S,direction:x,innerProps:S?null:te,showScrollBar:f,className:(ee=R==null?void 0:R.popup)==null?void 0:ee.list,style:(ne=P==null?void 0:P.popup)==null?void 0:ne.list},(Y,se)=>{var re,$e;const{group:ue,groupOption:q,data:oe,label:Z,value:J}=Y,{key:ae}=oe;if(ue){const ke=oe.title??(rp(Z)?Z.toString():void 0);return i.createElement("div",{className:z(M,`${M}-group`,oe.className),title:ke},Z!==void 0?Z:ae)}const{disabled:we,title:de,children:ge,style:be,className:me,...Ne}=oe,Ae=yt(Ne,U),Ee=L(J),ze=we||!Ee&&T,Re=`${M}-option`,ve=z(M,Re,me,(re=R==null?void 0:R.popup)==null?void 0:re.listItem,{[`${Re}-grouped`]:q,[`${Re}-active`]:D===se&&!ze,[`${Re}-disabled`]:ze,[`${Re}-selected`]:Ee}),fe=j(Y),Ce=!y||typeof y=="function"||Ee,He=typeof fe=="number"?fe:fe||J;let Ie=rp(He)?He.toString():void 0;return de!==void 0&&(Ie=de),i.createElement("div",qo({},cn(Ae),S?{}:V(Y,se),{"aria-selected":S?void 0:_(J),className:ve,title:Ie,onMouseMove:()=>{D===se||ze||W(se)},onClick:()=>{ze||X(J)},style:{...($e=P==null?void 0:P.popup)==null?void 0:$e.listItem,...be}}),i.createElement("div",{className:`${Re}-content`},typeof E=="function"?E(Y,{index:se}):He),i.isValidElement(y)||Ee,Ce&&i.createElement(sb,{className:`${M}-option-state`,customizeIcon:y,customizeIconProps:{value:J,disabled:ze,isSelected:Ee}},Ee?"✓":null))}))},yP=i.forwardRef(vP),$P=(e,t)=>{const n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(()=>{const{values:s,options:a}=n.current,l=e.map(d=>{var f;return d.label===void 0?{...d,label:(f=s.get(d.value))==null?void 0:f.label}:d}),c=new Map,u=new Map;return l.forEach(d=>{c.set(d.value,d),u.set(d.value,t.get(d.value)||a.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=i.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,o]};function ka(e,t){return J0(e).join("").toUpperCase().includes(t)}const CP=(e,t,n,r,o)=>i.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:a,value:l}=t,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:(p,g)=>o&&o.length?o.some(h=>ka(g[h],d)):g[s]?ka(g[a!=="children"?a:"label"],d):ka(g[l],d),m=u?p=>yc(p):p=>p;return e.forEach(p=>{if(p[s]){if(f(n,m(p)))c.push(p);else{const h=p[s].filter(b=>f(n,m(b)));h.length&&c.push({...p,[s]:h})}return}f(n,m(p))&&c.push(p)}),c},[e,r,o,n,t]);function SP(e){const{key:t,props:{children:n,value:r,...o}}=e;return{key:t,value:r!==void 0?r:t,children:n,...o}}function cb(e,t=!1){return Vt(e).map((n,r)=>{if(!i.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:s,props:{children:a,...l}}=n;return t||!o?SP(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...l,options:cb(a)}}).filter(n=>n)}const xP=(e,t,n,r,o)=>i.useMemo(()=>{let s=e;!e&&(s=cb(t));const l=new Map,c=new Map,u=(f,m,p)=>{p&&typeof p=="string"&&f.set(m[p],m)},d=(f,m=!1)=>{for(let p=0;p<f.length;p+=1){const g=f[p];!g[n.options]||m?(l.set(g[n.value],g),u(c,g,n.label),r.forEach(h=>{u(c,g,h)}),u(c,g,o)):d(g[n.options],!0)}};return d(s),{options:s,valueOptions:l,labelOptions:c}},[e,t,n,r,o]);function op(e){const t=i.useRef();return t.current=e,i.useCallback((...r)=>t.current(...r),[])}function wP(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:s,filterSort:a,onSearch:l,autoClearSearchValue:c}=t;return i.useMemo(()=>{const u=typeof e=="object",d={filterOption:r,searchValue:o,optionFilterProp:s,filterSort:a,onSearch:l,autoClearSearchValue:c,...u?e:{}};return[u||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,d]},[n,e,r,o,s,a,l,c])}function Mc(){return Mc=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},Mc.apply(this,arguments)}const EP=["inputValue"];function IP(e){return!e||typeof e!="object"}const PP=i.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:s,fieldNames:a,showSearch:l,searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:f,optionFilterProp:m,filterSort:p,onSelect:g,onDeselect:h,onActive:b,popupMatchSelectWidth:$=!0,optionLabelProp:y,options:v,optionRender:C,children:S,defaultActiveFirstOption:x,menuItemSelectedIcon:w,virtual:I,direction:E,listHeight:R=200,listItemHeight:P=20,labelRender:M,value:O,defaultValue:A,labelInValue:T,onChange:F,maxCount:H,classNames:L,styles:B,...D}=e,k={searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:f,optionFilterProp:m,filterSort:p},[W,_]=wP(l,k,r),{filterOption:X,searchValue:U,optionFilterProp:j,filterSort:V,onSearch:G,autoClearSearchValue:te=!0}=_,ee=i.useMemo(()=>j?Array.isArray(j)?j:[j]:[],[j]),ne=Xn(n),Y=Pc(r),se=!!(!v&&S),ue=i.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),q=i.useMemo(()=>K0(a,se),[JSON.stringify(a),se]),[oe,Z]=bt("",U),J=oe||"",ae=xP(v,S,q,ee,y),{valueOptions:we,labelOptions:de,options:ge}=ae,be=i.useCallback(ie=>J0(ie).map(xe=>{let Te,Fe,Je,tt;IP(xe)?Te=xe:(Fe=xe.label,Te=xe.value);const Ze=we.get(Te);return Ze&&(Fe===void 0&&(Fe=Ze==null?void 0:Ze[y||q.label]),Je=Ze==null?void 0:Ze.disabled,tt=Ze==null?void 0:Ze.title),{label:Fe,value:Te,key:Te,disabled:Je,title:tt}}),[q,y,we]),[me,Ne]=bt(A,O),Ae=i.useMemo(()=>{var xe;const he=be(Y&&me===null?[]:me);return r==="combobox"&&yI((xe=he[0])==null?void 0:xe.value)?[]:he},[me,be,r,Y]),[Ee,ze]=$P(Ae,we),Re=i.useMemo(()=>{if(!r&&Ee.length===1){const ie=Ee[0];if(ie.value===null&&(ie.label===null||ie.label===void 0))return[]}return Ee.map(ie=>({...ie,label:(typeof M=="function"?M(ie):ie.label)??ie.value}))},[r,Ee,M]),ve=i.useMemo(()=>new Set(Ee.map(ie=>ie.value)),[Ee]);i.useEffect(()=>{var ie;if(r==="combobox"){const he=(ie=Ee[0])==null?void 0:ie.value;Z(vI(he)?String(he):"")}},[Ee]);const fe=op((ie,he)=>{const xe=he??ie;return{[q.value]:ie,[q.label]:xe}}),Ce=i.useMemo(()=>{if(r!=="tags")return ge;const ie=[...ge],he=xe=>we.has(xe);return[...Ee].sort((xe,Te)=>xe.value<Te.value?-1:1).forEach(xe=>{const Te=xe.value;he(Te)||ie.push(fe(Te,xe.label))}),ie},[fe,ge,we,Ee,r]),He=CP(Ce,q,J,ue,ee),Ie=i.useMemo(()=>{const ie=he=>ee.length?ee.some(xe=>(he==null?void 0:he[xe])===J):(he==null?void 0:he.value)===J;return r!=="tags"||!J||He.some(he=>ie(he))||He.some(he=>he[q.value]===J)?He:[fe(J),...He]},[fe,ee,r,He,J,q]),re=ie=>[...ie].sort((xe,Te)=>V(xe,Te,{searchValue:J})).map(xe=>Array.isArray(xe.options)?{...xe,options:xe.options.length>0?re(xe.options):xe.options}:xe),$e=i.useMemo(()=>V?re(Ie):Ie,[Ie,V,J]),ke=i.useMemo(()=>mI($e,{fieldNames:q,childrenAsData:se}),[$e,q,se]),De=ie=>{const he=be(ie);if(Ne(he),F&&(he.length!==Ee.length||he.some((xe,Te)=>{var Fe;return((Fe=Ee[Te])==null?void 0:Fe.value)!==(xe==null?void 0:xe.value)}))){const xe=T?he.map(({label:Fe,value:Je})=>({label:Fe,value:Je})):he.map(Fe=>Fe.value),Te=he.map(Fe=>yc(ze(Fe.value)));F(Y?xe:xe[0],Y?Te:Te[0])}},[ot,qe]=i.useState(null),[ft,Qe]=i.useState(0),st=x!==void 0?x:r!=="combobox",lt=i.useRef(),Se=i.useCallback((ie,he,{source:xe="keyboard"}={})=>{Qe(he),s&&r==="combobox"&&ie!==null&&xe==="keyboard"&&qe(String(ie));const Te=Promise.resolve().then(()=>{lt.current===Te&&(b==null||b(ie))});lt.current=Te},[s,r,b]),Be=(ie,he,xe)=>{const Te=()=>{const Fe=ze(ie);return[T?{label:Fe==null?void 0:Fe[q.label],value:ie}:ie,yc(Fe)]};if(he&&g){const[Fe,Je]=Te();g(Fe,Je)}else if(!he&&h&&xe!=="clear"){const[Fe,Je]=Te();h(Fe,Je)}},Pe=op((ie,he)=>{let xe;const Te=Y?he.selected:!0;Te?xe=Y?[...Ee,ie]:[ie]:xe=Ee.filter(Fe=>Fe.value!==ie),De(xe),Be(ie,Te),r==="combobox"?qe(""):(!Pc||te)&&(Z(""),qe(""))}),ye=(ie,he)=>{De(ie);const{type:xe,values:Te}=he;(xe==="remove"||xe==="clear")&&Te.forEach(Fe=>{Be(Fe.value,!1,xe)})},ce=(ie,he)=>{if(Z(ie),qe(null),he.source==="submit"){const xe=(ie||"").trim();if(xe){const Te=Array.from(new Set([...ve,xe]));De(Te),Be(xe,!0),Z("")}return}he.source!=="blur"&&(r==="combobox"&&De(ie),G==null||G(ie))},Q=ie=>{let he=ie;r!=="tags"&&(he=ie.map(Te=>{const Fe=de.get(Te);return Fe==null?void 0:Fe.value}).filter(Te=>Te!==void 0));const xe=Array.from(new Set([...ve,...he]));De(xe),xe.forEach(Te=>{Be(Te,!0)})},pe=i.useMemo(()=>({...ae,flattenOptions:ke,onActiveValue:Se,defaultActiveFirstOption:st,onSelect:Pe,menuItemSelectedIcon:w,rawValues:ve,fieldNames:q,virtual:I!==!1&&$!==!1,direction:E,listHeight:R,listItemHeight:P,childrenAsData:se,maxCount:H,optionRender:C,classNames:L,styles:B}),[H,ae,ke,Se,st,Pe,w,ve,q,I,$,E,R,P,se,C,L,B]);return i.createElement(yd.Provider,{value:pe},i.createElement(eP,Mc({},D,{id:ne,prefixCls:o,ref:t,omitDomProps:EP,mode:r,classNames:L,styles:B,displayValues:Re,onDisplayValuesChange:ye,maxCount:H,direction:E,showSearch:W,searchValue:J,onSearch:ce,autoClearSearchValue:te,onSearchSplit:Q,popupMatchSelectWidth:$,OptionList:yP,emptyOptions:!ke.length,activeValue:ot,activeDescendantId:`${ne}_list_${ft}`})))}),Sd=PP;Sd.Option=Cd;Sd.OptGroup=$d;const zr=(e,t,n)=>z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),ys=(e,t)=>t||e,RP=()=>{const[,e]=jt(),[t]=dn("Empty"),r=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.7)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),i.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"}),i.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"}),i.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"})),i.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"}),i.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},i.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),i.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},MP=()=>{const[,e]=jt(),[t]=dn("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:a,shadowColor:l,contentColor:c}=i.useMemo(()=>({borderColor:new gt(n).onBackground(s).toHexString(),shadowColor:new gt(r).onBackground(s).toHexString(),contentColor:new gt(o).onBackground(s).toHexString()}),[n,r,o,s]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),i.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}))))},NP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:a,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}}}}},TP=at("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=rt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return NP(o)}),ub=i.createElement(RP,null),db=i.createElement(MP,null),yr=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:s,children:a,imageStyle:l,style:c,classNames:u,styles:d,...f}=e,{getPrefixCls:m,direction:p,className:g,style:h,classNames:b,styles:$,image:y}=dt("empty"),v=m("empty",r),[C,S]=TP(v),[x,w]=pt([b,u],[$,d],{props:e}),[I]=dn("Empty"),E=typeof s<"u"?s:I==null?void 0:I.description,R=typeof E=="string"?E:"empty",P=o??y??ub;let M=null;return typeof P=="string"?M=i.createElement("img",{draggable:!1,alt:R,src:P}):M=P,i.createElement("div",{className:z(C,S,v,g,{[`${v}-normal`]:P===db,[`${v}-rtl`]:p==="rtl"},t,n,x.root),style:{...w.root,...h,...c},...f},i.createElement("div",{className:z(`${v}-image`,x.image),style:{...l,...w.image}},M),E&&i.createElement("div",{className:z(`${v}-description`,x.description),style:w.description},E),a&&i.createElement("div",{className:z(`${v}-footer`,x.footer),style:w.footer},a))};yr.PRESENTED_IMAGE_DEFAULT=ub;yr.PRESENTED_IMAGE_SIMPLE=db;const OP=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(je),r=n("empty");switch(t){case"Table":case"List":return N.createElement(yr,{image:yr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return N.createElement(yr,{image:yr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return N.createElement(yr,null)}},qi=(e,t,n)=>{const{variant:r,[e]:o}=i.useContext(je),s=i.useContext(kE),a=o==null?void 0:o.variant;let l;typeof t<"u"?l=t:n===!1?l="borderless":l=s??a??r??"outlined";const c=Xy.includes(l);return[l,c]},AP=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function zP(e,t){return e||AP(t)}const sp=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},BP=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Ct(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
||
${o}${l}bottomLeft,
|
||
${s}${l}bottomLeft
|
||
`]:{animationName:sd},[`
|
||
${o}${l}topLeft,
|
||
${s}${l}topLeft,
|
||
${o}${l}topRight,
|
||
${s}${l}topRight
|
||
`]:{animationName:ad},[`${a}${l}bottomLeft`]:{animationName:id},[`
|
||
${a}${l}topLeft,
|
||
${a}${l}topRight
|
||
`]:{animationName:ld},"&-hidden":{display:"none"},[r]:{...sp(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Wn},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...sp(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},cr(e,"slide-up"),cr(e,"slide-down"),gi(e,"move-up"),gi(e,"move-down")]},LP=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},ip=4,HP=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:l,colorIcon:c,colorIconHover:u,inputPaddingHorizontalBase:d,antCls:f}=e,[m,p]=At(f,"select");return{"&-multiple":{[m("multi-item-background")]:e.multipleItemBg,[m("multi-item-border-color")]:"transparent",[m("multi-item-border-radius")]:e.borderRadiusSM,[m("multi-item-height")]:e.multipleItemHeight,[m("multi-padding-base")]:`calc((${p("height")} - ${p("multi-item-height")}) / 2)`,[m("multi-padding-vertical")]:`calc(${p("multi-padding-base")} - ${a} - ${l})`,[m("multi-item-padding-horizontal")]:`calc(${d} - ${p("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:p("multi-padding-vertical"),paddingInlineStart:`calc(${p("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:p("line-height"),insetInlineStart:p("multi-item-padding-horizontal"),width:`calc(100% - ${p("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:p("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${ip}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
||
${t}-content-item-suffix:first-child`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${p("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${p("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:n(a).mul(2).equal(),background:p("multi-item-background"),borderRadius:p("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:s,transition:["height","line-height","padding"].map(g=>`${g} ${e.motionDurationSlow}`).join(","),"&-content":{...Wn,marginInlineEnd:s},"&-remove":{...go(),display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}}},[`${t}-input`]:{lineHeight:n(a).mul(2).add(p("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:ip,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[m("multi-item-height")]:e.multipleItemHeightSM,[m("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[m("multi-item-height")]:e.multipleItemHeightLG,[m("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[m("multi-item-border-color")]:e.colorSplit,[m("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[m("multi-item-border-color")]:"transparent"}}}}},Va=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=At(r,"select"),{border:s,borderHover:a,borderActive:l,borderOutline:c}=t,u=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:s,[o("background-color")]:u,[o("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:a,[o("background-color")]:t.backgroundHover||u},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||u,boxShadow:`0 0 0 ${K(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Ws=(e,t,n,r={},o={},s)=>{const{componentCls:a}=e;return{[`&${a}-${t}`]:[Va(e,n),{[`&${a}-status-error`]:Va(e,{...n,color:r.color||e.colorError,...r}),[`&${a}-status-warning`]:Va(e,{...n,color:o.color||e.colorWarning,...o})},s]}},DP=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:o,antCls:s,calc:a}=e,[l,c]=At(s,"select");return{[t]:[{[l("border-radius")]:e.borderRadius,[l("border-color")]:"#000",[l("border-size")]:e.lineWidth,[l("background-color")]:e.colorBgContainer,[l("font-size")]:e.fontSize,[l("line-height")]:e.lineHeight,[l("font-height")]:n,[l("color")]:e.colorText,[l("height")]:r,[l("padding-horizontal")]:a(e.paddingSM).sub(e.lineWidth).equal(),[l("padding-vertical")]:`calc((${c("height")} - ${c("font-height")}) / 2 - ${c("border-size")})`,...Ct(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:c("border-radius"),borderWidth:c("border-size"),borderStyle:e.lineType,borderColor:c("border-color"),background:c("background-color"),fontSize:c("font-size"),lineHeight:c("line-height"),color:c("color"),paddingInline:c("padding-horizontal"),paddingBlock:c("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Wn,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:a(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[o]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[l("height")]:e.controlHeightSM,[l("padding-horizontal")]:a(e.paddingXS).sub(e.lineWidth).equal(),[l("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c("padding-horizontal")}},"&-lg":{[l("height")]:e.controlHeightLG,[l("font-size")]:e.fontSizeLG,[l("line-height")]:e.lineHeightLG,[l("font-height")]:e.fontHeightLG,[l("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:c("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:`calc(${c("padding-vertical")} * -1)`,lineHeight:`calc(${c("font-height")} + ${c("padding-vertical")} * 2)`},[`${t}-content`]:{...Wn,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},HP(e),Ws(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Ws(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Ws(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Ws(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),LP(e)]}},FP=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:s,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:h,colorBgContainerDisabled:b,colorTextDisabled:$,colorPrimaryHover:y,colorPrimary:v,controlOutline:C}=e,S=l*2,x=r*2,w=Math.min(o-S,o-x),I=Math.min(s-S,s-x),E=Math.min(a-S,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:I,multipleItemHeightLG:E,multipleSelectorBgDisabled:b,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:v,activeOutlineColor:C,selectAffixPadding:l}},_P=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,s={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Ct(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Wn,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(a=>`${a} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},kP=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_P(e),BP(e),{[`${t}-rtl`]:{direction:"rtl"}},yo(e,{focusElCls:`${t}-focused`})]},VP=at("Select",(e,{rootPrefixCls:t})=>{const n=rt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kP(n),DP(n)]},FP,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var WP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Nc(){return Nc=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},Nc.apply(this,arguments)}const jP=(e,t)=>i.createElement(Ye,Nc({},e,{ref:t,icon:WP})),fb=i.forwardRef(jP);var qP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Tc(){return Tc=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},Tc.apply(this,arguments)}const GP=(e,t)=>i.createElement(Ye,Tc({},e,{ref:t,icon:qP})),mb=i.forwardRef(GP);var XP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function Oc(){return Oc=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},Oc.apply(this,arguments)}const UP=(e,t)=>i.createElement(Ye,Oc({},e,{ref:t,icon:XP})),pb=i.forwardRef(UP);function KP({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,loadingIcon:s,multiple:a,hasFeedback:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??i.createElement(is,null),p=$=>e===null&&!l&&!d?null:i.createElement(i.Fragment,null,c!==!1&&$,l&&u);let g=null;e!==void 0?g=p(e):o?g=p(s??i.createElement(us,{spin:!0})):g=({open:$,showSearch:y})=>p($&&y?i.createElement(pb,null):i.createElement(mb,null));let h=null;n!==void 0?h=n:a?h=i.createElement(fb,null):h=null;let b=null;return r!==void 0?b=r:b=i.createElement(Br,null),{clearIcon:m,suffixIcon:g,itemIcon:h,removeIcon:b}}function YP(e){return N.useMemo(()=>{if(e)return(...t)=>N.createElement(ur,{space:!0},e.apply(void 0,t))},[e])}function QP(e,t){return t!==void 0?t:e!==null}const gb="SECRET_COMBOBOX_MODE_DO_NOT_USE",ZP=(e,t)=>{var he,xe,Te,Fe,Je;const{prefixCls:n,bordered:r,className:o,rootClassName:s,getPopupContainer:a,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:m,disabled:p,notFoundContent:g,status:h,builtinPlacements:b,dropdownMatchSelectWidth:$,popupMatchSelectWidth:y,direction:v,style:C,allowClear:S,variant:x,popupStyle:w,dropdownStyle:I,transitionName:E,tagRender:R,maxCount:P,prefix:M,dropdownRender:O,popupRender:A,onDropdownVisibleChange:T,onOpenChange:F,styles:H,classNames:L,...B}=e,{getPopupContainer:D,getPrefixCls:k,renderEmpty:W,direction:_,virtual:X,popupMatchSelectWidth:U,popupOverflow:j}=i.useContext(je),{showSearch:V,style:G,styles:te,className:ee,classNames:ne}=dt("select"),[,Y]=jt(),se=f??(Y==null?void 0:Y.controlHeight),ue=k("select",n),q=k(),oe=v??_,{compactSize:Z,compactItemClassnames:J}=Un(ue,oe),[ae,we]=qi("select",x,r),de=_t(ue),[ge,be]=VP(ue,de),me=i.useMemo(()=>{const{mode:tt}=e;if(tt!=="combobox")return tt===gb?"combobox":tt},[e.mode]),Ne=me==="multiple"||me==="tags",Ae=QP(e.suffixIcon,e.showArrow),Ee=y??$??U,ze=YP(A||O),Re=F||T,{status:ve,hasFeedback:fe,isFormItemInput:Ce,feedbackIcon:He}=i.useContext($n),Ie=ys(ve,h);let re;g!==void 0?re=g:me==="combobox"?re=null:re=(W==null?void 0:W("Select"))||i.createElement(OP,{componentName:"Select"});const{suffixIcon:$e,itemIcon:ke,removeIcon:De,clearIcon:ot}=KP({...B,multiple:Ne,hasFeedback:fe,feedbackIcon:He,showSuffixIcon:Ae,componentName:"Select"}),qe=S===!0?{clearIcon:ot}:S,ft=yt(B,["suffixIcon","itemIcon"]),Qe=Jt(tt=>m??Z??tt),st=i.useContext(yn),lt=p??st,Se={...e,variant:ae,status:Ie,disabled:lt,size:Qe},[Be,Pe]=pt([ne,L],[te,H],{props:Se},{popup:{_default:"root"}}),ye=z((he=Be.popup)==null?void 0:he.root,l,c,{[`${ue}-dropdown-${oe}`]:oe==="rtl"},s,be,de,ge),ce={...(xe=Pe.popup)==null?void 0:xe.root,...w??I},Q=z({[`${ue}-lg`]:Qe==="large",[`${ue}-sm`]:Qe==="small",[`${ue}-rtl`]:oe==="rtl",[`${ue}-${ae}`]:we,[`${ue}-in-form-item`]:Ce},zr(ue,Ie,fe),J,ee,o,Be.root,s,be,de,ge),pe=i.useMemo(()=>d!==void 0?d:oe==="rtl"?"bottomRight":"bottomLeft",[d,oe]),[ie]=ls("SelectLike",((Fe=(Te=Pe.popup)==null?void 0:Te.root)==null?void 0:Fe.zIndex)??(ce==null?void 0:ce.zIndex));return i.createElement(Sd,{ref:t,virtual:X,classNames:Be,styles:Pe,showSearch:V,...ft,style:{...Pe.root,...G,...C},popupMatchSelectWidth:Ee,transitionName:lr(q,"slide-up",E),builtinPlacements:zP(b,j),listHeight:u,listItemHeight:se,mode:me,prefixCls:ue,placement:pe,direction:oe,prefix:M,suffixIcon:$e,menuItemSelectedIcon:ke,removeIcon:De,allowClear:qe,notFoundContent:re,className:Q,getPopupContainer:a||D,popupClassName:ye,disabled:lt,popupStyle:{...(Je=Pe.popup)==null?void 0:Je.root,...ce,zIndex:ie},maxCount:Ne?P:void 0,tagRender:Ne?R:void 0,popupRender:ze,onPopupVisibleChange:Re})},Co=i.forwardRef(ZP),JP=bd(Co,"popupAlign");Co.SECRET_COMBOBOX_MODE_DO_NOT_USE=gb;Co.Option=Cd;Co.OptGroup=$d;Co._InternalPanelDoNotUseOrYouWillBeFired=JP;const mo=e=>e?typeof e=="function"?e():e:null,xd=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:s,className:a,style:l}=e;return i.createElement("div",{id:r,className:z(`${n}-container`,o==null?void 0:o.container,a),style:{...s==null?void 0:s.container,...l},role:"tooltip"},typeof t=="function"?t():t)},Xr={shiftX:64,adjustY:1},Ur={adjustX:1,shiftY:!0},mn=[0,0],eR={left:{points:["cr","cl"],overflow:Ur,offset:[-4,0],targetOffset:mn},right:{points:["cl","cr"],overflow:Ur,offset:[4,0],targetOffset:mn},top:{points:["bc","tc"],overflow:Xr,offset:[0,-4],targetOffset:mn},bottom:{points:["tc","bc"],overflow:Xr,offset:[0,4],targetOffset:mn},topLeft:{points:["bl","tl"],overflow:Xr,offset:[0,-4],targetOffset:mn},leftTop:{points:["tr","tl"],overflow:Ur,offset:[-4,0],targetOffset:mn},topRight:{points:["br","tr"],overflow:Xr,offset:[0,-4],targetOffset:mn},rightTop:{points:["tl","tr"],overflow:Ur,offset:[4,0],targetOffset:mn},bottomRight:{points:["tr","br"],overflow:Xr,offset:[0,4],targetOffset:mn},rightBottom:{points:["bl","br"],overflow:Ur,offset:[4,0],targetOffset:mn},bottomLeft:{points:["tl","bl"],overflow:Xr,offset:[0,4],targetOffset:mn},leftBottom:{points:["br","bl"],overflow:Ur,offset:[-4,0],targetOffset:mn}};function Ac(){return Ac=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},Ac.apply(this,arguments)}const tR=i.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:s="rc-tooltip",children:a,onVisibleChange:l,afterVisibleChange:c,motion:u,placement:d="right",align:f={},destroyOnHidden:m=!1,defaultVisible:p,getTooltipContainer:g,arrowContent:h,overlay:b,id:$,showArrow:y=!0,classNames:v,styles:C,...S}=e,x=Xn($),w=i.useRef(null);i.useImperativeHandle(t,()=>w.current);const I={...S};"visible"in e&&(I.popupVisible=e.visible);const E=i.useMemo(()=>{if(!y)return!1;const P=y===!0?{}:y;return{...P,className:z(P.className,v==null?void 0:v.arrow),style:{...P.style,...C==null?void 0:C.arrow},content:P.content??h}},[y,v==null?void 0:v.arrow,C==null?void 0:C.arrow,h]),R=({open:P})=>{const M=i.Children.only(a),O={"aria-describedby":b&&P?x:void 0};return i.cloneElement(M,O)};return i.createElement(ki,Ac({popupClassName:v==null?void 0:v.root,prefixCls:s,popup:i.createElement(xd,{key:"content",prefixCls:s,id:x,classNames:v,styles:C},b),action:n,builtinPlacements:eR,popupPlacement:d,ref:w,popupAlign:f,getPopupContainer:g,onOpenChange:l,afterOpenChange:c,popupMotion:u,defaultPopupVisible:p,autoDestroy:m,mouseLeaveDelay:o,popupStyle:C==null?void 0:C.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:v==null?void 0:v.uniqueContainer,uniqueContainerStyle:C==null?void 0:C.uniqueContainer},I),R)});function wd(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,a=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,p=2*o-l,g=c,h=2*o-s,b=a,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),v=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,C=`path('M ${s} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${g} A ${r} ${r} 0 0 0 ${h} ${b} Z')`;return{arrowShadowWidth:$,arrowPath:C,arrowPolygon:v}}const nR=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:a,borderRadiusXS:l,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:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${K(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},hb=8;function Gi(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?hb:r}}function js(e,t){return e?t:{}}const Ed=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:a,antCls:l}=e,[c]=At(l,"tooltip"),{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...nR(e,t,o),"&:before":{background:t}}],...js(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,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")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[c("arrow-offset-x")]:`calc(100% - ${K(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...js(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[c("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[c("arrow-offset-x")]:`calc(100% - ${K(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...js(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},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}}),...js(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},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 rR(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const a={...s,...o};return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const ap={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"]}},oR={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"]}},sR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bb(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:a}=e,l=t/2,c={},u=Gi({contentRadius:s,limitVerticalRadius:!0});return Object.keys(ap).forEach(d=>{const m={...r&&oR[d]||ap[d],offset:[0,0],dynamicInset:!0};switch(c[d]=m,sR.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=l+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-l;break}m.overflow=rR(d,u,t,n),a&&(m.htmlRegion="visibleFirst")}),c}const Xi=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return N.useMemo(()=>{const r=n(e),o=n(t);return{...o,...r,show:r.show??o.show??!0}},[e,t])},lp="50%",iR=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:s,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p,antCls:g}=e,[h,b]=At(g,"tooltip"),$=t(a).add(p).add(m).equal(),v={minWidth:t(a).mul(2).add(p).equal(),minHeight:c,padding:`${K(e.calc(d).div(2).equal())} ${K(f)}`,color:b("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:a,boxShadow:u,boxSizing:"border-box"},C={[h("valid-offset-x")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",lp),`var(--arrow-y, ${lp})`].join(" ")};return[{[n]:{...Ct(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...C,"&-hidden":{display:"none"},[h("arrow-background-color")]:s,[`${n}-container`]:[v,d0(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:$},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,hb)}},[`${n}-content`]:{position:"relative"},...t$(e,(S,{darkColor:x})=>({[`&${n}-${S}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{[h("arrow-background-color")]:x}}})),"&-rtl":{direction:"rtl"}}},Ed(e,b("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...C,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},aR=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Gi({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...wd(rt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),vb=(e,t,n=!0)=>at("Tooltip",o=>{const{borderRadius:s,colorTextLightSolid:a,colorBgSpotlight:l,maxWidth:c}=o,u=rt(o,{tooltipMaxWidth:c,tooltipColor:a,tooltipBorderRadius:s,tooltipBg:l});return[iR(u),ds(o,"zoom-big-fast")]},aR,{resetStyle:!1,injectStyle:n})(e,t),lR=Tn.map(e=>`${e}-inverse`);function cR(e,t=!0){return t?[].concat(xt(lR),xt(Tn)).includes(e):Tn.includes(e)}const yb=(e,t,n)=>{const r=cR(n),[o]=At(e,"tooltip"),s=z({[`${t}-${n}`]:n&&r}),a={},l={},c=Bt(n).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return n&&!r&&(a.background=n,a[o("overlay-color")]=d,l[o("arrow-background-color")]=n),{className:s,overlayStyle:a,arrowStyle:l}},uR=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:s,overlayInnerStyle:a,classNames:l,styles:c}=e,{getPrefixCls:u}=i.useContext(je),d=u("tooltip",t),f=u(),m=_t(d),[p,g]=vb(d,m),h=yb(f,d,s),b=h.arrowStyle,$=i.useMemo(()=>({container:{...a,...h.overlayStyle}}),[a,h.overlayStyle]),y={...e,placement:r},[v,C]=pt([l],[$,c],{props:y}),S=z(m,p,g,d,`${d}-pure`,`${d}-placement-${r}`,n,h.className);return i.createElement("div",{className:S,style:b},i.createElement("div",{className:`${d}-arrow`}),i.createElement(xd,{...e,className:p,prefixCls:d,classNames:v,styles:C},o))},dR=i.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:s,children:a,afterOpenChange:l,arrow:c,destroyTooltipOnHide:u,destroyOnHidden:d,title:f,overlay:m,trigger:p,builtinPlacements:g,autoAdjustOverflow:h=!0,motion:b,getPopupContainer:$,placement:y="top",mouseEnterDelay:v=.1,mouseLeaveDelay:C=.1,rootClassName:S,styles:x,classNames:w,onOpenChange:I,overlayInnerStyle:E,overlayStyle:R,overlayClassName:P,...M}=e,[,O]=jt(),{getPopupContainer:A,getPrefixCls:T,direction:F,className:H,style:L,classNames:B,styles:D,arrow:k,trigger:W}=dt("tooltip"),_=Xi(c,k),X=_.show,U=p||W||"hover",j=i.useRef(null),V=()=>{var $e;($e=j.current)==null||$e.forceAlign()};i.useImperativeHandle(t,()=>{var $e,ke;return{forceAlign:V,nativeElement:($e=j.current)==null?void 0:$e.nativeElement,popupElement:(ke=j.current)==null?void 0:ke.popupElement}});const[G,te]=bt(e.defaultOpen??!1,e.open),ee=!f&&!m&&f!==0,ne=$e=>{te(ee?!1:$e),!ee&&I&&I($e)},Y=i.useMemo(()=>g||bb({arrowPointAtCenter:(_==null?void 0:_.pointAtCenter)??!1,autoAdjustOverflow:h,arrowWidth:X?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0}),[_,g,O,X,h]),se=i.useMemo(()=>f===0?f:m||f||"",[m,f]),ue=i.createElement(ur,{space:!0,form:!0},typeof se=="function"?se():se),q={...e,trigger:U,color:s,placement:y,builtinPlacements:g,openClassName:r,arrow:c,autoAdjustOverflow:h,getPopupContainer:$,children:a,destroyTooltipOnHide:u,destroyOnHidden:d},[oe,Z]=pt([B,w],[D,x],{props:q}),J=T("tooltip",n),ae=T(),we=e["data-popover-inject"];let de=G;!("open"in e)&&ee&&(de=!1);const ge=i.isValidElement(a)&&!Oh(a)?a:i.createElement("span",null,a),be=ge.props,me=!be.className||typeof be.className=="string"?z(be.className,r||`${J}-open`):be.className,Ne=_t(J),[Ae,Ee]=vb(J,Ne,!we),ze=yb(ae,J,s),Re=ze.arrowStyle,ve=z(Ne,Ae,Ee),fe=z(P,{[`${J}-rtl`]:F==="rtl"},ze.className,S,ve,H,oe.root),[Ce,He]=ls("Tooltip",M.zIndex),Ie={...Z.container,...E,...ze.overlayStyle},re=i.createElement(tR,{unique:!0,...M,trigger:U,zIndex:Ce,showArrow:X,placement:y,mouseEnterDelay:v,mouseLeaveDelay:C,prefixCls:J,classNames:{root:fe,container:oe.container,arrow:oe.arrow,uniqueContainer:z(ve,oe.container)},styles:{root:{...Re,...Z.root,...L,...R},container:Ie,uniqueContainer:Ie,arrow:Z.arrow},getTooltipContainer:$||o||A,ref:j,builtinPlacements:Y,overlay:ue,visible:de,onVisibleChange:ne,afterVisibleChange:l,arrowContent:i.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:lr(ae,"zoom-big-fast",typeof(b==null?void 0:b.motionName)=="string"?b==null?void 0:b.motionName:void 0),motionDeadline:1e3},destroyOnHidden:d??!!u},de?Wt(ge,{className:me}):ge);return i.createElement(_i.Provider,{value:He},re)}),Kn=dR;Kn._InternalPanelDoNotUseOrYouWillBeFired=uR;Kn.UniqueProvider=Ah;const cp="50%",fR=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:s,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:g,titlePadding:h,antCls:b}=e,[$,y]=At(b,"tooltip");return[{[t]:{...Ct(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[$("valid-offset-x")]:y("arrow-offset-x","var(--arrow-x)"),transformOrigin:[y("valid-offset-x",cp),`var(--arrow-y, ${cp})`].join(" "),[$("arrow-background-color")]:f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:g}}},Ed(e,y("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},mR=e=>{const{componentCls:t,antCls:n}=e,[r]=At(n,"tooltip");return{[t]:Tn.map(o=>{const s=e[`${o}6`];return{[`&${t}-${o}`]:{[r("arrow-background-color")]:s,[`${t}-inner`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},pR=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:s,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,g=m/2-t,h=o;return{titleMinWidth:177,zIndexPopup:a+30,...wd(e),...Gi({contentRadius:l,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:c,titlePadding:s?`${p}px ${h}px ${g}px`:0,titleBorderBottom:s?`${t}px ${u} ${d}`:"none",innerContentPadding:s?`${f}px ${h}px`:0}},$b=at("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=rt(e,{popoverBg:t,popoverColor:n});return[fR(r),mR(r),ds(r,"zoom-big")]},pR,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Cb=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:s}=e;return!t&&!n?null:i.createElement(i.Fragment,null,t&&i.createElement("div",{className:z(`${r}-title`,o==null?void 0:o.title),style:s==null?void 0:s.title},t),n&&i.createElement("div",{className:z(`${r}-content`,o==null?void 0:o.content),style:s==null?void 0:s.content},n))},gR=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:s="top",title:a,content:l,children:c,classNames:u,styles:d}=e,f=mo(a),m=mo(l),p={...e,placement:s},[g,h]=pt([u],[d],{props:p}),b=z(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return i.createElement("div",{className:b,style:o},i.createElement("div",{className:`${n}-arrow`}),i.createElement(xd,{...e,className:t,prefixCls:n,classNames:g,styles:h},c||i.createElement(Cb,{prefixCls:n,title:f,content:m,classNames:g,styles:h})))},Sb=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=i.useContext(je),s=o("popover",t),[a,l]=$b(s);return i.createElement(gR,{...r,prefixCls:s,hashId:a,className:z(n,l)})},hR=i.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:s,placement:a="top",trigger:l,children:c,mouseEnterDelay:u=.1,mouseLeaveDelay:d=.1,onOpenChange:f,overlayStyle:m={},styles:p,classNames:g,motion:h,arrow:b,...$}=e,{getPrefixCls:y,className:v,style:C,classNames:S,styles:x,arrow:w,trigger:I}=dt("popover"),E=y("popover",n),[R,P]=$b(E),M=y(),O=Xi(b,w),A=l||I||"hover",T={...e,placement:a,trigger:A,mouseEnterDelay:u,mouseLeaveDelay:d,overlayStyle:m,styles:p,classNames:g},[F,H]=pt([S,g],[x,p],{props:T}),L=z(s,R,P,v,F.root),[B,D]=bt(e.defaultOpen??!1,e.open),k=X=>{D(X),f==null||f(X)},W=mo(r),_=mo(o);return i.createElement(Kn,{unique:!1,arrow:O,placement:a,trigger:A,mouseEnterDelay:u,mouseLeaveDelay:d,...$,prefixCls:E,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...H.root,...C,...m},container:H.container,arrow:H.arrow},ref:t,open:B,onOpenChange:k,overlay:W||_?i.createElement(Cb,{prefixCls:E,title:W,content:_,classNames:F,styles:H}):null,motion:{motionName:lr(M,"zoom-big",typeof(h==null?void 0:h.motionName)=="string"?h==null?void 0:h.motionName:void 0)},"data-popover-inject":!0},c)}),Id=hR;Id._InternalPanelDoNotUseOrYouWillBeFired=Sb;var bR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function zc(){return zc=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},zc.apply(this,arguments)}const vR=(e,t)=>i.createElement(Ye,zc({},e,{ref:t,icon:bR})),yR=i.forwardRef(vR),{ESC:$R,TAB:CR}=Me;function SR({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){const s=i.useRef(!1),a=()=>{var u,d;e&&((d=(u=t.current)==null?void 0:u.focus)==null||d.call(u),n==null||n(!1))},l=()=>{var u;return(u=o.current)!=null&&u.focus?(o.current.focus(),s.current=!0,!0):!1},c=u=>{switch(u.keyCode){case $R:a();break;case CR:{let d=!1;s.current||(d=l()),d?u.preventDefault():a();break}}};i.useEffect(()=>e?(window.addEventListener("keydown",c),r&&Ke(l,3),()=>{window.removeEventListener("keydown",c),s.current=!1}):()=>{s.current=!1},[e])}const xR=i.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,s=i.useMemo(()=>{let l;return typeof n=="function"?l=n():l=n,l},[n]),a=Ft(t,Gn(s));return N.createElement(N.Fragment,null,r&&N.createElement("div",{className:`${o}-arrow`}),N.cloneElement(s,{ref:dr(s)?a:void 0}))}),Kr={adjustX:1,adjustY:1},Yr=[0,0],wR={topLeft:{points:["bl","tl"],overflow:Kr,offset:[0,-4],targetOffset:Yr},top:{points:["bc","tc"],overflow:Kr,offset:[0,-4],targetOffset:Yr},topRight:{points:["br","tr"],overflow:Kr,offset:[0,-4],targetOffset:Yr},bottomLeft:{points:["tl","bl"],overflow:Kr,offset:[0,4],targetOffset:Yr},bottom:{points:["tc","bc"],overflow:Kr,offset:[0,4],targetOffset:Yr},bottomRight:{points:["tr","br"],overflow:Kr,offset:[0,4],targetOffset:Yr}};function Bc(){return Bc=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},Bc.apply(this,arguments)}const xb=N.forwardRef((e,t)=>{var D;const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:o,animation:s,align:a,placement:l="bottomLeft",placements:c=wR,getPopupContainer:u,showAction:d,hideAction:f,overlayClassName:m,overlayStyle:p,visible:g,trigger:h=["hover"],autoFocus:b,overlay:$,children:y,onVisibleChange:v,...C}=e,[S,x]=N.useState(),w="visible"in e?g:S,I=s?`${r}-${s}`:o,E=N.useRef(null),R=N.useRef(null),P=N.useRef(null);N.useImperativeHandle(t,()=>E.current);const M=k=>{x(k),v==null||v(k)};SR({visible:w,triggerRef:P,onVisibleChange:M,autoFocus:b,overlayRef:R});const O=k=>{const{onOverlayClick:W}=e;x(!1),W&&W(k)},A=()=>N.createElement(xR,{ref:R,overlay:$,prefixCls:r,arrow:n}),T=()=>typeof $=="function"?A:A(),F=()=>{const{minOverlayWidthMatchTrigger:k,alignPoint:W}=e;return"minOverlayWidthMatchTrigger"in e?k:!W},H=()=>{const{openClassName:k}=e;return k!==void 0?k:`${r}-open`},L=N.cloneElement(y,{className:z((D=y.props)==null?void 0:D.className,w&&H()),ref:dr(y)?Ft(P,Gn(y)):void 0});let B=f;return!B&&h.indexOf("contextMenu")!==-1&&(B=["click"]),N.createElement(ki,Bc({builtinPlacements:c},C,{prefixCls:r,ref:E,popupClassName:z(m,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:d,hideAction:B,popupPlacement:l,popupAlign:a,popupMotion:{motionName:I},popupVisible:w,stretch:F()?"minWidth":"",popup:T(),onOpenChange:M,onPopupClick:O,getPopupContainer:u}),L)}),ER=e=>typeof e!="object"&&typeof e!="function"||e===null,wb=i.createContext(null);function Eb(e,t){return`${e}-${t}`}function Ib(e){const t=i.useContext(wb);return Eb(t,e)}const En=i.createContext(null);function IR(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o)}),n}function ts({children:e,locked:t,...n}){const r=i.useContext(En),o=po(()=>IR(r,n),[r,n],(s,a)=>!t&&(s[0]!==a[0]||!ar(s[1],a[1],!0)));return i.createElement(En.Provider,{value:o},e)}const PR=[],Pb=i.createContext(null);function Ui(){return i.useContext(Pb)}const Rb=i.createContext(PR);function So(e){const t=i.useContext(Rb);return i.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const Mb=i.createContext(null),Pd=i.createContext({}),{LEFT:Lc,RIGHT:Hc,UP:Dc,DOWN:ti,ENTER:ni,ESC:Nb,HOME:Oo,END:Ao}=Me,up=[Dc,ti,Lc,Hc];function RR(e,t,n,r){var p;const o="prev",s="next",a="children",l="parent";if(e==="inline"&&r===ni)return{inlineTrigger:!0};const c={[Dc]:o,[ti]:s},u={[Lc]:n?s:o,[Hc]:n?o:s,[ti]:a,[ni]:a},d={[Dc]:o,[ti]:s,[ni]:a,[Nb]:l,[Lc]:n?a:l,[Hc]:n?l:a};switch((p={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}[`${e}${t?"":"Sub"}`])==null?void 0:p[r]){case o:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}function MR(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function NR(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Rd(e,t){return fd(e,!0).filter(r=>t.has(r))}function dp(e,t,n,r=1){if(!e)return null;const o=Rd(e,t),s=o.length;let a=o.findIndex(l=>n===l);return r<0?a===-1?a=s-1:a-=1:r>0&&(a+=1),a=(a+s)%s,o[a]}const Ci=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(s=>{const a=document.querySelector(`[data-menu-id='${Eb(t,s)}']`);a&&(n.add(a),o.set(a,s),r.set(s,a))}),{elements:n,key2element:r,element2key:o}};function TR(e,t,n,r,o,s,a,l,c,u){const d=i.useRef(),f=i.useRef();f.current=t;const m=()=>{Ke.cancel(d.current)};return i.useEffect(()=>()=>{m()},[]),p=>{const{which:g}=p;if([...up,ni,Nb,Oo,Ao].includes(g)){const h=s();let b=Ci(h,r);const{elements:$,key2element:y,element2key:v}=b,C=y.get(t),S=NR(C,$),x=v.get(S),w=RR(e,a(x,!0).length===1,n,g);if(!w&&g!==Oo&&g!==Ao)return;(up.includes(g)||[Oo,Ao].includes(g))&&p.preventDefault();const I=E=>{if(E){let R=E;const P=E.querySelector("a");P!=null&&P.getAttribute("href")&&(R=P);const M=v.get(E);l(M),m(),d.current=Ke(()=>{f.current===M&&R.focus()})}};if([Oo,Ao].includes(g)||w.sibling||!S){let E;!S||e==="inline"?E=o.current:E=MR(S);let R;const P=Rd(E,$);g===Oo?R=P[0]:g===Ao?R=P[P.length-1]:R=dp(E,$,S,w.offset),I(R)}else if(w.inlineTrigger)c(x);else if(w.offset>0)c(x,!0),m(),d.current=Ke(()=>{b=Ci(h,r);const E=S.getAttribute("aria-controls"),R=document.getElementById(E),P=dp(R,b.elements);I(P)},5);else if(w.offset<0){const E=a(x,!0),R=E[E.length-2],P=y.get(R);c(R,!1),I(P)}}u==null||u(p)}}function OR(e){Promise.resolve().then(e)}const Md="__RC_UTIL_PATH_SPLIT__",fp=e=>e.join(Md),AR=e=>e.split(Md),Fc="rc-menu-more";function zR(){const[,e]=i.useState({}),t=i.useRef(new Map),n=i.useRef(new Map),[r,o]=i.useState([]),s=i.useRef(0),a=i.useRef(!1),l=()=>{a.current||e({})},c=i.useCallback((h,b)=>{const $=fp(b);n.current.set($,h),t.current.set(h,$),s.current+=1;const y=s.current;OR(()=>{y===s.current&&l()})},[]),u=i.useCallback((h,b)=>{const $=fp(b);n.current.delete($),t.current.delete(h)},[]),d=i.useCallback(h=>{o(h)},[]),f=i.useCallback((h,b)=>{const $=t.current.get(h)||"",y=AR($);return b&&r.includes(y[0])&&y.unshift(Fc),y},[r]),m=i.useCallback((h,b)=>h.filter($=>$!==void 0).some($=>f($,!0).includes(b)),[f]),p=()=>{const h=[...t.current.keys()];return r.length&&h.push(Fc),h},g=i.useCallback(h=>{const b=`${t.current.get(h)}${Md}`,$=new Set;return[...n.current.keys()].forEach(y=>{y.startsWith(b)&&$.add(n.current.get(y))}),$},[]);return i.useEffect(()=>()=>{a.current=!0},[]),{registerPath:c,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:m,getKeyPath:f,getKeys:p,getSubPathKeys:g}}function Do(e){const t=i.useRef(e);t.current=e;const n=i.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[]);return e?n:void 0}function Tb(e,t,n,r){const{activeKey:o,onActive:s,onInactive:a}=i.useContext(En),l={active:o===e};return t||(l.onMouseEnter=c=>{n==null||n({key:e,domEvent:c}),s(e)},l.onMouseLeave=c=>{r==null||r({key:e,domEvent:c}),a(e)}),l}function Ob(e){const{mode:t,rtl:n,inlineIndent:r}=i.useContext(En);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function Ab({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=i.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Si({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Pt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function ns(){return ns=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},ns.apply(this,arguments)}class BR extends i.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,s=yt(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Pt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(kn.Item,ns({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const LR=i.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:s,disabled:a,itemIcon:l,children:c,role:u,onMouseEnter:d,onMouseLeave:f,onClick:m,onKeyDown:p,onFocus:g,...h}=e,b=Ib(o),{prefixCls:$,onItemClick:y,disabled:v,overflowDisabled:C,itemIcon:S,selectedKeys:x,onActive:w}=i.useContext(En),{_internalRenderMenuItem:I}=i.useContext(Pd),E=`${$}-item`,R=i.useRef(),P=i.useRef(),M=v||a,O=qn(t,P),A=So(o),T=j=>({key:o,keyPath:[...A].reverse(),item:R.current,domEvent:j}),F=l||S,{active:H,...L}=Tb(o,M,d,f),B=x.includes(o),D=Ob(A.length),k=j=>{if(M)return;const V=T(j);m==null||m(Si(V)),y(V)},W=j=>{if(p==null||p(j),j.which===Me.ENTER){const V=T(j);m==null||m(Si(V)),y(V)}},_=j=>{w(o),g==null||g(j)},X={};e.role==="option"&&(X["aria-selected"]=B);let U=i.createElement(BR,ns({ref:R,elementRef:O,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&b?null:b},yt(h,["extra"]),L,X,{component:"li","aria-disabled":a,style:{...D,...n},className:z(E,{[`${E}-active`]:H,[`${E}-selected`]:B,[`${E}-disabled`]:M},r),onClick:k,onKeyDown:W,onFocus:_}),c,i.createElement(Ab,{props:{...e,isSelected:B},icon:F}));return I&&(U=I(U,e,{selected:B})),U});function HR(e,t){const{eventKey:n}=e,r=Ui(),o=So(n);return i.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o)}},[o]),r?null:i.createElement(LR,ns({},e,{ref:t}))}const $s=i.forwardRef(HR);function _c(){return _c=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},_c.apply(this,arguments)}const DR=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:s,rtl:a}=i.useContext(En);return i.createElement("ul",_c({className:z(o,a&&`${o}-rtl`,`${o}-sub`,`${o}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},zb=i.forwardRef(DR);function Nd(e,t){return Vt(e).map((n,r)=>{var o;if(i.isValidElement(n)){const{key:s}=n;let a=((o=n.props)==null?void 0:o.eventKey)??s;a==null&&(a=`tmp_key-${[...t,r].join("-")}`);const c={key:a,eventKey:a};return i.cloneElement(n,c)}return n})}const Dt={adjustX:1,adjustY:1},FR={topLeft:{points:["bl","tl"],overflow:Dt},topRight:{points:["br","tr"],overflow:Dt},bottomLeft:{points:["tl","bl"],overflow:Dt},bottomRight:{points:["tr","br"],overflow:Dt},leftTop:{points:["tr","tl"],overflow:Dt},leftBottom:{points:["br","bl"],overflow:Dt},rightTop:{points:["tl","tr"],overflow:Dt},rightBottom:{points:["bl","br"],overflow:Dt}},_R={topLeft:{points:["bl","tl"],overflow:Dt},topRight:{points:["br","tr"],overflow:Dt},bottomLeft:{points:["tl","bl"],overflow:Dt},bottomRight:{points:["tr","br"],overflow:Dt},rightTop:{points:["tr","tl"],overflow:Dt},rightBottom:{points:["br","bl"],overflow:Dt},leftTop:{points:["tl","tr"],overflow:Dt},leftBottom:{points:["bl","br"],overflow:Dt}};function Bb(e,t,n){if(t)return t;if(n)return n[e]||n.other}const kR={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function VR({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:s,popupOffset:a,disabled:l,mode:c,onVisibleChange:u}){const{getPopupContainer:d,rtl:f,subMenuOpenDelay:m,subMenuCloseDelay:p,builtinPlacements:g,triggerSubMenuAction:h,forceSubMenuRender:b,rootClassName:$,motion:y,defaultMotions:v}=i.useContext(En),[C,S]=i.useState(!1),x=f?{..._R,...g}:{...FR,...g},w=kR[c],I=Bb(c,y,v),E=i.useRef(I);c!=="inline"&&(E.current=I);const R={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},P=i.useRef();return i.useEffect(()=>(P.current=Ke(()=>{S(t)}),()=>{Ke.cancel(P.current)}),[t]),i.createElement(ki,{prefixCls:e,popupClassName:z(`${e}-popup`,{[`${e}-rtl`]:f},s,$),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:x,popupPlacement:w,popupVisible:C,popup:r,popupStyle:o,popupAlign:a&&{offset:a},action:l?[]:[h],mouseEnterDelay:m,mouseLeaveDelay:p,onPopupVisibleChange:u,forceRender:b,popupMotion:R,fresh:!0},n)}function kc(){return kc=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},kc.apply(this,arguments)}function WR({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:s,forceSubMenuRender:a,motion:l,defaultMotions:c,mode:u}=i.useContext(En),d=i.useRef(!1);d.current=u===o;const[f,m]=i.useState(!d.current),p=d.current?t:!1;i.useEffect(()=>{d.current&&m(!1)},[u]);const g={...Bb(o,l,c)};n.length>1&&(g.motionAppear=!1);const h=g.onVisibleChanged;return g.onVisibleChanged=b=>(!d.current&&!b&&m(!0),h==null?void 0:h(b)),f?null:i.createElement(ts,{mode:o,locked:!d.current},i.createElement(un,kc({visible:p},g,{forceRender:a,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:b,style:$})=>i.createElement(zb,{id:e,className:b,style:$},r)))}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 jR=i.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:s,title:a,eventKey:l,warnKey:c,disabled:u,internalPopupClose:d,children:f,itemIcon:m,expandIcon:p,popupClassName:g,popupOffset:h,popupStyle:b,onClick:$,onMouseEnter:y,onMouseLeave:v,onTitleClick:C,onTitleMouseEnter:S,onTitleMouseLeave:x,popupRender:w,...I}=e,E=Ib(l),{prefixCls:R,mode:P,openKeys:M,disabled:O,overflowDisabled:A,activeKey:T,selectedKeys:F,itemIcon:H,expandIcon:L,onItemClick:B,onOpenChange:D,onActive:k,popupRender:W}=i.useContext(En),{_internalRenderSubMenuItem:_}=i.useContext(Pd),{isSubPathKey:X}=i.useContext(Mb),U=So(),j=`${R}-submenu`,V=O||u,G=i.useRef(),te=i.useRef(),ee=m??H,ne=p??L,Y=M.includes(l),se=!A&&Y,ue=X(F,l),{active:q,...oe}=Tb(l,V,S,x),[Z,J]=i.useState(!1),ae=re=>{V||J(re)},we=re=>{ae(!0),y==null||y({key:l,domEvent:re})},de=re=>{ae(!1),v==null||v({key:l,domEvent:re})},ge=i.useMemo(()=>q||(P!=="inline"?Z||X([T],l):!1),[P,q,T,Z,l,X]),be=Ob(U.length),me=re=>{V||(C==null||C({key:l,domEvent:re}),P==="inline"&&D(l,!Y))},Ne=Do(re=>{$==null||$(Si(re)),B(re)}),Ae=re=>{P!=="inline"&&D(l,re)},Ee=()=>{k(l)},ze=E&&`${E}-popup`,Re=i.useMemo(()=>i.createElement(Ab,{icon:P!=="horizontal"?ne:void 0,props:{...e,isOpen:se,isSubMenu:!0}},i.createElement("i",{className:`${j}-arrow`})),[P,ne,e,se,j]);let ve=i.createElement("div",rs({role:"menuitem",style:be,className:`${j}-title`,tabIndex:V?null:-1,ref:G,title:typeof a=="string"?a:null,"data-menu-id":A&&E?null:E,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":ze,"aria-disabled":V,onClick:me,onFocus:Ee},oe),a,Re);const fe=i.useRef(P);P!=="inline"&&U.length>1?fe.current="vertical":fe.current=P;const Ce=fe.current,He=i.useMemo(()=>{const re=i.createElement(ts,{classNames:s,styles:o,mode:Ce==="horizontal"?"vertical":Ce},i.createElement(zb,{id:ze,ref:te},f)),$e=w||W;return $e?$e(re,{item:e,keys:U}):re},[w,W,U,ze,f,e,Ce]);if(!A){const re=fe.current;ve=i.createElement(VR,{mode:re,prefixCls:j,visible:!d&&se&&P!=="inline",popupClassName:g,popupOffset:h,popupStyle:b,popup:He,disabled:V,onVisibleChange:Ae},ve)}let Ie=i.createElement(kn.Item,rs({ref:t,role:"none"},I,{component:"li",style:n,className:z(j,`${j}-${P}`,r,{[`${j}-open`]:se,[`${j}-active`]:ge,[`${j}-selected`]:ue,[`${j}-disabled`]:V}),onMouseEnter:we,onMouseLeave:de}),ve,!A&&i.createElement(WR,{id:ze,open:se,keyPath:U},f));return _&&(Ie=_(Ie,e,{selected:ue,active:ge,open:se,disabled:V})),i.createElement(ts,{classNames:s,styles:o,onItemClick:Ne,mode:P==="horizontal"?"vertical":P,itemIcon:ee,expandIcon:ne},Ie)}),Ki=i.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=So(n),s=Nd(r,o),a=Ui();i.useEffect(()=>{if(a)return a.registerPath(n,o),()=>{a.unregisterPath(n,o)}},[o]);let l;return a?l=s:l=i.createElement(jR,rs({ref:t},e),s),i.createElement(Rb.Provider,{value:o},l)});function Td({className:e,style:t}){const{prefixCls:n}=i.useContext(En);return Ui()?null:i.createElement("li",{role:"separator",className:z(`${n}-item-divider`,e),style:t})}function xi(){return xi=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},xi.apply(this,arguments)}const qR=i.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:s,...a}=e,{prefixCls:l,classNames:c,styles:u}=i.useContext(En),d=`${l}-item-group`;return i.createElement("li",xi({ref:t,role:"presentation"},a,{onClick:f=>f.stopPropagation(),className:z(d,n)}),i.createElement("div",{role:"presentation",className:z(`${d}-title`,c==null?void 0:c.listTitle),style:u==null?void 0:u.listTitle,title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:z(`${d}-list`,c==null?void 0:c.list),style:u==null?void 0:u.list},s))}),Od=i.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=So(n),s=Nd(r,o);return Ui()?s:i.createElement(qR,xi({ref:t},yt(e,["warnKey"])),s)});function ro(){return ro=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},ro.apply(this,arguments)}function Vc(e,t,n){const{item:r,group:o,submenu:s,divider:a}=t;return(e||[]).map((l,c)=>{if(l&&typeof l=="object"){const{label:u,children:d,key:f,type:m,extra:p,...g}=l,h=f??`tmp-${c}`;return d||m==="group"?m==="group"?i.createElement(o,ro({key:h},g,{title:u}),Vc(d,t,n)):i.createElement(s,ro({key:h},g,{title:u}),Vc(d,t,n)):m==="divider"?i.createElement(a,ro({key:h},g)):i.createElement(r,ro({key:h},g,{extra:p}),u,(!!p||p===0)&&i.createElement("span",{className:`${n}-item-extra`},p))}return null}).filter(l=>l)}function mp(e,t,n,r,o){let s=e;const a={divider:Td,item:$s,group:Od,submenu:Ki,...r};return t&&(s=Vc(t,a,o)),Nd(s,n)}function Wc(){return Wc=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},Wc.apply(this,arguments)}const hr=[],GR=i.forwardRef((e,t)=>{var mt;const{prefixCls:n="rc-menu",rootClassName:r,style:o,className:s,styles:a,classNames:l,tabIndex:c=0,items:u,children:d,direction:f,id:m,mode:p="vertical",inlineCollapsed:g,disabled:h,disabledOverflow:b,subMenuOpenDelay:$=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:v,defaultOpenKeys:C,openKeys:S,activeKey:x,defaultActiveFirst:w,selectable:I=!0,multiple:E=!1,defaultSelectedKeys:R,selectedKeys:P,onSelect:M,onDeselect:O,inlineIndent:A=24,motion:T,defaultMotions:F,triggerSubMenuAction:H="hover",builtinPlacements:L,itemIcon:B,expandIcon:D,overflowedIndicator:k="...",overflowedIndicatorPopupClassName:W,getPopupContainer:_,onClick:X,onOpenChange:U,onKeyDown:j,openAnimation:V,openTransitionName:G,_internalRenderMenuItem:te,_internalRenderSubMenuItem:ee,_internalComponents:ne,popupRender:Y,...se}=e,[ue,q]=i.useMemo(()=>[mp(d,u,hr,ne,n),mp(d,u,hr,{},n)],[d,u,ne]),[oe,Z]=i.useState(!1),J=i.useRef(),ae=Xn(m?`rc-menu-uuid-${m}`:"rc-menu-uuid"),we=f==="rtl",[de,ge]=bt(C,S),be=de||hr,me=(Ge,Oe=!1)=>{function _e(){ge(Ge),U==null||U(Ge)}Oe?Vn.flushSync(_e):_e()},[Ne,Ae]=i.useState(be),Ee=i.useRef(!1),[ze,Re]=i.useMemo(()=>(p==="inline"||p==="vertical")&&g?["vertical",g]:[p,!1],[p,g]),ve=ze==="inline",[fe,Ce]=i.useState(ze),[He,Ie]=i.useState(Re);i.useEffect(()=>{Ce(ze),Ie(Re),Ee.current&&(ve?ge(Ne):me(hr))},[ze,Re]);const[re,$e]=i.useState(0),ke=re>=ue.length-1||fe!=="horizontal"||b;i.useEffect(()=>{ve&&Ae(be)},[be]),i.useEffect(()=>(Ee.current=!0,()=>{Ee.current=!1}),[]);const{registerPath:De,unregisterPath:ot,refreshOverflowKeys:qe,isSubPathKey:ft,getKeyPath:Qe,getKeys:st,getSubPathKeys:lt}=zR(),Se=i.useMemo(()=>({registerPath:De,unregisterPath:ot}),[De,ot]),Be=i.useMemo(()=>({isSubPathKey:ft}),[ft]);i.useEffect(()=>{qe(ke?hr:ue.slice(re+1).map(Ge=>Ge.key))},[re,ke]);const[Pe,ye]=bt(x||w&&((mt=ue[0])==null?void 0:mt.key),x),ce=Do(Ge=>{ye(Ge)}),Q=Do(()=>{ye(void 0)});i.useImperativeHandle(t,()=>({list:J.current,focus:Ge=>{var Gt,Xt;const Oe=st(),{elements:_e,key2element:Xe,element2key:it}=Ci(Oe,ae),ht=Rd(J.current,_e);let It;Pe&&Oe.includes(Pe)?It=Pe:It=ht[0]?it.get(ht[0]):(Gt=ue.find(kt=>!kt.props.disabled))==null?void 0:Gt.key;const $t=Xe.get(It);It&&$t&&((Xt=$t==null?void 0:$t.focus)==null||Xt.call($t,Ge))},findItem:({key:Ge})=>{const Oe=st(),{key2element:_e}=Ci(Oe,ae);return _e.get(Ge)||null}}));const[pe,ie]=bt(R||[],P),he=i.useMemo(()=>Array.isArray(pe)?pe:pe==null?hr:[pe],[pe]),xe=Ge=>{if(I){const{key:Oe}=Ge,_e=he.includes(Oe);let Xe;E?_e?Xe=he.filter(ht=>ht!==Oe):Xe=[...he,Oe]:Xe=[Oe],ie(Xe);const it={...Ge,selectedKeys:Xe};_e?O==null||O(it):M==null||M(it)}!E&&be.length&&fe!=="inline"&&me(hr)},Te=Do(Ge=>{X==null||X(Si(Ge)),xe(Ge)}),Fe=Do((Ge,Oe)=>{let _e=be.filter(Xe=>Xe!==Ge);if(Oe)_e.push(Ge);else if(fe!=="inline"){const Xe=lt(Ge);_e=_e.filter(it=>!Xe.has(it))}ar(be,_e,!0)||me(_e,!0)}),tt=TR(fe,Pe,we,ae,J,st,Qe,ye,(Ge,Oe)=>{const _e=Oe??!be.includes(Ge);Fe(Ge,_e)},j);i.useEffect(()=>{Z(!0)},[]);const Ze=i.useMemo(()=>({_internalRenderMenuItem:te,_internalRenderSubMenuItem:ee}),[te,ee]),Mt=fe!=="horizontal"||b?ue:ue.map((Ge,Oe)=>i.createElement(ts,{key:Ge.key,overflowDisabled:Oe>re,classNames:l,styles:a},Ge)),qt=i.createElement(kn,Wc({id:m,ref:J,prefixCls:`${n}-overflow`,component:"ul",itemComponent:$s,className:z(n,`${n}-root`,`${n}-${fe}`,s,{[`${n}-inline-collapsed`]:He,[`${n}-rtl`]:we},r),dir:f,style:o,role:"menu",tabIndex:c,data:Mt,renderRawItem:Ge=>Ge,renderRawRest:Ge=>{const Oe=Ge.length,_e=Oe?ue.slice(-Oe):null;return i.createElement(Ki,{eventKey:Fc,title:k,disabled:ke,internalPopupClose:Oe===0,popupClassName:W},_e)},maxCount:fe!=="horizontal"||b?kn.INVALIDATE:kn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ge=>{$e(Ge)},onKeyDown:tt},se));return i.createElement(Pd.Provider,{value:Ze},i.createElement(wb.Provider,{value:ae},i.createElement(ts,{prefixCls:n,rootClassName:r,classNames:l,styles:a,mode:fe,openKeys:be,rtl:we,disabled:h,motion:oe?T:null,defaultMotions:oe?F:null,activeKey:Pe,onActive:ce,onInactive:Q,selectedKeys:he,inlineIndent:A,subMenuOpenDelay:$,subMenuCloseDelay:y,forceSubMenuRender:v,builtinPlacements:L,triggerSubMenuAction:H,getPopupContainer:_,itemIcon:B,expandIcon:D,onItemClick:Te,onOpenChange:Fe,popupRender:Y},i.createElement(Mb.Provider,{value:Be},qt),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(Pb.Provider,{value:Se},q)))))}),xo=GR;xo.Item=$s;xo.SubMenu=Ki;xo.ItemGroup=Od;xo.Divider=Td;const Lb=i.createContext({});var XR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function jc(){return jc=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},jc.apply(this,arguments)}const UR=(e,t)=>i.createElement(Ye,jc({},e,{ref:t,icon:XR})),Ad=i.forwardRef(UR),wi=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Hb=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:s}=i.useContext(je),a=s("menu",t),l=z({[`${a}-item-divider-dashed`]:!!r},n);return i.createElement(Td,{className:l,...o})},Db=e=>{var w,I;const{className:t,children:n,icon:r,title:o,danger:s,extra:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,tooltip:f,inlineCollapsed:m,styles:p,classNames:g}=i.useContext(wi),h=E=>{var M,O;const R=n==null?void 0:n[0],P=i.createElement("span",{className:z(`${l}-title-content`,c?g==null?void 0:g.itemContent:(M=g==null?void 0:g.subMenu)==null?void 0:M.itemContent,{[`${l}-title-content-with-extra`]:!!a||a===0}),style:c?p==null?void 0:p.itemContent:(O=p==null?void 0:p.subMenu)==null?void 0:O.itemContent},n);return(!r||i.isValidElement(n)&&n.type==="span")&&n&&E&&c&&typeof R=="string"?i.createElement("div",{className:`${l}-inline-collapsed-noicon`},R.charAt(0)):P},{siderCollapsed:b}=i.useContext(Lb);let $=o;typeof o>"u"?$=c?n:"":o===!1&&($="");const y=f===!1?void 0:f,v=y&&y.title!==void 0?y.title:$,C={...y??null,title:v};!b&&!m&&(C.title=null,C.open=!1);const S=Vt(n).length;let x=i.createElement($s,{...yt(e,["title","icon","danger"]),className:z(c?g==null?void 0:g.item:(w=g==null?void 0:g.subMenu)==null?void 0:w.item,{[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p==null?void 0:p.item:(I=p==null?void 0:p.subMenu)==null?void 0:I.item,...e.style},title:typeof o=="string"?o:void 0},Wt(r,E=>{var R,P;return{className:z(`${l}-item-icon`,c?g==null?void 0:g.itemIcon:(R=g==null?void 0:g.subMenu)==null?void 0:R.itemIcon,E.className),style:{...c?p==null?void 0:p.itemIcon:(P=p==null?void 0:p.subMenu)==null?void 0:P.itemIcon,...E.style}}}),h(m));if(!d&&f!==!1){const E=y&&y.placement?y.placement:u==="rtl"?"left":"right",R=`${l}-inline-collapsed-tooltip`,P=O=>({...O,root:z(R,O==null?void 0:O.root)}),M=y&&typeof y.classNames=="function"?O=>{const A=y.classNames(O);return P(A)}:P(y==null?void 0:y.classNames);x=i.createElement(Kn,{...C,placement:E,classNames:M},x)}return x},Ei=i.createContext(null),KR=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.useContext(Ei),s=i.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=Ny(n),l=qn(t,a?Gn(n):null);return i.createElement(Ei.Provider,{value:s},i.createElement(ur,{space:!0},a?i.cloneElement(n,{ref:l}):n))}),YR=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:s,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${K(s)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(c=>`${c} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},QR=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
||
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${K(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${K(t)})`}}}}),pp=e=>ho(e),gp=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:s,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:y,lineType:v,colorSplit:C,itemDisabledColor:S,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:I,dangerItemActiveBg:E,dangerItemSelectedBg:R,popupBg:P,itemHoverBg:M,itemActiveBg:O,menuSubMenuBg:A,horizontalItemSelectedColor:T,horizontalItemSelectedBg:F,horizontalItemBorderRadius:H,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...pp(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...pp(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${K(d)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:d,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:d,borderBottomColor:T}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${K(m)} ${v} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(B=>`${B} ${$} ${h}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(B=>`${B} ${$} ${g}`).join(",")}}}}}},hp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:s,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(s).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:K(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:K(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:d}}},ZR=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:s,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:h,collapsedIconSize:b}=e,$={height:r,lineHeight:K(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...hp(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...hp(e),boxShadow:g}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${K(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background-color ${m}`,`padding ${f} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${K(e.calc(b).div(2).equal())} - ${K(u)})`,textOverflow:"clip",[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:K(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:{...Wn,paddingInline:p}}}]},bp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:s,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${s}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...go()},[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vp=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:s,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(l=>`${l} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(l=>`${l} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${K(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${K(a)})`}}}}},JR=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:h,lineType:b,groupTitleLineHeight:$,groupTitleFontSize:y}=e;return[{"":{[n]:{...li(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Ct(e),...li(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${K(l)} ${K(c)}`,fontSize:y,lineHeight:$,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(v=>`${v} ${o} ${a}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${s}`].map(v=>`${v} ${a}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(v=>`${v} ${o} ${a}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...bp(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${K(e.calc(r).mul(2).equal())} ${K(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:m,...bp(e),...vp(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...vp(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${K(h)})`},"&::after":{transform:`rotate(45deg) translateX(${K(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${K(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${K(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${K(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},eM=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:s,colorTextDescription:a,colorBgContainer:l,colorFillAlter:c,colorFillContent:u,lineWidth:d,lineWidthBold:f,controlItemBgActive:m,colorBgTextHover:p,controlHeightLG:g,lineHeight:h,colorBgElevated:b,marginXXS:$,padding:y,fontSize:v,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:x,colorErrorHover:w}=e,I=e.activeBarWidth??0,E=e.activeBarBorderWidth??d,R=e.itemMarginInline??e.marginXXS,P=new gt(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:u,itemActiveBg:m,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:d,activeBarBorderWidth:E,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:g,groupTitleLineHeight:h,collapsedWidth:g*2,popupBg:b,itemMarginBlock:$,itemPaddingInline:y,horizontalLineHeight:`${g*1.15}px`,iconSize:v,iconMarginInlineEnd:C-v,collapsedIconSize:S,groupTitleFontSize:v,darkItemDisabledColor:new gt(x).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:x,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:n,itemWidth:I?`calc(100% + ${E}px)`:`calc(100% - ${R*2}px)`}},tM=(e,t=e,n=!0)=>at("Menu",o=>{const{colorBgElevated:s,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:h,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:y,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:S,popupBg:x,darkPopupBg:w}=o,I=o.calc(l).div(7).mul(5).equal(),E=rt(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:s,calc:o.calc,popupBg:x}),R=rt(E,{itemColor:c,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:y,dangerItemColor:u,dangerItemHoverColor:v,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[JR(E),YR(E),ZR(E),gp(E,"light"),gp(R,"dark"),QR(E),u0(E),cr(E,"slide-up"),cr(E,"slide-down"),ds(E,"zoom-big")]},eM,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),Fb=e=>{var h,b,$,y,v,C;const{popupClassName:t,icon:n,title:r,theme:o}=e,s=i.useContext(wi),{prefixCls:a,inlineCollapsed:l,theme:c,classNames:u,styles:d}=s,f=So();let m;if(!n)m=l&&!f.length&&r&&typeof r=="string"?i.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${a}-title-content`},r);else{const S=i.isValidElement(r)&&r.type==="span";m=i.createElement(i.Fragment,null,Wt(n,x=>({className:z(x.className,`${a}-item-icon`,u==null?void 0:u.itemIcon),style:{...x.style,...d==null?void 0:d.itemIcon}})),S?r:i.createElement("span",{className:`${a}-title-content`},r))}const p=i.useMemo(()=>({...s,firstLevel:!1}),[s]),[g]=ls("Menu");return i.createElement(wi.Provider,{value:p},i.createElement(Ki,{...yt(e,["icon"]),title:m,classNames:{list:(h=u==null?void 0:u.subMenu)==null?void 0:h.list,listTitle:(b=u==null?void 0:u.subMenu)==null?void 0:b.itemTitle},styles:{list:($=d==null?void 0:d.subMenu)==null?void 0:$.list,listTitle:(y=d==null?void 0:d.subMenu)==null?void 0:y.itemTitle},popupClassName:z(a,t,(v=u==null?void 0:u.popup)==null?void 0:v.root,`${a}-${o||c}`),popupStyle:{zIndex:g,...e.popupStyle,...(C=d==null?void 0:d.popup)==null?void 0:C.root}}))};function Wa(e){return e===null||e===!1}const nM={item:Db,submenu:Fb,divider:Hb},rM=i.forwardRef((e,t)=>{var ee;const n=i.useContext(Ei),r=n||{},{prefixCls:o,className:s,style:a,theme:l="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,siderCollapsed:m,rootClassName:p,mode:g,selectable:h,onClick:b,overflowedIndicatorPopupClassName:$,classNames:y,styles:v,...C}=e,{menu:S}=i.useContext(je),{getPrefixCls:x,getPopupContainer:w,direction:I,className:E,style:R,classNames:P,styles:M}=dt("menu"),O=x(),A=yt(C,["collapsedWidth"]);(ee=r.validator)==null||ee.call(r,{mode:g});const T=We((...ne)=>{var Y;b==null||b(...ne),(Y=r.onClick)==null||Y.call(r)}),F=r.mode||g,H=h??r.selectable,L=f??m,B={...e,mode:F,inlineCollapsed:L,selectable:H,theme:l},[D,k]=pt([P,y],[M,v],{props:B},{popup:{_default:"root"},subMenu:{_default:"item"}}),W={horizontal:{motionName:`${O}-slide-up`},inline:Yh(O),other:{motionName:`${O}-zoom-big`}},_=x("menu",o||r.prefixCls),X=_t(_),[U,j]=tM(_,X,!n),V=z(`${_}-${l}`,E,s),G=i.useMemo(()=>{var Y;if(typeof c=="function"||Wa(c))return c||null;if(typeof r.expandIcon=="function"||Wa(r.expandIcon))return r.expandIcon||null;if(typeof(S==null?void 0:S.expandIcon)=="function"||Wa(S==null?void 0:S.expandIcon))return(S==null?void 0:S.expandIcon)||null;const ne=c??(r==null?void 0:r.expandIcon)??(S==null?void 0:S.expandIcon);return Wt(ne,{className:z(`${_}-submenu-expand-icon`,i.isValidElement(ne)?(Y=ne.props)==null?void 0:Y.className:void 0)})},[c,r==null?void 0:r.expandIcon,S==null?void 0:S.expandIcon,_]),te=i.useMemo(()=>({prefixCls:_,inlineCollapsed:L||!1,direction:I,firstLevel:!0,theme:l,mode:F,disableMenuItemTitleTooltip:u,tooltip:d,classNames:D,styles:k}),[_,L,I,u,l,F,D,k,d]);return i.createElement(Ei.Provider,{value:null},i.createElement(wi.Provider,{value:te},i.createElement(xo,{getPopupContainer:w,overflowedIndicator:i.createElement(Ad,null),overflowedIndicatorPopupClassName:z(_,`${_}-${l}`,$),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:k.list,listTitle:k.itemTitle},mode:F,selectable:H,onClick:T,...A,inlineCollapsed:L,style:{...k.root,...R,...a},className:V,prefixCls:_,direction:I,defaultMotions:W,expandIcon:G,ref:t,rootClassName:z(p,U,r.rootClassName,j,X,D.root),_internalComponents:nM})))}),Cs=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(Lb);return i.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var s;(s=n.current)==null||s.focus(o)}})),i.createElement(rM,{ref:n,...e,...r})});Cs.Item=Db;Cs.SubMenu=Fb;Cs.Divider=Hb;Cs.ItemGroup=Od;const oM=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},sM=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:s,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:sd},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ad},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:id},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ld}}},Ed(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Ct(e),[n]:{padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...bn(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${K(u)} ${K(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${K(u)} ${K(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...bn(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${K(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${K(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[cr(e,"slide-up"),cr(e,"slide-down"),gi(e,"move-up"),gi(e,"move-down"),ds(e,"zoom-big")]]},iM=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Gi({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...wd(e)}),aM=at("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,s=rt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[sM(s),oM(s)]},iM,{resetStyle:!1}),Yi=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:s,disabled:a,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:p,onOpenChange:g,mouseEnterDelay:h=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:$=!0,placement:y="",transitionName:v,classNames:C,styles:S,destroyPopupOnHide:x,destroyOnHidden:w}=e,{getPrefixCls:I,direction:E,getPopupContainer:R,className:P,style:M,classNames:O,styles:A}=dt("dropdown"),T={...e,mouseEnterDelay:h,mouseLeaveDelay:b,autoAdjustOverflow:$},[F,H]=pt([O,C],[A,S],{props:T}),L={...M,...m,...H.root},B=c||l,D=i.useMemo(()=>{const de=I();return v!==void 0?v:y.includes("top")?`${de}-slide-down`:`${de}-slide-up`},[I,y,v]),k=i.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:E==="rtl"?"bottomRight":"bottomLeft",[y,E]),W=I("dropdown",r),_=_t(W),[X,U]=aM(W,_),[,j]=jt(),V=i.Children.only(ER(o)?i.createElement("span",null,o):o),G=Wt(V,{className:z(`${W}-trigger`,{[`${W}-rtl`]:E==="rtl"},V.props.className),disabled:V.props.disabled??a}),te=a?[]:s,ee=!!(te!=null&&te.includes("contextMenu")),[ne,Y]=bt(!1,p),se=We(de=>{g==null||g(de,{source:"trigger"}),Y(de)}),ue=z(d,f,X,U,_,P,F.root,{[`${W}-rtl`]:E==="rtl"}),q=bb({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:$,offset:j.marginXXS,arrowWidth:n?j.sizePopupArrow:0,borderRadius:j.borderRadius}),oe=We(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),Y(!1))}),Z=()=>{const de=yt(F,["root"]),ge=yt(H,["root"]);let be;return t!=null&&t.items&&(be=i.createElement(Cs,{...t,classNames:{...de,subMenu:{...de}},styles:{...ge,subMenu:{...ge}}})),B&&(be=B(be)),be=i.Children.only(typeof be=="string"?i.createElement("span",null,be):be),i.createElement(KR,{prefixCls:`${W}-menu`,rootClassName:z(U,_),expandIcon:i.createElement("span",{className:`${W}-menu-submenu-arrow`},E==="rtl"?i.createElement(yR,{className:`${W}-menu-submenu-arrow-icon`}):i.createElement(a0,{className:`${W}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:me})=>{}},be)},[J,ae]=ls("Dropdown",L.zIndex);let we=i.createElement(xb,{alignPoint:ee,...yt(e,["rootClassName","onOpenChange"]),mouseEnterDelay:h,mouseLeaveDelay:b,visible:ne,builtinPlacements:q,arrow:!!n,overlayClassName:ue,prefixCls:W,getPopupContainer:u||R,transitionName:D,trigger:te,overlay:Z,placement:k,onVisibleChange:se,overlayStyle:{...L,zIndex:J},autoDestroy:w??x},G);return J&&(we=i.createElement(_i.Provider,{value:ae},we)),we},lM=bd(Yi,"align",void 0,"dropdown",e=>e),cM=e=>i.createElement(lM,{...e},i.createElement("span",null));Yi._InternalPanelDoNotUseOrYouWillBeFired=cM;function Ss(e){return rt(e,{inputAffixPadding:e.paddingXXS})}const xs=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:g,controlOutlineWidth:h,controlOutline:b,colorErrorOutline:$,colorWarningOutline:y,colorBgContainer:v,inputFontSize:C,inputFontSizeLG:S,inputFontSizeSM:x}=e,w=C||n,I=x||w,E=S||l,R=Math.round((t-w*r)/2*10)/10-o,P=Math.round((s-I*r)/2*10)/10-o,M=Math.ceil((a-E*c)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(M,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:g,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${b}`,errorActiveShadow:`0 0 0 ${h}px ${$}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:v,activeBg:v,inputFontSize:w,inputFontSizeLG:E,inputFontSizeSM:I}},uM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),zd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...uM(rt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),_b=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),yp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{..._b(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),kb=(e,t)=>({"&-outlined":{..._b(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...zd(e)},...yp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...yp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),$p=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),dM=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...$p(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...$p(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...zd(e)}}}}),Vb=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},Wb=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t==null?void 0:t.inputColor)??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Cp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Wb(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),jb=(e,t)=>({"&-filled":{...Wb(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...zd(e)},...Cp(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Cp(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),Sp=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),fM=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Sp(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Sp(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),qb=(e,t)=>({background:e.colorBgContainer,borderWidth:`${K(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...qb(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Gb=(e,t)=>({"&-underlined":{...qb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...xp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...xp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Xb=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ub=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${K(t)} ${K(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Kb=e=>({padding:`${K(e.paddingBlockSM)} ${K(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Bd=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${K(e.paddingBlock)} ${K(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Xb(e.colorTextPlaceholder),"&-lg":{...Ub(e),...t.largeStyle},"&-sm":{...Kb(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...Ub(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Kb(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${K(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${K(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${K(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${K(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${K(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...li(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
||
& > ${t}-affix-wrapper,
|
||
& > ${t}-number-affix-wrapper,
|
||
& > ${n}-picker-range
|
||
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
|
||
& > ${n}-select-auto-complete ${t},
|
||
& > ${n}-cascader-picker ${t},
|
||
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||
& > ${n}-select:first-child,
|
||
& > ${n}-select-auto-complete:first-child ${t},
|
||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||
& > ${n}-select:last-child,
|
||
& > ${n}-cascader-picker:last-child ${t},
|
||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},pM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Ct(e),...Bd(e),...kb(e),...jb(e),...Vb(e),...Gb(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},gM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${K(e.inputAffixPadding)}`}}}},hM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:s,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:{...Bd(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...gM(e),[`${l}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}},[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},bM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Ct(e),...mM(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...dM(e),...fM(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},vM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yb=at(["Input","Shared"],e=>{const t=rt(e,Ss(e));return[pM(t),hM(t)]},xs,{resetFont:!1}),Qb=at(["Input","Component"],e=>{const t=rt(e,Ss(e));return[bM(t),vM(t),yo(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},xs,{resetFont:!1});var yM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function qc(){return qc=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},qc.apply(this,arguments)}const $M=(e,t)=>i.createElement(Ye,qc({},e,{ref:t,icon:yM})),Zb=i.forwardRef($M);let ja;const CM=()=>(typeof ja>"u"&&(ja=yy()),ja),Ld=i.createContext(null),SM=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:s,align:a="center"}=o,[l,c]=i.useState(),u=i.useRef(),d=N.useCallback(m=>typeof s=="function"?s(m):typeof s=="number"?s:m,[s]);function f(){Ke.cancel(u.current)}return i.useEffect(()=>{const m={};if(t)if(n){m.width=d(t.width);const p=r?"right":"left";a==="start"&&(m[p]=t[p]),a==="center"&&(m[p]=t[p]+t.width/2,m.transform=r?"translateX(50%)":"translateX(-50%)"),a==="end"&&(m[p]=t[p]+t.width,m.transform="translateX(-100%)")}else m.height=d(t.height),a==="start"&&(m.top=t.top),a==="center"&&(m.top=t.top+t.height/2,m.transform="translateY(-50%)"),a==="end"&&(m.top=t.top+t.height,m.transform="translateY(-100%)");return f(),u.current=Ke(()=>{l&&m&&Object.keys(m).every(g=>{const h=m[g],b=l[g];return typeof h=="number"&&typeof b=="number"?Math.round(h)===Math.round(b):h===b})||c(m)}),f},[JSON.stringify(t),n,r,a,d]),{style:l}},wp={width:0,height:0,left:0,top:0};function xM(e,t,n){return i.useMemo(()=>{var a,l;const r=new Map,o=t.get((a=e[0])==null?void 0:a.key)||wp,s=o.left+o.width;for(let c=0;c<e.length;c+=1){const{key:u}=e[c];let d=t.get(u);d||(d=t.get((l=e[c-1])==null?void 0:l.key)||wp);const f=r.get(u)||{...d};f.right=s-f.left-f.width,r.set(u,f)}return r},[e.map(r=>r.key).join("_"),t,n])}function Ep(e,t){const n=i.useRef(e),[,r]=i.useState({});function o(s){const a=typeof s=="function"?s(n.current):s;a!==n.current&&t(a,n.current),n.current=a,r({})}return[n.current,o]}const wM=.1,Ip=.01,ri=20,Pp=.995**ri;function EM(e,t){const[n,r]=i.useState(),[o,s]=i.useState(0),[a,l]=i.useState(0),[c,u]=i.useState(),d=i.useRef();function f($){const{screenX:y,screenY:v}=$.touches[0];r({x:y,y:v}),window.clearInterval(d.current)}function m($){if(!n)return;const{screenX:y,screenY:v}=$.touches[0];r({x:y,y:v});const C=y-n.x,S=v-n.y;t(C,S);const x=Date.now();s(x),l(x-o),u({x:C,y:S})}function p(){if(n&&(r(null),u(null),c)){const $=c.x/a,y=c.y/a,v=Math.abs($),C=Math.abs(y);if(Math.max(v,C)<wM)return;let S=$,x=y;d.current=window.setInterval(()=>{if(Math.abs(S)<Ip&&Math.abs(x)<Ip){window.clearInterval(d.current);return}S*=Pp,x*=Pp,t(S*ri,x*ri)},ri)}}const g=i.useRef();function h($){const{deltaX:y,deltaY:v}=$;let C=0;const S=Math.abs(y),x=Math.abs(v);S===x?C=g.current==="x"?y:v:S>x?(C=y,g.current="x"):(C=v,g.current="y"),t(-C,-C)&&$.preventDefault()}const b=i.useRef(null);b.current={onTouchStart:f,onTouchMove:m,onTouchEnd:p,onWheel:h},i.useEffect(()=>{function $(S){b.current.onTouchStart(S)}function y(S){b.current.onTouchMove(S)}function v(S){b.current.onTouchEnd(S)}function C(S){b.current.onWheel(S)}return document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",v,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",C,{passive:!1}),()=>{document.removeEventListener("touchmove",y),document.removeEventListener("touchend",v)}},[])}function Jb(e){const[t,n]=i.useState(0),r=i.useRef(0),o=i.useRef();return o.current=e,Ks(()=>{var s;(s=o.current)==null||s.call(o)},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function IM(e){const t=i.useRef([]),[,n]=i.useState({}),r=i.useRef(typeof e=="function"?e():e),o=Jb(()=>{let a=r.current;t.current.forEach(l=>{a=l(a)}),t.current=[],r.current=a,n({})});function s(a){t.current.push(a),o()}return[r.current,s]}const Rp={width:0,height:0,left:0,top:0,right:0};function PM(e,t,n,r,o,s,{tabs:a,tabPosition:l,rtl:c}){let u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),i.useMemo(()=>{if(!a.length)return[0,0];const m=a.length;let p=m;for(let h=0;h<m;h+=1){const b=e.get(a[h].key)||Rp;if(Math.floor(b[d]+b[u])>Math.floor(f+t)){p=h-1;break}}let g=0;for(let h=m-1;h>=0;h-=1)if((e.get(a[h].key)||Rp)[d]<f){g=h+1;break}return g>p?[0,-1]:[g,p]},[e,t,r,o,s,f,l,a.map(m=>m.key).join("_"),c])}function Mp(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const RM="TABS_DQ";function ev(e){return String(e).replace(/"/g,RM)}function Hd(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const tv=i.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:o,style:s}=e;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:a=>{r.onEdit("add",{event:a})}},r.addIcon||"+")}),Np=i.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:o}=e;if(!o)return null;let s,a={};return typeof o=="object"&&!i.isValidElement(o)?a=o:a.right=o,n==="right"&&(s=a.right),n==="left"&&(s=a.left),s?i.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function Gc(){return Gc=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},Gc.apply(this,arguments)}const MM=i.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:o,locale:s,mobile:a,more:l={},style:c,className:u,editable:d,tabBarGutter:f,rtl:m,removeAriaLabel:p,onTabClick:g,getPopupContainer:h,popupClassName:b,popupStyle:$}=e,[y,v]=i.useState(!1),[C,S]=i.useState(null),{icon:x="More"}=l,w=`${r}-more-popup`,I=`${n}-dropdown`,E=C!==null?`${w}-${C}`:null,R=s==null?void 0:s.dropdownAriaLabel;function P(L,B){L.preventDefault(),L.stopPropagation(),d.onEdit("remove",{key:B,event:L})}const M=i.createElement(xo,{onClick:({key:L,domEvent:B})=>{g(L,B),v(!1)},prefixCls:`${I}-menu`,id:w,tabIndex:-1,role:"listbox","aria-activedescendant":E,selectedKeys:[C],"aria-label":R!==void 0?R:"expanded dropdown"},o.map(L=>{const{closable:B,disabled:D,closeIcon:k,key:W,label:_}=L,X=Hd(B,k,d,D);return i.createElement($s,{key:W,id:`${w}-${W}`,role:"option","aria-controls":r&&`${r}-panel-${W}`,disabled:D},i.createElement("span",null,_),X&&i.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:`${I}-menu-item-remove`,onClick:U=>{U.stopPropagation(),P(U,W)}},k||d.removeIcon||"×"))}));function O(L){const B=o.filter(W=>!W.disabled);let D=B.findIndex(W=>W.key===C)||0;const k=B.length;for(let W=0;W<k;W+=1){D=(D+L+k)%k;const _=B[D];if(!_.disabled){S(_.key);return}}}function A(L){const{which:B}=L;if(!y){[Me.DOWN,Me.SPACE,Me.ENTER].includes(B)&&(v(!0),L.preventDefault());return}switch(B){case Me.UP:O(-1),L.preventDefault();break;case Me.DOWN:O(1),L.preventDefault();break;case Me.ESC:v(!1);break;case Me.SPACE:case Me.ENTER:C!==null&&g(C,L);break}}i.useEffect(()=>{const L=document.getElementById(E);L!=null&&L.scrollIntoView&&L.scrollIntoView(!1)},[E,C]),i.useEffect(()=>{y||S(null)},[y]);const T={marginInlineStart:f};o.length||(T.visibility="hidden",T.order=1);const F=z(b,{[`${I}-rtl`]:m}),H=a?null:i.createElement(xb,Gc({prefixCls:I,overlay:M,visible:o.length?y:!1,onVisibleChange:v,overlayClassName:F,overlayStyle:$,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},l),i.createElement("button",{type:"button",className:`${n}-nav-more`,style:T,"aria-haspopup":"listbox","aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:A},x));return i.createElement("div",{className:z(`${n}-nav-operations`,u),style:c,ref:t},H,i.createElement(tv,{prefixCls:n,locale:s,editable:d}))}),NM=i.memo(MM,(e,t)=>t.tabMoving),TM=e=>{const{prefixCls:t,id:n,active:r,focus:o,tab:{key:s,label:a,disabled:l,closeIcon:c,icon:u},closable:d,renderWrapper:f,removeAriaLabel:m,editable:p,onClick:g,onFocus:h,onBlur:b,onKeyDown:$,onMouseDown:y,onMouseUp:v,style:C,className:S,tabCount:x,currentPosition:w}=e,I=`${t}-tab`,E=Hd(d,c,p,l);function R(T){l||g(T)}function P(T){T.preventDefault(),T.stopPropagation(),p.onEdit("remove",{key:s,event:T})}const M=i.useMemo(()=>u&&typeof a=="string"?i.createElement("span",null,a):a,[a,u]),O=i.useRef(null);i.useEffect(()=>{o&&O.current&&O.current.focus()},[o]);const A=i.createElement("div",{key:s,"data-node-key":ev(s),className:z(I,S,{[`${I}-with-remove`]:E,[`${I}-active`]:r,[`${I}-disabled`]:l,[`${I}-focus`]:o}),style:C,onClick:R},i.createElement("div",{ref:O,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${I}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:T=>{T.stopPropagation(),R(T)},onKeyDown:$,onMouseDown:y,onMouseUp:v,onFocus:h,onBlur:b},o&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${w} of ${x}`),u&&i.createElement("span",{className:`${I}-icon`},u),a&&M),E&&i.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:r?0:-1,className:`${I}-remove`,onClick:T=>{T.stopPropagation(),P(T)}},c||p.removeIcon||"×"));return f?f(A):A};function Xc(){return Xc=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},Xc.apply(this,arguments)}const OM=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:s}=e,{width:a,height:l,left:c,top:u}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,l,c-t.left,u-t.top]:[n,r,s,o]},Qr=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:o}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,o]}return[t,n]},qs=(e,t)=>e[t?0:1],Tp=i.forwardRef((e,t)=>{const{className:n,style:r,id:o,animated:s,activeKey:a,rtl:l,extra:c,editable:u,locale:d,tabPosition:f,tabBarGutter:m,children:p,onTabClick:g,onTabScroll:h,indicator:b,classNames:$,styles:y}=e,{prefixCls:v,tabs:C}=i.useContext(Ld),S=i.useRef(null),x=i.useRef(null),w=i.useRef(null),I=i.useRef(null),E=i.useRef(null),R=i.useRef(null),P=i.useRef(null),M=f==="top"||f==="bottom",[O,A]=Ep(0,(Q,pe)=>{M&&h&&h({direction:Q>pe?"left":"right"})}),[T,F]=Ep(0,(Q,pe)=>{!M&&h&&h({direction:Q>pe?"top":"bottom"})}),[H,L]=i.useState([0,0]),[B,D]=i.useState([0,0]),[k,W]=i.useState([0,0]),[_,X]=i.useState([0,0]),[U,j]=IM(new Map),V=xM(C,U,B[0]),G=qs(H,M),te=qs(B,M),ee=qs(k,M),ne=qs(_,M),Y=Math.floor(G)<Math.floor(te+ee),se=Y?G-ne:G-ee,ue=`${v}-nav-operations-hidden`;let q=0,oe=0;M&&l?(q=0,oe=Math.max(0,te-se)):(q=Math.min(0,se-te),oe=0);function Z(Q){return Q<q?q:Q>oe?oe:Q}const J=i.useRef(null),[ae,we]=i.useState();function de(){we(Date.now())}function ge(){J.current&&clearTimeout(J.current)}EM(I,(Q,pe)=>{function ie(he,xe){he(Te=>Z(Te+xe))}return Y?(M?ie(A,Q):ie(F,pe),ge(),de(),!0):!1}),i.useEffect(()=>(ge(),ae&&(J.current=setTimeout(()=>{we(0)},100)),ge),[ae]);const[be,me]=PM(V,se,M?O:T,te,ee,ne,{...e,tabs:C}),Ne=We((Q=a)=>{const pe=V.get(Q)||{width:0,height:0,left:0,right:0,top:0};if(M){let ie=O;l?pe.right<O?ie=pe.right:pe.right+pe.width>O+se&&(ie=pe.right+pe.width-se):pe.left<-O?ie=-pe.left:pe.left+pe.width>-O+se&&(ie=-(pe.left+pe.width-se)),F(0),A(Z(ie))}else{let ie=T;pe.top<-T?ie=-pe.top:pe.top+pe.height>-T+se&&(ie=-(pe.top+pe.height-se)),A(0),F(Z(ie))}}),[Ae,Ee]=i.useState(),[ze,Re]=i.useState(!1),ve=C.filter(Q=>!Q.disabled).map(Q=>Q.key),fe=Q=>{const pe=ve.indexOf(Ae||a),ie=ve.length,he=(pe+Q+ie)%ie,xe=ve[he];Ee(xe)},Ce=(Q,pe)=>{const ie=ve.indexOf(Q),he=C.find(Te=>Te.key===Q);Hd(he==null?void 0:he.closable,he==null?void 0:he.closeIcon,u,he==null?void 0:he.disabled)&&(pe.preventDefault(),pe.stopPropagation(),u.onEdit("remove",{key:Q,event:pe}),ie===ve.length-1?fe(-1):fe(1))},He=(Q,pe)=>{Re(!0),pe.button===1&&Ce(Q,pe)},Ie=Q=>{const{code:pe}=Q,ie=l&&M,he=ve[0],xe=ve[ve.length-1];switch(pe){case"ArrowLeft":{M&&fe(ie?1:-1);break}case"ArrowRight":{M&&fe(ie?-1:1);break}case"ArrowUp":{Q.preventDefault(),M||fe(-1);break}case"ArrowDown":{Q.preventDefault(),M||fe(1);break}case"Home":{Q.preventDefault(),Ee(he);break}case"End":{Q.preventDefault(),Ee(xe);break}case"Enter":case"Space":{Q.preventDefault(),g(Ae??a,Q);break}case"Backspace":case"Delete":{Ce(Ae,Q);break}}},re={};M?re.marginInlineStart=m:re.marginTop=m;const $e=C.map((Q,pe)=>{const{key:ie}=Q;return i.createElement(TM,{id:o,prefixCls:v,key:ie,tab:Q,className:$==null?void 0:$.item,style:pe===0?y==null?void 0:y.item:{...re,...y==null?void 0:y.item},closable:Q.closable,editable:u,active:ie===a,focus:ie===Ae,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ve.length,currentPosition:pe+1,onClick:he=>{g(ie,he)},onKeyDown:Ie,onFocus:()=>{ze||Ee(ie),Ne(ie),de(),I.current&&(l||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:()=>{Ee(void 0)},onMouseDown:he=>He(ie,he),onMouseUp:()=>{Re(!1)}})}),ke=()=>j(()=>{var ie;const Q=new Map,pe=(ie=E.current)==null?void 0:ie.getBoundingClientRect();return C.forEach(({key:he})=>{var Te;const xe=(Te=E.current)==null?void 0:Te.querySelector(`[data-node-key="${ev(he)}"]`);if(xe){const[Fe,Je,tt,Ze]=OM(xe,pe);Q.set(he,{width:Fe,height:Je,left:tt,top:Ze})}}),Q});i.useEffect(()=>{ke()},[C.map(Q=>Q.key).join("_")]);const De=Jb(()=>{const Q=Qr(S),pe=Qr(x),ie=Qr(w);L([Q[0]-pe[0]-ie[0],Q[1]-pe[1]-ie[1]]);const he=Qr(P);W(he);const xe=Qr(R);X(xe);const Te=Qr(E);D([Te[0]-he[0],Te[1]-he[1]]),ke()}),ot=C.slice(0,be),qe=C.slice(me+1),ft=[...ot,...qe],Qe=V.get(a),{style:st}=SM({activeTabOffset:Qe,horizontal:M,indicator:b,rtl:l});i.useEffect(()=>{Ne()},[a,q,oe,Mp(Qe),Mp(V),M]),i.useEffect(()=>{De()},[l]);const lt=!!ft.length,Se=`${v}-nav-wrap`;let Be,Pe,ye,ce;return M?l?(Pe=O>0,Be=O!==oe):(Be=O<0,Pe=O!==q):(ye=T<0,ce=T!==q),i.createElement(Fn,{onResize:De},i.createElement("div",{ref:qn(t,S),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:z(`${v}-nav`,n,$==null?void 0:$.header),style:{...y==null?void 0:y.header,...r},onKeyDown:()=>{de()}},i.createElement(Np,{ref:x,position:"left",extra:c,prefixCls:v}),i.createElement(Fn,{onResize:De},i.createElement("div",{className:z(Se,{[`${Se}-ping-left`]:Be,[`${Se}-ping-right`]:Pe,[`${Se}-ping-top`]:ye,[`${Se}-ping-bottom`]:ce}),ref:I},i.createElement(Fn,{onResize:De},i.createElement("div",{ref:E,className:`${v}-nav-list`,style:{transform:`translate(${O}px, ${T}px)`,transition:ae?"none":void 0}},$e,i.createElement(tv,{ref:P,prefixCls:v,locale:d,editable:u,style:{...$e.length===0?void 0:re,visibility:lt?"hidden":null}}),i.createElement("div",{className:z(`${v}-ink-bar`,$==null?void 0:$.indicator,{[`${v}-ink-bar-animated`]:s.inkBar}),style:{...st,...y==null?void 0:y.indicator}}))))),i.createElement(NM,Xc({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:v,tabs:ft,className:!lt&&ue,popupStyle:y==null?void 0:y.popup,tabMoving:!!ae})),i.createElement(Np,{ref:w,position:"right",extra:c,prefixCls:v})))}),AM=({renderTabBar:e,...t})=>e?e(t,Tp):i.createElement(Tp,t),zM=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,id:s,active:a,tabKey:l,children:c}=e,u=i.Children.count(c)>0;return i.createElement("div",{id:s&&`${s}-panel-${l}`,role:"tabpanel",tabIndex:a&&u?0:-1,"aria-labelledby":s&&`${s}-tab-${l}`,"aria-hidden":!a,style:o,className:z(n,a&&`${n}-active`,r),ref:t},c)});function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}const BM=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:s,contentStyle:a,contentClassName:l}=e,{prefixCls:c,tabs:u}=i.useContext(Ld),d=r.tabPane,f=`${c}-tabpane`;return i.createElement("div",{className:z(`${c}-content-holder`)},i.createElement("div",{className:z(`${c}-content`,`${c}-content-${o}`,{[`${c}-content-animated`]:d})},u.map(m=>{const{key:p,forceRender:g,style:h,className:b,destroyOnHidden:$,...y}=m,v=p===n;return i.createElement(un,Ii({key:p,visible:v,forceRender:g,removeOnLeave:!!(s??$),leavedClassName:`${f}-hidden`},r.tabPaneMotion),({style:C,className:S},x)=>i.createElement(zM,Ii({},y,{prefixCls:f,id:t,tabKey:p,animated:d,active:v,style:{...a,...h,...C},className:z(l,b,S),ref:x})))})))};function LM(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Go(){return Go=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},Go.apply(this,arguments)}let Op=0;const HM=i.forwardRef((e,t)=>{var V;const{id:n,prefixCls:r="rc-tabs",className:o,items:s,direction:a,activeKey:l,defaultActiveKey:c,editable:u,animated:d,tabPosition:f="top",tabBarGutter:m,tabBarStyle:p,tabBarExtraContent:g,locale:h,more:b,destroyOnHidden:$,renderTabBar:y,onChange:v,onTabClick:C,onTabScroll:S,getPopupContainer:x,popupClassName:w,indicator:I,classNames:E,styles:R,...P}=e,M=i.useMemo(()=>(s||[]).filter(G=>G&&typeof G=="object"&&"key"in G),[s]),O=a==="rtl",A=LM(d),[T,F]=i.useState(!1);i.useEffect(()=>{F(CM())},[]);const[H,L]=bt(c??((V=M[0])==null?void 0:V.key),l),[B,D]=i.useState(()=>M.findIndex(G=>G.key===H));i.useEffect(()=>{var te;let G=M.findIndex(ee=>ee.key===H);G===-1&&(G=Math.max(0,Math.min(B,M.length-1)),L((te=M[G])==null?void 0:te.key)),D(G)},[M.map(G=>G.key).join("_"),H,B]);const[k,W]=bt(null,n);i.useEffect(()=>{n||(W(`rc-tabs-${Op}`),Op+=1)},[]);function _(G,te){C==null||C(G,te);const ee=G!==H;L(G),ee&&(v==null||v(G))}const X={id:k,activeKey:H,animated:A,tabPosition:f,rtl:O,mobile:T},U={...X,editable:u,locale:h,more:b,tabBarGutter:m,onTabClick:_,onTabScroll:S,extra:g,style:p,getPopupContainer:x,popupClassName:z(w,E==null?void 0:E.popup),indicator:I,styles:R,classNames:E},j=i.useMemo(()=>({tabs:M,prefixCls:r}),[M,r]);return i.createElement(Ld.Provider,{value:j},i.createElement("div",Go({ref:t,id:n,className:z(r,`${r}-${f}`,{[`${r}-mobile`]:T,[`${r}-editable`]:u,[`${r}-rtl`]:O},o)},P),i.createElement(AM,Go({},U,{renderTabBar:y})),i.createElement(BM,Go({destroyOnHidden:$},X,{contentStyle:R==null?void 0:R.content,contentClassName:E==null?void 0:E.content,animated:A}))))}),DM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function FM(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...DM,motionName:lr(e,"switch")}),n}function _M(e){return e.filter(t=>t)}function kM(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=Vt(t).map(r=>{if(i.isValidElement(r)){const{key:o,props:s}=r,{tab:a,...l}=s||{};return{key:String(o),...l,label:a}}return null});return _M(n)}const VM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[cr(e,"slide-up"),cr(e,"slide-down")]]},WM=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:s,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${K(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ho(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:K(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:K(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadiusLG)} 0 0 ${K(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},jM=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Ct(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${K(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Wn,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${K(e.paddingXXS)} ${K(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},qM=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:s,verticalItemMargin:a,motionDurationSlow:l,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${K(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(u=>`${u} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(u=>`${u} ${l}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:K(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},GM=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:s,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadius)} ${K(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${K(e.borderRadius)} ${K(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadius)} ${K(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadius)} 0 0 ${K(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},XM=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:s,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...bn(e)},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l},[`&${u}-focus ${u}-btn:focus-visible`]:ho(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:s}}}},UM=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:s}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:K(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:K(e.marginXS)},marginLeft:{_skip_check_:!0,value:K(s(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},KM=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:s,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:{...Ct(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${K(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:a},...bn(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...XM(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...bn(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},YM=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:s}=e,a=t||s,l=n||o,c=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},QM=at("Tabs",e=>{const t=rt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${K(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${K(e.horizontalItemGutter)}`});return[GM(t),UM(t),qM(t),jM(t),WM(t),KM(t),VM(t)]},YM),ZM=()=>null,JM=i.forwardRef((e,t)=>{var q,oe,Z,J;const{type:n,className:r,rootClassName:o,size:s,onEdit:a,hideAdd:l,centered:c,addIcon:u,removeIcon:d,moreIcon:f,more:m,popupClassName:p,children:g,items:h,animated:b,style:$,indicatorSize:y,indicator:v,classNames:C,styles:S,destroyInactiveTabPane:x,destroyOnHidden:w,tabPlacement:I,tabPosition:E,...R}=e,{prefixCls:P}=R,{getPrefixCls:M,direction:O,getPopupContainer:A,className:T,style:F,classNames:H,styles:L}=dt("tabs"),{tabs:B}=i.useContext(je),D=M("tabs",P),k=_t(D),[W,_]=QM(D,k),X=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:X.current}));let U;n==="editable-card"&&(U={onEdit:(ae,{key:we,event:de})=>{a==null||a(ae==="add"?de:we,ae)},removeIcon:d??(B==null?void 0:B.removeIcon)??i.createElement(Br,null),addIcon:(u??(B==null?void 0:B.addIcon))||i.createElement(Zb,null),showAdd:l!==!0});const j=M(),V=Jt(s),G=kM(h,g),te=FM(D,b),ee={align:(v==null?void 0:v.align)??((q=B==null?void 0:B.indicator)==null?void 0:q.align),size:(v==null?void 0:v.size)??y??((oe=B==null?void 0:B.indicator)==null?void 0:oe.size)??(B==null?void 0:B.indicatorSize)},ne=i.useMemo(()=>{const ae=I??E??void 0,we=O==="rtl";switch(ae){case"start":return we?"right":"left";case"end":return we?"left":"right";default:return ae}},[I,E,O]),Y={...e,size:V,tabPlacement:ne,items:G},[se,ue]=pt([H,C],[L,S],{props:Y},{popup:{_default:"root"}});return i.createElement(HM,{ref:X,direction:O,getPopupContainer:A,...R,items:G,className:z({[`${D}-${V}`]:V,[`${D}-card`]:["card","editable-card"].includes(n),[`${D}-editable-card`]:n==="editable-card",[`${D}-centered`]:c},T,r,o,se.root,W,_,k),classNames:{...se,popup:z(p,W,_,k,(Z=se.popup)==null?void 0:Z.root)},styles:ue,style:{...ue.root,...F,...$},editable:U,more:{icon:((J=B==null?void 0:B.more)==null?void 0:J.icon)??(B==null?void 0:B.moreIcon)??f??i.createElement(Ad,null),transitionName:`${j}-slide-up`,...m},prefixCls:D,animated:te,indicator:ee,destroyOnHidden:w??x,tabPosition:ne})}),e4=JM;e4.TabPane=ZM;const t4=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},n4=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:s,orientationMargin:a,verticalMarginInline:l}=e,c=`${t}-rail`;return{[t]:{...Ct(e),borderBlockStart:`${K(o)} solid ${r}`,[c]:{borderBlockStart:`${K(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${K(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${K(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${K(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${c}-start, ${c}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${a} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${c}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${K(o)} 0 0`,[c]:{borderBlockStart:`${K(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${K(o)} 0 0`,[c]:{borderBlockStart:`${K(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:"100%"},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},r4=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),o4=at("Divider",e=>{const t=rt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[n4(t),t4(t)]},r4,{unitless:{orientationMargin:!0}}),s4=["left","right","center","start","end"],i4={small:"sm",middle:"md"},a4=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:s,styles:a}=dt("divider"),{prefixCls:l,type:c,orientation:u,vertical:d,titlePlacement:f,orientationMargin:m,className:p,rootClassName:g,children:h,dashed:b,variant:$="solid",plain:y,style:v,size:C,classNames:S,styles:x,...w}=e,I=t("divider",l),E=`${I}-rail`,[R,P]=o4(I),M=Jt(C),O=i4[M],A=!!h,T=s4.includes(u||""),F=i.useMemo(()=>{const V=f??(T?u:"center");return V==="left"?n==="rtl"?"end":"start":V==="right"?n==="rtl"?"start":"end":V},[n,u,f,T]),H=F==="start"&&m!=null,L=F==="end"&&m!=null,[B,D]=vo(u,d,c),k={...e,orientation:B,titlePlacement:F,size:M},[W,_]=pt([s,S],[a,x],{props:k}),X=z(I,r,R,P,`${I}-${B}`,{[`${I}-with-text`]:A,[`${I}-with-text-${F}`]:A,[`${I}-dashed`]:!!b,[`${I}-${$}`]:$!=="solid",[`${I}-plain`]:!!y,[`${I}-rtl`]:n==="rtl",[`${I}-no-default-orientation-margin-start`]:H,[`${I}-no-default-orientation-margin-end`]:L,[`${I}-${O}`]:!!O,[E]:!h,[W.rail]:W.rail&&!h},p,g,W.root),U=i.useMemo(()=>typeof m=="number"?m:/^\d+$/.test(m)?Number(m):m,[m]),j={marginInlineStart:H?U:void 0,marginInlineEnd:L?U:void 0};return i.createElement("div",{className:X,style:{...o,..._.root,...h?{}:_.rail,...v},...w,role:"separator"},h&&!D&&i.createElement(i.Fragment,null,i.createElement("div",{className:z(E,`${E}-start`,W.rail),style:_.rail}),i.createElement("span",{className:z(`${I}-inner-text`,W.content),style:{...j,..._.content}},h),i.createElement("div",{className:z(E,`${E}-end`,W.rail),style:_.rail})))},Ap=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Mn=e=>e!==void 0?`${e}px`:void 0;function l4(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:o,motionName:s,onMotionStart:a,onMotionEnd:l,direction:c,vertical:u=!1}=e,d=i.useRef(null),[f,m]=i.useState(r),p=w=>{var R;const I=o(w),E=(R=n.current)==null?void 0:R.querySelectorAll(`.${t}-item`)[I];return(E==null?void 0:E.offsetParent)&&E},[g,h]=i.useState(null),[b,$]=i.useState(null);nt(()=>{if(f!==r){const w=p(f),I=p(r),E=Ap(w,u),R=Ap(I,u);m(r),h(E),$(R),w&&I?a():l()}},[r]);const y=i.useMemo(()=>Mn(u?(g==null?void 0:g.top)??0:c==="rtl"?-(g==null?void 0:g.right):g==null?void 0:g.left),[u,c,g]),v=i.useMemo(()=>Mn(u?(b==null?void 0:b.top)??0:c==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left),[u,c,b]),C=()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},S=()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},x=()=>{h(null),$(null),l()};return!g||!b?null:i.createElement(un,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:C,onAppearActive:S,onVisibleChanged:x},({className:w,style:I},E)=>{const R={...I,"--thumb-start-left":y,"--thumb-start-width":Mn(g==null?void 0:g.width),"--thumb-active-left":v,"--thumb-active-width":Mn(b==null?void 0:b.width),"--thumb-start-top":y,"--thumb-start-height":Mn(g==null?void 0:g.height),"--thumb-active-top":v,"--thumb-active-height":Mn(b==null?void 0:b.height)},P={ref:Ft(d,E),style:R,className:z(`${t}-thumb`,w)};return i.createElement("div",P)})}function c4(e){var t;if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return(t=e.label)==null?void 0:t.toString()}function u4(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=c4(t);return{...t,title:n}}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}const d4=({prefixCls:e,className:t,style:n,styles:r,classNames:o,data:s,disabled:a,checked:l,label:c,title:u,value:d,name:f,onChange:m,onFocus:p,onBlur:g,onKeyDown:h,onKeyUp:b,onMouseDown:$,itemRender:y=v=>v})=>{const v=S=>{a||m(S,d)},C=i.createElement("label",{className:z(t,{[`${e}-item-disabled`]:a}),style:n,onMouseDown:$},i.createElement("input",{name:f,className:`${e}-item-input`,type:"radio",disabled:a,checked:l,onChange:v,onFocus:p,onBlur:g,onKeyDown:h,onKeyUp:b}),i.createElement("div",{className:z(`${e}-item-label`,o==null?void 0:o.label),title:u,style:r==null?void 0:r.label},c));return y(C,{item:s})},f4=i.forwardRef((e,t)=>{var W;const{prefixCls:n="rc-segmented",direction:r,vertical:o,options:s=[],disabled:a,defaultValue:l,value:c,name:u,onChange:d,className:f="",style:m,styles:p,classNames:g,motionName:h="thumb-motion",itemRender:b,...$}=e,y=i.useRef(null),v=i.useMemo(()=>Ft(y,t),[y,t]),C=i.useMemo(()=>u4(s),[s]),[S,x]=bt(l??((W=C[0])==null?void 0:W.value),c),[w,I]=i.useState(!1),E=(_,X)=>{x(X),d==null||d(X)},R=yt($,["children"]),[P,M]=i.useState(!1),[O,A]=i.useState(!1),T=()=>{A(!0)},F=()=>{A(!1)},H=()=>{M(!1)},L=_=>{_.key==="Tab"&&M(!0)},B=_=>{const X=C.findIndex(G=>G.value===S),U=C.length,j=(X+_+U)%U,V=C[j];V&&(x(V.value),d==null||d(V.value))},D=_=>{switch(_.key){case"ArrowLeft":case"ArrowUp":B(-1);break;case"ArrowRight":case"ArrowDown":B(1);break}},k=_=>{const{value:X,disabled:U}=_;return i.createElement(d4,Et({},_,{name:u,data:_,itemRender:b,key:X,prefixCls:n,className:z(_.className,`${n}-item`,g==null?void 0:g.item,{[`${n}-item-selected`]:X===S&&!w,[`${n}-item-focused`]:O&&P&&X===S}),style:p==null?void 0:p.item,classNames:g,styles:p,checked:X===S,onChange:E,onFocus:T,onBlur:F,onKeyDown:D,onKeyUp:L,onMouseDown:H,disabled:!!a||!!U}))};return i.createElement("div",Et({role:"radiogroup","aria-label":"segmented control",tabIndex:a?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:m},R,{className:z(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:a,[`${n}-vertical`]:o},f),ref:v}),i.createElement("div",{className:`${n}-group`},i.createElement(l4,{vertical:o,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:_=>C.findIndex(X=>X.value===_),onMotionStart:()=>{I(!0)},onMotionEnd:()=>{I(!1)}}),C.map(k)))}),m4=f4;function zp(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Bp(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const p4={overflow:"hidden",...Wn},g4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ct(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...bn(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${K(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Bp(e),color:e.itemSelectedColor},"&-focused":ho(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(c=>`${c} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:s,lineHeight:K(s),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,...p4},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...Bp(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${K(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:K(a),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:K(l),padding:`0 ${K(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...zp(`&-disabled ${t}-item`,e),...zp(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},h4=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:s,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},b4=at("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=rt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return g4(r)},h4);function v4(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const y4=i.forwardRef((e,t)=>{const n=Xn(),{prefixCls:r,className:o,rootClassName:s,block:a,options:l=[],size:c="middle",style:u,vertical:d,orientation:f,shape:m="default",name:p=n,styles:g,classNames:h,...b}=e,{getPrefixCls:$,direction:y,className:v,style:C,classNames:S,styles:x}=dt("segmented"),w={...e,options:l,size:c,shape:m},[I,E]=pt([S,h],[x,g],{props:w}),R=$("segmented",r),[P,M]=b4(R),O=Jt(c),A=i.useMemo(()=>l.map(B=>{if(v4(B)){const{icon:D,label:k,...W}=B;return{...W,label:i.createElement(i.Fragment,null,i.createElement("span",{className:z(`${R}-item-icon`,I.icon),style:E.icon},D),k&&i.createElement("span",null,k))}}return B}),[l,R,I.icon,E.icon]),[,T]=vo(f,d),F=z(o,s,v,I.root,{[`${R}-block`]:a,[`${R}-sm`]:O==="small",[`${R}-lg`]:O==="large",[`${R}-vertical`]:T,[`${R}-shape-${m}`]:m==="round"},P,M),H={...E.root,...C,...u},L=(B,{item:D})=>{if(!D.tooltip)return B;const k=typeof D.tooltip=="object"?D.tooltip:{title:D.tooltip};return i.createElement(Kn,{...k},B)};return i.createElement(m4,{...b,name:p,className:F,style:H,classNames:I,styles:E,itemRender:L,options:A,ref:t,prefixCls:R,direction:y,vertical:T})}),$4=y4,nv=N.createContext({}),rv=N.createContext({}),ov=({prefixCls:e,value:t,onChange:n,className:r,style:o})=>{const s=()=>{if(n&&t&&!t.cleared){const a=t.toHsb();a.a=0;const l=Bt(a);l.cleared=!0,n(l)}};return N.createElement("div",{className:z(`${e}-clear`,r),style:o,onClick:s})},sv="hex",iv="rgb",av="hsb";var C4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function Uc(){return Uc=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},Uc.apply(this,arguments)}const S4=(e,t)=>i.createElement(Ye,Uc({},e,{ref:t,icon:C4})),x4=i.forwardRef(S4);var w4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function Kc(){return Kc=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},Kc.apply(this,arguments)}const E4=(e,t)=>i.createElement(Ye,Kc({},e,{ref:t,icon:w4})),I4=i.forwardRef(E4);function Yc(){return typeof BigInt=="function"}function lv(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Mr(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),s=o[0]||"0",a=o[1]||"0";s==="0"&&a==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:s,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Dd(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function wr(e){var t=String(e);if(Dd(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Fd(t)?t.length-t.indexOf(".")-1:0}function Qi(e){var t=String(e);if(Dd(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Yc()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Yc()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(wr(t))}return Mr(t).fullStr}function Fd(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var P4=function(){function e(t){if(Pn(this,e),Ve(this,"origin",""),Ve(this,"negative",void 0),Ve(this,"integer",void 0),Ve(this,"decimal",void 0),Ve(this,"decimalLen",void 0),Ve(this,"empty",void 0),Ve(this,"nan",void 0),lv(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Dd(n)&&(n=Number(n)),n=typeof n=="string"?n:Qi(n),Fd(n)){var r=Mr(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var s=o[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return In(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var s=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(s),l=n.alignDecimal(s),c=r(a,l).toString(),u=o(s),d=Mr(c),f=d.negativeStr,m=d.trimStr,p="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(p.slice(0,-u),".").concat(p.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,s){return o+s},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,s){return o*s},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Mr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),R4=function(){function e(t){if(Pn(this,e),Ve(this,"origin",""),Ve(this,"number",void 0),Ve(this,"empty",void 0),lv(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return In(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(wr(this.number),wr(r));return new e(o.toFixed(s))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(wr(this.number),wr(r));return new e(o.toFixed(s))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Qi(this.number):this.origin}}]),e}();function Cn(e){return Yc()?new P4(e):new R4(e)}function oi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Mr(e),s=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),u="".concat(s).concat(a);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Cn(e).add("".concat(s,"0.").concat("0".repeat(n)).concat(10-d));return oi(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function M4(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function N4(e,t){const n=i.useRef(null);function r(){try{const{selectionStart:s,selectionEnd:a,value:l}=e,c=l.substring(0,s),u=l.substring(a);n.current={start:s,end:a,value:l,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{const{value:s}=e,{beforeTxt:a,afterTxt:l,start:c}=n.current;let u=s.length;if(s.startsWith(a))u=a.length;else if(s.endsWith(l))u=s.length-n.current.afterTxt.length;else{const d=a[c-1],f=s.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(s){Pt(!1,`Something warning of cursor restore. Please fire issue about this: ${s.message}`)}}return[r,o]}const T4=200,O4=600;function Lp({prefixCls:e,action:t,children:n,disabled:r,className:o,style:s,onStep:a}){const l=t==="up",c=i.useRef(),u=i.useRef([]),d=()=>{clearTimeout(c.current)},f=h=>{h.preventDefault(),d(),a(l,"handler");function b(){a(l,"handler"),c.current=setTimeout(b,T4)}c.current=setTimeout(b,O4)};i.useEffect(()=>()=>{d(),u.current.forEach(h=>{Ke.cancel(h)})},[]);const m=`${e}-action`,p=z(m,`${m}-${t}`,{[`${m}-${t}-disabled`]:r},o),g=()=>u.current.push(Ke(d));return i.createElement("span",{unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g,onMouseDown:h=>{f(h)},"aria-label":l?"Increase Value":"Decrease Value","aria-disabled":r,className:p,style:s},n||i.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function Hp(e){const t=typeof e=="number"?Qi(e):Mr(e).fullStr;return t.includes(".")?Mr(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const A4=()=>{const e=i.useRef(0),t=()=>{Ke.cancel(e.current)};return i.useEffect(()=>t,[]),n=>{t(),e.current=Ke(()=>{n()})}};function Xo(){return Xo=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},Xo.apply(this,arguments)}const Dp=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),Fp=e=>{const t=Cn(e);return t.isInvalidate()?null:t},z4=i.forwardRef((e,t)=>{const{mode:n="input",prefixCls:r="rc-input-number",className:o,style:s,classNames:a,styles:l,min:c,max:u,step:d=1,defaultValue:f,value:m,disabled:p,readOnly:g,upHandler:h,downHandler:b,keyboard:$,changeOnWheel:y=!1,controls:v=!0,prefix:C,suffix:S,stringMode:x,parser:w,formatter:I,precision:E,decimalSeparator:R,onChange:P,onInput:M,onPressEnter:O,onStep:A,onMouseDown:T,onClick:F,onMouseUp:H,onMouseLeave:L,onMouseMove:B,onMouseEnter:D,onMouseOut:k,changeOnBlur:W=!0,..._}=e,[X,U]=i.useState(!1),j=i.useRef(!1),V=i.useRef(!1),G=i.useRef(!1),te=i.useRef(null),ee=i.useRef(null);i.useImperativeHandle(t,()=>M4(ee.current,{focus:Se=>{md(ee.current,Se)},blur:()=>{var Se;(Se=ee.current)==null||Se.blur()},nativeElement:te.current}));const[ne,Y]=i.useState(()=>Cn(m??f));function se(Se){m===void 0&&Y(Se)}const ue=i.useCallback((Se,Be)=>{if(!Be)return E>=0?E:Math.max(wr(Se),wr(d))},[E,d]),q=i.useCallback(Se=>{const Be=String(Se);if(w)return w(Be);let Pe=Be;return R&&(Pe=Pe.replace(R,".")),Pe.replace(/[^\w.-]+/g,"")},[w,R]),oe=i.useRef(""),Z=i.useCallback((Se,Be)=>{if(I)return I(Se,{userTyping:Be,input:String(oe.current)});let Pe=typeof Se=="number"?Qi(Se):Se;if(!Be){const ye=ue(Pe,Be);Fd(Pe)&&(R||ye>=0)&&(Pe=oi(Pe,R||".",ye))}return Pe},[I,ue,R]),[J,ae]=i.useState(()=>{const Se=f??m;return ne.isInvalidate()&&["string","number"].includes(typeof Se)?Number.isNaN(Se)?"":Se:Z(ne.toString(),!1)});oe.current=J;function we(Se,Be){ae(Z(Se.isInvalidate()?Se.toString(!1):Se.toString(!Be),Be))}const de=i.useMemo(()=>Fp(u),[u,E]),ge=i.useMemo(()=>Fp(c),[c,E]),be=i.useMemo(()=>!de||!ne||ne.isInvalidate()?!1:de.lessEquals(ne),[de,ne]),me=i.useMemo(()=>!ge||!ne||ne.isInvalidate()?!1:ne.lessEquals(ge),[ge,ne]),[Ne,Ae]=N4(ee.current,X),Ee=Se=>de&&!Se.lessEquals(de)?de:ge&&!ge.lessEquals(Se)?ge:null,ze=Se=>!Ee(Se),Re=(Se,Be)=>{let Pe=Se,ye=ze(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!Be&&(Pe=Ee(Pe)||Pe,ye=!0),!g&&!p&&ye){const ce=Pe.toString(),Q=ue(ce,Be);return Q>=0&&(Pe=Cn(oi(ce,".",Q)),ze(Pe)||(Pe=Cn(oi(ce,".",Q,!0)))),Pe.equals(ne)||(se(Pe),P==null||P(Pe.isEmpty()?null:Dp(x,Pe)),m===void 0&&we(Pe,Be)),Pe}return ne},ve=A4(),fe=Se=>{if(Ne(),oe.current=Se,ae(Se),!V.current){const Be=q(Se),Pe=Cn(Be);Pe.isNaN()||Re(Pe,!0)}M==null||M(Se),ve(()=>{let Be=Se;w||(Be=Se.replace(/。/g,".")),Be!==Se&&fe(Be)})},Ce=()=>{V.current=!0},He=()=>{V.current=!1,fe(ee.current.value)},Ie=Se=>{fe(Se.target.value)},re=We((Se,Be)=>{var Q;if(Se&&be||!Se&&me)return;j.current=!1;let Pe=Cn(G.current?Hp(d):d);Se||(Pe=Pe.negate());const ye=(ne||Cn(0)).add(Pe.toString()),ce=Re(ye,!1);A==null||A(Dp(x,ce),{offset:G.current?Hp(d):d,type:Se?"up":"down",emitter:Be}),(Q=ee.current)==null||Q.focus()}),$e=Se=>{const Be=Cn(q(J));let Pe;Be.isNaN()?Pe=Re(ne,Se):Pe=Re(Be,Se),m!==void 0?we(ne,!1):Pe.isNaN()||we(Pe,!1)},ke=()=>{j.current=!0},De=Se=>{const{key:Be,shiftKey:Pe}=Se;j.current=!0,G.current=Pe,Be==="Enter"&&(V.current||(j.current=!1),$e(!1),O==null||O(Se)),$!==!1&&!V.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Be)&&(re(Be==="Up"||Be==="ArrowUp","keyboard"),Se.preventDefault())},ot=()=>{j.current=!1,G.current=!1};i.useEffect(()=>{if(y&&X){const Se=Pe=>{re(Pe.deltaY<0,"wheel"),Pe.preventDefault()},Be=ee.current;if(Be)return Be.addEventListener("wheel",Se,{passive:!1}),()=>Be.removeEventListener("wheel",Se)}});const qe=()=>{W&&$e(!1),U(!1),j.current=!1},ft=Se=>{ee.current&&Se.target!==ee.current&&(ee.current.focus(),Se.preventDefault()),T==null||T(Se)};Ks(()=>{ne.isInvalidate()||we(ne,!1)},[E,I]),Ks(()=>{const Se=Cn(m);Y(Se);const Be=Cn(q(J));(!Se.equals(Be)||!j.current||I)&&we(Se,j.current)},[m]),Ks(()=>{I&&Ae()},[J]);const Qe={prefixCls:r,onStep:re,className:a==null?void 0:a.action,style:l==null?void 0:l.action},st=i.createElement(Lp,Xo({},Qe,{action:"up",disabled:be}),h),lt=i.createElement(Lp,Xo({},Qe,{action:"down",disabled:me}),b);return i.createElement("div",{ref:te,className:z(r,`${r}-mode-${n}`,o,a==null?void 0:a.root,{[`${r}-focused`]:X,[`${r}-disabled`]:p,[`${r}-readonly`]:g,[`${r}-not-a-number`]:ne.isNaN(),[`${r}-out-of-range`]:!ne.isInvalidate()&&!ze(ne)}),style:{...l==null?void 0:l.root,...s},onMouseDown:ft,onMouseUp:H,onMouseLeave:L,onMouseMove:B,onMouseEnter:D,onMouseOut:k,onClick:F,onFocus:()=>{U(!0)},onBlur:qe,onKeyDown:De,onKeyUp:ot,onCompositionStart:Ce,onCompositionEnd:He,onBeforeInput:ke},n==="spinner"&&v&<,C!==void 0&&i.createElement("div",{className:z(`${r}-prefix`,a==null?void 0:a.prefix),style:l==null?void 0:l.prefix},C),i.createElement("input",Xo({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:d,ref:ee,className:z(`${r}-input`,a==null?void 0:a.input),style:l==null?void 0:l.input,value:J,onChange:Ie,disabled:p,readOnly:g},_)),S!==void 0&&i.createElement("div",{className:z(`${r}-suffix`,a==null?void 0:a.suffix),style:l==null?void 0:l.suffix},S),n==="spinner"&&v&&st,n==="input"&&v&&i.createElement("div",{className:z(`${r}-actions`,a==null?void 0:a.actions),style:l==null?void 0:l.actions},st,lt))}),B4=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:s,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f,antCls:m}=e,[p,g]=At(m,"space");return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:f,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:c},"&-small":{paddingInline:s,borderRadius:u,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p("addon-border-color")]:o,[p("addon-background")]:d,[p("addon-border-color-outlined")]:o,[p("addon-background-filled")]:d,borderColor:g("addon-border-color"),background:g("addon-background"),"&-variant-outlined":{[p("addon-border-color")]:g("addon-border-color-outlined")},"&-variant-filled":{[p("addon-border-color")]:"transparent",[p("addon-background")]:g("addon-background-filled"),[`&${t}-disabled`]:{[p("addon-border-color")]:o,[p("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[p("addon-border-color-outlined")]:e.colorError,[p("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p("addon-border-color-outlined")]:e.colorWarning,[p("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},L4=at(["Space","Addon"],e=>[B4(e),yo(e,{focus:!1})]),cv=N.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:s,variant:a="outlined",disabled:l,status:c,...u}=e,{getPrefixCls:d,direction:f}=N.useContext(je),m=d("space-addon",s),[p,g]=L4(m),{compactItemClassnames:h,compactSize:b}=Un(m,f),$=zr(m,c),y=z(m,p,h,g,`${m}-variant-${a}`,$,{[`${m}-${b}`]:b,[`${m}-disabled`]:l},n);return N.createElement("div",{ref:t,className:y,style:o,...u},r)}),H4=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return{...xs(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?n:0}},D4=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:s,inputFontSizeLG:a,colorError:l,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorIcon:m,motionDurationMid:p,handleHoverColor:g,handleOpacity:h,paddingInline:b,paddingBlock:$,handleBg:y,handleActiveBg:v,inputAffixPadding:C,borderRadiusSM:S,controlWidth:x,handleBorderColor:w,filledHandleBg:I,lineHeightLG:E,antCls:R}=e,P=`${K(n)} ${r} ${w}`,[M,O]=At(R,"input-number");return[{[t]:{...Ct(e),...Bd(e),[M("input-padding-block")]:K($),[M("input-padding-inline")]:K(b),display:"inline-flex",width:x,margin:0,paddingBlock:0,borderRadius:o,...kb(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:P}}}),...jb(e,{[`${t}-actions`]:{background:I,[`${t}-action-down`]:{borderBlockStart:P}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...Gb(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:P}}}),...Vb(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...Ct(e),width:"100%",paddingBlock:O("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...Xb(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`
|
||
${t}-action-up-disabled,
|
||
${t}-action-down-disabled
|
||
`]:{cursor:"not-allowed"},[`${t}-action`]:{...go(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${p} linear`,"&:active":{background:v},"&:hover":{color:g}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${p}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:m,height:"50%",borderInlineStart:P,"&:hover":{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:O("input-padding-inline"),"&-up":{borderInlineStart:P},"&-down":{borderInlineEnd:P}},[`${t}-input`]:{textAlign:"center",paddingInline:O("input-padding-inline")}}}},{[t]:{"&-lg":{[M("input-padding-block")]:K(d),[M("input-padding-inline")]:K(f),paddingBlock:0,fontSize:a,lineHeight:E},"&-sm":{[M("input-padding-block")]:K(u),[M("input-padding-inline")]:K(c),paddingBlock:0,fontSize:s,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:C},[`${t}-suffix`]:{height:"100%",marginInlineStart:C,transition:`margin ${p}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},F4=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},_4=at("InputNumber",e=>{const t=rt(e,Ss(e));return[D4(t),F4(t),yo(t)]},H4,{unitless:{handleOpacity:!0},resetFont:!1}),k4=i.forwardRef((e,t)=>{const n=i.useRef(null);i.useImperativeHandle(t,()=>n.current);const{rootClassName:r,size:o,disabled:s,prefixCls:a,addonBefore:l,addonAfter:c,prefix:u,suffix:d,bordered:f,readOnly:m,status:p,controls:g=!0,variant:h,className:b,style:$,classNames:y,styles:v,mode:C,...S}=e,{direction:x,className:w,style:I,styles:E,classNames:R}=dt("inputNumber"),P=i.useContext(yn),M=s??P,O=i.useMemo(()=>!g||M||m?!1:g,[g,M,m]),{compactSize:A,compactItemClassnames:T}=Un(a,x);let F=C==="spinner"?i.createElement(Zb,null):i.createElement(I4,null),H=C==="spinner"?i.createElement(x4,null):i.createElement(mb,null);const L=typeof O=="boolean"?O:void 0;typeof O=="object"&&(F=O.upIcon||F,H=O.downIcon||H);const{hasFeedback:B,isFormItemInput:D,feedbackIcon:k}=i.useContext($n),W=Jt(te=>o??A??te),[_,X]=qi("inputNumber",h,f),U=B&&i.createElement(i.Fragment,null,k),j={...e,size:W,disabled:M,controls:O},[V,G]=pt([R,y],[E,v],{props:j});return i.createElement(z4,{ref:n,mode:C,disabled:M,className:z(b,r,V.root,w,T,zr(a,p,B),{[`${a}-${_}`]:X,[`${a}-lg`]:W==="large",[`${a}-sm`]:W==="small",[`${a}-rtl`]:x==="rtl",[`${a}-in-form-item`]:D,[`${a}-without-controls`]:!O}),style:{...G.root,...I,...$},upHandler:F,downHandler:H,prefixCls:a,readOnly:m,controls:L,prefix:u,suffix:U||d,classNames:V,styles:G,...S})}),uv=i.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:s,status:a,rootClassName:l,...c}=e,{getPrefixCls:u}=dt("inputNumber"),d=u("input-number",o),{status:f}=i.useContext($n),m=ys(f,a),p=_t(d),[g,h]=_4(d,p),b=n||r,$=i.createElement(k4,{ref:t,...c,prefixCls:d,status:m,className:z(h,p,g,s),rootClassName:b?void 0:l});if(b){const y=S=>S?i.createElement(cv,{className:z(`${d}-addon`,h,g),variant:e.variant,disabled:e.disabled,status:m},i.createElement(ur,{form:!0},S)):null,v=y(n),C=y(r);return i.createElement(td,{rootClassName:l},v,$,C)}return $}),dv=uv,V4=e=>i.createElement(An,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(uv,{...e}));dv._InternalPanelDoNotUseOrYouWillBeFired=V4;const Nr=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:o,className:s,formatter:a})=>{const l=`${e}-steppers`,[c,u]=i.useState(0),d=Number.isNaN(r)?c:r;return N.createElement(dv,{className:z(l,s),min:t,max:n,value:d,formatter:a,size:"small",onChange:f=>{u(f||0),o==null||o(f)}})},W4=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[o,s]=i.useState(()=>Bt(t||"#000")),a=t||o,l=c=>{const u=a.toHsb();u.a=(c||0)/100;const d=Bt(u);s(d),n==null||n(d)};return N.createElement(Nr,{value:cd(a),prefixCls:e,formatter:c=>`${c}%`,className:r,onChange:l})};function j4(e){return!!(e.addonBefore||e.addonAfter)}function q4(e){return!!(e.prefix||e.suffix||e.allowClear)}function _p(e,t,n){const r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},o}function Pi(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=_p(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=_p(t,e,r),n(o);return}n(o)}function Qc(){return Qc=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},Qc.apply(this,arguments)}const fv=N.forwardRef((e,t)=>{var B,D,k;const{inputElement:n,children:r,prefixCls:o,prefix:s,suffix:a,addonBefore:l,addonAfter:c,className:u,style:d,disabled:f,readOnly:m,focused:p,triggerFocus:g,allowClear:h,value:b,handleReset:$,hidden:y,classes:v,classNames:C,dataAttrs:S,styles:x,components:w,onClear:I}=e,E=r??n,R=(w==null?void 0:w.affixWrapper)||"span",P=(w==null?void 0:w.groupWrapper)||"span",M=(w==null?void 0:w.wrapper)||"span",O=(w==null?void 0:w.groupAddon)||"span",A=i.useRef(null),T=W=>{var _;(_=A.current)!=null&&_.contains(W.target)&&(g==null||g())},F=q4(e);let H=i.cloneElement(E,{value:b,className:z((B=E.props)==null?void 0:B.className,!F&&(C==null?void 0:C.variant))||null});const L=i.useRef(null);if(N.useImperativeHandle(t,()=>({nativeElement:L.current||A.current})),F){let W=null;if(h){const j=!f&&!m&&b,V=`${o}-clear-icon`,G=typeof h=="object"&&(h!=null&&h.clearIcon)?h.clearIcon:"✖";W=N.createElement("button",{type:"button",tabIndex:-1,onClick:te=>{$==null||$(te),I==null||I()},onMouseDown:te=>te.preventDefault(),className:z(V,{[`${V}-hidden`]:!j,[`${V}-has-suffix`]:!!a})},G)}const _=`${o}-affix-wrapper`,X=z(_,{[`${o}-disabled`]:f,[`${_}-disabled`]:f,[`${_}-focused`]:p,[`${_}-readonly`]:m,[`${_}-input-with-clear-btn`]:a&&h&&b},v==null?void 0:v.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),U=(a||h)&&N.createElement("span",{className:z(`${o}-suffix`,C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},W,a);H=N.createElement(R,Qc({className:X,style:x==null?void 0:x.affixWrapper,onClick:T},S==null?void 0:S.affixWrapper,{ref:A}),s&&N.createElement("span",{className:z(`${o}-prefix`,C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},s),H,U)}if(j4(e)){const W=`${o}-group`,_=`${W}-addon`,X=`${W}-wrapper`,U=z(`${o}-wrapper`,W,v==null?void 0:v.wrapper,C==null?void 0:C.wrapper),j=z(X,{[`${X}-disabled`]:f},v==null?void 0:v.group,C==null?void 0:C.groupWrapper);H=N.createElement(P,{className:j,ref:L},N.createElement(M,{className:U},l&&N.createElement(O,{className:_},l),H,c&&N.createElement(O,{className:_},c)))}return N.cloneElement(H,{className:z((D=H.props)==null?void 0:D.className,u)||null,style:{...(k=H.props)==null?void 0:k.style,...d},hidden:y})});function mv(e,t){return i.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return{...o,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:o.strategy||(s=>s.length)}},[e,t])}function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}const G4=i.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:s,onPressEnter:a,onKeyDown:l,onKeyUp:c,prefixCls:u="rc-input",disabled:d,htmlSize:f,className:m,maxLength:p,suffix:g,showCount:h,count:b,type:$="text",classes:y,classNames:v,styles:C,onCompositionStart:S,onCompositionEnd:x,...w}=e,[I,E]=i.useState(!1),R=i.useRef(!1),P=i.useRef(!1),M=i.useRef(null),O=i.useRef(null),A=q=>{M.current&&md(M.current,q)},[T,F]=bt(e.defaultValue,e.value),H=T==null?"":String(T),[L,B]=i.useState(null),D=mv(b,h),k=D.max||p,W=D.strategy(H),_=!!k&&W>k;i.useImperativeHandle(t,()=>{var q;return{focus:A,blur:()=>{var oe;(oe=M.current)==null||oe.blur()},setSelectionRange:(oe,Z,J)=>{var ae;(ae=M.current)==null||ae.setSelectionRange(oe,Z,J)},select:()=>{var oe;(oe=M.current)==null||oe.select()},input:M.current,nativeElement:((q=O.current)==null?void 0:q.nativeElement)||M.current}}),i.useEffect(()=>{P.current&&(P.current=!1),E(q=>q&&d?!1:q)},[d]);const X=(q,oe,Z)=>{var ae,we;let J=oe;if(!R.current&&D.exceedFormatter&&D.max&&D.strategy(oe)>D.max)J=D.exceedFormatter(oe,{max:D.max}),oe!==J&&B([((ae=M.current)==null?void 0:ae.selectionStart)||0,((we=M.current)==null?void 0:we.selectionEnd)||0]);else if(Z.source==="compositionEnd")return;F(J),M.current&&Pi(M.current,q,r,J)};i.useEffect(()=>{var q;L&&((q=M.current)==null||q.setSelectionRange(...L))},[L]);const U=q=>{X(q,q.target.value,{source:"change"})},j=q=>{R.current=!1,X(q,q.currentTarget.value,{source:"compositionEnd"}),x==null||x(q)},V=q=>{a&&q.key==="Enter"&&!P.current&&!q.nativeEvent.isComposing&&(P.current=!0,a(q)),l==null||l(q)},G=q=>{q.key==="Enter"&&(P.current=!1),c==null||c(q)},te=q=>{E(!0),o==null||o(q)},ee=q=>{P.current&&(P.current=!1),E(!1),s==null||s(q)},ne=q=>{F(""),A(),M.current&&Pi(M.current,q,r)},Y=_&&`${u}-out-of-range`,se=()=>{const q=yt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return N.createElement("input",Ri({autoComplete:n},q,{onChange:U,onFocus:te,onBlur:ee,onKeyDown:V,onKeyUp:G,className:z(u,{[`${u}-disabled`]:d},v==null?void 0:v.input),style:C==null?void 0:C.input,ref:M,size:f,type:$,onCompositionStart:oe=>{R.current=!0,S==null||S(oe)},onCompositionEnd:j}))},ue=()=>{const q=Number(k)>0;if(g||D.show){const oe=D.showFormatter?D.showFormatter({value:H,count:W,maxLength:k}):`${W}${q?` / ${k}`:""}`;return N.createElement(N.Fragment,null,D.show&&N.createElement("span",{className:z(`${u}-show-count-suffix`,{[`${u}-show-count-has-suffix`]:!!g},v==null?void 0:v.count),style:{...C==null?void 0:C.count}},oe),g)}return null};return N.createElement(fv,Ri({},w,{prefixCls:u,className:z(m,Y),handleReset:ne,value:H,focused:I,triggerFocus:A,suffix:ue(),disabled:d,classes:y,classNames:v,styles:C,ref:O}),se())}),pv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:N.createElement(is,null)}),t};function gv(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,s,a,l;(o=e.current)!=null&&o.input&&((s=e.current)==null?void 0:s.input.getAttribute("type"))==="password"&&((a=e.current)!=null&&a.input.hasAttribute("value"))&&((l=e.current)==null||l.input.removeAttribute("value"))}))};return i.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function X4(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const ws=i.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:s,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:p,style:g,styles:h,rootClassName:b,onChange:$,classNames:y,variant:v,...C}=e,{getPrefixCls:S,direction:x,allowClear:w,autoComplete:I,className:E,style:R,classNames:P,styles:M}=dt("input"),O=S("input",n),A=i.useRef(null),T=_t(O),[F,H]=Yb(O,b);Qb(O,T);const{compactSize:L,compactItemClassnames:B}=Un(O,x),D=Jt(ae=>s??L??ae),k=N.useContext(yn),W=a??k,_={...e,size:D,disabled:W},[X,U]=pt([P,y],[M,h],{props:_}),{status:j,hasFeedback:V,feedbackIcon:G}=i.useContext($n),te=ys(j,o),ee=X4(e)||!!V;i.useRef(ee);const ne=gv(A,!0),Y=ae=>{ne(),l==null||l(ae)},se=ae=>{ne(),c==null||c(ae)},ue=ae=>{ne(),$==null||$(ae)},q=(V||u)&&N.createElement(N.Fragment,null,u,V&&G),oe=pv(d??w),[Z,J]=qi("input",v,r);return N.createElement(G4,{ref:Ft(t,A),prefixCls:O,autoComplete:I,...C,disabled:W,onBlur:Y,onFocus:se,style:{...U.root,...R,...g},styles:U,suffix:q,allowClear:oe,className:z(p,b,H,T,B,E,X.root),onChange:ue,addonBefore:m&&N.createElement(ur,{form:!0,space:!0},m),addonAfter:f&&N.createElement(ur,{form:!0,space:!0},f),classNames:{...X,input:z({[`${O}-sm`]:D==="small",[`${O}-lg`]:D==="large",[`${O}-rtl`]:x==="rtl"},X.input,F),variant:z({[`${O}-${Z}`]:J},zr(O,te)),affixWrapper:z({[`${O}-affix-wrapper-sm`]:D==="small",[`${O}-affix-wrapper-lg`]:D==="large",[`${O}-affix-wrapper-rtl`]:x==="rtl"},F),wrapper:z({[`${O}-group-rtl`]:x==="rtl"},F),groupWrapper:z({[`${O}-group-wrapper-sm`]:D==="small",[`${O}-group-wrapper-lg`]:D==="large",[`${O}-group-wrapper-rtl`]:x==="rtl",[`${O}-group-wrapper-${Z}`]:J},zr(`${O}-group-wrapper`,te,V),F)}})}),U4=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,K4=e=>U4.test(`#${e}`),Y4=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,s]=i.useState(()=>t?Bo(t.toHexString()):void 0);i.useEffect(()=>{t&&s(Bo(t.toHexString()))},[t]);const a=l=>{const c=l.target.value;s(Bo(c)),K4(Bo(c,!0))&&(n==null||n(Bt(c)))};return N.createElement(ws,{className:r,value:o,prefix:"#",onChange:a,size:"small"})},Q4=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[o,s]=i.useState(()=>Bt(t||"#000")),a=t||o,l=(c,u)=>{const d=a.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=Bt(d);s(f),n==null||n(f)};return N.createElement("div",{className:r},N.createElement(Nr,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:e,className:r,formatter:c=>Js(c||0).toString(),onChange:c=>l(Number(c),"h")}),N.createElement(Nr,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:e,className:r,formatter:c=>`${Js(c||0)}%`,onChange:c=>l(Number(c),"s")}),N.createElement(Nr,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:e,className:r,formatter:c=>`${Js(c||0)}%`,onChange:c=>l(Number(c),"b")}))},Z4=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[o,s]=i.useState(()=>Bt(t||"#000")),a=t||o,l=(c,u)=>{const d=a.toRgb();d[u]=c||0;const f=Bt(d);s(f),n==null||n(f)};return N.createElement("div",{className:r},N.createElement(Nr,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:e,className:r,onChange:c=>l(Number(c),"r")}),N.createElement(Nr,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:e,className:r,onChange:c=>l(Number(c),"g")}),N.createElement(Nr,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:e,className:r,onChange:c=>l(Number(c),"b")}))},J4=[sv,av,iv].map(e=>({value:e,label:e.toUpperCase()})),e3=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:s,onChange:a,disabledFormat:l}=e,[c,u]=bt(sv,n),d=`${t}-input`,f=p=>{u(p),s==null||s(p)},m=i.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(c){case av:return N.createElement(Q4,{...p});case iv:return N.createElement(Z4,{...p});default:return N.createElement(Y4,{...p})}},[c,t,r,a]);return N.createElement("div",{className:`${d}-container`},!l&&N.createElement(Co,{value:c,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:J4}),N.createElement("div",{className:d},m),!o&&N.createElement(W4,{prefixCls:t,value:r,onChange:a}))};function Zc(e,t,n){return(e-t)/(n-t)}function _d(e,t,n,r){const o=Zc(t,n,r),s={};switch(e){case"rtl":s.right=`${o*100}%`,s.transform="translateX(50%)";break;case"btt":s.bottom=`${o*100}%`,s.transform="translateY(50%)";break;case"ttb":s.top=`${o*100}%`,s.transform="translateY(-50%)";break;default:s.left=`${o*100}%`,s.transform="translateX(-50%)";break}return s}function $r(e,t){return Array.isArray(e)?e[t]:e}const Hr=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),hv=i.createContext({});function Jc(){return Jc=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},Jc.apply(this,arguments)}const kp=i.forwardRef((e,t)=>{var W;const{prefixCls:n,value:r,valueIndex:o,onStartMove:s,onDelete:a,style:l,render:c,dragging:u,draggingDelete:d,onOffsetChange:f,onChangeComplete:m,onFocus:p,onMouseEnter:g,...h}=e,{min:b,max:$,direction:y,disabled:v,keyboard:C,range:S,tabIndex:x,ariaLabelForHandle:w,ariaLabelledByForHandle:I,ariaRequired:E,ariaValueTextFormatterForHandle:R,styles:P,classNames:M}=i.useContext(Hr),O=`${n}-handle`,A=_=>{v||s(_,o)},T=_=>{p==null||p(_,o)},F=_=>{g(_,o)},H=_=>{if(!v&&C){let X=null;switch(_.which||_.keyCode){case Me.LEFT:X=y==="ltr"||y==="btt"?-1:1;break;case Me.RIGHT:X=y==="ltr"||y==="btt"?1:-1;break;case Me.UP:X=y!=="ttb"?1:-1;break;case Me.DOWN:X=y!=="ttb"?-1:1;break;case Me.HOME:X="min";break;case Me.END:X="max";break;case Me.PAGE_UP:X=2;break;case Me.PAGE_DOWN:X=-2;break;case Me.BACKSPACE:case Me.DELETE:a==null||a(o);break}X!==null&&(_.preventDefault(),f(X,o))}},L=_=>{switch(_.which||_.keyCode){case Me.LEFT:case Me.RIGHT:case Me.UP:case Me.DOWN:case Me.HOME:case Me.END:case Me.PAGE_UP:case Me.PAGE_DOWN:m==null||m();break}},B=_d(y,r,b,$);let D={};o!==null&&(D={tabIndex:v?null:$r(x,o),role:"slider","aria-valuemin":b,"aria-valuemax":$,"aria-valuenow":r,"aria-disabled":v,"aria-label":$r(w,o),"aria-labelledby":$r(I,o),"aria-required":$r(E,o),"aria-valuetext":(W=$r(R,o))==null?void 0:W(r),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:T,onMouseEnter:F,onKeyDown:H,onKeyUp:L});let k=i.createElement("div",Jc({ref:t,className:z(O,{[`${O}-${o+1}`]:o!==null&&S,[`${O}-dragging`]:u,[`${O}-dragging-delete`]:d},M.handle),style:{...B,...l,...P.handle}},D,h));return c&&(k=c(k,{index:o,prefixCls:n,value:r,dragging:u,draggingDelete:d})),k});function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(this,arguments)}const t3=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,onStartMove:o,onOffsetChange:s,values:a,handleRender:l,activeHandleRender:c,draggingIndex:u,draggingDelete:d,onFocus:f,...m}=e,p=i.useRef({}),[g,h]=i.useState(!1),[b,$]=i.useState(-1),y=x=>{$(x),h(!0)},v=(x,w)=>{y(w),f==null||f(x)},C=(x,w)=>{y(w)};i.useImperativeHandle(t,()=>({focus:x=>{var w;(w=p.current[x])==null||w.focus()},hideHelp:()=>{Vn.flushSync(()=>{h(!1)})}}));const S={prefixCls:n,onStartMove:o,onOffsetChange:s,render:l,onFocus:v,onMouseEnter:C,...m};return i.createElement(i.Fragment,null,a.map((x,w)=>{const I=u===w;return i.createElement(kp,Mi({ref:E=>{E?p.current[w]=E:delete p.current[w]},dragging:I,draggingDelete:I&&d,style:$r(r,w),key:w,value:x,valueIndex:w},S))}),c&&g&&i.createElement(kp,Mi({key:"a11y"},S,{value:a[b],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),n3=e=>{const{prefixCls:t,style:n,children:r,value:o,onClick:s}=e,{min:a,max:l,direction:c,includedStart:u,includedEnd:d,included:f}=i.useContext(Hr),m=`${t}-text`,p=_d(c,o,a,l);return i.createElement("span",{className:z(m,{[`${m}-active`]:f&&u<=o&&o<=d}),style:{...p,...n},onMouseDown:g=>{g.stopPropagation()},onClick:()=>{s(o)}},r)},r3=e=>{const{prefixCls:t,marks:n,onClick:r}=e,o=`${t}-mark`;return n.length?i.createElement("div",{className:o},n.map(({value:s,style:a,label:l})=>i.createElement(n3,{key:s,prefixCls:o,style:a,value:s,onClick:r},l))):null},o3=e=>{const{prefixCls:t,value:n,style:r,activeStyle:o}=e,{min:s,max:a,direction:l,included:c,includedStart:u,includedEnd:d}=i.useContext(Hr),f=`${t}-dot`,m=c&&u<=n&&n<=d;let p={..._d(l,n,s,a),...typeof r=="function"?r(n):r};return m&&(p={...p,...typeof o=="function"?o(n):o}),i.createElement("span",{className:z(f,{[`${f}-active`]:m}),style:p})},s3=e=>{const{prefixCls:t,marks:n,dots:r,style:o,activeStyle:s}=e,{min:a,max:l,step:c}=i.useContext(Hr),u=i.useMemo(()=>{const d=new Set;if(n.forEach(f=>{d.add(f.value)}),r&&c!==null){let f=a;for(;f<=l;)d.add(f),f+=c}return Array.from(d)},[a,l,c,r,n]);return i.createElement("div",{className:`${t}-step`},u.map(d=>i.createElement(o3,{prefixCls:t,key:d,value:d,style:o,activeStyle:s})))},Vp=e=>{const{prefixCls:t,style:n,start:r,end:o,index:s,onStartMove:a,replaceCls:l}=e,{direction:c,min:u,max:d,disabled:f,range:m,classNames:p}=i.useContext(Hr),g=`${t}-track`,h=Zc(r,u,d),b=Zc(o,u,d),$=C=>{!f&&a&&a(C,-1)},y={};switch(c){case"rtl":y.right=`${h*100}%`,y.width=`${b*100-h*100}%`;break;case"btt":y.bottom=`${h*100}%`,y.height=`${b*100-h*100}%`;break;case"ttb":y.top=`${h*100}%`,y.height=`${b*100-h*100}%`;break;default:y.left=`${h*100}%`,y.width=`${b*100-h*100}%`}const v=l||z(g,{[`${g}-${s+1}`]:s!==null&&m,[`${t}-track-draggable`]:a},p.track);return i.createElement("div",{className:v,style:{...y,...n},onMouseDown:$,onTouchStart:$})},i3=e=>{const{prefixCls:t,style:n,values:r,startPoint:o,onStartMove:s}=e,{included:a,range:l,min:c,styles:u,classNames:d}=i.useContext(Hr),f=i.useMemo(()=>{if(!l){if(r.length===0)return[];const g=o??c,h=r[0];return[{start:Math.min(g,h),end:Math.max(g,h)}]}const p=[];for(let g=0;g<r.length-1;g+=1)p.push({start:r[g],end:r[g+1]});return p},[r,l,o,c]);if(!a)return null;const m=f!=null&&f.length&&(d.tracks||u.tracks)?i.createElement(Vp,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:z(d.tracks,`${t}-tracks`),style:u.tracks}):null;return i.createElement(i.Fragment,null,m,f.map(({start:p,end:g},h)=>i.createElement(Vp,{index:h,prefixCls:t,style:{...$r(n,h),...u.track},start:p,end:g,key:h,onStartMove:s})))},a3=130;function Wp(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function l3(e,t,n,r,o,s,a,l,c,u,d){const[f,m]=i.useState(null),[p,g]=i.useState(-1),[h,b]=i.useState(!1),[$,y]=i.useState(n),[v,C]=i.useState(n),S=i.useRef(null),x=i.useRef(null),w=i.useRef(null),{onDragStart:I,onDragChange:E}=i.useContext(hv);nt(()=>{p===-1&&y(n)},[n,p]),i.useEffect(()=>()=>{document.removeEventListener("mousemove",S.current),document.removeEventListener("mouseup",x.current),w.current&&(w.current.removeEventListener("touchmove",S.current),w.current.removeEventListener("touchend",x.current))},[]);const R=(A,T,F)=>{T!==void 0&&m(T),y(A);let H=A;F&&(H=A.filter((L,B)=>B!==p)),a(H),E&&E({rawValues:A,deleteIndex:F?p:-1,draggingIndex:p,draggingValue:T})},P=We((A,T,F)=>{if(A===-1){const H=v[0],L=v[v.length-1],B=r-H,D=o-L;let k=T*(o-r);k=Math.max(k,B),k=Math.min(k,D),k=s(H+k)-H;const _=v.map(X=>X+k);R(_)}else{const H=(o-r)*T,L=[...$];L[A]=v[A];const B=c(L,H,A,"dist");R(B.values,B.value,F)}}),M=(A,T,F)=>{A.stopPropagation();const H=F||n,L=H[T];g(T),m(L),C(H),y(H),b(!1);const{pageX:B,pageY:D}=Wp(A);let k=!1;I&&I({rawValues:H,draggingIndex:T,draggingValue:L});const W=X=>{X.preventDefault();const{pageX:U,pageY:j}=Wp(X),V=U-B,G=j-D,{width:te,height:ee}=e.current.getBoundingClientRect();let ne,Y;switch(t){case"btt":ne=-G/ee,Y=V;break;case"ttb":ne=G/ee,Y=V;break;case"rtl":ne=-V/te,Y=G;break;default:ne=V/te,Y=G}k=u?Math.abs(Y)>a3&&d<$.length:!1,b(k),P(T,ne,k)},_=X=>{X.preventDefault(),document.removeEventListener("mouseup",_),document.removeEventListener("mousemove",W),w.current&&(w.current.removeEventListener("touchmove",S.current),w.current.removeEventListener("touchend",x.current)),S.current=null,x.current=null,w.current=null,l(k),g(-1),b(!1)};document.addEventListener("mouseup",_),document.addEventListener("mousemove",W),A.currentTarget.addEventListener("touchend",_),A.currentTarget.addEventListener("touchmove",W),S.current=W,x.current=_,w.current=A.currentTarget},O=i.useMemo(()=>{const A=[...n].sort((B,D)=>B-D),T=[...$].sort((B,D)=>B-D),F={};T.forEach(B=>{F[B]=(F[B]||0)+1}),A.forEach(B=>{F[B]=(F[B]||0)-1});const H=u?1:0;return Object.values(F).reduce((B,D)=>B+Math.abs(D),0)<=H?$:n},[n,$,u]);return[p,f,h,O,M]}function c3(e,t,n,r,o,s){const a=i.useCallback(p=>Math.max(e,Math.min(t,p)),[e,t]),l=i.useCallback(p=>{if(n!==null){const g=e+Math.round((a(p)-e)/n)*n,h=y=>(String(y).split(".")[1]||"").length,b=Math.max(h(n),h(t),h(e)),$=Number(g.toFixed(b));return e<=$&&$<=t?$:null}return null},[n,e,t,a]),c=i.useCallback(p=>{const g=a(p),h=r.map(y=>y.value);n!==null&&h.push(l(p)),h.push(e,t);let b=h[0],$=t-e;return h.forEach(y=>{const v=Math.abs(g-y);v<=$&&(b=y,$=v)}),b},[e,t,r,n,a,l]),u=(p,g,h,b="unit")=>{if(typeof g=="number"){let $;const y=p[h],v=y+g;let C=[];r.forEach(I=>{C.push(I.value)}),C.push(e,t),C.push(l(y));const S=g>0?1:-1;b==="unit"?C.push(l(y+S*n)):C.push(l(v)),C=C.filter(I=>I!==null).filter(I=>g<0?I<=y:I>=y),b==="unit"&&(C=C.filter(I=>I!==y));const x=b==="unit"?y:v;$=C[0];let w=Math.abs($-x);if(C.forEach(I=>{const E=Math.abs(I-x);E<w&&($=I,w=E)}),$===void 0)return g<0?e:t;if(b==="dist")return $;if(Math.abs(g)>1){const I=[...p];return I[h]=$,u(I,g-S,h,b)}return $}else{if(g==="min")return e;if(g==="max")return t}},d=(p,g,h,b="unit")=>{const $=p[h],y=u(p,g,h,b);return{value:y,changed:y!==$}},f=p=>s===null&&p===0||typeof s=="number"&&p<s;return[c,(p,g,h,b="unit")=>{const $=p.map(c),y=$[h],v=u($,g,h,b);if($[h]=v,o===!1){const C=s||0;h>0&&$[h-1]!==y&&($[h]=Math.max($[h],$[h-1]+C)),h<$.length-1&&$[h+1]!==y&&($[h]=Math.min($[h],$[h+1]-C))}else if(typeof s=="number"||s===null){for(let C=h+1;C<$.length;C+=1){let S=!0;for(;f($[C]-$[C-1])&&S;)({value:$[C],changed:S}=d($,1,C))}for(let C=h;C>0;C-=1){let S=!0;for(;f($[C]-$[C-1])&&S;)({value:$[C-1],changed:S}=d($,-1,C-1))}for(let C=$.length-1;C>0;C-=1){let S=!0;for(;f($[C]-$[C-1])&&S;)({value:$[C-1],changed:S}=d($,-1,C-1))}for(let C=0;C<$.length-1;C+=1){let S=!0;for(;f($[C+1]-$[C])&&S;)({value:$[C+1],changed:S}=d($,1,C+1))}}return{value:$[h],values:$}}]}function u3(e){return i.useMemo(()=>{if(e===!0||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:o}=e;return[!0,t,!t&&n,r||0,o]},[e])}const d3=i.forwardRef((e,t)=>{const{prefixCls:n="rc-slider",className:r,style:o,classNames:s,styles:a,id:l,disabled:c=!1,keyboard:u=!0,autoFocus:d,onFocus:f,onBlur:m,min:p=0,max:g=100,step:h=1,value:b,defaultValue:$,range:y,count:v,onChange:C,onBeforeChange:S,onAfterChange:x,onChangeComplete:w,allowCross:I=!0,pushable:E=!1,reverse:R,vertical:P,included:M=!0,startPoint:O,trackStyle:A,handleStyle:T,railStyle:F,dotStyle:H,activeDotStyle:L,marks:B,dots:D,handleRender:k,activeHandleRender:W,track:_,tabIndex:X=0,ariaLabelForHandle:U,ariaLabelledByForHandle:j,ariaRequired:V,ariaValueTextFormatterForHandle:G}=e,te=i.useRef(null),ee=i.useRef(null),ne=i.useMemo(()=>P?R?"ttb":"btt":R?"rtl":"ltr",[R,P]),[Y,se,ue,q,oe]=u3(y),Z=i.useMemo(()=>isFinite(p)?p:0,[p]),J=i.useMemo(()=>isFinite(g)?g:100,[g]),ae=i.useMemo(()=>h!==null&&h<=0?1:h,[h]),we=i.useMemo(()=>typeof E=="boolean"?E?ae:!1:E>=0?E:!1,[E,ae]),de=i.useMemo(()=>Object.keys(B||{}).map(ye=>{const ce=B[ye],Q={value:Number(ye)};return ce&&typeof ce=="object"&&!i.isValidElement(ce)&&("label"in ce||"style"in ce)?(Q.style=ce.style,Q.label=ce.label):Q.label=ce,Q}).filter(({label:ye})=>ye||typeof ye=="number").sort((ye,ce)=>ye.value-ce.value),[B]),[ge,be]=c3(Z,J,ae,de,I,we),[me,Ne]=bt($,b),Ae=i.useMemo(()=>{const ye=me==null?[]:Array.isArray(me)?me:[me],[ce=Z]=ye;let Q=me===null?[]:[ce];if(Y){if(Q=[...ye],v||me===void 0){const pe=v>=0?v+1:2;for(Q=Q.slice(0,pe);Q.length<pe;)Q.push(Q[Q.length-1]??Z)}Q.sort((pe,ie)=>pe-ie)}return Q.forEach((pe,ie)=>{Q[ie]=ge(pe)}),Q},[me,Y,Z,v,ge]),Ee=ye=>Y?ye:ye[0],ze=We(ye=>{const ce=[...ye].sort((Q,pe)=>Q-pe);C&&!ar(ce,Ae,!0)&&C(Ee(ce)),Ne(ce)}),Re=We(ye=>{ye&&te.current.hideHelp();const ce=Ee(Ae);x==null||x(ce),Pt(!x,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w==null||w(ce)}),ve=ye=>{if(c||!se||Ae.length<=q)return;const ce=[...Ae];ce.splice(ye,1),S==null||S(Ee(ce)),ze(ce);const Q=Math.max(0,ye-1);te.current.hideHelp(),te.current.focus(Q)},[fe,Ce,He,Ie,re]=l3(ee,ne,Ae,Z,J,ge,ze,Re,be,se,q),$e=(ye,ce)=>{var Q,pe;if(!c){const ie=[...Ae];let he=0,xe=0,Te=J-Z;Ae.forEach((tt,Ze)=>{const Mt=Math.abs(ye-tt);Mt<=Te&&(Te=Mt,he=Ze),tt<ye&&(xe=Ze)});let Fe=he;se&&Te!==0&&(!oe||Ae.length<oe)?(ie.splice(xe+1,0,ye),Fe=xe+1):ie[he]=ye,Y&&!Ae.length&&v===void 0&&ie.push(ye);const Je=Ee(ie);S==null||S(Je),ze(ie),ce?((pe=(Q=document.activeElement)==null?void 0:Q.blur)==null||pe.call(Q),te.current.focus(Fe),re(ce,Fe,ie)):(x==null||x(Je),Pt(!x,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),w==null||w(Je))}},ke=ye=>{ye.preventDefault();const{width:ce,height:Q,left:pe,top:ie,bottom:he,right:xe}=ee.current.getBoundingClientRect(),{clientX:Te,clientY:Fe}=ye;let Je;switch(ne){case"btt":Je=(he-Fe)/Q;break;case"ttb":Je=(Fe-ie)/Q;break;case"rtl":Je=(xe-Te)/ce;break;default:Je=(Te-pe)/ce}const tt=Z+Je*(J-Z);$e(ge(tt),ye)},[De,ot]=i.useState(null),qe=(ye,ce)=>{if(!c){const Q=be(Ae,ye,ce);S==null||S(Ee(Ae)),ze(Q.values),ot(Q.value)}};i.useEffect(()=>{if(De!==null){const ye=Ae.indexOf(De);ye>=0&&te.current.focus(ye)}ot(null)},[De]);const ft=i.useMemo(()=>ue&&ae===null?!1:ue,[ue,ae]),Qe=We((ye,ce)=>{re(ye,ce),S==null||S(Ee(Ae))}),st=fe!==-1;i.useEffect(()=>{if(!st){const ye=Ae.lastIndexOf(Ce);te.current.focus(ye)}},[st]);const lt=i.useMemo(()=>[...Ie].sort((ye,ce)=>ye-ce),[Ie]),[Se,Be]=i.useMemo(()=>Y?[lt[0],lt[lt.length-1]]:[Z,lt[0]],[lt,Y,Z]);i.useImperativeHandle(t,()=>({focus:()=>{te.current.focus(0)},blur:()=>{var ce;const{activeElement:ye}=document;(ce=ee.current)!=null&&ce.contains(ye)&&(ye==null||ye.blur())}})),i.useEffect(()=>{d&&te.current.focus(0)},[]);const Pe=i.useMemo(()=>({min:Z,max:J,direction:ne,disabled:c,keyboard:u,step:ae,included:M,includedStart:Se,includedEnd:Be,range:Y,tabIndex:X,ariaLabelForHandle:U,ariaLabelledByForHandle:j,ariaRequired:V,ariaValueTextFormatterForHandle:G,styles:a||{},classNames:s||{}}),[Z,J,ne,c,u,ae,M,Se,Be,Y,X,U,j,V,G,a,s]);return i.createElement(Hr.Provider,{value:Pe},i.createElement("div",{ref:ee,className:z(n,r,{[`${n}-disabled`]:c,[`${n}-vertical`]:P,[`${n}-horizontal`]:!P,[`${n}-with-marks`]:de.length}),style:o,onMouseDown:ke,id:l},i.createElement("div",{className:z(`${n}-rail`,s==null?void 0:s.rail),style:{...F,...a==null?void 0:a.rail}}),_!==!1&&i.createElement(i3,{prefixCls:n,style:A,values:Ae,startPoint:O,onStartMove:ft?Qe:void 0}),i.createElement(s3,{prefixCls:n,marks:de,dots:D,style:H,activeStyle:L}),i.createElement(t3,{ref:te,prefixCls:n,style:T,values:Ie,draggingIndex:fe,draggingDelete:He,onStartMove:Qe,onOffsetChange:qe,onFocus:f,onBlur:m,handleRender:k,activeHandleRender:W,onChangeComplete:Re,onDelete:se?ve:void 0}),i.createElement(r3,{prefixCls:n,marks:de,onClick:$e})))}),bv=i.createContext({}),jp=i.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,s=i.useRef(null),a=n&&!r,l=i.useRef(null);function c(){Ke.cancel(l.current),l.current=null}function u(){l.current=Ke(()=>{var d;(d=s.current)==null||d.forceAlign(),l.current=null})}return i.useEffect(()=>(a?u():c(),c),[a,e.title,o]),i.createElement(Kn,{ref:Ft(s,t),...e,open:a})}),f3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:s,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:p,handleLineWidth:g,handleLineWidthHover:h,motionDurationMid:b}=e;return{[t]:{...Ct(e),position:"relative",height:r,margin:`${K(a)} ${K(s)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${K(s)} ${K(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${K(g)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(g).mul(-1).equal(),insetBlockStart:u(g).mul(-1).equal(),width:u(d).add(u(g).mul(2)).equal(),height:u(d).add(u(g).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${K(g)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map($=>`${$} ${b}`).join(", ")},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(h).mul(-1).equal(),width:u(f).add(u(h).mul(2)).equal(),height:u(f).add(u(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${K(h)} ${m}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${K(g)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${K(g)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}}}},vv=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:s,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),g=l(o).sub(r).div(2).equal(),h=t?{borderWidth:`${K(g)} 0`,transform:`translateY(${K(l(g).mul(-1).equal())})`}:{borderWidth:`0 ${K(g)}`,transform:`translateX(${K(e.calc(g).mul(-1).equal())})`};return{[c]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:a).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(s).div(2).equal()}}},m3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...vv(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},p3=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:{...vv(e,!1),height:"100%"}}},g3=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,s=e.lineWidth+1*1.5,a=e.colorPrimary,l=new gt(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:s,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},h3=at("Slider",e=>{const t=rt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[f3(t),m3(t),p3(t)]},g3);function qa(){const[e,t]=i.useState(!1),n=i.useRef(null),r=()=>{Ke.cancel(n.current)},o=s=>{r(),s?t(s):n.current=Ke(()=>{t(s)})};return i.useEffect(()=>r,[]),[e,o]}function b3(e){return e||e===null?e:t=>typeof t=="number"?t.toString():""}const v3=N.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:s,style:a,disabled:l,tooltip:c={},onChangeComplete:u,classNames:d,styles:f,vertical:m,orientation:p,...g}=e,[,h]=vo(p,m),{getPrefixCls:b,direction:$,className:y,style:v,classNames:C,styles:S,getPopupContainer:x}=dt("slider"),w=N.useContext(yn),I=l??w,E={...e,disabled:I,vertical:h},[R,P]=pt([C,d],[S,f],{props:E}),{handleRender:M,direction:O}=N.useContext(bv),T=(O||$)==="rtl",[F,H]=qa(),[L,B]=qa(),D={...c},{open:k,placement:W,getPopupContainer:_,prefixCls:X,formatter:U}=D,j=k,V=(F||L)&&j!==!1,G=b3(U),[te,ee]=qa(),ne=de=>{u==null||u(de),ee(!1)},Y=(de,ge)=>de||(ge?T?"left":"right":"top"),se=b("slider",n),[ue,q]=h3(se),oe=z(o,y,R.root,s,{[`${se}-rtl`]:T,[`${se}-lock`]:te},ue,q);T&&!h&&(g.reverse=!g.reverse),N.useEffect(()=>{const de=()=>{Ke(()=>{B(!1)},1)};return document.addEventListener("mouseup",de),()=>{document.removeEventListener("mouseup",de)}},[]);const Z=r&&!j,J=M||((de,ge)=>{const{index:be}=ge,me=de.props;function Ne(Re,ve,fe){var Ce,He;fe&&((Ce=g[Re])==null||Ce.call(g,ve)),(He=me[Re])==null||He.call(me,ve)}const Ae={...me,onMouseEnter:Re=>{H(!0),Ne("onMouseEnter",Re)},onMouseLeave:Re=>{H(!1),Ne("onMouseLeave",Re)},onMouseDown:Re=>{B(!0),ee(!0),Ne("onMouseDown",Re)},onFocus:Re=>{var ve;B(!0),(ve=g.onFocus)==null||ve.call(g,Re),Ne("onFocus",Re,!0)},onBlur:Re=>{var ve;B(!1),(ve=g.onBlur)==null||ve.call(g,Re),Ne("onBlur",Re,!0)}},Ee=N.cloneElement(de,Ae),ze=(!!j||V)&&G!==null;return Z?Ee:N.createElement(jp,{...D,prefixCls:b("tooltip",X),title:G?G(ge.value):"",value:ge.value,open:ze,placement:Y(W,h),key:be,classNames:{root:`${se}-tooltip`},getPopupContainer:_||x},Ee)}),ae=Z?(de,ge)=>{const be=N.cloneElement(de,{style:{...de.props.style,visibility:"hidden"}});return N.createElement(jp,{...D,prefixCls:b("tooltip",X),title:G?G(ge.value):"",open:G!==null&&V,placement:Y(W,h),key:"tooltip",classNames:{root:`${se}-tooltip`},getPopupContainer:_||x,draggingDelete:ge.draggingDelete},be)}:void 0,we={...P.root,...v,...a};return N.createElement(d3,{...g,classNames:R,styles:P,step:g.step,range:r,className:oe,style:we,disabled:I,vertical:h,ref:t,prefixCls:se,handleRender:J,activeHandleRender:ae,onChangeComplete:ne})}),yv=e=>{const{prefixCls:t,colors:n,type:r,color:o,range:s=!1,className:a,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f,...m}=e,p={...m,track:!1},g=i.useMemo(()=>`linear-gradient(90deg, ${n.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[n]),h=i.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),b=We(u),$=We(d),y=i.useMemo(()=>({onDragStart:b,onDragChange:$}),[]),v=We((S,x)=>{const{onFocus:w,style:I,className:E,onKeyDown:R}=S.props,P={...I};return r==="gradient"&&(P.background=f0(n,x.value)),i.cloneElement(S,{onFocus:M=>{c==null||c(x.index),w==null||w(M)},style:P,className:z(E,{[`${t}-slider-handle-active`]:l===x.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(x.index),R==null||R(M)}})}),C=i.useMemo(()=>({direction:"ltr",handleRender:v}),[]);return i.createElement(bv.Provider,{value:C},i.createElement(hv.Provider,{value:y},i.createElement(v3,{...p,className:z(a,`${t}-slider`),tooltip:{open:!1},range:{editable:s,minCount:2},styles:{rail:{background:g},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},y3=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=a=>n(a[0]),s=a=>r(a[0]);return i.createElement(yv,{...e,value:[t],onChange:o,onChangeComplete:s})};function qp(e){return xt(e).sort((t,n)=>t.percent-n.percent)}const $3=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:s,activeIndex:a,onGradientDragging:l,colors:c}=e,u=n==="gradient",d=i.useMemo(()=>c.map($=>({percent:$.percent,color:$.color.toRgbString()})),[c]),f=i.useMemo(()=>d.map($=>$.percent),[d]),m=i.useRef(d),p=({rawValues:$,draggingIndex:y,draggingValue:v})=>{if($.length>d.length){const C=f0(d,v),S=xt(d);S.splice(y,0,{percent:v,color:C}),m.current=S}else m.current=d;l(!0),r(new an(qp(m.current)),!0)},g=({deleteIndex:$,draggingIndex:y,draggingValue:v})=>{let C=xt(m.current);$!==-1?C.splice($,1):(C[y]={...C[y],percent:v},C=qp(C)),r(new an(C),!0)},h=$=>{const y=xt(d);y.splice($,1);const v=new an(y);r(v),o(v)},b=$=>{o(new an(d)),a>=$.length&&s($.length-1),l(!1)};return u?i.createElement(yv,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:b,disabled:!1,type:"gradient",activeIndex:a,onActive:s,onDragStart:p,onDragChange:g,onKeyDelete:h}):null},C3=i.memo($3),S3={slider:y3},Gp=()=>{const e=i.useContext(nv),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:s,value:a,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m,...p}=e,g=N.useMemo(()=>a.cleared?[{percent:0,color:new an("")},{percent:100,color:new an("")}]:a.getColors(),[a]),h=!a.isGradient(),[b,$]=N.useState(a);nt(()=>{var A;h||$((A=g[f])==null?void 0:A.color)},[h,g,m,f]);const y=N.useMemo(()=>{var A;return h?a:m?b:(A=g[f])==null?void 0:A.color},[g,a,f,h,b,m]),[v,C]=N.useState(y),[S,x]=IC(),w=v!=null&&v.equals(y)?y:v;nt(()=>{C(y)},[S,y==null?void 0:y.toHexString()]);const I=(A,T)=>{let F=Bt(A);if(a.cleared){const L=F.toRgb();if(!L.r&&!L.g&&!L.b&&T){const{type:B,value:D=0}=T;F=new an({h:B==="hue"?D:0,s:1,b:1,a:B==="alpha"?D/100:1})}else F=ei(F)}if(t==="single")return F;const H=xt(g);return H[f]={...H[f],color:F},new an(H)},E=(A,T,F)=>{const H=I(A,F);C(H.isGradient()?H.getColors()[f].color:H),c(H,T)},R=(A,T)=>{d(I(A,T)),x()},P=A=>{c(I(A))};let M=null;const O=r.length>1;return(s||O)&&(M=N.createElement("div",{className:`${o}-operation`},O&&N.createElement($4,{size:"small",options:r,value:t,onChange:n}),N.createElement(ov,{prefixCls:o,value:a,onChange:A=>{c(A),u==null||u()},...p}))),N.createElement(N.Fragment,null,M,N.createElement(C3,{...e,colors:g}),N.createElement(hx,{prefixCls:o,value:w==null?void 0:w.toHsb(),disabledAlpha:l,onChange:(A,T)=>{E(A,!0,T)},onChangeComplete:(A,T)=>{R(A,T)},components:S3}),N.createElement(e3,{value:y,onChange:P,prefixCls:o,disabledAlpha:l,...p}))},Xp=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=i.useContext(rv);return Array.isArray(n)?N.createElement(fw,{value:t,presets:n,prefixCls:e,onChange:r}):null},x3=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:s,onClear:a,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:g,format:h,onFormatChange:b,gradientDragging:$,onGradientDragging:y,disabledFormat:v}=e,C=`${t}-inner`,S=N.useMemo(()=>({prefixCls:t,value:o,onChange:s,onClear:a,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:p,onActive:g,format:h,onFormatChange:b,gradientDragging:$,onGradientDragging:y,disabledFormat:v}),[t,o,s,a,l,c,u,d,f,m,p,g,h,b,$,y,v]),x=N.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:s}),[t,o,n,s]),w=N.createElement("div",{className:`${C}-content`},N.createElement(Gp,null),Array.isArray(n)&&N.createElement(a4,null),N.createElement(Xp,null));return N.createElement(nv.Provider,{value:S},N.createElement(rv.Provider,{value:x},N.createElement("div",{className:C},typeof r=="function"?r(w,{components:{Picker:Gp,Presets:Xp}}):w)))},w3=i.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,disabled:s,format:a,className:l,style:c,classNames:u,styles:d,showText:f,activeIndex:m,...p}=e,g=`${r}-trigger`,h=`${g}-text`,b=`${h}-cell`,[$]=dn("ColorPicker"),y=N.useMemo(()=>{if(!f)return"";if(typeof f=="function")return f(n);if(n.cleared)return $.transparent;if(n.isGradient())return n.getColors().map((x,w)=>{const I=m!==-1&&m!==w;return N.createElement("span",{key:w,className:z(b,I&&`${b}-inactive`)},x.color.toRgbString()," ",x.percent,"%")});const C=n.toHexString().toUpperCase(),S=cd(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return S<100?`${C.slice(0,7)},${S}%`:C}},[n,a,f,m,$.transparent,b]),v=i.useMemo(()=>n.cleared?N.createElement(ov,{prefixCls:r,className:u.body,style:d.body}):N.createElement(rd,{prefixCls:r,color:n.toCssString(),className:u.body,innerClassName:u.content,style:d.body,innerStyle:d.content}),[n,r,u.body,u.content,d.body,d.content]);return N.createElement("div",{ref:t,className:z(g,l,u.root,{[`${g}-active`]:o,[`${g}-disabled`]:s}),style:{...d.root,...c},...cn(p)},v,f&&N.createElement("div",{className:z(h,u.description),style:d.description},y))});function E3(e,t,n){const[r]=dn("ColorPicker"),[o,s]=bt(e,t),[a,l]=i.useState("single"),[c,u]=i.useMemo(()=>{const h=(Array.isArray(n)?n:[n]).filter(v=>v);h.length||h.push("single");const b=new Set(h),$=[],y=(v,C)=>{b.has(v)&&$.push({label:C,value:v})};return y("single",r.singleColor),y("gradient",r.gradientColor),[$,b]},[n,r.singleColor,r.gradientColor]),[d,f]=i.useState(null),m=We(h=>{f(h),s(h)}),p=i.useMemo(()=>{const h=Bt(o||"");return h.equals(d)?d:h},[o,d]),g=i.useMemo(()=>{var h;return u.has(a)?a:(h=c[0])==null?void 0:h.value},[u,a,c]);return i.useEffect(()=>{l(p.isGradient()?"gradient":"single")},[p]),[p,m,g,l,c]}const $v=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),Up=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:s,colorFillSecondary:a}=e;return{[`${n}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none",...$v("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${K(s)} ${a}`,borderRadius:"inherit"}}}},I3=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:s,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:p,lineWidth:g}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,padding:0,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${K(s)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(a).equal(),fontSize:r,lineHeight:K(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:c,display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${K(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:K(e.calc(c).sub(e.calc(g).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},P3=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:s,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:s},[`${t}-handler`]:{width:u,height:u,border:`${K(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},R3=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:s,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:p,paddingXS:g,fontHeightSM:h}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:h,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-panel > ${n}-collapse-body`]:{padding:`${K(g)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:s,height:s,"&::before":{content:'""',pointerEvents:"none",width:e.calc(s).add(e.calc(u).mul(4)).equal(),height:e.calc(s).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${K(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(s).div(13).mul(5).equal(),height:e.calc(s).div(13).mul(8).equal(),border:`${K(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},M3=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:s,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(a).sub(e.calc(s).mul(2).equal()).equal(),f=e.calc(a).add(e.calc(s).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[$v(K(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${K(s)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(s).mul(-1).equal(),top:e.calc(s).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},eu=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${K(e.controlOutlineWidth)} ${n}`,outline:0}),N3=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Kp=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:s,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:{width:t,height:t,borderRadius:o,border:`${K(s)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...n,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(s).mul(-1).equal(),top:e.calc(s).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}}}},T3=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:s,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...eu(e,n,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:s},[`&${t}-trigger-active`]:{...eu(e,r,l)}}}},O3=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:s,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:s,height:s,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:K(s)}}}},A3=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:s,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:p,controlHeightSM:g,colorBgTextActive:h,colorPickerPresetColorSize:b,colorPickerPreviewSize:$,lineWidth:y,colorBorder:v,paddingXXS:C,fontSize:S,colorPrimaryHover:x,controlOutline:w}=e;return[{[n]:{[`${n}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${K(m)} 0 ${K(f)}`}},[`${n}-panel`]:{...P3(e)},...M3(e),...Up(e,$),...I3(e),...R3(e),...Kp(e,b,{marginInlineStart:"auto"}),[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}},"&-trigger":{minWidth:p,minHeight:p,borderRadius:d,border:`${K(y)} solid ${v}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${s}`,background:a,padding:e.calc(C).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(C).sub(y)).equal(),fontSize:S,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:{...eu(e,o,w)},"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:h},[`${n}-trigger-text`]:{color:l}},...Kp(e,g),...Up(e,g),...T3(e),...O3(e)},...N3(e)}},yo(e,{focusElCls:`${n}-trigger-active`})]},z3=at("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=rt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return A3(o)}),Cv=e=>{var ye,ce;const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:s,allowClear:a=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:p,panelRender:g,showText:h,style:b,className:$,size:y,rootClassName:v,prefixCls:C,styles:S,classNames:x,disabledAlpha:w=!1,onFormatChange:I,onChange:E,onClear:R,onOpenChange:P,onChangeComplete:M,getPopupContainer:O,autoAdjustOverflow:A=!0,destroyTooltipOnHide:T,destroyOnHidden:F,disabledFormat:H,...L}=e,{getPrefixCls:B,direction:D,className:k,style:W,classNames:_,styles:X,arrow:U}=dt("colorPicker"),j=i.useContext(yn),V=f??j,G=B("color-picker",C),te=Xi(p,U),{compactSize:ee,compactItemClassnames:ne}=Un(G,D),Y=Jt(Q=>y??ee??Q),se={...e,trigger:u,allowClear:a,autoAdjustOverflow:A,disabledAlpha:w,arrow:te,placement:m,disabled:V,size:Y},[ue,q]=pt([_,x],[X,S],{props:se},{popup:{_default:"root"}}),[oe,Z]=bt(!1,d),J=!V&&oe,[ae,we]=bt(s,o),de=Q=>{we(Q),ae!==Q&&(I==null||I(Q))},ge=Q=>{(!Q||!V)&&(Z(Q),P==null||P(Q))},[be,me,Ne,Ae,Ee]=E3(r,n,t),ze=i.useMemo(()=>cd(be)<100,[be]),[Re,ve]=N.useState(null),fe=Q=>{if(M){let pe=Bt(Q);w&&ze&&(pe=ei(Q)),M(pe)}},Ce=(Q,pe)=>{let ie=Bt(Q);w&&ze&&(ie=ei(ie)),me(ie),ve(null),E&&E(ie,ie.toCssString()),pe||fe(ie)},[He,Ie]=N.useState(0),[re,$e]=N.useState(!1),ke=Q=>{if(Ae(Q),Q==="single"&&be.isGradient())Ie(0),Ce(new an(be.getColors()[0].color)),ve(be);else if(Q==="gradient"&&!be.isGradient()){const pe=ze?ei(be):be;Ce(new an(Re||[{percent:0,color:pe},{percent:100,color:pe}]))}},{status:De}=N.useContext($n),ot=_t(G),[qe,ft]=z3(G,ot),Qe={[`${G}-rtl`]:D},st=z(v,ft,ot,Qe),lt=z(zr(G,De),{[`${G}-sm`]:Y==="small",[`${G}-lg`]:Y==="large"},ne,k,st,$,qe),Se=z(G,st,(ye=ue.popup)==null?void 0:ye.root),Be={open:J,trigger:u,placement:m,arrow:te,rootClassName:v,getPopupContainer:O,autoAdjustOverflow:A,destroyOnHidden:F??!!T},Pe={...W,...b};return N.createElement(Id,{classNames:{root:Se},styles:{root:(ce=q.popup)==null?void 0:ce.root,container:S==null?void 0:S.popupOverlayInner},onOpenChange:ge,content:N.createElement(ur,{form:!0},N.createElement(x3,{mode:Ne,onModeChange:ke,modeOptions:Ee,prefixCls:G,value:be,allowClear:a,disabled:V,disabledAlpha:w,presets:l,panelRender:g,format:ae,onFormatChange:de,onChange:Ce,onChangeComplete:fe,onClear:R,activeIndex:He,onActive:Ie,gradientDragging:re,onGradientDragging:$e,disabledFormat:H})),...Be},c||N.createElement(w3,{activeIndex:J?He:-1,open:J,className:lt,style:Pe,classNames:ue,styles:q,prefixCls:G,disabled:V,showText:h,format:ae,...L,color:be}))},B3=bd(Cv,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Cv._InternalPanelDoNotUseOrYouWillBeFired=B3;function Ni(e){return["small","middle","large"].includes(e)}function Yp(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Sv=N.createContext({latestIndex:0}),L3=Sv.Provider,H3=e=>{const{className:t,prefix:n,index:r,children:o,separator:s,style:a,classNames:l,styles:c}=e,{latestIndex:u}=i.useContext(Sv);return vn(o)?i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:a},o),r<u&&s&&i.createElement("span",{className:z(`${n}-item-separator`,l==null?void 0:l.separator),style:c==null?void 0:c.separator},s)):null},D3=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},F3=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},_3=at("Space",e=>{const t=rt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[D3(t),F3(t)]},()=>({}),{resetStyle:!1}),k3=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:s,style:a,classNames:l,styles:c}=dt("space"),{size:u=o??"small",align:d,className:f,rootClassName:m,children:p,direction:g,orientation:h,prefixCls:b,split:$,separator:y,style:v,vertical:C,wrap:S=!1,classNames:x,styles:w,...I}=e,[E,R]=Array.isArray(u)?u:[u,u],P=Ni(R),M=Ni(E),O=Yp(R),A=Yp(E),T=Vt(p,{keepEmpty:!0}),[F,H]=vo(h,C,g),L=d===void 0&&!H?"center":d,B=y??$,D=n("space",b),[k,W]=_3(D),_={...e,size:u,orientation:F,align:L},[X,U]=pt([l,x],[c,w],{props:_}),j=z(D,s,k,`${D}-${F}`,{[`${D}-rtl`]:r==="rtl",[`${D}-align-${L}`]:L,[`${D}-gap-row-${R}`]:P,[`${D}-gap-col-${E}`]:M},f,m,W,X.root),V=z(`${D}-item`,X.item),G=T.map((ne,Y)=>{const se=(ne==null?void 0:ne.key)||`${V}-${Y}`;return i.createElement(H3,{prefix:D,classNames:X,styles:U,className:V,key:se,index:Y,separator:B,style:U.item},ne)}),te=i.useMemo(()=>({latestIndex:T.reduce((Y,se,ue)=>vn(se)?ue:Y,0)}),[T]);if(T.length===0)return null;const ee={};return S&&(ee.flexWrap="wrap"),!M&&A&&(ee.columnGap=E),!P&&O&&(ee.rowGap=R),i.createElement("div",{ref:t,className:j,style:{...ee,...U.root,...a,...v},...I},i.createElement(L3,{value:te},G))}),Zi=k3;Zi.Compact=td;Zi.Addon=cv;const xv=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(je),{prefixCls:o,type:s="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:p,arrow:g,autoFocus:h,trigger:b,align:$,open:y,onOpenChange:v,placement:C,getPopupContainer:S,href:x,icon:w=i.createElement(Ad,null),title:I,buttonsRender:E=ee=>ee,mouseEnterDelay:R,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:A,destroyPopupOnHide:T,dropdownRender:F,popupRender:H,...L}=e,B=n("dropdown",o),D=`${B}-button`,W={menu:p,arrow:g,autoFocus:h,align:$,disabled:l,trigger:l?[]:b,onOpenChange:v,getPopupContainer:S||t,mouseEnterDelay:R,mouseLeaveDelay:P,classNames:{root:M},styles:{root:O},destroyOnHidden:A,popupRender:H||F},{compactSize:_,compactItemClassnames:X}=Un(B,r),U=z(D,X,m);"destroyPopupOnHide"in e&&(W.destroyPopupOnHide=T),"open"in e&&(W.open=y),"placement"in e?W.placement=C:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const j=i.createElement(On,{type:s,danger:a,disabled:l,loading:c,onClick:u,htmlType:d,href:x,title:I},f),V=i.createElement(On,{type:s,danger:a,icon:w}),[G,te]=E([j,V]);return i.createElement(Zi.Compact,{className:U,size:_,block:!0,...L},G,i.createElement(Yi,{...W},te))};xv.__ANT_BUTTON=!0;const V3=Yi;V3.Button=xv;const wv=["wrap","nowrap","wrap-reverse"],Ev=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Iv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],W3=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&wv.includes(n)}},j3=(e,t)=>{const n={};return Iv.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},q3=(e,t)=>{const n={};return Ev.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},G3=(e,t)=>z({...W3(e,t),...j3(e,t),...q3(e,t)}),X3=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},U3=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},K3=e=>{const{componentCls:t}=e,n={};return wv.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},Y3=e=>{const{componentCls:t}=e,n={};return Iv.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},Q3=e=>{const{componentCls:t}=e,n={};return Ev.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},Z3=()=>({}),J3=at("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=rt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[X3(o),U3(o),K3(o),Y3(o),Q3(o)]},Z3,{resetStyle:!1}),o8=N.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:s,flex:a,gap:l,vertical:c,orientation:u,component:d="div",children:f,...m}=e,{flex:p,direction:g,getPrefixCls:h}=N.useContext(je),b=h("flex",n),[$,y]=J3(b),[,v]=vo(u,c??(p==null?void 0:p.vertical)),C=z(o,r,p==null?void 0:p.className,b,$,y,G3(b,{...e,vertical:v}),{[`${b}-rtl`]:g==="rtl",[`${b}-gap-${l}`]:Ni(l),[`${b}-vertical`]:v}),S={...p==null?void 0:p.style,...s};return vn(a)&&(S.flex=a),vn(l)&&!Ni(l)&&(S.gap=l),N.createElement(d,{ref:t,className:C,style:S,...yt(m,["justify","wrap","align"])},f)});var eN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function tu(){return tu=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},tu.apply(this,arguments)}const tN=(e,t)=>i.createElement(Ye,tu({},e,{ref:t,icon:eN})),s8=i.forwardRef(tN);var nN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function nu(){return nu=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},nu.apply(this,arguments)}const rN=(e,t)=>i.createElement(Ye,nu({},e,{ref:t,icon:nN})),i8=i.forwardRef(rN),oN=e=>{const{getPrefixCls:t,direction:n}=i.useContext(je),{prefixCls:r,className:o}=e,s=t("input-group",r),a=t("input"),[l,c]=Qb(a),u=z(s,c,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},l,o),d=i.useContext($n),f=i.useMemo(()=>({...d,isFormItemInput:!1}),[d]);return i.createElement($n.Provider,{value:f},i.createElement(Zi.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},sN=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},iN=at(["Input","OTP"],e=>{const t=rt(e,Ss(e));return sN(t)},xs),aN=i.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:s,index:a,mask:l,onFocus:c,...u}=e,{getPrefixCls:d}=i.useContext(je),f=d("otp"),m=typeof l=="string"?l:r,p=i.useRef(null);i.useImperativeHandle(t,()=>p.current);const g=y=>{o(a,y.target.value)},h=()=>{Ke(()=>{var v;const y=(v=p.current)==null?void 0:v.input;document.activeElement===y&&y&&y.select()})},b=y=>{c==null||c(y),h()},$=y=>{const{key:v,ctrlKey:C,metaKey:S}=y;v==="ArrowLeft"?s(a-1):v==="ArrowRight"?s(a+1):v==="z"&&(C||S)?y.preventDefault():v==="Backspace"&&!r&&s(a-1),h()};return i.createElement("span",{className:`${f}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&i.createElement("span",{className:`${f}-mask-icon`,"aria-hidden":"true"},m),i.createElement(ws,{"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text",...u,ref:p,value:r,onInput:g,onFocus:b,onKeyDown:$,onMouseDown:h,onMouseUp:h,className:z(n,{[`${f}-mask-input`]:l})}))});function Gs(e){return(e||"").split("")}const lN=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:s}=e,a=typeof r=="function"?r(t):r;return a?i.createElement("span",{className:z(`${n}-separator`,o),style:s},a):null},cN=i.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:s,value:a,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:p,mask:g,type:h,autoComplete:b,onInput:$,onFocus:y,inputMode:v,classNames:C,styles:S,className:x,style:w,...I}=e,{classNames:E,styles:R,getPrefixCls:P,direction:M,style:O,className:A}=dt("otp"),T=P("otp",n),F={...e,length:r},[H,L]=pt([E,C],[R,S],{props:F}),B=cn(I,{aria:!0,data:!0,attr:!0}),[D,k]=iN(T),W=Jt(Z=>o??Z),_=i.useContext($n),X=ys(_.status,m),U=i.useMemo(()=>({..._,status:X,hasFeedback:!1,feedbackIcon:null}),[_,X]),j=i.useRef(null),V=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var Z;(Z=V.current[0])==null||Z.focus()},blur:()=>{var Z;for(let J=0;J<r;J+=1)(Z=V.current[J])==null||Z.blur()},nativeElement:j.current}));const G=Z=>c?c(Z):Z,[te,ee]=i.useState(()=>Gs(G(s||"")));i.useEffect(()=>{a!==void 0&&ee(Gs(a))},[a]);const ne=We(Z=>{ee(Z),$&&$(Z),l&&Z.length===r&&Z.every(J=>J)&&Z.some((J,ae)=>te[ae]!==J)&&l(Z.join(""))}),Y=We((Z,J)=>{let ae=xt(te);for(let de=0;de<Z;de+=1)ae[de]||(ae[de]="");J.length<=1?ae[Z]=J:ae=ae.slice(0,Z).concat(Gs(J)),ae=ae.slice(0,r);for(let de=ae.length-1;de>=0&&!ae[de];de-=1)ae.pop();const we=G(ae.map(de=>de||" ").join(""));return ae=Gs(we).map((de,ge)=>de===" "&&!ae[ge]?ae[ge]:de),ae}),se=(Z,J)=>{var de;const ae=Y(Z,J),we=Math.min(Z+J.length,r-1);we!==Z&&ae[Z]!==void 0&&((de=V.current[we])==null||de.focus()),ne(ae)},ue=Z=>{var J;(J=V.current[Z])==null||J.focus()},q=(Z,J)=>{var ae,we,de;for(let ge=0;ge<J;ge+=1)if(!((we=(ae=V.current[ge])==null?void 0:ae.input)!=null&&we.value)){(de=V.current[ge])==null||de.focus();break}y==null||y(Z)},oe={variant:d,disabled:f,status:X,mask:g,type:h,inputMode:v,autoComplete:b};return i.createElement("div",{...B,ref:j,className:z(x,T,{[`${T}-sm`]:W==="small",[`${T}-lg`]:W==="large",[`${T}-rtl`]:M==="rtl"},k,D,A,H.root),style:{...L.root,...O,...w},role:"group"},i.createElement($n.Provider,{value:U},Array.from({length:r}).map((Z,J)=>{const ae=`otp-${J}`,we=te[J]||"";return i.createElement(i.Fragment,{key:ae},i.createElement(aN,{ref:de=>{V.current[J]=de},index:J,size:W,htmlSize:1,className:z(H.input,`${T}-input`),style:L.input,onChange:se,value:we,onActiveChange:ue,autoFocus:J===0&&p,onFocus:de=>q(de,J),...oe}),J<r-1&&i.createElement(lN,{separator:u,index:J,prefixCls:T,className:z(H.separator),style:L.separator}))})))});var uN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function ru(){return ru=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},ru.apply(this,arguments)}const dN=(e,t)=>i.createElement(Ye,ru({},e,{ref:t,icon:uN})),fN=i.forwardRef(dN);var mN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function ou(){return ou=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},ou.apply(this,arguments)}const pN=(e,t)=>i.createElement(Ye,ou({},e,{ref:t,icon:mN})),gN=i.forwardRef(pN),hN=e=>e?i.createElement(gN,null):i.createElement(fN,null),bN={click:"onClick",hover:"onMouseOver"},vN=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:s=hN,suffix:a}=e,l=i.useContext(yn),c=n??l,u=typeof o=="object"&&o.visible!==void 0,[d,f]=i.useState(()=>u?o.visible:!1),m=i.useRef(null);i.useEffect(()=>{u&&f(o.visible)},[u,o]);const p=gv(m),g=()=>{var M;if(c)return;d&&p();const P=!d;f(P),typeof o=="object"&&((M=o.onVisibleChange)==null||M.call(o,P))},h=P=>{const M=bN[r]||"",O=s(d),A={[M]:g,className:`${P}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return i.cloneElement(i.isValidElement(O)?O:i.createElement("span",null,O),A)},{className:b,prefixCls:$,inputPrefixCls:y,size:v,...C}=e,{getPrefixCls:S}=i.useContext(je),x=S("input",y),w=S("input-password",$),I=o&&h(w),E=z(w,b,{[`${w}-${v}`]:!!v}),R={...yt(C,["suffix","iconRender","visibilityToggle"]),type:d?"text":"password",className:E,prefixCls:x,suffix:i.createElement(i.Fragment,null,I,a)};return v&&(R.size=v),i.createElement(ws,{ref:Ft(t,m),...R})}),yN=e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},$N=at(["Input","Search"],e=>[yN(e)]),CN=i.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:s,style:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:g,variant:h,onPressEnter:b,classNames:$,styles:y,hidden:v,...C}=e,{direction:S,getPrefixCls:x,classNames:w,styles:I}=dt("inputSearch"),E={...e,enterButton:l},[R,P]=pt([w,$],[I,y],{props:E},{button:{_default:"root"}}),M=i.useRef(!1),O=x("input-search",n),A=x("input",r),[T,F]=$N(O),{compactSize:H}=Un(O,S),L=Jt(q=>s??H??q),B=i.useRef(null),D=q=>{q!=null&&q.target&&q.type==="click"&&f&&f(q.target.value,q,{source:"clear"}),m==null||m(q)},k=q=>{var oe;document.activeElement===((oe=B.current)==null?void 0:oe.input)&&q.preventDefault()},W=q=>{var oe,Z;f&&f((Z=(oe=B.current)==null?void 0:oe.input)==null?void 0:Z.value,q,{source:"input"})},_=q=>{M.current||u||(b==null||b(q),W(q))},X=typeof l=="boolean"?i.createElement(pb,null):null,U=`${O}-btn`,j=z(U,{[`${U}-${h}`]:h});let V;const G=l||{},te=G.type&&G.type.__ANT_BUTTON===!0;te||G.type==="button"?V=Wt(G,{onMouseDown:k,onClick:q=>{var oe,Z;(Z=(oe=G==null?void 0:G.props)==null?void 0:oe.onClick)==null||Z.call(oe,q),W(q)},key:"enterButton",...te?{className:j,size:L}:{}}):V=i.createElement(On,{classNames:R.button,styles:P.button,className:j,color:l?"primary":"default",size:L,disabled:d,key:"enterButton",onMouseDown:k,onClick:W,loading:u,icon:X,variant:h==="borderless"||h==="filled"||h==="underlined"?"text":l?"solid":void 0},l),c&&(V=[V,Wt(c,{key:"addonAfter"})]);const ee=z(O,F,{[`${O}-rtl`]:S==="rtl",[`${O}-${L}`]:!!L,[`${O}-with-button`]:!!l},o,T,R.root),ne=q=>{M.current=!0,p==null||p(q)},Y=q=>{M.current=!1,g==null||g(q)},se=cn(C,{data:!0}),ue=yt({...C,classNames:yt(R,["button","root"]),styles:yt(P,["button","root"]),prefixCls:A,type:"search",size:L,variant:h,onPressEnter:_,onCompositionStart:ne,onCompositionEnd:Y,onChange:D,disabled:d},Object.keys(se));return i.createElement(td,{className:ee,style:{...a,...P.root},...se,hidden:v},i.createElement(ws,{ref:Ft(B,t),...ue}),V)}),SN=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,xN=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ga={};let tn;function wN(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ga[n])return Ga[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c={sizingStyle:xN.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:s,borderSize:a,boxSizing:o};return t&&n&&(Ga[n]=c),c}function EN(e,t=!1,n=null,r=null){tn||(tn=document.createElement("textarea"),tn.setAttribute("tab-index","-1"),tn.setAttribute("aria-hidden","true"),tn.setAttribute("name","hiddenTextarea"),document.body.appendChild(tn)),e.getAttribute("wrap")?tn.setAttribute("wrap",e.getAttribute("wrap")):tn.removeAttribute("wrap");const{paddingSize:o,borderSize:s,boxSizing:a,sizingStyle:l}=wN(e,t);tn.setAttribute("style",`${l};${SN}`),tn.value=e.value||e.placeholder||"";let c,u,d,f=tn.scrollHeight;if(a==="border-box"?f+=s:a==="content-box"&&(f-=o),n!==null||r!==null){tn.value=" ";const p=tn.scrollHeight-o;n!==null&&(c=p*n,a==="border-box"&&(c=c+o+s),f=Math.max(c,f)),r!==null&&(u=p*r,a==="border-box"&&(u=u+o+s),d=f>u?"":"hidden",f=Math.min(u,f))}const m={height:f,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}function su(){return su=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},su.apply(this,arguments)}const Xa=0,Ua=1,Ka=2,IN=i.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:s,onResize:a,className:l,style:c,disabled:u,onChange:d,onInternalAutoSize:f,...m}=e,[p,g]=bt(r,o),h=p??"",b=T=>{g(T.target.value),d==null||d(T)},$=i.useRef();i.useImperativeHandle(t,()=>({textArea:$.current}));const[y,v]=i.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),C=!!s,[S,x]=i.useState(Ka),[w,I]=i.useState(),E=()=>{x(Xa)};nt(()=>{C&&E()},[o,y,v,C]),nt(()=>{if(S===Xa)x(Ua);else if(S===Ua){const T=EN($.current,!1,y,v);x(Ka),I(T)}},[S]);const R=i.useRef(),P=()=>{Ke.cancel(R.current)},M=T=>{S===Ka&&(a==null||a(T),s&&(P(),R.current=Ke(()=>{E()})))};i.useEffect(()=>P,[]);const A={...c,...C?w:null};return(S===Xa||S===Ua)&&(A.overflowY="hidden",A.overflowX="hidden"),i.createElement(Fn,{onResize:M,disabled:!(s||a)},i.createElement("textarea",su({},m,{ref:$,style:A,className:z(n,l,{[`${n}-disabled`]:u}),disabled:u,value:h,onChange:b})))});function iu(){return iu=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},iu.apply(this,arguments)}const PN=N.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:s,maxLength:a,onCompositionStart:l,onCompositionEnd:c,suffix:u,prefixCls:d="rc-textarea",showCount:f,count:m,className:p,style:g,disabled:h,hidden:b,classNames:$,styles:y,onResize:v,onClear:C,onPressEnter:S,readOnly:x,autoSize:w,onKeyDown:I,...E},R)=>{const[P,M]=bt(e,t),O=P==null?"":String(P),[A,T]=N.useState(!1),F=N.useRef(!1),[H,L]=N.useState(null),B=i.useRef(null),D=i.useRef(null),k=()=>{var ge;return(ge=D.current)==null?void 0:ge.textArea},W=()=>{k().focus()};i.useImperativeHandle(R,()=>{var ge;return{resizableTextArea:D.current,focus:W,blur:()=>{k().blur()},nativeElement:((ge=B.current)==null?void 0:ge.nativeElement)||k()}}),i.useEffect(()=>{T(ge=>!h&&ge)},[h]);const[_,X]=N.useState(null);N.useEffect(()=>{_&&k().setSelectionRange(..._)},[_]);const U=mv(m,f),j=U.max??a,V=Number(j)>0,G=U.strategy(O),te=!!j&&G>j,ee=(ge,be)=>{let me=be;!F.current&&U.exceedFormatter&&U.max&&U.strategy(be)>U.max&&(me=U.exceedFormatter(be,{max:U.max}),be!==me&&X([k().selectionStart||0,k().selectionEnd||0])),M(me),Pi(ge.currentTarget,ge,o,me)},ne=ge=>{F.current=!0,l==null||l(ge)},Y=ge=>{F.current=!1,ee(ge,ge.currentTarget.value),c==null||c(ge)},se=ge=>{ee(ge,ge.target.value)},ue=ge=>{ge.key==="Enter"&&S&&!ge.nativeEvent.isComposing&&S(ge),I==null||I(ge)},q=ge=>{T(!0),n==null||n(ge)},oe=ge=>{T(!1),r==null||r(ge)},Z=ge=>{M(""),W(),Pi(k(),ge,o)};let J=u,ae;U.show&&(U.showFormatter?ae=U.showFormatter({value:O,count:G,maxLength:j}):ae=`${G}${V?` / ${j}`:""}`,J=N.createElement(N.Fragment,null,J,N.createElement("span",{className:z(`${d}-data-count`,$==null?void 0:$.count),style:y==null?void 0:y.count},ae)));const we=ge=>{var be;v==null||v(ge),(be=k())!=null&&be.style.height&&L(!0)},de=!w&&!f&&!s;return N.createElement(fv,{ref:B,value:O,allowClear:s,handleReset:Z,suffix:J,prefixCls:d,classNames:{...$,affixWrapper:z($==null?void 0:$.affixWrapper,{[`${d}-show-count`]:f,[`${d}-textarea-allow-clear`]:s})},disabled:h,focused:A,className:z(p,te&&`${d}-out-of-range`),style:{...g,...H&&!de?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof ae=="string"?ae:void 0}},hidden:b,readOnly:x,onClear:C},N.createElement(IN,iu({},E,{autoSize:w,maxLength:a,onKeyDown:ue,onChange:se,onFocus:q,onBlur:oe,onCompositionStart:ne,onCompositionEnd:Y,className:z($==null?void 0:$.textarea),style:{resize:g==null?void 0:g.resize,...y==null?void 0:y.textarea},disabled:h,prefixCls:d,onResize:we,ref:D,readOnly:x})))}),RN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
||
&-allow-clear > ${t},
|
||
&-affix-wrapper${r}-has-feedback ${t}
|
||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},MN=at(["Input","TextArea"],e=>{const t=rt(e,Ss(e));return RN(t)},xs,{resetFont:!1}),Pv=i.forwardRef((e,t)=>{var q;const{prefixCls:n,bordered:r=!0,size:o,disabled:s,status:a,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:m,variant:p,showCount:g,onMouseDown:h,onResize:b,...$}=e,{getPrefixCls:y,direction:v,allowClear:C,autoComplete:S,className:x,style:w,classNames:I,styles:E}=dt("textArea"),R=i.useContext(yn),P=s??R,{status:M,hasFeedback:O,feedbackIcon:A}=i.useContext($n),T=ys(M,a),[F,H]=pt([I,c],[E,m],{props:e}),L=i.useRef(null);i.useImperativeHandle(t,()=>{var oe,Z;return{resizableTextArea:(oe=L.current)==null?void 0:oe.resizableTextArea,focus:J=>{var ae,we;md((we=(ae=L.current)==null?void 0:ae.resizableTextArea)==null?void 0:we.textArea,J)},blur:()=>{var J;return(J=L.current)==null?void 0:J.blur()},nativeElement:((Z=L.current)==null?void 0:Z.nativeElement)||null}});const B=y("input",n),D=_t(B),[k,W]=Yb(B,u);MN(B,D);const{compactSize:_,compactItemClassnames:X}=Un(B,v),U=Jt(oe=>o??_??oe),[j,V]=qi("textArea",p,r),G=pv(l??C),[te,ee]=i.useState(!1),[ne,Y]=i.useState(!1),se=oe=>{ee(!0),h==null||h(oe);const Z=()=>{ee(!1),document.removeEventListener("mouseup",Z)};document.addEventListener("mouseup",Z)},ue=oe=>{var Z,J;if(b==null||b(oe),te&&typeof getComputedStyle=="function"){const ae=(J=(Z=L.current)==null?void 0:Z.nativeElement)==null?void 0:J.querySelector("textarea");ae&&getComputedStyle(ae).resize==="both"&&Y(!0)}};return i.createElement(PN,{autoComplete:S,...$,style:{...H.root,...w,...f},styles:H,disabled:P,allowClear:G,className:z(W,D,d,u,X,x,F.root,{[`${B}-textarea-affix-wrapper-resize-dirty`]:ne}),classNames:{...F,textarea:z({[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large"},k,F.textarea,te&&`${B}-mouse-active`),variant:z({[`${B}-${j}`]:V},zr(B,T)),affixWrapper:z(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:v==="rtl",[`${B}-affix-wrapper-sm`]:U==="small",[`${B}-affix-wrapper-lg`]:U==="large",[`${B}-textarea-show-count`]:g||((q=e.count)==null?void 0:q.show)},k)},prefixCls:B,suffix:O&&i.createElement("span",{className:`${B}-textarea-suffix`},A),showCount:g,ref:L,onResize:ue,onMouseDown:se})}),Es=ws;Es.Group=oN;Es.Search=CN;Es.TextArea=Pv;Es.Password=vN;Es.OTP=cN;const Ti=100,Rv=Ti/5,Mv=Ti/2-Rv/2,Ya=Mv*2*Math.PI,Qp=50,Zp=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:z(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Mv,cx:Qp,cy:Qp,strokeWidth:Rv,style:n})},NN=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[s,a]=i.useState(!1);nt(()=>{e!==0&&a(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!s)return null;const c={strokeDashoffset:`${Ya/4}`,strokeDasharray:`${Ya*l/100} ${Ya*(100-l)/100}`};return i.createElement("span",{className:z(r,`${n}-progress`,l<=0&&o)},i.createElement("svg",{viewBox:`0 0 ${Ti} ${Ti}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},i.createElement(Zp,{dotClassName:n,hasCircleCls:!0}),i.createElement(Zp,{dotClassName:n,style:c})))};function TN(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,s=`${t}-dot`,a=`${s}-holder`,l=`${a}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:z(a,r,n>0&&l),style:o},i.createElement("span",{className:z(s,`${t}-dot-spin`)},[1,2,3,4].map(c=>i.createElement("i",{className:`${t}-dot-item`,key:c})))),i.createElement(NN,{prefixCls:t,percent:n}))}function ON(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:s}=e,a=`${t}-dot`;return n&&i.isValidElement(n)?Wt(n,l=>({className:z(l.className,a,o),style:{...l.style,...s},percent:r})):i.createElement(TN,{prefixCls:t,percent:r,className:o,style:s})}const AN=new et("antSpinMove",{to:{opacity:1}}),zN=new et("antRotate",{to:{transform:"rotate(405deg)"}}),BN=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ct(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},LN=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,s]=At(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${s("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:s("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(a=>`${a} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:s("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:zN,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:s("dot-item-size"),height:s("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:AN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(a=>`${a} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},HN=e=>{const{componentCls:t}=e,[n]=At(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},DN=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},FN=at("Spin",e=>{const t=rt(e,{spinDotDefault:e.colorTextDescription});return[BN(t),LN(t),HN(t)]},DN),_N=200,Jp=[[30,.05],[70,.03],[96,.01]];function kN(e,t){const[n,r]=i.useState(0),o=i.useRef(null),s=t==="auto";return i.useEffect(()=>(s&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c<Jp.length;c+=1){const[u,d]=Jp[c];if(a<=u)return a+l*d}return a})},_N)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[s,e]),s?n:t}let Nv;function VN(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Tv=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:s,size:a="default",tip:l,description:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:p,percent:g,classNames:h,styles:b,...$}=e,{getPrefixCls:y,direction:v,indicator:C,className:S,style:x,classNames:w,styles:I}=dt("spin"),E=y("spin",t),[R,P]=FN(E),[M,O]=i.useState(()=>n&&!VN(n,r)),A=kN(M,g);i.useEffect(()=>{if(n){const _=$y(r,()=>{O(!0)});return _(),()=>{var X;(X=_==null?void 0:_.cancel)==null||X.call(_)}}O(!1)},[r,n]);const T=c??l,F={...e,size:a,spinning:M,tip:T,description:T,fullscreen:m,children:f,percent:A},[H,L]=pt([w,h],[I,b],{props:F}),B=p??C??Nv,D=typeof f<"u",k=D||m,W=i.createElement(i.Fragment,null,i.createElement(ON,{className:z(H.indicator),style:L.indicator,prefixCls:E,indicator:B,percent:A}),T&&i.createElement("div",{className:z(`${E}-description`,H.tip,H.description),style:{...L.tip,...L.description}},T));return i.createElement("div",{className:z(E,{[`${E}-sm`]:a==="small",[`${E}-lg`]:a==="large",[`${E}-spinning`]:M,[`${E}-rtl`]:v==="rtl",[`${E}-fullscreen`]:m},s,H.root,m&&H.mask,k?u:[`${E}-section`,H.section],S,o,R,P),style:{...L.root,...k?{}:L.section,...m?L.mask:{},...x,...d},"aria-live":"polite","aria-busy":M,...$},M&&(k?i.createElement("div",{className:z(`${E}-section`,H.section),style:L.section},W):W),D&&i.createElement("div",{className:z(`${E}-container`,H.container),style:L.container},f))};Tv.setDefaultIndicator=e=>{Nv=e};const WN=(e,t=!1)=>t&&!vn(e)?[]:Array.isArray(e)?e:[e];let on=null,Er=e=>e(),os=[],ss={};function eg(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ss,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:o}}const jN=N.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=i.useContext(je),s=ss.prefixCls||o("message"),a=i.useContext(hc),[l,c]=Xh({...n,prefixCls:s,...a.message});return N.useImperativeHandle(t,()=>{const u={...l};return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:u,sync:r}}),c}),qN=N.forwardRef((e,t)=>{const[n,r]=N.useState(eg),o=()=>{r(eg)};N.useEffect(o,[]);const s=Dh(),a=s.getRootPrefixCls(),l=s.getIconPrefixCls(),c=s.getTheme(),u=N.createElement(jN,{ref:t,sync:o,messageConfig:n});return N.createElement(An,{prefixCls:a,iconPrefixCls:l,theme:c},s.holderRender?s.holderRender(u):u)}),Ji=()=>{if(!on){const e=document.createDocumentFragment(),t={fragment:e};on=t,Er(()=>{ed(N.createElement(qN,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ji())})}}),e)});return}on.instance&&(os.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Er(()=>{const r=on.instance.open({...ss,...e.config});r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Er(()=>{on==null||on.instance.destroy(e.key)});break;default:Er(()=>{var r;const o=(r=on.instance)[t].apply(r,xt(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),os=[])};function GN(e){ss={...ss,...e},Er(()=>{var t;(t=on==null?void 0:on.sync)==null||t.call(on)})}function XN(e){const t=Ju(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return os.push(o),()=>{r?Er(()=>{r()}):o.skipped=!0}});return Ji(),t}function UN(e,t){const n=Ju(r=>{let o;const s={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return os.push(s),()=>{o?Er(()=>{o()}):s.skipped=!0}});return Ji(),n}const KN=e=>{os.push({type:"destroy",key:e}),Ji()},YN=["success","info","warning","error","loading"],QN={open:XN,destroy:KN,config:GN,useMessage:Uh,_InternalPanelDoNotUseOrYouWillBeFired:HS},ZN=QN;YN.forEach(e=>{ZN[e]=(...t)=>UN(e,t)});const JN=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:s,title:a,children:l,footer:c,classNames:u,styles:d,...f}=e,{getPrefixCls:m}=i.useContext(je),{className:p,style:g,classNames:h,styles:b}=dt("modal"),$=m(),y=t||m("modal"),v=_t($),[C,S]=O0(y,v),[x,w]=pt([h,u],[b,d],{props:e}),I=`${y}-confirm`;let E={};return s?E={closable:o??!1,title:"",footer:"",children:i.createElement(z0,{...e,prefixCls:y,confirmPrefixCls:I,rootPrefixCls:$,content:l})}:E={closable:o??!0,title:a,footer:c!==null&&i.createElement(R0,{...e}),children:l},i.createElement(y0,{prefixCls:y,className:z(C,`${y}-pure-panel`,s&&I,s&&`${I}-${s}`,n,p,S,v,x.root),style:{...g,...w.root},...f,closeIcon:P0(y,r),closable:o,classNames:x,styles:w,...E})},e6=G0(JN);function Ov(e){return hs(D0(e))}const zn=A0;zn.useModal=W0;zn.info=function(t){return hs(F0(t))};zn.success=function(t){return hs(_0(t))};zn.error=function(t){return hs(k0(t))};zn.warning=Ov;zn.warn=Ov;zn.confirm=function(t){return hs(V0(t))};zn.destroyAll=function(){for(;xr.length;){const t=xr.pop();t&&t()}};zn.config=P2;zn._InternalPanelDoNotUseOrYouWillBeFired=e6;const t6=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:s,colorWarning:a,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},n6=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Av=at("Popconfirm",e=>t6(e),n6,{resetStyle:!1}),zv=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:s,cancelText:a,okText:l,okType:c="primary",icon:u=i.createElement(as,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:p,onPopupClick:g,classNames:h,styles:b}=e,{getPrefixCls:$}=i.useContext(je),[y]=dn("Popconfirm",jn.Popconfirm),v=mo(o),C=mo(s);return i.createElement("div",{className:`${t}-inner-content`,onClick:g},i.createElement("div",{className:`${t}-message`},u&&i.createElement("span",{className:`${t}-message-icon`},u),i.createElement("div",{className:`${t}-message-text`},v&&i.createElement("div",{className:z(`${t}-title`,h==null?void 0:h.title),style:b==null?void 0:b.title},v),C&&i.createElement("div",{className:z(`${t}-description`,h==null?void 0:h.content),style:b==null?void 0:b.content},C))),i.createElement("div",{className:`${t}-buttons`},d&&i.createElement(On,{onClick:p,size:"small",...r},a||(y==null?void 0:y.cancelText)),i.createElement(dd,{buttonProps:{size:"small",...nd(c),...n},actionFn:m,close:f,prefixCls:$("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(y==null?void 0:y.okText))))},r6=e=>{const{prefixCls:t,placement:n,className:r,style:o,...s}=e,{getPrefixCls:a}=i.useContext(je),l=a("popconfirm",t);return Av(l),i.createElement(Sb,{placement:n,className:z(l,r),style:o,content:i.createElement(zv,{prefixCls:l,...s})})},o6=i.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:s="primary",icon:a=i.createElement(as,null),children:l,overlayClassName:c,onOpenChange:u,overlayStyle:d,styles:f,arrow:m,classNames:p,...g}=e,{getPrefixCls:h,className:b,style:$,classNames:y,styles:v,arrow:C,trigger:S}=dt("popconfirm"),[x,w]=bt(e.defaultOpen??!1,e.open),I=Xi(m,C),E=o||S||"click",R=D=>{w(D),u==null||u(D)},P=()=>{R(!1)},M=D=>{var k;return(k=e.onConfirm)==null?void 0:k.call(void 0,D)},O=D=>{var k;R(!1),(k=e.onCancel)==null||k.call(void 0,D)},A=D=>{const{disabled:k=!1}=e;k||R(D)},T=h("popconfirm",n),F={...e,placement:r,trigger:E,okType:s,overlayStyle:d,styles:f,classNames:p},[H,L]=pt([y,p],[v,f],{props:F}),B=z(T,b,c,H.root);return Av(T),i.createElement(Id,{arrow:I,...yt(g,["title"]),trigger:E,placement:r,onOpenChange:A,open:x,ref:t,classNames:{root:B,container:H.container,arrow:H.arrow},styles:{root:{...$,...L.root,...d},container:L.container,arrow:L.arrow},content:i.createElement(zv,{okType:s,icon:a,...e,prefixCls:T,close:P,onConfirm:M,onCancel:O,classNames:H,styles:L}),"data-popover-inject":!0},l)}),s6=o6;s6._InternalPanelDoNotUseOrYouWillBeFired=r6;var wo,Is;function Qt(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Bn(e,t){return(e>>>t&1)!=0}function nn(e){if(!e)throw new Error("Assertion error")}var Nn=function(){function e(t,n){Pn(this,e),Ve(this,"modeBits",void 0),Ve(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return In(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();wo=Nn;Ve(Nn,"NUMERIC",new wo(1,[10,12,14]));Ve(Nn,"ALPHANUMERIC",new wo(2,[9,11,13]));Ve(Nn,"BYTE",new wo(4,[8,16,16]));Ve(Nn,"KANJI",new wo(8,[8,10,12]));Ve(Nn,"ECI",new wo(7,[0,0,0]));var hn=In(function e(t,n){Pn(this,e),Ve(this,"ordinal",void 0),Ve(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});Is=hn;Ve(hn,"LOW",new Is(0,1));Ve(hn,"MEDIUM",new Is(1,0));Ve(hn,"QUARTILE",new Is(2,3));Ve(hn,"HIGH",new Is(3,2));var Tr=function(){function e(t,n,r){if(Pn(this,e),Ve(this,"mode",void 0),Ve(this,"numChars",void 0),Ve(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return In(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=Zr(n),s;try{for(o.s();!(s=o.n()).done;){var a=s.value;Qt(a,8,r)}}catch(l){o.e(l)}finally{o.f()}return new e(Nn.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o<n.length;){var s=Math.min(n.length-o,3);Qt(parseInt(n.substring(o,o+s),10),s*3+1,r),o+=s}return new e(Nn.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],o;for(o=0;o+2<=n.length;o+=2){var s=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o))*45;s+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o+1)),Qt(s,11,r)}return o<n.length&&Qt(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o)),6,r),new e(Nn.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)Qt(n,8,r);else if(n<16384)Qt(2,2,r),Qt(n,14,r);else if(n<1e6)Qt(6,3,r),Qt(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Nn.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var o=0,s=Zr(n),a;try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.mode.numCharCountBits(r);if(l.numChars>=1<<c)return 1/0;o+=4+c+l.bitData.length}}catch(u){s.e(u)}finally{s.f()}return o}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),o=[],s=0;s<r.length;s++)r.charAt(s)!="%"?o.push(r.charCodeAt(s)):(o.push(parseInt(r.substring(s+1,s+3),16)),s+=2);return o}}]),e}();Ve(Tr,"NUMERIC_REGEX",/^[0-9]*$/);Ve(Tr,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);Ve(Tr,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Yn=function(){function e(t,n,r,o){Pn(this,e),Ve(this,"size",void 0),Ve(this,"mask",void 0),Ve(this,"modules",[]),Ve(this,"isFunction",[]),Ve(this,"version",void 0),Ve(this,"errorCorrectionLevel",void 0);var s=o;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],l=0;l<this.size;l++)a.push(!1);for(var c=0;c<this.size;c++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(r);if(this.drawCodewords(u),s==-1)for(var d=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var m=this.getPenaltyScore();m<d&&(s=f,d=m),this.applyMask(f)}nn(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}return In(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),o=r.length,s=0;s<o;s++)for(var a=0;a<o;a++)s==0&&a==0||s==0&&a==o-1||s==o-1&&a==0||this.drawAlignmentPattern(r[s],r[a]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,o=r,s=0;s<10;s++)o=o<<1^(o>>>9)*1335;var a=(r<<10|o)^21522;nn(a>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,Bn(a,l));this.setFunctionModule(8,7,Bn(a,6)),this.setFunctionModule(8,8,Bn(a,7)),this.setFunctionModule(7,8,Bn(a,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,Bn(a,c));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,Bn(a,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,Bn(a,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var o=this.version<<12|n;nn(o>>>18==0);for(var s=0;s<18;s++){var a=Bn(o,s),l=this.size-11+s%3,c=Math.floor(s/3);this.setFunctionModule(l,c,a),this.setFunctionModule(c,l,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var s=-4;s<=4;s++){var a=Math.max(Math.abs(s),Math.abs(o)),l=n+s,c=r+o;0<=l&&l<this.size&&0<=c&&c<this.size&&this.setFunctionModule(l,c,a!=2&&a!=4)}}},{key:"drawAlignmentPattern",value:function(n,r){for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.setFunctionModule(n+s,r+o,Math.max(Math.abs(s),Math.abs(o))!=1)}},{key:"setFunctionModule",value:function(n,r,o){this.modules[r][n]=o,this.isFunction[r][n]=!0}},{key:"addEccAndInterleave",value:function(n){var r=this.version,o=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,o))throw new RangeError("Invalid argument");for(var s=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][r],a=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][r],l=Math.floor(e.getNumRawDataModules(r)/8),c=s-l%s,u=Math.floor(l/s),d=[],f=e.reedSolomonComputeDivisor(a),m=0,p=0;m<s;m++){var g=n.slice(p,p+u-a+(m<c?0:1));p+=g.length;var h=e.reedSolomonComputeRemainder(g,f);m<c&&g.push(0),d.push(g.concat(h))}for(var b=[],$=function(C){d.forEach(function(S,x){(C!=u-a||x>=c)&&b.push(S[C])})},y=0;y<d[0].length;y++)$(y);return nn(b.length==l),b}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,o=this.size-1;o>=1;o-=2){o==6&&(o=5);for(var s=0;s<this.size;s++)for(var a=0;a<2;a++){var l=o-a,c=(o+1&2)==0,u=c?this.size-1-s:s;!this.isFunction[u][l]&&r<n.length*8&&(this.modules[u][l]=Bn(n[r>>>3],7-(r&7)),r++)}}nn(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var o=0;o<this.size;o++){var s=void 0;switch(n){case 0:s=(o+r)%2==0;break;case 1:s=r%2==0;break;case 2:s=o%3==0;break;case 3:s=(o+r)%3==0;break;case 4:s=(Math.floor(o/3)+Math.floor(r/2))%2==0;break;case 5:s=o*r%2+o*r%3==0;break;case 6:s=(o*r%2+o*r%3)%2==0;break;case 7:s=((o+r)%2+o*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][o]&&s&&(this.modules[r][o]=!this.modules[r][o])}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var o=!1,s=0,a=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[r][l]==o?(s++,s==5?n+=e.PENALTY_N1:s>5&&n++):(this.finderPenaltyAddHistory(s,a),o||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),o=this.modules[r][l],s=1);n+=this.finderPenaltyTerminateAndCount(o,s,a)*e.PENALTY_N3}for(var c=0;c<this.size;c++){for(var u=!1,d=0,f=[0,0,0,0,0,0,0],m=0;m<this.size;m++)this.modules[m][c]==u?(d++,d==5?n+=e.PENALTY_N1:d>5&&n++):(this.finderPenaltyAddHistory(d,f),u||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[m][c],d=1);n+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var g=0;g<this.size-1;g++){var h=this.modules[p][g];h==this.modules[p][g+1]&&h==this.modules[p+1][g]&&h==this.modules[p+1][g+1]&&(n+=e.PENALTY_N2)}var b=0,$=Zr(this.modules),y;try{for($.s();!(y=$.n()).done;){var v=y.value;b=v.reduce(function(x,w){return x+(w?1:0)},b)}}catch(x){$.e(x)}finally{$.f()}var C=this.size*this.size,S=Math.ceil(Math.abs(b*20-C*10)/C)-1;return nn(0<=S&&S<=9),n+=S*e.PENALTY_N4,nn(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,o=[6],s=this.size-7;o.length<n;s-=r)o.splice(1,0,s);return o}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];nn(r<=this.size*3);var o=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var s=r;return n&&(this.finderPenaltyAddHistory(s,o),s=0),s+=this.size,this.finderPenaltyAddHistory(s,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o)}}],[{key:"encodeText",value:function(n,r){var o=Tr.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Tr.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=o&&o<=s&&s<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var c,u;for(c=o;;c++){var d=e.getNumDataCodewords(c,r)*8,f=Tr.getTotalBits(n,c);if(f<=d){u=f;break}if(c>=s)throw new RangeError("Data too long")}for(var m=r,p=0,g=[hn.MEDIUM,hn.QUARTILE,hn.HIGH];p<g.length;p++){var h=g[p];l&&u<=e.getNumDataCodewords(c,h)*8&&(m=h)}var b=[],$=Zr(n),y;try{for($.s();!(y=$.n()).done;){var v=y.value;Qt(v.mode.modeBits,4,b),Qt(v.numChars,v.mode.numCharCountBits(c),b);var C=Zr(v.getData()),S;try{for(C.s();!(S=C.n()).done;){var x=S.value;b.push(x)}}catch(R){C.e(R)}finally{C.f()}}}catch(R){$.e(R)}finally{$.f()}nn(b.length==u);var w=e.getNumDataCodewords(c,m)*8;nn(b.length<=w),Qt(0,Math.min(4,w-b.length),b),Qt(0,(8-b.length%8)%8,b),nn(b.length%8==0);for(var I=236;b.length<w;I^=253)Qt(I,8,b);for(var E=[];E.length*8<b.length;)E.push(0);return b.forEach(function(R,P){E[P>>>3]|=R<<7-(P&7)}),new e(c,m,E,a)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36)}return nn(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],o=0;o<n-1;o++)r.push(0);r.push(1);for(var s=1,a=0;a<n;a++){for(var l=0;l<r.length;l++)r[l]=e.reedSolomonMultiply(r[l],s),l+1<r.length&&(r[l]^=r[l+1]);s=e.reedSolomonMultiply(s,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var o=r.map(function(){return 0}),s=Zr(n),a;try{var l=function(){var u=a.value,d=u^o.shift();o.push(0),r.forEach(function(f,m){o[m]^=e.reedSolomonMultiply(f,d)})};for(s.s();!(a=s.n()).done;)l()}catch(c){s.e(c)}finally{s.f()}return o}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,s=7;s>=0;s--)o=o<<1^(o>>>7)*285,o^=(r>>>s&1)*n;return nn(o>>>8==0),o}}]),e}();Ve(Yn,"MIN_VERSION",1);Ve(Yn,"MAX_VERSION",40);Ve(Yn,"PENALTY_N1",3);Ve(Yn,"PENALTY_N2",3);Ve(Yn,"PENALTY_N3",40);Ve(Yn,"PENALTY_N4",10);Ve(Yn,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);Ve(Yn,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var i6={L:hn.LOW,M:hn.MEDIUM,Q:hn.QUARTILE,H:hn.HIGH},Bv=128,Lv="L",Hv="#FFFFFF",Dv="#000000",Fv=!1,_v=1,a6=4,l6=0,c6=.1,kv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return t.forEach(function(o,s){var a=null;o.forEach(function(l,c){if(!l&&a!==null){r.push("M".concat(a+n," ").concat(s+n,"h").concat(c-a,"v1H").concat(a+n,"z")),a=null;return}if(c===o.length-1){if(!l)return;a===null?r.push("M".concat(c+n,",").concat(s+n," h1v1H").concat(c+n,"z")):r.push("M".concat(a+n,",").concat(s+n," h").concat(c+1-a,"v1H").concat(a+n,"z"));return}l&&a===null&&(a=c)})}),r.join("")},Vv=function(t,n){return t.slice().map(function(r,o){return o<n.y||o>=n.y+n.h?r:r.map(function(s,a){return a<n.x||a>=n.x+n.w?s:!1})})},u6=function(t,n,r,o){if(o==null)return null;var s=t.length+r*2,a=Math.floor(n*c6),l=s/n,c=(o.width||a)*l,u=(o.height||a)*l,d=o.x==null?t.length/2-c/2:o.x*l,f=o.y==null?t.length/2-u/2:o.y*l,m=o.opacity==null?1:o.opacity,p=null;if(o.excavate){var g=Math.floor(d),h=Math.floor(f),b=Math.ceil(c+d-g),$=Math.ceil(u+f-h);p={x:g,y:h,w:b,h:$}}var y=o.crossOrigin;return{x:d,y:f,h:u,w:c,excavation:p,opacity:m,crossOrigin:y}},d6=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?a6:l6},f6=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Wv=function(t){var n=t.value,r=t.level,o=t.minVersion,s=t.includeMargin,a=t.marginSize,l=t.imageSettings,c=t.size,u=t.boostLevel,d=N.useMemo(function(){var f=Array.isArray(n)?n:[n],m=f.reduce(function(p,g){return p.push.apply(p,tr(Tr.makeSegments(g))),p},[]);return Yn.encodeSegments(m,i6[r],o,void 0,void 0,u)},[n,r,o,u]);return N.useMemo(function(){var f=d.getModules(),m=d6(s,a),p=f.length+m*2,g=u6(f,c,m,l);return{cells:f,margin:m,numCells:p,calculatedImageSettings:g,qrcode:d}},[d,c,l,s,a])},m6=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],p6=N.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?Bv:r,s=e.level,a=s===void 0?Lv:s,l=e.bgColor,c=l===void 0?Hv:l,u=e.fgColor,d=u===void 0?Dv:u,f=e.includeMargin,m=f===void 0?Fv:f,p=e.minVersion,g=p===void 0?_v:p,h=e.marginSize,b=e.style,$=e.imageSettings,y=e.boostLevel,v=pg(e,m6),C=$==null?void 0:$.src,S=N.useRef(null),x=N.useRef(null),w=N.useCallback(function(L){S.current=L,typeof t=="function"?t(L):t&&(t.current=L)},[t]),I=N.useState(!1),E=Au(I,2),R=E[1],P=Wv({value:n,level:a,minVersion:g,includeMargin:m,marginSize:h,imageSettings:$,size:o,boostLevel:y}),M=P.margin,O=P.cells,A=P.numCells,T=P.calculatedImageSettings;N.useEffect(function(){if(S.current){var L=S.current,B=L.getContext("2d");if(!B)return;var D=O,k=x.current,W=T!=null&&k!==null&&k.complete&&k.naturalHeight!==0&&k.naturalWidth!==0;W&&T.excavation!=null&&(D=Vv(O,T.excavation));var _=window.devicePixelRatio||1;L.height=L.width=o*_;var X=o/A*_;B.scale(X,X),B.fillStyle=c,B.fillRect(0,0,A,A),B.fillStyle=d,f6?B.fill(new Path2D(kv(D,M))):O.forEach(function(U,j){U.forEach(function(V,G){V&&B.fillRect(G+M,j+M,1,1)})}),T&&(B.globalAlpha=T.opacity),W&&B.drawImage(k,T.x+M,T.y+M,T.w,T.h)}}),N.useEffect(function(){R(!1)},[C]);var F=St({height:o,width:o},b),H=null;return C!=null&&(H=N.createElement("img",{alt:"QR-Code",src:C,key:C,style:{display:"none"},onLoad:function(){R(!0)},ref:x,crossOrigin:T==null?void 0:T.crossOrigin})),N.createElement(N.Fragment,null,N.createElement("canvas",Et({style:F,height:o,width:o,ref:w,role:"img"},v)),H)}),g6=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],h6=N.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?Bv:r,s=e.level,a=s===void 0?Lv:s,l=e.bgColor,c=l===void 0?Hv:l,u=e.fgColor,d=u===void 0?Dv:u,f=e.includeMargin,m=f===void 0?Fv:f,p=e.minVersion,g=p===void 0?_v:p,h=e.title,b=e.marginSize,$=e.imageSettings,y=e.boostLevel,v=pg(e,g6),C=Wv({value:n,level:a,minVersion:g,includeMargin:m,marginSize:b,imageSettings:$,size:o,boostLevel:y}),S=C.margin,x=C.cells,w=C.numCells,I=C.calculatedImageSettings,E=x,R=null;$!=null&&I!=null&&(I.excavation!=null&&(E=Vv(x,I.excavation)),R=N.createElement("image",{href:$.src,height:I.h,width:I.w,x:I.x+S,y:I.y+S,preserveAspectRatio:"none",opacity:I.opacity,crossOrigin:I.crossOrigin}));var P=kv(E,S);return N.createElement("svg",Et({height:o,width:o,viewBox:"0 0 ".concat(w," ").concat(w),ref:t,role:"img"},v),!!h&&N.createElement("title",null,h),N.createElement("path",{fill:c,d:"M0,0 h".concat(w,"v").concat(w,"H0z"),shapeRendering:"crispEdges"}),N.createElement("path",{fill:d,d:P,shapeRendering:"crispEdges"}),R)}),b6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function au(){return au=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},au.apply(this,arguments)}const v6=(e,t)=>i.createElement(Ye,au({},e,{ref:t,icon:b6})),y6=i.forwardRef(v6),$6=N.createElement(Tv,null);function C6({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:o}){const s=N.createElement(N.Fragment,null,N.createElement("p",{className:`${e}-expired`},t==null?void 0:t.expired),n&&N.createElement(On,{type:"link",icon:N.createElement(y6,null),onClick:n},t==null?void 0:t.refresh)),a=N.createElement("p",{className:`${e}-scanned`},t==null?void 0:t.scanned),l={expired:s,loading:$6,scanned:a};return(r??(d=>l[d.status]))({status:o,locale:t,onRefresh:n})}const S6=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:{...Ct(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${K(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},x6=e=>({QRCodeCoverBackgroundColor:new gt(e.colorBgContainer).setA(.96).toRgbString()}),w6=at("QRCode",e=>{const t=rt(e,{QRCodeTextColor:e.colorText});return S6(t)},x6),a8=e=>{const[,t]=jt(),{value:n,type:r="canvas",icon:o="",size:s=160,iconSize:a,color:l=t.colorText,errorLevel:c="M",status:u="active",bordered:d=!0,onRefresh:f,style:m,className:p,rootClassName:g,prefixCls:h,bgColor:b="transparent",marginSize:$,statusRender:y,classNames:v,styles:C,boostLevel:S,...x}=e,{getPrefixCls:w,className:I,style:E,classNames:R,styles:P}=dt("qrcode"),M={...e,bgColor:b,type:r,size:s,status:u,bordered:d,errorLevel:c},[O,A]=pt([R,v],[P,C],{props:M}),T=w("qrcode",h),[F,H]=w6(T),L={src:o,x:void 0,y:void 0,height:typeof a=="number"?a:(a==null?void 0:a.height)??40,width:typeof a=="number"?a:(a==null?void 0:a.width)??40,excavate:!0,crossOrigin:"anonymous"},B=cn(x,!0),D=yt(x,Object.keys(B)),k={value:n,size:s,level:c,bgColor:b,fgColor:l,style:{width:m==null?void 0:m.width,height:m==null?void 0:m.height},imageSettings:o?L:void 0,marginSize:$,boostLevel:S,...B},[W]=dn("QRCode");if(!n)return null;const _=z(T,p,g,F,H,I,O.root,{[`${T}-borderless`]:!d}),X={backgroundColor:b,...A.root,...E,...m,width:(m==null?void 0:m.width)??s,height:(m==null?void 0:m.height)??s};return N.createElement("div",{...D,className:_,style:X},u!=="active"&&N.createElement("div",{className:z(`${T}-cover`,O.cover),style:A.cover},N.createElement(C6,{prefixCls:T,locale:W,status:u,onRefresh:f,statusRender:y})),r==="canvas"?N.createElement(p6,{...k}):N.createElement(h6,{...k}))};function lu(){return lu=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},lu.apply(this,arguments)}const jv=i.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:r,disabled:o,loadingIcon:s,checkedChildren:a,unCheckedChildren:l,onClick:c,onChange:u,onKeyDown:d,styles:f,classNames:m,...p},g)=>{const[h,b]=bt(r??!1,n);function $(S,x){let w=h;return o||(w=S,b(w),u==null||u(w,x)),w}function y(S){S.which===Me.LEFT?$(!1,S):S.which===Me.RIGHT&&$(!0,S),d==null||d(S)}function v(S){const x=$(!h,S);c==null||c(x,S)}const C=z(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:o});return i.createElement("button",lu({},p,{type:"button",role:"switch","aria-checked":h,disabled:o,className:C,ref:g,onKeyDown:y,onClick:v}),s,i.createElement("span",{className:`${e}-inner`},i.createElement("span",{className:z(`${e}-inner-checked`,m==null?void 0:m.content),style:f==null?void 0:f.content},a),i.createElement("span",{className:z(`${e}-inner-unchecked`,m==null?void 0:m.content),style:f==null?void 0:f.content},l)))});jv.displayName="Switch";const E6=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:s,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=K(c(l).add(c(r).mul(2)).equal()),f=K(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:K(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:s,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${K(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},I6=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},P6=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:s,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:s,height:s,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(s).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${K(a(s).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},R6=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:s,handleSize:a,switchDuration:l,calc:c}=e,u=`${t}-inner`,d=K(c(a).add(c(r).mul(2)).equal()),f=K(c(s).mul(2).equal());return{[t]:{[u]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:s,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(m=>`${m} ${l} ease-in-out`).join(", "),[`${u}-checked, ${u}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(m=>`${m} ${l} ease-in-out`).join(", ")},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${u}`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},M6=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...Ct(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:K(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...bn(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},N6=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,s=t*n,a=r/2,l=2,c=s-l*2,u=a-l*2;return{trackHeight:s,trackHeightSM:a,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new gt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},T6=at("Switch",e=>{const t=rt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[M6(t),R6(t),P6(t),I6(t),E6(t)]},N6),O6=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:s,className:a,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:p,styles:g,classNames:h,...b}=e,[$,y]=bt(f??m??!1,u??d),{getPrefixCls:v,direction:C,className:S,style:x,classNames:w,styles:I}=dt("switch"),E=i.useContext(yn),R=(o??E)||s,P=v("switch",n),[M,O]=T6(P),A=Jt(r),T={...e,size:A,disabled:R},[F,H]=pt([w,h],[I,g],{props:T}),L=i.createElement("div",{className:z(`${P}-handle`,F.indicator),style:H.indicator},s&&i.createElement(us,{className:`${P}-loading-icon`})),B=z(S,{[`${P}-small`]:A==="small",[`${P}-loading`]:s,[`${P}-rtl`]:C==="rtl"},a,l,F.root,M,O),D={...H.root,...x,...c},k=(...W)=>{y(W[0]),p==null||p(...W)};return i.createElement(Zh,{component:"Switch",disabled:R},i.createElement(jv,{...b,classNames:F,styles:H,checked:$,onChange:k,prefixCls:P,className:B,style:D,disabled:R,ref:t,loadingIcon:L}))}),A6=O6;A6.__ANT_SWITCH=!0;const pn=(e,t)=>new gt(e).setA(t).toRgbString(),br=(e,t)=>new gt(e).lighten(t).toHexString(),tg=e=>{const t=Li(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]}},z6=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:pn(r,.85),colorTextSecondary:pn(r,.65),colorTextTertiary:pn(r,.45),colorTextQuaternary:pn(r,.25),colorFill:pn(r,.18),colorFillSecondary:pn(r,.12),colorFillTertiary:pn(r,.08),colorFillQuaternary:pn(r,.04),colorBgSolid:pn(r,.95),colorBgSolidHover:pn(r,1),colorBgSolidActive:pn(r,.9),colorBgElevated:br(n,12),colorBgContainer:br(n,8),colorBgLayout:br(n,0),colorBgSpotlight:br(n,26),colorBgBlur:pn(r,.04),colorBorder:br(n,26),colorBorderDisabled:br(n,26),colorBorderSecondary:br(n,19)}},B6=(e,t)=>{const n=Object.keys(_u).map(a=>{const l=Li(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,u,d)=>(c[`${a}-${d+1}`]=l[d],c[`${a}${d+1}`]=l[d],c),{})}).reduce((a,l)=>(a={...a,...l},a),{}),r=t??ku(e),o=Vg(e,{generateColorPalettes:tg,generateNeutralColorPalettes:z6}),s=Tn.reduce((a,l)=>{const c=e[l];if(c){const u=tg(c);a[`${l}Hover`]=u[7],a[`${l}Active`]=u[5]}return a},{});return{...r,...n,...o,...s,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}},l8={defaultSeed:ai.token,defaultAlgorithm:ku,darkAlgorithm:B6,_internalContext:Vu};var L6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function cu(){return cu=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},cu.apply(this,arguments)}const H6=(e,t)=>i.createElement(Ye,cu({},e,{ref:t,icon:L6})),c8=i.forwardRef(H6);var D6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function uu(){return uu=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},uu.apply(this,arguments)}const F6=(e,t)=>i.createElement(Ye,uu({},e,{ref:t,icon:D6})),_6=i.forwardRef(F6);var k6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function du(){return du=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},du.apply(this,arguments)}const V6=(e,t)=>i.createElement(Ye,du({},e,{ref:t,icon:k6})),W6=i.forwardRef(V6),j6=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:s}=r;return{marginBottom:o,color:n,fontWeight:s,fontSize:e,lineHeight:t}},q6=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
||
h${r}&,
|
||
div&-h${r},
|
||
div&-h${r} > textarea,
|
||
h${r}
|
||
`]=j6(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},G6=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Xg(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},X6=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ii[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),U6=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},K6=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Y6=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Q6=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...q6(e),[`
|
||
& + h1${t},
|
||
& + h2${t},
|
||
& + h3${t},
|
||
& + h4${t},
|
||
& + h5${t}
|
||
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}},...X6(e),...G6(e),[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:{...Xg(e),marginInlineStart:e.marginXXS},...U6(e),...K6(e),...Y6(),"&-rtl":{direction:"rtl"}}}},Z6=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),qv=at("Typography",Q6,Z6),J6=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:s,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=i.createElement(W6,null)}=e,g=i.useRef(null),h=i.useRef(!1),b=i.useRef(null),[$,y]=i.useState(c);i.useEffect(()=>{y(c)},[c]),i.useEffect(()=>{var O;if((O=g.current)!=null&&O.resizableTextArea){const{textArea:A}=g.current.resizableTextArea;A.focus();const{length:T}=A.value;A.setSelectionRange(T,T)}},[]);const v=({target:O})=>{y(O.value.replace(/[\n\r]/g,""))},C=()=>{h.current=!0},S=()=>{h.current=!1},x=({keyCode:O})=>{h.current||(b.current=O)},w=()=>{u($.trim())},I=({keyCode:O,ctrlKey:A,altKey:T,metaKey:F,shiftKey:H})=>{b.current!==O||h.current||A||T||F||H||(O===Me.ENTER?(w(),f==null||f()):O===Me.ESC&&d())},E=()=>{w()},[R,P]=qv(t),M=z(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${m}`]:!!m},r,R,P);return i.createElement("div",{className:M,style:o},i.createElement(Pv,{ref:g,maxLength:a,value:$,onChange:v,onKeyDown:x,onKeyUp:I,onCompositionStart:C,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:l}),p!==null?Wt(p,{className:`${t}-edit-content-confirm`}):null)},eT=(e,t)=>{let n=!1;const r=o=>{var s,a,l;o.stopPropagation(),o.preventDefault(),(s=o.clipboardData)==null||s.clearData(),(a=o.clipboardData)==null||a.setData("text/plain",e),t&&((l=o.clipboardData)==null||l.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})}},tT=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 nT(e,t){if(typeof e!="string")return!1;const n=(t==null?void 0:t.format)==="text/html";return!!(await tT(e,n)||eT(e,n))}const rT=({copyConfig:e,children:t})=>{const[n,r]=i.useState(!1),[o,s]=i.useState(!1),a=i.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),i.useEffect(()=>l,[]);const u=We(async d=>{var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),s(!0);try{const m=typeof e.text=="function"?await e.text():e.text;await nT(m||WN(t,!0).join("")||"",c),s(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)==null||f.call(e,d)}catch(m){throw s(!1),m}});return{copied:n,copyLoading:o,onClick:u}};function Qa(e,t){return i.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const oT=e=>{const t=i.useRef(void 0);return i.useEffect(()=>{t.current=e}),t.current},sT=(e,t,n)=>i.useMemo(()=>e===!0?{title:t??n}:i.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),Gv=i.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:s,children:a,direction:l,style:c,...u}=e,{getPrefixCls:d,direction:f,className:m,style:p}=dt("typography"),g=l??f,h=d("typography",n),[b,$]=qv(h),y=z(h,m,{[`${h}-rtl`]:g==="rtl"},o,s,b,$),v={...p,...c};return i.createElement(r,{className:y,style:v,ref:t,...u},a)});var iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function fu(){return fu=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},fu.apply(this,arguments)}const aT=(e,t)=>i.createElement(Ye,fu({},e,{ref:t,icon:iT})),lT=i.forwardRef(aT);function ng(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Za(e,t,n){return e===!0||e===void 0?t:e||n&&t}function cT(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const kd=e=>["string","number"].includes(typeof e),uT=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:s,tabIndex:a,onCopy:l,loading:c})=>{const u=ng(o),d=ng(s),{copied:f,copy:m}=n??{},p=t?f:m,g=Za(u[t?1:0],p),h=typeof g=="string"?g:p;return i.createElement(Kn,{title:g},i.createElement("button",{type:"button",className:z(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":h,tabIndex:a},t?Za(d[1],i.createElement(fb,null),!0):Za(d[0],c?i.createElement(us,null):i.createElement(lT,null),!0)))},Xs=i.forwardRef(({style:e,children:t},n)=>{const r=i.useRef(null);return i.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),i.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),dT=e=>e.reduce((t,n)=>t+(kd(n)?String(n).length:1),0);function rg(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const s=e[o],l=kd(s)?String(s).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(s).slice(0,u)),r}r.push(s),n=c}return e}const Ja=0,el=1,tl=2,nl=3,og=4,Us={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function fT(e){const{enableMeasure:t,width:n,text:r,children:o,rows:s,expanded:a,miscDeps:l,onEllipsis:c}=e,u=i.useMemo(()=>Vt(r),[r]),d=i.useMemo(()=>dT(u),[r]),f=i.useMemo(()=>o(u,!1),[r]),[m,p]=i.useState(null),g=i.useRef(null),h=i.useRef(null),b=i.useRef(null),$=i.useRef(null),y=i.useRef(null),[v,C]=i.useState(!1),[S,x]=i.useState(Ja),[w,I]=i.useState(0),[E,R]=i.useState(null);nt(()=>{x(t&&n&&d?el:Ja)},[n,r,s,t,u]),nt(()=>{var A,T,F,H;if(S===el){x(tl);const L=h.current&&getComputedStyle(h.current).whiteSpace;R(L)}else if(S===tl){const L=!!((A=b.current)!=null&&A.isExceed());x(L?nl:og),p(L?[0,d]:null),C(L);const B=((T=b.current)==null?void 0:T.getHeight())||0,D=s===1?0:((F=$.current)==null?void 0:F.getHeight())||0,k=((H=y.current)==null?void 0:H.getHeight())||0,W=Math.max(B,D+k);I(W+1),c(L)}},[S]);const P=m?Math.ceil((m[0]+m[1])/2):0;nt(()=>{var F;const[A,T]=m||[0,0];if(A!==T){const L=(((F=g.current)==null?void 0:F.getHeight())||0)>w;let B=P;T-A===1&&(B=L?A:T),p(L?[A,B]:[B,T])}},[m,P]);const M=i.useMemo(()=>{if(!t)return o(u,!1);if(S!==nl||!m||m[0]!==m[1]){const A=o(u,!1);return[og,Ja].includes(S)?A:i.createElement("span",{style:{...Us,WebkitLineClamp:s}},A)}return o(a?u:rg(u,m[0]),v)},[a,S,m,u].concat(xt(l))),O={width:n,margin:0,padding:0,whiteSpace:E==="nowrap"?"normal":"inherit"};return i.createElement(i.Fragment,null,M,S===tl&&i.createElement(i.Fragment,null,i.createElement(Xs,{style:{...O,...Us,WebkitLineClamp:s},ref:b},f),i.createElement(Xs,{style:{...O,...Us,WebkitLineClamp:s-1},ref:$},f),i.createElement(Xs,{style:{...O,...Us,WebkitLineClamp:1},ref:y},o([],!0))),S===nl&&m&&m[0]!==m[1]&&i.createElement(Xs,{style:{...O,top:400},ref:g},o(rg(u,P),!0)),S===el&&i.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const mT=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:i.createElement(Kn,{open:t?void 0:!1,...r},n);function pT({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:s,italic:a},l){let c=l;function u(d,f){f&&(c=i.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",s),u("i",a),c}const gT="...",sg=["delete","mark","code","underline","strong","keyboard","italic"],ea=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,type:s,disabled:a,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:m,...p}=e,{getPrefixCls:g,direction:h}=i.useContext(je),[b]=dn("Text"),$=i.useRef(null),y=i.useRef(null),v=g("typography",n),C=yt(p,sg),[S,x]=Qa(u),[w,I]=bt(!1,x.editing),{triggerType:E=["icon"]}=x,R=re=>{var $e;re&&(($e=x.onStart)==null||$e.call(x)),I(re)},P=oT(w);nt(()=>{var re;!w&&P&&((re=y.current)==null||re.focus())},[w]);const M=re=>{re==null||re.preventDefault(),R(!0)},O=re=>{var $e;($e=x.onChange)==null||$e.call(x,re),R(!1)},A=()=>{var re;(re=x.onCancel)==null||re.call(x),R(!1)},[T,F]=Qa(d),{copied:H,copyLoading:L,onClick:B}=rT({copyConfig:F,children:l}),[D,k]=i.useState(!1),[W,_]=i.useState(!1),[X,U]=i.useState(!1),[j,V]=i.useState(!1),[G,te]=i.useState(!0),[ee,ne]=Qa(c,{expandable:!1,symbol:re=>re?b==null?void 0:b.collapse:b==null?void 0:b.expand}),[Y,se]=bt(ne.defaultExpanded||!1,ne.expanded),ue=ee&&(!Y||ne.expandable==="collapsible"),{rows:q=1}=ne,oe=i.useMemo(()=>ue&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||S||T),[ue,ne,S,T]);nt(()=>{ee&&!oe&&(k(_m("webkitLineClamp")),_(_m("textOverflow")))},[oe,ee]);const[Z,J]=i.useState(ue),ae=i.useMemo(()=>oe?!1:q===1?W:D,[oe,W,D]);nt(()=>{J(ae&&ue)},[ae,ue]);const we=ue&&(Z?j:X),de=ue&&q===1&&Z,ge=ue&&q>1&&Z,be=(re,$e)=>{var ke;se($e.expanded),(ke=ne.onExpand)==null||ke.call(ne,re,$e)},[me,Ne]=i.useState(0),Ae=({offsetWidth:re})=>{Ne(re)},Ee=re=>{var $e;U(re),X!==re&&(($e=ne.onEllipsis)==null||$e.call(ne,re))};i.useEffect(()=>{const re=$.current;if(ee&&Z&&re){const $e=cT(re);j!==$e&&V($e)}},[ee,Z,l,ge,G,me]),i.useEffect(()=>{const re=$.current;if(typeof IntersectionObserver>"u"||!re||!Z||!ue)return;const $e=new IntersectionObserver(()=>{te(!!re.offsetParent)});return $e.observe(re),()=>{$e.disconnect()}},[Z,ue]);const ze=sT(ne.tooltip,x.text,l),Re=i.useMemo(()=>{if(!(!ee||Z))return[x.text,l,m,ze.title].find(kd)},[ee,Z,m,ze.title,we]);if(w)return i.createElement(J6,{value:x.text??(typeof l=="string"?l:""),onSave:O,onCancel:A,onEnd:x.onEnd,prefixCls:v,className:r,style:o,direction:h,component:f,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});const ve=()=>{const{expandable:re,symbol:$e}=ne;return re?i.createElement("button",{type:"button",key:"expand",className:`${v}-${Y?"collapse":"expand"}`,onClick:ke=>be(ke,{expanded:!Y}),"aria-label":Y?b.collapse:b==null?void 0:b.expand},typeof $e=="function"?$e(Y):$e):null},fe=()=>{if(!S)return;const{icon:re,tooltip:$e,tabIndex:ke}=x,De=Vt($e)[0]||(b==null?void 0:b.edit),ot=typeof De=="string"?De:"";return E.includes("icon")?i.createElement(Kn,{key:"edit",title:$e===!1?"":De},i.createElement("button",{type:"button",ref:y,className:`${v}-edit`,onClick:M,"aria-label":ot,tabIndex:ke},re||i.createElement(_6,{role:"button"}))):null},Ce=()=>T?i.createElement(uT,{key:"copy",...F,prefixCls:v,copied:H,locale:b,onCopy:B,loading:L,iconOnly:!vn(l)}):null,He=re=>[re&&ve(),fe(),Ce()],Ie=re=>[re&&!Y&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},gT),ne.suffix,He(re)];return i.createElement(Fn,{onResize:Ae,disabled:!ue},re=>i.createElement(mT,{tooltipProps:ze,enableEllipsis:ue,isEllipsis:we},i.createElement(Gv,{className:z({[`${v}-${s}`]:s,[`${v}-disabled`]:a,[`${v}-ellipsis`]:ee,[`${v}-ellipsis-single-line`]:de,[`${v}-ellipsis-multiple-line`]:ge,[`${v}-link`]:f==="a"},r),prefixCls:n,style:{...o,WebkitLineClamp:ge?q:void 0},component:f,ref:Ft(re,$,t),direction:h,onClick:E.includes("text")?M:void 0,"aria-label":Re==null?void 0:Re.toString(),title:m,...C},i.createElement(fT,{enableMeasure:ue&&!Z,text:l,rows:q,width:me,onEllipsis:Ee,expanded:Y,miscDeps:[H,Y,L,S,T,b].concat(xt(sg.map($e=>e[$e])))},($e,ke)=>pT(e,i.createElement(i.Fragment,null,$e.length>0&&ke&&!Y&&Re?i.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,Ie(ke)))))))}),hT=i.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:s,...a}=e,l={...a,rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r};return i.createElement(ea,{...l,ref:t,ellipsis:!!n,component:"a"},o)}),bT=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.createElement(ea,{ref:t,...r,component:"div"},n)}),vT=(e,t)=>{const{ellipsis:n,children:r,...o}=e,s=i.useMemo(()=>n&&typeof n=="object"?yt(n,["expandable","rows"]):n,[n]);return i.createElement(ea,{ref:t,...o,ellipsis:s,component:"span"},r)},yT=i.forwardRef(vT),$T=[1,2,3,4,5],CT=i.forwardRef((e,t)=>{const{level:n=1,children:r,...o}=e,s=$T.includes(n)?`h${n}`:"h1";return i.createElement(ea,{ref:t,...o,component:s},r)}),ta=Gv;ta.Text=yT;ta.Link=hT;ta.Title=CT;ta.Paragraph=bT;var ST={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function mu(){return mu=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},mu.apply(this,arguments)}const xT=(e,t)=>i.createElement(Ye,mu({},e,{ref:t,icon:ST})),u8=i.forwardRef(xT);var wT=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},rl,ET=i.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(rl=wT("dark"))!==null&&rl!==void 0&&rl.matches?"dark":"light"}),d8=function(){return i.useContext(ET)},IT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"filled"};function pu(){return pu=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},pu.apply(this,arguments)}const PT=(e,t)=>i.createElement(Ye,pu({},e,{ref:t,icon:IT})),f8=i.forwardRef(PT);var RT={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function gu(){return gu=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},gu.apply(this,arguments)}const MT=(e,t)=>i.createElement(Ye,gu({},e,{ref:t,icon:RT})),m8=i.forwardRef(MT);var NT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};function hu(){return hu=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},hu.apply(this,arguments)}const TT=(e,t)=>i.createElement(Ye,hu({},e,{ref:t,icon:NT})),p8=i.forwardRef(TT);var OT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z"}}]},name:"dislike",theme:"filled"};function bu(){return bu=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},bu.apply(this,arguments)}const AT=(e,t)=>i.createElement(Ye,bu({},e,{ref:t,icon:OT})),g8=i.forwardRef(AT);var zT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"};function vu(){return vu=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},vu.apply(this,arguments)}const BT=(e,t)=>i.createElement(Ye,vu({},e,{ref:t,icon:zT})),h8=i.forwardRef(BT);var LT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function yu(){return yu=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},yu.apply(this,arguments)}const HT=(e,t)=>i.createElement(Ye,yu({},e,{ref:t,icon:LT})),b8=i.forwardRef(HT);var DT={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};function $u(){return $u=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},$u.apply(this,arguments)}const FT=(e,t)=>i.createElement(Ye,$u({},e,{ref:t,icon:DT})),v8=i.forwardRef(FT);var _T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};function Cu(){return Cu=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},Cu.apply(this,arguments)}const kT=(e,t)=>i.createElement(Ye,Cu({},e,{ref:t,icon:_T})),y8=i.forwardRef(kT);var VT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};function Su(){return Su=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},Su.apply(this,arguments)}const WT=(e,t)=>i.createElement(Ye,Su({},e,{ref:t,icon:VT})),$8=i.forwardRef(WT);var jT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"};function xu(){return xu=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},xu.apply(this,arguments)}const qT=(e,t)=>i.createElement(Ye,xu({},e,{ref:t,icon:jT})),C8=i.forwardRef(qT);var GT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"};function wu(){return wu=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},wu.apply(this,arguments)}const XT=(e,t)=>i.createElement(Ye,wu({},e,{ref:t,icon:GT})),S8=i.forwardRef(XT);var UT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};function Eu(){return Eu=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},Eu.apply(this,arguments)}const KT=(e,t)=>i.createElement(Ye,Eu({},e,{ref:t,icon:UT})),x8=i.forwardRef(KT);var YT={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"};function Iu(){return Iu=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},Iu.apply(this,arguments)}const QT=(e,t)=>i.createElement(Ye,Iu({},e,{ref:t,icon:YT})),w8=i.forwardRef(QT);var ZT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function Pu(){return Pu=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},Pu.apply(this,arguments)}const JT=(e,t)=>i.createElement(Ye,Pu({},e,{ref:t,icon:ZT})),E8=i.forwardRef(JT);var e5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"};function Ru(){return Ru=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},Ru.apply(this,arguments)}const t5=(e,t)=>i.createElement(Ye,Ru({},e,{ref:t,icon:e5})),I8=i.forwardRef(t5);var n5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};function Mu(){return Mu=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},Mu.apply(this,arguments)}const r5=(e,t)=>i.createElement(Ye,Mu({},e,{ref:t,icon:n5})),P8=i.forwardRef(r5);var o5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};function Nu(){return Nu=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},Nu.apply(this,arguments)}const s5=(e,t)=>i.createElement(Ye,Nu({},e,{ref:t,icon:o5})),R8=i.forwardRef(s5);Hi.Provider;var Xv={};Object.defineProperty(Xv,"__esModule",{value:!0});var M8=Xv.default=d5;const i5=`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`,a5=`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`,l5=`${i5} ${a5}`.split(/[\s\n]+/),c5="aria-",u5="data-";function ig(e,t){return e.indexOf(t)===0}function d5(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"||ig(o,c5))||n.data&&ig(o,u5)||n.attr&&l5.includes(o))&&(r[o]=e[o])}),r}var sn={},Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});Vd.default=p5;var f5=m5(i);function Uv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Uv=function(r){return r?n:t})(e)}function m5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Uv(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function p5(e,t,n){const r=f5.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});Wd.default=v5;const g5=Symbol.for("react.element"),h5=Symbol.for("react.transitional.element"),b5=Symbol.for("react.fragment");function v5(e){return e&&typeof e=="object"&&(e.$$typeof===g5||e.$$typeof===h5)&&e.type===b5}Object.defineProperty(sn,"__esModule",{value:!0});sn.useComposeRef=sn.supportRef=sn.supportNodeRef=sn.getNodeRef=sn.fillRef=S5=sn.composeRef=void 0;var Kv=i,ol=Ir,y5=Yv(Vd),$5=Yv(Wd);function Yv(e){return e&&e.__esModule?e:{default:e}}const C5=Number(Kv.version.split(".")[0]),Qv=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)};sn.fillRef=Qv;const Zv=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Qv(r,n)})}};var S5=sn.composeRef=Zv;const x5=(...e)=>(0,y5.default)(()=>Zv(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o]));sn.useComposeRef=x5;const Jv=e=>{var n,r;if(!e)return!1;if(jd(e)&&C5>=19)return!0;const t=(0,ol.isMemo)(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==ol.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==ol.ForwardRef)};sn.supportRef=Jv;function jd(e){return(0,Kv.isValidElement)(e)&&!(0,$5.default)(e)}const w5=e=>jd(e)&&Jv(e);sn.supportNodeRef=w5;const E5=e=>{if(e&&jd(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};sn.getNodeRef=E5;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.call=qd;Rn.default=void 0;Rn.note=ny;Rn.noteOnce=oy;Rn.preMessage=void 0;Rn.resetWarned=ry;Rn.warning=ty;Rn.warningOnce=Ps;let Tu={};const ey=e=>{};Rn.preMessage=ey;function ty(e,t){}function ny(e,t){}function ry(){Tu={}}function qd(e,t,n){!t&&!Tu[n]&&(e(!1,n),Tu[n]=!0)}function Ps(e,t){qd(ty,e,t)}function oy(e,t){qd(ny,e,t)}Ps.preMessage=ey;Ps.resetWarned=ry;Ps.noteOnce=oy;Rn.default=Ps;var na={},ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.default=void 0;const I5={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"};ra.default=I5;var oa={},Rs={};const P5=xy(yC);var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=void 0;const R5={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Ms.default=R5;var sy=zu.default;Object.defineProperty(Rs,"__esModule",{value:!0});Rs.default=void 0;var M5=sy(P5),N5=sy(Ms);const T5={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"],...M5.default},timePickerLocale:{...N5.default}};Rs.default=T5;var O5=zu.default;Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var A5=O5(Rs);oa.default=A5.default;var sa=zu.default;Object.defineProperty(na,"__esModule",{value:!0});na.default=void 0;var z5=sa(ra),B5=sa(oa),L5=sa(Rs),H5=sa(Ms);const rn="${label} is not a valid ${type}",D5={locale:"en",Pagination:z5.default,DatePicker:L5.default,TimePicker:H5.default,Calendar:B5.default,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:rn,method:rn,array:rn,object:rn,number:rn,date:rn,boolean:rn,integer:rn,float:rn,regexp:rn,email:rn,url:rn,hex:rn},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"}};na.default=D5;var F5=na;const N8=wy(F5);var _5=Oi(function e(){Ai(this,e)}),iy="CALC_UNIT",k5=new RegExp(iy,"g");function sl(e){return typeof e=="number"?"".concat(e).concat(iy):e}var V5=function(e){Cy(n,e);var t=Sy(n);function n(r,o){var s;Ai(this,n),s=t.call(this),Hn(ua(s),"result",""),Hn(ua(s),"unitlessCssVar",void 0),Hn(ua(s),"lowPriority",void 0);var a=Ko(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):a==="number"?s.result=sl(r):a==="string"&&(s.result=r),s}return Oi(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(sl(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(sl(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,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return s.result.includes(u)})&&(c=!1),this.result=this.result.replace(k5,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(_5),W5=function(t,n){var r=V5;return function(o){return new r(o,n)}},ag=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 lg(e,t,n,r){var o=Yt({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(l){var c=gg(l,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var a=Yt(Yt({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var ay=typeof CSSINJS_STATISTIC<"u",Ou=!0;function ly(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ay)return Object.assign.apply(Object,[{}].concat(t));Ou=!1;var r={};return t.forEach(function(o){if(Ko(o)==="object"){var s=Object.keys(o);s.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Ou=!0,r}var cg={};function j5(){}var q5=function(t){var n,r=t,o=j5;return ay&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(Ou){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;cg[a]={global:Array.from(n),component:Yt(Yt({},(c=cg[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:o}};function ug(e,t,n){if(typeof n=="function"){var r;return n(ly(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function G5(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 K(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 K(s)}).join(","),")")}}}var X5=1e3*60*10,U5=function(){function e(){Ai(this,e),Hn(this,"map",new Map),Hn(this,"objectIDMap",new WeakMap),Hn(this,"nextID",0),Hn(this,"lastAccessBeat",new Map),Hn(this,"accessBeat",0)}return Oi(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&&Ko(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Ko(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>X5&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e}(),dg=new U5;function K5(e,t){return N.useMemo(function(){var n=dg.get(t);if(n)return n;var r=e();return dg.set(t,r),r},t)}var Y5=function(){return{}};function T8(e){var t=e.useCSP,n=t===void 0?Y5:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,p,g,h){var b=Array.isArray(m)?m[0]:m;function $(I){return"".concat(String(b)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var y=(h==null?void 0:h.unitless)||{},v=typeof l=="function"?l(m):{},C=Yt(Yt({},v),{},Hn({},$("zIndexPopup"),!0));Object.keys(y).forEach(function(I){C[$(I)]=y[I]});var S=Yt(Yt({},h),{},{unitless:C,prefixToken:$}),x=d(m,p,g,S),w=u(b,g,S);return function(I){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,R=x(I,E),P=w(E);return[R,P]}}function u(m,p,g){var h=g.unitless,b=g.prefixToken,$=g.ignore;return function(y){var v=r(),C=v.cssVar,S=v.realToken;return Lg({path:[m],prefix:C.prefix,key:C.key,unitless:h,ignore:$,token:S,scope:y},function(){var x=ug(m,S,p),w=lg(m,S,x,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return x&&Object.keys(x).forEach(function(I){w[b(I)]=w[I],delete w[I]}),w}),C==null?void 0:C.key}}function d(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(m)?m:[m,m],$=gg(b,1),y=$[0],v=b.join("-"),C=e.layer||{name:"antd"};return function(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,w=r(),I=w.theme,E=w.realToken,R=w.hashId,P=w.token,M=w.cssVar,O=w.zeroRuntime,A=i.useMemo(function(){return O},[]);if(A)return R;var T=o(),F=T.rootPrefixCls,H=T.iconPrefixCls,L=n(),B="css",D=K5(function(){var U=new Set;return Object.keys(h.unitless||{}).forEach(function(j){U.add(Pr(j,M.prefix)),U.add(Pr(j,ag(y,M.prefix)))}),W5(B,U)},[B,y,M==null?void 0:M.prefix]),k=G5(),W=k.max,_=k.min,X={theme:I,token:P,hashId:R,nonce:function(){return L.nonce},clientOnly:h.clientOnly,layer:C,order:h.order||-999};return typeof s=="function"&&Qo(Yt(Yt({},X),{},{clientOnly:!1,path:["Shared",F]}),function(){return s(P,{prefix:{rootPrefixCls:F,iconPrefixCls:H},csp:L})}),Qo(Yt(Yt({},X),{},{path:[v,S,H]}),function(){if(h.injectStyle===!1)return[];var U=q5(P),j=U.token,V=U.flush,G=ug(y,E,g),te=".".concat(S),ee=lg(y,E,G,{deprecatedTokens:h.deprecatedTokens});G&&Ko(G)==="object"&&Object.keys(G).forEach(function(ue){G[ue]="var(".concat(Pr(ue,ag(y,M.prefix)),")")});var ne=ly(j,{componentCls:te,prefixCls:S,iconCls:".".concat(H),antCls:".".concat(F),calc:D,max:W,min:_},G),Y=p(ne,{hashId:R,prefixCls:S,rootPrefixCls:F,iconPrefixCls:H});V(y,ee);var se=typeof a=="function"?a(ne,S,x,h.resetFont):null;return[h.resetStyle===!1?null:se,Y]}),R}}function f(m,p,g){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=d(m,p,g,Yt({resetStyle:!1,order:-998},h)),$=function(v){var C=v.prefixCls,S=v.rootCls,x=S===void 0?C:S;return b(C,x),null};return $}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}export{as as $,iI as A,On as B,An as C,V3 as D,uw as E,eo as F,Zi as G,lT as H,b8 as I,e4 as J,et as K,IS as L,zn as M,Rg as N,n8 as O,Es as P,a8 as Q,m8 as R,$4 as S,Kn as T,Br as U,f8 as V,_6 as W,v8 as X,c8 as Y,qu as Z,M8 as _,l8 as a,yr as a0,Co as a1,Cv as a2,A6 as a3,v3 as a4,dv as a5,y8 as a6,$8 as a7,I4 as a8,mb as a9,Id as aa,x8 as ab,P8 as ac,y6 as ad,o8 as ae,R8 as af,I8 as ag,s6 as ah,E8 as ai,jg as b,ml as c,N8 as d,K as e,K1 as f,T8 as g,us as h,Y1 as i,w8 as j,ta as k,C8 as l,ly as m,S8 as n,g8 as o,h8 as p,Ad as q,un as r,S5 as s,s8 as t,g1 as u,i8 as v,u8 as w,d8 as x,p8 as y,ZN as z};
|