@genai-fi/base 4.3.7 → 4.3.9
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/dist/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
- package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
- package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
- package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
- package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
- package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
- package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
- package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
- package/dist/assets/SidePanel.css +1 -1
- package/dist/assets/SvgLayer.css +1 -1
- package/dist/assets/Widget.css +1 -1
- package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +724 -689
- package/dist/components/BusyButton/BusyButton.d.ts +4 -4
- package/dist/components/BusyButton/BusyButton.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/Feedback/Feedback.js +4 -4
- package/dist/components/Feedback/Rating.js +1 -1
- package/dist/components/Help/Help.js +5 -5
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +9609 -6092
- package/dist/components/QRCode/DialogQR.js +4 -4
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/SidePanel/SidePanel.d.ts +2 -1
- package/dist/components/SidePanel/SidePanel.js +91 -73
- package/dist/components/Webcam/Webcam.js +3 -3
- package/dist/components/WorkflowLayout/Widget.js +1460 -1438
- package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
- package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
- package/dist/hooks/peer.js +1 -1
- package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
- package/dist/react-CiLnfHJp.js +140 -0
- package/dist/services/peer2peer/Incoming.js +1 -1
- package/dist/services/peer2peer/Outgoing.js +1 -1
- package/dist/services/peer2peer/Peer2Peer.js +538 -541
- package/dist/services/peer2peer/PeerConnection.js +1 -1
- package/dist/state/webrtcState.js +1 -1
- package/dist/style/theme.js +1 -1
- package/dist/util/Observer.js +1 -1
- package/dist/util/zip.js +1 -1
- package/dist/vanilla-OLGM3aAq.js +439 -0
- package/package.json +3 -3
- package/dist/react-B9NW8BS7.js +0 -112
- package/dist/vanilla-BJxibF1U.js +0 -404
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var f = (h, c, e) => c in h ? u(h, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[c] = e;
|
|
3
3
|
var o = (h, c, e) => f(h, typeof c != "symbol" ? c + "" : c, e);
|
|
4
|
-
import { E as m } from "../../index-
|
|
4
|
+
import { E as m } from "../../index-B_zFkp-8.js";
|
|
5
5
|
import { createAsym as T } from "../../util/crypto.js";
|
|
6
6
|
import { base64ToBytes as d, bytesToBase64 as l } from "../../util/base64.js";
|
|
7
7
|
import y from "./error.js";
|
package/dist/style/theme.js
CHANGED
package/dist/util/Observer.js
CHANGED
package/dist/util/zip.js
CHANGED
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
const S = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
2
|
+
function W(t) {
|
|
3
|
+
return "init" in t;
|
|
4
|
+
}
|
|
5
|
+
function G(t) {
|
|
6
|
+
return !!t.write;
|
|
7
|
+
}
|
|
8
|
+
function R(t) {
|
|
9
|
+
return "v" in t || "e" in t;
|
|
10
|
+
}
|
|
11
|
+
function E(t) {
|
|
12
|
+
if ("e" in t)
|
|
13
|
+
throw t.e;
|
|
14
|
+
if ((S ? "production" : void 0) !== "production" && !("v" in t))
|
|
15
|
+
throw new Error("[Bug] atom state is not initialized");
|
|
16
|
+
return t.v;
|
|
17
|
+
}
|
|
18
|
+
function N(t) {
|
|
19
|
+
return typeof (t == null ? void 0 : t.then) == "function";
|
|
20
|
+
}
|
|
21
|
+
function z(t, n, s) {
|
|
22
|
+
if (!s.p.has(t)) {
|
|
23
|
+
s.p.add(t);
|
|
24
|
+
const e = () => s.p.delete(t);
|
|
25
|
+
n.then(e, e);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function V(t, n, s) {
|
|
29
|
+
var e;
|
|
30
|
+
const o = /* @__PURE__ */ new Set();
|
|
31
|
+
for (const c of ((e = s.get(t)) == null ? void 0 : e.t) || [])
|
|
32
|
+
o.add(c);
|
|
33
|
+
for (const c of n.p)
|
|
34
|
+
o.add(c);
|
|
35
|
+
return o;
|
|
36
|
+
}
|
|
37
|
+
const q = (t, n, ...s) => n.read(...s), Q = (t, n, ...s) => n.write(...s), X = (t, n) => {
|
|
38
|
+
var s;
|
|
39
|
+
return (s = n.INTERNAL_onInit) == null ? void 0 : s.call(n, t);
|
|
40
|
+
}, Y = (t, n, s) => {
|
|
41
|
+
var e;
|
|
42
|
+
return (e = n.onMount) == null ? void 0 : e.call(n, s);
|
|
43
|
+
}, Z = (t, n) => {
|
|
44
|
+
var s;
|
|
45
|
+
const e = v(t), o = e[0], c = e[6], i = e[9];
|
|
46
|
+
if ((S ? "production" : void 0) !== "production" && !n)
|
|
47
|
+
throw new Error("Atom is undefined or null");
|
|
48
|
+
let f = o.get(n);
|
|
49
|
+
return f || (f = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, o.set(n, f), (s = c.i) == null || s.call(c, n), i == null || i(t, n)), f;
|
|
50
|
+
}, tt = (t) => {
|
|
51
|
+
const n = v(t), s = n[1], e = n[3], o = n[4], c = n[5], i = n[6], f = n[13], r = [], h = (m) => {
|
|
52
|
+
try {
|
|
53
|
+
m();
|
|
54
|
+
} catch (d) {
|
|
55
|
+
r.push(d);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
do {
|
|
59
|
+
i.f && h(i.f);
|
|
60
|
+
const m = /* @__PURE__ */ new Set(), d = m.add.bind(m);
|
|
61
|
+
e.forEach((u) => {
|
|
62
|
+
var l;
|
|
63
|
+
return (l = s.get(u)) == null ? void 0 : l.l.forEach(d);
|
|
64
|
+
}), e.clear(), c.forEach(d), c.clear(), o.forEach(d), o.clear(), m.forEach(h), e.size && f(t);
|
|
65
|
+
} while (e.size || c.size || o.size);
|
|
66
|
+
if (r.length)
|
|
67
|
+
throw new AggregateError(r);
|
|
68
|
+
}, nt = (t) => {
|
|
69
|
+
const n = v(t), s = n[1], e = n[2], o = n[3], c = n[11], i = n[14], f = n[17], r = [], h = /* @__PURE__ */ new WeakSet(), m = /* @__PURE__ */ new WeakSet(), d = Array.from(o);
|
|
70
|
+
for (; d.length; ) {
|
|
71
|
+
const u = d[d.length - 1], l = c(t, u);
|
|
72
|
+
if (m.has(u)) {
|
|
73
|
+
d.pop();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (h.has(u)) {
|
|
77
|
+
if (e.get(u) === l.n)
|
|
78
|
+
r.push([u, l]);
|
|
79
|
+
else if ((S ? "production" : void 0) !== "production" && e.has(u))
|
|
80
|
+
throw new Error("[Bug] invalidated atom exists");
|
|
81
|
+
m.add(u), d.pop();
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
h.add(u);
|
|
85
|
+
for (const _ of V(u, l, s))
|
|
86
|
+
h.has(_) || d.push(_);
|
|
87
|
+
}
|
|
88
|
+
for (let u = r.length - 1; u >= 0; --u) {
|
|
89
|
+
const [l, _] = r[u];
|
|
90
|
+
let g = !1;
|
|
91
|
+
for (const b of _.d.keys())
|
|
92
|
+
if (b !== l && o.has(b)) {
|
|
93
|
+
g = !0;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
g && (e.set(l, _.n), i(t, l), f(t, l)), e.delete(l);
|
|
97
|
+
}
|
|
98
|
+
}, K = /* @__PURE__ */ new WeakSet(), et = (t, n) => {
|
|
99
|
+
var s, e;
|
|
100
|
+
const o = v(t), c = o[1], i = o[2], f = o[3], r = o[6], h = o[7], m = o[11], d = o[12], u = o[13], l = o[14], _ = o[16], g = o[17], b = o[20], B = o[26], D = o[28], a = m(t, n), A = D[0];
|
|
101
|
+
if (R(a)) {
|
|
102
|
+
if (
|
|
103
|
+
// If the atom is mounted, we can use cached atom state,
|
|
104
|
+
// because it should have been updated by dependencies.
|
|
105
|
+
// We can't use the cache if the atom is invalidated.
|
|
106
|
+
c.has(n) && i.get(n) !== a.n || // If atom is not mounted, we can use cached atom state,
|
|
107
|
+
// only if store hasn't been mutated.
|
|
108
|
+
a.m === A
|
|
109
|
+
)
|
|
110
|
+
return a.m = A, a;
|
|
111
|
+
let p = !1;
|
|
112
|
+
for (const [w, I] of a.d)
|
|
113
|
+
if (l(t, w).n !== I) {
|
|
114
|
+
p = !0;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
if (!p)
|
|
118
|
+
return a.m = A, a;
|
|
119
|
+
}
|
|
120
|
+
let k = !0;
|
|
121
|
+
const O = new Set(a.d.keys()), C = /* @__PURE__ */ new Map(), M = () => {
|
|
122
|
+
for (const p of O)
|
|
123
|
+
C.has(p) || a.d.delete(p);
|
|
124
|
+
}, H = () => {
|
|
125
|
+
if (c.has(n)) {
|
|
126
|
+
const p = !f.size;
|
|
127
|
+
g(t, n), p && (u(t), d(t));
|
|
128
|
+
}
|
|
129
|
+
}, j = (p) => {
|
|
130
|
+
var w;
|
|
131
|
+
if (p === n) {
|
|
132
|
+
const P = m(t, p);
|
|
133
|
+
if (!R(P))
|
|
134
|
+
if (W(p))
|
|
135
|
+
b(t, p, p.init);
|
|
136
|
+
else
|
|
137
|
+
throw new Error("no atom init");
|
|
138
|
+
return E(P);
|
|
139
|
+
}
|
|
140
|
+
const I = l(t, p);
|
|
141
|
+
try {
|
|
142
|
+
return E(I);
|
|
143
|
+
} finally {
|
|
144
|
+
C.set(p, I.n), a.d.set(p, I.n), N(a.v) && z(n, a.v, I), c.has(n) && ((w = c.get(p)) == null || w.t.add(n)), k || H();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
let L, U;
|
|
148
|
+
const F = {
|
|
149
|
+
get signal() {
|
|
150
|
+
return L || (L = new AbortController()), L.signal;
|
|
151
|
+
},
|
|
152
|
+
get setSelf() {
|
|
153
|
+
return (S ? "production" : void 0) !== "production" && console.warn(
|
|
154
|
+
"[DEPRECATED] setSelf is deprecated and will be removed in v3."
|
|
155
|
+
), (S ? "production" : void 0) !== "production" && !G(n) && console.warn("setSelf function cannot be used with read-only atom"), !U && G(n) && (U = (...p) => {
|
|
156
|
+
if ((S ? "production" : void 0) !== "production" && k && console.warn("setSelf function cannot be called in sync"), !k)
|
|
157
|
+
try {
|
|
158
|
+
return _(t, n, ...p);
|
|
159
|
+
} finally {
|
|
160
|
+
u(t), d(t);
|
|
161
|
+
}
|
|
162
|
+
}), U;
|
|
163
|
+
}
|
|
164
|
+
}, T = a.n, $ = i.get(n) === T;
|
|
165
|
+
try {
|
|
166
|
+
(S ? "production" : void 0) !== "production" && K.delete(t);
|
|
167
|
+
const p = h(t, n, j, F);
|
|
168
|
+
if ((S ? "production" : void 0) !== "production" && K.has(t) && console.warn(
|
|
169
|
+
"Detected store mutation during atom read. This is not supported."
|
|
170
|
+
), b(t, n, p), N(p)) {
|
|
171
|
+
B(t, p, () => L == null ? void 0 : L.abort());
|
|
172
|
+
const w = () => {
|
|
173
|
+
M(), H();
|
|
174
|
+
};
|
|
175
|
+
p.then(w, w);
|
|
176
|
+
} else
|
|
177
|
+
M();
|
|
178
|
+
return (s = r.r) == null || s.call(r, n), a.m = A, a;
|
|
179
|
+
} catch (p) {
|
|
180
|
+
return delete a.v, a.e = p, ++a.n, a.m = A, a;
|
|
181
|
+
} finally {
|
|
182
|
+
k = !1, a.n !== T && $ && (i.set(n, a.n), f.add(n), (e = r.c) == null || e.call(r, n));
|
|
183
|
+
}
|
|
184
|
+
}, ot = (t, n) => {
|
|
185
|
+
const s = v(t), e = s[1], o = s[2], c = s[11], i = [n];
|
|
186
|
+
for (; i.length; ) {
|
|
187
|
+
const f = i.pop(), r = c(t, f);
|
|
188
|
+
for (const h of V(f, r, e)) {
|
|
189
|
+
const m = c(t, h);
|
|
190
|
+
o.get(h) !== m.n && (o.set(h, m.n), i.push(h));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}, st = (t, n, ...s) => {
|
|
194
|
+
const e = v(t), o = e[3], c = e[6], i = e[8], f = e[11], r = e[12], h = e[13], m = e[14], d = e[15], u = e[16], l = e[17], _ = e[20], g = e[28];
|
|
195
|
+
let b = !0;
|
|
196
|
+
const B = (a) => E(m(t, a)), D = (a, ...A) => {
|
|
197
|
+
var k;
|
|
198
|
+
const O = f(t, a);
|
|
199
|
+
try {
|
|
200
|
+
if (a === n) {
|
|
201
|
+
if (!W(a))
|
|
202
|
+
throw new Error("atom not writable");
|
|
203
|
+
(S ? "production" : void 0) !== "production" && K.add(t);
|
|
204
|
+
const C = O.n, M = A[0];
|
|
205
|
+
_(t, a, M), l(t, a), C !== O.n && (++g[0], o.add(a), d(t, a), (k = c.c) == null || k.call(c, a));
|
|
206
|
+
return;
|
|
207
|
+
} else
|
|
208
|
+
return u(t, a, ...A);
|
|
209
|
+
} finally {
|
|
210
|
+
b || (h(t), r(t));
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
try {
|
|
214
|
+
return i(t, n, B, D, ...s);
|
|
215
|
+
} finally {
|
|
216
|
+
b = !1;
|
|
217
|
+
}
|
|
218
|
+
}, ct = (t, n) => {
|
|
219
|
+
var s;
|
|
220
|
+
const e = v(t), o = e[1], c = e[3], i = e[6], f = e[11], r = e[15], h = e[18], m = e[19], d = f(t, n), u = o.get(n);
|
|
221
|
+
if (u) {
|
|
222
|
+
for (const [l, _] of d.d)
|
|
223
|
+
if (!u.d.has(l)) {
|
|
224
|
+
const g = f(t, l);
|
|
225
|
+
h(t, l).t.add(n), u.d.add(l), _ !== g.n && (c.add(l), r(t, l), (s = i.c) == null || s.call(i, l));
|
|
226
|
+
}
|
|
227
|
+
for (const l of u.d)
|
|
228
|
+
if (!d.d.has(l)) {
|
|
229
|
+
u.d.delete(l);
|
|
230
|
+
const _ = m(t, l);
|
|
231
|
+
_ == null || _.t.delete(n);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}, it = (t, n) => {
|
|
235
|
+
var s;
|
|
236
|
+
const e = v(t), o = e[1], c = e[4], i = e[6], f = e[10], r = e[11], h = e[12], m = e[13], d = e[14], u = e[16], l = e[18], _ = r(t, n);
|
|
237
|
+
let g = o.get(n);
|
|
238
|
+
if (!g) {
|
|
239
|
+
d(t, n);
|
|
240
|
+
for (const b of _.d.keys())
|
|
241
|
+
l(t, b).t.add(n);
|
|
242
|
+
if (g = {
|
|
243
|
+
l: /* @__PURE__ */ new Set(),
|
|
244
|
+
d: new Set(_.d.keys()),
|
|
245
|
+
t: /* @__PURE__ */ new Set()
|
|
246
|
+
}, o.set(n, g), G(n)) {
|
|
247
|
+
const b = () => {
|
|
248
|
+
let B = !0;
|
|
249
|
+
const D = (...a) => {
|
|
250
|
+
try {
|
|
251
|
+
return u(t, n, ...a);
|
|
252
|
+
} finally {
|
|
253
|
+
B || (m(t), h(t));
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
try {
|
|
257
|
+
const a = f(t, n, D);
|
|
258
|
+
a && (g.u = () => {
|
|
259
|
+
B = !0;
|
|
260
|
+
try {
|
|
261
|
+
a();
|
|
262
|
+
} finally {
|
|
263
|
+
B = !1;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
} finally {
|
|
267
|
+
B = !1;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
c.add(b);
|
|
271
|
+
}
|
|
272
|
+
(s = i.m) == null || s.call(i, n);
|
|
273
|
+
}
|
|
274
|
+
return g;
|
|
275
|
+
}, at = (t, n) => {
|
|
276
|
+
var s, e;
|
|
277
|
+
const o = v(t), c = o[1], i = o[5], f = o[6], r = o[11], h = o[19], m = r(t, n);
|
|
278
|
+
let d = c.get(n);
|
|
279
|
+
if (!d || d.l.size)
|
|
280
|
+
return d;
|
|
281
|
+
let u = !1;
|
|
282
|
+
for (const l of d.t)
|
|
283
|
+
if ((s = c.get(l)) != null && s.d.has(n)) {
|
|
284
|
+
u = !0;
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
if (!u) {
|
|
288
|
+
d.u && i.add(d.u), d = void 0, c.delete(n);
|
|
289
|
+
for (const l of m.d.keys()) {
|
|
290
|
+
const _ = h(t, l);
|
|
291
|
+
_ == null || _.t.delete(n);
|
|
292
|
+
}
|
|
293
|
+
(e = f.u) == null || e.call(f, n);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
return d;
|
|
297
|
+
}, lt = (t, n, s) => {
|
|
298
|
+
const e = v(t), o = e[11], c = e[27], i = o(t, n), f = "v" in i, r = i.v;
|
|
299
|
+
if (N(s))
|
|
300
|
+
for (const h of i.d.keys())
|
|
301
|
+
z(
|
|
302
|
+
n,
|
|
303
|
+
s,
|
|
304
|
+
o(t, h)
|
|
305
|
+
);
|
|
306
|
+
i.v = s, delete i.e, (!f || !Object.is(r, i.v)) && (++i.n, N(r) && c(t, r));
|
|
307
|
+
}, rt = (t, n) => {
|
|
308
|
+
const s = v(t)[14];
|
|
309
|
+
return E(s(t, n));
|
|
310
|
+
}, dt = (t, n, ...s) => {
|
|
311
|
+
const e = v(t), o = e[3], c = e[12], i = e[13], f = e[16], r = o.size;
|
|
312
|
+
try {
|
|
313
|
+
return f(t, n, ...s);
|
|
314
|
+
} finally {
|
|
315
|
+
o.size !== r && (i(t), c(t));
|
|
316
|
+
}
|
|
317
|
+
}, ut = (t, n, s) => {
|
|
318
|
+
const e = v(t), o = e[12], c = e[18], i = e[19], r = c(t, n).l;
|
|
319
|
+
return r.add(s), o(t), () => {
|
|
320
|
+
r.delete(s), i(t, n), o(t);
|
|
321
|
+
};
|
|
322
|
+
}, ft = (t, n, s) => {
|
|
323
|
+
const o = v(t)[25];
|
|
324
|
+
let c = o.get(n);
|
|
325
|
+
if (!c) {
|
|
326
|
+
c = /* @__PURE__ */ new Set(), o.set(n, c);
|
|
327
|
+
const i = () => o.delete(n);
|
|
328
|
+
n.then(i, i);
|
|
329
|
+
}
|
|
330
|
+
c.add(s);
|
|
331
|
+
}, pt = (t, n) => {
|
|
332
|
+
const o = v(t)[25].get(n);
|
|
333
|
+
o == null || o.forEach((c) => c());
|
|
334
|
+
}, x = /* @__PURE__ */ new WeakMap(), v = (t) => {
|
|
335
|
+
const n = x.get(t);
|
|
336
|
+
if ((S ? "production" : void 0) !== "production" && !n)
|
|
337
|
+
throw new Error(
|
|
338
|
+
"Store must be created by buildStore to read its building blocks"
|
|
339
|
+
);
|
|
340
|
+
return n;
|
|
341
|
+
};
|
|
342
|
+
function bt(t) {
|
|
343
|
+
const n = v(t), s = n[24];
|
|
344
|
+
return s ? s(n) : n;
|
|
345
|
+
}
|
|
346
|
+
function ht(...t) {
|
|
347
|
+
const n = {
|
|
348
|
+
get(e) {
|
|
349
|
+
const o = v(n)[21];
|
|
350
|
+
return o(n, e);
|
|
351
|
+
},
|
|
352
|
+
set(e, ...o) {
|
|
353
|
+
const c = v(n)[22];
|
|
354
|
+
return c(n, e, ...o);
|
|
355
|
+
},
|
|
356
|
+
sub(e, o) {
|
|
357
|
+
const c = v(n)[23];
|
|
358
|
+
return c(n, e, o);
|
|
359
|
+
}
|
|
360
|
+
}, s = [
|
|
361
|
+
// store state
|
|
362
|
+
/* @__PURE__ */ new WeakMap(),
|
|
363
|
+
// atomStateMap
|
|
364
|
+
/* @__PURE__ */ new WeakMap(),
|
|
365
|
+
// mountedMap
|
|
366
|
+
/* @__PURE__ */ new WeakMap(),
|
|
367
|
+
// invalidatedAtoms
|
|
368
|
+
/* @__PURE__ */ new Set(),
|
|
369
|
+
// changedAtoms
|
|
370
|
+
/* @__PURE__ */ new Set(),
|
|
371
|
+
// mountCallbacks
|
|
372
|
+
/* @__PURE__ */ new Set(),
|
|
373
|
+
// unmountCallbacks
|
|
374
|
+
{},
|
|
375
|
+
// storeHooks
|
|
376
|
+
// atom interceptors
|
|
377
|
+
q,
|
|
378
|
+
Q,
|
|
379
|
+
X,
|
|
380
|
+
Y,
|
|
381
|
+
// building-block functions
|
|
382
|
+
Z,
|
|
383
|
+
tt,
|
|
384
|
+
nt,
|
|
385
|
+
et,
|
|
386
|
+
ot,
|
|
387
|
+
st,
|
|
388
|
+
ct,
|
|
389
|
+
it,
|
|
390
|
+
at,
|
|
391
|
+
lt,
|
|
392
|
+
rt,
|
|
393
|
+
dt,
|
|
394
|
+
ut,
|
|
395
|
+
void 0,
|
|
396
|
+
// abortable promise support
|
|
397
|
+
/* @__PURE__ */ new WeakMap(),
|
|
398
|
+
// abortHandlersMap
|
|
399
|
+
ft,
|
|
400
|
+
pt,
|
|
401
|
+
// store epoch
|
|
402
|
+
[0]
|
|
403
|
+
].map((e, o) => t[o] || e);
|
|
404
|
+
return x.set(n, Object.freeze(s)), n;
|
|
405
|
+
}
|
|
406
|
+
const J = {};
|
|
407
|
+
let mt = 0;
|
|
408
|
+
function St(t, n) {
|
|
409
|
+
const s = `atom${++mt}`, e = {
|
|
410
|
+
toString() {
|
|
411
|
+
return (J ? "production" : void 0) !== "production" && this.debugLabel ? s + ":" + this.debugLabel : s;
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
return typeof t == "function" ? e.read = t : (e.init = t, e.read = _t, e.write = vt), e;
|
|
415
|
+
}
|
|
416
|
+
function _t(t) {
|
|
417
|
+
return t(this);
|
|
418
|
+
}
|
|
419
|
+
function vt(t, n, s) {
|
|
420
|
+
return n(
|
|
421
|
+
this,
|
|
422
|
+
typeof s == "function" ? s(t(this)) : s
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
function gt() {
|
|
426
|
+
return ht();
|
|
427
|
+
}
|
|
428
|
+
let y;
|
|
429
|
+
function Bt() {
|
|
430
|
+
return y || (y = gt(), (J ? "production" : void 0) !== "production" && (globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = y), globalThis.__JOTAI_DEFAULT_STORE__ !== y && console.warn(
|
|
431
|
+
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
432
|
+
))), y;
|
|
433
|
+
}
|
|
434
|
+
export {
|
|
435
|
+
St as a,
|
|
436
|
+
bt as b,
|
|
437
|
+
gt as c,
|
|
438
|
+
Bt as g
|
|
439
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genai-fi/base",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@emotion/styled": "^11.14.0",
|
|
41
41
|
"@mui/icons-material": "^7.3.1",
|
|
42
42
|
"@mui/material": "^7.3.1",
|
|
43
|
-
"@mui/x-charts": "^8.
|
|
43
|
+
"@mui/x-charts": "^8.21.0",
|
|
44
44
|
"react": "^19.1.1",
|
|
45
45
|
"react-dom": "^19.1.1",
|
|
46
46
|
"react-i18next": "^15.5.1",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@ladle/react": "^5.1.1",
|
|
57
57
|
"@mui/icons-material": "^7.3.1",
|
|
58
58
|
"@mui/material": "^7.3.1",
|
|
59
|
-
"@mui/x-charts": "^8.
|
|
59
|
+
"@mui/x-charts": "^8.21.0",
|
|
60
60
|
"@testing-library/jest-dom": "^6.6.3",
|
|
61
61
|
"@testing-library/react": "^16.3.0",
|
|
62
62
|
"@testing-library/user-event": "^14.6.1",
|
package/dist/react-B9NW8BS7.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import _, { useRef as R, createElement as A, useReducer as S, useEffect as x, useDebugValue as y, createContext as C, useCallback as E, useContext as F } from "react";
|
|
2
|
-
import { c as V, g as j, I as h } from "./vanilla-BJxibF1U.js";
|
|
3
|
-
const k = {}, w = C(
|
|
4
|
-
void 0
|
|
5
|
-
);
|
|
6
|
-
function P(t) {
|
|
7
|
-
return F(w) || j();
|
|
8
|
-
}
|
|
9
|
-
function T({
|
|
10
|
-
children: t,
|
|
11
|
-
store: s
|
|
12
|
-
}) {
|
|
13
|
-
const u = R(void 0);
|
|
14
|
-
return !s && !u.current && (u.current = V()), A(
|
|
15
|
-
w.Provider,
|
|
16
|
-
{
|
|
17
|
-
value: s || u.current
|
|
18
|
-
},
|
|
19
|
-
t
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
const b = (t) => typeof (t == null ? void 0 : t.then) == "function", g = (t) => {
|
|
23
|
-
t.status || (t.status = "pending", t.then(
|
|
24
|
-
(s) => {
|
|
25
|
-
t.status = "fulfilled", t.value = s;
|
|
26
|
-
},
|
|
27
|
-
(s) => {
|
|
28
|
-
t.status = "rejected", t.reason = s;
|
|
29
|
-
}
|
|
30
|
-
));
|
|
31
|
-
}, D = _.use || // A shim for older React versions
|
|
32
|
-
((t) => {
|
|
33
|
-
if (t.status === "pending")
|
|
34
|
-
throw t;
|
|
35
|
-
if (t.status === "fulfilled")
|
|
36
|
-
return t.value;
|
|
37
|
-
throw t.status === "rejected" ? t.reason : (g(t), t);
|
|
38
|
-
}), d = /* @__PURE__ */ new WeakMap(), v = (t, s) => {
|
|
39
|
-
let u = d.get(t);
|
|
40
|
-
return u || (u = new Promise((o, n) => {
|
|
41
|
-
let a = t;
|
|
42
|
-
const l = (e) => (r) => {
|
|
43
|
-
a === e && o(r);
|
|
44
|
-
}, f = (e) => (r) => {
|
|
45
|
-
a === e && n(r);
|
|
46
|
-
}, c = () => {
|
|
47
|
-
try {
|
|
48
|
-
const e = s();
|
|
49
|
-
b(e) ? (d.set(e, u), a = e, e.then(l(e), f(e)), h(e, c)) : o(e);
|
|
50
|
-
} catch (e) {
|
|
51
|
-
n(e);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
t.then(l(t), f(t)), h(t, c);
|
|
55
|
-
}), d.set(t, u)), u;
|
|
56
|
-
};
|
|
57
|
-
function I(t, s) {
|
|
58
|
-
const { delay: u, unstable_promiseStatus: o = !_.use } = {}, n = P(), [[a, l, f], c] = S(
|
|
59
|
-
(r) => {
|
|
60
|
-
const i = n.get(t);
|
|
61
|
-
return Object.is(r[0], i) && r[1] === n && r[2] === t ? r : [i, n, t];
|
|
62
|
-
},
|
|
63
|
-
void 0,
|
|
64
|
-
() => [n.get(t), n, t]
|
|
65
|
-
);
|
|
66
|
-
let e = a;
|
|
67
|
-
if ((l !== n || f !== t) && (c(), e = n.get(t)), x(() => {
|
|
68
|
-
const r = n.sub(t, () => {
|
|
69
|
-
if (o)
|
|
70
|
-
try {
|
|
71
|
-
const i = n.get(t);
|
|
72
|
-
b(i) && g(
|
|
73
|
-
v(i, () => n.get(t))
|
|
74
|
-
);
|
|
75
|
-
} catch {
|
|
76
|
-
}
|
|
77
|
-
if (typeof u == "number") {
|
|
78
|
-
setTimeout(c, u);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
c();
|
|
82
|
-
});
|
|
83
|
-
return c(), r;
|
|
84
|
-
}, [n, t, u, o]), y(e), b(e)) {
|
|
85
|
-
const r = v(e, () => n.get(t));
|
|
86
|
-
return o && g(r), D(r);
|
|
87
|
-
}
|
|
88
|
-
return e;
|
|
89
|
-
}
|
|
90
|
-
function L(t, s) {
|
|
91
|
-
const u = P();
|
|
92
|
-
return E(
|
|
93
|
-
(...n) => {
|
|
94
|
-
if ((k ? "production" : void 0) !== "production" && !("write" in t))
|
|
95
|
-
throw new Error("not writable atom");
|
|
96
|
-
return u.set(t, ...n);
|
|
97
|
-
},
|
|
98
|
-
[u, t]
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
function H(t, s) {
|
|
102
|
-
return [
|
|
103
|
-
I(t),
|
|
104
|
-
// We do wrong type assertion here, which results in throwing an error.
|
|
105
|
-
L(t)
|
|
106
|
-
];
|
|
107
|
-
}
|
|
108
|
-
export {
|
|
109
|
-
T as P,
|
|
110
|
-
H as a,
|
|
111
|
-
I as u
|
|
112
|
-
};
|