@instantdb/react 0.22.72 → 0.22.73-experimental.drewh-entity-caching.19724220728.1
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/standalone/index.js +204 -202
- package/dist/standalone/index.umd.cjs +1 -1
- package/package.json +4 -4
package/dist/standalone/index.js
CHANGED
|
@@ -232,7 +232,7 @@ function fe(t) {
|
|
|
232
232
|
var e;
|
|
233
233
|
t.assignedMap = (e = t.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), t.operated || (t.operated = !0, t.parent && fe(t.parent));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function wr() {
|
|
236
236
|
throw new Error("Cannot modify frozen object");
|
|
237
237
|
}
|
|
238
238
|
function Me(t, e, n, r, i) {
|
|
@@ -260,12 +260,12 @@ function Me(t, e, n, r, i) {
|
|
|
260
260
|
case 2:
|
|
261
261
|
for (const [a, u] of t)
|
|
262
262
|
Me(a, a, n, r, i), Me(u, a, n, r, i);
|
|
263
|
-
t.set = t.clear = t.delete =
|
|
263
|
+
t.set = t.clear = t.delete = wr;
|
|
264
264
|
break;
|
|
265
265
|
case 3:
|
|
266
266
|
for (const a of t)
|
|
267
267
|
Me(a, a, n, r, i);
|
|
268
|
-
t.add = t.clear = t.delete =
|
|
268
|
+
t.add = t.clear = t.delete = wr;
|
|
269
269
|
break;
|
|
270
270
|
case 1:
|
|
271
271
|
Object.freeze(t);
|
|
@@ -529,7 +529,7 @@ const jt = (t, e, n = !1) => {
|
|
|
529
529
|
[vt]() {
|
|
530
530
|
return this.entries();
|
|
531
531
|
}
|
|
532
|
-
}, Ds = Reflect.ownKeys(an),
|
|
532
|
+
}, Ds = Reflect.ownKeys(an), Tr = (t, e, { isValuesIterator: n }) => () => {
|
|
533
533
|
var r, i;
|
|
534
534
|
const s = e.next();
|
|
535
535
|
if (s.done)
|
|
@@ -590,7 +590,7 @@ const jt = (t, e, n = !1) => {
|
|
|
590
590
|
const e = t.setMap.keys();
|
|
591
591
|
return {
|
|
592
592
|
[Symbol.iterator]: () => this.values(),
|
|
593
|
-
next:
|
|
593
|
+
next: Tr(t, e, { isValuesIterator: !0 })
|
|
594
594
|
};
|
|
595
595
|
},
|
|
596
596
|
entries() {
|
|
@@ -599,7 +599,7 @@ const jt = (t, e, n = !1) => {
|
|
|
599
599
|
const e = t.setMap.keys();
|
|
600
600
|
return {
|
|
601
601
|
[Symbol.iterator]: () => this.entries(),
|
|
602
|
-
next:
|
|
602
|
+
next: Tr(t, e, {
|
|
603
603
|
isValuesIterator: !1
|
|
604
604
|
})
|
|
605
605
|
};
|
|
@@ -757,10 +757,10 @@ function Ln(t) {
|
|
|
757
757
|
var p, y;
|
|
758
758
|
const b = j(u);
|
|
759
759
|
let _ = c.type === 3 ? c.setMap : c.copy;
|
|
760
|
-
const
|
|
760
|
+
const T = be(_, r), g = j(T);
|
|
761
761
|
if (g) {
|
|
762
762
|
let m = g.original;
|
|
763
|
-
g.operated && (m = $n(
|
|
763
|
+
g.operated && (m = $n(T)), sn(g), on(g, ut, f, l), c.options.enableAutoFreeze && (c.options.updatedValues = (p = c.options.updatedValues) !== null && p !== void 0 ? p : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(m, g.original)), ct(_, r, m);
|
|
764
764
|
}
|
|
765
765
|
(y = b.callbacks) === null || y === void 0 || y.forEach((m) => {
|
|
766
766
|
m(f, l);
|
|
@@ -890,22 +890,22 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
890
890
|
};
|
|
891
891
|
if (!ae(f, _) && typeof f == "object" && f !== null)
|
|
892
892
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
893
|
-
const [
|
|
893
|
+
const [T, g] = Fs(f, _);
|
|
894
894
|
if (typeof r != "function") {
|
|
895
895
|
if (!ae(f, _))
|
|
896
896
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
897
|
-
return [
|
|
897
|
+
return [T, g];
|
|
898
898
|
}
|
|
899
899
|
let m;
|
|
900
900
|
try {
|
|
901
|
-
m = d(
|
|
901
|
+
m = d(T);
|
|
902
902
|
} catch (S) {
|
|
903
|
-
throw rn(j(
|
|
903
|
+
throw rn(j(T)), S;
|
|
904
904
|
}
|
|
905
905
|
const E = (S) => {
|
|
906
|
-
const I = j(
|
|
906
|
+
const I = j(T);
|
|
907
907
|
if (!je(S)) {
|
|
908
|
-
if (S !== void 0 && !ye(S,
|
|
908
|
+
if (S !== void 0 && !ye(S, T) && (I != null && I.operated))
|
|
909
909
|
throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
|
|
910
910
|
const B = S == null ? void 0 : S[js];
|
|
911
911
|
if (B) {
|
|
@@ -919,7 +919,7 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
919
919
|
if (S !== void 0)
|
|
920
920
|
return typeof S == "object" && S !== null && un({ rootDraft: I, value: S }), g([S]);
|
|
921
921
|
}
|
|
922
|
-
if (S ===
|
|
922
|
+
if (S === T || S === void 0)
|
|
923
923
|
return g([]);
|
|
924
924
|
const x = j(S);
|
|
925
925
|
if (_ === x.options) {
|
|
@@ -930,7 +930,7 @@ const Ns = (t) => function e(n, r, i) {
|
|
|
930
930
|
return g([S]);
|
|
931
931
|
};
|
|
932
932
|
return m instanceof Promise ? m.then(E, (S) => {
|
|
933
|
-
throw rn(j(
|
|
933
|
+
throw rn(j(T)), S;
|
|
934
934
|
}) : E(m);
|
|
935
935
|
}, Pt = Ns();
|
|
936
936
|
Object.prototype.constructor.toString();
|
|
@@ -952,7 +952,7 @@ function Fn(t) {
|
|
|
952
952
|
r !== void 0 && (e[n] = r);
|
|
953
953
|
return e;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function wi(t, e) {
|
|
956
956
|
if (!Ze(t) || !Ze(e))
|
|
957
957
|
return e;
|
|
958
958
|
const n = Object.assign({}, t);
|
|
@@ -964,7 +964,7 @@ function Ti(t, e) {
|
|
|
964
964
|
continue;
|
|
965
965
|
}
|
|
966
966
|
const i = Ze(t[r]) && Ze(e[r]);
|
|
967
|
-
n[r] = i ?
|
|
967
|
+
n[r] = i ? wi(t[r], e[r]) : e[r];
|
|
968
968
|
}
|
|
969
969
|
return n;
|
|
970
970
|
}
|
|
@@ -992,7 +992,7 @@ function Sr(t, e, n) {
|
|
|
992
992
|
}
|
|
993
993
|
r[e[e.length - 1]] = n;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Ti(t, e) {
|
|
996
996
|
if (!t || e.length === 0)
|
|
997
997
|
return;
|
|
998
998
|
const [n, ...r] = e;
|
|
@@ -1001,7 +1001,7 @@ function wi(t, e) {
|
|
|
1001
1001
|
Array.isArray(t) ? t.splice(n, 1) : delete t[n];
|
|
1002
1002
|
return;
|
|
1003
1003
|
}
|
|
1004
|
-
|
|
1004
|
+
Ti(t[n], r), qs(t[n]) && delete t[n];
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
function qs(t) {
|
|
@@ -1403,7 +1403,7 @@ function qn(t) {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
function Et(t, e, n, r, i) {
|
|
1405
1405
|
const s = mi(t, e, i);
|
|
1406
|
-
return s.useDateObjects = i, s.attrs = t, s.attrIndexes = vi(t), s.cardinalityInference = n, s.linkIndex = r, s.__type = "store", s;
|
|
1406
|
+
return s.useDateObjects = i, s.attrs = t, s.attrIndexes = vi(t), s.cardinalityInference = n, s.linkIndex = r, s.__type = "store", s.entityCache = /* @__PURE__ */ new Map(), s;
|
|
1407
1407
|
}
|
|
1408
1408
|
function dt(t, e) {
|
|
1409
1409
|
var n, r;
|
|
@@ -1475,7 +1475,7 @@ function uo(t, e) {
|
|
|
1475
1475
|
const d = (n = u.values().next()) === null || n === void 0 ? void 0 : n.value;
|
|
1476
1476
|
if (!d)
|
|
1477
1477
|
return;
|
|
1478
|
-
const c = d[2], f =
|
|
1478
|
+
const c = d[2], f = wi(c, o), l = [
|
|
1479
1479
|
i,
|
|
1480
1480
|
s,
|
|
1481
1481
|
f,
|
|
@@ -1506,8 +1506,8 @@ function dn(t, e) {
|
|
|
1506
1506
|
const d = t.vae.get(a) && X(t.vae.get(a), 2);
|
|
1507
1507
|
d && d.forEach((c) => {
|
|
1508
1508
|
var f, l, p;
|
|
1509
|
-
const [y, b, _] = c,
|
|
1510
|
-
(!s || !
|
|
1509
|
+
const [y, b, _] = c, T = t.attrs[b];
|
|
1510
|
+
(!s || !T || ((f = T["reverse-identity"]) === null || f === void 0 ? void 0 : f[1]) === s) && (oe(t.eav, [y, b, _]), oe(t.aev, [b, y, _]), oe(t.vae, [_, b, y])), T && T["on-delete"] === "cascade" && ((l = T["reverse-identity"]) === null || l === void 0 ? void 0 : l[1]) === s && dn(t, [y, (p = T["forward-identity"]) === null || p === void 0 ? void 0 : p[1]]);
|
|
1511
1511
|
}), ((r = t.vae.get(a)) === null || r === void 0 ? void 0 : r.size) === 0 && oe(t.vae, [a]);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ji(t, e) {
|
|
@@ -1663,15 +1663,17 @@ function yo(t, [e, n, r]) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
function bo(t, e, n) {
|
|
1665
1665
|
var r;
|
|
1666
|
+
if (t.entityCache.has(n))
|
|
1667
|
+
return t.entityCache.get(n);
|
|
1666
1668
|
const i = {};
|
|
1667
1669
|
for (const [s, o] of e.entries()) {
|
|
1668
1670
|
const a = (r = t.eav.get(n)) === null || r === void 0 ? void 0 : r.get(o.id), u = X(a, 1);
|
|
1669
1671
|
for (const d of u)
|
|
1670
1672
|
i[s] = d[2];
|
|
1671
1673
|
}
|
|
1672
|
-
return i;
|
|
1674
|
+
return t.entityCache.set(n, i), i;
|
|
1673
1675
|
}
|
|
1674
|
-
function
|
|
1676
|
+
function we(t, e, n) {
|
|
1675
1677
|
var r;
|
|
1676
1678
|
return (r = t.attrIndexes.forwardIdents.get(e)) === null || r === void 0 ? void 0 : r.get(n);
|
|
1677
1679
|
}
|
|
@@ -1695,7 +1697,7 @@ function go(t, e) {
|
|
|
1695
1697
|
if (qe(t.attrs, i))
|
|
1696
1698
|
return We(t.eav, [r, i]);
|
|
1697
1699
|
}
|
|
1698
|
-
function
|
|
1700
|
+
function wo(t, e) {
|
|
1699
1701
|
const n = e.filter(([r, i, s, o, a]) => {
|
|
1700
1702
|
if (r !== "add-triple" && r !== "deep-merge-triple")
|
|
1701
1703
|
return !0;
|
|
@@ -1716,7 +1718,7 @@ function To(t, e) {
|
|
|
1716
1718
|
});
|
|
1717
1719
|
});
|
|
1718
1720
|
}
|
|
1719
|
-
function
|
|
1721
|
+
function To(t) {
|
|
1720
1722
|
return typeof t == "string" && t.startsWith("?");
|
|
1721
1723
|
}
|
|
1722
1724
|
function mo(t, e, n) {
|
|
@@ -1770,7 +1772,7 @@ function fn(t, e, n = [{}]) {
|
|
|
1770
1772
|
return e.reduce((r, i) => ko(t, i, r), n);
|
|
1771
1773
|
}
|
|
1772
1774
|
function Wn(t, e) {
|
|
1773
|
-
return Array.isArray(e) ? e.map((n) => Wn(t, n)) :
|
|
1775
|
+
return Array.isArray(e) ? e.map((n) => Wn(t, n)) : To(e) ? t[e] : e;
|
|
1774
1776
|
}
|
|
1775
1777
|
function jo(t, { find: e, where: n }) {
|
|
1776
1778
|
return fn(t, n).map((i) => Wn(i, e));
|
|
@@ -1876,7 +1878,7 @@ function zo(t, e, n) {
|
|
|
1876
1878
|
return t.map((r) => r === e ? n : r);
|
|
1877
1879
|
}
|
|
1878
1880
|
function Ri(t, e, n, r, i) {
|
|
1879
|
-
const s =
|
|
1881
|
+
const s = we(e, n, i), o = Pi(e, n, i), a = s || o;
|
|
1880
1882
|
if (!a)
|
|
1881
1883
|
throw new Ne(`Could not find attr for ${[n, i]}`);
|
|
1882
1884
|
if (a["value-type"] !== "ref")
|
|
@@ -1965,11 +1967,11 @@ function Vo(t, e) {
|
|
|
1965
1967
|
return e;
|
|
1966
1968
|
}
|
|
1967
1969
|
function Bo(t, e, n, r, i, s) {
|
|
1968
|
-
const o =
|
|
1970
|
+
const o = we(e, n, i), a = Pi(e, n, i), u = o || a;
|
|
1969
1971
|
if (!u)
|
|
1970
1972
|
throw new Ne(`No attr for etype = ${n} label = ${i}`);
|
|
1971
1973
|
if (s != null && s.hasOwnProperty("$isNull")) {
|
|
1972
|
-
const d =
|
|
1974
|
+
const d = we(e, n, "id");
|
|
1973
1975
|
if (!d)
|
|
1974
1976
|
throw new Ne(`No attr for etype = ${n} label = id`);
|
|
1975
1977
|
return [
|
|
@@ -2076,17 +2078,17 @@ function na(t, e, { etype: n, level: r, form: i }, s) {
|
|
|
2076
2078
|
var p, y, b;
|
|
2077
2079
|
const _ = !!(e.cardinalityInference && (!((b = (y = (p = e.linkIndex) === null || p === void 0 ? void 0 : p[n]) === null || y === void 0 ? void 0 : y[l]) === null || b === void 0) && b.isSingular));
|
|
2078
2080
|
try {
|
|
2079
|
-
const [
|
|
2080
|
-
etype:
|
|
2081
|
+
const [T, g, m] = ta(t, e, n, r, l, u), E = Di(e, {
|
|
2082
|
+
etype: T,
|
|
2081
2083
|
level: g,
|
|
2082
2084
|
form: i[l],
|
|
2083
2085
|
join: m
|
|
2084
2086
|
}), S = _ ? E[0] : E;
|
|
2085
2087
|
return { [l]: S };
|
|
2086
|
-
} catch (
|
|
2087
|
-
if (
|
|
2088
|
+
} catch (T) {
|
|
2089
|
+
if (T instanceof Ne)
|
|
2088
2090
|
return { [l]: _ ? void 0 : [] };
|
|
2089
|
-
throw
|
|
2091
|
+
throw T;
|
|
2090
2092
|
}
|
|
2091
2093
|
}).reduce(function(l, p) {
|
|
2092
2094
|
return Object.assign(Object.assign({}, l), p);
|
|
@@ -2119,7 +2121,7 @@ function sa(t, e) {
|
|
|
2119
2121
|
}
|
|
2120
2122
|
function oa(t, e, n) {
|
|
2121
2123
|
const r = Object.keys(n)[0];
|
|
2122
|
-
return
|
|
2124
|
+
return we(t, e, r);
|
|
2123
2125
|
}
|
|
2124
2126
|
function aa(t, e, n, r) {
|
|
2125
2127
|
if (n)
|
|
@@ -2133,11 +2135,11 @@ function ua(t, e, n) {
|
|
|
2133
2135
|
return _o(t, e);
|
|
2134
2136
|
const s = /* @__PURE__ */ new Map();
|
|
2135
2137
|
for (const o of n.fields) {
|
|
2136
|
-
const a =
|
|
2138
|
+
const a = we(t, e, o), u = (r = a == null ? void 0 : a["forward-identity"]) === null || r === void 0 ? void 0 : r[2];
|
|
2137
2139
|
u && Kn(a) && s.set(u, a);
|
|
2138
2140
|
}
|
|
2139
2141
|
if (!s.has("id")) {
|
|
2140
|
-
const o =
|
|
2142
|
+
const o = we(t, e, "id"), a = (i = o == null ? void 0 : o["forward-identity"]) === null || i === void 0 ? void 0 : i[2];
|
|
2141
2143
|
a && s.set(a, o);
|
|
2142
2144
|
}
|
|
2143
2145
|
return s;
|
|
@@ -2149,16 +2151,16 @@ function ca(t, { etype: e, pageInfo: n, dq: r, form: i }) {
|
|
|
2149
2151
|
const f = n == null ? void 0 : n["start-cursor"], l = aa(t, e, f, a);
|
|
2150
2152
|
if (l && ((o = l == null ? void 0 : l["forward-identity"]) === null || o === void 0 ? void 0 : o[2]) !== "id") {
|
|
2151
2153
|
const b = l["checked-data-type"] === "date", _ = l.id;
|
|
2152
|
-
c = c.map(([
|
|
2154
|
+
c = c.map(([T]) => {
|
|
2153
2155
|
var g, m, E, S, I;
|
|
2154
|
-
let x = (I = (S = (E = (m = (g = t.eav.get(
|
|
2155
|
-
return b && (x = hn(x)), [
|
|
2156
|
+
let x = (I = (S = (E = (m = (g = t.eav.get(T)) === null || g === void 0 ? void 0 : g.get(_)) === null || m === void 0 ? void 0 : m.values()) === null || E === void 0 ? void 0 : E.next()) === null || S === void 0 ? void 0 : S.value) === null || I === void 0 ? void 0 : I[2];
|
|
2157
|
+
return b && (x = hn(x)), [T, x];
|
|
2156
2158
|
});
|
|
2157
2159
|
}
|
|
2158
|
-
c.sort(d === "asc" ? function(_,
|
|
2159
|
-
return It(_,
|
|
2160
|
-
} : function(_,
|
|
2161
|
-
return It(
|
|
2160
|
+
c.sort(d === "asc" ? function(_, T) {
|
|
2161
|
+
return It(_, T, l == null ? void 0 : l["checked-data-type"]);
|
|
2162
|
+
} : function(_, T) {
|
|
2163
|
+
return It(T, _, l == null ? void 0 : l["checked-data-type"]);
|
|
2162
2164
|
});
|
|
2163
2165
|
let p = {};
|
|
2164
2166
|
const y = ua(t, e, r);
|
|
@@ -2166,8 +2168,8 @@ function ca(t, { etype: e, pageInfo: n, dq: r, form: i }) {
|
|
|
2166
2168
|
const [_] = b;
|
|
2167
2169
|
if (p[_] || !u && f && l && ia(f, l, d, b))
|
|
2168
2170
|
continue;
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
+
const T = bo(t, y, _);
|
|
2172
|
+
T && (p[_] = T);
|
|
2171
2173
|
}
|
|
2172
2174
|
return p;
|
|
2173
2175
|
}
|
|
@@ -2334,7 +2336,7 @@ function Ae(t, e, n) {
|
|
|
2334
2336
|
return o === e && a === n;
|
|
2335
2337
|
});
|
|
2336
2338
|
}
|
|
2337
|
-
function
|
|
2339
|
+
function wa(t) {
|
|
2338
2340
|
if (Array.isArray(t))
|
|
2339
2341
|
return t;
|
|
2340
2342
|
const e = Object.entries(t);
|
|
@@ -2353,7 +2355,7 @@ function bn(t) {
|
|
|
2353
2355
|
throw new Error(`${t} is not a valid lookup attribute.`);
|
|
2354
2356
|
return e;
|
|
2355
2357
|
}
|
|
2356
|
-
function
|
|
2358
|
+
function Ta(t, e, n) {
|
|
2357
2359
|
if (!yn(t, e, n))
|
|
2358
2360
|
return V(t, e, n);
|
|
2359
2361
|
const r = bn(n), i = V(t, e, r) || Ae(t, e, r);
|
|
@@ -2362,13 +2364,13 @@ function wa(t, e, n) {
|
|
|
2362
2364
|
return i;
|
|
2363
2365
|
}
|
|
2364
2366
|
function _n(t) {
|
|
2365
|
-
return typeof t == "string" && !Mt(t) ? null : typeof t == "string" && Mt(t) ? Li(t) :
|
|
2367
|
+
return typeof t == "string" && !Mt(t) ? null : typeof t == "string" && Mt(t) ? Li(t) : wa(t);
|
|
2366
2368
|
}
|
|
2367
2369
|
function ee(t, e, n) {
|
|
2368
2370
|
const r = _n(n);
|
|
2369
2371
|
if (r === null)
|
|
2370
2372
|
return n;
|
|
2371
|
-
const [i, s] = r, o =
|
|
2373
|
+
const [i, s] = r, o = Ta(t, e, i);
|
|
2372
2374
|
if (!o || !o["unique?"])
|
|
2373
2375
|
throw new Error(`${i} is not a unique attribute.`);
|
|
2374
2376
|
return [o.id, s];
|
|
@@ -2539,7 +2541,7 @@ function Ma(t, e, n) {
|
|
|
2539
2541
|
"checked-data-type": u
|
|
2540
2542
|
};
|
|
2541
2543
|
}
|
|
2542
|
-
function
|
|
2544
|
+
function wt(t, e, n, r) {
|
|
2543
2545
|
const i = t ? Ma(t, e, n) : null, s = K(), a = [K(), e, n];
|
|
2544
2546
|
return Object.assign(Object.assign({ id: s, "forward-identity": a, "value-type": "blob", cardinality: "one", "unique?": !1, "index?": !1, isUnsynced: !0 }, i || {}), r || {});
|
|
2545
2547
|
}
|
|
@@ -2610,32 +2612,32 @@ function Ka({ attrs: t, schema: e }, n) {
|
|
|
2610
2612
|
const b = p[0];
|
|
2611
2613
|
if (y) {
|
|
2612
2614
|
c(l, y);
|
|
2613
|
-
const _ = V(o, l, y),
|
|
2614
|
-
d(_), d(
|
|
2615
|
-
const g = ((r = _ == null ? void 0 : _["reverse-identity"]) === null || r === void 0 ? void 0 : r[1]) || ((i =
|
|
2615
|
+
const _ = V(o, l, y), T = Ae(o, l, y);
|
|
2616
|
+
d(_), d(T);
|
|
2617
|
+
const g = ((r = _ == null ? void 0 : _["reverse-identity"]) === null || r === void 0 ? void 0 : r[1]) || ((i = T == null ? void 0 : T["forward-identity"]) === null || i === void 0 ? void 0 : i[1]) || y;
|
|
2616
2618
|
if (yn(o, g, b))
|
|
2617
2619
|
c(g, bn(b));
|
|
2618
2620
|
else {
|
|
2619
2621
|
const m = V(o, g, b);
|
|
2620
|
-
m || u(
|
|
2622
|
+
m || u(wt(e, g, b, gn)), d(m);
|
|
2621
2623
|
}
|
|
2622
2624
|
} else if (yn(o, l, b))
|
|
2623
2625
|
c(l, bn(b));
|
|
2624
2626
|
else {
|
|
2625
2627
|
const _ = V(o, l, b);
|
|
2626
|
-
_ || u(
|
|
2628
|
+
_ || u(wt(e, l, b, gn)), d(_);
|
|
2627
2629
|
}
|
|
2628
2630
|
}
|
|
2629
2631
|
for (const f of n) {
|
|
2630
2632
|
const [l, p, y, b] = f;
|
|
2631
2633
|
if ($a.has(l)) {
|
|
2632
2634
|
const _ = V(o, p, "id");
|
|
2633
|
-
d(_), _ || u(
|
|
2634
|
-
for (const
|
|
2635
|
-
const g = V(o, p,
|
|
2636
|
-
if (d(g), Ua.has(l) && (g || u(
|
|
2637
|
-
const m = Ae(o, p,
|
|
2638
|
-
!g && !m && u(Mr(e, p,
|
|
2635
|
+
d(_), _ || u(wt(e, p, "id", { "unique?": !0 }));
|
|
2636
|
+
for (const T of Object.keys(b)) {
|
|
2637
|
+
const g = V(o, p, T);
|
|
2638
|
+
if (d(g), Ua.has(l) && (g || u(wt(e, p, T, T === "id" ? { "unique?": !0 } : null))), Da.has(l)) {
|
|
2639
|
+
const m = Ae(o, p, T);
|
|
2640
|
+
!g && !m && u(Mr(e, p, T)), d(m);
|
|
2639
2641
|
}
|
|
2640
2642
|
}
|
|
2641
2643
|
}
|
|
@@ -2681,7 +2683,7 @@ class Wa {
|
|
|
2681
2683
|
constructor(e, n) {
|
|
2682
2684
|
}
|
|
2683
2685
|
}
|
|
2684
|
-
class
|
|
2686
|
+
class wn {
|
|
2685
2687
|
constructor(e) {
|
|
2686
2688
|
var n, r;
|
|
2687
2689
|
this._subs = [], this._nextSave = null, this._nextGc = null, this._pendingSaveKeys = /* @__PURE__ */ new Set(), this._loadedKeys = /* @__PURE__ */ new Set(), this._version = 0, this._meta = {
|
|
@@ -2996,8 +2998,8 @@ function Qa(t, e, n) {
|
|
|
2996
2998
|
};
|
|
2997
2999
|
f[y] = g;
|
|
2998
3000
|
}
|
|
2999
|
-
const
|
|
3000
|
-
i.add(
|
|
3001
|
+
const T = n.put(_, y);
|
|
3002
|
+
i.add(T);
|
|
3001
3003
|
}
|
|
3002
3004
|
const l = { objects: f }, p = n.put(l, it);
|
|
3003
3005
|
i.add(p);
|
|
@@ -3032,8 +3034,8 @@ function Ha(t, e) {
|
|
|
3032
3034
|
y.onsuccess = () => {
|
|
3033
3035
|
const _ = y.result;
|
|
3034
3036
|
if (_) {
|
|
3035
|
-
const
|
|
3036
|
-
b.push([
|
|
3037
|
+
const T = _.key, g = _.value;
|
|
3038
|
+
b.push([T, g]), _.continue();
|
|
3037
3039
|
} else
|
|
3038
3040
|
c(b);
|
|
3039
3041
|
}, y.onerror = (_) => {
|
|
@@ -3550,7 +3552,7 @@ function Nr(t) {
|
|
|
3550
3552
|
}, e;
|
|
3551
3553
|
}, {});
|
|
3552
3554
|
}
|
|
3553
|
-
const Bn = "v0.22.
|
|
3555
|
+
const Bn = "v0.22.73-experimental.drewh-entity-caching.19724220728.1";
|
|
3554
3556
|
function fu(t, e) {
|
|
3555
3557
|
return {
|
|
3556
3558
|
info: t ? (...n) => console.info(...n, e()) : () => {
|
|
@@ -3879,7 +3881,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3879
3881
|
unlink: Vr,
|
|
3880
3882
|
delete: () => {
|
|
3881
3883
|
}
|
|
3882
|
-
},
|
|
3884
|
+
}, wu = (t, e) => {
|
|
3883
3885
|
if (!e)
|
|
3884
3886
|
return;
|
|
3885
3887
|
const [n, r, i, s] = t;
|
|
@@ -3889,7 +3891,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3889
3891
|
throw new ie(`Entity name must be a string, but received: ${typeof r}`);
|
|
3890
3892
|
const o = gu[n];
|
|
3891
3893
|
o && s !== void 0 && o(r, s, e);
|
|
3892
|
-
},
|
|
3894
|
+
}, Tu = (t, e) => {
|
|
3893
3895
|
const n = Array.isArray(t) ? t : [t];
|
|
3894
3896
|
for (const r of n) {
|
|
3895
3897
|
if (!r || typeof r != "object")
|
|
@@ -3899,7 +3901,7 @@ const Hi = (t) => t.length > 0 ? t.join(", ") : "none", bu = (t, e) => new ie(`E
|
|
|
3899
3901
|
for (const i of r.__ops) {
|
|
3900
3902
|
if (!Array.isArray(i))
|
|
3901
3903
|
throw new ie(`Transaction operation must be an array, but received: ${typeof i}`);
|
|
3902
|
-
|
|
3904
|
+
wu(i, e);
|
|
3903
3905
|
}
|
|
3904
3906
|
}
|
|
3905
3907
|
};
|
|
@@ -4096,7 +4098,7 @@ function Zt(t, e) {
|
|
|
4096
4098
|
}
|
|
4097
4099
|
function Hr(t, e, n) {
|
|
4098
4100
|
var r;
|
|
4099
|
-
const i = (r =
|
|
4101
|
+
const i = (r = we(e, t.table, "id")) === null || r === void 0 ? void 0 : r.id;
|
|
4100
4102
|
if (!i)
|
|
4101
4103
|
return -1;
|
|
4102
4104
|
const s = We(e.eav, [n, i, n]);
|
|
@@ -4138,14 +4140,14 @@ function Eu(t, e) {
|
|
|
4138
4140
|
}
|
|
4139
4141
|
return o;
|
|
4140
4142
|
}
|
|
4141
|
-
function
|
|
4143
|
+
function Tt(t, e) {
|
|
4142
4144
|
return { [t.table]: e.map((n) => n.entity) };
|
|
4143
4145
|
}
|
|
4144
4146
|
function Au(t, e) {
|
|
4145
4147
|
var n;
|
|
4146
4148
|
if (t.orderFieldType)
|
|
4147
4149
|
return t.orderFieldType;
|
|
4148
|
-
const r = t.orderField === "serverCreatedAt" ? "number" : (n =
|
|
4150
|
+
const r = t.orderField === "serverCreatedAt" ? "number" : (n = we(e([]), t.table, t.orderField)) === null || n === void 0 ? void 0 : n["checked-data-type"];
|
|
4149
4151
|
return t.orderFieldType = r, r;
|
|
4150
4152
|
}
|
|
4151
4153
|
function ku(t, e, n) {
|
|
@@ -4171,7 +4173,7 @@ var ve;
|
|
|
4171
4173
|
})(ve || (ve = {}));
|
|
4172
4174
|
class ju {
|
|
4173
4175
|
constructor(e, n, r, i, s) {
|
|
4174
|
-
this.callbacks = {}, this.idToHash = {}, this.trySend = e, this.config = r, this.log = i, this.createStore = s, this.subs = new
|
|
4176
|
+
this.callbacks = {}, this.idToHash = {}, this.trySend = e, this.config = r, this.log = i, this.createStore = s, this.subs = new wn({
|
|
4175
4177
|
persister: n,
|
|
4176
4178
|
merge: Ou,
|
|
4177
4179
|
serialize: Su,
|
|
@@ -4239,7 +4241,7 @@ class ju {
|
|
|
4239
4241
|
if (u && u.state && u.state.txId) {
|
|
4240
4242
|
this.sendResync(u, u.state, u.state.txId), !((i = u.values) === null || i === void 0) && i.entities && r && r({
|
|
4241
4243
|
type: ve.LoadFromStorage,
|
|
4242
|
-
data:
|
|
4244
|
+
data: Tt(u, (s = u.values) === null || s === void 0 ? void 0 : s.entities)
|
|
4243
4245
|
});
|
|
4244
4246
|
return;
|
|
4245
4247
|
}
|
|
@@ -4314,7 +4316,7 @@ class ju {
|
|
|
4314
4316
|
c[s] = a, c[s].updatedAt = Date.now();
|
|
4315
4317
|
}), a.values && this.notifyCbs(s, {
|
|
4316
4318
|
type: ve.InitialSyncBatch,
|
|
4317
|
-
data:
|
|
4319
|
+
data: Tt(a, a.values.entities),
|
|
4318
4320
|
batch: o
|
|
4319
4321
|
});
|
|
4320
4322
|
}
|
|
@@ -4339,7 +4341,7 @@ class ju {
|
|
|
4339
4341
|
const s = this.subs.currentValue[i];
|
|
4340
4342
|
s && this.notifyCbs(i, {
|
|
4341
4343
|
type: ve.InitialSyncComplete,
|
|
4342
|
-
data:
|
|
4344
|
+
data: Tt(s, ((n = s.values) === null || n === void 0 ? void 0 : n.entities) || [])
|
|
4343
4345
|
});
|
|
4344
4346
|
}
|
|
4345
4347
|
onSyncUpdateTriples(e) {
|
|
@@ -4410,10 +4412,10 @@ class ju {
|
|
|
4410
4412
|
const _ = [];
|
|
4411
4413
|
for (const g of c.sort().reverse())
|
|
4412
4414
|
_.push(p[g].entity), p.splice(g, 1);
|
|
4413
|
-
const
|
|
4414
|
-
ku(a,
|
|
4415
|
+
const T = Au(a, this.createStore);
|
|
4416
|
+
ku(a, T, p), this.notifyCbs(o, {
|
|
4415
4417
|
type: ve.SyncTransaction,
|
|
4416
|
-
data:
|
|
4418
|
+
data: Tt(a, (i = a.values) === null || i === void 0 ? void 0 : i.entities),
|
|
4417
4419
|
added: b,
|
|
4418
4420
|
removed: _,
|
|
4419
4421
|
updated: y
|
|
@@ -4589,7 +4591,7 @@ class Ku {
|
|
|
4589
4591
|
}, this.notifyQueryError = (d, c) => {
|
|
4590
4592
|
(this.queryCbs[d] || []).forEach((l) => l.cb({ error: c }));
|
|
4591
4593
|
}, this.pushTx = (d) => {
|
|
4592
|
-
this.config.disableValidation ||
|
|
4594
|
+
this.config.disableValidation || Tu(d, this.config.schema);
|
|
4593
4595
|
try {
|
|
4594
4596
|
const c = qa({
|
|
4595
4597
|
attrs: this.optimisticAttrs(),
|
|
@@ -4714,7 +4716,7 @@ class Ku {
|
|
|
4714
4716
|
this.kv.waitForKeyToLoad("pendingMutations").then(() => this.notifyOne(e));
|
|
4715
4717
|
}
|
|
4716
4718
|
_initStorage(e) {
|
|
4717
|
-
this.querySubs = new
|
|
4719
|
+
this.querySubs = new wn({
|
|
4718
4720
|
persister: new e(this.config.appId, "querySubs"),
|
|
4719
4721
|
merge: Nu,
|
|
4720
4722
|
serialize: Uu,
|
|
@@ -4734,7 +4736,7 @@ class Ku {
|
|
|
4734
4736
|
maxSize: 1e6
|
|
4735
4737
|
// 1 million triples
|
|
4736
4738
|
}
|
|
4737
|
-
}), this.querySubs.onKeyLoaded = (n) => this._onQuerySubLoaded(n), this.kv = new
|
|
4739
|
+
}), this.querySubs.onKeyLoaded = (n) => this._onQuerySubLoaded(n), this.kv = new wn({
|
|
4738
4740
|
persister: new e(this.config.appId, "kv"),
|
|
4739
4741
|
merge: this._onMergeKv,
|
|
4740
4742
|
serialize: Fu,
|
|
@@ -4810,7 +4812,7 @@ class Ku {
|
|
|
4810
4812
|
const { q: l, result: p } = n, y = z(l);
|
|
4811
4813
|
if (!this._hasQueryListeners() && !this.querySubs.currentValue[y])
|
|
4812
4814
|
break;
|
|
4813
|
-
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate,
|
|
4815
|
+
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate, T = Fr(p), g = Et(this.attrs, T, d, this._linkIndex, this.config.useDateObjects);
|
|
4814
4816
|
this.querySubs.updateInPlace((m) => {
|
|
4815
4817
|
if (!m[y]) {
|
|
4816
4818
|
this._log.info("Missing value in querySubs", { hash: y, q: l });
|
|
@@ -4848,12 +4850,12 @@ class Ku {
|
|
|
4848
4850
|
b !== this._pendingMutations() && this.kv.updateInPlace((g) => {
|
|
4849
4851
|
g.pendingMutations = b;
|
|
4850
4852
|
});
|
|
4851
|
-
const _ = Zr(b.entries()),
|
|
4853
|
+
const _ = Zr(b.entries()), T = l.map((g) => {
|
|
4852
4854
|
var m, E, S, I;
|
|
4853
4855
|
const x = g["instaql-query"], B = g["instaql-result"], Ve = z(x), lt = Fr(B), Ft = Et(this.attrs, lt, d, this._linkIndex, this.config.useDateObjects), Nt = this._applyOptimisticUpdates(Ft, _, y), ht = (E = (m = B == null ? void 0 : B[0]) === null || m === void 0 ? void 0 : m.data) === null || E === void 0 ? void 0 : E["page-info"], ce = (I = (S = B == null ? void 0 : B[0]) === null || S === void 0 ? void 0 : S.data) === null || I === void 0 ? void 0 : I.aggregate;
|
|
4854
4856
|
return { q: x, hash: Ve, store: Nt, pageInfo: ht, aggregate: ce };
|
|
4855
4857
|
});
|
|
4856
|
-
|
|
4858
|
+
T.forEach(({ hash: g, q: m, store: E, pageInfo: S, aggregate: I }) => {
|
|
4857
4859
|
this.querySubs.updateInPlace((x) => {
|
|
4858
4860
|
if (!x[g]) {
|
|
4859
4861
|
this._log.error("Missing value in querySubs", { hash: g, q: m });
|
|
@@ -4861,7 +4863,7 @@ class Ku {
|
|
|
4861
4863
|
}
|
|
4862
4864
|
x[g].result = { store: E, pageInfo: S, aggregate: I, processedTxId: y };
|
|
4863
4865
|
});
|
|
4864
|
-
}), this._cleanupPendingMutationsQueries(),
|
|
4866
|
+
}), this._cleanupPendingMutationsQueries(), T.forEach(({ hash: g }) => {
|
|
4865
4867
|
this.notifyOne(g);
|
|
4866
4868
|
});
|
|
4867
4869
|
break;
|
|
@@ -4872,10 +4874,10 @@ class Ku {
|
|
|
4872
4874
|
const b = this._rewriteMutations(this.attrs, this._pendingMutations()).get(l);
|
|
4873
4875
|
if (!b)
|
|
4874
4876
|
break;
|
|
4875
|
-
this._updatePendingMutations((
|
|
4876
|
-
|
|
4877
|
+
this._updatePendingMutations((T) => {
|
|
4878
|
+
T.set(l, Object.assign(Object.assign({}, T.get(l)), { "tx-id": p, confirmed: Date.now() }));
|
|
4877
4879
|
});
|
|
4878
|
-
const _ = b["tx-steps"].filter(([
|
|
4880
|
+
const _ = b["tx-steps"].filter(([T, ...g]) => T === "add-attr").map(([T, g]) => g).concat(Object.values(this.attrs));
|
|
4879
4881
|
this._setAttrs(_), this._finishTransaction("synced", l), this._cleanupPendingMutationsTimeout();
|
|
4880
4882
|
break;
|
|
4881
4883
|
}
|
|
@@ -5072,15 +5074,15 @@ class Ku {
|
|
|
5072
5074
|
for (const p of c) {
|
|
5073
5075
|
const [y] = p;
|
|
5074
5076
|
if (y === "add-attr") {
|
|
5075
|
-
const [_,
|
|
5076
|
-
if (g &&
|
|
5077
|
-
o.attrIdMap[
|
|
5077
|
+
const [_, T] = p, g = i(T);
|
|
5078
|
+
if (g && T.id !== g.id) {
|
|
5079
|
+
o.attrIdMap[T.id] = g.id, a = !0;
|
|
5078
5080
|
continue;
|
|
5079
5081
|
}
|
|
5080
|
-
if (
|
|
5081
|
-
const m = s(
|
|
5082
|
+
if (T["value-type"] === "ref") {
|
|
5083
|
+
const m = s(T);
|
|
5082
5084
|
if (m) {
|
|
5083
|
-
o.attrIdMap[
|
|
5085
|
+
o.attrIdMap[T.id] = m.id, o.refSwapAttrIds.add(T.id), a = !0;
|
|
5084
5086
|
continue;
|
|
5085
5087
|
}
|
|
5086
5088
|
}
|
|
@@ -5141,7 +5143,7 @@ class Ku {
|
|
|
5141
5143
|
}
|
|
5142
5144
|
_applyOptimisticUpdates(e, n, r) {
|
|
5143
5145
|
for (const [i, s] of n)
|
|
5144
|
-
(!s["tx-id"] || r && s["tx-id"] > r) && (e =
|
|
5146
|
+
(!s["tx-id"] || r && s["tx-id"] > r) && (e = wo(e, s["tx-steps"]));
|
|
5145
5147
|
return e;
|
|
5146
5148
|
}
|
|
5147
5149
|
/** Re-compute all subscriptions */
|
|
@@ -5666,7 +5668,7 @@ class Ku {
|
|
|
5666
5668
|
Sr(d, c, l);
|
|
5667
5669
|
break;
|
|
5668
5670
|
case "-":
|
|
5669
|
-
|
|
5671
|
+
Ti(d, c);
|
|
5670
5672
|
break;
|
|
5671
5673
|
}
|
|
5672
5674
|
delete d[this._sessionId];
|
|
@@ -5946,7 +5948,7 @@ function oc() {
|
|
|
5946
5948
|
var t;
|
|
5947
5949
|
return globalThis.__instantDbStore = (t = globalThis.__instantDbStore) !== null && t !== void 0 ? t : {}, globalThis.__instantDbStore;
|
|
5948
5950
|
}
|
|
5949
|
-
function
|
|
5951
|
+
function Tn(t) {
|
|
5950
5952
|
const e = t.__adminToken;
|
|
5951
5953
|
return t.appId + "_" + (t.websocketURI || "default_ws_uri") + "_" + (t.apiURI || "default_api_uri") + "_" + (e || "client_only") + "_" + t.useDateObjects;
|
|
5952
5954
|
}
|
|
@@ -6107,7 +6109,7 @@ class dc {
|
|
|
6107
6109
|
};
|
|
6108
6110
|
}
|
|
6109
6111
|
shutdown() {
|
|
6110
|
-
delete mn[
|
|
6112
|
+
delete mn[Tn(this._reactor.config)], this._reactor.shutdown();
|
|
6111
6113
|
}
|
|
6112
6114
|
/**
|
|
6113
6115
|
* Use this for one-off queries.
|
|
@@ -6153,11 +6155,11 @@ function fc(t, e) {
|
|
|
6153
6155
|
return ei(t._reactor.config.schema) !== ei(e);
|
|
6154
6156
|
}
|
|
6155
6157
|
function lc(t, e, n, r, i) {
|
|
6156
|
-
const s = mn[
|
|
6158
|
+
const s = mn[Tn(t)];
|
|
6157
6159
|
if (s)
|
|
6158
6160
|
return fc(s, t.schema) && s._reactor.updateSchema(t.schema), s;
|
|
6159
6161
|
const o = new Ku(Object.assign(Object.assign(Object.assign({}, ic), t), { cardinalityInference: !!t.schema }), e || Ki, n || qi, Object.assign(Object.assign({}, r || {}), { "@instantdb/core": Bn }), i), a = new dc(o);
|
|
6160
|
-
return mn[
|
|
6162
|
+
return mn[Tn(t)] = a, hc(t.appId, t.devtool), a;
|
|
6161
6163
|
}
|
|
6162
6164
|
function hc(t, e) {
|
|
6163
6165
|
if (typeof window > "u" || typeof window.location > "u" || typeof document > "u" || typeof e == "boolean" && !e)
|
|
@@ -6205,28 +6207,28 @@ function yc() {
|
|
|
6205
6207
|
*/
|
|
6206
6208
|
return t.NODE_ENV !== "production" && function() {
|
|
6207
6209
|
var e = ci, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), b = Symbol.iterator, _ = "@@iterator";
|
|
6208
|
-
function
|
|
6210
|
+
function T(h) {
|
|
6209
6211
|
if (h === null || typeof h != "object")
|
|
6210
6212
|
return null;
|
|
6211
|
-
var
|
|
6212
|
-
return typeof
|
|
6213
|
+
var w = b && h[b] || h[_];
|
|
6214
|
+
return typeof w == "function" ? w : null;
|
|
6213
6215
|
}
|
|
6214
6216
|
var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
6215
6217
|
function m(h) {
|
|
6216
6218
|
{
|
|
6217
|
-
for (var
|
|
6219
|
+
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), O = 1; O < w; O++)
|
|
6218
6220
|
v[O - 1] = arguments[O];
|
|
6219
6221
|
E("error", h, v);
|
|
6220
6222
|
}
|
|
6221
6223
|
}
|
|
6222
|
-
function E(h,
|
|
6224
|
+
function E(h, w, v) {
|
|
6223
6225
|
{
|
|
6224
6226
|
var O = g.ReactDebugCurrentFrame, P = O.getStackAddendum();
|
|
6225
|
-
P !== "" && (
|
|
6227
|
+
P !== "" && (w += "%s", v = v.concat([P]));
|
|
6226
6228
|
var M = v.map(function(C) {
|
|
6227
6229
|
return String(C);
|
|
6228
6230
|
});
|
|
6229
|
-
M.unshift("Warning: " +
|
|
6231
|
+
M.unshift("Warning: " + w), Function.prototype.apply.call(console[h], console, M);
|
|
6230
6232
|
}
|
|
6231
6233
|
}
|
|
6232
6234
|
var S = !1, I = !1, x = !1, B = !1, Ve = !1, lt;
|
|
@@ -6238,11 +6240,11 @@ function yc() {
|
|
|
6238
6240
|
// with.
|
|
6239
6241
|
h.$$typeof === lt || h.getModuleId !== void 0));
|
|
6240
6242
|
}
|
|
6241
|
-
function Nt(h,
|
|
6243
|
+
function Nt(h, w, v) {
|
|
6242
6244
|
var O = h.displayName;
|
|
6243
6245
|
if (O)
|
|
6244
6246
|
return O;
|
|
6245
|
-
var P =
|
|
6247
|
+
var P = w.displayName || w.name || "";
|
|
6246
6248
|
return P !== "" ? v + "(" + P + ")" : v;
|
|
6247
6249
|
}
|
|
6248
6250
|
function ht(h) {
|
|
@@ -6272,8 +6274,8 @@ function yc() {
|
|
|
6272
6274
|
if (typeof h == "object")
|
|
6273
6275
|
switch (h.$$typeof) {
|
|
6274
6276
|
case u:
|
|
6275
|
-
var
|
|
6276
|
-
return ht(
|
|
6277
|
+
var w = h;
|
|
6278
|
+
return ht(w) + ".Consumer";
|
|
6277
6279
|
case a:
|
|
6278
6280
|
var v = h;
|
|
6279
6281
|
return ht(v._context) + ".Provider";
|
|
@@ -6293,7 +6295,7 @@ function yc() {
|
|
|
6293
6295
|
}
|
|
6294
6296
|
return null;
|
|
6295
6297
|
}
|
|
6296
|
-
var
|
|
6298
|
+
var Te = Object.assign, Be = 0, Hn, Yn, Jn, Zn, Xn, er, tr;
|
|
6297
6299
|
function nr() {
|
|
6298
6300
|
}
|
|
6299
6301
|
nr.__reactDisabledLog = !0;
|
|
@@ -6329,25 +6331,25 @@ function yc() {
|
|
|
6329
6331
|
writable: !0
|
|
6330
6332
|
};
|
|
6331
6333
|
Object.defineProperties(console, {
|
|
6332
|
-
log:
|
|
6334
|
+
log: Te({}, h, {
|
|
6333
6335
|
value: Hn
|
|
6334
6336
|
}),
|
|
6335
|
-
info:
|
|
6337
|
+
info: Te({}, h, {
|
|
6336
6338
|
value: Yn
|
|
6337
6339
|
}),
|
|
6338
|
-
warn:
|
|
6340
|
+
warn: Te({}, h, {
|
|
6339
6341
|
value: Jn
|
|
6340
6342
|
}),
|
|
6341
|
-
error:
|
|
6343
|
+
error: Te({}, h, {
|
|
6342
6344
|
value: Zn
|
|
6343
6345
|
}),
|
|
6344
|
-
group:
|
|
6346
|
+
group: Te({}, h, {
|
|
6345
6347
|
value: Xn
|
|
6346
6348
|
}),
|
|
6347
|
-
groupCollapsed:
|
|
6349
|
+
groupCollapsed: Te({}, h, {
|
|
6348
6350
|
value: er
|
|
6349
6351
|
}),
|
|
6350
|
-
groupEnd:
|
|
6352
|
+
groupEnd: Te({}, h, {
|
|
6351
6353
|
value: tr
|
|
6352
6354
|
})
|
|
6353
6355
|
});
|
|
@@ -6356,7 +6358,7 @@ function yc() {
|
|
|
6356
6358
|
}
|
|
6357
6359
|
}
|
|
6358
6360
|
var Kt = g.ReactCurrentDispatcher, qt;
|
|
6359
|
-
function pt(h,
|
|
6361
|
+
function pt(h, w, v) {
|
|
6360
6362
|
{
|
|
6361
6363
|
if (qt === void 0)
|
|
6362
6364
|
try {
|
|
@@ -6374,7 +6376,7 @@ function yc() {
|
|
|
6374
6376
|
var ns = typeof WeakMap == "function" ? WeakMap : Map;
|
|
6375
6377
|
yt = new ns();
|
|
6376
6378
|
}
|
|
6377
|
-
function rr(h,
|
|
6379
|
+
function rr(h, w) {
|
|
6378
6380
|
if (!h || Wt)
|
|
6379
6381
|
return "";
|
|
6380
6382
|
{
|
|
@@ -6389,7 +6391,7 @@ function yc() {
|
|
|
6389
6391
|
var M;
|
|
6390
6392
|
M = Kt.current, Kt.current = null, es();
|
|
6391
6393
|
try {
|
|
6392
|
-
if (
|
|
6394
|
+
if (w) {
|
|
6393
6395
|
var C = function() {
|
|
6394
6396
|
throw Error();
|
|
6395
6397
|
};
|
|
@@ -6445,14 +6447,14 @@ function yc() {
|
|
|
6445
6447
|
var Ie = h ? h.displayName || h.name : "", me = Ie ? pt(Ie) : "";
|
|
6446
6448
|
return typeof h == "function" && yt.set(h, me), me;
|
|
6447
6449
|
}
|
|
6448
|
-
function rs(h,
|
|
6450
|
+
function rs(h, w, v) {
|
|
6449
6451
|
return rr(h, !1);
|
|
6450
6452
|
}
|
|
6451
6453
|
function is(h) {
|
|
6452
|
-
var
|
|
6453
|
-
return !!(
|
|
6454
|
+
var w = h.prototype;
|
|
6455
|
+
return !!(w && w.isReactComponent);
|
|
6454
6456
|
}
|
|
6455
|
-
function bt(h,
|
|
6457
|
+
function bt(h, w, v) {
|
|
6456
6458
|
if (h == null)
|
|
6457
6459
|
return "";
|
|
6458
6460
|
if (typeof h == "function")
|
|
@@ -6470,11 +6472,11 @@ function yc() {
|
|
|
6470
6472
|
case d:
|
|
6471
6473
|
return rs(h.render);
|
|
6472
6474
|
case l:
|
|
6473
|
-
return bt(h.type,
|
|
6475
|
+
return bt(h.type, w, v);
|
|
6474
6476
|
case p: {
|
|
6475
6477
|
var O = h, P = O._payload, M = O._init;
|
|
6476
6478
|
try {
|
|
6477
|
-
return bt(M(P),
|
|
6479
|
+
return bt(M(P), w, v);
|
|
6478
6480
|
} catch {
|
|
6479
6481
|
}
|
|
6480
6482
|
}
|
|
@@ -6484,12 +6486,12 @@ function yc() {
|
|
|
6484
6486
|
var Ge = Object.prototype.hasOwnProperty, ir = {}, sr = g.ReactDebugCurrentFrame;
|
|
6485
6487
|
function _t(h) {
|
|
6486
6488
|
if (h) {
|
|
6487
|
-
var
|
|
6489
|
+
var w = h._owner, v = bt(h.type, h._source, w ? w.type : null);
|
|
6488
6490
|
sr.setExtraStackFrame(v);
|
|
6489
6491
|
} else
|
|
6490
6492
|
sr.setExtraStackFrame(null);
|
|
6491
6493
|
}
|
|
6492
|
-
function ss(h,
|
|
6494
|
+
function ss(h, w, v, O, P) {
|
|
6493
6495
|
{
|
|
6494
6496
|
var M = Function.call.bind(Ge);
|
|
6495
6497
|
for (var C in h)
|
|
@@ -6500,7 +6502,7 @@ function yc() {
|
|
|
6500
6502
|
var G = Error((O || "React class") + ": " + v + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
6501
6503
|
throw G.name = "Invariant Violation", G;
|
|
6502
6504
|
}
|
|
6503
|
-
k = h[C](
|
|
6505
|
+
k = h[C](w, C, O, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
6504
6506
|
} catch (D) {
|
|
6505
6507
|
k = D;
|
|
6506
6508
|
}
|
|
@@ -6514,7 +6516,7 @@ function yc() {
|
|
|
6514
6516
|
}
|
|
6515
6517
|
function as(h) {
|
|
6516
6518
|
{
|
|
6517
|
-
var
|
|
6519
|
+
var w = typeof Symbol == "function" && Symbol.toStringTag, v = w && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
6518
6520
|
return v;
|
|
6519
6521
|
}
|
|
6520
6522
|
}
|
|
@@ -6540,27 +6542,27 @@ function yc() {
|
|
|
6540
6542
|
}, cr, dr;
|
|
6541
6543
|
function ds(h) {
|
|
6542
6544
|
if (Ge.call(h, "ref")) {
|
|
6543
|
-
var
|
|
6544
|
-
if (
|
|
6545
|
+
var w = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
6546
|
+
if (w && w.isReactWarning)
|
|
6545
6547
|
return !1;
|
|
6546
6548
|
}
|
|
6547
6549
|
return h.ref !== void 0;
|
|
6548
6550
|
}
|
|
6549
6551
|
function fs(h) {
|
|
6550
6552
|
if (Ge.call(h, "key")) {
|
|
6551
|
-
var
|
|
6552
|
-
if (
|
|
6553
|
+
var w = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
6554
|
+
if (w && w.isReactWarning)
|
|
6553
6555
|
return !1;
|
|
6554
6556
|
}
|
|
6555
6557
|
return h.key !== void 0;
|
|
6556
6558
|
}
|
|
6557
|
-
function ls(h,
|
|
6559
|
+
function ls(h, w) {
|
|
6558
6560
|
typeof h.ref == "string" && ur.current;
|
|
6559
6561
|
}
|
|
6560
|
-
function hs(h,
|
|
6562
|
+
function hs(h, w) {
|
|
6561
6563
|
{
|
|
6562
6564
|
var v = function() {
|
|
6563
|
-
cr || (cr = !0, m("%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://reactjs.org/link/special-props)",
|
|
6565
|
+
cr || (cr = !0, m("%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://reactjs.org/link/special-props)", w));
|
|
6564
6566
|
};
|
|
6565
6567
|
v.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
6566
6568
|
get: v,
|
|
@@ -6568,10 +6570,10 @@ function yc() {
|
|
|
6568
6570
|
});
|
|
6569
6571
|
}
|
|
6570
6572
|
}
|
|
6571
|
-
function ps(h,
|
|
6573
|
+
function ps(h, w) {
|
|
6572
6574
|
{
|
|
6573
6575
|
var v = function() {
|
|
6574
|
-
dr || (dr = !0, m("%s: `ref` 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://reactjs.org/link/special-props)",
|
|
6576
|
+
dr || (dr = !0, m("%s: `ref` 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://reactjs.org/link/special-props)", w));
|
|
6575
6577
|
};
|
|
6576
6578
|
v.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
6577
6579
|
get: v,
|
|
@@ -6579,13 +6581,13 @@ function yc() {
|
|
|
6579
6581
|
});
|
|
6580
6582
|
}
|
|
6581
6583
|
}
|
|
6582
|
-
var ys = function(h,
|
|
6584
|
+
var ys = function(h, w, v, O, P, M, C) {
|
|
6583
6585
|
var k = {
|
|
6584
6586
|
// This tag allows us to uniquely identify this as a React Element
|
|
6585
6587
|
$$typeof: n,
|
|
6586
6588
|
// Built-in properties that belong on the element
|
|
6587
6589
|
type: h,
|
|
6588
|
-
key:
|
|
6590
|
+
key: w,
|
|
6589
6591
|
ref: v,
|
|
6590
6592
|
props: C,
|
|
6591
6593
|
// Record the component responsible for creating this element.
|
|
@@ -6608,12 +6610,12 @@ function yc() {
|
|
|
6608
6610
|
value: P
|
|
6609
6611
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
6610
6612
|
};
|
|
6611
|
-
function bs(h,
|
|
6613
|
+
function bs(h, w, v, O, P) {
|
|
6612
6614
|
{
|
|
6613
6615
|
var M, C = {}, k = null, G = null;
|
|
6614
|
-
v !== void 0 && (ar(v), k = "" + v), fs(
|
|
6615
|
-
for (M in
|
|
6616
|
-
Ge.call(
|
|
6616
|
+
v !== void 0 && (ar(v), k = "" + v), fs(w) && (ar(w.key), k = "" + w.key), ds(w) && (G = w.ref, ls(w, P));
|
|
6617
|
+
for (M in w)
|
|
6618
|
+
Ge.call(w, M) && !cs.hasOwnProperty(M) && (C[M] = w[M]);
|
|
6617
6619
|
if (h && h.defaultProps) {
|
|
6618
6620
|
var D = h.defaultProps;
|
|
6619
6621
|
for (M in D)
|
|
@@ -6629,7 +6631,7 @@ function yc() {
|
|
|
6629
6631
|
var Vt = g.ReactCurrentOwner, fr = g.ReactDebugCurrentFrame;
|
|
6630
6632
|
function Pe(h) {
|
|
6631
6633
|
if (h) {
|
|
6632
|
-
var
|
|
6634
|
+
var w = h._owner, v = bt(h.type, h._source, w ? w.type : null);
|
|
6633
6635
|
fr.setExtraStackFrame(v);
|
|
6634
6636
|
} else
|
|
6635
6637
|
fr.setExtraStackFrame(null);
|
|
@@ -6657,22 +6659,22 @@ Check the render method of \`` + h + "`.";
|
|
|
6657
6659
|
var hr = {};
|
|
6658
6660
|
function gs(h) {
|
|
6659
6661
|
{
|
|
6660
|
-
var
|
|
6661
|
-
if (!
|
|
6662
|
+
var w = lr();
|
|
6663
|
+
if (!w) {
|
|
6662
6664
|
var v = typeof h == "string" ? h : h.displayName || h.name;
|
|
6663
|
-
v && (
|
|
6665
|
+
v && (w = `
|
|
6664
6666
|
|
|
6665
6667
|
Check the top-level render call using <` + v + ">.");
|
|
6666
6668
|
}
|
|
6667
|
-
return
|
|
6669
|
+
return w;
|
|
6668
6670
|
}
|
|
6669
6671
|
}
|
|
6670
|
-
function pr(h,
|
|
6672
|
+
function pr(h, w) {
|
|
6671
6673
|
{
|
|
6672
6674
|
if (!h._store || h._store.validated || h.key != null)
|
|
6673
6675
|
return;
|
|
6674
6676
|
h._store.validated = !0;
|
|
6675
|
-
var v = gs(
|
|
6677
|
+
var v = gs(w);
|
|
6676
6678
|
if (hr[v])
|
|
6677
6679
|
return;
|
|
6678
6680
|
hr[v] = !0;
|
|
@@ -6680,54 +6682,54 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6680
6682
|
h && h._owner && h._owner !== Vt.current && (O = " It was passed a child from " + ce(h._owner.type) + "."), Pe(h), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, O), Pe(null);
|
|
6681
6683
|
}
|
|
6682
6684
|
}
|
|
6683
|
-
function yr(h,
|
|
6685
|
+
function yr(h, w) {
|
|
6684
6686
|
{
|
|
6685
6687
|
if (typeof h != "object")
|
|
6686
6688
|
return;
|
|
6687
6689
|
if (zt(h))
|
|
6688
6690
|
for (var v = 0; v < h.length; v++) {
|
|
6689
6691
|
var O = h[v];
|
|
6690
|
-
Gt(O) && pr(O,
|
|
6692
|
+
Gt(O) && pr(O, w);
|
|
6691
6693
|
}
|
|
6692
6694
|
else if (Gt(h))
|
|
6693
6695
|
h._store && (h._store.validated = !0);
|
|
6694
6696
|
else if (h) {
|
|
6695
|
-
var P =
|
|
6697
|
+
var P = T(h);
|
|
6696
6698
|
if (typeof P == "function" && P !== h.entries)
|
|
6697
6699
|
for (var M = P.call(h), C; !(C = M.next()).done; )
|
|
6698
|
-
Gt(C.value) && pr(C.value,
|
|
6700
|
+
Gt(C.value) && pr(C.value, w);
|
|
6699
6701
|
}
|
|
6700
6702
|
}
|
|
6701
6703
|
}
|
|
6702
|
-
function
|
|
6704
|
+
function ws(h) {
|
|
6703
6705
|
{
|
|
6704
|
-
var
|
|
6705
|
-
if (
|
|
6706
|
+
var w = h.type;
|
|
6707
|
+
if (w == null || typeof w == "string")
|
|
6706
6708
|
return;
|
|
6707
6709
|
var v;
|
|
6708
|
-
if (typeof
|
|
6709
|
-
v =
|
|
6710
|
-
else if (typeof
|
|
6710
|
+
if (typeof w == "function")
|
|
6711
|
+
v = w.propTypes;
|
|
6712
|
+
else if (typeof w == "object" && (w.$$typeof === d || // Note: Memo only checks outer props here.
|
|
6711
6713
|
// Inner props are checked in the reconciler.
|
|
6712
|
-
|
|
6713
|
-
v =
|
|
6714
|
+
w.$$typeof === l))
|
|
6715
|
+
v = w.propTypes;
|
|
6714
6716
|
else
|
|
6715
6717
|
return;
|
|
6716
6718
|
if (v) {
|
|
6717
|
-
var O = ce(
|
|
6719
|
+
var O = ce(w);
|
|
6718
6720
|
ss(v, h.props, "prop", O, h);
|
|
6719
|
-
} else if (
|
|
6721
|
+
} else if (w.PropTypes !== void 0 && !Bt) {
|
|
6720
6722
|
Bt = !0;
|
|
6721
|
-
var P = ce(
|
|
6723
|
+
var P = ce(w);
|
|
6722
6724
|
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
6723
6725
|
}
|
|
6724
|
-
typeof
|
|
6726
|
+
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
6725
6727
|
}
|
|
6726
6728
|
}
|
|
6727
|
-
function
|
|
6729
|
+
function Ts(h) {
|
|
6728
6730
|
{
|
|
6729
|
-
for (var
|
|
6730
|
-
var O =
|
|
6731
|
+
for (var w = Object.keys(h.props), v = 0; v < w.length; v++) {
|
|
6732
|
+
var O = w[v];
|
|
6731
6733
|
if (O !== "children" && O !== "key") {
|
|
6732
6734
|
Pe(h), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Pe(null);
|
|
6733
6735
|
break;
|
|
@@ -6737,7 +6739,7 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6737
6739
|
}
|
|
6738
6740
|
}
|
|
6739
6741
|
var br = {};
|
|
6740
|
-
function _r(h,
|
|
6742
|
+
function _r(h, w, v, O, P, M) {
|
|
6741
6743
|
{
|
|
6742
6744
|
var C = Ft(h);
|
|
6743
6745
|
if (!C) {
|
|
@@ -6748,11 +6750,11 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6748
6750
|
var D;
|
|
6749
6751
|
h === null ? D = "null" : zt(h) ? D = "array" : h !== void 0 && h.$$typeof === n ? (D = "<" + (ce(h.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : D = typeof h, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, k);
|
|
6750
6752
|
}
|
|
6751
|
-
var L = bs(h,
|
|
6753
|
+
var L = bs(h, w, v, P, M);
|
|
6752
6754
|
if (L == null)
|
|
6753
6755
|
return L;
|
|
6754
6756
|
if (C) {
|
|
6755
|
-
var re =
|
|
6757
|
+
var re = w.children;
|
|
6756
6758
|
if (re !== void 0)
|
|
6757
6759
|
if (O)
|
|
6758
6760
|
if (zt(re)) {
|
|
@@ -6764,8 +6766,8 @@ Check the top-level render call using <` + v + ">.");
|
|
|
6764
6766
|
else
|
|
6765
6767
|
yr(re, h);
|
|
6766
6768
|
}
|
|
6767
|
-
if (Ge.call(
|
|
6768
|
-
var me = ce(h), Y = Object.keys(
|
|
6769
|
+
if (Ge.call(w, "key")) {
|
|
6770
|
+
var me = ce(h), Y = Object.keys(w).filter(function(As) {
|
|
6769
6771
|
return As !== "key";
|
|
6770
6772
|
}), Qt = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
6771
6773
|
if (!br[me + Qt]) {
|
|
@@ -6778,14 +6780,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
6778
6780
|
<%s key={someKey} {...props} />`, Qt, me, Es, me), br[me + Qt] = !0;
|
|
6779
6781
|
}
|
|
6780
6782
|
}
|
|
6781
|
-
return h === i ?
|
|
6783
|
+
return h === i ? Ts(L) : ws(L), L;
|
|
6782
6784
|
}
|
|
6783
6785
|
}
|
|
6784
|
-
function ms(h,
|
|
6785
|
-
return _r(h,
|
|
6786
|
+
function ms(h, w, v) {
|
|
6787
|
+
return _r(h, w, v, !0);
|
|
6786
6788
|
}
|
|
6787
|
-
function vs(h,
|
|
6788
|
-
return _r(h,
|
|
6789
|
+
function vs(h, w, v) {
|
|
6790
|
+
return _r(h, w, v, !1);
|
|
6789
6791
|
}
|
|
6790
6792
|
var Ss = vs, Os = ms;
|
|
6791
6793
|
Ye.Fragment = i, Ye.jsx = Ss, Ye.jsxs = Os;
|
|
@@ -6815,7 +6817,7 @@ function gc(t, e, n) {
|
|
|
6815
6817
|
);
|
|
6816
6818
|
return { state: tn(o, () => s.current, () => _c), query: r };
|
|
6817
6819
|
}
|
|
6818
|
-
function
|
|
6820
|
+
function wc() {
|
|
6819
6821
|
const t = at(null);
|
|
6820
6822
|
ke(() => {
|
|
6821
6823
|
n();
|
|
@@ -6828,7 +6830,7 @@ function Tc() {
|
|
|
6828
6830
|
}
|
|
6829
6831
|
return { set: e, clear: n };
|
|
6830
6832
|
}
|
|
6831
|
-
const
|
|
6833
|
+
const Tc = 1e3;
|
|
6832
6834
|
function mc(t, e, n) {
|
|
6833
6835
|
const r = at(n);
|
|
6834
6836
|
r.current = n, ke(() => t.core._reactor.subscribeTopic(t.id, e, (s, o) => {
|
|
@@ -6866,7 +6868,7 @@ function Oc(t, e, n) {
|
|
|
6866
6868
|
ke(() => t.core._reactor.joinRoom(t.id, e), [t.id]), ke(() => t.core._reactor.publishPresence(t.type, t.id, e), [t.type, t.id, n ?? JSON.stringify(e)]);
|
|
6867
6869
|
}
|
|
6868
6870
|
function Ec(t, e, n = {}) {
|
|
6869
|
-
const r =
|
|
6871
|
+
const r = wc(), i = Se.usePresence(t, {
|
|
6870
6872
|
keys: [e]
|
|
6871
6873
|
}), s = nn(() => {
|
|
6872
6874
|
var c;
|
|
@@ -6876,7 +6878,7 @@ function Ec(t, e, n = {}) {
|
|
|
6876
6878
|
var f;
|
|
6877
6879
|
t.core._reactor.publishPresence(t.type, t.id, {
|
|
6878
6880
|
[e]: c
|
|
6879
|
-
}), c && ((n == null ? void 0 : n.timeout) === null || (n == null ? void 0 : n.timeout) === 0 || r.set((f = n == null ? void 0 : n.timeout) !== null && f !== void 0 ? f :
|
|
6881
|
+
}), c && ((n == null ? void 0 : n.timeout) === null || (n == null ? void 0 : n.timeout) === 0 || r.set((f = n == null ? void 0 : n.timeout) !== null && f !== void 0 ? f : Tc, () => {
|
|
6880
6882
|
t.core._reactor.publishPresence(t.type, t.id, {
|
|
6881
6883
|
[e]: null
|
|
6882
6884
|
});
|
|
@@ -7030,8 +7032,8 @@ function Pc(t) {
|
|
|
7030
7032
|
const { onEvent: e = en, onError: n = en, onRetry: r = en, onComment: i } = t;
|
|
7031
7033
|
let s = "", o = !0, a, u = "", d = "";
|
|
7032
7034
|
function c(b) {
|
|
7033
|
-
const _ = o ? b.replace(/^\xEF\xBB\xBF/, "") : b, [
|
|
7034
|
-
for (const m of
|
|
7035
|
+
const _ = o ? b.replace(/^\xEF\xBB\xBF/, "") : b, [T, g] = Ic(`${s}${_}`);
|
|
7036
|
+
for (const m of T)
|
|
7035
7037
|
f(m);
|
|
7036
7038
|
s = g, o = !1;
|
|
7037
7039
|
}
|
|
@@ -7046,13 +7048,13 @@ function Pc(t) {
|
|
|
7046
7048
|
}
|
|
7047
7049
|
const _ = b.indexOf(":");
|
|
7048
7050
|
if (_ !== -1) {
|
|
7049
|
-
const
|
|
7050
|
-
l(
|
|
7051
|
+
const T = b.slice(0, _), g = b[_ + 1] === " " ? 2 : 1, m = b.slice(_ + g);
|
|
7052
|
+
l(T, m, b);
|
|
7051
7053
|
return;
|
|
7052
7054
|
}
|
|
7053
7055
|
l(b, "", b);
|
|
7054
7056
|
}
|
|
7055
|
-
function l(b, _,
|
|
7057
|
+
function l(b, _, T) {
|
|
7056
7058
|
switch (b) {
|
|
7057
7059
|
case "event":
|
|
7058
7060
|
d = _;
|
|
@@ -7069,7 +7071,7 @@ function Pc(t) {
|
|
|
7069
7071
|
new ii(`Invalid \`retry\` value: "${_}"`, {
|
|
7070
7072
|
type: "invalid-retry",
|
|
7071
7073
|
value: _,
|
|
7072
|
-
line:
|
|
7074
|
+
line: T
|
|
7073
7075
|
})
|
|
7074
7076
|
);
|
|
7075
7077
|
break;
|
|
@@ -7077,7 +7079,7 @@ function Pc(t) {
|
|
|
7077
7079
|
n(
|
|
7078
7080
|
new ii(
|
|
7079
7081
|
`Unknown field "${b.length > 20 ? `${b.slice(0, 20)}…` : b}"`,
|
|
7080
|
-
{ type: "unknown-field", field: b, value: _, line:
|
|
7082
|
+
{ type: "unknown-field", field: b, value: _, line: T }
|
|
7081
7083
|
)
|
|
7082
7084
|
);
|
|
7083
7085
|
break;
|
|
@@ -7443,7 +7445,7 @@ function Wc({
|
|
|
7443
7445
|
p(E, m);
|
|
7444
7446
|
}
|
|
7445
7447
|
}
|
|
7446
|
-
function
|
|
7448
|
+
function T(g) {
|
|
7447
7449
|
f.publishPresence({
|
|
7448
7450
|
[c]: void 0
|
|
7449
7451
|
});
|
|
@@ -7454,7 +7456,7 @@ function Wc({
|
|
|
7454
7456
|
onMouseMove: y,
|
|
7455
7457
|
onMouseOut: b,
|
|
7456
7458
|
onTouchMove: _,
|
|
7457
|
-
onTouchEnd:
|
|
7459
|
+
onTouchEnd: T,
|
|
7458
7460
|
className: r,
|
|
7459
7461
|
style: {
|
|
7460
7462
|
position: "relative",
|