import { __commonJSMin } from "../../../_virtual/rolldown_runtime.js";
import { require_cjs as require_cjs$1 } from "../../inline-style-parser/cjs/index.js";
var require_cjs = /* @__PURE__ */ __commonJSMin(((e) => {
	var n = e && e.__importDefault || function(e) {
		return e && e.__esModule ? e : { default: e };
	};
	Object.defineProperty(e, "__esModule", { value: !0 }), e.default = i;
	var r = n(require_cjs$1());
	function i(e, t) {
		let n = null;
		if (!e || typeof e != "string") return n;
		let i = (0, r.default)(e), a = typeof t == "function";
		return i.forEach((e) => {
			if (e.type !== "declaration") return;
			let { property: r, value: i } = e;
			a ? t(r, i, e) : i && (n ||= {}, n[r] = i);
		}), n;
	}
}));
export default require_cjs();
export { require_cjs };
