@wisemen/vue-core-actions 0.1.2 → 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";
@@ -319,6 +319,11 @@ function Te(e) {
319
319
  return e;
320
320
  }
321
321
  //#endregion
322
+ //#region src/utils/isPromise.util.ts
323
+ function j(e) {
324
+ return typeof e?.then == "function";
325
+ }
326
+ //#endregion
322
327
  //#region src/utils/resolveActions.util.ts
323
328
  var Ee = /[\s\-_./]+/;
324
329
  async function De(e, t, n, r) {
@@ -327,8 +332,8 @@ async function De(e, t, n, r) {
327
332
  let e = [], a = [], s = [...o];
328
333
  for (; s.length > 0;) {
329
334
  let n = s.shift();
330
- if (e.push(n), !M(n, t)) continue;
331
- let r = Le(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);
332
337
  if (n.subActions !== void 0 && o) {
333
338
  let e = r?.maxResults ?? 99, i = n.subActions(t);
334
339
  if (Array.isArray(i)) {
@@ -344,21 +349,21 @@ async function De(e, t, n, r) {
344
349
  }
345
350
  }
346
351
  if (a.length > 0 && n !== void 0) {
347
- n(j(e, t, r));
352
+ n(M(e, t, r));
348
353
  let i = [...e];
349
354
  return await Promise.all(a.map(async (e) => {
350
355
  let a = await e();
351
- i.push(...a), n(j(i, t, r));
352
- })), j(i, t, r);
356
+ i.push(...a), n(M(i, t, r));
357
+ })), M(i, t, r);
353
358
  }
354
359
  let c = (await Promise.all(a.map((e) => e()))).flat();
355
360
  o = [...e, ...c];
356
361
  }
357
- return j(o, t, r);
362
+ return M(o, t, r);
358
363
  }
