import{isString as e,isRegExp as t}from"../../utils/validateTypes.mjs";import s from"../../utils/functionArgumentsSearch.mjs";import r from"../../utils/getSchemeFromUrl.mjs";import m from"../../utils/isStandardSyntaxUrl.mjs";import i from"../../utils/matchesStringOrRegExp.mjs";import l from"../../utils/report.mjs";import o from"../../utils/ruleMessages.mjs";import a from"../../utils/validateOptions.mjs";const u="function-url-scheme-disallowed-list",n=o(u,{rejected:e=>`Unexpected URL scheme "${e}:"`}),p=o=>(p,c)=>{a(c,u,{actual:o,possible:[e,t]})&&p.walkDecls(e=>{s(e.toString().toLowerCase(),"url",(t,s)=>{const a=t.trim();if(!m(a))return;const p=a.replace(/^['"]+|['"]+$/g,""),d=r(p);null!==d&&i(d,o)&&l({message:n.rejected,messageArgs:[d],node:e,index:s,endIndex:s+t.length,result:c,ruleName:u})})})};p.primaryOptionArray=!0,p.ruleName=u,p.messages=n,p.meta={url:"https://stylelint.io/user-guide/rules/function-url-scheme-disallowed-list"};export{p as default};