import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/parseNestedPropRoot.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as o}from"../../utils/ruleUrl.mjs";var s,a;function p(){if(a)return s;a=1;const{utils:p}=e,i=r(),u=t(),n=o(),l=Object.prototype.hasOwnProperty,m=u("declaration-nested-properties-no-divided-groups"),c=p.ruleMessages(m,{expected:e=>`Expected all nested properties of "${e}" namespace to be in one nested group`}),d={url:n(m)};function f(e){return(r,t)=>{p.validateOptions(t,m,{actual:e})&&r.walk(e=>{if("rule"!==e.type&&"atrule"!==e.type)return;const r={};e.each(e=>{if("rule"!==e.type)return;const t=i(e.selector);if(t&&void 0!==t.propName){const o=t.propName.value;l.call(r,o)||(r[o]=[]),r[o].push(e)}}),Object.entries(r).forEach(([e,r])=>{1!==r.length&&r.forEach(r=>{p.report({message:c.expected(e),node:r,result:t,ruleName:m,word:e})})})})}}return f.ruleName=m,f.messages=c,f.meta=d,s=f}export{p as __require};