zudoku 0.3.0-dev.55 → 0.3.0-dev.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/config/validators/validate.d.ts +12 -12
  2. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  3. package/dist/lib/components/DeveloperHint.js +10 -0
  4. package/dist/lib/components/DeveloperHint.js.map +1 -0
  5. package/dist/lib/components/NotFoundPage.js +2 -2
  6. package/dist/lib/components/NotFoundPage.js.map +1 -1
  7. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  8. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  9. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  10. package/dist/lib/plugins/api-keys/index.js +2 -12
  11. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  12. package/dist/lib/plugins/openapi/OperationList.js +2 -2
  13. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  14. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -3
  15. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  16. package/lib/AnchorLink-GNsUeGSX.js +705 -0
  17. package/lib/{AnchorLink-BaXHjhF-.js.map → AnchorLink-GNsUeGSX.js.map} +1 -1
  18. package/lib/Button-DpHMZvVs.js +4571 -0
  19. package/lib/Button-DpHMZvVs.js.map +1 -0
  20. package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
  21. package/lib/{DevPortalProvider-GjdO0Xr-.js.map → DevPortalProvider-Do9oJqme.js.map} +1 -1
  22. package/lib/Markdown-DtLFdxD1.js +15031 -0
  23. package/lib/Markdown-DtLFdxD1.js.map +1 -0
  24. package/lib/MdxPage-CbwYRKf5.js +190 -0
  25. package/lib/{MdxPage-Dlujuj-J.js.map → MdxPage-CbwYRKf5.js.map} +1 -1
  26. package/lib/OperationList-DpR4KzIJ.js +5570 -0
  27. package/lib/OperationList-DpR4KzIJ.js.map +1 -0
  28. package/lib/Route-C1LyvITr.js +13 -0
  29. package/lib/{Route-CR6TEwVC.js.map → Route-C1LyvITr.js.map} +1 -1
  30. package/lib/Spinner-Bhbs5aPI.js +182 -0
  31. package/lib/Spinner-Bhbs5aPI.js.map +1 -0
  32. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  33. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  34. package/lib/assets/index-BPdJm2ty.js +4765 -0
  35. package/lib/assets/{index-CpIig0AX.js.map → index-BPdJm2ty.js.map} +1 -1
  36. package/lib/assets/worker-BjPv-hjP.js +14897 -0
  37. package/lib/assets/{worker-B5k2aBV9.js.map → worker-BjPv-hjP.js.map} +1 -1
  38. package/lib/context-_fYfJFgk.js +14 -0
  39. package/lib/{context-BoN_3uxi.js.map → context-_fYfJFgk.js.map} +1 -1
  40. package/lib/hook-Biq3zYel.js +92 -0
  41. package/lib/hook-Biq3zYel.js.map +1 -0
  42. package/lib/{index-Dih8IAqw.js → index-DZ910ttL.js} +83 -103
  43. package/lib/{index-Dih8IAqw.js.map → index-DZ910ttL.js.map} +1 -1
  44. package/lib/index-gsAuUwQh.js +418 -0
  45. package/lib/index-gsAuUwQh.js.map +1 -0
  46. package/lib/index-pI9JkN46.js +4765 -0
  47. package/lib/{index-Bn03IPZt.js.map → index-pI9JkN46.js.map} +1 -1
  48. package/lib/jsx-runtime-CJZJivg2.js +1526 -0
  49. package/lib/{jsx-runtime-DvZ6OKMM.js.map → jsx-runtime-CJZJivg2.js.map} +1 -1
  50. package/lib/prism-bash.min-DadFsM4Z.js +7 -0
  51. package/lib/{prism-bash.min-BtBk0onv.js.map → prism-bash.min-DadFsM4Z.js.map} +1 -1
  52. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  53. package/lib/{prism-csharp.min-Cv7D49bv.js.map → prism-csharp.min-Yizuc34Y.js.map} +1 -1
  54. package/lib/prism-java.min-d5iT_mOd.js +7 -0
  55. package/lib/{prism-java.min-tNK-JX6x.js.map → prism-java.min-d5iT_mOd.js.map} +1 -1
  56. package/lib/prism-json.min-B1GJqK1k.js +2 -0
  57. package/lib/{prism-json.min-Cdtv-CME.js.map → prism-json.min-B1GJqK1k.js.map} +1 -1
  58. package/lib/prism-markup-templating-DZrrEs0A.js +62 -0
  59. package/lib/{prism-markup-templating-iotg2sCU.js.map → prism-markup-templating-DZrrEs0A.js.map} +1 -1
  60. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  61. package/lib/{prism-objectivec.min-CY4WGixz.js.map → prism-objectivec.min-BXSWqpJJ.js.map} +1 -1
  62. package/lib/prism-php.min-o7FpoMP_.js +11 -0
  63. package/lib/{prism-php.min-T6sIVgED.js.map → prism-php.min-o7FpoMP_.js.map} +1 -1
  64. package/lib/prism-ruby.min-C7LwcKyz.js +10 -0
  65. package/lib/{prism-ruby.min-B-2KAa4y.js.map → prism-ruby.min-C7LwcKyz.js.map} +1 -1
  66. package/lib/router-CBw2vqJE.js +2973 -0
  67. package/lib/{router-ButO1QyY.js.map → router-CBw2vqJE.js.map} +1 -1
  68. package/lib/slugify-CiPVjteN.js +28 -0
  69. package/lib/{slugify-CmS97Vy8.js.map → slugify-CiPVjteN.js.map} +1 -1
  70. package/lib/state-DKdaQzvh.js +288 -0
  71. package/lib/{state-CmGfNKhR.js.map → state-DKdaQzvh.js.map} +1 -1
  72. package/lib/urql-DMlBWUKL.js +1592 -0
  73. package/lib/{urql-DtVKPBx_.js.map → urql-DMlBWUKL.js.map} +1 -1
  74. package/lib/util-_jwUlTBU.js +41 -0
  75. package/lib/{util-B5KX4h4M.js.map → util-_jwUlTBU.js.map} +1 -1
  76. package/lib/zudoku.auth-auth0.js +18 -24
  77. package/lib/zudoku.auth-auth0.js.map +1 -1
  78. package/lib/zudoku.auth-clerk.js +34 -43
  79. package/lib/zudoku.auth-clerk.js.map +1 -1
  80. package/lib/zudoku.auth-openid.js +734 -1121
  81. package/lib/zudoku.auth-openid.js.map +1 -1
  82. package/lib/zudoku.components.js +822 -1076
  83. package/lib/zudoku.components.js.map +1 -1
  84. package/lib/zudoku.openapi-worker.js +9691 -13786
  85. package/lib/zudoku.openapi-worker.js.map +1 -1
  86. package/lib/zudoku.plugin-api-keys.js +171 -208
  87. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  88. package/lib/zudoku.plugin-markdown.js +33 -41
  89. package/lib/zudoku.plugin-markdown.js.map +1 -1
  90. package/lib/zudoku.plugin-openapi.js +6 -6
  91. package/lib/zudoku.plugin-redirect.js +8 -10
  92. package/lib/zudoku.plugin-redirect.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/lib/components/DeveloperHint.tsx +25 -0
  95. package/src/lib/components/NotFoundPage.tsx +8 -14
  96. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  97. package/src/lib/plugins/api-keys/index.tsx +2 -21
  98. package/src/lib/plugins/openapi/OperationList.tsx +5 -8
  99. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -5
  100. package/lib/AnchorLink-BaXHjhF-.js +0 -989
  101. package/lib/Combination-BfufJFkX.js +0 -1365
  102. package/lib/Combination-BfufJFkX.js.map +0 -1
  103. package/lib/DevPortalProvider-GjdO0Xr-.js +0 -1610
  104. package/lib/Markdown-B8nPVql1.js +0 -19708
  105. package/lib/Markdown-B8nPVql1.js.map +0 -1
  106. package/lib/MdxPage-Dlujuj-J.js +0 -223
  107. package/lib/OperationList-krPgt6sE.js +0 -8041
  108. package/lib/OperationList-krPgt6sE.js.map +0 -1
  109. package/lib/Playground-DOHxca0P.js +0 -539
  110. package/lib/Playground-DOHxca0P.js.map +0 -1
  111. package/lib/Route-CR6TEwVC.js +0 -13
  112. package/lib/Select-Boi_pe3L.js +0 -5298
  113. package/lib/Select-Boi_pe3L.js.map +0 -1
  114. package/lib/Spinner-oU0QJmi_.js +0 -16
  115. package/lib/Spinner-oU0QJmi_.js.map +0 -1
  116. package/lib/_commonjsHelpers-BxmBWJD2.js +0 -34
  117. package/lib/_commonjsHelpers-BxmBWJD2.js.map +0 -1
  118. package/lib/assets/index-CpIig0AX.js +0 -6341
  119. package/lib/assets/worker-B5k2aBV9.js +0 -18921
  120. package/lib/context-BoN_3uxi.js +0 -17
  121. package/lib/hook-CIuFuyBT.js +0 -90
  122. package/lib/hook-CIuFuyBT.js.map +0 -1
  123. package/lib/index-BL1P4Gqq.js +0 -280
  124. package/lib/index-BL1P4Gqq.js.map +0 -1
  125. package/lib/index-Bn03IPZt.js +0 -6341
  126. package/lib/index-FprhHF51.js +0 -253
  127. package/lib/index-FprhHF51.js.map +0 -1
  128. package/lib/jsx-runtime-DvZ6OKMM.js +0 -2110
  129. package/lib/mutation-DWY9x2Uc.js +0 -250
  130. package/lib/mutation-DWY9x2Uc.js.map +0 -1
  131. package/lib/prism-bash.min-BtBk0onv.js +0 -7
  132. package/lib/prism-csharp.min-Cv7D49bv.js +0 -30
  133. package/lib/prism-java.min-tNK-JX6x.js +0 -7
  134. package/lib/prism-json.min-Cdtv-CME.js +0 -2
  135. package/lib/prism-markup-templating-iotg2sCU.js +0 -94
  136. package/lib/prism-objectivec.min-CY4WGixz.js +0 -2
  137. package/lib/prism-php.min-T6sIVgED.js +0 -11
  138. package/lib/prism-ruby.min-B-2KAa4y.js +0 -8
  139. package/lib/router-ButO1QyY.js +0 -4062
  140. package/lib/slugify-CmS97Vy8.js +0 -50
  141. package/lib/state-CmGfNKhR.js +0 -436
  142. package/lib/urql-DtVKPBx_.js +0 -2567
  143. package/lib/util-B5KX4h4M.js +0 -55
