import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/namespace.mjs";import{__require as t}from"../../utils/ruleUrl.mjs";import{__require as a}from"../../../../postcss-value-parser/lib/index.mjs";var i,s;function n(){if(s)return i;s=1;const{utils:n}=e,u=r(),l=t(),o=a(),c=u("function-calculation-no-interpolation"),m=n.ruleMessages(c,{rejected:e=>`Unexpected interpolation in "${e}"`}),p={url:l(c)};function f(e){return(r,t)=>{if(!n.validateOptions(t,c,{actual:e}))return;const a=["calc","max","min","clamp"];r.walkDecls(e=>{o(e.value).walk(r=>{if("function"!==r.type||""===r.value)return;if(!a.includes(r.value))return;if("decl"===e.type&&e.prop.startsWith("--"))return;const i=r.nodes.find(({type:e,value:r})=>"word"===e&&/^#{.*|\s*}/.test(r));i&&n.report({message:m.rejected(r.value),node:e,word:i.value,result:t,ruleName:c})})})}}return f.ruleName=c,f.messages=m,f.meta=p,i=f}export{n as __require};