import e from"../../utils/getRuleSelector.mjs";import t from"../../utils/isStandardSyntaxRule.mjs";import{isString as r}from"../../utils/validateTypes.mjs";import s from"../../utils/parseSelector.mjs";import o from"../../utils/report.mjs";import l from"../../utils/ruleMessages.mjs";import i from"../../utils/validateOptions.mjs";const a="selector-attribute-operator-disallowed-list",u=l(a,{rejected:e=>`Unexpected operator "${e}"`}),m=l=>(m,n)=>{if(!i(n,a,{actual:l,possible:[r]}))return;const p=new Set([l].flat());m.walkRules(r=>{if(!t(r))return;const{selector:l}=r;l.includes("[")&&l.includes("=")&&s(e(r),n,r)?.walkAttributes(e=>{const{operator:t}=e;if(!t||!p.has(t))return;const s=e.sourceIndex+e.offsetOf("operator"),l=s+t.length;o({message:u.rejected,messageArgs:[t],node:r,index:s,endIndex:l,result:n,ruleName:a})})})};m.primaryOptionArray=!0,m.ruleName=a,m.messages=u,m.meta={url:"https://stylelint.io/user-guide/rules/selector-attribute-operator-disallowed-list"};export{m as default};