You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/27739.async.js

1 line
19 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[27739,37408,52720,75464,45874,81326,47821,87648,82010,61999],{56762:function(e,t,r){r.d(t,{Z:function(){return n}});var o=r(59301);function n(){const[,e]=o.useReducer((e=>e+1),0);return e}},66104:function(e,t,r){r.d(t,{Z:function(){return N}});var o=r(92310),n=r.n(o),l=r(55401),a=r(87147),i=r(59301),s=r(92343),c=r(36355),d=r(43501),p=r(91857);const u=e=>{let{children:t}=e;const{getPrefixCls:r}=i.useContext(c.E_),o=r("breadcrumb");return i.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var m=u,g=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};function b(e,t,r,o){if(null==r)return null;const{className:l,onClick:s}=t,c=g(t,["className","onClick"]),d=Object.assign(Object.assign({},(0,a.Z)(c,{data:!0,aria:!0})),{onClick:s});return void 0!==o?i.createElement("a",Object.assign({},d,{className:n()(`${e}-link`,l),href:o}),r):i.createElement("span",Object.assign({},d,{className:n()(`${e}-link`,l)}),r)}function f(e,t){return(r,o,n,l,a)=>{if(t)return t(r,o,n,l);const i=function(e,t){if(void 0===e.title||null===e.title)return null;const r=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${r})`,"g"),((e,r)=>t[r]||e))}(r,o);return b(e,r,i,a)}}var h=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const y=e=>{const{prefixCls:t,separator:r="/",children:o,menu:n,overlay:l,dropdownProps:a,href:s}=e;const c=(e=>{if(n||l){const r=Object.assign({},a);if(n){const e=n||{},{items:t}=e,o=h(e,["items"]);r.menu=Object.assign(Object.assign({},o),{items:null==t?void 0:t.map(((e,t)=>{var{key:r,title:o,label:n,path:l}=e,a=h(e,["key","title","label","path"]);let c=null!=n?n:o;return l&&(c=i.createElement("a",{href:`${s}${l}`},c)),Object.assign(Object.assign({},a),{key:null!=r?r:t,label:c})}))})}else l&&(r.overlay=l);return i.createElement(p.Z,Object.assign({placement:"bottom"},r),i.createElement("span",{className:`${t}-overlay-link`},e,i.createElement(d.Z,null)))}return e})(o);return null!=c?i.createElement(i.Fragment,null,i.createElement("li",null,c),r&&i.createElement(m,null,r)):null},C=e=>{const{prefixCls:t,children:r,href:o}=e,n=h(e,["prefixCls","children","href"]),{getPrefixCls:l}=i.useContext(c.E_),a=l("breadcrumb",t);return i.createElement(y,Object.assign({},n,{prefixCls:a}),b(a,n,r,o))};C.__ANT_BREADCRUMB_ITEM=!0;var O=C,v=r(17313),x=r(83116),S=r(37613);const $=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,v.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${r} + span,\n > ${r} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var k=(0,x.Z)("Breadcrumb",(e=>{const t=(0,S.TS)(e,{});return[$(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),j=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};function w(e){const{breadcrumbName:t,children:r}=e,o=j(e,["breadcrumbName","children"]),n=Object.assign({title:t},o);return r&&(n.menu={items:r.map((e=>{var{breadcrumbName:t}=e,r=j(e,["breadcrumbName"]);return Object.assign(Object.assign({},r),{title:t})}))}),n}var E=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const I=e=>{const{prefixCls:t,separator:r="/",style:o,className:d,rootClassName:p,routes:u,items:g,children:b,itemRender:h,params:C={}}=e,O=E(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:v,direction:x,breadcrumb:S}=i.useContext(c.E_);let $;const j=v("breadcrumb",t),[I,N]=k(j),P=function(e,t){return(0,i.useMemo)((()=>e||(t?t.map(w):null)),[e,t])}(g,u);const z=f(j,h);if(P&&P.length>0){const e=[],t=g||u;$=P.map(((o,n)=>{const{path:l,key:s,type:c,menu:d,overlay:p,onClick:u,className:g,separator:b,dropdownProps:f}=o,h=((e,t)=>{if(void 0===t)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{r=r.replace(`:${t}`,e[t])})),r})(C,l);void 0!==h&&e.push(h);const O=null!=s?s:n;if("separator"===c)return i.createElement(m,{key:O},b);const v={},x=n===P.length-1;d?v.menu=d:p&&(v.overlay=p);let{href:S}=o;return e.length&&void 0!==h&&(S=`#/${e.join("/")}`),i.createElement(y,Object.assign({key:O},v,(0,a.Z)(o,{data:!0,aria:!0}),{className:g,dropdownProps:f,href:S,separator:x?"":r,onClick:u,prefixCls:j}),z(o,C,t,e,S))}))}else if(b){const e=(0,l.Z)(b).length;$=(0,l.Z)(b).map(((t,o)=>{if(!t)return t;const n=o===e-1;return(0,s.Tm)(t,{separator:n?"":r,key:o})}))}const M=n()(j,null==S?void 0:S.className,{[`${j}-rtl`]:"rtl"===x},d,p,N),T=Object.assign(Object.assign({},null==S?void 0:S.style),o);return I(i.createElement("nav",Object.assign({className:M,style:T},O),i.createElement("ol",null,$)))};I.Item=O,I.Separator=m;var N=I},28103:function(e,t,r){r.d(t,{Z:function(){return m}});var o=r(92310),n=r.n(o),l=r(59301),a=r(36355),i=r(17313),s=r(83116),c=r(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:o,lineWidth:n,textPaddingInline:l,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${n}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${n}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${n}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${n}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}};var p=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var m=e=>{const{getPrefixCls:t,direction:r,divider:o}=l.useContext(a.E_),{prefixCls:i,type:s="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:g,children:b,dashed:f,plain:h,style:y}=e,C=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),O=t("divider",i),[v,x]=p(O),S=c.length>0?`-${c}`:c,$=!!b,k="left"===c&&null!=d,j="right"===c&&null!=d,w=n()(O,null==o?void 0:o.className,x,`${O}-${s}`,{[`${O}-with-text`]:$,[`${O}-with-text${S}`]:$,[`${O}-dashed`]:!!f,[`${O}-plain`]:!!h,[`${O}-rtl`]:"rtl"===r,[`${O}-no-default-orientation-margin-left`]:k,[`${O}-no-default-orientation-margin-right`]:j},m,g),E=l.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),I=Object.assign(Object.assign({},k&&{marginLeft:E}),j&&{marginRight:E});return v(l.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==o?void 0:o.style),y)},C,{role:"separator"}),b&&"vertical"!==s&&l.createElement("span",{className:`${O}-inner-text`,style:I},b)))}},44e3:function(e,t,r){var o=r(84966),n=r(10711);const l=o.ZP;l.Header=o.h4,l.Footer=o.$_,l.Content=o.VY,l.Sider=n.Z,t.Z=l},57809:function(e,t,r){var o=r(92310),n=r.n(o),l=r(77861),a=r(70521),i=r(59301),s=r(53487),c=r(62892),d=r(19080),p=r(36355),u=r(1684),m=r(93891),g=r(19716),b=r(32441),f=r(33234),h=r(14154),y=r(58582),C=r(84443),O=r(66339),v=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const x="SECRET_COMBOBOX_MODE_DO_NOT_USE",S=(e,t)=>{var r,{prefixCls:o,bordered:s=!0,className:S,rootClassName:$,getPopupContainer:k,popupClassName:j,dropdownClassName:w,listHeight:E=256,placement:I,listItemHeight:N=24,size:P,disabled:z,notFoundContent:M,status:T,builtinPlacements:B,dropdownMatchSelectWidth:Z,popupMatchSelectWidth:H,direction:_,style:W,allowClear:R}=e,X=v(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:F,getPrefixCls:D,renderEmpty:A,direction:L,virtual:G,popupMatchSelectWidth:U,popupOverflow:Y,select:Q}=i.useContext(p.E_),V=D("select",o),q=D(),J=null!=_?_:L,{compactSize:K,compactItemClassnames:ee}=(0,f.ri)(V,J),[te,re]=(0,h.Z)(V),oe=i.useMemo((()=>{const{mode:e}=X;if("combobox"!==e)return e===x?"combobox":e}),[X.mode]),ne="multiple"===oe||"tags"===oe,le=(0,C.Z)(X.suffixIcon,X.showArrow),ae=null!==(r=null!=H?H:Z)&&void 0!==r?r:U,{status:ie,hasFeedback:se,isFormItemInput:ce,feedbackIcon:de}=i.useContext(b.aM),pe=(0,d.F)(ie,T);let ue;ue=void 0!==M?M:"combobox"===oe?null:(null==A?void 0:A("Select"))||i.createElement(m.Z,{componentName:"Select"});const{suffixIcon:me,itemIcon:ge,removeIcon:be,clearIcon:fe}=(0,O.Z)(Object.assign(Object.assign({},X),{multiple:ne,hasFeedback:se,feedbackIcon:de,showSuffixIcon:le,prefixCls:V,showArrow:X.showArrow,componentName:"Select"})),he=!0===R?{clearIcon:fe}:R,ye=(0,a.Z)(X,["suffixIcon","itemIcon"]),Ce=n()(j||w,{[`${V}-dropdown-${J}`]:"rtl"===J},$,re),Oe=(0,g.Z)((e=>{var t;return null!==(t=null!=P?P:K)&&void 0!==t?t:e})),ve=i.useContext(u.Z),xe=null!=z?z:ve,Se=n()({[`${V}-lg`]:"large"===Oe,[`${V}-sm`]:"small"===Oe,[`${V}-rtl`]:"rtl"===J,[`${V}-borderless`]:!s,[`${V}-in-form-item`]:ce},(0,d.Z)(V,pe,se),ee,null==Q?void 0:Q.className,S,$,re),$e=i.useMemo((()=>void 0!==I?I:"rtl"===J?"bottomRight":"bottomLeft"),[I,J]),ke=(0,y.Z)(B,Y);return te(i.createElement(l.ZP,Object.assign({ref:t,virtual:G,showSearch:null==Q?void 0:Q.showSearch},ye,{style:Object.assign(Object.assign({},null==Q?void 0:Q.style),W),dropdownMatchSelectWidth:ae,builtinPlacements:ke,transitionName:(0,c.m)(q,"slide-up",X.transitionName),listHeight:E,listItemHeight:N,mode:oe,prefixCls:V,placement:$e,direction:J,suffixIcon:me,menuItemSelectedIcon:ge,removeIcon:be,allowClear:he,notFoundContent:ue,className:Se,getPopupContainer:k||F,dropdownClassName:Ce,disabled:xe})))};const $=i.forwardRef(S),k=(0,s.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=x,$.Option=l.Wx,$.OptGroup=l.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=k,t.default=$},12563:function(e,t,r){r.d(t,{Z:function(){return j}});var o=r(59301),n=r(14834),l=r(92310),a=r.n(l),i=r(36785),s=r(47729),c=r(14088),d=r(36355),p=r(17313),u=r(37613),m=r(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:r}=e,o=e.fontSizeSM,n=e.lineHeightSM*o+"px";return(0,u.TS)(e,{tagFontSize:o,tagLineHeight:n,tagIconSize:r-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},b=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var f=(0,m.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:o,componentCls:n}=e,l=o-r,a=t-r;return{[n]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),b),h=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};var y=e=>{const{prefixCls:t,style:r,className:n,checked:l,onChange:i,onClick:s}=e,c=h(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=o.useContext(d.E_),m=p("tag",t),[g,b]=f(m),y=a()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:l},null==u?void 0:u.className,n,b);return g(o.createElement("span",Object.assign({},c,{style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:y,onClick:e=>{null==i||i(!l),null==s||s(e)}})))},C=r(45157);var O=(0,m.b)(["Tag","preset"],(e=>(e=>(0,C.Z)(e,((t,r)=>{let{textColor:o,lightBorderColor:n,lightColor:l,darkColor:a}=r;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),b);const v=(e,t,r)=>{const o="string"!=typeof(n=r)?n:n.charAt(0).toUpperCase()+n.slice(1);var n;return{[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var x=(0,m.b)(["Tag","status"],(e=>{const t=g(e);return[v(t,"success","Success"),v(t,"processing","Info"),v(t,"error","Error"),v(t,"warning","Warning")]}),b),S=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const $=(e,t)=>{const{prefixCls:r,className:l,rootClassName:p,style:u,children:m,icon:g,color:b,onClose:h,closeIcon:y,closable:C,bordered:v=!0}=e,$=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:k,direction:j,tag:w}=o.useContext(d.E_),[E,I]=o.useState(!0);o.useEffect((()=>{"visible"in $&&I($.visible)}),[$.visible]);const N=(0,i.o2)(b),P=(0,i.yT)(b),z=N||P,M=Object.assign(Object.assign({backgroundColor:b&&!z?b:void 0},null==w?void 0:w.style),u),T=k("tag",r),[B,Z]=f(T),H=a()(T,null==w?void 0:w.className,{[`${T}-${b}`]:z,[`${T}-has-color`]:b&&!z,[`${T}-hidden`]:!E,[`${T}-rtl`]:"rtl"===j,[`${T}-borderless`]:!v},l,p,Z),_=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||I(!1)},[,W]=(0,s.Z)(C,y,(e=>null===e?o.createElement(n.Z,{className:`${T}-close-icon`,onClick:_}):o.createElement("span",{className:`${T}-close-icon`,onClick:_},e)),null,!1),R="function"==typeof $.onClick||m&&"a"===m.type,X=g||null,F=X?o.createElement(o.Fragment,null,X,m&&o.createElement("span",null,m)):m,D=o.createElement("span",Object.assign({},$,{ref:t,className:H,style:M}),F,W,N&&o.createElement(O,{key:"preset",prefixCls:T}),P&&o.createElement(x,{key:"status",prefixCls:T}));return B(R?o.createElement(c.Z,{component:"Tag"},D):D)},k=o.forwardRef($);k.CheckableTag=y;var j=k}}]);