//#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js
var e = "-ms-", t = "-moz-", n = "-webkit-", r = "comm", i = "rule", a = "decl", o = "@import", s = "@namespace", c = "@keyframes", l = "@layer", u = Math.abs, d = String.fromCharCode, f = Object.assign;
function p(e, t) {
	return v(e, 0) ^ 45 ? (((t << 2 ^ v(e, 0)) << 2 ^ v(e, 1)) << 2 ^ v(e, 2)) << 2 ^ v(e, 3) : 0;
}
function m(e) {
	return e.trim();
}
function h(e, t) {
	return (e = t.exec(e)) ? e[0] : e;
}
function g(e, t, n) {
	return e.replace(t, n);
}
function _(e, t, n) {
	return e.indexOf(t, n);
}
function v(e, t) {
	return e.charCodeAt(t) | 0;
}
function y(e, t, n) {
	return e.slice(t, n);
}
function b(e) {
	return e.length;
}
function x(e) {
	return e.length;
}
function S(e, t) {
	return t.push(e), e;
}
function C(e, t) {
	return e.map(t).join("");
}
function w(e, t) {
	return e.filter(function(e) {
		return !h(e, t);
	});
}
//#endregion
//#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
var T = 1, E = 1, D = 0, O = 0, k = 0, A = "";
function j(e, t, n, r, i, a, o, s) {
	return {
		value: e,
		root: t,
		parent: n,
		type: r,
		props: i,
		children: a,
		line: T,
		column: E,
		length: o,
		return: "",
		siblings: s
	};
}
function M(e, t) {
	return f(j("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function N(e) {
	for (; e.root;) e = M(e.root, { children: [e] });
	S(e, e.siblings);
}
function P() {
	return k;
}
function F() {
	return k = O > 0 ? v(A, --O) : 0, E--, k === 10 && (E = 1, T--), k;
}
function I() {
	return k = O < D ? v(A, O++) : 0, E++, k === 10 && (E = 1, T++), k;
}
function L() {
	return v(A, O);
}
function R() {
	return O;
}
function z(e, t) {
	return y(A, e, t);
}
function B(e) {
	switch (e) {
		case 0:
		case 9:
		case 10:
		case 13:
		case 32: return 5;
		case 33:
		case 43:
		case 44:
		case 47:
		case 62:
		case 64:
		case 126:
		case 59:
		case 123:
		case 125: return 4;
		case 58: return 3;
		case 34:
		case 39:
		case 40:
		case 91: return 2;
		case 41:
		case 93: return 1;
	}
	return 0;
}
function V(e) {
	return T = E = 1, D = b(A = e), O = 0, [];
}
function H(e) {
	return A = "", e;
}
function U(e) {
	return m(z(O - 1, K(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function W(e) {
	for (; (k = L()) && k < 33;) I();
	return B(e) > 2 || B(k) > 3 ? "" : " ";
}
function G(e, t) {
	for (; --t && I() && !(k < 48 || k > 102 || k > 57 && k < 65 || k > 70 && k < 97););
	return z(e, R() + (t < 6 && L() == 32 && I() == 32));
}
function K(e) {
	for (; I();) switch (k) {
		case e: return O;
		case 34:
		case 39:
			e !== 34 && e !== 39 && K(k);
			break;
		case 40:
			e === 41 && K(e);
			break;
		case 92:
			I();
			break;
	}
	return O;
}
function q(e, t) {
	for (; I() && e + k !== 57 && !(e + k === 84 && L() === 47););
	return "/*" + z(t, O - 1) + "*" + d(e === 47 ? e : I());
}
function J(e) {
	for (; !B(L());) I();
	return z(e, O);
}
//#endregion
//#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
function Y(e) {
	return H(X("", null, null, null, [""], e = V(e), 0, [0], e));
}
function X(e, t, n, r, i, a, o, s, c) {
	for (var l = 0, f = 0, p = o, m = 0, h = 0, x = 0, C = 1, w = 1, T = 1, E = 0, D = "", O = i, k = a, A = r, j = D; w;) switch (x = E, E = I()) {
		case 40: if (x != 108 && v(j, p - 1) == 58) {
			_(j += g(U(E), "&", "&\f"), "&\f", u(l ? s[l - 1] : 0)) != -1 && (T = -1);
			break;
		}
		case 34:
		case 39:
		case 91:
			j += U(E);
			break;
		case 9:
		case 10:
		case 13:
		case 32:
			j += W(x);
			break;
		case 92:
			j += G(R() - 1, 7);
			continue;
		case 47:
			switch (L()) {
				case 42:
				case 47:
					S(ee(q(I(), R()), t, n, c), c), (B(x || 1) == 5 || B(L() || 1) == 5) && b(j) && y(j, -1, void 0) !== " " && (j += " ");
					break;
				default: j += "/";
			}
			break;
		case 123 * C: s[l++] = b(j) * T;
		case 125 * C:
		case 59:
		case 0:
			switch (E) {
				case 0:
				case 125: w = 0;
				case 59 + f:
					T == -1 && (j = g(j, /\f/g, "")), h > 0 && (b(j) - p || C === 0 && x === 47) && S(h > 32 ? Q(j + ";", r, n, p - 1, c) : Q(g(j, " ", "") + ";", r, n, p - 2, c), c);
					break;
				case 59: j += ";";
				default: if (S(A = Z(j, t, n, l, f, i, s, D, O = [], k = [], p, a), a), E === 123) if (f === 0) X(j, t, A, A, O, a, p, s, k);
				else {
					switch (m) {
						case 99: if (v(j, 3) === 110) break;
						case 108: if (v(j, 2) === 97) break;
						default: f = 0;
						case 100:
						case 109:
						case 115:
					}
					f ? X(e, A, A, r && S(Z(e, A, A, 0, 0, i, s, D, i, O = [], p, k), k), i, k, p, s, r ? O : k) : X(j, A, A, A, [""], k, 0, s, k);
				}
			}
			l = f = h = 0, C = T = 1, D = j = "", p = o;
			break;
		case 58: p = 1 + b(j), h = x;
		default:
			if (C < 1) {
				if (E == 123) --C;
				else if (E == 125 && C++ == 0 && F() == 125) continue;
			}
			switch (j += d(E), E * C) {
				case 38:
					T = f > 0 ? 1 : (j += "\f", -1);
					break;
				case 44:
					s[l++] = (b(j) - 1) * T, T = 1;
					break;
				case 64:
					L() === 45 && (j += U(I())), m = L(), f = p = b(D = j += J(R())), E++;
					break;
				case 45: x === 45 && b(j) == 2 && (C = 0);
			}
	}
	return a;
}
function Z(e, t, n, r, a, o, s, c, l, d, f, p) {
	for (var h = a - 1, _ = a === 0 ? o : [""], v = x(_), b = 0, S = 0, C = 0; b < r; ++b) for (var w = 0, T = y(e, h + 1, h = u(S = s[b])), E = e; w < v; ++w) (E = m(S > 0 ? _[w] + " " + T : g(T, /&\f/g, _[w]))) && (l[C++] = E);
	return j(e, t, n, a === 0 ? i : c, l, d, f, p);
}
function ee(e, t, n, i) {
	return j(e, t, n, r, d(P()), y(e, 2, -2), 0, i);
}
function Q(e, t, n, r, i) {
	return j(e, t, n, a, y(e, 0, r), y(e, r + 1, -1), r, i);
}
//#endregion
//#region ../../node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
function $(e, t) {
	for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
	return n;
}
function te(e, t, n, u) {
	switch (e.type) {
		case l: if (e.children.length) break;
		case o:
		case s:
		case a: return e.return = e.return || e.value;
		case r: return "";
		case c: return e.return = e.value + "{" + $(e.children, u) + "}";
		case i: if (!b(e.value = e.props.join(","))) return "";
	}
	return b(n = $(e.children, u)) ? e.return = e.value + "{" + n + "}" : "";
}
//#endregion
export { n as S, a as _, N as a, e as b, C as c, _ as d, h as f, y as g, b as h, M as i, w as l, x as m, te as n, f as o, g as p, Y as r, v as s, $ as t, p as u, c as v, i as x, t as y };
