zudoku 0.3.0-dev.31 → 0.3.0-dev.32

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 (203) hide show
  1. package/dist/app/App.d.ts +1 -0
  2. package/dist/app/App.js +2 -0
  3. package/dist/app/App.js.map +1 -0
  4. package/dist/app/entry.client.d.ts +5 -0
  5. package/dist/app/entry.client.js +28 -0
  6. package/dist/app/entry.client.js.map +1 -0
  7. package/dist/app/entry.server.d.ts +10 -0
  8. package/dist/app/entry.server.js +107 -0
  9. package/dist/app/entry.server.js.map +1 -0
  10. package/dist/app/main.d.ts +26 -2
  11. package/dist/app/main.js +39 -17
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/tailwind.js +5 -0
  14. package/dist/app/tailwind.js.map +1 -1
  15. package/dist/app/zudoku-manifest.d.ts +1 -0
  16. package/dist/app/zudoku-manifest.js +20 -0
  17. package/dist/app/zudoku-manifest.js.map +1 -0
  18. package/dist/cli/cmds/dev.js +5 -0
  19. package/dist/cli/cmds/dev.js.map +1 -1
  20. package/dist/cli/dev/handler.d.ts +1 -0
  21. package/dist/cli/dev/handler.js +3 -1
  22. package/dist/cli/dev/handler.js.map +1 -1
  23. package/dist/config/config.d.ts +5 -0
  24. package/dist/lib/authentication/providers/clerk.js +2 -0
  25. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  26. package/dist/lib/components/DevPortal.d.ts +1 -1
  27. package/dist/lib/components/DevPortal.js +6 -10
  28. package/dist/lib/components/DevPortal.js.map +1 -1
  29. package/dist/lib/components/ErrorPage.d.ts +6 -0
  30. package/dist/lib/components/ErrorPage.js +9 -0
  31. package/dist/lib/components/ErrorPage.js.map +1 -0
  32. package/dist/lib/components/InlineCode.d.ts +5 -0
  33. package/dist/lib/components/InlineCode.js +4 -0
  34. package/dist/lib/components/InlineCode.js.map +1 -0
  35. package/dist/lib/components/Layout.js +2 -1
  36. package/dist/lib/components/Layout.js.map +1 -1
  37. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  38. package/dist/lib/components/NotFoundPage.js +12 -0
  39. package/dist/lib/components/NotFoundPage.js.map +1 -0
  40. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  41. package/dist/lib/components/SyntaxHighlight.js +20 -22
  42. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  43. package/dist/lib/errors/RouterError.js +6 -3
  44. package/dist/lib/errors/RouterError.js.map +1 -1
  45. package/dist/lib/errors/ServerError.d.ts +3 -0
  46. package/dist/lib/errors/ServerError.js +6 -0
  47. package/dist/lib/errors/ServerError.js.map +1 -0
  48. package/dist/lib/oas/parser/index.d.ts +1 -1
  49. package/dist/lib/oas/parser/index.js +38 -14
  50. package/dist/lib/oas/parser/index.js.map +1 -1
  51. package/dist/lib/plugins/api-keys/index.js +3 -8
  52. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  53. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  54. package/dist/lib/plugins/markdown/index.js +3 -7
  55. package/dist/lib/plugins/markdown/index.js.map +1 -1
  56. package/dist/lib/plugins/openapi/OperationList.js +11 -1
  57. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  58. package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
  59. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  60. package/dist/lib/plugins/openapi/SchemaListView.js +2 -1
  61. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  62. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  63. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  64. package/dist/lib/plugins/openapi/index.js +9 -1
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/plugins/redirect/index.js +2 -3
  67. package/dist/lib/plugins/redirect/index.js.map +1 -1
  68. package/dist/lib/ui/Callout.js +1 -1
  69. package/dist/lib/ui/Callout.js.map +1 -1
  70. package/dist/lib/ui/button-variants.d.ts +1 -1
  71. package/dist/lib/util/MdxComponents.js +2 -2
  72. package/dist/lib/util/MdxComponents.js.map +1 -1
  73. package/dist/lib/util/groupBy.d.ts +1 -6
  74. package/dist/lib/util/groupBy.js +10 -8
  75. package/dist/lib/util/groupBy.js.map +1 -1
  76. package/dist/vite/build.js +23 -10
  77. package/dist/vite/build.js.map +1 -1
  78. package/dist/vite/config.d.ts +2 -1
  79. package/dist/vite/config.js +33 -7
  80. package/dist/vite/config.js.map +1 -1
  81. package/dist/vite/dev-server.d.ts +1 -1
  82. package/dist/vite/dev-server.js +15 -9
  83. package/dist/vite/dev-server.js.map +1 -1
  84. package/dist/vite/html.js +5 -4
  85. package/dist/vite/html.js.map +1 -1
  86. package/dist/vite/plugin-custom-css.d.ts +6 -0
  87. package/dist/vite/plugin-custom-css.js +55 -0
  88. package/dist/vite/plugin-custom-css.js.map +1 -0
  89. package/dist/vite/plugin-docs.js +14 -5
  90. package/dist/vite/plugin-docs.js.map +1 -1
  91. package/dist/vite/plugin-openapi-worker.js +4 -1
  92. package/dist/vite/plugin-openapi-worker.js.map +1 -1
  93. package/dist/vite/plugin.js +2 -0
  94. package/dist/vite/plugin.js.map +1 -1
  95. package/dist/vite/prerender.d.ts +1 -0
  96. package/dist/vite/prerender.js +57 -0
  97. package/dist/vite/prerender.js.map +1 -0
  98. package/lib/{DevPortalProvider-BMk-RCE0.js → DevPortalProvider-BlxLX6GG.js} +230 -250
  99. package/lib/DevPortalProvider-BlxLX6GG.js.map +1 -0
  100. package/lib/{Markdown-DDmW47R9.js → Markdown-CL8KPvJN.js} +8 -9
  101. package/lib/{Markdown-DDmW47R9.js.map → Markdown-CL8KPvJN.js.map} +1 -1
  102. package/lib/MdxComponents-Ev_hBHb2.js +5885 -0
  103. package/lib/MdxComponents-Ev_hBHb2.js.map +1 -0
  104. package/lib/{MdxPage-DyJAHF9y.js → MdxPage-Z3HKNTrj.js} +92 -89
  105. package/lib/MdxPage-Z3HKNTrj.js.map +1 -0
  106. package/lib/{OperationList-Dz9rHM9r.js → OperationList-KoITgfDT.js} +1967 -1785
  107. package/lib/OperationList-KoITgfDT.js.map +1 -0
  108. package/lib/Route-Bf1_D_vC.js +13 -0
  109. package/lib/{Route-CN_7-e5r.js.map → Route-Bf1_D_vC.js.map} +1 -1
  110. package/lib/Select-DSa3bN4t.js +4770 -0
  111. package/lib/Select-DSa3bN4t.js.map +1 -0
  112. package/lib/assets/{worker-BXS8hiSM.js → worker-BjPv-hjP.js} +3100 -2720
  113. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  114. package/lib/hook-CTmJ6CWq.js +35 -0
  115. package/lib/hook-CTmJ6CWq.js.map +1 -0
  116. package/lib/index-BdWBDosx.js +74 -0
  117. package/lib/index-BdWBDosx.js.map +1 -0
  118. package/lib/{index-Cpdpun6t.js → index-BoWzKb_9.js} +57 -41
  119. package/lib/index-BoWzKb_9.js.map +1 -0
  120. package/lib/{AnchorLink-ptdQk87q.js → index.esm-CPEExBJE.js} +156 -168
  121. package/lib/index.esm-CPEExBJE.js.map +1 -0
  122. package/lib/jsx-runtime-CM0TzjGp.js +866 -0
  123. package/lib/jsx-runtime-CM0TzjGp.js.map +1 -0
  124. package/lib/mutation-91kw0lHb.js +208 -0
  125. package/lib/mutation-91kw0lHb.js.map +1 -0
  126. package/lib/router-CcYTwKjf.js +183 -0
  127. package/lib/router-CcYTwKjf.js.map +1 -0
  128. package/lib/zudoku.auth-clerk.js.map +1 -1
  129. package/lib/zudoku.auth-openid.js +588 -441
  130. package/lib/zudoku.auth-openid.js.map +1 -1
  131. package/lib/zudoku.components.js +284 -595
  132. package/lib/zudoku.components.js.map +1 -1
  133. package/lib/zudoku.openapi-worker.js +18 -18
  134. package/lib/zudoku.plugin-api-keys.js +143 -98
  135. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  136. package/lib/zudoku.plugin-markdown.js +2 -49
  137. package/lib/zudoku.plugin-markdown.js.map +1 -1
  138. package/lib/zudoku.plugin-openapi.js +5 -3
  139. package/lib/zudoku.plugin-openapi.js.map +1 -1
  140. package/lib/zudoku.plugin-redirect.js +6 -7
  141. package/lib/zudoku.plugin-redirect.js.map +1 -1
  142. package/package.json +2 -1
  143. package/src/app/App.tsx +0 -0
  144. package/src/app/entry.client.tsx +51 -0
  145. package/src/app/entry.server.tsx +158 -0
  146. package/src/app/main.tsx +65 -43
  147. package/src/app/tailwind.ts +6 -0
  148. package/src/app/zudoku-manifest.ts +22 -0
  149. package/src/lib/authentication/providers/clerk.tsx +1 -0
  150. package/src/lib/components/DevPortal.tsx +25 -33
  151. package/src/lib/components/ErrorPage.tsx +28 -0
  152. package/src/lib/components/InlineCode.tsx +19 -0
  153. package/src/lib/components/Layout.tsx +7 -4
  154. package/src/lib/components/NotFoundPage.tsx +39 -0
  155. package/src/lib/components/SyntaxHighlight.tsx +26 -22
  156. package/src/lib/errors/RouterError.tsx +8 -7
  157. package/src/lib/errors/ServerError.tsx +5 -0
  158. package/src/lib/oas/parser/index.ts +41 -22
  159. package/src/lib/plugins/api-keys/index.tsx +4 -16
  160. package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
  161. package/src/lib/plugins/markdown/index.tsx +3 -7
  162. package/src/lib/plugins/openapi/OperationList.tsx +30 -0
  163. package/src/lib/plugins/openapi/OperationListItem.tsx +3 -1
  164. package/src/lib/plugins/openapi/SchemaListView.tsx +8 -10
  165. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -1
  166. package/src/lib/plugins/openapi/index.tsx +18 -1
  167. package/src/lib/plugins/redirect/index.tsx +2 -2
  168. package/src/lib/ui/Callout.tsx +2 -2
  169. package/src/lib/util/MdxComponents.tsx +2 -11
  170. package/src/lib/util/groupBy.ts +7 -12
  171. package/dist/lib/components/Router.d.ts +0 -4
  172. package/dist/lib/components/Router.js +0 -21
  173. package/dist/lib/components/Router.js.map +0 -1
  174. package/lib/AnchorLink-ptdQk87q.js.map +0 -1
  175. package/lib/DevPortalProvider-BMk-RCE0.js.map +0 -1
  176. package/lib/MdxComponents-C0R6zobS.js +0 -3019
  177. package/lib/MdxComponents-C0R6zobS.js.map +0 -1
  178. package/lib/MdxPage-DyJAHF9y.js.map +0 -1
  179. package/lib/OperationList-Dz9rHM9r.js.map +0 -1
  180. package/lib/Route-CN_7-e5r.js +0 -14
  181. package/lib/Select-D-Jtx53Q.js +0 -4572
  182. package/lib/Select-D-Jtx53Q.js.map +0 -1
  183. package/lib/Spinner-BG1JnYy0.js +0 -182
  184. package/lib/Spinner-BG1JnYy0.js.map +0 -1
  185. package/lib/assets/worker-BXS8hiSM.js.map +0 -1
  186. package/lib/cn-DpqTslo9.js +0 -2342
  187. package/lib/cn-DpqTslo9.js.map +0 -1
  188. package/lib/hook-BzBeIPL4.js +0 -25
  189. package/lib/hook-BzBeIPL4.js.map +0 -1
  190. package/lib/index-BaOOUFsA.js +0 -412
  191. package/lib/index-BaOOUFsA.js.map +0 -1
  192. package/lib/index-CPvRaBBB.js +0 -713
  193. package/lib/index-CPvRaBBB.js.map +0 -1
  194. package/lib/index-Cpdpun6t.js.map +0 -1
  195. package/lib/index-DLS6fPwU.js +0 -464
  196. package/lib/index-DLS6fPwU.js.map +0 -1
  197. package/lib/jsx-runtime-SV6hXQua.js +0 -3009
  198. package/lib/jsx-runtime-SV6hXQua.js.map +0 -1
  199. package/lib/loglevel-CA34MiFn.js +0 -153
  200. package/lib/loglevel-CA34MiFn.js.map +0 -1
  201. package/lib/util-CCWvaWo7.js +0 -41
  202. package/lib/util-CCWvaWo7.js.map +0 -1
  203. package/src/lib/components/Router.tsx +0 -24
