@quantajs/react 2.0.0-beta.6 → 2.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/index.cjs +23 -23
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1231 -306
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,433 +1,1358 @@
|
|
|
1
|
-
/*! MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 QuantaJS
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
/*! MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 QuantaJS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
24
|
-
import { logger as
|
|
25
|
-
import { computed as
|
|
26
|
-
const
|
|
23
|
+
import yt, { useRef as fe, useCallback as F, useSyncExternalStore as Ae, createContext as gt, useContext as _t, useEffect as wt } from "react";
|
|
24
|
+
import { logger as R, createStore as vt } from "@quantajs/core";
|
|
25
|
+
import { computed as wr, createStore as vr, logger as mr, reactive as br, watch as kr } from "@quantajs/core";
|
|
26
|
+
const mt = (e, t) => {
|
|
27
27
|
try {
|
|
28
|
-
return
|
|
28
|
+
return e && typeof e == "object" && "value" in e ? e.value : typeof e == "function" ? e.bind(t) : e;
|
|
29
29
|
} catch {
|
|
30
|
-
return
|
|
30
|
+
return e;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
function
|
|
34
|
-
if (!
|
|
35
|
-
const
|
|
33
|
+
function Re(e, t) {
|
|
34
|
+
if (!e.subscribe) {
|
|
35
|
+
const s = new Error(
|
|
36
36
|
"QuantaJS store missing `subscribe`—ensure core v0.1.0-beta.2+."
|
|
37
37
|
);
|
|
38
|
-
throw
|
|
38
|
+
throw R.error(`useQuantaStore: ${s.message}`), s;
|
|
39
39
|
}
|
|
40
|
-
if (!
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
44
|
-
return Object.keys(
|
|
45
|
-
|
|
46
|
-
}), Object.keys(
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
}), Object.keys(
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
}, [
|
|
53
|
-
(
|
|
54
|
-
const
|
|
55
|
-
|
|
40
|
+
if (!t) {
|
|
41
|
+
const s = fe(null), f = F(() => {
|
|
42
|
+
if (s.current) return s.current;
|
|
43
|
+
const a = {};
|
|
44
|
+
return Object.keys(e.state || {}).forEach((u) => {
|
|
45
|
+
a[u] = e[u];
|
|
46
|
+
}), Object.keys(e.getters || {}).forEach((u) => {
|
|
47
|
+
const x = e.getters[u];
|
|
48
|
+
a[u] = mt(x, e);
|
|
49
|
+
}), Object.keys(e.actions || {}).forEach((u) => {
|
|
50
|
+
a[u] = e.actions[u].bind(e);
|
|
51
|
+
}), a.$reset = e.$reset, a.$persist = e.$persist, a.$destroy = e.$destroy, s.current = a, a;
|
|
52
|
+
}, [e]), d = F(
|
|
53
|
+
(a) => {
|
|
54
|
+
const u = (x) => {
|
|
55
|
+
s.current = null, a();
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return e.subscribe(u);
|
|
58
58
|
},
|
|
59
|
-
[
|
|
60
|
-
),
|
|
61
|
-
() =>
|
|
62
|
-
[
|
|
59
|
+
[e]
|
|
60
|
+
), p = F(
|
|
61
|
+
() => f(),
|
|
62
|
+
[f]
|
|
63
63
|
);
|
|
64
|
-
return
|
|
64
|
+
return Ae(d, f, p);
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
return
|
|
69
|
-
}, [
|
|
70
|
-
(
|
|
71
|
-
const
|
|
66
|
+
const r = fe(null), i = F(() => {
|
|
67
|
+
const s = t(e);
|
|
68
|
+
return r.current = s, s;
|
|
69
|
+
}, [e, t]), l = F(
|
|
70
|
+
(s) => {
|
|
71
|
+
const f = (d) => {
|
|
72
72
|
try {
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
} catch (
|
|
76
|
-
|
|
77
|
-
`useQuantaStore: Selector update failed: ${String(
|
|
73
|
+
const p = t(e);
|
|
74
|
+
r.current !== p && (r.current = p, s());
|
|
75
|
+
} catch (p) {
|
|
76
|
+
R.warn(
|
|
77
|
+
`useQuantaStore: Selector update failed: ${String(p)}`
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
return
|
|
81
|
+
return e.subscribe(f);
|
|
82
82
|
},
|
|
83
|
-
[
|
|
84
|
-
),
|
|
85
|
-
() =>
|
|
86
|
-
[
|
|
83
|
+
[e, t]
|
|
84
|
+
), o = F(() => (r.current === null && i(), r.current), [i]), h = F(
|
|
85
|
+
() => i(),
|
|
86
|
+
[i]
|
|
87
87
|
);
|
|
88
|
-
return
|
|
88
|
+
return Ae(l, o, h);
|
|
89
89
|
}
|
|
90
|
-
const
|
|
91
|
-
function
|
|
90
|
+
const Xe = gt({ stores: {} });
|
|
91
|
+
function bt() {
|
|
92
92
|
try {
|
|
93
|
-
const
|
|
94
|
-
if (!
|
|
95
|
-
const
|
|
96
|
-
throw
|
|
93
|
+
const e = _t(Xe);
|
|
94
|
+
if (!e) {
|
|
95
|
+
const t = "useQuantaContext must be used within a QuantaProvider";
|
|
96
|
+
throw R.error(`QuantaContext: ${t}`), new Error(t);
|
|
97
97
|
}
|
|
98
|
-
return
|
|
99
|
-
} catch (
|
|
100
|
-
throw
|
|
101
|
-
`QuantaContext: Failed to access context: ${
|
|
102
|
-
),
|
|
98
|
+
return e;
|
|
99
|
+
} catch (e) {
|
|
100
|
+
throw R.error(
|
|
101
|
+
`QuantaContext: Failed to access context: ${e instanceof Error ? e.message : String(e)}`
|
|
102
|
+
), e;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function pr(e, t) {
|
|
106
106
|
try {
|
|
107
|
-
const { stores:
|
|
108
|
-
if (!
|
|
109
|
-
const
|
|
110
|
-
throw
|
|
111
|
-
}
|
|
112
|
-
return
|
|
113
|
-
} catch (
|
|
114
|
-
throw
|
|
115
|
-
`useStore: Failed to access store "${
|
|
116
|
-
),
|
|
107
|
+
const { stores: r } = bt(), i = r[e];
|
|
108
|
+
if (!i) {
|
|
109
|
+
const l = `Store with name "${e}" does not exist in the context.`;
|
|
110
|
+
throw R.error(`useStore: ${l}`), new Error(l);
|
|
111
|
+
}
|
|
112
|
+
return t ? Re(i, t) : Re(i);
|
|
113
|
+
} catch (r) {
|
|
114
|
+
throw R.error(
|
|
115
|
+
`useStore: Failed to access store "${e}": ${r instanceof Error ? r.message : String(r)}`
|
|
116
|
+
), r;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ur(e, t, r, i) {
|
|
120
120
|
try {
|
|
121
|
-
const
|
|
121
|
+
const l = fe(
|
|
122
122
|
void 0
|
|
123
123
|
);
|
|
124
|
-
if (!
|
|
124
|
+
if (!l.current)
|
|
125
125
|
try {
|
|
126
|
-
|
|
127
|
-
state:
|
|
128
|
-
getters:
|
|
129
|
-
actions:
|
|
126
|
+
l.current = vt(e, {
|
|
127
|
+
state: t,
|
|
128
|
+
getters: r,
|
|
129
|
+
actions: i
|
|
130
130
|
});
|
|
131
|
-
} catch (
|
|
132
|
-
throw
|
|
133
|
-
`useCreateStore: Failed to create store "${
|
|
134
|
-
),
|
|
131
|
+
} catch (o) {
|
|
132
|
+
throw R.error(
|
|
133
|
+
`useCreateStore: Failed to create store "${e}": ${o instanceof Error ? o.message : String(o)}`
|
|
134
|
+
), o;
|
|
135
135
|
}
|
|
136
|
-
return
|
|
137
|
-
} catch (
|
|
138
|
-
throw
|
|
139
|
-
`useCreateStore: Hook execution failed: ${
|
|
140
|
-
),
|
|
136
|
+
return l.current;
|
|
137
|
+
} catch (l) {
|
|
138
|
+
throw R.error(
|
|
139
|
+
`useCreateStore: Hook execution failed: ${l instanceof Error ? l.message : String(l)}`
|
|
140
|
+
), l;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
var
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
var
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
for (var
|
|
154
|
-
|
|
155
|
-
} else
|
|
156
|
-
return
|
|
157
|
-
$$typeof:
|
|
158
|
-
type:
|
|
159
|
-
key:
|
|
160
|
-
ref:
|
|
161
|
-
props:
|
|
143
|
+
var K = { exports: {} }, q = {};
|
|
144
|
+
var je;
|
|
145
|
+
function kt() {
|
|
146
|
+
if (je) return q;
|
|
147
|
+
je = 1;
|
|
148
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
149
|
+
function r(i, l, o) {
|
|
150
|
+
var h = null;
|
|
151
|
+
if (o !== void 0 && (h = "" + o), l.key !== void 0 && (h = "" + l.key), "key" in l) {
|
|
152
|
+
o = {};
|
|
153
|
+
for (var s in l)
|
|
154
|
+
s !== "key" && (o[s] = l[s]);
|
|
155
|
+
} else o = l;
|
|
156
|
+
return l = o.ref, {
|
|
157
|
+
$$typeof: e,
|
|
158
|
+
type: i,
|
|
159
|
+
key: h,
|
|
160
|
+
ref: l !== void 0 ? l : null,
|
|
161
|
+
props: o
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
return
|
|
165
|
-
}
|
|
166
|
-
var
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
return
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
172
|
-
if (typeof
|
|
173
|
-
return
|
|
174
|
-
if (typeof
|
|
175
|
-
switch (
|
|
176
|
-
case
|
|
164
|
+
return q.Fragment = t, q.jsx = r, q.jsxs = r, q;
|
|
165
|
+
}
|
|
166
|
+
var Y = {};
|
|
167
|
+
var Oe;
|
|
168
|
+
function Nt() {
|
|
169
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
170
|
+
function e(n) {
|
|
171
|
+
if (n == null) return null;
|
|
172
|
+
if (typeof n == "function")
|
|
173
|
+
return n.$$typeof === T ? null : n.displayName || n.name || null;
|
|
174
|
+
if (typeof n == "string") return n;
|
|
175
|
+
switch (n) {
|
|
176
|
+
case v:
|
|
177
177
|
return "Fragment";
|
|
178
|
-
case
|
|
178
|
+
case _:
|
|
179
179
|
return "Profiler";
|
|
180
|
-
case
|
|
180
|
+
case g:
|
|
181
181
|
return "StrictMode";
|
|
182
|
-
case
|
|
182
|
+
case D:
|
|
183
183
|
return "Suspense";
|
|
184
|
-
case
|
|
184
|
+
case X:
|
|
185
185
|
return "SuspenseList";
|
|
186
|
-
case
|
|
186
|
+
case Q:
|
|
187
187
|
return "Activity";
|
|
188
188
|
}
|
|
189
|
-
if (typeof
|
|
190
|
-
switch (typeof
|
|
189
|
+
if (typeof n == "object")
|
|
190
|
+
switch (typeof n.tag == "number" && console.error(
|
|
191
191
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
192
|
-
),
|
|
193
|
-
case
|
|
192
|
+
), n.$$typeof) {
|
|
193
|
+
case C:
|
|
194
194
|
return "Portal";
|
|
195
|
+
case O:
|
|
196
|
+
return n.displayName || "Context";
|
|
197
|
+
case j:
|
|
198
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
195
199
|
case H:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
200
|
+
var y = n.render;
|
|
201
|
+
return n = n.displayName, n || (n = y.displayName || y.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
199
202
|
case B:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return t = e.displayName || null, t !== null ? t : r(e.type) || "Memo";
|
|
204
|
-
case k:
|
|
205
|
-
t = e._payload, e = e._init;
|
|
203
|
+
return y = n.displayName || null, y !== null ? y : e(n.type) || "Memo";
|
|
204
|
+
case M:
|
|
205
|
+
y = n._payload, n = n._init;
|
|
206
206
|
try {
|
|
207
|
-
return
|
|
207
|
+
return e(n(y));
|
|
208
208
|
} catch {
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
return null;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return "" +
|
|
213
|
+
function t(n) {
|
|
214
|
+
return "" + n;
|
|
215
215
|
}
|
|
216
|
-
function n
|
|
216
|
+
function r(n) {
|
|
217
217
|
try {
|
|
218
|
-
|
|
219
|
-
var
|
|
218
|
+
t(n);
|
|
219
|
+
var y = !1;
|
|
220
220
|
} catch {
|
|
221
|
-
|
|
221
|
+
y = !0;
|
|
222
222
|
}
|
|
223
|
-
if (
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
return
|
|
227
|
-
|
|
223
|
+
if (y) {
|
|
224
|
+
y = console;
|
|
225
|
+
var m = y.error, S = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
226
|
+
return m.call(
|
|
227
|
+
y,
|
|
228
228
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
229
|
-
|
|
230
|
-
),
|
|
229
|
+
S
|
|
230
|
+
), t(n);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
if (
|
|
235
|
-
if (typeof
|
|
233
|
+
function i(n) {
|
|
234
|
+
if (n === v) return "<>";
|
|
235
|
+
if (typeof n == "object" && n !== null && n.$$typeof === M)
|
|
236
236
|
return "<...>";
|
|
237
237
|
try {
|
|
238
|
-
var
|
|
239
|
-
return
|
|
238
|
+
var y = e(n);
|
|
239
|
+
return y ? "<" + y + ">" : "<...>";
|
|
240
240
|
} catch {
|
|
241
241
|
return "<...>";
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
var
|
|
246
|
-
return
|
|
244
|
+
function l() {
|
|
245
|
+
var n = P.A;
|
|
246
|
+
return n === null ? null : n.getOwner();
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function o() {
|
|
249
249
|
return Error("react-stack-top-frame");
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
253
|
-
var
|
|
254
|
-
if (
|
|
251
|
+
function h(n) {
|
|
252
|
+
if (ke.call(n, "key")) {
|
|
253
|
+
var y = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
254
|
+
if (y && y.isReactWarning) return !1;
|
|
255
255
|
}
|
|
256
|
-
return
|
|
256
|
+
return n.key !== void 0;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
function
|
|
260
|
-
|
|
258
|
+
function s(n, y) {
|
|
259
|
+
function m() {
|
|
260
|
+
Ne || (Ne = !0, console.error(
|
|
261
261
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
262
|
-
|
|
262
|
+
y
|
|
263
263
|
));
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
get:
|
|
265
|
+
m.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
266
|
+
get: m,
|
|
267
267
|
configurable: !0
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
var
|
|
272
|
-
return
|
|
270
|
+
function f() {
|
|
271
|
+
var n = e(this.type);
|
|
272
|
+
return Se[n] || (Se[n] = !0, console.error(
|
|
273
273
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
274
|
-
)),
|
|
275
|
-
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
return
|
|
279
|
-
$$typeof:
|
|
280
|
-
type:
|
|
281
|
-
key:
|
|
282
|
-
props:
|
|
283
|
-
_owner:
|
|
284
|
-
}, (
|
|
274
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
275
|
+
}
|
|
276
|
+
function d(n, y, m, S, Z, se) {
|
|
277
|
+
var E = m.ref;
|
|
278
|
+
return n = {
|
|
279
|
+
$$typeof: b,
|
|
280
|
+
type: n,
|
|
281
|
+
key: y,
|
|
282
|
+
props: m,
|
|
283
|
+
_owner: S
|
|
284
|
+
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(n, "ref", {
|
|
285
285
|
enumerable: !1,
|
|
286
|
-
get:
|
|
287
|
-
}) : Object.defineProperty(
|
|
286
|
+
get: f
|
|
287
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
288
288
|
configurable: !1,
|
|
289
289
|
enumerable: !1,
|
|
290
290
|
writable: !0,
|
|
291
291
|
value: 0
|
|
292
|
-
}), Object.defineProperty(
|
|
292
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
293
293
|
configurable: !1,
|
|
294
294
|
enumerable: !1,
|
|
295
295
|
writable: !0,
|
|
296
296
|
value: null
|
|
297
|
-
}), Object.defineProperty(
|
|
297
|
+
}), Object.defineProperty(n, "_debugStack", {
|
|
298
298
|
configurable: !1,
|
|
299
299
|
enumerable: !1,
|
|
300
300
|
writable: !0,
|
|
301
|
-
value:
|
|
302
|
-
}), Object.defineProperty(
|
|
301
|
+
value: Z
|
|
302
|
+
}), Object.defineProperty(n, "_debugTask", {
|
|
303
303
|
configurable: !1,
|
|
304
304
|
enumerable: !1,
|
|
305
305
|
writable: !0,
|
|
306
|
-
value:
|
|
307
|
-
}), Object.freeze && (Object.freeze(
|
|
308
|
-
}
|
|
309
|
-
function
|
|
310
|
-
var
|
|
311
|
-
if (
|
|
312
|
-
if (
|
|
313
|
-
if (
|
|
314
|
-
for (
|
|
315
|
-
|
|
316
|
-
Object.freeze && Object.freeze(
|
|
306
|
+
value: se
|
|
307
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
308
|
+
}
|
|
309
|
+
function p(n, y, m, S, Z, se) {
|
|
310
|
+
var E = y.children;
|
|
311
|
+
if (E !== void 0)
|
|
312
|
+
if (S)
|
|
313
|
+
if (ut(E)) {
|
|
314
|
+
for (S = 0; S < E.length; S++)
|
|
315
|
+
a(E[S]);
|
|
316
|
+
Object.freeze && Object.freeze(E);
|
|
317
317
|
} else
|
|
318
318
|
console.error(
|
|
319
319
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
320
320
|
);
|
|
321
|
-
else
|
|
322
|
-
if (
|
|
323
|
-
|
|
324
|
-
var
|
|
325
|
-
return
|
|
321
|
+
else a(E);
|
|
322
|
+
if (ke.call(y, "key")) {
|
|
323
|
+
E = e(n);
|
|
324
|
+
var L = Object.keys(y).filter(function(xt) {
|
|
325
|
+
return xt !== "key";
|
|
326
326
|
});
|
|
327
|
-
|
|
327
|
+
S = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", Te[E + S] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
328
328
|
`A props object containing a "key" prop is being spread into JSX:
|
|
329
329
|
let props = %s;
|
|
330
330
|
<%s {...props} />
|
|
331
331
|
React keys must be passed directly to JSX without using spread:
|
|
332
332
|
let props = %s;
|
|
333
333
|
<%s key={someKey} {...props} />`,
|
|
334
|
-
u,
|
|
335
|
-
i,
|
|
336
334
|
S,
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
E,
|
|
336
|
+
L,
|
|
337
|
+
E
|
|
338
|
+
), Te[E + S] = !0);
|
|
339
339
|
}
|
|
340
|
-
if (
|
|
341
|
-
|
|
342
|
-
for (var
|
|
343
|
-
|
|
344
|
-
} else
|
|
345
|
-
return
|
|
346
|
-
|
|
347
|
-
typeof
|
|
348
|
-
),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
340
|
+
if (E = null, m !== void 0 && (r(m), E = "" + m), h(y) && (r(y.key), E = "" + y.key), "key" in y) {
|
|
341
|
+
m = {};
|
|
342
|
+
for (var he in y)
|
|
343
|
+
he !== "key" && (m[he] = y[he]);
|
|
344
|
+
} else m = y;
|
|
345
|
+
return E && s(
|
|
346
|
+
m,
|
|
347
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
348
|
+
), d(
|
|
349
|
+
n,
|
|
350
|
+
E,
|
|
351
|
+
m,
|
|
352
|
+
l(),
|
|
353
|
+
Z,
|
|
354
|
+
se
|
|
355
355
|
);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
357
|
+
function a(n) {
|
|
358
|
+
u(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === M && (n._payload.status === "fulfilled" ? u(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return typeof
|
|
360
|
+
function u(n) {
|
|
361
|
+
return typeof n == "object" && n !== null && n.$$typeof === b;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var x = yt, b = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), O = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), Q = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), P = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ke = Object.prototype.hasOwnProperty, ut = Array.isArray, ne = console.createTask ? console.createTask : function() {
|
|
364
364
|
return null;
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
react_stack_bottom_frame: function(
|
|
368
|
-
return
|
|
366
|
+
x = {
|
|
367
|
+
react_stack_bottom_frame: function(n) {
|
|
368
|
+
return n();
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
var
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
)(),
|
|
375
|
-
|
|
376
|
-
var
|
|
377
|
-
return
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
371
|
+
var Ne, Se = {}, Ee = x.react_stack_bottom_frame.bind(
|
|
372
|
+
x,
|
|
373
|
+
o
|
|
374
|
+
)(), Ce = ne(i(o)), Te = {};
|
|
375
|
+
Y.Fragment = v, Y.jsx = function(n, y, m) {
|
|
376
|
+
var S = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
377
|
+
return p(
|
|
378
|
+
n,
|
|
379
|
+
y,
|
|
380
|
+
m,
|
|
381
381
|
!1,
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
S ? Error("react-stack-top-frame") : Ee,
|
|
383
|
+
S ? ne(i(n)) : Ce
|
|
384
384
|
);
|
|
385
|
-
},
|
|
386
|
-
var
|
|
387
|
-
return
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
385
|
+
}, Y.jsxs = function(n, y, m) {
|
|
386
|
+
var S = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
387
|
+
return p(
|
|
388
|
+
n,
|
|
389
|
+
y,
|
|
390
|
+
m,
|
|
391
391
|
!0,
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
S ? Error("react-stack-top-frame") : Ee,
|
|
393
|
+
S ? ne(i(n)) : Ce
|
|
394
394
|
);
|
|
395
395
|
};
|
|
396
|
-
})()),
|
|
396
|
+
})()), Y;
|
|
397
397
|
}
|
|
398
|
-
var
|
|
399
|
-
function
|
|
400
|
-
return
|
|
398
|
+
var Pe;
|
|
399
|
+
function St() {
|
|
400
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? K.exports = kt() : K.exports = Nt()), K.exports;
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
function
|
|
402
|
+
var Et = St();
|
|
403
|
+
function xr({ stores: e, children: t }) {
|
|
404
404
|
try {
|
|
405
|
-
if (!
|
|
406
|
-
const
|
|
407
|
-
throw
|
|
408
|
-
}
|
|
409
|
-
for (const [
|
|
410
|
-
if (!
|
|
411
|
-
const
|
|
412
|
-
throw
|
|
405
|
+
if (!e || typeof e != "object") {
|
|
406
|
+
const r = "QuantaProvider: Invalid stores prop provided";
|
|
407
|
+
throw R.error(r), new Error(r);
|
|
408
|
+
}
|
|
409
|
+
for (const [r, i] of Object.entries(e))
|
|
410
|
+
if (!i || typeof i != "object") {
|
|
411
|
+
const l = `QuantaProvider: Invalid store "${r}" provided`;
|
|
412
|
+
throw R.error(l), new Error(l);
|
|
413
413
|
}
|
|
414
|
-
return /* @__PURE__ */
|
|
415
|
-
} catch (
|
|
416
|
-
throw
|
|
417
|
-
`QuantaProvider: Failed to render provider: ${
|
|
418
|
-
),
|
|
414
|
+
return /* @__PURE__ */ Et.jsx(Xe.Provider, { value: { stores: e }, children: t });
|
|
415
|
+
} catch (r) {
|
|
416
|
+
throw R.error(
|
|
417
|
+
`QuantaProvider: Failed to render provider: ${r instanceof Error ? r.message : String(r)}`
|
|
418
|
+
), r;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
var ae, w, Ze, I, $e, Ke, et, tt, _e, pe, ue, V = {}, rt = [], Ct = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, G = Array.isArray;
|
|
422
|
+
function z(e, t) {
|
|
423
|
+
for (var r in t) e[r] = t[r];
|
|
424
|
+
return e;
|
|
425
|
+
}
|
|
426
|
+
function we(e) {
|
|
427
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
428
|
+
}
|
|
429
|
+
function J(e, t, r) {
|
|
430
|
+
var i, l, o, h = {};
|
|
431
|
+
for (o in t) o == "key" ? i = t[o] : o == "ref" ? l = t[o] : h[o] = t[o];
|
|
432
|
+
if (arguments.length > 2 && (h.children = arguments.length > 3 ? ae.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) h[o] === void 0 && (h[o] = e.defaultProps[o]);
|
|
433
|
+
return te(e, h, i, l, null);
|
|
434
|
+
}
|
|
435
|
+
function te(e, t, r, i, l) {
|
|
436
|
+
var o = { type: e, props: t, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: l ?? ++Ze, __i: -1, __u: 0 };
|
|
437
|
+
return l == null && w.vnode != null && w.vnode(o), o;
|
|
438
|
+
}
|
|
439
|
+
function ce(e) {
|
|
440
|
+
return e.children;
|
|
441
|
+
}
|
|
442
|
+
function re(e, t) {
|
|
443
|
+
this.props = e, this.context = t;
|
|
444
|
+
}
|
|
445
|
+
function W(e, t) {
|
|
446
|
+
if (t == null) return e.__ ? W(e.__, e.__i + 1) : null;
|
|
447
|
+
for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
|
|
448
|
+
return typeof e.type == "function" ? W(e) : null;
|
|
449
|
+
}
|
|
450
|
+
function it(e) {
|
|
451
|
+
var t, r;
|
|
452
|
+
if ((e = e.__) != null && e.__c != null) {
|
|
453
|
+
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
|
|
454
|
+
e.__e = e.__c.base = r.__e;
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
return it(e);
|
|
419
458
|
}
|
|
420
459
|
}
|
|
460
|
+
function Me(e) {
|
|
461
|
+
(!e.__d && (e.__d = !0) && I.push(e) && !oe.__r++ || $e != w.debounceRendering) && (($e = w.debounceRendering) || Ke)(oe);
|
|
462
|
+
}
|
|
463
|
+
function oe() {
|
|
464
|
+
for (var e, t, r, i, l, o, h, s = 1; I.length; ) I.length > s && I.sort(et), e = I.shift(), s = I.length, e.__d && (r = void 0, i = void 0, l = (i = (t = e).__v).__e, o = [], h = [], t.__P && ((r = z({}, i)).__v = i.__v + 1, w.vnode && w.vnode(r), ve(t.__P, r, i, t.__n, t.__P.namespaceURI, 32 & i.__u ? [l] : null, o, l ?? W(i), !!(32 & i.__u), h), r.__v = i.__v, r.__.__k[r.__i] = r, ct(o, r, h), i.__e = i.__ = null, r.__e != l && it(r)));
|
|
465
|
+
oe.__r = 0;
|
|
466
|
+
}
|
|
467
|
+
function ot(e, t, r, i, l, o, h, s, f, d, p) {
|
|
468
|
+
var a, u, x, b, C, v, g, _ = i && i.__k || rt, j = t.length;
|
|
469
|
+
for (f = Tt(r, t, _, f, j), a = 0; a < j; a++) (x = r.__k[a]) != null && (u = x.__i == -1 ? V : _[x.__i] || V, x.__i = a, v = ve(e, x, u, l, o, h, s, f, d, p), b = x.__e, x.ref && u.ref != x.ref && (u.ref && me(u.ref, null, x), p.push(x.ref, x.__c || b, x)), C == null && b != null && (C = b), (g = !!(4 & x.__u)) || u.__k === x.__k ? f = lt(x, f, e, g) : typeof x.type == "function" && v !== void 0 ? f = v : b && (f = b.nextSibling), x.__u &= -7);
|
|
470
|
+
return r.__e = C, f;
|
|
471
|
+
}
|
|
472
|
+
function Tt(e, t, r, i, l) {
|
|
473
|
+
var o, h, s, f, d, p = r.length, a = p, u = 0;
|
|
474
|
+
for (e.__k = new Array(l), o = 0; o < l; o++) (h = t[o]) != null && typeof h != "boolean" && typeof h != "function" ? (f = o + u, (h = e.__k[o] = typeof h == "string" || typeof h == "number" || typeof h == "bigint" || h.constructor == String ? te(null, h, null, null, null) : G(h) ? te(ce, { children: h }, null, null, null) : h.constructor == null && h.__b > 0 ? te(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h).__ = e, h.__b = e.__b + 1, s = null, (d = h.__i = At(h, r, f, a)) != -1 && (a--, (s = r[d]) && (s.__u |= 2)), s == null || s.__v == null ? (d == -1 && (l > p ? u-- : l < p && u++), typeof h.type != "function" && (h.__u |= 4)) : d != f && (d == f - 1 ? u-- : d == f + 1 ? u++ : (d > f ? u-- : u++, h.__u |= 4))) : e.__k[o] = null;
|
|
475
|
+
if (a) for (o = 0; o < p; o++) (s = r[o]) != null && (2 & s.__u) == 0 && (s.__e == i && (i = W(s)), st(s, s));
|
|
476
|
+
return i;
|
|
477
|
+
}
|
|
478
|
+
function lt(e, t, r, i) {
|
|
479
|
+
var l, o;
|
|
480
|
+
if (typeof e.type == "function") {
|
|
481
|
+
for (l = e.__k, o = 0; l && o < l.length; o++) l[o] && (l[o].__ = e, t = lt(l[o], t, r, i));
|
|
482
|
+
return t;
|
|
483
|
+
}
|
|
484
|
+
e.__e != t && (i && (t && e.type && !t.parentNode && (t = W(e)), r.insertBefore(e.__e, t || null)), t = e.__e);
|
|
485
|
+
do
|
|
486
|
+
t = t && t.nextSibling;
|
|
487
|
+
while (t != null && t.nodeType == 8);
|
|
488
|
+
return t;
|
|
489
|
+
}
|
|
490
|
+
function at(e, t) {
|
|
491
|
+
return t = t || [], e == null || typeof e == "boolean" || (G(e) ? e.some(function(r) {
|
|
492
|
+
at(r, t);
|
|
493
|
+
}) : t.push(e)), t;
|
|
494
|
+
}
|
|
495
|
+
function At(e, t, r, i) {
|
|
496
|
+
var l, o, h, s = e.key, f = e.type, d = t[r], p = d != null && (2 & d.__u) == 0;
|
|
497
|
+
if (d === null && e.key == null || p && s == d.key && f == d.type) return r;
|
|
498
|
+
if (i > (p ? 1 : 0)) {
|
|
499
|
+
for (l = r - 1, o = r + 1; l >= 0 || o < t.length; ) if ((d = t[h = l >= 0 ? l-- : o++]) != null && (2 & d.__u) == 0 && s == d.key && f == d.type) return h;
|
|
500
|
+
}
|
|
501
|
+
return -1;
|
|
502
|
+
}
|
|
503
|
+
function ze(e, t, r) {
|
|
504
|
+
t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || Ct.test(t) ? r : r + "px";
|
|
505
|
+
}
|
|
506
|
+
function ee(e, t, r, i, l) {
|
|
507
|
+
var o, h;
|
|
508
|
+
e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
|
|
509
|
+
else {
|
|
510
|
+
if (typeof i == "string" && (e.style.cssText = i = ""), i) for (t in i) r && t in r || ze(e.style, t, "");
|
|
511
|
+
if (r) for (t in r) i && r[t] == i[t] || ze(e.style, t, r[t]);
|
|
512
|
+
}
|
|
513
|
+
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(tt, "$1")), h = t.toLowerCase(), t = h in e || t == "onFocusOut" || t == "onFocusIn" ? h.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = r, r ? i ? r.u = i.u : (r.u = _e, e.addEventListener(t, o ? ue : pe, o)) : e.removeEventListener(t, o ? ue : pe, o);
|
|
514
|
+
else {
|
|
515
|
+
if (l == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
516
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
517
|
+
e[t] = r ?? "";
|
|
518
|
+
break e;
|
|
519
|
+
} catch {
|
|
520
|
+
}
|
|
521
|
+
typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function De(e) {
|
|
525
|
+
return function(t) {
|
|
526
|
+
if (this.l) {
|
|
527
|
+
var r = this.l[t.type + e];
|
|
528
|
+
if (t.t == null) t.t = _e++;
|
|
529
|
+
else if (t.t < r.u) return;
|
|
530
|
+
return r(w.event ? w.event(t) : t);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
function ve(e, t, r, i, l, o, h, s, f, d) {
|
|
535
|
+
var p, a, u, x, b, C, v, g, _, j, O, H, D, X, B, M, Q, T = t.type;
|
|
536
|
+
if (t.constructor != null) return null;
|
|
537
|
+
128 & r.__u && (f = !!(32 & r.__u), o = [s = t.__e = r.__e]), (p = w.__b) && p(t);
|
|
538
|
+
e: if (typeof T == "function") try {
|
|
539
|
+
if (g = t.props, _ = "prototype" in T && T.prototype.render, j = (p = T.contextType) && i[p.__c], O = p ? j ? j.props.value : p.__ : i, r.__c ? v = (a = t.__c = r.__c).__ = a.__E : (_ ? t.__c = a = new T(g, O) : (t.__c = a = new re(g, O), a.constructor = T, a.render = jt), j && j.sub(a), a.props = g, a.state || (a.state = {}), a.context = O, a.__n = i, u = a.__d = !0, a.__h = [], a._sb = []), _ && a.__s == null && (a.__s = a.state), _ && T.getDerivedStateFromProps != null && (a.__s == a.state && (a.__s = z({}, a.__s)), z(a.__s, T.getDerivedStateFromProps(g, a.__s))), x = a.props, b = a.state, a.__v = t, u) _ && T.getDerivedStateFromProps == null && a.componentWillMount != null && a.componentWillMount(), _ && a.componentDidMount != null && a.__h.push(a.componentDidMount);
|
|
540
|
+
else {
|
|
541
|
+
if (_ && T.getDerivedStateFromProps == null && g !== x && a.componentWillReceiveProps != null && a.componentWillReceiveProps(g, O), !a.__e && a.shouldComponentUpdate != null && a.shouldComponentUpdate(g, a.__s, O) === !1 || t.__v == r.__v) {
|
|
542
|
+
for (t.__v != r.__v && (a.props = g, a.state = a.__s, a.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(P) {
|
|
543
|
+
P && (P.__ = t);
|
|
544
|
+
}), H = 0; H < a._sb.length; H++) a.__h.push(a._sb[H]);
|
|
545
|
+
a._sb = [], a.__h.length && h.push(a);
|
|
546
|
+
break e;
|
|
547
|
+
}
|
|
548
|
+
a.componentWillUpdate != null && a.componentWillUpdate(g, a.__s, O), _ && a.componentDidUpdate != null && a.__h.push(function() {
|
|
549
|
+
a.componentDidUpdate(x, b, C);
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
if (a.context = O, a.props = g, a.__P = e, a.__e = !1, D = w.__r, X = 0, _) {
|
|
553
|
+
for (a.state = a.__s, a.__d = !1, D && D(t), p = a.render(a.props, a.state, a.context), B = 0; B < a._sb.length; B++) a.__h.push(a._sb[B]);
|
|
554
|
+
a._sb = [];
|
|
555
|
+
} else do
|
|
556
|
+
a.__d = !1, D && D(t), p = a.render(a.props, a.state, a.context), a.state = a.__s;
|
|
557
|
+
while (a.__d && ++X < 25);
|
|
558
|
+
a.state = a.__s, a.getChildContext != null && (i = z(z({}, i), a.getChildContext())), _ && !u && a.getSnapshotBeforeUpdate != null && (C = a.getSnapshotBeforeUpdate(x, b)), M = p, p != null && p.type === ce && p.key == null && (M = nt(p.props.children)), s = ot(e, G(M) ? M : [M], t, r, i, l, o, h, s, f, d), a.base = t.__e, t.__u &= -161, a.__h.length && h.push(a), v && (a.__E = a.__ = null);
|
|
559
|
+
} catch (P) {
|
|
560
|
+
if (t.__v = null, f || o != null) if (P.then) {
|
|
561
|
+
for (t.__u |= f ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
562
|
+
o[o.indexOf(s)] = null, t.__e = s;
|
|
563
|
+
} else {
|
|
564
|
+
for (Q = o.length; Q--; ) we(o[Q]);
|
|
565
|
+
xe(t);
|
|
566
|
+
}
|
|
567
|
+
else t.__e = r.__e, t.__k = r.__k, P.then || xe(t);
|
|
568
|
+
w.__e(P, t, r);
|
|
569
|
+
}
|
|
570
|
+
else o == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : s = t.__e = Rt(r.__e, t, r, i, l, o, h, f, d);
|
|
571
|
+
return (p = w.diffed) && p(t), 128 & t.__u ? void 0 : s;
|
|
572
|
+
}
|
|
573
|
+
function xe(e) {
|
|
574
|
+
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(xe);
|
|
575
|
+
}
|
|
576
|
+
function ct(e, t, r) {
|
|
577
|
+
for (var i = 0; i < r.length; i++) me(r[i], r[++i], r[++i]);
|
|
578
|
+
w.__c && w.__c(t, e), e.some(function(l) {
|
|
579
|
+
try {
|
|
580
|
+
e = l.__h, l.__h = [], e.some(function(o) {
|
|
581
|
+
o.call(l);
|
|
582
|
+
});
|
|
583
|
+
} catch (o) {
|
|
584
|
+
w.__e(o, l.__v);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
function nt(e) {
|
|
589
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : G(e) ? e.map(nt) : z({}, e);
|
|
590
|
+
}
|
|
591
|
+
function Rt(e, t, r, i, l, o, h, s, f) {
|
|
592
|
+
var d, p, a, u, x, b, C, v = r.props, g = t.props, _ = t.type;
|
|
593
|
+
if (_ == "svg" ? l = "http://www.w3.org/2000/svg" : _ == "math" ? l = "http://www.w3.org/1998/Math/MathML" : l || (l = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
594
|
+
for (d = 0; d < o.length; d++) if ((x = o[d]) && "setAttribute" in x == !!_ && (_ ? x.localName == _ : x.nodeType == 3)) {
|
|
595
|
+
e = x, o[d] = null;
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
if (e == null) {
|
|
600
|
+
if (_ == null) return document.createTextNode(g);
|
|
601
|
+
e = document.createElementNS(l, _, g.is && g), s && (w.__m && w.__m(t, o), s = !1), o = null;
|
|
602
|
+
}
|
|
603
|
+
if (_ == null) v === g || s && e.data == g || (e.data = g);
|
|
604
|
+
else {
|
|
605
|
+
if (o = o && ae.call(e.childNodes), v = r.props || V, !s && o != null) for (v = {}, d = 0; d < e.attributes.length; d++) v[(x = e.attributes[d]).name] = x.value;
|
|
606
|
+
for (d in v) if (x = v[d], d != "children") {
|
|
607
|
+
if (d == "dangerouslySetInnerHTML") a = x;
|
|
608
|
+
else if (!(d in g)) {
|
|
609
|
+
if (d == "value" && "defaultValue" in g || d == "checked" && "defaultChecked" in g) continue;
|
|
610
|
+
ee(e, d, null, x, l);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
for (d in g) x = g[d], d == "children" ? u = x : d == "dangerouslySetInnerHTML" ? p = x : d == "value" ? b = x : d == "checked" ? C = x : s && typeof x != "function" || v[d] === x || ee(e, d, x, v[d], l);
|
|
614
|
+
if (p) s || a && (p.__html == a.__html || p.__html == e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
|
|
615
|
+
else if (a && (e.innerHTML = ""), ot(t.type == "template" ? e.content : e, G(u) ? u : [u], t, r, i, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : l, o, h, o ? o[0] : r.__k && W(r, 0), s, f), o != null) for (d = o.length; d--; ) we(o[d]);
|
|
616
|
+
s || (d = "value", _ == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[d] || _ == "progress" && !b || _ == "option" && b != v[d]) && ee(e, d, b, v[d], l), d = "checked", C != null && C != e[d] && ee(e, d, C, v[d], l));
|
|
617
|
+
}
|
|
618
|
+
return e;
|
|
619
|
+
}
|
|
620
|
+
function me(e, t, r) {
|
|
621
|
+
try {
|
|
622
|
+
if (typeof e == "function") {
|
|
623
|
+
var i = typeof e.__u == "function";
|
|
624
|
+
i && e.__u(), i && t == null || (e.__u = e(t));
|
|
625
|
+
} else e.current = t;
|
|
626
|
+
} catch (l) {
|
|
627
|
+
w.__e(l, r);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function st(e, t, r) {
|
|
631
|
+
var i, l;
|
|
632
|
+
if (w.unmount && w.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || me(i, null, t)), (i = e.__c) != null) {
|
|
633
|
+
if (i.componentWillUnmount) try {
|
|
634
|
+
i.componentWillUnmount();
|
|
635
|
+
} catch (o) {
|
|
636
|
+
w.__e(o, t);
|
|
637
|
+
}
|
|
638
|
+
i.base = i.__P = null;
|
|
639
|
+
}
|
|
640
|
+
if (i = e.__k) for (l = 0; l < i.length; l++) i[l] && st(i[l], t, r || typeof e.type != "function");
|
|
641
|
+
r || we(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
642
|
+
}
|
|
643
|
+
function jt(e, t, r) {
|
|
644
|
+
return this.constructor(e, r);
|
|
645
|
+
}
|
|
646
|
+
function Fe(e, t, r) {
|
|
647
|
+
var i, l, o, h;
|
|
648
|
+
t == document && (t = document.documentElement), w.__ && w.__(e, t), l = (i = !1) ? null : t.__k, o = [], h = [], ve(t, e = t.__k = J(ce, null, [e]), l || V, V, t.namespaceURI, l ? null : t.firstChild ? ae.call(t.childNodes) : null, o, l ? l.__e : t.firstChild, i, h), ct(o, e, h);
|
|
649
|
+
}
|
|
650
|
+
ae = rt.slice, w = { __e: function(e, t, r, i) {
|
|
651
|
+
for (var l, o, h; t = t.__; ) if ((l = t.__c) && !l.__) try {
|
|
652
|
+
if ((o = l.constructor) && o.getDerivedStateFromError != null && (l.setState(o.getDerivedStateFromError(e)), h = l.__d), l.componentDidCatch != null && (l.componentDidCatch(e, i || {}), h = l.__d), h) return l.__E = l;
|
|
653
|
+
} catch (s) {
|
|
654
|
+
e = s;
|
|
655
|
+
}
|
|
656
|
+
throw e;
|
|
657
|
+
} }, Ze = 0, re.prototype.setState = function(e, t) {
|
|
658
|
+
var r;
|
|
659
|
+
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = z({}, this.state), typeof e == "function" && (e = e(z({}, r), this.props)), e && z(r, e), e != null && this.__v && (t && this._sb.push(t), Me(this));
|
|
660
|
+
}, re.prototype.forceUpdate = function(e) {
|
|
661
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Me(this));
|
|
662
|
+
}, re.prototype.render = ce, I = [], Ke = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, et = function(e, t) {
|
|
663
|
+
return e.__v.__b - t.__v.__b;
|
|
664
|
+
}, oe.__r = 0, tt = /(PointerCapture)$|Capture$/i, _e = 0, pe = De(!1), ue = De(!0);
|
|
665
|
+
var Ot = 0;
|
|
666
|
+
function c(e, t, r, i, l, o) {
|
|
667
|
+
t || (t = {});
|
|
668
|
+
var h, s, f = t;
|
|
669
|
+
if ("ref" in f) for (s in f = {}, t) s == "ref" ? h = t[s] : f[s] = t[s];
|
|
670
|
+
var d = { type: e, props: f, key: r, ref: h, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ot, __i: -1, __u: 0, __source: l, __self: o };
|
|
671
|
+
if (typeof e == "function" && (h = e.defaultProps)) for (s in h) f[s] === void 0 && (f[s] = h[s]);
|
|
672
|
+
return w.vnode && w.vnode(d), d;
|
|
673
|
+
}
|
|
674
|
+
var le, k, de, Ie, ye = 0, ht = [], N = w, Ue = N.__b, He = N.__r, Be = N.diffed, Le = N.__c, We = N.unmount, Qe = N.__;
|
|
675
|
+
function dt(e, t) {
|
|
676
|
+
N.__h && N.__h(k, e, ye || t), ye = 0;
|
|
677
|
+
var r = k.__H || (k.__H = { __: [], __h: [] });
|
|
678
|
+
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
679
|
+
}
|
|
680
|
+
function U(e) {
|
|
681
|
+
return ye = 1, Pt(ft, e);
|
|
682
|
+
}
|
|
683
|
+
function Pt(e, t, r) {
|
|
684
|
+
var i = dt(le++, 2);
|
|
685
|
+
if (i.t = e, !i.__c && (i.__ = [ft(void 0, t), function(s) {
|
|
686
|
+
var f = i.__N ? i.__N[0] : i.__[0], d = i.t(f, s);
|
|
687
|
+
f !== d && (i.__N = [d, i.__[1]], i.__c.setState({}));
|
|
688
|
+
}], i.__c = k, !k.__f)) {
|
|
689
|
+
var l = function(s, f, d) {
|
|
690
|
+
if (!i.__c.__H) return !0;
|
|
691
|
+
var p = i.__c.__H.__.filter(function(u) {
|
|
692
|
+
return !!u.__c;
|
|
693
|
+
});
|
|
694
|
+
if (p.every(function(u) {
|
|
695
|
+
return !u.__N;
|
|
696
|
+
})) return !o || o.call(this, s, f, d);
|
|
697
|
+
var a = i.__c.props !== s;
|
|
698
|
+
return p.forEach(function(u) {
|
|
699
|
+
if (u.__N) {
|
|
700
|
+
var x = u.__[0];
|
|
701
|
+
u.__ = u.__N, u.__N = void 0, x !== u.__[0] && (a = !0);
|
|
702
|
+
}
|
|
703
|
+
}), o && o.call(this, s, f, d) || a;
|
|
704
|
+
};
|
|
705
|
+
k.__f = !0;
|
|
706
|
+
var o = k.shouldComponentUpdate, h = k.componentWillUpdate;
|
|
707
|
+
k.componentWillUpdate = function(s, f, d) {
|
|
708
|
+
if (this.__e) {
|
|
709
|
+
var p = o;
|
|
710
|
+
o = void 0, l(s, f, d), o = p;
|
|
711
|
+
}
|
|
712
|
+
h && h.call(this, s, f, d);
|
|
713
|
+
}, k.shouldComponentUpdate = l;
|
|
714
|
+
}
|
|
715
|
+
return i.__N || i.__;
|
|
716
|
+
}
|
|
717
|
+
function $t(e, t) {
|
|
718
|
+
var r = dt(le++, 3);
|
|
719
|
+
!N.__s && Dt(r.__H, t) && (r.__ = e, r.u = t, k.__H.__h.push(r));
|
|
720
|
+
}
|
|
721
|
+
function Mt() {
|
|
722
|
+
for (var e; e = ht.shift(); ) if (e.__P && e.__H) try {
|
|
723
|
+
e.__H.__h.forEach(ie), e.__H.__h.forEach(ge), e.__H.__h = [];
|
|
724
|
+
} catch (t) {
|
|
725
|
+
e.__H.__h = [], N.__e(t, e.__v);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
N.__b = function(e) {
|
|
729
|
+
k = null, Ue && Ue(e);
|
|
730
|
+
}, N.__ = function(e, t) {
|
|
731
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Qe && Qe(e, t);
|
|
732
|
+
}, N.__r = function(e) {
|
|
733
|
+
He && He(e), le = 0;
|
|
734
|
+
var t = (k = e.__c).__H;
|
|
735
|
+
t && (de === k ? (t.__h = [], k.__h = [], t.__.forEach(function(r) {
|
|
736
|
+
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
737
|
+
})) : (t.__h.forEach(ie), t.__h.forEach(ge), t.__h = [], le = 0)), de = k;
|
|
738
|
+
}, N.diffed = function(e) {
|
|
739
|
+
Be && Be(e);
|
|
740
|
+
var t = e.__c;
|
|
741
|
+
t && t.__H && (t.__H.__h.length && (ht.push(t) !== 1 && Ie === N.requestAnimationFrame || ((Ie = N.requestAnimationFrame) || zt)(Mt)), t.__H.__.forEach(function(r) {
|
|
742
|
+
r.u && (r.__H = r.u), r.u = void 0;
|
|
743
|
+
})), de = k = null;
|
|
744
|
+
}, N.__c = function(e, t) {
|
|
745
|
+
t.some(function(r) {
|
|
746
|
+
try {
|
|
747
|
+
r.__h.forEach(ie), r.__h = r.__h.filter(function(i) {
|
|
748
|
+
return !i.__ || ge(i);
|
|
749
|
+
});
|
|
750
|
+
} catch (i) {
|
|
751
|
+
t.some(function(l) {
|
|
752
|
+
l.__h && (l.__h = []);
|
|
753
|
+
}), t = [], N.__e(i, r.__v);
|
|
754
|
+
}
|
|
755
|
+
}), Le && Le(e, t);
|
|
756
|
+
}, N.unmount = function(e) {
|
|
757
|
+
We && We(e);
|
|
758
|
+
var t, r = e.__c;
|
|
759
|
+
r && r.__H && (r.__H.__.forEach(function(i) {
|
|
760
|
+
try {
|
|
761
|
+
ie(i);
|
|
762
|
+
} catch (l) {
|
|
763
|
+
t = l;
|
|
764
|
+
}
|
|
765
|
+
}), r.__H = void 0, t && N.__e(t, r.__v));
|
|
766
|
+
};
|
|
767
|
+
var qe = typeof requestAnimationFrame == "function";
|
|
768
|
+
function zt(e) {
|
|
769
|
+
var t, r = function() {
|
|
770
|
+
clearTimeout(i), qe && cancelAnimationFrame(t), setTimeout(e);
|
|
771
|
+
}, i = setTimeout(r, 35);
|
|
772
|
+
qe && (t = requestAnimationFrame(r));
|
|
773
|
+
}
|
|
774
|
+
function ie(e) {
|
|
775
|
+
var t = k, r = e.__c;
|
|
776
|
+
typeof r == "function" && (e.__c = void 0, r()), k = t;
|
|
777
|
+
}
|
|
778
|
+
function ge(e) {
|
|
779
|
+
var t = k;
|
|
780
|
+
e.__c = e.__(), k = t;
|
|
781
|
+
}
|
|
782
|
+
function Dt(e, t) {
|
|
783
|
+
return !e || e.length !== t.length || t.some(function(r, i) {
|
|
784
|
+
return r !== e[i];
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function ft(e, t) {
|
|
788
|
+
return typeof t == "function" ? t(e) : t;
|
|
789
|
+
}
|
|
790
|
+
const Ye = "data:image/svg+xml,%3csvg%20width='1820'%20height='1820'%20viewBox='0%200%201820%201820'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='1820'%20height='1820'%20rx='20'%20fill='%23121212'/%3e%3crect%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='496'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='744'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='868'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1736'%20y='124'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='248'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='744'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1116'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1364'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='248'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='248'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='372'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='372'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='992'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1116'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='496'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.7'%20x='1364'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1488'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.2'%20x='1736'%20y='496'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='620'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20opacity='0.99'%20x='1364'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1488'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1612'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1736'%20y='620'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1240'%20y='744'%20width='84'%20height='84'%20rx='42'%20fill='%23848484'/%3e%3crect%20x='1364'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1488'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='744'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='124'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='1116'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='868'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20opacity='0.5'%20x='1364'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1736'%20y='868'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='992'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='992'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1488'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1612'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='1736'%20y='992'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.1'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.6'%20x='124'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='496'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1116'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1240'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1116'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='372'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='620'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='744'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='%2338B2AC'/%3e%3crect%20x='868'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='992'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1116'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1240'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='1612'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1240'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='248'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.98'%20x='744'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='992'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1240'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1364'%20y='1364'%20width='84'%20height='84'%20rx='42'%20fill='white'/%3e%3crect%20x='1488'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1364'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='744'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='1240'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='1612'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1488'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='124'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.4'%20x='248'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='744'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='868'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='1240'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.7'%20x='1488'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1612'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1612'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.5'%20x='124'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='248'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='372'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='496'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='620'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.9'%20x='744'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.3'%20x='868'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='992'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1116'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.8'%20x='1240'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1364'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1488'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20opacity='0.32'%20x='1612'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3crect%20x='1736'%20y='1736'%20width='84'%20height='84'%20rx='20'%20fill='%23999999'%20fill-opacity='0.2'/%3e%3c/svg%3e";
|
|
791
|
+
function Ft() {
|
|
792
|
+
const [e, t] = U({}), [r, i] = U([]), [l, o] = U(null);
|
|
793
|
+
return $t(() => {
|
|
794
|
+
let h, s = 0;
|
|
795
|
+
const f = 10, d = () => {
|
|
796
|
+
const a = window.__QUANTA_DEVTOOLS__;
|
|
797
|
+
a ? (console.log("[Quanta DevTools] Connected to bridge"), h = a.subscribe(p)) : s < f ? (s++, setTimeout(d, 500)) : console.warn(
|
|
798
|
+
"[Quanta DevTools] Failed to connect to bridge after retries"
|
|
799
|
+
);
|
|
800
|
+
}, p = (a) => {
|
|
801
|
+
a.type === "STORE_INIT" ? t((u) => {
|
|
802
|
+
const x = {
|
|
803
|
+
...u,
|
|
804
|
+
[a.payload.name]: a.payload.store
|
|
805
|
+
};
|
|
806
|
+
return l || o(a.payload.name), x;
|
|
807
|
+
}) : a.type === "STATE_CHANGE" ? t((u) => {
|
|
808
|
+
const x = a.payload.storeName;
|
|
809
|
+
return u[x] ? { ...u } : u;
|
|
810
|
+
}) : a.type === "ACTION_CALL" && i((u) => [
|
|
811
|
+
{
|
|
812
|
+
id: Math.random().toString(36).substr(2, 9),
|
|
813
|
+
storeName: a.payload.storeName,
|
|
814
|
+
actionName: a.payload.actionName,
|
|
815
|
+
args: a.payload.args,
|
|
816
|
+
timestamp: Date.now()
|
|
817
|
+
},
|
|
818
|
+
...u.slice(0, 49)
|
|
819
|
+
// Keep last 50 actions
|
|
820
|
+
]);
|
|
821
|
+
};
|
|
822
|
+
return d(), () => {
|
|
823
|
+
h && h();
|
|
824
|
+
};
|
|
825
|
+
}, [l]), { stores: e, actions: r, selectedStore: l, setSelectedStore: o };
|
|
826
|
+
}
|
|
827
|
+
const Ve = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), It = (e) => e.replace(
|
|
828
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
829
|
+
(t, r, i) => i ? i.toUpperCase() : r.toLowerCase()
|
|
830
|
+
), Je = (e) => {
|
|
831
|
+
const t = It(e);
|
|
832
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
833
|
+
}, Ut = (...e) => e.filter((t, r, i) => !!t && t.trim() !== "" && i.indexOf(t) === r).join(" ").trim();
|
|
834
|
+
var Ht = {
|
|
835
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
836
|
+
width: 24,
|
|
837
|
+
height: 24,
|
|
838
|
+
viewBox: "0 0 24 24",
|
|
839
|
+
fill: "none",
|
|
840
|
+
stroke: "currentColor",
|
|
841
|
+
"stroke-width": "2",
|
|
842
|
+
"stroke-linecap": "round",
|
|
843
|
+
"stroke-linejoin": "round"
|
|
844
|
+
};
|
|
845
|
+
const Bt = ({
|
|
846
|
+
color: e = "currentColor",
|
|
847
|
+
size: t = 24,
|
|
848
|
+
strokeWidth: r = 2,
|
|
849
|
+
absoluteStrokeWidth: i,
|
|
850
|
+
children: l,
|
|
851
|
+
iconNode: o,
|
|
852
|
+
class: h = "",
|
|
853
|
+
...s
|
|
854
|
+
}) => J(
|
|
855
|
+
"svg",
|
|
856
|
+
{
|
|
857
|
+
...Ht,
|
|
858
|
+
width: String(t),
|
|
859
|
+
height: t,
|
|
860
|
+
stroke: e,
|
|
861
|
+
"stroke-width": i ? Number(r) * 24 / Number(t) : r,
|
|
862
|
+
class: ["lucide", h].join(" "),
|
|
863
|
+
...s
|
|
864
|
+
},
|
|
865
|
+
[...o.map(([f, d]) => J(f, d)), ...at(l)]
|
|
866
|
+
), A = (e, t) => {
|
|
867
|
+
const r = ({ class: i = "", className: l = "", children: o, ...h }) => J(
|
|
868
|
+
Bt,
|
|
869
|
+
{
|
|
870
|
+
...h,
|
|
871
|
+
iconNode: t,
|
|
872
|
+
class: Ut(
|
|
873
|
+
`lucide-${Ve(Je(e))}`,
|
|
874
|
+
`lucide-${Ve(e)}`,
|
|
875
|
+
i,
|
|
876
|
+
l
|
|
877
|
+
)
|
|
878
|
+
},
|
|
879
|
+
o
|
|
880
|
+
);
|
|
881
|
+
return r.displayName = Je(e), r;
|
|
882
|
+
}, Lt = A("check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]), Wt = A("chevron-down", [
|
|
883
|
+
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
884
|
+
]), Qt = A("chevron-right", [
|
|
885
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
886
|
+
]), qt = A("chevron-up", [
|
|
887
|
+
["path", { d: "m18 15-6-6-6 6", key: "153udz" }]
|
|
888
|
+
]), Yt = A("circle-x", [
|
|
889
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
890
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
891
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
892
|
+
]), Vt = A("copy", [
|
|
893
|
+
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
894
|
+
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
895
|
+
]), Jt = A("database", [
|
|
896
|
+
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
897
|
+
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
898
|
+
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
899
|
+
]), Gt = A("play", [
|
|
900
|
+
[
|
|
901
|
+
"path",
|
|
902
|
+
{
|
|
903
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
904
|
+
key: "10ikf1"
|
|
905
|
+
}
|
|
906
|
+
]
|
|
907
|
+
]), Xt = A("rotate-ccw", [
|
|
908
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
909
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
910
|
+
]), Zt = A("search", [
|
|
911
|
+
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
912
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
913
|
+
]), Kt = A("trash-2", [
|
|
914
|
+
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
915
|
+
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
916
|
+
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
917
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
918
|
+
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
919
|
+
]), er = A("x", [
|
|
920
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
921
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
922
|
+
]), tr = {
|
|
923
|
+
x: er,
|
|
924
|
+
play: Gt,
|
|
925
|
+
database: Jt,
|
|
926
|
+
"chevron-right": Qt,
|
|
927
|
+
"chevron-up": qt,
|
|
928
|
+
"chevron-down": Wt,
|
|
929
|
+
"rotate-ccw": Xt,
|
|
930
|
+
trash: Kt,
|
|
931
|
+
search: Zt,
|
|
932
|
+
"circle-x": Yt,
|
|
933
|
+
check: Lt,
|
|
934
|
+
copy: Vt
|
|
935
|
+
};
|
|
936
|
+
function $({ name: e, size: t = 16, color: r, className: i }) {
|
|
937
|
+
const l = tr[e];
|
|
938
|
+
return l ? /* @__PURE__ */ c(l, { size: t, color: r, className: i }) : null;
|
|
939
|
+
}
|
|
940
|
+
function be(e) {
|
|
941
|
+
const t = /* @__PURE__ */ new WeakSet();
|
|
942
|
+
function r(i, l) {
|
|
943
|
+
if (l > 10) return "[...]";
|
|
944
|
+
if (i === null) return null;
|
|
945
|
+
if (i === void 0) return;
|
|
946
|
+
const o = typeof i;
|
|
947
|
+
if (o === "string" || o === "number" || o === "boolean")
|
|
948
|
+
return i;
|
|
949
|
+
if (o === "function") return "[Function]";
|
|
950
|
+
if (typeof Window < "u" && i instanceof Window)
|
|
951
|
+
return "[Window]";
|
|
952
|
+
if (typeof Node < "u" && i instanceof Node)
|
|
953
|
+
return "[Element]";
|
|
954
|
+
if (i instanceof Date) return i.toISOString();
|
|
955
|
+
if (i instanceof RegExp) return i.toString();
|
|
956
|
+
if (Array.isArray(i)) {
|
|
957
|
+
if (t.has(i)) return "[Circular]";
|
|
958
|
+
t.add(i);
|
|
959
|
+
const h = i.map((s) => r(s, l + 1));
|
|
960
|
+
return t.delete(i), h;
|
|
961
|
+
}
|
|
962
|
+
if (o === "object") {
|
|
963
|
+
if (t.has(i)) return "[Circular]";
|
|
964
|
+
t.add(i);
|
|
965
|
+
const h = {};
|
|
966
|
+
for (const s in i)
|
|
967
|
+
Object.prototype.hasOwnProperty.call(i, s) && (h[s] = r(i[s], l + 1));
|
|
968
|
+
return t.delete(i), h;
|
|
969
|
+
}
|
|
970
|
+
return String(i);
|
|
971
|
+
}
|
|
972
|
+
try {
|
|
973
|
+
return JSON.stringify(r(e, 0));
|
|
974
|
+
} catch {
|
|
975
|
+
return "[Error]";
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
const pt = ({ data: e, level: t = 0 }) => typeof e != "object" || e === null ? /* @__PURE__ */ c("span", { className: "text-green-600 dark:text-green-400", children: be(e) }) : /* @__PURE__ */ c("div", { style: { paddingLeft: t * 12 }, children: Object.entries(e).map(([r, i]) => /* @__PURE__ */ c("div", { className: "font-mono text-xs py-0.5", children: [
|
|
979
|
+
/* @__PURE__ */ c("span", { className: "text-purple-400", children: [
|
|
980
|
+
r,
|
|
981
|
+
": "
|
|
982
|
+
] }),
|
|
983
|
+
/* @__PURE__ */ c(pt, { data: i, level: t + 1 })
|
|
984
|
+
] }, r)) }), rr = ({
|
|
985
|
+
stores: e,
|
|
986
|
+
selectedStore: t
|
|
987
|
+
}) => /* @__PURE__ */ c("div", { className: "flex h-full", children: /* @__PURE__ */ c("div", { className: "flex-1 overflow-y-auto p-4 bg-slate-950", children: t && e[t] ? /* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
988
|
+
/* @__PURE__ */ c("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
989
|
+
/* @__PURE__ */ c("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Store Management" }),
|
|
990
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-3", children: [
|
|
991
|
+
/* @__PURE__ */ c("div", { className: "flex items-center justify-between", children: [
|
|
992
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
993
|
+
/* @__PURE__ */ c("span", { className: "text-slate-400", children: "Persistence:" }),
|
|
994
|
+
e[t].$persist ? /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5 text-green-400 font-medium bg-green-400/10 px-2 py-0.5 rounded-full border border-green-400/20", children: [
|
|
995
|
+
/* @__PURE__ */ c("div", { className: "w-1.5 h-1.5 rounded-full bg-green-400 shadow-[0_0_6px_rgba(74,222,128,0.5)]" }),
|
|
996
|
+
"Enabled"
|
|
997
|
+
] }) : /* @__PURE__ */ c("span", { className: "flex items-center gap-1.5 text-slate-500 font-medium bg-slate-800 px-2 py-0.5 rounded-full border border-slate-700", children: [
|
|
998
|
+
/* @__PURE__ */ c("div", { className: "w-1.5 h-1.5 rounded-full bg-slate-500" }),
|
|
999
|
+
"Disabled"
|
|
1000
|
+
] })
|
|
1001
|
+
] }),
|
|
1002
|
+
e[t].$persist && /* @__PURE__ */ c(
|
|
1003
|
+
"button",
|
|
1004
|
+
{
|
|
1005
|
+
onClick: async () => {
|
|
1006
|
+
if (confirm(
|
|
1007
|
+
"Are you sure you want to clear the persisted data for this store?"
|
|
1008
|
+
))
|
|
1009
|
+
try {
|
|
1010
|
+
await e[t].$persist.clear(), alert(
|
|
1011
|
+
"Storage cleared."
|
|
1012
|
+
);
|
|
1013
|
+
} catch (r) {
|
|
1014
|
+
console.error(r), alert(
|
|
1015
|
+
"Failed to clear storage."
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
className: "flex items-center gap-1.5 px-2 py-1 bg-slate-800 hover:bg-red-500/20 text-slate-400 hover:text-red-400 rounded text-[10px] font-medium transition-colors border border-slate-700 hover:border-red-500/30",
|
|
1020
|
+
title: "Clear persisted data from storage",
|
|
1021
|
+
children: [
|
|
1022
|
+
/* @__PURE__ */ c($, { name: "trash", size: 12 }),
|
|
1023
|
+
"Clear Storage"
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
)
|
|
1027
|
+
] }),
|
|
1028
|
+
/* @__PURE__ */ c("div", { className: "flex items-center justify-between pt-2 border-t border-slate-800/50", children: [
|
|
1029
|
+
/* @__PURE__ */ c("span", { className: "text-xs text-slate-500", children: "Reset in-memory state to initial values." }),
|
|
1030
|
+
/* @__PURE__ */ c(
|
|
1031
|
+
"button",
|
|
1032
|
+
{
|
|
1033
|
+
onClick: () => {
|
|
1034
|
+
confirm(
|
|
1035
|
+
"Are you sure you want to reset the state? This will revert all changes."
|
|
1036
|
+
) && e[t].$reset();
|
|
1037
|
+
},
|
|
1038
|
+
className: "flex items-center gap-2 px-3 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 hover:text-white rounded text-xs font-medium transition-colors border border-slate-700",
|
|
1039
|
+
children: [
|
|
1040
|
+
/* @__PURE__ */ c($, { name: "rotate-ccw", size: 12 }),
|
|
1041
|
+
"Reset State"
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
)
|
|
1045
|
+
] })
|
|
1046
|
+
] })
|
|
1047
|
+
] }),
|
|
1048
|
+
/* @__PURE__ */ c("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1049
|
+
/* @__PURE__ */ c("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "State" }),
|
|
1050
|
+
/* @__PURE__ */ c(pt, { data: e[t].state })
|
|
1051
|
+
] }),
|
|
1052
|
+
/* @__PURE__ */ c("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1053
|
+
/* @__PURE__ */ c("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Getters" }),
|
|
1054
|
+
e[t].getters && Object.keys(e[t].getters).length > 0 ? /* @__PURE__ */ c("div", { className: "space-y-1", children: Object.entries(
|
|
1055
|
+
e[t].getters
|
|
1056
|
+
).map(([r, i]) => /* @__PURE__ */ c(
|
|
1057
|
+
"div",
|
|
1058
|
+
{
|
|
1059
|
+
className: "flex items-start gap-2 font-mono text-xs",
|
|
1060
|
+
children: [
|
|
1061
|
+
/* @__PURE__ */ c("span", { className: "text-purple-400", children: [
|
|
1062
|
+
r,
|
|
1063
|
+
":"
|
|
1064
|
+
] }),
|
|
1065
|
+
/* @__PURE__ */ c("span", { className: "text-yellow-400 break-all", children: be(i.value) })
|
|
1066
|
+
]
|
|
1067
|
+
},
|
|
1068
|
+
r
|
|
1069
|
+
)) }) : /* @__PURE__ */ c("div", { className: "text-xs text-slate-600 italic", children: "No getters defined" })
|
|
1070
|
+
] }),
|
|
1071
|
+
e[t].actions && Object.keys(e[t].actions).length > 0 && /* @__PURE__ */ c("div", { className: "bg-slate-900/50 rounded-lg border border-slate-800 p-4", children: [
|
|
1072
|
+
/* @__PURE__ */ c("h3", { className: "text-xs font-bold text-slate-500 uppercase tracking-wider mb-3 border-b border-slate-800 pb-2", children: "Actions" }),
|
|
1073
|
+
/* @__PURE__ */ c("div", { className: "space-y-1", children: Object.keys(
|
|
1074
|
+
e[t].actions
|
|
1075
|
+
).map((r) => /* @__PURE__ */ c(
|
|
1076
|
+
"div",
|
|
1077
|
+
{
|
|
1078
|
+
className: "flex items-center justify-between group",
|
|
1079
|
+
children: [
|
|
1080
|
+
/* @__PURE__ */ c("span", { className: "font-mono text-xs text-blue-400", children: [
|
|
1081
|
+
r,
|
|
1082
|
+
"()"
|
|
1083
|
+
] }),
|
|
1084
|
+
/* @__PURE__ */ c(
|
|
1085
|
+
"button",
|
|
1086
|
+
{
|
|
1087
|
+
onClick: () => {
|
|
1088
|
+
try {
|
|
1089
|
+
e[t].actions[r]();
|
|
1090
|
+
} catch (i) {
|
|
1091
|
+
console.error(i), alert(
|
|
1092
|
+
`Action failed: ${i}`
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
className: "p-1 text-slate-600 hover:text-cyan-400 opacity-0 group-hover:opacity-100 transition-all",
|
|
1097
|
+
title: "Trigger Action",
|
|
1098
|
+
children: /* @__PURE__ */ c(
|
|
1099
|
+
$,
|
|
1100
|
+
{
|
|
1101
|
+
name: "play",
|
|
1102
|
+
size: 12
|
|
1103
|
+
}
|
|
1104
|
+
)
|
|
1105
|
+
}
|
|
1106
|
+
)
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
r
|
|
1110
|
+
)) })
|
|
1111
|
+
] })
|
|
1112
|
+
] }) : /* @__PURE__ */ c("div", { className: "h-full flex items-center justify-center text-slate-600 flex-col gap-2", children: [
|
|
1113
|
+
/* @__PURE__ */ c(
|
|
1114
|
+
$,
|
|
1115
|
+
{
|
|
1116
|
+
name: "database",
|
|
1117
|
+
size: 32,
|
|
1118
|
+
className: "opacity-20"
|
|
1119
|
+
}
|
|
1120
|
+
),
|
|
1121
|
+
/* @__PURE__ */ c("p", { children: "Select a store to inspect" })
|
|
1122
|
+
] }) }) }), Ge = 100, ir = ({ args: e }) => {
|
|
1123
|
+
const [t, r] = U(!1), [i, l] = U(!1), o = be(e), h = o.length > Ge, s = h ? o.slice(0, Ge) + "..." : o;
|
|
1124
|
+
return /* @__PURE__ */ c("td", { className: "px-4 py-3 text-xs text-slate-400 font-mono", children: /* @__PURE__ */ c("div", { className: "flex items-start gap-2", children: [
|
|
1125
|
+
/* @__PURE__ */ c("div", { className: "flex-1 min-w-0", children: t ? /* @__PURE__ */ c("div", { className: "whitespace-pre-wrap break-all bg-slate-900/50 p-2 rounded border border-slate-800 max-h-48 overflow-y-auto", children: o }) : /* @__PURE__ */ c("div", { className: "truncate max-w-[200px]", title: s, children: s }) }),
|
|
1126
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
1127
|
+
h && /* @__PURE__ */ c(
|
|
1128
|
+
"button",
|
|
1129
|
+
{
|
|
1130
|
+
onClick: () => r(!t),
|
|
1131
|
+
className: "p-1 bg-transparent hover:bg-slate-800 rounded transition-colors text-cyan-400 hover:text-cyan-300",
|
|
1132
|
+
title: t ? "Collapse" : "Expand",
|
|
1133
|
+
children: /* @__PURE__ */ c(
|
|
1134
|
+
$,
|
|
1135
|
+
{
|
|
1136
|
+
name: t ? "chevron-up" : "chevron-down",
|
|
1137
|
+
size: 14
|
|
1138
|
+
}
|
|
1139
|
+
)
|
|
1140
|
+
}
|
|
1141
|
+
),
|
|
1142
|
+
/* @__PURE__ */ c(
|
|
1143
|
+
"button",
|
|
1144
|
+
{
|
|
1145
|
+
onClick: async () => {
|
|
1146
|
+
try {
|
|
1147
|
+
await navigator.clipboard.writeText(o), l(!0), setTimeout(() => l(!1), 2e3);
|
|
1148
|
+
} catch (f) {
|
|
1149
|
+
console.error("Failed to copy:", f);
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
className: `p-1 bg-transparent hover:bg-slate-800 rounded transition-colors ${i ? "text-green-400" : "text-slate-500 hover:text-slate-300"}`,
|
|
1153
|
+
title: i ? "Copied!" : "Copy payload",
|
|
1154
|
+
children: /* @__PURE__ */ c($, { name: i ? "check" : "copy", size: 14 })
|
|
1155
|
+
}
|
|
1156
|
+
)
|
|
1157
|
+
] })
|
|
1158
|
+
] }) });
|
|
1159
|
+
}, or = ({ actions: e }) => e.length === 0 ? /* @__PURE__ */ c("div", { className: "h-full flex flex-col items-center justify-center text-slate-600", children: [
|
|
1160
|
+
/* @__PURE__ */ c($, { size: 32, name: "play", className: "mb-2 opacity-20" }),
|
|
1161
|
+
/* @__PURE__ */ c("p", { children: "No actions recorded yet" })
|
|
1162
|
+
] }) : /* @__PURE__ */ c("div", { className: "h-full overflow-y-auto", children: /* @__PURE__ */ c("table", { className: "w-full text-left border-collapse", children: [
|
|
1163
|
+
/* @__PURE__ */ c("thead", { className: "bg-slate-900 sticky top-0 z-10", children: /* @__PURE__ */ c("tr", { children: [
|
|
1164
|
+
/* @__PURE__ */ c("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Time" }),
|
|
1165
|
+
/* @__PURE__ */ c("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Store" }),
|
|
1166
|
+
/* @__PURE__ */ c("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Action" }),
|
|
1167
|
+
/* @__PURE__ */ c("th", { className: "px-4 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-slate-800", children: "Payload" })
|
|
1168
|
+
] }) }),
|
|
1169
|
+
/* @__PURE__ */ c("tbody", { className: "divide-y divide-slate-800/50", children: e.map((t) => /* @__PURE__ */ c(
|
|
1170
|
+
"tr",
|
|
1171
|
+
{
|
|
1172
|
+
className: "hover:bg-slate-900/50 transition-colors",
|
|
1173
|
+
children: [
|
|
1174
|
+
/* @__PURE__ */ c("td", { className: "px-4 py-3 text-xs text-slate-500 font-mono whitespace-nowrap", children: new Date(
|
|
1175
|
+
t.timestamp
|
|
1176
|
+
).toLocaleTimeString() }),
|
|
1177
|
+
/* @__PURE__ */ c("td", { className: "px-4 py-3 text-sm font-medium text-slate-200", children: t.storeName }),
|
|
1178
|
+
/* @__PURE__ */ c("td", { className: "px-4 py-3 text-sm text-cyan-400 font-mono", children: t.actionName }),
|
|
1179
|
+
/* @__PURE__ */ c(ir, { args: t.args })
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
1182
|
+
t.id
|
|
1183
|
+
)) })
|
|
1184
|
+
] }) }), lr = "2.0.0-beta.8", ar = {
|
|
1185
|
+
version: lr
|
|
1186
|
+
};
|
|
1187
|
+
function cr() {
|
|
1188
|
+
const [e, t] = U(!1), [r, i] = U(
|
|
1189
|
+
"inspector"
|
|
1190
|
+
), { stores: l, actions: o, selectedStore: h, setSelectedStore: s } = Ft(), f = o.length, d = ar.version;
|
|
1191
|
+
return e ? /* @__PURE__ */ c("div", { className: "fixed bottom-6 right-6 w-[92vw] max-w-[980px] h-[80vh] md:h-[600px] bg-gradient-to-b from-[#071123] to-[#0b1220] shadow-2xl border border-slate-800 rounded-xl flex flex-col z-[9999] overflow-hidden", children: [
|
|
1192
|
+
/* @__PURE__ */ c("header", { className: "flex items-center justify-between px-4 py-3 border-b border-slate-800 bg-[rgba(255,255,255,0.02)]", children: [
|
|
1193
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-3", children: [
|
|
1194
|
+
/* @__PURE__ */ c(
|
|
1195
|
+
"img",
|
|
1196
|
+
{
|
|
1197
|
+
src: Ye,
|
|
1198
|
+
alt: "Quanta DevTools",
|
|
1199
|
+
className: "w-6 h-6 rounded-full"
|
|
1200
|
+
}
|
|
1201
|
+
),
|
|
1202
|
+
/* @__PURE__ */ c("div", { children: [
|
|
1203
|
+
/* @__PURE__ */ c("div", { className: "text-sm font-semibold text-[rgba(56,178,172,1)]", children: "QuantaJS DevTools" }),
|
|
1204
|
+
/* @__PURE__ */ c("div", { className: "text-xs text-slate-400", children: "Inspect stores, replay actions & manage persistence" })
|
|
1205
|
+
] })
|
|
1206
|
+
] }),
|
|
1207
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-3", children: [
|
|
1208
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 bg-slate-900/30 px-2 py-1 rounded", children: [
|
|
1209
|
+
/* @__PURE__ */ c(
|
|
1210
|
+
"button",
|
|
1211
|
+
{
|
|
1212
|
+
className: `px-3 py-1 text-xs uppercase tracking-wider rounded ${r === "inspector" ? "text-[rgba(56,178,172,1)] bg-slate-800/40" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1213
|
+
onClick: () => i("inspector"),
|
|
1214
|
+
children: "Inspector"
|
|
1215
|
+
}
|
|
1216
|
+
),
|
|
1217
|
+
/* @__PURE__ */ c(
|
|
1218
|
+
"button",
|
|
1219
|
+
{
|
|
1220
|
+
className: `px-3 py-1 text-xs uppercase tracking-wider rounded ${r === "actions" ? "text-[rgba(56,178,172,1)] bg-slate-800/40" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1221
|
+
onClick: () => i("actions"),
|
|
1222
|
+
children: [
|
|
1223
|
+
"Actions (",
|
|
1224
|
+
f,
|
|
1225
|
+
")"
|
|
1226
|
+
]
|
|
1227
|
+
}
|
|
1228
|
+
)
|
|
1229
|
+
] }),
|
|
1230
|
+
/* @__PURE__ */ c(
|
|
1231
|
+
"button",
|
|
1232
|
+
{
|
|
1233
|
+
onClick: () => t(!1),
|
|
1234
|
+
className: "p-1 bg-transparent rounded-full transition text-red-500 hover:text-red-600",
|
|
1235
|
+
title: "Close",
|
|
1236
|
+
children: /* @__PURE__ */ c($, { name: "circle-x", size: 24 })
|
|
1237
|
+
}
|
|
1238
|
+
)
|
|
1239
|
+
] })
|
|
1240
|
+
] }),
|
|
1241
|
+
/* @__PURE__ */ c("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
1242
|
+
/* @__PURE__ */ c("aside", { className: "w-56 bg-[rgba(255,255,255,0.02)] border-r border-slate-800 p-3 flex flex-col gap-3", children: [
|
|
1243
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
1244
|
+
/* @__PURE__ */ c(
|
|
1245
|
+
$,
|
|
1246
|
+
{
|
|
1247
|
+
name: "search",
|
|
1248
|
+
size: 14,
|
|
1249
|
+
className: "text-slate-400"
|
|
1250
|
+
}
|
|
1251
|
+
),
|
|
1252
|
+
/* @__PURE__ */ c(
|
|
1253
|
+
"input",
|
|
1254
|
+
{
|
|
1255
|
+
placeholder: "Filter stor es...",
|
|
1256
|
+
className: "p-1 flex-1 bg-transparent rounded-md outline-none text-sm text-slate-200 placeholder:text-slate-500",
|
|
1257
|
+
onInput: (p) => s(p.target.value),
|
|
1258
|
+
value: h ?? ""
|
|
1259
|
+
}
|
|
1260
|
+
)
|
|
1261
|
+
] }),
|
|
1262
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-auto", children: Object.keys(l).length === 0 ? /* @__PURE__ */ c("div", { className: "text-xs text-slate-500", children: "No stores detected" }) : Object.keys(l).map((p) => /* @__PURE__ */ c(
|
|
1263
|
+
"button",
|
|
1264
|
+
{
|
|
1265
|
+
onClick: () => s(p),
|
|
1266
|
+
className: `w-full mb-1 text-left px-3 py-2 rounded-md flex items-center gap-2 transition ${h === p ? "text-[rgba(56,178,172,1)] hover:text-slate-100 bg-[rgba(255,255,255,0.02)]" : "text-slate-400 hover:text-slate-200 bg-transparent"}`,
|
|
1267
|
+
title: p,
|
|
1268
|
+
children: [
|
|
1269
|
+
/* @__PURE__ */ c("span", { className: "font-mono text-xs text-slate-400", children: /* @__PURE__ */ c(
|
|
1270
|
+
$,
|
|
1271
|
+
{
|
|
1272
|
+
name: "database",
|
|
1273
|
+
size: 14,
|
|
1274
|
+
className: "text-slate-400"
|
|
1275
|
+
}
|
|
1276
|
+
) }),
|
|
1277
|
+
/* @__PURE__ */ c("div", { className: "flex-1 text-sm truncate", children: p })
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
p
|
|
1281
|
+
)) }),
|
|
1282
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-xs text-slate-500", children: [
|
|
1283
|
+
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
1284
|
+
Object.keys(l).length,
|
|
1285
|
+
" stores"
|
|
1286
|
+
] }),
|
|
1287
|
+
/* @__PURE__ */ c("div", { className: "text-right", children: [
|
|
1288
|
+
"v",
|
|
1289
|
+
d
|
|
1290
|
+
] })
|
|
1291
|
+
] })
|
|
1292
|
+
] }),
|
|
1293
|
+
/* @__PURE__ */ c("main", { className: "flex-1 overflow-auto p-4 space-y-4", children: r === "inspector" ? /* @__PURE__ */ c(
|
|
1294
|
+
rr,
|
|
1295
|
+
{
|
|
1296
|
+
stores: l,
|
|
1297
|
+
selectedStore: h,
|
|
1298
|
+
onClose: () => t(!1)
|
|
1299
|
+
}
|
|
1300
|
+
) : /* @__PURE__ */ c(or, { actions: o }) })
|
|
1301
|
+
] })
|
|
1302
|
+
] }) : /* @__PURE__ */ c(
|
|
1303
|
+
"button",
|
|
1304
|
+
{
|
|
1305
|
+
onClick: () => t(!0),
|
|
1306
|
+
className: "fixed bottom-6 right-6 flex items-center bg-black text-white shadow-xl border border-slate-700 rounded-full overflow-hidden transition-all duration-300 ease-out group z-[9999] w-12 hover:w-46 h-12",
|
|
1307
|
+
title: "Open Quanta DevTools",
|
|
1308
|
+
children: [
|
|
1309
|
+
/* @__PURE__ */ c("div", { className: "w-10 h-10 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ c(
|
|
1310
|
+
"img",
|
|
1311
|
+
{
|
|
1312
|
+
src: Ye,
|
|
1313
|
+
alt: "Quanta DevTools",
|
|
1314
|
+
className: "w-10 h-10 rounded-full object-cover"
|
|
1315
|
+
}
|
|
1316
|
+
) }),
|
|
1317
|
+
/* @__PURE__ */ c("span", { className: "opacity-0 group-hover:opacity-100 whitespace-nowrap text-sm font-medium text-[rgba(56,178,172,1)] transition-opacity duration-300", children: "QuantaJS DevTools" })
|
|
1318
|
+
]
|
|
1319
|
+
}
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
const nr = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-400:oklch(85.2% .199 91.936);--color-green-400:oklch(79.2% .209 151.711);--color-green-600:oklch(62.7% .194 149.214);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-400:oklch(70.7% .165 254.624);--color-purple-400:oklch(71.4% .203 305.504);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}.visible{visibility:visible}.fixed{position:fixed}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.z-10{z-index:10}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.flex{display:flex}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing)*48)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-56{width:calc(var(--spacing)*56)}.w-\\[92vw\\]{width:92vw}.w-full{width:100%}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[980px\\]{max-width:980px}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-800\\/50>:not(:last-child)){border-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){:where(.divide-slate-800\\/50>:not(:last-child)){border-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-green-400\\/20{border-color:#05df7233}@supports (color:color-mix(in lab,red,red)){.border-green-400\\/20{border-color:color-mix(in oklab,var(--color-green-400)20%,transparent)}}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-800{border-color:var(--color-slate-800)}.border-slate-800\\/50{border-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.border-slate-800\\/50{border-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.bg-\\[rgba\\(255\\,255\\,255\\,0\\.02\\)\\]{background-color:#ffffff05}.bg-black{background-color:var(--color-black)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-400\\/10{background-color:#05df721a}@supports (color:color-mix(in lab,red,red)){.bg-green-400\\/10{background-color:color-mix(in oklab,var(--color-green-400)10%,transparent)}}.bg-slate-500{background-color:var(--color-slate-500)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-800\\/40{background-color:#1d293d66}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\\/40{background-color:color-mix(in oklab,var(--color-slate-800)40%,transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\\/30{background-color:#0f172b4d}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/30{background-color:color-mix(in oklab,var(--color-slate-900)30%,transparent)}}.bg-slate-900\\/50{background-color:#0f172b80}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\\/50{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.bg-slate-950{background-color:var(--color-slate-950)}.bg-transparent{background-color:#0000}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\[\\#071123\\]{--tw-gradient-from:#071123;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\\[\\#0b1220\\]{--tw-gradient-to:#0b1220;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[rgba\\(56\\,178\\,172\\,1\\)\\]{color:#38b2ac}.text-blue-400{color:var(--color-blue-400)}.text-cyan-400{color:var(--color-cyan-400)}.text-green-400{color:var(--color-green-400)}.text-green-600{color:var(--color-green-600)}.text-purple-400{color:var(--color-purple-400)}.text-red-500{color:var(--color-red-500)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.opacity-0{opacity:0}.opacity-20{opacity:.2}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_0_6px_rgba\\(74\\,222\\,128\\,0\\.5\\)\\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#4ade8080);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-slate-500::placeholder{color:var(--color-slate-500)}@media(hover:hover){.hover\\:w-46:hover{width:calc(var(--spacing)*46)}.hover\\:border-red-500\\/30:hover{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.hover\\:border-red-500\\/30:hover{border-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}}.hover\\:bg-red-500\\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-red-500\\/20:hover{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.hover\\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\\:bg-slate-800:hover{background-color:var(--color-slate-800)}.hover\\:bg-slate-900\\/50:hover{background-color:#0f172b80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-slate-900\\/50:hover{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.hover\\:text-cyan-300:hover{color:var(--color-cyan-300)}.hover\\:text-cyan-400:hover{color:var(--color-cyan-400)}.hover\\:text-red-400:hover{color:var(--color-red-400)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:text-slate-200:hover{color:var(--color-slate-200)}.hover\\:text-slate-300:hover{color:var(--color-slate-300)}.hover\\:text-white:hover{color:var(--color-white)}}@media(min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@media(prefers-color-scheme:dark){.dark\\:text-green-400{color:var(--color-green-400)}}.quanta-devtools-root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.quanta-devtools-root ::-webkit-scrollbar{width:6px;height:6px}.quanta-devtools-root ::-webkit-scrollbar-track{background:#0f172a80}.quanta-devtools-root ::-webkit-scrollbar-thumb{background:#38b2ac;border-radius:3px}.quanta-devtools-root ::-webkit-scrollbar-thumb:hover{background:#2c7a7b}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}';
|
|
1323
|
+
function sr() {
|
|
1324
|
+
return !!(typeof process < "u" && process.env && process.env.NODE_ENV === "development");
|
|
1325
|
+
}
|
|
1326
|
+
function hr(e = {}) {
|
|
1327
|
+
const { target: t = "body", visible: r } = e;
|
|
1328
|
+
if (!(r !== void 0 ? r : sr()))
|
|
1329
|
+
return () => {
|
|
1330
|
+
};
|
|
1331
|
+
if (console.log("[Quanta DevTools] Mounting..."), !document.getElementById("quanta-devtools-styles")) {
|
|
1332
|
+
const o = document.createElement("style");
|
|
1333
|
+
o.id = "quanta-devtools-styles", o.innerHTML = nr, document.head.appendChild(o);
|
|
1334
|
+
}
|
|
1335
|
+
let i;
|
|
1336
|
+
if (typeof t == "string" ? i = document.querySelector(t) : i = t, !i)
|
|
1337
|
+
return console.error("[Quanta DevTools] Target element not found"), () => {
|
|
1338
|
+
};
|
|
1339
|
+
const l = document.createElement("div");
|
|
1340
|
+
return l.id = "quanta-devtools-root", i.appendChild(l), Fe(J(cr, {}), l), () => {
|
|
1341
|
+
Fe(null, l), l.remove();
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
const yr = ({ visible: e }) => (wt(() => hr({ visible: e }), [e]), null);
|
|
421
1345
|
export {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
1346
|
+
Xe as QuantaContext,
|
|
1347
|
+
yr as QuantaDevTools,
|
|
1348
|
+
xr as QuantaProvider,
|
|
1349
|
+
wr as computed,
|
|
1350
|
+
vr as createStore,
|
|
1351
|
+
mr as logger,
|
|
1352
|
+
br as reactive,
|
|
1353
|
+
ur as useCreateStore,
|
|
1354
|
+
bt as useQuantaContext,
|
|
1355
|
+
Re as useQuantaStore,
|
|
1356
|
+
pr as useStore,
|
|
1357
|
+
kr as watch
|
|
433
1358
|
};
|