import e from"../../utils/functionArgumentsSearch.mjs";import t from"../../utils/isStandardSyntaxUrl.mjs";import r from"../../utils/report.mjs";import s from"../../utils/ruleMessages.mjs";import l from"../../utils/validateOptions.mjs";const i="function-url-no-scheme-relative",m=s(i,{rejected:"Unexpected scheme-relative url"}),o=(s,l,o)=>{e(l.toLowerCase(),"url",(e,l)=>{const a=e.trim().replace(/^['"]+|['"]+$/g,"");t(a)&&a.startsWith("//")&&r({message:m.rejected,messageArgs:[],node:s,index:l,endIndex:l+e.length,result:o,ruleName:i})})},a=e=>(t,r)=>{l(r,i,{actual:e})&&(t.walkDecls(e=>{o(e,e.toString(),r)}),t.walkAtRules("import",e=>{o(e,e.toString(),r)}))};a.ruleName=i,a.messages=m,a.meta={url:"https://stylelint.io/user-guide/rules/function-url-no-scheme-relative"};export{a as default};