@ximatai/muyun-web-app 0.26.11 → 0.26.12

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.
Files changed (142) hide show
  1. package/dist/ModuleActionManagementView-BHEooZ5L.js +672 -0
  2. package/dist/ModuleGovernanceView-DB3TWlMy.js +28521 -0
  3. package/dist/{RoleDetailWorkspaceView-UOm1ejGH.js → RoleDetailWorkspaceView-D6X7pAj5.js} +467 -457
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +1942 -359
  6. package/dist/moduleGovernanceWorkspaceView-C5pqJOEJ.js +40 -0
  7. package/dist/platform-workbench-DJj42YQP.js +22911 -0
  8. package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
  9. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
  10. package/dist/types/app/LoginView.vue.d.ts +1 -1
  11. package/dist/types/app/workbenchRouteSync.d.ts +10 -1
  12. package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
  13. package/dist/types/app/workbenchStartup.d.ts +7 -0
  14. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
  15. package/dist/types/consumer/index.d.ts +1 -0
  16. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  17. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +12 -1
  18. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +17 -0
  19. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
  20. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
  21. package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
  22. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +80 -26
  23. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +5 -0
  25. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
  26. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
  27. package/dist/types/dynamic-page-runtime/index.d.ts +1 -1
  28. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -0
  29. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
  30. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
  31. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -0
  32. package/dist/types/formula/FormulaRuntime.d.ts +6 -0
  33. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
  34. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
  35. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
  36. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
  37. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
  38. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
  39. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -3
  40. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  41. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
  42. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
  43. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  44. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
  45. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
  46. package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
  47. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +2 -0
  48. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -2
  49. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
  50. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
  51. package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
  52. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
  53. package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
  54. package/dist/types/platform-components/RecordFormFields.vue.d.ts +21 -2
  55. package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
  56. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
  57. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  58. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
  59. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
  60. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  61. package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
  62. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
  63. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +104 -61
  64. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +124 -0
  65. package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
  66. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
  67. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
  68. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  69. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
  70. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
  71. package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
  72. package/dist/types/platform-components/index.d.ts +20 -1
  73. package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
  74. package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
  75. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  76. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  77. package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
  78. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +42 -0
  79. package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
  80. package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
  81. package/dist/types/platform-workbench/index.d.ts +2 -0
  82. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
  83. package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
  84. package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
  85. package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
  86. package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
  87. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -0
  88. package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
  89. package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
  90. package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
  91. package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
  92. package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
  93. package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
  94. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
  95. package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
  96. package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
  97. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
  98. package/dist/types/views/businessRuleGovernance.d.ts +201 -0
  99. package/dist/types/views/metadataModelEditSession.d.ts +75 -0
  100. package/dist/types/views/metadataModelTree.d.ts +40 -0
  101. package/dist/types/views/metadataNaming.d.ts +7 -0
  102. package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
  103. package/dist/types/views/metadataSourceTree.d.ts +10 -0
  104. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
  105. package/dist/types/views/pageCompositionDraftState.d.ts +375 -0
  106. package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
  107. package/dist/types/views/pageCompositionMode.d.ts +86 -0
  108. package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
  109. package/dist/types/views/pageCompositionTransport.d.ts +9 -0
  110. package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
  111. package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
  112. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
  113. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
  114. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +5 -2
  115. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
  117. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +5 -1
  119. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
  121. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
  122. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
  123. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  124. package/dist/types/vue-ui-antdv/index.d.ts +6 -1
  125. package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
  126. package/dist/types/vue-ui-antdv/types.d.ts +64 -0
  127. package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
  128. package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
  129. package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
  130. package/dist/types/web-contracts/index.d.ts +67 -7
  131. package/dist/types/web-core/module/index.d.ts +1 -0
  132. package/dist/types/web-core/module/moduleContext.d.ts +15 -0
  133. package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
  134. package/dist/types/web-core/module/runtimeContext.d.ts +7 -3
  135. package/dist/types/web-core/module/staticModuleClient.d.ts +25 -2
  136. package/dist/workspaceViews-DI_1vYX9.js +3518 -0
  137. package/package.json +1 -1
  138. package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
  139. package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
  140. package/dist/platform-components-59b4qzUL.js +0 -12489
  141. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
  142. package/dist/workspaceViews-BvV8mpML.js +0 -11149
