From a145f38606d9d6ad52ac5263329ab8b1dc11335c Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 28 Jun 2026 13:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E9=A2=98=E5=A4=84=E7=90=86=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=97=B6=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=E5=85=B7?= =?UTF-8?q?=E4=BD=93=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/models/user.py | 1 + backend/app/routers/wrong_questions.py | 29 +++- backend/app/schemas/__init__.py | 1 + backend/app/services/migrate.py | 2 + .../{index-CKqFHGFD.js => index-C3DkjkK0.js} | 128 +++++++++--------- frontend/dist/index.html | 2 +- frontend/src/components/WrongQuestionList.tsx | 87 +++++++----- frontend/src/pages/WrongQuestionDetail.tsx | 14 +- frontend/src/types/index.ts | 1 + 9 files changed, 159 insertions(+), 106 deletions(-) rename frontend/dist/assets/{index-CKqFHGFD.js => index-C3DkjkK0.js} (83%) diff --git a/backend/app/models/user.py b/backend/app/models/user.py index 43cfc80..0bc1500 100644 --- a/backend/app/models/user.py +++ b/backend/app/models/user.py @@ -133,6 +133,7 @@ class WrongQuestion(Base): solution_text: Mapped[str | None] = mapped_column(Text, nullable=True) mark_regions_json: Mapped[str | None] = mapped_column(Text, nullable=True) annotated_image_path: Mapped[str | None] = mapped_column(String(512), nullable=True) + error_message: Mapped[str | None] = mapped_column(Text, nullable=True) status: Mapped[WrongQuestionStatus] = mapped_column( Enum(WrongQuestionStatus), default=WrongQuestionStatus.pending ) diff --git a/backend/app/routers/wrong_questions.py b/backend/app/routers/wrong_questions.py index f33f913..9c7caa2 100644 --- a/backend/app/routers/wrong_questions.py +++ b/backend/app/routers/wrong_questions.py @@ -19,6 +19,13 @@ from app.services.student_access import get_student_for_user router = APIRouter(tags=["wrong_questions"]) +def _short_error(exc: BaseException, prefix: str = "") -> str: + msg = str(exc).strip() or type(exc).__name__ + if len(msg) > 500: + msg = msg[:500] + "…" + return f"{prefix}{msg}" if prefix else msg + + def _parse_mark_regions(raw: str | None) -> list[dict] | None: if not raw: return None @@ -43,6 +50,7 @@ def _wq_to_out(wq: WrongQuestion) -> WrongQuestionOut: solution_text=wq.solution_text, mark_regions=_parse_mark_regions(wq.mark_regions_json), has_annotated_image=bool(wq.annotated_image_path), + error_message=wq.error_message, status=wq.status, created_at=wq.created_at, ) @@ -74,6 +82,7 @@ async def _run_ai_pipeline(wq: WrongQuestion, db: Session, ocr_lines: list[dict] wq.solution_approach = approach wq.solution_text = solution_body if approach else solution_full wq.status = WrongQuestionStatus.solved + wq.error_message = None def _process_wrong_question(question_id: uuid.UUID): @@ -88,22 +97,26 @@ def _process_wrong_question(question_id: uuid.UUID): if wq is None: return + wq.error_message = None image_full = Path(settings.UPLOAD_DIR) / wq.image_path try: ocr_result = ocr_service.run_ocr_with_regions(str(image_full)) ocr_text = ocr_result["text"] ocr_lines = ocr_result["lines"] wq.ocr_raw_text = ocr_text or None - wq.status = WrongQuestionStatus.ocr_done if ocr_text else WrongQuestionStatus.failed + if not ocr_text: + wq.status = WrongQuestionStatus.failed + wq.error_message = "OCR 未识别到文字,请拍摄更清晰、光线充足的题目照片" + db.commit() + return + wq.status = WrongQuestionStatus.ocr_done db.commit() - except Exception: + except Exception as exc: wq.status = WrongQuestionStatus.failed + wq.error_message = _short_error(exc, "OCR 识别失败:") db.commit() return - if not ocr_text: - return - import asyncio loop = asyncio.new_event_loop() @@ -111,8 +124,9 @@ def _process_wrong_question(question_id: uuid.UUID): try: loop.run_until_complete(_run_ai_pipeline(wq, db, ocr_lines, ocr_text)) db.commit() - except Exception: - wq.status = WrongQuestionStatus.ocr_done + except Exception as exc: + wq.status = WrongQuestionStatus.failed + wq.error_message = _short_error(exc, "AI 处理失败:") db.commit() finally: loop.close() @@ -293,6 +307,7 @@ def retry_ocr( raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="错题不存在") wq.status = WrongQuestionStatus.pending + wq.error_message = None db.commit() background_tasks.add_task(_process_wrong_question, wq.id) return _wq_to_out(wq) diff --git a/backend/app/schemas/__init__.py b/backend/app/schemas/__init__.py index af73d2f..7b015a7 100644 --- a/backend/app/schemas/__init__.py +++ b/backend/app/schemas/__init__.py @@ -237,6 +237,7 @@ class WrongQuestionOut(BaseModel): solution_text: str | None mark_regions: list[dict] | None = None has_annotated_image: bool = False + error_message: str | None = None status: WrongQuestionStatusEnum created_at: datetime diff --git a/backend/app/services/migrate.py b/backend/app/services/migrate.py index 7a5c027..90a05e5 100644 --- a/backend/app/services/migrate.py +++ b/backend/app/services/migrate.py @@ -75,6 +75,8 @@ def run_migrations() -> None: wq_alters.append("ADD COLUMN mark_regions_json TEXT") if "annotated_image_path" not in wq_columns: wq_alters.append("ADD COLUMN annotated_image_path VARCHAR(512)") + if "error_message" not in wq_columns: + wq_alters.append("ADD COLUMN error_message TEXT") if wq_alters: with engine.begin() as conn: for clause in wq_alters: diff --git a/frontend/dist/assets/index-CKqFHGFD.js b/frontend/dist/assets/index-C3DkjkK0.js similarity index 83% rename from frontend/dist/assets/index-CKqFHGFD.js rename to frontend/dist/assets/index-C3DkjkK0.js index 89a3cd1..d5f8922 100644 --- a/frontend/dist/assets/index-CKqFHGFD.js +++ b/frontend/dist/assets/index-C3DkjkK0.js @@ -172,7 +172,7 @@ html body { ${q(i)} ${q(i)} 0 0 ${n}, ${q(i)} 0 0 0 ${n} inset, 0 ${q(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Mne=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,...so(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${a}`}}}},Nne=e=>({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...so(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...ro},"&-description":{color:e.colorTextDescription}}),Pne=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${q(e.padding)} ${q(i)}`}}},Fne=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Ine=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...io(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Ane(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:jne(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Mne(e),[`${t}-meta`]:Nne(e)},[`${t}-bordered`]:{border:`${q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Pne(e),[`${t}-loading`]:Fne(e),[`${t}-rtl`]:{direction:`rtl`}}},Lne=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Rne=Sc(`Card`,e=>{let t=Go(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ine(t),Lne(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),zne=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return h.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return h.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},h.createElement(`span`,null,e))}))},Bne=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:g,cover:_,actions:v,tabList:y,children:b,activeTabKey:x,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:w,tabProps:T={},classNames:E,styles:D,...O}=e,{getPrefixCls:k,direction:A,className:j,style:M,classNames:N,styles:P}=Ur(`card`),[F]=bm(`card`,f,d),I=ed(p),L={...e,size:I,variant:F},R=jr(M),z=jr(a),[B,V]=Nr([N,E],[P,R,D,z],{props:L}),H=t=>{e.onTabChange?.(t)},U=h.useMemo(()=>rn(b),[b]),W=h.useMemo(()=>U.some(e=>h.isValidElement(e)&&e.type===cg),[U]),G=k(`card`,n),[ee,K]=Rne(G),te=h.createElement(vte,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),ne=x!==void 0,re={...T,[ne?`activeKey`:`defaultActiveKey`]:ne?x:S,tabBarExtraContent:C},ie,ae=I===`small`?I:`large`,oe=y?h.createElement(sg,{size:ae,...re,className:`${G}-head-tabs`,onChange:H,items:y.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||oe){let e=m(`${G}-head`,B.header),t=m(`${G}-head-title`,B.title),n=m(`${G}-extra`,B.extra),r={...s,...V.header};ie=h.createElement(`div`,{className:e,style:r},h.createElement(`div`,{className:`${G}-head-wrapper`},l&&h.createElement(`div`,{className:t,style:V.title},l),o&&h.createElement(`div`,{className:n,style:V.extra},o)),oe)}let se=m(`${G}-cover`,B.cover),ce=_?h.createElement(`div`,{className:se,style:V.cover},_):null,le=m(`${G}-body`,B.body),ue={...c,...V.body},de=u||U.length?h.createElement(`div`,{className:le,style:ue},u?te:b):null,fe=m(`${G}-actions`,B.actions),pe=v?.length?h.createElement(zne,{actionClasses:fe,actionStyle:V.actions,actions:v}):null,me=Wt(O,[`onTabChange`]),he=m(G,j,{[`${G}-loading`]:u,[`${G}-bordered`]:F!==`borderless`,[`${G}-hoverable`]:w,[`${G}-contain-grid`]:W,[`${G}-contain-tabs`]:y?.length,[`${G}-small`]:I===`small`,[`${G}-type-${g}`]:!!g,[`${G}-rtl`]:A===`rtl`},r,i,ee,K,B.root),ge={...V.root};return h.createElement(`div`,{ref:t,...me,className:he,style:ge},ie,ce,de,pe)}),Vne=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Ur(`cardMeta`),_=`${u(`card`,t)}-meta`,v=jr(f),y=jr(o),[b,x]=Nr([p,s],[g,v,c,y],{props:e}),S=m(_,n,d,b.root),C={...x.root},w=m(`${_}-avatar`,b.avatar),T=m(`${_}-title`,b.title),E=m(`${_}-description`,b.description),D=m(`${_}-section`,b.section),O=r?h.createElement(`div`,{className:w,style:x.avatar},r):null,k=i?h.createElement(`div`,{className:T,style:x.title},i):null,A=a?h.createElement(`div`,{className:E,style:x.description},a):null,j=k||A?h.createElement(`div`,{className:D,style:x.section},k,A):null;return h.createElement(`div`,{...l,className:S,style:C},O,j)},lg=Bne;lg.Grid=cg,lg.Meta=Vne;var ug=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],dg=[].concat(ug).reverse(),Hne=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Une=e=>{let t=e,n=[].concat(ug).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r{let[,e]=xc(),t=Hne(Une(e));return h.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);Sr(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];Sr(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},fg=(0,h.createContext)({}),Gne=e=>{let{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`}}}},Kne=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},qne=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Tc(i,`grid`),[,s]=Tc(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},pg=(e,t)=>qne(e,t),Jne=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:{...pg(e,n)}}),Yne=()=>({}),Xne=()=>({}),Zne=Sc(`Grid`,Gne,Yne),mg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Qne=Sc(`Grid`,e=>{let t=Go(e,{gridColumns:24}),n=mg(t);return delete n.xs,[Kne(t),pg(t,``),pg(t,`-xs`),Object.keys(n).map(e=>Jne(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},Xne);function hg(e){return e===`auto`?`1 1 auto`:yr(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var gg=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{gutter:i,wrap:a}=h.useContext(fg),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:g,style:_,...v}=e,y=n(`col`,o),b=n(),[x,S]=Qne(y),[C]=Tc(b,`col`),w={},T={};dg.forEach(t=>{let n={},i=e[t];yr(i)?n.span=i:xr(i)&&(n=i||{}),delete v[t],T={...T,[`${y}-${t}-${n.span}`]:_r(n.span),[`${y}-${t}-order-${n.order}`]:n.order||n.order===0,[`${y}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${y}-${t}-push-${n.push}`]:n.push||n.push===0,[`${y}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${y}-rtl`]:r===`rtl`},n.flex&&(T[`${y}-${t}-flex`]=!0,w[C(`${t}-flex`)]=hg(n.flex))});let E=m(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${l}`]:l,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,T,x,S),D={};return i?.[0]&&(D.paddingInline=yr(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),g&&(D.flex=hg(g),a===!1&&!D.minWidth&&(D.minWidth=0)),h.createElement(`div`,{...v,style:{...D,..._,...w},className:E,ref:t},p)});function _g(e=!0,t={}){let n=(0,h.useRef)(t),[,r]=ud(),i=Wne();return ge(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function $ne(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(xr(e))for(let r=0;r{let[n,r]=h.useState(()=>br(e)?e:``),i=()=>{if(br(e)&&r(e),xr(e))for(let n=0;n{i()},[JSON.stringify(e),t]),n},yg=h.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=h.useContext(Br),p=_g(!0,null),g=vg(i,p),_=vg(r,p),v=d(`row`,n),[y,b]=Zne(v),x=$ne(c,p),S=m(v,{[`${v}-no-wrap`]:l===!1,[`${v}-${_}`]:_,[`${v}-${g}`]:g,[`${v}-rtl`]:f===`rtl`},a,y,b),C={};x?.[0]&&(C.marginInline=yr(x[0])?`${x[0]/-2}px`:`calc(${x[0]} / -2)`);let[w,T]=x;C.rowGap=T;let E=h.useMemo(()=>({gutter:[w,T],wrap:l}),[w,T,l]);return h.createElement(fg.Provider,{value:E},h.createElement(`div`,{...u,className:S,style:{...C,...o},ref:t},s))}),bg=gg,ere=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),rre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),ire=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),are=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),ore=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),xg=l(ere()),sre=l(tre()),cre=l(nre()),lre=l(rre()),ure=l(ire()),dre=l(are()),fre=l(ore());xg.default.extend(fre.default),xg.default.extend(dre.default),xg.default.extend(sre.default),xg.default.extend(cre.default),xg.default.extend(lre.default),xg.default.extend(ure.default),xg.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var pre={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Sg=e=>pre[e]||e.split(`_`)[0],Cg=e=>!xg.default.isDayjs(e)||e instanceof xg.default?e:(0,xg.default)(e.valueOf()),mre={getNow:()=>{let e=(0,xg.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,xg.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Cg(e).endOf(`month`),getWeekDay:e=>{let t=Cg(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Cg(e).year(),getMonth:e=>Cg(e).month(),getDate:e=>Cg(e).date(),getHour:e=>Cg(e).hour(),getMinute:e=>Cg(e).minute(),getSecond:e=>Cg(e).second(),getMillisecond:e=>Cg(e).millisecond(),addYear:(e,t)=>Cg(e).add(t,`year`),addMonth:(e,t)=>Cg(e).add(t,`month`),addDate:(e,t)=>Cg(e).add(t,`day`),setYear:(e,t)=>Cg(e).year(t),setMonth:(e,t)=>Cg(e).month(t),setDate:(e,t)=>Cg(e).date(t),setHour:(e,t)=>Cg(e).hour(t),setMinute:(e,t)=>Cg(e).minute(t),setSecond:(e,t)=>Cg(e).second(t),setMillisecond:(e,t)=>Cg(e).millisecond(t),isAfter:(e,t)=>Cg(e).isAfter(Cg(t)),isValidate:e=>Cg(e).isValid(),locale:{getWeekFirstDay:e=>(0,xg.default)().locale(Sg(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Cg(t).locale(Sg(e)).weekday(0),getWeek:(e,t)=>Cg(t).locale(Sg(e)).week(),getShortWeekDays:e=>(0,xg.default)().locale(Sg(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,xg.default)().locale(Sg(e)).localeData().monthsShort(),format:(e,t,n)=>Cg(t).locale(Sg(e)).format(n),parse:(e,t,n)=>{let r=Sg(e);for(let e=0;eh.createElement(Uu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,{...t}))}var Tg=(e,t,n,r,i)=>wg(a=>{let{prefixCls:o,style:s}=a,c=h.useRef(null),[l,u]=h.useState(0),[d,f]=h.useState(0),[p,m]=ye(!1,a.open),{getPrefixCls:g}=h.useContext(Br),_=g(r||`select`,o);h.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(_)}`:`.${_}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[_]);let v={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(v=n(v)),t&&(v={...v,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return h.createElement(`div`,{ref:c,style:y},h.createElement(e,{...v}))}),hre=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Eg({},e,{ref:t,icon:hre.default})));function _re(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var Dg=h.createContext(null),vre={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Og({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=vre,direction:u,visible:d,onClose:f}){let{prefixCls:p}=h.useContext(Dg),g=`${p}-dropdown`,_=_re(c,u===`rtl`);return h.createElement(hu,{showAction:[],hideAction:[`click`],popupPlacement:_,builtinPlacements:l,prefixCls:g,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:m(n,{[`${g}-range`]:s,[`${g}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function kg(e,t,n=`0`){let r=String(e);for(;r.length{e[t]!==void 0&&(n[t]=e[t])}),n}function Ng(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Pg(e,t,n){let r=n===void 0?t[t.length-1]:n,i=t.find(t=>e[t]);return r===i?void 0:e[i]}function Fg(e){return Mg(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function Ig(e,t,n,r){let i=h.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return h.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function Lg(e,t,n=[]){let[r,i]=h.useState([!1,!1]);return[h.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>jg(n,t,e))}]}function Rg(e,t,n,r,i){let a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function yre(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=Rg(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function zg(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return h.useMemo(()=>yre(e,n,r,i,a,o),[e,n,r,i,a,o])}function Bg(e,t,n){return n??t.some(t=>e.includes(t))}var bre=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function xre(e){let t=Mg(e,bre),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function Sre(e){return e&&typeof e==`string`}function Vg(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Hg(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function Ug(e){let{showTime:t}=e,[n,r]=xre(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=Vg(s,c,l,o);return[s,c,l]=Hg(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function Wg(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Ng(e,i,null),s=[t,n];for(let e=0;eMath.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function qg(e,t,n){return Gg(t,n,()=>e.getYear(t)===e.getYear(n))}function wre(e,t){return Math.floor(e.getMonth(t)/3)+1}function Tre(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&wre(e,t)===wre(e,n))}function Jg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function Yg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&Jg(e,t,n)&&e.getDate(t)===e.getDate(n))}function Ere(e,t,n){return Gg(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function Dre(e,t,n){return Gg(t,n,()=>Yg(e,t,n)&&Ere(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Xg(e,t,n,r){return Gg(n,r,()=>qg(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Zg(e,t,n,r,i){switch(i){case`date`:return Yg(e,n,r);case`week`:return Xg(e,t.locale,n,r);case`month`:return Jg(e,n,r);case`quarter`:return Tre(e,n,r);case`year`:return qg(e,n,r);case`decade`:return Kg(e,n,r);case`time`:return Ere(e,n,r);default:return Dre(e,n,r)}}function Qg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function $g(e,t,n,r,i){return Zg(e,t,n,r,i)?!0:e.isAfter(n,r)}function Ore(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function e_(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function t_(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function kre(e,t,n,r,i){return pe((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Zg(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Zg(e,t,i,a,o.type)))}function Are(e,t,n){return h.useMemo(()=>{let r=Ag(Ng(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function jre(e,t,n){return typeof e[0]==`function`||n?!0:t}function Mre(e,t,n,r){return pe((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function n_(e,t=!1){return h.useMemo(()=>{let n=e&&Ag(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Nre(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:g,format:_,inputReadOnly:v,disabledDate:y,minDate:b,maxDate:x,showTime:S,value:C,defaultValue:w,pickerValue:T,defaultPickerValue:E}=e,D=n_(C),O=n_(w),k=n_(T),A=n_(E),j=i===`date`&&S?`datetime`:i,M=j===`time`||j===`datetime`,N=M||g,P=m??M,[F,I,L,R]=Ug(e),z=zg(r,I),B=h.useMemo(()=>Wg(j,L,R,F,z),[j,L,R,F,z]),V=h.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:z,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:Cre(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=Are(j,z,_),W=jre(H,v,g),G=kre(n,r,y,b,x),ee=Mre(n,i,G,B);return[h.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:G}),[V,P,W,G]),j,N,H,U,ee]}function Pre(e,t,n){let[r,i]=ye(t,e),[,a]=h.useState({}),o=pe(e=>{i(e),a({})}),s=h.useRef(e),c=h.useRef(),l=()=>{nn.cancel(c.current)},u=pe(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=pe((e,t)=>{l(),s.current=e,e||t?u():c.current=nn(u)});return h.useEffect(()=>l,[]),[r,d]}function Fre(e,t,n=[],r){let[i,a]=Pre(n.every(e=>e)?!1:e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Ire(e){let t=h.useRef();return h.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Lre(e,t){return h.useMemo(()=>e||(t?(Rt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function r_(e,t,n=1){let r=h.useRef(t);r.current=t,_e(()=>{if(e)r.current(e);else{let t=nn(()=>{r.current(e)},n);return()=>{nn.cancel(t)}}},[e])}function Rre(e,t=[],n=!1){let[r,i]=h.useState(0),[a,o]=h.useState(!1),s=h.useRef([]),c=h.useRef(null),l=h.useRef(null),u=e=>{c.current=e};return r_(a||n,()=>{a||(s.current=[],u(null))}),h.useEffect(()=>{a&&s.current.push(r)},[a,r]),[a,e=>{o(e)},e=>(e&&(l.current=e),l.current),r,i,n=>{let r=s.current,i=new Set(r.filter(e=>n[e]||t[e])),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},s.current,u,e=>c.current===e]}function zre(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:Pg(e,n)};return o===1&&t[0]&&l&&!Zg(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!Zg(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a?.(s,d)}}function i_(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var a_=[];function Bre(e,t,n,r,i,a,o,s,c=a_,l=a_,u=a_,d,f,p){let m=o===`time`,g=a||0,_=t=>{let r=e.getNow();return m&&(r=t_(e,r)),c[t]||n[t]||r},[v,y]=l,[b,x]=ye(()=>_(0),v),[S,C]=ye(()=>_(1),y),w=h.useMemo(()=>{let t=[b,S][g];return m?t:t_(e,t,u[g])},[m,b,S,g,e,u]),T=(n,i=`panel`)=>{let a=[x,C][g];a(n);let s=[b,S];s[g]=n,d&&(!Zg(e,t,b,s[0],o)||!Zg(e,t,S,s[1],o))&&d(s,{source:i,range:g===1?`end`:`start`,mode:r})},E=(n,r)=>{if(s){let i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!Zg(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return i_(e,o,r,-1)}return r},D=h.useRef(null);return ge(()=>{if(i&&!c[g]){let t=m?null:e.getNow();if(D.current!==null&&D.current!==g?t=[b,S][g^1]:n[g]?t=g===0?n[0]:E(n[0],n[1]):n[g^1]&&(t=n[g^1]),t){f&&e.isAfter(f,t)&&(t=f);let n=s?i_(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?i_(e,o,p,-1):p),T(t,`reset`)}}},[i,g,n[g]]),h.useEffect(()=>{i?D.current=g:D.current=null},[i,g]),ge(()=>{i&&c&&c[g]&&T(c[g],`reset`)},[i,g]),[w,T]}function Vre(e,t){let n=h.useRef(e),[,r]=h.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Hre=[];function Ure(e,t,n){return[r=>r.map(r=>e_(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;at.isAfter(e,n)?1:-1)}function Gre(e){let[t,n]=Vre(e),r=pe(()=>{n(e)});return h.useEffect(()=>{r()},[e]),[t,n]}function Kre(e,t,n,r,i,a,o,s,c){let[l,u]=ye(a,o),d=l||Hre,[f,p]=Gre(d),[m,h]=Ure(e,t,n);return[d,u,f,pe(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Wre(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function qre(e,t,n,r,i,a,o,s,c,l){let{generateConfig:u,locale:d,picker:f,onChange:p,allowEmpty:m,order:g}=e,_=a.some(e=>e)?!1:g,[v,y]=Ure(u,d,o),[b,x]=Vre(t),S=pe(()=>{x(t)});h.useEffect(()=>{S()},[t]);let C=pe(e=>{let r=e===null,o=[...e||b()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t!e);p(r&&e?null:o,e?null:v(o))}}return T}),w=pe((e,t)=>{x(jg(b(),e,r()[e])),t&&C()}),T=!s&&!c;return r_(!T,()=>{T&&(C(),i(t),S())},2),[w,C]}function Jre(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function Yre(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function o_(){return[]}function s_(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:kg(n,a),value:n,disabled:e})}return o}function c_(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=h.useMemo(()=>n||e.getNow(),[n,e]),m=h.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||o_,t.disabledMinutes||d||o_,t.disabledSeconds||f||o_,t.disabledMilliseconds||o_]},[l,u,d,f]),[g,_,v,y]=h.useMemo(()=>m(p),[p,m]),b=h.useCallback((e,t,n,l)=>{let u=s_(0,23,i,c,e());return[r?u.map(e=>({...e,label:kg(e.value%12||12,2)})):u,e=>s_(0,59,a,c,t(e)),(e,t)=>s_(0,59,o,c,n(e,t)),(e,t,n)=>s_(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[x,S,C,w]=h.useMemo(()=>b(g,_,v,y),[b,g,_,v,y]);return[(t,n)=>{let r=()=>x,i=S,a=C,o=w;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=b(e,t,s,c);r=()=>l,i=u,a=d,o=f}return Yre(t,r,i,a,o,e)},x,S,C,w]}function Xre(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:g=`button`,classNames:_,styles:v}=h.useContext(Dg),y=u.getNow(),[b]=c_(u,a,y),x=r?.(t),S=d(y,{type:t}),C=()=>{S||s(b(y))},w=`${f}-now`,T=`${w}-btn`,E=i&&h.createElement(`li`,{className:w},h.createElement(`a`,{className:m(T,S&&`${T}-disabled`),"aria-disabled":S,onClick:C},n===`date`?p.today:p.now)),D=l&&h.createElement(`li`,{className:`${f}-ok`},h.createElement(g,{disabled:c,onClick:o},p.ok)),O=(E||D)&&h.createElement(`ul`,{className:`${f}-ranges`},E,D);return!x&&!O?null:h.createElement(`div`,{className:m(`${f}-footer`,_.popup.footer),style:v.popup.footer},x&&h.createElement(`div`,{className:`${f}-footer-extra`},x),O)}function Zre(e,t,n){function r(r,i){let a=r.findIndex(r=>Zg(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Qre=h.createContext(null),l_=h.createContext(null);function u_(){return h.useContext(l_)}function d_(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y}=e,{classNames:b,styles:x}=h.useContext(Qre),S=r.getNow();return[{now:S,values:f,pickerValue:p,prefixCls:n,classNames:b,styles:x,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y},S]}var f_=h.createContext({});function p_(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:g,styles:_,panelType:v,now:y,disabledDate:b,cellRender:x,onHover:S,hoverValue:C,hoverRangeValue:w,generateConfig:T,values:E,locale:D,onSelect:O}=u_(),k=f||b,A=`${p}-cell`,{onCellDblClick:j}=h.useContext(f_),M=e=>E.some(t=>t&&Zg(T,D,e,t,v)),N=[];for(let e=0;eZg(T,D,f,e,v)),[`${A}-in-range`]:E&&!N&&!P,[`${A}-range-start`]:N,[`${A}-range-end`]:P,[`${p}-cell-selected`]:!w&&v!==`week`&&M(f),...l(f)}),style:_.item,onClick:()=>{b||O(f)},onDoubleClick:()=>{!b&&j&&j()},onMouseEnter:()=>{b||S?.(f)},onMouseLeave:()=>{b||S?.(null)}},x?x(f,{prefixCls:p,originNode:I,today:y,type:v,locale:D}):I))}N.push(h.createElement(`tr`,{key:e,className:o?.(u)},t))}return h.createElement(`div`,{className:m(`${p}-body`,g.body),style:_.body},h.createElement(`table`,{className:m(`${p}-content`,g.content),style:_.content},u&&h.createElement(`thead`,null,h.createElement(`tr`,null,u)),h.createElement(`tbody`,null,N)))}var m_={visibility:`hidden`};function h_(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:g,maxDate:_,generateConfig:v,locale:y,pickerValue:b,panelType:x}=u_(),S=`${s}-header`,{hidePrev:C,hideNext:w,hideHeader:T}=h.useContext(f_),E=h.useMemo(()=>!g||!t||!a?!1:!$g(v,y,a(t(-1,b)),g,x),[g,t,b,a,v,y,x]),D=h.useMemo(()=>!g||!n||!a?!1:!$g(v,y,a(n(-1,b)),g,x),[g,n,b,a,v,y,x]),O=h.useMemo(()=>!_||!t||!i?!1:!$g(v,y,_,i(t(1,b)),x),[_,t,b,i,v,y,x]),k=h.useMemo(()=>!_||!n||!i?!1:!$g(v,y,_,i(n(1,b)),x),[_,n,b,i,v,y,x]),A=e=>{t&&r(t(e,b))},j=e=>{n&&r(n(e,b))};if(T)return null;let M=`${S}-prev-btn`,N=`${S}-next-btn`,P=`${S}-super-prev-btn`,F=`${S}-super-next-btn`;return h.createElement(`div`,{className:m(S,c.header),style:l.header},n&&h.createElement(`button`,{type:`button`,"aria-label":y.previousYear,onClick:()=>j(-1),tabIndex:-1,className:m(P,D&&`${P}-disabled`),disabled:D,style:C?m_:{}},f),t&&h.createElement(`button`,{type:`button`,"aria-label":y.previousMonth,onClick:()=>A(-1),tabIndex:-1,className:m(M,E&&`${M}-disabled`),disabled:E,style:C?m_:{}},u),h.createElement(`div`,{className:`${S}-view`},o),t&&h.createElement(`button`,{type:`button`,"aria-label":y.nextMonth,onClick:()=>A(1),tabIndex:-1,className:m(N,O&&`${N}-disabled`),disabled:O,style:w?m_:{}},d),n&&h.createElement(`button`,{type:`button`,"aria-label":y.nextYear,onClick:()=>j(1),tabIndex:-1,className:m(F,k&&`${F}-disabled`),disabled:k,style:w?m_:{}},p))}function g_(){return g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=l?.(e,{type:`week`});return h.createElement(`td`,{key:`week`,className:m(g,`${g}-week`,{[`${g}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},h.createElement(`div`,{className:`${g}-inner`},i.locale.getWeek(r.locale,e)))}:null,T=[],E=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);w&&T.push(h.createElement(`th`,{key:`empty`},h.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)T.push(h.createElement(`th`,{key:e},E[(e+b)%7]));let D=(e,t)=>i.addDate(e,t),O=e=>e_(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),k=e=>({[`${t}-cell-in-view`]:Jg(i,e,a),[`${t}-cell-today`]:Yg(i,e,y)}),A=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),j=h.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},e_(a,{locale:r,format:r.yearFormat,generateConfig:i})),M=h.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?e_(a,{locale:r,format:r.monthFormat,generateConfig:i}):A[C]),N=r.monthBeforeYear?[M,j]:[j,M];return h.createElement(l_.Provider,{value:v},h.createElement(`div`,{className:m(p,f&&`${p}-show-week`)},h.createElement(h_,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},N),h.createElement(p_,g_({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:D,getCellText:O,getCellClassName:k,prefixColumn:w,cellSelection:!_}))))}var $re=1/3;function eie(e,t){let n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),a=()=>n.current,o=()=>{nn.cancel(r.current),n.current=!1},s=h.useRef();return[pe(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!it(a)){s.current<=5&&(r.current=nn(l));return}let p=t+(f-t)*$re,m=Math.abs(f-p);if(i.current!==null&&i.current[e,t,n].join(`,`)).join(`;`)}function v_(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:g}=u_(),_=`${l}-time-panel`,v=`${l}-time-panel-cell`,y=h.useRef(null),b=h.useRef(),x=()=>{clearTimeout(b.current)},[S,C,w]=eie(y,n??r);ge(()=>(S(),x(),()=>{C(),x()}),[n,r,nie(t)]);let T=e=>{x();let n=e.target;!w()&&c&&(b.current=setTimeout(()=>{let e=y.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=t[i.findIndex(e=>e===o)];s&&!s.disabled&&a(s.value)},tie))},E=`${_}-column`;return h.createElement(`ul`,{className:E,ref:y,"data-type":i,onScroll:T},t.map(({label:e,value:t,disabled:r})=>{let c=h.createElement(`div`,{className:`${v}-inner`},e);return h.createElement(`li`,{key:t,style:g.item,className:m(v,p.item,{[`${v}-selected`]:n===t,[`${v}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function y_(){return y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},pickerValue:_}=u_(),v=u?.[0]||null,{onCellDblClick:y}=h.useContext(f_),[b,x,S,C,w]=c_(d,e,v),T=e=>[v&&d[e](v),_&&d[e](_)],[E,D]=T(`getHour`),[O,k]=T(`getMinute`),[A,j]=T(`getSecond`),[M,N]=T(`getMillisecond`),P=E===null?null:b_(E)?`am`:`pm`,F=h.useMemo(()=>a?b_(E)?x.filter(e=>b_(e.value)):x.filter(e=>!b_(e.value)):x,[E,x,a]),I=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},L=I(x,E),R=h.useMemo(()=>S(L),[S,L]),z=I(R,O),B=h.useMemo(()=>C(L,z),[C,L,z]),V=I(B,A),H=h.useMemo(()=>w(L,z,V),[w,L,z,V]),U=I(H,M),W=h.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?e_(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:x.every(e=>e.disabled||!b_(e.value))},{label:r(n,`PM`),value:`pm`,disabled:x.every(e=>e.disabled||b_(e.value))}]},[x,a,d,f]),G=e=>{p(b(e))},ee=h.useMemo(()=>{let e=v||_||d.getNow(),t=e=>e!=null;return t(E)?(e=d.setHour(e,E),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):t(D)?(e=d.setHour(e,D),e=d.setMinute(e,k),e=d.setSecond(e,j),e=d.setMillisecond(e,N)):t(L)&&(e=d.setHour(e,L),e=d.setMinute(e,z),e=d.setSecond(e,V),e=d.setMillisecond(e,U)),e},[v,_,E,O,A,M,L,z,V,U,D,k,j,N,d]),K=(e,t)=>e===null?null:d[t](ee,e),te=e=>K(e,`setHour`),ne=e=>K(e,`setMinute`),re=e=>K(e,`setSecond`),ie=e=>K(e,`setMillisecond`),ae=e=>e===null?null:e===`am`&&!b_(E)?d.setHour(ee,E-12):e===`pm`&&b_(E)?d.setHour(ee,E+12):ee,oe=e=>{G(te(e))},se=e=>{G(ne(e))},ce=e=>{G(re(e))},le=e=>{G(ie(e))},ue=e=>{G(ae(e))},de=e=>{g(te(e))},fe=e=>{g(ne(e))},pe=e=>{g(re(e))},me=e=>{g(ie(e))},he=e=>{g(ae(e))},ge={onDblClick:y,changeOnScroll:o};return h.createElement(`div`,{className:m(`${s}-content`,c.content),style:l.content},t&&h.createElement(v_,y_({units:F,value:E,optionalValue:D,type:`hour`,onChange:oe,onHover:de},ge)),n&&h.createElement(v_,y_({units:R,value:O,optionalValue:k,type:`minute`,onChange:se,onHover:fe},ge)),r&&h.createElement(v_,y_({units:B,value:A,optionalValue:j,type:`second`,onChange:ce,onHover:pe},ge)),i&&h.createElement(v_,y_({units:H,value:M,optionalValue:N,type:`millisecond`,onChange:le,onHover:me},ge)),a&&h.createElement(v_,y_({units:W,value:P,type:`meridiem`,onChange:ue,onHover:he},ge)))}function iie(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=d_(e,`time`);return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:m(s)},h.createElement(h_,null,n?e_(n,{locale:r,format:o,generateConfig:i}):`\xA0`),h.createElement(rie,a)))}function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;ta?t_(n,e,a):t_(n,e,o);return h.createElement(`div`,{className:c},h.createElement(__,x_({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),h.createElement(iie,e))}function S_(){return S_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),g=e=>{let t=n.cellYearFormat;return`${e_(e,{locale:n,format:t,generateConfig:r})}-${e_(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},_=e=>({[`${t}-cell-in-view`]:Kg(r,e,d)||Kg(r,e,f)||Qg(r,d,f,e)}),v=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,y=`${e_(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${e_(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},y),h.createElement(p_,S_({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:g,getCellClassName:_}))))}function C_(){return C_=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?e_(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),g=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,_=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},_),h.createElement(p_,C_({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t*3),d=e=>e_(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),h.createElement(p_,w_({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t={};if(o){let[r,i]=o,a=Xg(n,s,r,e),l=Xg(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&Qg(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Xg(n,s,e,t))),m(c,{[`${c}-selected`]:!o&&Xg(n,s,i,e)},t)}}))}function E_(){return E_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),g=(e,t)=>r.addYear(e,t),_=e=>e_(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),v=e=>({[`${t}-cell-in-view`]:qg(r,e,f)||qg(r,e,p)||Qg(r,f,p,e)}),y=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,b=h.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},e_(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,e_(p,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},b),h.createElement(p_,E_({},e,{disabledDate:y,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:_,getCellClassName:v}))))}function D_(){return D_=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:P.current}));let[F,I,L,R]=Ug(e),z=zg(i,I),B=x===`date`&&S?`datetime`:x,V=h.useMemo(()=>Wg(B,L,R,F,z),[B,L,R,F,z]),H=a.getNow(),[U,W]=ye(x||`date`,y),G=U===`date`&&V?`datetime`:U,ee=Zre(a,i,B),[K,te]=ye(u,d),ne=h.useMemo(()=>{let e=Ag(K).filter(e=>e);return l?e:e.slice(0,1)},[K,l]),re=pe(e=>{te(e),f&&(e===null||ne.length!==e.length||ne.some((t,n)=>!Zg(a,i,t,e[n],B)))&&f?.(l?e:e[0])}),ie=pe(e=>{p?.(e),U===x&&re(l?ee(ne,e):[e])}),[ae,oe]=ye(g||ne[0]||H,_);h.useEffect(()=>{ne[0]&&!_&&oe(ne[0])},[ne[0]]);let se=(e,t)=>{b?.(e||_,t||U)},ce=(e,t=!1)=>{oe(e),v?.(e),t&&se(e)},le=(e,t)=>{W(e),t&&ce(t),se(t,e)},ue=e=>{if(ie(e),ce(e),U!==x){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[x]||n,i=r[r.indexOf(U)+1];i&&le(i,e)}},de=h.useMemo(()=>{let e,t;return Array.isArray(w)?[e,t]=w:e=w,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[w,a]),fe=Ig(T,E,D),me=O[G]||die[G]||__,he=h.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),ge=h.useContext(f_),_e=h.useMemo(()=>({...ge,hideHeader:k}),[ge,k]),ve=`${N}-panel`,be=Mg(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return h.createElement(Qre.Provider,{value:he},h.createElement(f_.Provider,{value:_e},h.createElement(`div`,{ref:P,tabIndex:c,className:m(ve,{[`${ve}-rtl`]:o===`rtl`})},h.createElement(me,D_({},be,{showTime:V,prefixCls:N,locale:z,generateConfig:a,onModeChange:le,pickerValue:ae,onPickerValueChange:e=>{ce(e,!0)},value:ne[0],onSelect:ue,values:ne,cellRender:fe,hoverRangeValue:de,hoverValue:C})))))}var O_=h.memo(h.forwardRef(fie));function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;ti_(u,t,e,n),[u,t]),f=h.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return s?_.hoverRangeValue=c:_.hoverValue=c,n?h.createElement(`div`,{className:`${l}-panels`},h.createElement(f_.Provider,{value:{...m,hideNext:!0}},h.createElement(O_,_)),h.createElement(f_.Provider,{value:{...m,hidePrev:!0}},h.createElement(O_,k_({},_,{pickerValue:f,onPickerValueChange:p})))):h.createElement(f_.Provider,{value:{...m}},h.createElement(O_,_))}function A_(e){return typeof e==`function`?e():e}function mie(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?h.createElement(`div`,{className:`${t}-presets`},h.createElement(`ul`,null,n.map(({label:e,value:t},n)=>h.createElement(`li`,{key:n,onClick:()=>{r(A_(t))},onMouseEnter:()=>{i(A_(t))},onMouseLeave:()=>{i(null)}},e)))):null}function j_(){return j_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.width&&j(e.width)},[L,R,z]=s,[B,V]=h.useState(0);h.useEffect(()=>{V(10)},[L]),h.useEffect(()=>{if(a&&k.current){let e=O.current?.offsetWidth||0,t=k.current.getBoundingClientRect();if(!t.height||t.right<0){V(e=>Math.max(0,e-1));return}if(F((D?R-e:L)-t.left),A&&Ae)}let U=h.useMemo(()=>H(Ag(_)),[_]),W=r===`time`&&!U.length,G=h.useMemo(()=>W?H([b]):U,[W,U,b]),ee=W?b:U,K=h.useMemo(()=>G.length?G.some(e=>y(e)):!0,[G,y]),te=h.createElement(`div`,{className:`${T}-panel-layout`},h.createElement(mie,{prefixCls:T,presets:c,onClick:u,onHover:l}),h.createElement(`div`,null,h.createElement(pie,j_({},e,{value:ee})),h.createElement(Xre,j_({},e,{showNow:o?!1:i,invalid:K,onSubmit:()=>{W&&v(b),x(),S()}}))));t&&(te=t(te));let ne=`${E}-container`,re=`marginLeft`,ie=`marginRight`,ae=h.createElement(`div`,{onMouseDown:p,tabIndex:-1,className:m(ne,`${T}-${n}-panel-container`,C?.popup?.container),style:{[D?ie:re]:M,[D?re:ie]:`auto`,...w?.popup?.container},onFocus:d,onBlur:f},te);return a&&(ae=h.createElement(`div`,{onMouseDown:p,ref:k,className:m(`${T}-range-wrapper`,`${T}-${r}-range-wrapper`)},h.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),h.createElement(Fl,{onResize:I},ae))),ae}function N_(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:g,onOpenChange:_,onKeyDown:v,onChange:y,activeHelp:b,name:x,autoComplete:S,id:C,value:w,invalid:T,placeholder:E,disabled:D,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=h.useCallback(e=>e_(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=h.useMemo(()=>w.map(N),[w,N]),F=h.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t{function i(e){return n===void 0?e:e[n]}let a={...Yt(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:x,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||b&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);if(t){m(!1,n),y(t,n);return}m(!!e,n)},onHelp:()=>{_(!0,{index:n})},onKeyDown:e=>{let t=!1;if(v?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:_(!1,{index:n});break;case`Enter`:g||_(!0);break}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var hie=[`onMouseEnter`,`onMouseLeave`];function P_(e){return h.useMemo(()=>Mg(e,hie),[e])}function F_(){return F_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}var z_=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],B_=`顧`,gie=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=z_.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>B_.repeat(e.length));let r=RegExp(`(${z_.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=z_.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:g=!1,invalid:_,clearIcon:v,...y}=e,{value:b,onFocus:x,onBlur:S,onMouseUp:C}=e,{prefixCls:w,input:T=`input`,classNames:E,styles:D}=h.useContext(Dg),O=`${w}-input`,[k,A]=h.useState(!1),[j,M]=h.useState(b),[N,P]=h.useState(``),[F,I]=h.useState(null),[L,R]=h.useState(null),z=j||``;h.useEffect(()=>{M(b)},[b]);let B=h.useRef(null),V=h.useRef(null),H=h.useRef(!1);h.useImperativeHandle(t,()=>({nativeElement:B.current,inputElement:V.current,focus:e=>{V.current.focus(e)},blur:()=>{V.current.blur()}}));let U=h.useMemo(()=>new gie(o||``),[o]),[W,G]=h.useMemo(()=>u?[0,0]:U.getSelection(F),[U,F,u]),ee=e=>{e&&e!==o&&e!==b&&d()},K=pe(e=>{s(e)&&c(e),M(e),ee(e)}),te=e=>{if(!o){let t=e.target.value;ee(t),M(t),c(t)}},ne=e=>{if(H.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&K(t)},re=()=>{H.current=!0},ie=e=>{let{selectionStart:t}=e.target;I(U.getMaskCellIndex(t)),R({}),C?.(e),H.current=!1},ae=e=>{A(!0),I(0),P(``),x(e)},oe=e=>{S(e)},se=e=>{A(!1),oe(e)};r_(r,()=>{!r&&!g&&M(b)});let ce=e=>{e.key===`Enter`&&s(z)&&f(),p?.(e)},le=e=>{if(H.current){e.preventDefault();return}ce(e);let{key:t}=e,n=null,r=null,i=G-W,a=o.slice(W,G),s=e=>{I(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,U.size()-1),n})},c=e=>{let[t,n,r]=_ie(a),i=z.slice(W,G),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=N+t,r=n);break}n!==null&&(P(n),n.length>=i&&(s(1),P(``))),r!==null&&K((z.slice(0,W)+kg(r,i)+z.slice(G)).slice(0,o.length)),R({})},ue=h.useRef();ge(()=>{if(!(!k||!o||H.current)){if(!U.match(z)){K(o);return}return V.current.setSelectionRange(W,G),ue.current=nn(()=>{V.current.setSelectionRange(W,G)}),()=>{nn.cancel(ue.current)}}},[U,o,k,z,F,W,G,L,K]);let de=o?{onFocus:ae,onBlur:se,onKeyDown:le,onMouseDown:re,onMouseUp:ie,onPaste:ne}:{};return h.createElement(`div`,{ref:B,className:m(O,{[`${O}-active`]:r&&i,[`${O}-placeholder`]:u},n)},h.createElement(T,V_({ref:V,"aria-invalid":_,autoComplete:`off`},y,{onKeyDown:ce,onBlur:oe},de,{value:z,onChange:te,className:E.input,style:D.input})),h.createElement(I_,{icon:a}),v)});function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),ne=h.useRef(),re=h.useRef(),ie=h.useRef(),ae=e=>[re,ie][e]?.current;h.useImperativeHandle(t,()=>({nativeElement:ne.current,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};ae(t)?.focus(n)}else ae(e??0)?.focus()},blur:()=>{ae(0)?.blur(),ae(1)?.blur()}}));let oe=P_(U),se=h.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[ce]=N_({...e,id:te,placeholder:se}),[le,ue]=h.useState({position:`absolute`,width:0}),de=pe(()=>{let e=ae(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=ne.current.getBoundingClientRect(),r=t.left-n.left;ue(e=>({...e,width:t.width,left:r})),I([t.left,t.right,n.width])}});h.useEffect(()=>{de()},[s]);let fe=i&&(C[0]&&!j[0]||C[1]&&!j[1]),me=V&&!j[0],he=V&&!me&&!j[1];return h.createElement(Fl,{onResize:de},h.createElement(`div`,U_({},oe,{className:m(G,`${G}-range`,{[`${G}-focused`]:u,[`${G}-disabled`]:j.every(e=>e),[`${G}-invalid`]:M.some(e=>e),[`${G}-rtl`]:W},y),style:b,ref:ne,onClick:x,onMouseDown:e=>{let{target:t}=e;t!==re.current.inputElement&&t!==ie.current.inputElement&&e.preventDefault(),R?.(e)}}),r&&h.createElement(`div`,{className:m(`${G}-prefix`,ee.prefix),style:K.prefix},r),h.createElement(H_,U_({ref:re},ce(0),{className:`${G}-input-start`,autoFocus:me,tabIndex:H,"date-range":`start`})),h.createElement(`div`,{className:`${G}-range-separator`},o),h.createElement(H_,U_({ref:ie},ce(1),{className:`${G}-input-end`,autoFocus:he,tabIndex:H,"date-range":`end`})),h.createElement(`div`,{className:`${G}-active-bar`,style:le}),h.createElement(I_,{icon:a}),fe&&h.createElement(R_,{icon:i,onClear:S})))}var yie=h.forwardRef(vie);function W_(e,t){return(0,h.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function G_(){return G_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{disabled:t,allowEmpty:n}=e;return{disabled:K_(t,!1),allowEmpty:K_(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:g,needConfirm:_,onClear:v,onKeyDown:y,disabled:b,allowEmpty:x,disabledDate:S,minDate:C,maxDate:w,defaultOpen:T,open:E,onOpenChange:D,locale:O,generateConfig:k,picker:A,showNow:j,showToday:M,showTime:N,mode:P,onPanelChange:F,onCalendarChange:I,onOk:L,defaultPickerValue:R,pickerValue:z,onPickerValueChange:B,inputReadOnly:V,suffixIcon:H,onFocus:U,onBlur:W,presets:G,ranges:ee,components:K,cellRender:te,dateRender:ne,monthCellRender:re,onClick:ie}=n,ae=Ire(t),[oe,se]=W_(d,u),[ce,le]=Fre(E,T,b,D),ue=(e,t)=>{(b.some(e=>!e)||!e)&&le(e,t)},[de,fe,me,he,_e]=Kre(k,O,a,!0,!1,p,g,I,L),ve=me(),[be,xe,Se,Ce,we,Te,Ee,De,Oe]=Rre(b,x,ce),ke=(e,t)=>{xe(!0),U?.(e,{range:q_(t??Ce)})},Ae=(e,t)=>{xe(!1),W?.(e,{range:q_(t??Ce)})},je=h.useMemo(()=>{if(!N)return null;let{disabledTime:e}=N,t=e?t=>e(t,q_(Ce),{from:Pg(ve,Ee,Ce)}):void 0;return{...N,disabledTime:t}},[N,Ce,ve,Ee]),[Me,Ne]=ye([A,A],P),Pe=Me[Ce]||A,Fe=Pe===`date`&&je?`datetime`:Pe,Ie=Fe===A&&Fe!==`time`,Le=Jre(A,Pe,j,M,!0),[Re,ze]=qre(n,de,fe,me,he,b,a,be,ce,s),Be=zre(ve,b,Ee,k,O,S),[Ve,He]=Lg(ve,s,x),[Ue,We]=Bre(k,O,ve,Me,ce,Ce,r,Ie,R,z,je?.defaultOpenValue,B,C,w),Ge=pe((e,t,n)=>{let r=jg(Me,Ce,t);if((r[0]!==Me[0]||r[1]!==Me[1])&&Ne(r),F&&n!==!1){let t=[...ve];e&&(t[Ce]=e),F(t,r)}}),Ke=(e,t)=>jg(ve,t,e),qe=(e,t)=>{let n=ve;e&&(n=Ke(e,Ce)),De(Ce);let r=Te(n);he(n),Re(Ce,r===null),r===null?ue(!1,{force:!0}):t||ae.current.focus({index:r})},Je=e=>{let t=e.target.getRootNode();if(!ae.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=b.findIndex(e=>!e);e>=0&&ae.current.focus({index:e})}ue(!0),ie?.(e)},Ye=()=>{ze(null),ue(!1,{force:!0}),v?.()},[Xe,Ze]=h.useState(null),[Qe,$e]=h.useState(null),et=h.useMemo(()=>Qe||ve,[ve,Qe]);h.useEffect(()=>{ce||$e(null)},[ce]);let[tt,nt]=h.useState([0,0,0]),rt=(e,t)=>{f===`hover`&&($e(e),Ze(t))},it=Lre(G,ee),at=e=>{rt(e,`preset`)},ot=e=>{ze(e)&&(Se(`preset-click`),ue(!1,{force:!0}))},st=e=>{qe(e)},ct=e=>{rt(e?Ke(e,Ce):null,`cell`)},lt=e=>{ue(!0),ke(e)},ut=()=>{Se(`panel`)},dt=e=>{he(jg(ve,Ce,e)),!_&&!i&&r===Fe&&qe(e)},ft=()=>{ue(!1)},pt=Ig(te,ne,re,q_(Ce)),mt=ve[Ce]||null,ht=pe(e=>s(e,{activeIndex:Ce})),gt=h.useMemo(()=>{let e=Yt(n,!1);return Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),_t=h.createElement(M_,G_({},gt,{showNow:Le,showTime:je,range:!0,multiplePanel:Ie,activeInfo:tt,disabledDate:Be,onFocus:lt,onBlur:Ae,onPanelMouseDown:ut,picker:A,mode:Pe,internalMode:Fe,onPanelChange:Ge,format:o,value:mt,isInvalid:ht,onChange:null,onSelect:dt,pickerValue:Ue,defaultOpenValue:Ag(N?.defaultOpenValue)[Ce],onPickerValueChange:We,hoverValue:et,onHover:ct,needConfirm:_,onSubmit:qe,onOk:_e,presets:it,onPresetHover:at,onPresetSubmit:ot,onNow:st,cellRender:pt,classNames:oe,styles:se})),vt=(e,t)=>{he(Ke(e,t))},yt=()=>{Se(`input`)},bt=(e,t)=>{let n=Ee.length,r=Ee[n-1];if(n&&r!==t&&_&&!x[r]&&!Oe(r)&&ve[r]){ae.current.focus({index:r});return}Se(`input`),ue(!0,{inherit:!0}),Ce!==t&&ce&&!_&&i&&qe(null,!0),we(t),ke(e,t)},xt=(e,t)=>{ue(!1),!_&&Se()===`input`&&Re(Ce,Te(ve)===null),Ae(e,t)},St=(e,t)=>{e.key===`Tab`&&qe(null,!0),y?.(e,t)},Ct=h.useMemo(()=>({prefixCls:c,locale:O,generateConfig:k,button:K.button,input:K.input,classNames:oe,styles:se}),[c,O,k,K.button,K.input,oe,se]);return ge(()=>{ce&&Ce!==void 0&&Ge(null,A,!1)},[ce,Ce,A]),ge(()=>{let e=Se();!ce&&e===`input`&&(ue(!1),qe(null,!0)),!ce&&i&&!_&&e===`panel`&&(ue(!0),qe())},[ce]),h.createElement(Dg.Provider,{value:Ct},h.createElement(Og,G_({},Fg(n),{popupElement:_t,popupStyle:se.popup.root,popupClassName:m(l,oe.popup.root),visible:ce,onClose:ft,range:!0}),h.createElement(yie,G_({},n,{ref:ae,className:m(n.className,l,oe.root),style:{...se.root,...n.style},suffixIcon:H,activeIndex:be||ce?Ce:null,activeHelp:!!Qe,allHelp:!!Qe&&Xe===`preset`,focused:be,onFocus:bt,onBlur:xt,onKeyDown:St,onSubmit:qe,value:et,maskFormat:o,onChange:vt,onInputChange:yt,format:a,inputReadOnly:V,disabled:b,open:ce,onOpenChange:ue,onClick:Je,onClear:Ye,invalid:Ve,onInvalid:He,onActiveInfo:nt}))))}var xie=h.forwardRef(bie);function Sie(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return h.createElement(`span`,{className:m(`${d}-item`),title:typeof e==`string`?e:null},h.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&h.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function g(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function _(e){return p(`+ ${e.length} ...`)}return h.createElement(`div`,{className:u},h.createElement(th,{prefixCls:f,data:n,renderItem:g,renderRest:_,itemKey:e=>a(e),maxCount:s}),!n.length&&h.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function J_(){return J_=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:re.current,focus:e=>{ie.current?.focus(e)},blur:()=>{ie.current?.blur()}}));let ae=P_(G),oe=e=>{w([e])},se=e=>{w(C.filter(t=>t&&!Zg(g,p,t,e,S))),r||T()},[ce,le]=N_({...e,onChange:oe},({valueTexts:e})=>({value:e[0]||``,active:l})),ue=!!(a&&C.length&&!P),de=D?h.createElement(h.Fragment,null,h.createElement(Sie,{prefixCls:K,value:C,onRemove:se,formatDate:le,maxTagCount:O,tagRender:k,disabled:P,removeIcon:W,placeholder:_}),h.createElement(`input`,{className:`${K}-multiple-input`,value:C.map(le).join(`,`),ref:ie,readOnly:!0,autoFocus:H,tabIndex:U}),h.createElement(I_,{icon:o}),ue&&h.createElement(R_,{icon:a,onClear:x})):h.createElement(H_,J_({ref:ie},ce(),{autoFocus:H,tabIndex:U,suffixIcon:o,clearIcon:ue&&h.createElement(R_,{icon:a,onClear:x}),showActiveCls:!1}));return h.createElement(`div`,J_({},ae,{className:m(K,{[`${K}-multiple`]:D,[`${K}-focused`]:l,[`${K}-disabled`]:P,[`${K}-invalid`]:F,[`${K}-rtl`]:ee},v),style:y,ref:re,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==ie.current?.inputElement&&e.preventDefault(),z?.(e)}}),i&&h.createElement(`div`,{className:m(`${K}-prefix`,te.prefix),style:ne.prefix},i),de)}var wie=h.forwardRef(Cie);function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(L){let r={...n};delete r.range,L(le(e),le(t),r)}},e=>{R?.(le(e))}),Ce=be(),[we,Te,Ee,De]=Rre([S]),Oe=e=>{Te(!0),K?.(e,{})},ke=e=>{Te(!1),te?.(e,{})},[Ae,je]=ye(j,F),Me=Ae===`date`&&P?`datetime`:Ae,Ne=Jre(j,Ae,M,N),Pe=y&&((e,t)=>{y(le(e),le(t))}),[,Fe]=qre({...n,onChange:Pe},_e,ve,be,xe,[],a,we,me,s),[Ie,Le]=Lg(Ce,s),Re=h.useMemo(()=>Ie.some(e=>e),[Ie]),[ze,Be]=Bre(A,k,Ce,[Ae],me,De,r,!1,B,V,Ag(P?.defaultOpenValue),(e,t)=>{if(H){let n={...t,mode:t.mode[0]};delete n.range,H(e[0],n)}},w,T),Ve=pe((e,t,n)=>{je(t),I&&n!==!1&&I(e||Ce[Ce.length-1],t)}),He=()=>{Fe(be()),he(!1,{force:!0})},Ue=e=>{!S&&!ce.current.nativeElement.contains(document.activeElement)&&ce.current.focus(),he(!0),se?.(e)},We=()=>{Fe(null),he(!1,{force:!0}),ce.current.focus(),b?.()},[Ge,Ke]=h.useState(null),[qe,Je]=h.useState(null),Ye=h.useMemo(()=>{let e=[qe,...Ce].filter(e=>e);return z?e:e.slice(0,1)},[Ce,qe,z]),Xe=h.useMemo(()=>!z&&qe?[qe]:Ce.filter(e=>e),[Ce,qe,z]);h.useEffect(()=>{me||Je(null)},[me]);let Ze=(e,t)=>{f===`hover`&&(Je(e),Ke(t))},Qe=Lre(ne),$e=e=>{Ze(e,`preset`)},et=e=>{Fe(z?ue(be(),e):[e])&&!z&&he(!1,{force:!0})},tt=e=>{et(e)},nt=e=>{Ze(e,`cell`)},rt=e=>{he(!0),Oe(e)},it=e=>{Ee(`panel`),!(z&&Me!==j)&&(xe(z?ue(be(),e):[e]),!v&&!i&&r===Me&&He())},at=()=>{he(!1)},ot=Ig(ie,ae,oe),st=h.useMemo(()=>{let e=Yt(n,!1);return{...Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),ct=h.createElement(M_,Y_({},st,{showNow:Ne,showTime:P,disabledDate:C,onFocus:rt,onBlur:ke,picker:j,mode:Ae,internalMode:Me,onPanelChange:Ve,format:o,value:Ce,isInvalid:s,onChange:null,onSelect:it,pickerValue:ze,defaultOpenValue:P?.defaultOpenValue,onPickerValueChange:Be,hoverValue:Ye,onHover:nt,needConfirm:v,onSubmit:He,onOk:Se,presets:Qe,onPresetHover:$e,onPresetSubmit:et,onNow:tt,cellRender:ot,classNames:de,styles:fe})),lt=e=>{xe(e)},ut=()=>{Ee(`input`)},dt=e=>{Ee(`input`),he(!0,{inherit:!0}),Oe(e)},ft=e=>{he(!1),ke(e)},pt=(e,t)=>{e.key===`Tab`&&He(),x?.(e,t)},mt=h.useMemo(()=>({prefixCls:c,locale:k,generateConfig:A,button:re.button,input:re.input,classNames:de,styles:fe}),[c,k,A,re.button,re.input,de,fe]);return ge(()=>{me&&De!==void 0&&Ve(null,j,!1)},[me,De,j]),ge(()=>{let e=Ee();!me&&e===`input`&&(he(!1),He()),!me&&i&&!v&&e===`panel`&&He()},[me]),h.createElement(Dg.Provider,{value:mt},h.createElement(Og,Y_({},Fg(n),{popupElement:ct,popupStyle:fe.popup.root,popupClassName:m(l,de.popup.root),visible:me,onClose:at}),h.createElement(wie,Y_({},n,{ref:ce,className:m(n.className,l,de.root),style:{...fe.root,...n.style},suffixIcon:W,removeIcon:G,tagRender:ee,activeHelp:!!qe,allHelp:!!qe&&Ge===`preset`,focused:we,onFocus:dt,onBlur:ft,onKeyDown:pt,onSubmit:He,value:Xe,maskFormat:o,onChange:lt,onInputChange:ut,internalPicker:r,format:a,inputReadOnly:U,disabled:S,open:me,onOpenChange:he,onClick:Ue,onClear:We,invalid:Re,onInvalid:e=>{Le(e,0)}}))))}var Eie=h.forwardRef(Tie),X_=e=>{let{space:t,form:n,children:r}=e;if(!vr(r))return null;let i=r;return n&&(i=h.createElement(vm,{override:!0,status:!0},i)),t&&(i=h.createElement(kd,null,i)),i},Z_=(e,t,n)=>m({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Q_=(e,t)=>t||e,$_=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=Ur(e),[c,l]=Nr([o,t],[s,n],{props:a},{popup:{_default:`root`}});return h.useMemo(()=>[{...c,popup:{...c.popup,root:m(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])};function ev(e){return Go(e,{inputAffixPadding:e.paddingXXS})}var tv=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},Die=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),nv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...Die(Go(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),rv=(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}}),iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...rv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),av=(e,t)=>({"&-outlined":{...rv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...nv(e)},...iv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...iv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),ov=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Oie=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...ov(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...ov(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...nv(e)}}}}),sv=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,cv=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),lv=(e,t)=>({"&, & input, & textarea":{color:t.color},[sv]:cv(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),uv=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[sv]:cv(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:lv(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:lv(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},dv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...dv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),pv=(e,t)=>({"&-filled":{...dv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...nv(e)},...fv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...fv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),mv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),kie=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...mv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...mv(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),hv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${q(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}}),gv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...hv(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`}}),_v=(e,t)=>({"&-underlined":{...hv(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`},...gv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...gv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),vv=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),yv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${q(t)} ${q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bv=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),xv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${q(e.paddingBlock)} ${q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...vv(e.colorTextPlaceholder),"&-lg":{...yv(e),...t.largeStyle},"&-sm":{...bv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),Aie=e=>{let{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`]:{...yv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...bv(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 ${q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${q(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`,...so(),[`${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},[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Mne=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,...so(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${a}`}}}},Nne=e=>({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...so(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...ro},"&-description":{color:e.colorTextDescription}}),Pne=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${q(e.padding)} ${q(i)}`}}},Fne=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Ine=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...io(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Ane(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:jne(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Mne(e),[`${t}-meta`]:Nne(e)},[`${t}-bordered`]:{border:`${q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Pne(e),[`${t}-loading`]:Fne(e),[`${t}-rtl`]:{direction:`rtl`}}},Lne=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Rne=Sc(`Card`,e=>{let t=Go(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ine(t),Lne(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),zne=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return h.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return h.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},h.createElement(`span`,null,e))}))},Bne=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:g,cover:_,actions:v,tabList:y,children:b,activeTabKey:x,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:w,tabProps:T={},classNames:E,styles:D,...O}=e,{getPrefixCls:k,direction:A,className:j,style:M,classNames:N,styles:P}=Ur(`card`),[F]=bm(`card`,f,d),I=ed(p),L={...e,size:I,variant:F},R=jr(M),z=jr(a),[B,V]=Nr([N,E],[P,R,D,z],{props:L}),H=t=>{e.onTabChange?.(t)},U=h.useMemo(()=>rn(b),[b]),W=h.useMemo(()=>U.some(e=>h.isValidElement(e)&&e.type===cg),[U]),G=k(`card`,n),[ee,K]=Rne(G),te=h.createElement(vte,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),ne=x!==void 0,re={...T,[ne?`activeKey`:`defaultActiveKey`]:ne?x:S,tabBarExtraContent:C},ie,ae=I===`small`?I:`large`,oe=y?h.createElement(sg,{size:ae,...re,className:`${G}-head-tabs`,onChange:H,items:y.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||oe){let e=m(`${G}-head`,B.header),t=m(`${G}-head-title`,B.title),n=m(`${G}-extra`,B.extra),r={...s,...V.header};ie=h.createElement(`div`,{className:e,style:r},h.createElement(`div`,{className:`${G}-head-wrapper`},l&&h.createElement(`div`,{className:t,style:V.title},l),o&&h.createElement(`div`,{className:n,style:V.extra},o)),oe)}let se=m(`${G}-cover`,B.cover),ce=_?h.createElement(`div`,{className:se,style:V.cover},_):null,le=m(`${G}-body`,B.body),ue={...c,...V.body},de=u||U.length?h.createElement(`div`,{className:le,style:ue},u?te:b):null,fe=m(`${G}-actions`,B.actions),pe=v?.length?h.createElement(zne,{actionClasses:fe,actionStyle:V.actions,actions:v}):null,me=Wt(O,[`onTabChange`]),he=m(G,j,{[`${G}-loading`]:u,[`${G}-bordered`]:F!==`borderless`,[`${G}-hoverable`]:w,[`${G}-contain-grid`]:W,[`${G}-contain-tabs`]:y?.length,[`${G}-small`]:I===`small`,[`${G}-type-${g}`]:!!g,[`${G}-rtl`]:A===`rtl`},r,i,ee,K,B.root),ge={...V.root};return h.createElement(`div`,{ref:t,...me,className:he,style:ge},ie,ce,de,pe)}),Vne=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Ur(`cardMeta`),_=`${u(`card`,t)}-meta`,v=jr(f),y=jr(o),[b,x]=Nr([p,s],[g,v,c,y],{props:e}),S=m(_,n,d,b.root),C={...x.root},w=m(`${_}-avatar`,b.avatar),T=m(`${_}-title`,b.title),E=m(`${_}-description`,b.description),D=m(`${_}-section`,b.section),O=r?h.createElement(`div`,{className:w,style:x.avatar},r):null,k=i?h.createElement(`div`,{className:T,style:x.title},i):null,A=a?h.createElement(`div`,{className:E,style:x.description},a):null,j=k||A?h.createElement(`div`,{className:D,style:x.section},k,A):null;return h.createElement(`div`,{...l,className:S,style:C},O,j)},lg=Bne;lg.Grid=cg,lg.Meta=Vne;var ug=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],dg=[].concat(ug).reverse(),Hne=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Une=e=>{let t=e,n=[].concat(ug).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r{let[,e]=xc(),t=Hne(Une(e));return h.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);Sr(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];Sr(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},fg=(0,h.createContext)({}),Gne=e=>{let{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`}}}},Kne=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},qne=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Tc(i,`grid`),[,s]=Tc(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},pg=(e,t)=>qne(e,t),Jne=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:{...pg(e,n)}}),Yne=()=>({}),Xne=()=>({}),Zne=Sc(`Grid`,Gne,Yne),mg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Qne=Sc(`Grid`,e=>{let t=Go(e,{gridColumns:24}),n=mg(t);return delete n.xs,[Kne(t),pg(t,``),pg(t,`-xs`),Object.keys(n).map(e=>Jne(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},Xne);function hg(e){return e===`auto`?`1 1 auto`:yr(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var gg=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{gutter:i,wrap:a}=h.useContext(fg),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:g,style:_,...v}=e,y=n(`col`,o),b=n(),[x,S]=Qne(y),[C]=Tc(b,`col`),w={},T={};dg.forEach(t=>{let n={},i=e[t];yr(i)?n.span=i:xr(i)&&(n=i||{}),delete v[t],T={...T,[`${y}-${t}-${n.span}`]:_r(n.span),[`${y}-${t}-order-${n.order}`]:n.order||n.order===0,[`${y}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${y}-${t}-push-${n.push}`]:n.push||n.push===0,[`${y}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${y}-rtl`]:r===`rtl`},n.flex&&(T[`${y}-${t}-flex`]=!0,w[C(`${t}-flex`)]=hg(n.flex))});let E=m(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${l}`]:l,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,T,x,S),D={};return i?.[0]&&(D.paddingInline=yr(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),g&&(D.flex=hg(g),a===!1&&!D.minWidth&&(D.minWidth=0)),h.createElement(`div`,{...v,style:{...D,..._,...w},className:E,ref:t},p)});function _g(e=!0,t={}){let n=(0,h.useRef)(t),[,r]=ud(),i=Wne();return ge(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function $ne(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(xr(e))for(let r=0;r{let[n,r]=h.useState(()=>br(e)?e:``),i=()=>{if(br(e)&&r(e),xr(e))for(let n=0;n{i()},[JSON.stringify(e),t]),n},yg=h.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=h.useContext(Br),p=_g(!0,null),g=vg(i,p),_=vg(r,p),v=d(`row`,n),[y,b]=Zne(v),x=$ne(c,p),S=m(v,{[`${v}-no-wrap`]:l===!1,[`${v}-${_}`]:_,[`${v}-${g}`]:g,[`${v}-rtl`]:f===`rtl`},a,y,b),C={};x?.[0]&&(C.marginInline=yr(x[0])?`${x[0]/-2}px`:`calc(${x[0]} / -2)`);let[w,T]=x;C.rowGap=T;let E=h.useMemo(()=>({gutter:[w,T],wrap:l}),[w,T,l]);return h.createElement(fg.Provider,{value:E},h.createElement(`div`,{...u,className:S,style:{...C,...o},ref:t},s))}),bg=gg,ere=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),rre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),ire=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),are=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),ore=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),xg=l(ere()),sre=l(tre()),cre=l(nre()),lre=l(rre()),ure=l(ire()),dre=l(are()),fre=l(ore());xg.default.extend(fre.default),xg.default.extend(dre.default),xg.default.extend(sre.default),xg.default.extend(cre.default),xg.default.extend(lre.default),xg.default.extend(ure.default),xg.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var pre={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Sg=e=>pre[e]||e.split(`_`)[0],Cg=e=>!xg.default.isDayjs(e)||e instanceof xg.default?e:(0,xg.default)(e.valueOf()),mre={getNow:()=>{let e=(0,xg.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,xg.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Cg(e).endOf(`month`),getWeekDay:e=>{let t=Cg(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Cg(e).year(),getMonth:e=>Cg(e).month(),getDate:e=>Cg(e).date(),getHour:e=>Cg(e).hour(),getMinute:e=>Cg(e).minute(),getSecond:e=>Cg(e).second(),getMillisecond:e=>Cg(e).millisecond(),addYear:(e,t)=>Cg(e).add(t,`year`),addMonth:(e,t)=>Cg(e).add(t,`month`),addDate:(e,t)=>Cg(e).add(t,`day`),setYear:(e,t)=>Cg(e).year(t),setMonth:(e,t)=>Cg(e).month(t),setDate:(e,t)=>Cg(e).date(t),setHour:(e,t)=>Cg(e).hour(t),setMinute:(e,t)=>Cg(e).minute(t),setSecond:(e,t)=>Cg(e).second(t),setMillisecond:(e,t)=>Cg(e).millisecond(t),isAfter:(e,t)=>Cg(e).isAfter(Cg(t)),isValidate:e=>Cg(e).isValid(),locale:{getWeekFirstDay:e=>(0,xg.default)().locale(Sg(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Cg(t).locale(Sg(e)).weekday(0),getWeek:(e,t)=>Cg(t).locale(Sg(e)).week(),getShortWeekDays:e=>(0,xg.default)().locale(Sg(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,xg.default)().locale(Sg(e)).localeData().monthsShort(),format:(e,t,n)=>Cg(t).locale(Sg(e)).format(n),parse:(e,t,n)=>{let r=Sg(e);for(let e=0;eh.createElement(Uu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,{...t}))}var Tg=(e,t,n,r,i)=>wg(a=>{let{prefixCls:o,style:s}=a,c=h.useRef(null),[l,u]=h.useState(0),[d,f]=h.useState(0),[p,m]=ye(!1,a.open),{getPrefixCls:g}=h.useContext(Br),_=g(r||`select`,o);h.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(_)}`:`.${_}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[_]);let v={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(v=n(v)),t&&(v={...v,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return h.createElement(`div`,{ref:c,style:y},h.createElement(e,{...v}))}),hre=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Eg({},e,{ref:t,icon:hre.default})));function _re(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var Dg=h.createContext(null),vre={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Og({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=vre,direction:u,visible:d,onClose:f}){let{prefixCls:p}=h.useContext(Dg),g=`${p}-dropdown`,_=_re(c,u===`rtl`);return h.createElement(hu,{showAction:[],hideAction:[`click`],popupPlacement:_,builtinPlacements:l,prefixCls:g,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:m(n,{[`${g}-range`]:s,[`${g}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function kg(e,t,n=`0`){let r=String(e);for(;r.length{e[t]!==void 0&&(n[t]=e[t])}),n}function Ng(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Pg(e,t,n){let r=n===void 0?t[t.length-1]:n,i=t.find(t=>e[t]);return r===i?void 0:e[i]}function Fg(e){return Mg(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function Ig(e,t,n,r){let i=h.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return h.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function Lg(e,t,n=[]){let[r,i]=h.useState([!1,!1]);return[h.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>jg(n,t,e))}]}function Rg(e,t,n,r,i){let a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function yre(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=Rg(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function zg(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return h.useMemo(()=>yre(e,n,r,i,a,o),[e,n,r,i,a,o])}function Bg(e,t,n){return n??t.some(t=>e.includes(t))}var bre=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function xre(e){let t=Mg(e,bre),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function Sre(e){return e&&typeof e==`string`}function Vg(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Hg(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function Ug(e){let{showTime:t}=e,[n,r]=xre(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=Vg(s,c,l,o);return[s,c,l]=Hg(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function Wg(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Ng(e,i,null),s=[t,n];for(let e=0;eMath.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function qg(e,t,n){return Gg(t,n,()=>e.getYear(t)===e.getYear(n))}function wre(e,t){return Math.floor(e.getMonth(t)/3)+1}function Tre(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&wre(e,t)===wre(e,n))}function Jg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function Yg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&Jg(e,t,n)&&e.getDate(t)===e.getDate(n))}function Ere(e,t,n){return Gg(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function Dre(e,t,n){return Gg(t,n,()=>Yg(e,t,n)&&Ere(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Xg(e,t,n,r){return Gg(n,r,()=>qg(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Zg(e,t,n,r,i){switch(i){case`date`:return Yg(e,n,r);case`week`:return Xg(e,t.locale,n,r);case`month`:return Jg(e,n,r);case`quarter`:return Tre(e,n,r);case`year`:return qg(e,n,r);case`decade`:return Kg(e,n,r);case`time`:return Ere(e,n,r);default:return Dre(e,n,r)}}function Qg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function $g(e,t,n,r,i){return Zg(e,t,n,r,i)?!0:e.isAfter(n,r)}function Ore(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function e_(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function t_(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function kre(e,t,n,r,i){return pe((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Zg(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Zg(e,t,i,a,o.type)))}function Are(e,t,n){return h.useMemo(()=>{let r=Ag(Ng(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function jre(e,t,n){return typeof e[0]==`function`||n?!0:t}function Mre(e,t,n,r){return pe((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function n_(e,t=!1){return h.useMemo(()=>{let n=e&&Ag(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Nre(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:g,format:_,inputReadOnly:v,disabledDate:y,minDate:b,maxDate:x,showTime:S,value:C,defaultValue:w,pickerValue:T,defaultPickerValue:E}=e,D=n_(C),O=n_(w),k=n_(T),A=n_(E),j=i===`date`&&S?`datetime`:i,M=j===`time`||j===`datetime`,N=M||g,P=m??M,[F,I,L,R]=Ug(e),z=zg(r,I),B=h.useMemo(()=>Wg(j,L,R,F,z),[j,L,R,F,z]),V=h.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:z,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:Cre(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=Are(j,z,_),W=jre(H,v,g),G=kre(n,r,y,b,x),ee=Mre(n,i,G,B);return[h.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:G}),[V,P,W,G]),j,N,H,U,ee]}function Pre(e,t,n){let[r,i]=ye(t,e),[,a]=h.useState({}),o=pe(e=>{i(e),a({})}),s=h.useRef(e),c=h.useRef(),l=()=>{nn.cancel(c.current)},u=pe(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=pe((e,t)=>{l(),s.current=e,e||t?u():c.current=nn(u)});return h.useEffect(()=>l,[]),[r,d]}function Fre(e,t,n=[],r){let[i,a]=Pre(n.every(e=>e)?!1:e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Ire(e){let t=h.useRef();return h.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Lre(e,t){return h.useMemo(()=>e||(t?(Rt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function r_(e,t,n=1){let r=h.useRef(t);r.current=t,_e(()=>{if(e)r.current(e);else{let t=nn(()=>{r.current(e)},n);return()=>{nn.cancel(t)}}},[e])}function Rre(e,t=[],n=!1){let[r,i]=h.useState(0),[a,o]=h.useState(!1),s=h.useRef([]),c=h.useRef(null),l=h.useRef(null),u=e=>{c.current=e};return r_(a||n,()=>{a||(s.current=[],u(null))}),h.useEffect(()=>{a&&s.current.push(r)},[a,r]),[a,e=>{o(e)},e=>(e&&(l.current=e),l.current),r,i,n=>{let r=s.current,i=new Set(r.filter(e=>n[e]||t[e])),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},s.current,u,e=>c.current===e]}function zre(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:Pg(e,n)};return o===1&&t[0]&&l&&!Zg(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!Zg(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a?.(s,d)}}function i_(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var a_=[];function Bre(e,t,n,r,i,a,o,s,c=a_,l=a_,u=a_,d,f,p){let m=o===`time`,g=a||0,_=t=>{let r=e.getNow();return m&&(r=t_(e,r)),c[t]||n[t]||r},[v,y]=l,[b,x]=ye(()=>_(0),v),[S,C]=ye(()=>_(1),y),w=h.useMemo(()=>{let t=[b,S][g];return m?t:t_(e,t,u[g])},[m,b,S,g,e,u]),T=(n,i=`panel`)=>{let a=[x,C][g];a(n);let s=[b,S];s[g]=n,d&&(!Zg(e,t,b,s[0],o)||!Zg(e,t,S,s[1],o))&&d(s,{source:i,range:g===1?`end`:`start`,mode:r})},E=(n,r)=>{if(s){let i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!Zg(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return i_(e,o,r,-1)}return r},D=h.useRef(null);return ge(()=>{if(i&&!c[g]){let t=m?null:e.getNow();if(D.current!==null&&D.current!==g?t=[b,S][g^1]:n[g]?t=g===0?n[0]:E(n[0],n[1]):n[g^1]&&(t=n[g^1]),t){f&&e.isAfter(f,t)&&(t=f);let n=s?i_(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?i_(e,o,p,-1):p),T(t,`reset`)}}},[i,g,n[g]]),h.useEffect(()=>{i?D.current=g:D.current=null},[i,g]),ge(()=>{i&&c&&c[g]&&T(c[g],`reset`)},[i,g]),[w,T]}function Vre(e,t){let n=h.useRef(e),[,r]=h.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Hre=[];function Ure(e,t,n){return[r=>r.map(r=>e_(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;at.isAfter(e,n)?1:-1)}function Gre(e){let[t,n]=Vre(e),r=pe(()=>{n(e)});return h.useEffect(()=>{r()},[e]),[t,n]}function Kre(e,t,n,r,i,a,o,s,c){let[l,u]=ye(a,o),d=l||Hre,[f,p]=Gre(d),[m,h]=Ure(e,t,n);return[d,u,f,pe(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Wre(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function qre(e,t,n,r,i,a,o,s,c,l){let{generateConfig:u,locale:d,picker:f,onChange:p,allowEmpty:m,order:g}=e,_=a.some(e=>e)?!1:g,[v,y]=Ure(u,d,o),[b,x]=Vre(t),S=pe(()=>{x(t)});h.useEffect(()=>{S()},[t]);let C=pe(e=>{let r=e===null,o=[...e||b()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t!e);p(r&&e?null:o,e?null:v(o))}}return T}),w=pe((e,t)=>{x(jg(b(),e,r()[e])),t&&C()}),T=!s&&!c;return r_(!T,()=>{T&&(C(),i(t),S())},2),[w,C]}function Jre(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function Yre(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function o_(){return[]}function s_(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:kg(n,a),value:n,disabled:e})}return o}function c_(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=h.useMemo(()=>n||e.getNow(),[n,e]),m=h.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||o_,t.disabledMinutes||d||o_,t.disabledSeconds||f||o_,t.disabledMilliseconds||o_]},[l,u,d,f]),[g,_,v,y]=h.useMemo(()=>m(p),[p,m]),b=h.useCallback((e,t,n,l)=>{let u=s_(0,23,i,c,e());return[r?u.map(e=>({...e,label:kg(e.value%12||12,2)})):u,e=>s_(0,59,a,c,t(e)),(e,t)=>s_(0,59,o,c,n(e,t)),(e,t,n)=>s_(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[x,S,C,w]=h.useMemo(()=>b(g,_,v,y),[b,g,_,v,y]);return[(t,n)=>{let r=()=>x,i=S,a=C,o=w;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=b(e,t,s,c);r=()=>l,i=u,a=d,o=f}return Yre(t,r,i,a,o,e)},x,S,C,w]}function Xre(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:g=`button`,classNames:_,styles:v}=h.useContext(Dg),y=u.getNow(),[b]=c_(u,a,y),x=r?.(t),S=d(y,{type:t}),C=()=>{S||s(b(y))},w=`${f}-now`,T=`${w}-btn`,E=i&&h.createElement(`li`,{className:w},h.createElement(`a`,{className:m(T,S&&`${T}-disabled`),"aria-disabled":S,onClick:C},n===`date`?p.today:p.now)),D=l&&h.createElement(`li`,{className:`${f}-ok`},h.createElement(g,{disabled:c,onClick:o},p.ok)),O=(E||D)&&h.createElement(`ul`,{className:`${f}-ranges`},E,D);return!x&&!O?null:h.createElement(`div`,{className:m(`${f}-footer`,_.popup.footer),style:v.popup.footer},x&&h.createElement(`div`,{className:`${f}-footer-extra`},x),O)}function Zre(e,t,n){function r(r,i){let a=r.findIndex(r=>Zg(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Qre=h.createContext(null),l_=h.createContext(null);function u_(){return h.useContext(l_)}function d_(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y}=e,{classNames:b,styles:x}=h.useContext(Qre),S=r.getNow();return[{now:S,values:f,pickerValue:p,prefixCls:n,classNames:b,styles:x,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y},S]}var f_=h.createContext({});function p_(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:g,styles:_,panelType:v,now:y,disabledDate:b,cellRender:x,onHover:S,hoverValue:C,hoverRangeValue:w,generateConfig:T,values:E,locale:D,onSelect:O}=u_(),k=f||b,A=`${p}-cell`,{onCellDblClick:j}=h.useContext(f_),M=e=>E.some(t=>t&&Zg(T,D,e,t,v)),N=[];for(let e=0;eZg(T,D,f,e,v)),[`${A}-in-range`]:E&&!N&&!P,[`${A}-range-start`]:N,[`${A}-range-end`]:P,[`${p}-cell-selected`]:!w&&v!==`week`&&M(f),...l(f)}),style:_.item,onClick:()=>{b||O(f)},onDoubleClick:()=>{!b&&j&&j()},onMouseEnter:()=>{b||S?.(f)},onMouseLeave:()=>{b||S?.(null)}},x?x(f,{prefixCls:p,originNode:I,today:y,type:v,locale:D}):I))}N.push(h.createElement(`tr`,{key:e,className:o?.(u)},t))}return h.createElement(`div`,{className:m(`${p}-body`,g.body),style:_.body},h.createElement(`table`,{className:m(`${p}-content`,g.content),style:_.content},u&&h.createElement(`thead`,null,h.createElement(`tr`,null,u)),h.createElement(`tbody`,null,N)))}var m_={visibility:`hidden`};function h_(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:g,maxDate:_,generateConfig:v,locale:y,pickerValue:b,panelType:x}=u_(),S=`${s}-header`,{hidePrev:C,hideNext:w,hideHeader:T}=h.useContext(f_),E=h.useMemo(()=>!g||!t||!a?!1:!$g(v,y,a(t(-1,b)),g,x),[g,t,b,a,v,y,x]),D=h.useMemo(()=>!g||!n||!a?!1:!$g(v,y,a(n(-1,b)),g,x),[g,n,b,a,v,y,x]),O=h.useMemo(()=>!_||!t||!i?!1:!$g(v,y,_,i(t(1,b)),x),[_,t,b,i,v,y,x]),k=h.useMemo(()=>!_||!n||!i?!1:!$g(v,y,_,i(n(1,b)),x),[_,n,b,i,v,y,x]),A=e=>{t&&r(t(e,b))},j=e=>{n&&r(n(e,b))};if(T)return null;let M=`${S}-prev-btn`,N=`${S}-next-btn`,P=`${S}-super-prev-btn`,F=`${S}-super-next-btn`;return h.createElement(`div`,{className:m(S,c.header),style:l.header},n&&h.createElement(`button`,{type:`button`,"aria-label":y.previousYear,onClick:()=>j(-1),tabIndex:-1,className:m(P,D&&`${P}-disabled`),disabled:D,style:C?m_:{}},f),t&&h.createElement(`button`,{type:`button`,"aria-label":y.previousMonth,onClick:()=>A(-1),tabIndex:-1,className:m(M,E&&`${M}-disabled`),disabled:E,style:C?m_:{}},u),h.createElement(`div`,{className:`${S}-view`},o),t&&h.createElement(`button`,{type:`button`,"aria-label":y.nextMonth,onClick:()=>A(1),tabIndex:-1,className:m(N,O&&`${N}-disabled`),disabled:O,style:w?m_:{}},d),n&&h.createElement(`button`,{type:`button`,"aria-label":y.nextYear,onClick:()=>j(1),tabIndex:-1,className:m(F,k&&`${F}-disabled`),disabled:k,style:w?m_:{}},p))}function g_(){return g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=l?.(e,{type:`week`});return h.createElement(`td`,{key:`week`,className:m(g,`${g}-week`,{[`${g}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},h.createElement(`div`,{className:`${g}-inner`},i.locale.getWeek(r.locale,e)))}:null,T=[],E=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);w&&T.push(h.createElement(`th`,{key:`empty`},h.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)T.push(h.createElement(`th`,{key:e},E[(e+b)%7]));let D=(e,t)=>i.addDate(e,t),O=e=>e_(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),k=e=>({[`${t}-cell-in-view`]:Jg(i,e,a),[`${t}-cell-today`]:Yg(i,e,y)}),A=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),j=h.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},e_(a,{locale:r,format:r.yearFormat,generateConfig:i})),M=h.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?e_(a,{locale:r,format:r.monthFormat,generateConfig:i}):A[C]),N=r.monthBeforeYear?[M,j]:[j,M];return h.createElement(l_.Provider,{value:v},h.createElement(`div`,{className:m(p,f&&`${p}-show-week`)},h.createElement(h_,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},N),h.createElement(p_,g_({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:D,getCellText:O,getCellClassName:k,prefixColumn:w,cellSelection:!_}))))}var $re=1/3;function eie(e,t){let n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),a=()=>n.current,o=()=>{nn.cancel(r.current),n.current=!1},s=h.useRef();return[pe(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!it(a)){s.current<=5&&(r.current=nn(l));return}let p=t+(f-t)*$re,m=Math.abs(f-p);if(i.current!==null&&i.current[e,t,n].join(`,`)).join(`;`)}function v_(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:g}=u_(),_=`${l}-time-panel`,v=`${l}-time-panel-cell`,y=h.useRef(null),b=h.useRef(),x=()=>{clearTimeout(b.current)},[S,C,w]=eie(y,n??r);ge(()=>(S(),x(),()=>{C(),x()}),[n,r,nie(t)]);let T=e=>{x();let n=e.target;!w()&&c&&(b.current=setTimeout(()=>{let e=y.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=t[i.findIndex(e=>e===o)];s&&!s.disabled&&a(s.value)},tie))},E=`${_}-column`;return h.createElement(`ul`,{className:E,ref:y,"data-type":i,onScroll:T},t.map(({label:e,value:t,disabled:r})=>{let c=h.createElement(`div`,{className:`${v}-inner`},e);return h.createElement(`li`,{key:t,style:g.item,className:m(v,p.item,{[`${v}-selected`]:n===t,[`${v}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function y_(){return y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},pickerValue:_}=u_(),v=u?.[0]||null,{onCellDblClick:y}=h.useContext(f_),[b,x,S,C,w]=c_(d,e,v),T=e=>[v&&d[e](v),_&&d[e](_)],[E,D]=T(`getHour`),[O,k]=T(`getMinute`),[A,j]=T(`getSecond`),[M,N]=T(`getMillisecond`),P=E===null?null:b_(E)?`am`:`pm`,F=h.useMemo(()=>a?b_(E)?x.filter(e=>b_(e.value)):x.filter(e=>!b_(e.value)):x,[E,x,a]),I=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},L=I(x,E),R=h.useMemo(()=>S(L),[S,L]),z=I(R,O),B=h.useMemo(()=>C(L,z),[C,L,z]),V=I(B,A),H=h.useMemo(()=>w(L,z,V),[w,L,z,V]),U=I(H,M),W=h.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?e_(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:x.every(e=>e.disabled||!b_(e.value))},{label:r(n,`PM`),value:`pm`,disabled:x.every(e=>e.disabled||b_(e.value))}]},[x,a,d,f]),G=e=>{p(b(e))},ee=h.useMemo(()=>{let e=v||_||d.getNow(),t=e=>e!=null;return t(E)?(e=d.setHour(e,E),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):t(D)?(e=d.setHour(e,D),e=d.setMinute(e,k),e=d.setSecond(e,j),e=d.setMillisecond(e,N)):t(L)&&(e=d.setHour(e,L),e=d.setMinute(e,z),e=d.setSecond(e,V),e=d.setMillisecond(e,U)),e},[v,_,E,O,A,M,L,z,V,U,D,k,j,N,d]),K=(e,t)=>e===null?null:d[t](ee,e),te=e=>K(e,`setHour`),ne=e=>K(e,`setMinute`),re=e=>K(e,`setSecond`),ie=e=>K(e,`setMillisecond`),ae=e=>e===null?null:e===`am`&&!b_(E)?d.setHour(ee,E-12):e===`pm`&&b_(E)?d.setHour(ee,E+12):ee,oe=e=>{G(te(e))},se=e=>{G(ne(e))},ce=e=>{G(re(e))},le=e=>{G(ie(e))},ue=e=>{G(ae(e))},de=e=>{g(te(e))},fe=e=>{g(ne(e))},pe=e=>{g(re(e))},me=e=>{g(ie(e))},he=e=>{g(ae(e))},ge={onDblClick:y,changeOnScroll:o};return h.createElement(`div`,{className:m(`${s}-content`,c.content),style:l.content},t&&h.createElement(v_,y_({units:F,value:E,optionalValue:D,type:`hour`,onChange:oe,onHover:de},ge)),n&&h.createElement(v_,y_({units:R,value:O,optionalValue:k,type:`minute`,onChange:se,onHover:fe},ge)),r&&h.createElement(v_,y_({units:B,value:A,optionalValue:j,type:`second`,onChange:ce,onHover:pe},ge)),i&&h.createElement(v_,y_({units:H,value:M,optionalValue:N,type:`millisecond`,onChange:le,onHover:me},ge)),a&&h.createElement(v_,y_({units:W,value:P,type:`meridiem`,onChange:ue,onHover:he},ge)))}function iie(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=d_(e,`time`);return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:m(s)},h.createElement(h_,null,n?e_(n,{locale:r,format:o,generateConfig:i}):`\xA0`),h.createElement(rie,a)))}function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;ta?t_(n,e,a):t_(n,e,o);return h.createElement(`div`,{className:c},h.createElement(__,x_({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),h.createElement(iie,e))}function S_(){return S_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),g=e=>{let t=n.cellYearFormat;return`${e_(e,{locale:n,format:t,generateConfig:r})}-${e_(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},_=e=>({[`${t}-cell-in-view`]:Kg(r,e,d)||Kg(r,e,f)||Qg(r,d,f,e)}),v=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,y=`${e_(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${e_(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},y),h.createElement(p_,S_({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:g,getCellClassName:_}))))}function C_(){return C_=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?e_(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),g=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,_=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},_),h.createElement(p_,C_({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.addMonth(e,t*3),d=e=>e_(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),h.createElement(p_,w_({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t={};if(o){let[r,i]=o,a=Xg(n,s,r,e),l=Xg(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&Qg(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Xg(n,s,e,t))),m(c,{[`${c}-selected`]:!o&&Xg(n,s,i,e)},t)}}))}function E_(){return E_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),g=(e,t)=>r.addYear(e,t),_=e=>e_(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),v=e=>({[`${t}-cell-in-view`]:qg(r,e,f)||qg(r,e,p)||Qg(r,f,p,e)}),y=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,b=h.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},e_(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,e_(p,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},b),h.createElement(p_,E_({},e,{disabledDate:y,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:_,getCellClassName:v}))))}function D_(){return D_=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:P.current}));let[F,I,L,R]=Ug(e),z=zg(i,I),B=x===`date`&&S?`datetime`:x,V=h.useMemo(()=>Wg(B,L,R,F,z),[B,L,R,F,z]),H=a.getNow(),[U,W]=ye(x||`date`,y),G=U===`date`&&V?`datetime`:U,ee=Zre(a,i,B),[K,te]=ye(u,d),ne=h.useMemo(()=>{let e=Ag(K).filter(e=>e);return l?e:e.slice(0,1)},[K,l]),re=pe(e=>{te(e),f&&(e===null||ne.length!==e.length||ne.some((t,n)=>!Zg(a,i,t,e[n],B)))&&f?.(l?e:e[0])}),ie=pe(e=>{p?.(e),U===x&&re(l?ee(ne,e):[e])}),[ae,oe]=ye(g||ne[0]||H,_);h.useEffect(()=>{ne[0]&&!_&&oe(ne[0])},[ne[0]]);let se=(e,t)=>{b?.(e||_,t||U)},ce=(e,t=!1)=>{oe(e),v?.(e),t&&se(e)},le=(e,t)=>{W(e),t&&ce(t),se(t,e)},ue=e=>{if(ie(e),ce(e),U!==x){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[x]||n,i=r[r.indexOf(U)+1];i&&le(i,e)}},de=h.useMemo(()=>{let e,t;return Array.isArray(w)?[e,t]=w:e=w,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[w,a]),fe=Ig(T,E,D),me=O[G]||die[G]||__,he=h.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),ge=h.useContext(f_),_e=h.useMemo(()=>({...ge,hideHeader:k}),[ge,k]),ve=`${N}-panel`,be=Mg(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return h.createElement(Qre.Provider,{value:he},h.createElement(f_.Provider,{value:_e},h.createElement(`div`,{ref:P,tabIndex:c,className:m(ve,{[`${ve}-rtl`]:o===`rtl`})},h.createElement(me,D_({},be,{showTime:V,prefixCls:N,locale:z,generateConfig:a,onModeChange:le,pickerValue:ae,onPickerValueChange:e=>{ce(e,!0)},value:ne[0],onSelect:ue,values:ne,cellRender:fe,hoverRangeValue:de,hoverValue:C})))))}var O_=h.memo(h.forwardRef(fie));function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;ti_(u,t,e,n),[u,t]),f=h.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return s?_.hoverRangeValue=c:_.hoverValue=c,n?h.createElement(`div`,{className:`${l}-panels`},h.createElement(f_.Provider,{value:{...m,hideNext:!0}},h.createElement(O_,_)),h.createElement(f_.Provider,{value:{...m,hidePrev:!0}},h.createElement(O_,k_({},_,{pickerValue:f,onPickerValueChange:p})))):h.createElement(f_.Provider,{value:{...m}},h.createElement(O_,_))}function mie(e){return typeof e==`function`?e():e}function hie(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?h.createElement(`div`,{className:`${t}-presets`},h.createElement(`ul`,null,n.map(({label:e,value:t},n)=>h.createElement(`li`,{key:n,onClick:()=>{r(mie(t))},onMouseEnter:()=>{i(mie(t))},onMouseLeave:()=>{i(null)}},e)))):null}function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.width&&j(e.width)},[L,R,z]=s,[B,V]=h.useState(0);h.useEffect(()=>{V(10)},[L]),h.useEffect(()=>{if(a&&k.current){let e=O.current?.offsetWidth||0,t=k.current.getBoundingClientRect();if(!t.height||t.right<0){V(e=>Math.max(0,e-1));return}if(F((D?R-e:L)-t.left),A&&Ae)}let U=h.useMemo(()=>H(Ag(_)),[_]),W=r===`time`&&!U.length,G=h.useMemo(()=>W?H([b]):U,[W,U,b]),ee=W?b:U,K=h.useMemo(()=>G.length?G.some(e=>y(e)):!0,[G,y]),te=h.createElement(`div`,{className:`${T}-panel-layout`},h.createElement(hie,{prefixCls:T,presets:c,onClick:u,onHover:l}),h.createElement(`div`,null,h.createElement(pie,A_({},e,{value:ee})),h.createElement(Xre,A_({},e,{showNow:o?!1:i,invalid:K,onSubmit:()=>{W&&v(b),x(),S()}}))));t&&(te=t(te));let ne=`${E}-container`,re=`marginLeft`,ie=`marginRight`,ae=h.createElement(`div`,{onMouseDown:p,tabIndex:-1,className:m(ne,`${T}-${n}-panel-container`,C?.popup?.container),style:{[D?ie:re]:M,[D?re:ie]:`auto`,...w?.popup?.container},onFocus:d,onBlur:f},te);return a&&(ae=h.createElement(`div`,{onMouseDown:p,ref:k,className:m(`${T}-range-wrapper`,`${T}-${r}-range-wrapper`)},h.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),h.createElement(Fl,{onResize:I},ae))),ae}function M_(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:g,onOpenChange:_,onKeyDown:v,onChange:y,activeHelp:b,name:x,autoComplete:S,id:C,value:w,invalid:T,placeholder:E,disabled:D,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=h.useCallback(e=>e_(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=h.useMemo(()=>w.map(N),[w,N]),F=h.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t{function i(e){return n===void 0?e:e[n]}let a={...Yt(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:x,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||b&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);if(t){m(!1,n),y(t,n);return}m(!!e,n)},onHelp:()=>{_(!0,{index:n})},onKeyDown:e=>{let t=!1;if(v?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:_(!1,{index:n});break;case`Enter`:g||_(!0);break}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var gie=[`onMouseEnter`,`onMouseLeave`];function N_(e){return h.useMemo(()=>Mg(e,gie),[e])}function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}var R_=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],z_=`顧`,_ie=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=R_.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>z_.repeat(e.length));let r=RegExp(`(${R_.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=R_.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:g=!1,invalid:_,clearIcon:v,...y}=e,{value:b,onFocus:x,onBlur:S,onMouseUp:C}=e,{prefixCls:w,input:T=`input`,classNames:E,styles:D}=h.useContext(Dg),O=`${w}-input`,[k,A]=h.useState(!1),[j,M]=h.useState(b),[N,P]=h.useState(``),[F,I]=h.useState(null),[L,R]=h.useState(null),z=j||``;h.useEffect(()=>{M(b)},[b]);let B=h.useRef(null),V=h.useRef(null),H=h.useRef(!1);h.useImperativeHandle(t,()=>({nativeElement:B.current,inputElement:V.current,focus:e=>{V.current.focus(e)},blur:()=>{V.current.blur()}}));let U=h.useMemo(()=>new _ie(o||``),[o]),[W,G]=h.useMemo(()=>u?[0,0]:U.getSelection(F),[U,F,u]),ee=e=>{e&&e!==o&&e!==b&&d()},K=pe(e=>{s(e)&&c(e),M(e),ee(e)}),te=e=>{if(!o){let t=e.target.value;ee(t),M(t),c(t)}},ne=e=>{if(H.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&K(t)},re=()=>{H.current=!0},ie=e=>{let{selectionStart:t}=e.target;I(U.getMaskCellIndex(t)),R({}),C?.(e),H.current=!1},ae=e=>{A(!0),I(0),P(``),x(e)},oe=e=>{S(e)},se=e=>{A(!1),oe(e)};r_(r,()=>{!r&&!g&&M(b)});let ce=e=>{e.key===`Enter`&&s(z)&&f(),p?.(e)},le=e=>{if(H.current){e.preventDefault();return}ce(e);let{key:t}=e,n=null,r=null,i=G-W,a=o.slice(W,G),s=e=>{I(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,U.size()-1),n})},c=e=>{let[t,n,r]=vie(a),i=z.slice(W,G),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=N+t,r=n);break}n!==null&&(P(n),n.length>=i&&(s(1),P(``))),r!==null&&K((z.slice(0,W)+kg(r,i)+z.slice(G)).slice(0,o.length)),R({})},ue=h.useRef();ge(()=>{if(!(!k||!o||H.current)){if(!U.match(z)){K(o);return}return V.current.setSelectionRange(W,G),ue.current=nn(()=>{V.current.setSelectionRange(W,G)}),()=>{nn.cancel(ue.current)}}},[U,o,k,z,F,W,G,L,K]);let de=o?{onFocus:ae,onBlur:se,onKeyDown:le,onMouseDown:re,onMouseUp:ie,onPaste:ne}:{};return h.createElement(`div`,{ref:B,className:m(O,{[`${O}-active`]:r&&i,[`${O}-placeholder`]:u},n)},h.createElement(T,B_({ref:V,"aria-invalid":_,autoComplete:`off`},y,{onKeyDown:ce,onBlur:oe},de,{value:z,onChange:te,className:E.input,style:D.input})),h.createElement(F_,{icon:a}),v)});function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),ne=h.useRef(),re=h.useRef(),ie=h.useRef(),ae=e=>[re,ie][e]?.current;h.useImperativeHandle(t,()=>({nativeElement:ne.current,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};ae(t)?.focus(n)}else ae(e??0)?.focus()},blur:()=>{ae(0)?.blur(),ae(1)?.blur()}}));let oe=N_(U),se=h.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[ce]=M_({...e,id:te,placeholder:se}),[le,ue]=h.useState({position:`absolute`,width:0}),de=pe(()=>{let e=ae(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=ne.current.getBoundingClientRect(),r=t.left-n.left;ue(e=>({...e,width:t.width,left:r})),I([t.left,t.right,n.width])}});h.useEffect(()=>{de()},[s]);let fe=i&&(C[0]&&!j[0]||C[1]&&!j[1]),me=V&&!j[0],he=V&&!me&&!j[1];return h.createElement(Fl,{onResize:de},h.createElement(`div`,H_({},oe,{className:m(G,`${G}-range`,{[`${G}-focused`]:u,[`${G}-disabled`]:j.every(e=>e),[`${G}-invalid`]:M.some(e=>e),[`${G}-rtl`]:W},y),style:b,ref:ne,onClick:x,onMouseDown:e=>{let{target:t}=e;t!==re.current.inputElement&&t!==ie.current.inputElement&&e.preventDefault(),R?.(e)}}),r&&h.createElement(`div`,{className:m(`${G}-prefix`,ee.prefix),style:K.prefix},r),h.createElement(V_,H_({ref:re},ce(0),{className:`${G}-input-start`,autoFocus:me,tabIndex:H,"date-range":`start`})),h.createElement(`div`,{className:`${G}-range-separator`},o),h.createElement(V_,H_({ref:ie},ce(1),{className:`${G}-input-end`,autoFocus:he,tabIndex:H,"date-range":`end`})),h.createElement(`div`,{className:`${G}-active-bar`,style:le}),h.createElement(F_,{icon:a}),fe&&h.createElement(L_,{icon:i,onClear:S})))}var bie=h.forwardRef(yie);function U_(e,t){return(0,h.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function W_(){return W_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{disabled:t,allowEmpty:n}=e;return{disabled:G_(t,!1),allowEmpty:G_(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:g,needConfirm:_,onClear:v,onKeyDown:y,disabled:b,allowEmpty:x,disabledDate:S,minDate:C,maxDate:w,defaultOpen:T,open:E,onOpenChange:D,locale:O,generateConfig:k,picker:A,showNow:j,showToday:M,showTime:N,mode:P,onPanelChange:F,onCalendarChange:I,onOk:L,defaultPickerValue:R,pickerValue:z,onPickerValueChange:B,inputReadOnly:V,suffixIcon:H,onFocus:U,onBlur:W,presets:G,ranges:ee,components:K,cellRender:te,dateRender:ne,monthCellRender:re,onClick:ie}=n,ae=Ire(t),[oe,se]=U_(d,u),[ce,le]=Fre(E,T,b,D),ue=(e,t)=>{(b.some(e=>!e)||!e)&&le(e,t)},[de,fe,me,he,_e]=Kre(k,O,a,!0,!1,p,g,I,L),ve=me(),[be,xe,Se,Ce,we,Te,Ee,De,Oe]=Rre(b,x,ce),ke=(e,t)=>{xe(!0),U?.(e,{range:K_(t??Ce)})},Ae=(e,t)=>{xe(!1),W?.(e,{range:K_(t??Ce)})},je=h.useMemo(()=>{if(!N)return null;let{disabledTime:e}=N,t=e?t=>e(t,K_(Ce),{from:Pg(ve,Ee,Ce)}):void 0;return{...N,disabledTime:t}},[N,Ce,ve,Ee]),[Me,Ne]=ye([A,A],P),Pe=Me[Ce]||A,Fe=Pe===`date`&&je?`datetime`:Pe,Ie=Fe===A&&Fe!==`time`,Le=Jre(A,Pe,j,M,!0),[Re,ze]=qre(n,de,fe,me,he,b,a,be,ce,s),Be=zre(ve,b,Ee,k,O,S),[Ve,He]=Lg(ve,s,x),[Ue,We]=Bre(k,O,ve,Me,ce,Ce,r,Ie,R,z,je?.defaultOpenValue,B,C,w),Ge=pe((e,t,n)=>{let r=jg(Me,Ce,t);if((r[0]!==Me[0]||r[1]!==Me[1])&&Ne(r),F&&n!==!1){let t=[...ve];e&&(t[Ce]=e),F(t,r)}}),Ke=(e,t)=>jg(ve,t,e),qe=(e,t)=>{let n=ve;e&&(n=Ke(e,Ce)),De(Ce);let r=Te(n);he(n),Re(Ce,r===null),r===null?ue(!1,{force:!0}):t||ae.current.focus({index:r})},Je=e=>{let t=e.target.getRootNode();if(!ae.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=b.findIndex(e=>!e);e>=0&&ae.current.focus({index:e})}ue(!0),ie?.(e)},Ye=()=>{ze(null),ue(!1,{force:!0}),v?.()},[Xe,Ze]=h.useState(null),[Qe,$e]=h.useState(null),et=h.useMemo(()=>Qe||ve,[ve,Qe]);h.useEffect(()=>{ce||$e(null)},[ce]);let[tt,nt]=h.useState([0,0,0]),rt=(e,t)=>{f===`hover`&&($e(e),Ze(t))},it=Lre(G,ee),at=e=>{rt(e,`preset`)},ot=e=>{ze(e)&&(Se(`preset-click`),ue(!1,{force:!0}))},st=e=>{qe(e)},ct=e=>{rt(e?Ke(e,Ce):null,`cell`)},lt=e=>{ue(!0),ke(e)},ut=()=>{Se(`panel`)},dt=e=>{he(jg(ve,Ce,e)),!_&&!i&&r===Fe&&qe(e)},ft=()=>{ue(!1)},pt=Ig(te,ne,re,K_(Ce)),mt=ve[Ce]||null,ht=pe(e=>s(e,{activeIndex:Ce})),gt=h.useMemo(()=>{let e=Yt(n,!1);return Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),_t=h.createElement(j_,W_({},gt,{showNow:Le,showTime:je,range:!0,multiplePanel:Ie,activeInfo:tt,disabledDate:Be,onFocus:lt,onBlur:Ae,onPanelMouseDown:ut,picker:A,mode:Pe,internalMode:Fe,onPanelChange:Ge,format:o,value:mt,isInvalid:ht,onChange:null,onSelect:dt,pickerValue:Ue,defaultOpenValue:Ag(N?.defaultOpenValue)[Ce],onPickerValueChange:We,hoverValue:et,onHover:ct,needConfirm:_,onSubmit:qe,onOk:_e,presets:it,onPresetHover:at,onPresetSubmit:ot,onNow:st,cellRender:pt,classNames:oe,styles:se})),vt=(e,t)=>{he(Ke(e,t))},yt=()=>{Se(`input`)},bt=(e,t)=>{let n=Ee.length,r=Ee[n-1];if(n&&r!==t&&_&&!x[r]&&!Oe(r)&&ve[r]){ae.current.focus({index:r});return}Se(`input`),ue(!0,{inherit:!0}),Ce!==t&&ce&&!_&&i&&qe(null,!0),we(t),ke(e,t)},xt=(e,t)=>{ue(!1),!_&&Se()===`input`&&Re(Ce,Te(ve)===null),Ae(e,t)},St=(e,t)=>{e.key===`Tab`&&qe(null,!0),y?.(e,t)},Ct=h.useMemo(()=>({prefixCls:c,locale:O,generateConfig:k,button:K.button,input:K.input,classNames:oe,styles:se}),[c,O,k,K.button,K.input,oe,se]);return ge(()=>{ce&&Ce!==void 0&&Ge(null,A,!1)},[ce,Ce,A]),ge(()=>{let e=Se();!ce&&e===`input`&&(ue(!1),qe(null,!0)),!ce&&i&&!_&&e===`panel`&&(ue(!0),qe())},[ce]),h.createElement(Dg.Provider,{value:Ct},h.createElement(Og,W_({},Fg(n),{popupElement:_t,popupStyle:se.popup.root,popupClassName:m(l,oe.popup.root),visible:ce,onClose:ft,range:!0}),h.createElement(bie,W_({},n,{ref:ae,className:m(n.className,l,oe.root),style:{...se.root,...n.style},suffixIcon:H,activeIndex:be||ce?Ce:null,activeHelp:!!Qe,allHelp:!!Qe&&Xe===`preset`,focused:be,onFocus:bt,onBlur:xt,onKeyDown:St,onSubmit:qe,value:et,maskFormat:o,onChange:vt,onInputChange:yt,format:a,inputReadOnly:V,disabled:b,open:ce,onOpenChange:ue,onClick:Je,onClear:Ye,invalid:Ve,onInvalid:He,onActiveInfo:nt}))))}var Sie=h.forwardRef(xie);function Cie(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return h.createElement(`span`,{className:m(`${d}-item`),title:typeof e==`string`?e:null},h.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&h.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function g(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function _(e){return p(`+ ${e.length} ...`)}return h.createElement(`div`,{className:u},h.createElement(th,{prefixCls:f,data:n,renderItem:g,renderRest:_,itemKey:e=>a(e),maxCount:s}),!n.length&&h.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function q_(){return q_=Object.assign?Object.assign.bind():function(e){for(var t=1;t({nativeElement:re.current,focus:e=>{ie.current?.focus(e)},blur:()=>{ie.current?.blur()}}));let ae=N_(G),oe=e=>{w([e])},se=e=>{w(C.filter(t=>t&&!Zg(g,p,t,e,S))),r||T()},[ce,le]=M_({...e,onChange:oe},({valueTexts:e})=>({value:e[0]||``,active:l})),ue=!!(a&&C.length&&!P),de=D?h.createElement(h.Fragment,null,h.createElement(Cie,{prefixCls:K,value:C,onRemove:se,formatDate:le,maxTagCount:O,tagRender:k,disabled:P,removeIcon:W,placeholder:_}),h.createElement(`input`,{className:`${K}-multiple-input`,value:C.map(le).join(`,`),ref:ie,readOnly:!0,autoFocus:H,tabIndex:U}),h.createElement(F_,{icon:o}),ue&&h.createElement(L_,{icon:a,onClear:x})):h.createElement(V_,q_({ref:ie},ce(),{autoFocus:H,tabIndex:U,suffixIcon:o,clearIcon:ue&&h.createElement(L_,{icon:a,onClear:x}),showActiveCls:!1}));return h.createElement(`div`,q_({},ae,{className:m(K,{[`${K}-multiple`]:D,[`${K}-focused`]:l,[`${K}-disabled`]:P,[`${K}-invalid`]:F,[`${K}-rtl`]:ee},v),style:y,ref:re,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==ie.current?.inputElement&&e.preventDefault(),z?.(e)}}),i&&h.createElement(`div`,{className:m(`${K}-prefix`,te.prefix),style:ne.prefix},i),de)}var Tie=h.forwardRef(wie);function J_(){return J_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(L){let r={...n};delete r.range,L(le(e),le(t),r)}},e=>{R?.(le(e))}),Ce=be(),[we,Te,Ee,De]=Rre([S]),Oe=e=>{Te(!0),K?.(e,{})},ke=e=>{Te(!1),te?.(e,{})},[Ae,je]=ye(j,F),Me=Ae===`date`&&P?`datetime`:Ae,Ne=Jre(j,Ae,M,N),Pe=y&&((e,t)=>{y(le(e),le(t))}),[,Fe]=qre({...n,onChange:Pe},_e,ve,be,xe,[],a,we,me,s),[Ie,Le]=Lg(Ce,s),Re=h.useMemo(()=>Ie.some(e=>e),[Ie]),[ze,Be]=Bre(A,k,Ce,[Ae],me,De,r,!1,B,V,Ag(P?.defaultOpenValue),(e,t)=>{if(H){let n={...t,mode:t.mode[0]};delete n.range,H(e[0],n)}},w,T),Ve=pe((e,t,n)=>{je(t),I&&n!==!1&&I(e||Ce[Ce.length-1],t)}),He=()=>{Fe(be()),he(!1,{force:!0})},Ue=e=>{!S&&!ce.current.nativeElement.contains(document.activeElement)&&ce.current.focus(),he(!0),se?.(e)},We=()=>{Fe(null),he(!1,{force:!0}),ce.current.focus(),b?.()},[Ge,Ke]=h.useState(null),[qe,Je]=h.useState(null),Ye=h.useMemo(()=>{let e=[qe,...Ce].filter(e=>e);return z?e:e.slice(0,1)},[Ce,qe,z]),Xe=h.useMemo(()=>!z&&qe?[qe]:Ce.filter(e=>e),[Ce,qe,z]);h.useEffect(()=>{me||Je(null)},[me]);let Ze=(e,t)=>{f===`hover`&&(Je(e),Ke(t))},Qe=Lre(ne),$e=e=>{Ze(e,`preset`)},et=e=>{Fe(z?ue(be(),e):[e])&&!z&&he(!1,{force:!0})},tt=e=>{et(e)},nt=e=>{Ze(e,`cell`)},rt=e=>{he(!0),Oe(e)},it=e=>{Ee(`panel`),!(z&&Me!==j)&&(xe(z?ue(be(),e):[e]),!v&&!i&&r===Me&&He())},at=()=>{he(!1)},ot=Ig(ie,ae,oe),st=h.useMemo(()=>{let e=Yt(n,!1);return{...Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),ct=h.createElement(j_,J_({},st,{showNow:Ne,showTime:P,disabledDate:C,onFocus:rt,onBlur:ke,picker:j,mode:Ae,internalMode:Me,onPanelChange:Ve,format:o,value:Ce,isInvalid:s,onChange:null,onSelect:it,pickerValue:ze,defaultOpenValue:P?.defaultOpenValue,onPickerValueChange:Be,hoverValue:Ye,onHover:nt,needConfirm:v,onSubmit:He,onOk:Se,presets:Qe,onPresetHover:$e,onPresetSubmit:et,onNow:tt,cellRender:ot,classNames:de,styles:fe})),lt=e=>{xe(e)},ut=()=>{Ee(`input`)},dt=e=>{Ee(`input`),he(!0,{inherit:!0}),Oe(e)},ft=e=>{he(!1),ke(e)},pt=(e,t)=>{e.key===`Tab`&&He(),x?.(e,t)},mt=h.useMemo(()=>({prefixCls:c,locale:k,generateConfig:A,button:re.button,input:re.input,classNames:de,styles:fe}),[c,k,A,re.button,re.input,de,fe]);return ge(()=>{me&&De!==void 0&&Ve(null,j,!1)},[me,De,j]),ge(()=>{let e=Ee();!me&&e===`input`&&(he(!1),He()),!me&&i&&!v&&e===`panel`&&He()},[me]),h.createElement(Dg.Provider,{value:mt},h.createElement(Og,J_({},Fg(n),{popupElement:ct,popupStyle:fe.popup.root,popupClassName:m(l,de.popup.root),visible:me,onClose:at}),h.createElement(Tie,J_({},n,{ref:ce,className:m(n.className,l,de.root),style:{...fe.root,...n.style},suffixIcon:W,removeIcon:G,tagRender:ee,activeHelp:!!qe,allHelp:!!qe&&Ge===`preset`,focused:we,onFocus:dt,onBlur:ft,onKeyDown:pt,onSubmit:He,value:Xe,maskFormat:o,onChange:lt,onInputChange:ut,internalPicker:r,format:a,inputReadOnly:U,disabled:S,open:me,onOpenChange:he,onClick:Ue,onClear:We,invalid:Re,onInvalid:e=>{Le(e,0)}}))))}var Die=h.forwardRef(Eie),Y_=e=>{let{space:t,form:n,children:r}=e;if(!vr(r))return null;let i=r;return n&&(i=h.createElement(vm,{override:!0,status:!0},i)),t&&(i=h.createElement(kd,null,i)),i},X_=(e,t,n)=>m({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Z_=(e,t)=>t||e,Q_=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=Ur(e),[c,l]=Nr([o,t],[s,n],{props:a},{popup:{_default:`root`}});return h.useMemo(()=>[{...c,popup:{...c.popup,root:m(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])};function $_(e){return Go(e,{inputAffixPadding:e.paddingXXS})}var ev=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},Oie=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...Oie(Go(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),nv=(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}}),rv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...nv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),iv=(e,t)=>({"&-outlined":{...nv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tv(e)},...rv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...rv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),av=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kie=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...av(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...av(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...tv(e)}}}}),ov=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,sv=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),cv=(e,t)=>({"&, & input, & textarea":{color:t.color},[ov]:sv(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),lv=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[ov]:sv(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:cv(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:cv(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},uv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),dv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...uv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),fv=(e,t)=>({"&-filled":{...uv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tv(e)},...dv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...dv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),pv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Aie=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...pv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...pv(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),mv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${q(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}}),hv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...mv(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`}}),gv=(e,t)=>({"&-underlined":{...mv(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`},...hv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...hv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),_v=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),vv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${q(t)} ${q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},yv=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${q(e.paddingBlock)} ${q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,..._v(e.colorTextPlaceholder),"&-lg":{...vv(e),...t.largeStyle},"&-sm":{...yv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),jie=e=>{let{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`]:{...vv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...yv(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 ${q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${q(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`,...so(),[`${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 @@ -185,16 +185,16 @@ html body { & > ${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`]:{}}}}},jie=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...io(e),...xv(e),...av(e),...pv(e),...uv(e),..._v(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`}}}},Mie=e=>{let{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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...co(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},Nie=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...xv(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},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},...Mie(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},Pie=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...io(e),...Aie(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}},...Oie(e),...kie(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}}}}}},Fie=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Sv=Sc([`Input`,`Shared`],e=>{let t=Go(e,ev(e));return[jie(t),Nie(t)]},tv,{resetFont:!1}),Cv=Sc([`Input`,`Component`],e=>{let t=Go(e,ev(e));return[Pie(t),Fie(t),cp(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},tv,{resetFont:!1});function wv(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Tv=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e,l={content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,zIndex:0,background:`transparent`};return n&&(l.boxShadow=n),{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:[i,a]},content:`""`},"&::after":l}},Iie=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:q(t),itemLineHeight:q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Lie=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...ao(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},Ev=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Iie(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:q(a.itemLineHeight)}}}]},Rie=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=Go(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Go(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ev(i,`small`),Ev(e),Ev(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...ro}},...Lie(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},zie=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:q(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + & > ${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`]:{}}}}},Mie=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...io(e),...bv(e),...iv(e),...fv(e),...lv(e),...gv(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`}}}},Nie=e=>{let{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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...co(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},Pie=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...bv(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},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},...Nie(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},Fie=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...io(e),...jie(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}},...kie(e),...Aie(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}}}}}},Iie=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xv=Sc([`Input`,`Shared`],e=>{let t=Go(e,$_(e));return[Mie(t),Pie(t)]},ev,{resetFont:!1}),Sv=Sc([`Input`,`Component`],e=>{let t=Go(e,$_(e));return[Fie(t),Iie(t),cp(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},ev,{resetFont:!1});function Cv(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var wv=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e,l={content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${q(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,zIndex:0,background:`transparent`};return n&&(l.boxShadow=n),{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:[i,a]},content:`""`},"&::after":l}},Lie=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:q(t),itemLineHeight:q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Rie=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...ao(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},Tv=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Lie(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:q(a.itemLineHeight)}}}]},zie=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=Go(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Go(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Tv(i,`small`),Tv(e),Tv(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...ro}},...Rie(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},Bie=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:q(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${q(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Bie=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Vie=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${q(c)}`,color:h,borderBottom:`${q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:q(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:q(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...zie(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${q(c)} ${q(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ps(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${q(c)} ${q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${q(d)} ${f} ${g}`},[`${t}-date-panel, + ${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${q(c)}`,color:h,borderBottom:`${q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:q(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:q(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...Bie(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${q(c)} ${q(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ps(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${q(c)} ${q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${q(d)} ${f} ${g}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${q(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${q(d)} ${f} ${g}`},"&-active":{background:new ps(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:q(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},Vie=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${q(i)}`,lineHeight:q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:q(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},Hie=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},Uie=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ps(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ps(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},Wie=e=>({...tv(e),...Uie(e),...wv(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Gie=e=>{let{componentCls:t}=e;return{[t]:[{...av(e),..._v(e),...pv(e),...uv(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Dv=(e,t)=>({padding:`${q(e)} ${q(t)}`}),Kie=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=Tc(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},qie=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=Tc(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...io(e),...Dv(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...vv(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...Dv(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...Dv(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...co(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${q(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...io(e),...Bie(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${q(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${q(d)} ${f} ${g}`},"&-active":{background:new ps(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:q(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},Hie=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${q(i)}`,lineHeight:q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:q(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},Uie=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},Wie=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ps(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ps(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},Gie=e=>({...ev(e),...Wie(e),...Cv(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Kie=e=>{let{componentCls:t}=e;return{[t]:[{...iv(e),...gv(e),...fv(e),...lv(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Ev=(e,t)=>({padding:`${q(e)} ${q(t)}`}),qie=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=Tc(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},Jie=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=Tc(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...io(e),...Ev(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,..._v(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...Ev(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...Ev(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...co(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${q(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...io(e),...Vie(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, @@ -204,12 +204,12 @@ html body { &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:lf},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:ff},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:uf},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...Tv(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${q(i)} ${a} ${j}`,li:{...ro,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:o}}}},"&-dropdown-range":{padding:`${q(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},Ov=Sc(`DatePicker`,e=>{let t=Go(ev(e),Hie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Vie(t),qie(t),Gie(t),Kie(t),Rie(t),cp(e,{focusElCls:`${e.componentCls}-focused`})]},Wie),Jie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,kv({},e,{ref:t,icon:Jie.default}))),Yie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,jv({},e,{ref:t,icon:Yie.default}))),Xie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Nv({},e,{ref:t,icon:Xie.default})));function Fv({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:g,feedbackIcon:_,showArrow:v,componentName:y}){return h.useMemo(()=>{let y=td(n,r,h.createElement(re,null)),b=t=>e===null&&!m&&!v?null:h.createElement(h.Fragment,null,g!==!1&&t,m&&_),x=null;x=e===void 0?c?b(td(l,u,h.createElement(Hd,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?td(d,f,h.createElement(Pv,null)):td(t,h.createElement(Mv,null))):b(e);let S=td(i,a,p?h.createElement(Av,null):null),C=td(o,s,h.createElement(oe,null));return{clearIcon:y,suffixIcon:x,itemIcon:S,removeIcon:C}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,g,_,v])}var Zie=(e,t,n)=>_r(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,Qie=(e,t,n)=>_r(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,$ie=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Fv({...e,prefixCls:t,componentName:`DatePicker`});return[h.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[eae,tae]=[`week`,`WeekPicker`],[nae,rae]=[`month`,`MonthPicker`],[iae,aae]=[`year`,`YearPicker`],[oae,sae]=[`quarter`,`QuarterPicker`],[Iv,Lv]=[`time`,`TimePicker`],cae=e=>h.createElement(gp,{size:`small`,type:`primary`,...e});function Rv(e){return(0,h.useMemo)(()=>({button:cae,...e}),[e])}var lae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,zv({},e,{ref:t,icon:lae.default}))),dae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function Bv(){return Bv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Bv({},e,{ref:t,icon:dae.default}))),Vv=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?h.createElement(h.Fragment,null,e===Iv?h.createElement(fae,{"aria-hidden":`true`}):h.createElement(uae,{"aria-hidden":`true`}),t&&n):r,pae=e=>(0,h.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:g,status:_,variant:v,picker:y,dropdownClassName:b,popupClassName:x,popupStyle:S,rootClassName:C,suffixIcon:w,separator:T,allowClear:E,clearIcon:D,...O}=t,k=y===Iv?`timePicker`:`datePicker`,{suffixIcon:A,clearIcon:j,allowClear:M}=Ur(k),[N,P]=$_(k,c,l,x||b,S),F=h.useRef(null),{getPrefixCls:I,direction:L,getPopupContainer:R,rangePicker:z}=(0,h.useContext)(Br),B=I(`picker`,r),{compactSize:V,compactItemClassnames:H}=Od(B,L),U=I(),W=T??z?.separator,[G,ee]=bm(`rangePicker`,v,p),K=og(B),[te,ne]=Ov(B,K),re=m(te,ne,K,C),ie=nd({componentName:`RangePicker`,allowClear:E,clearIcon:D,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),ae=Rv(a),oe=ed(e=>d??V??e),se=h.useContext(Cu),ce=f??se,{hasFeedback:le,status:ue,feedbackIcon:de}=(0,h.useContext)(_m),fe=Vv({picker:y,hasFeedback:le,feedbackIcon:de,suffixIcon:w===void 0?A:w});(0,h.useImperativeHandle)(n,()=>F.current);let[pe]=$c(`Calendar`,Uc),me=pn(pe,t.locale||{}),[he]=Ed(`DatePicker`,P?.popup?.root?.zIndex);return h.createElement(X_,{space:!0},h.createElement(xie,{separator:h.createElement(`span`,{"aria-label":`to`,className:`${B}-separator`},W??h.createElement(gre,null)),disabled:ce,ref:F,placement:u,placeholder:Qie(me,y,g),suffixIcon:fe,prevIcon:h.createElement(`span`,{className:`${B}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${B}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${B}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${B}-super-next-icon`}),transitionName:`${U}-slide-up`,picker:y,...O,locale:me.lang,getPopupContainer:i||R,generateConfig:e,components:ae,direction:L,prefixCls:B,rootClassName:re,className:m({[`${B}-large`]:oe===`large`,[`${B}-small`]:oe===`small`,[`${B}-${G}`]:ee},Z_(B,Q_(ue,_),le),H,o,z?.className),style:{...z?.style,...s},classNames:N,styles:{...P,popup:{...P.popup,root:{...P.popup.root,zIndex:he}}},allowClear:ie}))}),mae=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Lv?`timePicker`:`datePicker`;return(0,h.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:g,disabled:_,status:v,variant:y,onCalendarChange:b,classNames:x,styles:S,dropdownClassName:C,popupClassName:w,popupStyle:T,rootClassName:E,suffixIcon:D,allowClear:O,clearIcon:k,...A}=i,{suffixIcon:j,clearIcon:M,allowClear:N}=Ur(n===Lv?`timePicker`:`datePicker`),{getPrefixCls:P,direction:F,getPopupContainer:I,[r]:L}=(0,h.useContext)(Br),R=P(`picker`,o),{compactSize:z,compactItemClassnames:B}=Od(R,F),V=ed(e=>d??z??e),H=h.useContext(Cu),U=_??H,W={...i,size:V,disabled:U,status:v,variant:y},[G,ee]=$_(r,x,S,w||C,T,W),K=h.useRef(null),[te,ne]=bm(`datePicker`,y,f),re=og(R),[ie,ae]=Ov(R,re),oe=m(ie,ae,re,E);(0,h.useImperativeHandle)(a,()=>K.current);let se={showToday:!0},ce=t||i.picker,le=P(),{onSelect:ue,multiple:de}=A,fe=ue&&t===`time`&&!de,pe=(e,t,n)=>{b?.(e,t,n),fe&&ue(e)},[,me]=$ie(i,R),he=nd({componentName:n,allowClear:O,clearIcon:k,contextAllowClear:N,contextClearIcon:M,defaultAllowClear:!0}),ge=Rv(c),{hasFeedback:_e,status:ve,feedbackIcon:ye}=(0,h.useContext)(_m),be=Vv({picker:ce,hasFeedback:_e,feedbackIcon:ye,suffixIcon:D===void 0?j:D}),[xe]=$c(`DatePicker`,Uc),Se=pn(xe,i.locale||{}),[Ce]=Ed(`DatePicker`,ee?.popup?.root?.zIndex);return h.createElement(X_,{space:!0},h.createElement(Eie,{ref:K,placeholder:Zie(Se,ce,g),suffixIcon:be,placement:p,prevIcon:h.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${le}-slide-up`,picker:t,onCalendarChange:pe,...se,...A,locale:Se.lang,getPopupContainer:s||I,generateConfig:e,components:ge,direction:F,disabled:U,prefixCls:R,rootClassName:oe,className:m({[`${R}-large`]:V===`large`,[`${R}-small`]:V===`small`,[`${R}-${te}`]:ne},Z_(R,Q_(ve,v),_e),B,L?.className,u),style:{...L?.style,...l},classNames:G,styles:{...ee,popup:{...ee.popup,root:{...ee.popup.root,zIndex:Ce}}},allowClear:he,removeIcon:me}))})},n=t(),r=t(eae,tae),i=t(nae,rae),a=t(iae,aae),o=t(oae,sae);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Iv,Lv),QuarterPicker:o}},Hv=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=mae(e),s=pae(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Uv=Hv(mre);Uv._InternalPanelDoNotUseOrYouWillBeFired=Tg(Uv,`popupAlign`,void 0,`picker`),Uv._InternalRangePanelDoNotUseOrYouWillBeFired=Tg(Uv.RangePicker,`popupAlign`,void 0,`picker`),Uv.generatePicker=Hv;function Wv(e){let[t,n]=h.useState(e);return h.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var hae=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},gae=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Gv=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},_ae=e=>{let{componentCls:t}=e;return{[t]:{...io(e),...gae(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...Gv(e,e.controlHeightSM)},"&-large":{...Gv(e,e.controlHeightLG)}}}},vae=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=Tc(i,`grid`);return{[t]:{...io(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden, - &-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:bf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Kv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),yae=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label, - ${t}-col-xl-24${n}-label`]:Kv(e)}}},bae=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label, - > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},xae=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Kv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Sae=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`},[`${n}-label, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:uf},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...wv(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${q(i)} ${a} ${j}`,li:{...ro,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:o}}}},"&-dropdown-range":{padding:`${q(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},Dv=Sc(`DatePicker`,e=>{let t=Go($_(e),Uie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Hie(t),Jie(t),Kie(t),qie(t),zie(t),cp(e,{focusElCls:`${e.componentCls}-focused`})]},Gie),Yie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Ov({},e,{ref:t,icon:Yie.default}))),Xie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Av({},e,{ref:t,icon:Xie.default}))),Zie=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Mv({},e,{ref:t,icon:Zie.default})));function Pv({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:g,feedbackIcon:_,showArrow:v,componentName:y}){return h.useMemo(()=>{let y=td(n,r,h.createElement(re,null)),b=t=>e===null&&!m&&!v?null:h.createElement(h.Fragment,null,g!==!1&&t,m&&_),x=null;x=e===void 0?c?b(td(l,u,h.createElement(Hd,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?td(d,f,h.createElement(Nv,null)):td(t,h.createElement(jv,null))):b(e);let S=td(i,a,p?h.createElement(kv,null):null),C=td(o,s,h.createElement(oe,null));return{clearIcon:y,suffixIcon:x,itemIcon:S,removeIcon:C}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,g,_,v])}var Qie=(e,t,n)=>_r(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,$ie=(e,t,n)=>_r(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,eae=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Pv({...e,prefixCls:t,componentName:`DatePicker`});return[h.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[tae,nae]=[`week`,`WeekPicker`],[rae,iae]=[`month`,`MonthPicker`],[aae,oae]=[`year`,`YearPicker`],[sae,cae]=[`quarter`,`QuarterPicker`],[Fv,Iv]=[`time`,`TimePicker`],lae=e=>h.createElement(gp,{size:`small`,type:`primary`,...e});function Lv(e){return(0,h.useMemo)(()=>({button:lae,...e}),[e])}var uae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Rv({},e,{ref:t,icon:uae.default}))),fae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,zv({},e,{ref:t,icon:fae.default}))),Bv=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?h.createElement(h.Fragment,null,e===Fv?h.createElement(pae,{"aria-hidden":`true`}):h.createElement(dae,{"aria-hidden":`true`}),t&&n):r,mae=e=>(0,h.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:g,status:_,variant:v,picker:y,dropdownClassName:b,popupClassName:x,popupStyle:S,rootClassName:C,suffixIcon:w,separator:T,allowClear:E,clearIcon:D,...O}=t,k=y===Fv?`timePicker`:`datePicker`,{suffixIcon:A,clearIcon:j,allowClear:M}=Ur(k),[N,P]=Q_(k,c,l,x||b,S),F=h.useRef(null),{getPrefixCls:I,direction:L,getPopupContainer:R,rangePicker:z}=(0,h.useContext)(Br),B=I(`picker`,r),{compactSize:V,compactItemClassnames:H}=Od(B,L),U=I(),W=T??z?.separator,[G,ee]=bm(`rangePicker`,v,p),K=og(B),[te,ne]=Dv(B,K),re=m(te,ne,K,C),ie=nd({componentName:`RangePicker`,allowClear:E,clearIcon:D,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),ae=Lv(a),oe=ed(e=>d??V??e),se=h.useContext(Cu),ce=f??se,{hasFeedback:le,status:ue,feedbackIcon:de}=(0,h.useContext)(_m),fe=Bv({picker:y,hasFeedback:le,feedbackIcon:de,suffixIcon:w===void 0?A:w});(0,h.useImperativeHandle)(n,()=>F.current);let[pe]=$c(`Calendar`,Uc),me=pn(pe,t.locale||{}),[he]=Ed(`DatePicker`,P?.popup?.root?.zIndex);return h.createElement(Y_,{space:!0},h.createElement(Sie,{separator:h.createElement(`span`,{"aria-label":`to`,className:`${B}-separator`},W??h.createElement(gre,null)),disabled:ce,ref:F,placement:u,placeholder:$ie(me,y,g),suffixIcon:fe,prevIcon:h.createElement(`span`,{className:`${B}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${B}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${B}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${B}-super-next-icon`}),transitionName:`${U}-slide-up`,picker:y,...O,locale:me.lang,getPopupContainer:i||R,generateConfig:e,components:ae,direction:L,prefixCls:B,rootClassName:re,className:m({[`${B}-large`]:oe===`large`,[`${B}-small`]:oe===`small`,[`${B}-${G}`]:ee},X_(B,Z_(ue,_),le),H,o,z?.className),style:{...z?.style,...s},classNames:N,styles:{...P,popup:{...P.popup,root:{...P.popup.root,zIndex:he}}},allowClear:ie}))}),hae=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Iv?`timePicker`:`datePicker`;return(0,h.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:g,disabled:_,status:v,variant:y,onCalendarChange:b,classNames:x,styles:S,dropdownClassName:C,popupClassName:w,popupStyle:T,rootClassName:E,suffixIcon:D,allowClear:O,clearIcon:k,...A}=i,{suffixIcon:j,clearIcon:M,allowClear:N}=Ur(n===Iv?`timePicker`:`datePicker`),{getPrefixCls:P,direction:F,getPopupContainer:I,[r]:L}=(0,h.useContext)(Br),R=P(`picker`,o),{compactSize:z,compactItemClassnames:B}=Od(R,F),V=ed(e=>d??z??e),H=h.useContext(Cu),U=_??H,W={...i,size:V,disabled:U,status:v,variant:y},[G,ee]=Q_(r,x,S,w||C,T,W),K=h.useRef(null),[te,ne]=bm(`datePicker`,y,f),re=og(R),[ie,ae]=Dv(R,re),oe=m(ie,ae,re,E);(0,h.useImperativeHandle)(a,()=>K.current);let se={showToday:!0},ce=t||i.picker,le=P(),{onSelect:ue,multiple:de}=A,fe=ue&&t===`time`&&!de,pe=(e,t,n)=>{b?.(e,t,n),fe&&ue(e)},[,me]=eae(i,R),he=nd({componentName:n,allowClear:O,clearIcon:k,contextAllowClear:N,contextClearIcon:M,defaultAllowClear:!0}),ge=Lv(c),{hasFeedback:_e,status:ve,feedbackIcon:ye}=(0,h.useContext)(_m),be=Bv({picker:ce,hasFeedback:_e,feedbackIcon:ye,suffixIcon:D===void 0?j:D}),[xe]=$c(`DatePicker`,Uc),Se=pn(xe,i.locale||{}),[Ce]=Ed(`DatePicker`,ee?.popup?.root?.zIndex);return h.createElement(Y_,{space:!0},h.createElement(Die,{ref:K,placeholder:Qie(Se,ce,g),suffixIcon:be,placement:p,prevIcon:h.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${le}-slide-up`,picker:t,onCalendarChange:pe,...se,...A,locale:Se.lang,getPopupContainer:s||I,generateConfig:e,components:ge,direction:F,disabled:U,prefixCls:R,rootClassName:oe,className:m({[`${R}-large`]:V===`large`,[`${R}-small`]:V===`small`,[`${R}-${te}`]:ne},X_(R,Z_(ve,v),_e),B,L?.className,u),style:{...L?.style,...l},classNames:G,styles:{...ee,popup:{...ee.popup,root:{...ee.popup.root,zIndex:Ce}}},allowClear:he,removeIcon:me}))})},n=t(),r=t(tae,nae),i=t(rae,iae),a=t(aae,oae),o=t(sae,cae);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Fv,Iv),QuarterPicker:o}},Vv=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=hae(e),s=mae(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Hv=Vv(mre);Hv._InternalPanelDoNotUseOrYouWillBeFired=Tg(Hv,`popupAlign`,void 0,`picker`),Hv._InternalRangePanelDoNotUseOrYouWillBeFired=Tg(Hv.RangePicker,`popupAlign`,void 0,`picker`),Hv.generatePicker=Vv;function Uv(e){let[t,n]=h.useState(e);return h.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var gae=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},_ae=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Wv=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},vae=e=>{let{componentCls:t}=e;return{[t]:{...io(e),..._ae(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...Wv(e,e.controlHeightSM)},"&-large":{...Wv(e,e.controlHeightLG)}}}},yae=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=Tc(i,`grid`);return{[t]:{...io(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden, + &-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:bf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Gv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),bae=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label, + ${t}-col-xl-24${n}-label`]:Gv(e)}}},xae=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label, + > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},Sae=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Gv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Cae=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Kv(e)},[`@media (max-width: ${q(e.screenXSMax)})`]:[xae(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Kv(e)}}}],[`@media (max-width: ${q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Kv(e)}}},[`@media (max-width: ${q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Kv(e)}}},[`@media (max-width: ${q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Kv(e)}}}}},Cae=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??`auto`,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),qv=(e,t)=>Go(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Jv=Sc(`Form`,(e,{rootPrefixCls:t})=>{let n=qv(e,t);return[_ae(n),vae(n),hae(n),yae(n),bae(n),Sae(n),Jd(n),bf]},Cae,{order:-1e3}),Yv=[];function Xv(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Zv=({help:e,helpStatus:t,errors:n=Yv,warnings:r=Yv,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=h.useContext(gm),{classNames:c,styles:l}=h.useContext(pm),u=`${s}-item-explain`,d=og(s),[f,p]=Jv(s,d),g=h.useMemo(()=>Gf(s),[s]),_=Wv(n),v=Wv(r),y=_r(e)&&e!==!1,b=h.useMemo(()=>y?[Xv(e,`help`,t)]:[].concat(gr(_.map((e,t)=>Xv(e,`error`,`error`,t))),gr(v.map((e,t)=>Xv(e,`warning`,`warning`,t)))),[e,t,y,_,v]),x=h.useMemo(()=>{let e={};return b.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),b.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[b]),S={};return a&&(S.id=`${a}_help`),h.createElement(ur,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!x.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return h.createElement(`div`,{...S,className:m(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},h.createElement(lr,{keys:x,...Gf(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return h.createElement(`div`,{key:t,className:m(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},Qv=e=>typeof e==`object`&&!!e&&e.nodeType===1,$v=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,ey=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,wae=e=>e.parentElement??(e.getRootNode().host||null),ny=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Qv(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Qv(u)&&s(u);){if(u=wae(u),u===c){l.push(u);break}u!=null&&u===document.body&&ey(u)&&!ey(document.documentElement)||u!=null&&ey(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e=0&&b>=0&&y<=f&&v<=d&&(t===c&&!ey(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?ty(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:ty(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?ty(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:ty(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Tae=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Eae(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(ny(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of ny(e,Tae(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Dae=[`parentNode`],Oae=`form_item`;function ry(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function iy(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:Dae.includes(n)?`${Oae}_${n}`:n}function ay(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function oy(e){return ry(e).join(`_`)}function sy(e,t){let n=rt(t.getFieldInstance(e));if(n)return n;let r=iy(ry(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function cy(e){let[t]=om(),n=h.useRef({}),r=h.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=oy(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=sy(e,r);a&&(Eae(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);Sr(t?.focus)?t.focus():sy(e,r)?.focus?.()},getFieldInstance:e=>{let t=oy(e);return n.current[t]}},[e,t]);return[r]}var kae=h.forwardRef((e,t)=>{let n=h.useContext(Cu),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:g}=Ur(`form`),{prefixCls:_,className:v,rootClassName:y,size:b,disabled:x=n,form:S,colon:C,labelAlign:w,labelWrap:T,labelCol:E,wrapperCol:D,layout:O=`horizontal`,scrollToFirstError:k,requiredMark:A,onFinishFailed:j,name:M,style:N,feedbackIcons:P,variant:F,classNames:I,styles:L,tooltip:R,...z}=e,B=ed(b),V=h.useContext(zc),H=h.useMemo(()=>A===void 0?a===void 0?!0:a:A,[A,a]),U=C??o,W=w??p,G=T??g,ee={...f,...R},K=r(`form`,_),te=og(K),[ne,re]=Jv(K,te),ie={...e,size:B,disabled:x,layout:O,colon:U,requiredMark:H,labelAlign:W,labelWrap:G},ae=jr(l),oe=jr(N),[se,ce]=Nr([d,I],[u,ae,L,oe],{props:ie}),le=m(K,`${K}-${O}`,{[`${K}-hide-required-mark`]:H===!1,[`${K}-rtl`]:i===`rtl`,[`${K}-large`]:B===`large`,[`${K}-small`]:B===`small`},re,te,ne,c,v,y,se.root),[ue]=cy(S),{__INTERNAL__:de}=ue;de.name=M;let fe=h.useMemo(()=>({name:M,labelAlign:W,labelCol:E,labelWrap:G,wrapperCol:D,layout:O,colon:U,requiredMark:H,itemRef:de.itemRef,form:ue,feedbackIcons:P,tooltip:ee,classNames:se,styles:ce}),[M,W,G,E,D,O,U,H,ue,P,se,ce,ee]),pe=h.useRef(null);h.useImperativeHandle(t,()=>({...ue,nativeElement:pe.current?.nativeElement}));let me=(e,t)=>{if(e){let n={block:`nearest`};xr(e)&&(n={...n,...e}),ue.scrollToField(t,n)}},he=e=>{if(j?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(k!==void 0){me(k,t);return}s!==void 0&&me(s,t)}};return h.createElement(ym.Provider,{value:F},h.createElement(wu,{disabled:x},h.createElement(Tu.Provider,{value:B},h.createElement(hm,{validateMessages:V},h.createElement(pm.Provider,{value:fe},h.createElement(vm,{status:!0},h.createElement(fm,{id:M,...z,name:M,onFinishFailed:he,form:ue,ref:pe,style:ce?.root,className:le})))))))}),Aae=e=>{if(Sr(e))return e;let t=rn(e);return t.length<=1?t[0]:t},ly=()=>{let{status:e,errors:t=[],warnings:n=[]}=h.useContext(_m);return{status:e,errors:t,warnings:n}};ly.Context=_m;function jae(e){let[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),a=h.useRef(!1);h.useEffect(()=>(a.current=!1,()=>{a.current=!0,nn.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=nn(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var Mae=()=>{let{itemRef:e}=h.useContext(pm),t=h.useRef({});return(n,r)=>{let i=r&&xr(r)&&Ve(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Ie(e(n),i)),t.current.ref}},Nae=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},Pae=wc([`Form`,`item-item`],(e,{rootPrefixCls:t})=>Nae(qv(e,t))),Fae=24,Iae=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:g}=e,_=`${t}-item`,v=h.useContext(pm),{classNames:y,styles:b}=v,x=h.useMemo(()=>{let e={...i||v.wrapperCol||{}};return g===null&&!r&&!i&&v.labelCol&&[void 0].concat(gr(dg)).forEach(t=>{let n=t?[t]:[],r=on(v.labelCol,n),i=xr(r)?r:{},a=on(e,n),o=xr(a)?a:{};`span`in i&&!(`offset`in o)&&i.span{let{labelCol:e,wrapperCol:t,...n}=v;return n},[v]),w=h.useRef(null),[T,E]=h.useState(0);ge(()=>{l&&w.current?E(w.current.clientHeight):E(0)},[l]);let D=h.createElement(`div`,{className:`${_}-control-input`},h.createElement(`div`,{className:m(`${_}-control-input-content`,y?.content),style:b?.content},a)),O=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),k=f!==null||o.length||s.length?h.createElement(gm.Provider,{value:O},h.createElement(Zv,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${_}-explain-connected`,onVisibleChanged:p})):null,A={};d&&(A.id=`${d}_extra`);let j=l?h.createElement(`div`,{...A,className:m(`${_}-extra`,y?.extra),style:b?.extra,ref:w},l):null,M=k||j?h.createElement(`div`,{className:`${_}-additional`,style:f?{minHeight:f+T}:{}},k,j):null,N=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:D,errorList:k,extra:j}):h.createElement(h.Fragment,null,D,M);return h.createElement(pm.Provider,{value:C},h.createElement(gg,{...x,className:S},N),h.createElement(Pae,{prefixCls:t}))},Lae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`}}))());function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,uy({},e,{ref:t,icon:Lae.default}))),zae=(e,t)=>vr(e)?xr(e)&&!(0,h.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,dy=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return h.createElement(`div`,{id:r,className:m(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},fy={shiftX:64,adjustY:1},py={adjustX:1,shiftY:!0},my=[0,0],Bae={left:{points:[`cr`,`cl`],overflow:py,offset:[-4,0],targetOffset:my},right:{points:[`cl`,`cr`],overflow:py,offset:[4,0],targetOffset:my},top:{points:[`bc`,`tc`],overflow:fy,offset:[0,-4],targetOffset:my},bottom:{points:[`tc`,`bc`],overflow:fy,offset:[0,4],targetOffset:my},topLeft:{points:[`bl`,`tl`],overflow:fy,offset:[0,-4],targetOffset:my},leftTop:{points:[`tr`,`tl`],overflow:py,offset:[-4,0],targetOffset:my},topRight:{points:[`br`,`tr`],overflow:fy,offset:[0,-4],targetOffset:my},rightTop:{points:[`tl`,`tr`],overflow:py,offset:[4,0],targetOffset:my},bottomRight:{points:[`tr`,`br`],overflow:fy,offset:[0,4],targetOffset:my},rightBottom:{points:[`bl`,`br`],overflow:py,offset:[4,0],targetOffset:my},bottomLeft:{points:[`tl`,`bl`],overflow:fy,offset:[0,4],targetOffset:my},leftBottom:{points:[`br`,`bl`],overflow:py,offset:[-4,0],targetOffset:my}};function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:g,arrowContent:_,overlay:v,id:y,showArrow:b=!0,classNames:x,styles:S,...C}=e,w=we(y),T=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,()=>T.current);let E={...C};`visible`in e&&(E.popupVisible=e.visible);let D=h.useMemo(()=>{if(!b)return!1;let e=b===!0?{}:b;return{...e,className:m(e.className,x?.arrow),style:{...e.style,...S?.arrow},content:e.content??_}},[b,x?.arrow,S?.arrow,_]);return h.createElement(hu,hy({popupClassName:x?.root,prefixCls:a,popup:h.createElement(dy,{key:`content`,prefixCls:a,id:w,classNames:x,styles:S},v),action:n,builtinPlacements:Bae,popupPlacement:u,ref:T,popupAlign:d,getPopupContainer:g,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:S?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:S?.uniqueContainer},E),({open:e})=>{let t=h.Children.only(o),n={"aria-describedby":v&&e?w:void 0};return h.cloneElement(t,n)})});function gy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var _y=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Tc(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Tv(e,t,u?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}}};function Hae(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=xr(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var vy={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`]}},Uae={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`]}},Wae=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function yy(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=gy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(vy).forEach(e=>{let a={...r&&Uae[e]||vy[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Wae.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Hae(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var by=h.createContext(!1),xy=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return h.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},Sy=`50%`,Gae=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Tc(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${q(e.calc(u).div(2).equal())} ${q(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,Sy),`var(--arrow-y, ${Sy})`].join(` `)};return[{[n]:{...io(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,filter:l,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,$d(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-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(o,8)}},[`${n}-content`]:{position:`relative`},...Ec(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},_y(e,g(`arrow-background-color`),{arrowShadow:!1}),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),filter:l,"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Kae=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...gy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...wv(Go(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Cy=(e,t,n=!0)=>Sc(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Gae(Go(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Of(e,`zoom-big-fast`)]},Kae,{resetStyle:!1,injectStyle:n})(e,t),qae=ns.map(e=>`${e}-inverse`),Jae=[`success`,`processing`,`error`,`default`,`warning`];function wy(e,t=!0){return t?[].concat(gr(qae),gr(ns)).includes(e):ns.includes(e)}function Yae(e){return Jae.includes(e)}var Ty=(e,t,n)=>{let r=wy(n),[i]=Tc(e,`tooltip`),a=m({[`${t}-${n}`]:n&&r}),o={},s={},c=qf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},Xae=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=h.useContext(Br),u=l(`tooltip`,t),d=l(),f=og(u),[p,g]=Cy(u,f),_=Ty(d,u,a),v=_.arrowStyle,y=h.useMemo(()=>({container:{...o,..._.overlayStyle}}),[o,_.overlayStyle]),b={...e,placement:r},[x,S]=Nr([s],[y,c],{props:b}),C=m(f,p,g,u,`${u}-pure`,`${u}-placement-${r}`,n,_.className);return h.createElement(`div`,{className:C,style:v},h.createElement(`div`,{className:`${u}-arrow`}),h.createElement(dy,{...e,className:p,prefixCls:u,classNames:x,styles:S},i))},Ey=h.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:g,autoAdjustOverflow:_=!0,motion:v,getPopupContainer:y,placement:b=`top`,mouseEnterDelay:x=.1,mouseLeaveDelay:S=.1,rootClassName:C,styles:w,classNames:T,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=xc(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Ur(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=xy(c,V),W=U.show,G=p||H||`hover`,ee=y||N,K=u??!!l,te=h.useContext(by);Lr(`Tooltip`);let ne=h.useRef(null),re=()=>{ne.current?.forceAlign()};h.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:ne.current?.nativeElement,popupElement:ne.current?.popupElement}));let[ie,ae]=ye(e.defaultOpen??!1,e.open),oe=!d&&!f&&d!==0,se=e=>{ae(oe?!1:e),!oe&&E&&E(e)},ce=h.useMemo(()=>g||yy({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:_,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,g,j,W,_]),le=h.useMemo(()=>d===0?d:f||d||``,[f,d]),ue=h.createElement(X_,{space:!0,form:!0},Sr(le)?le():le),de={...e,trigger:G,builtinPlacements:ce,getPopupContainer:ee,destroyOnHidden:K},[fe,pe]=Nr([z,T],[B,w],{props:de}),me=P(`tooltip`,n),he=P(),ge=ie;(!(`open`in e)&&oe||te)&&(ge=!1);let _e=h.isValidElement(o)&&!gu(o)?o:h.createElement(`span`,null,o),ve=_e.props,be=!ve.className||typeof ve.className==`string`?m(ve.className,r||`${me}-open`):ve.className,xe=og(me),[Se,Ce]=Cy(me,xe,!M),we=Ty(he,me,a),Te=we.arrowStyle,Ee=m(xe,Se,Ce),De=m(k,{[`${me}-rtl`]:F===`rtl`},we.className,C,Ee,L,fe.root),[Oe,ke]=Ed(`Tooltip`,A.zIndex),Ae={...pe.container,...D,...we.overlayStyle},je=h.createElement(Vae,{unique:!0,...A,zIndex:Oe,showArrow:W,placement:b,mouseEnterDelay:x,mouseLeaveDelay:S,prefixCls:me,classNames:{root:De,container:fe.container,arrow:fe.arrow,uniqueContainer:m(Ee,fe.container)},styles:{root:{...Te,...pe.root,...R,...O},container:Ae,uniqueContainer:Ae,arrow:pe.arrow},ref:ne,overlay:ue,visible:ge,onVisibleChange:se,afterVisibleChange:s,arrowContent:h.createElement(`span`,{className:`${me}-arrow-content`}),motion:{motionName:Kf(he,`zoom-big-fast`,typeof v?.motionName==`string`?v?.motionName:void 0),motionDeadline:1e3},trigger:G,builtinPlacements:ce,getTooltipContainer:ee,destroyOnHidden:K},ge?vu(_e,{className:be}):_e);return h.createElement(bd.Provider,{value:ke},je)});Ey._InternalPanelDoNotUseOrYouWillBeFired=Xae,Ey.UniqueProvider=Su;var Zae=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=$c(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:g,classNames:_,styles:v,tooltip:y}=h.useContext(pm);if(!t)return null;let b=r||f||{},x=i||d,S=`${e}-item-label`,C=m(S,x===`left`&&`${S}-left`,b.className,{[`${S}-wrap`]:!!p}),w=t,T=a===!0||g!==!1&&a!==!1;T&&!l&&typeof t==`string`&&t.trim()&&(w=t.replace(/[:|:]\s*$/,``));let E=zae(c,y);if(E){let t=h.createElement(Ey,{...E},h.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||h.createElement(Rae,null)));w=h.createElement(h.Fragment,null,w,t)}let D=s===`optional`,O=Sr(s),k=s===!1;O?w=s(w,{required:!!o}):D&&!o&&(w=h.createElement(h.Fragment,null,w,h.createElement(`span`,{className:`${e}-item-optional`},u?.optional||Kc.Form?.optional)));let A;k?A=`hidden`:(D||O)&&(A=`optional`);let j=m(_?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!T});return h.createElement(gg,{...b,className:C},h.createElement(`label`,{htmlFor:n,className:j,style:v?.label,title:typeof t==`string`?t:void 0},w))},Qae={success:K,warning:le,error:re,validating:Hd};function Dy({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=h.useContext(pm),d=ay(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:_,name:v}=h.useContext(_m),y=h.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?Qae[d]:null;e=a!==!1&&o?h.createElement(`span`,{className:m(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||h.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??g),i.feedbackIcon=r===void 0?_:i.feedbackIcon,i.name=c??v),i},[d,r,s,f,p]);return h.createElement(_m.Provider,{value:y},e)}function $ae(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:g,isRequired:_,onSubItemMetaChange:v,layout:y,name:b,...x}=e,S=`${t}-item`,{requiredMark:C,layout:w}=h.useContext(pm),T=y||w,E=T===`vertical`,D=h.useRef(null),O=Wv(o),k=Wv(s),A=_r(a)&&a!==!1,j=!!(A||o.length||s.length),M=!!D.current&&it(D.current),[N,P]=h.useState(null);ge(()=>{if(j&&D.current){let e=getComputedStyle(D.current);P(Number.parseInt(e.marginBottom,10))}},[j,M]);let F=e=>{e||P(null)},I=((e=!1)=>ay(e?O:l.errors,e?k:l.warnings,l,``,!!u,c))(),L=m(S,n,r,{[`${S}-with-help`]:A||O.length||k.length,[`${S}-has-feedback`]:I&&u,[`${S}-has-success`]:I===`success`,[`${S}-has-warning`]:I===`warning`,[`${S}-has-error`]:I===`error`,[`${S}-is-validating`]:I===`validating`,[`${S}-hidden`]:d,[`${S}-${T}`]:T});return h.createElement(`div`,{className:L,style:i,ref:D},h.createElement(yg,{className:`${S}-row`,...Wt(x,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},h.createElement(Zae,{htmlFor:p,...e,requiredMark:C,required:g??_,prefixCls:t,vertical:E}),h.createElement(Iae,{...e,...l,errors:O,warnings:k,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},h.createElement(mm.Provider,{value:v},h.createElement(Dy,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:I,name:b},f)))),!!N&&h.createElement(`div`,{className:`${S}-margin-offset`,style:{marginBottom:-N}}))}var eoe=`__SPLIT__`;function toe(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||Sr(r)||Sr(i)})}var noe=h.memo(e=>e.children,(e,t)=>toe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function Oy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function roe(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:g,help:_,layout:v}=e,{getPrefixCls:y}=h.useContext(Br),{name:b}=h.useContext(pm),x=Aae(c),S=Sr(x),C=h.useContext(mm),{validateTrigger:w}=h.useContext(bp),T=_r(p)?p:w,E=_r(t),D=y(`form`,a),O=og(D),[k,A]=Jv(D,O);Lr(`Form.Item`);let j=h.useContext(xp),M=h.useRef(null),[N,P]=jae({}),[F,I]=ve(()=>Oy()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?Oy():e,!0),n&&_!==!1&&C){let n=e.name;if(e.destroy)n=M.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(gr(r)),M.current=n}C(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(gr(e.name.slice(0,-1)),gr(t)).join(eoe);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=h.useMemo(()=>{let e=gr(F.errors),t=gr(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,gr(n.errors||[])),t.push.apply(t,gr(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=Mae();function H(i,a,o){return n&&!g?h.createElement(Dy,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):h.createElement($ae,{key:`row`,...e,className:m(r,A,O,k),prefixCls:D,fieldId:a,isRequired:o,errors:z,warnings:B,meta:F,onSubItemMetaChange:R,layout:v,name:t},i)}if(!E&&!S&&!i)return H(x);let U={};return typeof u==`string`?U.label=u:t&&(U.label=String(t)),d&&(U={...U,...d}),h.createElement(tm,{...e,messageVariables:U,trigger:f,validateTrigger:T,onMetaChange:L},(n,r,a)=>{let c=ry(t).length&&r?r.name:[],u=iy(c,b),d=l===void 0?s?.some(e=>{if(xr(e)&&e.required&&!e.warningOnly)return!0;if(Sr(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(x)&&E)m=x;else if(!(S&&(!(o||i)||E))&&!(i&&!S&&!E))if(h.isValidElement(x)){let t={...x.props,...p};if(t.id||=u,_||z.length>0||B.length>0||e.extra){let n=[];(_||z.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}z.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),Re(x)&&(t.ref=V(c,x)),new Set([].concat(gr(ry(f)),gr(ry(T)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),x.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=h.createElement(noe,{control:p,update:x,childProps:n},vu(x,t))}else m=S&&(o||i)&&!E?x(a):x;return H(m,u,d)})}var ky=roe;ky.useStatus=ly;var ioe=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=h.useContext(Br),i=r(`form`,e),a=h.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return h.createElement(nm,{...n},(e,n,r)=>h.createElement(gm.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function aoe(){let{form:e}=h.useContext(pm);return e}var Ay=kae;Ay.Item=ky,Ay.List=ioe,Ay.ErrorList=Zv,Ay.useForm=cy,Ay.useFormInstance=aoe,Ay.useWatch=dm,Ay.Provider=hm;function jy(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function My(e){return e?yr(e):!1}var ooe=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Tc(f,`space-addon`);return{[t]:[{...io(e),display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-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`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-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}}]}},soe=Sc(`Addon`,e=>[ooe(e),cp(e,{focus:!1})]),Ny=h.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=h.useContext(Br),f=u(`space-addon`,a),[p,g]=soe(f),{compactItemClassnames:_,compactSize:v}=Od(f,d),y=Z_(f,c),b=m(f,p,_,g,`${f}-variant-${o}`,y,{[`${f}-${v}`]:v,[`${f}-disabled`]:s},n);return h.createElement(`div`,{ref:t,className:b,style:i,...l},r)}),Py=h.createContext({latestIndex:0}),coe=Py.Provider,loe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=h.useContext(Py);return vr(i)?h.createElement(h.Fragment,null,h.createElement(`div`,{className:t,style:o},i),r{let{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`}}}},doe=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},foe=Sc(`Space`,e=>{let t=Go(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[uoe(t),doe(t)]},()=>({}),{resetStyle:!1}),Fy=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Ur(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:g,orientation:_,prefixCls:v,split:y,separator:b,style:x,vertical:S,wrap:C=!1,classNames:w,styles:T,...E}=e,[D,O]=Array.isArray(l)?l:[l,l],k=jy(O),A=jy(D),j=My(O),M=My(D),N=rn(p,{keepEmpty:!0}),[P,F]=hd(_,S,g),I=u===void 0&&!F?`center`:u,L=b??y,R=n(`space`,v),[z,B]=foe(R),V={...e,size:l,orientation:P,align:I},[H,U]=Nr([s,w],[c,T],{props:V}),W=m(R,a,z,`${R}-${P}`,{[`${R}-rtl`]:r===`rtl`,[`${R}-align-${I}`]:I,[`${R}-gap-row-${O}`]:k,[`${R}-gap-col-${D}`]:A},d,f,B,H.root),G=m(`${R}-item`,H.item),ee=N.map((e,t)=>{let n=e?.key||`${G}-${t}`;return h.createElement(loe,{prefix:R,classNames:H,styles:U,className:G,key:n,index:t,separator:L,style:U.item},e)}),K=h.useMemo(()=>({latestIndex:N.reduce((e,t,n)=>vr(t)?n:e,0)}),[N]);if(N.length===0)return null;let te={};return C&&(te.flexWrap=`wrap`),!A&&M&&(te.columnGap=D),!k&&j&&(te.rowGap=O),h.createElement(`div`,{ref:t,className:W,style:{...te,...U.root,...o,...x},...E},h.createElement(coe,{value:K},ee))});Fy.Compact=jd,Fy.Addon=Ny;var poe=e=>{let{getPrefixCls:t,direction:n}=(0,h.useContext)(Br),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=Cv(t(`input`)),c=m(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,h.useContext)(_m),u=(0,h.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return h.createElement(_m.Provider,{value:u},h.createElement(Fy.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))};function moe(e){return!!(e.addonBefore||e.addonAfter)}function hoe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Iy(e,t,n){let r=t.cloneNode(!0),i=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=(...e)=>{t.setSelectionRange(...e)},i}function Ly(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=Iy(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=Iy(t,e,r),n(i);return}n(i)}function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:g,allowClear:_,value:v,handleReset:y,hidden:b,classes:x,classNames:S,dataAttrs:C,styles:w,components:T,onClear:E}=e,D=r??n,O=T?.affixWrapper||`span`,k=T?.groupWrapper||`span`,A=T?.wrapper||`span`,j=T?.groupAddon||`span`,M=(0,h.useRef)(null),N=e=>{M.current?.contains(e.target)&&g?.()},P=hoe(e),F=(0,h.cloneElement)(D,{value:v,className:m(D.props?.className,!P&&S?.variant)||null}),I=(0,h.useRef)(null);if(h.useImperativeHandle(t,()=>({nativeElement:I.current||M.current})),P){let e=null;if(_){let t=!d&&!f&&v&&!(typeof _==`object`&&_.disabled),n=`${i}-clear-icon`,r=typeof _==`object`&&_?.clearIcon?_.clearIcon:`✖`;e=h.createElement(`button`,{type:`button`,onClick:e=>{y?.(e),E?.()},onMouseDown:e=>e.preventDefault(),className:m(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o},S?.clear),style:w?.clear},r)}let t=`${i}-affix-wrapper`,n=m(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&_&&v},x?.affixWrapper,S?.affixWrapper,S?.variant),r=(o||_)&&h.createElement(`span`,{className:m(`${i}-suffix`,S?.suffix),style:w?.suffix},e,o);F=h.createElement(O,Ry({className:n,style:w?.affixWrapper,onClick:N},C?.affixWrapper,{ref:M}),a&&h.createElement(`span`,{className:m(`${i}-prefix`,S?.prefix),style:w?.prefix},a),F,r)}if(moe(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=m(`${i}-wrapper`,e,x?.wrapper,S?.wrapper),a=m(n,{[`${n}-disabled`]:d},x?.group,S?.groupWrapper);F=h.createElement(k,{className:a,ref:I},h.createElement(A,{className:r},s&&h.createElement(j,{className:t},s),F,c&&h.createElement(j,{className:t},c)))}return h.cloneElement(F,{className:m(F.props?.className,l)||null,style:{...F.props?.style,...u},hidden:b})});function By(e,t){return h.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function Vy({countConfig:e,value:t,maxLength:n}){return h.useMemo(()=>{let r=e.max??n,i=e.strategy(t),a=!!r&&i>r,o=Number(r)>0;return{mergedMax:r,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${o?` / ${r}`:``}`:void 0}},[e,n,t])}function Hy({countConfig:e,getTarget:t}){let[n,r]=h.useState(null),i=h.useRef(t);return h.useEffect(()=>{i.current=t},[t]),h.useEffect(()=>{n&&(i.current()?.setSelectionRange(...n),r(null))},[n]),h.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),a},[e])}function Uy(e,t){let[n,r]=ye(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:g,showCount:_,count:v,type:y=`text`,classes:b,classNames:x,styles:S,onCompositionStart:C,onCompositionEnd:w,...T}=e,[E,D]=(0,h.useState)(!1),O=(0,h.useRef)(!1),k=(0,h.useRef)(!1),A=(0,h.useRef)(null),j=(0,h.useRef)(null),M=e=>{A.current&&st(A.current,e)},{setValue:N,formatValue:P}=Uy(e.defaultValue,e.value),F=By(v,_),{isOutOfRange:I,dataCount:L}=Vy({countConfig:F,value:P,maxLength:p}),R=Hy({countConfig:F,getTarget:()=>A.current});(0,h.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,h.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let z=(e,t,n)=>{let i=R(t,O.current);n.source===`compositionEnd`&&t===i||(N(i),A.current&&Ly(A.current,e,r,i))},B=e=>{z(e,e.target.value,{source:`change`})},V=e=>{O.current=!1,z(e,e.currentTarget.value,{source:`compositionEnd`}),w?.(e)},H=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},U=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},W=e=>{D(!0),i?.(e)},G=e=>{k.current&&=!1,D(!1),a?.(e)},ee=e=>{N(``),M(),A.current&&Ly(A.current,e,r)},K=I&&`${l}-out-of-range`;return h.createElement(zy,Wy({},T,{prefixCls:l,className:m(f,K),handleReset:ee,value:P,focused:E,triggerFocus:M,suffix:g||F.show?h.createElement(h.Fragment,null,F.show&&h.createElement(`span`,{className:m(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!g},x?.count),style:{...S?.count}},L),g):null,disabled:u,classes:b,classNames:x,styles:S,ref:j}),(()=>{let t=Wt(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return h.createElement(`input`,Wy({autoComplete:n},t,{onChange:B,onFocus:W,onBlur:G,onKeyDown:H,onKeyUp:U,className:m(l,{[`${l}-disabled`]:u},x?.input),style:S?.input,ref:A,size:d,type:y,onCompositionStart:e=>{O.current=!0,C?.(e)},onCompositionEnd:V}))})())}),_oe=` + ${r}-col-xl-24${n}-label`]:Gv(e)},[`@media (max-width: ${q(e.screenXSMax)})`]:[Sae(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Gv(e)}}}],[`@media (max-width: ${q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Gv(e)}}},[`@media (max-width: ${q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Gv(e)}}},[`@media (max-width: ${q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Gv(e)}}}}},wae=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??`auto`,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Kv=(e,t)=>Go(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),qv=Sc(`Form`,(e,{rootPrefixCls:t})=>{let n=Kv(e,t);return[vae(n),yae(n),gae(n),bae(n),xae(n),Cae(n),Jd(n),bf]},wae,{order:-1e3}),Jv=[];function Yv(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Xv=({help:e,helpStatus:t,errors:n=Jv,warnings:r=Jv,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=h.useContext(gm),{classNames:c,styles:l}=h.useContext(pm),u=`${s}-item-explain`,d=og(s),[f,p]=qv(s,d),g=h.useMemo(()=>Gf(s),[s]),_=Uv(n),v=Uv(r),y=_r(e)&&e!==!1,b=h.useMemo(()=>y?[Yv(e,`help`,t)]:[].concat(gr(_.map((e,t)=>Yv(e,`error`,`error`,t))),gr(v.map((e,t)=>Yv(e,`warning`,`warning`,t)))),[e,t,y,_,v]),x=h.useMemo(()=>{let e={};return b.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),b.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[b]),S={};return a&&(S.id=`${a}_help`),h.createElement(ur,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!x.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return h.createElement(`div`,{...S,className:m(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},h.createElement(lr,{keys:x,...Gf(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return h.createElement(`div`,{key:t,className:m(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},Zv=e=>typeof e==`object`&&!!e&&e.nodeType===1,Qv=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,$v=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,Tae=e=>e.parentElement??(e.getRootNode().host||null),ty=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Zv(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Zv(u)&&s(u);){if(u=Tae(u),u===c){l.push(u);break}u!=null&&u===document.body&&$v(u)&&!$v(document.documentElement)||u!=null&&$v(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e=0&&b>=0&&y<=f&&v<=d&&(t===c&&!$v(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?ey(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:ey(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?ey(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:ey(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Eae=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Dae(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(ty(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of ty(e,Eae(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Oae=[`parentNode`],kae=`form_item`;function ny(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ry(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:Oae.includes(n)?`${kae}_${n}`:n}function iy(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function ay(e){return ny(e).join(`_`)}function oy(e,t){let n=rt(t.getFieldInstance(e));if(n)return n;let r=ry(ny(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function sy(e){let[t]=om(),n=h.useRef({}),r=h.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=ay(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=oy(e,r);a&&(Dae(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);Sr(t?.focus)?t.focus():oy(e,r)?.focus?.()},getFieldInstance:e=>{let t=ay(e);return n.current[t]}},[e,t]);return[r]}var Aae=h.forwardRef((e,t)=>{let n=h.useContext(Cu),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:g}=Ur(`form`),{prefixCls:_,className:v,rootClassName:y,size:b,disabled:x=n,form:S,colon:C,labelAlign:w,labelWrap:T,labelCol:E,wrapperCol:D,layout:O=`horizontal`,scrollToFirstError:k,requiredMark:A,onFinishFailed:j,name:M,style:N,feedbackIcons:P,variant:F,classNames:I,styles:L,tooltip:R,...z}=e,B=ed(b),V=h.useContext(zc),H=h.useMemo(()=>A===void 0?a===void 0?!0:a:A,[A,a]),U=C??o,W=w??p,G=T??g,ee={...f,...R},K=r(`form`,_),te=og(K),[ne,re]=qv(K,te),ie={...e,size:B,disabled:x,layout:O,colon:U,requiredMark:H,labelAlign:W,labelWrap:G},ae=jr(l),oe=jr(N),[se,ce]=Nr([d,I],[u,ae,L,oe],{props:ie}),le=m(K,`${K}-${O}`,{[`${K}-hide-required-mark`]:H===!1,[`${K}-rtl`]:i===`rtl`,[`${K}-large`]:B===`large`,[`${K}-small`]:B===`small`},re,te,ne,c,v,y,se.root),[ue]=sy(S),{__INTERNAL__:de}=ue;de.name=M;let fe=h.useMemo(()=>({name:M,labelAlign:W,labelCol:E,labelWrap:G,wrapperCol:D,layout:O,colon:U,requiredMark:H,itemRef:de.itemRef,form:ue,feedbackIcons:P,tooltip:ee,classNames:se,styles:ce}),[M,W,G,E,D,O,U,H,ue,P,se,ce,ee]),pe=h.useRef(null);h.useImperativeHandle(t,()=>({...ue,nativeElement:pe.current?.nativeElement}));let me=(e,t)=>{if(e){let n={block:`nearest`};xr(e)&&(n={...n,...e}),ue.scrollToField(t,n)}},he=e=>{if(j?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(k!==void 0){me(k,t);return}s!==void 0&&me(s,t)}};return h.createElement(ym.Provider,{value:F},h.createElement(wu,{disabled:x},h.createElement(Tu.Provider,{value:B},h.createElement(hm,{validateMessages:V},h.createElement(pm.Provider,{value:fe},h.createElement(vm,{status:!0},h.createElement(fm,{id:M,...z,name:M,onFinishFailed:he,form:ue,ref:pe,style:ce?.root,className:le})))))))}),jae=e=>{if(Sr(e))return e;let t=rn(e);return t.length<=1?t[0]:t},cy=()=>{let{status:e,errors:t=[],warnings:n=[]}=h.useContext(_m);return{status:e,errors:t,warnings:n}};cy.Context=_m;function Mae(e){let[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),a=h.useRef(!1);h.useEffect(()=>(a.current=!1,()=>{a.current=!0,nn.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=nn(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var Nae=()=>{let{itemRef:e}=h.useContext(pm),t=h.useRef({});return(n,r)=>{let i=r&&xr(r)&&Ve(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Ie(e(n),i)),t.current.ref}},Pae=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},Fae=wc([`Form`,`item-item`],(e,{rootPrefixCls:t})=>Pae(Kv(e,t))),Iae=24,Lae=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:g}=e,_=`${t}-item`,v=h.useContext(pm),{classNames:y,styles:b}=v,x=h.useMemo(()=>{let e={...i||v.wrapperCol||{}};return g===null&&!r&&!i&&v.labelCol&&[void 0].concat(gr(dg)).forEach(t=>{let n=t?[t]:[],r=on(v.labelCol,n),i=xr(r)?r:{},a=on(e,n),o=xr(a)?a:{};`span`in i&&!(`offset`in o)&&i.span{let{labelCol:e,wrapperCol:t,...n}=v;return n},[v]),w=h.useRef(null),[T,E]=h.useState(0);ge(()=>{l&&w.current?E(w.current.clientHeight):E(0)},[l]);let D=h.createElement(`div`,{className:`${_}-control-input`},h.createElement(`div`,{className:m(`${_}-control-input-content`,y?.content),style:b?.content},a)),O=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),k=f!==null||o.length||s.length?h.createElement(gm.Provider,{value:O},h.createElement(Xv,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${_}-explain-connected`,onVisibleChanged:p})):null,A={};d&&(A.id=`${d}_extra`);let j=l?h.createElement(`div`,{...A,className:m(`${_}-extra`,y?.extra),style:b?.extra,ref:w},l):null,M=k||j?h.createElement(`div`,{className:`${_}-additional`,style:f?{minHeight:f+T}:{}},k,j):null,N=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:D,errorList:k,extra:j}):h.createElement(h.Fragment,null,D,M);return h.createElement(pm.Provider,{value:C},h.createElement(gg,{...x,className:S},N),h.createElement(Fae,{prefixCls:t}))},Rae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`}}))());function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ly({},e,{ref:t,icon:Rae.default}))),Bae=(e,t)=>vr(e)?xr(e)&&!(0,h.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,uy=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return h.createElement(`div`,{id:r,className:m(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},dy={shiftX:64,adjustY:1},fy={adjustX:1,shiftY:!0},py=[0,0],Vae={left:{points:[`cr`,`cl`],overflow:fy,offset:[-4,0],targetOffset:py},right:{points:[`cl`,`cr`],overflow:fy,offset:[4,0],targetOffset:py},top:{points:[`bc`,`tc`],overflow:dy,offset:[0,-4],targetOffset:py},bottom:{points:[`tc`,`bc`],overflow:dy,offset:[0,4],targetOffset:py},topLeft:{points:[`bl`,`tl`],overflow:dy,offset:[0,-4],targetOffset:py},leftTop:{points:[`tr`,`tl`],overflow:fy,offset:[-4,0],targetOffset:py},topRight:{points:[`br`,`tr`],overflow:dy,offset:[0,-4],targetOffset:py},rightTop:{points:[`tl`,`tr`],overflow:fy,offset:[4,0],targetOffset:py},bottomRight:{points:[`tr`,`br`],overflow:dy,offset:[0,4],targetOffset:py},rightBottom:{points:[`bl`,`br`],overflow:fy,offset:[4,0],targetOffset:py},bottomLeft:{points:[`tl`,`bl`],overflow:dy,offset:[0,4],targetOffset:py},leftBottom:{points:[`br`,`bl`],overflow:fy,offset:[-4,0],targetOffset:py}};function my(){return my=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:g,arrowContent:_,overlay:v,id:y,showArrow:b=!0,classNames:x,styles:S,...C}=e,w=we(y),T=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,()=>T.current);let E={...C};`visible`in e&&(E.popupVisible=e.visible);let D=h.useMemo(()=>{if(!b)return!1;let e=b===!0?{}:b;return{...e,className:m(e.className,x?.arrow),style:{...e.style,...S?.arrow},content:e.content??_}},[b,x?.arrow,S?.arrow,_]);return h.createElement(hu,my({popupClassName:x?.root,prefixCls:a,popup:h.createElement(uy,{key:`content`,prefixCls:a,id:w,classNames:x,styles:S},v),action:n,builtinPlacements:Vae,popupPlacement:u,ref:T,popupAlign:d,getPopupContainer:g,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:S?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:S?.uniqueContainer},E),({open:e})=>{let t=h.Children.only(o),n={"aria-describedby":v&&e?w:void 0};return h.cloneElement(t,n)})});function hy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var gy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Tc(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...wv(e,t,u?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${q(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}}};function Uae(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=xr(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var _y={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`]}},Wae={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`]}},Gae=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function vy(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=hy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(_y).forEach(e=>{let a={...r&&Wae[e]||_y[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Gae.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Uae(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var yy=h.createContext(!1),by=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return h.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},xy=`50%`,Kae=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Tc(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${q(e.calc(u).div(2).equal())} ${q(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,xy),`var(--arrow-y, ${xy})`].join(` `)};return[{[n]:{...io(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,filter:l,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,$d(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-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(o,8)}},[`${n}-content`]:{position:`relative`},...Ec(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},gy(e,g(`arrow-background-color`),{arrowShadow:!1}),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),filter:l,"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},qae=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...hy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Cv(Go(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Sy=(e,t,n=!0)=>Sc(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Kae(Go(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Of(e,`zoom-big-fast`)]},qae,{resetStyle:!1,injectStyle:n})(e,t),Jae=ns.map(e=>`${e}-inverse`),Yae=[`success`,`processing`,`error`,`default`,`warning`];function Cy(e,t=!0){return t?[].concat(gr(Jae),gr(ns)).includes(e):ns.includes(e)}function Xae(e){return Yae.includes(e)}var wy=(e,t,n)=>{let r=Cy(n),[i]=Tc(e,`tooltip`),a=m({[`${t}-${n}`]:n&&r}),o={},s={},c=qf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},Zae=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=h.useContext(Br),u=l(`tooltip`,t),d=l(),f=og(u),[p,g]=Sy(u,f),_=wy(d,u,a),v=_.arrowStyle,y=h.useMemo(()=>({container:{...o,..._.overlayStyle}}),[o,_.overlayStyle]),b={...e,placement:r},[x,S]=Nr([s],[y,c],{props:b}),C=m(f,p,g,u,`${u}-pure`,`${u}-placement-${r}`,n,_.className);return h.createElement(`div`,{className:C,style:v},h.createElement(`div`,{className:`${u}-arrow`}),h.createElement(uy,{...e,className:p,prefixCls:u,classNames:x,styles:S},i))},Ty=h.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:g,autoAdjustOverflow:_=!0,motion:v,getPopupContainer:y,placement:b=`top`,mouseEnterDelay:x=.1,mouseLeaveDelay:S=.1,rootClassName:C,styles:w,classNames:T,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=xc(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Ur(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=by(c,V),W=U.show,G=p||H||`hover`,ee=y||N,K=u??!!l,te=h.useContext(yy);Lr(`Tooltip`);let ne=h.useRef(null),re=()=>{ne.current?.forceAlign()};h.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:ne.current?.nativeElement,popupElement:ne.current?.popupElement}));let[ie,ae]=ye(e.defaultOpen??!1,e.open),oe=!d&&!f&&d!==0,se=e=>{ae(oe?!1:e),!oe&&E&&E(e)},ce=h.useMemo(()=>g||vy({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:_,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,g,j,W,_]),le=h.useMemo(()=>d===0?d:f||d||``,[f,d]),ue=h.createElement(Y_,{space:!0,form:!0},Sr(le)?le():le),de={...e,trigger:G,builtinPlacements:ce,getPopupContainer:ee,destroyOnHidden:K},[fe,pe]=Nr([z,T],[B,w],{props:de}),me=P(`tooltip`,n),he=P(),ge=ie;(!(`open`in e)&&oe||te)&&(ge=!1);let _e=h.isValidElement(o)&&!gu(o)?o:h.createElement(`span`,null,o),ve=_e.props,be=!ve.className||typeof ve.className==`string`?m(ve.className,r||`${me}-open`):ve.className,xe=og(me),[Se,Ce]=Sy(me,xe,!M),we=wy(he,me,a),Te=we.arrowStyle,Ee=m(xe,Se,Ce),De=m(k,{[`${me}-rtl`]:F===`rtl`},we.className,C,Ee,L,fe.root),[Oe,ke]=Ed(`Tooltip`,A.zIndex),Ae={...pe.container,...D,...we.overlayStyle},je=h.createElement(Hae,{unique:!0,...A,zIndex:Oe,showArrow:W,placement:b,mouseEnterDelay:x,mouseLeaveDelay:S,prefixCls:me,classNames:{root:De,container:fe.container,arrow:fe.arrow,uniqueContainer:m(Ee,fe.container)},styles:{root:{...Te,...pe.root,...R,...O},container:Ae,uniqueContainer:Ae,arrow:pe.arrow},ref:ne,overlay:ue,visible:ge,onVisibleChange:se,afterVisibleChange:s,arrowContent:h.createElement(`span`,{className:`${me}-arrow-content`}),motion:{motionName:Kf(he,`zoom-big-fast`,typeof v?.motionName==`string`?v?.motionName:void 0),motionDeadline:1e3},trigger:G,builtinPlacements:ce,getTooltipContainer:ee,destroyOnHidden:K},ge?vu(_e,{className:be}):_e);return h.createElement(bd.Provider,{value:ke},je)});Ty._InternalPanelDoNotUseOrYouWillBeFired=Zae,Ty.UniqueProvider=Su;var Qae=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=$c(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:g,classNames:_,styles:v,tooltip:y}=h.useContext(pm);if(!t)return null;let b=r||f||{},x=i||d,S=`${e}-item-label`,C=m(S,x===`left`&&`${S}-left`,b.className,{[`${S}-wrap`]:!!p}),w=t,T=a===!0||g!==!1&&a!==!1;T&&!l&&typeof t==`string`&&t.trim()&&(w=t.replace(/[:|:]\s*$/,``));let E=Bae(c,y);if(E){let t=h.createElement(Ty,{...E},h.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||h.createElement(zae,null)));w=h.createElement(h.Fragment,null,w,t)}let D=s===`optional`,O=Sr(s),k=s===!1;O?w=s(w,{required:!!o}):D&&!o&&(w=h.createElement(h.Fragment,null,w,h.createElement(`span`,{className:`${e}-item-optional`},u?.optional||Kc.Form?.optional)));let A;k?A=`hidden`:(D||O)&&(A=`optional`);let j=m(_?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!T});return h.createElement(gg,{...b,className:C},h.createElement(`label`,{htmlFor:n,className:j,style:v?.label,title:typeof t==`string`?t:void 0},w))},$ae={success:K,warning:le,error:re,validating:Hd};function Ey({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=h.useContext(pm),d=iy(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:_,name:v}=h.useContext(_m),y=h.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?$ae[d]:null;e=a!==!1&&o?h.createElement(`span`,{className:m(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||h.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??g),i.feedbackIcon=r===void 0?_:i.feedbackIcon,i.name=c??v),i},[d,r,s,f,p]);return h.createElement(_m.Provider,{value:y},e)}function eoe(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:g,isRequired:_,onSubItemMetaChange:v,layout:y,name:b,...x}=e,S=`${t}-item`,{requiredMark:C,layout:w}=h.useContext(pm),T=y||w,E=T===`vertical`,D=h.useRef(null),O=Uv(o),k=Uv(s),A=_r(a)&&a!==!1,j=!!(A||o.length||s.length),M=!!D.current&&it(D.current),[N,P]=h.useState(null);ge(()=>{if(j&&D.current){let e=getComputedStyle(D.current);P(Number.parseInt(e.marginBottom,10))}},[j,M]);let F=e=>{e||P(null)},I=((e=!1)=>iy(e?O:l.errors,e?k:l.warnings,l,``,!!u,c))(),L=m(S,n,r,{[`${S}-with-help`]:A||O.length||k.length,[`${S}-has-feedback`]:I&&u,[`${S}-has-success`]:I===`success`,[`${S}-has-warning`]:I===`warning`,[`${S}-has-error`]:I===`error`,[`${S}-is-validating`]:I===`validating`,[`${S}-hidden`]:d,[`${S}-${T}`]:T});return h.createElement(`div`,{className:L,style:i,ref:D},h.createElement(yg,{className:`${S}-row`,...Wt(x,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},h.createElement(Qae,{htmlFor:p,...e,requiredMark:C,required:g??_,prefixCls:t,vertical:E}),h.createElement(Lae,{...e,...l,errors:O,warnings:k,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},h.createElement(mm.Provider,{value:v},h.createElement(Ey,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:I,name:b},f)))),!!N&&h.createElement(`div`,{className:`${S}-margin-offset`,style:{marginBottom:-N}}))}var toe=`__SPLIT__`;function noe(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||Sr(r)||Sr(i)})}var roe=h.memo(e=>e.children,(e,t)=>noe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function Dy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ioe(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:g,help:_,layout:v}=e,{getPrefixCls:y}=h.useContext(Br),{name:b}=h.useContext(pm),x=jae(c),S=Sr(x),C=h.useContext(mm),{validateTrigger:w}=h.useContext(bp),T=_r(p)?p:w,E=_r(t),D=y(`form`,a),O=og(D),[k,A]=qv(D,O);Lr(`Form.Item`);let j=h.useContext(xp),M=h.useRef(null),[N,P]=Mae({}),[F,I]=ve(()=>Dy()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?Dy():e,!0),n&&_!==!1&&C){let n=e.name;if(e.destroy)n=M.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(gr(r)),M.current=n}C(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(gr(e.name.slice(0,-1)),gr(t)).join(toe);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=h.useMemo(()=>{let e=gr(F.errors),t=gr(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,gr(n.errors||[])),t.push.apply(t,gr(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=Nae();function H(i,a,o){return n&&!g?h.createElement(Ey,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):h.createElement(eoe,{key:`row`,...e,className:m(r,A,O,k),prefixCls:D,fieldId:a,isRequired:o,errors:z,warnings:B,meta:F,onSubItemMetaChange:R,layout:v,name:t},i)}if(!E&&!S&&!i)return H(x);let U={};return typeof u==`string`?U.label=u:t&&(U.label=String(t)),d&&(U={...U,...d}),h.createElement(tm,{...e,messageVariables:U,trigger:f,validateTrigger:T,onMetaChange:L},(n,r,a)=>{let c=ny(t).length&&r?r.name:[],u=ry(c,b),d=l===void 0?s?.some(e=>{if(xr(e)&&e.required&&!e.warningOnly)return!0;if(Sr(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(x)&&E)m=x;else if(!(S&&(!(o||i)||E))&&!(i&&!S&&!E))if(h.isValidElement(x)){let t={...x.props,...p};if(t.id||=u,_||z.length>0||B.length>0||e.extra){let n=[];(_||z.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}z.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),Re(x)&&(t.ref=V(c,x)),new Set([].concat(gr(ny(f)),gr(ny(T)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),x.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=h.createElement(roe,{control:p,update:x,childProps:n},vu(x,t))}else m=S&&(o||i)&&!E?x(a):x;return H(m,u,d)})}var Oy=ioe;Oy.useStatus=cy;var aoe=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=h.useContext(Br),i=r(`form`,e),a=h.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return h.createElement(nm,{...n},(e,n,r)=>h.createElement(gm.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function ooe(){let{form:e}=h.useContext(pm);return e}var ky=Aae;ky.Item=Oy,ky.List=aoe,ky.ErrorList=Xv,ky.useForm=sy,ky.useFormInstance=ooe,ky.useWatch=dm,ky.Provider=hm;function Ay(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function jy(e){return e?yr(e):!1}var soe=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Tc(f,`space-addon`);return{[t]:[{...io(e),display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-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`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-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}}]}},coe=Sc(`Addon`,e=>[soe(e),cp(e,{focus:!1})]),My=h.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=h.useContext(Br),f=u(`space-addon`,a),[p,g]=coe(f),{compactItemClassnames:_,compactSize:v}=Od(f,d),y=X_(f,c),b=m(f,p,_,g,`${f}-variant-${o}`,y,{[`${f}-${v}`]:v,[`${f}-disabled`]:s},n);return h.createElement(`div`,{ref:t,className:b,style:i,...l},r)}),Ny=h.createContext({latestIndex:0}),loe=Ny.Provider,uoe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=h.useContext(Ny);return vr(i)?h.createElement(h.Fragment,null,h.createElement(`div`,{className:t,style:o},i),r{let{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`}}}},foe=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},poe=Sc(`Space`,e=>{let t=Go(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[doe(t),foe(t)]},()=>({}),{resetStyle:!1}),Py=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Ur(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:g,orientation:_,prefixCls:v,split:y,separator:b,style:x,vertical:S,wrap:C=!1,classNames:w,styles:T,...E}=e,[D,O]=Array.isArray(l)?l:[l,l],k=Ay(O),A=Ay(D),j=jy(O),M=jy(D),N=rn(p,{keepEmpty:!0}),[P,F]=hd(_,S,g),I=u===void 0&&!F?`center`:u,L=b??y,R=n(`space`,v),[z,B]=poe(R),V={...e,size:l,orientation:P,align:I},[H,U]=Nr([s,w],[c,T],{props:V}),W=m(R,a,z,`${R}-${P}`,{[`${R}-rtl`]:r===`rtl`,[`${R}-align-${I}`]:I,[`${R}-gap-row-${O}`]:k,[`${R}-gap-col-${D}`]:A},d,f,B,H.root),G=m(`${R}-item`,H.item),ee=N.map((e,t)=>{let n=e?.key||`${G}-${t}`;return h.createElement(uoe,{prefix:R,classNames:H,styles:U,className:G,key:n,index:t,separator:L,style:U.item},e)}),K=h.useMemo(()=>({latestIndex:N.reduce((e,t,n)=>vr(t)?n:e,0)}),[N]);if(N.length===0)return null;let te={};return C&&(te.flexWrap=`wrap`),!A&&M&&(te.columnGap=D),!k&&j&&(te.rowGap=O),h.createElement(`div`,{ref:t,className:W,style:{...te,...U.root,...o,...x},...E},h.createElement(loe,{value:K},ee))});Py.Compact=jd,Py.Addon=My;var moe=e=>{let{getPrefixCls:t,direction:n}=(0,h.useContext)(Br),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=Sv(t(`input`)),c=m(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,h.useContext)(_m),u=(0,h.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return h.createElement(_m.Provider,{value:u},h.createElement(Py.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))};function hoe(e){return!!(e.addonBefore||e.addonAfter)}function goe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Fy(e,t,n){let r=t.cloneNode(!0),i=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=(...e)=>{t.setSelectionRange(...e)},i}function Iy(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=Fy(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=Fy(t,e,r),n(i);return}n(i)}function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:g,allowClear:_,value:v,handleReset:y,hidden:b,classes:x,classNames:S,dataAttrs:C,styles:w,components:T,onClear:E}=e,D=r??n,O=T?.affixWrapper||`span`,k=T?.groupWrapper||`span`,A=T?.wrapper||`span`,j=T?.groupAddon||`span`,M=(0,h.useRef)(null),N=e=>{M.current?.contains(e.target)&&g?.()},P=goe(e),F=(0,h.cloneElement)(D,{value:v,className:m(D.props?.className,!P&&S?.variant)||null}),I=(0,h.useRef)(null);if(h.useImperativeHandle(t,()=>({nativeElement:I.current||M.current})),P){let e=null;if(_){let t=!d&&!f&&v&&!(typeof _==`object`&&_.disabled),n=`${i}-clear-icon`,r=typeof _==`object`&&_?.clearIcon?_.clearIcon:`✖`;e=h.createElement(`button`,{type:`button`,onClick:e=>{y?.(e),E?.()},onMouseDown:e=>e.preventDefault(),className:m(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o},S?.clear),style:w?.clear},r)}let t=`${i}-affix-wrapper`,n=m(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&_&&v},x?.affixWrapper,S?.affixWrapper,S?.variant),r=(o||_)&&h.createElement(`span`,{className:m(`${i}-suffix`,S?.suffix),style:w?.suffix},e,o);F=h.createElement(O,Ly({className:n,style:w?.affixWrapper,onClick:N},C?.affixWrapper,{ref:M}),a&&h.createElement(`span`,{className:m(`${i}-prefix`,S?.prefix),style:w?.prefix},a),F,r)}if(hoe(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=m(`${i}-wrapper`,e,x?.wrapper,S?.wrapper),a=m(n,{[`${n}-disabled`]:d},x?.group,S?.groupWrapper);F=h.createElement(k,{className:a,ref:I},h.createElement(A,{className:r},s&&h.createElement(j,{className:t},s),F,c&&h.createElement(j,{className:t},c)))}return h.cloneElement(F,{className:m(F.props?.className,l)||null,style:{...F.props?.style,...u},hidden:b})});function zy(e,t){return h.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function By({countConfig:e,value:t,maxLength:n}){return h.useMemo(()=>{let r=e.max??n,i=e.strategy(t),a=!!r&&i>r,o=Number(r)>0;return{mergedMax:r,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${o?` / ${r}`:``}`:void 0}},[e,n,t])}function Vy({countConfig:e,getTarget:t}){let[n,r]=h.useState(null),i=h.useRef(t);return h.useEffect(()=>{i.current=t},[t]),h.useEffect(()=>{n&&(i.current()?.setSelectionRange(...n),r(null))},[n]),h.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),a},[e])}function Hy(e,t){let[n,r]=ye(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:g,showCount:_,count:v,type:y=`text`,classes:b,classNames:x,styles:S,onCompositionStart:C,onCompositionEnd:w,...T}=e,[E,D]=(0,h.useState)(!1),O=(0,h.useRef)(!1),k=(0,h.useRef)(!1),A=(0,h.useRef)(null),j=(0,h.useRef)(null),M=e=>{A.current&&st(A.current,e)},{setValue:N,formatValue:P}=Hy(e.defaultValue,e.value),F=zy(v,_),{isOutOfRange:I,dataCount:L}=By({countConfig:F,value:P,maxLength:p}),R=Vy({countConfig:F,getTarget:()=>A.current});(0,h.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,h.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let z=(e,t,n)=>{let i=R(t,O.current);n.source===`compositionEnd`&&t===i||(N(i),A.current&&Iy(A.current,e,r,i))},B=e=>{z(e,e.target.value,{source:`change`})},V=e=>{O.current=!1,z(e,e.currentTarget.value,{source:`compositionEnd`}),w?.(e)},H=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},U=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},W=e=>{D(!0),i?.(e)},G=e=>{k.current&&=!1,D(!1),a?.(e)},ee=e=>{N(``),M(),A.current&&Iy(A.current,e,r)},K=I&&`${l}-out-of-range`;return h.createElement(Ry,Uy({},T,{prefixCls:l,className:m(f,K),handleReset:ee,value:P,focused:E,triggerFocus:M,suffix:g||F.show?h.createElement(h.Fragment,null,F.show&&h.createElement(`span`,{className:m(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!g},x?.count),style:{...S?.count}},L),g):null,disabled:u,classes:b,classNames:x,styles:S,ref:j}),(()=>{let t=Wt(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return h.createElement(`input`,Uy({autoComplete:n},t,{onChange:B,onFocus:W,onBlur:G,onKeyDown:H,onKeyUp:U,className:m(l,{[`${l}-disabled`]:u},x?.input),style:S?.input,ref:A,size:d,type:y,onCompositionStart:e=>{O.current=!0,C?.(e)},onCompositionEnd:V}))})())}),voe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -220,15 +220,15 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,voe=[`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`],Gy={},Ky;function yoe(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Gy[n])return Gy[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:voe.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Gy[n]=s),s}function boe(e,t=!1,n=null,r=null){Ky||(Ky=document.createElement(`textarea`),Ky.setAttribute(`tab-index`,`-1`),Ky.setAttribute(`aria-hidden`,`true`),Ky.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Ky)),e.getAttribute(`wrap`)?Ky.setAttribute(`wrap`,e.getAttribute(`wrap`)):Ky.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=yoe(e,t);Ky.setAttribute(`style`,`${s};${_oe}`),Ky.value=e.value||e.placeholder||``;let c,l,u,d=Ky.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){Ky.value=` `;let e=Ky.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function qy(){return qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,g]=ye(r,i),_=p??``,v=e=>{g(e.target.value),u?.(e)},y=h.useRef(null);h.useImperativeHandle(t,()=>({textArea:y.current}));let[b,x]=h.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),S=!!a,[C,w]=h.useState(Xy),[T,E]=h.useState(),D=()=>{w(Jy)};ge(()=>{S&&D()},[i,b,x,S]),ge(()=>{if(C===Jy)w(Yy);else if(C===Yy){let e=boe(y.current,!1,b,x);w(Xy),E(e)}},[C]);let O=h.useRef(void 0),k=()=>{O.current!==void 0&&nn.cancel(O.current)},A=e=>{C===Xy&&(o?.(e),a&&(k(),O.current=nn(()=>{D()})))};h.useEffect(()=>k,[]);let j=S?T:null,M={...c,...j};return(C===Jy||C===Yy)&&(M.overflowY=`hidden`,M.overflowX=`hidden`),h.createElement(Fl,{onResize:A,disabled:!(a||o)},h.createElement(`textarea`,qy({},f,{ref:y,style:M,className:m(n,s,{[`${n}-disabled`]:l}),disabled:l,value:_,onChange:v})))});function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[k,A]=h.useState(!1),j=h.useRef(!1),[M,N]=h.useState(null),P=(0,h.useRef)(null),F=(0,h.useRef)(null),I=()=>F.current?.textArea||null,{setValue:L,formatValue:R}=Uy(e,t),z=By(f,d),{isOutOfRange:B,dataCount:V}=Vy({countConfig:z,value:R,maxLength:o}),H=Hy({countConfig:z,getTarget:()=>F.current?.textArea||null}),U=()=>{I()?.focus()};(0,h.useImperativeHandle)(O,()=>({resizableTextArea:F.current,focus:U,blur:()=>{I()?.blur()},nativeElement:P.current?.nativeElement||I()})),(0,h.useEffect)(()=>{A(e=>!_&&e)},[_]);let W=(e,t)=>{let n=H(t,j.current);L(n),Ly(e.currentTarget,e,i,n)},G=e=>{j.current=!0,s?.(e)},ee=e=>{j.current=!1,W(e,e.currentTarget.value),c?.(e)},K=e=>{W(e,e.target.value)},te=e=>{e.key===`Enter`&&C&&!e.nativeEvent.isComposing&&C(e),E?.(e)},ne=e=>{A(!0),n?.(e)},re=e=>{A(!1),r?.(e)},ie=e=>{L(``),U();let t=I();t&&Ly(t,e,i)},ae=l;z.show&&(ae=h.createElement(h.Fragment,null,ae,h.createElement(`span`,{className:m(`${u}-data-count`,y?.count),style:b?.count},V)));let oe=e=>{x?.(e),I()?.style.height&&N(!0)},se=!T&&!d&&!a;return h.createElement(zy,{ref:P,value:R,allowClear:a,handleReset:ie,suffix:ae,prefixCls:u,classNames:{...y,affixWrapper:m(y?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:_,focused:k,className:m(p,B&&`${u}-out-of-range`),style:{...g,...M&&!se?{height:`auto`}:{}},dataAttrs:typeof V==`string`?{affixWrapper:{"data-count":V}}:void 0,styles:b,hidden:v,readOnly:w,onClear:S},h.createElement(xoe,Zy({},D,{autoSize:T,maxLength:o,onKeyDown:te,onChange:K,onFocus:ne,onBlur:re,onCompositionStart:G,onCompositionEnd:ee,className:m(y?.textarea),style:{resize:g?.resize,...b?.textarea},disabled:_,prefixCls:u,onResize:oe,ref:F,readOnly:w})))}),Coe=goe;function Qy(e,t){let n=(0,h.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,h.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function woe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var $y=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:g,styles:_,rootClassName:v,onChange:y,classNames:b,variant:x,...S}=e,{getPrefixCls:C,direction:w,allowClear:T,autoComplete:E,className:D,style:O,classNames:k,styles:A}=Ur(`input`),j=C(`input`,n),M=(0,h.useRef)(null),N=og(j),[P,F]=Sv(j,v);Cv(j,N);let{compactSize:I,compactItemClassnames:L}=Od(j,w),R=ed(e=>a??I??e),z=h.useContext(Cu),B=o??z,V={...e,size:R,disabled:B},H=jr(O),U=jr(g),[W,G]=Nr([k,b],[A,H,_,U],{props:V}),{status:ee,hasFeedback:K,feedbackIcon:te}=(0,h.useContext)(_m),ne=Q_(ee,i);(0,h.useRef)(woe(e)||!!K);let re=Qy(M,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},oe=e=>{re(),y?.(e)},se=(K||l)&&h.createElement(h.Fragment,null,l,K&&te),ce=nd({allowClear:u,contextAllowClear:T,componentName:`Input`}),[le,ue]=bm(`input`,x,r);return h.createElement(Coe,{ref:Ie(t,M),prefixCls:j,autoComplete:E,...S,disabled:B,onBlur:ie,onFocus:ae,style:G.root,styles:G,suffix:se,allowClear:ce,className:m(p,v,F,N,L,D,W.root),onChange:oe,addonBefore:f&&h.createElement(X_,{form:!0,space:!0},f),addonAfter:d&&h.createElement(X_,{form:!0,space:!0},d),classNames:{...W,input:m({[`${j}-sm`]:R===`small`,[`${j}-lg`]:R===`large`,[`${j}-rtl`]:w===`rtl`},W.input,P),variant:m({[`${j}-${le}`]:ue},Z_(j,ne)),affixWrapper:m({[`${j}-affix-wrapper-sm`]:R===`small`,[`${j}-affix-wrapper-lg`]:R===`large`,[`${j}-affix-wrapper-rtl`]:w===`rtl`},P),wrapper:m({[`${j}-group-rtl`]:w===`rtl`},P),groupWrapper:m({[`${j}-group-wrapper-sm`]:R===`small`,[`${j}-group-wrapper-lg`]:R===`large`,[`${j}-group-wrapper-rtl`]:w===`rtl`,[`${j}-group-wrapper-${le}`]:ue},Z_(`${j}-group-wrapper`,ne,K),P)}})}),Toe=e=>{let{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,"&::selection":{color:`transparent`}},[`${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}}}},Eoe=Sc([`Input`,`OTP`],e=>Toe(Go(e,ev(e))),tv),Doe=h.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=h.useContext(Br),d=u(`otp`),f=typeof s==`string`?s:r,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);let g=e=>{i(o,e.target.value)},_=()=>{nn(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},v=e=>{c?.(e),_()},y=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),_()};return h.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&h.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),h.createElement($y,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:g,onFocus:v,onKeyDown:y,onMouseDown:_,onMouseUp:_,className:m(n,{[`${d}-mask-input`]:s})}))});function eb(e){return(e||``).split(``)}var Ooe=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=Sr(r)?r(t):r;return o?h.createElement(`span`,{className:m(`${n}-separator`,i),style:a},o):null},koe=h.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:g,type:_,autoComplete:v,onInput:y,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Ur(`otp`),N=k(`otp`,n),P={...e,length:r},F=jr(j),I=jr(T),[L,R]=Nr([D,S],[O,F,C,I],{props:P}),z=Yt(E,{aria:!0,data:!0,attr:!0}),[B,V]=Eoe(N),H=ed(e=>i??e),U=h.useContext(_m),W=Q_(U.status,f),G=h.useMemo(()=>({...U,status:W,hasFeedback:!1,feedbackIcon:null}),[U,W]),ee=h.useRef(null),K=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{K.current[0]?.focus()},blur:()=>{for(let e=0;ec?c(e):e,[ne,re]=h.useState(()=>eb(te(a||``)));h.useEffect(()=>{o!==void 0&&re(eb(o))},[o]);let ie=pe(e=>{re(e),y&&y(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=pe((e,t)=>{let n=gr(ne);for(let t=0;t=0&&!n[e];--e)n.pop();return n=eb(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),oe=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&K.current[i]?.focus(),ie(n)},se=e=>{K.current[e]?.focus()},ce=(e,t)=>{for(let e=0;e{let n=`otp-${t}`,i=ne[t]||``;return h.createElement(h.Fragment,{key:n},h.createElement(Doe,{ref:e=>{K.current[t]=e},index:t,size:H,htmlSize:1,className:m(L.input,`${N}-input`),style:R.input,onChange:oe,value:i,onActiveChange:se,autoFocus:t===0&&p,onFocus:e=>ce(e,t),...le}),t{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,tb({},e,{ref:t,icon:Aoe.default}))),Moe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,nb({},e,{ref:t,icon:Moe.default}))),Noe=e=>e?h.createElement(rb,null):h.createElement(joe,null),Poe={click:`onClick`,hover:`onMouseOver`},Foe=h.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:_,style:v,classNames:y,styles:b,iconRender:x}=Ur(`inputPassword`),[S]=$c(`global`),C=h.useContext(Cu),w=n??C,T={...e,disabled:w},[E,D]=Nr([y,d],[b,f],{props:T}),O=xr(i)&&i.visible!==void 0,[k,A]=(0,h.useState)(()=>O?i.visible:!1),j=(0,h.useRef)(null);h.useEffect(()=>{O&&A(i.visible)},[O,i]);let M=Qy(j),N=()=>{if(w)return;k&&M();let e=!k;A(e),xr(i)&&i.onVisibleChange?.(e)},P=e=>{let t=Poe[r]||``,n=(a||x||Noe)(k),o=xr(i)?i.tabIndex:void 0;return h.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:w?-1:o??0,className:`${e}-icon`,"aria-disabled":w,"aria-pressed":k,"aria-label":k?S.hide:S.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N())},[t]:N},n)},F=g(`input`,s),I=g(`input-password`,o),L=i&&P(I),R=m(I,_,l,{[`${I}-${e.size}`]:!!e.size}),z={...p,type:k?`text`:`password`,prefixCls:F,suffix:h.createElement(h.Fragment,null,L,c),disabled:w,className:R,style:{...v,...u},classNames:E,styles:D};return h.createElement($y,{ref:Ie(t,j),...z})}),Ioe=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=Tc(n,`input-search`),c=e.inputFontSizeSM??e.fontSize,l=i(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[o(`btn-height`)]:q(e.controlHeight),width:`100%`,[a]:{height:s(`btn-height`),[`&${n}-btn-icon-only`]:{width:s(`btn-height`)},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[o(`btn-height`)]:q(e.controlHeightLG)},[`&${t}-small`]:{[o(`btn-height`)]:q(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},Loe=Sc([`Input`,`Search`],e=>Ioe(Go(e,ev(e))),tv),Roe=h.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:_,variant:v,onPressEnter:y,classNames:b,styles:x,hidden:S,...C}=e,{direction:w,getPrefixCls:T,className:E,style:D,classNames:O,styles:k,searchIcon:A}=Ur(`inputSearch`),j={...e,enterButton:s},[M,N]=Nr([O,b],[k,x],{props:j},{button:{_default:`root`}}),P=h.useRef(!1),F=T(`input-search`,n),I=T(`input`,r),[L,R]=Loe(F),{compactSize:z}=Od(F,w),B=ed(e=>a??z??e),V=h.useRef(null),H=e=>{e?.target&&e.type===`click`&&f&&f(e.target.value,e,{source:`clear`}),p?.(e)},U=e=>{document.activeElement===V.current?.input&&e.preventDefault()},W=e=>{f&&f(V.current?.input?.value,e,{source:`input`})},G=e=>{P.current||u||(y?.(e),W(e))},ee=typeof s==`boolean`?td(c,A,h.createElement(Pv,null)):null,K=`${F}-btn`,te=m(K,{[`${K}-${v}`]:v}),ne,re=s||{},ie=re.type&&re.type.__ANT_BUTTON===!0;if(ie||re.type===`button`){let e=re.props;ne=vu(re,{onMouseDown:U,onClick:e=>{re?.props?.onClick?.(e),W(e)},key:`enterButton`,...ie?{className:m(te,e.className),size:B}:{}})}else ne=h.createElement(gp,{classNames:M.button,styles:N.button,className:te,color:s?`primary`:`default`,size:B,disabled:d,key:`enterButton`,onMouseDown:U,onClick:W,loading:u,icon:ee,variant:v===`borderless`||v===`filled`||v===`underlined`?`text`:s?`solid`:void 0},s);l&&(ne=[ne,vu(l,{key:`addonAfter`})]);let ae=m(F,R,{[`${F}-rtl`]:w===`rtl`,[`${F}-${B}`]:!!B,[`${F}-with-button`]:!!s},i,E,L,M.root),oe=e=>{P.current=!0,g?.(e)},se=e=>{P.current=!1,_?.(e)},ce=Yt(C,{data:!0}),le=Wt({...C,classNames:Wt(M,[`button`,`root`]),styles:Wt(N,[`button`,`root`]),prefixCls:I,type:`search`,size:B,variant:v,onPressEnter:G,onCompositionStart:oe,onCompositionEnd:se,onChange:H,disabled:d},Object.keys(ce));return h.createElement(jd,{className:ae,style:{...N.root,...D,...o},...ce,hidden:S},h.createElement($y,{ref:Ie(V,t),...le}),ne)}),zoe=e=>{let{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`}},[` +`,yoe=[`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`],Wy={},Gy;function boe(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Wy[n])return Wy[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:yoe.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Wy[n]=s),s}function xoe(e,t=!1,n=null,r=null){Gy||(Gy=document.createElement(`textarea`),Gy.setAttribute(`tab-index`,`-1`),Gy.setAttribute(`aria-hidden`,`true`),Gy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Gy)),e.getAttribute(`wrap`)?Gy.setAttribute(`wrap`,e.getAttribute(`wrap`)):Gy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=boe(e,t);Gy.setAttribute(`style`,`${s};${voe}`),Gy.value=e.value||e.placeholder||``;let c,l,u,d=Gy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){Gy.value=` `;let e=Gy.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,g]=ye(r,i),_=p??``,v=e=>{g(e.target.value),u?.(e)},y=h.useRef(null);h.useImperativeHandle(t,()=>({textArea:y.current}));let[b,x]=h.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),S=!!a,[C,w]=h.useState(Yy),[T,E]=h.useState(),D=()=>{w(qy)};ge(()=>{S&&D()},[i,b,x,S]),ge(()=>{if(C===qy)w(Jy);else if(C===Jy){let e=xoe(y.current,!1,b,x);w(Yy),E(e)}},[C]);let O=h.useRef(void 0),k=()=>{O.current!==void 0&&nn.cancel(O.current)},A=e=>{C===Yy&&(o?.(e),a&&(k(),O.current=nn(()=>{D()})))};h.useEffect(()=>k,[]);let j=S?T:null,M={...c,...j};return(C===qy||C===Jy)&&(M.overflowY=`hidden`,M.overflowX=`hidden`),h.createElement(Fl,{onResize:A,disabled:!(a||o)},h.createElement(`textarea`,Ky({},f,{ref:y,style:M,className:m(n,s,{[`${n}-disabled`]:l}),disabled:l,value:_,onChange:v})))});function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[k,A]=h.useState(!1),j=h.useRef(!1),[M,N]=h.useState(null),P=(0,h.useRef)(null),F=(0,h.useRef)(null),I=()=>F.current?.textArea||null,{setValue:L,formatValue:R}=Hy(e,t),z=zy(f,d),{isOutOfRange:B,dataCount:V}=By({countConfig:z,value:R,maxLength:o}),H=Vy({countConfig:z,getTarget:()=>F.current?.textArea||null}),U=()=>{I()?.focus()};(0,h.useImperativeHandle)(O,()=>({resizableTextArea:F.current,focus:U,blur:()=>{I()?.blur()},nativeElement:P.current?.nativeElement||I()})),(0,h.useEffect)(()=>{A(e=>!_&&e)},[_]);let W=(e,t)=>{let n=H(t,j.current);L(n),Iy(e.currentTarget,e,i,n)},G=e=>{j.current=!0,s?.(e)},ee=e=>{j.current=!1,W(e,e.currentTarget.value),c?.(e)},K=e=>{W(e,e.target.value)},te=e=>{e.key===`Enter`&&C&&!e.nativeEvent.isComposing&&C(e),E?.(e)},ne=e=>{A(!0),n?.(e)},re=e=>{A(!1),r?.(e)},ie=e=>{L(``),U();let t=I();t&&Iy(t,e,i)},ae=l;z.show&&(ae=h.createElement(h.Fragment,null,ae,h.createElement(`span`,{className:m(`${u}-data-count`,y?.count),style:b?.count},V)));let oe=e=>{x?.(e),I()?.style.height&&N(!0)},se=!T&&!d&&!a;return h.createElement(Ry,{ref:P,value:R,allowClear:a,handleReset:ie,suffix:ae,prefixCls:u,classNames:{...y,affixWrapper:m(y?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:_,focused:k,className:m(p,B&&`${u}-out-of-range`),style:{...g,...M&&!se?{height:`auto`}:{}},dataAttrs:typeof V==`string`?{affixWrapper:{"data-count":V}}:void 0,styles:b,hidden:v,readOnly:w,onClear:S},h.createElement(Soe,Xy({},D,{autoSize:T,maxLength:o,onKeyDown:te,onChange:K,onFocus:ne,onBlur:re,onCompositionStart:G,onCompositionEnd:ee,className:m(y?.textarea),style:{resize:g?.resize,...b?.textarea},disabled:_,prefixCls:u,onResize:oe,ref:F,readOnly:w})))}),woe=_oe;function Zy(e,t){let n=(0,h.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,h.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function Toe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Qy=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:g,styles:_,rootClassName:v,onChange:y,classNames:b,variant:x,...S}=e,{getPrefixCls:C,direction:w,allowClear:T,autoComplete:E,className:D,style:O,classNames:k,styles:A}=Ur(`input`),j=C(`input`,n),M=(0,h.useRef)(null),N=og(j),[P,F]=xv(j,v);Sv(j,N);let{compactSize:I,compactItemClassnames:L}=Od(j,w),R=ed(e=>a??I??e),z=h.useContext(Cu),B=o??z,V={...e,size:R,disabled:B},H=jr(O),U=jr(g),[W,G]=Nr([k,b],[A,H,_,U],{props:V}),{status:ee,hasFeedback:K,feedbackIcon:te}=(0,h.useContext)(_m),ne=Z_(ee,i);(0,h.useRef)(Toe(e)||!!K);let re=Zy(M,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},oe=e=>{re(),y?.(e)},se=(K||l)&&h.createElement(h.Fragment,null,l,K&&te),ce=nd({allowClear:u,contextAllowClear:T,componentName:`Input`}),[le,ue]=bm(`input`,x,r);return h.createElement(woe,{ref:Ie(t,M),prefixCls:j,autoComplete:E,...S,disabled:B,onBlur:ie,onFocus:ae,style:G.root,styles:G,suffix:se,allowClear:ce,className:m(p,v,F,N,L,D,W.root),onChange:oe,addonBefore:f&&h.createElement(Y_,{form:!0,space:!0},f),addonAfter:d&&h.createElement(Y_,{form:!0,space:!0},d),classNames:{...W,input:m({[`${j}-sm`]:R===`small`,[`${j}-lg`]:R===`large`,[`${j}-rtl`]:w===`rtl`},W.input,P),variant:m({[`${j}-${le}`]:ue},X_(j,ne)),affixWrapper:m({[`${j}-affix-wrapper-sm`]:R===`small`,[`${j}-affix-wrapper-lg`]:R===`large`,[`${j}-affix-wrapper-rtl`]:w===`rtl`},P),wrapper:m({[`${j}-group-rtl`]:w===`rtl`},P),groupWrapper:m({[`${j}-group-wrapper-sm`]:R===`small`,[`${j}-group-wrapper-lg`]:R===`large`,[`${j}-group-wrapper-rtl`]:w===`rtl`,[`${j}-group-wrapper-${le}`]:ue},X_(`${j}-group-wrapper`,ne,K),P)}})}),Eoe=e=>{let{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,"&::selection":{color:`transparent`}},[`${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}}}},Doe=Sc([`Input`,`OTP`],e=>Eoe(Go(e,$_(e))),ev),Ooe=h.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=h.useContext(Br),d=u(`otp`),f=typeof s==`string`?s:r,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);let g=e=>{i(o,e.target.value)},_=()=>{nn(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},v=e=>{c?.(e),_()},y=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),_()};return h.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&h.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),h.createElement(Qy,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:g,onFocus:v,onKeyDown:y,onMouseDown:_,onMouseUp:_,className:m(n,{[`${d}-mask-input`]:s})}))});function $y(e){return(e||``).split(``)}var koe=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=Sr(r)?r(t):r;return o?h.createElement(`span`,{className:m(`${n}-separator`,i),style:a},o):null},Aoe=h.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:g,type:_,autoComplete:v,onInput:y,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Ur(`otp`),N=k(`otp`,n),P={...e,length:r},F=jr(j),I=jr(T),[L,R]=Nr([D,S],[O,F,C,I],{props:P}),z=Yt(E,{aria:!0,data:!0,attr:!0}),[B,V]=Doe(N),H=ed(e=>i??e),U=h.useContext(_m),W=Z_(U.status,f),G=h.useMemo(()=>({...U,status:W,hasFeedback:!1,feedbackIcon:null}),[U,W]),ee=h.useRef(null),K=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{K.current[0]?.focus()},blur:()=>{for(let e=0;ec?c(e):e,[ne,re]=h.useState(()=>$y(te(a||``)));h.useEffect(()=>{o!==void 0&&re($y(o))},[o]);let ie=pe(e=>{re(e),y&&y(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=pe((e,t)=>{let n=gr(ne);for(let t=0;t=0&&!n[e];--e)n.pop();return n=$y(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),oe=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&K.current[i]?.focus(),ie(n)},se=e=>{K.current[e]?.focus()},ce=(e,t)=>{for(let e=0;e{let n=`otp-${t}`,i=ne[t]||``;return h.createElement(h.Fragment,{key:n},h.createElement(Ooe,{ref:e=>{K.current[t]=e},index:t,size:H,htmlSize:1,className:m(L.input,`${N}-input`),style:R.input,onChange:oe,value:i,onActiveChange:se,autoFocus:t===0&&p,onFocus:e=>ce(e,t),...le}),t{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,eb({},e,{ref:t,icon:joe.default}))),Noe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,tb({},e,{ref:t,icon:Noe.default}))),Poe=e=>e?h.createElement(nb,null):h.createElement(Moe,null),Foe={click:`onClick`,hover:`onMouseOver`},Ioe=h.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:_,style:v,classNames:y,styles:b,iconRender:x}=Ur(`inputPassword`),[S]=$c(`global`),C=h.useContext(Cu),w=n??C,T={...e,disabled:w},[E,D]=Nr([y,d],[b,f],{props:T}),O=xr(i)&&i.visible!==void 0,[k,A]=(0,h.useState)(()=>O?i.visible:!1),j=(0,h.useRef)(null);h.useEffect(()=>{O&&A(i.visible)},[O,i]);let M=Zy(j),N=()=>{if(w)return;k&&M();let e=!k;A(e),xr(i)&&i.onVisibleChange?.(e)},P=e=>{let t=Foe[r]||``,n=(a||x||Poe)(k),o=xr(i)?i.tabIndex:void 0;return h.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:w?-1:o??0,className:`${e}-icon`,"aria-disabled":w,"aria-pressed":k,"aria-label":k?S.hide:S.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N())},[t]:N},n)},F=g(`input`,s),I=g(`input-password`,o),L=i&&P(I),R=m(I,_,l,{[`${I}-${e.size}`]:!!e.size}),z={...p,type:k?`text`:`password`,prefixCls:F,suffix:h.createElement(h.Fragment,null,L,c),disabled:w,className:R,style:{...v,...u},classNames:E,styles:D};return h.createElement(Qy,{ref:Ie(t,j),...z})}),Loe=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=Tc(n,`input-search`),c=e.inputFontSizeSM??e.fontSize,l=i(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[o(`btn-height`)]:q(e.controlHeight),width:`100%`,[a]:{height:s(`btn-height`),[`&${n}-btn-icon-only`]:{width:s(`btn-height`)},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[o(`btn-height`)]:q(e.controlHeightLG)},[`&${t}-small`]:{[o(`btn-height`)]:q(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},Roe=Sc([`Input`,`Search`],e=>Loe(Go(e,$_(e))),ev),zoe=h.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:_,variant:v,onPressEnter:y,classNames:b,styles:x,hidden:S,...C}=e,{direction:w,getPrefixCls:T,className:E,style:D,classNames:O,styles:k,searchIcon:A}=Ur(`inputSearch`),j={...e,enterButton:s},[M,N]=Nr([O,b],[k,x],{props:j},{button:{_default:`root`}}),P=h.useRef(!1),F=T(`input-search`,n),I=T(`input`,r),[L,R]=Roe(F),{compactSize:z}=Od(F,w),B=ed(e=>a??z??e),V=h.useRef(null),H=e=>{e?.target&&e.type===`click`&&f&&f(e.target.value,e,{source:`clear`}),p?.(e)},U=e=>{document.activeElement===V.current?.input&&e.preventDefault()},W=e=>{f&&f(V.current?.input?.value,e,{source:`input`})},G=e=>{P.current||u||(y?.(e),W(e))},ee=typeof s==`boolean`?td(c,A,h.createElement(Nv,null)):null,K=`${F}-btn`,te=m(K,{[`${K}-${v}`]:v}),ne,re=s||{},ie=re.type&&re.type.__ANT_BUTTON===!0;if(ie||re.type===`button`){let e=re.props;ne=vu(re,{onMouseDown:U,onClick:e=>{re?.props?.onClick?.(e),W(e)},key:`enterButton`,...ie?{className:m(te,e.className),size:B}:{}})}else ne=h.createElement(gp,{classNames:M.button,styles:N.button,className:te,color:s?`primary`:`default`,size:B,disabled:d,key:`enterButton`,onMouseDown:U,onClick:W,loading:u,icon:ee,variant:v===`borderless`||v===`filled`||v===`underlined`?`text`:s?`solid`:void 0},s);l&&(ne=[ne,vu(l,{key:`addonAfter`})]);let ae=m(F,R,{[`${F}-rtl`]:w===`rtl`,[`${F}-${B}`]:!!B,[`${F}-with-button`]:!!s},i,E,L,M.root),oe=e=>{P.current=!0,g?.(e)},se=e=>{P.current=!1,_?.(e)},ce=Yt(C,{data:!0}),le=Wt({...C,classNames:Wt(M,[`button`,`root`]),styles:Wt(N,[`button`,`root`]),prefixCls:I,type:`search`,size:B,variant:v,onPressEnter:G,onCompositionStart:oe,onCompositionEnd:se,onChange:H,disabled:d},Object.keys(ce));return h.createElement(jd,{className:ae,style:{...N.root,...D,...o},...ce,hidden:S},h.createElement(Qy,{ref:Ie(V,t),...le}),ne)}),Boe=e=>{let{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}}}}}},Boe=Sc([`Input`,`TextArea`],e=>zoe(Go(e,ev(e))),tv,{resetFont:!1}),ib=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:g,onMouseDown:_,onResize:v,...y}=e,{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=Ur(`textArea`),O=h.useContext(Cu),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=h.useContext(_m),N=Q_(A,o),P=jr(T),F=jr(d),[I,L]=Nr([E,c],[D,P,f,F],{props:e}),R=h.useRef(null);h.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:e=>{st(R.current?.resizableTextArea?.textArea,e)},blur:()=>R.current?.blur(),nativeElement:R.current?.nativeElement||null}));let z=b(`input`,n),B=og(z),[V,H]=Sv(z,l);Boe(z,B);let{compactSize:U,compactItemClassnames:W}=Od(z,x),G=ed(e=>i??U??e),[ee,K]=bm(`textArea`,p,r),te=nd({allowClear:s,contextAllowClear:S,componentName:`TextArea`}),[ne,re]=h.useState(!1),[ie,ae]=h.useState(!1),oe=e=>{re(!0),_?.(e);let t=()=>{re(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},se=e=>{if(v?.(e),ne&&Sr(getComputedStyle)){let e=R.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ae(!0)}};return h.createElement(Soe,{autoComplete:C,...y,style:L.root,styles:L,disabled:k,allowClear:te,className:m(H,B,u,l,W,w,I.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:ie}),classNames:{...I,textarea:m({[`${z}-sm`]:G===`small`,[`${z}-lg`]:G===`large`},V,I.textarea,ne&&`${z}-mouse-active`),variant:m({[`${z}-${ee}`]:K},Z_(z,N)),affixWrapper:m(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x===`rtl`,[`${z}-affix-wrapper-sm`]:G===`small`,[`${z}-affix-wrapper-lg`]:G===`large`,[`${z}-textarea-show-count`]:g||e.count?.show},V)},prefixCls:z,suffix:j&&h.createElement(`span`,{className:`${z}-textarea-suffix`},M),showCount:g,ref:R,onResize:se,onMouseDown:oe})}),ab=$y;ab.Group=poe,ab.Search=Roe,ab.TextArea=ib,ab.Password=Foe,ab.OTP=koe;var Voe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ob({},e,{ref:t,icon:Voe.default}))),Uoe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,sb({},e,{ref:t,icon:Uoe.default})));function cb(){return typeof BigInt==`function`}function lb(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ub(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${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function db(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function fb(e){var t=vo(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=vo((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function Goe(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function pb(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function mb(e){var t=String(e);return db(e)?pb(fb(t)):t.includes(`.`)&&gb(t)?t.length-t.indexOf(`.`)-1:0}function hb(e){var t=String(e);if(db(e)){if(e>2**53-1)return String(cb()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(cb()?BigInt(e).toString():-(2**53-1));var n=fb(t),r=pb(n);t=r>100?Goe(n):e.toFixed(r)}return ub(t).fullStr}function gb(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 Koe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`negative`,void 0),xo(this,`integer`,void 0),xo(this,`decimal`,void 0),xo(this,`decimalLen`,void 0),xo(this,`empty`,void 0),xo(this,`nan`,void 0),lb(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(db(n)&&(n=Number(n)),n=typeof n==`string`?n:hb(n),gb(n)){var r=ub(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return Eo(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(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=ub(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*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(e){return this.toString()===e?.toString()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:ub(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),qoe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`number`,void 0),xo(this,`empty`,void 0),lb(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Eo(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(mb(this.number),mb(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(mb(this.number),mb(n));return new e(r.toFixed(i))}},{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(e){return this.toNumber()===e?.toNumber()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:db(this.number)&&mb(this.number)>100?String(this.number):hb(this.number):this.origin}}]),e}();function _b(e){return cb()?new Koe(e):new qoe(e)}function vb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=ub(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?vb(_b(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var yb=_b;function Joe(e,t){let n=(0,h.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e;n.current={start:t,end:r,value:i,beforeTxt:i.substring(0,t),afterTxt:i.substring(r)}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){Rt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Yoe=200,Xoe=600;function bb({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=h.useRef(),l=h.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,Yoe)}c.current=setTimeout(t,Xoe)};h.useEffect(()=>()=>{u(),l.current.forEach(e=>{nn.cancel(e)})},[]);let f=`${e}-action`,p=m(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),g=()=>l.current.push(nn(u));return h.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:g,onMouseLeave:g,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||h.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function xb(e){let t=typeof e==`number`?hb(e):ub(e).fullStr;return t.includes(`.`)?ub(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var Zoe=(()=>{let e=(0,h.useRef)(0),t=()=>{nn.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=nn(()=>{n()})}});function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;te||t.isEmpty()?t.toString():t.toNumber(),wb=e=>{let t=yb(e);return t.isInvalidate()?null:t},Qoe=h.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:g,upHandler:_,downHandler:v,keyboard:y,changeOnWheel:b=!1,controls:x=!0,prefix:S,suffix:C,stringMode:w,parser:T,formatter:E,precision:D,decimalSeparator:O,onChange:k,onInput:A,onPressEnter:j,onStep:M,onMouseDown:N,onClick:P,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,changeOnBlur:B=!0,...V}=e,[H,U]=h.useState(!1),W=h.useRef(!1),G=h.useRef(!1),ee=h.useRef(!1),K=h.useRef(null),te=h.useRef(null);h.useImperativeHandle(t,()=>Xt(te.current,{focus:e=>{st(te.current,e)},blur:()=>{te.current?.blur()},nativeElement:K.current}));let[ne,re]=h.useState(()=>yb(f??d));function ie(e){f===void 0&&re(e)}let ae=h.useCallback((e,t)=>{if(!t)return D>=0?D:Math.max(mb(e),mb(u))},[D,u]),oe=h.useCallback(e=>{let t=String(e);if(T)return T(t);let n=t;return O&&(n=n.replace(O,`.`)),n.replace(/[^\w.-]+/g,``)},[T,O]),se=h.useRef(``),ce=h.useCallback((e,t)=>{if(E)return E(e,{userTyping:t,input:String(se.current)});let n=typeof e==`number`?hb(e):e;if(!t){let e=ae(n,t);gb(n)&&(O||e>=0)&&(n=vb(n,O||`.`,e))}return n},[E,ae,O]),[le,ue]=h.useState(()=>{let e=d??f;return ne.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:ce(ne.toString(),!1)});se.current=le;function de(e,t){ue(ce(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let fe=h.useMemo(()=>wb(l),[l,D]),me=h.useMemo(()=>wb(c),[c,D]),he=h.useMemo(()=>!fe||!ne||ne.isInvalidate()?!1:fe.lessEquals(ne),[fe,ne]),ge=h.useMemo(()=>!me||!ne||ne.isInvalidate()?!1:ne.lessEquals(me),[me,ne]),[ve,ye]=Joe(te.current,H),be=e=>fe&&!e.lessEquals(fe)?fe:me&&!me.lessEquals(e)?me:null,xe=e=>!be(e),Se=(e,t)=>{let n=e,r=xe(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=be(n)||n,r=!0),!g&&!p&&r){let e=n.toString(),r=ae(e,t);return r>=0&&(n=yb(vb(e,`.`,r)),xe(n)||(n=yb(vb(e,`.`,r,!0)))),n.equals(ne)||(ie(n),k?.(n.isEmpty()?null:Cb(w,n)),f===void 0&&de(n,t)),n}return ne},Ce=Zoe(),we=e=>{if(ve(),se.current=e,ue(e),!G.current){let t=yb(oe(e));t.isNaN()||Se(t,!0)}A?.(e),Ce(()=>{let t=e;T||(t=e.replace(/。/g,`.`)),t!==e&&we(t)})},Te=()=>{G.current=!0},Ee=()=>{G.current=!1,we(te.current.value)},De=e=>{we(e.target.value)},Oe=pe((e,t)=>{if(e&&he||!e&&ge)return;W.current=!1;let n=yb(ee.current?xb(u):u);e||(n=n.negate());let r=Se((ne||yb(0)).add(n.toString()),!1);M?.(Cb(w,r),{offset:ee.current?xb(u):u,type:e?`up`:`down`,emitter:t}),te.current?.focus()}),ke=e=>{let t=yb(oe(le)),n;n=t.isNaN()?Se(ne,e):Se(t,e),f===void 0?n.isNaN()||de(n,!1):de(ne,!1)},Ae=()=>{W.current=!0},je=e=>{let{key:t,shiftKey:n}=e;W.current=!0,ee.current=n,t===`Enter`&&(G.current||(W.current=!1),ke(!1),j?.(e)),y!==!1&&!G.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(Oe(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},Me=()=>{W.current=!1,ee.current=!1};h.useEffect(()=>{if(b&&H){let e=e=>{Oe(e.deltaY<0,`wheel`),e.preventDefault()},t=te.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Ne=()=>{B&&ke(!1),U(!1),W.current=!1},Pe=e=>{te.current&&e.target!==te.current&&(te.current.focus(),e.preventDefault()),N?.(e)};_e(()=>{ne.isInvalidate()||de(ne,!1)},[D,E]),_e(()=>{let e=yb(f);re(e);let t=yb(oe(le));(!e.equals(t)||!W.current||E)&&de(e,W.current)},[f]),_e(()=>{E&&ye()},[le]);let Fe={prefixCls:r,onStep:Oe,className:o?.action,style:s?.action},Ie=h.createElement(bb,Sb({},Fe,{action:`up`,disabled:he}),_),Le=h.createElement(bb,Sb({},Fe,{action:`down`,disabled:ge}),v);return h.createElement(`div`,{ref:K,className:m(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:H,[`${r}-disabled`]:p,[`${r}-readonly`]:g,[`${r}-not-a-number`]:ne.isNaN(),[`${r}-out-of-range`]:!ne.isInvalidate()&&!xe(ne)}),style:{...s?.root,...a},onMouseDown:Pe,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,onClick:P,onFocus:()=>{U(!0)},onBlur:Ne,onKeyDown:je,onKeyUp:Me,onCompositionStart:Te,onCompositionEnd:Ee,onBeforeInput:Ae},n===`spinner`&&x&&Le,S!==void 0&&h.createElement(`div`,{className:m(`${r}-prefix`,o?.prefix),style:s?.prefix},S),h.createElement(`input`,Sb({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:u,ref:te,className:m(`${r}-input`,o?.input),style:s?.input,value:le,onChange:De,disabled:p,readOnly:g},V)),C!==void 0&&h.createElement(`div`,{className:m(`${r}-suffix`,o?.suffix),style:s?.suffix},C),n===`spinner`&&x&&Ie,n===`input`&&x&&h.createElement(`div`,{className:m(`${r}-actions`,o?.actions),style:s?.actions},Ie,Le))}),$oe=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...tv(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ps(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},ese=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${q(n)} ${r} ${w}`,[k,A]=Tc(D,`input-number`);return[{[t]:{...io(e),...xv(e),[k(`input-padding-block`)]:q(v),[k(`input-padding-inline`)]:q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...av(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...pv(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),..._v(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...uv(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...io(e),width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`,...vv(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`]:{...ao(),userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}},"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,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:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:q(u),[k(`input-padding-inline`)]:q(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:q(l),[k(`input-padding-inline`)]:q(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},tse=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},nse=Sc(`InputNumber`,e=>{let t=Go(e,ev(e));return[ese(t),tse(t),cp(t)]},$oe,{unitless:{handleOpacity:!0},resetFont:!1}),rse=h.forwardRef((e,t)=>{let n=h.useRef(null);h.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:g=!0,variant:_,className:v,style:y,classNames:b,styles:x,mode:S,...C}=e,{direction:w,className:T,style:E,styles:D,classNames:O}=Ur(`inputNumber`),k=h.useContext(Cu),A=a??k,j=h.useMemo(()=>!g||A||f?!1:g,[g,A,f]),{compactSize:M,compactItemClassnames:N}=Od(o,w),P=S===`spinner`?h.createElement(Nm,null):h.createElement(Woe,null),F=S===`spinner`?h.createElement(Hoe,null):h.createElement(Mv,null),I=typeof j==`boolean`?j:void 0;xr(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:R,feedbackIcon:z}=h.useContext(_m),B=ed(e=>i??M??e),[V,H]=bm(`inputNumber`,_,d),U=L&&h.createElement(h.Fragment,null,z),W={...e,size:B,disabled:A,controls:j},G=jr(E),ee=jr(y),[K,te]=Nr([O,b],[D,G,x,ee],{props:W});return h.createElement(Qoe,{ref:n,mode:S,disabled:A,className:m(v,r,K.root,T,N,Z_(o,p,L),{[`${o}-${V}`]:H,[`${o}-lg`]:B===`large`,[`${o}-sm`]:B===`small`,[`${o}-rtl`]:w===`rtl`,[`${o}-in-form-item`]:R,[`${o}-without-controls`]:!j}),style:te.root,upHandler:P,downHandler:F,prefixCls:o,readOnly:f,controls:I,prefix:l,suffix:U||u,classNames:K,styles:te,...C})}),Tb=h.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=Ur(`inputNumber`),u=l(`input-number`,i),{status:d}=h.useContext(_m),f=Q_(d,o),p=og(u),[g,_]=nse(u,p),v=n||r,y=h.createElement(rse,{ref:t,...c,prefixCls:u,status:f,className:m(_,p,g,a),rootClassName:v?void 0:s});if(v){let t=t=>t?h.createElement(Ny,{className:m(`${u}-addon`,_,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(X_,{form:!0},t)):null,i=t(n),a=t(r);return h.createElement(jd,{rootClassName:s},i,y,a)}return y}),Eb=Tb;Eb._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Uu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(Tb,{...e}));var ise=h.createContext({});function ase(){let[e,t]=h.useState({});return[e,h.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function ose(e,t,n=0){let[r,i]=ase(),[a,o,s,c]=h.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u{let t={offset:Db,threshold:Ob};return e&&typeof e==`object`&&(t.offset=e.offset??Db,t.threshold=e.threshold??Ob),[!!e,t]};function cse(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=pe(t),a=pe(n),[o,s]=h.useState(r>0),c=h.useRef(0),l=h.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=h.useCallback(()=>{u(),s(!1)},[]),f=h.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return h.useEffect(()=>{c.current=0,s(r>0)},[r]),h.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=nn(t))}return t(),()=>{nn.cancel(e)}},[r,o]),[f,d]}function lse(e){let t=h.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=h.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=h.useMemo(()=>Yt(n,!0),[n]);return[!!e,n,r]}var use=({className:e,style:t,percent:n})=>h.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:g,notificationIndex:_,stackInThreshold:v,props:y,duration:b=4.5,showProgress:x,hovering:S,pauseOnHover:C=!0,onClick:w,onMouseEnter:T,onMouseLeave:E,onClose:D}=e,[O,k]=h.useState(0),A=`${n}-notice`,[j,M,N]=lse(p),P=pe(()=>{M.onClose?.(),D?.()}),[F,I]=h.useState(!1),[L,R]=cse(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=s?.progress||use;h.useEffect(()=>{C&&(S?R():F||L())},[S,F,R,L,C]);function V(e){I(!0),C&&R(),T?.(e)}function H(e){I(!1),C&&!S&&L(),E?.(e)}function U(e){e.preventDefault(),e.stopPropagation(),P()}let W=h.useRef(g);g!==void 0&&(W.current=g);let G=h.useRef(_);_!==void 0&&(G.current=_);let ee=g??W.current,K=_??G.current??0,te=c==null?null:h.createElement(`div`,{className:m(`${A}-title`,a?.title),style:o?.title},c),ne=l==null?null:h.createElement(`div`,{className:m(`${A}-description`,a?.description),style:o?.description},l),re=te!==null,ie=ne!==null,ae=null;ae=re&&ie?h.createElement(`div`,{className:m(`${A}-section`,a?.section),style:o?.section},te,ne):te||ne,u!=null&&(ae=h.createElement(`div`,{className:m(`${A}-wrapper`,a?.wrapper),style:o?.wrapper},h.createElement(`div`,{className:m(`${A}-icon`,a?.icon),style:o?.icon},u),ae));let oe=d?h.createElement(`div`,{className:m(`${A}-actions`,a?.actions),style:o?.actions},d):null,se={"--notification-index":K,...o?.root,...i};ee!==void 0&&(se[`--notification-y`]=`${ee}px`);let ce=f??y?.role??`alert`;return h.createElement(`div`,kb({},y,{ref:t,role:ce,"data-notification-index":K,className:m(A,r,a?.root,{[`${A}-closable`]:j,[`${A}-stack-in-threshold`]:v}),style:se,onClick:w,onMouseEnter:V,onMouseLeave:H}),ae,oe,j&&h.createElement(`button`,kb({className:m(`${A}-close`,a?.close),"aria-label":`Close`},N,{style:o?.close,onClick:U}),M.closeIcon),x&&typeof b==`number`&&b>0&&h.createElement(B,{className:m(`${A}-progress`,a?.progress),percent:z,style:o?.progress}))}),jb=h.createContext({}),dse=({children:e,classNames:t})=>{let n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(jb.Provider,{value:n},e)};function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=h.useRef(r),d=r(t[n]=m(...e.map(e=>e?.[n])),t),{})}function mse(e){return Pb.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function hse(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var gse=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...g}=e,{key:_,placement:v,...y}=t,b=String(_),x=Le(c,h.useCallback(e=>{f(b,e)},[f,b]));return h.createElement(Ab,Nb({},y,g,{ref:x,className:m(r?.notice,t.className,o),style:{...s,...t.style},classNames:pse([i,t.classNames]),styles:mse([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(_)}}))},Fb=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:g}=h.useContext(jb),_=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v=typeof c==`function`?c(l):c,[y,{offset:b,threshold:x}]=sse(s),[S,C]=h.useState(!1),w=y&&(S||_.length<=x),T=h.useMemo(()=>{if(!(!y||w))return{offset:b,threshold:x}},[w,b,y,x]),[E,D]=h.useState(0),O=h.useRef(null),[k,A,j,M,N]=ose(t,T,E),P=!!t.length;h.useEffect(()=>{let e=O.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;D(e=>e===r?e:r)},[P]);let F=`${n}-list`;return h.createElement(`div`,{className:m(n,F,`${n}-${l}`,g?.list,u,i?.list,{[`${n}-stack`]:y,[`${n}-stack-expanded`]:w,[`${F}-hovered`]:S}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...a?.list,...d}},h.createElement(fse,{listPrefixCls:F,height:j,topNoticeHeight:M,topNoticeWidth:N,className:i?.listContent,style:a?.listContent,ref:O},h.createElement(lr,Nb({component:!1,keys:_,motionAppear:!0},v,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=hse(_,l),p=y&&d!==void 0&&d{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[g,_]=h.useState([]),[v,y]=h.useState({}),b=h.useRef(!1);h.useImperativeHandle(t,()=>({open:e=>{_(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{_(t=>t.filter(t=>t.key!==e))},destroy:()=>{_([])}})),h.useEffect(()=>{let e={};g.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(v).forEach(t=>{e[t]=e[t]||[]}),y(e)},[g]);let x=pe(e=>{y(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(h.useEffect(()=>{Object.keys(v).length>0?b.current=!0:b.current&&=(f?.(),!1)},[v,f]),!r)return null;let S=Object.keys(v);return(0,Sn.createPortal)(h.createElement(h.Fragment,null,S.map(e=>{let t=h.createElement(Fb,{key:e,configList:v[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{_(t=>t.filter(t=>t.key!==e))},onAllRemoved:x});return m?h.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),vse=()=>document.body,Ib=0;function yse(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function bse(e={}){let{getContainer:t=vse,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}=e,y={placement:i,closable:a,duration:o,showProgress:s},[b,x]=h.useState(),S=h.useRef(null),[C,w]=h.useState([]),T=h.createElement(_se,{container:b,ref:S,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}),E=pe(e=>{let t=yse(y,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Ib}`,Ib+=1),w(e=>[...e,{type:`open`,config:t}])}),D=h.useMemo(()=>({open:E,close:e=>{w(t=>[...t,{type:`close`,key:e}])},destroy:()=>{w(e=>[...e,{type:`destroy`}])}}),[]);return h.useEffect(()=>{x(t())}),h.useEffect(()=>{S.current&&C.length&&(C.forEach(e=>{switch(e.type){case`open`:S.current?.open(e.config);break;case`close`:S.current?.close(e.key);break;case`destroy`:S.current?.destroy();break}}),w(e=>{let t=e.filter(e=>!C.includes(e));return t.length===e.length?e:t}))},[C]),[D,T]}var xse=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},Lb=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=Tc(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${q(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...xse(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},Rb=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...Lb(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...lo(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${q(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},Sse=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=Rb(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},Cse=e=>{let{componentCls:t}=e;return{[t]:Rb(e)}},wse=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Tse=`--notification-margin-edge`,Ese=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),zb=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Dse=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Ese(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},Ose=e=>e===`bottom`?`column-reverse`:`column`,kse=e=>{let t=`var(${Tse}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Ase=e=>e===`bottom`?`center top`:`center bottom`,Bb=e=>q(e.calc(e.marginXXL).mul(-1).equal()),jse=e=>{let t=Bb(e);return`inset(${t} ${t} ${t} ${t})`},Mse=(e,t)=>{let n=Bb(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Nse=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=zb(t.motionOffset),f=zb(t.baseMotionOffset),p=Ase(i);return{[`&${n}-${r}`]:{[i]:kse(i),[a]:`auto`,display:`flex`,flexDirection:Ose(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:Mse(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:jse(e)}}}}},Pse=(e,t=wse)=>{let{notificationMotionOffset:n}=e,r=q(n);return{...t.reduce((t,n)=>({...t,...Nse(e,Dse(n,r))}),{})}},Fse=e=>{let{componentCls:t}=e;return{[t]:Pse(e)}},Ise=3,Vb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Hb=e=>{let t=e.paddingMD,n=e.paddingLG;return Go(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:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Lse=e=>`inset(${e} ${e} ${e} ${e})`,Rse=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},zse=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??Ise)+1})`,l=Lse(q(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...io(e),[i]:q(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...Rse(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}};wc([`Notification`,`PurePanel`],e=>Sse(Hb(e)),Vb);var Ub=(e,t)=>{let n=t.itemStyle??Cse;return[zse(e,t),n(e),Fse(e)]};Sc(`Notification`,e=>Ub(Hb(e),{listWidthKey:`width`}),Vb);var Wb=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Go(Hb(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Gb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Kb=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return Lb(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},Bse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=Kb(e)[n],o={...a,position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":{...o,top:`calc(var(--top-notificiation-height) - ${q(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${q(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${q(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},Vse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=Kb(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},Hse=wc([`Message`,`PurePanel`],e=>Vse(Wb(e)),Gb),Use=e=>({[e.componentCls]:Kb(e)}),qb=Sc(`Message`,e=>{let t=Wb(e);return[Ub(t,{stackVisibleCount:1,itemStyle:Use}),Bse(t)]},Gb),Wse={info:h.createElement(fe,null),success:h.createElement(K,null),error:h.createElement(re,null),warning:h.createElement(le,null),loading:h.createElement(Hd,null)},Jb=(e,t)=>t||e&&Wse[e]||null,Gse=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Ur(`message`),_=t||u(`message`),v=`${_}-notice`,y=og(_),[b,x]=qb(_,y),[S,C]=Nr([p,s],[g,c],{props:e}),w=Jb(i,a),T=i?`${v}-icon-${i}`:void 0,E={wrapper:m(i&&`${_}-${i}`,S.wrapper),icon:m(T,S.icon),title:S.title},D={wrapper:C.wrapper,icon:C.icon,title:C.title};return h.createElement(`div`,{className:m(`${v}-pure-panel`,b,n,x,y,S.root),style:C.root},h.createElement(Hse,{prefixCls:_}),h.createElement(Ab,{...l,prefixCls:_,className:d,style:{...f,...r},duration:null,icon:w,title:o,classNames:E,styles:D}))},Kse=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=Ur(`message`),a=i(`message`),o=og(a),[s,c]=qb(a,o),l=`${a}-notice`,u=t.map(e=>{let{content:t,duration:n,key:r,type:i}=e,o=i?`${l}-icon-${i}`:void 0;return{key:r,duration:n,icon:Jb(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return h.createElement(Fb,{prefixCls:a,placement:`top`,configList:u,className:m(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},qse=(e,t)=>h.useMemo(()=>{let n=e??t;return n?{...xr(t)?t:{},...xr(n)?n:{}}:!1},[e,t]);function Jse(e,t){return{..._r(e)&&{"--notification-top":q(e)},..._r(t)&&{"--notification-bottom":q(t)}}}function Yse(e,t){return{motionName:t??`${e}-fade`}}function Yb(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Xse=8,Zse=3,Qse=!1,$se=({children:e,prefixCls:t})=>{let n=og(t),[r,i]=qb(t,n);return h.createElement(dse,{classNames:{list:m(r,i,n)}},e)},ece=(e,{prefixCls:t,key:n})=>h.createElement($se,{prefixCls:t,key:n},e),tce=h.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=Zse,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:g,direction:_,getPopupContainer:v}=Ur(`message`),{message:y}=h.useContext(Br),b=r||g(`message`),[x,S]=Nr([y?.classNames,c],[y?.styles,l],{props:e}),[C,w]=bse({prefixCls:b,style:()=>Jse(n??Xse),className:()=>m({[`${b}-rtl`]:s??_===`rtl`}),motion:()=>Yse(b,u),closable:!1,duration:o,getContainer:()=>i?.()||v?.()||document.body,maxCount:a,onAllRemoved:p,classNames:x,styles:S,renderNotifications:ece,pauseOnHover:d,stack:qse(f,Qse)});return h.useImperativeHandle(t,()=>({...C,prefixCls:b,message:y})),w}),Xb=0;function Zb(e){let t=h.useRef(null);return Lr(`Message`),[h.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=o?.className||{},c=o?.style||{},l=`${a}-notice`,{content:u,icon:d,type:f,key:p,className:h,style:g,onClose:_,classNames:v={},styles:y={},...b}=r,x=p;_r(x)||(Xb+=1,x=`antd-message-${Xb}`);let S={...e,...r},C=Mr(v,{props:S}),w=Mr(y,{props:S}),T=Jb(f,d),E=f?`${l}-icon-${f}`:void 0;return Yb(e=>(i({...b,key:x,icon:T,title:u,classNames:{...C,wrapper:m(f&&`${a}-${f}`,C.wrapper),icon:m(E,C.icon)},styles:w,placement:`top`,className:m({[`${l}-${f}`]:f},h,s),style:{...c,...g},onClose:()=>{_?.(),e()}}),()=>{n(x)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=xr(t)&&`content`in t?t:{content:t};let o,s;return Sr(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),h.createElement(tce,{key:`message-holder`,...e,ref:t})]}function nce(e){return Zb(e)}var Qb=null,$b=e=>e(),ex=[],tx={};function nx(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=tx,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var rce=h.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,h.useContext)(Br),a=tx.prefixCls||i(`message`),o=(0,h.useContext)(ise),[s,c]=Zb({...n,prefixCls:a,...o.message});return h.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),ice=h.forwardRef((e,t)=>{let[n,r]=h.useState(nx),i=()=>{r(nx)};h.useEffect(i,[]);let a=Vu(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=h.createElement(rce,{ref:t,sync:i,messageConfig:n});return h.createElement(Uu,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),rx=()=>{if(!Qb){let e=document.createDocumentFragment(),t={fragment:e};Qb=t,$b(()=>{bn(h.createElement(ice,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,rx())})}}),e)});return}Qb.instance&&(ex.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:$b(()=>{let t=Qb.instance.open({...tx,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:$b(()=>{Qb?.instance.destroy(e.key)});break;default:$b(()=>{var n;let r=(n=Qb.instance)[t].apply(n,gr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),ex=[])};function ace(e){tx={...tx,...e},$b(()=>{Qb?.sync?.()})}function oce(e){let t=Yb(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return ex.push(r),()=>{n?$b(()=>{n()}):r.skipped=!0}});return rx(),t}function sce(e,t){let n=Yb(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return ex.push(i),()=>{r?$b(()=>{r()}):i.skipped=!0}});return rx(),n}var cce=e=>{ex.push({type:`destroy`,key:e}),rx()},lce=[`success`,`info`,`warning`,`error`,`loading`],ix={open:oce,destroy:cce,config:ace,useMessage:nce,_InternalPanelDoNotUseOrYouWillBeFired:Gse,_InternalListDoNotUseOrYouWillBeFired:Kse};lce.forEach(e=>{ix[e]=(...t)=>sce(e,t)});var ax=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=h.useRef(!1),f=h.useRef(null),[p,m]=ve(!1),g=(...e)=>{a?.(...e)};h.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let _=e=>{Cr(e)&&(m(!0),e.then((...e)=>{m(!1,!0),g.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},v=e=>{if(d.current)return;if(d.current=!0,!u){g();return}let t;if(s){if(t=u(e),l&&!Cr(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!Cr(t)){g();return}_(t)};return h.createElement(gp,{...Id(t),onClick:v,loading:p,prefixCls:r,...i,ref:f},n)},ox=h.createContext({}),{Provider:sx}=ox,cx=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,h.useContext)(ox);return i?h.createElement(ax,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},lx=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,h.useContext)(ox);return h.createElement(ax,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},ux=h.createContext({});function dx(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function uce(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function dce(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=uce(i),n.top+=uce(i,!0),n}var fce=h.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:g,onMouseDown:_,onMouseUp:v,holderRef:y,visible:b,forceRender:x,width:S,height:C,classNames:w,styles:T,isFixedPos:E,focusTrap:D}=e,{panel:O}=h.useContext(ux),k=(0,h.useRef)(null),A=Le(y,O,k),[j]=yt(b&&E&&D!==!1,()=>k.current);h.useImperativeHandle(t,()=>({focus:()=>{k.current?.focus({preventScroll:!0})}}));let M={};S!==void 0&&(M.width=S),C!==void 0&&(M.height=C);let N=s?h.createElement(`div`,{className:m(`${n}-footer`,w?.footer),style:{...T?.footer}},s):null,P=a?h.createElement(`div`,{className:m(`${n}-header`,w?.header),style:{...T?.header}},h.createElement(`div`,{className:m(`${n}-title`,w?.title),id:o,style:{...T?.title}},a)):null,F=(0,h.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??h.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),I=Yt(F,!0),L=typeof c==`object`&&c.disabled,R=c?h.createElement(`button`,fx({type:`button`,onClick:u,"aria-label":`Close`},I,{className:m(`${n}-close`,w?.close),disabled:L,style:T?.close}),F.closeIcon):null,z=h.createElement(`div`,{className:m(`${n}-container`,w?.container),style:T?.container},R,P,h.createElement(`div`,fx({className:m(`${n}-body`,w?.body),style:{...f,...T?.body}},p),d),N);return h.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:A,style:{...i,...M},className:m(n,r),onMouseDown:_,onMouseUp:v,tabIndex:-1,onFocus:e=>{j(e.target)}},h.createElement(fce,{shouldUpdate:b||x},g?g(z):z))});function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,h.useRef)(null),g=(0,h.useRef)(null);h.useImperativeHandle(t,()=>({...g.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[_,v]=h.useState(),y={};_&&(y.transformOrigin=_);function b(){if(!p.current?.nativeElement)return;let e=dce(p.current.nativeElement);v(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return h.createElement(ur,{visible:o,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>h.createElement(pce,px({},e,{ref:g,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,...y},className:m(a,t)})))});function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return h.createElement(ur,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>h.createElement(`div`,mx({ref:a,style:{...r,...n},className:m(`${t}-mask`,e,o)},i)))};function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:g=!0,maskTransitionName:_,maskAnimation:v,maskClosable:y=!0,maskStyle:b,maskProps:x,rootClassName:S,rootStyle:C,classNames:w,styles:T}=e,E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=(0,h.useRef)(null),[k,A]=h.useState(r),[j,M]=h.useState(!1),N=we();function P(){He(D.current,document.activeElement)||(E.current=document.activeElement)}function F(){He(D.current,document.activeElement)||O.current?.focus()}function I(){if(A(!1),g&&E.current&&i){try{E.current.focus({preventScroll:!0})}catch{}E.current=null}k&&u?.()}function L(e){e?F():I(),l?.(e)}function R(e){c?.(e)}let z=(0,h.useRef)(!1),B=null;y&&(B=e=>{D.current===e.target&&z.current&&R(e)});function V(e){z.current=e.target===D.current}(0,h.useEffect)(()=>{r?(z.current=!1,A(!0),P(),D.current&&M(getComputedStyle(D.current).position===`fixed`)):k&&O.current.enableMotion()&&!O.current.inMotion()&&I()},[r]);let H={zIndex:n,...a,...T?.wrapper,display:k?null:`none`};return h.createElement(`div`,hx({className:m(`${t}-root`,S),style:C},Yt(e,{data:!0})),h.createElement(hce,{prefixCls:t,visible:g&&r,motionName:dx(t,_,v),style:{zIndex:n,...b,...T?.mask},maskProps:x,className:w?.mask}),h.createElement(`div`,hx({className:m(`${t}-wrap`,o,w?.wrapper),ref:D,onClick:B,onMouseDown:V,style:H},s),h.createElement(mce,hx({},e,{isFixedPos:j,ref:O,closable:p,ariaId:N,prefixCls:t,visible:r&&k,onClose:R,onVisibleChanged:L,motionName:dx(t,d,f)}))))};function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d,...f}=e,[p,m]=h.useState(t),g=h.useMemo(()=>({panel:s}),[s]);return h.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:h.createElement(ux.Provider,{value:g},h.createElement(bl,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},h.createElement(gce,gx({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},vce=()=>me()&&window.document.documentElement;function yce(e,t,n){return(0,h.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}function bce(){}var xce=h.createContext({add:bce,remove:bce});function Sce(e){let t=h.useContext(xce),n=h.useRef(null);return pe(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var Cce=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(ox);return h.createElement(gp,{onClick:n,...e},t)},wce=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,h.useContext)(ox);return h.createElement(gp,{...Id(n),loading:e,onClick:i,...t},r)};function Tce(e,t){return h.createElement(`span`,{className:`${e}-close-x`},t||h.createElement(oe,{className:`${e}-close-icon`}))}var Ece=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=$c(`Modal`,Zc()),d=t||u?.okText,f=r||u?.cancelText,p=h.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return Sr(l)||l===void 0?(m=h.createElement(h.Fragment,null,h.createElement(Cce,null),h.createElement(wce,null)),Sr(l)&&(m=l(m,{OkBtn:wce,CancelBtn:Cce})),m=h.createElement(sx,{value:p},m)):m=l,h.createElement(wu,{disabled:!1},m)};function Dce(e){return{position:e,inset:0}}var Oce=e=>{let{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`]:{...Dce(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Dce(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:$d(e)}]},kce=e=>{let{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:`${q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...io(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...co(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(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...lo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${q(e.borderRadiusLG)} ${q(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:`${q(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, + `]:{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}}}}}},Voe=Sc([`Input`,`TextArea`],e=>Boe(Go(e,$_(e))),ev,{resetFont:!1}),rb=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:g,onMouseDown:_,onResize:v,...y}=e,{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=Ur(`textArea`),O=h.useContext(Cu),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=h.useContext(_m),N=Z_(A,o),P=jr(T),F=jr(d),[I,L]=Nr([E,c],[D,P,f,F],{props:e}),R=h.useRef(null);h.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:e=>{st(R.current?.resizableTextArea?.textArea,e)},blur:()=>R.current?.blur(),nativeElement:R.current?.nativeElement||null}));let z=b(`input`,n),B=og(z),[V,H]=xv(z,l);Voe(z,B);let{compactSize:U,compactItemClassnames:W}=Od(z,x),G=ed(e=>i??U??e),[ee,K]=bm(`textArea`,p,r),te=nd({allowClear:s,contextAllowClear:S,componentName:`TextArea`}),[ne,re]=h.useState(!1),[ie,ae]=h.useState(!1),oe=e=>{re(!0),_?.(e);let t=()=>{re(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},se=e=>{if(v?.(e),ne&&Sr(getComputedStyle)){let e=R.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ae(!0)}};return h.createElement(Coe,{autoComplete:C,...y,style:L.root,styles:L,disabled:k,allowClear:te,className:m(H,B,u,l,W,w,I.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:ie}),classNames:{...I,textarea:m({[`${z}-sm`]:G===`small`,[`${z}-lg`]:G===`large`},V,I.textarea,ne&&`${z}-mouse-active`),variant:m({[`${z}-${ee}`]:K},X_(z,N)),affixWrapper:m(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x===`rtl`,[`${z}-affix-wrapper-sm`]:G===`small`,[`${z}-affix-wrapper-lg`]:G===`large`,[`${z}-textarea-show-count`]:g||e.count?.show},V)},prefixCls:z,suffix:j&&h.createElement(`span`,{className:`${z}-textarea-suffix`},M),showCount:g,ref:R,onResize:se,onMouseDown:oe})}),ib=Qy;ib.Group=moe,ib.Search=zoe,ib.TextArea=rb,ib.Password=Ioe,ib.OTP=Aoe;var Hoe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ab({},e,{ref:t,icon:Hoe.default}))),Woe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ob({},e,{ref:t,icon:Woe.default})));function sb(){return typeof BigInt==`function`}function cb(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function lb(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${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function ub(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function db(e){var t=vo(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=vo((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function Koe(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function fb(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function pb(e){var t=String(e);return ub(e)?fb(db(t)):t.includes(`.`)&&hb(t)?t.length-t.indexOf(`.`)-1:0}function mb(e){var t=String(e);if(ub(e)){if(e>2**53-1)return String(sb()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(sb()?BigInt(e).toString():-(2**53-1));var n=db(t),r=fb(n);t=r>100?Koe(n):e.toFixed(r)}return lb(t).fullStr}function hb(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 qoe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`negative`,void 0),xo(this,`integer`,void 0),xo(this,`decimal`,void 0),xo(this,`decimalLen`,void 0),xo(this,`empty`,void 0),xo(this,`nan`,void 0),cb(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ub(n)&&(n=Number(n)),n=typeof n==`string`?n:mb(n),hb(n)){var r=lb(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return Eo(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(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=lb(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*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(e){return this.toString()===e?.toString()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:lb(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),Joe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`number`,void 0),xo(this,`empty`,void 0),cb(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Eo(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(pb(this.number),pb(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(pb(this.number),pb(n));return new e(r.toFixed(i))}},{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(e){return this.toNumber()===e?.toNumber()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:ub(this.number)&&pb(this.number)>100?String(this.number):mb(this.number):this.origin}}]),e}();function gb(e){return sb()?new qoe(e):new Joe(e)}function _b(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=lb(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?_b(gb(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var vb=gb;function Yoe(e,t){let n=(0,h.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e;n.current={start:t,end:r,value:i,beforeTxt:i.substring(0,t),afterTxt:i.substring(r)}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){Rt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Xoe=200,Zoe=600;function yb({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=h.useRef(),l=h.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,Xoe)}c.current=setTimeout(t,Zoe)};h.useEffect(()=>()=>{u(),l.current.forEach(e=>{nn.cancel(e)})},[]);let f=`${e}-action`,p=m(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),g=()=>l.current.push(nn(u));return h.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:g,onMouseLeave:g,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||h.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function bb(e){let t=typeof e==`number`?mb(e):lb(e).fullStr;return t.includes(`.`)?lb(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var Qoe=(()=>{let e=(0,h.useRef)(0),t=()=>{nn.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=nn(()=>{n()})}});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;te||t.isEmpty()?t.toString():t.toNumber(),Cb=e=>{let t=vb(e);return t.isInvalidate()?null:t},$oe=h.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:g,upHandler:_,downHandler:v,keyboard:y,changeOnWheel:b=!1,controls:x=!0,prefix:S,suffix:C,stringMode:w,parser:T,formatter:E,precision:D,decimalSeparator:O,onChange:k,onInput:A,onPressEnter:j,onStep:M,onMouseDown:N,onClick:P,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,changeOnBlur:B=!0,...V}=e,[H,U]=h.useState(!1),W=h.useRef(!1),G=h.useRef(!1),ee=h.useRef(!1),K=h.useRef(null),te=h.useRef(null);h.useImperativeHandle(t,()=>Xt(te.current,{focus:e=>{st(te.current,e)},blur:()=>{te.current?.blur()},nativeElement:K.current}));let[ne,re]=h.useState(()=>vb(f??d));function ie(e){f===void 0&&re(e)}let ae=h.useCallback((e,t)=>{if(!t)return D>=0?D:Math.max(pb(e),pb(u))},[D,u]),oe=h.useCallback(e=>{let t=String(e);if(T)return T(t);let n=t;return O&&(n=n.replace(O,`.`)),n.replace(/[^\w.-]+/g,``)},[T,O]),se=h.useRef(``),ce=h.useCallback((e,t)=>{if(E)return E(e,{userTyping:t,input:String(se.current)});let n=typeof e==`number`?mb(e):e;if(!t){let e=ae(n,t);hb(n)&&(O||e>=0)&&(n=_b(n,O||`.`,e))}return n},[E,ae,O]),[le,ue]=h.useState(()=>{let e=d??f;return ne.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:ce(ne.toString(),!1)});se.current=le;function de(e,t){ue(ce(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let fe=h.useMemo(()=>Cb(l),[l,D]),me=h.useMemo(()=>Cb(c),[c,D]),he=h.useMemo(()=>!fe||!ne||ne.isInvalidate()?!1:fe.lessEquals(ne),[fe,ne]),ge=h.useMemo(()=>!me||!ne||ne.isInvalidate()?!1:ne.lessEquals(me),[me,ne]),[ve,ye]=Yoe(te.current,H),be=e=>fe&&!e.lessEquals(fe)?fe:me&&!me.lessEquals(e)?me:null,xe=e=>!be(e),Se=(e,t)=>{let n=e,r=xe(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=be(n)||n,r=!0),!g&&!p&&r){let e=n.toString(),r=ae(e,t);return r>=0&&(n=vb(_b(e,`.`,r)),xe(n)||(n=vb(_b(e,`.`,r,!0)))),n.equals(ne)||(ie(n),k?.(n.isEmpty()?null:Sb(w,n)),f===void 0&&de(n,t)),n}return ne},Ce=Qoe(),we=e=>{if(ve(),se.current=e,ue(e),!G.current){let t=vb(oe(e));t.isNaN()||Se(t,!0)}A?.(e),Ce(()=>{let t=e;T||(t=e.replace(/。/g,`.`)),t!==e&&we(t)})},Te=()=>{G.current=!0},Ee=()=>{G.current=!1,we(te.current.value)},De=e=>{we(e.target.value)},Oe=pe((e,t)=>{if(e&&he||!e&&ge)return;W.current=!1;let n=vb(ee.current?bb(u):u);e||(n=n.negate());let r=Se((ne||vb(0)).add(n.toString()),!1);M?.(Sb(w,r),{offset:ee.current?bb(u):u,type:e?`up`:`down`,emitter:t}),te.current?.focus()}),ke=e=>{let t=vb(oe(le)),n;n=t.isNaN()?Se(ne,e):Se(t,e),f===void 0?n.isNaN()||de(n,!1):de(ne,!1)},Ae=()=>{W.current=!0},je=e=>{let{key:t,shiftKey:n}=e;W.current=!0,ee.current=n,t===`Enter`&&(G.current||(W.current=!1),ke(!1),j?.(e)),y!==!1&&!G.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(Oe(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},Me=()=>{W.current=!1,ee.current=!1};h.useEffect(()=>{if(b&&H){let e=e=>{Oe(e.deltaY<0,`wheel`),e.preventDefault()},t=te.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Ne=()=>{B&&ke(!1),U(!1),W.current=!1},Pe=e=>{te.current&&e.target!==te.current&&(te.current.focus(),e.preventDefault()),N?.(e)};_e(()=>{ne.isInvalidate()||de(ne,!1)},[D,E]),_e(()=>{let e=vb(f);re(e);let t=vb(oe(le));(!e.equals(t)||!W.current||E)&&de(e,W.current)},[f]),_e(()=>{E&&ye()},[le]);let Fe={prefixCls:r,onStep:Oe,className:o?.action,style:s?.action},Ie=h.createElement(yb,xb({},Fe,{action:`up`,disabled:he}),_),Le=h.createElement(yb,xb({},Fe,{action:`down`,disabled:ge}),v);return h.createElement(`div`,{ref:K,className:m(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:H,[`${r}-disabled`]:p,[`${r}-readonly`]:g,[`${r}-not-a-number`]:ne.isNaN(),[`${r}-out-of-range`]:!ne.isInvalidate()&&!xe(ne)}),style:{...s?.root,...a},onMouseDown:Pe,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,onClick:P,onFocus:()=>{U(!0)},onBlur:Ne,onKeyDown:je,onKeyUp:Me,onCompositionStart:Te,onCompositionEnd:Ee,onBeforeInput:Ae},n===`spinner`&&x&&Le,S!==void 0&&h.createElement(`div`,{className:m(`${r}-prefix`,o?.prefix),style:s?.prefix},S),h.createElement(`input`,xb({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:u,ref:te,className:m(`${r}-input`,o?.input),style:s?.input,value:le,onChange:De,disabled:p,readOnly:g},V)),C!==void 0&&h.createElement(`div`,{className:m(`${r}-suffix`,o?.suffix),style:s?.suffix},C),n===`spinner`&&x&&Ie,n===`input`&&x&&h.createElement(`div`,{className:m(`${r}-actions`,o?.actions),style:s?.actions},Ie,Le))}),ese=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...ev(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ps(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},tse=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${q(n)} ${r} ${w}`,[k,A]=Tc(D,`input-number`);return[{[t]:{...io(e),...bv(e),[k(`input-padding-block`)]:q(v),[k(`input-padding-inline`)]:q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...iv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...fv(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...gv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...lv(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...io(e),width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`,..._v(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`]:{...ao(),userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}},"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,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:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:q(u),[k(`input-padding-inline`)]:q(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:q(l),[k(`input-padding-inline`)]:q(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},nse=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},rse=Sc(`InputNumber`,e=>{let t=Go(e,$_(e));return[tse(t),nse(t),cp(t)]},ese,{unitless:{handleOpacity:!0},resetFont:!1}),ise=h.forwardRef((e,t)=>{let n=h.useRef(null);h.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:g=!0,variant:_,className:v,style:y,classNames:b,styles:x,mode:S,...C}=e,{direction:w,className:T,style:E,styles:D,classNames:O}=Ur(`inputNumber`),k=h.useContext(Cu),A=a??k,j=h.useMemo(()=>!g||A||f?!1:g,[g,A,f]),{compactSize:M,compactItemClassnames:N}=Od(o,w),P=S===`spinner`?h.createElement(Nm,null):h.createElement(Goe,null),F=S===`spinner`?h.createElement(Uoe,null):h.createElement(jv,null),I=typeof j==`boolean`?j:void 0;xr(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:R,feedbackIcon:z}=h.useContext(_m),B=ed(e=>i??M??e),[V,H]=bm(`inputNumber`,_,d),U=L&&h.createElement(h.Fragment,null,z),W={...e,size:B,disabled:A,controls:j},G=jr(E),ee=jr(y),[K,te]=Nr([O,b],[D,G,x,ee],{props:W});return h.createElement($oe,{ref:n,mode:S,disabled:A,className:m(v,r,K.root,T,N,X_(o,p,L),{[`${o}-${V}`]:H,[`${o}-lg`]:B===`large`,[`${o}-sm`]:B===`small`,[`${o}-rtl`]:w===`rtl`,[`${o}-in-form-item`]:R,[`${o}-without-controls`]:!j}),style:te.root,upHandler:P,downHandler:F,prefixCls:o,readOnly:f,controls:I,prefix:l,suffix:U||u,classNames:K,styles:te,...C})}),wb=h.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=Ur(`inputNumber`),u=l(`input-number`,i),{status:d}=h.useContext(_m),f=Z_(d,o),p=og(u),[g,_]=rse(u,p),v=n||r,y=h.createElement(ise,{ref:t,...c,prefixCls:u,status:f,className:m(_,p,g,a),rootClassName:v?void 0:s});if(v){let t=t=>t?h.createElement(My,{className:m(`${u}-addon`,_,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(Y_,{form:!0},t)):null,i=t(n),a=t(r);return h.createElement(jd,{rootClassName:s},i,y,a)}return y}),Tb=wb;Tb._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Uu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(wb,{...e}));var ase=h.createContext({});function ose(){let[e,t]=h.useState({});return[e,h.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function sse(e,t,n=0){let[r,i]=ose(),[a,o,s,c]=h.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u{let t={offset:Eb,threshold:Db};return e&&typeof e==`object`&&(t.offset=e.offset??Eb,t.threshold=e.threshold??Db),[!!e,t]};function lse(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=pe(t),a=pe(n),[o,s]=h.useState(r>0),c=h.useRef(0),l=h.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=h.useCallback(()=>{u(),s(!1)},[]),f=h.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return h.useEffect(()=>{c.current=0,s(r>0)},[r]),h.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=nn(t))}return t(),()=>{nn.cancel(e)}},[r,o]),[f,d]}function use(e){let t=h.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=h.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=h.useMemo(()=>Yt(n,!0),[n]);return[!!e,n,r]}var dse=({className:e,style:t,percent:n})=>h.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:g,notificationIndex:_,stackInThreshold:v,props:y,duration:b=4.5,showProgress:x,hovering:S,pauseOnHover:C=!0,onClick:w,onMouseEnter:T,onMouseLeave:E,onClose:D}=e,[O,k]=h.useState(0),A=`${n}-notice`,[j,M,N]=use(p),P=pe(()=>{M.onClose?.(),D?.()}),[F,I]=h.useState(!1),[L,R]=lse(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=s?.progress||dse;h.useEffect(()=>{C&&(S?R():F||L())},[S,F,R,L,C]);function V(e){I(!0),C&&R(),T?.(e)}function H(e){I(!1),C&&!S&&L(),E?.(e)}function U(e){e.preventDefault(),e.stopPropagation(),P()}let W=h.useRef(g);g!==void 0&&(W.current=g);let G=h.useRef(_);_!==void 0&&(G.current=_);let ee=g??W.current,K=_??G.current??0,te=c==null?null:h.createElement(`div`,{className:m(`${A}-title`,a?.title),style:o?.title},c),ne=l==null?null:h.createElement(`div`,{className:m(`${A}-description`,a?.description),style:o?.description},l),re=te!==null,ie=ne!==null,ae=null;ae=re&&ie?h.createElement(`div`,{className:m(`${A}-section`,a?.section),style:o?.section},te,ne):te||ne,u!=null&&(ae=h.createElement(`div`,{className:m(`${A}-wrapper`,a?.wrapper),style:o?.wrapper},h.createElement(`div`,{className:m(`${A}-icon`,a?.icon),style:o?.icon},u),ae));let oe=d?h.createElement(`div`,{className:m(`${A}-actions`,a?.actions),style:o?.actions},d):null,se={"--notification-index":K,...o?.root,...i};ee!==void 0&&(se[`--notification-y`]=`${ee}px`);let ce=f??y?.role??`alert`;return h.createElement(`div`,Ob({},y,{ref:t,role:ce,"data-notification-index":K,className:m(A,r,a?.root,{[`${A}-closable`]:j,[`${A}-stack-in-threshold`]:v}),style:se,onClick:w,onMouseEnter:V,onMouseLeave:H}),ae,oe,j&&h.createElement(`button`,Ob({className:m(`${A}-close`,a?.close),"aria-label":`Close`},N,{style:o?.close,onClick:U}),M.closeIcon),x&&typeof b==`number`&&b>0&&h.createElement(B,{className:m(`${A}-progress`,a?.progress),percent:z,style:o?.progress}))}),Ab=h.createContext({}),fse=({children:e,classNames:t})=>{let n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(Ab.Provider,{value:n},e)};function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=h.useRef(r),d=r(t[n]=m(...e.map(e=>e?.[n])),t),{})}function hse(e){return Nb.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function gse(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var _se=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...g}=e,{key:_,placement:v,...y}=t,b=String(_),x=Le(c,h.useCallback(e=>{f(b,e)},[f,b]));return h.createElement(kb,Mb({},y,g,{ref:x,className:m(r?.notice,t.className,o),style:{...s,...t.style},classNames:mse([i,t.classNames]),styles:hse([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(_)}}))},Pb=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:g}=h.useContext(Ab),_=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v=typeof c==`function`?c(l):c,[y,{offset:b,threshold:x}]=cse(s),[S,C]=h.useState(!1),w=y&&(S||_.length<=x),T=h.useMemo(()=>{if(!(!y||w))return{offset:b,threshold:x}},[w,b,y,x]),[E,D]=h.useState(0),O=h.useRef(null),[k,A,j,M,N]=sse(t,T,E),P=!!t.length;h.useEffect(()=>{let e=O.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;D(e=>e===r?e:r)},[P]);let F=`${n}-list`;return h.createElement(`div`,{className:m(n,F,`${n}-${l}`,g?.list,u,i?.list,{[`${n}-stack`]:y,[`${n}-stack-expanded`]:w,[`${F}-hovered`]:S}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...a?.list,...d}},h.createElement(pse,{listPrefixCls:F,height:j,topNoticeHeight:M,topNoticeWidth:N,className:i?.listContent,style:a?.listContent,ref:O},h.createElement(lr,Mb({component:!1,keys:_,motionAppear:!0},v,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=gse(_,l),p=y&&d!==void 0&&d{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[g,_]=h.useState([]),[v,y]=h.useState({}),b=h.useRef(!1);h.useImperativeHandle(t,()=>({open:e=>{_(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{_(t=>t.filter(t=>t.key!==e))},destroy:()=>{_([])}})),h.useEffect(()=>{let e={};g.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(v).forEach(t=>{e[t]=e[t]||[]}),y(e)},[g]);let x=pe(e=>{y(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(h.useEffect(()=>{Object.keys(v).length>0?b.current=!0:b.current&&=(f?.(),!1)},[v,f]),!r)return null;let S=Object.keys(v);return(0,Sn.createPortal)(h.createElement(h.Fragment,null,S.map(e=>{let t=h.createElement(Pb,{key:e,configList:v[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{_(t=>t.filter(t=>t.key!==e))},onAllRemoved:x});return m?h.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),yse=()=>document.body,Fb=0;function bse(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function xse(e={}){let{getContainer:t=yse,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}=e,y={placement:i,closable:a,duration:o,showProgress:s},[b,x]=h.useState(),S=h.useRef(null),[C,w]=h.useState([]),T=h.createElement(vse,{container:b,ref:S,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}),E=pe(e=>{let t=bse(y,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Fb}`,Fb+=1),w(e=>[...e,{type:`open`,config:t}])}),D=h.useMemo(()=>({open:E,close:e=>{w(t=>[...t,{type:`close`,key:e}])},destroy:()=>{w(e=>[...e,{type:`destroy`}])}}),[]);return h.useEffect(()=>{x(t())}),h.useEffect(()=>{S.current&&C.length&&(C.forEach(e=>{switch(e.type){case`open`:S.current?.open(e.config);break;case`close`:S.current?.close(e.key);break;case`destroy`:S.current?.destroy();break}}),w(e=>{let t=e.filter(e=>!C.includes(e));return t.length===e.length?e:t}))},[C]),[D,T]}var Sse=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},Ib=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=Tc(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${q(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...Sse(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},Lb=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...Ib(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...lo(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${q(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},Cse=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=Lb(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},wse=e=>{let{componentCls:t}=e;return{[t]:Lb(e)}},Tse=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Ese=`--notification-margin-edge`,Dse=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),Rb=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Ose=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Dse(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},kse=e=>e===`bottom`?`column-reverse`:`column`,Ase=e=>{let t=`var(${Ese}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},jse=e=>e===`bottom`?`center top`:`center bottom`,zb=e=>q(e.calc(e.marginXXL).mul(-1).equal()),Mse=e=>{let t=zb(e);return`inset(${t} ${t} ${t} ${t})`},Nse=(e,t)=>{let n=zb(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Pse=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=Rb(t.motionOffset),f=Rb(t.baseMotionOffset),p=jse(i);return{[`&${n}-${r}`]:{[i]:Ase(i),[a]:`auto`,display:`flex`,flexDirection:kse(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:Nse(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Mse(e)}}}}},Fse=(e,t=Tse)=>{let{notificationMotionOffset:n}=e,r=q(n);return{...t.reduce((t,n)=>({...t,...Pse(e,Ose(n,r))}),{})}},Ise=e=>{let{componentCls:t}=e;return{[t]:Fse(e)}},Lse=3,Bb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Vb=e=>{let t=e.paddingMD,n=e.paddingLG;return Go(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:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Rse=e=>`inset(${e} ${e} ${e} ${e})`,zse=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},Bse=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??Lse)+1})`,l=Rse(q(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...io(e),[i]:q(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...zse(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}};wc([`Notification`,`PurePanel`],e=>Cse(Vb(e)),Bb);var Hb=(e,t)=>{let n=t.itemStyle??wse;return[Bse(e,t),n(e),Ise(e)]};Sc(`Notification`,e=>Hb(Vb(e),{listWidthKey:`width`}),Bb);var Ub=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Go(Vb(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Wb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Gb=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return Ib(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},Vse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=Gb(e)[n],o={...a,position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":{...o,top:`calc(var(--top-notificiation-height) - ${q(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${q(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${q(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},Hse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=Gb(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},Use=wc([`Message`,`PurePanel`],e=>Hse(Ub(e)),Wb),Wse=e=>({[e.componentCls]:Gb(e)}),Kb=Sc(`Message`,e=>{let t=Ub(e);return[Hb(t,{stackVisibleCount:1,itemStyle:Wse}),Vse(t)]},Wb),Gse={info:h.createElement(fe,null),success:h.createElement(K,null),error:h.createElement(re,null),warning:h.createElement(le,null),loading:h.createElement(Hd,null)},qb=(e,t)=>t||e&&Gse[e]||null,Kse=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Ur(`message`),_=t||u(`message`),v=`${_}-notice`,y=og(_),[b,x]=Kb(_,y),[S,C]=Nr([p,s],[g,c],{props:e}),w=qb(i,a),T=i?`${v}-icon-${i}`:void 0,E={wrapper:m(i&&`${_}-${i}`,S.wrapper),icon:m(T,S.icon),title:S.title},D={wrapper:C.wrapper,icon:C.icon,title:C.title};return h.createElement(`div`,{className:m(`${v}-pure-panel`,b,n,x,y,S.root),style:C.root},h.createElement(Use,{prefixCls:_}),h.createElement(kb,{...l,prefixCls:_,className:d,style:{...f,...r},duration:null,icon:w,title:o,classNames:E,styles:D}))},qse=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=Ur(`message`),a=i(`message`),o=og(a),[s,c]=Kb(a,o),l=`${a}-notice`,u=t.map(e=>{let{content:t,duration:n,key:r,type:i}=e,o=i?`${l}-icon-${i}`:void 0;return{key:r,duration:n,icon:qb(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return h.createElement(Pb,{prefixCls:a,placement:`top`,configList:u,className:m(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},Jse=(e,t)=>h.useMemo(()=>{let n=e??t;return n?{...xr(t)?t:{},...xr(n)?n:{}}:!1},[e,t]);function Yse(e,t){return{..._r(e)&&{"--notification-top":q(e)},..._r(t)&&{"--notification-bottom":q(t)}}}function Xse(e,t){return{motionName:t??`${e}-fade`}}function Jb(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Zse=8,Qse=3,$se=!1,ece=({children:e,prefixCls:t})=>{let n=og(t),[r,i]=Kb(t,n);return h.createElement(fse,{classNames:{list:m(r,i,n)}},e)},tce=(e,{prefixCls:t,key:n})=>h.createElement(ece,{prefixCls:t,key:n},e),nce=h.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=Qse,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:g,direction:_,getPopupContainer:v}=Ur(`message`),{message:y}=h.useContext(Br),b=r||g(`message`),[x,S]=Nr([y?.classNames,c],[y?.styles,l],{props:e}),[C,w]=xse({prefixCls:b,style:()=>Yse(n??Zse),className:()=>m({[`${b}-rtl`]:s??_===`rtl`}),motion:()=>Xse(b,u),closable:!1,duration:o,getContainer:()=>i?.()||v?.()||document.body,maxCount:a,onAllRemoved:p,classNames:x,styles:S,renderNotifications:tce,pauseOnHover:d,stack:Jse(f,$se)});return h.useImperativeHandle(t,()=>({...C,prefixCls:b,message:y})),w}),Yb=0;function Xb(e){let t=h.useRef(null);return Lr(`Message`),[h.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=o?.className||{},c=o?.style||{},l=`${a}-notice`,{content:u,icon:d,type:f,key:p,className:h,style:g,onClose:_,classNames:v={},styles:y={},...b}=r,x=p;_r(x)||(Yb+=1,x=`antd-message-${Yb}`);let S={...e,...r},C=Mr(v,{props:S}),w=Mr(y,{props:S}),T=qb(f,d),E=f?`${l}-icon-${f}`:void 0;return Jb(e=>(i({...b,key:x,icon:T,title:u,classNames:{...C,wrapper:m(f&&`${a}-${f}`,C.wrapper),icon:m(E,C.icon)},styles:w,placement:`top`,className:m({[`${l}-${f}`]:f},h,s),style:{...c,...g},onClose:()=>{_?.(),e()}}),()=>{n(x)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=xr(t)&&`content`in t?t:{content:t};let o,s;return Sr(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),h.createElement(nce,{key:`message-holder`,...e,ref:t})]}function rce(e){return Xb(e)}var Zb=null,Qb=e=>e(),$b=[],ex={};function tx(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=ex,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var ice=h.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,h.useContext)(Br),a=ex.prefixCls||i(`message`),o=(0,h.useContext)(ase),[s,c]=Xb({...n,prefixCls:a,...o.message});return h.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),ace=h.forwardRef((e,t)=>{let[n,r]=h.useState(tx),i=()=>{r(tx)};h.useEffect(i,[]);let a=Vu(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=h.createElement(ice,{ref:t,sync:i,messageConfig:n});return h.createElement(Uu,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),nx=()=>{if(!Zb){let e=document.createDocumentFragment(),t={fragment:e};Zb=t,Qb(()=>{bn(h.createElement(ace,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,nx())})}}),e)});return}Zb.instance&&($b.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:Qb(()=>{let t=Zb.instance.open({...ex,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:Qb(()=>{Zb?.instance.destroy(e.key)});break;default:Qb(()=>{var n;let r=(n=Zb.instance)[t].apply(n,gr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),$b=[])};function oce(e){ex={...ex,...e},Qb(()=>{Zb?.sync?.()})}function sce(e){let t=Jb(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return $b.push(r),()=>{n?Qb(()=>{n()}):r.skipped=!0}});return nx(),t}function cce(e,t){let n=Jb(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return $b.push(i),()=>{r?Qb(()=>{r()}):i.skipped=!0}});return nx(),n}var lce=e=>{$b.push({type:`destroy`,key:e}),nx()},uce=[`success`,`info`,`warning`,`error`,`loading`],rx={open:sce,destroy:lce,config:oce,useMessage:rce,_InternalPanelDoNotUseOrYouWillBeFired:Kse,_InternalListDoNotUseOrYouWillBeFired:qse};uce.forEach(e=>{rx[e]=(...t)=>cce(e,t)});var ix=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=h.useRef(!1),f=h.useRef(null),[p,m]=ve(!1),g=(...e)=>{a?.(...e)};h.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let _=e=>{Cr(e)&&(m(!0),e.then((...e)=>{m(!1,!0),g.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},v=e=>{if(d.current)return;if(d.current=!0,!u){g();return}let t;if(s){if(t=u(e),l&&!Cr(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!Cr(t)){g();return}_(t)};return h.createElement(gp,{...Id(t),onClick:v,loading:p,prefixCls:r,...i,ref:f},n)},ax=h.createContext({}),{Provider:ox}=ax,sx=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,h.useContext)(ax);return i?h.createElement(ix,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},cx=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,h.useContext)(ax);return h.createElement(ix,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},lx=h.createContext({});function ux(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function dce(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function fce(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=dce(i),n.top+=dce(i,!0),n}var pce=h.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:g,onMouseDown:_,onMouseUp:v,holderRef:y,visible:b,forceRender:x,width:S,height:C,classNames:w,styles:T,isFixedPos:E,focusTrap:D}=e,{panel:O}=h.useContext(lx),k=(0,h.useRef)(null),A=Le(y,O,k),[j]=yt(b&&E&&D!==!1,()=>k.current);h.useImperativeHandle(t,()=>({focus:()=>{k.current?.focus({preventScroll:!0})}}));let M={};S!==void 0&&(M.width=S),C!==void 0&&(M.height=C);let N=s?h.createElement(`div`,{className:m(`${n}-footer`,w?.footer),style:{...T?.footer}},s):null,P=a?h.createElement(`div`,{className:m(`${n}-header`,w?.header),style:{...T?.header}},h.createElement(`div`,{className:m(`${n}-title`,w?.title),id:o,style:{...T?.title}},a)):null,F=(0,h.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??h.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),I=Yt(F,!0),L=typeof c==`object`&&c.disabled,R=c?h.createElement(`button`,dx({type:`button`,onClick:u,"aria-label":`Close`},I,{className:m(`${n}-close`,w?.close),disabled:L,style:T?.close}),F.closeIcon):null,z=h.createElement(`div`,{className:m(`${n}-container`,w?.container),style:T?.container},R,P,h.createElement(`div`,dx({className:m(`${n}-body`,w?.body),style:{...f,...T?.body}},p),d),N);return h.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:A,style:{...i,...M},className:m(n,r),onMouseDown:_,onMouseUp:v,tabIndex:-1,onFocus:e=>{j(e.target)}},h.createElement(pce,{shouldUpdate:b||x},g?g(z):z))});function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,h.useRef)(null),g=(0,h.useRef)(null);h.useImperativeHandle(t,()=>({...g.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[_,v]=h.useState(),y={};_&&(y.transformOrigin=_);function b(){if(!p.current?.nativeElement)return;let e=fce(p.current.nativeElement);v(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return h.createElement(ur,{visible:o,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>h.createElement(mce,fx({},e,{ref:g,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,...y},className:m(a,t)})))});function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return h.createElement(ur,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>h.createElement(`div`,px({ref:a,style:{...r,...n},className:m(`${t}-mask`,e,o)},i)))};function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:g=!0,maskTransitionName:_,maskAnimation:v,maskClosable:y=!0,maskStyle:b,maskProps:x,rootClassName:S,rootStyle:C,classNames:w,styles:T}=e,E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=(0,h.useRef)(null),[k,A]=h.useState(r),[j,M]=h.useState(!1),N=we();function P(){He(D.current,document.activeElement)||(E.current=document.activeElement)}function F(){He(D.current,document.activeElement)||O.current?.focus()}function I(){if(A(!1),g&&E.current&&i){try{E.current.focus({preventScroll:!0})}catch{}E.current=null}k&&u?.()}function L(e){e?F():I(),l?.(e)}function R(e){c?.(e)}let z=(0,h.useRef)(!1),B=null;y&&(B=e=>{D.current===e.target&&z.current&&R(e)});function V(e){z.current=e.target===D.current}(0,h.useEffect)(()=>{r?(z.current=!1,A(!0),P(),D.current&&M(getComputedStyle(D.current).position===`fixed`)):k&&O.current.enableMotion()&&!O.current.inMotion()&&I()},[r]);let H={zIndex:n,...a,...T?.wrapper,display:k?null:`none`};return h.createElement(`div`,mx({className:m(`${t}-root`,S),style:C},Yt(e,{data:!0})),h.createElement(gce,{prefixCls:t,visible:g&&r,motionName:ux(t,_,v),style:{zIndex:n,...b,...T?.mask},maskProps:x,className:w?.mask}),h.createElement(`div`,mx({className:m(`${t}-wrap`,o,w?.wrapper),ref:D,onClick:B,onMouseDown:V,style:H},s),h.createElement(hce,mx({},e,{isFixedPos:j,ref:O,closable:p,ariaId:N,prefixCls:t,visible:r&&k,onClose:R,onVisibleChanged:L,motionName:ux(t,d,f)}))))};function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d,...f}=e,[p,m]=h.useState(t),g=h.useMemo(()=>({panel:s}),[s]);return h.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:h.createElement(lx.Provider,{value:g},h.createElement(bl,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},h.createElement(_ce,hx({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},yce=()=>me()&&window.document.documentElement;function bce(e,t,n){return(0,h.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}function xce(){}var Sce=h.createContext({add:xce,remove:xce});function Cce(e){let t=h.useContext(Sce),n=h.useRef(null);return pe(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var wce=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(ax);return h.createElement(gp,{onClick:n,...e},t)},Tce=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,h.useContext)(ax);return h.createElement(gp,{...Id(n),loading:e,onClick:i,...t},r)};function Ece(e,t){return h.createElement(`span`,{className:`${e}-close-x`},t||h.createElement(oe,{className:`${e}-close-icon`}))}var Dce=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=$c(`Modal`,Zc()),d=t||u?.okText,f=r||u?.cancelText,p=h.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return Sr(l)||l===void 0?(m=h.createElement(h.Fragment,null,h.createElement(wce,null),h.createElement(Tce,null)),Sr(l)&&(m=l(m,{OkBtn:Tce,CancelBtn:wce})),m=h.createElement(ox,{value:p},m)):m=l,h.createElement(wu,{disabled:!1},m)};function Oce(e){return{position:e,inset:0}}var kce=e=>{let{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`]:{...Oce(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Oce(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:$d(e)}]},Ace=e=>{let{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:`${q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...io(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...co(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(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...lo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${q(e.borderRadiusLG)} ${q(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:`${q(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`}}}]},Ace=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},jce=e=>{let{componentCls:t}=e,n=mg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(gr(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],gr(a))}}},Mce=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Go(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()})},Nce=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${q(e.padding)} ${q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${q(e.paddingXS)} ${q(e.padding)}`:0,footerBorderTop:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${q(e.padding*2)} ${q(e.padding*2)} ${q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Pce=Sc(`Modal`,e=>{let t=Mce(e);return[kce(t),Ace(t),Oce(t),Of(t,`zoom`),jce(t)]},Nce,{unitless:{titleLineHeight:!0}}),_x;vce()&&document.documentElement.addEventListener(`click`,e=>{_x={x:e.pageX,y:e.pageY},setTimeout(()=>{_x=null},100)},!0);var Fce=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:g,confirmLoading:_,zIndex:v,mousePosition:y,onOk:b,onCancel:x,okButtonProps:S,cancelButtonProps:C,destroyOnHidden:w,destroyOnClose:T,panelRef:E=null,closable:D,mask:O,modalRender:k,maskClosable:A,scrollLock:j,focusTriggerAfterClose:M,focusable:N,...P}=e,{getPopupContainer:F,getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,centered:H,cancelButtonProps:U,okButtonProps:W,mask:G,focusable:ee}=Ur(`modal`),{modal:K}=h.useContext(Br),[te,ne]=h.useMemo(()=>typeof D==`boolean`?[void 0,void 0]:[D?.afterClose,D?.onClose],[D]),re=I(`modal`,t),ie=I(),[ae,se,ce]=fd(O,G,re,A),le=yce({...ee,...N},ae,M),ue=e=>{_||(x?.(e),ne?.())},de=e=>{b?.(e),ne?.()},fe=og(re),[pe,me]=Pce(re,fe),he=m(a,{[`${re}-centered`]:o??H,[`${re}-wrap-rtl`]:L===`rtl`}),ge=u!==null&&!g?h.createElement(Ece,{...e,okButtonProps:{...W,...S},onOk:de,cancelButtonProps:{...U,...C},onCancel:ue}):null,[_e,ve,ye,be]=ld(rd(e),rd(K),{closable:!0,closeIcon:h.createElement(oe,{className:`${re}-close-icon`}),closeIconRender:e=>Tce(re,e)}),xe=_e?{disabled:ye,closeIcon:ve,afterClose:te,...be}:!1,Se=k?e=>h.createElement(`div`,{className:`${re}-render`},k(e)):void 0,Ce=Ie(E,Sce(`.${re}-${k?`render`:`container`}`)),[we,Te]=Ed(`Modal`,v),Ee={...e,width:l,panelRef:E,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ae,maskClosable:ce,zIndex:we},[De,Oe]=Nr([B,d,se],[V,f],{props:Ee}),[ke,Ae]=h.useMemo(()=>xr(l)?[void 0,l]:[l,void 0],[l]),je=h.useMemo(()=>{let e={};return Ae&&Object.keys(Ae).forEach(t=>{let n=Ae[t];_r(n)&&(e[`--${re}-${t}-width`]=yr(n)?`${n}px`:n)}),e},[re,Ae]);return h.createElement(X_,{form:!0,space:!0},h.createElement(bd.Provider,{value:Te},h.createElement(_ce,{width:ke,...P,zIndex:we,getContainer:s===void 0?F:s,prefixCls:re,rootClassName:m(pe,r,me,fe,De.root),rootStyle:Oe.root,footer:ge,visible:i,mousePosition:y??_x,onClose:ue,closable:xe,closeIcon:ve,transitionName:Kf(ie,`zoom`,e.transitionName),maskTransitionName:Kf(ie,`fade`,e.maskTransitionName),mask:ae,maskClosable:ce,scrollLock:j,className:m(pe,n,R),style:{...z,...c,...je},classNames:{...De,wrapper:m(De.wrapper,he)},styles:Oe,panelRef:Ce,destroyOnHidden:w??T,modalRender:Se,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},g?h.createElement(vte,{active:!0,title:!1,paragraph:{rows:4},className:`${re}-body-skeleton`}):p)))},Ice=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...so()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Lce=wc([`Modal`,`confirm`],e=>Ice(Mce(e)),Nce,{order:-1e3}),Rce=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,{infoIcon:p,successIcon:g,errorIcon:_,warningIcon:v}=Ur(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=td(p,h.createElement(fe,null));break;case`success`:y=td(g,h.createElement(K,null));break;case`error`:y=td(_,h.createElement(re,null));break;default:y=td(v,h.createElement(le,null))}let b=s??o===`confirm`,x=h.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[S]=$c(`Modal`),C=l||S,w=r||(b?C?.okText:C?.justOkText),T=i||C?.cancelText,{closable:E}=f,{onClose:D}=xr(E)?E:{},O=h.useMemo(()=>({autoFocusButton:x,cancelTextLocale:T,okTextLocale:w,mergedOkCancel:b,onClose:D,...f}),[x,T,w,b,D,f]),k=h.createElement(h.Fragment,null,h.createElement(cx,null),h.createElement(lx,null)),A=vr(e.title),j=vr(y),M=`${a}-body`;return h.createElement(`div`,{className:`${a}-body-wrapper`},h.createElement(`div`,{className:m(M,{[`${M}-has-title`]:A,[`${M}-no-icon`]:!j})},y,h.createElement(`div`,{className:`${a}-paragraph`},A&&h.createElement(`span`,{className:`${a}-title`},e.title),h.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||Sr(c)?h.createElement(sx,{value:O},h.createElement(`div`,{className:`${a}-btns`},Sr(c)?c(k,{OkBtn:lx,CancelBtn:cx}):k)):c,h.createElement(Lce,{prefixCls:t}))},zce=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:g,okButtonProps:_,cancelButtonProps:v}=e,{cancelButtonProps:y,okButtonProps:b}=Ur(`modal`),x=`${a}-confirm`,S=e.width||416,C=e.style||{},w=m(x,`${x}-${e.type}`,{[`${x}-rtl`]:i===`rtl`},e.className),T=h.useMemo(()=>{let e=dd(p,g);return e.closable??=!1,e},[p,g]),[,E]=xc(),D=h.useMemo(()=>n===void 0?E.zIndexPopupBase+Sd:n,[n,E]);return h.createElement(Fce,{...e,className:w,wrapClassName:m({[`${x}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:Kf(s||``,`zoom`,e.transitionName),maskTransitionName:Kf(s||``,`fade`,e.maskTransitionName),mask:T,style:C,styles:{body:c,mask:r,...d},width:S,zIndex:D,closable:l},h.createElement(Rce,{...e,confirmPrefixCls:x,okButtonProps:{...b,..._},cancelButtonProps:{...y,...v}}))},Bce=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Uu,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(zce,{...e}))},vx=[],Vce=``;function Hce(){return Vce}var Uce=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Zc(),a=(0,h.useContext)(Br),o=Hce()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),h.createElement(Bce,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function yx(e){let t=Vu(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,Hce()),i=t.getIconPrefixCls(),a=t.getTheme(),o=h.createElement(Uce,{...e});bn(h.createElement(Uu,{prefixCls:r,iconPrefixCls:i,theme:a},Sr(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{Sr(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=Sr(e)?e(r):{...r,...e},o(r)}return o(r),vx.push(s),{destroy:s,update:c}}function Wce(e){return{...e,type:`warning`}}function Gce(e){return{...e,type:`info`}}function Kce(e){return{...e,type:`success`}}function qce(e){return{...e,type:`error`}}function Jce(e){return{...e,type:`confirm`}}function Yce({rootPrefixCls:e}){Vce=e}var Xce=wg(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=h.useContext(Br),{className:p,style:g,classNames:_,styles:v}=Ur(`modal`),y=f(),b=t||f(`modal`),x=og(y),[S,C]=Pce(b,x),[w,T]=Nr([_,l],[v,u],{props:e}),E=`${b}-confirm`,D={};return D=a?{closable:i??!1,title:``,footer:``,children:h.createElement(Rce,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:y,content:s})}:{closable:i??!0,title:o,footer:c!==null&&h.createElement(Ece,{...e}),children:s},h.createElement(pce,{prefixCls:b,className:m(S,`${b}-pure-panel`,a&&E,a&&`${E}-${a}`,n,p,C,x,w.root),style:{...g,...T.root},...d,closeIcon:Tce(b,r),closable:i,classNames:w,styles:T,...D})}),Zce=h.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=h.useState(!0),[s,c]=h.useState(r),{direction:l,getPrefixCls:u}=h.useContext(Br),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};h.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=Sr(e)?e(t):e;return{...t,...n}})}}));let g=s.okCancel??s.type===`confirm`,[_]=$c(`Modal`,Kc.Modal);return h.createElement(Bce,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(g?_?.okText:_?.justOkText),direction:s.direction||l,cancelText:s.cancelText||_?.cancelText,...i})}),Qce=0,$ce=h.memo(h.forwardRef((e,t)=>{let[n,r]=gd();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function ele(){let e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(gr(t).forEach(e=>{e()}),n([]))},[t]);let r=h.useCallback(t=>function(r){Qce+=1;let i=h.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=h.createElement(Zce,{key:`modal-${Qce}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&vx.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(gr(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(gr(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[h.useMemo(()=>({info:r(Gce),success:r(Kce),error:r(qce),warning:r(Wce),confirm:r(Jce)}),[r]),h.createElement($ce,{key:`modal-holder`,ref:e})]}function tle(e){return yx(Wce(e))}var bx=Fce;bx.useModal=ele,bx.info=function(e){return yx(Gce(e))},bx.success=function(e){return yx(Kce(e))},bx.error=function(e){return yx(qce(e))},bx.warning=tle,bx.warn=tle,bx.confirm=function(e){return yx(Jce(e))},bx.destroyAll=function(){for(;vx.length;){let e=vx.pop();e&&e()}},bx.config=Yce,bx._InternalPanelDoNotUseOrYouWillBeFired=Xce;var xx=e=>vr(e)?Sr(e)?e():e:null,nle=`50%`,rle=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Tc(g,`tooltip`);return[{[t]:{...io(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,filter:o,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,nle),`var(--arrow-y, ${nle})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},_y(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},ile=e=>{let{componentCls:t,antCls:n}=e,[r]=Tc(n,`tooltip`);return{[t]:ns.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},ale=Sc(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Go(e,{popoverBg:t,popoverColor:n});return[rle(r),ile(r),Of(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...wv(e),...gy({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),ole=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!vr(t)&&!vr(n)?null:h.createElement(h.Fragment,null,vr(t)&&h.createElement(`div`,{className:m(`${r}-title`,i?.title),style:a?.title},t),vr(n)&&h.createElement(`div`,{className:m(`${r}-content`,i?.content),style:a?.content},n))},sle=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=xx(o),f=xx(s),p={...e,placement:a},[g,_]=Nr([l],[u],{props:p}),v=m(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return h.createElement(`div`,{className:v,style:i},h.createElement(`div`,{className:`${n}-arrow`}),h.createElement(dy,{...e,className:t,prefixCls:n,classNames:g,styles:_},c||h.createElement(ole,{prefixCls:n,title:d,content:f,classNames:g,styles:_})))},cle=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=h.useContext(Br),a=i(`popover`,t),[o,s]=ale(a);return h.createElement(sle,{...r,prefixCls:a,hashId:o,className:m(n,s)})},lle=h.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:g,motion:_,arrow:v,...y}=e,{getPrefixCls:b,className:x,style:S,classNames:C,styles:w,arrow:T,trigger:E}=Ur(`popover`),D=b(`popover`,n),[O,k]=ale(D),A=b(),j=xy(v,T),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:g},[P,F]=Nr([C,g],[w,p],{props:N}),I=m(a,O,k,x,P.root),[L,R]=ye(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=xx(r),V=xx(i);return h.createElement(Ey,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,...y,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...S,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:vr(B)||vr(V)?h.createElement(ole,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:Kf(A,`zoom-big`,typeof _?.motionName==`string`?_?.motionName:void 0)},"data-popover-inject":!0},c)});lle._InternalPanelDoNotUseOrYouWillBeFired=cle;var ule=Sc(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),dle=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=h.createElement(le,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:g,classNames:_,styles:v}=e,{getPrefixCls:y}=h.useContext(Br),[b]=$c(`Popconfirm`,Kc.Popconfirm),x=xx(i),S=xx(a);return h.createElement(`div`,{className:`${t}-inner-content`,onClick:g},h.createElement(`div`,{className:`${t}-message`},l&&h.createElement(`span`,{className:m(`${t}-message-icon`,_?.icon),style:v?.icon},l),h.createElement(`div`,{className:`${t}-message-text`},vr(x)&&h.createElement(`div`,{className:m(`${t}-title`,_?.title),style:v?.title},x),vr(S)&&h.createElement(`div`,{className:m(`${t}-description`,_?.content),style:v?.content},S))),h.createElement(`div`,{className:`${t}-buttons`},u&&h.createElement(gp,{onClick:p,size:`small`,...r},o||b?.cancelText),h.createElement(ax,{buttonProps:{size:`small`,...Id(c),...n},actionFn:f,close:d,prefixCls:y(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||b?.okText)))},fle=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=h.useContext(Br),s=o(`popconfirm`,t);return ule(s),h.createElement(cle,{placement:n,className:m(s,r),style:i,content:h.createElement(dle,{prefixCls:s,...a})})},Sx=h.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=h.createElement(le,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...g}=e,{getPrefixCls:_,className:v,style:y,classNames:b,styles:x,arrow:S,trigger:C}=Ur(`popconfirm`),[w,T]=ye(e.defaultOpen??!1,e.open),E=xy(f,S),D=i||C||`click`,O=e=>{T(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=_(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Nr([b,p],[x,d],{props:P}),L=m(N,v,c,F.root);return ule(N),h.createElement(lle,{arrow:E,...Wt(g,[`title`]),trigger:D,placement:r,onOpenChange:M,open:w,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...y,...I.root,...u},container:I.container,arrow:I.arrow},content:h.createElement(dle,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});Sx._InternalPanelDoNotUseOrYouWillBeFired=fle;var ple=h.createContext(void 0),mle=ple.Provider,hle=h.createContext(void 0),gle=hle.Provider;function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,h.useRef)(null),p=(0,h.useRef)(null),[g,_]=ye(s,a);(0,h.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let v=m(n,r,{[`${n}-checked`]:g,[`${n}-disabled`]:o});return h.createElement(`span`,{className:v,title:l,style:i,ref:p},h.createElement(`input`,Cx({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||_(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!g,type:c})))});function vle(e){let t=h.useRef(null),n=()=>{nn.cancel(t.current),t.current=null};return[()=>{n(),t.current=nn(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var yle=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:{...io(e),display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...d(i),[`&${c}-large`]:{...d(a)},[`&${c}-small`]:{...d(o)}}}}},ble=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...io(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...io(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${q(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:co(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},xle=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":co(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},Sle=Sc(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${q(n)} ${t}`,i=Go(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[yle(i),ble(i),xle(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),Tx=h.forwardRef((e,t)=>{let n=h.useContext(ple),r=h.useContext(hle),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=Ur(`radio`),u=Ie(t,h.useRef(null)),{isFormItemInput:d}=h.useContext(_m),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:g,rootClassName:_,children:v,style:y,title:b,classNames:x,styles:S,checked:C,...w}=e,T=i(`radio`,p),E=(n?.optionType||r)===`button`,D=E?`${T}-button`:T,O=og(T),[k,A]=Sle(T,O),j={...w},M=h.useContext(Cu),N=`checked`in e,P=C;n&&(j.name=n.name,j.onChange=f,P=e.value===n.value,j.disabled=j.disabled??n.disabled),(N||n)&&(j.checked=P),j.disabled=j.disabled??M;let F={...e,...j,checked:P},I=jr(s),L=jr(y),[R,z]=Nr([c,x],[l,I,S,L],{props:F}),B=m(`${D}-wrapper`,{[`${D}-wrapper-checked`]:P,[`${D}-wrapper-disabled`]:j.disabled,[`${D}-wrapper-rtl`]:a===`rtl`,[`${D}-wrapper-in-form-item`]:d,[`${D}-wrapper-block`]:!!n?.block},o,g,_,R.root,k,A,O),[V,H]=vle(j.onClick);return h.createElement($u,{component:`Radio`,disabled:j.disabled},h.createElement(`label`,{className:B,style:z.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:V},h.createElement(_le,{...j,className:m(R.icon,{[Gu]:!E}),style:z.icon,type:`radio`,prefixCls:D,ref:u,onClick:H}),vr(v)?h.createElement(`span`,{className:m(`${D}-label`,R.label),style:z.label},v):null))}),Cle=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{name:i}=h.useContext(_m),a=we(oy(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:g,id:_,optionType:v,name:y=a,defaultValue:b,value:x,block:S=!1,onChange:C,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,orientation:O,vertical:k,role:A=`radiogroup`}=e,[j,M]=ye(b,x),N=h.useCallback(t=>{let n=j,r=t.target.value;`value`in e||M(r),r!==n&&C?.(t)},[j,M,C]),P=n(`radio`,o),F=`${P}-group`,I=og(P),[L,R]=Sle(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||yr(e)?h.createElement(Tx,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):h.createElement(Tx,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let B=ed(p),[,V]=hd(O,k),H=m(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:S},s,c,L,R,I),U=h.useMemo(()=>({onChange:N,value:j,disabled:d,name:y,optionType:v,block:S}),[N,j,d,y,v,S]);return h.createElement(`div`,{...Yt(e,{aria:!0,data:!0}),role:A,className:m(H,{[`${P}-group-vertical`]:V}),style:g,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,id:_,ref:t},h.createElement(mle,{value:U},z))}),wle=h.memo(Cle),Tle=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Br),{prefixCls:r,...i}=e,a=n(`radio`,r);return h.createElement(gle,{value:`button`},h.createElement(Tx,{prefixCls:a,...i,type:`radio`,ref:t}))}),Ex=Tx;Ex.Button=Tle,Ex.Group=wle,Ex.__ANT_RADIO=!0;var Ele=yg,Dle=(e,t)=>{if(!e)return null;let 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}},Dx=e=>e===void 0?void 0:`${e}px`;function Ole(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=h.useRef(null),[d,f]=h.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[g,_]=h.useState(null),[v,y]=h.useState(null);ge(()=>{if(d!==r){let e=p(d),t=p(r),n=Dle(e,l),i=Dle(t,l);f(r),_(n),y(i),e&&t?o():s()}},[r]);let b=h.useMemo(()=>Dx(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]),x=h.useMemo(()=>Dx(l?v?.top??0:c===`rtl`?-v?.right:v?.left),[l,c,v]);return!g||!v?null:h.createElement(ur,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{_(null),y(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":b,"--thumb-start-width":Dx(g?.width),"--thumb-active-left":x,"--thumb-active-width":Dx(v?.width),"--thumb-start-top":b,"--thumb-start-height":Dx(g?.height),"--thumb-active-top":x,"--thumb-active-height":Dx(v?.height)},a={ref:Ie(u,r),style:i,className:m(`${t}-thumb`,e)};return h.createElement(`div`,a)})}function kle(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function Ale(e){return e.map(e=>{if(typeof e==`object`&&e){let t=kle(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var jle=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v,onMouseDown:y,itemRender:b=e=>e})=>{let x=e=>{o||f(e,u)};return b(h.createElement(`label`,{className:m(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:y},h.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:x,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v}),h.createElement(`div`,{className:m(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},Mle=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:g,motionName:_=`thumb-motion`,itemRender:v,...y}=e,b=h.useRef(null),x=h.useMemo(()=>Ie(b,t),[b,t]),S=h.useMemo(()=>Ale(a),[a]),[C,w]=ye(s??S[0]?.value,c),[T,E]=h.useState(!1),D=(e,t)=>{w(t),u?.(t)},O=Wt(y,[`children`]),[k,A]=h.useState(!1),[j,M]=h.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},L=e=>{let t=S.findIndex(e=>e.value===C),n=S.length,r=S[(t+e+n)%n];r&&(w(r.value),u?.(r.value))},R=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:L(-1);break;case`ArrowRight`:case`ArrowDown`:L(1);break}},z=e=>{let{value:t,disabled:r}=e;return h.createElement(jle,Bf({},e,{name:l,data:e,itemRender:v,key:t,prefixCls:n,className:m(e.className,`${n}-item`,g?.item,{[`${n}-item-selected`]:t===C&&!T,[`${n}-item-focused`]:j&&k&&t===C}),style:p?.item,classNames:g,styles:p,checked:t===C,onChange:D,onFocus:N,onBlur:P,onKeyDown:R,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return h.createElement(`div`,Bf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:m(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:x}),h.createElement(`div`,{className:`${n}-group`},h.createElement(Ole,{vertical:i,prefixCls:n,value:C,containerRef:b,motionName:`${n}-${_}`,direction:r,getValueIndex:e=>S.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),S.map(z)))});function Nle(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var Ple=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),Fle={overflow:`hidden`,...ro},Ile=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...io(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...lo(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 ${q(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...Ple(e),color:e.itemSelectedColor},"&-focused":co(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(e=>`${e} ${i}`).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:a,lineHeight:q(a),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,...Fle},"&-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`]:{...Ple(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${q(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:o,lineHeight:q(o),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:q(s),padding:`0 ${q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Nle(`&-disabled ${t}-item`,e),...Nle(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},Lle=Sc(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return Ile(Go(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function Rle(e){return xr(e)&&!!e?.icon}var zle=h.forwardRef((e,t)=>{let n=we(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:g,classNames:_,...v}=e,{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=Ur(`segmented`),T={...e,options:s,size:c,shape:f},E=jr(S),D=jr(l),[O,k]=Nr([C,_],[w,E,g,D],{props:T}),A=y(`segmented`,r),[j,M]=Lle(A),N=ed(c),P=h.useMemo(()=>s.map(e=>{if(Rle(e)){let{icon:t,label:n,...r}=e;return{...r,label:h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(`${A}-item-icon`,O.icon),style:k.icon},t),n&&h.createElement(`span`,null,n))}}return e}),[s,A,O.icon,k.icon]),[,F]=hd(d,u),I=m(i,a,x,O.root,{[`${A}-block`]:o,[`${A}-sm`]:N===`small`,[`${A}-lg`]:N===`large`,[`${A}-vertical`]:F,[`${A}-shape-${f}`]:f===`round`},j,M),L=(e,{item:t})=>{if(!t.tooltip)return e;let n=xr(t.tooltip)?t.tooltip:{title:t.tooltip};return h.createElement(Ey,{...n},e)};return h.createElement(Mle,{...v,name:p,className:I,style:k.root,classNames:O,styles:k,itemRender:L,options:P,ref:t,prefixCls:A,direction:b,vertical:F})}),Ble=(e,t,n,r,i=!1,a,o)=>{let s=(0,h.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,h.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Vle=h.createContext(null);function Ox(){return h.useContext(Vle)}function Hle(e=250){let t=h.useRef(null),n=h.useRef(null);h.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Ule(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Wle(e,t,n,r){let i=pe(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Ule(e(),a)&&n(!1)});h.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function kx(){return kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let 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`}}},Kle=h.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:g,popupRender:_,popupAlign:v,getPopupContainer:y,empty:b,onPopupVisibleChange:x,onPopupMouseEnter:S,onPopupMouseDown:C,onPopupBlur:w,...T}=e,E=`${n}-dropdown`,D=o;_&&(D=_(o));let O=h.useMemo(()=>p||Gle(g),[p,g]),k=s?`${E}-${s}`:c,A=typeof g==`number`,j=h.useMemo(()=>g===!1||A?`minWidth`:`width`,[g,A]),M=l;A&&(M={...l,width:g});let N=h.useRef(null);return h.useImperativeHandle(t,()=>({getPopupElement:()=>N.current?.popupElement})),h.createElement(hu,kx({},T,{showAction:x?[`click`]:[],hideAction:x?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:O,prefixCls:E,popupMotion:{motionName:k},popup:h.createElement(`div`,{onMouseEnter:S,onMouseDown:C,onBlur:w},D),ref:N,stretch:j,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:m(u,{[`${E}-empty`]:b}),popupStyle:M,onPopupVisibleChange:x}),a)});function qle(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function Ax(e){return e!==void 0&&!Number.isNaN(e)}function Jle(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Yle(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Jle(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:qle(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:qle(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function jx(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Rt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Xle=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Zle(e){let{visible:t,values:n}=e;return t?h.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var Qle=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Mx=(e,t=1)=>{if(t<=0){e();return}Qle(()=>{Mx(e,t-1)})};function $le(e,t,n,r){let[i,a]=(0,h.useState)(!1);(0,h.useEffect)(()=>{a(!0)},[]);let[o,s]=ye(e,t),[c,l]=(0,h.useState)(!1),u=i?o:!1,d=r(u),f=(0,h.useRef)(0),p=pe(e=>{n&&d!==e&&n(e),s(e)});return[u,d,pe((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():Mx(()=>{a()})}),c]}function Nx(e){let{children:t,...n}=e;return t?h.createElement(`div`,n,t):null}var eue=h.createContext(null);function Px(){return h.useContext(eue)}var tue=h.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:g,onInputBlur:_,autoFocus:v,tokenWithEnter:y,placeholder:b,components:{input:x=`input`}}=Px(),{id:S,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=Ox()||{},k=m(`${d}-input`,C?.input,c),A=h.useRef(!1),j=h.useRef(null),M=h.useRef(null);h.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(y&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&g&&g(n),r?.(e)},F=e=>{_?.(),i?.(e)},I=()=>{A.current=!0},L=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},R=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[z,B]=h.useState(void 0);ge(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;B(t),e.style.width=``}},[o,s]);let V={id:S,type:`text`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":z},autoFocus:v,autoComplete:l||`new-password`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:R,onCompositionStart:I,onCompositionEnd:L,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${S}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${S}_list`:void 0,"aria-activedescendant":T?E:void 0};if(h.isValidElement(x)){let t=x.props||{},n={placeholder:e.placeholder||b,...V,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),V[e]?.(...t)})}),n.ref=Ie(x.ref,V.ref),h.cloneElement(x,n)}let H=x;return h.createElement(H,V)});function nue(e){let{prefixCls:t,placeholder:n,displayValues:r}=Px(),{classNames:i,styles:a}=Ox(),{show:o=!0}=e;return r.length?null:h.createElement(`div`,{className:m(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var Fx=h.createContext(null);function rue(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function iue(e){return e!=null}function aue(e){return!e&&e!==0}function oue(e){return[`string`,`number`].includes(typeof e)}function Ix(e){let t;return e&&(oue(e.title)?t=e.title.toString():oue(e.label)&&(t=e.label.toString())),t}function Lx(){return Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Px(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=Ox(),g=h.useContext(Fx),[_,v]=h.useState(!1),y=s===`combobox`,b=a[0],x=h.useMemo(()=>y&&i&&!_&&l?i:d?r:``,[y,i,_,l,r,d]),[S,C,w,T]=h.useMemo(()=>{let e,t,n;if(b&&g?.flattenOptions){let r=g.flattenOptions.find(e=>e.value===b.value);r?.data&&(e=r.data.className,t=r.data.style,n=Ix(r.data))}return b&&!n&&(n=Ix(b)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[b,g?.flattenOptions,u]);h.useEffect(()=>{y&&v(!1)},[y,i]);let E=b&&b.label!==null&&b.label!==void 0&&String(b.label).trim()!==``,D=y&&c?.input?null:b?T?h.createElement(`div`,{className:m(`${n}-content-value`,S),style:{...x?{visibility:`hidden`}:{},...C},title:w},b.label):b.label:h.createElement(nue,{show:!x});return h.createElement(`div`,{className:m(`${n}-content`,E&&`${n}-content-has-value`,x&&`${n}-content-has-search-value`,T&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:T?void 0:w},D,h.createElement(tue,Lx({ref:t},e,{value:x,maxLength:s===`combobox`?o:void 0,onChange:t=>{v(!0),e.onChange?.(t)}})))}),cue=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return h.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?h.createElement(`span`,{className:m(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},due=h.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Px(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:g,maxTagPlaceholder:_,maxTagTextLength:v,maxTagCount:y,classNames:b,styles:x}=Ox(),S=`${n}-selection-item`,C=i;!d&&a===`multiple`&&p!==!1&&(C=``);let w=l&&C||``,T=l&&!c,E=s??`×`,D=_??(e=>`+ ${e.length} ...`),O=g,k=e=>{f(e)},A=e=>{o?.(e)},j=(e,t,n,r,i)=>h.createElement(`span`,{title:Ix(e),className:m(S,{[`${S}-disabled`]:n},b?.item),style:x?.item},h.createElement(`span`,{className:m(`${S}-content`,b?.itemContent),style:x?.itemContent},t),r&&h.createElement(cue,{className:m(`${S}-remove`,b?.itemRemove),style:x?.itemRemove,onMouseDown:uue,onClick:i,customizeIcon:E},`×`)),M=(e,t,n,r,i,a,o)=>h.createElement(`span`,{onMouseDown:e=>{uue(e),k(!u)}},O({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return h.createElement(th,{prefixCls:`${n}-content`,className:b?.content,style:x?.content,prefix:!r.length&&!w&&h.createElement(nue,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof v==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>v&&(o=`${e.slice(0,v)}...`)}let s=t=>{t&&t.stopPropagation(),A(e)};return typeof O==`function`?M(i,o,n,a,s,void 0,t):j(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof D==`function`?D(e):D;return typeof O==`function`?M(void 0,t,!1,!1,void 0,!0):j({title:t},t,!1)},suffix:h.createElement(tue,Rx({ref:t,disabled:c,readOnly:!T},e,{value:w||``,syncWidth:!0})),itemKey:lue,maxCount:y})}),fue=h.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Px(),a=Ox(),{showSearch:o}=a,s={...Yt(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?h.createElement(due,{ref:t,inputProps:s}):h.createElement(sue,{ref:t,inputProps:s})});function pue(e){return e&&![Et.ESC,Et.SHIFT,Et.BACKSPACE,Et.TAB,Et.WIN_KEY,Et.ALT,Et.META,Et.WIN_KEY_RIGHT,Et.CTRL,Et.SEMICOLON,Et.EQUALS,Et.CAPS_LOCK,Et.CONTEXT_MENU,Et.UP,Et.LEFT,Et.RIGHT,Et.F1,Et.F2,Et.F3,Et.F4,Et.F5,Et.F6,Et.F7,Et.F8,Et.F9,Et.F10,Et.F11,Et.F12].includes(e)}function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===Et.UP||t===Et.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Et.UP,Et.DOWN,Et.LEFT,Et.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&pue(t)&&k(!0)});h.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:rt(F.current)}));let R=pe(e=>{if(!j){let t=rt(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&!l&&k(!1):(I.current?.focus(),r||k())}x?.(e)}),{root:z}=E,B=Wt(D,mue),V=Yt(B,{aria:!0}),H=Object.keys(V),U={...e,onInputKeyDown:L};if(z){let e=z.props||{},t={...e,...B};return Object.keys(e).forEach(n=>{let r=e[n],i=B[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),h.isValidElement(z)?h.cloneElement(z,{...t,ref:Ie(z.ref,F)}):h.createElement(z,zx({},t,{ref:F}))}return h.createElement(eue.Provider,{value:U},h.createElement(`div`,zx({},Wt(B,H),{ref:F,className:r,style:i,onMouseDown:R}),h.createElement(Nx,{className:m(`${n}-prefix`,N?.prefix),style:P?.prefix},a),h.createElement(fue,{ref:I}),h.createElement(Nx,{className:m(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&h.createElement(Nx,{className:m(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function gue(e,t,n){return h.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;te===`tags`||e===`multiple`,_ue=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:g,notFoundContent:_=`Not Found`,onClear:v,maxCount:y,placeholder:b,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:W,popupStyle:G,popupClassName:ee,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,showAction:oe=[],onFocus:se,onBlur:ce,onKeyUp:le,onKeyDown:ue,onMouseDown:de,components:fe,...me}=e,he=Vx(x),ge=h.useRef(null),_e=h.useRef(null),ve=h.useRef(null),[ye,be]=h.useState(!1);h.useImperativeHandle(t,()=>({focus:ge.current?.focus,blur:ge.current?.blur,scrollTo:e=>ve.current?.scrollTo(e),nativeElement:rt(ge.current)}));let xe=gue(fe,w,T),Se=h.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Ce=x===`combobox`&&typeof w==`function`&&w()||null,we=!_&&g,[Te,Ee,De,Oe]=$le(D||!1,E,O,e=>S||we?!1:e),ke=h.useMemo(()=>typeof I==`function`||(I||[]).some(e=>[` + ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},jce=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Mce=e=>{let{componentCls:t}=e,n=mg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(gr(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],gr(a))}}},Nce=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Go(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()})},Pce=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${q(e.padding)} ${q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${q(e.paddingXS)} ${q(e.padding)}`:0,footerBorderTop:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${q(e.padding*2)} ${q(e.padding*2)} ${q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Fce=Sc(`Modal`,e=>{let t=Nce(e);return[Ace(t),jce(t),kce(t),Of(t,`zoom`),Mce(t)]},Pce,{unitless:{titleLineHeight:!0}}),gx;yce()&&document.documentElement.addEventListener(`click`,e=>{gx={x:e.pageX,y:e.pageY},setTimeout(()=>{gx=null},100)},!0);var Ice=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:g,confirmLoading:_,zIndex:v,mousePosition:y,onOk:b,onCancel:x,okButtonProps:S,cancelButtonProps:C,destroyOnHidden:w,destroyOnClose:T,panelRef:E=null,closable:D,mask:O,modalRender:k,maskClosable:A,scrollLock:j,focusTriggerAfterClose:M,focusable:N,...P}=e,{getPopupContainer:F,getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,centered:H,cancelButtonProps:U,okButtonProps:W,mask:G,focusable:ee}=Ur(`modal`),{modal:K}=h.useContext(Br),[te,ne]=h.useMemo(()=>typeof D==`boolean`?[void 0,void 0]:[D?.afterClose,D?.onClose],[D]),re=I(`modal`,t),ie=I(),[ae,se,ce]=fd(O,G,re,A),le=bce({...ee,...N},ae,M),ue=e=>{_||(x?.(e),ne?.())},de=e=>{b?.(e),ne?.()},fe=og(re),[pe,me]=Fce(re,fe),he=m(a,{[`${re}-centered`]:o??H,[`${re}-wrap-rtl`]:L===`rtl`}),ge=u!==null&&!g?h.createElement(Dce,{...e,okButtonProps:{...W,...S},onOk:de,cancelButtonProps:{...U,...C},onCancel:ue}):null,[_e,ve,ye,be]=ld(rd(e),rd(K),{closable:!0,closeIcon:h.createElement(oe,{className:`${re}-close-icon`}),closeIconRender:e=>Ece(re,e)}),xe=_e?{disabled:ye,closeIcon:ve,afterClose:te,...be}:!1,Se=k?e=>h.createElement(`div`,{className:`${re}-render`},k(e)):void 0,Ce=Ie(E,Cce(`.${re}-${k?`render`:`container`}`)),[we,Te]=Ed(`Modal`,v),Ee={...e,width:l,panelRef:E,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ae,maskClosable:ce,zIndex:we},[De,Oe]=Nr([B,d,se],[V,f],{props:Ee}),[ke,Ae]=h.useMemo(()=>xr(l)?[void 0,l]:[l,void 0],[l]),je=h.useMemo(()=>{let e={};return Ae&&Object.keys(Ae).forEach(t=>{let n=Ae[t];_r(n)&&(e[`--${re}-${t}-width`]=yr(n)?`${n}px`:n)}),e},[re,Ae]);return h.createElement(Y_,{form:!0,space:!0},h.createElement(bd.Provider,{value:Te},h.createElement(vce,{width:ke,...P,zIndex:we,getContainer:s===void 0?F:s,prefixCls:re,rootClassName:m(pe,r,me,fe,De.root),rootStyle:Oe.root,footer:ge,visible:i,mousePosition:y??gx,onClose:ue,closable:xe,closeIcon:ve,transitionName:Kf(ie,`zoom`,e.transitionName),maskTransitionName:Kf(ie,`fade`,e.maskTransitionName),mask:ae,maskClosable:ce,scrollLock:j,className:m(pe,n,R),style:{...z,...c,...je},classNames:{...De,wrapper:m(De.wrapper,he)},styles:Oe,panelRef:Ce,destroyOnHidden:w??T,modalRender:Se,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},g?h.createElement(vte,{active:!0,title:!1,paragraph:{rows:4},className:`${re}-body-skeleton`}):p)))},Lce=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...so()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Rce=wc([`Modal`,`confirm`],e=>Lce(Nce(e)),Pce,{order:-1e3}),zce=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,{infoIcon:p,successIcon:g,errorIcon:_,warningIcon:v}=Ur(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=td(p,h.createElement(fe,null));break;case`success`:y=td(g,h.createElement(K,null));break;case`error`:y=td(_,h.createElement(re,null));break;default:y=td(v,h.createElement(le,null))}let b=s??o===`confirm`,x=h.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[S]=$c(`Modal`),C=l||S,w=r||(b?C?.okText:C?.justOkText),T=i||C?.cancelText,{closable:E}=f,{onClose:D}=xr(E)?E:{},O=h.useMemo(()=>({autoFocusButton:x,cancelTextLocale:T,okTextLocale:w,mergedOkCancel:b,onClose:D,...f}),[x,T,w,b,D,f]),k=h.createElement(h.Fragment,null,h.createElement(sx,null),h.createElement(cx,null)),A=vr(e.title),j=vr(y),M=`${a}-body`;return h.createElement(`div`,{className:`${a}-body-wrapper`},h.createElement(`div`,{className:m(M,{[`${M}-has-title`]:A,[`${M}-no-icon`]:!j})},y,h.createElement(`div`,{className:`${a}-paragraph`},A&&h.createElement(`span`,{className:`${a}-title`},e.title),h.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||Sr(c)?h.createElement(ox,{value:O},h.createElement(`div`,{className:`${a}-btns`},Sr(c)?c(k,{OkBtn:cx,CancelBtn:sx}):k)):c,h.createElement(Rce,{prefixCls:t}))},Bce=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:g,okButtonProps:_,cancelButtonProps:v}=e,{cancelButtonProps:y,okButtonProps:b}=Ur(`modal`),x=`${a}-confirm`,S=e.width||416,C=e.style||{},w=m(x,`${x}-${e.type}`,{[`${x}-rtl`]:i===`rtl`},e.className),T=h.useMemo(()=>{let e=dd(p,g);return e.closable??=!1,e},[p,g]),[,E]=xc(),D=h.useMemo(()=>n===void 0?E.zIndexPopupBase+Sd:n,[n,E]);return h.createElement(Ice,{...e,className:w,wrapClassName:m({[`${x}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:Kf(s||``,`zoom`,e.transitionName),maskTransitionName:Kf(s||``,`fade`,e.maskTransitionName),mask:T,style:C,styles:{body:c,mask:r,...d},width:S,zIndex:D,closable:l},h.createElement(zce,{...e,confirmPrefixCls:x,okButtonProps:{...b,..._},cancelButtonProps:{...y,...v}}))},Vce=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Uu,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(Bce,{...e}))},_x=[],Hce=``;function Uce(){return Hce}var Wce=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Zc(),a=(0,h.useContext)(Br),o=Uce()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),h.createElement(Vce,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function vx(e){let t=Vu(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<_x.length;e++)if(_x[e]===s){_x.splice(e,1);break}xn(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,Uce()),i=t.getIconPrefixCls(),a=t.getTheme(),o=h.createElement(Wce,{...e});bn(h.createElement(Uu,{prefixCls:r,iconPrefixCls:i,theme:a},Sr(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{Sr(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=Sr(e)?e(r):{...r,...e},o(r)}return o(r),_x.push(s),{destroy:s,update:c}}function Gce(e){return{...e,type:`warning`}}function Kce(e){return{...e,type:`info`}}function qce(e){return{...e,type:`success`}}function Jce(e){return{...e,type:`error`}}function Yce(e){return{...e,type:`confirm`}}function Xce({rootPrefixCls:e}){Hce=e}var Zce=wg(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=h.useContext(Br),{className:p,style:g,classNames:_,styles:v}=Ur(`modal`),y=f(),b=t||f(`modal`),x=og(y),[S,C]=Fce(b,x),[w,T]=Nr([_,l],[v,u],{props:e}),E=`${b}-confirm`,D={};return D=a?{closable:i??!1,title:``,footer:``,children:h.createElement(zce,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:y,content:s})}:{closable:i??!0,title:o,footer:c!==null&&h.createElement(Dce,{...e}),children:s},h.createElement(mce,{prefixCls:b,className:m(S,`${b}-pure-panel`,a&&E,a&&`${E}-${a}`,n,p,C,x,w.root),style:{...g,...T.root},...d,closeIcon:Ece(b,r),closable:i,classNames:w,styles:T,...D})}),Qce=h.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=h.useState(!0),[s,c]=h.useState(r),{direction:l,getPrefixCls:u}=h.useContext(Br),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};h.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=Sr(e)?e(t):e;return{...t,...n}})}}));let g=s.okCancel??s.type===`confirm`,[_]=$c(`Modal`,Kc.Modal);return h.createElement(Vce,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(g?_?.okText:_?.justOkText),direction:s.direction||l,cancelText:s.cancelText||_?.cancelText,...i})}),$ce=0,ele=h.memo(h.forwardRef((e,t)=>{let[n,r]=gd();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function tle(){let e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(gr(t).forEach(e=>{e()}),n([]))},[t]);let r=h.useCallback(t=>function(r){$ce+=1;let i=h.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=h.createElement(Qce,{key:`modal-${$ce}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&_x.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(gr(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(gr(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[h.useMemo(()=>({info:r(Kce),success:r(qce),error:r(Jce),warning:r(Gce),confirm:r(Yce)}),[r]),h.createElement(ele,{key:`modal-holder`,ref:e})]}function nle(e){return vx(Gce(e))}var yx=Ice;yx.useModal=tle,yx.info=function(e){return vx(Kce(e))},yx.success=function(e){return vx(qce(e))},yx.error=function(e){return vx(Jce(e))},yx.warning=nle,yx.warn=nle,yx.confirm=function(e){return vx(Yce(e))},yx.destroyAll=function(){for(;_x.length;){let e=_x.pop();e&&e()}},yx.config=Xce,yx._InternalPanelDoNotUseOrYouWillBeFired=Zce;var bx=e=>vr(e)?Sr(e)?e():e:null,rle=`50%`,ile=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Tc(g,`tooltip`);return[{[t]:{...io(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,filter:o,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,rle),`var(--arrow-y, ${rle})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},gy(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},ale=e=>{let{componentCls:t,antCls:n}=e,[r]=Tc(n,`tooltip`);return{[t]:ns.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},ole=Sc(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Go(e,{popoverBg:t,popoverColor:n});return[ile(r),ale(r),Of(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Cv(e),...hy({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),sle=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!vr(t)&&!vr(n)?null:h.createElement(h.Fragment,null,vr(t)&&h.createElement(`div`,{className:m(`${r}-title`,i?.title),style:a?.title},t),vr(n)&&h.createElement(`div`,{className:m(`${r}-content`,i?.content),style:a?.content},n))},cle=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=bx(o),f=bx(s),p={...e,placement:a},[g,_]=Nr([l],[u],{props:p}),v=m(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return h.createElement(`div`,{className:v,style:i},h.createElement(`div`,{className:`${n}-arrow`}),h.createElement(uy,{...e,className:t,prefixCls:n,classNames:g,styles:_},c||h.createElement(sle,{prefixCls:n,title:d,content:f,classNames:g,styles:_})))},lle=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=h.useContext(Br),a=i(`popover`,t),[o,s]=ole(a);return h.createElement(cle,{...r,prefixCls:a,hashId:o,className:m(n,s)})},ule=h.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:g,motion:_,arrow:v,...y}=e,{getPrefixCls:b,className:x,style:S,classNames:C,styles:w,arrow:T,trigger:E}=Ur(`popover`),D=b(`popover`,n),[O,k]=ole(D),A=b(),j=by(v,T),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:g},[P,F]=Nr([C,g],[w,p],{props:N}),I=m(a,O,k,x,P.root),[L,R]=ye(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=bx(r),V=bx(i);return h.createElement(Ty,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,...y,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...S,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:vr(B)||vr(V)?h.createElement(sle,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:Kf(A,`zoom-big`,typeof _?.motionName==`string`?_?.motionName:void 0)},"data-popover-inject":!0},c)});ule._InternalPanelDoNotUseOrYouWillBeFired=lle;var dle=Sc(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),fle=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=h.createElement(le,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:g,classNames:_,styles:v}=e,{getPrefixCls:y}=h.useContext(Br),[b]=$c(`Popconfirm`,Kc.Popconfirm),x=bx(i),S=bx(a);return h.createElement(`div`,{className:`${t}-inner-content`,onClick:g},h.createElement(`div`,{className:`${t}-message`},l&&h.createElement(`span`,{className:m(`${t}-message-icon`,_?.icon),style:v?.icon},l),h.createElement(`div`,{className:`${t}-message-text`},vr(x)&&h.createElement(`div`,{className:m(`${t}-title`,_?.title),style:v?.title},x),vr(S)&&h.createElement(`div`,{className:m(`${t}-description`,_?.content),style:v?.content},S))),h.createElement(`div`,{className:`${t}-buttons`},u&&h.createElement(gp,{onClick:p,size:`small`,...r},o||b?.cancelText),h.createElement(ix,{buttonProps:{size:`small`,...Id(c),...n},actionFn:f,close:d,prefixCls:y(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||b?.okText)))},ple=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=h.useContext(Br),s=o(`popconfirm`,t);return dle(s),h.createElement(lle,{placement:n,className:m(s,r),style:i,content:h.createElement(fle,{prefixCls:s,...a})})},xx=h.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=h.createElement(le,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...g}=e,{getPrefixCls:_,className:v,style:y,classNames:b,styles:x,arrow:S,trigger:C}=Ur(`popconfirm`),[w,T]=ye(e.defaultOpen??!1,e.open),E=by(f,S),D=i||C||`click`,O=e=>{T(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=_(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Nr([b,p],[x,d],{props:P}),L=m(N,v,c,F.root);return dle(N),h.createElement(ule,{arrow:E,...Wt(g,[`title`]),trigger:D,placement:r,onOpenChange:M,open:w,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...y,...I.root,...u},container:I.container,arrow:I.arrow},content:h.createElement(fle,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});xx._InternalPanelDoNotUseOrYouWillBeFired=ple;var mle=h.createContext(void 0),hle=mle.Provider,gle=h.createContext(void 0),_le=gle.Provider;function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,h.useRef)(null),p=(0,h.useRef)(null),[g,_]=ye(s,a);(0,h.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let v=m(n,r,{[`${n}-checked`]:g,[`${n}-disabled`]:o});return h.createElement(`span`,{className:v,title:l,style:i,ref:p},h.createElement(`input`,Sx({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||_(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!g,type:c})))});function yle(e){let t=h.useRef(null),n=()=>{nn.cancel(t.current),t.current=null};return[()=>{n(),t.current=nn(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var ble=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:{...io(e),display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...d(i),[`&${c}-large`]:{...d(a)},[`&${c}-small`]:{...d(o)}}}}},xle=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...io(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...io(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${q(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:co(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},Sle=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":co(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},Cle=Sc(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${q(n)} ${t}`,i=Go(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ble(i),xle(i),Sle(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),Cx=h.forwardRef((e,t)=>{let n=h.useContext(mle),r=h.useContext(gle),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=Ur(`radio`),u=Ie(t,h.useRef(null)),{isFormItemInput:d}=h.useContext(_m),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:g,rootClassName:_,children:v,style:y,title:b,classNames:x,styles:S,checked:C,...w}=e,T=i(`radio`,p),E=(n?.optionType||r)===`button`,D=E?`${T}-button`:T,O=og(T),[k,A]=Cle(T,O),j={...w},M=h.useContext(Cu),N=`checked`in e,P=C;n&&(j.name=n.name,j.onChange=f,P=e.value===n.value,j.disabled=j.disabled??n.disabled),(N||n)&&(j.checked=P),j.disabled=j.disabled??M;let F={...e,...j,checked:P},I=jr(s),L=jr(y),[R,z]=Nr([c,x],[l,I,S,L],{props:F}),B=m(`${D}-wrapper`,{[`${D}-wrapper-checked`]:P,[`${D}-wrapper-disabled`]:j.disabled,[`${D}-wrapper-rtl`]:a===`rtl`,[`${D}-wrapper-in-form-item`]:d,[`${D}-wrapper-block`]:!!n?.block},o,g,_,R.root,k,A,O),[V,H]=yle(j.onClick);return h.createElement($u,{component:`Radio`,disabled:j.disabled},h.createElement(`label`,{className:B,style:z.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:V},h.createElement(vle,{...j,className:m(R.icon,{[Gu]:!E}),style:z.icon,type:`radio`,prefixCls:D,ref:u,onClick:H}),vr(v)?h.createElement(`span`,{className:m(`${D}-label`,R.label),style:z.label},v):null))}),wle=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{name:i}=h.useContext(_m),a=we(ay(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:g,id:_,optionType:v,name:y=a,defaultValue:b,value:x,block:S=!1,onChange:C,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,orientation:O,vertical:k,role:A=`radiogroup`}=e,[j,M]=ye(b,x),N=h.useCallback(t=>{let n=j,r=t.target.value;`value`in e||M(r),r!==n&&C?.(t)},[j,M,C]),P=n(`radio`,o),F=`${P}-group`,I=og(P),[L,R]=Cle(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||yr(e)?h.createElement(Cx,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):h.createElement(Cx,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let B=ed(p),[,V]=hd(O,k),H=m(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:S},s,c,L,R,I),U=h.useMemo(()=>({onChange:N,value:j,disabled:d,name:y,optionType:v,block:S}),[N,j,d,y,v,S]);return h.createElement(`div`,{...Yt(e,{aria:!0,data:!0}),role:A,className:m(H,{[`${P}-group-vertical`]:V}),style:g,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,id:_,ref:t},h.createElement(hle,{value:U},z))}),Tle=h.memo(wle),Ele=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Br),{prefixCls:r,...i}=e,a=n(`radio`,r);return h.createElement(_le,{value:`button`},h.createElement(Cx,{prefixCls:a,...i,type:`radio`,ref:t}))}),Tx=Cx;Tx.Button=Ele,Tx.Group=Tle,Tx.__ANT_RADIO=!0;var Dle=yg,Ole=(e,t)=>{if(!e)return null;let 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}},Ex=e=>e===void 0?void 0:`${e}px`;function kle(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=h.useRef(null),[d,f]=h.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[g,_]=h.useState(null),[v,y]=h.useState(null);ge(()=>{if(d!==r){let e=p(d),t=p(r),n=Ole(e,l),i=Ole(t,l);f(r),_(n),y(i),e&&t?o():s()}},[r]);let b=h.useMemo(()=>Ex(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]),x=h.useMemo(()=>Ex(l?v?.top??0:c===`rtl`?-v?.right:v?.left),[l,c,v]);return!g||!v?null:h.createElement(ur,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{_(null),y(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":b,"--thumb-start-width":Ex(g?.width),"--thumb-active-left":x,"--thumb-active-width":Ex(v?.width),"--thumb-start-top":b,"--thumb-start-height":Ex(g?.height),"--thumb-active-top":x,"--thumb-active-height":Ex(v?.height)},a={ref:Ie(u,r),style:i,className:m(`${t}-thumb`,e)};return h.createElement(`div`,a)})}function Ale(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function jle(e){return e.map(e=>{if(typeof e==`object`&&e){let t=Ale(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var Mle=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v,onMouseDown:y,itemRender:b=e=>e})=>{let x=e=>{o||f(e,u)};return b(h.createElement(`label`,{className:m(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:y},h.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:x,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v}),h.createElement(`div`,{className:m(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},Nle=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:g,motionName:_=`thumb-motion`,itemRender:v,...y}=e,b=h.useRef(null),x=h.useMemo(()=>Ie(b,t),[b,t]),S=h.useMemo(()=>jle(a),[a]),[C,w]=ye(s??S[0]?.value,c),[T,E]=h.useState(!1),D=(e,t)=>{w(t),u?.(t)},O=Wt(y,[`children`]),[k,A]=h.useState(!1),[j,M]=h.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},L=e=>{let t=S.findIndex(e=>e.value===C),n=S.length,r=S[(t+e+n)%n];r&&(w(r.value),u?.(r.value))},R=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:L(-1);break;case`ArrowRight`:case`ArrowDown`:L(1);break}},z=e=>{let{value:t,disabled:r}=e;return h.createElement(Mle,Bf({},e,{name:l,data:e,itemRender:v,key:t,prefixCls:n,className:m(e.className,`${n}-item`,g?.item,{[`${n}-item-selected`]:t===C&&!T,[`${n}-item-focused`]:j&&k&&t===C}),style:p?.item,classNames:g,styles:p,checked:t===C,onChange:D,onFocus:N,onBlur:P,onKeyDown:R,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return h.createElement(`div`,Bf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:m(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:x}),h.createElement(`div`,{className:`${n}-group`},h.createElement(kle,{vertical:i,prefixCls:n,value:C,containerRef:b,motionName:`${n}-${_}`,direction:r,getValueIndex:e=>S.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),S.map(z)))});function Ple(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var Fle=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),Ile={overflow:`hidden`,...ro},Lle=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...io(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...lo(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 ${q(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...Fle(e),color:e.itemSelectedColor},"&-focused":co(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(e=>`${e} ${i}`).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:a,lineHeight:q(a),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,...Ile},"&-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`]:{...Fle(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${q(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:o,lineHeight:q(o),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:q(s),padding:`0 ${q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Ple(`&-disabled ${t}-item`,e),...Ple(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},Rle=Sc(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return Lle(Go(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function zle(e){return xr(e)&&!!e?.icon}var Ble=h.forwardRef((e,t)=>{let n=we(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:g,classNames:_,...v}=e,{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=Ur(`segmented`),T={...e,options:s,size:c,shape:f},E=jr(S),D=jr(l),[O,k]=Nr([C,_],[w,E,g,D],{props:T}),A=y(`segmented`,r),[j,M]=Rle(A),N=ed(c),P=h.useMemo(()=>s.map(e=>{if(zle(e)){let{icon:t,label:n,...r}=e;return{...r,label:h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(`${A}-item-icon`,O.icon),style:k.icon},t),n&&h.createElement(`span`,null,n))}}return e}),[s,A,O.icon,k.icon]),[,F]=hd(d,u),I=m(i,a,x,O.root,{[`${A}-block`]:o,[`${A}-sm`]:N===`small`,[`${A}-lg`]:N===`large`,[`${A}-vertical`]:F,[`${A}-shape-${f}`]:f===`round`},j,M),L=(e,{item:t})=>{if(!t.tooltip)return e;let n=xr(t.tooltip)?t.tooltip:{title:t.tooltip};return h.createElement(Ty,{...n},e)};return h.createElement(Nle,{...v,name:p,className:I,style:k.root,classNames:O,styles:k,itemRender:L,options:P,ref:t,prefixCls:A,direction:b,vertical:F})}),Vle=(e,t,n,r,i=!1,a,o)=>{let s=(0,h.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,h.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Hle=h.createContext(null);function Dx(){return h.useContext(Hle)}function Ule(e=250){let t=h.useRef(null),n=h.useRef(null);h.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Wle(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Gle(e,t,n,r){let i=pe(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Wle(e(),a)&&n(!1)});h.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let 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`}}},qle=h.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:g,popupRender:_,popupAlign:v,getPopupContainer:y,empty:b,onPopupVisibleChange:x,onPopupMouseEnter:S,onPopupMouseDown:C,onPopupBlur:w,...T}=e,E=`${n}-dropdown`,D=o;_&&(D=_(o));let O=h.useMemo(()=>p||Kle(g),[p,g]),k=s?`${E}-${s}`:c,A=typeof g==`number`,j=h.useMemo(()=>g===!1||A?`minWidth`:`width`,[g,A]),M=l;A&&(M={...l,width:g});let N=h.useRef(null);return h.useImperativeHandle(t,()=>({getPopupElement:()=>N.current?.popupElement})),h.createElement(hu,Ox({},T,{showAction:x?[`click`]:[],hideAction:x?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:O,prefixCls:E,popupMotion:{motionName:k},popup:h.createElement(`div`,{onMouseEnter:S,onMouseDown:C,onBlur:w},D),ref:N,stretch:j,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:m(u,{[`${E}-empty`]:b}),popupStyle:M,onPopupVisibleChange:x}),a)});function Jle(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function kx(e){return e!==void 0&&!Number.isNaN(e)}function Yle(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Xle(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Yle(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:Jle(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:Jle(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Ax(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Rt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Zle=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Qle(e){let{visible:t,values:n}=e;return t?h.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var $le=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},jx=(e,t=1)=>{if(t<=0){e();return}$le(()=>{jx(e,t-1)})};function eue(e,t,n,r){let[i,a]=(0,h.useState)(!1);(0,h.useEffect)(()=>{a(!0)},[]);let[o,s]=ye(e,t),[c,l]=(0,h.useState)(!1),u=i?o:!1,d=r(u),f=(0,h.useRef)(0),p=pe(e=>{n&&d!==e&&n(e),s(e)});return[u,d,pe((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():jx(()=>{a()})}),c]}function Mx(e){let{children:t,...n}=e;return t?h.createElement(`div`,n,t):null}var tue=h.createContext(null);function Nx(){return h.useContext(tue)}var nue=h.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:g,onInputBlur:_,autoFocus:v,tokenWithEnter:y,placeholder:b,components:{input:x=`input`}}=Nx(),{id:S,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=Dx()||{},k=m(`${d}-input`,C?.input,c),A=h.useRef(!1),j=h.useRef(null),M=h.useRef(null);h.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(y&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&g&&g(n),r?.(e)},F=e=>{_?.(),i?.(e)},I=()=>{A.current=!0},L=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},R=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[z,B]=h.useState(void 0);ge(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;B(t),e.style.width=``}},[o,s]);let V={id:S,type:`text`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":z},autoFocus:v,autoComplete:l||`new-password`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:R,onCompositionStart:I,onCompositionEnd:L,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${S}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${S}_list`:void 0,"aria-activedescendant":T?E:void 0};if(h.isValidElement(x)){let t=x.props||{},n={placeholder:e.placeholder||b,...V,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),V[e]?.(...t)})}),n.ref=Ie(x.ref,V.ref),h.cloneElement(x,n)}let H=x;return h.createElement(H,V)});function rue(e){let{prefixCls:t,placeholder:n,displayValues:r}=Nx(),{classNames:i,styles:a}=Dx(),{show:o=!0}=e;return r.length?null:h.createElement(`div`,{className:m(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var Px=h.createContext(null);function iue(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function aue(e){return e!=null}function oue(e){return!e&&e!==0}function sue(e){return[`string`,`number`].includes(typeof e)}function Fx(e){let t;return e&&(sue(e.title)?t=e.title.toString():sue(e.label)&&(t=e.label.toString())),t}function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Nx(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=Dx(),g=h.useContext(Px),[_,v]=h.useState(!1),y=s===`combobox`,b=a[0],x=h.useMemo(()=>y&&i&&!_&&l?i:d?r:``,[y,i,_,l,r,d]),[S,C,w,T]=h.useMemo(()=>{let e,t,n;if(b&&g?.flattenOptions){let r=g.flattenOptions.find(e=>e.value===b.value);r?.data&&(e=r.data.className,t=r.data.style,n=Fx(r.data))}return b&&!n&&(n=Fx(b)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[b,g?.flattenOptions,u]);h.useEffect(()=>{y&&v(!1)},[y,i]);let E=b&&b.label!==null&&b.label!==void 0&&String(b.label).trim()!==``,D=y&&c?.input?null:b?T?h.createElement(`div`,{className:m(`${n}-content-value`,S),style:{...x?{visibility:`hidden`}:{},...C},title:w},b.label):b.label:h.createElement(rue,{show:!x});return h.createElement(`div`,{className:m(`${n}-content`,E&&`${n}-content-has-value`,x&&`${n}-content-has-search-value`,T&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:T?void 0:w},D,h.createElement(nue,Ix({ref:t},e,{value:x,maxLength:s===`combobox`?o:void 0,onChange:t=>{v(!0),e.onChange?.(t)}})))}),lue=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return h.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?h.createElement(`span`,{className:m(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Lx(){return Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation()},fue=h.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Nx(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:g,maxTagPlaceholder:_,maxTagTextLength:v,maxTagCount:y,classNames:b,styles:x}=Dx(),S=`${n}-selection-item`,C=i;!d&&a===`multiple`&&p!==!1&&(C=``);let w=l&&C||``,T=l&&!c,E=s??`×`,D=_??(e=>`+ ${e.length} ...`),O=g,k=e=>{f(e)},A=e=>{o?.(e)},j=(e,t,n,r,i)=>h.createElement(`span`,{title:Fx(e),className:m(S,{[`${S}-disabled`]:n},b?.item),style:x?.item},h.createElement(`span`,{className:m(`${S}-content`,b?.itemContent),style:x?.itemContent},t),r&&h.createElement(lue,{className:m(`${S}-remove`,b?.itemRemove),style:x?.itemRemove,onMouseDown:due,onClick:i,customizeIcon:E},`×`)),M=(e,t,n,r,i,a,o)=>h.createElement(`span`,{onMouseDown:e=>{due(e),k(!u)}},O({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return h.createElement(th,{prefixCls:`${n}-content`,className:b?.content,style:x?.content,prefix:!r.length&&!w&&h.createElement(rue,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof v==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>v&&(o=`${e.slice(0,v)}...`)}let s=t=>{t&&t.stopPropagation(),A(e)};return typeof O==`function`?M(i,o,n,a,s,void 0,t):j(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof D==`function`?D(e):D;return typeof O==`function`?M(void 0,t,!1,!1,void 0,!0):j({title:t},t,!1)},suffix:h.createElement(nue,Lx({ref:t,disabled:c,readOnly:!T},e,{value:w||``,syncWidth:!0})),itemKey:uue,maxCount:y})}),pue=h.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Nx(),a=Dx(),{showSearch:o}=a,s={...Yt(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?h.createElement(fue,{ref:t,inputProps:s}):h.createElement(cue,{ref:t,inputProps:s})});function mue(e){return e&&![Et.ESC,Et.SHIFT,Et.BACKSPACE,Et.TAB,Et.WIN_KEY,Et.ALT,Et.META,Et.WIN_KEY_RIGHT,Et.CTRL,Et.SEMICOLON,Et.EQUALS,Et.CAPS_LOCK,Et.CONTEXT_MENU,Et.UP,Et.LEFT,Et.RIGHT,Et.F1,Et.F2,Et.F3,Et.F4,Et.F5,Et.F6,Et.F7,Et.F8,Et.F9,Et.F10,Et.F11,Et.F12].includes(e)}function Rx(){return Rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===Et.UP||t===Et.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Et.UP,Et.DOWN,Et.LEFT,Et.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&mue(t)&&k(!0)});h.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:rt(F.current)}));let R=pe(e=>{if(!j){let t=rt(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&!l&&k(!1):(I.current?.focus(),r||k())}x?.(e)}),{root:z}=E,B=Wt(D,hue),V=Yt(B,{aria:!0}),H=Object.keys(V),U={...e,onInputKeyDown:L};if(z){let e=z.props||{},t={...e,...B};return Object.keys(e).forEach(n=>{let r=e[n],i=B[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),h.isValidElement(z)?h.cloneElement(z,{...t,ref:Ie(z.ref,F)}):h.createElement(z,Rx({},t,{ref:F}))}return h.createElement(tue.Provider,{value:U},h.createElement(`div`,Rx({},Wt(B,H),{ref:F,className:r,style:i,onMouseDown:R}),h.createElement(Mx,{className:m(`${n}-prefix`,N?.prefix),style:P?.prefix},a),h.createElement(pue,{ref:I}),h.createElement(Mx,{className:m(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&h.createElement(Mx,{className:m(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function _ue(e,t,n){return h.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;te===`tags`||e===`multiple`,vue=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:g,notFoundContent:_=`Not Found`,onClear:v,maxCount:y,placeholder:b,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:W,popupStyle:G,popupClassName:ee,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,showAction:oe=[],onFocus:se,onBlur:ce,onKeyUp:le,onKeyDown:ue,onMouseDown:de,components:fe,...me}=e,he=Bx(x),ge=h.useRef(null),_e=h.useRef(null),ve=h.useRef(null),[ye,be]=h.useState(!1);h.useImperativeHandle(t,()=>({focus:ge.current?.focus,blur:ge.current?.blur,scrollTo:e=>ve.current?.scrollTo(e),nativeElement:rt(ge.current)}));let xe=_ue(fe,w,T),Se=h.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Ce=x===`combobox`&&typeof w==`function`&&w()||null,we=!_&&g,[Te,Ee,De,Oe]=eue(D||!1,E,O,e=>S||we?!1:e),ke=h.useMemo(()=>typeof I==`function`||(I||[]).some(e=>[` `,`\r -`].includes(e)),[I]),Ae=h.useMemo(()=>typeof I==`function`?(e,t)=>{let n=I(e),r=Array.isArray(n)&&n.length===1&&n[0]===e;return!Array.isArray(n)||!n.length||r?null:t===void 0?n:n.slice(0,t)}:(e,t)=>Xle(e,I,t),[I]),je=(e,t,n)=>{if(he&&Ax(y)&&f.length>=y)return;let r=!0,i=e;A?.(null);let a=Ax(y)?y-f.length:void 0,o=n?null:Ae(e,a);return x!==`combobox`&&o&&(i=``,F?.(o),De(!1),r=!1),P&&Se!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&De(!0),r},Me=e=>{!e||!e.trim()||P(e,{source:`submit`})};h.useEffect(()=>{!Te&&!he&&x!==`combobox`&&je(``,!1,!1)},[Te]),h.useEffect(()=>{S&&(De(!1),be(!1))},[S,Ee]);let[Ne,Pe]=Hle(),Fe=h.useRef(!1),Ie=e=>{let t=Ne(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Ee||De(!0)}if(Pe(!!Se),n===`Backspace`&&!t&&he&&!Se&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Ee&&(!r||!Fe.current)&&!i&&(r&&(Fe.current=!0),ve.current?.onKeyDown(e)),ue?.(e)},Le=(e,...t)=>{Ee&&ve.current?.onKeyUp(e,...t),e.key===`Enter`&&(Fe.current=!1),le?.(e,...t)},Re=pe(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),ze=()=>{Fe.current=!1},Be=()=>[rt(ge.current),_e.current?.getPopupElement()];Wle(Be,Ee,De,!!xe.root);let Ve=h.useRef(!1),He=e=>{be(!0),S||(oe.includes(`focus`)&&De(!0),se?.(e))},Ue=()=>{Ee&&!Ve.current&&De(!1,{cancelFun:()=>Ule(Be(),document.activeElement)})},We=e=>{be(!1),Se&&(x===`tags`?P(Se,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),Ue(),S||ce?.(e)},Ge=(e,...t)=>{let{target:n}=e;(_e.current?.getPopupElement())?.contains(n)&&De&&De(!0),de?.(e,...t),Ve.current=!0,Mx(()=>{Ve.current=!1})},[,Ke]=h.useState({});function qe(){Ke({})}let Je;xe.root&&(Je=e=>{De(e)});let Ye=h.useMemo(()=>({...e,notFoundContent:_,open:Ee,triggerOpen:Ee,rawOpen:Te,id:n,showSearch:s,multiple:he,toggleOpen:De,showScrollBar:l,styles:a,classNames:o,lockOptions:Oe}),[e,_,De,n,s,he,Ee,Te,l,a,o,Oe]),Xe=h.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:Se,open:Ee,focused:ye,showSearch:s,loading:C}):e},[z,B,Se,Ee,ye,s,C]),Ze=()=>{v?.(),ge.current?.focus(),p([],{type:`clear`,values:f}),je(``,!1,!1)},{allowClear:Qe,clearIcon:$e}=Ble(r,f,L,V,S,Se,x),et=h.createElement(H,{ref:ve}),tt=m(r,i,{[`${r}-focused`]:ye,[`${r}-multiple`]:he,[`${r}-single`]:!he,[`${r}-allow-clear`]:Qe,[`${r}-show-arrow`]:Xe!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Ee,[`${r}-customize-input`]:Ce,[`${r}-show-search`]:s}),nt=h.createElement(hue,Bx({},me,{ref:ge,prefixCls:r,className:tt,focused:ye,prefix:R,suffix:Xe,clearIcon:$e,multiple:he,mode:x,displayValues:f,placeholder:b,searchValue:Se,activeValue:k,onSearch:je,onSearchSubmit:Me,onInputBlur:ze,onFocus:He,onBlur:We,onClearMouseDown:Ze,onKeyDown:Ie,onKeyUp:Le,onSelectorRemove:Re,tokenWithEnter:ke,onMouseDown:Ge,components:xe}));return nt=h.createElement(Kle,{ref:_e,disabled:S,prefixCls:r,visible:Ee,popupElement:et,animation:U,transitionName:W,popupStyle:G,popupClassName:ee,direction:u,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,empty:g,onPopupVisibleChange:Je,onPopupMouseEnter:qe,onPopupMouseDown:Ge,onPopupBlur:Ue},nt),h.createElement(Vle.Provider,{value:Ye},h.createElement(Zle,{visible:ye&&!Ee,values:f}),nt)}),Hx=()=>null;Hx.isSelectOptGroup=!0;var Ux=()=>null;Ux.isSelectOption=!0;var Wx=h.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),h.createElement(`div`,{style:u},h.createElement(Fl,{onResize:({offsetHeight:e})=>{e&&a&&a()}},h.createElement(`div`,Bf({style:d,className:m({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});Wx.displayName=`Filler`;function vue({children:e,setRef:t}){let n=h.useCallback(e=>{t(e)},[]);return h.cloneElement(e,{ref:n})}function yue(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return h.createElement(vue,{key:l,setRef:t=>a(e,t)},c)})}function bue(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r{let a=bue(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var Gx=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),Sue=((e,t,n,r)=>{let i=(0,h.useRef)(!1),a=(0,h.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,h.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Cue(e,t,n,r,i,a,o){let s=(0,h.useRef)(0),c=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(!1),d=Sue(t,n,r,i);function f(e,t){if(nn.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Gx||n.preventDefault(),c.current=nn(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),Gx||e.preventDefault()}let m=(0,h.useRef)(null),g=(0,h.useRef)(null);function _(t){if(!e)return;nn.cancel(g.current),g.current=nn(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function v(t){e&&(u.current=t.detail===l.current)}return[_,v]}function wue(e,t,n,r){let[i,a]=h.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=Eue(i),c=Eue(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,h.useEffect)(()=>c,[]),[u,l,o.current,r]}var Kx=14/15;function Oue(e,t,n){let r=(0,h.useRef)(!1),i=(0,h.useRef)(0),a=(0,h.useRef)(0),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=Kx:c*=Kx;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},ge(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function qx(e){return Math.floor(e**.5)}function Jx(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function kue(e,t,n){h.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{nn.cancel(t)},o=()=>{a(),t=nn(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=Jx(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-qx(n-e),o()):e>=s?(i=qx(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var Aue=10;function jue(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function Mue(e,t,n,r,i,a,o,s,c){let l=h.useRef(),[u,d]=h.useState(null);return ge(()=>{if(u&&u.times({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=jue(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;dn&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:_,lastTop:v})}},[u,e.current]),e=>{if(e==null){c();return}if(nn.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}var Yx=h.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:g}=e,[_,v]=h.useState(!1),[y,b]=h.useState(null),[x,S]=h.useState(null),C=!r,w=h.useRef(),T=h.useRef(),[E,D]=h.useState(g),O=h.useRef(),k=()=>{g===!0||g===!1||(clearTimeout(O.current),D(!0),O.current=setTimeout(()=>{D(!1)},3e3))},A=a-d||0,j=d-u||0,M=h.useMemo(()=>i===0||A===0?0:i/A*j,[i,A,j]),N=e=>{e.stopPropagation(),e.preventDefault()},P=h.useRef({top:M,dragging:_,pageY:y,startTop:x});P.current={top:M,dragging:_,pageY:y,startTop:x};let F=e=>{v(!0),b(Jx(e,l)),S(P.current.top),o(),e.stopPropagation(),e.preventDefault()};h.useEffect(()=>{let e=e=>{e.preventDefault()},t=w.current,n=T.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,F,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,F)}},[]);let I=h.useRef();I.current=A;let L=h.useRef();L.current=j,h.useEffect(()=>{if(_){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=P.current;nn.cancel(e);let a=w.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(Jx(t,l)-r)*o,a=i;!C&&l?a-=n:a+=n;let s=I.current,u=L.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=nn(()=>{c(f,l)})}},n=()=>{v(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),nn.cancel(e)}}},[_]),h.useEffect(()=>(k(),()=>{clearTimeout(O.current)}),[i]),h.useImperativeHandle(t,()=>({delayHidden:k}));let R=`${n}-scrollbar`,z={position:`absolute`,visibility:E?null:`hidden`},B={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:`100%`,width:u,[C?`left`:`right`]:M})):(Object.assign(z,{width:8,top:0,bottom:0,[C?`right`:`left`]:0}),Object.assign(B,{width:`100%`,height:u,top:M})),h.createElement(`div`,{ref:w,className:m(R,{[`${R}-horizontal`]:l,[`${R}-vertical`]:!l,[`${R}-visible`]:E}),style:{...z,...f},onMouseDown:N,onMouseMove:k},h.createElement(`div`,{ref:T,className:m(`${R}-thumb`,{[`${R}-thumb-moving`]:_}),style:{...B,...p},onMouseDown:F}))}),Nue=20;function Xx(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Nue),Math.floor(n)}var Pue=[],Fue={overflowY:`auto`,overflowAnchor:`none`};function Zx(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:g=`div`,onScroll:_,onVirtualScroll:v,onVisibleChange:y,innerProps:b,extraRender:x,styles:S,showScrollBar:C=`optional`,...w}=e,T=h.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[E,D,O,k]=Due(T,null,null),A=!!(d!==!1&&i&&a),j=h.useMemo(()=>Object.values(O.maps).reduce((e,t)=>e+t,0),[O.id,O.maps]),M=A&&c&&(Math.max(a*c.length,j)>i||!!p),N=f===`rtl`,P=m(n,{[`${n}-rtl`]:N},r),F=c||Pue,I=(0,h.useRef)(),L=(0,h.useRef)(),R=(0,h.useRef)(),[z,B]=(0,h.useState)(0),[V,H]=(0,h.useState)(0),[U,W]=(0,h.useState)(!1),G=()=>{W(!0)},ee=()=>{W(!1)},K={getKey:T};function te(e){B(t=>{let n;n=typeof e==`function`?e(t):e;let r=be(n);return I.current.scrollTop=r,r})}let ne=(0,h.useRef)({start:0,end:F.length}),re=(0,h.useRef)(),[ie]=xue(F,T);re.current=ie;let{scrollHeight:ae,start:oe,end:se,offset:ce}=h.useMemo(()=>{if(!A)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!M)return{scrollHeight:L.current?.offsetHeight||0,start:0,end:F.length-1,offset:void 0};let e=0,t,n,r,o=F.length;for(let s=0;s=z&&t===void 0&&(t=s,n=e),u>z+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=F.length-1),r=Math.min(r+1,F.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[M,A,z,F,k,i]);ne.current.start=oe,ne.current.end=se,h.useLayoutEffect(()=>{let e=O.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=F[oe];if(r&&n===void 0&&T(r)===t){let e=O.get(t)-a;te(t=>t+e)}}O.resetRecord()},[ae]);let[le,ue]=h.useState({width:0,height:i}),de=e=>{ue({width:e.offsetWidth,height:e.offsetHeight})},fe=(0,h.useRef)(),me=(0,h.useRef)(),he=h.useMemo(()=>Xx(le.width,p),[le.width,p]),_e=h.useMemo(()=>Xx(le.height,ae),[le.height,ae]),ve=ae-i,ye=(0,h.useRef)(ve);ye.current=ve;function be(e){let t=e;return Number.isNaN(ye.current)||(t=Math.min(t,ye.current)),t=Math.max(t,0),t}let xe=z<=0,Se=z>=ve,Ce=V<=0,we=V>=p,Te=Sue(xe,Se,Ce,we),Ee=()=>({x:N?-V:V,y:z}),De=(0,h.useRef)(Ee()),Oe=pe(e=>{if(v){let t={...Ee(),...e};(De.current.x!==t.x||De.current.y!==t.y)&&(v(t),De.current=t)}});function ke(e,t){let n=e;t?((0,Sn.flushSync)(()=>{H(n)}),Oe()):te(n)}function Ae(e){let{scrollTop:t}=e.currentTarget;t!==z&&te(t),_?.(e),Oe()}let je=e=>{let t=e,n=p?p-le.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Me=pe((e,t)=>{t?((0,Sn.flushSync)(()=>{H(t=>je(t+(N?-e:e)))}),Oe()):te(t=>t+e)}),[Ne,Pe]=Cue(A,xe,Se,Ce,we,!!p,Me);Oue(A,I,(e,t,n,r)=>{let i=r;return Te(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ne({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),kue(M,I,e=>{te(t=>t+e)}),ge(()=>{function e(e){let t=xe&&e.detail<0,n=Se&&e.detail>0;A&&!t&&!n&&e.preventDefault()}let t=I.current;return t.addEventListener(`wheel`,Ne,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Pe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ne),t.removeEventListener(`DOMMouseScroll`,Pe),t.removeEventListener(`MozMousePixelScroll`,e)}},[A,xe,Se]),ge(()=>{if(p){let e=je(V);H(e),Oe({x:e})}},[le.width,p]);let Fe=()=>{fe.current?.delayHidden(),me.current?.delayHidden()},Ie=wue(F,T,O,a),Le=Mue(I,F,O,a,T,Ie,()=>D(!0),te,Fe);h.useImperativeHandle(t,()=>({nativeElement:R.current,getScrollInfo:Ee,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&H(je(e.left)),Le(e.top)):Le(e)}})),ge(()=>{y&&y(F.slice(oe,se+1),F)},[oe,se,F]);let Re=x?.({start:oe,end:se,virtual:M,offsetX:V,scrollTop:z,offsetY:ce,rtl:N,getSize:Ie}),ze=yue(F,oe,se,p,V,E,l,K),Be=null;i&&(Be={[o?`height`:`maxHeight`]:i,...Fue},A&&(Be.overflowY=`hidden`,p&&(Be.overflowX=`hidden`),U&&(Be.pointerEvents=`none`)));let Ve={};return N&&(Ve.dir=`rtl`),h.createElement(`div`,Bf({ref:R,style:{...s,position:`relative`},className:P},Ve,w),h.createElement(Fl,{onResize:de},h.createElement(g,{className:`${n}-holder`,style:Be,ref:I,onScroll:Ae,onMouseEnter:Fe},h.createElement(Wx,{prefixCls:n,height:ae,offsetX:V,offsetY:ce,scrollWidth:p,onInnerResize:D,ref:L,innerProps:b,rtl:N,extra:Re},ze))),M&&ae>i&&h.createElement(Yx,{ref:fe,prefixCls:n,scrollOffset:z,scrollRange:ae,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:_e,containerSize:le.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:C}),M&&p>le.width&&h.createElement(Yx,{ref:me,prefixCls:n,scrollOffset:V,scrollRange:p,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:he,containerSize:le.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:C}))}var Qx=h.forwardRef(Zx);Qx.displayName=`List`;var Iue=h.forwardRef((e,t)=>Zx({...e,virtual:!1},t));Iue.displayName=`List`;var $x=Qx;function Lue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=Ox(),{maxCount:p,flattenOptions:g,onActiveValue:_,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:S,virtual:C,direction:w,listHeight:T,listItemHeight:E,optionRender:D,classNames:O,styles:k}=h.useContext(Fx),A=`${n}-item`,j=Te(()=>g,[i,f],(e,t)=>t[0]&&!t[1]),M=h.useRef(null),N=h.useMemo(()=>a&&Ax(p)&&x?.size>=p,[a,p,x?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=h.useCallback(e=>o===`combobox`?!1:x.has(e),[o,[...x].toString(),x.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;rL(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){_(null,-1,n);return}_(r.value,e,n)};(0,h.useEffect)(()=>{B(v===!1?-1:L(0))},[j.length,s]);let V=h.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():x.has(e),[o,s,[...x].toString(),x.size]);(0,h.useEffect)(()=>{let e;if(!a&&i&&x.size===1){let t=Array.from(x)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&y(e,{selected:!x.has(e)}),a||c(!1)};if(h.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Et.N:case Et.P:case Et.UP:case Et.DOWN:{let e=0;if(t===Et.UP?e=-1:t===Et.DOWN?e=1:Lue()&&n&&(t===Et.N?e=1:t===Et.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Et.TAB:case Et.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||x.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case Et.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return h.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(S).map(e=>S[e]),W=e=>e.label;function G(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let ee=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Yt(n,!0),s=W(t);return t?h.createElement(`div`,eS({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},G(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},K={role:`listbox`,id:`${r}_list`};return h.createElement(h.Fragment,null,C&&h.createElement(`div`,eS({},K,{style:{height:0,width:0,overflow:`hidden`}}),ee(R-1),ee(R),ee(R+1)),h.createElement($x,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:C,direction:w,innerProps:C?null:K,showScrollBar:d,className:O?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(Rue(a)?a.toString():void 0);return h.createElement(`div`,{className:m(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,g=Wt(p,U),_=I(o),v=c||!_&&N,y=`${A}-option`,x=m(A,y,f,O?.popup?.listItem,{[`${y}-grouped`]:r,[`${y}-active`]:R===t&&!v,[`${y}-disabled`]:v,[`${y}-selected`]:_}),S=W(e),w=!b||typeof b==`function`||_,T=typeof S==`number`?S:S||o,E=Rue(T)?T.toString():void 0;return l!==void 0&&(E=l),h.createElement(`div`,eS({},Yt(g),C?{}:G(e,t),{"aria-selected":C?void 0:V(o),"aria-disabled":v,className:x,title:E,onMouseMove:()=>{R===t||v||B(t)},onClick:()=>{v||H(o)},style:{...k?.popup?.listItem,...d}}),h.createElement(`div`,{className:`${y}-content`},typeof D==`function`?D(e,{index:t}):T),h.isValidElement(b)||_,w&&h.createElement(cue,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:v,isSelected:_}},_?`✓`:null))}))}),Bue=((e,t)=>{let n=h.useRef({values:new Map,options:new Map});return[h.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),h.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function tS(e,t){return rue(e).join(``).toUpperCase().includes(t)}var Vue=((e,t,n,r,i)=>h.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>tS(t[e],u)):t[a]?tS(t[o===`children`?`label`:o],u):tS(t[s],u),f=l?e=>jx(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function Hue(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function nS(e,t=!1){return rn(e).map((e,n)=>{if(!h.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?Hue(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:nS(a)}}).filter(e=>e)}var Uue=(e,t,n,r,i)=>h.useMemo(()=>{let a=e;e||(a=nS(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function rS(e){let t=h.useRef();return t.current=e,h.useCallback((...e)=>t.current(...e),[])}function Wue(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return h.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:g,onActive:_,popupMatchSelectWidth:v=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=Wue(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:G=!0}=z,ee=h.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),K=we(n),te=Vx(r),ne=!!(!b&&S),re=h.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),ie=h.useMemo(()=>Jle(o,ne),[JSON.stringify(o),ne]),[ae,oe]=ye(``,V),se=ae||``,ce=Uue(b,S,ie,ee,y),{valueOptions:le,labelOptions:ue,options:de}=ce,fe=h.useCallback(e=>rue(e).map(e=>{let t,n,r,i;Kue(e)?t=e:(n=e.label,t=e.value);let a=le.get(t);return a&&(n===void 0&&(n=a?.[y||ie.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[ie,y,le]),[pe,me]=ye(j,A),[he,ge]=Bue(h.useMemo(()=>{let e=fe(te&&pe===null?[]:pe);return r===`combobox`&&aue(e[0]?.value)?[]:e},[pe,fe,r,te]),le),_e=h.useMemo(()=>{if(!r&&he.length===1){let e=he[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return he.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,he,k]),ve=h.useMemo(()=>new Set(he.map(e=>e.value)),[he]);h.useEffect(()=>{if(r===`combobox`){let e=he[0]?.value;oe(iue(e)?String(e):``)}},[he]);let be=rS((e,t)=>{let n=t??e;return{[ie.value]:e,[ie.label]:n}}),xe=Vue(h.useMemo(()=>{if(r!==`tags`)return de;let e=[...de],t=e=>le.has(e);return[...he].sort((e,t)=>e.value{let r=n.value;t(r)||e.push(be(r,n.label))}),e},[be,de,le,he,r]),ie,se,re,ee),Se=h.useMemo(()=>{let e=e=>ee.length?ee.some(t=>e?.[t]===se):e?.value===se;return r!==`tags`||!se||xe.some(t=>e(t))||xe.some(e=>e[ie.value]===se)||le.get(se)?.disabled?xe:[be(se),...xe]},[be,ee,r,xe,se,ie,le]),Ce=e=>[...e].sort((e,t)=>U(e,t,{searchValue:se})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Ce(e.options):e.options}:e),Te=h.useMemo(()=>U?Ce(Se):Se,[Se,U,se]),Ee=h.useMemo(()=>Yle(Te,{fieldNames:ie,childrenAsData:ne}),[Te,ie,ne]),De=e=>{let t=fe(e);if(me(t),N&&(t.length!==he.length||t.some((e,t)=>he[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>jx(ge(e.value)));N(te?e:e[0],te?n:n[0])}},[Oe,ke]=h.useState(null),[Ae,je]=h.useState(0),Me=C===void 0?r!==`combobox`:C,Ne=h.useRef(),Pe=h.useCallback((e,t,{source:n=`keyboard`}={})=>{je(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&ke(String(e));let i=Promise.resolve().then(()=>{Ne.current===i&&_?.(e)});Ne.current=i},[a,r,_]),Fe=(e,t,n)=>{let r=()=>{let t=ge(e);return[M?{label:t?.[ie.label],value:e}:e,jx(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&g&&n!==`clear`){let[e,t]=r();g(e,t)}},Ie=rS((e,t)=>{let n,i=te?t.selected:!0;n=i?te?[...he,e]:[e]:he.filter(t=>t.value!==e),De(n),Fe(e,i),r===`combobox`?ke(``):(!Vx||G)&&(oe(``),ke(``))}),Le=(e,t)=>{De(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Fe(e.value,!1,n)})},Re=(e,t)=>{if(oe(e),ke(null),t.source===`submit`){let t=(e||``).trim();if(t){if(le.get(t)?.disabled){oe(``);return}De(Array.from(new Set([...ve,t]))),Fe(t,!0),oe(``)}return}t.source!==`blur`&&(r===`combobox`&&De(e),W?.(e))},ze=e=>{let t=e;r!==`tags`&&(t=e.map(e=>ue.get(e)?.value).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>!le.get(e)?.disabled));let n=Array.from(new Set([...ve,...t]));De(n),n.forEach(e=>{Fe(e,!0)})},Be=h.useMemo(()=>{let e=T!==!1&&v!==!1;return{...ce,flattenOptions:Ee,onActiveValue:Pe,defaultActiveFirstOption:Me,onSelect:Ie,menuItemSelectedIcon:w,rawValues:ve,fieldNames:ie,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:ne,maxCount:P,optionRender:x,classNames:F,styles:I}},[P,ce,Ee,Pe,Me,Ie,w,ve,ie,T,v,E,D,O,ne,x,F,I]);return h.createElement(Fx.Provider,{value:Be},h.createElement(_ue,iS({},L,{id:K,prefixCls:i,ref:t,omitDomProps:Gue,mode:r,classNames:F,styles:I,displayValues:_e,onDisplayValuesChange:Le,maxCount:P,direction:E,showSearch:R,searchValue:se,onSearch:Re,autoClearSearchValue:G,onSearchSplit:ze,popupMatchSelectWidth:v,OptionList:zue,emptyOptions:!Ee.length,activeValue:Oe,activeDescendantId:`${K}_list_${Ae}`})))});aS.Option=Ux,aS.OptGroup=Hx;var que=aS;function oS(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var sS=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new ps(e).onBackground(t).toHexString(),Jue=()=>{let[,e]=xc(),[t]=$c(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:a,colorTextQuaternary:o}=e,{panelBgColor:s,borderColor:c,detailColor:l,shadowColor:u,iconColor:d}=(0,h.useMemo)(()=>({panelBgColor:sS(a,n),borderColor:sS(o,n),detailColor:sS(r,n),shadowColor:sS(i,n),iconColor:n}),[n,r,i,a,o]);return h.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{fill:`none`,fillRule:`evenodd`},h.createElement(`g`,{transform:`translate(24 31.7)`},h.createElement(`ellipse`,{fillOpacity:`.8`,fill:u,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),h.createElement(`path`,{fill:c,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`}),h.createElement(`path`,{fill:s,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`}),h.createElement(`path`,{fill:l,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`})),h.createElement(`path`,{fill:l,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`}),h.createElement(`g`,{fill:d,transform:`translate(149.7 15.4)`},h.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),h.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},Yue=()=>{let[,e]=xc(),[t]=$c(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,h.useMemo)(()=>({borderColor:sS(n,a),shadowColor:sS(r,a),contentColor:sS(i,a)}),[n,r,i,a]);return h.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},h.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),h.createElement(`g`,{fillRule:`nonzero`,stroke:o},h.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),h.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}))))},Xue=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Zue=Sc(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Xue(Go(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),cS=h.createElement(Jue,null),lS=h.createElement(Yue,null),uS=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:g,style:_,classNames:v,styles:y,image:b}=Ur(`empty`),x=f(`empty`,r),[S,C]=Zue(x),w=jr(_),T=jr(c),[E,D]=Nr([v,l],[y,w,u,T],{props:e}),[O]=$c(`Empty`),k=a===void 0?O?.description:a,A=typeof k==`string`?k:`empty`,j=i??b??cS,M=null;return M=typeof j==`string`?h.createElement(`img`,{draggable:!1,alt:A,src:j}):j,h.createElement(`div`,{className:m(S,C,x,g,{[`${x}-normal`]:j===lS,[`${x}-rtl`]:p===`rtl`},t,n,E.root),style:D.root,...d},h.createElement(`div`,{className:m(`${x}-image`,E.image),style:{...s,...D.image}},M),k&&h.createElement(`div`,{className:m(`${x}-description`,E.description),style:D.description},k),o&&h.createElement(`div`,{className:m(`${x}-footer`,E.footer),style:D.footer},o))};uS.PRESENTED_IMAGE_DEFAULT=cS,uS.PRESENTED_IMAGE_SIMPLE=lS;var dS=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(Br),r=n(`empty`);switch(t){case`Table`:case`List`:return h.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return h.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return h.createElement(uS,null)}},Que=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function $ue(e,t){return e||Que(t)}var fS=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},ede=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...io(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,[` +`].includes(e)),[I]),Ae=h.useMemo(()=>typeof I==`function`?(e,t)=>{let n=I(e),r=Array.isArray(n)&&n.length===1&&n[0]===e;return!Array.isArray(n)||!n.length||r?null:t===void 0?n:n.slice(0,t)}:(e,t)=>Zle(e,I,t),[I]),je=(e,t,n)=>{if(he&&kx(y)&&f.length>=y)return;let r=!0,i=e;A?.(null);let a=kx(y)?y-f.length:void 0,o=n?null:Ae(e,a);return x!==`combobox`&&o&&(i=``,F?.(o),De(!1),r=!1),P&&Se!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&De(!0),r},Me=e=>{!e||!e.trim()||P(e,{source:`submit`})};h.useEffect(()=>{!Te&&!he&&x!==`combobox`&&je(``,!1,!1)},[Te]),h.useEffect(()=>{S&&(De(!1),be(!1))},[S,Ee]);let[Ne,Pe]=Ule(),Fe=h.useRef(!1),Ie=e=>{let t=Ne(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Ee||De(!0)}if(Pe(!!Se),n===`Backspace`&&!t&&he&&!Se&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Ee&&(!r||!Fe.current)&&!i&&(r&&(Fe.current=!0),ve.current?.onKeyDown(e)),ue?.(e)},Le=(e,...t)=>{Ee&&ve.current?.onKeyUp(e,...t),e.key===`Enter`&&(Fe.current=!1),le?.(e,...t)},Re=pe(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),ze=()=>{Fe.current=!1},Be=()=>[rt(ge.current),_e.current?.getPopupElement()];Gle(Be,Ee,De,!!xe.root);let Ve=h.useRef(!1),He=e=>{be(!0),S||(oe.includes(`focus`)&&De(!0),se?.(e))},Ue=()=>{Ee&&!Ve.current&&De(!1,{cancelFun:()=>Wle(Be(),document.activeElement)})},We=e=>{be(!1),Se&&(x===`tags`?P(Se,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),Ue(),S||ce?.(e)},Ge=(e,...t)=>{let{target:n}=e;(_e.current?.getPopupElement())?.contains(n)&&De&&De(!0),de?.(e,...t),Ve.current=!0,jx(()=>{Ve.current=!1})},[,Ke]=h.useState({});function qe(){Ke({})}let Je;xe.root&&(Je=e=>{De(e)});let Ye=h.useMemo(()=>({...e,notFoundContent:_,open:Ee,triggerOpen:Ee,rawOpen:Te,id:n,showSearch:s,multiple:he,toggleOpen:De,showScrollBar:l,styles:a,classNames:o,lockOptions:Oe}),[e,_,De,n,s,he,Ee,Te,l,a,o,Oe]),Xe=h.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:Se,open:Ee,focused:ye,showSearch:s,loading:C}):e},[z,B,Se,Ee,ye,s,C]),Ze=()=>{v?.(),ge.current?.focus(),p([],{type:`clear`,values:f}),je(``,!1,!1)},{allowClear:Qe,clearIcon:$e}=Vle(r,f,L,V,S,Se,x),et=h.createElement(H,{ref:ve}),tt=m(r,i,{[`${r}-focused`]:ye,[`${r}-multiple`]:he,[`${r}-single`]:!he,[`${r}-allow-clear`]:Qe,[`${r}-show-arrow`]:Xe!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Ee,[`${r}-customize-input`]:Ce,[`${r}-show-search`]:s}),nt=h.createElement(gue,zx({},me,{ref:ge,prefixCls:r,className:tt,focused:ye,prefix:R,suffix:Xe,clearIcon:$e,multiple:he,mode:x,displayValues:f,placeholder:b,searchValue:Se,activeValue:k,onSearch:je,onSearchSubmit:Me,onInputBlur:ze,onFocus:He,onBlur:We,onClearMouseDown:Ze,onKeyDown:Ie,onKeyUp:Le,onSelectorRemove:Re,tokenWithEnter:ke,onMouseDown:Ge,components:xe}));return nt=h.createElement(qle,{ref:_e,disabled:S,prefixCls:r,visible:Ee,popupElement:et,animation:U,transitionName:W,popupStyle:G,popupClassName:ee,direction:u,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,empty:g,onPopupVisibleChange:Je,onPopupMouseEnter:qe,onPopupMouseDown:Ge,onPopupBlur:Ue},nt),h.createElement(Hle.Provider,{value:Ye},h.createElement(Qle,{visible:ye&&!Ee,values:f}),nt)}),Vx=()=>null;Vx.isSelectOptGroup=!0;var Hx=()=>null;Hx.isSelectOption=!0;var Ux=h.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),h.createElement(`div`,{style:u},h.createElement(Fl,{onResize:({offsetHeight:e})=>{e&&a&&a()}},h.createElement(`div`,Bf({style:d,className:m({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});Ux.displayName=`Filler`;function yue({children:e,setRef:t}){let n=h.useCallback(e=>{t(e)},[]);return h.cloneElement(e,{ref:n})}function bue(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return h.createElement(yue,{key:l,setRef:t=>a(e,t)},c)})}function xue(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r{let a=xue(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var Wx=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),Cue=((e,t,n,r)=>{let i=(0,h.useRef)(!1),a=(0,h.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,h.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function wue(e,t,n,r,i,a,o){let s=(0,h.useRef)(0),c=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(!1),d=Cue(t,n,r,i);function f(e,t){if(nn.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Wx||n.preventDefault(),c.current=nn(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),Wx||e.preventDefault()}let m=(0,h.useRef)(null),g=(0,h.useRef)(null);function _(t){if(!e)return;nn.cancel(g.current),g.current=nn(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function v(t){e&&(u.current=t.detail===l.current)}return[_,v]}function Tue(e,t,n,r){let[i,a]=h.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=Due(i),c=Due(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,h.useEffect)(()=>c,[]),[u,l,o.current,r]}var Gx=14/15;function kue(e,t,n){let r=(0,h.useRef)(!1),i=(0,h.useRef)(0),a=(0,h.useRef)(0),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=Gx:c*=Gx;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},ge(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function Kx(e){return Math.floor(e**.5)}function qx(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function Aue(e,t,n){h.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{nn.cancel(t)},o=()=>{a(),t=nn(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=qx(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-Kx(n-e),o()):e>=s?(i=Kx(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var jue=10;function Mue(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function Nue(e,t,n,r,i,a,o,s,c){let l=h.useRef(),[u,d]=h.useState(null);return ge(()=>{if(u&&u.times({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=Mue(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;dn&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:_,lastTop:v})}},[u,e.current]),e=>{if(e==null){c();return}if(nn.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}var Jx=h.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:g}=e,[_,v]=h.useState(!1),[y,b]=h.useState(null),[x,S]=h.useState(null),C=!r,w=h.useRef(),T=h.useRef(),[E,D]=h.useState(g),O=h.useRef(),k=()=>{g===!0||g===!1||(clearTimeout(O.current),D(!0),O.current=setTimeout(()=>{D(!1)},3e3))},A=a-d||0,j=d-u||0,M=h.useMemo(()=>i===0||A===0?0:i/A*j,[i,A,j]),N=e=>{e.stopPropagation(),e.preventDefault()},P=h.useRef({top:M,dragging:_,pageY:y,startTop:x});P.current={top:M,dragging:_,pageY:y,startTop:x};let F=e=>{v(!0),b(qx(e,l)),S(P.current.top),o(),e.stopPropagation(),e.preventDefault()};h.useEffect(()=>{let e=e=>{e.preventDefault()},t=w.current,n=T.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,F,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,F)}},[]);let I=h.useRef();I.current=A;let L=h.useRef();L.current=j,h.useEffect(()=>{if(_){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=P.current;nn.cancel(e);let a=w.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(qx(t,l)-r)*o,a=i;!C&&l?a-=n:a+=n;let s=I.current,u=L.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=nn(()=>{c(f,l)})}},n=()=>{v(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),nn.cancel(e)}}},[_]),h.useEffect(()=>(k(),()=>{clearTimeout(O.current)}),[i]),h.useImperativeHandle(t,()=>({delayHidden:k}));let R=`${n}-scrollbar`,z={position:`absolute`,visibility:E?null:`hidden`},B={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:`100%`,width:u,[C?`left`:`right`]:M})):(Object.assign(z,{width:8,top:0,bottom:0,[C?`right`:`left`]:0}),Object.assign(B,{width:`100%`,height:u,top:M})),h.createElement(`div`,{ref:w,className:m(R,{[`${R}-horizontal`]:l,[`${R}-vertical`]:!l,[`${R}-visible`]:E}),style:{...z,...f},onMouseDown:N,onMouseMove:k},h.createElement(`div`,{ref:T,className:m(`${R}-thumb`,{[`${R}-thumb-moving`]:_}),style:{...B,...p},onMouseDown:F}))}),Pue=20;function Yx(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Pue),Math.floor(n)}var Fue=[],Iue={overflowY:`auto`,overflowAnchor:`none`};function Xx(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:g=`div`,onScroll:_,onVirtualScroll:v,onVisibleChange:y,innerProps:b,extraRender:x,styles:S,showScrollBar:C=`optional`,...w}=e,T=h.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[E,D,O,k]=Oue(T,null,null),A=!!(d!==!1&&i&&a),j=h.useMemo(()=>Object.values(O.maps).reduce((e,t)=>e+t,0),[O.id,O.maps]),M=A&&c&&(Math.max(a*c.length,j)>i||!!p),N=f===`rtl`,P=m(n,{[`${n}-rtl`]:N},r),F=c||Fue,I=(0,h.useRef)(),L=(0,h.useRef)(),R=(0,h.useRef)(),[z,B]=(0,h.useState)(0),[V,H]=(0,h.useState)(0),[U,W]=(0,h.useState)(!1),G=()=>{W(!0)},ee=()=>{W(!1)},K={getKey:T};function te(e){B(t=>{let n;n=typeof e==`function`?e(t):e;let r=be(n);return I.current.scrollTop=r,r})}let ne=(0,h.useRef)({start:0,end:F.length}),re=(0,h.useRef)(),[ie]=Sue(F,T);re.current=ie;let{scrollHeight:ae,start:oe,end:se,offset:ce}=h.useMemo(()=>{if(!A)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!M)return{scrollHeight:L.current?.offsetHeight||0,start:0,end:F.length-1,offset:void 0};let e=0,t,n,r,o=F.length;for(let s=0;s=z&&t===void 0&&(t=s,n=e),u>z+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=F.length-1),r=Math.min(r+1,F.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[M,A,z,F,k,i]);ne.current.start=oe,ne.current.end=se,h.useLayoutEffect(()=>{let e=O.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=F[oe];if(r&&n===void 0&&T(r)===t){let e=O.get(t)-a;te(t=>t+e)}}O.resetRecord()},[ae]);let[le,ue]=h.useState({width:0,height:i}),de=e=>{ue({width:e.offsetWidth,height:e.offsetHeight})},fe=(0,h.useRef)(),me=(0,h.useRef)(),he=h.useMemo(()=>Yx(le.width,p),[le.width,p]),_e=h.useMemo(()=>Yx(le.height,ae),[le.height,ae]),ve=ae-i,ye=(0,h.useRef)(ve);ye.current=ve;function be(e){let t=e;return Number.isNaN(ye.current)||(t=Math.min(t,ye.current)),t=Math.max(t,0),t}let xe=z<=0,Se=z>=ve,Ce=V<=0,we=V>=p,Te=Cue(xe,Se,Ce,we),Ee=()=>({x:N?-V:V,y:z}),De=(0,h.useRef)(Ee()),Oe=pe(e=>{if(v){let t={...Ee(),...e};(De.current.x!==t.x||De.current.y!==t.y)&&(v(t),De.current=t)}});function ke(e,t){let n=e;t?((0,Sn.flushSync)(()=>{H(n)}),Oe()):te(n)}function Ae(e){let{scrollTop:t}=e.currentTarget;t!==z&&te(t),_?.(e),Oe()}let je=e=>{let t=e,n=p?p-le.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Me=pe((e,t)=>{t?((0,Sn.flushSync)(()=>{H(t=>je(t+(N?-e:e)))}),Oe()):te(t=>t+e)}),[Ne,Pe]=wue(A,xe,Se,Ce,we,!!p,Me);kue(A,I,(e,t,n,r)=>{let i=r;return Te(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ne({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),Aue(M,I,e=>{te(t=>t+e)}),ge(()=>{function e(e){let t=xe&&e.detail<0,n=Se&&e.detail>0;A&&!t&&!n&&e.preventDefault()}let t=I.current;return t.addEventListener(`wheel`,Ne,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Pe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ne),t.removeEventListener(`DOMMouseScroll`,Pe),t.removeEventListener(`MozMousePixelScroll`,e)}},[A,xe,Se]),ge(()=>{if(p){let e=je(V);H(e),Oe({x:e})}},[le.width,p]);let Fe=()=>{fe.current?.delayHidden(),me.current?.delayHidden()},Ie=Tue(F,T,O,a),Le=Nue(I,F,O,a,T,Ie,()=>D(!0),te,Fe);h.useImperativeHandle(t,()=>({nativeElement:R.current,getScrollInfo:Ee,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&H(je(e.left)),Le(e.top)):Le(e)}})),ge(()=>{y&&y(F.slice(oe,se+1),F)},[oe,se,F]);let Re=x?.({start:oe,end:se,virtual:M,offsetX:V,scrollTop:z,offsetY:ce,rtl:N,getSize:Ie}),ze=bue(F,oe,se,p,V,E,l,K),Be=null;i&&(Be={[o?`height`:`maxHeight`]:i,...Iue},A&&(Be.overflowY=`hidden`,p&&(Be.overflowX=`hidden`),U&&(Be.pointerEvents=`none`)));let Ve={};return N&&(Ve.dir=`rtl`),h.createElement(`div`,Bf({ref:R,style:{...s,position:`relative`},className:P},Ve,w),h.createElement(Fl,{onResize:de},h.createElement(g,{className:`${n}-holder`,style:Be,ref:I,onScroll:Ae,onMouseEnter:Fe},h.createElement(Ux,{prefixCls:n,height:ae,offsetX:V,offsetY:ce,scrollWidth:p,onInnerResize:D,ref:L,innerProps:b,rtl:N,extra:Re},ze))),M&&ae>i&&h.createElement(Jx,{ref:fe,prefixCls:n,scrollOffset:z,scrollRange:ae,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:_e,containerSize:le.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:C}),M&&p>le.width&&h.createElement(Jx,{ref:me,prefixCls:n,scrollOffset:V,scrollRange:p,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:he,containerSize:le.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:C}))}var Zx=h.forwardRef(Xx);Zx.displayName=`List`;var Lue=h.forwardRef((e,t)=>Xx({...e,virtual:!1},t));Lue.displayName=`List`;var Qx=Zx;function Rue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function $x(){return $x=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=Dx(),{maxCount:p,flattenOptions:g,onActiveValue:_,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:S,virtual:C,direction:w,listHeight:T,listItemHeight:E,optionRender:D,classNames:O,styles:k}=h.useContext(Px),A=`${n}-item`,j=Te(()=>g,[i,f],(e,t)=>t[0]&&!t[1]),M=h.useRef(null),N=h.useMemo(()=>a&&kx(p)&&x?.size>=p,[a,p,x?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=h.useCallback(e=>o===`combobox`?!1:x.has(e),[o,[...x].toString(),x.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;rL(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){_(null,-1,n);return}_(r.value,e,n)};(0,h.useEffect)(()=>{B(v===!1?-1:L(0))},[j.length,s]);let V=h.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():x.has(e),[o,s,[...x].toString(),x.size]);(0,h.useEffect)(()=>{let e;if(!a&&i&&x.size===1){let t=Array.from(x)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&y(e,{selected:!x.has(e)}),a||c(!1)};if(h.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Et.N:case Et.P:case Et.UP:case Et.DOWN:{let e=0;if(t===Et.UP?e=-1:t===Et.DOWN?e=1:Rue()&&n&&(t===Et.N?e=1:t===Et.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Et.TAB:case Et.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||x.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case Et.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return h.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(S).map(e=>S[e]),W=e=>e.label;function G(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let ee=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Yt(n,!0),s=W(t);return t?h.createElement(`div`,$x({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},G(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},K={role:`listbox`,id:`${r}_list`};return h.createElement(h.Fragment,null,C&&h.createElement(`div`,$x({},K,{style:{height:0,width:0,overflow:`hidden`}}),ee(R-1),ee(R),ee(R+1)),h.createElement(Qx,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:C,direction:w,innerProps:C?null:K,showScrollBar:d,className:O?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(zue(a)?a.toString():void 0);return h.createElement(`div`,{className:m(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,g=Wt(p,U),_=I(o),v=c||!_&&N,y=`${A}-option`,x=m(A,y,f,O?.popup?.listItem,{[`${y}-grouped`]:r,[`${y}-active`]:R===t&&!v,[`${y}-disabled`]:v,[`${y}-selected`]:_}),S=W(e),w=!b||typeof b==`function`||_,T=typeof S==`number`?S:S||o,E=zue(T)?T.toString():void 0;return l!==void 0&&(E=l),h.createElement(`div`,$x({},Yt(g),C?{}:G(e,t),{"aria-selected":C?void 0:V(o),"aria-disabled":v,className:x,title:E,onMouseMove:()=>{R===t||v||B(t)},onClick:()=>{v||H(o)},style:{...k?.popup?.listItem,...d}}),h.createElement(`div`,{className:`${y}-content`},typeof D==`function`?D(e,{index:t}):T),h.isValidElement(b)||_,w&&h.createElement(lue,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:v,isSelected:_}},_?`✓`:null))}))}),Vue=((e,t)=>{let n=h.useRef({values:new Map,options:new Map});return[h.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),h.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function eS(e,t){return iue(e).join(``).toUpperCase().includes(t)}var Hue=((e,t,n,r,i)=>h.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>eS(t[e],u)):t[a]?eS(t[o===`children`?`label`:o],u):eS(t[s],u),f=l?e=>Ax(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function Uue(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function Wue(e,t=!1){return rn(e).map((e,n)=>{if(!h.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?Uue(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:Wue(a)}}).filter(e=>e)}var Gue=(e,t,n,r,i)=>h.useMemo(()=>{let a=e;e||(a=Wue(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function tS(e){let t=h.useRef();return t.current=e,h.useCallback((...e)=>t.current(...e),[])}function Kue(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return h.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:g,onActive:_,popupMatchSelectWidth:v=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=Kue(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:G=!0}=z,ee=h.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),K=we(n),te=Bx(r),ne=!!(!b&&S),re=h.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),ie=h.useMemo(()=>Yle(o,ne),[JSON.stringify(o),ne]),[ae,oe]=ye(``,V),se=ae||``,ce=Gue(b,S,ie,ee,y),{valueOptions:le,labelOptions:ue,options:de}=ce,fe=h.useCallback(e=>iue(e).map(e=>{let t,n,r,i;Jue(e)?t=e:(n=e.label,t=e.value);let a=le.get(t);return a&&(n===void 0&&(n=a?.[y||ie.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[ie,y,le]),[pe,me]=ye(j,A),[he,ge]=Vue(h.useMemo(()=>{let e=fe(te&&pe===null?[]:pe);return r===`combobox`&&oue(e[0]?.value)?[]:e},[pe,fe,r,te]),le),_e=h.useMemo(()=>{if(!r&&he.length===1){let e=he[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return he.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,he,k]),ve=h.useMemo(()=>new Set(he.map(e=>e.value)),[he]);h.useEffect(()=>{if(r===`combobox`){let e=he[0]?.value;oe(aue(e)?String(e):``)}},[he]);let be=tS((e,t)=>{let n=t??e;return{[ie.value]:e,[ie.label]:n}}),xe=Hue(h.useMemo(()=>{if(r!==`tags`)return de;let e=[...de],t=e=>le.has(e);return[...he].sort((e,t)=>e.value{let r=n.value;t(r)||e.push(be(r,n.label))}),e},[be,de,le,he,r]),ie,se,re,ee),Se=h.useMemo(()=>{let e=e=>ee.length?ee.some(t=>e?.[t]===se):e?.value===se;return r!==`tags`||!se||xe.some(t=>e(t))||xe.some(e=>e[ie.value]===se)||le.get(se)?.disabled?xe:[be(se),...xe]},[be,ee,r,xe,se,ie,le]),Ce=e=>[...e].sort((e,t)=>U(e,t,{searchValue:se})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Ce(e.options):e.options}:e),Te=h.useMemo(()=>U?Ce(Se):Se,[Se,U,se]),Ee=h.useMemo(()=>Xle(Te,{fieldNames:ie,childrenAsData:ne}),[Te,ie,ne]),De=e=>{let t=fe(e);if(me(t),N&&(t.length!==he.length||t.some((e,t)=>he[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Ax(ge(e.value)));N(te?e:e[0],te?n:n[0])}},[Oe,ke]=h.useState(null),[Ae,je]=h.useState(0),Me=C===void 0?r!==`combobox`:C,Ne=h.useRef(),Pe=h.useCallback((e,t,{source:n=`keyboard`}={})=>{je(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&ke(String(e));let i=Promise.resolve().then(()=>{Ne.current===i&&_?.(e)});Ne.current=i},[a,r,_]),Fe=(e,t,n)=>{let r=()=>{let t=ge(e);return[M?{label:t?.[ie.label],value:e}:e,Ax(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&g&&n!==`clear`){let[e,t]=r();g(e,t)}},Ie=tS((e,t)=>{let n,i=te?t.selected:!0;n=i?te?[...he,e]:[e]:he.filter(t=>t.value!==e),De(n),Fe(e,i),r===`combobox`?ke(``):(!Bx||G)&&(oe(``),ke(``))}),Le=(e,t)=>{De(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Fe(e.value,!1,n)})},Re=(e,t)=>{if(oe(e),ke(null),t.source===`submit`){let t=(e||``).trim();if(t){if(le.get(t)?.disabled){oe(``);return}De(Array.from(new Set([...ve,t]))),Fe(t,!0),oe(``)}return}t.source!==`blur`&&(r===`combobox`&&De(e),W?.(e))},ze=e=>{let t=e;r!==`tags`&&(t=e.map(e=>ue.get(e)?.value).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>!le.get(e)?.disabled));let n=Array.from(new Set([...ve,...t]));De(n),n.forEach(e=>{Fe(e,!0)})},Be=h.useMemo(()=>{let e=T!==!1&&v!==!1;return{...ce,flattenOptions:Ee,onActiveValue:Pe,defaultActiveFirstOption:Me,onSelect:Ie,menuItemSelectedIcon:w,rawValues:ve,fieldNames:ie,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:ne,maxCount:P,optionRender:x,classNames:F,styles:I}},[P,ce,Ee,Pe,Me,Ie,w,ve,ie,T,v,E,D,O,ne,x,F,I]);return h.createElement(Px.Provider,{value:Be},h.createElement(vue,nS({},L,{id:K,prefixCls:i,ref:t,omitDomProps:que,mode:r,classNames:F,styles:I,displayValues:_e,onDisplayValuesChange:Le,maxCount:P,direction:E,showSearch:R,searchValue:se,onSearch:Re,autoClearSearchValue:G,onSearchSplit:ze,popupMatchSelectWidth:v,OptionList:Bue,emptyOptions:!Ee.length,activeValue:Oe,activeDescendantId:`${K}_list_${Ae}`})))});rS.Option=Hx,rS.OptGroup=Vx;var Yue=rS;function iS(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var aS=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new ps(e).onBackground(t).toHexString(),Xue=()=>{let[,e]=xc(),[t]=$c(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:a,colorTextQuaternary:o}=e,{panelBgColor:s,borderColor:c,detailColor:l,shadowColor:u,iconColor:d}=(0,h.useMemo)(()=>({panelBgColor:aS(a,n),borderColor:aS(o,n),detailColor:aS(r,n),shadowColor:aS(i,n),iconColor:n}),[n,r,i,a,o]);return h.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{fill:`none`,fillRule:`evenodd`},h.createElement(`g`,{transform:`translate(24 31.7)`},h.createElement(`ellipse`,{fillOpacity:`.8`,fill:u,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),h.createElement(`path`,{fill:c,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`}),h.createElement(`path`,{fill:s,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`}),h.createElement(`path`,{fill:l,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`})),h.createElement(`path`,{fill:l,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`}),h.createElement(`g`,{fill:d,transform:`translate(149.7 15.4)`},h.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),h.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},Zue=()=>{let[,e]=xc(),[t]=$c(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,h.useMemo)(()=>({borderColor:aS(n,a),shadowColor:aS(r,a),contentColor:aS(i,a)}),[n,r,i,a]);return h.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},h.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),h.createElement(`g`,{fillRule:`nonzero`,stroke:o},h.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),h.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}))))},Que=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$ue=Sc(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Que(Go(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),oS=h.createElement(Xue,null),sS=h.createElement(Zue,null),cS=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:g,style:_,classNames:v,styles:y,image:b}=Ur(`empty`),x=f(`empty`,r),[S,C]=$ue(x),w=jr(_),T=jr(c),[E,D]=Nr([v,l],[y,w,u,T],{props:e}),[O]=$c(`Empty`),k=a===void 0?O?.description:a,A=typeof k==`string`?k:`empty`,j=i??b??oS,M=null;return M=typeof j==`string`?h.createElement(`img`,{draggable:!1,alt:A,src:j}):j,h.createElement(`div`,{className:m(S,C,x,g,{[`${x}-normal`]:j===sS,[`${x}-rtl`]:p===`rtl`},t,n,E.root),style:D.root,...d},h.createElement(`div`,{className:m(`${x}-image`,E.image),style:{...s,...D.image}},M),k&&h.createElement(`div`,{className:m(`${x}-description`,E.description),style:D.description},k),o&&h.createElement(`div`,{className:m(`${x}-footer`,E.footer),style:D.footer},o))};cS.PRESENTED_IMAGE_DEFAULT=oS,cS.PRESENTED_IMAGE_SIMPLE=sS;var lS=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(Br),r=n(`empty`);switch(t){case`Table`:case`List`:return h.createElement(cS,{image:cS.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return h.createElement(cS,{image:cS.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return h.createElement(cS,null)}},ede=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function tde(e,t){return e||ede(t)}var uS=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},nde=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...io(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,[` ${i}${s}bottomLeft, ${a}${s}bottomLeft `]:{animationName:lf},[` @@ -239,23 +239,23 @@ html body { `]:{animationName:df},[`${o}${s}bottomLeft`]:{animationName:uf},[` ${o}${s}topLeft, ${o}${s}topRight - `]:{animationName:ff},"&-hidden":{display:`none`},[r]:{...fS(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`,...ro},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...fS(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},tde=e=>{let{antCls:t,componentCls:n}=e,r={background:`transparent`},i=[`> input[disabled]`,`> textarea[disabled]`,`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(`, `);return{[`&${n}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${n}-placeholder`]:{display:`none`},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:`none`}},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},pS=4,nde=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Tc(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${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% - ${pS}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`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...ro,marginInlineEnd:a},"&-remove":{...ao(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:pS,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},mS=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Tc(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},hS=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[mS(e,n),{[`&${o}-status-error`]:mS(e,{...n,...r}),[`&${o}-status-warning`]:mS(e,{...n,...i})},a]}},gS=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),rde=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=Tc(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...io(e),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...ro,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"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":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:{...ro,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},nde(e),hS(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),hS(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),hS(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:gS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:gS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:gS(e,e.colorWarning)}),hS(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),tde(e)]}},ide=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},ade=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...io(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...ro,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,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(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},ode=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},ade(e),ede(e),{[`${t}-rtl`]:{direction:`rtl`}},cp(e,{focusElCls:`${t}-focused`})]},sde=Sc(`Select`,(e,{rootPrefixCls:t})=>{let n=Go(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ode(n),rde(n)]},ide,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function cde(e){return h.useMemo(()=>{if(e)return(...t)=>h.createElement(X_,{space:!0},e.apply(void 0,t))},[e])}function lde(e,t){return t===void 0?e!==null:t}var _S=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,vS=h.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:g,status:_,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:S,allowClear:C,variant:w,popupStyle:T,dropdownStyle:E,transitionName:D,tagRender:O,maxCount:k,prefix:A,dropdownRender:j,popupRender:M,onDropdownVisibleChange:N,onOpenChange:P,styles:F,classNames:I,clearIcon:L,showSearch:R,...z}=e,{getPopupContainer:B,getPrefixCls:V,renderEmpty:H,direction:U,virtual:W,popupMatchSelectWidth:G,popupOverflow:ee}=h.useContext(Br),{showSearch:K,allowClear:te,style:ne,styles:re,className:ie,classNames:ae,clearIcon:oe,loadingIcon:se,menuItemSelectedIcon:ce,removeIcon:le,suffixIcon:ue}=Ur(`select`),[,de]=xc(),fe=d??de?.controlHeight,pe=V(`select`,n),me=V(),he=x??U,{compactSize:ge,compactItemClassnames:_e}=Od(pe,he),[ve,ye]=bm(`select`,w,r),be=og(pe),[xe,Se]=sde(pe,be),Ce=h.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===_S?`combobox`:t},[e.mode]),we=Ce===`multiple`||Ce===`tags`,Te=lde(e.suffixIcon,e.showArrow),Ee=b??y??G,De=cde(M||j),Oe=P||N,{status:ke,hasFeedback:Ae,isFormItemInput:je,feedbackIcon:Me}=h.useContext(_m),Ne=Q_(ke,_),Pe;Pe=g===void 0?Ce===`combobox`?null:H?.(`Select`)||h.createElement(dS,{componentName:`Select`}):g;let{suffixIcon:Fe,itemIcon:Ie,removeIcon:Le,clearIcon:Re}=Fv({...z,multiple:we,hasFeedback:Ae,feedbackIcon:Me,showSuffixIcon:Te,prefixCls:pe,componentName:`Select`,clearIcon:L,searchIcon:oS(R,`searchIcon`),contextClearIcon:oe,contextLoadingIcon:se,contextMenuItemSelectedIcon:ce,contextRemoveIcon:le,contextSearchIcon:oS(K,`searchIcon`),contextSuffixIcon:ue}),ze=C??te,Be=ze===!0?{clearIcon:Re}:ze,Ve=R??K,He=Wt(z,[`suffixIcon`,`itemIcon`]),Ue=ed(e=>f??ge??e),We=h.useContext(Cu),Ge=p??We,Ke={...e,variant:ve,status:Ne,disabled:Ge,size:Ue},qe=jr(ne),Je=jr(S),[Ye,Xe]=Nr([ae,I],[re,qe,F,Je],{props:Ke},{popup:{_default:`root`}}),Ze=m(Ye.popup.root,s,c,{[`${pe}-dropdown-${he}`]:he===`rtl`},a,Se,be,xe),Qe={...Xe.popup?.root,...T??E},$e=m({[`${pe}-lg`]:Ue===`large`,[`${pe}-sm`]:Ue===`small`,[`${pe}-rtl`]:he===`rtl`,[`${pe}-${ve}`]:ye,[`${pe}-in-form-item`]:je},Z_(pe,Ne,Ae),_e,ie,i,Ye.root,a,Se,be,xe),et=h.useMemo(()=>u===void 0?he===`rtl`?`bottomRight`:`bottomLeft`:u,[u,he]),[tt]=Ed(`SelectLike`,Xe.popup.root?.zIndex??Qe.zIndex);return h.createElement(que,{ref:t,virtual:W,classNames:Ye,styles:Xe,showSearch:Ve,...He,style:Xe.root,popupMatchSelectWidth:Ee,transitionName:Kf(me,`slide-up`,D),builtinPlacements:$ue(v,ee),listHeight:l,listItemHeight:fe,mode:Ce,prefixCls:pe,placement:et,direction:he,prefix:A,suffixIcon:Fe,menuItemSelectedIcon:Ie,removeIcon:Le,allowClear:Be,notFoundContent:Pe,className:$e,getPopupContainer:o||B,popupClassName:Ze,disabled:Ge,popupStyle:{...Xe.popup.root,...Qe,zIndex:tt},maxCount:we?k:void 0,tagRender:we?O:void 0,popupRender:De,onPopupVisibleChange:Oe})}),ude=Tg(vS,`popupAlign`);vS.SECRET_COMBOBOX_MODE_DO_NOT_USE=_S,vS.Option=Ux,vS.OptGroup=Hx,vS._InternalPanelDoNotUseOrYouWillBeFired=ude;function dde(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function fde(e,t,n){var r=(n||{}).atBegin;return dde(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var yS=100,bS=yS/5,xS=yS/2-bS/2,SS=xS*2*Math.PI,CS=50,wS=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement(`circle`,{className:m(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:xS,cx:CS,cy:CS,strokeWidth:bS,style:n})},pde=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=h.useState(!1);ge(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${SS/4}`,strokeDasharray:`${SS*s/100} ${SS*(100-s)/100}`};return h.createElement(`span`,{className:m(r,`${n}-progress`,{[i]:s<=0})},h.createElement(`svg`,{viewBox:`0 0 ${yS} ${yS}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(wS,{dotClassName:n,hasCircleCls:!0}),h.createElement(wS,{dotClassName:n,style:c})))};function mde(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(o,r,n>0&&s),style:i},h.createElement(`span`,{className:m(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>h.createElement(`i`,{className:`${t}-dot-item`,key:e})))),h.createElement(pde,{prefixCls:t,percent:n}))}function hde(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&h.isValidElement(n)?vu(n,e=>({className:m(e.className,o,i),style:{...e.style,...a},percent:r})):h.createElement(mde,{prefixCls:t,percent:r,className:i,style:a})}var gde=new to(`antSpinMove`,{to:{opacity:1}}),_de=new to(`antRotate`,{to:{transform:`rotate(405deg)`}}),vde=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...io(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}}}}}},yde=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Tc(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:_de,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:gde,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(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},bde=e=>{let{componentCls:t}=e,[n]=Tc(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},xde=Sc(`Spin`,e=>{let t=Go(e,{spinDotDefault:e.colorTextDescription});return[vde(t),yde(t),bde(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),Sde=200,TS=[[30,.05],[70,.03],[96,.01]];function Cde(e,t){let[n,r]=h.useState(0),i=h.useRef(null),a=t===`auto`;return h.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var ES;function wde(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var DS=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:g,classNames:_,styles:v,...y}=e,{getPrefixCls:b,direction:x,indicator:S,className:C,style:w,classNames:T,styles:E}=Ur(`spin`),D=b(`spin`,t),[O,k]=xde(D),[A,j]=h.useState(()=>n&&!wde(n,r)),M=Cde(A,g);h.useEffect(()=>{if(n){let e=fde(r,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[r,n]);let N=ed(e=>o??e),P=c??s,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:f,children:d,percent:M},[I,L]=Nr([T,_],[E,v],{props:F}),R=p??S??ES,z=d!==void 0,B=z||f,V=h.createElement(h.Fragment,null,h.createElement(hde,{className:m(I.indicator),style:L.indicator,prefixCls:D,indicator:R,percent:M}),P&&h.createElement(`div`,{className:m(`${D}-description`,I.tip,I.description),style:{...L.tip,...L.description}},P));return h.createElement(`div`,{className:m(D,{[`${D}-sm`]:N===`small`,[`${D}-lg`]:N===`large`,[`${D}-spinning`]:A,[`${D}-rtl`]:x===`rtl`,[`${D}-fullscreen`]:f},a,I.root,f&&I.mask,B?l:[`${D}-section`,I.section],C,i,O,k),style:{...L.root,...B?{}:L.section,...f?L.mask:{},...w,...u},"aria-live":`polite`,"aria-busy":A,...y},A&&(B?h.createElement(`div`,{className:m(`${D}-section`,I.section),style:L.section},V):V),z&&h.createElement(`div`,{className:m(`${D}-container`,I.container),style:L.container},d))};DS.setDefaultIndicator=e=>{ES=e};function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[_,v]=ye(r??!1,n);function y(e,t){let n=_;return i||(n=e,v(n),l?.(n,t)),n}function b(e){e.which===Et.LEFT?y(!1,e):e.which===Et.RIGHT&&y(!0,e),u?.(e)}function x(e){let t=y(!_,e);c?.(t,e)}let S=m(e,t,{[`${e}-checked`]:_,[`${e}-disabled`]:i});return h.createElement(`button`,OS({},p,{type:`button`,role:`switch`,"aria-checked":_,disabled:i,className:S,ref:g,onKeyDown:b,onClick:x}),a,h.createElement(`span`,{className:`${e}-inner`},h.createElement(`span`,{className:m(`${e}-inner-checked`,f?.content),style:d?.content},o),h.createElement(`span`,{className:m(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});kS.displayName=`Switch`;var Tde=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=q(c(s).add(c(r).mul(2)).equal()),d=q(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:q(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Ede=e=>{let{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}}}},Dde=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...yf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...yf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${q(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Ode=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=q(c(o).add(c(r).mul(2)).equal()),d=q(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...yf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...yf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},kde=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...io(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:q(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...yf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...lo(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`}}}},Ade=Sc(`Switch`,e=>{let t=Go(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[kde(t),Ode(t),Dde(t),Ede(t),Tde(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ps(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),jde=h.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:g,classNames:_,...v}=e,[y,b]=ye(d??f??!1,l??u),{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Ur(`switch`),D=h.useContext(Cu),O=(i??D)||a,k=x(`switch`,n),[A,j]=Ade(k),M=ed(r),N={...e,size:M,disabled:O},P=jr(w),F=jr(c),[I,L]=Nr([T,_],[E,P,g,F],{props:N}),R=h.createElement(`div`,{className:m(`${k}-handle`,I.indicator),style:L.indicator},a&&h.createElement(Hd,{className:`${k}-loading-icon`})),z=m(C,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:S===`rtl`},o,s,I.root,A,j),B=(...e)=>{b(e[0]),p?.(...e)};return h.createElement($u,{component:`Switch`,disabled:O},h.createElement(kS,{...v,classNames:I,styles:L,checked:y,onChange:B,prefixCls:k,className:z,style:L.root,disabled:O,ref:t,loadingIcon:R}))});jde.__ANT_SWITCH=!0;var AS={},jS=`rc-table-internal-hook`;function MS(e){let t=h.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=h.useRef(e);r.current=e;let[i]=h.useState(()=>({getValue:()=>r.current,listeners:new Set}));return ge(()=>{(0,Sn.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),h.createElement(t.Provider,{value:i},n)},defaultValue:e}}function NS(e,t){let n=pe(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=h.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=h.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=h.useState({});return ge(()=>{if(!r)return;function e(e){let t=n(e);Bt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=h.useRef(0),l=h.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,h.createElement(e.Provider,{value:c.current},h.createElement(n,PS({},a,s)))):h.createElement(n,PS({},a,s))};return i?h.forwardRef(a):a}function r(e,n){let r=Re(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),h.createElement(e,PS({},n,a))};return h.memo(r?h.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Nde,responseImmutable:Pde,useImmutableMark:Fde}=Mde(),{makeImmutable:Ide,responseImmutable:FS,useImmutableMark:Lde}=Mde(),IS=MS(),Rde=h.createContext({renderWithProps:!1}),zde=`RC_TABLE_KEY`;function Bde(e){return e==null?[]:Array.isArray(e)?e:[e]}function LS(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Bde(i).join(`-`)||zde;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function RS(e){return e!=null}function Vde(e){return typeof e==`number`&&!Number.isNaN(e)}function Hde(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!h.isValidElement(e)}function Ude(e,t,n,r,i,a){let o=h.useContext(Rde);return Te(()=>{if(RS(r))return[r];let a=on(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Hde(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[Lde(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!Bt(e,t,!0)})}function Wde(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function Gde(e,t){return NS(IS,n=>[Wde(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():h.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},BS=h.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:g,rowType:_,colSpan:v,rowSpan:y,fixStart:b,fixEnd:x,fixedStartShadow:S,fixedEndShadow:C,offsetFixedStartShadow:w,offsetFixedEndShadow:T,zIndex:E,zIndexReverse:D,appendNode:O,additionalProps:k={},isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=NS(IS,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=Ude(l,d,f,n,u,p),I={},L=typeof b==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=NS(IS,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&S&&t)-w>=1,(R&&C&&n-t)-T>1]});L&&(I.insetInlineStart=b,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D),R&&(I.insetInlineEnd=x,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D);let V=F?.colSpan??k.colSpan??v??1,H=F?.rowSpan??k.rowSpan??y??1,[U,W]=Gde(g,H),G=pe(e=>{l&&W(g,g+H-1),k?.onMouseEnter?.(e)}),ee=pe(e=>{l&&W(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let K=k.title??Kde({rowType:_,ellipsis:r,children:P}),te=m(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:S,[`${j}-fix-start-shadow-show`]:S&&z,[`${j}-fix-end-shadow`]:C,[`${j}-fix-end-shadow-show`]:C&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:O,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&U},k.className,F?.className),ne={};c&&(ne.textAlign=c);let re={...F?.style,...I,...ne,...k.style,...s},ie=P;return typeof ie==`object`&&!Array.isArray(ie)&&!h.isValidElement(ie)&&(ie=null),r&&(S||C)&&(ie=h.createElement(`span`,{className:`${j}-content`},ie)),h.createElement(t,zS({},F,k,{className:te,style:re,title:K,scope:i,onMouseEnter:N?G:void 0,onMouseLeave:N?ee:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,ie)});function VS(e){return e.fixed===`start`}function HS(e){return e.fixed===`end`}function US(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;VS(i)&&VS(a)?o=r.start[e]:HS(a)&&HS(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!VS(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!HS(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)HS(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var WS=h.createContext({});function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=NS(IS,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=h.useContext(WS),d=n+i-1+1===c?i+1:i,f=h.useMemo(()=>US(n,n+d-1,u,l),[n,d,u,l]);return h.createElement(BS,GS({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},Jde=e=>{let{children:t,...n}=e;return h.createElement(`tr`,n,t)},KS=e=>{let{children:t}=e;return t};KS.Row=Jde,KS.Cell=qde;var qS=FS(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=NS(IS,`prefixCls`),a=r.length-1,o=r[a],s=h.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return h.createElement(WS.Provider,{value:s},h.createElement(`tfoot`,{className:`${i}-summary`},t))}),JS=KS;function Yde(e){return null}function Xde(e){return null}function YS(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n?.size){let i=[];for(let a=0;a({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function ZS(e,t,n,r){let i=NS(IS,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,h=o===`nest`,g=o===`row`&&(!u||u(e)),_=g||h,v=s&&s.has(t),y=c&&e&&e[c],b=pe(l),x=d?.(e,n),S=x?.onClick,C=(t,...n)=>{f&&_&&l(e,t),S?.(t,...n)},w;typeof p==`string`?w=p:typeof p==`function`&&(w=p(e,n,r));let T=LS(a);return{...i,columnsKey:T,nestExpandable:h,expanded:v,hasNestChildren:y,record:e,onTriggerExpand:b,rowSupportExpand:g,expandable:_,rowProps:{...x,className:m(w,x?.className),onClick:C}}}var QS=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=NS(IS,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),g=n;return(c?m&&p:f)&&(g=h.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},g)),h.createElement(r,{className:a,style:{display:o?null:`none`}},h.createElement(BS,{component:i,prefixCls:t,colSpan:s},g))};function Zde({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return h.createElement(`span`,{className:m(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return h.createElement(`span`,{className:m(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function Qde(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function $S(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function eC(){return eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:g}=e,_=ZS(a,c,o,u),{prefixCls:v,flattenColumns:y,expandedRowClassName:b,expandedRowRender:x,rowProps:S,expanded:C,rowSupportExpand:w}=_,T=h.useRef(!1);T.current||=C;let E=$S(b,a,o,u),D=h.createElement(d,eC({},S,{"data-row-key":c,className:m(t,`${v}-row`,`${v}-row-level-${u}`,S?.className,r.row,{[E]:u>=1}),style:{...n,...S?.style,...i.row}}),y.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:y,fixedInfo:b,appendCellNode:x,additionalCellProps:S}=tC(_,e,t,u,o,l,g?.offset);return h.createElement(BS,eC({className:m(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:v,key:y,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:x,additionalProps:S}))})),O;if(w&&(T.current||C)){let e=x(a,o,u+1,C);O=h.createElement(QS,{expanded:C,className:m(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,E),prefixCls:v,component:d,cellComponent:f,colSpan:g?g.colSpan:y.length,isEmpty:!1,stickyOffset:g?.sticky},e)}return h.createElement(h.Fragment,null,D,O)}),efe=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=h.useRef(null);return ge(()=>{i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(Fl,{data:t},h.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},h.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},tfe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=h.useRef(null),{measureRowRender:a}=NS(IS,[`measureRowRender`]),o=h.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},h.createElement(Fl.Collection,{onBatchResize:e=>{it(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=h.isValidElement(t)?h.cloneElement(t,{ref:null}):t;return h.createElement(efe,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},nfe=FS(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:g}=NS(IS,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:_={}}=d||{},{body:v={}}=f||{},y=XS(t,l,c,s),b=h.useMemo(()=>y.map(e=>e.rowKey),[y]),x=h.useRef({renderWithProps:!1}),S=h.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return h.createElement($de,{classNames:_,styles:v,key:a,rowKey:a,rowKeys:b,record:n,index:t,renderIndex:i,rowComponent:w,cellComponent:T,scopeCellComponent:E,indent:r,expandedRowInfo:S})}):h.createElement(QS,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:w,cellComponent:T,colSpan:o.length,isEmpty:!0},u);let O=LS(o);return h.createElement(Rde.Provider,{value:x.current},h.createElement(C,{style:v.wrapper,className:m(`${r}-tbody`,_.wrapper)},n&&h.createElement(tfe,{prefixCls:r,columnsKey:O,onColumnResize:a,columns:o}),D))}),nC=`RC_TABLE_INTERNAL_COL_DEFINE`;function rfe(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function rC(){return rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=NS(IS,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[nC],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(h.createElement(`col`,rC({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?h.createElement(`colgroup`,null,a):null};function ife(e,t){return(0,h.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:g,stickyClassName:_,scrollX:v,tableLayout:y=`fixed`,onScroll:b,maxContentScroll:x,children:S,...C}=e,{prefixCls:w,scrollbarSize:T,isSticky:E,getComponent:D}=NS(IS,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),O=D([`header`,`table`],`table`),k=E&&!f?0:T,A=h.useRef(null),j=h.useCallback(e=>{Fe(t,e),Fe(A,e)},[]);h.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),b({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=A.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let M=o[o.length-1],N={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${w}-cell-scrollbar`})},P=(0,h.useMemo)(()=>k?[...a,N]:a,[k,a]),F=(0,h.useMemo)(()=>k?[...o,N]:o,[k,o]),I=(0,h.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+k),0],isSticky:E}},[k,u,E]),L=ife(s,l),R=(0,h.useMemo)(()=>{let e=!L||!L.length||L.every(e=>!e);return i||e},[i,L]);return h.createElement(`div`,{style:{overflow:`hidden`,...E?{top:p,bottom:g}:{},...r},ref:j,className:m(n,{[_]:!!_})},h.createElement(O,{style:{tableLayout:y,minWidth:`100%`,width:v}},R?c:h.createElement(iC,{colWidths:[...L,k],columCount:l+1,columns:F}),S({...C,stickyOffsets:I,columns:P,flattenColumns:F})))}),aC=h.memo(afe);function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=NS(IS,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=LS(t.map(e=>e.column));return h.createElement(i,oC({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=US(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return h.createElement(BS,oC({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function sfe(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:m(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var sC=FS(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=NS(IS,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=h.useMemo(()=>sfe(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),g=o([`header`,`cell`],`th`);return h.createElement(f,{className:m(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>h.createElement(ofe,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:g,onHeaderRow:i,index:n})))});function cC(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function cfe(e,t,n){return h.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=cC(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=cC(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function lC(e){return rn(e).filter(e=>h.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=lC(r)),a})}function uC(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:uC(t)}:e})}function dC(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...dC(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function lfe({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:g,scrollWidth:_,clientWidth:v},y){let b=h.useMemo(()=>uC((t||lC(n)||[]).slice()),[t,n]),x=h.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(AS)){let e=u||0,n=e===0&&(g===`right`||g===`end`)?b.length:e;n>=0&&t.splice(n,0,AS)}let n=t.indexOf(AS);t=t.filter((e,t)=>e!==AS||t===n);let r=b[n],f;f=g||(r?r.fixed:null);let _={[nC]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?h.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===AS?_:e;return te!==AS)},[r,b,o,i,c,f,d]),S=h.useMemo(()=>{let e=x;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,x,f]),[C,w]=cfe(h.useMemo(()=>dC(S),[S,f,_]),_,v);return[S,C,w]}function ufe(e,t,n){let r=rfe(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||Zde,p=d||`children`,m=h.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[g,_]=h.useState(()=>o||(s?Qde(t,n,p):[])),v=h.useMemo(()=>new Set(a||g||[]),[a,g]);return[r,m,v,f,p,h.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=v.has(r);a?(v.delete(r),i=[...v]):i=[...v,r],_(i),l&&l(!a,e),u&&u(i)},[n,v,t,l,u])]}function dfe(e,t){let n=h.useMemo(()=>e.map((n,r)=>US(r,r,e,t)),[e,t]);return Te(()=>n,[n],(e,t)=>!Bt(e,t))}function ffe(e){let t=(0,h.useRef)(e),[,n]=(0,h.useState)({}),r=(0,h.useRef)(null),i=(0,h.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,h.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function pfe(e){let t=(0,h.useRef)(e||null),n=(0,h.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,h.useEffect)(()=>r,[]),[i,a]}function mfe(){let[e,t]=h.useState(-1),[n,r]=h.useState(-1);return[e,n,h.useCallback((e,n)=>{t(e),r(n)},[])]}var fC=me()?window:null;function hfe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>fC}=typeof e==`object`?e:{},o=a()||fC,s=!!e;return h.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function gfe(e,t){return(0,h.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var pC=e=>{let{children:t,className:n,style:r}=e;return h.createElement(`div`,{className:n,style:r},t)};function mC(e){let t=rt(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var hC=`mouseup`,gC=`mousemove`,_C=`scroll`,vC=`resize`,_fe=h.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=NS(IS,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=h.useRef(null),[f,p]=ffe({scrollLeft:0,isHiddenScrollBar:!0}),g=h.useRef({delta:0,x:0}),[_,v]=h.useState(!1),y=h.useRef(null);h.useEffect(()=>()=>{nn.cancel(y.current)},[]);let b=()=>{v(!1)},x=e=>{e.persist(),g.current.delta=e.pageX-f.scrollLeft,g.current.x=0,v(!0),e.preventDefault()},S=e=>{let{buttons:t}=e||window?.event;if(!_||t===0){_&&v(!1);return}let n=g.current.x+e.pageX-g.current.x-g.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u){nn.cancel(y.current),y.current=nn(()=>{if(!n.current)return;let e=mC(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:mC(a).top+a.clientHeight;t-kt()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},w=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return h.useImperativeHandle(t,()=>({setScrollLeft:w,checkScrollBarVisible:C})),h.useEffect(()=>(document.body.addEventListener(hC,b,!1),document.body.addEventListener(gC,S,!1),C(),()=>{document.body.removeEventListener(hC,b),document.body.removeEventListener(gC,S)}),[u,_]),h.useEffect(()=>{if(n.current){let e=[],t=rt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(_C,C,!1)}),window.addEventListener(vC,C,!1),window.addEventListener(_C,C,!1),a.addEventListener(_C,C,!1),()=>{e.forEach(e=>{e.removeEventListener(_C,C)}),window.removeEventListener(vC,C),window.removeEventListener(_C,C),a.removeEventListener(_C,C)}}},[a]),h.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:h.createElement(`div`,{style:{height:kt(),width:l,bottom:i},className:`${s}-sticky-scroll`},h.createElement(`div`,{onMouseDown:x,ref:d,className:m(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:_}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function yC(){return yC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n={rowKey:`key`,prefixCls:bC,emptyText:bfe,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:g,footer:_,summary:v,caption:y,id:b,showHeader:x,components:S,emptyText:C,onRow:w,onHeaderRow:T,measureRowRender:E,onScroll:D,internalHooks:O,transformColumns:k,internalRefs:A,tailor:j,getContainerWidth:M,sticky:N,rowHoverable:P=!0}=n,F=l||vfe,I=!!F.length,L=O===jS,R=h.useCallback((e,t)=>on(S,e)||t,[S]),z=h.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[V,H,U]=mfe(),[W,G,ee,K,te,ne]=ufe(n,F,z),re=d?.x,[ie,ae]=h.useState(0),[oe,se,ce]=lfe({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:ee,getRowKey:z,onTriggerExpand:ne,expandIcon:K,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:L&&j&&typeof re==`number`?re:null,clientWidth:ie},L?k:null),le=ce??re,ue=h.useMemo(()=>({columns:oe,flattenColumns:se}),[oe,se]),de=h.useRef(null),fe=h.useRef(null),me=h.useRef(null),he=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:de.current,scrollTo:e=>{if(me.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(Vde(n))me.current?.scrollTo({top:n});else{let e=r??z(F[t]),n=me.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=me.current;e.scrollTo({top:e.scrollTop+i})}}}else me.current?.scrollTo&&me.current.scrollTo(e)}}));let _e=h.useRef(null),[ve,ye]=h.useState(!1),[be,xe]=h.useState(!1),[Se,Ce]=h.useState(new Map),we=LS(se).map(e=>Se.get(e)),Te=h.useMemo(()=>we,[we.join(`_`)]),Ee=gfe(Te,se),De=d&&RS(d.y),Oe=d&&RS(le)||!!W.fixed,ke=Oe&&se.some(({fixed:e})=>e),Ae=h.useRef(null),{isSticky:je,offsetHeader:Me,offsetSummary:Ne,offsetScroll:Pe,stickyClassName:Fe,container:Ie}=hfe(N,r),Le=h.useMemo(()=>v?.(F),[v,F]),Re=(De||je)&&h.isValidElement(Le)&&Le.type===KS&&Le.props.fixed,ze,Be,Ve;De&&(Be={overflowY:I?`scroll`:`auto`,maxHeight:d.y}),Oe&&(ze={overflowX:`auto`},De||(Be={overflowY:`hidden`}),Ve={width:le===!0?`auto`:le,minWidth:`100%`});let He=h.useCallback((e,t)=>{Ce(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ue,We]=pfe(null);function Ge(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ke,qe]=h.useState([0,0]),Je=pe(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||yfe;(!We()||We()===r)&&(Ue(r),Ge(n,fe.current),Ge(n,me.current),Ge(n,_e.current),Ge(n,Ae.current?.setScrollLeft));let i=e||fe.current;if(i){let e=L&&j&&typeof le==`number`?le:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(qe(n=>{let i=[r,e-t];return Bt(n,i)?n:i}),e===t){ye(!1),xe(!1);return}ye(r>0),xe(r{Je(e),D?.(e)}),Xe=()=>{Oe&&me.current?Je({currentTarget:rt(me.current),scrollLeft:me.current?.scrollLeft}):(ye(!1),xe(!1))},Ze=e=>{Ae.current?.checkScrollBarVisible();let t=e??de.current?.offsetWidth??0;L&&M&&de.current&&(t=M(de.current,t)||t),t!==ie&&(Xe(),ae(t))};ge(()=>{Oe&&Ze()},[Oe]);let Qe=h.useRef(!1);h.useEffect(()=>{Qe.current&&Xe()},[Oe,l,oe.length]),h.useEffect(()=>{Qe.current=!0},[]);let[$e,et]=h.useState(0);ge(()=>{(!j||!L)&&(me.current instanceof Element?et(At(me.current).width):et(At(he.current).width))},[]),h.useEffect(()=>{L&&A&&(A.body.current=me.current)});let tt=h.useCallback(e=>h.createElement(h.Fragment,null,h.createElement(sC,e),Re===`top`&&h.createElement(qS,e,Le)),[Re,Le]),nt=h.useCallback(e=>h.createElement(qS,e,Le),[Le]),it=R([`table`],`table`),at=h.useMemo(()=>f||(ke?le===`max-content`?`auto`:`fixed`:De||je||se.some(({ellipsis:e})=>e)?`fixed`:`auto`),[De,ke,se,f,je]),ot,st={colWidths:Te,columCount:se.length,stickyOffsets:Ee,onHeaderRow:T,fixHeader:De,scroll:d},ct=h.useMemo(()=>I?null:typeof C==`function`?C():C,[I,C]),lt=h.createElement(nfe,{data:F,measureColumnWidth:De||Oe||je}),ut=h.createElement(iC,{colWidths:se.map(({width:e})=>e),columns:se}),dt=y==null?void 0:h.createElement(`caption`,{className:`${r}-caption`},y),ft=Yt(n,{data:!0}),pt=Yt(n,{aria:!0});if(De||je){let e;typeof B==`function`?(e=B(F,{scrollbarSize:$e,ref:me,onScroll:Je}),st.colWidths=se.map(({width:e},t)=>{let n=t===se.length-1?e-$e:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=h.createElement(`div`,{style:{...ze,...Be},onScroll:Ye,ref:me,className:`${r}-body`},h.createElement(it,yC({style:{...Ve,tableLayout:at}},pt),dt,ut,lt,!Re&&Le&&h.createElement(qS,{stickyOffsets:Ee,flattenColumns:se},Le)));let t={noData:!F.length,maxContentScroll:Oe&&le===`max-content`,...st,...ue,direction:p,stickyClassName:Fe,scrollX:le,tableLayout:at,onScroll:Je};ot=h.createElement(h.Fragment,null,x!==!1&&h.createElement(aC,yC({},t,{stickyTopOffset:Me,className:`${r}-header`,ref:fe,colGroup:ut}),tt),e,Re&&Re!==`top`&&h.createElement(aC,yC({},t,{stickyBottomOffset:Ne,className:`${r}-summary`,ref:_e,colGroup:ut}),nt),je&&me.current&&me.current instanceof Element&&h.createElement(_fe,{ref:Ae,offsetScroll:Pe,scrollBodyRef:me,onScroll:Je,container:Ie,direction:p}))}else ot=h.createElement(`div`,{style:{...ze,...Be,...c?.content},className:m(`${r}-content`,s?.content),onScroll:Je,ref:me},h.createElement(it,yC({style:{...Ve,tableLayout:at}},pt),dt,ut,x!==!1&&h.createElement(sC,yC({},st,ue)),lt,Le&&h.createElement(qS,{stickyOffsets:Ee,flattenColumns:se},Le)));let mt={...o};je&&(mt[`--columns-count`]=se.length);let ht=h.createElement(`div`,yC({className:m(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Oe,[`${r}-fix-end-shadow`]:Oe,[`${r}-fix-start-shadow-show`]:Oe&&ve,[`${r}-fix-end-shadow-show`]:Oe&&be,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:De,[`${r}-fixed-column`]:ke,[`${r}-scroll-horizontal`]:Oe,[`${r}-has-fix-start`]:se[0]?.fixed,[`${r}-has-fix-end`]:se[se.length-1]?.fixed===`end`}),style:mt,id:b,ref:de},ft),g&&h.createElement(pC,{className:m(`${r}-title`,s?.title),style:c?.title},g(F)),h.createElement(`div`,{ref:he,className:m(`${r}-container`,s?.section),style:c?.section},ot),_&&h.createElement(pC,{className:m(`${r}-footer`,s?.footer),style:c?.footer},_(F)));Oe&&(ht=h.createElement(Fl,{onResize:({offsetWidth:e})=>Ze(e)},ht));let gt=dfe(se,Ee),_t=h.useMemo(()=>({scrollX:le,scrollInfo:Ke,classNames:s,styles:c,prefixCls:r,getComponent:R,scrollbarSize:$e,direction:p,fixedInfoList:gt,isSticky:je,componentWidth:ie,fixHeader:De,fixColumn:ke,horizonScroll:Oe,tableLayout:at,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:K,expandableType:G,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:se.every(e=>e.fixed===`start`),emptyNode:ct,columns:oe,flattenColumns:se,onColumnResize:He,colWidths:Te,hoverStartRow:V,hoverEndRow:H,onHover:U,rowExpandable:W.rowExpandable,onRow:w,getRowKey:z,expandedKeys:ee,childrenColumnName:te,rowHoverable:P,measureRowRender:E}),[le,Ke,s,c,r,R,$e,p,gt,je,ie,De,ke,Oe,at,a,W.expandedRowClassName,K,G,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,ne,W.expandIconColumnIndex,W.indentSize,ct,oe,se,He,Te,V,H,U,W.rowExpandable,w,z,ee,te,P,E]);return h.createElement(IS.Provider,{value:_t},ht)}),xC=e=>Ide(xfe,e),SC=xC();SC.EXPAND_COLUMN=AS,SC.INTERNAL_HOOKS=jS,SC.Column=Yde,SC.ColumnGroup=Xde,SC.Summary=JS;var CC=MS(null),wC=MS(null);function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:g,className:_,width:v}=n,{columnsOffset:y}=NS(wC,[`columnsOffset`]),{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}=tC(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=C,D=Sfe(r-1,T,y),O=T>1?v-D:0,k={...w,...l,flex:`0 0 ${D}px`,width:`${D}px`,marginRight:O,pointerEvents:`auto`},A=h.useMemo(()=>d?E<=1:T===0||E===0||E>1,[E,T,d]);A?k.visibility=`hidden`:d&&(k.height=f?.(E));let j=A?()=>null:p,M={};return(E===0||T===0)&&(M.rowSpan=1,M.colSpan=1),h.createElement(BS,TC({className:m(_,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:b,record:c,index:a,renderIndex:s,dataIndex:g,render:j,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:S,additionalProps:{...C,style:k,...M}}))};function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:g,prefixCls:_,fixColumn:v,componentWidth:y,classNames:b,styles:x}=NS(IS,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=NS(CC,[`getComponent`]),C=ZS(u,a,r,d),w=S([`body`,`row`],`div`),T=S([`body`,`cell`],`div`),{rowSupportExpand:E,expanded:D,rowProps:O,expandedRowRender:k,expandedRowClassName:A}=C,j=$S(A,u,r,d),M;if(E&&D){let e=k(u,r,d+1,D),t={};v&&(t={style:{"--virtual-width":`${y}px`}});let n=`${_}-expanded-row-cell`;M=h.createElement(w,{className:m(`${_}-expanded-row`,`${_}-expanded-row-level-${d+1}`,j)},h.createElement(BS,{component:T,prefixCls:_,className:m(n,{[`${n}-fixed`]:v}),additionalProps:t},e))}let N={...o,width:p};s&&(N.position=`absolute`,N.pointerEvents=`none`);let P=h.createElement(w,EC({},O,l,{"data-row-key":a,ref:E?null:t,className:m(i,`${_}-row`,O?.className,b?.body?.row,{[j]:d>=1,[`${_}-row-extra`]:s}),style:{...N,...O?.style,...x?.body?.row}}),g.map((e,t)=>h.createElement(Cfe,{key:t,className:b?.body?.cell,style:x?.body?.cell,component:T,rowInfo:C,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return E?h.createElement(`div`,{ref:t},P,M):P})),wfe={start:`top`,end:`bottom`,nearest:`auto`},Tfe=FS(h.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=NS(IS,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:g,onScroll:_}=NS(CC),v=h.useRef(null),y=XS(n,l,s,o),b=h.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),x=h.useMemo(()=>b.map(e=>e[2]),[b]);h.useEffect(()=>{b.forEach(([e,t])=>{a(e,t)})},[b]),h.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=wfe[t]??(n?`top`:`auto`);v.current?.scrollTo({...r,offset:n,align:i})},nativeElement:v.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>v.current?.getScrollInfo().x||0,set:e=>{v.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>v.current?.getScrollInfo().y||0,set:e=>{v.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=y[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;eS(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)y[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=y[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=y[i];if(!a||!a.record){let e=Math.min(i,y.length-1),t=y[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return h.createElement(DC,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=h.useMemo(()=>({columnsOffset:x}),[x]),T=`${c}-tbody`,E=g([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),h.createElement(wC.Provider,{value:w},h.createElement($x,{fullHeight:!1,ref:v,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:y,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:v.current?.nativeElement,scrollLeft:e})},onScroll:_,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return h.createElement(DC,{data:e,rowKey:r,index:t,style:n.style})}))}));function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return h.createElement(Tfe,{ref:n,data:e,onScroll:r})},Dfe=h.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=bC,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=pe((e,t)=>on(l,e)||t),g=pe(u),_=h.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:g}),[a,f,c,p,g]);return h.createElement(CC.Provider,{value:_},h.createElement(SC,OC({},e,{className:m(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Efe:void 0},columns:r,internalHooks:jS,tailor:!0,ref:t})))}),kC=e=>Ide(Dfe,e);kC();var Ofe=e=>null,kfe=e=>null,AC=h.createContext(null),Afe=h.createContext({}),jfe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return h.createElement(`div`,{style:i})},Mfe=h.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{if(!Nfe(e))return Rt(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function IC(e,t,n){let{_title:r,key:i,children:a}=PC(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=MC(n?n.pos:`0`,u),f=NC(l[i],d),p;for(let e=0;ee[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>NC(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?MC(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function LC(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Pfe(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=NC(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function RC(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function zC(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=jC(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function BC(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return Rt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:g,domRef:_,active:v,data:y,onMouseMove:b,selectable:x,treeId:S,...C}=e,w=Se(S,t),T=h.useContext(AC),{classNames:E,styles:D}=T||{},O=h.useContext(Afe),k=h.useRef(null),[A,j]=h.useState(!1),M=!!(T.disabled||e.disabled||O.nodeDisabled?.(y)),N=h.useMemo(()=>!T.checkable||e.checkable===!1?!1:T.checkable,[T.checkable,e.checkable]),P=t=>{M||T.onNodeSelect(t,BC(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,BC(e),!f)},I=h.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,BC(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,BC(e))},z=t=>{T.onNodeMouseEnter(t,BC(e))},B=t=>{T.onNodeMouseLeave(t,BC(e))},V=t=>{T.onNodeContextMenu(t,BC(e))},H=h.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(y))),[T.draggable,y]),U=t=>{t.stopPropagation(),j(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},W=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)},G=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)},K=t=>{t.stopPropagation(),j(!1),T.onNodeDragEnd(t,e)},te=t=>{t.preventDefault(),t.stopPropagation(),j(!1),T.onNodeDrop(t,e)},ne=t=>{g||T.onNodeExpand(t,BC(e))},re=h.useMemo(()=>{let{children:e}=jC(T.keyEntities,t)||{};return!!(e||[]).length},[T.keyEntities,t]),ie=h.useMemo(()=>RC(s,T.loadData,re,e.loaded),[s,T.loadData,re,e.loaded]);h.useEffect(()=>{g||typeof T.loadData==`function`&&u&&!ie&&!e.loaded&&T.onNodeLoad(BC(e))},[g,T.loadData,T.onNodeLoad,u,ie,e]);let ae=h.useMemo(()=>T.draggable?.icon?h.createElement(`span`,{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),oe=t=>{let n=e.switcherIcon||T.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},se=()=>{if(ie){let e=oe(!0);return e===!1?null:h.createElement(`span`,{className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,E?.itemSwitcher),style:D?.itemSwitcher},e)}let e=oe(!1);return e===!1?null:h.createElement(`span`,{onClick:ne,className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${u?HC:UC}`,E?.itemSwitcher),style:D?.itemSwitcher},e)},ce=h.useMemo(()=>{if(!N)return null;let t=typeof N==`boolean`?null:N;return h.createElement(`span`,{className:m(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:f,[`${T.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${T.prefixCls}-checkbox-disabled`]:M||e.disableCheckbox}),onClick:F,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":M||e.disableCheckbox,"aria-labelledby":w},t)},[N,f,p,M,e.disableCheckbox,w]),le=h.useMemo(()=>ie?null:u?HC:UC,[ie,u]),ue=h.useMemo(()=>h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${le||`docu`}`,{[`${T.prefixCls}-icon_loading`]:g}),style:D?.itemIcon}),[T.prefixCls,le,g]),de=h.useMemo(()=>{let n=!!T.draggable;return!e.disabled&&n&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),fe=h.useMemo(()=>{let{title:t=Ffe}=e,n=`${T.prefixCls}-node-content-wrapper`,r;if(T.showIcon){let t=e.icon||T.icon;r=t?h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:D?.itemIcon},typeof t==`function`?t(e):t):ue}else T.loadData&&g&&(r=ue);let i;return i=typeof t==`function`?t(y):T.titleRender?T.titleRender(y):t,h.createElement(`span`,{ref:k,title:typeof t==`string`?t:``,className:m(n,`${n}-${le||`normal`}`,{[`${T.prefixCls}-node-selected`]:!M&&(d||A)}),onMouseEnter:z,onMouseLeave:B,onContextMenu:V,onClick:L,onDoubleClick:R},r,h.createElement(`span`,{className:m(`${T.prefixCls}-title`,E?.itemTitle),style:D?.itemTitle},i),de)},[T.prefixCls,T.showIcon,e,T.icon,ue,T.titleRender,y,le,z,B,V,L,R]),pe=Yt(C,{aria:!0,data:!0}),{level:me}=jC(T.keyEntities,t)||{},he=l[l.length-1],ge=!M&&H,_e=T.draggingNodeKey===t;return h.createElement(`div`,VC({ref:_,role:`treeitem`,id:w,"aria-expanded":ie?void 0:u,"aria-selected":I&&!M?d:void 0,"aria-checked":N&&!M?p?`mixed`:f:void 0,"aria-disabled":M,className:m(n,`${T.prefixCls}-treenode`,E?.item,{[`${T.prefixCls}-treenode-disabled`]:M,[`${T.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${T.prefixCls}-treenode-checkbox-checked`]:f,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${T.prefixCls}-treenode-selected`]:d,[`${T.prefixCls}-treenode-loading`]:g,[`${T.prefixCls}-treenode-active`]:v,[`${T.prefixCls}-treenode-leaf-last`]:he,[`${T.prefixCls}-treenode-draggable`]:H,dragging:_e,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!M&&i,"drag-over-gap-top":!M&&a,"drag-over-gap-bottom":!M&&o,"filter-node":T.filterTreeNode?.(BC(e)),[`${T.prefixCls}-treenode-leaf`]:ie}),style:{...r,...D?.item},draggable:ge,onDragStart:ge?U:void 0,onDragEnter:H?W:void 0,onDragOver:H?G:void 0,onDragLeave:H?ee:void 0,onDrop:H?te:void 0,onDragEnd:H?K:void 0,onMouseMove:b},pe),h.createElement(Mfe,{prefixCls:T.prefixCls,level:me,isStart:c,isEnd:l}),ae,se(),ce,fe)};WC.isTreeNode=1;function Ife(e,t){let[n,r]=h.useState(!1);ge(()=>{if(n)return e(),()=>{t()}},[n]),ge(()=>(r(!0),()=>{r(!1)}),[])}function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=h.useState(!0),{prefixCls:g}=h.useContext(AC),_=a&&o!==`hide`;ge(()=>{a&&_!==f&&p(_)},[a]);let v=()=>{a&&s()},y=h.useRef(!1),b=()=>{a&&!y.current&&(y.current=!0,c())};return Ife(v,b),a?h.createElement(ur,GC({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{_===e&&b()}}),({className:e,style:t},n)=>h.createElement(`div`,{ref:n,className:m(`${g}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=zC(r,u);return h.createElement(WC,GC({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):h.createElement(WC,GC({domRef:t,className:n,style:r},d,{active:l}))});function Rfe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function qC(){return qC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:g,dropPosition:_,motion:v,height:y,itemHeight:b,virtual:x,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onActiveChange:A,onListChangeStart:j,onListChangeEnd:M,...N}=e,P=we(),F=h.useRef(null),I=h.useRef(null);h.useImperativeHandle(t,()=>({scrollTo:e=>{F.current.scrollTo(e)},getIndentWidth:()=>I.current.offsetWidth}));let[L,R]=h.useState(o),[z,B]=h.useState(r),[V,H]=h.useState(r),[U,W]=h.useState([]),[G,ee]=h.useState(null),K=h.useRef(r);K.current=r;function te(){let e=K.current;B(e),H(e),W([]),ee(null),M()}ge(()=>{R(o);let e=Rfe(L,o);if(e.key!==null)if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=QC(KC(z,r,e.key),x,y,b),i=z.slice();i.splice(t+1,0,ZC),H(i),W(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=QC(KC(r,z,e.key),x,y,b),i=r.slice();i.splice(t+1,0,ZC),H(i),W(n),ee(`hide`)}else z!==r&&(B(r),H(r))},[o,r]),h.useEffect(()=>{m||te()},[m]);let ne=v?V:r,re={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:_,keyEntities:f};return h.createElement(h.Fragment,null,h.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},h.createElement(`div`,{className:`${n}-indent`},h.createElement(`div`,{ref:I,className:`${n}-indent-unit`}))),h.createElement($x,qC({},N,{data:ne,itemKey:$C,height:y,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:S,prefixCls:`${n}-list`,ref:F,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?Se(P,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onVisibleChange:e=>{e.every(e=>$C(e)!==JC)&&te()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=NC(i,t);delete n.key,delete n.children;let c=zC(s,re);return h.createElement(Lfe,qC({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:v,motionNodes:i===JC?U:null,motionType:G,onMotionStart:j,onMotionEnd:te,treeNodeRequiredProps:re,treeId:P,onMouseMove:()=>{A(null)}}))}))});function ew(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function tw(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function nw(e){return e.split(`-`)}function Bfe(e,t){let n=[],r=jC(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Vfe(e){if(e.parent){let t=nw(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Hfe(e){let t=nw(e.pos);return Number(t[t.length-1])===0}function rw(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=jC(s,n.eventKey);if(de.key===g.key),t=o[e<=0?0:e-1].key;g=jC(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function iw(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function aw(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Rt(!1,"`checkedKeys` is not an array or an object"),null;return t}function ow(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=jC(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function sw(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Ufe(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Wfe(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(sw(a,i))}}function Gfe(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(sw(o,a))}}function cw(e,t,n,r){let i=[],a;a=r||Ufe;let o=new Set(e.filter(e=>{let t=!!jC(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),Rt(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Wfe(o,s,c,a):Gfe(o,t.halfCheckedKeys,s,c,a),l}function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0,expandAction:!1};static TreeNode=WC;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:PC()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=h.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=PC(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Rt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=FC(e.children)),a){r.treeData=a;let e=LC(a,{fieldNames:o});r.keyEntities={[JC]:XC,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?ow(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[JC];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?ow(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=IC(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=iw(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=iw(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=aw(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=aw(e.defaultCheckedKeys)||{}:a&&(o=aw(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=cw(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=ew(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Bfe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:BC(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=rw(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=jC(r,t.eventKey);a&&(a.children||[]).length&&(i=tw(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:BC(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:BC(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=rw(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:BC(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:BC(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:BC(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...zC(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:jC(this.state.keyEntities,a).node};Rt(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=nw(o),d={event:e,node:BC(l),dragNode:this.dragNodeProps?BC(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=BC({...zC(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?ew(n,a):tw(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?tw(n,c):[c]:ew(n,c);let u=n.map(e=>{let t=jC(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?tw(i,c):ew(i,c);l={checked:e,halfChecked:ew(a,c)},u.checkedNodes=e.map(e=>jC(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=cw([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=cw(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=jC(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(jC(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=tw(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:ew(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:ew(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=Kfe){let{loadedKeys:e}=this.state;Rt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:tw(e,t)}),n()}r(e)}),{loadingKeys:tw(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=IC(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(Rt(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?tw(n,c):ew(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=IC(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=ew(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=BC({...zC(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!jC(a,t)?.children?.length,l=!RC(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:g,focusable:_,tabIndex:v=0,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:C,checkable:w,checkStrictly:T,disabled:E,motion:D,loadData:O,filterTreeNode:k,height:A,itemHeight:j,scrollWidth:M,virtual:N,titleRender:P,dropIndicatorRender:F,onContextMenu:I,onScroll:L,direction:R,rootClassName:z,rootStyle:B}=this.props,V=Yt(this.props,{aria:!0,data:!0}),H;C&&(H=typeof C==`object`?C:typeof C==`function`?{nodeDraggable:C}:{});let U={styles:f,classNames:p,prefixCls:l,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:H,draggingNodeKey:n,checkable:w,checkStrictly:T,disabled:E,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:R,dropIndicatorRender:F,loadData:O,filterTreeNode:k,titleRender:P,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(AC.Provider,{value:U},h.createElement(`div`,{className:m(l,u,z,{[`${l}-show-line`]:g}),style:B},h.createElement(zfe,lw({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:E,selectable:y,checkable:!!w,motion:D,dragging:n!==null,height:A,itemHeight:j,virtual:N,focusable:_,tabIndex:v,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:I,onScroll:L,scrollWidth:M},this.getTreeNodeRequiredProps(),V))))}},uw=h.createContext(null),Jfe=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...io(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...io(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...io(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...yf(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${q(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}`,...yf()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:co(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[` + `]:{animationName:ff},"&-hidden":{display:`none`},[r]:{...uS(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`,...ro},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...uS(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},rde=e=>{let{antCls:t,componentCls:n}=e,r={background:`transparent`},i=[`> input[disabled]`,`> textarea[disabled]`,`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(`, `);return{[`&${n}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${n}-placeholder`]:{display:`none`},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:`none`}},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},dS=4,ide=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Tc(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${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% - ${dS}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`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...ro,marginInlineEnd:a},"&-remove":{...ao(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:dS,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},fS=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Tc(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},pS=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[fS(e,n),{[`&${o}-status-error`]:fS(e,{...n,...r}),[`&${o}-status-warning`]:fS(e,{...n,...i})},a]}},mS=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),ade=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=Tc(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...io(e),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...ro,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"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":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:{...ro,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},ide(e),pS(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),pS(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),pS(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:mS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:mS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:mS(e,e.colorWarning)}),pS(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),rde(e)]}},ode=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},sde=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...io(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...ro,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,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(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},cde=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},sde(e),nde(e),{[`${t}-rtl`]:{direction:`rtl`}},cp(e,{focusElCls:`${t}-focused`})]},lde=Sc(`Select`,(e,{rootPrefixCls:t})=>{let n=Go(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cde(n),ade(n)]},ode,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function ude(e){return h.useMemo(()=>{if(e)return(...t)=>h.createElement(Y_,{space:!0},e.apply(void 0,t))},[e])}function dde(e,t){return t===void 0?e!==null:t}var hS=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,gS=h.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:g,status:_,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:S,allowClear:C,variant:w,popupStyle:T,dropdownStyle:E,transitionName:D,tagRender:O,maxCount:k,prefix:A,dropdownRender:j,popupRender:M,onDropdownVisibleChange:N,onOpenChange:P,styles:F,classNames:I,clearIcon:L,showSearch:R,...z}=e,{getPopupContainer:B,getPrefixCls:V,renderEmpty:H,direction:U,virtual:W,popupMatchSelectWidth:G,popupOverflow:ee}=h.useContext(Br),{showSearch:K,allowClear:te,style:ne,styles:re,className:ie,classNames:ae,clearIcon:oe,loadingIcon:se,menuItemSelectedIcon:ce,removeIcon:le,suffixIcon:ue}=Ur(`select`),[,de]=xc(),fe=d??de?.controlHeight,pe=V(`select`,n),me=V(),he=x??U,{compactSize:ge,compactItemClassnames:_e}=Od(pe,he),[ve,ye]=bm(`select`,w,r),be=og(pe),[xe,Se]=lde(pe,be),Ce=h.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===hS?`combobox`:t},[e.mode]),we=Ce===`multiple`||Ce===`tags`,Te=dde(e.suffixIcon,e.showArrow),Ee=b??y??G,De=ude(M||j),Oe=P||N,{status:ke,hasFeedback:Ae,isFormItemInput:je,feedbackIcon:Me}=h.useContext(_m),Ne=Z_(ke,_),Pe;Pe=g===void 0?Ce===`combobox`?null:H?.(`Select`)||h.createElement(lS,{componentName:`Select`}):g;let{suffixIcon:Fe,itemIcon:Ie,removeIcon:Le,clearIcon:Re}=Pv({...z,multiple:we,hasFeedback:Ae,feedbackIcon:Me,showSuffixIcon:Te,prefixCls:pe,componentName:`Select`,clearIcon:L,searchIcon:iS(R,`searchIcon`),contextClearIcon:oe,contextLoadingIcon:se,contextMenuItemSelectedIcon:ce,contextRemoveIcon:le,contextSearchIcon:iS(K,`searchIcon`),contextSuffixIcon:ue}),ze=C??te,Be=ze===!0?{clearIcon:Re}:ze,Ve=R??K,He=Wt(z,[`suffixIcon`,`itemIcon`]),Ue=ed(e=>f??ge??e),We=h.useContext(Cu),Ge=p??We,Ke={...e,variant:ve,status:Ne,disabled:Ge,size:Ue},qe=jr(ne),Je=jr(S),[Ye,Xe]=Nr([ae,I],[re,qe,F,Je],{props:Ke},{popup:{_default:`root`}}),Ze=m(Ye.popup.root,s,c,{[`${pe}-dropdown-${he}`]:he===`rtl`},a,Se,be,xe),Qe={...Xe.popup?.root,...T??E},$e=m({[`${pe}-lg`]:Ue===`large`,[`${pe}-sm`]:Ue===`small`,[`${pe}-rtl`]:he===`rtl`,[`${pe}-${ve}`]:ye,[`${pe}-in-form-item`]:je},X_(pe,Ne,Ae),_e,ie,i,Ye.root,a,Se,be,xe),et=h.useMemo(()=>u===void 0?he===`rtl`?`bottomRight`:`bottomLeft`:u,[u,he]),[tt]=Ed(`SelectLike`,Xe.popup.root?.zIndex??Qe.zIndex);return h.createElement(Yue,{ref:t,virtual:W,classNames:Ye,styles:Xe,showSearch:Ve,...He,style:Xe.root,popupMatchSelectWidth:Ee,transitionName:Kf(me,`slide-up`,D),builtinPlacements:tde(v,ee),listHeight:l,listItemHeight:fe,mode:Ce,prefixCls:pe,placement:et,direction:he,prefix:A,suffixIcon:Fe,menuItemSelectedIcon:Ie,removeIcon:Le,allowClear:Be,notFoundContent:Pe,className:$e,getPopupContainer:o||B,popupClassName:Ze,disabled:Ge,popupStyle:{...Xe.popup.root,...Qe,zIndex:tt},maxCount:we?k:void 0,tagRender:we?O:void 0,popupRender:De,onPopupVisibleChange:Oe})}),fde=Tg(gS,`popupAlign`);gS.SECRET_COMBOBOX_MODE_DO_NOT_USE=hS,gS.Option=Hx,gS.OptGroup=Vx,gS._InternalPanelDoNotUseOrYouWillBeFired=fde;function pde(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function mde(e,t,n){var r=(n||{}).atBegin;return pde(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var _S=100,vS=_S/5,yS=_S/2-vS/2,bS=yS*2*Math.PI,xS=50,SS=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement(`circle`,{className:m(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:yS,cx:xS,cy:xS,strokeWidth:vS,style:n})},hde=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=h.useState(!1);ge(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${bS/4}`,strokeDasharray:`${bS*s/100} ${bS*(100-s)/100}`};return h.createElement(`span`,{className:m(r,`${n}-progress`,{[i]:s<=0})},h.createElement(`svg`,{viewBox:`0 0 ${_S} ${_S}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(SS,{dotClassName:n,hasCircleCls:!0}),h.createElement(SS,{dotClassName:n,style:c})))};function gde(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(o,r,n>0&&s),style:i},h.createElement(`span`,{className:m(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>h.createElement(`i`,{className:`${t}-dot-item`,key:e})))),h.createElement(hde,{prefixCls:t,percent:n}))}function _de(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&h.isValidElement(n)?vu(n,e=>({className:m(e.className,o,i),style:{...e.style,...a},percent:r})):h.createElement(gde,{prefixCls:t,percent:r,className:i,style:a})}var vde=new to(`antSpinMove`,{to:{opacity:1}}),yde=new to(`antRotate`,{to:{transform:`rotate(405deg)`}}),bde=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...io(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}}}}}},xde=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Tc(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:yde,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:vde,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(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},Sde=e=>{let{componentCls:t}=e,[n]=Tc(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},Cde=Sc(`Spin`,e=>{let t=Go(e,{spinDotDefault:e.colorTextDescription});return[bde(t),xde(t),Sde(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),wde=200,CS=[[30,.05],[70,.03],[96,.01]];function Tde(e,t){let[n,r]=h.useState(0),i=h.useRef(null),a=t===`auto`;return h.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var wS;function Ede(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var TS=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:g,classNames:_,styles:v,...y}=e,{getPrefixCls:b,direction:x,indicator:S,className:C,style:w,classNames:T,styles:E}=Ur(`spin`),D=b(`spin`,t),[O,k]=Cde(D),[A,j]=h.useState(()=>n&&!Ede(n,r)),M=Tde(A,g);h.useEffect(()=>{if(n){let e=mde(r,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[r,n]);let N=ed(e=>o??e),P=c??s,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:f,children:d,percent:M},[I,L]=Nr([T,_],[E,v],{props:F}),R=p??S??wS,z=d!==void 0,B=z||f,V=h.createElement(h.Fragment,null,h.createElement(_de,{className:m(I.indicator),style:L.indicator,prefixCls:D,indicator:R,percent:M}),P&&h.createElement(`div`,{className:m(`${D}-description`,I.tip,I.description),style:{...L.tip,...L.description}},P));return h.createElement(`div`,{className:m(D,{[`${D}-sm`]:N===`small`,[`${D}-lg`]:N===`large`,[`${D}-spinning`]:A,[`${D}-rtl`]:x===`rtl`,[`${D}-fullscreen`]:f},a,I.root,f&&I.mask,B?l:[`${D}-section`,I.section],C,i,O,k),style:{...L.root,...B?{}:L.section,...f?L.mask:{},...w,...u},"aria-live":`polite`,"aria-busy":A,...y},A&&(B?h.createElement(`div`,{className:m(`${D}-section`,I.section),style:L.section},V):V),z&&h.createElement(`div`,{className:m(`${D}-container`,I.container),style:L.container},d))};TS.setDefaultIndicator=e=>{wS=e};function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[_,v]=ye(r??!1,n);function y(e,t){let n=_;return i||(n=e,v(n),l?.(n,t)),n}function b(e){e.which===Et.LEFT?y(!1,e):e.which===Et.RIGHT&&y(!0,e),u?.(e)}function x(e){let t=y(!_,e);c?.(t,e)}let S=m(e,t,{[`${e}-checked`]:_,[`${e}-disabled`]:i});return h.createElement(`button`,ES({},p,{type:`button`,role:`switch`,"aria-checked":_,disabled:i,className:S,ref:g,onKeyDown:b,onClick:x}),a,h.createElement(`span`,{className:`${e}-inner`},h.createElement(`span`,{className:m(`${e}-inner-checked`,f?.content),style:d?.content},o),h.createElement(`span`,{className:m(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});DS.displayName=`Switch`;var Dde=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=q(c(s).add(c(r).mul(2)).equal()),d=q(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:q(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Ode=e=>{let{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}}}},kde=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...yf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...yf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${q(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Ade=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=q(c(o).add(c(r).mul(2)).equal()),d=q(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...yf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...yf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},jde=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...io(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:q(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...yf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...lo(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`}}}},Mde=Sc(`Switch`,e=>{let t=Go(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[jde(t),Ade(t),kde(t),Ode(t),Dde(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ps(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),Nde=h.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:g,classNames:_,...v}=e,[y,b]=ye(d??f??!1,l??u),{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Ur(`switch`),D=h.useContext(Cu),O=(i??D)||a,k=x(`switch`,n),[A,j]=Mde(k),M=ed(r),N={...e,size:M,disabled:O},P=jr(w),F=jr(c),[I,L]=Nr([T,_],[E,P,g,F],{props:N}),R=h.createElement(`div`,{className:m(`${k}-handle`,I.indicator),style:L.indicator},a&&h.createElement(Hd,{className:`${k}-loading-icon`})),z=m(C,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:S===`rtl`},o,s,I.root,A,j),B=(...e)=>{b(e[0]),p?.(...e)};return h.createElement($u,{component:`Switch`,disabled:O},h.createElement(DS,{...v,classNames:I,styles:L,checked:y,onChange:B,prefixCls:k,className:z,style:L.root,disabled:O,ref:t,loadingIcon:R}))});Nde.__ANT_SWITCH=!0;var OS={},kS=`rc-table-internal-hook`;function AS(e){let t=h.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=h.useRef(e);r.current=e;let[i]=h.useState(()=>({getValue:()=>r.current,listeners:new Set}));return ge(()=>{(0,Sn.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),h.createElement(t.Provider,{value:i},n)},defaultValue:e}}function jS(e,t){let n=pe(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=h.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=h.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=h.useState({});return ge(()=>{if(!r)return;function e(e){let t=n(e);Bt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let s=i?{ref:o}:{},c=h.useRef(0),l=h.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,h.createElement(e.Provider,{value:c.current},h.createElement(n,MS({},a,s)))):h.createElement(n,MS({},a,s))};return i?h.forwardRef(a):a}function r(e,n){let r=Re(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),h.createElement(e,MS({},n,a))};return h.memo(r?h.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Fde,responseImmutable:Ide,useImmutableMark:Lde}=Pde(),{makeImmutable:Rde,responseImmutable:NS,useImmutableMark:zde}=Pde(),PS=AS(),Bde=h.createContext({renderWithProps:!1}),Vde=`RC_TABLE_KEY`;function Hde(e){return e==null?[]:Array.isArray(e)?e:[e]}function FS(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Hde(i).join(`-`)||Vde;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function IS(e){return e!=null}function Ude(e){return typeof e==`number`&&!Number.isNaN(e)}function Wde(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!h.isValidElement(e)}function Gde(e,t,n,r,i,a){let o=h.useContext(Bde);return Te(()=>{if(IS(r))return[r];let a=on(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Wde(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[zde(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!Bt(e,t,!0)})}function Kde(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function qde(e,t){return jS(PS,n=>[Kde(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():h.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},RS=h.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:g,rowType:_,colSpan:v,rowSpan:y,fixStart:b,fixEnd:x,fixedStartShadow:S,fixedEndShadow:C,offsetFixedStartShadow:w,offsetFixedEndShadow:T,zIndex:E,zIndexReverse:D,appendNode:O,additionalProps:k={},isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=jS(PS,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=Gde(l,d,f,n,u,p),I={},L=typeof b==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=jS(PS,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&S&&t)-w>=1,(R&&C&&n-t)-T>1]});L&&(I.insetInlineStart=b,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D),R&&(I.insetInlineEnd=x,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D);let V=F?.colSpan??k.colSpan??v??1,H=F?.rowSpan??k.rowSpan??y??1,[U,W]=qde(g,H),G=pe(e=>{l&&W(g,g+H-1),k?.onMouseEnter?.(e)}),ee=pe(e=>{l&&W(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let K=k.title??Jde({rowType:_,ellipsis:r,children:P}),te=m(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:S,[`${j}-fix-start-shadow-show`]:S&&z,[`${j}-fix-end-shadow`]:C,[`${j}-fix-end-shadow-show`]:C&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:O,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&U},k.className,F?.className),ne={};c&&(ne.textAlign=c);let re={...F?.style,...I,...ne,...k.style,...s},ie=P;return typeof ie==`object`&&!Array.isArray(ie)&&!h.isValidElement(ie)&&(ie=null),r&&(S||C)&&(ie=h.createElement(`span`,{className:`${j}-content`},ie)),h.createElement(t,LS({},F,k,{className:te,style:re,title:K,scope:i,onMouseEnter:N?G:void 0,onMouseLeave:N?ee:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,ie)});function zS(e){return e.fixed===`start`}function BS(e){return e.fixed===`end`}function VS(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;zS(i)&&zS(a)?o=r.start[e]:BS(a)&&BS(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!zS(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!BS(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;tt;--e)BS(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var HS=h.createContext({});function US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=jS(PS,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=h.useContext(HS),d=n+i-1+1===c?i+1:i,f=h.useMemo(()=>VS(n,n+d-1,u,l),[n,d,u,l]);return h.createElement(RS,US({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},Xde=e=>{let{children:t,...n}=e;return h.createElement(`tr`,n,t)},WS=e=>{let{children:t}=e;return t};WS.Row=Xde,WS.Cell=Yde;var GS=NS(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=jS(PS,`prefixCls`),a=r.length-1,o=r[a],s=h.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return h.createElement(HS.Provider,{value:s},h.createElement(`tfoot`,{className:`${i}-summary`},t))}),KS=WS;function Zde(e){return null}function Qde(e){return null}function qS(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o{if(n?.size){let i=[];for(let a=0;a({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function YS(e,t,n,r){let i=jS(PS,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,h=o===`nest`,g=o===`row`&&(!u||u(e)),_=g||h,v=s&&s.has(t),y=c&&e&&e[c],b=pe(l),x=d?.(e,n),S=x?.onClick,C=(t,...n)=>{f&&_&&l(e,t),S?.(t,...n)},w;typeof p==`string`?w=p:typeof p==`function`&&(w=p(e,n,r));let T=FS(a);return{...i,columnsKey:T,nestExpandable:h,expanded:v,hasNestChildren:y,record:e,onTriggerExpand:b,rowSupportExpand:g,expandable:_,rowProps:{...x,className:m(w,x?.className),onClick:C}}}var XS=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=jS(PS,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),g=n;return(c?m&&p:f)&&(g=h.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},g)),h.createElement(r,{className:a,style:{display:o?null:`none`}},h.createElement(RS,{component:i,prefixCls:t,colSpan:s},g))};function $de({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return h.createElement(`span`,{className:m(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return h.createElement(`span`,{className:m(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function efe(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function ZS(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function QS(){return QS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:g}=e,_=YS(a,c,o,u),{prefixCls:v,flattenColumns:y,expandedRowClassName:b,expandedRowRender:x,rowProps:S,expanded:C,rowSupportExpand:w}=_,T=h.useRef(!1);T.current||=C;let E=ZS(b,a,o,u),D=h.createElement(d,QS({},S,{"data-row-key":c,className:m(t,`${v}-row`,`${v}-row-level-${u}`,S?.className,r.row,{[E]:u>=1}),style:{...n,...S?.style,...i.row}}),y.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:y,fixedInfo:b,appendCellNode:x,additionalCellProps:S}=$S(_,e,t,u,o,l,g?.offset);return h.createElement(RS,QS({className:m(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:v,key:y,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:x,additionalProps:S}))})),O;if(w&&(T.current||C)){let e=x(a,o,u+1,C);O=h.createElement(XS,{expanded:C,className:m(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,E),prefixCls:v,component:d,cellComponent:f,colSpan:g?g.colSpan:y.length,isEmpty:!1,stickyOffset:g?.sticky},e)}return h.createElement(h.Fragment,null,D,O)}),nfe=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=h.useRef(null);return ge(()=>{i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(Fl,{data:t},h.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},h.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},rfe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=h.useRef(null),{measureRowRender:a}=jS(PS,[`measureRowRender`]),o=h.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},h.createElement(Fl.Collection,{onBatchResize:e=>{it(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=h.isValidElement(t)?h.cloneElement(t,{ref:null}):t;return h.createElement(nfe,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},ife=NS(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:g}=jS(PS,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:_={}}=d||{},{body:v={}}=f||{},y=JS(t,l,c,s),b=h.useMemo(()=>y.map(e=>e.rowKey),[y]),x=h.useRef({renderWithProps:!1}),S=h.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e{let{record:n,indent:r,index:i,rowKey:a}=e;return h.createElement(tfe,{classNames:_,styles:v,key:a,rowKey:a,rowKeys:b,record:n,index:t,renderIndex:i,rowComponent:w,cellComponent:T,scopeCellComponent:E,indent:r,expandedRowInfo:S})}):h.createElement(XS,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:w,cellComponent:T,colSpan:o.length,isEmpty:!0},u);let O=FS(o);return h.createElement(Bde.Provider,{value:x.current},h.createElement(C,{style:v.wrapper,className:m(`${r}-tbody`,_.wrapper)},n&&h.createElement(rfe,{prefixCls:r,columnsKey:O,onColumnResize:a,columns:o}),D))}),eC=`RC_TABLE_INTERNAL_COL_DEFINE`;function afe(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function tC(){return tC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=jS(PS,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[eC],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(h.createElement(`col`,tC({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?h.createElement(`colgroup`,null,a):null};function ofe(e,t){return(0,h.useMemo)(()=>{let n=[];for(let r=0;r{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:g,stickyClassName:_,scrollX:v,tableLayout:y=`fixed`,onScroll:b,maxContentScroll:x,children:S,...C}=e,{prefixCls:w,scrollbarSize:T,isSticky:E,getComponent:D}=jS(PS,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),O=D([`header`,`table`],`table`),k=E&&!f?0:T,A=h.useRef(null),j=h.useCallback(e=>{Fe(t,e),Fe(A,e)},[]);h.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),b({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=A.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let M=o[o.length-1],N={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${w}-cell-scrollbar`})},P=(0,h.useMemo)(()=>k?[...a,N]:a,[k,a]),F=(0,h.useMemo)(()=>k?[...o,N]:o,[k,o]),I=(0,h.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+k),0],isSticky:E}},[k,u,E]),L=ofe(s,l),R=(0,h.useMemo)(()=>{let e=!L||!L.length||L.every(e=>!e);return i||e},[i,L]);return h.createElement(`div`,{style:{overflow:`hidden`,...E?{top:p,bottom:g}:{},...r},ref:j,className:m(n,{[_]:!!_})},h.createElement(O,{style:{tableLayout:y,minWidth:`100%`,width:v}},R?c:h.createElement(nC,{colWidths:[...L,k],columCount:l+1,columns:F}),S({...C,stickyOffsets:I,columns:P,flattenColumns:F})))}),rC=h.memo(sfe);function iC(){return iC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=jS(PS,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=FS(t.map(e=>e.column));return h.createElement(i,iC({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=VS(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return h.createElement(RS,iC({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function lfe(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:m(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var aC=NS(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=jS(PS,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=h.useMemo(()=>lfe(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),g=o([`header`,`cell`],`th`);return h.createElement(f,{className:m(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>h.createElement(cfe,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:g,onHeaderRow:i,index:n})))});function oC(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function ufe(e,t,n){return h.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=oC(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=oC(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function sC(e){return rn(e).filter(e=>h.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=sC(r)),a})}function cC(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:cC(t)}:e})}function lC(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...lC(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function dfe({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:g,scrollWidth:_,clientWidth:v},y){let b=h.useMemo(()=>cC((t||sC(n)||[]).slice()),[t,n]),x=h.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(OS)){let e=u||0,n=e===0&&(g===`right`||g===`end`)?b.length:e;n>=0&&t.splice(n,0,OS)}let n=t.indexOf(OS);t=t.filter((e,t)=>e!==OS||t===n);let r=b[n],f;f=g||(r?r.fixed:null);let _={[eC]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?h.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===OS?_:e;return te!==OS)},[r,b,o,i,c,f,d]),S=h.useMemo(()=>{let e=x;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,x,f]),[C,w]=ufe(h.useMemo(()=>lC(S),[S,f,_]),_,v);return[S,C,w]}function ffe(e,t,n){let r=afe(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||$de,p=d||`children`,m=h.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[g,_]=h.useState(()=>o||(s?efe(t,n,p):[])),v=h.useMemo(()=>new Set(a||g||[]),[a,g]);return[r,m,v,f,p,h.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=v.has(r);a?(v.delete(r),i=[...v]):i=[...v,r],_(i),l&&l(!a,e),u&&u(i)},[n,v,t,l,u])]}function pfe(e,t){let n=h.useMemo(()=>e.map((n,r)=>VS(r,r,e,t)),[e,t]);return Te(()=>n,[n],(e,t)=>!Bt(e,t))}function mfe(e){let t=(0,h.useRef)(e),[,n]=(0,h.useState)({}),r=(0,h.useRef)(null),i=(0,h.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,h.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function hfe(e){let t=(0,h.useRef)(e||null),n=(0,h.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,h.useEffect)(()=>r,[]),[i,a]}function gfe(){let[e,t]=h.useState(-1),[n,r]=h.useState(-1);return[e,n,h.useCallback((e,n)=>{t(e),r(n)},[])]}var uC=me()?window:null;function _fe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>uC}=typeof e==`object`?e:{},o=a()||uC,s=!!e;return h.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function vfe(e,t){return(0,h.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var dC=e=>{let{children:t,className:n,style:r}=e;return h.createElement(`div`,{className:n,style:r},t)};function fC(e){let t=rt(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var pC=`mouseup`,mC=`mousemove`,hC=`scroll`,gC=`resize`,yfe=h.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=jS(PS,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=h.useRef(null),[f,p]=mfe({scrollLeft:0,isHiddenScrollBar:!0}),g=h.useRef({delta:0,x:0}),[_,v]=h.useState(!1),y=h.useRef(null);h.useEffect(()=>()=>{nn.cancel(y.current)},[]);let b=()=>{v(!1)},x=e=>{e.persist(),g.current.delta=e.pageX-f.scrollLeft,g.current.x=0,v(!0),e.preventDefault()},S=e=>{let{buttons:t}=e||window?.event;if(!_||t===0){_&&v(!1);return}let n=g.current.x+e.pageX-g.current.x-g.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u){nn.cancel(y.current),y.current=nn(()=>{if(!n.current)return;let e=fC(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:fC(a).top+a.clientHeight;t-kt()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},w=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return h.useImperativeHandle(t,()=>({setScrollLeft:w,checkScrollBarVisible:C})),h.useEffect(()=>(document.body.addEventListener(pC,b,!1),document.body.addEventListener(mC,S,!1),C(),()=>{document.body.removeEventListener(pC,b),document.body.removeEventListener(mC,S)}),[u,_]),h.useEffect(()=>{if(n.current){let e=[],t=rt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(hC,C,!1)}),window.addEventListener(gC,C,!1),window.addEventListener(hC,C,!1),a.addEventListener(hC,C,!1),()=>{e.forEach(e=>{e.removeEventListener(hC,C)}),window.removeEventListener(gC,C),window.removeEventListener(hC,C),a.removeEventListener(hC,C)}}},[a]),h.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:h.createElement(`div`,{style:{height:kt(),width:l,bottom:i},className:`${s}-sticky-scroll`},h.createElement(`div`,{onMouseDown:x,ref:d,className:m(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:_}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n={rowKey:`key`,prefixCls:vC,emptyText:Sfe,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:g,footer:_,summary:v,caption:y,id:b,showHeader:x,components:S,emptyText:C,onRow:w,onHeaderRow:T,measureRowRender:E,onScroll:D,internalHooks:O,transformColumns:k,internalRefs:A,tailor:j,getContainerWidth:M,sticky:N,rowHoverable:P=!0}=n,F=l||bfe,I=!!F.length,L=O===kS,R=h.useCallback((e,t)=>on(S,e)||t,[S]),z=h.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[V,H,U]=gfe(),[W,G,ee,K,te,ne]=ffe(n,F,z),re=d?.x,[ie,ae]=h.useState(0),[oe,se,ce]=dfe({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:ee,getRowKey:z,onTriggerExpand:ne,expandIcon:K,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:L&&j&&typeof re==`number`?re:null,clientWidth:ie},L?k:null),le=ce??re,ue=h.useMemo(()=>({columns:oe,flattenColumns:se}),[oe,se]),de=h.useRef(null),fe=h.useRef(null),me=h.useRef(null),he=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:de.current,scrollTo:e=>{if(me.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(Ude(n))me.current?.scrollTo({top:n});else{let e=r??z(F[t]),n=me.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=me.current;e.scrollTo({top:e.scrollTop+i})}}}else me.current?.scrollTo&&me.current.scrollTo(e)}}));let _e=h.useRef(null),[ve,ye]=h.useState(!1),[be,xe]=h.useState(!1),[Se,Ce]=h.useState(new Map),we=FS(se).map(e=>Se.get(e)),Te=h.useMemo(()=>we,[we.join(`_`)]),Ee=vfe(Te,se),De=d&&IS(d.y),Oe=d&&IS(le)||!!W.fixed,ke=Oe&&se.some(({fixed:e})=>e),Ae=h.useRef(null),{isSticky:je,offsetHeader:Me,offsetSummary:Ne,offsetScroll:Pe,stickyClassName:Fe,container:Ie}=_fe(N,r),Le=h.useMemo(()=>v?.(F),[v,F]),Re=(De||je)&&h.isValidElement(Le)&&Le.type===WS&&Le.props.fixed,ze,Be,Ve;De&&(Be={overflowY:I?`scroll`:`auto`,maxHeight:d.y}),Oe&&(ze={overflowX:`auto`},De||(Be={overflowY:`hidden`}),Ve={width:le===!0?`auto`:le,minWidth:`100%`});let He=h.useCallback((e,t)=>{Ce(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ue,We]=hfe(null);function Ge(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ke,qe]=h.useState([0,0]),Je=pe(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||xfe;(!We()||We()===r)&&(Ue(r),Ge(n,fe.current),Ge(n,me.current),Ge(n,_e.current),Ge(n,Ae.current?.setScrollLeft));let i=e||fe.current;if(i){let e=L&&j&&typeof le==`number`?le:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(qe(n=>{let i=[r,e-t];return Bt(n,i)?n:i}),e===t){ye(!1),xe(!1);return}ye(r>0),xe(r{Je(e),D?.(e)}),Xe=()=>{Oe&&me.current?Je({currentTarget:rt(me.current),scrollLeft:me.current?.scrollLeft}):(ye(!1),xe(!1))},Ze=e=>{Ae.current?.checkScrollBarVisible();let t=e??de.current?.offsetWidth??0;L&&M&&de.current&&(t=M(de.current,t)||t),t!==ie&&(Xe(),ae(t))};ge(()=>{Oe&&Ze()},[Oe]);let Qe=h.useRef(!1);h.useEffect(()=>{Qe.current&&Xe()},[Oe,l,oe.length]),h.useEffect(()=>{Qe.current=!0},[]);let[$e,et]=h.useState(0);ge(()=>{(!j||!L)&&(me.current instanceof Element?et(At(me.current).width):et(At(he.current).width))},[]),h.useEffect(()=>{L&&A&&(A.body.current=me.current)});let tt=h.useCallback(e=>h.createElement(h.Fragment,null,h.createElement(aC,e),Re===`top`&&h.createElement(GS,e,Le)),[Re,Le]),nt=h.useCallback(e=>h.createElement(GS,e,Le),[Le]),it=R([`table`],`table`),at=h.useMemo(()=>f||(ke?le===`max-content`?`auto`:`fixed`:De||je||se.some(({ellipsis:e})=>e)?`fixed`:`auto`),[De,ke,se,f,je]),ot,st={colWidths:Te,columCount:se.length,stickyOffsets:Ee,onHeaderRow:T,fixHeader:De,scroll:d},ct=h.useMemo(()=>I?null:typeof C==`function`?C():C,[I,C]),lt=h.createElement(ife,{data:F,measureColumnWidth:De||Oe||je}),ut=h.createElement(nC,{colWidths:se.map(({width:e})=>e),columns:se}),dt=y==null?void 0:h.createElement(`caption`,{className:`${r}-caption`},y),ft=Yt(n,{data:!0}),pt=Yt(n,{aria:!0});if(De||je){let e;typeof B==`function`?(e=B(F,{scrollbarSize:$e,ref:me,onScroll:Je}),st.colWidths=se.map(({width:e},t)=>{let n=t===se.length-1?e-$e:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=h.createElement(`div`,{style:{...ze,...Be},onScroll:Ye,ref:me,className:`${r}-body`},h.createElement(it,_C({style:{...Ve,tableLayout:at}},pt),dt,ut,lt,!Re&&Le&&h.createElement(GS,{stickyOffsets:Ee,flattenColumns:se},Le)));let t={noData:!F.length,maxContentScroll:Oe&&le===`max-content`,...st,...ue,direction:p,stickyClassName:Fe,scrollX:le,tableLayout:at,onScroll:Je};ot=h.createElement(h.Fragment,null,x!==!1&&h.createElement(rC,_C({},t,{stickyTopOffset:Me,className:`${r}-header`,ref:fe,colGroup:ut}),tt),e,Re&&Re!==`top`&&h.createElement(rC,_C({},t,{stickyBottomOffset:Ne,className:`${r}-summary`,ref:_e,colGroup:ut}),nt),je&&me.current&&me.current instanceof Element&&h.createElement(yfe,{ref:Ae,offsetScroll:Pe,scrollBodyRef:me,onScroll:Je,container:Ie,direction:p}))}else ot=h.createElement(`div`,{style:{...ze,...Be,...c?.content},className:m(`${r}-content`,s?.content),onScroll:Je,ref:me},h.createElement(it,_C({style:{...Ve,tableLayout:at}},pt),dt,ut,x!==!1&&h.createElement(aC,_C({},st,ue)),lt,Le&&h.createElement(GS,{stickyOffsets:Ee,flattenColumns:se},Le)));let mt={...o};je&&(mt[`--columns-count`]=se.length);let ht=h.createElement(`div`,_C({className:m(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Oe,[`${r}-fix-end-shadow`]:Oe,[`${r}-fix-start-shadow-show`]:Oe&&ve,[`${r}-fix-end-shadow-show`]:Oe&&be,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:De,[`${r}-fixed-column`]:ke,[`${r}-scroll-horizontal`]:Oe,[`${r}-has-fix-start`]:se[0]?.fixed,[`${r}-has-fix-end`]:se[se.length-1]?.fixed===`end`}),style:mt,id:b,ref:de},ft),g&&h.createElement(dC,{className:m(`${r}-title`,s?.title),style:c?.title},g(F)),h.createElement(`div`,{ref:he,className:m(`${r}-container`,s?.section),style:c?.section},ot),_&&h.createElement(dC,{className:m(`${r}-footer`,s?.footer),style:c?.footer},_(F)));Oe&&(ht=h.createElement(Fl,{onResize:({offsetWidth:e})=>Ze(e)},ht));let gt=pfe(se,Ee),_t=h.useMemo(()=>({scrollX:le,scrollInfo:Ke,classNames:s,styles:c,prefixCls:r,getComponent:R,scrollbarSize:$e,direction:p,fixedInfoList:gt,isSticky:je,componentWidth:ie,fixHeader:De,fixColumn:ke,horizonScroll:Oe,tableLayout:at,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:K,expandableType:G,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:se.every(e=>e.fixed===`start`),emptyNode:ct,columns:oe,flattenColumns:se,onColumnResize:He,colWidths:Te,hoverStartRow:V,hoverEndRow:H,onHover:U,rowExpandable:W.rowExpandable,onRow:w,getRowKey:z,expandedKeys:ee,childrenColumnName:te,rowHoverable:P,measureRowRender:E}),[le,Ke,s,c,r,R,$e,p,gt,je,ie,De,ke,Oe,at,a,W.expandedRowClassName,K,G,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,ne,W.expandIconColumnIndex,W.indentSize,ct,oe,se,He,Te,V,H,U,W.rowExpandable,w,z,ee,te,P,E]);return h.createElement(PS.Provider,{value:_t},ht)}),yC=e=>Rde(Cfe,e),bC=yC();bC.EXPAND_COLUMN=OS,bC.INTERNAL_HOOKS=kS,bC.Column=Zde,bC.ColumnGroup=Qde,bC.Summary=KS;var xC=AS(null),SC=AS(null);function CC(){return CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:g,className:_,width:v}=n,{columnsOffset:y}=jS(SC,[`columnsOffset`]),{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}=$S(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=C,D=wfe(r-1,T,y),O=T>1?v-D:0,k={...w,...l,flex:`0 0 ${D}px`,width:`${D}px`,marginRight:O,pointerEvents:`auto`},A=h.useMemo(()=>d?E<=1:T===0||E===0||E>1,[E,T,d]);A?k.visibility=`hidden`:d&&(k.height=f?.(E));let j=A?()=>null:p,M={};return(E===0||T===0)&&(M.rowSpan=1,M.colSpan=1),h.createElement(RS,CC({className:m(_,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:b,record:c,index:a,renderIndex:s,dataIndex:g,render:j,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:S,additionalProps:{...C,style:k,...M}}))};function wC(){return wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:g,prefixCls:_,fixColumn:v,componentWidth:y,classNames:b,styles:x}=jS(PS,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=jS(xC,[`getComponent`]),C=YS(u,a,r,d),w=S([`body`,`row`],`div`),T=S([`body`,`cell`],`div`),{rowSupportExpand:E,expanded:D,rowProps:O,expandedRowRender:k,expandedRowClassName:A}=C,j=ZS(A,u,r,d),M;if(E&&D){let e=k(u,r,d+1,D),t={};v&&(t={style:{"--virtual-width":`${y}px`}});let n=`${_}-expanded-row-cell`;M=h.createElement(w,{className:m(`${_}-expanded-row`,`${_}-expanded-row-level-${d+1}`,j)},h.createElement(RS,{component:T,prefixCls:_,className:m(n,{[`${n}-fixed`]:v}),additionalProps:t},e))}let N={...o,width:p};s&&(N.position=`absolute`,N.pointerEvents=`none`);let P=h.createElement(w,wC({},O,l,{"data-row-key":a,ref:E?null:t,className:m(i,`${_}-row`,O?.className,b?.body?.row,{[j]:d>=1,[`${_}-row-extra`]:s}),style:{...N,...O?.style,...x?.body?.row}}),g.map((e,t)=>h.createElement(Tfe,{key:t,className:b?.body?.cell,style:x?.body?.cell,component:T,rowInfo:C,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return E?h.createElement(`div`,{ref:t},P,M):P})),Efe={start:`top`,end:`bottom`,nearest:`auto`},Dfe=NS(h.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=jS(PS,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:g,onScroll:_}=jS(xC),v=h.useRef(null),y=JS(n,l,s,o),b=h.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),x=h.useMemo(()=>b.map(e=>e[2]),[b]);h.useEffect(()=>{b.forEach(([e,t])=>{a(e,t)})},[b]),h.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=Efe[t]??(n?`top`:`auto`);v.current?.scrollTo({...r,offset:n,align:i})},nativeElement:v.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>v.current?.getScrollInfo().x||0,set:e=>{v.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>v.current?.getScrollInfo().y||0,set:e=>{v.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=y[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;eS(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)y[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=y[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=y[i];if(!a||!a.record){let e=Math.min(i,y.length-1),t=y[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return h.createElement(TC,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=h.useMemo(()=>({columnsOffset:x}),[x]),T=`${c}-tbody`,E=g([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),h.createElement(SC.Provider,{value:w},h.createElement(Qx,{fullHeight:!1,ref:v,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:y,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:v.current?.nativeElement,scrollLeft:e})},onScroll:_,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return h.createElement(TC,{data:e,rowKey:r,index:t,style:n.style})}))}));function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ref:n,onScroll:r}=t;return h.createElement(Dfe,{ref:n,data:e,onScroll:r})},kfe=h.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=vC,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=pe((e,t)=>on(l,e)||t),g=pe(u),_=h.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:g}),[a,f,c,p,g]);return h.createElement(xC.Provider,{value:_},h.createElement(bC,EC({},e,{className:m(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Ofe:void 0},columns:r,internalHooks:kS,tailor:!0,ref:t})))}),DC=e=>Rde(kfe,e);DC();var Afe=e=>null,jfe=e=>null,OC=h.createContext(null),Mfe=h.createContext({}),Nfe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return h.createElement(`div`,{style:i})},Pfe=h.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e{if(!Ffe(e))return Rt(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function PC(e,t,n){let{_title:r,key:i,children:a}=MC(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=AC(n?n.pos:`0`,u),f=jC(l[i],d),p;for(let e=0;ee[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>jC(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?AC(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function FC(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Ife(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=jC(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function IC(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function LC(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=kC(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function RC(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return Rt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function zC(){return zC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:g,domRef:_,active:v,data:y,onMouseMove:b,selectable:x,treeId:S,...C}=e,w=Se(S,t),T=h.useContext(OC),{classNames:E,styles:D}=T||{},O=h.useContext(Mfe),k=h.useRef(null),[A,j]=h.useState(!1),M=!!(T.disabled||e.disabled||O.nodeDisabled?.(y)),N=h.useMemo(()=>!T.checkable||e.checkable===!1?!1:T.checkable,[T.checkable,e.checkable]),P=t=>{M||T.onNodeSelect(t,RC(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,RC(e),!f)},I=h.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,RC(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,RC(e))},z=t=>{T.onNodeMouseEnter(t,RC(e))},B=t=>{T.onNodeMouseLeave(t,RC(e))},V=t=>{T.onNodeContextMenu(t,RC(e))},H=h.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(y))),[T.draggable,y]),U=t=>{t.stopPropagation(),j(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},W=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)},G=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)},ee=t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)},K=t=>{t.stopPropagation(),j(!1),T.onNodeDragEnd(t,e)},te=t=>{t.preventDefault(),t.stopPropagation(),j(!1),T.onNodeDrop(t,e)},ne=t=>{g||T.onNodeExpand(t,RC(e))},re=h.useMemo(()=>{let{children:e}=kC(T.keyEntities,t)||{};return!!(e||[]).length},[T.keyEntities,t]),ie=h.useMemo(()=>IC(s,T.loadData,re,e.loaded),[s,T.loadData,re,e.loaded]);h.useEffect(()=>{g||typeof T.loadData==`function`&&u&&!ie&&!e.loaded&&T.onNodeLoad(RC(e))},[g,T.loadData,T.onNodeLoad,u,ie,e]);let ae=h.useMemo(()=>T.draggable?.icon?h.createElement(`span`,{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),oe=t=>{let n=e.switcherIcon||T.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},se=()=>{if(ie){let e=oe(!0);return e===!1?null:h.createElement(`span`,{className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,E?.itemSwitcher),style:D?.itemSwitcher},e)}let e=oe(!1);return e===!1?null:h.createElement(`span`,{onClick:ne,className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${u?BC:VC}`,E?.itemSwitcher),style:D?.itemSwitcher},e)},ce=h.useMemo(()=>{if(!N)return null;let t=typeof N==`boolean`?null:N;return h.createElement(`span`,{className:m(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:f,[`${T.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${T.prefixCls}-checkbox-disabled`]:M||e.disableCheckbox}),onClick:F,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":M||e.disableCheckbox,"aria-labelledby":w},t)},[N,f,p,M,e.disableCheckbox,w]),le=h.useMemo(()=>ie?null:u?BC:VC,[ie,u]),ue=h.useMemo(()=>h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${le||`docu`}`,{[`${T.prefixCls}-icon_loading`]:g}),style:D?.itemIcon}),[T.prefixCls,le,g]),de=h.useMemo(()=>{let n=!!T.draggable;return!e.disabled&&n&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),fe=h.useMemo(()=>{let{title:t=Lfe}=e,n=`${T.prefixCls}-node-content-wrapper`,r;if(T.showIcon){let t=e.icon||T.icon;r=t?h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:D?.itemIcon},typeof t==`function`?t(e):t):ue}else T.loadData&&g&&(r=ue);let i;return i=typeof t==`function`?t(y):T.titleRender?T.titleRender(y):t,h.createElement(`span`,{ref:k,title:typeof t==`string`?t:``,className:m(n,`${n}-${le||`normal`}`,{[`${T.prefixCls}-node-selected`]:!M&&(d||A)}),onMouseEnter:z,onMouseLeave:B,onContextMenu:V,onClick:L,onDoubleClick:R},r,h.createElement(`span`,{className:m(`${T.prefixCls}-title`,E?.itemTitle),style:D?.itemTitle},i),de)},[T.prefixCls,T.showIcon,e,T.icon,ue,T.titleRender,y,le,z,B,V,L,R]),pe=Yt(C,{aria:!0,data:!0}),{level:me}=kC(T.keyEntities,t)||{},he=l[l.length-1],ge=!M&&H,_e=T.draggingNodeKey===t;return h.createElement(`div`,zC({ref:_,role:`treeitem`,id:w,"aria-expanded":ie?void 0:u,"aria-selected":I&&!M?d:void 0,"aria-checked":N&&!M?p?`mixed`:f:void 0,"aria-disabled":M,className:m(n,`${T.prefixCls}-treenode`,E?.item,{[`${T.prefixCls}-treenode-disabled`]:M,[`${T.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${T.prefixCls}-treenode-checkbox-checked`]:f,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${T.prefixCls}-treenode-selected`]:d,[`${T.prefixCls}-treenode-loading`]:g,[`${T.prefixCls}-treenode-active`]:v,[`${T.prefixCls}-treenode-leaf-last`]:he,[`${T.prefixCls}-treenode-draggable`]:H,dragging:_e,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!M&&i,"drag-over-gap-top":!M&&a,"drag-over-gap-bottom":!M&&o,"filter-node":T.filterTreeNode?.(RC(e)),[`${T.prefixCls}-treenode-leaf`]:ie}),style:{...r,...D?.item},draggable:ge,onDragStart:ge?U:void 0,onDragEnter:H?W:void 0,onDragOver:H?G:void 0,onDragLeave:H?ee:void 0,onDrop:H?te:void 0,onDragEnd:H?K:void 0,onMouseMove:b},pe),h.createElement(Pfe,{prefixCls:T.prefixCls,level:me,isStart:c,isEnd:l}),ae,se(),ce,fe)};HC.isTreeNode=1;function Rfe(e,t){let[n,r]=h.useState(!1);ge(()=>{if(n)return e(),()=>{t()}},[n]),ge(()=>(r(!0),()=>{r(!1)}),[])}function UC(){return UC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=h.useState(!0),{prefixCls:g}=h.useContext(OC),_=a&&o!==`hide`;ge(()=>{a&&_!==f&&p(_)},[a]);let v=()=>{a&&s()},y=h.useRef(!1),b=()=>{a&&!y.current&&(y.current=!0,c())};return Rfe(v,b),a?h.createElement(ur,UC({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{_===e&&b()}}),({className:e,style:t},n)=>h.createElement(`div`,{ref:n,className:m(`${g}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=LC(r,u);return h.createElement(HC,UC({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):h.createElement(HC,UC({domRef:t,className:n,style:r},d,{active:l}))});function Bfe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:g,dropPosition:_,motion:v,height:y,itemHeight:b,virtual:x,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onActiveChange:A,onListChangeStart:j,onListChangeEnd:M,...N}=e,P=we(),F=h.useRef(null),I=h.useRef(null);h.useImperativeHandle(t,()=>({scrollTo:e=>{F.current.scrollTo(e)},getIndentWidth:()=>I.current.offsetWidth}));let[L,R]=h.useState(o),[z,B]=h.useState(r),[V,H]=h.useState(r),[U,W]=h.useState([]),[G,ee]=h.useState(null),K=h.useRef(r);K.current=r;function te(){let e=K.current;B(e),H(e),W([]),ee(null),M()}ge(()=>{R(o);let e=Bfe(L,o);if(e.key!==null)if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=XC(WC(z,r,e.key),x,y,b),i=z.slice();i.splice(t+1,0,YC),H(i),W(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=XC(WC(r,z,e.key),x,y,b),i=r.slice();i.splice(t+1,0,YC),H(i),W(n),ee(`hide`)}else z!==r&&(B(r),H(r))},[o,r]),h.useEffect(()=>{m||te()},[m]);let ne=v?V:r,re={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:_,keyEntities:f};return h.createElement(h.Fragment,null,h.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},h.createElement(`div`,{className:`${n}-indent`},h.createElement(`div`,{ref:I,className:`${n}-indent-unit`}))),h.createElement(Qx,GC({},N,{data:ne,itemKey:ZC,height:y,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:S,prefixCls:`${n}-list`,ref:F,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?Se(P,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onVisibleChange:e=>{e.every(e=>ZC(e)!==KC)&&te()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=jC(i,t);delete n.key,delete n.children;let c=LC(s,re);return h.createElement(zfe,GC({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:v,motionNodes:i===KC?U:null,motionType:G,onMotionStart:j,onMotionEnd:te,treeNodeRequiredProps:re,treeId:P,onMouseMove:()=>{A(null)}}))}))});function QC(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function $C(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function ew(e){return e.split(`-`)}function Hfe(e,t){let n=[],r=kC(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Ufe(e){if(e.parent){let t=ew(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Wfe(e){let t=ew(e.pos);return Number(t[t.length-1])===0}function tw(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=kC(s,n.eventKey);if(de.key===g.key),t=o[e<=0?0:e-1].key;g=kC(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function nw(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function rw(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Rt(!1,"`checkedKeys` is not an array or an object"),null;return t}function iw(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=kC(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function aw(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Gfe(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Kfe(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(aw(a,i))}}function qfe(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(aw(o,a))}}function ow(e,t,n,r){let i=[],a;a=r||Gfe;let o=new Set(e.filter(e=>{let t=!!kC(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),Rt(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Kfe(o,s,c,a):qfe(o,t.halfCheckedKeys,s,c,a),l}function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0,expandAction:!1};static TreeNode=HC;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:MC()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=h.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=MC(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Rt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=NC(e.children)),a){r.treeData=a;let e=FC(a,{fieldNames:o});r.keyEntities={[KC]:JC,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?iw(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[KC];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?iw(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=PC(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=nw(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=nw(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=rw(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=rw(e.defaultCheckedKeys)||{}:a&&(o=rw(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=ow(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=QC(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Hfe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:RC(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=tw(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=kC(r,t.eventKey);a&&(a.children||[]).length&&(i=$C(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:RC(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:RC(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=tw(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:RC(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:RC(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:RC(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...LC(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:kC(this.state.keyEntities,a).node};Rt(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=ew(o),d={event:e,node:RC(l),dragNode:this.dragNodeProps?RC(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=RC({...LC(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?QC(n,a):$C(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?$C(n,c):[c]:QC(n,c);let u=n.map(e=>{let t=kC(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?$C(i,c):QC(i,c);l={checked:e,halfChecked:QC(a,c)},u.checkedNodes=e.map(e=>kC(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=ow([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=ow(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=kC(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(kC(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=$C(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:QC(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:QC(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=Jfe){let{loadedKeys:e}=this.state;Rt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:$C(e,t)}),n()}r(e)}),{loadingKeys:$C(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=PC(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(Rt(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?$C(n,c):QC(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=PC(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=QC(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=RC({...LC(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!kC(a,t)?.children?.length,l=!IC(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:g,focusable:_,tabIndex:v=0,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:C,checkable:w,checkStrictly:T,disabled:E,motion:D,loadData:O,filterTreeNode:k,height:A,itemHeight:j,scrollWidth:M,virtual:N,titleRender:P,dropIndicatorRender:F,onContextMenu:I,onScroll:L,direction:R,rootClassName:z,rootStyle:B}=this.props,V=Yt(this.props,{aria:!0,data:!0}),H;C&&(H=typeof C==`object`?C:typeof C==`function`?{nodeDraggable:C}:{});let U={styles:f,classNames:p,prefixCls:l,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:H,draggingNodeKey:n,checkable:w,checkStrictly:T,disabled:E,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:R,dropIndicatorRender:F,loadData:O,filterTreeNode:k,titleRender:P,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(OC.Provider,{value:U},h.createElement(`div`,{className:m(l,u,z,{[`${l}-show-line`]:g}),style:B},h.createElement(Vfe,sw({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:E,selectable:y,checkable:!!w,motion:D,dragging:n!==null,height:A,itemHeight:j,virtual:N,focusable:_,tabIndex:v,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:I,onScroll:L,scrollWidth:M},this.getTreeNodeRequiredProps(),V))))}},cw=h.createContext(null),Xfe=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...io(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...io(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...io(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...yf(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${q(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}`,...yf()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:co(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[` ${i}:not(${i}-disabled), ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...yf()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function dw(e,t){return Jfe(Go(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var Yfe=Sc(`Checkbox`,(e,{prefixCls:t})=>[dw(t,e)]),Xfe=h.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:g,value:_,checked:v,defaultChecked:y,onChange:b,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:E,styles:D}=Ur(`checkbox`),O=h.useContext(uw),{isFormItemInput:k}=h.useContext(_m),A=h.useContext(Cu),j=(O?.disabled||c)??A,[M,N]=ye(y,v),P=M,F=pe(e=>{N(e.target.checked),b?.(e),!s&&O?.toggleOption&&O.toggleOption({label:r,value:_})});O&&!s&&(P=O.value.includes(_));let I=h.useRef(null),L=Le(t,I);h.useEffect(()=>{if(!(s||!O))return O.registerValue(_),()=>{O.cancelValue(_)}},[_,s]),h.useEffect(()=>{I.current?.input&&(I.current.input.indeterminate=i)},[i]);let R=S(`checkbox`,n),z=og(R),[B,V]=Yfe(R,z),H={...x},U={...e,indeterminate:i,disabled:j,checked:P},W=jr(T),G=jr(d),[ee,K]=Nr([E,f],[D,W,p,G],{props:U}),te=m(`${R}-wrapper`,{[`${R}-rtl`]:C===`rtl`,[`${R}-wrapper-checked`]:P,[`${R}-wrapper-disabled`]:j,[`${R}-wrapper-in-form-item`]:k},w,u,ee.root,l,V,z,B),ne=m(ee.icon,{[`${R}-indeterminate`]:i},Gu,B),[re,ie]=vle(H.onClick);return h.createElement($u,{component:`Checkbox`,disabled:j},h.createElement(`label`,{className:te,style:K.root,onMouseEnter:a,onMouseLeave:o,onClick:re},h.createElement(_le,{...H,name:!s&&O?O.name:g,checked:P,onClick:ie,onChange:F,prefixCls:R,className:ne,style:K.icon,disabled:j,ref:L,value:_}),vr(r)&&h.createElement(`span`,{className:m(`${R}-label`,ee.label),style:K.label},r)))}),Zfe=h.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=h.useContext(Br),[g,_]=h.useState(d.value||n||[]),[v,y]=h.useState([]);h.useEffect(()=>{`value`in d&&_(d.value||[])},[d.value]);let b=h.useMemo(()=>i.map(e=>typeof e==`string`||yr(e)?{label:e,value:e}:e),[i]),x=e=>{y(t=>t.filter(t=>t!==e))},S=e=>{y(t=>[].concat(gr(t),[e]))},C=e=>{let t=g.indexOf(e.value),n=gr(g);t===-1?n.push(e.value):n.splice(t,1),`value`in d||_(n),l?.(n.filter(e=>v.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},w=f(`checkbox`,a),T=`${w}-group`,E=og(w),[D,O]=Yfe(w,E),k=Wt(d,[`value`,`disabled`]),A=i.length?b.map(e=>h.createElement(Xfe,{prefixCls:w,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:m(`${T}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=h.useMemo(()=>({toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:x}),[C,g,d.disabled,d.name,S,x]),M=m(T,{[`${T}-rtl`]:p===`rtl`},o,s,O,E,D);return h.createElement(`div`,{className:M,style:c,role:u,...k,ref:t},h.createElement(uw.Provider,{value:j},A))}),fw=Xfe;fw.Group=Zfe,fw.__ANT_CHECKBOX=!0;var Qfe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,pw({},e,{ref:t,icon:Qfe.default}))),$fe=h.createContext({});(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})();var hw=(0,h.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),epe=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=h.useContext(Br),o=m({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return h.createElement(Uh,{className:o,...i})},tpe=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:g}=h.useContext(hw),_=e=>{let t=n?.[0],i=h.createElement(`span`,{className:m(`${s}-title-content`,c?g?.itemContent:g?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||h.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?h.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:v}=h.useContext($fe),y=i;i===void 0?y=c?n:``:i===!1&&(y=``);let b=d===!1?void 0:d,x=b&&b.title!==void 0?b.title:y,S={...b??null,title:x};!v&&!f&&(S.title=null,S.open=!1);let C=rn(n).length,w=h.createElement(Ph,{...Wt(e,[`title`,`icon`,`danger`]),className:m(c?g?.item:g?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?C+1:C)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},vu(r,e=>({className:m(`${s}-item-icon`,c?g?.itemIcon:g?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),_(f));if(!u&&d!==!1){let e=b&&b.placement?b.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:m(t,e?.root)}),r=Sr(b?.classNames)?e=>n(b.classNames(e)):n(b?.classNames);w=h.createElement(Ey,{...S,placement:e,classNames:r},w)}return w},gw=h.createContext(null),npe=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.useContext(gw),a=h.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=Be(n),s=Le(t,o?Ve(n):null);return h.createElement(gw.Provider,{value:a},h.createElement(X_,{space:!0},o?h.cloneElement(n,{ref:s}):n))}),rpe=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${q(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover, + `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...yf()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function lw(e,t){return Xfe(Go(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var uw=Sc(`Checkbox`,(e,{prefixCls:t})=>[lw(t,e)]),Zfe=h.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:g,value:_,checked:v,defaultChecked:y,onChange:b,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:E,styles:D}=Ur(`checkbox`),O=h.useContext(cw),{isFormItemInput:k}=h.useContext(_m),A=h.useContext(Cu),j=(O?.disabled||c)??A,[M,N]=ye(y,v),P=M,F=pe(e=>{N(e.target.checked),b?.(e),!s&&O?.toggleOption&&O.toggleOption({label:r,value:_})});O&&!s&&(P=O.value.includes(_));let I=h.useRef(null),L=Le(t,I);h.useEffect(()=>{if(!(s||!O))return O.registerValue(_),()=>{O.cancelValue(_)}},[_,s]),h.useEffect(()=>{I.current?.input&&(I.current.input.indeterminate=i)},[i]);let R=S(`checkbox`,n),z=og(R),[B,V]=uw(R,z),H={...x},U={...e,indeterminate:i,disabled:j,checked:P},W=jr(T),G=jr(d),[ee,K]=Nr([E,f],[D,W,p,G],{props:U}),te=m(`${R}-wrapper`,{[`${R}-rtl`]:C===`rtl`,[`${R}-wrapper-checked`]:P,[`${R}-wrapper-disabled`]:j,[`${R}-wrapper-in-form-item`]:k},w,u,ee.root,l,V,z,B),ne=m(ee.icon,{[`${R}-indeterminate`]:i},Gu,B),[re,ie]=yle(H.onClick);return h.createElement($u,{component:`Checkbox`,disabled:j},h.createElement(`label`,{className:te,style:K.root,onMouseEnter:a,onMouseLeave:o,onClick:re},h.createElement(vle,{...H,name:!s&&O?O.name:g,checked:P,onClick:ie,onChange:F,prefixCls:R,className:ne,style:K.icon,disabled:j,ref:L,value:_}),vr(r)&&h.createElement(`span`,{className:m(`${R}-label`,ee.label),style:K.label},r)))}),Qfe=h.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=h.useContext(Br),[g,_]=h.useState(d.value||n||[]),[v,y]=h.useState([]);h.useEffect(()=>{`value`in d&&_(d.value||[])},[d.value]);let b=h.useMemo(()=>i.map(e=>typeof e==`string`||yr(e)?{label:e,value:e}:e),[i]),x=e=>{y(t=>t.filter(t=>t!==e))},S=e=>{y(t=>[].concat(gr(t),[e]))},C=e=>{let t=g.indexOf(e.value),n=gr(g);t===-1?n.push(e.value):n.splice(t,1),`value`in d||_(n),l?.(n.filter(e=>v.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},w=f(`checkbox`,a),T=`${w}-group`,E=og(w),[D,O]=uw(w,E),k=Wt(d,[`value`,`disabled`]),A=i.length?b.map(e=>h.createElement(Zfe,{prefixCls:w,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:m(`${T}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=h.useMemo(()=>({toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:x}),[C,g,d.disabled,d.name,S,x]),M=m(T,{[`${T}-rtl`]:p===`rtl`},o,s,O,E,D);return h.createElement(`div`,{className:M,style:c,role:u,...k,ref:t},h.createElement(cw.Provider,{value:j},A))}),dw=Zfe;dw.Group=Qfe,dw.__ANT_CHECKBOX=!0;var $fe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,fw({},e,{ref:t,icon:$fe.default}))),epe=h.createContext({});(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})();var mw=(0,h.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),tpe=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=h.useContext(Br),o=m({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return h.createElement(Uh,{className:o,...i})},npe=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:g}=h.useContext(mw),_=e=>{let t=n?.[0],i=h.createElement(`span`,{className:m(`${s}-title-content`,c?g?.itemContent:g?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||h.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?h.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:v}=h.useContext(epe),y=i;i===void 0?y=c?n:``:i===!1&&(y=``);let b=d===!1?void 0:d,x=b&&b.title!==void 0?b.title:y,S={...b??null,title:x};!v&&!f&&(S.title=null,S.open=!1);let C=rn(n).length,w=h.createElement(Ph,{...Wt(e,[`title`,`icon`,`danger`]),className:m(c?g?.item:g?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?C+1:C)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},vu(r,e=>({className:m(`${s}-item-icon`,c?g?.itemIcon:g?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),_(f));if(!u&&d!==!1){let e=b&&b.placement?b.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:m(t,e?.root)}),r=Sr(b?.classNames)?e=>n(b.classNames(e)):n(b?.classNames);w=h.createElement(Ty,{...S,placement:e,classNames:r},w)}return w},hw=h.createContext(null),rpe=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.useContext(hw),a=h.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=Be(n),s=Le(t,o?Ve(n):null);return h.createElement(hw.Provider,{value:a},h.createElement(Y_,{space:!0},o?h.cloneElement(n,{ref:s}):n))}),ipe=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${q(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${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(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},ipe=({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(${q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${q(t)})`}}}}),ape=e=>co(e),ope=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...ape(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...ape(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${q(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${q(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},spe=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},ape=({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(${q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${q(t)})`}}}}),ope=e=>co(e),spe=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...ope(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...ope(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${q(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${q(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},cpe=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:q(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},cpe=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,padding:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:_}=e,v={height:r,lineHeight:q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...spe(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...spe(e),boxShadow:h}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${q(e.calc(o).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 ${p}`,`background-color ${p}`,`padding ${f} ${s}`].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`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`,width:`100%`}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},lpe=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,padding:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:_}=e,v={height:r,lineHeight:q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...cpe(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...cpe(e),boxShadow:h}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${q(e.calc(o).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 ${p}`,`background-color ${p}`,`padding ${f} ${s}`].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`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`,width:`100%`}}},[`> ${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`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${q(e.calc(_).div(2).equal())} - ${q(u)})`,textOverflow:`clip`,[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:q(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...ro,paddingInline:m}}}]},lpe=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,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) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...ao()},[`&${t}-item-only-child`]:{[`> ${o}, > ${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`}}}},upe=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${q(o)})`}}}}},dpe=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...so(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...io(e),...so(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} 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:`${q(s)} ${q(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...ro},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${q(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...lpe(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${q(e.calc(r).mul(2).equal())} ${q(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,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:f,...lpe(e),...upe(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...upe(e),[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${q(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},fpe=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ps(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ps(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},ppe=(e,t=e,n=!0)=>Sc(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=Go(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=Go(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[dpe(x),rpe(x),cpe(x),ope(x,`light`),ope(S,`dark`),ipe(x),Jd(x),vf(x,`slide-up`),vf(x,`slide-down`),Of(x,`zoom-big`)]},fpe,{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),mpe=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=h.useContext(hw),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=uh(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?h.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):h.createElement(`span`,{className:`${o}-title-content`},r);else{let e=h.isValidElement(r)&&r.type===`span`;f=h.createElement(h.Fragment,null,vu(n,e=>({className:m(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:h.createElement(`span`,{className:`${o}-title-content`},r))}let p=h.useMemo(()=>({...a,firstLevel:!1}),[a]),[g]=Ed(`Menu`);return h.createElement(hw.Provider,{value:p},h.createElement(Hh,{...Wt(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:m(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:g,...e.popupStyle,...u?.popup?.root}}))};function _w(e){return e===null||e===!1}var hpe={item:tpe,submenu:mpe,divider:epe},gpe=(0,h.forwardRef)((e,t)=>{let n=h.useContext(gw),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:g,selectable:_,onClick:v,overflowedIndicatorPopupClassName:y,classNames:b,styles:x,...S}=e,{menu:C}=h.useContext(Br),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Ur(`menu`),j=w(),M=Wt(S,[`collapsedWidth`]);r.validator?.({mode:g});let N=pe((...e)=>{v?.(...e),r.onClick?.()}),P=r.mode||g,F=_??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},R=jr(O),z=jr(o),[B,V]=Nr([k,b],[A,R,x,z],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),H={horizontal:{motionName:`${j}-slide-up`},inline:Gf(j),other:{motionName:`${j}-zoom-big`}},U=w(`menu`,i||r.prefixCls),W=og(U),[G,ee]=ppe(U,W,!n),K=m(`${U}-${s}`,D,a),te=h.useMemo(()=>{if(Sr(c)||_w(c))return c||null;if(Sr(r.expandIcon)||_w(r.expandIcon))return r.expandIcon||null;if(Sr(C?.expandIcon)||_w(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return vu(e,{className:m(`${U}-submenu-expand-icon`,h.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,U]),ne=h.useMemo(()=>({prefixCls:U,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:B,styles:V}),[U,I,E,l,s,P,B,V,u]);return h.createElement(gw.Provider,{value:null},h.createElement(hw.Provider,{value:ne},h.createElement(Zh,{getPopupContainer:T,overflowedIndicator:h.createElement(jm,null),overflowedIndicatorPopupClassName:m(U,`${U}-${s}`,y),classNames:{list:B.list,listTitle:B.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:V.root,className:K,prefixCls:U,direction:E,defaultMotions:H,expandIcon:te,ref:t,rootClassName:m(p,G,r.rootClassName,ee,W,B.root),_internalComponents:hpe})))}),vw=(0,h.forwardRef)((e,t)=>{let n=(0,h.useRef)(null),r=h.useContext($fe);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),h.createElement(gpe,{ref:n,...e,...r})});vw.Item=tpe,vw.SubMenu=mpe,vw.Divider=epe,vw.ItemGroup=Gh;var _pe=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},vpe=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${q(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:q(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...ro,paddingInline:m}}}]},upe=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,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) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...ao()},[`&${t}-item-only-child`]:{[`> ${o}, > ${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`}}}},dpe=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${q(o)})`}}}}},fpe=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...so(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...io(e),...so(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} 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:`${q(s)} ${q(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...ro},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${q(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...upe(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${q(e.calc(r).mul(2).equal())} ${q(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,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:f,...upe(e),...dpe(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...dpe(e),[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${q(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ppe=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ps(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ps(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},mpe=(e,t=e,n=!0)=>Sc(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=Go(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=Go(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[fpe(x),ipe(x),lpe(x),spe(x,`light`),spe(S,`dark`),ape(x),Jd(x),vf(x,`slide-up`),vf(x,`slide-down`),Of(x,`zoom-big`)]},ppe,{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),hpe=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=h.useContext(mw),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=uh(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?h.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):h.createElement(`span`,{className:`${o}-title-content`},r);else{let e=h.isValidElement(r)&&r.type===`span`;f=h.createElement(h.Fragment,null,vu(n,e=>({className:m(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:h.createElement(`span`,{className:`${o}-title-content`},r))}let p=h.useMemo(()=>({...a,firstLevel:!1}),[a]),[g]=Ed(`Menu`);return h.createElement(mw.Provider,{value:p},h.createElement(Hh,{...Wt(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:m(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:g,...e.popupStyle,...u?.popup?.root}}))};function gw(e){return e===null||e===!1}var gpe={item:npe,submenu:hpe,divider:tpe},_pe=(0,h.forwardRef)((e,t)=>{let n=h.useContext(hw),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:g,selectable:_,onClick:v,overflowedIndicatorPopupClassName:y,classNames:b,styles:x,...S}=e,{menu:C}=h.useContext(Br),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Ur(`menu`),j=w(),M=Wt(S,[`collapsedWidth`]);r.validator?.({mode:g});let N=pe((...e)=>{v?.(...e),r.onClick?.()}),P=r.mode||g,F=_??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},R=jr(O),z=jr(o),[B,V]=Nr([k,b],[A,R,x,z],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),H={horizontal:{motionName:`${j}-slide-up`},inline:Gf(j),other:{motionName:`${j}-zoom-big`}},U=w(`menu`,i||r.prefixCls),W=og(U),[G,ee]=mpe(U,W,!n),K=m(`${U}-${s}`,D,a),te=h.useMemo(()=>{if(Sr(c)||gw(c))return c||null;if(Sr(r.expandIcon)||gw(r.expandIcon))return r.expandIcon||null;if(Sr(C?.expandIcon)||gw(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return vu(e,{className:m(`${U}-submenu-expand-icon`,h.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,U]),ne=h.useMemo(()=>({prefixCls:U,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:B,styles:V}),[U,I,E,l,s,P,B,V,u]);return h.createElement(hw.Provider,{value:null},h.createElement(mw.Provider,{value:ne},h.createElement(Zh,{getPopupContainer:T,overflowedIndicator:h.createElement(jm,null),overflowedIndicatorPopupClassName:m(U,`${U}-${s}`,y),classNames:{list:B.list,listTitle:B.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:V.root,className:K,prefixCls:U,direction:E,defaultMotions:H,expandIcon:te,ref:t,rootClassName:m(p,G,r.rootClassName,ee,W,B.root),_internalComponents:gpe})))}),_w=(0,h.forwardRef)((e,t)=>{let n=(0,h.useRef)(null),r=h.useContext(epe);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),h.createElement(_pe,{ref:n,...e,...r})});_w.Item=npe,_w.SubMenu=hpe,_w.Divider=tpe,_w.ItemGroup=Gh;var vpe=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},ype=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${q(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, @@ -283,7 +283,7 @@ html body { &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop, &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:mf},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left, &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop, - &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:gf}}},_y(e,h),{[`${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`]:{...io(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...lo(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${q(l)} ${q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > 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:`${q(l)} ${q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...lo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${q(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 ${q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[vf(e,`slide-up`),vf(e,`slide-down`),vf(e,`slide-left`),vf(e,`slide-right`),cf(e,`move-up`),cf(e,`move-down`),Of(e,`zoom-big`)]]},ype=Sc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Go(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[vpe(a),_pe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...gy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...wv(e)}),{resetStyle:!1}),yw=h.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:_,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:T,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Ur(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=Nr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Lr(`Dropdown`);let z=h.useMemo(()=>{let e=D();return S===void 0?x.startsWith(`top`)?`${e}-slide-down`:x.startsWith(`left`)?`${e}-slide-right`:x.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:S},[D,x,S]),B=h.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:O===`rtl`?`bottomRight`:`bottomLeft`,[x,O]),V=D(`dropdown`,i),H=og(V),[U,W]=ype(V,H),[,G]=xc(),ee=h.Children.only(wr(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=vu(ee,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:K}),ne=s?[]:o,re=!!ne?.includes(`contextMenu`),[ie,ae]=ye(!1,g),oe=pe(e=>{_?.(e,{source:`trigger`}),ae(e)}),se=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),ce=yy({arrowPointAtCenter:xr(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),le=pe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ae(!1))}),ue=()=>{let e=Wt(F,[`root`]),t=Wt(I,[`root`]),r;return n?.items&&(r=h.createElement(vw,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),r=h.Children.only(typeof r==`string`?h.createElement(`span`,null,r):r),h.createElement(npe,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(mw,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(zf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=Ed(`Dropdown`,L.zIndex),me=h.createElement(qm,{alignPoint:re,...Wt(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:ne,overlay:ue,placement:B,onVisibleChange:oe,overlayStyle:{...L,zIndex:de},autoDestroy:E??T},te);return de&&(me=h.createElement(bd.Provider,{value:fe},me)),me}),bpe=Tg(yw,`align`,void 0,`dropdown`,e=>e);yw._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(bpe,{...e},h.createElement(`span`,null));var xpe=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Br),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:_,trigger:v,align:y,open:b,onOpenChange:x,placement:S,getPopupContainer:C,href:w,icon:T=h.createElement(jm,null),title:E,buttonsRender:D=e=>e,mouseEnterDelay:O,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:M,destroyPopupOnHide:N,dropdownRender:P,popupRender:F,...I}=e,L=n(`dropdown`,i),R=`${L}-button`,z={menu:p,arrow:g,autoFocus:_,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:k,classNames:{root:A},styles:{root:j},destroyOnHidden:M,popupRender:F||P},{compactSize:B,compactItemClassnames:V}=Od(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(_p,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(_p,{type:a,danger:o,icon:T})]);return h.createElement(Fy.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(yw,{...z},W))};xpe.__ANT_BUTTON=!0;var bw=yw;bw.Button=xpe;var xw={},Spe=`SELECT_ALL`,Cpe=`SELECT_INVERT`,wpe=`SELECT_NONE`,Sw=[],Tpe=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),xr(t)&&e in t&&Tpe(e,t[e],n)}),n),Epe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:_,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:S,data:C,pageData:w,getRecordByKey:T,getRowKey:E,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=Lr(`Table`),[M,N]=pd(e=>e),[P,F]=ye(i||Sw,r),I=P??Sw,L=h.useRef(new Map),R=(0,h.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=T(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[T,n]);h.useEffect(()=>{R(I)},[I,R]);let z=(0,h.useMemo)(()=>Tpe(O,w),[O,w]),{keyEntities:B}=(0,h.useMemo)(()=>{if(x)return{keyEntities:null};let e=C;if(n){let t=new Set(z.map(E)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(gr(e),gr(n))}return LC(e,{externalGetKey:E,childrenPropName:O})},[C,E,x,O,n,z]),V=(0,h.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=E(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,E,a]),H=(0,h.useCallback)(e=>{let t=E(e),n;return n=V.has(t)?V.get(E(e)):a?a(e):void 0,!!n?.disabled},[V,E]),[U,W]=(0,h.useMemo)(()=>{if(x)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=cw(I,!0,B,H);return[e||[],t]},[I,x,B,H]),G=(0,h.useMemo)(()=>{let e=g===`radio`?U.slice(0,1):U;return new Set(e)},[U,g]),ee=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(Sw)},[!!t]);let K=(0,h.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=T(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,T,s,n]),te=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}K(n,`single`)},[c,T,K]),ne=(0,h.useMemo)(()=>!_||b?null:(_===!0?[Spe,Cpe,wpe]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){K(C.reduce((e,t,n)=>{let r=E(t,n);return(!V.get(r)?.disabled||G.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(G);w.forEach((t,n)=>{let r=E(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),K(Array.from(G).filter(e=>V.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),N(null)}}}),[_,b,k.selectionAll,k.selectInvert,k.selectNone,V,G,C,w,E,u,K]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==xw);let n=gr(e),r=new Set(G),i=z.reduce((e,t,n)=>{let r=E(t,n);return V.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(T),e.map(T)),K(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(ne){let t={getPopupContainer:A,items:ne.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=h.createElement(`div`,{className:`${S}-selection-extra`},h.createElement(bw,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(Mv,null))))}let t=z.reduce((e,t,n)=>{let i=E(t,n),a=V.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:g}=p;d=h.createElement(fw,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:g??(z.length===0||n),skipGroup:!0}),u=!b&&h.createElement(`div`,{className:`${S}-selection`},d,e)}let C;C=g===`radio`?(e,t,n)=>{let i=E(t,n),a=r.has(i),o=V.get(i),s=`Select row ${n+1}`;return{node:h.createElement(Ex,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||te(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=ee.has(a),c=V.get(a),l;l=D===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:h.createElement(fw,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=G.size>0&&i.some(e=>G.has(e));if(n&&x&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(T),e.map(T)),K(t,`multiple`)}else{let e=U;if(x){let n=o?ew(e,a):tw(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=cw([].concat(gr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=cw(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}te(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let w=(e,t,n)=>{let{node:r,checked:i}=C(e,t,n);return y?y(i,t,n,r):r};if(!n.includes(xw))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,xw].concat(gr(t))}else n=[xw].concat(gr(n));let O=n.indexOf(xw);n=n.filter((e,t)=>e!==xw||t===O);let k=n[O-1],j=n[O+1],P=v;P===void 0&&(j?.fixed===void 0?k?.fixed!==void 0&&(P=k.fixed):P=j.fixed),P&&k&&k.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=P);let F=m(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:_&&g===`checkbox`}),I={fixed:P,width:p,className:`${S}-selection-column`,title:t?.columnTitle?Sr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[nC]:{className:F}};return n.map(e=>e===xw?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function Dpe(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var Cw=e=>_r(e)&&e===e.window,Ope=e=>{if(typeof window>`u`)return 0;let t=0;return Cw(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Cw(e)&&!yr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function kpe(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Ope(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=Dpe(t>i?i:t,o,e,i);Cw(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{nn.cancel(c)}}var Ape=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function ww(){return ww=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ww({},e,{ref:t,icon:Ape.default}))),jpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Ew({},e,{ref:t,icon:jpe.default}))),Mpe={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},Npe=[10,20,50,100],Ppe=e=>{let{pageSizeOptions:t=Npe,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=h.useState(``),m=h.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Et.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?h.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):h.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=h.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,h.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),h.createElement(`li`,{className:x},S,C)},Ow=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=m(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},g=l(n,`page`,h.createElement(`a`,{rel:`nofollow`},n));return g?h.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},g):null};function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function Aw(){}function jw(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Mw(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var Ipe=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=Aw,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=Aw,locale:x=Mpe,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=Fpe,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ye(u,l),[R,z]=ye(s,o),B=Math.max(1,Math.min(R,Mw(void 0,I,c))),[V,H]=h.useState(B);(0,h.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(v?3:5)),W=Math.min(Mw(void 0,I,c),B+(v?3:5));function G(n,r){let i=n||h.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=h.createElement(n,e)),i}function ee(e){let t=e.target.value,n=Mw(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return jw(e)&&e!==B&&jw(c)&&c>0}let te=c>I?_:!1;function ne(e){(e.keyCode===Et.UP||e.keyCode===Et.DOWN)&&e.preventDefault()}function re(e){let t=ee(e);switch(t!==V&&H(t),e.keyCode){case Et.ENTER:oe(t);break;case Et.UP:oe(t-1);break;case Et.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=Mw(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function oe(e){if(K(e)&&!w){let t=Mw(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=Bc?c:B*I])),Te=null,Ee=Mw(void 0,I,c);if(f&&c<=I)return null;let De=[],Oe={rootPrefixCls:t,onClick:oe,onKeyPress:pe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},ke=B-1>0?B-1:0,Ae=B+1=Fe*2&&B!==3,c=!!Te&&Ee-B>=Fe*2&&B!==Ee-2;!v&&s&&o!==Ee&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)De.push(h.createElement(Ow,kw({},Oe,{key:e,page:e,active:B===e})));if(s&&(De[0]=h.cloneElement(De[0],{className:m(`${t}-item-after-jump-prev`,De[0].props.className)}),De.unshift(Se)),c){let e=De[De.length-1];De[De.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),De.push(Te)}a!==1&&De.unshift(h.createElement(Ow,kw({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement(Ow,kw({},Oe,{key:Ee,page:Ee})))}let Ie=ve(ke);if(Ie){let e=!se||!Ee;Ie=h.createElement(`li`,{title:y?x.prev_page:null,onClick:le,tabIndex:e?null:0,onKeyDown:me,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=be(Ae);if(Le){let e,n;T?(e=!ce,n=se?0:null):(e=!ce||!Ee,n=e?null:0),Le=h.createElement(`li`,{title:y?x.next_page:null,onClick:ue,tabIndex:n,onKeyDown:he,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=m(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return h.createElement(`ul`,kw({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(Ppe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},Lpe=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Rpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...bv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},zpe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...yv(e)}}}}},Bpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${q(e.inputOutlineOffset)} 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Vpe=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...nv(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},Hpe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=Tc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:gf}}},gy(e,h),{[`${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`]:{...io(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...lo(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${q(l)} ${q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > 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:`${q(l)} ${q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...lo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${q(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 ${q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[vf(e,`slide-up`),vf(e,`slide-down`),vf(e,`slide-left`),vf(e,`slide-right`),cf(e,`move-up`),cf(e,`move-down`),Of(e,`zoom-big`)]]},bpe=Sc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Go(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[ype(a),vpe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...hy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Cv(e)}),{resetStyle:!1}),vw=h.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:_,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:T,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Ur(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=Nr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Lr(`Dropdown`);let z=h.useMemo(()=>{let e=D();return S===void 0?x.startsWith(`top`)?`${e}-slide-down`:x.startsWith(`left`)?`${e}-slide-right`:x.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:S},[D,x,S]),B=h.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:O===`rtl`?`bottomRight`:`bottomLeft`,[x,O]),V=D(`dropdown`,i),H=og(V),[U,W]=bpe(V,H),[,G]=xc(),ee=h.Children.only(wr(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=vu(ee,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:K}),ne=s?[]:o,re=!!ne?.includes(`contextMenu`),[ie,ae]=ye(!1,g),oe=pe(e=>{_?.(e,{source:`trigger`}),ae(e)}),se=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),ce=vy({arrowPointAtCenter:xr(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),le=pe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ae(!1))}),ue=()=>{let e=Wt(F,[`root`]),t=Wt(I,[`root`]),r;return n?.items&&(r=h.createElement(_w,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),r=h.Children.only(typeof r==`string`?h.createElement(`span`,null,r):r),h.createElement(rpe,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(pw,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(zf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=Ed(`Dropdown`,L.zIndex),me=h.createElement(qm,{alignPoint:re,...Wt(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:ne,overlay:ue,placement:B,onVisibleChange:oe,overlayStyle:{...L,zIndex:de},autoDestroy:E??T},te);return de&&(me=h.createElement(bd.Provider,{value:fe},me)),me}),xpe=Tg(vw,`align`,void 0,`dropdown`,e=>e);vw._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(xpe,{...e},h.createElement(`span`,null));var Spe=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Br),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:_,trigger:v,align:y,open:b,onOpenChange:x,placement:S,getPopupContainer:C,href:w,icon:T=h.createElement(jm,null),title:E,buttonsRender:D=e=>e,mouseEnterDelay:O,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:M,destroyPopupOnHide:N,dropdownRender:P,popupRender:F,...I}=e,L=n(`dropdown`,i),R=`${L}-button`,z={menu:p,arrow:g,autoFocus:_,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:k,classNames:{root:A},styles:{root:j},destroyOnHidden:M,popupRender:F||P},{compactSize:B,compactItemClassnames:V}=Od(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(_p,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(_p,{type:a,danger:o,icon:T})]);return h.createElement(Py.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(vw,{...z},W))};Spe.__ANT_BUTTON=!0;var yw=vw;yw.Button=Spe;var bw={},Cpe=`SELECT_ALL`,wpe=`SELECT_INVERT`,Tpe=`SELECT_NONE`,xw=[],Epe=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),xr(t)&&e in t&&Epe(e,t[e],n)}),n),Dpe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:_,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:S,data:C,pageData:w,getRecordByKey:T,getRowKey:E,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=Lr(`Table`),[M,N]=pd(e=>e),[P,F]=ye(i||xw,r),I=P??xw,L=h.useRef(new Map),R=(0,h.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=T(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[T,n]);h.useEffect(()=>{R(I)},[I,R]);let z=(0,h.useMemo)(()=>Epe(O,w),[O,w]),{keyEntities:B}=(0,h.useMemo)(()=>{if(x)return{keyEntities:null};let e=C;if(n){let t=new Set(z.map(E)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(gr(e),gr(n))}return FC(e,{externalGetKey:E,childrenPropName:O})},[C,E,x,O,n,z]),V=(0,h.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=E(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,E,a]),H=(0,h.useCallback)(e=>{let t=E(e),n;return n=V.has(t)?V.get(E(e)):a?a(e):void 0,!!n?.disabled},[V,E]),[U,W]=(0,h.useMemo)(()=>{if(x)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=ow(I,!0,B,H);return[e||[],t]},[I,x,B,H]),G=(0,h.useMemo)(()=>{let e=g===`radio`?U.slice(0,1):U;return new Set(e)},[U,g]),ee=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(xw)},[!!t]);let K=(0,h.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=T(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,T,s,n]),te=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}K(n,`single`)},[c,T,K]),ne=(0,h.useMemo)(()=>!_||b?null:(_===!0?[Cpe,wpe,Tpe]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){K(C.reduce((e,t,n)=>{let r=E(t,n);return(!V.get(r)?.disabled||G.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(G);w.forEach((t,n)=>{let r=E(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),K(Array.from(G).filter(e=>V.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),N(null)}}}),[_,b,k.selectionAll,k.selectInvert,k.selectNone,V,G,C,w,E,u,K]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==bw);let n=gr(e),r=new Set(G),i=z.reduce((e,t,n)=>{let r=E(t,n);return V.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(T),e.map(T)),K(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(ne){let t={getPopupContainer:A,items:ne.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=h.createElement(`div`,{className:`${S}-selection-extra`},h.createElement(yw,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(jv,null))))}let t=z.reduce((e,t,n)=>{let i=E(t,n),a=V.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:g}=p;d=h.createElement(dw,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:g??(z.length===0||n),skipGroup:!0}),u=!b&&h.createElement(`div`,{className:`${S}-selection`},d,e)}let C;C=g===`radio`?(e,t,n)=>{let i=E(t,n),a=r.has(i),o=V.get(i),s=`Select row ${n+1}`;return{node:h.createElement(Tx,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||te(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=ee.has(a),c=V.get(a),l;l=D===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:h.createElement(dw,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=G.size>0&&i.some(e=>G.has(e));if(n&&x&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(T),e.map(T)),K(t,`multiple`)}else{let e=U;if(x){let n=o?QC(e,a):$C(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=ow([].concat(gr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=ow(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}te(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let w=(e,t,n)=>{let{node:r,checked:i}=C(e,t,n);return y?y(i,t,n,r):r};if(!n.includes(bw))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,bw].concat(gr(t))}else n=[bw].concat(gr(n));let O=n.indexOf(bw);n=n.filter((e,t)=>e!==bw||t===O);let k=n[O-1],j=n[O+1],P=v;P===void 0&&(j?.fixed===void 0?k?.fixed!==void 0&&(P=k.fixed):P=j.fixed),P&&k&&k.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=P);let F=m(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:_&&g===`checkbox`}),I={fixed:P,width:p,className:`${S}-selection-column`,title:t?.columnTitle?Sr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[eC]:{className:F}};return n.map(e=>e===bw?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function Ope(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var Sw=e=>_r(e)&&e===e.window,kpe=e=>{if(typeof window>`u`)return 0;let t=0;return Sw(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Sw(e)&&!yr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function Ape(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=kpe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=Ope(t>i?i:t,o,e,i);Sw(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{nn.cancel(c)}}var jpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function Cw(){return Cw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Cw({},e,{ref:t,icon:jpe.default}))),Mpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function Tw(){return Tw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Tw({},e,{ref:t,icon:Mpe.default}))),Npe={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},Ppe=[10,20,50,100],Fpe=e=>{let{pageSizeOptions:t=Ppe,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=h.useState(``),m=h.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Et.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?h.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):h.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=h.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,h.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),h.createElement(`li`,{className:x},S,C)},Dw=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=m(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},g=l(n,`page`,h.createElement(`a`,{rel:`nofollow`},n));return g?h.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},g):null};function Ow(){return Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function kw(){}function Aw(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function jw(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var Lpe=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=kw,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=kw,locale:x=Npe,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=Ipe,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ye(u,l),[R,z]=ye(s,o),B=Math.max(1,Math.min(R,jw(void 0,I,c))),[V,H]=h.useState(B);(0,h.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(v?3:5)),W=Math.min(jw(void 0,I,c),B+(v?3:5));function G(n,r){let i=n||h.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=h.createElement(n,e)),i}function ee(e){let t=e.target.value,n=jw(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return Aw(e)&&e!==B&&Aw(c)&&c>0}let te=c>I?_:!1;function ne(e){(e.keyCode===Et.UP||e.keyCode===Et.DOWN)&&e.preventDefault()}function re(e){let t=ee(e);switch(t!==V&&H(t),e.keyCode){case Et.ENTER:oe(t);break;case Et.UP:oe(t-1);break;case Et.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=jw(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function oe(e){if(K(e)&&!w){let t=jw(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=Bc?c:B*I])),Te=null,Ee=jw(void 0,I,c);if(f&&c<=I)return null;let De=[],Oe={rootPrefixCls:t,onClick:oe,onKeyPress:pe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},ke=B-1>0?B-1:0,Ae=B+1=Fe*2&&B!==3,c=!!Te&&Ee-B>=Fe*2&&B!==Ee-2;!v&&s&&o!==Ee&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)De.push(h.createElement(Dw,Ow({},Oe,{key:e,page:e,active:B===e})));if(s&&(De[0]=h.cloneElement(De[0],{className:m(`${t}-item-after-jump-prev`,De[0].props.className)}),De.unshift(Se)),c){let e=De[De.length-1];De[De.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),De.push(Te)}a!==1&&De.unshift(h.createElement(Dw,Ow({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement(Dw,Ow({},Oe,{key:Ee,page:Ee})))}let Ie=ve(ke);if(Ie){let e=!se||!Ee;Ie=h.createElement(`li`,{title:y?x.prev_page:null,onClick:le,tabIndex:e?null:0,onKeyDown:me,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=be(Ae);if(Le){let e,n;T?(e=!ce,n=se?0:null):(e=!ce||!Ee,n=e?null:0),Le=h.createElement(`li`,{title:y?x.next_page:null,onClick:ue,tabIndex:n,onKeyDown:he,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=m(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return h.createElement(`ul`,Ow({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(Fpe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},Rpe=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},zpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...yv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Bpe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...vv(e)}}}}},Vpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${q(e.inputOutlineOffset)} 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Hpe=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...tv(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},Upe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=Tc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -292,18 +292,18 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...xv(e),...rv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...nv(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},Upe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${q(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Wpe=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Tc(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:q(e.itemSize),[r(`item-spacing-actual`)]:q(e.marginXS),"&-small":{[r(`item-size-actual`)]:q(e.itemSizeSM),[r(`item-spacing-actual`)]:q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:q(e.itemSizeLG),[r(`item-spacing-actual`)]:q(e.marginSM)},...io(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...Upe(e),...Hpe(e),...Bpe(e),...Vpe(e),...Rpe(e),...zpe(e),...Lpe(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},Gpe=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...lo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...co(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:co(e)}}}},Nw=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...tv(e)}),Pw=e=>Go(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},ev(e)),Kpe=Sc(`Pagination`,e=>{let t=Pw(e);return[Wpe(t),Gpe(t)]},Nw),qpe=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Jpe=wc([`Pagination`,`bordered`],e=>qpe(Pw(e)),Nw);function Fw(e){return(0,h.useMemo)(()=>typeof e==`boolean`?[e,{}]:xr(e)?[!0,e]:[void 0,void 0],[e])}var Ype=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:g,..._}=e,{xs:v}=_g(l),[,y]=xc(),{getPrefixCls:b,direction:x,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=Ur(`pagination`),O=b(`pagination`,n),[k,A]=Kpe(O),j=ed(s),M=j===`small`||!!(v&&!j&&l),[N,P]=bm(`input`),F={...e,size:j},I=jr(w),L=jr(o),[R,z]=Nr([T,g],[E,I,p,L],{props:F}),[B]=$c(`Pagination`,Bc),V={...B,...c},[H,U]=Fw(u),[W,G]=Fw(S),ee=H??W,K=U??G,te=d||vS,ne=h.useMemo(()=>f?f.map(Number):void 0,[f]),re=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=K||{},l=o.find(e=>String(e.value)===String(n))?.value;return h.createElement(te,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...K,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:j,className:m(a,s)})},ie=h.useMemo(()=>{let e=h.createElement(`span`,{className:`${O}-item-ellipsis`},h.createElement(jm,null));return{prevIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(zf,null):h.createElement(mw,null)),nextIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(mw,null):h.createElement(zf,null)),jumpPrevIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Dw,{className:`${O}-item-link-icon`}):h.createElement(Tw,{className:`${O}-item-link-icon`}),e)),jumpNextIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Tw,{className:`${O}-item-link-icon`}):h.createElement(Dw,{className:`${O}-item-link-icon`}),e))}},[x,O]),ae=b(`select`,r),oe=m({[`${O}-${t}`]:!!t,[`${O}-${j}`]:j,[`${O}-${N}`]:P&&N!==`outlined`,[`${O}-mini`]:M,[`${O}-rtl`]:x===`rtl`,[`${O}-bordered`]:y.wireframe},C,i,a,R.root,k,A),se={...z.root};return h.createElement(h.Fragment,null,y.wireframe&&h.createElement(Jpe,{prefixCls:O}),h.createElement(Ipe,{...ie,..._,styles:z,classNames:R,style:se,prefixCls:O,selectPrefixCls:ae,className:oe,locale:V,pageSizeOptions:ne,showSizeChanger:ee,totalBoundaryShowSizeChanger:_.totalBoundaryShowSizeChanger??D,sizeChangerRender:re}))};function Xpe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return h.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:m(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Zpe(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var Qpe=(e,t)=>h.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===xw||e===AS?e:`children`in e&&Array.isArray(e.children)?{...an(t,e),children:n(e.children)}:an(Wt(t,[`children`]),e));return n(e)},[e,t]),Iw=(e,t)=>`key`in e&&_r(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function Lw(e,t){return t?`${t}-${e}`:`${e}`}var Rw=(e,t)=>Sr(e)?e(t):e,$pe=(e,t)=>{let n=Rw(e,t);return xr(n)||Array.isArray(n)?``:n},eme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`}}))());function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,zw({},e,{ref:t,icon:eme.default}))),nme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`}}))());function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Bw({},e,{ref:t,icon:nme.default}))),rme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`}}))());function Hw(){return Hw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Hw({},e,{ref:t,icon:rme.default}))),ame=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`}}))());function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Uw({},e,{ref:t,icon:ame.default}))),sme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`}}))());function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Ww({},e,{ref:t,icon:sme.default}))),lme=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),ume=new to(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),dme=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),fme=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),pme=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...io(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...co(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:ume,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:q(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...dme(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...fme(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${q(t.calc(a).div(2).equal())} !important`}}}},mme=(e,t,n=!0)=>{let r=`.${e}`,i=Go(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[pme(e,i),n&&lme(i)].filter(Boolean)},hme=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},gme=Sc(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:dw(`${t}-checkbox`,e)},mme(t,e),Jd(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...hme(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),_me=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return h.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},vme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`}}))());function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Gw({},e,{ref:t,icon:vme.default}))),bme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 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:`minus-square`,theme:`outlined`}}))());function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Kw({},e,{ref:t,icon:bme.default}))),Sme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 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:`plus-square`,theme:`outlined`}}))());function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,qw({},e,{ref:t,icon:Sme.default}))),wme=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return h.isValidElement(a)?a:h.createElement(Hd,{className:`${t}-switcher-loading-icon`});let l;if(xr(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=Sr(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return h.isValidElement(e)?vu(e,{className:m(e.props?.className,n)}):e}return l?h.createElement(Vw,{className:`${t}-switcher-line-icon`}):h.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=Sr(n)?n(r):n;return h.isValidElement(d)?vu(d,{className:m(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?h.createElement(xme,{className:`${t}-switcher-line-icon`}):h.createElement(Cme,{className:`${t}-switcher-line-icon`}):h.createElement(yme,{className:u}):d},Jw=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=Ur(`tree`),{virtual:c}=h.useContext(Br),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:g,blockNode:_=!1,children:v,checkable:y=!1,selectable:b=!0,draggable:x,disabled:S,motion:C,style:w,rootClassName:T,classNames:E,styles:D,icon:O}=e,k=h.useContext(Cu),A=S??k,j=n(`tree`,l),M=n(),N=C??{...Gf(M),motionAppear:!1},P={...e,showIcon:d,blockNode:_,checkable:y,selectable:b,disabled:A,motion:N},[F,I]=Nr([o,E],[s,D],{props:P}),L={...P,showLine:!!f,icon:O,dropIndicatorRender:_me},[R,z]=gme(j),[,B]=xc(),V=B.paddingXS/2+(B.Tree?.titleHeight||B.controlHeightSM),H=h.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case`function`:e.nodeDraggable=x;break;case`object`:e={...x};break;default:break}return e.icon!==!1&&(e.icon=e.icon||h.createElement(cme,null)),e},[x]),U=e=>h.createElement(wme,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:e,showLine:f});return h.createElement(qfe,{itemHeight:V,ref:t,virtual:c,...L,prefixCls:j,className:m({[`${j}-icon-hide`]:!d,[`${j}-block-node`]:_,[`${j}-unselectable`]:!b,[`${j}-rtl`]:r===`rtl`,[`${j}-disabled`]:A},i,u,R,z),style:{...a,...w},rootClassName:m(F.root,T),rootStyle:I.root,classNames:F,styles:I,direction:r,checkable:y&&h.createElement(`span`,{className:`${j}-checkbox-inner`}),selectable:b,switcherIcon:U,draggable:H},v)}),Yw=0,Xw=1,Zw=2;function Qw(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&Qw(o||[],t,n)}e.forEach(a)}function Tme({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Yw;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return Qw(e,e=>{if(o===Zw)return!1;if(s(e)){if(a.push(e),o===Yw)o=Xw;else if(o===Xw)return o=Zw,!1}else o===Xw&&a.push(e);return t.includes(e)},PC(i)),a}function $w(e,t,n){let r=gr(t),i=[];return Qw(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},PC(n)),i}function Eme(e){let{isLeaf:t,expanded:n}=e;return t?h.createElement(Vw,null):n?h.createElement(ime,null):h.createElement(ome,null)}function eT({treeData:e,children:t}){return e||FC(t)}var Dme=h.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i,...a}=e,o=h.useRef(null),s=h.useRef(null),c=()=>{let{keyEntities:e}=LC(eT(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?ow(o,e):o,t},[l,u]=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=h.useState(()=>c());h.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),h.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),g=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=eT(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=$w(f,g,r)):n&&h?(g=Array.from(new Set([].concat(gr(s.current||[]),gr(Tme({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=$w(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=$w(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:_,direction:v}=h.useContext(Br),{prefixCls:y,className:b,showIcon:x=!0,expandAction:S=`click`,...C}=a,w=_(`tree`,y),T=m(`${w}-directory`,{[`${w}-directory-rtl`]:v===`rtl`},b);return h.createElement(Jw,{icon:Eme,ref:t,blockNode:!0,...C,showIcon:x,expandAction:S,prefixCls:w,className:T,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:g,onExpand:p})}),tT=Jw;tT.DirectoryTree=Dme,tT.TreeNode=WC;var nT=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?h.createElement(`div`,{className:`${r}-filter-dropdown-search`},h.createElement($y,{prefix:h.createElement(Pv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Ome=e=>{let{keyCode:t}=e;t===Et.ENTER&&e.stopPropagation()},kme=h.forwardRef((e,t)=>h.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Ome,ref:t,role:`presentation`},e.children));function rT(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(gr(t),gr(rT(n))))}),t}function Ame(e){return e.some(({children:e})=>e)}var iT=(e,t)=>typeof t==`string`||yr(t)?t.toString().toLowerCase().includes(e):!1,aT=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:aT({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?fw:Ex,u={key:e.value===void 0?t:c,label:h.createElement(h.Fragment,null,h.createElement(l,{checked:r.includes(c)}),h.createElement(`span`,null,e.text))};return o?Sr(s)?s(o,e)?u:null:iT(o,e.text)?u:null:u})};function oT(e){return e||[]}var jme=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:g,rootClassName:_}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:y,filterDropdownProps:b={},filterDropdownOpen:x,onFilterDropdownOpenChange:S}=r,[C,w]=h.useState(!1),T=h.useContext(by),E=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),D=e=>{w(e),b.onOpenChange?.(e),S?.(e)},O=b.open??x??C,k=u?.filteredKeys,[A,j]=yd(oT(k)),M=({selectedKeys:e})=>{j(e)},N=(e,{node:t,checked:n})=>{M(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};h.useEffect(()=>{C&&M({selectedKeys:oT(k)})},[k]);let[P,F]=h.useState([]),I=e=>{F(e)},[L,R]=h.useState(``),z=h.useMemo(()=>L.trim().toLowerCase(),[L]),B=e=>{let{value:t}=e.target;R(t)};h.useEffect(()=>{C||R(``)},[C]);let V=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||Bt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},H=()=>{D(!1),V(A())},U=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&D(!1),R(``),j(v?(y||[]).map(String):[])},W=({closeDropdown:e}={closeDropdown:!0})=>{e&&D(!1),V(A())},G=(e,t)=>{t.source===`trigger`&&(e&&k!==void 0&&j(oT(k)),D(e),!e&&!r.filterDropdown&&o&&H())},ee=m({[`${i}-menu-without-submenu`]:!Ame(r.filters||[])}),K=e=>{e.target.checked?j(rT(r?.filters).map(String)):j([])},te=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=te({filters:e.children})),r}),ne=e=>({...e,text:e.title,value:e.key,children:e.children?.map(ne)||[]}),re,{direction:ie,renderEmpty:ae}=h.useContext(Br);if(Sr(r.filterDropdown))re=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>M({selectedKeys:e}),selectedKeys:A(),confirm:W,clearFilters:U,filters:r.filters,visible:O,close:()=>{D(!1)}});else if(r.filterDropdown)re=r.filterDropdown;else{let e=A()||[];re=h.createElement(h.Fragment,null,(()=>{let a=ae?.(`Table.filter`)??h.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return h.createElement(h.Fragment,null,h.createElement(nT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),h.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?h.createElement(fw,{checked:e.length===rT(r.filters).length,indeterminate:e.length>0&&e.lengthSr(l)?l(L,ne(e)):iT(z,e.title):void 0})));let o=aT({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:A(),filterMultiple:s,searchValue:L,normalizedSearchValue:z}),u=o.every(e=>e===null);return h.createElement(h.Fragment,null,h.createElement(nT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),u?a:h.createElement(vw,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:M,onDeselect:M,selectedKeys:e,getPopupContainer:g,openKeys:P,onOpenChange:I,items:o}))})(),h.createElement(`div`,{className:`${n}-dropdown-btns`},h.createElement(gp,{type:`link`,size:`small`,disabled:v?Bt((y||[]).map(String),e,!0):e.length===0,onClick:()=>U()},f.filterReset),h.createElement(gp,{type:`primary`,size:`small`,onClick:H},f.filterConfirm)))}r.filterDropdown&&(re=h.createElement(npe,{selectable:void 0},re)),re=h.createElement(kme,{className:`${n}-dropdown`},re);let oe=(()=>{let e;return e=Sr(r.filterIcon)?r.filterIcon(E):r.filterIcon?r.filterIcon:h.createElement(tme,null),h.createElement(`span`,{role:`button`,tabIndex:-1,className:m(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(T)return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),oe);let se=an({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:g},{...b,rootClassName:m(_,b.rootClassName),open:O,onOpenChange:G,popupRender:()=>Sr(b?.dropdownRender)?b.dropdownRender(re):re});return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),h.createElement(bw,{...se}))},sT=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=Lw(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:Iw(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Iw(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(gr(r),gr(sT(e.children,t,a))))}),r};function cT(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=Lw(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,g=n;if(g.filters||g.filterDropdown){let s=Iw(g,u),l=r.find(({key:e})=>s===e);g={...g,title:r=>h.createElement(jme,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},Rw(n.title,r))}}return`children`in g&&(g={...g,children:cT(e,t,g.children,r,i,a,o,u,c)}),g})}var lT=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=rT(a).filter(e=>n.includes(String(e))):t[i]=null}),t},uT=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=rT(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=uT(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),dT=e=>e.flatMap(e=>`children`in e?[e].concat(gr(dT(e.children||[]))):[e]),Mme=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Lr(`Table`);let c=h.useMemo(()=>dT(r||[]),[r]),[l,u]=h.useState(()=>sT(c,!0)),d=h.useMemo(()=>{let e=sT(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>Iw(e,Lw(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[c,l]),f=h.useMemo(()=>lT(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(lT(t),t)};return[e=>cT(t,n,e,d,o,p,a,void 0,s),d,f]},Nme=(e,t,n)=>{let r=h.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),xr(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function Pme(e,t){let n={current:e.current,pageSize:e.pageSize},r=xr(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];Sr(r)||(n[t]=r)}),n}function Fme(e,t,n){let{total:r=0,...i}=xr(n)?n:{},[a,o]=(0,h.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=an(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var Ime=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`}}))());function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,fT({},e,{ref:t,icon:Ime.default}))),Rme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`}}))());function pT(){return pT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,pT({},e,{ref:t,icon:Rme.default}))),mT=`ascend`,hT=`descend`,gT=e=>xr(e.sorter)&&yr(e.sorter.multiple)?e.sorter.multiple:!1,_T=e=>Sr(e)?e:xr(e)&&e.compare?e.compare:!1,Bme=(e,t)=>t?e[e.indexOf(t)+1]:e[0],vT=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:Iw(e,t),multiplePriority:gT(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=Lw(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(gr(r),gr(vT(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:Iw(e,o),multiplePriority:gT(e),sortOrder:e.defaultSortOrder}))}),r},yT=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=Lw(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=Iw(d,u),p=n.find(({key:e})=>e===f),g=p?p.sortOrder:null,_=Bme(s,g),v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{let t=s.includes(mT)&&h.createElement(zme,{className:m(`${e}-column-sorter-up`,{active:g===mT})}),n=s.includes(hT)&&h.createElement(Lme,{className:m(`${e}-column-sorter-down`,{active:g===hT})});v=h.createElement(`span`,{className:m(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},h.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:y,triggerAsc:b,triggerDesc:x}=a||{},S=y;_===hT?S=x:_===mT&&(S=b);let C=xr(l)?{title:S,...l}:{title:S};d={...d,className:m(d.className,{[`${e}-column-sort`]:g}),title:n=>{let r=`${e}-column-sorters`,i=h.createElement(`span`,{className:`${e}-column-title`},Rw(t.title,n)),a=h.createElement(`div`,{className:r},i,v);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?h.createElement(`div`,{className:m(r,`${r}-tooltip-target-sorter`)},i,h.createElement(Ey,{...C},v)):h.createElement(Ey,{...C},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:_,multiplePriority:gT(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Et.ENTER&&(r({column:t,key:f,sortOrder:_,multiplePriority:gT(t)}),o?.(e))};let s=$pe(t.title,{}),l=s?.toString();return g&&(i[`aria-sort`]=g===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=m(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:yT(e,d.children,n,r,i,a,o,u,c)}),d}),bT=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},xT=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(bT(t)),e),[]);return t.length===0&&e.length?{...bT(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},ST=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>_T(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?{...e,[n]:ST(r,t,n)}:e}):i},Vme=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r??n,[u,d]=h.useState(()=>vT(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=Lw(r,t);if(n.push(Iw(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,gr(t))}}),n},p=h.useMemo(()=>{let e=!0,t=vT(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=h.useMemo(()=>{let e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),g=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(gr(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(xT(t),t)};return[e=>yT(t,e,p,g,i,a,o,void 0,c),p,m,()=>xT(p)]},CT=(e,t)=>e.map(e=>{let n={...e};return n.title=Rw(e.title,t),`children`in n&&(n.children=CT(n.children,t)),n}),Hme=e=>[h.useCallback(t=>CT(t,e),[e])],Ume=xC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Wme=kC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gme=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${q(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${q(c(r).mul(-1).equal())} + `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...bv(e),...nv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...tv(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},Wpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${q(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Gpe=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Tc(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:q(e.itemSize),[r(`item-spacing-actual`)]:q(e.marginXS),"&-small":{[r(`item-size-actual`)]:q(e.itemSizeSM),[r(`item-spacing-actual`)]:q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:q(e.itemSizeLG),[r(`item-spacing-actual`)]:q(e.marginSM)},...io(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...Wpe(e),...Upe(e),...Vpe(e),...Hpe(e),...zpe(e),...Bpe(e),...Rpe(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},Kpe=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...lo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...co(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:co(e)}}}},Mw=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...ev(e)}),Nw=e=>Go(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},$_(e)),qpe=Sc(`Pagination`,e=>{let t=Nw(e);return[Gpe(t),Kpe(t)]},Mw),Jpe=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Ype=wc([`Pagination`,`bordered`],e=>Jpe(Nw(e)),Mw);function Pw(e){return(0,h.useMemo)(()=>typeof e==`boolean`?[e,{}]:xr(e)?[!0,e]:[void 0,void 0],[e])}var Xpe=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:g,..._}=e,{xs:v}=_g(l),[,y]=xc(),{getPrefixCls:b,direction:x,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=Ur(`pagination`),O=b(`pagination`,n),[k,A]=qpe(O),j=ed(s),M=j===`small`||!!(v&&!j&&l),[N,P]=bm(`input`),F={...e,size:j},I=jr(w),L=jr(o),[R,z]=Nr([T,g],[E,I,p,L],{props:F}),[B]=$c(`Pagination`,Bc),V={...B,...c},[H,U]=Pw(u),[W,G]=Pw(S),ee=H??W,K=U??G,te=d||gS,ne=h.useMemo(()=>f?f.map(Number):void 0,[f]),re=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=K||{},l=o.find(e=>String(e.value)===String(n))?.value;return h.createElement(te,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...K,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:j,className:m(a,s)})},ie=h.useMemo(()=>{let e=h.createElement(`span`,{className:`${O}-item-ellipsis`},h.createElement(jm,null));return{prevIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(zf,null):h.createElement(pw,null)),nextIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(pw,null):h.createElement(zf,null)),jumpPrevIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Ew,{className:`${O}-item-link-icon`}):h.createElement(ww,{className:`${O}-item-link-icon`}),e)),jumpNextIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(ww,{className:`${O}-item-link-icon`}):h.createElement(Ew,{className:`${O}-item-link-icon`}),e))}},[x,O]),ae=b(`select`,r),oe=m({[`${O}-${t}`]:!!t,[`${O}-${j}`]:j,[`${O}-${N}`]:P&&N!==`outlined`,[`${O}-mini`]:M,[`${O}-rtl`]:x===`rtl`,[`${O}-bordered`]:y.wireframe},C,i,a,R.root,k,A),se={...z.root};return h.createElement(h.Fragment,null,y.wireframe&&h.createElement(Ype,{prefixCls:O}),h.createElement(Lpe,{...ie,..._,styles:z,classNames:R,style:se,prefixCls:O,selectPrefixCls:ae,className:oe,locale:V,pageSizeOptions:ne,showSizeChanger:ee,totalBoundaryShowSizeChanger:_.totalBoundaryShowSizeChanger??D,sizeChangerRender:re}))};function Zpe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return h.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:m(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Qpe(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var $pe=(e,t)=>h.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===bw||e===OS?e:`children`in e&&Array.isArray(e.children)?{...an(t,e),children:n(e.children)}:an(Wt(t,[`children`]),e));return n(e)},[e,t]),Fw=(e,t)=>`key`in e&&_r(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function Iw(e,t){return t?`${t}-${e}`:`${e}`}var Lw=(e,t)=>Sr(e)?e(t):e,eme=(e,t)=>{let n=Lw(e,t);return xr(n)||Array.isArray(n)?``:n},tme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`}}))());function Rw(){return Rw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Rw({},e,{ref:t,icon:tme.default}))),rme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`}}))());function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,zw({},e,{ref:t,icon:rme.default}))),ime=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`}}))());function Vw(){return Vw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Vw({},e,{ref:t,icon:ime.default}))),ome=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`}}))());function Hw(){return Hw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Hw({},e,{ref:t,icon:ome.default}))),cme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`}}))());function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Uw({},e,{ref:t,icon:cme.default}))),ume=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),dme=new to(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),fme=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),pme=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),mme=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...io(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...co(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:dme,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:q(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...fme(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...pme(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${q(t.calc(a).div(2).equal())} !important`}}}},hme=(e,t,n=!0)=>{let r=`.${e}`,i=Go(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[mme(e,i),n&&ume(i)].filter(Boolean)},gme=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},_me=Sc(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:lw(`${t}-checkbox`,e)},hme(t,e),Jd(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...gme(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),vme=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return h.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},yme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`}}))());function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Ww({},e,{ref:t,icon:yme.default}))),xme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 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:`minus-square`,theme:`outlined`}}))());function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Gw({},e,{ref:t,icon:xme.default}))),Cme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 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:`plus-square`,theme:`outlined`}}))());function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,Kw({},e,{ref:t,icon:Cme.default}))),Tme=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return h.isValidElement(a)?a:h.createElement(Hd,{className:`${t}-switcher-loading-icon`});let l;if(xr(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=Sr(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return h.isValidElement(e)?vu(e,{className:m(e.props?.className,n)}):e}return l?h.createElement(Bw,{className:`${t}-switcher-line-icon`}):h.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=Sr(n)?n(r):n;return h.isValidElement(d)?vu(d,{className:m(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?h.createElement(Sme,{className:`${t}-switcher-line-icon`}):h.createElement(wme,{className:`${t}-switcher-line-icon`}):h.createElement(bme,{className:u}):d},qw=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=Ur(`tree`),{virtual:c}=h.useContext(Br),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:g,blockNode:_=!1,children:v,checkable:y=!1,selectable:b=!0,draggable:x,disabled:S,motion:C,style:w,rootClassName:T,classNames:E,styles:D,icon:O}=e,k=h.useContext(Cu),A=S??k,j=n(`tree`,l),M=n(),N=C??{...Gf(M),motionAppear:!1},P={...e,showIcon:d,blockNode:_,checkable:y,selectable:b,disabled:A,motion:N},[F,I]=Nr([o,E],[s,D],{props:P}),L={...P,showLine:!!f,icon:O,dropIndicatorRender:vme},[R,z]=_me(j),[,B]=xc(),V=B.paddingXS/2+(B.Tree?.titleHeight||B.controlHeightSM),H=h.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case`function`:e.nodeDraggable=x;break;case`object`:e={...x};break;default:break}return e.icon!==!1&&(e.icon=e.icon||h.createElement(lme,null)),e},[x]),U=e=>h.createElement(Tme,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:e,showLine:f});return h.createElement(Yfe,{itemHeight:V,ref:t,virtual:c,...L,prefixCls:j,className:m({[`${j}-icon-hide`]:!d,[`${j}-block-node`]:_,[`${j}-unselectable`]:!b,[`${j}-rtl`]:r===`rtl`,[`${j}-disabled`]:A},i,u,R,z),style:{...a,...w},rootClassName:m(F.root,T),rootStyle:I.root,classNames:F,styles:I,direction:r,checkable:y&&h.createElement(`span`,{className:`${j}-checkbox-inner`}),selectable:b,switcherIcon:U,draggable:H},v)}),Jw=0,Yw=1,Xw=2;function Zw(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&Zw(o||[],t,n)}e.forEach(a)}function Eme({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Jw;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return Zw(e,e=>{if(o===Xw)return!1;if(s(e)){if(a.push(e),o===Jw)o=Yw;else if(o===Yw)return o=Xw,!1}else o===Yw&&a.push(e);return t.includes(e)},MC(i)),a}function Qw(e,t,n){let r=gr(t),i=[];return Zw(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},MC(n)),i}function Dme(e){let{isLeaf:t,expanded:n}=e;return t?h.createElement(Bw,null):n?h.createElement(ame,null):h.createElement(sme,null)}function $w({treeData:e,children:t}){return e||NC(t)}var Ome=h.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i,...a}=e,o=h.useRef(null),s=h.useRef(null),c=()=>{let{keyEntities:e}=FC($w(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?iw(o,e):o,t},[l,u]=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=h.useState(()=>c());h.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),h.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),g=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=$w(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=Qw(f,g,r)):n&&h?(g=Array.from(new Set([].concat(gr(s.current||[]),gr(Eme({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=Qw(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=Qw(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:_,direction:v}=h.useContext(Br),{prefixCls:y,className:b,showIcon:x=!0,expandAction:S=`click`,...C}=a,w=_(`tree`,y),T=m(`${w}-directory`,{[`${w}-directory-rtl`]:v===`rtl`},b);return h.createElement(qw,{icon:Dme,ref:t,blockNode:!0,...C,showIcon:x,expandAction:S,prefixCls:w,className:T,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:g,onExpand:p})}),eT=qw;eT.DirectoryTree=Ome,eT.TreeNode=HC;var tT=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?h.createElement(`div`,{className:`${r}-filter-dropdown-search`},h.createElement(Qy,{prefix:h.createElement(Nv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},kme=e=>{let{keyCode:t}=e;t===Et.ENTER&&e.stopPropagation()},Ame=h.forwardRef((e,t)=>h.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:kme,ref:t,role:`presentation`},e.children));function nT(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(gr(t),gr(nT(n))))}),t}function jme(e){return e.some(({children:e})=>e)}var rT=(e,t)=>typeof t==`string`||yr(t)?t.toString().toLowerCase().includes(e):!1,iT=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:iT({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?dw:Tx,u={key:e.value===void 0?t:c,label:h.createElement(h.Fragment,null,h.createElement(l,{checked:r.includes(c)}),h.createElement(`span`,null,e.text))};return o?Sr(s)?s(o,e)?u:null:rT(o,e.text)?u:null:u})};function aT(e){return e||[]}var Mme=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:g,rootClassName:_}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:y,filterDropdownProps:b={},filterDropdownOpen:x,onFilterDropdownOpenChange:S}=r,[C,w]=h.useState(!1),T=h.useContext(yy),E=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),D=e=>{w(e),b.onOpenChange?.(e),S?.(e)},O=b.open??x??C,k=u?.filteredKeys,[A,j]=yd(aT(k)),M=({selectedKeys:e})=>{j(e)},N=(e,{node:t,checked:n})=>{M(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};h.useEffect(()=>{C&&M({selectedKeys:aT(k)})},[k]);let[P,F]=h.useState([]),I=e=>{F(e)},[L,R]=h.useState(``),z=h.useMemo(()=>L.trim().toLowerCase(),[L]),B=e=>{let{value:t}=e.target;R(t)};h.useEffect(()=>{C||R(``)},[C]);let V=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||Bt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},H=()=>{D(!1),V(A())},U=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&D(!1),R(``),j(v?(y||[]).map(String):[])},W=({closeDropdown:e}={closeDropdown:!0})=>{e&&D(!1),V(A())},G=(e,t)=>{t.source===`trigger`&&(e&&k!==void 0&&j(aT(k)),D(e),!e&&!r.filterDropdown&&o&&H())},ee=m({[`${i}-menu-without-submenu`]:!jme(r.filters||[])}),K=e=>{e.target.checked?j(nT(r?.filters).map(String)):j([])},te=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=te({filters:e.children})),r}),ne=e=>({...e,text:e.title,value:e.key,children:e.children?.map(ne)||[]}),re,{direction:ie,renderEmpty:ae}=h.useContext(Br);if(Sr(r.filterDropdown))re=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>M({selectedKeys:e}),selectedKeys:A(),confirm:W,clearFilters:U,filters:r.filters,visible:O,close:()=>{D(!1)}});else if(r.filterDropdown)re=r.filterDropdown;else{let e=A()||[];re=h.createElement(h.Fragment,null,(()=>{let a=ae?.(`Table.filter`)??h.createElement(cS,{image:cS.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return h.createElement(h.Fragment,null,h.createElement(tT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),h.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?h.createElement(dw,{checked:e.length===nT(r.filters).length,indeterminate:e.length>0&&e.lengthSr(l)?l(L,ne(e)):rT(z,e.title):void 0})));let o=iT({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:A(),filterMultiple:s,searchValue:L,normalizedSearchValue:z}),u=o.every(e=>e===null);return h.createElement(h.Fragment,null,h.createElement(tT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),u?a:h.createElement(_w,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:M,onDeselect:M,selectedKeys:e,getPopupContainer:g,openKeys:P,onOpenChange:I,items:o}))})(),h.createElement(`div`,{className:`${n}-dropdown-btns`},h.createElement(gp,{type:`link`,size:`small`,disabled:v?Bt((y||[]).map(String),e,!0):e.length===0,onClick:()=>U()},f.filterReset),h.createElement(gp,{type:`primary`,size:`small`,onClick:H},f.filterConfirm)))}r.filterDropdown&&(re=h.createElement(rpe,{selectable:void 0},re)),re=h.createElement(Ame,{className:`${n}-dropdown`},re);let oe=(()=>{let e;return e=Sr(r.filterIcon)?r.filterIcon(E):r.filterIcon?r.filterIcon:h.createElement(nme,null),h.createElement(`span`,{role:`button`,tabIndex:-1,className:m(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(T)return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),oe);let se=an({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:g},{...b,rootClassName:m(_,b.rootClassName),open:O,onOpenChange:G,popupRender:()=>Sr(b?.dropdownRender)?b.dropdownRender(re):re});return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),h.createElement(yw,{...se}))},oT=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=Iw(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:Fw(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Fw(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(gr(r),gr(oT(e.children,t,a))))}),r};function sT(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=Iw(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,g=n;if(g.filters||g.filterDropdown){let s=Fw(g,u),l=r.find(({key:e})=>s===e);g={...g,title:r=>h.createElement(Mme,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},Lw(n.title,r))}}return`children`in g&&(g={...g,children:sT(e,t,g.children,r,i,a,o,u,c)}),g})}var cT=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=nT(a).filter(e=>n.includes(String(e))):t[i]=null}),t},lT=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=nT(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=lT(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),uT=e=>e.flatMap(e=>`children`in e?[e].concat(gr(uT(e.children||[]))):[e]),Nme=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Lr(`Table`);let c=h.useMemo(()=>uT(r||[]),[r]),[l,u]=h.useState(()=>oT(c,!0)),d=h.useMemo(()=>{let e=oT(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>Fw(e,Iw(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[c,l]),f=h.useMemo(()=>cT(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(cT(t),t)};return[e=>sT(t,n,e,d,o,p,a,void 0,s),d,f]},Pme=(e,t,n)=>{let r=h.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),xr(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function Fme(e,t){let n={current:e.current,pageSize:e.pageSize},r=xr(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];Sr(r)||(n[t]=r)}),n}function Ime(e,t,n){let{total:r=0,...i}=xr(n)?n:{},[a,o]=(0,h.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=an(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var Lme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`}}))());function dT(){return dT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,dT({},e,{ref:t,icon:Lme.default}))),zme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`}}))());function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,fT({},e,{ref:t,icon:zme.default}))),pT=`ascend`,mT=`descend`,hT=e=>xr(e.sorter)&&yr(e.sorter.multiple)?e.sorter.multiple:!1,gT=e=>Sr(e)?e:xr(e)&&e.compare?e.compare:!1,Vme=(e,t)=>t?e[e.indexOf(t)+1]:e[0],_T=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:Fw(e,t),multiplePriority:hT(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=Iw(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(gr(r),gr(_T(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:Fw(e,o),multiplePriority:hT(e),sortOrder:e.defaultSortOrder}))}),r},vT=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=Iw(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=Fw(d,u),p=n.find(({key:e})=>e===f),g=p?p.sortOrder:null,_=Vme(s,g),v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{let t=s.includes(pT)&&h.createElement(Bme,{className:m(`${e}-column-sorter-up`,{active:g===pT})}),n=s.includes(mT)&&h.createElement(Rme,{className:m(`${e}-column-sorter-down`,{active:g===mT})});v=h.createElement(`span`,{className:m(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},h.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:y,triggerAsc:b,triggerDesc:x}=a||{},S=y;_===mT?S=x:_===pT&&(S=b);let C=xr(l)?{title:S,...l}:{title:S};d={...d,className:m(d.className,{[`${e}-column-sort`]:g}),title:n=>{let r=`${e}-column-sorters`,i=h.createElement(`span`,{className:`${e}-column-title`},Lw(t.title,n)),a=h.createElement(`div`,{className:r},i,v);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?h.createElement(`div`,{className:m(r,`${r}-tooltip-target-sorter`)},i,h.createElement(Ty,{...C},v)):h.createElement(Ty,{...C},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:_,multiplePriority:hT(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Et.ENTER&&(r({column:t,key:f,sortOrder:_,multiplePriority:hT(t)}),o?.(e))};let s=eme(t.title,{}),l=s?.toString();return g&&(i[`aria-sort`]=g===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=m(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:vT(e,d.children,n,r,i,a,o,u,c)}),d}),yT=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},bT=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(yT(t)),e),[]);return t.length===0&&e.length?{...yT(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},xT=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>gT(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?{...e,[n]:xT(r,t,n)}:e}):i},Hme=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r??n,[u,d]=h.useState(()=>_T(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=Iw(r,t);if(n.push(Fw(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,gr(t))}}),n},p=h.useMemo(()=>{let e=!0,t=_T(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=h.useMemo(()=>{let e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),g=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(gr(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(bT(t),t)};return[e=>vT(t,e,p,g,i,a,o,void 0,c),p,m,()=>bT(p)]},ST=(e,t)=>e.map(e=>{let n={...e};return n.title=Lw(e.title,t),`children`in n&&(n.children=ST(n.children,t)),n}),Ume=e=>[h.useCallback(t=>ST(t,e),[e])],Wme=yC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gme=DC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Kme=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${q(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${q(c(r).mul(-1).equal())} ${q(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-header${t}-sticky-holder`]:{marginTop:c(n).mul(-1).equal(),borderTop:l},[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first:not(${t}-cell-fix-right-last)::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${q(c(o).mul(-1).equal())} ${q(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${q(n)} 0 ${q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},Kme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...ro,wordBreak:`keep-all`,[` + `]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${q(n)} 0 ${q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},qme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...ro,wordBreak:`keep-all`,[` &${t}-cell-fix-start-shadow, &${t}-cell-fix-end-shadow - `]:{overflow:`visible`,[`${t}-cell-content`]:{...ro,display:`block`}},[`${t}-column-title`]:{...ro,wordBreak:`keep-all`}}}}},qme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},Jme=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${q(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...po(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:q(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${q(y(d).mul(-1).equal())} ${q(y(f).mul(-1).equal())}`,padding:`${q(d)} ${q(f)}`}}}},Yme=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${q(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${q(o)} ${q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...io(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${q(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${q(D(s).sub(l).equal())} ${q(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function wT({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var Xme=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=wT(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},Zme=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},Qme=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${q(n)} ${q(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${q(n)} ${q(n)}`}}}}},$me=e=>{let{componentCls:t}=e,[n,r]=wT(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},ehe=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[` + `]:{overflow:`visible`,[`${t}-cell-content`]:{...ro,display:`block`}},[`${t}-column-title`]:{...ro,wordBreak:`keep-all`}}}}},Jme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},Yme=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${q(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...po(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:q(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${q(y(d).mul(-1).equal())} ${q(y(f).mul(-1).equal())}`,padding:`${q(d)} ${q(f)}`}}}},Xme=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${q(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${q(o)} ${q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...io(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${q(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${q(D(s).sub(l).equal())} ${q(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function CT({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var Zme=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=CT(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},Qme=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},$me=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${q(n)} ${q(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${q(n)} ${q(n)}`}}}}},ehe=e=>{let{componentCls:t}=e,[n,r]=CT(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},the=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:q(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},the=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:q(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},nhe=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -312,13 +312,13 @@ html body { ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${q(i)} ${q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${q(r(i).mul(-1).equal())} ${q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:q(r(i).mul(-1).equal()),marginInline:`${q(r(n).sub(a).equal())} ${q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},nhe=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${q(i)} ${q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${q(r(i).mul(-1).equal())} ${q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:q(r(i).mul(-1).equal()),marginInline:`${q(r(n).sub(a).equal())} ${q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},rhe=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},rhe=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${q(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${q(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},TT=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${q(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${q(i(n).mul(-1).equal())} 0 ${r}`}}}},ihe=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${q(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},ihe=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${q(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${q(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},wT=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${q(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${q(i(n).mul(-1).equal())} 0 ${r}`}}}},ahe=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${q(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${q(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},ahe=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...so(),[t]:{...io(e),fontSize:l,background:u,borderRadius:`${q(d)} ${q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${q(d)} ${q(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[` + `]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${q(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},ohe=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...so(),[t]:{...io(e),fontSize:l,background:u,borderRadius:`${q(d)} ${q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${q(d)} ${q(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -329,12 +329,12 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:q(v(r).mul(-1).equal()),marginInline:`${q(v(a).sub(i).equal())} - ${q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${q(r)} ${q(i)}`,color:g,background:_}}}},ohe=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new ps(i).onBackground(n).toHexString(),w=new ps(a).onBackground(n).toHexString(),T=new ps(t).onBackground(n).toHexString(),E=new ps(y),D=new ps(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},she=2,che=Sc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Go(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:she,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[ahe(F),Zme(F),TT(F),nhe(F),Yme(F),Gme(F),Qme(F),Jme(F),TT(F),qme(F),ehe(F),Xme(F),rhe(F),Kme(F),the(F),$me(F),ihe(F)]},ohe,{resetFont:!1,unitless:{expandIconScale:!0}}),ET=[],DT=h.createContext({}),lhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(DT);return h.createElement(n,{...t,...e})},uhe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:g,rowClassName:_,column:v,columns:y,children:b,childrenColumnName:x,onChange:S,getPopupContainer:C,loading:w,expandIcon:T,expandable:E,expandedRowRender:D,expandIconColumnIndex:O,indentSize:k,scroll:A,sortDirections:j,locale:M,showSorterTooltip:N={target:`full-header`},virtual:P}=e;Lr(`Table`);let F=Qpe(h.useMemo(()=>y||lC(b),[y,b]),v),I=_g(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Wt(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=Yt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:lhe}}:z,[z,V]),{locale:W=Kc,table:G}=h.useContext(Br),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=Ur(`table`),se=ed(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=jr(ie),ue=jr(a),[de,fe]=Nr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=$c(`global`,Kc.global),he=d||ET,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=xc(),ye=h.useMemo(()=>xr(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=og(ge),[xe,Se]=che(ge,be),Ce={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:we=`children`}=Ce,Te=h.useMemo(()=>he.some(e=>e?.[we])?`nest`:D||E?.expandedRowRender?`row`:null,[we,he]),Ee={body:h.useRef(null)},De=Zpe(ge),Oe=h.useRef(null),ke=h.useRef(null);vd(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>Sr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=Nme(he,we,Me),Pe={},Fe=(e,t,n=!1)=>{let r={...Pe,...e};n&&(Pe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Ee.body.current&&kpe(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:uT(ST(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=Vme({prefixCls:ge,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Fe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:pe,showSorterTooltip:N,globalLocale:me}),Be=h.useMemo(()=>ST(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=Mme({prefixCls:ge,locale:pe,dropdownPrefixCls:_e,mergedColumns:L,onFilterChange:(e,t)=>{Fe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||ne,rootClassName:m(i,be)}),We=uT(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=Hme(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=Fme(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:Pme(Ke,f),Pe.resetPagination=qe;let Je=h.useMemo(()=>{if(f===!1||!Ke.pageSize)return We;let{current:e=1,total:t,pageSize:n=10}=Ke;return We.lengthn?We.slice((e-1)*n,e*n):We:We.slice((e-1)*n,e*n)},[!!f,We,Ke?.current,Ke?.pageSize,Ke?.total]),[Ye,Xe]=Epe({prefixCls:ge,data:We,pageData:Je,getRowKey:Me,getRecordByKey:Ne,expandType:Te,childrenColumnName:we,locale:pe,getPopupContainer:C||ne},ye),Ze=(e,t,n)=>m({[`${ge}-row-selected`]:Xe.has(Me(e,t))},Sr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||Xpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,yr(Ce.indentSize)||(Ce.indentSize=yr(k)?k:15);let Qe=h.useCallback(e=>Ge(Ye(Ve(Ie(e)))),[Ie,Ve,Ye]),$e,et;if(f!==!1&&Ke?.total){let e;e=Ke.size?Ke.size:se===`small`||se===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Ype,{...Ke,classNames:de.pagination,styles:fe.pagination,className:m(`${ge}-pagination ${ge}-pagination-${t}`,Ke.className),size:e}),{placement:n,position:r}=Ke,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(et=t()),e&&($e=t(a(e))),n&&(et=t(a(n)))}else et=t()}let tt=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(xr(w))return{spinning:!0,...w}},[w]),nt=m(Se,be,`${ge}-wrapper`,re,{[`${ge}-wrapper-rtl`]:K===`rtl`},r,i,de.root,xe),rt=h.useMemo(()=>tt?.spinning&&he===ET?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(dS,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Wme:Ume,at={},ot=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ve,o=Math.floor(e*t);switch(se){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ve,se]);return P&&(at.listItemHeight=ot),h.createElement(`div`,{ref:Oe,className:nt,style:fe.root},h.createElement(DS,{spinning:!1,...tt},$e,h.createElement(DT.Provider,{value:H},h.createElement(it,{...at,...R,components:U,scroll:je,classNames:de,styles:fe,ref:ke,columns:L,direction:K,expandable:Ce,prefixCls:ge,className:m({[`${ge}-medium`]:se===`medium`,[`${ge}-small`]:se===`small`,[`${ge}-bordered`]:l,[`${ge}-empty`]:he.length===0},Se,be,xe),data:Je,rowKey:Me,rowClassName:Ze,emptyText:rt,internalHooks:jS,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(by.Provider,{value:!0},h.createElement(Uu,{getPopupContainer:e=>e},e))})),et))}),OT=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(uhe,{...e,ref:t,_renderTimes:n.current})});OT.SELECTION_COLUMN=xw,OT.EXPAND_COLUMN=AS,OT.SELECTION_ALL=Spe,OT.SELECTION_INVERT=Cpe,OT.SELECTION_NONE=wpe,OT.Column=Ofe,OT.ColumnGroup=kfe,OT.Summary=JS;var kT=OT,dhe=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...io(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},AT=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Go(e,{tagFontSize:i,tagLineHeight:q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},jT=e=>{let t=Jf(new If(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ps(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},MT=Sc(`Tag`,e=>dhe(AT(e)),jT),NT=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:g}=h.useContext(Br),_=h.useContext(Cu),v=d??_,y=e=>{v||(c?.(!a),l?.(e))},b=e=>{u?.(e),!(e.defaultPrevented||v)&&e.key===` `&&(e.preventDefault(),c?.(!a))},x=p(`tag`,n),[S,C]=MT(x),w=m(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,i,S,C);return h.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...r,...g?.style},className:w,onClick:y,onKeyDown:b},s,h.createElement(`span`,null,o))}),fhe=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:g,..._}=e,{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C}=Ur(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=MT(w,og(w)),O=jr(x),k=jr(o),[A,j]=Nr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>xr(e)?e:{value:e,label:e}):[],[u]),[N,P]=ye(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(gr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=Yt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement(NT,{key:e.value,className:m(`${T}-item`,A.item,e.className),style:{...j.item,...e.style},checked:g?(N||[]).includes(e.value):N===e.value,onChange:t=>F(t,e),disabled:l},e.label)))});function phe(e,t){let{color:n,variant:r,bordered:i}=e;return h.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=wy(o),c=Yae(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ps(o).toHsl();e.l=.95,l.backgroundColor=new ps(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var mhe=e=>Ec(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),hhe=wc([`Tag`,`preset`],e=>mhe(AT(e)),jT);function ghe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var PT=(e,t,n)=>{let r=ghe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},_he=wc([`Tag`,`status`],e=>{let t=AT(e);return[PT(t,`success`,`Success`),PT(t,`processing`,`Info`),PT(t,`error`,`Error`),PT(t,`warning`,`Warning`)]},jT),FT=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:g,styles:_,classNames:v,...y}=e,{getPrefixCls:b,direction:x,className:S,variant:C,style:w,classNames:T,styles:E}=Ur(`tag`),[D,O,k,A,j]=phe(e,C),M=k||A,N=h.useContext(Cu),P=f??N,{tag:F}=h.useContext(Br),[I,L]=h.useState(!0),R=Wt(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=Nr([T,v],[E,_],{props:z}),H=h.useMemo(()=>{let e={...V.root,...w,...a};return P||(e={...j,...e}),e},[V.root,w,a,j,P]),U=b(`tag`,n),[W,G]=MT(U),ee=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),K=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},te=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ne]=ld(rd(e),rd(F),{closable:!1,closeIconRender:e=>_u(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:K,onKeyDown:te,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||te(t)},role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(e?.className,`${U}-close-icon`,B.close),style:{...V.close,...e?.style}}))}),re=Sr(y.onClick)||o&&o.type===`a`,ie=vu(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ae=ie?h.createElement(h.Fragment,null,ie,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,oe=p?`a`:`span`,se=h.createElement(oe,{...R,ref:t,className:ee,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ae,ne,k&&h.createElement(hhe,{key:`preset`,prefixCls:U}),A&&h.createElement(_he,{key:`status`,prefixCls:U}));return re?h.createElement($u,{component:`Tag`},se):se});FT.CheckableTag=NT,FT.CheckableTagGroup=fhe;var vhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 IT(){return IT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,IT({},e,{ref:t,icon:vhe.default}))),yhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 RT(){return RT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,RT({},e,{ref:t,icon:yhe.default}))),xhe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},She=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` + ${q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${q(r)} ${q(i)}`,color:g,background:_}}}},she=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new ps(i).onBackground(n).toHexString(),w=new ps(a).onBackground(n).toHexString(),T=new ps(t).onBackground(n).toHexString(),E=new ps(y),D=new ps(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},che=2,lhe=Sc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Go(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:che,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[ohe(F),Qme(F),wT(F),rhe(F),Xme(F),Kme(F),$me(F),Yme(F),wT(F),Jme(F),the(F),Zme(F),ihe(F),qme(F),nhe(F),ehe(F),ahe(F)]},she,{resetFont:!1,unitless:{expandIconScale:!0}}),TT=[],ET=h.createContext({}),uhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(ET);return h.createElement(n,{...t,...e})},dhe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:g,rowClassName:_,column:v,columns:y,children:b,childrenColumnName:x,onChange:S,getPopupContainer:C,loading:w,expandIcon:T,expandable:E,expandedRowRender:D,expandIconColumnIndex:O,indentSize:k,scroll:A,sortDirections:j,locale:M,showSorterTooltip:N={target:`full-header`},virtual:P}=e;Lr(`Table`);let F=$pe(h.useMemo(()=>y||sC(b),[y,b]),v),I=_g(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Wt(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=Yt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:uhe}}:z,[z,V]),{locale:W=Kc,table:G}=h.useContext(Br),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=Ur(`table`),se=ed(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=jr(ie),ue=jr(a),[de,fe]=Nr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=$c(`global`,Kc.global),he=d||TT,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=xc(),ye=h.useMemo(()=>xr(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=og(ge),[xe,Se]=lhe(ge,be),Ce={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:we=`children`}=Ce,Te=h.useMemo(()=>he.some(e=>e?.[we])?`nest`:D||E?.expandedRowRender?`row`:null,[we,he]),Ee={body:h.useRef(null)},De=Qpe(ge),Oe=h.useRef(null),ke=h.useRef(null);vd(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>Sr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=Pme(he,we,Me),Pe={},Fe=(e,t,n=!1)=>{let r={...Pe,...e};n&&(Pe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Ee.body.current&&Ape(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:lT(xT(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=Hme({prefixCls:ge,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Fe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:pe,showSorterTooltip:N,globalLocale:me}),Be=h.useMemo(()=>xT(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=Nme({prefixCls:ge,locale:pe,dropdownPrefixCls:_e,mergedColumns:L,onFilterChange:(e,t)=>{Fe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||ne,rootClassName:m(i,be)}),We=lT(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=Ume(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=Ime(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:Fme(Ke,f),Pe.resetPagination=qe;let Je=h.useMemo(()=>{if(f===!1||!Ke.pageSize)return We;let{current:e=1,total:t,pageSize:n=10}=Ke;return We.lengthn?We.slice((e-1)*n,e*n):We:We.slice((e-1)*n,e*n)},[!!f,We,Ke?.current,Ke?.pageSize,Ke?.total]),[Ye,Xe]=Dpe({prefixCls:ge,data:We,pageData:Je,getRowKey:Me,getRecordByKey:Ne,expandType:Te,childrenColumnName:we,locale:pe,getPopupContainer:C||ne},ye),Ze=(e,t,n)=>m({[`${ge}-row-selected`]:Xe.has(Me(e,t))},Sr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||Zpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,yr(Ce.indentSize)||(Ce.indentSize=yr(k)?k:15);let Qe=h.useCallback(e=>Ge(Ye(Ve(Ie(e)))),[Ie,Ve,Ye]),$e,et;if(f!==!1&&Ke?.total){let e;e=Ke.size?Ke.size:se===`small`||se===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Xpe,{...Ke,classNames:de.pagination,styles:fe.pagination,className:m(`${ge}-pagination ${ge}-pagination-${t}`,Ke.className),size:e}),{placement:n,position:r}=Ke,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(et=t()),e&&($e=t(a(e))),n&&(et=t(a(n)))}else et=t()}let tt=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(xr(w))return{spinning:!0,...w}},[w]),nt=m(Se,be,`${ge}-wrapper`,re,{[`${ge}-wrapper-rtl`]:K===`rtl`},r,i,de.root,xe),rt=h.useMemo(()=>tt?.spinning&&he===TT?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(lS,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Gme:Wme,at={},ot=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ve,o=Math.floor(e*t);switch(se){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ve,se]);return P&&(at.listItemHeight=ot),h.createElement(`div`,{ref:Oe,className:nt,style:fe.root},h.createElement(TS,{spinning:!1,...tt},$e,h.createElement(ET.Provider,{value:H},h.createElement(it,{...at,...R,components:U,scroll:je,classNames:de,styles:fe,ref:ke,columns:L,direction:K,expandable:Ce,prefixCls:ge,className:m({[`${ge}-medium`]:se===`medium`,[`${ge}-small`]:se===`small`,[`${ge}-bordered`]:l,[`${ge}-empty`]:he.length===0},Se,be,xe),data:Je,rowKey:Me,rowClassName:Ze,emptyText:rt,internalHooks:kS,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(yy.Provider,{value:!0},h.createElement(Uu,{getPopupContainer:e=>e},e))})),et))}),DT=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(dhe,{...e,ref:t,_renderTimes:n.current})});DT.SELECTION_COLUMN=bw,DT.EXPAND_COLUMN=OS,DT.SELECTION_ALL=Cpe,DT.SELECTION_INVERT=wpe,DT.SELECTION_NONE=Tpe,DT.Column=Afe,DT.ColumnGroup=jfe,DT.Summary=KS;var OT=DT,fhe=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...io(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},kT=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Go(e,{tagFontSize:i,tagLineHeight:q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},AT=e=>{let t=Jf(new If(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ps(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},jT=Sc(`Tag`,e=>fhe(kT(e)),AT),MT=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:g}=h.useContext(Br),_=h.useContext(Cu),v=d??_,y=e=>{v||(c?.(!a),l?.(e))},b=e=>{u?.(e),!(e.defaultPrevented||v)&&e.key===` `&&(e.preventDefault(),c?.(!a))},x=p(`tag`,n),[S,C]=jT(x),w=m(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,i,S,C);return h.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...r,...g?.style},className:w,onClick:y,onKeyDown:b},s,h.createElement(`span`,null,o))}),phe=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:g,..._}=e,{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C}=Ur(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=jT(w,og(w)),O=jr(x),k=jr(o),[A,j]=Nr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>xr(e)?e:{value:e,label:e}):[],[u]),[N,P]=ye(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(gr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=Yt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement(MT,{key:e.value,className:m(`${T}-item`,A.item,e.className),style:{...j.item,...e.style},checked:g?(N||[]).includes(e.value):N===e.value,onChange:t=>F(t,e),disabled:l},e.label)))});function mhe(e,t){let{color:n,variant:r,bordered:i}=e;return h.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=Cy(o),c=Xae(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ps(o).toHsl();e.l=.95,l.backgroundColor=new ps(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var hhe=e=>Ec(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),ghe=wc([`Tag`,`preset`],e=>hhe(kT(e)),AT);function _he(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var NT=(e,t,n)=>{let r=_he(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},vhe=wc([`Tag`,`status`],e=>{let t=kT(e);return[NT(t,`success`,`Success`),NT(t,`processing`,`Info`),NT(t,`error`,`Error`),NT(t,`warning`,`Warning`)]},AT),PT=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:g,styles:_,classNames:v,...y}=e,{getPrefixCls:b,direction:x,className:S,variant:C,style:w,classNames:T,styles:E}=Ur(`tag`),[D,O,k,A,j]=mhe(e,C),M=k||A,N=h.useContext(Cu),P=f??N,{tag:F}=h.useContext(Br),[I,L]=h.useState(!0),R=Wt(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=Nr([T,v],[E,_],{props:z}),H=h.useMemo(()=>{let e={...V.root,...w,...a};return P||(e={...j,...e}),e},[V.root,w,a,j,P]),U=b(`tag`,n),[W,G]=jT(U),ee=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),K=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},te=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ne]=ld(rd(e),rd(F),{closable:!1,closeIconRender:e=>_u(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:K,onKeyDown:te,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||te(t)},role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(e?.className,`${U}-close-icon`,B.close),style:{...V.close,...e?.style}}))}),re=Sr(y.onClick)||o&&o.type===`a`,ie=vu(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ae=ie?h.createElement(h.Fragment,null,ie,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,oe=p?`a`:`span`,se=h.createElement(oe,{...R,ref:t,className:ee,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ae,ne,k&&h.createElement(ghe,{key:`preset`,prefixCls:U}),A&&h.createElement(vhe,{key:`status`,prefixCls:U}));return re?h.createElement($u,{component:`Tag`},se):se});PT.CheckableTag=MT,PT.CheckableTagGroup=phe;var yhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 FT(){return FT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,FT({},e,{ref:t,icon:yhe.default}))),bhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 LT(){return LT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,LT({},e,{ref:t,icon:bhe.default}))),She=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Che=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` h${t}&, div&-h${t}, div&-h${t} > textarea, h${t} - `]=xhe(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Che=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...po(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},whe=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:As[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},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:q(e.padding),overflowWrap:`break-word`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),The=e=>{let{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`}}}},Ehe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Dhe=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...ro,"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`}}),zT=Sc(`Typography`,e=>{let{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`},"div&, p":{marginBottom:`1em`},...She(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...whe(e),...Che(e),[`${t}-actions`]:{display:`inline`},[` + `]=She(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},whe=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...po(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},The=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:As[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},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:q(e.padding),overflowWrap:`break-word`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),Ehe=e=>{let{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`}}}},Dhe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ohe=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...ro,"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`}}),RT=Sc(`Typography`,e=>{let{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`},"div&, p":{marginBottom:`1em`},...Che(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...The(e),...whe(e),[`${t}-actions`]:{display:`inline`},[` ${t}-expand, ${t}-collapse, ${t}-edit, @@ -344,79 +344,79 @@ html body { ${t}-collapse, ${t}-edit, ${t}-copy:not(${t}-copy-icon-only) - `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...The(e),...Ehe(e),...Dhe(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Ohe=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:g,enterIcon:_=h.createElement(bhe,null)}=e,v=h.useRef(null),y=h.useRef(!1),b=h.useRef(null),[x,S]=h.useState(u);h.useEffect(()=>{S(u)},[u]),h.useEffect(()=>{if(v.current?.resizableTextArea){let{textArea:e}=v.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let C=({target:e})=>{S(e.value.replace(/[\n\r]/g,``))},w=()=>{y.current=!0},T=()=>{y.current=!1},E=({keyCode:e})=>{y.current||(b.current=e)},D=()=>{d(x.trim())},O=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{b.current!==e||y.current||t||n||r||i||(e===Et.ENTER?(D(),p?.()):e===Et.ESC&&f())},k=()=>{D()},[A,j]=zT(t),M=m(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${g}`]:!!g},r,a.root,A,j);return h.createElement(`div`,{className:M,style:{...o.root,...i}},h.createElement(ib,{ref:v,maxLength:c,value:x,onChange:C,onKeyDown:E,onKeyUp:O,onCompositionStart:w,onCompositionEnd:T,onBlur:k,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),_===null?null:vu(_,{className:`${t}-edit-content-confirm`}))},khe=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.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})}},Ahe=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 jhe(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Ahe(e,n)||khe(e,n))}var BT=(e,t={})=>!_r(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Mhe=({copyConfig:e,children:t})=>{let[n,r]=h.useState(!1),[i,a]=h.useState(!1),o=h.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),h.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:pe(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await jhe((Sr(e.text)?await e.text():e.text)||BT(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},VT=(e,t)=>{let n=!!e;return h.useMemo(()=>[n,{...t,...n&&xr(e)?e:null}],[n,e,t])},Nhe=e=>{let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current},Phe=(e,t,n)=>(0,h.useMemo)(()=>e===!0?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:xr(e)?{title:t??n,...e}:{title:e},[e,t,n]),HT=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=Ur(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,h.useMemo)(()=>({root:s}),[s]),g=(0,h.useMemo)(()=>({root:c}),[c]),[_,v]=Nr([m,l,t],[g,u,n],{props:p});return[_,v,f,d]},UT=h.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,p]=zT(u),g=m(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c?.root),_={...l?.root,...s};return h.createElement(n,{...d,className:g,style:_,ref:t},a)}),Fhe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=HT(n,o,s,a,e);return h.createElement(UT,{ref:t,className:m(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),Ihe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,WT({},e,{ref:t,icon:Ihe.default}))),GT=e=>e===!1?[!1,!1]:BT(e);function KT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rhe(e){let t=document.createElement(`em`);e.appendChild(t);let 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}var qT=e=>[`string`,`number`].includes(typeof e),zhe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=GT(a),p=GT(o),{copied:g,copy:_}=r??{},v=n?g:_,y=KT(f[+!!n],v),b=typeof y==`string`?y:v;return h.createElement(Ey,{title:y},h.createElement(`button`,{type:`button`,className:m(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":b,tabIndex:s},n?KT(p[1],h.createElement(Av,null),!0):KT(p[0],l?h.createElement(Hd,null):h.createElement(Lhe,null),!0)))},JT=h.forwardRef(({style:e,children:t},n)=>{let r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),h.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)}),Bhe=e=>e.reduce((e,t)=>e+(qT(t)?String(t).length:1),0);function YT(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var XT=0,ZT=1,QT=2,$T=3,eE=4,tE={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Vhe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=h.useMemo(()=>rn(r),[r]),d=h.useMemo(()=>Bhe(u),[r]),f=h.useMemo(()=>i(u,!1),[r].concat(gr(s))),[p,m]=h.useState(null),g=h.useRef(null),_=h.useRef(null),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),[x,S]=h.useState(!1),[C,w]=h.useState(XT),[T,E]=h.useState(0),[D,O]=h.useState(null);ge(()=>{w(t&&n&&d?ZT:XT)},[n,r,a,t,u].concat(gr(s))),ge(()=>{if(C===ZT)w(QT),O(_.current&&getComputedStyle(_.current).whiteSpace);else if(C===QT){let e=!!v.current?.isExceed();w(e?$T:eE),m(e?[0,d]:null),S(e);let t=v.current?.getHeight()||0,n=a===1?0:y.current?.getHeight()||0,r=b.current?.getHeight()||0;E(Math.max(t,n+r)+1),l(e)}},[C]);let k=p?Math.ceil((p[0]+p[1])/2):0;ge(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(g.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),m(n?[e,r]:[r,t])}},[p,k]);let A=h.useMemo(()=>{if(!t)return i(u,!1);if(C!==$T||!p||p[0]!==p[1]){let e=i(u,!1);return[eE,XT].includes(C)?e:h.createElement(`span`,{style:{...tE,WebkitLineClamp:a}},e)}return i(o?u:YT(u,p[0]),x)},[o,C,p,u].concat(gr(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return h.createElement(h.Fragment,null,A,C===QT&&h.createElement(h.Fragment,null,h.createElement(JT,{style:{...j,...tE,WebkitLineClamp:a},ref:v},f),h.createElement(JT,{style:{...j,...tE,WebkitLineClamp:a-1},ref:y},f),h.createElement(JT,{style:{...j,...tE,WebkitLineClamp:1},ref:b},i([],!0))),C===$T&&p&&p[0]!==p[1]&&h.createElement(JT,{style:{...j,top:400},ref:g},i(YT(u,k),!0)),C===ZT&&h.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var Hhe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return h.createElement(Ey,{open:a,...i},r)};function Uhe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=h.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var Whe=`...`,nE=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],rE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:u,ellipsis:d,editable:f,copyable:p,actions:g,component:_,title:v,onMouseEnter:y,onMouseLeave:b,...x}=e,[S]=$c(`Text`),C=h.useRef(null),w=h.useRef(null),[T,E,D,O]=HT(n,a,o,s,e),k=Wt(x,nE),[A,j]=VT(f),[M,N]=ye(!1,j.editing),{triggerType:P=[`icon`]}=j,F=e=>{e&&j.onStart?.(),N(e)},I=Nhe(M);ge(()=>{!M&&I&&w.current?.focus()},[M]);let L=e=>{e?.preventDefault(),F(!0)},R=e=>{j.onChange?.(e),F(!1)},z=()=>{j.onCancel?.(),F(!1)},[B,V]=VT(p),{placement:H=`end`}=g??{},{copied:U,copyLoading:W,onClick:G}=Mhe({copyConfig:V,children:u}),[ee,K]=h.useState(!1),[te,ne]=h.useState(!1),[re,ie]=h.useState(!1),[ae,oe]=h.useState(!1),[se,ce]=h.useState(!0),[le,ue]=VT(d,{expandable:!1,symbol:e=>e?S?.collapse:S?.expand}),[de,fe]=ye(ue.defaultExpanded||!1,ue.expanded),pe=le&&(!de||ue.expandable===`collapsible`),{rows:me=1}=ue,he=h.useMemo(()=>pe&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||A||B),[pe,ue,A,B]);ge(()=>{le&&!he&&(K(Tt(`webkitLineClamp`)),ne(Tt(`textOverflow`)))},[he,le]);let[_e,ve]=h.useState(pe),be=h.useMemo(()=>he?!1:me===1?te:ee,[he,te,ee]);ge(()=>{ve(be&&pe)},[be,pe]);let xe=Phe(ue.tooltip,j.text,u),Se=_e&&!!xe.title,Ce=pe&&(_e?Se&&ae:re),we=pe&&me===1&&_e,Te=pe&&me>1&&_e,Ee=(e,t)=>{fe(t.expanded),ue.onExpand?.(e,t)},[De,Oe]=h.useState(0),[ke,Ae]=h.useState(!1),[je,Me]=h.useState(!1),Ne=({offsetWidth:e})=>{Oe(e)},Pe=e=>{ie(e),re!==e&&ue.onEllipsis?.(e)};h.useEffect(()=>{let e=C.current;if(le&&Se&&e){let t=Rhe(e);ae!==t&&oe(t)}},[le,Se,u,Te,se,De]),h.useEffect(()=>{let e=C.current;if(typeof IntersectionObserver>`u`||!e||!Se||!pe)return;let t=new IntersectionObserver(()=>{ce(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[Se,pe]);let Fe=h.useMemo(()=>{if(!(!le||_e))return[j.text,u,v,xe.title].find(qT)},[le,_e,v,xe.title,Ce]);if(M)return h.createElement(Ohe,{value:j.text??(typeof u==`string`?u:``),onSave:R,onCancel:z,onEnd:j.onEnd,prefixCls:D,className:r,style:i,direction:O,component:_,maxLength:j.maxLength,autoSize:j.autoSize,enterIcon:j.enterIcon,classNames:T,styles:E});let Le=()=>{let{expandable:e,symbol:t}=ue;return e?h.createElement(`button`,{type:`button`,key:`expand`,className:m(`${D}-${de?`collapse`:`expand`}`,T.action),style:E.action,onClick:e=>Ee(e,{expanded:!de}),"aria-label":de?S.collapse:S?.expand},Sr(t)?t(de):t):null},Re=()=>{if(!A)return;let{icon:e,tooltip:t,tabIndex:n}=j,r=rn(t)[0]||S?.edit,i=typeof r==`string`?r:``;return P.includes(`icon`)?h.createElement(Ey,{key:`edit`,title:t===!1?``:r},h.createElement(`button`,{type:`button`,ref:w,className:m(`${D}-edit`,T.action),style:E.action,onClick:L,"aria-label":i,tabIndex:n},e||h.createElement(LT,{role:`button`}))):null},ze=()=>B?h.createElement(zhe,{key:`copy`,...V,prefixCls:D,copied:U,locale:S,onCopy:G,loading:W,iconOnly:!vr(u),className:T.action,style:E.action}):null,Be=e=>{let t=e&&Le(),n=Re(),r=ze();return!t&&!n&&!r?null:h.createElement(`span`,{key:`operations`,className:m(`${D}-actions`,T.actions,{[`${D}-actions-start`]:H===`start`}),style:E.actions,onMouseEnter:()=>Ae(!0),onMouseLeave:()=>Ae(!1)},t,n,r)},Ve=e=>[e&&!de&&h.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Whe),ue.suffix];return h.createElement(Fl,{onResize:Ne,disabled:!pe},n=>h.createElement(Hhe,{tooltipProps:xe,enableEllipsis:pe,isEllipsis:Ce,open:je&&!ke},h.createElement(UT,{onMouseEnter:e=>{Me(!0),y?.(e)},onMouseLeave:e=>{Me(!1),b?.(e)},className:m({[`${D}-${c}`]:c,[`${D}-disabled`]:l,[`${D}-ellipsis`]:le,[`${D}-ellipsis-single-line`]:we,[`${D}-ellipsis-multiple-line`]:Te,[`${D}-link`]:_===`a`},r),classNames:T,styles:E,prefixCls:D,style:{...i,WebkitLineClamp:Te?me:void 0},component:_,ref:Ie(n,C,t),direction:O,onClick:P.includes(`text`)?L:void 0,"aria-label":Fe?.toString(),title:v,...k},h.createElement(Vhe,{enableMeasure:pe&&!_e,text:u,rows:me,width:De,onEllipsis:Pe,expanded:de,measureDeps:[H],miscDeps:[U,de,W,A,B,H,S].concat(gr(nE.map(t=>e[t])))},(t,n)=>Uhe(e,h.createElement(h.Fragment,null,H===`start`?Be(n):null,t.length>0&&n&&!de&&Fe?h.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ve(n),H===`start`?null:Be(n)))))))}),Ghe=h.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return h.createElement(rE,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Khe=h.forwardRef((e,t)=>{let{children:n,...r}=e;return h.createElement(rE,{ref:t,...r,component:`div`},n)}),qhe=h.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=h.useMemo(()=>xr(n)?Wt(n,[`expandable`,`rows`]):n,[n]);return h.createElement(rE,{ref:t,...i,ellipsis:a,component:`span`},r)}),Jhe=[1,2,3,4,5],Yhe=h.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Jhe.includes(n)?`h${n}`:`h1`;return h.createElement(rE,{ref:t,...i,component:a},r)}),iE=Fhe;iE.Text=qhe,iE.Link=Ghe,iE.Title=Yhe,iE.Paragraph=Khe;var Xhe=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(Rt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function Zhe(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function aE(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function oE(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Zhe(e,t),aE(t)):e.onSuccess(aE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var Qhe=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>Xhe(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await Qhe(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=sE(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||oE,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:oE})}reset(){this.setState({uid:sE()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:g,onMouseEnter:_,onMouseLeave:v,hasControlInside:y,...b}=this.props,x=typeof u==`string`?u:u?.format,S=m(t,{[`${t}-disabled`]:i,[n]:n}),C=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},w=i?{}:{onClick:g?this.onClick:()=>{},onKeyDown:g?this.onKeyDown:()=>{},onMouseEnter:_,onMouseLeave:v,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:y?void 0:`0`};return h.createElement(e,cE({},w,{className:S,role:y?void 0:`button`,style:s}),h.createElement(`input`,cE({},Yt(b,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:x},C,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=e};render(){return h.createElement(tge,lE({},this.props,{ref:this.saveUploader}))}},nge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[` + `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...Ehe(e),...Dhe(e),...Ohe(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),khe=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:g,enterIcon:_=h.createElement(xhe,null)}=e,v=h.useRef(null),y=h.useRef(!1),b=h.useRef(null),[x,S]=h.useState(u);h.useEffect(()=>{S(u)},[u]),h.useEffect(()=>{if(v.current?.resizableTextArea){let{textArea:e}=v.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let C=({target:e})=>{S(e.value.replace(/[\n\r]/g,``))},w=()=>{y.current=!0},T=()=>{y.current=!1},E=({keyCode:e})=>{y.current||(b.current=e)},D=()=>{d(x.trim())},O=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{b.current!==e||y.current||t||n||r||i||(e===Et.ENTER?(D(),p?.()):e===Et.ESC&&f())},k=()=>{D()},[A,j]=RT(t),M=m(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${g}`]:!!g},r,a.root,A,j);return h.createElement(`div`,{className:M,style:{...o.root,...i}},h.createElement(rb,{ref:v,maxLength:c,value:x,onChange:C,onKeyDown:E,onKeyUp:O,onCompositionStart:w,onCompositionEnd:T,onBlur:k,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),_===null?null:vu(_,{className:`${t}-edit-content-confirm`}))},Ahe=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.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})}},jhe=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 Mhe(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await jhe(e,n)||Ahe(e,n))}var zT=(e,t={})=>!_r(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Nhe=({copyConfig:e,children:t})=>{let[n,r]=h.useState(!1),[i,a]=h.useState(!1),o=h.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),h.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:pe(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Mhe((Sr(e.text)?await e.text():e.text)||zT(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},BT=(e,t)=>{let n=!!e;return h.useMemo(()=>[n,{...t,...n&&xr(e)?e:null}],[n,e,t])},Phe=e=>{let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current},Fhe=(e,t,n)=>(0,h.useMemo)(()=>e===!0?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:xr(e)?{title:t??n,...e}:{title:e},[e,t,n]),VT=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=Ur(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,h.useMemo)(()=>({root:s}),[s]),g=(0,h.useMemo)(()=>({root:c}),[c]),[_,v]=Nr([m,l,t],[g,u,n],{props:p});return[_,v,f,d]},HT=h.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,p]=RT(u),g=m(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c?.root),_={...l?.root,...s};return h.createElement(n,{...d,className:g,style:_,ref:t},a)}),Ihe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=VT(n,o,s,a,e);return h.createElement(HT,{ref:t,className:m(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),Lhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,UT({},e,{ref:t,icon:Lhe.default}))),WT=e=>e===!1?[!1,!1]:zT(e);function GT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function zhe(e){let t=document.createElement(`em`);e.appendChild(t);let 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}var KT=e=>[`string`,`number`].includes(typeof e),Bhe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=WT(a),p=WT(o),{copied:g,copy:_}=r??{},v=n?g:_,y=GT(f[+!!n],v),b=typeof y==`string`?y:v;return h.createElement(Ty,{title:y},h.createElement(`button`,{type:`button`,className:m(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":b,tabIndex:s},n?GT(p[1],h.createElement(kv,null),!0):GT(p[0],l?h.createElement(Hd,null):h.createElement(Rhe,null),!0)))},qT=h.forwardRef(({style:e,children:t},n)=>{let r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),h.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)}),Vhe=e=>e.reduce((e,t)=>e+(KT(t)?String(t).length:1),0);function JT(e,t){let n=0,r=[];for(let i=0;it){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var YT=0,XT=1,ZT=2,QT=3,$T=4,eE={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Hhe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=h.useMemo(()=>rn(r),[r]),d=h.useMemo(()=>Vhe(u),[r]),f=h.useMemo(()=>i(u,!1),[r].concat(gr(s))),[p,m]=h.useState(null),g=h.useRef(null),_=h.useRef(null),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),[x,S]=h.useState(!1),[C,w]=h.useState(YT),[T,E]=h.useState(0),[D,O]=h.useState(null);ge(()=>{w(t&&n&&d?XT:YT)},[n,r,a,t,u].concat(gr(s))),ge(()=>{if(C===XT)w(ZT),O(_.current&&getComputedStyle(_.current).whiteSpace);else if(C===ZT){let e=!!v.current?.isExceed();w(e?QT:$T),m(e?[0,d]:null),S(e);let t=v.current?.getHeight()||0,n=a===1?0:y.current?.getHeight()||0,r=b.current?.getHeight()||0;E(Math.max(t,n+r)+1),l(e)}},[C]);let k=p?Math.ceil((p[0]+p[1])/2):0;ge(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(g.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),m(n?[e,r]:[r,t])}},[p,k]);let A=h.useMemo(()=>{if(!t)return i(u,!1);if(C!==QT||!p||p[0]!==p[1]){let e=i(u,!1);return[$T,YT].includes(C)?e:h.createElement(`span`,{style:{...eE,WebkitLineClamp:a}},e)}return i(o?u:JT(u,p[0]),x)},[o,C,p,u].concat(gr(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return h.createElement(h.Fragment,null,A,C===ZT&&h.createElement(h.Fragment,null,h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:a},ref:v},f),h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:a-1},ref:y},f),h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:1},ref:b},i([],!0))),C===QT&&p&&p[0]!==p[1]&&h.createElement(qT,{style:{...j,top:400},ref:g},i(JT(u,k),!0)),C===XT&&h.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var Uhe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return h.createElement(Ty,{open:a,...i},r)};function Whe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=h.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var Ghe=`...`,tE=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],nE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:u,ellipsis:d,editable:f,copyable:p,actions:g,component:_,title:v,onMouseEnter:y,onMouseLeave:b,...x}=e,[S]=$c(`Text`),C=h.useRef(null),w=h.useRef(null),[T,E,D,O]=VT(n,a,o,s,e),k=Wt(x,tE),[A,j]=BT(f),[M,N]=ye(!1,j.editing),{triggerType:P=[`icon`]}=j,F=e=>{e&&j.onStart?.(),N(e)},I=Phe(M);ge(()=>{!M&&I&&w.current?.focus()},[M]);let L=e=>{e?.preventDefault(),F(!0)},R=e=>{j.onChange?.(e),F(!1)},z=()=>{j.onCancel?.(),F(!1)},[B,V]=BT(p),{placement:H=`end`}=g??{},{copied:U,copyLoading:W,onClick:G}=Nhe({copyConfig:V,children:u}),[ee,K]=h.useState(!1),[te,ne]=h.useState(!1),[re,ie]=h.useState(!1),[ae,oe]=h.useState(!1),[se,ce]=h.useState(!0),[le,ue]=BT(d,{expandable:!1,symbol:e=>e?S?.collapse:S?.expand}),[de,fe]=ye(ue.defaultExpanded||!1,ue.expanded),pe=le&&(!de||ue.expandable===`collapsible`),{rows:me=1}=ue,he=h.useMemo(()=>pe&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||A||B),[pe,ue,A,B]);ge(()=>{le&&!he&&(K(Tt(`webkitLineClamp`)),ne(Tt(`textOverflow`)))},[he,le]);let[_e,ve]=h.useState(pe),be=h.useMemo(()=>he?!1:me===1?te:ee,[he,te,ee]);ge(()=>{ve(be&&pe)},[be,pe]);let xe=Fhe(ue.tooltip,j.text,u),Se=_e&&!!xe.title,Ce=pe&&(_e?Se&&ae:re),we=pe&&me===1&&_e,Te=pe&&me>1&&_e,Ee=(e,t)=>{fe(t.expanded),ue.onExpand?.(e,t)},[De,Oe]=h.useState(0),[ke,Ae]=h.useState(!1),[je,Me]=h.useState(!1),Ne=({offsetWidth:e})=>{Oe(e)},Pe=e=>{ie(e),re!==e&&ue.onEllipsis?.(e)};h.useEffect(()=>{let e=C.current;if(le&&Se&&e){let t=zhe(e);ae!==t&&oe(t)}},[le,Se,u,Te,se,De]),h.useEffect(()=>{let e=C.current;if(typeof IntersectionObserver>`u`||!e||!Se||!pe)return;let t=new IntersectionObserver(()=>{ce(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[Se,pe]);let Fe=h.useMemo(()=>{if(!(!le||_e))return[j.text,u,v,xe.title].find(KT)},[le,_e,v,xe.title,Ce]);if(M)return h.createElement(khe,{value:j.text??(typeof u==`string`?u:``),onSave:R,onCancel:z,onEnd:j.onEnd,prefixCls:D,className:r,style:i,direction:O,component:_,maxLength:j.maxLength,autoSize:j.autoSize,enterIcon:j.enterIcon,classNames:T,styles:E});let Le=()=>{let{expandable:e,symbol:t}=ue;return e?h.createElement(`button`,{type:`button`,key:`expand`,className:m(`${D}-${de?`collapse`:`expand`}`,T.action),style:E.action,onClick:e=>Ee(e,{expanded:!de}),"aria-label":de?S.collapse:S?.expand},Sr(t)?t(de):t):null},Re=()=>{if(!A)return;let{icon:e,tooltip:t,tabIndex:n}=j,r=rn(t)[0]||S?.edit,i=typeof r==`string`?r:``;return P.includes(`icon`)?h.createElement(Ty,{key:`edit`,title:t===!1?``:r},h.createElement(`button`,{type:`button`,ref:w,className:m(`${D}-edit`,T.action),style:E.action,onClick:L,"aria-label":i,tabIndex:n},e||h.createElement(IT,{role:`button`}))):null},ze=()=>B?h.createElement(Bhe,{key:`copy`,...V,prefixCls:D,copied:U,locale:S,onCopy:G,loading:W,iconOnly:!vr(u),className:T.action,style:E.action}):null,Be=e=>{let t=e&&Le(),n=Re(),r=ze();return!t&&!n&&!r?null:h.createElement(`span`,{key:`operations`,className:m(`${D}-actions`,T.actions,{[`${D}-actions-start`]:H===`start`}),style:E.actions,onMouseEnter:()=>Ae(!0),onMouseLeave:()=>Ae(!1)},t,n,r)},Ve=e=>[e&&!de&&h.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Ghe),ue.suffix];return h.createElement(Fl,{onResize:Ne,disabled:!pe},n=>h.createElement(Uhe,{tooltipProps:xe,enableEllipsis:pe,isEllipsis:Ce,open:je&&!ke},h.createElement(HT,{onMouseEnter:e=>{Me(!0),y?.(e)},onMouseLeave:e=>{Me(!1),b?.(e)},className:m({[`${D}-${c}`]:c,[`${D}-disabled`]:l,[`${D}-ellipsis`]:le,[`${D}-ellipsis-single-line`]:we,[`${D}-ellipsis-multiple-line`]:Te,[`${D}-link`]:_===`a`},r),classNames:T,styles:E,prefixCls:D,style:{...i,WebkitLineClamp:Te?me:void 0},component:_,ref:Ie(n,C,t),direction:O,onClick:P.includes(`text`)?L:void 0,"aria-label":Fe?.toString(),title:v,...k},h.createElement(Hhe,{enableMeasure:pe&&!_e,text:u,rows:me,width:De,onEllipsis:Pe,expanded:de,measureDeps:[H],miscDeps:[U,de,W,A,B,H,S].concat(gr(tE.map(t=>e[t])))},(t,n)=>Whe(e,h.createElement(h.Fragment,null,H===`start`?Be(n):null,t.length>0&&n&&!de&&Fe?h.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ve(n),H===`start`?null:Be(n)))))))}),Khe=h.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return h.createElement(nE,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),qhe=h.forwardRef((e,t)=>{let{children:n,...r}=e;return h.createElement(nE,{ref:t,...r,component:`div`},n)}),Jhe=h.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=h.useMemo(()=>xr(n)?Wt(n,[`expandable`,`rows`]):n,[n]);return h.createElement(nE,{ref:t,...i,ellipsis:a,component:`span`},r)}),Yhe=[1,2,3,4,5],Xhe=h.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Yhe.includes(n)?`h${n}`:`h1`;return h.createElement(nE,{ref:t,...i,component:a},r)}),rE=Ihe;rE.Text=Jhe,rE.Link=Khe,rE.Title=Xhe,rE.Paragraph=qhe;var Zhe=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(Rt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function Qhe(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function iE(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function aE(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Qhe(e,t),iE(t)):e.onSuccess(iE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var $he=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>Zhe(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await $he(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=oE(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||aE,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:aE})}reset(){this.setState({uid:oE()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:g,onMouseEnter:_,onMouseLeave:v,hasControlInside:y,...b}=this.props,x=typeof u==`string`?u:u?.format,S=m(t,{[`${t}-disabled`]:i,[n]:n}),C=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},w=i?{}:{onClick:g?this.onClick:()=>{},onKeyDown:g?this.onKeyDown:()=>{},onMouseEnter:_,onMouseLeave:v,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:y?void 0:`0`};return h.createElement(e,sE({},w,{className:S,role:y?void 0:`button`,style:s}),h.createElement(`input`,sE({},Yt(b,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:x},C,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.uploader=e};render(){return h.createElement(nge,cE({},this.props,{ref:this.saveUploader}))}},rge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${q(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},rge=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...so(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...ro,padding:`0 ${q(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[` + `]:{color:e.colorTextDisabled}}}}}},ige=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...so(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...ro,padding:`0 ${q(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},ige=e=>{let{componentCls:t}=e,n=new to(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new to(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:$d(e)},n,r]},age=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},age=e=>{let{componentCls:t}=e,n=new to(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new to(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:$d(e)},n,r]},oge=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...ro,width:r,height:r,lineHeight:q(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${q(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},oge=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[` + `]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...ro,width:r,height:r,lineHeight:q(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${q(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},sge=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:{...so(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${q(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${q(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},sge=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},cge=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...io(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},lge=Sc(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=Go(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[cge(o),nge(o),age(o),oge(o),rge(o),ige(o),sge(o),Jd(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),uge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,fE({},e,{ref:t,icon:uge.default}))),fge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,pE({},e,{ref:t,icon:fge.default})));function hE(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function gE(e,t){let n=gr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function _E(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function pge(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var mge=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},vE=e=>e.indexOf(`image/`)===0,hge=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],gge=e=>{if(e.type&&!e.thumbUrl)return vE(e.type);let t=e.thumbUrl||e.url||``,n=mge(t||e.name);return/^data:image\//.test(t)||hge.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},yE=200;function _ge(e){return new Promise(t=>{if(!e.type||!vE(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=yE,n.height=yE,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${yE}px; height: ${yE}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=yE,s=yE,c=0,l=0;e>a?(s=yE/e*a,l=-(s-o)/2):(o=yE/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var vge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,bE({},e,{ref:t,icon:vge.default}))),yge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 SE(){return SE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,SE({},e,{ref:t,icon:yge.default}))),bge={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},xge=()=>{let e=(0,h.useRef)([]),t=(0,h.useRef)(null);return(0,h.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},wE=({bg:e,children:t})=>h.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function TE(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Sge=h.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,g=p?`#FFF`:void 0,_=d/2,v=h.createElement(`circle`,{className:m(`${n}-circle-path`,o),r:a,cx:_,cy:_,stroke:g,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return v;let y=`${i}-conic`,b=f?`${180+f/2}deg`:`0deg`,x=TE(r,(360-f)/360),S=TE(r,1),C=`conic-gradient(from ${b}, ${x.join(`, `)})`,w=`linear-gradient(to ${f?`bottom`:`top`}, ${S.join(`, `)})`;return h.createElement(h.Fragment,null,h.createElement(`mask`,{id:y},v),h.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${y})`},h.createElement(wE,{bg:w},h.createElement(wE,{bg:C}))))}),EE=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Cge=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:h.createElement(`style`,null,`@keyframes ${n} { + `]:{zIndex:10,width:r,margin:`0 ${q(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},cge=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},lge=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...io(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},uge=Sc(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=Go(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[lge(o),rge(o),oge(o),sge(o),ige(o),age(o),cge(o),Jd(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),dge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function dE(){return dE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,dE({},e,{ref:t,icon:dge.default}))),pge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,fE({},e,{ref:t,icon:pge.default})));function mE(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function hE(e,t){let n=gr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function gE(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function mge(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var hge=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},_E=e=>e.indexOf(`image/`)===0,gge=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],_ge=e=>{if(e.type&&!e.thumbUrl)return _E(e.type);let t=e.thumbUrl||e.url||``,n=hge(t||e.name);return/^data:image\//.test(t)||gge.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},vE=200;function vge(e){return new Promise(t=>{if(!e.type||!_E(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=vE,n.height=vE,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${vE}px; height: ${vE}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=vE,s=vE,c=0,l=0;e>a?(s=vE/e*a,l=-(s-o)/2):(o=vE/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var yge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 yE(){return yE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,yE({},e,{ref:t,icon:yge.default}))),bge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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 xE(){return xE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,xE({},e,{ref:t,icon:bge.default}))),xge={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Sge=()=>{let e=(0,h.useRef)([]),t=(0,h.useRef)(null);return(0,h.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},CE=({bg:e,children:t})=>h.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function wE(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Cge=h.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,g=p?`#FFF`:void 0,_=d/2,v=h.createElement(`circle`,{className:m(`${n}-circle-path`,o),r:a,cx:_,cy:_,stroke:g,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return v;let y=`${i}-conic`,b=f?`${180+f/2}deg`:`0deg`,x=wE(r,(360-f)/360),S=wE(r,1),C=`conic-gradient(from ${b}, ${x.join(`, `)})`,w=`linear-gradient(to ${f?`bottom`:`top`}, ${S.join(`, `)})`;return h.createElement(h.Fragment,null,h.createElement(`mask`,{id:y},v),h.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${y})`},h.createElement(CE,{bg:w},h.createElement(CE,{bg:C}))))}),TE=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},wge=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:h.createElement(`style`,null,`@keyframes ${n} { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } - }`)}});function DE(){return DE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:g,percent:_,loading:v,...y}={...bge,...e},b=we(t),x=`${b}-gradient`,S=50-o/2,C=Math.PI*2*S,w=c>0?90+c/2:-90,T=C*((360-c)/360),{count:E,gap:D}=typeof a==`object`?a:{count:a,gap:2},O=OE(_),k=OE(g),A=k.find(e=>e&&typeof e==`object`),j=A&&typeof A==`object`?`butt`:d,{indeterminateStyleProps:M,indeterminateStyleAnimation:N}=Cge({id:b,loading:v}),P=EE(C,T,0,100,w,c,l,u,j,o),F=xge(),I=()=>{let e=0;return O.map((t,a)=>{let s=k[a]||k[k.length-1],u=EE(C,T,e,t,w,c,l,s,j,o);return e+=t,h.createElement(Sge,{key:a,color:s,ptg:t,radius:S,prefixCls:n,gradientId:x,className:r.track,style:{...u,...M,...i.track},strokeLinecap:j,strokeWidth:o,gapDegree:c,ref:e=>{F[a]=e},size:100})}).reverse()},L=()=>{let e=Math.round(E*(O[0]/100)),t=100/E,a=0;return Array(E).fill(null).map((s,d)=>{let f=d<=e-1?k[0]:u,p=f&&typeof f==`object`?`url(#${x})`:void 0,g=EE(C,T,a,t,w,c,l,f,`butt`,o,D);return a+=(T-g.strokeDashoffset+D)*100/T,h.createElement(`circle`,{key:d,className:m(`${n}-circle-path`,r.track),r:S,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...g,...i.track},ref:e=>{F[d]=e}})})};return h.createElement(`svg`,DE({className:m(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},y),!E&&h.createElement(`circle`,{className:m(`${n}-circle-rail`,r.rail),r:S,cx:50,cy:50,stroke:u,strokeLinecap:j,strokeWidth:s||o,style:{...P,...i.rail}}),E?L():I(),N)};function kE(e){return!e||e<0?0:e>100?100:e}function AE({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Tge=({percent:e,success:t})=>{let n=kE(AE({success:t}));return[n,kE(kE(e)-n)]},Ege=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Es.green,t||null]},jE=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):yr(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):yr(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:yr(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},Dge=3,Oge=e=>Dge/e*100,ME=[`root`,`body`,`indicator`],kge=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:g=u,steps:_}=e,{direction:v}=Ur(`progress`),y=i??a,[b,x]=jE(g,`circle`),{strokeWidth:S}=e;S===void 0&&(S=Math.max(Oge(b),6));let C={width:b,height:x,fontSize:b*.15+6},w=h.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),T=Tge(e),E=h.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=v===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[v,c,s,d]),D=xr(e.strokeColor),O=Ege({success:p,strokeColor:e.strokeColor}),k=m(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),A=h.createElement(wge,{steps:_,percent:_?T[1]:T,strokeWidth:S,railWidth:S,strokeColor:_?O[1]:O,strokeLinecap:o,railColor:y,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Wt(n,ME),styles:Wt(r,ME)}),j=b<=20,M=h.createElement(`div`,{className:k,style:{...C,...r.body}},A,!j&&f);return j?h.createElement(Ey,{title:f},M):M},NE=`--progress-line-stroke-color`,Age=e=>{let t=e?`100%`:`-100%`;return new to(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},jge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...io(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},Mge=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:Age(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},Nge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},Pge=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Fge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},Ige=Sc(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=Go(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[jge(n),Mge(n),Nge(n),Pge(n),Fge(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),Lge=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},Rge=(e,t)=>{let{from:n=Es.blue,to:r=Es.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${Lge(a)})`;return{background:e,[NE]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[NE]:o}},zge=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:g}=e,{align:_,type:v}=p,y=d??f,b=l===`square`||l===`butt`?0:void 0,[x,S]=jE(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),C={backgroundColor:y||void 0,borderRadius:b,height:S},w=`${t}-track`,T=c&&typeof c!=`string`?Rge(c,i):{[NE]:c,background:c},E={width:`${kE(a)}%`,height:S,borderRadius:b,...T},D=AE(e),O={width:`${kE(D)}%`,height:S,borderRadius:b,backgroundColor:g?.strokeColor};return h.createElement(`div`,{className:m(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:_===`center`&&v===`outer`}),style:{width:x>0?x:`100%`,...r.body}},h.createElement(`div`,{className:m(`${t}-rail`,n.rail),style:{...C,...r.rail}},h.createElement(`div`,{className:m(w,n.track),style:{...E,...r.track}},v===`inner`&&u),D!==void 0&&h.createElement(`div`,{className:m(w,`${w}-success`,n.track),style:{...O,...r.track}})),v===`outer`&&u)},Bge=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[g,_]=jE(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),v=g/i,y=Array.from({length:i}),b=l??u;for(let e=0;e{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:g,style:_,percentPosition:v={},...y}=e,{align:b=`end`,type:x=`outer`}=v,S=Array.isArray(c)?c[0]:c,C=typeof c==`string`||Array.isArray(c)?c:void 0,w=h.useMemo(()=>S?new ps(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=h.useMemo(()=>{let t=AE(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=h.useMemo(()=>!Vge.includes(p)&&T>=100?`success`:p||`normal`,[p,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=Ur(`progress`),N=D(`progress`,n),[P,F]=Ige(N),I={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:v},L=jr(A),R=jr(_),[z,B]=Nr([j,a],[M,L,o,R],{props:I}),V=f===`line`,H=V&&!s,U=h.useMemo(()=>{if(!d)return null;let t=AE(e),n,r=g||(e=>`${e}%`),i=V&&w&&x===`inner`;return x===`inner`||g||E!==`exception`&&E!==`success`?n=r(kE(l),kE(t)):E===`exception`?n=V?h.createElement(re,null):h.createElement(oe,null):E===`success`&&(n=V?h.createElement(K,null):h.createElement(Av,null)),h.createElement(`span`,{className:m(`${N}-indicator`,{[`${N}-indicator-bright`]:i,[`${N}-indicator-${b}`]:H,[`${N}-indicator-${x}`]:H},z.indicator),style:B.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,T,E,f,N,g,V,w,x,b,H,z.indicator,B.indicator]),W={...e,classNames:z,styles:B},G;f===`line`?G=s?h.createElement(Bge,{...W,strokeColor:C,prefixCls:N,steps:xr(s)?s.count:s},U):h.createElement(zge,{...W,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},U):(f===`circle`||f===`dashboard`)&&(G=h.createElement(kge,{...W,strokeColor:S,prefixCls:N,progressStatus:E},U));let ee=m(N,`${N}-status-${E}`,{[`${N}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${N}-inline-circle`]:f===`circle`&&jE(u,`circle`)[0]<=20,[`${N}-line`]:H,[`${N}-line-align-${b}`]:H,[`${N}-line-position-${x}`]:H,[`${N}-steps`]:s,[`${N}-show-info`]:d,[`${N}-small`]:u===`small`,[`${N}-rtl`]:O===`rtl`},k,r,i,z.root,P,F);return h.createElement(`div`,{ref:t,style:B.root,className:ee,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...Wt(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},G)}),Uge=h.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:_,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,extra:S,onPreview:C,onDownload:w,onClose:T},E)=>{let{status:D}=s,[O,k]=h.useState(D);h.useEffect(()=>{D!==`removed`&&k(D)},[D]);let[A,j]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=u(s),N=h.createElement(`div`,{className:`${e}-icon`},M);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(O===`uploading`||!s.thumbUrl&&!s.url){let t=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!==`uploading`});N=h.createElement(`div`,{className:t},M)}else{let t=p?.(s)?h.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):M,n=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});N=h.createElement(`a`,{className:n,onClick:e=>C(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let P=m(`${e}-list-item`,`${e}-list-item-${O}`,r?.item),F=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,I=(Sr(_)?_(s):_)?d((Sr(b)?b(s):b)||h.createElement(xE,null),()=>T(s),e,a.removeFile,!0):null,L=(Sr(v)?v(s):v)&&O===`done`?d((Sr(x)?x(s):x)||h.createElement(CE,null),()=>w(s),e,a.downloadFile):null,R=o!==`picture-card`&&o!==`picture-circle`&&h.createElement(`span`,{key:`download-delete`,className:m(`${e}-list-item-actions`,{picture:o===`picture`})},L,I),z=Sr(S)?S(s):S,B=z&&h.createElement(`span`,{className:`${e}-list-item-extra`},z),V=m(`${e}-list-item-name`),H=s.url?h.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:V,title:s.name,...F,href:s.url,onClick:e=>C(s,e)},s.name,B):h.createElement(`span`,{key:`view`,role:`button`,tabIndex:0,className:V,onClick:e=>C(s,e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(s,e))},title:s.name},s.name,B),U=(Sr(g)?g(s):g)&&(s.url||s.thumbUrl)?h.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>C(s,e),title:a.previewFile},Sr(y)?y(s):y||h.createElement(rb,null)):null,W=(o===`picture-card`||o===`picture-circle`)&&O!==`uploading`&&h.createElement(`span`,{className:`${e}-list-item-actions`},U,O===`done`&&L,I),{getPrefixCls:G}=h.useContext(Br),ee=G(),K=h.createElement(`div`,{className:P,style:i?.item},N,H,R,W,A&&h.createElement(ur,{motionName:`${ee}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?h.createElement(Hge,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return h.createElement(`div`,{className:m(`${e}-list-item-progress`,t)},n)})),te=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,ne=O===`error`?h.createElement(Ey,{title:te,getPopupContainer:e=>e.parentNode},K):K;return h.createElement(`div`,{className:m(`${e}-list-item-container`,t),style:n,ref:E},f?f(ne,s,c,{download:w.bind(null,s),preview:C.bind(null,s),remove:T.bind(null,s)}):ne)}),Wge=h.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=_ge,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=gge,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:g=!1,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:T,classNames:E,styles:D}=e,[,O]=ud(),[k,A]=h.useState(!1),j=[`picture-card`,`picture-circle`].includes(n);h.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,O()}))})},[n,d,r]),h.useEffect(()=>{A(!0)},[]);let M=(e,t)=>{if(i)return t?.preventDefault(),i(e)},N=e=>{Sr(a)?a(e):e.url&&window.open(e.url)},P=e=>{o?.(e)},F=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?h.createElement(Hd,null):s.uploading,i=l?.(e)?h.createElement(mE,null):h.createElement(Vw,null);return t?r:i}return t?h.createElement(Hd,null):h.createElement(dge,null)},I=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),h.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?T:!1};return h.isValidElement(e)?h.createElement(gp,{...a,icon:vu(e,{...e.props,onClick:()=>{}})}):h.createElement(gp,{...a},h.createElement(`span`,null,e))};h.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));let{getPrefixCls:L}=h.useContext(Br),R=L(`upload`,u),z=L(),B=m(`${R}-list`,`${R}-list-${n}`,E?.list),V=h.useMemo(()=>Wt(Gf(z),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[z]),H={...j?{}:V,motionDeadline:2e3,motionName:`${R}-${j?`animate-inline`:`animate`}`,keys:gr(d.map(e=>({key:e.uid,file:e}))),motionAppear:k};return h.createElement(`div`,{className:B,style:D?.list},h.createElement(lr,{...H,component:!1},({key:e,file:t,className:r,style:i})=>h.createElement(Uge,{key:e,locale:s,prefixCls:R,className:r,style:i,classNames:E,styles:D,file:t,items:d,progress:x,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:g,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,iconRender:F,actionIconRender:I,itemRender:w,onPreview:M,onDownload:N,onClose:P})),S&&h.createElement(ur,{...H,visible:C,forceRender:!0},({className:e,style:t})=>vu(S,n=>({className:m(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),PE=`__LIST_IGNORE_${Date.now()}__`,FE=h.forwardRef((e,t)=>{let n=Ur(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:_,isImageUrl:v,progress:y,prefixCls:b,className:x,type:S=`select`,children:C,style:w,itemRender:T,maxCount:E,data:D={},multiple:O=!1,hasControlInside:k=!0,action:A=``,accept:j,supportServerRender:M=!0,rootClassName:N,styles:P,classNames:F}=e,I=h.useContext(Cu),L=p??I,R=e.customRequest||n.customRequest,z=n.progress||y?{...n.progress,...y}:void 0,B=td(j,n.accept,``),[V,H]=ye(i,r),U=V||[],[W,G]=h.useState(`drop`),ee=h.useRef(null),K=h.useRef(null);h.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let te=(e,t,n)=>{let r=gr(t),i=!1;E===1?r=r.slice(-1):E&&(i=r.length>E,r=r.slice(0,E)),(0,Sn.flushSync)(()=>{H(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Sn.flushSync)(()=>{u?.(a)})},ne=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[PE],e===PE)return Object.defineProperty(t,PE,{value:!0,configurable:!0}),!1;xr(e)&&(i=e)}return i},re=e=>{let t=e.filter(e=>!e.file[PE]);if(!t.length)return;let n=t.map(e=>hE(e.file)),r=gr(U);n.forEach(e=>{r=gE(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}te(i,r)})},ie=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!_E(t,U))return;let r=hE(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,te(r,gE(r,U))},ae=(e,t)=>{if(!_E(t,U))return;let n=hE(t);n.status=`uploading`,n.percent=e.percent,te(n,gE(n,U),e)},oe=(e,t,n)=>{if(!_E(n,U))return;let r=hE(n);r.error=e,r.response=t,r.status=`error`,te(r,gE(r,U))},se=e=>{let t;Promise.resolve(Sr(a)?a(e):a).then(n=>{if(n===!1)return;let r=pge(e,U);r&&(t={...e,status:`removed`},U?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),ee.current?.abort(t),te(t,r))})},ce=e=>{G(e.type),e.type===`drop`&&d?.(e)};h.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:ae,onError:oe,fileList:U,upload:ee.current,nativeElement:K.current}));let{getPrefixCls:le,direction:ue,className:de,style:fe,classNames:pe,styles:me}=Ur(`upload`),he=le(`upload`,b),ge={...e,listType:s,showUploadList:o,type:S,multiple:O,hasControlInside:k,supportServerRender:M,disabled:L},[_e,ve]=Nr([pe,F],[me,P],{props:ge}),be={onBatchStart:re,onError:oe,onProgress:ae,onSuccess:ie,...e,customRequest:R,data:D,multiple:O,action:A,accept:B,supportServerRender:M,prefixCls:he,disabled:L,beforeUpload:ne,onChange:void 0,hasControlInside:k};delete be.className,delete be.style,(!C||L)&&delete be.id;let xe=`${he}-wrapper`,[Se,Ce]=lge(he,xe),[we]=$c(`Upload`,Kc.Upload),{showRemoveIcon:Te,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,extra:je}=typeof o==`boolean`?{}:o,Me=Te===void 0?!L:Te,Ne=(e,t)=>o?h.createElement(Wge,{classNames:_e,styles:ve,prefixCls:he,listType:s,items:U,previewFile:f,onPreview:c,onDownload:l,onRemove:se,showRemoveIcon:Me,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,iconRender:_,extra:je,locale:{...we,...g},isImageUrl:v,progress:z,appendAction:e,appendActionVisible:t,itemRender:T,disabled:L}):e,Pe=m(xe,x,N,Se,Ce,de,_e.root,{[`${he}-rtl`]:ue===`rtl`,[`${he}-picture-card-wrapper`]:s===`picture-card`,[`${he}-picture-circle-wrapper`]:s===`picture-circle`}),Fe={...ve.root},Ie={...fe,...w};if(S===`drag`){let e=m(Se,he,`${he}-drag`,{[`${he}-drag-uploading`]:U.some(e=>e.status===`uploading`),[`${he}-drag-hover`]:W===`dragover`,[`${he}-disabled`]:L,[`${he}-rtl`]:ue===`rtl`},_e.trigger);return h.createElement(`span`,{className:Pe,ref:K,style:Fe},h.createElement(`div`,{className:e,style:{...Ie,...ve.trigger},onDrop:ce,onDragOver:ce,onDragLeave:ce},h.createElement(dE,{...be,ref:ee,className:`${he}-btn`},h.createElement(`div`,{className:`${he}-drag-container`},C))),Ne())}let Le=m(he,`${he}-select`,{[`${he}-disabled`]:L,[`${he}-hidden`]:!C},_e.trigger),Re=h.createElement(`div`,{className:Le,style:{...Ie,...ve.trigger}},h.createElement(dE,{...be,ref:ee}));return s===`picture-card`||s===`picture-circle`?h.createElement(`span`,{className:Pe,ref:K,style:Fe},Ne(Re,!!C)):h.createElement(`span`,{className:Pe,ref:K,style:Fe},Re,Ne())}),Gge=h.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return h.createElement(FE,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),IE=FE;IE.Dragger=Gge,IE.LIST_IGNORE=PE;var LE=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Kge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),qge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),Jge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={...qge().commonLocale,locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1}})),RE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),zE=o((e=>{var t=LE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Jge()),r=t(RE()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),Yge=o((e=>{var t=LE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=t(zE()).default})),Xge=o((e=>{var t=LE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Kge()),r=t(Yge()),i=t(zE()),a=t(RE()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`,show:`显示`,hide:`隐藏`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),Zge=o(((e,t)=>{t.exports=Xge()})),Qge=`modulepreload`,$ge=function(e){return`/`+e},BE={},e_e=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=$ge(t,n),t=s(t),t in BE)return;BE[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Qge,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},VE=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,HE=/^[\\/]{2}/;function t_e(e,t){return t+e.replace(/\\/g,`/`)}var UE=`popstate`;function WE(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function n_e(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return JE(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:YE(t)}return i_e(t,n,null,e)}function GE(e,t){if(e===!1||e==null)throw Error(t)}function KE(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function r_e(){return Math.random().toString(36).substring(2,10)}function qE(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function JE(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?XE(t):t,state:n,key:t&&t.key||r||r_e(),mask:i}}function YE({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function XE(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function i_e(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=WE(e)?e:JE(h.location,e,t);n&&n(r,e),l=u()+1;let d=qE(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=WE(e)?e:JE(h.location,e,t);n&&n(r,e),l=u();let i=qE(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return a_e(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(UE,d),c=e,()=>{i.removeEventListener(UE,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function a_e(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),GE(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:YE(t);return i=i.replace(/ $/,`%20`),!n&&HE.test(i)&&(i=r+i),new URL(i,r)}function ZE(e,t,n=`/`){return o_e(e,t,n,!1)}function o_e(e,t,n,r,i){let a=iD((typeof t==`string`?XE(t):t).pathname||`/`,n);if(a==null)return null;let o=i??c_e(e),s=null,c=y_e(a);for(let e=0;s==null&&e{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;GE(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=lD([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(GE(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),QE(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:g_e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=rD(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of $E(e.path))a(e,t,!0,n)}),t}function $E(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=$E(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function l_e(e){e.sort((e,t)=>e.score===t.score?__e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var u_e=/^:[\w-]+$/,d_e=3,f_e=2,p_e=1,m_e=10,h_e=-2,eD=e=>e===`*`;function g_e(e,t){let n=e.split(`/`),r=n.length;return n.some(eD)&&(r+=h_e),t&&(r+=f_e),n.filter(e=>!eD(e)).reduce((e,t)=>e+(u_e.test(t)?d_e:t===``?p_e:m_e),r)}function __e(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function v_e(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function rD(e,t=!1,n=!0){KE(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function y_e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return KE(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function iD(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function b_e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?XE(e):e,a;return n?(n=S_e(n),a=n.startsWith(`/`)?aD(n.substring(1),`/`):aD(n,t)):a=t,{pathname:a,search:w_e(r),hash:T_e(i)}}function aD(e,t){let n=uD(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function oD(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function x_e(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function sD(e){let t=x_e(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function cD(e,t,n,r=!1){let i;typeof e==`string`?i=XE(e):(i={...e},GE(!i.pathname||!i.pathname.includes(`?`),oD(`?`,`pathname`,`search`,i)),GE(!i.pathname||!i.pathname.includes(`#`),oD(`#`,`pathname`,`hash`,i)),GE(!i.search||!i.search.includes(`#`),oD(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=b_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var S_e=e=>e.replace(/[\\/]{2,}/g,`/`),lD=e=>S_e(e.join(`/`)),uD=e=>e.replace(/\/+$/,``),C_e=e=>uD(e).replace(/^\/*/,`/`),w_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,T_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,E_e=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function D_e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function O_e(e){return lD(e.map(e=>e.route.path).filter(Boolean))||`/`}var k_e=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function A_e(e,t){let n=e;if(typeof n!=`string`||!VE.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(k_e)try{let e=new URL(window.location.href),r=HE.test(n)?new URL(t_e(n,e.protocol)):new URL(n),a=iD(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{KE(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var j_e=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(j_e);var M_e=[`GET`,...j_e];new Set(M_e);var N_e=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function P_e(e){try{return N_e.includes(new URL(e).protocol)}catch{return!1}}var dD=h.createContext(null);dD.displayName=`DataRouter`;var fD=h.createContext(null);fD.displayName=`DataRouterState`;var F_e=h.createContext(!1);function I_e(){return h.useContext(F_e)}var L_e=h.createContext({isTransitioning:!1});L_e.displayName=`ViewTransition`;var R_e=h.createContext(new Map);R_e.displayName=`Fetchers`;var z_e=h.createContext(null);z_e.displayName=`Await`;var pD=h.createContext(null);pD.displayName=`Navigation`;var mD=h.createContext(null);mD.displayName=`Location`;var hD=h.createContext({outlet:null,matches:[],isDataRoute:!1});hD.displayName=`Route`;var gD=h.createContext(null);gD.displayName=`RouteError`;var B_e=`REACT_ROUTER_ERROR`,V_e=`REDIRECT`,H_e=`ROUTE_ERROR_RESPONSE`;function U_e(e){if(e.startsWith(`${B_e}:${V_e}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function W_e(e){if(e.startsWith(`${B_e}:${H_e}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new E_e(t.status,t.statusText,t.data)}catch{}}function G_e(e,{relative:t}={}){GE(_D(),`useHref() may be used only in the context of a component.`);let{basename:n,navigator:r}=h.useContext(pD),{hash:i,pathname:a,search:o}=bD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:lD([n,a])),r.createHref({pathname:s,search:o,hash:i})}function _D(){return h.useContext(mD)!=null}function vD(){return GE(_D(),`useLocation() may be used only in the context of a component.`),h.useContext(mD).location}var K_e=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function q_e(e){h.useContext(pD).static||h.useLayoutEffect(e)}function yD(){let{isDataRoute:e}=h.useContext(hD);return e?uve():J_e()}function J_e(){GE(_D(),`useNavigate() may be used only in the context of a component.`);let e=h.useContext(dD),{basename:t,navigator:n}=h.useContext(pD),{matches:r}=h.useContext(hD),{pathname:i}=vD(),a=JSON.stringify(sD(r)),o=h.useRef(!1);return q_e(()=>{o.current=!0}),h.useCallback((r,s={})=>{if(KE(o.current,K_e),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=cD(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:lD([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}h.createContext(null);function Y_e(){let{matches:e}=h.useContext(hD);return e[e.length-1]?.params??{}}function bD(e,{relative:t}={}){let{matches:n}=h.useContext(hD),{pathname:r}=vD(),i=JSON.stringify(sD(n));return h.useMemo(()=>cD(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function X_e(e,t){return Z_e(e,t)}function Z_e(e,t,n){GE(_D(),`useRoutes() may be used only in the context of a component.`);let{navigator:r}=h.useContext(pD),{matches:i}=h.useContext(hD),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;fve(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + }`)}});function EE(){return EE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:g,percent:_,loading:v,...y}={...xge,...e},b=we(t),x=`${b}-gradient`,S=50-o/2,C=Math.PI*2*S,w=c>0?90+c/2:-90,T=C*((360-c)/360),{count:E,gap:D}=typeof a==`object`?a:{count:a,gap:2},O=DE(_),k=DE(g),A=k.find(e=>e&&typeof e==`object`),j=A&&typeof A==`object`?`butt`:d,{indeterminateStyleProps:M,indeterminateStyleAnimation:N}=wge({id:b,loading:v}),P=TE(C,T,0,100,w,c,l,u,j,o),F=Sge(),I=()=>{let e=0;return O.map((t,a)=>{let s=k[a]||k[k.length-1],u=TE(C,T,e,t,w,c,l,s,j,o);return e+=t,h.createElement(Cge,{key:a,color:s,ptg:t,radius:S,prefixCls:n,gradientId:x,className:r.track,style:{...u,...M,...i.track},strokeLinecap:j,strokeWidth:o,gapDegree:c,ref:e=>{F[a]=e},size:100})}).reverse()},L=()=>{let e=Math.round(E*(O[0]/100)),t=100/E,a=0;return Array(E).fill(null).map((s,d)=>{let f=d<=e-1?k[0]:u,p=f&&typeof f==`object`?`url(#${x})`:void 0,g=TE(C,T,a,t,w,c,l,f,`butt`,o,D);return a+=(T-g.strokeDashoffset+D)*100/T,h.createElement(`circle`,{key:d,className:m(`${n}-circle-path`,r.track),r:S,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...g,...i.track},ref:e=>{F[d]=e}})})};return h.createElement(`svg`,EE({className:m(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},y),!E&&h.createElement(`circle`,{className:m(`${n}-circle-rail`,r.rail),r:S,cx:50,cy:50,stroke:u,strokeLinecap:j,strokeWidth:s||o,style:{...P,...i.rail}}),E?L():I(),N)};function OE(e){return!e||e<0?0:e>100?100:e}function kE({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Ege=({percent:e,success:t})=>{let n=OE(kE({success:t}));return[n,OE(OE(e)-n)]},Dge=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Es.green,t||null]},AE=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):yr(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):yr(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:yr(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},Oge=3,kge=e=>Oge/e*100,jE=[`root`,`body`,`indicator`],Age=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:g=u,steps:_}=e,{direction:v}=Ur(`progress`),y=i??a,[b,x]=AE(g,`circle`),{strokeWidth:S}=e;S===void 0&&(S=Math.max(kge(b),6));let C={width:b,height:x,fontSize:b*.15+6},w=h.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),T=Ege(e),E=h.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=v===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[v,c,s,d]),D=xr(e.strokeColor),O=Dge({success:p,strokeColor:e.strokeColor}),k=m(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),A=h.createElement(Tge,{steps:_,percent:_?T[1]:T,strokeWidth:S,railWidth:S,strokeColor:_?O[1]:O,strokeLinecap:o,railColor:y,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Wt(n,jE),styles:Wt(r,jE)}),j=b<=20,M=h.createElement(`div`,{className:k,style:{...C,...r.body}},A,!j&&f);return j?h.createElement(Ty,{title:f},M):M},ME=`--progress-line-stroke-color`,jge=e=>{let t=e?`100%`:`-100%`;return new to(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},Mge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...io(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},Nge=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:jge(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},Pge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},Fge=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ige=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},Lge=Sc(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=Go(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Mge(n),Nge(n),Pge(n),Fge(n),Ige(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),Rge=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},zge=(e,t)=>{let{from:n=Es.blue,to:r=Es.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${Rge(a)})`;return{background:e,[ME]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[ME]:o}},Bge=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:g}=e,{align:_,type:v}=p,y=d??f,b=l===`square`||l===`butt`?0:void 0,[x,S]=AE(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),C={backgroundColor:y||void 0,borderRadius:b,height:S},w=`${t}-track`,T=c&&typeof c!=`string`?zge(c,i):{[ME]:c,background:c},E={width:`${OE(a)}%`,height:S,borderRadius:b,...T},D=kE(e),O={width:`${OE(D)}%`,height:S,borderRadius:b,backgroundColor:g?.strokeColor};return h.createElement(`div`,{className:m(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:_===`center`&&v===`outer`}),style:{width:x>0?x:`100%`,...r.body}},h.createElement(`div`,{className:m(`${t}-rail`,n.rail),style:{...C,...r.rail}},h.createElement(`div`,{className:m(w,n.track),style:{...E,...r.track}},v===`inner`&&u),D!==void 0&&h.createElement(`div`,{className:m(w,`${w}-success`,n.track),style:{...O,...r.track}})),v===`outer`&&u)},Vge=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[g,_]=AE(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),v=g/i,y=Array.from({length:i}),b=l??u;for(let e=0;e{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:g,style:_,percentPosition:v={},...y}=e,{align:b=`end`,type:x=`outer`}=v,S=Array.isArray(c)?c[0]:c,C=typeof c==`string`||Array.isArray(c)?c:void 0,w=h.useMemo(()=>S?new ps(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=h.useMemo(()=>{let t=kE(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=h.useMemo(()=>!Hge.includes(p)&&T>=100?`success`:p||`normal`,[p,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=Ur(`progress`),N=D(`progress`,n),[P,F]=Lge(N),I={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:v},L=jr(A),R=jr(_),[z,B]=Nr([j,a],[M,L,o,R],{props:I}),V=f===`line`,H=V&&!s,U=h.useMemo(()=>{if(!d)return null;let t=kE(e),n,r=g||(e=>`${e}%`),i=V&&w&&x===`inner`;return x===`inner`||g||E!==`exception`&&E!==`success`?n=r(OE(l),OE(t)):E===`exception`?n=V?h.createElement(re,null):h.createElement(oe,null):E===`success`&&(n=V?h.createElement(K,null):h.createElement(kv,null)),h.createElement(`span`,{className:m(`${N}-indicator`,{[`${N}-indicator-bright`]:i,[`${N}-indicator-${b}`]:H,[`${N}-indicator-${x}`]:H},z.indicator),style:B.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,T,E,f,N,g,V,w,x,b,H,z.indicator,B.indicator]),W={...e,classNames:z,styles:B},G;f===`line`?G=s?h.createElement(Vge,{...W,strokeColor:C,prefixCls:N,steps:xr(s)?s.count:s},U):h.createElement(Bge,{...W,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},U):(f===`circle`||f===`dashboard`)&&(G=h.createElement(Age,{...W,strokeColor:S,prefixCls:N,progressStatus:E},U));let ee=m(N,`${N}-status-${E}`,{[`${N}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${N}-inline-circle`]:f===`circle`&&AE(u,`circle`)[0]<=20,[`${N}-line`]:H,[`${N}-line-align-${b}`]:H,[`${N}-line-position-${x}`]:H,[`${N}-steps`]:s,[`${N}-show-info`]:d,[`${N}-small`]:u===`small`,[`${N}-rtl`]:O===`rtl`},k,r,i,z.root,P,F);return h.createElement(`div`,{ref:t,style:B.root,className:ee,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...Wt(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},G)}),Wge=h.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:_,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,extra:S,onPreview:C,onDownload:w,onClose:T},E)=>{let{status:D}=s,[O,k]=h.useState(D);h.useEffect(()=>{D!==`removed`&&k(D)},[D]);let[A,j]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=u(s),N=h.createElement(`div`,{className:`${e}-icon`},M);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(O===`uploading`||!s.thumbUrl&&!s.url){let t=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!==`uploading`});N=h.createElement(`div`,{className:t},M)}else{let t=p?.(s)?h.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):M,n=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});N=h.createElement(`a`,{className:n,onClick:e=>C(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let P=m(`${e}-list-item`,`${e}-list-item-${O}`,r?.item),F=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,I=(Sr(_)?_(s):_)?d((Sr(b)?b(s):b)||h.createElement(bE,null),()=>T(s),e,a.removeFile,!0):null,L=(Sr(v)?v(s):v)&&O===`done`?d((Sr(x)?x(s):x)||h.createElement(SE,null),()=>w(s),e,a.downloadFile):null,R=o!==`picture-card`&&o!==`picture-circle`&&h.createElement(`span`,{key:`download-delete`,className:m(`${e}-list-item-actions`,{picture:o===`picture`})},L,I),z=Sr(S)?S(s):S,B=z&&h.createElement(`span`,{className:`${e}-list-item-extra`},z),V=m(`${e}-list-item-name`),H=s.url?h.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:V,title:s.name,...F,href:s.url,onClick:e=>C(s,e)},s.name,B):h.createElement(`span`,{key:`view`,role:`button`,tabIndex:0,className:V,onClick:e=>C(s,e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(s,e))},title:s.name},s.name,B),U=(Sr(g)?g(s):g)&&(s.url||s.thumbUrl)?h.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>C(s,e),title:a.previewFile},Sr(y)?y(s):y||h.createElement(nb,null)):null,W=(o===`picture-card`||o===`picture-circle`)&&O!==`uploading`&&h.createElement(`span`,{className:`${e}-list-item-actions`},U,O===`done`&&L,I),{getPrefixCls:G}=h.useContext(Br),ee=G(),K=h.createElement(`div`,{className:P,style:i?.item},N,H,R,W,A&&h.createElement(ur,{motionName:`${ee}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?h.createElement(Uge,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return h.createElement(`div`,{className:m(`${e}-list-item-progress`,t)},n)})),te=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,ne=O===`error`?h.createElement(Ty,{title:te,getPopupContainer:e=>e.parentNode},K):K;return h.createElement(`div`,{className:m(`${e}-list-item-container`,t),style:n,ref:E},f?f(ne,s,c,{download:w.bind(null,s),preview:C.bind(null,s),remove:T.bind(null,s)}):ne)}),Gge=h.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=vge,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=_ge,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:g=!1,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:T,classNames:E,styles:D}=e,[,O]=ud(),[k,A]=h.useState(!1),j=[`picture-card`,`picture-circle`].includes(n);h.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,O()}))})},[n,d,r]),h.useEffect(()=>{A(!0)},[]);let M=(e,t)=>{if(i)return t?.preventDefault(),i(e)},N=e=>{Sr(a)?a(e):e.url&&window.open(e.url)},P=e=>{o?.(e)},F=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?h.createElement(Hd,null):s.uploading,i=l?.(e)?h.createElement(pE,null):h.createElement(Bw,null);return t?r:i}return t?h.createElement(Hd,null):h.createElement(fge,null)},I=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),h.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?T:!1};return h.isValidElement(e)?h.createElement(gp,{...a,icon:vu(e,{...e.props,onClick:()=>{}})}):h.createElement(gp,{...a},h.createElement(`span`,null,e))};h.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));let{getPrefixCls:L}=h.useContext(Br),R=L(`upload`,u),z=L(),B=m(`${R}-list`,`${R}-list-${n}`,E?.list),V=h.useMemo(()=>Wt(Gf(z),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[z]),H={...j?{}:V,motionDeadline:2e3,motionName:`${R}-${j?`animate-inline`:`animate`}`,keys:gr(d.map(e=>({key:e.uid,file:e}))),motionAppear:k};return h.createElement(`div`,{className:B,style:D?.list},h.createElement(lr,{...H,component:!1},({key:e,file:t,className:r,style:i})=>h.createElement(Wge,{key:e,locale:s,prefixCls:R,className:r,style:i,classNames:E,styles:D,file:t,items:d,progress:x,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:g,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,iconRender:F,actionIconRender:I,itemRender:w,onPreview:M,onDownload:N,onClose:P})),S&&h.createElement(ur,{...H,visible:C,forceRender:!0},({className:e,style:t})=>vu(S,n=>({className:m(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),NE=`__LIST_IGNORE_${Date.now()}__`,PE=h.forwardRef((e,t)=>{let n=Ur(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:_,isImageUrl:v,progress:y,prefixCls:b,className:x,type:S=`select`,children:C,style:w,itemRender:T,maxCount:E,data:D={},multiple:O=!1,hasControlInside:k=!0,action:A=``,accept:j,supportServerRender:M=!0,rootClassName:N,styles:P,classNames:F}=e,I=h.useContext(Cu),L=p??I,R=e.customRequest||n.customRequest,z=n.progress||y?{...n.progress,...y}:void 0,B=td(j,n.accept,``),[V,H]=ye(i,r),U=V||[],[W,G]=h.useState(`drop`),ee=h.useRef(null),K=h.useRef(null);h.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let te=(e,t,n)=>{let r=gr(t),i=!1;E===1?r=r.slice(-1):E&&(i=r.length>E,r=r.slice(0,E)),(0,Sn.flushSync)(()=>{H(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,Sn.flushSync)(()=>{u?.(a)})},ne=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[NE],e===NE)return Object.defineProperty(t,NE,{value:!0,configurable:!0}),!1;xr(e)&&(i=e)}return i},re=e=>{let t=e.filter(e=>!e.file[NE]);if(!t.length)return;let n=t.map(e=>mE(e.file)),r=gr(U);n.forEach(e=>{r=hE(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}te(i,r)})},ie=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!gE(t,U))return;let r=mE(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,te(r,hE(r,U))},ae=(e,t)=>{if(!gE(t,U))return;let n=mE(t);n.status=`uploading`,n.percent=e.percent,te(n,hE(n,U),e)},oe=(e,t,n)=>{if(!gE(n,U))return;let r=mE(n);r.error=e,r.response=t,r.status=`error`,te(r,hE(r,U))},se=e=>{let t;Promise.resolve(Sr(a)?a(e):a).then(n=>{if(n===!1)return;let r=mge(e,U);r&&(t={...e,status:`removed`},U?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),ee.current?.abort(t),te(t,r))})},ce=e=>{G(e.type),e.type===`drop`&&d?.(e)};h.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:ae,onError:oe,fileList:U,upload:ee.current,nativeElement:K.current}));let{getPrefixCls:le,direction:ue,className:de,style:fe,classNames:pe,styles:me}=Ur(`upload`),he=le(`upload`,b),ge={...e,listType:s,showUploadList:o,type:S,multiple:O,hasControlInside:k,supportServerRender:M,disabled:L},[_e,ve]=Nr([pe,F],[me,P],{props:ge}),be={onBatchStart:re,onError:oe,onProgress:ae,onSuccess:ie,...e,customRequest:R,data:D,multiple:O,action:A,accept:B,supportServerRender:M,prefixCls:he,disabled:L,beforeUpload:ne,onChange:void 0,hasControlInside:k};delete be.className,delete be.style,(!C||L)&&delete be.id;let xe=`${he}-wrapper`,[Se,Ce]=uge(he,xe),[we]=$c(`Upload`,Kc.Upload),{showRemoveIcon:Te,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,extra:je}=typeof o==`boolean`?{}:o,Me=Te===void 0?!L:Te,Ne=(e,t)=>o?h.createElement(Gge,{classNames:_e,styles:ve,prefixCls:he,listType:s,items:U,previewFile:f,onPreview:c,onDownload:l,onRemove:se,showRemoveIcon:Me,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,iconRender:_,extra:je,locale:{...we,...g},isImageUrl:v,progress:z,appendAction:e,appendActionVisible:t,itemRender:T,disabled:L}):e,Pe=m(xe,x,N,Se,Ce,de,_e.root,{[`${he}-rtl`]:ue===`rtl`,[`${he}-picture-card-wrapper`]:s===`picture-card`,[`${he}-picture-circle-wrapper`]:s===`picture-circle`}),Fe={...ve.root},Ie={...fe,...w};if(S===`drag`){let e=m(Se,he,`${he}-drag`,{[`${he}-drag-uploading`]:U.some(e=>e.status===`uploading`),[`${he}-drag-hover`]:W===`dragover`,[`${he}-disabled`]:L,[`${he}-rtl`]:ue===`rtl`},_e.trigger);return h.createElement(`span`,{className:Pe,ref:K,style:Fe},h.createElement(`div`,{className:e,style:{...Ie,...ve.trigger},onDrop:ce,onDragOver:ce,onDragLeave:ce},h.createElement(uE,{...be,ref:ee,className:`${he}-btn`},h.createElement(`div`,{className:`${he}-drag-container`},C))),Ne())}let Le=m(he,`${he}-select`,{[`${he}-disabled`]:L,[`${he}-hidden`]:!C},_e.trigger),Re=h.createElement(`div`,{className:Le,style:{...Ie,...ve.trigger}},h.createElement(uE,{...be,ref:ee}));return s===`picture-card`||s===`picture-circle`?h.createElement(`span`,{className:Pe,ref:K,style:Fe},Ne(Re,!!C)):h.createElement(`span`,{className:Pe,ref:K,style:Fe},Re,Ne())}),Kge=h.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return h.createElement(PE,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),FE=PE;FE.Dragger=Kge,FE.LIST_IGNORE=NE;var IE=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),qge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),Jge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),Yge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={...Jge().commonLocale,locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1}})),LE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),RE=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Yge()),r=t(LE()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),Xge=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=t(RE()).default})),Zge=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(qge()),r=t(Xge()),i=t(RE()),a=t(LE()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`,show:`显示`,hide:`隐藏`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),Qge=o(((e,t)=>{t.exports=Zge()})),$ge=`modulepreload`,e_e=function(e){return`/`+e},zE={},t_e=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=e_e(t,n),t=s(t),t in zE)return;zE[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:$ge,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},BE=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,VE=/^[\\/]{2}/;function n_e(e,t){return t+e.replace(/\\/g,`/`)}var HE=`popstate`;function UE(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function r_e(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return qE(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:JE(t)}return a_e(t,n,null,e)}function WE(e,t){if(e===!1||e==null)throw Error(t)}function GE(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function i_e(){return Math.random().toString(36).substring(2,10)}function KE(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function qE(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?YE(t):t,state:n,key:t&&t.key||r||i_e(),mask:i}}function JE({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function YE(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function a_e(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=UE(e)?e:qE(h.location,e,t);n&&n(r,e),l=u()+1;let d=KE(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=UE(e)?e:qE(h.location,e,t);n&&n(r,e),l=u();let i=KE(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return o_e(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(HE,d),c=e,()=>{i.removeEventListener(HE,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function o_e(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),WE(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:JE(t);return i=i.replace(/ $/,`%20`),!n&&VE.test(i)&&(i=r+i),new URL(i,r)}function XE(e,t,n=`/`){return s_e(e,t,n,!1)}function s_e(e,t,n,r,i){let a=rD((typeof t==`string`?YE(t):t).pathname||`/`,n);if(a==null)return null;let o=i??l_e(e),s=null,c=b_e(a);for(let e=0;s==null&&e{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;WE(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=cD([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(WE(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ZE(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:__e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=nD(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of QE(e.path))a(e,t,!0,n)}),t}function QE(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=QE(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function u_e(e){e.sort((e,t)=>e.score===t.score?v_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var d_e=/^:[\w-]+$/,f_e=3,p_e=2,m_e=1,h_e=10,g_e=-2,$E=e=>e===`*`;function __e(e,t){let n=e.split(`/`),r=n.length;return n.some($E)&&(r+=g_e),t&&(r+=p_e),n.filter(e=>!$E(e)).reduce((e,t)=>e+(d_e.test(t)?f_e:t===``?m_e:h_e),r)}function v_e(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function y_e(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function nD(e,t=!1,n=!0){GE(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function b_e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return GE(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rD(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function x_e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?YE(e):e,a;return n?(n=C_e(n),a=n.startsWith(`/`)?iD(n.substring(1),`/`):iD(n,t)):a=t,{pathname:a,search:T_e(r),hash:E_e(i)}}function iD(e,t){let n=lD(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function aD(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function S_e(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function oD(e){let t=S_e(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function sD(e,t,n,r=!1){let i;typeof e==`string`?i=YE(e):(i={...e},WE(!i.pathname||!i.pathname.includes(`?`),aD(`?`,`pathname`,`search`,i)),WE(!i.pathname||!i.pathname.includes(`#`),aD(`#`,`pathname`,`hash`,i)),WE(!i.search||!i.search.includes(`#`),aD(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=x_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var C_e=e=>e.replace(/[\\/]{2,}/g,`/`),cD=e=>C_e(e.join(`/`)),lD=e=>e.replace(/\/+$/,``),w_e=e=>lD(e).replace(/^\/*/,`/`),T_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,E_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,D_e=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function O_e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function k_e(e){return cD(e.map(e=>e.route.path).filter(Boolean))||`/`}var A_e=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function j_e(e,t){let n=e;if(typeof n!=`string`||!BE.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(A_e)try{let e=new URL(window.location.href),r=VE.test(n)?new URL(n_e(n,e.protocol)):new URL(n),a=rD(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{GE(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var M_e=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(M_e);var N_e=[`GET`,...M_e];new Set(N_e);var P_e=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function F_e(e){try{return P_e.includes(new URL(e).protocol)}catch{return!1}}var uD=h.createContext(null);uD.displayName=`DataRouter`;var dD=h.createContext(null);dD.displayName=`DataRouterState`;var I_e=h.createContext(!1);function L_e(){return h.useContext(I_e)}var R_e=h.createContext({isTransitioning:!1});R_e.displayName=`ViewTransition`;var z_e=h.createContext(new Map);z_e.displayName=`Fetchers`;var B_e=h.createContext(null);B_e.displayName=`Await`;var fD=h.createContext(null);fD.displayName=`Navigation`;var pD=h.createContext(null);pD.displayName=`Location`;var mD=h.createContext({outlet:null,matches:[],isDataRoute:!1});mD.displayName=`Route`;var hD=h.createContext(null);hD.displayName=`RouteError`;var V_e=`REACT_ROUTER_ERROR`,H_e=`REDIRECT`,U_e=`ROUTE_ERROR_RESPONSE`;function W_e(e){if(e.startsWith(`${V_e}:${H_e}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function G_e(e){if(e.startsWith(`${V_e}:${U_e}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new D_e(t.status,t.statusText,t.data)}catch{}}function K_e(e,{relative:t}={}){WE(gD(),`useHref() may be used only in the context of a component.`);let{basename:n,navigator:r}=h.useContext(fD),{hash:i,pathname:a,search:o}=yD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:cD([n,a])),r.createHref({pathname:s,search:o,hash:i})}function gD(){return h.useContext(pD)!=null}function _D(){return WE(gD(),`useLocation() may be used only in the context of a component.`),h.useContext(pD).location}var q_e=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function J_e(e){h.useContext(fD).static||h.useLayoutEffect(e)}function vD(){let{isDataRoute:e}=h.useContext(mD);return e?dve():Y_e()}function Y_e(){WE(gD(),`useNavigate() may be used only in the context of a component.`);let e=h.useContext(uD),{basename:t,navigator:n}=h.useContext(fD),{matches:r}=h.useContext(mD),{pathname:i}=_D(),a=JSON.stringify(oD(r)),o=h.useRef(!1);return J_e(()=>{o.current=!0}),h.useCallback((r,s={})=>{if(GE(o.current,q_e),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=sD(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:cD([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}h.createContext(null);function X_e(){let{matches:e}=h.useContext(mD);return e[e.length-1]?.params??{}}function yD(e,{relative:t}={}){let{matches:n}=h.useContext(mD),{pathname:r}=_D(),i=JSON.stringify(oD(n));return h.useMemo(()=>sD(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Z_e(e,t){return Q_e(e,t)}function Q_e(e,t,n){WE(gD(),`useRoutes() may be used only in the context of a component.`);let{navigator:r}=h.useContext(fD),{matches:i}=h.useContext(mD),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;pve(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let u=vD(),d;if(t){let e=typeof t==`string`?XE(t):t;GE(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ZE(e,{pathname:p});KE(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),KE(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let g=rve(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:lD([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:lD([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?h.createElement(mD.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function Q_e(){let e=lve(),t=D_e(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=h.createElement(h.Fragment,null,h.createElement(`p`,null,`💿 Hey developer 👋`),h.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,h.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,h.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),h.createElement(h.Fragment,null,h.createElement(`h2`,null,`Unexpected Application Error!`),h.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?h.createElement(`pre`,{style:i},n):null,o)}var $_e=h.createElement(Q_e,null),eve=class extends h.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=W_e(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:h.createElement(hD.Provider,{value:this.props.routeContext},h.createElement(gD.Provider,{value:e,children:this.props.component}));return this.context?h.createElement(tve,{error:e},t):t}};eve.contextType=F_e;var xD=new WeakMap;function tve({children:e,error:t}){let{basename:n}=h.useContext(pD);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=U_e(t.digest);if(e){let r=xD.get(t);if(r)throw r;let i=A_e(e.location,n),a=i.absoluteURL||i.to;if(P_e(a))throw Error(`Invalid redirect location`);if(k_e&&!xD.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw xD.set(t,n),n}return h.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function nve({routeContext:e,match:t,children:n}){let r=h.useContext(dD);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),h.createElement(hD.Provider,{value:e},n)}function rve(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);GE(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:O_e(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||$_e,o&&(s<0&&c===0?(fve(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?f:d?p:n.route.Component?h.createElement(n.route.Component,null):n.route.element?n.route.element:e,h.createElement(nve,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?h.createElement(eve,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):g()},null)}function SD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ive(e){let t=h.useContext(dD);return GE(t,SD(e)),t}function CD(e){let t=h.useContext(fD);return GE(t,SD(e)),t}function ave(e){let t=h.useContext(hD);return GE(t,SD(e)),t}function wD(e){let t=ave(e),n=t.matches[t.matches.length-1];return GE(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ove(){return wD(`useRouteId`)}function sve(){let e=CD(`useNavigation`);return h.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function cve(){let{matches:e,loaderData:t}=CD(`useMatches`);return h.useMemo(()=>e.map(e=>s_e(e,t)),[e,t])}function lve(){let e=h.useContext(gD),t=CD(`useRouteError`),n=wD(`useRouteError`);return e===void 0?t.errors?.[n]:e}function uve(){let{router:e}=ive(`useNavigate`),t=wD(`useNavigate`),n=h.useRef(!1);return q_e(()=>{n.current=!0}),h.useCallback(async(r,i={})=>{KE(n.current,K_e),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var dve={};function fve(e,t,n){!t&&!dve[e]&&(dve[e]=!0,KE(!1,n))}h.memo(pve);function pve({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Z_e(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function TD({to:e,replace:t,state:n,relative:r}){GE(_D(),` may be used only in the context of a component.`);let{static:i}=h.useContext(pD);KE(!i,` must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.`);let{matches:a}=h.useContext(hD),{pathname:o}=vD(),s=yD(),c=cD(e,sD(a),o,r===`path`),l=JSON.stringify(c);return h.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ED(e){GE(!1,`A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .`)}function mve({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){GE(!_D(),`You cannot render a inside another . You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=h.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=XE(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,g=h.useMemo(()=>{let e=iD(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return KE(g!=null,` is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the won't render anything.`),g==null?null:h.createElement(pD.Provider,{value:c},h.createElement(mD.Provider,{children:t,value:g}))}function hve({children:e,location:t}){return X_e(DD(e),t)}h.Component;function DD(e,t=[]){let n=[];return h.Children.forEach(e,(e,r)=>{if(!h.isValidElement(e))return;let i=[...t,r];if(e.type===h.Fragment){n.push.apply(n,DD(e.props.children,i));return}GE(e.type===ED,`[${typeof e.type==`string`?e.type:e.type.name}] is not a component. All component children of must be a or `),GE(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=DD(e.props.children,i)),n.push(a)}),n}var OD=`get`,kD=`application/x-www-form-urlencoded`;function AD(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function gve(e){return AD(e)&&e.tagName.toLowerCase()===`button`}function _ve(e){return AD(e)&&e.tagName.toLowerCase()===`form`}function vve(e){return AD(e)&&e.tagName.toLowerCase()===`input`}function yve(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bve(e,t){return e.button===0&&(!t||t===`_self`)&&!yve(e)}function jD(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function xve(e,t){let n=jD(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var MD=null;function Sve(){if(MD===null)try{new FormData(document.createElement(`form`),0),MD=!1}catch{MD=!0}return MD}var Cve=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ND(e){return e!=null&&!Cve.has(e)?(KE(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${kD}"`),null):e}function wve(e,t){let n,r,i,a,o;if(_ve(e)){let o=e.getAttribute(`action`);r=o?iD(o,t):null,n=e.getAttribute(`method`)||OD,i=ND(e.getAttribute(`enctype`))||kD,a=new FormData(e)}else if(gve(e)||vve(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a + -
- handleDelete(wq.id)}> - - -
- - ))} + ) + })} {items.length === 0 && {emptyText}} {selectedId && ( diff --git a/frontend/src/pages/WrongQuestionDetail.tsx b/frontend/src/pages/WrongQuestionDetail.tsx index ae164bb..a1073c5 100644 --- a/frontend/src/pages/WrongQuestionDetail.tsx +++ b/frontend/src/pages/WrongQuestionDetail.tsx @@ -135,10 +135,22 @@ export default function WrongQuestionDetail({ <> 状态:{STATUS_LABELS[wq.status]} - {wq.has_annotated_image && ( + {wq.has_annotated_image && !wq.error_message && ( 红色框为自动标注的错误位置 )} + {wq.error_message && ( + + )} + {wq.status === 'pending' && !wq.error_message && ( + + )} {(wq.solution_approach || wq.solution_text) && (