@typeach/core 0.0.16 → 0.0.18

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.
package/dist/typeach.js CHANGED
@@ -1,30 +1,30 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, getCurrentInstance as s, getCurrentScope as c, inject as l, markRaw as u, mergeModels as d, mergeProps as f, nextTick as p, onBeforeMount as m, onBeforeUnmount as h, onMounted as g, onScopeDispose as ee, openBlock as _, provide as v, ref as y, renderSlot as b, resolveDynamicComponent as x, shallowReadonly as te, shallowRef as ne, toRefs as re, toValue as S, unref as C, useId as w, useModel as T, useTemplateRef as E, vModelDynamic as ie, vModelText as ae, watch as D, watchEffect as oe, withCtx as O, withDirectives as se, withKeys as ce, withModifiers as le } from "vue";
2
- import { defineStore as ue } from "pinia";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, getCurrentInstance as s, getCurrentScope as c, inject as l, isRef as u, markRaw as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeProps as h, onBeforeMount as g, onBeforeUnmount as _, onMounted as v, onScopeDispose as y, openBlock as b, provide as x, ref as S, renderSlot as C, resolveDynamicComponent as w, shallowReadonly as ee, shallowRef as te, toRefs as ne, toValue as T, unref as E, useId as D, useModel as O, useTemplateRef as k, vModelDynamic as re, vModelText as ie, watch as A, watchEffect as ae, withCtx as j, withDirectives as oe, withKeys as se } from "vue";
2
+ import { defineStore as ce } from "pinia";
3
3
  //#region ../../node_modules/.pnpm/hotkeys-js@4.0.8/node_modules/hotkeys-js/dist/hotkeys-js.js
