@stonecrop/desktop 0.13.12 → 0.13.14
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/desktop.css +1 -1
- package/dist/desktop.js +447 -449
- package/dist/desktop.js.map +1 -1
- package/package.json +6 -6
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Be, ref as N, onMounted as gr, openBlock as T, createElementBlock as U, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as Be, ref as N, onMounted as gr, openBlock as T, createElementBlock as U, normalizeClass as ee, createElementVNode as M, Fragment as ne, renderList as je, toDisplayString as At, createCommentVNode as Kt, withDirectives as ur, vShow as Kr, useTemplateRef as Eo, computed as C, watch as ot, nextTick as oe, createBlock as cr, Teleport as Ni, createVNode as re, Transition as Ci, withCtx as xe, withModifiers as Oo, vModelText as ko, renderSlot as Ar, createTextVNode as lr, toRaw as Do, isRef as ie, isReactive as mr, toRef as Ht, hasInjectionContext as Hr, inject as Me, getCurrentInstance as Ro, reactive as zo, markRaw as Ie, effectScope as $i, getCurrentScope as un, onScopeDispose as cn, toRefs as qn, provide as Re, shallowRef as Fe, toValue as It, readonly as wr, customRef as ln, unref as sr, useModel as ji, watchEffect as xi, resolveDynamicComponent as Ln, mergeProps as Mi, mergeModels as Un, resolveComponent as Ti, withKeys as be, normalizeStyle as Nr, onUnmounted as Pi } from "vue";
|
|
2
|
+
const Vi = { class: "action-menu-icon" }, qi = { class: "action-element-header" }, Li = ["disabled", "onClick"], Ui = { key: 0 }, Bi = { class: "dropdown-header" }, Fi = ["onClick"], Wi = ["onClick"], Ki = { class: "dropdown-container" }, Hi = { class: "dropdown" }, Ji = ["onClick"], Gi = ["href"], Yi = { class: "dropdown-item" }, Xi = /* @__PURE__ */ Be({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: { default: () => [] }
|
|
@@ -21,21 +21,21 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
21
21
|
r("actionClick", f, l);
|
|
22
22
|
};
|
|
23
23
|
return (l, f) => (T(), U("div", {
|
|
24
|
-
class:
|
|
24
|
+
class: ee([{ collapsed: !o.value }, "action-set"])
|
|
25
25
|
}, [
|
|
26
|
-
M("div",
|
|
26
|
+
M("div", Vi, [
|
|
27
27
|
M("div", {
|
|
28
28
|
id: "cross",
|
|
29
|
-
class:
|
|
29
|
+
class: ee({ rotated: o.value }),
|
|
30
30
|
onClick: a
|
|
31
31
|
}, "×", 2)
|
|
32
32
|
]),
|
|
33
33
|
f[0] || (f[0] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
34
|
-
(T(!0), U(
|
|
34
|
+
(T(!0), U(ne, null, je(t.elements, (h, d) => (T(), U("div", {
|
|
35
35
|
key: h.label,
|
|
36
36
|
class: "action-element"
|
|
37
37
|
}, [
|
|
38
|
-
M("div",
|
|
38
|
+
M("div", qi, [
|
|
39
39
|
h.type == "button" ? (T(), U("button", {
|
|
40
40
|
key: 0,
|
|
41
41
|
disabled: h.disabled,
|
|
@@ -46,7 +46,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
46
46
|
h.type == "dropdown" ? (T(), U("div", Ui, [
|
|
47
47
|
M("div", Bi, [
|
|
48
48
|
M("div", {
|
|
49
|
-
class:
|
|
49
|
+
class: ee(["cross", { rotated: i.value[d] }]),
|
|
50
50
|
onClick: (y) => u(d)
|
|
51
51
|
}, "×", 10, Fi),
|
|
52
52
|
M("button", {
|
|
@@ -56,7 +56,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
56
56
|
]),
|
|
57
57
|
ur(M("div", Ki, [
|
|
58
58
|
M("div", Hi, [
|
|
59
|
-
(T(!0), U(
|
|
59
|
+
(T(!0), U(ne, null, je(h.actions, (y) => (T(), U("div", {
|
|
60
60
|
key: y.label
|
|
61
61
|
}, [
|
|
62
62
|
y.action != null ? (T(), U("button", {
|
|
@@ -83,7 +83,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
83
83
|
for (const [n, o] of e)
|
|
84
84
|
r[n] = o;
|
|
85
85
|
return r;
|
|
86
|
-
}, No = /* @__PURE__ */ Ao(Xi, [["__scopeId", "data-v-07634099"]]),
|
|
86
|
+
}, No = /* @__PURE__ */ Ao(Xi, [["__scopeId", "data-v-07634099"]]), Zi = { class: "command-palette-header" }, Qi = ["placeholder"], ts = {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "command-palette-results"
|
|
89
89
|
}, es = ["onClick", "onMouseover"], rs = { class: "result-title" }, ns = { class: "result-content" }, os = {
|
|
@@ -103,7 +103,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
103
103
|
ot(
|
|
104
104
|
() => t.isOpen,
|
|
105
105
|
async (l) => {
|
|
106
|
-
l && (n.value = "", o.value = 0, await
|
|
106
|
+
l && (n.value = "", o.value = 0, await oe(), i.value?.focus());
|
|
107
107
|
}
|
|
108
108
|
), ot(s, () => {
|
|
109
109
|
o.value = 0;
|
|
@@ -129,7 +129,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
129
129
|
r("select", l), a();
|
|
130
130
|
};
|
|
131
131
|
return (l, f) => (T(), cr(Ni, { to: "body" }, [
|
|
132
|
-
|
|
132
|
+
re(Ci, { name: "fade" }, {
|
|
133
133
|
default: xe(() => [
|
|
134
134
|
t.isOpen ? (T(), U("div", {
|
|
135
135
|
key: 0,
|
|
@@ -141,7 +141,7 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
141
141
|
onClick: f[1] || (f[1] = Oo(() => {
|
|
142
142
|
}, ["stop"]))
|
|
143
143
|
}, [
|
|
144
|
-
M("div",
|
|
144
|
+
M("div", Zi, [
|
|
145
145
|
ur(M("input", {
|
|
146
146
|
ref: "input",
|
|
147
147
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => n.value = h),
|
|
@@ -150,14 +150,14 @@ const qi = { class: "action-menu-icon" }, Vi = { class: "action-element-header"
|
|
|
150
150
|
placeholder: t.placeholder,
|
|
151
151
|
autofocus: "",
|
|
152
152
|
onKeydown: u
|
|
153
|
-
}, null, 40,
|
|
153
|
+
}, null, 40, Qi), [
|
|
154
154
|
[ko, n.value]
|
|
155
155
|
])
|
|
156
156
|
]),
|
|
157
157
|
s.value.length ? (T(), U("div", ts, [
|
|
158
|
-
(T(!0), U(
|
|
158
|
+
(T(!0), U(ne, null, je(s.value, (h, d) => (T(), U("div", {
|
|
159
159
|
key: d,
|
|
160
|
-
class:
|
|
160
|
+
class: ee(["command-palette-result", { selected: d === o.value }]),
|
|
161
161
|
onClick: (y) => c(h),
|
|
162
162
|
onMouseover: (y) => o.value = d
|
|
163
163
|
}, [
|
|
@@ -202,7 +202,7 @@ function $o(t, e) {
|
|
|
202
202
|
if (!(r in t))
|
|
203
203
|
continue;
|
|
204
204
|
const o = t[r];
|
|
205
|
-
Jt(o) && Jt(n) && !
|
|
205
|
+
Jt(o) && Jt(n) && !ie(n) && !mr(n) ? t[r] = $o(o, n) : t[r] = n;
|
|
206
206
|
}
|
|
207
207
|
return t;
|
|
208
208
|
}
|
|
@@ -215,7 +215,7 @@ function Bn(t, e, r, n = jo) {
|
|
|
215
215
|
};
|
|
216
216
|
return !r && un() && cn(o), o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Qt(t, ...e) {
|
|
219
219
|
t.forEach((r) => {
|
|
220
220
|
r(...e);
|
|
221
221
|
});
|
|
@@ -227,7 +227,7 @@ function Gr(t, e) {
|
|
|
227
227
|
if (!e.hasOwnProperty(r))
|
|
228
228
|
continue;
|
|
229
229
|
const n = e[r], o = t[r];
|
|
230
|
-
Jt(o) && Jt(n) && t.hasOwnProperty(r) && !
|
|
230
|
+
Jt(o) && Jt(n) && t.hasOwnProperty(r) && !ie(n) && !mr(n) ? t[r] = Gr(o, n) : t[r] = n;
|
|
231
231
|
}
|
|
232
232
|
return t;
|
|
233
233
|
}
|
|
@@ -240,7 +240,7 @@ function as(t) {
|
|
|
240
240
|
}
|
|
241
241
|
const { assign: bt } = Object;
|
|
242
242
|
function Wn(t) {
|
|
243
|
-
return !!(
|
|
243
|
+
return !!(ie(t) && t.effect);
|
|
244
244
|
}
|
|
245
245
|
function Kn(t, e, r, n) {
|
|
246
246
|
const { state: o, actions: i, getters: s } = e, a = r.state.value[t];
|
|
@@ -249,9 +249,9 @@ function Kn(t, e, r, n) {
|
|
|
249
249
|
!a && (process.env.NODE_ENV === "production" || !n) && (r.state.value[t] = o ? o() : {});
|
|
250
250
|
const l = process.env.NODE_ENV !== "production" && n ? (
|
|
251
251
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
252
|
-
|
|
253
|
-
) :
|
|
254
|
-
return bt(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] =
|
|
252
|
+
qn(N(o ? o() : {}).value)
|
|
253
|
+
) : qn(r.state.value[t]);
|
|
254
|
+
return bt(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] = Ie(C(() => {
|
|
255
255
|
fr(r);
|
|
256
256
|
const d = r._s.get(t);
|
|
257
257
|
return s[h].call(d, d);
|
|
@@ -286,9 +286,9 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
286
286
|
events: d
|
|
287
287
|
});
|
|
288
288
|
const A = k = /* @__PURE__ */ Symbol();
|
|
289
|
-
|
|
289
|
+
oe().then(() => {
|
|
290
290
|
k === A && (c = !0);
|
|
291
|
-
}), l = !0,
|
|
291
|
+
}), l = !0, Qt(f, b, n.state.value[t]);
|
|
292
292
|
}
|
|
293
293
|
const st = i ? function() {
|
|
294
294
|
const { state: b } = r, A = b ? b() : {};
|
|
@@ -301,7 +301,7 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
301
301
|
throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`);
|
|
302
302
|
} : jo
|
|
303
303
|
);
|
|
304
|
-
function
|
|
304
|
+
function Z() {
|
|
305
305
|
s.stop(), f.clear(), h.clear(), n._s.delete(t);
|
|
306
306
|
}
|
|
307
307
|
const kt = (I, b = "") => {
|
|
@@ -316,7 +316,7 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
316
316
|
function E(g) {
|
|
317
317
|
P.add(g);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
Qt(h, {
|
|
320
320
|
args: H,
|
|
321
321
|
name: A[Cr],
|
|
322
322
|
store: O,
|
|
@@ -327,12 +327,12 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
327
327
|
try {
|
|
328
328
|
S = I.apply(this && this.$id === t ? this : O, H);
|
|
329
329
|
} catch (g) {
|
|
330
|
-
throw
|
|
330
|
+
throw Qt(P, g), g;
|
|
331
331
|
}
|
|
332
|
-
return S instanceof Promise ? S.then((g) => (
|
|
332
|
+
return S instanceof Promise ? S.then((g) => (Qt(D, g), g)).catch((g) => (Qt(P, g), Promise.reject(g))) : (Qt(D, S), S);
|
|
333
333
|
};
|
|
334
334
|
return A[Fn] = !0, A[Cr] = b, A;
|
|
335
|
-
}, X = /* @__PURE__ */
|
|
335
|
+
}, X = /* @__PURE__ */ Ie({
|
|
336
336
|
actions: {},
|
|
337
337
|
getters: {},
|
|
338
338
|
state: [],
|
|
@@ -354,11 +354,11 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
354
354
|
}, bt({}, u, b)));
|
|
355
355
|
return A;
|
|
356
356
|
},
|
|
357
|
-
$dispose:
|
|
357
|
+
$dispose: Z
|
|
358
358
|
}, O = zo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te ? bt(
|
|
359
359
|
{
|
|
360
360
|
_hmrPayload: X,
|
|
361
|
-
_customProperties:
|
|
361
|
+
_customProperties: Ie(/* @__PURE__ */ new Set())
|
|
362
362
|
// devtools custom properties
|
|
363
363
|
},
|
|
364
364
|
ht
|
|
@@ -366,21 +366,21 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
366
366
|
// setupStore
|
|
367
367
|
) : ht);
|
|
368
368
|
n._s.set(t, O);
|
|
369
|
-
const
|
|
370
|
-
for (const I in
|
|
371
|
-
const b =
|
|
372
|
-
if (
|
|
373
|
-
process.env.NODE_ENV !== "production" && o ? _.value[I] = Ht(
|
|
369
|
+
const Q = (n._a && n._a.runWithContext || is)(() => n._e.run(() => (s = $i()).run(() => e({ action: kt }))));
|
|
370
|
+
for (const I in Q) {
|
|
371
|
+
const b = Q[I];
|
|
372
|
+
if (ie(b) && !Wn(b) || mr(b))
|
|
373
|
+
process.env.NODE_ENV !== "production" && o ? _.value[I] = Ht(Q, I) : i || (y && as(b) && (ie(b) ? b.value = y[I] : Gr(b, y[I])), n.state.value[t][I] = b), process.env.NODE_ENV !== "production" && X.state.push(I);
|
|
374
374
|
else if (typeof b == "function") {
|
|
375
375
|
const A = process.env.NODE_ENV !== "production" && o ? b : kt(b, I);
|
|
376
|
-
|
|
376
|
+
Q[I] = A, process.env.NODE_ENV !== "production" && (X.actions[I] = b), a.actions[I] = b;
|
|
377
377
|
} else process.env.NODE_ENV !== "production" && Wn(b) && (X.getters[I] = i ? (
|
|
378
378
|
// @ts-expect-error
|
|
379
379
|
r.getters[I]
|
|
380
|
-
) : b, te && (
|
|
381
|
-
(
|
|
380
|
+
) : b, te && (Q._getters || // @ts-expect-error: same
|
|
381
|
+
(Q._getters = Ie([]))).push(I));
|
|
382
382
|
}
|
|
383
|
-
if (bt(O,
|
|
383
|
+
if (bt(O, Q), bt(Do(O), Q), Object.defineProperty(O, "$state", {
|
|
384
384
|
get: () => process.env.NODE_ENV !== "production" && o ? _.value : n.state.value[t],
|
|
385
385
|
set: (I) => {
|
|
386
386
|
if (process.env.NODE_ENV !== "production" && o)
|
|
@@ -389,7 +389,7 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
389
389
|
bt(b, I);
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
}), process.env.NODE_ENV !== "production" && (O._hotUpdate =
|
|
392
|
+
}), process.env.NODE_ENV !== "production" && (O._hotUpdate = Ie((I) => {
|
|
393
393
|
O._hotUpdating = !0, I._hmrPayload.state.forEach((b) => {
|
|
394
394
|
if (b in O.$state) {
|
|
395
395
|
const A = I.$state[b], H = O.$state[b];
|
|
@@ -398,7 +398,7 @@ function Yr(t, e, r = {}, n, o, i) {
|
|
|
398
398
|
O[b] = Ht(I.$state, b);
|
|
399
399
|
}), Object.keys(O.$state).forEach((b) => {
|
|
400
400
|
b in I.$state || delete O[b];
|
|
401
|
-
}), c = !1, l = !1, n.state.value[t] = Ht(I._hmrPayload, "hotState"), l = !0,
|
|
401
|
+
}), c = !1, l = !1, n.state.value[t] = Ht(I._hmrPayload, "hotState"), l = !0, oe().then(() => {
|
|
402
402
|
c = !0;
|
|
403
403
|
});
|
|
404
404
|
for (const b in I._hmrPayload.actions) {
|
|
@@ -491,7 +491,7 @@ function cs(t) {
|
|
|
491
491
|
set(i) {
|
|
492
492
|
t[n] = i;
|
|
493
493
|
}
|
|
494
|
-
}) : (
|
|
494
|
+
}) : (ie(o) || mr(o)) && (r[n] = // ---
|
|
495
495
|
Ht(t, n));
|
|
496
496
|
}
|
|
497
497
|
return r;
|
|
@@ -562,7 +562,7 @@ function ms(t, e, r = {}) {
|
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
function ws(t, e = !0, r) {
|
|
565
|
-
_s() ? gr(t, r) : e ? t() :
|
|
565
|
+
_s() ? gr(t, r) : e ? t() : oe(t);
|
|
566
566
|
}
|
|
567
567
|
function bs(t, e, r) {
|
|
568
568
|
return ot(t, e, {
|
|
@@ -597,9 +597,9 @@ function Hn(...t) {
|
|
|
597
597
|
});
|
|
598
598
|
}, { flush: "post" });
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, tr = "__vueuse_ssr_handlers__", Is = /* @__PURE__ */ Es();
|
|
601
601
|
function Es() {
|
|
602
|
-
return tr in
|
|
602
|
+
return tr in Qe || (Qe[tr] = Qe[tr] || {}), Qe[tr];
|
|
603
603
|
}
|
|
604
604
|
function Os(t, e) {
|
|
605
605
|
return Is[t] || e;
|
|
@@ -652,7 +652,7 @@ function Rs(t, e, r, n = {}) {
|
|
|
652
652
|
d(D);
|
|
653
653
|
}
|
|
654
654
|
if (!r) return _;
|
|
655
|
-
const j = It(e), st = ks(j),
|
|
655
|
+
const j = It(e), st = ks(j), Z = (o = n.serializer) !== null && o !== void 0 ? o : Ds[st], { pause: kt, resume: X } = ms(_, (D) => I(D), {
|
|
656
656
|
flush: i,
|
|
657
657
|
deep: s,
|
|
658
658
|
eventFilter: h
|
|
@@ -667,7 +667,7 @@ function Rs(t, e, r, n = {}) {
|
|
|
667
667
|
f && a && (r instanceof Storage ? Hn(f, "storage", O, { passive: !0 }) : Hn(f, Jn, Dt)), y ? ws(() => {
|
|
668
668
|
ht = !0, A();
|
|
669
669
|
}) : A();
|
|
670
|
-
function
|
|
670
|
+
function Q(D, P) {
|
|
671
671
|
if (f) {
|
|
672
672
|
const G = {
|
|
673
673
|
key: k.value,
|
|
@@ -682,10 +682,10 @@ function Rs(t, e, r, n = {}) {
|
|
|
682
682
|
try {
|
|
683
683
|
const P = r.getItem(k.value);
|
|
684
684
|
if (D == null)
|
|
685
|
-
|
|
685
|
+
Q(P, null), r.removeItem(k.value);
|
|
686
686
|
else {
|
|
687
|
-
const G =
|
|
688
|
-
P !== G && (r.setItem(k.value, G),
|
|
687
|
+
const G = Z.write(D);
|
|
688
|
+
P !== G && (r.setItem(k.value, G), Q(P, G));
|
|
689
689
|
}
|
|
690
690
|
} catch (P) {
|
|
691
691
|
d(P);
|
|
@@ -694,14 +694,14 @@ function Rs(t, e, r, n = {}) {
|
|
|
694
694
|
function b(D) {
|
|
695
695
|
const P = D ? D.newValue : r.getItem(k.value);
|
|
696
696
|
if (P == null)
|
|
697
|
-
return u && j != null && r.setItem(k.value,
|
|
697
|
+
return u && j != null && r.setItem(k.value, Z.write(j)), j;
|
|
698
698
|
if (!D && c) {
|
|
699
|
-
const G =
|
|
699
|
+
const G = Z.read(P);
|
|
700
700
|
return typeof c == "function" ? c(G, j) : st === "object" && !Array.isArray(G) ? {
|
|
701
701
|
...j,
|
|
702
702
|
...G
|
|
703
703
|
} : G;
|
|
704
|
-
} else return typeof P != "string" ? P :
|
|
704
|
+
} else return typeof P != "string" ? P : Z.read(P);
|
|
705
705
|
}
|
|
706
706
|
function A(D) {
|
|
707
707
|
if (!(D && D.storageArea !== r)) {
|
|
@@ -712,12 +712,12 @@ function Rs(t, e, r, n = {}) {
|
|
|
712
712
|
if (!(D && D.key !== k.value)) {
|
|
713
713
|
kt();
|
|
714
714
|
try {
|
|
715
|
-
const P =
|
|
715
|
+
const P = Z.write(_.value);
|
|
716
716
|
(D === void 0 || D?.newValue !== P) && (_.value = b(D));
|
|
717
717
|
} catch (P) {
|
|
718
718
|
d(P);
|
|
719
719
|
} finally {
|
|
720
|
-
D ?
|
|
720
|
+
D ? oe(X) : X();
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -780,15 +780,13 @@ const Mo = /* @__PURE__ */ us("hst-operation-log", () => {
|
|
|
780
780
|
for (let S = r.value; S >= 0 && e.value[S]?.reversible; S--)
|
|
781
781
|
E++;
|
|
782
782
|
return E;
|
|
783
|
-
}), c = C(() => e.value.length - 1 - r.value), l = C(
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
})
|
|
791
|
-
);
|
|
783
|
+
}), c = C(() => e.value.length - 1 - r.value), l = C(() => ({
|
|
784
|
+
canUndo: s.value,
|
|
785
|
+
canRedo: a.value,
|
|
786
|
+
undoCount: u.value,
|
|
787
|
+
redoCount: c.value,
|
|
788
|
+
currentIndex: r.value
|
|
789
|
+
}));
|
|
792
790
|
function f(E) {
|
|
793
791
|
t.value = { ...t.value, ...E }, t.value.enablePersistence && (D(), G()), t.value.enableCrossTabSync && Dt();
|
|
794
792
|
}
|
|
@@ -808,7 +806,7 @@ const Mo = /* @__PURE__ */ us("hst-operation-log", () => {
|
|
|
808
806
|
const J = e.value.length - t.value.maxOperations;
|
|
809
807
|
e.value = e.value.slice(J), r.value -= J;
|
|
810
808
|
}
|
|
811
|
-
return t.value.enableCrossTabSync &&
|
|
809
|
+
return t.value.enableCrossTabSync && Q(g), g.id;
|
|
812
810
|
}
|
|
813
811
|
function d() {
|
|
814
812
|
o.value = !0, i.value.push({
|
|
@@ -891,7 +889,7 @@ const Mo = /* @__PURE__ */ us("hst-operation-log", () => {
|
|
|
891
889
|
newestOperation: S.length > 0 ? new Date(Math.max(...S.map((g) => g.getTime()))) : void 0
|
|
892
890
|
};
|
|
893
891
|
}
|
|
894
|
-
function
|
|
892
|
+
function Z() {
|
|
895
893
|
e.value = [], r.value = -1;
|
|
896
894
|
}
|
|
897
895
|
function kt(E, S) {
|
|
@@ -930,7 +928,7 @@ const Mo = /* @__PURE__ */ us("hst-operation-log", () => {
|
|
|
930
928
|
), r.value = e.value.length - 1));
|
|
931
929
|
}));
|
|
932
930
|
}
|
|
933
|
-
function
|
|
931
|
+
function Q(E) {
|
|
934
932
|
if (!O) return;
|
|
935
933
|
const S = {
|
|
936
934
|
type: "operation",
|
|
@@ -1037,7 +1035,7 @@ const Mo = /* @__PURE__ */ us("hst-operation-log", () => {
|
|
|
1037
1035
|
cancelBatch: _,
|
|
1038
1036
|
undo: k,
|
|
1039
1037
|
redo: j,
|
|
1040
|
-
clear:
|
|
1038
|
+
clear: Z,
|
|
1041
1039
|
getOperationsFor: kt,
|
|
1042
1040
|
getSnapshot: st,
|
|
1043
1041
|
markIrreversible: X,
|
|
@@ -1394,14 +1392,14 @@ function Xn() {
|
|
|
1394
1392
|
return null;
|
|
1395
1393
|
}
|
|
1396
1394
|
}
|
|
1397
|
-
class
|
|
1395
|
+
let Ns = class Ee {
|
|
1398
1396
|
static instance;
|
|
1399
1397
|
/**
|
|
1400
1398
|
* Gets the singleton instance of HST
|
|
1401
1399
|
* @returns The HST singleton instance
|
|
1402
1400
|
*/
|
|
1403
1401
|
static getInstance() {
|
|
1404
|
-
return
|
|
1402
|
+
return Ee.instance || (Ee.instance = new Ee()), Ee.instance;
|
|
1405
1403
|
}
|
|
1406
1404
|
/**
|
|
1407
1405
|
* Gets the global registry instance
|
|
@@ -1434,7 +1432,7 @@ class ee {
|
|
|
1434
1432
|
if (r && typeof r == "object" && "registry" in r)
|
|
1435
1433
|
return r.registry[e];
|
|
1436
1434
|
}
|
|
1437
|
-
}
|
|
1435
|
+
};
|
|
1438
1436
|
class pr {
|
|
1439
1437
|
target;
|
|
1440
1438
|
ancestorPath;
|
|
@@ -1442,7 +1440,7 @@ class pr {
|
|
|
1442
1440
|
doctype;
|
|
1443
1441
|
hst;
|
|
1444
1442
|
constructor(e, r, n = "", o = null) {
|
|
1445
|
-
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst =
|
|
1443
|
+
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst = Ns.getInstance(), new Proxy(this, {
|
|
1446
1444
|
get(i, s) {
|
|
1447
1445
|
if (s in i) return Reflect.get(i, s);
|
|
1448
1446
|
const a = String(s);
|
|
@@ -1674,7 +1672,7 @@ class pr {
|
|
|
1674
1672
|
return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
|
|
1675
1673
|
}
|
|
1676
1674
|
}
|
|
1677
|
-
function
|
|
1675
|
+
function Cs(t, e) {
|
|
1678
1676
|
return new pr(t, e, "", null);
|
|
1679
1677
|
}
|
|
1680
1678
|
class Ne {
|
|
@@ -1738,7 +1736,7 @@ class Ne {
|
|
|
1738
1736
|
const e = {};
|
|
1739
1737
|
Object.keys(this.registry.registry).forEach((r) => {
|
|
1740
1738
|
e[r] = {};
|
|
1741
|
-
}), this.hstStore =
|
|
1739
|
+
}), this.hstStore = Cs(zo(e), "StonecropStore");
|
|
1742
1740
|
}
|
|
1743
1741
|
/**
|
|
1744
1742
|
* Setup automatic sync with Registry when doctypes are added
|
|
@@ -2039,7 +2037,7 @@ class Ne {
|
|
|
2039
2037
|
*/
|
|
2040
2038
|
async fetchNestedData(e, r, n, o) {
|
|
2041
2039
|
if (!this._client)
|
|
2042
|
-
throw
|
|
2040
|
+
throw Zn(
|
|
2043
2041
|
"No data client configured. Call setClient() with a DataClient implementation (e.g., StonecropClient from @stonecrop/graphql-client) before fetching records.",
|
|
2044
2042
|
"CLIENT_REQUIRED"
|
|
2045
2043
|
);
|
|
@@ -2047,7 +2045,7 @@ class Ne {
|
|
|
2047
2045
|
includeNested: o?.includeNested ?? !0
|
|
2048
2046
|
});
|
|
2049
2047
|
if (!i?.record)
|
|
2050
|
-
throw
|
|
2048
|
+
throw Zn(`Record not found: ${r.doctype} ${n}`, "RECORD_NOT_FOUND");
|
|
2051
2049
|
const s = r.slug;
|
|
2052
2050
|
this.ensureDoctypeExists(s), this.hstStore.get(`${s}.${n}`) || this.hstStore.set(`${s}.${n}`, {}, "system");
|
|
2053
2051
|
for (const [a, u] of Object.entries(i.record))
|
|
@@ -2075,15 +2073,15 @@ class Ne {
|
|
|
2075
2073
|
return n;
|
|
2076
2074
|
}
|
|
2077
2075
|
}
|
|
2078
|
-
function
|
|
2076
|
+
function Zn(t, e) {
|
|
2079
2077
|
const r = new Error(t);
|
|
2080
2078
|
return r.code = e, r;
|
|
2081
2079
|
}
|
|
2082
|
-
function
|
|
2080
|
+
function $s(t) {
|
|
2083
2081
|
t || (t = {});
|
|
2084
2082
|
const e = t.registry || Me("$registry"), r = Me("$stonecrop"), n = N(), o = N(), i = N({}), s = N(), a = N(), u = N([]), c = N(!1), l = N(null), f = N(), h = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || Ne._root;
|
|
2085
2083
|
y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
2086
|
-
const _ = N([]), k = N(-1), j = C(() => n.value?.getOperationLogStore().canUndo ?? !1), st = C(() => n.value?.getOperationLogStore().canRedo ?? !1),
|
|
2084
|
+
const _ = N([]), k = N(-1), j = C(() => n.value?.getOperationLogStore().canUndo ?? !1), st = C(() => n.value?.getOperationLogStore().canRedo ?? !1), Z = C(() => n.value?.getOperationLogStore().undoCount ?? 0), kt = C(() => n.value?.getOperationLogStore().redoCount ?? 0), X = C(
|
|
2087
2085
|
() => n.value?.getOperationLogStore().undoRedoState ?? {
|
|
2088
2086
|
canUndo: !1,
|
|
2089
2087
|
canRedo: !1,
|
|
@@ -2093,7 +2091,7 @@ function Cs(t) {
|
|
|
2093
2091
|
}
|
|
2094
2092
|
), ht = (p) => n.value?.getOperationLogStore().undo(p) ?? !1, O = (p) => n.value?.getOperationLogStore().redo(p) ?? !1, Dt = () => {
|
|
2095
2093
|
n.value?.getOperationLogStore().startBatch();
|
|
2096
|
-
},
|
|
2094
|
+
}, Q = (p) => n.value?.getOperationLogStore().commitBatch(p) ?? null, I = () => {
|
|
2097
2095
|
n.value?.getOperationLogStore().cancelBatch();
|
|
2098
2096
|
}, b = () => {
|
|
2099
2097
|
n.value?.getOperationLogStore().clear();
|
|
@@ -2221,16 +2219,16 @@ function Cs(t) {
|
|
|
2221
2219
|
if (o.value.has(`${L}.${et}`) || n.value.addRecord(m, et, { ...i.value }), w.length > 3) {
|
|
2222
2220
|
const Tt = `${L}.${et}`, Xe = w.slice(2);
|
|
2223
2221
|
let zr = Tt;
|
|
2224
|
-
for (let
|
|
2225
|
-
if (zr += `.${Xe[
|
|
2226
|
-
const zi = Xe[
|
|
2222
|
+
for (let Ze = 0; Ze < Xe.length - 1; Ze++)
|
|
2223
|
+
if (zr += `.${Xe[Ze]}`, !o.value.has(zr)) {
|
|
2224
|
+
const zi = Xe[Ze + 1], Ai = !isNaN(Number(zi));
|
|
2227
2225
|
o.value.set(zr, Ai ? [] : {});
|
|
2228
2226
|
}
|
|
2229
2227
|
}
|
|
2230
2228
|
}
|
|
2231
2229
|
o.value.set(p.path, p.value);
|
|
2232
2230
|
const R = p.fieldname.split("."), z = { ...i.value };
|
|
2233
|
-
R.length === 1 ? z[R[0]] = p.value :
|
|
2231
|
+
R.length === 1 ? z[R[0]] = p.value : js(z, R, p.value), i.value = z;
|
|
2234
2232
|
} catch {
|
|
2235
2233
|
}
|
|
2236
2234
|
};
|
|
@@ -2262,12 +2260,12 @@ function Cs(t) {
|
|
|
2262
2260
|
undoRedoState: X,
|
|
2263
2261
|
canUndo: j,
|
|
2264
2262
|
canRedo: st,
|
|
2265
|
-
undoCount:
|
|
2263
|
+
undoCount: Z,
|
|
2266
2264
|
redoCount: kt,
|
|
2267
2265
|
undo: ht,
|
|
2268
2266
|
redo: O,
|
|
2269
2267
|
startBatch: Dt,
|
|
2270
|
-
commitBatch:
|
|
2268
|
+
commitBatch: Q,
|
|
2271
2269
|
cancelBatch: I,
|
|
2272
2270
|
clear: b,
|
|
2273
2271
|
getOperationsFor: A,
|
|
@@ -2331,7 +2329,7 @@ function xr(t, e, r, n) {
|
|
|
2331
2329
|
{ deep: !0 }
|
|
2332
2330
|
);
|
|
2333
2331
|
}
|
|
2334
|
-
function
|
|
2332
|
+
function js(t, e, r) {
|
|
2335
2333
|
let n = t;
|
|
2336
2334
|
for (let i = 0; i < e.length - 1; i++) {
|
|
2337
2335
|
const s = e[i];
|
|
@@ -2370,22 +2368,22 @@ var nt = function(t) {
|
|
|
2370
2368
|
return Et(r) ? r : Rt(r);
|
|
2371
2369
|
}
|
|
2372
2370
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2373
|
-
})(nt),
|
|
2371
|
+
})(nt), de = /* @__PURE__ */ (function(t) {
|
|
2374
2372
|
function e(r) {
|
|
2375
|
-
return gt(r) && !fn(r) ? r :
|
|
2373
|
+
return gt(r) && !fn(r) ? r : _e(r);
|
|
2376
2374
|
}
|
|
2377
2375
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2378
2376
|
})(nt);
|
|
2379
2377
|
nt.Keyed = Ot;
|
|
2380
2378
|
nt.Indexed = Gt;
|
|
2381
|
-
nt.Set =
|
|
2382
|
-
var
|
|
2379
|
+
nt.Set = de;
|
|
2380
|
+
var ve = 0, mt = 1, wt = 2, Zr = typeof Symbol == "function" && Symbol.iterator, Po = "@@iterator", br = Zr || Po, x = function(t) {
|
|
2383
2381
|
this.next = t;
|
|
2384
2382
|
};
|
|
2385
2383
|
x.prototype.toString = function() {
|
|
2386
2384
|
return "[Iterator]";
|
|
2387
2385
|
};
|
|
2388
|
-
x.KEYS =
|
|
2386
|
+
x.KEYS = ve;
|
|
2389
2387
|
x.VALUES = mt;
|
|
2390
2388
|
x.ENTRIES = wt;
|
|
2391
2389
|
x.prototype.inspect = x.prototype.toSource = function() {
|
|
@@ -2395,7 +2393,7 @@ x.prototype[br] = function() {
|
|
|
2395
2393
|
return this;
|
|
2396
2394
|
};
|
|
2397
2395
|
function K(t, e, r, n) {
|
|
2398
|
-
var o = t ===
|
|
2396
|
+
var o = t === ve ? e : t === mt ? r : [e, r];
|
|
2399
2397
|
return n ? n.value = o : n = {
|
|
2400
2398
|
// @ts-expect-error ensure value is not undefined
|
|
2401
2399
|
value: o,
|
|
@@ -2405,33 +2403,33 @@ function K(t, e, r, n) {
|
|
|
2405
2403
|
function ct() {
|
|
2406
2404
|
return { value: void 0, done: !0 };
|
|
2407
2405
|
}
|
|
2408
|
-
function
|
|
2406
|
+
function Vo(t) {
|
|
2409
2407
|
return Array.isArray(t) ? !0 : !!Sr(t);
|
|
2410
2408
|
}
|
|
2411
|
-
function
|
|
2409
|
+
function Qn(t) {
|
|
2412
2410
|
return !!(t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2413
2411
|
typeof t.next == "function");
|
|
2414
2412
|
}
|
|
2415
|
-
function
|
|
2413
|
+
function Qr(t) {
|
|
2416
2414
|
var e = Sr(t);
|
|
2417
2415
|
return e && e.call(t);
|
|
2418
2416
|
}
|
|
2419
2417
|
function Sr(t) {
|
|
2420
2418
|
var e = t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2421
|
-
(
|
|
2419
|
+
(Zr && t[Zr] || // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2422
2420
|
t[Po]);
|
|
2423
2421
|
if (typeof e == "function")
|
|
2424
2422
|
return e;
|
|
2425
2423
|
}
|
|
2426
|
-
function
|
|
2424
|
+
function xs(t) {
|
|
2427
2425
|
var e = Sr(t);
|
|
2428
2426
|
return e && e === t.entries;
|
|
2429
2427
|
}
|
|
2430
|
-
function
|
|
2428
|
+
function Ms(t) {
|
|
2431
2429
|
var e = Sr(t);
|
|
2432
2430
|
return e && e === t.keys;
|
|
2433
2431
|
}
|
|
2434
|
-
var We = "delete",
|
|
2432
|
+
var We = "delete", q = 5, yt = 1 << q, ut = yt - 1, $ = {};
|
|
2435
2433
|
function tn() {
|
|
2436
2434
|
return { value: !1 };
|
|
2437
2435
|
}
|
|
@@ -2440,19 +2438,19 @@ function St(t) {
|
|
|
2440
2438
|
}
|
|
2441
2439
|
function hn() {
|
|
2442
2440
|
}
|
|
2443
|
-
function
|
|
2444
|
-
return t.size === void 0 && (t.size = t.__iterate(
|
|
2441
|
+
function se(t) {
|
|
2442
|
+
return t.size === void 0 && (t.size = t.__iterate(qo)), t.size;
|
|
2445
2443
|
}
|
|
2446
|
-
function
|
|
2444
|
+
function qt(t, e) {
|
|
2447
2445
|
if (typeof e != "number") {
|
|
2448
2446
|
var r = e >>> 0;
|
|
2449
2447
|
if ("" + r !== e || r === 4294967295)
|
|
2450
2448
|
return NaN;
|
|
2451
2449
|
e = r;
|
|
2452
2450
|
}
|
|
2453
|
-
return e < 0 ?
|
|
2451
|
+
return e < 0 ? se(t) + e : e;
|
|
2454
2452
|
}
|
|
2455
|
-
function
|
|
2453
|
+
function qo() {
|
|
2456
2454
|
return !0;
|
|
2457
2455
|
}
|
|
2458
2456
|
function Ir(t, e, r) {
|
|
@@ -2488,7 +2486,7 @@ function pn(t) {
|
|
|
2488
2486
|
return !!(t && // @ts-expect-error: maybeSeq is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSeq === 'object' && MAYBE_SEQ_SYMBOL in maybeSeq`
|
|
2489
2487
|
t[Fo]);
|
|
2490
2488
|
}
|
|
2491
|
-
var
|
|
2489
|
+
var ye = Object.prototype.hasOwnProperty;
|
|
2492
2490
|
function Wo(t) {
|
|
2493
2491
|
return Array.isArray(t) || typeof t == "string" ? !0 : t && typeof t == "object" && // @ts-expect-error check that `'length' in value &&`
|
|
2494
2492
|
Number.isInteger(t.length) && // @ts-expect-error check that `'length' in value &&`
|
|
@@ -2505,7 +2503,7 @@ function Wo(t) {
|
|
|
2505
2503
|
}
|
|
2506
2504
|
var ft = /* @__PURE__ */ (function(t) {
|
|
2507
2505
|
function e(r) {
|
|
2508
|
-
return r == null ? vn() : $t(r) ? r.toSeq() :
|
|
2506
|
+
return r == null ? vn() : $t(r) ? r.toSeq() : Ps(r);
|
|
2509
2507
|
}
|
|
2510
2508
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
|
|
2511
2509
|
return this;
|
|
@@ -2555,7 +2553,7 @@ var ft = /* @__PURE__ */ (function(t) {
|
|
|
2555
2553
|
}, e.prototype.toString = function() {
|
|
2556
2554
|
return this.__toString("Seq [", "]");
|
|
2557
2555
|
}, e;
|
|
2558
|
-
})(ft),
|
|
2556
|
+
})(ft), _e = /* @__PURE__ */ (function(t) {
|
|
2559
2557
|
function e(r) {
|
|
2560
2558
|
return (gt(r) && !fn(r) ? r : Rt(r)).toSetSeq();
|
|
2561
2559
|
}
|
|
@@ -2567,15 +2565,15 @@ var ft = /* @__PURE__ */ (function(t) {
|
|
|
2567
2565
|
})(ft);
|
|
2568
2566
|
ft.isSeq = pn;
|
|
2569
2567
|
ft.Keyed = Bt;
|
|
2570
|
-
ft.Set =
|
|
2568
|
+
ft.Set = _e;
|
|
2571
2569
|
ft.Indexed = Rt;
|
|
2572
2570
|
ft.prototype[Fo] = !0;
|
|
2573
|
-
var
|
|
2571
|
+
var ae = /* @__PURE__ */ (function(t) {
|
|
2574
2572
|
function e(r) {
|
|
2575
2573
|
this._array = r, this.size = r.length;
|
|
2576
2574
|
}
|
|
2577
2575
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.get = function(r, n) {
|
|
2578
|
-
return this.has(r) ? this._array[
|
|
2576
|
+
return this.has(r) ? this._array[qt(this, r)] : n;
|
|
2579
2577
|
}, e.prototype.__iterate = function(r, n) {
|
|
2580
2578
|
for (var o = this._array, i = o.length, s = 0; s !== i; ) {
|
|
2581
2579
|
var a = n ? i - ++s : s++;
|
|
@@ -2602,7 +2600,7 @@ var ue = /* @__PURE__ */ (function(t) {
|
|
|
2602
2600
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.get = function(r, n) {
|
|
2603
2601
|
return n !== void 0 && !this.has(r) ? n : this._object[r];
|
|
2604
2602
|
}, e.prototype.has = function(r) {
|
|
2605
|
-
return
|
|
2603
|
+
return ye.call(this._object, r);
|
|
2606
2604
|
}, e.prototype.__iterate = function(r, n) {
|
|
2607
2605
|
for (var o = this._object, i = this._keys, s = i.length, a = 0; a !== s; ) {
|
|
2608
2606
|
var u = i[n ? s - ++a : a++];
|
|
@@ -2621,23 +2619,23 @@ var ue = /* @__PURE__ */ (function(t) {
|
|
|
2621
2619
|
}, e;
|
|
2622
2620
|
})(Bt);
|
|
2623
2621
|
dn.prototype[Lt] = !0;
|
|
2624
|
-
var
|
|
2622
|
+
var Ts = /* @__PURE__ */ (function(t) {
|
|
2625
2623
|
function e(r) {
|
|
2626
2624
|
this._collection = r, this.size = r.length || r.size;
|
|
2627
2625
|
}
|
|
2628
2626
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
|
|
2629
2627
|
if (n)
|
|
2630
2628
|
return this.cacheResult().__iterate(r, n);
|
|
2631
|
-
var o = this._collection, i =
|
|
2632
|
-
if (
|
|
2629
|
+
var o = this._collection, i = Qr(o), s = 0;
|
|
2630
|
+
if (Qn(i))
|
|
2633
2631
|
for (var a; !(a = i.next()).done && r(a.value, s++, this) !== !1; )
|
|
2634
2632
|
;
|
|
2635
2633
|
return s;
|
|
2636
2634
|
}, e.prototype.__iteratorUncached = function(r, n) {
|
|
2637
2635
|
if (n)
|
|
2638
2636
|
return this.cacheResult().__iterator(r, n);
|
|
2639
|
-
var o = this._collection, i =
|
|
2640
|
-
if (!
|
|
2637
|
+
var o = this._collection, i = Qr(o);
|
|
2638
|
+
if (!Qn(i))
|
|
2641
2639
|
return new x(ct);
|
|
2642
2640
|
var s = 0;
|
|
2643
2641
|
return new x(function() {
|
|
@@ -2647,7 +2645,7 @@ var Ms = /* @__PURE__ */ (function(t) {
|
|
|
2647
2645
|
}, e;
|
|
2648
2646
|
})(Rt), to;
|
|
2649
2647
|
function vn() {
|
|
2650
|
-
return to || (to = new
|
|
2648
|
+
return to || (to = new ae([]));
|
|
2651
2649
|
}
|
|
2652
2650
|
function yn(t) {
|
|
2653
2651
|
var e = _n(t);
|
|
@@ -2667,10 +2665,10 @@ function Ko(t) {
|
|
|
2667
2665
|
"Expected Array or collection object of values: " + t
|
|
2668
2666
|
);
|
|
2669
2667
|
}
|
|
2670
|
-
function
|
|
2668
|
+
function Ps(t) {
|
|
2671
2669
|
var e = _n(t);
|
|
2672
2670
|
if (e)
|
|
2673
|
-
return
|
|
2671
|
+
return xs(t) ? e.fromEntrySeq() : Ms(t) ? e.toSetSeq() : e;
|
|
2674
2672
|
if (typeof t == "object")
|
|
2675
2673
|
return new dn(t);
|
|
2676
2674
|
throw new TypeError(
|
|
@@ -2678,7 +2676,7 @@ function Ts(t) {
|
|
|
2678
2676
|
);
|
|
2679
2677
|
}
|
|
2680
2678
|
function _n(t) {
|
|
2681
|
-
return Wo(t) ? new
|
|
2679
|
+
return Wo(t) ? new ae(t) : Vo(t) ? new Ts(t) : void 0;
|
|
2682
2680
|
}
|
|
2683
2681
|
function He() {
|
|
2684
2682
|
return this.__ensureOwner();
|
|
@@ -2686,7 +2684,7 @@ function He() {
|
|
|
2686
2684
|
function Je() {
|
|
2687
2685
|
return this.__ownerID ? this : this.__ensureOwner(new hn());
|
|
2688
2686
|
}
|
|
2689
|
-
var
|
|
2687
|
+
var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
|
|
2690
2688
|
t |= 0, e |= 0;
|
|
2691
2689
|
var r = t & 65535, n = e & 65535;
|
|
2692
2690
|
return r * n + ((t >>> 16) * n + r * (e >>> 16) << 16 >>> 0) | 0;
|
|
@@ -2694,13 +2692,13 @@ var Ie = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
|
|
|
2694
2692
|
function Or(t) {
|
|
2695
2693
|
return t >>> 1 & 1073741824 | t & 3221225471;
|
|
2696
2694
|
}
|
|
2697
|
-
var
|
|
2695
|
+
var Vs = Object.prototype.valueOf;
|
|
2698
2696
|
function dt(t) {
|
|
2699
2697
|
if (t == null)
|
|
2700
2698
|
return eo(t);
|
|
2701
2699
|
if (typeof t.hashCode == "function")
|
|
2702
2700
|
return Or(t.hashCode(t));
|
|
2703
|
-
var e =
|
|
2701
|
+
var e = Ws(t);
|
|
2704
2702
|
if (e == null)
|
|
2705
2703
|
return eo(e);
|
|
2706
2704
|
switch (typeof e) {
|
|
@@ -2709,12 +2707,12 @@ function dt(t) {
|
|
|
2709
2707
|
case "number":
|
|
2710
2708
|
return qs(e);
|
|
2711
2709
|
case "string":
|
|
2712
|
-
return e.length >
|
|
2710
|
+
return e.length > Ks ? Ls(e) : en(e);
|
|
2713
2711
|
case "object":
|
|
2714
2712
|
case "function":
|
|
2715
|
-
return
|
|
2713
|
+
return Bs(e);
|
|
2716
2714
|
case "symbol":
|
|
2717
|
-
return
|
|
2715
|
+
return Us(e);
|
|
2718
2716
|
default:
|
|
2719
2717
|
if (typeof e.toString == "function")
|
|
2720
2718
|
return en(e.toString());
|
|
@@ -2735,22 +2733,22 @@ function qs(t) {
|
|
|
2735
2733
|
t /= 4294967295, e ^= t;
|
|
2736
2734
|
return Or(e);
|
|
2737
2735
|
}
|
|
2738
|
-
function
|
|
2736
|
+
function Ls(t) {
|
|
2739
2737
|
var e = Pr[t];
|
|
2740
|
-
return e === void 0 && (e = en(t), Tr ===
|
|
2738
|
+
return e === void 0 && (e = en(t), Tr === Hs && (Tr = 0, Pr = {}), Tr++, Pr[t] = e), e;
|
|
2741
2739
|
}
|
|
2742
2740
|
function en(t) {
|
|
2743
2741
|
for (var e = 0, r = 0; r < t.length; r++)
|
|
2744
2742
|
e = 31 * e + t.charCodeAt(r) | 0;
|
|
2745
2743
|
return Or(e);
|
|
2746
2744
|
}
|
|
2747
|
-
function
|
|
2745
|
+
function Us(t) {
|
|
2748
2746
|
var e = oo[t];
|
|
2749
2747
|
return e !== void 0 || (e = Ho(), oo[t] = e), e;
|
|
2750
2748
|
}
|
|
2751
|
-
function
|
|
2749
|
+
function Bs(t) {
|
|
2752
2750
|
var e;
|
|
2753
|
-
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !no && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e =
|
|
2751
|
+
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !no && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Fs(t), e !== void 0)))
|
|
2754
2752
|
return e;
|
|
2755
2753
|
if (e = Ho(), rn)
|
|
2756
2754
|
nn.set(t, e);
|
|
@@ -2786,7 +2784,7 @@ var ro = Object.isExtensible, no = (function() {
|
|
|
2786
2784
|
return !1;
|
|
2787
2785
|
}
|
|
2788
2786
|
})();
|
|
2789
|
-
function
|
|
2787
|
+
function Fs(t) {
|
|
2790
2788
|
if (t && t.nodeType > 0)
|
|
2791
2789
|
switch (t.nodeType) {
|
|
2792
2790
|
case 1:
|
|
@@ -2795,8 +2793,8 @@ function Bs(t) {
|
|
|
2795
2793
|
return t.documentElement && t.documentElement.uniqueID;
|
|
2796
2794
|
}
|
|
2797
2795
|
}
|
|
2798
|
-
function
|
|
2799
|
-
return t.valueOf !==
|
|
2796
|
+
function Ws(t) {
|
|
2797
|
+
return t.valueOf !== Vs && typeof t.valueOf == "function" ? (
|
|
2800
2798
|
// @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
|
|
2801
2799
|
t.valueOf(t)
|
|
2802
2800
|
) : t;
|
|
@@ -2809,7 +2807,7 @@ var rn = typeof WeakMap == "function", nn;
|
|
|
2809
2807
|
rn && (nn = /* @__PURE__ */ new WeakMap());
|
|
2810
2808
|
var oo = /* @__PURE__ */ Object.create(null), Mr = 0, Ft = "__immutablehash__";
|
|
2811
2809
|
typeof Symbol == "function" && (Ft = Symbol(Ft));
|
|
2812
|
-
var
|
|
2810
|
+
var Ks = 16, Hs = 255, Tr = 0, Pr = {}, kr = /* @__PURE__ */ (function(t) {
|
|
2813
2811
|
function e(r, n) {
|
|
2814
2812
|
this._iter = r, this._useKeys = n, this.size = r.size;
|
|
2815
2813
|
}
|
|
@@ -2825,7 +2823,7 @@ var Ws = 16, Ks = 255, Tr = 0, Pr = {}, kr = /* @__PURE__ */ (function(t) {
|
|
|
2825
2823
|
return r._iter.toSeq().reverse();
|
|
2826
2824
|
}), n;
|
|
2827
2825
|
}, e.prototype.map = function(r, n) {
|
|
2828
|
-
var o = this, i =
|
|
2826
|
+
var o = this, i = Zo(this, r, n);
|
|
2829
2827
|
return this._useKeys || (i.valueSeq = function() {
|
|
2830
2828
|
return o._iter.toSeq().map(r, n);
|
|
2831
2829
|
}), i;
|
|
@@ -2847,7 +2845,7 @@ var Jo = /* @__PURE__ */ (function(t) {
|
|
|
2847
2845
|
return this._iter.includes(r);
|
|
2848
2846
|
}, e.prototype.__iterate = function(r, n) {
|
|
2849
2847
|
var o = this, i = 0;
|
|
2850
|
-
return n &&
|
|
2848
|
+
return n && se(this), this._iter.__iterate(
|
|
2851
2849
|
function(s) {
|
|
2852
2850
|
return r(s, n ? o.size - ++i : i++, o);
|
|
2853
2851
|
},
|
|
@@ -2855,7 +2853,7 @@ var Jo = /* @__PURE__ */ (function(t) {
|
|
|
2855
2853
|
);
|
|
2856
2854
|
}, e.prototype.__iterator = function(r, n) {
|
|
2857
2855
|
var o = this, i = this._iter.__iterator(mt, n), s = 0;
|
|
2858
|
-
return n &&
|
|
2856
|
+
return n && se(this), new x(function() {
|
|
2859
2857
|
var a = i.next();
|
|
2860
2858
|
return a.done ? a : K(
|
|
2861
2859
|
r,
|
|
@@ -2883,7 +2881,7 @@ var Jo = /* @__PURE__ */ (function(t) {
|
|
|
2883
2881
|
return i.done ? i : K(r, i.value, i.value, i);
|
|
2884
2882
|
});
|
|
2885
2883
|
}, e;
|
|
2886
|
-
})(
|
|
2884
|
+
})(_e), Yo = /* @__PURE__ */ (function(t) {
|
|
2887
2885
|
function e(r) {
|
|
2888
2886
|
this._iter = r, this.size = r.size;
|
|
2889
2887
|
}
|
|
@@ -2956,12 +2954,12 @@ function Xo(t) {
|
|
|
2956
2954
|
});
|
|
2957
2955
|
}
|
|
2958
2956
|
return t.__iterator(
|
|
2959
|
-
r === mt ?
|
|
2957
|
+
r === mt ? ve : mt,
|
|
2960
2958
|
n
|
|
2961
2959
|
);
|
|
2962
2960
|
}, e;
|
|
2963
2961
|
}
|
|
2964
|
-
function
|
|
2962
|
+
function Zo(t, e, r) {
|
|
2965
2963
|
var n = jt(t);
|
|
2966
2964
|
return n.size = t.size, n.has = function(o) {
|
|
2967
2965
|
return t.has(o);
|
|
@@ -3009,7 +3007,7 @@ function gn(t, e) {
|
|
|
3009
3007
|
return t.includes(o);
|
|
3010
3008
|
}, n.cacheResult = bn, n.__iterate = function(o, i) {
|
|
3011
3009
|
var s = this, a = 0;
|
|
3012
|
-
return i &&
|
|
3010
|
+
return i && se(t), t.__iterate(
|
|
3013
3011
|
function(u, c) {
|
|
3014
3012
|
return o(u, e ? c : i ? s.size - ++a : a++, s);
|
|
3015
3013
|
},
|
|
@@ -3017,7 +3015,7 @@ function gn(t, e) {
|
|
|
3017
3015
|
);
|
|
3018
3016
|
}, n.__iterator = function(o, i) {
|
|
3019
3017
|
var s = 0;
|
|
3020
|
-
i &&
|
|
3018
|
+
i && se(t);
|
|
3021
3019
|
var a = t.__iterator(wt, !i);
|
|
3022
3020
|
return new x(function() {
|
|
3023
3021
|
var u = a.next();
|
|
@@ -3033,7 +3031,7 @@ function gn(t, e) {
|
|
|
3033
3031
|
});
|
|
3034
3032
|
}, n;
|
|
3035
3033
|
}
|
|
3036
|
-
function
|
|
3034
|
+
function Qo(t, e, r, n) {
|
|
3037
3035
|
var o = jt(t);
|
|
3038
3036
|
return n && (o.has = function(i) {
|
|
3039
3037
|
var s = t.get(i, $);
|
|
@@ -3061,16 +3059,16 @@ function Zo(t, e, r, n) {
|
|
|
3061
3059
|
});
|
|
3062
3060
|
}, o;
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3065
|
-
var n =
|
|
3062
|
+
function Js(t, e, r) {
|
|
3063
|
+
var n = ge().asMutable();
|
|
3066
3064
|
return t.__iterate(function(o, i) {
|
|
3067
3065
|
n.update(e.call(r, o, i, t), 0, function(s) {
|
|
3068
3066
|
return s + 1;
|
|
3069
3067
|
});
|
|
3070
3068
|
}), n.asImmutable();
|
|
3071
3069
|
}
|
|
3072
|
-
function
|
|
3073
|
-
var n = W(t), o = (Ct(t) ? Mt() :
|
|
3070
|
+
function Gs(t, e, r) {
|
|
3071
|
+
var n = W(t), o = (Ct(t) ? Mt() : ge()).asMutable();
|
|
3074
3072
|
t.__iterate(function(s, a) {
|
|
3075
3073
|
o.update(
|
|
3076
3074
|
e.call(r, s, a, t),
|
|
@@ -3081,10 +3079,10 @@ function Js(t, e, r) {
|
|
|
3081
3079
|
});
|
|
3082
3080
|
var i = wn(t);
|
|
3083
3081
|
return o.map(function(s) {
|
|
3084
|
-
return
|
|
3082
|
+
return V(t, i(s));
|
|
3085
3083
|
}).asImmutable();
|
|
3086
3084
|
}
|
|
3087
|
-
function
|
|
3085
|
+
function Ys(t, e, r) {
|
|
3088
3086
|
var n = W(t), o = [[], []];
|
|
3089
3087
|
t.__iterate(function(s, a) {
|
|
3090
3088
|
o[e.call(r, s, a, t) ? 1 : 0].push(
|
|
@@ -3093,7 +3091,7 @@ function Gs(t, e, r) {
|
|
|
3093
3091
|
});
|
|
3094
3092
|
var i = wn(t);
|
|
3095
3093
|
return o.map(function(s) {
|
|
3096
|
-
return
|
|
3094
|
+
return V(t, i(s));
|
|
3097
3095
|
});
|
|
3098
3096
|
}
|
|
3099
3097
|
function mn(t, e, r, n) {
|
|
@@ -3106,7 +3104,7 @@ function mn(t, e, r, n) {
|
|
|
3106
3104
|
a === a && (u = a < 0 ? 0 : a);
|
|
3107
3105
|
var c = jt(t);
|
|
3108
3106
|
return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
|
|
3109
|
-
return l =
|
|
3107
|
+
return l = qt(this, l), l >= 0 && l < u ? t.get(l + i, f) : f;
|
|
3110
3108
|
}), c.__iterateUncached = function(l, f) {
|
|
3111
3109
|
var h = this;
|
|
3112
3110
|
if (u === 0)
|
|
@@ -3130,11 +3128,11 @@ function mn(t, e, r, n) {
|
|
|
3130
3128
|
if (++y > u)
|
|
3131
3129
|
return ct();
|
|
3132
3130
|
var _ = h.next();
|
|
3133
|
-
return n || l === mt || _.done ? _ : l ===
|
|
3131
|
+
return n || l === mt || _.done ? _ : l === ve ? K(l, y - 1, void 0, _) : K(l, y - 1, _.value[1], _);
|
|
3134
3132
|
});
|
|
3135
3133
|
}, c;
|
|
3136
3134
|
}
|
|
3137
|
-
function
|
|
3135
|
+
function Xs(t, e, r) {
|
|
3138
3136
|
var n = jt(t);
|
|
3139
3137
|
return n.__iterateUncached = function(o, i) {
|
|
3140
3138
|
var s = this;
|
|
@@ -3182,7 +3180,7 @@ function ti(t, e, r, n) {
|
|
|
3182
3180
|
var f, h, d;
|
|
3183
3181
|
do {
|
|
3184
3182
|
if (f = u.next(), f.done)
|
|
3185
|
-
return n || i === mt ? f : i ===
|
|
3183
|
+
return n || i === mt ? f : i === ve ? K(i, l++, void 0, f) : K(i, l++, f.value[1], f);
|
|
3186
3184
|
var y = f.value;
|
|
3187
3185
|
h = y[0], d = y[1], c && (c = e.call(r, d, h, a));
|
|
3188
3186
|
} while (c);
|
|
@@ -3190,7 +3188,7 @@ function ti(t, e, r, n) {
|
|
|
3190
3188
|
});
|
|
3191
3189
|
}, o;
|
|
3192
3190
|
}
|
|
3193
|
-
var
|
|
3191
|
+
var Zs = /* @__PURE__ */ (function(t) {
|
|
3194
3192
|
function e(r) {
|
|
3195
3193
|
this._wrappedIterables = r.flatMap(function(n) {
|
|
3196
3194
|
return n._wrappedIterables ? n._wrappedIterables : [n];
|
|
@@ -3259,7 +3257,7 @@ function Qs(t, e) {
|
|
|
3259
3257
|
if (o === t || r && W(o) || Et(t) && Et(o))
|
|
3260
3258
|
return o;
|
|
3261
3259
|
}
|
|
3262
|
-
return new
|
|
3260
|
+
return new Zs(n);
|
|
3263
3261
|
}
|
|
3264
3262
|
function ei(t, e, r) {
|
|
3265
3263
|
var n = jt(t);
|
|
@@ -3294,13 +3292,13 @@ function ei(t, e, r) {
|
|
|
3294
3292
|
});
|
|
3295
3293
|
}, n;
|
|
3296
3294
|
}
|
|
3297
|
-
function
|
|
3295
|
+
function ta(t, e, r) {
|
|
3298
3296
|
var n = wn(t);
|
|
3299
3297
|
return t.toSeq().map(function(o, i) {
|
|
3300
3298
|
return n(e.call(r, o, i, t));
|
|
3301
3299
|
}).flatten(!0);
|
|
3302
3300
|
}
|
|
3303
|
-
function
|
|
3301
|
+
function ea(t, e) {
|
|
3304
3302
|
var r = jt(t);
|
|
3305
3303
|
return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
|
|
3306
3304
|
var i = this, s = 0;
|
|
@@ -3317,7 +3315,7 @@ function ta(t, e) {
|
|
|
3317
3315
|
});
|
|
3318
3316
|
}, r;
|
|
3319
3317
|
}
|
|
3320
|
-
function
|
|
3318
|
+
function ue(t, e, r) {
|
|
3321
3319
|
e || (e = ri);
|
|
3322
3320
|
var n = W(t), o = 0, i = t.toSeq().map(function(s, a) {
|
|
3323
3321
|
return [a, s, o++, r ? r(s, a, t) : s];
|
|
@@ -3330,7 +3328,7 @@ function ce(t, e, r) {
|
|
|
3330
3328
|
} : function(s, a) {
|
|
3331
3329
|
i[a] = s[1];
|
|
3332
3330
|
}
|
|
3333
|
-
), n ? Bt(i) : Et(t) ? Rt(i) :
|
|
3331
|
+
), n ? Bt(i) : Et(t) ? Rt(i) : _e(i);
|
|
3334
3332
|
}
|
|
3335
3333
|
function rr(t, e, r) {
|
|
3336
3334
|
if (e || (e = ri), r) {
|
|
@@ -3350,7 +3348,7 @@ function io(t, e, r) {
|
|
|
3350
3348
|
return n === 0 && r !== e && (r == null || r !== r) || n > 0;
|
|
3351
3349
|
}
|
|
3352
3350
|
function nr(t, e, r, n) {
|
|
3353
|
-
var o = jt(t), i = new
|
|
3351
|
+
var o = jt(t), i = new ae(r).map(function(s) {
|
|
3354
3352
|
return s.size;
|
|
3355
3353
|
});
|
|
3356
3354
|
return o.size = n ? i.max() : i.min(), o.__iterate = function(s, a) {
|
|
@@ -3360,7 +3358,7 @@ function nr(t, e, r, n) {
|
|
|
3360
3358
|
}, o.__iteratorUncached = function(s, a) {
|
|
3361
3359
|
var u = r.map(
|
|
3362
3360
|
function(f) {
|
|
3363
|
-
return f = nt(f),
|
|
3361
|
+
return f = nt(f), Qr(a ? f.reverse() : f);
|
|
3364
3362
|
}
|
|
3365
3363
|
), c = 0, l = !1;
|
|
3366
3364
|
return new x(function() {
|
|
@@ -3384,7 +3382,7 @@ function nr(t, e, r, n) {
|
|
|
3384
3382
|
});
|
|
3385
3383
|
}, o;
|
|
3386
3384
|
}
|
|
3387
|
-
function
|
|
3385
|
+
function V(t, e) {
|
|
3388
3386
|
return t === e ? t : pn(t) ? e : t.constructor(e);
|
|
3389
3387
|
}
|
|
3390
3388
|
function so(t) {
|
|
@@ -3392,11 +3390,11 @@ function so(t) {
|
|
|
3392
3390
|
throw new TypeError("Expected [K, V] tuple: " + t);
|
|
3393
3391
|
}
|
|
3394
3392
|
function wn(t) {
|
|
3395
|
-
return W(t) ? Ot : Et(t) ? Gt :
|
|
3393
|
+
return W(t) ? Ot : Et(t) ? Gt : de;
|
|
3396
3394
|
}
|
|
3397
3395
|
function jt(t) {
|
|
3398
3396
|
return Object.create(
|
|
3399
|
-
(W(t) ? Bt : Et(t) ? Rt :
|
|
3397
|
+
(W(t) ? Bt : Et(t) ? Rt : _e).prototype
|
|
3400
3398
|
);
|
|
3401
3399
|
}
|
|
3402
3400
|
function bn() {
|
|
@@ -3424,7 +3422,7 @@ function _t(t, e) {
|
|
|
3424
3422
|
return !!(ao(t) && ao(e) && t.equals(e));
|
|
3425
3423
|
}
|
|
3426
3424
|
function ni(t, e, r, n) {
|
|
3427
|
-
return
|
|
3425
|
+
return me(
|
|
3428
3426
|
// @ts-expect-error Index signature for type string is missing in type V[]
|
|
3429
3427
|
t,
|
|
3430
3428
|
[e],
|
|
@@ -3463,9 +3461,9 @@ function si(t, e, r) {
|
|
|
3463
3461
|
n[u].forEach(a);
|
|
3464
3462
|
});
|
|
3465
3463
|
}
|
|
3466
|
-
var
|
|
3467
|
-
function
|
|
3468
|
-
if (!t || typeof t != "object" ||
|
|
3464
|
+
var ra = Object.prototype.toString;
|
|
3465
|
+
function na(t) {
|
|
3466
|
+
if (!t || typeof t != "object" || ra.call(t) !== "[object Object]")
|
|
3469
3467
|
return !1;
|
|
3470
3468
|
var e = Object.getPrototypeOf(t);
|
|
3471
3469
|
if (e === null)
|
|
@@ -3475,7 +3473,7 @@ function ra(t) {
|
|
|
3475
3473
|
return r === e;
|
|
3476
3474
|
}
|
|
3477
3475
|
function Ut(t) {
|
|
3478
|
-
return typeof t == "object" && ($t(t) || Array.isArray(t) ||
|
|
3476
|
+
return typeof t == "object" && ($t(t) || Array.isArray(t) || na(t));
|
|
3479
3477
|
}
|
|
3480
3478
|
function zt(t, e) {
|
|
3481
3479
|
e = e || 0;
|
|
@@ -3488,11 +3486,11 @@ function yr(t) {
|
|
|
3488
3486
|
return zt(t);
|
|
3489
3487
|
var e = {};
|
|
3490
3488
|
for (var r in t)
|
|
3491
|
-
|
|
3489
|
+
ye.call(t, r) && (e[r] = t[r]);
|
|
3492
3490
|
return e;
|
|
3493
3491
|
}
|
|
3494
3492
|
function Sn(t, e, r) {
|
|
3495
|
-
return In(t, e,
|
|
3493
|
+
return In(t, e, oa(r));
|
|
3496
3494
|
}
|
|
3497
3495
|
function In(t, e, r) {
|
|
3498
3496
|
if (!Ut(t))
|
|
@@ -3504,19 +3502,19 @@ function In(t, e, r) {
|
|
|
3504
3502
|
for (var n = Array.isArray(t), o = t, i = n ? Gt : Ot, s = n ? function(u) {
|
|
3505
3503
|
o === t && (o = yr(o)), o.push(u);
|
|
3506
3504
|
} : function(u, c) {
|
|
3507
|
-
var l =
|
|
3505
|
+
var l = ye.call(o, c), f = l && r ? r(o[c], u, c) : u;
|
|
3508
3506
|
(!l || f !== o[c]) && (o === t && (o = yr(o)), o[c] = f);
|
|
3509
3507
|
}, a = 0; a < e.length; a++)
|
|
3510
3508
|
i(e[a]).forEach(s);
|
|
3511
3509
|
return o;
|
|
3512
3510
|
}
|
|
3513
|
-
function
|
|
3511
|
+
function oa(t) {
|
|
3514
3512
|
function e(r, n, o) {
|
|
3515
|
-
return Ut(r) && Ut(n) &&
|
|
3513
|
+
return Ut(r) && Ut(n) && ia(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
|
|
3516
3514
|
}
|
|
3517
3515
|
return e;
|
|
3518
3516
|
}
|
|
3519
|
-
function
|
|
3517
|
+
function ia(t, e) {
|
|
3520
3518
|
var r = ft(t), n = ft(e);
|
|
3521
3519
|
return Et(r) === Et(n) && W(r) === W(n);
|
|
3522
3520
|
}
|
|
@@ -3530,7 +3528,7 @@ function ui(t) {
|
|
|
3530
3528
|
}
|
|
3531
3529
|
function En(t) {
|
|
3532
3530
|
for (var e = [], r = arguments.length - 1; r-- > 0; ) e[r] = arguments[r + 1];
|
|
3533
|
-
return
|
|
3531
|
+
return me(
|
|
3534
3532
|
this,
|
|
3535
3533
|
t,
|
|
3536
3534
|
Nt(),
|
|
@@ -3541,23 +3539,23 @@ function En(t) {
|
|
|
3541
3539
|
}
|
|
3542
3540
|
function On(t) {
|
|
3543
3541
|
for (var e = [], r = arguments.length - 1; r-- > 0; ) e[r] = arguments[r + 1];
|
|
3544
|
-
return
|
|
3542
|
+
return me(this, t, Nt(), function(n) {
|
|
3545
3543
|
return In(n, e);
|
|
3546
3544
|
});
|
|
3547
3545
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3546
|
+
function sa(t, e, r) {
|
|
3547
|
+
return me(t, e, $, function() {
|
|
3550
3548
|
return r;
|
|
3551
3549
|
});
|
|
3552
3550
|
}
|
|
3553
3551
|
function kn(t, e) {
|
|
3554
|
-
return
|
|
3552
|
+
return sa(this, t, e);
|
|
3555
3553
|
}
|
|
3556
3554
|
function Dn(t, e, r) {
|
|
3557
3555
|
return arguments.length === 1 ? t(this) : ni(this, t, e, r);
|
|
3558
3556
|
}
|
|
3559
3557
|
function Rn(t, e, r) {
|
|
3560
|
-
return
|
|
3558
|
+
return me(this, t, e, r);
|
|
3561
3559
|
}
|
|
3562
3560
|
function zn() {
|
|
3563
3561
|
return this.__altered;
|
|
@@ -3578,7 +3576,7 @@ function Ce(t, e) {
|
|
|
3578
3576
|
function vt(t) {
|
|
3579
3577
|
Ce(t !== 1 / 0, "Cannot perform this action with an infinite size.");
|
|
3580
3578
|
}
|
|
3581
|
-
var
|
|
3579
|
+
var ge = /* @__PURE__ */ (function(t) {
|
|
3582
3580
|
function e(r) {
|
|
3583
3581
|
return r == null ? Nt() : An(r) && !Ct(r) ? r : Nt().withMutations(function(n) {
|
|
3584
3582
|
var o = t(r);
|
|
@@ -3605,9 +3603,9 @@ var me = /* @__PURE__ */ (function(t) {
|
|
|
3605
3603
|
}, e.prototype.clear = function() {
|
|
3606
3604
|
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : Nt();
|
|
3607
3605
|
}, e.prototype.sort = function(r) {
|
|
3608
|
-
return Mt(
|
|
3606
|
+
return Mt(ue(this, r));
|
|
3609
3607
|
}, e.prototype.sortBy = function(r, n) {
|
|
3610
|
-
return Mt(
|
|
3608
|
+
return Mt(ue(this, n, r));
|
|
3611
3609
|
}, e.prototype.map = function(r, n) {
|
|
3612
3610
|
var o = this;
|
|
3613
3611
|
return this.withMutations(function(i) {
|
|
@@ -3616,7 +3614,7 @@ var me = /* @__PURE__ */ (function(t) {
|
|
|
3616
3614
|
});
|
|
3617
3615
|
});
|
|
3618
3616
|
}, e.prototype.__iterator = function(r, n) {
|
|
3619
|
-
return new
|
|
3617
|
+
return new aa(this, r, n);
|
|
3620
3618
|
}, e.prototype.__iterate = function(r, n) {
|
|
3621
3619
|
var o = this, i = 0;
|
|
3622
3620
|
return this._root && this._root.iterate(function(s) {
|
|
@@ -3626,8 +3624,8 @@ var me = /* @__PURE__ */ (function(t) {
|
|
|
3626
3624
|
return r === this.__ownerID ? this : r ? Nn(this.size, this._root, r, this.__hash) : this.size === 0 ? Nt() : (this.__ownerID = r, this.__altered = !1, this);
|
|
3627
3625
|
}, e;
|
|
3628
3626
|
})(Ot);
|
|
3629
|
-
|
|
3630
|
-
var F =
|
|
3627
|
+
ge.isMap = An;
|
|
3628
|
+
var F = ge.prototype;
|
|
3631
3629
|
F[ci] = !0;
|
|
3632
3630
|
F[We] = F.remove;
|
|
3633
3631
|
F.removeAll = F.deleteAll;
|
|
@@ -3667,26 +3665,26 @@ Te.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3667
3665
|
if (f ? u[c][1] === o : a)
|
|
3668
3666
|
return this;
|
|
3669
3667
|
if (St(s), (a || !f) && St(i), !(a && u.length === 1)) {
|
|
3670
|
-
if (!f && !a && u.length >=
|
|
3671
|
-
return
|
|
3668
|
+
if (!f && !a && u.length >= pa)
|
|
3669
|
+
return ua(t, u, n, o);
|
|
3672
3670
|
var h = t && t === this.ownerID, d = h ? u : zt(u);
|
|
3673
3671
|
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new Te(t, d);
|
|
3674
3672
|
}
|
|
3675
3673
|
};
|
|
3676
|
-
var
|
|
3674
|
+
var ce = function(t, e, r) {
|
|
3677
3675
|
this.ownerID = t, this.bitmap = e, this.nodes = r;
|
|
3678
3676
|
};
|
|
3679
|
-
|
|
3677
|
+
ce.prototype.get = function(t, e, r, n) {
|
|
3680
3678
|
e === void 0 && (e = dt(r));
|
|
3681
3679
|
var o = 1 << ((t === 0 ? e : e >>> t) & ut), i = this.bitmap;
|
|
3682
3680
|
return (i & o) === 0 ? n : this.nodes[li(i & o - 1)].get(
|
|
3683
|
-
t +
|
|
3681
|
+
t + q,
|
|
3684
3682
|
e,
|
|
3685
3683
|
r,
|
|
3686
3684
|
n
|
|
3687
3685
|
);
|
|
3688
3686
|
};
|
|
3689
|
-
|
|
3687
|
+
ce.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3690
3688
|
r === void 0 && (r = dt(n));
|
|
3691
3689
|
var a = (e === 0 ? r : r >>> e) & ut, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
|
|
3692
3690
|
if (!l && o === $)
|
|
@@ -3694,7 +3692,7 @@ le.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3694
3692
|
var f = li(c & u - 1), h = this.nodes, d = l ? h[f] : void 0, y = Cn(
|
|
3695
3693
|
d,
|
|
3696
3694
|
t,
|
|
3697
|
-
e +
|
|
3695
|
+
e + q,
|
|
3698
3696
|
r,
|
|
3699
3697
|
n,
|
|
3700
3698
|
o,
|
|
@@ -3703,14 +3701,14 @@ le.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3703
3701
|
);
|
|
3704
3702
|
if (y === d)
|
|
3705
3703
|
return this;
|
|
3706
|
-
if (!l && y && h.length >=
|
|
3707
|
-
return
|
|
3704
|
+
if (!l && y && h.length >= da)
|
|
3705
|
+
return la(t, h, c, a, y);
|
|
3708
3706
|
if (l && !y && h.length === 2 && fo(h[f ^ 1]))
|
|
3709
3707
|
return h[f ^ 1];
|
|
3710
3708
|
if (l && y && h.length === 1 && fo(y))
|
|
3711
3709
|
return y;
|
|
3712
|
-
var _ = t && t === this.ownerID, k = l ? y ? c : c ^ u : c | u, j = l ? y ? fi(h, f, y, _) :
|
|
3713
|
-
return _ ? (this.bitmap = k, this.nodes = j, this) : new
|
|
3710
|
+
var _ = t && t === this.ownerID, k = l ? y ? c : c ^ u : c | u, j = l ? y ? fi(h, f, y, _) : ha(h, f, _) : fa(h, f, y, _);
|
|
3711
|
+
return _ ? (this.bitmap = k, this.nodes = j, this) : new ce(t, k, j);
|
|
3714
3712
|
};
|
|
3715
3713
|
var Pe = function(t, e, r) {
|
|
3716
3714
|
this.ownerID = t, this.count = e, this.nodes = r;
|
|
@@ -3718,7 +3716,7 @@ var Pe = function(t, e, r) {
|
|
|
3718
3716
|
Pe.prototype.get = function(t, e, r, n) {
|
|
3719
3717
|
e === void 0 && (e = dt(r));
|
|
3720
3718
|
var o = (t === 0 ? e : e >>> t) & ut, i = this.nodes[o];
|
|
3721
|
-
return i ? i.get(t +
|
|
3719
|
+
return i ? i.get(t + q, e, r, n) : n;
|
|
3722
3720
|
};
|
|
3723
3721
|
Pe.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3724
3722
|
r === void 0 && (r = dt(n));
|
|
@@ -3728,7 +3726,7 @@ Pe.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3728
3726
|
var f = Cn(
|
|
3729
3727
|
l,
|
|
3730
3728
|
t,
|
|
3731
|
-
e +
|
|
3729
|
+
e + q,
|
|
3732
3730
|
r,
|
|
3733
3731
|
n,
|
|
3734
3732
|
o,
|
|
@@ -3740,21 +3738,21 @@ Pe.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3740
3738
|
var h = this.count;
|
|
3741
3739
|
if (!l)
|
|
3742
3740
|
h++;
|
|
3743
|
-
else if (!f && (h--, h <
|
|
3744
|
-
return
|
|
3741
|
+
else if (!f && (h--, h < va))
|
|
3742
|
+
return ca(t, c, h, a);
|
|
3745
3743
|
var d = t && t === this.ownerID, y = fi(c, a, f, d);
|
|
3746
3744
|
return d ? (this.count = h, this.nodes = y, this) : new Pe(t, h, y);
|
|
3747
3745
|
};
|
|
3748
|
-
var
|
|
3746
|
+
var le = function(t, e, r) {
|
|
3749
3747
|
this.ownerID = t, this.keyHash = e, this.entries = r;
|
|
3750
3748
|
};
|
|
3751
|
-
|
|
3749
|
+
le.prototype.get = function(t, e, r, n) {
|
|
3752
3750
|
for (var o = this.entries, i = 0, s = o.length; i < s; i++)
|
|
3753
3751
|
if (_t(r, o[i][0]))
|
|
3754
3752
|
return o[i][1];
|
|
3755
3753
|
return n;
|
|
3756
3754
|
};
|
|
3757
|
-
|
|
3755
|
+
le.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3758
3756
|
r === void 0 && (r = dt(n));
|
|
3759
3757
|
var a = o === $;
|
|
3760
3758
|
if (r !== this.keyHash)
|
|
@@ -3767,7 +3765,7 @@ fe.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3767
3765
|
if (St(s), (a || !f) && St(i), a && l === 2)
|
|
3768
3766
|
return new xt(t, this.keyHash, u[c ^ 1]);
|
|
3769
3767
|
var h = t && t === this.ownerID, d = h ? u : zt(u);
|
|
3770
|
-
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new
|
|
3768
|
+
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new le(t, this.keyHash, d);
|
|
3771
3769
|
};
|
|
3772
3770
|
var xt = function(t, e, r) {
|
|
3773
3771
|
this.ownerID = t, this.keyHash = e, this.entry = r;
|
|
@@ -3785,12 +3783,12 @@ xt.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3785
3783
|
}
|
|
3786
3784
|
return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new xt(t, this.keyHash, [n, o]) : (St(i), $n(this, t, e, dt(n), [n, o]));
|
|
3787
3785
|
};
|
|
3788
|
-
Te.prototype.iterate =
|
|
3786
|
+
Te.prototype.iterate = le.prototype.iterate = function(t, e) {
|
|
3789
3787
|
for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
|
|
3790
3788
|
if (t(r[e ? o - n : n]) === !1)
|
|
3791
3789
|
return !1;
|
|
3792
3790
|
};
|
|
3793
|
-
|
|
3791
|
+
ce.prototype.iterate = Pe.prototype.iterate = function(t, e) {
|
|
3794
3792
|
for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
|
|
3795
3793
|
var i = r[e ? o - n : n];
|
|
3796
3794
|
if (i && i.iterate(t, e) === !1)
|
|
@@ -3800,7 +3798,7 @@ le.prototype.iterate = Pe.prototype.iterate = function(t, e) {
|
|
|
3800
3798
|
xt.prototype.iterate = function(t, e) {
|
|
3801
3799
|
return t(this.entry);
|
|
3802
3800
|
};
|
|
3803
|
-
var
|
|
3801
|
+
var aa = /* @__PURE__ */ (function(t) {
|
|
3804
3802
|
function e(r, n, o) {
|
|
3805
3803
|
this._type = n, this._reverse = o, this._stack = r._root && uo(r._root);
|
|
3806
3804
|
}
|
|
@@ -3809,10 +3807,10 @@ var sa = /* @__PURE__ */ (function(t) {
|
|
|
3809
3807
|
var o = n.node, i = n.index++, s = void 0;
|
|
3810
3808
|
if (o.entry) {
|
|
3811
3809
|
if (i === 0)
|
|
3812
|
-
return
|
|
3810
|
+
return Vr(r, o.entry);
|
|
3813
3811
|
} else if (o.entries) {
|
|
3814
3812
|
if (s = o.entries.length - 1, i <= s)
|
|
3815
|
-
return
|
|
3813
|
+
return Vr(
|
|
3816
3814
|
r,
|
|
3817
3815
|
o.entries[this._reverse ? s - i : i]
|
|
3818
3816
|
);
|
|
@@ -3820,7 +3818,7 @@ var sa = /* @__PURE__ */ (function(t) {
|
|
|
3820
3818
|
var a = o.nodes[this._reverse ? s - i : i];
|
|
3821
3819
|
if (a) {
|
|
3822
3820
|
if (a.entry)
|
|
3823
|
-
return
|
|
3821
|
+
return Vr(r, a.entry);
|
|
3824
3822
|
n = this._stack = uo(a, n);
|
|
3825
3823
|
}
|
|
3826
3824
|
continue;
|
|
@@ -3830,7 +3828,7 @@ var sa = /* @__PURE__ */ (function(t) {
|
|
|
3830
3828
|
return ct();
|
|
3831
3829
|
}, e;
|
|
3832
3830
|
})(x);
|
|
3833
|
-
function
|
|
3831
|
+
function Vr(t, e) {
|
|
3834
3832
|
return K(t, e[0], e[1]);
|
|
3835
3833
|
}
|
|
3836
3834
|
function uo(t, e) {
|
|
@@ -3883,15 +3881,15 @@ function Cn(t, e, r, n, o, i, s, a) {
|
|
|
3883
3881
|
) : i === $ ? t : (St(a), St(s), new xt(e, n, [o, i]));
|
|
3884
3882
|
}
|
|
3885
3883
|
function fo(t) {
|
|
3886
|
-
return t.constructor === xt || t.constructor ===
|
|
3884
|
+
return t.constructor === xt || t.constructor === le;
|
|
3887
3885
|
}
|
|
3888
3886
|
function $n(t, e, r, n, o) {
|
|
3889
3887
|
if (t.keyHash === n)
|
|
3890
|
-
return new
|
|
3891
|
-
var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & ut, s = (r === 0 ? n : n >>> r) & ut, a, u = i === s ? [$n(t, e, r +
|
|
3892
|
-
return new
|
|
3888
|
+
return new le(e, n, [t.entry, o]);
|
|
3889
|
+
var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & ut, s = (r === 0 ? n : n >>> r) & ut, a, u = i === s ? [$n(t, e, r + q, n, o)] : (a = new xt(e, n, o), i < s ? [t, a] : [a, t]);
|
|
3890
|
+
return new ce(e, 1 << i | 1 << s, u);
|
|
3893
3891
|
}
|
|
3894
|
-
function
|
|
3892
|
+
function ua(t, e, r, n) {
|
|
3895
3893
|
t || (t = new hn());
|
|
3896
3894
|
for (var o = new xt(t, dt(r), [r, n]), i = 0; i < e.length; i++) {
|
|
3897
3895
|
var s = e[i];
|
|
@@ -3899,14 +3897,14 @@ function aa(t, e, r, n) {
|
|
|
3899
3897
|
}
|
|
3900
3898
|
return o;
|
|
3901
3899
|
}
|
|
3902
|
-
function
|
|
3900
|
+
function ca(t, e, r, n) {
|
|
3903
3901
|
for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
|
|
3904
3902
|
var l = e[a];
|
|
3905
3903
|
l !== void 0 && a !== n && (o |= u, s[i++] = l);
|
|
3906
3904
|
}
|
|
3907
|
-
return new
|
|
3905
|
+
return new ce(t, o, s);
|
|
3908
3906
|
}
|
|
3909
|
-
function
|
|
3907
|
+
function la(t, e, r, n, o) {
|
|
3910
3908
|
for (var i = 0, s = new Array(yt), a = 0; r !== 0; a++, r >>>= 1)
|
|
3911
3909
|
s[a] = r & 1 ? e[i++] : void 0;
|
|
3912
3910
|
return s[n] = o, new Pe(t, i + 1, s);
|
|
@@ -3918,7 +3916,7 @@ function fi(t, e, r, n) {
|
|
|
3918
3916
|
var o = n ? t : zt(t);
|
|
3919
3917
|
return o[e] = r, o;
|
|
3920
3918
|
}
|
|
3921
|
-
function
|
|
3919
|
+
function fa(t, e, r, n) {
|
|
3922
3920
|
var o = t.length + 1;
|
|
3923
3921
|
if (n && e + 1 === o)
|
|
3924
3922
|
return t[e] = r, t;
|
|
@@ -3926,7 +3924,7 @@ function la(t, e, r, n) {
|
|
|
3926
3924
|
a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
|
|
3927
3925
|
return i;
|
|
3928
3926
|
}
|
|
3929
|
-
function
|
|
3927
|
+
function ha(t, e, r) {
|
|
3930
3928
|
var n = t.length - 1;
|
|
3931
3929
|
if (r && e === n)
|
|
3932
3930
|
return t.pop(), t;
|
|
@@ -3934,7 +3932,7 @@ function fa(t, e, r) {
|
|
|
3934
3932
|
s === e && (i = 1), o[s] = t[s + i];
|
|
3935
3933
|
return o;
|
|
3936
3934
|
}
|
|
3937
|
-
var
|
|
3935
|
+
var pa = yt / 4, da = yt / 2, va = yt / 4;
|
|
3938
3936
|
function hi(t) {
|
|
3939
3937
|
if (Wo(t) && typeof t != "string")
|
|
3940
3938
|
return t;
|
|
@@ -3942,24 +3940,24 @@ function hi(t) {
|
|
|
3942
3940
|
return t.toArray();
|
|
3943
3941
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
|
|
3944
3942
|
}
|
|
3945
|
-
function
|
|
3943
|
+
function Ve(t) {
|
|
3946
3944
|
try {
|
|
3947
3945
|
return typeof t == "string" ? JSON.stringify(t) : String(t);
|
|
3948
3946
|
} catch {
|
|
3949
3947
|
return JSON.stringify(t);
|
|
3950
3948
|
}
|
|
3951
3949
|
}
|
|
3952
|
-
function
|
|
3950
|
+
function ya(t, e) {
|
|
3953
3951
|
return $t(t) ? (
|
|
3954
3952
|
// @ts-expect-error key might be a number or symbol, which is not handled be Record key type
|
|
3955
3953
|
t.has(e)
|
|
3956
3954
|
) : (
|
|
3957
3955
|
// @ts-expect-error key might be anything else than PropertyKey, and will return false in that case but runtime is OK
|
|
3958
|
-
Ut(t) &&
|
|
3956
|
+
Ut(t) && ye.call(t, e)
|
|
3959
3957
|
);
|
|
3960
3958
|
}
|
|
3961
3959
|
function pi(t, e, r) {
|
|
3962
|
-
return $t(t) ? t.get(e, r) :
|
|
3960
|
+
return $t(t) ? t.get(e, r) : ya(t, e) ? (
|
|
3963
3961
|
// @ts-expect-error weird "get" here,
|
|
3964
3962
|
typeof t.get == "function" ? (
|
|
3965
3963
|
// @ts-expect-error weird "get" here,
|
|
@@ -3970,7 +3968,7 @@ function pi(t, e, r) {
|
|
|
3970
3968
|
)
|
|
3971
3969
|
) : r;
|
|
3972
3970
|
}
|
|
3973
|
-
function
|
|
3971
|
+
function _a(t, e) {
|
|
3974
3972
|
if (!Ut(t))
|
|
3975
3973
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3976
3974
|
if ($t(t)) {
|
|
@@ -3978,12 +3976,12 @@ function ya(t, e) {
|
|
|
3978
3976
|
throw new TypeError("Cannot update immutable value without .remove() method: " + t);
|
|
3979
3977
|
return t.remove(e);
|
|
3980
3978
|
}
|
|
3981
|
-
if (!
|
|
3979
|
+
if (!ye.call(t, e))
|
|
3982
3980
|
return t;
|
|
3983
3981
|
var r = yr(t);
|
|
3984
3982
|
return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
|
|
3985
3983
|
}
|
|
3986
|
-
function
|
|
3984
|
+
function ga(t, e, r) {
|
|
3987
3985
|
if (!Ut(t))
|
|
3988
3986
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3989
3987
|
if ($t(t)) {
|
|
@@ -3991,12 +3989,12 @@ function _a(t, e, r) {
|
|
|
3991
3989
|
throw new TypeError("Cannot update immutable value without .set() method: " + t);
|
|
3992
3990
|
return t.set(e, r);
|
|
3993
3991
|
}
|
|
3994
|
-
if (
|
|
3992
|
+
if (ye.call(t, e) && r === t[e])
|
|
3995
3993
|
return t;
|
|
3996
3994
|
var n = yr(t);
|
|
3997
3995
|
return n[e] = r, n;
|
|
3998
3996
|
}
|
|
3999
|
-
function
|
|
3997
|
+
function me(t, e, r, n) {
|
|
4000
3998
|
n || (n = r, r = void 0);
|
|
4001
3999
|
var o = di(
|
|
4002
4000
|
$t(t),
|
|
@@ -4016,7 +4014,7 @@ function di(t, e, r, n, o, i) {
|
|
|
4016
4014
|
return u === a ? e : u;
|
|
4017
4015
|
}
|
|
4018
4016
|
if (!s && !Ut(e))
|
|
4019
|
-
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(
|
|
4017
|
+
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Ve) + "]: " + e);
|
|
4020
4018
|
var c = r[n], l = s ? $ : pi(e, c, $), f = di(
|
|
4021
4019
|
l === $ ? t : $t(l),
|
|
4022
4020
|
// @ts-expect-error mixed type
|
|
@@ -4026,15 +4024,15 @@ function di(t, e, r, n, o, i) {
|
|
|
4026
4024
|
o,
|
|
4027
4025
|
i
|
|
4028
4026
|
);
|
|
4029
|
-
return f === l ? e : f === $ ?
|
|
4027
|
+
return f === l ? e : f === $ ? _a(e, c) : ga(s ? t ? Nt() : {} : e, c, f);
|
|
4030
4028
|
}
|
|
4031
|
-
function
|
|
4032
|
-
return
|
|
4029
|
+
function ma(t, e) {
|
|
4030
|
+
return me(t, e, function() {
|
|
4033
4031
|
return $;
|
|
4034
4032
|
});
|
|
4035
4033
|
}
|
|
4036
4034
|
function jn(t) {
|
|
4037
|
-
return
|
|
4035
|
+
return ma(this, t);
|
|
4038
4036
|
}
|
|
4039
4037
|
var vi = "@@__IMMUTABLE_LIST__@@";
|
|
4040
4038
|
function yi(t) {
|
|
@@ -4049,7 +4047,7 @@ var Dr = /* @__PURE__ */ (function(t) {
|
|
|
4049
4047
|
if (yi(r))
|
|
4050
4048
|
return r;
|
|
4051
4049
|
var o = t(r), i = o.size;
|
|
4052
|
-
return i === 0 ? n : (vt(i), i > 0 && i < yt ?
|
|
4050
|
+
return i === 0 ? n : (vt(i), i > 0 && i < yt ? qe(0, i, q, null, new Vt(o.toArray())) : n.withMutations(function(s) {
|
|
4053
4051
|
s.setSize(i), o.forEach(function(a, u) {
|
|
4054
4052
|
return s.set(u, a);
|
|
4055
4053
|
});
|
|
@@ -4060,20 +4058,20 @@ var Dr = /* @__PURE__ */ (function(t) {
|
|
|
4060
4058
|
}, e.prototype.toString = function() {
|
|
4061
4059
|
return this.__toString("List [", "]");
|
|
4062
4060
|
}, e.prototype.get = function(r, n) {
|
|
4063
|
-
if (r =
|
|
4061
|
+
if (r = qt(this, r), r >= 0 && r < this.size) {
|
|
4064
4062
|
r += this._origin;
|
|
4065
4063
|
var o = _i(this, r);
|
|
4066
4064
|
return o && o.array[r & ut];
|
|
4067
4065
|
}
|
|
4068
4066
|
return n;
|
|
4069
4067
|
}, e.prototype.set = function(r, n) {
|
|
4070
|
-
return
|
|
4068
|
+
return wa(this, r, n);
|
|
4071
4069
|
}, e.prototype.remove = function(r) {
|
|
4072
4070
|
return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
|
|
4073
4071
|
}, e.prototype.insert = function(r, n) {
|
|
4074
4072
|
return this.splice(r, 0, n);
|
|
4075
4073
|
}, e.prototype.clear = function() {
|
|
4076
|
-
return this.size === 0 ? this : this.__ownerID ? (this.size = this._origin = this._capacity = 0, this._level =
|
|
4074
|
+
return this.size === 0 ? this : this.__ownerID ? (this.size = this._origin = this._capacity = 0, this._level = q, this._root = this._tail = this.__hash = void 0, this.__altered = !0, this) : ar();
|
|
4077
4075
|
}, e.prototype.push = function() {
|
|
4078
4076
|
var r = arguments, n = this.size;
|
|
4079
4077
|
return this.withMutations(function(o) {
|
|
@@ -4100,7 +4098,7 @@ var Dr = /* @__PURE__ */ (function(t) {
|
|
|
4100
4098
|
}, e.prototype.concat = function() {
|
|
4101
4099
|
for (var r = arguments, n = [], o = 0; o < arguments.length; o++) {
|
|
4102
4100
|
var i = r[o], s = t(
|
|
4103
|
-
typeof i != "string" &&
|
|
4101
|
+
typeof i != "string" && Vo(i) ? i : [i]
|
|
4104
4102
|
);
|
|
4105
4103
|
s.size !== 0 && n.push(s);
|
|
4106
4104
|
}
|
|
@@ -4137,7 +4135,7 @@ var Dr = /* @__PURE__ */ (function(t) {
|
|
|
4137
4135
|
;
|
|
4138
4136
|
return o;
|
|
4139
4137
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4140
|
-
return r === this.__ownerID ? this : r ?
|
|
4138
|
+
return r === this.__ownerID ? this : r ? qe(
|
|
4141
4139
|
this._origin,
|
|
4142
4140
|
this._capacity,
|
|
4143
4141
|
this._level,
|
|
@@ -4169,31 +4167,31 @@ Y["@@transducer/step"] = function(t, e) {
|
|
|
4169
4167
|
Y["@@transducer/result"] = function(t) {
|
|
4170
4168
|
return t.asImmutable();
|
|
4171
4169
|
};
|
|
4172
|
-
var
|
|
4170
|
+
var Vt = function(t, e) {
|
|
4173
4171
|
this.array = t, this.ownerID = e;
|
|
4174
4172
|
};
|
|
4175
|
-
|
|
4176
|
-
if ((r & (1 << e +
|
|
4173
|
+
Vt.prototype.removeBefore = function(t, e, r) {
|
|
4174
|
+
if ((r & (1 << e + q) - 1) === 0 || this.array.length === 0)
|
|
4177
4175
|
return this;
|
|
4178
4176
|
var n = r >>> e & ut;
|
|
4179
4177
|
if (n >= this.array.length)
|
|
4180
|
-
return new
|
|
4178
|
+
return new Vt([], t);
|
|
4181
4179
|
var o = n === 0, i;
|
|
4182
4180
|
if (e > 0) {
|
|
4183
4181
|
var s = this.array[n];
|
|
4184
|
-
if (i = s && s.removeBefore(t, e -
|
|
4182
|
+
if (i = s && s.removeBefore(t, e - q, r), i === s && o)
|
|
4185
4183
|
return this;
|
|
4186
4184
|
}
|
|
4187
4185
|
if (o && !i)
|
|
4188
4186
|
return this;
|
|
4189
|
-
var a =
|
|
4187
|
+
var a = fe(this, t);
|
|
4190
4188
|
if (!o)
|
|
4191
4189
|
for (var u = 0; u < n; u++)
|
|
4192
4190
|
a.array[u] = void 0;
|
|
4193
4191
|
return i && (a.array[n] = i), a;
|
|
4194
4192
|
};
|
|
4195
|
-
|
|
4196
|
-
if (r === (e ? 1 << e +
|
|
4193
|
+
Vt.prototype.removeAfter = function(t, e, r) {
|
|
4194
|
+
if (r === (e ? 1 << e + q : yt) || this.array.length === 0)
|
|
4197
4195
|
return this;
|
|
4198
4196
|
var n = r - 1 >>> e & ut;
|
|
4199
4197
|
if (n >= this.array.length)
|
|
@@ -4201,10 +4199,10 @@ qt.prototype.removeAfter = function(t, e, r) {
|
|
|
4201
4199
|
var o;
|
|
4202
4200
|
if (e > 0) {
|
|
4203
4201
|
var i = this.array[n];
|
|
4204
|
-
if (o = i && i.removeAfter(t, e -
|
|
4202
|
+
if (o = i && i.removeAfter(t, e - q, r), o === i && n === this.array.length - 1)
|
|
4205
4203
|
return this;
|
|
4206
4204
|
}
|
|
4207
|
-
var s =
|
|
4205
|
+
var s = fe(this, t);
|
|
4208
4206
|
return s.array.splice(n + 1), o && (s.array[n] = o), s;
|
|
4209
4207
|
};
|
|
4210
4208
|
var $e = {};
|
|
@@ -4238,22 +4236,22 @@ function ho(t, e) {
|
|
|
4238
4236
|
var j = e ? --_ : y++;
|
|
4239
4237
|
h = s(
|
|
4240
4238
|
d && d[j],
|
|
4241
|
-
l -
|
|
4239
|
+
l - q,
|
|
4242
4240
|
f + (j << l)
|
|
4243
4241
|
);
|
|
4244
4242
|
}
|
|
4245
4243
|
};
|
|
4246
4244
|
}
|
|
4247
4245
|
}
|
|
4248
|
-
function
|
|
4246
|
+
function qe(t, e, r, n, o, i, s) {
|
|
4249
4247
|
var a = Object.create(Y);
|
|
4250
4248
|
return a.size = e - t, a._origin = t, a._capacity = e, a._level = r, a._root = n, a._tail = o, a.__ownerID = i, a.__hash = s, a.__altered = !1, a;
|
|
4251
4249
|
}
|
|
4252
4250
|
function ar() {
|
|
4253
|
-
return
|
|
4251
|
+
return qe(0, 0, q);
|
|
4254
4252
|
}
|
|
4255
|
-
function
|
|
4256
|
-
if (e =
|
|
4253
|
+
function wa(t, e, r) {
|
|
4254
|
+
if (e = qt(t, e), e !== e)
|
|
4257
4255
|
return t;
|
|
4258
4256
|
if (e >= t.size || e < 0)
|
|
4259
4257
|
return t.withMutations(function(s) {
|
|
@@ -4268,7 +4266,7 @@ function ma(t, e, r) {
|
|
|
4268
4266
|
e,
|
|
4269
4267
|
r,
|
|
4270
4268
|
i
|
|
4271
|
-
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) :
|
|
4269
|
+
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : qe(t._origin, t._capacity, t._level, o, n) : t;
|
|
4272
4270
|
}
|
|
4273
4271
|
function on(t, e, r, n, o, i) {
|
|
4274
4272
|
var s = n >>> r & ut, a = t && s < t.array.length;
|
|
@@ -4279,24 +4277,24 @@ function on(t, e, r, n, o, i) {
|
|
|
4279
4277
|
var c = t && t.array[s], l = on(
|
|
4280
4278
|
c,
|
|
4281
4279
|
e,
|
|
4282
|
-
r -
|
|
4280
|
+
r - q,
|
|
4283
4281
|
n,
|
|
4284
4282
|
o,
|
|
4285
4283
|
i
|
|
4286
4284
|
);
|
|
4287
|
-
return l === c ? t : (u =
|
|
4285
|
+
return l === c ? t : (u = fe(t, e), u.array[s] = l, u);
|
|
4288
4286
|
}
|
|
4289
|
-
return a && t.array[s] === o ? t : (i && St(i), u =
|
|
4287
|
+
return a && t.array[s] === o ? t : (i && St(i), u = fe(t, e), o === void 0 && s === u.array.length - 1 ? u.array.pop() : u.array[s] = o, u);
|
|
4290
4288
|
}
|
|
4291
|
-
function
|
|
4292
|
-
return e && t && e === t.ownerID ? t : new
|
|
4289
|
+
function fe(t, e) {
|
|
4290
|
+
return e && t && e === t.ownerID ? t : new Vt(t ? t.array.slice() : [], e);
|
|
4293
4291
|
}
|
|
4294
4292
|
function _i(t, e) {
|
|
4295
4293
|
if (e >= Le(t._capacity))
|
|
4296
4294
|
return t._tail;
|
|
4297
|
-
if (e < 1 << t._level +
|
|
4295
|
+
if (e < 1 << t._level + q) {
|
|
4298
4296
|
for (var r = t._root, n = t._level; r && n > 0; )
|
|
4299
|
-
r = r.array[e >>> n & ut], n -=
|
|
4297
|
+
r = r.array[e >>> n & ut], n -= q;
|
|
4300
4298
|
return r;
|
|
4301
4299
|
}
|
|
4302
4300
|
}
|
|
@@ -4308,33 +4306,33 @@ function Pt(t, e, r) {
|
|
|
4308
4306
|
if (s >= a)
|
|
4309
4307
|
return t.clear();
|
|
4310
4308
|
for (var u = t._level, c = t._root, l = 0; s + l < 0; )
|
|
4311
|
-
c = new
|
|
4309
|
+
c = new Vt(
|
|
4312
4310
|
c && c.array.length ? [void 0, c] : [],
|
|
4313
4311
|
n
|
|
4314
|
-
), u +=
|
|
4312
|
+
), u += q, l += 1 << u;
|
|
4315
4313
|
l && (s += l, o += l, a += l, i += l);
|
|
4316
|
-
for (var f = Le(i), h = Le(a); h >= 1 << u +
|
|
4317
|
-
c = new
|
|
4314
|
+
for (var f = Le(i), h = Le(a); h >= 1 << u + q; )
|
|
4315
|
+
c = new Vt(
|
|
4318
4316
|
c && c.array.length ? [c] : [],
|
|
4319
4317
|
n
|
|
4320
|
-
), u +=
|
|
4321
|
-
var d = t._tail, y = h < f ? _i(t, a - 1) : h > f ? new
|
|
4318
|
+
), u += q;
|
|
4319
|
+
var d = t._tail, y = h < f ? _i(t, a - 1) : h > f ? new Vt([], n) : d;
|
|
4322
4320
|
if (d && h > f && s < i && d.array.length) {
|
|
4323
|
-
c =
|
|
4324
|
-
for (var _ = c, k = u; k >
|
|
4321
|
+
c = fe(c, n);
|
|
4322
|
+
for (var _ = c, k = u; k > q; k -= q) {
|
|
4325
4323
|
var j = f >>> k & ut;
|
|
4326
|
-
_ = _.array[j] =
|
|
4324
|
+
_ = _.array[j] = fe(_.array[j], n);
|
|
4327
4325
|
}
|
|
4328
|
-
_.array[f >>>
|
|
4326
|
+
_.array[f >>> q & ut] = d;
|
|
4329
4327
|
}
|
|
4330
4328
|
if (a < i && (y = y && y.removeAfter(n, 0, a)), s >= h)
|
|
4331
|
-
s -= h, a -= h, u =
|
|
4329
|
+
s -= h, a -= h, u = q, c = null, y = y && y.removeBefore(n, 0, s);
|
|
4332
4330
|
else if (s > o || h < f) {
|
|
4333
4331
|
for (l = 0; c; ) {
|
|
4334
4332
|
var st = s >>> u & ut;
|
|
4335
4333
|
if (st !== h >>> u & ut)
|
|
4336
4334
|
break;
|
|
4337
|
-
st && (l += (1 << u) * st), u -=
|
|
4335
|
+
st && (l += (1 << u) * st), u -= q, c = c.array[st];
|
|
4338
4336
|
}
|
|
4339
4337
|
c && s > o && (c = c.removeBefore(n, u, s - l)), c && h < f && (c = c.removeAfter(
|
|
4340
4338
|
n,
|
|
@@ -4342,10 +4340,10 @@ function Pt(t, e, r) {
|
|
|
4342
4340
|
h - l
|
|
4343
4341
|
)), l && (s -= l, a -= l);
|
|
4344
4342
|
}
|
|
4345
|
-
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) :
|
|
4343
|
+
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : qe(s, a, u, c, y);
|
|
4346
4344
|
}
|
|
4347
4345
|
function Le(t) {
|
|
4348
|
-
return t < yt ? 0 : t - 1 >>>
|
|
4346
|
+
return t < yt ? 0 : t - 1 >>> q << q;
|
|
4349
4347
|
}
|
|
4350
4348
|
function gi(t) {
|
|
4351
4349
|
return An(t) && Ct(t);
|
|
@@ -4388,7 +4386,7 @@ var Mt = /* @__PURE__ */ (function(t) {
|
|
|
4388
4386
|
var n = this._map.__ensureOwner(r), o = this._list.__ensureOwner(r);
|
|
4389
4387
|
return r ? xn(n, o, r, this.__hash) : this.size === 0 ? Oe() : (this.__ownerID = r, this.__altered = !1, this._map = n, this._list = o, this);
|
|
4390
4388
|
}, e;
|
|
4391
|
-
})(
|
|
4389
|
+
})(ge);
|
|
4392
4390
|
Mt.isOrderedMap = gi;
|
|
4393
4391
|
Mt.prototype[Lt] = !0;
|
|
4394
4392
|
Mt.prototype[We] = Mt.prototype.remove;
|
|
@@ -4433,7 +4431,7 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4433
4431
|
return this.__toString("Stack [", "]");
|
|
4434
4432
|
}, e.prototype.get = function(r, n) {
|
|
4435
4433
|
var o = this._head;
|
|
4436
|
-
for (r =
|
|
4434
|
+
for (r = qt(this, r); o && r--; )
|
|
4437
4435
|
o = o.next;
|
|
4438
4436
|
return o ? o.value : n;
|
|
4439
4437
|
}, e.prototype.peek = function() {
|
|
@@ -4483,7 +4481,7 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4483
4481
|
}, e.prototype.__iterate = function(r, n) {
|
|
4484
4482
|
var o = this;
|
|
4485
4483
|
if (n)
|
|
4486
|
-
return new
|
|
4484
|
+
return new ae(this.toArray()).__iterate(
|
|
4487
4485
|
function(a, u) {
|
|
4488
4486
|
return r(a, u, o);
|
|
4489
4487
|
},
|
|
@@ -4494,7 +4492,7 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4494
4492
|
return i;
|
|
4495
4493
|
}, e.prototype.__iterator = function(r, n) {
|
|
4496
4494
|
if (n)
|
|
4497
|
-
return new
|
|
4495
|
+
return new ae(this.toArray()).__iterator(r, n);
|
|
4498
4496
|
var o = 0, i = this._head;
|
|
4499
4497
|
return new x(function() {
|
|
4500
4498
|
if (i) {
|
|
@@ -4534,13 +4532,13 @@ function _o(t, e, r, n, o, i) {
|
|
|
4534
4532
|
o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
|
|
4535
4533
|
}, i), r;
|
|
4536
4534
|
}
|
|
4537
|
-
function
|
|
4535
|
+
function ba(t, e) {
|
|
4538
4536
|
return e;
|
|
4539
4537
|
}
|
|
4540
|
-
function
|
|
4538
|
+
function Sa(t, e) {
|
|
4541
4539
|
return [e, t];
|
|
4542
4540
|
}
|
|
4543
|
-
function
|
|
4541
|
+
function qr(t) {
|
|
4544
4542
|
return function() {
|
|
4545
4543
|
for (var e = [], r = arguments.length; r--; ) e[r] = arguments[r];
|
|
4546
4544
|
return !t.apply(this, e);
|
|
@@ -4603,7 +4601,7 @@ function wi(t, e) {
|
|
|
4603
4601
|
return s && // @ts-expect-error size should exists on Collection
|
|
4604
4602
|
t.size === a;
|
|
4605
4603
|
}
|
|
4606
|
-
var
|
|
4604
|
+
var Ia = /* @__PURE__ */ (function(t) {
|
|
4607
4605
|
function e(r, n, o) {
|
|
4608
4606
|
if (o === void 0 && (o = 1), !(this instanceof e))
|
|
4609
4607
|
return new e(r, n, o);
|
|
@@ -4622,7 +4620,7 @@ var Sa = /* @__PURE__ */ (function(t) {
|
|
|
4622
4620
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toString = function() {
|
|
4623
4621
|
return this.size === 0 ? "Range []" : "Range [ " + this._start + "..." + this._end + (this._step !== 1 ? " by " + this._step : "") + " ]";
|
|
4624
4622
|
}, e.prototype.get = function(r, n) {
|
|
4625
|
-
return this.has(r) ? this._start +
|
|
4623
|
+
return this.has(r) ? this._start + qt(this, r) * this._step : n;
|
|
4626
4624
|
}, e.prototype.includes = function(r) {
|
|
4627
4625
|
var n = (r - this._start) / this._step;
|
|
4628
4626
|
return n >= 0 && n < this.size && n === Math.floor(n);
|
|
@@ -4743,9 +4741,9 @@ var Rr = /* @__PURE__ */ (function(t) {
|
|
|
4743
4741
|
});
|
|
4744
4742
|
});
|
|
4745
4743
|
}, e.prototype.sort = function(r) {
|
|
4746
|
-
return Ue(
|
|
4744
|
+
return Ue(ue(this, r));
|
|
4747
4745
|
}, e.prototype.sortBy = function(r, n) {
|
|
4748
|
-
return Ue(
|
|
4746
|
+
return Ue(ue(this, n, r));
|
|
4749
4747
|
}, e.prototype.wasAltered = function() {
|
|
4750
4748
|
return this._map.wasAltered();
|
|
4751
4749
|
}, e.prototype.__iterate = function(r, n) {
|
|
@@ -4761,7 +4759,7 @@ var Rr = /* @__PURE__ */ (function(t) {
|
|
|
4761
4759
|
var n = this._map.__ensureOwner(r);
|
|
4762
4760
|
return r ? this.__make(n, r) : this.size === 0 ? this.__empty() : (this.__ownerID = r, this._map = n, this);
|
|
4763
4761
|
}, e;
|
|
4764
|
-
})(
|
|
4762
|
+
})(de);
|
|
4765
4763
|
Rr.isSet = Tn;
|
|
4766
4764
|
var rt = Rr.prototype;
|
|
4767
4765
|
rt[bi] = !0;
|
|
@@ -4798,11 +4796,11 @@ function Ii(t, e, r) {
|
|
|
4798
4796
|
function Ei(t, e) {
|
|
4799
4797
|
return Ii(this, t, e);
|
|
4800
4798
|
}
|
|
4801
|
-
function
|
|
4799
|
+
function Ea(t, e) {
|
|
4802
4800
|
return Ii(t, e, $) !== $;
|
|
4803
4801
|
}
|
|
4804
|
-
function
|
|
4805
|
-
return
|
|
4802
|
+
function Oa(t) {
|
|
4803
|
+
return Ea(this, t);
|
|
4806
4804
|
}
|
|
4807
4805
|
function Oi() {
|
|
4808
4806
|
vt(this.size);
|
|
@@ -4830,7 +4828,7 @@ function _r(t) {
|
|
|
4830
4828
|
r.push(_r(n));
|
|
4831
4829
|
}), r;
|
|
4832
4830
|
}
|
|
4833
|
-
function
|
|
4831
|
+
function ka(t) {
|
|
4834
4832
|
if (t.size === 1 / 0)
|
|
4835
4833
|
return 0;
|
|
4836
4834
|
var e = Ct(t), r = W(t), n = e ? 1 : 0;
|
|
@@ -4842,10 +4840,10 @@ function Oa(t) {
|
|
|
4842
4840
|
n = 31 * n + dt(o) | 0;
|
|
4843
4841
|
} : function(o) {
|
|
4844
4842
|
n = n + dt(o) | 0;
|
|
4845
|
-
}),
|
|
4843
|
+
}), Da(t.size, n);
|
|
4846
4844
|
}
|
|
4847
|
-
function
|
|
4848
|
-
return e =
|
|
4845
|
+
function Da(t, e) {
|
|
4846
|
+
return e = Se(e, 3432918353), e = Se(e << 15 | e >>> -15, 461845907), e = Se(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Se(e ^ e >>> 16, 2246822507), e = Se(e ^ e >>> 13, 3266489909), e = Or(e ^ e >>> 16), e;
|
|
4849
4847
|
}
|
|
4850
4848
|
function bo(t, e) {
|
|
4851
4849
|
return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
|
|
@@ -4876,7 +4874,7 @@ Xt(nt, {
|
|
|
4876
4874
|
return new kr(this, !0);
|
|
4877
4875
|
},
|
|
4878
4876
|
toMap: function() {
|
|
4879
|
-
return
|
|
4877
|
+
return ge(this.toKeyedSeq());
|
|
4880
4878
|
},
|
|
4881
4879
|
toObject: Oi,
|
|
4882
4880
|
toOrderedMap: function() {
|
|
@@ -4910,7 +4908,7 @@ Xt(nt, {
|
|
|
4910
4908
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
4911
4909
|
concat: function() {
|
|
4912
4910
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
4913
|
-
return
|
|
4911
|
+
return V(this, Qs(this, t));
|
|
4914
4912
|
},
|
|
4915
4913
|
includes: function(t) {
|
|
4916
4914
|
return this.some(function(e) {
|
|
@@ -4929,10 +4927,10 @@ Xt(nt, {
|
|
|
4929
4927
|
}), r;
|
|
4930
4928
|
},
|
|
4931
4929
|
filter: function(t, e) {
|
|
4932
|
-
return
|
|
4930
|
+
return V(this, Qo(this, t, e, !0));
|
|
4933
4931
|
},
|
|
4934
4932
|
partition: function(t, e) {
|
|
4935
|
-
return
|
|
4933
|
+
return Ys(this, t, e);
|
|
4936
4934
|
},
|
|
4937
4935
|
find: function(t, e, r) {
|
|
4938
4936
|
var n = this.findEntry(t, e);
|
|
@@ -4949,10 +4947,10 @@ Xt(nt, {
|
|
|
4949
4947
|
}), e;
|
|
4950
4948
|
},
|
|
4951
4949
|
keys: function() {
|
|
4952
|
-
return this.__iterator(
|
|
4950
|
+
return this.__iterator(ve);
|
|
4953
4951
|
},
|
|
4954
4952
|
map: function(t, e) {
|
|
4955
|
-
return
|
|
4953
|
+
return V(this, Zo(this, t, e));
|
|
4956
4954
|
},
|
|
4957
4955
|
reduce: function(t, e, r) {
|
|
4958
4956
|
return _o(
|
|
@@ -4975,10 +4973,10 @@ Xt(nt, {
|
|
|
4975
4973
|
);
|
|
4976
4974
|
},
|
|
4977
4975
|
reverse: function() {
|
|
4978
|
-
return
|
|
4976
|
+
return V(this, gn(this, !0));
|
|
4979
4977
|
},
|
|
4980
4978
|
slice: function(t, e) {
|
|
4981
|
-
return
|
|
4979
|
+
return V(this, mn(this, t, e, !0));
|
|
4982
4980
|
},
|
|
4983
4981
|
some: function(t, e) {
|
|
4984
4982
|
vt(this.size);
|
|
@@ -4989,7 +4987,7 @@ Xt(nt, {
|
|
|
4989
4987
|
}), r;
|
|
4990
4988
|
},
|
|
4991
4989
|
sort: function(t) {
|
|
4992
|
-
return
|
|
4990
|
+
return V(this, ue(this, t));
|
|
4993
4991
|
},
|
|
4994
4992
|
values: function() {
|
|
4995
4993
|
return this.__iterator(mt);
|
|
@@ -5004,12 +5002,12 @@ Xt(nt, {
|
|
|
5004
5002
|
});
|
|
5005
5003
|
},
|
|
5006
5004
|
count: function(t, e) {
|
|
5007
|
-
return
|
|
5005
|
+
return se(
|
|
5008
5006
|
t ? this.toSeq().filter(t, e) : this
|
|
5009
5007
|
);
|
|
5010
5008
|
},
|
|
5011
5009
|
countBy: function(t, e) {
|
|
5012
|
-
return
|
|
5010
|
+
return Js(this, t, e);
|
|
5013
5011
|
},
|
|
5014
5012
|
equals: function(t) {
|
|
5015
5013
|
return wi(this, t);
|
|
@@ -5017,14 +5015,14 @@ Xt(nt, {
|
|
|
5017
5015
|
entrySeq: function() {
|
|
5018
5016
|
var t = this;
|
|
5019
5017
|
if (t._cache)
|
|
5020
|
-
return new
|
|
5021
|
-
var e = t.toSeq().map(
|
|
5018
|
+
return new ae(t._cache);
|
|
5019
|
+
var e = t.toSeq().map(Sa).toIndexedSeq();
|
|
5022
5020
|
return e.fromEntrySeq = function() {
|
|
5023
5021
|
return t.toSeq();
|
|
5024
5022
|
}, e;
|
|
5025
5023
|
},
|
|
5026
5024
|
filterNot: function(t, e) {
|
|
5027
|
-
return this.filter(
|
|
5025
|
+
return this.filter(qr(t), e);
|
|
5028
5026
|
},
|
|
5029
5027
|
findEntry: function(t, e, r) {
|
|
5030
5028
|
var n = r;
|
|
@@ -5047,13 +5045,13 @@ Xt(nt, {
|
|
|
5047
5045
|
return this.toKeyedSeq().reverse().findKey(t, e);
|
|
5048
5046
|
},
|
|
5049
5047
|
first: function(t) {
|
|
5050
|
-
return this.find(
|
|
5048
|
+
return this.find(qo, null, t);
|
|
5051
5049
|
},
|
|
5052
5050
|
flatMap: function(t, e) {
|
|
5053
|
-
return
|
|
5051
|
+
return V(this, ta(this, t, e));
|
|
5054
5052
|
},
|
|
5055
5053
|
flatten: function(t) {
|
|
5056
|
-
return
|
|
5054
|
+
return V(this, ei(this, t, !0));
|
|
5057
5055
|
},
|
|
5058
5056
|
fromEntrySeq: function() {
|
|
5059
5057
|
return new Yo(this);
|
|
@@ -5065,12 +5063,12 @@ Xt(nt, {
|
|
|
5065
5063
|
},
|
|
5066
5064
|
getIn: Ei,
|
|
5067
5065
|
groupBy: function(t, e) {
|
|
5068
|
-
return
|
|
5066
|
+
return Gs(this, t, e);
|
|
5069
5067
|
},
|
|
5070
5068
|
has: function(t) {
|
|
5071
5069
|
return this.get(t, $) !== $;
|
|
5072
5070
|
},
|
|
5073
|
-
hasIn:
|
|
5071
|
+
hasIn: Oa,
|
|
5074
5072
|
isSubset: function(t) {
|
|
5075
5073
|
return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
|
|
5076
5074
|
return t.includes(e);
|
|
@@ -5085,7 +5083,7 @@ Xt(nt, {
|
|
|
5085
5083
|
});
|
|
5086
5084
|
},
|
|
5087
5085
|
keySeq: function() {
|
|
5088
|
-
return this.toSeq().map(
|
|
5086
|
+
return this.toSeq().map(ba).toIndexedSeq();
|
|
5089
5087
|
},
|
|
5090
5088
|
last: function(t) {
|
|
5091
5089
|
return this.toSeq().reverse().first(t);
|
|
@@ -5122,13 +5120,13 @@ Xt(nt, {
|
|
|
5122
5120
|
return t === 0 ? this : this.slice(0, -Math.max(0, t));
|
|
5123
5121
|
},
|
|
5124
5122
|
skipWhile: function(t, e) {
|
|
5125
|
-
return
|
|
5123
|
+
return V(this, ti(this, t, e, !0));
|
|
5126
5124
|
},
|
|
5127
5125
|
skipUntil: function(t, e) {
|
|
5128
|
-
return this.skipWhile(
|
|
5126
|
+
return this.skipWhile(qr(t), e);
|
|
5129
5127
|
},
|
|
5130
5128
|
sortBy: function(t, e) {
|
|
5131
|
-
return
|
|
5129
|
+
return V(this, ue(this, e, t));
|
|
5132
5130
|
},
|
|
5133
5131
|
take: function(t) {
|
|
5134
5132
|
return this.slice(0, Math.max(0, t));
|
|
@@ -5137,10 +5135,10 @@ Xt(nt, {
|
|
|
5137
5135
|
return this.slice(-Math.max(0, t));
|
|
5138
5136
|
},
|
|
5139
5137
|
takeWhile: function(t, e) {
|
|
5140
|
-
return
|
|
5138
|
+
return V(this, Xs(this, t, e));
|
|
5141
5139
|
},
|
|
5142
5140
|
takeUntil: function(t, e) {
|
|
5143
|
-
return this.takeWhile(
|
|
5141
|
+
return this.takeWhile(qr(t), e);
|
|
5144
5142
|
},
|
|
5145
5143
|
update: function(t) {
|
|
5146
5144
|
return t(this);
|
|
@@ -5150,7 +5148,7 @@ Xt(nt, {
|
|
|
5150
5148
|
},
|
|
5151
5149
|
// ### Hashable Object
|
|
5152
5150
|
hashCode: function() {
|
|
5153
|
-
return this.__hash || (this.__hash =
|
|
5151
|
+
return this.__hash || (this.__hash = ka(this));
|
|
5154
5152
|
}
|
|
5155
5153
|
// ### Internal
|
|
5156
5154
|
// abstract __iterate(fn, reverse)
|
|
@@ -5160,7 +5158,7 @@ var it = nt.prototype;
|
|
|
5160
5158
|
it[To] = !0;
|
|
5161
5159
|
it[br] = it.values;
|
|
5162
5160
|
it.toJSON = it.toArray;
|
|
5163
|
-
it.__toStringMapper =
|
|
5161
|
+
it.__toStringMapper = Ve;
|
|
5164
5162
|
it.inspect = it.toSource = function() {
|
|
5165
5163
|
return this.toString();
|
|
5166
5164
|
};
|
|
@@ -5169,11 +5167,11 @@ it.contains = it.includes;
|
|
|
5169
5167
|
Xt(Ot, {
|
|
5170
5168
|
// ### More sequential methods
|
|
5171
5169
|
flip: function() {
|
|
5172
|
-
return
|
|
5170
|
+
return V(this, Xo(this));
|
|
5173
5171
|
},
|
|
5174
5172
|
mapEntries: function(t, e) {
|
|
5175
5173
|
var r = this, n = 0;
|
|
5176
|
-
return
|
|
5174
|
+
return V(
|
|
5177
5175
|
this,
|
|
5178
5176
|
this.toSeq().map(function(o, i) {
|
|
5179
5177
|
return t.call(e, [i, o], n++, r);
|
|
@@ -5182,7 +5180,7 @@ Xt(Ot, {
|
|
|
5182
5180
|
},
|
|
5183
5181
|
mapKeys: function(t, e) {
|
|
5184
5182
|
var r = this;
|
|
5185
|
-
return
|
|
5183
|
+
return V(
|
|
5186
5184
|
this,
|
|
5187
5185
|
this.toSeq().flip().map(function(n, o) {
|
|
5188
5186
|
return t.call(e, n, o, r);
|
|
@@ -5195,7 +5193,7 @@ Ye[vr] = !0;
|
|
|
5195
5193
|
Ye[br] = it.entries;
|
|
5196
5194
|
Ye.toJSON = Oi;
|
|
5197
5195
|
Ye.__toStringMapper = function(t, e) {
|
|
5198
|
-
return
|
|
5196
|
+
return Ve(e) + ": " + Ve(t);
|
|
5199
5197
|
};
|
|
5200
5198
|
Xt(Gt, {
|
|
5201
5199
|
// ### Conversion to other types
|
|
@@ -5204,7 +5202,7 @@ Xt(Gt, {
|
|
|
5204
5202
|
},
|
|
5205
5203
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
5206
5204
|
filter: function(t, e) {
|
|
5207
|
-
return
|
|
5205
|
+
return V(this, Qo(this, t, e, !1));
|
|
5208
5206
|
},
|
|
5209
5207
|
findIndex: function(t, e) {
|
|
5210
5208
|
var r = this.findEntry(t, e);
|
|
@@ -5219,10 +5217,10 @@ Xt(Gt, {
|
|
|
5219
5217
|
return e === void 0 ? -1 : e;
|
|
5220
5218
|
},
|
|
5221
5219
|
reverse: function() {
|
|
5222
|
-
return
|
|
5220
|
+
return V(this, gn(this, !1));
|
|
5223
5221
|
},
|
|
5224
5222
|
slice: function(t, e) {
|
|
5225
|
-
return
|
|
5223
|
+
return V(this, mn(this, t, e, !1));
|
|
5226
5224
|
},
|
|
5227
5225
|
splice: function(t, e) {
|
|
5228
5226
|
var r = arguments.length;
|
|
@@ -5230,7 +5228,7 @@ Xt(Gt, {
|
|
|
5230
5228
|
return this;
|
|
5231
5229
|
t = Ke(t, t < 0 ? this.count() : this.size);
|
|
5232
5230
|
var n = this.slice(0, t);
|
|
5233
|
-
return
|
|
5231
|
+
return V(
|
|
5234
5232
|
this,
|
|
5235
5233
|
r === 1 ? n : n.concat(zt(arguments, 2), this.slice(t + e))
|
|
5236
5234
|
);
|
|
@@ -5244,49 +5242,49 @@ Xt(Gt, {
|
|
|
5244
5242
|
return this.get(0, t);
|
|
5245
5243
|
},
|
|
5246
5244
|
flatten: function(t) {
|
|
5247
|
-
return
|
|
5245
|
+
return V(this, ei(this, t, !1));
|
|
5248
5246
|
},
|
|
5249
5247
|
get: function(t, e) {
|
|
5250
|
-
return t =
|
|
5248
|
+
return t = qt(this, t), t < 0 || this.size === 1 / 0 || this.size !== void 0 && t > this.size ? e : this.find(function(r, n) {
|
|
5251
5249
|
return n === t;
|
|
5252
5250
|
}, void 0, e);
|
|
5253
5251
|
},
|
|
5254
5252
|
has: function(t) {
|
|
5255
|
-
return t =
|
|
5253
|
+
return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
|
|
5256
5254
|
},
|
|
5257
5255
|
interpose: function(t) {
|
|
5258
|
-
return
|
|
5256
|
+
return V(this, ea(this, t));
|
|
5259
5257
|
},
|
|
5260
5258
|
interleave: function() {
|
|
5261
5259
|
var t = [this].concat(zt(arguments)), e = nr(this.toSeq(), Rt.of, t), r = e.flatten(!0);
|
|
5262
|
-
return e.size && (r.size = e.size * t.length),
|
|
5260
|
+
return e.size && (r.size = e.size * t.length), V(this, r);
|
|
5263
5261
|
},
|
|
5264
5262
|
keySeq: function() {
|
|
5265
|
-
return
|
|
5263
|
+
return Ia(0, this.size);
|
|
5266
5264
|
},
|
|
5267
5265
|
last: function(t) {
|
|
5268
5266
|
return this.get(-1, t);
|
|
5269
5267
|
},
|
|
5270
5268
|
skipWhile: function(t, e) {
|
|
5271
|
-
return
|
|
5269
|
+
return V(this, ti(this, t, e, !1));
|
|
5272
5270
|
},
|
|
5273
5271
|
zip: function() {
|
|
5274
5272
|
var t = [this].concat(zt(arguments));
|
|
5275
|
-
return
|
|
5273
|
+
return V(this, nr(this, So, t));
|
|
5276
5274
|
},
|
|
5277
5275
|
zipAll: function() {
|
|
5278
5276
|
var t = [this].concat(zt(arguments));
|
|
5279
|
-
return
|
|
5277
|
+
return V(this, nr(this, So, t, !0));
|
|
5280
5278
|
},
|
|
5281
5279
|
zipWith: function(t) {
|
|
5282
5280
|
var e = zt(arguments);
|
|
5283
|
-
return e[0] = this,
|
|
5281
|
+
return e[0] = this, V(this, nr(this, t, e));
|
|
5284
5282
|
}
|
|
5285
5283
|
});
|
|
5286
|
-
var
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
Xt(
|
|
5284
|
+
var we = Gt.prototype;
|
|
5285
|
+
we[dr] = !0;
|
|
5286
|
+
we[Lt] = !0;
|
|
5287
|
+
Xt(de, {
|
|
5290
5288
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
5291
5289
|
get: function(t, e) {
|
|
5292
5290
|
return this.has(t) ? t : e;
|
|
@@ -5299,13 +5297,13 @@ Xt(ve, {
|
|
|
5299
5297
|
return this.valueSeq();
|
|
5300
5298
|
}
|
|
5301
5299
|
});
|
|
5302
|
-
var
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5300
|
+
var he = de.prototype;
|
|
5301
|
+
he.has = it.includes;
|
|
5302
|
+
he.contains = he.includes;
|
|
5303
|
+
he.keys = he.values;
|
|
5306
5304
|
Xt(Bt, Ye);
|
|
5307
|
-
Xt(Rt,
|
|
5308
|
-
Xt(
|
|
5305
|
+
Xt(Rt, we);
|
|
5306
|
+
Xt(_e, he);
|
|
5309
5307
|
function So() {
|
|
5310
5308
|
return zt(arguments);
|
|
5311
5309
|
}
|
|
@@ -5315,7 +5313,7 @@ function ki(t) {
|
|
|
5315
5313
|
var Ue = /* @__PURE__ */ (function(t) {
|
|
5316
5314
|
function e(r) {
|
|
5317
5315
|
return r == null ? an() : ki(r) ? r : an().withMutations(function(n) {
|
|
5318
|
-
var o =
|
|
5316
|
+
var o = de(r);
|
|
5319
5317
|
vt(o.size), o.forEach(function(i) {
|
|
5320
5318
|
return n.add(i);
|
|
5321
5319
|
});
|
|
@@ -5330,22 +5328,22 @@ var Ue = /* @__PURE__ */ (function(t) {
|
|
|
5330
5328
|
}, e;
|
|
5331
5329
|
})(Rr);
|
|
5332
5330
|
Ue.isOrderedSet = ki;
|
|
5333
|
-
var
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5331
|
+
var Zt = Ue.prototype;
|
|
5332
|
+
Zt[Lt] = !0;
|
|
5333
|
+
Zt.zip = we.zip;
|
|
5334
|
+
Zt.zipWith = we.zipWith;
|
|
5335
|
+
Zt.zipAll = we.zipAll;
|
|
5336
|
+
Zt.__empty = an;
|
|
5337
|
+
Zt.__make = Di;
|
|
5340
5338
|
function Di(t, e) {
|
|
5341
|
-
var r = Object.create(
|
|
5339
|
+
var r = Object.create(Zt);
|
|
5342
5340
|
return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
|
|
5343
5341
|
}
|
|
5344
5342
|
var Io;
|
|
5345
5343
|
function an() {
|
|
5346
5344
|
return Io || (Io = Di(Oe()));
|
|
5347
5345
|
}
|
|
5348
|
-
function
|
|
5346
|
+
function Ra(t) {
|
|
5349
5347
|
if (Yt(t))
|
|
5350
5348
|
throw new Error(
|
|
5351
5349
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
@@ -5361,7 +5359,7 @@ function Da(t) {
|
|
|
5361
5359
|
}
|
|
5362
5360
|
var tt = function(t, e) {
|
|
5363
5361
|
var r;
|
|
5364
|
-
|
|
5362
|
+
Ra(t);
|
|
5365
5363
|
var n = function(i) {
|
|
5366
5364
|
var s = this;
|
|
5367
5365
|
if (i instanceof n)
|
|
@@ -5375,8 +5373,8 @@ var tt = function(t, e) {
|
|
|
5375
5373
|
for (var c = 0; c < a.length; c++) {
|
|
5376
5374
|
var l = a[c];
|
|
5377
5375
|
u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
|
|
5378
|
-
"Cannot define " +
|
|
5379
|
-
) :
|
|
5376
|
+
"Cannot define " + Vn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
|
|
5377
|
+
) : za(o, l);
|
|
5380
5378
|
}
|
|
5381
5379
|
}
|
|
5382
5380
|
return this.__ownerID = void 0, this._values = Dr().withMutations(function(f) {
|
|
@@ -5388,15 +5386,15 @@ var tt = function(t, e) {
|
|
|
5388
5386
|
return o.constructor = n, e && (n.displayName = e), n;
|
|
5389
5387
|
};
|
|
5390
5388
|
tt.prototype.toString = function() {
|
|
5391
|
-
for (var t =
|
|
5392
|
-
r = e[n], t += (n ? ", " : "") + r + ": " +
|
|
5389
|
+
for (var t = Vn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
|
|
5390
|
+
r = e[n], t += (n ? ", " : "") + r + ": " + Ve(this.get(r));
|
|
5393
5391
|
return t + " }";
|
|
5394
5392
|
};
|
|
5395
5393
|
tt.prototype.equals = function(t) {
|
|
5396
|
-
return this === t || Yt(t) &&
|
|
5394
|
+
return this === t || Yt(t) && pe(this).equals(pe(t));
|
|
5397
5395
|
};
|
|
5398
5396
|
tt.prototype.hashCode = function() {
|
|
5399
|
-
return
|
|
5397
|
+
return pe(this).hashCode();
|
|
5400
5398
|
};
|
|
5401
5399
|
tt.prototype.has = function(t) {
|
|
5402
5400
|
return this._indices.hasOwnProperty(t);
|
|
@@ -5429,7 +5427,7 @@ tt.prototype.wasAltered = function() {
|
|
|
5429
5427
|
return this._values.wasAltered();
|
|
5430
5428
|
};
|
|
5431
5429
|
tt.prototype.toSeq = function() {
|
|
5432
|
-
return
|
|
5430
|
+
return pe(this);
|
|
5433
5431
|
};
|
|
5434
5432
|
tt.prototype.toJS = function() {
|
|
5435
5433
|
return _r(this);
|
|
@@ -5438,10 +5436,10 @@ tt.prototype.entries = function() {
|
|
|
5438
5436
|
return this.__iterator(wt);
|
|
5439
5437
|
};
|
|
5440
5438
|
tt.prototype.__iterator = function(t, e) {
|
|
5441
|
-
return
|
|
5439
|
+
return pe(this).__iterator(t, e);
|
|
5442
5440
|
};
|
|
5443
5441
|
tt.prototype.__iterate = function(t, e) {
|
|
5444
|
-
return
|
|
5442
|
+
return pe(this).__iterate(t, e);
|
|
5445
5443
|
};
|
|
5446
5444
|
tt.prototype.__ensureOwner = function(t) {
|
|
5447
5445
|
if (t === this.__ownerID)
|
|
@@ -5450,7 +5448,7 @@ tt.prototype.__ensureOwner = function(t) {
|
|
|
5450
5448
|
return t ? Pn(this, e, t) : (this.__ownerID = t, this._values = e, this);
|
|
5451
5449
|
};
|
|
5452
5450
|
tt.isRecord = Yt;
|
|
5453
|
-
tt.getDescriptiveName =
|
|
5451
|
+
tt.getDescriptiveName = Vn;
|
|
5454
5452
|
var B = tt.prototype;
|
|
5455
5453
|
B[Bo] = !0;
|
|
5456
5454
|
B[We] = B.remove;
|
|
@@ -5478,15 +5476,15 @@ function Pn(t, e, r) {
|
|
|
5478
5476
|
var n = Object.create(Object.getPrototypeOf(t));
|
|
5479
5477
|
return n._values = e, n.__ownerID = r, n;
|
|
5480
5478
|
}
|
|
5481
|
-
function
|
|
5479
|
+
function Vn(t) {
|
|
5482
5480
|
return t.constructor.displayName || t.constructor.name || "Record";
|
|
5483
5481
|
}
|
|
5484
|
-
function
|
|
5482
|
+
function pe(t) {
|
|
5485
5483
|
return yn(t._keys.map(function(e) {
|
|
5486
5484
|
return [e, t.get(e)];
|
|
5487
5485
|
}));
|
|
5488
5486
|
}
|
|
5489
|
-
function
|
|
5487
|
+
function za(t, e) {
|
|
5490
5488
|
try {
|
|
5491
5489
|
Object.defineProperty(t, e, {
|
|
5492
5490
|
get: function() {
|
|
@@ -5500,28 +5498,28 @@ function Ra(t, e) {
|
|
|
5500
5498
|
}
|
|
5501
5499
|
}
|
|
5502
5500
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5503
|
-
function
|
|
5501
|
+
function Aa(t, e) {
|
|
5504
5502
|
return un() ? (cn(t, e), !0) : !1;
|
|
5505
5503
|
}
|
|
5506
5504
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5507
|
-
const
|
|
5505
|
+
const Na = () => {
|
|
5508
5506
|
};
|
|
5509
|
-
function
|
|
5507
|
+
function Ca(...t) {
|
|
5510
5508
|
if (t.length !== 1) return Ht(...t);
|
|
5511
5509
|
const e = t[0];
|
|
5512
5510
|
return typeof e == "function" ? wr(ln(() => ({
|
|
5513
5511
|
get: e,
|
|
5514
|
-
set:
|
|
5512
|
+
set: Na
|
|
5515
5513
|
}))) : N(e);
|
|
5516
5514
|
}
|
|
5517
5515
|
function Ur(t) {
|
|
5518
5516
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5519
5517
|
}
|
|
5520
5518
|
const Br = /* @__PURE__ */ new WeakMap();
|
|
5521
|
-
function
|
|
5519
|
+
function $a(t, e = !1) {
|
|
5522
5520
|
const r = Fe(e);
|
|
5523
5521
|
let n = "";
|
|
5524
|
-
ot(
|
|
5522
|
+
ot(Ca(t), (s) => {
|
|
5525
5523
|
const a = Ur(It(s));
|
|
5526
5524
|
if (a) {
|
|
5527
5525
|
const u = a;
|
|
@@ -5536,7 +5534,7 @@ function Ca(t, e = !1) {
|
|
|
5536
5534
|
const s = Ur(It(t));
|
|
5537
5535
|
!s || !r.value || (s.style.overflow = n, Br.delete(s), r.value = !1);
|
|
5538
5536
|
};
|
|
5539
|
-
return
|
|
5537
|
+
return Aa(i), C({
|
|
5540
5538
|
get() {
|
|
5541
5539
|
return r.value;
|
|
5542
5540
|
},
|
|
@@ -5545,45 +5543,45 @@ function Ca(t, e = !1) {
|
|
|
5545
5543
|
}
|
|
5546
5544
|
});
|
|
5547
5545
|
}
|
|
5548
|
-
function
|
|
5546
|
+
function ja() {
|
|
5549
5547
|
let t = !1;
|
|
5550
5548
|
const e = Fe(!1);
|
|
5551
5549
|
return (r, n) => {
|
|
5552
5550
|
if (e.value = n.value, t) return;
|
|
5553
5551
|
t = !0;
|
|
5554
|
-
const o =
|
|
5552
|
+
const o = $a(r, n.value);
|
|
5555
5553
|
ot(e, (i) => o.value = i);
|
|
5556
5554
|
};
|
|
5557
5555
|
}
|
|
5558
|
-
|
|
5559
|
-
const
|
|
5556
|
+
ja();
|
|
5557
|
+
const xa = (t, e) => {
|
|
5560
5558
|
const r = t.__vccOpts || t;
|
|
5561
5559
|
for (const [n, o] of e)
|
|
5562
5560
|
r[n] = o;
|
|
5563
5561
|
return r;
|
|
5564
5562
|
};
|
|
5565
|
-
function
|
|
5563
|
+
function Ma(t, e) {
|
|
5566
5564
|
return un() ? (cn(t, e), !0) : !1;
|
|
5567
5565
|
}
|
|
5568
5566
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5569
|
-
const
|
|
5567
|
+
const Ta = () => {
|
|
5570
5568
|
};
|
|
5571
|
-
function
|
|
5569
|
+
function Pa(...t) {
|
|
5572
5570
|
if (t.length !== 1) return Ht(...t);
|
|
5573
5571
|
const e = t[0];
|
|
5574
5572
|
return typeof e == "function" ? wr(ln(() => ({
|
|
5575
5573
|
get: e,
|
|
5576
|
-
set:
|
|
5574
|
+
set: Ta
|
|
5577
5575
|
}))) : N(e);
|
|
5578
5576
|
}
|
|
5579
5577
|
function Fr(t) {
|
|
5580
5578
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5581
5579
|
}
|
|
5582
5580
|
const Wr = /* @__PURE__ */ new WeakMap();
|
|
5583
|
-
function
|
|
5581
|
+
function Va(t, e = !1) {
|
|
5584
5582
|
const r = Fe(e);
|
|
5585
5583
|
let n = "";
|
|
5586
|
-
ot(
|
|
5584
|
+
ot(Pa(t), (s) => {
|
|
5587
5585
|
const a = Fr(It(s));
|
|
5588
5586
|
if (a) {
|
|
5589
5587
|
const u = a;
|
|
@@ -5598,7 +5596,7 @@ function Pa(t, e = !1) {
|
|
|
5598
5596
|
const s = Fr(It(t));
|
|
5599
5597
|
!s || !r.value || (s.style.overflow = n, Wr.delete(s), r.value = !1);
|
|
5600
5598
|
};
|
|
5601
|
-
return
|
|
5599
|
+
return Ma(i), C({
|
|
5602
5600
|
get() {
|
|
5603
5601
|
return r.value;
|
|
5604
5602
|
},
|
|
@@ -5613,18 +5611,18 @@ function qa() {
|
|
|
5613
5611
|
return (r, n) => {
|
|
5614
5612
|
if (e.value = n.value, t) return;
|
|
5615
5613
|
t = !0;
|
|
5616
|
-
const o =
|
|
5614
|
+
const o = Va(r, n.value);
|
|
5617
5615
|
ot(e, (i) => o.value = i);
|
|
5618
5616
|
};
|
|
5619
5617
|
}
|
|
5620
5618
|
qa();
|
|
5621
|
-
const
|
|
5619
|
+
const La = { class: "aform" }, Ua = {
|
|
5622
5620
|
key: 0,
|
|
5623
5621
|
class: "aform-nested-section"
|
|
5624
|
-
},
|
|
5622
|
+
}, Ba = {
|
|
5625
5623
|
key: 0,
|
|
5626
5624
|
class: "aform-nested-label"
|
|
5627
|
-
},
|
|
5625
|
+
}, Fa = /* @__PURE__ */ Be({
|
|
5628
5626
|
__name: "AForm",
|
|
5629
5627
|
props: /* @__PURE__ */ Un({
|
|
5630
5628
|
schema: {},
|
|
@@ -5673,10 +5671,10 @@ const Va = { class: "aform" }, La = {
|
|
|
5673
5671
|
})));
|
|
5674
5672
|
});
|
|
5675
5673
|
const h = C(() => f.value);
|
|
5676
|
-
return (d, y) => (T(), U("form",
|
|
5677
|
-
(T(!0), U(
|
|
5678
|
-
o(_) ? (T(), U("div",
|
|
5679
|
-
_.label && _.kind !== "fieldset" ? (T(), U("h4",
|
|
5674
|
+
return (d, y) => (T(), U("form", La, [
|
|
5675
|
+
(T(!0), U(ne, null, je(t.schema, (_, k) => (T(), U(ne, { key: k }, [
|
|
5676
|
+
o(_) ? (T(), U("div", Ua, [
|
|
5677
|
+
_.label && _.kind !== "fieldset" ? (T(), U("h4", Ba, At(_.label), 1)) : Kt("", !0),
|
|
5680
5678
|
(T(), cr(Ln(_.component ?? "AForm"), {
|
|
5681
5679
|
data: i.value[_.fieldname],
|
|
5682
5680
|
mode: l(_),
|
|
@@ -5697,7 +5695,7 @@ const Va = { class: "aform" }, La = {
|
|
|
5697
5695
|
], 64))), 128))
|
|
5698
5696
|
]));
|
|
5699
5697
|
}
|
|
5700
|
-
}),
|
|
5698
|
+
}), Wa = /* @__PURE__ */ xa(Fa, [["__scopeId", "data-v-5396e11b"]]), Ka = { class: "tabs" }, Ha = { tabindex: "0" }, Ja = { tabindex: "0" }, Ga = /* @__PURE__ */ Be({
|
|
5701
5699
|
__name: "SheetNav",
|
|
5702
5700
|
props: {
|
|
5703
5701
|
breadcrumbs: { default: () => [] }
|
|
@@ -5706,7 +5704,7 @@ const Va = { class: "aform" }, La = {
|
|
|
5706
5704
|
const e = N(!0), r = N(!1), n = N(""), o = Eo("searchinput"), i = C(() => e.value ? "unrotated" : "rotated"), s = () => {
|
|
5707
5705
|
e.value = !e.value;
|
|
5708
5706
|
}, a = async () => {
|
|
5709
|
-
r.value = !r.value, await
|
|
5707
|
+
r.value = !r.value, await oe(() => {
|
|
5710
5708
|
o.value?.focus();
|
|
5711
5709
|
});
|
|
5712
5710
|
}, u = (f) => {
|
|
@@ -5718,15 +5716,15 @@ const Va = { class: "aform" }, La = {
|
|
|
5718
5716
|
return (f, h) => {
|
|
5719
5717
|
const d = Ti("router-link");
|
|
5720
5718
|
return T(), U("footer", null, [
|
|
5721
|
-
M("ul",
|
|
5719
|
+
M("ul", Ka, [
|
|
5722
5720
|
M("li", {
|
|
5723
5721
|
class: "hidebreadcrumbs",
|
|
5724
5722
|
onClick: s,
|
|
5725
|
-
onKeydown:
|
|
5723
|
+
onKeydown: be(s, ["enter"])
|
|
5726
5724
|
}, [
|
|
5727
|
-
M("a",
|
|
5725
|
+
M("a", Ha, [
|
|
5728
5726
|
M("div", {
|
|
5729
|
-
class:
|
|
5727
|
+
class: ee(i.value)
|
|
5730
5728
|
}, "×", 2)
|
|
5731
5729
|
])
|
|
5732
5730
|
], 32),
|
|
@@ -5734,9 +5732,9 @@ const Va = { class: "aform" }, La = {
|
|
|
5734
5732
|
class: "hometab",
|
|
5735
5733
|
style: Nr({ display: e.value ? "block" : "none" }),
|
|
5736
5734
|
onClick: l,
|
|
5737
|
-
onKeydown:
|
|
5735
|
+
onKeydown: be(l, ["enter"])
|
|
5738
5736
|
}, [
|
|
5739
|
-
|
|
5737
|
+
re(d, {
|
|
5740
5738
|
to: "/",
|
|
5741
5739
|
tabindex: "0"
|
|
5742
5740
|
}, {
|
|
@@ -5757,10 +5755,10 @@ const Va = { class: "aform" }, La = {
|
|
|
5757
5755
|
})
|
|
5758
5756
|
], 36),
|
|
5759
5757
|
M("li", {
|
|
5760
|
-
class:
|
|
5758
|
+
class: ee(["searchtab", { "search-active": r.value }]),
|
|
5761
5759
|
style: Nr({ display: e.value ? "block" : "none" })
|
|
5762
5760
|
}, [
|
|
5763
|
-
M("a",
|
|
5761
|
+
M("a", Ja, [
|
|
5764
5762
|
ur((T(), U("svg", {
|
|
5765
5763
|
class: "icon search-icon",
|
|
5766
5764
|
role: "button",
|
|
@@ -5770,7 +5768,7 @@ const Va = { class: "aform" }, La = {
|
|
|
5770
5768
|
stroke: "currentColor",
|
|
5771
5769
|
"stroke-width": "2",
|
|
5772
5770
|
onClick: a,
|
|
5773
|
-
onKeydown:
|
|
5771
|
+
onKeydown: be(a, ["enter"])
|
|
5774
5772
|
}, [...h[6] || (h[6] = [
|
|
5775
5773
|
M("circle", {
|
|
5776
5774
|
cx: "11",
|
|
@@ -5791,8 +5789,8 @@ const Va = { class: "aform" }, La = {
|
|
|
5791
5789
|
onInput: h[2] || (h[2] = (y) => u(y)),
|
|
5792
5790
|
onBlur: h[3] || (h[3] = (y) => c(y)),
|
|
5793
5791
|
onKeydown: [
|
|
5794
|
-
h[4] || (h[4] =
|
|
5795
|
-
|
|
5792
|
+
h[4] || (h[4] = be((y) => c(y), ["enter"])),
|
|
5793
|
+
be(a, ["escape"])
|
|
5796
5794
|
]
|
|
5797
5795
|
}, null, 544), [
|
|
5798
5796
|
[Kr, r.value],
|
|
@@ -5800,11 +5798,11 @@ const Va = { class: "aform" }, La = {
|
|
|
5800
5798
|
])
|
|
5801
5799
|
])
|
|
5802
5800
|
], 6),
|
|
5803
|
-
(T(!0), U(
|
|
5801
|
+
(T(!0), U(ne, null, je(t.breadcrumbs, (y) => (T(), U("li", {
|
|
5804
5802
|
key: y.title,
|
|
5805
5803
|
style: Nr({ display: e.value ? "block" : "none" })
|
|
5806
5804
|
}, [
|
|
5807
|
-
|
|
5805
|
+
re(d, {
|
|
5808
5806
|
tabindex: "0",
|
|
5809
5807
|
to: y.to
|
|
5810
5808
|
}, {
|
|
@@ -5818,13 +5816,13 @@ const Va = { class: "aform" }, La = {
|
|
|
5818
5816
|
]);
|
|
5819
5817
|
};
|
|
5820
5818
|
}
|
|
5821
|
-
}), Ri = /* @__PURE__ */ Ao(
|
|
5819
|
+
}), Ri = /* @__PURE__ */ Ao(Ga, [["__scopeId", "data-v-0072260b"]]), Ya = {
|
|
5822
5820
|
key: 1,
|
|
5823
5821
|
class: "loading"
|
|
5824
|
-
},
|
|
5822
|
+
}, Xa = {
|
|
5825
5823
|
key: 2,
|
|
5826
5824
|
class: "loading"
|
|
5827
|
-
},
|
|
5825
|
+
}, Za = /* @__PURE__ */ Be({
|
|
5828
5826
|
__name: "Desktop",
|
|
5829
5827
|
props: {
|
|
5830
5828
|
availableDoctypes: { default: () => [] },
|
|
@@ -5834,14 +5832,14 @@ const Va = { class: "aform" }, La = {
|
|
|
5834
5832
|
},
|
|
5835
5833
|
emits: ["action", "navigate", "record:open", "load-records", "load-record"],
|
|
5836
5834
|
setup(t, { emit: e }) {
|
|
5837
|
-
const r = e, { stonecrop: n } =
|
|
5835
|
+
const r = e, { stonecrop: n } = $s(), o = N(!1), i = N(!1), s = C({
|
|
5838
5836
|
get() {
|
|
5839
5837
|
if (d.value === "doctypes")
|
|
5840
5838
|
return {
|
|
5841
5839
|
doctypes_table: t.availableDoctypes?.map((v) => ({
|
|
5842
5840
|
id: v,
|
|
5843
5841
|
doctype: v,
|
|
5844
|
-
display_name:
|
|
5842
|
+
display_name: Z(v),
|
|
5845
5843
|
record_count: kt(v),
|
|
5846
5844
|
actions: "View Records"
|
|
5847
5845
|
})) ?? []
|
|
@@ -5984,13 +5982,13 @@ const Va = { class: "aform" }, La = {
|
|
|
5984
5982
|
if (d.value === "records" && l.value)
|
|
5985
5983
|
v.push(
|
|
5986
5984
|
{ title: "Home", to: "/" },
|
|
5987
|
-
{ title:
|
|
5985
|
+
{ title: Z(l.value), to: `/${l.value}` }
|
|
5988
5986
|
);
|
|
5989
5987
|
else if (d.value === "record" && l.value) {
|
|
5990
5988
|
const p = f.value ? `/${l.value}/${f.value}` : a.value?.fullPath ?? "";
|
|
5991
5989
|
v.push(
|
|
5992
5990
|
{ title: "Home", to: "/" },
|
|
5993
|
-
{ title:
|
|
5991
|
+
{ title: Z(l.value), to: `/${l.value}` },
|
|
5994
5992
|
{ title: h.value ? "New Record" : "Edit Record", to: p }
|
|
5995
5993
|
);
|
|
5996
5994
|
}
|
|
@@ -6011,20 +6009,20 @@ const Va = { class: "aform" }, La = {
|
|
|
6011
6009
|
}
|
|
6012
6010
|
];
|
|
6013
6011
|
return l.value && (p.push({
|
|
6014
|
-
title: `View ${
|
|
6012
|
+
title: `View ${Z(l.value)} Records`,
|
|
6015
6013
|
description: `Navigate to ${l.value} list`,
|
|
6016
6014
|
action: () => {
|
|
6017
6015
|
X({ view: "records", doctype: l.value });
|
|
6018
6016
|
}
|
|
6019
6017
|
}), p.push({
|
|
6020
|
-
title: `Create New ${
|
|
6018
|
+
title: `Create New ${Z(l.value)}`,
|
|
6021
6019
|
description: `Create a new ${l.value} record`,
|
|
6022
6020
|
action: () => {
|
|
6023
6021
|
Dt();
|
|
6024
6022
|
}
|
|
6025
6023
|
})), t.availableDoctypes.forEach((m) => {
|
|
6026
6024
|
p.push({
|
|
6027
|
-
title: `View ${
|
|
6025
|
+
title: `View ${Z(m)}`,
|
|
6028
6026
|
description: `Navigate to ${m} list`,
|
|
6029
6027
|
action: () => {
|
|
6030
6028
|
X({ view: "records", doctype: m });
|
|
@@ -6035,7 +6033,7 @@ const Va = { class: "aform" }, La = {
|
|
|
6035
6033
|
) : p;
|
|
6036
6034
|
}, st = (v) => {
|
|
6037
6035
|
v.action(), i.value = !1;
|
|
6038
|
-
},
|
|
6036
|
+
}, Z = (v) => v.split("-").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" "), kt = (v) => n.value ? n.value.getRecordIds(v).length : 0, X = async (v) => {
|
|
6039
6037
|
r("navigate", v), t.routeAdapter ? await t.routeAdapter.navigate(v) : v.view === "doctypes" ? await u.value?.push("/") : v.view === "records" && v.doctype ? await u.value?.push(`/${v.doctype}`) : v.view === "record" && v.doctype && v.recordId && await u.value?.push(`/${v.doctype}/${v.recordId}`);
|
|
6040
6038
|
}, ht = async (v) => {
|
|
6041
6039
|
await X({ view: "records", doctype: v });
|
|
@@ -6045,10 +6043,10 @@ const Va = { class: "aform" }, La = {
|
|
|
6045
6043
|
}, Dt = async () => {
|
|
6046
6044
|
const v = `new-${Date.now()}`;
|
|
6047
6045
|
await X({ view: "record", doctype: l.value, recordId: v });
|
|
6048
|
-
},
|
|
6046
|
+
}, Q = (v) => {
|
|
6049
6047
|
const p = [];
|
|
6050
6048
|
for (const m of v)
|
|
6051
|
-
m.kind === "fieldset" ? p.push(...
|
|
6049
|
+
m.kind === "fieldset" ? p.push(...Q(m.schema)) : p.push(m);
|
|
6052
6050
|
return p;
|
|
6053
6051
|
}, I = () => t.availableDoctypes?.length ? [
|
|
6054
6052
|
{
|
|
@@ -6104,7 +6102,7 @@ const Va = { class: "aform" }, La = {
|
|
|
6104
6102
|
fieldname: "records_table",
|
|
6105
6103
|
component: "ATable",
|
|
6106
6104
|
schema: [
|
|
6107
|
-
...
|
|
6105
|
+
...Q(m),
|
|
6108
6106
|
{ fieldname: "actions", label: "Actions", fieldtype: "Data" }
|
|
6109
6107
|
],
|
|
6110
6108
|
config: { view: "list", fullWidth: !0 }
|
|
@@ -6245,22 +6243,22 @@ const Va = { class: "aform" }, La = {
|
|
|
6245
6243
|
class: "desktop",
|
|
6246
6244
|
onClick: S
|
|
6247
6245
|
}, [
|
|
6248
|
-
|
|
6246
|
+
re(No, {
|
|
6249
6247
|
elements: _.value,
|
|
6250
6248
|
onActionClick: P
|
|
6251
6249
|
}, null, 8, ["elements"]),
|
|
6252
|
-
D.value.length > 0 ? (T(), cr(sr(
|
|
6250
|
+
D.value.length > 0 ? (T(), cr(sr(Wa), {
|
|
6253
6251
|
key: 0,
|
|
6254
6252
|
data: s.value,
|
|
6255
6253
|
"onUpdate:data": p[0] || (p[0] = (m) => s.value = m),
|
|
6256
6254
|
schema: D.value
|
|
6257
|
-
}, null, 8, ["data", "schema"])) : sr(n) ? (T(), U("div",
|
|
6255
|
+
}, null, 8, ["data", "schema"])) : sr(n) ? (T(), U("div", Xa, [
|
|
6258
6256
|
M("p", null, "Loading " + At(d.value) + " data...", 1)
|
|
6259
|
-
])) : (T(), U("div",
|
|
6257
|
+
])) : (T(), U("div", Ya, [...p[2] || (p[2] = [
|
|
6260
6258
|
M("p", null, "Initializing Stonecrop...", -1)
|
|
6261
6259
|
])])),
|
|
6262
|
-
|
|
6263
|
-
|
|
6260
|
+
re(Ri, { breadcrumbs: k.value }, null, 8, ["breadcrumbs"]),
|
|
6261
|
+
re(Co, {
|
|
6264
6262
|
"is-open": i.value,
|
|
6265
6263
|
search: j,
|
|
6266
6264
|
placeholder: "Type a command or search...",
|
|
@@ -6277,16 +6275,16 @@ const Va = { class: "aform" }, La = {
|
|
|
6277
6275
|
}, 8, ["is-open"])
|
|
6278
6276
|
]));
|
|
6279
6277
|
}
|
|
6280
|
-
}),
|
|
6278
|
+
}), tu = {
|
|
6281
6279
|
install: (t) => {
|
|
6282
|
-
t.component("ActionSet", No), t.component("CommandPalette", Co), t.component("Desktop",
|
|
6280
|
+
t.component("ActionSet", No), t.component("CommandPalette", Co), t.component("Desktop", Za), t.component("SheetNav", Ri);
|
|
6283
6281
|
}
|
|
6284
6282
|
};
|
|
6285
6283
|
export {
|
|
6286
6284
|
No as ActionSet,
|
|
6287
6285
|
Co as CommandPalette,
|
|
6288
|
-
|
|
6286
|
+
Za as Desktop,
|
|
6289
6287
|
Ri as SheetNav,
|
|
6290
|
-
|
|
6288
|
+
tu as StonecropDesktop
|
|
6291
6289
|
};
|
|
6292
6290
|
//# sourceMappingURL=desktop.js.map
|