import r from"../../../../_virtual/index19.mjs";import{basicKeywords as e,animationShorthandKeywords as t}from"../reference/keywords.mjs";import n from"./getDimension.mjs";import o from"./isStandardSyntaxValue.mjs";import i from"./isVariable.mjs";function s(s){const u=[],a=r(s),{nodes:f}=a;if(1===f.length&&f[0]&&e.has(f[0].value.toLowerCase()))return[f[0]];let m=!1;return a.walk(r=>{if(m)return;if("function"===r.type)return!1;if("word"!==r.type)return;const e=r.value.toLowerCase();if(!o(e))return m=!0,void(u.length=0);if(i(e))return;if(t.has(e))return;const{unit:s}=n(r);s||""===s||u.push(r)}),u}export{s as default};