@@ -1,41 +1,36 @@
1
- var __defProp = Object.defineProperty;
2
- var __typeError = (msg) => {
3
- throw TypeError(msg);
1
+ var $e = Object.defineProperty;
2
+ var ce = (t) => {
3
+ throw TypeError(t);
4
4
  };
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
8
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
9
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
- var __privateWrapper = (obj, member, setter, getter) => ({
12
- set _(value) {
13
- __privateSet(obj, member, value, setter);
5
+ var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
+ var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
+ var L = (t, e, r, a) => ({
9
+ set _(s) {
10
+ f(t, e, s, r);
14
11
  },
15
12
  get _() {
16
- return __privateGet(obj, member, getter);
13
+ return l(t, e, a);
17
14
  }
18
15
  });
19
- var _queries, _a, _mutations, _mutationId, _b, _queryCache, _mutationCache, _defaultOptions, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _c;
20
- import { c as createLucideIcon, d as dist$1, R as RouterProvider, N as NavLink, a as cx, u as useTheme, M as MdxComponents, T as ThemeProvider, V as ViewportAnchorProvider, b as useViewportAnchor, e as cn, f as cva, C as Callout$1, L as Link$1 } from "./Markdown-B8nPVql1.js";
21
- import { E as ErrorAlert, u as useAuth, R as RouterError$1 } from "./hook-CIuFuyBT.js";
22
- import { j as jsxRuntimeExports, d as dist, u as useLocation, O as Outlet } from "./jsx-runtime-DvZ6OKMM.js";
23
- import { H as HelmetProvider, a as Helmet, M as MDXProvider, A as AnchorLink, u as useMDXComponents$1 } from "./AnchorLink-BaXHjhF-.js";
24
- import React__default, { StrictMode, createContext, Component, createElement, isValidElement, memo, useMemo, useEffect, Fragment, useRef, useState, forwardRef, Suspense } from "react";
25
- import { g as getAugmentedNamespace } from "./_commonjsHelpers-BxmBWJD2.js";
26
- import { r as router$1 } from "./router-ButO1QyY.js";
27
- import { S as Subscribable, h as hashQueryKeyByOptions, Q as Query, n as notifyManager, m as matchQuery, a as matchMutation, b as noop, e as ensureQueryFn, c as addToStart, d as addToEnd, f as focusManager, o as onlineManager, r as resolveStaleTime, g as functionalUpdate, i as hashKey, p as partialMatchKey, s as skipToken, u as useDevPortal, j as QueryClientProvider, D as DevPortalProvider, k as useTopNavigationItem, l as useNavigation } from "./DevPortalProvider-GjdO0Xr-.js";
28
- import { M as Mutation } from "./mutation-DWY9x2Uc.js";
29
- import { R as Root, T as Trigger, C as Content } from "./index-FprhHF51.js";
30
- import { c as checkHasActiveItem, i as isPathItem, j as joinPath, a as isLinkItem } from "./util-B5KX4h4M.js";
31
- import { S as Spinner } from "./Spinner-oU0QJmi_.js";
16
+ import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as W, e as F, f as tt, C as rt, L as at } from "./Markdown-DtLFdxD1.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-Biq3zYel.js";
18
+ import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
19
+ import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-GNsUeGSX.js";
20
+ import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
+ import { g as G } from "./_commonjsHelpers-BVfed4GL.js";
22
+ import { r as yt } from "./router-CBw2vqJE.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as m, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
+ import { M as Rt } from "./index-gsAuUwQh.js";
25
+ import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-Bhbs5aPI.js";
26
+ import { c as ee, i as X, j as De, a as Mt } from "./util-_jwUlTBU.js";
32
27
  /**
33
28
  * @license lucide-react v0.378.0 - ISC
34
29
  *
35
30
  * This source code is licensed under the ISC license.
36
31
  * See the LICENSE file in the root directory of this source tree.
37
32
  */
38
- const ChevronRight = createLucideIcon("ChevronRight", [
33
+ const _e = U("ChevronRight", [
39
34
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
40
35
  ]);
41
36
  /**
@@ -44,7 +39,7 @@ const ChevronRight = createLucideIcon("ChevronRight", [
44
39
  * This source code is licensed under the ISC license.
45
40
  * See the LICENSE file in the root directory of this source tree.
46
41
  */
47
- const ExternalLink = createLucideIcon("ExternalLink", [
42
+ const Dt = U("ExternalLink", [
48
43
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
49
44
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
50
45
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -55,7 +50,7 @@ const ExternalLink = createLucideIcon("ExternalLink", [
55
50
  * This source code is licensed under the ISC license.
56
51
  * See the LICENSE file in the root directory of this source tree.
57
52
  */
58
- const MoonStar = createLucideIcon("MoonStar", [
53
+ const _t = U("MoonStar", [
59
54
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
60
55
  ["path", { d: "M20 3v4", key: "1olli1" }],
61
56
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -66,7 +61,7 @@ const MoonStar = createLucideIcon("MoonStar", [
66
61
  * This source code is licensed under the ISC license.
67
62
  * See the LICENSE file in the root directory of this source tree.
68
63
  */
69
- const Sun = createLucideIcon("Sun", [
64
+ const Tt = U("Sun", [
70
65
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
71
66
  ["path", { d: "M12 2v2", key: "tus03m" }],
72
67
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -77,1193 +72,973 @@ const Sun = createLucideIcon("Sun", [
77
72
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
78
73
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
79
74
  ]);
80
- function ServerError$1({ error }) {
81
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorAlert, { error });
75
+ function Ft({ error: t }) {
76
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
82
77
  }
83
- var server = {};
84
- const require$$1 = /* @__PURE__ */ getAugmentedNamespace(router$1);
85
- const require$$2 = /* @__PURE__ */ getAugmentedNamespace(dist);
86
- const require$$3 = /* @__PURE__ */ getAugmentedNamespace(dist$1);
87
- Object.defineProperty(server, "__esModule", { value: true });
88
- var React = React__default;
89
- var router = require$$1;
90
- var reactRouter = require$$2;
91
- var reactRouterDom = require$$3;
92
- function _interopNamespace(e) {
93
- if (e && e.__esModule) return e;
94
- var n = /* @__PURE__ */ Object.create(null);
95
- if (e) {
96
- Object.keys(e).forEach(function(k) {
97
- if (k !== "default") {
98
- var d = Object.getOwnPropertyDescriptor(e, k);
99
- Object.defineProperty(n, k, d.get ? d : {
100
- enumerable: true,
101
- get: function() {
102
- return e[k];
103
- }
104
- });
105
- }
106
- });
107
- }
108
- n["default"] = e;
109
- return Object.freeze(n);
78
+ var q = {};
79
+ const Qt = /* @__PURE__ */ G(yt), It = /* @__PURE__ */ G(it), qt = /* @__PURE__ */ G(Ye);
80
+ Object.defineProperty(q, "__esModule", { value: !0 });
81
+ var Ht = ht, E = Qt, te = It, j = qt;
82
+ function Lt(t) {
83
+ if (t && t.__esModule) return t;
84
+ var e = /* @__PURE__ */ Object.create(null);
85
+ return t && Object.keys(t).forEach(function(r) {
86
+ if (r !== "default") {
87
+ var a = Object.getOwnPropertyDescriptor(t, r);
88
+ Object.defineProperty(e, r, a.get ? a : {
89
+ enumerable: !0,
90
+ get: function() {
91
+ return t[r];
92
+ }
93
+ });
94
+ }
95
+ }), e.default = t, Object.freeze(e);
110
96
  }
111
- var React__namespace = /* @__PURE__ */ _interopNamespace(React);
112
- function StaticRouter({
113
- basename,
114
- children,
115
- location: locationProp = "/",
116
- future
97
+ var x = /* @__PURE__ */ Lt(Ht);
98
+ function Bt({
99
+ basename: t,
100
+ children: e,
101
+ location: r = "/",
102
+ future: a
117
103
  }) {
118
- if (typeof locationProp === "string") {
119
- locationProp = reactRouterDom.parsePath(locationProp);
120
- }
121
- let action = router.Action.Pop;
122
- let location = {
123
- pathname: locationProp.pathname || "/",
124
- search: locationProp.search || "",
125
- hash: locationProp.hash || "",
126
- state: locationProp.state != null ? locationProp.state : null,
127
- key: locationProp.key || "default"
128
- };
129
- let staticNavigator = getStatelessNavigator();
130
- return /* @__PURE__ */ React__namespace.createElement(reactRouterDom.Router, {
131
- basename,
132
- children,
133
- location,
134
- navigationType: action,
135
- navigator: staticNavigator,
136
- future,
137
- static: true
104
+ typeof r == "string" && (r = j.parsePath(r));
105
+ let s = E.Action.Pop, o = {
106
+ pathname: r.pathname || "/",
107
+ search: r.search || "",
108
+ hash: r.hash || "",
109
+ state: r.state != null ? r.state : null,
110
+ key: r.key || "default"
111
+ }, i = Te();
112
+ return /* @__PURE__ */ x.createElement(j.Router, {
113
+ basename: t,
114
+ children: e,
115
+ location: o,
116
+ navigationType: s,
117
+ navigator: i,
118
+ future: a,
119
+ static: !0
138
120
  });
139
121
  }
140
- function StaticRouterProvider({
141
- context,
142
- router: router$12,
143
- hydrate = true,
144
- nonce
122
+ function zt({
123
+ context: t,
124
+ router: e,
125
+ hydrate: r = !0,
126
+ nonce: a
145
127
  }) {
146
- !(router$12 && context) ? process.env.NODE_ENV !== "production" ? router.UNSAFE_invariant(false, "You must provide `router` and `context` to <StaticRouterProvider>") : router.UNSAFE_invariant(false) : void 0;
147
- let dataRouterContext = {
148
- router: router$12,
149
- navigator: getStatelessNavigator(),
150
- static: true,
151
- staticContext: context,
152
- basename: context.basename || "/"
153
- };
154
- let fetchersContext = /* @__PURE__ */ new Map();
155
- let hydrateScript = "";
156
- if (hydrate !== false) {
157
- let data = {
158
- loaderData: context.loaderData,
159
- actionData: context.actionData,
160
- errors: serializeErrors(context.errors)
128
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
129
+ let s = {
130
+ router: e,
131
+ navigator: Te(),
132
+ static: !0,
133
+ staticContext: t,
134
+ basename: t.basename || "/"
135
+ }, o = /* @__PURE__ */ new Map(), i = "";
136
+ if (r !== !1) {
137
+ let u = {
138
+ loaderData: t.loaderData,
139
+ actionData: t.actionData,
140
+ errors: Kt(t.errors)
161
141
  };
162
- let json = htmlEscape(JSON.stringify(JSON.stringify(data)));
163
- hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
142
+ i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(u)))});`;
164
143
  }
165
144
  let {
166
- state
167
- } = dataRouterContext.router;
168
- return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_DataRouterContext.Provider, {
169
- value: dataRouterContext
170
- }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_DataRouterStateContext.Provider, {
171
- value: state
172
- }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_FetchersContext.Provider, {
173
- value: fetchersContext
174
- }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.UNSAFE_ViewTransitionContext.Provider, {
145
+ state: c
146
+ } = s.router;
147
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
148
+ value: s
149
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
150
+ value: c
151
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
152
+ value: o
153
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
175
154
  value: {
176
- isTransitioning: false
155
+ isTransitioning: !1
177
156
  }
178
- }, /* @__PURE__ */ React__namespace.createElement(reactRouterDom.Router, {
179
- basename: dataRouterContext.basename,
180
- location: state.location,
181
- navigationType: state.historyAction,
182
- navigator: dataRouterContext.navigator,
183
- static: dataRouterContext.static,
157
+ }, /* @__PURE__ */ x.createElement(j.Router, {
158
+ basename: s.basename,
159
+ location: c.location,
160
+ navigationType: c.historyAction,
161
+ navigator: s.navigator,
162
+ static: s.static,
184
163
  future: {
185
- v7_relativeSplatPath: router$12.future.v7_relativeSplatPath
164
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
186
165
  }
187
- }, /* @__PURE__ */ React__namespace.createElement(DataRoutes, {
188
- routes: router$12.routes,
189
- future: router$12.future,
190
- state
191
- })))))), hydrateScript ? /* @__PURE__ */ React__namespace.createElement("script", {
192
- suppressHydrationWarning: true,
193
- nonce,
166
+ }, /* @__PURE__ */ x.createElement(Ut, {
167
+ routes: e.routes,
168
+ future: e.future,
169
+ state: c
170
+ })))))), i ? /* @__PURE__ */ x.createElement("script", {
171
+ suppressHydrationWarning: !0,
172
+ nonce: a,
194
173
  dangerouslySetInnerHTML: {
195
- __html: hydrateScript
174
+ __html: i
196
175
  }
197
176
  }) : null);
198
177
  }
199
- function DataRoutes({
200
- routes,
201
- future,
202
- state
178
+ function Ut({
179
+ routes: t,
180
+ future: e,
181
+ state: r
203
182
  }) {
204
- return reactRouter.UNSAFE_useRoutesImpl(routes, void 0, state, future);
183
+ return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
205
184
  }
206
- function serializeErrors(errors) {
207
- if (!errors) return null;
208
- let entries = Object.entries(errors);
209
- let serialized = {};
210
- for (let [key, val] of entries) {
211
- if (router.isRouteErrorResponse(val)) {
212
- serialized[key] = {
213
- ...val,
214
- __type: "RouteErrorResponse"
215
- };
216
- } else if (val instanceof Error) {
217
- serialized[key] = {
218
- message: val.message,
219
- __type: "Error",
220
- // If this is a subclass (i.e., ReferenceError), send up the type so we
221
- // can re-create the same type during hydration.
222
- ...val.name !== "Error" ? {
223
- __subType: val.name
224
- } : {}
225
- };
226
- } else {
227
- serialized[key] = val;
228
- }
229
- }
230
- return serialized;
185
+ function Kt(t) {
186
+ if (!t) return null;
187
+ let e = Object.entries(t), r = {};
188
+ for (let [a, s] of e)
189
+ E.isRouteErrorResponse(s) ? r[a] = {
190
+ ...s,
191
+ __type: "RouteErrorResponse"
192
+ } : s instanceof Error ? r[a] = {
193
+ message: s.message,
194
+ __type: "Error",
195
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
196
+ // can re-create the same type during hydration.
197
+ ...s.name !== "Error" ? {
198
+ __subType: s.name
199
+ } : {}
200
+ } : r[a] = s;
201
+ return r;
231
202
  }
232
- function getStatelessNavigator() {
203
+ function Te() {
233
204
  return {
234
- createHref,
235
- encodeLocation,
236
- push(to) {
237
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(to)})\` somewhere in your app.`);
205
+ createHref: Fe,
206
+ encodeLocation: Qe,
207
+ push(t) {
208
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
238
209
  },
239
- replace(to) {
240
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(to)}, { replace: true })\` somewhere in your app.`);
210
+ replace(t) {
211
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
241
212
  },
242
- go(delta) {
243
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${delta})\` somewhere in your app.`);
213
+ go(t) {
214
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
244
215
  },
245
216
  back() {
246
- throw new Error(`You cannot use navigator.back() on the server because it is a stateless environment.`);
217
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
247
218
  },
248
219
  forward() {
249
- throw new Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`);
220
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
250
221
  }
251
222
  };
252
223
  }
253
- function createStaticHandler(routes, opts) {
254
- return router.createStaticHandler(routes, {
255
- ...opts,
256
- mapRouteProperties: reactRouter.UNSAFE_mapRouteProperties
224
+ function $t(t, e) {
225
+ return E.createStaticHandler(t, {
226
+ ...e,
227
+ mapRouteProperties: te.UNSAFE_mapRouteProperties
257
228
  });
258
229
  }
259
- function createStaticRouter(routes, context, opts = {}) {
260
- let manifest = {};
261
- let dataRoutes = router.UNSAFE_convertRoutesToDataRoutes(routes, reactRouter.UNSAFE_mapRouteProperties, void 0, manifest);
262
- let matches = context.matches.map((match) => {
263
- let route = manifest[match.route.id] || match.route;
230
+ function Vt(t, e, r = {}) {
231
+ let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
232
+ let u = a[c.route.id] || c.route;
264
233
  return {
265
- ...match,
266
- route
234
+ ...c,
235
+ route: u
267
236
  };
268
- });
269
- let msg = (method) => `You cannot use router.${method}() on the server because it is a stateless environment`;
237
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
270
238
  return {
271
239
  get basename() {
272
- return context.basename;
240
+ return e.basename;
273
241
  },
274
242
  get future() {
275
- var _a2, _b2;
243
+ var c, u;
276
244
  return {
277
- v7_fetcherPersist: false,
278
- v7_normalizeFormMethod: false,
279
- v7_partialHydration: ((_a2 = opts.future) == null ? void 0 : _a2.v7_partialHydration) === true,
280
- v7_prependBasename: false,
281
- v7_relativeSplatPath: ((_b2 = opts.future) == null ? void 0 : _b2.v7_relativeSplatPath) === true,
282
- unstable_skipActionErrorRevalidation: false
245
+ v7_fetcherPersist: !1,
246
+ v7_normalizeFormMethod: !1,
247
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
248
+ v7_prependBasename: !1,
249
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
250
+ unstable_skipActionErrorRevalidation: !1
283
251
  };
284
252
  },
285
253
  get state() {
286
254
  return {
287
- historyAction: router.Action.Pop,
288
- location: context.location,
289
- matches,
290
- loaderData: context.loaderData,
291
- actionData: context.actionData,
292
- errors: context.errors,
293
- initialized: true,
294
- navigation: router.IDLE_NAVIGATION,
255
+ historyAction: E.Action.Pop,
256
+ location: e.location,
257
+ matches: o,
258
+ loaderData: e.loaderData,
259
+ actionData: e.actionData,
260
+ errors: e.errors,
261
+ initialized: !0,
262
+ navigation: E.IDLE_NAVIGATION,
295
263
  restoreScrollPosition: null,
296
- preventScrollReset: false,
264
+ preventScrollReset: !1,
297
265
  revalidation: "idle",
298
266
  fetchers: /* @__PURE__ */ new Map(),
299
267
  blockers: /* @__PURE__ */ new Map()
300
268
  };
301
269
  },
302
270
  get routes() {
303
- return dataRoutes;
271
+ return s;
304
272
  },
305
273
  get window() {
306
- return void 0;
307
274
  },
308
275
  initialize() {
309
- throw msg("initialize");
276
+ throw i("initialize");
310
277
  },
311
278
  subscribe() {
312
- throw msg("subscribe");
279
+ throw i("subscribe");
313
280
  },
314
281
  enableScrollRestoration() {
315
- throw msg("enableScrollRestoration");
282
+ throw i("enableScrollRestoration");
316
283
  },
317
284
  navigate() {
318
- throw msg("navigate");
285
+ throw i("navigate");
319
286
  },
320
287
  fetch() {
321
- throw msg("fetch");
288
+ throw i("fetch");
322
289
  },
323
290
  revalidate() {
324
- throw msg("revalidate");
291
+ throw i("revalidate");
325
292
  },
326
- createHref,
327
- encodeLocation,
293
+ createHref: Fe,
294
+ encodeLocation: Qe,
328
295
  getFetcher() {
329
- return router.IDLE_FETCHER;
296
+ return E.IDLE_FETCHER;
330
297
  },
331
298
  deleteFetcher() {
332
- throw msg("deleteFetcher");
299
+ throw i("deleteFetcher");
333
300
  },
334
301
  dispose() {
335
- throw msg("dispose");
302
+ throw i("dispose");
336
303
  },
337
304
  getBlocker() {
338
- return router.IDLE_BLOCKER;
305
+ return E.IDLE_BLOCKER;
339
306
  },
340
307
  deleteBlocker() {
341
- throw msg("deleteBlocker");
308
+ throw i("deleteBlocker");
342
309
  },
343
310
  patchRoutes() {
344
- throw msg("patchRoutes");
311
+ throw i("patchRoutes");
345
312
  },
346
313
  _internalFetchControllers: /* @__PURE__ */ new Map(),
347
314
  _internalActiveDeferreds: /* @__PURE__ */ new Map(),
348
315
  _internalSetRoutes() {
349
- throw msg("_internalSetRoutes");
316
+ throw i("_internalSetRoutes");
350
317
  }
351
318
  };
352
319
  }
353
- function createHref(to) {
354
- return typeof to === "string" ? to : reactRouterDom.createPath(to);
320
+ function Fe(t) {
321
+ return typeof t == "string" ? t : j.createPath(t);
355
322
  }
356
- function encodeLocation(to) {
357
- let href = typeof to === "string" ? to : reactRouterDom.createPath(to);
358
- href = href.replace(/ $/, "%20");
359
- let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
323
+ function Qe(t) {
324
+ let e = typeof t == "string" ? t : j.createPath(t);
325
+ e = e.replace(/ $/, "%20");
326
+ let r = Yt.test(e) ? new URL(e) : new URL(e, "http://localhost");
360
327
  return {
361
- pathname: encoded.pathname,
362
- search: encoded.search,
363
- hash: encoded.hash
328
+ pathname: r.pathname,
329
+ search: r.search,
330
+ hash: r.hash
364
331
  };
365
332
  }
366
- const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
367
- const ESCAPE_LOOKUP = {
333
+ const Yt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jt = {
368
334
  "&": "\\u0026",
369
335
  ">": "\\u003e",
370
336
  "<": "\\u003c",
371
337
  "\u2028": "\\u2028",
372
338
  "\u2029": "\\u2029"
373
- };
374
- const ESCAPE_REGEX = /[&><\u2028\u2029]/g;
375
- function htmlEscape(str) {
376
- return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
339
+ }, Xt = /[&><\u2028\u2029]/g;
340
+ function Wt(t) {
341
+ return t.replace(Xt, (e) => Jt[e]);
377
342
  }
378
- server.StaticRouter = StaticRouter;
379
- var StaticRouterProvider_1 = server.StaticRouterProvider = StaticRouterProvider;
380
- server.createStaticHandler = createStaticHandler;
381
- server.createStaticRouter = createStaticRouter;
382
- const Bootstrap$1 = ({
383
- router: router2
384
- }) => /* @__PURE__ */ jsxRuntimeExports.jsx(StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelmetProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RouterProvider, { router: router2 }) }) });
385
- const BootstrapStatic$1 = ({
386
- router: router2,
387
- context,
388
- helmetContext
389
- }) => /* @__PURE__ */ jsxRuntimeExports.jsx(StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelmetProvider, { context: helmetContext, children: /* @__PURE__ */ jsxRuntimeExports.jsx(StaticRouterProvider_1, { router: router2, context }) }) });
390
- var QueryCache = (_a = class extends Subscribable {
391
- constructor(config = {}) {
343
+ q.StaticRouter = Bt;
344
+ var Gt = q.StaticRouterProvider = zt;
345
+ q.createStaticHandler = $t;
346
+ q.createStaticRouter = Vt;
347
+ const Zt = ({
348
+ router: t
349
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), er = ({
350
+ router: t,
351
+ context: e,
352
+ helmetContext: r
353
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Gt, { router: t, context: e }) }) });
354
+ var w, be, tr = (be = class extends Oe {
355
+ constructor(e = {}) {
392
356
  super();
393
- __privateAdd(this, _queries);
394
- this.config = config;
395
- __privateSet(this, _queries, /* @__PURE__ */ new Map());
396
- }
397
- build(client, options, state) {
398
- const queryKey = options.queryKey;
399
- const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);
400
- let query = this.get(queryHash);
401
- if (!query) {
402
- query = new Query({
403
- cache: this,
404
- queryKey,
405
- queryHash,
406
- options: client.defaultQueryOptions(options),
407
- state,
408
- defaultOptions: client.getQueryDefaults(queryKey)
409
- });
410
- this.add(query);
411
- }
412
- return query;
413
- }
414
- add(query) {
415
- if (!__privateGet(this, _queries).has(query.queryHash)) {
416
- __privateGet(this, _queries).set(query.queryHash, query);
417
- this.notify({
418
- type: "added",
419
- query
420
- });
421
- }
357
+ y(this, w);
358
+ this.config = e, f(this, w, /* @__PURE__ */ new Map());
359
+ }
360
+ build(e, r, a) {
361
+ const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
362
+ let i = this.get(o);
363
+ return i || (i = new bt({
364
+ cache: this,
365
+ queryKey: s,
366
+ queryHash: o,
367
+ options: e.defaultQueryOptions(r),
368
+ state: a,
369
+ defaultOptions: e.getQueryDefaults(s)
370
+ }), this.add(i)), i;
371
+ }
372
+ add(e) {
373
+ l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
374
+ type: "added",
375
+ query: e
376
+ }));
422
377
  }
423
- remove(query) {
424
- const queryInMap = __privateGet(this, _queries).get(query.queryHash);
425
- if (queryInMap) {
426
- query.destroy();
427
- if (queryInMap === query) {
428
- __privateGet(this, _queries).delete(query.queryHash);
429
- }
430
- this.notify({ type: "removed", query });
431
- }
378
+ remove(e) {
379
+ const r = l(this, w).get(e.queryHash);
380
+ r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
432
381
  }
433
382
  clear() {
434
- notifyManager.batch(() => {
435
- this.getAll().forEach((query) => {
436
- this.remove(query);
383
+ m.batch(() => {
384
+ this.getAll().forEach((e) => {
385
+ this.remove(e);
437
386
  });
438
387
  });
439
388
  }
440
- get(queryHash) {
441
- return __privateGet(this, _queries).get(queryHash);
389
+ get(e) {
390
+ return l(this, w).get(e);
442
391
  }
443
392
  getAll() {
444
- return [...__privateGet(this, _queries).values()];
393
+ return [...l(this, w).values()];
445
394
  }
446
- find(filters) {
447
- const defaultedFilters = { exact: true, ...filters };
395
+ find(e) {
396
+ const r = { exact: !0, ...e };
448
397
  return this.getAll().find(
449
- (query) => matchQuery(defaultedFilters, query)
398
+ (a) => de(r, a)
450
399
  );
451
400
  }
452
- findAll(filters = {}) {
453
- const queries = this.getAll();
454
- return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
401
+ findAll(e = {}) {
402
+ const r = this.getAll();
403
+ return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
455
404
  }
456
- notify(event) {
457
- notifyManager.batch(() => {
458
- this.listeners.forEach((listener) => {
459
- listener(event);
405
+ notify(e) {
406
+ m.batch(() => {
407
+ this.listeners.forEach((r) => {
408
+ r(e);
460
409
  });
461
410
  });
462
411
  }
463
412
  onFocus() {
464
- notifyManager.batch(() => {
465
- this.getAll().forEach((query) => {
466
- query.onFocus();
413
+ m.batch(() => {
414
+ this.getAll().forEach((e) => {
415
+ e.onFocus();
467
416
  });
468
417
  });
469
418
  }
470
419
  onOnline() {
471
- notifyManager.batch(() => {
472
- this.getAll().forEach((query) => {
473
- query.onOnline();
420
+ m.batch(() => {
421
+ this.getAll().forEach((e) => {
422
+ e.onOnline();
474
423
  });
475
424
  });
476
425
  }
477
- }, _queries = new WeakMap(), _a);
478
- var MutationCache = (_b = class extends Subscribable {
479
- constructor(config = {}) {
426
+ }, w = new WeakMap(), be), p, Q, xe, rr = (xe = class extends Oe {
427
+ constructor(e = {}) {
480
428
  super();
481
- __privateAdd(this, _mutations);
482
- __privateAdd(this, _mutationId);
483
- this.config = config;
484
- __privateSet(this, _mutations, /* @__PURE__ */ new Map());
485
- __privateSet(this, _mutationId, Date.now());
486
- }
487
- build(client, options, state) {
488
- const mutation = new Mutation({
429
+ y(this, p);
430
+ y(this, Q);
431
+ this.config = e, f(this, p, /* @__PURE__ */ new Map()), f(this, Q, Date.now());
432
+ }
433
+ build(e, r, a) {
434
+ const s = new Rt({
489
435
  mutationCache: this,
490
- mutationId: ++__privateWrapper(this, _mutationId)._,
491
- options: client.defaultMutationOptions(options),
492
- state
436
+ mutationId: ++L(this, Q)._,
437
+ options: e.defaultMutationOptions(r),
438
+ state: a
493
439
  });
494
- this.add(mutation);
495
- return mutation;
496
- }
497
- add(mutation) {
498
- const scope = scopeFor(mutation);
499
- const mutations = __privateGet(this, _mutations).get(scope) ?? [];
500
- mutations.push(mutation);
501
- __privateGet(this, _mutations).set(scope, mutations);
502
- this.notify({ type: "added", mutation });
503
- }
504
- remove(mutation) {
505
- var _a2;
506
- const scope = scopeFor(mutation);
507
- if (__privateGet(this, _mutations).has(scope)) {
508
- const mutations = (_a2 = __privateGet(this, _mutations).get(scope)) == null ? void 0 : _a2.filter((x) => x !== mutation);
509
- if (mutations) {
510
- if (mutations.length === 0) {
511
- __privateGet(this, _mutations).delete(scope);
512
- } else {
513
- __privateGet(this, _mutations).set(scope, mutations);
514
- }
515
- }
440
+ return this.add(s), s;
441
+ }
442
+ add(e) {
443
+ const r = B(e), a = l(this, p).get(r) ?? [];
444
+ a.push(e), l(this, p).set(r, a), this.notify({ type: "added", mutation: e });
445
+ }
446
+ remove(e) {
447
+ var a;
448
+ const r = B(e);
449
+ if (l(this, p).has(r)) {
450
+ const s = (a = l(this, p).get(r)) == null ? void 0 : a.filter((o) => o !== e);
451
+ s && (s.length === 0 ? l(this, p).delete(r) : l(this, p).set(r, s));
516
452
  }
517
- this.notify({ type: "removed", mutation });
453
+ this.notify({ type: "removed", mutation: e });
518
454
  }
519
- canRun(mutation) {
520
- var _a2;
521
- const firstPendingMutation = (_a2 = __privateGet(this, _mutations).get(scopeFor(mutation))) == null ? void 0 : _a2.find((m) => m.state.status === "pending");
522
- return !firstPendingMutation || firstPendingMutation === mutation;
455
+ canRun(e) {
456
+ var a;
457
+ const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
458
+ return !r || r === e;
523
459
  }
524
- runNext(mutation) {
525
- var _a2;
526
- const foundMutation = (_a2 = __privateGet(this, _mutations).get(scopeFor(mutation))) == null ? void 0 : _a2.find((m) => m !== mutation && m.state.isPaused);
527
- return (foundMutation == null ? void 0 : foundMutation.continue()) ?? Promise.resolve();
460
+ runNext(e) {
461
+ var a;
462
+ const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
463
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
528
464
  }
529
465
  clear() {
530
- notifyManager.batch(() => {
531
- this.getAll().forEach((mutation) => {
532
- this.remove(mutation);
466
+ m.batch(() => {
467
+ this.getAll().forEach((e) => {
468
+ this.remove(e);
533
469
  });
534
470
  });
535
471
  }
536
472
  getAll() {
537
- return [...__privateGet(this, _mutations).values()].flat();
473
+ return [...l(this, p).values()].flat();
538
474
  }
539
- find(filters) {
540
- const defaultedFilters = { exact: true, ...filters };
475
+ find(e) {
476
+ const r = { exact: !0, ...e };
541
477
  return this.getAll().find(
542
- (mutation) => matchMutation(defaultedFilters, mutation)
478
+ (a) => fe(r, a)
543
479
  );
544
480
  }
545
- findAll(filters = {}) {
546
- return this.getAll().filter((mutation) => matchMutation(filters, mutation));
481
+ findAll(e = {}) {
482
+ return this.getAll().filter((r) => fe(e, r));
547
483
  }
548
- notify(event) {
549
- notifyManager.batch(() => {
550
- this.listeners.forEach((listener) => {
551
- listener(event);
484
+ notify(e) {
485
+ m.batch(() => {
486
+ this.listeners.forEach((r) => {
487
+ r(e);
552
488
  });
553
489
  });
554
490
  }
555
491
  resumePausedMutations() {
556
- const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
557
- return notifyManager.batch(
492
+ const e = this.getAll().filter((r) => r.state.isPaused);
493
+ return m.batch(
558
494
  () => Promise.all(
559
- pausedMutations.map((mutation) => mutation.continue().catch(noop))
495
+ e.map((r) => r.continue().catch(P))
560
496
  )
561
497
  );
562
498
  }
563
- }, _mutations = new WeakMap(), _mutationId = new WeakMap(), _b);
564
- function scopeFor(mutation) {
565
- var _a2;
566
- return ((_a2 = mutation.options.scope) == null ? void 0 : _a2.id) ?? String(mutation.mutationId);
499
+ }, p = new WeakMap(), Q = new WeakMap(), xe);
500
+ function B(t) {
501
+ var e;
502
+ return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
567
503
  }
568
- function infiniteQueryBehavior(pages) {
504
+ function ar(t) {
569
505
  return {
570
- onFetch: (context, query) => {
571
- const fetchFn = async () => {
572
- var _a2, _b2, _c2, _d, _e;
573
- const options = context.options;
574
- const direction = (_c2 = (_b2 = (_a2 = context.fetchOptions) == null ? void 0 : _a2.meta) == null ? void 0 : _b2.fetchMore) == null ? void 0 : _c2.direction;
575
- const oldPages = ((_d = context.state.data) == null ? void 0 : _d.pages) || [];
576
- const oldPageParams = ((_e = context.state.data) == null ? void 0 : _e.pageParams) || [];
577
- const empty = { pages: [], pageParams: [] };
578
- let cancelled = false;
579
- const addSignalProperty = (object) => {
580
- Object.defineProperty(object, "signal", {
581
- enumerable: true,
582
- get: () => {
583
- if (context.signal.aborted) {
584
- cancelled = true;
585
- } else {
586
- context.signal.addEventListener("abort", () => {
587
- cancelled = true;
588
- });
589
- }
590
- return context.signal;
591
- }
506
+ onFetch: (e, r) => {
507
+ const a = async () => {
508
+ var re, ae, se, ne, ie;
509
+ const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
510
+ let g = !1;
511
+ const d = (b) => {
512
+ Object.defineProperty(b, "signal", {
513
+ enumerable: !0,
514
+ get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
515
+ g = !0;
516
+ }), e.signal)
592
517
  });
593
- };
594
- const queryFn = ensureQueryFn(context.options, context.fetchOptions);
595
- const fetchPage = async (data, param, previous) => {
596
- if (cancelled) {
518
+ }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
519
+ if (g)
597
520
  return Promise.reject();
598
- }
599
- if (param == null && data.pages.length) {
600
- return Promise.resolve(data);
601
- }
602
- const queryFnContext = {
603
- queryKey: context.queryKey,
604
- pageParam: param,
605
- direction: previous ? "backward" : "forward",
606
- meta: context.options.meta
521
+ if (S == null && b.pages.length)
522
+ return Promise.resolve(b);
523
+ const H = {
524
+ queryKey: e.queryKey,
525
+ pageParam: S,
526
+ direction: A ? "backward" : "forward",
527
+ meta: e.options.meta
607
528
  };
608
- addSignalProperty(queryFnContext);
609
- const page = await queryFn(
610
- queryFnContext
611
- );
612
- const { maxPages } = context.options;
613
- const addTo = previous ? addToStart : addToEnd;
529
+ d(H);
530
+ const Ke = await Ue(
531
+ H
532
+ ), { maxPages: oe } = e.options, le = A ? wt : Et;
614
533
  return {
615
- pages: addTo(data.pages, page, maxPages),
616
- pageParams: addTo(data.pageParams, param, maxPages)
534
+ pages: le(b.pages, Ke, oe),
535
+ pageParams: le(b.pageParams, S, oe)
617
536
  };
618
537
  };
619
- let result;
620
- if (direction && oldPages.length) {
621
- const previous = direction === "backward";
622
- const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
623
- const oldData = {
624
- pages: oldPages,
625
- pageParams: oldPageParams
626
- };
627
- const param = pageParamFn(options, oldData);
628
- result = await fetchPage(oldData, param, previous);
538
+ let R;
539
+ if (o && i.length) {
540
+ const b = o === "backward", S = b ? sr : ye, A = {
541
+ pages: i,
542
+ pageParams: c
543
+ }, H = S(s, A);
544
+ R = await $(A, H, b);
629
545
  } else {
630
- result = await fetchPage(
631
- empty,
632
- oldPageParams[0] ?? options.initialPageParam
546
+ R = await $(
547
+ u,
548
+ c[0] ?? s.initialPageParam
633
549
  );
634
- const remainingPages = pages ?? oldPages.length;
635
- for (let i = 1; i < remainingPages; i++) {
636
- const param = getNextPageParam(options, result);
637
- result = await fetchPage(result, param);
550
+ const b = t ?? i.length;
551
+ for (let S = 1; S < b; S++) {
552
+ const A = ye(s, R);
553
+ R = await $(R, A);
638
554
  }
639
555
  }
640
- return result;
556
+ return R;
641
557
  };
642
- if (context.options.persister) {
643
- context.fetchFn = () => {
644
- var _a2, _b2;
645
- return (_b2 = (_a2 = context.options).persister) == null ? void 0 : _b2.call(
646
- _a2,
647
- fetchFn,
648
- {
649
- queryKey: context.queryKey,
650
- meta: context.options.meta,
651
- signal: context.signal
652
- },
653
- query
654
- );
655
- };
656
- } else {
657
- context.fetchFn = fetchFn;
658
- }
558
+ e.options.persister ? e.fetchFn = () => {
559
+ var s, o;
560
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
561
+ s,
562
+ a,
563
+ {
564
+ queryKey: e.queryKey,
565
+ meta: e.options.meta,
566
+ signal: e.signal
567
+ },
568
+ r
569
+ );
570
+ } : e.fetchFn = a;
659
571
  }
660
572
  };
661
573
  }
662
- function getNextPageParam(options, { pages, pageParams }) {
663
- const lastIndex = pages.length - 1;
664
- return options.getNextPageParam(
665
- pages[lastIndex],
666
- pages,
667
- pageParams[lastIndex],
668
- pageParams
574
+ function ye(t, { pages: e, pageParams: r }) {
575
+ const a = e.length - 1;
576
+ return t.getNextPageParam(
577
+ e[a],
578
+ e,
579
+ r[a],
580
+ r
669
581
  );
670
582
  }
671
- function getPreviousPageParam(options, { pages, pageParams }) {
672
- var _a2;
673
- return (_a2 = options.getPreviousPageParam) == null ? void 0 : _a2.call(
674
- options,
675
- pages[0],
676
- pages,
677
- pageParams[0],
678
- pageParams
583
+ function sr(t, { pages: e, pageParams: r }) {
584
+ var a;
585
+ return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
586
+ t,
587
+ e[0],
588
+ e,
589
+ r[0],
590
+ r
679
591
  );
680
592
  }
681
- var QueryClient = (_c = class {
682
- constructor(config = {}) {
683
- __privateAdd(this, _queryCache);
684
- __privateAdd(this, _mutationCache);
685
- __privateAdd(this, _defaultOptions);
686
- __privateAdd(this, _queryDefaults);
687
- __privateAdd(this, _mutationDefaults);
688
- __privateAdd(this, _mountCount);
689
- __privateAdd(this, _unsubscribeFocus);
690
- __privateAdd(this, _unsubscribeOnline);
691
- __privateSet(this, _queryCache, config.queryCache || new QueryCache());
692
- __privateSet(this, _mutationCache, config.mutationCache || new MutationCache());
693
- __privateSet(this, _defaultOptions, config.defaultOptions || {});
694
- __privateSet(this, _queryDefaults, /* @__PURE__ */ new Map());
695
- __privateSet(this, _mutationDefaults, /* @__PURE__ */ new Map());
696
- __privateSet(this, _mountCount, 0);
593
+ var h, N, C, k, M, O, D, _, we, nr = (we = class {
594
+ constructor(t = {}) {
595
+ y(this, h);
596
+ y(this, N);
597
+ y(this, C);
598
+ y(this, k);
599
+ y(this, M);
600
+ y(this, O);
601
+ y(this, D);
602
+ y(this, _);
603
+ f(this, h, t.queryCache || new tr()), f(this, N, t.mutationCache || new rr()), f(this, C, t.defaultOptions || {}), f(this, k, /* @__PURE__ */ new Map()), f(this, M, /* @__PURE__ */ new Map()), f(this, O, 0);
697
604
  }
698
605
  mount() {
699
- __privateWrapper(this, _mountCount)._++;
700
- if (__privateGet(this, _mountCount) !== 1)
701
- return;
702
- __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
703
- if (focused) {
704
- await this.resumePausedMutations();
705
- __privateGet(this, _queryCache).onFocus();
706
- }
707
- }));
708
- __privateSet(this, _unsubscribeOnline, onlineManager.subscribe(async (online) => {
709
- if (online) {
710
- await this.resumePausedMutations();
711
- __privateGet(this, _queryCache).onOnline();
712
- }
713
- }));
606
+ L(this, O)._++, l(this, O) === 1 && (f(this, D, Pt.subscribe(async (t) => {
607
+ t && (await this.resumePausedMutations(), l(this, h).onFocus());
608
+ })), f(this, _, pe.subscribe(async (t) => {
609
+ t && (await this.resumePausedMutations(), l(this, h).onOnline());
610
+ })));
714
611
  }
715
612
  unmount() {
716
- var _a2, _b2;
717
- __privateWrapper(this, _mountCount)._--;
718
- if (__privateGet(this, _mountCount) !== 0)
719
- return;
720
- (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
721
- __privateSet(this, _unsubscribeFocus, void 0);
722
- (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
723
- __privateSet(this, _unsubscribeOnline, void 0);
724
- }
725
- isFetching(filters) {
726
- return __privateGet(this, _queryCache).findAll({ ...filters, fetchStatus: "fetching" }).length;
727
- }
728
- isMutating(filters) {
729
- return __privateGet(this, _mutationCache).findAll({ ...filters, status: "pending" }).length;
730
- }
731
- getQueryData(queryKey) {
732
- var _a2;
733
- const options = this.defaultQueryOptions({ queryKey });
734
- return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state.data;
735
- }
736
- ensureQueryData(options) {
737
- const cachedData = this.getQueryData(options.queryKey);
738
- if (cachedData === void 0)
739
- return this.fetchQuery(options);
740
- else {
741
- const defaultedOptions = this.defaultQueryOptions(options);
742
- const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
743
- if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) {
744
- void this.prefetchQuery(defaultedOptions);
745
- }
746
- return Promise.resolve(cachedData);
747
- }
613
+ var t, e;
614
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), f(this, D, void 0), (e = l(this, _)) == null || e.call(this), f(this, _, void 0));
748
615
  }
749
- getQueriesData(filters) {
750
- return __privateGet(this, _queryCache).findAll(filters).map(({ queryKey, state }) => {
751
- const data = state.data;
752
- return [queryKey, data];
753
- });
616
+ isFetching(t) {
617
+ return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
754
618
  }
755
- setQueryData(queryKey, updater, options) {
756
- const defaultedOptions = this.defaultQueryOptions({ queryKey });
757
- const query = __privateGet(this, _queryCache).get(
758
- defaultedOptions.queryHash
759
- );
760
- const prevData = query == null ? void 0 : query.state.data;
761
- const data = functionalUpdate(updater, prevData);
762
- if (data === void 0) {
763
- return void 0;
619
+ isMutating(t) {
620
+ return l(this, N).findAll({ ...t, status: "pending" }).length;
621
+ }
622
+ getQueryData(t) {
623
+ var r;
624
+ const e = this.defaultQueryOptions({ queryKey: t });
625
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
626
+ }
627
+ ensureQueryData(t) {
628
+ const e = this.getQueryData(t.queryKey);
629
+ if (e === void 0)
630
+ return this.fetchQuery(t);
631
+ {
632
+ const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
633
+ return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
764
634
  }
765
- return __privateGet(this, _queryCache).build(this, defaultedOptions).setData(data, { ...options, manual: true });
766
635
  }
767
- setQueriesData(filters, updater, options) {
768
- return notifyManager.batch(
769
- () => __privateGet(this, _queryCache).findAll(filters).map(({ queryKey }) => [
770
- queryKey,
771
- this.setQueryData(queryKey, updater, options)
636
+ getQueriesData(t) {
637
+ return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
638
+ const a = r.data;
639
+ return [e, a];
640
+ });
641
+ }
642
+ setQueryData(t, e, r) {
643
+ const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
644
+ a.queryHash
645
+ ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
646
+ if (i !== void 0)
647
+ return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
648
+ }
649
+ setQueriesData(t, e, r) {
650
+ return m.batch(
651
+ () => l(this, h).findAll(t).map(({ queryKey: a }) => [
652
+ a,
653
+ this.setQueryData(a, e, r)
772
654
  ])
773
655
  );
774
656
  }
775
- getQueryState(queryKey) {
776
- var _a2;
777
- const options = this.defaultQueryOptions({ queryKey });
778
- return (_a2 = __privateGet(this, _queryCache).get(options.queryHash)) == null ? void 0 : _a2.state;
657
+ getQueryState(t) {
658
+ var r;
659
+ const e = this.defaultQueryOptions({ queryKey: t });
660
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
779
661
  }
780
- removeQueries(filters) {
781
- const queryCache = __privateGet(this, _queryCache);
782
- notifyManager.batch(() => {
783
- queryCache.findAll(filters).forEach((query) => {
784
- queryCache.remove(query);
662
+ removeQueries(t) {
663
+ const e = l(this, h);
664
+ m.batch(() => {
665
+ e.findAll(t).forEach((r) => {
666
+ e.remove(r);
785
667
  });
786
668
  });
787
669
  }
788
- resetQueries(filters, options) {
789
- const queryCache = __privateGet(this, _queryCache);
790
- const refetchFilters = {
670
+ resetQueries(t, e) {
671
+ const r = l(this, h), a = {
791
672
  type: "active",
792
- ...filters
673
+ ...t
793
674
  };
794
- return notifyManager.batch(() => {
795
- queryCache.findAll(filters).forEach((query) => {
796
- query.reset();
797
- });
798
- return this.refetchQueries(refetchFilters, options);
799
- });
675
+ return m.batch(() => (r.findAll(t).forEach((s) => {
676
+ s.reset();
677
+ }), this.refetchQueries(a, e)));
800
678
  }
801
- cancelQueries(filters = {}, cancelOptions = {}) {
802
- const defaultedCancelOptions = { revert: true, ...cancelOptions };
803
- const promises = notifyManager.batch(
804
- () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
679
+ cancelQueries(t = {}, e = {}) {
680
+ const r = { revert: !0, ...e }, a = m.batch(
681
+ () => l(this, h).findAll(t).map((s) => s.cancel(r))
805
682
  );
806
- return Promise.all(promises).then(noop).catch(noop);
683
+ return Promise.all(a).then(P).catch(P);
807
684
  }
808
- invalidateQueries(filters = {}, options = {}) {
809
- return notifyManager.batch(() => {
810
- __privateGet(this, _queryCache).findAll(filters).forEach((query) => {
811
- query.invalidate();
812
- });
813
- if (filters.refetchType === "none") {
685
+ invalidateQueries(t = {}, e = {}) {
686
+ return m.batch(() => {
687
+ if (l(this, h).findAll(t).forEach((a) => {
688
+ a.invalidate();
689
+ }), t.refetchType === "none")
814
690
  return Promise.resolve();
815
- }
816
- const refetchFilters = {
817
- ...filters,
818
- type: filters.refetchType ?? filters.type ?? "active"
691
+ const r = {
692
+ ...t,
693
+ type: t.refetchType ?? t.type ?? "active"
819
694
  };
820
- return this.refetchQueries(refetchFilters, options);
695
+ return this.refetchQueries(r, e);
821
696
  });
822
697
  }
823
- refetchQueries(filters = {}, options) {
824
- const fetchOptions = {
825
- ...options,
826
- cancelRefetch: (options == null ? void 0 : options.cancelRefetch) ?? true
827
- };
828
- const promises = notifyManager.batch(
829
- () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
830
- let promise = query.fetch(void 0, fetchOptions);
831
- if (!fetchOptions.throwOnError) {
832
- promise = promise.catch(noop);
833
- }
834
- return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
698
+ refetchQueries(t = {}, e) {
699
+ const r = {
700
+ ...e,
701
+ cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
702
+ }, a = m.batch(
703
+ () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
704
+ let o = s.fetch(void 0, r);
705
+ return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
835
706
  })
836
707
  );
837
- return Promise.all(promises).then(noop);
708
+ return Promise.all(a).then(P);
838
709
  }
839
- fetchQuery(options) {
840
- const defaultedOptions = this.defaultQueryOptions(options);
841
- if (defaultedOptions.retry === void 0) {
842
- defaultedOptions.retry = false;
843
- }
844
- const query = __privateGet(this, _queryCache).build(this, defaultedOptions);
845
- return query.isStaleByTime(
846
- resolveStaleTime(defaultedOptions.staleTime, query)
847
- ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
710
+ fetchQuery(t) {
711
+ const e = this.defaultQueryOptions(t);
712
+ e.retry === void 0 && (e.retry = !1);
713
+ const r = l(this, h).build(this, e);
714
+ return r.isStaleByTime(
715
+ me(e.staleTime, r)
716
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
848
717
  }
849
- prefetchQuery(options) {
850
- return this.fetchQuery(options).then(noop).catch(noop);
718
+ prefetchQuery(t) {
719
+ return this.fetchQuery(t).then(P).catch(P);
851
720
  }
852
- fetchInfiniteQuery(options) {
853
- options.behavior = infiniteQueryBehavior(options.pages);
854
- return this.fetchQuery(options);
721
+ fetchInfiniteQuery(t) {
722
+ return t.behavior = ar(t.pages), this.fetchQuery(t);
855
723
  }
856
- prefetchInfiniteQuery(options) {
857
- return this.fetchInfiniteQuery(options).then(noop).catch(noop);
724
+ prefetchInfiniteQuery(t) {
725
+ return this.fetchInfiniteQuery(t).then(P).catch(P);
858
726
  }
859
727
  resumePausedMutations() {
860
- if (onlineManager.isOnline()) {
861
- return __privateGet(this, _mutationCache).resumePausedMutations();
862
- }
863
- return Promise.resolve();
728
+ return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
864
729
  }
865
730
  getQueryCache() {
866
- return __privateGet(this, _queryCache);
731
+ return l(this, h);
867
732
  }
868
733
  getMutationCache() {
869
- return __privateGet(this, _mutationCache);
734
+ return l(this, N);
870
735
  }
871
736
  getDefaultOptions() {
872
- return __privateGet(this, _defaultOptions);
737
+ return l(this, C);
873
738
  }
874
- setDefaultOptions(options) {
875
- __privateSet(this, _defaultOptions, options);
739
+ setDefaultOptions(t) {
740
+ f(this, C, t);
876
741
  }
877
- setQueryDefaults(queryKey, options) {
878
- __privateGet(this, _queryDefaults).set(hashKey(queryKey), {
879
- queryKey,
880
- defaultOptions: options
742
+ setQueryDefaults(t, e) {
743
+ l(this, k).set(ge(t), {
744
+ queryKey: t,
745
+ defaultOptions: e
881
746
  });
882
747
  }
883
- getQueryDefaults(queryKey) {
884
- const defaults = [...__privateGet(this, _queryDefaults).values()];
885
- let result = {};
886
- defaults.forEach((queryDefault) => {
887
- if (partialMatchKey(queryKey, queryDefault.queryKey)) {
888
- result = { ...result, ...queryDefault.defaultOptions };
889
- }
890
- });
891
- return result;
892
- }
893
- setMutationDefaults(mutationKey, options) {
894
- __privateGet(this, _mutationDefaults).set(hashKey(mutationKey), {
895
- mutationKey,
896
- defaultOptions: options
748
+ getQueryDefaults(t) {
749
+ const e = [...l(this, k).values()];
750
+ let r = {};
751
+ return e.forEach((a) => {
752
+ ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
753
+ }), r;
754
+ }
755
+ setMutationDefaults(t, e) {
756
+ l(this, M).set(ge(t), {
757
+ mutationKey: t,
758
+ defaultOptions: e
897
759
  });
898
760
  }
899
- getMutationDefaults(mutationKey) {
900
- const defaults = [...__privateGet(this, _mutationDefaults).values()];
901
- let result = {};
902
- defaults.forEach((queryDefault) => {
903
- if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
904
- result = { ...result, ...queryDefault.defaultOptions };
905
- }
906
- });
907
- return result;
908
- }
909
- defaultQueryOptions(options) {
910
- if (options._defaulted) {
911
- return options;
912
- }
913
- const defaultedOptions = {
914
- ...__privateGet(this, _defaultOptions).queries,
915
- ...this.getQueryDefaults(options.queryKey),
916
- ...options,
917
- _defaulted: true
761
+ getMutationDefaults(t) {
762
+ const e = [...l(this, M).values()];
763
+ let r = {};
764
+ return e.forEach((a) => {
765
+ ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
766
+ }), r;
767
+ }
768
+ defaultQueryOptions(t) {
769
+ if (t._defaulted)
770
+ return t;
771
+ const e = {
772
+ ...l(this, C).queries,
773
+ ...this.getQueryDefaults(t.queryKey),
774
+ ...t,
775
+ _defaulted: !0
918
776
  };
919
- if (!defaultedOptions.queryHash) {
920
- defaultedOptions.queryHash = hashQueryKeyByOptions(
921
- defaultedOptions.queryKey,
922
- defaultedOptions
923
- );
924
- }
925
- if (defaultedOptions.refetchOnReconnect === void 0) {
926
- defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
927
- }
928
- if (defaultedOptions.throwOnError === void 0) {
929
- defaultedOptions.throwOnError = !!defaultedOptions.suspense;
930
- }
931
- if (!defaultedOptions.networkMode && defaultedOptions.persister) {
932
- defaultedOptions.networkMode = "offlineFirst";
933
- }
934
- if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === skipToken) {
935
- defaultedOptions.enabled = false;
936
- }
937
- return defaultedOptions;
938
- }
939
- defaultMutationOptions(options) {
940
- if (options == null ? void 0 : options._defaulted) {
941
- return options;
942
- }
943
- return {
944
- ...__privateGet(this, _defaultOptions).mutations,
945
- ...(options == null ? void 0 : options.mutationKey) && this.getMutationDefaults(options.mutationKey),
946
- ...options,
947
- _defaulted: true
777
+ return e.queryHash || (e.queryHash = Ae(
778
+ e.queryKey,
779
+ e
780
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === St && (e.enabled = !1), e;
781
+ }
782
+ defaultMutationOptions(t) {
783
+ return t != null && t._defaulted ? t : {
784
+ ...l(this, C).mutations,
785
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
786
+ ...t,
787
+ _defaulted: !0
948
788
  };
949
789
  }
950
790
  clear() {
951
- __privateGet(this, _queryCache).clear();
952
- __privateGet(this, _mutationCache).clear();
791
+ l(this, h).clear(), l(this, N).clear();
953
792
  }
954
- }, _queryCache = new WeakMap(), _mutationCache = new WeakMap(), _defaultOptions = new WeakMap(), _queryDefaults = new WeakMap(), _mutationDefaults = new WeakMap(), _mountCount = new WeakMap(), _unsubscribeFocus = new WeakMap(), _unsubscribeOnline = new WeakMap(), _c);
955
- const ErrorBoundaryContext = createContext(null);
956
- const initialState = {
957
- didCatch: false,
793
+ }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
794
+ const ir = Ne(null), Y = {
795
+ didCatch: !1,
958
796
  error: null
959
797
  };
960
- class ErrorBoundary extends Component {
961
- constructor(props) {
962
- super(props);
963
- this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
964
- this.state = initialState;
798
+ class or extends dt {
799
+ constructor(e) {
800
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
965
801
  }
966
- static getDerivedStateFromError(error) {
802
+ static getDerivedStateFromError(e) {
967
803
  return {
968
- didCatch: true,
969
- error
804
+ didCatch: !0,
805
+ error: e
970
806
  };
971
807
  }
972
808
  resetErrorBoundary() {
973
809
  const {
974
- error
810
+ error: e
975
811
  } = this.state;
976
- if (error !== null) {
977
- var _this$props$onReset, _this$props;
978
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
979
- args[_key] = arguments[_key];
980
- }
981
- (_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
982
- args,
812
+ if (e !== null) {
813
+ for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
814
+ o[i] = arguments[i];
815
+ (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
816
+ args: o,
983
817
  reason: "imperative-api"
984
- });
985
- this.setState(initialState);
818
+ }), this.setState(Y);
986
819
  }
987
820
  }
988
- componentDidCatch(error, info) {
989
- var _this$props$onError, _this$props2;
990
- (_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);
821
+ componentDidCatch(e, r) {
822
+ var a, s;
823
+ (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
991
824
  }
992
- componentDidUpdate(prevProps, prevState) {
825
+ componentDidUpdate(e, r) {
993
826
  const {
994
- didCatch
995
- } = this.state;
996
- const {
997
- resetKeys
827
+ didCatch: a
828
+ } = this.state, {
829
+ resetKeys: s
998
830
  } = this.props;
999
- if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
1000
- var _this$props$onReset2, _this$props3;
1001
- (_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {
1002
- next: resetKeys,
1003
- prev: prevProps.resetKeys,
831
+ if (a && r.error !== null && lr(e.resetKeys, s)) {
832
+ var o, i;
833
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
834
+ next: s,
835
+ prev: e.resetKeys,
1004
836
  reason: "keys"
1005
- });
1006
- this.setState(initialState);
837
+ }), this.setState(Y);
1007
838
  }
1008
839
  }
1009
840
  render() {
1010
841
  const {
1011
- children,
1012
- fallbackRender,
1013
- FallbackComponent,
1014
- fallback
1015
- } = this.props;
1016
- const {
1017
- didCatch,
1018
- error
842
+ children: e,
843
+ fallbackRender: r,
844
+ FallbackComponent: a,
845
+ fallback: s
846
+ } = this.props, {
847
+ didCatch: o,
848
+ error: i
1019
849
  } = this.state;
1020
- let childToRender = children;
1021
- if (didCatch) {
1022
- const props = {
1023
- error,
850
+ let c = e;
851
+ if (o) {
852
+ const u = {
853
+ error: i,
1024
854
  resetErrorBoundary: this.resetErrorBoundary
1025
855
  };
1026
- if (typeof fallbackRender === "function") {
1027
- childToRender = fallbackRender(props);
1028
- } else if (FallbackComponent) {
1029
- childToRender = createElement(FallbackComponent, props);
1030
- } else if (fallback === null || isValidElement(fallback)) {
1031
- childToRender = fallback;
1032
- } else {
1033
- throw error;
1034
- }
856
+ if (typeof r == "function")
857
+ c = r(u);
858
+ else if (a)
859
+ c = he(a, u);
860
+ else if (s === null || ft(s))
861
+ c = s;
862
+ else
863
+ throw i;
1035
864
  }
1036
- return createElement(ErrorBoundaryContext.Provider, {
865
+ return he(ir.Provider, {
1037
866
  value: {
1038
- didCatch,
1039
- error,
867
+ didCatch: o,
868
+ error: i,
1040
869
  resetErrorBoundary: this.resetErrorBoundary
1041
870
  }
1042
- }, childToRender);
871
+ }, c);
1043
872
  }
1044
873
  }
1045
- function hasArrayChanged() {
1046
- let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
1047
- let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1048
- return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));
874
+ function lr() {
875
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
876
+ return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
1049
877
  }
1050
- const isNavigationPlugin = (obj) => "getRoutes" in obj && typeof obj.getRoutes === "function";
1051
- const needsInitialization = (obj) => "initialize" in obj && typeof obj.initialize === "function";
1052
- const hasHead = (obj) => "getHead" in obj && typeof obj.getHead === "function";
1053
- const isApiIdentityPlugin = (obj) => "getIdentities" in obj && typeof obj.getIdentities === "function";
1054
- const queryClient = new QueryClient();
1055
- class DevPortalContext {
1056
- constructor(config) {
1057
- __publicField(this, "plugins", []);
1058
- __publicField(this, "navigation");
1059
- __publicField(this, "meta");
1060
- __publicField(this, "page");
1061
- __publicField(this, "authentication");
1062
- __publicField(this, "navigationPlugins");
1063
- __publicField(this, "initialize", async () => {
878
+ const cr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", ur = (t) => "initialize" in t && typeof t.initialize == "function", hr = (t) => "getHead" in t && typeof t.getHead == "function", dr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new nr();
879
+ class fr {
880
+ constructor(e) {
881
+ v(this, "plugins", []);
882
+ v(this, "navigation");
883
+ v(this, "meta");
884
+ v(this, "page");
885
+ v(this, "authentication");
886
+ v(this, "navigationPlugins");
887
+ v(this, "initialize", async () => {
1064
888
  await Promise.all([
1065
- this.plugins.filter(needsInitialization).map((plugin) => {
1066
- var _a2;
1067
- return (_a2 = plugin.initialize) == null ? void 0 : _a2.call(plugin, this);
889
+ this.plugins.filter(ur).map((e) => {
890
+ var r;
891
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
1068
892
  })
1069
893
  ]);
1070
894
  });
1071
- __publicField(this, "invalidateCache", async (key) => {
1072
- await queryClient.invalidateQueries({ queryKey: key });
1073
- });
1074
- __publicField(this, "getApiIdentities", async () => {
1075
- const keys = await Promise.all(
1076
- this.plugins.filter(isApiIdentityPlugin).map((plugin) => plugin.getIdentities(this))
1077
- );
1078
- return keys.flat();
895
+ v(this, "invalidateCache", async (e) => {
896
+ await Ie.invalidateQueries({ queryKey: e });
1079
897
  });
1080
- __publicField(this, "getNavigation", async (path) => {
1081
- const navigations = await Promise.all(
1082
- this.navigationPlugins.map(
1083
- async (plugin) => {
1084
- var _a2;
1085
- return (_a2 = plugin.getNavigation) == null ? void 0 : _a2.call(plugin, path);
1086
- }
1087
- )
1088
- );
1089
- return navigations.flatMap((nav) => nav ?? []);
1090
- });
1091
- __publicField(this, "signRequest", async (request) => {
1092
- if (!this.authentication) {
898
+ v(this, "getApiIdentities", async () => (await Promise.all(
899
+ this.plugins.filter(dr).map((r) => r.getIdentities(this))
900
+ )).flat());
901
+ v(this, "getNavigation", async (e) => (await Promise.all(
902
+ this.navigationPlugins.map(
903
+ async (a) => {
904
+ var s;
905
+ return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
906
+ }
907
+ )
908
+ )).flatMap((a) => a ?? []));
909
+ v(this, "signRequest", async (e) => {
910
+ if (!this.authentication)
1093
911
  throw new Error("No authentication provider configured");
1094
- }
1095
- const accessToken = await this.authentication.getAccessToken();
1096
- request.headers.set("Authorization", `Bearer ${accessToken}`);
1097
- return request;
912
+ const r = await this.authentication.getAccessToken();
913
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
1098
914
  });
1099
- this.plugins = config.plugins ?? [];
1100
- this.navigation = config.navigation;
1101
- this.navigationPlugins = this.plugins.filter(isNavigationPlugin);
1102
- this.authentication = config.authentication;
1103
- this.meta = config.metadata;
1104
- this.page = config.page;
915
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(cr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
1105
916
  }
1106
917
  }
1107
- function TopLevelError({ error, resetErrorBoundary }) {
1108
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorAlert, { error });
918
+ function pr({ error: t, resetErrorBoundary: e }) {
919
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
1109
920
  }
1110
- const TopNavigation = () => {
1111
- const { navigation } = useDevPortal();
1112
- if (navigation.length <= 1) {
1113
- return null;
1114
- }
1115
- return /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "flex flex-row items-center gap-8", children: navigation.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1116
- NavLink,
921
+ const mr = () => {
922
+ const { navigation: t } = Z();
923
+ return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
924
+ J,
1117
925
  {
1118
- className: ({ isActive }) => cx(
926
+ className: ({ isActive: r }) => Xe(
1119
927
  "block py-3.5 font-medium -mb-px border-b-2",
1120
- isActive ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
928
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1121
929
  ),
1122
- to: item.path,
1123
- children: item.label
930
+ to: e.path,
931
+ children: e.label
1124
932
  }
1125
- ) }, item.label)) }) });
1126
- };
1127
- const Header = memo(function HeaderInner() {
1128
- const [isDark, toggleTheme] = useTheme();
1129
- const { isAuthenticated, profile, isAuthEnabled, login, logout } = useAuth();
1130
- const { page } = useDevPortal();
1131
- const ThemeIcon = isDark ? MoonStar : Sun;
1132
- return /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1133
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
1134
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3.5", children: [
1135
- (page == null ? void 0 : page.logo) && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: page.logo, alt: page.pageTitle, className: "h-10" }),
1136
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: page == null ? void 0 : page.pageTitle })
933
+ ) }, e.label)) }) });
934
+ }, qe = Ce(function() {
935
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), g = e ? _t : Tt;
936
+ return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
937
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
938
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
939
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
940
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
1137
941
  ] }),
1138
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1139
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full max-w-prose" }),
1140
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
1141
- isAuthEnabled && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: isAuthenticated ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
942
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
943
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
944
+ /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
945
+ o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
1142
946
  "button",
1143
947
  {
1144
948
  type: "button",
1145
949
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
1146
- onClick: logout,
950
+ onClick: c,
1147
951
  children: [
1148
952
  "Logout ",
1149
- (profile == null ? void 0 : profile.email) ? `(${profile.email})` : null
953
+ s != null && s.email ? `(${s.email})` : null
1150
954
  ]
1151
955
  }
1152
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
956
+ ) : /* @__PURE__ */ n.jsx(
1153
957
  "button",
1154
958
  {
1155
959
  type: "button",
1156
960
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
1157
- onClick: login,
961
+ onClick: i,
1158
962
  children: "Login"
1159
963
  }
1160
964
  ) }),
1161
- /* @__PURE__ */ jsxRuntimeExports.jsx(
965
+ /* @__PURE__ */ n.jsx(
1162
966
  "button",
1163
967
  {
1164
968
  type: "button",
1165
- "aria-label": isDark ? "Switch to light mode" : "Switch to dark mode",
969
+ "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
1166
970
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
1167
- onClick: toggleTheme,
1168
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeIcon, { size: 18 })
971
+ onClick: r,
972
+ children: /* @__PURE__ */ n.jsx(g, { size: 18 })
1169
973
  }
1170
974
  )
1171
975
  ] })
1172
976
  ] })
1173
977
  ] }),
1174
- /* @__PURE__ */ jsxRuntimeExports.jsx(TopNavigation, {})
978
+ /* @__PURE__ */ n.jsx(mr, {})
1175
979
  ] }) });
1176
- });
1177
- const DEFAULT_COMPONENTS = {
1178
- Header
1179
- };
1180
- const ComponentsContext = createContext(DEFAULT_COMPONENTS);
1181
- const ComponentsProvider = ComponentsContext.Provider;
1182
- const DevPortalInner = ({
1183
- children,
1184
- ...props
980
+ }), He = {
981
+ Header: qe
982
+ }, gr = Ne(He), vr = gr.Provider, yr = ({
983
+ children: t,
984
+ ...e
1185
985
  }) => {
1186
- var _a2, _b2;
1187
- const components = useMemo(
1188
- () => ({ ...DEFAULT_COMPONENTS, ...props.overrides }),
1189
- [props.overrides]
1190
- );
1191
- const mdxComponents = useMemo(
986
+ var i, c;
987
+ const r = V(
988
+ () => ({ ...He, ...e.overrides }),
989
+ [e.overrides]
990
+ ), a = V(
1192
991
  () => {
1193
- var _a3;
1194
- return { ...MdxComponents, ...(_a3 = props.mdx) == null ? void 0 : _a3.components };
992
+ var u;
993
+ return { ...Ge, ...(u = e.mdx) == null ? void 0 : u.components };
1195
994
  },
1196
- [(_a2 = props.mdx) == null ? void 0 : _a2.components]
1197
- );
1198
- const devPortalContext = useMemo(() => new DevPortalContext(props), [props]);
1199
- useEffect(() => {
1200
- void devPortalContext.initialize();
1201
- }, [devPortalContext]);
1202
- const heads = (_b2 = props.plugins) == null ? void 0 : _b2.filter(hasHead).map((plugin, i) => {
1203
- var _a3;
1204
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Fragment, { children: (_a3 = plugin.getHead) == null ? void 0 : _a3.call(plugin) }, i);
995
+ [(i = e.mdx) == null ? void 0 : i.components]
996
+ ), s = V(() => new fr(e), [e]);
997
+ I(() => {
998
+ s.initialize();
999
+ }, [s]);
1000
+ const o = (c = e.plugins) == null ? void 0 : c.filter(hr).map((u, g) => {
1001
+ var d;
1002
+ return /* @__PURE__ */ n.jsx(pt, { children: (d = u.getHead) == null ? void 0 : d.call(u) }, g);
1205
1003
  });
1206
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(QueryClientProvider, { client: queryClient, children: [
1207
- /* @__PURE__ */ jsxRuntimeExports.jsx(Helmet, { children: heads }),
1208
- /* @__PURE__ */ jsxRuntimeExports.jsx(DevPortalProvider, { value: devPortalContext, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MDXProvider, { components: mdxComponents, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentsProvider, { value: components, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ViewportAnchorProvider, { children }) }) }) }) })
1004
+ return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1005
+ /* @__PURE__ */ n.jsx(je, { children: o }),
1006
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(vr, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1209
1007
  ] });
1210
- };
1211
- const Inner = memo(DevPortalInner);
1212
- const DevPortal$1 = (props) => {
1213
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { FallbackComponent: TopLevelError, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Inner, { ...props }) });
1214
- };
1215
- DevPortal$1.displayName = "DevPortal";
1216
- const useScrollToAnchor = () => {
1217
- const location = useLocation();
1218
- const { setActiveAnchor } = useViewportAnchor();
1219
- useEffect(() => {
1220
- if (!location.hash) return;
1221
- const hash = location.hash.split("/")[0].slice(1);
1222
- const element = document.getElementById(decodeURIComponent(hash));
1223
- if (element) {
1008
+ }, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
1009
+ Le.displayName = "DevPortal";
1010
+ const xr = () => {
1011
+ const t = T(), { setActiveAnchor: e } = W();
1012
+ I(() => {
1013
+ if (!t.hash) return;
1014
+ const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
1015
+ if (a) {
1224
1016
  requestAnimationFrame(() => {
1225
- element.scrollIntoView();
1226
- requestIdleCallback(() => setActiveAnchor(hash));
1017
+ a.scrollIntoView(), requestIdleCallback(() => e(r));
1227
1018
  });
1228
1019
  return;
1229
1020
  }
1230
- const observer = new MutationObserver((_mutations2, obs) => {
1231
- const element2 = document.getElementById(decodeURIComponent(hash));
1232
- if (!element2) return;
1233
- element2.scrollIntoView();
1234
- requestIdleCallback(() => setActiveAnchor(hash));
1235
- obs.disconnect();
1021
+ const s = new MutationObserver((o, i) => {
1022
+ const c = document.getElementById(decodeURIComponent(r));
1023
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
1236
1024
  });
1237
- observer.observe(document.body, { childList: true, subtree: true });
1238
- return () => observer.disconnect();
1239
- }, [location.hash, setActiveAnchor]);
1240
- };
1241
- const useScrollToTop = () => {
1242
- const location = useLocation();
1243
- const previousPath = useRef(location.pathname);
1244
- useEffect(() => {
1245
- if (previousPath.current === location.pathname) return;
1246
- window.scrollTo(0, 0);
1247
- previousPath.current = location.pathname;
1248
- }, [location.pathname]);
1249
- };
1250
- const useNavigationCollapsibleState = ({
1251
- item,
1252
- defaultOpen,
1253
- path
1025
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
1026
+ }, [t.hash, e]);
1027
+ }, wr = () => {
1028
+ const t = T(), e = K(t.pathname);
1029
+ I(() => {
1030
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1031
+ }, [t.pathname]);
1032
+ }, Be = ({
1033
+ item: t,
1034
+ defaultOpen: e,
1035
+ path: r
1254
1036
  }) => {
1255
- const [isOpen, setIsOpen] = useState(defaultOpen);
1256
- const location = useLocation();
1257
- const previousLocationPath = useRef(location.pathname);
1258
- useEffect(() => {
1259
- if (!isOpen && previousLocationPath.current !== location.pathname) {
1260
- setIsOpen(checkHasActiveItem(item, location.pathname, path));
1261
- }
1262
- previousLocationPath.current = location.pathname;
1263
- }, [isOpen, item, path, location.pathname]);
1264
- return [isOpen, setIsOpen];
1265
- };
1266
- const navigationListItem = cva(
1037
+ const [a, s] = mt(e), o = T(), i = K(o.pathname);
1038
+ return I(() => {
1039
+ !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1040
+ }, [a, t, r, o.pathname]), [a, s];
1041
+ }, z = tt(
1267
1042
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1268
1043
  {
1269
1044
  variants: {
@@ -1277,135 +1052,126 @@ const navigationListItem = cva(
1277
1052
  }
1278
1053
  }
1279
1054
  }
1280
- );
1281
- const DATA_ANCHOR_ATTR = "data-anchor";
1282
- const SideNavigationItem = ({
1283
- category,
1284
- item,
1285
- activeAnchor,
1286
- currentTopNavItem,
1287
- basePath = ""
1055
+ ), Er = "data-anchor", ze = ({
1056
+ category: t,
1057
+ item: e,
1058
+ activeAnchor: r,
1059
+ currentTopNavItem: a,
1060
+ basePath: s = ""
1288
1061
  }) => {
1289
- const currentPath = isPathItem(item) ? joinPath(basePath, item.path) : "";
1290
- const location = useLocation();
1291
- const [isOpen, setIsOpen] = useNavigationCollapsibleState({
1292
- item,
1293
- path: currentPath,
1294
- defaultOpen: () => checkHasActiveItem(item, location.pathname, currentPath)
1062
+ const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
1063
+ item: e,
1064
+ path: o,
1065
+ defaultOpen: () => ee(e, i.pathname, o)
1295
1066
  });
1296
- if (isLinkItem(item)) {
1297
- const classes = cn(
1067
+ if (Mt(e)) {
1068
+ const d = F(
1298
1069
  "flex items-center gap-2",
1299
- navigationListItem({
1300
- isActive: item.href === location.pathname
1070
+ z({
1071
+ isActive: e.href === i.pathname
1301
1072
  })
1302
1073
  );
1303
- return item.href.startsWith("http") ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
1074
+ return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
1304
1075
  "a",
1305
1076
  {
1306
- className: classes,
1307
- href: item.href,
1077
+ className: d,
1078
+ href: e.href,
1308
1079
  target: "_blank",
1309
1080
  rel: "noopener noreferrer",
1310
1081
  children: [
1311
- item.label,
1312
- /* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { size: 14 })
1082
+ e.label,
1083
+ /* @__PURE__ */ n.jsx(Dt, { size: 14 })
1313
1084
  ]
1314
1085
  }
1315
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { className: classes, to: item.href, children: item.label });
1086
+ ) : /* @__PURE__ */ n.jsx(J, { className: d, to: e.href, children: e.label });
1316
1087
  }
1317
- const linkContent = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between w-full", children: [
1318
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1319
- item.icon,
1320
- typeof item.label !== "string" ? item.label : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "truncate", children: item.label })
1088
+ const g = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1089
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1090
+ e.icon,
1091
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
1321
1092
  ] }),
1322
- item.children && /* @__PURE__ */ jsxRuntimeExports.jsx(
1323
- ChevronRight,
1093
+ e.children && /* @__PURE__ */ n.jsx(
1094
+ _e,
1324
1095
  {
1325
1096
  size: 16,
1326
1097
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
1327
1098
  }
1328
1099
  )
1329
1100
  ] });
1330
- return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { title: typeof item.label === "string" ? item.label : item.title, children: item.children ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
1331
- Root,
1101
+ return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
1102
+ Re,
1332
1103
  {
1333
- open: isOpen,
1334
- onOpenChange: () => setIsOpen((prev) => !prev),
1104
+ open: c,
1105
+ onOpenChange: () => u((d) => !d),
1335
1106
  className: "flex flex-col",
1336
1107
  children: [
1337
- /* @__PURE__ */ jsxRuntimeExports.jsx(
1338
- Trigger,
1108
+ /* @__PURE__ */ n.jsx(
1109
+ ke,
1339
1110
  {
1340
- className: cn(
1111
+ className: F(
1341
1112
  "group text-start",
1342
- navigationListItem({ isActive: false })
1113
+ z({ isActive: !1 })
1343
1114
  ),
1344
- children: linkContent
1115
+ children: g
1345
1116
  }
1346
1117
  ),
1347
- /* @__PURE__ */ jsxRuntimeExports.jsx(Content, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: item.children.map((child) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1348
- SideNavigationItem,
1118
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
1119
+ ze,
1349
1120
  {
1350
- category,
1351
- item: child,
1352
- activeAnchor,
1353
- currentTopNavItem,
1354
- basePath: currentPath
1121
+ category: t,
1122
+ item: d,
1123
+ activeAnchor: r,
1124
+ currentTopNavItem: a,
1125
+ basePath: o
1355
1126
  },
1356
- isPathItem(child) ? child.path : child.href
1127
+ X(d) ? d.path : d.href
1357
1128
  )) }) })
1358
1129
  ]
1359
1130
  }
1360
- ) : item.path.startsWith("#") ? /* @__PURE__ */ jsxRuntimeExports.jsx(
1361
- AnchorLink,
1131
+ ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
1132
+ ct,
1362
1133
  {
1363
- to: item.path,
1364
- ...{ [DATA_ANCHOR_ATTR]: item.path },
1365
- className: navigationListItem({
1366
- isActive: item.path.slice(1) === activeAnchor,
1367
- isMuted: item.muted
1134
+ to: e.path,
1135
+ [Er]: e.path,
1136
+ className: z({
1137
+ isActive: e.path.slice(1) === r,
1138
+ isMuted: e.muted
1368
1139
  }),
1369
- children: linkContent
1140
+ children: g
1370
1141
  }
1371
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
1372
- NavLink,
1142
+ ) : /* @__PURE__ */ n.jsx(
1143
+ J,
1373
1144
  {
1374
- className: ({ isActive }) => navigationListItem({ isActive }),
1375
- to: currentPath,
1376
- children: linkContent
1145
+ className: ({ isActive: d }) => z({ isActive: d }),
1146
+ to: o,
1147
+ children: g
1377
1148
  }
1378
1149
  ) });
1379
- };
1380
- const SideNavigationCategory = ({
1381
- category
1150
+ }, Pr = ({
1151
+ category: t
1382
1152
  }) => {
1383
- const { activeAnchor } = useViewportAnchor();
1384
- const navItem = useTopNavigationItem();
1385
- const location = useLocation();
1386
- const isCollapsible = category.collapsible ?? true;
1387
- const [isOpen, setIsOpen] = useNavigationCollapsibleState({
1388
- item: category,
1389
- path: (navItem == null ? void 0 : navItem.path) ?? "",
1390
- defaultOpen: () => !isCollapsible || category.expanded || checkHasActiveItem(category, location.pathname, (navItem == null ? void 0 : navItem.path) ?? "")
1153
+ const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
1154
+ item: t,
1155
+ path: (r == null ? void 0 : r.path) ?? "",
1156
+ defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
1391
1157
  });
1392
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1393
- Root,
1158
+ return /* @__PURE__ */ n.jsxs(
1159
+ Re,
1394
1160
  {
1395
- open: isOpen,
1396
- onOpenChange: () => setIsOpen((prev) => !prev),
1161
+ open: o,
1162
+ onOpenChange: () => i((c) => !c),
1397
1163
  children: [
1398
- category.label.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger, { asChild: isCollapsible, disabled: !isCollapsible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1164
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
1399
1165
  "h5",
1400
1166
  {
1401
- className: cn(
1167
+ className: F(
1402
1168
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
1403
- isCollapsible ? "hover:bg-accent" : "cursor-auto"
1169
+ s ? "hover:bg-accent" : "cursor-auto"
1404
1170
  ),
1405
1171
  children: [
1406
- category.label,
1407
- isCollapsible && /* @__PURE__ */ jsxRuntimeExports.jsx(
1408
- ChevronRight,
1172
+ t.label,
1173
+ s && /* @__PURE__ */ n.jsx(
1174
+ _e,
1409
1175
  {
1410
1176
  className: "group-data-[state=open]:rotate-90 transition",
1411
1177
  size: 16
@@ -1414,108 +1180,88 @@ const SideNavigationCategory = ({
1414
1180
  ]
1415
1181
  }
1416
1182
  ) }) : "Endpoints",
1417
- /* @__PURE__ */ jsxRuntimeExports.jsx(Content, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: category.children.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1418
- SideNavigationItem,
1183
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ n.jsx(
1184
+ ze,
1419
1185
  {
1420
- category,
1421
- item,
1422
- activeAnchor,
1423
- currentTopNavItem: navItem,
1424
- basePath: joinPath(navItem == null ? void 0 : navItem.path, category.path)
1186
+ category: t,
1187
+ item: c,
1188
+ activeAnchor: e,
1189
+ currentTopNavItem: r,
1190
+ basePath: De(r == null ? void 0 : r.path, t.path)
1425
1191
  },
1426
- isPathItem(item) ? item.path + item.label : item.href
1192
+ X(c) ? c.path + c.label : c.href
1427
1193
  )) }) })
1428
1194
  ]
1429
1195
  },
1430
- category.label
1196
+ t.label
1431
1197
  );
1432
- };
1433
- const SideNavigationWrapper = forwardRef(function SideNavigation({ children, className, pushMainContent }, ref) {
1434
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
1198
+ }, jr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
1199
+ return /* @__PURE__ */ n.jsx(
1435
1200
  "nav",
1436
1201
  {
1437
- "data-navigation": String(pushMainContent),
1438
- className: cn(
1202
+ "data-navigation": String(a),
1203
+ className: F(
1439
1204
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1440
- className
1205
+ r
1441
1206
  ),
1442
- ref,
1443
- children
1207
+ ref: s,
1208
+ children: e
1444
1209
  }
1445
1210
  );
1446
- });
1447
- const SideNavigation2 = () => {
1448
- const navRef = useRef(null);
1449
- const navigation = useNavigation();
1450
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
1451
- SideNavigationWrapper,
1211
+ }), Sr = () => {
1212
+ const t = K(null), e = At();
1213
+ return /* @__PURE__ */ n.jsx(
1214
+ jr,
1452
1215
  {
1453
- ref: navRef,
1454
- pushMainContent: navigation.data.items.length > 0,
1455
- children: navigation.data.items.map((category) => /* @__PURE__ */ jsxRuntimeExports.jsx(SideNavigationCategory, { category }, category.label))
1216
+ ref: t,
1217
+ pushMainContent: e.data.items.length > 0,
1218
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Pr, { category: r }, r.label))
1456
1219
  }
1457
1220
  );
1458
- };
1459
- const Layout$1 = ({ children }) => {
1460
- const location = useLocation();
1461
- const { setActiveAnchor } = useViewportAnchor();
1462
- const { meta } = useDevPortal();
1463
- useScrollToAnchor();
1464
- useScrollToTop();
1465
- const previousLocationPath = useRef(location.pathname);
1466
- useEffect(() => {
1467
- if (location.pathname !== previousLocationPath.current) {
1468
- setActiveAnchor("");
1469
- }
1470
- previousLocationPath.current = location.pathname;
1471
- }, [location.pathname, setActiveAnchor]);
1472
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1473
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Helmet, { titleTemplate: meta == null ? void 0 : meta.title, children: [
1474
- (meta == null ? void 0 : meta.description) && /* @__PURE__ */ jsxRuntimeExports.jsx("meta", { name: "description", content: meta.description }),
1475
- (meta == null ? void 0 : meta.favicon) && /* @__PURE__ */ jsxRuntimeExports.jsx("link", { rel: "icon", href: meta.favicon })
1221
+ }, Nr = ({ children: t }) => {
1222
+ const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1223
+ xr(), wr();
1224
+ const s = K(e.pathname);
1225
+ return I(() => {
1226
+ e.pathname !== s.current && r(""), s.current = e.pathname;
1227
+ }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1228
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
1229
+ (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
1230
+ (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
1476
1231
  ] }),
1477
- /* @__PURE__ */ jsxRuntimeExports.jsx(Header, {}),
1478
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
1479
- Suspense,
1232
+ /* @__PURE__ */ n.jsx(qe, {}),
1233
+ /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
1234
+ vt,
1480
1235
  {
1481
- fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner, {}) }),
1236
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(kt, {}) }),
1482
1237
  children: [
1483
- /* @__PURE__ */ jsxRuntimeExports.jsx(SideNavigation2, {}),
1484
- /* @__PURE__ */ jsxRuntimeExports.jsx(
1238
+ /* @__PURE__ */ n.jsx(Sr, {}),
1239
+ /* @__PURE__ */ n.jsx(
1485
1240
  "main",
1486
1241
  {
1487
- className: cn(
1242
+ className: F(
1488
1243
  "dark:border-white/10 translate-x-0 h-full",
1489
1244
  "lg:overflow-visible",
1490
1245
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1491
1246
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1492
1247
  ),
1493
- children: children ?? /* @__PURE__ */ jsxRuntimeExports.jsx(Outlet, {})
1248
+ children: t ?? /* @__PURE__ */ n.jsx(ot, {})
1494
1249
  }
1495
1250
  )
1496
1251
  ]
1497
1252
  }
1498
1253
  ) })
1499
1254
  ] });
1500
- };
1501
- const useMDXComponents = useMDXComponents$1;
1502
- const Callout = Callout$1;
1503
- const DevPortal = DevPortal$1;
1504
- const Layout = Layout$1;
1505
- const Link = Link$1;
1506
- const RouterError = RouterError$1;
1507
- const ServerError = ServerError$1;
1508
- const Bootstrap = Bootstrap$1;
1509
- const BootstrapStatic = BootstrapStatic$1;
1255
+ }, qr = ut, Hr = rt, Lr = Le, Br = Nr, zr = at, Ur = nt, Kr = Ft, $r = Zt, Vr = er;
1510
1256
  export {
1511
- Bootstrap,
1512
- BootstrapStatic,
1513
- Callout,
1514
- DevPortal,
1515
- Layout,
1516
- Link,
1517
- RouterError,
1518
- ServerError,
1519
- useMDXComponents
1257
+ $r as Bootstrap,
1258
+ Vr as BootstrapStatic,
1259
+ Hr as Callout,
1260
+ Lr as DevPortal,
1261
+ Br as Layout,
1262
+ zr as Link,
1263
+ Ur as RouterError,
1264
+ Kr as ServerError,
1265
+ qr as useMDXComponents
1520
1266
  };
1521
1267
  //# sourceMappingURL=zudoku.components.js.map