@apolitical/component-library 6.6.25 → 6.6.26-ac.0

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/index.mjs CHANGED
@@ -3220,11 +3220,26 @@ const Cu = {
3220
3220
  ] })
3221
3221
  });
3222
3222
  };
3223
- const Cd = ({ element: e = "section", children: t, className: n, ...r }) => re.createElement(e, {
3224
- className: V("modal", n),
3225
- children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
3226
- ...r
3227
- });
3223
+ const Cd = ({
3224
+ element: e = "section",
3225
+ children: t,
3226
+ className: n,
3227
+ variant: r,
3228
+ additionalContent: i,
3229
+ ...a
3230
+ }) => {
3231
+ let s = typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t;
3232
+ return i && (s = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3233
+ /* @__PURE__ */ c.jsx("div", { className: "modal-content", children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t }),
3234
+ /* @__PURE__ */ c.jsx("div", { className: "modal-additional-content", children: typeof i == "string" ? /* @__PURE__ */ c.jsx("p", { children: i }) : i })
3235
+ ] })), re.createElement(e, {
3236
+ className: V("modal", n, {
3237
+ "success-section": r === "success"
3238
+ }),
3239
+ children: s,
3240
+ ...a
3241
+ });
3242
+ };
3228
3243
  var Ps = { exports: {} }, gi = { exports: {} }, He = {};
