import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/namespace.mjs";import{__require as t}from"../../utils/ruleUrl.mjs";var s,n;function i(){if(n)return s;n=1;const{utils:i}=e,l=r(),u=t(),a=l("at-mixin-no-risky-nesting-selector"),o=i.ruleMessages(a,{rejected:"Unexpected nested parent selector in @mixin rule"}),m={url:u(a)};function c(e){return(r,t)=>{i.validateOptions(t,a,{actual:e})&&r.walkRules(e=>{e.selector?.includes("&")&&function(e){let r=e.parent;for(;r;){if("atrule"===r.type&&"mixin"===r.name)return!0;r=r.parent}return!1}(e)&&e.selector.split(",").some(e=>e.includes("&")&&/\s*[^\s]+\s*&/.test(e.replace(" ","")))&&e.parent.selector&&i.report({message:o.rejected,node:e,result:t,ruleName:a})})}}return c.ruleName=a,c.messages=o,c.meta=m,s=c}export{i as __require};