import { a as e, t } from "./rolldown-runtime-BEcgMyyN.js";
import { n, t as r } from "./dist-CAOIU8xq.js";
//#region node_modules/lodash/isObject.js
var i = /* @__PURE__ */ t(((e, t) => {
	function n(e) {
		var t = typeof e;
		return e != null && (t == "object" || t == "function");
	}
	t.exports = n;
})), a = /* @__PURE__ */ t(((e, t) => {
	n(), t.exports = typeof r == "object" && r && r.Object === Object && r;
})), o = /* @__PURE__ */ t(((e, t) => {
	var n = a(), r = typeof self == "object" && self && self.Object === Object && self;
	t.exports = n || r || Function("return this")();
})), s = /* @__PURE__ */ t(((e, t) => {
	var n = o();
	t.exports = function() {
		return n.Date.now();
	};
})), c = /* @__PURE__ */ t(((e, t) => {
	var n = /\s/;
	function r(e) {
		for (var t = e.length; t-- && n.test(e.charAt(t)););
		return t;
	}
	t.exports = r;
})), l = /* @__PURE__ */ t(((e, t) => {
	var n = c(), r = /^\s+/;
	function i(e) {
		return e && e.slice(0, n(e) + 1).replace(r, "");
	}
	t.exports = i;
})), u = /* @__PURE__ */ t(((e, t) => {
	t.exports = o().Symbol;
})), d = /* @__PURE__ */ t(((e, t) => {
	var n = u(), r = Object.prototype, i = r.hasOwnProperty, a = r.toString, o = n ? n.toStringTag : void 0;
	function s(e) {
		var t = i.call(e, o), n = e[o];
		try {
			e[o] = void 0;
			var r = !0;
		} catch {}
		var s = a.call(e);
		return r && (t ? e[o] = n : delete e[o]), s;
	}
	t.exports = s;
})), f = /* @__PURE__ */ t(((e, t) => {
	var n = Object.prototype.toString;
	function r(e) {
		return n.call(e);
	}
	t.exports = r;
})), p = /* @__PURE__ */ t(((e, t) => {
	var n = u(), r = d(), i = f(), a = "[object Null]", o = "[object Undefined]", s = n ? n.toStringTag : void 0;
	function c(e) {
		return e == null ? e === void 0 ? o : a : s && s in Object(e) ? r(e) : i(e);
	}
	t.exports = c;
})), m = /* @__PURE__ */ t(((e, t) => {
	function n(e) {
		return typeof e == "object" && !!e;
	}
	t.exports = n;
})), h = /* @__PURE__ */ t(((e, t) => {
	var n = p(), r = m(), i = "[object Symbol]";
	function a(e) {
		return typeof e == "symbol" || r(e) && n(e) == i;
	}
	t.exports = a;
})), g = /* @__PURE__ */ t(((e, t) => {
	var n = l(), r = i(), a = h(), o = NaN, s = /^[-+]0x[0-9a-f]+$/i, c = /^0b[01]+$/i, u = /^0o[0-7]+$/i, d = parseInt;
	function f(e) {
		if (typeof e == "number") return e;
		if (a(e)) return o;
		if (r(e)) {
			var t = typeof e.valueOf == "function" ? e.valueOf() : e;
			e = r(t) ? t + "" : t;
		}
		if (typeof e != "string") return e === 0 ? e : +e;
		e = n(e);
		var i = c.test(e);
		return i || u.test(e) ? d(e.slice(2), i ? 2 : 8) : s.test(e) ? o : +e;
	}
	t.exports = f;
})), _ = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
	var n = i(), r = s(), a = g(), o = "Expected a function", c = Math.max, l = Math.min;
	function u(e, t, i) {
		var s, u, d, f, p, m, h = 0, g = !1, _ = !1, v = !0;
		if (typeof e != "function") throw TypeError(o);
		t = a(t) || 0, n(i) && (g = !!i.leading, _ = "maxWait" in i, d = _ ? c(a(i.maxWait) || 0, t) : d, v = "trailing" in i ? !!i.trailing : v);
		function y(t) {
			var n = s, r = u;
			return s = u = void 0, h = t, f = e.apply(r, n), f;
		}
		function b(e) {
			return h = e, p = setTimeout(C, t), g ? y(e) : f;
		}
		function x(e) {
			var n = e - m, r = e - h, i = t - n;
			return _ ? l(i, d - r) : i;
		}
		function S(e) {
			var n = e - m, r = e - h;
			return m === void 0 || n >= t || n < 0 || _ && r >= d;
		}
		function C() {
			var e = r();
			if (S(e)) return w(e);
			p = setTimeout(C, x(e));
		}
		function w(e) {
			return p = void 0, v && s ? y(e) : (s = u = void 0, f);
		}
		function T() {
			p !== void 0 && clearTimeout(p), h = 0, s = m = u = p = void 0;
		}
		function E() {
			return p === void 0 ? f : w(r());
		}
		function D() {
			var e = r(), n = S(e);
			if (s = arguments, u = this, m = e, n) {
				if (p === void 0) return b(m);
				if (_) return clearTimeout(p), p = setTimeout(C, t), y(m);
			}
			return p === void 0 && (p = setTimeout(C, t)), f;
		}
		return D.cancel = T, D.flush = E, D;
	}
	t.exports = u;
})))(), 1), v = (e, t, n = 1e3) => (0, _.default)(e, n, t);
//#endregion
export { u as a, i as c, p as i, h as n, o, m as r, a as s, v as t };
