"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../node_modules/.pnpm/@ant-design_colors@7.2.1/node_modules/@ant-design/colors/es/presets.js"),i=require("../vc-util/devWarning.js");function l(e){return!e||e<0?0:e>100?100:e}function c({success:e,successPercent:n}){let r=n;return e&&"progress"in e&&(i.default(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=e.progress),e&&"percent"in e&&(r=e.percent),r}function d({percent:e,success:n,successPercent:r}){const t=l(c({success:n,successPercent:r}));return[t,l(l(e)-t)]}function g({success:e={},strokeColor:n}){const{strokeColor:r}=e;return[r||u.presetPrimaryColors.green,n||null]}const a=(e,n,r)=>{let t=-1,o=-1;if(n==="step"){const f=r.steps,s=r.strokeWidth;typeof e=="string"||typeof e>"u"?(t=e==="small"?2:14,o=s??8):typeof e=="number"?[t,o]=[e,e]:[t=14,o=8]=e,t*=f}else if(n==="line"){const f=r?.strokeWidth;typeof e=="string"||typeof e>"u"?o=f||(e==="small"?6:8):typeof e=="number"?[t,o]=[e,e]:[t=-1,o=8]=e}else(n==="circle"||n==="dashboard")&&(typeof e=="string"||typeof e>"u"?[t,o]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[t,o]=[e,e]:(t=e[0]??e[1]??120,o=e[0]??e[1]??120));return{width:t,height:o}};exports.getPercentage=d;exports.getSize=a;exports.getStrokeColor=g;exports.getSuccessPercent=c;exports.validProgress=l;
