@wisemen/vue-core-actions 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./locales-BhOsAX80.js";
1
+ import { t as e } from "./locales-EOZWYHCs.js";
2
2
  import { computed as t, getCurrentInstance as n, getCurrentScope as r, inject as i, isRef as a, markRaw as o, nextTick as s, onBeforeUnmount as c, onMounted as l, onScopeDispose as u, onUnmounted as d, reactive as f, ref as p, shallowRef as m, toValue as h, unref as g, watch as _ } from "vue";
3
3
  import { useI18n as v } from "vue-i18n";
4
4
  import { defineStore as y } from "pinia";
@@ -320,50 +320,50 @@ function Te(e) {
320
320
  }
321
321
  //#endregion
322
322
  //#region src/utils/isPromise.util.ts
323
- function Ee(e) {
323
+ function j(e) {
324
324
  return typeof e?.then == "function";
325
325
  }
326
326
  //#endregion
327
327
  //#region src/utils/resolveActions.util.ts
328
- var De = /[\s\-_./]+/;
329
- async function Oe(e, t, n, r) {
330
- let i = t.searchInput.length, a = i >= 0, o = Me(e);
328
+ var Ee = /[\s\-_./]+/;
329
+ async function De(e, t, n, r) {
330
+ let i = t.searchInput.length, a = i >= 0, o = Ae(e);
331
331
  if (a) {
332
332
  let e = [], a = [], s = [...o];
333
333
  for (; s.length > 0;) {
334
334
  let n = s.shift();
335
- if (e.push(n), !j(n, t)) continue;
336
- let r = I(n, t), o = i >= (r?.minLength ?? 2);
335
+ if (e.push(n), !N(n, t)) continue;
336
+ let r = R(n, t), o = i >= (r?.minLength ?? 2);
337
337
  if (n.subActions !== void 0 && o) {
338
338
  let e = r?.maxResults ?? 99, i = n.subActions(t);
339
339
  if (Array.isArray(i)) {
340
- let t = Ne(i.slice(0, e), n);
340
+ let t = je(i.slice(0, e), n);
341
341
  s.push(...t);
342
- } else if (Ae(i)) {
343
- let t = Ne(i.actions.slice(0, e), n);
342
+ } else if (Oe(i)) {
343
+ let t = je(i.actions.slice(0, e), n);
344
344
  s.push(...t);
345
345
  } else {
346
346
  let t = n;
347
- a.push(async () => Ne(await je(i, e), t));
347
+ a.push(async () => je(await ke(i, e), t));
348
348
  }
349
349
  }
350
350
  }
351
351
  if (a.length > 0 && n !== void 0) {
352
- n(ke(e, t, r));
352
+ n(M(e, t, r));
353
353
  let i = [...e];
354
354
  return await Promise.all(a.map(async (e) => {
355
355
  let a = await e();
356
- i.push(...a), n(ke(i, t, r));
357
- })), ke(i, t, r);
356
+ i.push(...a), n(M(i, t, r));
357
+ })), M(i, t, r);
358
358
  }
359
359
  let c = (await Promise.all(a.map((e) => e()))).flat();
360
360
  o = [...e, ...c];
361
361
  }
362
- return ke(o, t, r);
362
+ return M(o, t, r);
363
363
  }
