@stonecrop/desktop 0.11.8 → 0.11.10
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 +440 -440
- package/dist/desktop.js.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" },
|
|
1
|
+
import { defineComponent as Le, ref as C, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as ee, createElementVNode as $, Fragment as ne, renderList as Ne, toDisplayString as At, createCommentVNode as Wt, withDirectives as sr, vShow as Wr, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as je, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Kt, hasInjectionContext as Kr, inject as xe, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Ue, toValue as St, readonly as gr, customRef as ln, unref as or, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
|
|
2
|
+
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Bi = { class: "dropdown" }, Wi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Le({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: { default: () => [] }
|
|
@@ -21,17 +21,17 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
21
21
|
r("actionClick", f, l);
|
|
22
22
|
};
|
|
23
23
|
return (l, f) => (M(), U("div", {
|
|
24
|
-
class:
|
|
24
|
+
class: ee([{ collapsed: !o.value }, "action-set"])
|
|
25
25
|
}, [
|
|
26
26
|
$("div", Mi, [
|
|
27
27
|
$("div", {
|
|
28
28
|
id: "cross",
|
|
29
29
|
onClick: a,
|
|
30
|
-
class:
|
|
30
|
+
class: ee({ rotated: o.value })
|
|
31
31
|
}, "×", 2)
|
|
32
32
|
]),
|
|
33
33
|
f[0] || (f[0] = $("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
34
|
-
(M(!0), U(ne, null,
|
|
34
|
+
(M(!0), U(ne, null, Ne(t.elements, (h, d) => (M(), U("div", {
|
|
35
35
|
key: h.label,
|
|
36
36
|
class: "action-element"
|
|
37
37
|
}, [
|
|
@@ -41,13 +41,13 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
41
41
|
disabled: h.disabled,
|
|
42
42
|
class: "button-default",
|
|
43
43
|
onClick: (y) => c(h.action, h.label)
|
|
44
|
-
}, At(h.label), 9, Pi)) :
|
|
44
|
+
}, At(h.label), 9, Pi)) : Wt("", !0)
|
|
45
45
|
]),
|
|
46
46
|
h.type == "dropdown" ? (M(), U("div", qi, [
|
|
47
47
|
$("div", Vi, [
|
|
48
48
|
$("div", {
|
|
49
49
|
onClick: (y) => u(d),
|
|
50
|
-
class:
|
|
50
|
+
class: ee(["cross", { rotated: i.value[d] }])
|
|
51
51
|
}, "×", 10, Li),
|
|
52
52
|
$("button", {
|
|
53
53
|
class: "button-default dropdown-title",
|
|
@@ -55,26 +55,26 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
55
55
|
}, At(h.label), 9, Ui)
|
|
56
56
|
]),
|
|
57
57
|
sr($("div", Fi, [
|
|
58
|
-
$("div",
|
|
59
|
-
(M(!0), U(ne, null,
|
|
58
|
+
$("div", Bi, [
|
|
59
|
+
(M(!0), U(ne, null, Ne(h.actions, (y) => (M(), U("div", {
|
|
60
60
|
key: y.label
|
|
61
61
|
}, [
|
|
62
62
|
y.action != null ? (M(), U("button", {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "dropdown-item",
|
|
65
65
|
onClick: (m) => c(y.action, y.label)
|
|
66
|
-
}, At(y.label), 9,
|
|
66
|
+
}, At(y.label), 9, Wi)) : y.link != null ? (M(), U("a", {
|
|
67
67
|
key: 1,
|
|
68
68
|
href: y.link
|
|
69
69
|
}, [
|
|
70
70
|
$("button", Hi, At(y.label), 1)
|
|
71
|
-
], 8, Ki)) :
|
|
71
|
+
], 8, Ki)) : Wt("", !0)
|
|
72
72
|
]))), 128))
|
|
73
73
|
])
|
|
74
74
|
], 512), [
|
|
75
|
-
[
|
|
75
|
+
[Wr, n.value[d]]
|
|
76
76
|
])
|
|
77
|
-
])) :
|
|
77
|
+
])) : Wt("", !0)
|
|
78
78
|
]))), 128))
|
|
79
79
|
], 2));
|
|
80
80
|
}
|
|
@@ -86,10 +86,10 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
86
86
|
}, zo = /* @__PURE__ */ Ao(Ji, [["__scopeId", "data-v-3d76328a"]]), Gi = { class: "command-palette-header" }, Qi = ["placeholder"], Yi = {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "command-palette-results"
|
|
89
|
-
},
|
|
89
|
+
}, Zi = ["onClick", "onMouseover"], Xi = { class: "result-title" }, ts = { class: "result-content" }, es = {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "command-palette-no-results"
|
|
92
|
-
}, Ro = /* @__PURE__ */
|
|
92
|
+
}, Ro = /* @__PURE__ */ Le({
|
|
93
93
|
__name: "CommandPalette",
|
|
94
94
|
props: {
|
|
95
95
|
search: { type: Function },
|
|
@@ -130,7 +130,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
130
130
|
};
|
|
131
131
|
return (l, f) => (M(), ar(zi, { to: "body" }, [
|
|
132
132
|
re(Ri, { name: "fade" }, {
|
|
133
|
-
default:
|
|
133
|
+
default: je(() => [
|
|
134
134
|
t.isOpen ? (M(), U("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "command-palette-overlay",
|
|
@@ -155,26 +155,26 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
155
155
|
])
|
|
156
156
|
]),
|
|
157
157
|
s.value.length ? (M(), U("div", Yi, [
|
|
158
|
-
(M(!0), U(ne, null,
|
|
158
|
+
(M(!0), U(ne, null, Ne(s.value, (h, d) => (M(), 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
|
}, [
|
|
164
|
-
$("div",
|
|
164
|
+
$("div", Xi, [
|
|
165
165
|
zr(l.$slots, "title", { result: h })
|
|
166
166
|
]),
|
|
167
167
|
$("div", ts, [
|
|
168
168
|
zr(l.$slots, "content", { result: h })
|
|
169
169
|
])
|
|
170
|
-
], 42,
|
|
170
|
+
], 42, Zi))), 128))
|
|
171
171
|
])) : n.value && !s.value.length ? (M(), U("div", es, [
|
|
172
172
|
zr(l.$slots, "empty", {}, () => [
|
|
173
173
|
ur(' No results found for "' + At(n.value) + '" ', 1)
|
|
174
174
|
])
|
|
175
|
-
])) :
|
|
175
|
+
])) : Wt("", !0)
|
|
176
176
|
])
|
|
177
|
-
])) :
|
|
177
|
+
])) : Wt("", !0)
|
|
178
178
|
]),
|
|
179
179
|
_: 3
|
|
180
180
|
})
|
|
@@ -182,14 +182,14 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
const Xt = typeof window < "u";
|
|
185
|
-
let
|
|
186
|
-
const cr = (t) =>
|
|
185
|
+
let Bt;
|
|
186
|
+
const cr = (t) => Bt = t;
|
|
187
187
|
process.env.NODE_ENV;
|
|
188
188
|
const Jr = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
|
|
189
189
|
/* istanbul ignore next */
|
|
190
190
|
/* @__PURE__ */ Symbol()
|
|
191
191
|
);
|
|
192
|
-
function
|
|
192
|
+
function Ht(t) {
|
|
193
193
|
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
194
194
|
}
|
|
195
195
|
var De;
|
|
@@ -202,7 +202,7 @@ function Co(t, e) {
|
|
|
202
202
|
if (!(r in t))
|
|
203
203
|
continue;
|
|
204
204
|
const o = t[r];
|
|
205
|
-
|
|
205
|
+
Ht(o) && Ht(n) && !ie(n) && !_r(n) ? t[r] = Co(o, n) : t[r] = n;
|
|
206
206
|
}
|
|
207
207
|
return t;
|
|
208
208
|
}
|
|
@@ -215,19 +215,19 @@ function Fn(t, e, r, n = No) {
|
|
|
215
215
|
};
|
|
216
216
|
return !r && un() && cn(o), o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Zt(t, ...e) {
|
|
219
219
|
t.forEach((r) => {
|
|
220
220
|
r(...e);
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
const rs = (t) => t(),
|
|
223
|
+
const rs = (t) => t(), Bn = /* @__PURE__ */ Symbol(), Cr = /* @__PURE__ */ Symbol();
|
|
224
224
|
function Gr(t, e) {
|
|
225
225
|
t instanceof Map && e instanceof Map ? e.forEach((r, n) => t.set(n, r)) : t instanceof Set && e instanceof Set && e.forEach(t.add, t);
|
|
226
226
|
for (const r in e) {
|
|
227
227
|
if (!e.hasOwnProperty(r))
|
|
228
228
|
continue;
|
|
229
229
|
const n = e[r], o = t[r];
|
|
230
|
-
|
|
230
|
+
Ht(o) && Ht(n) && t.hasOwnProperty(r) && !ie(n) && !_r(n) ? t[r] = Gr(o, n) : t[r] = n;
|
|
231
231
|
}
|
|
232
232
|
return t;
|
|
233
233
|
}
|
|
@@ -236,10 +236,10 @@ const ns = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia
|
|
|
236
236
|
/* @__PURE__ */ Symbol()
|
|
237
237
|
);
|
|
238
238
|
function os(t) {
|
|
239
|
-
return !
|
|
239
|
+
return !Ht(t) || !Object.prototype.hasOwnProperty.call(t, ns);
|
|
240
240
|
}
|
|
241
241
|
const { assign: wt } = Object;
|
|
242
|
-
function
|
|
242
|
+
function Wn(t) {
|
|
243
243
|
return !!(ie(t) && t.effect);
|
|
244
244
|
}
|
|
245
245
|
function Kn(t, e, r, n) {
|
|
@@ -288,7 +288,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
288
288
|
const z = A = /* @__PURE__ */ Symbol();
|
|
289
289
|
oe().then(() => {
|
|
290
290
|
A === z && (c = !0);
|
|
291
|
-
}), l = !0,
|
|
291
|
+
}), l = !0, Zt(f, b, n.state.value[t]);
|
|
292
292
|
}
|
|
293
293
|
const rt = i ? function() {
|
|
294
294
|
const { state: b } = r, z = b ? b() : {};
|
|
@@ -305,7 +305,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
305
305
|
s.stop(), f.clear(), h.clear(), n._s.delete(t);
|
|
306
306
|
}
|
|
307
307
|
const Ot = (S, b = "") => {
|
|
308
|
-
if (
|
|
308
|
+
if (Bn in S)
|
|
309
309
|
return S[Cr] = b, S;
|
|
310
310
|
const z = function() {
|
|
311
311
|
cr(n);
|
|
@@ -316,7 +316,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
316
316
|
function xt(_) {
|
|
317
317
|
P.add(_);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
Zt(h, {
|
|
320
320
|
args: J,
|
|
321
321
|
name: z[Cr],
|
|
322
322
|
store: O,
|
|
@@ -327,12 +327,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
327
327
|
try {
|
|
328
328
|
st = S.apply(this && this.$id === t ? this : O, J);
|
|
329
329
|
} catch (_) {
|
|
330
|
-
throw
|
|
330
|
+
throw Zt(P, _), _;
|
|
331
331
|
}
|
|
332
|
-
return st instanceof Promise ? st.then((_) => (
|
|
332
|
+
return st instanceof Promise ? st.then((_) => (Zt(k, _), _)).catch((_) => (Zt(P, _), Promise.reject(_))) : (Zt(k, st), st);
|
|
333
333
|
};
|
|
334
|
-
return z[
|
|
335
|
-
},
|
|
334
|
+
return z[Bn] = !0, z[Cr] = b, z;
|
|
335
|
+
}, Z = /* @__PURE__ */ Ie({
|
|
336
336
|
actions: {},
|
|
337
337
|
getters: {},
|
|
338
338
|
state: [],
|
|
@@ -357,7 +357,7 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
357
357
|
$dispose: lt
|
|
358
358
|
}, O = Do(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xt ? wt(
|
|
359
359
|
{
|
|
360
|
-
_hmrPayload:
|
|
360
|
+
_hmrPayload: Z,
|
|
361
361
|
_customProperties: Ie(/* @__PURE__ */ new Set())
|
|
362
362
|
// devtools custom properties
|
|
363
363
|
},
|
|
@@ -369,12 +369,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
369
369
|
const q = (n._a && n._a.runWithContext || rs)(() => n._e.run(() => (s = Ci()).run(() => e({ action: Ot }))));
|
|
370
370
|
for (const S in q) {
|
|
371
371
|
const b = q[S];
|
|
372
|
-
if (ie(b) && !
|
|
373
|
-
process.env.NODE_ENV !== "production" && o ? m.value[S] =
|
|
372
|
+
if (ie(b) && !Wn(b) || _r(b))
|
|
373
|
+
process.env.NODE_ENV !== "production" && o ? m.value[S] = Kt(q, S) : i || (y && os(b) && (ie(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && Z.state.push(S);
|
|
374
374
|
else if (typeof b == "function") {
|
|
375
375
|
const z = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
|
|
376
|
-
q[S] = z, process.env.NODE_ENV !== "production" && (
|
|
377
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
376
|
+
q[S] = z, process.env.NODE_ENV !== "production" && (Z.actions[S] = b), a.actions[S] = b;
|
|
377
|
+
} else process.env.NODE_ENV !== "production" && Wn(b) && (Z.getters[S] = i ? (
|
|
378
378
|
// @ts-expect-error
|
|
379
379
|
r.getters[S]
|
|
380
380
|
) : b, Xt && (q._getters || // @ts-expect-error: same
|
|
@@ -393,12 +393,12 @@ function Qr(t, e, r = {}, n, o, i) {
|
|
|
393
393
|
O._hotUpdating = !0, S._hmrPayload.state.forEach((b) => {
|
|
394
394
|
if (b in O.$state) {
|
|
395
395
|
const z = S.$state[b], J = O.$state[b];
|
|
396
|
-
typeof z == "object" &&
|
|
396
|
+
typeof z == "object" && Ht(z) && Ht(J) ? Co(z, J) : S.$state[b] = J;
|
|
397
397
|
}
|
|
398
|
-
O[b] =
|
|
398
|
+
O[b] = Kt(S.$state, b);
|
|
399
399
|
}), Object.keys(O.$state).forEach((b) => {
|
|
400
400
|
b in S.$state || delete O[b];
|
|
401
|
-
}), c = !1, l = !1, n.state.value[t] =
|
|
401
|
+
}), c = !1, l = !1, n.state.value[t] = Kt(S._hmrPayload, "hotState"), l = !0, oe().then(() => {
|
|
402
402
|
c = !0;
|
|
403
403
|
});
|
|
404
404
|
for (const b in S._hmrPayload.actions) {
|
|
@@ -459,11 +459,11 @@ function is(t, e, r) {
|
|
|
459
459
|
const u = Kr();
|
|
460
460
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
461
461
|
// pinia instance with getActivePinia()
|
|
462
|
-
(process.env.NODE_ENV === "test" &&
|
|
462
|
+
(process.env.NODE_ENV === "test" && Bt && Bt._testing ? null : s) || (u ? xe(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Bt)
|
|
463
463
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
464
464
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
465
465
|
This will fail in production.`);
|
|
466
|
-
s =
|
|
466
|
+
s = Bt, s._s.has(t) || (o ? Qr(t, e, n, s) : Kn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
|
|
467
467
|
const c = s._s.get(t);
|
|
468
468
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
469
469
|
const l = "__hot:" + t, f = o ? Qr(l, e, n, s, !0) : Kn(l, wt({}, n), s, !0);
|
|
@@ -492,7 +492,7 @@ function ss(t) {
|
|
|
492
492
|
t[n] = i;
|
|
493
493
|
}
|
|
494
494
|
}) : (ie(o) || _r(o)) && (r[n] = // ---
|
|
495
|
-
|
|
495
|
+
Kt(t, n));
|
|
496
496
|
}
|
|
497
497
|
return r;
|
|
498
498
|
}
|
|
@@ -501,7 +501,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
501
501
|
const us = Object.prototype.toString, cs = (t) => us.call(t) === "[object Object]", ls = () => {
|
|
502
502
|
};
|
|
503
503
|
function fs(...t) {
|
|
504
|
-
if (t.length !== 1) return
|
|
504
|
+
if (t.length !== 1) return Kt(...t);
|
|
505
505
|
const e = t[0];
|
|
506
506
|
return typeof e == "function" ? gr(ln(() => ({
|
|
507
507
|
get: e,
|
|
@@ -586,7 +586,7 @@ function Hn(...t) {
|
|
|
586
586
|
return [
|
|
587
587
|
(n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ms(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
|
|
588
588
|
Nr(St(r.value ? t[1] : t[0])),
|
|
589
|
-
Nr(
|
|
589
|
+
Nr(or(r.value ? t[2] : t[1])),
|
|
590
590
|
St(r.value ? t[3] : t[2])
|
|
591
591
|
];
|
|
592
592
|
}, ([n, o, i, s], a, u) => {
|
|
@@ -597,9 +597,9 @@ function Hn(...t) {
|
|
|
597
597
|
});
|
|
598
598
|
}, { flush: "post" });
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ze = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
|
|
601
601
|
function bs() {
|
|
602
|
-
return
|
|
602
|
+
return Ze in Ye || (Ye[Ze] = Ye[Ze] || {}), Ye[Ze];
|
|
603
603
|
}
|
|
604
604
|
function Ss(t, e) {
|
|
605
605
|
return ws[t] || e;
|
|
@@ -645,14 +645,14 @@ function Os(t, e, r, n = {}) {
|
|
|
645
645
|
var o;
|
|
646
646
|
const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = lr, eventFilter: h, onError: d = (k) => {
|
|
647
647
|
console.error(k);
|
|
648
|
-
}, initOnMounted: y } = n, m = (l ?
|
|
648
|
+
}, initOnMounted: y } = n, m = (l ? Ue : C)(e), A = N(() => St(t));
|
|
649
649
|
if (!r) try {
|
|
650
650
|
r = Ss("getDefaultStorage", () => lr?.localStorage)();
|
|
651
651
|
} catch (k) {
|
|
652
652
|
d(k);
|
|
653
653
|
}
|
|
654
654
|
if (!r) return m;
|
|
655
|
-
const T = St(e), rt = Is(T), lt = (o = n.serializer) !== null && o !== void 0 ? o : Es[rt], { pause: Ot, resume:
|
|
655
|
+
const T = St(e), rt = Is(T), lt = (o = n.serializer) !== null && o !== void 0 ? o : Es[rt], { pause: Ot, resume: Z } = ys(m, (k) => S(k), {
|
|
656
656
|
flush: i,
|
|
657
657
|
deep: s,
|
|
658
658
|
eventFilter: h
|
|
@@ -717,7 +717,7 @@ function Os(t, e, r, n = {}) {
|
|
|
717
717
|
} catch (P) {
|
|
718
718
|
d(P);
|
|
719
719
|
} finally {
|
|
720
|
-
k ? oe(
|
|
720
|
+
k ? oe(Z) : Z();
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -891,7 +891,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
891
891
|
newestOperation: I.length > 0 ? new Date(Math.max(...I.map((E) => E.getTime()))) : void 0
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Z() {
|
|
895
895
|
e.value = [], r.value = -1;
|
|
896
896
|
}
|
|
897
897
|
function mt(_, I) {
|
|
@@ -1035,14 +1035,14 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
1035
1035
|
cancelBatch: m,
|
|
1036
1036
|
undo: A,
|
|
1037
1037
|
redo: T,
|
|
1038
|
-
clear:
|
|
1038
|
+
clear: Z,
|
|
1039
1039
|
getOperationsFor: mt,
|
|
1040
1040
|
getSnapshot: Ot,
|
|
1041
1041
|
markIrreversible: O,
|
|
1042
1042
|
logAction: jt
|
|
1043
1043
|
};
|
|
1044
1044
|
});
|
|
1045
|
-
|
|
1045
|
+
class Ae {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* The root FieldTriggerEngine instance
|
|
1048
1048
|
*/
|
|
@@ -1063,9 +1063,9 @@ let As = class or {
|
|
|
1063
1063
|
* @param options - Configuration options for the field trigger engine
|
|
1064
1064
|
*/
|
|
1065
1065
|
constructor(e = {}) {
|
|
1066
|
-
if (
|
|
1067
|
-
return
|
|
1068
|
-
|
|
1066
|
+
if (Ae._root)
|
|
1067
|
+
return Ae._root;
|
|
1068
|
+
Ae._root = this, this.options = {
|
|
1069
1069
|
defaultTimeout: e.defaultTimeout ?? 5e3,
|
|
1070
1070
|
debug: e.debug ?? !1,
|
|
1071
1071
|
enableRollback: e.enableRollback ?? !0,
|
|
@@ -1385,9 +1385,9 @@ let As = class or {
|
|
|
1385
1385
|
throw console.error("[FieldTriggers] Failed to restore snapshot:", n), n;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
}
|
|
1388
|
+
}
|
|
1389
1389
|
function Yr(t) {
|
|
1390
|
-
return new
|
|
1390
|
+
return new Ae(t);
|
|
1391
1391
|
}
|
|
1392
1392
|
function Gn() {
|
|
1393
1393
|
try {
|
|
@@ -1396,14 +1396,14 @@ function Gn() {
|
|
|
1396
1396
|
return null;
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
class
|
|
1399
|
+
class te {
|
|
1400
1400
|
static instance;
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Gets the singleton instance of HST
|
|
1403
1403
|
* @returns The HST singleton instance
|
|
1404
1404
|
*/
|
|
1405
1405
|
static getInstance() {
|
|
1406
|
-
return
|
|
1406
|
+
return te.instance || (te.instance = new te()), te.instance;
|
|
1407
1407
|
}
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Gets the global registry instance
|
|
@@ -1444,7 +1444,7 @@ class fr {
|
|
|
1444
1444
|
doctype;
|
|
1445
1445
|
hst;
|
|
1446
1446
|
constructor(e, r, n = "", o = null) {
|
|
1447
|
-
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst =
|
|
1447
|
+
return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst = te.getInstance(), new Proxy(this, {
|
|
1448
1448
|
get(i, s) {
|
|
1449
1449
|
if (s in i) return Reflect.get(i, s);
|
|
1450
1450
|
const a = String(s);
|
|
@@ -1677,10 +1677,10 @@ class fr {
|
|
|
1677
1677
|
return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function As(t, e) {
|
|
1681
1681
|
return new fr(t, e, "", null);
|
|
1682
1682
|
}
|
|
1683
|
-
class
|
|
1683
|
+
class ze {
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Singleton instance of Stonecrop. Only one Stonecrop instance can exist
|
|
1686
1686
|
* per application, ensuring consistent HST state and registry access.
|
|
@@ -1702,9 +1702,9 @@ class Ae {
|
|
|
1702
1702
|
* @param options - Options including the data client (can be set later via setClient)
|
|
1703
1703
|
*/
|
|
1704
1704
|
constructor(e, r, n) {
|
|
1705
|
-
if (
|
|
1706
|
-
return
|
|
1707
|
-
|
|
1705
|
+
if (ze._root)
|
|
1706
|
+
return ze._root;
|
|
1707
|
+
ze._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Set the data client for fetching doctype metadata and records.
|
|
@@ -1743,7 +1743,7 @@ class Ae {
|
|
|
1743
1743
|
const e = {};
|
|
1744
1744
|
Object.keys(this.registry.registry).forEach((r) => {
|
|
1745
1745
|
e[r] = {};
|
|
1746
|
-
}), this.hstStore =
|
|
1746
|
+
}), this.hstStore = As(Do(e), "StonecropStore");
|
|
1747
1747
|
}
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Setup automatic sync with Registry when doctypes are added
|
|
@@ -2080,11 +2080,11 @@ function Qn(t, e) {
|
|
|
2080
2080
|
const r = new Error(t);
|
|
2081
2081
|
return r.code = e, r;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function zs(t) {
|
|
2084
2084
|
t || (t = {});
|
|
2085
|
-
const e = t.registry ||
|
|
2085
|
+
const e = t.registry || xe("$registry"), r = xe("$stonecrop"), n = C(), o = C(), i = C({}), s = C(), a = C(), u = C([]), c = C(!1), l = C(null), f = C(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || ze._root;
|
|
2086
2086
|
y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
2087
|
-
const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0),
|
|
2087
|
+
const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), Z = N(
|
|
2088
2088
|
() => n.value?.getOperationLogStore().undoRedoState ?? {
|
|
2089
2089
|
canUndo: !1,
|
|
2090
2090
|
canRedo: !1,
|
|
@@ -2138,9 +2138,9 @@ function Rs(t) {
|
|
|
2138
2138
|
}, R = await e.getMeta?.(D);
|
|
2139
2139
|
if (R) {
|
|
2140
2140
|
if (e.addDoctype(R), n.value.setup(R), s.value = R, a.value = g, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(R)), g && g !== "new") {
|
|
2141
|
-
const
|
|
2142
|
-
if (
|
|
2143
|
-
i.value =
|
|
2141
|
+
const X = n.value.getRecordById(R, g);
|
|
2142
|
+
if (X)
|
|
2143
|
+
i.value = X.get("") || {};
|
|
2144
2144
|
else
|
|
2145
2145
|
try {
|
|
2146
2146
|
await n.value.getRecord(R, g);
|
|
@@ -2218,20 +2218,20 @@ function Rs(t) {
|
|
|
2218
2218
|
try {
|
|
2219
2219
|
const g = p.path.split(".");
|
|
2220
2220
|
if (g.length >= 2) {
|
|
2221
|
-
const
|
|
2222
|
-
if (o.value.has(`${
|
|
2223
|
-
const
|
|
2224
|
-
let Ar =
|
|
2225
|
-
for (let
|
|
2226
|
-
if (Ar += `.${Dr[
|
|
2227
|
-
const Di = Dr[
|
|
2221
|
+
const X = g[0], Y = g[1];
|
|
2222
|
+
if (o.value.has(`${X}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), g.length > 3) {
|
|
2223
|
+
const Ge = `${X}.${Y}`, Dr = g.slice(2);
|
|
2224
|
+
let Ar = Ge;
|
|
2225
|
+
for (let Qe = 0; Qe < Dr.length - 1; Qe++)
|
|
2226
|
+
if (Ar += `.${Dr[Qe]}`, !o.value.has(Ar)) {
|
|
2227
|
+
const Di = Dr[Qe + 1], Ai = !isNaN(Number(Di));
|
|
2228
2228
|
o.value.set(Ar, Ai ? [] : {});
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
2232
|
o.value.set(p.path, p.value);
|
|
2233
2233
|
const D = p.fieldname.split("."), R = { ...i.value };
|
|
2234
|
-
D.length === 1 ? R[D[0]] = p.value :
|
|
2234
|
+
D.length === 1 ? R[D[0]] = p.value : Rs(R, D, p.value), i.value = R;
|
|
2235
2235
|
} catch {
|
|
2236
2236
|
}
|
|
2237
2237
|
};
|
|
@@ -2260,7 +2260,7 @@ function Rs(t) {
|
|
|
2260
2260
|
}), v = {
|
|
2261
2261
|
operations: m,
|
|
2262
2262
|
currentIndex: A,
|
|
2263
|
-
undoRedoState:
|
|
2263
|
+
undoRedoState: Z,
|
|
2264
2264
|
canUndo: T,
|
|
2265
2265
|
canRedo: rt,
|
|
2266
2266
|
undoCount: lt,
|
|
@@ -2332,7 +2332,7 @@ function xr(t, e, r, n) {
|
|
|
2332
2332
|
{ deep: !0 }
|
|
2333
2333
|
);
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Rs(t, e, r) {
|
|
2336
2336
|
let n = t;
|
|
2337
2337
|
for (let i = 0; i < e.length - 1; i++) {
|
|
2338
2338
|
const s = e[i];
|
|
@@ -2347,12 +2347,12 @@ function It(t) {
|
|
|
2347
2347
|
t[hr]);
|
|
2348
2348
|
}
|
|
2349
2349
|
var pr = "@@__IMMUTABLE_KEYED__@@";
|
|
2350
|
-
function
|
|
2350
|
+
function W(t) {
|
|
2351
2351
|
return !!(t && // @ts-expect-error: maybeKeyed is typed as `{}`, need to change in 6.0 to `maybeKeyed && typeof maybeKeyed === 'object' && IS_KEYED_SYMBOL in maybeKeyed`
|
|
2352
2352
|
t[pr]);
|
|
2353
2353
|
}
|
|
2354
2354
|
function fn(t) {
|
|
2355
|
-
return
|
|
2355
|
+
return W(t) || It(t);
|
|
2356
2356
|
}
|
|
2357
2357
|
var $o = "@@__IMMUTABLE_ITERABLE__@@";
|
|
2358
2358
|
function yt(t) {
|
|
@@ -2363,10 +2363,10 @@ var nt = function(t) {
|
|
|
2363
2363
|
return yt(t) ? t : ft(t);
|
|
2364
2364
|
}, Et = /* @__PURE__ */ (function(t) {
|
|
2365
2365
|
function e(r) {
|
|
2366
|
-
return
|
|
2366
|
+
return W(r) ? r : Ut(r);
|
|
2367
2367
|
}
|
|
2368
2368
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2369
|
-
})(nt),
|
|
2369
|
+
})(nt), Jt = /* @__PURE__ */ (function(t) {
|
|
2370
2370
|
function e(r) {
|
|
2371
2371
|
return It(r) ? r : kt(r);
|
|
2372
2372
|
}
|
|
@@ -2378,9 +2378,9 @@ var nt = function(t) {
|
|
|
2378
2378
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
|
|
2379
2379
|
})(nt);
|
|
2380
2380
|
nt.Keyed = Et;
|
|
2381
|
-
nt.Indexed =
|
|
2381
|
+
nt.Indexed = Jt;
|
|
2382
2382
|
nt.Set = de;
|
|
2383
|
-
var ve = 0, _t = 1, gt = 2,
|
|
2383
|
+
var ve = 0, _t = 1, gt = 2, Zr = typeof Symbol == "function" && Symbol.iterator, Mo = "@@iterator", mr = Zr || Mo, x = function(t) {
|
|
2384
2384
|
this.next = t;
|
|
2385
2385
|
};
|
|
2386
2386
|
x.prototype.toString = function() {
|
|
@@ -2413,26 +2413,26 @@ function Yn(t) {
|
|
|
2413
2413
|
return !!(t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2414
2414
|
typeof t.next == "function");
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Xr(t) {
|
|
2417
2417
|
var e = wr(t);
|
|
2418
2418
|
return e && e.call(t);
|
|
2419
2419
|
}
|
|
2420
2420
|
function wr(t) {
|
|
2421
2421
|
var e = t && // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2422
|
-
(
|
|
2422
|
+
(Zr && t[Zr] || // @ts-expect-error: maybeIterator is typed as `{}`
|
|
2423
2423
|
t[Mo]);
|
|
2424
2424
|
if (typeof e == "function")
|
|
2425
2425
|
return e;
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2427
|
+
function Cs(t) {
|
|
2428
2428
|
var e = wr(t);
|
|
2429
2429
|
return e && e === t.entries;
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Ns(t) {
|
|
2432
2432
|
var e = wr(t);
|
|
2433
2433
|
return e && e === t.keys;
|
|
2434
2434
|
}
|
|
2435
|
-
var
|
|
2435
|
+
var Fe = "delete", L = 5, dt = 1 << L, at = dt - 1, j = {};
|
|
2436
2436
|
function tn() {
|
|
2437
2437
|
return { value: !1 };
|
|
2438
2438
|
}
|
|
@@ -2459,7 +2459,7 @@ function Po() {
|
|
|
2459
2459
|
function br(t, e, r) {
|
|
2460
2460
|
return (t === 0 && !Vo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function Be(t, e) {
|
|
2463
2463
|
return qo(t, e, 0);
|
|
2464
2464
|
}
|
|
2465
2465
|
function Sr(t, e) {
|
|
@@ -2472,12 +2472,12 @@ function Vo(t) {
|
|
|
2472
2472
|
return t < 0 || t === 0 && 1 / t === -1 / 0;
|
|
2473
2473
|
}
|
|
2474
2474
|
var Lo = "@@__IMMUTABLE_RECORD__@@";
|
|
2475
|
-
function
|
|
2475
|
+
function Gt(t) {
|
|
2476
2476
|
return !!(t && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
|
|
2477
2477
|
t[Lo]);
|
|
2478
2478
|
}
|
|
2479
2479
|
function Ct(t) {
|
|
2480
|
-
return yt(t) ||
|
|
2480
|
+
return yt(t) || Gt(t);
|
|
2481
2481
|
}
|
|
2482
2482
|
var Vt = "@@__IMMUTABLE_ORDERED__@@";
|
|
2483
2483
|
function Rt(t) {
|
|
@@ -2506,7 +2506,7 @@ function Fo(t) {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
var ft = /* @__PURE__ */ (function(t) {
|
|
2508
2508
|
function e(r) {
|
|
2509
|
-
return r == null ? vn() : Ct(r) ? r.toSeq() :
|
|
2509
|
+
return r == null ? vn() : Ct(r) ? r.toSeq() : xs(r);
|
|
2510
2510
|
}
|
|
2511
2511
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
|
|
2512
2512
|
return this;
|
|
@@ -2540,14 +2540,14 @@ var ft = /* @__PURE__ */ (function(t) {
|
|
|
2540
2540
|
}, e;
|
|
2541
2541
|
})(nt), Ut = /* @__PURE__ */ (function(t) {
|
|
2542
2542
|
function e(r) {
|
|
2543
|
-
return r == null ? vn().toKeyedSeq() : yt(r) ?
|
|
2543
|
+
return r == null ? vn().toKeyedSeq() : yt(r) ? W(r) ? r.toSeq() : r.fromEntrySeq() : Gt(r) ? r.toSeq() : yn(r);
|
|
2544
2544
|
}
|
|
2545
2545
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
|
|
2546
2546
|
return this;
|
|
2547
2547
|
}, e;
|
|
2548
2548
|
})(ft), kt = /* @__PURE__ */ (function(t) {
|
|
2549
2549
|
function e(r) {
|
|
2550
|
-
return r == null ? vn() : yt(r) ?
|
|
2550
|
+
return r == null ? vn() : yt(r) ? W(r) ? r.entrySeq() : r.toIndexedSeq() : Gt(r) ? r.toSeq().entrySeq() : Bo(r);
|
|
2551
2551
|
}
|
|
2552
2552
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
2553
2553
|
return e(arguments);
|
|
@@ -2622,14 +2622,14 @@ var ae = /* @__PURE__ */ (function(t) {
|
|
|
2622
2622
|
}, e;
|
|
2623
2623
|
})(Ut);
|
|
2624
2624
|
dn.prototype[Vt] = !0;
|
|
2625
|
-
var
|
|
2625
|
+
var js = /* @__PURE__ */ (function(t) {
|
|
2626
2626
|
function e(r) {
|
|
2627
2627
|
this._collection = r, this.size = r.length || r.size;
|
|
2628
2628
|
}
|
|
2629
2629
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
|
|
2630
2630
|
if (n)
|
|
2631
2631
|
return this.cacheResult().__iterate(r, n);
|
|
2632
|
-
var o = this._collection, i =
|
|
2632
|
+
var o = this._collection, i = Xr(o), s = 0;
|
|
2633
2633
|
if (Yn(i))
|
|
2634
2634
|
for (var a; !(a = i.next()).done && r(a.value, s++, this) !== !1; )
|
|
2635
2635
|
;
|
|
@@ -2637,7 +2637,7 @@ var xs = /* @__PURE__ */ (function(t) {
|
|
|
2637
2637
|
}, e.prototype.__iteratorUncached = function(r, n) {
|
|
2638
2638
|
if (n)
|
|
2639
2639
|
return this.cacheResult().__iterator(r, n);
|
|
2640
|
-
var o = this._collection, i =
|
|
2640
|
+
var o = this._collection, i = Xr(o);
|
|
2641
2641
|
if (!Yn(i))
|
|
2642
2642
|
return new x(ut);
|
|
2643
2643
|
var s = 0;
|
|
@@ -2646,9 +2646,9 @@ var xs = /* @__PURE__ */ (function(t) {
|
|
|
2646
2646
|
return a.done ? a : K(r, s++, a.value);
|
|
2647
2647
|
});
|
|
2648
2648
|
}, e;
|
|
2649
|
-
})(kt),
|
|
2649
|
+
})(kt), Zn;
|
|
2650
2650
|
function vn() {
|
|
2651
|
-
return
|
|
2651
|
+
return Zn || (Zn = new ae([]));
|
|
2652
2652
|
}
|
|
2653
2653
|
function yn(t) {
|
|
2654
2654
|
var e = _n(t);
|
|
@@ -2660,7 +2660,7 @@ function yn(t) {
|
|
|
2660
2660
|
"Expected Array or collection object of [k, v] entries, or keyed object: " + t
|
|
2661
2661
|
);
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2663
|
+
function Bo(t) {
|
|
2664
2664
|
var e = _n(t);
|
|
2665
2665
|
if (e)
|
|
2666
2666
|
return e;
|
|
@@ -2668,10 +2668,10 @@ function Wo(t) {
|
|
|
2668
2668
|
"Expected Array or collection object of values: " + t
|
|
2669
2669
|
);
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function xs(t) {
|
|
2672
2672
|
var e = _n(t);
|
|
2673
2673
|
if (e)
|
|
2674
|
-
return
|
|
2674
|
+
return Cs(t) ? e.fromEntrySeq() : Ns(t) ? e.toSetSeq() : e;
|
|
2675
2675
|
if (typeof t == "object")
|
|
2676
2676
|
return new dn(t);
|
|
2677
2677
|
throw new TypeError(
|
|
@@ -2679,12 +2679,12 @@ function $s(t) {
|
|
|
2679
2679
|
);
|
|
2680
2680
|
}
|
|
2681
2681
|
function _n(t) {
|
|
2682
|
-
return Fo(t) ? new ae(t) : To(t) ? new
|
|
2682
|
+
return Fo(t) ? new ae(t) : To(t) ? new js(t) : void 0;
|
|
2683
2683
|
}
|
|
2684
2684
|
function We() {
|
|
2685
2685
|
return this.__ensureOwner();
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Ke() {
|
|
2688
2688
|
return this.__ownerID ? this : this.__ensureOwner(new hn());
|
|
2689
2689
|
}
|
|
2690
2690
|
var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
|
|
@@ -2695,40 +2695,40 @@ var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
|
|
|
2695
2695
|
function Ir(t) {
|
|
2696
2696
|
return t >>> 1 & 1073741824 | t & 3221225471;
|
|
2697
2697
|
}
|
|
2698
|
-
var
|
|
2698
|
+
var $s = Object.prototype.valueOf;
|
|
2699
2699
|
function ht(t) {
|
|
2700
2700
|
if (t == null)
|
|
2701
|
-
return
|
|
2701
|
+
return Xn(t);
|
|
2702
2702
|
if (typeof t.hashCode == "function")
|
|
2703
2703
|
return Ir(t.hashCode(t));
|
|
2704
|
-
var e =
|
|
2704
|
+
var e = Ls(t);
|
|
2705
2705
|
if (e == null)
|
|
2706
|
-
return
|
|
2706
|
+
return Xn(e);
|
|
2707
2707
|
switch (typeof e) {
|
|
2708
2708
|
case "boolean":
|
|
2709
2709
|
return e ? 1108378657 : 1108378656;
|
|
2710
2710
|
case "number":
|
|
2711
|
-
return
|
|
2711
|
+
return Ms(e);
|
|
2712
2712
|
case "string":
|
|
2713
|
-
return e.length >
|
|
2713
|
+
return e.length > Us ? Ts(e) : en(e);
|
|
2714
2714
|
case "object":
|
|
2715
2715
|
case "function":
|
|
2716
|
-
return Vs(e);
|
|
2717
|
-
case "symbol":
|
|
2718
2716
|
return qs(e);
|
|
2717
|
+
case "symbol":
|
|
2718
|
+
return Ps(e);
|
|
2719
2719
|
default:
|
|
2720
2720
|
if (typeof e.toString == "function")
|
|
2721
2721
|
return en(e.toString());
|
|
2722
2722
|
throw new Error("Value type " + typeof e + " cannot be hashed.");
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2725
|
+
function Xn(t) {
|
|
2726
2726
|
return t === null ? 1108378658 : (
|
|
2727
2727
|
/* undefined */
|
|
2728
2728
|
1108378659
|
|
2729
2729
|
);
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function Ms(t) {
|
|
2732
2732
|
if (t !== t || t === 1 / 0)
|
|
2733
2733
|
return 0;
|
|
2734
2734
|
var e = t | 0;
|
|
@@ -2736,24 +2736,24 @@ function Ts(t) {
|
|
|
2736
2736
|
t /= 4294967295, e ^= t;
|
|
2737
2737
|
return Ir(e);
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function Ts(t) {
|
|
2740
2740
|
var e = Tr[t];
|
|
2741
|
-
return e === void 0 && (e = en(t), Mr ===
|
|
2741
|
+
return e === void 0 && (e = en(t), Mr === Fs && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
|
|
2742
2742
|
}
|
|
2743
2743
|
function en(t) {
|
|
2744
2744
|
for (var e = 0, r = 0; r < t.length; r++)
|
|
2745
2745
|
e = 31 * e + t.charCodeAt(r) | 0;
|
|
2746
2746
|
return Ir(e);
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2748
|
+
function Ps(t) {
|
|
2749
2749
|
var e = ro[t];
|
|
2750
|
-
return e !== void 0 || (e =
|
|
2750
|
+
return e !== void 0 || (e = Wo(), ro[t] = e), e;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function qs(t) {
|
|
2753
2753
|
var e;
|
|
2754
|
-
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e =
|
|
2754
|
+
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Vs(t), e !== void 0)))
|
|
2755
2755
|
return e;
|
|
2756
|
-
if (e =
|
|
2756
|
+
if (e = Wo(), rn)
|
|
2757
2757
|
nn.set(t, e);
|
|
2758
2758
|
else {
|
|
2759
2759
|
if (to !== void 0 && to(t) === !1)
|
|
@@ -2787,7 +2787,7 @@ var to = Object.isExtensible, eo = (function() {
|
|
|
2787
2787
|
return !1;
|
|
2788
2788
|
}
|
|
2789
2789
|
})();
|
|
2790
|
-
function
|
|
2790
|
+
function Vs(t) {
|
|
2791
2791
|
if (t && t.nodeType > 0)
|
|
2792
2792
|
switch (t.nodeType) {
|
|
2793
2793
|
case 1:
|
|
@@ -2796,13 +2796,13 @@ function Ls(t) {
|
|
|
2796
2796
|
return t.documentElement && t.documentElement.uniqueID;
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return t.valueOf !==
|
|
2799
|
+
function Ls(t) {
|
|
2800
|
+
return t.valueOf !== $s && typeof t.valueOf == "function" ? (
|
|
2801
2801
|
// @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
|
|
2802
2802
|
t.valueOf(t)
|
|
2803
2803
|
) : t;
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function Wo() {
|
|
2806
2806
|
var t = ++$r;
|
|
2807
2807
|
return $r & 1073741824 && ($r = 0), t;
|
|
2808
2808
|
}
|
|
@@ -2810,7 +2810,7 @@ var rn = typeof WeakMap == "function", nn;
|
|
|
2810
2810
|
rn && (nn = /* @__PURE__ */ new WeakMap());
|
|
2811
2811
|
var ro = /* @__PURE__ */ Object.create(null), $r = 0, Ft = "__immutablehash__";
|
|
2812
2812
|
typeof Symbol == "function" && (Ft = Symbol(Ft));
|
|
2813
|
-
var
|
|
2813
|
+
var Us = 16, Fs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
|
|
2814
2814
|
function e(r, n) {
|
|
2815
2815
|
this._iter = r, this._useKeys = n, this.size = r.size;
|
|
2816
2816
|
}
|
|
@@ -3070,8 +3070,8 @@ function Bs(t, e, r) {
|
|
|
3070
3070
|
});
|
|
3071
3071
|
}), n.asImmutable();
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3074
|
-
var n =
|
|
3073
|
+
function Ws(t, e, r) {
|
|
3074
|
+
var n = W(t), o = (Rt(t) ? Mt() : ge()).asMutable();
|
|
3075
3075
|
t.__iterate(function(s, a) {
|
|
3076
3076
|
o.update(
|
|
3077
3077
|
e.call(r, s, a, t),
|
|
@@ -3085,8 +3085,8 @@ function Ks(t, e, r) {
|
|
|
3085
3085
|
return V(t, i(s));
|
|
3086
3086
|
}).asImmutable();
|
|
3087
3087
|
}
|
|
3088
|
-
function
|
|
3089
|
-
var n =
|
|
3088
|
+
function Ks(t, e, r) {
|
|
3089
|
+
var n = W(t), o = [[], []];
|
|
3090
3090
|
t.__iterate(function(s, a) {
|
|
3091
3091
|
o[e.call(r, s, a, t) ? 1 : 0].push(
|
|
3092
3092
|
n ? [a, s] : s
|
|
@@ -3103,7 +3103,7 @@ function mn(t, e, r, n) {
|
|
|
3103
3103
|
return t;
|
|
3104
3104
|
if (typeof o > "u" && (e < 0 || r < 0))
|
|
3105
3105
|
return mn(t.toSeq().cacheResult(), e, r, n);
|
|
3106
|
-
var i =
|
|
3106
|
+
var i = Be(e, o), s = Sr(r, o), a = s - i, u;
|
|
3107
3107
|
a === a && (u = a < 0 ? 0 : a);
|
|
3108
3108
|
var c = Nt(t);
|
|
3109
3109
|
return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
|
|
@@ -3135,7 +3135,7 @@ function mn(t, e, r, n) {
|
|
|
3135
3135
|
});
|
|
3136
3136
|
}, c;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Hs(t, e, r) {
|
|
3139
3139
|
var n = Nt(t);
|
|
3140
3140
|
return n.__iterateUncached = function(o, i) {
|
|
3141
3141
|
var s = this;
|
|
@@ -3163,7 +3163,7 @@ function Js(t, e, r) {
|
|
|
3163
3163
|
});
|
|
3164
3164
|
}, n;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Zo(t, e, r, n) {
|
|
3167
3167
|
var o = Nt(t);
|
|
3168
3168
|
return o.__iterateUncached = function(i, s) {
|
|
3169
3169
|
var a = this;
|
|
@@ -3191,7 +3191,7 @@ function Xo(t, e, r, n) {
|
|
|
3191
3191
|
});
|
|
3192
3192
|
}, o;
|
|
3193
3193
|
}
|
|
3194
|
-
var
|
|
3194
|
+
var Js = /* @__PURE__ */ (function(t) {
|
|
3195
3195
|
function e(r) {
|
|
3196
3196
|
this._wrappedIterables = r.flatMap(function(n) {
|
|
3197
3197
|
return n._wrappedIterables ? n._wrappedIterables : [n];
|
|
@@ -3207,7 +3207,7 @@ var Gs = /* @__PURE__ */ (function(t) {
|
|
|
3207
3207
|
if (this._wrappedIterables.length !== 0) {
|
|
3208
3208
|
if (n)
|
|
3209
3209
|
return this.cacheResult().__iterate(r, n);
|
|
3210
|
-
for (var o = 0, i =
|
|
3210
|
+
for (var o = 0, i = W(this), s = i ? gt : _t, a = this._wrappedIterables[o].__iterator(
|
|
3211
3211
|
s,
|
|
3212
3212
|
n
|
|
3213
3213
|
), u = !0, c = 0; u; ) {
|
|
@@ -3247,9 +3247,9 @@ var Gs = /* @__PURE__ */ (function(t) {
|
|
|
3247
3247
|
});
|
|
3248
3248
|
}, e;
|
|
3249
3249
|
})(ft);
|
|
3250
|
-
function
|
|
3251
|
-
var r =
|
|
3252
|
-
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) :
|
|
3250
|
+
function Gs(t, e) {
|
|
3251
|
+
var r = W(t), n = [t].concat(e).map(function(i) {
|
|
3252
|
+
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Bo(Array.isArray(i) ? i : [i]), i;
|
|
3253
3253
|
}).filter(function(i) {
|
|
3254
3254
|
return i.size !== 0;
|
|
3255
3255
|
});
|
|
@@ -3257,12 +3257,12 @@ function Qs(t, e) {
|
|
|
3257
3257
|
return t;
|
|
3258
3258
|
if (n.length === 1) {
|
|
3259
3259
|
var o = n[0];
|
|
3260
|
-
if (o === t || r &&
|
|
3260
|
+
if (o === t || r && W(o) || It(t) && It(o))
|
|
3261
3261
|
return o;
|
|
3262
3262
|
}
|
|
3263
|
-
return new
|
|
3263
|
+
return new Js(n);
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function Xo(t, e, r) {
|
|
3266
3266
|
var n = Nt(t);
|
|
3267
3267
|
return n.__iterateUncached = function(o, i) {
|
|
3268
3268
|
if (i)
|
|
@@ -3295,13 +3295,13 @@ function Zo(t, e, r) {
|
|
|
3295
3295
|
});
|
|
3296
3296
|
}, n;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function Qs(t, e, r) {
|
|
3299
3299
|
var n = wn(t);
|
|
3300
3300
|
return t.toSeq().map(function(o, i) {
|
|
3301
3301
|
return n(e.call(r, o, i, t));
|
|
3302
3302
|
}).flatten(!0);
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Ys(t, e) {
|
|
3305
3305
|
var r = Nt(t);
|
|
3306
3306
|
return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
|
|
3307
3307
|
var i = this, s = 0;
|
|
@@ -3320,7 +3320,7 @@ function Xs(t, e) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
function ue(t, e, r) {
|
|
3322
3322
|
e || (e = ti);
|
|
3323
|
-
var n =
|
|
3323
|
+
var n = W(t), o = 0, i = t.toSeq().map(function(s, a) {
|
|
3324
3324
|
return [a, s, o++, r ? r(s, a, t) : s];
|
|
3325
3325
|
}).valueSeq().toArray();
|
|
3326
3326
|
return i.sort(function(s, a) {
|
|
@@ -3333,7 +3333,7 @@ function ue(t, e, r) {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
), n ? Ut(i) : It(t) ? kt(i) : _e(i);
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function tr(t, e, r) {
|
|
3337
3337
|
if (e || (e = ti), r) {
|
|
3338
3338
|
var n = t.toSeq().map(function(o, i) {
|
|
3339
3339
|
return [o, r(o, i, t)];
|
|
@@ -3350,7 +3350,7 @@ function no(t, e, r) {
|
|
|
3350
3350
|
var n = t(r, e);
|
|
3351
3351
|
return n === 0 && r !== e && (r == null || r !== r) || n > 0;
|
|
3352
3352
|
}
|
|
3353
|
-
function
|
|
3353
|
+
function er(t, e, r, n) {
|
|
3354
3354
|
var o = Nt(t), i = new ae(r).map(function(s) {
|
|
3355
3355
|
return s.size;
|
|
3356
3356
|
});
|
|
@@ -3361,7 +3361,7 @@ function tr(t, e, r, n) {
|
|
|
3361
3361
|
}, o.__iteratorUncached = function(s, a) {
|
|
3362
3362
|
var u = r.map(
|
|
3363
3363
|
function(f) {
|
|
3364
|
-
return f = nt(f),
|
|
3364
|
+
return f = nt(f), Xr(a ? f.reverse() : f);
|
|
3365
3365
|
}
|
|
3366
3366
|
), c = 0, l = !1;
|
|
3367
3367
|
return new x(function() {
|
|
@@ -3393,11 +3393,11 @@ function oo(t) {
|
|
|
3393
3393
|
throw new TypeError("Expected [K, V] tuple: " + t);
|
|
3394
3394
|
}
|
|
3395
3395
|
function wn(t) {
|
|
3396
|
-
return
|
|
3396
|
+
return W(t) ? Et : It(t) ? Jt : de;
|
|
3397
3397
|
}
|
|
3398
3398
|
function Nt(t) {
|
|
3399
3399
|
return Object.create(
|
|
3400
|
-
(
|
|
3400
|
+
(W(t) ? Ut : It(t) ? kt : _e).prototype
|
|
3401
3401
|
);
|
|
3402
3402
|
}
|
|
3403
3403
|
function bn() {
|
|
@@ -3448,7 +3448,7 @@ function oi(t, e, r) {
|
|
|
3448
3448
|
var i = Et(e[o]);
|
|
3449
3449
|
i.size !== 0 && n.push(i);
|
|
3450
3450
|
}
|
|
3451
|
-
return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ?
|
|
3451
|
+
return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ? Gt(t) ? t : t.constructor(n[0]) : t.withMutations(function(s) {
|
|
3452
3452
|
for (var a = r ? function(c, l) {
|
|
3453
3453
|
ei(
|
|
3454
3454
|
s,
|
|
@@ -3465,7 +3465,7 @@ function oi(t, e, r) {
|
|
|
3465
3465
|
});
|
|
3466
3466
|
}
|
|
3467
3467
|
var Zs = Object.prototype.toString;
|
|
3468
|
-
function
|
|
3468
|
+
function Xs(t) {
|
|
3469
3469
|
if (!t || typeof t != "object" || Zs.call(t) !== "[object Object]")
|
|
3470
3470
|
return !1;
|
|
3471
3471
|
var e = Object.getPrototypeOf(t);
|
|
@@ -3476,7 +3476,7 @@ function ta(t) {
|
|
|
3476
3476
|
return r === e;
|
|
3477
3477
|
}
|
|
3478
3478
|
function Lt(t) {
|
|
3479
|
-
return typeof t == "object" && (Ct(t) || Array.isArray(t) ||
|
|
3479
|
+
return typeof t == "object" && (Ct(t) || Array.isArray(t) || Xs(t));
|
|
3480
3480
|
}
|
|
3481
3481
|
function Dt(t, e) {
|
|
3482
3482
|
e = e || 0;
|
|
@@ -3493,7 +3493,7 @@ function dr(t) {
|
|
|
3493
3493
|
return e;
|
|
3494
3494
|
}
|
|
3495
3495
|
function Sn(t, e, r) {
|
|
3496
|
-
return In(t, e,
|
|
3496
|
+
return In(t, e, ta(r));
|
|
3497
3497
|
}
|
|
3498
3498
|
function In(t, e, r) {
|
|
3499
3499
|
if (!Lt(t))
|
|
@@ -3502,7 +3502,7 @@ function In(t, e, r) {
|
|
|
3502
3502
|
);
|
|
3503
3503
|
if (Ct(t))
|
|
3504
3504
|
return typeof r == "function" && t.mergeWith ? t.mergeWith.apply(t, [r].concat(e)) : t.merge ? t.merge.apply(t, e) : t.concat.apply(t, e);
|
|
3505
|
-
for (var n = Array.isArray(t), o = t, i = n ?
|
|
3505
|
+
for (var n = Array.isArray(t), o = t, i = n ? Jt : Et, s = n ? function(u) {
|
|
3506
3506
|
o === t && (o = dr(o)), o.push(u);
|
|
3507
3507
|
} : function(u, c) {
|
|
3508
3508
|
var l = ye.call(o, c), f = l && r ? r(o[c], u, c) : u;
|
|
@@ -3511,15 +3511,15 @@ function In(t, e, r) {
|
|
|
3511
3511
|
i(e[a]).forEach(s);
|
|
3512
3512
|
return o;
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function ta(t) {
|
|
3515
3515
|
function e(r, n, o) {
|
|
3516
|
-
return Lt(r) && Lt(n) &&
|
|
3516
|
+
return Lt(r) && Lt(n) && ea(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
|
|
3517
3517
|
}
|
|
3518
3518
|
return e;
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function ea(t, e) {
|
|
3521
3521
|
var r = ft(t), n = ft(e);
|
|
3522
|
-
return It(r) === It(n) &&
|
|
3522
|
+
return It(r) === It(n) && W(r) === W(n);
|
|
3523
3523
|
}
|
|
3524
3524
|
function ii() {
|
|
3525
3525
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
@@ -3546,13 +3546,13 @@ function On(t) {
|
|
|
3546
3546
|
return In(n, e);
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function ra(t, e, r) {
|
|
3550
3550
|
return me(t, e, j, function() {
|
|
3551
3551
|
return r;
|
|
3552
3552
|
});
|
|
3553
3553
|
}
|
|
3554
3554
|
function kn(t, e) {
|
|
3555
|
-
return
|
|
3555
|
+
return ra(this, t, e);
|
|
3556
3556
|
}
|
|
3557
3557
|
function Dn(t, e, r) {
|
|
3558
3558
|
return arguments.length === 1 ? t(this) : ei(this, t, e, r);
|
|
@@ -3563,7 +3563,7 @@ function An(t, e, r) {
|
|
|
3563
3563
|
function zn() {
|
|
3564
3564
|
return this.__altered;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function He(t) {
|
|
3567
3567
|
var e = this.asMutable();
|
|
3568
3568
|
return t(e), e.wasAltered() ? e.__ensureOwner(this.__ownerID) : this;
|
|
3569
3569
|
}
|
|
@@ -3572,12 +3572,12 @@ function Rn(t) {
|
|
|
3572
3572
|
return !!(t && // @ts-expect-error: maybeMap is typed as `{}`, need to change in 6.0 to `maybeMap && typeof maybeMap === 'object' && IS_MAP_SYMBOL in maybeMap`
|
|
3573
3573
|
t[ai]);
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Re(t, e) {
|
|
3576
3576
|
if (!t)
|
|
3577
3577
|
throw new Error(e);
|
|
3578
3578
|
}
|
|
3579
3579
|
function pt(t) {
|
|
3580
|
-
|
|
3580
|
+
Re(t !== 1 / 0, "Cannot perform this action with an infinite size.");
|
|
3581
3581
|
}
|
|
3582
3582
|
var ge = /* @__PURE__ */ (function(t) {
|
|
3583
3583
|
function e(r) {
|
|
@@ -3617,7 +3617,7 @@ var ge = /* @__PURE__ */ (function(t) {
|
|
|
3617
3617
|
});
|
|
3618
3618
|
});
|
|
3619
3619
|
}, e.prototype.__iterator = function(r, n) {
|
|
3620
|
-
return new
|
|
3620
|
+
return new na(this, r, n);
|
|
3621
3621
|
}, e.prototype.__iterate = function(r, n) {
|
|
3622
3622
|
var o = this, i = 0;
|
|
3623
3623
|
return this._root && this._root.iterate(function(s) {
|
|
@@ -3628,50 +3628,50 @@ var ge = /* @__PURE__ */ (function(t) {
|
|
|
3628
3628
|
}, e;
|
|
3629
3629
|
})(Et);
|
|
3630
3630
|
ge.isMap = Rn;
|
|
3631
|
-
var
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3631
|
+
var B = ge.prototype;
|
|
3632
|
+
B[ai] = !0;
|
|
3633
|
+
B[Fe] = B.remove;
|
|
3634
|
+
B.removeAll = B.deleteAll;
|
|
3635
|
+
B.setIn = kn;
|
|
3636
|
+
B.removeIn = B.deleteIn = xn;
|
|
3637
|
+
B.update = Dn;
|
|
3638
|
+
B.updateIn = An;
|
|
3639
|
+
B.merge = B.concat = ri;
|
|
3640
|
+
B.mergeWith = ni;
|
|
3641
|
+
B.mergeDeep = ii;
|
|
3642
|
+
B.mergeDeepWith = si;
|
|
3643
|
+
B.mergeIn = On;
|
|
3644
|
+
B.mergeDeepIn = En;
|
|
3645
|
+
B.withMutations = He;
|
|
3646
|
+
B.wasAltered = zn;
|
|
3647
|
+
B.asImmutable = We;
|
|
3648
|
+
B["@@transducer/init"] = B.asMutable = Ke;
|
|
3649
|
+
B["@@transducer/step"] = function(t, e) {
|
|
3650
3650
|
return t.set(e[0], e[1]);
|
|
3651
3651
|
};
|
|
3652
|
-
|
|
3652
|
+
B["@@transducer/result"] = function(t) {
|
|
3653
3653
|
return t.asImmutable();
|
|
3654
3654
|
};
|
|
3655
|
-
var
|
|
3655
|
+
var $e = function(t, e) {
|
|
3656
3656
|
this.ownerID = t, this.entries = e;
|
|
3657
3657
|
};
|
|
3658
|
-
|
|
3658
|
+
$e.prototype.get = function(t, e, r, n) {
|
|
3659
3659
|
for (var o = this.entries, i = 0, s = o.length; i < s; i++)
|
|
3660
3660
|
if (vt(r, o[i][0]))
|
|
3661
3661
|
return o[i][1];
|
|
3662
3662
|
return n;
|
|
3663
3663
|
};
|
|
3664
|
-
|
|
3664
|
+
$e.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3665
3665
|
for (var a = o === j, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
|
|
3666
3666
|
;
|
|
3667
3667
|
var f = c < l;
|
|
3668
3668
|
if (f ? u[c][1] === o : a)
|
|
3669
3669
|
return this;
|
|
3670
3670
|
if (bt(s), (a || !f) && bt(i), !(a && u.length === 1)) {
|
|
3671
|
-
if (!f && !a && u.length >=
|
|
3672
|
-
return
|
|
3671
|
+
if (!f && !a && u.length >= ca)
|
|
3672
|
+
return oa(t, u, n, o);
|
|
3673
3673
|
var h = t && t === this.ownerID, d = h ? u : Dt(u);
|
|
3674
|
-
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
|
|
3674
|
+
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 $e(t, d);
|
|
3675
3675
|
}
|
|
3676
3676
|
};
|
|
3677
3677
|
var ce = function(t, e, r) {
|
|
@@ -3704,24 +3704,24 @@ ce.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3704
3704
|
);
|
|
3705
3705
|
if (y === d)
|
|
3706
3706
|
return this;
|
|
3707
|
-
if (!l && y && h.length >=
|
|
3708
|
-
return
|
|
3707
|
+
if (!l && y && h.length >= la)
|
|
3708
|
+
return sa(t, h, c, a, y);
|
|
3709
3709
|
if (l && !y && h.length === 2 && co(h[f ^ 1]))
|
|
3710
3710
|
return h[f ^ 1];
|
|
3711
3711
|
if (l && y && h.length === 1 && co(y))
|
|
3712
3712
|
return y;
|
|
3713
|
-
var m = t && t === this.ownerID, A = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) :
|
|
3713
|
+
var m = t && t === this.ownerID, A = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) : ua(h, f, m) : aa(h, f, y, m);
|
|
3714
3714
|
return m ? (this.bitmap = A, this.nodes = T, this) : new ce(t, A, T);
|
|
3715
3715
|
};
|
|
3716
|
-
var
|
|
3716
|
+
var Me = function(t, e, r) {
|
|
3717
3717
|
this.ownerID = t, this.count = e, this.nodes = r;
|
|
3718
3718
|
};
|
|
3719
|
-
|
|
3719
|
+
Me.prototype.get = function(t, e, r, n) {
|
|
3720
3720
|
e === void 0 && (e = ht(r));
|
|
3721
3721
|
var o = (t === 0 ? e : e >>> t) & at, i = this.nodes[o];
|
|
3722
3722
|
return i ? i.get(t + L, e, r, n) : n;
|
|
3723
3723
|
};
|
|
3724
|
-
|
|
3724
|
+
Me.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3725
3725
|
r === void 0 && (r = ht(n));
|
|
3726
3726
|
var a = (e === 0 ? r : r >>> e) & at, u = o === j, c = this.nodes, l = c[a];
|
|
3727
3727
|
if (u && !l)
|
|
@@ -3741,10 +3741,10 @@ $e.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3741
3741
|
var h = this.count;
|
|
3742
3742
|
if (!l)
|
|
3743
3743
|
h++;
|
|
3744
|
-
else if (!f && (h--, h <
|
|
3745
|
-
return
|
|
3744
|
+
else if (!f && (h--, h < fa))
|
|
3745
|
+
return ia(t, c, h, a);
|
|
3746
3746
|
var d = t && t === this.ownerID, y = ci(c, a, f, d);
|
|
3747
|
-
return d ? (this.count = h, this.nodes = y, this) : new
|
|
3747
|
+
return d ? (this.count = h, this.nodes = y, this) : new Me(t, h, y);
|
|
3748
3748
|
};
|
|
3749
3749
|
var le = function(t, e, r) {
|
|
3750
3750
|
this.ownerID = t, this.keyHash = e, this.entries = r;
|
|
@@ -3786,12 +3786,12 @@ $t.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), jn(this, t, e, ht(n), [n, o]));
|
|
3788
3788
|
};
|
|
3789
|
-
|
|
3789
|
+
$e.prototype.iterate = le.prototype.iterate = function(t, e) {
|
|
3790
3790
|
for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
|
|
3791
3791
|
if (t(r[e ? o - n : n]) === !1)
|
|
3792
3792
|
return !1;
|
|
3793
3793
|
};
|
|
3794
|
-
ce.prototype.iterate =
|
|
3794
|
+
ce.prototype.iterate = Me.prototype.iterate = function(t, e) {
|
|
3795
3795
|
for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
|
|
3796
3796
|
var i = r[e ? o - n : n];
|
|
3797
3797
|
if (i && i.iterate(t, e) === !1)
|
|
@@ -3801,7 +3801,7 @@ ce.prototype.iterate = $e.prototype.iterate = function(t, e) {
|
|
|
3801
3801
|
$t.prototype.iterate = function(t, e) {
|
|
3802
3802
|
return t(this.entry);
|
|
3803
3803
|
};
|
|
3804
|
-
var
|
|
3804
|
+
var na = /* @__PURE__ */ (function(t) {
|
|
3805
3805
|
function e(r, n, o) {
|
|
3806
3806
|
this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
|
|
3807
3807
|
}
|
|
@@ -3842,7 +3842,7 @@ function so(t, e) {
|
|
|
3842
3842
|
};
|
|
3843
3843
|
}
|
|
3844
3844
|
function Cn(t, e, r, n) {
|
|
3845
|
-
var o = Object.create(
|
|
3845
|
+
var o = Object.create(B);
|
|
3846
3846
|
return o.size = t, o._root = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
3847
3847
|
}
|
|
3848
3848
|
var ao;
|
|
@@ -3868,7 +3868,7 @@ function uo(t, e, r) {
|
|
|
3868
3868
|
} else {
|
|
3869
3869
|
if (r === j)
|
|
3870
3870
|
return t;
|
|
3871
|
-
o = 1, n = new
|
|
3871
|
+
o = 1, n = new $e(t.__ownerID, [[e, r]]);
|
|
3872
3872
|
}
|
|
3873
3873
|
return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Cn(o, n) : zt();
|
|
3874
3874
|
}
|
|
@@ -3892,7 +3892,7 @@ function jn(t, e, r, n, o) {
|
|
|
3892
3892
|
var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & at, s = (r === 0 ? n : n >>> r) & at, a, u = i === s ? [jn(t, e, r + L, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
|
|
3893
3893
|
return new ce(e, 1 << i | 1 << s, u);
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function oa(t, e, r, n) {
|
|
3896
3896
|
t || (t = new hn());
|
|
3897
3897
|
for (var o = new $t(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
|
|
3898
3898
|
var s = e[i];
|
|
@@ -3900,17 +3900,17 @@ function ia(t, e, r, n) {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
return o;
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function ia(t, e, r, n) {
|
|
3904
3904
|
for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
|
|
3905
3905
|
var l = e[a];
|
|
3906
3906
|
l !== void 0 && a !== n && (o |= u, s[i++] = l);
|
|
3907
3907
|
}
|
|
3908
3908
|
return new ce(t, o, s);
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function sa(t, e, r, n, o) {
|
|
3911
3911
|
for (var i = 0, s = new Array(dt), a = 0; r !== 0; a++, r >>>= 1)
|
|
3912
3912
|
s[a] = r & 1 ? e[i++] : void 0;
|
|
3913
|
-
return s[n] = o, new
|
|
3913
|
+
return s[n] = o, new Me(t, i + 1, s);
|
|
3914
3914
|
}
|
|
3915
3915
|
function ui(t) {
|
|
3916
3916
|
return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
|
|
@@ -3919,7 +3919,7 @@ function ci(t, e, r, n) {
|
|
|
3919
3919
|
var o = n ? t : Dt(t);
|
|
3920
3920
|
return o[e] = r, o;
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function aa(t, e, r, n) {
|
|
3923
3923
|
var o = t.length + 1;
|
|
3924
3924
|
if (n && e + 1 === o)
|
|
3925
3925
|
return t[e] = r, t;
|
|
@@ -3927,7 +3927,7 @@ function ua(t, e, r, n) {
|
|
|
3927
3927
|
a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
|
|
3928
3928
|
return i;
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function ua(t, e, r) {
|
|
3931
3931
|
var n = t.length - 1;
|
|
3932
3932
|
if (r && e === n)
|
|
3933
3933
|
return t.pop(), t;
|
|
@@ -3935,7 +3935,7 @@ function ca(t, e, r) {
|
|
|
3935
3935
|
s === e && (i = 1), o[s] = t[s + i];
|
|
3936
3936
|
return o;
|
|
3937
3937
|
}
|
|
3938
|
-
var
|
|
3938
|
+
var ca = dt / 4, la = dt / 2, fa = dt / 4;
|
|
3939
3939
|
function li(t) {
|
|
3940
3940
|
if (Fo(t) && typeof t != "string")
|
|
3941
3941
|
return t;
|
|
@@ -3943,14 +3943,14 @@ function li(t) {
|
|
|
3943
3943
|
return t.toArray();
|
|
3944
3944
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
|
|
3945
3945
|
}
|
|
3946
|
-
function
|
|
3946
|
+
function Te(t) {
|
|
3947
3947
|
try {
|
|
3948
3948
|
return typeof t == "string" ? JSON.stringify(t) : String(t);
|
|
3949
3949
|
} catch {
|
|
3950
3950
|
return JSON.stringify(t);
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
function
|
|
3953
|
+
function ha(t, e) {
|
|
3954
3954
|
return Ct(t) ? (
|
|
3955
3955
|
// @ts-expect-error key might be a number or symbol, which is not handled be Record key type
|
|
3956
3956
|
t.has(e)
|
|
@@ -3960,7 +3960,7 @@ function pa(t, e) {
|
|
|
3960
3960
|
);
|
|
3961
3961
|
}
|
|
3962
3962
|
function fi(t, e, r) {
|
|
3963
|
-
return Ct(t) ? t.get(e, r) :
|
|
3963
|
+
return Ct(t) ? t.get(e, r) : ha(t, e) ? (
|
|
3964
3964
|
// @ts-expect-error weird "get" here,
|
|
3965
3965
|
typeof t.get == "function" ? (
|
|
3966
3966
|
// @ts-expect-error weird "get" here,
|
|
@@ -3971,7 +3971,7 @@ function fi(t, e, r) {
|
|
|
3971
3971
|
)
|
|
3972
3972
|
) : r;
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function pa(t, e) {
|
|
3975
3975
|
if (!Lt(t))
|
|
3976
3976
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3977
3977
|
if (Ct(t)) {
|
|
@@ -3984,7 +3984,7 @@ function da(t, e) {
|
|
|
3984
3984
|
var r = dr(t);
|
|
3985
3985
|
return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
|
|
3986
3986
|
}
|
|
3987
|
-
function
|
|
3987
|
+
function da(t, e, r) {
|
|
3988
3988
|
if (!Lt(t))
|
|
3989
3989
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3990
3990
|
if (Ct(t)) {
|
|
@@ -4017,7 +4017,7 @@ function hi(t, e, r, n, o, i) {
|
|
|
4017
4017
|
return u === a ? e : u;
|
|
4018
4018
|
}
|
|
4019
4019
|
if (!s && !Lt(e))
|
|
4020
|
-
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(
|
|
4020
|
+
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Te) + "]: " + e);
|
|
4021
4021
|
var c = r[n], l = s ? j : fi(e, c, j), f = hi(
|
|
4022
4022
|
l === j ? t : Ct(l),
|
|
4023
4023
|
// @ts-expect-error mixed type
|
|
@@ -4027,15 +4027,15 @@ function hi(t, e, r, n, o, i) {
|
|
|
4027
4027
|
o,
|
|
4028
4028
|
i
|
|
4029
4029
|
);
|
|
4030
|
-
return f === l ? e : f === j ?
|
|
4030
|
+
return f === l ? e : f === j ? pa(e, c) : da(s ? t ? zt() : {} : e, c, f);
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4032
|
+
function va(t, e) {
|
|
4033
4033
|
return me(t, e, function() {
|
|
4034
4034
|
return j;
|
|
4035
4035
|
});
|
|
4036
4036
|
}
|
|
4037
4037
|
function xn(t) {
|
|
4038
|
-
return
|
|
4038
|
+
return va(this, t);
|
|
4039
4039
|
}
|
|
4040
4040
|
var pi = "@@__IMMUTABLE_LIST__@@";
|
|
4041
4041
|
function di(t) {
|
|
@@ -4050,7 +4050,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4050
4050
|
if (di(r))
|
|
4051
4051
|
return r;
|
|
4052
4052
|
var o = t(r), i = o.size;
|
|
4053
|
-
return i === 0 ? n : (pt(i), i > 0 && i < dt ?
|
|
4053
|
+
return i === 0 ? n : (pt(i), i > 0 && i < dt ? Pe(0, i, L, null, new Pt(o.toArray())) : n.withMutations(function(s) {
|
|
4054
4054
|
s.setSize(i), o.forEach(function(a, u) {
|
|
4055
4055
|
return s.set(u, a);
|
|
4056
4056
|
});
|
|
@@ -4068,7 +4068,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
return n;
|
|
4070
4070
|
}, e.prototype.set = function(r, n) {
|
|
4071
|
-
return
|
|
4071
|
+
return ya(this, r, n);
|
|
4072
4072
|
}, e.prototype.remove = function(r) {
|
|
4073
4073
|
return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
|
|
4074
4074
|
}, e.prototype.insert = function(r, n) {
|
|
@@ -4124,21 +4124,21 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4124
4124
|
var o = this.size;
|
|
4125
4125
|
return br(r, n, o) ? this : Tt(
|
|
4126
4126
|
this,
|
|
4127
|
-
|
|
4127
|
+
Be(r, o),
|
|
4128
4128
|
Sr(n, o)
|
|
4129
4129
|
);
|
|
4130
4130
|
}, e.prototype.__iterator = function(r, n) {
|
|
4131
4131
|
var o = n ? this.size : 0, i = lo(this, n);
|
|
4132
4132
|
return new x(function() {
|
|
4133
4133
|
var s = i();
|
|
4134
|
-
return s ===
|
|
4134
|
+
return s === Ce ? ut() : K(r, n ? --o : o++, s);
|
|
4135
4135
|
});
|
|
4136
4136
|
}, e.prototype.__iterate = function(r, n) {
|
|
4137
|
-
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !==
|
|
4137
|
+
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Ce && r(s, n ? --o : o++, this) !== !1; )
|
|
4138
4138
|
;
|
|
4139
4139
|
return o;
|
|
4140
4140
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4141
|
-
return r === this.__ownerID ? this : r ?
|
|
4141
|
+
return r === this.__ownerID ? this : r ? Pe(
|
|
4142
4142
|
this._origin,
|
|
4143
4143
|
this._capacity,
|
|
4144
4144
|
this._level,
|
|
@@ -4148,11 +4148,11 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4148
4148
|
this.__hash
|
|
4149
4149
|
) : this.size === 0 ? ir() : (this.__ownerID = r, this.__altered = !1, this);
|
|
4150
4150
|
}, e;
|
|
4151
|
-
})(
|
|
4151
|
+
})(Jt);
|
|
4152
4152
|
Or.isList = di;
|
|
4153
4153
|
var Q = Or.prototype;
|
|
4154
4154
|
Q[pi] = !0;
|
|
4155
|
-
Q[
|
|
4155
|
+
Q[Fe] = Q.remove;
|
|
4156
4156
|
Q.merge = Q.concat;
|
|
4157
4157
|
Q.setIn = kn;
|
|
4158
4158
|
Q.deleteIn = Q.removeIn = xn;
|
|
@@ -4160,10 +4160,10 @@ Q.update = Dn;
|
|
|
4160
4160
|
Q.updateIn = An;
|
|
4161
4161
|
Q.mergeIn = On;
|
|
4162
4162
|
Q.mergeDeepIn = En;
|
|
4163
|
-
Q.withMutations =
|
|
4163
|
+
Q.withMutations = He;
|
|
4164
4164
|
Q.wasAltered = zn;
|
|
4165
4165
|
Q.asImmutable = We;
|
|
4166
|
-
Q["@@transducer/init"] = Q.asMutable =
|
|
4166
|
+
Q["@@transducer/init"] = Q.asMutable = Ke;
|
|
4167
4167
|
Q["@@transducer/step"] = function(t, e) {
|
|
4168
4168
|
return t.push(e);
|
|
4169
4169
|
};
|
|
@@ -4208,9 +4208,9 @@ Pt.prototype.removeAfter = function(t, e, r) {
|
|
|
4208
4208
|
var s = fe(this, t);
|
|
4209
4209
|
return s.array.splice(n + 1), o && (s.array[n] = o), s;
|
|
4210
4210
|
};
|
|
4211
|
-
var
|
|
4211
|
+
var Ce = {};
|
|
4212
4212
|
function lo(t, e) {
|
|
4213
|
-
var r = t._origin, n = t._capacity, o =
|
|
4213
|
+
var r = t._origin, n = t._capacity, o = qe(n), i = t._tail;
|
|
4214
4214
|
return s(t._root, t._level, 0);
|
|
4215
4215
|
function s(c, l, f) {
|
|
4216
4216
|
return l === 0 ? a(c, f) : u(c, l, f);
|
|
@@ -4219,7 +4219,7 @@ function lo(t, e) {
|
|
|
4219
4219
|
var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
|
|
4220
4220
|
return d > dt && (d = dt), function() {
|
|
4221
4221
|
if (h === d)
|
|
4222
|
-
return
|
|
4222
|
+
return Ce;
|
|
4223
4223
|
var y = e ? --d : h++;
|
|
4224
4224
|
return f && f[y];
|
|
4225
4225
|
};
|
|
@@ -4230,12 +4230,12 @@ function lo(t, e) {
|
|
|
4230
4230
|
for (; ; ) {
|
|
4231
4231
|
if (h) {
|
|
4232
4232
|
var A = h();
|
|
4233
|
-
if (A !==
|
|
4233
|
+
if (A !== Ce)
|
|
4234
4234
|
return A;
|
|
4235
4235
|
h = null;
|
|
4236
4236
|
}
|
|
4237
4237
|
if (y === m)
|
|
4238
|
-
return
|
|
4238
|
+
return Ce;
|
|
4239
4239
|
var T = e ? --m : y++;
|
|
4240
4240
|
h = s(
|
|
4241
4241
|
d && d[T],
|
|
@@ -4246,14 +4246,14 @@ function lo(t, e) {
|
|
|
4246
4246
|
};
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
function
|
|
4249
|
+
function Pe(t, e, r, n, o, i, s) {
|
|
4250
4250
|
var a = Object.create(Q);
|
|
4251
4251
|
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;
|
|
4252
4252
|
}
|
|
4253
4253
|
function ir() {
|
|
4254
|
-
return
|
|
4254
|
+
return Pe(0, 0, L);
|
|
4255
4255
|
}
|
|
4256
|
-
function
|
|
4256
|
+
function ya(t, e, r) {
|
|
4257
4257
|
if (e = qt(t, e), e !== e)
|
|
4258
4258
|
return t;
|
|
4259
4259
|
if (e >= t.size || e < 0)
|
|
@@ -4262,14 +4262,14 @@ function _a(t, e, r) {
|
|
|
4262
4262
|
});
|
|
4263
4263
|
e += t._origin;
|
|
4264
4264
|
var n = t._tail, o = t._root, i = tn();
|
|
4265
|
-
return e >=
|
|
4265
|
+
return e >= qe(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
|
|
4266
4266
|
o,
|
|
4267
4267
|
t.__ownerID,
|
|
4268
4268
|
t._level,
|
|
4269
4269
|
e,
|
|
4270
4270
|
r,
|
|
4271
4271
|
i
|
|
4272
|
-
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) :
|
|
4272
|
+
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Pe(t._origin, t._capacity, t._level, o, n) : t;
|
|
4273
4273
|
}
|
|
4274
4274
|
function on(t, e, r, n, o, i) {
|
|
4275
4275
|
var s = n >>> r & at, a = t && s < t.array.length;
|
|
@@ -4293,7 +4293,7 @@ function fe(t, e) {
|
|
|
4293
4293
|
return e && t && e === t.ownerID ? t : new Pt(t ? t.array.slice() : [], e);
|
|
4294
4294
|
}
|
|
4295
4295
|
function vi(t, e) {
|
|
4296
|
-
if (e >=
|
|
4296
|
+
if (e >= qe(t._capacity))
|
|
4297
4297
|
return t._tail;
|
|
4298
4298
|
if (e < 1 << t._level + L) {
|
|
4299
4299
|
for (var r = t._root, n = t._level; r && n > 0; )
|
|
@@ -4314,7 +4314,7 @@ function Tt(t, e, r) {
|
|
|
4314
4314
|
n
|
|
4315
4315
|
), u += L, l += 1 << u;
|
|
4316
4316
|
l && (s += l, o += l, a += l, i += l);
|
|
4317
|
-
for (var f =
|
|
4317
|
+
for (var f = qe(i), h = qe(a); h >= 1 << u + L; )
|
|
4318
4318
|
c = new Pt(
|
|
4319
4319
|
c && c.array.length ? [c] : [],
|
|
4320
4320
|
n
|
|
@@ -4343,9 +4343,9 @@ function Tt(t, e, r) {
|
|
|
4343
4343
|
h - l
|
|
4344
4344
|
)), l && (s -= l, a -= l);
|
|
4345
4345
|
}
|
|
4346
|
-
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) :
|
|
4346
|
+
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) : Pe(s, a, u, c, y);
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4348
|
+
function qe(t) {
|
|
4349
4349
|
return t < dt ? 0 : t - 1 >>> L << L;
|
|
4350
4350
|
}
|
|
4351
4351
|
function yi(t) {
|
|
@@ -4392,7 +4392,7 @@ var Mt = /* @__PURE__ */ (function(t) {
|
|
|
4392
4392
|
})(ge);
|
|
4393
4393
|
Mt.isOrderedMap = yi;
|
|
4394
4394
|
Mt.prototype[Vt] = !0;
|
|
4395
|
-
Mt.prototype[
|
|
4395
|
+
Mt.prototype[Fe] = Mt.prototype.remove;
|
|
4396
4396
|
function $n(t, e, r, n) {
|
|
4397
4397
|
var o = Object.create(Mt.prototype);
|
|
4398
4398
|
return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
@@ -4426,7 +4426,7 @@ function sn(t) {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
var Mn = /* @__PURE__ */ (function(t) {
|
|
4428
4428
|
function e(r) {
|
|
4429
|
-
return r == null ?
|
|
4429
|
+
return r == null ? rr() : sn(r) ? r : rr().pushAll(r);
|
|
4430
4430
|
}
|
|
4431
4431
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
4432
4432
|
return this(arguments);
|
|
@@ -4469,18 +4469,18 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4469
4469
|
}, e.prototype.pop = function() {
|
|
4470
4470
|
return this.slice(1);
|
|
4471
4471
|
}, e.prototype.clear = function() {
|
|
4472
|
-
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) :
|
|
4472
|
+
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : rr();
|
|
4473
4473
|
}, e.prototype.slice = function(r, n) {
|
|
4474
4474
|
if (br(r, n, this.size))
|
|
4475
4475
|
return this;
|
|
4476
|
-
var o =
|
|
4476
|
+
var o = Be(r, this.size), i = Sr(n, this.size);
|
|
4477
4477
|
if (i !== this.size)
|
|
4478
4478
|
return t.prototype.slice.call(this, r, n);
|
|
4479
4479
|
for (var s = this.size - o, a = this._head; o--; )
|
|
4480
4480
|
a = a.next;
|
|
4481
4481
|
return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Oe(s, a);
|
|
4482
4482
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4483
|
-
return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ?
|
|
4483
|
+
return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ? rr() : (this.__ownerID = r, this.__altered = !1, this);
|
|
4484
4484
|
}, e.prototype.__iterate = function(r, n) {
|
|
4485
4485
|
var o = this;
|
|
4486
4486
|
if (n)
|
|
@@ -4505,17 +4505,17 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4505
4505
|
return ut();
|
|
4506
4506
|
});
|
|
4507
4507
|
}, e;
|
|
4508
|
-
})(
|
|
4508
|
+
})(Jt);
|
|
4509
4509
|
Mn.isStack = sn;
|
|
4510
4510
|
var ct = Mn.prototype;
|
|
4511
4511
|
ct[_i] = !0;
|
|
4512
4512
|
ct.shift = ct.pop;
|
|
4513
4513
|
ct.unshift = ct.push;
|
|
4514
4514
|
ct.unshiftAll = ct.pushAll;
|
|
4515
|
-
ct.withMutations =
|
|
4515
|
+
ct.withMutations = He;
|
|
4516
4516
|
ct.wasAltered = zn;
|
|
4517
4517
|
ct.asImmutable = We;
|
|
4518
|
-
ct["@@transducer/init"] = ct.asMutable =
|
|
4518
|
+
ct["@@transducer/init"] = ct.asMutable = Ke;
|
|
4519
4519
|
ct["@@transducer/step"] = function(t, e) {
|
|
4520
4520
|
return t.unshift(e);
|
|
4521
4521
|
};
|
|
@@ -4527,7 +4527,7 @@ function Oe(t, e, r, n) {
|
|
|
4527
4527
|
return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
4528
4528
|
}
|
|
4529
4529
|
var po;
|
|
4530
|
-
function
|
|
4530
|
+
function rr() {
|
|
4531
4531
|
return po || (po = Oe(0));
|
|
4532
4532
|
}
|
|
4533
4533
|
function vo(t, e, r, n, o, i) {
|
|
@@ -4535,10 +4535,10 @@ function vo(t, e, r, n, o, i) {
|
|
|
4535
4535
|
o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
|
|
4536
4536
|
}, i), r;
|
|
4537
4537
|
}
|
|
4538
|
-
function
|
|
4538
|
+
function _a(t, e) {
|
|
4539
4539
|
return e;
|
|
4540
4540
|
}
|
|
4541
|
-
function
|
|
4541
|
+
function ga(t, e) {
|
|
4542
4542
|
return [e, t];
|
|
4543
4543
|
}
|
|
4544
4544
|
function qr(t) {
|
|
@@ -4563,7 +4563,7 @@ function gi(t, e) {
|
|
|
4563
4563
|
t.size !== void 0 && e.size !== void 0 && t.size !== e.size || // @ts-expect-error __hash exists on Collection
|
|
4564
4564
|
t.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
4565
4565
|
e.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
|
|
4566
|
-
t.__hash !== e.__hash ||
|
|
4566
|
+
t.__hash !== e.__hash || W(t) !== W(e) || It(t) !== It(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
|
|
4567
4567
|
Rt(t) !== Rt(e))
|
|
4568
4568
|
return !1;
|
|
4569
4569
|
if (t.size === 0 && e.size === 0)
|
|
@@ -4604,14 +4604,14 @@ function gi(t, e) {
|
|
|
4604
4604
|
return s && // @ts-expect-error size should exists on Collection
|
|
4605
4605
|
t.size === a;
|
|
4606
4606
|
}
|
|
4607
|
-
var
|
|
4607
|
+
var ma = /* @__PURE__ */ (function(t) {
|
|
4608
4608
|
function e(r, n, o) {
|
|
4609
4609
|
if (o === void 0 && (o = 1), !(this instanceof e))
|
|
4610
4610
|
return new e(r, n, o);
|
|
4611
|
-
if (
|
|
4611
|
+
if (Re(o !== 0, "Cannot step a Range by 0"), Re(
|
|
4612
4612
|
r !== void 0,
|
|
4613
4613
|
"You must define a start value when using Range"
|
|
4614
|
-
),
|
|
4614
|
+
), Re(
|
|
4615
4615
|
n !== void 0,
|
|
4616
4616
|
"You must define an end value when using Range"
|
|
4617
4617
|
), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
|
|
@@ -4628,7 +4628,7 @@ var wa = /* @__PURE__ */ (function(t) {
|
|
|
4628
4628
|
var n = (r - this._start) / this._step;
|
|
4629
4629
|
return n >= 0 && n < this.size && n === Math.floor(n);
|
|
4630
4630
|
}, e.prototype.slice = function(r, n) {
|
|
4631
|
-
return br(r, n, this.size) ? this : (r =
|
|
4631
|
+
return br(r, n, this.size) ? this : (r = Be(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
|
|
4632
4632
|
this.get(r, this._end),
|
|
4633
4633
|
this.get(n, this._end),
|
|
4634
4634
|
this._step
|
|
@@ -4685,13 +4685,13 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4685
4685
|
}, e.prototype.has = function(r) {
|
|
4686
4686
|
return this._map.has(r);
|
|
4687
4687
|
}, e.prototype.add = function(r) {
|
|
4688
|
-
return
|
|
4688
|
+
return nr(this, this._map.set(r, r));
|
|
4689
4689
|
}, e.prototype.remove = function(r) {
|
|
4690
|
-
return
|
|
4690
|
+
return nr(this, this._map.remove(r));
|
|
4691
4691
|
}, e.prototype.clear = function() {
|
|
4692
|
-
return
|
|
4692
|
+
return nr(this, this._map.clear());
|
|
4693
4693
|
}, e.prototype.map = function(r, n) {
|
|
4694
|
-
var o = this, i = !1, s =
|
|
4694
|
+
var o = this, i = !1, s = nr(
|
|
4695
4695
|
this,
|
|
4696
4696
|
this._map.mapEntries(function(a) {
|
|
4697
4697
|
var u = a[1], c = r.call(n, u, u, o);
|
|
@@ -4744,9 +4744,9 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4744
4744
|
});
|
|
4745
4745
|
});
|
|
4746
4746
|
}, e.prototype.sort = function(r) {
|
|
4747
|
-
return
|
|
4747
|
+
return Ve(ue(this, r));
|
|
4748
4748
|
}, e.prototype.sortBy = function(r, n) {
|
|
4749
|
-
return
|
|
4749
|
+
return Ve(ue(this, n, r));
|
|
4750
4750
|
}, e.prototype.wasAltered = function() {
|
|
4751
4751
|
return this._map.wasAltered();
|
|
4752
4752
|
}, e.prototype.__iterate = function(r, n) {
|
|
@@ -4766,11 +4766,11 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4766
4766
|
kr.isSet = Tn;
|
|
4767
4767
|
var et = kr.prototype;
|
|
4768
4768
|
et[mi] = !0;
|
|
4769
|
-
et[
|
|
4769
|
+
et[Fe] = et.remove;
|
|
4770
4770
|
et.merge = et.concat = et.union;
|
|
4771
|
-
et.withMutations =
|
|
4771
|
+
et.withMutations = He;
|
|
4772
4772
|
et.asImmutable = We;
|
|
4773
|
-
et["@@transducer/init"] = et.asMutable =
|
|
4773
|
+
et["@@transducer/init"] = et.asMutable = Ke;
|
|
4774
4774
|
et["@@transducer/step"] = function(t, e) {
|
|
4775
4775
|
return t.add(e);
|
|
4776
4776
|
};
|
|
@@ -4779,7 +4779,7 @@ et["@@transducer/result"] = function(t) {
|
|
|
4779
4779
|
};
|
|
4780
4780
|
et.__empty = ke;
|
|
4781
4781
|
et.__make = wi;
|
|
4782
|
-
function
|
|
4782
|
+
function nr(t, e) {
|
|
4783
4783
|
return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
|
|
4784
4784
|
}
|
|
4785
4785
|
function wi(t, e) {
|
|
@@ -4799,11 +4799,11 @@ function bi(t, e, r) {
|
|
|
4799
4799
|
function Si(t, e) {
|
|
4800
4800
|
return bi(this, t, e);
|
|
4801
4801
|
}
|
|
4802
|
-
function
|
|
4802
|
+
function wa(t, e) {
|
|
4803
4803
|
return bi(t, e, j) !== j;
|
|
4804
4804
|
}
|
|
4805
|
-
function
|
|
4806
|
-
return
|
|
4805
|
+
function ba(t) {
|
|
4806
|
+
return wa(this, t);
|
|
4807
4807
|
}
|
|
4808
4808
|
function Ii() {
|
|
4809
4809
|
pt(this.size);
|
|
@@ -4820,7 +4820,7 @@ function vr(t) {
|
|
|
4820
4820
|
return t;
|
|
4821
4821
|
t = ft(t);
|
|
4822
4822
|
}
|
|
4823
|
-
if (
|
|
4823
|
+
if (W(t)) {
|
|
4824
4824
|
var e = {};
|
|
4825
4825
|
return t.__iterate(function(n, o) {
|
|
4826
4826
|
e[o] = vr(n);
|
|
@@ -4831,10 +4831,10 @@ function vr(t) {
|
|
|
4831
4831
|
r.push(vr(n));
|
|
4832
4832
|
}), r;
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function Sa(t) {
|
|
4835
4835
|
if (t.size === 1 / 0)
|
|
4836
4836
|
return 0;
|
|
4837
|
-
var e = Rt(t), r =
|
|
4837
|
+
var e = Rt(t), r = W(t), n = e ? 1 : 0;
|
|
4838
4838
|
return t.__iterate(r ? e ? function(o, i) {
|
|
4839
4839
|
n = 31 * n + mo(ht(o), ht(i)) | 0;
|
|
4840
4840
|
} : function(o, i) {
|
|
@@ -4843,26 +4843,26 @@ function Ia(t) {
|
|
|
4843
4843
|
n = 31 * n + ht(o) | 0;
|
|
4844
4844
|
} : function(o) {
|
|
4845
4845
|
n = n + ht(o) | 0;
|
|
4846
|
-
}),
|
|
4846
|
+
}), Ia(t.size, n);
|
|
4847
4847
|
}
|
|
4848
|
-
function
|
|
4848
|
+
function Ia(t, e) {
|
|
4849
4849
|
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 = Ir(e ^ e >>> 16), e;
|
|
4850
4850
|
}
|
|
4851
4851
|
function mo(t, e) {
|
|
4852
4852
|
return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function Qt(t, e) {
|
|
4855
4855
|
var r = function(n) {
|
|
4856
4856
|
t.prototype[n] = e[n];
|
|
4857
4857
|
};
|
|
4858
4858
|
return Object.keys(e).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(r), t;
|
|
4859
4859
|
}
|
|
4860
4860
|
nt.Iterator = x;
|
|
4861
|
-
|
|
4861
|
+
Qt(nt, {
|
|
4862
4862
|
// ### Conversion to other types
|
|
4863
4863
|
toArray: function() {
|
|
4864
4864
|
pt(this.size);
|
|
4865
|
-
var t = new Array(this.size || 0), e =
|
|
4865
|
+
var t = new Array(this.size || 0), e = W(this), r = 0;
|
|
4866
4866
|
return this.__iterate(function(n, o) {
|
|
4867
4867
|
t[r++] = e ? [o, n] : n;
|
|
4868
4868
|
}), t;
|
|
@@ -4884,22 +4884,22 @@ Gt(nt, {
|
|
|
4884
4884
|
return Mt(this.toKeyedSeq());
|
|
4885
4885
|
},
|
|
4886
4886
|
toOrderedSet: function() {
|
|
4887
|
-
return
|
|
4887
|
+
return Ve(W(this) ? this.valueSeq() : this);
|
|
4888
4888
|
},
|
|
4889
4889
|
toSet: function() {
|
|
4890
|
-
return kr(
|
|
4890
|
+
return kr(W(this) ? this.valueSeq() : this);
|
|
4891
4891
|
},
|
|
4892
4892
|
toSetSeq: function() {
|
|
4893
4893
|
return new Ho(this);
|
|
4894
4894
|
},
|
|
4895
4895
|
toSeq: function() {
|
|
4896
|
-
return It(this) ? this.toIndexedSeq() :
|
|
4896
|
+
return It(this) ? this.toIndexedSeq() : W(this) ? this.toKeyedSeq() : this.toSetSeq();
|
|
4897
4897
|
},
|
|
4898
4898
|
toStack: function() {
|
|
4899
|
-
return Mn(
|
|
4899
|
+
return Mn(W(this) ? this.valueSeq() : this);
|
|
4900
4900
|
},
|
|
4901
4901
|
toList: function() {
|
|
4902
|
-
return Or(
|
|
4902
|
+
return Or(W(this) ? this.valueSeq() : this);
|
|
4903
4903
|
},
|
|
4904
4904
|
// ### Common JavaScript methods and properties
|
|
4905
4905
|
toString: function() {
|
|
@@ -4911,7 +4911,7 @@ Gt(nt, {
|
|
|
4911
4911
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
4912
4912
|
concat: function() {
|
|
4913
4913
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
4914
|
-
return V(this,
|
|
4914
|
+
return V(this, Gs(this, t));
|
|
4915
4915
|
},
|
|
4916
4916
|
includes: function(t) {
|
|
4917
4917
|
return this.some(function(e) {
|
|
@@ -4933,7 +4933,7 @@ Gt(nt, {
|
|
|
4933
4933
|
return V(this, Yo(this, t, e, !0));
|
|
4934
4934
|
},
|
|
4935
4935
|
partition: function(t, e) {
|
|
4936
|
-
return
|
|
4936
|
+
return Ks(this, t, e);
|
|
4937
4937
|
},
|
|
4938
4938
|
find: function(t, e, r) {
|
|
4939
4939
|
var n = this.findEntry(t, e);
|
|
@@ -5019,7 +5019,7 @@ Gt(nt, {
|
|
|
5019
5019
|
var t = this;
|
|
5020
5020
|
if (t._cache)
|
|
5021
5021
|
return new ae(t._cache);
|
|
5022
|
-
var e = t.toSeq().map(
|
|
5022
|
+
var e = t.toSeq().map(ga).toIndexedSeq();
|
|
5023
5023
|
return e.fromEntrySeq = function() {
|
|
5024
5024
|
return t.toSeq();
|
|
5025
5025
|
}, e;
|
|
@@ -5051,10 +5051,10 @@ Gt(nt, {
|
|
|
5051
5051
|
return this.find(Po, null, t);
|
|
5052
5052
|
},
|
|
5053
5053
|
flatMap: function(t, e) {
|
|
5054
|
-
return V(this,
|
|
5054
|
+
return V(this, Qs(this, t, e));
|
|
5055
5055
|
},
|
|
5056
5056
|
flatten: function(t) {
|
|
5057
|
-
return V(this,
|
|
5057
|
+
return V(this, Xo(this, t, !0));
|
|
5058
5058
|
},
|
|
5059
5059
|
fromEntrySeq: function() {
|
|
5060
5060
|
return new Jo(this);
|
|
@@ -5066,12 +5066,12 @@ Gt(nt, {
|
|
|
5066
5066
|
},
|
|
5067
5067
|
getIn: Si,
|
|
5068
5068
|
groupBy: function(t, e) {
|
|
5069
|
-
return
|
|
5069
|
+
return Ws(this, t, e);
|
|
5070
5070
|
},
|
|
5071
5071
|
has: function(t) {
|
|
5072
5072
|
return this.get(t, j) !== j;
|
|
5073
5073
|
},
|
|
5074
|
-
hasIn:
|
|
5074
|
+
hasIn: ba,
|
|
5075
5075
|
isSubset: function(t) {
|
|
5076
5076
|
return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
|
|
5077
5077
|
return t.includes(e);
|
|
@@ -5086,7 +5086,7 @@ Gt(nt, {
|
|
|
5086
5086
|
});
|
|
5087
5087
|
},
|
|
5088
5088
|
keySeq: function() {
|
|
5089
|
-
return this.toSeq().map(
|
|
5089
|
+
return this.toSeq().map(_a).toIndexedSeq();
|
|
5090
5090
|
},
|
|
5091
5091
|
last: function(t) {
|
|
5092
5092
|
return this.toSeq().reverse().first(t);
|
|
@@ -5095,19 +5095,19 @@ Gt(nt, {
|
|
|
5095
5095
|
return this.toKeyedSeq().reverse().keyOf(t);
|
|
5096
5096
|
},
|
|
5097
5097
|
max: function(t) {
|
|
5098
|
-
return
|
|
5098
|
+
return tr(this, t);
|
|
5099
5099
|
},
|
|
5100
5100
|
maxBy: function(t, e) {
|
|
5101
|
-
return
|
|
5101
|
+
return tr(this, e, t);
|
|
5102
5102
|
},
|
|
5103
5103
|
min: function(t) {
|
|
5104
|
-
return
|
|
5104
|
+
return tr(
|
|
5105
5105
|
this,
|
|
5106
5106
|
t ? yo(t) : _o
|
|
5107
5107
|
);
|
|
5108
5108
|
},
|
|
5109
5109
|
minBy: function(t, e) {
|
|
5110
|
-
return
|
|
5110
|
+
return tr(
|
|
5111
5111
|
this,
|
|
5112
5112
|
e ? yo(e) : _o,
|
|
5113
5113
|
t
|
|
@@ -5123,7 +5123,7 @@ Gt(nt, {
|
|
|
5123
5123
|
return t === 0 ? this : this.slice(0, -Math.max(0, t));
|
|
5124
5124
|
},
|
|
5125
5125
|
skipWhile: function(t, e) {
|
|
5126
|
-
return V(this,
|
|
5126
|
+
return V(this, Zo(this, t, e, !0));
|
|
5127
5127
|
},
|
|
5128
5128
|
skipUntil: function(t, e) {
|
|
5129
5129
|
return this.skipWhile(qr(t), e);
|
|
@@ -5138,7 +5138,7 @@ Gt(nt, {
|
|
|
5138
5138
|
return this.slice(-Math.max(0, t));
|
|
5139
5139
|
},
|
|
5140
5140
|
takeWhile: function(t, e) {
|
|
5141
|
-
return V(this,
|
|
5141
|
+
return V(this, Hs(this, t, e));
|
|
5142
5142
|
},
|
|
5143
5143
|
takeUntil: function(t, e) {
|
|
5144
5144
|
return this.takeWhile(qr(t), e);
|
|
@@ -5151,7 +5151,7 @@ Gt(nt, {
|
|
|
5151
5151
|
},
|
|
5152
5152
|
// ### Hashable Object
|
|
5153
5153
|
hashCode: function() {
|
|
5154
|
-
return this.__hash || (this.__hash =
|
|
5154
|
+
return this.__hash || (this.__hash = Sa(this));
|
|
5155
5155
|
}
|
|
5156
5156
|
// ### Internal
|
|
5157
5157
|
// abstract __iterate(fn, reverse)
|
|
@@ -5161,13 +5161,13 @@ var it = nt.prototype;
|
|
|
5161
5161
|
it[$o] = !0;
|
|
5162
5162
|
it[mr] = it.values;
|
|
5163
5163
|
it.toJSON = it.toArray;
|
|
5164
|
-
it.__toStringMapper =
|
|
5164
|
+
it.__toStringMapper = Te;
|
|
5165
5165
|
it.inspect = it.toSource = function() {
|
|
5166
5166
|
return this.toString();
|
|
5167
5167
|
};
|
|
5168
5168
|
it.chain = it.flatMap;
|
|
5169
5169
|
it.contains = it.includes;
|
|
5170
|
-
|
|
5170
|
+
Qt(Et, {
|
|
5171
5171
|
// ### More sequential methods
|
|
5172
5172
|
flip: function() {
|
|
5173
5173
|
return V(this, Go(this));
|
|
@@ -5191,14 +5191,14 @@ Gt(Et, {
|
|
|
5191
5191
|
);
|
|
5192
5192
|
}
|
|
5193
5193
|
});
|
|
5194
|
-
var
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
return
|
|
5194
|
+
var Je = Et.prototype;
|
|
5195
|
+
Je[pr] = !0;
|
|
5196
|
+
Je[mr] = it.entries;
|
|
5197
|
+
Je.toJSON = Ii;
|
|
5198
|
+
Je.__toStringMapper = function(t, e) {
|
|
5199
|
+
return Te(e) + ": " + Te(t);
|
|
5200
5200
|
};
|
|
5201
|
-
|
|
5201
|
+
Qt(Jt, {
|
|
5202
5202
|
// ### Conversion to other types
|
|
5203
5203
|
toKeyedSeq: function() {
|
|
5204
5204
|
return new Er(this, !1);
|
|
@@ -5229,7 +5229,7 @@ Gt(Ht, {
|
|
|
5229
5229
|
var r = arguments.length;
|
|
5230
5230
|
if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
|
|
5231
5231
|
return this;
|
|
5232
|
-
t =
|
|
5232
|
+
t = Be(t, t < 0 ? this.count() : this.size);
|
|
5233
5233
|
var n = this.slice(0, t);
|
|
5234
5234
|
return V(
|
|
5235
5235
|
this,
|
|
@@ -5245,7 +5245,7 @@ Gt(Ht, {
|
|
|
5245
5245
|
return this.get(0, t);
|
|
5246
5246
|
},
|
|
5247
5247
|
flatten: function(t) {
|
|
5248
|
-
return V(this,
|
|
5248
|
+
return V(this, Xo(this, t, !1));
|
|
5249
5249
|
},
|
|
5250
5250
|
get: function(t, e) {
|
|
5251
5251
|
return t = qt(this, t), t < 0 || this.size === 1 / 0 || this.size !== void 0 && t > this.size ? e : this.find(function(r, n) {
|
|
@@ -5256,38 +5256,38 @@ Gt(Ht, {
|
|
|
5256
5256
|
return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
|
|
5257
5257
|
},
|
|
5258
5258
|
interpose: function(t) {
|
|
5259
|
-
return V(this,
|
|
5259
|
+
return V(this, Ys(this, t));
|
|
5260
5260
|
},
|
|
5261
5261
|
interleave: function() {
|
|
5262
|
-
var t = [this].concat(Dt(arguments)), e =
|
|
5262
|
+
var t = [this].concat(Dt(arguments)), e = er(this.toSeq(), kt.of, t), r = e.flatten(!0);
|
|
5263
5263
|
return e.size && (r.size = e.size * t.length), V(this, r);
|
|
5264
5264
|
},
|
|
5265
5265
|
keySeq: function() {
|
|
5266
|
-
return
|
|
5266
|
+
return ma(0, this.size);
|
|
5267
5267
|
},
|
|
5268
5268
|
last: function(t) {
|
|
5269
5269
|
return this.get(-1, t);
|
|
5270
5270
|
},
|
|
5271
5271
|
skipWhile: function(t, e) {
|
|
5272
|
-
return V(this,
|
|
5272
|
+
return V(this, Zo(this, t, e, !1));
|
|
5273
5273
|
},
|
|
5274
5274
|
zip: function() {
|
|
5275
5275
|
var t = [this].concat(Dt(arguments));
|
|
5276
|
-
return V(this,
|
|
5276
|
+
return V(this, er(this, wo, t));
|
|
5277
5277
|
},
|
|
5278
5278
|
zipAll: function() {
|
|
5279
5279
|
var t = [this].concat(Dt(arguments));
|
|
5280
|
-
return V(this,
|
|
5280
|
+
return V(this, er(this, wo, t, !0));
|
|
5281
5281
|
},
|
|
5282
5282
|
zipWith: function(t) {
|
|
5283
5283
|
var e = Dt(arguments);
|
|
5284
|
-
return e[0] = this, V(this,
|
|
5284
|
+
return e[0] = this, V(this, er(this, t, e));
|
|
5285
5285
|
}
|
|
5286
5286
|
});
|
|
5287
|
-
var we =
|
|
5287
|
+
var we = Jt.prototype;
|
|
5288
5288
|
we[hr] = !0;
|
|
5289
5289
|
we[Vt] = !0;
|
|
5290
|
-
|
|
5290
|
+
Qt(de, {
|
|
5291
5291
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
5292
5292
|
get: function(t, e) {
|
|
5293
5293
|
return this.has(t) ? t : e;
|
|
@@ -5304,16 +5304,16 @@ var he = de.prototype;
|
|
|
5304
5304
|
he.has = it.includes;
|
|
5305
5305
|
he.contains = he.includes;
|
|
5306
5306
|
he.keys = he.values;
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5307
|
+
Qt(Ut, Je);
|
|
5308
|
+
Qt(kt, we);
|
|
5309
|
+
Qt(_e, he);
|
|
5310
5310
|
function wo() {
|
|
5311
5311
|
return Dt(arguments);
|
|
5312
5312
|
}
|
|
5313
5313
|
function Ei(t) {
|
|
5314
5314
|
return Tn(t) && Rt(t);
|
|
5315
5315
|
}
|
|
5316
|
-
var
|
|
5316
|
+
var Ve = /* @__PURE__ */ (function(t) {
|
|
5317
5317
|
function e(r) {
|
|
5318
5318
|
return r == null ? an() : Ei(r) ? r : an().withMutations(function(n) {
|
|
5319
5319
|
var o = de(r);
|
|
@@ -5330,24 +5330,24 @@ var qe = /* @__PURE__ */ (function(t) {
|
|
|
5330
5330
|
return this.__toString("OrderedSet {", "}");
|
|
5331
5331
|
}, e;
|
|
5332
5332
|
})(kr);
|
|
5333
|
-
|
|
5334
|
-
var
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5333
|
+
Ve.isOrderedSet = Ei;
|
|
5334
|
+
var Yt = Ve.prototype;
|
|
5335
|
+
Yt[Vt] = !0;
|
|
5336
|
+
Yt.zip = we.zip;
|
|
5337
|
+
Yt.zipWith = we.zipWith;
|
|
5338
|
+
Yt.zipAll = we.zipAll;
|
|
5339
|
+
Yt.__empty = an;
|
|
5340
|
+
Yt.__make = Oi;
|
|
5341
5341
|
function Oi(t, e) {
|
|
5342
|
-
var r = Object.create(
|
|
5342
|
+
var r = Object.create(Yt);
|
|
5343
5343
|
return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
|
|
5344
5344
|
}
|
|
5345
5345
|
var bo;
|
|
5346
5346
|
function an() {
|
|
5347
5347
|
return bo || (bo = Oi(Ee()));
|
|
5348
5348
|
}
|
|
5349
|
-
function
|
|
5350
|
-
if (
|
|
5349
|
+
function Ea(t) {
|
|
5350
|
+
if (Gt(t))
|
|
5351
5351
|
throw new Error(
|
|
5352
5352
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
5353
5353
|
);
|
|
@@ -5362,7 +5362,7 @@ function Oa(t) {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
var tt = function(t, e) {
|
|
5364
5364
|
var r;
|
|
5365
|
-
|
|
5365
|
+
Ea(t);
|
|
5366
5366
|
var n = function(i) {
|
|
5367
5367
|
var s = this;
|
|
5368
5368
|
if (i instanceof n)
|
|
@@ -5377,7 +5377,7 @@ var tt = function(t, e) {
|
|
|
5377
5377
|
var l = a[c];
|
|
5378
5378
|
u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
|
|
5379
5379
|
"Cannot define " + qn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
|
|
5380
|
-
) :
|
|
5380
|
+
) : Oa(o, l);
|
|
5381
5381
|
}
|
|
5382
5382
|
}
|
|
5383
5383
|
return this.__ownerID = void 0, this._values = Or().withMutations(function(f) {
|
|
@@ -5390,11 +5390,11 @@ var tt = function(t, e) {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
tt.prototype.toString = function() {
|
|
5392
5392
|
for (var t = qn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
|
|
5393
|
-
r = e[n], t += (n ? ", " : "") + r + ": " +
|
|
5393
|
+
r = e[n], t += (n ? ", " : "") + r + ": " + Te(this.get(r));
|
|
5394
5394
|
return t + " }";
|
|
5395
5395
|
};
|
|
5396
5396
|
tt.prototype.equals = function(t) {
|
|
5397
|
-
return this === t ||
|
|
5397
|
+
return this === t || Gt(t) && pe(this).equals(pe(t));
|
|
5398
5398
|
};
|
|
5399
5399
|
tt.prototype.hashCode = function() {
|
|
5400
5400
|
return pe(this).hashCode();
|
|
@@ -5450,11 +5450,11 @@ tt.prototype.__ensureOwner = function(t) {
|
|
|
5450
5450
|
var e = this._values.__ensureOwner(t);
|
|
5451
5451
|
return t ? Pn(this, e, t) : (this.__ownerID = t, this._values = e, this);
|
|
5452
5452
|
};
|
|
5453
|
-
tt.isRecord =
|
|
5453
|
+
tt.isRecord = Gt;
|
|
5454
5454
|
tt.getDescriptiveName = qn;
|
|
5455
5455
|
var F = tt.prototype;
|
|
5456
5456
|
F[Lo] = !0;
|
|
5457
|
-
F[
|
|
5457
|
+
F[Fe] = F.remove;
|
|
5458
5458
|
F.deleteIn = F.removeIn = xn;
|
|
5459
5459
|
F.getIn = Si;
|
|
5460
5460
|
F.hasIn = it.hasIn;
|
|
@@ -5467,8 +5467,8 @@ F.mergeDeepIn = En;
|
|
|
5467
5467
|
F.setIn = kn;
|
|
5468
5468
|
F.update = Dn;
|
|
5469
5469
|
F.updateIn = An;
|
|
5470
|
-
F.withMutations =
|
|
5471
|
-
F.asMutable =
|
|
5470
|
+
F.withMutations = He;
|
|
5471
|
+
F.asMutable = Ke;
|
|
5472
5472
|
F.asImmutable = We;
|
|
5473
5473
|
F[mr] = F.entries;
|
|
5474
5474
|
F.toJSON = F.toObject = it.toObject;
|
|
@@ -5487,42 +5487,42 @@ function pe(t) {
|
|
|
5487
5487
|
return [e, t.get(e)];
|
|
5488
5488
|
}));
|
|
5489
5489
|
}
|
|
5490
|
-
function
|
|
5490
|
+
function Oa(t, e) {
|
|
5491
5491
|
try {
|
|
5492
5492
|
Object.defineProperty(t, e, {
|
|
5493
5493
|
get: function() {
|
|
5494
5494
|
return this.get(e);
|
|
5495
5495
|
},
|
|
5496
5496
|
set: function(r) {
|
|
5497
|
-
|
|
5497
|
+
Re(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
|
|
5498
5498
|
}
|
|
5499
5499
|
});
|
|
5500
5500
|
} catch {
|
|
5501
5501
|
}
|
|
5502
5502
|
}
|
|
5503
5503
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5504
|
-
function
|
|
5504
|
+
function ka(t, e) {
|
|
5505
5505
|
return un() ? (cn(t, e), !0) : !1;
|
|
5506
5506
|
}
|
|
5507
5507
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5508
|
-
const
|
|
5508
|
+
const Da = () => {
|
|
5509
5509
|
};
|
|
5510
|
-
function
|
|
5511
|
-
if (t.length !== 1) return
|
|
5510
|
+
function Aa(...t) {
|
|
5511
|
+
if (t.length !== 1) return Kt(...t);
|
|
5512
5512
|
const e = t[0];
|
|
5513
5513
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5514
5514
|
get: e,
|
|
5515
|
-
set:
|
|
5515
|
+
set: Da
|
|
5516
5516
|
}))) : C(e);
|
|
5517
5517
|
}
|
|
5518
5518
|
function Lr(t) {
|
|
5519
5519
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5520
5520
|
}
|
|
5521
5521
|
const Ur = /* @__PURE__ */ new WeakMap();
|
|
5522
|
-
function
|
|
5523
|
-
const r =
|
|
5522
|
+
function za(t, e = !1) {
|
|
5523
|
+
const r = Ue(e);
|
|
5524
5524
|
let n = "";
|
|
5525
|
-
ot(
|
|
5525
|
+
ot(Aa(t), (s) => {
|
|
5526
5526
|
const a = Lr(St(s));
|
|
5527
5527
|
if (a) {
|
|
5528
5528
|
const u = a;
|
|
@@ -5537,7 +5537,7 @@ function Ra(t, e = !1) {
|
|
|
5537
5537
|
const s = Lr(St(t));
|
|
5538
5538
|
!s || !r.value || (s.style.overflow = n, Ur.delete(s), r.value = !1);
|
|
5539
5539
|
};
|
|
5540
|
-
return
|
|
5540
|
+
return ka(i), N({
|
|
5541
5541
|
get() {
|
|
5542
5542
|
return r.value;
|
|
5543
5543
|
},
|
|
@@ -5546,49 +5546,49 @@ function Ra(t, e = !1) {
|
|
|
5546
5546
|
}
|
|
5547
5547
|
});
|
|
5548
5548
|
}
|
|
5549
|
-
function
|
|
5549
|
+
function Ra() {
|
|
5550
5550
|
let t = !1;
|
|
5551
|
-
const e =
|
|
5551
|
+
const e = Ue(!1);
|
|
5552
5552
|
return (r, n) => {
|
|
5553
5553
|
if (e.value = n.value, t) return;
|
|
5554
5554
|
t = !0;
|
|
5555
|
-
const o =
|
|
5555
|
+
const o = za(r, n.value);
|
|
5556
5556
|
ot(e, (i) => o.value = i);
|
|
5557
5557
|
};
|
|
5558
5558
|
}
|
|
5559
|
-
|
|
5560
|
-
const
|
|
5559
|
+
Ra();
|
|
5560
|
+
const Ca = (t, e) => {
|
|
5561
5561
|
const r = t.__vccOpts || t;
|
|
5562
5562
|
for (const [n, o] of e)
|
|
5563
5563
|
r[n] = o;
|
|
5564
5564
|
return r;
|
|
5565
5565
|
};
|
|
5566
|
-
function
|
|
5566
|
+
function Na(t, e) {
|
|
5567
5567
|
return un() ? (cn(t, e), !0) : !1;
|
|
5568
5568
|
}
|
|
5569
5569
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5570
|
-
const
|
|
5570
|
+
const ja = () => {
|
|
5571
5571
|
};
|
|
5572
|
-
function
|
|
5573
|
-
if (t.length !== 1) return
|
|
5572
|
+
function xa(...t) {
|
|
5573
|
+
if (t.length !== 1) return Kt(...t);
|
|
5574
5574
|
const e = t[0];
|
|
5575
5575
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5576
5576
|
get: e,
|
|
5577
|
-
set:
|
|
5577
|
+
set: ja
|
|
5578
5578
|
}))) : C(e);
|
|
5579
5579
|
}
|
|
5580
5580
|
function Fr(t) {
|
|
5581
5581
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5582
5582
|
}
|
|
5583
|
-
const
|
|
5584
|
-
function
|
|
5585
|
-
const r =
|
|
5583
|
+
const Br = /* @__PURE__ */ new WeakMap();
|
|
5584
|
+
function $a(t, e = !1) {
|
|
5585
|
+
const r = Ue(e);
|
|
5586
5586
|
let n = "";
|
|
5587
|
-
ot(
|
|
5587
|
+
ot(xa(t), (s) => {
|
|
5588
5588
|
const a = Fr(St(s));
|
|
5589
5589
|
if (a) {
|
|
5590
5590
|
const u = a;
|
|
5591
|
-
if (
|
|
5591
|
+
if (Br.get(u) || Br.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
|
|
5592
5592
|
if (r.value) return u.style.overflow = "hidden";
|
|
5593
5593
|
}
|
|
5594
5594
|
}, { immediate: !0 });
|
|
@@ -5597,9 +5597,9 @@ function Ma(t, e = !1) {
|
|
|
5597
5597
|
!s || r.value || (s.style.overflow = "hidden", r.value = !0);
|
|
5598
5598
|
}, i = () => {
|
|
5599
5599
|
const s = Fr(St(t));
|
|
5600
|
-
!s || !r.value || (s.style.overflow = n,
|
|
5600
|
+
!s || !r.value || (s.style.overflow = n, Br.delete(s), r.value = !1);
|
|
5601
5601
|
};
|
|
5602
|
-
return
|
|
5602
|
+
return Na(i), N({
|
|
5603
5603
|
get() {
|
|
5604
5604
|
return r.value;
|
|
5605
5605
|
},
|
|
@@ -5608,25 +5608,25 @@ function Ma(t, e = !1) {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
});
|
|
5610
5610
|
}
|
|
5611
|
-
function
|
|
5611
|
+
function Ma() {
|
|
5612
5612
|
let t = !1;
|
|
5613
|
-
const e =
|
|
5613
|
+
const e = Ue(!1);
|
|
5614
5614
|
return (r, n) => {
|
|
5615
5615
|
if (e.value = n.value, t) return;
|
|
5616
5616
|
t = !0;
|
|
5617
|
-
const o =
|
|
5617
|
+
const o = $a(r, n.value);
|
|
5618
5618
|
ot(e, (i) => o.value = i);
|
|
5619
5619
|
};
|
|
5620
5620
|
}
|
|
5621
|
-
|
|
5621
|
+
Ma();
|
|
5622
5622
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5623
|
-
const
|
|
5623
|
+
const Ta = { class: "aform" }, Pa = {
|
|
5624
5624
|
key: 0,
|
|
5625
5625
|
class: "aform-nested-section"
|
|
5626
|
-
},
|
|
5626
|
+
}, qa = {
|
|
5627
5627
|
key: 0,
|
|
5628
5628
|
class: "aform-nested-label"
|
|
5629
|
-
},
|
|
5629
|
+
}, Va = /* @__PURE__ */ Le({
|
|
5630
5630
|
__name: "AForm",
|
|
5631
5631
|
props: /* @__PURE__ */ Un({
|
|
5632
5632
|
schema: {},
|
|
@@ -5652,7 +5652,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5652
5652
|
}, s = (f) => {
|
|
5653
5653
|
const h = {};
|
|
5654
5654
|
for (const [d, y] of Object.entries(f))
|
|
5655
|
-
["component", "fieldtype", "mode"].includes(d) || (h[d] = y);
|
|
5655
|
+
["component", "fieldtype", "hidden", "mode"].includes(d) || (h[d] = y);
|
|
5656
5656
|
if ("columns" in f) {
|
|
5657
5657
|
const d = f.rows;
|
|
5658
5658
|
(!d || Array.isArray(d) && d.length === 0) && (h.rows = n.value[f.fieldname] || []);
|
|
@@ -5675,10 +5675,10 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5675
5675
|
})));
|
|
5676
5676
|
});
|
|
5677
5677
|
const l = N(() => c.value);
|
|
5678
|
-
return (f, h) => (M(), U("form",
|
|
5679
|
-
(M(!0), U(ne, null,
|
|
5680
|
-
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div",
|
|
5681
|
-
d.label && !("collapsible" in d) ? (M(), U("h4",
|
|
5678
|
+
return (f, h) => (M(), U("form", Ta, [
|
|
5679
|
+
(M(!0), U(ne, null, Ne(t.schema, (d, y) => (M(), U(ne, { key: y }, [
|
|
5680
|
+
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", Pa, [
|
|
5681
|
+
d.label && !("collapsible" in d) ? (M(), U("h4", qa, At(d.label), 1)) : Wt("", !0),
|
|
5682
5682
|
(M(), ar(Ln(d.component ?? "AForm"), {
|
|
5683
5683
|
data: o.value[d.fieldname],
|
|
5684
5684
|
mode: u(d),
|
|
@@ -5687,7 +5687,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5687
5687
|
collapsible: d.collapsible,
|
|
5688
5688
|
"onUpdate:data": (m) => i(d.fieldname, m)
|
|
5689
5689
|
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
|
|
5690
|
-
])) : (M(), ar(Ln(d.component), xi({
|
|
5690
|
+
])) : d.hidden ? Wt("", !0) : (M(), ar(Ln(d.component), xi({
|
|
5691
5691
|
key: 1,
|
|
5692
5692
|
modelValue: l.value[y].value,
|
|
5693
5693
|
"onUpdate:modelValue": (m) => l.value[y].value = m,
|
|
@@ -5698,7 +5698,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5698
5698
|
], 64))), 128))
|
|
5699
5699
|
]));
|
|
5700
5700
|
}
|
|
5701
|
-
}),
|
|
5701
|
+
}), La = /* @__PURE__ */ Ca(Va, [["__scopeId", "data-v-121930fc"]]), Ua = { class: "tabs" }, Fa = { tabindex: "0" }, Ba = { tabindex: "0" }, Wa = /* @__PURE__ */ Le({
|
|
5702
5702
|
__name: "SheetNav",
|
|
5703
5703
|
props: {
|
|
5704
5704
|
breadcrumbs: { default: () => [] }
|
|
@@ -5719,15 +5719,15 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5719
5719
|
return (f, h) => {
|
|
5720
5720
|
const d = $i("router-link");
|
|
5721
5721
|
return M(), U("footer", null, [
|
|
5722
|
-
$("ul",
|
|
5722
|
+
$("ul", Ua, [
|
|
5723
5723
|
$("li", {
|
|
5724
5724
|
class: "hidebreadcrumbs",
|
|
5725
5725
|
onClick: s,
|
|
5726
5726
|
onKeydown: be(s, ["enter"])
|
|
5727
5727
|
}, [
|
|
5728
|
-
$("a",
|
|
5728
|
+
$("a", Fa, [
|
|
5729
5729
|
$("div", {
|
|
5730
|
-
class:
|
|
5730
|
+
class: ee(i.value)
|
|
5731
5731
|
}, "×", 2)
|
|
5732
5732
|
])
|
|
5733
5733
|
], 32),
|
|
@@ -5741,7 +5741,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5741
5741
|
to: "/",
|
|
5742
5742
|
tabindex: "0"
|
|
5743
5743
|
}, {
|
|
5744
|
-
default:
|
|
5744
|
+
default: je(() => [...h[5] || (h[5] = [
|
|
5745
5745
|
$("svg", {
|
|
5746
5746
|
class: "icon",
|
|
5747
5747
|
"aria-label": "Home",
|
|
@@ -5758,7 +5758,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5758
5758
|
})
|
|
5759
5759
|
], 36),
|
|
5760
5760
|
$("li", {
|
|
5761
|
-
class:
|
|
5761
|
+
class: ee(["searchtab", { "search-active": r.value }]),
|
|
5762
5762
|
style: Rr({ display: e.value ? "block" : "none" })
|
|
5763
5763
|
}, [
|
|
5764
5764
|
$("a", Ba, [
|
|
@@ -5780,7 +5780,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5780
5780
|
}, null, -1),
|
|
5781
5781
|
$("path", { d: "M21 21l-4.35-4.35" }, null, -1)
|
|
5782
5782
|
])], 544)), [
|
|
5783
|
-
[
|
|
5783
|
+
[Wr, !r.value]
|
|
5784
5784
|
]),
|
|
5785
5785
|
sr($("input", {
|
|
5786
5786
|
ref: "searchinput",
|
|
@@ -5796,12 +5796,12 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5796
5796
|
be(a, ["escape"])
|
|
5797
5797
|
]
|
|
5798
5798
|
}, null, 544), [
|
|
5799
|
-
[
|
|
5799
|
+
[Wr, r.value],
|
|
5800
5800
|
[Eo, n.value]
|
|
5801
5801
|
])
|
|
5802
5802
|
])
|
|
5803
5803
|
], 6),
|
|
5804
|
-
(M(!0), U(ne, null,
|
|
5804
|
+
(M(!0), U(ne, null, Ne(t.breadcrumbs, (y) => (M(), U("li", {
|
|
5805
5805
|
key: y.title,
|
|
5806
5806
|
style: Rr({ display: e.value ? "block" : "none" })
|
|
5807
5807
|
}, [
|
|
@@ -5809,7 +5809,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5809
5809
|
tabindex: "0",
|
|
5810
5810
|
to: y.to
|
|
5811
5811
|
}, {
|
|
5812
|
-
default:
|
|
5812
|
+
default: je(() => [
|
|
5813
5813
|
ur(At(y.title), 1)
|
|
5814
5814
|
]),
|
|
5815
5815
|
_: 2
|
|
@@ -5819,13 +5819,13 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5819
5819
|
]);
|
|
5820
5820
|
};
|
|
5821
5821
|
}
|
|
5822
|
-
}), ki = /* @__PURE__ */ Ao(
|
|
5822
|
+
}), ki = /* @__PURE__ */ Ao(Wa, [["__scopeId", "data-v-eb5bcbb6"]]), Ka = {
|
|
5823
5823
|
key: 1,
|
|
5824
5824
|
class: "loading"
|
|
5825
|
-
},
|
|
5825
|
+
}, Ha = {
|
|
5826
5826
|
key: 2,
|
|
5827
5827
|
class: "loading"
|
|
5828
|
-
},
|
|
5828
|
+
}, Ja = /* @__PURE__ */ Le({
|
|
5829
5829
|
__name: "Desktop",
|
|
5830
5830
|
props: {
|
|
5831
5831
|
availableDoctypes: {},
|
|
@@ -5835,7 +5835,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5835
5835
|
},
|
|
5836
5836
|
emits: ["action", "navigate", "record:open", "load-records", "load-record"],
|
|
5837
5837
|
setup(t, { emit: e }) {
|
|
5838
|
-
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } =
|
|
5838
|
+
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = zs(), s = C(!1), a = C(!1), u = N({
|
|
5839
5839
|
get() {
|
|
5840
5840
|
if (!i.value || !f.value || !d.value)
|
|
5841
5841
|
return {};
|
|
@@ -5857,7 +5857,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5857
5857
|
console.warn("HST update failed:", p);
|
|
5858
5858
|
}
|
|
5859
5859
|
}
|
|
5860
|
-
}), c = N(() => r.routeAdapter ? null :
|
|
5860
|
+
}), c = N(() => r.routeAdapter ? null : or(i.value?.registry.router?.currentRoute)), l = N(() => r.routeAdapter ? null : i.value?.registry.router), f = N(() => {
|
|
5861
5861
|
if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
|
|
5862
5862
|
if (!c.value) return "";
|
|
5863
5863
|
if (c.value.meta?.actualDoctype)
|
|
@@ -5944,13 +5944,13 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5944
5944
|
if (m.value === "records" && h.value)
|
|
5945
5945
|
v.push(
|
|
5946
5946
|
{ title: "Home", to: "/" },
|
|
5947
|
-
{ title:
|
|
5947
|
+
{ title: Z(h.value), to: `/${h.value}` }
|
|
5948
5948
|
);
|
|
5949
5949
|
else if (m.value === "record" && h.value) {
|
|
5950
5950
|
const p = d.value ? `/${h.value}/${d.value}` : c.value?.fullPath ?? "";
|
|
5951
5951
|
v.push(
|
|
5952
5952
|
{ title: "Home", to: "/" },
|
|
5953
|
-
{ title:
|
|
5953
|
+
{ title: Z(h.value), to: `/${h.value}` },
|
|
5954
5954
|
{ title: y.value ? "New Record" : "Edit Record", to: p }
|
|
5955
5955
|
);
|
|
5956
5956
|
}
|
|
@@ -5971,20 +5971,20 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
];
|
|
5973
5973
|
return h.value && (p.push({
|
|
5974
|
-
title: `View ${
|
|
5974
|
+
title: `View ${Z(h.value)} Records`,
|
|
5975
5975
|
description: `Navigate to ${h.value} list`,
|
|
5976
5976
|
action: () => {
|
|
5977
5977
|
O({ view: "records", doctype: h.value });
|
|
5978
5978
|
}
|
|
5979
5979
|
}), p.push({
|
|
5980
|
-
title: `Create New ${
|
|
5980
|
+
title: `Create New ${Z(h.value)}`,
|
|
5981
5981
|
description: `Create a new ${h.value} record`,
|
|
5982
5982
|
action: () => {
|
|
5983
5983
|
S();
|
|
5984
5984
|
}
|
|
5985
5985
|
})), o.forEach((w) => {
|
|
5986
5986
|
p.push({
|
|
5987
|
-
title: `View ${
|
|
5987
|
+
title: `View ${Z(w)}`,
|
|
5988
5988
|
description: `Navigate to ${w} list`,
|
|
5989
5989
|
action: () => {
|
|
5990
5990
|
O({ view: "records", doctype: w });
|
|
@@ -5995,7 +5995,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5995
5995
|
) : p;
|
|
5996
5996
|
}, Ot = (v) => {
|
|
5997
5997
|
v.action(), a.value = !1;
|
|
5998
|
-
},
|
|
5998
|
+
}, Z = (v) => v.split("-").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" "), mt = (v) => i.value ? i.value.getRecordIds(v).length : 0, O = async (v) => {
|
|
5999
5999
|
n("navigate", v), r.routeAdapter ? await r.routeAdapter.navigate(v) : v.view === "doctypes" ? await l.value?.push("/") : v.view === "records" && v.doctype ? await l.value?.push(`/${v.doctype}`) : v.view === "record" && v.doctype && v.recordId && await l.value?.push(`/${v.doctype}/${v.recordId}`);
|
|
6000
6000
|
}, jt = async (v) => {
|
|
6001
6001
|
await O({ view: "records", doctype: v });
|
|
@@ -6010,7 +6010,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6010
6010
|
const v = o.map((p) => ({
|
|
6011
6011
|
id: p,
|
|
6012
6012
|
doctype: p,
|
|
6013
|
-
display_name:
|
|
6013
|
+
display_name: Z(p),
|
|
6014
6014
|
record_count: mt(p),
|
|
6015
6015
|
actions: "View Records"
|
|
6016
6016
|
}));
|
|
@@ -6065,7 +6065,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6065
6065
|
const v = k(), p = P(), w = r.recordIdField || "id";
|
|
6066
6066
|
if (p.length === 0)
|
|
6067
6067
|
return [];
|
|
6068
|
-
const g = p.find((Y) => Y.fieldname === w), D = p.filter((Y) => Y.fieldname !== w), R = g ? [g, ...D] : p,
|
|
6068
|
+
const g = p.find((Y) => Y.fieldname === w), D = p.filter((Y) => Y.fieldname !== w), R = g ? [g, ...D] : p, X = v.map((Y) => ({
|
|
6069
6069
|
...Y,
|
|
6070
6070
|
// Use the canonical ID field for navigation
|
|
6071
6071
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
@@ -6098,7 +6098,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6098
6098
|
view: "list",
|
|
6099
6099
|
fullWidth: !0
|
|
6100
6100
|
},
|
|
6101
|
-
rows:
|
|
6101
|
+
rows: X
|
|
6102
6102
|
}
|
|
6103
6103
|
];
|
|
6104
6104
|
}, J = () => {
|
|
@@ -6159,8 +6159,8 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6159
6159
|
if (isNaN(g)) return null;
|
|
6160
6160
|
const R = k()[g];
|
|
6161
6161
|
if (!R) return null;
|
|
6162
|
-
const
|
|
6163
|
-
return R[
|
|
6162
|
+
const X = r.recordIdField || "id";
|
|
6163
|
+
return R[X] || R.id || null;
|
|
6164
6164
|
}, I = async (v) => {
|
|
6165
6165
|
const p = v.target;
|
|
6166
6166
|
p.getAttribute("data-action") === "create" && await S();
|
|
@@ -6168,17 +6168,17 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6168
6168
|
if (g) {
|
|
6169
6169
|
const D = g.textContent?.trim(), R = g.closest("tr");
|
|
6170
6170
|
if (D === "View Records" && R) {
|
|
6171
|
-
const
|
|
6172
|
-
if (
|
|
6173
|
-
const
|
|
6174
|
-
|
|
6171
|
+
const X = R.querySelectorAll("td");
|
|
6172
|
+
if (X.length > 0) {
|
|
6173
|
+
const Ge = X[1].textContent?.trim();
|
|
6174
|
+
Ge && await jt(Ge);
|
|
6175
6175
|
}
|
|
6176
6176
|
} else if (D?.includes("Edit") && R) {
|
|
6177
|
-
const
|
|
6178
|
-
|
|
6177
|
+
const X = _(R);
|
|
6178
|
+
X && await q(X);
|
|
6179
6179
|
} else if (D?.includes("Delete") && R) {
|
|
6180
|
-
const
|
|
6181
|
-
|
|
6180
|
+
const X = _(R);
|
|
6181
|
+
X && await st(X);
|
|
6182
6182
|
}
|
|
6183
6183
|
}
|
|
6184
6184
|
}, E = () => {
|
|
@@ -6231,14 +6231,14 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6231
6231
|
elements: T.value,
|
|
6232
6232
|
onActionClick: xt
|
|
6233
6233
|
}, null, 8, ["elements"]),
|
|
6234
|
-
G.value.length > 0 ? (M(), ar(
|
|
6234
|
+
G.value.length > 0 ? (M(), ar(or(La), {
|
|
6235
6235
|
key: 0,
|
|
6236
6236
|
data: u.value,
|
|
6237
6237
|
"onUpdate:data": p[0] || (p[0] = (w) => u.value = w),
|
|
6238
6238
|
schema: G.value
|
|
6239
|
-
}, null, 8, ["data", "schema"])) :
|
|
6239
|
+
}, null, 8, ["data", "schema"])) : or(i) ? (M(), U("div", Ha, [
|
|
6240
6240
|
$("p", null, "Loading " + At(m.value) + " data...", 1)
|
|
6241
|
-
])) : (M(), U("div",
|
|
6241
|
+
])) : (M(), U("div", Ka, [...p[2] || (p[2] = [
|
|
6242
6242
|
$("p", null, "Initializing Stonecrop...", -1)
|
|
6243
6243
|
])])),
|
|
6244
6244
|
re(ki, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
|
|
@@ -6249,26 +6249,26 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6249
6249
|
onSelect: Ot,
|
|
6250
6250
|
onClose: p[1] || (p[1] = (w) => a.value = !1)
|
|
6251
6251
|
}, {
|
|
6252
|
-
title:
|
|
6252
|
+
title: je(({ result: w }) => [
|
|
6253
6253
|
ur(At(w.title), 1)
|
|
6254
6254
|
]),
|
|
6255
|
-
content:
|
|
6255
|
+
content: je(({ result: w }) => [
|
|
6256
6256
|
ur(At(w.description), 1)
|
|
6257
6257
|
]),
|
|
6258
6258
|
_: 1
|
|
6259
6259
|
}, 8, ["is-open"])
|
|
6260
6260
|
]));
|
|
6261
6261
|
}
|
|
6262
|
-
}),
|
|
6262
|
+
}), Qa = {
|
|
6263
6263
|
install: (t) => {
|
|
6264
|
-
t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop",
|
|
6264
|
+
t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop", Ja), t.component("SheetNav", ki);
|
|
6265
6265
|
}
|
|
6266
6266
|
};
|
|
6267
6267
|
export {
|
|
6268
6268
|
zo as ActionSet,
|
|
6269
6269
|
Ro as CommandPalette,
|
|
6270
|
-
|
|
6270
|
+
Ja as Desktop,
|
|
6271
6271
|
ki as SheetNav,
|
|
6272
|
-
|
|
6272
|
+
Qa as StonecropDesktop
|
|
6273
6273
|
};
|
|
6274
6274
|
//# sourceMappingURL=desktop.js.map
|