@customize-agent/server 3.0.8 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +145 -123
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/routes-manifest.json +6 -0
  5. package/.next/server/chunks/5076.js +2 -2
  6. package/.next/server/chunks/8204.js +1 -1
  7. package/.next/server/chunks/9270.js +1 -1
  8. package/.next/server/chunks/9301.js +2 -2
  9. package/.next/server/middleware-build-manifest.js +1 -1
  10. package/.next/server/pages/404.html +1 -1
  11. package/.next/server/pages/500.html +1 -1
  12. package/.next/server/pages/context/long-term.html +1 -1
  13. package/.next/server/pages/context/short-term.html +1 -1
  14. package/.next/server/pages/document-roles.html +1 -1
  15. package/.next/server/pages/documents.html +1 -1
  16. package/.next/server/pages/guide.html +1 -0
  17. package/.next/server/pages/guide.js.nft.json +1 -0
  18. package/.next/server/pages/index.html +1 -1
  19. package/.next/server/pages/knowledge/file-detail.html +1 -1
  20. package/.next/server/pages/knowledge/files.html +1 -1
  21. package/.next/server/pages/knowledge/manage.html +1 -1
  22. package/.next/server/pages/knowledge/search.html +1 -1
  23. package/.next/server/pages/knowledge.html +1 -1
  24. package/.next/server/pages/models.html +1 -1
  25. package/.next/server/pages/overview.html +1 -1
  26. package/.next/server/pages/prompt.html +1 -1
  27. package/.next/server/pages/settings.html +1 -1
  28. package/.next/server/pages-manifest.json +23 -22
  29. package/.next/static/PkdECgLy3eGpkRC2sc90n/_buildManifest.js +1 -0
  30. package/.next/static/chunks/{15-c0cd098235feea60.js → 15-289cb38b53bafa4a.js} +1 -1
  31. package/.next/static/chunks/167-9f45623d7ea7ab43.js +1 -0
  32. package/.next/static/chunks/174-e7df14600b457a5c.js +10 -0
  33. package/.next/static/chunks/201-b16b4788042ed1aa.js +1 -0
  34. package/.next/static/chunks/227-442963c7b630eade.js +1 -0
  35. package/.next/static/chunks/228-7112f995b33b1fd3.js +1 -0
  36. package/.next/static/chunks/257-ba16dfe16a27f417.js +1 -0
  37. package/.next/static/chunks/260-7a7a65a3ca8539ba.js +28 -0
  38. package/.next/static/chunks/{292-a1cc113f5092109b.js → 292-c2888a94068fae74.js} +1 -1
  39. package/.next/static/chunks/382-dd7535429e16931b.js +25 -0
  40. package/.next/static/chunks/{400-82e564931b06011b.js → 400-ba996d76e74a7368.js} +1 -1
  41. package/.next/static/chunks/446-0591221372df7d49.js +4 -0
  42. package/.next/static/chunks/{455-3fed2dde34ca1eef.js → 455-e31becaaf948f868.js} +1 -1
  43. package/.next/static/chunks/492-62671486700ed3f9.js +1 -0
  44. package/.next/static/chunks/{517-c6a8c0e680dafa46.js → 517-f43787133528ba48.js} +1 -1
  45. package/.next/static/chunks/668-662b7bc81e4ad48f.js +4 -0
  46. package/.next/static/chunks/740-cd38299e151d3ffc.js +16 -0
  47. package/.next/static/chunks/845-b394c886baabe12f.js +11 -0
  48. package/.next/static/chunks/851-1190cb42a0630eef.js +1 -0
  49. package/.next/static/chunks/{891-ff3efd43c148bd2c.js → 891-b6a172e1df7ab8c1.js} +1 -1
  50. package/.next/static/chunks/951-320008e618be7e4f.js +1 -0
  51. package/.next/static/chunks/958-0793922b6b146891.js +1 -0
  52. package/.next/static/chunks/969-8843874536e7fd83.js +1 -0
  53. package/.next/static/chunks/992-ea93dfa182a02a8e.js +1 -0
  54. package/.next/static/chunks/pages/_app-15fb8428c7126df0.js +140 -0
  55. package/.next/static/chunks/pages/context/{long-term-7dd213ed6aaf6901.js → long-term-9685fc1fd8397807.js} +1 -1
  56. package/.next/static/chunks/pages/context/{short-term-70f45e74d6778422.js → short-term-86f5d204405bb05c.js} +1 -1
  57. package/.next/static/chunks/pages/document-roles-1449654aa961426e.js +1 -0
  58. package/.next/static/chunks/pages/documents-dc6582d6886d4fb6.js +1 -0
  59. package/.next/static/chunks/pages/guide-0aa6938c95fd8152.js +1 -0
  60. package/.next/static/chunks/pages/knowledge/{file-detail-9a889d5cb64f568c.js → file-detail-21dbc84d04f969ca.js} +1 -1
  61. package/.next/static/chunks/pages/knowledge/{files-1d99abf5b4d33896.js → files-369d7ccf6a6e4e43.js} +1 -1
  62. package/.next/static/chunks/pages/knowledge/{manage-21b21d79b5cf4cd5.js → manage-447ce42652c203f4.js} +1 -1
  63. package/.next/static/chunks/pages/knowledge/{search-70a7b107d722facd.js → search-5a199ff773f7938b.js} +1 -1
  64. package/.next/static/chunks/pages/knowledge-81fd1e907a6fcb84.js +1 -0
  65. package/.next/static/chunks/pages/models-fc67c4147d2aa3cb.js +1 -0
  66. package/.next/static/chunks/pages/overview-558db8205a06d058.js +1 -0
  67. package/.next/static/chunks/pages/prompt-654d82321a383233.js +1 -0
  68. package/.next/static/chunks/pages/{settings-daf6d46ceb1dbd41.js → settings-88f50b9cafc389e0.js} +1 -1
  69. package/package.json +2 -2
  70. package/.next/static/TPNkWJVdxfNk1foFSh7Uw/_buildManifest.js +0 -1
  71. package/.next/static/chunks/129-abc5698c238befa3.js +0 -1
  72. package/.next/static/chunks/174-4fe307a1ae432ca3.js +0 -10
  73. package/.next/static/chunks/227-5d0e79ce4e00983e.js +0 -1
  74. package/.next/static/chunks/257-43a44acbd7b6e330.js +0 -1
  75. package/.next/static/chunks/260-b4f5be8cad9d5eb8.js +0 -28
  76. package/.next/static/chunks/425-fe4960449c1faceb.js +0 -25
  77. package/.next/static/chunks/446-c2604ca982998533.js +0 -4
  78. package/.next/static/chunks/492-764fcf49f0c198bc.js +0 -1
  79. package/.next/static/chunks/544-b1e7fb125bd5ba92.js +0 -1
  80. package/.next/static/chunks/668-ff3d8f8bff59e606.js +0 -4
  81. package/.next/static/chunks/740-2d2619c22f2573ad.js +0 -16
  82. package/.next/static/chunks/846-7f8d40514b6985f3.js +0 -1
  83. package/.next/static/chunks/958-ed6bd7651b040ee8.js +0 -1
  84. package/.next/static/chunks/969-7ca2307001c18a53.js +0 -1
  85. package/.next/static/chunks/992-52509d4b96af607f.js +0 -1
  86. package/.next/static/chunks/pages/_app-b70d02eb20e482ce.js +0 -140
  87. package/.next/static/chunks/pages/document-roles-8f6b20debf515131.js +0 -1
  88. package/.next/static/chunks/pages/documents-56ca6f45e69c19e5.js +0 -1
  89. package/.next/static/chunks/pages/knowledge-b3ef77e79801287c.js +0 -1
  90. package/.next/static/chunks/pages/models-faf86bc243e1e43a.js +0 -1
  91. package/.next/static/chunks/pages/overview-f7614487f399659f.js +0 -1
  92. package/.next/static/chunks/pages/prompt-54f8cf8df33e3c2e.js +0 -1
  93. /package/.next/static/{TPNkWJVdxfNk1foFSh7Uw → PkdECgLy3eGpkRC2sc90n}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[228],{2256:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(5341).A},7564:(e,t,i)=>{i.d(t,{j:()=>o});let o=i(7109).createContext(null)},8770:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(1916).A},9730:(e,t,i)=>{i.d(t,{A:()=>P});var o=i(7109),r=i(4190),n=i(5042),l=i(9981),a=i(3638),c=i(2162),s=i(6047),m=i(8862),d=i(5622),p=i(4567),$=i(7273),h=i(9609),u=i(540),g=i(2551),b=i(7564);let v=e=>{let{prefixCls:t}=e;return o.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},o.createElement("title",null,"Arrow"),o.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},f=e=>{let{prefixCls:t,rootPrefixCls:i,children:r,percent:n}=e,l=`${t}-item-progress-icon`,c=`${l}-circle`,[,s]=(0,u.PN)(i,"cmp-steps"),m=`calc(${s("progress-radius")} * 2 * ${Math.PI*n/100}) 9999`;return o.createElement(o.Fragment,null,o.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n},o.createElement("title",null,"Progress"),o.createElement("circle",{className:(0,a.$)(c,`${c}-rail`)}),o.createElement("circle",{className:(0,a.$)(c,`${c}-ptg`),strokeDasharray:m,transform:"rotate(-90 50 50)"})),r)};var x=i(7961),z=i(8403);let w=(e,t,i)=>{let{calc:o,componentCls:r,descriptionMaxWidth:n,antCls:l}=e,a=`${r}-item`,[,c]=(0,u.PN)(l,"cmp-steps");return{[`@container style(${(n||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[`${a}-icon`]:{marginInlineStart:o(n).sub(c("icon-size")).div(2).equal()},[`${a}-rail`]:{width:"auto",insetInlineStart:o(n).add(c("icon-size")).div(2).add(t).equal(),insetInlineEnd:o(n).sub(c("icon-size")).div(2).sub(t).mul(-1).equal()}},i]}};var y=i(5561);let S="wait",I="process",k="finish",C="error",E=(0,u.OF)("Steps",e=>{let t=(0,z.oX)(e,{inlineDotSize:6});return[(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[t]:{[r("title-font-size")]:e.fontSizeLG,[r("title-line-height")]:e.lineHeightLG,[r("subtitle-font-size")]:e.fontSize,[r("subtitle-line-height")]:e.lineHeight,[r("item-wrapper-padding-top")]:"0px",[r("rail-size")]:e.lineWidth,[r("rail-line-style")]:e.lineType,...(0,x.dF)(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[o]:{flex:"none",position:"relative"},[`${o}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:n("item-wrapper-padding-top")},[`${o}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${o}-title`]:{color:e.colorText,fontSize:n("title-font-size"),lineHeight:n("title-line-height"),wordBreak:"break-word"},[`${o}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:n("subtitle-font-size"),lineHeight:n("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${o}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${o}-rail`]:{borderStyle:n("rail-line-style"),borderWidth:0},[`${o}-title, ${o}-subtitle, ${o}-content, ${o}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:x.L9},[`${o}[role='button']:not(${o}-active):hover`]:{cursor:"pointer"}}}})(t),(e=>{let{componentCls:t,customIconFontSize:i,motionDurationSlow:o,iconSize:r,lineWidth:n,lineType:l,antCls:a}=e,c=`${t}-item`,[s,m]=(0,u.PN)(a,"cmp-steps");return{[t]:{[s("icon-size")]:r,[s("icon-border-width")]:n,[`${c}-icon`]:{width:m("icon-size"),height:m("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:m("icon-size"),textAlign:"center",borderRadius:m("icon-size"),border:`${m("icon-border-width")} ${l} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>`${e} ${o}`).join(", "),zIndex:1},[`${c}-custom ${c}-icon`]:{background:"none",border:0,fontSize:i}}}})(t),(e=>{let{componentCls:t,marginXXS:i,paddingSM:o,controlHeight:r,antCls:n,calc:l}=e,a=`${t}-item`,[c,s]=(0,u.PN)(n,"cmp-steps");return{[`${t}-vertical`]:{[c("vertical-rail-margin")]:l(i).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${a}`]:{minHeight:l(r).mul(1.5).equal(),paddingBottom:o,"&:last-child":{paddingBottom:0},[`${a}-icon`]:{marginInlineStart:`calc((${s("icon-size-max")} - ${s("icon-size")}) / 2)`},[`${a}-rail`]:{[c("rail-offset")]:l(s("heading-height")).sub(s("icon-size")).div(2).equal(),borderInlineStartWidth:s("rail-size"),position:"absolute",top:l(s("icon-size")).add(s("item-wrapper-padding-top")).add(s("rail-offset")).add(s("vertical-rail-margin")).equal(),insetInlineStart:l(s("icon-size-max")).div(2).equal(),bottom:l(s("vertical-rail-margin")).sub(s("rail-offset")).equal(),marginInlineStart:`calc(${s("rail-size")} / -2)`}}}}})(t),(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${o}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${o}-rail`]:{[r("horizontal-rail-margin")]:`calc(${n("icon-size-max")} / 2 - ${n("rail-size")} / 2 + ${n("item-wrapper-padding-top")})`,position:"static",marginTop:n("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:n("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}})(t),(e=>{let{componentCls:t,descriptionMaxWidth:i,marginXS:o,fontHeightLG:r,margin:n,paddingSM:l,marginXXS:a,antCls:c,calc:s}=e,m=`${t}-item`,[d,p]=(0,u.PN)(c,"cmp-steps");return{[t]:{[d("icon-size-max")]:`max(${p("icon-size")}, ${p("icon-size-active",p("icon-size"))})`,[`${m}-icon`]:{marginBlockStart:`calc((${p("heading-height")} - ${p("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[d("title-horizontal-item-margin")]:n,[d("title-horizontal-rail-margin")]:n,[d("title-horizontal-title-height")]:r,[d("heading-height")]:`max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${m}:not(:first-child)`]:{marginInlineStart:p("title-horizontal-item-margin")},[`${m}:last-child`]:{flex:"0 1 auto"},[`${m}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${m}-wrapper`]:{columnGap:e.margin},[`${m}-empty-header`]:{[`${m}-header`]:{minHeight:"auto"},[`${m}-content`]:{marginTop:s(p("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${m}-section`]:{flex:1,minWidth:0},[`${m}-header`]:{minHeight:p("heading-height")},[`${m}-title`]:{flex:"0 1 auto"},[`${m}-content`]:{maxWidth:i},[`${m}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${m}-rail`]:{[d("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:p("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[d("title-vertical-row-gap")]:l,[d("title-horizontal-rail-gap")]:a,[d("heading-height")]:p("icon-size-max"),[`> ${m}`]:{flex:"1 1 0%",[`${m}-wrapper`]:{flexDirection:"column",rowGap:p("title-vertical-row-gap"),alignItems:"center"},[`${m}-section`]:{alignSelf:"stretch"},[`${m}-header`]:{flexDirection:"column",alignItems:"center"},[`${m}-title, ${m}-subtitle, ${m}-content`]:{textAlign:"center",maxWidth:"100%"},[`${m}-subtitle`]:{margin:0},[`${m}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`}},...w(e,o,{[`${m}:last-child`]:{flex:"none"},[`${m}-icon`]:{alignSelf:"flex-start"},[`${m}-section`]:{width:i}})}}})(t),(e=>{let{componentCls:t,iconSizeSM:i,fontSize:o,lineHeight:r,marginXS:n,fontHeight:l,marginSM:a,paddingXS:c,antCls:s}=e,[m]=(0,u.PN)(s,"cmp-steps");return{[`${t}${t}-small`]:{[m("icon-size")]:i,[m("title-horizontal-item-margin")]:a,[m("title-vertical-row-gap")]:c,[m("title-font-size")]:o,[m("title-line-height")]:r,[m("title-horizontal-rail-margin")]:n,[m("title-horizontal-title-height")]:l,[`&${t}-horizontal${t}-title-vertical`]:w(e,n)}}})(t),(e=>{let{componentCls:t,iconSize:i,dotSize:o,dotCurrentSize:r,marginXXS:n,lineWidthBold:l,fontSizeSM:a,antCls:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(c,"cmp-steps");return{[`${t}${t}-dot`]:{[m("icon-size-active")]:r,[m("icon-size")]:o,[m("dot-icon-size")]:o,[m("dot-icon-border-width")]:l,[m("rail-size")]:l,[m("icon-border-width")]:l,[`${s}-custom ${s}-icon`]:{fontSize:a},[`${s}-icon`]:{position:"relative","&:after":{content:'""',width:i,height:i,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${s}-active ${s}-icon`]:{[m("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:w(e,n)}}}})(t),(e=>{let{componentCls:t,colorTextDisabled:i,colorTextLightSolid:o,colorPrimary:r,colorTextLabel:n,colorError:l,colorErrorHover:a,colorErrorBgFilledHover:c,colorFillTertiary:s,colorErrorBg:m,colorPrimaryBgHover:d,colorPrimaryBg:p,colorText:$,colorTextDescription:h,colorBgContainer:g,colorPrimaryHover:b,lineType:v,antCls:f}=e,x=`${t}-item`,[z,w]=(0,u.PN)(f,"cmp-steps");return{[t]:[{[x]:{[z("item-solid-line-color")]:"#000",[z("item-title-color")]:"#000",[z("item-content-color")]:"#000",[z("item-subtitle-color")]:w("item-content-color"),[z("item-icon-custom-color")]:"#000",[z("item-icon-bg-color")]:"#000",[z("item-icon-border-color")]:"#000",[z("item-icon-text-color")]:"#fff",[z("item-icon-dot-color")]:"#000",[z("item-icon-dot-bg-color")]:w("item-icon-dot-color"),[z("item-icon-dot-border-color")]:w("item-icon-dot-color"),[z("item-text-hover-color")]:"#000",[z("item-icon-bg-hover-color")]:w("item-icon-bg-color"),[z("item-icon-border-hover-color")]:w("item-icon-border-color"),[z("item-icon-text-hover-color")]:w("item-icon-text-color"),[z("item-content-active-color")]:w("item-content-color"),[z("item-icon-active-bg-color")]:w("item-icon-bg-color"),[z("item-icon-active-border-color")]:w("item-icon-border-color"),[z("item-icon-active-text-color")]:w("item-icon-text-color"),[z("item-process-rail-line-style")]:v},[`${x}-rail`]:{borderColor:w("item-solid-line-color")},[`${x}-custom ${x}-icon`]:{color:w("item-icon-custom-color")},[`${x}-title`]:{color:w("item-title-color")},[`${x}-subtitle`]:{color:w("item-subtitle-color")},[`${x}-content`]:{color:w("item-content-color")},[`${x}-active ${x}-icon`]:{},[`${x}-active ${x}-content`]:{color:w("item-content-active-color")},[`${x}[role='button']:not(${x}-active):hover`]:{[`${x}-title, ${x}-content`]:{color:w("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${x}:not(${x}-custom)`]:{[`${x}-icon`]:{background:w("item-icon-bg-color"),borderColor:w("item-icon-border-color"),color:w("item-icon-text-color")},[`&[role='button']:not(${x}-active):hover`]:{[`${x}-icon`]:{background:w("item-icon-bg-hover-color"),borderColor:w("item-icon-border-hover-color"),color:w("item-icon-text-hover-color")}},[`&${x}-active`]:{[`${x}-icon`]:{background:w("item-icon-active-bg-color"),borderColor:w("item-icon-active-border-color"),color:w("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${x}-icon`]:{background:w("item-icon-dot-bg-color"),borderColor:w("item-icon-dot-border-color"),color:w("item-icon-dot-color"),[`&${x}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${x}-${S}`]:{[z("item-icon-custom-color")]:i,[z("item-title-color")]:h,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${S}`]:{[z("item-solid-line-color")]:i},[`${x}-${I}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${I}`]:{[z("item-solid-line-color")]:r,[z("rail-line-style")]:w("item-process-rail-line-style")},[`${x}-${k}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${k}`]:{[z("item-solid-line-color")]:r},[`${x}-${C}`]:{[z("item-icon-custom-color")]:l,[z("item-title-color")]:l,[z("item-content-color")]:l,[z("item-content-active-color")]:l,[z("item-text-hover-color")]:a},[`${x}-rail-${C}`]:{[z("item-solid-line-color")]:l}},{[`&${t}-filled`]:{[x]:{[z("item-icon-dot-border-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:s,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:n,[z("item-icon-dot-bg-color")]:i,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:p,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:r,[z("item-icon-dot-bg-color")]:r,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${C}`]:{[z("item-icon-bg-color")]:m,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:l,[z("item-icon-dot-bg-color")]:l,[z("item-icon-bg-hover-color")]:c,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:l,[z("item-icon-active-bg-color")]:l,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o}}},{[`&${t}-outlined`]:{[x]:{[z("item-icon-dot-bg-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:i,[z("item-icon-text-color")]:i,[z("item-icon-dot-color")]:i,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:s},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:r,[z("item-icon-text-color")]:r,[z("item-icon-dot-color")]:r,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:p},[`${x}-${C}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:l,[z("item-icon-text-color")]:l,[z("item-icon-dot-color")]:l,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:a,[z("item-icon-text-hover-color")]:a,[z("item-icon-active-bg-color")]:m}}}]}})(t),(e=>{let{componentCls:t,fontSizeIcon:i,navContentMaxWidth:o,navArrowColor:r,colorPrimary:n,motionDurationSlow:l,antCls:a,calc:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(a,"cmp-steps");return{[`${t}${t}-navigation`]:{[s.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${s}-wrapper`]:{paddingBlock:e.paddingSM},[`${s}-section`]:{maxWidth:o},[`${s}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:n,transition:`all ${l}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:'""'},[`&${s}-active`]:{[m("item-content-active-color")]:d("item-content-color"),[m("item-icon-active-bg-color")]:d("item-icon-bg-color"),[m("item-icon-active-border-color")]:d("item-icon-border-color"),[m("item-icon-active-text-color")]:d("item-icon-text-color")}},[`&${t}-horizontal`]:{[s]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${s}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:c(i).div(2).mul(-1).add("100%").equal(),width:i,height:i,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[s.repeat(4)]:{[`${s}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${s}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:c(i).div(3).mul(2).equal(),height:c(i).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,borderRadius:o,borderRadiusSM:r,motionDurationMid:n,paddingXS:l,lineType:a,paddingSM:c,antCls:s,calc:m}=e,d=`${t}-item`,[p,$]=(0,u.PN)(s,"cmp-steps"),h=`${(0,y.zA)(i)} ${a} ${$("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[p("panel-padding")]:c,[p("item-border-radius")]:o,[d]:{[p("panel-bg-color")]:$("item-icon-bg-color"),[p("panel-border-color")]:$("item-icon-border-color"),[p("panel-active-bg-color")]:$("item-icon-active-bg-color"),[p("panel-active-border-color")]:$("item-icon-active-border-color"),[p("panel-title-height")]:`calc(${$("title-font-size")} * ${$("title-line-height")})`,[p("item-base-height")]:m($("panel-padding")).mul(2).add($("icon-size")).add($("panel-title-height")).equal(),[p("item-base-width")]:`calc(${$("item-base-height")} * 0.7071)`,transition:`background-color ${n}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:m(i).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:m(i).mul(2).add("100%").equal(),width:$("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:$("panel-bg-color"),stroke:$("panel-border-color"),strokeWidth:i,vectorEffect:"non-scaling-stroke",transition:`fill ${n}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:$("panel-padding"),background:$("panel-bg-color"),position:"relative",borderBlock:h,"&:not(:first-child)":{paddingInlineStart:`calc(${$("panel-padding")} + ${$("item-base-width")})`},"&:first-child":{borderInlineStart:h,borderStartStartRadius:$("item-border-radius"),borderEndStartRadius:$("item-border-radius")},"&:last-child":{borderInlineEnd:h,borderStartEndRadius:$("item-border-radius"),borderEndEndRadius:$("item-border-radius")},"&-active":{background:$("panel-active-bg-color"),borderColor:$("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:$("panel-active-bg-color"),stroke:$("panel-active-border-color")}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:$("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[p("panel-padding")]:l,[p("item-border-radius")]:r}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${(0,y.zA)(i)} 0,calc(100% + ${$("item-base-width")}) 0,calc(100% + ${$("item-base-width")}) 100%,${(0,y.zA)(i)} 100%,calc(${$("item-base-width")} + ${(0,y.zA)(i)}) 50%)`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:m(i).div(2).mul(-1).equal(),height:m(i).add("100%").equal()}}}]}})(t),(e=>{let{componentCls:t,inlineDotSize:i,paddingXS:o,lineWidth:r,antCls:n,calc:l}=e,a=l(o).add(r).equal(),c=`${t}-item`,[s,m]=(0,u.PN)(n,"cmp-steps");return{[`${t}-inline`]:{[s("items-offset")]:"0",[s("item-wrapper-padding-top")]:a,display:"inline-flex","&:before":{content:'""',flex:m("items-offset")},[c]:{[s("title-vertical-row-gap")]:o,[s("icon-size")]:i,[s("icon-size-active")]:i,[s("title-font-size")]:e.fontSizeSM,[s("title-line-height")]:e.lineHeightSM,[s("item-title-color")]:e.colorTextSecondary,[s("subtitle-font-size")]:e.fontSizeSM,[s("subtitle-line-height")]:e.lineHeightSM,[s("item-subtitle-color")]:e.colorTextQuaternary,[s("rail-size")]:e.lineWidth,[s("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${c}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}})(t),(e=>{let{componentCls:t}=e,i=`${t}-item`;return{[`${t}-max-count`]:{[`${i}-ellipsis`]:{[`${i}-title, ${i}-subtitle, ${i}-content`]:{color:e.colorTextDescription}}}}})(t),(e=>{let{calc:t,antCls:i,componentCls:o,lineWidthBold:r,motionDurationSlow:n}=e,l=`${o}-item`,[a,c]=(0,u.PN)(i,"cmp-steps"),s=t(r).add(r).equal();return{[`${o}${o}-with-progress`]:{[a("item-wrapper-padding-top")]:s,[`${l}${l}-process`]:{[`${l}-icon`]:{position:"relative"}},[`${l}-progress-icon`]:{"&-svg":{[a("svg-size")]:t(s).mul(2).add(c("icon-size")).equal(),[a("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${c("svg-size")}, 1px)))`,fontSize:c("svg-size"),lineHeight:c("icon-size-ptg-unitless"),position:"absolute",inset:t(s).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:c("icon-size-ptg-unitless"),strokeWidth:t(c("icon-size-ptg-unitless")).mul(r).equal(),[a("progress-radius")]:t(c("svg-size")).sub(r).mul(c("icon-size-ptg-unitless")).div(2).equal(),r:c("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${n} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,antCls:o}=e,r=`${t}-item`,[,n]=(0,u.PN)(o,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(calc(0px - ${n("item-base-width")}) 0px,calc(100% - ${(0,y.zA)(i)}) 0px,calc(100% - ${n("item-base-width")} - ${(0,y.zA)(i)}) 50%,calc(100% - ${(0,y.zA)(i)}) 100%,calc(0px - ${n("item-base-width")}) 100%)`}}}}}}})(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));var N=i(241);let A={itemIcon:d.D},P=e=>{let t,i,{size:d,className:x,rootClassName:z,style:w,variant:y="filled",type:S,classNames:I,styles:k,direction:C,orientation:P,responsive:H=!0,progressDot:W,labelPlacement:B,titlePlacement:M,ellipsis:T,maxCount:q,offset:R=0,items:D,percent:j,current:O=0,initial:F=0,onChange:_,iconRender:L,...X}=e,G=o.useContext(b.j),Y=(0,p.TP)("steps"),{getPrefixCls:Q,direction:K,className:V,style:J}=Y,U={};G?U={root:G.rootComponent,item:G.itemComponent}:{classNames:t,styles:i}=Y;let Z=Q(),ee=Q("steps",e.prefixCls),et=`${ee}-item-icon`,[ei,eo]=E(ee),[er]=(0,u.PN)(Z,"cmp-steps"),en=(0,$.A)(d),el=o.useMemo(()=>(D||[]).filter(Boolean),[D]),{xs:ea}=(0,h.A)(H),ec=o.useMemo(()=>S&&"default"!==S?S:W?"dot":S,[W,S]),es="inline"===ec,em="dot"===ec||"inline"===ec,ed=o.useMemo(()=>"dot"===ec&&(0,s.Tn)(W)?W:void 0,[ec,W]),ep=o.useMemo(()=>{let e=P||C;return"panel"===ec?"horizontal":H&&ea||"vertical"===e?"vertical":"horizontal"},[P,C,ec,H,ea]),e$=o.useMemo(()=>em||"vertical"===ep?"vertical"===ep?"horizontal":"vertical":"navigation"===S?"horizontal":M||B||"horizontal",[em,B,ep,M,S]),eh=es?void 0:j,{canApplyMaxCount:eu,displaySteps:eg,mappedDisplayCurrent:eb,displayItems:ev}=function(e,t,i,r,n){let l=void 0!==r&&r>=3&&e.length>r,a=t-i,c=o.useMemo(()=>{if(!l)return e.map((e,t)=>({item:e,originIndex:t}));let t=function(e,t,i){let o=Math.min(Math.max(t,0),e-1),r=Math.min(i,e),n=new Set([0,o,e-1]);for(let t=1;n.size<r&&t<e;t+=1)for(let i of[o-t,o+t,t,e-1-t]){if(n.size>=r)break;i>=0&&i<e&&n.add(i)}return Array.from(n).sort((e,t)=>e-t).flatMap((e,t,i)=>t>0&&e-i[t-1]>1?[null,e]:[e])}(e.length,a,r);return t.map((i,r)=>{var l;return null===i?function(e,t,i,r,n){let l=e[i].key??i,a=e[r].key??r,c=e.slice(i+1,r).some(e=>"error"===e.status)?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${a}`,title:"",icon:o.createElement(N.A),status:c,disabled:!0,className:`${n}-item-ellipsis`},originIndex:-1}}(e,a,t[r-1],t[r+1],n):(l=e[i],{item:{...l,key:l.key??i},originIndex:i})})},[l,a,e,r,n]),s=c.findIndex(e=>e.originIndex===a);return{canApplyMaxCount:l,displaySteps:c,mappedDisplayCurrent:s>=0?s:a,displayItems:c.map(e=>e.item)}}(el,O,F,q,ee),ef={...e,variant:y,size:en,type:ec,orientation:ep,titlePlacement:e$,current:O,initial:F,percent:eh,responsive:H,offset:R,ellipsis:T,maxCount:q},[ex,ez]=(0,c.AV)([A,t,I],[i,k],{props:ef}),ew="panel"===ec?e=>o.createElement(o.Fragment,null,e,o.createElement(v,{prefixCls:ee})):void 0,ey={[er("items-offset")]:`${R}`,...J,...w},eS=(0,a.$)(V,`${ee}-${y}`,{[`${ee}-${ec}`]:"dot"!==ec&&ec,[`${ee}-rtl`]:"rtl"===K,[`${ee}-dot`]:em,[`${ee}-ellipsis`]:T,[`${ee}-max-count`]:eu,[`${ee}-with-progress`]:void 0!==eh,[`${ee}-small`]:"small"===en},x,z,ei,eo);return o.createElement(l.Ay,{...X,prefixCls:ee,className:eS,style:ey,classNames:ex,styles:ez,orientation:ep,titlePlacement:e$,components:U,initial:0,current:eb,items:ev,onChange:_?e=>{let t=eg[e];_&&t&&t.originIndex>=0&&_(F+t.originIndex)}:void 0,iconRender:(e,t)=>{let{item:i,index:l,active:a,components:{Icon:c}}=t,m=eg[l]?.originIndex,d=void 0!==m&&m>=0?F+m:l,{status:p,icon:$}=i,h=null;if(em||$)h=$;else switch(p){case"finish":h=o.createElement(r.A,{className:`${et}-finish`});break;case"error":h=o.createElement(n.A,{className:`${et}-error`});break;default:{let e=o.createElement("span",{className:`${et}-number`},d+1);"process"===p&&void 0!==eh&&(e=o.createElement(f,{prefixCls:ee,rootPrefixCls:Z,percent:eh},e)),h=e}}let u=o.createElement(c,null,h);return L?u=L(u,{index:d,active:a,item:i,components:{Icon:c}}):(0,s.Tn)(ed)&&(u=ed(u,{index:d,...i})),u},itemRender:(e,t)=>{let i=e;return es&&t.item.content&&(i=o.createElement(g.A,{destroyOnHidden:!0,title:t.item.content},e)),o.createElement(m.A,{component:"Steps",disabled:t.item.disabled||!_,colorSource:"filled"===y?"color":null},i)},itemWrapperRender:ew})}},9981:(e,t,i)=>{i.d(t,{QB:()=>a,Ay:()=>b});var o=i(3638),r=i(7109),n=i(9452);function l(e){let{prefixCls:t,className:i,style:n,status:l}=e,a=`${t}-rail`;return r.createElement("div",{className:(0,o.$)(a,`${a}-${l}`,i),style:n})}let a=r.createContext({}),c=r.createContext(null);var s=i(7597);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let d=r.createContext({}),p=r.forwardRef((e,t)=>{let{className:i,style:n,children:l,...a}=e,{prefixCls:p,classNames:$,styles:h}=r.useContext(c),{className:u,style:g}=r.useContext(d),b=`${p}-item`;return r.createElement("div",m({},(0,s.A)(a,!1),{ref:t,className:(0,o.$)(`${b}-icon`,$.itemIcon,u,i),style:{...h.itemIcon,...g,...n}}),l)});function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function h(e){let{prefixCls:t,classNames:i,styles:s,data:m,last:h,nextStatus:u,active:g,index:b,itemRender:v,iconRender:f,itemWrapperRender:x,onClick:z}=e,w=`${t}-item`,{railFollowPrevStatus:y}=r.useContext(a),{ItemComponent:S}=r.useContext(c),{onClick:I,title:k,subTitle:C,content:E,description:N,disabled:A,icon:P,status:H,className:W,style:B,classNames:M={},styles:T={},...q}=m,R=E??N,D={item:{...m,content:R},index:b,active:g},j={};(z||I)&&!A&&(j.role="button",j.tabIndex=0,j.onClick=e=>{I?.(e),z(b)},j.onKeyDown=e=>{let{which:t}=e;(t===n.A.ENTER||t===n.A.SPACE)&&z(b)});let O=H||"wait",F=null!=k,_=null!=C,L=(0,o.$)(w,`${w}-${O}`,{[`${w}-custom`]:P,[`${w}-active`]:g,[`${w}-disabled`]:!0===A,[`${w}-empty-header`]:!F&&!_},W,i.item,M.root),X=r.createElement(p,null);f&&(X=f(X,{...D,components:{Icon:p}}));let G=r.createElement("div",{className:(0,o.$)(`${w}-wrapper`,i.itemWrapper,M.wrapper),style:{...s.itemWrapper,...T.wrapper}},r.createElement(d.Provider,{value:{className:M.icon,style:T.icon}},X),r.createElement("div",{className:(0,o.$)(`${w}-section`,i.itemSection,M.section),style:{...s.itemSection,...T.section}},r.createElement("div",{className:(0,o.$)(`${w}-header`,i.itemHeader,M.header),style:{...s.itemHeader,...T.header}},F&&r.createElement("div",{className:(0,o.$)(`${w}-title`,i.itemTitle,M.title),style:{...s.itemTitle,...T.title}},k),_&&r.createElement("div",{title:"string"==typeof C?C:void 0,className:(0,o.$)(`${w}-subtitle`,i.itemSubtitle,M.subtitle),style:{...s.itemSubtitle,...T.subtitle}},C),!h&&r.createElement(l,{prefixCls:w,className:(0,o.$)(i.itemRail,M.rail),style:{...s.itemRail,...T.rail},status:y?H:u})),null!=R&&r.createElement("div",{className:(0,o.$)(`${w}-content`,i.itemContent,M.content),style:{...s.itemContent,...T.content}},R))),Y=r.createElement(S,$({},q,j,{className:L,style:{...s.item,...T.root,...B}}),x?x(G):G);return v&&(Y=v(Y,D)||null),Y}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let g={},b=function(e){let{prefixCls:t="rc-steps",style:i,className:n,classNames:l=g,styles:a=g,rootClassName:s,orientation:m,titlePlacement:d,components:p,status:$="process",current:b=0,initial:v=0,onChange:f,items:x,iconRender:z,itemRender:w,itemWrapperRender:y,...S}=e,I="vertical"===m,k=(0,o.$)(t,`${t}-${I?"vertical":"horizontal"}`,`${t}-title-${I||"vertical"!==d?"horizontal":"vertical"}`,s,n,l.root),C=r.useMemo(()=>(x||[]).filter(Boolean),[x]),E=r.useMemo(()=>C.map(({status:e},t)=>{let i=v+t;return e?e:i===b?$:i<b?"finish":"wait"}),[C,$,b,v]),N=e=>{f&&b!==e&&f(e)},{root:A="div",item:P="div"}=p||{},H=r.useMemo(()=>({prefixCls:t,classNames:l,styles:a,ItemComponent:P}),[t,l,a,P]);return r.createElement(A,u({className:k,style:{...i,...a?.root}},S),r.createElement(c.Provider,{value:H},C.map((e,i)=>{let o=v+i,n=E[i],c=E[i+1],s={...e,status:n};return r.createElement(h,{key:o,prefixCls:t,classNames:l,styles:a,data:s,nextStatus:c,active:o===b,index:o,last:C.length-1===i,iconRender:z,itemRender:w,itemWrapperRender:y,onClick:f&&N})})))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[257],{1611:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},2446:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},3374:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(7109),r=a(9950),c=a(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},3998:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(7109),r=a(2446),c=a(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},4849:(e,t,a)=>{a.d(t,{A:()=>y});var n=a(7109),r=a(2644),c=a(2690),l=a(3638),s=a(2162),i=a(6047),o=a(4567),f=a(8762);let m=e=>{let t,{value:a,formatter:r,precision:c,decimalSeparator:l,groupSeparator:s="",prefixCls:o,className:f,style:m}=e;if((0,i.Tn)(r))t=r(a);else{let e=String(a),r=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(r&&"-"!==e){let e=r[1],a=r[2]||"0",f=r[4]||"";a=a.replace(/\B(?=(\d{3})+(?!\d))/g,s),(0,i.Et)(c)&&(f=f.padEnd(c,"0").slice(0,c>0?c:0)),f&&(f=`${l}${f}`),t=[n.createElement("span",{key:"int",className:`${o}-content-value-int`},e,a),f&&n.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},f)]}else t=e}return n.createElement("span",{className:f,style:m},t)};var u=a(7961),d=a(540),v=a(8403);let p=(0,d.OF)("Statistic",e=>(e=>{let{componentCls:t,marginXXS:a,padding:n,colorTextDescription:r,titleFontSize:c,colorTextHeading:l,contentFontSize:s,fontFamily:i}=e;return{[t]:{...(0,u.dF)(e),[`${t}-header`]:{paddingBottom:a,[`${t}-title`]:{color:r,fontSize:c}},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:l,fontSize:s,fontFamily:i,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:a},[`${t}-content-suffix`]:{marginInlineStart:a}}}}})((0,v.oX)(e,{})),e=>{let{fontSizeHeading3:t,fontSize:a}=e;return{titleFontSize:a,contentFontSize:t}}),h=n.forwardRef((e,t)=>{let{prefixCls:a,className:c,rootClassName:u,style:d,valueStyle:v,value:h=0,title:g,valueRender:$,prefix:w,suffix:E,loading:y=!1,formatter:b,precision:z,decimalSeparator:H=".",groupSeparator:x=",",onMouseEnter:A,onMouseLeave:O,styles:V,classNames:N,...S}=e,{getPrefixCls:M,direction:j,className:k,style:T,classNames:R,styles:B}=(0,o.TP)("statistic"),C=M("statistic",a),[I,D]=p(C),P={...e,decimalSeparator:H,groupSeparator:x,loading:y,value:h},_=(0,s.XT)(T),F=(0,s.XT)(d),[X,q]=(0,s.AV)([R,N],[B,_,V,F],{props:P}),K=(0,l.$)(C,{[`${C}-rtl`]:"rtl"===j},k,c,u,X.root,I,D),L=(0,l.$)(`${C}-header`,X.header),Y=(0,l.$)(`${C}-title`,X.title),G=(0,l.$)(`${C}-content`,X.content),J=(0,l.$)(`${C}-content-value`,X.value),Q=(0,l.$)(`${C}-content-prefix`,X.prefix),U=(0,l.$)(`${C}-content-suffix`,X.suffix),W=n.createElement(m,{decimalSeparator:H,groupSeparator:x,prefixCls:C,formatter:b,precision:z,value:h,className:J,style:q.value}),Z=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ee=(0,r.KE)(S,{aria:!0,data:!0});return n.createElement("div",{...ee,className:K,style:q.root,ref:Z,onMouseEnter:A,onMouseLeave:O},g&&n.createElement("div",{className:L,style:q.header},n.createElement("div",{className:Y,style:q.title},g)),n.createElement(f.A,{paragraph:!1,loading:y,className:`${C}-skeleton`,active:!0},n.createElement("div",{className:G,style:{...v,...q.content}},w&&n.createElement("span",{className:Q,style:q.prefix},w),(0,i.Tn)($)?$(W):W,E&&n.createElement("span",{className:U,style:q.suffix},E))))}),g=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],$=1e3/60,w=e=>{let{value:t,format:a="HH:mm:ss",onChange:l,onFinish:s,type:i,...o}=e,f="countdown"===i,[m,u]=n.useState(null),d=(0,r._q)(()=>{let e=Date.now(),a=new Date(t).getTime();u({});let n=f?a-e:e-a;return l?.(n),!f||!(a<e)||(s?.(),!1)});return n.useEffect(()=>{let e;return e=window.setInterval(()=>{d()||window.clearInterval(e)},$),()=>{window.clearInterval(e)}},[t,f]),n.useEffect(()=>{u({})},[]),n.createElement(h,{...o,value:t,valueRender:e=>(0,c.Ob)(e,{title:void 0}),formatter:(e,t)=>m?function(e,t,a){let{format:n=""}=t,r=new Date(e).getTime(),c=Date.now();return function(e,t){let a=e,n=/\[[^\]]*]/g,r=(t.match(n)||[]).map(e=>e.slice(1,-1)),c=t.replace(n,"[]"),l=g.reduce((e,[t,n])=>{if(e.includes(t)){let r=Math.floor(a/n);return a-=r*n,e.replace(RegExp(`${t}+`,"g"),e=>{let t=e.length;return r.toString().padStart(t,"0")})}return e},c),s=0;return l.replace(n,()=>{let e=r[s];return s+=1,e})}(a?Math.max(r-c,0):Math.max(c-r,0),n)}(e,{...t,format:a},f):"-"})},E=n.memo(e=>n.createElement(w,{...e,type:"countdown"}));h.Timer=w,h.Countdown=E;let y=h},5295:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"}},6619:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(7109),r=a(1611),c=a(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},8383:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(7109),r=a(5295),c=a(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},9950:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"}}}]);