364
- function ke(e, t, n) {
364
+ function M(e, t, n) {
365
365
  let r = t.searchInput.length >= 0, i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = [];
366
- for (let n of e) if (j(n, t)) {
366
+ for (let n of e) if (N(n, t)) {
367
367
  if (n.id !== void 0) {
368
368
  if (a.has(n.id)) continue;
369
369
  a.add(n.id);
@@ -377,44 +377,44 @@ function ke(e, t, n) {
377
377
  if (r) {
378
378
  let e = o.map((e) => ({
379
379
  action: e,
380
- score: Pe(e, t.searchInput, t)
380
+ score: Me(e, t.searchInput, t)
381
381
  })).filter(({ score: e }) => e >= be);
382
382
  return e = e.toSorted((e, r) => {
383
383
  let i = e.action.parentAction === void 0 ? 0 : 1, a = r.action.parentAction === void 0 ? 0 : 1;
384
384
  if (i !== a) return i - a;
385
- let o = e.action.parentAction ?? n, s = r.action.parentAction ?? n, c = o?.showSelectedSubActionsFirst !== !1 && F(e.action, t) ? 0 : 1, l = s?.showSelectedSubActionsFirst !== !1 && F(r.action, t) ? 0 : 1;
385
+ let o = e.action.parentAction ?? n, s = r.action.parentAction ?? n, c = o?.showSelectedSubActionsFirst !== !1 && L(e.action, t) ? 0 : 1, l = s?.showSelectedSubActionsFirst !== !1 && L(r.action, t) ? 0 : 1;
386
386
  if (c !== l) return c - l;
387
387
  let u = r.score - e.score;
388
388
  if (Math.abs(u) > .05) return u;
389
- let d = M(e.action, t), f = M(r.action, t);
389
+ let d = P(e.action, t), f = P(r.action, t);
390
390
  return d === f ? u : d - f;
391
391
  }), e.map((e) => e.action);
392
392
  }
393
393
  let s = n?.showSelectedSubActionsFirst !== !1;
394
394
  return o.sort((e, n) => {
395
- let r = s && F(e, t) ? 0 : 1, i = s && F(n, t) ? 0 : 1;
396
- return r === i ? M(e, t) - M(n, t) : r - i;
395
+ let r = s && L(e, t) ? 0 : 1, i = s && L(n, t) ? 0 : 1;
396
+ return r === i ? P(e, t) - P(n, t) : r - i;
397
397
  });
398
398
  }
399
- function Ae(e) {
399
+ function Oe(e) {
400
400
  return typeof e == "object" && !!e && "actions" in e && "pagination" in e && Array.isArray(e.actions);
401
401
  }
402
- async function je(e, t) {
403
- if (Ee(e)) {
402
+ async function ke(e, t) {
403
+ if (j(e)) {
404
404
  let n = await e;
405
- return Ae(n) ? n.actions.slice(0, t) : n.slice(0, t);
405
+ return Oe(n) ? n.actions.slice(0, t) : n.slice(0, t);
406
406
  }
407
407
  if (e == null || !(Symbol.asyncIterator in e)) return [];
408
408
  let n = [];
409
409
  for await (let r of e) if (n.push(r), n.length >= t) break;
410
410
  return n;
411
411
  }
412
- function Me(e) {
412
+ function Ae(e) {
413
413
  let t = [];
414
414
  for (let n of e) typeof n == "function" ? t.push(...n()) : t.push(n);
415
415
  return t;
416
416
  }
417
- function Ne(e, t) {
417
+ function je(e, t) {
418
418
  let n = t.rootAction ?? t;
419
419
  return e.map((e) => ({
420
420
  ...e,
@@ -424,50 +424,50 @@ function Ne(e, t) {
424
424
  onlyVisibleThroughSearch: !0
425
425
  }));
426
426
  }
427
- function j(e, t) {
427
+ function N(e, t) {
428
428
  return !(!Ce.value && e.availableWhenUnauthenticated !== !0 || e.isApplicable !== void 0 && !e.isApplicable(t) || t.menuType === "commandMenu" && e.disabledReason !== void 0 && typeof e.disabledReason(t) == "string" || e.onlyVisibleThroughSearch && t.menuType !== void 0 && t.searchInput.length === 0);
429
429
  }
430
- function M(e, t) {
430
+ function P(e, t) {
431
431
  let n = e.group?.priority ?? null;
432
432
  return n === null ? 9999 : typeof n == "function" ? n(t) : n;
433
433
  }
434
- function Pe(e, t, n) {
434
+ function Me(e, t, n) {
435
435
  if (t.trim().length === 0 || e.skipFilterScoring) return 1;
436
- let r = P(e, n), i = Fe(e, n);
436
+ let r = I(e, n), i = Ne(e, n);
437
437
  if (e.keywordsExactMatch) {
438
438
  let t = Array.isArray(e.keywordsExactMatch) ? e.keywordsExactMatch : [e.keywordsExactMatch];
439
439
  if (t.some((e) => r.toLowerCase().includes(e.toLowerCase())) || t.some((e) => i.toLowerCase().includes(e.toLowerCase()))) return 1;
440
440
  }
441
- let a = Ie(r, t), o = Ie(i, t) * xe, s = Math.max(a, o);
441
+ let a = Pe(r, t), o = Pe(i, t) * xe, s = Math.max(a, o);
442
442
  return s < .24 && (r.toLowerCase().includes(t.toLowerCase()) ? s = .29 : i.toLowerCase().includes(t.toLowerCase()) && (s = .245)), e.parentAction && (s += Se), e.scoreOverride !== void 0 && (s = e.scoreOverride), e.sortPriority !== void 0 && (s -= e.sortPriority * 1e-4), s;
443
443
  }
444
- function Fe(e, t) {
444
+ function Ne(e, t) {
445
445
  let n = [], r = e.parentScoreInfluence ?? "all";
446
446
  if (r !== "none") {
447
447
  let i = e.parentAction;
448
448
  if (r === "all") for (; i;) {
449
- let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : P(i, t);
449
+ let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : I(i, t);
450
450
  n.push(e), i = i.parentAction;
451
451
  }
452
452
  if (r === "direct" && e.parentAction !== void 0) {
453
- let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : P(r, t);
453
+ let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : I(r, t);
454
454
  n.push(i);
455
455
  }
456
456
  }
457
- if (n.push(P(e, t)), e.keywords !== void 0) {
457
+ if (n.push(I(e, t)), e.keywords !== void 0) {
458
458
  let t = Array.isArray(e.keywords) ? e.keywords : [e.keywords];
459
459
  n.push(...t);
460
460
  }
461
461
  return n.join(" ");
462
462
  }
463
- function Ie(e, t) {
463
+ function Pe(e, t) {
464
464
  if (!e || !t) return 0;
465
465
  let n = e.toLowerCase().trim(), r = t.toLowerCase().trim();
466
466
  if (!r || n === r) return 1;
467
467
  if (n.startsWith(r)) return .92 - Math.min(.12, (n.length - r.length) * .002);
468
468
  let i = n.indexOf(r);
469
469
  if (i !== -1) return .82 - Math.min(.12, i * .004);
470
- let a = n.split(De);
470
+ let a = n.split(Ee);
471
471
  if (a.some((e) => e.startsWith(r))) return .68;
472
472
  let o = a.map((e) => e[0] ?? "").join("");
473
473
  if (o === r || o.startsWith(r)) return .6;
@@ -479,34 +479,34 @@ function Ie(e, t) {
479
479
  let h = d - u + 1, g = (1 - u / s) * .3 + c / h * .35 + c / s * .2 + Math.min(m, .15);
480
480
  return Math.min(.55, Math.max(0, g));
481
481
  }
482
- function N(e, t) {
482
+ function F(e, t) {
483
483
  return typeof e == "function" ? e(t) : e;
484
484
  }
485
- function P(e, t) {
485
+ function I(e, t) {
486
486
  return typeof e.name == "function" ? e.name(t) : e.name;
487
487
  }
488
- function Le(e, t) {
488
+ function Fe(e, t) {
489
489
  return typeof e.avatar == "function" ? e.avatar(t) : e.avatar ?? null;
490
490
  }
491
- function Re(e, t) {
491
+ function Ie(e, t) {
492
492
  return typeof e.hint == "function" ? e.hint(t) : e.hint ?? null;
493
493
  }
494
- function F(e, t) {
494
+ function L(e, t) {
495
495
  return typeof e.selected == "function" ? e.selected(t) : e.selected ?? null;
496
496
  }
497
- function I(e, t) {
497
+ function R(e, t) {
498
498
  return typeof e.searchSubActionsConfig == "function" ? e.searchSubActionsConfig(t) : e.searchSubActionsConfig ?? null;
499
499
  }
500
- function ze(e, t) {
500
+ function Le(e, t) {
501
501
  return typeof e.preview == "function" ? e.preview(t) : null;
502
502
  }
503
503
  //#endregion
504
504
  //#region src/composables/actionPreview.composable.ts
505
- function Be({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
505
+ function Re({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
506
506
  let i = p(!1), a = t(() => {
507
507
  if (e.value === null || !i.value) return null;
508
508
  let t = r.value.find((t) => t.id === e.value) ?? null;
509
- return t === null ? null : ze(t, n());
509
+ return t === null ? null : Le(t, n());
510
510
  });
511
511
  function o() {
512
512
  i.value = !0;
@@ -528,7 +528,7 @@ function Be({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
528
528
  }
529
529
  //#endregion
530
530
  //#region src/composables/isSelectorVisible.composable.ts
531
- function Ve(e) {
531
+ function ze(e) {
532
532
  let t = p(!1), n = null;
533
533
  function r() {
534
534
  t.value = document.querySelector(e) !== null;
@@ -544,15 +544,15 @@ function Ve(e) {
544
544
  }
545
545
  //#endregion
546
546
  //#region src/stores/actionManager.store.ts
547
- async function He(e, t, n) {
547
+ async function Be(e, t, n) {
548
548
  e.execute !== void 0 && (await e.execute(t), n?.onComplete?.());
549
549
  }
550
- function Ue(e) {
550
+ function Ve(e) {
551
551
  let t = /* @__PURE__ */ new Set();
552
552
  return e.filter((e) => t.has(e) ? !1 : (t.add(e), !0));
553
553
  }
554
- var L = y("actionManager", () => {
555
- let e = p([]), t = p([]), n = p({}), r = x(), i = b(), a = Ve("[data-dialog]:not([data-command-menu])");
554
+ var z = y("actionManager", () => {
555
+ let e = p([]), t = p([]), n = p({}), r = x(), i = b(), a = ze("[data-dialog]:not([data-command-menu])");
556
556
  function o(e) {
557
557
  n.value = {
558
558
  ...n.value,
@@ -570,7 +570,7 @@ var L = y("actionManager", () => {
570
570
  t.value = e;
571
571
  }
572
572
  function u(o) {
573
- let s = Ue([
573
+ let s = Ve([
574
574
  ...o.models ?? [],
575
575
  ...t.value,
576
576
  ...e.value
@@ -603,7 +603,7 @@ var L = y("actionManager", () => {
603
603
  }
604
604
  return {
605
605
  actionContext: u,
606
- executeAction: He,
606
+ executeAction: Be,
607
607
  focusedModels: e,
608
608
  metadata: n,
609
609
  registerMetadata: o,
@@ -615,44 +615,44 @@ var L = y("actionManager", () => {
615
615
  });
616
616
  //#endregion
617
617
  //#region src/utils/subActions.util.ts
618
- function R(e) {
618
+ function B(e) {
619
619
  return typeof e == "object" && !!e && "actions" in e && "pagination" in e && Array.isArray(e.actions);
620
620
  }
621
- function z(e, t, n) {
622
- return R(t) ? (e.id && (n[e.id] = t.pagination.nextOffset), t.actions) : (e.id && delete n[e.id], t);
621
+ function V(e, t, n) {
622
+ return B(t) ? (e.id && (n[e.id] = t.pagination.nextOffset), t.actions) : (e.id && delete n[e.id], t);
623
623
  }
624
- async function We(e, t, n, r = 297) {
624
+ async function He(e, t, n, r = 297) {
625
625
  if (e.subActions === void 0) return [];
626
626
  let i = e.subActions(t);
627
- if (Array.isArray(i) || R(i)) return z(e, i, n);
628
- if (Ee(i)) return z(e, await i, n);
627
+ if (Array.isArray(i) || B(i)) return V(e, i, n);
628
+ if (j(i)) return V(e, await i, n);
629
629
  let a = [];
630
630
  for await (let e of i) if (a.push(e), a.length >= r) break;
631
631
  return a;
632
632
  }
633
633
  //#endregion
634
634
  //#region src/composables/actionDropdownMenuContent.composable.ts
635
- function Ge({ actions: e, metadata: n, models: r, parentAction: i, scrollContainerRef: a }) {
636
- let o = v(), s = L(), c = p(null), l = p(""), u = p(""), d = p(!1), f = p([]), m = p({}), h = p(!0), g = 0, y = t(() => s.actionContext({
635
+ function Ue({ actions: e, metadata: n, models: r, parentAction: i, scrollContainerRef: a }) {
636
+ let o = v(), s = z(), c = p(null), l = p(""), u = p(""), d = p(!1), f = p([]), m = p({}), h = p(!0), g = 0, y = t(() => s.actionContext({
637
637
  menuType: "contextualMenu",
638
638
  metadata: n.value,
639
639
  models: r.value,
640
640
  searchInput: u.value
641
- })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = Be({
641
+ })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = Re({
642
642
  highlightedActionId: c,
643
643
  getContext: () => y.value,
644
644
  resolvedActions: f
645
645
  }), w = t(() => {
646
646
  if (i.value == null) return o.t("search");
647
- let e = I(i.value, y.value)?.placeholder;
647
+ let e = R(i.value, y.value)?.placeholder;
648
648
  return e === void 0 ? o.t("search") : typeof e == "function" ? e() : e;
649
649
  });
650
650
  async function T() {
651
651
  let t = ++g, n = y.value;
652
652
  try {
653
653
  let r = e.value;
654
- i.value?.subActions !== void 0 && (r = await We(i.value, n, m.value));
655
- let a = await Oe(r, n, (e) => {
654
+ i.value?.subActions !== void 0 && (r = await He(i.value, n, m.value));
655
+ let a = await De(r, n, (e) => {
656
656
  t !== g || e.length === 0 || (f.value = e);
657
657
  }, i.value ?? void 0);
658
658
  if (t !== g) return;
@@ -675,15 +675,15 @@ function Ge({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
675
675
  searchInput: l.value,
676
676
  subActionsMeta: { [e.id]: t }
677
677
  }), o = e.subActions(a), c;
678
- if (Array.isArray(o) || R(o)) c = o;
679
- else if (Ee(o)) c = await o;
678
+ if (Array.isArray(o) || B(o)) c = o;
679
+ else if (j(o)) c = await o;
680
680
  else {
681
681
  let e = [];
682
682
  for await (let t of o) e.push(t);
683
683
  f.value = [...f.value, ...e];
684
684
  return;
685
685
  }
686
- f.value = [...f.value, ...z(e, c, m.value)];
686
+ f.value = [...f.value, ...V(e, c, m.value)];
687
687
  }, {
688
688
  canLoadMore: () => {
689
689
  let e = i.value;
@@ -720,55 +720,63 @@ function Ge({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
720
720
  }
721
721
  //#endregion
722
722
  //#region src/composables/actionGroup.composable.ts
723
- var B = /* @__PURE__ */ function(e) {
724
- return e[e.HOVER = 1] = "HOVER", e[e.VIEW = 2] = "VIEW", e[e.MODEL = 3] = "MODEL", e[e.GENERAL = 4] = "GENERAL", e[e.NAVIGATION = 5] = "NAVIGATION", e[e.PREFERENCES = 6] = "PREFERENCES", e[e.ACCOUNT = 7] = "ACCOUNT", e[e.DEVELOPER = 8] = "DEVELOPER", e;
723
+ var We = /* @__PURE__ */ function(e) {
724
+ return e[e.HOVER = 1] = "HOVER", e[e.VIEW = 2] = "VIEW", e[e.MODEL = 3] = "MODEL", e[e.GENERAL = 4] = "GENERAL", e[e.NAVIGATION = 5] = "NAVIGATION", e[e.PREFERENCES = 6] = "PREFERENCES", e[e.SETTINGS = 7] = "SETTINGS", e[e.APPLICATION = 8] = "APPLICATION", e[e.ACCOUNT = 9] = "ACCOUNT", e[e.DEVELOPER = 10] = "DEVELOPER", e;
725
725
  }({});
726
- function Ke() {
726
+ function Ge() {
727
727
  let e = v();
728
728
  return {
729
729
  account: {
730
730
  name: e.t("action.group.account"),
731
- priority: B.ACCOUNT
731
+ priority: 9
732
+ },
733
+ application: {
734
+ name: e.t("action.group.application"),
735
+ priority: 8
732
736
  },
733
737
  developer: {
734
738
  name: e.t("action.group.developer"),
735
- priority: B.DEVELOPER
739
+ priority: 10
736
740
  },
737
741
  general: {
738
742
  name: e.t("action.group.general"),
739
- priority: B.GENERAL
743
+ priority: 4
740
744
  },
741
745
  navigation: {
742
746
  name: e.t("action.group.navigation"),
743
- priority: B.NAVIGATION
747
+ priority: 5
744
748
  },
745
749
  preferences: {
746
750
  name: e.t("action.group.preferences"),
747
- priority: B.PREFERENCES
751
+ priority: 6
752
+ },
753
+ settings: {
754
+ name: e.t("action.group.settings"),
755
+ priority: 7
748
756
  }
749
757
  };
750
758
  }
751
759
  //#endregion
752
760
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/HotkeysProviderContext.js
753
- var qe = Symbol("HotkeysContext");
754
- function Je() {
755
- return i(qe, null)?.defaultOptions ?? {};
761
+ var Ke = Symbol("HotkeysContext");
762
+ function qe() {
763
+ return i(Ke, null)?.defaultOptions ?? {};
756
764
  }
757
765
  //#endregion
758
766
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/constants.js
759
- function V() {
767
+ function H() {
760
768
  if (typeof navigator > "u") return "linux";
761
769
  let e = navigator.platform?.toLowerCase() ?? "", t = navigator.userAgent?.toLowerCase() ?? "";
762
770
  return e.includes("mac") || t.includes("mac") ? "mac" : e.includes("win") || t.includes("win") ? "windows" : "linux";
763
771
  }
764
- var H = [
772
+ var U = [
765
773
  "Control",
766
774
  "Alt",
767
775
  "Shift",
768
776
  "Meta"
769
777
  ];
770
- new Set(H);
771
- var U = {
778
+ new Set(U);
779
+ var W = {
772
780
  Control: "Control",
773
781
  Ctrl: "Control",
774
782
  control: "Control",
@@ -794,10 +802,10 @@ var U = {
794
802
  commandorcontrol: "Mod",
795
803
  mod: "Mod"
796
804
  };
797
- function Ye(e, t = V()) {
805
+ function Je(e, t = H()) {
798
806
  return e === "Mod" ? t === "mac" ? "Meta" : "Control" : e;
799
807
  }
800
- var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = new Set([
808
+ var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = new Set([
801
809
  "0",
802
810
  "1",
803
811
  "2",
@@ -808,7 +816,7 @@ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = n
808
816
  "7",
809
817
  "8",
810
818
  "9"
811
- ]), Qe = new Set([
819
+ ]), Ze = new Set([
812
820
  "F1",
813
821
  "F2",
814
822
  "F3",
@@ -821,7 +829,7 @@ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = n
821
829
  "F10",
822
830
  "F11",
823
831
  "F12"
824
- ]), $e = new Set([
832
+ ]), Qe = new Set([
825
833
  "ArrowUp",
826
834
  "ArrowDown",
827
835
  "ArrowLeft",
@@ -830,14 +838,14 @@ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = n
830
838
  "End",
831
839
  "PageUp",
832
840
  "PageDown"
833
- ]), et = new Set([
841
+ ]), $e = new Set([
834
842
  "Enter",
835
843
  "Escape",
836
844
  "Space",
837
845
  "Tab",
838
846
  "Backspace",
839
847
  "Delete"
840
- ]), tt = new Set([
848
+ ]), et = new Set([
841
849
  "/",
842
850
  "[",
843
851
  "]",
@@ -848,7 +856,7 @@ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = n
848
856
  ".",
849
857
  ";",
850
858
  "`"
851
- ]), nt = {
859
+ ]), tt = {
852
860
  Backquote: "`",
853
861
  Backslash: "\\",
854
862
  BracketLeft: "[",
@@ -861,14 +869,14 @@ var Xe = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Ze = n
861
869
  Slash: "/"
862
870
  };
863
871
  new Set([
872
+ ...Ye,
864
873
  ...Xe,
865
874
  ...Ze,
866
875
  ...Qe,
867
876
  ...$e,
868
- ...et,
869
- ...tt
877
+ ...et
870
878
  ]);
871
- var rt = {
879
+ var nt = {
872
880
  Esc: "Escape",
873
881
  esc: "Escape",
874
882
  escape: "Escape",
@@ -905,13 +913,13 @@ var rt = {
905
913
  pgup: "PageUp",
906
914
  pgdn: "PageDown"
907
915
  };
908
- function it(e) {
916
+ function rt(e) {
909
917
  return /^\p{Letter}$/u.test(e);
910
918
  }
911
- function W(e) {
919
+ function G(e) {
912
920
  if (!e) return "";
913
- if (e in rt) return rt[e];
914
- if (it(e)) {
921
+ if (e in nt) return nt[e];
922
+ if (rt(e)) {
915
923
  let t = e.toUpperCase();
916
924
  return t.length === 1 ? t : e;
917
925
  }
@@ -920,32 +928,32 @@ function W(e) {
920
928
  }
921
929
  //#endregion
922
930
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/parse.js
923
- function G(e, t = V()) {
931
+ function K(e, t = H()) {
924
932
  let n = e.split("+"), r = /* @__PURE__ */ new Set(), i = "";
925
933
  for (let e = 0; e < n.length; e++) {
926
934
  let a = n[e].trim();
927
- if (e === n.length - 1) i = W(a);
935
+ if (e === n.length - 1) i = G(a);
928
936
  else {
929
- let e = U[a] ?? U[a.toLowerCase()];
937
+ let e = W[a] ?? W[a.toLowerCase()];
930
938
  if (e) {
931
- let n = Ye(e, t);
939
+ let n = Je(e, t);
932
940
  r.add(n);
933
- } else n.length === 1 && (i = W(a));
941
+ } else n.length === 1 && (i = G(a));
934
942
  }
935
943
  }
936
- return !i && n.length > 0 && (i = W(n[n.length - 1].trim())), {
944
+ return !i && n.length > 0 && (i = G(n[n.length - 1].trim())), {
937
945
  key: i,
938
946
  ctrl: r.has("Control"),
939
947
  shift: r.has("Shift"),
940
948
  alt: r.has("Alt"),
941
949
  meta: r.has("Meta"),
942
- modifiers: H.filter((e) => r.has(e))
950
+ modifiers: U.filter((e) => r.has(e))
943
951
  };
944
952
  }
945
- function at(e, t = V()) {
953
+ function it(e, t = H()) {
946
954
  let n = e.ctrl ?? !1, r = e.shift ?? !1, i = e.alt ?? !1, a = e.meta ?? !1;
947
- e.mod && (Ye("Mod", t) === "Control" ? n = !0 : a = !0);
948
- let o = H.filter((e) => {
955
+ e.mod && (Je("Mod", t) === "Control" ? n = !0 : a = !0);
956
+ let o = U.filter((e) => {
949
957
  switch (e) {
950
958
  case "Control": return n;
951
959
  case "Shift": return r;
@@ -963,43 +971,43 @@ function at(e, t = V()) {
963
971
  modifiers: o
964
972
  };
965
973
  }
966
- function ot(e, t) {
974
+ function at(e, t) {
967
975
  let n = t === "mac" ? e.meta && !e.ctrl : e.ctrl && !e.meta, r = [];
968
976
  if (n) r.push("Mod"), e.alt && r.push("Alt"), e.shift && r.push("Shift");
969
- else for (let t of H) e.modifiers.includes(t) && r.push(t);
970
- return r.push(W(e.key)), r.join("+");
977
+ else for (let t of U) e.modifiers.includes(t) && r.push(t);
978
+ return r.push(G(e.key)), r.join("+");
971
979
  }
972
- function st(e, t = V()) {
973
- return ot(G(e, t), t);
980
+ function ot(e, t = H()) {
981
+ return at(K(e, t), t);
974
982
  }
975
- function ct(e, t = V()) {
976
- return ot(e, t);
983
+ function st(e, t = H()) {
984
+ return at(e, t);
977
985
  }
978
- function lt(e, t = V()) {
979
- return typeof e == "string" ? st(e, t) : ct(at(e, t), t);
986
+ function ct(e, t = H()) {
987
+ return typeof e == "string" ? ot(e, t) : st(it(e, t), t);
980
988
  }
981
- function ut(e) {
982
- return e in U || e.toLowerCase() in U;
989
+ function lt(e) {
990
+ return e in W || e.toLowerCase() in W;
983
991
  }
984
992
  //#endregion
985
993
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/format.js
986
- function dt(e) {
994
+ function ut(e) {
987
995
  return e.join(" ");
988
996
  }
989
- function ft(e) {
997
+ function dt(e) {
990
998
  let t = [];
991
- for (let n of H) e.modifiers.includes(n) && t.push(n);
999
+ for (let n of U) e.modifiers.includes(n) && t.push(n);
992
1000
  return t.push(e.key), t.join("+");
993
1001
  }
994
1002
  //#endregion
995
1003
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/match.js
996
- function K(e, t, n = V()) {
997
- let r = typeof t == "string" ? G(t, n) : t;
1004
+ function q(e, t, n = H()) {
1005
+ let r = typeof t == "string" ? K(t, n) : t;
998
1006
  if (e.ctrlKey !== r.ctrl || e.shiftKey !== r.shift || e.altKey !== r.alt || e.metaKey !== r.meta) return !1;
999
- let i = W(e.key), a = r.key;
1007
+ let i = G(e.key), a = r.key;
1000
1008
  if (i !== "Dead" && i.length === 1 && a.length === 1) {
1001
1009
  if (i.toUpperCase() === a.toUpperCase()) return !0;
1002
- if (it(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
1010
+ if (rt(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
1003
1011
  }
1004
1012
  if (e.code && (i === "Dead" || i.length === 1 && a.length === 1)) {
1005
1013
  if (e.code.startsWith("Key")) {
@@ -1010,13 +1018,13 @@ function K(e, t, n = V()) {
1010
1018
  let t = e.code.slice(5);
1011
1019
  if (t.length === 1 && /^[0-9]$/.test(t)) return t === a;
1012
1020
  }
1013
- return e.code in nt ? nt[e.code] === a : !1;
1021
+ return e.code in tt ? tt[e.code] === a : !1;
1014
1022
  }
1015
1023
  return i === a;
1016
1024
  }
1017
1025
  //#endregion
1018
1026
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/manager.utils.js
1019
- var pt = {
1027
+ var ft = {
1020
1028
  preventDefault: !0,
1021
1029
  stopPropagation: !0,
1022
1030
  eventType: "keydown",
@@ -1024,10 +1032,10 @@ var pt = {
1024
1032
  ignoreInputs: !0,
1025
1033
  conflictBehavior: "warn"
1026
1034
  };
1027
- function mt(e) {
1035
+ function pt(e) {
1028
1036
  return !(e.ctrl || e.meta || e.key === "Escape");
1029
1037
  }
1030
- function ht(e) {
1038
+ function mt(e) {
1031
1039
  if (!e) return !1;
1032
1040
  if (e instanceof HTMLInputElement) {
1033
1041
  let t = e.type.toLowerCase();
@@ -1035,17 +1043,17 @@ function ht(e) {
1035
1043
  }
1036
1044
  return !!(e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement || e instanceof HTMLElement && e.isContentEditable);
1037
1045
  }
1038
- function gt(e) {
1046
+ function ht(e) {
1039
1047
  return typeof document > "u" ? null : typeof Document < "u" && e instanceof Document || typeof Node < "u" && e.nodeType === Node.DOCUMENT_NODE ? e.activeElement : typeof HTMLElement < "u" && e instanceof HTMLElement ? e.ownerDocument.activeElement ?? null : e.document.activeElement ?? null;
1040
1048
  }
1041
- function _t(e, t, n) {
1042
- let r = gt(t);
1043
- return r && ht(r) && r !== n || e.composedPath().some((e) => ht(e) && e !== n) ? !0 : ht(e.target) && e.target !== n;
1049
+ function gt(e, t, n) {
1050
+ let r = ht(t);
1051
+ return r && mt(r) && r !== n || e.composedPath().some((e) => mt(e) && e !== n) ? !0 : mt(e.target) && e.target !== n;
1044
1052
  }
1045
- function vt(e, t) {
1053
+ function _t(e, t) {
1046
1054
  return t === document || t === window ? e.currentTarget === t || e.currentTarget === document.documentElement : t === window ? e.currentTarget === window || e.currentTarget === document || e.currentTarget === document.documentElement : !!(t instanceof HTMLElement && (e.currentTarget === t || e.target instanceof Node && t.contains(e.target)));
1047
1055
  }
1048
- function yt(e, t, n, r) {
1056
+ function vt(e, t, n, r) {
1049
1057
  if (n !== "allow") {
1050
1058
  if (n === "warn") {
1051
1059
  console.warn(`'${t}' is already registered. Multiple handlers will be triggered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to suppress this warning.`);
@@ -1057,11 +1065,11 @@ function yt(e, t, n, r) {
1057
1065
  }
1058
1066
  //#endregion
1059
1067
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/alien.js
1060
- var q = /* @__PURE__ */ function(e) {
1068
+ var J = /* @__PURE__ */ function(e) {
1061
1069
  return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
1062
1070
  }({});
1063
1071
  /* @__NO_SIDE_EFFECTS__ */
1064
- function bt({ update: e, notify: t, unwatched: n }) {
1072
+ function yt({ update: e, notify: t, unwatched: n }) {
1065
1073
  return {
1066
1074
  link: r,
1067
1075
  unlink: i,
@@ -1098,7 +1106,7 @@ function bt({ update: e, notify: t, unwatched: n }) {
1098
1106
  let n = e.nextSub, r;
1099
1107
  top: do {
1100
1108
  let i = e.sub, a = i.flags;
1101
- if (a & (q.RecursedCheck | q.Recursed | q.Dirty | q.Pending) ? a & (q.RecursedCheck | q.Recursed) ? a & q.RecursedCheck ? !(a & (q.Dirty | q.Pending)) && c(e, i) ? (i.flags = a | (q.Recursed | q.Pending), a &= q.Mutable) : a = q.None : i.flags = a & ~q.Recursed | q.Pending : a = q.None : i.flags = a | q.Pending, a & q.Watching && t(i), a & q.Mutable) {
1109
+ if (a & (J.RecursedCheck | J.Recursed | J.Dirty | J.Pending) ? a & (J.RecursedCheck | J.Recursed) ? a & J.RecursedCheck ? !(a & (J.Dirty | J.Pending)) && c(e, i) ? (i.flags = a | (J.Recursed | J.Pending), a &= J.Mutable) : a = J.None : i.flags = a & ~J.Recursed | J.Pending : a = J.None : i.flags = a | J.Pending, a & J.Watching && t(i), a & J.Mutable) {
1102
1110
  let t = i.subs;
1103
1111
  if (t !== void 0) {
1104
1112
  let i = (e = t).nextSub;
@@ -1124,13 +1132,13 @@ function bt({ update: e, notify: t, unwatched: n }) {
1124
1132
  let r, i = 0, a = !1;
1125
1133
  top: do {
1126
1134
  let o = t.dep, c = o.flags;
1127
- if (n.flags & q.Dirty) a = !0;
1128
- else if ((c & (q.Mutable | q.Dirty)) === (q.Mutable | q.Dirty)) {
1135
+ if (n.flags & J.Dirty) a = !0;
1136
+ else if ((c & (J.Mutable | J.Dirty)) === (J.Mutable | J.Dirty)) {
1129
1137
  if (e(o)) {
1130
1138
  let e = o.subs;
1131
1139
  e.nextSub !== void 0 && s(e), a = !0;
1132
1140
  }
1133
- } else if ((c & (q.Mutable | q.Pending)) === (q.Mutable | q.Pending)) {
1141
+ } else if ((c & (J.Mutable | J.Pending)) === (J.Mutable | J.Pending)) {
1134
1142
  (t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
1135
1143
  value: t,
1136
1144
  prev: r
@@ -1152,7 +1160,7 @@ function bt({ update: e, notify: t, unwatched: n }) {
1152
1160
  continue;
1153
1161
  }
1154
1162
  a = !1;
1155
- } else n.flags &= ~q.Pending;
1163
+ } else n.flags &= ~J.Pending;
1156
1164
  n = t.sub;
1157
1165
  let c = t.nextDep;
1158
1166
  if (c !== void 0) {
@@ -1166,7 +1174,7 @@ function bt({ update: e, notify: t, unwatched: n }) {
1166
1174
  function s(e) {
1167
1175
  do {
1168
1176
  let n = e.sub, r = n.flags;
1169
- (r & (q.Pending | q.Dirty)) === q.Pending && (n.flags = r | q.Dirty, (r & (q.Watching | q.RecursedCheck)) === q.Watching && t(n));
1177
+ (r & (J.Pending | J.Dirty)) === J.Pending && (n.flags = r | J.Dirty, (r & (J.Watching | J.RecursedCheck)) === J.Watching && t(n));
1170
1178
  } while ((e = e.nextSub) !== void 0);
1171
1179
  }
1172
1180
  function c(e, t) {
@@ -1180,7 +1188,7 @@ function bt({ update: e, notify: t, unwatched: n }) {
1180
1188
  }
1181
1189
  //#endregion
1182
1190
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/atom.js
1183
- function xt(e, t, n) {
1191
+ function bt(e, t, n) {
1184
1192
  let r = typeof e == "object", i = r ? e : void 0;
1185
1193
  return {
1186
1194
  next: (r ? e.next : e)?.bind(i),
@@ -1188,28 +1196,28 @@ function xt(e, t, n) {
1188
1196
  complete: (r ? e.complete : n)?.bind(i)
1189
1197
  };
1190
1198
  }
1191
- var St = [], J = 0, { link: Ct, unlink: wt, propagate: Tt, checkDirty: Et, shallowPropagate: Dt } = /* @__PURE__ */ bt({
1199
+ var xt = [], Y = 0, { link: St, unlink: Ct, propagate: wt, checkDirty: Tt, shallowPropagate: Et } = /* @__PURE__ */ yt({
1192
1200
  update(e) {
1193
1201
  return e._update();
1194
1202
  },
1195
1203
  notify(e) {
1196
- St[Ot++] = e, e.flags &= ~q.Watching;
1204
+ xt[Dt++] = e, e.flags &= ~J.Watching;
1197
1205
  },
1198
1206
  unwatched(e) {
1199
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = q.Mutable | q.Dirty, Z(e));
1207
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = J.Mutable | J.Dirty, kt(e));
1200
1208
  }
1201
- }), Y = 0, Ot = 0, X, kt = 0;
1202
- function Z(e) {
1209
+ }), X = 0, Dt = 0, Z, Ot = 0;
1210
+ function kt(e) {
1203
1211
  let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
1204
- for (; n !== void 0;) n = wt(n, e);
1212
+ for (; n !== void 0;) n = Ct(n, e);
1205
1213
  }
1206
1214
  function At() {
1207
- if (!(kt > 0)) {
1208
- for (; Y < Ot;) {
1209
- let e = St[Y];
1210
- St[Y++] = void 0, e.notify();
1215
+ if (!(Ot > 0)) {
1216
+ for (; X < Dt;) {
1217
+ let e = xt[X];
1218
+ xt[X++] = void 0, e.notify();
1211
1219
  }
1212
- Y = 0, Ot = 0;
1220
+ X = 0, Dt = 0;
1213
1221
  }
1214
1222
  }
1215
1223
  function jt(e, t) {
@@ -1219,12 +1227,12 @@ function jt(e, t) {
1219
1227
  subsTail: void 0,
1220
1228
  deps: void 0,
1221
1229
  depsTail: void 0,
1222
- flags: n ? q.None : q.Mutable,
1230
+ flags: n ? J.None : J.Mutable,
1223
1231
  get() {
1224
- return X !== void 0 && Ct(i, X, J), i._snapshot;
1232
+ return Z !== void 0 && St(i, Z, Y), i._snapshot;
1225
1233
  },
1226
1234
  subscribe(e) {
1227
- let t = xt(e), n = { current: !1 }, r = Mt(() => {
1235
+ let t = bt(e), n = { current: !1 }, r = Mt(() => {
1228
1236
  i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
1229
1237
  });
1230
1238
  return { unsubscribe: () => {
@@ -1232,55 +1240,55 @@ function jt(e, t) {
1232
1240
  } };
1233
1241
  },
1234
1242
  _update(e) {
1235
- let a = X, o = t?.compare ?? Object.is;
1236
- if (n) X = i, ++J, i.depsTail = void 0;
1243
+ let a = Z, o = t?.compare ?? Object.is;
1244
+ if (n) Z = i, ++Y, i.depsTail = void 0;
1237
1245
  else if (e === void 0) return !1;
1238
- n && (i.flags = q.Mutable | q.RecursedCheck);
1246
+ n && (i.flags = J.Mutable | J.RecursedCheck);
1239
1247
  try {
1240
1248
  let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
1241
1249
  return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
1242
1250
  } finally {
1243
- X = a, n && (i.flags &= ~q.RecursedCheck), Z(i);
1251
+ Z = a, n && (i.flags &= ~J.RecursedCheck), kt(i);
1244
1252
  }
1245
1253
  }
1246
1254
  };
1247
- return n ? (i.flags = q.Mutable | q.Dirty, i.get = function() {
1255
+ return n ? (i.flags = J.Mutable | J.Dirty, i.get = function() {
1248
1256
  let e = i.flags;
1249
- if (e & q.Dirty || e & q.Pending && Et(i.deps, i)) {
1257
+ if (e & J.Dirty || e & J.Pending && Tt(i.deps, i)) {
1250
1258
  if (i._update()) {
1251
1259
  let e = i.subs;
1252
- e !== void 0 && Dt(e);
1260
+ e !== void 0 && Et(e);
1253
1261
  }
1254
- } else e & q.Pending && (i.flags = e & ~q.Pending);
1255
- return X !== void 0 && Ct(i, X, J), i._snapshot;
1262
+ } else e & J.Pending && (i.flags = e & ~J.Pending);
1263
+ return Z !== void 0 && St(i, Z, Y), i._snapshot;
1256
1264
  }) : i.set = function(e) {
1257
1265
  if (i._update(e)) {
1258
1266
  let e = i.subs;
1259
- e !== void 0 && (Tt(e), Dt(e), At());
1267
+ e !== void 0 && (wt(e), Et(e), At());
1260
1268
  }
1261
1269
  }, i;
1262
1270
  }
1263
1271
  function Mt(e) {
1264
1272
  let t = () => {
1265
- let t = X;
1266
- X = n, ++J, n.depsTail = void 0, n.flags = q.Watching | q.RecursedCheck;
1273
+ let t = Z;
1274
+ Z = n, ++Y, n.depsTail = void 0, n.flags = J.Watching | J.RecursedCheck;
1267
1275
  try {
1268
1276
  return e();
1269
1277
  } finally {
1270
- X = t, n.flags &= ~q.RecursedCheck, Z(n);
1278
+ Z = t, n.flags &= ~J.RecursedCheck, kt(n);
1271
1279
  }
1272
1280
  }, n = {
1273
1281
  deps: void 0,
1274
1282
  depsTail: void 0,
1275
1283
  subs: void 0,
1276
1284
  subsTail: void 0,
1277
- flags: q.Watching | q.RecursedCheck,
1285
+ flags: J.Watching | J.RecursedCheck,
1278
1286
  notify() {
1279
1287
  let e = this.flags;
1280
- e & q.Dirty || e & q.Pending && Et(this.deps, this) ? t() : this.flags = q.Watching;
1288
+ e & J.Dirty || e & J.Pending && Tt(this.deps, this) ? t() : this.flags = J.Watching;
1281
1289
  },
1282
1290
  stop() {
1283
- this.flags = q.None, this.depsTail = void 0, Z(this);
1291
+ this.flags = J.None, this.depsTail = void 0, kt(this);
1284
1292
  }
1285
1293
  };
1286
1294
  return t(), n;
@@ -1301,7 +1309,7 @@ var Nt = class {
1301
1309
  return this.state;
1302
1310
  }
1303
1311
  subscribe(e) {
1304
- return this.atom.subscribe(xt(e));
1312
+ return this.atom.subscribe(bt(e));
1305
1313
  }
1306
1314
  }, Pt = 0;
1307
1315
  function Ft() {
@@ -1313,7 +1321,7 @@ var It = class e {
1313
1321
  #n = /* @__PURE__ */ new Map();
1314
1322
  #r = /* @__PURE__ */ new Map();
1315
1323
  constructor() {
1316
- this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#t = V();
1324
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#t = H();
1317
1325
  }
1318
1326
  static getInstance() {
1319
1327
  return e.#e ||= new e(), e.#e;
@@ -1339,15 +1347,15 @@ var It = class e {
1339
1347
  }
1340
1348
  };
1341
1349
  }
1342
- let r = Ft(), i = n.platform ?? this.#t, a = typeof e == "string" ? G(e, i) : at(e, i), o = typeof e == "string" ? e : ft(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
1343
- l && yt(l.id, o, c, (e) => this.#i(e));
1344
- let u = n.ignoreInputs ?? mt(a), d = {
1350
+ let r = Ft(), i = n.platform ?? this.#t, a = typeof e == "string" ? K(e, i) : it(e, i), o = typeof e == "string" ? e : dt(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
1351
+ l && vt(l.id, o, c, (e) => this.#i(e));
1352
+ let u = n.ignoreInputs ?? pt(a), d = {
1345
1353
  id: r,
1346
1354
  hotkey: o,
1347
1355
  parsedHotkey: a,
1348
1356
  callback: t,
1349
1357
  options: {
1350
- ...pt,
1358
+ ...ft,
1351
1359
  requireReset: !1,
1352
1360
  ...n,
1353
1361
  platform: i,
@@ -1422,10 +1430,10 @@ var It = class e {
1422
1430
  let r = this.#r.get(t);
1423
1431
  if (r) for (let i of r) {
1424
1432
  let r = this.registrations.state.get(i);
1425
- if (r && vt(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && _t(e, t, r.target))) if (n === "keydown") {
1433
+ if (r && _t(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && gt(e, t, r.target))) if (n === "keydown") {
1426
1434
  if (r.options.eventType !== "keydown") continue;
1427
- K(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
1428
- } else r.options.eventType === "keyup" && K(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
1435
+ q(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
1436
+ } else r.options.eventType === "keyup" && q(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
1429
1437
  }
1430
1438
  }
1431
1439
  #c(e, t) {
@@ -1451,7 +1459,7 @@ var It = class e {
1451
1459
  return null;
1452
1460
  }
1453
1461
  #f(e, t) {
1454
- let n = e.parsedHotkey, r = W(t.key), i = n.key.length === 1 ? n.key.toUpperCase() : n.key;
1462
+ let n = e.parsedHotkey, r = G(t.key), i = n.key.length === 1 ? n.key.toUpperCase() : n.key;
1455
1463
  return !!((r.length === 1 ? r.toUpperCase() : r) === i || n.ctrl && r === "Control" || n.shift && r === "Shift" || n.alt && r === "Alt" || n.meta && r === "Meta");
1456
1464
  }
1457
1465
  triggerRegistration(e) {
@@ -1515,7 +1523,7 @@ var Ut = class e {
1515
1523
  #r = /* @__PURE__ */ new Map();
1516
1524
  #i;
1517
1525
  constructor() {
1518
- this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#i = V();
1526
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#i = H();
1519
1527
  }
1520
1528
  static getInstance() {
1521
1529
  return e.#e ||= new e(), e.#e;
@@ -1528,15 +1536,15 @@ var Ut = class e {
1528
1536
  }
1529
1537
  register(e, t, n = {}) {
1530
1538
  if (e.length === 0) throw Error("Sequence must contain at least one hotkey");
1531
- let r = Bt(), i = n.platform ?? this.#i, a = e.map((e) => G(e, i)), o = n.target ?? (typeof document < "u" ? document : {}), s = n.conflictBehavior ?? "warn", c = this.#f(e, o);
1532
- c && yt(c.id, dt(e), s, (e) => this.#o(e));
1533
- let l = a[0], u = n.ignoreInputs ?? mt(l), d = {
1539
+ let r = Bt(), i = n.platform ?? this.#i, a = e.map((e) => K(e, i)), o = n.target ?? (typeof document < "u" ? document : {}), s = n.conflictBehavior ?? "warn", c = this.#f(e, o);
1540
+ c && vt(c.id, ut(e), s, (e) => this.#o(e));
1541
+ let l = a[0], u = n.ignoreInputs ?? pt(l), d = {
1534
1542
  id: r,
1535
1543
  sequence: e,
1536
1544
  parsedSequence: a,
1537
1545
  callback: t,
1538
1546
  options: {
1539
- ...pt,
1547
+ ...ft,
1540
1548
  timeout: Rt,
1541
1549
  ...n,
1542
1550
  platform: i,
@@ -1611,20 +1619,20 @@ var Ut = class e {
1611
1619
  };
1612
1620
  }
1613
1621
  #d(e, t, n) {
1614
- if (ut(W(e.key))) return;
1622
+ if (lt(G(e.key))) return;
1615
1623
  let r = this.#r.get(t);
1616
1624
  if (!r) return;
1617
1625
  let i = Date.now();
1618
1626
  registrationIds: for (let a of r) {
1619
1627
  let r = this.#t.get(a);
1620
- if (!r || !vt(e, t) || !r.options.enabled) continue;
1621
- if (r.options.ignoreInputs !== !1 && _t(e, t, r.target)) continue registrationIds;
1628
+ if (!r || !_t(e, t) || !r.options.enabled) continue;
1629
+ if (r.options.ignoreInputs !== !1 && gt(e, t, r.target)) continue registrationIds;
1622
1630
  if (r.options.eventType !== n) continue;
1623
1631
  let o = r.options.timeout ?? 1e3;
1624
1632
  r.currentIndex > 0 && i - r.lastKeyTime > o && (r.currentIndex = 0, this.#a(r));
1625
1633
  let s = r.parsedSequence[r.currentIndex];
1626
1634
  if (s) {
1627
- if (K(e, s, r.options.platform)) if (r.lastKeyTime = i, r.currentIndex++, r.currentIndex >= r.parsedSequence.length) {
1635
+ if (q(e, s, r.options.platform)) if (r.lastKeyTime = i, r.currentIndex++, r.currentIndex >= r.parsedSequence.length) {
1628
1636
  r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation();
1629
1637
  let t = {
1630
1638
  hotkey: r.sequence.join(" "),
@@ -1634,7 +1642,7 @@ var Ut = class e {
1634
1642
  } else this.#a(r);
1635
1643
  else if (r.currentIndex > 0) {
1636
1644
  let t = r.parsedSequence[0];
1637
- K(e, t, r.options.platform) ? (r.currentIndex = 1, r.lastKeyTime = i) : r.currentIndex = 0, this.#a(r);
1645
+ q(e, t, r.options.platform) ? (r.currentIndex = 1, r.lastKeyTime = i) : r.currentIndex = 0, this.#a(r);
1638
1646
  }
1639
1647
  }
1640
1648
  }
@@ -1682,14 +1690,14 @@ function Wt() {
1682
1690
  //#endregion
1683
1691
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/useHotkeys.js
1684
1692
  function Gt(e, t = {}) {
1685
- let n = Je(), r = Lt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1693
+ let n = qe(), r = Lt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1686
1694
  let r = Q(e), i = Q(t);
1687
1695
  return r.map((e, t) => {
1688
1696
  let r = Q(e.hotkey), a = e.options ? Q(e.options) : {}, o = {
1689
1697
  ...n.hotkey,
1690
1698
  ...i,
1691
1699
  ...a
1692
- }, s = lt(r, o.platform ?? V()), c = o.enabled === void 0 ? void 0 : Q(o.enabled), l = o.target === void 0 ? void 0 : Q(o.target);
1700
+ }, s = ct(r, o.platform ?? H()), c = o.enabled === void 0 ? void 0 : Q(o.enabled), l = o.target === void 0 ? void 0 : Q(o.target);
1693
1701
  return {
1694
1702
  index: t,
1695
1703
  hotkeyString: s,
@@ -1749,14 +1757,14 @@ function Q(e) {
1749
1757
  //#endregion
1750
1758
  //#region ../../../node_modules/.pnpm/@tanstack+vue-hotkeys@0.10.0_vue@3.5.27_typescript@5.9.3_/node_modules/@tanstack/vue-hotkeys/dist/useHotkeySequences.js
1751
1759
  function Kt(e, t = {}) {
1752
- let n = Je(), r = Wt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1760
+ let n = qe(), r = Wt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1753
1761
  let r = $(e), i = $(t);
1754
1762
  return r.map((e, t) => {
1755
1763
  let r = $(e.sequence), a = e.options ? $(e.options) : {}, o = {
1756
1764
  ...n.hotkeySequence,
1757
1765
  ...i,
1758
1766
  ...a
1759
- }, s = dt(r), c = o.enabled === void 0 ? void 0 : $(o.enabled), l = o.target === void 0 ? void 0 : $(o.target);
1767
+ }, s = ut(r), c = o.enabled === void 0 ? void 0 : $(o.enabled), l = o.target === void 0 ? void 0 : $(o.target);
1760
1768
  return {
1761
1769
  index: t,
1762
1770
  resolvedSequence: r,
@@ -1859,13 +1867,13 @@ function Yt(e) {
1859
1867
  ].filter(Boolean).join("+");
1860
1868
  }
1861
1869
  function Xt(e) {
1862
- let t = qt(), n = L();
1870
+ let t = qt(), n = z();
1863
1871
  function r(t) {
1864
1872
  return () => {
1865
1873
  let r = e ? e() : n.actionContext({});
1866
1874
  for (let e = t.length - 1; e >= 0; e--) {
1867
1875
  let n = t[e];
1868
- if (!j(n, r)) continue;
1876
+ if (!N(n, r)) continue;
1869
1877
  let i = n.execute?.(r);
1870
1878
  i instanceof Promise && i.catch((e) => {
1871
1879
  console.error("[useActionShortcuts] action.execute threw:", e);
@@ -1940,9 +1948,9 @@ function Zt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1940
1948
  let n = g(), r;
1941
1949
  if (o.value.length > 0) {
1942
1950
  let e = o.value.at(-1);
1943
- r = e.parentAction.subActions === void 0 ? e.actions : await We(e.parentAction, n, d.value);
1951
+ r = e.parentAction.subActions === void 0 ? e.actions : await He(e.parentAction, n, d.value);
1944
1952
  } else r = e;
1945
- let i = await Oe(r, n, (e) => {
1953
+ let i = await De(r, n, (e) => {
1946
1954
  t === f && e.length > 0 && (u.value = e);
1947
1955
  }, o.value.at(-1)?.parentAction);
1948
1956
  t === f && (u.value = i);
@@ -1975,15 +1983,15 @@ function Zt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1975
1983
  let t = d.value[e.id];
1976
1984
  if (t == null) return;
1977
1985
  let n = g({ [e.id]: t }), r = e.subActions(n), i;
1978
- if (Array.isArray(r) || R(r)) i = r;
1979
- else if (Ee(r)) i = await r;
1986
+ if (Array.isArray(r) || B(r)) i = r;
1987
+ else if (j(r)) i = await r;
1980
1988
  else {
1981
1989
  let e = [];
1982
1990
  for await (let t of r) e.push(t);
1983
1991
  u.value = [...u.value, ...e];
1984
1992
  return;
1985
1993
  }
1986
- u.value = [...u.value, ...z(e, i, d.value)];
1994
+ u.value = [...u.value, ...V(e, i, d.value)];
1987
1995
  }, {
1988
1996
  canLoadMore: () => {
1989
1997
  let e = o.value.at(-1)?.parentAction;
@@ -2023,13 +2031,13 @@ function $t({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, ma
2023
2031
  let e = n();
2024
2032
  return o.value.filter((e) => e.parentAction.forceAsRootMenu !== !0).map((t) => {
2025
2033
  let n = t.parentAction;
2026
- return n.nameAsParent === void 0 ? N(n.name, e) : typeof n.nameAsParent == "function" ? n.nameAsParent(e) : n.nameAsParent;
2034
+ return n.nameAsParent === void 0 ? F(n.name, e) : typeof n.nameAsParent == "function" ? n.nameAsParent(e) : n.nameAsParent;
2027
2035
  });
2028
2036
  }), _ = t(() => {
2029
2037
  if (h.value === null) return f.t("type_a_command_or_search");
2030
- let e = I(h.value, n())?.placeholder;
2038
+ let e = R(h.value, n())?.placeholder;
2031
2039
  return e === void 0 ? f.t("search") : typeof e == "function" ? e() : e;
2032
- }), { preview: y, onKeyDown: b } = Be({
2040
+ }), { preview: y, onKeyDown: b } = Re({
2033
2041
  highlightedActionId: m,
2034
2042
  getContext: n,
2035
2043
  resolvedActions: c
@@ -2072,7 +2080,7 @@ function en(e, t) {
2072
2080
  let n = [], r = e.parentAction ?? null;
2073
2081
  for (; r !== null;) {
2074
2082
  if (r.forceAsRootMenu === !0) return n;
2075
- let e = r.nameAsParent === void 0 ? P(r, t) : N(r.nameAsParent, t);
2083
+ let e = r.nameAsParent === void 0 ? I(r, t) : F(r.nameAsParent, t);
2076
2084
  n.unshift({
2077
2085
  icon: r.icon?.(t) ?? null,
2078
2086
  label: e
@@ -2083,7 +2091,7 @@ function en(e, t) {
2083
2091
  //#endregion
2084
2092
  //#region src/composables/focusedModels.composable.ts
2085
2093
  function tn(e) {
2086
- let t = L(), n = p(!1);
2094
+ let t = z(), n = p(!1);
2087
2095
  function r() {
2088
2096
  n.value = !0, t.setFocusedModels([...t.focusedModels, ...e.value]);
2089
2097
  }
@@ -2129,7 +2137,7 @@ function nn(e, t, n = !1) {
2129
2137
  //#endregion
2130
2138
  //#region src/composables/activeModels.composable.ts
2131
2139
  function rn(e, t) {
2132
- let n = L();
2140
+ let n = z();
2133
2141
  function r() {
2134
2142
  t === "focused" ? n.setFocusedModels([...n.focusedModels, ...e.value]) : n.setViewModels([...n.viewModels, ...e.value]);
2135
2143
  }
@@ -2151,16 +2159,16 @@ function an(e) {
2151
2159
  //#region src/utils/commandMenuGroups.util.ts
2152
2160
  var on = 0, sn = /* @__PURE__ */ new WeakMap();
2153
2161
  function cn(e, t) {
2154
- return e === void 0 ? "no-group" : e.name ? N(e.name, t) : (sn.has(e) || sn.set(e, `unnamed-${on++}`), sn.get(e));
2162
+ return e === void 0 ? "no-group" : e.name ? F(e.name, t) : (sn.has(e) || sn.set(e, `unnamed-${on++}`), sn.get(e));
2155
2163
  }
2156
2164
  function ln(e, t) {
2157
2165
  let n = /* @__PURE__ */ new Map();
2158
2166
  for (let r of e) {
2159
2167
  let e = r.group, i = cn(e, t), a = n.get(i);
2160
2168
  if (a === void 0) {
2161
- let r = e?.name ? N(e.name, t) : null;
2169
+ let r = e?.name ? F(e.name, t) : null;
2162
2170
  a = {
2163
- category: e?.category ? N(e.category, t) : null,
2171
+ category: e?.category ? F(e.category, t) : null,
2164
2172
  icon: e?.icon?.(t) ?? null,
2165
2173
  items: [],
2166
2174
  key: i,
@@ -2173,4 +2181,4 @@ function ln(e, t) {
2173
2181
  return [...n.values()];
2174
2182
  }
2175
2183
  //#endregion
2176
- export { B as GroupPriority, e as actionsLocales, Oe as applicableActions, ln as buildCommandMenuGroups, Te as createAction, Ce as isAuthenticated, R as isSubActionsWithMeta, Le as resolveActionAvatar, en as resolveActionBreadcrumbs, Re as resolveActionHint, P as resolveActionName, ze as resolveActionPreview, F as resolveActionSelected, N as resolveActionValue, j as resolveApplicable, I as resolveSearchSubActionsConfig, We as resolveSubActions, we as setIsAuthenticated, z as storeSubActionsPagination, Ge as useActionDropdownMenuContent, Ke as useActionGroup, L as useActionManagerStore, Be as useActionPreview, qt as useActionRegistryStore, Xt as useActionShortcuts, Zt as useCommandMenuActions, Qt as useCommandMenuAnimation, $t as useCommandMenuNavigation, tn as useFocusedModels, nn as useTemporaryActions, an as useViewModels };
2184
+ export { We as GroupPriority, e as actionsLocales, De as applicableActions, ln as buildCommandMenuGroups, Te as createAction, Ce as isAuthenticated, B as isSubActionsWithMeta, Fe as resolveActionAvatar, en as resolveActionBreadcrumbs, Ie as resolveActionHint, I as resolveActionName, Le as resolveActionPreview, L as resolveActionSelected, F as resolveActionValue, N as resolveApplicable, R as resolveSearchSubActionsConfig, He as resolveSubActions, we as setIsAuthenticated, V as storeSubActionsPagination, Ue as useActionDropdownMenuContent, Ge as useActionGroup, z as useActionManagerStore, Re as useActionPreview, qt as useActionRegistryStore, Xt as useActionShortcuts, Zt as useCommandMenuActions, Qt as useCommandMenuAnimation, $t as useCommandMenuNavigation, tn as useFocusedModels, nn as useTemporaryActions, an as useViewModels };