/*! https://mths.be/cssesc v3.0.0 by @mathias */
var q = {}, E = q.hasOwnProperty, S = function(t, e) {
  if (!t)
    return e;
  var l = {};
  for (var f in e)
    l[f] = E.call(t, f) ? t[f] : e[f];
  return l;
}, w = /[ -,\.\/:-@\[-\^`\{-~]/, b = /[ -,\.\/:-@\[\]\^`\{-~]/, D = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, x = function a(t, e) {
  e = S(e, a.options), e.quotes != "single" && e.quotes != "double" && (e.quotes = "single");
  for (var l = e.quotes == "double" ? '"' : "'", f = e.isIdentifier, u = t.charAt(0), s = "", g = 0, p = t.length; g < p; ) {
    var r = t.charAt(g++), i = r.charCodeAt(), v = void 0;
    if (i < 32 || i > 126) {
      if (i >= 55296 && i <= 56319 && g < p) {
        var F = t.charCodeAt(g++);
        (F & 64512) == 56320 ? i = ((i & 1023) << 10) + (F & 1023) + 65536 : g--;
      }
      v = "\\" + i.toString(16).toUpperCase() + " ";
    } else
      e.escapeEverything ? w.test(r) ? v = "\\" + r : v = "\\" + i.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(r) ? v = "\\" + i.toString(16).toUpperCase() + " " : r == "\\" || !f && (r == '"' && l == r || r == "'" && l == r) || f && b.test(r) ? v = "\\" + r : v = r;
    s += v;
  }
  return f && (/^-[-\d]/.test(s) ? s = "\\-" + s.slice(1) : /\d/.test(u) && (s = "\\3" + u + " " + s.slice(1))), s = s.replace(D, function(C, n, A) {
    return n && n.length % 2 ? C : (n || "") + A;
  }), !f && e.wrap ? l + s + l : s;
};
x.options = {
  escapeEverything: !1,
  isIdentifier: !1,
  quotes: "single",
  wrap: !1
};
x.version = "3.0.0";
var I = x;
export {
  I as default
};
//# sourceMappingURL=cssesc.js.map