@@ -0,0 +1,28 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[260],{241:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7109),o=n(9857),a=n(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(a.A,l({},e,{ref:t,icon:o.A})))},1242:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},1566:(e,t,n)=>{n.d(t,{A:()=>$});var r=n(2865),o=n(7611),a=n(3638),l=n(7109),i=n(9452),s=n(9127);let{ESC:c,TAB:d}=i.A,u=(0,l.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:a}=e,i=(0,l.useMemo)(()=>"function"==typeof n?n():n,[n]),s=(0,o.K4)(t,(0,o.A9)(i));return l.createElement(l.Fragment,null,r&&l.createElement("div",{className:`${a}-arrow`}),l.cloneElement(i,{ref:(0,o.f3)(i)?s:void 0}))}),p={adjustX:1,adjustY:1},f=[0,0],m={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:f},top:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:f},bottom:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:f}};function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let $=l.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:i="rc-dropdown",transitionName:p,animation:f,align:$,placement:g="bottomLeft",placements:v=m,getPopupContainer:h,showAction:y,hideAction:k,overlayClassName:w,overlayStyle:E,visible:x,trigger:S=["hover"],autoFocus:C,overlay:A,children:R,onVisibleChange:z,..._}=e,[M,N]=l.useState(),P="visible"in e?x:M,T=f?`${i}-${f}`:p,O=l.useRef(null),I=l.useRef(null),D=l.useRef(null);l.useImperativeHandle(t,()=>O.current);let L=e=>{N(e),z?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){let a=l.useRef(!1),i=()=>{e&&(t.current?.focus?.(),n?.(!1))},u=()=>!!o.current?.focus&&(o.current.focus(),a.current=!0,!0),p=e=>{switch(e.keyCode){case c:i();break;case d:{let t=!1;a.current||(t=u()),t?e.preventDefault():i()}}};l.useEffect(()=>e?(window.addEventListener("keydown",p),r&&(0,s.A)(u,3),()=>{window.removeEventListener("keydown",p),a.current=!1}):()=>{a.current=!1},[e])}({visible:P,triggerRef:D,onVisibleChange:L,autoFocus:C,overlayRef:I});let B=()=>l.createElement(u,{ref:I,overlay:A,prefixCls:i,arrow:n}),j=l.cloneElement(R,{className:(0,a.$)(R.props?.className,P&&(()=>{let{openClassName:t}=e;return void 0!==t?t:`${i}-open`})()),ref:(0,o.f3)(R)?(0,o.K4)(D,(0,o.A9)(R)):void 0}),H=k;return H||-1===S.indexOf("contextMenu")||(H=["click"]),l.createElement(r.Ay,b({builtinPlacements:v},_,{prefixCls:i,ref:O,popupClassName:(0,a.$)(w,{[`${i}-show-arrow`]:n}),popupStyle:E,action:S,showAction:y,hideAction:H,popupPlacement:g,popupAlign:$,popupMotion:{motionName:T},popupVisible:P,stretch:(()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof A?B:B(),onOpenChange:L,onPopupClick:t=>{let{onOverlayClick:n}=e;N(!1),n&&n(t)},getPopupContainer:h}),j)})},1702:(e,t,n)=>{n.d(t,{A:()=>P});var r=n(7109),o=n(2644),a=n(3638),l=n(7960),i=n(2162),s=n(6047),c=n(2690),d=n(8862),u=n(4567),p=n(6831),f=n(5561),m=n(7252),b=n(8697),$=n(2154),g=n(7961),v=n(8403),h=n(540);let y=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return(0,v.oX)(e,{tagFontSize:o,tagLineHeight:(0,f.zA)(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},k=e=>{let t=(0,$.z)(new b.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new m.Y(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},w=(0,h.OF)("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,l=a(r).sub(n).equal(),i=a(t).sub(n).equal();return{[o]:{...(0,g.dF)(e),display:"inline-block",height:"auto",paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-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(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-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}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(y(e)),k),E=r.forwardRef((e,t)=>{let{prefixCls:n,style:o,className:l,checked:i,children:s,icon:c,onChange:d,onClick:f,onKeyDown:m,disabled:b,...$}=e,{getPrefixCls:g,tag:v}=r.useContext(u.QO),h=r.useContext(p.A),y=b??h,k=g("tag",n),[E,x]=w(k),S=(0,a.$)(k,`${k}-checkable`,{[`${k}-checkable-checked`]:i,[`${k}-checkable-disabled`]:y},v?.className,l,E,x);return r.createElement("span",{...$,ref:t,role:"checkbox","aria-checked":i,"aria-disabled":y||void 0,tabIndex:y?-1:0,style:{...o,...v?.style},className:S,onClick:e=>{y||(d?.(!i),f?.(e))},onKeyDown:e=>{m?.(e),e.defaultPrevented||y||" "===e.key&&(e.preventDefault(),d?.(!i))}},c,r.createElement("span",null,s))});var x=n(7369),S=n(632);let C=r.forwardRef((e,t)=>{let{id:n,prefixCls:l,rootClassName:c,className:d,style:p,classNames:f,styles:m,disabled:b,options:$,value:g,defaultValue:v,onChange:h,multiple:y,...k}=e,{getPrefixCls:C,direction:A,className:R,style:z,classNames:_,styles:M}=(0,u.TP)("tag"),N=C("tag",l),P=`${N}-checkable-group`,T=(0,S.A)(N),[O,I]=w(N,T),D=(0,i.XT)(z),L=(0,i.XT)(p),[B,j]=(0,i.AV)([_,f],[M,D,m,L],{props:e}),H=(0,r.useMemo)(()=>Array.isArray($)?$.map(e=>(0,s.Qd)(e)?e:{value:e,label:e}):[],[$]),[W,G]=(0,o.PW)(v,g),X=r.useRef(null);(0,r.useImperativeHandle)(t,()=>({nativeElement:X.current}));let K=(0,o.KE)(k,{aria:!0,data:!0});return r.createElement("div",{...K,className:(0,a.$)(P,R,c,{[`${P}-disabled`]:b,[`${P}-rtl`]:"rtl"===A},O,I,d,B.root),style:j.root,id:n,ref:X},H.map(e=>r.createElement(E,{key:e.value,className:(0,a.$)(`${P}-item`,B.item,e.className),style:{...j.item,...e.style},checked:y?(W||[]).includes(e.value):W===e.value,onChange:t=>((e,t)=>{let n=null;if(y){let r=W||[];n=e?[].concat((0,x.A)(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;G(n),h?.(n)})(t,e),disabled:b},e.label)))});var A=n(5347),R=n(6924);let z=(0,h.bf)(["Tag","preset"],e=>(e=>(0,R.A)(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})))(y(e)),k),_=(e,t,n)=>{let r=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(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}`]}}}},M=(0,h.bf)(["Tag","status"],e=>{let t=y(e);return[_(t,"success","Success"),_(t,"processing","Info"),_(t,"error","Error"),_(t,"warning","Warning")]},k),N=r.forwardRef((e,t)=>{let{prefixCls:n,className:f,rootClassName:b,style:$,children:g,icon:v,color:h,variant:y,onClose:k,bordered:E,disabled:x,href:S,target:C,styles:R,classNames:_,...N}=e,{getPrefixCls:P,direction:T,className:O,variant:I,style:D,classNames:L,styles:B}=(0,u.TP)("tag"),[j,H,W,G,X]=function(e,t){let{color:n,variant:o,bordered:a}=e;return r.useMemo(()=>{let e,r=n?.endsWith("-inverse");e=o||(r?"solid":!1===a?"filled":t||"filled");let l=r?n?.replace("-inverse",""):n;void 0===l&&"solid"===e&&(l="default");let i=(0,A.nP)(l),s=(0,A.ZZ)(l),c={};if(!i&&!s&&l)if("solid"===e)c.backgroundColor=n;else{let t=new m.Y(l).toHsl();t.l=.95,c.backgroundColor=new m.Y(t).toHexString(),c.color=n,"outlined"===e&&(c.borderColor=n)}return[e,l,i,s,c]},[n,o,a,t])}(e,I),K=W||G,F=r.useContext(p.A),q=x??F,{tag:V}=r.useContext(u.QO),[Y,U]=r.useState(!0),Q=(0,o.cJ)(N,["closeIcon","closable"]),J={...e,color:H,variant:j,disabled:q},[Z,ee]=(0,i.AV)([L,_],[B,R],{props:J}),et=r.useMemo(()=>{let e={...ee.root,...D,...$};return q||(e={...X,...e}),e},[ee.root,D,$,X,q]),en=P("tag",n),[er,eo]=w(en),ea=(0,a.$)(en,O,Z.root,`${en}-${j}`,{[`${en}-${H}`]:K,[`${en}-hidden`]:!Y,[`${en}-rtl`]:"rtl"===T,[`${en}-disabled`]:q},f,b,er,eo),el=e=>{!q&&(e.stopPropagation(),k?.(e),e.defaultPrevented||U(!1))},ei=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())},[,es]=(0,l.$Z)((0,l.dG)(e),(0,l.dG)(V),{closable:!1,closeIconRender:e=>{let t=r.createElement("span",{role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,className:(0,a.$)(`${en}-close-icon`,Z.close),onClick:el,onKeyDown:ei,style:ee.close},e);return(0,c.fx)(e,t,e=>({onClick:t=>{e?.onClick?.(t),el(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||ei(t)},role:"button",tabIndex:q?-1:0,"aria-disabled":q||void 0,className:(0,a.$)(e?.className,`${en}-close-icon`,Z.close),style:{...ee.close,...e?.style}}))}}),ec=(0,s.Tn)(N.onClick)||g&&"a"===g.type,ed=(0,c.Ob)(v,{className:(0,a.$)(r.isValidElement(v)?v.props?.className:void 0,Z.icon),style:ee.icon}),eu=ed?r.createElement(r.Fragment,null,ed,g&&r.createElement("span",{className:Z.content,style:ee.content},g)):g,ep=r.createElement(S?"a":"span",{...Q,ref:t,className:ea,style:et,href:q?void 0:S,target:C,onClick:q?void 0:Q.onClick,...S&&q?{"aria-disabled":!0}:{}},eu,es,W&&r.createElement(z,{key:"preset",prefixCls:en}),G&&r.createElement(M,{key:"status",prefixCls:en}));return ec?r.createElement(d.A,{component:"Tag"},ep):ep});N.CheckableTag=E,N.CheckableTagGroup=C;let P=N},1910:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(4446),o=n(7109),a=n(3638),l=n(8),i=n(3473);let s=void 0,c=o.forwardRef(function(e,t){let n,{prefixCls:i,invalidate:c,item:d,renderItem:u,responsive:p,responsiveDisabled:f,registerSize:m,itemKey:b,className:$,style:g,children:v,display:h,order:y,component:k="div",...w}=e,E=p&&!h;o.useEffect(()=>()=>{m(b,null)},[]);let x=u&&d!==s?u(d,{index:y}):v;c||(n={opacity:+!E,height:E?0:s,overflowY:E?"hidden":s,order:p?y:s,pointerEvents:E?"none":s,position:E?"absolute":s});let S={};E&&(S["aria-hidden"]=!0);let C=o.createElement(k,(0,r.A)({className:(0,a.$)(!c&&i,$),style:{...n,...g}},S,w,{ref:t}),x);return p&&(C=o.createElement(l.Ay,{onResize:({offsetWidth:e})=>{m(b,e)},disabled:f},C)),C});var d=n(9750),u=n(1222),p=n(9127);function f(e,t){let[n,r]=o.useState(t);return[n,(0,d.A)(t=>{e(()=>{r(t)})})]}let m=o.createContext(null),b=o.forwardRef((e,t)=>{let n=o.useContext(m);if(!n){let{component:n="div",...a}=e;return o.createElement(n,(0,r.A)({},a,{ref:t}))}let{className:l,...i}=n,{className:s,...d}=e;return o.createElement(m.Provider,{value:null},o.createElement(c,(0,r.A)({ref:t,className:(0,a.$)(l,s)},i,d)))}),$="responsive",g="invalidate";function v(e){return`+ ${e.length} ...`}let h=o.forwardRef(function(e,t){let{prefixCls:n="rc-overflow",data:s=[],renderItem:d,renderRawItem:b,itemKey:h,itemWidth:y=10,ssr:k,style:w,className:E,maxCount:x,renderRest:S,renderRawRest:C,prefix:A,suffix:R,component:z="div",itemComponent:_,onVisibleChange:M,...N}=e,P="full"===k,T=function(){let e=o.useRef(null);return t=>{if(!e.current){e.current=[];var n=()=>{(0,u.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})};if("undefined"==typeof MessageChannel)(0,p.A)(n);else{let e=new MessageChannel;e.port1.onmessage=()=>n(),e.port2.postMessage(void 0)}}e.current.push(t)}}(),[O,I]=f(T,null),D=O||0,[L,B]=f(T,new Map),[j,H]=f(T,0),[W,G]=f(T,0),[X,K]=f(T,0),[F,q]=f(T,0),[V,Y]=(0,o.useState)(null),[U,Q]=(0,o.useState)(null),J=o.useMemo(()=>null===U&&P?Number.MAX_SAFE_INTEGER:U||0,[U,O]),[Z,ee]=(0,o.useState)(!1),et=`${n}-item`,en=Math.max(j,W),er=x===$,eo=s.length&&er,ea=x===g,el=eo||"number"==typeof x&&s.length>x,ei=(0,o.useMemo)(()=>{let e=s;return eo?e=null===O&&P?s:s.slice(0,Math.min(s.length,D/y)):"number"==typeof x&&(e=s.slice(0,x)),e},[s,y,O,x,eo]),es=(0,o.useMemo)(()=>eo?s.slice(J+1):s.slice(ei.length),[s,ei,eo,J]),ec=(0,o.useCallback)((e,t)=>"function"==typeof h?h(e):(h&&e?.[h])??t,[h]),ed=(0,o.useCallback)(d||(e=>e),[d]);function eu(e,t,n){(U!==e||void 0!==t&&t!==V)&&(Q(e),n||(ee(e<s.length-1),M?.(e)),void 0!==t&&Y(t))}function ep(e,t){B(n=>{let r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function ef(e){return L.get(ec(ei[e],e))}(0,i.A)(()=>{if(D&&"number"==typeof en&&ei){let e=X+F,t=ei.length,n=t-1;if(!t)return void eu(0,null);for(let r=0;r<t;r+=1){let t=ef(r);if(P&&(t=t||0),void 0===t){eu(r-1,void 0,!0);break}if(e+=t,0===n&&e<=D||r===n-1&&e+ef(n)<=D){eu(n,null);break}if(e+en>D){eu(r-1,e-t-F+W);break}}R&&ef(0)+F>D&&Y(null)}},[D,L,W,X,F,ec,ei]);let em=Z&&!!es.length,eb={};null!==V&&eo&&(eb={position:"absolute",top:0,insetInlineStart:V});let e$={prefixCls:et,responsive:eo,component:_,invalidate:ea},eg=b?(e,t)=>{let n=ec(e,t);return o.createElement(m.Provider,{key:n,value:{...e$,order:t,item:e,itemKey:n,registerSize:ep,display:t<=J}},b(e,t))}:(e,t)=>{let n=ec(e,t);return o.createElement(c,(0,r.A)({},e$,{order:t,key:n,item:e,renderItem:ed,itemKey:n,registerSize:ep,display:t<=J}))},ev={order:em?J:Number.MAX_SAFE_INTEGER,className:`${et}-rest`,registerSize:function(e,t){G(t),H(W)},display:em},eh=S||v,ey=C?o.createElement(m.Provider,{value:{...e$,...ev}},C(es)):o.createElement(c,(0,r.A)({},e$,ev),"function"==typeof eh?eh(es):eh),ek=o.createElement(z,(0,r.A)({className:(0,a.$)(!ea&&n,E),style:w,ref:t},N),A&&o.createElement(c,(0,r.A)({},e$,{responsive:er,responsiveDisabled:!eo,order:-1,className:`${et}-prefix`,registerSize:function(e,t){K(t)},display:!0}),A),ei.map(eg),el?ey:null,R&&o.createElement(c,(0,r.A)({},e$,{responsive:er,responsiveDisabled:!eo,order:J,className:`${et}-suffix`,registerSize:function(e,t){q(t)},display:!0,style:eb}),R));return er?o.createElement(l.Ay,{onResize:function(e,t){I(t.clientWidth)},disabled:!eo},ek):ek});h.Item=b,h.RESPONSIVE=$,h.INVALIDATE=g;let y=h},3134:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(7109),o=n(4567),a=n(5359);let l=(e,t,n)=>{let l,{variant:i,[e]:s}=r.useContext(o.QO),c=r.useContext(a.Pp),d=s?.variant;l=void 0!==t?t:!1===n?"borderless":c??d??i??"outlined";let u=o.lJ.includes(l);return[l,u]}},4446:(e,t,n)=>{n.d(t,{A:()=>r});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}},4746:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7109),o=n(1242),a=n(8483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(a.A,l({},e,{ref:t,icon:o.A})))},5347:(e,t,n)=>{n.d(t,{ZZ:()=>s,nP:()=>i});var r=n(7369),o=n(8012);let a=o.s.map(e=>`${e}-inverse`),l=["success","processing","error","default","warning"];function i(e,t=!0){return t?[].concat((0,r.A)(a),(0,r.A)(o.s)).includes(e):o.s.includes(e)}function s(e){return l.includes(e)}},6827:(e,t,n)=>{n.d(t,{EZ:()=>p,J6:()=>d,L2:()=>u,YU:()=>s,_j:()=>m,gx:()=>c,nP:()=>i,ox:()=>a,vR:()=>l});var r=n(5561),o=n(5688);let a=new r.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),l=new r.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),i=new r.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new r.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new r.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new r.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:a,outKeyframes:l},"slide-down":{inKeyframes:i,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:d},"slide-right":{inKeyframes:u,outKeyframes:p}},m=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=f[t];return[(0,o.b)(r,a,l,e.motionDurationMid),{[`
2
+ ${r}-enter,
3
+ ${r}-appear
4
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},6924:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8012);function o(e,t){return r.s.reduce((n,r)=>{let o=e[`${r}1`],a=e[`${r}3`],l=e[`${r}6`],i=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:a,darkColor:l,textColor:i})}},{})}},8569:(e,t,n)=>{n.d(t,{A:()=>J});var r=n(7109),o=n(5042),a=n(241),l=n(4746),i=n(3638),s=n(2644);let c=(0,r.createContext)(null);var d=n(8);let u={width:0,height:0,left:0,top:0};function p(e,t){let n=r.useRef(e),[,o]=r.useState({});return[n.current,function(e){let r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}function f(e){let[t,n]=(0,r.useState)(0),o=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,(0,s.oM)(()=>{a.current?.()},[t]),()=>{o.current===t&&(o.current+=1,n(o.current))}}let m={width:0,height:0,left:0,top:0,right:0};function b(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}function $(e){return String(e).replace(/"/g,"TABS_DQ")}function g(e,t,n,r){return!!n&&!r&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}let v=r.forwardRef((e,t)=>{let{prefixCls:n,editable:o,locale:a,style:l}=e;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:l,"aria-label":a?.addAriaLabel||"Add tab",onClick:e=>{o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),h=r.forwardRef((e,t)=>{let n,{position:o,prefixCls:a,extra:l}=e;if(!l)return null;let i={};return"object"!=typeof l||r.isValidElement(l)?i.right=l:i=l,"right"===o&&(n=i.right),"left"===o&&(n=i.left),n?r.createElement("div",{className:`${a}-extra-content`,ref:t},n):null});var y=n(1566),k=n(9292);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let E=r.forwardRef((e,t)=>{let{prefixCls:n,id:o,tabs:a,locale:l,mobile:c,more:d={},style:u,className:p,editable:f,tabBarGutter:m,rtl:b,removeAriaLabel:$,onTabClick:h,getPopupContainer:E,popupClassName:x,popupStyle:S,classNames:C,styles:A}=e,[R,z]=(0,r.useState)(!1),[_,M]=(0,r.useState)(null),{icon:N="More"}=d,P=`${o}-more-popup`,T=`${n}-dropdown`,O=null!==_?`${P}-${_}`:null,I=l?.dropdownAriaLabel,D=r.createElement(k.Ay,{onClick:({key:e,domEvent:t})=>{h(e,t),z(!1)},prefixCls:`${T}-menu`,id:P,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[_],"aria-label":void 0!==I?I:"expanded dropdown"},a.map(e=>{let{closable:t,disabled:n,closeIcon:a,key:l,label:s}=e,c=g(t,a,f,n);return r.createElement(k.Dr,{key:l,id:`${P}-${l}`,role:"option","aria-controls":o&&`${o}-panel-${l}`,disabled:n},r.createElement("span",null,s),c&&r.createElement("button",{type:"button","aria-label":$||"remove",tabIndex:0,className:(0,i.$)(`${T}-menu-item-remove`,C?.remove),style:A?.remove,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,l)}},a||f.removeIcon||"\xd7"))}));function L(e){let t=a.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===_)||0,r=t.length;for(let o=0;o<r;o+=1){let o=t[n=(n+e+r)%r];if(!o.disabled)return void M(o.key)}}(0,r.useEffect)(()=>{let e=document.getElementById(O);e?.scrollIntoView&&e.scrollIntoView(!1)},[O,_]),(0,r.useEffect)(()=>{R||M(null)},[R]);let B={marginInlineStart:m};a.length||(B.visibility="hidden",B.order=1);let j=(0,i.$)(x,{[`${T}-rtl`]:b}),H=c?null:r.createElement(y.A,w({prefixCls:T,overlay:D,visible:!!a.length&&R,onVisibleChange:z,overlayClassName:j,overlayStyle:S,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:E},d),r.createElement("button",{type:"button",className:`${n}-nav-more`,style:B,"aria-haspopup":"listbox","aria-controls":P,id:`${o}-more`,"aria-expanded":R,onKeyDown:function(e){let{which:t}=e;if(!R){[s.DD.DOWN,s.DD.SPACE,s.DD.ENTER].includes(t)&&(z(!0),e.preventDefault());return}switch(t){case s.DD.UP:L(-1),e.preventDefault();break;case s.DD.DOWN:L(1),e.preventDefault();break;case s.DD.ESC:z(!1);break;case s.DD.SPACE:case s.DD.ENTER:null!==_&&h(_,e)}}},N));return r.createElement("div",{className:(0,i.$)(`${n}-nav-operations`,p),style:u,ref:t},H,r.createElement(v,{prefixCls:n,locale:l,editable:f}))}),x=r.memo(E,(e,t)=>t.tabMoving),S=e=>{let{prefixCls:t,id:n,active:o,focus:a,tab:{key:l,label:s,disabled:c,closeIcon:d,icon:u},closable:p,renderWrapper:f,removeAriaLabel:m,editable:b,onClick:v,onFocus:h,onBlur:y,onKeyDown:k,onMouseDown:w,onMouseUp:E,styles:x,classNames:S,tabCount:C,currentPosition:A}=e,R=`${t}-tab`,z=g(p,d,b,c);function _(e){c||v(e)}let M=r.useMemo(()=>u&&"string"==typeof s?r.createElement("span",null,s):s,[s,u]),N=r.useRef(null);r.useEffect(()=>{a&&N.current&&N.current.focus()},[a]);let P=r.createElement("div",{key:l,"data-node-key":$(l),className:(0,i.$)(R,S?.item,{[`${R}-with-remove`]:z,[`${R}-active`]:o,[`${R}-disabled`]:c,[`${R}-focus`]:a}),style:x?.item,onClick:_},r.createElement("div",{ref:N,role:"tab","aria-selected":o,id:n&&`${n}-tab-${l}`,className:`${R}-btn`,"aria-controls":n&&`${n}-panel-${l}`,"aria-disabled":c,tabIndex:c?null:o?0:-1,onClick:e=>{e.stopPropagation(),_(e)},onKeyDown:k,onMouseDown:w,onMouseUp:E,onFocus:h,onBlur:y},a&&r.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${A} of ${C}`),u&&r.createElement("span",{className:`${R}-icon`},u),s&&M),z&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:o?0:-1,className:(0,i.$)(`${R}-remove`,S?.remove),style:x?.remove,onClick:e=>{e.stopPropagation(),function(e){e.preventDefault(),e.stopPropagation(),b.onEdit("remove",{key:l,event:e})}(e)}},d||b.removeIcon||"\xd7"));return f?f(P):P};function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let A=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(1>Math.abs(n-t))return[n,r]}return[t,n]},R=(e,t)=>e[+!t],z=r.forwardRef((e,t)=>{let n,o,a,l,{className:y,style:k,id:w,animated:E,activeKey:z,rtl:_,extra:M,editable:N,locale:P,tabPosition:T,tabBarGutter:O,children:I,onTabClick:D,onTabScroll:L,indicator:B,classNames:j,styles:H}=e,{prefixCls:W,tabs:G}=r.useContext(c),X=(0,r.useRef)(null),K=(0,r.useRef)(null),F=(0,r.useRef)(null),q=(0,r.useRef)(null),V=(0,r.useRef)(null),Y=(0,r.useRef)(null),U=(0,r.useRef)(null),Q="top"===T||"bottom"===T,[J,Z]=p(0,(e,t)=>{Q&&L&&L({direction:e>t?"left":"right"})}),[ee,et]=p(0,(e,t)=>{!Q&&L&&L({direction:e>t?"top":"bottom"})}),[en,er]=(0,r.useState)([0,0]),[eo,ea]=(0,r.useState)([0,0]),[el,ei]=(0,r.useState)([0,0]),[es,ec]=(0,r.useState)([0,0]),[ed,eu]=function(e){let t=(0,r.useRef)([]),[,n]=(0,r.useState)({}),o=(0,r.useRef)("function"==typeof e?e():e),a=f(()=>{let e=o.current;t.current.forEach(t=>{e=t(e)}),t.current=[],o.current=e,n({})});return[o.current,function(e){t.current.push(e),a()}]}(new Map),ep=function(e,t,n){return(0,r.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||u,o=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],l=t.get(a);l||(l=t.get(e[r-1]?.key)||u);let i=n.get(a)||{...l};i.right=o-i.left-i.width,n.set(a,i)}return n},[e.map(e=>e.key).join("_"),t,n])}(G,ed,eo[0]),ef=R(en,Q),em=R(eo,Q),eb=R(el,Q),e$=R(es,Q),eg=Math.floor(ef)<Math.floor(em+eb),ev=eg?ef-e$:ef-eb,eh=`${W}-nav-operations-hidden`,ey=0,ek=0;function ew(e){return e<ey?ey:e>ek?ek:e}Q&&_?(ey=0,ek=Math.max(0,em-ev)):(ey=Math.min(0,ev-em),ek=0);let eE=(0,r.useRef)(null),[ex,eS]=(0,r.useState)();function eC(){eS(Date.now())}function eA(){eE.current&&clearTimeout(eE.current)}!function(e,t){let[n,o]=(0,r.useState)(),[a,l]=(0,r.useState)(0),[i,s]=(0,r.useState)(0),[c,d]=(0,r.useState)(),u=(0,r.useRef)(),p=(0,r.useRef)(),f=(0,r.useRef)(null);f.current={onTouchStart:function(e){let{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),window.clearInterval(u.current)},onTouchMove:function(e){if(!n)return;let{screenX:r,screenY:i}=e.touches[0];o({x:r,y:i});let c=r-n.x,u=i-n.y;t(c,u);let p=Date.now();l(p),s(p-a),d({x:c,y:u})},onTouchEnd:function(){if(n&&(o(null),d(null),c)){let e=c.x/i,n=c.y/i;if(.1>Math.max(Math.abs(e),Math.abs(n)))return;let r=e,o=n;u.current=window.setInterval(()=>{if(.01>Math.abs(r)&&.01>Math.abs(o))return void window.clearInterval(u.current);r*=.9046104802746175,o*=.9046104802746175,t(20*r,20*o)},20)}},onWheel:function(e){let{deltaX:n,deltaY:r}=e,o=0,a=Math.abs(n),l=Math.abs(r);a===l?o="x"===p.current?n:r:a>l?(o=n,p.current="x"):(o=r,p.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect(()=>{function t(e){f.current.onTouchMove(e)}function n(e){f.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){f.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){f.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(q,(e,t)=>{var n,r,o,a;return!!eg&&(Q?(n=Z,r=e,n(e=>ew(e+r))):(o=et,a=t,o(e=>ew(e+a))),eA(),eC(),!0)}),(0,r.useEffect)(()=>(eA(),ex&&(eE.current=setTimeout(()=>{eS(0)},100)),eA),[ex]);let[eR,ez]=function(e,t,n,o,a,l,{tabs:i,tabPosition:s,rtl:c}){let d,u,p;return["top","bottom"].includes(s)?(d="width",u=c?"right":"left",p=Math.abs(n)):(d="height",u="top",p=-n),(0,r.useMemo)(()=>{if(!i.length)return[0,0];let n=i.length,r=n;for(let o=0;o<n;o+=1){let n=e.get(i[o].key)||m;if(Math.floor(n[u]+n[d])>Math.floor(p+t)){r=o-1;break}}let o=0;for(let t=n-1;t>=0;t-=1)if((e.get(i[t].key)||m)[u]<p){o=t+1;break}return o>r?[0,-1]:[o,r]},[e,t,o,a,l,p,s,i.map(e=>e.key).join("_"),c])}(ep,ev,Q?J:ee,em,eb,e$,{...e,tabs:G}),e_=(0,s._q)((e=z)=>{let t=ep.get(e)||{width:0,height:0,left:0,right:0,top:0};if(Q){let e=J;_?t.right<J?e=t.right:t.right+t.width>J+ev&&(e=t.right+t.width-ev):t.left<-J?e=-t.left:t.left+t.width>-J+ev&&(e=-(t.left+t.width-ev)),et(0),Z(ew(e))}else{let e=ee;t.top<-ee?e=-t.top:t.top+t.height>-ee+ev&&(e=-(t.top+t.height-ev)),Z(0),et(ew(e))}}),[eM,eN]=(0,r.useState)(),[eP,eT]=(0,r.useState)(!1),eO=G.filter(e=>!e.disabled).map(e=>e.key),eI=e=>{let t=eO.indexOf(eM||z),n=eO.length;eN(eO[(t+e+n)%n])},eD=(e,t)=>{let n=eO.indexOf(e),r=G.find(t=>t.key===e);g(r?.closable,r?.closeIcon,N,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),N.onEdit("remove",{key:e,event:t}),n===eO.length-1?eI(-1):eI(1))},eL=e=>{let{code:t}=e,n=_&&Q,r=eO[0],o=eO[eO.length-1];switch(t){case"ArrowLeft":Q&&eI(n?1:-1);break;case"ArrowRight":Q&&eI(n?-1:1);break;case"ArrowUp":e.preventDefault(),Q||eI(-1);break;case"ArrowDown":e.preventDefault(),Q||eI(1);break;case"Home":e.preventDefault(),eN(r);break;case"End":e.preventDefault(),eN(o);break;case"Enter":case"Space":e.preventDefault(),D(eM??z,e);break;case"Backspace":case"Delete":eD(eM,e)}},eB={};Q?eB.marginInlineStart=O:eB.marginTop=O;let ej=G.map((e,t)=>{let{key:n}=e;return r.createElement(S,{id:w,prefixCls:W,key:n,tab:e,classNames:{item:j?.item,remove:j?.remove},styles:{item:0===t?H?.item:{...eB,...H?.item},remove:H?.remove},closable:e.closable,editable:N,active:n===z,focus:n===eM,renderWrapper:I,removeAriaLabel:P?.removeAriaLabel,tabCount:eO.length,currentPosition:t+1,onClick:e=>{D(n,e)},onKeyDown:eL,onFocus:()=>{eP||eN(n),e_(n),eC(),q.current&&(_||(q.current.scrollLeft=0),q.current.scrollTop=0)},onBlur:()=>{eN(void 0)},onMouseDown:e=>((e,t)=>{eT(!0),1===t.button&&eD(e,t)})(n,e),onMouseUp:()=>{eT(!1)}})}),eH=()=>eu(()=>{let e=new Map,t=V.current?.getBoundingClientRect();return G.forEach(({key:n})=>{let r=V.current?.querySelector(`[data-node-key="${$(n)}"]`);if(r){let[o,a,l,i]=((e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:a}=e,{width:l,height:i,left:s,top:c}=e.getBoundingClientRect();return 1>Math.abs(l-n)?[l,i,s-t.left,c-t.top]:[n,r,a,o]})(r,t);e.set(n,{width:o,height:a,left:l,top:i})}}),e});(0,r.useEffect)(()=>{eH()},[G.map(e=>e.key).join("_")]);let eW=f(()=>{let e=A(X),t=A(K),n=A(F);er([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=A(U);ei(r),ec(A(Y));let o=A(V);ea([o[0]-r[0],o[1]-r[1]]),eH()}),eG=[...G.slice(0,eR),...G.slice(ez+1)],eX=ep.get(z),{style:eK}=(e=>{let{activeTabOffset:t,horizontal:n,rtl:o,indicator:a={}}=e,{size:l,align:i="center"}=a,[c,d]=(0,r.useState)(),u=(0,r.useRef)(),p=r.useCallback(e=>"function"==typeof l?l(e):"number"==typeof l?l:e,[l]);function f(){s.er.cancel(u.current)}return(0,r.useEffect)(()=>{let e={};if(t)if(n){e.width=p(t.width);let n=o?"right":"left";"start"===i&&(e[n]=t[n]),"center"===i&&(e[n]=t[n]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===i&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===i&&(e.top=t.top),"center"===i&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===i&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return f(),u.current=(0,s.er)(()=>{c&&e&&Object.keys(e).every(t=>{let n=e[t],r=c[t];return"number"==typeof n&&"number"==typeof r?Math.round(n)===Math.round(r):n===r})||d(e)}),f},[JSON.stringify(t),n,o,i,p]),{style:c}})({activeTabOffset:eX,horizontal:Q,indicator:B,rtl:_});(0,r.useEffect)(()=>{e_()},[z,ey,ek,b(eX),b(ep),Q]),(0,r.useEffect)(()=>{eW()},[_]);let eF=!!eG.length,eq=`${W}-nav-wrap`;return Q?_?(o=J>0,n=J!==ek):(n=J<0,o=J!==ey):(a=ee<0,l=ee!==ey),r.createElement(d.Ay,{onResize:eW},r.createElement("div",{ref:(0,s.xK)(t,X),role:"tablist","aria-orientation":Q?"horizontal":"vertical",className:(0,i.$)(`${W}-nav`,y,j?.header),style:{...H?.header,...k},onKeyDown:()=>{eC()}},r.createElement(h,{ref:K,position:"left",extra:M,prefixCls:W}),r.createElement(d.Ay,{onResize:eW},r.createElement("div",{className:(0,i.$)(eq,{[`${eq}-ping-left`]:n,[`${eq}-ping-right`]:o,[`${eq}-ping-top`]:a,[`${eq}-ping-bottom`]:l}),ref:q},r.createElement(d.Ay,{onResize:eW},r.createElement("div",{ref:V,className:`${W}-nav-list`,style:{transform:`translate(${J}px, ${ee}px)`,transition:ex?"none":void 0}},ej,r.createElement(v,{ref:U,prefixCls:W,locale:P,editable:N,style:{...0===ej.length?void 0:eB,visibility:eF?"hidden":null}}),r.createElement("div",{className:(0,i.$)(`${W}-ink-bar`,j?.indicator,{[`${W}-ink-bar-animated`]:E.inkBar}),style:{...eK,...H?.indicator}}))))),r.createElement(x,C({},e,{removeAriaLabel:P?.removeAriaLabel,ref:Y,prefixCls:W,tabs:eG,className:!eF&&eh,popupStyle:H?.popup,tabMoving:!!ex})),r.createElement(h,{ref:F,position:"right",extra:M,prefixCls:W})))}),_=({renderTabBar:e,...t})=>e?e(t,z):r.createElement(z,t);var M=n(7189);let N=r.forwardRef((e,t)=>{let{prefixCls:n,className:o,style:a,id:l,active:s,tabKey:c,children:d}=e,u=r.Children.count(d)>0;return r.createElement("div",{id:l&&`${l}-panel-${c}`,role:"tabpanel",tabIndex:s&&u?0:-1,"aria-labelledby":l&&`${l}-tab-${c}`,"aria-hidden":!s,style:a,className:(0,i.$)(n,s&&`${n}-active`,o),ref:t},d)});function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let T=e=>{let{id:t,activeKey:n,animated:o,tabPosition:a,destroyOnHidden:l,bodyStyle:s,bodyClassName:d,contentStyle:u,contentClassName:p}=e,{prefixCls:f,tabs:m}=r.useContext(c),b=o.tabPane,$=`${f}-body`,g=`${f}-content`;return r.createElement("div",{className:(0,i.$)(`${$}-holder`)},r.createElement("div",{className:(0,i.$)($,`${$}-${a}`,{[`${$}-animated`]:b},d),style:s},m.map(e=>{let{key:a,forceRender:s,style:c,className:d,destroyOnHidden:f,...m}=e,$=a===n;return r.createElement(M.Ay,P({key:a,visible:$,forceRender:s,removeOnLeave:!!(l??f),leavedClassName:`${g}-hidden`},o.tabPaneMotion),({style:e,className:n},o)=>r.createElement(N,P({},m,{prefixCls:g,id:t,tabKey:a,animated:b,active:$,style:{...u,...c,...e},className:(0,i.$)(p,d,n),ref:o})))})))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let I=0,D=r.forwardRef((e,t)=>{let{id:n,prefixCls:o="rc-tabs",className:a,items:l,direction:d,activeKey:u,defaultActiveKey:p,editable:f,animated:m,tabPosition:b="top",tabBarGutter:$,tabBarStyle:g,tabBarExtraContent:v,locale:h,more:y,destroyOnHidden:k,renderTabBar:w,onChange:E,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:A,indicator:R,classNames:z,styles:M,...N}=e,P=r.useMemo(()=>(l||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[l]),D="rtl"===d,L=function(e={inkBar:!0,tabPane:!1}){let t;return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}}).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(m),[B,j]=(0,r.useState)(!1);(0,r.useEffect)(()=>{j((0,s.Fr)())},[]);let[H,W]=(0,s.PW)(p??P[0]?.key,u),[G,X]=(0,r.useState)(()=>P.findIndex(e=>e.key===H));(0,r.useEffect)(()=>{let e=P.findIndex(e=>e.key===H);-1===e&&(e=Math.max(0,Math.min(G,P.length-1)),W(P[e]?.key)),X(e)},[P.map(e=>e.key).join("_"),H,G]);let[K,F]=(0,s.PW)(null,n);(0,r.useEffect)(()=>{n||(F(`rc-tabs-${I}`),I+=1)},[]);let q={id:K,activeKey:H,animated:L,tabPosition:b,rtl:D,mobile:B},V={...q,editable:f,locale:h,more:y,tabBarGutter:$,onTabClick:function(e,t){x?.(e,t);let n=e!==H;W(e),n&&E?.(e)},onTabScroll:S,extra:v,style:g,getPopupContainer:C,popupClassName:(0,i.$)(A,z?.popup),indicator:R,styles:M,classNames:z},Y=r.useMemo(()=>({tabs:P,prefixCls:o}),[P,o]);return r.createElement(c.Provider,{value:Y},r.createElement("div",O({ref:t,id:n,className:(0,i.$)(o,`${o}-${b}`,{[`${o}-mobile`]:B,[`${o}-editable`]:f,[`${o}-rtl`]:D},a)},N),r.createElement(_,O({},V,{renderTabBar:w})),r.createElement(T,O({destroyOnHidden:k},q,{bodyStyle:M?.body,bodyClassName:z?.body,contentStyle:M?.content,contentClassName:z?.content,animated:L}))))});var L=n(2162),B=n(4567),j=n(632),H=n(7273),W=n(6047),G=n(4649);let X={motionAppear:!1,motionEnter:!0,motionLeave:!0};var K=n(5561),F=n(7961),q=n(6827),V=n(540),Y=n(8403);let U=(0,V.OF)("Tabs",e=>{let t=(0,Y.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,K.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,K.zA)(e.horizontalItemGutter)}`});return[(e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:l,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,K.zA)(e.borderRadius)} ${(0,K.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,K.zA)(e.borderRadius)} ${(0,K.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,K.zA)(e.borderRadius)} ${(0,K.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,K.zA)(e.borderRadius)} 0 0 ${(0,K.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}})(t),(e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}})(t),(e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:l,motionDurationSlow:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,K.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${i}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
5
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(e=>`${e} ${i}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:(0,K.zA)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,K.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,K.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}})(t),(e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:o}=e;return{[`${n}-dropdown`]:{...(0,F.dF)(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
6
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
7
+ &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
8
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
9
+ &${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
10
+ &${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:q.ox},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
11
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
12
+ &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
13
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
14
+ &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
15
+ &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:q.nP},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
16
+ &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
17
+ &${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:q.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
18
+ &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
19
+ &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:q.YU},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,K.zA)(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...F.L9,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,K.zA)(e.paddingXXS)} ${(0,K.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}})(t),(e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,K.zA)(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:(0,F.jk)(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,K.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,K.zA)(e.borderRadiusLG)} ${(0,K.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,K.zA)(e.borderRadiusLG)} ${(0,K.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,K.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,K.zA)(e.borderRadiusLG)} 0 0 ${(0,K.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,K.zA)(e.borderRadiusLG)} ${(0,K.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}})(t),(e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:i}=e;return{[t]:{...(0,F.dF)(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${(0,K.zA)(e.lineWidth)} ${e.lineType} ${i}`,borderRadius:`${(0,K.zA)(e.borderRadiusLG)} ${(0,K.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l},...(0,F.K8)(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...(e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:i,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...(0,F.K8)(e)},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:i},[`&${c}-focus ${c}-btn:focus-visible`]:(0,F.jk)(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}})(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...(0,F.K8)(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}})(t),(e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,q._j)(e,"slide-up"),(0,q._j)(e,"slide-down")]]})(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,l=t||a,i=n||o,s=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:i,cardHeightLG:s,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Q=r.forwardRef((e,t)=>{let n,{type:c,className:d,rootClassName:u,size:p,onEdit:f,hideAdd:m,centered:b,addIcon:$,removeIcon:g,moreIcon:v,more:h,popupClassName:y,children:k,items:w,animated:E,style:x,indicatorSize:S,indicator:C,classNames:A,styles:R,destroyInactiveTabPane:z,destroyOnHidden:_,tabPlacement:M,tabPosition:N,...P}=e,{prefixCls:T}=P,{getPrefixCls:O,direction:I,getPopupContainer:K,className:F,style:q,classNames:V,styles:Y}=(0,B.TP)("tabs"),{tabs:Q}=r.useContext(B.QO),J=O("tabs",T),Z=(0,j.A)(J),[ee,et]=U(J,Z),en=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:en.current})),"editable-card"===c&&(n={onEdit:(e,{key:t,event:n})=>{f?.("add"===e?n:t,e)},removeIcon:g??Q?.removeIcon??r.createElement(o.A,null),addIcon:($??Q?.addIcon)||r.createElement(l.A,null),showAdd:!0!==m});let er=O(),eo=(0,H.A)(p),ea=function(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):(0,s.$r)(t).map(e=>{if(r.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...o}=n||{};return{key:String(t),...o,label:r}}return null}).filter(e=>e)}(w,k),el=function(e,t={inkBar:!0,tabPane:!1}){let n;return(n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...(0,W.Qd)(t)?t:{}}).tabPane&&(n.tabPaneMotion={...X,motionName:(0,G.b)(e,"switch")}),n}(J,E),ei={align:C?.align??Q?.indicator?.align,size:C?.size??S??Q?.indicator?.size??Q?.indicatorSize},es=r.useMemo(()=>{let e=M??N??void 0,t="rtl"===I;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[M,N,I]),ec={...e,size:eo,tabPlacement:es,items:ea},ed=(0,L.XT)(q),eu=(0,L.XT)(x),[ep,ef]=(0,L.AV)([V,A],[Y,ed,R,eu],{props:ec},{popup:{_default:"root"}});return r.createElement(D,{ref:en,direction:I,getPopupContainer:K,...P,items:ea,className:(0,i.$)({[`${J}-large`]:"large"===eo,[`${J}-small`]:"small"===eo,[`${J}-card`]:["card","editable-card"].includes(c),[`${J}-editable-card`]:"editable-card"===c,[`${J}-centered`]:b},F,d,u,ep.root,ee,et,Z),classNames:{...ep,popup:(0,i.$)(y,ee,et,Z,ep.popup?.root)},styles:ef,style:ef.root,editable:n,more:{icon:Q?.more?.icon??Q?.moreIcon??v??r.createElement(a.A,null),transitionName:`${er}-slide-up`,...h},prefixCls:J,animated:el,indicator:ei,destroyOnHidden:_??z,tabPosition:es})});Q.TabPane=()=>null;let J=Q},8787:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(7109),o=n(2644),a=n(3638),l=n(2162),i=n(4567),s=n(7273),c=n(3134),d=n(8762),u=n(8569);let p=({prefixCls:e,className:t,hoverable:n=!0,...o})=>{let{getPrefixCls:l}=r.useContext(i.QO),s=l("card",e),c=(0,a.$)(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return r.createElement("div",{...o,className:c})};var f=n(5561),m=n(7961),b=n(540),$=n(8403);let g=(0,b.OF)("Card",e=>{let t=(0,$.oX)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:l,extraColor:i,motionDurationMid:s}=e;return{[t]:{...(0,m.dF)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:(e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,f.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`,...(0,m.t6)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...m.L9,[`
20
+ > ${n}-typography,
21
+ > ${n}-typography-edit-content
22
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:i,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:(e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
23
+ ${(0,f.zA)(o)} 0 0 0 ${n},
24
+ 0 ${(0,f.zA)(o)} 0 0 ${n},
25
+ ${(0,f.zA)(o)} ${(0,f.zA)(o)} 0 0 ${n},
26
+ ${(0,f.zA)(o)} 0 0 0 ${n} inset,
27
+ 0 ${(0,f.zA)(o)} 0 0 ${n} inset;
28
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}})(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:l}=e;return{margin:0,padding:0,listStyle:"none",background:l,borderTop:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`,...(0,m.t6)(),"& > 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:(0,f.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,f.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${a}`}}}})(e),[`${t}-meta`]:(e=>({margin:`${(0,f.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,m.t6)(),"&-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,...m.L9},"&-description":{color:e.colorTextDescription}}))(e)},[`${t}-bordered`]:{border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${s}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(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`]:(e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${(0,f.zA)(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,f.zA)(e.padding)} ${(0,f.zA)(o)}`}}})(e),[`${t}-loading`]:(e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}})(e),[`${t}-rtl`]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${(0,f.zA)(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"}}}}})(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,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})),v=e=>{let{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map((e,t)=>{let o=`action-${t}`;return r.createElement("li",{style:{width:`${100/n.length}%`},key:o},r.createElement("span",null,e))}))},h=r.forwardRef((e,t)=>{let n,{prefixCls:f,className:m,rootClassName:b,style:$,extra:h,headStyle:y={},bodyStyle:k={},title:w,loading:E,bordered:x,variant:S,size:C,type:A,cover:R,actions:z,tabList:_,children:M,activeTabKey:N,defaultActiveTabKey:P,tabBarExtraContent:T,hoverable:O,tabProps:I={},classNames:D,styles:L,...B}=e,{getPrefixCls:j,direction:H,className:W,style:G,classNames:X,styles:K}=(0,i.TP)("card"),[F]=(0,c.A)("card",S,x),q=(0,s.A)(C),V={...e,size:q,variant:F},Y=(0,l.XT)(G),U=(0,l.XT)($),[Q,J]=(0,l.AV)([X,D],[K,Y,L,U],{props:V}),Z=r.useMemo(()=>(0,o.$r)(M),[M]),ee=r.useMemo(()=>Z.some(e=>r.isValidElement(e)&&e.type===p),[Z]),et=j("card",f),[en,er]=g(et),eo=r.createElement(d.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),ea=void 0!==N,el={...I,[ea?"activeKey":"defaultActiveKey"]:ea?N:P,tabBarExtraContent:T},ei=_?r.createElement(u.A,{size:"small"!==q?"large":q,...el,className:`${et}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(w||h||ei){let e=(0,a.$)(`${et}-head`,Q.header),t=(0,a.$)(`${et}-head-title`,Q.title),o=(0,a.$)(`${et}-extra`,Q.extra),l={...y,...J.header};n=r.createElement("div",{className:e,style:l},r.createElement("div",{className:`${et}-head-wrapper`},w&&r.createElement("div",{className:t,style:J.title},w),h&&r.createElement("div",{className:o,style:J.extra},h)),ei)}let es=(0,a.$)(`${et}-cover`,Q.cover),ec=R?r.createElement("div",{className:es,style:J.cover},R):null,ed=(0,a.$)(`${et}-body`,Q.body),eu={...k,...J.body},ep=E||Z.length?r.createElement("div",{className:ed,style:eu},E?eo:M):null,ef=(0,a.$)(`${et}-actions`,Q.actions),em=z?.length?r.createElement(v,{actionClasses:ef,actionStyle:J.actions,actions:z}):null,eb=(0,o.cJ)(B,["onTabChange"]),e$=(0,a.$)(et,W,{[`${et}-loading`]:E,[`${et}-bordered`]:"borderless"!==F,[`${et}-hoverable`]:O,[`${et}-contain-grid`]:ee,[`${et}-contain-tabs`]:_?.length,[`${et}-small`]:"small"===q,[`${et}-type-${A}`]:!!A,[`${et}-rtl`]:"rtl"===H},m,b,en,er,Q.root),eg={...J.root};return r.createElement("div",{ref:t,...eb,className:e$,style:eg},n,ec,ep,em)});h.Grid=p,h.Meta=e=>{let{prefixCls:t,className:n,avatar:o,title:s,description:c,style:d,classNames:u,styles:p,...f}=e,{getPrefixCls:m,className:b,style:$,classNames:g,styles:v}=(0,i.TP)("cardMeta"),h=m("card",t),y=`${h}-meta`,k=(0,l.XT)($),w=(0,l.XT)(d),[E,x]=(0,l.AV)([g,u],[v,k,p,w],{props:e}),S=(0,a.$)(y,n,b,E.root),C={...x.root},A=(0,a.$)(`${y}-avatar`,E.avatar),R=(0,a.$)(`${y}-title`,E.title),z=(0,a.$)(`${y}-description`,E.description),_=(0,a.$)(`${y}-section`,E.section),M=o?r.createElement("div",{className:A,style:x.avatar},o):null,N=s?r.createElement("div",{className:R,style:x.title},s):null,P=c?r.createElement("div",{className:z,style:x.description},c):null,T=N||P?r.createElement("div",{className:_,style:x.section},N,P):null;return r.createElement("div",{...f,className:S,style:C},M,T)};let y=h},9292:(e,t,n)=>{n.d(t,{cG:()=>eo,q7:()=>H,te:()=>ei,Dr:()=>H,g8:()=>er,Ay:()=>ef,Wj:()=>b});var r=n(3638),o=n(1910),a=n(2644),l=n(7109),i=n(1222);let s=l.createContext(null);function c(e){var t;return t=l.useContext(s),`${t}-${e}`}let d=l.createContext(null);function u({children:e,locked:t,...n}){let r=l.useContext(d),o=(0,a.Kr)(()=>(function(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];void 0!==r&&(n[e]=r)}),n})(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!(0,a.n4)(e[1],n[1],!0)));return l.createElement(d.Provider,{value:o},e)}let p=l.createContext(null);function f(){return l.useContext(p)}let m=l.createContext([]);function b(e){let t=l.useContext(m);return l.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}let $=l.createContext(null),g=l.createContext({}),{LEFT:v,RIGHT:h,UP:y,DOWN:k,ENTER:w,ESC:E,HOME:x,END:S}=a.DD,C=[y,k,v,h];function A(e,t){return(0,a.jD)(e,!0).filter(e=>t.has(e))}function R(e,t,n,r=1){if(!e)return null;let o=A(e,t),a=o.length,l=o.findIndex(e=>n===e);return r<0?-1===l?l=a-1:l-=1:r>0&&(l+=1),o[l=(l+a)%a]}let z=(e,t)=>{let n=new Set,r=new Map,o=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${t}-${e}']`);a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},_="__RC_UTIL_PATH_SPLIT__",M=e=>e.join(_),N="rc-menu-more";function P(e){let t=l.useRef(e);t.current=e;let n=l.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function T(e,t,n,r){let{activeKey:o,onActive:a,onInactive:i}=l.useContext(d),s={active:o===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),i(e)}),s}function O(e){let{mode:t,rtl:n,inlineIndent:r}=l.useContext(d);return"inline"!==t?null:n?{paddingRight:e*r}:{paddingLeft:e*r}}function I({icon:e,props:t,children:n}){let r;return null===e||!1===e?null:("function"==typeof e?r=l.createElement(e,{...t}):"boolean"!=typeof e&&(r=e),r||n||null)}function D({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>((0,a.$e)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}class B extends l.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=(0,a.cJ)(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,a.$e)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(o.A.Item,L({},t,{title:"string"==typeof e?e:void 0},i,{ref:n}))}}let j=l.forwardRef((e,t)=>{let{style:n,className:o,eventKey:i,warnKey:s,disabled:u,itemIcon:p,children:f,itemData:m,role:$,onMouseEnter:v,onMouseLeave:h,onClick:y,onKeyDown:k,onFocus:w,...E}=e,x=c(i),{prefixCls:S,onItemClick:C,disabled:A,overflowDisabled:R,itemIcon:z,selectedKeys:_,onActive:M}=l.useContext(d),{_internalRenderMenuItem:N}=l.useContext(g),P=`${S}-item`,j=l.useRef(),H=l.useRef(),W=A||u,G=(0,a.xK)(t,H),X=b(i),K=t=>{let n=m||{key:i||"",label:f,itemIcon:p,extra:e.extra,title:e.title};return{key:i,keyPath:[...X].reverse(),item:j.current,domEvent:t,itemData:m||n}},{active:F,...q}=T(i,W,v,h),V=_.includes(i),Y=O(X.length),U={};"option"===e.role&&(U["aria-selected"]=V);let Q=l.createElement(B,L({ref:j,elementRef:G,role:null===$?"none":$||"menuitem",tabIndex:u?null:-1,"data-menu-id":R&&x?null:x},(0,a.cJ)(E,["extra"]),q,U,{component:"li","aria-disabled":u,style:{...Y,...n},className:(0,r.$)(P,{[`${P}-active`]:F,[`${P}-selected`]:V,[`${P}-disabled`]:W},o),onClick:e=>{if(W)return;let t=K(e);y?.(D(t)),C(t)},onKeyDown:e=>{if(k?.(e),e.which===a.DD.ENTER){let t=K(e);y?.(D(t)),C(t)}},onFocus:e=>{M(i),w?.(e)}}),f,l.createElement(I,{props:{...e,isSelected:V},icon:p||z}));return N&&(Q=N(Q,e,{selected:V})),Q}),H=l.forwardRef(function(e,t){let{eventKey:n}=e,r=f(),o=b(n);return(l.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o)}},[o]),r)?null:l.createElement(j,L({},e,{ref:t}))});function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let G=l.forwardRef(({className:e,children:t,...n},o)=>{let{prefixCls:a,mode:i,rtl:s}=l.useContext(d);return l.createElement("ul",W({className:(0,r.$)(a,s&&`${a}-rtl`,`${a}-sub`,`${a}-${"inline"===i?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:o}),t)});function X(e,t){return(0,a.$r)(e).map((e,n)=>{if(l.isValidElement(e)){let{key:r}=e,o=e.props?.eventKey??r;null==o&&(o=`tmp_key-${[...t,n].join("-")}`);let a={key:o,eventKey:o};return l.cloneElement(e,a)}return e})}var K=n(2865);let F={adjustX:1,adjustY:1},q={topLeft:{points:["bl","tl"],overflow:F},topRight:{points:["br","tr"],overflow:F},bottomLeft:{points:["tl","bl"],overflow:F},bottomRight:{points:["tr","br"],overflow:F},leftTop:{points:["tr","tl"],overflow:F},leftBottom:{points:["br","bl"],overflow:F},rightTop:{points:["tl","tr"],overflow:F},rightBottom:{points:["bl","br"],overflow:F}},V={topLeft:{points:["bl","tl"],overflow:F},topRight:{points:["br","tr"],overflow:F},bottomLeft:{points:["tl","bl"],overflow:F},bottomRight:{points:["tr","br"],overflow:F},rightTop:{points:["tr","tl"],overflow:F},rightBottom:{points:["br","bl"],overflow:F},leftTop:{points:["tl","tr"],overflow:F},leftBottom:{points:["bl","br"],overflow:F}};function Y(e,t,n){return t||(n?n[e]||n.other:void 0)}let U={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Q({prefixCls:e,visible:t,children:n,popup:o,popupStyle:i,popupClassName:s,popupOffset:c,disabled:u,mode:p,onVisibleChange:f}){let{getPopupContainer:m,rtl:b,subMenuOpenDelay:$,subMenuCloseDelay:g,builtinPlacements:v,triggerSubMenuAction:h,forceSubMenuRender:y,rootClassName:k,motion:w,defaultMotions:E}=l.useContext(d),[x,S]=l.useState(!1),C=b?{...V,...v}:{...q,...v},A=U[p],R=Y(p,w,E),z=l.useRef(R);"inline"!==p&&(z.current=R);let _={...z.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},M=l.useRef();return l.useEffect(()=>(M.current=(0,a.er)(()=>{S(t)}),()=>{a.er.cancel(M.current)}),[t]),l.createElement(K.Ay,{prefixCls:e,popupClassName:(0,r.$)(`${e}-popup`,{[`${e}-rtl`]:b},s,k),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:m,builtinPlacements:C,popupPlacement:A,popupVisible:x,popup:o,popupStyle:i,popupAlign:c&&{offset:c},action:u?[]:[h],mouseEnterDelay:$,mouseLeaveDelay:g,onPopupVisibleChange:f,forceRender:y,popupMotion:_,fresh:!0},n)}var J=n(7189);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ee({id:e,open:t,keyPath:n,children:r}){let o="inline",{prefixCls:a,forceSubMenuRender:i,motion:s,defaultMotions:c,mode:p}=l.useContext(d),f=l.useRef(!1);f.current=p===o;let[m,b]=l.useState(!f.current),$=!!f.current&&t;l.useEffect(()=>{f.current&&b(!1)},[p]);let g={...Y(o,s,c)};n.length>1&&(g.motionAppear=!1);let v=g.onVisibleChanged;return(g.onVisibleChanged=e=>(f.current||e||b(!0),v?.(e)),m)?null:l.createElement(u,{mode:o,locked:!f.current},l.createElement(J.Ay,Z({visible:$},g,{forceRender:i,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>l.createElement(G,{id:e,className:t,style:n},r)))}function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let en=l.forwardRef((e,t)=>{let{style:n,className:a,styles:i,classNames:s,title:p,eventKey:f,warnKey:m,disabled:v,internalPopupClose:h,children:y,itemIcon:k,expandIcon:w,popupClassName:E,popupOffset:x,popupStyle:S,onClick:C,onMouseEnter:A,onMouseLeave:R,onTitleClick:z,onTitleMouseEnter:_,onTitleMouseLeave:M,popupRender:N,...L}=e,B=c(f),{prefixCls:j,mode:H,openKeys:W,disabled:X,overflowDisabled:K,activeKey:F,selectedKeys:q,itemIcon:V,expandIcon:Y,onItemClick:U,onOpenChange:J,onActive:Z,popupRender:en}=l.useContext(d),{_internalRenderSubMenuItem:er}=l.useContext(g),{isSubPathKey:eo}=l.useContext($),ea=b(),el=`${j}-submenu`,ei=X||v,es=l.useRef(),ec=l.useRef(),ed=w??Y,eu=W.includes(f),ep=!K&&eu,ef=eo(q,f),{active:em,...eb}=T(f,ei,_,M),[e$,eg]=l.useState(!1),ev=e=>{ei||eg(e)},eh=l.useMemo(()=>em||"inline"!==H&&(e$||eo([F],f)),[H,em,F,e$,f,eo]),ey=O(ea.length),ek=P(e=>{C?.(D(e)),U(e)}),ew=B&&`${B}-popup`,eE=l.useMemo(()=>l.createElement(I,{icon:"horizontal"!==H?ed:void 0,props:{...e,isOpen:ep,isSubMenu:!0}},l.createElement("i",{className:`${el}-arrow`})),[H,ed,e,ep,el]),ex=l.createElement("div",et({role:"menuitem",style:ey,className:`${el}-title`,tabIndex:ei?null:-1,ref:es,title:"string"==typeof p?p:null,"data-menu-id":K&&B?null:B,"aria-expanded":ep,"aria-haspopup":!0,"aria-controls":ew,"aria-disabled":ei,onClick:e=>{ei||(z?.({key:f,domEvent:e}),"inline"===H&&J(f,!eu))},onFocus:()=>{Z(f)}},eb),p,eE),eS=l.useRef(H);"inline"!==H&&ea.length>1?eS.current="vertical":eS.current=H;let eC=eS.current,eA=l.useMemo(()=>{let t=l.createElement(u,{classNames:s,styles:i,mode:"horizontal"===eC?"vertical":eC},l.createElement(G,{id:ew,ref:ec},y)),n=N||en;return n?n(t,{item:e,keys:ea}):t},[N,en,ea,ew,y,e,eC]);if(!K){let e=eS.current;ex=l.createElement(Q,{mode:e,prefixCls:el,visible:!h&&ep&&"inline"!==H,popupClassName:E,popupOffset:x,popupStyle:S,popup:eA,disabled:ei,onVisibleChange:e=>{"inline"!==H&&J(f,e)}},ex)}let eR=l.createElement(o.A.Item,et({ref:t,role:"none"},L,{component:"li",style:n,className:(0,r.$)(el,`${el}-${H}`,a,{[`${el}-open`]:ep,[`${el}-active`]:eh,[`${el}-selected`]:ef,[`${el}-disabled`]:ei}),onMouseEnter:e=>{ev(!0),A?.({key:f,domEvent:e})},onMouseLeave:e=>{ev(!1),R?.({key:f,domEvent:e})}}),ex,!K&&l.createElement(ee,{id:ew,open:ep,keyPath:ea},y));return er&&(eR=er(eR,e,{selected:ef,active:eh,open:ep,disabled:ei})),l.createElement(u,{classNames:s,styles:i,onItemClick:ek,mode:"horizontal"===H?"vertical":H,itemIcon:k??V,expandIcon:ed},eR)}),er=l.forwardRef((e,t)=>{let n,{eventKey:r,children:o}=e,a=b(r),i=X(o,a),s=f();return l.useEffect(()=>{if(s)return s.registerPath(r,a),()=>{s.unregisterPath(r,a)}},[a]),n=s?i:l.createElement(en,et({ref:t},e),i),l.createElement(m.Provider,{value:a},n)});function eo({className:e,style:t}){let{prefixCls:n}=l.useContext(d);return f()?null:l.createElement("li",{role:"separator",className:(0,r.$)(`${n}-item-divider`,e),style:t})}function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let el=l.forwardRef((e,t)=>{let{className:n,title:o,eventKey:a,children:i,...s}=e,{prefixCls:c,classNames:u,styles:p}=l.useContext(d),f=`${c}-item-group`;return l.createElement("li",ea({ref:t,role:"presentation"},s,{onClick:e=>e.stopPropagation(),className:(0,r.$)(f,n)}),l.createElement("div",{role:"presentation",className:(0,r.$)(`${f}-title`,u?.listTitle),style:p?.listTitle,title:"string"==typeof o?o:void 0},o),l.createElement("ul",{role:"group",className:(0,r.$)(`${f}-list`,u?.list),style:p?.list},i))}),ei=l.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,o=X(r,b(n));return f()?o:l.createElement(el,ea({ref:t},(0,a.cJ)(e,["warnKey"])),o)});function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ec(e,t,n,r,o){let a=e,i={divider:eo,item:H,group:ei,submenu:er,...r};return t&&(a=function e(t,n,r){let{item:o,group:a,submenu:i,divider:s}=n;return(t||[]).map((t,c)=>{if(t&&"object"==typeof t){let{label:d,children:u,key:p,type:f,extra:m,...b}=t,$=p??`tmp-${c}`;if(u||"group"===f)return"group"===f?l.createElement(a,es({key:$},b,{title:d}),e(u,n,r)):l.createElement(i,es({key:$},b,{title:d}),e(u,n,r));if("divider"===f)return l.createElement(s,es({key:$},b));let g=!!m||0===m;return l.createElement(o,es({key:$},b,{extra:m,itemData:{...t,key:$}}),g?l.createElement(l.Fragment,null,l.createElement("span",{className:`${r}-item-label`},d),l.createElement("span",{className:`${r}-item-extra`},m)):d)}return null}).filter(e=>e)}(t,i,o)),X(a,n)}function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let eu=[],ep=l.forwardRef((e,t)=>{let{prefixCls:n="rc-menu",rootClassName:c,style:d,className:f,styles:m,classNames:b,tabIndex:T=0,items:O,children:I,direction:L,id:B,mode:j="vertical",inlineCollapsed:W,disabled:G,disabledOverflow:X,subMenuOpenDelay:K=.1,subMenuCloseDelay:F=.1,forceSubMenuRender:q,defaultOpenKeys:V,openKeys:Y,activeKey:U,defaultActiveFirst:Q,selectable:J=!0,multiple:Z=!1,defaultSelectedKeys:ee,selectedKeys:et,onSelect:en,onDeselect:eo,inlineIndent:ea=24,motion:el,defaultMotions:ei,triggerSubMenuAction:es="hover",builtinPlacements:ep,itemIcon:ef,expandIcon:em,overflowedIndicator:eb="...",overflowedIndicatorPopupClassName:e$,getPopupContainer:eg,onClick:ev,onOpenChange:eh,onKeyDown:ey,openAnimation:ek,openTransitionName:ew,_internalRenderMenuItem:eE,_internalRenderSubMenuItem:ex,_internalComponents:eS,popupRender:eC,...eA}=e,[eR,ez]=l.useMemo(()=>[ec(I,O,eu,eS,n),ec(I,O,eu,{},n)],[I,O,eS]),[e_,eM]=l.useState(!1),eN=l.useRef(),eP=(0,a.Bi)(B?`rc-menu-uuid-${B}`:"rc-menu-uuid"),eT="rtl"===L,[eO,eI]=(0,a.PW)(V,Y),eD=eO||eu,eL=(e,t=!1)=>{function n(){eI(e),eh?.(e)}t?(0,i.flushSync)(n):n()},[eB,ej]=l.useState(eD),eH=l.useRef(!1),[eW,eG]=l.useMemo(()=>("inline"===j||"vertical"===j)&&W?["vertical",W]:[j,!1],[j,W]),eX="inline"===eW,[eK,eF]=l.useState(eW),[eq,eV]=l.useState(eG);l.useEffect(()=>{eF(eW),eV(eG),eH.current&&(eX?eI(eB):eL(eu))},[eW,eG]);let[eY,eU]=l.useState(0),eQ=eY>=eR.length-1||"horizontal"!==eK||X;l.useEffect(()=>{eX&&ej(eD)},[eD]),l.useEffect(()=>(eH.current=!0,()=>{eH.current=!1}),[]);let{registerPath:eJ,unregisterPath:eZ,refreshOverflowKeys:e0,isSubPathKey:e1,getKeyPath:e6,getKeys:e2,getSubPathKeys:e8}=function(){let[,e]=l.useState({}),t=(0,l.useRef)(new Map),n=(0,l.useRef)(new Map),[r,o]=l.useState([]),a=(0,l.useRef)(0),i=(0,l.useRef)(!1),s=(0,l.useCallback)((r,o)=>{let l=M(o);n.current.set(l,r),t.current.set(r,l),a.current+=1;let s=a.current;Promise.resolve().then(()=>{s===a.current&&(i.current||e({}))})},[]),c=(0,l.useCallback)((e,r)=>{let o=M(r);n.current.delete(o),t.current.delete(e)},[]),d=(0,l.useCallback)(e=>{o(e)},[]),u=(0,l.useCallback)((e,n)=>{let o=(t.current.get(e)||"").split(_);return n&&r.includes(o[0])&&o.unshift(N),o},[r]),p=(0,l.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>u(e,!0).includes(t)),[u]),f=(0,l.useCallback)(e=>{let r=`${t.current.get(e)}${_}`,o=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&o.add(n.current.get(e))}),o},[]);return l.useEffect(()=>()=>{i.current=!0},[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:u,getKeys:()=>{let e=[...t.current.keys()];return r.length&&e.push(N),e},getSubPathKeys:f}}(),e4=l.useMemo(()=>({registerPath:eJ,unregisterPath:eZ}),[eJ,eZ]),e9=l.useMemo(()=>({isSubPathKey:e1}),[e1]);l.useEffect(()=>{e0(eQ?eu:eR.slice(eY+1).map(e=>e.key))},[eY,eQ]);let[e5,e7]=(0,a.PW)(U||Q&&eR[0]?.key,U),e3=P(e=>{e7(e)}),te=P(()=>{e7(void 0)});(0,l.useImperativeHandle)(t,()=>({list:eN.current,focus:e=>{let t,n=e2(),{elements:r,key2element:o,element2key:a}=z(n,eP),l=A(eN.current,r);t=e5&&n.includes(e5)?e5:l[0]?a.get(l[0]):eR.find(e=>!e.props.disabled)?.key;let i=o.get(t);t&&i&&i?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=z(e2(),eP);return t.get(e)||null}}));let[tt,tn]=(0,a.PW)(ee||[],et),tr=l.useMemo(()=>Array.isArray(tt)?tt:null==tt?eu:[tt],[tt]),to=P(e=>{ev?.(D(e)),(e=>{if(J){let t,{key:n}=e,r=tr.includes(n);tn(t=Z?r?tr.filter(e=>e!==n):[...tr,n]:[n]);let o={...e,selectedKeys:t};r?eo?.(o):en?.(o)}!Z&&eD.length&&"inline"!==eK&&eL(eu)})(e)}),ta=P((e,t)=>{let n=eD.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==eK){let t=e8(e);n=n.filter(e=>!t.has(e))}(0,a.n4)(eD,n,!0)||eL(n,!0)}),tl=function(e,t,n,r,o,i,s,c,d,u){let p=l.useRef(),f=l.useRef();f.current=t;let m=()=>{a.er.cancel(p.current)};return l.useEffect(()=>()=>{m()},[]),l=>{let{which:b}=l;if([...C,w,E,x,S].includes(b)){let u=i(),$=z(u,r),{elements:g,key2element:_,element2key:M}=$,N=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(_.get(t),g),P=M.get(N),T=function(e,t,n,r){let o="prev",a="next",l="children",i="parent";if("inline"===e&&r===w)return{inlineTrigger:!0};let s={[y]:o,[k]:a},c={[y]:o,[k]:a,[w]:l,[E]:i,[v]:n?l:i,[h]:n?i:l};switch(({inline:s,horizontal:{[v]:n?a:o,[h]:n?o:a,[k]:l,[w]:l},vertical:c,inlineSub:s,horizontalSub:c,verticalSub:c})[`${e}${t?"":"Sub"}`]?.[r]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case i:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===s(P,!0).length,n,b);if(!T&&b!==x&&b!==S)return;(C.includes(b)||[x,S].includes(b))&&l.preventDefault();let O=e=>{if(e){let t=e,n=e.querySelector("a");n?.getAttribute("href")&&(t=n);let r=M.get(e);c(r),m(),p.current=(0,a.er)(()=>{f.current===r&&t.focus()})}};if([x,S].includes(b)||T.sibling||!N){let t,n=A(t=N&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(N):o.current,g);O(b===x?n[0]:b===S?n[n.length-1]:R(t,g,N,T.offset))}else if(T.inlineTrigger)d(P);else if(T.offset>0)d(P,!0),m(),p.current=(0,a.er)(()=>{$=z(u,r);let e=N.getAttribute("aria-controls");O(R(document.getElementById(e),$.elements))},5);else if(T.offset<0){let e=s(P,!0),t=e[e.length-2],n=_.get(t);d(t,!1),O(n)}}u?.(l)}}(eK,e5,eT,eP,eN,e2,e6,e7,(e,t)=>{let n=t??!eD.includes(e);ta(e,n)},ey);l.useEffect(()=>{eM(!0)},[]);let ti=l.useMemo(()=>({_internalRenderMenuItem:eE,_internalRenderSubMenuItem:ex}),[eE,ex]),ts="horizontal"!==eK||X?eR:eR.map((e,t)=>l.createElement(u,{key:e.key,overflowDisabled:t>eY,classNames:b,styles:m},e)),tc=l.createElement(o.A,ed({id:B,ref:eN,prefixCls:`${n}-overflow`,component:"ul",itemComponent:H,className:(0,r.$)(n,`${n}-root`,`${n}-${eK}`,f,{[`${n}-inline-collapsed`]:eq,[`${n}-rtl`]:eT},c),dir:L,style:d,role:"menu",tabIndex:T,data:ts,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?eR.slice(-t):null;return l.createElement(er,{eventKey:N,title:eb,disabled:eQ,internalPopupClose:0===t,popupClassName:e$},n)},maxCount:"horizontal"!==eK||X?o.A.INVALIDATE:o.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{eU(e)},onKeyDown:tl},eA));return l.createElement(g.Provider,{value:ti},l.createElement(s.Provider,{value:eP},l.createElement(u,{prefixCls:n,rootClassName:c,classNames:b,styles:m,mode:eK,openKeys:eD,rtl:eT,disabled:G,motion:e_?el:null,defaultMotions:e_?ei:null,activeKey:e5,onActive:e3,onInactive:te,selectedKeys:tr,inlineIndent:ea,subMenuOpenDelay:K,subMenuCloseDelay:F,forceSubMenuRender:q,builtinPlacements:ep,triggerSubMenuAction:es,getPopupContainer:eg,itemIcon:ef,expandIcon:em,onItemClick:to,onOpenChange:ta,popupRender:eC},l.createElement($.Provider,{value:e9},tc),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(p.Provider,{value:e4},ez)))))});ep.Item=H,ep.SubMenu=er,ep.ItemGroup=ei,ep.Divider=eo;let ef=ep},9857:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[292],{3051:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7109),l=n(3547),o=n(8483);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(o.A,a({},e,{ref:t,icon:l.A})))},3547:(e,t)=>{t.A={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"}},5292:(e,t,n)=>{n.d(t,{A:()=>U});var r=n(7109),l=n(7369),o=n(9650),a=n(8),i=n(505),c=n(3638),s=n(6047),d=n(9925),u=n(2551),p=n(8688),m=n(8483);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let g=r.forwardRef((e,t)=>r.createElement(m.A,f({},e,{ref:t,icon:p.A})));var h=n(2690),b=n(1210),y=n(7961),x=n(540),v=n(6254),E=n(5561);let $=(0,x.OF)("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"},...(e=>{let t={};return[1,2,3,4,5].forEach(n=>{t[`
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[292],{3051:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7109),l=n(3547),o=n(8483);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(o.A,a({},e,{ref:t,icon:l.A})))},3547:(e,t)=>{t.A={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"}},5292:(e,t,n)=>{n.d(t,{A:()=>U});var r=n(7109),l=n(7369),o=n(9650),a=n(8),i=n(2644),c=n(3638),s=n(6047),d=n(9925),u=n(2551),p=n(8688),m=n(8483);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let g=r.forwardRef((e,t)=>r.createElement(m.A,f({},e,{ref:t,icon:p.A})));var h=n(2690),b=n(1210),y=n(7961),x=n(540),v=n(6254),E=n(5561);let $=(0,x.OF)("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"},...(e=>{let t={};return[1,2,3,4,5].forEach(n=>{t[`
2
2
  h${n}&,
3
3
  div&-h${n},
4
4
  div&-h${n} > textarea,
@@ -0,0 +1,25 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[382],{560:(e,r,o)=>{o.d(r,{Eb:()=>d,Vy:()=>x,aP:()=>w,eT:()=>a,lB:()=>g,nI:()=>l,nm:()=>c,sA:()=>$});var t=o(5561),n=o(8403);let a=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])":{...(e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}))((0,n.oX)(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),l=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),i=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:{...l(e,r),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}},[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),d=(e,r)=>({"&-outlined":{...l(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...a(e)},...i(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...i(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...r}}),s=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),c=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...s(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...s(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...a(e)}}}}),u="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",p=(e,r)=>({outline:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${r}`,outlineOffset:(0,t.zA)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),f=(e,r)=>({"&, & input, & textarea":{color:r.color},[u]:p(e,r.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),g=(e,r)=>{let{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[u]:p(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:f(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:f(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...r}}},b=(e,r)=>({background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:r?.inputColor??"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}),h=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:{...b(e,r),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}}),$=(e,r)=>({"&-filled":{...b(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...a(e)},...h(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...h(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...r}}),m=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),x=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...m(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:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,t.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),v=(e,r)=>({background:e.colorBgContainer,borderWidth:`${(0,t.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),C=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:{...v(e,r),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}},[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),w=(e,r)=>({"&-underlined":{...v(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"},...C(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...C(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...r}})},4390:(e,r,o)=>{o.d(r,{Ay:()=>b,BZ:()=>p,MG:()=>g,j_:()=>c,wj:()=>f,xp:()=>u});var t=o(5561),n=o(7961),a=o(7032),l=o(540),i=o(8403),d=o(4767),s=o(560);let c=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=e=>{let{paddingBlockLG:r,lineHeightLG:o,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${(0,t.zA)(r)} ${(0,t.zA)(a)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:n}},p=e=>({padding:`${(0,t.zA)(e.paddingBlockSM)} ${(0,t.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f=(e,r={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,t.zA)(e.paddingBlock)} ${(0,t.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...c(e.colorTextPlaceholder),"&-lg":{...u(e),...r.largeStyle},"&-sm":{...p(e),...r.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),g=(0,l.OF)(["Input","Shared"],e=>{let r=(0,i.oX)(e,(0,d.C)(e));return[(e=>{let{componentCls:r,controlHeightSM:o,lineWidth:t,calc:a}=e,l=a(o).sub(a(t).mul(2)).sub(16).div(2).equal();return{[r]:{...(0,n.dF)(e),...f(e),...(0,s.Eb)(e),...(0,s.sA)(e),...(0,s.lB)(e),...(0,s.aP)(e),'&[type="color"]':{height:e.controlHeight,[`&${r}-lg`]:{height:e.controlHeightLG},[`&${r}-sm`]:{height:o,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}})(r),(e=>{let{componentCls:r,inputAffixPadding:o,colorTextDescription:a,motionDurationSlow:l,colorIcon:i,colorIconHover:d}=e,s=`${r}-affix-wrapper`,c=`${r}-affix-wrapper-disabled`;return{[s]:{...f(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${r}`]:{padding:0},[`> input${r}, > textarea${r}`]:{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"'},[r]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:a,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:i,cursor:"pointer",transition:`all ${l}`,"&:hover":{color:d}}},...(e=>{let{componentCls:r}=e;return{[`${r}-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,...(0,n.jk)(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,t.zA)(e.inputAffixPadding)}`}}}})(e)},[`${r}-underlined`]:{borderRadius:0},[c]:{[`${r}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}})(r)]},d.b,{resetFont:!1}),b=(0,l.OF)(["Input","Component"],e=>{let r=(0,i.oX)(e,(0,d.C)(e));return[(e=>{let{componentCls:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${r}-group`]:{...(0,n.dF)(e),...(e=>{let{componentCls:r,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:{...u(e)},[`&-sm ${r}, &-sm > ${r}-group-addon`]:{...p(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-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 ${(0,t.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${(0,t.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,t.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${(0,t.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${(0,t.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:{display:"block",...(0,n.t6)(),[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
2
+ & > ${r}-affix-wrapper,
3
+ & > ${r}-number-affix-wrapper,
4
+ & > ${o}-picker-range
5
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[r]:{float:"none"},[`& > ${o}-select,
6
+ & > ${o}-select-auto-complete ${r},
7
+ & > ${o}-cascader-picker ${r},
8
+ & > ${r}-group-wrapper ${r}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
9
+ & > ${o}-select:first-child,
10
+ & > ${o}-select-auto-complete:first-child ${r},
11
+ & > ${o}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
12
+ & > ${o}-select:last-child,
13
+ & > ${o}-cascader-picker:last-child ${r},
14
+ & > ${o}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{}}}}})(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:a}},...(0,s.nm)(e),...(0,s.Vy)(e),[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}})(r),(e=>{let{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}})(r),(0,a.G)(r,{focus:!0,focusElCls:`${r.componentCls}-affix-wrapper-focused`})]},d.b,{resetFont:!1})},4767:(e,r,o)=>{o.d(r,{C:()=>n,b:()=>a});var t=o(8403);function n(e){return(0,t.oX)(e,{inputAffixPadding:e.paddingXXS})}let a=e=>{let{controlHeight:r,fontSize:o,lineHeight:t,lineWidth:n,controlHeightSM:a,controlHeightLG:l,fontSizeLG:i,lineHeightLG:d,paddingSM:s,controlPaddingHorizontalSM:c,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:g,controlOutlineWidth:b,controlOutline:h,colorErrorOutline:$,colorWarningOutline:m,colorBgContainer:x,inputFontSize:v,inputFontSizeLG:C,inputFontSizeSM:w}=e,S=v||o,y=w||S,E=C||i;return{paddingBlock:Math.max(Math.round((r-S*t)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((a-y*t)/2*10)/10-n,0),paddingBlockLG:Math.max(Math.ceil((l-E*d)/2*10)/10-n,0),paddingInline:s-n,paddingInlineSM:c-n,paddingInlineLG:u-n,addonBg:p,activeBorderColor:g,hoverBorderColor:f,activeShadow:`0 0 0 ${b}px ${h}`,errorActiveShadow:`0 0 0 ${b}px ${$}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:x,activeBg:x,inputFontSize:S,inputFontSizeLG:E,inputFontSizeSM:y}}},9012:(e,r,o)=>{o.d(r,{O:()=>i});var t=o(7109),n=o(4216),a=o(112),l=o(6047);let i=e=>{let{allowClear:r,clearIcon:o,contextAllowClear:i,contextClearIcon:d,defaultAllowClear:s,componentName:c}=e;return(0,t.useMemo)(()=>!!(r??i??s)&&{clearIcon:(0,a.A)((0,l.Qd)(r)?r?.clearIcon:o,(0,l.Qd)(i)?i?.clearIcon:d,t.createElement(n.A,null)),disabled:((0,l.Qd)(r)?r?.disabled:void 0)??((0,l.Qd)(i)?i?.disabled:void 0)},[r,o,i,d,s])}},9019:(e,r,o)=>{let t;o.d(r,{fs:()=>y,Ay:()=>E});var n=o(3638),a=o(7109);function l(e,r,o){let t=r.cloneNode(!0),n=Object.create(e,{target:{value:t},currentTarget:{value:t}});return t.value=o,"number"==typeof r.selectionStart&&"number"==typeof r.selectionEnd&&(t.selectionStart=r.selectionStart,t.selectionEnd=r.selectionEnd),t.setSelectionRange=(...e)=>{r.setSelectionRange(...e)},n}function i(e,r,o,t){if(!o)return;let n=r;return"click"===r.type?void o(n=l(r,e,"")):"file"!==e.type&&void 0!==t?void o(n=l(r,e,t)):void o(n)}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}let s=a.forwardRef((e,r)=>{let{inputElement:o,children:t,prefixCls:l,prefix:i,suffix:s,addonBefore:c,addonAfter:u,className:p,style:f,disabled:g,readOnly:b,focused:h,triggerFocus:$,allowClear:m,value:x,handleReset:v,hidden:C,classes:w,classNames:S,dataAttrs:y,styles:E,components:B,onClear:R}=e,A=t??o,z=B?.affixWrapper||"span",W=B?.groupWrapper||"span",k=B?.wrapper||"span",I=B?.groupAddon||"span",T=(0,a.useRef)(null),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),N=(0,a.cloneElement)(A,{value:x,className:(0,n.$)(A.props?.className,!F&&S?.variant)||null}),M=(0,a.useRef)(null);if(a.useImperativeHandle(r,()=>({nativeElement:M.current||T.current})),F){let e=null;if(m){let r=!g&&!b&&x&&!("object"==typeof m&&m.disabled),o=`${l}-clear-icon`,t="object"==typeof m&&m?.clearIcon?m.clearIcon:"✖";e=a.createElement("button",{type:"button",onClick:e=>{v?.(e),R?.()},onMouseDown:e=>e.preventDefault(),className:(0,n.$)(o,{[`${o}-hidden`]:!r,[`${o}-has-suffix`]:!!s},S?.clear),style:E?.clear},t)}let r=`${l}-affix-wrapper`,o=(0,n.$)(r,{[`${l}-disabled`]:g,[`${r}-disabled`]:g,[`${r}-focused`]:h,[`${r}-readonly`]:b,[`${r}-input-with-clear-btn`]:s&&m&&x},w?.affixWrapper,S?.affixWrapper,S?.variant),t=(s||m)&&a.createElement("span",{className:(0,n.$)(`${l}-suffix`,S?.suffix),style:E?.suffix},e,s);N=a.createElement(z,d({className:o,style:E?.affixWrapper,onClick:e=>{T.current?.contains(e.target)&&$?.()}},y?.affixWrapper,{ref:T}),i&&a.createElement("span",{className:(0,n.$)(`${l}-prefix`,S?.prefix),style:E?.prefix},i),N,t)}if(function(e){return!!(e.addonBefore||e.addonAfter)}(e)){let e=`${l}-group`,r=`${e}-addon`,o=`${e}-wrapper`,t=(0,n.$)(`${l}-wrapper`,e,w?.wrapper,S?.wrapper),i=(0,n.$)(o,{[`${o}-disabled`]:g},w?.group,S?.groupWrapper);N=a.createElement(W,{className:i,ref:M},a.createElement(k,{className:t},c&&a.createElement(I,{className:r},c),N,u&&a.createElement(I,{className:r},u)))}return a.cloneElement(N,{className:(0,n.$)(N.props?.className,p)||null,style:{...N.props?.style,...f},hidden:C})});var c=o(2644);function u(e,r){return a.useMemo(()=>{let o={};r&&(o.show="object"==typeof r&&r.formatter?r.formatter:!!r);let{show:t,...n}=o={...o,...e};return{...n,show:!!t,showFormatter:"function"==typeof t?t:void 0,strategy:n.strategy||(e=>e.length)}},[e,r])}function p({countConfig:e,value:r,maxLength:o}){return a.useMemo(()=>{let t=e.max??o,n=e.strategy(r),a=!!t&&n>t,l=Number(t)>0,i=e.show?e.showFormatter?e.showFormatter({value:r,count:n,maxLength:t}):`${n}${l?` / ${t}`:""}`:void 0;return{mergedMax:t,isOutOfRange:a,dataCount:i}},[e,o,r])}function f({countConfig:e,getTarget:r}){let[o,t]=a.useState(null),n=a.useRef(r);return a.useEffect(()=>{n.current=r},[r]),a.useEffect(()=>{o&&(n.current()?.setSelectionRange(...o),t(null))},[o]),a.useCallback((r,o)=>{let a=r;return!o&&e.exceedFormatter&&e.max&&e.strategy(r)>e.max&&(a=e.exceedFormatter(r,{max:e.max}),r!==a&&t([n.current()?.selectionStart||0,n.current()?.selectionEnd||0])),a},[e])}function g(e,r){let[o,t]=(0,c.PW)(e,r),n=null==o?"":String(o);return{value:o,setValue:t,formatValue:n}}function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}let h=(0,a.forwardRef)((e,r)=>{let{autoComplete:o,onChange:t,onFocus:l,onBlur:d,onPressEnter:h,onKeyDown:$,onKeyUp:m,prefixCls:x="rc-input",disabled:v,htmlSize:C,className:w,maxLength:S,suffix:y,showCount:E,count:B,type:R="text",classes:A,classNames:z,styles:W,onCompositionStart:k,onCompositionEnd:I,...T}=e,[F,N]=(0,a.useState)(!1),M=(0,a.useRef)(!1),O=(0,a.useRef)(!1),H=(0,a.useRef)(null),j=(0,a.useRef)(null),P=e=>{H.current&&(0,c.F4)(H.current,e)},{setValue:D,formatValue:V}=g(e.defaultValue,e.value),X=u(B,E),{isOutOfRange:q,dataCount:G}=p({countConfig:X,value:V,maxLength:S}),L=f({countConfig:X,getTarget:()=>H.current});(0,a.useImperativeHandle)(r,()=>({focus:P,blur:()=>{H.current?.blur()},setSelectionRange:(e,r,o)=>{H.current?.setSelectionRange(e,r,o)},select:()=>{H.current?.select()},input:H.current,nativeElement:j.current?.nativeElement||H.current})),(0,a.useEffect)(()=>{O.current&&(O.current=!1),N(e=>(!e||!v)&&e)},[v]);let Q=(e,r,o)=>{let n=L(r,M.current);("compositionEnd"!==o.source||r!==n)&&(D(n),H.current&&i(H.current,e,t,n))},_=e=>{Q(e,e.target.value,{source:"change"})},K=e=>{M.current=!1,Q(e,e.currentTarget.value,{source:"compositionEnd"}),I?.(e)},J=e=>{!h||"Enter"!==e.key||O.current||e.nativeEvent.isComposing||(O.current=!0,h(e)),$?.(e)},U=e=>{"Enter"===e.key&&(O.current=!1),m?.(e)},Y=e=>{N(!0),l?.(e)},Z=e=>{O.current&&(O.current=!1),N(!1),d?.(e)},ee=q&&`${x}-out-of-range`;return a.createElement(s,b({},T,{prefixCls:x,className:(0,n.$)(w,ee),handleReset:e=>{D(""),P(),H.current&&i(H.current,e,t)},value:V,focused:F,triggerFocus:P,suffix:y||X.show?a.createElement(a.Fragment,null,X.show&&a.createElement("span",{className:(0,n.$)(`${x}-show-count-suffix`,{[`${x}-show-count-has-suffix`]:!!y},z?.count),style:{...W?.count}},G),y):null,disabled:v,classes:A,classNames:z,styles:W,ref:j}),(()=>{let r=(0,c.cJ)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return a.createElement("input",b({autoComplete:o},r,{onChange:_,onFocus:Y,onBlur:Z,onKeyDown:J,onKeyUp:U,className:(0,n.$)(x,{[`${x}-disabled`]:v},z?.input),style:W?.input,ref:H,size:C,type:R,onCompositionStart:e=>{M.current=!0,k?.(e)},onCompositionEnd:K}))})())});var $=o(8);let m=`
15
+ min-height:0 !important;
16
+ max-height:none !important;
17
+ height:0 !important;
18
+ visibility:hidden !important;
19
+ overflow:hidden !important;
20
+ position:absolute !important;
21
+ z-index:-1000 !important;
22
+ top:0 !important;
23
+ right:0 !important;
24
+ pointer-events: none !important;
25
+ `,x=["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"],v={};function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}let w=a.forwardRef((e,r)=>{let{prefixCls:o,defaultValue:l,value:i,autoSize:d,onResize:s,className:u,style:p,disabled:f,onChange:g,onInternalAutoSize:b,...h}=e,[w,S]=(0,c.PW)(l,i),y=a.useRef(null);a.useImperativeHandle(r,()=>({textArea:y.current}));let[E,B]=a.useMemo(()=>d&&"object"==typeof d?[d.minRows,d.maxRows]:[],[d]),R=!!d,[A,z]=a.useState(2),[W,k]=a.useState(),I=()=>{z(0)};(0,c.Nf)(()=>{R&&I()},[i,E,B,R]),(0,c.Nf)(()=>{if(0===A)z(1);else if(1===A){let e=function(e,r=!1,o=null,n=null){let a,l,i;t||((t=document.createElement("textarea")).setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute("name","hiddenTextarea"),document.body.appendChild(t)),e.getAttribute("wrap")?t.setAttribute("wrap",e.getAttribute("wrap")):t.removeAttribute("wrap");let{paddingSize:d,borderSize:s,boxSizing:c,sizingStyle:u}=function(e,r=!1){let o=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&v[o])return v[o];let t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-moz-box-sizing")||t.getPropertyValue("-webkit-box-sizing"),a=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),l=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),i={sizingStyle:x.map(e=>`${e}:${t.getPropertyValue(e)}`).join(";"),paddingSize:a,borderSize:l,boxSizing:n};return r&&o&&(v[o]=i),i}(e,r);t.setAttribute("style",`${u};${m}`),t.value=e.value||e.placeholder||"";let p=t.scrollHeight;if("border-box"===c?p+=s:"content-box"===c&&(p-=d),null!==o||null!==n){t.value=" ";let e=t.scrollHeight-d;null!==o&&(a=e*o,"border-box"===c&&(a=a+d+s),p=Math.max(a,p)),null!==n&&(l=e*n,"border-box"===c&&(l=l+d+s),i=p>l?void 0:"hidden",p=Math.min(l,p))}let f={height:p,overflowY:i,resize:"none"};return a&&(f.minHeight=a),l&&(f.maxHeight=l),f}(y.current,!1,E,B);z(2),k(e)}},[A]);let T=a.useRef(void 0),F=()=>{void 0!==T.current&&c.er.cancel(T.current)};a.useEffect(()=>F,[]);let N={...p,...R?W:null};return(0===A||1===A)&&(N.overflowY="hidden",N.overflowX="hidden"),a.createElement($.Ay,{onResize:e=>{2===A&&(s?.(e),d&&(F(),T.current=(0,c.er)(()=>{I()})))},disabled:!(d||s)},a.createElement("textarea",C({},h,{ref:y,style:N,className:(0,n.$)(o,u,{[`${o}-disabled`]:f}),disabled:f,value:w??"",onChange:e=>{S(e.target.value),g?.(e)}})))});function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}let y=a.forwardRef(({defaultValue:e,value:r,onFocus:o,onBlur:t,onChange:l,allowClear:d,maxLength:c,onCompositionStart:b,onCompositionEnd:h,suffix:$,prefixCls:m="rc-textarea",showCount:x,count:v,className:C,style:y,disabled:E,hidden:B,classNames:R,styles:A,onResize:z,onClear:W,onPressEnter:k,readOnly:I,autoSize:T,onKeyDown:F,...N},M)=>{let[O,H]=a.useState(!1),j=a.useRef(!1),[P,D]=a.useState(null),V=(0,a.useRef)(null),X=(0,a.useRef)(null),q=()=>X.current?.textArea||null,{setValue:G,formatValue:L}=g(e,r),Q=u(v,x),{isOutOfRange:_,dataCount:K}=p({countConfig:Q,value:L,maxLength:c}),J=f({countConfig:Q,getTarget:()=>X.current?.textArea||null}),U=()=>{q()?.focus()};(0,a.useImperativeHandle)(M,()=>({resizableTextArea:X.current,focus:U,blur:()=>{q()?.blur()},nativeElement:V.current?.nativeElement||q()})),(0,a.useEffect)(()=>{H(e=>!E&&e)},[E]);let Y=(e,r)=>{let o=J(r,j.current);G(o),i(e.currentTarget,e,l,o)},Z=$;Q.show&&(Z=a.createElement(a.Fragment,null,Z,a.createElement("span",{className:(0,n.$)(`${m}-data-count`,R?.count),style:A?.count},K)));let ee=!T&&!x&&!d;return a.createElement(s,{ref:V,value:L,allowClear:d,handleReset:e=>{G(""),U();let r=q();r&&i(r,e,l)},suffix:Z,prefixCls:m,classNames:{...R,affixWrapper:(0,n.$)(R?.affixWrapper,{[`${m}-show-count`]:x,[`${m}-textarea-allow-clear`]:d})},disabled:E,focused:O,className:(0,n.$)(C,_&&`${m}-out-of-range`),style:{...y,...P&&!ee?{height:"auto"}:{}},dataAttrs:"string"==typeof K?{affixWrapper:{"data-count":K}}:void 0,styles:A,hidden:B,readOnly:I,onClear:W},a.createElement(w,S({},N,{autoSize:T,maxLength:c,onKeyDown:e=>{"Enter"===e.key&&k&&!e.nativeEvent.isComposing&&k(e),F?.(e)},onChange:e=>{Y(e,e.target.value)},onFocus:e=>{H(!0),o?.(e)},onBlur:e=>{H(!1),t?.(e)},onCompositionStart:e=>{j.current=!0,b?.(e)},onCompositionEnd:e=>{j.current=!1,Y(e,e.currentTarget.value),h?.(e)},className:(0,n.$)(R?.textarea),style:{resize:y?.resize,...A?.textarea},disabled:E,prefixCls:m,onResize:e=>{z?.(e),q()?.style.height&&D(!0)},ref:X,readOnly:I})))}),E=h}}]);