3229
3244
  /** @license React v16.13.1
3230
3245
  * react-is.production.min.js
@@ -13342,7 +13357,7 @@ function Xy(e) {
13342
13357
  }
13343
13358
  return e;
13344
13359
  }
13345
- var e1 = (e, t) => {
13360
+ var ex = (e, t) => {
13346
13361
  var {
13347
13362
  selection: n
13348
13363
  } = e;
@@ -13371,11 +13386,11 @@ var e1 = (e, t) => {
13371
13386
  delete u[t], e.marks = u, zr.get(e) || e.onChange();
13372
13387
  }
13373
13388
  }
13374
- }, t1 = (e, t) => {
13389
+ }, tx = (e, t) => {
13375
13390
  pf.set(e, t);
13376
- }, n1 = (e, t) => x.point(e, t, {
13391
+ }, nx = (e, t) => x.point(e, t, {
13377
13392
  edge: "start"
13378
- }), r1 = function(t, n) {
13393
+ }), rx = function(t, n) {
13379
13394
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
13380
13395
  voids: i = !1
13381
13396
  } = r, a = x.range(t, n), [s, o] = Y.edges(a), l = "";
@@ -13388,7 +13403,7 @@ var e1 = (e, t) => {
13388
13403
  I.equals(d, o.path) && (f = f.slice(0, o.offset)), I.equals(d, s.path) && (f = f.slice(s.offset)), l += f;
13389
13404
  }
13390
13405
  return l;
13391
- }, i1 = function(t, n) {
13406
+ }, ix = function(t, n) {
13392
13407
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
13393
13408
  voids: i = !1
13394
13409
  } = r, [a, s] = Y.edges(n);
@@ -13424,7 +13439,7 @@ var e1 = (e, t) => {
13424
13439
  anchor: a,
13425
13440
  focus: s
13426
13441
  };
13427
- }, a1 = (e, t) => {
13442
+ }, ax = (e, t) => {
13428
13443
  var n = x.isNormalizing(e);
13429
13444
  x.setNormalizing(e, !1);
13430
13445
  try {
@@ -13433,7 +13448,7 @@ var e1 = (e, t) => {
13433
13448
  x.setNormalizing(e, n);
13434
13449
  }
13435
13450
  x.normalize(e);
13436
- }, s1 = function(t) {
13451
+ }, sx = function(t) {
13437
13452
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13438
13453
  x.withoutNormalizing(t, () => {
13439
13454
  var r, i, {
@@ -13558,7 +13573,7 @@ var e1 = (e, t) => {
13558
13573
  }
13559
13574
  }
13560
13575
  });
13561
- }, o1 = function(t, n) {
13576
+ }, ox = function(t, n) {
13562
13577
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
13563
13578
  x.withoutNormalizing(t, () => {
13564
13579
  var {
@@ -13673,7 +13688,7 @@ var e1 = (e, t) => {
13673
13688
  }
13674
13689
  }
13675
13690
  });
13676
- }, u1 = function(t) {
13691
+ }, ux = function(t) {
13677
13692
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
13678
13693
  edge: r = "anchor"
13679
13694
  } = n, {
@@ -13693,7 +13708,7 @@ var e1 = (e, t) => {
13693
13708
  }
13694
13709
  } else
13695
13710
  return;
13696
- }, l1 = (e) => {
13711
+ }, lx = (e) => {
13697
13712
  var {
13698
13713
  selection: t
13699
13714
  } = e;
@@ -13702,7 +13717,7 @@ var e1 = (e, t) => {
13702
13717
  properties: t,
13703
13718
  newProperties: null
13704
13719
  });
13705
- }, c1 = function(t) {
13720
+ }, cx = function(t) {
13706
13721
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
13707
13722
  selection: r
13708
13723
  } = t, {
@@ -13732,7 +13747,7 @@ var e1 = (e, t) => {
13732
13747
  }
13733
13748
  te.setSelection(t, f);
13734
13749
  }
13735
- }, d1 = (e, t) => {
13750
+ }, dx = (e, t) => {
13736
13751
  var {
13737
13752
  selection: n
13738
13753
  } = e;
@@ -13769,7 +13784,7 @@ function Ll(e) {
13769
13784
  }
13770
13785
  return e;
13771
13786
  }
13772
- var f1 = function(t, n) {
13787
+ var fx = function(t, n) {
13773
13788
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
13774
13789
  selection: i
13775
13790
  } = t, {
@@ -13785,7 +13800,7 @@ var f1 = function(t, n) {
13785
13800
  [a === "anchor" ? "anchor" : "focus"]: Ll(Ll({}, l), n)
13786
13801
  });
13787
13802
  }
13788
- }, m1 = (e, t) => {
13803
+ }, mx = (e, t) => {
13789
13804
  var {
13790
13805
  selection: n
13791
13806
  } = e, r = {}, i = {};
@@ -13798,7 +13813,7 @@ var f1 = function(t, n) {
13798
13813
  newProperties: i
13799
13814
  });
13800
13815
  }
13801
- }, h1 = function(t, n) {
13816
+ }, hx = function(t, n) {
13802
13817
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
13803
13818
  x.withoutNormalizing(t, () => {
13804
13819
  var {
@@ -13892,7 +13907,7 @@ var f1 = function(t, n) {
13892
13907
  }
13893
13908
  }
13894
13909
  });
13895
- }, p1 = function(t) {
13910
+ }, px = function(t) {
13896
13911
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13897
13912
  x.withoutNormalizing(t, () => {
13898
13913
  var {
@@ -13956,13 +13971,13 @@ var f1 = function(t, n) {
13956
13971
  }
13957
13972
  }
13958
13973
  });
13959
- }, g1 = ["text"], v1 = ["children"], bf = (e, t) => {
13974
+ }, gx = ["text"], vx = ["children"], bf = (e, t) => {
13960
13975
  if (pe.isElement(t)) {
13961
13976
  var n = t;
13962
13977
  return x.isVoid(e, t) ? !0 : n.children.length === 1 ? bf(e, n.children[0]) : !1;
13963
13978
  } else
13964
13979
  return !x.isEditor(t);
13965
- }, b1 = function(t) {
13980
+ }, bx = function(t) {
13966
13981
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13967
13982
  x.withoutNormalizing(t, () => {
13968
13983
  var {
@@ -14016,10 +14031,10 @@ var f1 = function(t, n) {
14016
14031
  match: ($) => A.includes($) && bf(t, $)
14017
14032
  }), E = C && x.pathRef(t, C[1]), B, R;
14018
14033
  if (be.isText(p) && be.isText(m)) {
14019
- var O = mn(p, g1);
14034
+ var O = mn(p, gx);
14020
14035
  R = m.text.length, B = O;
14021
14036
  } else if (pe.isElement(p) && pe.isElement(m)) {
14022
- var O = mn(p, v1);
14037
+ var O = mn(p, vx);
14023
14038
  R = m.children.length, B = O;
14024
14039
  } else
14025
14040
  throw new Error("Cannot merge the node at path [".concat(v, "] with the previous sibling because it is not the same kind: ").concat(ct.stringify(p), " ").concat(ct.stringify(m)));
@@ -14043,7 +14058,7 @@ var f1 = function(t, n) {
14043
14058
  }
14044
14059
  }
14045
14060
  });
14046
- }, y1 = (e, t) => {
14061
+ }, yx = (e, t) => {
14047
14062
  x.withoutNormalizing(e, () => {
14048
14063
  var {
14049
14064
  to: n,
@@ -14075,7 +14090,7 @@ var f1 = function(t, n) {
14075
14090
  o.unref();
14076
14091
  }
14077
14092
  });
14078
- }, x1 = function(t) {
14093
+ }, xx = function(t) {
14079
14094
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14080
14095
  x.withoutNormalizing(t, () => {
14081
14096
  var {
@@ -14112,7 +14127,7 @@ var f1 = function(t, n) {
14112
14127
  }
14113
14128
  }
14114
14129
  });
14115
- }, w1 = function(t, n) {
14130
+ }, wx = function(t, n) {
14116
14131
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
14117
14132
  x.withoutNormalizing(t, () => {
14118
14133
  var {
@@ -14173,14 +14188,14 @@ var f1 = function(t, n) {
14173
14188
  }
14174
14189
  }
14175
14190
  });
14176
- }, D1 = (e, t) => {
14191
+ }, Dx = (e, t) => {
14177
14192
  if (Y.isCollapsed(t))
14178
14193
  return t.anchor;
14179
14194
  var [, n] = Y.edges(t), r = x.pointRef(e, n);
14180
14195
  return te.delete(e, {
14181
14196
  at: t
14182
14197
  }), r.unref();
14183
- }, C1 = function(t) {
14198
+ }, Cx = function(t) {
14184
14199
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14185
14200
  x.withoutNormalizing(t, () => {
14186
14201
  var {
@@ -14192,7 +14207,7 @@ var f1 = function(t, n) {
14192
14207
  height: o = 0,
14193
14208
  always: l = !1
14194
14209
  } = n;
14195
- if (a == null && (a = (ee) => pe.isElement(ee) && x.isBlock(t, ee)), Y.isRange(s) && (s = D1(t, s)), I.isPath(s)) {
14210
+ if (a == null && (a = (ee) => pe.isElement(ee) && x.isBlock(t, ee)), Y.isRange(s) && (s = Dx(t, s)), I.isPath(s)) {
14196
14211
  var u = s, d = x.point(t, u), [f] = x.parent(t, u);
14197
14212
  a = (ee) => ee === f, o = d.path.length - u.length + 1, s = d, l = !0;
14198
14213
  }
@@ -14264,14 +14279,14 @@ var f1 = function(t, n) {
14264
14279
  }
14265
14280
  }
14266
14281
  });
14267
- }, E1 = function(t, n) {
14282
+ }, Ex = function(t, n) {
14268
14283
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
14269
14284
  Array.isArray(n) || (n = [n]);
14270
14285
  var i = {};
14271
14286
  for (var a of n)
14272
14287
  i[a] = null;
14273
14288
  te.setNodes(t, i, r);
14274
- }, _1 = function(t) {
14289
+ }, _x = function(t) {
14275
14290
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14276
14291
  x.withoutNormalizing(t, () => {
14277
14292
  var {
@@ -14333,7 +14348,7 @@ function ql(e) {
14333
14348
  }
14334
14349
  return e;
14335
14350
  }
14336
- var k1 = function(t, n) {
14351
+ var kx = function(t, n) {
14337
14352
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
14338
14353
  x.withoutNormalizing(t, () => {
14339
14354
  var {
@@ -14396,7 +14411,7 @@ var k1 = function(t, n) {
14396
14411
  v = p();
14397
14412
  }
14398
14413
  });
14399
- }, A1 = () => {
14414
+ }, Ax = () => {
14400
14415
  var e = {
14401
14416
  children: [],
14402
14417
  operations: [],
@@ -14454,7 +14469,7 @@ var k1 = function(t, n) {
14454
14469
  insertFragment: function() {
14455
14470
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14456
14471
  r[i] = arguments[i];
14457
- return o1(e, ...r);
14472
+ return ox(e, ...r);
14458
14473
  },
14459
14474
  insertNode: function() {
14460
14475
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14474,7 +14489,7 @@ var k1 = function(t, n) {
14474
14489
  removeMark: function() {
14475
14490
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14476
14491
  r[i] = arguments[i];
14477
- return e1(e, ...r);
14492
+ return ex(e, ...r);
14478
14493
  },
14479
14494
  getDirtyPaths: function() {
14480
14495
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14505,17 +14520,17 @@ var k1 = function(t, n) {
14505
14520
  collapse: function() {
14506
14521
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14507
14522
  r[i] = arguments[i];
14508
- return u1(e, ...r);
14523
+ return ux(e, ...r);
14509
14524
  },
14510
14525
  delete: function() {
14511
14526
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14512
14527
  r[i] = arguments[i];
14513
- return s1(e, ...r);
14528
+ return sx(e, ...r);
14514
14529
  },
14515
14530
  deselect: function() {
14516
14531
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14517
14532
  r[i] = arguments[i];
14518
- return l1(e, ...r);
14533
+ return lx(e, ...r);
14519
14534
  },
14520
14535
  edges: function() {
14521
14536
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14570,7 +14585,7 @@ var k1 = function(t, n) {
14570
14585
  insertNodes: function() {
14571
14586
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14572
14587
  r[i] = arguments[i];
14573
- return h1(e, ...r);
14588
+ return hx(e, ...r);
14574
14589
  },
14575
14590
  isBlock: function() {
14576
14591
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14620,22 +14635,22 @@ var k1 = function(t, n) {
14620
14635
  liftNodes: function() {
14621
14636
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14622
14637
  r[i] = arguments[i];
14623
- return p1(e, ...r);
14638
+ return px(e, ...r);
14624
14639
  },
14625
14640
  mergeNodes: function() {
14626
14641
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14627
14642
  r[i] = arguments[i];
14628
- return b1(e, ...r);
14643
+ return bx(e, ...r);
14629
14644
  },
14630
14645
  move: function() {
14631
14646
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14632
14647
  r[i] = arguments[i];
14633
- return c1(e, ...r);
14648
+ return cx(e, ...r);
14634
14649
  },
14635
14650
  moveNodes: function() {
14636
14651
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14637
14652
  r[i] = arguments[i];
14638
- return y1(e, ...r);
14653
+ return yx(e, ...r);
14639
14654
  },
14640
14655
  next: function() {
14641
14656
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14720,62 +14735,62 @@ var k1 = function(t, n) {
14720
14735
  removeNodes: function() {
14721
14736
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14722
14737
  r[i] = arguments[i];
14723
- return x1(e, ...r);
14738
+ return xx(e, ...r);
14724
14739
  },
14725
14740
  select: function() {
14726
14741
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14727
14742
  r[i] = arguments[i];
14728
- return d1(e, ...r);
14743
+ return dx(e, ...r);
14729
14744
  },
14730
14745
  setNodes: function() {
14731
14746
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14732
14747
  r[i] = arguments[i];
14733
- return w1(e, ...r);
14748
+ return wx(e, ...r);
14734
14749
  },
14735
14750
  setNormalizing: function() {
14736
14751
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14737
14752
  r[i] = arguments[i];
14738
- return t1(e, ...r);
14753
+ return tx(e, ...r);
14739
14754
  },
14740
14755
  setPoint: function() {
14741
14756
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14742
14757
  r[i] = arguments[i];
14743
- return f1(e, ...r);
14758
+ return fx(e, ...r);
14744
14759
  },
14745
14760
  setSelection: function() {
14746
14761
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14747
14762
  r[i] = arguments[i];
14748
- return m1(e, ...r);
14763
+ return mx(e, ...r);
14749
14764
  },
14750
14765
  splitNodes: function() {
14751
14766
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14752
14767
  r[i] = arguments[i];
14753
- return C1(e, ...r);
14768
+ return Cx(e, ...r);
14754
14769
  },
14755
14770
  start: function() {
14756
14771
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14757
14772
  r[i] = arguments[i];
14758
- return n1(e, ...r);
14773
+ return nx(e, ...r);
14759
14774
  },
14760
14775
  string: function() {
14761
14776
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14762
14777
  r[i] = arguments[i];
14763
- return r1(e, ...r);
14778
+ return rx(e, ...r);
14764
14779
  },
14765
14780
  unhangRange: function() {
14766
14781
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14767
14782
  r[i] = arguments[i];
14768
- return i1(e, ...r);
14783
+ return ix(e, ...r);
14769
14784
  },
14770
14785
  unsetNodes: function() {
14771
14786
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14772
14787
  r[i] = arguments[i];
14773
- return E1(e, ...r);
14788
+ return Ex(e, ...r);
14774
14789
  },
14775
14790
  unwrapNodes: function() {
14776
14791
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14777
14792
  r[i] = arguments[i];
14778
- return _1(e, ...r);
14793
+ return _x(e, ...r);
14779
14794
  },
14780
14795
  void: function() {
14781
14796
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
@@ -14785,24 +14800,24 @@ var k1 = function(t, n) {
14785
14800
  withoutNormalizing: function() {
14786
14801
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14787
14802
  r[i] = arguments[i];
14788
- return a1(e, ...r);
14803
+ return ax(e, ...r);
14789
14804
  },
14790
14805
  wrapNodes: function() {
14791
14806
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
14792
14807
  r[i] = arguments[i];
14793
- return k1(e, ...r);
14808
+ return kx(e, ...r);
14794
14809
  }
14795
14810
  };
14796
14811
  return e;
14797
- }, Mn = [], F1 = function() {
14812
+ }, Mn = [], Fx = function() {
14798
14813
  return Mn.some(function(e) {
14799
14814
  return e.activeTargets.length > 0;
14800
14815
  });
14801
- }, B1 = function() {
14816
+ }, Bx = function() {
14802
14817
  return Mn.some(function(e) {
14803
14818
  return e.skippedTargets.length > 0;
14804
14819
  });
14805
- }, Ul = "ResizeObserver loop completed with undelivered notifications.", T1 = function() {
14820
+ }, Ul = "ResizeObserver loop completed with undelivered notifications.", Tx = function() {
14806
14821
  var e;
14807
14822
  typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
14808
14823
  message: Ul
@@ -14813,7 +14828,7 @@ var k1 = function(t, n) {
14813
14828
  })(ti || (ti = {}));
14814
14829
  var In = function(e) {
14815
14830
  return Object.freeze(e);
14816
- }, S1 = function() {
14831
+ }, Sx = function() {
14817
14832
  function e(t, n) {
14818
14833
  this.inlineSize = t, this.blockSize = n, In(this);
14819
14834
  }
@@ -14843,7 +14858,7 @@ var In = function(e) {
14843
14858
  return !0;
14844
14859
  var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
14845
14860
  return !!(n && e instanceof n.Element);
14846
- }, j1 = function(e) {
14861
+ }, jx = function(e) {
14847
14862
  switch (e.tagName) {
14848
14863
  case "INPUT":
14849
14864
  if (e.type !== "image")
@@ -14858,10 +14873,10 @@ var In = function(e) {
14858
14873
  return !0;
14859
14874
  }
14860
14875
  return !1;
14861
- }, qr = typeof window < "u" ? window : {}, _i = /* @__PURE__ */ new WeakMap(), Vl = /auto|scroll/, O1 = /^tb|vertical/, P1 = /msie|trident/i.test(qr.navigator && qr.navigator.userAgent), Yt = function(e) {
14876
+ }, qr = typeof window < "u" ? window : {}, _i = /* @__PURE__ */ new WeakMap(), Vl = /auto|scroll/, Ox = /^tb|vertical/, Px = /msie|trident/i.test(qr.navigator && qr.navigator.userAgent), Yt = function(e) {
14862
14877
  return parseFloat(e || "0");
14863
14878
  }, cr = function(e, t, n) {
14864
- return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new S1((n ? t : e) || 0, (n ? e : t) || 0);
14879
+ return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Sx((n ? t : e) || 0, (n ? e : t) || 0);
14865
14880
  }, Hl = In({
14866
14881
  devicePixelContentBoxSize: cr(),
14867
14882
  borderBoxSize: cr(),
@@ -14872,7 +14887,7 @@ var In = function(e) {
14872
14887
  return _i.get(e);
14873
14888
  if (xf(e))
14874
14889
  return _i.set(e, Hl), Hl;
14875
- var n = getComputedStyle(e), r = Mo(e) && e.ownerSVGElement && e.getBBox(), i = !P1 && n.boxSizing === "border-box", a = O1.test(n.writingMode || ""), s = !r && Vl.test(n.overflowY || ""), o = !r && Vl.test(n.overflowX || ""), l = r ? 0 : Yt(n.paddingTop), u = r ? 0 : Yt(n.paddingRight), d = r ? 0 : Yt(n.paddingBottom), f = r ? 0 : Yt(n.paddingLeft), h = r ? 0 : Yt(n.borderTopWidth), p = r ? 0 : Yt(n.borderRightWidth), v = r ? 0 : Yt(n.borderBottomWidth), m = r ? 0 : Yt(n.borderLeftWidth), b = f + u, g = l + d, y = m + p, w = h + v, A = o ? e.offsetHeight - w - e.clientHeight : 0, C = s ? e.offsetWidth - y - e.clientWidth : 0, E = i ? b + y : 0, B = i ? g + w : 0, R = r ? r.width : Yt(n.width) - E - C, O = r ? r.height : Yt(n.height) - B - A, $ = R + b + C + y, P = O + g + A + w, F = In({
14890
+ var n = getComputedStyle(e), r = Mo(e) && e.ownerSVGElement && e.getBBox(), i = !Px && n.boxSizing === "border-box", a = Ox.test(n.writingMode || ""), s = !r && Vl.test(n.overflowY || ""), o = !r && Vl.test(n.overflowX || ""), l = r ? 0 : Yt(n.paddingTop), u = r ? 0 : Yt(n.paddingRight), d = r ? 0 : Yt(n.paddingBottom), f = r ? 0 : Yt(n.paddingLeft), h = r ? 0 : Yt(n.borderTopWidth), p = r ? 0 : Yt(n.borderRightWidth), v = r ? 0 : Yt(n.borderBottomWidth), m = r ? 0 : Yt(n.borderLeftWidth), b = f + u, g = l + d, y = m + p, w = h + v, A = o ? e.offsetHeight - w - e.clientHeight : 0, C = s ? e.offsetWidth - y - e.clientWidth : 0, E = i ? b + y : 0, B = i ? g + w : 0, R = r ? r.width : Yt(n.width) - E - C, O = r ? r.height : Yt(n.height) - B - A, $ = R + b + C + y, P = O + g + A + w, F = In({
14876
14891
  devicePixelContentBoxSize: cr(Math.round(R * devicePixelRatio), Math.round(O * devicePixelRatio), a),
14877
14892
  borderBoxSize: cr($, P, a),
14878
14893
  contentBoxSize: cr(R, O, a),
@@ -14889,7 +14904,7 @@ var In = function(e) {
14889
14904
  default:
14890
14905
  return a;
14891
14906
  }
14892
- }, N1 = function() {
14907
+ }, Nx = function() {
14893
14908
  function e(t) {
14894
14909
  var n = wf(t);
14895
14910
  this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = In([n.borderBoxSize]), this.contentBoxSize = In([n.contentBoxSize]), this.devicePixelContentBoxSize = In([n.devicePixelContentBoxSize]);
@@ -14901,13 +14916,13 @@ var In = function(e) {
14901
14916
  for (var t = 0, n = e.parentNode; n; )
14902
14917
  t += 1, n = n.parentNode;
14903
14918
  return t;
14904
- }, M1 = function() {
14919
+ }, Mx = function() {
14905
14920
  var e = 1 / 0, t = [];
14906
14921
  Mn.forEach(function(s) {
14907
14922
  if (s.activeTargets.length !== 0) {
14908
14923
  var o = [];
14909
14924
  s.activeTargets.forEach(function(u) {
14910
- var d = new N1(u.target), f = Cf(u.target);
14925
+ var d = new Nx(u.target), f = Cf(u.target);
14911
14926
  o.push(d), u.lastReportedSize = Df(u.target, u.observedBox), f < e && (e = f);
14912
14927
  }), t.push(function() {
14913
14928
  s.callback.call(s.observer, o, s.observer);
@@ -14925,32 +14940,32 @@ var In = function(e) {
14925
14940
  i.isActive() && (Cf(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
14926
14941
  });
14927
14942
  });
14928
- }, I1 = function() {
14943
+ }, Ix = function() {
14929
14944
  var e = 0;
14930
- for (Kl(e); F1(); )
14931
- e = M1(), Kl(e);
14932
- return B1() && T1(), e > 0;
14933
- }, Ya, Ef = [], R1 = function() {
14945
+ for (Kl(e); Fx(); )
14946
+ e = Mx(), Kl(e);
14947
+ return Bx() && Tx(), e > 0;
14948
+ }, Ya, Ef = [], Rx = function() {
14934
14949
  return Ef.splice(0).forEach(function(e) {
14935
14950
  return e();
14936
14951
  });
14937
- }, $1 = function(e) {
14952
+ }, $x = function(e) {
14938
14953
  if (!Ya) {
14939
14954
  var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
14940
14955
  new MutationObserver(function() {
14941
- return R1();
14956
+ return Rx();
14942
14957
  }).observe(n, r), Ya = function() {
14943
14958
  n.textContent = "".concat(t ? t-- : t++);
14944
14959
  };
14945
14960
  }
14946
14961
  Ef.push(e), Ya();
14947
- }, L1 = function(e) {
14948
- $1(function() {
14962
+ }, Lx = function(e) {
14963
+ $x(function() {
14949
14964
  requestAnimationFrame(e);
14950
14965
  });
14951
- }, $i = 0, z1 = function() {
14966
+ }, $i = 0, zx = function() {
14952
14967
  return !!$i;
14953
- }, q1 = 250, U1 = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Zl = [
14968
+ }, qx = 250, Ux = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Zl = [
14954
14969
  "resize",
14955
14970
  "load",
14956
14971
  "transitionend",
@@ -14967,7 +14982,7 @@ var In = function(e) {
14967
14982
  "focus"
14968
14983
  ], Yl = function(e) {
14969
14984
  return e === void 0 && (e = 0), Date.now() + e;
14970
- }, Ga = !1, W1 = function() {
14985
+ }, Ga = !1, Wx = function() {
14971
14986
  function e() {
14972
14987
  var t = this;
14973
14988
  this.stopped = !0, this.listener = function() {
@@ -14976,15 +14991,15 @@ var In = function(e) {
14976
14991
  }
14977
14992
  return e.prototype.run = function(t) {
14978
14993
  var n = this;
14979
- if (t === void 0 && (t = q1), !Ga) {
14994
+ if (t === void 0 && (t = qx), !Ga) {
14980
14995
  Ga = !0;
14981
14996
  var r = Yl(t);
14982
- L1(function() {
14997
+ Lx(function() {
14983
14998
  var i = !1;
14984
14999
  try {
14985
- i = I1();
15000
+ i = Ix();
14986
15001
  } finally {
14987
- if (Ga = !1, t = r - Yl(), !z1())
15002
+ if (Ga = !1, t = r - Yl(), !zx())
14988
15003
  return;
14989
15004
  i ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
14990
15005
  }
@@ -14994,7 +15009,7 @@ var In = function(e) {
14994
15009
  this.stop(), this.run();
14995
15010
  }, e.prototype.observe = function() {
14996
15011
  var t = this, n = function() {
14997
- return t.observer && t.observer.observe(document.body, U1);
15012
+ return t.observer && t.observer.observe(document.body, Ux);
14998
15013
  };
14999
15014
  document.body ? n() : qr.addEventListener("DOMContentLoaded", n);
15000
15015
  }, e.prototype.start = function() {
@@ -15008,11 +15023,11 @@ var In = function(e) {
15008
15023
  return qr.removeEventListener(n, t.listener, !0);
15009
15024
  }), this.stopped = !0);
15010
15025
  }, e;
15011
- }(), Us = new W1(), Gl = function(e) {
15026
+ }(), Us = new Wx(), Gl = function(e) {
15012
15027
  !$i && e > 0 && Us.start(), $i += e, !$i && Us.stop();
15013
- }, V1 = function(e) {
15014
- return !Mo(e) && !j1(e) && getComputedStyle(e).display === "inline";
15015
- }, H1 = function() {
15028
+ }, Vx = function(e) {
15029
+ return !Mo(e) && !jx(e) && getComputedStyle(e).display === "inline";
15030
+ }, Hx = function() {
15016
15031
  function e(t, n) {
15017
15032
  this.target = t, this.observedBox = n || ti.CONTENT_BOX, this.lastReportedSize = {
15018
15033
  inlineSize: 0,
@@ -15021,9 +15036,9 @@ var In = function(e) {
15021
15036
  }
15022
15037
  return e.prototype.isActive = function() {
15023
15038
  var t = Df(this.target, this.observedBox, !0);
15024
- return V1(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
15039
+ return Vx(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
15025
15040
  }, e;
15026
- }(), K1 = function() {
15041
+ }(), Kx = function() {
15027
15042
  function e(t, n) {
15028
15043
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
15029
15044
  }
@@ -15037,11 +15052,11 @@ var In = function(e) {
15037
15052
  function e() {
15038
15053
  }
15039
15054
  return e.connect = function(t, n) {
15040
- var r = new K1(t, n);
15055
+ var r = new Kx(t, n);
15041
15056
  ki.set(t, r);
15042
15057
  }, e.observe = function(t, n, r) {
15043
15058
  var i = ki.get(t), a = i.observationTargets.length === 0;
15044
- Ql(i.observationTargets, n) < 0 && (a && Mn.push(i), i.observationTargets.push(new H1(n, r && r.box)), Gl(1), Us.schedule());
15059
+ Ql(i.observationTargets, n) < 0 && (a && Mn.push(i), i.observationTargets.push(new Hx(n, r && r.box)), Gl(1), Us.schedule());
15045
15060
  }, e.unobserve = function(t, n) {
15046
15061
  var r = ki.get(t), i = Ql(r.observationTargets, n), a = r.observationTargets.length === 1;
15047
15062
  i >= 0 && (a && Mn.splice(Mn.indexOf(r), 1), r.observationTargets.splice(i, 1), Gl(-1));
@@ -15051,7 +15066,7 @@ var In = function(e) {
15051
15066
  return n.unobserve(t, i.target);
15052
15067
  }), r.activeTargets.splice(0, r.activeTargets.length);
15053
15068
  }, e;
15054
- }(), Z1 = function() {
15069
+ }(), Zx = function() {
15055
15070
  function e(t) {
15056
15071
  if (arguments.length === 0)
15057
15072
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -15080,7 +15095,7 @@ var In = function(e) {
15080
15095
  Object.defineProperty(vn, "__esModule", {
15081
15096
  value: !0
15082
15097
  });
15083
- var Y1 = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), Qa = {
15098
+ var Yx = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), Qa = {
15084
15099
  alt: "altKey",
15085
15100
  control: "ctrlKey",
15086
15101
  meta: "metaKey",
@@ -15097,7 +15112,7 @@ var Y1 = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.pla
15097
15112
  esc: "escape",
15098
15113
  ins: "insert",
15099
15114
  left: "arrowleft",
15100
- mod: Y1 ? "meta" : "control",
15115
+ mod: Yx ? "meta" : "control",
15101
15116
  opt: "alt",
15102
15117
  option: "alt",
15103
15118
  return: "enter",
@@ -15156,10 +15171,10 @@ function xa(e, t, n) {
15156
15171
  }, a = n == null ? i : i(n);
15157
15172
  return a;
15158
15173
  }
15159
- function G1(e, t) {
15174
+ function Gx(e, t) {
15160
15175
  return xa(e, t);
15161
15176
  }
15162
- function Q1(e, t) {
15177
+ function Qx(e, t) {
15163
15178
  return xa(e, { byKey: !0 }, t);
15164
15179
  }
15165
15180
  function kf(e, t) {
@@ -15206,14 +15221,14 @@ function Ff(e) {
15206
15221
  function Ro(e) {
15207
15222
  return e = e.toLowerCase(), e = _f[e] || e, e;
15208
15223
  }
15209
- var J1 = vn.default = xa, Ja = vn.isHotkey = xa;
15210
- vn.isCodeHotkey = G1;
15211
- vn.isKeyHotkey = Q1;
15224
+ var Jx = vn.default = xa, Ja = vn.isHotkey = xa;
15225
+ vn.isCodeHotkey = Gx;
15226
+ vn.isKeyHotkey = Qx;
15212
15227
  vn.parseHotkey = kf;
15213
15228
  vn.compareHotkey = Af;
15214
15229
  vn.toKeyCode = Ff;
15215
15230
  vn.toKeyName = Ro;
15216
- function X1(e, t) {
15231
+ function Xx(e, t) {
15217
15232
  if (e == null)
15218
15233
  return {};
15219
15234
  var n = {}, r = Object.keys(e), i, a;
@@ -15224,7 +15239,7 @@ function X1(e, t) {
15224
15239
  function br(e, t) {
15225
15240
  if (e == null)
15226
15241
  return {};
15227
- var n = X1(e, t), r, i;
15242
+ var n = Xx(e, t), r, i;
15228
15243
  if (Object.getOwnPropertySymbols) {
15229
15244
  var a = Object.getOwnPropertySymbols(e);
15230
15245
  for (i = 0; i < a.length; i++)
@@ -15240,7 +15255,7 @@ function ni(e) {
15240
15255
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15241
15256
  }, ni(e);
15242
15257
  }
15243
- function ex(e, t) {
15258
+ function e1(e, t) {
15244
15259
  if (ni(e) !== "object" || e === null)
15245
15260
  return e;
15246
15261
  var n = e[Symbol.toPrimitive];
@@ -15252,12 +15267,12 @@ function ex(e, t) {
15252
15267
  }
15253
15268
  return (t === "string" ? String : Number)(e);
15254
15269
  }
15255
- function tx(e) {
15256
- var t = ex(e, "string");
15270
+ function t1(e) {
15271
+ var t = e1(e, "string");
15257
15272
  return ni(t) === "symbol" ? t : String(t);
15258
15273
  }
15259
15274
  function qt(e, t, n) {
15260
- return t = tx(t), t in e ? Object.defineProperty(e, t, {
15275
+ return t = t1(t), t in e ? Object.defineProperty(e, t, {
15261
15276
  value: n,
15262
15277
  enumerable: !0,
15263
15278
  configurable: !0,
@@ -15269,26 +15284,26 @@ var $o = /* @__PURE__ */ Tt(null), Tn = () => {
15269
15284
  if (!e)
15270
15285
  throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
15271
15286
  return e;
15272
- }, Bf = parseInt(re.version.split(".")[0], 10), nx = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Jl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), wt = typeof navigator < "u" && /Android/.test(navigator.userAgent), sr = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Rr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), rx = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), Tf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), ix = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), ax = wt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), sx = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), ox = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), ux = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Li = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", bn = (!ix || !ax) && !rx && // globalThis is undefined in older browsers
15287
+ }, Bf = parseInt(re.version.split(".")[0], 10), n1 = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Jl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), wt = typeof navigator < "u" && /Android/.test(navigator.userAgent), sr = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Rr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), r1 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), Tf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), i1 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), a1 = wt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), s1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), o1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), u1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Li = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", bn = (!i1 || !a1) && !r1 && // globalThis is undefined in older browsers
15273
15288
  typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
15274
- typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), jf = /* @__PURE__ */ new WeakMap(), yr = Symbol("placeholder"), Of = Symbol("mark-placeholder"), lx = globalThis.Text, Uo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, cx = (e) => An(e) && e.nodeType === 8, Lt = (e) => An(e) && e.nodeType === 1, An = (e) => {
15289
+ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), jf = /* @__PURE__ */ new WeakMap(), yr = Symbol("placeholder"), Of = Symbol("mark-placeholder"), l1 = globalThis.Text, Uo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, c1 = (e) => An(e) && e.nodeType === 8, Lt = (e) => An(e) && e.nodeType === 1, An = (e) => {
15275
15290
  var t = Uo(e);
15276
15291
  return !!t && e instanceof t.Node;
15277
15292
  }, Ks = (e) => {
15278
15293
  var t = e && e.anchorNode && Uo(e.anchorNode);
15279
15294
  return !!t && e instanceof t.Selection;
15280
- }, Pf = (e) => An(e) && e.nodeType === 3, dx = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, fx = (e) => {
15295
+ }, Pf = (e) => An(e) && e.nodeType === 3, d1 = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, f1 = (e) => {
15281
15296
  var [t, n] = e;
15282
15297
  if (Lt(t) && t.childNodes.length) {
15283
15298
  var r = n === t.childNodes.length, i = r ? n - 1 : n;
15284
15299
  for ([t, i] = Nf(t, i, r ? "backward" : "forward"), r = i < n; Lt(t) && t.childNodes.length; ) {
15285
15300
  var a = r ? t.childNodes.length - 1 : 0;
15286
- t = hx(t, a, r ? "backward" : "forward");
15301
+ t = h1(t, a, r ? "backward" : "forward");
15287
15302
  }
15288
15303
  n = r && t.textContent != null ? t.textContent.length : 0;
15289
15304
  }
15290
15305
  return [t, n];
15291
- }, mx = (e) => {
15306
+ }, m1 = (e) => {
15292
15307
  for (var t = e && e.parentNode; t; ) {
15293
15308
  if (t.toString() === "[object ShadowRoot]")
15294
15309
  return !0;
@@ -15298,7 +15313,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @_
15298
15313
  }, Nf = (e, t, n) => {
15299
15314
  for (var {
15300
15315
  childNodes: r
15301
- } = e, i = r[t], a = t, s = !1, o = !1; (cx(i) || Lt(i) && i.childNodes.length === 0 || Lt(i) && i.getAttribute("contenteditable") === "false") && !(s && o); ) {
15316
+ } = e, i = r[t], a = t, s = !1, o = !1; (c1(i) || Lt(i) && i.childNodes.length === 0 || Lt(i) && i.getAttribute("contenteditable") === "false") && !(s && o); ) {
15302
15317
  if (a >= r.length) {
15303
15318
  s = !0, a = t - 1, n = "backward";
15304
15319
  continue;
@@ -15310,7 +15325,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @_
15310
15325
  i = r[a], t = a, a += n === "forward" ? 1 : -1;
15311
15326
  }
15312
15327
  return [i, t];
15313
- }, hx = (e, t, n) => {
15328
+ }, h1 = (e, t, n) => {
15314
15329
  var [r] = Nf(e, t, n);
15315
15330
  return r;
15316
15331
  }, Mf = (e) => {
@@ -15325,8 +15340,8 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @_
15325
15340
  `);
15326
15341
  }
15327
15342
  return t;
15328
- }, px = /data-slate-fragment="(.+?)"/m, gx = (e) => {
15329
- var t = e.getData("text/html"), [, n] = t.match(px) || [];
15343
+ }, p1 = /data-slate-fragment="(.+?)"/m, g1 = (e) => {
15344
+ var t = e.getData("text/html"), [, n] = t.match(p1) || [];
15330
15345
  return n;
15331
15346
  }, Wo = (e, t, n) => {
15332
15347
  var {
@@ -15354,10 +15369,10 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Lo = /* @_
15354
15369
  return !0;
15355
15370
  });
15356
15371
  return !a || a === t ? !1 : Wo(e, a, n);
15357
- }, vx = 0;
15358
- class bx {
15372
+ }, v1 = 0;
15373
+ class b1 {
15359
15374
  constructor() {
15360
- qt(this, "id", void 0), this.id = "".concat(vx++);
15375
+ qt(this, "id", void 0), this.id = "".concat(v1++);
15361
15376
  }
15362
15377
  }
15363
15378
  var ne = {
@@ -15418,7 +15433,7 @@ var ne = {
15418
15433
  },
15419
15434
  findKey: (e, t) => {
15420
15435
  var n = oa.get(t);
15421
- return n || (n = new bx(), oa.set(t, n)), n;
15436
+ return n || (n = new b1(), oa.set(t, n)), n;
15422
15437
  },
15423
15438
  findPath: (e, t) => {
15424
15439
  for (var n = [], r = t; ; ) {
@@ -15537,7 +15552,7 @@ var ne = {
15537
15552
  // text element, causing domRange.getBoundingClientRect() calls on a collapsed
15538
15553
  // selection to return incorrect zero values (https://bugs.chromium.org/p/chromium/issues/detail?id=435438)
15539
15554
  // which will cause issues when scrolling to it.
15540
- g instanceof lx ? g : m,
15555
+ g instanceof l1 ? g : m,
15541
15556
  (b = m.textContent) !== null && b !== void 0 && b.startsWith("\uFEFF") ? 1 : 0
15542
15557
  ];
15543
15558
  break;
@@ -15573,7 +15588,7 @@ var ne = {
15573
15588
  var {
15574
15589
  exactMatch: r,
15575
15590
  suppressThrow: i
15576
- } = n, [a, s] = r ? t : fx(t), o = a.parentNode, l = null, u = 0;
15591
+ } = n, [a, s] = r ? t : f1(t), o = a.parentNode, l = null, u = 0;
15577
15592
  if (o) {
15578
15593
  var d, f, h = ne.toDOMNode(e, e), p = o.closest('[data-slate-void="true"]'), v = p && h.contains(p) ? p : null, m = o.closest("[data-slate-leaf]"), b = null;
15579
15594
  if (m) {
@@ -15661,7 +15676,7 @@ var ne = {
15661
15676
  h.startContainer === u ? (o = p.endContainer, l = p.endOffset, d = h.startOffset) : (o = h.startContainer, l = h.endOffset, d = p.startOffset);
15662
15677
  } else
15663
15678
  o = t.anchorNode, l = t.anchorOffset, u = t.focusNode, d = t.focusOffset;
15664
- Tf && mx(o) || sr ? f = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : f = t.isCollapsed;
15679
+ Tf && m1(o) || sr ? f = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : f = t.isCollapsed;
15665
15680
  } else
15666
15681
  o = t.startContainer, l = t.startOffset, u = t.endContainer, d = t.endOffset, f = t.collapsed;
15667
15682
  if (o == null || u == null || l == null || d == null)
@@ -15696,7 +15711,7 @@ var ne = {
15696
15711
  })), C;
15697
15712
  }
15698
15713
  };
15699
- function yx(e, t) {
15714
+ function y1(e, t) {
15700
15715
  var {
15701
15716
  path: n,
15702
15717
  diff: r
@@ -15719,13 +15734,13 @@ function If(e) {
15719
15734
  n[r - 1] = arguments[r];
15720
15735
  return n.reduce((i, a) => i.slice(0, a.start) + a.text + i.slice(a.end), e);
15721
15736
  }
15722
- function xx(e, t) {
15737
+ function x1(e, t) {
15723
15738
  for (var n = Math.min(e.length, t.length), r = 0; r < n; r++)
15724
15739
  if (e.charAt(r) !== t.charAt(r))
15725
15740
  return r;
15726
15741
  return n;
15727
15742
  }
15728
- function wx(e, t, n) {
15743
+ function w1(e, t, n) {
15729
15744
  for (var r = Math.min(e.length, t.length, n), i = 0; i < r; i++)
15730
15745
  if (e.charAt(e.length - i - 1) !== t.charAt(t.length - i - 1))
15731
15746
  return i;
@@ -15736,14 +15751,14 @@ function Rf(e, t) {
15736
15751
  start: n,
15737
15752
  end: r,
15738
15753
  text: i
15739
- } = t, a = e.slice(n, r), s = xx(a, i), o = Math.min(a.length - s, i.length - s), l = wx(a, i, o), u = {
15754
+ } = t, a = e.slice(n, r), s = x1(a, i), o = Math.min(a.length - s, i.length - s), l = w1(a, i, o), u = {
15740
15755
  start: n + s,
15741
15756
  end: r - l,
15742
15757
  text: i.slice(s, i.length - l)
15743
15758
  };
15744
15759
  return u.start === u.end && u.text.length === 0 ? null : u;
15745
15760
  }
15746
- function Dx(e, t, n) {
15761
+ function D1(e, t, n) {
15747
15762
  var r = Math.min(t.start, n.start), i = Math.max(0, Math.min(t.start + t.text.length, n.end) - n.start), a = If(e, t, n), s = Math.max(n.start + n.text.length, t.start + t.text.length + (t.start + t.text.length > n.start ? n.text.length : 0) - i), o = a.slice(r, s), l = Math.max(t.end, n.end - t.text.length + (t.end - t.start));
15748
15763
  return Rf(e, {
15749
15764
  start: r,
@@ -15751,7 +15766,7 @@ function Dx(e, t, n) {
15751
15766
  text: o
15752
15767
  });
15753
15768
  }
15754
- function Cx(e) {
15769
+ function C1(e) {
15755
15770
  var {
15756
15771
  path: t,
15757
15772
  diff: n
@@ -15864,7 +15879,7 @@ function ec(e, t, n) {
15864
15879
  focus: i
15865
15880
  } : null;
15866
15881
  }
15867
- function Ex(e, t) {
15882
+ function E1(e, t) {
15868
15883
  var {
15869
15884
  path: n,
15870
15885
  diff: r,
@@ -15976,9 +15991,9 @@ function Bi(e) {
15976
15991
  }
15977
15992
  return e;
15978
15993
  }
15979
- var _x = 25, kx = 200, Ax = function() {
15980
- }, Fx = (e) => (e == null ? void 0 : e.constructor.name) === "DataTransfer";
15981
- function Bx(e) {
15994
+ var _1 = 25, k1 = 200, A1 = function() {
15995
+ }, F1 = (e) => (e == null ? void 0 : e.constructor.name) === "DataTransfer";
15996
+ function B1(e) {
15982
15997
  var {
15983
15998
  editor: t,
15984
15999
  scheduleOnDOMSelectionChange: n,
@@ -16012,17 +16027,17 @@ function Bx(e) {
16012
16027
  var F = t.selection && x.rangeRef(t, t.selection, {
16013
16028
  affinity: "forward"
16014
16029
  });
16015
- ln.set(t, t.marks), Ax("flush", xn.get(t), kt.get(t));
16030
+ ln.set(t, t.marks), A1("flush", xn.get(t), kt.get(t));
16016
16031
  for (var k = A(), T; T = (N = kt.get(t)) === null || N === void 0 ? void 0 : N[0]; ) {
16017
16032
  var N, W, U = Ht.get(t);
16018
16033
  U !== void 0 && (Ht.delete(t), t.marks = U), U && u === !1 && (u = null);
16019
- var ie = Cx(T);
16034
+ var ie = C1(T);
16020
16035
  (!t.selection || !Y.equals(t.selection, ie)) && te.select(t, ie), T.diff.text ? x.insertText(t, T.diff.text) : x.deleteFragment(t), kt.set(t, (W = kt.get(t)) === null || W === void 0 ? void 0 : W.filter((G) => {
16021
16036
  var {
16022
16037
  id: Z
16023
16038
  } = G;
16024
16039
  return Z !== T.id;
16025
- })), yx(t, T) || (k = !1, xn.delete(t), ln.delete(t), i = "action", wn.delete(t), n.cancel(), r.cancel(), F == null || F.unref());
16040
+ })), y1(t, T) || (k = !1, xn.delete(t), ln.delete(t), i = "action", wn.delete(t), n.cancel(), r.cancel(), F == null || F.unref());
16026
16041
  }
16027
16042
  var ee = F == null ? void 0 : F.unref();
16028
16043
  if (ee && !wn.get(t) && (!t.selection || !Y.equals(ee, t.selection)) && te.select(t, ee), w()) {
@@ -16035,7 +16050,7 @@ function Bx(e) {
16035
16050
  }, p = (F) => {
16036
16051
  a && clearTimeout(a), a = setTimeout(() => {
16037
16052
  Nn.set(t, !1), h();
16038
- }, _x);
16053
+ }, _1);
16039
16054
  }, v = (F) => {
16040
16055
  Nn.set(t, !0), a && (clearTimeout(a), a = null);
16041
16056
  }, m = function() {
@@ -16060,7 +16075,7 @@ function Bx(e) {
16060
16075
  }), m();
16061
16076
  return;
16062
16077
  }
16063
- var ee = Dx(W.text, N[U].diff, k);
16078
+ var ee = D1(W.text, N[U].diff, k);
16064
16079
  if (!ee) {
16065
16080
  N.splice(U, 1), m();
16066
16081
  return;
@@ -16231,7 +16246,7 @@ function Bx(e) {
16231
16246
  case "insertFromYank":
16232
16247
  case "insertReplacementText":
16233
16248
  case "insertText": {
16234
- if (Fx(W))
16249
+ if (F1(W))
16235
16250
  return g(() => ne.insertData(t, W), {
16236
16251
  at: N
16237
16252
  });
@@ -16281,7 +16296,7 @@ function Bx(e) {
16281
16296
  } = t;
16282
16297
  if (F) {
16283
16298
  var T = !k || !I.equals(k.anchor.path, F.anchor.path), N = !k || !I.equals(k.anchor.path.slice(0, -1), F.anchor.path.slice(0, -1));
16284
- (T && u || N) && (u = !1), (T || A()) && (s = setTimeout(h, kx));
16299
+ (T && u || N) && (u = !1), (T || A()) && (s = setTimeout(h, k1));
16285
16300
  }
16286
16301
  }, R = () => {
16287
16302
  (w() || !A()) && h();
@@ -16311,14 +16326,14 @@ function Bx(e) {
16311
16326
  handleInput: R
16312
16327
  };
16313
16328
  }
16314
- function Tx() {
16329
+ function T1() {
16315
16330
  var e = je(!1);
16316
16331
  return fe(() => (e.current = !0, () => {
16317
16332
  e.current = !1;
16318
16333
  }), []), e.current;
16319
16334
  }
16320
16335
  var ii = Li ? zm : fe;
16321
- function Sx(e, t, n) {
16336
+ function S1(e, t, n) {
16322
16337
  var [r] = ce(() => new MutationObserver(t));
16323
16338
  ii(() => {
16324
16339
  r.takeRecords();
@@ -16328,7 +16343,7 @@ function Sx(e, t, n) {
16328
16343
  return r.observe(e.current, n), () => r.disconnect();
16329
16344
  }, [r, e, n]);
16330
16345
  }
16331
- var jx = ["node"];
16346
+ var j1 = ["node"];
16332
16347
  function nc(e, t) {
16333
16348
  var n = Object.keys(e);
16334
16349
  if (Object.getOwnPropertySymbols) {
@@ -16339,7 +16354,7 @@ function nc(e, t) {
16339
16354
  }
16340
16355
  return n;
16341
16356
  }
16342
- function Ox(e) {
16357
+ function O1(e) {
16343
16358
  for (var t = 1; t < arguments.length; t++) {
16344
16359
  var n = arguments[t] != null ? arguments[t] : {};
16345
16360
  t % 2 ? nc(Object(n), !0).forEach(function(r) {
@@ -16350,24 +16365,24 @@ function Ox(e) {
16350
16365
  }
16351
16366
  return e;
16352
16367
  }
16353
- var Px = {
16368
+ var P1 = {
16354
16369
  subtree: !0,
16355
16370
  childList: !0,
16356
16371
  characterData: !0
16357
- }, Nx = wt ? (e) => {
16372
+ }, N1 = wt ? (e) => {
16358
16373
  var {
16359
16374
  node: t
16360
- } = e, n = br(e, jx);
16375
+ } = e, n = br(e, j1);
16361
16376
  if (!wt)
16362
16377
  return null;
16363
- var r = Tn(), i = Tx(), [a] = ce(() => Bx(Ox({
16378
+ var r = Tn(), i = T1(), [a] = ce(() => B1(O1({
16364
16379
  editor: r
16365
16380
  }, n)));
16366
- return Sx(t, a.handleDomMutations, Px), qo.set(r, a.scheduleFlush), i && a.flush(), a;
16367
- } : () => null, Mx = ["anchor", "focus"], Ix = ["anchor", "focus"], Rx = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => t.hasOwnProperty(n) && e[n] === t[n]), $f = (e, t) => {
16368
- var n = br(e, Mx), r = br(t, Ix);
16369
- return e[yr] === t[yr] && Rx(n, r);
16370
- }, $x = (e, t) => {
16381
+ return S1(t, a.handleDomMutations, P1), qo.set(r, a.scheduleFlush), i && a.flush(), a;
16382
+ } : () => null, M1 = ["anchor", "focus"], I1 = ["anchor", "focus"], R1 = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => t.hasOwnProperty(n) && e[n] === t[n]), $f = (e, t) => {
16383
+ var n = br(e, M1), r = br(t, I1);
16384
+ return e[yr] === t[yr] && R1(n, r);
16385
+ }, $1 = (e, t) => {
16371
16386
  if (e.length !== t.length)
16372
16387
  return !1;
16373
16388
  for (var n = 0; n < e.length; n++) {
@@ -16376,7 +16391,7 @@ var Px = {
16376
16391
  return !1;
16377
16392
  }
16378
16393
  return !0;
16379
- }, Lx = (e, t) => {
16394
+ }, L1 = (e, t) => {
16380
16395
  if (e.length !== t.length)
16381
16396
  return !1;
16382
16397
  for (var n = 0; n < e.length; n++) {
@@ -16396,7 +16411,7 @@ function rc(e, t) {
16396
16411
  }
16397
16412
  return n;
16398
16413
  }
16399
- function zx(e) {
16414
+ function z1(e) {
16400
16415
  for (var t = 1; t < arguments.length; t++) {
16401
16416
  var n = arguments[t] != null ? arguments[t] : {};
16402
16417
  t % 2 ? rc(Object(n), !0).forEach(function(r) {
@@ -16407,7 +16422,7 @@ function zx(e) {
16407
16422
  }
16408
16423
  return e;
16409
16424
  }
16410
- var qx = (e) => {
16425
+ var q1 = (e) => {
16411
16426
  var {
16412
16427
  isLast: t,
16413
16428
  leaf: n,
@@ -16437,10 +16452,10 @@ var qx = (e) => {
16437
16452
  return ii(() => {
16438
16453
  var s = i();
16439
16454
  r.current && r.current.textContent !== s && (r.current.textContent = s);
16440
- }), /* @__PURE__ */ re.createElement(Ux, {
16455
+ }), /* @__PURE__ */ re.createElement(U1, {
16441
16456
  ref: r
16442
16457
  }, a);
16443
- }, Ux = /* @__PURE__ */ rn(/* @__PURE__ */ uo((e, t) => /* @__PURE__ */ re.createElement("span", {
16458
+ }, U1 = /* @__PURE__ */ rn(/* @__PURE__ */ uo((e, t) => /* @__PURE__ */ re.createElement("span", {
16444
16459
  "data-slate-string": !0,
16445
16460
  ref: t
16446
16461
  }, e.children))), Xa = (e) => {
@@ -16452,7 +16467,7 @@ var qx = (e) => {
16452
16467
  "data-slate-zero-width": n ? "n" : "z",
16453
16468
  "data-slate-length": t
16454
16469
  };
16455
- return r && (i["data-slate-mark-placeholder"] = !0), /* @__PURE__ */ re.createElement("span", zx({}, i), !wt || !n ? "\uFEFF" : null, n ? /* @__PURE__ */ re.createElement("br", null) : null);
16470
+ return r && (i["data-slate-mark-placeholder"] = !0), /* @__PURE__ */ re.createElement("span", z1({}, i), !wt || !n ? "\uFEFF" : null, n ? /* @__PURE__ */ re.createElement("br", null) : null);
16456
16471
  };
16457
16472
  function ac(e, t) {
16458
16473
  var n = Object.keys(e);
@@ -16475,28 +16490,28 @@ function Lf(e) {
16475
16490
  }
16476
16491
  return e;
16477
16492
  }
16478
- var Wx = wt ? 300 : 0;
16479
- function Vx(e, t) {
16493
+ var W1 = wt ? 300 : 0;
16494
+ function V1(e, t) {
16480
16495
  e.current && (e.current.disconnect(), t && (e.current = null));
16481
16496
  }
16482
16497
  function sc(e) {
16483
16498
  e.current && (clearTimeout(e.current), e.current = null);
16484
16499
  }
16485
- var Hx = (e) => {
16500
+ var H1 = (e) => {
16486
16501
  var {
16487
16502
  leaf: t,
16488
16503
  isLast: n,
16489
16504
  text: r,
16490
16505
  parent: i,
16491
16506
  renderPlaceholder: a,
16492
- renderLeaf: s = (y) => /* @__PURE__ */ re.createElement(Zx, Lf({}, y))
16507
+ renderLeaf: s = (y) => /* @__PURE__ */ re.createElement(Z1, Lf({}, y))
16493
16508
  } = e, o = Tn(), l = je(null), u = je(null), [d, f] = ce(!1), h = je(null), p = Re((y) => {
16494
- if (Vx(l, y == null), y == null) {
16509
+ if (V1(l, y == null), y == null) {
16495
16510
  var w;
16496
16511
  Ws.delete(o), (w = t.onPlaceholderResize) === null || w === void 0 || w.call(t, null);
16497
16512
  } else {
16498
16513
  if (Ws.set(o, y), !l.current) {
16499
- var A = window.ResizeObserver || Z1;
16514
+ var A = window.ResizeObserver || Zx;
16500
16515
  l.current = new A(() => {
16501
16516
  var C;
16502
16517
  (C = t.onPlaceholderResize) === null || C === void 0 || C.call(t, y);
@@ -16504,7 +16519,7 @@ var Hx = (e) => {
16504
16519
  }
16505
16520
  l.current.observe(y), u.current = y;
16506
16521
  }
16507
- }, [u, t, o]), v = /* @__PURE__ */ re.createElement(qx, {
16522
+ }, [u, t, o]), v = /* @__PURE__ */ re.createElement(q1, {
16508
16523
  isLast: n,
16509
16524
  leaf: t,
16510
16525
  parent: i,
@@ -16512,7 +16527,7 @@ var Hx = (e) => {
16512
16527
  }), m = !!t[yr];
16513
16528
  if (fe(() => (m ? h.current || (h.current = setTimeout(() => {
16514
16529
  f(!0), h.current = null;
16515
- }, Wx)) : (sc(h), f(!1)), () => sc(h)), [m, f]), m && d) {
16530
+ }, W1)) : (sc(h), f(!1)), () => sc(h)), [m, f]), m && d) {
16516
16531
  var b = {
16517
16532
  children: t.placeholder,
16518
16533
  attributes: {
@@ -16545,13 +16560,13 @@ var Hx = (e) => {
16545
16560
  leaf: t,
16546
16561
  text: r
16547
16562
  });
16548
- }, Kx = /* @__PURE__ */ re.memo(Hx, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && be.equals(t.leaf, e.leaf) && t.leaf[yr] === e.leaf[yr]), Zx = (e) => {
16563
+ }, K1 = /* @__PURE__ */ re.memo(H1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && be.equals(t.leaf, e.leaf) && t.leaf[yr] === e.leaf[yr]), Z1 = (e) => {
16549
16564
  var {
16550
16565
  attributes: t,
16551
16566
  children: n
16552
16567
  } = e;
16553
16568
  return /* @__PURE__ */ re.createElement("span", Lf({}, t), n);
16554
- }, Yx = (e) => {
16569
+ }, Y1 = (e) => {
16555
16570
  for (var {
16556
16571
  decorations: t,
16557
16572
  isLast: n,
@@ -16561,7 +16576,7 @@ var Hx = (e) => {
16561
16576
  text: s
16562
16577
  } = e, o = Tn(), l = je(null), u = be.decorations(s, t), d = ne.findKey(o, s), f = [], h = 0; h < u.length; h++) {
16563
16578
  var p = u[h];
16564
- f.push(/* @__PURE__ */ re.createElement(Kx, {
16579
+ f.push(/* @__PURE__ */ re.createElement(K1, {
16565
16580
  isLast: n && h === u.length - 1,
16566
16581
  key: "".concat(d.id, "-").concat(h),
16567
16582
  renderPlaceholder: i,
@@ -16579,7 +16594,7 @@ var Hx = (e) => {
16579
16594
  "data-slate-node": "text",
16580
16595
  ref: v
16581
16596
  }, f);
16582
- }, zf = /* @__PURE__ */ re.memo(Yx, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && Lx(t.decorations, e.decorations));
16597
+ }, zf = /* @__PURE__ */ re.memo(Y1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && L1(t.decorations, e.decorations));
16583
16598
  function oc(e, t) {
16584
16599
  var n = Object.keys(e);
16585
16600
  if (Object.getOwnPropertySymbols) {
@@ -16601,11 +16616,11 @@ function Gs(e) {
16601
16616
  }
16602
16617
  return e;
16603
16618
  }
16604
- var Gx = (e) => {
16619
+ var G1 = (e) => {
16605
16620
  var {
16606
16621
  decorations: t,
16607
16622
  element: n,
16608
- renderElement: r = (y) => /* @__PURE__ */ re.createElement(Jx, Gs({}, y)),
16623
+ renderElement: r = (y) => /* @__PURE__ */ re.createElement(J1, Gs({}, y)),
16609
16624
  renderPlaceholder: i,
16610
16625
  renderLeaf: a,
16611
16626
  selection: s
@@ -16651,7 +16666,7 @@ var Gx = (e) => {
16651
16666
  children: h,
16652
16667
  element: n
16653
16668
  });
16654
- }, Qx = /* @__PURE__ */ re.memo(Gx, (e, t) => e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && $x(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection && Y.equals(e.selection, t.selection))), Jx = (e) => {
16669
+ }, Q1 = /* @__PURE__ */ re.memo(G1, (e, t) => e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && $1(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection && Y.equals(e.selection, t.selection))), J1 = (e) => {
16655
16670
  var {
16656
16671
  attributes: t,
16657
16672
  children: n,
@@ -16662,7 +16677,7 @@ var Gx = (e) => {
16662
16677
  position: "relative"
16663
16678
  }
16664
16679
  }), n);
16665
- }, qf = /* @__PURE__ */ Tt(() => []), Xx = () => $e(qf), ew = /* @__PURE__ */ Tt(!1), Uf = (e) => {
16680
+ }, qf = /* @__PURE__ */ Tt(() => []), X1 = () => $e(qf), ew = /* @__PURE__ */ Tt(!1), Uf = (e) => {
16666
16681
  for (var {
16667
16682
  decorations: t,
16668
16683
  node: n,
@@ -16670,7 +16685,7 @@ var Gx = (e) => {
16670
16685
  renderPlaceholder: i,
16671
16686
  renderLeaf: a,
16672
16687
  selection: s
16673
- } = e, o = Xx(), l = Tn(), u = ne.findPath(l, n), d = [], f = pe.isElement(n) && !l.isInline(n) && x.hasInlines(l, n), h = 0; h < n.children.length; h++) {
16688
+ } = e, o = X1(), l = Tn(), u = ne.findPath(l, n), d = [], f = pe.isElement(n) && !l.isInline(n) && x.hasInlines(l, n), h = 0; h < n.children.length; h++) {
16674
16689
  var p = u.concat(h), v = n.children[h], m = ne.findKey(l, v), b = x.range(l, p), g = s && Y.intersection(b, s), y = o([v, p]);
16675
16690
  for (var w of t) {
16676
16691
  var A = Y.intersection(w, b);
@@ -16679,7 +16694,7 @@ var Gx = (e) => {
16679
16694
  pe.isElement(v) ? d.push(/* @__PURE__ */ re.createElement(ew.Provider, {
16680
16695
  key: "provider-".concat(m.id),
16681
16696
  value: !!g
16682
- }, /* @__PURE__ */ re.createElement(Qx, {
16697
+ }, /* @__PURE__ */ re.createElement(Q1, {
16683
16698
  decorations: y,
16684
16699
  element: v,
16685
16700
  key: m.id,
@@ -16929,7 +16944,7 @@ var fw = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Uf(e)), mw =
16929
16944
  s && (!se || !Q) && te.deselect(m);
16930
16945
  }
16931
16946
  }, 100), [m, s, O]), F = Xt(() => zb(P, 0), [P]);
16932
- $.current = Nx({
16947
+ $.current = N1({
16933
16948
  node: y,
16934
16949
  onDOMSelectionChange: P,
16935
16950
  scheduleOnDOMSelectionChange: F
@@ -17323,7 +17338,7 @@ var fw = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Uf(e)), mw =
17323
17338
  g(!1), Nn.set(m, !1);
17324
17339
  }), (z = $.current) === null || z === void 0 || z.handleCompositionEnd(S), yt(S, v.onCompositionEnd) || wt)
17325
17340
  return;
17326
- if (!Rr && !sx && !nx && !ux && !ox && S.data) {
17341
+ if (!Rr && !s1 && !n1 && !u1 && !o1 && S.data) {
17327
17342
  var j = Ht.get(m);
17328
17343
  Ht.delete(m), j !== void 0 && (ln.set(m, m.marks), m.marks = j), x.insertText(m, S.data);
17329
17344
  var L = ln.get(m);
@@ -17569,7 +17584,7 @@ var fw = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Uf(e)), mw =
17569
17584
  }
17570
17585
  }, [s, m, v.onKeyDown]),
17571
17586
  onPaste: Re((S) => {
17572
- !s && ne.hasEditableTarget(m, S.target) && !yt(S, v.onPaste) && (!bn || dx(S.nativeEvent) || Rr) && (S.preventDefault(), ne.insertData(m, S.clipboardData));
17587
+ !s && ne.hasEditableTarget(m, S.target) && !yt(S, v.onPaste) && (!bn || d1(S.nativeEvent) || Rr) && (S.preventDefault(), ne.insertData(m, S.clipboardData));
17573
17588
  }, [s, m, v.onPaste])
17574
17589
  }), /* @__PURE__ */ re.createElement(fw, {
17575
17590
  decorations: N,
@@ -17751,7 +17766,7 @@ var Ew = function(t) {
17751
17766
  }, r.apply = (u) => {
17752
17767
  var d = [], f = [], h = kt.get(r);
17753
17768
  if (h != null && h.length) {
17754
- var p = h.map((T) => Ex(T, u)).filter(Boolean);
17769
+ var p = h.map((T) => E1(T, u)).filter(Boolean);
17755
17770
  kt.set(r, p);
17756
17771
  }
17757
17772
  var v = wn.get(r);
@@ -17841,7 +17856,7 @@ var Ew = function(t) {
17841
17856
  }, r.insertData = (u) => {
17842
17857
  r.insertFragmentData(u) || r.insertTextData(u);
17843
17858
  }, r.insertFragmentData = (u) => {
17844
- var d = u.getData("application/".concat(n)) || gx(u);
17859
+ var d = u.getData("application/".concat(n)) || g1(u);
17845
17860
  if (d) {
17846
17861
  var f = decodeURIComponent(window.atob(d)), h = JSON.parse(f);
17847
17862
  return r.insertFragment(h), !0;
@@ -22314,7 +22329,7 @@ const XC = function(t) {
22314
22329
  "mod+shift+9": H.blockquote
22315
22330
  }, iE = (e, t, n, r) => {
22316
22331
  for (const i in Lc)
22317
- if (J1(i, e)) {
22332
+ if (Jx(i, e)) {
22318
22333
  e.stopPropagation(), e.preventDefault();
22319
22334
  const a = Lc[i];
22320
22335
  if (a === H.link) {
@@ -23965,7 +23980,7 @@ const _m = ({
23965
23980
  () => KE(
23966
23981
  e_(
23967
23982
  t_(
23968
- n_(WE(Ew(A1())), w),
23983
+ n_(WE(Ew(Ax())), w),
23969
23984
  w
23970
23985
  ),
23971
23986
  D,