@stonecrop/stonecrop 0.12.1 → 0.12.3

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/stonecrop.js CHANGED
@@ -103,7 +103,7 @@ function Wt(...e) {
103
103
  ];
104
104
  }, ([n, i, o, s], a, u) => {
105
105
  if (!n?.length || !i?.length || !o?.length) return;
106
- const c = qi(s) ? { ...s } : s, f = n.flatMap((h) => i.flatMap((l) => o.map((_) => t(h, l, _, c))));
106
+ const c = qi(s) ? { ...s } : s, f = n.flatMap((h) => i.flatMap((l) => o.map((g) => t(h, l, g, c))));
107
107
  u(() => {
108
108
  f.forEach((h) => h());
109
109
  });
@@ -155,13 +155,13 @@ const Gi = {
155
155
  }, Qr = "vueuse-storage";
156
156
  function Zi(e, t, r, n = {}) {
157
157
  var i;
158
- const { flush: o = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: f, window: h = Nt, eventFilter: l, onError: _ = (R) => {
158
+ const { flush: o = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: f, window: h = Nt, eventFilter: l, onError: g = (R) => {
159
159
  console.error(R);
160
160
  }, initOnMounted: p } = n, d = (f ? $n : j)(t), S = G(() => It(e));
161
161
  if (!r) try {
162
162
  r = Yi("getDefaultStorage", () => Nt?.localStorage)();
163
163
  } catch (R) {
164
- _(R);
164
+ g(R);
165
165
  }
166
166
  if (!r) return d;
167
167
  const I = It(t), O = Ji(I), w = (i = n.serializer) !== null && i !== void 0 ? i : Gi[O], { pause: K, resume: k } = xi(d, (R) => ae(R), {
@@ -200,7 +200,7 @@ function Zi(e, t, r, n = {}) {
200
200
  F !== Q && (r.setItem(S.value, Q), W(F, Q));
201
201
  }
202
202
  } catch (F) {
203
- _(F);
203
+ g(F);
204
204
  }
205
205
  }
206
206
  function ue(R) {
@@ -227,7 +227,7 @@ function Zi(e, t, r, n = {}) {
227
227
  const F = w.write(d.value);
228
228
  (R === void 0 || R?.newValue !== F) && (d.value = ue(R));
229
229
  } catch (F) {
230
- _(F);
230
+ g(F);
231
231
  } finally {
232
232
  R ? br(k) : k();
233
233
  }
@@ -267,7 +267,7 @@ function to(e = {}) {
267
267
  function l(O, w) {
268
268
  O in u && (t ? u[O] = w : u[O].value = w);
269
269
  }
270
- function _() {
270
+ function g() {
271
271
  s.clear();
272
272
  for (const O of h) l(O, !1);
273
273
  }
@@ -300,7 +300,7 @@ function to(e = {}) {
300
300
  }), c.clear());
301
301
  }
302
302
  }
303
- Wt(r, "keydown", (O) => (S(O, !0), o(O)), { passive: i }), Wt(r, "keyup", (O) => (S(O, !1), o(O)), { passive: i }), Wt("blur", _, { passive: i }), Wt("focus", _, { passive: i });
303
+ Wt(r, "keydown", (O) => (S(O, !0), o(O)), { passive: i }), Wt(r, "keyup", (O) => (S(O, !1), o(O)), { passive: i }), Wt("blur", g, { passive: i }), Wt("focus", g, { passive: i });
304
304
  const I = new Proxy(u, { get(O, w, K) {
305
305
  if (typeof w != "string") return Reflect.get(O, w, K);
306
306
  if (w = w.toLowerCase(), w in n && (w = n[w]), !(w in u)) if (/[+_-]/.test(w)) {
@@ -351,10 +351,10 @@ const Ie = Li("hst-operation-log", () => {
351
351
  enablePersistence: !1,
352
352
  persistenceKeyPrefix: "stonecrop-ops"
353
353
  }), t = j([]), r = j(-1), n = j(ir()), i = j(!1), o = j([]), s = G(() => r.value < 0 ? !1 : t.value[r.value]?.reversible ?? !1), a = G(() => r.value < t.value.length - 1), u = G(() => {
354
- let g = 0;
354
+ let _ = 0;
355
355
  for (let v = r.value; v >= 0 && t.value[v]?.reversible; v--)
356
- g++;
357
- return g;
356
+ _++;
357
+ return _;
358
358
  }), c = G(() => t.value.length - 1 - r.value), f = G(
359
359
  () => ({
360
360
  canUndo: s.value,
@@ -364,12 +364,12 @@ const Ie = Li("hst-operation-log", () => {
364
364
  currentIndex: r.value
365
365
  })
366
366
  );
367
- function h(g) {
368
- e.value = { ...e.value, ...g }, e.value.enablePersistence && (Q(), xt()), e.value.enableCrossTabSync && ae();
367
+ function h(_) {
368
+ e.value = { ...e.value, ..._ }, e.value.enablePersistence && (Q(), xt()), e.value.enableCrossTabSync && ae();
369
369
  }
370
- function l(g, v = "user") {
370
+ function l(_, v = "user") {
371
371
  const y = {
372
- ...g,
372
+ ..._,
373
373
  id: ir(),
374
374
  timestamp: /* @__PURE__ */ new Date(),
375
375
  source: v,
@@ -385,13 +385,13 @@ const Ie = Li("hst-operation-log", () => {
385
385
  }
386
386
  return e.value.enableCrossTabSync && ue(y), y.id;
387
387
  }
388
- function _() {
388
+ function g() {
389
389
  i.value = !0, o.value.push({
390
390
  id: ir(),
391
391
  operations: []
392
392
  });
393
393
  }
394
- function p(g) {
394
+ function p(_) {
395
395
  if (!i.value || o.value.length === 0)
396
396
  return null;
397
397
  const v = o.value.pop(), y = v.operations;
@@ -411,7 +411,7 @@ const Ie = Li("hst-operation-log", () => {
411
411
  reversible: it,
412
412
  irreversibleReason: it ? void 0 : "Contains irreversible operations",
413
413
  descendantOperationIds: y.map((E) => E.id),
414
- metadata: { description: g }
414
+ metadata: { description: _ }
415
415
  };
416
416
  return y.forEach((E) => {
417
417
  E.ancestorOperationId = x;
@@ -420,7 +420,7 @@ const Ie = Li("hst-operation-log", () => {
420
420
  function d() {
421
421
  o.value = [], i.value = !1;
422
422
  }
423
- function S(g) {
423
+ function S(_) {
424
424
  if (!s.value) return !1;
425
425
  const v = t.value[r.value];
426
426
  if (!v.reversible)
@@ -429,45 +429,45 @@ const Ie = Li("hst-operation-log", () => {
429
429
  if (v.type === "batch" && v.descendantOperationIds)
430
430
  for (let y = v.descendantOperationIds.length - 1; y >= 0; y--) {
431
431
  const x = v.descendantOperationIds[y], it = t.value.find((m) => m.id === x);
432
- it && O(it, g);
432
+ it && O(it, _);
433
433
  }
434
434
  else
435
- O(v, g);
435
+ O(v, _);
436
436
  return r.value--, e.value.enableCrossTabSync && ce(v), !0;
437
437
  } catch (y) {
438
438
  return typeof console < "u" && console.error("Undo failed:", y), !1;
439
439
  }
440
440
  }
441
- function I(g) {
441
+ function I(_) {
442
442
  if (!a.value) return !1;
443
443
  const v = t.value[r.value + 1];
444
444
  try {
445
445
  if (v.type === "batch" && v.descendantOperationIds)
446
446
  for (const y of v.descendantOperationIds) {
447
447
  const x = t.value.find((it) => it.id === y);
448
- x && w(x, g);
448
+ x && w(x, _);
449
449
  }
450
450
  else
451
- w(v, g);
451
+ w(v, _);
452
452
  return r.value++, e.value.enableCrossTabSync && R(v), !0;
453
453
  } catch (y) {
454
454
  return typeof console < "u" && console.error("Redo failed:", y), !1;
455
455
  }
456
456
  }
457
- function O(g, v) {
458
- (g.type === "set" || g.type === "delete") && v && typeof v.set == "function" && v.set(g.path, g.beforeValue, "undo");
457
+ function O(_, v) {
458
+ (_.type === "set" || _.type === "delete") && v && typeof v.set == "function" && v.set(_.path, _.beforeValue, "undo");
459
459
  }
460
- function w(g, v) {
461
- (g.type === "set" || g.type === "delete") && v && typeof v.set == "function" && v.set(g.path, g.afterValue, "redo");
460
+ function w(_, v) {
461
+ (_.type === "set" || _.type === "delete") && v && typeof v.set == "function" && v.set(_.path, _.afterValue, "redo");
462
462
  }
463
463
  function K() {
464
- const g = t.value.filter((y) => y.reversible).length, v = t.value.map((y) => y.timestamp);
464
+ const _ = t.value.filter((y) => y.reversible).length, v = t.value.map((y) => y.timestamp);
465
465
  return {
466
466
  operations: [...t.value],
467
467
  currentIndex: r.value,
468
468
  totalOperations: t.value.length,
469
- reversibleOperations: g,
470
- irreversibleOperations: t.value.length - g,
469
+ reversibleOperations: _,
470
+ irreversibleOperations: t.value.length - _,
471
471
  oldestOperation: v.length > 0 ? new Date(Math.min(...v.map((y) => y.getTime()))) : void 0,
472
472
  newestOperation: v.length > 0 ? new Date(Math.max(...v.map((y) => y.getTime()))) : void 0
473
473
  };
@@ -475,21 +475,21 @@ const Ie = Li("hst-operation-log", () => {
475
475
  function k() {
476
476
  t.value = [], r.value = -1;
477
477
  }
478
- function $(g, v) {
479
- return t.value.filter((y) => y.doctype === g && (v === void 0 || y.recordId === v));
478
+ function $(_, v) {
479
+ return t.value.filter((y) => y.doctype === _ && (v === void 0 || y.recordId === v));
480
480
  }
481
- function H(g, v) {
482
- const y = t.value.find((x) => x.id === g);
481
+ function H(_, v) {
482
+ const y = t.value.find((x) => x.id === _);
483
483
  y && (y.reversible = !1, y.irreversibleReason = v);
484
484
  }
485
- function J(g, v, y, x = "success", it) {
485
+ function J(_, v, y, x = "success", it) {
486
486
  const m = {
487
487
  type: "action",
488
- path: y && y.length > 0 ? `${g}.${y[0]}` : g,
488
+ path: y && y.length > 0 ? `${_}.${y[0]}` : _,
489
489
  fieldname: "",
490
490
  beforeValue: null,
491
491
  afterValue: null,
492
- doctype: g,
492
+ doctype: _,
493
493
  recordId: y && y.length > 0 ? y[0] : void 0,
494
494
  reversible: !1,
495
495
  // Actions are typically not reversible
@@ -502,48 +502,48 @@ const Ie = Li("hst-operation-log", () => {
502
502
  }
503
503
  let W = null;
504
504
  function ae() {
505
- typeof window > "u" || !window.BroadcastChannel || (W = new BroadcastChannel("stonecrop-operation-log"), W.addEventListener("message", (g) => {
506
- const v = g.data;
505
+ typeof window > "u" || !window.BroadcastChannel || (W = new BroadcastChannel("stonecrop-operation-log"), W.addEventListener("message", (_) => {
506
+ const v = _.data;
507
507
  if (!v || typeof v != "object") return;
508
508
  const y = eo(v);
509
509
  y.clientId !== n.value && (y.type === "operation" && y.operation ? (t.value.push({ ...y.operation, source: "sync" }), r.value = t.value.length - 1) : y.type === "operation" && y.operations && (t.value.push(...y.operations.map((x) => ({ ...x, source: "sync" }))), r.value = t.value.length - 1));
510
510
  }));
511
511
  }
512
- function ue(g) {
512
+ function ue(_) {
513
513
  if (!W) return;
514
514
  const v = {
515
515
  type: "operation",
516
- operation: g,
516
+ operation: _,
517
517
  clientId: n.value,
518
518
  timestamp: /* @__PURE__ */ new Date()
519
519
  };
520
520
  W.postMessage(qe(v));
521
521
  }
522
- function wt(g, v) {
522
+ function wt(_, v) {
523
523
  if (!W) return;
524
524
  const y = {
525
525
  type: "operation",
526
- operations: [...g, v],
526
+ operations: [..._, v],
527
527
  clientId: n.value,
528
528
  timestamp: /* @__PURE__ */ new Date()
529
529
  };
530
530
  W.postMessage(qe(y));
531
531
  }
532
- function ce(g) {
532
+ function ce(_) {
533
533
  if (!W) return;
534
534
  const v = {
535
535
  type: "undo",
536
- operation: g,
536
+ operation: _,
537
537
  clientId: n.value,
538
538
  timestamp: /* @__PURE__ */ new Date()
539
539
  };
540
540
  W.postMessage(qe(v));
541
541
  }
542
- function R(g) {
542
+ function R(_) {
543
543
  if (!W) return;
544
544
  const v = {
545
545
  type: "redo",
546
- operation: g,
546
+ operation: _,
547
547
  clientId: n.value,
548
548
  timestamp: /* @__PURE__ */ new Date()
549
549
  };
@@ -551,40 +551,40 @@ const Ie = Li("hst-operation-log", () => {
551
551
  }
552
552
  const F = Xi("stonecrop-operations", null, {
553
553
  serializer: {
554
- read: (g) => {
554
+ read: (_) => {
555
555
  try {
556
- return JSON.parse(g);
556
+ return JSON.parse(_);
557
557
  } catch {
558
558
  return null;
559
559
  }
560
560
  },
561
- write: (g) => g ? JSON.stringify(g) : ""
561
+ write: (_) => _ ? JSON.stringify(_) : ""
562
562
  }
563
563
  });
564
564
  function Q() {
565
565
  if (!(typeof window > "u"))
566
566
  try {
567
- const g = F.value;
568
- g && Array.isArray(g.operations) && (t.value = g.operations.map((v) => ({
567
+ const _ = F.value;
568
+ _ && Array.isArray(_.operations) && (t.value = _.operations.map((v) => ({
569
569
  ...v,
570
570
  timestamp: new Date(v.timestamp)
571
- })), r.value = g.currentIndex ?? -1);
572
- } catch (g) {
573
- typeof console < "u" && console.error("Failed to load operations from persistence:", g);
571
+ })), r.value = _.currentIndex ?? -1);
572
+ } catch (_) {
573
+ typeof console < "u" && console.error("Failed to load operations from persistence:", _);
574
574
  }
575
575
  }
576
576
  function fe() {
577
577
  if (!(typeof window > "u"))
578
578
  try {
579
579
  F.value = {
580
- operations: t.value.map((g) => ({
581
- ...g,
582
- timestamp: g.timestamp.toISOString()
580
+ operations: t.value.map((_) => ({
581
+ ..._,
582
+ timestamp: _.timestamp.toISOString()
583
583
  })),
584
584
  currentIndex: r.value
585
585
  };
586
- } catch (g) {
587
- typeof console < "u" && console.error("Failed to save operations to persistence:", g);
586
+ } catch (_) {
587
+ typeof console < "u" && console.error("Failed to save operations to persistence:", _);
588
588
  }
589
589
  }
590
590
  function xt() {
@@ -611,7 +611,7 @@ const Ie = Li("hst-operation-log", () => {
611
611
  // Methods
612
612
  configure: h,
613
613
  addOperation: l,
614
- startBatch: _,
614
+ startBatch: g,
615
615
  commitBatch: p,
616
616
  cancelBatch: d,
617
617
  undo: S,
@@ -623,7 +623,7 @@ const Ie = Li("hst-operation-log", () => {
623
623
  logAction: J
624
624
  };
625
625
  });
626
- class ge {
626
+ class _e {
627
627
  /**
628
628
  * The root FieldTriggerEngine instance
629
629
  */
@@ -644,9 +644,9 @@ class ge {
644
644
  * @param options - Configuration options for the field trigger engine
645
645
  */
646
646
  constructor(t = {}) {
647
- if (ge._root)
648
- return ge._root;
649
- ge._root = this, this.options = {
647
+ if (_e._root)
648
+ return _e._root;
649
+ _e._root = this, this.options = {
650
650
  defaultTimeout: t.defaultTimeout ?? 5e3,
651
651
  debug: t.debug ?? !1,
652
652
  enableRollback: t.enableRollback ?? !0,
@@ -770,7 +770,7 @@ class ge {
770
770
  } catch (S) {
771
771
  console.error("[FieldTriggers] Rollback failed:", S);
772
772
  }
773
- const _ = performance.now() - s, p = a.filter((S) => !S.success && S.error != null);
773
+ const g = performance.now() - s, p = a.filter((S) => !S.success && S.error != null);
774
774
  if (p.length > 0 && this.options.errorHandler)
775
775
  for (const S of p)
776
776
  try {
@@ -781,7 +781,7 @@ class ge {
781
781
  return {
782
782
  path: t.path,
783
783
  actionResults: a,
784
- totalExecutionTime: _,
784
+ totalExecutionTime: g,
785
785
  allSucceeded: a.every((S) => S.success),
786
786
  stoppedOnError: u,
787
787
  rolledBack: c,
@@ -968,7 +968,7 @@ class ge {
968
968
  }
969
969
  }
970
970
  function bt(e) {
971
- return new ge(e);
971
+ return new _e(e);
972
972
  }
973
973
  function os(e, t) {
974
974
  bt().registerAction(e, t);
@@ -1457,10 +1457,10 @@ class At {
1457
1457
  try {
1458
1458
  if (o && o.length > 0) {
1459
1459
  const l = bt();
1460
- o.forEach((_) => {
1460
+ o.forEach((g) => {
1461
1461
  try {
1462
- const p = l.getAction(_);
1463
- if (!p) throw new Error(`Action "${_}" is not registered in FieldTriggerEngine`);
1462
+ const p = l.getAction(g);
1463
+ if (!p) throw new Error(`Action "${g}" is not registered in FieldTriggerEngine`);
1464
1464
  const d = {
1465
1465
  path: `${t.slug}.${s?.[0] ?? ""}`,
1466
1466
  fieldname: r,
@@ -1525,17 +1525,21 @@ class At {
1525
1525
  }
1526
1526
  /**
1527
1527
  * Get single record from server using the configured data client.
1528
- * @param doctype - The doctype
1528
+ * @param doctype - The doctype slug string or Doctype object
1529
1529
  * @param recordId - The record ID
1530
1530
  * @throws Error if no data client has been configured
1531
+ * @throws Error if a slug string is given and no matching doctype is found in the registry
1531
1532
  */
1532
1533
  async getRecord(t, r) {
1533
1534
  if (!this._client)
1534
1535
  throw new Error(
1535
1536
  "No data client configured. Call setClient() with a DataClient implementation (e.g., StonecropClient from @stonecrop/graphql-client) before fetching records."
1536
1537
  );
1537
- const n = await this._client.getRecord(t, r);
1538
- n && this.addRecord(t, r, n);
1538
+ const n = typeof t == "string" ? this.registry.getDoctype(t) : t;
1539
+ if (!n)
1540
+ throw new Error(`Doctype not found: ${typeof t == "string" ? t : t.slug}`);
1541
+ const i = await this._client.getRecord(n, r);
1542
+ i?.record && this.addRecord(n, r, i.record);
1539
1543
  }
1540
1544
  /**
1541
1545
  * Dispatch an action to the server via the configured data client.
@@ -1661,11 +1665,11 @@ class At {
1661
1665
  const o = await this._client.getRecord({ name: r.doctype }, n, {
1662
1666
  includeNested: i?.includeNested ?? !0
1663
1667
  });
1664
- if (!o)
1668
+ if (!o?.record)
1665
1669
  throw en(`Record not found: ${r.doctype} ${n}`, "RECORD_NOT_FOUND");
1666
1670
  const s = r.slug;
1667
1671
  this.ensureDoctypeExists(s), this.hstStore.get(`${s}.${n}`) || this.hstStore.set(`${s}.${n}`, {}, "system");
1668
- for (const [u, c] of Object.entries(o))
1672
+ for (const [u, c] of Object.entries(o.record))
1669
1673
  this.hstStore.set(`${s}.${n}.${u}`, c, "system");
1670
1674
  }
1671
1675
  /**
@@ -1733,7 +1737,7 @@ function hs(e, t, r) {
1733
1737
  i.value = !1;
1734
1738
  }
1735
1739
  }
1736
- }, _ = G(() => {
1740
+ }, g = G(() => {
1737
1741
  if (o.value)
1738
1742
  return a.get(u());
1739
1743
  });
@@ -1743,14 +1747,14 @@ function hs(e, t, r) {
1743
1747
  loaded: o,
1744
1748
  error: s,
1745
1749
  // Computed
1746
- data: _,
1750
+ data: g,
1747
1751
  // Actions
1748
1752
  reload: l
1749
1753
  };
1750
1754
  }
1751
1755
  function ls(e) {
1752
1756
  e || (e = {});
1753
- const t = e.registry || xe("$registry"), r = xe("$stonecrop"), n = j(), i = j(), o = j({}), s = j(), a = j(), u = j([]), c = j(!1), f = j(null), h = j(), l = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? !0 : n.value.isWorkflowReady(h.value, e.recordId).ready), _ = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? [] : n.value.isWorkflowReady(h.value, e.recordId).blockedLinks ?? []), p = r || At._root;
1757
+ const t = e.registry || xe("$registry"), r = xe("$stonecrop"), n = j(), i = j(), o = j({}), s = j(), a = j(), u = j([]), c = j(!1), f = j(null), h = j(), l = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? !0 : n.value.isWorkflowReady(h.value, e.recordId).ready), g = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? [] : n.value.isWorkflowReady(h.value, e.recordId).blockedLinks ?? []), p = r || At._root;
1754
1758
  p && (n.value = p), e?.doctype && typeof e.doctype != "string" && (h.value = e.doctype);
1755
1759
  const d = j([]), S = j(-1), I = G(() => n.value?.getOperationLogStore().canUndo ?? !1), O = G(() => n.value?.getOperationLogStore().canRedo ?? !1), w = G(() => n.value?.getOperationLogStore().undoCount ?? 0), K = G(() => n.value?.getOperationLogStore().redoCount ?? 0), k = G(
1756
1760
  () => n.value?.getOperationLogStore().undoRedoState ?? {
@@ -1904,7 +1908,7 @@ function ls(e) {
1904
1908
  }
1905
1909
  };
1906
1910
  (e.doctype || t?.router) && (Xr("hstPathProvider", fe), Xr("hstChangeHandler", xt));
1907
- const g = (m, E) => {
1911
+ const _ = (m, E) => {
1908
1912
  if (!n.value)
1909
1913
  throw new Error("Stonecrop instance not available");
1910
1914
  return n.value.initializeNestedData(m, E);
@@ -1953,7 +1957,7 @@ function ls(e) {
1953
1957
  hstStore: i,
1954
1958
  formData: o,
1955
1959
  resolvedSchema: u,
1956
- initializeNestedData: g,
1960
+ initializeNestedData: _,
1957
1961
  fetchNestedData: v,
1958
1962
  collectRecordPayload: y,
1959
1963
  createNestedContext: x,
@@ -1961,7 +1965,7 @@ function ls(e) {
1961
1965
  error: f,
1962
1966
  resolvedDoctype: h,
1963
1967
  isWorkflowReady: l,
1964
- blockedLinks: _
1968
+ blockedLinks: g
1965
1969
  } : !e.doctype && t?.router ? {
1966
1970
  stonecrop: n,
1967
1971
  operationLog: it,
@@ -1970,7 +1974,7 @@ function ls(e) {
1970
1974
  hstStore: i,
1971
1975
  formData: o,
1972
1976
  resolvedSchema: u,
1973
- initializeNestedData: g,
1977
+ initializeNestedData: _,
1974
1978
  fetchNestedData: v,
1975
1979
  collectRecordPayload: y,
1976
1980
  createNestedContext: x,
@@ -1978,7 +1982,7 @@ function ls(e) {
1978
1982
  error: f,
1979
1983
  resolvedDoctype: h,
1980
1984
  isWorkflowReady: l,
1981
- blockedLinks: _
1985
+ blockedLinks: g
1982
1986
  } : {
1983
1987
  stonecrop: n,
1984
1988
  operationLog: it
@@ -2022,7 +2026,7 @@ function Dn(e) {
2022
2026
  function l() {
2023
2027
  r.startBatch();
2024
2028
  }
2025
- function _(k) {
2029
+ function g(k) {
2026
2030
  return r.commitBatch(k);
2027
2031
  }
2028
2032
  function p() {
@@ -2059,7 +2063,7 @@ function Dn(e) {
2059
2063
  undo: f,
2060
2064
  redo: h,
2061
2065
  startBatch: l,
2062
- commitBatch: _,
2066
+ commitBatch: g,
2063
2067
  cancelBatch: p,
2064
2068
  clear: d,
2065
2069
  getOperationsFor: S,
@@ -2120,7 +2124,7 @@ var Z = function(t) {
2120
2124
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t;
2121
2125
  })(Z), Pt = /* @__PURE__ */ (function(e) {
2122
2126
  function t(r) {
2123
- return pt(r) ? r : _t(r);
2127
+ return pt(r) ? r : gt(r);
2124
2128
  }
2125
2129
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t;
2126
2130
  })(Z), ee = /* @__PURE__ */ (function(e) {
@@ -2185,7 +2189,7 @@ function oo(e) {
2185
2189
  return t && t === e.keys;
2186
2190
  }
2187
2191
  var Ae = "delete", T = 5, at = 1 << T, tt = at - 1, A = {};
2188
- function _r() {
2192
+ function gr() {
2189
2193
  return { value: !1 };
2190
2194
  }
2191
2195
  function lt(e) {
@@ -2297,7 +2301,7 @@ var nt = /* @__PURE__ */ (function(e) {
2297
2301
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.toKeyedSeq = function() {
2298
2302
  return this;
2299
2303
  }, t;
2300
- })(nt), _t = /* @__PURE__ */ (function(e) {
2304
+ })(nt), gt = /* @__PURE__ */ (function(e) {
2301
2305
  function t(r) {
2302
2306
  return r == null ? Ar() : ct(r) ? N(r) ? r.entrySeq() : r.toIndexedSeq() : Ft(r) ? r.toSeq().entrySeq() : Wn(r);
2303
2307
  }
@@ -2310,7 +2314,7 @@ var nt = /* @__PURE__ */ (function(e) {
2310
2314
  }, t;
2311
2315
  })(nt), ie = /* @__PURE__ */ (function(e) {
2312
2316
  function t(r) {
2313
- return (ct(r) && !Or(r) ? r : _t(r)).toSetSeq();
2317
+ return (ct(r) && !Or(r) ? r : gt(r)).toSetSeq();
2314
2318
  }
2315
2319
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.of = function() {
2316
2320
  return t(arguments);
@@ -2321,7 +2325,7 @@ var nt = /* @__PURE__ */ (function(e) {
2321
2325
  nt.isSeq = Rr;
2322
2326
  nt.Keyed = Dt;
2323
2327
  nt.Set = ie;
2324
- nt.Indexed = _t;
2328
+ nt.Indexed = gt;
2325
2329
  nt.prototype[xn] = !0;
2326
2330
  var Vt = /* @__PURE__ */ (function(e) {
2327
2331
  function t(r) {
@@ -2345,7 +2349,7 @@ var Vt = /* @__PURE__ */ (function(e) {
2345
2349
  return P(n, u, o[u]);
2346
2350
  });
2347
2351
  }, t;
2348
- })(_t), Ir = /* @__PURE__ */ (function(e) {
2352
+ })(gt), Ir = /* @__PURE__ */ (function(e) {
2349
2353
  function t(r) {
2350
2354
  var n = Object.keys(r).concat(
2351
2355
  Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(r) : []
@@ -2398,7 +2402,7 @@ var so = /* @__PURE__ */ (function(e) {
2398
2402
  return u.done ? u : P(n, a++, u.value);
2399
2403
  });
2400
2404
  }, t;
2401
- })(_t), nn;
2405
+ })(gt), nn;
2402
2406
  function Ar() {
2403
2407
  return nn || (nn = new Vt([]));
2404
2408
  }
@@ -2453,7 +2457,7 @@ function ot(e) {
2453
2457
  return on(e);
2454
2458
  if (typeof e.hashCode == "function")
2455
2459
  return Xe(e.hashCode(e));
2456
- var t = _o(e);
2460
+ var t = go(e);
2457
2461
  if (t == null)
2458
2462
  return on(t);
2459
2463
  switch (typeof t) {
@@ -2462,7 +2466,7 @@ function ot(e) {
2462
2466
  case "number":
2463
2467
  return co(t);
2464
2468
  case "string":
2465
- return t.length > go ? fo(t) : gr(t);
2469
+ return t.length > _o ? fo(t) : _r(t);
2466
2470
  case "object":
2467
2471
  case "function":
2468
2472
  return lo(t);
@@ -2470,7 +2474,7 @@ function ot(e) {
2470
2474
  return ho(t);
2471
2475
  default:
2472
2476
  if (typeof t.toString == "function")
2473
- return gr(t.toString());
2477
+ return _r(t.toString());
2474
2478
  throw new Error("Value type " + typeof t + " cannot be hashed.");
2475
2479
  }
2476
2480
  }
@@ -2490,9 +2494,9 @@ function co(e) {
2490
2494
  }
2491
2495
  function fo(e) {
2492
2496
  var t = ur[e];
2493
- return t === void 0 && (t = gr(e), ar === vo && (ar = 0, ur = {}), ar++, ur[e] = t), t;
2497
+ return t === void 0 && (t = _r(e), ar === vo && (ar = 0, ur = {}), ar++, ur[e] = t), t;
2494
2498
  }
2495
- function gr(e) {
2499
+ function _r(e) {
2496
2500
  for (var t = 0, r = 0; r < e.length; r++)
2497
2501
  t = 31 * t + e.charCodeAt(r) | 0;
2498
2502
  return Xe(t);
@@ -2548,7 +2552,7 @@ function po(e) {
2548
2552
  return e.documentElement && e.documentElement.uniqueID;
2549
2553
  }
2550
2554
  }
2551
- function _o(e) {
2555
+ function go(e) {
2552
2556
  return e.valueOf !== uo && typeof e.valueOf == "function" ? (
2553
2557
  // @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
2554
2558
  e.valueOf(e)
@@ -2562,7 +2566,7 @@ var vr = typeof WeakMap == "function", yr;
2562
2566
  vr && (yr = /* @__PURE__ */ new WeakMap());
2563
2567
  var un = /* @__PURE__ */ Object.create(null), sr = 0, qt = "__immutablehash__";
2564
2568
  typeof Symbol == "function" && (qt = Symbol(qt));
2565
- var go = 16, vo = 255, ar = 0, ur = {}, Qe = /* @__PURE__ */ (function(e) {
2569
+ var _o = 16, vo = 255, ar = 0, ur = {}, Qe = /* @__PURE__ */ (function(e) {
2566
2570
  function t(r, n) {
2567
2571
  this._iter = r, this._useKeys = n, this.size = r.size;
2568
2572
  }
@@ -2618,7 +2622,7 @@ var Hn = /* @__PURE__ */ (function(e) {
2618
2622
  );
2619
2623
  });
2620
2624
  }, t;
2621
- })(_t), Vn = /* @__PURE__ */ (function(e) {
2625
+ })(gt), Vn = /* @__PURE__ */ (function(e) {
2622
2626
  function t(r) {
2623
2627
  this._iter = r, this.size = r.size;
2624
2628
  }
@@ -2866,9 +2870,9 @@ function zr(e, t, r, n) {
2866
2870
  return 0;
2867
2871
  if (h)
2868
2872
  return this.cacheResult().__iterate(f, h);
2869
- var _ = 0, p = !0, d = 0;
2873
+ var g = 0, p = !0, d = 0;
2870
2874
  return e.__iterate(function(S, I) {
2871
- if (!(p && (p = _++ < o)))
2875
+ if (!(p && (p = g++ < o)))
2872
2876
  return d++, f(S, n ? I : d - 1, l) !== !1 && d !== u;
2873
2877
  }), d;
2874
2878
  }, c.__iteratorUncached = function(f, h) {
@@ -2876,9 +2880,9 @@ function zr(e, t, r, n) {
2876
2880
  return this.cacheResult().__iterator(f, h);
2877
2881
  if (u === 0)
2878
2882
  return new M(et);
2879
- var l = e.__iterator(f, h), _ = 0, p = 0;
2883
+ var l = e.__iterator(f, h), g = 0, p = 0;
2880
2884
  return new M(function() {
2881
- for (; _++ < o; )
2885
+ for (; g++ < o; )
2882
2886
  l.next();
2883
2887
  if (++p > u)
2884
2888
  return et();
@@ -2932,14 +2936,14 @@ function Xn(e, t, r, n) {
2932
2936
  return this.cacheResult().__iterator(o, s);
2933
2937
  var u = e.__iterator(ht, s), c = !0, f = 0;
2934
2938
  return new M(function() {
2935
- var h, l, _;
2939
+ var h, l, g;
2936
2940
  do {
2937
2941
  if (h = u.next(), h.done)
2938
2942
  return n || o === ft ? h : o === re ? P(o, f++, void 0, h) : P(o, f++, h.value[1], h);
2939
2943
  var p = h.value;
2940
- l = p[0], _ = p[1], c && (c = t.call(r, _, l, a));
2944
+ l = p[0], g = p[1], c && (c = t.call(r, g, l, a));
2941
2945
  } while (c);
2942
- return o === ht ? h : P(o, l, _, h);
2946
+ return o === ht ? h : P(o, l, g, h);
2943
2947
  });
2944
2948
  }, i;
2945
2949
  }
@@ -3083,7 +3087,7 @@ function Yt(e, t, r) {
3083
3087
  } : function(s, a) {
3084
3088
  o[a] = s[1];
3085
3089
  }
3086
- ), n ? Dt(o) : pt(e) ? _t(o) : ie(o);
3090
+ ), n ? Dt(o) : pt(e) ? gt(o) : ie(o);
3087
3091
  }
3088
3092
  function Ne(e, t, r) {
3089
3093
  if (t || (t = ti), r) {
@@ -3149,7 +3153,7 @@ function Tr(e) {
3149
3153
  }
3150
3154
  function St(e) {
3151
3155
  return Object.create(
3152
- (N(e) ? Dt : pt(e) ? _t : ie).prototype
3156
+ (N(e) ? Dt : pt(e) ? gt : ie).prototype
3153
3157
  );
3154
3158
  }
3155
3159
  function Lr() {
@@ -3230,7 +3234,7 @@ function Ao(e) {
3230
3234
  function Tt(e) {
3231
3235
  return typeof e == "object" && (mt(e) || Array.isArray(e) || Ao(e));
3232
3236
  }
3233
- function gt(e, t) {
3237
+ function _t(e, t) {
3234
3238
  t = t || 0;
3235
3239
  for (var r = Math.max(0, e.length - t), n = new Array(r), i = 0; i < r; i++)
3236
3240
  n[i] = e[i + t];
@@ -3238,7 +3242,7 @@ function gt(e, t) {
3238
3242
  }
3239
3243
  function He(e) {
3240
3244
  if (Array.isArray(e))
3241
- return gt(e);
3245
+ return _t(e);
3242
3246
  var t = {};
3243
3247
  for (var r in e)
3244
3248
  ne.call(e, r) && (t[r] = e[r]);
@@ -3422,8 +3426,8 @@ Se.prototype.update = function(t, r, n, i, o, s, a) {
3422
3426
  if (lt(a), (u || !l) && lt(s), !(u && c.length === 1)) {
3423
3427
  if (!l && !u && c.length >= No)
3424
3428
  return To(t, c, i, o);
3425
- var _ = t && t === this.ownerID, p = _ ? c : gt(c);
3426
- return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), _ ? (this.entries = p, this) : new Se(t, p);
3429
+ var g = t && t === this.ownerID, p = g ? c : _t(c);
3430
+ return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), g ? (this.entries = p, this) : new Se(t, p);
3427
3431
  }
3428
3432
  };
3429
3433
  var Jt = function(t, r, n) {
@@ -3444,7 +3448,7 @@ Jt.prototype.update = function(t, r, n, i, o, s, a) {
3444
3448
  var u = (r === 0 ? n : n >>> r) & tt, c = 1 << u, f = this.bitmap, h = (f & c) !== 0;
3445
3449
  if (!h && o === A)
3446
3450
  return this;
3447
- var l = ui(f & c - 1), _ = this.nodes, p = h ? _[l] : void 0, d = Wr(
3451
+ var l = ui(f & c - 1), g = this.nodes, p = h ? g[l] : void 0, d = Wr(
3448
3452
  p,
3449
3453
  t,
3450
3454
  r + T,
@@ -3456,13 +3460,13 @@ Jt.prototype.update = function(t, r, n, i, o, s, a) {
3456
3460
  );
3457
3461
  if (d === p)
3458
3462
  return this;
3459
- if (!h && d && _.length >= Po)
3460
- return Do(t, _, f, u, d);
3461
- if (h && !d && _.length === 2 && _n(_[l ^ 1]))
3462
- return _[l ^ 1];
3463
- if (h && d && _.length === 1 && _n(d))
3463
+ if (!h && d && g.length >= Po)
3464
+ return Do(t, g, f, u, d);
3465
+ if (h && !d && g.length === 2 && gn(g[l ^ 1]))
3466
+ return g[l ^ 1];
3467
+ if (h && d && g.length === 1 && gn(d))
3464
3468
  return d;
3465
- var S = t && t === this.ownerID, I = h ? d ? f : f ^ c : f | c, O = h ? d ? ci(_, l, d, S) : qo(_, l, S) : Co(_, l, d, S);
3469
+ var S = t && t === this.ownerID, I = h ? d ? f : f ^ c : f | c, O = h ? d ? ci(g, l, d, S) : qo(g, l, S) : Co(g, l, d, S);
3466
3470
  return S ? (this.bitmap = I, this.nodes = O, this) : new Jt(t, I, O);
3467
3471
  };
3468
3472
  var we = function(t, r, n) {
@@ -3490,13 +3494,13 @@ we.prototype.update = function(t, r, n, i, o, s, a) {
3490
3494
  );
3491
3495
  if (l === h)
3492
3496
  return this;
3493
- var _ = this.count;
3497
+ var g = this.count;
3494
3498
  if (!h)
3495
- _++;
3496
- else if (!l && (_--, _ < Fo))
3497
- return Lo(t, f, _, u);
3499
+ g++;
3500
+ else if (!l && (g--, g < Fo))
3501
+ return Lo(t, f, g, u);
3498
3502
  var p = t && t === this.ownerID, d = ci(f, u, l, p);
3499
- return p ? (this.count = _, this.nodes = d, this) : new we(t, _, d);
3503
+ return p ? (this.count = g, this.nodes = d, this) : new we(t, g, d);
3500
3504
  };
3501
3505
  var Gt = function(t, r, n) {
3502
3506
  this.ownerID = t, this.keyHash = r, this.entries = n;
@@ -3519,8 +3523,8 @@ Gt.prototype.update = function(t, r, n, i, o, s, a) {
3519
3523
  return this;
3520
3524
  if (lt(a), (u || !l) && lt(s), u && h === 2)
3521
3525
  return new Ot(t, this.keyHash, c[f ^ 1]);
3522
- var _ = t && t === this.ownerID, p = _ ? c : gt(c);
3523
- return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), _ ? (this.entries = p, this) : new Gt(t, this.keyHash, p);
3526
+ var g = t && t === this.ownerID, p = g ? c : _t(c);
3527
+ return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), g ? (this.entries = p, this) : new Gt(t, this.keyHash, p);
3524
3528
  };
3525
3529
  var Ot = function(t, r, n) {
3526
3530
  this.ownerID = t, this.keyHash = r, this.entry = n;
@@ -3604,7 +3608,7 @@ function vt() {
3604
3608
  function dn(e, t, r) {
3605
3609
  var n, i;
3606
3610
  if (e._root) {
3607
- var o = _r(), s = _r();
3611
+ var o = gr(), s = gr();
3608
3612
  if (n = Wr(
3609
3613
  e._root,
3610
3614
  e.__ownerID,
@@ -3635,7 +3639,7 @@ function Wr(e, t, r, n, i, o, s, a) {
3635
3639
  a
3636
3640
  ) : o === A ? e : (lt(a), lt(s), new Ot(t, n, [i, o]));
3637
3641
  }
3638
- function _n(e) {
3642
+ function gn(e) {
3639
3643
  return e.constructor === Ot || e.constructor === Gt;
3640
3644
  }
3641
3645
  function Kr(e, t, r, n, i) {
@@ -3668,7 +3672,7 @@ function ui(e) {
3668
3672
  return e -= e >> 1 & 1431655765, e = (e & 858993459) + (e >> 2 & 858993459), e = e + (e >> 4) & 252645135, e += e >> 8, e += e >> 16, e & 127;
3669
3673
  }
3670
3674
  function ci(e, t, r, n) {
3671
- var i = n ? e : gt(e);
3675
+ var i = n ? e : _t(e);
3672
3676
  return i[t] = r, i;
3673
3677
  }
3674
3678
  function Co(e, t, r, n) {
@@ -3815,7 +3819,7 @@ var Zt = /* @__PURE__ */ (function(e) {
3815
3819
  }, t.prototype.get = function(n, i) {
3816
3820
  if (n = $t(this, n), n >= 0 && n < this.size) {
3817
3821
  n += this._origin;
3818
- var o = _i(this, n);
3822
+ var o = gi(this, n);
3819
3823
  return o && o.array[n & tt];
3820
3824
  }
3821
3825
  return i;
@@ -3880,13 +3884,13 @@ var Zt = /* @__PURE__ */ (function(e) {
3880
3884
  Ze(i, o)
3881
3885
  );
3882
3886
  }, t.prototype.__iterator = function(n, i) {
3883
- var o = i ? this.size : 0, s = gn(this, i);
3887
+ var o = i ? this.size : 0, s = _n(this, i);
3884
3888
  return new M(function() {
3885
3889
  var a = s();
3886
3890
  return a === ye ? et() : P(n, i ? --o : o++, a);
3887
3891
  });
3888
3892
  }, t.prototype.__iterate = function(n, i) {
3889
- for (var o = i ? this.size : 0, s = gn(this, i), a; (a = s()) !== ye && n(a, i ? --o : o++, this) !== !1; )
3893
+ for (var o = i ? this.size : 0, s = _n(this, i), a; (a = s()) !== ye && n(a, i ? --o : o++, this) !== !1; )
3890
3894
  ;
3891
3895
  return o;
3892
3896
  }, t.prototype.__ensureOwner = function(n) {
@@ -3961,23 +3965,23 @@ kt.prototype.removeAfter = function(t, r, n) {
3961
3965
  return a.array.splice(i + 1), o && (a.array[i] = o), a;
3962
3966
  };
3963
3967
  var ye = {};
3964
- function gn(e, t) {
3968
+ function _n(e, t) {
3965
3969
  var r = e._origin, n = e._capacity, i = Ee(n), o = e._tail;
3966
3970
  return s(e._root, e._level, 0);
3967
3971
  function s(c, f, h) {
3968
3972
  return f === 0 ? a(c, h) : u(c, f, h);
3969
3973
  }
3970
3974
  function a(c, f) {
3971
- var h = f === i ? o && o.array : c && c.array, l = f > r ? 0 : r - f, _ = n - f;
3972
- return _ > at && (_ = at), function() {
3973
- if (l === _)
3975
+ var h = f === i ? o && o.array : c && c.array, l = f > r ? 0 : r - f, g = n - f;
3976
+ return g > at && (g = at), function() {
3977
+ if (l === g)
3974
3978
  return ye;
3975
- var p = t ? --_ : l++;
3979
+ var p = t ? --g : l++;
3976
3980
  return h && h[p];
3977
3981
  };
3978
3982
  }
3979
3983
  function u(c, f, h) {
3980
- var l, _ = c && c.array, p = h > r ? 0 : r - h >> f, d = (n - h >> f) + 1;
3984
+ var l, g = c && c.array, p = h > r ? 0 : r - h >> f, d = (n - h >> f) + 1;
3981
3985
  return d > at && (d = at), function() {
3982
3986
  for (; ; ) {
3983
3987
  if (l) {
@@ -3990,7 +3994,7 @@ function gn(e, t) {
3990
3994
  return ye;
3991
3995
  var I = t ? --d : p++;
3992
3996
  l = s(
3993
- _ && _[I],
3997
+ g && g[I],
3994
3998
  f - T,
3995
3999
  h + (I << f)
3996
4000
  );
@@ -4013,7 +4017,7 @@ function Wo(e, t, r) {
4013
4017
  t < 0 ? Rt(s, t).set(0, r) : Rt(s, 0, t + 1).set(t, r);
4014
4018
  });
4015
4019
  t += e._origin;
4016
- var n = e._tail, i = e._root, o = _r();
4020
+ var n = e._tail, i = e._root, o = gr();
4017
4021
  return t >= Ee(e._capacity) ? n = mr(n, e.__ownerID, 0, t, r, o) : i = mr(
4018
4022
  i,
4019
4023
  e.__ownerID,
@@ -4044,7 +4048,7 @@ function mr(e, t, r, n, i, o) {
4044
4048
  function Xt(e, t) {
4045
4049
  return t && e && t === e.ownerID ? e : new kt(e ? e.array.slice() : [], t);
4046
4050
  }
4047
- function _i(e, t) {
4051
+ function gi(e, t) {
4048
4052
  if (t >= Ee(e._capacity))
4049
4053
  return e._tail;
4050
4054
  if (t < 1 << e._level + T) {
@@ -4071,14 +4075,14 @@ function Rt(e, t, r) {
4071
4075
  c && c.array.length ? [c] : [],
4072
4076
  n
4073
4077
  ), u += T;
4074
- var _ = e._tail, p = l < h ? _i(e, a - 1) : l > h ? new kt([], n) : _;
4075
- if (_ && l > h && s < o && _.array.length) {
4078
+ var g = e._tail, p = l < h ? gi(e, a - 1) : l > h ? new kt([], n) : g;
4079
+ if (g && l > h && s < o && g.array.length) {
4076
4080
  c = Xt(c, n);
4077
4081
  for (var d = c, S = u; S > T; S -= T) {
4078
4082
  var I = h >>> S & tt;
4079
4083
  d = d.array[I] = Xt(d.array[I], n);
4080
4084
  }
4081
- d.array[h >>> T & tt] = _;
4085
+ d.array[h >>> T & tt] = g;
4082
4086
  }
4083
4087
  if (a < o && (p = p && p.removeAfter(n, 0, a)), s >= l)
4084
4088
  s -= l, a -= l, u = T, c = null, p = p && p.removeBefore(n, 0, s);
@@ -4100,12 +4104,12 @@ function Rt(e, t, r) {
4100
4104
  function Ee(e) {
4101
4105
  return e < at ? 0 : e - 1 >>> T << T;
4102
4106
  }
4103
- function gi(e) {
4107
+ function _i(e) {
4104
4108
  return xr(e) && yt(e);
4105
4109
  }
4106
4110
  var Et = /* @__PURE__ */ (function(e) {
4107
4111
  function t(r) {
4108
- return r == null ? pe() : gi(r) ? r : pe().withMutations(function(n) {
4112
+ return r == null ? pe() : _i(r) ? r : pe().withMutations(function(n) {
4109
4113
  var i = dt(r);
4110
4114
  st(i.size), i.forEach(function(o, s) {
4111
4115
  return n.set(s, o);
@@ -4142,7 +4146,7 @@ var Et = /* @__PURE__ */ (function(e) {
4142
4146
  return n ? Vr(i, o, n, this.__hash) : this.size === 0 ? pe() : (this.__ownerID = n, this.__altered = !1, this._map = i, this._list = o, this);
4143
4147
  }, t;
4144
4148
  })(Lt);
4145
- Et.isOrderedMap = gi;
4149
+ Et.isOrderedMap = _i;
4146
4150
  Et.prototype[zt] = !0;
4147
4151
  Et.prototype[Ae] = Et.prototype.remove;
4148
4152
  function Vr(e, t, r, n) {
@@ -4410,14 +4414,14 @@ var Vo = /* @__PURE__ */ (function(e) {
4410
4414
  }, t.prototype.equals = function(n) {
4411
4415
  return n instanceof t ? this._start === n._start && this._end === n._end && this._step === n._step : yi(this, n);
4412
4416
  }, t;
4413
- })(_t), hr, mi = "@@__IMMUTABLE_SET__@@";
4417
+ })(gt), hr, mi = "@@__IMMUTABLE_SET__@@";
4414
4418
  function Jr(e) {
4415
4419
  return !!(e && // @ts-expect-error: maybeSet is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSet === 'object' && MAYBE_SET_SYMBOL in maybeSet`
4416
4420
  e[mi]);
4417
4421
  }
4418
4422
  var tr = /* @__PURE__ */ (function(e) {
4419
4423
  function t(r) {
4420
- return r == null ? _e() : Jr(r) && !yt(r) ? r : _e().withMutations(function(n) {
4424
+ return r == null ? ge() : Jr(r) && !yt(r) ? r : ge().withMutations(function(n) {
4421
4425
  var i = e(r);
4422
4426
  st(i.size), i.forEach(function(o) {
4423
4427
  return n.add(o);
@@ -4429,9 +4433,9 @@ var tr = /* @__PURE__ */ (function(e) {
4429
4433
  }, t.fromKeys = function(n) {
4430
4434
  return this(dt(n).keySeq());
4431
4435
  }, t.intersect = function(n) {
4432
- return n = Z(n).toArray(), n.length ? Y.intersect.apply(t(n.pop()), n) : _e();
4436
+ return n = Z(n).toArray(), n.length ? Y.intersect.apply(t(n.pop()), n) : ge();
4433
4437
  }, t.union = function(n) {
4434
- return n = Z(n).toArray(), n.length ? Y.union.apply(t(n.pop()), n) : _e();
4438
+ return n = Z(n).toArray(), n.length ? Y.union.apply(t(n.pop()), n) : ge();
4435
4439
  }, t.prototype.toString = function() {
4436
4440
  return this.__toString("Set {", "}");
4437
4441
  }, t.prototype.has = function(n) {
@@ -4529,7 +4533,7 @@ Y["@@transducer/step"] = function(e, t) {
4529
4533
  Y["@@transducer/result"] = function(e) {
4530
4534
  return e.asImmutable();
4531
4535
  };
4532
- Y.__empty = _e;
4536
+ Y.__empty = ge;
4533
4537
  Y.__make = Si;
4534
4538
  function je(e, t) {
4535
4539
  return e.__ownerID ? (e.size = t.size, e._map = t, e) : t === e._map ? e : t.size === 0 ? e.__empty() : e.__make(t);
@@ -4539,7 +4543,7 @@ function Si(e, t) {
4539
4543
  return r.size = e ? e.size : 0, r._map = e, r.__ownerID = t, r;
4540
4544
  }
4541
4545
  var On;
4542
- function _e() {
4546
+ function ge() {
4543
4547
  return On || (On = Si(vt()));
4544
4548
  }
4545
4549
  function wi(e, t, r) {
@@ -4985,7 +4989,7 @@ jt(Pt, {
4985
4989
  var i = this.slice(0, t);
4986
4990
  return z(
4987
4991
  this,
4988
- n === 1 ? i : i.concat(gt(arguments, 2), this.slice(t + r))
4992
+ n === 1 ? i : i.concat(_t(arguments, 2), this.slice(t + r))
4989
4993
  );
4990
4994
  },
4991
4995
  // ### More collection methods
@@ -5011,7 +5015,7 @@ jt(Pt, {
5011
5015
  return z(this, Ro(this, t));
5012
5016
  },
5013
5017
  interleave: function() {
5014
- var t = [this].concat(gt(arguments)), r = Pe(this.toSeq(), _t.of, t), n = r.flatten(!0);
5018
+ var t = [this].concat(_t(arguments)), r = Pe(this.toSeq(), gt.of, t), n = r.flatten(!0);
5015
5019
  return r.size && (n.size = r.size * t.length), z(this, n);
5016
5020
  },
5017
5021
  keySeq: function() {
@@ -5024,15 +5028,15 @@ jt(Pt, {
5024
5028
  return z(this, Xn(this, t, r, !1));
5025
5029
  },
5026
5030
  zip: function() {
5027
- var t = [this].concat(gt(arguments));
5031
+ var t = [this].concat(_t(arguments));
5028
5032
  return z(this, Pe(this, Rn, t));
5029
5033
  },
5030
5034
  zipAll: function() {
5031
- var t = [this].concat(gt(arguments));
5035
+ var t = [this].concat(_t(arguments));
5032
5036
  return z(this, Pe(this, Rn, t, !0));
5033
5037
  },
5034
5038
  zipWith: function(t) {
5035
- var r = gt(arguments);
5039
+ var r = _t(arguments);
5036
5040
  return r[0] = this, z(this, Pe(this, t, r));
5037
5041
  }
5038
5042
  });
@@ -5057,10 +5061,10 @@ Qt.has = X.includes;
5057
5061
  Qt.contains = Qt.includes;
5058
5062
  Qt.keys = Qt.values;
5059
5063
  jt(Dt, Te);
5060
- jt(_t, se);
5064
+ jt(gt, se);
5061
5065
  jt(ie, Qt);
5062
5066
  function Rn() {
5063
- return gt(arguments);
5067
+ return _t(arguments);
5064
5068
  }
5065
5069
  function Ei(e) {
5066
5070
  return Jr(e) && yt(e);
@@ -5132,9 +5136,9 @@ var V = function(t, r) {
5132
5136
  ) : Qo(o, l);
5133
5137
  }
5134
5138
  }
5135
- return this.__ownerID = void 0, this._values = Zt().withMutations(function(_) {
5136
- _.setSize(u._keys.length), dt(a).forEach(function(p, d) {
5137
- _.set(u._indices[d], p === u._defaultValues[d] ? void 0 : p);
5139
+ return this.__ownerID = void 0, this._values = Zt().withMutations(function(g) {
5140
+ g.setSize(u._keys.length), dt(a).forEach(function(p, d) {
5141
+ g.set(u._indices[d], p === u._defaultValues[d] ? void 0 : p);
5138
5142
  });
5139
5143
  }), this;
5140
5144
  }, o = i.prototype = Object.create(C);
@@ -5580,7 +5584,7 @@ class me {
5580
5584
  }
5581
5585
  const h = this.resolveSchema(f, n), {
5582
5586
  fieldtype: l,
5583
- options: _,
5587
+ options: g,
5584
5588
  cardinality: p,
5585
5589
  ...d
5586
5590
  } = u;
@@ -5824,7 +5828,7 @@ async function ts(e, t, r) {
5824
5828
  } catch {
5825
5829
  }
5826
5830
  }
5827
- const _s = {
5831
+ const gs = {
5828
5832
  install: (e, t) => {
5829
5833
  const r = e.config.globalProperties.$router, n = t?.router, i = r || n;
5830
5834
  !r && n && e.use(n);
@@ -6123,12 +6127,12 @@ function rs(e, t) {
6123
6127
  ...t
6124
6128
  });
6125
6129
  }
6126
- function gs(e, t, r, n, i) {
6130
+ function _s(e, t, r, n, i) {
6127
6131
  return rs(r).validate(e, t, n, i);
6128
6132
  }
6129
6133
  export {
6130
6134
  Ii as Doctype,
6131
- ge as FieldTriggerEngine,
6135
+ _e as FieldTriggerEngine,
6132
6136
  Kt as HST,
6133
6137
  me as Registry,
6134
6138
  es as SchemaValidator,
@@ -6136,7 +6140,7 @@ export {
6136
6140
  B as ValidationSeverity,
6137
6141
  ro as createHST,
6138
6142
  rs as createValidator,
6139
- _s as default,
6143
+ gs as default,
6140
6144
  bt as getGlobalTriggerEngine,
6141
6145
  fs as getStonecrop,
6142
6146
  cs as markOperationIrreversible,
@@ -6149,7 +6153,7 @@ export {
6149
6153
  Ie as useOperationLogStore,
6150
6154
  ls as useStonecrop,
6151
6155
  ps as useUndoRedoShortcuts,
6152
- gs as validateSchema,
6156
+ _s as validateSchema,
6153
6157
  ds as withBatch
6154
6158
  };
6155
6159
  //# sourceMappingURL=stonecrop.js.map