@factorialco/f0-react 1.256.0 → 1.257.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.
Files changed (2) hide show
  1. package/dist/experimental.js +226 -223
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { bD as xp, bE as Qc, bF as H_, bG as V_, bH as Cp, ad as l8, bI as Bo, aq as Of, bJ as Vi, bK as If, bL as pr, bM as bl, av as Mn, bN as vs, bO as _p, bP as j_, bQ as Hs, bR as Ha, bS as Sp, bT as W_, bU as q_, bV as Lp, bW as wl, bX as Ep, bY as Mp, bZ as U_, b_ as Df, aE as c8, b$ as Np, c0 as G_, c1 as d8, c2 as f8, c3 as B3, c4 as xl, c5 as K_, c6 as Z_, c7 as J_, c8 as Z1, c9 as Y_, ca as X_, cb as Q_, cc as ne, cd as u8, ce as eS, f as as, cf as Va, j as ed, cg as h8, h as Kl, ch as tS, L as J1, ci as nS, A as iS, i as Zl, c as rS, l as oS, G as sS, g as $3, cj as aS, k as z3, o as lS, ck as p8, cl as m8, cm as cS, cn as Vs, ai as dS, aw as me, ap as _e, co as Cl, O as Ap, cp as Tp, P as on, cq as _l, cr as js, cs as td, ct as Qt, bz as Ws, cu as xh, ab as We, cv as $o, cw as Ye, cx as fS, Q as T, b3 as ir, au as ct, ac as g8, cy as Op, cz as uS, cA as hS, cB as pS, ar as y8, as as v8, cC as k8, cD as b8, cE as io, cF as mS, cG as H3, cH as gS, cI as yS, cJ as vS, cK as wt, al as gn, cL as Q, cM as Rf, cN as On, a7 as ai, a8 as kS, cO as w8, cP as Ip, cQ as ks, cR as Ch, cS as x8, cT as C8, cU as _8, cV as S8, cW as L8, a5 as bt, cX as E8, cY as bS, cZ as wS, c_ as xS, c$ as CS, d0 as _S, d1 as SS, d2 as LS, d3 as ES, ak as MS, be as NS, d4 as jn, ao as _o, d5 as Nn, am as Dp, at as _h, d6 as V3, d7 as nd, d8 as AS, a9 as qs, d9 as So, da as M8, db as dr, s as TS, w as OS, x as IS, z as DS, J as j3, K as W3, M as RS, N as FS, dc as PS, dd as BS, de as Us, df as Rp, aY as Bi, a_ as Lo, dg as $S, dh as N8, di as A8, dj as zS, dk as HS, a3 as Fp, a4 as Pp, a6 as Bp, R as qn, dl as T8, dm as VS, dn as jS, dp as WS, dq as O8, aA as qS, dr as Sh, ds as I8, aV as id, dt as US, du as GS, dv as KS, dw as ZS, dx as JS, bA as Ff, aS as Lh, bC as YS, bB as XS, dy as D8, an as zr, dz as QS, dA as eL, b8 as Pf, aW as $p, aP as Bf, dB as zp, dC as R8, aZ as tL, aR as F8, aN as P8, dD as nL, dE as B8, dF as iL, aQ as Gs, aT as $8, aC as rL, dG as oL, bg as sL, bh as aL, bo as $f, bm as Hp, ay as zf, dH as Hf, dI as Vf, az as jf, dJ as Vp, bn as z8, b0 as jp, dK as lL, bt as cL, dL as Eh, dM as dL, dN as rd, dO as fL, bi as od, bu as uL, dP as hL, bs as H8, dQ as pL, br as mL, bq as gL, dR as yL, b1 as Mh, dS as V8, dT as vL, af as Wp, dU as kL, dV as bL, ag as wL, ah as xL, dW as CL, dX as _L, dY as SL, dZ as LL, d_ as j8, b4 as EL, bl as ML, d$ as NL, e0 as AL, e1 as TL, aU as OL, e2 as Sl, e3 as qp, a$ as Up, e4 as Gp, e5 as Ll, e6 as IL, e7 as W8, e8 as DL, bv as q8, e9 as U8, b5 as G8, ea as RL, eb as FL, ec as PL, aB as BL, _ as $L, T as zL, V as HL, W as VL, Z as jL, U as WL, ed as q3, ee as qL, ef as UL, m as GL, eg as K8, eh as KL } from "./hooks-Bj3h_byv.js";
1
+ import { bD as xp, bE as Qc, bF as H_, bG as V_, bH as Cp, ad as l8, bI as Bo, aq as Of, bJ as ji, bK as If, bL as pr, bM as bl, av as Mn, bN as vs, bO as _p, bP as j_, bQ as Hs, bR as Ha, bS as Sp, bT as W_, bU as q_, bV as Lp, bW as wl, bX as Ep, bY as Mp, bZ as U_, b_ as Df, aE as c8, b$ as Np, c0 as G_, c1 as d8, c2 as f8, c3 as B3, c4 as xl, c5 as K_, c6 as Z_, c7 as J_, c8 as Z1, c9 as Y_, ca as X_, cb as Q_, cc as ne, cd as u8, ce as eS, f as as, cf as Va, j as ed, cg as h8, h as Kl, ch as tS, L as J1, ci as nS, A as iS, i as Zl, c as rS, l as oS, G as sS, g as $3, cj as aS, k as z3, o as lS, ck as p8, cl as m8, cm as cS, cn as Vs, ai as dS, aw as me, ap as _e, co as Cl, O as Ap, cp as Tp, P as on, cq as _l, cr as js, cs as td, ct as Qt, bz as Ws, cu as xh, ab as We, cv as $o, cw as Ye, cx as fS, Q as T, b3 as rr, au as ct, ac as g8, cy as Op, cz as uS, cA as hS, cB as pS, ar as y8, as as v8, cC as k8, cD as b8, cE as io, cF as mS, cG as H3, cH as gS, cI as yS, cJ as vS, cK as wt, al as gn, cL as Q, cM as Rf, cN as On, a7 as ai, a8 as kS, cO as w8, cP as Ip, cQ as ks, cR as Ch, cS as x8, cT as C8, cU as _8, cV as S8, cW as L8, a5 as bt, cX as E8, cY as bS, cZ as wS, c_ as xS, c$ as CS, d0 as _S, d1 as SS, d2 as LS, d3 as ES, ak as MS, be as NS, d4 as jn, ao as _o, d5 as Nn, am as Dp, at as _h, d6 as V3, d7 as nd, d8 as AS, a9 as qs, d9 as So, da as M8, db as Bi, s as TS, w as OS, x as IS, z as DS, J as j3, K as W3, M as RS, N as FS, dc as PS, dd as BS, de as Us, df as Rp, aY as $i, a_ as Lo, dg as $S, dh as N8, di as A8, dj as zS, dk as HS, a3 as Fp, a4 as Pp, a6 as Bp, R as qn, dl as T8, dm as VS, dn as jS, dp as WS, dq as O8, aA as qS, dr as Sh, ds as I8, aV as id, dt as US, du as GS, dv as KS, dw as ZS, dx as JS, bA as Ff, aS as Lh, bC as YS, bB as XS, dy as D8, an as zr, dz as QS, dA as eL, b8 as Pf, aW as $p, aP as Bf, dB as zp, dC as R8, aZ as tL, aR as F8, aN as P8, dD as nL, dE as B8, dF as iL, aQ as Gs, aT as $8, aC as rL, dG as oL, bg as sL, bh as aL, bo as $f, bm as Hp, ay as zf, dH as Hf, dI as Vf, az as jf, dJ as Vp, bn as z8, b0 as jp, dK as lL, bt as cL, dL as Eh, dM as dL, dN as rd, dO as fL, bi as od, bu as uL, dP as hL, bs as H8, dQ as pL, br as mL, bq as gL, dR as yL, b1 as Mh, dS as V8, dT as vL, af as Wp, dU as kL, dV as bL, ag as wL, ah as xL, dW as CL, dX as _L, dY as SL, dZ as LL, d_ as j8, b4 as EL, bl as ML, d$ as NL, e0 as AL, e1 as TL, aU as OL, e2 as Sl, e3 as qp, a$ as Up, e4 as Gp, e5 as Ll, e6 as IL, e7 as W8, e8 as DL, bv as q8, e9 as U8, b5 as G8, ea as RL, eb as FL, ec as PL, aB as BL, _ as $L, T as zL, V as HL, W as VL, Z as jL, U as WL, ed as q3, ee as qL, ef as UL, m as GL, eg as K8, eh as KL } from "./hooks-Bj3h_byv.js";
2
2
  import { aD as Mfe, ei as Nfe, el as Afe, em as Tfe, ek as Ofe, aX as Ife, b2 as Dfe, ej as Rfe } from "./hooks-Bj3h_byv.js";
3
3
  import { jsxs as k, jsx as d, Fragment as Te } from "react/jsx-runtime";
4
4
  import { useCopilotChatInternal as Wf, useCopilotContext as ZL, useCopilotAction as U3, CopilotKit as JL } from "@copilotkit/react-core";
