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/49494.87f961fb.async.js

1 line
24 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[49494,36270],{680:function(e,t,r){r.d(t,{Z:function(){return c}});var n=r(5891),o=r(59301),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 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=r(22589),i=function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var c=o.forwardRef(i)},77578:function(e,t,r){r.d(t,{Z:function(){return n}});const n=e=>e?"function"==typeof e?e():e:null},66104:function(e,t,r){r.d(t,{Z:function(){return P}});var n=r(92310),o=r.n(n),a=r(75440),l=r(47413),i=r(59301),c=r(92343),s=r(36355),d=r(78386),p=r(91857);const u=e=>{let{children:t}=e;const{getPrefixCls:r}=i.useContext(s.E_),n=r("breadcrumb");return i.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var m=u,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function f(e,t,r,n){if(null==r)return null;const{className:a,onClick:c}=t,s=g(t,["className","onClick"]),d=Object.assign(Object.assign({},(0,l.Z)(s,{data:!0,aria:!0})),{onClick:c});return void 0!==n?i.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,a),href:n}),r):i.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,a)}),r)}function b(e,t){return(r,n,o,a,l)=>{if(t)return t(r,n,o,a);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,n);return f(e,r,i,l)}}var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const y=e=>{const{prefixCls:t,separator:r="/",children:n,menu:o,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(o||a){const r=Object.assign({},l);if(o){const e=o||{},{items:t}=e,n=h(e,["items"]);r.menu=Object.assign(Object.assign({},n),{items:null==t?void 0:t.map(((e,t)=>{var{key:r,title:n,label:o,path:a}=e,l=h(e,["key","title","label","path"]);let s=null!=o?o:n;return a&&(s=i.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!=r?r:t,label:s})}))})}else a&&(r.overlay=a);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})(n);return null!=s?i.createElement(i.Fragment,null,i.createElement("li",null,s),r&&i.createElement(m,null,r)):null},v=e=>{const{prefixCls:t,children:r,href:n}=e,o=h(e,["prefixCls","children","href"]),{getPrefixCls:a}=i.useContext(s.E_),l=a("breadcrumb",t);return i.createElement(y,Object.assign({},o,{prefixCls:l}),f(l,o,r,n))};v.__ANT_BREADCRUMB_ITEM=!0;var x=v,$=r(17313),C=r(83116),O=r(37613);const S=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,$.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,$.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,C.Z)("Breadcrumb",(e=>{const t=(0,O.TS)(e,{});return[S(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function j(e){const{breadcrumbName:t,children:r}=e,n=E(e,["breadcrumbName","children"]),o=Object.assign({title:t},n);return r&&(o.menu={items:r.map((e=>{var{breadcrumbName:t}=e,r=E(e,["breadcrumbName"]);return Object.assign(Object.assign({},r),{title:t})}))}),o}var w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const N=e=>{const{prefixCls:t,separator:r="/",style:n,className:d,rootClassName:p,routes:u,items:g,children:f,itemRender:h,params:v={}}=e,x=w(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$,direction:C,breadcrumb:O}=i.useContext(s.E_);let S;const E=$("breadcrumb",t),[N,P]=k(E),z=function(e,t){return(0,i.useMemo)((()=>e||(t?t.map(j):null)),[e,t])}(g,u);const I=b(E,h);if(z&&z.length>0){const e=[],t=g||u;S=z.map(((n,o)=>{const{path:a,key:c,type:s,menu:d,overlay:p,onClick:u,className:g,separator:f,dropdownProps:b}=n,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})(v,a);void 0!==h&&e.push(h);const x=null!=c?c:o;if("separator"===s)return i.createElement(m,{key:x},f);const $={},C=o===z.length-1;d?$.menu=d:p&&($.overlay=p);let{href:O}=n;return e.length&&void 0!==h&&(O=`#/${e.join("/")}`),i.createElement(y,Object.assign({key:x},$,(0,l.Z)(n,{data:!0,aria:!0}),{className:g,dropdownProps:b,href:O,separator:C?"":r,onClick:u,prefixCls:E}),I(n,v,t,e,O))}))}else if(f){const e=(0,a.Z)(f).length;S=(0,a.Z)(f).map(((t,n)=>{if(!t)return t;const o=n===e-1;return(0,c.Tm)(t,{separator:o?"":r,key:n})}))}const T=o()(E,null==O?void 0:O.className,{[`${E}-rtl`]:"rtl"===C},d,p,P),B=Object.assign(Object.assign({},null==O?void 0:O.style),n);return N(i.createElement("nav",Object.assign({className:T,style:B},x),i.createElement("ol",null,S)))};N.Item=x,N.Separator=m;var P=N},28103:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(92310),o=r.n(n),a=r(59301),l=r(36355),i=r(17313),c=r(83116),s=r(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:a,orientationMargin:l,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{borderBlockStart:`${o}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${n}`},"&-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 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,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,c.Z)("Divider",(e=>{const t=(0,s.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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};var m=e=>{const{getPrefixCls:t,direction:r,divider:n}=a.useContext(l.E_),{prefixCls:i,type:c="horizontal",orientation:s="center",orientationMargin:d,className:m,rootClassName:g,children:f,dashed:b,plain:h,style:y}=e,v=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",i),[$,C]=p(x),O=s.length>0?`-${s}`:s,S=!!f,k="left"===s&&null!=d,E="right"===s&&null!=d,j=o()(x,null==n?void 0:n.className,C,`${x}-${c}`,{[`${x}-with-text`]:S,[`${x}-with-text${O}`]:S,[`${x}-dashed`]:!!b,[`${x}-plain`]:!!h,[`${x}-rtl`]:"rtl"===r,[`${x}-no-default-orientation-margin-left`]:k,[`${x}-no-default-orientation-margin-right`]:E},m,g),w=a.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),N=Object.assign(Object.assign({},k&&{marginLeft:w}),E&&{marginRight:w});return $(a.createElement("div",Object.assign({className:j,style:Object.assign(Object.assign({},null==n?void 0:n.style),y)},v,{role:"separator"}),f&&"vertical"!==c&&a.createElement("span",{className:`${x}-inner-text`,style:N},f)))}},39722:function(e,t,r){r.d(t,{t5:function(){return p}});var n=r(92310),o=r.n(n),a=r(55477),l=r(59301),i=r(36355),c=r(77578),s=r(17356),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const p=e=>{const{hashId:t,prefixCls:r,className:n,style:i,placement:s="top",title:d,content:p,children:u}=e;return l.createElement("div",{className:o()(t,r,`${r}-pure`,`${r}-placement-${s}`,n),style:i},l.createElement("div",{className:`${r}-arrow`}),l.createElement(a.G,Object.assign({},e,{className:t,prefixCls:r}),u||((e,t,r)=>{if(t||r)return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${e}-title`},(0,c.Z)(t)),l.createElement("div",{className:`${e}-inner-content`},(0,c.Z)(r)))})(r,d,p)))};t.ZP=e=>{const{prefixCls:t}=e,r=d(e,["prefixCls"]),{getPrefixCls:n}=l.useContext(i.E_),o=n("popover",t),[a,c]=(0,s.Z)(o);return a(l.createElement(p,Object.assign({},r,{prefixCls:o,hashId:c})))}},60324:function(e,t,r){var n=r(92310),o=r.n(n),a=r(59301),l=r(77578),i=r(62892),c=r(36355),s=r(6848),d=r(39722),p=r(17356),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const m=e=>{let{title:t,content:r,prefixCls:n}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${n}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${n}-inner-content`},(0,l.Z)(r)))},g=a.forwardRef(((e,t)=>{const{prefixCls:r,title:n,content:l,overlayClassName:d,placement:g="top",trigger:f="hover",mouseEnterDelay:b=.1,mouseLeaveDelay:h=.1,overlayStyle:y={}}=e,v=u(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:x}=a.useContext(c.E_),$=x("popover",r),[C,O]=(0,p.Z)($),S=x(),k=o()(d,O);return C(a.createElement(s.Z,Object.assign({placement:g,trigger:f,mouseEnterDelay:b,mouseLeaveDelay:h,overlayStyle:y},v,{prefixCls:$,overlayClassName:k,ref:t,overlay:n||l?a.createElement(m,{prefixCls:$,title:n,content:l}):null,transitionName:(0,i.m)(S,"zoom-big",v.transitionName),"data-popover-inject":!0})))}));g._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=g},17356:function(e,t,r){var n=r(17313),o=r(29878),a=r(19447),l=r(33166),i=r(83116),c=r(37613);const s=e=>{const{componentCls:t,popoverColor:r,minWidth:o,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:c,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:p,marginXS:u,colorBgElevated:m,popoverBg:g}=e;return[{[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:l},[`${t}-inner-content`]:{color:r}})},(0,a.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:l.i.map((r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},p=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorSplit:o,paddingSM:a,controlHeight:l,fontSize:i,lineHeight:c,padding:s}=e,d=l-Math.round(i*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-r}px`,borderBottom:`${r}px ${n} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${s}px`}}}};t.Z=(0,i.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:r,wireframe:n}=e,a=(0,c.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:r});return[s(a),d(a),n&&p(a),(0,o._y)(a,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},31797:function(e,t,r){r.d(t,{Z:function(){return $}});var n=r(59301),o=r(56762),a=r(92343),l=r(92310),i=r.n(l),c=r(36355),s=r(96865);var d=e=>{const{value:t,formatter:r,precision:o,decimalSeparator:a,groupSeparator:l="",prefixCls:i}=e;let c;if("function"==typeof r)c=r(t);else{const e=String(t),r=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(r&&"-"!==e){const e=r[1];let t=r[2]||"0",s=r[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${a}${s}`),c=[n.createElement("span",{key:"int",className:`${i}-content-value-int`},e,t),s&&n.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},s)]}else c=e}return n.createElement("span",{className:`${i}-content-value`},c)},p=r(17313),u=r(83116),m=r(37613);const g=e=>{const{componentCls:t,marginXXS:r,padding:n,colorTextDescription:o,titleFontSize:a,colorTextHeading:l,contentFontSize:i,fontFamily:c}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{[`${t}-title`]:{marginBottom:r,color:o,fontSize:a},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:l,fontSize:i,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}})}};var f=(0,u.Z)("Statistic",(e=>{const t=(0,m.TS)(e,{});return[g(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}}));var b=e=>{const{prefixCls:t,className:r,rootClassName:o,style:a,valueStyle:l,value:p=0,title:u,valueRender:m,prefix:g,suffix:b,loading:h=!1,onMouseEnter:y,onMouseLeave:v,decimalSeparator:x=".",groupSeparator:$=","}=e,{getPrefixCls:C,direction:O,statistic:S}=n.useContext(c.E_),k=C("statistic",t),[E,j]=f(k),w=n.createElement(d,Object.assign({decimalSeparator:x,groupSeparator:$,prefixCls:k},e,{value:p})),N=i()(k,{[`${k}-rtl`]:"rtl"===O},null==S?void 0:S.className,r,o,j);return E(n.createElement("div",{className:N,style:Object.assign(Object.assign({},null==S?void 0:S.style),a),onMouseEnter:y,onMouseLeave:v},u&&n.createElement("div",{className:`${k}-title`},u),n.createElement(s.Z,{paragraph:!1,loading:h,className:`${k}-skeleton`},n.createElement("div",{style:l,className:`${k}-content`},g&&n.createElement("span",{className:`${k}-content-prefix`},g),m?m(w):w,b&&n.createElement("span",{className:`${k}-content-suffix`},b)))))};const h=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function y(e,t){const{format:r=""}=t,n=new Date(e).getTime(),o=Date.now();return function(e,t){let r=e;const n=/\[[^\]]*]/g,o=(t.match(n)||[]).map((e=>e.slice(1,-1))),a=t.replace(n,"[]"),l=h.reduce(((e,t)=>{let[n,o]=t;if(e.includes(n)){const t=Math.floor(r/o);return r-=t*o,e.replace(new RegExp(`${n}+`,"g"),(e=>{const r=e.length;return t.toString().padStart(r,"0")}))}return e}),a);let i=0;return l.replace(n,(()=>{const e=o[i];return i+=1,e}))}(Math.max(n-o,0),r)}const v=e=>{const{value:t,format:r="HH:mm:ss",onChange:l,onFinish:i}=e,c=(0,o.Z)(),s=n.useRef(null),d=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{c(),null==l||l(e-Date.now()),e<Date.now()&&(null==i||i(),s.current&&(clearInterval(s.current),s.current=null))}),33.333333333333336))};n.useEffect((()=>(d(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return n.createElement(b,Object.assign({},e,{valueRender:e=>(0,a.Tm)(e,{title:void 0}),formatter:(e,t)=>y(e,Object.assign(Object.assign({},t),{format:r}))}))};var x=n.memo(v);b.Countdown=x;var $=b},12563:function(e,t,r){r.d(t,{Z:function(){return E}});var n=r(59301),o=r(51638),a=r(92310),l=r.n(a),i=r(36785),c=r(47729),s=r(14088),d=r(36355),p=r(17313),u=r(37613),m=r(83116);const g=e=>{const{lineWidth:t,fontSizeIcon:r}=e,n=e.fontSizeSM,o=e.lineHeightSM*n+"px";return(0,u.TS)(e,{tagFontSize:n,tagLineHeight:o,tagIconSize:r-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,m.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o}=e,a=n-r,l=t-r;return{[o]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),f),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};var y=e=>{const{prefixCls:t,style:r,className:o,checked:a,onChange:i,onClick:c}=e,s=h(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:u}=n.useContext(d.E_),m=p("tag",t),[g,f]=b(m),y=l()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},null==u?void 0:u.className,o,f);return g(n.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:y,onClick:e=>{null==i||i(!a),null==c||c(e)}})))},v=r(45157);var x=(0,m.b)(["Tag","preset"],(e=>(e=>(0,v.Z)(e,((t,r)=>{let{textColor:n,lightBorderColor:o,lightColor:a,darkColor:l}=r;return{[`${e.componentCls}-${t}`]:{color:n,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),f);const $=(e,t,r)=>{const n="string"!=typeof(o=r)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var C=(0,m.b)(["Tag","status"],(e=>{const t=g(e);return[$(t,"success","Success"),$(t,"processing","Info"),$(t,"error","Error"),$(t,"warning","Warning")]}),f),O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const S=(e,t)=>{const{prefixCls:r,className:a,rootClassName:p,style:u,children:m,icon:g,color:f,onClose:h,closeIcon:y,closable:v,bordered:$=!0}=e,S=O(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:k,direction:E,tag:j}=n.useContext(d.E_),[w,N]=n.useState(!0);n.useEffect((()=>{"visible"in S&&N(S.visible)}),[S.visible]);const P=(0,i.o2)(f),z=(0,i.yT)(f),I=P||z,T=Object.assign(Object.assign({backgroundColor:f&&!I?f:void 0},null==j?void 0:j.style),u),B=k("tag",r),[Z,M]=b(B),H=l()(B,null==j?void 0:j.className,{[`${B}-${f}`]:I,[`${B}-has-color`]:f&&!I,[`${B}-hidden`]:!w,[`${B}-rtl`]:"rtl"===E,[`${B}-borderless`]:!$},a,p,M),W=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||N(!1)},[,D]=(0,c.Z)(v,y,(e=>null===e?n.createElement(o.Z,{className:`${B}-close-icon`,onClick:W}):n.createElement("span",{className:`${B}-close-icon`,onClick:W},e)),null,!1),R="function"==typeof S.onClick||m&&"a"===m.type,_=g||null,X=_?n.createElement(n.Fragment,null,_,m&&n.createElement("span",null,m)):m,F=n.createElement("span",Object.assign({},S,{ref:t,className:H,style:T}),X,D,P&&n.createElement(x,{key:"preset",prefixCls:B}),z&&n.createElement(C,{key:"status",prefixCls:B}));return Z(R?n.createElement(s.Z,{component:"Tag"},F):F)},k=n.forwardRef(S);k.CheckableTag=y;var E=k}}]);