evo-vue-carousel 1.0.15 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- import { Comment as e, Fragment as t, Static as n, Text as r, Transition as i, cloneVNode as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, getCurrentScope as h, h as g, hasInjectionContext as _, inject as v, isRef as y, isVNode as b, mergeProps as x, nextTick as ee, normalizeClass as S, onMounted as te, onScopeDispose as ne, onUnmounted as C, openBlock as w, provide as T, readonly as E, ref as D, renderList as re, renderSlot as O, shallowReadonly as ie, shallowRef as k, toValue as A, unref as j, useCssVars as M, useId as ae, useSlots as oe, watch as N, watchEffect as se, withCtx as P } from "vue";
2
- import './main.css';function ce(e) {
1
+ import { Comment, Fragment, Static, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, getCurrentScope, h, hasInjectionContext, inject, isRef, isVNode, mergeProps, nextTick, normalizeClass, onMounted, onScopeDispose, onUnmounted, openBlock, provide, readonly, ref, renderList, renderSlot, shallowReadonly, shallowRef, toValue, unref, useCssVars, useId, useSlots, watch, watchEffect, withCtx } from "vue";
2
+ import './main.css';function o$1(e) {
3
3
  return typeof e == "string" || e instanceof RegExp || Array.isArray(e);
4
4
  }
5
- function le(e) {
5
+ function f(e) {
6
6
  return Array.isArray(e) || (e = [e]), e.filter(Boolean);
7
7
  }
8
- function ue(e, t, n) {
9
- let r = le(t.only), i = le(t.except);
10
- return Object.entries(e).filter(([e]) => fe(e, r, i, n, t.filterNative)).reduce((e, [t, n]) => (e[t] = (e) => n(e), e), {});
8
+ function g$1(e, t, n) {
9
+ let r = f(t.only), a = f(t.except);
10
+ return Object.entries(e).filter(([e]) => h$1(e, r, a, n, t.filterNative)).reduce((e, [t, n]) => (e[t] = (e) => n(e), e), {});
11
11
  }
12
- function de(e) {
12
+ function i(e) {
13
13
  if (e instanceof RegExp) return e;
14
14
  {
15
15
  let t = e.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/^\*/, ".*").replace(/\*$/, ".*");
16
16
  return t.includes(".*") ? /* @__PURE__ */ RegExp(`^${t}$`) : e;
17
17
  }
18
18
  }
19
- function fe(e, t, n, r, i) {
20
- return t.length ? t.some((t) => (t = de(t), r.includes(e) && i !== !0 ? !0 : t instanceof RegExp ? t.test(e) : t === e)) : n.every((t) => (t = de(t), r.includes(e) && i !== !0 ? !0 : t instanceof RegExp ? t.test(e) === !1 : t !== e));
19
+ function h$1(e, t, n, r, a) {
20
+ return t.length ? t.some((t) => (t = i(t), r.includes(e) && a !== !0 ? !0 : t instanceof RegExp ? t.test(e) : t === e)) : n.every((t) => (t = i(t), r.includes(e) && a !== !0 ? !0 : t instanceof RegExp ? t.test(e) === !1 : t !== e));
21
21
  }
22
- function pe(e, t, n, r, i) {
23
- return g(e, r, ue(n, t, i));
22
+ function A(e, t, n, r, a) {
23
+ return h(e, r, g$1(n, t, a));
24
24
  }
25
- const me = p({
25
+ var S = defineComponent({
26
26
  name: "ForwardSlots",
27
27
  inheritAttrs: !1,
28
28
  props: {
@@ -38,7 +38,7 @@ const me = p({
38
38
  Array
39
39
  ],
40
40
  default: () => [],
41
- validator: ce
41
+ validator: o$1
42
42
  },
43
43
  except: {
44
44
  type: [
@@ -47,7 +47,7 @@ const me = p({
47
47
  Array
48
48
  ],
49
49
  default: () => [],
50
- validator: ce
50
+ validator: o$1
51
51
  },
52
52
  inheritAttrs: {
53
53
  type: Boolean,
@@ -59,1131 +59,451 @@ const me = p({
59
59
  }
60
60
  },
61
61
  setup(e, { slots: n, attrs: r }) {
62
- let i = (n) => {
63
- var a;
64
- if (n.type === t && Array.isArray(n.children) && (a = n.children) != null && a.length) return n.children.map(i);
65
- let o = Object.keys(n.children ?? {}), s = Object.assign({}, e.slots, n.children), c = e.inheritAttrs ? r : {};
66
- return pe(n, e, s, c, o);
62
+ let a = (n) => {
63
+ var s;
64
+ if (n.type === Fragment && Array.isArray(n.children) && (s = n.children) != null && s.length) return n.children.map(a);
65
+ let c = Object.keys(n.children ?? {});
66
+ return A(n, e, Object.assign({}, e.slots, n.children), e.inheritAttrs ? r : {}, c);
67
67
  };
68
- return () => (n.default && typeof n.default == "function" ? n.default() : []).map(i);
68
+ return () => (n.default && typeof n.default == "function" ? n.default() : []).map(a);
69
69
  }
70
70
  });
71
- function he(e) {
72
- return h() ? (ne(e), !0) : !1;
73
- }
74
- const ge = /* @__PURE__ */ new WeakMap(), _e = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
75
- var t;
76
- let n = e[0], r = (t = m())?.proxy;
77
- if (r == null && !_()) throw Error("injectLocal must be called in setup");
78
- return r && ge.has(r) && n in ge.get(r) ? ge.get(r)[n] : v(...e);
79
- }, ve = typeof window < "u" && typeof document < "u";
71
+ function tryOnScopeDispose(e) {
72
+ return getCurrentScope() ? (onScopeDispose(e), !0) : !1;
73
+ }
74
+ var localProvidedStateMap = /* @__PURE__ */ new WeakMap(), injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
75
+ let t = e[0], n = getCurrentInstance()?.proxy;
76
+ if (n == null && !hasInjectionContext()) throw Error("injectLocal must be called in setup");
77
+ return n && localProvidedStateMap.has(n) && t in localProvidedStateMap.get(n) ? localProvidedStateMap.get(n)[t] : inject(...e);
78
+ }, isClient = typeof window < "u" && typeof document < "u";
80
79
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
81
- const ye = (e) => e != null, be = Object.prototype.toString, xe = (e) => be.call(e) === "[object Object]", Se = () => {};
82
- function Ce(e) {
80
+ var notNullish = (e) => e != null, toString$1 = Object.prototype.toString, isObject$1 = (e) => toString$1.call(e) === "[object Object]", noop = () => {};
81
+ function pxValue(e) {
83
82
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
84
83
  }
85
- function we(e) {
84
+ function toArray$1(e) {
86
85
  return Array.isArray(e) ? e : [e];
87
86
  }
88
- function Te(e) {
89
- let t = /* @__PURE__ */ Object.create(null);
90
- return (n) => {
91
- let r = t[n];
92
- return r || (t[n] = e(n));
93
- };
87
+ function getLifeCycleTarget(e) {
88
+ return e || getCurrentInstance();
94
89
  }
95
- const Ee = /\B([A-Z])/g;
96
- Te((e) => e.replace(Ee, "-$1").toLowerCase());
97
- const De = /-(\w)/g;
98
- Te((e) => e.replace(De, (e, t) => t ? t.toUpperCase() : ""));
99
- function Oe(e) {
100
- return e || m();
101
- }
102
- function ke(e, t = !0, n) {
103
- let r = Oe(n);
104
- r ? te(e, n) : t ? e() : ee(e);
105
- }
106
- function Ae(e, t = 1e3, n = {}) {
107
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = null, o = k(!1);
108
- function s() {
109
- a &&= (clearInterval(a), null);
110
- }
111
- function c() {
112
- o.value = !1, s();
113
- }
90
+ function tryOnMounted(e, t = !0, n) {
91
+ getLifeCycleTarget(n) ? onMounted(e, n) : t ? e() : nextTick(e);
92
+ }
93
+ function useIntervalFn(e, t = 1e3, n = {}) {
94
+ let { immediate: r = !0, immediateCallback: a = !1 } = n, s = null, c = shallowRef(!1);
114
95
  function l() {
115
- let n = A(t);
116
- n <= 0 || (o.value = !0, i && e(), s(), o.value && (a = setInterval(e, n)));
96
+ s &&= (clearInterval(s), null);
117
97
  }
118
- if (r && ve && l(), y(t) || typeof t == "function") {
119
- let e = N(t, () => {
120
- o.value && ve && l();
121
- });
122
- he(e);
98
+ function u() {
99
+ c.value = !1, l();
100
+ }
101
+ function d() {
102
+ let n = toValue(t);
103
+ n <= 0 || (c.value = !0, a && e(), l(), c.value && (s = setInterval(e, n)));
123
104
  }
124
- return he(c), {
125
- isActive: ie(o),
126
- pause: c,
127
- resume: l
105
+ return r && isClient && d(), (isRef(t) || typeof t == "function") && tryOnScopeDispose(watch(t, () => {
106
+ c.value && isClient && d();
107
+ })), tryOnScopeDispose(u), {
108
+ isActive: shallowReadonly(c),
109
+ pause: u,
110
+ resume: d
128
111
  };
129
112
  }
130
- function je(e, t, n) {
131
- return N(e, t, {
113
+ function watchImmediate(e, t, n) {
114
+ return watch(e, t, {
132
115
  ...n,
133
116
  immediate: !0
134
117
  });
135
118
  }
136
- const F = ve ? window : void 0;
137
- ve && window.document, ve && window.navigator, ve && window.location;
138
- function I(e) {
139
- var t;
140
- let n = A(e);
141
- return (t = n?.$el) ?? n;
119
+ var defaultWindow = isClient ? window : void 0;
120
+ isClient && window.document, isClient && window.navigator, isClient && window.location;
121
+ function unrefElement(e) {
122
+ let t = toValue(e);
123
+ return t?.$el ?? t;
142
124
  }
143
- function Me(...e) {
125
+ function useEventListener(...e) {
144
126
  let t = [], n = () => {
145
127
  t.forEach((e) => e()), t.length = 0;
146
- }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = o(() => {
147
- let t = we(A(e[0])).filter((e) => e != null);
128
+ }, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = computed(() => {
129
+ let t = toArray$1(toValue(e[0])).filter((e) => e != null);
148
130
  return t.every((e) => typeof e != "string") ? t : void 0;
149
- }), a = je(() => {
150
- var t, n;
151
- return [
152
- (n = (t = i.value)?.map((e) => I(e))) ?? [F].filter((e) => e != null),
153
- we(A(i.value ? e[1] : e[0])),
154
- we(j(i.value ? e[2] : e[1])),
155
- A(i.value ? e[3] : e[2])
156
- ];
157
- }, ([e, i, a, o]) => {
158
- if (n(), !e?.length || !i?.length || !a?.length) return;
159
- let s = xe(o) ? { ...o } : o;
160
- t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
161
- }, { flush: "post" }), s = () => {
162
- a(), n();
131
+ }), s = watchImmediate(() => [
132
+ a.value?.map((e) => unrefElement(e)) ?? [defaultWindow].filter((e) => e != null),
133
+ toArray$1(toValue(a.value ? e[1] : e[0])),
134
+ toArray$1(unref(a.value ? e[2] : e[1])),
135
+ toValue(a.value ? e[3] : e[2])
136
+ ], ([e, a, s, c]) => {
137
+ if (n(), !e?.length || !a?.length || !s?.length) return;
138
+ let l = isObject$1(c) ? { ...c } : c;
139
+ t.push(...e.flatMap((e) => a.flatMap((t) => s.map((n) => r(e, t, n, l)))));
140
+ }, { flush: "post" });
141
+ return tryOnScopeDispose(n), () => {
142
+ s(), n();
163
143
  };
164
- return he(n), s;
165
144
  }
166
145
  /* @__NO_SIDE_EFFECTS__ */
167
- function Ne() {
168
- let e = k(!1), t = m();
169
- return t && te(() => {
146
+ function useMounted() {
147
+ let e = shallowRef(!1), t = getCurrentInstance();
148
+ return t && onMounted(() => {
170
149
  e.value = !0;
171
150
  }, t), e;
172
151
  }
173
152
  /* @__NO_SIDE_EFFECTS__ */
174
- function Pe(e) {
175
- let t = /* @__PURE__ */ Ne();
176
- return o(() => (t.value, !!e()));
177
- }
178
- function Fe(e, t, n = {}) {
179
- let { window: r = F,...i } = n, a, s = /* @__PURE__ */ Pe(() => r && "MutationObserver" in r), c = () => {
180
- a &&= (a.disconnect(), void 0);
181
- }, l = o(() => {
182
- let t = A(e), n = we(t).map(I).filter(ye);
183
- return new Set(n);
184
- }), u = N(l, (e) => {
185
- c(), s.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
153
+ function useSupported(e) {
154
+ let t = /* @__PURE__ */ useMounted();
155
+ return computed(() => (t.value, !!e()));
156
+ }
157
+ function useMutationObserver(e, t, n = {}) {
158
+ let { window: r = defaultWindow,...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "MutationObserver" in r), u = () => {
159
+ s &&= (s.disconnect(), void 0);
160
+ }, d = watch(computed(() => {
161
+ let t = toArray$1(toValue(e)).map(unrefElement).filter(notNullish);
162
+ return new Set(t);
163
+ }), (e) => {
164
+ u(), l.value && e.size && (s = new MutationObserver(t), e.forEach((e) => s.observe(e, a)));
186
165
  }, {
187
166
  immediate: !0,
188
167
  flush: "post"
189
- }), d = () => a?.takeRecords(), f = () => {
190
- u(), c();
168
+ }), p = () => s?.takeRecords(), m = () => {
169
+ d(), u();
191
170
  };
192
- return he(f), {
193
- isSupported: s,
194
- stop: f,
195
- takeRecords: d
171
+ return tryOnScopeDispose(m), {
172
+ isSupported: l,
173
+ stop: m,
174
+ takeRecords: p
196
175
  };
197
176
  }
198
- function Ie(e, t, n = {}) {
199
- let { window: r = F, document: i = r?.document, flush: a = "sync" } = n;
200
- if (!r || !i) return Se;
201
- let o, s = (e) => {
202
- o?.(), o = e;
203
- }, c = se(() => {
204
- let n = I(e);
177
+ function onElementRemoval(e, t, n = {}) {
178
+ let { window: r = defaultWindow, document: a = r?.document, flush: s = "sync" } = n;
179
+ if (!r || !a) return noop;
180
+ let c, l = (e) => {
181
+ c?.(), c = e;
182
+ }, u = watchEffect(() => {
183
+ let n = unrefElement(e);
205
184
  if (n) {
206
- let { stop: e } = Fe(i, (e) => {
207
- let r = e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n));
208
- r && t(e);
185
+ let { stop: e } = useMutationObserver(a, (e) => {
186
+ e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
209
187
  }, {
210
188
  window: r,
211
189
  childList: !0,
212
190
  subtree: !0
213
191
  });
214
- s(e);
192
+ l(e);
215
193
  }
216
- }, { flush: a }), l = () => {
217
- c(), s();
194
+ }, { flush: s }), d = () => {
195
+ u(), l();
218
196
  };
219
- return he(l), l;
197
+ return tryOnScopeDispose(d), d;
220
198
  }
221
- const Le = Symbol("vueuse-ssr-width");
199
+ var ssrWidthSymbol = Symbol("vueuse-ssr-width");
222
200
  /* @__NO_SIDE_EFFECTS__ */
223
- function Re() {
224
- let e = _() ? /* @__PURE__ */ _e(Le, null) : null;
201
+ function useSSRWidth() {
202
+ let e = hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
225
203
  return typeof e == "number" ? e : void 0;
226
204
  }
227
- function ze(e, t = {}) {
228
- let { window: n = F, ssrWidth: r = /* @__PURE__ */ Re() } = t, i = /* @__PURE__ */ Pe(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = k(typeof r == "number"), s = k(), c = k(!1), l = (e) => {
229
- c.value = e.matches;
230
- };
231
- return se(() => {
232
- if (a.value) {
233
- a.value = !i.value;
234
- let t = A(e).split(",");
235
- c.value = t.some((e) => {
236
- let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
237
- return n && a && (a = r >= Ce(n[1])), i && a && (a = r <= Ce(i[1])), t ? !a : a;
205
+ function useMediaQuery(e, t = {}) {
206
+ let { window: n = defaultWindow, ssrWidth: r = /* @__PURE__ */ useSSRWidth() } = t, a = /* @__PURE__ */ useSupported(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = shallowRef(typeof r == "number"), l = shallowRef(), u = shallowRef(!1);
207
+ return watchEffect(() => {
208
+ if (s.value) {
209
+ s.value = !a.value, u.value = toValue(e).split(",").some((e) => {
210
+ let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), s = !!(n || a);
211
+ return n && s && (s = r >= pxValue(n[1])), a && s && (s = r <= pxValue(a[1])), t ? !s : s;
238
212
  });
239
213
  return;
240
214
  }
241
- i.value && (s.value = n.matchMedia(A(e)), c.value = s.value.matches);
242
- }), Me(s, "change", l, { passive: !0 }), o(() => c.value);
243
- }
244
- function Be(e, t, n = {}) {
245
- let { window: r = F,...i } = n, a, s = /* @__PURE__ */ Pe(() => r && "ResizeObserver" in r), c = () => {
246
- a &&= (a.disconnect(), void 0);
247
- }, l = o(() => {
248
- let t = A(e);
249
- return Array.isArray(t) ? t.map((e) => I(e)) : [I(t)];
250
- }), u = N(l, (e) => {
251
- if (c(), s.value && r) {
252
- a = new ResizeObserver(t);
253
- for (let t of e) t && a.observe(t, i);
215
+ a.value && (l.value = n.matchMedia(toValue(e)), u.value = l.value.matches);
216
+ }), useEventListener(l, "change", (e) => {
217
+ u.value = e.matches;
218
+ }, { passive: !0 }), computed(() => u.value);
219
+ }
220
+ function useResizeObserver(e, t, n = {}) {
221
+ let { window: r = defaultWindow,...a } = n, s, l = /* @__PURE__ */ useSupported(() => r && "ResizeObserver" in r), u = () => {
222
+ s &&= (s.disconnect(), void 0);
223
+ }, d = watch(computed(() => {
224
+ let t = toValue(e);
225
+ return Array.isArray(t) ? t.map((e) => unrefElement(e)) : [unrefElement(t)];
226
+ }), (e) => {
227
+ if (u(), l.value && r) {
228
+ s = new ResizeObserver(t);
229
+ for (let t of e) t && s.observe(t, a);
254
230
  }
255
231
  }, {
256
232
  immediate: !0,
257
233
  flush: "post"
258
- }), d = () => {
259
- c(), u();
234
+ }), p = () => {
235
+ u(), d();
260
236
  };
261
- return he(d), {
262
- isSupported: s,
263
- stop: d
237
+ return tryOnScopeDispose(p), {
238
+ isSupported: l,
239
+ stop: p
264
240
  };
265
241
  }
266
- function Ve(e, t = {}) {
267
- let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: i = !1, window: a = F } = t, s = k(!1), c, l = (e) => {
242
+ function useElementHover(e, t = {}) {
243
+ let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: a = !1, window: s = defaultWindow } = t, l = shallowRef(!1), u, d = (e) => {
268
244
  let t = e ? n : r;
269
- c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
245
+ u &&= (clearTimeout(u), void 0), t ? u = setTimeout(() => l.value = e, t) : l.value = e;
270
246
  };
271
- return a ? (Me(e, "mouseenter", () => l(!0), { passive: !0 }), Me(e, "mouseleave", () => l(!1), { passive: !0 }), i && Ie(o(() => I(e)), () => l(!1)), s) : s;
247
+ return s ? (useEventListener(e, "mouseenter", () => d(!0), { passive: !0 }), useEventListener(e, "mouseleave", () => d(!1), { passive: !0 }), a && onElementRemoval(computed(() => unrefElement(e)), () => d(!1)), l) : l;
272
248
  }
273
- function He(e, t = {
249
+ function useElementSize(e, t = {
274
250
  width: 0,
275
251
  height: 0
276
252
  }, n = {}) {
277
- let { window: r = F, box: i = "content-box" } = n, a = o(() => {
278
- var t, n;
279
- return (n = (t = I(e))?.namespaceURI)?.includes("svg");
280
- }), s = k(t.width), c = k(t.height), { stop: l } = Be(e, ([t]) => {
281
- let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
282
- if (r && a.value) {
283
- let t = I(e);
253
+ let { window: r = defaultWindow, box: a = "content-box" } = n, s = computed(() => (unrefElement(e)?.namespaceURI)?.includes("svg")), l = shallowRef(t.width), u = shallowRef(t.height), { stop: d } = useResizeObserver(e, ([t]) => {
254
+ let n = a === "border-box" ? t.borderBoxSize : a === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
255
+ if (r && s.value) {
256
+ let t = unrefElement(e);
284
257
  if (t) {
285
258
  let e = t.getBoundingClientRect();
286
- s.value = e.width, c.value = e.height;
259
+ l.value = e.width, u.value = e.height;
287
260
  }
288
261
  } else if (n) {
289
- let e = we(n);
290
- s.value = e.reduce((e, { inlineSize: t }) => e + t, 0), c.value = e.reduce((e, { blockSize: t }) => e + t, 0);
291
- } else s.value = t.contentRect.width, c.value = t.contentRect.height;
262
+ let e = toArray$1(n);
263
+ l.value = e.reduce((e, { inlineSize: t }) => e + t, 0), u.value = e.reduce((e, { blockSize: t }) => e + t, 0);
264
+ } else l.value = t.contentRect.width, u.value = t.contentRect.height;
292
265
  }, n);
293
- ke(() => {
294
- let n = I(e);
295
- n && (s.value = "offsetWidth" in n ? n.offsetWidth : t.width, c.value = "offsetHeight" in n ? n.offsetHeight : t.height);
266
+ tryOnMounted(() => {
267
+ let n = unrefElement(e);
268
+ n && (l.value = "offsetWidth" in n ? n.offsetWidth : t.width, u.value = "offsetHeight" in n ? n.offsetHeight : t.height);
296
269
  });
297
- let u = N(() => I(e), (e) => {
298
- s.value = e ? t.width : 0, c.value = e ? t.height : 0;
270
+ let p = watch(() => unrefElement(e), (e) => {
271
+ l.value = e ? t.width : 0, u.value = e ? t.height : 0;
299
272
  });
300
- function d() {
301
- l(), u();
273
+ function m() {
274
+ d(), p();
302
275
  }
303
276
  return {
304
- width: s,
305
- height: c,
306
- stop: d
277
+ width: l,
278
+ height: u,
279
+ stop: m
307
280
  };
308
281
  }
309
282
  /* @__NO_SIDE_EFFECTS__ */
310
- function Ue(e = {}) {
311
- let { window: t = F, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: i = !0, includeScrollbar: a = !0, type: o = "inner" } = e, s = k(n), c = k(r), l = () => {
312
- if (t) if (o === "outer") s.value = t.outerWidth, c.value = t.outerHeight;
313
- else if (o === "visual" && t.visualViewport) {
283
+ function useWindowSize(e = {}) {
284
+ let { window: t = defaultWindow, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: a = !0, includeScrollbar: s = !0, type: c = "inner" } = e, l = shallowRef(n), u = shallowRef(r), d = () => {
285
+ if (t) if (c === "outer") l.value = t.outerWidth, u.value = t.outerHeight;
286
+ else if (c === "visual" && t.visualViewport) {
314
287
  let { width: e, height: n, scale: r } = t.visualViewport;
315
- s.value = Math.round(e * r), c.value = Math.round(n * r);
316
- } else a ? (s.value = t.innerWidth, c.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, c.value = t.document.documentElement.clientHeight);
288
+ l.value = Math.round(e * r), u.value = Math.round(n * r);
289
+ } else s ? (l.value = t.innerWidth, u.value = t.innerHeight) : (l.value = t.document.documentElement.clientWidth, u.value = t.document.documentElement.clientHeight);
317
290
  };
318
- l(), ke(l);
319
- let u = { passive: !0 };
320
- if (Me("resize", l, u), t && o === "visual" && t.visualViewport && Me(t.visualViewport, "resize", l, u), i) {
321
- let e = ze("(orientation: portrait)");
322
- N(e, () => l());
323
- }
324
- return {
325
- width: s,
326
- height: c
291
+ d(), tryOnMounted(d);
292
+ let p = { passive: !0 };
293
+ return useEventListener("resize", d, p), t && c === "visual" && t.visualViewport && useEventListener(t.visualViewport, "resize", d, p), a && watch(useMediaQuery("(orientation: portrait)"), () => d()), {
294
+ width: l,
295
+ height: u
327
296
  };
328
297
  }
329
- var We = typeof global == "object" && global && global.Object === Object && global, Ge = typeof self == "object" && self && self.Object === Object && self, L = We || Ge || Function("return this")(), R = L.Symbol, Ke = Object.prototype, qe = Ke.hasOwnProperty, Je = Ke.toString, Ye = R ? R.toStringTag : void 0;
330
- function Xe(e) {
331
- var t = qe.call(e, Ye), n = e[Ye];
332
- try {
333
- e[Ye] = void 0;
334
- var r = !0;
335
- } catch {}
336
- var i = Je.call(e);
337
- return r && (t ? e[Ye] = n : delete e[Ye]), i;
338
- }
339
- var Ze = Object.prototype, Qe = Ze.toString;
340
- function $e(e) {
341
- return Qe.call(e);
342
- }
343
- var et = "[object Null]", tt = "[object Undefined]", nt = R ? R.toStringTag : void 0;
344
- function z(e) {
345
- return e == null ? e === void 0 ? tt : et : nt && nt in Object(e) ? Xe(e) : $e(e);
346
- }
347
- function B(e) {
348
- return typeof e == "object" && !!e;
349
- }
350
- var rt = "[object Symbol]";
351
- function it(e) {
352
- return typeof e == "symbol" || B(e) && z(e) == rt;
353
- }
354
- function at(e, t) {
355
- for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
356
- return i;
357
- }
358
- var V = Array.isArray, ot = Infinity, st = R ? R.prototype : void 0, ct = st ? st.toString : void 0;
359
- function lt(e) {
360
- if (typeof e == "string") return e;
361
- if (V(e)) return at(e, lt) + "";
362
- if (it(e)) return ct ? ct.call(e) : "";
363
- var t = e + "";
364
- return t == "0" && 1 / e == -ot ? "-0" : t;
365
- }
366
- var ut = /\s/;
367
- function dt(e) {
368
- for (var t = e.length; t-- && ut.test(e.charAt(t)););
369
- return t;
370
- }
371
- var ft = /^\s+/;
372
- function pt(e) {
373
- return e && e.slice(0, dt(e) + 1).replace(ft, "");
374
- }
375
- function H(e) {
376
- var t = typeof e;
377
- return e != null && (t == "object" || t == "function");
378
- }
379
- var mt = NaN, ht = /^[-+]0x[0-9a-f]+$/i, gt = /^0b[01]+$/i, _t = /^0o[0-7]+$/i, vt = parseInt;
380
- function yt(e) {
381
- if (typeof e == "number") return e;
382
- if (it(e)) return mt;
383
- if (H(e)) {
384
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
385
- e = H(t) ? t + "" : t;
386
- }
387
- if (typeof e != "string") return e === 0 ? e : +e;
388
- e = pt(e);
389
- var n = gt.test(e);
390
- return n || _t.test(e) ? vt(e.slice(2), n ? 2 : 8) : ht.test(e) ? mt : +e;
391
- }
392
- var bt = Infinity, xt = 17976931348623157e292;
393
- function St(e) {
394
- if (!e) return e === 0 ? e : 0;
395
- if (e = yt(e), e === bt || e === -bt) {
396
- var t = e < 0 ? -1 : 1;
397
- return t * xt;
298
+ function chunk(e, t) {
299
+ if (!Number.isInteger(t) || t <= 0) throw Error("Size must be an integer greater than zero.");
300
+ let n = Math.ceil(e.length / t), r = Array(n);
301
+ for (let a = 0; a < n; a++) {
302
+ let n = a * t, s = n + t;
303
+ r[a] = e.slice(n, s);
398
304
  }
399
- return e === e ? e : 0;
400
- }
401
- function Ct(e) {
402
- var t = St(e), n = t % 1;
403
- return t === t ? n ? t - n : t : 0;
404
- }
405
- function wt(e) {
406
- return e;
407
- }
408
- var Tt = "[object AsyncFunction]", Et = "[object Function]", Dt = "[object GeneratorFunction]", Ot = "[object Proxy]";
409
- function kt(e) {
410
- if (!H(e)) return !1;
411
- var t = z(e);
412
- return t == Et || t == Dt || t == Tt || t == Ot;
413
- }
414
- var At = L["__core-js_shared__"], jt = function() {
415
- var e = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
416
- return e ? "Symbol(src)_1." + e : "";
417
- }();
418
- function Mt(e) {
419
- return !!jt && jt in e;
420
- }
421
- var Nt = Function.prototype, Pt = Nt.toString;
422
- function U(e) {
423
- if (e != null) {
424
- try {
425
- return Pt.call(e);
426
- } catch {}
427
- try {
428
- return e + "";
429
- } catch {}
430
- }
431
- return "";
432
- }
433
- var Ft = /[\\^$.*+?()[\]{}|]/g, It = /^\[object .+?Constructor\]$/, Lt = Function.prototype, Rt = Object.prototype, zt = Lt.toString, Bt = Rt.hasOwnProperty, Vt = RegExp("^" + zt.call(Bt).replace(Ft, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
434
- function Ht(e) {
435
- if (!H(e) || Mt(e)) return !1;
436
- var t = kt(e) ? Vt : It;
437
- return t.test(U(e));
438
- }
439
- function Ut(e, t) {
440
- return e?.[t];
441
- }
442
- function W(e, t) {
443
- var n = Ut(e, t);
444
- return Ht(n) ? n : void 0;
445
- }
446
- var Wt = W(L, "WeakMap");
447
- function Gt(e, t, n) {
448
- switch (n.length) {
449
- case 0: return e.call(t);
450
- case 1: return e.call(t, n[0]);
451
- case 2: return e.call(t, n[0], n[1]);
452
- case 3: return e.call(t, n[0], n[1], n[2]);
453
- }
454
- return e.apply(t, n);
455
- }
456
- function Kt(e, t) {
457
- var n = -1, r = e.length;
458
- for (t ||= Array(r); ++n < r;) t[n] = e[n];
459
- return t;
460
- }
461
- var qt = 800, Jt = 16, Yt = Date.now;
462
- function Xt(e) {
463
- var t = 0, n = 0;
464
- return function() {
465
- var r = Yt(), i = Jt - (r - n);
466
- if (n = r, i > 0) {
467
- if (++t >= qt) return arguments[0];
468
- } else t = 0;
469
- return e.apply(void 0, arguments);
470
- };
471
- }
472
- function Zt(e) {
473
- return function() {
474
- return e;
475
- };
476
- }
477
- var Qt = function() {
478
- try {
479
- var e = W(Object, "defineProperty");
480
- return e({}, "", {}), e;
481
- } catch {}
482
- }(), $t = Qt ? function(e, t) {
483
- return Qt(e, "toString", {
484
- configurable: !0,
485
- enumerable: !1,
486
- value: Zt(t),
487
- writable: !0
488
- });
489
- } : wt, en = Xt($t);
490
- function tn(e, t, n, r) {
491
- for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
492
- return -1;
493
- }
494
- var nn = 9007199254740991, rn = /^(?:0|[1-9]\d*)$/;
495
- function an(e, t) {
496
- var n = typeof e;
497
- return t ??= nn, !!t && (n == "number" || n != "symbol" && rn.test(e)) && e > -1 && e % 1 == 0 && e < t;
498
- }
499
- function on(e, t, n) {
500
- t == "__proto__" && Qt ? Qt(e, t, {
501
- configurable: !0,
502
- enumerable: !0,
503
- value: n,
504
- writable: !0
505
- }) : e[t] = n;
506
- }
507
- function sn(e, t) {
508
- return e === t || e !== e && t !== t;
509
- }
510
- var cn = Object.prototype, ln = cn.hasOwnProperty;
511
- function un(e, t, n) {
512
- var r = e[t];
513
- (!(ln.call(e, t) && sn(r, n)) || n === void 0 && !(t in e)) && on(e, t, n);
514
- }
515
- var dn = Math.max;
516
- function fn(e, t, n) {
517
- return t = dn(t === void 0 ? e.length - 1 : t, 0), function() {
518
- for (var r = arguments, i = -1, a = dn(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
519
- i = -1;
520
- for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
521
- return s[t] = n(o), Gt(e, this, s);
522
- };
523
- }
524
- var pn = 9007199254740991;
525
- function mn(e) {
526
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= pn;
527
- }
528
- function hn(e) {
529
- return e != null && mn(e.length) && !kt(e);
530
- }
531
- function gn(e, t, n) {
532
- if (!H(n)) return !1;
533
- var r = typeof t;
534
- return (r == "number" ? hn(n) && an(t, n.length) : r == "string" && t in n) ? sn(n[t], e) : !1;
535
- }
536
- var _n = Object.prototype;
537
- function vn(e) {
538
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || _n;
539
- return e === n;
540
- }
541
- function yn(e, t) {
542
- for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
543
305
  return r;
544
306
  }
545
- var bn = "[object Arguments]";
546
- function xn(e) {
547
- return B(e) && z(e) == bn;
548
- }
549
- var Sn = Object.prototype, Cn = Sn.hasOwnProperty, wn = Sn.propertyIsEnumerable, Tn = xn(function() {
550
- return arguments;
551
- }()) ? xn : function(e) {
552
- return B(e) && Cn.call(e, "callee") && !wn.call(e, "callee");
553
- };
554
- function En() {
555
- return !1;
556
- }
557
- var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, On = Dn && typeof module == "object" && module && !module.nodeType && module, kn = On && On.exports === Dn, An = kn ? L.Buffer : void 0, jn = An ? An.isBuffer : void 0, Mn = jn || En, Nn = "[object Arguments]", Pn = "[object Array]", Fn = "[object Boolean]", In = "[object Date]", Ln = "[object Error]", Rn = "[object Function]", zn = "[object Map]", Bn = "[object Number]", Vn = "[object Object]", Hn = "[object RegExp]", Un = "[object Set]", Wn = "[object String]", Gn = "[object WeakMap]", Kn = "[object ArrayBuffer]", qn = "[object DataView]", Jn = "[object Float32Array]", Yn = "[object Float64Array]", Xn = "[object Int8Array]", Zn = "[object Int16Array]", Qn = "[object Int32Array]", $n = "[object Uint8Array]", er = "[object Uint8ClampedArray]", tr = "[object Uint16Array]", nr = "[object Uint32Array]", G = {};
558
- G[Jn] = G[Yn] = G[Xn] = G[Zn] = G[Qn] = G[$n] = G[er] = G[tr] = G[nr] = !0, G[Nn] = G[Pn] = G[Kn] = G[Fn] = G[qn] = G[In] = G[Ln] = G[Rn] = G[zn] = G[Bn] = G[Vn] = G[Hn] = G[Un] = G[Wn] = G[Gn] = !1;
559
- function rr(e) {
560
- return B(e) && mn(e.length) && !!G[z(e)];
561
- }
562
- function ir(e) {
563
- return function(t) {
564
- return e(t);
307
+ function flatten(e, t = 1) {
308
+ let n = [], r = Math.floor(t), a = (e, t) => {
309
+ for (let s = 0; s < e.length; s++) {
310
+ let c = e[s];
311
+ Array.isArray(c) && t < r ? a(c, t + 1) : n.push(c);
312
+ }
565
313
  };
566
- }
567
- var ar = typeof exports == "object" && exports && !exports.nodeType && exports, or = ar && typeof module == "object" && module && !module.nodeType && module, sr = or && or.exports === ar, cr = sr && We.process, lr = function() {
568
- try {
569
- var e = or && or.require && or.require("util").types;
570
- return e || cr && cr.binding && cr.binding("util");
571
- } catch {}
572
- }(), ur = lr && lr.isTypedArray, dr = ur ? ir(ur) : rr, fr = Object.prototype, pr = fr.hasOwnProperty;
573
- function mr(e, t) {
574
- var n = V(e), r = !n && Tn(e), i = !n && !r && Mn(e), a = !n && !r && !i && dr(e), o = n || r || i || a, s = o ? yn(e.length, String) : [], c = s.length;
575
- for (var l in e) (t || pr.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || an(l, c))) && s.push(l);
576
- return s;
577
- }
578
- function hr(e, t) {
579
- return function(n) {
580
- return e(t(n));
314
+ return a(e, 0), n;
315
+ }
316
+ function isSymbol(e) {
317
+ return typeof e == "symbol" || e instanceof Symbol;
318
+ }
319
+ function toNumber(e) {
320
+ return isSymbol(e) ? NaN : Number(e);
321
+ }
322
+ function toFinite(e) {
323
+ return e ? (e = toNumber(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
324
+ }
325
+ function toInteger(e) {
326
+ let t = toFinite(e), n = t % 1;
327
+ return n ? t - n : t;
328
+ }
329
+ function debounce(e, t, { signal: n, edges: r } = {}) {
330
+ let a, s = null, c = r != null && r.includes("leading"), l = r == null || r.includes("trailing"), u = () => {
331
+ s !== null && (e.apply(a, s), a = void 0, s = null);
332
+ }, d = () => {
333
+ l && u(), b();
334
+ }, p = null, m = () => {
335
+ p != null && clearTimeout(p), p = setTimeout(() => {
336
+ p = null, d();
337
+ }, t);
338
+ }, _ = () => {
339
+ p !== null && (clearTimeout(p), p = null);
340
+ }, b = () => {
341
+ _(), a = void 0, s = null;
342
+ }, x = () => {
343
+ u();
344
+ }, C = function(...e) {
345
+ if (n?.aborted) return;
346
+ a = this, s = e;
347
+ let t = p == null;
348
+ m(), c && t && u();
581
349
  };
350
+ return C.schedule = m, C.cancel = b, C.flush = x, n?.addEventListener("abort", b, { once: !0 }), C;
582
351
  }
583
- var gr = hr(Object.keys, Object), _r = Object.prototype, vr = _r.hasOwnProperty;
584
- function yr(e) {
585
- if (!vn(e)) return gr(e);
586
- var t = [];
587
- for (var n in Object(e)) vr.call(e, n) && n != "constructor" && t.push(n);
588
- return t;
589
- }
590
- function br(e) {
591
- return hn(e) ? mr(e) : yr(e);
592
- }
593
- var xr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Sr = /^\w*$/;
594
- function Cr(e, t) {
595
- if (V(e)) return !1;
596
- var n = typeof e;
597
- return n == "number" || n == "symbol" || n == "boolean" || e == null || it(e) ? !0 : Sr.test(e) || !xr.test(e) || t != null && e in Object(t);
598
- }
599
- var wr = W(Object, "create");
600
- function Tr() {
601
- this.__data__ = wr ? wr(null) : {}, this.size = 0;
602
- }
603
- function Er(e) {
604
- var t = this.has(e) && delete this.__data__[e];
605
- return this.size -= t ? 1 : 0, t;
606
- }
607
- var Dr = "__lodash_hash_undefined__", Or = Object.prototype, kr = Or.hasOwnProperty;
608
- function Ar(e) {
609
- var t = this.__data__;
610
- if (wr) {
611
- var n = t[e];
612
- return n === Dr ? void 0 : n;
613
- }
614
- return kr.call(t, e) ? t[e] : void 0;
615
- }
616
- var jr = Object.prototype, Mr = jr.hasOwnProperty;
617
- function Nr(e) {
618
- var t = this.__data__;
619
- return wr ? t[e] !== void 0 : Mr.call(t, e);
620
- }
621
- var Pr = "__lodash_hash_undefined__";
622
- function Fr(e, t) {
623
- var n = this.__data__;
624
- return this.size += this.has(e) ? 0 : 1, n[e] = wr && t === void 0 ? Pr : t, this;
625
- }
626
- function Ir(e) {
627
- var t = -1, n = e == null ? 0 : e.length;
628
- for (this.clear(); ++t < n;) {
629
- var r = e[t];
630
- this.set(r[0], r[1]);
631
- }
632
- }
633
- Ir.prototype.clear = Tr, Ir.prototype.delete = Er, Ir.prototype.get = Ar, Ir.prototype.has = Nr, Ir.prototype.set = Fr;
634
- function Lr() {
635
- this.__data__ = [], this.size = 0;
636
- }
637
- function Rr(e, t) {
638
- for (var n = e.length; n--;) if (sn(e[n][0], t)) return n;
639
- return -1;
640
- }
641
- var zr = Array.prototype, Br = zr.splice;
642
- function Vr(e) {
643
- var t = this.__data__, n = Rr(t, e);
644
- if (n < 0) return !1;
645
- var r = t.length - 1;
646
- return n == r ? t.pop() : Br.call(t, n, 1), --this.size, !0;
647
- }
648
- function Hr(e) {
649
- var t = this.__data__, n = Rr(t, e);
650
- return n < 0 ? void 0 : t[n][1];
651
- }
652
- function Ur(e) {
653
- return Rr(this.__data__, e) > -1;
654
- }
655
- function Wr(e, t) {
656
- var n = this.__data__, r = Rr(n, e);
657
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
658
- }
659
- function K(e) {
660
- var t = -1, n = e == null ? 0 : e.length;
661
- for (this.clear(); ++t < n;) {
662
- var r = e[t];
663
- this.set(r[0], r[1]);
664
- }
665
- }
666
- K.prototype.clear = Lr, K.prototype.delete = Vr, K.prototype.get = Hr, K.prototype.has = Ur, K.prototype.set = Wr;
667
- var Gr = W(L, "Map");
668
- function Kr() {
669
- this.size = 0, this.__data__ = {
670
- hash: new Ir(),
671
- map: new (Gr || K)(),
672
- string: new Ir()
673
- };
674
- }
675
- function qr(e) {
676
- var t = typeof e;
677
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
678
- }
679
- function Jr(e, t) {
680
- var n = e.__data__;
681
- return qr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
682
- }
683
- function Yr(e) {
684
- var t = Jr(this, e).delete(e);
685
- return this.size -= t ? 1 : 0, t;
686
- }
687
- function Xr(e) {
688
- return Jr(this, e).get(e);
689
- }
690
- function Zr(e) {
691
- return Jr(this, e).has(e);
692
- }
693
- function Qr(e, t) {
694
- var n = Jr(this, e), r = n.size;
695
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
696
- }
697
- function q(e) {
698
- var t = -1, n = e == null ? 0 : e.length;
699
- for (this.clear(); ++t < n;) {
700
- var r = e[t];
701
- this.set(r[0], r[1]);
702
- }
703
- }
704
- q.prototype.clear = Kr, q.prototype.delete = Yr, q.prototype.get = Xr, q.prototype.has = Zr, q.prototype.set = Qr;
705
- var $r = "Expected a function";
706
- function ei(e, t) {
707
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError($r);
708
- var n = function() {
709
- var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
710
- if (a.has(i)) return a.get(i);
711
- var o = e.apply(this, r);
712
- return n.cache = a.set(i, o) || a, o;
713
- };
714
- return n.cache = new (ei.Cache || q)(), n;
715
- }
716
- ei.Cache = q;
717
- var ti = 500;
718
- function ni(e) {
719
- var t = ei(e, function(e) {
720
- return n.size === ti && n.clear(), e;
721
- }), n = t.cache;
722
- return t;
723
- }
724
- var ri = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ii = /\\(\\)?/g, ai = ni(function(e) {
725
- var t = [];
726
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(ri, function(e, n, r, i) {
727
- t.push(r ? i.replace(ii, "$1") : n || e);
728
- }), t;
729
- });
730
- function oi(e) {
731
- return e == null ? "" : lt(e);
732
- }
733
- function si(e, t) {
734
- return V(e) ? e : Cr(e, t) ? [e] : ai(oi(e));
352
+ function identity(e) {
353
+ return e;
735
354
  }
736
- var ci = Infinity;
737
- function li(e) {
738
- if (typeof e == "string" || it(e)) return e;
739
- var t = e + "";
740
- return t == "0" && 1 / e == -ci ? "-0" : t;
355
+ function isPrimitive(e) {
356
+ return e == null || typeof e != "object" && typeof e != "function";
741
357
  }
742
- function ui(e, t) {
743
- t = si(t, e);
744
- for (var n = 0, r = t.length; e != null && n < r;) e = e[li(t[n++])];
745
- return n && n == r ? e : void 0;
358
+ function isTypedArray(e) {
359
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
746
360
  }
747
- function di(e, t, n) {
748
- var r = e == null ? void 0 : ui(e, t);
749
- return r === void 0 ? n : r;
361
+ function getSymbols(e) {
362
+ return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
750
363
  }
751
- function fi(e, t) {
752
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
753
- return e;
364
+ function getTag(e) {
365
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
754
366
  }
755
- var pi = R ? R.isConcatSpreadable : void 0;
756
- function mi(e) {
757
- return V(e) || Tn(e) || !!(pi && e && e[pi]);
367
+ var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
368
+ function cloneDeepWith$1(e, t) {
369
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), t);
758
370
  }
759
- function hi(e, t, n, r, i) {
760
- var a = -1, o = e.length;
761
- for (n ||= mi, i ||= []; ++a < o;) {
762
- var s = e[a];
763
- t > 0 && n(s) ? t > 1 ? hi(s, t - 1, n, r, i) : fi(i, s) : r || (i[i.length] = s);
371
+ function cloneDeepWithImpl(e, t, n, r = /* @__PURE__ */ new Map(), a = void 0) {
372
+ let s = a?.(e, t, n, r);
373
+ if (s !== void 0) return s;
374
+ if (isPrimitive(e)) return e;
375
+ if (r.has(e)) return r.get(e);
376
+ if (Array.isArray(e)) {
377
+ let t = Array(e.length);
378
+ r.set(e, t);
379
+ for (let s = 0; s < e.length; s++) t[s] = cloneDeepWithImpl(e[s], s, n, r, a);
380
+ return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
764
381
  }
765
- return i;
766
- }
767
- function gi(e) {
768
- var t = e == null ? 0 : e.length;
769
- return t ? hi(e, 1) : [];
770
- }
771
- function _i(e) {
772
- return en(fn(e, void 0, gi), e + "");
773
- }
774
- function vi(e, t, n) {
775
- var r = -1, i = e.length;
776
- t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
777
- for (var a = Array(i); ++r < i;) a[r] = e[r + t];
778
- return a;
779
- }
780
- var yi = Math.ceil, bi = Math.max;
781
- function xi(e, t, n) {
782
- t = (n ? gn(e, t, n) : t === void 0) ? 1 : bi(Ct(t), 0);
783
- var r = e == null ? 0 : e.length;
784
- if (!r || t < 1) return [];
785
- for (var i = 0, a = 0, o = Array(yi(r / t)); i < r;) o[a++] = vi(e, i, i += t);
786
- return o;
787
- }
788
- function Si() {
789
- this.__data__ = new K(), this.size = 0;
790
- }
791
- function Ci(e) {
792
- var t = this.__data__, n = t.delete(e);
793
- return this.size = t.size, n;
794
- }
795
- function wi(e) {
796
- return this.__data__.get(e);
797
- }
798
- function Ti(e) {
799
- return this.__data__.has(e);
800
- }
801
- var Ei = 200;
802
- function Di(e, t) {
803
- var n = this.__data__;
804
- if (n instanceof K) {
805
- var r = n.__data__;
806
- if (!Gr || r.length < Ei - 1) return r.push([e, t]), this.size = ++n.size, this;
807
- n = this.__data__ = new q(r);
382
+ if (e instanceof Date) return new Date(e.getTime());
383
+ if (e instanceof RegExp) {
384
+ let t = new RegExp(e.source, e.flags);
385
+ return t.lastIndex = e.lastIndex, t;
808
386
  }
809
- return n.set(e, t), this.size = n.size, this;
810
- }
811
- function J(e) {
812
- var t = this.__data__ = new K(e);
813
- this.size = t.size;
814
- }
815
- J.prototype.clear = Si, J.prototype.delete = Ci, J.prototype.get = wi, J.prototype.has = Ti, J.prototype.set = Di;
816
- function Oi(e, t) {
817
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
818
- var o = e[n];
819
- t(o, n, e) && (a[i++] = o);
387
+ if (e instanceof Map) {
388
+ let t = /* @__PURE__ */ new Map();
389
+ r.set(e, t);
390
+ for (let [s, c] of e) t.set(s, cloneDeepWithImpl(c, s, n, r, a));
391
+ return t;
820
392
  }
821
- return a;
822
- }
823
- function ki() {
824
- return [];
825
- }
826
- var Ai = Object.prototype, ji = Ai.propertyIsEnumerable, Mi = Object.getOwnPropertySymbols, Ni = Mi ? function(e) {
827
- return e == null ? [] : (e = Object(e), Oi(Mi(e), function(t) {
828
- return ji.call(e, t);
829
- }));
830
- } : ki;
831
- function Pi(e, t, n) {
832
- var r = t(e);
833
- return V(e) ? r : fi(r, n(e));
834
- }
835
- function Fi(e) {
836
- return Pi(e, br, Ni);
837
- }
838
- var Ii = W(L, "DataView"), Li = W(L, "Promise"), Ri = W(L, "Set"), zi = "[object Map]", Bi = "[object Object]", Vi = "[object Promise]", Hi = "[object Set]", Ui = "[object WeakMap]", Wi = "[object DataView]", Gi = U(Ii), Ki = U(Gr), qi = U(Li), Ji = U(Ri), Yi = U(Wt), Xi = z;
839
- (Ii && Xi(new Ii(/* @__PURE__ */ new ArrayBuffer(1))) != Wi || Gr && Xi(new Gr()) != zi || Li && Xi(Li.resolve()) != Vi || Ri && Xi(new Ri()) != Hi || Wt && Xi(new Wt()) != Ui) && (Xi = function(e) {
840
- var t = z(e), n = t == Bi ? e.constructor : void 0, r = n ? U(n) : "";
841
- if (r) switch (r) {
842
- case Gi: return Wi;
843
- case Ki: return zi;
844
- case qi: return Vi;
845
- case Ji: return Hi;
846
- case Yi: return Ui;
393
+ if (e instanceof Set) {
394
+ let t = /* @__PURE__ */ new Set();
395
+ r.set(e, t);
396
+ for (let s of e) t.add(cloneDeepWithImpl(s, void 0, n, r, a));
397
+ return t;
847
398
  }
848
- return t;
849
- });
850
- var Zi = Xi, Qi = L.Uint8Array;
851
- function $i() {
852
- var e = arguments.length;
853
- if (!e) return [];
854
- for (var t = Array(e - 1), n = arguments[0], r = e; r--;) t[r - 1] = arguments[r];
855
- return fi(V(n) ? Kt(n) : [n], hi(t, 1));
856
- }
857
- var ea = "__lodash_hash_undefined__";
858
- function ta(e) {
859
- return this.__data__.set(e, ea), this;
860
- }
861
- function na(e) {
862
- return this.__data__.has(e);
863
- }
864
- function ra(e) {
865
- var t = -1, n = e == null ? 0 : e.length;
866
- for (this.__data__ = new q(); ++t < n;) this.add(e[t]);
867
- }
868
- ra.prototype.add = ra.prototype.push = ta, ra.prototype.has = na;
869
- function ia(e, t) {
870
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
871
- return !1;
872
- }
873
- function aa(e, t) {
874
- return e.has(t);
875
- }
876
- var oa = 1, sa = 2;
877
- function ca(e, t, n, r, i, a) {
878
- var o = n & oa, s = e.length, c = t.length;
879
- if (s != c && !(o && c > s)) return !1;
880
- var l = a.get(e), u = a.get(t);
881
- if (l && u) return l == t && u == e;
882
- var d = -1, f = !0, p = n & sa ? new ra() : void 0;
883
- for (a.set(e, t), a.set(t, e); ++d < s;) {
884
- var m = e[d], h = t[d];
885
- if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
886
- if (g !== void 0) {
887
- if (g) continue;
888
- f = !1;
889
- break;
890
- }
891
- if (p) {
892
- if (!ia(t, function(e, t) {
893
- if (!aa(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
894
- })) {
895
- f = !1;
896
- break;
897
- }
898
- } else if (!(m === h || i(m, h, n, r, a))) {
899
- f = !1;
900
- break;
901
- }
399
+ if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
400
+ if (isTypedArray(e)) {
401
+ let t = new (Object.getPrototypeOf(e)).constructor(e.length);
402
+ r.set(e, t);
403
+ for (let s = 0; s < e.length; s++) t[s] = cloneDeepWithImpl(e[s], s, n, r, a);
404
+ return t;
902
405
  }
903
- return a.delete(e), a.delete(t), f;
904
- }
905
- function la(e) {
906
- var t = -1, n = Array(e.size);
907
- return e.forEach(function(e, r) {
908
- n[++t] = [r, e];
909
- }), n;
910
- }
911
- function ua(e) {
912
- var t = -1, n = Array(e.size);
913
- return e.forEach(function(e) {
914
- n[++t] = e;
915
- }), n;
916
- }
917
- var da = 1, fa = 2, pa = "[object Boolean]", ma = "[object Date]", ha = "[object Error]", ga = "[object Map]", _a = "[object Number]", va = "[object RegExp]", ya = "[object Set]", ba = "[object String]", xa = "[object Symbol]", Sa = "[object ArrayBuffer]", Ca = "[object DataView]", wa = R ? R.prototype : void 0, Ta = wa ? wa.valueOf : void 0;
918
- function Ea(e, t, n, r, i, a, o) {
919
- switch (n) {
920
- case Ca:
921
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
922
- e = e.buffer, t = t.buffer;
923
- case Sa: return !(e.byteLength != t.byteLength || !a(new Qi(e), new Qi(t)));
924
- case pa:
925
- case ma:
926
- case _a: return sn(+e, +t);
927
- case ha: return e.name == t.name && e.message == t.message;
928
- case va:
929
- case ba: return e == t + "";
930
- case ga: var s = la;
931
- case ya:
932
- var c = r & da;
933
- if (s ||= ua, e.size != t.size && !c) return !1;
934
- var l = o.get(e);
935
- if (l) return l == t;
936
- r |= fa, o.set(e, t);
937
- var u = ca(s(e), s(t), r, i, a, o);
938
- return o.delete(e), u;
939
- case xa: if (Ta) return Ta.call(e) == Ta.call(t);
406
+ if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
407
+ if (e instanceof DataView) {
408
+ let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
409
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
940
410
  }
941
- return !1;
942
- }
943
- var Da = 1, Oa = Object.prototype, ka = Oa.hasOwnProperty;
944
- function Aa(e, t, n, r, i, a) {
945
- var o = n & Da, s = Fi(e), c = s.length, l = Fi(t), u = l.length;
946
- if (c != u && !o) return !1;
947
- for (var d = c; d--;) {
948
- var f = s[d];
949
- if (!(o ? f in t : ka.call(t, f))) return !1;
411
+ if (typeof File < "u" && e instanceof File) {
412
+ let t = new File([e], e.name, { type: e.type });
413
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
950
414
  }
951
- var p = a.get(e), m = a.get(t);
952
- if (p && m) return p == t && m == e;
953
- var h = !0;
954
- a.set(e, t), a.set(t, e);
955
- for (var g = o; ++d < c;) {
956
- f = s[d];
957
- var _ = e[f], v = t[f];
958
- if (r) var y = o ? r(v, _, f, t, e, a) : r(_, v, f, e, t, a);
959
- if (!(y === void 0 ? _ === v || i(_, v, n, r, a) : y)) {
960
- h = !1;
961
- break;
962
- }
963
- g ||= f == "constructor";
415
+ if (typeof Blob < "u" && e instanceof Blob) {
416
+ let t = new Blob([e], { type: e.type });
417
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
964
418
  }
965
- if (h && !g) {
966
- var b = e.constructor, x = t.constructor;
967
- b != x && "constructor" in e && "constructor" in t && !(typeof b == "function" && b instanceof b && typeof x == "function" && x instanceof x) && (h = !1);
419
+ if (e instanceof Error) {
420
+ let t = new e.constructor();
421
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, copyProperties(t, e, n, r, a), t;
968
422
  }
969
- return a.delete(e), a.delete(t), h;
970
- }
971
- var ja = 1, Ma = "[object Arguments]", Na = "[object Array]", Pa = "[object Object]", Fa = Object.prototype, Ia = Fa.hasOwnProperty;
972
- function La(e, t, n, r, i, a) {
973
- var o = V(e), s = V(t), c = o ? Na : Zi(e), l = s ? Na : Zi(t);
974
- c = c == Ma ? Pa : c, l = l == Ma ? Pa : l;
975
- var u = c == Pa, d = l == Pa, f = c == l;
976
- if (f && Mn(e)) {
977
- if (!Mn(t)) return !1;
978
- o = !0, u = !1;
423
+ if (e instanceof Boolean) {
424
+ let t = new Boolean(e.valueOf());
425
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
979
426
  }
980
- if (f && !u) return a ||= new J(), o || dr(e) ? ca(e, t, n, r, i, a) : Ea(e, t, c, n, r, i, a);
981
- if (!(n & ja)) {
982
- var p = u && Ia.call(e, "__wrapped__"), m = d && Ia.call(t, "__wrapped__");
983
- if (p || m) {
984
- var h = p ? e.value() : e, g = m ? t.value() : t;
985
- return a ||= new J(), i(h, g, n, r, a);
986
- }
427
+ if (e instanceof Number) {
428
+ let t = new Number(e.valueOf());
429
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
987
430
  }
988
- return f ? (a ||= new J(), Aa(e, t, n, r, i, a)) : !1;
989
- }
990
- function Ra(e, t, n, r, i) {
991
- return e === t ? !0 : e == null || t == null || !B(e) && !B(t) ? e !== e && t !== t : La(e, t, n, r, Ra, i);
992
- }
993
- var za = 1, Ba = 2;
994
- function Va(e, t, n, r) {
995
- var i = n.length, a = i, o = !r;
996
- if (e == null) return !a;
997
- for (e = Object(e); i--;) {
998
- var s = n[i];
999
- if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
431
+ if (e instanceof String) {
432
+ let t = new String(e.valueOf());
433
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1000
434
  }
1001
- for (; ++i < a;) {
1002
- s = n[i];
1003
- var c = s[0], l = e[c], u = s[1];
1004
- if (o && s[2]) {
1005
- if (l === void 0 && !(c in e)) return !1;
1006
- } else {
1007
- var d = new J();
1008
- if (r) var f = r(l, u, c, e, t, d);
1009
- if (!(f === void 0 ? Ra(u, l, za | Ba, r, d) : f)) return !1;
1010
- }
435
+ if (typeof e == "object" && isCloneableObject(e)) {
436
+ let t = Object.create(Object.getPrototypeOf(e));
437
+ return r.set(e, t), copyProperties(t, e, n, r, a), t;
1011
438
  }
1012
- return !0;
439
+ return e;
1013
440
  }
1014
- function Ha(e) {
1015
- return e === e && !H(e);
1016
- }
1017
- function Ua(e) {
1018
- for (var t = br(e), n = t.length; n--;) {
1019
- var r = t[n], i = e[r];
1020
- t[n] = [
1021
- r,
1022
- i,
1023
- Ha(i)
1024
- ];
441
+ function copyProperties(e, t, n = e, r, a) {
442
+ let s = [...Object.keys(t), ...getSymbols(t)];
443
+ for (let c = 0; c < s.length; c++) {
444
+ let l = s[c], u = Object.getOwnPropertyDescriptor(e, l);
445
+ (u == null || u.writable) && (e[l] = cloneDeepWithImpl(t[l], l, n, r, a));
1025
446
  }
1026
- return t;
1027
- }
1028
- function Wa(e, t) {
1029
- return function(n) {
1030
- return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
1031
- };
1032
447
  }
1033
- function Ga(e) {
1034
- var t = Ua(e);
1035
- return t.length == 1 && t[0][2] ? Wa(t[0][0], t[0][1]) : function(n) {
1036
- return n === e || Va(n, e, t);
1037
- };
1038
- }
1039
- function Ka(e, t) {
1040
- return e != null && t in Object(e);
1041
- }
1042
- function qa(e, t, n) {
1043
- t = si(t, e);
1044
- for (var r = -1, i = t.length, a = !1; ++r < i;) {
1045
- var o = li(t[r]);
1046
- if (!(a = e != null && n(e, o))) break;
1047
- e = e[o];
448
+ function isCloneableObject(e) {
449
+ switch (getTag(e)) {
450
+ case argumentsTag:
451
+ case arrayTag:
452
+ case arrayBufferTag:
453
+ case dataViewTag:
454
+ case booleanTag:
455
+ case dateTag:
456
+ case float32ArrayTag:
457
+ case float64ArrayTag:
458
+ case int8ArrayTag:
459
+ case int16ArrayTag:
460
+ case int32ArrayTag:
461
+ case mapTag:
462
+ case numberTag:
463
+ case objectTag:
464
+ case regexpTag:
465
+ case setTag:
466
+ case stringTag:
467
+ case symbolTag:
468
+ case uint8ArrayTag:
469
+ case uint8ClampedArrayTag:
470
+ case uint16ArrayTag:
471
+ case uint32ArrayTag: return !0;
472
+ default: return !1;
1048
473
  }
1049
- return a || ++r != i ? a : (i = e == null ? 0 : e.length, !!i && mn(i) && an(o, i) && (V(e) || Tn(e)));
1050
- }
1051
- function Ja(e, t) {
1052
- return e != null && qa(e, t, Ka);
1053
- }
1054
- var Ya = 1, Xa = 2;
1055
- function Za(e, t) {
1056
- return Cr(e) && Ha(t) ? Wa(li(e), t) : function(n) {
1057
- var r = di(n, e);
1058
- return r === void 0 && r === t ? Ja(n, e) : Ra(t, r, Ya | Xa);
1059
- };
1060
- }
1061
- function Qa(e) {
1062
- return function(t) {
1063
- return t?.[e];
1064
- };
1065
- }
1066
- function $a(e) {
1067
- return function(t) {
1068
- return ui(t, e);
1069
- };
1070
- }
1071
- function eo(e) {
1072
- return Cr(e) ? Qa(li(e)) : $a(e);
1073
474
  }
1074
- function to(e) {
1075
- return typeof e == "function" ? e : e == null ? wt : typeof e == "object" ? V(e) ? Za(e[0], e[1]) : Ga(e) : eo(e);
475
+ function cloneDeep$1(e) {
476
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
1076
477
  }
1077
- function no(e) {
1078
- return function(t, n, r) {
1079
- for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
1080
- var c = o[e ? s : ++i];
1081
- if (n(a[c], c, a) === !1) break;
1082
- }
1083
- return t;
1084
- };
1085
- }
1086
- var ro = no();
1087
- function io(e, t) {
1088
- return e && ro(e, t, br);
1089
- }
1090
- var ao = function() {
1091
- return L.Date.now();
1092
- }, oo = "Expected a function", so = Math.max, co = Math.min;
1093
- function lo(e, t, n) {
1094
- var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
1095
- if (typeof e != "function") throw TypeError(oo);
1096
- t = yt(t) || 0, H(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? so(yt(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
1097
- function p(t) {
1098
- var n = r, a = i;
1099
- return r = i = void 0, l = t, o = e.apply(a, n), o;
1100
- }
1101
- function m(e) {
1102
- return l = e, s = setTimeout(_, t), u ? p(e) : o;
1103
- }
1104
- function h(e) {
1105
- var n = e - c, r = e - l, i = t - n;
1106
- return d ? co(i, a - r) : i;
1107
- }
1108
- function g(e) {
1109
- var n = e - c, r = e - l;
1110
- return c === void 0 || n >= t || n < 0 || d && r >= a;
1111
- }
1112
- function _() {
1113
- var e = ao();
1114
- if (g(e)) return v(e);
1115
- s = setTimeout(_, h(e));
1116
- }
1117
- function v(e) {
1118
- return s = void 0, f && r ? p(e) : (r = i = void 0, o);
478
+ function mapValues(e, t) {
479
+ let n = {}, r = Object.keys(e);
480
+ for (let a = 0; a < r.length; a++) {
481
+ let s = r[a], c = e[s];
482
+ n[s] = t(c, s, e);
1119
483
  }
1120
- function y() {
1121
- s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
1122
- }
1123
- function b() {
1124
- return s === void 0 ? o : v(ao());
1125
- }
1126
- function x() {
1127
- var e = ao(), n = g(e);
1128
- if (r = arguments, i = this, c = e, n) {
1129
- if (s === void 0) return m(c);
1130
- if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
1131
- }
1132
- return s === void 0 && (s = setTimeout(_, t)), o;
1133
- }
1134
- return x.cancel = y, x.flush = b, x;
1135
- }
1136
- var uo = Math.max, fo = Math.min;
1137
- function po(e, t, n) {
1138
- var r = e == null ? 0 : e.length;
1139
- if (!r) return -1;
1140
- var i = r - 1;
1141
- return n !== void 0 && (i = Ct(n), i = n < 0 ? uo(r + i, 0) : fo(i, r - 1)), tn(e, to(t, 3), i, !0);
1142
- }
1143
- var mo = "[object Boolean]";
1144
- function ho(e) {
1145
- return e === !0 || e === !1 || B(e) && z(e) == mo;
1146
- }
1147
- function go(e, t) {
1148
- var n = {};
1149
- return t = to(t, 3), io(e, function(e, r, i) {
1150
- on(n, r, t(e, r, i));
1151
- }), n;
484
+ return n;
1152
485
  }
1153
- function _o(e, t, n, r) {
1154
- if (!H(e)) return e;
1155
- t = si(t, e);
1156
- for (var i = -1, a = t.length, o = a - 1, s = e; s != null && ++i < a;) {
1157
- var c = li(t[i]), l = n;
1158
- if (c === "__proto__" || c === "constructor" || c === "prototype") return e;
1159
- if (i != o) {
1160
- var u = s[c];
1161
- l = r ? r(u, c, s) : void 0, l === void 0 && (l = H(u) ? u : an(t[i + 1]) ? [] : {});
1162
- }
1163
- un(s, c, l), s = s[c];
1164
- }
1165
- return e;
486
+ function isUnsafeProperty(e) {
487
+ return e === "__proto__";
1166
488
  }
1167
- function vo(e, t, n) {
1168
- for (var r = -1, i = t.length, a = {}; ++r < i;) {
1169
- var o = t[r], s = ui(e, o);
1170
- n(s, o) && _o(a, si(o, e), s);
489
+ function pick(e, t) {
490
+ let n = {};
491
+ for (let r = 0; r < t.length; r++) {
492
+ let a = t[r];
493
+ Object.hasOwn(e, a) && (n[a] = e[a]);
1171
494
  }
1172
- return a;
495
+ return n;
1173
496
  }
1174
- function yo(e, t) {
1175
- return vo(e, t, function(t, n) {
1176
- return Ja(e, n);
1177
- });
497
+ function isBoolean(e) {
498
+ return typeof e == "boolean";
1178
499
  }
1179
- var bo = _i(function(e, t) {
1180
- return e == null ? {} : yo(e, t);
1181
- });
1182
- function xo(e, t, n) {
1183
- var r = e == null ? 0 : e.length;
1184
- return r ? (n && typeof n != "number" && gn(e, t, n) ? (t = 0, n = r) : (t = t == null ? 0 : Ct(t), n = n === void 0 ? r : Ct(n)), vi(e, t, n)) : [];
500
+ function eq(e, t) {
501
+ return e === t || Number.isNaN(e) && Number.isNaN(t);
1185
502
  }
1186
- const So = [
503
+ function isLength(e) {
504
+ return Number.isSafeInteger(e) && e >= 0;
505
+ }
506
+ var responsiveProperties = [
1187
507
  "perPage",
1188
508
  "mode",
1189
509
  "autoplay",
@@ -1196,7 +516,7 @@ const So = [
1196
516
  "hideNavigation",
1197
517
  "hidePagination"
1198
518
  ];
1199
- function Co(e, t) {
519
+ function processConfigValues(e, t) {
1200
520
  let n = parseInt(this.perPage);
1201
521
  switch (t) {
1202
522
  case "perPage":
@@ -1204,102 +524,107 @@ function Co(e, t) {
1204
524
  case "slideBy": return e ? +e : n;
1205
525
  case "gap": return n === 1 ? 0 : +e;
1206
526
  case "autoplay": return !e || e === "false" || e === "0" ? !1 : e === !0 || e === "true" ? 5e3 : +e;
1207
- case "pauseOnHover": return this.manualControls ? e = !1 : e === "true" ? e = !0 : e === "false" && (e = !1), ho(e) ? e : !!e;
527
+ case "pauseOnHover": return this.manualControls ? e = !1 : e === "true" ? e = !0 : e === "false" && (e = !1), isBoolean(e) ? e : !!e;
1208
528
  case "wrap":
1209
529
  case "hideNavigation":
1210
- case "hidePagination": return e === "true" ? e = !0 : e === "false" && (e = !1), ho(e) ? e : !!e;
530
+ case "hidePagination": return e === "true" ? e = !0 : e === "false" && (e = !1), isBoolean(e) ? e : !!e;
1211
531
  default: return e;
1212
532
  }
1213
533
  }
1214
- const wo = (e, t = !1) => {
1215
- let { width: n } = /* @__PURE__ */ Ue(), r = o(() => bo(e, So)), i = o(() => Object.entries(e.responsive).map(([e, t]) => [parseInt(e), bo(t, So)]).filter((e) => isNaN(e[0]) === !1).sort((e, t) => t[0] - e[0])), a = o(() => {
1216
- let e = i.value.find((e) => n.value >= e[0]);
534
+ const useResponsiveConfig = (e, t = !1) => {
535
+ let { width: n } = /* @__PURE__ */ useWindowSize(), r = computed(() => pick(e, responsiveProperties)), a = computed(() => Object.entries(e.responsive).map(([e, t]) => [parseInt(e), pick(t, responsiveProperties)]).filter((e) => isNaN(e[0]) === !1).sort((e, t) => t[0] - e[0])), s = computed(() => {
536
+ let e = a.value.find((e) => n.value >= e[0]);
1217
537
  return e ? e[1] : {};
1218
538
  });
1219
- return o(() => {
1220
- let e = Object.assign({ manualControls: t }, r.value, a.value);
1221
- return go(e, Co.bind(e));
539
+ return computed(() => {
540
+ let e = Object.assign({ manualControls: t }, r.value, s.value);
541
+ return mapValues(e, processConfigValues.bind(e));
1222
542
  });
1223
- }, To = {
543
+ }, EVO_VUE_CAROUSEL_MODE = {
1224
544
  SLIDER: "slider",
1225
545
  GALLERY: "gallery"
1226
- }, Eo = (e, t, n) => {
1227
- let r = n.value.mode === To.GALLERY, i = n.value.wrap === !0, a = n.value.perPage, o = Math.max(t - a, 0);
1228
- return r ? e < 0 && i === !1 || o < 0 || e > t ? 0 : e : i === !1 && e <= 0 ? 0 : i === !1 && e >= t ? o : e;
1229
- }, Do = Symbol.for("evo-vue-carousel__config"), Oo = Symbol.for("evo-vue-carousel__slide-count"), ko = Symbol.for("evo-vue-carousel__current-index"), Ao = Symbol.for("evo-vue-carousel__is-hovered"), jo = Symbol.for("evo-vue-carousel__is-navigating"), Mo = Symbol.for("evo-vue-carousel__autoplay-fn"), No = (e, t, n, r = !1) => {
1230
- let i = D(!1), a = D(!1), s = wo(e, r), c = D(0), l = Ve(n, {
546
+ }, checkPosition = (e, t, n) => {
547
+ let r = n.value.mode === EVO_VUE_CAROUSEL_MODE.GALLERY, a = n.value.wrap === !0, s = n.value.perPage, c = Math.max(t - s, 0);
548
+ return r ? e < 0 && a === !1 || c < 0 || e > t ? 0 : e : a === !1 && e <= 0 ? 0 : a === !1 && e >= t ? c : e;
549
+ };
550
+ var configKey = Symbol.for("evo-vue-carousel__config"), slideCountKey = Symbol.for("evo-vue-carousel__slide-count"), currentIndexKey = Symbol.for("evo-vue-carousel__current-index"), isHoveredKey = Symbol.for("evo-vue-carousel__is-hovered"), isNavigatingKey = Symbol.for("evo-vue-carousel__is-navigating"), autoplayFnKey = Symbol.for("evo-vue-carousel__autoplay-fn");
551
+ const useCarouselHost = (e, t, n, r = !1) => {
552
+ let a = ref(!1), s = ref(!1), l = useResponsiveConfig(e, r), u = ref(0), d = useElementHover(n, {
1231
553
  delayEnter: +e.hoverDelayEnter,
1232
554
  delayLeave: +e.hoverDelayLeave
1233
- }), u = N(t, async (t) => {
1234
- t > 0 && (c.value = Eo(+e.initialIndex, t, s), c.value > t && (c.value = t - 1), i.value = !0, await ee(), u());
1235
- }, { immediate: !0 }), d = o(() => s.value.autoplay ?? 0), f = (e) => {
1236
- c.value = Eo(e, t.value, s);
1237
- }, { pause: p, resume: m, isActive: h } = Ae(() => {
1238
- f(c.value + s.value.slideBy);
1239
- }, d);
1240
- return T(Do, s), T(Oo, E(t)), T(ko, c), T(Ao, l), T(jo, a), T(Mo, {
1241
- pauseAutoplay: p,
1242
- resumeAutoplay: m,
1243
- autoplayIsActive: h
555
+ }), p = watch(t, async (t) => {
556
+ t > 0 && (u.value = checkPosition(+e.initialIndex, t, l), u.value > t && (u.value = t - 1), a.value = !0, await nextTick(), p());
557
+ }, { immediate: !0 }), m = computed(() => l.value.autoplay ?? 0), _ = (e) => {
558
+ u.value = checkPosition(e, t.value, l);
559
+ }, { pause: b, resume: x, isActive: C } = useIntervalFn(() => {
560
+ _(u.value + l.value.slideBy);
561
+ }, m);
562
+ return provide(configKey, l), provide(slideCountKey, readonly(t)), provide(currentIndexKey, u), provide(isHoveredKey, d), provide(isNavigatingKey, s), provide(autoplayFnKey, {
563
+ pauseAutoplay: b,
564
+ resumeAutoplay: x,
565
+ autoplayIsActive: C
1244
566
  }), {
1245
- config: s,
1246
- currentIndex: E(c),
1247
- isHovered: l,
1248
- isInit: i
1249
- };
1250
- }, Po = () => {
1251
- let e = v(Do), t = v(ko), n = v(Oo), r = v(Ao), i = v(jo), a = v(Mo), o = (r) => {
1252
- t.value = Eo(r, n.value, e);
1253
- }, s = (e) => {
1254
- i.value = e;
567
+ config: l,
568
+ currentIndex: readonly(u),
569
+ isHovered: d,
570
+ isInit: a
1255
571
  };
572
+ }, useCarouselClient = () => {
573
+ let e = inject(configKey), t = inject(currentIndexKey), n = inject(slideCountKey), r = inject(isHoveredKey), a = inject(isNavigatingKey), s = inject(autoplayFnKey);
1256
574
  return {
1257
575
  config: e,
1258
- currentIndex: E(t),
1259
- setCurrentIndex: o,
576
+ currentIndex: readonly(t),
577
+ setCurrentIndex: (r) => {
578
+ t.value = checkPosition(r, n.value, e);
579
+ },
1260
580
  slideCount: n,
1261
581
  isHovered: r,
1262
- isNavigating: E(i),
1263
- setIsNavigating: s,
1264
- ...a
582
+ isNavigating: readonly(a),
583
+ setIsNavigating: (e) => {
584
+ a.value = e;
585
+ },
586
+ ...s
1265
587
  };
1266
- }, Fo = {
588
+ };
589
+ var Autoplay_default = {
1267
590
  __name: "Autoplay",
1268
591
  setup(e) {
1269
- let { pauseAutoplay: t, resumeAutoplay: n, autoplayIsActive: r } = Po();
1270
- return (e, i) => O(e.$slots, "controls", {
1271
- pause: j(t),
1272
- play: j(n),
1273
- playing: j(r)
592
+ let { pauseAutoplay: t, resumeAutoplay: n, autoplayIsActive: r } = useCarouselClient();
593
+ return (e, a) => renderSlot(e.$slots, "controls", {
594
+ pause: unref(t),
595
+ play: unref(n),
596
+ playing: unref(r)
1274
597
  });
1275
598
  }
1276
- }, Io = Symbol.for("evo-vue-carousel__register-slide-client"), Lo = () => {
1277
- let e = D(/* @__PURE__ */ new Map()), t = D(!1), n = o(() => e.value.size), r = lo(() => {
599
+ };
600
+ const registerSlideClientKey = Symbol.for("evo-vue-carousel__register-slide-client"), useRegisterSlide = () => {
601
+ let e = ref(/* @__PURE__ */ new Map()), t = ref(!1), n = computed(() => e.value.size), r = debounce(() => {
1278
602
  t.value = !0;
1279
- }, 5), i = (t, n, { width: i = 0 } = {}) => {
1280
- e.value.set(t, {
1281
- instance: n,
1282
- width: i
1283
- }), r();
1284
- }, a = (t, n) => {
1285
- let r = e.value.get(t) ?? {};
1286
- e.value.set(t, Object.assign(r, n));
1287
- }, s = (t) => {
1288
- e.value.delete(t);
1289
- };
1290
- return T(Io, {
1291
- registerSlide: i,
1292
- updateSlide: a,
1293
- unregisterSlide: s
603
+ }, 5);
604
+ return provide(registerSlideClientKey, {
605
+ registerSlide: (t, n, { width: a = 0 } = {}) => {
606
+ e.value.set(t, {
607
+ instance: n,
608
+ width: a
609
+ }), r();
610
+ },
611
+ updateSlide: (t, n) => {
612
+ let r = e.value.get(t) ?? {};
613
+ e.value.set(t, Object.assign(r, n));
614
+ },
615
+ unregisterSlide: (t) => {
616
+ e.value.delete(t);
617
+ }
1294
618
  }), {
1295
- slides: E(e),
1296
- slideCount: E(n),
1297
- isInit: E(t)
619
+ slides: readonly(e),
620
+ slideCount: readonly(n),
621
+ isInit: readonly(t)
1298
622
  };
1299
- }, Ro = () => v(Io), zo = ["aria-label"], Bo = { class: "evo-vue-carousel__content h-full max-h-full relative" }, Vo = {
623
+ }, useRegisterSlideClient = () => inject(registerSlideClientKey);
624
+ var _hoisted_1$4 = ["aria-label"], _hoisted_2$1 = { class: "evo-vue-carousel__content h-full max-h-full relative" }, _hoisted_3 = {
1300
625
  key: 0,
1301
626
  class: "evo-vue-carousel__overlay absolute inset-0"
1302
- }, Ho = {
627
+ }, component_default = {
1303
628
  __name: "index",
1304
629
  props: {
1305
630
  autoplay: {
@@ -1332,8 +657,8 @@ const wo = (e, t = !1) => {
1332
657
  },
1333
658
  mode: {
1334
659
  type: String,
1335
- default: To.SLIDER,
1336
- validator: (e) => Object.values(To).includes(e)
660
+ default: EVO_VUE_CAROUSEL_MODE.SLIDER,
661
+ validator: (e) => Object.values(EVO_VUE_CAROUSEL_MODE).includes(e)
1337
662
  },
1338
663
  initialIndex: {
1339
664
  type: [String, Number],
@@ -1425,29 +750,29 @@ const wo = (e, t = !1) => {
1425
750
  }
1426
751
  },
1427
752
  setup(e) {
1428
- let t = e, n = D(null), r = oe(), { slideCount: i, isInit: a } = Lo(), { config: o, isHovered: d } = No(t, i, n, !!r.controls);
1429
- return (e, r) => (w(), l("div", {
753
+ let t = e, n = ref(null), r = useSlots(), { slideCount: a, isInit: s } = useRegisterSlide(), { config: c, isHovered: m } = useCarouselHost(t, a, n, !!r.controls);
754
+ return (e, r) => (openBlock(), createElementBlock("div", {
1430
755
  ref_key: "sliderRef",
1431
756
  ref: n,
1432
757
  role: "region",
1433
758
  "aria-roledescription": "carousel",
1434
759
  "aria-label": t.label,
1435
- class: S(["evo-vue-carousel relative max-h-full", { "is-hovered": j(d) }])
760
+ class: normalizeClass(["evo-vue-carousel relative max-h-full", { "is-hovered": unref(m) }])
1436
761
  }, [
1437
- u("div", Bo, [
1438
- f(j(me), {
762
+ createElementVNode("div", _hoisted_2$1, [
763
+ createVNode(unref(S), {
1439
764
  slots: e.$slots,
1440
765
  only: ["default"]
1441
766
  }, {
1442
- default: P(() => [j(o).mode === "gallery" ? (w(), s(j(fc), {
767
+ default: withCtx(() => [unref(c).mode === "gallery" ? (openBlock(), createBlock(unref(Gallery_default), {
1443
768
  key: 0,
1444
- "total-slides": j(i),
1445
- "is-init": j(a)
1446
- }, null, 8, ["total-slides", "is-init"])) : (w(), s(j(uc), {
769
+ "total-slides": unref(a),
770
+ "is-init": unref(s)
771
+ }, null, 8, ["total-slides", "is-init"])) : (openBlock(), createBlock(unref(Slider_default), {
1447
772
  key: 1,
1448
- class: S(t.viewportClass),
1449
- "total-slides": j(i),
1450
- "is-init": j(a)
773
+ class: normalizeClass(t.viewportClass),
774
+ "total-slides": unref(a),
775
+ "is-init": unref(s)
1451
776
  }, null, 8, [
1452
777
  "class",
1453
778
  "total-slides",
@@ -1455,8 +780,8 @@ const wo = (e, t = !1) => {
1455
780
  ]))]),
1456
781
  _: 1
1457
782
  }, 8, ["slots"]),
1458
- e.$slots.overlay ? (w(), l("div", Vo, [O(e.$slots, "overlay")])) : c("", !0),
1459
- j(o).hideNavigation === !0 ? c("", !0) : (w(), s(j(me), {
783
+ e.$slots.overlay ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(e.$slots, "overlay")])) : createCommentVNode("", !0),
784
+ unref(c).hideNavigation === !0 ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(S), {
1460
785
  key: 1,
1461
786
  slots: e.$slots,
1462
787
  only: [
@@ -1465,13 +790,13 @@ const wo = (e, t = !1) => {
1465
790
  "navigation"
1466
791
  ]
1467
792
  }, {
1468
- default: P(() => [f(j(Gs), {
1469
- class: S(t.navigationClass),
793
+ default: withCtx(() => [createVNode(unref(Navigation_default), {
794
+ class: normalizeClass(t.navigationClass),
1470
795
  "item-class": t.navigationItemClass,
1471
796
  "item-size-class": t.navigationItemSizeClass,
1472
797
  "prev-class": t.navigationPrevClass,
1473
798
  "next-class": t.navigationNextClass,
1474
- "total-slides": j(i),
799
+ "total-slides": unref(a),
1475
800
  "disable-on-navigation": t.disableOnNavigation
1476
801
  }, null, 8, [
1477
802
  "class",
@@ -1485,22 +810,22 @@ const wo = (e, t = !1) => {
1485
810
  _: 1
1486
811
  }, 8, ["slots"]))
1487
812
  ]),
1488
- j(o).hidePagination === !0 ? c("", !0) : (w(), s(j(me), {
813
+ unref(c).hidePagination === !0 ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(S), {
1489
814
  key: 0,
1490
815
  slots: e.$slots,
1491
816
  only: ["pagination", "pagination-item"]
1492
817
  }, {
1493
- default: P(() => [f(j(Ls), {
1494
- class: S(t.paginationClass),
818
+ default: withCtx(() => [createVNode(unref(Pagination_default), {
819
+ class: normalizeClass(t.paginationClass),
1495
820
  "background-class": t.paginationBackgroundClass,
1496
821
  "item-class": t.paginationItemClass,
1497
822
  "item-size-class": t.paginationItemSizeClass,
1498
823
  "item-active-class": t.paginationItemActiveClass,
1499
824
  "item-dot-class": t.paginationItemDotClass,
1500
825
  "item-dot-active-class": t.paginationItemDotActiveClass,
1501
- "total-slides": j(i),
1502
- "per-page": j(o).perPage,
1503
- wrap: j(o).wrap,
826
+ "total-slides": unref(a),
827
+ "per-page": unref(c).perPage,
828
+ wrap: unref(c).wrap,
1504
829
  "disable-on-navigation": t.disableOnNavigation
1505
830
  }, null, 8, [
1506
831
  "class",
@@ -1517,57 +842,286 @@ const wo = (e, t = !1) => {
1517
842
  ])]),
1518
843
  _: 1
1519
844
  }, 8, ["slots"])),
1520
- f(j(me), {
845
+ createVNode(unref(S), {
1521
846
  slots: e.$slots,
1522
847
  only: "controls"
1523
848
  }, {
1524
- default: P(() => [f(Fo)]),
849
+ default: withCtx(() => [createVNode(Autoplay_default)]),
1525
850
  _: 1
1526
851
  }, 8, ["slots"])
1527
- ], 10, zo));
852
+ ], 10, _hoisted_1$4));
853
+ }
854
+ };
855
+ function toArray(e) {
856
+ return Array.isArray(e) ? e : Array.from(e);
857
+ }
858
+ function isArrayLike(e) {
859
+ return e != null && typeof e != "function" && isLength(e.length);
860
+ }
861
+ function concat(...e) {
862
+ return flatten(e);
863
+ }
864
+ function isDeepKey(e) {
865
+ switch (typeof e) {
866
+ case "number":
867
+ case "symbol": return !1;
868
+ case "string": return e.includes(".") || e.includes("[") || e.includes("]");
869
+ }
870
+ }
871
+ function toKey(e) {
872
+ return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
873
+ }
874
+ function toString(e) {
875
+ if (e == null) return "";
876
+ if (typeof e == "string") return e;
877
+ if (Array.isArray(e)) return e.map(toString).join(",");
878
+ let t = String(e);
879
+ return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
880
+ }
881
+ function toPath(e) {
882
+ if (Array.isArray(e)) return e.map(toKey);
883
+ if (typeof e == "symbol") return [e];
884
+ e = toString(e);
885
+ let t = [], n = e.length;
886
+ if (n === 0) return t;
887
+ let r = 0, a = "", s = "", c = !1;
888
+ for (e.charCodeAt(0) === 46 && (t.push(""), r++); r < n;) {
889
+ let l = e[r];
890
+ s ? l === "\\" && r + 1 < n ? (r++, a += e[r]) : l === s ? s = "" : a += l : c ? l === "\"" || l === "'" ? s = l : l === "]" ? (c = !1, t.push(a), a = "") : a += l : l === "[" ? (c = !0, a &&= (t.push(a), "")) : l === "." ? a &&= (t.push(a), "") : a += l, r++;
891
+ }
892
+ return a && t.push(a), t;
893
+ }
894
+ function get(e, t, n) {
895
+ if (e == null) return n;
896
+ switch (typeof t) {
897
+ case "string": {
898
+ if (isUnsafeProperty(t)) return n;
899
+ let r = e[t];
900
+ return r === void 0 ? isDeepKey(t) ? get(e, toPath(t), n) : n : r;
901
+ }
902
+ case "number":
903
+ case "symbol": {
904
+ typeof t == "number" && (t = toKey(t));
905
+ let r = e[t];
906
+ return r === void 0 ? n : r;
907
+ }
908
+ default: {
909
+ if (Array.isArray(t)) return getWithPath(e, t, n);
910
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), isUnsafeProperty(t)) return n;
911
+ let r = e[t];
912
+ return r === void 0 ? n : r;
913
+ }
914
+ }
915
+ }
916
+ function getWithPath(e, t, n) {
917
+ if (t.length === 0) return n;
918
+ let r = e;
919
+ for (let e = 0; e < t.length; e++) {
920
+ if (r == null || isUnsafeProperty(t[e])) return n;
921
+ r = r[t[e]];
922
+ }
923
+ return r === void 0 ? n : r;
924
+ }
925
+ function property(e) {
926
+ return function(t) {
927
+ return get(t, e);
928
+ };
929
+ }
930
+ function isObject(e) {
931
+ return e !== null && (typeof e == "object" || typeof e == "function");
932
+ }
933
+ function isMatchWith(e, t, n) {
934
+ return typeof n == "function" ? isMatchWithInternal(e, t, function e(t, r, a, s, c, l) {
935
+ let u = n(t, r, a, s, c, l);
936
+ return u === void 0 ? isMatchWithInternal(t, r, e, l) : !!u;
937
+ }, /* @__PURE__ */ new Map()) : isMatch(e, t);
938
+ }
939
+ function isMatchWithInternal(e, t, n, r) {
940
+ if (t === e) return !0;
941
+ switch (typeof t) {
942
+ case "object": return isObjectMatch(e, t, n, r);
943
+ case "function": return Object.keys(t).length > 0 ? isMatchWithInternal(e, { ...t }, n, r) : eq(e, t);
944
+ default: return isObject(e) ? typeof t == "string" ? t === "" : !0 : eq(e, t);
945
+ }
946
+ }
947
+ function isObjectMatch(e, t, n, r) {
948
+ if (t == null) return !0;
949
+ if (Array.isArray(t)) return isArrayMatch(e, t, n, r);
950
+ if (t instanceof Map) return isMapMatch(e, t, n, r);
951
+ if (t instanceof Set) return isSetMatch(e, t, n, r);
952
+ let a = Object.keys(t);
953
+ if (e == null) return a.length === 0;
954
+ if (a.length === 0) return !0;
955
+ if (r && r.has(t)) return r.get(t) === e;
956
+ r && r.set(t, e);
957
+ try {
958
+ for (let s = 0; s < a.length; s++) {
959
+ let c = a[s];
960
+ if (!isPrimitive(e) && !(c in e) || t[c] === void 0 && e[c] !== void 0 || t[c] === null && e[c] !== null || !n(e[c], t[c], c, e, t, r)) return !1;
961
+ }
962
+ return !0;
963
+ } finally {
964
+ r && r.delete(t);
965
+ }
966
+ }
967
+ function isMapMatch(e, t, n, r) {
968
+ if (t.size === 0) return !0;
969
+ if (!(e instanceof Map)) return !1;
970
+ for (let [a, s] of t.entries()) if (n(e.get(a), s, a, e, t, r) === !1) return !1;
971
+ return !0;
972
+ }
973
+ function isArrayMatch(e, t, n, r) {
974
+ if (t.length === 0) return !0;
975
+ if (!Array.isArray(e)) return !1;
976
+ let a = /* @__PURE__ */ new Set();
977
+ for (let s = 0; s < t.length; s++) {
978
+ let c = t[s], l = !1;
979
+ for (let u = 0; u < e.length; u++) {
980
+ if (a.has(u)) continue;
981
+ let d = e[u], p = !1;
982
+ if (n(d, c, s, e, t, r) && (p = !0), p) {
983
+ a.add(u), l = !0;
984
+ break;
985
+ }
986
+ }
987
+ if (!l) return !1;
988
+ }
989
+ return !0;
990
+ }
991
+ function isSetMatch(e, t, n, r) {
992
+ return t.size === 0 ? !0 : e instanceof Set ? isArrayMatch([...e], [...t], n, r) : !1;
993
+ }
994
+ function isMatch(e, t) {
995
+ return isMatchWith(e, t, () => void 0);
996
+ }
997
+ function matches(e) {
998
+ return e = cloneDeep$1(e), (t) => isMatch(t, e);
999
+ }
1000
+ function cloneDeepWith(e, t) {
1001
+ return cloneDeepWith$1(e, (n, r, a, s) => {
1002
+ let c = t?.(n, r, a, s);
1003
+ if (c !== void 0) return c;
1004
+ if (typeof e == "object") switch (Object.prototype.toString.call(e)) {
1005
+ case numberTag:
1006
+ case stringTag:
1007
+ case booleanTag: {
1008
+ let t = new e.constructor(e?.valueOf());
1009
+ return copyProperties(t, e), t;
1010
+ }
1011
+ case argumentsTag: {
1012
+ let t = {};
1013
+ return copyProperties(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
1014
+ }
1015
+ default: return;
1016
+ }
1017
+ });
1018
+ }
1019
+ function cloneDeep(e) {
1020
+ return cloneDeepWith(e);
1021
+ }
1022
+ var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
1023
+ function isIndex(e, t = 2 ** 53 - 1) {
1024
+ switch (typeof e) {
1025
+ case "number": return Number.isInteger(e) && e >= 0 && e < t;
1026
+ case "symbol": return !1;
1027
+ case "string": return IS_UNSIGNED_INTEGER.test(e);
1028
+ }
1029
+ }
1030
+ function isArguments(e) {
1031
+ return typeof e == "object" && !!e && getTag(e) === "[object Arguments]";
1032
+ }
1033
+ function has(e, t) {
1034
+ let n;
1035
+ if (n = Array.isArray(t) ? t : typeof t == "string" && isDeepKey(t) && e?.[t] == null ? toPath(t) : [t], n.length === 0) return !1;
1036
+ let r = e;
1037
+ for (let e = 0; e < n.length; e++) {
1038
+ let t = n[e];
1039
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || isArguments(r)) && isIndex(t) && t < r.length)) return !1;
1040
+ r = r[t];
1528
1041
  }
1529
- }, Uo = (e) => {
1530
- let t = qo(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e, i = (e) => {
1531
- let n = e.split("-");
1532
- return n[0] === "" && n.length !== 1 && n.shift(), Wo(n, t) || Ko(e);
1533
- }, a = (e, t) => {
1534
- let i = n[e] || [];
1535
- return t && r[e] ? [...i, ...r[e]] : i;
1042
+ return !0;
1043
+ }
1044
+ function matchesProperty(e, t) {
1045
+ switch (typeof e) {
1046
+ case "object":
1047
+ Object.is(e?.valueOf(), -0) && (e = "-0");
1048
+ break;
1049
+ case "number":
1050
+ e = toKey(e);
1051
+ break;
1052
+ }
1053
+ return t = cloneDeep(t), function(n) {
1054
+ let r = get(n, e);
1055
+ return r === void 0 ? has(n, e) : t === void 0 ? r === void 0 : isMatch(r, t);
1536
1056
  };
1057
+ }
1058
+ function isIterateeCall(e, t, n) {
1059
+ return isObject(n) && (typeof t == "number" && isArrayLike(n) && isIndex(t) && t < n.length || typeof t == "string" && t in n) ? eq(n[t], e) : !1;
1060
+ }
1061
+ function findLastIndex(e, t = identity, n = e ? e.length - 1 : 0) {
1062
+ if (!e) return -1;
1063
+ n = n < 0 ? Math.max(e.length + n, 0) : Math.min(n, e.length - 1);
1064
+ let r = toArray(e).slice(0, n + 1);
1065
+ switch (typeof t) {
1066
+ case "function": return r.findLastIndex(t);
1067
+ case "object": if (Array.isArray(t) && t.length === 2) {
1068
+ let e = t[0], n = t[1];
1069
+ return r.findLastIndex(matchesProperty(e, n));
1070
+ } else return r.findLastIndex(matches(t));
1071
+ case "number":
1072
+ case "symbol":
1073
+ case "string": return r.findLastIndex(property(t));
1074
+ }
1075
+ }
1076
+ function slice(e, t, n) {
1077
+ if (!isArrayLike(e)) return [];
1078
+ let r = e.length;
1079
+ n === void 0 ? n = r : typeof n != "number" && isIterateeCall(e, t, n) && (t = 0, n = r), t = toInteger(t), n = toInteger(n), t = t < 0 ? Math.max(r + t, 0) : Math.min(t, r), n = n < 0 ? Math.max(r + n, 0) : Math.min(n, r);
1080
+ let a = Math.max(n - t, 0), s = Array(a);
1081
+ for (let n = 0; n < a; ++n) s[n] = e[t + n];
1082
+ return s;
1083
+ }
1084
+ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e) => {
1085
+ let t = createClassMap(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
1537
1086
  return {
1538
- getClassGroupId: i,
1539
- getConflictingClassGroupIds: a
1087
+ getClassGroupId: (e) => {
1088
+ let n = e.split(CLASS_PART_SEPARATOR);
1089
+ return n[0] === "" && n.length !== 1 && n.shift(), getGroupRecursive(n, t) || getGroupIdForArbitraryProperty(e);
1090
+ },
1091
+ getConflictingClassGroupIds: (e, t) => {
1092
+ let a = n[e] || [];
1093
+ return t && r[e] ? [...a, ...r[e]] : a;
1094
+ }
1540
1095
  };
1541
- }, Wo = (e, t) => {
1096
+ }, getGroupRecursive = (e, t) => {
1542
1097
  if (e.length === 0) return t.classGroupId;
1543
- let n = e[0], r = t.nextPart.get(n), i = r ? Wo(e.slice(1), r) : void 0;
1544
- if (i) return i;
1098
+ let n = e[0], r = t.nextPart.get(n), a = r ? getGroupRecursive(e.slice(1), r) : void 0;
1099
+ if (a) return a;
1545
1100
  if (t.validators.length === 0) return;
1546
- let a = e.join("-");
1547
- return t.validators.find(({ validator: e }) => e(a))?.classGroupId;
1548
- }, Go = /^\[(.+)\]$/, Ko = (e) => {
1549
- if (Go.test(e)) {
1550
- let t = Go.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
1101
+ let s = e.join(CLASS_PART_SEPARATOR);
1102
+ return t.validators.find(({ validator: e }) => e(s))?.classGroupId;
1103
+ }, arbitraryPropertyRegex = /^\[(.+)\]$/, getGroupIdForArbitraryProperty = (e) => {
1104
+ if (arbitraryPropertyRegex.test(e)) {
1105
+ let t = arbitraryPropertyRegex.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
1551
1106
  if (n) return "arbitrary.." + n;
1552
1107
  }
1553
- }, qo = (e) => {
1554
- let { theme: t, prefix: n } = e, r = {
1108
+ }, createClassMap = (e) => {
1109
+ let { theme: t, classGroups: n } = e, r = {
1555
1110
  nextPart: /* @__PURE__ */ new Map(),
1556
1111
  validators: []
1557
- }, i = Zo(Object.entries(e.classGroups), n);
1558
- return i.forEach(([e, n]) => {
1559
- Jo(n, r, e, t);
1560
- }), r;
1561
- }, Jo = (e, t, n, r) => {
1112
+ };
1113
+ for (let e in n) processClassesRecursively(n[e], r, e, t);
1114
+ return r;
1115
+ }, processClassesRecursively = (e, t, n, r) => {
1562
1116
  e.forEach((e) => {
1563
1117
  if (typeof e == "string") {
1564
- let r = e === "" ? t : Yo(t, e);
1118
+ let r = e === "" ? t : getPart(t, e);
1565
1119
  r.classGroupId = n;
1566
1120
  return;
1567
1121
  }
1568
1122
  if (typeof e == "function") {
1569
- if (Xo(e)) {
1570
- Jo(e(r), t, n, r);
1123
+ if (isThemeGetter(e)) {
1124
+ processClassesRecursively(e(r), t, n, r);
1571
1125
  return;
1572
1126
  }
1573
1127
  t.validators.push({
@@ -1576,187 +1130,312 @@ const wo = (e, t = !1) => {
1576
1130
  });
1577
1131
  return;
1578
1132
  }
1579
- Object.entries(e).forEach(([e, i]) => {
1580
- Jo(i, Yo(t, e), n, r);
1133
+ Object.entries(e).forEach(([e, a]) => {
1134
+ processClassesRecursively(a, getPart(t, e), n, r);
1581
1135
  });
1582
1136
  });
1583
- }, Yo = (e, t) => {
1137
+ }, getPart = (e, t) => {
1584
1138
  let n = e;
1585
- return t.split("-").forEach((e) => {
1139
+ return t.split(CLASS_PART_SEPARATOR).forEach((e) => {
1586
1140
  n.nextPart.has(e) || n.nextPart.set(e, {
1587
1141
  nextPart: /* @__PURE__ */ new Map(),
1588
1142
  validators: []
1589
1143
  }), n = n.nextPart.get(e);
1590
1144
  }), n;
1591
- }, Xo = (e) => e.isThemeGetter, Zo = (e, t) => t ? e.map(([e, n]) => {
1592
- let r = n.map((e) => typeof e == "string" ? t + e : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => [t + e, n])) : e);
1593
- return [e, r];
1594
- }) : e, Qo = (e) => {
1145
+ }, isThemeGetter = (e) => e.isThemeGetter, createLruCache = (e) => {
1595
1146
  if (e < 1) return {
1596
1147
  get: () => void 0,
1597
1148
  set: () => {}
1598
1149
  };
1599
- let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (i, a) => {
1600
- n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
1150
+ let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = (a, s) => {
1151
+ n.set(a, s), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
1601
1152
  };
1602
1153
  return {
1603
1154
  get(e) {
1604
1155
  let t = n.get(e);
1605
1156
  if (t !== void 0) return t;
1606
- if ((t = r.get(e)) !== void 0) return i(e, t), t;
1157
+ if ((t = r.get(e)) !== void 0) return a(e, t), t;
1607
1158
  },
1608
1159
  set(e, t) {
1609
- n.has(e) ? n.set(e, t) : i(e, t);
1160
+ n.has(e) ? n.set(e, t) : a(e, t);
1610
1161
  }
1611
1162
  };
1612
- }, $o = (e) => {
1613
- let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], a = t.length, o = (e) => {
1614
- let n = [], o = 0, s = 0, c;
1615
- for (let l = 0; l < e.length; l++) {
1616
- let u = e[l];
1617
- if (o === 0) {
1618
- if (u === i && (r || e.slice(l, l + a) === t)) {
1619
- n.push(e.slice(s, l)), s = l + a;
1163
+ }, IMPORTANT_MODIFIER = "!", MODIFIER_SEPARATOR = ":", MODIFIER_SEPARATOR_LENGTH = 1, createParseClassName = (e) => {
1164
+ let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
1165
+ let t = [], n = 0, r = 0, a = 0, s;
1166
+ for (let c = 0; c < e.length; c++) {
1167
+ let l = e[c];
1168
+ if (n === 0 && r === 0) {
1169
+ if (l === MODIFIER_SEPARATOR) {
1170
+ t.push(e.slice(a, c)), a = c + MODIFIER_SEPARATOR_LENGTH;
1620
1171
  continue;
1621
1172
  }
1622
- if (u === "/") {
1623
- c = l;
1173
+ if (l === "/") {
1174
+ s = c;
1624
1175
  continue;
1625
1176
  }
1626
1177
  }
1627
- u === "[" ? o++ : u === "]" && o--;
1178
+ l === "[" ? n++ : l === "]" ? n-- : l === "(" ? r++ : l === ")" && r--;
1628
1179
  }
1629
- let l = n.length === 0 ? e : e.substring(s), u = l.startsWith("!"), d = u ? l.substring(1) : l, f = c && c > s ? c - s : void 0;
1180
+ let c = t.length === 0 ? e : e.substring(a), l = stripImportantModifier(c);
1630
1181
  return {
1631
- modifiers: n,
1632
- hasImportantModifier: u,
1633
- baseClassName: d,
1634
- maybePostfixModifierPosition: f
1182
+ modifiers: t,
1183
+ hasImportantModifier: l !== c,
1184
+ baseClassName: l,
1185
+ maybePostfixModifierPosition: s && s > a ? s - a : void 0
1635
1186
  };
1636
1187
  };
1637
- return n ? (e) => n({
1638
- className: e,
1639
- parseClassName: o
1640
- }) : o;
1641
- }, es = (e) => {
1642
- if (e.length <= 1) return e;
1643
- let t = [], n = [];
1644
- return e.forEach((e) => {
1645
- let r = e[0] === "[";
1646
- r ? (t.push(...n.sort(), e), n = []) : n.push(e);
1647
- }), t.push(...n.sort()), t;
1648
- }, ts = (e) => ({
1649
- cache: Qo(e.cacheSize),
1650
- parseClassName: $o(e),
1651
- ...Uo(e)
1652
- }), ns = /\s+/, rs = (e, t) => {
1653
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, a = [], o = e.trim().split(ns), s = "";
1654
- for (let e = o.length - 1; e >= 0; --e) {
1655
- let t = o[e], { modifiers: c, hasImportantModifier: l, baseClassName: u, maybePostfixModifierPosition: d } = n(t), f = !!d, p = r(f ? u.substring(0, d) : u);
1656
- if (!p) {
1657
- if (!f) {
1658
- s = t + (s.length > 0 ? " " + s : s);
1188
+ if (t) {
1189
+ let e = t + MODIFIER_SEPARATOR, n = r;
1190
+ r = (t) => t.startsWith(e) ? n(t.substring(e.length)) : {
1191
+ isExternal: !0,
1192
+ modifiers: [],
1193
+ hasImportantModifier: !1,
1194
+ baseClassName: t,
1195
+ maybePostfixModifierPosition: void 0
1196
+ };
1197
+ }
1198
+ if (n) {
1199
+ let e = r;
1200
+ r = (t) => n({
1201
+ className: t,
1202
+ parseClassName: e
1203
+ });
1204
+ }
1205
+ return r;
1206
+ }, stripImportantModifier = (e) => e.endsWith(IMPORTANT_MODIFIER) ? e.substring(0, e.length - 1) : e.startsWith(IMPORTANT_MODIFIER) ? e.substring(1) : e, createSortModifiers = (e) => {
1207
+ let t = Object.fromEntries(e.orderSensitiveModifiers.map((e) => [e, !0]));
1208
+ return (e) => {
1209
+ if (e.length <= 1) return e;
1210
+ let n = [], r = [];
1211
+ return e.forEach((e) => {
1212
+ e[0] === "[" || t[e] ? (n.push(...r.sort(), e), r = []) : r.push(e);
1213
+ }), n.push(...r.sort()), n;
1214
+ };
1215
+ }, createConfigUtils = (e) => ({
1216
+ cache: createLruCache(e.cacheSize),
1217
+ parseClassName: createParseClassName(e),
1218
+ sortModifiers: createSortModifiers(e),
1219
+ ...createClassGroupUtils(e)
1220
+ }), SPLIT_CLASSES_REGEX = /\s+/, mergeClassList = (e, t) => {
1221
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: a, sortModifiers: s } = t, c = [], l = e.trim().split(SPLIT_CLASSES_REGEX), u = "";
1222
+ for (let e = l.length - 1; e >= 0; --e) {
1223
+ let t = l[e], { isExternal: d, modifiers: p, hasImportantModifier: m, baseClassName: _, maybePostfixModifierPosition: b } = n(t);
1224
+ if (d) {
1225
+ u = t + (u.length > 0 ? " " + u : u);
1226
+ continue;
1227
+ }
1228
+ let x = !!b, C = r(x ? _.substring(0, b) : _);
1229
+ if (!C) {
1230
+ if (!x) {
1231
+ u = t + (u.length > 0 ? " " + u : u);
1659
1232
  continue;
1660
1233
  }
1661
- if (p = r(u), !p) {
1662
- s = t + (s.length > 0 ? " " + s : s);
1234
+ if (C = r(_), !C) {
1235
+ u = t + (u.length > 0 ? " " + u : u);
1663
1236
  continue;
1664
1237
  }
1665
- f = !1;
1238
+ x = !1;
1666
1239
  }
1667
- let m = es(c).join(":"), h = l ? m + "!" : m, g = h + p;
1668
- if (a.includes(g)) continue;
1669
- a.push(g);
1670
- let _ = i(p, f);
1671
- for (let e = 0; e < _.length; ++e) {
1672
- let t = _[e];
1673
- a.push(h + t);
1240
+ let w = s(p).join(":"), T = m ? w + IMPORTANT_MODIFIER : w, E = T + C;
1241
+ if (c.includes(E)) continue;
1242
+ c.push(E);
1243
+ let D = a(C, x);
1244
+ for (let e = 0; e < D.length; ++e) {
1245
+ let t = D[e];
1246
+ c.push(T + t);
1674
1247
  }
1675
- s = t + (s.length > 0 ? " " + s : s);
1248
+ u = t + (u.length > 0 ? " " + u : u);
1676
1249
  }
1677
- return s;
1250
+ return u;
1678
1251
  };
1679
- function os() {
1252
+ function twJoin() {
1680
1253
  let e = 0, t, n, r = "";
1681
- for (; e < arguments.length;) (t = arguments[e++]) && (n = ss(t)) && (r && (r += " "), r += n);
1254
+ for (; e < arguments.length;) (t = arguments[e++]) && (n = toValue$1(t)) && (r && (r += " "), r += n);
1682
1255
  return r;
1683
1256
  }
1684
- const ss = (e) => {
1257
+ var toValue$1 = (e) => {
1685
1258
  if (typeof e == "string") return e;
1686
1259
  let t, n = "";
1687
- for (let r = 0; r < e.length; r++) e[r] && (t = ss(e[r])) && (n && (n += " "), n += t);
1260
+ for (let r = 0; r < e.length; r++) e[r] && (t = toValue$1(e[r])) && (n && (n += " "), n += t);
1688
1261
  return n;
1689
1262
  };
1690
- function cs(e, ...t) {
1691
- let n, r, i, a = o;
1692
- function o(o) {
1693
- let c = t.reduce((e, t) => t(e), e());
1694
- return n = ts(c), r = n.cache.get, i = n.cache.set, a = s, s(o);
1263
+ function createTailwindMerge(e, ...t) {
1264
+ let n, r, a, s = c;
1265
+ function c(c) {
1266
+ return n = createConfigUtils(t.reduce((e, t) => t(e), e())), r = n.cache.get, a = n.cache.set, s = l, l(c);
1695
1267
  }
1696
- function s(e) {
1268
+ function l(e) {
1697
1269
  let t = r(e);
1698
1270
  if (t) return t;
1699
- let a = rs(e, n);
1700
- return i(e, a), a;
1271
+ let s = mergeClassList(e, n);
1272
+ return a(e, s), s;
1701
1273
  }
1702
1274
  return function() {
1703
- return a(os.apply(null, arguments));
1275
+ return s(twJoin.apply(null, arguments));
1704
1276
  };
1705
1277
  }
1706
- const Y = (e) => {
1278
+ var fromTheme = (e) => {
1707
1279
  let t = (t) => t[e] || [];
1708
1280
  return t.isThemeGetter = !0, t;
1709
- }, ls = /^\[(?:([a-z-]+):)?(.+)\]$/i, us = /^\d+\/\d+$/, ds = /* @__PURE__ */ new Set([
1710
- "px",
1711
- "full",
1712
- "screen"
1713
- ]), fs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ps = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ms = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, hs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, gs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => _s(e) || ds.has(e) || us.test(e), Z = (e) => Os(e, "length", ks), _s = (e) => !!e && !Number.isNaN(Number(e)), vs = (e) => Os(e, "number", _s), ys = (e) => !!e && Number.isInteger(Number(e)), bs = (e) => e.endsWith("%") && _s(e.slice(0, -1)), Q = (e) => ls.test(e), $ = (e) => fs.test(e), xs = /* @__PURE__ */ new Set([
1714
- "length",
1715
- "size",
1716
- "percentage"
1717
- ]), Ss = (e) => Os(e, xs, As), Cs = (e) => Os(e, "position", As), ws = /* @__PURE__ */ new Set(["image", "url"]), Ts = (e) => Os(e, ws, Ms), Es = (e) => Os(e, "", js), Ds = () => !0, Os = (e, t, n) => {
1718
- let r = ls.exec(e);
1719
- return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
1720
- }, ks = (e) => ps.test(e) && !ms.test(e), As = () => !1, js = (e) => hs.test(e), Ms = (e) => gs.test(e), Ns = () => {
1721
- let e = Y("colors"), t = Y("spacing"), n = Y("blur"), r = Y("brightness"), i = Y("borderColor"), a = Y("borderRadius"), o = Y("borderSpacing"), s = Y("borderWidth"), c = Y("contrast"), l = Y("grayscale"), u = Y("hueRotate"), d = Y("invert"), f = Y("gap"), p = Y("gradientColorStops"), m = Y("gradientColorStopPositions"), h = Y("inset"), g = Y("margin"), _ = Y("opacity"), v = Y("padding"), y = Y("saturate"), b = Y("scale"), x = Y("sepia"), ee = Y("skew"), S = Y("space"), te = Y("translate"), ne = () => [
1281
+ }, arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fractionRegex = /^\d+\/\d+$/, tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, isFraction = (e) => fractionRegex.test(e), isNumber = (e) => !!e && !Number.isNaN(Number(e)), isInteger = (e) => !!e && Number.isInteger(Number(e)), isPercent = (e) => e.endsWith("%") && isNumber(e.slice(0, -1)), isTshirtSize = (e) => tshirtUnitRegex.test(e), isAny = () => !0, isLengthOnly = (e) => lengthUnitRegex.test(e) && !colorFunctionRegex.test(e), isNever = () => !1, isShadow = (e) => shadowRegex.test(e), isImage = (e) => imageRegex.test(e), isAnyNonArbitrary = (e) => !isArbitraryValue(e) && !isArbitraryVariable(e), isArbitrarySize = (e) => getIsArbitraryValue(e, isLabelSize, isNever), isArbitraryValue = (e) => arbitraryValueRegex.test(e), isArbitraryLength = (e) => getIsArbitraryValue(e, isLabelLength, isLengthOnly), isArbitraryNumber = (e) => getIsArbitraryValue(e, isLabelNumber, isNumber), isArbitraryPosition = (e) => getIsArbitraryValue(e, isLabelPosition, isNever), isArbitraryImage = (e) => getIsArbitraryValue(e, isLabelImage, isImage), isArbitraryShadow = (e) => getIsArbitraryValue(e, isLabelShadow, isShadow), isArbitraryVariable = (e) => arbitraryVariableRegex.test(e), isArbitraryVariableLength = (e) => getIsArbitraryVariable(e, isLabelLength), isArbitraryVariableFamilyName = (e) => getIsArbitraryVariable(e, isLabelFamilyName), isArbitraryVariablePosition = (e) => getIsArbitraryVariable(e, isLabelPosition), isArbitraryVariableSize = (e) => getIsArbitraryVariable(e, isLabelSize), isArbitraryVariableImage = (e) => getIsArbitraryVariable(e, isLabelImage), isArbitraryVariableShadow = (e) => getIsArbitraryVariable(e, isLabelShadow, !0), getIsArbitraryValue = (e, t, n) => {
1282
+ let r = arbitraryValueRegex.exec(e);
1283
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
1284
+ }, getIsArbitraryVariable = (e, t, n = !1) => {
1285
+ let r = arbitraryVariableRegex.exec(e);
1286
+ return r ? r[1] ? t(r[1]) : n : !1;
1287
+ }, isLabelPosition = (e) => e === "position" || e === "percentage", isLabelImage = (e) => e === "image" || e === "url", isLabelSize = (e) => e === "length" || e === "size" || e === "bg-size", isLabelLength = (e) => e === "length", isLabelNumber = (e) => e === "number", isLabelFamilyName = (e) => e === "family-name", isLabelShadow = (e) => e === "shadow", twMerge = /* @__PURE__ */ createTailwindMerge(() => {
1288
+ let e = fromTheme("color"), t = fromTheme("font"), n = fromTheme("text"), r = fromTheme("font-weight"), a = fromTheme("tracking"), s = fromTheme("leading"), c = fromTheme("breakpoint"), l = fromTheme("container"), u = fromTheme("spacing"), d = fromTheme("radius"), p = fromTheme("shadow"), m = fromTheme("inset-shadow"), _ = fromTheme("text-shadow"), b = fromTheme("drop-shadow"), x = fromTheme("blur"), C = fromTheme("perspective"), w = fromTheme("aspect"), T = fromTheme("ease"), E = fromTheme("animate"), D = () => [
1722
1289
  "auto",
1723
- "contain",
1724
- "none"
1725
- ], C = () => [
1290
+ "avoid",
1291
+ "all",
1292
+ "avoid-page",
1293
+ "page",
1294
+ "left",
1295
+ "right",
1296
+ "column"
1297
+ ], O = () => [
1298
+ "center",
1299
+ "top",
1300
+ "bottom",
1301
+ "left",
1302
+ "right",
1303
+ "top-left",
1304
+ "left-top",
1305
+ "top-right",
1306
+ "right-top",
1307
+ "bottom-right",
1308
+ "right-bottom",
1309
+ "bottom-left",
1310
+ "left-bottom"
1311
+ ], k = () => [
1312
+ ...O(),
1313
+ isArbitraryVariable,
1314
+ isArbitraryValue
1315
+ ], j = () => [
1726
1316
  "auto",
1727
1317
  "hidden",
1728
1318
  "clip",
1729
1319
  "visible",
1730
1320
  "scroll"
1731
- ], w = () => [
1321
+ ], M = () => [
1732
1322
  "auto",
1733
- Q,
1734
- t
1735
- ], T = () => [Q, t], E = () => [
1736
- "",
1737
- X,
1738
- Z
1739
- ], D = () => [
1323
+ "contain",
1324
+ "none"
1325
+ ], N = () => [
1326
+ isArbitraryVariable,
1327
+ isArbitraryValue,
1328
+ u
1329
+ ], P = () => [
1330
+ isFraction,
1331
+ "full",
1740
1332
  "auto",
1741
- _s,
1742
- Q
1743
- ], re = () => [
1744
- "bottom",
1333
+ ...N()
1334
+ ], F = () => [
1335
+ isInteger,
1336
+ "none",
1337
+ "subgrid",
1338
+ isArbitraryVariable,
1339
+ isArbitraryValue
1340
+ ], I = () => [
1341
+ "auto",
1342
+ { span: [
1343
+ "full",
1344
+ isInteger,
1345
+ isArbitraryVariable,
1346
+ isArbitraryValue
1347
+ ] },
1348
+ isInteger,
1349
+ isArbitraryVariable,
1350
+ isArbitraryValue
1351
+ ], L = () => [
1352
+ isInteger,
1353
+ "auto",
1354
+ isArbitraryVariable,
1355
+ isArbitraryValue
1356
+ ], R = () => [
1357
+ "auto",
1358
+ "min",
1359
+ "max",
1360
+ "fr",
1361
+ isArbitraryVariable,
1362
+ isArbitraryValue
1363
+ ], z = () => [
1364
+ "start",
1365
+ "end",
1745
1366
  "center",
1746
- "left",
1747
- "left-bottom",
1748
- "left-top",
1749
- "right",
1750
- "right-bottom",
1751
- "right-top",
1752
- "top"
1753
- ], O = () => [
1367
+ "between",
1368
+ "around",
1369
+ "evenly",
1370
+ "stretch",
1371
+ "baseline",
1372
+ "center-safe",
1373
+ "end-safe"
1374
+ ], B = () => [
1375
+ "start",
1376
+ "end",
1377
+ "center",
1378
+ "stretch",
1379
+ "center-safe",
1380
+ "end-safe"
1381
+ ], V = () => ["auto", ...N()], H = () => [
1382
+ isFraction,
1383
+ "auto",
1384
+ "full",
1385
+ "dvw",
1386
+ "dvh",
1387
+ "lvw",
1388
+ "lvh",
1389
+ "svw",
1390
+ "svh",
1391
+ "min",
1392
+ "max",
1393
+ "fit",
1394
+ ...N()
1395
+ ], U = () => [
1396
+ e,
1397
+ isArbitraryVariable,
1398
+ isArbitraryValue
1399
+ ], W = () => [
1400
+ ...O(),
1401
+ isArbitraryVariablePosition,
1402
+ isArbitraryPosition,
1403
+ { position: [isArbitraryVariable, isArbitraryValue] }
1404
+ ], ci = () => ["no-repeat", { repeat: [
1405
+ "",
1406
+ "x",
1407
+ "y",
1408
+ "space",
1409
+ "round"
1410
+ ] }], li = () => [
1411
+ "auto",
1412
+ "cover",
1413
+ "contain",
1414
+ isArbitraryVariableSize,
1415
+ isArbitrarySize,
1416
+ { size: [isArbitraryVariable, isArbitraryValue] }
1417
+ ], G = () => [
1418
+ isPercent,
1419
+ isArbitraryVariableLength,
1420
+ isArbitraryLength
1421
+ ], K = () => [
1422
+ "",
1423
+ "none",
1424
+ "full",
1425
+ d,
1426
+ isArbitraryVariable,
1427
+ isArbitraryValue
1428
+ ], q = () => [
1429
+ "",
1430
+ isNumber,
1431
+ isArbitraryVariableLength,
1432
+ isArbitraryLength
1433
+ ], J = () => [
1754
1434
  "solid",
1755
1435
  "dashed",
1756
1436
  "dotted",
1757
- "double",
1758
- "none"
1759
- ], ie = () => [
1437
+ "double"
1438
+ ], ui = () => [
1760
1439
  "normal",
1761
1440
  "multiply",
1762
1441
  "screen",
@@ -1773,80 +1452,117 @@ const Y = (e) => {
1773
1452
  "saturation",
1774
1453
  "color",
1775
1454
  "luminosity"
1776
- ], k = () => [
1777
- "start",
1778
- "end",
1779
- "center",
1780
- "between",
1781
- "around",
1782
- "evenly",
1783
- "stretch"
1784
- ], A = () => [
1455
+ ], Y = () => [
1456
+ isNumber,
1457
+ isPercent,
1458
+ isArbitraryVariablePosition,
1459
+ isArbitraryPosition
1460
+ ], di = () => [
1785
1461
  "",
1786
- "0",
1787
- Q
1788
- ], j = () => [
1789
- "auto",
1790
- "avoid",
1791
- "all",
1792
- "avoid-page",
1793
- "page",
1794
- "left",
1795
- "right",
1796
- "column"
1797
- ], M = () => [_s, Q];
1462
+ "none",
1463
+ x,
1464
+ isArbitraryVariable,
1465
+ isArbitraryValue
1466
+ ], X = () => [
1467
+ "none",
1468
+ isNumber,
1469
+ isArbitraryVariable,
1470
+ isArbitraryValue
1471
+ ], Z = () => [
1472
+ "none",
1473
+ isNumber,
1474
+ isArbitraryVariable,
1475
+ isArbitraryValue
1476
+ ], Q = () => [
1477
+ isNumber,
1478
+ isArbitraryVariable,
1479
+ isArbitraryValue
1480
+ ], $ = () => [
1481
+ isFraction,
1482
+ "full",
1483
+ ...N()
1484
+ ];
1798
1485
  return {
1799
1486
  cacheSize: 500,
1800
- separator: ":",
1801
1487
  theme: {
1802
- colors: [Ds],
1803
- spacing: [X, Z],
1804
- blur: [
1805
- "none",
1806
- "",
1807
- $,
1808
- Q
1488
+ animate: [
1489
+ "spin",
1490
+ "ping",
1491
+ "pulse",
1492
+ "bounce"
1493
+ ],
1494
+ aspect: ["video"],
1495
+ blur: [isTshirtSize],
1496
+ breakpoint: [isTshirtSize],
1497
+ color: [isAny],
1498
+ container: [isTshirtSize],
1499
+ "drop-shadow": [isTshirtSize],
1500
+ ease: [
1501
+ "in",
1502
+ "out",
1503
+ "in-out"
1504
+ ],
1505
+ font: [isAnyNonArbitrary],
1506
+ "font-weight": [
1507
+ "thin",
1508
+ "extralight",
1509
+ "light",
1510
+ "normal",
1511
+ "medium",
1512
+ "semibold",
1513
+ "bold",
1514
+ "extrabold",
1515
+ "black"
1809
1516
  ],
1810
- brightness: M(),
1811
- borderColor: [e],
1812
- borderRadius: [
1517
+ "inset-shadow": [isTshirtSize],
1518
+ leading: [
1813
1519
  "none",
1814
- "",
1815
- "full",
1816
- $,
1817
- Q
1520
+ "tight",
1521
+ "snug",
1522
+ "normal",
1523
+ "relaxed",
1524
+ "loose"
1818
1525
  ],
1819
- borderSpacing: T(),
1820
- borderWidth: E(),
1821
- contrast: M(),
1822
- grayscale: A(),
1823
- hueRotate: M(),
1824
- invert: A(),
1825
- gap: T(),
1826
- gradientColorStops: [e],
1827
- gradientColorStopPositions: [bs, Z],
1828
- inset: w(),
1829
- margin: w(),
1830
- opacity: M(),
1831
- padding: T(),
1832
- saturate: M(),
1833
- scale: M(),
1834
- sepia: A(),
1835
- skew: M(),
1836
- space: T(),
1837
- translate: T()
1526
+ perspective: [
1527
+ "dramatic",
1528
+ "near",
1529
+ "normal",
1530
+ "midrange",
1531
+ "distant",
1532
+ "none"
1533
+ ],
1534
+ radius: [isTshirtSize],
1535
+ shadow: [isTshirtSize],
1536
+ spacing: ["px", isNumber],
1537
+ text: [isTshirtSize],
1538
+ "text-shadow": [isTshirtSize],
1539
+ tracking: [
1540
+ "tighter",
1541
+ "tight",
1542
+ "normal",
1543
+ "wide",
1544
+ "wider",
1545
+ "widest"
1546
+ ]
1838
1547
  },
1839
1548
  classGroups: {
1840
1549
  aspect: [{ aspect: [
1841
1550
  "auto",
1842
1551
  "square",
1843
- "video",
1844
- Q
1552
+ isFraction,
1553
+ isArbitraryValue,
1554
+ isArbitraryVariable,
1555
+ w
1845
1556
  ] }],
1846
1557
  container: ["container"],
1847
- columns: [{ columns: [$] }],
1848
- "break-after": [{ "break-after": j() }],
1849
- "break-before": [{ "break-before": j() }],
1558
+ columns: [{ columns: [
1559
+ isNumber,
1560
+ isArbitraryValue,
1561
+ isArbitraryVariable,
1562
+ l
1563
+ ] }],
1564
+ "break-after": [{ "break-after": D() }],
1565
+ "break-before": [{ "break-before": D() }],
1850
1566
  "break-inside": [{ "break-inside": [
1851
1567
  "auto",
1852
1568
  "avoid",
@@ -1878,6 +1594,7 @@ const Y = (e) => {
1878
1594
  "list-item",
1879
1595
  "hidden"
1880
1596
  ],
1597
+ sr: ["sr-only", "not-sr-only"],
1881
1598
  float: [{ float: [
1882
1599
  "right",
1883
1600
  "left",
@@ -1901,13 +1618,13 @@ const Y = (e) => {
1901
1618
  "none",
1902
1619
  "scale-down"
1903
1620
  ] }],
1904
- "object-position": [{ object: [...re(), Q] }],
1905
- overflow: [{ overflow: C() }],
1906
- "overflow-x": [{ "overflow-x": C() }],
1907
- "overflow-y": [{ "overflow-y": C() }],
1908
- overscroll: [{ overscroll: ne() }],
1909
- "overscroll-x": [{ "overscroll-x": ne() }],
1910
- "overscroll-y": [{ "overscroll-y": ne() }],
1621
+ "object-position": [{ object: k() }],
1622
+ overflow: [{ overflow: j() }],
1623
+ "overflow-x": [{ "overflow-x": j() }],
1624
+ "overflow-y": [{ "overflow-y": j() }],
1625
+ overscroll: [{ overscroll: M() }],
1626
+ "overscroll-x": [{ "overscroll-x": M() }],
1627
+ "overscroll-y": [{ "overscroll-y": M() }],
1911
1628
  position: [
1912
1629
  "static",
1913
1630
  "fixed",
@@ -1915,26 +1632,33 @@ const Y = (e) => {
1915
1632
  "relative",
1916
1633
  "sticky"
1917
1634
  ],
1918
- inset: [{ inset: [h] }],
1919
- "inset-x": [{ "inset-x": [h] }],
1920
- "inset-y": [{ "inset-y": [h] }],
1921
- start: [{ start: [h] }],
1922
- end: [{ end: [h] }],
1923
- top: [{ top: [h] }],
1924
- right: [{ right: [h] }],
1925
- bottom: [{ bottom: [h] }],
1926
- left: [{ left: [h] }],
1635
+ inset: [{ inset: P() }],
1636
+ "inset-x": [{ "inset-x": P() }],
1637
+ "inset-y": [{ "inset-y": P() }],
1638
+ start: [{ start: P() }],
1639
+ end: [{ end: P() }],
1640
+ top: [{ top: P() }],
1641
+ right: [{ right: P() }],
1642
+ bottom: [{ bottom: P() }],
1643
+ left: [{ left: P() }],
1927
1644
  visibility: [
1928
1645
  "visible",
1929
1646
  "invisible",
1930
1647
  "collapse"
1931
1648
  ],
1932
1649
  z: [{ z: [
1650
+ isInteger,
1651
+ "auto",
1652
+ isArbitraryVariable,
1653
+ isArbitraryValue
1654
+ ] }],
1655
+ basis: [{ basis: [
1656
+ isFraction,
1657
+ "full",
1933
1658
  "auto",
1934
- ys,
1935
- Q
1659
+ l,
1660
+ ...N()
1936
1661
  ] }],
1937
- basis: [{ basis: w() }],
1938
1662
  "flex-direction": [{ flex: [
1939
1663
  "row",
1940
1664
  "row-reverse",
@@ -1942,46 +1666,46 @@ const Y = (e) => {
1942
1666
  "col-reverse"
1943
1667
  ] }],
1944
1668
  "flex-wrap": [{ flex: [
1669
+ "nowrap",
1945
1670
  "wrap",
1946
- "wrap-reverse",
1947
- "nowrap"
1671
+ "wrap-reverse"
1948
1672
  ] }],
1949
1673
  flex: [{ flex: [
1950
- "1",
1674
+ isNumber,
1675
+ isFraction,
1951
1676
  "auto",
1952
1677
  "initial",
1953
1678
  "none",
1954
- Q
1679
+ isArbitraryValue
1680
+ ] }],
1681
+ grow: [{ grow: [
1682
+ "",
1683
+ isNumber,
1684
+ isArbitraryVariable,
1685
+ isArbitraryValue
1686
+ ] }],
1687
+ shrink: [{ shrink: [
1688
+ "",
1689
+ isNumber,
1690
+ isArbitraryVariable,
1691
+ isArbitraryValue
1955
1692
  ] }],
1956
- grow: [{ grow: A() }],
1957
- shrink: [{ shrink: A() }],
1958
1693
  order: [{ order: [
1694
+ isInteger,
1959
1695
  "first",
1960
1696
  "last",
1961
1697
  "none",
1962
- ys,
1963
- Q
1964
- ] }],
1965
- "grid-cols": [{ "grid-cols": [Ds] }],
1966
- "col-start-end": [{ col: [
1967
- "auto",
1968
- { span: [
1969
- "full",
1970
- ys,
1971
- Q
1972
- ] },
1973
- Q
1974
- ] }],
1975
- "col-start": [{ "col-start": D() }],
1976
- "col-end": [{ "col-end": D() }],
1977
- "grid-rows": [{ "grid-rows": [Ds] }],
1978
- "row-start-end": [{ row: [
1979
- "auto",
1980
- { span: [ys, Q] },
1981
- Q
1982
- ] }],
1983
- "row-start": [{ "row-start": D() }],
1984
- "row-end": [{ "row-end": D() }],
1698
+ isArbitraryVariable,
1699
+ isArbitraryValue
1700
+ ] }],
1701
+ "grid-cols": [{ "grid-cols": F() }],
1702
+ "col-start-end": [{ col: I() }],
1703
+ "col-start": [{ "col-start": L() }],
1704
+ "col-end": [{ "col-end": L() }],
1705
+ "grid-rows": [{ "grid-rows": F() }],
1706
+ "row-start-end": [{ row: I() }],
1707
+ "row-start": [{ "row-start": L() }],
1708
+ "row-end": [{ "row-end": L() }],
1985
1709
  "grid-flow": [{ "grid-flow": [
1986
1710
  "row",
1987
1711
  "col",
@@ -1989,183 +1713,113 @@ const Y = (e) => {
1989
1713
  "row-dense",
1990
1714
  "col-dense"
1991
1715
  ] }],
1992
- "auto-cols": [{ "auto-cols": [
1993
- "auto",
1994
- "min",
1995
- "max",
1996
- "fr",
1997
- Q
1998
- ] }],
1999
- "auto-rows": [{ "auto-rows": [
2000
- "auto",
2001
- "min",
2002
- "max",
2003
- "fr",
2004
- Q
2005
- ] }],
2006
- gap: [{ gap: [f] }],
2007
- "gap-x": [{ "gap-x": [f] }],
2008
- "gap-y": [{ "gap-y": [f] }],
2009
- "justify-content": [{ justify: ["normal", ...k()] }],
2010
- "justify-items": [{ "justify-items": [
2011
- "start",
2012
- "end",
2013
- "center",
2014
- "stretch"
2015
- ] }],
2016
- "justify-self": [{ "justify-self": [
2017
- "auto",
2018
- "start",
2019
- "end",
2020
- "center",
2021
- "stretch"
2022
- ] }],
2023
- "align-content": [{ content: [
2024
- "normal",
2025
- ...k(),
2026
- "baseline"
2027
- ] }],
2028
- "align-items": [{ items: [
2029
- "start",
2030
- "end",
2031
- "center",
2032
- "baseline",
2033
- "stretch"
2034
- ] }],
1716
+ "auto-cols": [{ "auto-cols": R() }],
1717
+ "auto-rows": [{ "auto-rows": R() }],
1718
+ gap: [{ gap: N() }],
1719
+ "gap-x": [{ "gap-x": N() }],
1720
+ "gap-y": [{ "gap-y": N() }],
1721
+ "justify-content": [{ justify: [...z(), "normal"] }],
1722
+ "justify-items": [{ "justify-items": [...B(), "normal"] }],
1723
+ "justify-self": [{ "justify-self": ["auto", ...B()] }],
1724
+ "align-content": [{ content: ["normal", ...z()] }],
1725
+ "align-items": [{ items: [...B(), { baseline: ["", "last"] }] }],
2035
1726
  "align-self": [{ self: [
2036
1727
  "auto",
2037
- "start",
2038
- "end",
2039
- "center",
2040
- "stretch",
2041
- "baseline"
2042
- ] }],
2043
- "place-content": [{ "place-content": [...k(), "baseline"] }],
2044
- "place-items": [{ "place-items": [
2045
- "start",
2046
- "end",
2047
- "center",
2048
- "baseline",
2049
- "stretch"
2050
- ] }],
2051
- "place-self": [{ "place-self": [
2052
- "auto",
2053
- "start",
2054
- "end",
2055
- "center",
2056
- "stretch"
2057
- ] }],
2058
- p: [{ p: [v] }],
2059
- px: [{ px: [v] }],
2060
- py: [{ py: [v] }],
2061
- ps: [{ ps: [v] }],
2062
- pe: [{ pe: [v] }],
2063
- pt: [{ pt: [v] }],
2064
- pr: [{ pr: [v] }],
2065
- pb: [{ pb: [v] }],
2066
- pl: [{ pl: [v] }],
2067
- m: [{ m: [g] }],
2068
- mx: [{ mx: [g] }],
2069
- my: [{ my: [g] }],
2070
- ms: [{ ms: [g] }],
2071
- me: [{ me: [g] }],
2072
- mt: [{ mt: [g] }],
2073
- mr: [{ mr: [g] }],
2074
- mb: [{ mb: [g] }],
2075
- ml: [{ ml: [g] }],
2076
- "space-x": [{ "space-x": [S] }],
1728
+ ...B(),
1729
+ { baseline: ["", "last"] }
1730
+ ] }],
1731
+ "place-content": [{ "place-content": z() }],
1732
+ "place-items": [{ "place-items": [...B(), "baseline"] }],
1733
+ "place-self": [{ "place-self": ["auto", ...B()] }],
1734
+ p: [{ p: N() }],
1735
+ px: [{ px: N() }],
1736
+ py: [{ py: N() }],
1737
+ ps: [{ ps: N() }],
1738
+ pe: [{ pe: N() }],
1739
+ pt: [{ pt: N() }],
1740
+ pr: [{ pr: N() }],
1741
+ pb: [{ pb: N() }],
1742
+ pl: [{ pl: N() }],
1743
+ m: [{ m: V() }],
1744
+ mx: [{ mx: V() }],
1745
+ my: [{ my: V() }],
1746
+ ms: [{ ms: V() }],
1747
+ me: [{ me: V() }],
1748
+ mt: [{ mt: V() }],
1749
+ mr: [{ mr: V() }],
1750
+ mb: [{ mb: V() }],
1751
+ ml: [{ ml: V() }],
1752
+ "space-x": [{ "space-x": N() }],
2077
1753
  "space-x-reverse": ["space-x-reverse"],
2078
- "space-y": [{ "space-y": [S] }],
1754
+ "space-y": [{ "space-y": N() }],
2079
1755
  "space-y-reverse": ["space-y-reverse"],
1756
+ size: [{ size: H() }],
2080
1757
  w: [{ w: [
2081
- "auto",
2082
- "min",
2083
- "max",
2084
- "fit",
2085
- "svw",
2086
- "lvw",
2087
- "dvw",
2088
- Q,
2089
- t
1758
+ l,
1759
+ "screen",
1760
+ ...H()
2090
1761
  ] }],
2091
1762
  "min-w": [{ "min-w": [
2092
- Q,
2093
- t,
2094
- "min",
2095
- "max",
2096
- "fit"
1763
+ l,
1764
+ "screen",
1765
+ "none",
1766
+ ...H()
2097
1767
  ] }],
2098
1768
  "max-w": [{ "max-w": [
2099
- Q,
2100
- t,
1769
+ l,
1770
+ "screen",
2101
1771
  "none",
2102
- "full",
2103
- "min",
2104
- "max",
2105
- "fit",
2106
1772
  "prose",
2107
- { screen: [$] },
2108
- $
1773
+ { screen: [c] },
1774
+ ...H()
2109
1775
  ] }],
2110
1776
  h: [{ h: [
2111
- Q,
2112
- t,
2113
- "auto",
2114
- "min",
2115
- "max",
2116
- "fit",
2117
- "svh",
2118
- "lvh",
2119
- "dvh"
1777
+ "screen",
1778
+ "lh",
1779
+ ...H()
2120
1780
  ] }],
2121
1781
  "min-h": [{ "min-h": [
2122
- Q,
2123
- t,
2124
- "min",
2125
- "max",
2126
- "fit",
2127
- "svh",
2128
- "lvh",
2129
- "dvh"
1782
+ "screen",
1783
+ "lh",
1784
+ "none",
1785
+ ...H()
2130
1786
  ] }],
2131
1787
  "max-h": [{ "max-h": [
2132
- Q,
2133
- t,
2134
- "min",
2135
- "max",
2136
- "fit",
2137
- "svh",
2138
- "lvh",
2139
- "dvh"
2140
- ] }],
2141
- size: [{ size: [
2142
- Q,
2143
- t,
2144
- "auto",
2145
- "min",
2146
- "max",
2147
- "fit"
1788
+ "screen",
1789
+ "lh",
1790
+ ...H()
2148
1791
  ] }],
2149
1792
  "font-size": [{ text: [
2150
1793
  "base",
2151
- $,
2152
- Z
1794
+ n,
1795
+ isArbitraryVariableLength,
1796
+ isArbitraryLength
2153
1797
  ] }],
2154
1798
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
2155
1799
  "font-style": ["italic", "not-italic"],
2156
1800
  "font-weight": [{ font: [
2157
- "thin",
2158
- "extralight",
2159
- "light",
1801
+ r,
1802
+ isArbitraryVariable,
1803
+ isArbitraryNumber
1804
+ ] }],
1805
+ "font-stretch": [{ "font-stretch": [
1806
+ "ultra-condensed",
1807
+ "extra-condensed",
1808
+ "condensed",
1809
+ "semi-condensed",
2160
1810
  "normal",
2161
- "medium",
2162
- "semibold",
2163
- "bold",
2164
- "extrabold",
2165
- "black",
2166
- vs
1811
+ "semi-expanded",
1812
+ "expanded",
1813
+ "extra-expanded",
1814
+ "ultra-expanded",
1815
+ isPercent,
1816
+ isArbitraryValue
1817
+ ] }],
1818
+ "font-family": [{ font: [
1819
+ isArbitraryVariableFamilyName,
1820
+ isArbitraryValue,
1821
+ t
2167
1822
  ] }],
2168
- "font-family": [{ font: [Ds] }],
2169
1823
  "fvn-normal": ["normal-nums"],
2170
1824
  "fvn-ordinal": ["ordinal"],
2171
1825
  "fvn-slashed-zero": ["slashed-zero"],
@@ -2173,39 +1827,30 @@ const Y = (e) => {
2173
1827
  "fvn-spacing": ["proportional-nums", "tabular-nums"],
2174
1828
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
2175
1829
  tracking: [{ tracking: [
2176
- "tighter",
2177
- "tight",
2178
- "normal",
2179
- "wide",
2180
- "wider",
2181
- "widest",
2182
- Q
1830
+ a,
1831
+ isArbitraryVariable,
1832
+ isArbitraryValue
2183
1833
  ] }],
2184
1834
  "line-clamp": [{ "line-clamp": [
1835
+ isNumber,
2185
1836
  "none",
2186
- _s,
2187
- vs
1837
+ isArbitraryVariable,
1838
+ isArbitraryNumber
2188
1839
  ] }],
2189
- leading: [{ leading: [
1840
+ leading: [{ leading: [s, ...N()] }],
1841
+ "list-image": [{ "list-image": [
2190
1842
  "none",
2191
- "tight",
2192
- "snug",
2193
- "normal",
2194
- "relaxed",
2195
- "loose",
2196
- X,
2197
- Q
1843
+ isArbitraryVariable,
1844
+ isArbitraryValue
2198
1845
  ] }],
2199
- "list-image": [{ "list-image": ["none", Q] }],
1846
+ "list-style-position": [{ list: ["inside", "outside"] }],
2200
1847
  "list-style-type": [{ list: [
2201
- "none",
2202
1848
  "disc",
2203
1849
  "decimal",
2204
- Q
1850
+ "none",
1851
+ isArbitraryVariable,
1852
+ isArbitraryValue
2205
1853
  ] }],
2206
- "list-style-position": [{ list: ["inside", "outside"] }],
2207
- "placeholder-color": [{ placeholder: [e] }],
2208
- "placeholder-opacity": [{ "placeholder-opacity": [_] }],
2209
1854
  "text-alignment": [{ text: [
2210
1855
  "left",
2211
1856
  "center",
@@ -2214,27 +1859,29 @@ const Y = (e) => {
2214
1859
  "start",
2215
1860
  "end"
2216
1861
  ] }],
2217
- "text-color": [{ text: [e] }],
2218
- "text-opacity": [{ "text-opacity": [_] }],
1862
+ "placeholder-color": [{ placeholder: U() }],
1863
+ "text-color": [{ text: U() }],
2219
1864
  "text-decoration": [
2220
1865
  "underline",
2221
1866
  "overline",
2222
1867
  "line-through",
2223
1868
  "no-underline"
2224
1869
  ],
2225
- "text-decoration-style": [{ decoration: [...O(), "wavy"] }],
1870
+ "text-decoration-style": [{ decoration: [...J(), "wavy"] }],
2226
1871
  "text-decoration-thickness": [{ decoration: [
2227
- "auto",
1872
+ isNumber,
2228
1873
  "from-font",
2229
- X,
2230
- Z
1874
+ "auto",
1875
+ isArbitraryVariable,
1876
+ isArbitraryLength
2231
1877
  ] }],
1878
+ "text-decoration-color": [{ decoration: U() }],
2232
1879
  "underline-offset": [{ "underline-offset": [
1880
+ isNumber,
2233
1881
  "auto",
2234
- X,
2235
- Q
1882
+ isArbitraryVariable,
1883
+ isArbitraryValue
2236
1884
  ] }],
2237
- "text-decoration-color": [{ decoration: [e] }],
2238
1885
  "text-transform": [
2239
1886
  "uppercase",
2240
1887
  "lowercase",
@@ -2252,7 +1899,7 @@ const Y = (e) => {
2252
1899
  "balance",
2253
1900
  "pretty"
2254
1901
  ] }],
2255
- indent: [{ indent: T() }],
1902
+ indent: [{ indent: N() }],
2256
1903
  "vertical-align": [{ align: [
2257
1904
  "baseline",
2258
1905
  "top",
@@ -2262,7 +1909,8 @@ const Y = (e) => {
2262
1909
  "text-bottom",
2263
1910
  "sub",
2264
1911
  "super",
2265
- Q
1912
+ isArbitraryVariable,
1913
+ isArbitraryValue
2266
1914
  ] }],
2267
1915
  whitespace: [{ whitespace: [
2268
1916
  "normal",
@@ -2278,12 +1926,21 @@ const Y = (e) => {
2278
1926
  "all",
2279
1927
  "keep"
2280
1928
  ] }],
1929
+ wrap: [{ wrap: [
1930
+ "break-word",
1931
+ "anywhere",
1932
+ "normal"
1933
+ ] }],
2281
1934
  hyphens: [{ hyphens: [
2282
1935
  "none",
2283
1936
  "manual",
2284
1937
  "auto"
2285
1938
  ] }],
2286
- content: [{ content: ["none", Q] }],
1939
+ content: [{ content: [
1940
+ "none",
1941
+ isArbitraryVariable,
1942
+ isArbitraryValue
1943
+ ] }],
2287
1944
  "bg-attachment": [{ bg: [
2288
1945
  "fixed",
2289
1946
  "local",
@@ -2295,199 +1952,429 @@ const Y = (e) => {
2295
1952
  "content",
2296
1953
  "text"
2297
1954
  ] }],
2298
- "bg-opacity": [{ "bg-opacity": [_] }],
2299
1955
  "bg-origin": [{ "bg-origin": [
2300
1956
  "border",
2301
1957
  "padding",
2302
1958
  "content"
2303
1959
  ] }],
2304
- "bg-position": [{ bg: [...re(), Cs] }],
2305
- "bg-repeat": [{ bg: ["no-repeat", { repeat: [
2306
- "",
2307
- "x",
2308
- "y",
2309
- "round",
2310
- "space"
2311
- ] }] }],
2312
- "bg-size": [{ bg: [
2313
- "auto",
2314
- "cover",
2315
- "contain",
2316
- Ss
2317
- ] }],
1960
+ "bg-position": [{ bg: W() }],
1961
+ "bg-repeat": [{ bg: ci() }],
1962
+ "bg-size": [{ bg: li() }],
2318
1963
  "bg-image": [{ bg: [
2319
1964
  "none",
2320
- { "gradient-to": [
2321
- "t",
2322
- "tr",
2323
- "r",
2324
- "br",
2325
- "b",
2326
- "bl",
2327
- "l",
2328
- "tl"
2329
- ] },
2330
- Ts
2331
- ] }],
2332
- "bg-color": [{ bg: [e] }],
2333
- "gradient-from-pos": [{ from: [m] }],
2334
- "gradient-via-pos": [{ via: [m] }],
2335
- "gradient-to-pos": [{ to: [m] }],
2336
- "gradient-from": [{ from: [p] }],
2337
- "gradient-via": [{ via: [p] }],
2338
- "gradient-to": [{ to: [p] }],
2339
- rounded: [{ rounded: [a] }],
2340
- "rounded-s": [{ "rounded-s": [a] }],
2341
- "rounded-e": [{ "rounded-e": [a] }],
2342
- "rounded-t": [{ "rounded-t": [a] }],
2343
- "rounded-r": [{ "rounded-r": [a] }],
2344
- "rounded-b": [{ "rounded-b": [a] }],
2345
- "rounded-l": [{ "rounded-l": [a] }],
2346
- "rounded-ss": [{ "rounded-ss": [a] }],
2347
- "rounded-se": [{ "rounded-se": [a] }],
2348
- "rounded-ee": [{ "rounded-ee": [a] }],
2349
- "rounded-es": [{ "rounded-es": [a] }],
2350
- "rounded-tl": [{ "rounded-tl": [a] }],
2351
- "rounded-tr": [{ "rounded-tr": [a] }],
2352
- "rounded-br": [{ "rounded-br": [a] }],
2353
- "rounded-bl": [{ "rounded-bl": [a] }],
2354
- "border-w": [{ border: [s] }],
2355
- "border-w-x": [{ "border-x": [s] }],
2356
- "border-w-y": [{ "border-y": [s] }],
2357
- "border-w-s": [{ "border-s": [s] }],
2358
- "border-w-e": [{ "border-e": [s] }],
2359
- "border-w-t": [{ "border-t": [s] }],
2360
- "border-w-r": [{ "border-r": [s] }],
2361
- "border-w-b": [{ "border-b": [s] }],
2362
- "border-w-l": [{ "border-l": [s] }],
2363
- "border-opacity": [{ "border-opacity": [_] }],
2364
- "border-style": [{ border: [...O(), "hidden"] }],
2365
- "divide-x": [{ "divide-x": [s] }],
1965
+ {
1966
+ linear: [
1967
+ { to: [
1968
+ "t",
1969
+ "tr",
1970
+ "r",
1971
+ "br",
1972
+ "b",
1973
+ "bl",
1974
+ "l",
1975
+ "tl"
1976
+ ] },
1977
+ isInteger,
1978
+ isArbitraryVariable,
1979
+ isArbitraryValue
1980
+ ],
1981
+ radial: [
1982
+ "",
1983
+ isArbitraryVariable,
1984
+ isArbitraryValue
1985
+ ],
1986
+ conic: [
1987
+ isInteger,
1988
+ isArbitraryVariable,
1989
+ isArbitraryValue
1990
+ ]
1991
+ },
1992
+ isArbitraryVariableImage,
1993
+ isArbitraryImage
1994
+ ] }],
1995
+ "bg-color": [{ bg: U() }],
1996
+ "gradient-from-pos": [{ from: G() }],
1997
+ "gradient-via-pos": [{ via: G() }],
1998
+ "gradient-to-pos": [{ to: G() }],
1999
+ "gradient-from": [{ from: U() }],
2000
+ "gradient-via": [{ via: U() }],
2001
+ "gradient-to": [{ to: U() }],
2002
+ rounded: [{ rounded: K() }],
2003
+ "rounded-s": [{ "rounded-s": K() }],
2004
+ "rounded-e": [{ "rounded-e": K() }],
2005
+ "rounded-t": [{ "rounded-t": K() }],
2006
+ "rounded-r": [{ "rounded-r": K() }],
2007
+ "rounded-b": [{ "rounded-b": K() }],
2008
+ "rounded-l": [{ "rounded-l": K() }],
2009
+ "rounded-ss": [{ "rounded-ss": K() }],
2010
+ "rounded-se": [{ "rounded-se": K() }],
2011
+ "rounded-ee": [{ "rounded-ee": K() }],
2012
+ "rounded-es": [{ "rounded-es": K() }],
2013
+ "rounded-tl": [{ "rounded-tl": K() }],
2014
+ "rounded-tr": [{ "rounded-tr": K() }],
2015
+ "rounded-br": [{ "rounded-br": K() }],
2016
+ "rounded-bl": [{ "rounded-bl": K() }],
2017
+ "border-w": [{ border: q() }],
2018
+ "border-w-x": [{ "border-x": q() }],
2019
+ "border-w-y": [{ "border-y": q() }],
2020
+ "border-w-s": [{ "border-s": q() }],
2021
+ "border-w-e": [{ "border-e": q() }],
2022
+ "border-w-t": [{ "border-t": q() }],
2023
+ "border-w-r": [{ "border-r": q() }],
2024
+ "border-w-b": [{ "border-b": q() }],
2025
+ "border-w-l": [{ "border-l": q() }],
2026
+ "divide-x": [{ "divide-x": q() }],
2366
2027
  "divide-x-reverse": ["divide-x-reverse"],
2367
- "divide-y": [{ "divide-y": [s] }],
2028
+ "divide-y": [{ "divide-y": q() }],
2368
2029
  "divide-y-reverse": ["divide-y-reverse"],
2369
- "divide-opacity": [{ "divide-opacity": [_] }],
2370
- "divide-style": [{ divide: O() }],
2371
- "border-color": [{ border: [i] }],
2372
- "border-color-x": [{ "border-x": [i] }],
2373
- "border-color-y": [{ "border-y": [i] }],
2374
- "border-color-s": [{ "border-s": [i] }],
2375
- "border-color-e": [{ "border-e": [i] }],
2376
- "border-color-t": [{ "border-t": [i] }],
2377
- "border-color-r": [{ "border-r": [i] }],
2378
- "border-color-b": [{ "border-b": [i] }],
2379
- "border-color-l": [{ "border-l": [i] }],
2380
- "divide-color": [{ divide: [i] }],
2381
- "outline-style": [{ outline: ["", ...O()] }],
2382
- "outline-offset": [{ "outline-offset": [X, Q] }],
2383
- "outline-w": [{ outline: [X, Z] }],
2384
- "outline-color": [{ outline: [e] }],
2385
- "ring-w": [{ ring: E() }],
2386
- "ring-w-inset": ["ring-inset"],
2387
- "ring-color": [{ ring: [e] }],
2388
- "ring-opacity": [{ "ring-opacity": [_] }],
2389
- "ring-offset-w": [{ "ring-offset": [X, Z] }],
2390
- "ring-offset-color": [{ "ring-offset": [e] }],
2030
+ "border-style": [{ border: [
2031
+ ...J(),
2032
+ "hidden",
2033
+ "none"
2034
+ ] }],
2035
+ "divide-style": [{ divide: [
2036
+ ...J(),
2037
+ "hidden",
2038
+ "none"
2039
+ ] }],
2040
+ "border-color": [{ border: U() }],
2041
+ "border-color-x": [{ "border-x": U() }],
2042
+ "border-color-y": [{ "border-y": U() }],
2043
+ "border-color-s": [{ "border-s": U() }],
2044
+ "border-color-e": [{ "border-e": U() }],
2045
+ "border-color-t": [{ "border-t": U() }],
2046
+ "border-color-r": [{ "border-r": U() }],
2047
+ "border-color-b": [{ "border-b": U() }],
2048
+ "border-color-l": [{ "border-l": U() }],
2049
+ "divide-color": [{ divide: U() }],
2050
+ "outline-style": [{ outline: [
2051
+ ...J(),
2052
+ "none",
2053
+ "hidden"
2054
+ ] }],
2055
+ "outline-offset": [{ "outline-offset": [
2056
+ isNumber,
2057
+ isArbitraryVariable,
2058
+ isArbitraryValue
2059
+ ] }],
2060
+ "outline-w": [{ outline: [
2061
+ "",
2062
+ isNumber,
2063
+ isArbitraryVariableLength,
2064
+ isArbitraryLength
2065
+ ] }],
2066
+ "outline-color": [{ outline: U() }],
2391
2067
  shadow: [{ shadow: [
2392
2068
  "",
2393
- "inner",
2394
2069
  "none",
2395
- $,
2396
- Es
2070
+ p,
2071
+ isArbitraryVariableShadow,
2072
+ isArbitraryShadow
2073
+ ] }],
2074
+ "shadow-color": [{ shadow: U() }],
2075
+ "inset-shadow": [{ "inset-shadow": [
2076
+ "none",
2077
+ m,
2078
+ isArbitraryVariableShadow,
2079
+ isArbitraryShadow
2080
+ ] }],
2081
+ "inset-shadow-color": [{ "inset-shadow": U() }],
2082
+ "ring-w": [{ ring: q() }],
2083
+ "ring-w-inset": ["ring-inset"],
2084
+ "ring-color": [{ ring: U() }],
2085
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
2086
+ "ring-offset-color": [{ "ring-offset": U() }],
2087
+ "inset-ring-w": [{ "inset-ring": q() }],
2088
+ "inset-ring-color": [{ "inset-ring": U() }],
2089
+ "text-shadow": [{ "text-shadow": [
2090
+ "none",
2091
+ _,
2092
+ isArbitraryVariableShadow,
2093
+ isArbitraryShadow
2094
+ ] }],
2095
+ "text-shadow-color": [{ "text-shadow": U() }],
2096
+ opacity: [{ opacity: [
2097
+ isNumber,
2098
+ isArbitraryVariable,
2099
+ isArbitraryValue
2397
2100
  ] }],
2398
- "shadow-color": [{ shadow: [Ds] }],
2399
- opacity: [{ opacity: [_] }],
2400
2101
  "mix-blend": [{ "mix-blend": [
2401
- ...ie(),
2402
- "plus-lighter",
2403
- "plus-darker"
2404
- ] }],
2405
- "bg-blend": [{ "bg-blend": ie() }],
2406
- filter: [{ filter: ["", "none"] }],
2407
- blur: [{ blur: [n] }],
2408
- brightness: [{ brightness: [r] }],
2409
- contrast: [{ contrast: [c] }],
2102
+ ...ui(),
2103
+ "plus-darker",
2104
+ "plus-lighter"
2105
+ ] }],
2106
+ "bg-blend": [{ "bg-blend": ui() }],
2107
+ "mask-clip": [{ "mask-clip": [
2108
+ "border",
2109
+ "padding",
2110
+ "content",
2111
+ "fill",
2112
+ "stroke",
2113
+ "view"
2114
+ ] }, "mask-no-clip"],
2115
+ "mask-composite": [{ mask: [
2116
+ "add",
2117
+ "subtract",
2118
+ "intersect",
2119
+ "exclude"
2120
+ ] }],
2121
+ "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
2122
+ "mask-image-linear-from-pos": [{ "mask-linear-from": Y() }],
2123
+ "mask-image-linear-to-pos": [{ "mask-linear-to": Y() }],
2124
+ "mask-image-linear-from-color": [{ "mask-linear-from": U() }],
2125
+ "mask-image-linear-to-color": [{ "mask-linear-to": U() }],
2126
+ "mask-image-t-from-pos": [{ "mask-t-from": Y() }],
2127
+ "mask-image-t-to-pos": [{ "mask-t-to": Y() }],
2128
+ "mask-image-t-from-color": [{ "mask-t-from": U() }],
2129
+ "mask-image-t-to-color": [{ "mask-t-to": U() }],
2130
+ "mask-image-r-from-pos": [{ "mask-r-from": Y() }],
2131
+ "mask-image-r-to-pos": [{ "mask-r-to": Y() }],
2132
+ "mask-image-r-from-color": [{ "mask-r-from": U() }],
2133
+ "mask-image-r-to-color": [{ "mask-r-to": U() }],
2134
+ "mask-image-b-from-pos": [{ "mask-b-from": Y() }],
2135
+ "mask-image-b-to-pos": [{ "mask-b-to": Y() }],
2136
+ "mask-image-b-from-color": [{ "mask-b-from": U() }],
2137
+ "mask-image-b-to-color": [{ "mask-b-to": U() }],
2138
+ "mask-image-l-from-pos": [{ "mask-l-from": Y() }],
2139
+ "mask-image-l-to-pos": [{ "mask-l-to": Y() }],
2140
+ "mask-image-l-from-color": [{ "mask-l-from": U() }],
2141
+ "mask-image-l-to-color": [{ "mask-l-to": U() }],
2142
+ "mask-image-x-from-pos": [{ "mask-x-from": Y() }],
2143
+ "mask-image-x-to-pos": [{ "mask-x-to": Y() }],
2144
+ "mask-image-x-from-color": [{ "mask-x-from": U() }],
2145
+ "mask-image-x-to-color": [{ "mask-x-to": U() }],
2146
+ "mask-image-y-from-pos": [{ "mask-y-from": Y() }],
2147
+ "mask-image-y-to-pos": [{ "mask-y-to": Y() }],
2148
+ "mask-image-y-from-color": [{ "mask-y-from": U() }],
2149
+ "mask-image-y-to-color": [{ "mask-y-to": U() }],
2150
+ "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
2151
+ "mask-image-radial-from-pos": [{ "mask-radial-from": Y() }],
2152
+ "mask-image-radial-to-pos": [{ "mask-radial-to": Y() }],
2153
+ "mask-image-radial-from-color": [{ "mask-radial-from": U() }],
2154
+ "mask-image-radial-to-color": [{ "mask-radial-to": U() }],
2155
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
2156
+ "mask-image-radial-size": [{ "mask-radial": [{
2157
+ closest: ["side", "corner"],
2158
+ farthest: ["side", "corner"]
2159
+ }] }],
2160
+ "mask-image-radial-pos": [{ "mask-radial-at": O() }],
2161
+ "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
2162
+ "mask-image-conic-from-pos": [{ "mask-conic-from": Y() }],
2163
+ "mask-image-conic-to-pos": [{ "mask-conic-to": Y() }],
2164
+ "mask-image-conic-from-color": [{ "mask-conic-from": U() }],
2165
+ "mask-image-conic-to-color": [{ "mask-conic-to": U() }],
2166
+ "mask-mode": [{ mask: [
2167
+ "alpha",
2168
+ "luminance",
2169
+ "match"
2170
+ ] }],
2171
+ "mask-origin": [{ "mask-origin": [
2172
+ "border",
2173
+ "padding",
2174
+ "content",
2175
+ "fill",
2176
+ "stroke",
2177
+ "view"
2178
+ ] }],
2179
+ "mask-position": [{ mask: W() }],
2180
+ "mask-repeat": [{ mask: ci() }],
2181
+ "mask-size": [{ mask: li() }],
2182
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
2183
+ "mask-image": [{ mask: [
2184
+ "none",
2185
+ isArbitraryVariable,
2186
+ isArbitraryValue
2187
+ ] }],
2188
+ filter: [{ filter: [
2189
+ "",
2190
+ "none",
2191
+ isArbitraryVariable,
2192
+ isArbitraryValue
2193
+ ] }],
2194
+ blur: [{ blur: di() }],
2195
+ brightness: [{ brightness: [
2196
+ isNumber,
2197
+ isArbitraryVariable,
2198
+ isArbitraryValue
2199
+ ] }],
2200
+ contrast: [{ contrast: [
2201
+ isNumber,
2202
+ isArbitraryVariable,
2203
+ isArbitraryValue
2204
+ ] }],
2410
2205
  "drop-shadow": [{ "drop-shadow": [
2411
2206
  "",
2412
2207
  "none",
2413
- $,
2414
- Q
2415
- ] }],
2416
- grayscale: [{ grayscale: [l] }],
2417
- "hue-rotate": [{ "hue-rotate": [u] }],
2418
- invert: [{ invert: [d] }],
2419
- saturate: [{ saturate: [y] }],
2420
- sepia: [{ sepia: [x] }],
2421
- "backdrop-filter": [{ "backdrop-filter": ["", "none"] }],
2422
- "backdrop-blur": [{ "backdrop-blur": [n] }],
2423
- "backdrop-brightness": [{ "backdrop-brightness": [r] }],
2424
- "backdrop-contrast": [{ "backdrop-contrast": [c] }],
2425
- "backdrop-grayscale": [{ "backdrop-grayscale": [l] }],
2426
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [u] }],
2427
- "backdrop-invert": [{ "backdrop-invert": [d] }],
2428
- "backdrop-opacity": [{ "backdrop-opacity": [_] }],
2429
- "backdrop-saturate": [{ "backdrop-saturate": [y] }],
2430
- "backdrop-sepia": [{ "backdrop-sepia": [x] }],
2208
+ b,
2209
+ isArbitraryVariableShadow,
2210
+ isArbitraryShadow
2211
+ ] }],
2212
+ "drop-shadow-color": [{ "drop-shadow": U() }],
2213
+ grayscale: [{ grayscale: [
2214
+ "",
2215
+ isNumber,
2216
+ isArbitraryVariable,
2217
+ isArbitraryValue
2218
+ ] }],
2219
+ "hue-rotate": [{ "hue-rotate": [
2220
+ isNumber,
2221
+ isArbitraryVariable,
2222
+ isArbitraryValue
2223
+ ] }],
2224
+ invert: [{ invert: [
2225
+ "",
2226
+ isNumber,
2227
+ isArbitraryVariable,
2228
+ isArbitraryValue
2229
+ ] }],
2230
+ saturate: [{ saturate: [
2231
+ isNumber,
2232
+ isArbitraryVariable,
2233
+ isArbitraryValue
2234
+ ] }],
2235
+ sepia: [{ sepia: [
2236
+ "",
2237
+ isNumber,
2238
+ isArbitraryVariable,
2239
+ isArbitraryValue
2240
+ ] }],
2241
+ "backdrop-filter": [{ "backdrop-filter": [
2242
+ "",
2243
+ "none",
2244
+ isArbitraryVariable,
2245
+ isArbitraryValue
2246
+ ] }],
2247
+ "backdrop-blur": [{ "backdrop-blur": di() }],
2248
+ "backdrop-brightness": [{ "backdrop-brightness": [
2249
+ isNumber,
2250
+ isArbitraryVariable,
2251
+ isArbitraryValue
2252
+ ] }],
2253
+ "backdrop-contrast": [{ "backdrop-contrast": [
2254
+ isNumber,
2255
+ isArbitraryVariable,
2256
+ isArbitraryValue
2257
+ ] }],
2258
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
2259
+ "",
2260
+ isNumber,
2261
+ isArbitraryVariable,
2262
+ isArbitraryValue
2263
+ ] }],
2264
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
2265
+ isNumber,
2266
+ isArbitraryVariable,
2267
+ isArbitraryValue
2268
+ ] }],
2269
+ "backdrop-invert": [{ "backdrop-invert": [
2270
+ "",
2271
+ isNumber,
2272
+ isArbitraryVariable,
2273
+ isArbitraryValue
2274
+ ] }],
2275
+ "backdrop-opacity": [{ "backdrop-opacity": [
2276
+ isNumber,
2277
+ isArbitraryVariable,
2278
+ isArbitraryValue
2279
+ ] }],
2280
+ "backdrop-saturate": [{ "backdrop-saturate": [
2281
+ isNumber,
2282
+ isArbitraryVariable,
2283
+ isArbitraryValue
2284
+ ] }],
2285
+ "backdrop-sepia": [{ "backdrop-sepia": [
2286
+ "",
2287
+ isNumber,
2288
+ isArbitraryVariable,
2289
+ isArbitraryValue
2290
+ ] }],
2431
2291
  "border-collapse": [{ border: ["collapse", "separate"] }],
2432
- "border-spacing": [{ "border-spacing": [o] }],
2433
- "border-spacing-x": [{ "border-spacing-x": [o] }],
2434
- "border-spacing-y": [{ "border-spacing-y": [o] }],
2292
+ "border-spacing": [{ "border-spacing": N() }],
2293
+ "border-spacing-x": [{ "border-spacing-x": N() }],
2294
+ "border-spacing-y": [{ "border-spacing-y": N() }],
2435
2295
  "table-layout": [{ table: ["auto", "fixed"] }],
2436
2296
  caption: [{ caption: ["top", "bottom"] }],
2437
2297
  transition: [{ transition: [
2438
- "none",
2439
- "all",
2440
2298
  "",
2299
+ "all",
2441
2300
  "colors",
2442
2301
  "opacity",
2443
2302
  "shadow",
2444
2303
  "transform",
2445
- Q
2304
+ "none",
2305
+ isArbitraryVariable,
2306
+ isArbitraryValue
2307
+ ] }],
2308
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
2309
+ duration: [{ duration: [
2310
+ isNumber,
2311
+ "initial",
2312
+ isArbitraryVariable,
2313
+ isArbitraryValue
2446
2314
  ] }],
2447
- duration: [{ duration: M() }],
2448
2315
  ease: [{ ease: [
2449
2316
  "linear",
2450
- "in",
2451
- "out",
2452
- "in-out",
2453
- Q
2317
+ "initial",
2318
+ T,
2319
+ isArbitraryVariable,
2320
+ isArbitraryValue
2321
+ ] }],
2322
+ delay: [{ delay: [
2323
+ isNumber,
2324
+ isArbitraryVariable,
2325
+ isArbitraryValue
2454
2326
  ] }],
2455
- delay: [{ delay: M() }],
2456
2327
  animate: [{ animate: [
2457
2328
  "none",
2458
- "spin",
2459
- "ping",
2460
- "pulse",
2461
- "bounce",
2462
- Q
2463
- ] }],
2329
+ E,
2330
+ isArbitraryVariable,
2331
+ isArbitraryValue
2332
+ ] }],
2333
+ backface: [{ backface: ["hidden", "visible"] }],
2334
+ perspective: [{ perspective: [
2335
+ C,
2336
+ isArbitraryVariable,
2337
+ isArbitraryValue
2338
+ ] }],
2339
+ "perspective-origin": [{ "perspective-origin": k() }],
2340
+ rotate: [{ rotate: X() }],
2341
+ "rotate-x": [{ "rotate-x": X() }],
2342
+ "rotate-y": [{ "rotate-y": X() }],
2343
+ "rotate-z": [{ "rotate-z": X() }],
2344
+ scale: [{ scale: Z() }],
2345
+ "scale-x": [{ "scale-x": Z() }],
2346
+ "scale-y": [{ "scale-y": Z() }],
2347
+ "scale-z": [{ "scale-z": Z() }],
2348
+ "scale-3d": ["scale-3d"],
2349
+ skew: [{ skew: Q() }],
2350
+ "skew-x": [{ "skew-x": Q() }],
2351
+ "skew-y": [{ "skew-y": Q() }],
2464
2352
  transform: [{ transform: [
2353
+ isArbitraryVariable,
2354
+ isArbitraryValue,
2465
2355
  "",
2356
+ "none",
2466
2357
  "gpu",
2467
- "none"
2468
- ] }],
2469
- scale: [{ scale: [b] }],
2470
- "scale-x": [{ "scale-x": [b] }],
2471
- "scale-y": [{ "scale-y": [b] }],
2472
- rotate: [{ rotate: [ys, Q] }],
2473
- "translate-x": [{ "translate-x": [te] }],
2474
- "translate-y": [{ "translate-y": [te] }],
2475
- "skew-x": [{ "skew-x": [ee] }],
2476
- "skew-y": [{ "skew-y": [ee] }],
2477
- "transform-origin": [{ origin: [
2478
- "center",
2479
- "top",
2480
- "top-right",
2481
- "right",
2482
- "bottom-right",
2483
- "bottom",
2484
- "bottom-left",
2485
- "left",
2486
- "top-left",
2487
- Q
2488
- ] }],
2489
- accent: [{ accent: ["auto", e] }],
2358
+ "cpu"
2359
+ ] }],
2360
+ "transform-origin": [{ origin: k() }],
2361
+ "transform-style": [{ transform: ["3d", "flat"] }],
2362
+ translate: [{ translate: $() }],
2363
+ "translate-x": [{ "translate-x": $() }],
2364
+ "translate-y": [{ "translate-y": $() }],
2365
+ "translate-z": [{ "translate-z": $() }],
2366
+ "translate-none": ["translate-none"],
2367
+ accent: [{ accent: U() }],
2490
2368
  appearance: [{ appearance: ["none", "auto"] }],
2369
+ "caret-color": [{ caret: U() }],
2370
+ "color-scheme": [{ scheme: [
2371
+ "normal",
2372
+ "dark",
2373
+ "light",
2374
+ "light-dark",
2375
+ "only-dark",
2376
+ "only-light"
2377
+ ] }],
2491
2378
  cursor: [{ cursor: [
2492
2379
  "auto",
2493
2380
  "default",
@@ -2525,35 +2412,36 @@ const Y = (e) => {
2525
2412
  "nwse-resize",
2526
2413
  "zoom-in",
2527
2414
  "zoom-out",
2528
- Q
2415
+ isArbitraryVariable,
2416
+ isArbitraryValue
2529
2417
  ] }],
2530
- "caret-color": [{ caret: [e] }],
2531
- "pointer-events": [{ "pointer-events": ["none", "auto"] }],
2418
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
2419
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
2532
2420
  resize: [{ resize: [
2533
2421
  "none",
2422
+ "",
2534
2423
  "y",
2535
- "x",
2536
- ""
2424
+ "x"
2537
2425
  ] }],
2538
2426
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
2539
- "scroll-m": [{ "scroll-m": T() }],
2540
- "scroll-mx": [{ "scroll-mx": T() }],
2541
- "scroll-my": [{ "scroll-my": T() }],
2542
- "scroll-ms": [{ "scroll-ms": T() }],
2543
- "scroll-me": [{ "scroll-me": T() }],
2544
- "scroll-mt": [{ "scroll-mt": T() }],
2545
- "scroll-mr": [{ "scroll-mr": T() }],
2546
- "scroll-mb": [{ "scroll-mb": T() }],
2547
- "scroll-ml": [{ "scroll-ml": T() }],
2548
- "scroll-p": [{ "scroll-p": T() }],
2549
- "scroll-px": [{ "scroll-px": T() }],
2550
- "scroll-py": [{ "scroll-py": T() }],
2551
- "scroll-ps": [{ "scroll-ps": T() }],
2552
- "scroll-pe": [{ "scroll-pe": T() }],
2553
- "scroll-pt": [{ "scroll-pt": T() }],
2554
- "scroll-pr": [{ "scroll-pr": T() }],
2555
- "scroll-pb": [{ "scroll-pb": T() }],
2556
- "scroll-pl": [{ "scroll-pl": T() }],
2427
+ "scroll-m": [{ "scroll-m": N() }],
2428
+ "scroll-mx": [{ "scroll-mx": N() }],
2429
+ "scroll-my": [{ "scroll-my": N() }],
2430
+ "scroll-ms": [{ "scroll-ms": N() }],
2431
+ "scroll-me": [{ "scroll-me": N() }],
2432
+ "scroll-mt": [{ "scroll-mt": N() }],
2433
+ "scroll-mr": [{ "scroll-mr": N() }],
2434
+ "scroll-mb": [{ "scroll-mb": N() }],
2435
+ "scroll-ml": [{ "scroll-ml": N() }],
2436
+ "scroll-p": [{ "scroll-p": N() }],
2437
+ "scroll-px": [{ "scroll-px": N() }],
2438
+ "scroll-py": [{ "scroll-py": N() }],
2439
+ "scroll-ps": [{ "scroll-ps": N() }],
2440
+ "scroll-pe": [{ "scroll-pe": N() }],
2441
+ "scroll-pt": [{ "scroll-pt": N() }],
2442
+ "scroll-pr": [{ "scroll-pr": N() }],
2443
+ "scroll-pb": [{ "scroll-pb": N() }],
2444
+ "scroll-pl": [{ "scroll-pl": N() }],
2557
2445
  "snap-align": [{ snap: [
2558
2446
  "start",
2559
2447
  "end",
@@ -2595,16 +2483,17 @@ const Y = (e) => {
2595
2483
  "scroll",
2596
2484
  "contents",
2597
2485
  "transform",
2598
- Q
2486
+ isArbitraryVariable,
2487
+ isArbitraryValue
2599
2488
  ] }],
2600
- fill: [{ fill: [e, "none"] }],
2489
+ fill: [{ fill: ["none", ...U()] }],
2601
2490
  "stroke-w": [{ stroke: [
2602
- X,
2603
- Z,
2604
- vs
2491
+ isNumber,
2492
+ isArbitraryVariableLength,
2493
+ isArbitraryLength,
2494
+ isArbitraryNumber
2605
2495
  ] }],
2606
- stroke: [{ stroke: [e, "none"] }],
2607
- sr: ["sr-only", "not-sr-only"],
2496
+ stroke: [{ stroke: ["none", ...U()] }],
2608
2497
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
2609
2498
  },
2610
2499
  conflictingClassGroups: {
@@ -2691,6 +2580,8 @@ const Y = (e) => {
2691
2580
  "rounded-l": ["rounded-tl", "rounded-bl"],
2692
2581
  "border-spacing": ["border-spacing-x", "border-spacing-y"],
2693
2582
  "border-w": [
2583
+ "border-w-x",
2584
+ "border-w-y",
2694
2585
  "border-w-s",
2695
2586
  "border-w-e",
2696
2587
  "border-w-t",
@@ -2701,6 +2592,8 @@ const Y = (e) => {
2701
2592
  "border-w-x": ["border-w-r", "border-w-l"],
2702
2593
  "border-w-y": ["border-w-t", "border-w-b"],
2703
2594
  "border-color": [
2595
+ "border-color-x",
2596
+ "border-color-y",
2704
2597
  "border-color-s",
2705
2598
  "border-color-e",
2706
2599
  "border-color-t",
@@ -2710,6 +2603,17 @@ const Y = (e) => {
2710
2603
  ],
2711
2604
  "border-color-x": ["border-color-r", "border-color-l"],
2712
2605
  "border-color-y": ["border-color-t", "border-color-b"],
2606
+ translate: [
2607
+ "translate-x",
2608
+ "translate-y",
2609
+ "translate-none"
2610
+ ],
2611
+ "translate-none": [
2612
+ "translate",
2613
+ "translate-x",
2614
+ "translate-y",
2615
+ "translate-z"
2616
+ ],
2713
2617
  "scroll-m": [
2714
2618
  "scroll-mx",
2715
2619
  "scroll-my",
@@ -2743,9 +2647,23 @@ const Y = (e) => {
2743
2647
  "touch-y": ["touch"],
2744
2648
  "touch-pz": ["touch"]
2745
2649
  },
2746
- conflictingClassGroupModifiers: { "font-size": ["leading"] }
2650
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
2651
+ orderSensitiveModifiers: [
2652
+ "*",
2653
+ "**",
2654
+ "after",
2655
+ "backdrop",
2656
+ "before",
2657
+ "details-content",
2658
+ "file",
2659
+ "first-letter",
2660
+ "first-line",
2661
+ "marker",
2662
+ "placeholder",
2663
+ "selection"
2664
+ ]
2747
2665
  };
2748
- }, Ps = /* @__PURE__ */ cs(Ns), Fs = ["aria-label"], Is = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2666
+ }), _hoisted_1$3 = ["aria-label"], PaginationItem_default = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2749
2667
  __name: "PaginationItem",
2750
2668
  props: {
2751
2669
  class: {
@@ -2782,25 +2700,25 @@ const Y = (e) => {
2782
2700
  }
2783
2701
  },
2784
2702
  setup(e) {
2785
- let t = e, { setCurrentIndex: n, pauseAutoplay: r, resumeAutoplay: i } = Po(), a = (e) => {
2703
+ let t = e, { setCurrentIndex: n, pauseAutoplay: r, resumeAutoplay: a } = useCarouselClient(), s = (e) => {
2786
2704
  if (t.disabled) return !1;
2787
- n(e[0]), r(), i();
2788
- }, s = o(() => Ps(t.class, t.isActive && t.activeClass, t.disabled && "pointer-events-none")), c = o(() => Ps(t.dotClass, t.isActive && t.dotActiveClass));
2789
- return (e, n) => O(e.$slots, "pagination-item", {
2705
+ n(e[0]), r(), a();
2706
+ }, l = computed(() => twMerge(t.class, t.isActive && t.activeClass, t.disabled && "pointer-events-none")), u = computed(() => twMerge(t.dotClass, t.isActive && t.dotActiveClass));
2707
+ return (e, n) => renderSlot(e.$slots, "pagination-item", {
2790
2708
  isCurrentPage: t.isActive,
2791
2709
  page: t.page,
2792
2710
  pageIndex: t.pageIndex,
2793
2711
  attrs: {
2794
- onClick: () => a(t.page, t.pageIndex),
2712
+ onClick: () => s(t.page, t.pageIndex),
2795
2713
  disabled: t.disabled
2796
2714
  }
2797
- }, () => [u("button", x(e.$attrs, {
2798
- class: s.value,
2715
+ }, () => [createElementVNode("button", mergeProps(e.$attrs, {
2716
+ class: l.value,
2799
2717
  "aria-label": `Navigate to page ${t.pageIndex + 1}`,
2800
- onClick: n[0] ||= (e) => a(t.page, t.pageIndex)
2801
- }), [u("div", { class: S(c.value) }, null, 2)], 16, Fs)]);
2718
+ onClick: n[0] ||= (e) => s(t.page, t.pageIndex)
2719
+ }), [createElementVNode("div", { class: normalizeClass(u.value) }, null, 2)], 16, _hoisted_1$3)]);
2802
2720
  }
2803
- }), Ls = {
2721
+ }), Pagination_default = {
2804
2722
  __name: "Pagination",
2805
2723
  props: {
2806
2724
  totalSlides: {
@@ -2845,40 +2763,34 @@ const Y = (e) => {
2845
2763
  }
2846
2764
  },
2847
2765
  setup(e) {
2848
- let n = e, { currentIndex: r, isNavigating: i } = Po(), a = o(() => {
2849
- let e = Array.from(Array(n.totalSlides).keys()), t = xi(e, n.perPage);
2850
- return t.map((e) => {
2851
- let t = e[0], r = t - 1;
2852
- for (; e.length < n.perPage;) e.unshift(r), r--;
2853
- return e;
2854
- });
2855
- }), c = (e) => {
2856
- let t = po(a.value, (e) => e.includes(r.value));
2857
- return t === e;
2858
- };
2859
- return (e, r) => (w(), l("div", {
2860
- class: S(["evo-vue-carousel__pagination", n.backgroundClass]),
2766
+ let n = e, { currentIndex: r, isNavigating: a } = useCarouselClient(), s = computed(() => chunk(Array.from(Array(n.totalSlides).keys()), n.perPage).map((e) => {
2767
+ let t = e[0] - 1;
2768
+ for (; e.length < n.perPage;) e.unshift(t), t--;
2769
+ return e;
2770
+ })), u = (e) => findLastIndex(s.value, (e) => e.includes(r.value)) === e;
2771
+ return (e, r) => (openBlock(), createElementBlock("div", {
2772
+ class: normalizeClass(["evo-vue-carousel__pagination", n.backgroundClass]),
2861
2773
  role: "group",
2862
2774
  "aria-label": "Slide Pagination Controls"
2863
- }, [O(e.$slots, "pagination", {
2864
- page: a.value,
2865
- isCurrentPage: c,
2866
- isNavigating: j(i)
2867
- }, () => [(w(!0), l(t, null, re(a.value, (t, r) => (w(), s(j(me), {
2775
+ }, [renderSlot(e.$slots, "pagination", {
2776
+ page: s.value,
2777
+ isCurrentPage: u,
2778
+ isNavigating: unref(a)
2779
+ }, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (t, r) => (openBlock(), createBlock(unref(S), {
2868
2780
  key: t,
2869
2781
  slots: e.$slots,
2870
2782
  only: "pagination-item"
2871
2783
  }, {
2872
- default: P(() => [f(Is, {
2873
- class: S(n.itemClass),
2784
+ default: withCtx(() => [createVNode(PaginationItem_default, {
2785
+ class: normalizeClass(n.itemClass),
2874
2786
  "active-class": n.itemActiveClass,
2875
- "dot-class": S([n.itemDotClass, n.itemSizeClass]),
2787
+ "dot-class": normalizeClass([n.itemDotClass, n.itemSizeClass]),
2876
2788
  "dot-active-class": n.itemDotActiveClass,
2877
2789
  page: t,
2878
2790
  "page-index": r,
2879
- "is-active": c(r),
2880
- disabled: n.disableOnNavigation && j(i),
2881
- "aria-disabled": n.disableOnNavigation && j(i) || c(r)
2791
+ "is-active": u(r),
2792
+ disabled: n.disableOnNavigation && unref(a),
2793
+ "aria-disabled": n.disableOnNavigation && unref(a) || u(r)
2882
2794
  }, null, 8, [
2883
2795
  "class",
2884
2796
  "active-class",
@@ -2893,7 +2805,7 @@ const Y = (e) => {
2893
2805
  _: 2
2894
2806
  }, 1032, ["slots"]))), 128))])], 2));
2895
2807
  }
2896
- }, Rs = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))" }, zs = {
2808
+ }, y = { transform: "rotate(var(--r, 0deg)) scale(var(--sx, 1), var(--sy, 1))" }, o = {
2897
2809
  mdi: {
2898
2810
  size: 24,
2899
2811
  viewbox: "0 0 24 24"
@@ -2906,7 +2818,7 @@ const Y = (e) => {
2906
2818
  size: 0,
2907
2819
  viewbox: "0 0 0 0"
2908
2820
  }
2909
- }, Bs = {
2821
+ }, v = {
2910
2822
  props: {
2911
2823
  type: {
2912
2824
  type: String,
@@ -2930,12 +2842,12 @@ const Y = (e) => {
2930
2842
  }
2931
2843
  },
2932
2844
  setup(e) {
2933
- return () => e.type === "fad" ? (console.warn("vue3-icon does not currently support Duotone FontAwesome icons"), g("path")) : Array.isArray(e.path) ? g("g", { style: { fill: "currentcolor" } }, e.path.map((e) => typeof e == "string" ? g("path", { d: e }) : g("path", { ...e }))) : g("path", {
2845
+ return () => e.type === "fad" ? (console.warn("vue3-icon does not currently support Duotone FontAwesome icons"), h("path")) : Array.isArray(e.path) ? h("g", { style: { fill: "currentcolor" } }, e.path.map((e) => typeof e == "string" ? h("path", { d: e }) : h("path", { ...e }))) : h("path", {
2934
2846
  d: e.pathString,
2935
2847
  style: { fill: "currentcolor" }
2936
2848
  });
2937
2849
  }
2938
- }, Vs = {
2850
+ }, g = {
2939
2851
  name: "icon",
2940
2852
  props: {
2941
2853
  type: {
@@ -2987,40 +2899,34 @@ const Y = (e) => {
2987
2899
  }
2988
2900
  },
2989
2901
  setup(e) {
2990
- if (!e.path && !e.faIcon) return console.warn("vue3-icon requires either a 'path' or an 'fa-icon' property"), () => g("div");
2991
- let t = o(() => {
2992
- var t;
2993
- return (t = e.faIcon)?.prefix || e.type;
2994
- }), n = o(() => parseInt(e.rotate, 10)), r = o(() => zs[t.value] || zs.default), i = o(() => parseInt(e.size, 10) || r.value.size), a = o(() => e.faIcon ? `0 0 ${e.faIcon.icon[0]} ${e.faIcon.icon[1]}` : !1), s = o(() => a.value || e.viewbox || r.value.viewbox), c = o(() => {
2902
+ if (!e.path && !e.faIcon) return console.warn("vue3-icon requires either a 'path' or an 'fa-icon' property"), () => h("div");
2903
+ let t = computed(() => e.faIcon?.prefix || e.type), n = computed(() => parseInt(e.rotate, 10)), r = computed(() => o[t.value] || o.default), a = computed(() => parseInt(e.size, 10) || r.value.size), s = computed(() => e.faIcon ? `0 0 ${e.faIcon.icon[0]} ${e.faIcon.icon[1]}` : !1), l = computed(() => s.value || e.viewbox || r.value.viewbox), u = computed(() => {
2995
2904
  if (e.noStyles !== !0) return {
2996
- ...Rs,
2905
+ ...y,
2997
2906
  "--sx": ["both", "horizontal"].includes(e.flip) ? "-1" : "1",
2998
2907
  "--sy": ["both", "vertical"].includes(e.flip) ? "-1" : "1",
2999
2908
  "--r": isNaN(n.value) ? n.value : n.value + "deg"
3000
2909
  };
3001
- }), l = o(() => {
3002
- var t;
3003
- return e.faIcon ? (t = e.faIcon)?.icon[4] : e.type === "simple-icons" && typeof e.path == "object" ? e.path.path : e.path;
3004
- });
3005
- return () => g("svg", {
2910
+ }), d = computed(() => e.faIcon ? e.faIcon?.icon[4] : e.type === "simple-icons" && typeof e.path == "object" ? e.path.path : e.path);
2911
+ return () => h("svg", {
3006
2912
  xmlns: e.noNamespace === !0 ? void 0 : "http://www.w3.org/2000/svg",
3007
- style: c.value,
2913
+ style: u.value,
3008
2914
  class: ["vue3-icon"],
3009
- width: e.noDimensions === !0 ? void 0 : i.value,
3010
- height: e.noDimensions === !0 ? void 0 : i.value,
3011
- viewBox: s.value
3012
- }, [g(Bs, {
2915
+ width: e.noDimensions === !0 ? void 0 : a.value,
2916
+ height: e.noDimensions === !0 ? void 0 : a.value,
2917
+ viewBox: l.value
2918
+ }, [h(v, {
3013
2919
  path: e.path,
3014
2920
  type: t.value,
3015
- pathString: l.value
2921
+ pathString: d.value
3016
2922
  })]);
3017
2923
  }
3018
2924
  };
3019
- function Hs(e, t = 0, n) {
2925
+ function loopedValue(e, t = 0, n) {
3020
2926
  let r = n - t;
3021
2927
  return ((e - t) % r + r) % r + t;
3022
2928
  }
3023
- const Us = ["disabled", "aria-disabled"], Ws = ["disabled", "aria-disabled"], Gs = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
2929
+ var _hoisted_1$2 = ["disabled", "aria-disabled"], _hoisted_2 = ["disabled", "aria-disabled"], leftIcon = "M31.884 8.366a1.25 1.25 0 0 1 0 1.768L18.018 24l13.866 13.866a1.25 1.25 0 0 1-1.768 1.768l-14.75-14.75a1.25 1.25 0 0 1 0-1.768l14.75-14.75a1.25 1.25 0 0 1 1.768 0z", rightIcon = "M16.116 39.634a1.25 1.25 0 0 1 0-1.768L29.982 24L16.116 10.134a1.25 1.25 0 0 1 1.768-1.768l14.75 14.75a1.25 1.25 0 0 1 0 1.768l-14.75 14.75a1.25 1.25 0 0 1-1.768 0z", Navigation_default = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
3024
2930
  __name: "Navigation",
3025
2931
  props: {
3026
2932
  itemClass: {
@@ -3049,110 +2955,108 @@ const Us = ["disabled", "aria-disabled"], Ws = ["disabled", "aria-disabled"], Gs
3049
2955
  }
3050
2956
  },
3051
2957
  setup(e) {
3052
- let t = e, { config: n, currentIndex: r, setCurrentIndex: i, isNavigating: a, pauseAutoplay: s, resumeAutoplay: c } = Po(), l = o(() => r.value + n.value.perPage), d = o(() => !n.value.wrap && r.value === 0 || t.disableOnNavigation && a.value === !0), p = o(() => !n.value.wrap && l.value === t.totalSlides || t.disableOnNavigation && a.value === !0), m = o(() => Ps(t.itemClass, t.itemSizeClass, t.prevClass)), h = o(() => Ps(t.itemClass, t.itemSizeClass, t.nextClass)), g = (e) => {
3053
- let r = n.value.mode === To.GALLERY;
3054
- if (r === !1) return e;
3055
- let i = n.value.wrap === !0;
3056
- if (i) return Hs(e, 0, t.totalSlides);
3057
- let a = e + n.value.perPage;
3058
- return e < 0 ? 0 : a >= t.totalSlides ? t.totalSlides - n.value.perPage : e;
3059
- }, _ = () => {
3060
- s(), c();
3061
- }, v = () => {
3062
- let e = g(r.value - n.value.slideBy);
3063
- i(e), _();
3064
- }, y = () => {
3065
- let e = g(r.value + n.value.slideBy);
3066
- i(e), _();
2958
+ let t = e, { config: n, currentIndex: r, setCurrentIndex: a, isNavigating: s, pauseAutoplay: l, resumeAutoplay: u } = useCarouselClient(), d = computed(() => r.value + n.value.perPage), m = computed(() => !n.value.wrap && r.value === 0 || t.disableOnNavigation && s.value === !0), b = computed(() => !n.value.wrap && d.value === t.totalSlides || t.disableOnNavigation && s.value === !0), x = computed(() => twMerge(t.itemClass, t.itemSizeClass, t.prevClass)), C = computed(() => twMerge(t.itemClass, t.itemSizeClass, t.nextClass)), w = (e) => {
2959
+ if (n.value.mode !== EVO_VUE_CAROUSEL_MODE.GALLERY) return e;
2960
+ if (n.value.wrap === !0) return loopedValue(e, 0, t.totalSlides);
2961
+ let r = e + n.value.perPage;
2962
+ return e < 0 ? 0 : r >= t.totalSlides ? t.totalSlides - n.value.perPage : e;
2963
+ }, T = () => {
2964
+ l(), u();
2965
+ }, E = () => {
2966
+ a(w(r.value - n.value.slideBy)), T();
2967
+ }, D = () => {
2968
+ a(w(r.value + n.value.slideBy)), T();
3067
2969
  };
3068
- return (e, t) => O(e.$slots, "navigation", {
3069
- onPrev: v,
3070
- onNext: y,
3071
- currentIndex: j(r),
3072
- config: j(n)
3073
- }, () => [u("div", x({
2970
+ return (e, t) => renderSlot(e.$slots, "navigation", {
2971
+ onPrev: E,
2972
+ onNext: D,
2973
+ currentIndex: unref(r),
2974
+ config: unref(n)
2975
+ }, () => [createElementVNode("div", mergeProps({
3074
2976
  class: "evo-vue-carousel__navigation",
3075
2977
  role: "group",
3076
2978
  "aria-label": "Slide Navigation Controls"
3077
- }, e.$attrs), [O(e.$slots, "navigation-prev", {
3078
- onClick: v,
3079
- currentIndex: j(r),
3080
- disabled: d.value
3081
- }, () => [u("button", {
3082
- class: S(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-prev", m.value]),
3083
- disabled: d.value,
3084
- "aria-disabled": d.value,
2979
+ }, e.$attrs), [renderSlot(e.$slots, "navigation-prev", {
2980
+ onClick: E,
2981
+ currentIndex: unref(r),
2982
+ disabled: m.value
2983
+ }, () => [createElementVNode("button", {
2984
+ class: normalizeClass(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-prev", x.value]),
2985
+ disabled: m.value,
2986
+ "aria-disabled": m.value,
3085
2987
  "aria-label": "Previous Slide",
3086
- onClick: v
3087
- }, [f(j(Vs), {
3088
- path: "M31.884 8.366a1.25 1.25 0 0 1 0 1.768L18.018 24l13.866 13.866a1.25 1.25 0 0 1-1.768 1.768l-14.75-14.75a1.25 1.25 0 0 1 0-1.768l14.75-14.75a1.25 1.25 0 0 1 1.768 0z",
2988
+ onClick: E
2989
+ }, [createVNode(unref(g), {
2990
+ path: leftIcon,
3089
2991
  viewBox: "0 0 48 48",
3090
2992
  class: "w-full h-full"
3091
- })], 10, Us)]), O(e.$slots, "navigation-next", {
3092
- onClick: y,
3093
- currentIndex: j(r),
3094
- disabled: p.value
3095
- }, () => [u("button", {
3096
- class: S(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-next", h.value]),
3097
- disabled: p.value,
3098
- "aria-disabled": p.value,
2993
+ })], 10, _hoisted_1$2)]), renderSlot(e.$slots, "navigation-next", {
2994
+ onClick: D,
2995
+ currentIndex: unref(r),
2996
+ disabled: b.value
2997
+ }, () => [createElementVNode("button", {
2998
+ class: normalizeClass(["evo-vue-carousel__navigation-item evo-vue-carousel__navigation-next", C.value]),
2999
+ disabled: b.value,
3000
+ "aria-disabled": b.value,
3099
3001
  "aria-label": "Next Slide",
3100
- onClick: y
3101
- }, [f(j(Vs), {
3102
- path: "M16.116 39.634a1.25 1.25 0 0 1 0-1.768L29.982 24L16.116 10.134a1.25 1.25 0 0 1 1.768-1.768l14.75 14.75a1.25 1.25 0 0 1 0 1.768l-14.75 14.75a1.25 1.25 0 0 1-1.768 0z",
3002
+ onClick: D
3003
+ }, [createVNode(unref(g), {
3004
+ path: rightIcon,
3103
3005
  viewBox: "0 0 48 48",
3104
3006
  class: "w-full h-full"
3105
- })], 10, Ws)])], 16)]);
3007
+ })], 10, _hoisted_2)])], 16)]);
3106
3008
  }
3107
- }), Ks = (e = 1) => e <= 1 ? new Promise((e) => requestAnimationFrame(e)) : new Promise((t) => requestAnimationFrame(() => Ks(e - 1).then(t))), qs = (e) => Ys(e) === "fragment", Js = (e) => {
3009
+ });
3010
+ const nextFrame = (e = 1) => e <= 1 ? new Promise((e) => requestAnimationFrame(e)) : new Promise((t) => requestAnimationFrame(() => nextFrame(e - 1).then(t)));
3011
+ var isFragment = (e) => getType(e) === "fragment", getText = (e) => {
3108
3012
  if (typeof e == "string") return e;
3109
3013
  if (typeof e == "number") return String(e);
3110
- if (b(e) && e.type === r) return String(e.children);
3111
- }, Ys = (i) => {
3112
- let a = typeof i;
3113
- if (i == null || a === "boolean") return "comment";
3114
- if (a === "string" || a === "number") return "text";
3115
- if (Array.isArray(i)) return "fragment";
3116
- if (b(i)) {
3117
- let { type: a } = i, o = typeof a;
3118
- if (o === "symbol") {
3119
- if (a === t) return "fragment";
3120
- if (a === r) return "text";
3121
- if (a === e) return "comment";
3122
- if (a === n) return "static";
3123
- } else if (o === "string") return "element";
3124
- else if (o === "object" || o === "function") return "component";
3014
+ if (isVNode(e) && e.type === Text) return String(e.children);
3015
+ }, getType = (a) => {
3016
+ let s = typeof a;
3017
+ if (a == null || s === "boolean") return "comment";
3018
+ if (s === "string" || s === "number") return "text";
3019
+ if (Array.isArray(a)) return "fragment";
3020
+ if (isVNode(a)) {
3021
+ let { type: s } = a, c = typeof s;
3022
+ if (c === "symbol") {
3023
+ if (s === Fragment) return "fragment";
3024
+ if (s === Text) return "text";
3025
+ if (s === Comment) return "comment";
3026
+ if (s === Static) return "static";
3027
+ } else if (c === "string") return "element";
3028
+ else if (c === "object" || c === "function") return "component";
3125
3029
  }
3126
- }, Xs = (e, t) => {
3030
+ }, warn = (e, t) => {
3127
3031
  console.warn(`[${e}] ${t}`);
3128
- }, Zs = (e, t, n) => {
3032
+ }, checkArguments = (e, t, n) => {
3129
3033
  for (let r = 0; r < t.length; ++r) {
3130
- let i = Qs(t[r]), a = n[r];
3131
- a !== i && Xs(e, `Argument ${r + 1} was ${i}, should be ${a}`);
3034
+ let a = typeOf(t[r]), s = n[r];
3035
+ s !== a && warn(e, `Argument ${r + 1} was ${a}, should be ${s}`);
3132
3036
  }
3133
- }, Qs = (e) => {
3037
+ }, typeOf = (e) => {
3134
3038
  let t = typeof e;
3135
- return t === "object" && (e === null ? t = "null" : Array.isArray(e) ? t = "array" : b(e) ? t = "vnode" : e instanceof Date ? t = "date" : e instanceof RegExp && (t = "regexp")), t;
3136
- }, $s = (e) => {
3039
+ return t === "object" && (e === null ? t = "null" : Array.isArray(e) ? t = "array" : isVNode(e) ? t = "vnode" : e instanceof Date ? t = "date" : e instanceof RegExp && (t = "regexp")), t;
3040
+ }, getFragmentChildren = (e) => {
3137
3041
  if (Array.isArray(e)) return e;
3138
3042
  let { children: t } = e;
3139
- return Array.isArray(t) ? t : (process.env.NODE_ENV !== "production" && Xs("getFragmentChildren", `Unknown children for fragment: ${Qs(t)}`), []);
3043
+ return Array.isArray(t) ? t : (process.env.NODE_ENV !== "production" && warn("getFragmentChildren", `Unknown children for fragment: ${typeOf(t)}`), []);
3140
3044
  };
3141
- function ec(e) {
3045
+ function freeze(e) {
3142
3046
  return process.env.NODE_ENV === "production" ? e : Object.freeze(e);
3143
3047
  }
3144
- const tc = /* @__PURE__ */ ec({
3048
+ var COMPONENTS_AND_ELEMENTS = /* @__PURE__ */ freeze({
3145
3049
  element: !0,
3146
3050
  component: !0
3147
- }), nc = /* @__PURE__ */ ec({
3051
+ }), SKIP_COMMENTS = /* @__PURE__ */ freeze({
3148
3052
  element: !0,
3149
3053
  component: !0,
3150
3054
  text: !0,
3151
3055
  static: !0
3152
- }), rc = (e, t) => {
3153
- let n = Ys(e);
3154
- return !n || n === "fragment" || !t[n] ? null : b(e) ? e : n === "text" ? d(Js(e)) : c();
3155
- }, ic = (e, t, n = nc) => (process.env.NODE_ENV !== "production" && Zs("replaceChildren", [
3056
+ }), promoteToVNode = (e, t) => {
3057
+ let n = getType(e);
3058
+ return !n || n === "fragment" || !t[n] ? null : isVNode(e) ? e : n === "text" ? createTextVNode(getText(e)) : createCommentVNode();
3059
+ }, replaceChildren = (e, t, n = SKIP_COMMENTS) => (process.env.NODE_ENV !== "production" && checkArguments("replaceChildren", [
3156
3060
  e,
3157
3061
  t,
3158
3062
  n
@@ -3160,60 +3064,57 @@ const tc = /* @__PURE__ */ ec({
3160
3064
  "array",
3161
3065
  "function",
3162
3066
  "object"
3163
- ]), ac(e, t, n)), ac = (e, t, n) => {
3164
- var r;
3165
- let i = null;
3166
- for (let o = 0; o < e.length; ++o) {
3167
- let s = e[o];
3168
- if (qs(s)) {
3169
- let r = $s(s), c = ac(r, t, n), l = s;
3170
- r !== c && (i ??= e.slice(0, o), Array.isArray(s) ? l = c : (l = a(s), l.children = c)), i && i.push(l);
3067
+ ]), replaceChildrenInternal(e, t, n)), replaceChildrenInternal = (e, t, n) => {
3068
+ let r = null;
3069
+ for (let a = 0; a < e.length; ++a) {
3070
+ let c = e[a];
3071
+ if (isFragment(c)) {
3072
+ let l = getFragmentChildren(c), u = replaceChildrenInternal(l, t, n), d = c;
3073
+ l !== u && (r ??= e.slice(0, a), Array.isArray(c) ? d = u : (d = cloneVNode(c), d.children = u)), r && r.push(d);
3171
3074
  } else {
3172
- let a = rc(s, n);
3173
- if (a) {
3174
- let n = (r = t(a)) ?? a;
3075
+ let s = promoteToVNode(c, n);
3076
+ if (s) {
3077
+ let n = t(s) ?? s;
3175
3078
  if (process.env.NODE_ENV !== "production") {
3176
- let e = Qs(n);
3079
+ let e = typeOf(n);
3177
3080
  [
3178
3081
  "array",
3179
3082
  "vnode",
3180
3083
  "string",
3181
3084
  "number",
3182
3085
  "undefined"
3183
- ].includes(e) || Xs("replaceChildren", `Callback returned unexpected ${e} ${String(n)}`);
3086
+ ].includes(e) || warn("replaceChildren", `Callback returned unexpected ${e} ${String(n)}`);
3184
3087
  }
3185
- n !== s && (i ??= e.slice(0, o)), Array.isArray(n) ? i && i.push(...n) : i && i.push(n);
3186
- } else i && i.push(s);
3088
+ n !== c && (r ??= e.slice(0, a)), Array.isArray(n) ? r && r.push(...n) : r && r.push(n);
3089
+ } else r && r.push(c);
3187
3090
  }
3188
3091
  }
3189
- return i ?? e;
3190
- };
3191
- var oc = {
3092
+ return r ?? e;
3093
+ }, Slide_default = {
3192
3094
  props: { isClone: {
3193
3095
  type: Boolean,
3194
3096
  default: !1
3195
3097
  } },
3196
3098
  setup(e, { slots: t }) {
3197
- let n = D(null), r = ae(), i = m(), { width: a, height: o, stop: s } = He(n), { registerSlide: c, updateSlide: l, unregisterSlide: u } = Ro();
3198
- return e.isClone === !1 ? c(r, i) : s(), C(() => {
3199
- e.isClone === !1 && u(r);
3200
- }), N([a, o], ([t, n]) => {
3201
- e.isClone === !1 && l(r, {
3099
+ let n = ref(null), r = useId(), a = getCurrentInstance(), { width: s, height: c, stop: l } = useElementSize(n), { registerSlide: u, updateSlide: d, unregisterSlide: p } = useRegisterSlideClient();
3100
+ return e.isClone === !1 ? u(r, a) : l(), onUnmounted(() => {
3101
+ e.isClone === !1 && p(r);
3102
+ }), watch([s, c], ([t, n]) => {
3103
+ e.isClone === !1 && d(r, {
3202
3104
  width: t,
3203
3105
  height: n
3204
3106
  });
3205
- }), () => g("div", {
3107
+ }), () => h("div", {
3206
3108
  ref: n,
3207
3109
  role: "group",
3208
3110
  "aria-roledescription": "Slide"
3209
3111
  }, t.default());
3210
3112
  }
3211
- }, sc = (e, t) => {
3113
+ }, __plugin_vue_export_helper_default = (e, t) => {
3212
3114
  let n = e.__vccOpts || e;
3213
3115
  for (let [e, r] of t) n[e] = r;
3214
3116
  return n;
3215
- };
3216
- const cc = ["data-width", "data-height"], lc = {
3117
+ }, _hoisted_1$1 = ["data-width", "data-height"], Slider_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
3217
3118
  __name: "Slider",
3218
3119
  props: {
3219
3120
  totalSlides: {
@@ -3226,50 +3127,50 @@ const cc = ["data-width", "data-height"], lc = {
3226
3127
  }
3227
3128
  },
3228
3129
  setup(e) {
3229
- M((e) => ({ a8ac86c2: ne.value }));
3130
+ useCssVars((e) => ({ v2ba4c4bc: P.value }));
3230
3131
  let t = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, n = Object.freeze({
3231
3132
  element: !0,
3232
3133
  component: !0,
3233
3134
  static: !0,
3234
3135
  comment: !1,
3235
3136
  text: !1
3236
- }), r = e, { config: i, currentIndex: a, setCurrentIndex: s, isHovered: c, isNavigating: u, setIsNavigating: d, pauseAutoplay: p, resumeAutoplay: m, autoplayIsActive: h } = Po(), _ = D(!0), v = (e, t) => e / t * 100, y = o(() => ({
3237
- transform: `translate3d(${C.value}px, 0, 0)`,
3238
- transitionDuration: `${v(E.value, i.value.transitionSpeed)}ms`
3239
- })), b = (e) => {
3240
- let t = parseFloat(ne.value), n = i.value.wrap ? r.totalSlides + e : e, a = (t + i.value.gap) * n;
3241
- return a * -1;
3242
- }, x = D(null), { width: ee, height: te } = He(x), ne = o(() => {
3243
- let e = i.value.gap > 0 ? i.value.gap * (i.value.perPage - 1) : 0;
3244
- return (ee.value - e) / i.value.perPage + "px";
3245
- }), C = D(0), T = D(0);
3246
- N(() => r.isInit, async (e) => {
3247
- e && (C.value = b(a.value), await Ks(2), _.value = !1);
3137
+ }), r = e, { config: a, currentIndex: s, setCurrentIndex: l, isHovered: u, isNavigating: p, setIsNavigating: m, pauseAutoplay: b, resumeAutoplay: x, autoplayIsActive: C } = useCarouselClient(), T = ref(!0), E = (e, t) => e / t * 100, D = computed(() => ({
3138
+ transform: `translate3d(${F.value}px, 0, 0)`,
3139
+ transitionDuration: `${E(R.value, a.value.transitionSpeed)}ms`
3140
+ })), O = (e) => {
3141
+ let t = parseFloat(P.value), n = a.value.wrap ? r.totalSlides + e : e;
3142
+ return (t + a.value.gap) * n * -1;
3143
+ }, k = ref(null), { width: j, height: N } = useElementSize(k), P = computed(() => {
3144
+ let e = a.value.gap > 0 ? a.value.gap * (a.value.perPage - 1) : 0;
3145
+ return (j.value - e) / a.value.perPage + "px";
3146
+ }), F = ref(0), L = ref(0);
3147
+ watch(() => r.isInit, async (e) => {
3148
+ e && (F.value = O(s.value), await nextFrame(2), T.value = !1);
3248
3149
  });
3249
- let E = o(() => Math.abs(C.value - T.value));
3250
- N(a, (e) => {
3251
- u.value === !1 && (T.value = C.value), C.value = b(e), t && O();
3150
+ let R = computed(() => Math.abs(F.value - L.value));
3151
+ watch(s, (e) => {
3152
+ p.value === !1 && (L.value = F.value), F.value = O(e), t && V();
3252
3153
  });
3253
- let re = () => {
3254
- d(!0);
3255
- }, O = async () => {
3256
- _.value = !0, await Ks();
3154
+ let B = () => {
3155
+ m(!0);
3156
+ }, V = async () => {
3157
+ T.value = !0, await nextFrame();
3257
3158
  let e = r.totalSlides;
3258
- s(Hs(a.value, 0, e)), await Ks(), _.value = !1, d(!1);
3159
+ l(loopedValue(s.value, 0, e)), await nextFrame(), T.value = !1, m(!1);
3259
3160
  };
3260
- N(c, (e) => {
3261
- i.value.pauseOnHover === !0 && (e ? p() : m());
3161
+ watch(u, (e) => {
3162
+ a.value.pauseOnHover === !0 && (e ? b() : x());
3262
3163
  });
3263
- let ie = {
3164
+ let H = {
3264
3165
  props: { gap: {
3265
3166
  type: Number,
3266
3167
  default: 0
3267
3168
  } },
3268
3169
  setup(e, { slots: t }) {
3269
- let r = () => t.default?.() || [], a = (t) => {
3270
- let i = 0, a = t ? `_${t}` : "";
3271
- return ic(r(), (n) => (i++, g(oc, {
3272
- class: S(["evo-vue-carousel__slide shrink-0 grow-0", {
3170
+ let r = () => t.default?.() || [], s = (t) => {
3171
+ let a = 0, s = t ? `_${t}` : "";
3172
+ return replaceChildren(r(), (n) => (a++, h(Slide_default, {
3173
+ class: normalizeClass(["evo-vue-carousel__slide shrink-0 grow-0", {
3273
3174
  "evo-vue-carousel__slide-clone": !!t,
3274
3175
  "evo-vue-carousel__slide-prefix": t === "prefix",
3275
3176
  "evo-vue-carousel__slide-suffix": t === "suffix"
@@ -3279,44 +3180,42 @@ const cc = ["data-width", "data-height"], lc = {
3279
3180
  flexBasis: "var(--slide-width, 0px)",
3280
3181
  marginRight: `${e.gap}px`
3281
3182
  },
3282
- key: `slide_${i}${a}`,
3183
+ key: `slide_${a}${s}`,
3283
3184
  isClone: !!t
3284
3185
  }, { default: () => [n] })), n);
3285
3186
  };
3286
- return () => g("div", {
3287
- class: S([
3187
+ return () => h("div", {
3188
+ class: normalizeClass([
3288
3189
  "evo-vue-carousel__viewport-track flex flex-row",
3289
3190
  {
3290
- "is-navigating": u.value,
3291
- "autoplay-active": h.value
3191
+ "is-navigating": p.value,
3192
+ "autoplay-active": C.value
3292
3193
  },
3293
- _.value ? "transition-none" : "transition-all motion-reduce:transition-none",
3294
- i.value.slideTransitionTimingClass
3194
+ T.value ? "transition-none" : "transition-all motion-reduce:transition-none",
3195
+ a.value.slideTransitionTimingClass
3295
3196
  ]),
3296
- style: y.value,
3297
- onTransitionstart: re,
3298
- onTransitionend: O
3299
- }, i.value.wrap ? $i(a("prefix"), a(), a("suffix")) : a());
3197
+ style: D.value,
3198
+ onTransitionstart: B,
3199
+ onTransitionend: V
3200
+ }, a.value.wrap ? concat(s("prefix"), s(), s("suffix")) : s());
3300
3201
  }
3301
3202
  };
3302
- return (e, t) => (w(), l("div", {
3203
+ return (e, t) => (openBlock(), createElementBlock("div", {
3303
3204
  ref_key: "viewportRef",
3304
- ref: x,
3205
+ ref: k,
3305
3206
  class: "evo-vue-carousel__viewport evo-vue-carousel__viewport--slider relative flex w-full h-full max-h-full overflow-hidden",
3306
3207
  role: "listbox",
3307
- "data-width": j(ee),
3308
- "data-height": j(te)
3309
- }, [f(j(me), {
3208
+ "data-width": unref(j),
3209
+ "data-height": unref(N)
3210
+ }, [createVNode(unref(S), {
3310
3211
  slots: e.$slots,
3311
3212
  only: "default"
3312
3213
  }, {
3313
- default: P(() => [f(ie, { gap: j(i).gap }, null, 8, ["gap"])]),
3214
+ default: withCtx(() => [createVNode(H, { gap: unref(a).gap }, null, 8, ["gap"])]),
3314
3215
  _: 1
3315
- }, 8, ["slots"])], 8, cc));
3216
+ }, 8, ["slots"])], 8, _hoisted_1$1));
3316
3217
  }
3317
- };
3318
- var uc = /* @__PURE__ */ sc(lc, [["__scopeId", "data-v-66126f4d"]]);
3319
- const dc = ["data-height"], fc = {
3218
+ }, [["__scopeId", "data-v-eb524f91"]]), _hoisted_1 = ["data-height"], Gallery_default = {
3320
3219
  __name: "Gallery",
3321
3220
  props: {
3322
3221
  totalSlides: {
@@ -3329,50 +3228,50 @@ const dc = ["data-height"], fc = {
3329
3228
  }
3330
3229
  },
3331
3230
  setup(e) {
3332
- let n = e, { config: r, currentIndex: a, isNavigating: c, isHovered: u, setIsNavigating: d, pauseAutoplay: p, resumeAutoplay: m } = Po(), h = D(null), { height: _ } = He(h);
3333
- N(u, (e) => {
3334
- r.value.pauseOnHover === !0 && (e ? p() : m());
3231
+ let n = e, { config: r, currentIndex: s, isNavigating: u, isHovered: p, setIsNavigating: m, pauseAutoplay: b, resumeAutoplay: x } = useCarouselClient(), C = ref(null), { height: T } = useElementSize(C);
3232
+ watch(p, (e) => {
3233
+ r.value.pauseOnHover === !0 && (e ? b() : x());
3335
3234
  });
3336
- function v(e, t, n) {
3235
+ function E(e, t, n) {
3337
3236
  let r = [];
3338
3237
  if (n === 0) return r;
3339
- for (let i = 0; i < t; i++) r.push((e + i) % n);
3238
+ for (let a = 0; a < t; a++) r.push((e + a) % n);
3340
3239
  return r;
3341
3240
  }
3342
- let y = { setup(e, { slots: i }) {
3343
- let s = o(() => v(a.value, r.value.perPage, n.totalSlides));
3241
+ let D = { setup(e, { slots: a }) {
3242
+ let l = computed(() => E(s.value, r.value.perPage, n.totalSlides));
3344
3243
  return () => {
3345
- let e = i.default?.() || [];
3346
- for (; Array.isArray(e) && e[0]?.type === t;) e = e[0].children;
3347
- let n = 0, r = ic(e, (e) => {
3348
- let t = g(oc, {
3349
- class: S(["evo-vue-carousel__slide evo-vue-carousel__slide--visible w-full h-full", { hidden: s.value.includes(n) === !1 }]),
3244
+ let e = a.default?.() || [];
3245
+ for (; Array.isArray(e) && e[0]?.type === Fragment;) e = e[0].children;
3246
+ let n = 0, r = replaceChildren(e, (e) => {
3247
+ let t = h(Slide_default, {
3248
+ class: normalizeClass(["evo-vue-carousel__slide evo-vue-carousel__slide--visible w-full h-full", { hidden: l.value.includes(n) === !1 }]),
3350
3249
  role: "option"
3351
3250
  }, { default: () => [e] });
3352
3251
  return n++, t;
3353
- }, tc), o = $i(xo(r, a.value), xo(r, 0, a.value));
3354
- return g("div", { class: S(["flex h-full overflow-hidden"]) }, o);
3252
+ }, COMPONENTS_AND_ELEMENTS), c = concat(slice(r, s.value), slice(r, 0, s.value));
3253
+ return h("div", { class: normalizeClass(["flex h-full overflow-hidden"]) }, c);
3355
3254
  };
3356
3255
  } };
3357
- return (e, t) => (w(), l("div", {
3256
+ return (e, t) => (openBlock(), createElementBlock("div", {
3358
3257
  ref_key: "galleryRef",
3359
- ref: h,
3360
- class: S(["evo-vue-carousel__viewport evo-vue-carousel__viewport--gallery min-h-12 h-full relative w-full overflow-hidden", { "is-navigating": j(c) }]),
3361
- "data-height": j(_)
3362
- }, [f(i, {
3258
+ ref: C,
3259
+ class: normalizeClass(["evo-vue-carousel__viewport evo-vue-carousel__viewport--gallery min-h-12 h-full relative w-full overflow-hidden", { "is-navigating": unref(u) }]),
3260
+ "data-height": unref(T)
3261
+ }, [createVNode(Transition, {
3363
3262
  mode: "in-out",
3364
3263
  "enter-active-class": "transition-all duration-1000 motion-reduce:transition-none motion-reduce:duration-0 absolute inset-0",
3365
3264
  "leave-active-class": "transition-none absolute hidden",
3366
3265
  "enter-from-class": "opacity-0",
3367
- onBeforeEnter: t[0] ||= (e) => j(d)(!0),
3368
- onAfterLeave: t[1] ||= (e) => j(d)(!1)
3266
+ onBeforeEnter: t[0] ||= (e) => unref(m)(!0),
3267
+ onAfterLeave: t[1] ||= (e) => unref(m)(!1)
3369
3268
  }, {
3370
- default: P(() => [(w(), s(y, { key: j(a) }, {
3371
- default: P(() => [O(e.$slots, "default")]),
3269
+ default: withCtx(() => [(openBlock(), createBlock(D, { key: unref(s) }, {
3270
+ default: withCtx(() => [renderSlot(e.$slots, "default")]),
3372
3271
  _: 3
3373
3272
  }))]),
3374
3273
  _: 3
3375
- })], 10, dc));
3274
+ })], 10, _hoisted_1));
3376
3275
  }
3377
3276
  };
3378
- export { To as EVO_VUE_CAROUSEL_MODE, Ho as EvoVueCarousel, Gs as EvoVueCarouselNavigation, Ls as EvoVueCarouselPagination, fc as EvoVueCarouselViewportGallery, uc as EvoVueCarouselViewportSlider };
3277
+ export { EVO_VUE_CAROUSEL_MODE, component_default as EvoVueCarousel, Navigation_default as EvoVueCarouselNavigation, Pagination_default as EvoVueCarouselPagination, Gallery_default as EvoVueCarouselViewportGallery, Slider_default as EvoVueCarouselViewportSlider };