@@ -4244,7 +4244,7 @@ import './experimental.css';const oE = (t, e) => k("svg", {
4244
4244
  CheckCircle: Of,
4245
4245
  CheckCircleLine: aM,
4246
4246
  CheckDouble: em,
4247
- ChevronDown: Vi,
4247
+ ChevronDown: ji,
4248
4248
  ChevronLeft: If,
4249
4249
  ChevronRight: pr,
4250
4250
  ChevronUp: bl,
@@ -4832,7 +4832,7 @@ function cn(t) {
4832
4832
  for (var e = 1; e < arguments.length; e++) {
4833
4833
  var n = arguments[e] != null ? arguments[e] : {};
4834
4834
  e % 2 ? e4(Object(n), !0).forEach(function(i) {
4835
- tr(t, i, n[i]);
4835
+ nr(t, i, n[i]);
4836
4836
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : e4(Object(n)).forEach(function(i) {
4837
4837
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
4838
4838
  });
@@ -4892,7 +4892,7 @@ function Dh(t, e) {
4892
4892
  return i.__proto__ = r, i;
4893
4893
  }, Dh(t, e);
4894
4894
  }
4895
- function tr(t, e, n) {
4895
+ function nr(t, e, n) {
4896
4896
  return e = Hy(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
4897
4897
  }
4898
4898
  function Hy(t) {
@@ -4915,22 +4915,22 @@ var Nl = /* @__PURE__ */ function(t) {
4915
4915
  BI(this, e);
4916
4916
  for (var i = arguments.length, r = new Array(i), o = 0; o < i; o++)
4917
4917
  r[o] = arguments[o];
4918
- return n = zI(this, e, [].concat(r)), tr(n, "state", {
4918
+ return n = zI(this, e, [].concat(r)), nr(n, "state", {
4919
4919
  isAnimationFinished: !1
4920
- }), tr(n, "handleAnimationEnd", function() {
4920
+ }), nr(n, "handleAnimationEnd", function() {
4921
4921
  var s = n.props.onAnimationEnd;
4922
4922
  n.setState({
4923
4923
  isAnimationFinished: !0
4924
4924
  }), Kl(s) && s();
4925
- }), tr(n, "handleAnimationStart", function() {
4925
+ }), nr(n, "handleAnimationStart", function() {
4926
4926
  var s = n.props.onAnimationStart;
4927
4927
  n.setState({
4928
4928
  isAnimationFinished: !1
4929
4929
  }), Kl(s) && s();
4930
- }), tr(n, "handleMouseEnter", function(s) {
4930
+ }), nr(n, "handleMouseEnter", function(s) {
4931
4931
  var a = n.props.onMouseEnter;
4932
4932
  a && a(n.props, s);
4933
- }), tr(n, "handleMouseLeave", function(s) {
4933
+ }), nr(n, "handleMouseLeave", function(s) {
4934
4934
  var a = n.props.onMouseLeave;
4935
4935
  a && a(n.props, s);
4936
4936
  }), n;
@@ -5057,8 +5057,8 @@ var Nl = /* @__PURE__ */ function(t) {
5057
5057
  }
5058
5058
  }]);
5059
5059
  }(eE);
5060
- tr(Nl, "displayName", "Radar");
5061
- tr(Nl, "defaultProps", {
5060
+ nr(Nl, "displayName", "Radar");
5061
+ nr(Nl, "defaultProps", {
5062
5062
  angleAxisId: 0,
5063
5063
  radiusAxisId: 0,
5064
5064
  hide: !1,
@@ -5070,7 +5070,7 @@ tr(Nl, "defaultProps", {
5070
5070
  animationDuration: 1500,
5071
5071
  animationEasing: "ease"
5072
5072
  });
5073
- tr(Nl, "getComposedData", function(t) {
5073
+ nr(Nl, "getComposedData", function(t) {
5074
5074
  var e = t.radiusAxis, n = t.angleAxis, i = t.displayedData, r = t.dataKey, o = t.bandSize, s = n.cx, a = n.cy, l = !1, c = [], f = n.type !== "number" ? o ?? 0 : 0;
5075
5075
  i.forEach(function(h, p) {
5076
5076
  var m = $3(h, n.dataKey, p), g = $3(h, r), y = n.scale(m) + f, v = Array.isArray(g) ? aS(g) : g, w = z3(v) ? void 0 : e.scale(v);
@@ -5654,7 +5654,7 @@ const fD = {
5654
5654
  className: T("mb-2 mt-3.5 text-base font-semibold first:mt-0 last:mb-0", e.className),
5655
5655
  children: t
5656
5656
  }),
5657
- a: ({ children: t, ...e }) => d(ir, {
5657
+ a: ({ children: t, ...e }) => d(rr, {
5658
5658
  ...e,
5659
5659
  variant: "link",
5660
5660
  href: e.href,
@@ -7127,7 +7127,7 @@ function cR({ ...t }) {
7127
7127
  },
7128
7128
  className: "h-[16px] w-[16px]",
7129
7129
  children: d(_e, {
7130
- icon: Vi,
7130
+ icon: ji,
7131
7131
  size: "sm",
7132
7132
  className: "rounded-2xs bg-f1-background-secondary p-0.5"
7133
7133
  })
@@ -8108,7 +8108,7 @@ function mde({ module: t, statusTag: e = void 0, breadcrumbs: n = [], actions: i
8108
8108
  href: ((x = o.previous) == null ? void 0 : x.url) || "",
8109
8109
  disabled: !o.previous
8110
8110
  }), d(u4, {
8111
- icon: Vi,
8111
+ icon: ji,
8112
8112
  label: ((b = o.next) == null ? void 0 : b.title) || "Next",
8113
8113
  href: ((S = o.next) == null ? void 0 : S.url) || "",
8114
8114
  disabled: !o.next
@@ -12573,23 +12573,23 @@ const p$ = {
12573
12573
  name: "emailAutolink",
12574
12574
  tokenize: y$,
12575
12575
  previous: pv
12576
- }, ji = {};
12576
+ }, Wi = {};
12577
12577
  function g$() {
12578
12578
  return {
12579
- text: ji
12579
+ text: Wi
12580
12580
  };
12581
12581
  }
12582
12582
  let to = 48;
12583
12583
  for (; to < 123; )
12584
- ji[to] = mr, to++, to === 58 ? to = 65 : to === 91 && (to = 97);
12585
- ji[43] = mr;
12586
- ji[45] = mr;
12587
- ji[46] = mr;
12588
- ji[95] = mr;
12589
- ji[72] = [mr, fv];
12590
- ji[104] = [mr, fv];
12591
- ji[87] = [mr, dv];
12592
- ji[119] = [mr, dv];
12584
+ Wi[to] = mr, to++, to === 58 ? to = 65 : to === 91 && (to = 97);
12585
+ Wi[43] = mr;
12586
+ Wi[45] = mr;
12587
+ Wi[46] = mr;
12588
+ Wi[95] = mr;
12589
+ Wi[72] = [mr, fv];
12590
+ Wi[104] = [mr, fv];
12591
+ Wi[87] = [mr, dv];
12592
+ Wi[119] = [mr, dv];
12593
12593
  function y$(t, e, n) {
12594
12594
  const i = this;
12595
12595
  let r, o;
@@ -18021,7 +18021,7 @@ const ZV = qV().use($H).use(lH).use(LV).use(bP), JV = O(function({ content: e, c
18021
18021
  className: "flex w-full flex-col rounded-lg bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F] p-[1px]",
18022
18022
  children: [k("div", {
18023
18023
  className: "flex flex-row items-center justify-between px-4 py-2",
18024
- children: [d(dr, {
18024
+ children: [d(Bi, {
18025
18025
  className: "font-medium",
18026
18026
  children: e
18027
18027
  }), n && d(me, {
@@ -18137,7 +18137,7 @@ const Q4 = wt(Dv, QV), Rv = gn({
18137
18137
  icon: e5[o],
18138
18138
  size: "sm",
18139
18139
  "aria-hidden": !0
18140
- }), d(dr, {
18140
+ }), d(Bi, {
18141
18141
  className: t5[o] || "font-medium",
18142
18142
  children: e
18143
18143
  })]
@@ -18335,7 +18335,7 @@ const rj = ({ entity: t, selected: e, onSelect: n, onRemove: i, marginLeft: r, s
18335
18335
  children: k("label", {
18336
18336
  "aria-label": t.name,
18337
18337
  className: T(r, "flex flex-row flex-wrap items-center gap-2 rounded-[10px] border px-2 py-1.5 hover:cursor-pointer", "focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:bg-f1-background-hover", e && l ? "bg-f1-background-selected-bold/10 transition-colors dark:bg-f1-background-selected-bold/20" : ""),
18338
- children: [!f && d(Bi, {
18338
+ children: [!f && d($i, {
18339
18339
  src: t.avatar,
18340
18340
  firstName: h,
18341
18341
  lastName: p,
@@ -18985,7 +18985,10 @@ const n5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
18985
18985
  children: d("span", {
18986
18986
  role: "button",
18987
18987
  className: T("my-auto flex items-center pr-1", t && "text-f1-foreground-secondary", C && "text-f1-foreground", S.length === 1 && !r || a && !C ? "pl-8" : "pl-2"),
18988
- children: S.length === 0 ? t : S.length === 1 ? S[0].subItem.subName : S.length + " " + e
18988
+ children: d(Bi, {
18989
+ tag: "span",
18990
+ children: S.length === 0 ? t ?? "" : S.length === 1 ? S[0].subItem.subName : `${S.length} ${e}`
18991
+ })
18989
18992
  })
18990
18993
  });
18991
18994
  }, kde = (t) => {
@@ -19571,7 +19574,7 @@ const bd = {
19571
19574
  onSubmit: "onSubmit",
19572
19575
  onTouched: "onTouched",
19573
19576
  all: "all"
19574
- }, qi = {
19577
+ }, Ui = {
19575
19578
  max: "max",
19576
19579
  min: "min",
19577
19580
  maxLength: "maxLength",
@@ -19822,7 +19825,7 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
19822
19825
  return {};
19823
19826
  const x = a ? a[0] : s, b = (E) => {
19824
19827
  r && x.reportValidity && (x.setCustomValidity(Qn(E) ? "" : E || ""), x.reportValidity());
19825
- }, S = {}, C = e2(s), A = Il(s), L = C || A, M = (y || Qm(s)) && Nt(s.value) && Nt(w) || wd(s) && s.value === "" || w === "" || Array.isArray(w) && !w.length, _ = sk.bind(null, g, i, S), P = (E, D, R, B = qi.maxLength, H = qi.minLength) => {
19828
+ }, S = {}, C = e2(s), A = Il(s), L = C || A, M = (y || Qm(s)) && Nt(s.value) && Nt(w) || wd(s) && s.value === "" || w === "" || Array.isArray(w) && !w.length, _ = sk.bind(null, g, i, S), P = (E, D, R, B = Ui.maxLength, H = Ui.minLength) => {
19826
19829
  const U = E ? D : R;
19827
19830
  S[g] = {
19828
19831
  type: E ? B : H,
@@ -19834,10 +19837,10 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
19834
19837
  if (o ? !Array.isArray(w) || !w.length : l && (!L && (M || dn(w)) || Qn(w) && !w || A && !ak(a).isValid || C && !lk(a).isValid)) {
19835
19838
  const { value: E, message: D } = Tc(l) ? { value: !!l, message: l } : Uo(l);
19836
19839
  if (E && (S[g] = {
19837
- type: qi.required,
19840
+ type: Ui.required,
19838
19841
  message: D,
19839
19842
  ref: x,
19840
- ..._(qi.required, D)
19843
+ ..._(Ui.required, D)
19841
19844
  }, !i))
19842
19845
  return b(D), S;
19843
19846
  }
@@ -19851,7 +19854,7 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
19851
19854
  const H = s.valueAsDate || new Date(w), U = (N) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + N), te = s.type == "time", ie = s.type == "week";
19852
19855
  Ii(R.value) && w && (E = te ? U(w) > U(R.value) : ie ? w > R.value : H > new Date(R.value)), Ii(B.value) && w && (D = te ? U(w) < U(B.value) : ie ? w < B.value : H < new Date(B.value));
19853
19856
  }
19854
- if ((E || D) && (P(!!E, R.message, B.message, qi.max, qi.min), !i))
19857
+ if ((E || D) && (P(!!E, R.message, B.message, Ui.max, Ui.min), !i))
19855
19858
  return b(S[g].message), S;
19856
19859
  }
19857
19860
  if ((c || f) && !M && (Ii(w) || o && Array.isArray(w))) {
@@ -19862,10 +19865,10 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
19862
19865
  if (p && !M && Ii(w)) {
19863
19866
  const { value: E, message: D } = Uo(p);
19864
19867
  if (xd(E) && !w.match(E) && (S[g] = {
19865
- type: qi.pattern,
19868
+ type: Ui.pattern,
19866
19869
  message: D,
19867
19870
  ref: s,
19868
- ..._(qi.pattern, D)
19871
+ ..._(Ui.pattern, D)
19869
19872
  }, !i))
19870
19873
  return b(D), S;
19871
19874
  }
@@ -19874,7 +19877,7 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
19874
19877
  const E = await m(w, n), D = g5(E, x);
19875
19878
  if (D && (S[g] = {
19876
19879
  ...D,
19877
- ..._(qi.validate, D.message)
19880
+ ..._(Ui.validate, D.message)
19878
19881
  }, !i))
19879
19882
  return b(D.message), S;
19880
19883
  } else if (Tt(m)) {
@@ -21002,7 +21005,7 @@ function Ic(t, e, n, i, r) {
21002
21005
  };
21003
21006
  return r == null && Ae.vnode != null && Ae.vnode(o), o;
21004
21007
  }
21005
- function Ui() {
21008
+ function Gi() {
21006
21009
  return {
21007
21010
  current: null
21008
21011
  };
@@ -21405,7 +21408,7 @@ var Fk = {
21405
21408
  DEFAULTS: n0
21406
21409
  }, Pk = {};
21407
21410
  Pk = JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');
21408
- var nr = {
21411
+ var ir = {
21409
21412
  autoFocus: {
21410
21413
  value: !1
21411
21414
  },
@@ -21589,7 +21592,7 @@ function c1(t, { caller: e } = {}) {
21589
21592
  async function bW(t) {
21590
21593
  $k = !0;
21591
21594
  let { emojiVersion: e, set: n, locale: i } = t;
21592
- if (e || (e = nr.emojiVersion.value), n || (n = nr.set.value), i || (i = nr.locale.value), Ge)
21595
+ if (e || (e = ir.emojiVersion.value), n || (n = ir.set.value), i || (i = ir.locale.value), Ge)
21593
21596
  Ge.categories = Ge.categories.filter((l) => !l.name);
21594
21597
  else {
21595
21598
  Ge = (typeof t.data == "function" ? await t.data() : t.data) || await E5(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`), Ge.emoticons = {}, Ge.natives = {}, Ge.categories.unshift({
@@ -21621,7 +21624,7 @@ async function bW(t) {
21621
21624
  const l = Ge.categories[s];
21622
21625
  if (l.id == "frequent") {
21623
21626
  let { maxFrequentRows: u, perLine: h } = t;
21624
- u = u >= 0 ? u : nr.maxFrequentRows.value, h || (h = nr.perLine.value), l.emojis = Fk.get({
21627
+ u = u >= 0 ? u : ir.maxFrequentRows.value, h || (h = ir.perLine.value), l.emojis = Fk.get({
21625
21628
  maxFrequentRows: u,
21626
21629
  perLine: h
21627
21630
  });
@@ -22057,8 +22060,8 @@ var jk = {
22057
22060
  transform: (t) => /\D/.test(t) ? t : `${t}px`
22058
22061
  },
22059
22062
  // Shared
22060
- set: nr.set,
22061
- skin: nr.skin
22063
+ set: ir.set,
22064
+ skin: ir.skin
22062
22065
  };
22063
22066
  class Wk extends Vk {
22064
22067
  async connectedCallback() {
@@ -22401,13 +22404,13 @@ class UW extends Ri {
22401
22404
  }
22402
22405
  componentWillMount() {
22403
22406
  this.dir = Jt.rtl ? "rtl" : "ltr", this.refs = {
22404
- menu: Ui(),
22405
- navigation: Ui(),
22406
- scroll: Ui(),
22407
- search: Ui(),
22408
- searchInput: Ui(),
22409
- skinToneButton: Ui(),
22410
- skinToneRadio: Ui()
22407
+ menu: Gi(),
22408
+ navigation: Gi(),
22409
+ scroll: Gi(),
22410
+ search: Gi(),
22411
+ searchInput: Gi(),
22412
+ skinToneButton: Gi(),
22413
+ skinToneRadio: Gi()
22411
22414
  }, this.initGrid(), this.props.stickySearch == !1 && this.props.searchPosition == "sticky" && (console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."), this.props.searchPosition = "static");
22412
22415
  }
22413
22416
  componentDidMount() {
@@ -22463,7 +22466,7 @@ class UW extends Ri {
22463
22466
  const i = (r, o) => {
22464
22467
  const s = [];
22465
22468
  s.__categoryId = o.id, s.__index = r.length, this.grid.push(s);
22466
- const a = this.grid.length - 1, l = a % rc.rowsPerRender ? {} : Ui();
22469
+ const a = this.grid.length - 1, l = a % rc.rowsPerRender ? {} : Gi();
22467
22470
  return l.index = a, l.posinset = this.grid.setsize + 1, r.push(l), s;
22468
22471
  };
22469
22472
  for (let r of e) {
@@ -22472,7 +22475,7 @@ class UW extends Ri {
22472
22475
  for (let a of r.emojis)
22473
22476
  s.length == this.getPerLine() && (s = i(o, r)), this.grid.setsize += 1, s.push(a);
22474
22477
  this.refs.categories.set(r.id, {
22475
- root: Ui(),
22478
+ root: Gi(),
22476
22479
  rows: o
22477
22480
  });
22478
22481
  }
@@ -23172,7 +23175,7 @@ class UW extends Ri {
23172
23175
  }
23173
23176
  class i2 extends OW {
23174
23177
  async connectedCallback() {
23175
- const e = zk(this.props, nr, this);
23178
+ const e = zk(this.props, ir, this);
23176
23179
  e.element = this, e.ref = (n) => {
23177
23180
  this.component = n;
23178
23181
  }, await c1(e), !this.disconnected && Dk(/* @__PURE__ */ J(UW, {
@@ -23185,7 +23188,7 @@ class i2 extends OW {
23185
23188
  });
23186
23189
  }
23187
23190
  }
23188
- Jn(i2, "Props", nr);
23191
+ Jn(i2, "Props", ir);
23189
23192
  typeof customElements < "u" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker", i2);
23190
23193
  var Uk = {};
23191
23194
  Uk = `:host {
@@ -23998,7 +24001,7 @@ function eq({ firstName: t, lastName: e, src: n, canReact: i, lastEmojiReaction:
23998
24001
  style: i ? {
23999
24002
  clipPath: "path('M69.6933 48.707C71.1842 44.7556 72 40.4731 72 36C72 16.1177 55.8823 0 36 0C16.1177 0 0 16.1177 0 36C0 55.8823 16.1177 72 36 72C40.4731 72 44.7556 71.1842 48.707 69.6933C48.6283 69.4953 48.5557 69.2942 48.4894 69.0902C48 67.5838 48 65.7226 48 62C48 58.2774 48 56.4162 48.4894 54.9098C49.4786 51.8655 51.8655 49.4786 54.9098 48.4894C56.4162 48 58.2774 48 62 48C65.7226 48 67.5838 48 69.0902 48.4894C69.2942 48.5557 69.4953 48.6283 69.6933 48.707')"
24000
24003
  } : {},
24001
- children: d(Bi, {
24004
+ children: d($i, {
24002
24005
  src: n,
24003
24006
  firstName: t,
24004
24007
  lastName: e,
@@ -24377,11 +24380,11 @@ const j5 = (t) => {
24377
24380
  onClick: w,
24378
24381
  children: [d("div", {
24379
24382
  className: "hidden md:block",
24380
- children: e ? d(ir, {
24383
+ children: e ? d(rr, {
24381
24384
  href: e.url || "#",
24382
24385
  title: b,
24383
24386
  stopPropagation: !0,
24384
- children: d(Bi, {
24387
+ children: d($i, {
24385
24388
  firstName: e.firstName,
24386
24389
  lastName: e.lastName,
24387
24390
  src: e.avatarUrl
@@ -24398,21 +24401,21 @@ const j5 = (t) => {
24398
24401
  children: [k("div", {
24399
24402
  className: "flex flex-1 flex-row flex-wrap items-center gap-1",
24400
24403
  children: [e ? k(Te, {
24401
- children: [d(ir, {
24404
+ children: [d(rr, {
24402
24405
  href: e.url,
24403
24406
  className: "block md:hidden",
24404
24407
  title: b,
24405
24408
  stopPropagation: !0,
24406
24409
  children: d("span", {
24407
24410
  className: "flex items-center",
24408
- children: d(Bi, {
24411
+ children: d($i, {
24409
24412
  firstName: e.firstName,
24410
24413
  lastName: e.lastName,
24411
24414
  src: e.avatarUrl,
24412
24415
  size: "xs"
24413
24416
  })
24414
24417
  })
24415
- }), d(ir, {
24418
+ }), d(rr, {
24416
24419
  href: e.url,
24417
24420
  title: b,
24418
24421
  className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
@@ -24428,7 +24431,7 @@ const j5 = (t) => {
24428
24431
  }), d("span", {
24429
24432
  className: T("text-f1-foreground-secondary", !e && "capitalize"),
24430
24433
  children: u
24431
- }), d(ir, {
24434
+ }), d(rr, {
24432
24435
  onClick: n.onClick,
24433
24436
  title: n.title,
24434
24437
  className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
@@ -24982,7 +24985,7 @@ const Ide = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
24982
24985
  })]
24983
24986
  }), i && d("div", {
24984
24987
  className: "w-fit",
24985
- children: d(ir, {
24988
+ children: d(rr, {
24986
24989
  href: i.href,
24987
24990
  target: "_blank",
24988
24991
  children: i.label
@@ -25204,7 +25207,7 @@ const Qk = O(({ action: t, avatarUrl: e, firstName: n, lastName: i }, r) => {
25204
25207
  const o = `${n} ${i}`;
25205
25208
  return d(Rl, {
25206
25209
  ref: r,
25207
- leftIcon: () => d(Bi, {
25210
+ leftIcon: () => d($i, {
25208
25211
  size: "xs",
25209
25212
  src: e,
25210
25213
  firstName: n,
@@ -25313,7 +25316,7 @@ const d1 = (t, e) => t && t.type === "copy" ? {
25313
25316
  ref: i,
25314
25317
  className: T("flex w-full flex-row flex-wrap items-center gap-2 rounded-md border p-2 hover:bg-f1-background-hover focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold", n.withPointerCursor && "cursor-pointer"),
25315
25318
  onClick: r,
25316
- children: [d(Bi, {
25319
+ children: [d($i, {
25317
25320
  firstName: t.firstName,
25318
25321
  lastName: t.lastName,
25319
25322
  src: t.avatarUrl,
@@ -25703,7 +25706,7 @@ function Iq({ children: t, header: e, period: n, embedded: i = !1 }) {
25703
25706
  lastName: e.employeeLastName,
25704
25707
  pulse: e.pulse,
25705
25708
  onPulseClick: e.onPulseClick
25706
- }) : d(Bi, {
25709
+ }) : d($i, {
25707
25710
  src: e.employeeAvatar,
25708
25711
  firstName: e.employeeFirstName,
25709
25712
  lastName: e.employeeLastName,
@@ -25776,7 +25779,7 @@ function U5({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
25776
25779
  label: p.actions.toggle,
25777
25780
  hideLabel: !0,
25778
25781
  className: T("text-f1-icon transition-all", !o && "-rotate-90"),
25779
- icon: Vi
25782
+ icon: ji
25780
25783
  }), k("div", {
25781
25784
  className: T(bt("focus:border-f1-border-focus"), "relative flex h-[36px] min-w-0 flex-grow items-center gap-1 rounded-[10px] border border-solid border-transparent px-1.5 text-sm transition-colors", n && "bg-f1-background-selected", g && !v && "cursor-pointer hover:bg-f1-background-hover", v && "cursor-not-allowed opacity-30"),
25782
25785
  onClick: v ? void 0 : () => g == null ? void 0 : g(t.id),
@@ -25842,7 +25845,7 @@ function U5({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
25842
25845
  })
25843
25846
  }, "icon")
25844
25847
  })
25845
- }), d(dr, {
25848
+ }), d(Bi, {
25846
25849
  lines: 1,
25847
25850
  className: T("flex-grow text-[14px] font-medium text-f1-foreground transition-all", C || y ? "pl-7" : "pl-0"),
25848
25851
  children: m
@@ -26138,7 +26141,7 @@ function zq({ title: t, items: e, className: n, activeItem: i, collapsible: r =
26138
26141
  value: u,
26139
26142
  clearable: !0
26140
26143
  })
26141
- }), d(dr, {
26144
+ }), d(Bi, {
26142
26145
  lines: 1,
26143
26146
  tag: "h2",
26144
26147
  className: "text-[14px] font-medium text-f1-foreground-secondary",
@@ -26289,7 +26292,7 @@ const Wq = ({ companies: t, selected: e, onChange: n, children: i, additionalOpt
26289
26292
  },
26290
26293
  className: "flex h-3 w-3 shrink-0 items-center justify-center text-f1-icon-bold",
26291
26294
  children: d(_e, {
26292
- icon: Vi,
26295
+ icon: ji,
26293
26296
  size: "xs"
26294
26297
  })
26295
26298
  })
@@ -26329,12 +26332,12 @@ function zde({ user: t, options: e, showActivityButton: n = !1, activityButtonSh
26329
26332
  children: k("button", {
26330
26333
  className: T("flex w-full max-w-full items-center gap-1.5 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary", bt("focus-visible:ring-inset")),
26331
26334
  onClick: o,
26332
- children: [d(Bi, {
26335
+ children: [d($i, {
26333
26336
  src: t.avatarUrl,
26334
26337
  firstName: t.firstName,
26335
26338
  lastName: t.lastName,
26336
26339
  size: "xs"
26337
- }), d(dr, {
26340
+ }), d(Bi, {
26338
26341
  children: `${t.firstName} ${t.lastName}`
26339
26342
  })]
26340
26343
  })
@@ -26537,7 +26540,7 @@ const Zq = ({ item: t, active: e }) => k("div", {
26537
26540
  }) : t.avatar ? d(Bf, {
26538
26541
  size: "xs",
26539
26542
  avatar: t.avatar
26540
- }) : null, d(dr, {
26543
+ }) : null, d(Bi, {
26541
26544
  tag: "span",
26542
26545
  className: "line-clamp-1 font-medium text-f1-foreground",
26543
26546
  lines: 1,
@@ -26607,7 +26610,7 @@ const Zq = ({ item: t, active: e }) => k("div", {
26607
26610
  },
26608
26611
  className: "h-3 w-3",
26609
26612
  children: d(_e, {
26610
- icon: Vi,
26613
+ icon: ji,
26611
26614
  size: "xs",
26612
26615
  className: "text-f1-icon-secondary"
26613
26616
  })
@@ -27000,7 +27003,7 @@ const eU = gn({
27000
27003
  })]
27001
27004
  }), (n || i) && k("div", {
27002
27005
  className: "flex flex-row items-center gap-3",
27003
- children: [i && d(ir, {
27006
+ children: [i && d(rr, {
27004
27007
  href: i.href,
27005
27008
  target: "_blank",
27006
27009
  variant: "link",
@@ -28135,7 +28138,7 @@ function HU({ drag: t, id: e, index: n, total: i, laneId: r, draggable: o = !1,
28135
28138
  children: [d(fL, {
28136
28139
  ...c,
28137
28140
  disableOverlayLink: o
28138
- }), c.link && d(ir, {
28141
+ }), c.link && d(rr, {
28139
28142
  ref: u,
28140
28143
  href: c.link,
28141
28144
  className: T("!z-1 pointer-events-none absolute inset-0 block rounded-xl", bt()),
@@ -29034,7 +29037,7 @@ const JU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
29034
29037
  className: "flex flex-1 flex-col gap-0.5",
29035
29038
  children: [d("header", {
29036
29039
  children: d("h3", {
29037
- children: d(dr, {
29040
+ children: d(Bi, {
29038
29041
  className: "text-base font-medium text-f1-foreground",
29039
29042
  children: t
29040
29043
  })
@@ -29044,7 +29047,7 @@ const JU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
29044
29047
  className: "flex w-full flex-col text-base font-normal text-f1-foreground-secondary md:flex-row md:gap-1",
29045
29048
  children: n.map((i, r) => k("div", {
29046
29049
  className: "flex min-w-0 gap-1",
29047
- children: [d(dr, {
29050
+ children: [d(Bi, {
29048
29051
  children: i
29049
29052
  }), r < n.length - 1 && d("span", {
29050
29053
  className: "hidden md:inline",
@@ -29074,7 +29077,7 @@ const JU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
29074
29077
  title: `Select ${t.selectable(e)}`,
29075
29078
  hideLabel: !0
29076
29079
  })
29077
- }), l && d(ir, {
29080
+ }), l && d(rr, {
29078
29081
  href: l,
29079
29082
  className: "pointer-events-auto absolute inset-0 block",
29080
29083
  tabIndex: 0,
@@ -29428,7 +29431,7 @@ const JU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
29428
29431
  })
29429
29432
  }), d("span", {
29430
29433
  className: T("flex-1", t.sortable ? "text-f1-foreground" : "text-f1-foreground-secondary"),
29431
- children: d(dr, {
29434
+ children: d(Bi, {
29432
29435
  children: t.label
29433
29436
  })
29434
29437
  }), i && d(V8, {
@@ -34609,7 +34612,7 @@ function gK(t, e, n, i, r) {
34609
34612
  throw new RangeError("Invalid content for node type " + n.name);
34610
34613
  t.step(new zt(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new ue(G.from(s), 0, 0), 1, !0));
34611
34614
  }
34612
- function sr(t, e, n = 1, i) {
34615
+ function ar(t, e, n = 1, i) {
34613
34616
  let r = t.resolve(e), o = r.depth - n, s = i && i[i.length - 1] || r.parent;
34614
34617
  if (o < 0 || r.parent.type.spec.isolating || !r.parent.canReplace(r.index(), r.parent.childCount) || !s.type.validContent(r.parent.content.cutByIndex(r.index(), r.parent.childCount)))
34615
34618
  return !1;
@@ -36122,7 +36125,7 @@ const Gt = function(t) {
36122
36125
  return e && e.nodeType == 11 ? e.host : e;
36123
36126
  };
36124
36127
  let k0 = null;
36125
- const Qi = function(t, e, n) {
36128
+ const er = function(t, e, n) {
36126
36129
  let i = k0 || (k0 = document.createRange());
36127
36130
  return i.setEnd(t, n ?? t.nodeValue.length), i.setStart(t, e || 0), i;
36128
36131
  }, AK = function() {
@@ -36221,9 +36224,9 @@ function FK(t, e, n) {
36221
36224
  return { node: i.startContainer, offset: Math.min(ni(i.startContainer), i.startOffset) };
36222
36225
  }
36223
36226
  }
36224
- const $i = typeof navigator < "u" ? navigator : null, Ig = typeof document < "u" ? document : null, Xr = $i && $i.userAgent || "", b0 = /Edge\/(\d+)/.exec(Xr), vw = /MSIE \d/.exec(Xr), w0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xr), _n = !!(vw || w0 || b0), Pr = vw ? document.documentMode : w0 ? +w0[1] : b0 ? +b0[1] : 0, wi = !_n && /gecko\/(\d+)/i.test(Xr);
36227
+ const zi = typeof navigator < "u" ? navigator : null, Ig = typeof document < "u" ? document : null, Xr = zi && zi.userAgent || "", b0 = /Edge\/(\d+)/.exec(Xr), vw = /MSIE \d/.exec(Xr), w0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xr), _n = !!(vw || w0 || b0), Pr = vw ? document.documentMode : w0 ? +w0[1] : b0 ? +b0[1] : 0, wi = !_n && /gecko\/(\d+)/i.test(Xr);
36225
36228
  wi && +(/Firefox\/(\d+)/.exec(Xr) || [0, 0])[1];
36226
- const x0 = !_n && /Chrome\/(\d+)/.exec(Xr), tn = !!x0, kw = x0 ? +x0[1] : 0, hn = !_n && !!$i && /Apple Computer/.test($i.vendor), Ms = hn && (/Mobile\/\w+/.test(Xr) || !!$i && $i.maxTouchPoints > 2), ei = Ms || ($i ? /Mac/.test($i.platform) : !1), PK = $i ? /Win/.test($i.platform) : !1, rr = /Android \d/.test(Xr), Bl = !!Ig && "webkitFontSmoothing" in Ig.documentElement.style, BK = Bl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
36229
+ const x0 = !_n && /Chrome\/(\d+)/.exec(Xr), tn = !!x0, kw = x0 ? +x0[1] : 0, hn = !_n && !!zi && /Apple Computer/.test(zi.vendor), Ms = hn && (/Mobile\/\w+/.test(Xr) || !!zi && zi.maxTouchPoints > 2), ei = Ms || (zi ? /Mac/.test(zi.platform) : !1), PK = zi ? /Win/.test(zi.platform) : !1, or = /Android \d/.test(Xr), Bl = !!Ig && "webkitFontSmoothing" in Ig.documentElement.style, BK = Bl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
36227
36230
  function $K(t) {
36228
36231
  let e = t.defaultView && t.defaultView.visualViewport;
36229
36232
  return e ? {
@@ -36238,7 +36241,7 @@ function $K(t) {
36238
36241
  bottom: t.documentElement.clientHeight
36239
36242
  };
36240
36243
  }
36241
- function Gi(t, e) {
36244
+ function Ki(t, e) {
36242
36245
  return typeof t == "number" ? t : t[e];
36243
36246
  }
36244
36247
  function zK(t) {
@@ -36258,7 +36261,7 @@ function Dg(t, e, n) {
36258
36261
  continue;
36259
36262
  }
36260
36263
  let a = s, l = a == o.body, c = l ? $K(o) : zK(a), f = 0, u = 0;
36261
- if (e.top < c.top + Gi(i, "top") ? u = -(c.top - e.top + Gi(r, "top")) : e.bottom > c.bottom - Gi(i, "bottom") && (u = e.bottom - e.top > c.bottom - c.top ? e.top + Gi(r, "top") - c.top : e.bottom - c.bottom + Gi(r, "bottom")), e.left < c.left + Gi(i, "left") ? f = -(c.left - e.left + Gi(r, "left")) : e.right > c.right - Gi(i, "right") && (f = e.right - c.right + Gi(r, "right")), f || u)
36264
+ if (e.top < c.top + Ki(i, "top") ? u = -(c.top - e.top + Ki(r, "top")) : e.bottom > c.bottom - Ki(i, "bottom") && (u = e.bottom - e.top > c.bottom - c.top ? e.top + Ki(r, "top") - c.top : e.bottom - c.bottom + Ki(r, "bottom")), e.left < c.left + Ki(i, "left") ? f = -(c.left - e.left + Ki(r, "left")) : e.right > c.right - Ki(i, "right") && (f = e.right - c.right + Ki(r, "right")), f || u)
36262
36265
  if (l)
36263
36266
  o.defaultView.scrollBy(f, u);
36264
36267
  else {
@@ -36323,7 +36326,7 @@ function xw(t, e) {
36323
36326
  if (f.nodeType == 1)
36324
36327
  h = f.getClientRects();
36325
36328
  else if (f.nodeType == 3)
36326
- h = Qi(f).getClientRects();
36329
+ h = er(f).getClientRects();
36327
36330
  else
36328
36331
  continue;
36329
36332
  for (let p = 0; p < h.length; p++) {
@@ -36441,11 +36444,11 @@ function _w(t, e, n) {
36441
36444
  let { node: i, offset: r, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Bl || wi;
36442
36445
  if (i.nodeType == 3)
36443
36446
  if (s && (ZK.test(i.nodeValue) || (n < 0 ? !r : r == i.nodeValue.length))) {
36444
- let l = wr(Qi(i, r, r), n);
36447
+ let l = wr(er(i, r, r), n);
36445
36448
  if (wi && r && /\s/.test(i.nodeValue[r - 1]) && r < i.nodeValue.length) {
36446
- let c = wr(Qi(i, r - 1, r - 1), -1);
36449
+ let c = wr(er(i, r - 1, r - 1), -1);
36447
36450
  if (c.top == l.top) {
36448
- let f = wr(Qi(i, r, r + 1), -1);
36451
+ let f = wr(er(i, r, r + 1), -1);
36449
36452
  if (f.top != l.top)
36450
36453
  return ua(f, f.left < c.left);
36451
36454
  }
@@ -36453,7 +36456,7 @@ function _w(t, e, n) {
36453
36456
  return l;
36454
36457
  } else {
36455
36458
  let l = r, c = r, f = n < 0 ? 1 : -1;
36456
- return n < 0 && !r ? (c++, f = -1) : n >= 0 && r == i.nodeValue.length ? (l--, f = 1) : n < 0 ? l-- : c++, ua(wr(Qi(i, l, c), f), f < 0);
36459
+ return n < 0 && !r ? (c++, f = -1) : n >= 0 && r == i.nodeValue.length ? (l--, f = 1) : n < 0 ? l-- : c++, ua(wr(er(i, l, c), f), f < 0);
36457
36460
  }
36458
36461
  if (!t.state.doc.resolve(e - (o || 0)).parent.inlineContent) {
36459
36462
  if (o == null && r && (n < 0 || r == ni(i))) {
@@ -36469,7 +36472,7 @@ function _w(t, e, n) {
36469
36472
  return Pu(i.getBoundingClientRect(), n >= 0);
36470
36473
  }
36471
36474
  if (o == null && r && (n < 0 || r == ni(i))) {
36472
- let l = i.childNodes[r - 1], c = l.nodeType == 3 ? Qi(l, ni(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
36475
+ let l = i.childNodes[r - 1], c = l.nodeType == 3 ? er(l, ni(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
36473
36476
  if (c)
36474
36477
  return ua(wr(c, 1), !1);
36475
36478
  }
@@ -36477,11 +36480,11 @@ function _w(t, e, n) {
36477
36480
  let l = i.childNodes[r];
36478
36481
  for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
36479
36482
  l = l.nextSibling;
36480
- let c = l ? l.nodeType == 3 ? Qi(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
36483
+ let c = l ? l.nodeType == 3 ? er(l, 0, s ? 0 : 1) : l.nodeType == 1 ? l : null : null;
36481
36484
  if (c)
36482
36485
  return ua(wr(c, -1), !0);
36483
36486
  }
36484
- return ua(wr(i.nodeType == 3 ? Qi(i) : i, -n), n >= 0);
36487
+ return ua(wr(i.nodeType == 3 ? er(i) : i, -n), n >= 0);
36485
36488
  }
36486
36489
  function ua(t, e) {
36487
36490
  if (t.width == 0)
@@ -36524,7 +36527,7 @@ function JK(t, e, n) {
36524
36527
  if (a.nodeType == 1)
36525
36528
  l = a.getClientRects();
36526
36529
  else if (a.nodeType == 3)
36527
- l = Qi(a, 0, a.nodeValue.length).getClientRects();
36530
+ l = er(a, 0, a.nodeValue.length).getClientRects();
36528
36531
  else
36529
36532
  continue;
36530
36533
  for (let c = 0; c < l.length; c++) {
@@ -36557,7 +36560,7 @@ let Fg = null, Pg = null, Bg = !1;
36557
36560
  function QK(t, e, n) {
36558
36561
  return Fg == e && Pg == n ? Bg : (Fg = e, Pg = n, Bg = n == "up" || n == "down" ? JK(t, e, n) : XK(t, e, n));
36559
36562
  }
36560
- const oi = 0, $g = 1, uo = 2, zi = 3;
36563
+ const oi = 0, $g = 1, uo = 2, Hi = 3;
36561
36564
  class $l {
36562
36565
  constructor(e, n, i, r) {
36563
36566
  this.parent = e, this.children = n, this.dom = i, this.contentDOM = r, this.dirty = oi, i.pmViewDesc = this;
@@ -36873,10 +36876,10 @@ class $l {
36873
36876
  if (i == s ? e <= s && n >= i : e < s && n > i) {
36874
36877
  let a = i + o.border, l = s - o.border;
36875
36878
  if (e >= a && n <= l) {
36876
- this.dirty = e == i || n == s ? uo : $g, e == a && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = zi : o.markDirty(e - a, n - a);
36879
+ this.dirty = e == i || n == s ? uo : $g, e == a && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = Hi : o.markDirty(e - a, n - a);
36877
36880
  return;
36878
36881
  } else
36879
- o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? uo : zi;
36882
+ o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? uo : Hi;
36880
36883
  }
36881
36884
  i = s;
36882
36885
  }
@@ -36965,10 +36968,10 @@ class Ao extends $l {
36965
36968
  return (!s || !s.dom) && (s = Ho.renderSpec(document, n.type.spec.toDOM(n, i), null, n.attrs)), new Ao(e, n, s.dom, s.contentDOM || s.dom, s);
36966
36969
  }
36967
36970
  parseRule() {
36968
- return this.dirty & zi || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
36971
+ return this.dirty & Hi || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
36969
36972
  }
36970
36973
  matchesMark(e) {
36971
- return this.dirty != zi && this.mark.eq(e);
36974
+ return this.dirty != Hi && this.mark.eq(e);
36972
36975
  }
36973
36976
  markDirty(e, n) {
36974
36977
  if (super.markDirty(e, n), this.dirty != oi) {
@@ -37095,7 +37098,7 @@ class Br extends $l {
37095
37098
  // If this desc must be updated to match the given node decoration,
37096
37099
  // do so and return true.
37097
37100
  update(e, n, i, r) {
37098
- return this.dirty == zi || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, n, i, r), !0);
37101
+ return this.dirty == Hi || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, n, i, r), !0);
37099
37102
  }
37100
37103
  updateInner(e, n, i, r) {
37101
37104
  this.updateOuterDeco(n), this.node = e, this.innerDeco = i, this.contentDOM && this.updateChildren(r, this.posAtStart), this.dirty = oi;
@@ -37134,7 +37137,7 @@ class k1 extends Br {
37134
37137
  return { skip: e || !0 };
37135
37138
  }
37136
37139
  update(e, n, i, r) {
37137
- return this.dirty == zi || this.dirty != oi && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != oi || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, r.trackWrites == this.nodeDOM && (r.trackWrites = null)), this.node = e, this.dirty = oi, !0);
37140
+ return this.dirty == Hi || this.dirty != oi && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != oi || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, r.trackWrites == this.nodeDOM && (r.trackWrites = null)), this.node = e, this.dirty = oi, !0);
37138
37141
  }
37139
37142
  inParent() {
37140
37143
  let e = this.parent.contentDOM;
@@ -37157,7 +37160,7 @@ class k1 extends Br {
37157
37160
  return new k1(this.parent, r, this.outerDeco, this.innerDeco, o, o, i);
37158
37161
  }
37159
37162
  markDirty(e, n) {
37160
- super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = zi);
37163
+ super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Hi);
37161
37164
  }
37162
37165
  get domAtom() {
37163
37166
  return !1;
@@ -37188,7 +37191,7 @@ class tZ extends Br {
37188
37191
  // through. If it does, and there's a `contentDOM` node, our logic
37189
37192
  // updates the children.
37190
37193
  update(e, n, i, r) {
37191
- if (this.dirty == zi)
37194
+ if (this.dirty == Hi)
37192
37195
  return !1;
37193
37196
  if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) {
37194
37197
  let o = this.spec.update(e, n, i);
@@ -37367,7 +37370,7 @@ class iZ {
37367
37370
  }
37368
37371
  updateNodeAt(e, n, i, r, o) {
37369
37372
  let s = this.top.children[r];
37370
- return s.dirty == zi && s.dom == s.contentDOM && (s.dirty = uo), s.update(e, n, i, o) ? (this.destroyBetween(this.index, r), this.index++, !0) : !1;
37373
+ return s.dirty == Hi && s.dom == s.contentDOM && (s.dirty = uo), s.update(e, n, i, o) ? (this.destroyBetween(this.index, r), this.index++, !0) : !1;
37371
37374
  }
37372
37375
  findIndexWithChild(e) {
37373
37376
  for (; ; ) {
@@ -37395,7 +37398,7 @@ class iZ {
37395
37398
  let c = this.preMatch.matched.get(l);
37396
37399
  if (c != null && c != o)
37397
37400
  return !1;
37398
- let f = l.dom, u, h = this.isLocked(f) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != zi && Rd(n, l.outerDeco));
37401
+ let f = l.dom, u, h = this.isLocked(f) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Hi && Rd(n, l.outerDeco));
37399
37402
  if (!h && l.update(e, n, i, r))
37400
37403
  return this.destroyBetween(this.index, a), l.dom != f && (this.changed = !0), this.index++, !0;
37401
37404
  if (!h && (u = this.recreateWrapper(l, e, n, i, r, s)))
@@ -37612,7 +37615,7 @@ function v2(t, e = null) {
37612
37615
  function Tw(t) {
37613
37616
  return t.editable ? t.hasFocus() : Iw(t) && document.activeElement && document.activeElement.contains(t.dom);
37614
37617
  }
37615
- function ar(t, e = !1) {
37618
+ function lr(t, e = !1) {
37616
37619
  let n = t.state.selection;
37617
37620
  if (Ow(t, n), !!Tw(t)) {
37618
37621
  if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && tn) {
@@ -37854,7 +37857,7 @@ function L0(t, e, n) {
37854
37857
  t.domObserver.setCurSelection();
37855
37858
  let { state: r } = t;
37856
37859
  setTimeout(() => {
37857
- t.state == r && ar(t);
37860
+ t.state == r && lr(t);
37858
37861
  }, 50);
37859
37862
  }
37860
37863
  function Kg(t, e) {
@@ -38187,7 +38190,7 @@ function AZ(t, e) {
38187
38190
  }
38188
38191
  mn.keydown = (t, e) => {
38189
38192
  let n = e;
38190
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Vw(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(rr && tn && n.keyCode == 13)))
38193
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Vw(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(or && tn && n.keyCode == 13)))
38191
38194
  if (n.keyCode != 229 && t.domObserver.forceFlush(), Ms && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
38192
38195
  let i = Date.now();
38193
38196
  t.input.lastIOSEnter = i, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -38317,7 +38320,7 @@ class BZ {
38317
38320
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Ir(e, "pointer");
38318
38321
  }
38319
38322
  done() {
38320
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => ar(this.view)), this.view.input.mouseDown = null;
38323
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => lr(this.view)), this.view.input.mouseDown = null;
38321
38324
  }
38322
38325
  up(e) {
38323
38326
  if (this.done(), !this.view.dom.contains(e.target))
@@ -38350,7 +38353,7 @@ pn.contextmenu = (t) => C2(t);
38350
38353
  function Vw(t, e) {
38351
38354
  return t.composing ? !0 : hn && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
38352
38355
  }
38353
- const $Z = rr ? 5e3 : -1;
38356
+ const $Z = or ? 5e3 : -1;
38354
38357
  mn.compositionstart = mn.compositionupdate = (t) => {
38355
38358
  if (!t.composing) {
38356
38359
  t.domObserver.flush();
@@ -38409,7 +38412,7 @@ function HZ() {
38409
38412
  return t.initEvent("event", !0, !0), t.timeStamp;
38410
38413
  }
38411
38414
  function Pd(t, e = !1) {
38412
- if (!(rr && t.domObserver.flushingSoon >= 0)) {
38415
+ if (!(or && t.domObserver.flushingSoon >= 0)) {
38413
38416
  if (t.domObserver.forceFlush(), Ww(t), e || t.docView && t.docView.dirty) {
38414
38417
  let n = v2(t);
38415
38418
  return n && !n.eq(t.state.selection) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !t.state.selection.empty ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
@@ -38466,7 +38469,7 @@ function qw(t) {
38466
38469
  }
38467
38470
  mn.paste = (t, e) => {
38468
38471
  let n = e;
38469
- if (t.composing && !rr)
38472
+ if (t.composing && !or)
38470
38473
  return;
38471
38474
  let i = Xa ? null : n.clipboardData, r = t.input.shiftKey && t.input.lastKeyCode != 45;
38472
38475
  i && Qa(t, qw(i), i.getData("text/html"), r, n) ? n.preventDefault() : WZ(t, n);
@@ -38540,7 +38543,7 @@ mn.drop = (t, e) => {
38540
38543
  };
38541
38544
  pn.focus = (t) => {
38542
38545
  t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = !0, setTimeout(() => {
38543
- t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && ar(t);
38546
+ t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && lr(t);
38544
38547
  }, 20));
38545
38548
  };
38546
38549
  pn.blur = (t, e) => {
@@ -38548,7 +38551,7 @@ pn.blur = (t, e) => {
38548
38551
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
38549
38552
  };
38550
38553
  pn.beforeinput = (t, e) => {
38551
- if (tn && rr && e.inputType == "deleteContentBackward") {
38554
+ if (tn && or && e.inputType == "deleteContentBackward") {
38552
38555
  t.domObserver.flushSoon();
38553
38556
  let { domChangeCount: i } = t.input;
38554
38557
  setTimeout(() => {
@@ -39136,7 +39139,7 @@ class JZ {
39136
39139
  onSelectionChange() {
39137
39140
  if (Ug(this.view)) {
39138
39141
  if (this.suppressingSelectionUpdates)
39139
- return ar(this.view);
39142
+ return lr(this.view);
39140
39143
  if (_n && Pr <= 11 && !this.view.state.selection.empty) {
39141
39144
  let e = this.view.domSelectionRange();
39142
39145
  if (e.focusNode && No(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
@@ -39198,7 +39201,7 @@ class JZ {
39198
39201
  }
39199
39202
  }
39200
39203
  let c = null;
39201
- o < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && v1(i) && (c = v2(e)) && c.eq(Me.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, ar(e), this.currentSelection.set(i), e.scrollToSelection()) : (o > -1 || r) && (o > -1 && (e.docView.markDirty(o, s), YZ(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || ar(e), this.currentSelection.set(i));
39204
+ o < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && v1(i) && (c = v2(e)) && c.eq(Me.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, lr(e), this.currentSelection.set(i), e.scrollToSelection()) : (o > -1 || r) && (o > -1 && (e.docView.markDirty(o, s), YZ(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || lr(e), this.currentSelection.set(i));
39202
39205
  }
39203
39206
  registerMutation(e, n) {
39204
39207
  if (n.indexOf(e.target) > -1)
@@ -39314,7 +39317,7 @@ function iJ(t, e, n, i, r) {
39314
39317
  if (t.input.compositionPendingChanges = 0, e < 0) {
39315
39318
  let M = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, _ = v2(t, M);
39316
39319
  if (_ && !t.state.selection.eq(_)) {
39317
- if (tn && rr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (E) => E(t, so(13, "Enter"))))
39320
+ if (tn && or && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (E) => E(t, so(13, "Enter"))))
39318
39321
  return;
39319
39322
  let P = t.state.tr.setSelection(_);
39320
39323
  M == "pointer" ? P.setMeta("pointer", !0) : M == "key" && P.scrollIntoView(), o && P.setMeta("composition", o), t.dispatch(P);
@@ -39326,7 +39329,7 @@ function iJ(t, e, n, i, r) {
39326
39329
  let l = t.state.selection, c = eJ(t, e, n), f = t.state.doc, u = f.slice(c.from, c.to), h, p;
39327
39330
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (h = t.state.selection.to, p = "end") : (h = t.state.selection.from, p = "start"), t.input.lastKeyCode = null;
39328
39331
  let m = sJ(u.content, c.doc.content, c.from, h, p);
39329
- if (m && t.input.domChangeCount++, (Ms && t.input.lastIOSEnter > Date.now() - 225 || rr) && r.some((M) => M.nodeType == 1 && !nJ.test(M.nodeName)) && (!m || m.endA >= m.endB) && t.someProp("handleKeyDown", (M) => M(t, so(13, "Enter")))) {
39332
+ if (m && t.input.domChangeCount++, (Ms && t.input.lastIOSEnter > Date.now() - 225 || or) && r.some((M) => M.nodeType == 1 && !nJ.test(M.nodeName)) && (!m || m.endA >= m.endB) && t.someProp("handleKeyDown", (M) => M(t, so(13, "Enter")))) {
39330
39333
  t.input.lastIOSEnter = 0;
39331
39334
  return;
39332
39335
  }
@@ -39350,10 +39353,10 @@ function iJ(t, e, n, i, r) {
39350
39353
  return;
39351
39354
  }
39352
39355
  if (t.state.selection.anchor > m.start && oJ(f, m.start, m.endA, g, y) && t.someProp("handleKeyDown", (M) => M(t, so(8, "Backspace")))) {
39353
- rr && tn && t.domObserver.suppressSelectionUpdates();
39356
+ or && tn && t.domObserver.suppressSelectionUpdates();
39354
39357
  return;
39355
39358
  }
39356
- tn && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), rr && !w && g.start() != y.start() && y.parentOffset == 0 && g.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, y = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
39359
+ tn && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), or && !w && g.start() != y.start() && y.parentOffset == 0 && g.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, y = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
39357
39360
  t.someProp("handleKeyDown", function(M) {
39358
39361
  return M(t, so(13, "Enter"));
39359
39362
  });
@@ -39361,7 +39364,7 @@ function iJ(t, e, n, i, r) {
39361
39364
  let b = m.start, S = m.endA, C, A, L;
39362
39365
  if (w) {
39363
39366
  if (g.pos == y.pos)
39364
- _n && Pr <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => ar(t), 20)), C = t.state.tr.delete(b, S), A = f.resolve(m.start).marksAcross(f.resolve(m.endA));
39367
+ _n && Pr <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => lr(t), 20)), C = t.state.tr.delete(b, S), A = f.resolve(m.start).marksAcross(f.resolve(m.endA));
39365
39368
  else if (
39366
39369
  // Adding or removing a mark
39367
39370
  m.endA == m.endB && (L = rJ(g.parent.content.cut(g.parentOffset, y.parentOffset), v.parent.content.cut(v.parentOffset, m.endA - v.start())))
@@ -39535,7 +39538,7 @@ class aJ {
39535
39538
  let m = tn ? this.trackWrites = this.domSelectionRange().focusNode : null;
39536
39539
  this.composing && (this.input.compositionNode = zZ(this)), (o || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = zg(e.doc, c, l, this.dom, this)), m && !this.trackWrites && (p = !0);
39537
39540
  }
39538
- p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && fZ(this)) ? ar(this, p) : (Ow(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
39541
+ p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && fZ(this)) ? lr(this, p) : (Ow(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
39539
39542
  }
39540
39543
  this.updatePluginViews(r), !((i = this.dragging) === null || i === void 0) && i.node && !r.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, r), f == "reset" ? this.dom.scrollTop = 0 : f == "to selection" ? this.scrollToSelection() : h && VK(h);
39541
39544
  }
@@ -39624,7 +39627,7 @@ class aJ {
39624
39627
  Focus the editor.
39625
39628
  */
39626
39629
  focus() {
39627
- this.domObserver.stop(), this.editable && jK(this.dom), ar(this), this.domObserver.start();
39630
+ this.domObserver.stop(), this.editable && jK(this.dom), lr(this), this.domObserver.start();
39628
39631
  }
39629
39632
  /**
39630
39633
  Get the document root in which the editor exists. This will
@@ -40205,7 +40208,7 @@ const xJ = (t, e) => {
40205
40208
  return !1;
40206
40209
  if (n.depth > 1 && n.after() != n.end(-1)) {
40207
40210
  let o = n.before();
40208
- if (sr(t.doc, o))
40211
+ if (ar(t.doc, o))
40209
40212
  return e && e(t.tr.split(o).scrollIntoView()), !0;
40210
40213
  }
40211
40214
  let i = n.blockRange(), r = i && ea(i);
@@ -40215,7 +40218,7 @@ function CJ(t) {
40215
40218
  return (e, n) => {
40216
40219
  let { $from: i, $to: r } = e.selection;
40217
40220
  if (e.selection instanceof Le && e.selection.node.isBlock)
40218
- return !i.parentOffset || !sr(e.doc, i.pos) ? !1 : (n && n(e.tr.split(i.pos).scrollIntoView()), !0);
40221
+ return !i.parentOffset || !ar(e.doc, i.pos) ? !1 : (n && n(e.tr.split(i.pos).scrollIntoView()), !0);
40219
40222
  if (!i.depth)
40220
40223
  return !1;
40221
40224
  let o = [], s, a, l = !1, c = !1;
@@ -40230,8 +40233,8 @@ function CJ(t) {
40230
40233
  }
40231
40234
  let f = e.tr;
40232
40235
  (e.selection instanceof Ee || e.selection instanceof Cn) && f.deleteSelection();
40233
- let u = f.mapping.map(i.pos), h = sr(f.doc, u, o.length, o);
40234
- if (h || (o[0] = a ? { type: a } : null, h = sr(f.doc, u, o.length, o)), f.split(u, o.length, o), !l && c && i.node(s).type != a) {
40236
+ let u = f.mapping.map(i.pos), h = ar(f.doc, u, o.length, o);
40237
+ if (h || (o[0] = a ? { type: a } : null, h = ar(f.doc, u, o.length, o)), f.split(u, o.length, o), !l && c && i.node(s).type != a) {
40235
40238
  let p = f.mapping.map(i.before(s)), m = f.doc.resolve(p);
40236
40239
  a && i.node(s - 1).canReplaceWith(m.index(), m.index() + 1, a) && f.setNodeMarkup(f.mapping.map(i.before(s)), a);
40237
40240
  }
@@ -40375,7 +40378,7 @@ function OJ(t, e, n, i, r) {
40375
40378
  n[f].type == r && (s = f + 1);
40376
40379
  let a = n.length - s, l = e.start + n.length - (i ? 2 : 0), c = e.parent;
40377
40380
  for (let f = e.startIndex, u = e.endIndex, h = !0; f < u; f++, h = !1)
40378
- !h && sr(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(f).nodeSize;
40381
+ !h && ar(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(f).nodeSize;
40379
40382
  return t;
40380
40383
  }
40381
40384
  function IJ(t) {
@@ -41478,7 +41481,7 @@ const fY = (t, e = {}) => ({ tr: n, state: i, dispatch: r }) => {
41478
41481
  function S1(t) {
41479
41482
  return t instanceof Ee;
41480
41483
  }
41481
- function or(t = 0, e = 0, n = 0) {
41484
+ function sr(t = 0, e = 0, n = 0) {
41482
41485
  return Math.min(Math.max(t, e), n);
41483
41486
  }
41484
41487
  function px(t, e = null) {
@@ -41490,7 +41493,7 @@ function px(t, e = null) {
41490
41493
  if (e === "end")
41491
41494
  return i;
41492
41495
  const r = n.from, o = i.to;
41493
- return e === "all" ? Ee.create(t, or(0, r, o), or(t.content.size, r, o)) : Ee.create(t, or(e, r, o), or(e, r, o));
41496
+ return e === "all" ? Ee.create(t, sr(0, r, o), sr(t.content.size, r, o)) : Ee.create(t, sr(e, r, o), sr(e, r, o));
41494
41497
  }
41495
41498
  function mx() {
41496
41499
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
@@ -41986,7 +41989,7 @@ function xx(t) {
41986
41989
  return t instanceof Le;
41987
41990
  }
41988
41991
  function ZY(t, e, n) {
41989
- const r = t.state.doc.content.size, o = or(e, 0, r), s = or(n, 0, r), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), c = Math.min(a.top, l.top), f = Math.max(a.bottom, l.bottom), u = Math.min(a.left, l.left), h = Math.max(a.right, l.right), p = h - u, m = f - c, v = {
41992
+ const r = t.state.doc.content.size, o = sr(e, 0, r), s = sr(n, 0, r), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), c = Math.min(a.top, l.top), f = Math.max(a.bottom, l.bottom), u = Math.min(a.left, l.left), h = Math.max(a.right, l.right), p = h - u, m = f - c, v = {
41990
41993
  top: c,
41991
41994
  bottom: f,
41992
41995
  left: u,
@@ -42052,13 +42055,13 @@ const YY = (t, e = {}) => ({ tr: n, state: i, dispatch: r }) => {
42052
42055
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), o.isTextblock ? r().command(({ commands: a }) => f6(o, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => f6(o, { ...s, ...e })(a, i)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
42053
42056
  }, eX = (t) => ({ tr: e, dispatch: n }) => {
42054
42057
  if (n) {
42055
- const { doc: i } = e, r = or(t, 0, i.content.size), o = Le.create(i, r);
42058
+ const { doc: i } = e, r = sr(t, 0, i.content.size), o = Le.create(i, r);
42056
42059
  e.setSelection(o);
42057
42060
  }
42058
42061
  return !0;
42059
42062
  }, tX = (t) => ({ tr: e, dispatch: n }) => {
42060
42063
  if (n) {
42061
- const { doc: i } = e, { from: r, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = Ee.atStart(i).from, a = Ee.atEnd(i).to, l = or(r, s, a), c = or(o, s, a), f = Ee.create(i, l, c);
42064
+ const { doc: i } = e, { from: r, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = Ee.atStart(i).from, a = Ee.atEnd(i).to, l = sr(r, s, a), c = sr(o, s, a), f = Ee.create(i, l, c);
42062
42065
  e.setSelection(f);
42063
42066
  }
42064
42067
  return !0;
@@ -42076,7 +42079,7 @@ function v6(t, e) {
42076
42079
  const iX = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, editor: r }) => {
42077
42080
  const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = r.extensionManager.attributes, f = Hc(c, a.node().type.name, a.node().attrs);
42078
42081
  if (o instanceof Le && o.node.isBlock)
42079
- return !a.parentOffset || !sr(s, a.pos) ? !1 : (i && (t && v6(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
42082
+ return !a.parentOffset || !ar(s, a.pos) ? !1 : (i && (t && v6(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
42080
42083
  if (!a.parent.isBlock)
42081
42084
  return !1;
42082
42085
  const u = l.parentOffset === l.parent.content.size, h = a.depth === 0 ? void 0 : R2(a.node(-1).contentMatchAt(a.indexAfter(-1)));
@@ -42085,8 +42088,8 @@ const iX = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edit
42085
42088
  type: h,
42086
42089
  attrs: f
42087
42090
  }
42088
- ] : void 0, m = sr(e.doc, e.mapping.map(a.pos), 1, p);
42089
- if (!p && !m && sr(e.doc, e.mapping.map(a.pos), 1, h ? [{ type: h }] : void 0) && (m = !0, p = h ? [
42091
+ ] : void 0, m = ar(e.doc, e.mapping.map(a.pos), 1, p);
42092
+ if (!p && !m && ar(e.doc, e.mapping.map(a.pos), 1, h ? [{ type: h }] : void 0) && (m = !0, p = h ? [
42090
42093
  {
42091
42094
  type: h,
42092
42095
  attrs: f
@@ -42144,7 +42147,7 @@ const iX = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edit
42144
42147
  { type: a, attrs: m },
42145
42148
  { type: p, attrs: g }
42146
42149
  ] : [{ type: a, attrs: m }];
42147
- if (!sr(n.doc, l.pos, 2))
42150
+ if (!ar(n.doc, l.pos, 2))
42148
42151
  return !1;
42149
42152
  if (r) {
42150
42153
  const { selection: v, storedMarks: w } = i, { splittableMarks: x } = o.extensionManager, b = w || v.$to.parentOffset && v.$from.marks();
@@ -43307,7 +43310,7 @@ var Sn = "top", ci = "bottom", di = "right", Ln = "left", P2 = "auto", Hl = [Sn,
43307
43310
  }, []), _x = /* @__PURE__ */ [].concat(Hl, [P2]).reduce(function(t, e) {
43308
43311
  return t.concat([e, e + "-" + Ts, e + "-" + il]);
43309
43312
  }, []), OX = "beforeRead", IX = "read", DX = "afterRead", RX = "beforeMain", FX = "main", PX = "afterMain", BX = "beforeWrite", $X = "write", zX = "afterWrite", HX = [OX, IX, DX, RX, FX, PX, BX, $X, zX];
43310
- function Hi(t) {
43313
+ function Vi(t) {
43311
43314
  return t ? (t.nodeName || "").toLowerCase() : null;
43312
43315
  }
43313
43316
  function Wn(t) {
@@ -43337,7 +43340,7 @@ function VX(t) {
43337
43340
  var e = t.state;
43338
43341
  Object.keys(e.elements).forEach(function(n) {
43339
43342
  var i = e.styles[n] || {}, r = e.attributes[n] || {}, o = e.elements[n];
43340
- !si(o) || !Hi(o) || (Object.assign(o.style, i), Object.keys(r).forEach(function(s) {
43343
+ !si(o) || !Vi(o) || (Object.assign(o.style, i), Object.keys(r).forEach(function(s) {
43341
43344
  var a = r[s];
43342
43345
  a === !1 ? o.removeAttribute(s) : o.setAttribute(s, a === !0 ? "" : a);
43343
43346
  }));
@@ -43361,7 +43364,7 @@ function jX(t) {
43361
43364
  var r = e.elements[i], o = e.attributes[i] || {}, s = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : n[i]), a = s.reduce(function(l, c) {
43362
43365
  return l[c] = "", l;
43363
43366
  }, {});
43364
- !si(r) || !Hi(r) || (Object.assign(r.style, a), Object.keys(o).forEach(function(l) {
43367
+ !si(r) || !Vi(r) || (Object.assign(r.style, a), Object.keys(o).forEach(function(l) {
43365
43368
  r.removeAttribute(l);
43366
43369
  }));
43367
43370
  });
@@ -43431,7 +43434,7 @@ function ur(t) {
43431
43434
  return Wn(t).getComputedStyle(t);
43432
43435
  }
43433
43436
  function WX(t) {
43434
- return ["table", "td", "th"].indexOf(Hi(t)) >= 0;
43437
+ return ["table", "td", "th"].indexOf(Vi(t)) >= 0;
43435
43438
  }
43436
43439
  function eo(t) {
43437
43440
  return ((Oo(t) ? t.ownerDocument : (
@@ -43440,7 +43443,7 @@ function eo(t) {
43440
43443
  )) || window.document).documentElement;
43441
43444
  }
43442
43445
  function N1(t) {
43443
- return Hi(t) === "html" ? t : (
43446
+ return Vi(t) === "html" ? t : (
43444
43447
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
43445
43448
  // $FlowFixMe[incompatible-return]
43446
43449
  // $FlowFixMe[prop-missing]
@@ -43463,7 +43466,7 @@ function qX(t) {
43463
43466
  return null;
43464
43467
  }
43465
43468
  var r = N1(t);
43466
- for (B2(r) && (r = r.host); si(r) && ["html", "body"].indexOf(Hi(r)) < 0; ) {
43469
+ for (B2(r) && (r = r.host); si(r) && ["html", "body"].indexOf(Vi(r)) < 0; ) {
43467
43470
  var o = ur(r);
43468
43471
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
43469
43472
  return r;
@@ -43474,7 +43477,7 @@ function qX(t) {
43474
43477
  function Vl(t) {
43475
43478
  for (var e = Wn(t), n = b6(t); n && WX(n) && ur(n).position === "static"; )
43476
43479
  n = b6(n);
43477
- return n && (Hi(n) === "html" || Hi(n) === "body" && ur(n).position === "static") ? e : n || qX(t) || e;
43480
+ return n && (Vi(n) === "html" || Vi(n) === "body" && ur(n).position === "static") ? e : n || qX(t) || e;
43478
43481
  }
43479
43482
  function z2(t) {
43480
43483
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -43697,7 +43700,7 @@ function j2(t) {
43697
43700
  return /auto|scroll|overlay|hidden/.test(n + r + i);
43698
43701
  }
43699
43702
  function Tx(t) {
43700
- return ["html", "body", "#document"].indexOf(Hi(t)) >= 0 ? t.ownerDocument.body : si(t) && j2(t) ? t : Tx(N1(t));
43703
+ return ["html", "body", "#document"].indexOf(Vi(t)) >= 0 ? t.ownerDocument.body : si(t) && j2(t) ? t : Tx(N1(t));
43701
43704
  }
43702
43705
  function Oa(t, e) {
43703
43706
  var n;
@@ -43726,7 +43729,7 @@ function C6(t, e, n) {
43726
43729
  function lQ(t) {
43727
43730
  var e = Oa(N1(t)), n = ["absolute", "fixed"].indexOf(ur(t).position) >= 0, i = n && si(t) ? Vl(t) : t;
43728
43731
  return Oo(i) ? e.filter(function(r) {
43729
- return Oo(r) && Ex(r, i) && Hi(r) !== "body";
43732
+ return Oo(r) && Ex(r, i) && Vi(r) !== "body";
43730
43733
  }) : [];
43731
43734
  }
43732
43735
  function cQ(t, e, n, i) {
@@ -44032,7 +44035,7 @@ function EQ(t, e, n) {
44032
44035
  x: 0,
44033
44036
  y: 0
44034
44037
  };
44035
- return (i || !i && !n) && ((Hi(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
44038
+ return (i || !i && !n) && ((Vi(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
44036
44039
  j2(o)) && (a = SQ(e)), si(e) ? (l = Is(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = V2(o))), {
44037
44040
  x: s.left + a.scrollLeft - l.x,
44038
44041
  y: s.top + a.scrollTop - l.y,
@@ -44382,7 +44385,7 @@ process.env.NODE_ENV !== "production" && eee();
44382
44385
  function eee() {
44383
44386
  sl = /* @__PURE__ */ new Set();
44384
44387
  }
44385
- function er(t, e) {
44388
+ function tr(t, e) {
44386
44389
  if (t && !sl.has(e)) {
44387
44390
  var n;
44388
44391
  sl.add(e), (n = console).warn.apply(n, $x(e));
@@ -44514,7 +44517,7 @@ function Vx(t, e) {
44514
44517
  var r = BQ(zn, Object.keys(zx)), o = !PQ(r, i);
44515
44518
  o && (o = e.filter(function(s) {
44516
44519
  return s.name === i;
44517
- }).length === 0), er(o, ["`" + i + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
44520
+ }).length === 0), tr(o, ["`" + i + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
44518
44521
 
44519
44522
  `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
44520
44523
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
@@ -44859,7 +44862,7 @@ function lee(t, e) {
44859
44862
  }
44860
44863
  function W() {
44861
44864
  var q = b.props.appendTo, ye, we = D();
44862
- b.props.interactive && q === Fx || q === "parent" ? ye = we.parentNode : ye = Px(q, [we]), ye.contains(C) || ye.appendChild(C), b.state.isMounted = !0, F(), process.env.NODE_ENV !== "production" && er(b.props.interactive && q === zn.appendTo && we.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
44865
+ b.props.interactive && q === Fx || q === "parent" ? ye = we.parentNode : ye = Px(q, [we]), ye.contains(C) || ye.appendChild(C), b.state.isMounted = !0, F(), process.env.NODE_ENV !== "production" && tr(b.props.interactive && q === zn.appendTo && we.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
44863
44866
 
44864
44867
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
44865
44868
 
@@ -44901,7 +44904,7 @@ function lee(t, e) {
44901
44904
  clearTimeout(i), clearTimeout(r), cancelAnimationFrame(o);
44902
44905
  }
44903
44906
  function Z(q) {
44904
- if (process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("setProps")), !b.state.isDestroyed) {
44907
+ if (process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("setProps")), !b.state.isDestroyed) {
44905
44908
  te("onBeforeUpdate", [b, q]), et();
44906
44909
  var ye = b.props, we = R6(t, Object.assign({}, ye, A6(q), {
44907
44910
  ignoreAttributes: !0
@@ -44919,7 +44922,7 @@ function lee(t, e) {
44919
44922
  });
44920
44923
  }
44921
44924
  function Pe() {
44922
- process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("show"));
44925
+ process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("show"));
44923
44926
  var q = b.state.isVisible, ye = b.state.isDestroyed, we = !b.state.isEnabled, Fe = Ti.isTouch && !b.props.touch, Oe = Gu(b.props.duration, 0, zn.duration);
44924
44927
  if (!(q || ye || we || Fe) && !D().hasAttribute("disabled") && (te("onShow", [b], !1), b.props.onShow(b) !== !1)) {
44925
44928
  if (b.state.isVisible = !0, E() && (C.style.visibility = "visible"), U(), De(), b.state.isMounted || (C.style.transition = "none"), E()) {
@@ -44941,7 +44944,7 @@ function lee(t, e) {
44941
44944
  }
44942
44945
  }
44943
44946
  function Ze() {
44944
- process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("hide"));
44947
+ process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("hide"));
44945
44948
  var q = !b.state.isVisible, ye = b.state.isDestroyed, we = !b.state.isEnabled, Fe = Gu(b.props.duration, 1, zn.duration);
44946
44949
  if (!(q || ye || we) && (te("onHide", [b], !1), b.props.onHide(b) !== !1)) {
44947
44950
  if (b.state.isVisible = !1, b.state.isShown = !1, c = !1, s = !1, E() && (C.style.visibility = "hidden"), xe(), ke(), U(!0), E()) {
@@ -44952,17 +44955,17 @@ function lee(t, e) {
44952
44955
  }
44953
44956
  }
44954
44957
  function Et(q) {
44955
- process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("hideWithInteractivity")), R().addEventListener("mousemove", m), N6(hc, m), m(q);
44958
+ process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("hideWithInteractivity")), R().addEventListener("mousemove", m), N6(hc, m), m(q);
44956
44959
  }
44957
44960
  function Rn() {
44958
- process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && ($(), se().forEach(function(q) {
44961
+ process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && ($(), se().forEach(function(q) {
44959
44962
  q._tippy.unmount();
44960
44963
  }), C.parentNode && C.parentNode.removeChild(C), Ju = Ju.filter(function(q) {
44961
44964
  return q !== b;
44962
44965
  }), b.state.isMounted = !1, te("onHidden", [b]));
44963
44966
  }
44964
44967
  function Zt() {
44965
- process.env.NODE_ENV !== "production" && er(b.state.isDestroyed, Zo("destroy")), !b.state.isDestroyed && (b.clearDelayTimeouts(), b.unmount(), et(), delete t._tippy, b.state.isDestroyed = !0, te("onDestroy", [b]));
44968
+ process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("destroy")), !b.state.isDestroyed && (b.clearDelayTimeouts(), b.unmount(), et(), delete t._tippy, b.state.isDestroyed = !0, te("onDestroy", [b]));
44966
44969
  }
44967
44970
  }
44968
44971
  function na(t, e) {
@@ -44974,7 +44977,7 @@ function na(t, e) {
44974
44977
  }), r = qQ(t);
44975
44978
  if (process.env.NODE_ENV !== "production") {
44976
44979
  var o = ol(i.content), s = r.length > 1;
44977
- er(o && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
44980
+ tr(o && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
44978
44981
 
44979
44982
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
44980
44983
 
@@ -47533,10 +47536,10 @@ wn.prototype = {
47533
47536
  return r.j[t] = s, s;
47534
47537
  }
47535
47538
  };
47536
- const Ve = (t, e, n, i, r) => t.ta(e, n, i, r), Ct = (t, e, n, i, r) => t.tr(e, n, i, r), G6 = (t, e, n, i, r) => t.ts(e, n, i, r), oe = (t, e, n, i, r) => t.tt(e, n, i, r), Yi = "WORD", q0 = "UWORD", tC = "ASCIINUMERICAL", nC = "ALPHANUMERICAL", al = "LOCALHOST", U0 = "TLD", G0 = "UTLD", jc = "SCHEME", ns = "SLASH_SCHEME", t3 = "NUM", K0 = "WS", n3 = "NL", Ra = "OPENBRACE", Fa = "CLOSEBRACE", Ud = "OPENBRACKET", Gd = "CLOSEBRACKET", Kd = "OPENPAREN", Zd = "CLOSEPAREN", Jd = "OPENANGLEBRACKET", Yd = "CLOSEANGLEBRACKET", Xd = "FULLWIDTHLEFTPAREN", Qd = "FULLWIDTHRIGHTPAREN", ef = "LEFTCORNERBRACKET", tf = "RIGHTCORNERBRACKET", nf = "LEFTWHITECORNERBRACKET", rf = "RIGHTWHITECORNERBRACKET", of = "FULLWIDTHLESSTHAN", sf = "FULLWIDTHGREATERTHAN", af = "AMPERSAND", i3 = "APOSTROPHE", lf = "ASTERISK", Cr = "AT", cf = "BACKSLASH", df = "BACKTICK", ff = "CARET", Er = "COLON", r3 = "COMMA", uf = "DOLLAR", Mi = "DOT", hf = "EQUALS", o3 = "EXCLAMATION", Yn = "HYPHEN", Pa = "PERCENT", pf = "PIPE", mf = "PLUS", gf = "POUND", Ba = "QUERY", s3 = "QUOTE", iC = "FULLWIDTHMIDDLEDOT", a3 = "SEMI", Ni = "SLASH", $a = "TILDE", yf = "UNDERSCORE", rC = "EMOJI", vf = "SYM";
47539
+ const Ve = (t, e, n, i, r) => t.ta(e, n, i, r), Ct = (t, e, n, i, r) => t.tr(e, n, i, r), G6 = (t, e, n, i, r) => t.ts(e, n, i, r), oe = (t, e, n, i, r) => t.tt(e, n, i, r), Xi = "WORD", q0 = "UWORD", tC = "ASCIINUMERICAL", nC = "ALPHANUMERICAL", al = "LOCALHOST", U0 = "TLD", G0 = "UTLD", jc = "SCHEME", ns = "SLASH_SCHEME", t3 = "NUM", K0 = "WS", n3 = "NL", Ra = "OPENBRACE", Fa = "CLOSEBRACE", Ud = "OPENBRACKET", Gd = "CLOSEBRACKET", Kd = "OPENPAREN", Zd = "CLOSEPAREN", Jd = "OPENANGLEBRACKET", Yd = "CLOSEANGLEBRACKET", Xd = "FULLWIDTHLEFTPAREN", Qd = "FULLWIDTHRIGHTPAREN", ef = "LEFTCORNERBRACKET", tf = "RIGHTCORNERBRACKET", nf = "LEFTWHITECORNERBRACKET", rf = "RIGHTWHITECORNERBRACKET", of = "FULLWIDTHLESSTHAN", sf = "FULLWIDTHGREATERTHAN", af = "AMPERSAND", i3 = "APOSTROPHE", lf = "ASTERISK", Cr = "AT", cf = "BACKSLASH", df = "BACKTICK", ff = "CARET", Er = "COLON", r3 = "COMMA", uf = "DOLLAR", Mi = "DOT", hf = "EQUALS", o3 = "EXCLAMATION", Yn = "HYPHEN", Pa = "PERCENT", pf = "PIPE", mf = "PLUS", gf = "POUND", Ba = "QUERY", s3 = "QUOTE", iC = "FULLWIDTHMIDDLEDOT", a3 = "SEMI", Ni = "SLASH", $a = "TILDE", yf = "UNDERSCORE", rC = "EMOJI", vf = "SYM";
47537
47540
  var oC = /* @__PURE__ */ Object.freeze({
47538
47541
  __proto__: null,
47539
- WORD: Yi,
47542
+ WORD: Xi,
47540
47543
  UWORD: q0,
47541
47544
  ASCIINUMERICAL: tC,
47542
47545
  ALPHANUMERICAL: nC,
@@ -47592,7 +47595,7 @@ var oC = /* @__PURE__ */ Object.freeze({
47592
47595
  EMOJI: rC,
47593
47596
  SYM: vf
47594
47597
  });
47595
- const Ki = /[a-z]/, pa = new RegExp("\\p{L}", "u"), nh = new RegExp("\\p{Emoji}", "u"), Zi = /\d/, ih = /\s/, K6 = "\r", rh = `
47598
+ const Zi = /[a-z]/, pa = new RegExp("\\p{L}", "u"), nh = new RegExp("\\p{Emoji}", "u"), Ji = /\d/, ih = /\s/, K6 = "\r", rh = `
47596
47599
  `, Dte = "️", Rte = "‍", oh = "";
47597
47600
  let mc = null, gc = null;
47598
47601
  function Fte(t = []) {
@@ -47600,22 +47603,22 @@ function Fte(t = []) {
47600
47603
  wn.groups = e;
47601
47604
  const n = new wn();
47602
47605
  mc == null && (mc = Z6(Mte)), gc == null && (gc = Z6(Nte)), oe(n, "'", i3), oe(n, "{", Ra), oe(n, "}", Fa), oe(n, "[", Ud), oe(n, "]", Gd), oe(n, "(", Kd), oe(n, ")", Zd), oe(n, "<", Jd), oe(n, ">", Yd), oe(n, "(", Xd), oe(n, ")", Qd), oe(n, "「", ef), oe(n, "」", tf), oe(n, "『", nf), oe(n, "』", rf), oe(n, "<", of), oe(n, ">", sf), oe(n, "&", af), oe(n, "*", lf), oe(n, "@", Cr), oe(n, "`", df), oe(n, "^", ff), oe(n, ":", Er), oe(n, ",", r3), oe(n, "$", uf), oe(n, ".", Mi), oe(n, "=", hf), oe(n, "!", o3), oe(n, "-", Yn), oe(n, "%", Pa), oe(n, "|", pf), oe(n, "+", mf), oe(n, "#", gf), oe(n, "?", Ba), oe(n, '"', s3), oe(n, "/", Ni), oe(n, ";", a3), oe(n, "~", $a), oe(n, "_", yf), oe(n, "\\", cf), oe(n, "・", iC);
47603
- const i = Ct(n, Zi, t3, {
47606
+ const i = Ct(n, Ji, t3, {
47604
47607
  [H0]: !0
47605
47608
  });
47606
- Ct(i, Zi, i);
47607
- const r = Ct(i, Ki, tC, {
47609
+ Ct(i, Ji, i);
47610
+ const r = Ct(i, Zi, tC, {
47608
47611
  [Da]: !0
47609
47612
  }), o = Ct(i, pa, nC, {
47610
47613
  [ba]: !0
47611
- }), s = Ct(n, Ki, Yi, {
47614
+ }), s = Ct(n, Zi, Xi, {
47612
47615
  [V0]: !0
47613
47616
  });
47614
- Ct(s, Zi, r), Ct(s, Ki, s), Ct(r, Zi, r), Ct(r, Ki, r);
47617
+ Ct(s, Ji, r), Ct(s, Zi, s), Ct(r, Ji, r), Ct(r, Zi, r);
47615
47618
  const a = Ct(n, pa, q0, {
47616
47619
  [j0]: !0
47617
47620
  });
47618
- Ct(a, Ki), Ct(a, Zi, o), Ct(a, pa, a), Ct(o, Zi, o), Ct(o, Ki), Ct(o, pa, o);
47621
+ Ct(a, Zi), Ct(a, Ji, o), Ct(a, pa, a), Ct(o, Ji, o), Ct(o, Zi), Ct(o, pa, o);
47619
47622
  const l = oe(n, rh, n3, {
47620
47623
  [th]: !0
47621
47624
  }), c = oe(n, K6, K0, {
@@ -47630,9 +47633,9 @@ function Fte(t = []) {
47630
47633
  oe(u, "#"), Ct(u, nh, u), oe(u, Dte, u);
47631
47634
  const h = oe(u, Rte);
47632
47635
  oe(h, "#"), Ct(h, nh, u);
47633
- const p = [[Ki, s], [Zi, r]], m = [[Ki, null], [pa, a], [Zi, o]];
47636
+ const p = [[Zi, s], [Ji, r]], m = [[Zi, null], [pa, a], [Ji, o]];
47634
47637
  for (let g = 0; g < mc.length; g++)
47635
- kr(n, mc[g], U0, Yi, p);
47638
+ kr(n, mc[g], U0, Xi, p);
47636
47639
  for (let g = 0; g < gc.length; g++)
47637
47640
  kr(n, gc[g], G0, q0, m);
47638
47641
  po(U0, {
@@ -47641,7 +47644,7 @@ function Fte(t = []) {
47641
47644
  }, e), po(G0, {
47642
47645
  utld: !0,
47643
47646
  alpha: !0
47644
- }, e), kr(n, "file", jc, Yi, p), kr(n, "mailto", jc, Yi, p), kr(n, "http", ns, Yi, p), kr(n, "https", ns, Yi, p), kr(n, "ftp", ns, Yi, p), kr(n, "ftps", ns, Yi, p), po(jc, {
47647
+ }, e), kr(n, "file", jc, Xi, p), kr(n, "mailto", jc, Xi, p), kr(n, "http", ns, Xi, p), kr(n, "https", ns, Xi, p), kr(n, "ftp", ns, Xi, p), kr(n, "ftps", ns, Xi, p), po(jc, {
47645
47648
  scheme: !0,
47646
47649
  ascii: !0
47647
47650
  }, e), po(ns, {
@@ -47654,7 +47657,7 @@ function Fte(t = []) {
47654
47657
  } : {
47655
47658
  [Tte]: !0
47656
47659
  };
47657
- y.indexOf("-") >= 0 ? w[W0] = !0 : Ki.test(y) ? Zi.test(y) ? w[Da] = !0 : w[V0] = !0 : w[H0] = !0, G6(n, y, y, w);
47660
+ y.indexOf("-") >= 0 ? w[W0] = !0 : Zi.test(y) ? Ji.test(y) ? w[Da] = !0 : w[V0] = !0 : w[H0] = !0, G6(n, y, y, w);
47658
47661
  }
47659
47662
  return G6(n, "localhost", al, {
47660
47663
  ascii: !0
@@ -49852,7 +49855,7 @@ function Yne(t, e, n) {
49852
49855
  return !1;
49853
49856
  return !0;
49854
49857
  }
49855
- var ht = class Xi extends Me {
49858
+ var ht = class Qi extends Me {
49856
49859
  // A table selection is identified by its anchor and head cells. The
49857
49860
  // positions given to this constructor should point _before_ two
49858
49861
  // cells in the same table. They may be the same, to select a single
@@ -49879,7 +49882,7 @@ var ht = class Xi extends Me {
49879
49882
  const i = e.resolve(n.map(this.$anchorCell.pos)), r = e.resolve(n.map(this.$headCell.pos));
49880
49883
  if (Y0(i) && Y0(r) && u3(i, r)) {
49881
49884
  const o = this.$anchorCell.node(-1) != i.node(-1);
49882
- return o && this.isRowSelection() ? Xi.rowSelection(i, r) : o && this.isColSelection() ? Xi.colSelection(i, r) : new Xi(i, r);
49885
+ return o && this.isRowSelection() ? Qi.rowSelection(i, r) : o && this.isColSelection() ? Qi.colSelection(i, r) : new Qi(i, r);
49883
49886
  }
49884
49887
  return Ee.between(i, r);
49885
49888
  }
@@ -49974,7 +49977,7 @@ var ht = class Xi extends Me {
49974
49977
  o + r.map[r.width * (r.height - 1) + a.right - 1]
49975
49978
  ))) : (a.top > 0 && (n = l.resolve(o + r.map[a.left])), s.bottom < r.height && (e = l.resolve(
49976
49979
  o + r.map[r.width * (r.height - 1) + s.right - 1]
49977
- ))), new Xi(e, n);
49980
+ ))), new Qi(e, n);
49978
49981
  }
49979
49982
  // True if this selection goes all the way from the left to the
49980
49983
  // right of the table.
@@ -49985,7 +49988,7 @@ var ht = class Xi extends Me {
49985
49988
  return Math.max(s, a) == n.width;
49986
49989
  }
49987
49990
  eq(e) {
49988
- return e instanceof Xi && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
49991
+ return e instanceof Qi && e.$anchorCell.pos == this.$anchorCell.pos && e.$headCell.pos == this.$headCell.pos;
49989
49992
  }
49990
49993
  // Returns the smallest row selection that covers the given anchor
49991
49994
  // and head cell.
@@ -49997,7 +50000,7 @@ var ht = class Xi extends Me {
49997
50000
  o + r.map[r.width * (a.top + 1) - 1]
49998
50001
  ))) : (a.left > 0 && (n = l.resolve(o + r.map[a.top * r.width])), s.right < r.width && (e = l.resolve(
49999
50002
  o + r.map[r.width * (s.top + 1) - 1]
50000
- ))), new Xi(e, n);
50003
+ ))), new Qi(e, n);
50001
50004
  }
50002
50005
  toJSON() {
50003
50006
  return {
@@ -50007,10 +50010,10 @@ var ht = class Xi extends Me {
50007
50010
  };
50008
50011
  }
50009
50012
  static fromJSON(e, n) {
50010
- return new Xi(e.resolve(n.anchor), e.resolve(n.head));
50013
+ return new Qi(e.resolve(n.anchor), e.resolve(n.head));
50011
50014
  }
50012
50015
  static create(e, n, i = n) {
50013
- return new Xi(e.resolve(n), e.resolve(i));
50016
+ return new Qi(e.resolve(n), e.resolve(i));
50014
50017
  }
50015
50018
  getBookmark() {
50016
50019
  return new Xne(this.$anchorCell.pos, this.$headCell.pos);
@@ -50161,7 +50164,7 @@ function rie(t, e, n, i) {
50161
50164
  }
50162
50165
  return i.setMeta(iie, { fixTables: !0 });
50163
50166
  }
50164
- function Wi(t) {
50167
+ function qi(t) {
50165
50168
  const e = t.selection, n = R1(t), i = n.node(-1), r = n.start(-1), o = St.get(i);
50166
50169
  return { ...e instanceof ht ? o.rectBetween(
50167
50170
  e.$anchorCell.pos - r,
@@ -50190,7 +50193,7 @@ function kC(t, { map: e, tableStart: n, table: i }, r) {
50190
50193
  function oie(t, e) {
50191
50194
  if (!_i(t)) return !1;
50192
50195
  if (e) {
50193
- const n = Wi(t);
50196
+ const n = qi(t);
50194
50197
  e(kC(t.tr, n, n.left));
50195
50198
  }
50196
50199
  return !0;
@@ -50198,7 +50201,7 @@ function oie(t, e) {
50198
50201
  function sie(t, e) {
50199
50202
  if (!_i(t)) return !1;
50200
50203
  if (e) {
50201
- const n = Wi(t);
50204
+ const n = qi(t);
50202
50205
  e(kC(t.tr, n, n.right));
50203
50206
  }
50204
50207
  return !0;
@@ -50223,7 +50226,7 @@ function aie(t, { map: e, table: n, tableStart: i }, r) {
50223
50226
  function lie(t, e) {
50224
50227
  if (!_i(t)) return !1;
50225
50228
  if (e) {
50226
- const n = Wi(t), i = t.tr;
50229
+ const n = qi(t), i = t.tr;
50227
50230
  if (n.left == 0 && n.right == n.map.width) return !1;
50228
50231
  for (let r = n.right - 1; aie(i, n, r), r != n.left; r--) {
50229
50232
  const o = n.tableStart ? i.doc.nodeAt(n.tableStart - 1) : i.doc;
@@ -50266,7 +50269,7 @@ function bC(t, { map: e, tableStart: n, table: i }, r) {
50266
50269
  function die(t, e) {
50267
50270
  if (!_i(t)) return !1;
50268
50271
  if (e) {
50269
- const n = Wi(t);
50272
+ const n = qi(t);
50270
50273
  e(bC(t.tr, n, n.top));
50271
50274
  }
50272
50275
  return !0;
@@ -50274,7 +50277,7 @@ function die(t, e) {
50274
50277
  function fie(t, e) {
50275
50278
  if (!_i(t)) return !1;
50276
50279
  if (e) {
50277
- const n = Wi(t);
50280
+ const n = qi(t);
50278
50281
  e(bC(t.tr, n, n.bottom));
50279
50282
  }
50280
50283
  return !0;
@@ -50307,7 +50310,7 @@ function uie(t, { map: e, table: n, tableStart: i }, r) {
50307
50310
  function hie(t, e) {
50308
50311
  if (!_i(t)) return !1;
50309
50312
  if (e) {
50310
- const n = Wi(t), i = t.tr;
50313
+ const n = qi(t), i = t.tr;
50311
50314
  if (n.top == 0 && n.bottom == n.map.height) return !1;
50312
50315
  for (let r = n.bottom - 1; uie(i, n, r), r != n.top; r--) {
50313
50316
  const o = n.tableStart ? i.doc.nodeAt(n.tableStart - 1) : i.doc;
@@ -50341,7 +50344,7 @@ function a9(t, e) {
50341
50344
  const n = t.selection;
50342
50345
  if (!(n instanceof ht) || n.$anchorCell.pos == n.$headCell.pos)
50343
50346
  return !1;
50344
- const i = Wi(t), { map: r } = i;
50347
+ const i = qi(t), { map: r } = i;
50345
50348
  if (pie(r, i)) return !1;
50346
50349
  if (e) {
50347
50350
  const o = t.tr, s = {};
@@ -50399,7 +50402,7 @@ function mie(t) {
50399
50402
  let a = o.attrs;
50400
50403
  const l = [], c = a.colwidth;
50401
50404
  a.rowspan > 1 && (a = { ...a, rowspan: 1 }), a.colspan > 1 && (a = { ...a, colspan: 1 });
50402
- const f = Wi(e), u = e.tr;
50405
+ const f = qi(e), u = e.tr;
50403
50406
  for (let p = 0; p < f.right - f.left; p++)
50404
50407
  l.push(
50405
50408
  c ? {
@@ -50455,7 +50458,7 @@ function yie(t) {
50455
50458
  return function(e, n) {
50456
50459
  if (!_i(e)) return !1;
50457
50460
  if (n) {
50458
- const i = sn(e.schema), r = Wi(e), o = e.tr, s = r.map.cellsInRect(
50461
+ const i = sn(e.schema), r = qi(e), o = e.tr, s = r.map.cellsInRect(
50459
50462
  t == "column" ? {
50460
50463
  left: r.left,
50461
50464
  top: 0,
@@ -50504,7 +50507,7 @@ function cl(t, e) {
50504
50507
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? yie(t) : function(n, i) {
50505
50508
  if (!_i(n)) return !1;
50506
50509
  if (i) {
50507
- const r = sn(n.schema), o = Wi(n), s = n.tr, a = c9("row", o, r), l = c9(
50510
+ const r = sn(n.schema), o = qi(n), s = n.tr, a = c9("row", o, r), l = c9(
50508
50511
  "column",
50509
50512
  o,
50510
50513
  r
@@ -52071,7 +52074,7 @@ function fre() {
52071
52074
  var _C = fre();
52072
52075
  const ure = ({ item: t, selected: e }) => k("div", {
52073
52076
  className: T("flex items-center gap-2 rounded-md border border-solid p-1.5 hover:bg-f1-background-hover", e ? "border-f1-border-selected-bold" : "border-f1-border-inverse"),
52074
- children: [d(Bi, {
52077
+ children: [d($i, {
52075
52078
  firstName: t.label,
52076
52079
  lastName: "",
52077
52080
  src: t.image_url ?? void 0,
@@ -52406,7 +52409,7 @@ const pre = dre.extend({
52406
52409
  variant: "outline",
52407
52410
  hideLabel: !0,
52408
52411
  label: r ? ((p = a.labels) == null ? void 0 : p.collapse) || "Collapse" : ((m = a.labels) == null ? void 0 : m.expand) || "Expand",
52409
- icon: r ? bl : Vi,
52412
+ icon: r ? bl : ji,
52410
52413
  size: "sm"
52411
52414
  }), d(Nn, {
52412
52415
  items: c,
@@ -52555,7 +52558,7 @@ const pre = dre.extend({
52555
52558
  variant: "outline",
52556
52559
  hideLabel: !0,
52557
52560
  label: r ? ((g = a.labels) == null ? void 0 : g.collapse) || "Collapse" : ((y = a.labels) == null ? void 0 : y.expand) || "Expand",
52558
- icon: r ? bl : Vi,
52561
+ icon: r ? bl : ji,
52559
52562
  size: "sm"
52560
52563
  }), d(Nn, {
52561
52564
  items: c,
@@ -52568,7 +52571,7 @@ const pre = dre.extend({
52568
52571
  const x = f(v.userId);
52569
52572
  return k("div", {
52570
52573
  className: "flex flex-row gap-3",
52571
- children: [(x == null ? void 0 : x.imageUrl) && d(Bi, {
52574
+ children: [(x == null ? void 0 : x.imageUrl) && d($i, {
52572
52575
  size: "xs",
52573
52576
  src: x.imageUrl,
52574
52577
  firstName: x.fullname,
@@ -52972,7 +52975,7 @@ const pre = dre.extend({
52972
52975
  variant: "outline",
52973
52976
  hideLabel: !0,
52974
52977
  label: r ? ((u = a.labels) == null ? void 0 : u.collapse) || "Collapse" : ((h = a.labels) == null ? void 0 : h.expand) || "Expand",
52975
- icon: r ? bl : Vi,
52978
+ icon: r ? bl : ji,
52976
52979
  size: "sm"
52977
52980
  }), d(Nn, {
52978
52981
  items: c,
@@ -53241,7 +53244,7 @@ const pre = dre.extend({
53241
53244
  to: o
53242
53245
  }).setDetails().run();
53243
53246
  },
53244
- icon: Vi
53247
+ icon: ji
53245
53248
  }, {
53246
53249
  title: t.codeBlock,
53247
53250
  command: (i) => {
@@ -53612,7 +53615,7 @@ class TC {
53612
53615
  this._observers = ki();
53613
53616
  }
53614
53617
  }
53615
- const hr = Math.floor, Gc = Math.abs, Ps = (t, e) => t < e ? t : e, Wr = (t, e) => t > e ? t : e, OC = (t) => t !== 0 ? t < 0 : 1 / t < 0, C9 = 1, _9 = 2, fh = 4, uh = 8, dl = 32, lr = 64, un = 128, Bre = 1 << 29, F1 = 31, rp = 63, xo = 127, $re = 2147483647, IC = Number.MAX_SAFE_INTEGER, zre = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr(t) === t), Hre = String.fromCharCode, Vre = (t) => t.toLowerCase(), jre = /^\s*/g, Wre = (t) => t.replace(jre, ""), qre = /([A-Z])/g, S9 = (t, e) => Wre(t.replace(qre, (n) => `${e}${Vre(n)}`)), Ure = (t) => {
53618
+ const hr = Math.floor, Gc = Math.abs, Ps = (t, e) => t < e ? t : e, Wr = (t, e) => t > e ? t : e, OC = (t) => t !== 0 ? t < 0 : 1 / t < 0, C9 = 1, _9 = 2, fh = 4, uh = 8, dl = 32, cr = 64, un = 128, Bre = 1 << 29, F1 = 31, rp = 63, xo = 127, $re = 2147483647, IC = Number.MAX_SAFE_INTEGER, zre = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr(t) === t), Hre = String.fromCharCode, Vre = (t) => t.toLowerCase(), jre = /^\s*/g, Wre = (t) => t.replace(jre, ""), qre = /([A-Z])/g, S9 = (t, e) => Wre(t.replace(qre, (n) => `${e}${Vre(n)}`)), Ure = (t) => {
53616
53619
  const e = unescape(encodeURIComponent(t)), n = e.length, i = new Uint8Array(n);
53617
53620
  for (let r = 0; r < n; r++)
53618
53621
  i[r] = /** @type {number} */
@@ -53657,7 +53660,7 @@ const Wl = () => new jl(), Zre = (t) => {
53657
53660
  Bt(t, xo & e);
53658
53661
  }, v3 = (t, e) => {
53659
53662
  const n = OC(e);
53660
- for (n && (e = -e), Bt(t, (e > rp ? un : 0) | (n ? lr : 0) | rp & e), e = hr(e / 64); e > 0; )
53663
+ for (n && (e = -e), Bt(t, (e > rp ? un : 0) | (n ? cr : 0) | rp & e), e = hr(e / 64); e > 0; )
53661
53664
  Bt(t, (e > xo ? un : 0) | xo & e), e = hr(e / 128);
53662
53665
  }, sp = new Uint8Array(3e4), Xre = sp.length / 3, Qre = (t, e) => {
53663
53666
  if (e.length < Xre) {
@@ -53831,7 +53834,7 @@ const b3 = (t) => new B1(t), soe = (t) => t.pos !== t.arr.length, aoe = (t, e) =
53831
53834
  throw DC;
53832
53835
  }, w3 = (t) => {
53833
53836
  let e = t.arr[t.pos++], n = e & rp, i = 64;
53834
- const r = (e & lr) > 0 ? -1 : 1;
53837
+ const r = (e & cr) > 0 ? -1 : 1;
53835
53838
  if ((e & un) === 0)
53836
53839
  return r * n;
53837
53840
  const o = t.arr.length;
@@ -54067,7 +54070,7 @@ class Boe {
54067
54070
  this.left = e, this.right = n;
54068
54071
  }
54069
54072
  }
54070
- const Ji = (t, e) => new Boe(t, e), $oe = (
54073
+ const Yi = (t, e) => new Boe(t, e), $oe = (
54071
54074
  /** @type {Document} */
54072
54075
  typeof document < "u" ? document : {}
54073
54076
  );
@@ -54104,16 +54107,16 @@ const zoe = (t) => Dre(t, (e, n) => `${n}:${e};`).join(""), Hoe = (t) => class {
54104
54107
  }
54105
54108
  return n;
54106
54109
  }, Zoe = {
54107
- [WC]: Ji("font-weight", "bold"),
54108
- [qC]: Ji("font-weight", "normal"),
54109
- [joe]: Ji("color", "blue"),
54110
- [qoe]: Ji("color", "green"),
54111
- [Woe]: Ji("color", "grey"),
54112
- [UC]: Ji("color", "red"),
54113
- [Uoe]: Ji("color", "purple"),
54114
- [_3]: Ji("color", "orange"),
54110
+ [WC]: Yi("font-weight", "bold"),
54111
+ [qC]: Yi("font-weight", "normal"),
54112
+ [joe]: Yi("color", "blue"),
54113
+ [qoe]: Yi("color", "green"),
54114
+ [Woe]: Yi("color", "grey"),
54115
+ [UC]: Yi("color", "red"),
54116
+ [Uoe]: Yi("color", "purple"),
54117
+ [_3]: Yi("color", "orange"),
54115
54118
  // not well supported in chrome when debugging node with inspector - TODO: deprecate
54116
- [Goe]: Ji("color", "black")
54119
+ [Goe]: Yi("color", "black")
54117
54120
  }, Joe = (t) => {
54118
54121
  var s;
54119
54122
  t.length === 1 && ((s = t[0]) == null ? void 0 : s.constructor) === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
@@ -54885,7 +54888,7 @@ const sse = (t, e, n, i) => {
54885
54888
  break;
54886
54889
  }
54887
54890
  default: {
54888
- const u = (f & (lr | un)) === 0, h = new ut(
54891
+ const u = (f & (cr | un)) === 0, h = new ut(
54889
54892
  qe(a, l),
54890
54893
  null,
54891
54894
  // left
@@ -54893,7 +54896,7 @@ const sse = (t, e, n, i) => {
54893
54896
  // origin
54894
54897
  null,
54895
54898
  // right
54896
- (f & lr) === lr ? t.readRightID() : null,
54899
+ (f & cr) === cr ? t.readRightID() : null,
54897
54900
  // right origin
54898
54901
  u ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null,
54899
54902
  // parent
@@ -55591,7 +55594,7 @@ function* xse(t) {
55591
55594
  const l = mt(t.restDecoder);
55592
55595
  yield new gi(qe(r, o), l), o += l;
55593
55596
  } else if ((F1 & a) !== 0) {
55594
- const l = (a & (lr | un)) === 0, c = new ut(
55597
+ const l = (a & (cr | un)) === 0, c = new ut(
55595
55598
  qe(r, o),
55596
55599
  null,
55597
55600
  // left
@@ -55599,7 +55602,7 @@ function* xse(t) {
55599
55602
  // origin
55600
55603
  null,
55601
55604
  // right
55602
- (a & lr) === lr ? t.readRightID() : null,
55605
+ (a & cr) === cr ? t.readRightID() : null,
55603
55606
  // right origin
55604
55607
  // @ts-ignore Force writing a string here.
55605
55608
  l ? t.readParentInfo() ? t.readString() : t.readLeftID() : null,
@@ -59227,7 +59230,7 @@ let ut = class mp extends O3 {
59227
59230
  */
59228
59231
  write(e, n) {
59229
59232
  const i = n > 0 ? qe(this.id.client, this.id.clock + n - 1) : this.origin, r = this.rightOrigin, o = this.parentSub, s = this.content.getRef() & F1 | (i === null ? 0 : un) | // origin is defined
59230
- (r === null ? 0 : lr) | // right origin is defined
59233
+ (r === null ? 0 : cr) | // right origin is defined
59231
59234
  (o === null ? 0 : dl);
59232
59235
  if (e.writeInfo(s), i !== null && e.writeLeftID(i), r !== null && e.writeRightID(r), i === null && r === null) {
59233
59236
  const a = (
@@ -59340,7 +59343,7 @@ const mae = () => {
59340
59343
  remove: t.length - n - i,
59341
59344
  insert: e.slice(n, e.length - i)
59342
59345
  };
59343
- }, kae = vae, _t = new ot("y-sync"), cr = new ot("y-undo");
59346
+ }, kae = vae, _t = new ot("y-sync"), dr = new ot("y-undo");
59344
59347
  new ot("yjs-cursor");
59345
59348
  const Pi = (t, e) => t >>> e | t << 32 - e, bae = (t) => Pi(t, 2) ^ Pi(t, 13) ^ Pi(t, 22), wae = (t) => Pi(t, 6) ^ Pi(t, 11) ^ Pi(t, 25), xae = (t) => Pi(t, 7) ^ Pi(t, 18) ^ t >>> 3, Cae = (t) => Pi(t, 17) ^ Pi(t, 19) ^ t >>> 10, _ae = new Uint32Array([
59346
59349
  1116352408,
@@ -59548,7 +59551,7 @@ e.sv.get(t.id.client) > t.id.clock && !oa(e.ds, t.id), Aae = [{ light: "#ecd4443
59548
59551
  c.state.doc.type.createAndFill().content
59549
59552
  ) !== null)) {
59550
59553
  if (s = !0, f.addToHistory === !1 && !f.isChangeOrigin) {
59551
- const u = cr.getState(c.state), h = u && u.undoManager;
59554
+ const u = dr.getState(c.state), h = u && u.undoManager;
59552
59555
  h && h.stopCapturing();
59553
59556
  }
59554
59557
  a.mux(() => {
@@ -60266,12 +60269,12 @@ function jae(t) {
60266
60269
  }
60267
60270
  const Wae = (t) => {
60268
60271
  var e, n;
60269
- return ((n = (e = cr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.undo()) != null;
60272
+ return ((n = (e = dr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.undo()) != null;
60270
60273
  }, qae = (t) => {
60271
60274
  var e, n;
60272
- return ((n = (e = cr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.redo()) != null;
60275
+ return ((n = (e = dr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.redo()) != null;
60273
60276
  }, Uae = /* @__PURE__ */ new Set(["paragraph"]), Gae = (t, e) => !(t instanceof ut) || !(t.content instanceof Si) || !(t.content.type instanceof Gr || t.content.type instanceof nn && e.has(t.content.type.nodeName)) || t.content.type._length === 0, Kae = ({ protectedNodes: t = Uae, trackedOrigins: e = [], undoManager: n = null } = {}) => new rt({
60274
- key: cr,
60277
+ key: dr,
60275
60278
  state: {
60276
60279
  init: (i, r) => {
60277
60280
  const o = _t.getState(r), s = n || new s_(o.type, {
@@ -60300,10 +60303,10 @@ const Wae = (t) => {
60300
60303
  }
60301
60304
  },
60302
60305
  view: (i) => {
60303
- const r = _t.getState(i.state), o = cr.getState(i.state).undoManager;
60306
+ const r = _t.getState(i.state), o = dr.getState(i.state).undoManager;
60304
60307
  return o.on("stack-item-added", ({ stackItem: s }) => {
60305
60308
  const a = r.binding;
60306
- a && s.meta.set(a, cr.getState(i.state).prevSel);
60309
+ a && s.meta.set(a, dr.getState(i.state).prevSel);
60307
60310
  }), o.on("stack-item-popped", ({ stackItem: s }) => {
60308
60311
  const a = r.binding;
60309
60312
  a && (a.beforeTransactionSelection = s.meta.get(a) || a.beforeTransactionSelection);
@@ -60334,8 +60337,8 @@ st.create({
60334
60337
  },
60335
60338
  addCommands() {
60336
60339
  return {
60337
- undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), cr.getState(e).undoManager.undoStack.length === 0 ? !1 : n ? Wae(e) : !0),
60338
- redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), cr.getState(e).undoManager.redoStack.length === 0 ? !1 : n ? qae(e) : !0)
60340
+ undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), dr.getState(e).undoManager.undoStack.length === 0 ? !1 : n ? Wae(e) : !0),
60341
+ redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), dr.getState(e).undoManager.redoStack.length === 0 ? !1 : n ? qae(e) : !0)
60339
60342
  };
60340
60343
  },
60341
60344
  addKeyboardShortcuts() {
@@ -60349,7 +60352,7 @@ st.create({
60349
60352
  var t;
60350
60353
  const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = Kae(this.options.yUndoOptions), i = n.spec.view;
60351
60354
  n.spec.view = (s) => {
60352
- const { undoManager: a } = cr.getState(s.state);
60355
+ const { undoManager: a } = dr.getState(s.state);
60353
60356
  a.restore && (a.restore(), a.restore = () => {
60354
60357
  });
60355
60358
  const l = i ? i(s) : void 0;