import e from"../../../../../_virtual/_node_path.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as s}from"../../utils/validateTypes.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as a}from"../../utils/ruleUrl.mjs";var i,o;function l(){if(o)return i;o=1;const l=e,{utils:m}=r,{isRegExp:n,isString:u}=s(),c=t(),p=a(),d=c("at-import-partial-extension-disallowed-list"),_=m.ruleMessages(d,{rejected:e=>`Unexpected extension ".${e}" in imported partial name`}),f={url:p(d)};function j(e){const r=[].concat(e);return(s,t)=>{m.validateOptions(t,d,{actual:e,possible:[u,n]})&&s.walkAtRules("import",e=>{e.params.split(",").forEach(s=>{!function(e,s){const a=e.replace(/^\s*(["'])\s*/,"").replace(/\s*(["'])\s*$/,""),i=l.extname(a).slice(1),o=i.toLowerCase();i&&"url("!==a.slice(0,4)&&".css"!==a.slice(-4)&&-1===a.search("//")&&-1===a.search(/[\s,)"']\w+$/)&&r.forEach(e=>{(u(e)&&o===e||n(e)&&-1!==o.search(e))&&m.report({message:_.rejected(i),node:s,word:i,result:t,ruleName:d})})}(s,e)})})}}return j.ruleName=d,j.messages=_,j.meta=f,i=j}export{l as __require};