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

1 line
20 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[86],{43604:function(e,t,r){var n=r(37028);t.Z=n.Z},6700:function(e,t,r){const n=(0,r(59301).createContext)({});t.Z=n},37028:function(e,t,r){var n=r(59301),o=r(92310),s=r.n(o),i=r(36355),l=r(6700),c=r(98242),a=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 u=["xs","sm","md","lg","xl","xxl"],d=n.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:o}=n.useContext(i.E_),{gutter:d,wrap:p}=n.useContext(l.Z),{prefixCls:f,span:g,order:m,offset:$,push:y,pull:b,className:h,children:v,flex:x,style:k}=e,C=a(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=r("col",f),[S,w]=(0,c.c)(O);let E={};u.forEach((t=>{let r={};const n=e[t];"number"==typeof n?r.span=n:"object"==typeof n&&(r=n||{}),delete C[t],E=Object.assign(Object.assign({},E),{[`${O}-${t}-${r.span}`]:void 0!==r.span,[`${O}-${t}-order-${r.order}`]:r.order||0===r.order,[`${O}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${O}-${t}-push-${r.push}`]:r.push||0===r.push,[`${O}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${O}-${t}-flex-${r.flex}`]:r.flex||"auto"===r.flex,[`${O}-rtl`]:"rtl"===o})}));const j=s()(O,{[`${O}-${g}`]:void 0!==g,[`${O}-order-${m}`]:m,[`${O}-offset-${$}`]:$,[`${O}-push-${y}`]:y,[`${O}-pull-${b}`]:b},h,E,w),I={};if(d&&d[0]>0){const e=d[0]/2;I.paddingLeft=e,I.paddingRight=e}return x&&(I.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(x),!1!==p||I.minWidth||(I.minWidth=0)),S(n.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign({},I),k),className:j,ref:t}),v))}));t.Z=d},27382:function(e,t,r){var n=r(59301),o=r(92310),s=r.n(o),i=r(69507),l=r(36355),c=r(6700),a=r(98242),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};function d(e,t){const[r,o]=n.useState("string"==typeof e?e:"");return n.useEffect((()=>{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let r=0;r<i.c4.length;r++){const n=i.c4[r];if(!t[n])continue;const s=e[n];if(void 0!==s)return void o(s)}})()}),[JSON.stringify(e),t]),r}const p=n.forwardRef(((e,t)=>{const{prefixCls:r,justify:o,align:p,className:f,style:g,children:m,gutter:$=0,wrap:y}=e,b=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:v}=n.useContext(l.E_),[x,k]=n.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,O]=n.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=d(p,C),w=d(o,C),E=n.useRef($),j=(0,i.ZP)();n.useEffect((()=>{const e=j.subscribe((e=>{O(e);const t=E.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&k(e)}));return()=>j.unsubscribe(e)}),[]);const I=h("row",r),[N,P]=(0,a.V)(I),W=(()=>{const e=[void 0,void 0];return(Array.isArray($)?$:[$,void 0]).forEach(((t,r)=>{if("object"==typeof t)for(let n=0;n<i.c4.length;n++){const o=i.c4[n];if(x[o]&&void 0!==t[o]){e[r]=t[o];break}}else e[r]=t})),e})(),Z=s()(I,{[`${I}-no-wrap`]:!1===y,[`${I}-${w}`]:w,[`${I}-${S}`]:S,[`${I}-rtl`]:"rtl"===v},f,P),M={},A=null!=W[0]&&W[0]>0?W[0]/-2:void 0;A&&(M.marginLeft=A,M.marginRight=A),[,M.rowGap]=W;const[D,z]=W,R=n.useMemo((()=>({gutter:[D,z],wrap:y})),[D,z,y]);return N(n.createElement(c.Z.Provider,{value:R},n.createElement("div",Object.assign({},b,{className:Z,style:Object.assign(Object.assign({},M),g),ref:t}),m)))}));t.Z=p},98242:function(e,t,r){r.d(t,{V:function(){return c},c:function(){return a}});var n=r(83116),o=r(37613);const s=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},i=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>((e,t)=>{const{componentCls:r,gridColumns:n}=e,o={};for(let e=n;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/n*100}%`,maxWidth:e/n*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/n*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/n*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/n*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o})(e,t),c=(0,n.Z)("Grid",(e=>[s(e)])),a=(0,n.Z)("Grid",(e=>{const t=(0,o.TS)(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i(t),l(t,""),l(t,"-xs"),Object.keys(r).map((e=>((e,t,r)=>({[`@media (min-width: ${t}px)`]:Object.assign({},l(e,r))}))(t,r[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}))},93948:function(e,t,r){r.d(t,{Z:function(){return te}});var n=r(59301),o=r(46906),s=r(9516),i=r(21884),l=r(53043),c=r(92310),a=r.n(c),u=r(55405),d=r(36355),p=r(81978),f=r(11625),g=r(62579),m={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)(null);return(0,n.useEffect)((function(){var r=Date.now(),n=!1;e.current.forEach((function(e){if(e){n=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(o.transitionDuration="0s, 0s")}})),n&&(t.current=Date.now())})),e.current};var y=r(49888),b=r(43941),h=r(55562),v=0,x=(0,h.Z)();var k=function(e){var t=n.useState(),r=(0,b.Z)(t,2),o=r[0],s=r[1];return n.useEffect((function(){var e;s("rc_progress_".concat((x?(e=v,v+=1):e="TEST_OR_SSR",e)))}),[]),e||o},C=function(e){var t=e.bg,r=e.children;return n.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function O(e,t){return Object.keys(e).map((function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)}))}var S=n.forwardRef((function(e,t){var r=e.prefixCls,o=e.color,s=e.gradientId,i=e.radius,l=e.style,c=e.ptg,a=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=o&&"object"===(0,y.Z)(o),g=f?"#FFF":void 0,m=d/2,$=n.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:m,cy:m,stroke:g,strokeLinecap:a,strokeWidth:u,opacity:0===c?0:1,style:l,ref:t});if(!f)return $;var b="".concat(s,"-conic"),h=p?"".concat(180+p/2,"deg"):"0deg",v=O(o,(360-p)/360),x=O(o,1),k="conic-gradient(from ".concat(h,", ").concat(v.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return n.createElement(n.Fragment,null,n.createElement("mask",{id:b},$),n.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},n.createElement(C,{bg:S},n.createElement(C,{bg:k}))))})),w=100,E=function(e,t,r,n,o,s,i,l,c,a){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=r/100*360*((360-s)/360),p=0===s?0:{bottom:0,top:180,left:90,right:-90}[i],f=(100-n)/100*t;"round"===c&&100!==n&&(f+=a/2)>=t&&(f=t-.01);var g=50;return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(o+d+p,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},j=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function I(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var N=function(e){var t,r,o,s=(0,f.Z)((0,f.Z)({},m),e),i=s.id,l=s.prefixCls,c=s.steps,u=s.strokeWidth,d=s.trailWidth,b=s.gapDegree,h=void 0===b?0:b,v=s.gapPosition,x=s.trailColor,C=s.strokeLinecap,O=s.style,N=s.className,P=s.strokeColor,W=s.percent,Z=(0,g.Z)(s,j),M=k(i),A="".concat(M,"-gradient"),D=50-u/2,z=2*Math.PI*D,R=h>0?90+h/2:-90,L=z*((360-h)/360),X="object"===(0,y.Z)(c)?c:{count:c,space:2},F=X.count,T=X.space,B=I(W),_=I(P),H=_.find((function(e){return e&&"object"===(0,y.Z)(e)})),G=H&&"object"===(0,y.Z)(H)?"butt":C,V=E(z,L,0,100,R,h,v,x,G,u),q=$();return n.createElement("svg",(0,p.Z)({className:a()("".concat(l,"-circle"),N),viewBox:"0 0 ".concat(w," ").concat(w),style:O,id:i,role:"presentation"},Z),!F&&n.createElement("circle",{className:"".concat(l,"-circle-trail"),r:D,cx:50,cy:50,stroke:x,strokeLinecap:G,strokeWidth:d||u,style:V}),F?(t=Math.round(F*(B[0]/100)),r=100/F,o=0,new Array(F).fill(null).map((function(e,s){var i=s<=t-1?_[0]:x,c=i&&"object"===(0,y.Z)(i)?"url(#".concat(A,")"):void 0,a=E(z,L,o,r,R,h,v,i,"butt",u,T);return o+=100*(L-a.strokeDashoffset+T)/L,n.createElement("circle",{key:s,className:"".concat(l,"-circle-path"),r:D,cx:50,cy:50,stroke:c,strokeWidth:u,opacity:1,style:a,ref:function(e){q[s]=e}})}))):function(){var e=0;return B.map((function(t,r){var o=_[r]||_[_.length-1],s=E(z,L,e,t,R,h,v,o,G,u);return e+=t,n.createElement(S,{key:r,color:o,ptg:t,radius:D,prefixCls:l,gradientId:A,style:s,strokeLinecap:G,strokeWidth:u,gapDegree:h,ref:function(e){q[r]=e},size:w})})).reverse()}())},P=r(71736),W=r(88453);function Z(e){return!e||e<0?0:e>100?100:e}function M(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const A=e=>{let{percent:t,success:r,successPercent:n}=e;const o=Z(M({success:r,successPercent:n}));return[o,Z(Z(t)-o)]},D=(e,t,r)=>{var n,o,s,i;let l=-1,c=-1;if("step"===t){const t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=n?n:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){const t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,c=null!==(i=null!==(s=e[0])&&void 0!==s?s:e[1])&&void 0!==i?i:120));return[l,c]};var z=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:s,gapDegree:i,width:l=120,type:c,children:u,success:d,size:p=l}=e,[f,g]=D(p,"circle");let{strokeWidth:m}=e;void 0===m&&(m=Math.max((e=>3/e*100)(f),6));const $={width:f,height:g,fontSize:.15*f+6},y=n.useMemo((()=>i||0===i?i:"dashboard"===c?75:void 0),[i,c]),b=s||"dashboard"===c&&"bottom"||void 0,h="[object Object]"===Object.prototype.toString.call(e.strokeColor),v=(e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||W.ez.green,r||null]})({success:d,strokeColor:e.strokeColor}),x=a()(`${t}-inner`,{[`${t}-circle-gradient`]:h}),k=n.createElement(N,{percent:A(e),strokeWidth:m,trailWidth:m,strokeColor:v,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:b});return n.createElement("div",{className:x,style:$},f<=20?n.createElement(P.Z,{title:u},n.createElement("span",null,k)):n.createElement(n.Fragment,null,k,u))},R=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 L=(e,t)=>{const{from:r=W.ez.blue,to:n=W.ez.blue,direction:o=("rtl"===t?"to left":"to right")}=e,s=R(e,["from","to","direction"]);if(0!==Object.keys(s).length){return{backgroundImage:`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach((r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:r}=e;return`${r} ${t}%`})).join(", ")})(s)})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}};var X=e=>{const{prefixCls:t,direction:r,percent:o,size:s,strokeWidth:i,strokeColor:l,strokeLinecap:c="round",children:a,trailColor:u=null,success:d}=e,p=l&&"string"!=typeof l?L(l,r):{backgroundColor:l},f="square"===c||"butt"===c?0:void 0,g={backgroundColor:u||void 0,borderRadius:f},m=null!=s?s:[-1,i||("small"===s?6:8)],[$,y]=D(m,"line",{strokeWidth:i});const b=Object.assign({width:`${Z(o)}%`,height:y,borderRadius:f},p),h=M(e),v={width:`${Z(h)}%`,height:y,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor},x={width:$<0?"100%":$,height:y};return n.createElement(n.Fragment,null,n.createElement("div",{className:`${t}-outer`,style:x},n.createElement("div",{className:`${t}-inner`,style:g},n.createElement("div",{className:`${t}-bg`,style:b}),void 0!==h?n.createElement("div",{className:`${t}-success-bg`,style:v}):null)),a)};var F=e=>{const{size:t,steps:r,percent:o=0,strokeWidth:s=8,strokeColor:i,trailColor:l=null,prefixCls:c,children:u}=e,d=Math.round(r*(o/100)),p=null!=t?t:["small"===t?2:14,s],[f,g]=D(p,"step",{steps:r,strokeWidth:s}),m=f/r,$=new Array(r);for(let e=0;e<r;e++){const t=Array.isArray(i)?i[e]:i;$[e]=n.createElement("div",{key:e,className:a()(`${c}-steps-item`,{[`${c}-steps-item-active`]:e<=d-1}),style:{backgroundColor:e<=d-1?t:l,width:m,height:g}})}return n.createElement("div",{className:`${c}-steps-outer`},$,u)},T=r(1915),B=r(17313),_=r(83116),H=r(37613);const G=e=>{const t=e?"100%":"-100%";return new T.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},V=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,B.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:G(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:G(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},q=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},J=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Q=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var Y=(0,_.Z)("Progress",(e=>{const t=e.marginXXS/2,r=(0,H.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[V(r),q(r),J(r),Q(r)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"}))),K=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 U=["normal","exception","active","success"],ee=n.forwardRef(((e,t)=>{const{prefixCls:r,className:c,rootClassName:p,steps:f,strokeColor:g,percent:m=0,size:$="default",showInfo:y=!0,type:b="line",status:h,format:v,style:x}=e,k=K(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),C=n.useMemo((()=>{var t,r;const n=M(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=m?m:0)||void 0===r?void 0:r.toString(),10)}),[m,e.success,e.successPercent]),O=n.useMemo((()=>!U.includes(h)&&C>=100?"success":h||"normal"),[h,C]),{getPrefixCls:S,direction:w,progress:E}=n.useContext(d.E_),j=S("progress",r),[I,N]=Y(j),P=n.useMemo((()=>{if(!y)return null;const t=M(e);let r;const c="line"===b;return v||"exception"!==O&&"success"!==O?r=(v||(e=>`${e}%`))(Z(m),Z(t)):"exception"===O?r=c?n.createElement(i.Z,null):n.createElement(l.Z,null):"success"===O&&(r=c?n.createElement(o.Z,null):n.createElement(s.Z,null)),n.createElement("span",{className:`${j}-text`,title:"string"==typeof r?r:void 0},r)}),[y,m,C,O,b,j,v]);const W=Array.isArray(g)?g[0]:g,A="string"==typeof g||Array.isArray(g)?g:void 0;let R;"line"===b?R=f?n.createElement(F,Object.assign({},e,{strokeColor:A,prefixCls:j,steps:f}),P):n.createElement(X,Object.assign({},e,{strokeColor:W,prefixCls:j,direction:w}),P):"circle"!==b&&"dashboard"!==b||(R=n.createElement(z,Object.assign({},e,{strokeColor:W,prefixCls:j,progressStatus:O}),P));const L=a()(j,`${j}-status-${O}`,`${j}-${("dashboard"===b?"circle":f&&"steps")||b}`,{[`${j}-inline-circle`]:"circle"===b&&D($,"circle")[0]<=20,[`${j}-show-info`]:y,[`${j}-${$}`]:"string"==typeof $,[`${j}-rtl`]:"rtl"===w},null==E?void 0:E.className,c,p,N);return I(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==E?void 0:E.style),x),className:L,role:"progressbar","aria-valuenow":C},(0,u.Z)(k,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}));var te=ee},95237:function(e,t,r){var n=r(27382);t.Z=n.Z}}]);