package/dist/index.js CHANGED
@@ -1,23 +1,1488 @@
1
- import { $ as e, $n as t, $t as n, An as r, Bn as i, Bt as a, Cn as o, Ct as s, Dn as c, Dt as l, En as u, Et as d, Fn as f, Gn as p, Gt as m, H as h, Hn as g, Ht as _, In as ee, Jn as te, Jt as v, Kn as y, Kt as b, Ln as ne, Lt as x, Mn as re, Mt as S, Nn as ie, On as ae, Pn as oe, Q as se, Qn as ce, Qt as le, Rn as ue, Sn as de, Tn as fe, Tt as pe, Un as me, Ut as he, Vn as ge, Vt as _e, Wn as ve, Wt as ye, X as be, Xn as xe, Xt as Se, Yn as Ce, Yt as we, Z as Te, Zn as Ee, Zt as De, _n as Oe, _t as ke, an as Ae, ar as je, bn as Me, cn as Ne, cr as Pe, ct as Fe, dn as Ie, dr as Le, en as Re, er as ze, et as Be, fn as Ve, ft as He, gn as Ue, gt as We, hn as Ge, in as Ke, ir as qe, it as Je, jn as Ye, jt as Xe, kn as Ze, kt as Qe, ln as $e, lr as et, lt as tt, mn as nt, nn as rt, nr as it, nt as at, on as C, or as ot, pn as st, q as ct, qn as lt, qt as ut, rn as dt, rr as ft, sn as pt, sr as mt, st as ht, tn as gt, tr as _t, tt as vt, un as yt, ur as bt, ut as xt, vn as St, wn as Ct, wt, xn as Tt, xt as Et, yn as Dt, yt as Ot, zn as kt, zt as At } from "./platform-components-59b4qzUL.js";
2
- import { $ as jt, A as Mt, B as Nt, C as Pt, D as Ft, F as It, G as Lt, H as Rt, I as zt, J as Bt, K as Vt, L as Ht, M as Ut, N as Wt, O as Gt, P as Kt, Q as qt, R as Jt, S as Yt, T as Xt, U as Zt, V as Qt, W as $t, X as en, Y as tn, Z as nn, _ as rn, _t as an, at as w, b as on, ct as T, d as sn, dt as cn, et as ln, f as un, ft as E, g as dn, gt as fn, h as pn, ht as mn, it as hn, j as gn, k as _n, l as vn, lt as yn, m as bn, mt as D, nt as xn, ot as Sn, p as Cn, pt as wn, q as Tn, rt as En, st as Dn, tt as On, u as kn, ut as An, v as jn, vt as O, w as Mn, x as Nn, y as Pn, z as k } from "./workspaceViews-BvV8mpML.js";
3
- import { Fragment as Fn, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as In, createVNode as F, defineAsyncComponent as Ln, defineComponent as I, normalizeClass as Rn, normalizeStyle as zn, onBeforeUnmount as Bn, onMounted as Vn, openBlock as L, provide as Hn, ref as R, renderList as Un, renderSlot as Wn, resolveDynamicComponent as Gn, toDisplayString as z, unref as B, watch as Kn, withCtx as V, withModifiers as qn } from "vue";
1
+ import { n as e, r as t } from "./rolldown-runtime-DPVXH0ON.js";
2
+ import { $n as n, An as r, Ar as i, At as a, Bn as o, Br as s, Bt as c, Cr as l, Ct as u, Dn as d, Dr as f, Dt as p, Er as m, Et as h, Fn as g, Fr as _, Ft as v, Gn as ee, Gr as te, Gt as ne, Hn as re, Hr as ie, Ht as y, In as ae, Ir as oe, It as se, Jn as ce, Jr as le, Jt as ue, Kn as de, Kr as fe, Kt as pe, Ln as me, Lr as he, Lt as ge, Mn as _e, Mr as ve, Mt as ye, Nn as be, Nr as xe, Nt as Se, On as Ce, Or as we, Ot as Te, Pn as Ee, Pr as De, Pt as Oe, Qn as ke, Rn as Ae, Rr as je, Rt as Me, S as Ne, Sr as Pe, St as Fe, Tn as Ie, Tr as Le, Tt as Re, Un as ze, Ur as Be, Ut as Ve, Vn as He, Vr as Ue, Vt as We, Wn as Ge, Wr as Ke, Wt as b, Xn as qe, Xr as Je, Xt as x, Y as Ye, Yn as Xe, Yr as Ze, Yt as Qe, Zn as $e, Zr as et, Zt as tt, _n as nt, _r as rt, a as it, an as at, ar as ot, b as st, bn as S, br as ct, bt as lt, c as ut, cn as dt, cr as ft, ct as pt, d as mt, dn as ht, dr as gt, dt as _t, er as vt, f as yt, fn as bt, fr as xt, ft as St, g as Ct, gr as wt, h as Tt, hn as Et, hr as Dt, ht as Ot, i as kt, ir as At, jn as jt, jr as Mt, jt as Nt, kn as Pt, kr as Ft, kt as It, l as Lt, ln as Rt, lr as zt, lt as Bt, m as C, mr as Vt, mt as Ht, n as Ut, nn as Wt, nr as Gt, o as Kt, or as qt, ot as Jt, p as Yt, pr as Xt, pt as Zt, qn as Qt, qr as $t, qt as w, r as en, rn as tn, rr as nn, s as rn, sr as an, t as on, tn as sn, tr as cn, u as ln, un, ur as dn, v as fn, vr as pn, vt as mn, wr as hn, x as gn, xr as _n, xt as vn, y as yn, yr as bn, yt as xn, zn as Sn, zr as Cn, zt as wn } from "./platform-workbench-DJj42YQP.js";
3
+ import { C as Tn, S as En, _ as Dn, b as On, d as kn, f as An, g as jn, h as Mn, l as Nn, m as Pn, p as Fn, u as In, v as Ln, y as Rn } from "./workspaceViews-DI_1vYX9.js";
4
+ import { r as zn } from "./moduleGovernanceWorkspaceView-C5pqJOEJ.js";
5
+ import * as Bn from "vue";
6
+ import { Fragment as Vn, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createTextVNode as Hn, createVNode as A, defineAsyncComponent as Un, defineComponent as j, normalizeClass as Wn, normalizeStyle as Gn, onBeforeUnmount as Kn, onMounted as qn, openBlock as M, provide as Jn, ref as N, renderList as Yn, renderSlot as Xn, resolveDynamicComponent as Zn, toDisplayString as P, unref as F, watch as Qn, withCtx as I, withModifiers as $n } from "vue";
7
+ //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
8
+ var er = class {
9
+ constructor() {
10
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
11
+ }
12
+ subscribe(e) {
13
+ return this.listeners.add(e), this.onSubscribe(), () => {
14
+ this.listeners.delete(e), this.onUnsubscribe();
15
+ };
16
+ }
17
+ hasListeners() {
18
+ return this.listeners.size > 0;
19
+ }
20
+ onSubscribe() {}
21
+ onUnsubscribe() {}
22
+ }, tr = new class extends er {
23
+ #e;
24
+ #t;
25
+ #n;
26
+ constructor() {
27
+ super(), this.#n = (e) => {
28
+ if (typeof window < "u" && window.addEventListener) {
29
+ let t = () => e();
30
+ return window.addEventListener("visibilitychange", t, !1), () => {
31
+ window.removeEventListener("visibilitychange", t);
32
+ };
33
+ }
34
+ };
35
+ }
36
+ onSubscribe() {
37
+ this.#t || this.setEventListener(this.#n);
38
+ }
39
+ onUnsubscribe() {
40
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
41
+ }
42
+ setEventListener(e) {
43
+ this.#n = e, this.#t?.(), this.#t = e((e) => {
44
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
45
+ });
46
+ }
47
+ setFocused(e) {
48
+ this.#e !== e && (this.#e = e, this.onFocus());
49
+ }
50
+ onFocus() {
51
+ let e = this.isFocused();
52
+ this.listeners.forEach((t) => {
53
+ t(e);
54
+ });
55
+ }
56
+ isFocused() {
57
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
58
+ }
59
+ }(), nr = {
60
+ setTimeout: (e, t) => setTimeout(e, t),
61
+ clearTimeout: (e) => clearTimeout(e),
62
+ setInterval: (e, t) => setInterval(e, t),
63
+ clearInterval: (e) => clearInterval(e)
64
+ }, rr = new class {
65
+ #e = nr;
66
+ #t = !1;
67
+ setTimeoutProvider(e) {
68
+ process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
69
+ previous: this.#e,
70
+ provider: e
71
+ }), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
72
+ }
73
+ setTimeout(e, t) {
74
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
75
+ }
76
+ clearTimeout(e) {
77
+ this.#e.clearTimeout(e);
78
+ }
79
+ setInterval(e, t) {
80
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
81
+ }
82
+ clearInterval(e) {
83
+ this.#e.clearInterval(e);
84
+ }
85
+ }();
86
+ function ir(e) {
87
+ setTimeout(e, 0);
88
+ }
89
+ //#endregion
90
+ //#region node_modules/@tanstack/query-core/build/modern/utils.js
91
+ var ar = typeof window > "u" || "Deno" in globalThis;
92
+ function L() {}
93
+ function or(e, t) {
94
+ return typeof e == "function" ? e(t) : e;
95
+ }
96
+ function sr(e) {
97
+ return typeof e == "number" && e >= 0 && e !== Infinity;
98
+ }
99
+ function cr(e, t) {
100
+ return Math.max(e + (t || 0) - Date.now(), 0);
101
+ }
102
+ function lr(e, t) {
103
+ return typeof e == "function" ? e(t) : e;
104
+ }
105
+ function ur(e, t) {
106
+ return typeof e == "function" ? e(t) : e;
107
+ }
108
+ function dr(e, t) {
109
+ let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
110
+ if (o) {
111
+ if (r) {
112
+ if (t.queryHash !== pr(o, t.options)) return !1;
113
+ } else if (!z(t.queryKey, o)) return !1;
114
+ }
115
+ if (n !== "all") {
116
+ let e = t.isActive();
117
+ if (n === "active" && !e || n === "inactive" && e) return !1;
118
+ }
119
+ return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
120
+ }
121
+ function fr(e, t) {
122
+ let { exact: n, status: r, predicate: i, mutationKey: a } = e;
123
+ if (a) {
124
+ if (!t.options.mutationKey) return !1;
125
+ if (n) {
126
+ if (R(t.options.mutationKey) !== R(a)) return !1;
127
+ } else if (!z(t.options.mutationKey, a)) return !1;
128
+ }
129
+ return !(r && t.state.status !== r || i && !i(t));
130
+ }
131
+ function pr(e, t) {
132
+ return (t?.queryKeyHashFn || R)(e);
133
+ }
134
+ function R(e) {
135
+ return JSON.stringify(e, (e, t) => _r(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
136
+ }
137
+ function z(e, t) {
138
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => z(e[n], t[n])) : !1;
139
+ }
140
+ var mr = Object.prototype.hasOwnProperty;
141
+ function hr(e, t, n = 0) {
142
+ if (e === t) return e;
143
+ if (n > 500) return t;
144
+ let r = gr(e) && gr(t);
145
+ if (!r && !(_r(e) && _r(t))) return t;
146
+ let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
147
+ for (let l = 0; l < o; l++) {
148
+ let o = r ? l : a[l], u = e[o], d = t[o];
149
+ if (u === d) {
150
+ s[o] = u, (r ? l < i : mr.call(e, o)) && c++;
151
+ continue;
152
+ }
153
+ if (u === null || d === null || typeof u != "object" || typeof d != "object") {
154
+ s[o] = d;
155
+ continue;
156
+ }
157
+ let f = hr(u, d, n + 1);
158
+ s[o] = f, f === u && c++;
159
+ }
160
+ return i === o && c === i ? e : s;
161
+ }
162
+ function gr(e) {
163
+ return Array.isArray(e) && e.length === Object.keys(e).length;
164
+ }
165
+ function _r(e) {
166
+ if (!vr(e)) return !1;
167
+ let t = e.constructor;
168
+ if (t === void 0) return !0;
169
+ let n = t.prototype;
170
+ return !(!vr(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
171
+ }
172
+ function vr(e) {
173
+ return Object.prototype.toString.call(e) === "[object Object]";
174
+ }
175
+ function yr(e) {
176
+ return new Promise((t) => {
177
+ rr.setTimeout(t, e);
178
+ });
179
+ }
180
+ function br(e, t, n) {
181
+ if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
182
+ if (n.structuralSharing !== !1) {
183
+ if (process.env.NODE_ENV !== "production") try {
184
+ return hr(e, t);
185
+ } catch (e) {
186
+ throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
187
+ }
188
+ return hr(e, t);
189
+ }
190
+ return t;
191
+ }
192
+ function xr(e, t, n = 0) {
193
+ let r = [...e, t];
194
+ return n && r.length > n ? r.slice(1) : r;
195
+ }
196
+ function Sr(e, t, n = 0) {
197
+ let r = [t, ...e];
198
+ return n && r.length > n ? r.slice(0, -1) : r;
199
+ }
200
+ var Cr = /* @__PURE__ */ Symbol();
201
+ function wr(e, t) {
202
+ return process.env.NODE_ENV !== "production" && e.queryFn === Cr && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Cr ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
203
+ }
204
+ function Tr(e, t, n) {
205
+ let r = !1, i;
206
+ return Object.defineProperty(e, "signal", {
207
+ enumerable: !0,
208
+ get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
209
+ }), e;
210
+ }
211
+ //#endregion
212
+ //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
213
+ var Er = /* @__PURE__ */ (() => {
214
+ let e = () => ar;
215
+ return {
216
+ isServer() {
217
+ return e();
218
+ },
219
+ setIsServer(t) {
220
+ e = t;
221
+ }
222
+ };
223
+ })();
224
+ //#endregion
225
+ //#region node_modules/@tanstack/query-core/build/modern/thenable.js
226
+ function Dr() {
227
+ let e, t, n = new Promise((n, r) => {
228
+ e = n, t = r;
229
+ });
230
+ n.status = "pending", n.catch(() => {});
231
+ function r(e) {
232
+ Object.assign(n, e), delete n.resolve, delete n.reject;
233
+ }
234
+ return n.resolve = (t) => {
235
+ r({
236
+ status: "fulfilled",
237
+ value: t
238
+ }), e(t);
239
+ }, n.reject = (e) => {
240
+ r({
241
+ status: "rejected",
242
+ reason: e
243
+ }), t(e);
244
+ }, n;
245
+ }
246
+ //#endregion
247
+ //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
248
+ var Or = ir;
249
+ function kr() {
250
+ let e = [], t = 0, n = (e) => {
251
+ e();
252
+ }, r = (e) => {
253
+ e();
254
+ }, i = Or, a = (r) => {
255
+ t ? e.push(r) : i(() => {
256
+ n(r);
257
+ });
258
+ }, o = () => {
259
+ let t = e;
260
+ e = [], t.length && i(() => {
261
+ r(() => {
262
+ t.forEach((e) => {
263
+ n(e);
264
+ });
265
+ });
266
+ });
267
+ };
268
+ return {
269
+ batch: (e) => {
270
+ let n;
271
+ t++;
272
+ try {
273
+ n = e();
274
+ } finally {
275
+ t--, t || o();
276
+ }
277
+ return n;
278
+ },
279
+ batchCalls: (e) => (...t) => {
280
+ a(() => {
281
+ e(...t);
282
+ });
283
+ },
284
+ schedule: a,
285
+ setNotifyFunction: (e) => {
286
+ n = e;
287
+ },
288
+ setBatchNotifyFunction: (e) => {
289
+ r = e;
290
+ },
291
+ setScheduler: (e) => {
292
+ i = e;
293
+ }
294
+ };
295
+ }
296
+ var B = kr(), V = new class extends er {
297
+ #e = !0;
298
+ #t;
299
+ #n;
300
+ constructor() {
301
+ super(), this.#n = (e) => {
302
+ if (typeof window < "u" && window.addEventListener) {
303
+ let t = () => e(!0), n = () => e(!1);
304
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
305
+ window.removeEventListener("online", t), window.removeEventListener("offline", n);
306
+ };
307
+ }
308
+ };
309
+ }
310
+ onSubscribe() {
311
+ this.#t || this.setEventListener(this.#n);
312
+ }
313
+ onUnsubscribe() {
314
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
315
+ }
316
+ setEventListener(e) {
317
+ this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
318
+ }
319
+ setOnline(e) {
320
+ this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
321
+ t(e);
322
+ }));
323
+ }
324
+ isOnline() {
325
+ return this.#e;
326
+ }
327
+ }();
328
+ //#endregion
329
+ //#region node_modules/@tanstack/query-core/build/modern/retryer.js
330
+ function Ar(e) {
331
+ return Math.min(1e3 * 2 ** e, 3e4);
332
+ }
333
+ function jr(e) {
334
+ return (e ?? "online") !== "online" || V.isOnline();
335
+ }
336
+ var Mr = class extends Error {
337
+ constructor(e) {
338
+ super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
339
+ }
340
+ };
341
+ function Nr(e) {
342
+ let t = !1, n = 0, r, i = Dr(), a = () => i.status !== "pending", o = (t) => {
343
+ if (!a()) {
344
+ let n = new Mr(t);
345
+ f(n), e.onCancel?.(n);
346
+ }
347
+ }, s = () => {
348
+ t = !0;
349
+ }, c = () => {
350
+ t = !1;
351
+ }, l = () => tr.isFocused() && (e.networkMode === "always" || V.isOnline()) && e.canRun(), u = () => jr(e.networkMode) && e.canRun(), d = (e) => {
352
+ a() || (r?.(), i.resolve(e));
353
+ }, f = (e) => {
354
+ a() || (r?.(), i.reject(e));
355
+ }, p = () => new Promise((t) => {
356
+ r = (e) => {
357
+ (a() || l()) && t(e);
358
+ }, e.onPause?.();
359
+ }).then(() => {
360
+ r = void 0, a() || e.onContinue?.();
361
+ }), m = () => {
362
+ if (a()) return;
363
+ let r, i = n === 0 ? e.initialPromise : void 0;
364
+ try {
365
+ r = i ?? e.fn();
366
+ } catch (e) {
367
+ r = Promise.reject(e);
368
+ }
369
+ Promise.resolve(r).then(d).catch((r) => {
370
+ if (a()) return;
371
+ let i = e.retry ?? (Er.isServer() ? 0 : 3), o = e.retryDelay ?? Ar, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
372
+ if (t || !c) {
373
+ f(r);
374
+ return;
375
+ }
376
+ n++, e.onFail?.(n, r), yr(s).then(() => l() ? void 0 : p()).then(() => {
377
+ t ? f(r) : m();
378
+ });
379
+ });
380
+ };
381
+ return {
382
+ promise: i,
383
+ status: () => i.status,
384
+ cancel: o,
385
+ continue: () => (r?.(), i),
386
+ cancelRetry: s,
387
+ continueRetry: c,
388
+ canStart: u,
389
+ start: () => (u() ? m() : p().then(m), i)
390
+ };
391
+ }
392
+ //#endregion
393
+ //#region node_modules/@tanstack/query-core/build/modern/removable.js
394
+ var Pr = class {
395
+ #e;
396
+ destroy() {
397
+ this.clearGcTimeout();
398
+ }
399
+ scheduleGc() {
400
+ this.clearGcTimeout(), sr(this.gcTime) && (this.#e = rr.setTimeout(() => {
401
+ this.optionalRemove();
402
+ }, this.gcTime));
403
+ }
404
+ updateGcTime(e) {
405
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Er.isServer() ? Infinity : 3e5));
406
+ }
407
+ clearGcTimeout() {
408
+ this.#e !== void 0 && (rr.clearTimeout(this.#e), this.#e = void 0);
409
+ }
410
+ };
411
+ //#endregion
412
+ //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
413
+ function Fr(e) {
414
+ return { onFetch: (t, n) => {
415
+ let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
416
+ pages: [],
417
+ pageParams: []
418
+ }, c = 0, l = async () => {
419
+ let n = !1, l = (e) => {
420
+ Tr(e, () => t.signal, () => n = !0);
421
+ }, u = wr(t.options, t.fetchOptions), d = async (e, r, i) => {
422
+ if (n) return Promise.reject(t.signal.reason);
423
+ if (r == null && e.pages.length) return Promise.resolve(e);
424
+ let a = (() => {
425
+ let e = {
426
+ client: t.client,
427
+ queryKey: t.queryKey,
428
+ pageParam: r,
429
+ direction: i ? "backward" : "forward",
430
+ meta: t.options.meta
431
+ };
432
+ return l(e), e;
433
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? Sr : xr;
434
+ return {
435
+ pages: c(e.pages, o, s),
436
+ pageParams: c(e.pageParams, r, s)
437
+ };
438
+ };
439
+ if (i && a.length) {
440
+ let e = i === "backward", t = e ? Lr : Ir, n = {
441
+ pages: a,
442
+ pageParams: o
443
+ };
444
+ s = await d(n, t(r, n), e);
445
+ } else {
446
+ let t = e ?? a.length;
447
+ do {
448
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ir(r, s);
449
+ if (c > 0 && e == null) break;
450
+ s = await d(s, e), c++;
451
+ } while (c < t);
452
+ }
453
+ return s;
454
+ };
455
+ t.fetchFn = t.options.persister ? () => t.options.persister?.(l, {
456
+ client: t.client,
457
+ queryKey: t.queryKey,
458
+ meta: t.options.meta,
459
+ signal: t.signal
460
+ }, n) : l;
461
+ } };
462
+ }
463
+ function Ir(e, { pages: t, pageParams: n }) {
464
+ let r = t.length - 1;
465
+ return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
466
+ }
467
+ function Lr(e, { pages: t, pageParams: n }) {
468
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
469
+ }
470
+ //#endregion
471
+ //#region node_modules/@tanstack/query-core/build/modern/query.js
472
+ var Rr = class extends Pr {
473
+ #e;
474
+ #t;
475
+ #n;
476
+ #r;
477
+ #i;
478
+ #a;
479
+ #o;
480
+ #s;
481
+ constructor(e) {
482
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Vr(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
483
+ }
484
+ get meta() {
485
+ return this.options.meta;
486
+ }
487
+ get queryType() {
488
+ return this.#e;
489
+ }
490
+ get promise() {
491
+ return this.#a?.promise;
492
+ }
493
+ setOptions(e) {
494
+ if (this.options = {
495
+ ...this.#o,
496
+ ...e
497
+ }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
498
+ let e = Vr(this.options);
499
+ e.data !== void 0 && (this.setState(Br(e.data, e.dataUpdatedAt)), this.#t = e);
500
+ }
501
+ }
502
+ optionalRemove() {
503
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
504
+ }
505
+ setData(e, t) {
506
+ let n = br(this.state.data, e, this.options);
507
+ return this.#l({
508
+ data: n,
509
+ type: "success",
510
+ dataUpdatedAt: t?.updatedAt,
511
+ manual: t?.manual
512
+ }), n;
513
+ }
514
+ setState(e) {
515
+ this.#l({
516
+ type: "setState",
517
+ state: e
518
+ });
519
+ }
520
+ cancel(e) {
521
+ let t = this.#a?.promise;
522
+ return this.#a?.cancel(e), t ? t.then(L).catch(L) : Promise.resolve();
523
+ }
524
+ destroy() {
525
+ super.destroy(), this.cancel({ silent: !0 });
526
+ }
527
+ get resetState() {
528
+ return this.#t;
529
+ }
530
+ reset() {
531
+ this.destroy(), this.setState(this.resetState);
532
+ }
533
+ isActive() {
534
+ return this.observers.some((e) => ur(e.options.enabled, this) !== !1);
535
+ }
536
+ isDisabled() {
537
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Cr || !this.isFetched();
538
+ }
539
+ isFetched() {
540
+ return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
541
+ }
542
+ isStatic() {
543
+ return this.getObserversCount() > 0 && this.observers.some((e) => lr(e.options.staleTime, this) === "static");
544
+ }
545
+ isStale() {
546
+ return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
547
+ }
548
+ isStaleByTime(e = 0) {
549
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !cr(this.state.dataUpdatedAt, e);
550
+ }
551
+ onFocus() {
552
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
553
+ }
554
+ onOnline() {
555
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
556
+ }
557
+ addObserver(e) {
558
+ this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
559
+ type: "observerAdded",
560
+ query: this,
561
+ observer: e
562
+ }));
563
+ }
564
+ removeObserver(e) {
565
+ this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
566
+ type: "observerRemoved",
567
+ query: this,
568
+ observer: e
569
+ }));
570
+ }
571
+ getObserversCount() {
572
+ return this.observers.length;
573
+ }
574
+ #c() {
575
+ return this.state.fetchStatus === "paused" && this.state.status === "pending";
576
+ }
577
+ invalidate() {
578
+ this.state.isInvalidated || this.#l({ type: "invalidate" });
579
+ }
580
+ async fetch(e, t) {
581
+ if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
582
+ if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
583
+ else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
584
+ }
585
+ if (e && this.setOptions(e), !this.options.queryFn) {
586
+ let e = this.observers.find((e) => e.options.queryFn);
587
+ e && this.setOptions(e.options);
588
+ }
589
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
590
+ let n = new AbortController(), r = (e) => {
591
+ Object.defineProperty(e, "signal", {
592
+ enumerable: !0,
593
+ get: () => (this.#s = !0, n.signal)
594
+ });
595
+ }, i = () => {
596
+ let e = wr(this.options, t), n = (() => {
597
+ let e = {
598
+ client: this.#i,
599
+ queryKey: this.queryKey,
600
+ meta: this.meta
601
+ };
602
+ return r(e), e;
603
+ })();
604
+ return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
605
+ }, a = (() => {
606
+ let e = {
607
+ fetchOptions: t,
608
+ options: this.options,
609
+ queryKey: this.queryKey,
610
+ client: this.#i,
611
+ state: this.state,
612
+ fetchFn: i
613
+ };
614
+ return r(e), e;
615
+ })();
616
+ (this.#e === "infinite" ? Fr(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
617
+ type: "fetch",
618
+ meta: a.fetchOptions?.meta
619
+ }), this.#a = Nr({
620
+ initialPromise: t?.initialPromise,
621
+ fn: a.fetchFn,
622
+ onCancel: (e) => {
623
+ e instanceof Mr && e.revert && this.setState({
624
+ ...this.#n,
625
+ fetchStatus: "idle"
626
+ }), n.abort();
627
+ },
628
+ onFail: (e, t) => {
629
+ this.#l({
630
+ type: "failed",
631
+ failureCount: e,
632
+ error: t
633
+ });
634
+ },
635
+ onPause: () => {
636
+ this.#l({ type: "pause" });
637
+ },
638
+ onContinue: () => {
639
+ this.#l({ type: "continue" });
640
+ },
641
+ retry: a.options.retry,
642
+ retryDelay: a.options.retryDelay,
643
+ networkMode: a.options.networkMode,
644
+ canRun: () => !0
645
+ });
646
+ try {
647
+ let e = await this.#a.start();
648
+ if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
649
+ return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
650
+ } catch (e) {
651
+ if (e instanceof Mr) {
652
+ if (e.silent) return this.#a.promise;
653
+ if (e.revert) {
654
+ if (this.state.data === void 0) throw e;
655
+ return this.state.data;
656
+ }
657
+ }
658
+ throw this.#l({
659
+ type: "error",
660
+ error: e
661
+ }), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
662
+ } finally {
663
+ this.scheduleGc();
664
+ }
665
+ }
666
+ #l(e) {
667
+ let t = (t) => {
668
+ switch (e.type) {
669
+ case "failed": return {
670
+ ...t,
671
+ fetchFailureCount: e.failureCount,
672
+ fetchFailureReason: e.error
673
+ };
674
+ case "pause": return {
675
+ ...t,
676
+ fetchStatus: "paused"
677
+ };
678
+ case "continue": return {
679
+ ...t,
680
+ fetchStatus: "fetching"
681
+ };
682
+ case "fetch": return {
683
+ ...t,
684
+ ...zr(t.data, this.options),
685
+ fetchMeta: e.meta ?? null
686
+ };
687
+ case "success":
688
+ let n = {
689
+ ...t,
690
+ ...Br(e.data, e.dataUpdatedAt),
691
+ dataUpdateCount: t.dataUpdateCount + 1,
692
+ ...!e.manual && {
693
+ fetchStatus: "idle",
694
+ fetchFailureCount: 0,
695
+ fetchFailureReason: null
696
+ }
697
+ };
698
+ return this.#n = e.manual ? n : void 0, n;
699
+ case "error":
700
+ let r = e.error;
701
+ return {
702
+ ...t,
703
+ error: r,
704
+ errorUpdateCount: t.errorUpdateCount + 1,
705
+ errorUpdatedAt: Date.now(),
706
+ fetchFailureCount: t.fetchFailureCount + 1,
707
+ fetchFailureReason: r,
708
+ fetchStatus: "idle",
709
+ status: "error",
710
+ isInvalidated: !0
711
+ };
712
+ case "invalidate": return {
713
+ ...t,
714
+ isInvalidated: !0
715
+ };
716
+ case "setState": return {
717
+ ...t,
718
+ ...e.state
719
+ };
720
+ }
721
+ };
722
+ this.state = t(this.state), B.batch(() => {
723
+ this.observers.forEach((e) => {
724
+ e.onQueryUpdate();
725
+ }), this.#r.notify({
726
+ query: this,
727
+ type: "updated",
728
+ action: e
729
+ });
730
+ });
731
+ }
732
+ };
733
+ function zr(e, t) {
734
+ return {
735
+ fetchFailureCount: 0,
736
+ fetchFailureReason: null,
737
+ fetchStatus: jr(t.networkMode) ? "fetching" : "paused",
738
+ ...e === void 0 && {
739
+ error: null,
740
+ status: "pending"
741
+ }
742
+ };
743
+ }
744
+ function Br(e, t) {
745
+ return {
746
+ data: e,
747
+ dataUpdatedAt: t ?? Date.now(),
748
+ error: null,
749
+ isInvalidated: !1,
750
+ status: "success"
751
+ };
752
+ }
753
+ function Vr(e) {
754
+ let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
755
+ return {
756
+ data: t,
757
+ dataUpdateCount: 0,
758
+ dataUpdatedAt: n ? r ?? Date.now() : 0,
759
+ error: null,
760
+ errorUpdateCount: 0,
761
+ errorUpdatedAt: 0,
762
+ fetchFailureCount: 0,
763
+ fetchFailureReason: null,
764
+ fetchMeta: null,
765
+ isInvalidated: !1,
766
+ status: n ? "success" : "pending",
767
+ fetchStatus: "idle"
768
+ };
769
+ }
770
+ //#endregion
771
+ //#region node_modules/@tanstack/query-core/build/modern/mutation.js
772
+ var Hr = class extends Pr {
773
+ #e;
774
+ #t;
775
+ #n;
776
+ #r;
777
+ constructor(e) {
778
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ur(), this.setOptions(e.options), this.scheduleGc();
779
+ }
780
+ setOptions(e) {
781
+ this.options = e, this.updateGcTime(this.options.gcTime);
782
+ }
783
+ get meta() {
784
+ return this.options.meta;
785
+ }
786
+ addObserver(e) {
787
+ this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
788
+ type: "observerAdded",
789
+ mutation: this,
790
+ observer: e
791
+ }));
792
+ }
793
+ removeObserver(e) {
794
+ this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
795
+ type: "observerRemoved",
796
+ mutation: this,
797
+ observer: e
798
+ });
799
+ }
800
+ optionalRemove() {
801
+ this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
802
+ }
803
+ continue() {
804
+ return this.#r?.continue() ?? this.execute(this.state.variables);
805
+ }
806
+ async execute(e) {
807
+ let t = () => {
808
+ this.#i({ type: "continue" });
809
+ }, n = {
810
+ client: this.#e,
811
+ meta: this.options.meta,
812
+ mutationKey: this.options.mutationKey
813
+ };
814
+ this.#r = Nr({
815
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
816
+ onFail: (e, t) => {
817
+ this.#i({
818
+ type: "failed",
819
+ failureCount: e,
820
+ error: t
821
+ });
822
+ },
823
+ onPause: () => {
824
+ this.#i({ type: "pause" });
825
+ },
826
+ onContinue: t,
827
+ retry: this.options.retry ?? 0,
828
+ retryDelay: this.options.retryDelay,
829
+ networkMode: this.options.networkMode,
830
+ canRun: () => this.#n.canRun(this)
831
+ });
832
+ let r = this.state.status === "pending", i = !this.#r.canStart();
833
+ try {
834
+ if (r) t();
835
+ else {
836
+ this.#i({
837
+ type: "pending",
838
+ variables: e,
839
+ isPaused: i
840
+ }), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
841
+ let t = await this.options.onMutate?.(e, n);
842
+ t !== this.state.context && this.#i({
843
+ type: "pending",
844
+ context: t,
845
+ variables: e,
846
+ isPaused: i
847
+ });
848
+ }
849
+ let a = await this.#r.start();
850
+ return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
851
+ type: "success",
852
+ data: a
853
+ }), a;
854
+ } catch (t) {
855
+ try {
856
+ await this.#n.config.onError?.(t, e, this.state.context, this, n);
857
+ } catch (e) {
858
+ Promise.reject(e);
859
+ }
860
+ try {
861
+ await this.options.onError?.(t, e, this.state.context, n);
862
+ } catch (e) {
863
+ Promise.reject(e);
864
+ }
865
+ try {
866
+ await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
867
+ } catch (e) {
868
+ Promise.reject(e);
869
+ }
870
+ try {
871
+ await this.options.onSettled?.(void 0, t, e, this.state.context, n);
872
+ } catch (e) {
873
+ Promise.reject(e);
874
+ }
875
+ throw this.#i({
876
+ type: "error",
877
+ error: t
878
+ }), t;
879
+ } finally {
880
+ this.#n.runNext(this);
881
+ }
882
+ }
883
+ #i(e) {
884
+ let t = (t) => {
885
+ switch (e.type) {
886
+ case "failed": return {
887
+ ...t,
888
+ failureCount: e.failureCount,
889
+ failureReason: e.error
890
+ };
891
+ case "pause": return {
892
+ ...t,
893
+ isPaused: !0
894
+ };
895
+ case "continue": return {
896
+ ...t,
897
+ isPaused: !1
898
+ };
899
+ case "pending": return {
900
+ ...t,
901
+ context: e.context,
902
+ data: void 0,
903
+ failureCount: 0,
904
+ failureReason: null,
905
+ error: null,
906
+ isPaused: e.isPaused,
907
+ status: "pending",
908
+ variables: e.variables,
909
+ submittedAt: Date.now()
910
+ };
911
+ case "success": return {
912
+ ...t,
913
+ data: e.data,
914
+ failureCount: 0,
915
+ failureReason: null,
916
+ error: null,
917
+ status: "success",
918
+ isPaused: !1
919
+ };
920
+ case "error": return {
921
+ ...t,
922
+ data: void 0,
923
+ error: e.error,
924
+ failureCount: t.failureCount + 1,
925
+ failureReason: e.error,
926
+ isPaused: !1,
927
+ status: "error"
928
+ };
929
+ }
930
+ };
931
+ this.state = t(this.state), B.batch(() => {
932
+ this.#t.forEach((t) => {
933
+ t.onMutationUpdate(e);
934
+ }), this.#n.notify({
935
+ mutation: this,
936
+ type: "updated",
937
+ action: e
938
+ });
939
+ });
940
+ }
941
+ };
942
+ function Ur() {
943
+ return {
944
+ context: void 0,
945
+ data: void 0,
946
+ error: null,
947
+ failureCount: 0,
948
+ failureReason: null,
949
+ isPaused: !1,
950
+ status: "idle",
951
+ variables: void 0,
952
+ submittedAt: 0
953
+ };
954
+ }
955
+ //#endregion
956
+ //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
957
+ var Wr = class extends er {
958
+ constructor(e = {}) {
959
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
960
+ }
961
+ #e;
962
+ #t;
963
+ #n;
964
+ build(e, t, n) {
965
+ let r = new Hr({
966
+ client: e,
967
+ mutationCache: this,
968
+ mutationId: ++this.#n,
969
+ options: e.defaultMutationOptions(t),
970
+ state: n
971
+ });
972
+ return this.add(r), r;
973
+ }
974
+ add(e) {
975
+ this.#e.add(e);
976
+ let t = Gr(e);
977
+ if (typeof t == "string") {
978
+ let n = this.#t.get(t);
979
+ n ? n.push(e) : this.#t.set(t, [e]);
980
+ }
981
+ this.notify({
982
+ type: "added",
983
+ mutation: e
984
+ });
985
+ }
986
+ remove(e) {
987
+ if (this.#e.delete(e)) {
988
+ let t = Gr(e);
989
+ if (typeof t == "string") {
990
+ let n = this.#t.get(t);
991
+ if (n) {
992
+ if (n.length > 1) {
993
+ let t = n.indexOf(e);
994
+ t !== -1 && n.splice(t, 1);
995
+ } else n[0] === e && this.#t.delete(t);
996
+ }
997
+ }
998
+ }
999
+ this.notify({
1000
+ type: "removed",
1001
+ mutation: e
1002
+ });
1003
+ }
1004
+ canRun(e) {
1005
+ let t = Gr(e);
1006
+ if (typeof t == "string") {
1007
+ let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
1008
+ return !n || n === e;
1009
+ }
1010
+ return !0;
1011
+ }
1012
+ runNext(e) {
1013
+ let t = Gr(e);
1014
+ return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
1015
+ }
1016
+ clear() {
1017
+ B.batch(() => {
1018
+ this.#e.forEach((e) => {
1019
+ this.notify({
1020
+ type: "removed",
1021
+ mutation: e
1022
+ });
1023
+ }), this.#e.clear(), this.#t.clear();
1024
+ });
1025
+ }
1026
+ getAll() {
1027
+ return Array.from(this.#e);
1028
+ }
1029
+ find(e) {
1030
+ let t = {
1031
+ exact: !0,
1032
+ ...e
1033
+ };
1034
+ return this.getAll().find((e) => fr(t, e));
1035
+ }
1036
+ findAll(e = {}) {
1037
+ return this.getAll().filter((t) => fr(e, t));
1038
+ }
1039
+ notify(e) {
1040
+ B.batch(() => {
1041
+ this.listeners.forEach((t) => {
1042
+ t(e);
1043
+ });
1044
+ });
1045
+ }
1046
+ resumePausedMutations() {
1047
+ let e = this.getAll().filter((e) => e.state.isPaused);
1048
+ return B.batch(() => Promise.all(e.map((e) => e.continue().catch(L))));
1049
+ }
1050
+ };
1051
+ function Gr(e) {
1052
+ return e.options.scope?.id;
1053
+ }
1054
+ //#endregion
1055
+ //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1056
+ var Kr = class extends er {
1057
+ constructor(e = {}) {
1058
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1059
+ }
1060
+ #e;
1061
+ build(e, t, n) {
1062
+ let r = t.queryKey, i = t.queryHash ?? pr(r, t), a = this.get(i);
1063
+ return a || (a = new Rr({
1064
+ client: e,
1065
+ queryKey: r,
1066
+ queryHash: i,
1067
+ options: e.defaultQueryOptions(t),
1068
+ state: n,
1069
+ defaultOptions: e.getQueryDefaults(r)
1070
+ }), this.add(a)), a;
1071
+ }
1072
+ add(e) {
1073
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
1074
+ type: "added",
1075
+ query: e
1076
+ }));
1077
+ }
1078
+ remove(e) {
1079
+ let t = this.#e.get(e.queryHash);
1080
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
1081
+ type: "removed",
1082
+ query: e
1083
+ }));
1084
+ }
1085
+ clear() {
1086
+ B.batch(() => {
1087
+ this.getAll().forEach((e) => {
1088
+ this.remove(e);
1089
+ });
1090
+ });
1091
+ }
1092
+ get(e) {
1093
+ return this.#e.get(e);
1094
+ }
1095
+ getAll() {
1096
+ return [...this.#e.values()];
1097
+ }
1098
+ find(e) {
1099
+ let t = {
1100
+ exact: !0,
1101
+ ...e
1102
+ };
1103
+ return this.getAll().find((e) => dr(t, e));
1104
+ }
1105
+ findAll(e = {}) {
1106
+ let t = this.getAll();
1107
+ return Object.keys(e).length > 0 ? t.filter((t) => dr(e, t)) : t;
1108
+ }
1109
+ notify(e) {
1110
+ B.batch(() => {
1111
+ this.listeners.forEach((t) => {
1112
+ t(e);
1113
+ });
1114
+ });
1115
+ }
1116
+ onFocus() {
1117
+ B.batch(() => {
1118
+ this.getAll().forEach((e) => {
1119
+ e.onFocus();
1120
+ });
1121
+ });
1122
+ }
1123
+ onOnline() {
1124
+ B.batch(() => {
1125
+ this.getAll().forEach((e) => {
1126
+ e.onOnline();
1127
+ });
1128
+ });
1129
+ }
1130
+ }, qr = class {
1131
+ #e;
1132
+ #t;
1133
+ #n;
1134
+ #r;
1135
+ #i;
1136
+ #a;
1137
+ #o;
1138
+ #s;
1139
+ constructor(e = {}) {
1140
+ this.#e = e.queryCache || new Kr(), this.#t = e.mutationCache || new Wr(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1141
+ }
1142
+ mount() {
1143
+ this.#a++, this.#a === 1 && (this.#o = tr.subscribe(async (e) => {
1144
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
1145
+ }), this.#s = V.subscribe(async (e) => {
1146
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
1147
+ }));
1148
+ }
1149
+ unmount() {
1150
+ this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
1151
+ }
1152
+ isFetching(e) {
1153
+ return this.#e.findAll({
1154
+ ...e,
1155
+ fetchStatus: "fetching"
1156
+ }).length;
1157
+ }
1158
+ isMutating(e) {
1159
+ return this.#t.findAll({
1160
+ ...e,
1161
+ status: "pending"
1162
+ }).length;
1163
+ }
1164
+ getQueryData(e) {
1165
+ let t = this.defaultQueryOptions({ queryKey: e });
1166
+ return this.#e.get(t.queryHash)?.state.data;
1167
+ }
1168
+ ensureQueryData(e) {
1169
+ let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
1170
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(lr(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1171
+ }
1172
+ getQueriesData(e) {
1173
+ return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
1174
+ }
1175
+ setQueryData(e, t, n) {
1176
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = or(t, i);
1177
+ if (a !== void 0) return this.#e.build(this, r).setData(a, {
1178
+ ...n,
1179
+ manual: !0
1180
+ });
1181
+ }
1182
+ setQueriesData(e, t, n) {
1183
+ return B.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1184
+ }
1185
+ getQueryState(e) {
1186
+ let t = this.defaultQueryOptions({ queryKey: e });
1187
+ return this.#e.get(t.queryHash)?.state;
1188
+ }
1189
+ removeQueries(e) {
1190
+ let t = this.#e;
1191
+ B.batch(() => {
1192
+ t.findAll(e).forEach((e) => {
1193
+ t.remove(e);
1194
+ });
1195
+ });
1196
+ }
1197
+ resetQueries(e, t) {
1198
+ let n = this.#e;
1199
+ return B.batch(() => (n.findAll(e).forEach((e) => {
1200
+ e.reset();
1201
+ }), this.refetchQueries({
1202
+ type: "active",
1203
+ ...e
1204
+ }, t)));
1205
+ }
1206
+ cancelQueries(e, t = {}) {
1207
+ let n = {
1208
+ revert: !0,
1209
+ ...t
1210
+ }, r = B.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1211
+ return Promise.all(r).then(L).catch(L);
1212
+ }
1213
+ invalidateQueries(e, t = {}) {
1214
+ return B.batch(() => (this.#e.findAll(e).forEach((e) => {
1215
+ e.invalidate();
1216
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
1217
+ ...e,
1218
+ type: e?.refetchType ?? e?.type ?? "active"
1219
+ }, t)));
1220
+ }
1221
+ refetchQueries(e, t = {}) {
1222
+ let n = {
1223
+ ...t,
1224
+ cancelRefetch: t.cancelRefetch ?? !0
1225
+ }, r = B.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1226
+ let t = e.fetch(void 0, n);
1227
+ return n.throwOnError || (t = t.catch(L)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1228
+ }));
1229
+ return Promise.all(r).then(L);
1230
+ }
1231
+ fetchQuery(e) {
1232
+ let t = this.defaultQueryOptions(e);
1233
+ t.retry === void 0 && (t.retry = !1);
1234
+ let n = this.#e.build(this, t);
1235
+ return n.isStaleByTime(lr(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1236
+ }
1237
+ prefetchQuery(e) {
1238
+ return this.fetchQuery(e).then(L).catch(L);
1239
+ }
1240
+ fetchInfiniteQuery(e) {
1241
+ return e._type = "infinite", this.fetchQuery(e);
1242
+ }
1243
+ prefetchInfiniteQuery(e) {
1244
+ return this.fetchInfiniteQuery(e).then(L).catch(L);
1245
+ }
1246
+ ensureInfiniteQueryData(e) {
1247
+ return e._type = "infinite", this.ensureQueryData(e);
1248
+ }
1249
+ resumePausedMutations() {
1250
+ return V.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1251
+ }
1252
+ getQueryCache() {
1253
+ return this.#e;
1254
+ }
1255
+ getMutationCache() {
1256
+ return this.#t;
1257
+ }
1258
+ getDefaultOptions() {
1259
+ return this.#n;
1260
+ }
1261
+ setDefaultOptions(e) {
1262
+ this.#n = e;
1263
+ }
1264
+ setQueryDefaults(e, t) {
1265
+ this.#r.set(R(e), {
1266
+ queryKey: e,
1267
+ defaultOptions: t
1268
+ });
1269
+ }
1270
+ getQueryDefaults(e) {
1271
+ let t = [...this.#r.values()], n = {};
1272
+ return t.forEach((t) => {
1273
+ z(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1274
+ }), n;
1275
+ }
1276
+ setMutationDefaults(e, t) {
1277
+ this.#i.set(R(e), {
1278
+ mutationKey: e,
1279
+ defaultOptions: t
1280
+ });
1281
+ }
1282
+ getMutationDefaults(e) {
1283
+ let t = [...this.#i.values()], n = {};
1284
+ return t.forEach((t) => {
1285
+ z(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1286
+ }), n;
1287
+ }
1288
+ defaultQueryOptions(e) {
1289
+ if (e._defaulted) return e;
1290
+ let t = {
1291
+ ...this.#n.queries,
1292
+ ...this.getQueryDefaults(e.queryKey),
1293
+ ...e,
1294
+ _defaulted: !0
1295
+ };
1296
+ return t.queryHash ||= pr(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Cr && (t.enabled = !1), t;
1297
+ }
1298
+ defaultMutationOptions(e) {
1299
+ return e?._defaulted ? e : {
1300
+ ...this.#n.mutations,
1301
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
1302
+ ...e,
1303
+ _defaulted: !0
1304
+ };
1305
+ }
1306
+ clear() {
1307
+ this.#e.clear(), this.#t.clear();
1308
+ }
1309
+ }, H = /* @__PURE__ */ e({
1310
+ Vue: () => Bn,
1311
+ Vue2: () => void 0,
1312
+ del: () => Zr,
1313
+ install: () => Yr,
1314
+ isVue2: () => !1,
1315
+ isVue3: () => !0,
1316
+ set: () => Xr
1317
+ });
1318
+ import * as Jr from "vue";
1319
+ t(H, Jr);
1320
+ function Yr() {}
1321
+ function Xr(e, t, n) {
1322
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
1323
+ }
1324
+ function Zr(e, t) {
1325
+ if (Array.isArray(e)) {
1326
+ e.splice(t, 1);
1327
+ return;
1328
+ }
1329
+ delete e[t];
1330
+ }
1331
+ //#endregion
1332
+ //#region node_modules/@tanstack/vue-query/build/modern/utils.js
1333
+ var Qr = "VUE_QUERY_CLIENT";
1334
+ function $r(e) {
1335
+ return `${Qr}${e ? `:${e}` : ""}`;
1336
+ }
1337
+ function ei(e, t, n = "", r = 0) {
1338
+ if (t) {
1339
+ let i = t(e, n, r);
1340
+ if (i === void 0 && (0, H.isRef)(e) || i !== void 0) return i;
1341
+ }
1342
+ if (Array.isArray(e)) return e.map((e, n) => ei(e, t, String(n), r + 1));
1343
+ if (typeof e == "object" && ni(e)) {
1344
+ let n = Object.entries(e).map(([e, n]) => [e, ei(n, t, e, r + 1)]);
1345
+ return Object.fromEntries(n);
1346
+ }
1347
+ return e;
1348
+ }
1349
+ function ti(e, t) {
1350
+ return ei(e, t);
1351
+ }
1352
+ function U(e, t = !1) {
1353
+ return ti(e, (e, n, r) => {
1354
+ if (r === 1 && n === "queryKey") return U(e, !0);
1355
+ if (t && ri(e)) return U(e(), t);
1356
+ if ((0, H.isRef)(e)) return U((0, H.unref)(e), t);
1357
+ });
1358
+ }
1359
+ function ni(e) {
1360
+ if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
1361
+ let t = Object.getPrototypeOf(e);
1362
+ return t === null || t === Object.prototype;
1363
+ }
1364
+ function ri(e) {
1365
+ return typeof e == "function";
1366
+ }
1367
+ //#endregion
1368
+ //#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
1369
+ var ii = class extends Kr {
1370
+ find(e) {
1371
+ return super.find(U(e));
1372
+ }
1373
+ findAll(e = {}) {
1374
+ return super.findAll(U(e));
1375
+ }
1376
+ }, ai = class extends Wr {
1377
+ find(e) {
1378
+ return super.find(U(e));
1379
+ }
1380
+ findAll(e = {}) {
1381
+ return super.findAll(U(e));
1382
+ }
1383
+ }, oi = class extends qr {
1384
+ constructor(e = {}) {
1385
+ let t = {
1386
+ defaultOptions: e.defaultOptions,
1387
+ queryCache: e.queryCache || new ii(),
1388
+ mutationCache: e.mutationCache || new ai()
1389
+ };
1390
+ super(t), this.isRestoring = (0, H.ref)(!1);
1391
+ }
1392
+ isFetching(e = {}) {
1393
+ return super.isFetching(U(e));
1394
+ }
1395
+ isMutating(e = {}) {
1396
+ return super.isMutating(U(e));
1397
+ }
1398
+ getQueryData(e) {
1399
+ return super.getQueryData(U(e));
1400
+ }
1401
+ ensureQueryData(e) {
1402
+ return super.ensureQueryData(U(e));
1403
+ }
1404
+ getQueriesData(e) {
1405
+ return super.getQueriesData(U(e));
1406
+ }
1407
+ setQueryData(e, t, n = {}) {
1408
+ return super.setQueryData(U(e), t, U(n));
1409
+ }
1410
+ setQueriesData(e, t, n = {}) {
1411
+ return super.setQueriesData(U(e), t, U(n));
1412
+ }
1413
+ getQueryState(e) {
1414
+ return super.getQueryState(U(e));
1415
+ }
1416
+ removeQueries(e = {}) {
1417
+ return super.removeQueries(U(e));
1418
+ }
1419
+ resetQueries(e = {}, t = {}) {
1420
+ return super.resetQueries(U(e), U(t));
1421
+ }
1422
+ cancelQueries(e = {}, t = {}) {
1423
+ return super.cancelQueries(U(e), U(t));
1424
+ }
1425
+ invalidateQueries(e = {}, t = {}) {
1426
+ let n = U(e), r = U(t);
1427
+ if (super.invalidateQueries({
1428
+ ...n,
1429
+ refetchType: "none"
1430
+ }, r), n.refetchType === "none") return Promise.resolve();
1431
+ let i = {
1432
+ ...n,
1433
+ type: n.refetchType ?? n.type ?? "active"
1434
+ };
1435
+ return (0, H.nextTick)().then(() => super.refetchQueries(i, r));
1436
+ }
1437
+ refetchQueries(e = {}, t = {}) {
1438
+ return super.refetchQueries(U(e), U(t));
1439
+ }
1440
+ fetchQuery(e) {
1441
+ return super.fetchQuery(U(e));
1442
+ }
1443
+ prefetchQuery(e) {
1444
+ return super.prefetchQuery(U(e));
1445
+ }
1446
+ fetchInfiniteQuery(e) {
1447
+ return super.fetchInfiniteQuery(U(e));
1448
+ }
1449
+ prefetchInfiniteQuery(e) {
1450
+ return super.prefetchInfiniteQuery(U(e));
1451
+ }
1452
+ setDefaultOptions(e) {
1453
+ super.setDefaultOptions(U(e));
1454
+ }
1455
+ setQueryDefaults(e, t) {
1456
+ super.setQueryDefaults(U(e), U(t));
1457
+ }
1458
+ getQueryDefaults(e) {
1459
+ return super.getQueryDefaults(U(e));
1460
+ }
1461
+ setMutationDefaults(e, t) {
1462
+ super.setMutationDefaults(U(e), U(t));
1463
+ }
1464
+ getMutationDefaults(e) {
1465
+ return super.getMutationDefaults(U(e));
1466
+ }
1467
+ };
1468
+ //#endregion
4
1469
  //#region node_modules/@vue/devtools-api/lib/esm/env.js
5
- function Jn() {
6
- return Yn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1470
+ function si() {
1471
+ return ci().__VUE_DEVTOOLS_GLOBAL_HOOK__;
7
1472
  }
8
- function Yn() {
1473
+ function ci() {
9
1474
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
10
1475
  }
11
- var Xn = typeof Proxy == "function", Zn = "devtools-plugin:setup", Qn = "plugin:settings:set", H, $n;
12
- function er() {
13
- return H === void 0 && (typeof window < "u" && window.performance ? (H = !0, $n = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (H = !0, $n = globalThis.perf_hooks.performance) : H = !1), H;
1476
+ var li = typeof Proxy == "function", ui = "devtools-plugin:setup", di = "plugin:settings:set", W, fi;
1477
+ function pi() {
1478
+ return W === void 0 && (typeof window < "u" && window.performance ? (W = !0, fi = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (W = !0, fi = globalThis.perf_hooks.performance) : W = !1), W;
14
1479
  }
15
- function tr() {
16
- return er() ? $n.now() : Date.now();
1480
+ function mi() {
1481
+ return pi() ? fi.now() : Date.now();
17
1482
  }
18
1483
  //#endregion
19
1484
  //#region node_modules/@vue/devtools-api/lib/esm/proxy.js
20
- var nr = class {
1485
+ var hi = class {
21
1486
  constructor(e, t) {
22
1487
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
23
1488
  let n = {};
@@ -38,9 +1503,9 @@ var nr = class {
38
1503
  i = e;
39
1504
  },
40
1505
  now() {
41
- return tr();
1506
+ return mi();
42
1507
  }
43
- }, t && t.on(Qn, (e, t) => {
1508
+ }, t && t.on(di, (e, t) => {
44
1509
  e === this.plugin.id && this.fallbacks.setSettings(t);
45
1510
  }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
46
1511
  this.onQueue.push({
@@ -67,11 +1532,11 @@ var nr = class {
67
1532
  };
68
1533
  //#endregion
69
1534
  //#region node_modules/@vue/devtools-api/lib/esm/index.js
70
- function rr(e, t) {
71
- let n = e, r = Yn(), i = Jn(), a = Xn && n.enableEarlyProxy;
72
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Zn, e, t);
1535
+ function gi(e, t) {
1536
+ let n = e, r = ci(), i = si(), a = li && n.enableEarlyProxy;
1537
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(ui, e, t);
73
1538
  else {
74
- let e = a ? new nr(n, i) : null;
1539
+ let e = a ? new hi(n, i) : null;
75
1540
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
76
1541
  pluginDescriptor: n,
77
1542
  setupFn: t,
@@ -81,7 +1546,7 @@ function rr(e, t) {
81
1546
  }
82
1547
  //#endregion
83
1548
  //#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
84
- var ir = {
1549
+ var _i = {
85
1550
  À: "A",
86
1551
  Á: "A",
87
1552
  Â: "A",
@@ -481,11 +1946,11 @@ var ir = {
481
1946
  x̧: "x",
482
1947
  Z̧: "Z",
483
1948
  z̧: "z"
484
- }, ar = Object.keys(ir).join("|"), or = new RegExp(ar, "g");
485
- function sr(e) {
486
- return e.replace(or, (e) => ir[e]);
1949
+ }, vi = Object.keys(_i).join("|"), yi = new RegExp(vi, "g");
1950
+ function bi(e) {
1951
+ return e.replace(yi, (e) => _i[e]);
487
1952
  }
488
- var U = {
1953
+ var G = {
489
1954
  CASE_SENSITIVE_EQUAL: 7,
490
1955
  EQUAL: 6,
491
1956
  STARTS_WITH: 5,
@@ -495,9 +1960,9 @@ var U = {
495
1960
  MATCHES: 1,
496
1961
  NO_MATCH: 0
497
1962
  };
498
- function cr(e, t, n) {
499
- if (n ||= {}, n.threshold = n.threshold ?? U.MATCHES, !n.accessors) {
500
- let r = lr(e, t, n);
1963
+ function xi(e, t, n) {
1964
+ if (n ||= {}, n.threshold = n.threshold ?? G.MATCHES, !n.accessors) {
1965
+ let r = Si(e, t, n);
501
1966
  return {
502
1967
  rankedValue: e,
503
1968
  rank: r,
@@ -506,23 +1971,23 @@ function cr(e, t, n) {
506
1971
  passed: r >= n.threshold
507
1972
  };
508
1973
  }
509
- let r = mr(e, n.accessors), i = {
1974
+ let r = Di(e, n.accessors), i = {
510
1975
  rankedValue: e,
511
- rank: U.NO_MATCH,
1976
+ rank: G.NO_MATCH,
512
1977
  accessorIndex: -1,
513
1978
  accessorThreshold: n.threshold,
514
1979
  passed: !1
515
1980
  };
516
1981
  for (let e = 0; e < r.length; e++) {
517
- let a = r[e], o = lr(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
518
- o < s && o >= U.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
1982
+ let a = r[e], o = Si(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1983
+ o < s && o >= G.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
519
1984
  }
520
1985
  return i;
521
1986
  }
522
- function lr(e, t, n) {
523
- return e = fr(e, n), t = fr(t, n), t.length > e.length ? U.NO_MATCH : e === t ? U.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? U.EQUAL : e.startsWith(t) ? U.STARTS_WITH : e.includes(` ${t}`) ? U.WORD_STARTS_WITH : e.includes(t) ? U.CONTAINS : t.length === 1 ? U.NO_MATCH : ur(e).includes(t) ? U.ACRONYM : dr(e, t));
1987
+ function Si(e, t, n) {
1988
+ return e = Ti(e, n), t = Ti(t, n), t.length > e.length ? G.NO_MATCH : e === t ? G.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? G.EQUAL : e.startsWith(t) ? G.STARTS_WITH : e.includes(` ${t}`) ? G.WORD_STARTS_WITH : e.includes(t) ? G.CONTAINS : t.length === 1 ? G.NO_MATCH : Ci(e).includes(t) ? G.ACRONYM : wi(e, t));
524
1989
  }
525
- function ur(e) {
1990
+ function Ci(e) {
526
1991
  let t = "";
527
1992
  return e.split(" ").forEach((e) => {
528
1993
  e.split("-").forEach((e) => {
@@ -530,7 +1995,7 @@ function ur(e) {
530
1995
  });
531
1996
  }), t;
532
1997
  }
533
- function dr(e, t) {
1998
+ function wi(e, t) {
534
1999
  let n = 0, r = 0;
535
2000
  function i(e, t, r) {
536
2001
  for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
@@ -538,31 +2003,31 @@ function dr(e, t) {
538
2003
  }
539
2004
  function a(e) {
540
2005
  let r = 1 / e, i = n / t.length;
541
- return U.MATCHES + i * r;
2006
+ return G.MATCHES + i * r;
542
2007
  }
543
2008
  let o = i(t[0], e, 0);
544
- if (o < 0) return U.NO_MATCH;
2009
+ if (o < 0) return G.NO_MATCH;
545
2010
  r = o;
546
2011
  for (let n = 1, a = t.length; n < a; n++) {
547
2012
  let a = t[n];
548
- if (r = i(a, e, r), !(r > -1)) return U.NO_MATCH;
2013
+ if (r = i(a, e, r), !(r > -1)) return G.NO_MATCH;
549
2014
  }
550
2015
  return a(r - o);
551
2016
  }
552
- function fr(e, t) {
2017
+ function Ti(e, t) {
553
2018
  let { keepDiacritics: n } = t;
554
- return e = `${e}`, n || (e = sr(e)), e;
2019
+ return e = `${e}`, n || (e = bi(e)), e;
555
2020
  }
556
- function pr(e, t) {
2021
+ function Ei(e, t) {
557
2022
  let n = t;
558
2023
  typeof t == "object" && (n = t.accessor);
559
2024
  let r = n(e);
560
2025
  return r == null ? [] : Array.isArray(r) ? r : [String(r)];
561
2026
  }
562
- function mr(e, t) {
2027
+ function Di(e, t) {
563
2028
  let n = [];
564
2029
  for (let r = 0, i = t.length; r < i; r++) {
565
- let i = t[r], a = gr(i), o = pr(e, i);
2030
+ let i = t[r], a = ki(i), o = Ei(e, i);
566
2031
  for (let e = 0, t = o.length; e < t; e++) n.push({
567
2032
  itemValue: o[e],
568
2033
  attributes: a
@@ -570,41 +2035,41 @@ function mr(e, t) {
570
2035
  }
571
2036
  return n;
572
2037
  }
573
- var hr = {
2038
+ var Oi = {
574
2039
  maxRanking: Infinity,
575
2040
  minRanking: -Infinity
576
2041
  };
577
- function gr(e) {
578
- return typeof e == "function" ? hr : {
579
- ...hr,
2042
+ function ki(e) {
2043
+ return typeof e == "function" ? Oi : {
2044
+ ...Oi,
580
2045
  ...e
581
2046
  };
582
2047
  }
583
2048
  //#endregion
584
2049
  //#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
585
- function W(e) {
2050
+ function K(e) {
586
2051
  return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
587
2052
  }
588
- function _r(e) {
589
- let t = W(e);
2053
+ function Ai(e) {
2054
+ let t = K(e);
590
2055
  return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
591
2056
  }
592
- function vr(e) {
593
- return W(e) === 2 ? 0 : 16777215;
2057
+ function ji(e) {
2058
+ return K(e) === 2 ? 0 : 16777215;
594
2059
  }
595
- function yr(e) {
596
- let t = W(e);
2060
+ function Mi(e) {
2061
+ let t = K(e);
597
2062
  return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
598
2063
  }
599
- var br = (e, t) => e.queryHash.localeCompare(t.queryHash), xr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Sr = {
600
- "Status > Last Updated": (e, t) => W(e) === W(t) ? xr(e, t) : W(e) > W(t) ? 1 : -1,
601
- "Query Hash": br,
602
- "Last Updated": xr
603
- }, G = "vue-query", Cr = "Vue Query";
604
- function wr(e, t) {
605
- rr({
606
- id: G,
607
- label: Cr,
2064
+ var Ni = (e, t) => e.queryHash.localeCompare(t.queryHash), Pi = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Fi = {
2065
+ "Status > Last Updated": (e, t) => K(e) === K(t) ? Pi(e, t) : K(e) > K(t) ? 1 : -1,
2066
+ "Query Hash": Ni,
2067
+ "Last Updated": Pi
2068
+ }, q = "vue-query", Ii = "Vue Query";
2069
+ function Li(e, t) {
2070
+ gi({
2071
+ id: q,
2072
+ label: Ii,
608
2073
  packageName: "vue-query",
609
2074
  homepage: "https://tanstack.com/query/latest",
610
2075
  logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
@@ -626,11 +2091,11 @@ function wr(e, t) {
626
2091
  sortFn: {
627
2092
  type: "choice",
628
2093
  label: "Sort Function",
629
- options: Object.keys(Sr).map((e) => ({
2094
+ options: Object.keys(Fi).map((e) => ({
630
2095
  label: e,
631
2096
  value: e
632
2097
  })),
633
- defaultValue: Object.keys(Sr)[0]
2098
+ defaultValue: Object.keys(Fi)[0]
634
2099
  },
635
2100
  onlineMode: {
636
2101
  type: "choice",
@@ -648,11 +2113,11 @@ function wr(e, t) {
648
2113
  }
649
2114
  }, (e) => {
650
2115
  let n = e.getSettings();
651
- ce.setOnline(!!n.onlineMode.valueOf());
2116
+ V.setOnline(!!n.onlineMode.valueOf());
652
2117
  let r = t.getQueryCache();
653
2118
  e.addInspector({
654
- id: G,
655
- label: Cr,
2119
+ id: q,
2120
+ label: Ii,
656
2121
  icon: "api",
657
2122
  nodeActions: [
658
2123
  {
@@ -711,16 +2176,16 @@ function wr(e, t) {
711
2176
  }
712
2177
  ]
713
2178
  }), e.addTimelineLayer({
714
- id: G,
715
- label: Cr,
2179
+ id: q,
2180
+ label: Ii,
716
2181
  color: 16767308
717
2182
  }), r.subscribe((t) => {
718
- e.sendInspectorTree(G), e.sendInspectorState(G), [
2183
+ e.sendInspectorTree(q), e.sendInspectorState(q), [
719
2184
  "added",
720
2185
  "removed",
721
2186
  "updated"
722
2187
  ].includes(t.type) && e.addTimelineEvent({
723
- layerId: G,
2188
+ layerId: q,
724
2189
  event: {
725
2190
  title: t.type,
726
2191
  subtitle: t.query.queryHash,
@@ -732,25 +2197,25 @@ function wr(e, t) {
732
2197
  }
733
2198
  });
734
2199
  }), e.on.setPluginSettings((e) => {
735
- e.key === "onlineMode" && ce.setOnline(!!e.newValue);
2200
+ e.key === "onlineMode" && V.setOnline(!!e.newValue);
736
2201
  }), e.on.getInspectorTree((t) => {
737
- if (t.inspectorId === G) {
2202
+ if (t.inspectorId === q) {
738
2203
  let n = r.getAll(), i = e.getSettings();
739
- t.rootNodes = (t.filter ? n.filter((e) => cr(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Sr[i.sortFn](e, t) * i.baseSort).map((e) => {
740
- let t = _r(e);
2204
+ t.rootNodes = (t.filter ? n.filter((e) => xi(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Fi[i.sortFn](e, t) * i.baseSort).map((e) => {
2205
+ let t = Ai(e);
741
2206
  return {
742
2207
  id: e.queryHash,
743
2208
  label: e.queryHash,
744
2209
  tags: [{
745
2210
  label: `${t} [${e.getObserversCount()}]`,
746
- textColor: vr(e),
747
- backgroundColor: yr(e)
2211
+ textColor: ji(e),
2212
+ backgroundColor: Mi(e)
748
2213
  }]
749
2214
  };
750
2215
  });
751
2216
  }
752
2217
  }), e.on.getInspectorState((e) => {
753
- if (e.inspectorId === G) {
2218
+ if (e.inspectorId === q) {
754
2219
  let t = r.get(e.nodeId);
755
2220
  if (!t) return;
756
2221
  e.state = {
@@ -761,7 +2226,7 @@ function wr(e, t) {
761
2226
  },
762
2227
  {
763
2228
  key: "Query status",
764
- value: _r(t)
2229
+ value: Ai(t)
765
2230
  },
766
2231
  {
767
2232
  key: "Observers",
@@ -787,96 +2252,180 @@ function wr(e, t) {
787
2252
  }
788
2253
  //#endregion
789
2254
  //#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
790
- var Tr = { install: (e, n = {}) => {
791
- let r = Ee(n.queryClientKey), i;
792
- i = "queryClient" in n && n.queryClient ? n.queryClient : new xe("queryClientConfig" in n ? n.queryClientConfig : void 0), t.isServer() || i.mount();
793
- let a = () => {};
794
- if (n.clientPersister) {
795
- i.isRestoring && (i.isRestoring.value = !0);
796
- let [e, t] = n.clientPersister(i);
797
- a = e, t.then(() => {
798
- i.isRestoring && (i.isRestoring.value = !1), n.clientPersisterOnSuccess?.(i);
2255
+ var Ri = { install: (e, t = {}) => {
2256
+ let n = $r(t.queryClientKey), r;
2257
+ r = "queryClient" in t && t.queryClient ? t.queryClient : new oi("queryClientConfig" in t ? t.queryClientConfig : void 0), Er.isServer() || r.mount();
2258
+ let i = () => {};
2259
+ if (t.clientPersister) {
2260
+ r.isRestoring && (r.isRestoring.value = !0);
2261
+ let [e, n] = t.clientPersister(r);
2262
+ i = e, n.then(() => {
2263
+ r.isRestoring && (r.isRestoring.value = !1), t.clientPersisterOnSuccess?.(r);
799
2264
  });
800
2265
  }
801
- let o = () => {
802
- i.unmount(), a();
2266
+ let a = () => {
2267
+ r.unmount(), i();
803
2268
  };
804
- if (e.onUnmount) e.onUnmount(o);
2269
+ if (e.onUnmount) e.onUnmount(a);
805
2270
  else {
806
2271
  let t = e.unmount;
807
2272
  e.unmount = function() {
808
- o(), t();
2273
+ a(), t();
809
2274
  };
810
2275
  }
811
- e.provide(r, i), process.env.NODE_ENV === "development" && n.enableDevtoolsV6Plugin && wr(e, i);
812
- } }, K = [{
2276
+ e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Li(e, r);
2277
+ } };
2278
+ //#endregion
2279
+ //#region src/web-core/query.ts
2280
+ function zi() {
2281
+ return new oi({ defaultOptions: { queries: {
2282
+ staleTime: 3e4,
2283
+ refetchOnWindowFocus: !1
2284
+ } } });
2285
+ }
2286
+ var Bi = {
2287
+ session: { current: ["session", "current"] },
2288
+ menu: { mine: ["menu", "mine"] },
2289
+ staticModule: {
2290
+ query: (e, t) => [
2291
+ "static-module",
2292
+ e,
2293
+ "query",
2294
+ t
2295
+ ],
2296
+ tree: (e, t) => [
2297
+ "static-module",
2298
+ e,
2299
+ "tree",
2300
+ t
2301
+ ],
2302
+ view: (e, t) => [
2303
+ "static-module",
2304
+ e,
2305
+ "view",
2306
+ t
2307
+ ]
2308
+ }
2309
+ };
2310
+ //#endregion
2311
+ //#region src/web-core/businessNotifications.ts
2312
+ function Vi(e, t) {
2313
+ return e.request({
2314
+ method: "POST",
2315
+ path: `/${encodeURIComponent(t.moduleAlias)}/${encodeURIComponent(t.actionCode)}/${encodeURIComponent(t.recordId)}`,
2316
+ body: { payload: t.arguments ?? {} }
2317
+ });
2318
+ }
2319
+ var J = [{
813
2320
  route: "/iam/role/authorization",
814
2321
  moduleAlias: "iam.role",
815
- component: Ln(() => import("./workspaceViews-BvV8mpML.js").then((e) => e.n)),
2322
+ component: Un(() => import("./workspaceViews-DI_1vYX9.js").then((e) => e.n)),
816
2323
  layout: "workspace",
817
2324
  menuEntry: !1
818
- }], Er = Array.from(new Set(["/_platform/workspace", ...K.map((e) => e.route)])), Dr = Object.fromEntries(K.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Or = Object.fromEntries(K.map((e) => [e.route, e.layout]));
819
- function kr(e) {
820
- if (e) return K.find((t) => jr(t, e.target));
2325
+ }], Hi = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...J.map((e) => e.route)])), Ui = Object.fromEntries(J.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Wi = Object.fromEntries(J.map((e) => [e.route, e.layout]));
2326
+ function Gi(e) {
2327
+ if (e) return J.find((t) => qi(t, e.target));
821
2328
  }
822
- function Ar(e) {
823
- return e?.pageType === "business-route" && !!kr(e);
2329
+ function Ki(e) {
2330
+ return e?.pageType === "business-route" && !!Gi(e);
824
2331
  }
825
- function jr(e, t) {
826
- return t.route ? Mr(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2332
+ function qi(e, t) {
2333
+ return t.route ? Ji(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
827
2334
  }
828
- function Mr(e, t) {
2335
+ function Ji(e, t) {
829
2336
  let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
830
2337
  return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
831
2338
  }
832
2339
  //#endregion
833
2340
  //#region src/app/pageRouteContext.ts
834
- var Nr = Symbol("page-route");
835
- function Pr(e) {
836
- Hn(Nr, A(e));
2341
+ var Yi = Symbol("page-route");
2342
+ function Xi(e) {
2343
+ Jn(Yi, T(e));
837
2344
  }
838
2345
  //#endregion
839
2346
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
840
- var Fr = /* @__PURE__ */ I({
2347
+ var Zi = /* @__PURE__ */ j({
841
2348
  name: "PlatformAdminRouteOutlet",
842
2349
  __name: "PlatformAdminOutlet",
843
2350
  props: { descriptor: {} },
844
2351
  setup(e) {
845
- let t = e, n = A(() => kr(t.descriptor)), r = A(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = A(() => t.descriptor.target.query?.workspacePresentation);
846
- ct(A(() => t.descriptor.layout ?? n.value?.layout)), Pr(() => {
2352
+ let t = e, n = T(() => Gi(t.descriptor)), r = T(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = T(() => t.descriptor.target.query?.workspacePresentation);
2353
+ Jt(T(() => t.descriptor.layout ?? n.value?.layout)), Xi(() => {
847
2354
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
848
2355
  return {
849
2356
  path: r,
850
2357
  meta: {},
851
2358
  query: t.descriptor.target.query ?? t.descriptor.params ?? {},
852
- params: o(e, r),
2359
+ params: a(e, r),
853
2360
  matched: [{ path: e }]
854
2361
  };
855
2362
  });
856
- function o(e, t) {
2363
+ function a(e, t) {
857
2364
  let n = {}, r = e.split("/").filter(Boolean), i = t.split("/").filter(Boolean);
858
2365
  return r.forEach((e, t) => {
859
2366
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
860
2367
  }), n;
861
2368
  }
862
- return (t, o) => n.value && r.value ? (L(), j(B(a), {
2369
+ return (t, a) => n.value && r.value ? (M(), E(F(_e), {
863
2370
  key: 0,
864
2371
  "module-alias": r.value
865
2372
  }, {
866
- default: V(() => [i.value === "drawer" || i.value === "tab" ? (L(), j(B(_n), {
2373
+ default: I(() => [i.value === "drawer" || i.value === "tab" ? (M(), E(F(it), {
867
2374
  key: 0,
868
2375
  descriptor: e.descriptor
869
- }, null, 8, ["descriptor"])) : (L(), j(Gn(n.value.component), { key: 1 }))]),
2376
+ }, null, 8, ["descriptor"])) : (M(), E(Zn(n.value.component), { key: 1 }))]),
870
2377
  _: 1
871
- }, 8, ["module-alias"])) : M("v-if", !0);
2378
+ }, 8, ["module-alias"])) : D("v-if", !0);
872
2379
  }
873
- });
2380
+ }), Qi = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2381
+ function $i(e) {
2382
+ return Qi.exec(e)?.[1];
2383
+ }
2384
+ function ea(e, t) {
2385
+ return {
2386
+ pageType: "platform-route",
2387
+ openMode: "workbench-route",
2388
+ hostType: "platform-route-host",
2389
+ title: `${t ?? e}.OpenAPI`,
2390
+ target: {
2391
+ route: `/openapi/${encodeURIComponent(e)}`,
2392
+ moduleAlias: e
2393
+ },
2394
+ tabPolicy: {
2395
+ identity: "by-target",
2396
+ closable: !0,
2397
+ cacheable: !0
2398
+ }
2399
+ };
2400
+ }
2401
+ function ta() {
2402
+ return {
2403
+ pageType: "platform-route",
2404
+ openMode: "workbench-route",
2405
+ hostType: "platform-route-host",
2406
+ title: "开放模块 API",
2407
+ target: { route: "/openapi" },
2408
+ tabPolicy: {
2409
+ identity: "by-target",
2410
+ closable: !0,
2411
+ cacheable: !0
2412
+ }
2413
+ };
2414
+ }
2415
+ function na(e) {
2416
+ if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
2417
+ let t = $i(e.target.route ?? "");
2418
+ return t !== void 0 && e.target.moduleAlias === t;
2419
+ }
2420
+ function ra(e) {
2421
+ return e === "/openapi" || e === "/openapi/";
2422
+ }
874
2423
  //#endregion
875
2424
  //#region src/app/workbenchStartup.ts
876
- function Ir(e, t, n, r = {}) {
877
- let i = w(t, n, r), a = e.find((e) => e.key === i.key);
2425
+ function ia(e, t, n, r = {}) {
2426
+ let i = ge(t, n, r), a = e.find((e) => e.key === i.key);
878
2427
  if (a) {
879
- let o = a.pageDescriptor ? $r(t, n, a.pageDescriptor, r) : i;
2428
+ let o = a.pageDescriptor ? Ta(t, n, a.pageDescriptor, r) : i;
880
2429
  return {
881
2430
  tabs: e.map((e) => e.key === i.key ? o : e),
882
2431
  activeTabKey: i.key
@@ -887,8 +2436,8 @@ function Ir(e, t, n, r = {}) {
887
2436
  activeTabKey: i.key
888
2437
  };
889
2438
  }
890
- function Lr(e, t, n = {}) {
891
- let r = X(O(t), n), i = e.find((e) => e.key === r.key ? !0 : r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && mn(e.pageDescriptor) === mn(r.pageDescriptor));
2439
+ function aa(e, t, n = {}) {
2440
+ let r = X(x(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && w(e.pageDescriptor) === w(r.pageDescriptor));
892
2441
  return i ? {
893
2442
  tabs: e,
894
2443
  activeTabKey: i.key,
@@ -899,41 +2448,48 @@ function Lr(e, t, n = {}) {
899
2448
  created: !0
900
2449
  };
901
2450
  }
902
- function Rr(e, t, n = {}) {
903
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : E(D(t, {
2451
+ function oa(e, t, n = {}) {
2452
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : b(pe(t, {
904
2453
  ...n,
905
2454
  title: e.title
906
2455
  }), n);
907
2456
  }
908
- function zr(e) {
2457
+ function sa(e) {
909
2458
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
910
2459
  if (t?.fullPath) return t.fullPath;
911
- let n = t?.pageDescriptor ?? (t?.target ? D(t.target, { title: t.title }) : void 0);
912
- return n?.pageType === "platform-route" && rn(n) && n.target.route ? n.target.route : n ? E(n) : void 0;
2460
+ let n = t?.pageDescriptor ?? (t?.target ? pe(t.target, { title: t.title }) : void 0);
2461
+ return n?.pageType === "platform-route" && na(n) && n.target.route ? n.target.route : n ? b(n) : void 0;
913
2462
  }
914
- function q(e, t, n = {}, r = !1) {
2463
+ function ca(e, t, n = {}, r = !1) {
915
2464
  if (t === "/" || t === "") return e;
916
- let i = t.split(/[?#]/, 1)[0] ?? "", a = Pn(i), o = a ? pn(a) : jn(i) ? dn() : an(t, n);
2465
+ let i = t.split(/[?#]/, 1)[0] ?? "", a = $i(i), o = a ? ea(a) : ra(i) ? ta() : Qe(t, n);
917
2466
  if (!o) return e;
918
- let s = o.menuId ? oi(e.menus, o.menuId) : void 0, c = s ? T(s) : void 0, l = s && c && Vr(c, o) ? {
2467
+ let s = o.menuId ? Ma(e.menus, o.menuId) : void 0, l = s ? c(s) : void 0, u = s && l && fa(l, o) ? {
919
2468
  ...o,
920
2469
  title: s.title
921
- } : o, u = Br(l), d = u ?? l, f = r ? O(d) : d, p = s && ii(s, f, n) ? s : ri(e.menus, f, n), m = p === s ? c : p ? T(p) : void 0, h = u ? X(u, n) : p && m && yn(m) ? $r(p, m, f, n) : X(f, n), g = Qr(e.tabs ?? [], h);
2470
+ } : o, d = da(u), f = d ?? u, p = e.tabs ?? [], m = d ? ua(p, d) : void 0, h = d ? la(d, m) : r ? x(f) : f, g = s && Aa(s, h, n) ? s : ka(e.menus, h, n), _ = g === s ? l : g ? c(g) : void 0, v = d ? X(h, n) : g && _ && We(_) ? Ta(g, _, h, n) : X(h, n), ee = wa(p, v);
922
2471
  return {
923
2472
  ...e,
924
- tabs: g,
925
- activeTabKey: h.key
2473
+ tabs: ee,
2474
+ activeTabKey: v.key
926
2475
  };
927
2476
  }
928
- function Br(e) {
2477
+ function la(e, t) {
2478
+ return t?.instanceKey ? x(e, t.instanceKey) : t ? e : x(e);
2479
+ }
2480
+ function ua(e, t) {
2481
+ let n = w(t);
2482
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && w(e.pageDescriptor) === n);
2483
+ }
2484
+ function da(e) {
929
2485
  if (e.pageType !== "business-route") return;
930
- let t = Kt(e);
931
- return t ? gn(t.view, t.input, t.presentation, e.title) : void 0;
2486
+ let t = ln(e);
2487
+ return t ? rn(t.view, t.input, t.presentation, e.title) : void 0;
932
2488
  }
933
- function Vr(e, t) {
2489
+ function fa(e, t) {
934
2490
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
935
2491
  }
936
- function Hr(e, t, n) {
2492
+ function pa(e, t, n) {
937
2493
  let r = e.findIndex((e) => e.key === n);
938
2494
  if (r < 0) return {
939
2495
  tabs: e,
@@ -948,7 +2504,7 @@ function Hr(e, t, n) {
948
2504
  activeTabKey: t
949
2505
  };
950
2506
  }
951
- function Ur(e, t, n) {
2507
+ function ma(e, t, n) {
952
2508
  let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
953
2509
  return !t || !r.has(t) ? {
954
2510
  tabs: a,
@@ -958,16 +2514,16 @@ function Ur(e, t, n) {
958
2514
  activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
959
2515
  };
960
2516
  }
961
- function J(e, t, n = !0) {
2517
+ function ha(e, t, n = !0) {
962
2518
  let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
963
2519
  return [...t.flatMap((e) => {
964
2520
  if (i.has(e.key)) return [];
965
2521
  i.add(e.key);
966
2522
  let t = r.get(e.key);
967
- return t ? [Wr(t, e)] : n ? [e] : [];
2523
+ return t ? [ga(t, e)] : n ? [e] : [];
968
2524
  }), ...e.filter((e) => !i.has(e.key))];
969
2525
  }
970
- function Wr(e, t) {
2526
+ function ga(e, t) {
971
2527
  let n = e.pageDescriptor, r = t.pageDescriptor;
972
2528
  if (!n || !r || !t.target) return e;
973
2529
  let i = {
@@ -982,48 +2538,48 @@ function Wr(e, t) {
982
2538
  target: t.target
983
2539
  };
984
2540
  }
985
- function Gr(e, t, n = {}) {
2541
+ function _a(e, t, n = {}) {
986
2542
  let r = /* @__PURE__ */ new Map();
987
- Yr(t, r);
2543
+ xa(t, r);
988
2544
  let i = /* @__PURE__ */ new Set();
989
2545
  return e.flatMap((e) => {
990
- let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? Kr(e.key);
2546
+ let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? va(e.key);
991
2547
  if (t) {
992
2548
  if (i.has(t)) return [];
993
2549
  let e = r.get(t);
994
- return e ? (i.add(t), [w(e.menu, e.target, n)]) : [];
2550
+ return e ? (i.add(t), [ge(e.menu, e.target, n)]) : [];
995
2551
  }
996
- let a = qr(e);
2552
+ let a = ya(e);
997
2553
  return !a || i.has(a.key) ? [] : (i.add(a.key), [a]);
998
2554
  });
999
2555
  }
1000
- function Kr(e) {
2556
+ function va(e) {
1001
2557
  return e.startsWith("menu:") && e.slice(5) || void 0;
1002
2558
  }
1003
- function qr(e) {
2559
+ function ya(e) {
1004
2560
  let t = e.pageDescriptor;
1005
2561
  if (t?.pageType !== "business-route") return;
1006
- let n = Kt(t);
1007
- if (!(!n || n.presentation !== "tab")) return X(gn(n.view, n.input, "tab"));
2562
+ let n = ln(t);
2563
+ if (n && n.presentation === "tab") return X(rn(n.view, n.input, "tab"));
1008
2564
  }
1009
- function Jr(e, t) {
2565
+ function ba(e, t) {
1010
2566
  let n = e.findIndex((e) => e.key === t.key);
1011
2567
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
1012
2568
  }
1013
- function Yr(e, t) {
2569
+ function xa(e, t) {
1014
2570
  for (let n of e) {
1015
- let e = T(n.record);
1016
- e && yn(e) && t.set(n.record.id, {
2571
+ let e = c(n.record);
2572
+ e && We(e) && t.set(n.record.id, {
1017
2573
  menu: n.record,
1018
2574
  target: e
1019
- }), Yr(n.children, t);
2575
+ }), xa(n.children, t);
1020
2576
  }
1021
2577
  }
1022
2578
  function Y(e, t) {
1023
2579
  let n = new Set(t);
1024
2580
  return e.filter((e) => !n.has(e.key));
1025
2581
  }
1026
- function Xr(e, t, n = []) {
2582
+ function Sa(e, t, n = []) {
1027
2583
  if (e.length !== t.length || new Set(t).size !== e.length) return e;
1028
2584
  let r = new Map(e.map((e) => [e.key, e]));
1029
2585
  if (t.some((e) => !r.has(e))) return e;
@@ -1031,27 +2587,27 @@ function Xr(e, t, n = []) {
1031
2587
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
1032
2588
  }
1033
2589
  function X(e, t = {}) {
1034
- let n = E(e, t);
2590
+ let n = b(e, t);
1035
2591
  return {
1036
- ...Zr(e) ? { instanceKey: Zr(e) } : {},
1037
- key: fn(e),
1038
- title: e.title ?? ni(e),
2592
+ ...Ca(e) ? { instanceKey: Ca(e) } : {},
2593
+ key: ue(e),
2594
+ title: e.title ?? Oa(e),
1039
2595
  fullPath: n,
1040
2596
  pageDescriptor: e,
1041
2597
  restoreState: { url: n },
1042
2598
  closable: !0
1043
2599
  };
1044
2600
  }
1045
- function Zr(e) {
2601
+ function Ca(e) {
1046
2602
  let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
1047
2603
  return typeof n == "string" && n ? n : void 0;
1048
2604
  }
1049
- function Qr(e, t) {
2605
+ function wa(e, t) {
1050
2606
  let n = e.findIndex((e) => e.key === t.key);
1051
2607
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
1052
2608
  }
1053
- function $r(e, t, n, r) {
1054
- let i = w(e, t, r), a = i.pageDescriptor ?? n, o = ei(n) && ei(a) || ti(n) && ti(a) ? {
2609
+ function Ta(e, t, n, r) {
2610
+ let i = ge(e, t, r), a = i.pageDescriptor ?? n, o = Ea(n) && Ea(a) || Da(n) && Da(a) ? {
1055
2611
  ...n,
1056
2612
  title: n.title ?? e.title,
1057
2613
  menuId: e.id,
@@ -1072,84 +2628,89 @@ function $r(e, t, n, r) {
1072
2628
  target: t
1073
2629
  };
1074
2630
  }
1075
- function ei(e) {
2631
+ function Ea(e) {
1076
2632
  return e.pageType === "platform-route" || e.pageType === "business-route";
1077
2633
  }
1078
- function ti(e) {
2634
+ function Da(e) {
1079
2635
  return e.pageType === "remote-url" || e.pageType === "external-link";
1080
2636
  }
1081
- function ni(e) {
2637
+ function Oa(e) {
1082
2638
  return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
1083
2639
  }
1084
- function ri(e, t, n) {
2640
+ function ka(e, t, n) {
1085
2641
  for (let r of e) {
1086
- if (ii(r.record, t, n)) return r.record;
1087
- let e = ri(r.children, t, n);
2642
+ if (Aa(r.record, t, n)) return r.record;
2643
+ let e = ka(r.children, t, n);
1088
2644
  if (e) return e;
1089
2645
  }
1090
2646
  }
1091
- function ii(e, t, n) {
1092
- let r = T(e), i = r ? D(r, {
2647
+ function Aa(e, t, n) {
2648
+ let r = c(e), i = r ? pe(r, {
1093
2649
  ...n,
1094
2650
  title: e.title
1095
2651
  }) : void 0;
1096
- return i ? ai(i, t) : !1;
2652
+ return i ? ja(i, t) : !1;
1097
2653
  }
1098
- function ai(e, t) {
1099
- return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") ? e.target.url === t.target.url : !1;
2654
+ function ja(e, t) {
2655
+ return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
1100
2656
  }
1101
- function oi(e, t) {
2657
+ function Ma(e, t) {
1102
2658
  for (let n of e) {
1103
2659
  if (n.record.id === t) return n.record;
1104
- let e = oi(n.children, t);
2660
+ let e = Ma(n.children, t);
1105
2661
  if (e) return e;
1106
2662
  }
1107
2663
  }
1108
2664
  //#endregion
1109
- //#region src/app/lockedTabPreference.ts
1110
- var si = "workbench.locked-tabs";
1111
- async function ci(e) {
1112
- return ui(await e.restore(si, [], { persistence: "backend" }));
1113
- }
1114
- async function li(e, t) {
1115
- await e.set(si, t, { persistence: "backend" });
1116
- }
1117
- function ui(e) {
2665
+ //#region src/app/workbenchSessionTabs.ts
2666
+ function Na(e) {
1118
2667
  if (!Array.isArray(e)) return [];
1119
2668
  let t = /* @__PURE__ */ new Set();
1120
- return e.flatMap((e) => !di(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2669
+ return e.flatMap((e) => !Pa(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
1121
2670
  }
1122
- function di(e) {
2671
+ function Pa(e) {
1123
2672
  let t = e;
1124
- return typeof e == "object" && !!e && typeof t.key == "string" && typeof t.title == "string" && (fi(t.pageDescriptor) || mi(t.target));
2673
+ return Z(e) && typeof t.key == "string" && typeof t.title == "string" && (Fa(t.pageDescriptor) || La(t.target));
1125
2674
  }
1126
- function fi(e) {
2675
+ function Fa(e) {
1127
2676
  return !Z(e) || !Z(e.target) || !Z(e.tabPolicy) || ![
1128
2677
  "by-menu",
1129
2678
  "by-target",
1130
2679
  "by-params"
1131
- ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && pi(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && pi(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
2680
+ ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Ia(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Ia(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
1132
2681
  }
1133
- function pi(e) {
2682
+ function Ia(e) {
1134
2683
  return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
1135
2684
  }
1136
- function mi(e) {
2685
+ function La(e) {
1137
2686
  return !Z(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
1138
2687
  }
1139
2688
  function Z(e) {
1140
2689
  return typeof e == "object" && !!e;
1141
2690
  }
1142
2691
  //#endregion
2692
+ //#region src/app/lockedTabPreference.ts
2693
+ var Ra = "workbench.locked-tabs";
2694
+ async function za(e) {
2695
+ return Va(await e.restore(Ra, [], { persistence: "backend" }));
2696
+ }
2697
+ async function Ba(e, t) {
2698
+ await e.set(Ra, t, { persistence: "backend" });
2699
+ }
2700
+ function Va(e) {
2701
+ return Na(e);
2702
+ }
2703
+ //#endregion
1143
2704
  //#region src/consumer/PlatformAdminOutlet.vue
1144
- var hi = /* @__PURE__ */ I({
2705
+ var Ha = /* @__PURE__ */ j({
1145
2706
  name: "PlatformAdminOutlet",
1146
2707
  __name: "PlatformAdminOutlet",
1147
2708
  props: { descriptor: {} },
1148
2709
  setup(e) {
1149
- return (t, n) => B(Ar)(e.descriptor) ? (L(), j(Fr, {
2710
+ return (t, n) => F(Ki)(e.descriptor) ? (M(), E(Zi, {
1150
2711
  key: 0,
1151
2712
  descriptor: e.descriptor
1152
- }, null, 8, ["descriptor"])) : (L(), j(Ft, {
2713
+ }, null, 8, ["descriptor"])) : (M(), E(en, {
1153
2714
  key: 1,
1154
2715
  descriptor: e.descriptor
1155
2716
  }, null, 8, ["descriptor"]));
@@ -1157,8 +2718,8 @@ var hi = /* @__PURE__ */ I({
1157
2718
  });
1158
2719
  //#endregion
1159
2720
  //#region src/app/workbenchRouteSync.ts
1160
- function gi(e, t, n) {
1161
- let r = zr(e) ?? "/";
2721
+ function Ua(e, t, n) {
2722
+ let r = sa(e) ?? "/";
1162
2723
  return r === t ? void 0 : {
1163
2724
  url: r,
1164
2725
  mode: n
@@ -1166,11 +2727,15 @@ function gi(e, t, n) {
1166
2727
  }
1167
2728
  //#endregion
1168
2729
  //#region src/consumer/AppWorkbenchShell.vue
1169
- var _i = /* @__PURE__ */ I({
2730
+ var Wa = /* @__PURE__ */ j({
1170
2731
  name: "AppWorkbenchShell",
1171
2732
  __name: "AppWorkbenchShell",
1172
2733
  props: {
1173
2734
  startup: {},
2735
+ loadMenus: {
2736
+ type: Function,
2737
+ default: void 0
2738
+ },
1174
2739
  location: {},
1175
2740
  resolveOptions: { default: () => ({}) },
1176
2741
  loading: {
@@ -1188,142 +2753,154 @@ var _i = /* @__PURE__ */ I({
1188
2753
  "userCommand"
1189
2754
  ],
1190
2755
  setup(e, { emit: t }) {
1191
- let n = e, r = t, i = A(() => n.startup.activeTabKey), a = R([]), o = 0, s = Promise.resolve(), c = !1;
1192
- Jt({
1193
- openRoute: te,
1194
- replaceRoute: v,
1195
- closeCurrentTab: y,
1196
- openPage: ee,
1197
- replacePage: x,
1198
- closePage: f,
1199
- setTabName: ne
1200
- }), Vn(() => {
1201
- c = !0, Gt(), ie(), S(n.location);
1202
- }), Bn(() => {
1203
- c = !1;
1204
- }), Kn(() => n.location, (e) => S(e));
1205
- function l(e, t = void 0) {
1206
- r("update:startup", e), t && re(e, t);
2756
+ let n = e, r = t, i = T(() => n.startup.activeTabKey), a = N([]), o = 0, s = Promise.resolve(), l = !1;
2757
+ Yt({
2758
+ refreshMenus: n.loadMenus ? async () => {
2759
+ let e = n.startup.session, t = await n.loadMenus();
2760
+ if (!l || e !== n.startup.session) throw Error("登录状态已变化,请重试");
2761
+ return r("update:startup", {
2762
+ ...n.startup,
2763
+ menus: t
2764
+ }), t;
2765
+ } : void 0,
2766
+ openMenu: (e) => {
2767
+ let t = c(e);
2768
+ t && d(e, t);
2769
+ },
2770
+ openRoute: ne,
2771
+ replaceRoute: re,
2772
+ closeCurrentTab: ie,
2773
+ openPage: te,
2774
+ replacePage: oe,
2775
+ closePage: m,
2776
+ setTabName: ae
2777
+ }), qn(() => {
2778
+ l = !0, kt(), le(), ce(n.location);
2779
+ }), Kn(() => {
2780
+ l = !1;
2781
+ }), Qn(() => n.location, (e) => ce(e));
2782
+ function u(e, t = void 0) {
2783
+ r("update:startup", e), t && se(e, t);
1207
2784
  }
1208
- function u(e, t) {
2785
+ function d(e, t) {
1209
2786
  if (t.openMode === "window") {
1210
- window.open(Rr(e, t), "_blank", "noopener,noreferrer");
2787
+ window.open(oa(e, t), "_blank", "noopener,noreferrer");
1211
2788
  return;
1212
2789
  }
1213
- let r = Ir(n.startup.tabs ?? [], e, t, n.resolveOptions);
1214
- l({
2790
+ let r = ia(n.startup.tabs ?? [], e, t, n.resolveOptions);
2791
+ u({
1215
2792
  ...n.startup,
1216
2793
  tabs: r.tabs,
1217
2794
  activeTabKey: r.activeTabKey
1218
2795
  }, "push");
1219
2796
  }
1220
- function d(e) {
1221
- e !== n.startup.activeTabKey && l({
2797
+ function f(e) {
2798
+ e !== n.startup.activeTabKey && u({
1222
2799
  ...n.startup,
1223
2800
  activeTabKey: e
1224
2801
  }, "push");
1225
2802
  }
1226
- function f(e) {
1227
- let t = Hr(n.startup.tabs ?? [], n.startup.activeTabKey, e);
1228
- a.value.some((t) => t.key === e) && g(Y(a.value, [e])), l({
2803
+ function m(e) {
2804
+ let t = pa(n.startup.tabs ?? [], n.startup.activeTabKey, e);
2805
+ a.value.some((t) => t.key === e) && v(Y(a.value, [e])), u({
1229
2806
  ...n.startup,
1230
2807
  tabs: t.tabs,
1231
2808
  activeTabKey: t.activeTabKey
1232
2809
  }, "replace");
1233
2810
  }
1234
- function p(e) {
1235
- let t = Ur(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
1236
- r.length > 0 && g(Y(a.value, r)), l({
2811
+ function h(e) {
2812
+ let t = ma(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
2813
+ r.length > 0 && v(Y(a.value, r)), u({
1237
2814
  ...n.startup,
1238
2815
  tabs: t.tabs,
1239
2816
  activeTabKey: t.activeTabKey
1240
2817
  }, "replace");
1241
2818
  }
1242
- function m(e) {
1243
- let t = Xr(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
1244
- r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && g(r), l({
2819
+ function g(e) {
2820
+ let t = Sa(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
2821
+ r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && v(r), u({
1245
2822
  ...n.startup,
1246
2823
  tabs: t
1247
2824
  });
1248
2825
  }
1249
- function h(e) {
2826
+ function _(e) {
1250
2827
  let t = n.startup.tabs?.find((t) => t.key === e);
1251
2828
  if (!t) return;
1252
- let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : Jr(i, t);
1253
- g(o), l({
2829
+ let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : ba(i, t);
2830
+ v(o), u({
1254
2831
  ...n.startup,
1255
- tabs: J(n.startup.tabs ?? [], o)
2832
+ tabs: ha(n.startup.tabs ?? [], o)
1256
2833
  });
1257
2834
  }
1258
- function g(e) {
2835
+ function v(e) {
1259
2836
  let t = a.value, n = ++o;
1260
- a.value = e, _(e, t, n);
2837
+ a.value = e, ee(e, t, n);
1261
2838
  }
1262
- async function _(e, t, r) {
2839
+ async function ee(e, t, r) {
1263
2840
  try {
1264
- s = s.catch(() => void 0).then(() => li(C, e)), await s;
2841
+ s = s.catch(() => void 0).then(() => Ba(cn, e)), await s;
1265
2842
  } catch {
1266
2843
  if (r !== o) return;
1267
- a.value = t, l({
2844
+ a.value = t, u({
1268
2845
  ...n.startup,
1269
- tabs: J(n.startup.tabs ?? [], t, !1)
2846
+ tabs: ha(n.startup.tabs ?? [], t, !1)
1270
2847
  });
1271
2848
  }
1272
2849
  }
1273
- function ee(e) {
1274
- let t = Lr(n.startup.tabs ?? [], e);
1275
- return l({
2850
+ function te(e) {
2851
+ let t = aa(n.startup.tabs ?? [], e);
2852
+ return u({
1276
2853
  ...n.startup,
1277
2854
  tabs: t.tabs,
1278
2855
  activeTabKey: t.activeTabKey
1279
2856
  }, "push"), { created: t.created };
1280
2857
  }
1281
- function te(e, t = {}) {
1282
- return b(k(e, t), "push", n.startup, t.tabTitle, t.newInstance);
2858
+ function ne(e, t = {}) {
2859
+ return y(C(e, t), "push", n.startup, t.tabTitle, t.newInstance);
1283
2860
  }
1284
- function v(e, t = {}) {
1285
- let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = k(e, t);
1286
- if (!r || !i) return b(a, "replace", n.startup, t.tabTitle);
1287
- let o = q(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
2861
+ function re(e, t = {}) {
2862
+ let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = C(e, t);
2863
+ if (!r || !i) return y(a, "replace", n.startup, t.tabTitle);
2864
+ let o = ca(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
1288
2865
  if (!s) return { created: !1 };
1289
- let c = s.pageDescriptor && i.instanceKey ? O(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, u = c ? E(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
2866
+ let c = s.pageDescriptor && i.instanceKey ? x(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, l = c ? b(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
1290
2867
  ...i,
1291
2868
  ...s,
1292
2869
  key: r,
1293
2870
  instanceKey: i.instanceKey,
1294
2871
  pageDescriptor: c,
1295
- fullPath: u,
1296
- restoreState: u ? { url: u } : s.restoreState,
2872
+ fullPath: l,
2873
+ restoreState: l ? { url: l } : s.restoreState,
1297
2874
  title: t.tabTitle ?? s.title
1298
2875
  } : e);
1299
- return l({
2876
+ return u({
1300
2877
  ...o,
1301
2878
  tabs: d,
1302
2879
  activeTabKey: r
1303
2880
  }, "replace"), { created: !1 };
1304
2881
  }
1305
- function y(e) {
1306
- let t = n.startup.activeTabKey, r = t ? Hr(n.startup.tabs ?? [], t, t) : {
2882
+ function ie(e) {
2883
+ let t = n.startup.activeTabKey, r = t ? pa(n.startup.tabs ?? [], t, t) : {
1307
2884
  tabs: n.startup.tabs ?? [],
1308
2885
  activeTabKey: n.startup.activeTabKey
1309
2886
  };
1310
- t && a.value.some((e) => e.key === t) && g(Y(a.value, [t]));
2887
+ t && a.value.some((e) => e.key === t) && v(Y(a.value, [t]));
1311
2888
  let i = r.tabs.find((t) => {
1312
- let n = t.fullPath ?? (t.pageDescriptor ? E(t.pageDescriptor) : void 0);
2889
+ let n = t.fullPath ?? (t.pageDescriptor ? b(t.pageDescriptor) : void 0);
1313
2890
  return n && new URL(n, "http://muyun.local").pathname === e;
1314
2891
  });
1315
- return i ? (l({
2892
+ return i ? (u({
1316
2893
  ...n.startup,
1317
2894
  tabs: r.tabs,
1318
2895
  activeTabKey: i.key
1319
- }, "replace"), { created: !1 }) : b(k(e), "replace", {
2896
+ }, "replace"), { created: !1 }) : y(C(e), "replace", {
1320
2897
  ...n.startup,
1321
2898
  tabs: r.tabs,
1322
2899
  activeTabKey: r.activeTabKey
1323
2900
  });
1324
2901
  }
1325
- function b(e, t, r, i, a = !1) {
1326
- let o = new Set((r.tabs ?? []).map((e) => e.key)), s = q(r, e, {
2902
+ function y(e, t, r, i, a = !1) {
2903
+ let o = new Set((r.tabs ?? []).map((e) => e.key)), s = ca(r, e, {
1327
2904
  ...n.resolveOptions,
1328
2905
  title: i ?? n.resolveOptions.title
1329
2906
  }, a);
@@ -1333,11 +2910,11 @@ var _i = /* @__PURE__ */ I({
1333
2910
  ...e,
1334
2911
  title: i
1335
2912
  } : e)
1336
- }), l(s, t), { created: !!(s.activeTabKey && !o.has(s.activeTabKey)) };
2913
+ }), u(s, t), { created: !(!s.activeTabKey || o.has(s.activeTabKey)) };
1337
2914
  }
1338
- function ne(e, t) {
2915
+ function ae(e, t) {
1339
2916
  let r = t.trim();
1340
- !e || !r || l({
2917
+ e && r && u({
1341
2918
  ...n.startup,
1342
2919
  tabs: (n.startup.tabs ?? []).map((t) => t.instanceKey === e ? {
1343
2920
  ...t,
@@ -1345,39 +2922,39 @@ var _i = /* @__PURE__ */ I({
1345
2922
  } : t)
1346
2923
  });
1347
2924
  }
1348
- function x(e, t) {
2925
+ function oe(e, t) {
1349
2926
  let r = (n.startup.tabs ?? []).map((n) => n.key === e ? {
1350
2927
  ...n,
1351
2928
  title: t.title ?? n.title,
1352
2929
  pageDescriptor: t,
1353
- restoreState: { url: E(t) }
2930
+ restoreState: { url: b(t) }
1354
2931
  } : n), i = r.find((t) => t.key === e);
1355
- i && a.value.some((t) => t.key === e) && g(Jr(a.value, i)), l({
2932
+ i && a.value.some((t) => t.key === e) && v(ba(a.value, i)), u({
1356
2933
  ...n.startup,
1357
2934
  tabs: r
1358
2935
  }, "replace");
1359
2936
  }
1360
- function re(e, t) {
1361
- let i = gi(e, n.location, t);
2937
+ function se(e, t) {
2938
+ let i = Ua(e, n.location, t);
1362
2939
  i && r("navigate", i);
1363
2940
  }
1364
- function S(e) {
1365
- l(q(n.startup, e, n.resolveOptions));
2941
+ function ce(e) {
2942
+ u(ca(n.startup, e, n.resolveOptions));
1366
2943
  }
1367
- async function ie() {
2944
+ async function le() {
1368
2945
  let e = o;
1369
2946
  try {
1370
- let t = Gr(await ci(C), n.startup.menus, n.resolveOptions);
1371
- if (!c || e !== o) return;
2947
+ let t = _a(await za(cn), n.startup.menus, n.resolveOptions);
2948
+ if (!l || e !== o) return;
1372
2949
  a.value = t;
1373
2950
  let r = new Set(t.map((e) => e.key)), i = [...t, ...(n.startup.tabs ?? []).filter((e) => !r.has(e.key))];
1374
- l({
2951
+ u({
1375
2952
  ...n.startup,
1376
- tabs: J(i, t)
2953
+ tabs: ha(i, t)
1377
2954
  });
1378
2955
  } catch {}
1379
2956
  }
1380
- return (t, n) => (L(), j(tn, {
2957
+ return (t, n) => (M(), E(p, {
1381
2958
  startup: e.startup,
1382
2959
  loading: e.loading,
1383
2960
  error: e.error,
@@ -1385,16 +2962,16 @@ var _i = /* @__PURE__ */ I({
1385
2962
  "locked-tab-keys": a.value.map((e) => e.key),
1386
2963
  "realtime-status": e.realtimeStatus,
1387
2964
  "theme-appearance": e.themeAppearance,
1388
- onSelectMenu: u,
1389
- onChangeTab: d,
1390
- onCloseTab: f,
1391
- onCloseTabs: p,
1392
- onReorderTabs: m,
1393
- onToggleTabLock: h,
2965
+ onSelectMenu: d,
2966
+ onChangeTab: f,
2967
+ onCloseTab: m,
2968
+ onCloseTabs: h,
2969
+ onReorderTabs: g,
2970
+ onToggleTabLock: _,
1394
2971
  onRefreshPage: n[0] ||= (e) => r("refreshPage", e),
1395
2972
  onUserCommand: n[1] ||= (e) => r("userCommand", e)
1396
2973
  }, {
1397
- default: V(({ pageDescriptor: e }) => [Wn(t.$slots, "default", { pageDescriptor: e })]),
2974
+ default: I(({ pageDescriptor: e }) => [Xn(t.$slots, "default", { pageDescriptor: e })]),
1398
2975
  _: 3
1399
2976
  }, 8, [
1400
2977
  "startup",
@@ -1409,8 +2986,8 @@ var _i = /* @__PURE__ */ I({
1409
2986
  });
1410
2987
  //#endregion
1411
2988
  //#region src/app/loginTenant.ts
1412
- function vi(e, t = xi(), n = Si(), r = "/") {
1413
- let i = bi(t, n === yi(r));
2989
+ function Ga(e, t = Ja(), n = Ya(), r = "/") {
2990
+ let i = qa(t, n === Ka(r));
1414
2991
  return i ? {
1415
2992
  tenantId: i,
1416
2993
  tenantLocked: !0
@@ -1422,29 +2999,29 @@ function vi(e, t = xi(), n = Si(), r = "/") {
1422
2999
  function Q(e) {
1423
3000
  return e?.trim() ?? "";
1424
3001
  }
1425
- function yi(e) {
3002
+ function Ka(e) {
1426
3003
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
1427
3004
  return t === "/" ? t : `${t}/`;
1428
3005
  }
1429
- function bi(e, t) {
3006
+ function qa(e, t) {
1430
3007
  let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
1431
3008
  return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
1432
3009
  }
1433
- function xi() {
3010
+ function Ja() {
1434
3011
  return typeof window > "u" ? "" : window.location.search;
1435
3012
  }
1436
- function Si() {
3013
+ function Ya() {
1437
3014
  return typeof window > "u" ? "/" : window.location.pathname;
1438
3015
  }
1439
3016
  //#endregion
1440
3017
  //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
1441
- var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "login-brand" }, Ei = ["src"], Di = { key: 1 }, Oi = { key: 0 }, ki = {
3018
+ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "login-brand" }, $a = ["src"], eo = { key: 1 }, to = { key: 0 }, no = {
1442
3019
  key: 1,
1443
3020
  class: "login-subtitle"
1444
- }, Ai = {
3021
+ }, ro = {
1445
3022
  key: 0,
1446
3023
  class: "login-error"
1447
- }, ji = { key: 0 }, Mi = /*#__PURE__*/ At(/* @__PURE__ */ I({
3024
+ }, io = { key: 0 }, ao = /*#__PURE__*/ d(/* @__PURE__ */ j({
1448
3025
  name: "LoginView",
1449
3026
  __name: "LoginView",
1450
3027
  props: {
@@ -1456,13 +3033,14 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
1456
3033
  },
1457
3034
  emits: ["authenticated"],
1458
3035
  setup(e, { emit: t }) {
1459
- let n = e, r = t, i = vi(void 0), a = R(i.tenantId), o = i.tenantLocked, s = R(Q(n.initialUsername) || Q(void 0)), c = R(Q(void 0)), l = R(!1), u = R(), d = R(!1), f = R(), p = R(""), m = R(""), h = R(), g = R(!1), _ = R(), ee = A(() => !o || !g.value && !_.value), te = A(() => h.value?.mode !== "logoOnly"), v = A(() => h.value?.title || "平台登录"), y = A(() => h.value?.subtitle);
1460
- Vn(async () => {
1461
- if (!(!o || !a.value)) {
3036
+ let n = e, r = t, i = Ga(void 0), a = N(i.tenantId), o = i.tenantLocked, s = N(Q(n.initialUsername) || Q(void 0)), c = N(Q(void 0)), l = N(!1), u = N(), d = N(!1), f = N(), p = N(""), m = N(""), h = N(), g = N(!1), _ = N(), v = T(() => !o || !g.value && !_.value), ee = T(() => h.value?.mode !== "logoOnly"), te = T(() => h.value?.title || "平台登录"), ne = T(() => h.value?.subtitle);
3037
+ qn(async () => {
3038
+ if (o && a.value) {
1462
3039
  g.value = !0;
1463
3040
  try {
1464
3041
  if (!n.loginContextClient) throw Error("login context client is unavailable");
1465
- h.value = (await n.loginContextClient.loginContext(a.value)).branding;
3042
+ let e = await n.loginContextClient.loginContext(a.value);
3043
+ h.value = e.branding;
1466
3044
  } catch {
1467
3045
  _.value = "无法打开该租户的登录入口";
1468
3046
  } finally {
@@ -1470,7 +3048,7 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
1470
3048
  }
1471
3049
  }
1472
3050
  });
1473
- async function b() {
3051
+ async function re() {
1474
3052
  u.value = void 0, l.value = !0;
1475
3053
  try {
1476
3054
  let e = await n.authClient.login({
@@ -1484,12 +3062,15 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
1484
3062
  }
1485
3063
  r("authenticated", e);
1486
3064
  } catch (e) {
1487
- u.value = e instanceof Error ? e.message : "Login failed";
3065
+ u.value = ie(e);
1488
3066
  } finally {
1489
3067
  l.value = !1;
1490
3068
  }
1491
3069
  }
1492
- async function ne() {
3070
+ function ie(e) {
3071
+ return e instanceof Be ? e.code === fe.networkError || e.code === fe.httpError || (e.status ?? 0) >= 500 ? "无法连接后端服务,请确认服务已启动后重试" : e.code === fe.loginBadCredentials ? "用户名或密码错误" : e.message : e instanceof Error ? e.message : "登录失败,请稍后重试";
3072
+ }
3073
+ async function y() {
1493
3074
  if (u.value = void 0, !f.value) {
1494
3075
  u.value = "登录状态已失效,请重新登录", d.value = !1;
1495
3076
  return;
@@ -1503,100 +3084,102 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
1503
3084
  await n.authClient.changeOwnPassword({
1504
3085
  currentPassword: c.value,
1505
3086
  newPassword: p.value
1506
- }, f.value), c.value = p.value, r("authenticated", await n.authClient.login({
3087
+ }, f.value), c.value = p.value;
3088
+ let e = await n.authClient.login({
1507
3089
  tenantId: a.value,
1508
3090
  username: s.value,
1509
3091
  password: p.value
1510
- }));
3092
+ });
3093
+ r("authenticated", e);
1511
3094
  } catch (e) {
1512
3095
  u.value = e instanceof Error ? e.message : "Password change failed";
1513
3096
  } finally {
1514
3097
  l.value = !1;
1515
3098
  }
1516
3099
  }
1517
- return (t, n) => (L(), N("main", Ci, [P("section", wi, [
1518
- P("header", null, [P("div", Ti, [h.value?.lightLogo ? (L(), N("img", {
3100
+ return (t, n) => (M(), O("main", Xa, [k("section", Za, [
3101
+ k("header", null, [k("div", Qa, [h.value?.lightLogo ? (M(), O("img", {
1519
3102
  key: 0,
1520
3103
  class: "login-logo",
1521
3104
  src: h.value.lightLogo,
1522
3105
  alt: ""
1523
- }, null, 8, Ei)) : M("v-if", !0), te.value ? (L(), N("div", Di, [
1524
- h.value?.lightLogo ? M("v-if", !0) : (L(), N("p", Oi, "MuYun Platform")),
1525
- P("h1", null, z(v.value), 1),
1526
- y.value ? (L(), N("p", ki, z(y.value), 1)) : M("v-if", !0)
1527
- ])) : M("v-if", !0)])]),
1528
- u.value || e.error || _.value ? (L(), N("p", Ai, z(u.value || e.error || _.value), 1)) : M("v-if", !0),
1529
- d.value ? (L(), N("form", {
3106
+ }, null, 8, $a)) : D("v-if", !0), ee.value ? (M(), O("div", eo, [
3107
+ h.value?.lightLogo ? D("v-if", !0) : (M(), O("p", to, "MuYun Platform")),
3108
+ k("h1", null, P(te.value), 1),
3109
+ ne.value ? (M(), O("p", no, P(ne.value), 1)) : D("v-if", !0)
3110
+ ])) : D("v-if", !0)])]),
3111
+ u.value || e.error || _.value ? (M(), O("p", ro, P(u.value || e.error || _.value), 1)) : D("v-if", !0),
3112
+ d.value ? (M(), O("form", {
1530
3113
  key: 2,
1531
3114
  class: "login-form",
1532
- onSubmit: qn(ne, ["prevent"])
3115
+ onSubmit: $n(y, ["prevent"])
1533
3116
  }, [
1534
- n[10] ||= P("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
1535
- P("label", null, [n[8] ||= P("span", null, "新密码", -1), F(B(S), {
3117
+ n[10] ||= k("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
3118
+ k("label", null, [n[8] ||= k("span", null, "新密码", -1), A(F(S), {
1536
3119
  value: p.value,
1537
3120
  "onUpdate:value": n[3] ||= (e) => p.value = e,
1538
3121
  type: "password",
1539
3122
  autocomplete: "new-password",
1540
3123
  required: ""
1541
3124
  }, null, 8, ["value"])]),
1542
- P("label", null, [n[9] ||= P("span", null, "确认新密码", -1), F(B(S), {
3125
+ k("label", null, [n[9] ||= k("span", null, "确认新密码", -1), A(F(S), {
1543
3126
  value: m.value,
1544
3127
  "onUpdate:value": n[4] ||= (e) => m.value = e,
1545
3128
  type: "password",
1546
3129
  autocomplete: "new-password",
1547
3130
  required: ""
1548
3131
  }, null, 8, ["value"])]),
1549
- F(B(x), {
3132
+ A(F(Ie), {
1550
3133
  class: "login-submit",
1551
3134
  "html-type": "submit",
1552
3135
  type: "primary",
1553
3136
  loading: l.value || e.loading
1554
3137
  }, {
1555
- default: V(() => [In(z(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
3138
+ default: I(() => [Hn(P(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
1556
3139
  _: 1
1557
3140
  }, 8, ["loading"])
1558
- ], 32)) : (L(), N("form", {
3141
+ ], 32)) : (M(), O("form", {
1559
3142
  key: 1,
1560
3143
  class: "login-form",
1561
- onSubmit: qn(b, ["prevent"])
3144
+ onSubmit: $n(re, ["prevent"])
1562
3145
  }, [
1563
- B(o) ? M("v-if", !0) : (L(), N("label", ji, [n[5] ||= P("span", null, "租户 ID", -1), F(B(S), {
3146
+ F(o) ? D("v-if", !0) : (M(), O("label", io, [n[5] ||= k("span", null, "租户 ID", -1), A(F(S), {
1564
3147
  value: a.value,
1565
3148
  "onUpdate:value": n[0] ||= (e) => a.value = e,
1566
3149
  autocomplete: "organization",
1567
3150
  placeholder: "留空进入系统工作区"
1568
3151
  }, null, 8, ["value"])])),
1569
- P("label", null, [n[6] ||= P("span", null, "用户名", -1), F(B(S), {
3152
+ k("label", null, [n[6] ||= k("span", null, "用户名", -1), A(F(S), {
1570
3153
  value: s.value,
1571
3154
  "onUpdate:value": n[1] ||= (e) => s.value = e,
1572
3155
  autocomplete: "username",
1573
3156
  required: ""
1574
3157
  }, null, 8, ["value"])]),
1575
- P("label", null, [n[7] ||= P("span", null, "密码", -1), F(B(S), {
3158
+ k("label", null, [n[7] ||= k("span", null, "密码", -1), A(F(S), {
1576
3159
  value: c.value,
1577
3160
  "onUpdate:value": n[2] ||= (e) => c.value = e,
1578
3161
  type: "password",
1579
3162
  autocomplete: "current-password",
1580
3163
  required: ""
1581
3164
  }, null, 8, ["value"])]),
1582
- F(B(x), {
3165
+ A(F(Ie), {
1583
3166
  class: "login-submit",
1584
3167
  "html-type": "submit",
1585
3168
  type: "primary",
1586
- disabled: !ee.value,
3169
+ disabled: !v.value,
1587
3170
  loading: l.value || e.loading || g.value
1588
3171
  }, {
1589
- default: V(() => [In(z(l.value || e.loading ? "登录中" : "登录"), 1)]),
3172
+ default: I(() => [Hn(P(l.value || e.loading ? "登录中" : "登录"), 1)]),
1590
3173
  _: 1
1591
3174
  }, 8, ["disabled", "loading"])
1592
3175
  ], 32))
1593
3176
  ])]));
1594
3177
  }
1595
- }), [["__scopeId", "data-v-9164ba1f"]]);
3178
+ }), [["__scopeId", "data-v-76190b2a"]]);
1596
3179
  //#endregion
1597
3180
  //#region src/consumer/userPreferencePersistence.ts
1598
- function Ni(e) {
1599
- Ae({
3181
+ function oo(e) {
3182
+ vt({
1600
3183
  load: async (t) => (await e().request({
1601
3184
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
1602
3185
  query: { clientType: "WEB" }
@@ -1618,10 +3201,10 @@ function Ni(e) {
1618
3201
  }
1619
3202
  //#endregion
1620
3203
  //#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
1621
- var Pi = { class: "change-own-password-fields" }, Fi = {
3204
+ var so = { class: "change-own-password-fields" }, co = {
1622
3205
  key: 0,
1623
3206
  class: "change-own-password-error"
1624
- }, Ii = /*#__PURE__*/ At(/* @__PURE__ */ I({
3207
+ }, lo = /*#__PURE__*/ d(/* @__PURE__ */ j({
1625
3208
  name: "ChangeOwnPasswordDialog",
1626
3209
  __name: "ChangeOwnPasswordDialog",
1627
3210
  props: {
@@ -1647,7 +3230,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1647
3230
  ],
1648
3231
  setup(e, { emit: t }) {
1649
3232
  let n = t;
1650
- return (t, r) => (L(), j(B(We), {
3233
+ return (t, r) => (M(), E(F(sn), {
1651
3234
  open: e.open,
1652
3235
  title: "修改密码",
1653
3236
  "confirm-text": "保存",
@@ -1656,8 +3239,8 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1656
3239
  onConfirm: r[3] ||= (e) => n("submit"),
1657
3240
  onCancel: r[4] ||= (e) => n("close")
1658
3241
  }, {
1659
- default: V(() => [P("div", Pi, [
1660
- P("label", null, [r[5] ||= P("span", null, "当前密码", -1), F(B(S), {
3242
+ default: I(() => [k("div", so, [
3243
+ k("label", null, [r[5] ||= k("span", null, "当前密码", -1), A(F(S), {
1661
3244
  value: e.currentPassword,
1662
3245
  type: "password",
1663
3246
  autocomplete: "current-password",
@@ -1665,7 +3248,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1665
3248
  placeholder: "请输入当前密码",
1666
3249
  "onUpdate:value": r[0] ||= (e) => n("update:currentPassword", e)
1667
3250
  }, null, 8, ["value", "disabled"])]),
1668
- P("label", null, [r[6] ||= P("span", null, "新密码", -1), F(B(S), {
3251
+ k("label", null, [r[6] ||= k("span", null, "新密码", -1), A(F(S), {
1669
3252
  value: e.newPassword,
1670
3253
  type: "password",
1671
3254
  autocomplete: "new-password",
@@ -1673,7 +3256,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1673
3256
  placeholder: "请输入新密码",
1674
3257
  "onUpdate:value": r[1] ||= (e) => n("update:newPassword", e)
1675
3258
  }, null, 8, ["value", "disabled"])]),
1676
- P("label", null, [r[7] ||= P("span", null, "确认新密码", -1), F(B(S), {
3259
+ k("label", null, [r[7] ||= k("span", null, "确认新密码", -1), A(F(S), {
1677
3260
  value: e.confirmPassword,
1678
3261
  type: "password",
1679
3262
  autocomplete: "new-password",
@@ -1681,7 +3264,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1681
3264
  placeholder: "请再次输入新密码",
1682
3265
  "onUpdate:value": r[2] ||= (e) => n("update:confirmPassword", e)
1683
3266
  }, null, 8, ["value", "disabled"])])
1684
- ]), e.error ? (L(), N("p", Fi, z(e.error), 1)) : M("v-if", !0)]),
3267
+ ]), e.error ? (M(), O("p", co, P(e.error), 1)) : D("v-if", !0)]),
1685
3268
  _: 1
1686
3269
  }, 8, [
1687
3270
  "open",
@@ -1689,22 +3272,22 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1689
3272
  "confirm-disabled"
1690
3273
  ]));
1691
3274
  }
1692
- }), [["__scopeId", "data-v-6905dcfc"]]), Li = { class: "theme-skin-preferences" }, Ri = {
3275
+ }), [["__scopeId", "data-v-6905dcfc"]]), uo = { class: "theme-skin-preferences" }, fo = {
1693
3276
  key: 0,
1694
3277
  class: "theme-skin-error",
1695
3278
  role: "alert"
1696
- }, zi = {
3279
+ }, po = {
1697
3280
  class: "theme-skin-grid",
1698
3281
  role: "radiogroup",
1699
3282
  "aria-label": "工作台皮肤"
1700
- }, Bi = [
3283
+ }, mo = [
1701
3284
  "aria-checked",
1702
3285
  "tabindex",
1703
3286
  "data-skin-id",
1704
3287
  "disabled",
1705
3288
  "onClick",
1706
3289
  "onKeydown"
1707
- ], Vi = /*#__PURE__*/ At(/* @__PURE__ */ I({
3290
+ ], ho = /*#__PURE__*/ d(/* @__PURE__ */ j({
1708
3291
  name: "ThemeSkinPreferencesDialog",
1709
3292
  __name: "ThemeSkinPreferencesDialog",
1710
3293
  props: {
@@ -1735,7 +3318,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1735
3318
  let a = e.key === "Home" ? 0 : e.key === "End" ? i - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + i) % i, o = r?.children.item(a), s = o?.dataset.skinId;
1736
3319
  s && (n("select", s), o?.focus());
1737
3320
  }
1738
- return (t, i) => (L(), j(B(We), {
3321
+ return (t, i) => (M(), E(F(sn), {
1739
3322
  open: e.open,
1740
3323
  title: "偏好设置",
1741
3324
  width: 460,
@@ -1744,12 +3327,12 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1744
3327
  onConfirm: i[0] ||= (e) => n("close"),
1745
3328
  onCancel: i[1] ||= (e) => n("close")
1746
3329
  }, {
1747
- default: V(() => [P("section", Li, [
1748
- i[3] ||= P("header", null, [P("h2", null, "工作台皮肤"), P("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
1749
- e.error ? (L(), N("p", Ri, z(e.error), 1)) : M("v-if", !0),
1750
- P("div", zi, [(L(!0), N(Fn, null, Un(e.skins, (t, a) => (L(), N("button", {
3330
+ default: I(() => [k("section", uo, [
3331
+ i[3] ||= k("header", null, [k("h2", null, "工作台皮肤"), k("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
3332
+ e.error ? (M(), O("p", fo, P(e.error), 1)) : D("v-if", !0),
3333
+ k("div", po, [(M(!0), O(Vn, null, Yn(e.skins, (t, a) => (M(), O("button", {
1751
3334
  key: t.id,
1752
- class: Rn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3335
+ class: Wn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
1753
3336
  type: "button",
1754
3337
  role: "radio",
1755
3338
  "aria-checked": t.id === e.activeSkinId,
@@ -1759,9 +3342,9 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1759
3342
  onClick: (e) => n("select", t.id),
1760
3343
  onKeydown: (e) => r(e, a)
1761
3344
  }, [
1762
- P("span", {
3345
+ k("span", {
1763
3346
  class: "theme-skin-preview",
1764
- style: zn({
3347
+ style: Gn({
1765
3348
  "--skin-canvas": t.theme.support.canvas,
1766
3349
  "--skin-surface": t.theme.support.surface,
1767
3350
  "--skin-text": t.theme.support.text,
@@ -1769,13 +3352,13 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1769
3352
  "--skin-accent": t.theme.brandAccent.base
1770
3353
  })
1771
3354
  }, [...i[2] ||= [
1772
- P("i", { class: "theme-skin-preview-sidebar" }, null, -1),
1773
- P("i", { class: "theme-skin-preview-toolbar" }, null, -1),
1774
- P("i", { class: "theme-skin-preview-card" }, null, -1)
3355
+ k("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3356
+ k("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3357
+ k("i", { class: "theme-skin-preview-card" }, null, -1)
1775
3358
  ]], 4),
1776
- P("strong", null, z(t.title), 1),
1777
- P("small", null, z(t.description), 1)
1778
- ], 42, Bi))), 128))])
3359
+ k("strong", null, P(t.title), 1),
3360
+ k("small", null, P(t.description), 1)
3361
+ ], 42, mo))), 128))])
1779
3362
  ])]),
1780
3363
  _: 1
1781
3364
  }, 8, [
@@ -1785,11 +3368,11 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
1785
3368
  ]));
1786
3369
  }
1787
3370
  }), [["__scopeId", "data-v-5d36f806"]]), $ = "workbench.theme-skin";
1788
- async function Hi(e, t) {
1789
- let n = d(await e.restore($, t, { persistence: "backend" })).id;
1790
- return await e.set($, n, { persistence: "local" }), n;
3371
+ async function go(e, t) {
3372
+ let n = await e.restore($, t, { persistence: "backend" }), r = ht(n).id;
3373
+ return await e.set($, r, { persistence: "local" }), r;
1791
3374
  }
1792
- async function Ui(e, t, n) {
3375
+ async function _o(e, t, n) {
1793
3376
  await e.set($, t, { persistence: "local" });
1794
3377
  try {
1795
3378
  return await e.set($, t, { persistence: "backend" }), { skinId: t };
@@ -1801,4 +3384,4 @@ async function Ui(e, t, n) {
1801
3384
  }
1802
3385
  }
1803
3386
  //#endregion
1804
- export { ft as AppError, _i as AppWorkbenchShell, Ii as ChangeOwnPasswordDialog, at as DateTimeText, Je as DrawerOperationBar, Qt as DynamicModuleWorkspaceDetailView, vt as FileSizeText, se as FileTransferUploader, Mi as LoginView, a as ModuleContextProvider, hi as PlatformAdminOutlet, Fr as PlatformAdminRouteOutlet, h as RecordDetailDrawer, be as SingleImageFileReferenceField, Vi as ThemeSkinPreferencesDialog, x as UiButton, Ot as UiDataTable, S as UiInput, ke as UiSidePanel, s as UiSwitch, Xe as UiTextArea, wt as UiThemeProvider, Et as UiTree, Qe as UiTreeSelect, Tr as VueQueryPlugin, tn as Workbench, en as WorkbenchMenu, Ft as WorkbenchOutlet, _n as WorkspaceViewOutlet, g as actionResultData, zr as activeTabUrlOf, J as arrangeLockedMenuTabs, qt as buildWorkbenchMegaMenuModel, rt as canQueryRecycleBin, hn as canonicalDynamicModulePath, on as clearAuthToken, _e as configureModuleContext, Zt as configureModulePageEnhancementContributions, $t as configureModulePageEnhancements, Ni as configureUserPreferencePersistence, Mt as configureWorkspaceViewContributions, He as confirmAction, vn as connectAppRealtime, nt as connectRealtimeBusinessEvents, Ge as connectRealtimeBusinessNotifications, Ue as connectRealtimeDataChanges, Oe as connectRealtimeUserNotifications, St as contextDataChangeChannel, Ne as createAuthClient, bn as createBackendHttpClient, e as createBrowserFileTransferUpload, kt as createDataChangeDispatcher, ze as createHttpClient, $e as createLoginContextClient, ut as createManagedDetailRelationClient, yt as createMenuClient, w as createMenuTab, _ as createModuleContext, v as createModuleCrudClient, Lt as createModulePageEnhancementRegistry, we as createModuleTreeClient, he as createModuleTreeContext, Se as createNavigatorReferenceCrudClient, De as createNavigatorReferenceTreeClient, Ie as createPageBootstrapClient, te as createQueryClient, Dt as createRealtimeClient, pt as createReferenceResolveClient, Ve as createSessionClient, le as createStaticModuleCrudClient, n as createStaticModuleTreeClient, Re as createStaticResourceCrudClient, gt as createStaticResourceTreeClient, jt as createWorkbenchMenuNodes, gn as createWorkspaceViewDescriptor, Ut as createWorkspaceViewRegistry, Me as dataChangeChannel, pe as defaultUiThemeSkinId, It as defineWorkspaceView, kn as disconnectAppRealtime, Wt as dismissWorkspaceViewDescriptor, Sn as dynamicModuleAliasFromPath, Nn as effectiveAuthToken, ln as filterWorkbenchMenuNodes, Dn as findFirstNavigationMenu, On as findWorkbenchMenuNodeById, xn as findWorkbenchMenuPath, En as firstDeepRootIdOf, T as getMenuNavigationTarget, et as hasExecutableDetailRelationMutationContract, bt as hasExecutableDetailRelationQueryContract, dt as hasRecycleBinAbility, Tt as imConversationMessageChannel, de as imMessageSendCommand, ge as invokeBusinessNotificationRecordAction, _t as isHttpStreamClient, Ar as isPlatformAdminRoutePage, yn as isTabMenuTarget, qe as isUnexpectedPlatformError, An as isWindowMenuTarget, Ke as moduleAbilityCodes, o as moduleDataChangeChannel, Vt as modulePageWorkspaceViews, i as normalizeChangeSet, je as normalizeError, st as normalizeMenuMineResponse, Ct as organizationPublicDataChangeChannel, fe as organizationPublicNotificationChannel, cn as pageDescriptorFromUrl, E as pageDescriptorToUrl, wn as pageInstanceKeyOf, Dr as platformAdminModuleRoutes, Or as platformAdminRouteLayouts, Er as platformAdminRoutePrefixes, K as platformAdminRoutes, ot as platformErrorCodes, u as platformPingCommand, ht as presentPlatformError, Fe as presentPlatformInfo, tt as presentPlatformMessage, xt as presentPlatformSuccess, nn as presentWorkbenchRealtimeStatus, Tn as provideCurrentUserContext, ye as provideModuleContextConfig, Jt as provideWorkbenchNavigation, zt as provideWorkspaceViewHost, Ce as queryKeys, c as realtimeDestinations, ae as realtimeMessageTypes, Ze as recordDataChangeChannel, Rt as refreshModulePageList, Y as removeLockedMenuTabs, mt as resolveGlobalErrorPresentation, D as resolvePageDescriptor, kr as resolvePlatformAdminRoute, me as resolveWebActionResult, ve as resolveWebActionResultMessage, Kt as resolveWorkspaceView, r as resourceDataChangeChannel, Ye as resourceRecordDataChangeChannel, ci as restoreLockedTabPreference, Gr as restoreLockedWorkbenchTabs, Hi as restoreThemeSkinPreference, q as restoreWorkbenchStartupStateFromUrl, k as routeUrlWithOpenOptions, Yt as saveAuthSessionId, Pt as saveAuthToken, li as saveLockedTabPreference, Ui as saveThemeSkinPreference, re as sessionActivityCommand, Mn as storedAuthSessionId, Xt as storedAuthToken, sn as subscribeAppBusinessEvents, un as subscribeAppDataChanges, Cn as subscribeAppModuleDataChanges, Gt as syncModulePageWorkspaceViewContributions, mn as tabIdentityKeyOf, fn as tabKeyOf, ie as tenantPublicDataChangeChannel, oe as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, an as tryPageDescriptorFromUrl, d as uiThemeSkinById, l as uiThemeSkins, Be as unwrapResponsePayload, Jr as updateLockedMenuTabs, Te as uploadedFileId, Bt as useCurrentUserContext, m as useModuleContext, b as useModuleTreeContext, Nt as useWorkbenchNavigation, Ht as useWorkspaceViewHost, f as userBusinessEventChannel, ee as userBusinessNotificationChannel, Pe as userFacingErrorMessage, ne as userImMessageChannel, ue as userNotificationChannel, C as userPreferences, p as webDataChangeKey, Le as webDataChangeTypes, y as webDataChanges, it as withHttpHeaders, O as withPageInstanceKey, lt as withWebActionResultChanges };
3387
+ export { Be as AppError, Wa as AppWorkbenchShell, Fe as BusinessNotificationPanel, lo as ChangeOwnPasswordDialog, u as DateTimeText, Ot as DrawerOperationBar, Ct as DynamicModuleWorkspaceDetailView, Ht as FileSizeText, _t as FileTransferUploader, ao as LoginView, _e as ModuleContextProvider, be as ModuleHttpProvider, Ha as PlatformAdminOutlet, Zi as PlatformAdminRouteOutlet, Ye as RecordDetailDrawer, pt as SingleImageFileReferenceField, ho as ThemeSkinPreferencesDialog, Ie as UiButton, tn as UiDataTable, S as UiInput, Wt as UiSidePanel, dt as UiSwitch, nt as UiTextArea, Rt as UiThemeProvider, at as UiTree, Et as UiTreeSelect, Ri as VueQueryPlugin, p as Workbench, Te as WorkbenchMenu, en as WorkbenchOutlet, it as WorkspaceViewOutlet, De as actionResultData, sa as activeTabUrlOf, ha as arrangeLockedMenuTabs, a as buildWorkbenchMegaMenuModel, $e as canQueryRecycleBin, se as canonicalDynamicModulePath, Mn as clearAuthToken, Ee as configureModuleContext, yn as configureModulePageEnhancementContributions, st as configureModulePageEnhancements, oo as configureUserPreferencePersistence, Kt as configureWorkspaceViewContributions, tt as confirmAction, Nn as connectAppRealtime, zt as connectRealtimeBusinessEvents, dn as connectRealtimeBusinessNotifications, gt as connectRealtimeDataChanges, xt as connectRealtimeUserNotifications, Xt as contextDataChangeChannel, nn as createAuthClient, Pn as createBackendHttpClient, St as createBrowserFileTransferUpload, En as createDataChangeDispatcher, s as createHttpClient, At as createLoginContextClient, o as createManagedDetailRelationClient, ot as createMenuClient, ge as createMenuTab, g as createModuleContext, He as createModuleCrudClient, gn as createModulePageEnhancementRegistry, re as createModuleTreeClient, ae as createModuleTreeContext, ze as createNavigatorReferenceCrudClient, Ge as createNavigatorReferenceTreeClient, qt as createPageBootstrapClient, zi as createQueryClient, Vt as createRealtimeClient, Gt as createReferenceResolveClient, an as createSessionClient, ee as createStaticModuleCrudClient, de as createStaticModuleTreeClient, Qt as createStaticResourceCrudClient, ce as createStaticResourceTreeClient, Nt as createWorkbenchMenuNodes, rn as createWorkspaceViewDescriptor, ut as createWorkspaceViewRegistry, Dt as dataChangeChannel, un as defaultUiThemeSkinId, zn as defineWorkspaceView, In as disconnectAppRealtime, Lt as dismissWorkspaceViewDescriptor, Me as dynamicModuleAliasFromPath, jn as effectiveAuthToken, ye as filterWorkbenchMenuNodes, wn as findFirstNavigationMenu, Se as findWorkbenchMenuNodeById, Oe as findWorkbenchMenuPath, v as firstDeepRootIdOf, c as getMenuNavigationTarget, Ze as hasExecutableDetailRelationMutationContract, Je as hasExecutableDetailRelationQueryContract, ke as hasRecycleBinAbility, wt as imConversationMessageChannel, rt as imMessageSendCommand, Vi as invokeBusinessNotificationRecordAction, Ue as isHttpStreamClient, Ki as isPlatformAdminRoutePage, We as isTabMenuTarget, Ke as isUnexpectedPlatformError, y as isWindowMenuTarget, n as moduleAbilityCodes, pn as moduleDataChangeChannel, Ne as modulePageWorkspaceViews, Tn as normalizeChangeSet, te as normalizeError, ft as normalizeMenuMineResponse, Xe as normalizeModulePageResponse, qe as normalizeModuleRecord, bn as organizationPublicDataChangeChannel, ct as organizationPublicNotificationChannel, Ce as pageActionEntryDescription, Pt as pageActionEntryTitle, r as pageActionEntryVisible, jt as pageActionIntent, Ve as pageDescriptorFromUrl, b as pageDescriptorToUrl, ne as pageInstanceKeyOf, Ui as platformAdminModuleRoutes, Wi as platformAdminRouteLayouts, Hi as platformAdminRoutePrefixes, J as platformAdminRoutes, fe as platformErrorCodes, _n as platformPingCommand, mn as presentPlatformError, xn as presentPlatformInfo, lt as presentPlatformMessage, vn as presentPlatformSuccess, It as presentWorkbenchRealtimeStatus, Re as provideCurrentUserContext, me as provideModuleContextConfig, Yt as provideWorkbenchNavigation, mt as provideWorkspaceViewHost, Bi as queryKeys, Pe as realtimeDestinations, l as realtimeMessageTypes, hn as recordDataChangeChannel, fn as refreshModulePageList, Y as removeLockedMenuTabs, $t as resolveGlobalErrorPresentation, pe as resolvePageDescriptor, Gi as resolvePlatformAdminRoute, _ as resolveWebActionResult, oe as resolveWebActionResultMessage, ln as resolveWorkspaceView, Le as resourceDataChangeChannel, m as resourceRecordDataChangeChannel, za as restoreLockedTabPreference, _a as restoreLockedWorkbenchTabs, go as restoreThemeSkinPreference, ca as restoreWorkbenchStartupStateFromUrl, C as routeUrlWithOpenOptions, Dn as saveAuthSessionId, Ln as saveAuthToken, Ba as saveLockedTabPreference, _o as saveThemeSkinPreference, f as sessionActivityCommand, Rn as storedAuthSessionId, On as storedAuthToken, kn as subscribeAppBusinessEvents, An as subscribeAppDataChanges, Fn as subscribeAppModuleDataChanges, kt as syncModulePageWorkspaceViewContributions, w as tabIdentityKeyOf, ue as tabKeyOf, we as tenantPublicDataChangeChannel, Ft as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, Qe as tryPageDescriptorFromUrl, ht as uiThemeSkinById, bt as uiThemeSkins, Zt as unwrapResponsePayload, ba as updateLockedMenuTabs, Bt as uploadedFileId, h as useCurrentUserContext, Ae as useModuleContext, Sn as useModuleTreeContext, Tt as useWorkbenchNavigation, yt as useWorkspaceViewHost, Ut as useWorkspaceViewNavigation, on as useWorkspaceViewUnsavedState, i as userBusinessEventChannel, Mt as userBusinessNotificationChannel, le as userFacingErrorMessage, ve as userImMessageChannel, xe as userNotificationChannel, cn as userPreferences, he as webDataChangeKey, et as webDataChangeTypes, je as webDataChanges, ie as withHttpHeaders, x as withPageInstanceKey, Cn as withWebActionResultChanges };