import{__require as e}from"../../../../postcss-value-parser/lib/index.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as u}from"../../utils/declarationValueIndex.mjs";import{__require as t}from"../../utils/isNativeCssFunction.mjs";import{__require as s}from"../../utils/namespace.mjs";import{__require as a}from"../../utils/ruleUrl.mjs";var n,i;function o(){if(i)return n;i=1;const o=e(),{utils:l}=r,m=u(),d=t(),c=s(),p=a(),f=c("function-unquote-no-unquoted-strings-inside"),v=l.ruleMessages(f,{rejected:"Unquote function used with an already-unquoted string"}),q={url:p(f),fixable:!0};function _(e){return(r,u)=>{if(!l.validateOptions(u,f,{actual:e}))return;const t={};r.walkDecls(e=>{"$"===e.prop[0]&&o(e.value).walk(r=>{t[e.prop]=r.type})}),r.walkDecls(e=>{o(e.value).walk(r=>{if("function"===r.type&&!d(r.value)&&""!==r.value&&"unquote"===r.value&&(!r.nodes[0].quote&&"$"!==r.nodes[0].value[0]||"word"===t[r.nodes[0].value])){const t=()=>{e.value=e.value.replace(/unquote\((.*)\)/,"$1")},s=m(e)+r.sourceIndex;l.report({message:v.rejected,node:e,index:s,endIndex:s+r.value.length,result:u,ruleName:f,fix:t})}})})}}return _.ruleName=f,_.messages=v,_.meta=q,n=_}export{o as __require};