@luigi-project/core-modular 0.0.16 → 0.0.17-dev.20261030051

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/luigi.js CHANGED
@@ -805,10 +805,10 @@ var i = (/* @__PURE__ */ e(((e, t) => {
805
805
  function Oi(e) {
806
806
  var t = Cd(e);
807
807
  return function(n) {
808
- return G(n, e, t);
808
+ return ki(n, e, t);
809
809
  };
810
810
  }
811
- function G(e, t, r) {
811
+ function ki(e, t, r) {
812
812
  var i = r.length;
813
813
  if (e == null) return !i;
814
814
  for (e = O(e); i--;) {
@@ -817,7 +817,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
817
817
  }
818
818
  return !0;
819
819
  }
820
- function ki(e, t, r) {
820
+ function G(e, t, r) {
821
821
  if (typeof e != "function") throw new At(o);
822
822
  return ks(function() {
823
823
  e.apply(n, r);
@@ -1003,14 +1003,14 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1003
1003
  return typeof e == "function" ? e : e == null ? Mf : typeof e == "object" ? Z(e) ? ga(e[0], e[1]) : ha(e) : Gf(e);
1004
1004
  }
1005
1005
  function da(e) {
1006
- if (!vs(e)) return fn(e);
1006
+ if (!Y(e)) return fn(e);
1007
1007
  var t = [];
1008
1008
  for (var n in O(e)) A.call(e, n) && n != "constructor" && t.push(n);
1009
1009
  return t;
1010
1010
  }
1011
1011
  function fa(e) {
1012
1012
  if (!Du(e)) return Ss(e);
1013
- var t = vs(e), n = [];
1013
+ var t = Y(e), n = [];
1014
1014
  for (var r in e) r == "constructor" && (t || !A.call(e, r)) || n.push(r);
1015
1015
  return n;
1016
1016
  }
@@ -1025,12 +1025,12 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1025
1025
  }
1026
1026
  function ha(e) {
1027
1027
  var t = Qo(e);
1028
- return t.length == 1 && t[0][2] ? X(t[0][0], t[0][1]) : function(n) {
1028
+ return t.length == 1 && t[0][2] ? bs(t[0][0], t[0][1]) : function(n) {
1029
1029
  return n === e || aa(n, e, t);
1030
1030
  };
1031
1031
  }
1032
1032
  function ga(e, t) {
1033
- return ms(e) && ys(t) ? X(Fs(e), t) : function(r) {
1033
+ return ms(e) && ys(t) ? bs(Fs(e), t) : function(r) {
1034
1034
  var i = _d(r, e);
1035
1035
  return i === n && i === t ? yd(r, e) : na(t, i, h | g);
1036
1036
  };
@@ -1077,7 +1077,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1077
1077
  value: e
1078
1078
  };
1079
1079
  }), function(e, t) {
1080
- return so(e, t, n);
1080
+ return q(e, t, n);
1081
1081
  });
1082
1082
  }
1083
1083
  function xa(e, t) {
@@ -1314,7 +1314,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1314
1314
  var n = t ? no(e.buffer) : e.buffer;
1315
1315
  return new e.constructor(n, e.byteOffset, e.length);
1316
1316
  }
1317
- function q(e, t) {
1317
+ function so(e, t) {
1318
1318
  if (e !== t) {
1319
1319
  var r = e !== n, i = e === null, a = e === e, o = Hu(e), s = t !== n, c = t === null, l = t === t, u = Hu(t);
1320
1320
  if (!c && !u && !o && e > t || o && s && l && !c && !u || i && s && l || !r && l || !a) return 1;
@@ -1322,9 +1322,9 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1322
1322
  }
1323
1323
  return 0;
1324
1324
  }
1325
- function so(e, t, n) {
1325
+ function q(e, t, n) {
1326
1326
  for (var r = -1, i = e.criteria, a = t.criteria, o = i.length, s = n.length; ++r < o;) {
1327
- var c = q(i[r], a[r]);
1327
+ var c = so(i[r], a[r]);
1328
1328
  if (c) return r >= s ? c : c * (n[r] == "desc" ? -1 : 1);
1329
1329
  }
1330
1330
  return e.index - t.index;
@@ -1802,7 +1802,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1802
1802
  return t && typeof e[0] == "string" && A.call(e, "index") && (n.index = e.index, n.input = e.input), n;
1803
1803
  }
1804
1804
  function cs(e) {
1805
- return typeof e.constructor == "function" && !vs(e) ? Vr(Kt(e)) : {};
1805
+ return typeof e.constructor == "function" && !Y(e) ? Vr(Kt(e)) : {};
1806
1806
  }
1807
1807
  function ls(e, t, n) {
1808
1808
  var r = e.constructor;
@@ -1865,20 +1865,20 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1865
1865
  function _s(e) {
1866
1866
  return !!Lt && Lt in e;
1867
1867
  }
1868
- var Y = Pt ? wu : Xf;
1869
- function vs(e) {
1868
+ var vs = Pt ? wu : Xf;
1869
+ function Y(e) {
1870
1870
  var t = e && e.constructor;
1871
1871
  return e === (typeof t == "function" && t.prototype || Nt);
1872
1872
  }
1873
1873
  function ys(e) {
1874
1874
  return e === e && !Du(e);
1875
1875
  }
1876
- function X(e, t) {
1876
+ function bs(e, t) {
1877
1877
  return function(r) {
1878
1878
  return r == null ? !1 : r[e] === t && (t !== n || e in O(r));
1879
1879
  };
1880
1880
  }
1881
- function bs(e) {
1881
+ function X(e) {
1882
1882
  var t = Wl(e, function(e) {
1883
1883
  return n.size === u && n.clear(), e;
1884
1884
  }), n = t.cache;
@@ -1949,7 +1949,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
1949
1949
  }
1950
1950
  return e.length = t, e;
1951
1951
  }
1952
- var Ps = bs(function(e) {
1952
+ var Ps = X(function(e) {
1953
1953
  var t = [];
1954
1954
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(st, function(e, n, r, i) {
1955
1955
  t.push(r ? i.replace(gt, "$1") : n || e);
@@ -2109,7 +2109,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2109
2109
  var n = e == null ? 0 : e.length, r = Ti(e, t);
2110
2110
  return Ta(e, N(t, function(e) {
2111
2111
  return fs(e, n) ? +e : e;
2112
- }).sort(q)), r;
2112
+ }).sort(so)), r;
2113
2113
  });
2114
2114
  function _c(e, t) {
2115
2115
  var n = [];
@@ -2471,9 +2471,9 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2471
2471
  return C.cancel = x, C.flush = S, C;
2472
2472
  }
2473
2473
  var Vl = K(function(e, t) {
2474
- return ki(e, 1, t);
2474
+ return G(e, 1, t);
2475
2475
  }), Hl = K(function(e, t, n) {
2476
- return ki(e, Qu(t) || 0, n);
2476
+ return G(e, Qu(t) || 0, n);
2477
2477
  });
2478
2478
  function Ul(e) {
2479
2479
  return Ro(e, ne);
@@ -2563,7 +2563,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2563
2563
  return t = typeof t == "function" ? t : n, Di(e, f | m, t);
2564
2564
  }
2565
2565
  function su(e, t) {
2566
- return t == null || G(e, t, Cd(t));
2566
+ return t == null || ki(e, t, Cd(t));
2567
2567
  }
2568
2568
  function cu(e, t) {
2569
2569
  return e === t || e !== e && t !== t;
@@ -2593,7 +2593,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2593
2593
  if (pu(e) && (Z(e) || typeof e == "string" || typeof e.splice == "function" || gu(e) || Uu(e) || du(e))) return !e.length;
2594
2594
  var t = rs(e);
2595
2595
  if (t == De || t == Pe) return !e.size;
2596
- if (vs(e)) return !da(e).length;
2596
+ if (Y(e)) return !da(e).length;
2597
2597
  for (var n in e) if (A.call(e, n)) return !1;
2598
2598
  return !0;
2599
2599
  }
@@ -2642,7 +2642,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2642
2642
  return Iu(e) && e != +e;
2643
2643
  }
2644
2644
  function Nu(e) {
2645
- if (Y(e)) throw new Et(a);
2645
+ if (vs(e)) throw new Et(a);
2646
2646
  return oa(e);
2647
2647
  }
2648
2648
  function Pu(e) {
@@ -2724,7 +2724,7 @@ var i = (/* @__PURE__ */ e(((e, t) => {
2724
2724
  return e == null ? "" : Va(e);
2725
2725
  }
2726
2726
  var td = go(function(e, t) {
2727
- if (vs(t) || pu(t)) {
2727
+ if (Y(t) || pu(t)) {
2728
2728
  fo(t, Cd(t), e);
2729
2729
  return;
2730
2730
  }
@@ -3507,10 +3507,10 @@ var i = (/* @__PURE__ */ e(((e, t) => {
3507
3507
  return !!s.getConfigValue("auth.use");
3508
3508
  }
3509
3509
  login() {
3510
- this.isAuthorizationEnabled() && ki.startAuthorization();
3510
+ this.isAuthorizationEnabled() && Ai.startAuthorization();
3511
3511
  }
3512
3512
  logout() {
3513
- this.isAuthorizationEnabled() && ki.logout();
3513
+ this.isAuthorizationEnabled() && Ai.logout();
3514
3514
  }
3515
3515
  async handleAuthEvent(e, t, n, r) {
3516
3516
  let i = await s.executeConfigFnAsync("auth.events." + e, !1, t, n), a = i === void 0 || !!i;
@@ -3526,11 +3526,11 @@ var i = (/* @__PURE__ */ e(((e, t) => {
3526
3526
  getStorageType: () => c.getStorageType(),
3527
3527
  getAuthData: () => c.getAuthData(),
3528
3528
  setAuthData: (e) => {
3529
- c.setAuthData(e), ki.broadcastAuthData(e);
3529
+ c.setAuthData(e), Ai.broadcastAuthData(e);
3530
3530
  },
3531
3531
  removeAuthData: () => c.removeAuthData(),
3532
3532
  setNewlyAuthorized: () => {
3533
- c.setNewlyAuthorized(), ki.resetExpirationChecks();
3533
+ c.setNewlyAuthorized(), Ai.resetExpirationChecks();
3534
3534
  }
3535
3535
  };
3536
3536
  }
@@ -7904,7 +7904,7 @@ var fi = {
7904
7904
  return this.nodeDataManagementService ||= W.get(vi), this.nodeDataManagementService;
7905
7905
  }
7906
7906
  async getPathData(e) {
7907
- let t = this.luigi.getConfig(), n = e.split("/");
7907
+ let t = this.luigi.getConfig(), n = e?.split("/");
7908
7908
  n?.length > 0 && n[0] === "" && (n = n.slice(1));
7909
7909
  let r = t.navigation?.globalContext || {}, i;
7910
7910
  if (this.getNodeDataManagementService().hasRootNode()) i = this.getNodeDataManagementService().getRootNode().node;
@@ -7983,7 +7983,8 @@ var fi = {
7983
7983
  id: n,
7984
7984
  label: a,
7985
7985
  nodes: [],
7986
- tooltip: this.resolveTooltipText(s.category, a)
7986
+ tooltip: this.resolveTooltipText(s.category, a),
7987
+ navigateOnClick: s.category.navigateOnClick ?? !1
7987
7988
  }
7988
7989
  }, r[n] = o, i.push(o);
7989
7990
  else if (e) if (o.badgeCounter) {
@@ -8023,7 +8024,11 @@ var fi = {
8023
8024
  count: () => s,
8024
8025
  label: ""
8025
8026
  };
8026
- return i.unshift(...a), {
8027
+ return i.unshift(...a), i.forEach((e) => {
8028
+ if (!e.category?.navigateOnClick || !e.category.nodes?.length) return;
8029
+ let t = e.category.navigateOnClick, n = t === !0 ? e.category.nodes.find((e) => e.node?.category?.navigateOnClick) : e.category.nodes.find((e) => e.node?.pathSegment === t);
8030
+ n && (n.navigateOnClick = !0);
8031
+ }), {
8027
8032
  items: i,
8028
8033
  totalBadgeNode: c
8029
8034
  };
@@ -8146,7 +8151,7 @@ var fi = {
8146
8151
  icon: n.navigation?.profile?.logout?.icon || hi.logout.icon,
8147
8152
  testId: n.navigation?.profile?.logout?.testId || H.prepareForTests(s),
8148
8153
  doLogout: () => {
8149
- ki.logout();
8154
+ Ai.logout();
8150
8155
  }
8151
8156
  },
8152
8157
  settings: {
@@ -8157,7 +8162,7 @@ var fi = {
8157
8162
  },
8158
8163
  onUserInfoUpdate: (e) => {
8159
8164
  this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then((t) => {
8160
- t ? e(t) : ki.getUserInfoStore().subscribe((t) => {
8165
+ t ? e(t) : Ai.getUserInfoStore().subscribe((t) => {
8161
8166
  e(t);
8162
8167
  });
8163
8168
  });
@@ -8168,7 +8173,7 @@ var fi = {
8168
8173
  e.externalLink?.url ? H.openExternalLink(e.externalLink) : e.link && this.luigi.navigation().navigate(e.link);
8169
8174
  }
8170
8175
  }, v = await this.buildNavItems(r.rootNodes, h, r), y = p;
8171
- return p?.searchProvider?.inputPlaceholder && (y = {
8176
+ p?.searchProvider?.inputPlaceholder && (y = {
8172
8177
  ...y,
8173
8178
  searchProvider: {
8174
8179
  ...y?.searchProvider,
@@ -8177,11 +8182,15 @@ var fi = {
8177
8182
  }), p?.searchFieldCentered && (y = {
8178
8183
  ...y,
8179
8184
  searchFieldCentered: !!this.luigi.getConfigValue("settings.experimental.globalSearchCentered")
8180
- }), {
8185
+ });
8186
+ let b = "";
8187
+ return typeof n.settings?.header?.altText == "string" && (b = this.luigi.i18n().getTranslation(n.settings.header.altText)), {
8181
8188
  appTitle: o || n.settings?.header?.title,
8189
+ favicon: n.settings?.header?.favicon,
8182
8190
  globalSearch: y,
8183
8191
  isHeaderDisabled: !!n.settings?.header?.disabled,
8184
8192
  logo: n.settings?.header?.logo,
8193
+ logoAltText: b,
8185
8194
  topNodes: v.items,
8186
8195
  totalBadgeNode: v.totalBadgeNode,
8187
8196
  contextSwitcher: g,
@@ -8684,17 +8693,17 @@ var fi = {
8684
8693
  async shouldShowModalPathInUrl(e) {
8685
8694
  this.luigi.getConfigValue("routing.showModalPathInUrl") && await this.handleBookmarkableModalPath(e);
8686
8695
  }
8687
- async handleBookmarkableModalPath(e) {
8688
- let t = W.get(yi), n = W.get(_i), r = new URLSearchParams(e?.query || ""), i = U.getModalViewParamName(this.luigi), a = r.get(i);
8689
- if (a) {
8690
- let e = r.get(`${i}Params`);
8696
+ async handleBookmarkableModalPath(e, t = !0) {
8697
+ let n = W.get(yi), r = W.get(_i), i = new URLSearchParams(e?.query || ""), a = U.getModalViewParamName(this.luigi), o = i.get(a);
8698
+ if (o) {
8699
+ let e = i.get(`${a}Params`);
8691
8700
  try {
8692
- let n = JSON.parse(e || "{}"), { nodeObject: r } = await t.extractDataFromPath(a);
8693
- document.querySelector(".lui-modal luigi-container") ? this.luigi.getEngine()._connector?.updateModalSettings(n) : this.luigi.navigation().openAsModal(a, n || r.openNodeInModal);
8701
+ let t = JSON.parse(e || "{}"), { nodeObject: r } = await n.extractDataFromPath(o);
8702
+ document.querySelector(".lui-modal luigi-container") ? this.luigi.getEngine()._connector?.updateModalSettings(t) : this.luigi.navigation().openAsModal(o, t || r.openNodeInModal);
8694
8703
  } catch (e) {
8695
8704
  console.error("Error parsing modal settings from URL parameters", e);
8696
8705
  }
8697
- } else return await n.closeModalsWithDirtyCheck(), void 0;
8706
+ } else return t && await r.closeModalsWithDirtyCheck(), void 0;
8698
8707
  }
8699
8708
  appendModalDataToUrl(e, t) {
8700
8709
  let n = U.getHashQueryParamSeparator(), r = U.getQueryParams(this.luigi), i = U.getModalViewParamName(this.luigi), a = r[i], o = new URL(location.href), s = this.luigi.getConfigValue("routing.useHashRouting"), c = history.state, l, u;
@@ -8876,6 +8885,24 @@ var fi = {
8876
8885
  }, Oi = (e, t, n, r) => {
8877
8886
  let i = t.getConfigValue("settings.webcomponentCreationInterceptor");
8878
8887
  a.isFunction(i) && (e.webcomponentCreationInterceptor = i, e.currentNode = n, e._luigiMicroFrontendType = r !== "main");
8888
+ }, ki = async (e, t, n) => {
8889
+ let r = n.getConfigValue("routing.showModalPathInUrl"), i = W.get(_i);
8890
+ if (r) {
8891
+ let r = W.get(Si), a = !!n.getConfigValue("routing.useHashRouting"), o = U.getCurrentPath(n, a, !0);
8892
+ await i.closeModalsWithDirtyCheck() && (await r.handleBookmarkableModalPath(o, !1), G.drawerContainer && G.drawerContainer?.updateContext && G.drawerContainer.updateContext(e || {}, { withoutSync: t }));
8893
+ } else {
8894
+ let n = a.getNodeList("luigi-container[lui_container]", !0), r = W.get(gi), i = async (e) => {
8895
+ if (r.shouldShowUnsavedChangesModal(e)) try {
8896
+ await r.getUnsavedChangesModalPromise(e);
8897
+ } catch {
8898
+ return;
8899
+ }
8900
+ };
8901
+ if (G.modalContainer.length) for (let e of G.modalContainer) await i(e);
8902
+ G.drawerContainer && await i(G.drawerContainer), n?.length > 1 && n.filter((e) => !e.parentNode.classList.contains("content")).forEach((n) => {
8903
+ n?.updateContext && n.updateContext(e || {}, { withoutSync: t });
8904
+ });
8905
+ }
8879
8906
  }, G = {
8880
8907
  navService: void 0,
8881
8908
  routingService: void 0,
@@ -8935,8 +8962,8 @@ var fi = {
8935
8962
  } else r || n.viewGroup || n.virtualTree && p === n.virtualTreeRootNode || !e.viewGroup && !e.isolateView && !e.webcomponent && n.viewurl && (i || m && a.isSameUrl(n.viewurl, m)) ? f = n : r || n.remove();
8936
8963
  }), f && f._luigiPreloading && (f._luigiPreloading = !1, W.get(bi).viewGroupLoaded(f)), f) {
8937
8964
  let n = f.viewurl;
8938
- !r && !i && (f.style.display = "block", f.viewurl = m, f.nodeParams = l, f.pathParams = u, f.clientPermissions = e.clientPermissions, f.searchParams = d, f.locale = t.i18n().getCurrentLocale(), f.theme = t.theming().getCurrentTheme(), f.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), f.userSettingsGroup = e.userSettingsGroup, f.userSettings = s, Ti(f, t), Ei(f, t)), r && !i && (f.nodeParams = l, f.pathParams = u, f.searchParams = d), i || (a.isSameUrl(n, m) && n !== m && !f.virtualTree && !r ? (f.context = e.context || {}, f.updateViewUrl(m)) : f.updateContext(e.context || {}, { withoutSync: !!r }));
8939
- } else if (r) !i && o && o.updateContext(e.context || {}, { withoutSync: r });
8965
+ !r && !i && (f.style.display = "block", f.viewurl = m, f.nodeParams = l, f.pathParams = u, f.clientPermissions = e.clientPermissions, f.searchParams = d, f.locale = t.i18n().getCurrentLocale(), f.theme = t.theming().getCurrentTheme(), f.activeFeatureToggleList = t.featureToggles().getActiveFeatureToggleList(), f.userSettingsGroup = e.userSettingsGroup, f.userSettings = s, Ti(f, t), Ei(f, t)), r && !i && (f.nodeParams = l, f.pathParams = u, f.searchParams = d), i || (a.isSameUrl(n, m) && n !== m && !f.virtualTree && !r ? (f.context = e.context || {}, f.updateViewUrl(m)) : (f.updateContext(e.context || {}, { withoutSync: !!r }), await ki(e.context || {}, !!r, t)));
8966
+ } else if (r) !i && o && (o.updateContext(e.context || {}, { withoutSync: r }), await ki(e.context || {}, !!r, t));
8940
8967
  else {
8941
8968
  let r = await wi(e, t, n, "main");
8942
8969
  c?.appendChild(r);
@@ -9013,14 +9040,16 @@ var fi = {
9013
9040
  }
9014
9041
  let o = await wi(t, e, i, "drawer");
9015
9042
  G.drawerContainer = o;
9016
- let s = new Promise((e) => {
9017
- o.addEventListener(V.CLOSE_CURRENT_MODAL_REQUEST, async () => {
9043
+ let s = !1, c, l = new Promise((e) => {
9044
+ c = () => {
9045
+ s || (s = !0, e());
9046
+ }, o.addEventListener(V.CLOSE_CURRENT_MODAL_REQUEST, async () => {
9018
9047
  try {
9019
9048
  await a.getUnsavedChangesModalPromise(o);
9020
9049
  } catch {
9021
9050
  return;
9022
9051
  }
9023
- G.drawerContainer = void 0, a.clearDirtyState(o), e();
9052
+ G.drawerContainer = void 0, a.clearDirtyState(o), c && c();
9024
9053
  });
9025
9054
  });
9026
9055
  e.getEngine()._connector?.renderDrawer(o, n, async () => {
@@ -9029,10 +9058,10 @@ var fi = {
9029
9058
  } catch {
9030
9059
  return;
9031
9060
  }
9032
- r?.(), G.drawerContainer = void 0, a.clearDirtyState(o);
9033
- }, () => s);
9034
- let c = e.getEngine()._connector;
9035
- t.loadingIndicator?.enabled !== !1 && c?.showLoadingIndicator(o.parentElement);
9061
+ r?.(), G.drawerContainer = void 0, a.clearDirtyState(o), c && c();
9062
+ }, () => l);
9063
+ let u = e.getEngine()._connector;
9064
+ t.loadingIndicator?.enabled !== !1 && u?.showLoadingIndicator(o.parentElement);
9036
9065
  },
9037
9066
  openUserSettings: async (e, t, n, r) => {
9038
9067
  let i = {};
@@ -9058,7 +9087,7 @@ var fi = {
9058
9087
  await r.storeUserSettings(n, t);
9059
9088
  }, r.getEngine()._connector?.openUserSettings(e, t, n);
9060
9089
  }
9061
- }, ki = new class {
9090
+ }, Ai = new class {
9062
9091
  idpProviderInstance;
9063
9092
  _userInfoStore;
9064
9093
  _loggedInStore;
@@ -9143,7 +9172,7 @@ var fi = {
9143
9172
  G.modalContainer?.forEach((t) => t.setAttribute("auth-data", JSON.stringify(e))), G.drawerContainer && G.drawerContainer.setAttribute("auth-data", JSON.stringify(e));
9144
9173
  }
9145
9174
  }
9146
- }(), Ai = { luigi: {
9175
+ }(), ji = { luigi: {
9147
9176
  button: {
9148
9177
  confirm: "Yes",
9149
9178
  dismiss: "No"
@@ -9162,7 +9191,7 @@ var fi = {
9162
9191
  body: "Unsaved changes will be lost. Do you want to continue?",
9163
9192
  header: "Unsaved changes detected"
9164
9193
  }
9165
- } }, ji = class {
9194
+ } }, Mi = class {
9166
9195
  luigi;
9167
9196
  currentLocaleStorageKey;
9168
9197
  defaultLocale;
@@ -9170,7 +9199,7 @@ var fi = {
9170
9199
  translationImpl;
9171
9200
  translationTable;
9172
9201
  constructor(e) {
9173
- this.luigi = e, this.currentLocaleStorageKey = "luigi.currentLocale", this.defaultLocale = "en", this.listeners = {}, this.translationTable = Ai;
9202
+ this.luigi = e, this.currentLocaleStorageKey = "luigi.currentLocale", this.defaultLocale = "en", this.listeners = {}, this.translationTable = ji;
9174
9203
  }
9175
9204
  _init() {
9176
9205
  this._initCustomImplementation(), this.addCurrentLocaleChangeListener((e) => {
@@ -9225,7 +9254,7 @@ var fi = {
9225
9254
  e = e.replace(RegExp("{" + fi.escapeKeyForRegexp(n) + "}", "gi"), t[n]);
9226
9255
  }), e;
9227
9256
  }
9228
- }, Mi = {
9257
+ }, Ni = {
9229
9258
  getMicrofrontendsInDom(e) {
9230
9259
  return [
9231
9260
  ...this.getMainMicrofrontends(e).map((e) => ({
@@ -9311,7 +9340,7 @@ var fi = {
9311
9340
  for (let e of G.modalContainer) e.iframeHandle?.iframe && n.push(e);
9312
9341
  return G.drawerContainer && G.drawerContainer.iframeHandle?.iframe && n.push(G.drawerContainer), n.length > 0 ? n : void 0;
9313
9342
  }
9314
- }, Ni = class {
9343
+ }, Pi = class {
9315
9344
  luigi;
9316
9345
  constructor(e) {
9317
9346
  this.luigi = e;
@@ -9329,7 +9358,7 @@ var fi = {
9329
9358
  return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer() || null;
9330
9359
  }
9331
9360
  getMicrofrontends() {
9332
- return Mi.getMicrofrontendsInDom(this.luigi);
9361
+ return Ni.getMicrofrontendsInDom(this.luigi);
9333
9362
  }
9334
9363
  getMicrofrontendIframes() {
9335
9364
  let e = this.luigi.getEngine()._connector?.getContainerWrapper(), t = [];
@@ -9345,11 +9374,11 @@ var fi = {
9345
9374
  for (let t of Array.from(e.children)) t.tagName?.startsWith("LUIGI-") && a.isElementVisible(t) && (t.iframeHandle?.iframe ? n = t.iframeHandle.iframe : r = t.shadowRoot?.firstElementChild?.firstElementChild ?? null);
9346
9375
  return t || n || r;
9347
9376
  }
9348
- }, Pi = { luigiAfterInit: async (e) => {
9377
+ }, Fi = { luigiAfterInit: async (e) => {
9349
9378
  a.getConfigBooleanValue(e.getConfig(), "settings.appLoadingIndicator.hideAutomatically") && setTimeout(() => {
9350
9379
  e.ux().hideAppLoadingIndicator();
9351
9380
  }, 0), await s.executeConfigFnAsync("lifecycleHooks.luigiAfterInit");
9352
- } }, Fi = class {
9381
+ } }, Ii = class {
9353
9382
  featureToggleList;
9354
9383
  constructor() {
9355
9384
  this.featureToggleList = /* @__PURE__ */ new Set();
@@ -9375,7 +9404,7 @@ var fi = {
9375
9404
  isDuplicatedOrDisabled(e) {
9376
9405
  return this.featureToggleList.has(e) ? (console.warn("Feature toggle name already exists"), !0) : this.featureToggleList.has(`!${e}`) ? (console.warn("Disabled feature toggle can not be activated"), !0) : !1;
9377
9406
  }
9378
- }, Ii = class {
9407
+ }, Li = class {
9379
9408
  luigi;
9380
9409
  isSearchFieldVisible = !1;
9381
9410
  isSearchResultVisible = !1;
@@ -9426,11 +9455,11 @@ var fi = {
9426
9455
  mi.toggleSearch(this.isSearchFieldVisible, this.searchProvider, e);
9427
9456
  }), e?.clearSearchField();
9428
9457
  }
9429
- }, Li = class {
9458
+ }, Ri = class {
9430
9459
  luigi;
9431
9460
  globalSearchService;
9432
9461
  constructor(e) {
9433
- this.luigi = e, this.globalSearchService = W.get(Ii);
9462
+ this.luigi = e, this.globalSearchService = W.get(Li);
9434
9463
  }
9435
9464
  openSearchField() {
9436
9465
  this.globalSearchService.hasSearchProvider() && (this.globalSearchService.setFieldVisibility(!0), this.luigi.getEngine()._connector?.getGlobalSearchHandler?.()?.openSearchField());
@@ -9456,7 +9485,7 @@ var fi = {
9456
9485
  setSearchInputPlaceholder(e) {
9457
9486
  this.globalSearchService.setSearchInputPlaceholder(e);
9458
9487
  }
9459
- }, Ri = class {
9488
+ }, zi = class {
9460
9489
  luigi;
9461
9490
  hashRouting = !1;
9462
9491
  navService;
@@ -9527,7 +9556,7 @@ var fi = {
9527
9556
  let i = await this.navService.getCurrentNode(r), a = t || {};
9528
9557
  if (!a.header?.title) {
9529
9558
  let e = await U.getNodeLabel(i, this.luigi) || "";
9530
- a.header ? a.header.title = e : a.header = { title: e };
9559
+ a.header && Object.keys(a.header).length ? a.header.title = e : a.header = { title: e };
9531
9560
  }
9532
9561
  a.overlap === void 0 && (a.overlap = !0);
9533
9562
  let o = a.nodeParams || this.options.nodeParams || {};
@@ -9560,7 +9589,7 @@ var fi = {
9560
9589
  async updateTopNavigation() {
9561
9590
  this.luigi.configChanged("navigation");
9562
9591
  }
9563
- }, zi = class {
9592
+ }, Bi = class {
9564
9593
  luigi;
9565
9594
  constructor(e) {
9566
9595
  this.luigi = e;
@@ -9621,7 +9650,7 @@ var fi = {
9621
9650
  e = [...n.length > 2 ? n.slice(0, -1) : n, e].join("#"), window.history.pushState(null, "", e);
9622
9651
  } else window.location.hash = e;
9623
9652
  }
9624
- }, Bi = class {
9653
+ }, Vi = class {
9625
9654
  #e;
9626
9655
  #t = "";
9627
9656
  constructor(e) {
@@ -9678,7 +9707,7 @@ var fi = {
9678
9707
  }), t && t.useFioriScrollbars === !0 && document.body.classList.add("fioriScrollbars");
9679
9708
  })();
9680
9709
  }
9681
- }, Vi = new class {
9710
+ }, Hi = new class {
9682
9711
  processUserSettingGroups(e, t) {
9683
9712
  let n = [], r = e?.userSettingGroups, i = t?.userSettings?.userSettingGroups, o = r || i;
9684
9713
  if (a.isObject(o)) {
@@ -9704,7 +9733,7 @@ var fi = {
9704
9733
  for (let n = 0; n < t.length; n++) if (t[n].contentWindow === e) return t[n];
9705
9734
  return null;
9706
9735
  }
9707
- }(), Hi = class {
9736
+ }(), Ui = class {
9708
9737
  luigi;
9709
9738
  dirtyStatusService = W.get(gi);
9710
9739
  appLoadingIndicatorSelector = "[luigi-app-loading-indicator]";
@@ -9754,7 +9783,7 @@ var fi = {
9754
9783
  openUserSettings = async () => {
9755
9784
  let e = this.luigi.getConfigValue("userSettings");
9756
9785
  if (!e) return;
9757
- let t = this.luigi.getConfigValue("settings"), n = await this.luigi.readUserSettings(), r = Vi.processUserSettingGroups(e, t), i = e.userSettingsDialog || {}, a = i.dialogHeader || hi.userSettingsDialog.dialogHeader, o = i.saveBtn || hi.userSettingsDialog.saveBtn, s = i.dismissBtn || hi.userSettingsDialog.dismissBtn, c = {
9786
+ let t = this.luigi.getConfigValue("settings"), n = await this.luigi.readUserSettings(), r = Hi.processUserSettingGroups(e, t), i = e.userSettingsDialog || {}, a = i.dialogHeader || hi.userSettingsDialog.dialogHeader, o = i.saveBtn || hi.userSettingsDialog.saveBtn, s = i.dismissBtn || hi.userSettingsDialog.dismissBtn, c = {
9758
9787
  dialogHeader: this.luigi.i18n().getTranslation(a),
9759
9788
  saveBtn: this.luigi.i18n().getTranslation(o),
9760
9789
  dismissBtn: this.luigi.i18n().getTranslation(s)
@@ -9779,7 +9808,7 @@ var fi = {
9779
9808
  addBackdrop = () => this.luigi.getEngine()._connector?.addBackdrop();
9780
9809
  removeBackdrop = () => this.luigi.getEngine()._connector?.removeBackdrop();
9781
9810
  getDirtyStatus = () => this.dirtyStatusService.readDirtyStatus();
9782
- }, Ui = new class {
9811
+ }, Wi = new class {
9783
9812
  filterIdFromMessageObject(e) {
9784
9813
  let { id: t, ...n } = e;
9785
9814
  return {
@@ -9787,18 +9816,18 @@ var fi = {
9787
9816
  messageWithoutId: n
9788
9817
  };
9789
9818
  }
9790
- }(), Wi = class {
9819
+ }(), Gi = class {
9791
9820
  luigi;
9792
9821
  constructor(e) {
9793
9822
  this.luigi = e;
9794
9823
  }
9795
9824
  sendToAll(e) {
9796
- let t = Mi.getAllLuigiContainerIframe(this.luigi);
9825
+ let t = Ni.getAllLuigiContainerIframe(this.luigi);
9797
9826
  if (!t) {
9798
9827
  console.warn("No Luigi containers found to send the message to.");
9799
9828
  return;
9800
9829
  }
9801
- let { id: n, messageWithoutId: r } = Ui.filterIdFromMessageObject(e);
9830
+ let { id: n, messageWithoutId: r } = Wi.filterIdFromMessageObject(e);
9802
9831
  if (!n) {
9803
9832
  console.warn("Message object must contain an \"id\" property to specify the message type.");
9804
9833
  return;
@@ -9806,12 +9835,12 @@ var fi = {
9806
9835
  for (let e of t) e.sendCustomMessage ? e.sendCustomMessage(n, r) : console.warn("Container does not support sending custom messages:", e);
9807
9836
  }
9808
9837
  send(e, t) {
9809
- let n = Mi.getAllLuigiContainerIframe(this.luigi);
9838
+ let n = Ni.getAllLuigiContainerIframe(this.luigi);
9810
9839
  if (!n) {
9811
9840
  console.warn("No Luigi containers found to send the message to.");
9812
9841
  return;
9813
9842
  }
9814
- let { id: r, messageWithoutId: i } = Ui.filterIdFromMessageObject(t);
9843
+ let { id: r, messageWithoutId: i } = Wi.filterIdFromMessageObject(t);
9815
9844
  if (!r) {
9816
9845
  console.warn("Message object must contain an \"id\" property to specify the message type.");
9817
9846
  return;
@@ -9822,7 +9851,7 @@ var fi = {
9822
9851
  }
9823
9852
  console.warn(`No container found with microfrontend ID: ${e}`);
9824
9853
  }
9825
- }, Gi = class {
9854
+ }, Ki = class {
9826
9855
  engine;
9827
9856
  config;
9828
9857
  _customMessages;
@@ -9845,8 +9874,8 @@ var fi = {
9845
9874
  return this.engine;
9846
9875
  }
9847
9876
  setConfig = (e) => {
9848
- this.config = e, this.setConfigCallback(this.getConfigReadyCallback()), ki.init().then(() => {
9849
- this.engine.init(), this.initialized || (this.initialized = !0, Pi.luigiAfterInit(this));
9877
+ this.config = e, this.setConfigCallback(this.getConfigReadyCallback()), Ai.init().then(() => {
9878
+ this.engine.init(), this.initialized || (this.initialized = !0, Fi.luigiAfterInit(this));
9850
9879
  });
9851
9880
  };
9852
9881
  getConfig = () => this.config;
@@ -9900,17 +9929,17 @@ var fi = {
9900
9929
  this.unload(), this.setConfig(e);
9901
9930
  }
9902
9931
  unload() {
9903
- this.initialized = !1, window.Luigi._store.clear(), ki.unload(), xi.removeAllEventListeners(), this.getEngine()._connector?.unload(), this._i18n = void 0;
9904
- }
9905
- customMessages = () => (this._customMessages ||= new Wi(this), this._customMessages);
9906
- i18n = () => (this._i18n ||= new ji(this), this._i18n);
9907
- elements = () => (this._elements ||= new Ni(this), this._elements);
9908
- navigation = () => new Ri(this);
9909
- ux = () => new Hi(this);
9910
- featureToggles = () => (this._featureToggles ||= new Fi(), this._featureToggles);
9911
- globalSearch = () => (this._globalSearch ||= new Li(this), this._globalSearch);
9912
- routing = () => (this._routing ||= new zi(this), this._routing);
9913
- theming = () => (this._theming ||= new Bi(this), this._theming);
9932
+ this.initialized = !1, window.Luigi._store.clear(), Ai.unload(), xi.removeAllEventListeners(), this.getEngine()._connector?.unload(), this._i18n = void 0;
9933
+ }
9934
+ customMessages = () => (this._customMessages ||= new Gi(this), this._customMessages);
9935
+ i18n = () => (this._i18n ||= new Mi(this), this._i18n);
9936
+ elements = () => (this._elements ||= new Pi(this), this._elements);
9937
+ navigation = () => new zi(this);
9938
+ ux = () => new Ui(this);
9939
+ featureToggles = () => (this._featureToggles ||= new Ii(), this._featureToggles);
9940
+ globalSearch = () => (this._globalSearch ||= new Ri(this), this._globalSearch);
9941
+ routing = () => (this._routing ||= new Bi(this), this._routing);
9942
+ theming = () => (this._theming ||= new Vi(this), this._theming);
9914
9943
  auth = () => l;
9915
9944
  createConfigStore() {
9916
9945
  let e = r({}), t = {}, n = [];
@@ -9946,11 +9975,11 @@ var fi = {
9946
9975
  setConfigCallback(e) {
9947
9976
  this.configReadyCallback = e;
9948
9977
  }
9949
- }, Ki = Array.isArray, qi = Array.prototype.indexOf, Ji = Array.prototype.includes, Yi = Array.from, Xi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, Qi = Object.prototype, $i = Array.prototype, ea = Object.getPrototypeOf, ta = Object.isExtensible, na = () => {};
9950
- function ra(e) {
9978
+ }, qi = Array.isArray, Ji = Array.prototype.indexOf, Yi = Array.prototype.includes, Xi = Array.from, Zi = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, $i = Object.prototype, ea = Array.prototype, ta = Object.getPrototypeOf, na = Object.isExtensible, ra = () => {};
9979
+ function ia(e) {
9951
9980
  for (var t = 0; t < e.length; t++) e[t]();
9952
9981
  }
9953
- function ia() {
9982
+ function aa() {
9954
9983
  var e, t;
9955
9984
  return {
9956
9985
  promise: new Promise((n, r) => {
@@ -9960,56 +9989,56 @@ function ia() {
9960
9989
  reject: t
9961
9990
  };
9962
9991
  }
9963
- var aa = 1024, oa = 2048, sa = 4096, ca = 8192, la = 16384, ua = 32768, da = 1 << 25, fa = 65536, pa = 1 << 19, ma = 1 << 20, ha = 65536, ga = 1 << 21, _a = 1 << 23, va = Symbol("$state"), ya = Symbol("attributes"), ba = Symbol("class"), xa = Symbol("style"), Sa = Symbol("text"), Ca = new class extends Error {
9992
+ var oa = 1024, sa = 2048, ca = 4096, la = 8192, ua = 16384, da = 32768, fa = 1 << 25, pa = 65536, ma = 1 << 19, ha = 1 << 20, ga = 65536, _a = 1 << 21, va = 1 << 23, ya = Symbol("$state"), ba = Symbol("attributes"), xa = Symbol("class"), Sa = Symbol("style"), Ca = Symbol("text"), wa = new class extends Error {
9964
9993
  name = "StaleReactionError";
9965
9994
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
9966
9995
  }();
9967
9996
  globalThis.document?.contentType;
9968
- function wa() {
9997
+ function Ta() {
9969
9998
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
9970
9999
  }
9971
- function Ta() {
10000
+ function Ea() {
9972
10001
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
9973
10002
  }
9974
- function Ea() {
10003
+ function Da() {
9975
10004
  throw Error("https://svelte.dev/e/state_prototype_fixed");
9976
10005
  }
9977
- function Da() {
10006
+ function Oa() {
9978
10007
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
9979
10008
  }
9980
- function Oa() {
10009
+ function K() {
9981
10010
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
9982
10011
  }
9983
10012
  //#endregion
9984
10013
  //#region node_modules/svelte/src/constants.js
9985
- var K = {}, ka = Symbol();
9986
- function Aa() {
10014
+ var ka = {}, Aa = Symbol();
10015
+ function ja() {
9987
10016
  console.warn("https://svelte.dev/e/derived_inert");
9988
10017
  }
9989
- function ja(e) {
10018
+ function Ma(e) {
9990
10019
  console.warn("https://svelte.dev/e/hydration_mismatch");
9991
10020
  }
9992
- function Ma() {
10021
+ function Na() {
9993
10022
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
9994
10023
  }
9995
10024
  //#endregion
9996
10025
  //#region node_modules/svelte/src/internal/client/dom/hydration.js
9997
- var Na = !1, Pa;
9998
- function Fa(e) {
9999
- if (e === null) throw ja(), K;
10000
- return Pa = e;
10026
+ var Pa = !1, Fa;
10027
+ function Ia(e) {
10028
+ if (e === null) throw Ma(), ka;
10029
+ return Fa = e;
10001
10030
  }
10002
- function Ia() {
10003
- return Fa(/* @__PURE__ */ Xo(Pa));
10031
+ function La() {
10032
+ return Ia(/* @__PURE__ */ J(Fa));
10004
10033
  }
10005
- function La(e = 1) {
10006
- if (Na) {
10007
- for (var t = e, n = Pa; t--;) n = /* @__PURE__ */ Xo(n);
10008
- Pa = n;
10034
+ function Ra(e = 1) {
10035
+ if (Pa) {
10036
+ for (var t = e, n = Fa; t--;) n = /* @__PURE__ */ J(n);
10037
+ Fa = n;
10009
10038
  }
10010
10039
  }
10011
- function Ra(e = !0) {
10012
- for (var t = 0, n = Pa;;) {
10040
+ function za(e = !0) {
10041
+ for (var t = 0, n = Fa;;) {
10013
10042
  if (n.nodeType === 8) {
10014
10043
  var r = n.data;
10015
10044
  if (r === "]") {
@@ -10017,77 +10046,77 @@ function Ra(e = !0) {
10017
10046
  --t;
10018
10047
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
10019
10048
  }
10020
- var i = /* @__PURE__ */ Xo(n);
10049
+ var i = /* @__PURE__ */ J(n);
10021
10050
  e && n.remove(), n = i;
10022
10051
  }
10023
10052
  }
10024
10053
  //#endregion
10025
10054
  //#region node_modules/svelte/src/internal/client/reactivity/equality.js
10026
- function za(e) {
10055
+ function Ba(e) {
10027
10056
  return e === this.v;
10028
10057
  }
10029
10058
  //#endregion
10030
10059
  //#region node_modules/svelte/src/internal/flags/index.js
10031
- var Ba = !1, Va = !1;
10032
- function Ha() {
10033
- Va = !0;
10060
+ var Va = !1, Ha = !1;
10061
+ function Ua() {
10062
+ Ha = !0;
10034
10063
  }
10035
10064
  //#endregion
10036
10065
  //#region node_modules/svelte/src/internal/client/context.js
10037
- var Ua = null;
10038
- function Wa(e) {
10039
- Ua = e;
10066
+ var Wa = null;
10067
+ function Ga(e) {
10068
+ Wa = e;
10040
10069
  }
10041
- function Ga(e, t = !1, n) {
10042
- Ua = {
10043
- p: Ua,
10070
+ function Ka(e, t = !1, n) {
10071
+ Wa = {
10072
+ p: Wa,
10044
10073
  i: !1,
10045
10074
  c: null,
10046
10075
  e: null,
10047
10076
  s: e,
10048
10077
  x: null,
10049
10078
  r: X,
10050
- l: Va && !t ? {
10079
+ l: Ha && !t ? {
10051
10080
  s: null,
10052
10081
  u: null,
10053
10082
  $: []
10054
10083
  } : null
10055
10084
  };
10056
10085
  }
10057
- function Ka(e) {
10058
- var t = Ua, n = t.e;
10086
+ function qa(e) {
10087
+ var t = Wa, n = t.e;
10059
10088
  if (n !== null) {
10060
10089
  t.e = null;
10061
- for (var r of n) es(r);
10090
+ for (var r of n) ts(r);
10062
10091
  }
10063
- return e !== void 0 && (t.x = e), t.i = !0, Ua = t.p, e ?? {};
10092
+ return e !== void 0 && (t.x = e), t.i = !0, Wa = t.p, e ?? {};
10064
10093
  }
10065
- function qa() {
10066
- return !Va || Ua !== null && Ua.l === null;
10094
+ function Ja() {
10095
+ return !Ha || Wa !== null && Wa.l === null;
10067
10096
  }
10068
10097
  //#endregion
10069
10098
  //#region node_modules/svelte/src/internal/client/dom/task.js
10070
- var Ja = [];
10071
- function Ya() {
10072
- var e = Ja;
10073
- Ja = [], ra(e);
10074
- }
10075
- function Xa(e) {
10076
- if (Ja.length === 0 && !uo) {
10077
- var t = Ja;
10099
+ var Ya = [];
10100
+ function Xa() {
10101
+ var e = Ya;
10102
+ Ya = [], ia(e);
10103
+ }
10104
+ function Za(e) {
10105
+ if (Ya.length === 0 && !fo) {
10106
+ var t = Ya;
10078
10107
  queueMicrotask(() => {
10079
- t === Ja && Ya();
10108
+ t === Ya && Xa();
10080
10109
  });
10081
10110
  }
10082
- Ja.push(e);
10111
+ Ya.push(e);
10083
10112
  }
10084
- function Za(e) {
10113
+ function Qa(e) {
10085
10114
  var t = X;
10086
- if (t === null) return Y.f |= _a, e;
10115
+ if (t === null) return Y.f |= va, e;
10087
10116
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
10088
- Qa(e, t);
10117
+ $a(e, t);
10089
10118
  }
10090
- function Qa(e, t) {
10119
+ function $a(e, t) {
10091
10120
  for (; t !== null;) {
10092
10121
  if (t.f & 128) {
10093
10122
  if (!(t.f & 32768)) throw e;
@@ -10104,25 +10133,25 @@ function Qa(e, t) {
10104
10133
  }
10105
10134
  //#endregion
10106
10135
  //#region node_modules/svelte/src/internal/client/reactivity/status.js
10107
- var $a = ~(oa | sa | aa);
10108
- function eo(e, t) {
10109
- e.f = e.f & $a | t;
10136
+ var eo = ~(sa | ca | oa);
10137
+ function to(e, t) {
10138
+ e.f = e.f & eo | t;
10110
10139
  }
10111
- function to(e) {
10112
- e.f & 512 || e.deps === null ? eo(e, aa) : eo(e, sa);
10140
+ function no(e) {
10141
+ e.f & 512 || e.deps === null ? to(e, oa) : to(e, ca);
10113
10142
  }
10114
10143
  //#endregion
10115
10144
  //#region node_modules/svelte/src/internal/client/reactivity/utils.js
10116
- function no(e) {
10117
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ha, no(t.deps));
10145
+ function ro(e) {
10146
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ga, ro(t.deps));
10118
10147
  }
10119
- function ro(e, t, n) {
10120
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), no(e.deps), eo(e, aa);
10148
+ function io(e, t, n) {
10149
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), ro(e.deps), to(e, oa);
10121
10150
  }
10122
10151
  //#endregion
10123
10152
  //#region node_modules/svelte/src/internal/client/reactivity/store.js
10124
- var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo = !1, fo = !1, po = null, mo = null, ho = 0, go = 1, _o = class e {
10125
- id = go++;
10153
+ var ao = !1, oo = null, so = null, q = null, co = null, lo = null, uo = null, fo = !1, po = !1, mo = null, ho = null, go = 0, _o = 1, vo = class e {
10154
+ id = _o++;
10126
10155
  #e = !1;
10127
10156
  linked = !0;
10128
10157
  #t = null;
@@ -10169,31 +10198,31 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10169
10198
  var n = this.#p.get(e);
10170
10199
  if (n) {
10171
10200
  this.#p.delete(e);
10172
- for (var r of n.d) eo(r, oa), t(r);
10173
- for (r of n.m) eo(r, sa), t(r);
10201
+ for (var r of n.d) to(r, sa), t(r);
10202
+ for (r of n.m) to(r, ca), t(r);
10174
10203
  }
10175
10204
  this.#m.add(e);
10176
10205
  }
10177
10206
  #_() {
10178
- if (this.#e = !0, ho++ > 1e3 && (this.#w(), vo()), !this.#g()) {
10179
- for (let e of this.#d) this.#f.delete(e), eo(e, oa), this.schedule(e);
10180
- for (let e of this.#f) eo(e, sa), this.schedule(e);
10207
+ if (this.#e = !0, go++ > 1e3 && (this.#w(), yo()), !this.#g()) {
10208
+ for (let e of this.#d) this.#f.delete(e), to(e, sa), this.schedule(e);
10209
+ for (let e of this.#f) to(e, ca), this.schedule(e);
10181
10210
  }
10182
10211
  let t = this.#l;
10183
10212
  this.#l = [], this.apply();
10184
- var n = po = [], r = [], i = mo = [];
10213
+ var n = mo = [], r = [], i = ho = [];
10185
10214
  for (let e of t) try {
10186
10215
  this.#v(e, n, r);
10187
10216
  } catch (t) {
10188
- throw To(e), t;
10217
+ throw Eo(e), t;
10189
10218
  }
10190
10219
  if (q = null, i.length > 0) {
10191
10220
  var a = e.ensure();
10192
10221
  for (let e of i) a.schedule(e);
10193
10222
  }
10194
- if (po = null, mo = null, this.#g()) {
10223
+ if (mo = null, ho = null, this.#g()) {
10195
10224
  this.#x(r), this.#x(n);
10196
- for (let [e, t] of this.#p) wo(e, t);
10225
+ for (let [e, t] of this.#p) To(e, t);
10197
10226
  i.length > 0 && q.#_();
10198
10227
  return;
10199
10228
  }
@@ -10204,9 +10233,9 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10204
10233
  }
10205
10234
  this.#d.clear(), this.#f.clear();
10206
10235
  for (let e of this.#r) e(this);
10207
- this.#r.clear(), so = this, bo(r), bo(n), so = null, this.#c?.resolve();
10236
+ this.#r.clear(), co = this, xo(r), xo(n), co = null, this.#c?.resolve();
10208
10237
  var s = q;
10209
- if (this.linked && this.#o === 0 && this.#w(), Ba && !this.linked && (this.#S(), q = s), this.#l.length > 0) {
10238
+ if (this.linked && this.#o === 0 && this.#w(), Va && !this.linked && (this.#S(), q = s), this.#l.length > 0) {
10210
10239
  s === null && (s = this, this.#C());
10211
10240
  let e = s;
10212
10241
  e.#l.push(...this.#l.filter((t) => !e.#l.includes(t)));
@@ -10214,11 +10243,11 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10214
10243
  s !== null && s.#_();
10215
10244
  }
10216
10245
  #v(e, t, n) {
10217
- e.f ^= aa;
10246
+ e.f ^= oa;
10218
10247
  for (var r = e.first; r !== null;) {
10219
10248
  var i = r.f, a = (i & 96) != 0;
10220
10249
  if (!(a && i & 1024 || i & 8192 || this.#p.has(r)) && r.fn !== null) {
10221
- a ? r.f ^= aa : i & 4 ? t.push(r) : Ba && i & 16777224 ? n.push(r) : Ms(r) && (i & 16 && this.#f.add(r), Ls(r));
10250
+ a ? r.f ^= oa : i & 4 ? t.push(r) : Va && i & 16777224 ? n.push(r) : Ns(r) && (i & 16 && this.#f.add(r), Rs(r));
10222
10251
  var o = r.first;
10223
10252
  if (o !== null) {
10224
10253
  r = o;
@@ -10257,7 +10286,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10257
10286
  if (r & 2) t(e);
10258
10287
  else {
10259
10288
  var i = e;
10260
- r & 4194320 && !this.async_deriveds.has(i) && (this.#f.delete(i), eo(i, oa), this.schedule(i));
10289
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#f.delete(i), to(i, sa), this.schedule(i));
10261
10290
  }
10262
10291
  }
10263
10292
  };
@@ -10265,22 +10294,22 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10265
10294
  this.oncommit(() => e.discard()), e.#w(), q = this, this.#_();
10266
10295
  }
10267
10296
  #x(e) {
10268
- for (var t = 0; t < e.length; t += 1) ro(e[t], this.#d, this.#f);
10297
+ for (var t = 0; t < e.length; t += 1) io(e[t], this.#d, this.#f);
10269
10298
  }
10270
10299
  capture(e, t, n = !1) {
10271
- e.v !== ka && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), co?.set(e, t)), this.is_fork || (e.v = t);
10300
+ e.v !== Aa && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), lo?.set(e, t)), this.is_fork || (e.v = t);
10272
10301
  }
10273
10302
  activate() {
10274
10303
  q = this;
10275
10304
  }
10276
10305
  deactivate() {
10277
- q = null, co = null;
10306
+ q = null, lo = null;
10278
10307
  }
10279
10308
  flush() {
10280
10309
  try {
10281
- fo = !0, q = this, this.#_();
10310
+ po = !0, q = this, this.#_();
10282
10311
  } finally {
10283
- ho = 0, lo = null, po = null, mo = null, fo = !1, q = null, co = null, Io.clear();
10312
+ go = 0, uo = null, mo = null, ho = null, po = !1, q = null, lo = null, Lo.clear();
10284
10313
  }
10285
10314
  }
10286
10315
  discard() {
@@ -10292,7 +10321,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10292
10321
  }
10293
10322
  #S() {
10294
10323
  this.#w();
10295
- for (let l = ao; l !== null; l = l.#n) {
10324
+ for (let l = oo; l !== null; l = l.#n) {
10296
10325
  var e = l.id < this.id, t = [];
10297
10326
  for (let [r, [i, a]] of this.current) {
10298
10327
  if (l.current.has(r)) {
@@ -10315,10 +10344,10 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10315
10344
  });
10316
10345
  l.activate();
10317
10346
  var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
10318
- for (var o of t) xo(o, r, i, a);
10347
+ for (var o of t) So(o, r, i, a);
10319
10348
  a = /* @__PURE__ */ new Map();
10320
10349
  var s = [...l.current.keys()].filter((e) => this.current.has(e) ? this.current.get(e)[0] !== e.v : !0);
10321
- if (s.length > 0) for (let e of this.#u) !(e.f & 155648) && So(e, s, a) && (e.f & 4194320 ? (eo(e, oa), l.schedule(e)) : l.#d.add(e));
10350
+ if (s.length > 0) for (let e of this.#u) !(e.f & 155648) && Co(e, s, a) && (e.f & 4194320 ? (to(e, sa), l.schedule(e)) : l.#d.add(e));
10322
10351
  if (l.#l.length > 0) {
10323
10352
  l.apply();
10324
10353
  for (var c of l.#l) l.#v(c, [], []);
@@ -10340,7 +10369,7 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10340
10369
  let e = this.#s.get(t) ?? 0;
10341
10370
  e === 1 ? this.#s.delete(t) : this.#s.set(t, e - 1);
10342
10371
  }
10343
- this.#h || (this.#h = !0, Xa(() => {
10372
+ this.#h || (this.#h = !0, Za(() => {
10344
10373
  this.#h = !1, this.linked && this.flush();
10345
10374
  }));
10346
10375
  }
@@ -10363,25 +10392,25 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10363
10392
  this.#a.clear();
10364
10393
  }
10365
10394
  settled() {
10366
- return (this.#c ??= ia()).promise;
10395
+ return (this.#c ??= aa()).promise;
10367
10396
  }
10368
10397
  static ensure() {
10369
10398
  if (q === null) {
10370
10399
  let t = q = new e();
10371
- t.#C(), !fo && !uo && Xa(() => {
10400
+ t.#C(), !po && !fo && Za(() => {
10372
10401
  t.#e || t.flush();
10373
10402
  });
10374
10403
  }
10375
10404
  return q;
10376
10405
  }
10377
10406
  apply() {
10378
- if (!Ba || !this.is_fork && this.#t === null && this.#n === null) {
10379
- co = null;
10407
+ if (!Va || !this.is_fork && this.#t === null && this.#n === null) {
10408
+ lo = null;
10380
10409
  return;
10381
10410
  }
10382
- co = /* @__PURE__ */ new Map();
10383
- for (let [e, [t]] of this.current) co.set(e, t);
10384
- for (let t = ao; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
10411
+ lo = /* @__PURE__ */ new Map();
10412
+ for (let [e, [t]] of this.current) lo.set(e, t);
10413
+ for (let t = oo; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
10385
10414
  var e = !1;
10386
10415
  if (t.id < this.id) {
10387
10416
  for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
@@ -10389,115 +10418,115 @@ var io = !1, ao = null, oo = null, q = null, so = null, co = null, lo = null, uo
10389
10418
  break;
10390
10419
  }
10391
10420
  }
10392
- if (!e) for (let [e, n] of t.previous) co.has(e) || co.set(e, n);
10421
+ if (!e) for (let [e, n] of t.previous) lo.has(e) || lo.set(e, n);
10393
10422
  }
10394
10423
  }
10395
10424
  schedule(e) {
10396
- if (lo = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
10425
+ if (uo = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
10397
10426
  e.b.defer_effect(e);
10398
10427
  return;
10399
10428
  }
10400
10429
  for (var t = e; t.parent !== null;) {
10401
10430
  t = t.parent;
10402
10431
  var n = t.f;
10403
- if (po !== null && t === X && (Ba || (Y === null || !(Y.f & 2)) && !io)) return;
10432
+ if (mo !== null && t === X && (Va || (Y === null || !(Y.f & 2)) && !ao)) return;
10404
10433
  if (n & 96) {
10405
10434
  if (!(n & 1024)) return;
10406
- t.f ^= aa;
10435
+ t.f ^= oa;
10407
10436
  }
10408
10437
  }
10409
10438
  this.#l.push(t);
10410
10439
  }
10411
10440
  #C() {
10412
- oo === null ? ao = oo = this : (oo.#n = this, this.#t = oo), oo = this;
10441
+ so === null ? oo = so = this : (so.#n = this, this.#t = so), so = this;
10413
10442
  }
10414
10443
  #w() {
10415
10444
  var e = this.#t, t = this.#n;
10416
- e === null ? ao = t : e.#n = t, t === null ? oo = e : t.#t = e, this.linked = !1;
10445
+ e === null ? oo = t : e.#n = t, t === null ? so = e : t.#t = e, this.linked = !1;
10417
10446
  }
10418
10447
  };
10419
- function vo() {
10448
+ function yo() {
10420
10449
  try {
10421
- wa();
10450
+ Ta();
10422
10451
  } catch (e) {
10423
- Qa(e, lo);
10452
+ $a(e, uo);
10424
10453
  }
10425
10454
  }
10426
- var yo = null;
10427
- function bo(e) {
10455
+ var bo = null;
10456
+ function xo(e) {
10428
10457
  var t = e.length;
10429
10458
  if (t !== 0) {
10430
10459
  for (var n = 0; n < t;) {
10431
10460
  var r = e[n++];
10432
- if (!(r.f & 24576) && Ms(r) && (yo = /* @__PURE__ */ new Set(), Ls(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && us(r), yo?.size > 0)) {
10433
- Io.clear();
10434
- for (let e of yo) {
10461
+ if (!(r.f & 24576) && Ns(r) && (bo = /* @__PURE__ */ new Set(), Rs(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ds(r), bo?.size > 0)) {
10462
+ Lo.clear();
10463
+ for (let e of bo) {
10435
10464
  if (e.f & 24576) continue;
10436
10465
  let t = [e], n = e.parent;
10437
- for (; n !== null;) yo.has(n) && (yo.delete(n), t.push(n)), n = n.parent;
10466
+ for (; n !== null;) bo.has(n) && (bo.delete(n), t.push(n)), n = n.parent;
10438
10467
  for (let e = t.length - 1; e >= 0; e--) {
10439
10468
  let n = t[e];
10440
- n.f & 24576 || Ls(n);
10469
+ n.f & 24576 || Rs(n);
10441
10470
  }
10442
10471
  }
10443
- yo.clear();
10472
+ bo.clear();
10444
10473
  }
10445
10474
  }
10446
- yo = null;
10475
+ bo = null;
10447
10476
  }
10448
10477
  }
10449
- function xo(e, t, n, r) {
10478
+ function So(e, t, n, r) {
10450
10479
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
10451
10480
  let e = i.f;
10452
- e & 2 ? xo(i, t, n, r) : e & 4194320 && !(e & 2048) && So(i, t, r) && (eo(i, oa), Co(i));
10481
+ e & 2 ? So(i, t, n, r) : e & 4194320 && !(e & 2048) && Co(i, t, r) && (to(i, sa), wo(i));
10453
10482
  }
10454
10483
  }
10455
- function So(e, t, n) {
10484
+ function Co(e, t, n) {
10456
10485
  let r = n.get(e);
10457
10486
  if (r !== void 0) return r;
10458
10487
  if (e.deps !== null) for (let r of e.deps) {
10459
- if (Ji.call(t, r)) return !0;
10460
- if (r.f & 2 && So(r, t, n)) return n.set(r, !0), !0;
10488
+ if (Yi.call(t, r)) return !0;
10489
+ if (r.f & 2 && Co(r, t, n)) return n.set(r, !0), !0;
10461
10490
  }
10462
10491
  return n.set(e, !1), !1;
10463
10492
  }
10464
- function Co(e) {
10493
+ function wo(e) {
10465
10494
  q.schedule(e);
10466
10495
  }
10467
- function wo(e, t) {
10496
+ function To(e, t) {
10468
10497
  if (!(e.f & 32 && e.f & 1024)) {
10469
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), eo(e, aa);
10470
- for (var n = e.first; n !== null;) wo(n, t), n = n.next;
10498
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), to(e, oa);
10499
+ for (var n = e.first; n !== null;) To(n, t), n = n.next;
10471
10500
  }
10472
10501
  }
10473
- function To(e) {
10474
- eo(e, aa);
10475
- for (var t = e.first; t !== null;) To(t), t = t.next;
10502
+ function Eo(e) {
10503
+ to(e, oa);
10504
+ for (var t = e.first; t !== null;) Eo(t), t = t.next;
10476
10505
  }
10477
10506
  //#endregion
10478
10507
  //#region node_modules/svelte/src/reactivity/create-subscriber.js
10479
- function Eo(e) {
10480
- let t = 0, n = Ro(0), r;
10508
+ function Do(e) {
10509
+ let t = 0, n = zo(0), r;
10481
10510
  return () => {
10482
- $o() && (Rs(n), ns(() => (t === 0 && (r = Vs(() => e(() => Uo(n)))), t += 1, () => {
10483
- Xa(() => {
10484
- --t, t === 0 && (r?.(), r = void 0, Uo(n));
10511
+ es() && (zs(n), rs(() => (t === 0 && (r = Hs(() => e(() => Wo(n)))), t += 1, () => {
10512
+ Za(() => {
10513
+ --t, t === 0 && (r?.(), r = void 0, Wo(n));
10485
10514
  });
10486
10515
  })));
10487
10516
  };
10488
10517
  }
10489
10518
  //#endregion
10490
10519
  //#region node_modules/svelte/src/internal/client/dom/blocks/boundary.js
10491
- var Do = fa | pa;
10492
- function Oo(e, t, n, r) {
10493
- new ko(e, t, n, r);
10520
+ var Oo = pa | ma;
10521
+ function ko(e, t, n, r) {
10522
+ new Ao(e, t, n, r);
10494
10523
  }
10495
- var ko = class {
10524
+ var Ao = class {
10496
10525
  parent;
10497
10526
  is_pending = !1;
10498
10527
  transform_error;
10499
10528
  #e;
10500
- #t = Na ? Pa : null;
10529
+ #t = Pa ? Fa : null;
10501
10530
  #n;
10502
10531
  #r;
10503
10532
  #i;
@@ -10511,56 +10540,56 @@ var ko = class {
10511
10540
  #f = /* @__PURE__ */ new Set();
10512
10541
  #p = /* @__PURE__ */ new Set();
10513
10542
  #m = null;
10514
- #h = Eo(() => (this.#m = Ro(this.#l), () => {
10543
+ #h = Do(() => (this.#m = zo(this.#l), () => {
10515
10544
  this.#m = null;
10516
10545
  }));
10517
10546
  constructor(e, t, n, r) {
10518
10547
  this.#e = e, this.#n = t, this.#r = (e) => {
10519
10548
  var t = X;
10520
10549
  t.b = this, t.f |= 128, n(e);
10521
- }, this.parent = X.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = rs(() => {
10522
- if (Na) {
10550
+ }, this.parent = X.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = is(() => {
10551
+ if (Pa) {
10523
10552
  let e = this.#t;
10524
- Ia();
10553
+ La();
10525
10554
  let t = e.data === "[!";
10526
10555
  if (e.data.startsWith("[?")) {
10527
10556
  let t = JSON.parse(e.data.slice(2));
10528
10557
  this.#_(t);
10529
10558
  } else t ? this.#v() : this.#g();
10530
10559
  } else this.#y();
10531
- }, Do), Na && (this.#e = Pa);
10560
+ }, Oo), Pa && (this.#e = Fa);
10532
10561
  }
10533
10562
  #g() {
10534
10563
  try {
10535
- this.#a = is(() => this.#r(this.#e));
10564
+ this.#a = as(() => this.#r(this.#e));
10536
10565
  } catch (e) {
10537
10566
  this.error(e);
10538
10567
  }
10539
10568
  }
10540
10569
  #_(e) {
10541
10570
  let t = this.#n.failed;
10542
- t && (this.#s = is(() => {
10571
+ t && (this.#s = as(() => {
10543
10572
  t(this.#e, () => e, () => () => {});
10544
10573
  }));
10545
10574
  }
10546
10575
  #v() {
10547
10576
  let e = this.#n.pending;
10548
- e && (this.is_pending = !0, this.#o = is(() => e(this.#e)), Xa(() => {
10549
- var e = this.#c = document.createDocumentFragment(), t = Yo();
10550
- e.append(t), this.#a = this.#x(() => is(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, ds(this.#o, () => {
10577
+ e && (this.is_pending = !0, this.#o = as(() => e(this.#e)), Za(() => {
10578
+ var e = this.#c = document.createDocumentFragment(), t = Xo();
10579
+ e.append(t), this.#a = this.#x(() => as(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, fs(this.#o, () => {
10551
10580
  this.#o = null;
10552
10581
  }), this.#b(q));
10553
10582
  }));
10554
10583
  }
10555
10584
  #y() {
10556
10585
  try {
10557
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = is(() => {
10586
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = as(() => {
10558
10587
  this.#r(this.#e);
10559
10588
  }), this.#u > 0) {
10560
10589
  var e = this.#c = document.createDocumentFragment();
10561
- ps(this.#a, e);
10590
+ ms(this.#a, e);
10562
10591
  let t = this.#n.pending;
10563
- this.#o = is(() => t(this.#e));
10592
+ this.#o = as(() => t(this.#e));
10564
10593
  } else this.#b(q);
10565
10594
  } catch (e) {
10566
10595
  this.error(e);
@@ -10570,7 +10599,7 @@ var ko = class {
10570
10599
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
10571
10600
  }
10572
10601
  defer_effect(e) {
10573
- ro(e, this.#f, this.#p);
10602
+ io(e, this.#f, this.#p);
10574
10603
  }
10575
10604
  is_rendered() {
10576
10605
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -10579,14 +10608,14 @@ var ko = class {
10579
10608
  return !!this.#n.pending;
10580
10609
  }
10581
10610
  #x(e) {
10582
- var t = X, n = Y, r = Ua;
10583
- bs(this.#i), ys(this.#i), Wa(this.#i.ctx);
10611
+ var t = X, n = Y, r = Wa;
10612
+ xs(this.#i), bs(this.#i), Ga(this.#i.ctx);
10584
10613
  try {
10585
- return _o.ensure(), e();
10614
+ return vo.ensure(), e();
10586
10615
  } catch (e) {
10587
- return Za(e), null;
10616
+ return Qa(e), null;
10588
10617
  } finally {
10589
- bs(t), ys(n), Wa(r);
10618
+ xs(t), bs(n), Ga(r);
10590
10619
  }
10591
10620
  }
10592
10621
  #S(e, t) {
@@ -10594,17 +10623,17 @@ var ko = class {
10594
10623
  this.parent && this.parent.#S(e, t);
10595
10624
  return;
10596
10625
  }
10597
- this.#u += e, this.#u === 0 && (this.#b(t), this.#o && ds(this.#o, () => {
10626
+ this.#u += e, this.#u === 0 && (this.#b(t), this.#o && fs(this.#o, () => {
10598
10627
  this.#o = null;
10599
10628
  }), this.#c &&= (this.#e.before(this.#c), null));
10600
10629
  }
10601
10630
  update_pending_count(e, t) {
10602
- this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Xa(() => {
10603
- this.#d = !1, this.#m && Vo(this.#m, this.#l);
10631
+ this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Za(() => {
10632
+ this.#d = !1, this.#m && Ho(this.#m, this.#l);
10604
10633
  }));
10605
10634
  }
10606
10635
  get_effect_pending() {
10607
- return this.#h(), Rs(this.#m);
10636
+ return this.#h(), zs(this.#m);
10608
10637
  }
10609
10638
  error(e) {
10610
10639
  if (!this.#n.onerror && !this.#n.failed) throw e;
@@ -10613,16 +10642,16 @@ var ko = class {
10613
10642
  })) : this.#C(e);
10614
10643
  }
10615
10644
  #C(e) {
10616
- this.#a &&= (cs(this.#a), null), this.#o &&= (cs(this.#o), null), this.#s &&= (cs(this.#s), null), Na && (Fa(this.#t), La(), Fa(Ra()));
10645
+ this.#a &&= (ls(this.#a), null), this.#o &&= (ls(this.#o), null), this.#s &&= (ls(this.#s), null), Pa && (Ia(this.#t), Ra(), Ia(za()));
10617
10646
  var t = this.#n.onerror;
10618
10647
  let n = this.#n.failed;
10619
10648
  var r = !1, i = !1;
10620
10649
  let a = () => {
10621
10650
  if (r) {
10622
- Ma();
10651
+ Na();
10623
10652
  return;
10624
10653
  }
10625
- r = !0, i && Oa(), this.#s !== null && ds(this.#s, () => {
10654
+ r = !0, i && K(), this.#s !== null && fs(this.#s, () => {
10626
10655
  this.#s = null;
10627
10656
  }), this.#x(() => {
10628
10657
  this.#y();
@@ -10631,166 +10660,166 @@ var ko = class {
10631
10660
  try {
10632
10661
  i = !0, t?.(e, a), i = !1;
10633
10662
  } catch (e) {
10634
- Qa(e, this.#i && this.#i.parent);
10663
+ $a(e, this.#i && this.#i.parent);
10635
10664
  }
10636
10665
  n && (this.#s = this.#x(() => {
10637
10666
  try {
10638
- return is(() => {
10667
+ return as(() => {
10639
10668
  var t = X;
10640
10669
  t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
10641
10670
  });
10642
10671
  } catch (e) {
10643
- return Qa(e, this.#i.parent), null;
10672
+ return $a(e, this.#i.parent), null;
10644
10673
  }
10645
10674
  }));
10646
10675
  };
10647
- Xa(() => {
10676
+ Za(() => {
10648
10677
  var t;
10649
10678
  try {
10650
10679
  t = this.transform_error(e);
10651
10680
  } catch (e) {
10652
- Qa(e, this.#i && this.#i.parent);
10681
+ $a(e, this.#i && this.#i.parent);
10653
10682
  return;
10654
10683
  }
10655
- typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Qa(e, this.#i && this.#i.parent)) : o(t);
10684
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => $a(e, this.#i && this.#i.parent)) : o(t);
10656
10685
  });
10657
10686
  }
10658
10687
  };
10659
- function Ao(e) {
10688
+ function jo(e) {
10660
10689
  var t = e.effects;
10661
10690
  if (t !== null) {
10662
10691
  e.effects = null;
10663
- for (var n = 0; n < t.length; n += 1) cs(t[n]);
10692
+ for (var n = 0; n < t.length; n += 1) ls(t[n]);
10664
10693
  }
10665
10694
  }
10666
- function jo(e) {
10695
+ function Mo(e) {
10667
10696
  var t, n = X, r = e.parent;
10668
- if (!gs && r !== null && r.f & 24576) return Aa(), e.v;
10669
- bs(r);
10697
+ if (!_s && r !== null && r.f & 24576) return ja(), e.v;
10698
+ xs(r);
10670
10699
  try {
10671
- e.f &= ~ha, Ao(e), t = Ps(e);
10700
+ e.f &= ~ga, jo(e), t = Fs(e);
10672
10701
  } finally {
10673
- bs(n);
10702
+ xs(n);
10674
10703
  }
10675
10704
  return t;
10676
10705
  }
10677
- function Mo(e) {
10678
- var t = jo(e);
10679
- if (!e.equals(t) && (e.wv = js(), (!q?.is_fork || e.deps === null) && (q === null ? e.v = t : (q.capture(e, t, !0), so?.capture(e, t, !0)), e.deps === null))) {
10680
- eo(e, aa);
10706
+ function No(e) {
10707
+ var t = Mo(e);
10708
+ if (!e.equals(t) && (e.wv = Ms(), (!q?.is_fork || e.deps === null) && (q === null ? e.v = t : (q.capture(e, t, !0), co?.capture(e, t, !0)), e.deps === null))) {
10709
+ to(e, oa);
10681
10710
  return;
10682
10711
  }
10683
- gs || (co === null ? to(e) : ($o() || q?.is_fork) && co.set(e, t));
10684
- }
10685
- function No(e) {
10686
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ca), t.teardown = na, t.ac = null, Is(t, 0), os(t));
10712
+ _s || (lo === null ? no(e) : (es() || q?.is_fork) && lo.set(e, t));
10687
10713
  }
10688
10714
  function Po(e) {
10689
- if (e.effects !== null) for (let t of e.effects) t.teardown && Ls(t);
10715
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(wa), t.teardown = ra, t.ac = null, Ls(t, 0), ss(t));
10716
+ }
10717
+ function Fo(e) {
10718
+ if (e.effects !== null) for (let t of e.effects) t.teardown && Rs(t);
10690
10719
  }
10691
10720
  //#endregion
10692
10721
  //#region node_modules/svelte/src/internal/client/reactivity/sources.js
10693
- var Fo = /* @__PURE__ */ new Set(), Io = /* @__PURE__ */ new Map(), Lo = !1;
10694
- function Ro(e, t) {
10722
+ var Io = /* @__PURE__ */ new Set(), Lo = /* @__PURE__ */ new Map(), Ro = !1;
10723
+ function zo(e, t) {
10695
10724
  return {
10696
10725
  f: 0,
10697
10726
  v: e,
10698
10727
  reactions: null,
10699
- equals: za,
10728
+ equals: Ba,
10700
10729
  rv: 0,
10701
10730
  wv: 0
10702
10731
  };
10703
10732
  }
10704
10733
  /*#__NO_SIDE_EFFECTS__*/
10705
- function zo(e, t) {
10706
- let n = Ro(e, t);
10707
- return Ss(n), n;
10734
+ function Bo(e, t) {
10735
+ let n = zo(e, t);
10736
+ return Cs(n), n;
10708
10737
  }
10709
- function Bo(e, t, n = !1) {
10710
- return Y !== null && (!vs || Y.f & 131072) && qa() && Y.f & 4325394 && (xs === null || !Ji.call(xs, e)) && Da(), Vo(e, n ? Go(t) : t, mo);
10738
+ function Vo(e, t, n = !1) {
10739
+ return Y !== null && (!ys || Y.f & 131072) && Ja() && Y.f & 4325394 && (Ss === null || !Yi.call(Ss, e)) && Oa(), Ho(e, n ? Ko(t) : t, ho);
10711
10740
  }
10712
- function Vo(e, t, n = null) {
10741
+ function Ho(e, t, n = null) {
10713
10742
  if (!e.equals(t)) {
10714
- Io.set(e, gs ? t : e.v);
10715
- var r = _o.ensure();
10743
+ Lo.set(e, _s ? t : e.v);
10744
+ var r = vo.ensure();
10716
10745
  if (r.capture(e, t), e.f & 2) {
10717
10746
  let t = e;
10718
- e.f & 2048 && jo(t), co === null && to(t);
10747
+ e.f & 2048 && Mo(t), lo === null && no(t);
10719
10748
  }
10720
- e.wv = js(), Wo(e, oa, n), qa() && X !== null && X.f & 1024 && !(X.f & 96) && (Ts === null ? Es([e]) : Ts.push(e)), !r.is_fork && Fo.size > 0 && !Lo && Ho();
10749
+ e.wv = Ms(), Go(e, sa, n), Ja() && X !== null && X.f & 1024 && !(X.f & 96) && (Es === null ? Ds([e]) : Es.push(e)), !r.is_fork && Io.size > 0 && !Ro && Uo();
10721
10750
  }
10722
10751
  return t;
10723
10752
  }
10724
- function Ho() {
10725
- Lo = !1;
10726
- for (let e of Fo) {
10727
- e.f & 1024 && eo(e, sa);
10753
+ function Uo() {
10754
+ Ro = !1;
10755
+ for (let e of Io) {
10756
+ e.f & 1024 && to(e, ca);
10728
10757
  let t;
10729
10758
  try {
10730
- t = Ms(e);
10759
+ t = Ns(e);
10731
10760
  } catch {
10732
10761
  t = !0;
10733
10762
  }
10734
- t && Ls(e);
10763
+ t && Rs(e);
10735
10764
  }
10736
- Fo.clear();
10765
+ Io.clear();
10737
10766
  }
10738
- function Uo(e) {
10739
- Bo(e, e.v + 1);
10767
+ function Wo(e) {
10768
+ Vo(e, e.v + 1);
10740
10769
  }
10741
- function Wo(e, t, n) {
10770
+ function Go(e, t, n) {
10742
10771
  var r = e.reactions;
10743
- if (r !== null) for (var i = qa(), a = r.length, o = 0; o < a; o++) {
10772
+ if (r !== null) for (var i = Ja(), a = r.length, o = 0; o < a; o++) {
10744
10773
  var s = r[o], c = s.f;
10745
10774
  if (!(!i && s === X)) {
10746
- var l = (c & oa) === 0;
10747
- if (l && eo(s, t), c & 131072) Fo.add(s);
10775
+ var l = (c & sa) === 0;
10776
+ if (l && to(s, t), c & 131072) Io.add(s);
10748
10777
  else if (c & 2) {
10749
10778
  var u = s;
10750
- co?.delete(u), c & 65536 || (c & 512 && (X === null || !(X.f & 2097152)) && (s.f |= ha), Wo(u, sa, n));
10779
+ lo?.delete(u), c & 65536 || (c & 512 && (X === null || !(X.f & 2097152)) && (s.f |= ga), Go(u, ca, n));
10751
10780
  } else if (l) {
10752
10781
  var d = s;
10753
- c & 16 && yo !== null && yo.add(d), n === null ? Co(d) : n.push(d);
10782
+ c & 16 && bo !== null && bo.add(d), n === null ? wo(d) : n.push(d);
10754
10783
  }
10755
10784
  }
10756
10785
  }
10757
10786
  }
10758
- function Go(e) {
10759
- if (typeof e != "object" || !e || va in e) return e;
10760
- let t = ea(e);
10761
- if (t !== Qi && t !== $i) return e;
10762
- var n = /* @__PURE__ */ new Map(), r = Ki(e), i = /* @__PURE__ */ zo(0), a = null, o = ks, s = (e) => {
10763
- if (ks === o) return e();
10764
- var t = Y, n = ks;
10765
- ys(null), As(o);
10787
+ function Ko(e) {
10788
+ if (typeof e != "object" || !e || ya in e) return e;
10789
+ let t = ta(e);
10790
+ if (t !== $i && t !== ea) return e;
10791
+ var n = /* @__PURE__ */ new Map(), r = qi(e), i = /* @__PURE__ */ Bo(0), a = null, o = As, s = (e) => {
10792
+ if (As === o) return e();
10793
+ var t = Y, n = As;
10794
+ bs(null), js(o);
10766
10795
  var r = e();
10767
- return ys(t), As(n), r;
10796
+ return bs(t), js(n), r;
10768
10797
  };
10769
- return r && n.set("length", /* @__PURE__ */ zo(e.length, a)), new Proxy(e, {
10798
+ return r && n.set("length", /* @__PURE__ */ Bo(e.length, a)), new Proxy(e, {
10770
10799
  defineProperty(e, t, r) {
10771
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ta();
10800
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ea();
10772
10801
  var i = n.get(t);
10773
10802
  return i === void 0 ? s(() => {
10774
- var e = /* @__PURE__ */ zo(r.value, a);
10803
+ var e = /* @__PURE__ */ Bo(r.value, a);
10775
10804
  return n.set(t, e), e;
10776
- }) : Bo(i, r.value, !0), !0;
10805
+ }) : Vo(i, r.value, !0), !0;
10777
10806
  },
10778
10807
  deleteProperty(e, t) {
10779
10808
  var r = n.get(t);
10780
10809
  if (r === void 0) {
10781
10810
  if (t in e) {
10782
- let e = s(() => /* @__PURE__ */ zo(ka, a));
10783
- n.set(t, e), Uo(i);
10811
+ let e = s(() => /* @__PURE__ */ Bo(Aa, a));
10812
+ n.set(t, e), Wo(i);
10784
10813
  }
10785
- } else Bo(r, ka), Uo(i);
10814
+ } else Vo(r, Aa), Wo(i);
10786
10815
  return !0;
10787
10816
  },
10788
10817
  get(t, r, i) {
10789
- if (r === va) return e;
10818
+ if (r === ya) return e;
10790
10819
  var o = n.get(r), c = r in t;
10791
- if (o === void 0 && (!c || Zi(t, r)?.writable) && (o = s(() => /* @__PURE__ */ zo(Go(c ? t[r] : ka), a)), n.set(r, o)), o !== void 0) {
10792
- var l = Rs(o);
10793
- return l === ka ? void 0 : l;
10820
+ if (o === void 0 && (!c || Qi(t, r)?.writable) && (o = s(() => /* @__PURE__ */ Bo(Ko(c ? t[r] : Aa), a)), n.set(r, o)), o !== void 0) {
10821
+ var l = zs(o);
10822
+ return l === Aa ? void 0 : l;
10794
10823
  }
10795
10824
  return Reflect.get(t, r, i);
10796
10825
  },
@@ -10798,10 +10827,10 @@ function Go(e) {
10798
10827
  var r = Reflect.getOwnPropertyDescriptor(e, t);
10799
10828
  if (r && "value" in r) {
10800
10829
  var i = n.get(t);
10801
- i && (r.value = Rs(i));
10830
+ i && (r.value = zs(i));
10802
10831
  } else if (r === void 0) {
10803
10832
  var a = n.get(t), o = a?.v;
10804
- if (a !== void 0 && o !== ka) return {
10833
+ if (a !== void 0 && o !== Aa) return {
10805
10834
  enumerable: !0,
10806
10835
  configurable: !0,
10807
10836
  value: o,
@@ -10811,43 +10840,43 @@ function Go(e) {
10811
10840
  return r;
10812
10841
  },
10813
10842
  has(e, t) {
10814
- if (t === va) return !0;
10815
- var r = n.get(t), i = r !== void 0 && r.v !== ka || Reflect.has(e, t);
10816
- return (r !== void 0 || X !== null && (!i || Zi(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ zo(i ? Go(e[t]) : ka, a)), n.set(t, r)), Rs(r) === ka) ? !1 : i;
10843
+ if (t === ya) return !0;
10844
+ var r = n.get(t), i = r !== void 0 && r.v !== Aa || Reflect.has(e, t);
10845
+ return (r !== void 0 || X !== null && (!i || Qi(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ Bo(i ? Ko(e[t]) : Aa, a)), n.set(t, r)), zs(r) === Aa) ? !1 : i;
10817
10846
  },
10818
10847
  set(e, t, o, c) {
10819
10848
  var l = n.get(t), u = t in e;
10820
10849
  if (r && t === "length") for (var d = o; d < l.v; d += 1) {
10821
10850
  var f = n.get(d + "");
10822
- f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ zo(ka, a)), n.set(d + "", f)) : Bo(f, ka);
10851
+ f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ Bo(Aa, a)), n.set(d + "", f)) : Vo(f, Aa);
10823
10852
  }
10824
- if (l === void 0) (!u || Zi(e, t)?.writable) && (l = s(() => /* @__PURE__ */ zo(void 0, a)), Bo(l, Go(o)), n.set(t, l));
10853
+ if (l === void 0) (!u || Qi(e, t)?.writable) && (l = s(() => /* @__PURE__ */ Bo(void 0, a)), Vo(l, Ko(o)), n.set(t, l));
10825
10854
  else {
10826
- u = l.v !== ka;
10827
- var p = s(() => Go(o));
10828
- Bo(l, p);
10855
+ u = l.v !== Aa;
10856
+ var p = s(() => Ko(o));
10857
+ Vo(l, p);
10829
10858
  }
10830
10859
  var m = Reflect.getOwnPropertyDescriptor(e, t);
10831
10860
  if (m?.set && m.set.call(c, o), !u) {
10832
10861
  if (r && typeof t == "string") {
10833
10862
  var h = n.get("length"), g = Number(t);
10834
- Number.isInteger(g) && g >= h.v && Bo(h, g + 1);
10863
+ Number.isInteger(g) && g >= h.v && Vo(h, g + 1);
10835
10864
  }
10836
- Uo(i);
10865
+ Wo(i);
10837
10866
  }
10838
10867
  return !0;
10839
10868
  },
10840
10869
  ownKeys(e) {
10841
- Rs(i);
10870
+ zs(i);
10842
10871
  var t = Reflect.ownKeys(e).filter((e) => {
10843
10872
  var t = n.get(e);
10844
- return t === void 0 || t.v !== ka;
10873
+ return t === void 0 || t.v !== Aa;
10845
10874
  });
10846
- for (var [r, a] of n) a.v !== ka && !(r in e) && t.push(r);
10875
+ for (var [r, a] of n) a.v !== Aa && !(r in e) && t.push(r);
10847
10876
  return t;
10848
10877
  },
10849
10878
  setPrototypeOf() {
10850
- Ea();
10879
+ Da();
10851
10880
  }
10852
10881
  });
10853
10882
  }
@@ -10862,46 +10891,46 @@ new Set([
10862
10891
  "splice",
10863
10892
  "unshift"
10864
10893
  ]);
10865
- var Ko, qo;
10866
- function Jo() {
10867
- if (Ko === void 0) {
10868
- Ko = window, /Firefox/.test(navigator.userAgent);
10894
+ var qo, Jo;
10895
+ function Yo() {
10896
+ if (qo === void 0) {
10897
+ qo = window, /Firefox/.test(navigator.userAgent);
10869
10898
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
10870
- Zi(t, "firstChild").get, qo = Zi(t, "nextSibling").get, ta(e) && (e[ba] = void 0, e[ya] = null, e[xa] = void 0, e.__e = void 0), ta(n) && (n[Sa] = void 0);
10899
+ Qi(t, "firstChild").get, Jo = Qi(t, "nextSibling").get, na(e) && (e[xa] = void 0, e[ba] = null, e[Sa] = void 0, e.__e = void 0), na(n) && (n[Ca] = void 0);
10871
10900
  }
10872
10901
  }
10873
- function Yo(e = "") {
10902
+ function Xo(e = "") {
10874
10903
  return document.createTextNode(e);
10875
10904
  }
10876
10905
  /*@__NO_SIDE_EFFECTS__*/
10877
- function Xo(e) {
10878
- return qo.call(e);
10906
+ function J(e) {
10907
+ return Jo.call(e);
10879
10908
  }
10880
10909
  //#endregion
10881
10910
  //#region node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
10882
- function J(e) {
10911
+ function Zo(e) {
10883
10912
  var t = Y, n = X;
10884
- ys(null), bs(null);
10913
+ bs(null), xs(null);
10885
10914
  try {
10886
10915
  return e();
10887
10916
  } finally {
10888
- ys(t), bs(n);
10917
+ bs(t), xs(n);
10889
10918
  }
10890
10919
  }
10891
10920
  //#endregion
10892
10921
  //#region node_modules/svelte/src/internal/client/reactivity/effects.js
10893
- function Zo(e, t) {
10922
+ function Qo(e, t) {
10894
10923
  var n = t.last;
10895
10924
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
10896
10925
  }
10897
- function Qo(e, t) {
10926
+ function $o(e, t) {
10898
10927
  var n = X;
10899
- n !== null && n.f & 8192 && (e |= ca);
10928
+ n !== null && n.f & 8192 && (e |= la);
10900
10929
  var r = {
10901
- ctx: Ua,
10930
+ ctx: Wa,
10902
10931
  deps: null,
10903
10932
  nodes: null,
10904
- f: e | oa | 512,
10933
+ f: e | sa | 512,
10905
10934
  first: null,
10906
10935
  fn: t,
10907
10936
  last: null,
@@ -10915,293 +10944,293 @@ function Qo(e, t) {
10915
10944
  };
10916
10945
  q?.register_created_effect(r);
10917
10946
  var i = r;
10918
- if (e & 4) po === null ? _o.ensure().schedule(r) : po.push(r);
10947
+ if (e & 4) mo === null ? vo.ensure().schedule(r) : mo.push(r);
10919
10948
  else if (t !== null) {
10920
10949
  try {
10921
- Ls(r);
10950
+ Rs(r);
10922
10951
  } catch (e) {
10923
- throw cs(r), e;
10952
+ throw ls(r), e;
10924
10953
  }
10925
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= fa));
10954
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= pa));
10926
10955
  }
10927
- if (i !== null && (i.parent = n, n !== null && Zo(i, n), Y !== null && Y.f & 2 && !(e & 64))) {
10956
+ if (i !== null && (i.parent = n, n !== null && Qo(i, n), Y !== null && Y.f & 2 && !(e & 64))) {
10928
10957
  var a = Y;
10929
10958
  (a.effects ??= []).push(i);
10930
10959
  }
10931
10960
  return r;
10932
10961
  }
10933
- function $o() {
10934
- return Y !== null && !vs;
10935
- }
10936
- function es(e) {
10937
- return Qo(4 | ma, e);
10962
+ function es() {
10963
+ return Y !== null && !ys;
10938
10964
  }
10939
10965
  function ts(e) {
10940
- _o.ensure();
10941
- let t = Qo(64 | pa, e);
10966
+ return $o(4 | ha, e);
10967
+ }
10968
+ function ns(e) {
10969
+ vo.ensure();
10970
+ let t = $o(64 | ma, e);
10942
10971
  return (e = {}) => new Promise((n) => {
10943
- e.outro ? ds(t, () => {
10944
- cs(t), n(void 0);
10945
- }) : (cs(t), n(void 0));
10972
+ e.outro ? fs(t, () => {
10973
+ ls(t), n(void 0);
10974
+ }) : (ls(t), n(void 0));
10946
10975
  });
10947
10976
  }
10948
- function ns(e, t = 0) {
10949
- return Qo(8 | t, e);
10950
- }
10951
10977
  function rs(e, t = 0) {
10952
- return Qo(16 | t, e);
10978
+ return $o(8 | t, e);
10953
10979
  }
10954
- function is(e) {
10955
- return Qo(32 | pa, e);
10980
+ function is(e, t = 0) {
10981
+ return $o(16 | t, e);
10956
10982
  }
10957
10983
  function as(e) {
10984
+ return $o(32 | ma, e);
10985
+ }
10986
+ function os(e) {
10958
10987
  var t = e.teardown;
10959
10988
  if (t !== null) {
10960
- let e = gs, n = Y;
10961
- _s(!0), ys(null);
10989
+ let e = _s, n = Y;
10990
+ vs(!0), bs(null);
10962
10991
  try {
10963
10992
  t.call(null);
10964
10993
  } finally {
10965
- _s(e), ys(n);
10994
+ vs(e), bs(n);
10966
10995
  }
10967
10996
  }
10968
10997
  }
10969
- function os(e, t = !1) {
10998
+ function ss(e, t = !1) {
10970
10999
  var n = e.first;
10971
11000
  for (e.first = e.last = null; n !== null;) {
10972
11001
  let e = n.ac;
10973
- e !== null && J(() => {
10974
- e.abort(Ca);
11002
+ e !== null && Zo(() => {
11003
+ e.abort(wa);
10975
11004
  });
10976
11005
  var r = n.next;
10977
- n.f & 64 ? n.parent = null : cs(n, t), n = r;
11006
+ n.f & 64 ? n.parent = null : ls(n, t), n = r;
10978
11007
  }
10979
11008
  }
10980
- function ss(e) {
11009
+ function cs(e) {
10981
11010
  for (var t = e.first; t !== null;) {
10982
11011
  var n = t.next;
10983
- t.f & 32 || cs(t), t = n;
11012
+ t.f & 32 || ls(t), t = n;
10984
11013
  }
10985
11014
  }
10986
- function cs(e, t = !0) {
11015
+ function ls(e, t = !0) {
10987
11016
  var n = !1;
10988
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ls(e.nodes.start, e.nodes.end), n = !0), eo(e, da), os(e, t && !n), Is(e, 0);
11017
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (us(e.nodes.start, e.nodes.end), n = !0), to(e, fa), ss(e, t && !n), Ls(e, 0);
10989
11018
  var r = e.nodes && e.nodes.t;
10990
11019
  if (r !== null) for (let e of r) e.stop();
10991
- as(e), e.f ^= da, e.f |= la;
11020
+ os(e), e.f ^= fa, e.f |= ua;
10992
11021
  var i = e.parent;
10993
- i !== null && i.first !== null && us(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
11022
+ i !== null && i.first !== null && ds(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
10994
11023
  }
10995
- function ls(e, t) {
11024
+ function us(e, t) {
10996
11025
  for (; e !== null;) {
10997
- var n = e === t ? null : /* @__PURE__ */ Xo(e);
11026
+ var n = e === t ? null : /* @__PURE__ */ J(e);
10998
11027
  e.remove(), e = n;
10999
11028
  }
11000
11029
  }
11001
- function us(e) {
11030
+ function ds(e) {
11002
11031
  var t = e.parent, n = e.prev, r = e.next;
11003
11032
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
11004
11033
  }
11005
- function ds(e, t, n = !0) {
11034
+ function fs(e, t, n = !0) {
11006
11035
  var r = [];
11007
- fs(e, r, !0);
11036
+ ps(e, r, !0);
11008
11037
  var i = () => {
11009
- n && cs(e), t && t();
11038
+ n && ls(e), t && t();
11010
11039
  }, a = r.length;
11011
11040
  if (a > 0) {
11012
11041
  var o = () => --a || i();
11013
11042
  for (var s of r) s.out(o);
11014
11043
  } else i();
11015
11044
  }
11016
- function fs(e, t, n) {
11045
+ function ps(e, t, n) {
11017
11046
  if (!(e.f & 8192)) {
11018
- e.f ^= ca;
11047
+ e.f ^= la;
11019
11048
  var r = e.nodes && e.nodes.t;
11020
11049
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
11021
11050
  for (var i = e.first; i !== null;) {
11022
11051
  var a = i.next;
11023
11052
  if (!(i.f & 64)) {
11024
11053
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
11025
- fs(i, t, o ? n : !1);
11054
+ ps(i, t, o ? n : !1);
11026
11055
  }
11027
11056
  i = a;
11028
11057
  }
11029
11058
  }
11030
11059
  }
11031
- function ps(e, t) {
11060
+ function ms(e, t) {
11032
11061
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
11033
- var i = n === r ? null : /* @__PURE__ */ Xo(n);
11062
+ var i = n === r ? null : /* @__PURE__ */ J(n);
11034
11063
  t.append(n), n = i;
11035
11064
  }
11036
11065
  }
11037
11066
  //#endregion
11038
11067
  //#region node_modules/svelte/src/internal/client/legacy.js
11039
- var ms = null, hs = !1, gs = !1;
11040
- function _s(e) {
11041
- gs = e;
11068
+ var hs = null, gs = !1, _s = !1;
11069
+ function vs(e) {
11070
+ _s = e;
11042
11071
  }
11043
- var Y = null, vs = !1;
11044
- function ys(e) {
11072
+ var Y = null, ys = !1;
11073
+ function bs(e) {
11045
11074
  Y = e;
11046
11075
  }
11047
11076
  var X = null;
11048
- function bs(e) {
11077
+ function xs(e) {
11049
11078
  X = e;
11050
11079
  }
11051
- var xs = null;
11052
- function Ss(e) {
11053
- Y !== null && (!Ba || Y.f & 2) && (xs === null ? xs = [e] : xs.push(e));
11080
+ var Ss = null;
11081
+ function Cs(e) {
11082
+ Y !== null && (!Va || Y.f & 2) && (Ss === null ? Ss = [e] : Ss.push(e));
11054
11083
  }
11055
- var Cs = null, ws = 0, Ts = null;
11056
- function Es(e) {
11057
- Ts = e;
11084
+ var ws = null, Ts = 0, Es = null;
11085
+ function Ds(e) {
11086
+ Es = e;
11058
11087
  }
11059
- var Ds = 1, Os = 0, ks = Os;
11060
- function As(e) {
11061
- ks = e;
11088
+ var Os = 1, ks = 0, As = ks;
11089
+ function js(e) {
11090
+ As = e;
11062
11091
  }
11063
- function js() {
11064
- return ++Ds;
11092
+ function Ms() {
11093
+ return ++Os;
11065
11094
  }
11066
- function Ms(e) {
11095
+ function Ns(e) {
11067
11096
  var t = e.f;
11068
11097
  if (t & 2048) return !0;
11069
- if (t & 2 && (e.f &= ~ha), t & 4096) {
11098
+ if (t & 2 && (e.f &= ~ga), t & 4096) {
11070
11099
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
11071
11100
  var a = n[i];
11072
- if (Ms(a) && Mo(a), a.wv > e.wv) return !0;
11101
+ if (Ns(a) && No(a), a.wv > e.wv) return !0;
11073
11102
  }
11074
- t & 512 && co === null && eo(e, aa);
11103
+ t & 512 && lo === null && to(e, oa);
11075
11104
  }
11076
11105
  return !1;
11077
11106
  }
11078
- function Ns(e, t, n = !0) {
11107
+ function Ps(e, t, n = !0) {
11079
11108
  var r = e.reactions;
11080
- if (r !== null && !(!Ba && xs !== null && Ji.call(xs, e))) for (var i = 0; i < r.length; i++) {
11109
+ if (r !== null && !(!Va && Ss !== null && Yi.call(Ss, e))) for (var i = 0; i < r.length; i++) {
11081
11110
  var a = r[i];
11082
- a.f & 2 ? Ns(a, t, !1) : t === a && (n ? eo(a, oa) : a.f & 1024 && eo(a, sa), Co(a));
11111
+ a.f & 2 ? Ps(a, t, !1) : t === a && (n ? to(a, sa) : a.f & 1024 && to(a, ca), wo(a));
11083
11112
  }
11084
11113
  }
11085
- function Ps(e) {
11086
- var t = Cs, n = ws, r = Ts, i = Y, a = xs, o = Ua, s = vs, c = ks, l = e.f;
11087
- Cs = null, ws = 0, Ts = null, Y = l & 96 ? null : e, xs = null, Wa(e.ctx), vs = !1, ks = ++Os, e.ac !== null && (J(() => {
11088
- e.ac.abort(Ca);
11114
+ function Fs(e) {
11115
+ var t = ws, n = Ts, r = Es, i = Y, a = Ss, o = Wa, s = ys, c = As, l = e.f;
11116
+ ws = null, Ts = 0, Es = null, Y = l & 96 ? null : e, Ss = null, Ga(e.ctx), ys = !1, As = ++ks, e.ac !== null && (Zo(() => {
11117
+ e.ac.abort(wa);
11089
11118
  }), e.ac = null);
11090
11119
  try {
11091
- e.f |= ga;
11120
+ e.f |= _a;
11092
11121
  var u = e.fn, d = u();
11093
- e.f |= ua;
11122
+ e.f |= da;
11094
11123
  var f = e.deps, p = q?.is_fork;
11095
- if (Cs !== null) {
11124
+ if (ws !== null) {
11096
11125
  var m;
11097
- if (p || Is(e, ws), f !== null && ws > 0) for (f.length = ws + Cs.length, m = 0; m < Cs.length; m++) f[ws + m] = Cs[m];
11098
- else e.deps = f = Cs;
11099
- if ($o() && e.f & 512) for (m = ws; m < f.length; m++) (f[m].reactions ??= []).push(e);
11100
- } else !p && f !== null && ws < f.length && (Is(e, ws), f.length = ws);
11101
- if (qa() && Ts !== null && !vs && f !== null && !(e.f & 6146)) for (m = 0; m < Ts.length; m++) Ns(Ts[m], e);
11126
+ if (p || Ls(e, Ts), f !== null && Ts > 0) for (f.length = Ts + ws.length, m = 0; m < ws.length; m++) f[Ts + m] = ws[m];
11127
+ else e.deps = f = ws;
11128
+ if (es() && e.f & 512) for (m = Ts; m < f.length; m++) (f[m].reactions ??= []).push(e);
11129
+ } else !p && f !== null && Ts < f.length && (Ls(e, Ts), f.length = Ts);
11130
+ if (Ja() && Es !== null && !ys && f !== null && !(e.f & 6146)) for (m = 0; m < Es.length; m++) Ps(Es[m], e);
11102
11131
  if (i !== null && i !== e) {
11103
- if (Os++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Os;
11104
- if (t !== null) for (let e of t) e.rv = Os;
11105
- Ts !== null && (r === null ? r = Ts : r.push(...Ts));
11132
+ if (ks++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = ks;
11133
+ if (t !== null) for (let e of t) e.rv = ks;
11134
+ Es !== null && (r === null ? r = Es : r.push(...Es));
11106
11135
  }
11107
- return e.f & 8388608 && (e.f ^= _a), d;
11136
+ return e.f & 8388608 && (e.f ^= va), d;
11108
11137
  } catch (e) {
11109
- return Za(e);
11138
+ return Qa(e);
11110
11139
  } finally {
11111
- e.f ^= ga, Cs = t, ws = n, Ts = r, Y = i, xs = a, Wa(o), vs = s, ks = c;
11140
+ e.f ^= _a, ws = t, Ts = n, Es = r, Y = i, Ss = a, Ga(o), ys = s, As = c;
11112
11141
  }
11113
11142
  }
11114
- function Fs(e, t) {
11143
+ function Is(e, t) {
11115
11144
  let n = t.reactions;
11116
11145
  if (n !== null) {
11117
- var r = qi.call(n, e);
11146
+ var r = Ji.call(n, e);
11118
11147
  if (r !== -1) {
11119
11148
  var i = n.length - 1;
11120
11149
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
11121
11150
  }
11122
11151
  }
11123
- if (n === null && t.f & 2 && (Cs === null || !Ji.call(Cs, t))) {
11152
+ if (n === null && t.f & 2 && (ws === null || !Yi.call(ws, t))) {
11124
11153
  var a = t;
11125
- a.f & 512 && (a.f ^= 512, a.f &= ~ha), a.v !== ka && to(a), No(a), Is(a, 0);
11154
+ a.f & 512 && (a.f ^= 512, a.f &= ~ga), a.v !== Aa && no(a), Po(a), Ls(a, 0);
11126
11155
  }
11127
11156
  }
11128
- function Is(e, t) {
11157
+ function Ls(e, t) {
11129
11158
  var n = e.deps;
11130
- if (n !== null) for (var r = t; r < n.length; r++) Fs(e, n[r]);
11159
+ if (n !== null) for (var r = t; r < n.length; r++) Is(e, n[r]);
11131
11160
  }
11132
- function Ls(e) {
11161
+ function Rs(e) {
11133
11162
  var t = e.f;
11134
11163
  if (!(t & 16384)) {
11135
- eo(e, aa);
11136
- var n = X, r = hs;
11137
- X = e, hs = !0;
11164
+ to(e, oa);
11165
+ var n = X, r = gs;
11166
+ X = e, gs = !0;
11138
11167
  try {
11139
- t & 16777232 ? ss(e) : os(e), as(e);
11140
- var i = Ps(e);
11141
- e.teardown = typeof i == "function" ? i : null, e.wv = Ds;
11168
+ t & 16777232 ? cs(e) : ss(e), os(e);
11169
+ var i = Fs(e);
11170
+ e.teardown = typeof i == "function" ? i : null, e.wv = Os;
11142
11171
  } finally {
11143
- hs = r, X = n;
11172
+ gs = r, X = n;
11144
11173
  }
11145
11174
  }
11146
11175
  }
11147
- function Rs(e) {
11176
+ function zs(e) {
11148
11177
  var t = (e.f & 2) != 0;
11149
- if (ms?.add(e), Y !== null && !vs && !(X !== null && X.f & 16384) && (xs === null || !Ji.call(xs, e))) {
11178
+ if (hs?.add(e), Y !== null && !ys && !(X !== null && X.f & 16384) && (Ss === null || !Yi.call(Ss, e))) {
11150
11179
  var n = Y.deps;
11151
- if (Y.f & 2097152) e.rv < Os && (e.rv = Os, Cs === null && n !== null && n[ws] === e ? ws++ : Cs === null ? Cs = [e] : Cs.push(e));
11180
+ if (Y.f & 2097152) e.rv < ks && (e.rv = ks, ws === null && n !== null && n[Ts] === e ? Ts++ : ws === null ? ws = [e] : ws.push(e));
11152
11181
  else {
11153
11182
  (Y.deps ??= []).push(e);
11154
11183
  var r = e.reactions;
11155
- r === null ? e.reactions = [Y] : Ji.call(r, Y) || r.push(Y);
11184
+ r === null ? e.reactions = [Y] : Yi.call(r, Y) || r.push(Y);
11156
11185
  }
11157
11186
  }
11158
- if (gs && Io.has(e)) return Io.get(e);
11187
+ if (_s && Lo.has(e)) return Lo.get(e);
11159
11188
  if (t) {
11160
11189
  var i = e;
11161
- if (gs) {
11190
+ if (_s) {
11162
11191
  var a = i.v;
11163
- return (!(i.f & 1024) && i.reactions !== null || Bs(i)) && (a = jo(i)), Io.set(i, a), a;
11192
+ return (!(i.f & 1024) && i.reactions !== null || Vs(i)) && (a = Mo(i)), Lo.set(i, a), a;
11164
11193
  }
11165
- var o = (i.f & 512) == 0 && !vs && Y !== null && (hs || (Y.f & 512) != 0), s = (i.f & ua) === 0;
11166
- Ms(i) && (o && (i.f |= 512), Mo(i)), o && !s && (Po(i), zs(i));
11194
+ var o = (i.f & 512) == 0 && !ys && Y !== null && (gs || (Y.f & 512) != 0), s = (i.f & da) === 0;
11195
+ Ns(i) && (o && (i.f |= 512), No(i)), o && !s && (Fo(i), Bs(i));
11167
11196
  }
11168
- if (co?.has(e)) return co.get(e);
11197
+ if (lo?.has(e)) return lo.get(e);
11169
11198
  if (e.f & 8388608) throw e.v;
11170
11199
  return e.v;
11171
11200
  }
11172
- function zs(e) {
11173
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Po(t), zs(t));
11174
- }
11175
11201
  function Bs(e) {
11176
- if (e.v === ka) return !0;
11202
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Fo(t), Bs(t));
11203
+ }
11204
+ function Vs(e) {
11205
+ if (e.v === Aa) return !0;
11177
11206
  if (e.deps === null) return !1;
11178
- for (let t of e.deps) if (Io.has(t) || t.f & 2 && Bs(t)) return !0;
11207
+ for (let t of e.deps) if (Lo.has(t) || t.f & 2 && Vs(t)) return !0;
11179
11208
  return !1;
11180
11209
  }
11181
- function Vs(e) {
11182
- var t = vs;
11210
+ function Hs(e) {
11211
+ var t = ys;
11183
11212
  try {
11184
- return vs = !0, e();
11213
+ return ys = !0, e();
11185
11214
  } finally {
11186
- vs = t;
11215
+ ys = t;
11187
11216
  }
11188
11217
  }
11189
11218
  [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
11190
- var Hs = ["touchstart", "touchmove"];
11191
- function Us(e) {
11192
- return Hs.includes(e);
11219
+ var Us = ["touchstart", "touchmove"];
11220
+ function Ws(e) {
11221
+ return Us.includes(e);
11193
11222
  }
11194
11223
  //#endregion
11195
11224
  //#region node_modules/svelte/src/internal/client/dom/elements/events.js
11196
- var Ws = Symbol("events"), Gs = /* @__PURE__ */ new Set(), Ks = /* @__PURE__ */ new Set(), qs = null;
11197
- function Js(e) {
11225
+ var Gs = Symbol("events"), Ks = /* @__PURE__ */ new Set(), qs = /* @__PURE__ */ new Set(), Js = null;
11226
+ function Ys(e) {
11198
11227
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
11199
- qs = e;
11200
- var o = 0, s = qs === e && e[Ws];
11228
+ Js = e;
11229
+ var o = 0, s = Js === e && e[Gs];
11201
11230
  if (s) {
11202
11231
  var c = i.indexOf(s);
11203
11232
  if (c !== -1 && (t === document || t === window)) {
11204
- e[Ws] = t;
11233
+ e[Gs] = t;
11205
11234
  return;
11206
11235
  }
11207
11236
  var l = i.indexOf(t);
@@ -11209,19 +11238,19 @@ function Js(e) {
11209
11238
  c <= l && (o = c);
11210
11239
  }
11211
11240
  if (a = i[o] || e.target, a !== t) {
11212
- Xi(e, "currentTarget", {
11241
+ Zi(e, "currentTarget", {
11213
11242
  configurable: !0,
11214
11243
  get() {
11215
11244
  return a || n;
11216
11245
  }
11217
11246
  });
11218
11247
  var u = Y, d = X;
11219
- ys(null), bs(null);
11248
+ bs(null), xs(null);
11220
11249
  try {
11221
11250
  for (var f, p = []; a !== null;) {
11222
11251
  var m = a.assignedSlot || a.parentNode || a.host || null;
11223
11252
  try {
11224
- var h = a[Ws]?.[r];
11253
+ var h = a[Gs]?.[r];
11225
11254
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
11226
11255
  } catch (e) {
11227
11256
  f ? p.push(e) : f = e;
@@ -11236,14 +11265,14 @@ function Js(e) {
11236
11265
  throw f;
11237
11266
  }
11238
11267
  } finally {
11239
- e[Ws] = t, delete e.currentTarget, ys(u), bs(d);
11268
+ e[Gs] = t, delete e.currentTarget, bs(u), xs(d);
11240
11269
  }
11241
11270
  }
11242
11271
  }
11243
11272
  globalThis?.window?.trustedTypes;
11244
11273
  //#endregion
11245
11274
  //#region node_modules/svelte/src/internal/client/dom/template.js
11246
- function Ys(e, t) {
11275
+ function Xs(e, t) {
11247
11276
  var n = X;
11248
11277
  n.nodes === null && (n.nodes = {
11249
11278
  start: e,
@@ -11252,55 +11281,55 @@ function Ys(e, t) {
11252
11281
  t: null
11253
11282
  });
11254
11283
  }
11255
- function Xs(e, t) {
11256
- return Qs(e, t);
11257
- }
11258
- var Zs = /* @__PURE__ */ new Map();
11259
- function Qs(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
11260
- Jo();
11261
- var c = void 0, l = ts(() => {
11262
- var o = n ?? t.appendChild(Yo());
11263
- Oo(o, { pending: () => {} }, (t) => {
11264
- Ga({});
11265
- var n = Ua;
11266
- if (a && (n.c = a), i && (r.$$events = i), Na && Ys(t, null), c = e(t, r) || {}, Na && (X.nodes.end = Pa, Pa === null || Pa.nodeType !== 8 || Pa.data !== "]")) throw ja(), K;
11267
- Ka();
11284
+ function Zs(e, t) {
11285
+ return $s(e, t);
11286
+ }
11287
+ var Qs = /* @__PURE__ */ new Map();
11288
+ function $s(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
11289
+ Yo();
11290
+ var c = void 0, l = ns(() => {
11291
+ var o = n ?? t.appendChild(Xo());
11292
+ ko(o, { pending: () => {} }, (t) => {
11293
+ Ka({});
11294
+ var n = Wa;
11295
+ if (a && (n.c = a), i && (r.$$events = i), Pa && Xs(t, null), c = e(t, r) || {}, Pa && (X.nodes.end = Fa, Fa === null || Fa.nodeType !== 8 || Fa.data !== "]")) throw Ma(), ka;
11296
+ qa();
11268
11297
  }, s);
11269
11298
  var l = /* @__PURE__ */ new Set(), u = (e) => {
11270
11299
  for (var n = 0; n < e.length; n++) {
11271
11300
  var r = e[n];
11272
11301
  if (!l.has(r)) {
11273
11302
  l.add(r);
11274
- var i = Us(r);
11303
+ var i = Ws(r);
11275
11304
  for (let e of [t, document]) {
11276
- var a = Zs.get(e);
11277
- a === void 0 && (a = /* @__PURE__ */ new Map(), Zs.set(e, a));
11305
+ var a = Qs.get(e);
11306
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Qs.set(e, a));
11278
11307
  var o = a.get(r);
11279
- o === void 0 ? (e.addEventListener(r, Js, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
11308
+ o === void 0 ? (e.addEventListener(r, Ys, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
11280
11309
  }
11281
11310
  }
11282
11311
  }
11283
11312
  };
11284
- return u(Yi(Gs)), Ks.add(u), () => {
11313
+ return u(Xi(Ks)), qs.add(u), () => {
11285
11314
  for (var e of l) for (let n of [t, document]) {
11286
- var r = Zs.get(n), i = r.get(e);
11287
- --i == 0 ? (n.removeEventListener(e, Js), r.delete(e), r.size === 0 && Zs.delete(n)) : r.set(e, i);
11315
+ var r = Qs.get(n), i = r.get(e);
11316
+ --i == 0 ? (n.removeEventListener(e, Ys), r.delete(e), r.size === 0 && Qs.delete(n)) : r.set(e, i);
11288
11317
  }
11289
- Ks.delete(u), o !== n && o.parentNode?.removeChild(o);
11318
+ qs.delete(u), o !== n && o.parentNode?.removeChild(o);
11290
11319
  };
11291
11320
  });
11292
- return $s.set(c, l), c;
11321
+ return ec.set(c, l), c;
11293
11322
  }
11294
- var $s = /* @__PURE__ */ new WeakMap();
11323
+ var ec = /* @__PURE__ */ new WeakMap();
11295
11324
  //#endregion
11296
11325
  //#region node_modules/svelte/src/internal/flags/legacy.js
11297
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5"), Ha();
11326
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5"), Ua();
11298
11327
  //#endregion
11299
11328
  //#region src/App.svelte
11300
- function ec(e) {}
11329
+ function tc(e) {}
11301
11330
  //#endregion
11302
11331
  //#region src/modules/routing-module.ts
11303
- var tc = {
11332
+ var nc = {
11304
11333
  init: (e) => {
11305
11334
  W.get(Si).enableRouting();
11306
11335
  },
@@ -11333,14 +11362,14 @@ var tc = {
11333
11362
  Object.keys(e).length > 0 && r.routing().addSearchParams(e, t, n);
11334
11363
  }
11335
11364
  }
11336
- }, nc, rc = {
11365
+ }, rc, ic = {
11337
11366
  luigi: void 0,
11338
11367
  documentTitle: void 0,
11339
11368
  init: (e) => {
11340
- rc.luigi = e, rc.documentTitle = r(void 0), nc = W.get(gi);
11369
+ ic.luigi = e, ic.documentTitle = r(void 0), rc = W.get(gi);
11341
11370
  },
11342
11371
  processAlert: (e, t, n) => {
11343
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11372
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11344
11373
  let r = {
11345
11374
  openFromClient: t,
11346
11375
  close: () => {
@@ -11349,26 +11378,26 @@ var tc = {
11349
11378
  link: (t) => {
11350
11379
  if (e.links) {
11351
11380
  let r = e.links[t];
11352
- if (r && (r.url && rc.luigi?.navigation().navigate(r.url), r.dismissKey && e.id)) return n.notifyAlertClosed(e.id, r.dismissKey), !0;
11381
+ if (r && (r.url && ic.luigi?.navigation().navigate(r.url), r.dismissKey && e.id)) return n.notifyAlertClosed(e.id, r.dismissKey), !0;
11353
11382
  }
11354
11383
  return !1;
11355
11384
  }
11356
11385
  };
11357
- rc.luigi.getEngine()._connector?.renderAlert(e, r);
11386
+ ic.luigi.getEngine()._connector?.renderAlert(e, r);
11358
11387
  },
11359
11388
  handleConfirmationModalRequest: (e, t) => {
11360
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11389
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11361
11390
  if (e) {
11362
- let t = e.body ? e.body : rc.luigi.i18n().getTranslation("luigi.confirmationModal.body");
11391
+ let t = e.body ? e.body : ic.luigi.i18n().getTranslation("luigi.confirmationModal.body");
11363
11392
  e = {
11364
11393
  ...e,
11365
- header: rc.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
11394
+ header: ic.luigi.i18n().getTranslation(e.header || "luigi.confirmationModal.header"),
11366
11395
  body: fi.sanatizeHtmlExceptTextFormatting(t),
11367
- buttonDismiss: rc.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
11368
- buttonConfirm: e.buttonConfirm === !1 ? !1 : rc.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
11396
+ buttonDismiss: ic.luigi.i18n().getTranslation(e.buttonDismiss || "luigi.button.dismiss"),
11397
+ buttonConfirm: e.buttonConfirm === !1 ? !1 : ic.luigi.i18n().getTranslation(e.buttonConfirm || "luigi.button.confirm")
11369
11398
  };
11370
11399
  }
11371
- rc.luigi.getEngine()._connector?.renderConfirmationModal(e, {
11400
+ ic.luigi.getEngine()._connector?.renderConfirmationModal(e, {
11372
11401
  confirm() {
11373
11402
  t.notifyConfirmationModalClosed(!0);
11374
11403
  },
@@ -11378,28 +11407,28 @@ var tc = {
11378
11407
  });
11379
11408
  },
11380
11409
  handleDirtyStatusRequest: (e, t) => {
11381
- if (!rc.luigi) throw Error("Luigi is not initialized.");
11382
- nc.updateDirtyStatus(e, t);
11410
+ if (!ic.luigi) throw Error("Luigi is not initialized.");
11411
+ rc.updateDirtyStatus(e, t);
11383
11412
  }
11384
- }, ic = class {
11413
+ }, ac = class {
11385
11414
  static hasLocaleChangePermission(e) {
11386
11415
  return e?.clientPermissions?.changeCurrentLocale ? !0 : (console.error("Current locale change declined from client, as client permission \"changeCurrentLocale\" is not set for this view."), !1);
11387
11416
  }
11388
11417
  };
11389
11418
  //#endregion
11390
11419
  //#region src/modules/communicaton-module.ts
11391
- function ac(e, t, n) {
11420
+ function oc(e, t, n) {
11392
11421
  let r = n.getConfigValue("navigation.viewGroupSettings") || {};
11393
11422
  r[e] || (r[e] = {}), r[e]._liveCustomData = t, n.configChanged("navigation.viewgroupdata");
11394
11423
  }
11395
- var oc = {
11424
+ var sc = {
11396
11425
  luigi: {},
11397
11426
  init: (e) => {
11398
- oc.luigi = e;
11427
+ sc.luigi = e;
11399
11428
  },
11400
11429
  addListeners: (e, t) => {
11401
11430
  e.addEventListener(V.INITIALIZED, (t) => {
11402
- rc.luigi?.ux().hideLoadingIndicator(e.parentNode);
11431
+ ic.luigi?.ux().hideLoadingIndicator(e.parentNode);
11403
11432
  let n = W.get(bi);
11404
11433
  n.viewGroupLoaded(e), !e._luigiPreloading && e.style.display !== "none" && n.preload();
11405
11434
  }), e.addEventListener(V.NAVIGATION_COMPLETED_REPORT, () => {
@@ -11429,26 +11458,26 @@ var oc = {
11429
11458
  let n = e.payload;
11430
11459
  t.navigation().runTimeErrorHandler(n?.data?.errorObj || {});
11431
11460
  }), e.addEventListener(V.ALERT_REQUEST, (t) => {
11432
- rc.processAlert(t.payload, !0, e);
11461
+ ic.processAlert(t.payload, !0, e);
11433
11462
  }), e.addEventListener(V.SHOW_CONFIRMATION_MODAL_REQUEST, (t) => {
11434
- rc.handleConfirmationModalRequest(t.payload, e);
11463
+ ic.handleConfirmationModalRequest(t.payload, e);
11435
11464
  }), e.addEventListener(V.SET_DOCUMENT_TITLE_REQUEST, (e) => {
11436
11465
  let t = e.detail;
11437
- oc.luigi.getEngine()._connector?.setDocumentTitle(t.title);
11466
+ sc.luigi.getEngine()._connector?.setDocumentTitle(t.title);
11438
11467
  }), e.addEventListener(V.SHOW_LOADING_INDICATOR_REQUEST, () => {
11439
- oc.luigi.getEngine()._connector?.showLoadingIndicator(e.parentNode);
11468
+ sc.luigi.getEngine()._connector?.showLoadingIndicator(e.parentNode);
11440
11469
  }), e.addEventListener(V.HIDE_LOADING_INDICATOR_REQUEST, () => {
11441
- oc.luigi.getEngine()._connector?.hideLoadingIndicator(e.parentNode);
11470
+ sc.luigi.getEngine()._connector?.hideLoadingIndicator(e.parentNode);
11442
11471
  }), e.addEventListener(V.ADD_BACKDROP_REQUEST, () => {
11443
- oc.luigi.getEngine()._connector?.addBackdrop();
11472
+ sc.luigi.getEngine()._connector?.addBackdrop();
11444
11473
  }), e.addEventListener(V.REMOVE_BACKDROP_REQUEST, () => {
11445
- oc.luigi.getEngine()._connector?.removeBackdrop();
11474
+ sc.luigi.getEngine()._connector?.removeBackdrop();
11446
11475
  }), e.addEventListener(V.SET_ANCHOR_LINK_REQUEST, (n) => {
11447
11476
  let r = n?.payload || "";
11448
11477
  e.anchor = r, e.updateContext(e.context || {}), t.routing().setAnchor(r);
11449
11478
  }), e.addEventListener(V.SET_DIRTY_STATUS_REQUEST, (t) => {
11450
11479
  let n = t.payload;
11451
- rc.handleDirtyStatusRequest(n?.dirty ?? !1, e);
11480
+ ic.handleDirtyStatusRequest(n?.dirty ?? !1, e);
11452
11481
  }), e.addEventListener(V.ADD_NODE_PARAMS_REQUEST, (e) => {
11453
11482
  let n = e.payload;
11454
11483
  t.routing().addNodeParams(n.data, n.keepBrowserHistory);
@@ -11458,15 +11487,15 @@ var oc = {
11458
11487
  }), e.addEventListener(V.OPEN_USER_SETTINGS_REQUEST, () => {
11459
11488
  t.ux().openUserSettings();
11460
11489
  }), e.addEventListener(V.CLOSE_USER_SETTINGS_REQUEST, () => {
11461
- oc.luigi.getEngine()._connector?.closeUserSettings();
11490
+ sc.luigi.getEngine()._connector?.closeUserSettings();
11462
11491
  }), e.addEventListener(V.ADD_SEARCH_PARAMS_REQUEST, (e) => {
11463
11492
  let n = e.detail;
11464
- tc.addSearchParamsFromClient(n.data, n.keepBrowserHistory, n.preventLuigiConfigUpdate, t);
11493
+ nc.addSearchParamsFromClient(n.data, n.keepBrowserHistory, n.preventLuigiConfigUpdate, t);
11465
11494
  }), e.addEventListener(V.UPDATE_MODAL_SETTINGS_REQUEST, (e) => {
11466
11495
  let n = e.payload;
11467
11496
  G.updateModalSettings(n.updatedModalSettings, n.addHistoryEntry, t);
11468
11497
  }), e.addEventListener(V.SET_CURRENT_LOCALE_REQUEST, (n) => {
11469
- if (!ic.hasLocaleChangePermission(e)) return;
11498
+ if (!ac.hasLocaleChangePermission(e)) return;
11470
11499
  let r = n.detail?.data?.data?.currentLocale;
11471
11500
  r && t.i18n().setCurrentLocale(r);
11472
11501
  }), e.addEventListener(V.GET_CURRENT_ROUTE_REQUEST, (e) => {
@@ -11476,26 +11505,26 @@ var oc = {
11476
11505
  }).catch(() => e.callback(""));
11477
11506
  }), e.addEventListener(V.SET_VIEW_GROUP_DATA_REQUEST, (n) => {
11478
11507
  let r = e.viewGroup;
11479
- r && ac(r, n.detail, t);
11508
+ r && oc(r, n.detail, t);
11480
11509
  });
11481
11510
  }
11482
11511
  };
11483
11512
  //#endregion
11484
11513
  //#region src/main.ts
11485
- window.Luigi = new Gi(new class {
11514
+ window.Luigi = new Ki(new class {
11486
11515
  config;
11487
11516
  _connector;
11488
11517
  _app;
11489
11518
  _ui = G;
11490
- _comm = oc;
11491
- _ux = rc;
11492
- _routing = tc;
11519
+ _comm = sc;
11520
+ _ux = ic;
11521
+ _routing = nc;
11493
11522
  bootstrap(e) {
11494
- this._app = Xs(ec, { target: document.body }), this._connector = e;
11523
+ this._app = Zs(tc, { target: document.body }), this._connector = e;
11495
11524
  }
11496
11525
  init() {
11497
11526
  let e = window.Luigi;
11498
- W.register(gi, () => new gi(e)), W.register(Ii, () => new Ii(e)), W.register(yi, () => new yi(e)), W.register(vi, () => new vi()), W.register(Si, () => new Si(e)), W.register(Ci, () => new Ci()), W.register(_i, () => new _i(e)), W.register(bi, () => new bi(e)), e.theming()._init(), G.init(e), tc.init(e), oc.init(e), rc.init(e);
11527
+ W.register(gi, () => new gi(e)), W.register(Li, () => new Li(e)), W.register(yi, () => new yi(e)), W.register(vi, () => new vi()), W.register(Si, () => new Si(e)), W.register(Ci, () => new Ci()), W.register(_i, () => new _i(e)), W.register(bi, () => new bi(e)), e.theming()._init(), G.init(e), nc.init(e), sc.init(e), ic.init(e);
11499
11528
  }
11500
11529
  }());
11501
11530
  //#endregion