import e from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as r}from"../../utils/ruleUrl.mjs";var s,a;function i(){if(a)return s;a=1;const{utils:i}=e,l=t(),n=r(),u=l("double-slash-comment-whitespace-inside"),o=i.ruleMessages(u,{expected:"Expected a space after //",rejected:"Unexpected space after //"}),c={url:n(u),fixable:!0};function f(e){return(t,r)=>{i.validateOptions(r,u,{actual:e,possible:["always","never"]})&&t.walkComments(s=>{if(""===s.text.trim())return;if(!s.raws.inline&&!s.inline)return;let a;if("never"!==e||""===s.raws.left&&!/^\/+\s/.test(s.raws.text)){if("always"!==e||""!==s.raws.left||/^(\/)*(\s|$)/.test(s.raws.text))return;a=o.expected}else a=o.rejected;const l=s.raws.text.match(/^\/+/)?.[0]?.length||0;i.report({message:a,node:t,index:s.source.start.offset+2+l,endIndex:s.source.start.offset+2+l,result:r,ruleName:u,fix:()=>{"always"===e?s.raws.text=s.raws.text.replace(/^(\/*)/,"$1 "):(s.raws.left="",s.raws.text=s.raws.text.replace(/^(\/*)\s+/,"$1"))}})})}}return f.ruleName=u,f.messages=o,f.meta=c,s=f}export{i as __require};