import{physicalUnits as r}from"./physical.mjs";const n=/\b\d+(\.\d+)?\s*(cqh|cqw|dvh|dvw|lvh|lvw|svh|svw|vh|vw)\b/g;function t(t){const c=t.match(n);if(!c)return!1;const s=(Array.isArray(c)?c:[c]).map(n=>r[n.replace(/[0-9](\.[0-9])?/g,"")]);return s}function c(n){const c=t(n);if(!c)return!1;return Object.values(r).some(r=>c.find(n=>n.includes(r)))}export{t as getValueUnit,c as isPhysicalUnit};