import{COLOR as e}from"../constants/accuracy.js";function r(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}function t(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e}function n(t,n,a,o){var c;t&&(c=n&&a?r(t.distance_to_plan,n,a):t.severity);switch(c){case"low":return e.green;case"moderate":return o?e.orange:e.yellow;case"high":return e.red;default:return e.white}}export{n as getColorBySeverity,r as getSeverity,t as purifyPlanName};
//# sourceMappingURL=accuracy.js.map
