import{atRuleRegexes as e}from"../../utils/regexes.mjs";import t from"../../utils/getRuleSelector.mjs";import s from"../../utils/getStrippedSelectorSource.mjs";import r from"../../utils/isStandardSyntaxRule.mjs";import o from"../../utils/parseSelector.mjs";import l from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import a from"../../utils/validateOptions.mjs";const i="keyframe-block-no-duplicate-selectors",u=m(i,{rejected:e=>`Unexpected duplicate "${e}"`}),d=m=>(d,c)=>{a(c,i,{actual:m})&&d.walkAtRules(e.keyframesName,e=>{const m=new Set;e.walkRules(e=>{r(e)&&o(t(e),c,e)?.each(t=>{const{selector:r,index:o,endIndex:a}=s(t),d=r.toLowerCase();m.has(d)?l({message:u.rejected,messageArgs:[r],node:e,result:c,ruleName:i,index:o,endIndex:a}):m.add(d)})})})};d.ruleName=i,d.messages=u,d.meta={url:"https://stylelint.io/user-guide/rules/keyframe-block-no-duplicate-selectors"};export{d as default};