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,412 +0,0 @@
1
- var W = (e) => {
2
- throw TypeError(e);
3
- };
4
- var N = (e, t, s) => t.has(e) || W("Cannot " + s);
5
- var c = (e, t, s) => (N(e, t, "read from private field"), s ? s.call(e) : t.get(e)), b = (e, t, s) => t.has(e) ? W("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), E = (e, t, s, n) => (N(e, t, "write to private field"), n ? n.call(e, s) : t.set(e, s), s), C = (e, t, s) => (N(e, t, "access private method"), s);
6
- import { R as L, z, n as Z } from "./DevPortalProvider-BMk-RCE0.js";
7
- import * as r from "react";
8
- import { j as P } from "./jsx-runtime-SV6hXQua.js";
9
- import * as q from "react-dom";
10
- var y, h, w, x, S, k, ct = (k = class extends L {
11
- constructor(t) {
12
- super();
13
- b(this, x);
14
- b(this, y);
15
- b(this, h);
16
- b(this, w);
17
- this.mutationId = t.mutationId, E(this, h, t.mutationCache), E(this, y, []), this.state = t.state || J(), this.setOptions(t.options), this.scheduleGc();
18
- }
19
- setOptions(t) {
20
- this.options = t, this.updateGcTime(this.options.gcTime);
21
- }
22
- get meta() {
23
- return this.options.meta;
24
- }
25
- addObserver(t) {
26
- c(this, y).includes(t) || (c(this, y).push(t), this.clearGcTimeout(), c(this, h).notify({
27
- type: "observerAdded",
28
- mutation: this,
29
- observer: t
30
- }));
31
- }
32
- removeObserver(t) {
33
- E(this, y, c(this, y).filter((s) => s !== t)), this.scheduleGc(), c(this, h).notify({
34
- type: "observerRemoved",
35
- mutation: this,
36
- observer: t
37
- });
38
- }
39
- optionalRemove() {
40
- c(this, y).length || (this.state.status === "pending" ? this.scheduleGc() : c(this, h).remove(this));
41
- }
42
- continue() {
43
- var t;
44
- return ((t = c(this, w)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
45
- this.execute(this.state.variables);
46
- }
47
- async execute(t) {
48
- var o, i, u, a, l, d, R, p, m, g, v, j, M, $, A, I, _, F, G, V;
49
- E(this, w, z({
50
- fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
51
- onFail: (f, O) => {
52
- C(this, x, S).call(this, { type: "failed", failureCount: f, error: O });
53
- },
54
- onPause: () => {
55
- C(this, x, S).call(this, { type: "pause" });
56
- },
57
- onContinue: () => {
58
- C(this, x, S).call(this, { type: "continue" });
59
- },
60
- retry: this.options.retry ?? 0,
61
- retryDelay: this.options.retryDelay,
62
- networkMode: this.options.networkMode,
63
- canRun: () => c(this, h).canRun(this)
64
- }));
65
- const s = this.state.status === "pending", n = !c(this, w).canStart();
66
- try {
67
- if (!s) {
68
- C(this, x, S).call(this, { type: "pending", variables: t, isPaused: n }), await ((i = (o = c(this, h).config).onMutate) == null ? void 0 : i.call(
69
- o,
70
- t,
71
- this
72
- ));
73
- const O = await ((a = (u = this.options).onMutate) == null ? void 0 : a.call(u, t));
74
- O !== this.state.context && C(this, x, S).call(this, {
75
- type: "pending",
76
- context: O,
77
- variables: t,
78
- isPaused: n
79
- });
80
- }
81
- const f = await c(this, w).start();
82
- return await ((d = (l = c(this, h).config).onSuccess) == null ? void 0 : d.call(
83
- l,
84
- f,
85
- t,
86
- this.state.context,
87
- this
88
- )), await ((p = (R = this.options).onSuccess) == null ? void 0 : p.call(R, f, t, this.state.context)), await ((g = (m = c(this, h).config).onSettled) == null ? void 0 : g.call(
89
- m,
90
- f,
91
- null,
92
- this.state.variables,
93
- this.state.context,
94
- this
95
- )), await ((j = (v = this.options).onSettled) == null ? void 0 : j.call(v, f, null, t, this.state.context)), C(this, x, S).call(this, { type: "success", data: f }), f;
96
- } catch (f) {
97
- try {
98
- throw await (($ = (M = c(this, h).config).onError) == null ? void 0 : $.call(
99
- M,
100
- f,
101
- t,
102
- this.state.context,
103
- this
104
- )), await ((I = (A = this.options).onError) == null ? void 0 : I.call(
105
- A,
106
- f,
107
- t,
108
- this.state.context
109
- )), await ((F = (_ = c(this, h).config).onSettled) == null ? void 0 : F.call(
110
- _,
111
- void 0,
112
- f,
113
- this.state.variables,
114
- this.state.context,
115
- this
116
- )), await ((V = (G = this.options).onSettled) == null ? void 0 : V.call(
117
- G,
118
- void 0,
119
- f,
120
- t,
121
- this.state.context
122
- )), f;
123
- } finally {
124
- C(this, x, S).call(this, { type: "error", error: f });
125
- }
126
- } finally {
127
- c(this, h).runNext(this);
128
- }
129
- }
130
- }, y = new WeakMap(), h = new WeakMap(), w = new WeakMap(), x = new WeakSet(), S = function(t) {
131
- const s = (n) => {
132
- switch (t.type) {
133
- case "failed":
134
- return {
135
- ...n,
136
- failureCount: t.failureCount,
137
- failureReason: t.error
138
- };
139
- case "pause":
140
- return {
141
- ...n,
142
- isPaused: !0
143
- };
144
- case "continue":
145
- return {
146
- ...n,
147
- isPaused: !1
148
- };
149
- case "pending":
150
- return {
151
- ...n,
152
- context: t.context,
153
- data: void 0,
154
- failureCount: 0,
155
- failureReason: null,
156
- error: null,
157
- isPaused: t.isPaused,
158
- status: "pending",
159
- variables: t.variables,
160
- submittedAt: Date.now()
161
- };
162
- case "success":
163
- return {
164
- ...n,
165
- data: t.data,
166
- failureCount: 0,
167
- failureReason: null,
168
- error: null,
169
- status: "success",
170
- isPaused: !1
171
- };
172
- case "error":
173
- return {
174
- ...n,
175
- data: void 0,
176
- error: t.error,
177
- failureCount: n.failureCount + 1,
178
- failureReason: t.error,
179
- isPaused: !1,
180
- status: "error"
181
- };
182
- }
183
- };
184
- this.state = s(this.state), Z.batch(() => {
185
- c(this, y).forEach((n) => {
186
- n.onMutationUpdate(t);
187
- }), c(this, h).notify({
188
- mutation: this,
189
- type: "updated",
190
- action: t
191
- });
192
- });
193
- }, k);
194
- function J() {
195
- return {
196
- context: void 0,
197
- data: void 0,
198
- error: null,
199
- failureCount: 0,
200
- failureReason: null,
201
- isPaused: !1,
202
- status: "idle",
203
- variables: void 0,
204
- submittedAt: 0
205
- };
206
- }
207
- function lt(e, t, { checkForDefaultPrevented: s = !0 } = {}) {
208
- return function(o) {
209
- if (e == null || e(o), s === !1 || !o.defaultPrevented)
210
- return t == null ? void 0 : t(o);
211
- };
212
- }
213
- function ft(e, t) {
214
- const s = r.createContext(t);
215
- function n(i) {
216
- const { children: u, ...a } = i, l = r.useMemo(() => a, Object.values(a));
217
- return /* @__PURE__ */ P.jsx(s.Provider, { value: l, children: u });
218
- }
219
- function o(i) {
220
- const u = r.useContext(s);
221
- if (u) return u;
222
- if (t !== void 0) return t;
223
- throw new Error(`\`${i}\` must be used within \`${e}\``);
224
- }
225
- return n.displayName = e + "Provider", [n, o];
226
- }
227
- function ht(e, t = []) {
228
- let s = [];
229
- function n(i, u) {
230
- const a = r.createContext(u), l = s.length;
231
- s = [...s, u];
232
- function d(p) {
233
- const { scope: m, children: g, ...v } = p, j = (m == null ? void 0 : m[e][l]) || a, M = r.useMemo(() => v, Object.values(v));
234
- return /* @__PURE__ */ P.jsx(j.Provider, { value: M, children: g });
235
- }
236
- function R(p, m) {
237
- const g = (m == null ? void 0 : m[e][l]) || a, v = r.useContext(g);
238
- if (v) return v;
239
- if (u !== void 0) return u;
240
- throw new Error(`\`${p}\` must be used within \`${i}\``);
241
- }
242
- return d.displayName = i + "Provider", [d, R];
243
- }
244
- const o = () => {
245
- const i = s.map((u) => r.createContext(u));
246
- return function(a) {
247
- const l = (a == null ? void 0 : a[e]) || i;
248
- return r.useMemo(
249
- () => ({ [`__scope${e}`]: { ...a, [e]: l } }),
250
- [a, l]
251
- );
252
- };
253
- };
254
- return o.scopeName = e, [n, K(o, ...t)];
255
- }
256
- function K(...e) {
257
- const t = e[0];
258
- if (e.length === 1) return t;
259
- const s = () => {
260
- const n = e.map((o) => ({
261
- useScope: o(),
262
- scopeName: o.scopeName
263
- }));
264
- return function(i) {
265
- const u = n.reduce((a, { useScope: l, scopeName: d }) => {
266
- const p = l(i)[`__scope${d}`];
267
- return { ...a, ...p };
268
- }, {});
269
- return r.useMemo(() => ({ [`__scope${t.scopeName}`]: u }), [u]);
270
- };
271
- };
272
- return s.scopeName = t.scopeName, s;
273
- }
274
- function T(e) {
275
- const t = r.useRef(e);
276
- return r.useEffect(() => {
277
- t.current = e;
278
- }), r.useMemo(() => (...s) => {
279
- var n;
280
- return (n = t.current) == null ? void 0 : n.call(t, ...s);
281
- }, []);
282
- }
283
- function dt({
284
- prop: e,
285
- defaultProp: t,
286
- onChange: s = () => {
287
- }
288
- }) {
289
- const [n, o] = Q({ defaultProp: t, onChange: s }), i = e !== void 0, u = i ? e : n, a = T(s), l = r.useCallback(
290
- (d) => {
291
- if (i) {
292
- const p = typeof d == "function" ? d(e) : d;
293
- p !== e && a(p);
294
- } else
295
- o(d);
296
- },
297
- [i, e, o, a]
298
- );
299
- return [u, l];
300
- }
301
- function Q({
302
- defaultProp: e,
303
- onChange: t
304
- }) {
305
- const s = r.useState(e), [n] = s, o = r.useRef(n), i = T(t);
306
- return r.useEffect(() => {
307
- o.current !== n && (i(n), o.current = n);
308
- }, [n, o, i]), s;
309
- }
310
- var X = globalThis != null && globalThis.document ? r.useLayoutEffect : () => {
311
- };
312
- function Y(e, t) {
313
- typeof e == "function" ? e(t) : e != null && (e.current = t);
314
- }
315
- function B(...e) {
316
- return (t) => e.forEach((s) => Y(s, t));
317
- }
318
- function pt(...e) {
319
- return r.useCallback(B(...e), e);
320
- }
321
- var U = r.forwardRef((e, t) => {
322
- const { children: s, ...n } = e, o = r.Children.toArray(s), i = o.find(tt);
323
- if (i) {
324
- const u = i.props.children, a = o.map((l) => l === i ? r.Children.count(u) > 1 ? r.Children.only(null) : r.isValidElement(u) ? u.props.children : null : l);
325
- return /* @__PURE__ */ P.jsx(D, { ...n, ref: t, children: r.isValidElement(u) ? r.cloneElement(u, void 0, a) : null });
326
- }
327
- return /* @__PURE__ */ P.jsx(D, { ...n, ref: t, children: s });
328
- });
329
- U.displayName = "Slot";
330
- var D = r.forwardRef((e, t) => {
331
- const { children: s, ...n } = e;
332
- if (r.isValidElement(s)) {
333
- const o = st(s);
334
- return r.cloneElement(s, {
335
- ...et(n, s.props),
336
- // @ts-ignore
337
- ref: t ? B(t, o) : o
338
- });
339
- }
340
- return r.Children.count(s) > 1 ? r.Children.only(null) : null;
341
- });
342
- D.displayName = "SlotClone";
343
- var H = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
344
- function tt(e) {
345
- return r.isValidElement(e) && e.type === H;
346
- }
347
- function et(e, t) {
348
- const s = { ...t };
349
- for (const n in t) {
350
- const o = e[n], i = t[n];
351
- /^on[A-Z]/.test(n) ? o && i ? s[n] = (...a) => {
352
- i(...a), o(...a);
353
- } : o && (s[n] = o) : n === "style" ? s[n] = { ...o, ...i } : n === "className" && (s[n] = [o, i].filter(Boolean).join(" "));
354
- }
355
- return { ...e, ...s };
356
- }
357
- function st(e) {
358
- var n, o;
359
- let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, s = t && "isReactWarning" in t && t.isReactWarning;
360
- return s ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, s = t && "isReactWarning" in t && t.isReactWarning, s ? e.props.ref : e.props.ref || e.ref);
361
- }
362
- var nt = [
363
- "a",
364
- "button",
365
- "div",
366
- "form",
367
- "h2",
368
- "h3",
369
- "img",
370
- "input",
371
- "label",
372
- "li",
373
- "nav",
374
- "ol",
375
- "p",
376
- "span",
377
- "svg",
378
- "ul"
379
- ], mt = nt.reduce((e, t) => {
380
- const s = r.forwardRef((n, o) => {
381
- const { asChild: i, ...u } = n, a = i ? U : t;
382
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(a, { ...u, ref: o });
383
- });
384
- return s.displayName = `Primitive.${t}`, { ...e, [t]: s };
385
- }, {});
386
- function yt(e, t) {
387
- e && q.flushSync(() => e.dispatchEvent(t));
388
- }
389
- var ot = r.useId || (() => {
390
- }), rt = 0;
391
- function xt(e) {
392
- const [t, s] = r.useState(ot());
393
- return X(() => {
394
- s((n) => n ?? String(rt++));
395
- }, [e]), t ? `radix-${t}` : "";
396
- }
397
- export {
398
- ct as M,
399
- mt as P,
400
- U as S,
401
- dt as a,
402
- T as b,
403
- ht as c,
404
- lt as d,
405
- xt as e,
406
- ft as f,
407
- X as g,
408
- J as h,
409
- yt as i,
410
- pt as u
411
- };
412
- //# sourceMappingURL=index-BaOOUFsA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BaOOUFsA.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.50.1/node_modules/@tanstack/query-core/build/modern/mutation.js","../../../node_modules/.pnpm/@radix-ui+primitive@1.1.0/node_modules/@radix-ui/primitive/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-context@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-slot@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-primitive@2.0.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-primitive/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-id@1.1.0_@types+react@18.3.3_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue: () => {\n this.#dispatch({ type: \"continue\" });\n },\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (!restored) {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map","// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-controllable-state/src/useControllableState.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/compose-refs/src/composeRefs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => refs.forEach((ref) => setRef(ref, node));\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/slot/src/Slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n return React.cloneElement(children, {\n ...mergeProps(slotProps, children.props),\n // @ts-ignore\n ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef\n });\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/primitive/src/Primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Mutation","_a","Removable","config","__privateAdd","_Mutation_instances","_observers","_mutationCache","_retryer","__privateSet","getDefaultState","options","observer","__privateGet","x","variables","createRetryer","failureCount","error","__privateMethod","dispatch_fn","restored","isPaused","_b","context","_d","_c","data","_f","_e","_h","_g","_j","_i","_l","_k","_n","_m","_p","_o","_r","_q","_t","_s","action","reducer","state","notifyManager","composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event","createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope","useCallbackRef","callback","callbackRef","args","useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","handleChange","setValue","nextValue","value2","uncontrolledState","prevValueRef","useLayoutEffect2","setRef","ref","composeRefs","refs","node","useComposedRefs","Slot","forwardedRef","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","SlotClone","childrenRef","getElementRef","mergeProps","Slottable","Fragment","childProps","overrideProps","propName","slotPropValue","childPropValue","element","getter","mayWarn","NODES","Primitive","primitive","Node","asChild","primitiveProps","Comp","dispatchDiscreteCustomEvent","target","ReactDOM","useReactId","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":";;;;;;;;;sBAIIA,MAAWC,IAAA,cAAcC,EAAU;AAAA,EAIrC,YAAYC,GAAQ;AAClB;AALW,IAAAC,EAAA,MAAAC;AACb,IAAAD,EAAA,MAAAE;AACA,IAAAF,EAAA,MAAAG;AACA,IAAAH,EAAA,MAAAI;AAGE,SAAK,aAAaL,EAAO,YACzBM,EAAA,MAAKF,GAAiBJ,EAAO,gBAC7BM,EAAA,MAAKH,GAAa,KAClB,KAAK,QAAQH,EAAO,SAASO,EAAe,GAC5C,KAAK,WAAWP,EAAO,OAAO,GAC9B,KAAK,WAAU;AAAA,EAChB;AAAA,EACD,WAAWQ,GAAS;AAClB,SAAK,UAAUA,GACf,KAAK,aAAa,KAAK,QAAQ,MAAM;AAAA,EACtC;AAAA,EACD,IAAI,OAAO;AACT,WAAO,KAAK,QAAQ;AAAA,EACrB;AAAA,EACD,YAAYC,GAAU;AACpB,IAAKC,EAAA,MAAKP,GAAW,SAASM,CAAQ,MACpCC,EAAA,MAAKP,GAAW,KAAKM,CAAQ,GAC7B,KAAK,eAAc,GACnBC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,U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