4
- var de = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
5
- function fe(e, t, n, r) {
4
+ var le = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
5
+ function ue(e, t, n, r) {
6
6
  e.addEventListener ? e.addEventListener(t, n, r) : e.attachEvent && e.attachEvent(`on${t}`, n);
7
7
  }
8
- function k(e, t, n, r) {
8
+ function de(e, t, n, r) {
9
9
  e && (e.removeEventListener ? e.removeEventListener(t, n, r) : e.detachEvent && e.detachEvent(`on${t}`, n));
10
10
  }
11
- function pe(e, t) {
11
+ function fe(e, t) {
12
12
  let n = t.slice(0, t.length - 1), r = [];
13
13
  for (let t = 0; t < n.length; t++) r.push(e[n[t].toLowerCase()]);
14
14
  return r;
15
15
  }
16
- function me(e) {
16
+ function pe(e) {
17
17
  typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
18
18
  let t = e.split(","), n = t.lastIndexOf("");
19
19
  for (; n >= 0;) t[n - 1] += ",", t.splice(n, 1), n = t.lastIndexOf("");
20
20
  return t;
21
21
  }
22
- function he(e, t) {
22
+ function me(e, t) {
23
23
  let n = e.length >= t.length ? e : t, r = e.length >= t.length ? t : e, i = !0;
24
24
  for (let e = 0; e < n.length; e++) r.indexOf(n[e]) === -1 && (i = !1);
25
25
  return i;
26
26
  }
27
- function ge(e, t, n) {
27
+ function he(e, t, n) {
28
28
  let r = e.keyCode || e.which || e.charCode;
29
29
  if (e.key) {
30
30
  let r = e.key.toLowerCase();
@@ -35,7 +35,7 @@ function ge(e, t, n) {
35
35
  }
36
36
  return e.code && /^Key[A-Z]$/.test(e.code) && (r = e.code.charCodeAt(3)), r;
37
37
  }
38
- var A = {
38
+ var M = {
39
39
  backspace: 8,
40
40
  "⌫": 8,
41
41
  tab: 9,
@@ -84,16 +84,16 @@ var A = {
84
84
  ".": 190,
85
85
  "/": 191,
86
86
  "`": 192,
87
- "-": de ? 173 : 189,
88
- "=": de ? 61 : 187,
89
- ";": de ? 59 : 186,
87
+ "-": le ? 173 : 189,
88
+ "=": le ? 61 : 187,
89
+ ";": le ? 59 : 186,
90
90
  "'": 222,
91
91
  "{": 219,
92
92
  "}": 221,
93
93
  "[": 219,
94
94
  "]": 221,
95
95
  "\\": 220
96
- }, j = {
96
+ }, N = {
97
97
  "⇧": 16,
98
98
  shift: 16,
99
99
  "⌥": 18,
@@ -106,7 +106,7 @@ var A = {
106
106
  cmd: 91,
107
107
  meta: 91,
108
108
  command: 91
109
- }, _e = {
109
+ }, ge = {
110
110
  16: "shiftKey",
111
111
  18: "altKey",
112
112
  17: "ctrlKey",
@@ -115,24 +115,24 @@ var A = {
115
115
  ctrlKey: 17,
116
116
  altKey: 18,
117
117
  metaKey: 91
118
- }, M = {
118
+ }, P = {
119
119
  16: !1,
120
120
  18: !1,
121
121
  17: !1,
122
122
  91: !1
123
- }, N = {};
124
- for (let e = 1; e < 20; e++) A[`f${e}`] = 111 + e;
125
- var P = [], ve = null, F = null, ye = "all", I = /* @__PURE__ */ new Map(), L = (e) => A[e.toLowerCase()] || j[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), be = (e) => Object.keys(A).find((t) => A[t] === e), xe = (e) => Object.keys(j).find((t) => j[t] === e), Se = (e) => {
126
- ye = e || "all";
127
- }, R = () => ye || "all", Ce = () => P.slice(0), we = () => P.map((e) => be(e) || xe(e) || String.fromCharCode(e)), Te = () => {
123
+ }, F = {};
124
+ for (let e = 1; e < 20; e++) M[`f${e}`] = 111 + e;
125
+ var I = [], _e = null, L = null, ve = "all", R = /* @__PURE__ */ new Map(), z = (e) => M[e.toLowerCase()] || N[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), ye = (e) => Object.keys(M).find((t) => M[t] === e), be = (e) => Object.keys(N).find((t) => N[t] === e), xe = (e) => {
126
+ ve = e || "all";
127
+ }, Se = () => ve || "all", Ce = () => I.slice(0), we = () => I.map((e) => ye(e) || be(e) || String.fromCharCode(e)), Te = () => {
128
128
  let e = [];
129
- return Object.keys(N).forEach((t) => {
130
- N[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
129
+ return Object.keys(F).forEach((t) => {
130
+ F[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
131
131
  e.push({
132
132
  scope: n,
133
133
  shortcut: i,
134
134
  mods: r,
135
- keys: t.split("+").map((e) => L(e))
135
+ keys: t.split("+").map((e) => z(e))
136
136
  });
137
137
  });
138
138
  }), e;
@@ -148,24 +148,24 @@ var P = [], ve = null, F = null, ye = "all", I = /* @__PURE__ */ new Map(), L =
148
148
  "color"
149
149
  ].includes(t.type);
150
150
  return (t.isContentEditable || (i || n === "TEXTAREA" || n === "SELECT") && !t.readOnly) && (r = !1), r;
151
- }, De = (e) => (typeof e == "string" && (e = L(e)), P.indexOf(e) !== -1), Oe = (e, t) => {
151
+ }, De = (e) => (typeof e == "string" && (e = z(e)), I.indexOf(e) !== -1), Oe = (e, t) => {
152
152
  let n, r;
153
- e ||= R();
154
- for (let t in N) if (Object.prototype.hasOwnProperty.call(N, t)) for (n = N[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Fe(e)) : r++;
155
- R() === e && Se(t || "all");
153
+ e ||= Se();
154
+ for (let t in F) if (Object.prototype.hasOwnProperty.call(F, t)) for (n = F[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Fe(e)) : r++;
155
+ Se() === e && xe(t || "all");
156
156
  };
157
157
  function ke(e) {
158
- let t = ge(e, A, j);
159
- e.key && e.key.toLowerCase() === "capslock" && (t = L(e.key));
160
- let n = P.indexOf(t);
161
- if (n >= 0 && P.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && P.splice(0, P.length), (t === 93 || t === 224) && (t = 91), t in M) {
162
- M[t] = !1;
163
- for (let e in j) j[e] === t && (z[e] = !1);
158
+ let t = he(e, M, N);
159
+ e.key && e.key.toLowerCase() === "capslock" && (t = z(e.key));
160
+ let n = I.indexOf(t);
161
+ if (n >= 0 && I.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && I.splice(0, I.length), (t === 93 || t === 224) && (t = 91), t in P) {
162
+ P[t] = !1;
163
+ for (let e in N) N[e] === t && (B[e] = !1);
164
164
  }
165
165
  }
166
166
  var Ae = (e, ...t) => {
167
- if (e === void 0) Object.keys(N).forEach((e) => {
168
- Array.isArray(N[e]) && N[e].forEach((e) => je(e)), delete N[e];
167
+ if (e === void 0) Object.keys(F).forEach((e) => {
168
+ Array.isArray(F[e]) && F[e].forEach((e) => je(e)), delete F[e];
169
169
  }), Fe(null);
170
170
  else if (Array.isArray(e)) e.forEach((e) => {
171
171
  e.key && je(e);
@@ -181,13 +181,13 @@ var Ae = (e, ...t) => {
181
181
  });
182
182
  }
183
183
  }, je = ({ key: e, scope: t, method: n, splitKey: r = "+" }) => {
184
- me(e).forEach((e) => {
185
- let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : L(o);
186
- if (!N[s]) return;
187
- t ||= R();
188
- let c = a > 1 ? pe(j, i) : [], l = [];
189
- N[s] = N[s].filter((e) => {
190
- let r = (!n || e.method === n) && e.scope === t && he(e.mods, c);
184
+ pe(e).forEach((e) => {
185
+ let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : z(o);
186
+ if (!F[s]) return;
187
+ t ||= Se();
188
+ let c = a > 1 ? fe(N, i) : [], l = [];
189
+ F[s] = F[s].filter((e) => {
190
+ let r = (!n || e.method === n) && e.scope === t && me(e.mods, c);
191
191
  return r && l.push(e.element), !r;
192
192
  }), l.forEach((e) => Fe(e));
193
193
  });
@@ -197,50 +197,50 @@ function Me(e, t, n, r) {
197
197
  let i;
198
198
  if (t.scope === n || t.scope === "all") {
199
199
  i = t.mods.length > 0;
200
- for (let e in M) Object.prototype.hasOwnProperty.call(M, e) && (!M[e] && t.mods.indexOf(+e) > -1 || M[e] && t.mods.indexOf(+e) === -1) && (i = !1);
201
- (t.mods.length === 0 && !M[16] && !M[18] && !M[17] && !M[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(P), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
200
+ for (let e in P) Object.prototype.hasOwnProperty.call(P, e) && (!P[e] && t.mods.indexOf(+e) > -1 || P[e] && t.mods.indexOf(+e) === -1) && (i = !1);
201
+ (t.mods.length === 0 && !P[16] && !P[18] && !P[17] && !P[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(I), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
202
202
  }
203
203
  }
204
204
  function Ne(e, t) {
205
- let n = N["*"], r = ge(e, A, j);
206
- if (e.key && e.key.toLowerCase() === "capslock" || !(z.filter || Ee).call(this, e)) return;
207
- if ((r === 93 || r === 224) && (r = 91), P.indexOf(r) === -1 && r !== 229 && P.push(r), [
205
+ let n = F["*"], r = he(e, M, N);
206
+ if (e.key && e.key.toLowerCase() === "capslock" || !(B.filter || Ee).call(this, e)) return;
207
+ if ((r === 93 || r === 224) && (r = 91), I.indexOf(r) === -1 && r !== 229 && I.push(r), [
208
208
  "metaKey",
209
209
  "ctrlKey",
210
210
  "altKey",
211
211
  "shiftKey"
212
212
  ].forEach((t) => {
213
- let n = _e[t];
214
- e[t] && P.indexOf(n) === -1 ? P.push(n) : !e[t] && P.indexOf(n) > -1 ? P.splice(P.indexOf(n), 1) : t === "metaKey" && e[t] && (P = P.filter((e) => e in _e || e === r));
215
- }), r in M) {
216
- M[r] = !0;
217
- for (let t in j) Object.prototype.hasOwnProperty.call(j, t) && (z[t] = e[_e[j[t]]]);
213
+ let n = ge[t];
214
+ e[t] && I.indexOf(n) === -1 ? I.push(n) : !e[t] && I.indexOf(n) > -1 ? I.splice(I.indexOf(n), 1) : t === "metaKey" && e[t] && (I = I.filter((e) => e in ge || e === r));
215
+ }), r in P) {
216
+ P[r] = !0;
217
+ for (let t in N) Object.prototype.hasOwnProperty.call(N, t) && (B[t] = e[ge[N[t]]]);
218
218
  if (!n) return;
219
219
  }
220
- for (let t in M) Object.prototype.hasOwnProperty.call(M, t) && (M[t] = e[_e[t]]);
221
- e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (P.indexOf(17) === -1 && P.push(17), P.indexOf(18) === -1 && P.push(18), M[17] = !0, M[18] = !0);
222
- let i = R();
220
+ for (let t in P) Object.prototype.hasOwnProperty.call(P, t) && (P[t] = e[ge[t]]);
221
+ e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (I.indexOf(17) === -1 && I.push(17), I.indexOf(18) === -1 && I.push(18), P[17] = !0, P[18] = !0);
222
+ let i = Se();
223
223
  if (n) for (let r = 0; r < n.length; r++) n[r].scope === i && (e.type === "keydown" && n[r].keydown || e.type === "keyup" && n[r].keyup) && Me(e, n[r], i, t);
224
- if (!(r in N)) return;
225
- let a = N[r], o = a.length;
224
+ if (!(r in F)) return;
225
+ let a = F[r], o = a.length;
226
226
  for (let n = 0; n < o; n++) if ((e.type === "keydown" && a[n].keydown || e.type === "keyup" && a[n].keyup) && a[n].key) {
227
227
  let r = a[n], { splitKey: o } = r, s = r.key.split(o), c = [];
228
- for (let e = 0; e < s.length; e++) c.push(L(s[e]));
229
- c.sort().join("") === P.sort().join("") && Me(e, r, i, t);
228
+ for (let e = 0; e < s.length; e++) c.push(z(s[e]));
229
+ c.sort().join("") === I.sort().join("") && Me(e, r, i, t);
230
230
  }
231
231
  }
232
- var z = function e(t, n, r) {
233
- P = [];
234
- let i = me(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
232
+ var B = function e(t, n, r) {
233
+ I = [];
234
+ let i = pe(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
235
235
  if (r === void 0 && typeof n == "function" && (r = n), Object.prototype.toString.call(n) === "[object Object]") {
236
236
  let e = n;
237
237
  e.scope && (o = e.scope), e.element && (s = e.element), e.keyup && (l = e.keyup), e.keydown !== void 0 && (u = e.keydown), e.capture !== void 0 && (f = e.capture), typeof e.splitKey == "string" && (d = e.splitKey), e.single === !0 && (p = !0);
238
238
  }
239
239
  for (typeof n == "string" && (o = n), p && Ae(t, o); c < i.length; c++) {
240
240
  let e = i[c].split(d);
241
- a = [], e.length > 1 && (a = pe(j, e));
241
+ a = [], e.length > 1 && (a = fe(N, e));
242
242
  let t = e[e.length - 1];
243
- t = t === "*" ? "*" : L(t), t in N || (N[t] = []), N[t].push({
243
+ t = t === "*" ? "*" : z(t), t in F || (F[t] = []), F[t].push({
244
244
  keyup: l,
245
245
  keydown: u,
246
246
  scope: o,
@@ -253,32 +253,32 @@ var z = function e(t, n, r) {
253
253
  });
254
254
  }
255
255
  if (s !== void 0 && typeof window < "u") {
256
- if (!I.has(s)) {
256
+ if (!R.has(s)) {
257
257
  let e = (e = window.event) => Ne(e, s), t = (e = window.event) => {
258
258
  Ne(e, s), ke(e);
259
259
  };
260
- I.set(s, {
260
+ R.set(s, {
261
261
  keydownListener: e,
262
262
  keyupListenr: t,
263
263
  capture: f
264
- }), fe(s, "keydown", e, f), fe(s, "keyup", t, f);
264
+ }), ue(s, "keydown", e, f), ue(s, "keyup", t, f);
265
265
  }
266
- if (!ve) {
266
+ if (!_e) {
267
267
  let e = () => {
268
- P = [];
268
+ I = [];
269
269
  };
270
- ve = {
270
+ _e = {
271
271
  listener: e,
272
272
  capture: f
273
- }, fe(window, "focus", e, f);
273
+ }, ue(window, "focus", e, f);
274
274
  }
275
- if (!F && typeof document < "u") {
275
+ if (!L && typeof document < "u") {
276
276
  let t = () => {
277
- P = [];
278
- for (let e in M) M[e] = !1;
279
- for (let t in j) e[t] = !1;
277
+ I = [];
278
+ for (let e in P) P[e] = !1;
279
+ for (let t in N) e[t] = !1;
280
280
  }, n = t, r = t;
281
- document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), F = {
281
+ document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), L = {
282
282
  fullscreen: n,
283
283
  webkit: r
284
284
  };
@@ -286,33 +286,33 @@ var z = function e(t, n, r) {
286
286
  }
287
287
  };
288
288
  function Pe(e, t = "all") {
289
- Object.keys(N).forEach((n) => {
290
- N[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
289
+ Object.keys(F).forEach((n) => {
290
+ F[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
291
291
  e && e.method && e.method({}, e);
292
292
  });
293
293
  });
294
294
  }
295
295
  function Fe(e) {
296
- let t = Object.values(N).flat();
296
+ let t = Object.values(F).flat();
297
297
  if (t.findIndex(({ element: t }) => t === e) < 0 && e) {
298
- let { keydownListener: t, keyupListenr: n, capture: r } = I.get(e) || {};
299
- t && n && (k(e, "keyup", n, r), k(e, "keydown", t, r), I.delete(e));
300
- }
301
- if (t.length <= 0 || I.size <= 0) {
302
- if (Array.from(I.keys()).forEach((e) => {
303
- let { keydownListener: t, keyupListenr: n, capture: r } = I.get(e) || {};
304
- t && n && (k(e, "keyup", n, r), k(e, "keydown", t, r), I.delete(e));
305
- }), I.clear(), Object.keys(N).forEach((e) => delete N[e]), ve) {
306
- let { listener: e, capture: t } = ve;
307
- k(window, "focus", e, t), ve = null;
298
+ let { keydownListener: t, keyupListenr: n, capture: r } = R.get(e) || {};
299
+ t && n && (de(e, "keyup", n, r), de(e, "keydown", t, r), R.delete(e));
300
+ }
301
+ if (t.length <= 0 || R.size <= 0) {
302
+ if (Array.from(R.keys()).forEach((e) => {
303
+ let { keydownListener: t, keyupListenr: n, capture: r } = R.get(e) || {};
304
+ t && n && (de(e, "keyup", n, r), de(e, "keydown", t, r), R.delete(e));
305
+ }), R.clear(), Object.keys(F).forEach((e) => delete F[e]), _e) {
306
+ let { listener: e, capture: t } = _e;
307
+ de(window, "focus", e, t), _e = null;
308
308
  }
309
- F && typeof document < "u" && (document.removeEventListener("fullscreenchange", F.fullscreen), document.removeEventListener("webkitfullscreenchange", F.webkit), F = null);
309
+ L && typeof document < "u" && (document.removeEventListener("fullscreenchange", L.fullscreen), document.removeEventListener("webkitfullscreenchange", L.webkit), L = null);
310
310
  }
311
311
  }
312
312
  var Ie = {
313
313
  getPressedKeyString: we,
314
- setScope: Se,
315
- getScope: R,
314
+ setScope: xe,
315
+ getScope: Se,
316
316
  deleteScope: Oe,
317
317
  getPressedKeyCodes: Ce,
318
318
  getAllKeyCodes: Te,
@@ -320,220 +320,177 @@ var Ie = {
320
320
  filter: Ee,
321
321
  trigger: Pe,
322
322
  unbind: Ae,
323
- keyMap: A,
324
- modifier: j,
325
- modifierMap: _e
323
+ keyMap: M,
324
+ modifier: N,
325
+ modifierMap: ge
326
326
  };
327
327
  for (let e in Ie) {
328
328
  let t = e;
329
- Object.prototype.hasOwnProperty.call(Ie, t) && (z[t] = Ie[t]);
329
+ Object.prototype.hasOwnProperty.call(Ie, t) && (B[t] = Ie[t]);
330
330
  }
331
331
  if (typeof window < "u") {
332
332
  let e = window.hotkeys;
333
- z.noConflict = (t) => (t && window.hotkeys === z && (window.hotkeys = e), z), window.hotkeys = z;
333
+ B.noConflict = (t) => (t && window.hotkeys === B && (window.hotkeys = e), B), window.hotkeys = B;
334
334
  }
335
335
  //#endregion
336
- //#region src/utils/date/date-modifiers.ts
337
- var B = (e, t) => {
336
+ //#region src/hooks/keyboard/utils.ts
337
+ var V = /* @__PURE__ */ function(e) {
338
+ return e[e.Forward = 1] = "Forward", e[e.Backward = 2] = "Backward", e[e.JumpForward = 3] = "JumpForward", e[e.JumpBackward = 4] = "JumpBackward", e[e.End = 5] = "End", e[e.Start = 6] = "Start", e;
339
+ }({}), Le = [
340
+ 1,
341
+ 2,
342
+ 3,
343
+ 4,
344
+ 5,
345
+ 6
346
+ ], Re = /* @__PURE__ */ function(e) {
347
+ return e[e.Forward = 1] = "Forward", e[e.Backward = 2] = "Backward", e;
348
+ }({}), ze = [1, 2], Be = (e) => Le.includes(e), Ve = (e) => ze.includes(e), He = (e, t, n) => {
349
+ switch (t) {
350
+ case 1: return Math.min(e + 1, n);
351
+ case 2: return Math.max(e - 1, 0);
352
+ case 3: return Math.min(e + 10, n);
353
+ case 4: return Math.max(e - 10, 0);
354
+ case 5: return n;
355
+ case 6: return 0;
356
+ default: return e;
357
+ }
358
+ }, Ue = (e, t, n, r, i = 10) => {
359
+ let a = t === 1;
360
+ for (let t = r; a ? t > 0 : t < 0; a ? t-- : t++) {
361
+ let r = e + t * i;
362
+ if (r >= 0 && r <= n) return r;
363
+ }
364
+ return e;
365
+ }, We = (e, t, n) => Math.max(Math.min(e + t, n), 0), Ge = (e) => {
366
+ let t = (t) => {
367
+ let { getElements: n, navigateTo: r, isNavigatedTo: i } = e, a = n(), o = a.findIndex((e) => i(e)), s = t(o, a.length - 1), c = a[s];
368
+ c = a[s], c && r(c, a[o]);
369
+ };
370
+ return {
371
+ navigate(e) {
372
+ return t((t, n) => He(t, e, n));
373
+ },
374
+ navigateByPage(e, n) {
375
+ return t((t, r) => Ue(t, e < 0 ? Re.Backward : Re.Forward, r, e, n));
376
+ },
377
+ navigateCustom(e) {
378
+ return t((t, n) => We(t, e, n));
379
+ }
380
+ };
381
+ }, Ke = (e, t) => {
338
382
  let n = new Date(e);
339
383
  return n.setDate(n.getDate() + t), n;
340
- }, Le = (e, t) => {
384
+ }, qe = (e, t) => {
341
385
  let n = new Date(e);
342
386
  return n.setMonth(n.getMonth() + t), n;
343
- }, Re = (e, t) => {
387
+ }, Je = (e, t) => {
344
388
  let n = new Date(e);
345
389
  return n.setFullYear(n.getFullYear() + t), n;
346
- }, ze = (e) => B(e, 1), Be = (e) => B(e, -1), Ve = (e) => B(e, 7), He = (e) => B(e, -7), Ue = (e) => Le(e, 1), We = (e) => Le(e, -1), Ge = (e) => Re(e, 1), Ke = (e) => Re(e, -1), qe = (e, t) => {
390
+ }, Ye = (e) => Ke(e, 1), Xe = (e) => Ke(e, -1), Ze = (e) => Ke(e, 7), Qe = (e) => Ke(e, -7), $e = (e) => qe(e, 1), et = (e) => qe(e, -1), tt = (e) => Je(e, 1), nt = (e) => Je(e, -1), rt = (e, t) => {
347
391
  let n = new Date(e), r = n.getDay(), i = r >= t ? r - t : 6 - r;
348
392
  return n.setDate(n.getDate() - i), n;
349
- }, Je = (e, t) => B(qe(e, t), 6), Ye = (e) => {
393
+ }, it = (e, t) => Ke(rt(e, t), 6), at = (e) => {
350
394
  let t = `${e.getFullYear()}`.padStart(4, "0"), n = `${e.getMonth() + 1}`.padStart(2, "0");
351
- return $e(/* @__PURE__ */ new Date(`${t}-${n}-01`));
352
- }, Xe = (e) => {
353
- let t = Ye(e);
395
+ return lt(/* @__PURE__ */ new Date(`${t}-${n}-01`));
396
+ }, ot = (e) => {
397
+ let t = at(e);
354
398
  return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
355
- }, Ze = (e) => new Date(e.getFullYear(), 0, 1), Qe = (e) => new Date(e.getFullYear(), 11, 31), $e = (e) => {
399
+ }, st = (e) => new Date(e.getFullYear(), 0, 1), ct = (e) => new Date(e.getFullYear(), 11, 31), lt = (e) => {
356
400
  let t = new Date(e), n = t.getTimezoneOffset();
357
401
  return t.setMinutes(t.getMinutes() + n), t;
358
- }, et = (e, t) => Intl.DateTimeFormat(t, {
402
+ }, ut = (e, t) => Intl.DateTimeFormat(t, {
359
403
  weekday: "long",
360
404
  day: "numeric",
361
405
  month: "long",
362
406
  year: "numeric"
363
- }).format(e), tt = (e) => e.getDate(), nt = (e, t) => Intl.DateTimeFormat(t, { weekday: "long" }).format(e), rt = (e) => {
407
+ }).format(e), dt = (e) => e.getDate(), ft = (e, t) => Intl.DateTimeFormat(t, { weekday: "long" }).format(e), pt = (e) => {
364
408
  let t = new Date(e);
365
409
  t.setDate(t.getDate() + 4 - t.getDay());
366
- let n = Ze(e);
410
+ let n = st(e);
367
411
  return Math.floor(((t - +n) / 864e5 + 1) / 7);
368
- }, it = (e, t) => ({
369
- name: st(e, t),
412
+ }, mt = (e, t) => ({
413
+ name: _t(e, t),
370
414
  number: e.getMonth() + 1
371
- }), at = (e) => e.getFullYear(), ot = (e, t) => Array.from({ length: 7 }).fill(void 0).map((t, n) => (e + n) % 7 + 1).map((e) => nt($e(/* @__PURE__ */ new Date(`2006-01-0${e}`)), t)), st = (e, t) => Intl.DateTimeFormat(t, { month: "long" }).format(e), ct = (e) => Array.from({ length: 12 }).fill(void 0).map((t, n) => it(/* @__PURE__ */ new Date(`2006-${String(n + 1).padStart(2, "0")}-01`), e)), lt = /* @__PURE__ */ function(e) {
415
+ }), ht = (e) => e.getFullYear(), gt = (e, t) => Array.from({ length: 7 }).fill(void 0).map((t, n) => (e + n) % 7 + 1).map((e) => ft(lt(/* @__PURE__ */ new Date(`2006-01-0${e}`)), t)), _t = (e, t) => Intl.DateTimeFormat(t, { month: "long" }).format(e), vt = (e) => Array.from({ length: 12 }).fill(void 0).map((t, n) => mt(/* @__PURE__ */ new Date(`2006-${String(n + 1).padStart(2, "0")}-01`), e)), yt = /* @__PURE__ */ function(e) {
372
416
  return e[e.Monday = 1] = "Monday", e[e.Tuesday = 2] = "Tuesday", e[e.Wednesday = 3] = "Wednesday", e[e.Thursday = 4] = "Thursday", e[e.Friday = 5] = "Friday", e[e.Saturday = 6] = "Saturday", e[e.Sunday = 7] = "Sunday", e;
373
- }({}), ut = (e) => {
374
- let t = [], n = Ye(e);
375
- for (; n.getMonth() === e.getMonth();) t.push(n), n = ze(n);
417
+ }({}), bt = (e) => {
418
+ let t = [], n = at(e);
419
+ for (; n.getMonth() === e.getMonth();) t.push(n), n = Ye(n);
376
420
  return t;
377
- }, dt = (e, t) => {
378
- let n = ut(e), { daysBefore: r, daysAfter: i } = pt(e, t);
421
+ }, xt = (e, t) => {
422
+ let n = bt(e), { daysBefore: r, daysAfter: i } = Ct(e, t);
379
423
  return [
380
424
  ...r,
381
425
  ...n,
382
426
  ...i
383
427
  ];
384
- }, ft = (e) => {
428
+ }, St = (e) => {
385
429
  let t = [];
386
430
  for (let n = 0; n < e.length; n += 7) t.push(e.slice(n, n + 7));
387
431
  return t.map((e) => ({
388
432
  days: e,
389
- number: rt(e[e.length - 1])
433
+ number: pt(e[e.length - 1])
390
434
  }));
391
- }, pt = (e, t) => {
392
- let n = Ye(e), r = n.getDay() === 0 ? 7 : n.getDay(), i = Xe(e), a = i.getDay() === 0 ? 7 : i.getDay(), o = t === lt.Monday ? 7 : t - 1, s = [], c = [], l = (7 - t + r) % 7, u = Be(n);
393
- for (; l > 0;) s.push(u), u = Be(u), --l;
435
+ }, Ct = (e, t) => {
436
+ let n = at(e), r = n.getDay() === 0 ? 7 : n.getDay(), i = ot(e), a = i.getDay() === 0 ? 7 : i.getDay(), o = t === yt.Monday ? 7 : t - 1, s = [], c = [], l = (7 - t + r) % 7, u = Xe(n);
437
+ for (; l > 0;) s.push(u), u = Xe(u), --l;
394
438
  s.reverse();
395
- let d = (7 - a + o) % 7, f = ze(i);
396
- for (; d > 0;) c.push(f), f = ze(f), --d;
439
+ let d = (7 - a + o) % 7, f = Ye(i);
440
+ for (; d > 0;) c.push(f), f = Ye(f), --d;
397
441
  return {
398
442
  daysBefore: s,
399
443
  daysAfter: c
400
444
  };
401
- }, mt = (e) => ({
445
+ }, wt = (e) => ({
402
446
  start: e.start < e.end ? e.start : e.end,
403
447
  end: e.start < e.end ? e.end : e.start
404
- }), ht = (e, t) => {
405
- let { start: n, end: r } = mt(t);
448
+ }), Tt = (e, t) => {
449
+ let { start: n, end: r } = wt(t);
406
450
  return e >= n && e <= r;
407
- }, gt = (e, t) => {
408
- let { start: n, end: r } = mt(t);
451
+ }, Et = (e, t) => {
452
+ let { start: n, end: r } = wt(t);
409
453
  return n.setHours(0, 0, 0, 0), r.setHours(23, 59, 59, 999), e >= n && e <= r;
410
- }, _t = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), vt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), yt = (e) => e == null, bt = (e) => e instanceof HTMLElement, V = (e) => {
454
+ }, Dt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ot = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), kt = (e) => e == null, At = (e) => e instanceof HTMLElement, jt = (e) => {
411
455
  let { disabled: t } = e.dataset;
412
- return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !yt(t) && t !== "";
413
- }, xt = (e) => !yt(e) && e === document.activeElement, St = (e) => xt(e) || e.getAttribute("tabindex") === "0", Ct = (e) => [...e].sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1), wt = (e) => e.match(/^[\P{Cc}\P{Cn}\P{Cs}]$/u) !== null, Tt = (e) => wt(e) && e !== " ", Et = (e, t) => e.length > 1 && e.split("").every((e) => e === t), Dt = (e, t) => e.trim().toLowerCase().startsWith(t.trim().toLowerCase()), Ot = (e, t = lt.Monday) => ({ onKeyDown(n) {
414
- switch ([
415
- "ArrowLeft",
416
- "ArrowRight",
417
- "ArrowUp",
418
- "ArrowDown",
419
- "PageUp",
420
- "PageDown",
421
- "Home",
422
- "End"
423
- ].includes(n.key) && n.preventDefault(), n.key) {
424
- case "ArrowLeft":
425
- e.value = Be(e.value);
426
- break;
427
- case "ArrowRight":
428
- e.value = ze(e.value);
429
- break;
430
- case "ArrowUp":
431
- e.value = He(e.value);
432
- break;
433
- case "ArrowDown":
434
- e.value = Ve(e.value);
435
- break;
436
- case "PageUp":
437
- e.value = n.shiftKey ? Ke(e.value) : We(e.value);
438
- break;
439
- case "PageDown":
440
- e.value = n.shiftKey ? Ge(e.value) : Ue(e.value);
441
- break;
442
- case "Home":
443
- e.value = n.shiftKey ? Ye(e.value) : qe(e.value, t);
444
- break;
445
- case "End":
446
- e.value = n.shiftKey ? Xe(e.value) : Je(e.value, t);
447
- break;
448
- default: break;
449
- }
450
- } }), kt = (e) => {
451
- let t = (t, n, i = !1) => {
452
- let { getElements: a, moveTo: o, isMovedTo: s } = e, c = a(), l = c.findIndex((e) => s(e)), u = n(l, c.length), d = c[u], f = t === "forwards" ? u++ : u--;
453
- if (f < 0) return i ? "backwards" : r("start");
454
- if (f > c.length - 1) return i ? "forwards" : r("end");
455
- d = c[f], d && o(d, c[l]);
456
- }, n = (e, n = !1) => t(e > 0 ? "forwards" : "backwards", (t) => t + e, n), r = (e) => {
457
- t(e === "start" ? "forwards" : "backwards", (t, n) => e === "start" ? 0 : n - 1);
458
- }, i = (e, t) => {
459
- let r = e * t, a = n(r, !0);
460
- a && e !== 0 && i(a === "forwards" ? e - 1 : e + 1, t);
461
- };
462
- return {
463
- moveRelatively: n,
464
- moveToEdge: r,
465
- moveByPages: i
466
- };
467
- }, At = (e) => {
456
+ return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !kt(t) && t !== "";
457
+ }, Mt = (e) => !kt(e) && e === document.activeElement, Nt = (e) => Mt(e) || e.getAttribute("tabindex") === "0", Pt = (e) => [...e].sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1), Ft = (e) => e.clientHeight < e.scrollHeight, It = (e, t) => {
458
+ let { offsetHeight: n, offsetTop: r } = e, { offsetHeight: i, scrollTop: a } = t, o = r < a, s = r + n > a + i, c = getComputedStyle(e).scrollMarginTop || "0px", l = getComputedStyle(e).scrollMarginBottom || "0px";
459
+ o ? t.scrollTo(0, r - parseInt(l)) : s && t.scrollTo(0, r - i + n + parseInt(c));
460
+ }, Lt = (e) => e.match(/^[\P{Cc}\P{Cn}\P{Cs}]$/u) !== null, Rt = (e) => Lt(e) && e !== " " || ["Backspace", "Clear"].includes(e), zt = (e, t) => e.length > 1 && e.split("").every((e) => e === t), Bt = (e, t) => e.trim().toLowerCase().startsWith(t.trim().toLowerCase()), Vt = (e) => {
468
461
  let t = (e, t) => {
469
462
  t.filter((t) => !e?.isSameNode(t)).forEach((e) => e.setAttribute("tabindex", "-1")), e?.setAttribute("tabindex", "0");
470
463
  }, n = (n) => {
471
464
  t(n, e()), n.focus();
472
465
  };
473
- D(e, (e) => {
466
+ A(e, (e) => {
474
467
  let [n] = e, r = e.find((e) => e.matches(":focus"));
475
- !r && n && V(n) && (n = e.find((e) => !V(e))), t(r || n, e);
468
+ !r && n && jt(n) && (n = e.find((e) => !jt(e))), t(r || n, e);
476
469
  });
477
- let { moveRelatively: r, moveToEdge: i, moveByPages: a } = kt({
470
+ let { navigate: r, navigateByPage: i, navigateCustom: a } = Ge({
478
471
  getElements: e,
479
- isMovedTo: St,
480
- moveTo: n
472
+ isNavigatedTo: Nt,
473
+ navigateTo: n
481
474
  });
482
475
  return {
483
- moveTo: n,
484
- moveRelatively: r,
485
- moveToEdge: i,
486
- moveByPages: a,
476
+ navigateTo: n,
477
+ navigate: r,
478
+ navigateByPage: i,
479
+ navigateCustom: a,
487
480
  getCurrentTabStop() {
488
481
  return e().find((e) => e.matches(":focus") || e.tabIndex === 0);
489
482
  }
490
483
  };
491
- }, jt = Symbol("grid"), Mt = (e) => {
492
- let { moveRelatively: t, moveToEdge: n, moveTo: r, moveByPages: i } = At(e);
493
- return { onKeyDown(a, o) {
494
- let s = [
495
- "ArrowLeft",
496
- "ArrowRight",
497
- "ArrowUp",
498
- "ArrowDown",
499
- "PageUp",
500
- "PageDown",
501
- "Home",
502
- "End"
503
- ];
504
- if (!bt(o.target)) return;
505
- s.includes(o.key) && o.preventDefault();
506
- let c = e().filter((e) => e.matches(`[data-elements-${a}="true"]`)), [l, u] = [c[0], c[c.length - 1]], d = o.target.closest(`[data-elements-${a}="true"]`);
507
- switch (o.key) {
508
- case "ArrowLeft":
509
- l?.isSameNode(d) || t(-1);
510
- break;
511
- case "ArrowRight":
512
- u?.isSameNode(d) || t(1);
513
- break;
514
- case "ArrowUp": return i(-1, c.length);
515
- case "ArrowDown": return i(1, c.length);
516
- case "PageUp": return i(-9, c.length);
517
- case "PageDown": return i(9, c.length);
518
- case "Home":
519
- o.ctrlKey ? n("start") : l && r(l);
520
- break;
521
- case "End":
522
- o.ctrlKey ? n("end") : u && r(u);
523
- break;
524
- default: break;
525
- }
526
- } };
527
- }, Nt = Symbol("roving-tabindex"), Pt = (e, t) => {
528
- let { moveTo: n, moveRelatively: r, moveToEdge: i, moveByPages: a, getCurrentTabStop: o } = At(t);
484
+ }, Ht = Symbol("roving-tabindex"), Ut = (e, t) => {
485
+ let { navigate: n, navigateByPage: r, navigateCustom: i, navigateTo: a, getCurrentTabStop: o } = Vt(t);
529
486
  return {
530
- moveTo: n,
531
- moveRelatively: r,
532
- moveToEdge: i,
533
- moveByPages: a,
487
+ navigate: n,
488
+ navigateByPage: r,
489
+ navigateCustom: i,
490
+ navigateTo: a,
534
491
  getCurrentTabStop: o,
535
492
  onKeyDown(t) {
536
- let n = S(e) === "vertical", a = n ? "ArrowUp" : "ArrowLeft", o = n ? "ArrowDown" : "ArrowRight";
493
+ let r = T(e) === "vertical", a = r ? "ArrowUp" : "ArrowLeft", o = r ? "ArrowDown" : "ArrowRight";
537
494
  switch ([
538
495
  o,
539
496
  a,
@@ -542,75 +499,30 @@ var B = (e, t) => {
542
499
  "Home",
543
500
  "End"
544
501
  ].includes(t.key) && t.preventDefault(), t.key) {
545
- case a: return r(-1);
546
- case o: return r(1);
547
- case "PageUp": return r(-10);
548
- case "PageDown": return r(10);
549
- case "Home": return i("start");
550
- case "End": return i("end");
502
+ case a: return n(V.Backward);
503
+ case o: return n(V.Forward);
504
+ case "PageUp": return i(-10);
505
+ case "PageDown": return i(10);
506
+ case "Home": return n(V.Start);
507
+ case "End": return n(V.End);
551
508
  default: return;
552
509
  }
553
510
  }
554
511
  };
555
- }, Ft = Symbol("listbox"), It = (e, t, n, r) => {
556
- let { moveTo: i, moveRelatively: a, moveToEdge: o, onKeyDown: s, getCurrentTabStop: c } = Pt(e, r), l = () => {
557
- c()?.dispatchEvent(new KeyboardEvent("keydown", { key: " " }));
558
- }, u = (e, t) => {
559
- let i = r(), a = i.findIndex((t) => t.getAttribute("data-value") === e), o = i.findIndex((e) => e.getAttribute("data-value") === t);
560
- if (a < 0 || o < 0 || a === o) return;
561
- let s = (a < o ? i.slice(a, o) : i.slice(o, a)).filter((e) => !V(e) && !!e.getAttribute("data-value")).map((e) => e.getAttribute("data-value"));
562
- i[a] && !V(i[a]) && s.unshift(e), i[o] && !V(i[o]) && s.push(t), n.value = [...new Set(n.value.concat(s))];
563
- }, d = (e, t) => {
564
- let n = r().at(t === "start" ? 0 : -1)?.getAttribute("data-value");
565
- n && u(e, n);
566
- }, f = (e = r()) => e.map((e) => e.getAttribute("data-value")).filter((e) => !!e);
567
- return {
568
- moveTo: i,
569
- onSpace(e, i) {
570
- if (!(bt(i.target) && V(i.target))) if (n.value.includes(e)) n.value = n.value.filter((t) => t !== e);
571
- else if (S(t)) n.value = [...n.value, e];
572
- else {
573
- let t = r().filter((e) => V(e)), i = f(t);
574
- (!n.value.length || !i.includes(n.value[0])) && (n.value = [e]);
575
- }
576
- },
577
- onKeyDown(i, c) {
578
- if (!S(t) || !c.shiftKey && !c.ctrlKey) return s(c);
579
- let u = S(e) === "vertical";
580
- if (c.ctrlKey && c.key === "a") {
581
- c.preventDefault();
582
- let e = r(), t = f(e), i = f(e.filter((e) => V(e)));
583
- return t.filter((e) => !i.includes(e)).every((e) => n.value.includes(e)) ? n.value = n.value.filter((e) => i.includes(e)) : n.value = t.filter((e) => !i.includes(e) || n.value.includes(e));
584
- }
585
- if (c.shiftKey) switch (c.key) {
586
- case u ? "ArrowUp" : "ArrowLeft":
587
- c.preventDefault(), a(-1), l();
588
- break;
589
- case u ? "ArrowDown" : "ArrowRight":
590
- c.preventDefault(), a(1), l();
591
- break;
592
- case "Home":
593
- case "End":
594
- c.ctrlKey && (c.preventDefault(), d(i, c.key === "Home" ? "start" : "end"), o(c.key === "Home" ? "start" : "end"));
595
- break;
596
- default: break;
597
- }
598
- }
599
- };
600
512
  };
601
513
  //#endregion
602
514
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
603
- function Lt(e, t) {
604
- return c() ? (ee(e, t), !0) : !1;
515
+ function Wt(e, t) {
516
+ return c() ? (y(e, t), !0) : !1;
605
517
  }
606
- var Rt = typeof window < "u" && typeof document < "u";
518
+ var Gt = typeof window < "u" && typeof document < "u";
607
519
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
608
- var zt = (e) => e != null, Bt = () => {};
609
- function Vt(e) {
520
+ var Kt = (e) => e != null, qt = () => {};
521
+ function Jt(e) {
610
522
  return Array.isArray(e) ? e : [e];
611
523
  }
612
- function Ht(e, t, n = {}) {
613
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = ne(!1), o;
524
+ function Yt(e, t, n = {}) {
525
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = te(!1), o;
614
526
  function s() {
615
527
  o &&= (clearTimeout(o), void 0);
616
528
  }
@@ -620,51 +532,57 @@ function Ht(e, t, n = {}) {
620
532
  function l(...n) {
621
533
  i && e(), s(), a.value = !0, o = setTimeout(() => {
622
534
  a.value = !1, o = void 0, e(...n);
623
- }, S(t));
535
+ }, T(t));
624
536
  }
625
- return r && (a.value = !0, Rt && l()), Lt(c), {
626
- isPending: te(a),
537
+ return r && (a.value = !0, Gt && l()), Wt(c), {
538
+ isPending: ee(a),
627
539
  start: l,
628
540
  stop: c
629
541
  };
630
542
  }
631
- function Ut(e = 1e3, n = {}) {
632
- let { controls: r = !1, callback: i } = n, a = Ht(i ?? Bt, e, n), o = t(() => !a.isPending.value);
543
+ function Xt(e = 1e3, n = {}) {
544
+ let { controls: r = !1, callback: i } = n, a = Yt(i ?? qt, e, n), o = t(() => !a.isPending.value);
633
545
  return r ? {
634
546
  ready: o,
635
547
  ...a
636
548
  } : o;
637
549
  }
638
- function Wt(e, t, n) {
639
- return D(e, t, {
550
+ function Zt(e, t, n) {
551
+ return A(e, t, {
552
+ ...n,
553
+ deep: !0
554
+ });
555
+ }
556
+ function Qt(e, t, n) {
557
+ return A(e, t, {
640
558
  ...n,
641
559
  immediate: !0
642
560
  });
643
561
  }
644
562
  //#endregion
645
563
  //#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
646
- var Gt = Rt ? window : void 0;
647
- Rt && window.document, Rt && window.navigator, Rt && window.location;
648
- function Kt(e) {
649
- let t = S(e);
564
+ var $t = Gt ? window : void 0;
565
+ Gt && window.document, Gt && window.navigator, Gt && window.location;
566
+ function en(e) {
567
+ let t = T(e);
650
568
  return t?.$el ?? t;
651
569
  }
652
- function qt() {
653
- let e = ne(!1), t = s();
654
- return t && g(() => {
570
+ function tn() {
571
+ let e = te(!1), t = s();
572
+ return t && v(() => {
655
573
  e.value = !0;
656
574
  }, t), e;
657
575
  }
658
576
  /* @__NO_SIDE_EFFECTS__ */
659
- function Jt(e) {
660
- let n = qt();
577
+ function nn(e) {
578
+ let n = tn();
661
579
  return t(() => (n.value, !!e()));
662
580
  }
663
- function Yt(e, n, r = {}) {
664
- let { window: i = Gt, ...a } = r, o, s = /* @__PURE__ */ Jt(() => i && "MutationObserver" in i), c = () => {
581
+ function rn(e, n, r = {}) {
582
+ let { window: i = $t, ...a } = r, o, s = /* @__PURE__ */ nn(() => i && "MutationObserver" in i), c = () => {
665
583
  o &&= (o.disconnect(), void 0);
666
- }, l = D(t(() => {
667
- let t = Vt(S(e)).map(Kt).filter(zt);
584
+ }, l = A(t(() => {
585
+ let t = Jt(T(e)).map(en).filter(Kt);
668
586
  return new Set(t);
669
587
  }), (e) => {
670
588
  c(), s.value && e.size && (o = new MutationObserver(n), e.forEach((e) => o.observe(e, a)));
@@ -674,7 +592,7 @@ function Yt(e, n, r = {}) {
674
592
  }), u = () => o?.takeRecords(), d = () => {
675
593
  l(), c();
676
594
  };
677
- return Lt(d), {
595
+ return Wt(d), {
678
596
  isSupported: s,
679
597
  stop: d,
680
598
  takeRecords: u
@@ -682,35 +600,44 @@ function Yt(e, n, r = {}) {
682
600
  }
683
601
  //#endregion
684
602
  //#region src/hooks/keyboard/useTypeahead.ts
685
- var Xt = (e) => {
686
- let t = y(""), n = Ut(500, {
603
+ var an = (e, t) => {
604
+ let n = S(""), r = Xt(500, {
687
605
  controls: !0,
688
606
  callback() {
689
- t.value = "";
607
+ n.value = "";
690
608
  }
691
609
  });
692
- return { type(r) {
693
- let { getElements: i, moveTo: a, isMovedTo: o } = S(e);
694
- n.isPending.value && n.stop();
695
- let s = r.toLowerCase();
696
- t.value += s;
697
- let c = Et(t.value, s) ? s : t.value, l = i(), u = l.filter((e) => Dt(e.textContent, c)), d = l.find((e) => o(e)), f = u[u.findIndex((e) => d?.isSameNode(e)) + 1];
698
- f && a(f, d), n.start();
610
+ return { type(i) {
611
+ r.isPending.value && r.stop();
612
+ let a = i.toLowerCase();
613
+ n.value += a;
614
+ let o = zt(n.value, a) ? a : n.value;
615
+ console.log("new search", o);
616
+ let s = t.value.map((e, t) => ({
617
+ ...e,
618
+ index: t
619
+ })).filter((e) => Bt(e.label, o));
620
+ if (s.length === 1) e.value = s[0].index;
621
+ else if (s.length > 0) {
622
+ let t = s.find((t) => t.index > e.value);
623
+ e.value = t ? t.index : s[0].index;
624
+ }
625
+ r.start();
699
626
  } };
700
- }, Zt = /([\p{Ll}\d])(\p{Lu})/gu, Qt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu, $t = /(\d)\p{Ll}|(\p{L})\d/u, en = /[^\p{L}\d]+/giu, tn = "$1\0$2", nn = "";
701
- function rn(e) {
627
+ }, on = /([\p{Ll}\d])(\p{Lu})/gu, sn = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu, cn = /(\d)\p{Ll}|(\p{L})\d/u, ln = /[^\p{L}\d]+/giu, un = "$1\0$2", dn = "";
628
+ function fn(e) {
702
629
  let t = e.trim();
703
- t = t.replace(Zt, tn).replace(Qt, tn), t = t.replace(en, "\0");
630
+ t = t.replace(on, un).replace(sn, un), t = t.replace(ln, "\0");
704
631
  let n = 0, r = t.length;
705
632
  for (; t.charAt(n) === "\0";) n++;
706
633
  if (n === r) return [];
707
634
  for (; t.charAt(r - 1) === "\0";) r--;
708
635
  return t.slice(n, r).split(/\0/g);
709
636
  }
710
- function an(e) {
711
- let t = rn(e);
637
+ function pn(e) {
638
+ let t = fn(e);
712
639
  for (let e = 0; e < t.length; e++) {
713
- let n = t[e], r = $t.exec(n);
640
+ let n = t[e], r = cn.exec(n);
714
641
  if (r) {
715
642
  let i = r.index + (r[1] ?? r[2]).length;
716
643
  t.splice(e, 1, n.slice(0, i), n.slice(i));
@@ -718,21 +645,21 @@ function an(e) {
718
645
  }
719
646
  return t;
720
647
  }
721
- function on(e, t) {
722
- let [n, r, i] = ln(e, t);
723
- return n + r.map(cn(t?.locale)).join(t?.delimiter ?? " ") + i;
648
+ function mn(e, t) {
649
+ let [n, r, i] = _n(e, t);
650
+ return n + r.map(gn(t?.locale)).join(t?.delimiter ?? " ") + i;
724
651
  }
725
- function sn(e, t) {
726
- return on(e, {
652
+ function hn(e, t) {
653
+ return mn(e, {
727
654
  delimiter: "-",
728
655
  ...t
729
656
  });
730
657
  }
731
- function cn(e) {
658
+ function gn(e) {
732
659
  return e === !1 ? (e) => e.toLowerCase() : (t) => t.toLocaleLowerCase(e);
733
660
  }
734
- function ln(e, t = {}) {
735
- let n = t.split ?? (t.separateNumbers ? an : rn), r = t.prefixCharacters ?? nn, i = t.suffixCharacters ?? nn, a = 0, o = e.length;
661
+ function _n(e, t = {}) {
662
+ let n = t.split ?? (t.separateNumbers ? pn : fn), r = t.prefixCharacters ?? dn, i = t.suffixCharacters ?? dn, a = 0, o = e.length;
736
663
  for (; a < e.length;) {
737
664
  let t = e.charAt(a);
738
665
  if (!r.includes(t)) break;
@@ -751,29 +678,132 @@ function ln(e, t = {}) {
751
678
  }
752
679
  //#endregion
753
680
  //#region src/hooks/useBemClass.ts
754
- var un = (e, t) => {
681
+ var vn = (e, t) => {
755
682
  let n = t ? `${t}-${e}` : e;
756
683
  return (...e) => {
757
- let t = [n, ...e].filter((e) => typeof e == "string").map((e) => sn(e)).join("__"), r = { [t]: !0 };
684
+ let t = [n, ...e].filter((e) => typeof e == "string").map((e) => hn(e)).join("__"), r = { [t]: !0 };
758
685
  for (let n of e.filter((e) => typeof e == "object")) for (let e of Object.keys(n)) {
759
686
  let i = n[e];
760
- typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${sn(e)}-${i}`] = !0), typeof i == "boolean" && (r[`${t}--${sn(e)}`] = i);
687
+ typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${hn(e)}-${i}`] = !0), typeof i == "boolean" && (r[`${t}--${hn(e)}`] = i);
761
688
  }
762
689
  return r;
763
690
  };
764
- }, dn = (e) => (t) => un(t, e), fn = (e, n = lt.Monday, r = "en") => {
765
- let i = y(dt(e.value, S(n))), a = t(() => at(e.value)), o = t(() => it(e.value, S(r))), s = t(() => ft(i.value));
766
- return D(t(() => `${a.value}${o.value.number}`), () => {
767
- i.value = dt(e.value, S(n));
768
- }), D(() => S(n), (t) => {
769
- i.value = dt(e.value, t);
691
+ }, yn = (e) => (t) => vn(t, e), bn = (e, n = yt.Monday, r = "en") => {
692
+ let i = S(xt(e.value, T(n))), a = t(() => ht(e.value)), o = t(() => mt(e.value, T(r))), s = t(() => St(i.value));
693
+ return A(t(() => `${a.value}${o.value.number}`), () => {
694
+ i.value = xt(e.value, T(n));
695
+ }), A(() => T(n), (t) => {
696
+ i.value = xt(e.value, t);
770
697
  }), {
771
698
  year: a,
772
699
  month: o,
773
700
  weeks: s
774
701
  };
775
- }, pn = (e) => {
776
- let n = y([]), r = t(() => n.value.sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1)), i = () => document.querySelectorAll("h1, h2, h3, h4, h5, h6"), a = t(() => {
702
+ }, xn = (e, n, r, i, a) => {
703
+ let o = S([]), s = S(0), c = S(!1), l = t(() => {
704
+ if (!i) return o.value;
705
+ let e = i.value.toLowerCase().trim();
706
+ return o.value.filter((t) => t.label.toLowerCase().startsWith(e));
707
+ }), { type: u } = an(s, l), d = t(() => l.value[s.value]), f = t(() => d.value ? r.get(d.value.value) : "");
708
+ A(() => i?.value, () => {
709
+ let e = l.value.length - 1;
710
+ s.value = He(s.value, V.Start, e), h(l.value.length > 0);
711
+ });
712
+ let p = (e) => {
713
+ i && (i.value = e);
714
+ }, h = (e) => {
715
+ a && a.value !== e && (a.value = e);
716
+ }, g = (t) => {
717
+ let n = l.value[t];
718
+ !n || n.disabled || (e.value.some((e) => e === n.value) ? e.value = e.value.filter((e) => e !== n.value) : e.value = [...e.value, n.value]);
719
+ }, _ = () => {
720
+ e.value = l.value.filter((t) => !t.disabled || e.value.includes(t.value)).map((e) => e.value);
721
+ }, v = (t) => {
722
+ let n = l.value[t];
723
+ !n || n.disabled || (e.value = [n.value]);
724
+ };
725
+ return {
726
+ optionsTracker: o,
727
+ options: l,
728
+ activeIndex: s,
729
+ activeElementId: f,
730
+ onClick: () => {
731
+ h(!0);
732
+ },
733
+ onBlur: () => {
734
+ if (c.value) {
735
+ c.value = !1;
736
+ return;
737
+ }
738
+ h(!1);
739
+ },
740
+ onKeyDown: async (e) => {
741
+ let t = Sn(e, !a || a.value, !!i), r = l.value.length - 1;
742
+ if (Be(t)) {
743
+ e.preventDefault(), s.value = He(s.value, t, r), h(!0);
744
+ return;
745
+ }
746
+ switch (t) {
747
+ case "clear":
748
+ p("");
749
+ break;
750
+ case "open":
751
+ case "close":
752
+ h(t === "open");
753
+ break;
754
+ case "select":
755
+ n.value ? (g(s.value), p("")) : (v(s.value), p(d.value?.label || ""), await m(), h(!1));
756
+ break;
757
+ case "select-all":
758
+ n.value && _();
759
+ break;
760
+ case "type":
761
+ i ? h(!0) : u(e.key);
762
+ break;
763
+ default: break;
764
+ }
765
+ },
766
+ onOptionClick: (e) => {
767
+ s.value = e, n.value ? g(e) : v(e), p(""), document.getElementById(r.get("input"))?.focus();
768
+ },
769
+ onOptionMouseDown: () => {
770
+ c.value = !0;
771
+ },
772
+ onOptionMouseUp: () => {
773
+ setTimeout(() => {
774
+ n.value || h(!1);
775
+ }, 0);
776
+ }
777
+ };
778
+ }, Sn = (e, t, n) => {
779
+ let { key: r, altKey: i, ctrlKey: a, metaKey: o } = e, s = [
780
+ "ArrowDown",
781
+ "ArrowUp",
782
+ "Enter",
783
+ " ",
784
+ "Home",
785
+ "End"
786
+ ], c = ["Backspace", "Clear"];
787
+ if (!t && s.includes(r)) return "open";
788
+ if (c.includes(r) || Rt(r) && !i && !a && !o) return "type";
789
+ switch (r) {
790
+ case "ArrowUp":
791
+ case "ArrowLeft": return t ? V.Backward : V.End;
792
+ case "ArrowDown":
793
+ case "ArrowRight": return t ? V.Forward : void 0;
794
+ case "PageUp": return V.JumpBackward;
795
+ case "PageDown": return V.JumpForward;
796
+ case "Home": return V.Start;
797
+ case "End": return V.End;
798
+ case "Enter": return "select";
799
+ case " ": return n ? void 0 : "select";
800
+ case "Escape": return t ? "close" : "clear";
801
+ case "a":
802
+ case "A": return a ? "select-all" : void 0;
803
+ default: return;
804
+ }
805
+ }, Cn = (e) => {
806
+ let n = S([]), r = t(() => n.value.sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1)), i = () => document.querySelectorAll(":is(h1, h2, h3, h4, h5, h6):not(dialog *)"), a = t(() => {
777
807
  let e = [], t = [];
778
808
  for (let n of r.value) {
779
809
  let r = parseInt(n.tagName.substring(1), 10), i = {
@@ -793,9 +823,9 @@ var un = (e, t) => {
793
823
  };
794
824
  return t.children && (n.children = o(t.children)), n;
795
825
  }) : t;
796
- return g(async () => {
797
- await p(), n.value = Array.from(i());
798
- }), Yt(document.body, (e) => {
826
+ return v(async () => {
827
+ await m(), n.value = Array.from(i());
828
+ }), rn(document.body, (e) => {
799
829
  let t = Array.from(i());
800
830
  t.some((t) => e.some((e) => [...e.addedNodes, ...e.removedNodes].includes(t))) && (n.value = t);
801
831
  }, {
@@ -803,78 +833,78 @@ var un = (e, t) => {
803
833
  subtree: !0
804
834
  }), { documentOutline: t(() => o(a.value)) };
805
835
  }, H = (e, n) => {
806
- let r = y(/* @__PURE__ */ new Map()), i = n ? {
836
+ let r = S(/* @__PURE__ */ new Map()), i = n ? {
807
837
  items: r,
808
838
  parent: n
809
839
  } : l(`${e}-elements`, {
810
840
  items: r,
811
- parent: y()
841
+ parent: S()
812
842
  });
813
- return n && v(`${e}-elements`, i), {
843
+ return n && x(`${e}-elements`, i), {
814
844
  getElements: (t = !0) => {
815
845
  let n = i.parent.value;
816
846
  if (!n) return [];
817
847
  let r = Array.from(n.querySelectorAll(`[data-elements-${e}="true"]`));
818
- return Ct(Array.from(i.items.value.values()).sort((e, t) => r.indexOf(e) - r.indexOf(t)).filter((e) => t || !V(e)));
848
+ return Pt(Array.from(i.items.value.values()).sort((e, t) => r.indexOf(e) - r.indexOf(t)).filter((e) => t || !jt(e)));
819
849
  },
820
- elements: t(() => Ct(Array.from(i.items.value.values())))
850
+ elements: t(() => Pt(Array.from(i.items.value.values())))
821
851
  };
822
852
  }, U = (e, t, n) => {
823
853
  let r = l(`${e}-elements`, void 0);
824
- oe((e) => {
854
+ ae((e) => {
825
855
  if (!t.value) return;
826
- let i = u(t.value);
856
+ let i = d(t.value);
827
857
  n?.value ? r?.items.value.delete(i) : r?.items.value.set(i, t.value), e(() => r?.items.value.delete(i));
828
- }), g(() => {
858
+ }), v(() => {
829
859
  t.value?.setAttribute(`data-elements-${e}`, "true");
830
- }), h(() => {
860
+ }), _(() => {
831
861
  t.value?.removeAttribute(`data-elements-${e}`);
832
862
  });
833
863
  };
834
864
  //#endregion
835
865
  //#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
836
866
  function W(e) {
837
- return Array.isArray ? Array.isArray(e) : xn(e) === "[object Array]";
867
+ return Array.isArray ? Array.isArray(e) : jn(e) === "[object Array]";
838
868
  }
839
- function mn(e) {
869
+ function wn(e) {
840
870
  if (typeof e == "string") return e;
841
871
  if (typeof e == "bigint") return e.toString();
842
872
  let t = e + "";
843
873
  return t == "0" && 1 / e == -Infinity ? "-0" : t;
844
874
  }
845
- function hn(e) {
846
- return e == null ? "" : mn(e);
875
+ function Tn(e) {
876
+ return e == null ? "" : wn(e);
847
877
  }
848
878
  function G(e) {
849
879
  return typeof e == "string";
850
880
  }
851
- function gn(e) {
881
+ function En(e) {
852
882
  return typeof e == "number";
853
883
  }
854
- function _n(e) {
855
- return e === !0 || e === !1 || yn(e) && xn(e) == "[object Boolean]";
884
+ function Dn(e) {
885
+ return e === !0 || e === !1 || kn(e) && jn(e) == "[object Boolean]";
856
886
  }
857
- function vn(e) {
887
+ function On(e) {
858
888
  return typeof e == "object";
859
889
  }
860
- function yn(e) {
861
- return vn(e) && e !== null;
890
+ function kn(e) {
891
+ return On(e) && e !== null;
862
892
  }
863
893
  function K(e) {
864
894
  return e != null;
865
895
  }
866
- function bn(e) {
896
+ function An(e) {
867
897
  return !e.trim().length;
868
898
  }
869
- function xn(e) {
899
+ function jn(e) {
870
900
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
871
901
  }
872
- var Sn = "Incorrect 'index' type", Cn = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", wn = (e) => `Invalid value for key ${e}`, Tn = (e) => `Pattern length exceeds max of ${e}.`, En = (e) => `Missing ${e} property in key`, Dn = (e) => `Property 'weight' in key '${e}' must be a positive integer`, On = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", kn = Object.prototype.hasOwnProperty, An = class {
902
+ var Mn = "Incorrect 'index' type", Nn = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Pn = (e) => `Invalid value for key ${e}`, Fn = (e) => `Pattern length exceeds max of ${e}.`, In = (e) => `Missing ${e} property in key`, Ln = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Rn = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", zn = Object.prototype.hasOwnProperty, Bn = class {
873
903
  constructor(e) {
874
904
  this._keys = [], this._keyMap = {};
875
905
  let t = 0;
876
906
  e.forEach((e) => {
877
- let n = jn(e);
907
+ let n = Vn(e);
878
908
  this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
879
909
  }), this._keys.forEach((e) => {
880
910
  e.weight /= t;
@@ -890,14 +920,14 @@ var Sn = "Incorrect 'index' type", Cn = "Invalid doc index: must be a non-negati
890
920
  return JSON.stringify(this._keys);
891
921
  }
892
922
  };
893
- function jn(e) {
923
+ function Vn(e) {
894
924
  let t = null, n = null, r = null, i = 1, a = null;
895
- if (G(e) || W(e)) r = e, t = Mn(e), n = Nn(e);
925
+ if (G(e) || W(e)) r = e, t = Hn(e), n = Un(e);
896
926
  else {
897
- if (!kn.call(e, "name")) throw Error(En("name"));
927
+ if (!zn.call(e, "name")) throw Error(In("name"));
898
928
  let o = e.name;
899
- if (r = o, kn.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Dn(Nn(o)));
900
- t = Mn(o), n = Nn(o), a = e.getFn ?? null;
929
+ if (r = o, zn.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Ln(Un(o)));
930
+ t = Hn(o), n = Un(o), a = e.getFn ?? null;
901
931
  }
902
932
  return {
903
933
  path: t,
@@ -907,13 +937,13 @@ function jn(e) {
907
937
  getFn: a
908
938
  };
909
939
  }
910
- function Mn(e) {
940
+ function Hn(e) {
911
941
  return W(e) ? e : e.split(".");
912
942
  }
913
- function Nn(e) {
943
+ function Un(e) {
914
944
  return W(e) ? e.join(".") : e;
915
945
  }
916
- function Pn(e, t) {
946
+ function Wn(e, t) {
917
947
  let n = [], r = !1, i = (e, t, a, o) => {
918
948
  if (K(e)) if (!t[a]) n.push(o === void 0 ? e : {
919
949
  v: e,
@@ -922,8 +952,8 @@ function Pn(e, t) {
922
952
  else {
923
953
  let s = e[t[a]];
924
954
  if (!K(s)) return;
925
- if (a === t.length - 1 && (G(s) || gn(s) || _n(s) || typeof s == "bigint")) n.push(o === void 0 ? hn(s) : {
926
- v: hn(s),
955
+ if (a === t.length - 1 && (G(s) || En(s) || Dn(s) || typeof s == "bigint")) n.push(o === void 0 ? Tn(s) : {
956
+ v: Tn(s),
927
957
  i: o
928
958
  });
929
959
  else if (W(s)) {
@@ -934,45 +964,45 @@ function Pn(e, t) {
934
964
  };
935
965
  return i(e, G(t) ? t.split(".") : t, 0), r ? n : n[0];
936
966
  }
937
- var Fn = {
967
+ var Gn = {
938
968
  includeMatches: !1,
939
969
  findAllMatches: !1,
940
970
  minMatchCharLength: 1
941
- }, In = {
971
+ }, Kn = {
942
972
  isCaseSensitive: !1,
943
973
  ignoreDiacritics: !1,
944
974
  includeScore: !1,
945
975
  keys: [],
946
976
  shouldSort: !0,
947
977
  sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
948
- }, Ln = {
978
+ }, qn = {
949
979
  location: 0,
950
980
  threshold: .6,
951
981
  distance: 100
952
- }, Rn = {
982
+ }, Jn = {
953
983
  useExtendedSearch: !1,
954
984
  useTokenSearch: !1,
955
985
  tokenize: void 0,
956
986
  tokenMatch: "any",
957
- getFn: Pn,
987
+ getFn: Wn,
958
988
  ignoreLocation: !1,
959
989
  ignoreFieldNorm: !1,
960
990
  fieldNormWeight: 1
961
991
  }, q = Object.freeze({
962
- ...In,
963
- ...Fn,
964
- ...Ln,
965
- ...Rn
992
+ ...Kn,
993
+ ...Gn,
994
+ ...qn,
995
+ ...Jn
966
996
  });
967
- function zn(e) {
997
+ function Yn(e) {
968
998
  return e >= 9 && e <= 13 || e === 32 || e === 160;
969
999
  }
970
- function Bn(e = 1, t = 3) {
1000
+ function Xn(e = 1, t = 3) {
971
1001
  let n = /* @__PURE__ */ new Map(), r = 10 ** t;
972
1002
  return {
973
1003
  get(t) {
974
1004
  let i = 0, a = !1;
975
- for (let e = 0; e < t.length; e++) zn(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
1005
+ for (let e = 0; e < t.length; e++) Yn(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
976
1006
  if (i === 0 && (i = 1), n.has(i)) return n.get(i);
977
1007
  let o = Math.round(r / i ** (.5 * e)) / r;
978
1008
  return n.set(i, o), o;
@@ -982,9 +1012,9 @@ function Bn(e = 1, t = 3) {
982
1012
  }
983
1013
  };
984
1014
  }
985
- var Vn = class {
1015
+ var Zn = class {
986
1016
  constructor({ getFn: e = q.getFn, fieldNormWeight: t = q.fieldNormWeight } = {}) {
987
- this.norm = Bn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
1017
+ this.norm = Xn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
988
1018
  }
989
1019
  setSources(e = []) {
990
1020
  this.docs = e;
@@ -1011,7 +1041,7 @@ var Vn = class {
1011
1041
  this.records.length = t, this.norm.clear();
1012
1042
  }
1013
1043
  add(e, t) {
1014
- if (!Number.isInteger(t) || t < 0) throw Error(Cn);
1044
+ if (!Number.isInteger(t) || t < 0) throw Error(Nn);
1015
1045
  if (G(e)) {
1016
1046
  let n = this._createStringRecord(e, t);
1017
1047
  return n && this.records.push(n), n;
@@ -1020,7 +1050,7 @@ var Vn = class {
1020
1050
  return this.records.push(n), n;
1021
1051
  }
1022
1052
  removeAt(e) {
1023
- if (!Number.isInteger(e) || e < 0) throw Error(Cn);
1053
+ if (!Number.isInteger(e) || e < 0) throw Error(Nn);
1024
1054
  for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
1025
1055
  this.records.splice(t, 1);
1026
1056
  break;
@@ -1049,7 +1079,7 @@ var Vn = class {
1049
1079
  return this.records.length;
1050
1080
  }
1051
1081
  _createStringRecord(e, t) {
1052
- return !K(e) || bn(e) ? null : {
1082
+ return !K(e) || An(e) ? null : {
1053
1083
  v: e,
1054
1084
  i: t,
1055
1085
  n: this.norm.get(e)
@@ -1069,7 +1099,7 @@ var Vn = class {
1069
1099
  let n = i[t];
1070
1100
  if (K(n)) {
1071
1101
  if (G(n)) {
1072
- if (!bn(n)) {
1102
+ if (!An(n)) {
1073
1103
  let r = {
1074
1104
  v: n,
1075
1105
  i: t,
@@ -1078,8 +1108,8 @@ var Vn = class {
1078
1108
  e.push(r);
1079
1109
  }
1080
1110
  } else if (K(n.v)) {
1081
- let t = G(n.v) ? n.v : hn(n.v);
1082
- if (!bn(t)) {
1111
+ let t = G(n.v) ? n.v : Tn(n.v);
1112
+ if (!An(t)) {
1083
1113
  let r = {
1084
1114
  v: t,
1085
1115
  i: n.i,
@@ -1091,7 +1121,7 @@ var Vn = class {
1091
1121
  }
1092
1122
  }
1093
1123
  n.$[t] = e;
1094
- } else if (G(i) && !bn(i)) {
1124
+ } else if (G(i) && !An(i)) {
1095
1125
  let e = {
1096
1126
  v: i,
1097
1127
  n: this.norm.get(i)
@@ -1109,21 +1139,21 @@ var Vn = class {
1109
1139
  };
1110
1140
  }
1111
1141
  };
1112
- function Hn(e, t, { getFn: n = q.getFn, fieldNormWeight: r = q.fieldNormWeight } = {}) {
1113
- let i = new Vn({
1142
+ function Qn(e, t, { getFn: n = q.getFn, fieldNormWeight: r = q.fieldNormWeight } = {}) {
1143
+ let i = new Zn({
1114
1144
  getFn: n,
1115
1145
  fieldNormWeight: r
1116
1146
  });
1117
- return i.setKeys(e.map(jn)), i.setSources(t), i.create(), i;
1147
+ return i.setKeys(e.map(Vn)), i.setSources(t), i.create(), i;
1118
1148
  }
1119
- function Un(e, { getFn: t = q.getFn, fieldNormWeight: n = q.fieldNormWeight } = {}) {
1120
- let { keys: r, records: i } = e, a = new Vn({
1149
+ function $n(e, { getFn: t = q.getFn, fieldNormWeight: n = q.fieldNormWeight } = {}) {
1150
+ let { keys: r, records: i } = e, a = new Zn({
1121
1151
  getFn: t,
1122
1152
  fieldNormWeight: n
1123
1153
  });
1124
1154
  return a.setKeys(r), a.setIndexRecords(i), a;
1125
1155
  }
1126
- function Wn(e = [], t = q.minMatchCharLength) {
1156
+ function er(e = [], t = q.minMatchCharLength) {
1127
1157
  let n = [], r = -1, i = -1, a = 0;
1128
1158
  for (let o = e.length; a < o; a += 1) {
1129
1159
  let o = e[a];
@@ -1131,54 +1161,54 @@ function Wn(e = [], t = q.minMatchCharLength) {
1131
1161
  }
1132
1162
  return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
1133
1163
  }
1134
- function Gn(e, t, n, { location: r = q.location, distance: i = q.distance, threshold: a = q.threshold, findAllMatches: o = q.findAllMatches, minMatchCharLength: s = q.minMatchCharLength, includeMatches: c = q.includeMatches, ignoreLocation: l = q.ignoreLocation } = {}) {
1135
- if (t.length > 32) throw Error(Tn(32));
1164
+ function tr(e, t, n, { location: r = q.location, distance: i = q.distance, threshold: a = q.threshold, findAllMatches: o = q.findAllMatches, minMatchCharLength: s = q.minMatchCharLength, includeMatches: c = q.includeMatches, ignoreLocation: l = q.ignoreLocation } = {}) {
1165
+ if (t.length > 32) throw Error(Fn(32));
1136
1166
  let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
1137
1167
  let n = e / u;
1138
1168
  if (l) return n;
1139
1169
  let r = Math.abs(f - t);
1140
1170
  return i ? n + r / i : r ? 1 : n;
1141
- }, g = s > 1 || c, ee = g ? Array(d) : [], _;
1142
- for (; (_ = e.indexOf(t, m)) > -1;) {
1143
- let e = h(0, _);
1144
- if (p = Math.min(e, p), m = _ + u, g) {
1171
+ }, g = s > 1 || c, _ = g ? Array(d) : [], v;
1172
+ for (; (v = e.indexOf(t, m)) > -1;) {
1173
+ let e = h(0, v);
1174
+ if (p = Math.min(e, p), m = v + u, g) {
1145
1175
  let e = 0;
1146
- for (; e < u;) ee[_ + e] = 1, e += 1;
1176
+ for (; e < u;) _[v + e] = 1, e += 1;
1147
1177
  }
1148
1178
  }
1149
1179
  m = -1;
1150
- let v = [], y = 1, b = 0, x = u + d, te = 1 << u - 1;
1180
+ let y = [], b = 1, x = 0, S = u + d, C = 1 << u - 1;
1151
1181
  for (let t = 0; t < u; t += 1) {
1152
- let r = 0, i = x;
1153
- for (; r < i;) h(t, f + i) <= p ? r = i : x = i, i = Math.floor((x - r) / 2 + r);
1154
- x = i;
1182
+ let r = 0, i = S;
1183
+ for (; r < i;) h(t, f + i) <= p ? r = i : S = i, i = Math.floor((S - r) / 2 + r);
1184
+ S = i;
1155
1185
  let a = Math.max(1, f - i + 1), s = o ? d : Math.min(f + i, d) + u, c = Array(s + 2);
1156
1186
  c[s + 1] = (1 << t) - 1;
1157
1187
  for (let r = s; r >= a; --r) {
1158
1188
  let i = r - 1, o = n[e[i]];
1159
- if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (v[r + 1] | v[r]) << 1 | 1 | v[r + 1]), c[r] & te && (y = h(t, i), y <= p)) {
1160
- if (p = y, m = i, b = t, m <= f) break;
1189
+ if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (y[r + 1] | y[r]) << 1 | 1 | y[r + 1]), c[r] & C && (b = h(t, i), b <= p)) {
1190
+ if (p = b, m = i, x = t, m <= f) break;
1161
1191
  a = Math.max(1, 2 * f - m);
1162
1192
  }
1163
1193
  }
1164
1194
  if (h(t + 1, f) > p) break;
1165
- v = c;
1195
+ y = c;
1166
1196
  }
1167
1197
  if (g && m >= 0) {
1168
- let t = Math.min(d - 1, m + u - 1 + b);
1169
- for (let r = m; r <= t; r += 1) n[e[r]] && (ee[r] = 1);
1198
+ let t = Math.min(d - 1, m + u - 1 + x);
1199
+ for (let r = m; r <= t; r += 1) n[e[r]] && (_[r] = 1);
1170
1200
  }
1171
- let ne = {
1201
+ let w = {
1172
1202
  isMatch: m >= 0,
1173
- score: Math.max(.001, y)
1203
+ score: Math.max(.001, b)
1174
1204
  };
1175
1205
  if (g) {
1176
- let e = Wn(ee, s);
1177
- e.length ? c && (ne.indices = e) : ne.isMatch = !1;
1206
+ let e = er(_, s);
1207
+ e.length ? c && (w.indices = e) : w.isMatch = !1;
1178
1208
  }
1179
- return ne;
1209
+ return w;
1180
1210
  }
1181
- function Kn(e) {
1211
+ function nr(e) {
1182
1212
  let t = {};
1183
1213
  for (let n = 0, r = e.length; n < r; n += 1) {
1184
1214
  let i = e.charAt(n);
@@ -1186,7 +1216,7 @@ function Kn(e) {
1186
1216
  }
1187
1217
  return t;
1188
1218
  }
1189
- function qn(e) {
1219
+ function rr(e) {
1190
1220
  if (e.length <= 1) return e;
1191
1221
  e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
1192
1222
  let t = [e[0]];
@@ -1196,7 +1226,7 @@ function qn(e) {
1196
1226
  }
1197
1227
  return t;
1198
1228
  }
1199
- var Jn = {
1229
+ var ir = {
1200
1230
  ł: "l",
1201
1231
  Ł: "L",
1202
1232
  đ: "d",
@@ -1209,7 +1239,7 @@ var Jn = {
1209
1239
  Ŧ: "T",
1210
1240
  ı: "i",
1211
1241
  ß: "ss"
1212
- }, Yn = RegExp("[" + Object.keys(Jn).join("") + "]", "g"), Xn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(Yn, (e) => Jn[e]) : (e) => e, Zn = class {
1242
+ }, ar = RegExp("[" + Object.keys(ir).join("") + "]", "g"), or = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(ar, (e) => ir[e]) : (e) => e, sr = class {
1213
1243
  constructor(e, { location: t = q.location, threshold: n = q.threshold, distance: r = q.distance, includeMatches: i = q.includeMatches, findAllMatches: a = q.findAllMatches, minMatchCharLength: o = q.minMatchCharLength, isCaseSensitive: s = q.isCaseSensitive, ignoreDiacritics: c = q.ignoreDiacritics, ignoreLocation: l = q.ignoreLocation } = {}) {
1214
1244
  if (this.options = {
1215
1245
  location: t,
@@ -1221,11 +1251,11 @@ var Jn = {
1221
1251
  isCaseSensitive: s,
1222
1252
  ignoreDiacritics: c,
1223
1253
  ignoreLocation: l
1224
- }, e = s ? e : e.toLowerCase(), e = c ? Xn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1254
+ }, e = s ? e : e.toLowerCase(), e = c ? or(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1225
1255
  let u = (e, t) => {
1226
1256
  this.chunks.push({
1227
1257
  pattern: e,
1228
- alphabet: Kn(e),
1258
+ alphabet: nr(e),
1229
1259
  startIndex: t
1230
1260
  });
1231
1261
  }, d = this.pattern.length;
@@ -1240,7 +1270,7 @@ var Jn = {
1240
1270
  }
1241
1271
  searchIn(e) {
1242
1272
  let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
1243
- if (e = t ? e : e.toLowerCase(), e = n ? Xn(e) : e, this.pattern === e) {
1273
+ if (e = t ? e : e.toLowerCase(), e = n ? or(e) : e, this.pattern === e) {
1244
1274
  if (e.length < this.options.minMatchCharLength) return {
1245
1275
  isMatch: !1,
1246
1276
  score: 1
@@ -1253,7 +1283,7 @@ var Jn = {
1253
1283
  }
1254
1284
  let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
1255
1285
  this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
1256
- let { isMatch: m, score: h, indices: g } = Gn(e, t, n, {
1286
+ let { isMatch: m, score: h, indices: g } = tr(e, t, n, {
1257
1287
  location: i + p,
1258
1288
  distance: a,
1259
1289
  threshold: o,
@@ -1268,13 +1298,13 @@ var Jn = {
1268
1298
  isMatch: f,
1269
1299
  score: f ? d / this.chunks.length : 1
1270
1300
  };
1271
- return f && r && (p.indices = qn(u)), p;
1301
+ return f && r && (p.indices = rr(u)), p;
1272
1302
  }
1273
- }, Qn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1274
- function $n(e) {
1303
+ }, cr = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1304
+ function lr(e) {
1275
1305
  return e.startsWith("inverse");
1276
1306
  }
1277
- var er = [
1307
+ var ur = [
1278
1308
  {
1279
1309
  type: "exact",
1280
1310
  multiRegex: /^="(.*)"$/,
@@ -1394,7 +1424,7 @@ var er = [
1394
1424
  multiRegex: /^"(.*)"$/,
1395
1425
  singleRegex: /^(.*)$/,
1396
1426
  create: (e, t = {}) => {
1397
- let n = new Zn(e, {
1427
+ let n = new sr(e, {
1398
1428
  location: t.location ?? q.location,
1399
1429
  threshold: t.threshold ?? q.threshold,
1400
1430
  distance: t.distance ?? q.distance,
@@ -1413,8 +1443,8 @@ var er = [
1413
1443
  };
1414
1444
  }
1415
1445
  }
1416
- ], tr = er.length, nr = "\0", rr = "|";
1417
- function ir(e) {
1446
+ ], dr = ur.length, fr = "\0", pr = "|";
1447
+ function mr(e) {
1418
1448
  let t = [], n = e.length, r = 0;
1419
1449
  for (; r < n;) {
1420
1450
  for (; r < n && e[r] === " ";) r++;
@@ -1444,21 +1474,21 @@ function ir(e) {
1444
1474
  }
1445
1475
  return t;
1446
1476
  }
1447
- function ar(e, t) {
1477
+ function hr(e, t) {
1448
1478
  let n = e.match(t);
1449
1479
  return n ? n[1] : null;
1450
1480
  }
1451
- function or(e, t = {}) {
1452
- return e.replace(/\\\|/g, nr).split(rr).map((e) => {
1453
- let n = ir(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1481
+ function gr(e, t = {}) {
1482
+ return e.replace(/\\\|/g, fr).split(pr).map((e) => {
1483
+ let n = mr(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1454
1484
  for (let e = 0, i = n.length; e < i; e += 1) {
1455
1485
  let i = n[e], a = !1, o = -1;
1456
- for (; !a && ++o < tr;) {
1457
- let e = er[o], n = ar(i, e.multiRegex);
1486
+ for (; !a && ++o < dr;) {
1487
+ let e = ur[o], n = hr(i, e.multiRegex);
1458
1488
  n && (r.push(e.create(n, t)), a = !0);
1459
1489
  }
1460
- if (!a) for (o = -1; ++o < tr;) {
1461
- let e = er[o], n = ar(i, e.singleRegex);
1490
+ if (!a) for (o = -1; ++o < dr;) {
1491
+ let e = ur[o], n = hr(i, e.singleRegex);
1462
1492
  if (n) {
1463
1493
  r.push(e.create(n, t));
1464
1494
  break;
@@ -1468,7 +1498,7 @@ function or(e, t = {}) {
1468
1498
  return r;
1469
1499
  });
1470
1500
  }
1471
- var sr = class {
1501
+ var _r = class {
1472
1502
  constructor(e, { isCaseSensitive: t = q.isCaseSensitive, ignoreDiacritics: n = q.ignoreDiacritics, includeMatches: r = q.includeMatches, minMatchCharLength: i = q.minMatchCharLength, ignoreLocation: a = q.ignoreLocation, findAllMatches: o = q.findAllMatches, location: s = q.location, threshold: c = q.threshold, distance: l = q.distance } = {}) {
1473
1503
  this.query = null, this.options = {
1474
1504
  isCaseSensitive: t,
@@ -1480,7 +1510,7 @@ var sr = class {
1480
1510
  location: s,
1481
1511
  threshold: c,
1482
1512
  distance: l
1483
- }, e = t ? e : e.toLowerCase(), e = n ? Xn(e) : e, this.pattern = e, this.query = or(this.pattern, this.options);
1513
+ }, e = t ? e : e.toLowerCase(), e = n ? or(e) : e, this.pattern = e, this.query = gr(this.pattern, this.options);
1484
1514
  }
1485
1515
  static condition(e, t) {
1486
1516
  return t.useExtendedSearch;
@@ -1492,14 +1522,14 @@ var sr = class {
1492
1522
  score: 1
1493
1523
  };
1494
1524
  let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
1495
- e = r ? e : e.toLowerCase(), e = i ? Xn(e) : e;
1525
+ e = r ? e : e.toLowerCase(), e = i ? or(e) : e;
1496
1526
  let a = 0, o = [], s = 0, c = !1;
1497
1527
  for (let r = 0, i = t.length; r < i; r += 1) {
1498
1528
  let i = t[r];
1499
1529
  o.length = 0, a = 0, c = !1;
1500
1530
  for (let t = 0, r = i.length; t < r; t += 1) {
1501
1531
  let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
1502
- if (l) a += 1, s += d, $n(r.type) && (c = !0), n && (Qn.has(r.type) ? o.push(...u) : o.push(u));
1532
+ if (l) a += 1, s += d, lr(r.type) && (c = !0), n && (cr.has(r.type) ? o.push(...u) : o.push(u));
1503
1533
  else {
1504
1534
  s = 0, a = 0, o.length = 0, c = !1;
1505
1535
  break;
@@ -1510,7 +1540,7 @@ var sr = class {
1510
1540
  isMatch: !0,
1511
1541
  score: s / a
1512
1542
  };
1513
- return c && (e.hasInverse = !0), n && (e.indices = qn(o)), e;
1543
+ return c && (e.hasInverse = !0), n && (e.indices = rr(o)), e;
1514
1544
  }
1515
1545
  }
1516
1546
  return {
@@ -1518,43 +1548,43 @@ var sr = class {
1518
1548
  score: 1
1519
1549
  };
1520
1550
  }
1521
- }, cr = [];
1522
- function lr(...e) {
1523
- cr.push(...e);
1551
+ }, vr = [];
1552
+ function yr(...e) {
1553
+ vr.push(...e);
1524
1554
  }
1525
- function ur(e, t) {
1526
- for (let n = 0, r = cr.length; n < r; n += 1) {
1527
- let r = cr[n];
1555
+ function br(e, t) {
1556
+ for (let n = 0, r = vr.length; n < r; n += 1) {
1557
+ let r = vr[n];
1528
1558
  if (r.condition(e, t)) return new r(e, t);
1529
1559
  }
1530
- return new Zn(e, t);
1560
+ return new sr(e, t);
1531
1561
  }
1532
- var dr = {
1562
+ var xr = {
1533
1563
  AND: "$and",
1534
1564
  OR: "$or"
1535
- }, fr = {
1565
+ }, Sr = {
1536
1566
  PATH: "$path",
1537
1567
  PATTERN: "$val"
1538
- }, pr = (e) => !!(e[dr.AND] || e[dr.OR]), mr = (e) => !!e[fr.PATH], hr = (e) => !W(e) && vn(e) && !pr(e), gr = (e) => ({ [dr.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1539
- function _r(e, t, { auto: n = !0 } = {}) {
1568
+ }, Cr = (e) => !!(e[xr.AND] || e[xr.OR]), wr = (e) => !!e[Sr.PATH], Tr = (e) => !W(e) && On(e) && !Cr(e), Er = (e) => ({ [xr.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1569
+ function Dr(e, t, { auto: n = !0 } = {}) {
1540
1570
  let r = (e) => {
1541
1571
  if (G(e)) {
1542
1572
  let r = {
1543
1573
  keyId: null,
1544
1574
  pattern: e
1545
1575
  };
1546
- return n && (r.searcher = ur(e, t)), r;
1576
+ return n && (r.searcher = br(e, t)), r;
1547
1577
  }
1548
- let i = Object.keys(e), a = mr(e);
1549
- if (!a && i.length > 1 && !pr(e)) return r(gr(e));
1550
- if (hr(e)) {
1551
- let r = a ? e[fr.PATH] : i[0], o = a ? e[fr.PATTERN] : e[r];
1552
- if (!G(o)) throw Error(wn(r));
1578
+ let i = Object.keys(e), a = wr(e);
1579
+ if (!a && i.length > 1 && !Cr(e)) return r(Er(e));
1580
+ if (Tr(e)) {
1581
+ let r = a ? e[Sr.PATH] : i[0], o = a ? e[Sr.PATTERN] : e[r];
1582
+ if (!G(o)) throw Error(Pn(r));
1553
1583
  let s = {
1554
- keyId: Nn(r),
1584
+ keyId: Un(r),
1555
1585
  pattern: o
1556
1586
  };
1557
- return n && (s.searcher = ur(o, t)), s;
1587
+ return n && (s.searcher = br(o, t)), s;
1558
1588
  }
1559
1589
  let o = {
1560
1590
  children: [],
@@ -1567,21 +1597,21 @@ function _r(e, t, { auto: n = !0 } = {}) {
1567
1597
  });
1568
1598
  }), o;
1569
1599
  };
1570
- return pr(e) || (e = gr(e)), r(e);
1600
+ return Cr(e) || (e = Er(e)), r(e);
1571
1601
  }
1572
- function vr(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1602
+ function Or(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1573
1603
  let n = 1;
1574
1604
  return e.forEach(({ key: e, norm: r, score: i }) => {
1575
1605
  let a = e ? e.weight : null;
1576
1606
  n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
1577
1607
  }), n;
1578
1608
  }
1579
- function yr(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1609
+ function kr(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1580
1610
  e.forEach((e) => {
1581
- e.score = vr(e.matches, { ignoreFieldNorm: t });
1611
+ e.score = Or(e.matches, { ignoreFieldNorm: t });
1582
1612
  });
1583
1613
  }
1584
- var br = class {
1614
+ var Ar = class {
1585
1615
  constructor(e, t) {
1586
1616
  this.limit = e, this.heap = [], this.comparator = t;
1587
1617
  }
@@ -1615,7 +1645,7 @@ var br = class {
1615
1645
  } while (r !== e);
1616
1646
  }
1617
1647
  };
1618
- function xr(e) {
1648
+ function jr(e) {
1619
1649
  let t = [];
1620
1650
  return e.matches.forEach((e) => {
1621
1651
  if (!K(e.indices) || !e.indices.length) return;
@@ -1626,20 +1656,20 @@ function xr(e) {
1626
1656
  e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
1627
1657
  }), t;
1628
1658
  }
1629
- function Sr(e, t, { includeMatches: n = q.includeMatches, includeScore: r = q.includeScore } = {}) {
1659
+ function Mr(e, t, { includeMatches: n = q.includeMatches, includeScore: r = q.includeScore } = {}) {
1630
1660
  return e.map((e) => {
1631
1661
  let { idx: i } = e, a = {
1632
1662
  item: t[i],
1633
1663
  refIndex: i
1634
1664
  };
1635
- return n && (a.matches = xr(e)), r && (a.score = e.score), a;
1665
+ return n && (a.matches = jr(e)), r && (a.score = e.score), a;
1636
1666
  });
1637
1667
  }
1638
- var Cr = /[\p{L}\p{M}\p{N}_]+/gu, wr = /* @__PURE__ */ new WeakSet();
1639
- function Tr(e) {
1640
- wr.has(e) || (wr.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1668
+ var Nr = /[\p{L}\p{M}\p{N}_]+/gu, Pr = /* @__PURE__ */ new WeakSet();
1669
+ function Fr(e) {
1670
+ Pr.has(e) || (Pr.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1641
1671
  }
1642
- function Er(e) {
1672
+ function Ir(e) {
1643
1673
  if (typeof e == "function") {
1644
1674
  let t = !1;
1645
1675
  return (n) => {
@@ -1648,20 +1678,20 @@ function Er(e) {
1648
1678
  return r;
1649
1679
  };
1650
1680
  }
1651
- return e instanceof RegExp ? (e.global || Tr(e), (t) => t.match(e) || []) : (e) => e.match(Cr) || [];
1681
+ return e instanceof RegExp ? (e.global || Fr(e), (t) => t.match(e) || []) : (e) => e.match(Nr) || [];
1652
1682
  }
1653
- function Dr({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1654
- let r = Er(n);
1683
+ function Lr({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1684
+ let r = Ir(n);
1655
1685
  return { tokenize(n) {
1656
- return e || (n = n.toLowerCase()), t && (n = Xn(n)), r(n);
1686
+ return e || (n = n.toLowerCase()), t && (n = or(n)), r(n);
1657
1687
  } };
1658
1688
  }
1659
- var Or = class {
1689
+ var Rr = class {
1660
1690
  static condition(e, t) {
1661
1691
  return t.useTokenSearch;
1662
1692
  }
1663
1693
  constructor(e, t) {
1664
- this.options = t, this.analyzer = Dr({
1694
+ this.options = t, this.analyzer = Lr({
1665
1695
  isCaseSensitive: t.isCaseSensitive,
1666
1696
  ignoreDiacritics: t.ignoreDiacritics,
1667
1697
  tokenize: t.tokenize
@@ -1669,7 +1699,7 @@ var Or = class {
1669
1699
  let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1670
1700
  this.termSearchers = [], this.idfWeights = [];
1671
1701
  for (let e of n) {
1672
- this.termSearchers.push(new Zn(e, {
1702
+ this.termSearchers.push(new sr(e, {
1673
1703
  location: t.location,
1674
1704
  threshold: t.threshold,
1675
1705
  distance: t.distance,
@@ -1703,10 +1733,10 @@ var Or = class {
1703
1733
  isMatch: !0,
1704
1734
  score: Math.max(.001, s)
1705
1735
  };
1706
- return this.options.includeMatches && t.length && (c.indices = qn(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1736
+ return this.options.includeMatches && t.length && (c.indices = rr(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1707
1737
  }
1708
1738
  };
1709
- function kr(e, t, n, r) {
1739
+ function zr(e, t, n, r) {
1710
1740
  let i = r.tokenize(t);
1711
1741
  if (!i.length) return;
1712
1742
  e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
@@ -1714,32 +1744,32 @@ function kr(e, t, n, r) {
1714
1744
  o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
1715
1745
  for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
1716
1746
  }
1717
- function Ar(e, t, n, r) {
1747
+ function Br(e, t, n, r) {
1718
1748
  let { i, v: a, $: o } = t;
1719
1749
  if (a !== void 0) {
1720
- kr(e, a, i, r);
1750
+ zr(e, a, i, r);
1721
1751
  return;
1722
1752
  }
1723
1753
  if (o) for (let t = 0; t < n; t++) {
1724
1754
  let n = o[t];
1725
- if (n) if (Array.isArray(n)) for (let t of n) kr(e, t.v, i, r);
1726
- else kr(e, n.v, i, r);
1755
+ if (n) if (Array.isArray(n)) for (let t of n) zr(e, t.v, i, r);
1756
+ else zr(e, n.v, i, r);
1727
1757
  }
1728
1758
  }
1729
- function jr(e, t, n) {
1759
+ function Vr(e, t, n) {
1730
1760
  let r = {
1731
1761
  fieldCount: 0,
1732
1762
  df: /* @__PURE__ */ new Map(),
1733
1763
  docFieldCount: /* @__PURE__ */ new Map(),
1734
1764
  docTermFieldHits: /* @__PURE__ */ new Map()
1735
1765
  };
1736
- for (let i of e) Ar(r, i, t, n);
1766
+ for (let i of e) Br(r, i, t, n);
1737
1767
  return r;
1738
1768
  }
1739
- function Mr(e, t, n, r) {
1740
- Ar(e, t, n, r);
1769
+ function Hr(e, t, n, r) {
1770
+ Br(e, t, n, r);
1741
1771
  }
1742
- function Nr(e, t) {
1772
+ function Ur(e, t) {
1743
1773
  let n = e.docFieldCount.get(t);
1744
1774
  if (n === void 0) return;
1745
1775
  e.fieldCount -= n, e.docFieldCount.delete(t);
@@ -1752,10 +1782,10 @@ function Nr(e, t) {
1752
1782
  e.docTermFieldHits.delete(t);
1753
1783
  }
1754
1784
  }
1755
- function Pr(e, t) {
1785
+ function Wr(e, t) {
1756
1786
  if (t.length === 0) return;
1757
1787
  let n = Array.from(new Set(t)).sort((e, t) => e - t);
1758
- for (let t of n) Nr(e, t);
1788
+ for (let t of n) Ur(e, t);
1759
1789
  let r = (e) => {
1760
1790
  let t = 0, r = n.length;
1761
1791
  for (; t < r;) {
@@ -1775,28 +1805,28 @@ var J = class {
1775
1805
  this.options = {
1776
1806
  ...q,
1777
1807
  ...t
1778
- }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new An(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1808
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Bn(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1779
1809
  }
1780
1810
  _getSearcher(e) {
1781
1811
  if (this._lastQuery === e) return this._lastSearcher;
1782
- let t = ur(e, this._invertedIndex ? {
1812
+ let t = br(e, this._invertedIndex ? {
1783
1813
  ...this.options,
1784
1814
  _invertedIndex: this._invertedIndex
1785
1815
  } : this.options);
1786
1816
  return this._lastQuery = e, this._lastSearcher = t, t;
1787
1817
  }
1788
1818
  setCollection(e, t) {
1789
- if (this._docs = e, t && !(t instanceof Vn)) throw Error(Sn);
1790
- if (this._myIndex = t || Hn(this.options.keys, this._docs, {
1819
+ if (this._docs = e, t && !(t instanceof Zn)) throw Error(Mn);
1820
+ if (this._myIndex = t || Qn(this.options.keys, this._docs, {
1791
1821
  getFn: this.options.getFn,
1792
1822
  fieldNormWeight: this.options.fieldNormWeight
1793
1823
  }), this.options.useTokenSearch) {
1794
- let e = Dr({
1824
+ let e = Lr({
1795
1825
  isCaseSensitive: this.options.isCaseSensitive,
1796
1826
  ignoreDiacritics: this.options.ignoreDiacritics,
1797
1827
  tokenize: this.options.tokenize
1798
1828
  });
1799
- this._invertedIndex = jr(this._myIndex.records, this._myIndex.keys.length, e);
1829
+ this._invertedIndex = Vr(this._myIndex.records, this._myIndex.keys.length, e);
1800
1830
  }
1801
1831
  this._invalidateSearcherCache();
1802
1832
  }
@@ -1805,12 +1835,12 @@ var J = class {
1805
1835
  this._docs.push(e);
1806
1836
  let t = this._myIndex.add(e, this._docs.length - 1);
1807
1837
  if (this._invertedIndex && t) {
1808
- let e = Dr({
1838
+ let e = Lr({
1809
1839
  isCaseSensitive: this.options.isCaseSensitive,
1810
1840
  ignoreDiacritics: this.options.ignoreDiacritics,
1811
1841
  tokenize: this.options.tokenize
1812
1842
  });
1813
- Mr(this._invertedIndex, t, this._myIndex.keys.length, e);
1843
+ Hr(this._invertedIndex, t, this._myIndex.keys.length, e);
1814
1844
  }
1815
1845
  this._invalidateSearcherCache();
1816
1846
  }
@@ -1818,15 +1848,15 @@ var J = class {
1818
1848
  let t = [], n = [];
1819
1849
  for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
1820
1850
  if (n.length) {
1821
- this._invertedIndex && Pr(this._invertedIndex, n);
1851
+ this._invertedIndex && Wr(this._invertedIndex, n);
1822
1852
  let e = new Set(n);
1823
1853
  this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
1824
1854
  }
1825
1855
  return t;
1826
1856
  }
1827
1857
  removeAt(e) {
1828
- if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Cn);
1829
- this._invertedIndex && Pr(this._invertedIndex, [e]);
1858
+ if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Nn);
1859
+ this._invertedIndex && Wr(this._invertedIndex, [e]);
1830
1860
  let t = this._docs.splice(e, 1)[0];
1831
1861
  return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
1832
1862
  }
@@ -1846,11 +1876,11 @@ var J = class {
1846
1876
  item: e,
1847
1877
  refIndex: t
1848
1878
  }));
1849
- return gn(n) && n > -1 && (e = e.slice(0, n)), e;
1879
+ return En(n) && n > -1 && (e = e.slice(0, n)), e;
1850
1880
  }
1851
- let c = a && gn(n) && n > 0 && G(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1881
+ let c = a && En(n) && n > 0 && G(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1852
1882
  if (c) {
1853
- let t = new br(n, u);
1883
+ let t = new Ar(n, u);
1854
1884
  G(this._docs[0]) ? this._searchStringList(e, {
1855
1885
  heap: t,
1856
1886
  ignoreFieldNorm: s
@@ -1858,8 +1888,8 @@ var J = class {
1858
1888
  heap: t,
1859
1889
  ignoreFieldNorm: s
1860
1890
  }), d = t.extractSorted();
1861
- } else d = G(e) ? G(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), yr(d, { ignoreFieldNorm: s }), a && d.sort(G(e) ? u : l), gn(n) && n > -1 && (d = d.slice(0, n));
1862
- return Sr(d, this._docs, {
1891
+ } else d = G(e) ? G(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), kr(d, { ignoreFieldNorm: s }), a && d.sort(G(e) ? u : l), En(n) && n > -1 && (d = d.slice(0, n));
1892
+ return Mr(d, this._docs, {
1863
1893
  includeMatches: r,
1864
1894
  includeScore: i
1865
1895
  });
@@ -1884,13 +1914,13 @@ var J = class {
1884
1914
  idx: a,
1885
1915
  matches: l
1886
1916
  };
1887
- t ? (r.score = vr(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1917
+ t ? (r.score = Or(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1888
1918
  }
1889
1919
  }
1890
1920
  }), o;
1891
1921
  }
1892
1922
  _searchLogical(e) {
1893
- let t = _r(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1923
+ let t = Dr(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1894
1924
  if (!("children" in e)) {
1895
1925
  let { keyId: r, searcher: a } = e, o;
1896
1926
  return r === null ? (o = [], n.forEach((e, n) => {
@@ -1913,7 +1943,7 @@ var J = class {
1913
1943
  for (let e = 0, n = a.length; e < n; e += 1) {
1914
1944
  let n = a[e], c = r(n, t, i);
1915
1945
  if (c.length) s.push(...c);
1916
- else if (o === dr.AND) return [];
1946
+ else if (o === xr.AND) return [];
1917
1947
  }
1918
1948
  return s;
1919
1949
  }, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
@@ -1948,7 +1978,7 @@ var J = class {
1948
1978
  item: e,
1949
1979
  matches: c
1950
1980
  };
1951
- t ? (r.score = vr(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1981
+ t ? (r.score = Or(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1952
1982
  }
1953
1983
  }), s;
1954
1984
  }
@@ -2003,25 +2033,25 @@ var J = class {
2003
2033
  return n.size === t;
2004
2034
  }
2005
2035
  };
2006
- J.version = "7.5.0", J.createIndex = Hn, J.parseIndex = Un, J.config = q, J.match = function(e, t, n) {
2007
- if (n && n.useTokenSearch) throw Error(On);
2008
- return ur(e, {
2036
+ J.version = "7.5.0", J.createIndex = Qn, J.parseIndex = $n, J.config = q, J.match = function(e, t, n) {
2037
+ if (n && n.useTokenSearch) throw Error(Rn);
2038
+ return br(e, {
2009
2039
  ...q,
2010
2040
  ...n
2011
2041
  }).searchIn(t);
2012
- }, J.parseQuery = _r, lr(sr), lr(Or), J.use = function(...e) {
2013
- e.forEach((e) => lr(e));
2042
+ }, J.parseQuery = Dr, yr(_r), yr(Rr), J.use = function(...e) {
2043
+ e.forEach((e) => yr(e));
2014
2044
  };
2015
- var Fr = J, Ir = (e, n, r) => t(() => {
2016
- let t = S(e), i = S(n);
2045
+ var Gr = J, Kr = (e, n, r) => t(() => {
2046
+ let t = T(e), i = T(n);
2017
2047
  if (!t) return i;
2018
- let a = new Fr([...i], {
2019
- threshold: .4,
2048
+ let a = new Gr([...i], {
2049
+ threshold: .2,
2020
2050
  keys: r
2021
2051
  });
2022
2052
  return t ? a.search(t, { limit: 3 }).map((e) => e.item) : i;
2023
- }), Lr = () => {
2024
- let e = y(/* @__PURE__ */ new Map());
2053
+ }), Y = () => {
2054
+ let e = S(/* @__PURE__ */ new Map());
2025
2055
  return {
2026
2056
  set(t, n) {
2027
2057
  n ? e.value.set(t, n) : e.value.delete(t);
@@ -2030,47 +2060,47 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2030
2060
  return e.value.get(t);
2031
2061
  }
2032
2062
  };
2033
- }, Y = (e, t, n) => {
2034
- Wt(n, (n) => {
2063
+ }, X = (e, t, n) => {
2064
+ Qt(n, (n) => {
2035
2065
  e.set(t, n);
2036
2066
  });
2037
- }, Rr = ue("theme-settings", () => {
2038
- let e = y(1), t = y(!0), n = (e, t) => {
2067
+ }, qr = ce("theme-settings", () => {
2068
+ let e = S(1), t = S(!0), n = (e, t) => {
2039
2069
  document.documentElement.style.setProperty(`--${e}`, t);
2040
2070
  };
2041
- return Wt(e, (e) => {
2071
+ return Qt(e, (e) => {
2042
2072
  document.documentElement.style.setProperty("saturation", `${e}`);
2043
- }), Wt(t, (e) => {
2073
+ }), Qt(t, (e) => {
2044
2074
  n("code-white-space", e ? "pre-wrap" : "pre");
2045
2075
  }), {
2046
2076
  saturation: e,
2047
2077
  wrapCode: t
2048
2078
  };
2049
- }), zr = (e) => l(e, { missingContext: !0 }), Br = Symbol("toolbar"), Vr = ["aria-orientation", "aria-controls"], Hr = /* @__PURE__ */ o({
2079
+ }), Jr = (e) => l(e, { missingContext: !0 }), Yr = Symbol("toolbar"), Xr = ["aria-orientation", "aria-controls"], Zr = /* @__PURE__ */ o({
2050
2080
  __name: "Toolbar",
2051
2081
  props: {
2052
2082
  orientation: { default: "horizontal" },
2053
2083
  controls: {}
2054
2084
  },
2055
2085
  setup(e) {
2056
- let { orientation: t } = re(e), n = E("element"), { getElements: r } = H("toolbar", n), { onKeyDown: a, moveTo: o } = Pt(t, r);
2057
- return v(Br, {
2086
+ let { orientation: t } = ne(e), n = k("element"), { getElements: r } = H("toolbar", n), { onKeyDown: a, navigateTo: o } = Ut(t, r);
2087
+ return x(Yr, {
2058
2088
  onKeyDown: a,
2059
- moveTo: o
2060
- }), (r, a) => (_(), i("div", {
2089
+ navigateTo: o
2090
+ }), (r, a) => (b(), i("div", {
2061
2091
  ref_key: "element",
2062
2092
  ref: n,
2063
- "aria-orientation": C(t),
2093
+ "aria-orientation": E(t),
2064
2094
  "aria-controls": e.controls,
2065
2095
  role: "toolbar"
2066
- }, [b(r.$slots, "default")], 8, Vr));
2096
+ }, [C(r.$slots, "default")], 8, Xr));
2067
2097
  }
2068
- }), Ur = [
2098
+ }), Qr = [
2069
2099
  "aria-disabled",
2070
2100
  "aria-keyshortcuts",
2071
2101
  "disabled",
2072
2102
  "type"
2073
- ], X = /* @__PURE__ */ o({
2103
+ ], Z = /* @__PURE__ */ o({
2074
2104
  __name: "Button",
2075
2105
  props: {
2076
2106
  type: { default: "button" },
@@ -2082,16 +2112,16 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2082
2112
  },
2083
2113
  emits: ["click"],
2084
2114
  setup(e, { emit: t }) {
2085
- let n = e, r = t, a = E("element"), { onKeyDown: o, moveTo: s } = zr(Br);
2115
+ let n = e, r = t, a = k("element"), { onKeyDown: o, navigateTo: s } = Jr(Yr);
2086
2116
  U("toolbar", a);
2087
2117
  let c = (e) => {
2088
2118
  s?.(a.value), n.disabled || r("click", e);
2089
2119
  };
2090
- return z("*", () => {
2120
+ return B("*", () => {
2091
2121
  if (!n.keyboardShortcut) return;
2092
- let e = z.getPressedKeyString();
2122
+ let e = B.getPressedKeyString();
2093
2123
  for (let t of n.keyboardShortcut.split(",")) if (t.split("+").map((e) => e.trim()).every((t) => e.includes(t))) return a.value?.click(), !1;
2094
- }), (t, n) => (_(), i("button", {
2124
+ }), (t, n) => (b(), i("button", {
2095
2125
  ref_key: "element",
2096
2126
  ref: a,
2097
2127
  "aria-disabled": e.disabled === !0 || void 0,
@@ -2099,75 +2129,112 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2099
2129
  disabled: e.disabled === "without-focus" || void 0,
2100
2130
  type: e.type,
2101
2131
  onClick: c,
2102
- onKeydown: n[0] ||= (...e) => C(o) && C(o)(...e)
2103
- }, [b(t.$slots, "default")], 40, Ur));
2132
+ onKeydown: n[0] ||= (...e) => E(o) && E(o)(...e)
2133
+ }, [C(t.$slots, "default")], 40, Qr));
2104
2134
  }
2105
- }), Wr = Symbol("calendar-table"), Gr = /* @__PURE__ */ o({
2135
+ }), $r = Symbol("calendar-table"), ei = /* @__PURE__ */ o({
2106
2136
  __name: "Table",
2107
2137
  setup(e) {
2108
- return (e, t) => (_(), i("table", null, [b(e.$slots, "default")]));
2138
+ return (e, t) => (b(), i("table", null, [C(e.$slots, "default")]));
2109
2139
  }
2110
- }), Kr = /* @__PURE__ */ o({
2140
+ }), ti = /* @__PURE__ */ o({
2111
2141
  __name: "TableBody",
2112
2142
  setup(e) {
2113
- return (e, t) => (_(), i("tbody", null, [b(e.$slots, "default")]));
2143
+ return (e, t) => (b(), i("tbody", null, [C(e.$slots, "default")]));
2114
2144
  }
2115
- }), qr = /* @__PURE__ */ o({
2145
+ }), ni = /* @__PURE__ */ o({
2116
2146
  __name: "TableCell",
2117
2147
  props: { heading: { type: Boolean } },
2118
2148
  setup(e) {
2119
- return (t, r) => (_(), n(x(e.heading ? "th" : "td"), { scope: e.heading ? "row" : void 0 }, {
2120
- default: O(() => [b(t.$slots, "default")]),
2149
+ return (t, r) => (b(), n(w(e.heading ? "th" : "td"), { scope: e.heading ? "row" : void 0 }, {
2150
+ default: j(() => [C(t.$slots, "default")]),
2121
2151
  _: 3
2122
2152
  }, 8, ["scope"]));
2123
2153
  }
2124
- }), Jr = /* @__PURE__ */ o({
2154
+ }), ri = /* @__PURE__ */ o({
2125
2155
  __name: "TableHead",
2126
2156
  setup(e) {
2127
- return (e, t) => (_(), i("thead", null, [b(e.$slots, "default")]));
2157
+ return (e, t) => (b(), i("thead", null, [C(e.$slots, "default")]));
2128
2158
  }
2129
- }), Yr = ["aria-sort"], Xr = /* @__PURE__ */ o({
2159
+ }), ii = ["aria-sort"], ai = /* @__PURE__ */ o({
2130
2160
  __name: "TableHeadingCell",
2131
2161
  props: { sorted: {} },
2132
2162
  setup(e) {
2133
- return (t, n) => (_(), i("th", { "aria-sort": e.sorted }, [b(t.$slots, "default")], 8, Yr));
2163
+ return (t, n) => (b(), i("th", { "aria-sort": e.sorted }, [C(t.$slots, "default")], 8, ii));
2134
2164
  }
2135
- }), Zr = /* @__PURE__ */ o({
2165
+ }), oi = /* @__PURE__ */ o({
2136
2166
  __name: "TableRow",
2137
2167
  setup(e) {
2138
- return (e, t) => (_(), i("tr", null, [b(e.$slots, "default")]));
2168
+ return (e, t) => (b(), i("tr", null, [C(e.$slots, "default")]));
2139
2169
  }
2140
- }), Qr = /* @__PURE__ */ o({
2170
+ }), si = /* @__PURE__ */ o({
2141
2171
  __name: "CalendarTable",
2142
- props: /*@__PURE__*/ d({ autoFocus: { type: Boolean } }, {
2172
+ props: /*@__PURE__*/ f({ autoFocus: { type: Boolean } }, {
2143
2173
  modelValue: { default: () => /* @__PURE__ */ new Date() },
2144
2174
  modelModifiers: {}
2145
2175
  }),
2146
2176
  emits: ["update:modelValue"],
2147
2177
  setup(e) {
2148
- let r = e, i = T(e, "modelValue"), a = qt();
2149
- return v(Wr, {
2178
+ let r = e, i = O(e, "modelValue"), a = tn();
2179
+ return x($r, {
2150
2180
  focusedDate: i,
2151
2181
  allowFocus: t(() => r.autoFocus || a.value)
2152
- }), (e, t) => (_(), n(C(Gr), { role: "grid" }, {
2153
- default: O(() => [b(e.$slots, "default")]),
2182
+ }), (e, t) => (b(), n(E(ei), { role: "grid" }, {
2183
+ default: j(() => [C(e.$slots, "default")]),
2154
2184
  _: 3
2155
2185
  }));
2156
2186
  }
2157
- }), $r = /* @__PURE__ */ o({
2187
+ }), ci = /* @__PURE__ */ o({
2158
2188
  __name: "CalendarTableCell",
2159
2189
  setup(e) {
2160
- return (e, t) => (_(), n(C(qr), { role: "gridcell" }, {
2161
- default: O(() => [b(e.$slots, "default")]),
2190
+ return (e, t) => (b(), n(E(ni), { role: "gridcell" }, {
2191
+ default: j(() => [C(e.$slots, "default")]),
2162
2192
  _: 3
2163
2193
  }));
2164
2194
  }
2165
- }), ei = [
2195
+ }), li = (e, t = yt.Monday) => ({ onKeyDown(n) {
2196
+ switch ([
2197
+ "ArrowLeft",
2198
+ "ArrowRight",
2199
+ "ArrowUp",
2200
+ "ArrowDown",
2201
+ "PageUp",
2202
+ "PageDown",
2203
+ "Home",
2204
+ "End"
2205
+ ].includes(n.key) && n.preventDefault(), n.key) {
2206
+ case "ArrowLeft":
2207
+ e.value = Xe(e.value);
2208
+ break;
2209
+ case "ArrowRight":
2210
+ e.value = Ye(e.value);
2211
+ break;
2212
+ case "ArrowUp":
2213
+ e.value = Qe(e.value);
2214
+ break;
2215
+ case "ArrowDown":
2216
+ e.value = Ze(e.value);
2217
+ break;
2218
+ case "PageUp":
2219
+ e.value = n.shiftKey ? nt(e.value) : et(e.value);
2220
+ break;
2221
+ case "PageDown":
2222
+ e.value = n.shiftKey ? tt(e.value) : $e(e.value);
2223
+ break;
2224
+ case "Home":
2225
+ e.value = n.shiftKey ? at(e.value) : rt(e.value, t);
2226
+ break;
2227
+ case "End":
2228
+ e.value = n.shiftKey ? ot(e.value) : it(e.value, t);
2229
+ break;
2230
+ default: break;
2231
+ }
2232
+ } }), ui = [
2166
2233
  "aria-pressed",
2167
2234
  "aria-disabled",
2168
2235
  "aria-current",
2169
2236
  "tabindex"
2170
- ], ti = /* @__PURE__ */ o({
2237
+ ], di = /* @__PURE__ */ o({
2171
2238
  __name: "CalendarTableCellButton",
2172
2239
  props: {
2173
2240
  date: {},
@@ -2176,27 +2243,115 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2176
2243
  },
2177
2244
  emits: ["click"],
2178
2245
  setup(e, { emit: n }) {
2179
- let r = e, a = n, o = E("element"), { focusedDate: s, allowFocus: c } = l(Wr), { onKeyDown: u } = Ot(s), d = t(() => _t(r.date, s.value));
2180
- return Wt(d, async (e) => {
2181
- e && c.value && (await p(), o.value?.focus());
2182
- }), (t, n) => (_(), i("button", {
2246
+ let r = e, a = n, o = k("element"), { focusedDate: s, allowFocus: c } = l($r), { onKeyDown: u } = li(s), d = t(() => Dt(r.date, s.value));
2247
+ return Qt(d, async (e) => {
2248
+ e && c.value && (await m(), o.value?.focus());
2249
+ }), (t, n) => (b(), i("button", {
2183
2250
  ref_key: "element",
2184
2251
  ref: o,
2185
2252
  "aria-pressed": e.selected,
2186
2253
  "aria-disabled": e.disabled,
2187
- "aria-current": C(_t)(e.date, /* @__PURE__ */ new Date()) ? "date" : void 0,
2254
+ "aria-current": E(Dt)(e.date, /* @__PURE__ */ new Date()) ? "date" : void 0,
2188
2255
  tabindex: d.value ? 0 : -1,
2189
2256
  onFocus: n[0] ||= (t) => s.value = e.date,
2190
- onKeydown: n[1] ||= (...e) => C(u) && C(u)(...e),
2257
+ onKeydown: n[1] ||= (...e) => E(u) && E(u)(...e),
2191
2258
  onClick: n[2] ||= (e) => a("click", e)
2192
- }, [b(t.$slots, "default")], 40, ei));
2259
+ }, [C(t.$slots, "default")], 40, ui));
2193
2260
  }
2194
- }), ni = "\n block-size: 1px;\n inline-size: 1px;\n\n position: absolute;\n overflow: hidden;\n\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n\n white-space: nowrap;\n", ri = /* @__PURE__ */ o({
2261
+ }), Q = Symbol("field"), fi = (e) => {
2262
+ let n = Y(), { elements: r } = H("field-error", e), { elements: i } = H("field-description", e), a = (e) => e.filter((e) => e.id).map((e) => e.id), o = {
2263
+ sharedIds: n,
2264
+ hasErrors: t(() => r.value.length > 0),
2265
+ errorIds: t(() => a(r.value)),
2266
+ descriptionIds: t(() => a(i.value))
2267
+ };
2268
+ return x(Q, o), o;
2269
+ }, pi = Symbol("combobox-field"), $ = Symbol("listbox-field"), mi = Symbol("listbox-field-group"), hi = Symbol("standalone-listbox"), gi = /* @__PURE__ */ o({
2270
+ __name: "ComboboxField",
2271
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
2272
+ modelValue: { default: () => [] },
2273
+ modelModifiers: {}
2274
+ }),
2275
+ emits: ["update:modelValue"],
2276
+ setup(e) {
2277
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), c = S(""), l = S(!1), { optionsTracker: u, options: d, activeIndex: f, activeElementId: p, onClick: m, onBlur: h, onKeyDown: g, onOptionClick: _, onOptionMouseDown: v, onOptionMouseUp: y } = xn(r, s, o, c, l);
2278
+ return x($, {
2279
+ modelValue: r,
2280
+ open: l,
2281
+ activeIndex: f,
2282
+ activeElementId: p,
2283
+ optionsTracker: u,
2284
+ options: d,
2285
+ multiselect: s,
2286
+ onClick: m,
2287
+ onBlur: h,
2288
+ onKeyDown: g,
2289
+ onOptionClick: _,
2290
+ onOptionMouseDown: v,
2291
+ onOptionMouseUp: y
2292
+ }), x(pi, { filter: c }), (e, t) => (b(), i("div", {
2293
+ ref_key: "element",
2294
+ ref: a
2295
+ }, [C(e.$slots, "default")], 512));
2296
+ }
2297
+ }), _i = [
2298
+ "id",
2299
+ "placeholder",
2300
+ "aria-activedescendant",
2301
+ "aria-controls",
2302
+ "aria-expanded",
2303
+ "aria-labelledby"
2304
+ ], vi = /* @__PURE__ */ o({
2305
+ __name: "ComboboxInput",
2306
+ props: {
2307
+ placeholder: { default: void 0 },
2308
+ id: { default: () => D() }
2309
+ },
2310
+ setup(e) {
2311
+ let t = e, { sharedIds: n } = l(Q), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l($), { filter: d } = l(pi);
2312
+ return X(n, "input", () => t.id), (t, l) => oe((b(), i("input", {
2313
+ id: e.id,
2314
+ "onUpdate:modelValue": l[0] ||= (e) => u(d) ? d.value = e : null,
2315
+ placeholder: e.placeholder,
2316
+ "aria-activedescendant": E(a),
2317
+ "aria-controls": E(n).get("listbox"),
2318
+ "aria-expanded": E(r),
2319
+ "aria-labelledby": `${E(n).get("label")} ${E(n).get("selection-list")}`,
2320
+ "aria-autocomplete": "list",
2321
+ "aria-haspopup": "listbox",
2322
+ role: "combobox",
2323
+ type: "text",
2324
+ onBlur: l[1] ||= (...e) => E(o) && E(o)(...e),
2325
+ onKeydown: l[2] ||= (...e) => E(s) && E(s)(...e),
2326
+ onClick: l[3] ||= (...e) => E(c) && E(c)(...e)
2327
+ }, null, 40, _i)), [[ie, E(d)]]);
2328
+ }
2329
+ }), yi = ["id"], bi = /* @__PURE__ */ o({
2330
+ __name: "ComboboxSelectionList",
2331
+ props: { id: { default: () => D() } },
2332
+ setup(e) {
2333
+ let t = e, { sharedIds: n } = l(Q);
2334
+ X(n, "selection-list", () => t.id);
2335
+ let { multiselect: a } = l($);
2336
+ return (t, n) => E(a) ? (b(), i("ul", {
2337
+ key: 0,
2338
+ id: e.id
2339
+ }, [C(t.$slots, "default")], 8, yi)) : r("", !0);
2340
+ }
2341
+ }), xi = (e, t) => {
2342
+ let n = e.__vccOpts || e;
2343
+ for (let [e, r] of t) n[e] = r;
2344
+ return n;
2345
+ }, Si = {};
2346
+ function Ci(e, t) {
2347
+ return b(), i("li", null, [C(e.$slots, "default")]);
2348
+ }
2349
+ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n inline-size: 1px;\n\n position: absolute;\n overflow: hidden;\n\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n\n white-space: nowrap;\n", Ei = /* @__PURE__ */ o({
2195
2350
  __name: "VisuallyHidden",
2196
2351
  setup(e) {
2197
- return (e, t) => (_(), i("div", { style: ni }, [b(e.$slots, "default")]));
2352
+ return (e, t) => (b(), i("div", { style: Ti }, [C(e.$slots, "default")]));
2198
2353
  }
2199
- }), ii = /* @__PURE__ */ o({
2354
+ }), Di = /* @__PURE__ */ o({
2200
2355
  __name: "CopyButton",
2201
2356
  props: {
2202
2357
  content: {},
@@ -2207,29 +2362,29 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2207
2362
  },
2208
2363
  emits: ["copy"],
2209
2364
  setup(o) {
2210
- let s = y(!1), c = o, l = t(() => c.content ? typeof c.content == "string" ? [new ClipboardItem({ "text/plain": c.content })] : Array.isArray(c.content) ? c.content : [c.content] : []), u = async (e) => {
2365
+ let s = S(!1), c = o, l = t(() => c.content ? typeof c.content == "string" ? [new ClipboardItem({ "text/plain": c.content })] : Array.isArray(c.content) ? c.content : [c.content] : []), u = async (e) => {
2211
2366
  c.content ? await navigator.clipboard.write(l.value) : await c.onCopy?.(e), s.value = !0, setTimeout(() => {
2212
2367
  s.value = !1;
2213
2368
  }, 4e3);
2214
2369
  };
2215
- return (t, c) => (_(), i(e, null, [o.preventAnnouncement ? r("", !0) : (_(), n(C(ri), {
2370
+ return (t, c) => (b(), i(e, null, [o.preventAnnouncement ? r("", !0) : (b(), n(E(Ei), {
2216
2371
  key: 0,
2217
2372
  "aria-live": "polite"
2218
2373
  }, {
2219
- default: O(() => [s.value ? b(t.$slots, "default", { isCopying: s.value }, void 0, void 0, 0) : r("", !0)]),
2374
+ default: j(() => [s.value ? C(t.$slots, "default", { isCopying: s.value }, void 0, void 0, 0) : r("", !0)]),
2220
2375
  _: 3
2221
- })), a(C(X), f(t.$attrs, {
2376
+ })), a(E(Z), p(t.$attrs, {
2222
2377
  disabled: o.disabled,
2223
2378
  "keyboard-shortcut": o.keyboardShortcut,
2224
2379
  onClick: u
2225
2380
  }), {
2226
- default: O(() => [b(t.$slots, "default", { isCopying: s.value })]),
2381
+ default: j(() => [C(t.$slots, "default", { isCopying: s.value })]),
2227
2382
  _: 3
2228
2383
  }, 16, ["disabled", "keyboard-shortcut"])], 64));
2229
2384
  }
2230
- }), Z = Symbol("dialog"), ai = /* @__PURE__ */ o({
2385
+ }), Oi = Symbol("dialog"), ki = /* @__PURE__ */ o({
2231
2386
  __name: "Dialog",
2232
- props: /*@__PURE__*/ d({ modal: { type: [Boolean, String] } }, {
2387
+ props: /*@__PURE__*/ f({ modal: { type: [Boolean, String] } }, {
2233
2388
  modelValue: {
2234
2389
  type: Boolean,
2235
2390
  default: !1
@@ -2239,29 +2394,29 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2239
2394
  emits: ["update:modelValue"],
2240
2395
  setup(e) {
2241
2396
  let n = e;
2242
- return v(Z, {
2243
- sharedIds: Lr(),
2244
- open: T(e, "modelValue"),
2397
+ return x(Oi, {
2398
+ sharedIds: Y(),
2399
+ open: O(e, "modelValue"),
2245
2400
  modal: t(() => n.modal)
2246
- }), (e, t) => b(e.$slots, "default");
2401
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
2247
2402
  }
2248
- }), oi = /* @__PURE__ */ o({
2403
+ }), Ai = /* @__PURE__ */ o({
2249
2404
  __name: "DialogButton",
2250
2405
  props: {
2251
2406
  disabled: { type: [Boolean, String] },
2252
2407
  keyboardShortcut: {}
2253
2408
  },
2254
2409
  setup(e) {
2255
- let { sharedIds: t, open: r, modal: i } = l(Z);
2256
- return (a, o) => (_(), n(C(X), {
2410
+ let { sharedIds: t, open: r, modal: i } = l(Oi);
2411
+ return (a, o) => (b(), n(E(Z), {
2257
2412
  "aria-haspopup": "dialog",
2258
- "aria-expanded": C(r),
2413
+ "aria-expanded": E(r),
2259
2414
  disabled: e.disabled,
2260
2415
  "keyboard-shortcut": e.keyboardShortcut,
2261
- commandfor: C(t).get("panel"),
2262
- command: C(i) ? "show-modal" : "--show-non-modal"
2416
+ commandfor: E(t).get("panel"),
2417
+ command: E(i) ? "show-modal" : "--show-non-modal"
2263
2418
  }, {
2264
- default: O(() => [b(a.$slots, "default")]),
2419
+ default: j(() => [C(a.$slots, "default")]),
2265
2420
  _: 3
2266
2421
  }, 8, [
2267
2422
  "aria-expanded",
@@ -2271,21 +2426,21 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2271
2426
  "command"
2272
2427
  ]));
2273
2428
  }
2274
- }), si = /* @__PURE__ */ o({
2429
+ }), ji = /* @__PURE__ */ o({
2275
2430
  __name: "DialogCloseButton",
2276
2431
  props: {
2277
2432
  disabled: { type: [Boolean, String] },
2278
2433
  keyboardShortcut: {}
2279
2434
  },
2280
2435
  setup(e) {
2281
- let { sharedIds: t } = l(Z);
2282
- return (r, i) => (_(), n(C(X), {
2436
+ let { sharedIds: t } = l(Oi);
2437
+ return (r, i) => (b(), n(E(Z), {
2283
2438
  disabled: e.disabled,
2284
2439
  "keyboard-shortcut": e.keyboardShortcut,
2285
- commandfor: C(t).get("panel"),
2440
+ commandfor: E(t).get("panel"),
2286
2441
  command: "close"
2287
2442
  }, {
2288
- default: O(() => [b(r.$slots, "default")]),
2443
+ default: j(() => [C(r.$slots, "default")]),
2289
2444
  _: 3
2290
2445
  }, 8, [
2291
2446
  "disabled",
@@ -2293,62 +2448,61 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2293
2448
  "commandfor"
2294
2449
  ]));
2295
2450
  }
2296
- }), ci = [
2451
+ }), Mi = [
2297
2452
  "id",
2298
2453
  "role",
2299
2454
  "aria-labelledby",
2300
2455
  "aria-describedby",
2301
2456
  "closedby"
2302
- ], li = /* @__PURE__ */ o({
2457
+ ], Ni = /* @__PURE__ */ o({
2303
2458
  __name: "DialogPanel",
2304
2459
  props: {
2305
2460
  lightDismiss: { type: Boolean },
2306
- id: { default: () => w() }
2461
+ id: { default: () => D() }
2307
2462
  },
2308
2463
  setup(e) {
2309
- let t = e, n = E("element"), { sharedIds: r, open: a, modal: o } = l(Z);
2310
- Y(r, "panel", () => t.id);
2464
+ let t = e, n = k("element"), { sharedIds: r, open: a, modal: o } = l(Oi);
2465
+ X(r, "panel", () => t.id);
2311
2466
  let s = (e) => {
2312
2467
  e.command === "--show-non-modal" && n.value?.show();
2313
2468
  };
2314
- return D(a, (e) => {
2469
+ return A(a, (e) => {
2315
2470
  n.value && (e ? o?.value ? n.value.showModal() : n.value.show() : n.value.close());
2316
- }), (t, c) => (_(), i("dialog", {
2471
+ }), (t, c) => (b(), i("dialog", {
2317
2472
  id: e.id,
2318
2473
  ref_key: "element",
2319
2474
  ref: n,
2320
- role: C(o) === "alert" ? "alertdialog" : void 0,
2321
- "aria-labelledby": C(r).get("heading"),
2322
- "aria-describedby": C(r).get("description"),
2475
+ role: E(o) === "alert" ? "alertdialog" : void 0,
2476
+ "aria-labelledby": E(r).get("heading"),
2477
+ "aria-describedby": E(r).get("description"),
2323
2478
  closedby: e.lightDismiss ? "any" : void 0,
2324
2479
  onCommand: s,
2325
2480
  onToggle: c[0] ||= (e) => a.value = e.newState === "open"
2326
- }, [b(t.$slots, "default")], 40, ci));
2481
+ }, [C(t.$slots, "default")], 40, Mi));
2327
2482
  }
2328
- }), ui = ["id"], di = /* @__PURE__ */ o({
2483
+ }), Pi = ["id"], Fi = /* @__PURE__ */ o({
2329
2484
  __name: "DialogDescription",
2330
- props: { id: { default: () => w() } },
2485
+ props: { id: { default: () => D() } },
2331
2486
  setup(e) {
2332
- let t = e, { sharedIds: n } = l(Z);
2333
- return Y(n, "description", () => t.id), (t, n) => (_(), i("div", { id: e.id }, [b(t.$slots, "default")], 8, ui));
2487
+ let t = e, { sharedIds: n } = l(Oi);
2488
+ return X(n, "description", () => t.id), (t, n) => (b(), i("div", { id: e.id }, [C(t.$slots, "default")], 8, Pi));
2334
2489
  }
2335
- }), fi = /* @__PURE__ */ o({
2490
+ }), Ii = /* @__PURE__ */ o({
2336
2491
  __name: "DialogHeading",
2337
2492
  props: {
2338
2493
  level: { default: 1 },
2339
- id: { default: () => w() }
2494
+ id: { default: () => D() }
2340
2495
  },
2341
2496
  setup(e) {
2342
- let t = e, { sharedIds: r } = l(Z);
2343
- return Y(r, "heading", () => t.id), (t, r) => (_(), n(x(`h${e.level}`), { id: e.id }, {
2344
- default: O(() => [b(t.$slots, "default")]),
2497
+ let t = e, { sharedIds: r } = l(Oi);
2498
+ return X(r, "heading", () => t.id), (t, r) => (b(), n(w(`h${e.level}`), { id: e.id }, {
2499
+ default: j(() => [C(t.$slots, "default")]),
2345
2500
  _: 3
2346
2501
  }, 8, ["id"]));
2347
2502
  }
2348
- }), pi = Symbol("disclosure"), mi = { key: 0 }, hi = /* @__PURE__ */ o({
2503
+ }), Li = Symbol("disclosure"), Ri = /* @__PURE__ */ o({
2349
2504
  __name: "Disclosure",
2350
- props: /*@__PURE__*/ d({
2351
- render: { type: Boolean },
2505
+ props: /*@__PURE__*/ f({
2352
2506
  disabled: { type: Boolean },
2353
2507
  popover: { type: Boolean }
2354
2508
  }, {
@@ -2360,9 +2514,9 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2360
2514
  }),
2361
2515
  emits: ["update:modelValue"],
2362
2516
  setup(e) {
2363
- let n = T(e, "modelValue"), r = e;
2364
- return v(pi, {
2365
- sharedIds: Lr(),
2517
+ let n = O(e, "modelValue"), r = e;
2518
+ return x(Li, {
2519
+ sharedIds: Y(),
2366
2520
  disabled: t(() => r.disabled),
2367
2521
  popover: t(() => r.popover),
2368
2522
  open: t({
@@ -2373,27 +2527,27 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2373
2527
  n.value = e;
2374
2528
  }
2375
2529
  })
2376
- }), (t, n) => e.render ? (_(), i("div", mi, [b(t.$slots, "default")])) : b(t.$slots, "default", {}, void 0, void 0, 1);
2530
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
2377
2531
  }
2378
- }), gi = /* @__PURE__ */ o({
2532
+ }), zi = /* @__PURE__ */ o({
2379
2533
  __name: "DisclosureButton",
2380
2534
  props: {
2381
2535
  disabled: { type: [Boolean, String] },
2382
2536
  keyboardShortcut: {}
2383
2537
  },
2384
2538
  setup(e) {
2385
- let { sharedIds: i, open: a, disabled: o, popover: s } = l(pi), c = t(() => ({
2539
+ let { sharedIds: i, open: a, disabled: o, popover: s } = l(Li), c = t(() => ({
2386
2540
  command: s.value ? "toggle-popover" : "--toggle-disclosure",
2387
2541
  commandfor: i.get("panel")
2388
2542
  }));
2389
- return (t, s) => C(o) ? r("", !0) : (_(), n(C(X), f({
2543
+ return (t, s) => E(o) ? r("", !0) : (b(), n(E(Z), p({
2390
2544
  key: 0,
2391
- "aria-expanded": C(a),
2392
- "aria-controls": C(i).get("panel"),
2545
+ "aria-expanded": E(a),
2546
+ "aria-controls": E(i).get("panel"),
2393
2547
  disabled: e.disabled,
2394
2548
  "keyboard-shortcut": e.keyboardShortcut
2395
2549
  }, c.value), {
2396
- default: O(() => [b(t.$slots, "default")]),
2550
+ default: j(() => [C(t.$slots, "default")]),
2397
2551
  _: 3
2398
2552
  }, 16, [
2399
2553
  "aria-expanded",
@@ -2402,309 +2556,408 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2402
2556
  "keyboard-shortcut"
2403
2557
  ]));
2404
2558
  }
2405
- }), _i = y(0), vi = {
2559
+ }), Bi = S(0), Vi = {
2406
2560
  beforeMount(e, { value: t }) {
2407
- let n = `a-l-${_i.value++}`;
2408
- e.setAttribute("data-labelledby-id", n), t && (yi(t, n), e.setAttribute("aria-labelledby", n));
2561
+ let n = `a-l-${Bi.value++}`;
2562
+ e.setAttribute("data-labelledby-id", n), t && (Hi(t, n), e.setAttribute("aria-labelledby", n));
2409
2563
  },
2410
2564
  updated(e, { value: t, oldValue: n }) {
2411
2565
  if (t === n) return;
2412
2566
  let r = e.getAttribute("data-labelledby-id");
2413
2567
  if (r) {
2414
2568
  let n = document.getElementById(r);
2415
- t ? n ? n.innerText = t : (yi(t, r), e.setAttribute("aria-labelledby", r)) : (e.removeAttribute("aria-labelledby"), n?.remove());
2569
+ t ? n ? n.innerText = t : (Hi(t, r), e.setAttribute("aria-labelledby", r)) : (e.removeAttribute("aria-labelledby"), n?.remove());
2416
2570
  }
2417
2571
  },
2418
2572
  beforeUnmount(e) {
2419
2573
  let t = e.getAttribute("data-labelledby-id");
2420
2574
  t && (e.removeAttribute("aria-labelledby"), document.getElementById(t)?.remove());
2421
2575
  }
2422
- }, yi = (e, t) => {
2576
+ }, Hi = (e, t) => {
2423
2577
  let n = document.createElement("span");
2424
2578
  return n.innerText = e, n.id = t, n.hidden = !0, document.documentElement.appendChild(n), n;
2425
- }, bi = {
2579
+ }, Ui = {
2426
2580
  beforeMount(e, { value: t }, { transition: n }) {
2427
- n && t === !1 ? n.beforeEnter(e) : Q(e, t);
2581
+ n && t === !1 ? n.beforeEnter(e) : Wi(e, t);
2428
2582
  },
2429
2583
  mounted(e, { value: t }, { transition: n }) {
2430
2584
  n && t === !1 && n.enter(e);
2431
2585
  },
2432
2586
  updated(e, { value: t, oldValue: n }, { transition: r }) {
2433
- t !== n && (r ? t === !1 ? (r.beforeEnter(e), Q(e, t), r.enter(e)) : r.leave(e, () => Q(e, t)) : Q(e, t));
2587
+ t !== n && (r ? t === !1 ? (r.beforeEnter(e), Wi(e, t), r.enter(e)) : r.leave(e, () => Wi(e, t)) : Wi(e, t));
2434
2588
  },
2435
2589
  beforeUnmount(e, { value: t }) {
2436
- Q(e, t);
2590
+ Wi(e, t);
2437
2591
  }
2438
- }, Q = (e, t) => {
2592
+ }, Wi = (e, t) => {
2439
2593
  t ? e.setAttribute("hidden", `${t}`) : e.removeAttribute("hidden");
2440
- }, xi = /* @__PURE__ */ o({
2594
+ }, Gi = /* @__PURE__ */ o({
2441
2595
  __name: "DisclosurePanel",
2442
2596
  props: {
2443
2597
  hideFromSearch: { type: Boolean },
2444
2598
  as: { default: "div" },
2445
- id: { default: () => w() }
2599
+ id: { default: () => D() }
2446
2600
  },
2447
2601
  setup(e) {
2448
- let r = e, { sharedIds: i, popover: a, open: o } = l(pi);
2449
- Y(i, "panel", () => r.id);
2602
+ let r = e, { sharedIds: i, popover: a, open: o } = l(Li);
2603
+ X(i, "panel", () => r.id);
2450
2604
  let s = t(() => o.value ? void 0 : r.hideFromSearch ? !0 : "until-found"), c = (e) => {
2451
2605
  o.value = e.newState === "open";
2452
2606
  }, u = (e) => {
2453
2607
  e.command === "--toggle-disclosure" && (o.value = !o.value);
2454
2608
  };
2455
- return (t, r) => se((_(), n(x(e.as), {
2609
+ return (t, r) => oe((b(), n(w(e.as), {
2456
2610
  id: e.id,
2457
2611
  ref: "element",
2458
- popover: C(a) ? "auto" : void 0,
2612
+ popover: E(a) ? "auto" : void 0,
2459
2613
  onBeforematch: r[0] ||= (e) => o.value = !0,
2460
2614
  onToggle: c,
2461
2615
  onCommand: u
2462
2616
  }, {
2463
- default: O(() => [b(t.$slots, "default")]),
2617
+ default: j(() => [C(t.$slots, "default")]),
2464
2618
  _: 3
2465
- }, 40, ["id", "popover"])), [[C(bi), s.value]]);
2619
+ }, 40, ["id", "popover"])), [[E(Ui), s.value]]);
2466
2620
  }
2467
- }), Si = ["href"], Ci = /* @__PURE__ */ o({
2621
+ }), Ki = ["href"], qi = /* @__PURE__ */ o({
2468
2622
  __name: "Link",
2469
2623
  props: { url: {} },
2470
2624
  setup(e) {
2471
- let t = E("element"), { onKeyDown: n, moveTo: r } = zr(Br);
2472
- return U("toolbar", t), (a, o) => (_(), i("a", {
2625
+ let t = k("element"), { onKeyDown: n, navigateTo: r } = Jr(Yr);
2626
+ return U("toolbar", t), (a, o) => (b(), i("a", {
2473
2627
  ref_key: "element",
2474
2628
  ref: t,
2475
2629
  href: e.url,
2476
- onKeydown: o[0] ||= (...e) => C(n) && C(n)(...e),
2477
- onClick: o[1] ||= (e) => C(r)?.(t.value)
2478
- }, [b(a.$slots, "default")], 40, Si));
2630
+ onKeydown: o[0] ||= (...e) => E(n) && E(n)(...e),
2631
+ onClick: o[1] ||= (e) => E(r)?.(t.value)
2632
+ }, [C(a.$slots, "default")], 40, Ki));
2479
2633
  }
2480
- }), wi = /* @__PURE__ */ o({
2634
+ }), Ji = /* @__PURE__ */ o({
2481
2635
  __name: "DownloadLink",
2482
2636
  props: {
2483
2637
  url: {},
2484
2638
  filename: {}
2485
2639
  },
2486
2640
  setup(e) {
2487
- return (t, r) => (_(), n(C(Ci), {
2641
+ return (t, r) => (b(), n(E(qi), {
2488
2642
  url: e.url,
2489
2643
  download: e.filename || !0
2490
2644
  }, {
2491
- default: O(() => [b(t.$slots, "default")]),
2645
+ default: j(() => [C(t.$slots, "default")]),
2492
2646
  _: 3
2493
2647
  }, 8, ["url", "download"]));
2494
2648
  }
2495
- }), Ti = ["id"], Ei = /* @__PURE__ */ o({
2649
+ }), Yi = ["id"], Xi = /* @__PURE__ */ o({
2496
2650
  __name: "FieldDescription",
2497
- props: { id: { default: () => w() } },
2651
+ props: { id: { default: () => D() } },
2498
2652
  setup(e) {
2499
- let t = E("element");
2500
- return U("field-description", t), (n, r) => (_(), i("div", {
2653
+ let t = k("element");
2654
+ return U("field-description", t), (n, r) => (b(), i("div", {
2501
2655
  id: e.id,
2502
2656
  ref_key: "element",
2503
2657
  ref: t
2504
- }, [b(n.$slots, "default")], 8, Ti));
2658
+ }, [C(n.$slots, "default")], 8, Yi));
2505
2659
  }
2506
- }), Di = ["id"], Oi = /* @__PURE__ */ o({
2660
+ }), Zi = ["id"], Qi = /* @__PURE__ */ o({
2507
2661
  __name: "FieldError",
2508
- props: { id: { default: () => w() } },
2662
+ props: { id: { default: () => D() } },
2509
2663
  setup(e) {
2510
- let t = E("element");
2511
- return U("field-error", t), (n, r) => (_(), i("div", {
2664
+ let t = k("element");
2665
+ return U("field-error", t), (n, r) => (b(), i("div", {
2512
2666
  id: e.id,
2513
2667
  ref_key: "element",
2514
2668
  ref: t
2515
- }, [b(n.$slots, "default")], 8, Di));
2669
+ }, [C(n.$slots, "default")], 8, Zi));
2516
2670
  }
2517
- }), $ = Symbol("field"), ki = (e) => {
2518
- let n = Lr(), { elements: r } = H("field-error", e), { elements: i } = H("field-description", e), a = (e) => e.filter((e) => e.id).map((e) => e.id);
2519
- return v($, {
2520
- sharedIds: n,
2521
- hasErrors: t(() => r.value.length > 0),
2522
- errorIds: t(() => a(r.value)),
2523
- descriptionIds: t(() => a(i.value))
2524
- });
2525
- }, Ai = ["id", "for"], ji = /* @__PURE__ */ o({
2671
+ }), $i = ["id", "for"], ea = /* @__PURE__ */ o({
2526
2672
  __name: "FieldLabel",
2527
- props: { id: { default: () => w() } },
2673
+ props: { id: { default: () => D() } },
2528
2674
  setup(e) {
2529
- let t = e, { sharedIds: n } = l($);
2530
- Y(n, "label", () => t.id);
2675
+ let t = e, { sharedIds: n } = l(Q);
2676
+ X(n, "label", () => t.id);
2531
2677
  let r = () => {
2532
2678
  document.getElementById(n.get("input"))?.focus();
2533
2679
  };
2534
- return (t, a) => (_(), i("label", {
2680
+ return (t, a) => (b(), i("label", {
2535
2681
  id: e.id,
2536
- for: C(n).get("input"),
2682
+ for: E(n).get("input"),
2537
2683
  onClick: r
2538
- }, [b(t.$slots, "default")], 8, Ai));
2684
+ }, [C(t.$slots, "default")], 8, $i));
2539
2685
  }
2540
- }), Mi = /* @__PURE__ */ o({
2686
+ }), ta = (e) => {
2687
+ let n = t(() => e.value?.$el), r = l(ra);
2688
+ U("table", n), U(r, n);
2689
+ let { onKeyDown: i } = l(ia);
2690
+ return {
2691
+ onKeyDown: i,
2692
+ rowId: r
2693
+ };
2694
+ }, na = (e) => {
2695
+ let { navigate: t, navigateByPage: n, navigateCustom: r, navigateTo: i } = Vt(e);
2696
+ return { onKeyDown(a, o) {
2697
+ let s = [
2698
+ "ArrowLeft",
2699
+ "ArrowRight",
2700
+ "ArrowUp",
2701
+ "ArrowDown",
2702
+ "PageUp",
2703
+ "PageDown",
2704
+ "Home",
2705
+ "End"
2706
+ ];
2707
+ if (!At(o.target)) return;
2708
+ s.includes(o.key) && o.preventDefault();
2709
+ let c = e().filter((e) => e.matches(`[data-elements-${a}="true"]`)), [l, u] = [c[0], c[c.length - 1]], d = o.target.closest(`[data-elements-${a}="true"]`);
2710
+ switch (o.key) {
2711
+ case "ArrowLeft":
2712
+ l?.isSameNode(d) || r(-1);
2713
+ break;
2714
+ case "ArrowRight":
2715
+ u?.isSameNode(d) || r(1);
2716
+ break;
2717
+ case "ArrowUp": return n(-1, c.length);
2718
+ case "ArrowDown": return n(1, c.length);
2719
+ case "PageUp": return n(-9, c.length);
2720
+ case "PageDown": return n(9, c.length);
2721
+ case "Home":
2722
+ o.ctrlKey ? t(V.Start) : l && i(l);
2723
+ break;
2724
+ case "End":
2725
+ o.ctrlKey ? t(V.End) : u && i(u);
2726
+ break;
2727
+ default: break;
2728
+ }
2729
+ } };
2730
+ }, ra = Symbol("row"), ia = Symbol("grid"), aa = /* @__PURE__ */ o({
2541
2731
  __name: "GridTable",
2542
2732
  setup(e) {
2543
- let r = E("element"), i = t(() => r.value?.$el), { getElements: a } = H("table", i), { onKeyDown: o } = Mt(a);
2544
- return v(jt, { onKeyDown: o }), (e, t) => (_(), n(C(Gr), {
2733
+ let r = k("element"), i = t(() => r.value?.$el), { getElements: a } = H("table", i), { onKeyDown: o } = na(a);
2734
+ return x(ia, { onKeyDown: o }), (e, t) => (b(), n(E(ei), {
2545
2735
  ref_key: "element",
2546
2736
  ref: i,
2547
2737
  role: "grid"
2548
2738
  }, {
2549
- default: O(() => [b(e.$slots, "default")]),
2739
+ default: j(() => [C(e.$slots, "default")]),
2550
2740
  _: 3
2551
2741
  }, 512));
2552
2742
  }
2553
- }), Ni = (e) => {
2554
- let n = t(() => e.value?.$el), r = l(Pi);
2555
- U("table", n), U(r, n);
2556
- let { onKeyDown: i } = l(jt);
2557
- return {
2558
- onKeyDown: i,
2559
- rowId: r
2560
- };
2561
- }, Pi = Symbol("row"), Fi = /* @__PURE__ */ o({
2743
+ }), oa = /* @__PURE__ */ o({
2562
2744
  __name: "GridTableCell",
2563
2745
  props: { heading: { type: Boolean } },
2564
2746
  setup(e) {
2565
- let { rowId: t, onKeyDown: r } = Ni(E("element"));
2566
- return (i, a) => (_(), n(C(qr), {
2747
+ let { rowId: t, onKeyDown: r } = ta(k("element"));
2748
+ return (i, a) => (b(), n(E(ni), {
2567
2749
  ref: "element",
2568
2750
  heading: e.heading,
2569
2751
  role: "gridcell",
2570
- onKeydown: a[0] ||= (e) => C(r)(C(t), e)
2752
+ onKeydown: a[0] ||= (e) => E(r)(E(t), e)
2571
2753
  }, {
2572
- default: O(() => [b(i.$slots, "default")]),
2754
+ default: j(() => [C(i.$slots, "default")]),
2573
2755
  _: 3
2574
2756
  }, 8, ["heading"]));
2575
2757
  }
2576
- }), Ii = /* @__PURE__ */ o({
2758
+ }), sa = /* @__PURE__ */ o({
2577
2759
  __name: "GridTableHeadingCell",
2578
2760
  props: { sorted: {} },
2579
2761
  setup(e) {
2580
- let { rowId: t, onKeyDown: r } = Ni(E("element"));
2581
- return (i, a) => (_(), n(C(Xr), {
2762
+ let { rowId: t, onKeyDown: r } = ta(k("element"));
2763
+ return (i, a) => (b(), n(E(ai), {
2582
2764
  ref: "element",
2583
2765
  role: "gridcell",
2584
2766
  sorted: e.sorted,
2585
- onKeydown: a[0] ||= (e) => C(r)(C(t), e)
2767
+ onKeydown: a[0] ||= (e) => E(r)(E(t), e)
2586
2768
  }, {
2587
- default: O(() => [b(i.$slots, "default")]),
2769
+ default: j(() => [C(i.$slots, "default")]),
2588
2770
  _: 3
2589
2771
  }, 8, ["sorted"]));
2590
2772
  }
2591
- }), Li = /* @__PURE__ */ o({
2773
+ }), ca = /* @__PURE__ */ o({
2592
2774
  __name: "GridTableRow",
2593
2775
  setup(e) {
2594
- return v(Pi, w()), (e, t) => (_(), n(C(Zr), null, {
2595
- default: O(() => [b(e.$slots, "default")]),
2776
+ return x(ra, D()), (e, t) => (b(), n(E(oi), null, {
2777
+ default: j(() => [C(e.$slots, "default")]),
2596
2778
  _: 3
2597
2779
  }));
2598
2780
  }
2599
- }), Ri = /* @__PURE__ */ o({
2781
+ }), la = /* @__PURE__ */ o({
2600
2782
  __name: "ListboxField",
2783
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
2784
+ modelValue: { default: () => [] },
2785
+ modelModifiers: {}
2786
+ }),
2787
+ emits: ["update:modelValue"],
2601
2788
  setup(e) {
2602
- let t = E("element");
2603
- return ki(t), (e, n) => (_(), i("div", {
2789
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), { optionsTracker: c, options: l, activeIndex: u, activeElementId: d, onClick: f, onBlur: p, onKeyDown: m, onOptionClick: h, onOptionMouseDown: g, onOptionMouseUp: _ } = xn(r, s, o);
2790
+ return x($, {
2791
+ modelValue: r,
2792
+ activeIndex: u,
2793
+ optionsTracker: c,
2794
+ options: l,
2795
+ activeElementId: d,
2796
+ multiselect: s,
2797
+ onClick: f,
2798
+ onBlur: p,
2799
+ onKeyDown: m,
2800
+ onOptionClick: h,
2801
+ onOptionMouseDown: g,
2802
+ onOptionMouseUp: _
2803
+ }), x(hi, !0), (e, t) => (b(), i("div", {
2604
2804
  ref_key: "element",
2605
- ref: t
2606
- }, [b(e.$slots, "default")], 512));
2805
+ ref: a
2806
+ }, [C(e.$slots, "default")], 512));
2607
2807
  }
2608
- }), zi = Symbol("listbox-field"), Bi = Symbol("listbox-field-group"), Vi = ["aria-labelledby"], Hi = /* @__PURE__ */ o({
2609
- __name: "ListboxFieldGroup",
2808
+ }), ua = [
2809
+ "id",
2810
+ "aria-multiselectable",
2811
+ "aria-labelledby",
2812
+ "aria-describedby",
2813
+ "aria-invalid",
2814
+ "aria-activedescendant",
2815
+ "tabindex"
2816
+ ], da = /* @__PURE__ */ o({
2817
+ __name: "ListboxInput",
2818
+ props: { id: { default: () => D() } },
2610
2819
  setup(e) {
2611
- let t = w();
2612
- return v(Bi, t), (e, n) => (_(), i("div", {
2820
+ let t = e, { sharedIds: n, hasErrors: a, errorIds: o, descriptionIds: s } = l(Q);
2821
+ X(n, "listbox", () => t.id);
2822
+ let { open: c, multiselect: u, activeElementId: d, onKeyDown: f } = l($), p = l(hi, !1);
2823
+ return (t, l) => E(c) === void 0 || E(c) ? (b(), i("div", {
2824
+ key: 0,
2825
+ id: e.id,
2826
+ "aria-multiselectable": E(u),
2827
+ "aria-labelledby": E(n).get("label"),
2828
+ "aria-describedby": [E(o), E(s)].flat().join(" "),
2829
+ "aria-invalid": E(a),
2830
+ "aria-activedescendant": E(d),
2831
+ tabindex: E(p) ? 0 : -1,
2832
+ role: "listbox",
2833
+ onKeydown: l[0] ||= (e) => E(p) ? E(f)(e) : void 0
2834
+ }, [C(t.$slots, "default")], 40, ua)) : r("", !0);
2835
+ }
2836
+ }), fa = ["aria-labelledby"], pa = /* @__PURE__ */ o({
2837
+ __name: "ListboxGroup",
2838
+ setup(e) {
2839
+ let t = Y();
2840
+ return x(mi, t), (e, n) => (b(), i("div", {
2613
2841
  role: "group",
2614
- "aria-labelledby": C(t)
2615
- }, [b(e.$slots, "default")], 8, Vi));
2842
+ "aria-labelledby": E(t).get("group-label")
2843
+ }, [C(e.$slots, "default")], 8, fa));
2616
2844
  }
2617
- }), Ui = ["id"], Wi = /* @__PURE__ */ o({
2618
- __name: "ListboxFieldGroupTitle",
2845
+ }), ma = ["id"], ha = /* @__PURE__ */ o({
2846
+ __name: "ListboxGroupLabel",
2847
+ props: { id: { default: () => D() } },
2619
2848
  setup(e) {
2620
- let t = l(Bi);
2621
- return (e, n) => (_(), i("div", { id: C(t) }, [b(e.$slots, "default")], 8, Ui));
2849
+ let t = e;
2850
+ return X(l(mi), "group-label", () => t.id), (t, n) => (b(), i("div", { id: e.id }, [C(t.$slots, "default")], 8, ma));
2622
2851
  }
2623
- }), Gi = [
2852
+ }), ga = [
2624
2853
  "id",
2625
- "aria-labelledby",
2626
- "aria-describedby",
2627
- "aria-invalid",
2628
- "aria-multiselectable",
2629
- "aria-orientation"
2630
- ], Ki = /* @__PURE__ */ o({
2631
- __name: "ListboxFieldInput",
2632
- props: /*@__PURE__*/ d({
2633
- multiselect: { type: Boolean },
2854
+ "data-active",
2855
+ "data-value",
2856
+ "aria-selected",
2857
+ "aria-disabled"
2858
+ ], _a = /* @__PURE__ */ o({
2859
+ __name: "ListboxOption",
2860
+ props: {
2861
+ label: {},
2862
+ value: {},
2634
2863
  disabled: { type: Boolean },
2635
- orientation: { default: "vertical" },
2636
- id: { default: () => w() }
2637
- }, {
2864
+ id: { default: () => D() }
2865
+ },
2866
+ setup(e) {
2867
+ let n = e, a = D(), o = k("element"), { sharedIds: s } = l(Q);
2868
+ X(s, n.value, () => n.id);
2869
+ let { modelValue: c, options: u, optionsTracker: d, activeIndex: f, onOptionClick: p, onOptionMouseDown: m, onOptionMouseUp: h } = l($), v = t(() => u.value.findIndex((e) => e.value === n.value)), y = t(() => ({
2870
+ id: a,
2871
+ value: n.value,
2872
+ label: n.label,
2873
+ disabled: n.disabled
2874
+ }));
2875
+ return A(f, (e) => {
2876
+ if (e !== v.value) return;
2877
+ let t = document.getElementById(s.get("listbox"));
2878
+ Ft(t) && It(o.value, t);
2879
+ }), g(() => {
2880
+ d.value = [...d.value, y.value];
2881
+ }), _(() => {
2882
+ d.value = d.value.filter((e) => e.id !== a);
2883
+ }), Zt(y, (e) => {
2884
+ d.value = d.value.map((t) => t.id === a ? e : t);
2885
+ }), (t, n) => v.value > -1 ? (b(), i("div", {
2886
+ key: 0,
2887
+ id: e.id,
2888
+ ref_key: "element",
2889
+ ref: o,
2890
+ "data-active": E(f) === v.value,
2891
+ "data-value": e.value,
2892
+ "aria-selected": E(c).some((t) => t === e.value),
2893
+ "aria-disabled": e.disabled,
2894
+ role: "option",
2895
+ onClick: n[0] ||= (e) => E(p)(v.value),
2896
+ onMousedown: n[1] ||= (...e) => E(m) && E(m)(...e),
2897
+ onMouseup: n[2] ||= (...e) => E(h) && E(h)(...e)
2898
+ }, [C(t.$slots, "default")], 40, ga)) : r("", !0);
2899
+ }
2900
+ }), va = /* @__PURE__ */ o({
2901
+ __name: "SelectField",
2902
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
2638
2903
  modelValue: { default: () => [] },
2639
2904
  modelModifiers: {}
2640
2905
  }),
2641
2906
  emits: ["update:modelValue"],
2642
2907
  setup(e) {
2643
- let n = e, r = T(e, "modelValue"), { sharedIds: a, hasErrors: o, errorIds: s, descriptionIds: c } = l($);
2644
- Y(a, "input", () => n.id);
2645
- let u = E("element"), { getElements: d } = H("listbox", u), { onKeyDown: f, onSpace: p, moveTo: m } = It(() => n.orientation, () => n.multiselect, r, d);
2646
- return v(zi, {
2647
- onKeyDown: f,
2648
- onSpace: p,
2649
- moveTo: m,
2908
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), c = S(!1), { options: l, optionsTracker: u, activeIndex: d, activeElementId: f, onClick: p, onBlur: m, onKeyDown: h, onOptionClick: g, onOptionMouseDown: _, onOptionMouseUp: v } = xn(r, s, o, void 0, c);
2909
+ return x($, {
2650
2910
  modelValue: r,
2651
- multiselect: t(() => n.multiselect)
2652
- }), (t, n) => (_(), i("div", {
2653
- id: e.id,
2911
+ open: c,
2912
+ activeIndex: d,
2913
+ activeElementId: f,
2914
+ optionsTracker: u,
2915
+ options: l,
2916
+ multiselect: s,
2917
+ onClick: p,
2918
+ onBlur: m,
2919
+ onKeyDown: h,
2920
+ onOptionClick: g,
2921
+ onOptionMouseDown: _,
2922
+ onOptionMouseUp: v
2923
+ }), (e, t) => (b(), i("div", {
2654
2924
  ref_key: "element",
2655
- ref: u,
2656
- "aria-labelledby": C(a).get("label"),
2657
- "aria-describedby": [C(s), C(c)].flat().join(" "),
2658
- "aria-invalid": C(o),
2659
- "aria-multiselectable": e.multiselect,
2660
- "aria-orientation": e.orientation,
2661
- role: "listbox"
2662
- }, [b(t.$slots, "default")], 8, Gi));
2663
- }
2664
- }), qi = [
2665
- "aria-selected",
2666
- "aria-disabled",
2667
- "data-value"
2668
- ], Ji = /* @__PURE__ */ o({
2669
- __name: "ListboxFieldOption",
2670
- props: {
2671
- value: {},
2672
- disabled: {
2673
- type: Boolean,
2674
- default: !1
2675
- }
2676
- },
2925
+ ref: a
2926
+ }, [C(e.$slots, "default")], 512));
2927
+ }
2928
+ }), ya = [
2929
+ "id",
2930
+ "aria-activedescendant",
2931
+ "aria-controls",
2932
+ "aria-expanded",
2933
+ "aria-labelledby"
2934
+ ], ba = /* @__PURE__ */ o({
2935
+ __name: "SelectButton",
2936
+ props: { id: { default: () => D() } },
2677
2937
  setup(e) {
2678
- let t = e, n = E("element");
2679
- U("listbox", n);
2680
- let { onKeyDown: r, onSpace: a, moveTo: o, modelValue: s, multiselect: c } = l(zi), u = () => {
2681
- o(n.value), !t.disabled && (s.value.includes(t.value) ? s.value = s.value.filter((e) => e !== t.value) : s.value = c.value ? [...s.value, t.value] : [t.value]);
2682
- }, d = () => {
2683
- t.disabled || s.value.includes(t.value) || (s.value = c.value ? [...s.value, t.value] : [t.value]);
2684
- };
2685
- return (t, o) => (_(), i("div", {
2686
- ref_key: "element",
2687
- ref: n,
2688
- "aria-selected": C(s).includes(e.value),
2689
- "aria-disabled": e.disabled,
2690
- "data-value": e.value,
2691
- role: "option",
2692
- tabindex: "-1",
2693
- onClick: u,
2694
- onKeydown: [
2695
- ce(d, ["enter"]),
2696
- o[0] ||= ce(le((t) => e.disabled ? void 0 : C(a)(e.value, t), ["prevent"]), ["space"]),
2697
- o[1] ||= (t) => C(r)(e.value, t)
2698
- ]
2699
- }, [b(t.$slots, "default", { selected: C(s).includes(e.value) })], 40, qi));
2700
- }
2701
- }), Yi = ["aria-orientation"], Xi = /* @__PURE__ */ o({
2938
+ let t = e, { sharedIds: n } = l(Q), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l($);
2939
+ return X(n, "input", () => t.id), (t, l) => (b(), i("button", {
2940
+ id: e.id,
2941
+ "aria-activedescendant": E(a),
2942
+ "aria-controls": E(n).get("listbox"),
2943
+ "aria-expanded": E(r),
2944
+ "aria-labelledby": E(n).get("label"),
2945
+ "aria-autocomplete": "none",
2946
+ "aria-haspopup": "listbox",
2947
+ role: "combobox",
2948
+ type: "button",
2949
+ onBlur: l[0] ||= (...e) => E(o) && E(o)(...e),
2950
+ onKeydown: l[1] ||= (...e) => E(s) && E(s)(...e),
2951
+ onClick: l[2] ||= (...e) => E(c) && E(c)(...e)
2952
+ }, [C(t.$slots, "default")], 40, ya));
2953
+ }
2954
+ }), xa = ["aria-orientation"], Sa = /* @__PURE__ */ o({
2702
2955
  __name: "Separator",
2703
2956
  props: { orientation: { default: "horizontal" } },
2704
2957
  setup(e) {
2705
- return (t, n) => (_(), i("hr", { "aria-orientation": e.orientation }, null, 8, Yi));
2958
+ return (t, n) => (b(), i("hr", { "aria-orientation": e.orientation }, null, 8, xa));
2706
2959
  }
2707
- }), Zi = Symbol("Switch-field"), Qi = /* @__PURE__ */ o({
2960
+ }), Ca = Symbol("Switch-field"), wa = /* @__PURE__ */ o({
2708
2961
  __name: "SwitchField",
2709
2962
  props: {
2710
2963
  modelValue: {
@@ -2715,38 +2968,38 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2715
2968
  },
2716
2969
  emits: ["update:modelValue"],
2717
2970
  setup(e) {
2718
- let t = T(e, "modelValue"), n = E("element");
2719
- return ki(n), v(Zi, { modelValue: t }), (e, t) => (_(), i("div", {
2971
+ let t = O(e, "modelValue"), n = k("element");
2972
+ return fi(n), x(Ca, { modelValue: t }), (e, t) => (b(), i("div", {
2720
2973
  ref_key: "element",
2721
2974
  ref: n
2722
- }, [b(e.$slots, "default")], 512));
2975
+ }, [C(e.$slots, "default")], 512));
2723
2976
  }
2724
- }), $i = { "aria-hidden": "true" }, ea = /* @__PURE__ */ o({
2977
+ }), Ta = { "aria-hidden": "true" }, Ea = /* @__PURE__ */ o({
2725
2978
  __name: "SwitchFieldStateLabel",
2726
2979
  setup(e) {
2727
- return (e, t) => (_(), i("div", $i, [b(e.$slots, "default")]));
2980
+ return (e, t) => (b(), i("div", Ta, [C(e.$slots, "default")]));
2728
2981
  }
2729
- }), ta = /* @__PURE__ */ o({
2982
+ }), Da = /* @__PURE__ */ o({
2730
2983
  __name: "SwitchFieldSwitchButton",
2731
2984
  props: {
2732
- id: { default: () => w() },
2985
+ id: { default: () => D() },
2733
2986
  disabled: { type: [Boolean, String] },
2734
2987
  keyboardShortcut: {}
2735
2988
  },
2736
2989
  setup(e) {
2737
- let t = e, { modelValue: r } = l(Zi), { sharedIds: i, hasErrors: a, errorIds: o, descriptionIds: s } = l($);
2738
- return Y(i, "switch-button", () => t.id), (t, c) => (_(), n(C(X), {
2990
+ let t = e, { modelValue: r } = l(Ca), { sharedIds: i, hasErrors: a, errorIds: o, descriptionIds: s } = l(Q);
2991
+ return X(i, "switch-button", () => t.id), (t, c) => (b(), n(E(Z), {
2739
2992
  id: e.id,
2740
- "aria-checked": C(r),
2741
- "aria-describedby": [C(o), C(s)].flat().join(" ") || void 0,
2742
- "aria-invalid": C(a) ? !0 : void 0,
2743
- "aria-labelledby": C(i).get("label"),
2993
+ "aria-checked": E(r),
2994
+ "aria-describedby": [E(o), E(s)].flat().join(" ") || void 0,
2995
+ "aria-invalid": E(a) ? !0 : void 0,
2996
+ "aria-labelledby": E(i).get("label"),
2744
2997
  disabled: e.disabled,
2745
2998
  "keyboard-shortcut": e.keyboardShortcut,
2746
2999
  role: "switch",
2747
- onClick: c[0] ||= (e) => r.value = !C(r)
3000
+ onClick: c[0] ||= (e) => r.value = !E(r)
2748
3001
  }, {
2749
- default: O(() => [b(t.$slots, "default")]),
3002
+ default: j(() => [C(t.$slots, "default")]),
2750
3003
  _: 3
2751
3004
  }, 8, [
2752
3005
  "id",
@@ -2758,28 +3011,25 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2758
3011
  "keyboard-shortcut"
2759
3012
  ]));
2760
3013
  }
2761
- }), na = Symbol("tabs"), ra = Symbol("tabs-list"), ia = /* @__PURE__ */ o({
3014
+ }), Oa = Symbol("tabs"), ka = Symbol("tabs-list"), Aa = /* @__PURE__ */ o({
2762
3015
  __name: "Tabs",
2763
- props: /*@__PURE__*/ d({ as: {} }, {
3016
+ props: {
2764
3017
  modelValue: {},
2765
3018
  modelModifiers: {}
2766
- }),
3019
+ },
2767
3020
  emits: ["update:modelValue"],
2768
3021
  setup(e) {
2769
- let t = T(e, "modelValue");
2770
- return v(na, {
2771
- sharedIds: Lr(),
3022
+ let t = O(e, "modelValue");
3023
+ return x(Oa, {
3024
+ sharedIds: Y(),
2772
3025
  selectedPanel: t
2773
- }), (t, r) => e.as ? (_(), n(x(e.as), { key: 0 }, {
2774
- default: O(() => [b(t.$slots, "default")]),
2775
- _: 3
2776
- })) : b(t.$slots, "default", {}, void 0, void 0, 1);
3026
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
2777
3027
  }
2778
- }), aa = [
3028
+ }), ja = [
2779
3029
  "tabindex",
2780
3030
  "aria-disabled",
2781
3031
  "disabled"
2782
- ], oa = /* @__PURE__ */ o({
3032
+ ], Ma = /* @__PURE__ */ o({
2783
3033
  __name: "TabsActionButton",
2784
3034
  props: {
2785
3035
  value: {},
@@ -2787,165 +3037,165 @@ var Fr = J, Ir = (e, n, r) => t(() => {
2787
3037
  },
2788
3038
  emits: ["click"],
2789
3039
  setup(e, { emit: t }) {
2790
- let n = e, r = t, { selectedPanel: a } = l(na), o = (e) => {
3040
+ let n = e, r = t, { selectedPanel: a } = l(Oa), o = (e) => {
2791
3041
  n.disabled || r("click", e);
2792
3042
  };
2793
- return (t, n) => (_(), i("button", {
3043
+ return (t, n) => (b(), i("button", {
2794
3044
  ref: "button",
2795
- tabindex: C(a) === e.value ? 0 : -1,
3045
+ tabindex: E(a) === e.value ? 0 : -1,
2796
3046
  "aria-disabled": e.disabled === !0 || void 0,
2797
3047
  disabled: e.disabled === "without-focus" || void 0,
2798
3048
  type: "button",
2799
3049
  onClick: o
2800
- }, [b(t.$slots, "default")], 8, aa));
3050
+ }, [C(t.$slots, "default")], 8, ja));
2801
3051
  }
2802
- }), sa = [
3052
+ }), Na = [
2803
3053
  "id",
2804
3054
  "aria-disabled",
2805
3055
  "aria-selected",
2806
3056
  "aria-controls"
2807
- ], ca = /* @__PURE__ */ o({
3057
+ ], Pa = /* @__PURE__ */ o({
2808
3058
  __name: "TabsButton",
2809
3059
  props: {
2810
3060
  value: {},
2811
- id: { default: () => w() },
3061
+ id: { default: () => D() },
2812
3062
  disabled: { type: Boolean }
2813
3063
  },
2814
3064
  emits: ["delete"],
2815
3065
  setup(e, { emit: t }) {
2816
- let n = e, r = E("element");
3066
+ let n = e, r = k("element");
2817
3067
  U("tabs-list", r);
2818
- let a = t, { selectedPanel: o, sharedIds: s } = l(na);
2819
- Y(s, `${n.value}-button`, () => n.id);
2820
- let { onKeyDown: c, selectionFollowsFocus: u } = l(ra), d = () => {
3068
+ let a = t, { selectedPanel: o, sharedIds: s } = l(Oa);
3069
+ X(s, `${n.value}-button`, () => n.id);
3070
+ let { onKeyDown: c, selectionFollowsFocus: u } = l(ka), d = () => {
2821
3071
  n.disabled || (o.value = n.value);
2822
3072
  }, f = () => {
2823
3073
  n.disabled || a("delete");
2824
3074
  };
2825
- return m(() => {
3075
+ return g(() => {
2826
3076
  o.value ||= n.value;
2827
- }), (t, a) => (_(), i("button", {
3077
+ }), (t, a) => (b(), i("button", {
2828
3078
  id: e.id,
2829
3079
  ref_key: "element",
2830
3080
  ref: r,
2831
3081
  "aria-disabled": e.disabled === !0 || void 0,
2832
- "aria-selected": C(o) === e.value,
2833
- "aria-controls": C(s).get(`${n.value}-panel`),
3082
+ "aria-selected": E(o) === e.value,
3083
+ "aria-controls": E(s).get(`${n.value}-panel`),
2834
3084
  type: "button",
2835
3085
  role: "tab",
2836
- onFocus: a[0] ||= (t) => C(u) ? o.value = e.value : void 0,
2837
- onKeydown: [ce(f, ["delete"]), a[1] ||= (...e) => C(c) && C(c)(...e)],
3086
+ onFocus: a[0] ||= (t) => E(u) ? o.value = e.value : void 0,
3087
+ onKeydown: [se(f, ["delete"]), a[1] ||= (...e) => E(c) && E(c)(...e)],
2838
3088
  onClick: d
2839
- }, [b(t.$slots, "default")], 40, sa));
3089
+ }, [C(t.$slots, "default")], 40, Na));
2840
3090
  }
2841
- }), la = ["aria-orientation"], ua = /* @__PURE__ */ o({
3091
+ }), Fa = ["aria-orientation"], Ia = /* @__PURE__ */ o({
2842
3092
  __name: "TabsList",
2843
3093
  props: {
2844
3094
  orientation: { default: "horizontal" },
2845
3095
  selectionFollowsFocus: { type: Boolean }
2846
3096
  },
2847
3097
  setup(e) {
2848
- let n = e, { orientation: r } = re(n), a = E("element"), { getElements: o } = H("tabs-list", a), { onKeyDown: s } = Pt(r, o);
2849
- return v(ra, {
3098
+ let n = e, { orientation: r } = ne(n), a = k("element"), { getElements: o } = H("tabs-list", a), { onKeyDown: s } = Ut(r, o);
3099
+ return x(ka, {
2850
3100
  selectionFollowsFocus: t(() => n.selectionFollowsFocus),
2851
3101
  onKeyDown: s
2852
- }), (e, t) => (_(), i("div", {
3102
+ }), (e, t) => (b(), i("div", {
2853
3103
  ref_key: "element",
2854
3104
  ref: a,
2855
- "aria-orientation": C(r),
3105
+ "aria-orientation": E(r),
2856
3106
  role: "tablist"
2857
- }, [b(e.$slots, "default")], 8, la));
3107
+ }, [C(e.$slots, "default")], 8, Fa));
2858
3108
  }
2859
- }), da = ["id", "aria-labelledby"], fa = /* @__PURE__ */ o({
3109
+ }), La = ["id", "aria-labelledby"], Ra = /* @__PURE__ */ o({
2860
3110
  __name: "TabsPanel",
2861
3111
  props: {
2862
3112
  value: {},
2863
- id: { default: () => w() }
3113
+ id: { default: () => D() }
2864
3114
  },
2865
3115
  setup(e) {
2866
- let n = e, { selectedPanel: a, sharedIds: o } = l(na);
2867
- Y(o, `${n.value}-panel`, () => n.id);
3116
+ let n = e, { selectedPanel: a, sharedIds: o } = l(Oa);
3117
+ X(o, `${n.value}-panel`, () => n.id);
2868
3118
  let s = t(() => a.value === n.value);
2869
- return (t, a) => s.value ? (_(), i("div", {
3119
+ return (t, a) => s.value ? (b(), i("div", {
2870
3120
  key: 0,
2871
3121
  id: e.id,
2872
3122
  ref: "button",
2873
- "aria-labelledby": C(o).get(`${n.value}-button`),
3123
+ "aria-labelledby": E(o).get(`${n.value}-button`),
2874
3124
  tabindex: "-1",
2875
3125
  role: "tabpanel"
2876
- }, [b(t.$slots, "default")], 8, da)) : r("", !0);
3126
+ }, [C(t.$slots, "default")], 8, La)) : r("", !0);
2877
3127
  }
2878
- }), pa = { key: 0 }, ma = /* @__PURE__ */ o({
3128
+ }), za = /* @__PURE__ */ o({
2879
3129
  __name: "TextareaField",
2880
3130
  setup(e) {
2881
- return ki(E("element")), (e, t) => Object.keys(e.$attrs).length ? (_(), i("div", pa, [b(e.$slots, "default")])) : b(e.$slots, "default", {}, void 0, void 0, 1);
3131
+ return fi(k("element")), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
2882
3132
  }
2883
- }), ha = [
3133
+ }), Ba = [
2884
3134
  "id",
2885
3135
  "aria-invalid",
2886
3136
  "aria-describedby",
2887
3137
  "aria-labelledby",
2888
3138
  "disabled"
2889
- ], ga = /* @__PURE__ */ o({
3139
+ ], Va = /* @__PURE__ */ o({
2890
3140
  __name: "TextareaFieldInput",
2891
- props: /*@__PURE__*/ d({
3141
+ props: /*@__PURE__*/ f({
2892
3142
  disabled: { type: Boolean },
2893
- id: { default: () => w() }
3143
+ id: { default: () => D() }
2894
3144
  }, {
2895
3145
  modelValue: {},
2896
3146
  modelModifiers: {}
2897
3147
  }),
2898
3148
  emits: ["update:modelValue"],
2899
3149
  setup(e) {
2900
- let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l($);
2901
- Y(n, "input", () => t.id);
2902
- let s = T(e, "modelValue");
2903
- return (t, c) => se((_(), i("textarea", {
3150
+ let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(Q);
3151
+ X(n, "input", () => t.id);
3152
+ let s = O(e, "modelValue");
3153
+ return (t, c) => oe((b(), i("textarea", {
2904
3154
  id: e.id,
2905
3155
  "onUpdate:modelValue": c[0] ||= (e) => s.value = e,
2906
- "aria-invalid": C(r),
2907
- "aria-describedby": [C(a), C(o)].flat().join(" ") || void 0,
2908
- "aria-labelledby": C(n).get("label"),
3156
+ "aria-invalid": E(r),
3157
+ "aria-describedby": [E(a), E(o)].flat().join(" ") || void 0,
3158
+ "aria-labelledby": E(n).get("label"),
2909
3159
  disabled: e.disabled
2910
- }, null, 8, ha)), [[ae, s.value]]);
3160
+ }, null, 8, Ba)), [[ie, s.value]]);
2911
3161
  }
2912
- }), _a = { key: 0 }, va = /* @__PURE__ */ o({
3162
+ }), Ha = /* @__PURE__ */ o({
2913
3163
  __name: "TextField",
2914
3164
  setup(e) {
2915
- return ki(E("element")), (e, t) => Object.keys(e.$attrs).length ? (_(), i("div", _a, [b(e.$slots, "default")])) : b(e.$slots, "default", {}, void 0, void 0, 1);
3165
+ return fi(k("element")), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
2916
3166
  }
2917
- }), ya = [
3167
+ }), Ua = [
2918
3168
  "id",
2919
3169
  "type",
2920
3170
  "aria-invalid",
2921
3171
  "aria-describedby",
2922
3172
  "aria-labelledby",
2923
3173
  "disabled"
2924
- ], ba = /* @__PURE__ */ o({
3174
+ ], Wa = /* @__PURE__ */ o({
2925
3175
  __name: "TextFieldInput",
2926
- props: /*@__PURE__*/ d({
3176
+ props: /*@__PURE__*/ f({
2927
3177
  search: { type: Boolean },
2928
3178
  disabled: { type: Boolean },
2929
- id: { default: () => w() }
3179
+ id: { default: () => D() }
2930
3180
  }, {
2931
3181
  modelValue: {},
2932
3182
  modelModifiers: {}
2933
3183
  }),
2934
3184
  emits: ["update:modelValue"],
2935
3185
  setup(e) {
2936
- let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l($);
2937
- Y(n, "input", () => t.id);
2938
- let s = T(e, "modelValue");
2939
- return (t, c) => se((_(), i("input", {
3186
+ let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(Q);
3187
+ X(n, "input", () => t.id);
3188
+ let s = O(e, "modelValue");
3189
+ return (t, c) => oe((b(), i("input", {
2940
3190
  id: e.id,
2941
3191
  "onUpdate:modelValue": c[0] ||= (e) => s.value = e,
2942
3192
  type: e.search ? "search" : "text",
2943
- "aria-invalid": C(r),
2944
- "aria-describedby": [C(a), C(o)].flat().join(" ") || void 0,
2945
- "aria-labelledby": C(n).get("label"),
3193
+ "aria-invalid": E(r),
3194
+ "aria-describedby": [E(a), E(o)].flat().join(" ") || void 0,
3195
+ "aria-labelledby": E(n).get("label"),
2946
3196
  disabled: e.disabled
2947
- }, null, 8, ya)), [[ie, s.value]]);
3197
+ }, null, 8, Ua)), [[re, s.value]]);
2948
3198
  }
2949
3199
  });
2950
3200
  //#endregion
2951
- export { jt as GridKey, Ft as ListboxKey, X as PeachyButton, Qr as PeachyCalendarTable, $r as PeachyCalendarTableCell, ti as PeachyCalendarTableCellButton, ii as PeachyCopyButton, ai as PeachyDialog, oi as PeachyDialogButton, si as PeachyDialogCloseButton, di as PeachyDialogDescription, fi as PeachyDialogHeading, li as PeachyDialogPanel, hi as PeachyDisclosure, gi as PeachyDisclosureButton, xi as PeachyDisclosurePanel, wi as PeachyDownloadLink, Ei as PeachyFieldDescription, Oi as PeachyFieldError, ji as PeachyFieldLabel, Mi as PeachyGridTable, Fi as PeachyGridTableCell, Ii as PeachyGridTableHeadingCell, Li as PeachyGridTableRow, Ci as PeachyLink, Ri as PeachyListboxField, Hi as PeachyListboxGroup, Wi as PeachyListboxGroupTitle, Ki as PeachyListboxInput, Ji as PeachyListboxOption, Xi as PeachySeparator, ta as PeachySwitchButton, Qi as PeachySwitchField, ea as PeachySwitchStateLabel, Gr as PeachyTable, Kr as PeachyTableBody, qr as PeachyTableCell, Jr as PeachyTableHead, Xr as PeachyTableHeadingCell, Zr as PeachyTableRow, ia as PeachyTabs, oa as PeachyTabsActionButton, ca as PeachyTabsButton, ua as PeachyTabsList, fa as PeachyTabsPanel, va as PeachyTextField, ba as PeachyTextFieldInput, ma as PeachyTextareaField, ga as PeachyTextareaFieldInput, Hr as PeachyToolbar, ri as PeachyVisuallyHidden, Nt as RovingTabindexKey, Br as ToolbarContextKey, lt as Weekday, et as formatDate, tt as getDate, dt as getDaysOfCalendarMonth, ut as getDaysOfMonth, Ye as getFirstDayOfMonth, qe as getFirstDayOfWeek, Ze as getFirstDayOfYear, Xe as getLastDayOfMonth, Je as getLastDayOfTheWeek, Qe as getLastDayOfYear, it as getMonth, ct as getMonths, st as getNameOfMonth, ze as getNextDay, Ue as getNextMonth, Ve as getNextWeek, Ge as getNextYear, Be as getPreviousDay, We as getPreviousMonth, He as getPreviousWeek, Ke as getPreviousYear, rt as getWeekNumber, ot as getWeekdays, at as getYear, gt as isDateInRange, ht as isDateTimeInRange, V as isDisabledElement, xt as isFocusedHtmlElement, St as isFocusedRovingTabindexElement, bt as isHtmlElement, yt as isNullish, wt as isPrintableCharacter, Et as isRepeatingCharacter, _t as isSameDate, vt as isSameMonth, Tt as isTypeaheadCharacter, zr as optionalInject, U as provideElement, $e as removeTimezoneOffset, Y as shareId, Ct as sortElementsByAppearance, mt as sortRange, ft as splitDaysIntoWeeks, Dt as startsWith, un as useBemClass, fn as useCalendar, Ot as useCalendarGrid, pn as useDocumentOutline, H as useElements, Ir as useFuzzySearch, dn as useGlobalBemClass, Mt as useGrid, It as useListbox, kt as useNavigableElements, Pt as useRovingTabindex, Lr as useSharedIds, At as useSingleTabStop, Rr as useThemeSettingsStore, Xt as useTypeahead, vi as vAriaLabelledby, bi as vHidden };
3201
+ export { V as Move, Le as Moves, Re as PageMove, ze as PageMoves, Z as PeachyButton, si as PeachyCalendarTable, ci as PeachyCalendarTableCell, di as PeachyCalendarTableCellButton, gi as PeachyComboboxField, vi as PeachyComboboxInput, bi as PeachyComboboxSelectionList, wi as PeachyComboboxSelectionListItem, Di as PeachyCopyButton, ki as PeachyDialog, Ai as PeachyDialogButton, ji as PeachyDialogCloseButton, Fi as PeachyDialogDescription, Ii as PeachyDialogHeading, Ni as PeachyDialogPanel, Ri as PeachyDisclosure, zi as PeachyDisclosureButton, Gi as PeachyDisclosurePanel, Ji as PeachyDownloadLink, Xi as PeachyFieldDescription, Qi as PeachyFieldError, ea as PeachyFieldLabel, aa as PeachyGridTable, oa as PeachyGridTableCell, sa as PeachyGridTableHeadingCell, ca as PeachyGridTableRow, qi as PeachyLink, la as PeachyListboxField, pa as PeachyListboxGroup, ha as PeachyListboxGroupLabel, da as PeachyListboxInput, _a as PeachyListboxOption, ba as PeachySelectButton, va as PeachySelectField, Sa as PeachySeparator, Da as PeachySwitchButton, wa as PeachySwitchField, Ea as PeachySwitchStateLabel, ei as PeachyTable, ti as PeachyTableBody, ni as PeachyTableCell, ri as PeachyTableHead, ai as PeachyTableHeadingCell, oi as PeachyTableRow, Aa as PeachyTabs, Ma as PeachyTabsActionButton, Pa as PeachyTabsButton, Ia as PeachyTabsList, Ra as PeachyTabsPanel, Ha as PeachyTextField, Wa as PeachyTextFieldInput, za as PeachyTextareaField, Va as PeachyTextareaFieldInput, Zr as PeachyToolbar, Ei as PeachyVisuallyHidden, Ht as RovingTabindexKey, Yr as ToolbarContextKey, yt as Weekday, Ft as elementHasBlockScroll, ut as formatDate, dt as getDate, xt as getDaysOfCalendarMonth, bt as getDaysOfMonth, at as getFirstDayOfMonth, rt as getFirstDayOfWeek, st as getFirstDayOfYear, ot as getLastDayOfMonth, it as getLastDayOfTheWeek, ct as getLastDayOfYear, mt as getMonth, vt as getMonths, _t as getNameOfMonth, Ye as getNextDay, $e as getNextMonth, Ze as getNextWeek, tt as getNextYear, Xe as getPreviousDay, et as getPreviousMonth, Qe as getPreviousWeek, nt as getPreviousYear, pt as getWeekNumber, gt as getWeekdays, ht as getYear, Et as isDateInRange, Tt as isDateTimeInRange, jt as isDisabledElement, Mt as isFocusedHtmlElement, Nt as isFocusedRovingTabindexElement, At as isHtmlElement, Be as isMove, kt as isNullish, Ve as isPageMove, Lt as isPrintableCharacter, zt as isRepeatingCharacter, Dt as isSameDate, Ot as isSameMonth, Rt as isTypeaheadCharacter, He as navigateList, Ue as navigateListByPage, We as navigateListCustom, Jr as optionalInject, U as provideElement, lt as removeTimezoneOffset, It as scrollElementIntoArea, X as shareId, Pt as sortElementsByAppearance, wt as sortRange, St as splitDaysIntoWeeks, Bt as startsWith, vn as useBemClass, bn as useCalendar, xn as useCombobox, Cn as useDocumentOutline, Ge as useElementNavigation, H as useElements, Kr as useFuzzySearch, yn as useGlobalBemClass, Ut as useRovingTabindex, Y as useSharedIds, Vt as useSingleTabStop, qr as useThemeSettingsStore, an as useTypeahead, Vi as vAriaLabelledby, Ui as vHidden };