@@ -1,58 +1,33 @@
1
- var Re = Object.defineProperty;
2
- var ae = (t) => {
1
+ var ye = Object.defineProperty;
2
+ var V = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var He = (t, e, s) => e in t ? Re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var g = (t, e, s) => He(t, typeof e != "symbol" ? e + "" : e, s), ne = (t, e, s) => e.has(t) || ae("Cannot " + s);
7
- var i = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? ae("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, a) => (ne(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var I = (t, e, s, a) => ({
9
- set _(r) {
10
- d(t, e, r, s);
5
+ var pe = (t, e, s) => e in t ? ye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var g = (t, e, s) => pe(t, typeof e != "symbol" ? e + "" : e, s), X = (t, e, s) => e.has(t) || V("Cannot " + s);
7
+ var n = (t, e, s) => (X(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? V("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (X(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s);
8
+ var q = (t, e, s, r) => ({
9
+ set _(a) {
10
+ c(t, e, a, s);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return n(t, e, r);
14
14
  }
15
15
  });
16
- import { c as B, N as U, a as Le, b as Be, d as Ke, R as ze, L as Ve } from "./index-CPvRaBBB.js";
17
- import { u as Ue, a as X, M as We, T as Xe, V as _e, C as Ge } from "./MdxComponents-C0R6zobS.js";
18
- import { j as n } from "./jsx-runtime-SV6hXQua.js";
19
- import { S as ge, h as ve, Q as Je, n as p, m as re, a as ie, b as j, e as Ye, c as Ze, d as $e, f as et, o as oe, r as le, g as tt, i as ce, p as ue, s as st, u as _, j as at, k as nt, l as rt, D as it } from "./DevPortalProvider-BMk-RCE0.js";
20
- import { createContext as xe, Component as ot, createElement as he, isValidElement as lt, memo as ye, useEffect as T, useRef as K, useState as ct, forwardRef as ut, Suspense as be, useMemo as H, Fragment as ht } from "react";
21
- import { A as dt, H as je, a as ft, M as mt, u as pt } from "./AnchorLink-ptdQk87q.js";
22
- import { c as gt } from "./state-Ds_OxRHP.js";
23
- import { M as vt } from "./index-BaOOUFsA.js";
24
- import { u as xt } from "./hook-BzBeIPL4.js";
25
- import { u as D, O as yt, a as bt } from "./index-DLS6fPwU.js";
26
- import { R as Pe, T as we, C as Ce, S as jt } from "./Spinner-BG1JnYy0.js";
27
- import { c as L } from "./cn-DpqTslo9.js";
28
- import { c as G, i as W, j as Ne, a as Pt } from "./util-CCWvaWo7.js";
16
+ import { c as ae, N as ve, a as be, u as Pe, M as xe, T as Me, V as Ce, C as we, L as Qe } from "./MdxComponents-Ev_hBHb2.js";
17
+ import { j as i } from "./jsx-runtime-CM0TzjGp.js";
18
+ import { S as ne, h as ie, Q as Oe, n as m, m as G, a as J, b, e as Ee, c as ke, d as De, f as je, o as W, r as Y, g as Ae, i as Z, p as $, s as Ne, u as oe, j as qe, D as Fe } from "./DevPortalProvider-BlxLX6GG.js";
19
+ import { createContext as ue, Component as Te, createElement as _, isValidElement as Se, memo as le, useMemo as S, useEffect as Ie, Fragment as He } from "react";
20
+ import { H as Ke, M as Be, u as ze } from "./index.esm-CPEExBJE.js";
21
+ import { c as Le } from "./state-Ds_OxRHP.js";
22
+ import { M as Re } from "./mutation-91kw0lHb.js";
23
+ import { E as Ue, u as Ve } from "./hook-CTmJ6CWq.js";
29
24
  /**
30
25
  * @license lucide-react v0.378.0 - ISC
31
26
  *
32
27
  * This source code is licensed under the ISC license.
33
28
  * See the LICENSE file in the root directory of this source tree.
34
29
  */
35
- const ke = B("ChevronRight", [
36
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
37
- ]);
38
- /**
39
- * @license lucide-react v0.378.0 - ISC
40
- *
41
- * This source code is licensed under the ISC license.
42
- * See the LICENSE file in the root directory of this source tree.
43
- */
44
- const wt = B("ExternalLink", [
45
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
46
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
47
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
48
- ]);
49
- /**
50
- * @license lucide-react v0.378.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */
55
- const Ct = B("MoonStar", [
30
+ const Xe = ae("MoonStar", [
56
31
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
57
32
  ["path", { d: "M20 3v4", key: "1olli1" }],
58
33
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -63,7 +38,7 @@ const Ct = B("MoonStar", [
63
38
  * This source code is licensed under the ISC license.
64
39
  * See the LICENSE file in the root directory of this source tree.
65
40
  */
66
- const Nt = B("Sun", [
41
+ const Ge = ae("Sun", [
67
42
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
68
43
  ["path", { d: "M12 2v2", key: "tus03m" }],
69
44
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -74,138 +49,138 @@ const Nt = B("Sun", [
74
49
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
75
50
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
76
51
  ]);
77
- var y, fe, kt = (fe = class extends ge {
52
+ var v, te, Je = (te = class extends ne {
78
53
  constructor(e = {}) {
79
54
  super();
80
- v(this, y);
81
- this.config = e, d(this, y, /* @__PURE__ */ new Map());
55
+ y(this, v);
56
+ this.config = e, c(this, v, /* @__PURE__ */ new Map());
82
57
  }
83
- build(e, s, a) {
84
- const r = s.queryKey, o = s.queryHash ?? ve(r, s);
85
- let l = this.get(o);
86
- return l || (l = new Je({
58
+ build(e, s, r) {
59
+ const a = s.queryKey, o = s.queryHash ?? ie(a, s);
60
+ let u = this.get(o);
61
+ return u || (u = new Oe({
87
62
  cache: this,
88
- queryKey: r,
63
+ queryKey: a,
89
64
  queryHash: o,
90
65
  options: e.defaultQueryOptions(s),
91
- state: a,
92
- defaultOptions: e.getQueryDefaults(r)
93
- }), this.add(l)), l;
66
+ state: r,
67
+ defaultOptions: e.getQueryDefaults(a)
68
+ }), this.add(u)), u;
94
69
  }
95
70
  add(e) {
96
- i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
71
+ n(this, v).has(e.queryHash) || (n(this, v).set(e.queryHash, e), this.notify({
97
72
  type: "added",
98
73
  query: e
99
74
  }));
100
75
  }
101
76
  remove(e) {
102
- const s = i(this, y).get(e.queryHash);
103
- s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
77
+ const s = n(this, v).get(e.queryHash);
78
+ s && (e.destroy(), s === e && n(this, v).delete(e.queryHash), this.notify({ type: "removed", query: e }));
104
79
  }
105
80
  clear() {
106
- p.batch(() => {
81
+ m.batch(() => {
107
82
  this.getAll().forEach((e) => {
108
83
  this.remove(e);
109
84
  });
110
85
  });
111
86
  }
112
87
  get(e) {
113
- return i(this, y).get(e);
88
+ return n(this, v).get(e);
114
89
  }
115
90
  getAll() {
116
- return [...i(this, y).values()];
91
+ return [...n(this, v).values()];
117
92
  }
118
93
  find(e) {
119
94
  const s = { exact: !0, ...e };
120
95
  return this.getAll().find(
121
- (a) => re(s, a)
96
+ (r) => G(s, r)
122
97
  );
123
98
  }
124
99
  findAll(e = {}) {
125
100
  const s = this.getAll();
126
- return Object.keys(e).length > 0 ? s.filter((a) => re(e, a)) : s;
101
+ return Object.keys(e).length > 0 ? s.filter((r) => G(e, r)) : s;
127
102
  }
128
103
  notify(e) {
129
- p.batch(() => {
104
+ m.batch(() => {
130
105
  this.listeners.forEach((s) => {
131
106
  s(e);
132
107
  });
133
108
  });
134
109
  }
135
110
  onFocus() {
136
- p.batch(() => {
111
+ m.batch(() => {
137
112
  this.getAll().forEach((e) => {
138
113
  e.onFocus();
139
114
  });
140
115
  });
141
116
  }
142
117
  onOnline() {
143
- p.batch(() => {
118
+ m.batch(() => {
144
119
  this.getAll().forEach((e) => {
145
120
  e.onOnline();
146
121
  });
147
122
  });
148
123
  }
149
- }, y = new WeakMap(), fe), m, S, me, Mt = (me = class extends ge {
124
+ }, v = new WeakMap(), te), f, A, se, We = (se = class extends ne {
150
125
  constructor(e = {}) {
151
126
  super();
152
- v(this, m);
153
- v(this, S);
154
- this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, S, Date.now());
127
+ y(this, f);
128
+ y(this, A);
129
+ this.config = e, c(this, f, /* @__PURE__ */ new Map()), c(this, A, Date.now());
155
130
  }
156
- build(e, s, a) {
157
- const r = new vt({
131
+ build(e, s, r) {
132
+ const a = new Re({
158
133
  mutationCache: this,
159
- mutationId: ++I(this, S)._,
134
+ mutationId: ++q(this, A)._,
160
135
  options: e.defaultMutationOptions(s),
161
- state: a
136
+ state: r
162
137
  });
163
- return this.add(r), r;
138
+ return this.add(a), a;
164
139
  }
165
140
  add(e) {
166
- const s = F(e), a = i(this, m).get(s) ?? [];
167
- a.push(e), i(this, m).set(s, a), this.notify({ type: "added", mutation: e });
141
+ const s = F(e), r = n(this, f).get(s) ?? [];
142
+ r.push(e), n(this, f).set(s, r), this.notify({ type: "added", mutation: e });
168
143
  }
169
144
  remove(e) {
170
- var a;
145
+ var r;
171
146
  const s = F(e);
172
- if (i(this, m).has(s)) {
173
- const r = (a = i(this, m).get(s)) == null ? void 0 : a.filter((o) => o !== e);
174
- r && (r.length === 0 ? i(this, m).delete(s) : i(this, m).set(s, r));
147
+ if (n(this, f).has(s)) {
148
+ const a = (r = n(this, f).get(s)) == null ? void 0 : r.filter((o) => o !== e);
149
+ a && (a.length === 0 ? n(this, f).delete(s) : n(this, f).set(s, a));
175
150
  }
176
151
  this.notify({ type: "removed", mutation: e });
177
152
  }
178
153
  canRun(e) {
179
- var a;
180
- const s = (a = i(this, m).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
154
+ var r;
155
+ const s = (r = n(this, f).get(F(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
181
156
  return !s || s === e;
182
157
  }
183
158
  runNext(e) {
184
- var a;
185
- const s = (a = i(this, m).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
159
+ var r;
160
+ const s = (r = n(this, f).get(F(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
186
161
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
187
162
  }
188
163
  clear() {
189
- p.batch(() => {
164
+ m.batch(() => {
190
165
  this.getAll().forEach((e) => {
191
166
  this.remove(e);
192
167
  });
193
168
  });
194
169
  }
195
170
  getAll() {
196
- return [...i(this, m).values()].flat();
171
+ return [...n(this, f).values()].flat();
197
172
  }
198
173
  find(e) {
199
174
  const s = { exact: !0, ...e };
200
175
  return this.getAll().find(
201
- (a) => ie(s, a)
176
+ (r) => J(s, r)
202
177
  );
203
178
  }
204
179
  findAll(e = {}) {
205
- return this.getAll().filter((s) => ie(e, s));
180
+ return this.getAll().filter((s) => J(e, s));
206
181
  }
207
182
  notify(e) {
208
- p.batch(() => {
183
+ m.batch(() => {
209
184
  this.listeners.forEach((s) => {
210
185
  s(e);
211
186
  });
@@ -213,76 +188,76 @@ var y, fe, kt = (fe = class extends ge {
213
188
  }
214
189
  resumePausedMutations() {
215
190
  const e = this.getAll().filter((s) => s.state.isPaused);
216
- return p.batch(
191
+ return m.batch(
217
192
  () => Promise.all(
218
- e.map((s) => s.continue().catch(j))
193
+ e.map((s) => s.continue().catch(b))
219
194
  )
220
195
  );
221
196
  }
222
- }, m = new WeakMap(), S = new WeakMap(), me);
197
+ }, f = new WeakMap(), A = new WeakMap(), se);
223
198
  function F(t) {
224
199
  var e;
225
200
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
226
201
  }
227
- function Ot(t) {
202
+ function Ye(t) {
228
203
  return {
229
204
  onFetch: (e, s) => {
230
- const a = async () => {
231
- var J, Y, Z, $, ee;
232
- const r = e.options, o = (Z = (Y = (J = e.fetchOptions) == null ? void 0 : J.meta) == null ? void 0 : Y.fetchMore) == null ? void 0 : Z.direction, l = (($ = e.state.data) == null ? void 0 : $.pages) || [], c = ((ee = e.state.data) == null ? void 0 : ee.pageParams) || [], h = { pages: [], pageParams: [] };
233
- let b = !1;
234
- const f = (x) => {
235
- Object.defineProperty(x, "signal", {
205
+ const r = async () => {
206
+ var H, K, B, z, L;
207
+ const a = e.options, o = (B = (K = (H = e.fetchOptions) == null ? void 0 : H.meta) == null ? void 0 : K.fetchMore) == null ? void 0 : B.direction, u = ((z = e.state.data) == null ? void 0 : z.pages) || [], d = ((L = e.state.data) == null ? void 0 : L.pageParams) || [], h = { pages: [], pageParams: [] };
208
+ let P = !1;
209
+ const fe = (p) => {
210
+ Object.defineProperty(p, "signal", {
236
211
  enumerable: !0,
237
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
238
- b = !0;
212
+ get: () => (e.signal.aborted ? P = !0 : e.signal.addEventListener("abort", () => {
213
+ P = !0;
239
214
  }), e.signal)
240
215
  });
241
- }, Ie = Ye(e.options, e.fetchOptions), z = async (x, P, k) => {
242
- if (b)
216
+ }, me = Ee(e.options, e.fetchOptions), T = async (p, x, Q) => {
217
+ if (P)
243
218
  return Promise.reject();
244
- if (P == null && x.pages.length)
245
- return Promise.resolve(x);
246
- const q = {
219
+ if (x == null && p.pages.length)
220
+ return Promise.resolve(p);
221
+ const N = {
247
222
  queryKey: e.queryKey,
248
- pageParam: P,
249
- direction: k ? "backward" : "forward",
223
+ pageParam: x,
224
+ direction: Q ? "backward" : "forward",
250
225
  meta: e.options.meta
251
226
  };
252
- f(q);
253
- const Fe = await Ie(
254
- q
255
- ), { maxPages: te } = e.options, se = k ? Ze : $e;
227
+ fe(N);
228
+ const ge = await me(
229
+ N
230
+ ), { maxPages: R } = e.options, U = Q ? ke : De;
256
231
  return {
257
- pages: se(x.pages, Fe, te),
258
- pageParams: se(x.pageParams, P, te)
232
+ pages: U(p.pages, ge, R),
233
+ pageParams: U(p.pageParams, x, R)
259
234
  };
260
235
  };
261
- let M;
262
- if (o && l.length) {
263
- const x = o === "backward", P = x ? At : de, k = {
264
- pages: l,
265
- pageParams: c
266
- }, q = P(r, k);
267
- M = await z(k, q, x);
236
+ let O;
237
+ if (o && u.length) {
238
+ const p = o === "backward", x = p ? Ze : ee, Q = {
239
+ pages: u,
240
+ pageParams: d
241
+ }, N = x(a, Q);
242
+ O = await T(Q, N, p);
268
243
  } else {
269
- M = await z(
244
+ O = await T(
270
245
  h,
271
- c[0] ?? r.initialPageParam
246
+ d[0] ?? a.initialPageParam
272
247
  );
273
- const x = t ?? l.length;
274
- for (let P = 1; P < x; P++) {
275
- const k = de(r, M);
276
- M = await z(M, k);
248
+ const p = t ?? u.length;
249
+ for (let x = 1; x < p; x++) {
250
+ const Q = ee(a, O);
251
+ O = await T(O, Q);
277
252
  }
278
253
  }
279
- return M;
254
+ return O;
280
255
  };
281
256
  e.options.persister ? e.fetchFn = () => {
282
- var r, o;
283
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
284
- r,
257
+ var a, o;
258
+ return (o = (a = e.options).persister) == null ? void 0 : o.call(
285
259
  a,
260
+ r,
286
261
  {
287
262
  queryKey: e.queryKey,
288
263
  meta: e.options.meta,
@@ -290,22 +265,22 @@ function Ot(t) {
290
265
  },
291
266
  s
292
267
  );
293
- } : e.fetchFn = a;
268
+ } : e.fetchFn = r;
294
269
  }
295
270
  };
296
271
  }
297
- function de(t, { pages: e, pageParams: s }) {
298
- const a = e.length - 1;
272
+ function ee(t, { pages: e, pageParams: s }) {
273
+ const r = e.length - 1;
299
274
  return t.getNextPageParam(
300
- e[a],
275
+ e[r],
301
276
  e,
302
- s[a],
277
+ s[r],
303
278
  s
304
279
  );
305
280
  }
306
- function At(t, { pages: e, pageParams: s }) {
307
- var a;
308
- return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
281
+ function Ze(t, { pages: e, pageParams: s }) {
282
+ var r;
283
+ return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
309
284
  t,
310
285
  e[0],
311
286
  e,
@@ -313,102 +288,102 @@ function At(t, { pages: e, pageParams: s }) {
313
288
  s
314
289
  );
315
290
  }
316
- var u, w, C, O, A, N, E, Q, pe, Et = (pe = class {
291
+ var l, M, C, E, k, w, D, j, re, $e = (re = class {
317
292
  constructor(t = {}) {
318
- v(this, u);
319
- v(this, w);
320
- v(this, C);
321
- v(this, O);
322
- v(this, A);
323
- v(this, N);
324
- v(this, E);
325
- v(this, Q);
326
- d(this, u, t.queryCache || new kt()), d(this, w, t.mutationCache || new Mt()), d(this, C, t.defaultOptions || {}), d(this, O, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
293
+ y(this, l);
294
+ y(this, M);
295
+ y(this, C);
296
+ y(this, E);
297
+ y(this, k);
298
+ y(this, w);
299
+ y(this, D);
300
+ y(this, j);
301
+ c(this, l, t.queryCache || new Je()), c(this, M, t.mutationCache || new We()), c(this, C, t.defaultOptions || {}), c(this, E, /* @__PURE__ */ new Map()), c(this, k, /* @__PURE__ */ new Map()), c(this, w, 0);
327
302
  }
328
303
  mount() {
329
- I(this, N)._++, i(this, N) === 1 && (d(this, E, et.subscribe(async (t) => {
330
- t && (await this.resumePausedMutations(), i(this, u).onFocus());
331
- })), d(this, Q, oe.subscribe(async (t) => {
332
- t && (await this.resumePausedMutations(), i(this, u).onOnline());
304
+ q(this, w)._++, n(this, w) === 1 && (c(this, D, je.subscribe(async (t) => {
305
+ t && (await this.resumePausedMutations(), n(this, l).onFocus());
306
+ })), c(this, j, W.subscribe(async (t) => {
307
+ t && (await this.resumePausedMutations(), n(this, l).onOnline());
333
308
  })));
334
309
  }
335
310
  unmount() {
336
311
  var t, e;
337
- I(this, N)._--, i(this, N) === 0 && ((t = i(this, E)) == null || t.call(this), d(this, E, void 0), (e = i(this, Q)) == null || e.call(this), d(this, Q, void 0));
312
+ q(this, w)._--, n(this, w) === 0 && ((t = n(this, D)) == null || t.call(this), c(this, D, void 0), (e = n(this, j)) == null || e.call(this), c(this, j, void 0));
338
313
  }
339
314
  isFetching(t) {
340
- return i(this, u).findAll({ ...t, fetchStatus: "fetching" }).length;
315
+ return n(this, l).findAll({ ...t, fetchStatus: "fetching" }).length;
341
316
  }
342
317
  isMutating(t) {
343
- return i(this, w).findAll({ ...t, status: "pending" }).length;
318
+ return n(this, M).findAll({ ...t, status: "pending" }).length;
344
319
  }
345
320
  getQueryData(t) {
346
321
  var s;
347
322
  const e = this.defaultQueryOptions({ queryKey: t });
348
- return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state.data;
323
+ return (s = n(this, l).get(e.queryHash)) == null ? void 0 : s.state.data;
349
324
  }
350
325
  ensureQueryData(t) {
351
326
  const e = this.getQueryData(t.queryKey);
352
327
  if (e === void 0)
353
328
  return this.fetchQuery(t);
354
329
  {
355
- const s = this.defaultQueryOptions(t), a = i(this, u).build(this, s);
356
- return t.revalidateIfStale && a.isStaleByTime(le(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
330
+ const s = this.defaultQueryOptions(t), r = n(this, l).build(this, s);
331
+ return t.revalidateIfStale && r.isStaleByTime(Y(s.staleTime, r)) && this.prefetchQuery(s), Promise.resolve(e);
357
332
  }
358
333
  }
359
334
  getQueriesData(t) {
360
- return i(this, u).findAll(t).map(({ queryKey: e, state: s }) => {
361
- const a = s.data;
362
- return [e, a];
335
+ return n(this, l).findAll(t).map(({ queryKey: e, state: s }) => {
336
+ const r = s.data;
337
+ return [e, r];
363
338
  });
364
339
  }
365
340
  setQueryData(t, e, s) {
366
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, u).get(
367
- a.queryHash
368
- ), o = r == null ? void 0 : r.state.data, l = tt(e, o);
369
- if (l !== void 0)
370
- return i(this, u).build(this, a).setData(l, { ...s, manual: !0 });
341
+ const r = this.defaultQueryOptions({ queryKey: t }), a = n(this, l).get(
342
+ r.queryHash
343
+ ), o = a == null ? void 0 : a.state.data, u = Ae(e, o);
344
+ if (u !== void 0)
345
+ return n(this, l).build(this, r).setData(u, { ...s, manual: !0 });
371
346
  }
372
347
  setQueriesData(t, e, s) {
373
- return p.batch(
374
- () => i(this, u).findAll(t).map(({ queryKey: a }) => [
375
- a,
376
- this.setQueryData(a, e, s)
348
+ return m.batch(
349
+ () => n(this, l).findAll(t).map(({ queryKey: r }) => [
350
+ r,
351
+ this.setQueryData(r, e, s)
377
352
  ])
378
353
  );
379
354
  }
380
355
  getQueryState(t) {
381
356
  var s;
382
357
  const e = this.defaultQueryOptions({ queryKey: t });
383
- return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state;
358
+ return (s = n(this, l).get(e.queryHash)) == null ? void 0 : s.state;
384
359
  }
385
360
  removeQueries(t) {
386
- const e = i(this, u);
387
- p.batch(() => {
361
+ const e = n(this, l);
362
+ m.batch(() => {
388
363
  e.findAll(t).forEach((s) => {
389
364
  e.remove(s);
390
365
  });
391
366
  });
392
367
  }
393
368
  resetQueries(t, e) {
394
- const s = i(this, u), a = {
369
+ const s = n(this, l), r = {
395
370
  type: "active",
396
371
  ...t
397
372
  };
398
- return p.batch(() => (s.findAll(t).forEach((r) => {
399
- r.reset();
400
- }), this.refetchQueries(a, e)));
373
+ return m.batch(() => (s.findAll(t).forEach((a) => {
374
+ a.reset();
375
+ }), this.refetchQueries(r, e)));
401
376
  }
402
377
  cancelQueries(t = {}, e = {}) {
403
- const s = { revert: !0, ...e }, a = p.batch(
404
- () => i(this, u).findAll(t).map((r) => r.cancel(s))
378
+ const s = { revert: !0, ...e }, r = m.batch(
379
+ () => n(this, l).findAll(t).map((a) => a.cancel(s))
405
380
  );
406
- return Promise.all(a).then(j).catch(j);
381
+ return Promise.all(r).then(b).catch(b);
407
382
  }
408
383
  invalidateQueries(t = {}, e = {}) {
409
- return p.batch(() => {
410
- if (i(this, u).findAll(t).forEach((a) => {
411
- a.invalidate();
384
+ return m.batch(() => {
385
+ if (n(this, l).findAll(t).forEach((r) => {
386
+ r.invalidate();
412
387
  }), t.refetchType === "none")
413
388
  return Promise.resolve();
414
389
  const s = {
@@ -422,105 +397,105 @@ var u, w, C, O, A, N, E, Q, pe, Et = (pe = class {
422
397
  const s = {
423
398
  ...e,
424
399
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
425
- }, a = p.batch(
426
- () => i(this, u).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
427
- let o = r.fetch(void 0, s);
428
- return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
400
+ }, r = m.batch(
401
+ () => n(this, l).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
402
+ let o = a.fetch(void 0, s);
403
+ return s.throwOnError || (o = o.catch(b)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
429
404
  })
430
405
  );
431
- return Promise.all(a).then(j);
406
+ return Promise.all(r).then(b);
432
407
  }
433
408
  fetchQuery(t) {
434
409
  const e = this.defaultQueryOptions(t);
435
410
  e.retry === void 0 && (e.retry = !1);
436
- const s = i(this, u).build(this, e);
411
+ const s = n(this, l).build(this, e);
437
412
  return s.isStaleByTime(
438
- le(e.staleTime, s)
413
+ Y(e.staleTime, s)
439
414
  ) ? s.fetch(e) : Promise.resolve(s.state.data);
440
415
  }
441
416
  prefetchQuery(t) {
442
- return this.fetchQuery(t).then(j).catch(j);
417
+ return this.fetchQuery(t).then(b).catch(b);
443
418
  }
444
419
  fetchInfiniteQuery(t) {
445
- return t.behavior = Ot(t.pages), this.fetchQuery(t);
420
+ return t.behavior = Ye(t.pages), this.fetchQuery(t);
446
421
  }
447
422
  prefetchInfiniteQuery(t) {
448
- return this.fetchInfiniteQuery(t).then(j).catch(j);
423
+ return this.fetchInfiniteQuery(t).then(b).catch(b);
449
424
  }
450
425
  resumePausedMutations() {
451
- return oe.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
426
+ return W.isOnline() ? n(this, M).resumePausedMutations() : Promise.resolve();
452
427
  }
453
428
  getQueryCache() {
454
- return i(this, u);
429
+ return n(this, l);
455
430
  }
456
431
  getMutationCache() {
457
- return i(this, w);
432
+ return n(this, M);
458
433
  }
459
434
  getDefaultOptions() {
460
- return i(this, C);
435
+ return n(this, C);
461
436
  }
462
437
  setDefaultOptions(t) {
463
- d(this, C, t);
438
+ c(this, C, t);
464
439
  }
465
440
  setQueryDefaults(t, e) {
466
- i(this, O).set(ce(t), {
441
+ n(this, E).set(Z(t), {
467
442
  queryKey: t,
468
443
  defaultOptions: e
469
444
  });
470
445
  }
471
446
  getQueryDefaults(t) {
472
- const e = [...i(this, O).values()];
447
+ const e = [...n(this, E).values()];
473
448
  let s = {};
474
- return e.forEach((a) => {
475
- ue(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
449
+ return e.forEach((r) => {
450
+ $(t, r.queryKey) && (s = { ...s, ...r.defaultOptions });
476
451
  }), s;
477
452
  }
478
453
  setMutationDefaults(t, e) {
479
- i(this, A).set(ce(t), {
454
+ n(this, k).set(Z(t), {
480
455
  mutationKey: t,
481
456
  defaultOptions: e
482
457
  });
483
458
  }
484
459
  getMutationDefaults(t) {
485
- const e = [...i(this, A).values()];
460
+ const e = [...n(this, k).values()];
486
461
  let s = {};
487
- return e.forEach((a) => {
488
- ue(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
462
+ return e.forEach((r) => {
463
+ $(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
489
464
  }), s;
490
465
  }
491
466
  defaultQueryOptions(t) {
492
467
  if (t._defaulted)
493
468
  return t;
494
469
  const e = {
495
- ...i(this, C).queries,
470
+ ...n(this, C).queries,
496
471
  ...this.getQueryDefaults(t.queryKey),
497
472
  ...t,
498
473
  _defaulted: !0
499
474
  };
500
- return e.queryHash || (e.queryHash = ve(
475
+ return e.queryHash || (e.queryHash = ie(
501
476
  e.queryKey,
502
477
  e
503
- )), 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;
478
+ )), 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 === Ne && (e.enabled = !1), e;
504
479
  }
505
480
  defaultMutationOptions(t) {
506
481
  return t != null && t._defaulted ? t : {
507
- ...i(this, C).mutations,
482
+ ...n(this, C).mutations,
508
483
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
509
484
  ...t,
510
485
  _defaulted: !0
511
486
  };
512
487
  }
513
488
  clear() {
514
- i(this, u).clear(), i(this, w).clear();
489
+ n(this, l).clear(), n(this, M).clear();
515
490
  }
516
- }, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), O = new WeakMap(), A = new WeakMap(), N = new WeakMap(), E = new WeakMap(), Q = new WeakMap(), pe);
517
- const Qt = xe(null), V = {
491
+ }, l = new WeakMap(), M = new WeakMap(), C = new WeakMap(), E = new WeakMap(), k = new WeakMap(), w = new WeakMap(), D = new WeakMap(), j = new WeakMap(), re);
492
+ const _e = ue(null), I = {
518
493
  didCatch: !1,
519
494
  error: null
520
495
  };
521
- class Dt extends ot {
496
+ class et extends Te {
522
497
  constructor(e) {
523
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = V;
498
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = I;
524
499
  }
525
500
  static getDerivedStateFromError(e) {
526
501
  return {
@@ -533,73 +508,73 @@ class Dt extends ot {
533
508
  error: e
534
509
  } = this.state;
535
510
  if (e !== null) {
536
- for (var s, a, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
537
- o[l] = arguments[l];
538
- (s = (a = this.props).onReset) === null || s === void 0 || s.call(a, {
511
+ for (var s, r, a = arguments.length, o = new Array(a), u = 0; u < a; u++)
512
+ o[u] = arguments[u];
513
+ (s = (r = this.props).onReset) === null || s === void 0 || s.call(r, {
539
514
  args: o,
540
515
  reason: "imperative-api"
541
- }), this.setState(V);
516
+ }), this.setState(I);
542
517
  }
543
518
  }
544
519
  componentDidCatch(e, s) {
545
- var a, r;
546
- (a = (r = this.props).onError) === null || a === void 0 || a.call(r, e, s);
520
+ var r, a;
521
+ (r = (a = this.props).onError) === null || r === void 0 || r.call(a, e, s);
547
522
  }
548
523
  componentDidUpdate(e, s) {
549
524
  const {
550
- didCatch: a
525
+ didCatch: r
551
526
  } = this.state, {
552
- resetKeys: r
527
+ resetKeys: a
553
528
  } = this.props;
554
- if (a && s.error !== null && St(e.resetKeys, r)) {
555
- var o, l;
556
- (o = (l = this.props).onReset) === null || o === void 0 || o.call(l, {
557
- next: r,
529
+ if (r && s.error !== null && tt(e.resetKeys, a)) {
530
+ var o, u;
531
+ (o = (u = this.props).onReset) === null || o === void 0 || o.call(u, {
532
+ next: a,
558
533
  prev: e.resetKeys,
559
534
  reason: "keys"
560
- }), this.setState(V);
535
+ }), this.setState(I);
561
536
  }
562
537
  }
563
538
  render() {
564
539
  const {
565
540
  children: e,
566
541
  fallbackRender: s,
567
- FallbackComponent: a,
568
- fallback: r
542
+ FallbackComponent: r,
543
+ fallback: a
569
544
  } = this.props, {
570
545
  didCatch: o,
571
- error: l
546
+ error: u
572
547
  } = this.state;
573
- let c = e;
548
+ let d = e;
574
549
  if (o) {
575
550
  const h = {
576
- error: l,
551
+ error: u,
577
552
  resetErrorBoundary: this.resetErrorBoundary
578
553
  };
579
554
  if (typeof s == "function")
580
- c = s(h);
581
- else if (a)
582
- c = he(a, h);
583
- else if (r === null || lt(r))
584
- c = r;
555
+ d = s(h);
556
+ else if (r)
557
+ d = _(r, h);
558
+ else if (a === null || Se(a))
559
+ d = a;
585
560
  else
586
- throw l;
561
+ throw u;
587
562
  }
588
- return he(Qt.Provider, {
563
+ return _(_e.Provider, {
589
564
  value: {
590
565
  didCatch: o,
591
- error: l,
566
+ error: u,
592
567
  resetErrorBoundary: this.resetErrorBoundary
593
568
  }
594
- }, c);
569
+ }, d);
595
570
  }
596
571
  }
597
- function St() {
572
+ function tt() {
598
573
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
599
- return t.length !== e.length || t.some((s, a) => !Object.is(s, e[a]));
574
+ return t.length !== e.length || t.some((s, r) => !Object.is(s, e[r]));
600
575
  }
601
- const Me = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Tt = (t) => "initialize" in t && typeof t.initialize == "function", qt = (t) => "getHead" in t && typeof t.getHead == "function", It = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Oe = new Et(), Ft = gt(() => ({}));
602
- class Rt {
576
+ const st = (t) => "getRoutes" in t && typeof t.getRoutes == "function", rt = (t) => "initialize" in t && typeof t.initialize == "function", at = (t) => "getHead" in t && typeof t.getHead == "function", nt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ce = new $e(), it = Le(() => ({}));
577
+ class ot {
603
578
  constructor(e) {
604
579
  g(this, "plugins", []);
605
580
  g(this, "navigationPlugins");
@@ -610,27 +585,27 @@ class Rt {
610
585
  g(this, "state");
611
586
  g(this, "initialize", async () => {
612
587
  await Promise.all([
613
- this.plugins.filter(Tt).map((e) => {
588
+ this.plugins.filter(rt).map((e) => {
614
589
  var s;
615
590
  return (s = e.initialize) == null ? void 0 : s.call(e, this);
616
591
  })
617
592
  ]);
618
593
  });
619
594
  g(this, "invalidateCache", async (e) => {
620
- await Oe.invalidateQueries({ queryKey: e });
595
+ await ce.invalidateQueries({ queryKey: e });
621
596
  });
622
597
  g(this, "getApiIdentities", async () => (await Promise.all(
623
- this.plugins.filter(It).map((s) => s.getIdentities(this))
598
+ this.plugins.filter(nt).map((s) => s.getIdentities(this))
624
599
  )).flat());
625
600
  g(this, "getNavigation", async (e) => (await Promise.all(
626
601
  this.navigationPlugins.map(
627
- async (a) => {
628
- var r;
629
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
602
+ async (r) => {
603
+ var a;
604
+ return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
630
605
  }
631
606
  )
632
- )).flatMap((a) => a ?? []));
633
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Me), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Ft;
607
+ )).flatMap((r) => r ?? []));
608
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(st), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = it;
634
609
  }
635
610
  async signRequest(e) {
636
611
  if (!this.authentication)
@@ -639,23 +614,15 @@ class Rt {
639
614
  return e.headers.set("Authorization", `Bearer ${s}`), e;
640
615
  }
641
616
  }
642
- function Ae({ error: t }) {
643
- const e = (t == null ? void 0 : t.message) ?? "Something went wrong", s = t == null ? void 0 : t.stack;
644
- return /* @__PURE__ */ n.jsx("div", { className: "flex h-screen max-h-screen min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
645
- /* @__PURE__ */ n.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: "Something went wrong" }),
646
- /* @__PURE__ */ n.jsx("p", { className: "mt-5 text-h1-text", children: e }),
647
- s ? /* @__PURE__ */ n.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: s }) : null
648
- ] }) });
649
- }
650
- function Ht({ error: t, resetErrorBoundary: e }) {
651
- return /* @__PURE__ */ n.jsx(Ae, { error: t });
617
+ function ut({ error: t, resetErrorBoundary: e }) {
618
+ return /* @__PURE__ */ i.jsx(Ue, { error: t });
652
619
  }
653
- const Lt = () => {
654
- const { navigation: t } = _();
655
- 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(
656
- U,
620
+ const lt = () => {
621
+ const { navigation: t } = oe();
622
+ return t.length <= 1 ? null : /* @__PURE__ */ i.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ i.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(
623
+ ve,
657
624
  {
658
- className: ({ isActive: s }) => Le(
625
+ className: ({ isActive: s }) => be(
659
626
  "block py-3.5 font-medium -mb-px border-b-2",
660
627
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
661
628
  ),
@@ -663,358 +630,80 @@ const Lt = () => {
663
630
  children: e.label
664
631
  }
665
632
  ) }, e.label)) }) });
666
- }, Ee = ye(function() {
667
- const [e, s] = Ue(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: c } = xt(), { page: h } = _(), b = e ? Ct : Nt;
668
- 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: [
669
- /* @__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: [
670
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
671
- (h == null ? void 0 : h.logo) && /* @__PURE__ */ n.jsx("img", { src: h.logo, alt: h.pageTitle, className: "h-10" }),
672
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
633
+ }, ct = le(function() {
634
+ const [e, s] = Pe(), { isAuthenticated: r, profile: a, isAuthEnabled: o, login: u, logout: d } = Ve(), { page: h } = oe(), P = e ? Xe : Ge;
635
+ return /* @__PURE__ */ i.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ i.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
636
+ /* @__PURE__ */ i.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: [
637
+ /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-3.5", children: [
638
+ (h == null ? void 0 : h.logo) && /* @__PURE__ */ i.jsx("img", { src: h.logo, alt: h.pageTitle, className: "h-10" }),
639
+ /* @__PURE__ */ i.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
673
640
  ] }),
674
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
675
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
676
- /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
677
- o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
641
+ /* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
642
+ /* @__PURE__ */ i.jsx("div", { className: "w-full max-w-prose" }),
643
+ /* @__PURE__ */ i.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
644
+ o && /* @__PURE__ */ i.jsx(i.Fragment, { children: r ? /* @__PURE__ */ i.jsxs(
678
645
  "button",
679
646
  {
680
647
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
681
- onClick: c,
648
+ onClick: d,
682
649
  children: [
683
650
  "Logout ",
684
- r != null && r.email ? `(${r.email})` : null
651
+ a != null && a.email ? `(${a.email})` : null
685
652
  ]
686
653
  }
687
- ) : /* @__PURE__ */ n.jsx(
654
+ ) : /* @__PURE__ */ i.jsx(
688
655
  "button",
689
656
  {
690
657
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
691
- onClick: l,
658
+ onClick: u,
692
659
  children: "Login"
693
660
  }
694
661
  ) }),
695
- /* @__PURE__ */ n.jsx(
662
+ /* @__PURE__ */ i.jsx(
696
663
  "button",
697
664
  {
698
665
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
699
666
  onClick: s,
700
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
667
+ children: /* @__PURE__ */ i.jsx(P, { size: 18 })
701
668
  }
702
669
  )
703
670
  ] })
704
671
  ] })
705
672
  ] }),
706
- /* @__PURE__ */ n.jsx(Lt, {})
673
+ /* @__PURE__ */ i.jsx(lt, {})
707
674
  ] }) });
708
- }), Qe = {
709
- Header: Ee
710
- }, Bt = xe(Qe), Kt = Bt.Provider, zt = () => {
711
- const t = D(), { setActiveAnchor: e } = X();
712
- T(() => {
713
- if (!t.hash) return;
714
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
715
- if (a) {
716
- requestAnimationFrame(() => {
717
- a.scrollIntoView(), requestIdleCallback(() => e(s));
718
- });
719
- return;
720
- }
721
- const r = new MutationObserver((o, l) => {
722
- const c = document.getElementById(decodeURIComponent(s));
723
- c && (c.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
724
- });
725
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
726
- }, [t.hash, e]);
727
- }, Vt = () => {
728
- const t = D(), e = K(t.pathname);
729
- T(() => {
730
- e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
731
- }, [t.pathname]);
732
- }, De = ({
733
- item: t,
734
- defaultOpen: e,
735
- path: s
736
- }) => {
737
- const [a, r] = ct(e), o = D(), l = K(o.pathname);
738
- return T(() => {
739
- !a && l.current !== o.pathname && r(G(t, o.pathname, s)), l.current = o.pathname;
740
- }, [a, t, s, o.pathname]), [a, r];
741
- }, R = Be(
742
- "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
743
- {
744
- variants: {
745
- isActive: {
746
- true: "text-primary font-medium",
747
- false: "text-foreground/80"
748
- },
749
- isMuted: {
750
- true: "text-foreground/30",
751
- false: ""
752
- }
753
- }
754
- }
755
- ), Ut = "data-anchor", Se = ({
756
- category: t,
757
- item: e,
758
- activeAnchor: s,
759
- currentTopNavItem: a,
760
- basePath: r = ""
761
- }) => {
762
- const o = W(e) ? Ne(r, e.path) : "", l = D(), [c, h] = De({
763
- item: e,
764
- path: o,
765
- defaultOpen: () => G(e, l.pathname, o)
766
- });
767
- if (Pt(e)) {
768
- const f = L(
769
- "flex items-center gap-2",
770
- R({
771
- isActive: e.href === l.pathname
772
- })
773
- );
774
- return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
775
- "a",
776
- {
777
- className: f,
778
- href: e.href,
779
- target: "_blank",
780
- rel: "noopener noreferrer",
781
- children: [
782
- e.label,
783
- /* @__PURE__ */ n.jsx(wt, { size: 14 })
784
- ]
785
- }
786
- ) : /* @__PURE__ */ n.jsx(U, { className: f, to: e.href, children: e.label });
787
- }
788
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
789
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
790
- e.icon,
791
- typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
792
- ] }),
793
- e.children && /* @__PURE__ */ n.jsx(
794
- ke,
795
- {
796
- size: 16,
797
- className: "transition shrink-0 group-data-[state=open]:rotate-90"
798
- }
799
- )
800
- ] });
801
- return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
802
- Pe,
803
- {
804
- open: c,
805
- onOpenChange: () => h((f) => !f),
806
- className: "flex flex-col",
807
- children: [
808
- /* @__PURE__ */ n.jsx(
809
- we,
810
- {
811
- className: L(
812
- "group text-start",
813
- R({ isActive: !1 })
814
- ),
815
- children: b
816
- }
817
- ),
818
- /* @__PURE__ */ n.jsx(Ce, { 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((f) => /* @__PURE__ */ n.jsx(
819
- Se,
820
- {
821
- category: t,
822
- item: f,
823
- activeAnchor: s,
824
- currentTopNavItem: a,
825
- basePath: o
826
- },
827
- W(f) ? f.path : f.href
828
- )) }) })
829
- ]
830
- }
831
- ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
832
- dt,
833
- {
834
- to: e.path,
835
- [Ut]: e.path,
836
- className: R({
837
- isActive: e.path.slice(1) === s,
838
- isMuted: e.muted
839
- }),
840
- children: b
841
- }
842
- ) : /* @__PURE__ */ n.jsx(
843
- U,
844
- {
845
- className: ({ isActive: f }) => R({ isActive: f }),
846
- to: o,
847
- children: b
848
- }
849
- ) });
850
- }, Wt = ({
851
- category: t
675
+ }), he = {
676
+ Header: ct
677
+ }, ht = ue(he), dt = ht.Provider, ft = ({
678
+ children: t,
679
+ ...e
852
680
  }) => {
853
- const { activeAnchor: e } = X(), s = at(), a = D(), r = t.collapsible ?? !0, [o, l] = De({
854
- item: t,
855
- path: (s == null ? void 0 : s.path) ?? "",
856
- defaultOpen: () => !r || t.expanded || G(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
857
- });
858
- return /* @__PURE__ */ n.jsxs(
859
- Pe,
860
- {
861
- open: o,
862
- onOpenChange: () => l((c) => !c),
863
- children: [
864
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(we, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
865
- "h5",
866
- {
867
- className: L(
868
- "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]",
869
- r ? "hover:bg-accent" : "cursor-auto"
870
- ),
871
- children: [
872
- t.label,
873
- r && /* @__PURE__ */ n.jsx(
874
- ke,
875
- {
876
- className: "group-data-[state=open]:rotate-90 transition",
877
- size: 16
878
- }
879
- )
880
- ]
881
- }
882
- ) }) : "Endpoints",
883
- /* @__PURE__ */ n.jsx(Ce, { 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(
884
- Se,
885
- {
886
- category: t,
887
- item: c,
888
- activeAnchor: e,
889
- currentTopNavItem: s,
890
- basePath: Ne(s == null ? void 0 : s.path, t.path)
891
- },
892
- W(c) ? c.path + c.label : c.href
893
- )) }) })
894
- ]
895
- },
896
- t.label
897
- );
898
- }, Xt = ut(function({ children: e, className: s, pushMainContent: a }, r) {
899
- return /* @__PURE__ */ n.jsx(
900
- "nav",
901
- {
902
- "data-navigation": String(a),
903
- className: L(
904
- "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",
905
- s
906
- ),
907
- ref: r,
908
- children: e
909
- }
910
- );
911
- }), _t = () => {
912
- const t = K(null), e = nt();
913
- return /* @__PURE__ */ n.jsx(
914
- Xt,
915
- {
916
- ref: t,
917
- pushMainContent: e.data.items.length > 0,
918
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Wt, { category: s }, s.label))
919
- }
920
- );
921
- }, Te = ({ children: t }) => {
922
- const e = D(), { setActiveAnchor: s } = X(), { meta: a } = _();
923
- zt(), Vt();
924
- const r = K(e.pathname);
925
- return T(() => {
926
- e.pathname !== r.current && s(""), r.current = e.pathname;
927
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
928
- /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
929
- (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
930
- (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
931
- ] }),
932
- /* @__PURE__ */ n.jsx(Ee, {}),
933
- /* @__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(
934
- be,
935
- {
936
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(jt, {}) }),
937
- children: [
938
- /* @__PURE__ */ n.jsx(_t, {}),
939
- /* @__PURE__ */ n.jsx(
940
- "main",
941
- {
942
- className: `dark:border-white/10 translate-x-0 h-full
943
- lg:overflow-visible
944
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
945
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
946
- children: t ?? /* @__PURE__ */ n.jsx(yt, {})
947
- }
948
- )
949
- ]
950
- }
951
- ) })
952
- ] });
953
- };
954
- function Gt() {
955
- const t = bt();
956
- return /* @__PURE__ */ n.jsx(Te, { children: /* @__PURE__ */ n.jsx(Ae, { error: t }) });
957
- }
958
- function Jt({ plugins: t }) {
959
- const e = H(() => {
960
- const s = (t ?? []).flatMap(
961
- (a) => Me(a) ? a.getRoutes() : []
962
- );
963
- return Ke([
964
- {
965
- path: "/",
966
- element: /* @__PURE__ */ n.jsx(Te, {}),
967
- errorElement: /* @__PURE__ */ n.jsx(Gt, {}),
968
- children: s
969
- }
970
- ]);
971
- }, [t]);
972
- return /* @__PURE__ */ n.jsx(ze, { router: e });
973
- }
974
- const Yt = (t) => {
975
- var o;
976
- const e = H(
977
- () => ({ ...Qe, ...t.overrides }),
978
- [t.overrides]
979
- ), s = H(
980
- () => ({ ...We, ...t.mdxComponents }),
981
- [t.mdxComponents]
982
- ), a = H(() => new Rt(t), [t]);
983
- T(() => {
681
+ var u;
682
+ const s = S(
683
+ () => ({ ...he, ...e.overrides }),
684
+ [e.overrides]
685
+ ), r = S(
686
+ () => ({ ...xe, ...e.mdxComponents }),
687
+ [e.mdxComponents]
688
+ ), a = S(() => new ot(e), [e]);
689
+ Ie(() => {
984
690
  a.initialize();
985
691
  }, [a]);
986
- const r = (o = t.plugins) == null ? void 0 : o.filter(qt).map((l, c) => {
987
- var h;
988
- return /* @__PURE__ */ n.jsx(ht, { children: (h = l.getHead) == null ? void 0 : h.call(l) }, c);
692
+ const o = (u = e.plugins) == null ? void 0 : u.filter(at).map((d, h) => {
693
+ var P;
694
+ return /* @__PURE__ */ i.jsx(He, { children: (P = d.getHead) == null ? void 0 : P.call(d) }, h);
989
695
  });
990
- return /* @__PURE__ */ n.jsx(rt, { client: Oe, children: /* @__PURE__ */ n.jsxs(ft, { children: [
991
- /* @__PURE__ */ n.jsx(je, { children: r }),
992
- /* @__PURE__ */ n.jsx(it, { value: a, children: /* @__PURE__ */ n.jsx(mt, { components: s, children: /* @__PURE__ */ n.jsx(Xe, { children: /* @__PURE__ */ n.jsx(Kt, { value: e, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(
993
- be,
994
- {
995
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
996
- children: /* @__PURE__ */ n.jsx(
997
- Jt,
998
- {
999
- plugins: [
1000
- ...t.plugins ?? [],
1001
- ...t.authentication ? [t.authentication] : []
1002
- ]
1003
- }
1004
- )
1005
- }
1006
- ) }) }) }) }) })
1007
- ] }) });
1008
- }, qe = (t) => {
1009
- const e = ye(Yt);
1010
- return /* @__PURE__ */ n.jsx(Dt, { FallbackComponent: Ht, children: /* @__PURE__ */ n.jsx(e, { ...t }) });
1011
- };
1012
- qe.displayName = "DevPortal";
1013
- const ds = pt, fs = Ge, ms = qe, ps = Ve;
696
+ return /* @__PURE__ */ i.jsxs(qe, { client: ce, children: [
697
+ /* @__PURE__ */ i.jsx(Ke, { children: o }),
698
+ /* @__PURE__ */ i.jsx(Fe, { value: a, children: /* @__PURE__ */ i.jsx(Be, { components: r, children: /* @__PURE__ */ i.jsx(Me, { children: /* @__PURE__ */ i.jsx(dt, { value: s, children: /* @__PURE__ */ i.jsx(Ce, { children: t }) }) }) }) })
699
+ ] });
700
+ }, mt = le(ft), de = (t) => /* @__PURE__ */ i.jsx(et, { FallbackComponent: ut, children: /* @__PURE__ */ i.jsx(mt, { ...t }) });
701
+ de.displayName = "DevPortal";
702
+ const wt = ze, Qt = we, Ot = de, Et = Qe;
1014
703
  export {
1015
- fs as Callout,
1016
- ms as DevPortal,
1017
- ps as Link,
1018
- ds as useMDXComponents
704
+ Qt as Callout,
705
+ Ot as DevPortal,
706
+ Et as Link,
707
+ wt as useMDXComponents
1019
708
  };
1020
709
  //# sourceMappingURL=zudoku.components.js.map