359
- function j(e, t, n) {
364
+ function M(e, t, n) {
360
365
  let r = t.searchInput.length >= 0, i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = [];
361
- for (let n of e) if (M(n, t)) {
366
+ for (let n of e) if (N(n, t)) {
362
367
  if (n.id !== void 0) {
363
368
  if (a.has(n.id)) continue;
364
369
  a.add(n.id);
@@ -377,28 +382,29 @@ function j(e, t, n) {
377
382
  return e = e.toSorted((e, r) => {
378
383
  let i = e.action.parentAction === void 0 ? 0 : 1, a = r.action.parentAction === void 0 ? 0 : 1;
379
384
  if (i !== a) return i - a;
380
- let o = e.action.parentAction ?? n, s = r.action.parentAction ?? n, c = o?.showSelectedSubActionsFirst !== !1 && I(e.action, t) ? 0 : 1, l = s?.showSelectedSubActionsFirst !== !1 && I(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;
381
386
  if (c !== l) return c - l;
382
387
  let u = r.score - e.score;
383
388
  if (Math.abs(u) > .05) return u;
384
- let d = N(e.action, t), f = N(r.action, t);
389
+ let d = P(e.action, t), f = P(r.action, t);
385
390
  return d === f ? u : d - f;
386
391
  }), e.map((e) => e.action);
387
392
  }
388
393
  let s = n?.showSelectedSubActionsFirst !== !1;
389
394
  return o.sort((e, n) => {
390
- let r = s && I(e, t) ? 0 : 1, i = s && I(n, t) ? 0 : 1;
391
- return r === i ? N(e, t) - N(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;
392
397
  });
393
398
  }
394
399
  function Oe(e) {
395
400
  return typeof e == "object" && !!e && "actions" in e && "pagination" in e && Array.isArray(e.actions);
396
401
  }
397
402
  async function ke(e, t) {
398
- if (e instanceof Promise) {
403
+ if (j(e)) {
399
404
  let n = await e;
400
405
  return Oe(n) ? n.actions.slice(0, t) : n.slice(0, t);
401
406
  }
407
+ if (e == null || !(Symbol.asyncIterator in e)) return [];
402
408
  let n = [];
403
409
  for await (let r of e) if (n.push(r), n.length >= t) break;
404
410
  return n;
@@ -418,16 +424,16 @@ function je(e, t) {
418
424
  onlyVisibleThroughSearch: !0
419
425
  }));
420
426
  }
421
- function M(e, t) {
427
+ function N(e, t) {
422
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);
423
429
  }
424
- function N(e, t) {
430
+ function P(e, t) {
425
431
  let n = e.group?.priority ?? null;
426
432
  return n === null ? 9999 : typeof n == "function" ? n(t) : n;
427
433
  }
428
434
  function Me(e, t, n) {
429
435
  if (t.trim().length === 0 || e.skipFilterScoring) return 1;
430
- let r = F(e, n), i = Ne(e, n);
436
+ let r = I(e, n), i = Ne(e, n);
431
437
  if (e.keywordsExactMatch) {
432
438
  let t = Array.isArray(e.keywordsExactMatch) ? e.keywordsExactMatch : [e.keywordsExactMatch];
433
439
  if (t.some((e) => r.toLowerCase().includes(e.toLowerCase())) || t.some((e) => i.toLowerCase().includes(e.toLowerCase()))) return 1;
@@ -440,15 +446,15 @@ function Ne(e, t) {
440
446
  if (r !== "none") {
441
447
  let i = e.parentAction;
442
448
  if (r === "all") for (; i;) {
443
- let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : F(i, t);
449
+ let e = i.nameAsParent ? typeof i.nameAsParent == "function" ? i.nameAsParent(t) : i.nameAsParent : I(i, t);
444
450
  n.push(e), i = i.parentAction;
445
451
  }
446
452
  if (r === "direct" && e.parentAction !== void 0) {
447
- let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : F(r, t);
453
+ let r = e.parentAction, i = r.nameAsParent ? typeof r.nameAsParent == "function" ? r.nameAsParent(t) : r.nameAsParent : I(r, t);
448
454
  n.push(i);
449
455
  }
450
456
  }
451
- if (n.push(F(e, t)), e.keywords !== void 0) {
457
+ if (n.push(I(e, t)), e.keywords !== void 0) {
452
458
  let t = Array.isArray(e.keywords) ? e.keywords : [e.keywords];
453
459
  n.push(...t);
454
460
  }
@@ -473,10 +479,10 @@ function Pe(e, t) {
473
479
  let h = d - u + 1, g = (1 - u / s) * .3 + c / h * .35 + c / s * .2 + Math.min(m, .15);
474
480
  return Math.min(.55, Math.max(0, g));
475
481
  }
476
- function P(e, t) {
482
+ function F(e, t) {
477
483
  return typeof e == "function" ? e(t) : e;
478
484
  }
479
- function F(e, t) {
485
+ function I(e, t) {
480
486
  return typeof e.name == "function" ? e.name(t) : e.name;
481
487
  }
482
488
  function Fe(e, t) {
@@ -485,22 +491,22 @@ function Fe(e, t) {
485
491
  function Ie(e, t) {
486
492
  return typeof e.hint == "function" ? e.hint(t) : e.hint ?? null;
487
493
  }
488
- function I(e, t) {
494
+ function L(e, t) {
489
495
  return typeof e.selected == "function" ? e.selected(t) : e.selected ?? null;
490
496
  }
491
- function Le(e, t) {
497
+ function R(e, t) {
492
498
  return typeof e.searchSubActionsConfig == "function" ? e.searchSubActionsConfig(t) : e.searchSubActionsConfig ?? null;
493
499
  }
494
- function Re(e, t) {
500
+ function Le(e, t) {
495
501
  return typeof e.preview == "function" ? e.preview(t) : null;
496
502
  }
497
503
  //#endregion
498
504
  //#region src/composables/actionPreview.composable.ts
499
- function ze({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
505
+ function Re({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
500
506
  let i = p(!1), a = t(() => {
501
507
  if (e.value === null || !i.value) return null;
502
508
  let t = r.value.find((t) => t.id === e.value) ?? null;
503
- return t === null ? null : Re(t, n());
509
+ return t === null ? null : Le(t, n());
504
510
  });
505
511
  function o() {
506
512
  i.value = !0;
@@ -522,7 +528,7 @@ function ze({ highlightedActionId: e, getContext: n, resolvedActions: r }) {
522
528
  }
523
529
  //#endregion
524
530
  //#region src/composables/isSelectorVisible.composable.ts
525
- function Be(e) {
531
+ function ze(e) {
526
532
  let t = p(!1), n = null;
527
533
  function r() {
528
534
  t.value = document.querySelector(e) !== null;
@@ -538,15 +544,15 @@ function Be(e) {
538
544
  }
539
545
  //#endregion
540
546
  //#region src/stores/actionManager.store.ts
541
- async function Ve(e, t, n) {
547
+ async function Be(e, t, n) {
542
548
  e.execute !== void 0 && (await e.execute(t), n?.onComplete?.());
543
549
  }
544
- function He(e) {
550
+ function Ve(e) {
545
551
  let t = /* @__PURE__ */ new Set();
546
552
  return e.filter((e) => t.has(e) ? !1 : (t.add(e), !0));
547
553
  }
548
- var L = y("actionManager", () => {
549
- let e = p([]), t = p([]), n = p({}), r = x(), i = b(), a = Be("[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])");
550
556
  function o(e) {
551
557
  n.value = {
552
558
  ...n.value,
@@ -564,7 +570,7 @@ var L = y("actionManager", () => {
564
570
  t.value = e;
565
571
  }
566
572
  function u(o) {
567
- let s = He([
573
+ let s = Ve([
568
574
  ...o.models ?? [],
569
575
  ...t.value,
570
576
  ...e.value
@@ -597,7 +603,7 @@ var L = y("actionManager", () => {
597
603
  }
598
604
  return {
599
605
  actionContext: u,
600
- executeAction: Ve,
606
+ executeAction: Be,
601
607
  focusedModels: e,
602
608
  metadata: n,
603
609
  registerMetadata: o,
@@ -609,43 +615,43 @@ var L = y("actionManager", () => {
609
615
  });
610
616
  //#endregion
611
617
  //#region src/utils/subActions.util.ts
612
- function R(e) {
618
+ function B(e) {
613
619
  return typeof e == "object" && !!e && "actions" in e && "pagination" in e && Array.isArray(e.actions);
614
620
  }
615
- function z(e, t, n) {
616
- 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);
617
623
  }
618
- async function Ue(e, t, n, r = 297) {
624
+ async function He(e, t, n, r = 297) {
619
625
  if (e.subActions === void 0) return [];
620
626
  let i = e.subActions(t);
621
- if (Array.isArray(i) || R(i)) return z(e, i, n);
622
- if (i instanceof Promise) 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);
623
629
  let a = [];
624
630
  for await (let e of i) if (a.push(e), a.length >= r) break;
625
631
  return a;
626
632
  }
627
633
  //#endregion
628
634
  //#region src/composables/actionDropdownMenuContent.composable.ts
629
- function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContainerRef: a }) {
630
- 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({
631
637
  menuType: "contextualMenu",
632
638
  metadata: n.value,
633
639
  models: r.value,
634
640
  searchInput: u.value
635
- })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = ze({
641
+ })), { preview: b, onHidePreview: x, onKeyDown: S, onShowPreview: C } = Re({
636
642
  highlightedActionId: c,
637
643
  getContext: () => y.value,
638
644
  resolvedActions: f
639
645
  }), w = t(() => {
640
646
  if (i.value == null) return o.t("search");
641
- let e = Le(i.value, y.value)?.placeholder;
647
+ let e = R(i.value, y.value)?.placeholder;
642
648
  return e === void 0 ? o.t("search") : typeof e == "function" ? e() : e;
643
649
  });
644
650
  async function T() {
645
651
  let t = ++g, n = y.value;
646
652
  try {
647
653
  let r = e.value;
648
- i.value?.subActions !== void 0 && (r = await Ue(i.value, n, m.value));
654
+ i.value?.subActions !== void 0 && (r = await He(i.value, n, m.value));
649
655
  let a = await De(r, n, (e) => {
650
656
  t !== g || e.length === 0 || (f.value = e);
651
657
  }, i.value ?? void 0);
@@ -669,15 +675,15 @@ function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
669
675
  searchInput: l.value,
670
676
  subActionsMeta: { [e.id]: t }
671
677
  }), o = e.subActions(a), c;
672
- if (Array.isArray(o) || R(o)) c = o;
673
- else if (o instanceof Promise) c = await o;
678
+ if (Array.isArray(o) || B(o)) c = o;
679
+ else if (j(o)) c = await o;
674
680
  else {
675
681
  let e = [];
676
682
  for await (let t of o) e.push(t);
677
683
  f.value = [...f.value, ...e];
678
684
  return;
679
685
  }
680
- f.value = [...f.value, ...z(e, c, m.value)];
686
+ f.value = [...f.value, ...V(e, c, m.value)];
681
687
  }, {
682
688
  canLoadMore: () => {
683
689
  let e = i.value;
@@ -714,31 +720,39 @@ function We({ actions: e, metadata: n, models: r, parentAction: i, scrollContain
714
720
  }
715
721
  //#endregion
716
722
  //#region src/composables/actionGroup.composable.ts
717
- var B = /* @__PURE__ */ function(e) {
718
- 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;
719
725
  }({});
720
726
  function Ge() {
721
727
  let e = v();
722
728
  return {
723
729
  account: {
724
730
  name: e.t("action.group.account"),
725
- priority: B.ACCOUNT
731
+ priority: 9
732
+ },
733
+ application: {
734
+ name: e.t("action.group.application"),
735
+ priority: 8
726
736
  },
727
737
  developer: {
728
738
  name: e.t("action.group.developer"),
729
- priority: B.DEVELOPER
739
+ priority: 10
730
740
  },
731
741
  general: {
732
742
  name: e.t("action.group.general"),
733
- priority: B.GENERAL
743
+ priority: 4
734
744
  },
735
745
  navigation: {
736
746
  name: e.t("action.group.navigation"),
737
- priority: B.NAVIGATION
747
+ priority: 5
738
748
  },
739
749
  preferences: {
740
750
  name: e.t("action.group.preferences"),
741
- priority: B.PREFERENCES
751
+ priority: 6
752
+ },
753
+ settings: {
754
+ name: e.t("action.group.settings"),
755
+ priority: 7
742
756
  }
743
757
  };
744
758
  }
@@ -750,19 +764,19 @@ function qe() {
750
764
  }
751
765
  //#endregion
752
766
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/constants.js
753
- function V() {
767
+ function H() {
754
768
  if (typeof navigator > "u") return "linux";
755
769
  let e = navigator.platform?.toLowerCase() ?? "", t = navigator.userAgent?.toLowerCase() ?? "";
756
770
  return e.includes("mac") || t.includes("mac") ? "mac" : e.includes("win") || t.includes("win") ? "windows" : "linux";
757
771
  }
758
- var H = [
772
+ var U = [
759
773
  "Control",
760
774
  "Alt",
761
775
  "Shift",
762
776
  "Meta"
763
777
  ];
764
- new Set(H);
765
- var U = {
778
+ new Set(U);
779
+ var W = {
766
780
  Control: "Control",
767
781
  Ctrl: "Control",
768
782
  control: "Control",
@@ -788,7 +802,7 @@ var U = {
788
802
  commandorcontrol: "Mod",
789
803
  mod: "Mod"
790
804
  };
791
- function Je(e, t = V()) {
805
+ function Je(e, t = H()) {
792
806
  return e === "Mod" ? t === "mac" ? "Meta" : "Control" : e;
793
807
  }
794
808
  var Ye = new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Xe = new Set([
@@ -902,7 +916,7 @@ var nt = {
902
916
  function rt(e) {
903
917
  return /^\p{Letter}$/u.test(e);
904
918
  }
905
- function W(e) {
919
+ function G(e) {
906
920
  if (!e) return "";
907
921
  if (e in nt) return nt[e];
908
922
  if (rt(e)) {
@@ -914,32 +928,32 @@ function W(e) {
914
928
  }
915
929
  //#endregion
916
930
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/parse.js
917
- function G(e, t = V()) {
931
+ function K(e, t = H()) {
918
932
  let n = e.split("+"), r = /* @__PURE__ */ new Set(), i = "";
919
933
  for (let e = 0; e < n.length; e++) {
920
934
  let a = n[e].trim();
921
- if (e === n.length - 1) i = W(a);
935
+ if (e === n.length - 1) i = G(a);
922
936
  else {
923
- let e = U[a] ?? U[a.toLowerCase()];
937
+ let e = W[a] ?? W[a.toLowerCase()];
924
938
  if (e) {
925
939
  let n = Je(e, t);
926
940
  r.add(n);
927
- } else n.length === 1 && (i = W(a));
941
+ } else n.length === 1 && (i = G(a));
928
942
  }
929
943
  }
930
- 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())), {
931
945
  key: i,
932
946
  ctrl: r.has("Control"),
933
947
  shift: r.has("Shift"),
934
948
  alt: r.has("Alt"),
935
949
  meta: r.has("Meta"),
936
- modifiers: H.filter((e) => r.has(e))
950
+ modifiers: U.filter((e) => r.has(e))
937
951
  };
938
952
  }
939
- function it(e, t = V()) {
953
+ function it(e, t = H()) {
940
954
  let n = e.ctrl ?? !1, r = e.shift ?? !1, i = e.alt ?? !1, a = e.meta ?? !1;
941
955
  e.mod && (Je("Mod", t) === "Control" ? n = !0 : a = !0);
942
- let o = H.filter((e) => {
956
+ let o = U.filter((e) => {
943
957
  switch (e) {
944
958
  case "Control": return n;
945
959
  case "Shift": return r;
@@ -960,20 +974,20 @@ function it(e, t = V()) {
960
974
  function at(e, t) {
961
975
  let n = t === "mac" ? e.meta && !e.ctrl : e.ctrl && !e.meta, r = [];
962
976
  if (n) r.push("Mod"), e.alt && r.push("Alt"), e.shift && r.push("Shift");
963
- else for (let t of H) e.modifiers.includes(t) && r.push(t);
964
- 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("+");
965
979
  }
966
- function ot(e, t = V()) {
967
- return at(G(e, t), t);
980
+ function ot(e, t = H()) {
981
+ return at(K(e, t), t);
968
982
  }
969
- function st(e, t = V()) {
983
+ function st(e, t = H()) {
970
984
  return at(e, t);
971
985
  }
972
- function ct(e, t = V()) {
986
+ function ct(e, t = H()) {
973
987
  return typeof e == "string" ? ot(e, t) : st(it(e, t), t);
974
988
  }
975
989
  function lt(e) {
976
- return e in U || e.toLowerCase() in U;
990
+ return e in W || e.toLowerCase() in W;
977
991
  }
978
992
  //#endregion
979
993
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/format.js
@@ -982,15 +996,15 @@ function ut(e) {
982
996
  }
983
997
  function dt(e) {
984
998
  let t = [];
985
- 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);
986
1000
  return t.push(e.key), t.join("+");
987
1001
  }
988
1002
  //#endregion
989
1003
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/match.js
990
- function K(e, t, n = V()) {
991
- 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;
992
1006
  if (e.ctrlKey !== r.ctrl || e.shiftKey !== r.shift || e.altKey !== r.alt || e.metaKey !== r.meta) return !1;
993
- let i = W(e.key), a = r.key;
1007
+ let i = G(e.key), a = r.key;
994
1008
  if (i !== "Dead" && i.length === 1 && a.length === 1) {
995
1009
  if (i.toUpperCase() === a.toUpperCase()) return !0;
996
1010
  if (rt(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
@@ -1051,7 +1065,7 @@ function vt(e, t, n, r) {
1051
1065
  }
1052
1066
  //#endregion
1053
1067
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/alien.js
1054
- var q = /* @__PURE__ */ function(e) {
1068
+ var J = /* @__PURE__ */ function(e) {
1055
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;
1056
1070
  }({});
1057
1071
  /* @__NO_SIDE_EFFECTS__ */
@@ -1092,7 +1106,7 @@ function yt({ update: e, notify: t, unwatched: n }) {
1092
1106
  let n = e.nextSub, r;
1093
1107
  top: do {
1094
1108
  let i = e.sub, a = i.flags;
1095
- 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) {
1096
1110
  let t = i.subs;
1097
1111
  if (t !== void 0) {
1098
1112
  let i = (e = t).nextSub;
@@ -1118,13 +1132,13 @@ function yt({ update: e, notify: t, unwatched: n }) {
1118
1132
  let r, i = 0, a = !1;
1119
1133
  top: do {
1120
1134
  let o = t.dep, c = o.flags;
1121
- if (n.flags & q.Dirty) a = !0;
1122
- 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)) {
1123
1137
  if (e(o)) {
1124
1138
  let e = o.subs;
1125
1139
  e.nextSub !== void 0 && s(e), a = !0;
1126
1140
  }
1127
- } else if ((c & (q.Mutable | q.Pending)) === (q.Mutable | q.Pending)) {
1141
+ } else if ((c & (J.Mutable | J.Pending)) === (J.Mutable | J.Pending)) {
1128
1142
  (t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
1129
1143
  value: t,
1130
1144
  prev: r
@@ -1146,7 +1160,7 @@ function yt({ update: e, notify: t, unwatched: n }) {
1146
1160
  continue;
1147
1161
  }
1148
1162
  a = !1;
1149
- } else n.flags &= ~q.Pending;
1163
+ } else n.flags &= ~J.Pending;
1150
1164
  n = t.sub;
1151
1165
  let c = t.nextDep;
1152
1166
  if (c !== void 0) {
@@ -1160,7 +1174,7 @@ function yt({ update: e, notify: t, unwatched: n }) {
1160
1174
  function s(e) {
1161
1175
  do {
1162
1176
  let n = e.sub, r = n.flags;
1163
- (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));
1164
1178
  } while ((e = e.nextSub) !== void 0);
1165
1179
  }
1166
1180
  function c(e, t) {
@@ -1182,43 +1196,43 @@ function bt(e, t, n) {
1182
1196
  complete: (r ? e.complete : n)?.bind(i)
1183
1197
  };
1184
1198
  }
1185
- var xt = [], J = 0, { link: St, unlink: Ct, propagate: wt, checkDirty: Tt, shallowPropagate: Et } = /* @__PURE__ */ yt({
1199
+ var xt = [], Y = 0, { link: St, unlink: Ct, propagate: wt, checkDirty: Tt, shallowPropagate: Et } = /* @__PURE__ */ yt({
1186
1200
  update(e) {
1187
1201
  return e._update();
1188
1202
  },
1189
1203
  notify(e) {
1190
- xt[Dt++] = e, e.flags &= ~q.Watching;
1204
+ xt[Dt++] = e, e.flags &= ~J.Watching;
1191
1205
  },
1192
1206
  unwatched(e) {
1193
- 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));
1194
1208
  }
1195
- }), Y = 0, Dt = 0, X, Ot = 0;
1196
- function Z(e) {
1209
+ }), X = 0, Dt = 0, Z, Ot = 0;
1210
+ function kt(e) {
1197
1211
  let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
1198
1212
  for (; n !== void 0;) n = Ct(n, e);
1199
1213
  }
1200
- function kt() {
1214
+ function At() {
1201
1215
  if (!(Ot > 0)) {
1202
- for (; Y < Dt;) {
1203
- let e = xt[Y];
1204
- xt[Y++] = void 0, e.notify();
1216
+ for (; X < Dt;) {
1217
+ let e = xt[X];
1218
+ xt[X++] = void 0, e.notify();
1205
1219
  }
1206
- Y = 0, Dt = 0;
1220
+ X = 0, Dt = 0;
1207
1221
  }
1208
1222
  }
1209
- function At(e, t) {
1223
+ function jt(e, t) {
1210
1224
  let n = typeof e == "function", r = e, i = {
1211
1225
  _snapshot: n ? void 0 : e,
1212
1226
  subs: void 0,
1213
1227
  subsTail: void 0,
1214
1228
  deps: void 0,
1215
1229
  depsTail: void 0,
1216
- flags: n ? q.None : q.Mutable,
1230
+ flags: n ? J.None : J.Mutable,
1217
1231
  get() {
1218
- return X !== void 0 && St(i, X, J), i._snapshot;
1232
+ return Z !== void 0 && St(i, Z, Y), i._snapshot;
1219
1233
  },
1220
1234
  subscribe(e) {
1221
- let t = bt(e), n = { current: !1 }, r = jt(() => {
1235
+ let t = bt(e), n = { current: !1 }, r = Mt(() => {
1222
1236
  i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
1223
1237
  });
1224
1238
  return { unsubscribe: () => {
@@ -1226,64 +1240,64 @@ function At(e, t) {
1226
1240
  } };
1227
1241
  },
1228
1242
  _update(e) {
1229
- let a = X, o = t?.compare ?? Object.is;
1230
- 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;
1231
1245
  else if (e === void 0) return !1;
1232
- n && (i.flags = q.Mutable | q.RecursedCheck);
1246
+ n && (i.flags = J.Mutable | J.RecursedCheck);
1233
1247
  try {
1234
1248
  let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
1235
1249
  return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
1236
1250
  } finally {
1237
- X = a, n && (i.flags &= ~q.RecursedCheck), Z(i);
1251
+ Z = a, n && (i.flags &= ~J.RecursedCheck), kt(i);
1238
1252
  }
1239
1253
  }
1240
1254
  };
1241
- return n ? (i.flags = q.Mutable | q.Dirty, i.get = function() {
1255
+ return n ? (i.flags = J.Mutable | J.Dirty, i.get = function() {
1242
1256
  let e = i.flags;
1243
- if (e & q.Dirty || e & q.Pending && Tt(i.deps, i)) {
1257
+ if (e & J.Dirty || e & J.Pending && Tt(i.deps, i)) {
1244
1258
  if (i._update()) {
1245
1259
  let e = i.subs;
1246
1260
  e !== void 0 && Et(e);
1247
1261
  }
1248
- } else e & q.Pending && (i.flags = e & ~q.Pending);
1249
- return X !== void 0 && St(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;
1250
1264
  }) : i.set = function(e) {
1251
1265
  if (i._update(e)) {
1252
1266
  let e = i.subs;
1253
- e !== void 0 && (wt(e), Et(e), kt());
1267
+ e !== void 0 && (wt(e), Et(e), At());
1254
1268
  }
1255
1269
  }, i;
1256
1270
  }
1257
- function jt(e) {
1271
+ function Mt(e) {
1258
1272
  let t = () => {
1259
- let t = X;
1260
- 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;
1261
1275
  try {
1262
1276
  return e();
1263
1277
  } finally {
1264
- X = t, n.flags &= ~q.RecursedCheck, Z(n);
1278
+ Z = t, n.flags &= ~J.RecursedCheck, kt(n);
1265
1279
  }
1266
1280
  }, n = {
1267
1281
  deps: void 0,
1268
1282
  depsTail: void 0,
1269
1283
  subs: void 0,
1270
1284
  subsTail: void 0,
1271
- flags: q.Watching | q.RecursedCheck,
1285
+ flags: J.Watching | J.RecursedCheck,
1272
1286
  notify() {
1273
1287
  let e = this.flags;
1274
- e & q.Dirty || e & q.Pending && Tt(this.deps, this) ? t() : this.flags = q.Watching;
1288
+ e & J.Dirty || e & J.Pending && Tt(this.deps, this) ? t() : this.flags = J.Watching;
1275
1289
  },
1276
1290
  stop() {
1277
- this.flags = q.None, this.depsTail = void 0, Z(this);
1291
+ this.flags = J.None, this.depsTail = void 0, kt(this);
1278
1292
  }
1279
1293
  };
1280
1294
  return t(), n;
1281
1295
  }
1282
1296
  //#endregion
1283
1297
  //#region ../../../node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/store.js
1284
- var Mt = class {
1298
+ var Nt = class {
1285
1299
  constructor(e, t) {
1286
- this.atom = At(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
1300
+ this.atom = jt(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
1287
1301
  }
1288
1302
  setState(e) {
1289
1303
  this.atom.set(e);
@@ -1297,17 +1311,17 @@ var Mt = class {
1297
1311
  subscribe(e) {
1298
1312
  return this.atom.subscribe(bt(e));
1299
1313
  }
1300
- }, Nt = 0;
1301
- function Pt() {
1302
- return `hotkey_${++Nt}`;
1314
+ }, Pt = 0;
1315
+ function Ft() {
1316
+ return `hotkey_${++Pt}`;
1303
1317
  }
1304
- var Ft = class e {
1318
+ var It = class e {
1305
1319
  static #e = null;
1306
1320
  #t;
1307
1321
  #n = /* @__PURE__ */ new Map();
1308
1322
  #r = /* @__PURE__ */ new Map();
1309
1323
  constructor() {
1310
- this.registrations = new Mt(/* @__PURE__ */ new Map()), this.#t = V();
1324
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#t = H();
1311
1325
  }
1312
1326
  static getInstance() {
1313
1327
  return e.#e ||= new e(), e.#e;
@@ -1319,7 +1333,7 @@ var Ft = class e {
1319
1333
  if (typeof document > "u" && !n.target) {
1320
1334
  let e = t;
1321
1335
  return {
1322
- id: Pt(),
1336
+ id: Ft(),
1323
1337
  unregister: () => {},
1324
1338
  get callback() {
1325
1339
  return e;
@@ -1333,7 +1347,7 @@ var Ft = class e {
1333
1347
  }
1334
1348
  };
1335
1349
  }
1336
- let r = Pt(), i = n.platform ?? this.#t, a = typeof e == "string" ? G(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);
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);
1337
1351
  l && vt(l.id, o, c, (e) => this.#i(e));
1338
1352
  let u = n.ignoreInputs ?? pt(a), d = {
1339
1353
  id: r,
@@ -1418,8 +1432,8 @@ var Ft = class e {
1418
1432
  let r = this.registrations.state.get(i);
1419
1433
  if (r && _t(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && gt(e, t, r.target))) if (n === "keydown") {
1420
1434
  if (r.options.eventType !== "keydown") continue;
1421
- 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)));
1422
- } 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);
1423
1437
  }
1424
1438
  }
1425
1439
  #c(e, t) {
@@ -1445,7 +1459,7 @@ var Ft = class e {
1445
1459
  return null;
1446
1460
  }
1447
1461
  #f(e, t) {
1448
- 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;
1449
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");
1450
1464
  }
1451
1465
  triggerRegistration(e) {
@@ -1477,19 +1491,19 @@ var Ft = class e {
1477
1491
  this.registrations.setState(() => /* @__PURE__ */ new Map()), this.#n.clear(), this.#r.clear();
1478
1492
  }
1479
1493
  };
1480
- function It() {
1481
- return Ft.getInstance();
1494
+ function Lt() {
1495
+ return It.getInstance();
1482
1496
  }
1483
1497
  //#endregion
1484
1498
  //#region ../../../node_modules/.pnpm/@tanstack+hotkeys@0.8.0/node_modules/@tanstack/hotkeys/dist/sequence-manager.js
1485
- var Lt = 1e3, Rt = 0;
1486
- function zt() {
1487
- return `sequence_${++Rt}`;
1499
+ var Rt = 1e3, zt = 0;
1500
+ function Bt() {
1501
+ return `sequence_${++zt}`;
1488
1502
  }
1489
- function Bt(e) {
1503
+ function Vt(e) {
1490
1504
  return e.join("|");
1491
1505
  }
1492
- function Vt(e) {
1506
+ function Ht(e) {
1493
1507
  let t = e.parsedSequence.length, n = e.currentIndex > 0 && e.currentIndex < t;
1494
1508
  return {
1495
1509
  id: e.id,
@@ -1502,14 +1516,14 @@ function Vt(e) {
1502
1516
  partialMatchLastKeyTime: n ? e.lastKeyTime : 0
1503
1517
  };
1504
1518
  }
1505
- var Ht = class e {
1519
+ var Ut = class e {
1506
1520
  static #e = null;
1507
1521
  #t = /* @__PURE__ */ new Map();
1508
1522
  #n = /* @__PURE__ */ new Map();
1509
1523
  #r = /* @__PURE__ */ new Map();
1510
1524
  #i;
1511
1525
  constructor() {
1512
- this.registrations = new Mt(/* @__PURE__ */ new Map()), this.#i = V();
1526
+ this.registrations = new Nt(/* @__PURE__ */ new Map()), this.#i = H();
1513
1527
  }
1514
1528
  static getInstance() {
1515
1529
  return e.#e ||= new e(), e.#e;
@@ -1518,11 +1532,11 @@ var Ht = class e {
1518
1532
  e.#e &&= (e.#e.destroy(), null);
1519
1533
  }
1520
1534
  #a(e) {
1521
- this.registrations.setState((t) => new Map(t).set(e.id, Vt(e)));
1535
+ this.registrations.setState((t) => new Map(t).set(e.id, Ht(e)));
1522
1536
  }
1523
1537
  register(e, t, n = {}) {
1524
1538
  if (e.length === 0) throw Error("Sequence must contain at least one hotkey");
1525
- let r = zt(), 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);
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);
1526
1540
  c && vt(c.id, ut(e), s, (e) => this.#o(e));
1527
1541
  let l = a[0], u = n.ignoreInputs ?? pt(l), d = {
1528
1542
  id: r,
@@ -1531,7 +1545,7 @@ var Ht = class e {
1531
1545
  callback: t,
1532
1546
  options: {
1533
1547
  ...ft,
1534
- timeout: Lt,
1548
+ timeout: Rt,
1535
1549
  ...n,
1536
1550
  platform: i,
1537
1551
  ignoreInputs: u
@@ -1542,7 +1556,7 @@ var Ht = class e {
1542
1556
  triggerCount: 0,
1543
1557
  hasFired: !1
1544
1558
  };
1545
- this.#t.set(r, d), this.registrations.setState((e) => new Map(e).set(r, Vt(d))), this.#r.has(o) || this.#r.set(o, /* @__PURE__ */ new Set()), this.#r.get(o).add(r), this.#s(o);
1559
+ this.#t.set(r, d), this.registrations.setState((e) => new Map(e).set(r, Ht(d))), this.#r.has(o) || this.#r.set(o, /* @__PURE__ */ new Set()), this.#r.get(o).add(r), this.#s(o);
1546
1560
  let f = this;
1547
1561
  return {
1548
1562
  get id() {
@@ -1563,7 +1577,7 @@ var Ht = class e {
1563
1577
  t && (t.options = {
1564
1578
  ...t.options,
1565
1579
  ...e
1566
- }, f.registrations.setState((e) => new Map(e).set(r, Vt(t))));
1580
+ }, f.registrations.setState((e) => new Map(e).set(r, Ht(t))));
1567
1581
  },
1568
1582
  unregister: () => {
1569
1583
  f.#o(r);
@@ -1605,7 +1619,7 @@ var Ht = class e {
1605
1619
  };
1606
1620
  }
1607
1621
  #d(e, t, n) {
1608
- if (lt(W(e.key))) return;
1622
+ if (lt(G(e.key))) return;
1609
1623
  let r = this.#r.get(t);
1610
1624
  if (!r) return;
1611
1625
  let i = Date.now();
@@ -1618,7 +1632,7 @@ var Ht = class e {
1618
1632
  r.currentIndex > 0 && i - r.lastKeyTime > o && (r.currentIndex = 0, this.#a(r));
1619
1633
  let s = r.parsedSequence[r.currentIndex];
1620
1634
  if (s) {
1621
- 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) {
1622
1636
  r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation();
1623
1637
  let t = {
1624
1638
  hotkey: r.sequence.join(" "),
@@ -1628,14 +1642,14 @@ var Ht = class e {
1628
1642
  } else this.#a(r);
1629
1643
  else if (r.currentIndex > 0) {
1630
1644
  let t = r.parsedSequence[0];
1631
- 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);
1632
1646
  }
1633
1647
  }
1634
1648
  }
1635
1649
  }
1636
1650
  #f(e, t) {
1637
- let n = Bt(e);
1638
- for (let e of this.#t.values()) if (Bt(e.sequence) === n && e.target === t) return e;
1651
+ let n = Vt(e);
1652
+ for (let e of this.#t.values()) if (Vt(e.sequence) === n && e.target === t) return e;
1639
1653
  return null;
1640
1654
  }
1641
1655
  resetAll() {
@@ -1670,20 +1684,20 @@ var Ht = class e {
1670
1684
  this.#t.clear(), this.registrations.setState(() => /* @__PURE__ */ new Map());
1671
1685
  }
1672
1686
  };
1673
- function Ut() {
1674
- return Ht.getInstance();
1687
+ function Wt() {
1688
+ return Ut.getInstance();
1675
1689
  }
1676
1690
  //#endregion
1677
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
1678
- function Wt(e, t = {}) {
1679
- let n = qe(), r = It(), i = /* @__PURE__ */ new Map(), a = _(() => {
1692
+ function Gt(e, t = {}) {
1693
+ let n = qe(), r = Lt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1680
1694
  let r = Q(e), i = Q(t);
1681
1695
  return r.map((e, t) => {
1682
1696
  let r = Q(e.hotkey), a = e.options ? Q(e.options) : {}, o = {
1683
1697
  ...n.hotkey,
1684
1698
  ...i,
1685
1699
  ...a
1686
- }, s = ct(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);
1687
1701
  return {
1688
1702
  index: t,
1689
1703
  hotkeyString: s,
@@ -1742,8 +1756,8 @@ function Q(e) {
1742
1756
  }
1743
1757
  //#endregion
1744
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
1745
- function Gt(e, t = {}) {
1746
- let n = qe(), r = Ut(), i = /* @__PURE__ */ new Map(), a = _(() => {
1759
+ function Kt(e, t = {}) {
1760
+ let n = qe(), r = Wt(), i = /* @__PURE__ */ new Map(), a = _(() => {
1747
1761
  let r = $(e), i = $(t);
1748
1762
  return r.map((e, t) => {
1749
1763
  let r = $(e.sequence), a = e.options ? $(e.options) : {}, o = {
@@ -1811,7 +1825,7 @@ function $(e) {
1811
1825
  }
1812
1826
  //#endregion
1813
1827
  //#region src/stores/actionRegistry.store.ts
1814
- var Kt = y("actionRegistry", () => {
1828
+ var qt = y("actionRegistry", () => {
1815
1829
  let e = p([]), t = p(/* @__PURE__ */ new Map()), n = 1;
1816
1830
  function r() {
1817
1831
  return [...e.value, ...t.value.values().map((e) => e)];
@@ -1835,14 +1849,14 @@ var Kt = y("actionRegistry", () => {
1835
1849
  });
1836
1850
  //#endregion
1837
1851
  //#region src/composables/actionShortcuts.composable.ts
1838
- function* qt(e, t) {
1852
+ function* Jt(e, t) {
1839
1853
  for (let n of e) {
1840
1854
  if (yield n, n.subActionsHaveKeyboardShortcuts !== !0 || n.subActions === void 0) continue;
1841
1855
  let e = n.subActions(t);
1842
- Array.isArray(e) ? yield* qt(e, t) : typeof e == "object" && e && "actions" in e && Array.isArray(e.actions) && (yield* qt(e.actions, t));
1856
+ Array.isArray(e) ? yield* Jt(e, t) : typeof e == "object" && e && "actions" in e && Array.isArray(e.actions) && (yield* Jt(e.actions, t));
1843
1857
  }
1844
1858
  }
1845
- function Jt(e) {
1859
+ function Yt(e) {
1846
1860
  return [
1847
1861
  e.key,
1848
1862
  e.alt === !0 ? "alt" : "",
@@ -1852,14 +1866,14 @@ function Jt(e) {
1852
1866
  e.shift === !0 ? "shift" : ""
1853
1867
  ].filter(Boolean).join("+");
1854
1868
  }
1855
- function Yt(e) {
1856
- let t = Kt(), n = L();
1869
+ function Xt(e) {
1870
+ let t = qt(), n = z();
1857
1871
  function r(t) {
1858
1872
  return () => {
1859
1873
  let r = e ? e() : n.actionContext({});
1860
1874
  for (let e = t.length - 1; e >= 0; e--) {
1861
1875
  let n = t[e];
1862
- if (!M(n, r)) continue;
1876
+ if (!N(n, r)) continue;
1863
1877
  let i = n.execute?.(r);
1864
1878
  i instanceof Promise && i.catch((e) => {
1865
1879
  console.error("[useActionShortcuts] action.execute threw:", e);
@@ -1868,11 +1882,11 @@ function Yt(e) {
1868
1882
  }
1869
1883
  };
1870
1884
  }
1871
- Wt(() => {
1885
+ Gt(() => {
1872
1886
  let i = /* @__PURE__ */ new Map(), a = e ? e() : n.actionContext({});
1873
- for (let e of qt(t.allActions(), a)) {
1887
+ for (let e of Jt(t.allActions(), a)) {
1874
1888
  if (e.keyboardShortcut === void 0 || "sequence" in e.keyboardShortcut) continue;
1875
- let t = e.keyboardShortcut, n = Jt(t);
1889
+ let t = e.keyboardShortcut, n = Yt(t);
1876
1890
  i.has(n) || i.set(n, []), i.get(n).push(e);
1877
1891
  }
1878
1892
  return Array.from(i.values()).map((e) => {
@@ -1894,9 +1908,9 @@ function Yt(e) {
1894
1908
  }
1895
1909
  };
1896
1910
  });
1897
- }, { conflictBehavior: "allow" }), Gt(() => {
1911
+ }, { conflictBehavior: "allow" }), Kt(() => {
1898
1912
  let i = /* @__PURE__ */ new Map(), a = e ? e() : n.actionContext({});
1899
- for (let e of qt(t.allActions(), a)) {
1913
+ for (let e of Jt(t.allActions(), a)) {
1900
1914
  if (e.keyboardShortcut === void 0 || !("sequence" in e.keyboardShortcut)) continue;
1901
1915
  let t = e.keyboardShortcut.sequence.join(",");
1902
1916
  i.has(t) || i.set(t, []), i.get(t).push(e);
@@ -1917,7 +1931,7 @@ function Yt(e) {
1917
1931
  }
1918
1932
  //#endregion
1919
1933
  //#region src/composables/commandMenuActions.composable.ts
1920
- function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r, listboxRootRef: i, manager: a, navStack: o, searchInput: s }) {
1934
+ function Zt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r, listboxRootRef: i, manager: a, navStack: o, searchInput: s }) {
1921
1935
  let c = p(!1), l = p(!1), u = m([]), d = p({}), f = 0, h = t(() => r.value?.$el);
1922
1936
  function g(e) {
1923
1937
  return a.actionContext({
@@ -1934,7 +1948,7 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1934
1948
  let n = g(), r;
1935
1949
  if (o.value.length > 0) {
1936
1950
  let e = o.value.at(-1);
1937
- r = e.parentAction.subActions === void 0 ? e.actions : await Ue(e.parentAction, n, d.value);
1951
+ r = e.parentAction.subActions === void 0 ? e.actions : await He(e.parentAction, n, d.value);
1938
1952
  } else r = e;
1939
1953
  let i = await De(r, n, (e) => {
1940
1954
  t === f && e.length > 0 && (u.value = e);
@@ -1969,15 +1983,15 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1969
1983
  let t = d.value[e.id];
1970
1984
  if (t == null) return;
1971
1985
  let n = g({ [e.id]: t }), r = e.subActions(n), i;
1972
- if (Array.isArray(r) || R(r)) i = r;
1973
- else if (r instanceof Promise) i = await r;
1986
+ if (Array.isArray(r) || B(r)) i = r;
1987
+ else if (j(r)) i = await r;
1974
1988
  else {
1975
1989
  let e = [];
1976
1990
  for await (let t of r) e.push(t);
1977
1991
  u.value = [...u.value, ...e];
1978
1992
  return;
1979
1993
  }
1980
- u.value = [...u.value, ...z(e, i, d.value)];
1994
+ u.value = [...u.value, ...V(e, i, d.value)];
1981
1995
  }, {
1982
1996
  canLoadMore: () => {
1983
1997
  let e = o.value.at(-1)?.parentAction;
@@ -1995,7 +2009,7 @@ function Xt({ actionsSnapshot: e, focusedModelsSnapshot: n, listboxContentRef: r
1995
2009
  }
1996
2010
  //#endregion
1997
2011
  //#region src/composables/commandMenuAnimation.composable.ts
1998
- function Zt(e, t) {
2012
+ function Qt(e, t) {
1999
2013
  let n = p(!1), r = p(!1), i = null;
2000
2014
  return _(e, (e) => {
2001
2015
  e || (r.value = !1);
@@ -2012,18 +2026,18 @@ function Zt(e, t) {
2012
2026
  }
2013
2027
  //#endregion
2014
2028
  //#region src/composables/commandMenuNavigation.composable.ts
2015
- function Qt({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, manager: a, navStack: o, refreshActions: s, resolvedActions: c, scrollToTopOfGroup: l, searchInput: u, subActionsMetaMap: d }) {
2029
+ function $t({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, manager: a, navStack: o, refreshActions: s, resolvedActions: c, scrollToTopOfGroup: l, searchInput: u, subActionsMetaMap: d }) {
2016
2030
  let f = v(), m = p(null), h = t(() => o.value.at(-1)?.parentAction ?? null), g = t(() => {
2017
2031
  let e = n();
2018
2032
  return o.value.filter((e) => e.parentAction.forceAsRootMenu !== !0).map((t) => {
2019
2033
  let n = t.parentAction;
2020
- return n.nameAsParent === void 0 ? P(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;
2021
2035
  });
2022
2036
  }), _ = t(() => {
2023
2037
  if (h.value === null) return f.t("type_a_command_or_search");
2024
- let e = Le(h.value, n())?.placeholder;
2038
+ let e = R(h.value, n())?.placeholder;
2025
2039
  return e === void 0 ? f.t("search") : typeof e == "function" ? e() : e;
2026
- }), { preview: y, onKeyDown: b } = ze({
2040
+ }), { preview: y, onKeyDown: b } = Re({
2027
2041
  highlightedActionId: m,
2028
2042
  getContext: n,
2029
2043
  resolvedActions: c
@@ -2062,11 +2076,11 @@ function Qt({ isShiftKeyHeld: e, buildContext: n, emit: r, listboxRootRef: i, ma
2062
2076
  onKeyDown: C
2063
2077
  };
2064
2078
  }
2065
- function $t(e, t) {
2079
+ function en(e, t) {
2066
2080
  let n = [], r = e.parentAction ?? null;
2067
2081
  for (; r !== null;) {
2068
2082
  if (r.forceAsRootMenu === !0) return n;
2069
- let e = r.nameAsParent === void 0 ? F(r, t) : P(r.nameAsParent, t);
2083
+ let e = r.nameAsParent === void 0 ? I(r, t) : F(r.nameAsParent, t);
2070
2084
  n.unshift({
2071
2085
  icon: r.icon?.(t) ?? null,
2072
2086
  label: e
@@ -2076,8 +2090,8 @@ function $t(e, t) {
2076
2090
  }
2077
2091
  //#endregion
2078
2092
  //#region src/composables/focusedModels.composable.ts
2079
- function en(e) {
2080
- let t = L(), n = p(!1);
2093
+ function tn(e) {
2094
+ let t = z(), n = p(!1);
2081
2095
  function r() {
2082
2096
  n.value = !0, t.setFocusedModels([...t.focusedModels, ...e.value]);
2083
2097
  }
@@ -2095,8 +2109,8 @@ function en(e) {
2095
2109
  }
2096
2110
  //#endregion
2097
2111
  //#region src/composables/temporaryActions.composable.ts
2098
- function tn(e, t, n = !1) {
2099
- let r = Kt(), i = [];
2112
+ function nn(e, t, n = !1) {
2113
+ let r = qt(), i = [];
2100
2114
  function a() {
2101
2115
  i.length > 0 || (i = (Array.isArray(e) ? e : [e]).map((e) => r.registerTemporaryAction(s(e))));
2102
2116
  }
@@ -2122,8 +2136,8 @@ function tn(e, t, n = !1) {
2122
2136
  }
2123
2137
  //#endregion
2124
2138
  //#region src/composables/activeModels.composable.ts
2125
- function nn(e, t) {
2126
- let n = L();
2139
+ function rn(e, t) {
2140
+ let n = z();
2127
2141
  function r() {
2128
2142
  t === "focused" ? n.setFocusedModels([...n.focusedModels, ...e.value]) : n.setViewModels([...n.viewModels, ...e.value]);
2129
2143
  }
@@ -2138,23 +2152,23 @@ function nn(e, t) {
2138
2152
  }
2139
2153
  //#endregion
2140
2154
  //#region src/composables/viewModels.composable.ts
2141
- function rn(e) {
2142
- nn(e, "view");
2155
+ function an(e) {
2156
+ rn(e, "view");
2143
2157
  }
2144
2158
  //#endregion
2145
2159
  //#region src/utils/commandMenuGroups.util.ts
2146
- var an = 0, on = /* @__PURE__ */ new WeakMap();
2147
- function sn(e, t) {
2148
- return e === void 0 ? "no-group" : e.name ? P(e.name, t) : (on.has(e) || on.set(e, `unnamed-${an++}`), on.get(e));
2149
- }
2160
+ var on = 0, sn = /* @__PURE__ */ new WeakMap();
2150
2161
  function cn(e, t) {
2162
+ return e === void 0 ? "no-group" : e.name ? F(e.name, t) : (sn.has(e) || sn.set(e, `unnamed-${on++}`), sn.get(e));
2163
+ }
2164
+ function ln(e, t) {
2151
2165
  let n = /* @__PURE__ */ new Map();
2152
2166
  for (let r of e) {
2153
- let e = r.group, i = sn(e, t), a = n.get(i);
2167
+ let e = r.group, i = cn(e, t), a = n.get(i);
2154
2168
  if (a === void 0) {
2155
- let r = e?.name ? P(e.name, t) : null;
2169
+ let r = e?.name ? F(e.name, t) : null;
2156
2170
  a = {
2157
- category: e?.category ? P(e.category, t) : null,
2171
+ category: e?.category ? F(e.category, t) : null,
2158
2172
  icon: e?.icon?.(t) ?? null,
2159
2173
  items: [],
2160
2174
  key: i,
@@ -2167,4 +2181,4 @@ function cn(e, t) {
2167
2181
  return [...n.values()];
2168
2182
  }
2169
2183
  //#endregion
2170
- export { B as GroupPriority, e as actionsLocales, De as applicableActions, cn as buildCommandMenuGroups, Te as createAction, Ce as isAuthenticated, R as isSubActionsWithMeta, Fe as resolveActionAvatar, $t as resolveActionBreadcrumbs, Ie as resolveActionHint, F as resolveActionName, Re as resolveActionPreview, I as resolveActionSelected, P as resolveActionValue, M as resolveApplicable, Le as resolveSearchSubActionsConfig, Ue as resolveSubActions, we as setIsAuthenticated, z as storeSubActionsPagination, We as useActionDropdownMenuContent, Ge as useActionGroup, L as useActionManagerStore, ze as useActionPreview, Kt as useActionRegistryStore, Yt as useActionShortcuts, Xt as useCommandMenuActions, Zt as useCommandMenuAnimation, Qt as useCommandMenuNavigation, en as useFocusedModels, tn as useTemporaryActions, rn 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 };