import{__module as s}from"../../../_virtual/index12.mjs";import{__require as e}from"../../postcss/lib/input.mjs";import{__require as r}from"./LessParser.mjs";import{__require as t}from"./LessStringifier.mjs";var o;function n(){return o||(o=1,function(s){const o=e(),n=r(),i=t();s.exports={parse(s,e){const r=new o(s,e),t=new n(r);return t.parse(),t.root.walk(s=>{const e=r.css.lastIndexOf(s.source.input.css);if(0===e)return;if(e+s.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");const t=e+s.source.start.offset,o=r.fromOffset(e+s.source.start.offset);if(s.source.start={offset:t,line:o.line,column:o.col},s.source.end){const t=e+s.source.end.offset,o=r.fromOffset(e+s.source.end.offset);s.source.end={offset:t,line:o.line,column:o.col}}}),t.root},stringify(s,e){new i(e).stringify(s)},nodeToString(e){let r="";return s.exports.stringify(e,s=>{r+=s}),r}}}(s)),s.exports}export{n as __require};