import n from "./container.js";
import o from "./parser.js";
import p from "./input.js";
let f = n, h = o, m = p;
function s(a, e) {
  let i = new m(a, e), t = new h(i);
  try {
    t.parse();
  } catch (r) {
    throw process.env.NODE_ENV !== "production" && r.name === "CssSyntaxError" && e && e.from && (/\.scss$/i.test(e.from) ? r.message += `
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.sass/i.test(e.from) ? r.message += `
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser` : /\.less$/i.test(e.from) && (r.message += `
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), r;
  }
  return t.root;
}
var u = s;
s.default = s;
f.registerParse(s);
export {
  u as default
};
//# sourceMappingURL=parse.js.map
