import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/namespace.mjs";import{__require as s}from"../../utils/ruleUrl.mjs";var a,t;function i(){if(t)return a;t=1;const{utils:i}=e,n=r(),l=s(),c=n("load-no-partial-leading-underscore"),o=i.ruleMessages(c,{expected:"Unexpected leading underscore in imported partial name"}),u={url:l(c)};function m(e){return(r,s)=>{if(!i.validateOptions(s,c,{actual:e}))return;const a=/\(\s*([^)]+?)\s*\)/;function t(e,r){const a=e.replace(/^\s*(["'])\s*/,"").replace(/\s*(["'])\s*$/,"");-1!==a.search(/(?:^|\/|\\)_[^/]+$/)&&"url("!==a.slice(0,4)&&".css"!==a.slice(-4)&&-1===a.search("//")&&-1===a.search(/[\s,)"']\w+$/)&&i.report({message:o.expected,node:r,result:s,ruleName:c,word:a})}r.walkAtRules(e=>{if("import"!==e.name&&"use"!==e.name&&"forward"!==e.name||e.params.split(",").forEach(r=>{t(r,e)}),"include"===e.name&&e.params.match(/load-css/)){const r=a.exec(e.params);if(r){t(r[0].split(",")[0].replace(/[()]/g,""),e)}}})}}return m.ruleName=c,m.messages=o,m.meta=u,a=m}export{i as __require};