@factorialco/f0-react 1.239.1 → 1.239.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { aN as l6, aO as c6, aP as Ey, aQ as xl, aR as cS, aS as dS, aT as fS, aU as l1, aV as uS, aW as hS, aX as pS, aY as oe, aZ as d6, a_ as mS, a$ as gS, b0 as yS, b1 as co, b2 as Va, b3 as Zc, b4 as f6, b5 as Yl, b6 as vS, b7 as c1, b8 as bS, b9 as kS, ba as Zl, bb as xS, bc as wS, bd as _S, be as Ly, bf as CS, bg as My, bh as SS, bi as u6, bj as h6, bk as NS, bl as Vo, q as Ft, a as M, bm as Ho, P as Zt, bn as Jt, s as xe, k as ct, y as pe, bo as wl, bp as p6, L as Qi, bq as Ve, $ as m6, w as un, x as $n, br as Xe, bs as Fm, c as Pm, bt as Bm, bu as _l, bv as Wo, bw as Xc, aJ as zs, bx as zh, by as Kr, bz as Qc, bA as ed, bB as ES, n as qo, bC as Br, bD as g6, bE as ne, bF as Fi, bG as xt, bH as y6, bI as v6, t as Af, f as LS, bJ as MS, bK as TS, bL as AS, g as Ty, bM as Ay, bN as OS, bO as IS, bP as ci, ac as td, az as Oy, bQ as $s, bR as zm, bS as pn, bT as Iy, bU as $h, bV as Xt, bW as or, bX as b6, bY as jh, bZ as DS, b_ as RS, b$ as zt, c0 as FS, c1 as PS, c2 as BS, c3 as zS, c4 as $S, c5 as jS, c6 as VS, S as ri, c7 as Of, c8 as k6, ad as x6, c9 as HS, at as WS, av as w6, aq as _6, ca as C6, aw as If, cb as $m, a0 as Cl, r as ar, cc as qS, a9 as Pi, cd as bn, ce as Df, cf as Ha, cg as US, ch as S6, ci as KS, i as Rf, j as Ff, l as Pf, cj as jm, ck as GS, C as Vn, cl as N6, cm as JS, cn as E6, co as YS, G as ZS, cp as L6, cq as Vh, cr as M6, a6 as nd, cs as XS, ct as QS, cu as eN, cv as tN, cw as nN, aK as Bf, a3 as Hh, F as Vm, aM as iN, cx as ti, aL as rN, cy as T6, cz as mn, cA as sN, cB as oN, cC as Tn, cD as id, cE as A6, ah as zf, a7 as Hm, am as Ss, cF as $f, cG as Wm, cH as O6, cI as aN, aa as lN, a2 as I6, cJ as qm, cK as cN, cL as dN, cM as fN, D as D6, u as R6, cN as F6, cO as ss, cP as uN, cQ as Dy, cR as hN, cS as pN, cT as mN, cU as jf, K as gN, m as yN, cV as Wh, cW as P6, cX as B6, cY as z6, cZ as $6, c_ as vN, c$ as bN, d0 as kN, d1 as xN, d2 as wN, d3 as _N, d4 as CN, d5 as SN, p as NN, ao as EN, d6 as j6, d7 as Vf, v as qh, d8 as Ry, Z as V6, d9 as Sl, da as H6, db as W6, dc as LN, a1 as Uo, a4 as q6, I as MN, dd as TN, ar as AN, ay as Hf, z as Wf, de as qf, df as Uf, E as Kf, ax as U6, ab as Um, dg as ON, aD as IN, dh as Uh, di as DN, dj as rd, dk as RN, as as sd, aE as FN, dl as PN, aC as K6, dm as BN, aB as zN, aA as $N, dn as jN, dp as Ct, dq as Fy, dr as VN, ds as HN, dt as WN, du as d1, dv as qN, dw as UN, dx as KN, dy as GN, dz as JN, dA as YN, a5 as ZN, dB as Nl, dC as Km, dD as Gm, dE as El, dF as G6, dG as XN, dH as J6, dI as QN, aF as Y6, dJ as Z6, ae as X6, dK as eE, dL as tE, dM as nE, H as iE, A as rE, B as sE, d as oE, e as aE, V as lE, b as cE, dN as Py, dO as dE, dP as fE, dQ as uE, dR as Q6, dS as hE } from "./hooks-AoOsS_Tr.js";
2
- import { J as Kae, dV as Gae, dU as Jae, a8 as Yae, dT as Zae } from "./hooks-AoOsS_Tr.js";
1
+ import { aN as l6, aO as c6, aP as Ey, aQ as xl, aR as cS, aS as dS, aT as fS, aU as l1, aV as uS, aW as hS, aX as pS, aY as oe, aZ as d6, a_ as mS, a$ as gS, b0 as yS, b1 as co, b2 as Va, b3 as Zc, b4 as f6, b5 as Yl, b6 as vS, b7 as c1, b8 as bS, b9 as kS, ba as Zl, bb as xS, bc as wS, bd as _S, be as Ly, bf as CS, bg as My, bh as SS, bi as u6, bj as h6, bk as NS, bl as Vo, q as Ft, a as M, bm as Ho, P as Zt, bn as Jt, s as xe, k as dt, y as pe, bo as wl, bp as p6, L as Qi, bq as Ve, $ as m6, w as un, x as $n, br as Xe, bs as Fm, c as Pm, bt as Bm, bu as _l, bv as Wo, bw as Xc, aJ as zs, bx as zh, by as Kr, bz as Qc, bA as ed, bB as ES, n as qo, bC as Br, bD as g6, bE as ne, bF as Fi, bG as kt, bH as y6, bI as v6, t as Af, f as LS, bJ as MS, bK as TS, bL as AS, g as Ty, bM as Ay, bN as OS, bO as IS, bP as ci, ac as td, az as Oy, bQ as $s, bR as zm, bS as pn, bT as Iy, bU as $h, bV as Xt, bW as or, bX as b6, bY as jh, bZ as DS, b_ as RS, b$ as zt, c0 as FS, c1 as PS, c2 as BS, c3 as zS, c4 as $S, c5 as jS, c6 as VS, S as ri, c7 as Of, c8 as k6, ad as x6, c9 as HS, at as WS, av as w6, aq as _6, ca as C6, aw as If, cb as $m, a0 as Cl, r as ar, cc as qS, a9 as Pi, cd as bn, ce as Df, cf as Ha, cg as US, ch as S6, ci as KS, i as Rf, j as Ff, l as Pf, cj as jm, ck as GS, C as Vn, cl as N6, cm as JS, cn as E6, co as YS, G as ZS, cp as L6, cq as Vh, cr as M6, a6 as nd, cs as XS, ct as QS, cu as eN, cv as tN, cw as nN, aK as Bf, a3 as Hh, F as Vm, aM as iN, cx as ti, aL as rN, cy as T6, cz as mn, cA as sN, cB as oN, cC as Tn, cD as id, cE as A6, ah as zf, a7 as Hm, am as Ss, cF as $f, cG as Wm, cH as O6, cI as aN, aa as lN, a2 as I6, cJ as qm, cK as cN, cL as dN, cM as fN, D as D6, u as R6, cN as F6, cO as ss, cP as uN, cQ as Dy, cR as hN, cS as pN, cT as mN, cU as jf, K as gN, m as yN, cV as Wh, cW as P6, cX as B6, cY as z6, cZ as $6, c_ as vN, c$ as bN, d0 as kN, d1 as xN, d2 as wN, d3 as _N, d4 as CN, d5 as SN, p as NN, ao as EN, d6 as j6, d7 as Vf, v as qh, d8 as Ry, Z as V6, d9 as Sl, da as H6, db as W6, dc as LN, a1 as Uo, a4 as q6, I as MN, dd as TN, ar as AN, ay as Hf, z as Wf, de as qf, df as Uf, E as Kf, ax as U6, ab as Um, dg as ON, aD as IN, dh as Uh, di as DN, dj as rd, dk as RN, as as sd, aE as FN, dl as PN, aC as K6, dm as BN, aB as zN, aA as $N, dn as jN, dp as Ct, dq as Fy, dr as VN, ds as HN, dt as WN, du as d1, dv as qN, dw as UN, dx as KN, dy as GN, dz as JN, dA as YN, a5 as ZN, dB as Nl, dC as Km, dD as Gm, dE as El, dF as G6, dG as XN, dH as J6, dI as QN, aF as Y6, dJ as Z6, ae as X6, dK as eE, dL as tE, dM as nE, H as iE, A as rE, B as sE, d as oE, e as aE, V as lE, b as cE, dN as Py, dO as dE, dP as fE, dQ as uE, dR as Q6, dS as hE } from "./hooks-FlkC6pns.js";
2
+ import { J as Kae, dV as Gae, dU as Jae, a8 as Yae, dT as Zae } from "./hooks-FlkC6pns.js";
3
3
  import { jsxs as b, jsx as f, Fragment as Me } from "react/jsx-runtime";
4
4
  import * as z from "react";
5
5
  import ee, { forwardRef as U, createContext as Hn, useRef as me, useState as V, useCallback as Pe, useContext as an, useMemo as ce, useEffect as ie, PureComponent as pE, useId as fr, useLayoutEffect as Gf, memo as Ll, Fragment as zr, useTransition as mE, isValidElement as eb, cloneElement as Jm, useDebugValue as tb, createRef as gE, createElement as yE, version as By, useImperativeHandle as Jf, Children as nb } from "react";
@@ -2298,7 +2298,7 @@ const tu = U(({ onSelectedChange: t = () => {
2298
2298
  onPressedChange: t,
2299
2299
  disabled: i,
2300
2300
  "aria-label": n,
2301
- className: M("aspect-square px-0", ct(), e0({
2301
+ className: M("aspect-square px-0", dt(), e0({
2302
2302
  size: s
2303
2303
  }), Qm({
2304
2304
  variant: e ? "selected" : "ghost"
@@ -4182,7 +4182,7 @@ On.prototype.property = "";
4182
4182
  On.prototype.spaceSeparated = !1;
4183
4183
  On.prototype.space = void 0;
4184
4184
  let gA = 0;
4185
- const He = js(), Ot = js(), Zh = js(), ue = js(), pt = js(), fo = js(), Rn = js();
4185
+ const He = js(), Ot = js(), Zh = js(), ue = js(), mt = js(), fo = js(), Rn = js();
4186
4186
  function js() {
4187
4187
  return 2 ** ++gA;
4188
4188
  }
@@ -4194,7 +4194,7 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4194
4194
  commaSeparated: fo,
4195
4195
  number: ue,
4196
4196
  overloadedBoolean: Zh,
4197
- spaceSeparated: pt
4197
+ spaceSeparated: mt
4198
4198
  }, Symbol.toStringTag, { value: "Module" })), h1 = (
4199
4199
  /** @type {ReadonlyArray<keyof typeof types>} */
4200
4200
  Object.keys(Xh)
@@ -4249,36 +4249,36 @@ const Vb = Go({
4249
4249
  ariaColCount: ue,
4250
4250
  ariaColIndex: ue,
4251
4251
  ariaColSpan: ue,
4252
- ariaControls: pt,
4252
+ ariaControls: mt,
4253
4253
  ariaCurrent: null,
4254
- ariaDescribedBy: pt,
4254
+ ariaDescribedBy: mt,
4255
4255
  ariaDetails: null,
4256
4256
  ariaDisabled: Ot,
4257
- ariaDropEffect: pt,
4257
+ ariaDropEffect: mt,
4258
4258
  ariaErrorMessage: null,
4259
4259
  ariaExpanded: Ot,
4260
- ariaFlowTo: pt,
4260
+ ariaFlowTo: mt,
4261
4261
  ariaGrabbed: Ot,
4262
4262
  ariaHasPopup: null,
4263
4263
  ariaHidden: Ot,
4264
4264
  ariaInvalid: null,
4265
4265
  ariaKeyShortcuts: null,
4266
4266
  ariaLabel: null,
4267
- ariaLabelledBy: pt,
4267
+ ariaLabelledBy: mt,
4268
4268
  ariaLevel: ue,
4269
4269
  ariaLive: null,
4270
4270
  ariaModal: Ot,
4271
4271
  ariaMultiLine: Ot,
4272
4272
  ariaMultiSelectable: Ot,
4273
4273
  ariaOrientation: null,
4274
- ariaOwns: pt,
4274
+ ariaOwns: mt,
4275
4275
  ariaPlaceholder: null,
4276
4276
  ariaPosInSet: ue,
4277
4277
  ariaPressed: Ot,
4278
4278
  ariaReadOnly: Ot,
4279
4279
  ariaRelevant: null,
4280
4280
  ariaRequired: Ot,
4281
- ariaRoleDescription: pt,
4281
+ ariaRoleDescription: mt,
4282
4282
  ariaRowCount: ue,
4283
4283
  ariaRowIndex: ue,
4284
4284
  ariaRowSpan: ue,
@@ -4313,8 +4313,8 @@ const yA = Go({
4313
4313
  // Standard Properties.
4314
4314
  abbr: null,
4315
4315
  accept: fo,
4316
- acceptCharset: pt,
4317
- accessKey: pt,
4316
+ acceptCharset: mt,
4317
+ accessKey: mt,
4318
4318
  action: null,
4319
4319
  allow: null,
4320
4320
  allowFullScreen: He,
@@ -4324,21 +4324,21 @@ const yA = Go({
4324
4324
  as: null,
4325
4325
  async: He,
4326
4326
  autoCapitalize: null,
4327
- autoComplete: pt,
4327
+ autoComplete: mt,
4328
4328
  autoFocus: He,
4329
4329
  autoPlay: He,
4330
- blocking: pt,
4330
+ blocking: mt,
4331
4331
  capture: null,
4332
4332
  charSet: null,
4333
4333
  checked: He,
4334
4334
  cite: null,
4335
- className: pt,
4335
+ className: mt,
4336
4336
  cols: ue,
4337
4337
  colSpan: null,
4338
4338
  content: null,
4339
4339
  contentEditable: Ot,
4340
4340
  controls: He,
4341
- controlsList: pt,
4341
+ controlsList: mt,
4342
4342
  coords: ue | fo,
4343
4343
  crossOrigin: null,
4344
4344
  data: null,
@@ -4360,14 +4360,14 @@ const yA = Go({
4360
4360
  formMethod: null,
4361
4361
  formNoValidate: He,
4362
4362
  formTarget: null,
4363
- headers: pt,
4363
+ headers: mt,
4364
4364
  height: ue,
4365
4365
  hidden: Zh,
4366
4366
  high: ue,
4367
4367
  href: null,
4368
4368
  hrefLang: null,
4369
- htmlFor: pt,
4370
- httpEquiv: pt,
4369
+ htmlFor: mt,
4370
+ httpEquiv: mt,
4371
4371
  id: null,
4372
4372
  imageSizes: null,
4373
4373
  imageSrcSet: null,
@@ -4377,10 +4377,10 @@ const yA = Go({
4377
4377
  is: null,
4378
4378
  isMap: He,
4379
4379
  itemId: null,
4380
- itemProp: pt,
4381
- itemRef: pt,
4380
+ itemProp: mt,
4381
+ itemRef: mt,
4382
4382
  itemScope: He,
4383
- itemType: pt,
4383
+ itemType: mt,
4384
4384
  kind: null,
4385
4385
  label: null,
4386
4386
  lang: null,
@@ -4493,7 +4493,7 @@ const yA = Go({
4493
4493
  open: He,
4494
4494
  optimum: ue,
4495
4495
  pattern: null,
4496
- ping: pt,
4496
+ ping: mt,
4497
4497
  placeholder: null,
4498
4498
  playsInline: He,
4499
4499
  popover: null,
@@ -4503,12 +4503,12 @@ const yA = Go({
4503
4503
  preload: null,
4504
4504
  readOnly: He,
4505
4505
  referrerPolicy: null,
4506
- rel: pt,
4506
+ rel: mt,
4507
4507
  required: He,
4508
4508
  reversed: He,
4509
4509
  rows: ue,
4510
4510
  rowSpan: ue,
4511
- sandbox: pt,
4511
+ sandbox: mt,
4512
4512
  scope: null,
4513
4513
  scoped: He,
4514
4514
  seamless: He,
@@ -4546,7 +4546,7 @@ const yA = Go({
4546
4546
  // Several. Use CSS `text-align` instead,
4547
4547
  aLink: null,
4548
4548
  // `<body>`. Use CSS `a:active {color}` instead
4549
- archive: pt,
4549
+ archive: mt,
4550
4550
  // `<object>`. List of URIs to archives
4551
4551
  axis: null,
4552
4552
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -4861,7 +4861,7 @@ const yA = Go({
4861
4861
  by: null,
4862
4862
  calcMode: null,
4863
4863
  capHeight: ue,
4864
- className: pt,
4864
+ className: mt,
4865
4865
  clip: null,
4866
4866
  clipPath: null,
4867
4867
  clipPathUnits: null,
@@ -5096,7 +5096,7 @@ const yA = Go({
5096
5096
  patternTransform: null,
5097
5097
  patternUnits: null,
5098
5098
  phase: null,
5099
- ping: pt,
5099
+ ping: mt,
5100
5100
  pitch: null,
5101
5101
  playbackOrder: null,
5102
5102
  pointerEvents: null,
@@ -6092,10 +6092,10 @@ const ep = Jr(/\d/), IO = Jr(/[\dA-Fa-f]/), DO = Jr(/[!-/:-@[-`{-~]/);
6092
6092
  function De(t) {
6093
6093
  return t !== null && t < -2;
6094
6094
  }
6095
- function dt(t) {
6095
+ function ft(t) {
6096
6096
  return t !== null && (t < 0 || t === 32);
6097
6097
  }
6098
- function Ye(t) {
6098
+ function Ze(t) {
6099
6099
  return t === -2 || t === -1 || t === 32;
6100
6100
  }
6101
6101
  const iu = Jr(new RegExp("\\p{P}|\\p{S}", "u")), Ns = Jr(/\s/);
@@ -6779,7 +6779,7 @@ function Ka(t) {
6779
6779
  return "&#x" + t.toString(16).toUpperCase() + ";";
6780
6780
  }
6781
6781
  function wo(t) {
6782
- if (t === null || dt(t) || Ns(t))
6782
+ if (t === null || ft(t) || Ns(t))
6783
6783
  return 1;
6784
6784
  if (iu(t))
6785
6785
  return 2;
@@ -7646,7 +7646,7 @@ function TD(t, e, n) {
7646
7646
  return u === 47 ? (t.consume(u), s ? c : (s = !0, l)) : n(u);
7647
7647
  }
7648
7648
  function c(u) {
7649
- return u === null || cd(u) || dt(u) || Ns(u) || iu(u) ? n(u) : t.attempt(x9, t.attempt(w9, d), n)(u);
7649
+ return u === null || cd(u) || ft(u) || Ns(u) || iu(u) ? n(u) : t.attempt(x9, t.attempt(w9, d), n)(u);
7650
7650
  }
7651
7651
  function d(u) {
7652
7652
  return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), e(u);
@@ -7666,7 +7666,7 @@ function OD(t, e, n) {
7666
7666
  let i, r, s;
7667
7667
  return o;
7668
7668
  function o(c) {
7669
- return c === 46 || c === 95 ? t.check(_9, l, a)(c) : c === null || dt(c) || Ns(c) || c !== 45 && iu(c) ? l(c) : (s = !0, t.consume(c), o);
7669
+ return c === 46 || c === 95 ? t.check(_9, l, a)(c) : c === null || ft(c) || Ns(c) || c !== 45 && iu(c) ? l(c) : (s = !0, t.consume(c), o);
7670
7670
  }
7671
7671
  function a(c) {
7672
7672
  return c === 95 ? i = !0 : (r = i, i = void 0), t.consume(c), o;
@@ -7679,7 +7679,7 @@ function ID(t, e) {
7679
7679
  let n = 0, i = 0;
7680
7680
  return r;
7681
7681
  function r(o) {
7682
- return o === 40 ? (n++, t.consume(o), r) : o === 41 && i < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? t.check(_9, e, s)(o) : o === null || dt(o) || Ns(o) ? e(o) : (t.consume(o), r);
7682
+ return o === 40 ? (n++, t.consume(o), r) : o === 41 && i < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? t.check(_9, e, s)(o) : o === null || ft(o) || Ns(o) ? e(o) : (t.consume(o), r);
7683
7683
  }
7684
7684
  function s(o) {
7685
7685
  return o === 41 && i++, t.consume(o), r;
@@ -7691,11 +7691,11 @@ function DD(t, e, n) {
7691
7691
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (t.consume(a), i) : a === 38 ? (t.consume(a), s) : a === 93 ? (t.consume(a), r) : (
7692
7692
  // `<` is an end.
7693
7693
  a === 60 || // So is whitespace.
7694
- a === null || dt(a) || Ns(a) ? e(a) : n(a)
7694
+ a === null || ft(a) || Ns(a) ? e(a) : n(a)
7695
7695
  );
7696
7696
  }
7697
7697
  function r(a) {
7698
- return a === null || a === 40 || a === 91 || dt(a) || Ns(a) ? e(a) : i(a);
7698
+ return a === null || a === 40 || a === 91 || ft(a) || Ns(a) ? e(a) : i(a);
7699
7699
  }
7700
7700
  function s(a) {
7701
7701
  return fn(a) ? o(a) : n(a);
@@ -7714,7 +7714,7 @@ function RD(t, e, n) {
7714
7714
  }
7715
7715
  }
7716
7716
  function N9(t) {
7717
- return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || dt(t);
7717
+ return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || ft(t);
7718
7718
  }
7719
7719
  function E9(t) {
7720
7720
  return !fn(t);
@@ -7889,10 +7889,10 @@ function Qe(t, e, n, i) {
7889
7889
  let s = 0;
7890
7890
  return o;
7891
7891
  function o(l) {
7892
- return Ye(l) ? (t.enter(n), a(l)) : e(l);
7892
+ return Ze(l) ? (t.enter(n), a(l)) : e(l);
7893
7893
  }
7894
7894
  function a(l) {
7895
- return Ye(l) && s++ < r ? (t.consume(l), a) : (t.exit(n), e(l));
7895
+ return Ze(l) && s++ < r ? (t.consume(l), a) : (t.exit(n), e(l));
7896
7896
  }
7897
7897
  }
7898
7898
  const Ol = {
@@ -7902,7 +7902,7 @@ const Ol = {
7902
7902
  function $D(t, e, n) {
7903
7903
  return i;
7904
7904
  function i(s) {
7905
- return Ye(s) ? Qe(t, r, "linePrefix")(s) : r(s);
7905
+ return Ze(s) ? Qe(t, r, "linePrefix")(s) : r(s);
7906
7906
  }
7907
7907
  function r(s) {
7908
7908
  return s === null || De(s) ? e(s) : n(s);
@@ -7929,14 +7929,14 @@ function jD(t, e, n) {
7929
7929
  return n(o);
7930
7930
  }
7931
7931
  function s(o) {
7932
- return Ye(o) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(o), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(o));
7932
+ return Ze(o) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(o), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(o));
7933
7933
  }
7934
7934
  }
7935
7935
  function VD(t, e, n) {
7936
7936
  const i = this;
7937
7937
  return r;
7938
7938
  function r(o) {
7939
- return Ye(o) ? Qe(t, s, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : s(o);
7939
+ return Ze(o) ? Qe(t, s, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : s(o);
7940
7940
  }
7941
7941
  function s(o) {
7942
7942
  return t.attempt(M9, e, n)(o);
@@ -8006,7 +8006,7 @@ function UD(t, e, n) {
8006
8006
  return s = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, a = _, t.enter("codeFenced"), t.enter("codeFencedFence"), t.enter("codeFencedFenceSequence"), d(_);
8007
8007
  }
8008
8008
  function d(_) {
8009
- return _ === a ? (o++, t.consume(_), d) : o < 3 ? n(_) : (t.exit("codeFencedFenceSequence"), Ye(_) ? Qe(t, u, "whitespace")(_) : u(_));
8009
+ return _ === a ? (o++, t.consume(_), d) : o < 3 ? n(_) : (t.exit("codeFencedFenceSequence"), Ze(_) ? Qe(t, u, "whitespace")(_) : u(_));
8010
8010
  }
8011
8011
  function u(_) {
8012
8012
  return _ === null || De(_) ? (t.exit("codeFencedFence"), i.interrupt ? e(_) : t.check(w2, g, x)(_)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
@@ -8014,7 +8014,7 @@ function UD(t, e, n) {
8014
8014
  }), h(_));
8015
8015
  }
8016
8016
  function h(_) {
8017
- return _ === null || De(_) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), u(_)) : Ye(_) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), Qe(t, p, "whitespace")(_)) : _ === 96 && _ === a ? n(_) : (t.consume(_), h);
8017
+ return _ === null || De(_) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), u(_)) : Ze(_) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), Qe(t, p, "whitespace")(_)) : _ === 96 && _ === a ? n(_) : (t.consume(_), h);
8018
8018
  }
8019
8019
  function p(_) {
8020
8020
  return _ === null || De(_) ? u(_) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
@@ -8031,7 +8031,7 @@ function UD(t, e, n) {
8031
8031
  return t.enter("lineEnding"), t.consume(_), t.exit("lineEnding"), v;
8032
8032
  }
8033
8033
  function v(_) {
8034
- return s > 0 && Ye(_) ? Qe(t, w, "linePrefix", s + 1)(_) : w(_);
8034
+ return s > 0 && Ze(_) ? Qe(t, w, "linePrefix", s + 1)(_) : w(_);
8035
8035
  }
8036
8036
  function w(_) {
8037
8037
  return _ === null || De(_) ? t.check(w2, g, x)(_) : (t.enter("codeFlowValue"), k(_));
@@ -8049,13 +8049,13 @@ function UD(t, e, n) {
8049
8049
  return _.enter("lineEnding"), _.consume(F), _.exit("lineEnding"), R;
8050
8050
  }
8051
8051
  function R(F) {
8052
- return _.enter("codeFencedFence"), Ye(F) ? Qe(_, N, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : N(F);
8052
+ return _.enter("codeFencedFence"), Ze(F) ? Qe(_, N, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : N(F);
8053
8053
  }
8054
8054
  function N(F) {
8055
8055
  return F === a ? (_.enter("codeFencedFenceSequence"), A(F)) : E(F);
8056
8056
  }
8057
8057
  function A(F) {
8058
- return F === a ? (L++, _.consume(F), A) : L >= o ? (_.exit("codeFencedFenceSequence"), Ye(F) ? Qe(_, D, "whitespace")(F) : D(F)) : E(F);
8058
+ return F === a ? (L++, _.consume(F), A) : L >= o ? (_.exit("codeFencedFenceSequence"), Ze(F) ? Qe(_, D, "whitespace")(F) : D(F)) : E(F);
8059
8059
  }
8060
8060
  function D(F) {
8061
8061
  return F === null || De(F) ? (_.exit("codeFencedFence"), T(F)) : E(F);
@@ -8437,7 +8437,7 @@ function I9(t, e, n, i, r, s, o, a, l) {
8437
8437
  return v === 60 || v === 62 || v === 92 ? (t.consume(v), p) : p(v);
8438
8438
  }
8439
8439
  function g(v) {
8440
- return !d && (v === null || v === 41 || dt(v)) ? (t.exit("chunkString"), t.exit(a), t.exit(o), t.exit(i), e(v)) : d < c && v === 40 ? (t.consume(v), d++, g) : v === 41 ? (t.consume(v), d--, g) : v === null || v === 32 || v === 40 || cd(v) ? n(v) : (t.consume(v), v === 92 ? y : g);
8440
+ return !d && (v === null || v === 41 || ft(v)) ? (t.exit("chunkString"), t.exit(a), t.exit(o), t.exit(i), e(v)) : d < c && v === 40 ? (t.consume(v), d++, g) : v === 41 ? (t.consume(v), d--, g) : v === null || v === 32 || v === 40 || cd(v) ? n(v) : (t.consume(v), v === 92 ? y : g);
8441
8441
  }
8442
8442
  function y(v) {
8443
8443
  return v === 40 || v === 41 || v === 92 ? (t.consume(v), g) : g(v);
@@ -8461,7 +8461,7 @@ function D9(t, e, n, i, r, s) {
8461
8461
  }), u(p));
8462
8462
  }
8463
8463
  function u(p) {
8464
- return p === null || p === 91 || p === 93 || De(p) || a++ > 999 ? (t.exit("chunkString"), d(p)) : (t.consume(p), l || (l = !Ye(p)), p === 92 ? h : u);
8464
+ return p === null || p === 91 || p === 93 || De(p) || a++ > 999 ? (t.exit("chunkString"), d(p)) : (t.consume(p), l || (l = !Ze(p)), p === 92 ? h : u);
8465
8465
  }
8466
8466
  function h(p) {
8467
8467
  return p === 91 || p === 92 || p === 93 ? (t.consume(p), a++, u) : u(p);
@@ -8492,7 +8492,7 @@ function wa(t, e) {
8492
8492
  let n;
8493
8493
  return i;
8494
8494
  function i(r) {
8495
- return De(r) ? (t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), n = !0, i) : Ye(r) ? Qe(t, i, n ? "linePrefix" : "lineSuffix")(r) : e(r);
8495
+ return De(r) ? (t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), n = !0, i) : Ze(r) ? Qe(t, i, n ? "linePrefix" : "lineSuffix")(r) : e(r);
8496
8496
  }
8497
8497
  }
8498
8498
  const lR = {
@@ -8525,7 +8525,7 @@ function dR(t, e, n) {
8525
8525
  return r = yi(i.sliceSerialize(i.events[i.events.length - 1][1]).slice(1, -1)), p === 58 ? (t.enter("definitionMarker"), t.consume(p), t.exit("definitionMarker"), l) : n(p);
8526
8526
  }
8527
8527
  function l(p) {
8528
- return dt(p) ? wa(t, c)(p) : c(p);
8528
+ return ft(p) ? wa(t, c)(p) : c(p);
8529
8529
  }
8530
8530
  function c(p) {
8531
8531
  return I9(
@@ -8544,7 +8544,7 @@ function dR(t, e, n) {
8544
8544
  return t.attempt(cR, u, u)(p);
8545
8545
  }
8546
8546
  function u(p) {
8547
- return Ye(p) ? Qe(t, h, "whitespace")(p) : h(p);
8547
+ return Ze(p) ? Qe(t, h, "whitespace")(p) : h(p);
8548
8548
  }
8549
8549
  function h(p) {
8550
8550
  return p === null || De(p) ? (t.exit("definition"), i.parser.defined.push(r), e(p)) : n(p);
@@ -8553,13 +8553,13 @@ function dR(t, e, n) {
8553
8553
  function fR(t, e, n) {
8554
8554
  return i;
8555
8555
  function i(a) {
8556
- return dt(a) ? wa(t, r)(a) : n(a);
8556
+ return ft(a) ? wa(t, r)(a) : n(a);
8557
8557
  }
8558
8558
  function r(a) {
8559
8559
  return R9(t, s, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
8560
8560
  }
8561
8561
  function s(a) {
8562
- return Ye(a) ? Qe(t, o, "whitespace")(a) : o(a);
8562
+ return Ze(a) ? Qe(t, o, "whitespace")(a) : o(a);
8563
8563
  }
8564
8564
  function o(a) {
8565
8565
  return a === null || De(a) ? e(a) : n(a);
@@ -8606,16 +8606,16 @@ function gR(t, e, n) {
8606
8606
  return t.enter("atxHeadingSequence"), o(d);
8607
8607
  }
8608
8608
  function o(d) {
8609
- return d === 35 && i++ < 6 ? (t.consume(d), o) : d === null || dt(d) ? (t.exit("atxHeadingSequence"), a(d)) : n(d);
8609
+ return d === 35 && i++ < 6 ? (t.consume(d), o) : d === null || ft(d) ? (t.exit("atxHeadingSequence"), a(d)) : n(d);
8610
8610
  }
8611
8611
  function a(d) {
8612
- return d === 35 ? (t.enter("atxHeadingSequence"), l(d)) : d === null || De(d) ? (t.exit("atxHeading"), e(d)) : Ye(d) ? Qe(t, a, "whitespace")(d) : (t.enter("atxHeadingText"), c(d));
8612
+ return d === 35 ? (t.enter("atxHeadingSequence"), l(d)) : d === null || De(d) ? (t.exit("atxHeading"), e(d)) : Ze(d) ? Qe(t, a, "whitespace")(d) : (t.enter("atxHeadingText"), c(d));
8613
8613
  }
8614
8614
  function l(d) {
8615
8615
  return d === 35 ? (t.consume(d), l) : (t.exit("atxHeadingSequence"), a(d));
8616
8616
  }
8617
8617
  function c(d) {
8618
- return d === null || d === 35 || dt(d) ? (t.exit("atxHeadingText"), a(d)) : (t.consume(d), c);
8618
+ return d === null || d === 35 || ft(d) ? (t.exit("atxHeadingText"), a(d)) : (t.consume(d), c);
8619
8619
  }
8620
8620
  }
8621
8621
  const yR = [
@@ -8726,7 +8726,7 @@ function wR(t, e, n) {
8726
8726
  return fn(I) ? (t.consume(I), o = String.fromCharCode(I), y) : n(I);
8727
8727
  }
8728
8728
  function y(I) {
8729
- if (I === null || I === 47 || I === 62 || dt(I)) {
8729
+ if (I === null || I === 47 || I === 62 || ft(I)) {
8730
8730
  const he = I === 47, Ie = o.toLowerCase();
8731
8731
  return !he && !s && C2.includes(Ie) ? (r = 1, i.interrupt ? e(I) : N(I)) : yR.includes(o.toLowerCase()) ? (r = 6, he ? (t.consume(I), v) : i.interrupt ? e(I) : N(I)) : (r = 7, i.interrupt && !i.parser.lazy[i.now().line] ? n(I) : s ? w(I) : k(I));
8732
8732
  }
@@ -8736,34 +8736,34 @@ function wR(t, e, n) {
8736
8736
  return I === 62 ? (t.consume(I), i.interrupt ? e : N) : n(I);
8737
8737
  }
8738
8738
  function w(I) {
8739
- return Ye(I) ? (t.consume(I), w) : C(I);
8739
+ return Ze(I) ? (t.consume(I), w) : C(I);
8740
8740
  }
8741
8741
  function k(I) {
8742
- return I === 47 ? (t.consume(I), C) : I === 58 || I === 95 || fn(I) ? (t.consume(I), x) : Ye(I) ? (t.consume(I), k) : C(I);
8742
+ return I === 47 ? (t.consume(I), C) : I === 58 || I === 95 || fn(I) ? (t.consume(I), x) : Ze(I) ? (t.consume(I), k) : C(I);
8743
8743
  }
8744
8744
  function x(I) {
8745
8745
  return I === 45 || I === 46 || I === 58 || I === 95 || nn(I) ? (t.consume(I), x) : S(I);
8746
8746
  }
8747
8747
  function S(I) {
8748
- return I === 61 ? (t.consume(I), _) : Ye(I) ? (t.consume(I), S) : k(I);
8748
+ return I === 61 ? (t.consume(I), _) : Ze(I) ? (t.consume(I), S) : k(I);
8749
8749
  }
8750
8750
  function _(I) {
8751
- return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (t.consume(I), l = I, T) : Ye(I) ? (t.consume(I), _) : E(I);
8751
+ return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (t.consume(I), l = I, T) : Ze(I) ? (t.consume(I), _) : E(I);
8752
8752
  }
8753
8753
  function T(I) {
8754
8754
  return I === l ? (t.consume(I), l = null, L) : I === null || De(I) ? n(I) : (t.consume(I), T);
8755
8755
  }
8756
8756
  function E(I) {
8757
- return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || dt(I) ? S(I) : (t.consume(I), E);
8757
+ return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || ft(I) ? S(I) : (t.consume(I), E);
8758
8758
  }
8759
8759
  function L(I) {
8760
- return I === 47 || I === 62 || Ye(I) ? k(I) : n(I);
8760
+ return I === 47 || I === 62 || Ze(I) ? k(I) : n(I);
8761
8761
  }
8762
8762
  function C(I) {
8763
8763
  return I === 62 ? (t.consume(I), R) : n(I);
8764
8764
  }
8765
8765
  function R(I) {
8766
- return I === null || De(I) ? N(I) : Ye(I) ? (t.consume(I), R) : n(I);
8766
+ return I === null || De(I) ? N(I) : Ze(I) ? (t.consume(I), R) : n(I);
8767
8767
  }
8768
8768
  function N(I) {
8769
8769
  return I === 45 && r === 2 ? (t.consume(I), j) : I === 60 && r === 1 ? (t.consume(I), G) : I === 62 && r === 4 ? (t.consume(I), we) : I === 63 && r === 3 ? (t.consume(I), O) : I === 93 && r === 5 ? (t.consume(I), Z) : De(I) && (r === 6 || r === 7) ? (t.exit("htmlFlowData"), t.check(bR, ae, A)(I)) : I === null || De(I) ? (t.exit("htmlFlowData"), A(I)) : (t.consume(I), N);
@@ -8877,31 +8877,31 @@ function NR(t, e, n) {
8877
8877
  return O === 45 || nn(O) ? (t.consume(O), _) : T(O);
8878
8878
  }
8879
8879
  function T(O) {
8880
- return De(O) ? (o = T, G(O)) : Ye(O) ? (t.consume(O), T) : j(O);
8880
+ return De(O) ? (o = T, G(O)) : Ze(O) ? (t.consume(O), T) : j(O);
8881
8881
  }
8882
8882
  function E(O) {
8883
- return O === 45 || nn(O) ? (t.consume(O), E) : O === 47 || O === 62 || dt(O) ? L(O) : n(O);
8883
+ return O === 45 || nn(O) ? (t.consume(O), E) : O === 47 || O === 62 || ft(O) ? L(O) : n(O);
8884
8884
  }
8885
8885
  function L(O) {
8886
- return O === 47 ? (t.consume(O), j) : O === 58 || O === 95 || fn(O) ? (t.consume(O), C) : De(O) ? (o = L, G(O)) : Ye(O) ? (t.consume(O), L) : j(O);
8886
+ return O === 47 ? (t.consume(O), j) : O === 58 || O === 95 || fn(O) ? (t.consume(O), C) : De(O) ? (o = L, G(O)) : Ze(O) ? (t.consume(O), L) : j(O);
8887
8887
  }
8888
8888
  function C(O) {
8889
8889
  return O === 45 || O === 46 || O === 58 || O === 95 || nn(O) ? (t.consume(O), C) : R(O);
8890
8890
  }
8891
8891
  function R(O) {
8892
- return O === 61 ? (t.consume(O), N) : De(O) ? (o = R, G(O)) : Ye(O) ? (t.consume(O), R) : L(O);
8892
+ return O === 61 ? (t.consume(O), N) : De(O) ? (o = R, G(O)) : Ze(O) ? (t.consume(O), R) : L(O);
8893
8893
  }
8894
8894
  function N(O) {
8895
- return O === null || O === 60 || O === 61 || O === 62 || O === 96 ? n(O) : O === 34 || O === 39 ? (t.consume(O), r = O, A) : De(O) ? (o = N, G(O)) : Ye(O) ? (t.consume(O), N) : (t.consume(O), D);
8895
+ return O === null || O === 60 || O === 61 || O === 62 || O === 96 ? n(O) : O === 34 || O === 39 ? (t.consume(O), r = O, A) : De(O) ? (o = N, G(O)) : Ze(O) ? (t.consume(O), N) : (t.consume(O), D);
8896
8896
  }
8897
8897
  function A(O) {
8898
8898
  return O === r ? (t.consume(O), r = void 0, F) : O === null ? n(O) : De(O) ? (o = A, G(O)) : (t.consume(O), A);
8899
8899
  }
8900
8900
  function D(O) {
8901
- return O === null || O === 34 || O === 39 || O === 60 || O === 61 || O === 96 ? n(O) : O === 47 || O === 62 || dt(O) ? L(O) : (t.consume(O), D);
8901
+ return O === null || O === 34 || O === 39 || O === 60 || O === 61 || O === 96 ? n(O) : O === 47 || O === 62 || ft(O) ? L(O) : (t.consume(O), D);
8902
8902
  }
8903
8903
  function F(O) {
8904
- return O === 47 || O === 62 || dt(O) ? L(O) : n(O);
8904
+ return O === 47 || O === 62 || ft(O) ? L(O) : n(O);
8905
8905
  }
8906
8906
  function j(O) {
8907
8907
  return O === 62 ? (t.consume(O), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(O);
@@ -8910,7 +8910,7 @@ function NR(t, e, n) {
8910
8910
  return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(O), t.exit("lineEnding"), J;
8911
8911
  }
8912
8912
  function J(O) {
8913
- return Ye(O) ? Qe(t, Z, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : Z(O);
8913
+ return Ze(O) ? Qe(t, Z, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : Z(O);
8914
8914
  }
8915
8915
  function Z(O) {
8916
8916
  return t.enter("htmlTextData"), o(O);
@@ -9014,13 +9014,13 @@ function IR(t, e, n) {
9014
9014
  return t.enter("resource"), t.enter("resourceMarker"), t.consume(u), t.exit("resourceMarker"), r;
9015
9015
  }
9016
9016
  function r(u) {
9017
- return dt(u) ? wa(t, s)(u) : s(u);
9017
+ return ft(u) ? wa(t, s)(u) : s(u);
9018
9018
  }
9019
9019
  function s(u) {
9020
9020
  return u === 41 ? d(u) : I9(t, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(u);
9021
9021
  }
9022
9022
  function o(u) {
9023
- return dt(u) ? wa(t, l)(u) : d(u);
9023
+ return ft(u) ? wa(t, l)(u) : d(u);
9024
9024
  }
9025
9025
  function a(u) {
9026
9026
  return n(u);
@@ -9029,7 +9029,7 @@ function IR(t, e, n) {
9029
9029
  return u === 34 || u === 39 || u === 40 ? R9(t, c, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(u) : d(u);
9030
9030
  }
9031
9031
  function c(u) {
9032
- return dt(u) ? wa(t, d)(u) : d(u);
9032
+ return ft(u) ? wa(t, d)(u) : d(u);
9033
9033
  }
9034
9034
  function d(u) {
9035
9035
  return u === 41 ? (t.enter("resourceMarker"), t.consume(u), t.exit("resourceMarker"), t.exit("resource"), e) : n(u);
@@ -9117,7 +9117,7 @@ function jR(t, e, n) {
9117
9117
  return c === r ? (t.enter("thematicBreakSequence"), l(c)) : i >= 3 && (c === null || De(c)) ? (t.exit("thematicBreak"), e(c)) : n(c);
9118
9118
  }
9119
9119
  function l(c) {
9120
- return c === r ? (t.consume(c), i++, l) : (t.exit("thematicBreakSequence"), Ye(c) ? Qe(t, a, "whitespace")(c) : a(c));
9120
+ return c === r ? (t.consume(c), i++, l) : (t.exit("thematicBreakSequence"), Ze(c) ? Qe(t, a, "whitespace")(c) : a(c));
9121
9121
  }
9122
9122
  }
9123
9123
  const kn = {
@@ -9165,7 +9165,7 @@ function WR(t, e, n) {
9165
9165
  return i.containerState.initialBlankLine = !0, s++, h(p);
9166
9166
  }
9167
9167
  function u(p) {
9168
- return Ye(p) ? (t.enter("listItemPrefixWhitespace"), t.consume(p), t.exit("listItemPrefixWhitespace"), h) : n(p);
9168
+ return Ze(p) ? (t.enter("listItemPrefixWhitespace"), t.consume(p), t.exit("listItemPrefixWhitespace"), h) : n(p);
9169
9169
  }
9170
9170
  function h(p) {
9171
9171
  return i.containerState.size = s + i.sliceSerialize(t.exit("listItemPrefix"), !0).length, e(p);
@@ -9178,7 +9178,7 @@ function qR(t, e, n) {
9178
9178
  return i.containerState.furtherBlankLines = i.containerState.furtherBlankLines || i.containerState.initialBlankLine, Qe(t, e, "listItemIndent", i.containerState.size + 1)(a);
9179
9179
  }
9180
9180
  function s(a) {
9181
- return i.containerState.furtherBlankLines || !Ye(a) ? (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, o(a)) : (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, t.attempt(HR, e, o)(a));
9181
+ return i.containerState.furtherBlankLines || !Ze(a) ? (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, o(a)) : (i.containerState.furtherBlankLines = void 0, i.containerState.initialBlankLine = void 0, t.attempt(HR, e, o)(a));
9182
9182
  }
9183
9183
  function o(a) {
9184
9184
  return i.containerState._closeFlow = !0, i.interrupt = void 0, Qe(t, t.attempt(kn, e, n), "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
@@ -9200,7 +9200,7 @@ function GR(t, e, n) {
9200
9200
  return Qe(t, r, "listItemPrefixWhitespace", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
9201
9201
  function r(s) {
9202
9202
  const o = i.events[i.events.length - 1];
9203
- return !Ye(s) && o && o[1].type === "listItemPrefixWhitespace" ? e(s) : n(s);
9203
+ return !Ze(s) && o && o[1].type === "listItemPrefixWhitespace" ? e(s) : n(s);
9204
9204
  }
9205
9205
  }
9206
9206
  const S2 = {
@@ -9249,7 +9249,7 @@ function YR(t, e, n) {
9249
9249
  return t.enter("setextHeadingLineSequence"), a(c);
9250
9250
  }
9251
9251
  function a(c) {
9252
- return c === r ? (t.consume(c), a) : (t.exit("setextHeadingLineSequence"), Ye(c) ? Qe(t, l, "lineSuffix")(c) : l(c));
9252
+ return c === r ? (t.consume(c), a) : (t.exit("setextHeadingLineSequence"), Ze(c) ? Qe(t, l, "lineSuffix")(c) : l(c));
9253
9253
  }
9254
9254
  function l(c) {
9255
9255
  return c === null || De(c) ? (t.exit("setextHeadingLine"), e(c)) : n(c);
@@ -9376,7 +9376,7 @@ function tF(t, e, n) {
9376
9376
  s > 999 || // Closing brace with nothing.
9377
9377
  u === 93 && !o || // Space or tab is not supported by GFM for some reason.
9378
9378
  // `\n` and `[` not being supported makes sense.
9379
- u === null || u === 91 || dt(u)
9379
+ u === null || u === 91 || ft(u)
9380
9380
  )
9381
9381
  return n(u);
9382
9382
  if (u === 93) {
@@ -9384,7 +9384,7 @@ function tF(t, e, n) {
9384
9384
  const h = t.exit("gfmFootnoteCallString");
9385
9385
  return r.includes(yi(i.sliceSerialize(h))) ? (t.enter("gfmFootnoteCallLabelMarker"), t.consume(u), t.exit("gfmFootnoteCallLabelMarker"), t.exit("gfmFootnoteCall"), e) : n(u);
9386
9386
  }
9387
- return dt(u) || (o = !0), s++, t.consume(u), u === 92 ? d : c;
9387
+ return ft(u) || (o = !0), s++, t.consume(u), u === 92 ? d : c;
9388
9388
  }
9389
9389
  function d(u) {
9390
9390
  return u === 91 || u === 92 || u === 93 ? (t.consume(u), s++, c) : c(u);
@@ -9406,7 +9406,7 @@ function nF(t, e, n) {
9406
9406
  o > 999 || // Closing brace with nothing.
9407
9407
  m === 93 && !a || // Space or tab is not supported by GFM for some reason.
9408
9408
  // `\n` and `[` not being supported makes sense.
9409
- m === null || m === 91 || dt(m)
9409
+ m === null || m === 91 || ft(m)
9410
9410
  )
9411
9411
  return n(m);
9412
9412
  if (m === 93) {
@@ -9414,7 +9414,7 @@ function nF(t, e, n) {
9414
9414
  const g = t.exit("gfmFootnoteDefinitionLabelString");
9415
9415
  return s = yi(i.sliceSerialize(g)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(m), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), h;
9416
9416
  }
9417
- return dt(m) || (a = !0), o++, t.consume(m), m === 92 ? u : d;
9417
+ return ft(m) || (a = !0), o++, t.consume(m), m === 92 ? u : d;
9418
9418
  }
9419
9419
  function u(m) {
9420
9420
  return m === 91 || m === 92 || m === 93 ? (t.consume(m), o++, d) : d(m);
@@ -9622,22 +9622,22 @@ function fF(t, e, n) {
9622
9622
  return C === 124 || (o = !0, s += 1), d(C);
9623
9623
  }
9624
9624
  function d(C) {
9625
- return C === null ? n(C) : De(C) ? s > 1 ? (s = 0, i.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(C), t.exit("lineEnding"), p) : n(C) : Ye(C) ? Qe(t, d, "whitespace")(C) : (s += 1, o && (o = !1, r += 1), C === 124 ? (t.enter("tableCellDivider"), t.consume(C), t.exit("tableCellDivider"), o = !0, d) : (t.enter("data"), u(C)));
9625
+ return C === null ? n(C) : De(C) ? s > 1 ? (s = 0, i.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(C), t.exit("lineEnding"), p) : n(C) : Ze(C) ? Qe(t, d, "whitespace")(C) : (s += 1, o && (o = !1, r += 1), C === 124 ? (t.enter("tableCellDivider"), t.consume(C), t.exit("tableCellDivider"), o = !0, d) : (t.enter("data"), u(C)));
9626
9626
  }
9627
9627
  function u(C) {
9628
- return C === null || C === 124 || dt(C) ? (t.exit("data"), d(C)) : (t.consume(C), C === 92 ? h : u);
9628
+ return C === null || C === 124 || ft(C) ? (t.exit("data"), d(C)) : (t.consume(C), C === 92 ? h : u);
9629
9629
  }
9630
9630
  function h(C) {
9631
9631
  return C === 92 || C === 124 ? (t.consume(C), u) : u(C);
9632
9632
  }
9633
9633
  function p(C) {
9634
- return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(C) : (t.enter("tableDelimiterRow"), o = !1, Ye(C) ? Qe(t, m, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : m(C));
9634
+ return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(C) : (t.enter("tableDelimiterRow"), o = !1, Ze(C) ? Qe(t, m, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : m(C));
9635
9635
  }
9636
9636
  function m(C) {
9637
9637
  return C === 45 || C === 58 ? y(C) : C === 124 ? (o = !0, t.enter("tableCellDivider"), t.consume(C), t.exit("tableCellDivider"), g) : S(C);
9638
9638
  }
9639
9639
  function g(C) {
9640
- return Ye(C) ? Qe(t, y, "whitespace")(C) : y(C);
9640
+ return Ze(C) ? Qe(t, y, "whitespace")(C) : y(C);
9641
9641
  }
9642
9642
  function y(C) {
9643
9643
  return C === 58 ? (s += 1, o = !0, t.enter("tableDelimiterMarker"), t.consume(C), t.exit("tableDelimiterMarker"), v) : C === 45 ? (s += 1, v(C)) : C === null || De(C) ? x(C) : S(C);
@@ -9649,7 +9649,7 @@ function fF(t, e, n) {
9649
9649
  return C === 45 ? (t.consume(C), w) : C === 58 ? (o = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(C), t.exit("tableDelimiterMarker"), k) : (t.exit("tableDelimiterFiller"), k(C));
9650
9650
  }
9651
9651
  function k(C) {
9652
- return Ye(C) ? Qe(t, x, "whitespace")(C) : x(C);
9652
+ return Ze(C) ? Qe(t, x, "whitespace")(C) : x(C);
9653
9653
  }
9654
9654
  function x(C) {
9655
9655
  return C === 124 ? m(C) : C === null || De(C) ? !o || r !== s ? S(C) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(C)) : S(C);
@@ -9661,10 +9661,10 @@ function fF(t, e, n) {
9661
9661
  return t.enter("tableRow"), T(C);
9662
9662
  }
9663
9663
  function T(C) {
9664
- return C === 124 ? (t.enter("tableCellDivider"), t.consume(C), t.exit("tableCellDivider"), T) : C === null || De(C) ? (t.exit("tableRow"), e(C)) : Ye(C) ? Qe(t, T, "whitespace")(C) : (t.enter("data"), E(C));
9664
+ return C === 124 ? (t.enter("tableCellDivider"), t.consume(C), t.exit("tableCellDivider"), T) : C === null || De(C) ? (t.exit("tableRow"), e(C)) : Ze(C) ? Qe(t, T, "whitespace")(C) : (t.enter("data"), E(C));
9665
9665
  }
9666
9666
  function E(C) {
9667
- return C === null || C === 124 || dt(C) ? (t.exit("data"), T(C)) : (t.consume(C), C === 92 ? L : E);
9667
+ return C === null || C === 124 || ft(C) ? (t.exit("data"), T(C)) : (t.consume(C), C === 92 ? L : E);
9668
9668
  }
9669
9669
  function L(C) {
9670
9670
  return C === 92 || C === 124 ? (t.consume(C), E) : E(C);
@@ -9750,13 +9750,13 @@ function mF(t, e, n) {
9750
9750
  );
9751
9751
  }
9752
9752
  function s(l) {
9753
- return dt(l) ? (t.enter("taskListCheckValueUnchecked"), t.consume(l), t.exit("taskListCheckValueUnchecked"), o) : l === 88 || l === 120 ? (t.enter("taskListCheckValueChecked"), t.consume(l), t.exit("taskListCheckValueChecked"), o) : n(l);
9753
+ return ft(l) ? (t.enter("taskListCheckValueUnchecked"), t.consume(l), t.exit("taskListCheckValueUnchecked"), o) : l === 88 || l === 120 ? (t.enter("taskListCheckValueChecked"), t.consume(l), t.exit("taskListCheckValueChecked"), o) : n(l);
9754
9754
  }
9755
9755
  function o(l) {
9756
9756
  return l === 93 ? (t.enter("taskListCheckMarker"), t.consume(l), t.exit("taskListCheckMarker"), t.exit("taskListCheck"), a) : n(l);
9757
9757
  }
9758
9758
  function a(l) {
9759
- return De(l) ? e(l) : Ye(l) ? t.check({
9759
+ return De(l) ? e(l) : Ze(l) ? t.check({
9760
9760
  tokenize: gF
9761
9761
  }, e, n)(l) : n(l);
9762
9762
  }
@@ -10438,8 +10438,8 @@ function GF(t) {
10438
10438
  definitionLabelString: o,
10439
10439
  definitionTitleString: o,
10440
10440
  emphasis: s(Fe),
10441
- hardBreakEscape: s(ht),
10442
- hardBreakTrailing: s(ht),
10441
+ hardBreakEscape: s(pt),
10442
+ hardBreakTrailing: s(pt),
10443
10443
  htmlFlow: s(nt, o),
10444
10444
  htmlFlowData: L,
10445
10445
  htmlText: s(nt, o),
@@ -10536,18 +10536,18 @@ function GF(t) {
10536
10536
  if (H[ge][0] === "enter")
10537
10537
  ze.push(ge);
10538
10538
  else {
10539
- const Ze = ze.pop();
10540
- ge = r(H, Ze, ge);
10539
+ const Je = ze.pop();
10540
+ ge = r(H, Je, ge);
10541
10541
  }
10542
10542
  for (ge = -1; ++ge < H.length; ) {
10543
- const Ze = e[H[ge][0]];
10544
- B9.call(Ze, H[ge][1].type) && Ze[H[ge][1].type].call(Object.assign({
10543
+ const Je = e[H[ge][0]];
10544
+ B9.call(Je, H[ge][1].type) && Je[H[ge][1].type].call(Object.assign({
10545
10545
  sliceSerialize: H[ge][2].sliceSerialize
10546
10546
  }, Ne), H[ge][1]);
10547
10547
  }
10548
10548
  if (Ne.tokenStack.length > 0) {
10549
- const Ze = Ne.tokenStack[Ne.tokenStack.length - 1];
10550
- (Ze[1] || A2).call(Ne, void 0, Ze[0]);
10549
+ const Je = Ne.tokenStack[Ne.tokenStack.length - 1];
10550
+ (Je[1] || A2).call(Ne, void 0, Je[0]);
10551
10551
  }
10552
10552
  for (X.position = {
10553
10553
  start: gr(H.length > 0 ? H[0][1].start : {
@@ -10565,7 +10565,7 @@ function GF(t) {
10565
10565
  return X;
10566
10566
  }
10567
10567
  function r(H, X, Ne) {
10568
- let ze = X - 1, ge = -1, Ze = !1, vt, bt, K, ve;
10568
+ let ze = X - 1, ge = -1, Je = !1, xt, st, K, ve;
10569
10569
  for (; ++ze <= Ne; ) {
10570
10570
  const Se = H[ze];
10571
10571
  switch (Se[1].type) {
@@ -10576,7 +10576,7 @@ function GF(t) {
10576
10576
  break;
10577
10577
  }
10578
10578
  case "lineEndingBlank": {
10579
- Se[0] === "enter" && (vt && !ve && !ge && !K && (K = ze), ve = void 0);
10579
+ Se[0] === "enter" && (xt && !ve && !ge && !K && (K = ze), ve = void 0);
10580
10580
  break;
10581
10581
  }
10582
10582
  case "linePrefix":
@@ -10589,16 +10589,16 @@ function GF(t) {
10589
10589
  ve = void 0;
10590
10590
  }
10591
10591
  if (!ge && Se[0] === "enter" && Se[1].type === "listItemPrefix" || ge === -1 && Se[0] === "exit" && (Se[1].type === "listUnordered" || Se[1].type === "listOrdered")) {
10592
- if (vt) {
10592
+ if (xt) {
10593
10593
  let Ke = ze;
10594
- for (bt = void 0; Ke--; ) {
10594
+ for (st = void 0; Ke--; ) {
10595
10595
  const $e = H[Ke];
10596
10596
  if ($e[1].type === "lineEnding" || $e[1].type === "lineEndingBlank") {
10597
10597
  if ($e[0] === "exit") continue;
10598
- bt && (H[bt][1].type = "lineEndingBlank", Ze = !0), $e[1].type = "lineEnding", bt = Ke;
10598
+ st && (H[st][1].type = "lineEndingBlank", Je = !0), $e[1].type = "lineEnding", st = Ke;
10599
10599
  } else if (!($e[1].type === "linePrefix" || $e[1].type === "blockQuotePrefix" || $e[1].type === "blockQuotePrefixWhitespace" || $e[1].type === "blockQuoteMarker" || $e[1].type === "listItemIndent")) break;
10600
10600
  }
10601
- K && (!bt || K < bt) && (vt._spread = !0), vt.end = Object.assign({}, bt ? H[bt][1].start : Se[1].end), H.splice(bt || ze, 0, ["exit", vt, Se[2]]), ze++, Ne++;
10601
+ K && (!st || K < st) && (xt._spread = !0), xt.end = Object.assign({}, st ? H[st][1].start : Se[1].end), H.splice(st || ze, 0, ["exit", xt, Se[2]]), ze++, Ne++;
10602
10602
  }
10603
10603
  if (Se[1].type === "listItemPrefix") {
10604
10604
  const Ke = {
@@ -10608,11 +10608,11 @@ function GF(t) {
10608
10608
  // @ts-expect-error: we’ll add `end` in a second.
10609
10609
  end: void 0
10610
10610
  };
10611
- vt = Ke, H.splice(ze, 0, ["enter", Ke, Se[2]]), ze++, Ne++, K = void 0, ve = !0;
10611
+ xt = Ke, H.splice(ze, 0, ["enter", Ke, Se[2]]), ze++, Ne++, K = void 0, ve = !0;
10612
10612
  }
10613
10613
  }
10614
10614
  }
10615
- return H[X][1]._spread = Ze, Ne;
10615
+ return H[X][1]._spread = Je, Ne;
10616
10616
  }
10617
10617
  function s(H, X) {
10618
10618
  return Ne;
@@ -10861,7 +10861,7 @@ function GF(t) {
10861
10861
  children: []
10862
10862
  };
10863
10863
  }
10864
- function ht() {
10864
+ function pt() {
10865
10865
  return {
10866
10866
  type: "break"
10867
10867
  };
@@ -13103,7 +13103,7 @@ const oB = nB().use(YF).use(bF).use(PP).use(AO), aB = U(function({ content: e, c
13103
13103
  compact: t
13104
13104
  });
13105
13105
  G9.displayName = "F0AiBanner";
13106
- const q2 = xt(G9, dB), J9 = Ft({
13106
+ const q2 = kt(G9, dB), J9 = Ft({
13107
13107
  base: "flex w-full flex-col rounded-lg p-[1px]",
13108
13108
  variants: {
13109
13109
  variant: {
@@ -13214,7 +13214,7 @@ const q2 = xt(G9, dB), J9 = Ft({
13214
13214
  variant: e
13215
13215
  });
13216
13216
  Y9.displayName = "F0Callout";
13217
- const Moe = xt(Y9, hB), pB = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: i, aspect: r }, s) => {
13217
+ const Moe = kt(Y9, hB), pB = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: i, aspect: r }, s) => {
13218
13218
  const o = Object.keys(e), a = t.map((l) => ({
13219
13219
  subject: l.label,
13220
13220
  ...l.values
@@ -14439,10 +14439,10 @@ const tz = "SelectItemAlignedPosition", f8 = z.forwardRef((t, e) => {
14439
14439
  if (s.trigger && s.valueNode && a && c && g && y && v) {
14440
14440
  const T = s.trigger.getBoundingClientRect(), E = c.getBoundingClientRect(), L = s.valueNode.getBoundingClientRect(), C = v.getBoundingClientRect();
14441
14441
  if (s.dir !== "rtl") {
14442
- const _e = C.left - E.left, Le = L.left - _e, Oe = T.left - Le, Fe = T.width + Oe, rt = Math.max(Fe, E.width), ht = window.innerWidth - ui, nt = Q2(Le, [ui, Math.max(ui, ht - rt)]);
14442
+ const _e = C.left - E.left, Le = L.left - _e, Oe = T.left - Le, Fe = T.width + Oe, rt = Math.max(Fe, E.width), pt = window.innerWidth - ui, nt = Q2(Le, [ui, Math.max(ui, pt - rt)]);
14443
14443
  a.style.minWidth = Fe + "px", a.style.left = nt + "px";
14444
14444
  } else {
14445
- const _e = E.right - C.right, Le = window.innerWidth - L.right - _e, Oe = window.innerWidth - T.right - Le, Fe = T.width + Oe, rt = Math.max(Fe, E.width), ht = window.innerWidth - ui, nt = Q2(Le, [ui, Math.max(ui, ht - rt)]);
14445
+ const _e = E.right - C.right, Le = window.innerWidth - L.right - _e, Oe = window.innerWidth - T.right - Le, Fe = T.width + Oe, rt = Math.max(Fe, E.width), pt = window.innerWidth - ui, nt = Q2(Le, [ui, Math.max(ui, pt - rt)]);
14446
14446
  a.style.minWidth = Fe + "px", a.style.right = nt + "px";
14447
14447
  }
14448
14448
  const R = h(), N = window.innerHeight - ui * 2, A = g.scrollHeight, D = window.getComputedStyle(c), F = parseInt(D.borderTopWidth, 10), j = parseInt(D.paddingTop, 10), G = parseInt(D.borderBottomWidth, 10), J = parseInt(D.paddingBottom, 10), Z = F + j + A + J + G, O = Math.min(y.offsetHeight * 5, Z), we = window.getComputedStyle(g), ae = parseInt(we.paddingTop, 10), I = parseInt(we.paddingBottom, 10), he = T.top + T.height / 2 - ui, Ie = N - he, be = y.offsetHeight / 2, B = y.offsetTop + be, q = F + j + B, le = Z - q;
@@ -15144,9 +15144,9 @@ const A8 = ({ disabled: t, open: e, onChange: n, size: i = "sm", className: r })
15144
15144
  ...k,
15145
15145
  dataAdapter: k ? k.dataAdapter : {
15146
15146
  fetchData: ({ search: ge }) => {
15147
- const Ze = "searchFn" in D && D.searchFn ? D.searchFn : Sz;
15147
+ const Je = "searchFn" in D && D.searchFn ? D.searchFn : Sz;
15148
15148
  return {
15149
- records: s.filter((vt) => Ze(vt, ge) ?? !0)
15149
+ records: s.filter((xt) => Je(xt, ge) ?? !0)
15150
15150
  };
15151
15151
  }
15152
15152
  }
@@ -15165,13 +15165,17 @@ const A8 = ({ disabled: t, open: e, onChange: n, size: i = "sm", className: r })
15165
15165
  }
15166
15166
  return ge;
15167
15167
  }, [o, k]), { data: he, isInitialLoading: Ie, loadMore: be, isLoadingMore: B, isLoading: q } = _6(ae), { currentSearch: le, setCurrentSearch: Y } = ae, [_e, Le] = V(void 0), Oe = Pe((ge) => {
15168
- if (ge !== void 0)
15169
- for (const Ze of he.records) {
15170
- const vt = I(Ze);
15171
- if (vt.type !== "separator" && String(vt.value) === ge)
15172
- return vt;
15168
+ var Je;
15169
+ if (ge !== void 0) {
15170
+ if (ge === ((Je = D.defaultItem) == null ? void 0 : Je.value))
15171
+ return D.defaultItem;
15172
+ for (const xt of he.records) {
15173
+ const st = I(xt);
15174
+ if (st.type !== "separator" && String(st.value) === ge)
15175
+ return st;
15173
15176
  }
15174
- }, [he.records, I]);
15177
+ }
15178
+ }, [he.records, I, D.defaultItem]);
15175
15179
  ie(() => {
15176
15180
  const ge = Oe(Z);
15177
15181
  i == null || i(ge), Le(ge);
@@ -15183,37 +15187,37 @@ const A8 = ({ disabled: t, open: e, onChange: n, size: i = "sm", className: r })
15183
15187
  Y(ge), p == null || p(ge);
15184
15188
  }, [Y, p]), rt = (ge) => {
15185
15189
  Y(void 0), O(ge);
15186
- const Ze = Oe(ge);
15187
- n == null || n(ge, Ze == null ? void 0 : Ze.item, Ze);
15188
- }, ht = C6((ge) => {
15190
+ const Je = Oe(ge);
15191
+ n == null || n(ge, Je == null ? void 0 : Je.item, Je);
15192
+ }, pt = C6((ge) => {
15189
15193
  u == null || u(ge), J(ge);
15190
15194
  }, 100), nt = (ge) => {
15191
- ht(ge);
15192
- }, P = (ze = ae.grouping) == null ? void 0 : ze.defaultOpenGroups, { openGroups: $, setGroupOpen: W } = If((he == null ? void 0 : he.type) === "grouped" ? he.groups : [], P), re = Pe((ge) => ge.map((Ze, vt) => {
15193
- const bt = I(Ze);
15194
- return bt.type === "separator" ? {
15195
+ pt(ge);
15196
+ }, P = (ze = ae.grouping) == null ? void 0 : ze.defaultOpenGroups, { openGroups: $, setGroupOpen: W } = If((he == null ? void 0 : he.type) === "grouped" ? he.groups : [], P), re = Pe((ge) => ge.map((Je, xt) => {
15197
+ const st = I(Je);
15198
+ return st.type === "separator" ? {
15195
15199
  height: 1,
15196
- item: f(N0, {}, `separator-${vt}`)
15200
+ item: f(N0, {}, `separator-${xt}`)
15197
15201
  } : {
15198
- height: bt.description ? 64 : 32,
15202
+ height: st.description ? 64 : 32,
15199
15203
  item: f(_z, {
15200
- item: bt
15201
- }, String(bt.value)),
15202
- value: bt.value
15204
+ item: st
15205
+ }, String(st.value)),
15206
+ value: st.value
15203
15207
  };
15204
15208
  }), [I]), de = ce(() => {
15205
15209
  if (he.type === "grouped") {
15206
15210
  const ge = [];
15207
- return he.groups.map((Ze) => {
15211
+ return he.groups.map((Je) => {
15208
15212
  ge.push({
15209
15213
  height: 30,
15210
15214
  item: f(lu, {
15211
- label: Ze.label,
15212
- itemCount: Ze.itemCount,
15213
- onOpenChange: (vt) => W(Ze.key, vt),
15214
- open: $[Ze.key]
15215
+ label: Je.label,
15216
+ itemCount: Je.itemCount,
15217
+ onOpenChange: (xt) => W(Je.key, xt),
15218
+ open: $[Je.key]
15215
15219
  })
15216
- }), ge.push(...re(Ze.records));
15220
+ }), ge.push(...re(Je.records));
15217
15221
  }), ge;
15218
15222
  }
15219
15223
  return re(he.records);
@@ -15567,7 +15571,7 @@ const s3 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
15567
15571
  onFocus: o,
15568
15572
  onBlur: a,
15569
15573
  disabled: l,
15570
- className: M(k, S, ct(), u),
15574
+ className: M(k, S, dt(), u),
15571
15575
  "aria-busy": c
15572
15576
  }, E = v ? f(bn, {
15573
15577
  ...T,
@@ -15622,7 +15626,7 @@ const Ms = ({ items: t, onClick: e, value: n, ...i }) => {
15622
15626
  pressed: s && !i.disabled
15623
15627
  }), e0({
15624
15628
  size: i.size
15625
- }), "-translate-x-px rounded-l-none px-0 after:rounded-l-none", u, ct()),
15629
+ }), "-translate-x-px rounded-l-none px-0 after:rounded-l-none", u, dt()),
15626
15630
  disabled: i.disabled,
15627
15631
  "data-pressed": s && !i.disabled,
15628
15632
  children: b("div", {
@@ -15839,10 +15843,10 @@ const Ms = ({ items: t, onClick: e, value: n, ...i }) => {
15839
15843
  subItems: Y.subItems,
15840
15844
  expanded: Y.expanded,
15841
15845
  searchKeys: Y.subSearchKeys
15842
- }, rt = rc(h, Fe.id), ht = ((Fe == null ? void 0 : Fe.subItems) ?? []).filter(($) => {
15846
+ }, rt = rc(h, Fe.id), pt = ((Fe == null ? void 0 : Fe.subItems) ?? []).filter(($) => {
15843
15847
  var W;
15844
15848
  return (W = rt == null ? void 0 : rt.subItems) == null ? void 0 : W.some((re) => re.subId === $.subId);
15845
- }), nt = (((Le = Fe.subItems) == null ? void 0 : Le.length) ?? 0) === ht.length, P = !nt && ht.length > 0;
15849
+ }), nt = (((Le = Fe.subItems) == null ? void 0 : Le.length) ?? 0) === pt.length, P = !nt && pt.length > 0;
15846
15850
  return f(Mc, {
15847
15851
  groupView: !0,
15848
15852
  expanded: Fe.expanded ?? !1,
@@ -15865,10 +15869,10 @@ const Ms = ({ items: t, onClick: e, value: n, ...i }) => {
15865
15869
  let _e = !!rc(h, Y.subId);
15866
15870
  if (!_e) {
15867
15871
  const Fe = rc(h, le.id);
15868
- _e = !!((le == null ? void 0 : le.subItems) ?? []).filter((ht) => {
15872
+ _e = !!((le == null ? void 0 : le.subItems) ?? []).filter((pt) => {
15869
15873
  var nt;
15870
- return (nt = Fe == null ? void 0 : Fe.subItems) == null ? void 0 : nt.some((P) => P.subId === ht.subId);
15871
- }).find((ht) => ht.subId === Y.subId);
15874
+ return (nt = Fe == null ? void 0 : Fe.subItems) == null ? void 0 : nt.some((P) => P.subId === pt.subId);
15875
+ }).find((pt) => pt.subId === Y.subId);
15872
15876
  }
15873
15877
  return f(Mc, {
15874
15878
  expanded: !1,
@@ -16683,7 +16687,7 @@ const $8 = z.forwardRef(({ className: t, disabled: e, hideLabel: n, ...i }, r) =
16683
16687
  id: o,
16684
16688
  name: o,
16685
16689
  "aria-label": i.title ?? "Switch",
16686
- className: M("relative h-5 w-[1.875rem] rounded-full bg-f1-border hover:bg-f1-border-hover data-[state=checked]:bg-f1-background-selected-bold", e && "cursor-not-allowed opacity-50", ct(), t),
16690
+ className: M("relative h-5 w-[1.875rem] rounded-full bg-f1-border hover:bg-f1-border-hover data-[state=checked]:bg-f1-background-selected-bold", e && "cursor-not-allowed opacity-50", dt(), t),
16687
16691
  disabled: e,
16688
16692
  children: f(E0, {
16689
16693
  className: M("block h-4 w-4 translate-x-[0.125rem] rounded-full bg-f1-background transition-transform duration-300 data-[state=checked]:translate-x-[0.75rem]")
@@ -16862,7 +16866,7 @@ var p3 = ee.forwardRef(
16862
16866
  }
16863
16867
  ), J8 = L0, Y8 = G8;
16864
16868
  const Z8 = Ft({
16865
- base: M("inline-flex items-center justify-center rounded-sm text-sm font-medium transition-colors hover:bg-f1-background-secondary hover:text-f1-foreground-secondary disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-f1-background-secondary data-[state=on]:text-f1-foreground", ct()),
16869
+ base: M("inline-flex items-center justify-center rounded-sm text-sm font-medium transition-colors hover:bg-f1-background-secondary hover:text-f1-foreground-secondary disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-f1-background-secondary data-[state=on]:text-f1-foreground", dt()),
16866
16870
  variants: {
16867
16871
  variant: {
16868
16872
  default: "bg-transparent",
@@ -17632,22 +17636,22 @@ function f$(t = {}) {
17632
17636
  let Te, H;
17633
17637
  const X = se(), Ne = P.type === yd.BLUR || P.type === yd.FOCUS_OUT, ze = !a$(de._f) && !e.resolver && !ye(n.errors, W) && !de._f.deps || l$(Ne, ye(n.touchedFields, W), n.isSubmitted, p, h), ge = g3(W, a, Ne);
17634
17638
  it(s, W, X), Ne ? (de._f.onBlur && de._f.onBlur(P), l && l(0)) : de._f.onChange && de._f.onChange(P);
17635
- const Ze = _(W, X, Ne, !1), vt = !wn(Ze) || ge;
17639
+ const Je = _(W, X, Ne, !1), xt = !wn(Je) || ge;
17636
17640
  if (!Ne && u.values.next({
17637
17641
  name: W,
17638
17642
  type: P.type,
17639
17643
  values: { ...s }
17640
17644
  }), ze)
17641
- return d.isValid && (e.mode === "onBlur" && Ne ? y() : Ne || y()), vt && u.state.next({ name: W, ...ge ? {} : Ze });
17645
+ return d.isValid && (e.mode === "onBlur" && Ne ? y() : Ne || y()), xt && u.state.next({ name: W, ...ge ? {} : Je });
17642
17646
  if (!Ne && ge && u.state.next({ ...n }), e.resolver) {
17643
- const { errors: bt } = await E([W]);
17647
+ const { errors: st } = await E([W]);
17644
17648
  if (Ce(X), re) {
17645
- const K = _3(n.errors, i, W), ve = _3(bt, i, K.name || W);
17646
- Te = ve.error, W = ve.name, H = wn(bt);
17649
+ const K = _3(n.errors, i, W), ve = _3(st, i, K.name || W);
17650
+ Te = ve.error, W = ve.name, H = wn(st);
17647
17651
  }
17648
17652
  } else
17649
17653
  v([W], !0), Te = (await x3(de, a.disabled, s, m, e.shouldUseNativeValidation))[W], v([W]), Ce(X), re && (Te ? H = !1 : d.isValid && (H = await C(i, !0)));
17650
- re && (de._f.deps && O(de._f.deps), T(W, H, Te, Ze));
17654
+ re && (de._f.deps && O(de._f.deps), T(W, H, Te, Je));
17651
17655
  }
17652
17656
  }, Z = (P, $) => {
17653
17657
  if (ye(n.errors, $) && P.focus)
@@ -18240,7 +18244,7 @@ const b$ = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
18240
18244
  className: "mt-1.5 h-4 w-1/3"
18241
18245
  })]
18242
18246
  })]
18243
- }), D0 = xt(b$, k$), Sk = ({ title: t, children: e }) => b("div", {
18247
+ }), D0 = kt(b$, k$), Sk = ({ title: t, children: e }) => b("div", {
18244
18248
  children: [f("div", {
18245
18249
  className: "pb-2 pl-2 pt-1",
18246
18250
  children: f("p", {
@@ -18263,7 +18267,7 @@ const b$ = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
18263
18267
  children: Array.from({
18264
18268
  length: e
18265
18269
  }).map((n, i) => f(D0.Skeleton, {}, i))
18266
- }), Ac = xt(x$, w$), _$ = 3, C$ = ["today", "yesterday", "lastWeek", "lastMonth"], S$ = (t) => eN(t, ([e]) => {
18270
+ }), Ac = kt(x$, w$), _$ = 3, C$ = ["today", "yesterday", "lastWeek", "lastMonth"], S$ = (t) => eN(t, ([e]) => {
18267
18271
  const n = C$.indexOf(e);
18268
18272
  return n === -1 ? -Number(e) : n - 4e3;
18269
18273
  }), mp = () => f("div", {
@@ -18298,7 +18302,7 @@ const b$ = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
18298
18302
  numItems: 5
18299
18303
  })]
18300
18304
  });
18301
- }, Hoe = xt(N$, E$), L$ = Ft({
18305
+ }, Hoe = kt(N$, E$), L$ = Ft({
18302
18306
  base: "relative w-full rounded-xl bg-f1-background-secondary p-6 text-f1-foreground [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-6 [&>svg]:top-6 [&>svg]:text-f1-foreground [&>svg~*]:pl-8",
18303
18307
  variants: {
18304
18308
  variant: {
@@ -18973,7 +18977,7 @@ var Xi = {
18973
18977
  value: !0
18974
18978
  }
18975
18979
  };
18976
- let Qt = null, Je = null;
18980
+ let Qt = null, Ye = null;
18977
18981
  const $1 = {};
18978
18982
  async function A3(t) {
18979
18983
  if ($1[t]) return $1[t];
@@ -18989,36 +18993,36 @@ function wu(t, { caller: e } = {}) {
18989
18993
  async function G$(t) {
18990
18994
  Hk = !0;
18991
18995
  let { emojiVersion: e, set: n, locale: i } = t;
18992
- if (e || (e = Xi.emojiVersion.value), n || (n = Xi.set.value), i || (i = Xi.locale.value), Je)
18993
- Je.categories = Je.categories.filter((l) => !l.name);
18996
+ if (e || (e = Xi.emojiVersion.value), n || (n = Xi.set.value), i || (i = Xi.locale.value), Ye)
18997
+ Ye.categories = Ye.categories.filter((l) => !l.name);
18994
18998
  else {
18995
- Je = (typeof t.data == "function" ? await t.data() : t.data) || await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`), Je.emoticons = {}, Je.natives = {}, Je.categories.unshift({
18999
+ Ye = (typeof t.data == "function" ? await t.data() : t.data) || await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`), Ye.emoticons = {}, Ye.natives = {}, Ye.categories.unshift({
18996
19000
  id: "frequent",
18997
19001
  emojis: []
18998
19002
  });
18999
- for (const l in Je.aliases) {
19000
- const c = Je.aliases[l], d = Je.emojis[c];
19003
+ for (const l in Ye.aliases) {
19004
+ const c = Ye.aliases[l], d = Ye.emojis[c];
19001
19005
  d && (d.aliases || (d.aliases = []), d.aliases.push(l));
19002
19006
  }
19003
- Je.originalCategories = Je.categories;
19007
+ Ye.originalCategories = Ye.categories;
19004
19008
  }
19005
19009
  if (Qt = (typeof t.i18n == "function" ? await t.i18n() : t.i18n) || (i == "en" ? /* @__PURE__ */ Nk(jk) : await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)), t.custom) for (let l in t.custom) {
19006
19010
  l = parseInt(l);
19007
19011
  const c = t.custom[l], d = t.custom[l - 1];
19008
19012
  if (!(!c.emojis || !c.emojis.length)) {
19009
- c.id || (c.id = `custom_${l + 1}`), c.name || (c.name = Qt.categories.custom), d && !c.icon && (c.target = d.target || d), Je.categories.push(c);
19010
- for (const u of c.emojis) Je.emojis[u.id] = u;
19013
+ c.id || (c.id = `custom_${l + 1}`), c.name || (c.name = Qt.categories.custom), d && !c.icon && (c.target = d.target || d), Ye.categories.push(c);
19014
+ for (const u of c.emojis) Ye.emojis[u.id] = u;
19011
19015
  }
19012
19016
  }
19013
- t.categories && (Je.categories = Je.originalCategories.filter((l) => t.categories.indexOf(l.id) != -1).sort((l, c) => {
19017
+ t.categories && (Ye.categories = Ye.originalCategories.filter((l) => t.categories.indexOf(l.id) != -1).sort((l, c) => {
19014
19018
  const d = t.categories.indexOf(l.id), u = t.categories.indexOf(c.id);
19015
19019
  return d - u;
19016
19020
  }));
19017
19021
  let r = null, s = null;
19018
19022
  n == "native" && (r = T3.latestVersion(), s = t.noCountryFlags || T3.noCountryFlags());
19019
- let o = Je.categories.length, a = !1;
19023
+ let o = Ye.categories.length, a = !1;
19020
19024
  for (; o--; ) {
19021
- const l = Je.categories[o];
19025
+ const l = Ye.categories[o];
19022
19026
  if (l.id == "frequent") {
19023
19027
  let { maxFrequentRows: u, perLine: h } = t;
19024
19028
  u = u >= 0 ? u : Xi.maxFrequentRows.value, h || (h = Xi.perLine.value), l.emojis = $k.get({
@@ -19027,7 +19031,7 @@ async function G$(t) {
19027
19031
  });
19028
19032
  }
19029
19033
  if (!l.emojis || !l.emojis.length) {
19030
- Je.categories.splice(o, 1);
19034
+ Ye.categories.splice(o, 1);
19031
19035
  continue;
19032
19036
  }
19033
19037
  const { categoryIcons: c } = t;
@@ -19037,7 +19041,7 @@ async function G$(t) {
19037
19041
  }
19038
19042
  let d = l.emojis.length;
19039
19043
  for (; d--; ) {
19040
- const u = l.emojis[d], h = u.id ? u : Je.emojis[u], p = () => {
19044
+ const u = l.emojis[d], h = u.id ? u : Ye.emojis[u], p = () => {
19041
19045
  l.emojis.splice(d, 1);
19042
19046
  };
19043
19047
  if (!h || t.exceptEmojis && t.exceptEmojis.includes(h.id)) {
@@ -19078,13 +19082,13 @@ async function G$(t) {
19078
19082
  v
19079
19083
  ]).map((w) => w.toLowerCase())).flat();
19080
19084
  }).flat().filter((g) => g && g.trim()).join(","), h.emoticons) for (const g of h.emoticons)
19081
- Je.emoticons[g] || (Je.emoticons[g] = h.id);
19085
+ Ye.emoticons[g] || (Ye.emoticons[g] = h.id);
19082
19086
  let m = 0;
19083
19087
  for (const g of h.skins) {
19084
19088
  if (!g) continue;
19085
19089
  m++;
19086
19090
  const { native: y } = g;
19087
- y && (Je.natives[y] = h.id, h.search += `,${y}`);
19091
+ y && (Ye.natives[y] = h.id, h.search += `,${y}`);
19088
19092
  const v = m == 1 ? "" : `:skin-tone-${m}:`;
19089
19093
  g.shortcodes = `:${h.id}:${v}`;
19090
19094
  }
@@ -19107,7 +19111,7 @@ function qk(t, e, n, i) {
19107
19111
  const J$ = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;
19108
19112
  let vp = null;
19109
19113
  function Y$(t) {
19110
- return t.id ? t : Je.emojis[t] || Je.emojis[Je.aliases[t]] || Je.emojis[Je.natives[t]];
19114
+ return t.id ? t : Ye.emojis[t] || Ye.emojis[Ye.aliases[t]] || Ye.emojis[Ye.natives[t]];
19111
19115
  }
19112
19116
  function Z$() {
19113
19117
  vp = null;
@@ -19119,7 +19123,7 @@ async function X$(t, { maxResults: e, caller: n } = {}) {
19119
19123
  });
19120
19124
  const i = t.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((a, l, c) => a.trim() && c.indexOf(a) == l);
19121
19125
  if (!i.length) return;
19122
- let r = vp || (vp = Object.values(Je.emojis)), s, o;
19126
+ let r = vp || (vp = Object.values(Ye.emojis)), s, o;
19123
19127
  for (const a of i) {
19124
19128
  if (!r.length) break;
19125
19129
  s = [], o = {};
@@ -19398,8 +19402,8 @@ function bp(t) {
19398
19402
  width: t.size,
19399
19403
  height: t.size,
19400
19404
  backgroundImage: `url(${o})`,
19401
- backgroundSize: `${100 * Je.sheet.cols}% ${100 * Je.sheet.rows}%`,
19402
- backgroundPosition: `${100 / (Je.sheet.cols - 1) * r.x}% ${100 / (Je.sheet.rows - 1) * r.y}%`
19405
+ backgroundSize: `${100 * Ye.sheet.cols}% ${100 * Ye.sheet.rows}%`,
19406
+ backgroundPosition: `${100 / (Ye.sheet.cols - 1) * r.x}% ${100 / (Ye.sheet.rows - 1) * r.y}%`
19403
19407
  }
19404
19408
  })
19405
19409
  });
@@ -19773,7 +19777,7 @@ class vj extends Nd {
19773
19777
  });
19774
19778
  }
19775
19779
  constructor() {
19776
- super(), this.categories = Je.categories.filter((e) => !e.target), this.state = {
19780
+ super(), this.categories = Ye.categories.filter((e) => !e.target), this.state = {
19777
19781
  categoryId: this.categories[0].id
19778
19782
  };
19779
19783
  }
@@ -19856,9 +19860,9 @@ class kj extends Ii {
19856
19860
  this.observers = [].concat(e);
19857
19861
  }
19858
19862
  initGrid() {
19859
- const { categories: e } = Je;
19863
+ const { categories: e } = Ye;
19860
19864
  this.refs.categories = /* @__PURE__ */ new Map();
19861
- const n = Je.categories.map((r) => r.id).join(",");
19865
+ const n = Ye.categories.map((r) => r.id).join(",");
19862
19866
  this.navKey && this.navKey != n && this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0), this.navKey = n, this.grid = [], this.grid.setsize = 0;
19863
19867
  const i = (r, s) => {
19864
19868
  const o = [];
@@ -20267,7 +20271,7 @@ class kj extends Ii {
20267
20271
  }) : null;
20268
20272
  }
20269
20273
  renderCategories() {
20270
- const { categories: e } = Je, n = !!this.state.searchResults, i = this.getPerLine();
20274
+ const { categories: e } = Ye, n = !!this.state.searchResults, i = this.getPerLine();
20271
20275
  return /* @__PURE__ */ Q("div", {
20272
20276
  style: {
20273
20277
  visibility: n ? "hidden" : void 0,
@@ -21463,7 +21467,7 @@ const Tj = ({ link: t, firstName: e, lastName: n, src: i, onClick: r, canReact:
21463
21467
  return b(bn, {
21464
21468
  href: t,
21465
21469
  onClick: r,
21466
- className: M("relative flex flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary no-underline transition-shadow hover:shadow", ct()),
21470
+ className: M("relative flex flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary no-underline transition-shadow hover:shadow", dt()),
21467
21471
  onMouseEnter: g ? void 0 : v,
21468
21472
  onMouseLeave: g ? void 0 : w,
21469
21473
  children: [f("canvas", {
@@ -21529,7 +21533,7 @@ const Tj = ({ link: t, firstName: e, lastName: n, src: i, onClick: r, canReact:
21529
21533
  })
21530
21534
  })
21531
21535
  })]
21532
- }), Koe = xt(Tj, Aj), Goe = ({ title: t, subtitle: e, buttonLabel: n, onClick: i }) => b("div", {
21536
+ }), Koe = kt(Tj, Aj), Goe = ({ title: t, subtitle: e, buttonLabel: n, onClick: i }) => b("div", {
21533
21537
  className: "flex w-full flex-col items-start justify-between gap-4 rounded-md bg-gradient-to-r from-[#F5A51C]/30 via-[#E51943]/30 to-[#5596F6]/30 px-3 py-3 ring-1 ring-inset ring-f1-border-secondary sm:flex-row sm:items-center sm:px-4",
21534
21538
  children: [b("div", {
21535
21539
  className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center",
@@ -21625,7 +21629,7 @@ const K3 = (t) => {
21625
21629
  }), f(ne, {
21626
21630
  className: "h-2.5 w-2/3 rounded-2xs"
21627
21631
  })]
21628
- }), Zk = xt(Dj, Rj), G3 = ({ tags: t, right: e }) => f("div", {
21632
+ }), Zk = kt(Dj, Rj), G3 = ({ tags: t, right: e }) => f("div", {
21629
21633
  className: M("flex flex-1 flex-row items-center gap-1.5", e && "justify-end"),
21630
21634
  children: t.map((n) => {
21631
21635
  const i = f("div", {
@@ -21758,7 +21762,7 @@ const K3 = (t) => {
21758
21762
  })]
21759
21763
  })]
21760
21764
  })]
21761
- }), Xk = xt(Fj, Pj), Bj = /* @__PURE__ */ new Set(["avi", "mkv", "mov", "mpeg", "mp4", "webm", "wmv"]), zj = (t) => {
21765
+ }), Xk = kt(Fj, Pj), Bj = /* @__PURE__ */ new Set(["avi", "mkv", "mov", "mpeg", "mp4", "webm", "wmv"]), zj = (t) => {
21762
21766
  if (!t) return !1;
21763
21767
  if (t.indexOf("//s3.") >= 0)
21764
21768
  return t.indexOf("response-content-type=video") >= 0;
@@ -21950,7 +21954,7 @@ const K3 = (t) => {
21950
21954
  })]
21951
21955
  })]
21952
21956
  })]
21953
- }), Joe = xt($j, jj), Vj = ({ description: t }) => {
21957
+ }), Joe = kt($j, jj), Vj = ({ description: t }) => {
21954
21958
  const [e, n] = V(!1), [i, r] = V(!1), s = Ve(), o = me(null), a = me(null), l = Qc({
21955
21959
  ref: o
21956
21960
  }), c = Qc({
@@ -22787,7 +22791,7 @@ const _u = (t, e) => t && t.type === "copy" ? {
22787
22791
  })]
22788
22792
  });
22789
22793
  o7.displayName = "OnePersonListItem";
22790
- const Qoe = xt(o7, tV), a7 = Hn({
22794
+ const Qoe = kt(o7, tV), a7 = Hn({
22791
22795
  open: !1,
22792
22796
  onClose: () => {
22793
22797
  },
@@ -23506,7 +23510,7 @@ const LV = Ft({
23506
23510
  className: M("mr-4 w-20 rounded-md py-1.5 ring-1 ring-inset ring-transparent", t),
23507
23511
  children: " "
23508
23512
  })
23509
- }), ya = xt(MV, TV), AV = ({ tabs: t, activeTabId: e, setActiveTabId: n, secondary: i = !1, embedded: r = !1 }) => {
23513
+ }), ya = kt(MV, TV), AV = ({ tabs: t, activeTabId: e, setActiveTabId: n, secondary: i = !1, embedded: r = !1 }) => {
23510
23514
  const s = t[0], [o, a] = V(e ?? ("id" in s ? s.id : void 0));
23511
23515
  ie(() => {
23512
23516
  o && (n == null || n(o));
@@ -23555,7 +23559,7 @@ const LV = Ft({
23555
23559
  }), f(ya.Skeleton, {
23556
23560
  className: "w-20"
23557
23561
  })]
23558
- }), IV = xt(AV, OV), DV = ({ tabs: t, activeTabId: e, setActiveTabId: n, withPadding: i = !1, children: r }) => {
23562
+ }), IV = kt(AV, OV), DV = ({ tabs: t, activeTabId: e, setActiveTabId: n, withPadding: i = !1, children: r }) => {
23559
23563
  const { position: s } = l7(), o = c7();
23560
23564
  return b(Me, {
23561
23565
  children: [t && f("div", {
@@ -23890,7 +23894,7 @@ const M7 = ({ className: t, disabled: e }) => {
23890
23894
  },
23891
23895
  checked: r,
23892
23896
  "aria-label": r ? s.ai.closeChat : s.ai.openChat,
23893
- className: M("group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary transition-all hover:bg-f1-background-hover", "shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.04)] data-[state=checked]:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.6)]", "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse", "before:absolute before:inset-0 before:rounded-full before:bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))] before:opacity-0 before:transition-all before:duration-300 before:content-[''] data-[state=checked]:before:opacity-100", e && "cursor-not-allowed opacity-50", ct(), t),
23897
+ className: M("group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary transition-all hover:bg-f1-background-hover", "shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.04)] data-[state=checked]:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.6)]", "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse", "before:absolute before:inset-0 before:rounded-full before:bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))] before:opacity-0 before:transition-all before:duration-300 before:content-[''] data-[state=checked]:before:opacity-100", e && "cursor-not-allowed opacity-50", dt(), t),
23894
23898
  disabled: e,
23895
23899
  onMouseEnter: () => a(!0),
23896
23900
  onMouseLeave: () => a(!1),
@@ -23947,7 +23951,7 @@ const M7 = ({ className: t, disabled: e }) => {
23947
23951
  },
23948
23952
  checked: r,
23949
23953
  "aria-label": r ? s.ai.closeChat : s.ai.openChat,
23950
- className: M("group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary transition-all hover:bg-f1-background-hover", "shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.04)] data-[state=checked]:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.6)]", "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse", "before:absolute before:inset-0 before:rounded-full before:bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))] before:opacity-0 before:transition-all before:duration-300 before:content-[''] data-[state=checked]:before:opacity-100", e && "cursor-not-allowed opacity-50", ct(), t),
23954
+ className: M("group relative h-8 w-12 rounded-full border-none bg-f1-background-inverse-secondary transition-all hover:bg-f1-background-hover", "shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.04)] data-[state=checked]:shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_0_4px_rgba(13,22,37,.6)]", "after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:ring-1 after:ring-inset after:ring-f1-border after:transition-all after:content-[''] data-[state=checked]:after:ring-f1-border-inverse", "before:absolute before:inset-0 before:rounded-full before:bg-[conic-gradient(from_var(--gradient-angle),hsla(229,57%,76%,0.7),hsla(348,80%,50%,0.7),hsla(348,80%,50%,0.7),hsla(18,80%,50%,0.7),hsla(229,57%,76%,0.7),hsla(229,57%,76%,0.7))] before:opacity-0 before:transition-all before:duration-300 before:content-[''] data-[state=checked]:before:opacity-100", e && "cursor-not-allowed opacity-50", dt(), t),
23951
23955
  disabled: e,
23952
23956
  onMouseEnter: () => a(!0),
23953
23957
  onMouseLeave: () => a(!1),
@@ -23997,7 +24001,7 @@ const M7 = ({ className: t, disabled: e }) => {
23997
24001
  return f(Xe, {
23998
24002
  mode: "wait",
23999
24003
  children: f("button", {
24000
- className: M("flex h-6 w-6 items-center justify-center rounded", ct()),
24004
+ className: M("flex h-6 w-6 items-center justify-center rounded", dt()),
24001
24005
  onClick: s,
24002
24006
  "aria-label": n,
24003
24007
  children: t ? f(nv, {
@@ -24698,7 +24702,7 @@ const eH = ({ contentId: t }) => {
24698
24702
  const e = Ve();
24699
24703
  return f("a", {
24700
24704
  href: `#${t}`,
24701
- className: ct("absolute z-50 -translate-y-[1000px] translate-x-4 rounded-md bg-f1-background px-4 py-2.5 text-base font-medium text-f1-foreground no-underline transition-transform duration-200 focus-visible:translate-y-4"),
24705
+ className: dt("absolute z-50 -translate-y-[1000px] translate-x-4 rounded-md bg-f1-background px-4 py-2.5 text-base font-medium text-f1-foreground no-underline transition-transform duration-200 focus-visible:translate-y-4"),
24702
24706
  children: e.actions.skipToContent
24703
24707
  });
24704
24708
  };
@@ -25075,7 +25079,7 @@ function sv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
25075
25079
  size: "sm"
25076
25080
  })
25077
25081
  }), b("div", {
25078
- className: M(ct("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"),
25082
+ className: M(dt("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"),
25079
25083
  onClick: v ? void 0 : () => g == null ? void 0 : g(t.id),
25080
25084
  onMouseEnter: () => h(!0),
25081
25085
  onMouseLeave: () => h(!1),
@@ -25489,7 +25493,7 @@ function rae({ label: t, options: e, hasNewUpdate: n }) {
25489
25493
  children: f(Tn, {
25490
25494
  items: hH(e),
25491
25495
  children: b("button", {
25492
- className: M("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", ct()),
25496
+ className: M("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", dt()),
25493
25497
  "aria-label": t,
25494
25498
  children: [f(xe, {
25495
25499
  icon: vb,
@@ -25573,7 +25577,7 @@ const gH = ({ companies: t, selected: e, onChange: n, children: i, additionalOpt
25573
25577
  open: s,
25574
25578
  onOpenChange: o,
25575
25579
  children: b("div", {
25576
- className: M("group flex w-fit max-w-full flex-nowrap items-center justify-center gap-1 rounded p-1.5 text-f1-foreground transition-colors hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover", ct()),
25580
+ className: M("group flex w-fit max-w-full flex-nowrap items-center justify-center gap-1 rounded p-1.5 text-f1-foreground transition-colors hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover", dt()),
25577
25581
  tabIndex: 0,
25578
25582
  title: e == null ? void 0 : e.name,
25579
25583
  children: [i, f("div", {
@@ -25627,7 +25631,7 @@ function sae({ user: t, options: e, showActivityButton: n = !1, activityButtonSh
25627
25631
  children: f(Tn, {
25628
25632
  items: e,
25629
25633
  children: b("button", {
25630
- className: M("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", ct("focus-visible:ring-inset")),
25634
+ className: M("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", dt("focus-visible:ring-inset")),
25631
25635
  onClick: s,
25632
25636
  children: [f(Pi, {
25633
25637
  src: t.avatarUrl,
@@ -25785,7 +25789,7 @@ const xH = ({ item: t, active: e }) => b("div", {
25785
25789
  });
25786
25790
  return f(bn, {
25787
25791
  ...r,
25788
- className: M("flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline transition-colors", ct("focus-visible:ring-inset"), s ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary"),
25792
+ className: M("flex cursor-pointer items-center rounded py-1.5 pl-1.5 pr-2 no-underline transition-colors", dt("focus-visible:ring-inset"), s ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary"),
25789
25793
  children: f(xH, {
25790
25794
  item: t,
25791
25795
  active: s
@@ -25890,7 +25894,7 @@ const xH = ({ item: t, active: e }) => b("div", {
25890
25894
  children: [f("div", {
25891
25895
  className: "group relative flex items-center",
25892
25896
  children: b("div", {
25893
- className: M("group relative flex w-full select-none items-center gap-1 rounded px-1.5 py-2 text-sm font-medium text-f1-foreground-secondary transition-colors hover:cursor-pointer hover:bg-f1-background-secondary", ct("focus-visible:ring-inset"), n && "hidden"),
25897
+ className: M("group relative flex w-full select-none items-center gap-1 rounded px-1.5 py-2 text-sm font-medium text-f1-foreground-secondary transition-colors hover:cursor-pointer hover:bg-f1-background-secondary", dt("focus-visible:ring-inset"), n && "hidden"),
25894
25898
  onClick: d,
25895
25899
  tabIndex: 0,
25896
25900
  onKeyDown: (u) => {
@@ -26137,7 +26141,7 @@ function lae({ onClick: t, placeholder: e, shortcut: n = ["cmd", "k"], ...i }) {
26137
26141
  className: "px-3",
26138
26142
  children: b("button", {
26139
26143
  onClick: t,
26140
- className: M("mb-[calc(0.75rem-1px)] flex w-full cursor-pointer items-center justify-between rounded bg-f1-background-inverse-secondary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-all hover:ring-f1-border-hover", ct()),
26144
+ className: M("mb-[calc(0.75rem-1px)] flex w-full cursor-pointer items-center justify-between rounded bg-f1-background-inverse-secondary p-1.5 text-f1-foreground-secondary ring-1 ring-inset ring-f1-border-secondary transition-all hover:ring-f1-border-hover", dt()),
26141
26145
  type: "button",
26142
26146
  ...i,
26143
26147
  children: [b("div", {
@@ -26695,7 +26699,7 @@ const uv = ({ message: t }) => b("div", {
26695
26699
  onKeyDown: u
26696
26700
  }), f(oe.div, {
26697
26701
  tabIndex: 0,
26698
- className: M("flex h-5 w-5 items-center justify-center rounded-full", ct()),
26702
+ className: M("flex h-5 w-5 items-center justify-center rounded-full", dt()),
26699
26703
  onClick: (h) => {
26700
26704
  h.stopPropagation(), c();
26701
26705
  },
@@ -26717,7 +26721,7 @@ const uv = ({ message: t }) => b("div", {
26717
26721
  tabIndex: 0,
26718
26722
  layout: !0,
26719
26723
  layoutId: "search-container",
26720
- className: M("relative h-8 w-full bg-f1-border p-px transition-colors hover:bg-f1-border-hover", ct()),
26724
+ className: M("relative h-8 w-full bg-f1-border p-px transition-colors hover:bg-f1-border-hover", dt()),
26721
26725
  onClick: d,
26722
26726
  onKeyDown: u,
26723
26727
  style: {
@@ -26743,7 +26747,7 @@ const uv = ({ message: t }) => b("div", {
26743
26747
  children: t
26744
26748
  }), f(oe.div, {
26745
26749
  tabIndex: 0,
26746
- className: M("flex h-5 w-5 items-center justify-center rounded-full", ct()),
26750
+ className: M("flex h-5 w-5 items-center justify-center rounded-full", dt()),
26747
26751
  onClick: (h) => {
26748
26752
  h.stopPropagation(), c();
26749
26753
  },
@@ -26857,7 +26861,7 @@ const Rc = z.forwardRef(({ className: t, ...e }, n) => f("div", {
26857
26861
  Rc.displayName = "PaginationItem";
26858
26862
  const Su = ({ className: t, isActive: e, ...n }) => f("a", {
26859
26863
  "aria-current": e ? "page" : void 0,
26860
- className: M("flex h-8 min-w-8 select-none items-center justify-center rounded px-1.5 font-medium text-f1-foreground-secondary transition-all hover:cursor-pointer hover:bg-f1-background-secondary-hover", e && "bg-f1-background-selected-bold font-semibold text-f1-foreground-inverse hover:bg-f1-background-selected-bold-hover", ct(), t),
26864
+ className: M("flex h-8 min-w-8 select-none items-center justify-center rounded px-1.5 font-medium text-f1-foreground-secondary transition-all hover:cursor-pointer hover:bg-f1-background-secondary-hover", e && "bg-f1-background-selected-bold font-semibold text-f1-foreground-inverse hover:bg-f1-background-selected-bold-hover", dt(), t),
26861
26865
  ...n
26862
26866
  });
26863
26867
  Su.displayName = "PaginationLink";
@@ -27424,7 +27428,7 @@ function lW({ drag: t, id: e, index: n, total: i, laneId: r, draggable: s = !1,
27424
27428
  style: {
27425
27429
  zIndex: 1
27426
27430
  },
27427
- className: M("z-1 pointer-events-none absolute inset-0 block rounded-xl", ct()),
27431
+ className: M("z-1 pointer-events-none absolute inset-0 block rounded-xl", dt()),
27428
27432
  "aria-label": c.title
27429
27433
  }), o && (l ?? h) && f(Me, {
27430
27434
  children: (() => {
@@ -28934,7 +28938,7 @@ function Fc({ children: t, width: e = "auto", sortState: n = "none", onSortClick
28934
28938
  children: f(mn, {
28935
28939
  label: r,
28936
28940
  children: f("div", {
28937
- className: M("flex h-5 w-5 items-center justify-center rounded-xs", ct()),
28941
+ className: M("flex h-5 w-5 items-center justify-center rounded-xs", dt()),
28938
28942
  tabIndex: 0,
28939
28943
  children: f(xe, {
28940
28944
  icon: s,
@@ -28944,7 +28948,7 @@ function Fc({ children: t, width: e = "auto", sortState: n = "none", onSortClick
28944
28948
  })
28945
28949
  }), i && f(oe.button, {
28946
28950
  onClick: i,
28947
- className: M("relative h-5 w-5 rounded-xs p-1 text-f1-foreground-secondary opacity-0 transition-all focus-within:opacity-100 hover:bg-f1-background-hover group-hover:opacity-100", ct()),
28951
+ className: M("relative h-5 w-5 rounded-xs p-1 text-f1-foreground-secondary opacity-0 transition-all focus-within:opacity-100 hover:bg-f1-background-hover group-hover:opacity-100", dt()),
28948
28952
  "aria-label": "Sort",
28949
28953
  whileTap: {
28950
28954
  scale: 0.8
@@ -29129,7 +29133,7 @@ function FW({ columns: t = 5 }) {
29129
29133
  })
29130
29134
  });
29131
29135
  }
29132
- const bv = xt(RW, FW);
29136
+ const bv = kt(RW, FW);
29133
29137
  function PW({ children: t }) {
29134
29138
  return f(tx, {
29135
29139
  className: M("bg-f1-background-default sticky bottom-0 z-10 shadow-[0_-1px_0_0_var(--f1-border-secondary)]"),
@@ -29549,7 +29553,7 @@ const cx = (t, e, n) => {
29549
29553
  children: t.map((o, a) => {
29550
29554
  const { icon: l, label: c } = s(o);
29551
29555
  return b("button", {
29552
- className: M("flex w-full flex-col items-center justify-center gap-1 rounded-sm p-2 font-medium text-f1-foreground-secondary transition-colors", e === a && "bg-f1-background-secondary text-f1-foreground", ct()),
29556
+ className: M("flex w-full flex-col items-center justify-center gap-1 rounded-sm p-2 font-medium text-f1-foreground-secondary transition-colors", e === a && "bg-f1-background-secondary text-f1-foreground", dt()),
29553
29557
  onClick: () => r(a),
29554
29558
  children: [f(xe, {
29555
29559
  icon: l
@@ -29872,7 +29876,7 @@ const fx = U(({ value: t, compareToValue: e, onDateChange: n, disabled: i, error
29872
29876
  };
29873
29877
  return b("div", {
29874
29878
  ref: h,
29875
- className: M("inline-flex cursor-auto appearance-none gap-1 rounded-md border-0 bg-f1-background px-1 ring-1 ring-inset ring-f1-border transition-all placeholder:text-f1-foreground-tertiary hover:ring-f1-border-hover", "[%>*] py-1", ct("focus:ring-f1-border-hover"), i && "cursor-not-allowed bg-f1-background-secondary opacity-50", r && "ring-f1-border-critical-bold", s),
29879
+ className: M("inline-flex cursor-auto appearance-none gap-1 rounded-md border-0 bg-f1-background px-1 ring-1 ring-inset ring-f1-border transition-all placeholder:text-f1-foreground-tertiary hover:ring-f1-border-hover", "[%>*] py-1", dt("focus:ring-f1-border-hover"), i && "cursor-not-allowed bg-f1-background-secondary opacity-50", r && "ring-f1-border-critical-bold", s),
29876
29880
  onClick: (E) => E.stopPropagation(),
29877
29881
  children: [b("div", {
29878
29882
  className: M("flex flex-1 gap-1", l ? "justify-between" : "justify-center"),
@@ -30205,7 +30209,7 @@ const eq = (t) => "date" in t, tq = {
30205
30209
  }) : "warningMessage" in wt && q({
30206
30210
  warningMessage: wt.warningMessage
30207
30211
  }));
30208
- }, [ht, nt] = V(void 0), [P, $] = V(!0), W = ce(() => [v == null ? void 0 : v.enabled, e.length > 1].some(Boolean), [v, e]), { emptyState: re, setEmptyStateType: de } = zH(s, {
30212
+ }, [pt, nt] = V(void 0), [P, $] = V(!0), W = ce(() => [v == null ? void 0 : v.enabled, e.length > 1].some(Boolean), [v, e]), { emptyState: re, setEmptyStateType: de } = zH(s, {
30209
30213
  retry: () => {
30210
30214
  de(!1), u({
30211
30215
  ...d
@@ -30225,7 +30229,7 @@ const eq = (t) => "date" in t, tq = {
30225
30229
  ie(() => {
30226
30230
  de(!1);
30227
30231
  }, [d, w, m, t.dataAdapter]);
30228
- const X = ce(() => Fe !== void 0, [Fe]), Ne = Fe === void 0 ? null : ht !== void 0 ? Fe(ht) : null, { settings: ze, setSettings: ge } = Nu(), { storageReady: Ze } = sq(l, (a == null ? void 0 : a.features) ?? ["*"], {
30232
+ const X = ce(() => Fe !== void 0, [Fe]), Ne = Fe === void 0 ? null : pt !== void 0 ? Fe(pt) : null, { settings: ze, setSettings: ge } = Nu(), { storageReady: Je } = sq(l, (a == null ? void 0 : a.features) ?? ["*"], {
30229
30233
  settings: {
30230
30234
  value: ze,
30231
30235
  setValue: ge
@@ -30254,8 +30258,8 @@ const eq = (t) => "date" in t, tq = {
30254
30258
  value: d,
30255
30259
  setValue: u
30256
30260
  }
30257
- }), vt = Ap({
30258
- value: P && Ze,
30261
+ }), xt = Ap({
30262
+ value: P && Je,
30259
30263
  delay: 100
30260
30264
  });
30261
30265
  ie(() => {
@@ -30269,10 +30273,10 @@ const eq = (t) => "date" in t, tq = {
30269
30273
  settings: ze
30270
30274
  });
30271
30275
  }, [r, d, w, m, R, D, E, ze]);
30272
- const bt = ce(() => {
30276
+ const st = ce(() => {
30273
30277
  const Ge = C ? Object.keys(C.groupBy).length + (C.mandatory ? 1 : 0) : 0;
30274
30278
  return e && e.length > 1 || Ge > 0 && !(C != null && C.hideSelector) || A && Object.keys(A).length > 0;
30275
- }, [e, C, A]), K = ce(() => W || I || bt || v && v.enabled, [W, I, bt, v]), ve = ce(() => X ? c ? "top" : "bottom" : !1, [c, X]), Se = ce(() => g ? K ? "top" : "bottom" : !1, [g, K]), Ke = ce(() => ve === "top" || Se === "top", [ve, Se]), $e = ce(() => c || K || Se === "bottom" || ve === "bottom", [c, K, Se, ve]);
30279
+ }, [e, C, A]), K = ce(() => W || I || st || v && v.enabled, [W, I, st, v]), ve = ce(() => X ? c ? "top" : "bottom" : !1, [c, X]), Se = ce(() => g ? K ? "top" : "bottom" : !1, [g, K]), Ke = ce(() => ve === "top" || Se === "top", [ve, Se]), $e = ce(() => c || K || Se === "bottom" || ve === "bottom", [c, K, Se, ve]);
30276
30280
  return b("div", {
30277
30281
  className: M("flex flex-col gap-4", be === "standard" && "-mx-6", o && "h-full flex-1"),
30278
30282
  style: {
@@ -30281,7 +30285,7 @@ const eq = (t) => "date" in t, tq = {
30281
30285
  children: [Ke && b("div", {
30282
30286
  className: "border-f1-border-primary flex gap-4 px-4",
30283
30287
  children: [ve === "top" && f(Cv, {
30284
- isReady: !vt,
30288
+ isReady: !xt,
30285
30289
  totalItemSummaryResult: Ne
30286
30290
  }), f("div", {
30287
30291
  className: "flex flex-1 flex-shrink justify-end",
@@ -30294,7 +30298,7 @@ const eq = (t) => "date" in t, tq = {
30294
30298
  }), $e && b("div", {
30295
30299
  className: M("flex flex-row gap-4 px-4", o && "max-h-full"),
30296
30300
  children: [ve === "bottom" && f(Cv, {
30297
- isReady: !vt,
30301
+ isReady: !xt,
30298
30302
  totalItemSummaryResult: Ne
30299
30303
  }), f("div", {
30300
30304
  className: "flex-1",
@@ -30321,7 +30325,7 @@ const eq = (t) => "date" in t, tq = {
30321
30325
  }), v && f(BH, {
30322
30326
  onChange: k,
30323
30327
  value: w
30324
- }), bt && f(UW, {
30328
+ }), st && f(UW, {
30325
30329
  visualizations: e,
30326
30330
  currentVisualization: D,
30327
30331
  onVisualizationChange: F,
@@ -30923,7 +30927,7 @@ function Td(t, e) {
30923
30927
  }
30924
30928
  return !0;
30925
30929
  }
30926
- let lt = class Op {
30930
+ let ct = class Op {
30927
30931
  /**
30928
30932
  @internal
30929
30933
  */
@@ -31028,7 +31032,7 @@ let lt = class Op {
31028
31032
  return n.sort((i, r) => i.type.rank - r.type.rank), n;
31029
31033
  }
31030
31034
  };
31031
- lt.none = [];
31035
+ ct.none = [];
31032
31036
  class Ad extends Error {
31033
31037
  }
31034
31038
  class ke {
@@ -31326,7 +31330,7 @@ class Ja {
31326
31330
  marks() {
31327
31331
  let e = this.parent, n = this.index();
31328
31332
  if (e.content.size == 0)
31329
- return lt.none;
31333
+ return ct.none;
31330
31334
  if (this.textOffset)
31331
31335
  return e.child(n).marks;
31332
31336
  let i = e.maybeChild(n - 1), r = e.maybeChild(n);
@@ -31493,7 +31497,7 @@ let Dr = class Dp {
31493
31497
  /**
31494
31498
  @internal
31495
31499
  */
31496
- constructor(e, n, i, r = lt.none) {
31500
+ constructor(e, n, i, r = ct.none) {
31497
31501
  this.type = e, this.attrs = n, this.marks = r, this.content = i || te.empty;
31498
31502
  }
31499
31503
  /**
@@ -31607,7 +31611,7 @@ let Dr = class Dp {
31607
31611
  attributes, and marks.
31608
31612
  */
31609
31613
  hasMarkup(e, n, i) {
31610
- return this.type == e && Td(this.attrs, n || e.defaultAttrs || uq) && lt.sameSet(this.marks, i || lt.none);
31614
+ return this.type == e && Td(this.attrs, n || e.defaultAttrs || uq) && ct.sameSet(this.marks, i || ct.none);
31611
31615
  }
31612
31616
  /**
31613
31617
  Create a new node with the same markup as this node, containing
@@ -31817,12 +31821,12 @@ let Dr = class Dp {
31817
31821
  */
31818
31822
  check() {
31819
31823
  this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
31820
- let e = lt.none;
31824
+ let e = ct.none;
31821
31825
  for (let n = 0; n < this.marks.length; n++) {
31822
31826
  let i = this.marks[n];
31823
31827
  i.type.checkAttrs(i.attrs), e = i.addToSet(e);
31824
31828
  }
31825
- if (!lt.sameSet(e, this.marks))
31829
+ if (!ct.sameSet(e, this.marks))
31826
31830
  throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((n) => n.type.name)}`);
31827
31831
  this.content.forEach((n) => n.check());
31828
31832
  }
@@ -32365,7 +32369,7 @@ let Mv = class Mx {
32365
32369
  create(e = null, n, i) {
32366
32370
  if (this.isText)
32367
32371
  throw new Error("NodeType.create can't construct text nodes");
32368
- return new Dr(this, this.computeAttrs(e), te.from(n), lt.setFrom(i));
32372
+ return new Dr(this, this.computeAttrs(e), te.from(n), ct.setFrom(i));
32369
32373
  }
32370
32374
  /**
32371
32375
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -32373,7 +32377,7 @@ let Mv = class Mx {
32373
32377
  if it doesn't match.
32374
32378
  */
32375
32379
  createChecked(e = null, n, i) {
32376
- return n = te.from(n), this.checkContent(n), new Dr(this, this.computeAttrs(e), n, lt.setFrom(i));
32380
+ return n = te.from(n), this.checkContent(n), new Dr(this, this.computeAttrs(e), n, ct.setFrom(i));
32377
32381
  }
32378
32382
  /**
32379
32383
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -32391,7 +32395,7 @@ let Mv = class Mx {
32391
32395
  n = o.append(n);
32392
32396
  }
32393
32397
  let r = this.contentMatch.matchFragment(n), s = r && r.fillBefore(te.empty, !0);
32394
- return s ? new Dr(this, e, n.append(s), lt.setFrom(i)) : null;
32398
+ return s ? new Dr(this, e, n.append(s), ct.setFrom(i)) : null;
32395
32399
  }
32396
32400
  /**
32397
32401
  Returns true if the given fragment is valid content for this node
@@ -32447,7 +32451,7 @@ let Mv = class Mx {
32447
32451
  let n;
32448
32452
  for (let i = 0; i < e.length; i++)
32449
32453
  this.allowsMarkType(e[i].type) ? n && n.push(e[i]) : n || (n = e.slice(0, i));
32450
- return n ? n.length ? n : lt.none : e;
32454
+ return n ? n.length ? n : ct.none : e;
32451
32455
  }
32452
32456
  /**
32453
32457
  @internal
@@ -32488,7 +32492,7 @@ class Eu {
32488
32492
  constructor(e, n, i, r) {
32489
32493
  this.name = e, this.rank = n, this.schema = i, this.spec = r, this.attrs = Lx(e, r.attrs), this.excluded = null;
32490
32494
  let s = Sx(this.attrs);
32491
- this.instance = s ? new lt(this, s) : null;
32495
+ this.instance = s ? new ct(this, s) : null;
32492
32496
  }
32493
32497
  /**
32494
32498
  Create a mark of this type. `attrs` may be `null` or an object
@@ -32496,7 +32500,7 @@ class Eu {
32496
32500
  they have defaults, will be added.
32497
32501
  */
32498
32502
  create(e = null) {
32499
- return !e && this.instance ? this.instance : new lt(this, Nx(this.attrs, e));
32503
+ return !e && this.instance ? this.instance : new ct(this, Nx(this.attrs, e));
32500
32504
  }
32501
32505
  /**
32502
32506
  @internal
@@ -32587,7 +32591,7 @@ class Tx {
32587
32591
  */
32588
32592
  text(e, n) {
32589
32593
  let i = this.nodes.text;
32590
- return new Id(i, i.defaultAttrs, e, lt.setFrom(n));
32594
+ return new Id(i, i.defaultAttrs, e, ct.setFrom(n));
32591
32595
  }
32592
32596
  /**
32593
32597
  Create a mark with the given type and attributes.
@@ -32607,7 +32611,7 @@ class Tx {
32607
32611
  bound.
32608
32612
  */
32609
32613
  markFromJSON(e) {
32610
- return lt.fromJSON(this, e);
32614
+ return ct.fromJSON(this, e);
32611
32615
  }
32612
32616
  /**
32613
32617
  @internal
@@ -32668,7 +32672,7 @@ let Ma = class Rp {
32668
32672
  */
32669
32673
  parse(e, n = {}) {
32670
32674
  let i = new Ov(this, n, !1);
32671
- return i.addAll(e, lt.none, n.from, n.to), i.finish();
32675
+ return i.addAll(e, ct.none, n.from, n.to), i.finish();
32672
32676
  }
32673
32677
  /**
32674
32678
  Parses the content of the given DOM node, like
@@ -32680,7 +32684,7 @@ let Ma = class Rp {
32680
32684
  */
32681
32685
  parseSlice(e, n = {}) {
32682
32686
  let i = new Ov(this, n, !0);
32683
- return i.addAll(e, lt.none, n.from, n.to), ke.maxOpen(i.finish());
32687
+ return i.addAll(e, ct.none, n.from, n.to), ke.maxOpen(i.finish());
32684
32688
  }
32685
32689
  /**
32686
32690
  @internal
@@ -32802,7 +32806,7 @@ function Av(t, e, n) {
32802
32806
  }
32803
32807
  class fc {
32804
32808
  constructor(e, n, i, r, s, o) {
32805
- this.type = e, this.attrs = n, this.marks = i, this.solid = r, this.options = o, this.content = [], this.activeMarks = lt.none, this.match = s || (o & Pc ? null : e.contentMatch);
32809
+ this.type = e, this.attrs = n, this.marks = i, this.solid = r, this.options = o, this.content = [], this.activeMarks = ct.none, this.match = s || (o & Pc ? null : e.contentMatch);
32806
32810
  }
32807
32811
  findWrapping(e) {
32808
32812
  if (!this.match) {
@@ -32837,7 +32841,7 @@ class Ov {
32837
32841
  constructor(e, n, i) {
32838
32842
  this.parser = e, this.options = n, this.isOpen = i, this.open = 0, this.localPreserveWS = !1;
32839
32843
  let r = n.topNode, s, o = Av(null, n.preserveWhitespace, 0) | (i ? Pc : 0);
32840
- r ? s = new fc(r.type, r.attrs, lt.none, !0, n.topMatch || r.type.contentMatch, o) : i ? s = new fc(null, null, lt.none, !0, null, o) : s = new fc(e.schema.topNodeType, null, lt.none, !0, null, o), this.nodes = [s], this.find = n.findPositions, this.needsBlock = !1;
32844
+ r ? s = new fc(r.type, r.attrs, ct.none, !0, n.topMatch || r.type.contentMatch, o) : i ? s = new fc(null, null, ct.none, !0, null, o) : s = new fc(e.schema.topNodeType, null, ct.none, !0, null, o), this.nodes = [s], this.find = n.findPositions, this.needsBlock = !1;
32841
32845
  }
32842
32846
  get top() {
32843
32847
  return this.nodes[this.open];
@@ -32987,7 +32991,7 @@ class Ov {
32987
32991
  this.closeExtra();
32988
32992
  let r = this.top;
32989
32993
  r.match && (r.match = r.match.matchType(e.type));
32990
- let s = lt.none;
32994
+ let s = ct.none;
32991
32995
  for (let o of i.concat(e.marks))
32992
32996
  (r.type ? r.type.allowsMarkType(o.type) : Dv(o.type, e.type)) && (s = o.addToSet(s));
32993
32997
  return r.content.push(e.mark(s)), !0;
@@ -33007,7 +33011,7 @@ class Ov {
33007
33011
  o.match = o.match && o.match.matchType(e);
33008
33012
  let a = Av(e, s, o.options);
33009
33013
  o.options & Pc && o.content.length == 0 && (a |= Pc);
33010
- let l = lt.none;
33014
+ let l = ct.none;
33011
33015
  return i = i.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : Dv(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new fc(e, n, l, r, null, a)), this.open++, i;
33012
33016
  }
33013
33017
  // Make sure all nodes above this.open are finished and added to
@@ -34755,7 +34759,7 @@ class Ux {
34755
34759
  position `pos`.
34756
34760
  */
34757
34761
  removeNodeMark(e, n) {
34758
- if (!(n instanceof lt)) {
34762
+ if (!(n instanceof ct)) {
34759
34763
  let i = this.doc.nodeAt(e);
34760
34764
  if (!i)
34761
34765
  throw new RangeError("No node at position " + e);
@@ -35238,7 +35242,7 @@ let eU = class extends Ux {
35238
35242
  this is already the case.
35239
35243
  */
35240
35244
  ensureMarks(e) {
35241
- return lt.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
35245
+ return ct.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
35242
35246
  }
35243
35247
  /**
35244
35248
  Add a mark to the set of stored marks.
@@ -35283,7 +35287,7 @@ let eU = class extends Ux {
35283
35287
  */
35284
35288
  replaceSelectionWith(e, n = !0) {
35285
35289
  let i = this.selection;
35286
- return n && (e = e.mark(this.storedMarks || (i.empty ? i.$from.marks() : i.$from.marksAcross(i.$to) || lt.none))), i.replaceWith(this, e), this;
35290
+ return n && (e = e.mark(this.storedMarks || (i.empty ? i.$from.marks() : i.$from.marksAcross(i.$to) || ct.none))), i.replaceWith(this, e), this;
35287
35291
  }
35288
35292
  /**
35289
35293
  Delete the selection.
@@ -35569,7 +35573,7 @@ function Gx(t, e, n) {
35569
35573
  }
35570
35574
  return n;
35571
35575
  }
35572
- class st {
35576
+ class ot {
35573
35577
  /**
35574
35578
  Create a plugin.
35575
35579
  */
@@ -35587,7 +35591,7 @@ const eh = /* @__PURE__ */ Object.create(null);
35587
35591
  function Jx(t) {
35588
35592
  return t in eh ? t + "$" + ++eh[t] : (eh[t] = 0, t + "$");
35589
35593
  }
35590
- class ut {
35594
+ class ht {
35591
35595
  /**
35592
35596
  Create a plugin key.
35593
35597
  */
@@ -36553,7 +36557,7 @@ class Fr extends $l {
36553
36557
  updateChildren(e, n) {
36554
36558
  let i = this.node.inlineContent, r = n, s = e.composing ? this.localCompositionInfo(e, n) : null, o = s && s.pos > -1 ? s : null, a = s && s.pos < 0, l = new MU(this, o && o.node, e);
36555
36559
  OU(this.node, this.innerDeco, (c, d, u) => {
36556
- c.spec.marks ? l.syncToMarks(c.spec.marks, i, e) : c.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? lt.none : this.node.child(d).marks, i, e), l.placeWidget(c, e, r);
36560
+ c.spec.marks ? l.syncToMarks(c.spec.marks, i, e) : c.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? ct.none : this.node.child(d).marks, i, e), l.placeWidget(c, e, r);
36557
36561
  }, (c, d, u, h) => {
36558
36562
  l.syncToMarks(c.marks, i, e);
36559
36563
  let p;
@@ -38198,7 +38202,7 @@ class Yt {
38198
38202
  }
38199
38203
  }
38200
38204
  const io = [], bs = {};
38201
- class at {
38205
+ class lt {
38202
38206
  /**
38203
38207
  @internal
38204
38208
  */
@@ -38252,7 +38256,7 @@ class at {
38252
38256
  let l = this.local[a].map(e, i, r);
38253
38257
  l && l.type.valid(n, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
38254
38258
  }
38255
- return this.children.length ? yK(this.children, o || [], e, n, i, r, s) : o ? new at(o.sort(ks), io) : en;
38259
+ return this.children.length ? yK(this.children, o || [], e, n, i, r, s) : o ? new lt(o.sort(ks), io) : en;
38256
38260
  }
38257
38261
  /**
38258
38262
  Add the given array of decorations to the ones in the set,
@@ -38261,7 +38265,7 @@ class at {
38261
38265
  structure.
38262
38266
  */
38263
38267
  add(e, n) {
38264
- return n.length ? this == en ? at.create(e, n) : this.addInner(e, n, 0) : this;
38268
+ return n.length ? this == en ? lt.create(e, n) : this.addInner(e, n, 0) : this;
38265
38269
  }
38266
38270
  addInner(e, n, i) {
38267
38271
  let r, s = 0;
@@ -38276,7 +38280,7 @@ class at {
38276
38280
  let o = Nw(s ? Lw(n) : n, -i);
38277
38281
  for (let a = 0; a < o.length; a++)
38278
38282
  o[a].type.valid(e, o[a]) || o.splice(a--, 1);
38279
- return new at(o.length ? this.local.concat(o).sort(ks) : this.local, r || this.children);
38283
+ return new lt(o.length ? this.local.concat(o).sort(ks) : this.local, r || this.children);
38280
38284
  }
38281
38285
  /**
38282
38286
  Create a new set that contains the decorations in this set, minus
@@ -38303,13 +38307,13 @@ class at {
38303
38307
  for (let a = 0; a < r.length; a++)
38304
38308
  r[a].eq(o, n) && (r == this.local && (r = this.local.slice()), r.splice(a--, 1));
38305
38309
  }
38306
- return i == this.children && r == this.local ? this : r.length || i.length ? new at(r, i) : en;
38310
+ return i == this.children && r == this.local ? this : r.length || i.length ? new lt(r, i) : en;
38307
38311
  }
38308
38312
  forChild(e, n) {
38309
38313
  if (this == en)
38310
38314
  return this;
38311
38315
  if (n.isLeaf)
38312
- return at.empty;
38316
+ return lt.empty;
38313
38317
  let i, r;
38314
38318
  for (let a = 0; a < this.children.length; a += 3)
38315
38319
  if (this.children[a] >= e) {
@@ -38325,7 +38329,7 @@ class at {
38325
38329
  }
38326
38330
  }
38327
38331
  if (r) {
38328
- let a = new at(r.sort(ks), io);
38332
+ let a = new lt(r.sort(ks), io);
38329
38333
  return i ? new Sr([a, i]) : a;
38330
38334
  }
38331
38335
  return i || en;
@@ -38336,7 +38340,7 @@ class at {
38336
38340
  eq(e) {
38337
38341
  if (this == e)
38338
38342
  return !0;
38339
- if (!(e instanceof at) || this.local.length != e.local.length || this.children.length != e.children.length)
38343
+ if (!(e instanceof lt) || this.local.length != e.local.length || this.children.length != e.children.length)
38340
38344
  return !1;
38341
38345
  for (let n = 0; n < this.local.length; n++)
38342
38346
  if (!this.local[n].eq(e.local[n]))
@@ -38369,9 +38373,9 @@ class at {
38369
38373
  e(this);
38370
38374
  }
38371
38375
  }
38372
- at.empty = new at([], []);
38373
- at.removeOverlap = mg;
38374
- const en = at.empty;
38376
+ lt.empty = new lt([], []);
38377
+ lt.removeOverlap = mg;
38378
+ const en = lt.empty;
38375
38379
  class Sr {
38376
38380
  constructor(e) {
38377
38381
  this.members = e;
@@ -38382,7 +38386,7 @@ class Sr {
38382
38386
  }
38383
38387
  forChild(e, n) {
38384
38388
  if (n.isLeaf)
38385
- return at.empty;
38389
+ return lt.empty;
38386
38390
  let i = [];
38387
38391
  for (let r = 0; r < this.members.length; r++) {
38388
38392
  let s = this.members[r].forChild(e, n);
@@ -38422,7 +38426,7 @@ class Sr {
38422
38426
  case 1:
38423
38427
  return e[0];
38424
38428
  default:
38425
- return new Sr(e.every((n) => n instanceof at) ? e : e.reduce((n, i) => n.concat(i instanceof at ? i : i.members), []));
38429
+ return new Sr(e.every((n) => n instanceof lt) ? e : e.reduce((n, i) => n.concat(i instanceof lt ? i : i.members), []));
38426
38430
  }
38427
38431
  }
38428
38432
  forEachSet(e) {
@@ -38477,7 +38481,7 @@ function yK(t, e, n, i, r, s, o) {
38477
38481
  a.splice(h, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
38478
38482
  }
38479
38483
  }
38480
- return new at(e.sort(ks), a);
38484
+ return new lt(e.sort(ks), a);
38481
38485
  }
38482
38486
  function Nw(t, e) {
38483
38487
  if (!e || !t.length)
@@ -38529,7 +38533,7 @@ function Bd(t, e, n, i) {
38529
38533
  let o = Nw(s ? Lw(t) : t, -n).sort(ks);
38530
38534
  for (let a = 0; a < o.length; a++)
38531
38535
  o[a].type.valid(e, o[a]) || (i.onRemove && i.onRemove(o[a].spec), o.splice(a--, 1));
38532
- return o.length || r.length ? new at(o, r) : en;
38536
+ return o.length || r.length ? new lt(o, r) : en;
38533
38537
  }
38534
38538
  function ks(t, e) {
38535
38539
  return t.from - e.from || t.to - e.to;
@@ -38562,7 +38566,7 @@ function rh(t) {
38562
38566
  return t.someProp("decorations", (n) => {
38563
38567
  let i = n(t.state);
38564
38568
  i && i != en && e.push(i);
38565
- }), t.cursorWrapper && e.push(at.create(t.state.doc, [t.cursorWrapper.deco])), Sr.from(e);
38569
+ }), t.cursorWrapper && e.push(lt.create(t.state.doc, [t.cursorWrapper.deco])), Sr.from(e);
38566
38570
  }
38567
38571
  const bK = {
38568
38572
  childList: !0,
@@ -39458,7 +39462,7 @@ function ah(t, e, n = !0) {
39458
39462
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
39459
39463
  }
39460
39464
  function VK(t) {
39461
- return new st({ props: { handleKeyDown: Mw(t) } });
39465
+ return new ot({ props: { handleKeyDown: Mw(t) } });
39462
39466
  }
39463
39467
  function Mw(t) {
39464
39468
  let e = jK(t);
@@ -40336,7 +40340,7 @@ function uc(t) {
40336
40340
  }), d;
40337
40341
  }
40338
40342
  function mG(t) {
40339
- const { editor: e, rules: n } = t, i = new st({
40343
+ const { editor: e, rules: n } = t, i = new ot({
40340
40344
  state: {
40341
40345
  init() {
40342
40346
  return null;
@@ -40549,7 +40553,7 @@ function wG(t) {
40549
40553
  return o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
40550
40554
  }
40551
40555
  };
40552
- return n.map((d) => new st({
40556
+ return n.map((d) => new ot({
40553
40557
  // we register a global drag handler to track the current drag source element
40554
40558
  view(u) {
40555
40559
  const h = (m) => {
@@ -40779,7 +40783,7 @@ class lo {
40779
40783
  });
40780
40784
  }
40781
40785
  }
40782
- class ft {
40786
+ class ut {
40783
40787
  constructor(e = {}) {
40784
40788
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
40785
40789
  name: this.name,
@@ -40795,7 +40799,7 @@ class ft {
40795
40799
  })) || {};
40796
40800
  }
40797
40801
  static create(e = {}) {
40798
- return new ft(e);
40802
+ return new ut(e);
40799
40803
  }
40800
40804
  configure(e = {}) {
40801
40805
  const n = this.extend({
@@ -40805,7 +40809,7 @@ class ft {
40805
40809
  return n.name = this.name, n.parent = this.parent, n;
40806
40810
  }
40807
40811
  extend(e = {}) {
40808
- const n = new ft({ ...this.config, ...e });
40812
+ const n = new ut({ ...this.config, ...e });
40809
40813
  return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = qe(Ee(n, "addOptions", {
40810
40814
  name: n.name
40811
40815
  })), n.storage = qe(Ee(n, "addStorage", {
@@ -40837,7 +40841,7 @@ function Ww(t, e, n) {
40837
40841
  function qw(t) {
40838
40842
  return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
40839
40843
  }
40840
- const CG = ft.create({
40844
+ const CG = ut.create({
40841
40845
  name: "clipboardTextSerializer",
40842
40846
  addOptions() {
40843
40847
  return {
@@ -40846,8 +40850,8 @@ const CG = ft.create({
40846
40850
  },
40847
40851
  addProseMirrorPlugins() {
40848
40852
  return [
40849
- new st({
40850
- key: new ut("clipboardTextSerializer"),
40853
+ new ot({
40854
+ key: new ht("clipboardTextSerializer"),
40851
40855
  props: {
40852
40856
  clipboardTextSerializer: () => {
40853
40857
  const { editor: t } = this, { state: e, schema: n } = t, { doc: i, selection: r } = e, { ranges: s } = r, o = Math.min(...s.map((d) => d.$from.pos)), a = Math.max(...s.map((d) => d.$to.pos)), l = qw(n);
@@ -41830,19 +41834,19 @@ var VJ = /* @__PURE__ */ Object.freeze({
41830
41834
  wrapIn: $J,
41831
41835
  wrapInList: jJ
41832
41836
  });
41833
- const HJ = ft.create({
41837
+ const HJ = ut.create({
41834
41838
  name: "commands",
41835
41839
  addCommands() {
41836
41840
  return {
41837
41841
  ...VJ
41838
41842
  };
41839
41843
  }
41840
- }), WJ = ft.create({
41844
+ }), WJ = ut.create({
41841
41845
  name: "drop",
41842
41846
  addProseMirrorPlugins() {
41843
41847
  return [
41844
- new st({
41845
- key: new ut("tiptapDrop"),
41848
+ new ot({
41849
+ key: new ht("tiptapDrop"),
41846
41850
  props: {
41847
41851
  handleDrop: (t, e, n, i) => {
41848
41852
  this.editor.emit("drop", {
@@ -41856,24 +41860,24 @@ const HJ = ft.create({
41856
41860
  })
41857
41861
  ];
41858
41862
  }
41859
- }), qJ = ft.create({
41863
+ }), qJ = ut.create({
41860
41864
  name: "editable",
41861
41865
  addProseMirrorPlugins() {
41862
41866
  return [
41863
- new st({
41864
- key: new ut("editable"),
41867
+ new ot({
41868
+ key: new ht("editable"),
41865
41869
  props: {
41866
41870
  editable: () => this.editor.options.editable
41867
41871
  }
41868
41872
  })
41869
41873
  ];
41870
41874
  }
41871
- }), UJ = new ut("focusEvents"), KJ = ft.create({
41875
+ }), UJ = new ht("focusEvents"), KJ = ut.create({
41872
41876
  name: "focusEvents",
41873
41877
  addProseMirrorPlugins() {
41874
41878
  const { editor: t } = this;
41875
41879
  return [
41876
- new st({
41880
+ new ot({
41877
41881
  key: UJ,
41878
41882
  props: {
41879
41883
  handleDOMEvents: {
@@ -41892,7 +41896,7 @@ const HJ = ft.create({
41892
41896
  })
41893
41897
  ];
41894
41898
  }
41895
- }), GJ = ft.create({
41899
+ }), GJ = ut.create({
41896
41900
  name: "keymap",
41897
41901
  addKeyboardShortcuts() {
41898
41902
  const t = () => this.editor.commands.first(({ commands: o }) => [
@@ -41946,8 +41950,8 @@ const HJ = ft.create({
41946
41950
  // to a paragraph if necessary.
41947
41951
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
41948
41952
  // with many other commands.
41949
- new st({
41950
- key: new ut("clearDocument"),
41953
+ new ot({
41954
+ key: new ht("clearDocument"),
41951
41955
  appendTransaction: (t, e, n) => {
41952
41956
  if (t.some((g) => g.getMeta("composition")))
41953
41957
  return;
@@ -41970,12 +41974,12 @@ const HJ = ft.create({
41970
41974
  })
41971
41975
  ];
41972
41976
  }
41973
- }), JJ = ft.create({
41977
+ }), JJ = ut.create({
41974
41978
  name: "paste",
41975
41979
  addProseMirrorPlugins() {
41976
41980
  return [
41977
- new st({
41978
- key: new ut("tiptapPaste"),
41981
+ new ot({
41982
+ key: new ht("tiptapPaste"),
41979
41983
  props: {
41980
41984
  handlePaste: (t, e, n) => {
41981
41985
  this.editor.emit("paste", {
@@ -41988,12 +41992,12 @@ const HJ = ft.create({
41988
41992
  })
41989
41993
  ];
41990
41994
  }
41991
- }), YJ = ft.create({
41995
+ }), YJ = ut.create({
41992
41996
  name: "tabindex",
41993
41997
  addProseMirrorPlugins() {
41994
41998
  return [
41995
- new st({
41996
- key: new ut("tabindex"),
41999
+ new ot({
42000
+ key: new ht("tabindex"),
41997
42001
  props: {
41998
42002
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
41999
42003
  }
@@ -43488,8 +43492,8 @@ function JY(t) {
43488
43492
  var A, D = x === "y" ? En : Ln, F = x === "y" ? oi : ai, j = x === "y" ? "height" : "width", G = _[x], J = G + y[D], Z = G - y[F], O = p ? -E[j] / 2 : 0, we = w === Oo ? T[j] : E[j], ae = w === Oo ? -E[j] : -T[j], I = e.elements.arrow, he = p && I ? Lg(I) : {
43489
43493
  width: 0,
43490
43494
  height: 0
43491
- }, Ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o_(), be = Ie[D], B = Ie[F], q = Oa(0, T[j], he[j]), le = k ? T[j] / 2 - O - q - be - C.mainAxis : we - q - be - C.mainAxis, Y = k ? -T[j] / 2 + O + q + B + C.mainAxis : ae + q + B + C.mainAxis, _e = e.elements.arrow && Hl(e.elements.arrow), Le = _e ? x === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Oe = (A = R == null ? void 0 : R[x]) != null ? A : 0, Fe = G + le - Oe - Le, rt = G + Y - Oe, ht = Oa(p ? Vd(J, Fe) : J, G, p ? xs(Z, rt) : Z);
43492
- _[x] = ht, N[x] = ht - G;
43495
+ }, Ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o_(), be = Ie[D], B = Ie[F], q = Oa(0, T[j], he[j]), le = k ? T[j] / 2 - O - q - be - C.mainAxis : we - q - be - C.mainAxis, Y = k ? -T[j] / 2 + O + q + B + C.mainAxis : ae + q + B + C.mainAxis, _e = e.elements.arrow && Hl(e.elements.arrow), Le = _e ? x === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Oe = (A = R == null ? void 0 : R[x]) != null ? A : 0, Fe = G + le - Oe - Le, rt = G + Y - Oe, pt = Oa(p ? Vd(J, Fe) : J, G, p ? xs(Z, rt) : Z);
43496
+ _[x] = pt, N[x] = pt - G;
43493
43497
  }
43494
43498
  if (a) {
43495
43499
  var nt, P = x === "x" ? En : Ln, $ = x === "x" ? oi : ai, W = _[S], re = S === "y" ? "height" : "width", de = W + y[P], se = W - y[$], Ce = [En, Ln].indexOf(v) !== -1, Te = (nt = R == null ? void 0 : R[S]) != null ? nt : 0, H = Ce ? de : W - T[re] - E[re] - Te + C.altAxis, X = Ce ? W + T[re] + E[re] - Te - C.altAxis : se, Ne = p && Ce ? bY(H, W, X) : Oa(p ? H : de, W, p ? X : se);
@@ -44086,11 +44090,11 @@ function RZ(t, e) {
44086
44090
  setContent: Ne,
44087
44091
  show: ze,
44088
44092
  hide: ge,
44089
- hideWithInteractivity: Ze,
44093
+ hideWithInteractivity: Je,
44090
44094
  enable: Ce,
44091
44095
  disable: Te,
44092
- unmount: vt,
44093
- destroy: bt
44096
+ unmount: xt,
44097
+ destroy: st
44094
44098
  };
44095
44099
  if (!n.render)
44096
44100
  return process.env.NODE_ENV !== "production" && tm(!0, "render() function has not been supplied."), x;
@@ -44239,10 +44243,10 @@ function RZ(t, e) {
44239
44243
  Y("mouseleave", rt);
44240
44244
  break;
44241
44245
  case "focus":
44242
- Y(SZ ? "focusout" : "blur", ht);
44246
+ Y(SZ ? "focusout" : "blur", pt);
44243
44247
  break;
44244
44248
  case "focusin":
44245
- Y("focusout", ht);
44249
+ Y("focusout", pt);
44246
44250
  break;
44247
44251
  }
44248
44252
  });
@@ -44286,7 +44290,7 @@ function RZ(t, e) {
44286
44290
  se(K);
44287
44291
  }
44288
44292
  }
44289
- function ht(K) {
44293
+ function pt(K) {
44290
44294
  x.props.trigger.indexOf("focusin") < 0 && K.target !== A() || x.props.interactive && K.relatedTarget && _.contains(K.relatedTarget) || se(K);
44291
44295
  }
44292
44296
  function nt(K) {
@@ -44446,17 +44450,17 @@ function RZ(t, e) {
44446
44450
  Z(), O(), x.props.animation ? N() && B(Ke, x.unmount) : x.unmount();
44447
44451
  }
44448
44452
  }
44449
- function Ze(K) {
44453
+ function Je(K) {
44450
44454
  process.env.NODE_ENV !== "production" && Yi(x.state.isDestroyed, Xs("hideWithInteractivity")), D().addEventListener("mousemove", m), H4(yc, m), m(K);
44451
44455
  }
44452
- function vt() {
44456
+ function xt() {
44453
44457
  process.env.NODE_ENV !== "production" && Yi(x.state.isDestroyed, Xs("unmount")), x.state.isVisible && x.hide(), x.state.isMounted && ($(), re().forEach(function(K) {
44454
44458
  K._tippy.unmount();
44455
44459
  }), _.parentNode && _.parentNode.removeChild(_), ph = ph.filter(function(K) {
44456
44460
  return K !== x;
44457
44461
  }), x.state.isMounted = !1, J("onHidden", [x]));
44458
44462
  }
44459
- function bt() {
44463
+ function st() {
44460
44464
  process.env.NODE_ENV !== "production" && Yi(x.state.isDestroyed, Xs("destroy")), !x.state.isDestroyed && (x.clearDelayTimeouts(), x.unmount(), Le(), delete t._tippy, x.state.isDestroyed = !0, J("onDestroy", [x]));
44461
44465
  }
44462
44466
  }
@@ -44599,11 +44603,11 @@ class FZ {
44599
44603
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
44600
44604
  }
44601
44605
  }
44602
- const w_ = (t) => new st({
44603
- key: typeof t.pluginKey == "string" ? new ut(t.pluginKey) : t.pluginKey,
44606
+ const w_ = (t) => new ot({
44607
+ key: typeof t.pluginKey == "string" ? new ht(t.pluginKey) : t.pluginKey,
44604
44608
  view: (e) => new FZ({ view: e, ...t })
44605
44609
  });
44606
- ft.create({
44610
+ ut.create({
44607
44611
  name: "bubbleMenu",
44608
44612
  addOptions() {
44609
44613
  return {
@@ -45545,7 +45549,7 @@ const oX = ({ editor: t, disabled: e, labels: n }) => {
45545
45549
  icon: $n
45546
45550
  })
45547
45551
  }), b("div", {
45548
- className: M("flex w-80 appearance-none items-center gap-2 rounded border-0 bg-f1-background py-1 pl-2 pr-1 ring-1 ring-inset ring-f1-border transition-all placeholder:text-f1-foreground-tertiary", t.isActive("link") ? "cursor-auto" : ct("focus:ring-f1-border-hover") + "hover:ring-f1-border-hover"),
45552
+ className: M("flex w-80 appearance-none items-center gap-2 rounded border-0 bg-f1-background py-1 pl-2 pr-1 ring-1 ring-inset ring-f1-border transition-all placeholder:text-f1-foreground-tertiary", t.isActive("link") ? "cursor-auto" : dt("focus:ring-f1-border-hover") + "hover:ring-f1-border-hover"),
45549
45553
  children: [f("div", {
45550
45554
  className: M("flex items-center justify-center", o.length > 0 ? "w-6" : "w-4"),
45551
45555
  children: f(H6, {
@@ -45990,7 +45994,7 @@ const s5 = ({ items: t, disabled: e = !1, activator: n, darkMode: i = !1, positi
45990
45994
  }
45991
45995
  };
45992
45996
  }
45993
- }), hX = ft.create({
45997
+ }), hX = ut.create({
45994
45998
  name: "color",
45995
45999
  addOptions() {
45996
46000
  return {
@@ -46146,7 +46150,7 @@ const s5 = ({ items: t, disabled: e = !1, activator: n, darkMode: i = !1, positi
46146
46150
  }), BX = (t) => Nt({
46147
46151
  find: /(?:^|\s)(3\/4)\s$/,
46148
46152
  replace: t ?? "¾"
46149
- }), zX = ft.create({
46153
+ }), zX = ut.create({
46150
46154
  name: "typography",
46151
46155
  addOptions() {
46152
46156
  return {
@@ -46370,7 +46374,7 @@ const s5 = ({ items: t, disabled: e = !1, activator: n, darkMode: i = !1, positi
46370
46374
  class: "f1-task-item"
46371
46375
  }
46372
46376
  });
46373
- class kt extends je {
46377
+ class bt extends je {
46374
46378
  /**
46375
46379
  Create a gap cursor.
46376
46380
  */
@@ -46379,13 +46383,13 @@ class kt extends je {
46379
46383
  }
46380
46384
  map(e, n) {
46381
46385
  let i = e.resolve(n.map(this.head));
46382
- return kt.valid(i) ? new kt(i) : je.near(i);
46386
+ return bt.valid(i) ? new bt(i) : je.near(i);
46383
46387
  }
46384
46388
  content() {
46385
46389
  return ke.empty;
46386
46390
  }
46387
46391
  eq(e) {
46388
- return e instanceof kt && e.head == this.head;
46392
+ return e instanceof bt && e.head == this.head;
46389
46393
  }
46390
46394
  toJSON() {
46391
46395
  return { type: "gapcursor", pos: this.head };
@@ -46396,7 +46400,7 @@ class kt extends je {
46396
46400
  static fromJSON(e, n) {
46397
46401
  if (typeof n.pos != "number")
46398
46402
  throw new RangeError("Invalid input for GapCursor.fromJSON");
46399
- return new kt(e.resolve(n.pos));
46403
+ return new bt(e.resolve(n.pos));
46400
46404
  }
46401
46405
  /**
46402
46406
  @internal
@@ -46422,7 +46426,7 @@ class kt extends je {
46422
46426
  */
46423
46427
  static findGapCursorFrom(e, n, i = !1) {
46424
46428
  e: for (; ; ) {
46425
- if (!i && kt.valid(e))
46429
+ if (!i && bt.valid(e))
46426
46430
  return e;
46427
46431
  let r = e.pos, s = null;
46428
46432
  for (let o = e.depth; ; o--) {
@@ -46434,7 +46438,7 @@ class kt extends je {
46434
46438
  return null;
46435
46439
  r += n;
46436
46440
  let l = e.doc.resolve(r);
46437
- if (kt.valid(l))
46441
+ if (bt.valid(l))
46438
46442
  return l;
46439
46443
  }
46440
46444
  for (; ; ) {
@@ -46448,16 +46452,16 @@ class kt extends je {
46448
46452
  }
46449
46453
  s = o, r += n;
46450
46454
  let a = e.doc.resolve(r);
46451
- if (kt.valid(a))
46455
+ if (bt.valid(a))
46452
46456
  return a;
46453
46457
  }
46454
46458
  return null;
46455
46459
  }
46456
46460
  }
46457
46461
  }
46458
- kt.prototype.visible = !1;
46459
- kt.findFrom = kt.findGapCursorFrom;
46460
- je.jsonID("gapcursor", kt);
46462
+ bt.prototype.visible = !1;
46463
+ bt.findFrom = bt.findGapCursorFrom;
46464
+ je.jsonID("gapcursor", bt);
46461
46465
  class Wg {
46462
46466
  constructor(e) {
46463
46467
  this.pos = e;
@@ -46467,7 +46471,7 @@ class Wg {
46467
46471
  }
46468
46472
  resolve(e) {
46469
46473
  let n = e.resolve(this.pos);
46470
- return kt.valid(n) ? new kt(n) : je.near(n);
46474
+ return bt.valid(n) ? new bt(n) : je.near(n);
46471
46475
  }
46472
46476
  }
46473
46477
  function WX(t) {
@@ -46505,11 +46509,11 @@ function qX(t) {
46505
46509
  return !0;
46506
46510
  }
46507
46511
  function UX() {
46508
- return new st({
46512
+ return new ot({
46509
46513
  props: {
46510
46514
  decorations: YX,
46511
46515
  createSelectionBetween(t, e, n) {
46512
- return e.pos == n.pos && kt.valid(n) ? new kt(n) : null;
46516
+ return e.pos == n.pos && bt.valid(n) ? new bt(n) : null;
46513
46517
  },
46514
46518
  handleClick: GX,
46515
46519
  handleKeyDown: KX,
@@ -46532,21 +46536,21 @@ function vc(t, e) {
46532
46536
  return !1;
46533
46537
  l = !1, a = i.doc.resolve(e > 0 ? a.after() : a.before());
46534
46538
  }
46535
- let c = kt.findGapCursorFrom(a, e, l);
46536
- return c ? (r && r(i.tr.setSelection(new kt(c))), !0) : !1;
46539
+ let c = bt.findGapCursorFrom(a, e, l);
46540
+ return c ? (r && r(i.tr.setSelection(new bt(c))), !0) : !1;
46537
46541
  };
46538
46542
  }
46539
46543
  function GX(t, e, n) {
46540
46544
  if (!t || !t.editable)
46541
46545
  return !1;
46542
46546
  let i = t.state.doc.resolve(e);
46543
- if (!kt.valid(i))
46547
+ if (!bt.valid(i))
46544
46548
  return !1;
46545
46549
  let r = t.posAtCoords({ left: n.clientX, top: n.clientY });
46546
- return r && r.inside > -1 && Ae.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new kt(i))), !0);
46550
+ return r && r.inside > -1 && Ae.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new bt(i))), !0);
46547
46551
  }
46548
46552
  function JX(t, e) {
46549
- if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof kt))
46553
+ if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof bt))
46550
46554
  return !1;
46551
46555
  let { $from: n } = t.state.selection, i = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
46552
46556
  if (!i)
@@ -46558,10 +46562,10 @@ function JX(t, e) {
46558
46562
  return s.setSelection(Be.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
46559
46563
  }
46560
46564
  function YX(t) {
46561
- if (!(t.selection instanceof kt))
46565
+ if (!(t.selection instanceof bt))
46562
46566
  return null;
46563
46567
  let e = document.createElement("div");
46564
- return e.className = "ProseMirror-gapcursor", at.create(t.doc, [Yt.widget(t.selection.head, e, { key: "gapcursor" })]);
46568
+ return e.className = "ProseMirror-gapcursor", lt.create(t.doc, [Yt.widget(t.selection.head, e, { key: "gapcursor" })]);
46565
46569
  }
46566
46570
  const Wd = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, ZX = (t, e, n) => {
46567
46571
  for (let i = t.depth; i > 0; i -= 1) {
@@ -46584,10 +46588,10 @@ const Wd = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, ZX = (t, e,
46584
46588
  const u = $c(d.node, (v) => v.type === s.nodes.detailsContent);
46585
46589
  if (!u.length || Wd(d.start + u[0].pos + 1, t))
46586
46590
  return !1;
46587
- const p = n.doc.resolve(d.pos + d.node.nodeSize), m = kt.findFrom(p, 1, !1);
46591
+ const p = n.doc.resolve(d.pos + d.node.nodeSize), m = bt.findFrom(p, 1, !1);
46588
46592
  if (!m)
46589
46593
  return !1;
46590
- const { tr: g } = n, y = new kt(m);
46594
+ const { tr: g } = n, y = new bt(m);
46591
46595
  return g.setSelection(y), g.scrollIntoView(), i.dispatch(g), !0;
46592
46596
  }, XX = At.create({
46593
46597
  name: "details",
@@ -46755,8 +46759,8 @@ const Wd = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, ZX = (t, e,
46755
46759
  return [
46756
46760
  // This plugin prevents text selections within the hidden content in `DetailsContent`.
46757
46761
  // The cursor is moved to the next visible position.
46758
- new st({
46759
- key: new ut("detailsSelection"),
46762
+ new ot({
46763
+ key: new ht("detailsSelection"),
46760
46764
  appendTransaction: (t, e, n) => {
46761
46765
  const { editor: i, type: r } = this;
46762
46766
  if (!t.some((y) => y.selectionSet) || !e.selection.empty || !n.selection.empty || !Qw(n, r.name))
@@ -47531,7 +47535,7 @@ function Ch(t, e, n) {
47531
47535
  return new t(s, n);
47532
47536
  }
47533
47537
  const pQ = typeof console < "u" && console && console.warn || (() => {
47534
- }), mQ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", gt = {
47538
+ }), mQ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", yt = {
47535
47539
  scanner: null,
47536
47540
  parser: null,
47537
47541
  tokenQueue: [],
@@ -47540,32 +47544,32 @@ const pQ = typeof console < "u" && console && console.warn || (() => {
47540
47544
  initialized: !1
47541
47545
  };
47542
47546
  function gQ() {
47543
- return _n.groups = {}, gt.scanner = null, gt.parser = null, gt.tokenQueue = [], gt.pluginQueue = [], gt.customSchemes = [], gt.initialized = !1, gt;
47547
+ return _n.groups = {}, yt.scanner = null, yt.parser = null, yt.tokenQueue = [], yt.pluginQueue = [], yt.customSchemes = [], yt.initialized = !1, yt;
47544
47548
  }
47545
47549
  function h5(t, e = !1) {
47546
- if (gt.initialized && pQ(`linkifyjs: already initialized - will not register custom scheme "${t}" ${mQ}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
47550
+ if (yt.initialized && pQ(`linkifyjs: already initialized - will not register custom scheme "${t}" ${mQ}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
47547
47551
  throw new Error(`linkifyjs: incorrect scheme format.
47548
47552
  1. Must only contain digits, lowercase ASCII letters or "-"
47549
47553
  2. Cannot start or end with "-"
47550
47554
  3. "-" cannot repeat`);
47551
- gt.customSchemes.push([t, e]);
47555
+ yt.customSchemes.push([t, e]);
47552
47556
  }
47553
47557
  function yQ() {
47554
- gt.scanner = cQ(gt.customSchemes);
47555
- for (let t = 0; t < gt.tokenQueue.length; t++)
47556
- gt.tokenQueue[t][1]({
47557
- scanner: gt.scanner
47558
+ yt.scanner = cQ(yt.customSchemes);
47559
+ for (let t = 0; t < yt.tokenQueue.length; t++)
47560
+ yt.tokenQueue[t][1]({
47561
+ scanner: yt.scanner
47558
47562
  });
47559
- gt.parser = uQ(gt.scanner.tokens);
47560
- for (let t = 0; t < gt.pluginQueue.length; t++)
47561
- gt.pluginQueue[t][1]({
47562
- scanner: gt.scanner,
47563
- parser: gt.parser
47563
+ yt.parser = uQ(yt.scanner.tokens);
47564
+ for (let t = 0; t < yt.pluginQueue.length; t++)
47565
+ yt.pluginQueue[t][1]({
47566
+ scanner: yt.scanner,
47567
+ parser: yt.parser
47564
47568
  });
47565
- return gt.initialized = !0, gt;
47569
+ return yt.initialized = !0, yt;
47566
47570
  }
47567
47571
  function Qg(t) {
47568
- return gt.initialized || yQ(), hQ(gt.parser.start, t, P_(gt.scanner.start, t));
47572
+ return yt.initialized || yQ(), hQ(yt.parser.start, t, P_(yt.scanner.start, t));
47569
47573
  }
47570
47574
  Qg.scan = P_;
47571
47575
  function z_(t, e = null, n = null) {
@@ -47585,8 +47589,8 @@ function vQ(t) {
47585
47589
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
47586
47590
  }
47587
47591
  function bQ(t) {
47588
- return new st({
47589
- key: new ut("autolink"),
47592
+ return new ot({
47593
+ key: new ht("autolink"),
47590
47594
  appendTransaction: (e, n, i) => {
47591
47595
  const r = e.some((c) => c.docChanged) && !n.doc.eq(i.doc), s = e.some((c) => c.getMeta("preventAutolink"));
47592
47596
  if (!r || s)
@@ -47621,8 +47625,8 @@ function bQ(t) {
47621
47625
  });
47622
47626
  }
47623
47627
  function kQ(t) {
47624
- return new st({
47625
- key: new ut("handleClickLink"),
47628
+ return new ot({
47629
+ key: new ht("handleClickLink"),
47626
47630
  props: {
47627
47631
  handleClick: (e, n, i) => {
47628
47632
  var r, s;
@@ -47641,8 +47645,8 @@ function kQ(t) {
47641
47645
  });
47642
47646
  }
47643
47647
  function xQ(t) {
47644
- return new st({
47645
- key: new ut("handlePasteLink"),
47648
+ return new ot({
47649
+ key: new ht("handlePasteLink"),
47646
47650
  props: {
47647
47651
  handlePaste: (e, n, i) => {
47648
47652
  const { state: r } = e, { selection: s } = r, { empty: o } = s;
@@ -48150,8 +48154,8 @@ const _Q = si.create({
48150
48154
  return [
48151
48155
  // this plugin creates a code block for pasted content from VS Code
48152
48156
  // we can also detect the copied code language
48153
- new st({
48154
- key: new ut("codeBlockVSCodeHandler"),
48157
+ new ot({
48158
+ key: new ht("codeBlockVSCodeHandler"),
48155
48159
  props: {
48156
48160
  handlePaste: (t, e) => {
48157
48161
  if (!e.clipboardData || this.editor.isActive(this.type.name))
@@ -48173,7 +48177,7 @@ const _Q = si.create({
48173
48177
  content: "block+"
48174
48178
  });
48175
48179
  function $Q(t = {}) {
48176
- return new st({
48180
+ return new ot({
48177
48181
  view(e) {
48178
48182
  return new jQ(e, t);
48179
48183
  }
@@ -48251,7 +48255,7 @@ class jQ {
48251
48255
  (e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
48252
48256
  }
48253
48257
  }
48254
- const VQ = ft.create({
48258
+ const VQ = ut.create({
48255
48259
  name: "dropCursor",
48256
48260
  addOptions() {
48257
48261
  return {
@@ -48265,7 +48269,7 @@ const VQ = ft.create({
48265
48269
  $Q(this.options)
48266
48270
  ];
48267
48271
  }
48268
- }), HQ = ft.create({
48272
+ }), HQ = ut.create({
48269
48273
  name: "gapCursor",
48270
48274
  addProseMirrorPlugins() {
48271
48275
  return [
@@ -48681,12 +48685,12 @@ function Wc(t) {
48681
48685
  }
48682
48686
  return Nh;
48683
48687
  }
48684
- const ws = new ut("history"), QQ = new ut("closeHistory");
48688
+ const ws = new ht("history"), QQ = new ht("closeHistory");
48685
48689
  function eee(t = {}) {
48686
48690
  return t = {
48687
48691
  depth: t.depth || 100,
48688
48692
  newGroupDelay: t.newGroupDelay || 500
48689
- }, new st({
48693
+ }, new ot({
48690
48694
  key: ws,
48691
48695
  state: {
48692
48696
  init() {
@@ -48719,7 +48723,7 @@ function V_(t, e) {
48719
48723
  return !0;
48720
48724
  };
48721
48725
  }
48722
- const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
48726
+ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ut.create({
48723
48727
  name: "history",
48724
48728
  addOptions() {
48725
48729
  return {
@@ -49044,7 +49048,7 @@ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
49044
49048
  }), mee = At.create({
49045
49049
  name: "text",
49046
49050
  group: "inline"
49047
- }), gee = ft.create({
49051
+ }), gee = ut.create({
49048
49052
  name: "starterKit",
49049
49053
  addExtensions() {
49050
49054
  const t = [];
@@ -49101,7 +49105,7 @@ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
49101
49105
  HTMLAttributes: {
49102
49106
  class: "f1-task-list"
49103
49107
  }
49104
- }), vee = ft.create({
49108
+ }), vee = ut.create({
49105
49109
  name: "textAlign",
49106
49110
  addOptions() {
49107
49111
  return {
@@ -49146,7 +49150,7 @@ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
49146
49150
  }), k5 = (t, e) => {
49147
49151
  const n = t.view.dom;
49148
49152
  n.setAttribute("aria-label", e), n.getAttribute("role") === "textbox" && n.removeAttribute("aria-expanded");
49149
- }, bee = ft.create({
49153
+ }, bee = ut.create({
49150
49154
  name: "accessibility",
49151
49155
  addOptions() {
49152
49156
  return {
@@ -49161,7 +49165,7 @@ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
49161
49165
  }
49162
49166
  }), ry = (t) => bee.configure({
49163
49167
  label: t || "Rich text"
49164
- }), kee = ft.create({
49168
+ }), kee = ut.create({
49165
49169
  name: "characterCount",
49166
49170
  addOptions() {
49167
49171
  return {
@@ -49193,8 +49197,8 @@ const H_ = V_(!1, !0), W_ = V_(!0, !0), tee = ft.create({
49193
49197
  addProseMirrorPlugins() {
49194
49198
  let t = !1;
49195
49199
  return [
49196
- new st({
49197
- key: new ut("characterCount"),
49200
+ new ot({
49201
+ key: new ht("characterCount"),
49198
49202
  appendTransaction: (e, n, i) => {
49199
49203
  if (t)
49200
49204
  return;
@@ -49252,10 +49256,10 @@ function wee(t) {
49252
49256
  text: y[0]
49253
49257
  } : null;
49254
49258
  }
49255
- const _ee = new ut("suggestion");
49259
+ const _ee = new ht("suggestion");
49256
49260
  function q_({ pluginKey: t = _ee, editor: e, char: n = "@", allowSpaces: i = !1, allowToIncludeChar: r = !1, allowedPrefixes: s = [" "], startOfLine: o = !1, decorationTag: a = "span", decorationClass: l = "suggestion", command: c = () => null, items: d = () => [], render: u = () => ({}), allow: h = () => !0, findSuggestionMatch: p = wee }) {
49257
49261
  let m;
49258
- const g = u == null ? void 0 : u(), y = new st({
49262
+ const g = u == null ? void 0 : u(), y = new ot({
49259
49263
  key: t,
49260
49264
  view() {
49261
49265
  return {
@@ -49343,7 +49347,7 @@ function q_({ pluginKey: t = _ee, editor: e, char: n = "@", allowSpaces: i = !1,
49343
49347
  // Setup decorator on the currently active suggestion.
49344
49348
  decorations(v) {
49345
49349
  const { active: w, range: k, decorationId: x } = y.getState(v);
49346
- return w ? at.create(v.doc, [
49350
+ return w ? lt.create(v.doc, [
49347
49351
  Yt.inline(k.from, k.to, {
49348
49352
  nodeName: a,
49349
49353
  class: l,
@@ -49355,7 +49359,7 @@ function q_({ pluginKey: t = _ee, editor: e, char: n = "@", allowSpaces: i = !1,
49355
49359
  });
49356
49360
  return y;
49357
49361
  }
49358
- const Cee = new ut("mention"), See = At.create({
49362
+ const Cee = new ht("mention"), See = At.create({
49359
49363
  name: "mention",
49360
49364
  priority: 101,
49361
49365
  addOptions() {
@@ -49752,7 +49756,7 @@ const Mee = See.extend({
49752
49756
  },
49753
49757
  suggestion: Lee(t, e, n.onMentionQueryStringChanged, n.users)
49754
49758
  })] : [];
49755
- }, Aee = ft.create({
49759
+ }, Aee = ut.create({
49756
49760
  name: "placeholder",
49757
49761
  addOptions() {
49758
49762
  return {
@@ -49766,8 +49770,8 @@ const Mee = See.extend({
49766
49770
  },
49767
49771
  addProseMirrorPlugins() {
49768
49772
  return [
49769
- new st({
49770
- key: new ut("placeholder"),
49773
+ new ot({
49774
+ key: new ht("placeholder"),
49771
49775
  props: {
49772
49776
  decorations: ({ doc: t, selection: e }) => {
49773
49777
  const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: i } = e, r = [];
@@ -49791,7 +49795,7 @@ const Mee = See.extend({
49791
49795
  r.push(u);
49792
49796
  }
49793
49797
  return this.options.includeChildren;
49794
- }), at.create(t, r);
49798
+ }), lt.create(t, r);
49795
49799
  }
49796
49800
  }
49797
49801
  })
@@ -50503,19 +50507,19 @@ const Mee = See.extend({
50503
50507
  })
50504
50508
  };
50505
50509
  }
50506
- }), Y_ = qee, Uee = new ut("persistSelection"), Kee = new st({
50510
+ }), Y_ = qee, Uee = new ht("persistSelection"), Kee = new ot({
50507
50511
  key: Uee,
50508
50512
  state: {
50509
50513
  init(t, { doc: e, selection: n }) {
50510
- return n.from !== n.to ? at.create(e, [Yt.inline(n.from, n.to, {
50514
+ return n.from !== n.to ? lt.create(e, [Yt.inline(n.from, n.to, {
50511
50515
  class: "preserved-selection"
50512
- })]) : at.empty;
50516
+ })]) : lt.empty;
50513
50517
  },
50514
50518
  apply(t) {
50515
50519
  const { doc: e, selection: n } = t;
50516
- return n.from !== n.to ? at.create(e, [Yt.inline(n.from, n.to, {
50520
+ return n.from !== n.to ? lt.create(e, [Yt.inline(n.from, n.to, {
50517
50521
  class: "preserved-selection"
50518
- })]) : at.empty;
50522
+ })]) : lt.empty;
50519
50523
  }
50520
50524
  },
50521
50525
  props: {
@@ -50523,7 +50527,7 @@ const Mee = See.extend({
50523
50527
  return this.getState(t);
50524
50528
  }
50525
50529
  }
50526
- }), oy = ft.create({
50530
+ }), oy = ut.create({
50527
50531
  name: "persistSelection",
50528
50532
  addProseMirrorPlugins() {
50529
50533
  return [Kee];
@@ -50786,7 +50790,7 @@ const Mee = See.extend({
50786
50790
  });
50787
50791
  });
50788
50792
  Z_.displayName = "CommandList";
50789
- const X_ = (t, e, n) => ft.create({
50793
+ const X_ = (t, e, n) => ut.create({
50790
50794
  name: "slashCommand",
50791
50795
  addOptions() {
50792
50796
  return {
@@ -51256,7 +51260,7 @@ class Yu {
51256
51260
  const cy = (t) => new Yu(t), xte = (t) => t.pos !== t.arr.length, wte = (t, e) => {
51257
51261
  const n = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e);
51258
51262
  return t.pos += e, n;
51259
- }, Gn = (t) => wte(t, yt(t)), hl = (t) => t.arr[t.pos++], yt = (t) => {
51263
+ }, Gn = (t) => wte(t, vt(t)), hl = (t) => t.arr[t.pos++], vt = (t) => {
51260
51264
  let e = 0, n = 1;
51261
51265
  const i = t.arr.length;
51262
51266
  for (; t.pos < i; ) {
@@ -51281,7 +51285,7 @@ const cy = (t) => new Yu(t), xte = (t) => t.pos !== t.arr.length, wte = (t, e) =
51281
51285
  }
51282
51286
  throw nC;
51283
51287
  }, _te = (t) => {
51284
- let e = yt(t);
51288
+ let e = vt(t);
51285
51289
  if (e === 0)
51286
51290
  return "";
51287
51291
  {
@@ -51330,7 +51334,7 @@ const cy = (t) => new Yu(t), xte = (t) => t.pos !== t.arr.length, wte = (t, e) =
51330
51334
  xm,
51331
51335
  // CASE 119: string
51332
51336
  (t) => {
51333
- const e = yt(t), n = {};
51337
+ const e = vt(t), n = {};
51334
51338
  for (let i = 0; i < e; i++) {
51335
51339
  const r = xm(t);
51336
51340
  n[r] = bf(t);
@@ -51338,7 +51342,7 @@ const cy = (t) => new Yu(t), xte = (t) => t.pos !== t.arr.length, wte = (t, e) =
51338
51342
  return n;
51339
51343
  },
51340
51344
  (t) => {
51341
- const e = yt(t), n = [];
51345
+ const e = vt(t), n = [];
51342
51346
  for (let i = 0; i < e; i++)
51343
51347
  n.push(bf(t));
51344
51348
  return n;
@@ -51355,7 +51359,7 @@ class T5 extends Yu {
51355
51359
  super(e), this.reader = n, this.s = null, this.count = 0;
51356
51360
  }
51357
51361
  read() {
51358
- return this.count === 0 && (this.s = this.reader(this), xte(this) ? this.count = yt(this) + 1 : this.count = -1), this.count--, /** @type {T} */
51362
+ return this.count === 0 && (this.s = this.reader(this), xte(this) ? this.count = vt(this) + 1 : this.count = -1), this.count--, /** @type {T} */
51359
51363
  this.s;
51360
51364
  }
51361
51365
  }
@@ -51370,7 +51374,7 @@ class Kc extends Yu {
51370
51374
  if (this.count === 0) {
51371
51375
  this.s = dy(this);
51372
51376
  const e = eC(this.s);
51373
- this.count = 1, e && (this.s = -this.s, this.count = yt(this) + 2);
51377
+ this.count = 1, e && (this.s = -this.s, this.count = vt(this) + 2);
51374
51378
  }
51375
51379
  return this.count--, /** @type {number} */
51376
51380
  this.s;
@@ -51389,7 +51393,7 @@ class Ah extends Yu {
51389
51393
  read() {
51390
51394
  if (this.count === 0) {
51391
51395
  const e = dy(this), n = e & 1;
51392
- this.diff = dr(e / 2), this.count = 1, n && (this.count = yt(this) + 2);
51396
+ this.diff = dr(e / 2), this.count = 1, n && (this.count = vt(this) + 2);
51393
51397
  }
51394
51398
  return this.s += this.diff, this.count--, this.s;
51395
51399
  }
@@ -51695,10 +51699,10 @@ const qr = (t, e, n) => e.clients.forEach((i, r) => {
51695
51699
  }
51696
51700
  });
51697
51701
  }, gne = (t) => {
51698
- const e = new ia(), n = yt(t.restDecoder);
51702
+ const e = new ia(), n = vt(t.restDecoder);
51699
51703
  for (let i = 0; i < n; i++) {
51700
51704
  t.resetDsCurVal();
51701
- const r = yt(t.restDecoder), s = yt(t.restDecoder);
51705
+ const r = vt(t.restDecoder), s = vt(t.restDecoder);
51702
51706
  if (s > 0) {
51703
51707
  const o = hr(e.clients, r, () => (
51704
51708
  /** @type {Array<DeleteItem>} */
@@ -51710,10 +51714,10 @@ const qr = (t, e, n) => e.clients.forEach((i, r) => {
51710
51714
  }
51711
51715
  return e;
51712
51716
  }, D5 = (t, e, n) => {
51713
- const i = new ia(), r = yt(t.restDecoder);
51717
+ const i = new ia(), r = vt(t.restDecoder);
51714
51718
  for (let s = 0; s < r; s++) {
51715
51719
  t.resetDsCurVal();
51716
- const o = yt(t.restDecoder), a = yt(t.restDecoder), l = n.clients.get(o) || [], c = Mt(n, o);
51720
+ const o = vt(t.restDecoder), a = vt(t.restDecoder), l = n.clients.get(o) || [], c = Mt(n, o);
51717
51721
  for (let d = 0; d < a; d++) {
51718
51722
  const u = t.readDsClock(), h = u + t.readDsLen();
51719
51723
  if (u < c) {
@@ -51760,7 +51764,7 @@ class Hs extends Q_ {
51760
51764
  */
51761
51765
  load() {
51762
51766
  const e = this._item;
51763
- e !== null && !this.shouldLoad && ot(
51767
+ e !== null && !this.shouldLoad && at(
51764
51768
  /** @type {any} */
51765
51769
  e.parent.doc,
51766
51770
  (n) => {
@@ -51790,7 +51794,7 @@ class Hs extends Q_ {
51790
51794
  * @public
51791
51795
  */
51792
51796
  transact(e, n = null) {
51793
- return ot(this, e, n);
51797
+ return at(this, e, n);
51794
51798
  }
51795
51799
  /**
51796
51800
  * Define a shared data type.
@@ -51930,7 +51934,7 @@ class Hs extends Q_ {
51930
51934
  /** @type {ContentDoc} */
51931
51935
  e.content
51932
51936
  );
51933
- n.doc = new Hs({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e, ot(
51937
+ n.doc = new Hs({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e, at(
51934
51938
  /** @type {any} */
51935
51939
  e.parent.doc,
51936
51940
  (i) => {
@@ -51958,13 +51962,13 @@ class yne {
51958
51962
  * @return {number}
51959
51963
  */
51960
51964
  readDsClock() {
51961
- return this.dsCurrVal += yt(this.restDecoder), this.dsCurrVal;
51965
+ return this.dsCurrVal += vt(this.restDecoder), this.dsCurrVal;
51962
51966
  }
51963
51967
  /**
51964
51968
  * @return {number}
51965
51969
  */
51966
51970
  readDsLen() {
51967
- const e = yt(this.restDecoder) + 1;
51971
+ const e = vt(this.restDecoder) + 1;
51968
51972
  return this.dsCurrVal += e, e;
51969
51973
  }
51970
51974
  }
@@ -51973,7 +51977,7 @@ class xf extends yne {
51973
51977
  * @param {decoding.Decoder} decoder
51974
51978
  */
51975
51979
  constructor(e) {
51976
- super(e), this.keys = [], yt(e), this.keyClockDecoder = new Ah(Gn(e)), this.clientDecoder = new Kc(Gn(e)), this.leftClockDecoder = new Ah(Gn(e)), this.rightClockDecoder = new Ah(Gn(e)), this.infoDecoder = new T5(Gn(e), hl), this.stringDecoder = new Mte(Gn(e)), this.parentInfoDecoder = new T5(Gn(e), hl), this.typeRefDecoder = new Kc(Gn(e)), this.lenDecoder = new Kc(Gn(e));
51980
+ super(e), this.keys = [], vt(e), this.keyClockDecoder = new Ah(Gn(e)), this.clientDecoder = new Kc(Gn(e)), this.leftClockDecoder = new Ah(Gn(e)), this.rightClockDecoder = new Ah(Gn(e)), this.infoDecoder = new T5(Gn(e), hl), this.stringDecoder = new Mte(Gn(e)), this.parentInfoDecoder = new T5(Gn(e), hl), this.typeRefDecoder = new Kc(Gn(e)), this.lenDecoder = new Kc(Gn(e));
51977
51981
  }
51978
51982
  /**
51979
51983
  * @return {ID}
@@ -52304,10 +52308,10 @@ const xne = (t, e, n, i) => {
52304
52308
  );
52305
52309
  });
52306
52310
  }, wne = (t, e) => {
52307
- const n = vi(), i = yt(t.restDecoder);
52311
+ const n = vi(), i = vt(t.restDecoder);
52308
52312
  for (let r = 0; r < i; r++) {
52309
- const s = yt(t.restDecoder), o = new Array(s), a = t.readClient();
52310
- let l = yt(t.restDecoder);
52313
+ const s = vt(t.restDecoder), o = new Array(s), a = t.readClient();
52314
+ let l = vt(t.restDecoder);
52311
52315
  n.set(a, { i: 0, refs: o });
52312
52316
  for (let c = 0; c < s; c++) {
52313
52317
  const d = t.readInfo();
@@ -52318,12 +52322,12 @@ const xne = (t, e, n, i) => {
52318
52322
  break;
52319
52323
  }
52320
52324
  case 10: {
52321
- const u = yt(t.restDecoder);
52325
+ const u = vt(t.restDecoder);
52322
52326
  o[c] = new mi(Ue(a, l), u), l += u;
52323
52327
  break;
52324
52328
  }
52325
52329
  default: {
52326
- const u = (d & (rr | hn)) === 0, h = new mt(
52330
+ const u = (d & (rr | hn)) === 0, h = new gt(
52327
52331
  Ue(a, l),
52328
52332
  null,
52329
52333
  // left
@@ -52431,7 +52435,7 @@ const xne = (t, e, n, i) => {
52431
52435
  return xC(p, a, /* @__PURE__ */ new Map()), et(p.restEncoder, 0), { missing: l, update: p.toUint8Array() };
52432
52436
  }
52433
52437
  return null;
52434
- }, Cne = (t, e) => xC(t, e.doc.store, e.beforeState), Sne = (t, e, n, i = new xf(t)) => ot(e, (r) => {
52438
+ }, Cne = (t, e) => xC(t, e.doc.store, e.beforeState), Sne = (t, e, n, i = new xf(t)) => at(e, (r) => {
52435
52439
  r.local = !1;
52436
52440
  let s = !1;
52437
52441
  const o = r.doc, a = o.store, l = wne(i, o), c = _ne(r, a, l), d = a.pendingStructs;
@@ -52453,7 +52457,7 @@ const xne = (t, e, n, i) => {
52453
52457
  const u = D5(i, r, a);
52454
52458
  if (a.pendingDs) {
52455
52459
  const h = new xf(cy(a.pendingDs));
52456
- yt(h.restDecoder);
52460
+ vt(h.restDecoder);
52457
52461
  const p = D5(h, r, a);
52458
52462
  u && p ? a.pendingDs = H5([u, p]) : a.pendingDs = u || p;
52459
52463
  } else
@@ -52556,7 +52560,7 @@ const Lne = (t, e, n = 0) => new Ene(t, e, n), _c = (t, e, n) => {
52556
52560
  if (Mt(i, r.client) <= r.clock)
52557
52561
  return null;
52558
52562
  const d = n ? Lm(i, r) : Mne(i, r), u = d.item;
52559
- if (!(u instanceof mt))
52563
+ if (!(u instanceof gt))
52560
52564
  return null;
52561
52565
  if (l = /** @type {AbstractType<any>} */
52562
52566
  u.parent, l._item === null || !l._item.deleted) {
@@ -52572,7 +52576,7 @@ const Lne = (t, e, n = 0) => new Ene(t, e, n), _c = (t, e, n) => {
52572
52576
  if (Mt(i, s.client) <= s.clock)
52573
52577
  return null;
52574
52578
  const { item: d } = n ? Lm(i, s) : { item: vo(i, s) };
52575
- if (d instanceof mt && d.content instanceof _i)
52579
+ if (d instanceof gt && d.content instanceof _i)
52576
52580
  l = d.content.type;
52577
52581
  else
52578
52582
  return null;
@@ -52648,7 +52652,7 @@ const Xu = (t) => {
52648
52652
  Ane
52649
52653
  ), Nm = (t, e, n) => {
52650
52654
  const i = xi(e, n), r = e[i];
52651
- return r.id.clock < n && r instanceof mt ? (e.splice(i + 1, 0, Ef(t, r, n - r.id.clock)), i + 1) : i;
52655
+ return r.id.clock < n && r instanceof gt ? (e.splice(i + 1, 0, Ef(t, r, n - r.id.clock)), i + 1) : i;
52652
52656
  }, Cn = (t, e) => {
52653
52657
  const n = (
52654
52658
  /** @type {Array<Item>} */
@@ -52690,7 +52694,7 @@ const z5 = (t, e) => e.deleteSet.clients.size === 0 && !Yee(e.afterState, (n, i)
52690
52694
  let n = t[e], i = t[e - 1], r = e;
52691
52695
  for (; r > 0; n = i, i = t[--r - 1]) {
52692
52696
  if (i.deleted === n.deleted && i.constructor === n.constructor && i.mergeWith(n)) {
52693
- n instanceof mt && n.parentSub !== null && /** @type {AbstractType<any>} */
52697
+ n instanceof gt && n.parentSub !== null && /** @type {AbstractType<any>} */
52694
52698
  n.parent._map.get(n.parentSub) === n && n.parent._map.set(
52695
52699
  n.parentSub,
52696
52700
  /** @type {Item} */
@@ -52714,7 +52718,7 @@ const z5 = (t, e) => e.deleteSet.clients.size === 0 && !Yee(e.afterState, (n, i)
52714
52718
  const u = s[c];
52715
52719
  if (a.clock + a.len <= u.id.clock)
52716
52720
  break;
52717
- u instanceof mt && u.deleted && !u.keep && n(u) && u.gc(e, !1);
52721
+ u instanceof gt && u.deleted && !u.keep && n(u) && u.gc(e, !1);
52718
52722
  }
52719
52723
  }
52720
52724
  }
@@ -52782,7 +52786,7 @@ const z5 = (t, e) => e.deleteSet.clients.size === 0 && !Yee(e.afterState, (n, i)
52782
52786
  }), c.forEach((d) => i.subdocs.delete(d)), i.emit("subdocs", [{ loaded: l, added: a, removed: c }, i, n]), c.forEach((d) => d.destroy())), t.length <= e + 1 ? (i._transactionCleanups = [], i.emit("afterAllTransactions", [i, t])) : EC(t, e + 1);
52783
52787
  }
52784
52788
  }
52785
- }, ot = (t, e, n = null, i = !0) => {
52789
+ }, at = (t, e, n = null, i = !0) => {
52786
52790
  const r = t._transactionCleanups;
52787
52791
  let s = !1, o = null;
52788
52792
  t._transaction === null && (s = !0, t._transaction = new Ine(t, n, i), r.push(t._transaction), r.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t]));
@@ -52807,7 +52811,7 @@ class Fne {
52807
52811
  }
52808
52812
  const j5 = (t, e, n) => {
52809
52813
  qr(t, n.deletions, (i) => {
52810
- i instanceof mt && e.scope.some((r) => r === t.doc || gl(
52814
+ i instanceof gt && e.scope.some((r) => r === t.doc || gl(
52811
52815
  /** @type {AbstractType<any>} */
52812
52816
  r,
52813
52817
  i
@@ -52816,7 +52820,7 @@ const j5 = (t, e, n) => {
52816
52820
  }, V5 = (t, e, n) => {
52817
52821
  let i = null;
52818
52822
  const r = t.doc, s = t.scope;
52819
- ot(r, (a) => {
52823
+ at(r, (a) => {
52820
52824
  for (; e.length > 0 && t.currStackItem === null; ) {
52821
52825
  const l = r.store, c = (
52822
52826
  /** @type {StackItem} */
@@ -52824,7 +52828,7 @@ const j5 = (t, e, n) => {
52824
52828
  ), d = /* @__PURE__ */ new Set(), u = [];
52825
52829
  let h = !1;
52826
52830
  qr(a, c.insertions, (p) => {
52827
- if (p instanceof mt) {
52831
+ if (p instanceof gt) {
52828
52832
  if (p.redone !== null) {
52829
52833
  let { item: m, diff: g } = Lm(l, p.id);
52830
52834
  g > 0 && (m = Cn(a, Ue(m.id.client, m.id.clock + g))), p = m;
@@ -52837,7 +52841,7 @@ const j5 = (t, e, n) => {
52837
52841
  )) && u.push(p);
52838
52842
  }
52839
52843
  }), qr(a, c.deletions, (p) => {
52840
- p instanceof mt && s.some((m) => m === a.doc || gl(
52844
+ p instanceof gt && s.some((m) => m === a.doc || gl(
52841
52845
  /** @type {AbstractType<any>} */
52842
52846
  m,
52843
52847
  p
@@ -52904,7 +52908,7 @@ class LC extends Q_ {
52904
52908
  l.deleteSet,
52905
52909
  /** @param {Item|GC} item */
52906
52910
  (y) => {
52907
- y instanceof mt && this.scope.some((v) => v === l.doc || gl(
52911
+ y instanceof gt && this.scope.some((v) => v === l.doc || gl(
52908
52912
  /** @type {AbstractType<any>} */
52909
52913
  v,
52910
52914
  y
@@ -53019,17 +53023,17 @@ class LC extends Q_ {
53019
53023
  }
53020
53024
  }
53021
53025
  function* Pne(t) {
53022
- const e = yt(t.restDecoder);
53026
+ const e = vt(t.restDecoder);
53023
53027
  for (let n = 0; n < e; n++) {
53024
- const i = yt(t.restDecoder), r = t.readClient();
53025
- let s = yt(t.restDecoder);
53028
+ const i = vt(t.restDecoder), r = t.readClient();
53029
+ let s = vt(t.restDecoder);
53026
53030
  for (let o = 0; o < i; o++) {
53027
53031
  const a = t.readInfo();
53028
53032
  if (a === 10) {
53029
- const l = yt(t.restDecoder);
53033
+ const l = vt(t.restDecoder);
53030
53034
  yield new mi(Ue(r, s), l), s += l;
53031
53035
  } else if ((Gu & a) !== 0) {
53032
- const l = (a & (rr | hn)) === 0, c = new mt(
53036
+ const l = (a & (rr | hn)) === 0, c = new gt(
53033
53037
  Ue(r, s),
53034
53038
  null,
53035
53039
  // left
@@ -53093,7 +53097,7 @@ const $ne = (t, e) => {
53093
53097
  /** @type {Item} */
53094
53098
  t
53095
53099
  ), { client: i, clock: r } = n.id;
53096
- return new mt(
53100
+ return new gt(
53097
53101
  Ue(i, r + e),
53098
53102
  null,
53099
53103
  Ue(i, r + e - 1),
@@ -53597,7 +53601,7 @@ const OC = (t, e, n) => {
53597
53601
  const s = t.doc, o = s.clientID, a = s.store, l = n === null ? e._start : n.right;
53598
53602
  let c = [];
53599
53603
  const d = () => {
53600
- c.length > 0 && (r = new mt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Bs(c)), r.integrate(t, 0), c = []);
53604
+ c.length > 0 && (r = new gt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Bs(c)), r.integrate(t, 0), c = []);
53601
53605
  };
53602
53606
  i.forEach((u) => {
53603
53607
  if (u === null)
@@ -53615,20 +53619,20 @@ const OC = (t, e, n) => {
53615
53619
  switch (d(), u.constructor) {
53616
53620
  case Uint8Array:
53617
53621
  case ArrayBuffer:
53618
- r = new mt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Ul(new Uint8Array(
53622
+ r = new gt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Ul(new Uint8Array(
53619
53623
  /** @type {Uint8Array} */
53620
53624
  u
53621
53625
  ))), r.integrate(t, 0);
53622
53626
  break;
53623
53627
  case Hs:
53624
- r = new mt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Kl(
53628
+ r = new gt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new Kl(
53625
53629
  /** @type {Doc} */
53626
53630
  u
53627
53631
  )), r.integrate(t, 0);
53628
53632
  break;
53629
53633
  default:
53630
53634
  if (u instanceof Ht)
53631
- r = new mt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new _i(u)), r.integrate(t, 0);
53635
+ r = new gt(Ue(o, Mt(a, o)), r, r && r.lastId, l, l && l.id, e, null, new _i(u)), r.integrate(t, 0);
53632
53636
  else
53633
53637
  throw new Error("Unexpected content type in insert operation");
53634
53638
  }
@@ -53710,7 +53714,7 @@ const OC = (t, e, n) => {
53710
53714
  else
53711
53715
  throw new Error("Unexpected content type");
53712
53716
  }
53713
- new mt(Ue(o, Mt(s.store, o)), r, r && r.lastId, null, null, e, n, a).integrate(t, 0);
53717
+ new gt(Ue(o, Mt(s.store, o)), r, r && r.lastId, null, null, e, n, a).integrate(t, 0);
53714
53718
  }, ky = (t, e) => {
53715
53719
  t.doc ?? on();
53716
53720
  const n = t._map.get(e);
@@ -53821,7 +53825,7 @@ class bo extends Ht {
53821
53825
  * @param {Array<T>} content The array of content
53822
53826
  */
53823
53827
  insert(e, n) {
53824
- this.doc !== null ? ot(this.doc, (i) => {
53828
+ this.doc !== null ? at(this.doc, (i) => {
53825
53829
  BC(
53826
53830
  i,
53827
53831
  this,
@@ -53839,7 +53843,7 @@ class bo extends Ht {
53839
53843
  * @todo Use the following implementation in all types.
53840
53844
  */
53841
53845
  push(e) {
53842
- this.doc !== null ? ot(this.doc, (n) => {
53846
+ this.doc !== null ? at(this.doc, (n) => {
53843
53847
  Kne(
53844
53848
  n,
53845
53849
  this,
@@ -53863,7 +53867,7 @@ class bo extends Ht {
53863
53867
  * @param {number} length The number of elements to remove. Defaults to 1.
53864
53868
  */
53865
53869
  delete(e, n = 1) {
53866
- this.doc !== null ? ot(this.doc, (i) => {
53870
+ this.doc !== null ? at(this.doc, (i) => {
53867
53871
  zC(i, this, e, n);
53868
53872
  }) : this._prelimContent.splice(e, n);
53869
53873
  }
@@ -54091,7 +54095,7 @@ class jo extends Ht {
54091
54095
  * @param {string} key The key of the element to remove.
54092
54096
  */
54093
54097
  delete(e) {
54094
- this.doc !== null ? ot(this.doc, (n) => {
54098
+ this.doc !== null ? at(this.doc, (n) => {
54095
54099
  Cf(n, this, e);
54096
54100
  }) : this._prelimContent.delete(e);
54097
54101
  }
@@ -54104,7 +54108,7 @@ class jo extends Ht {
54104
54108
  * @return {VAL}
54105
54109
  */
54106
54110
  set(e, n) {
54107
- return this.doc !== null ? ot(this.doc, (i) => {
54111
+ return this.doc !== null ? at(this.doc, (i) => {
54108
54112
  by(
54109
54113
  i,
54110
54114
  this,
@@ -54139,7 +54143,7 @@ class jo extends Ht {
54139
54143
  * Removes all elements from this YMap.
54140
54144
  */
54141
54145
  clear() {
54142
- this.doc !== null ? ot(this.doc, (e) => {
54146
+ this.doc !== null ? at(this.doc, (e) => {
54143
54147
  this.forEach(function(n, i, r) {
54144
54148
  Cf(e, r, i);
54145
54149
  });
@@ -54223,7 +54227,7 @@ const q5 = (t, e, n) => {
54223
54227
  ), n.forward();
54224
54228
  const r = t.doc, s = r.clientID;
54225
54229
  i.forEach((o, a) => {
54226
- const l = n.left, c = n.right, d = new mt(Ue(s, Mt(r.store, s)), l, l && l.lastId, c, c && c.id, e, null, new Dt(a, o));
54230
+ const l = n.left, c = n.right, d = new gt(Ue(s, Mt(r.store, s)), l, l && l.lastId, c, c && c.id, e, null, new Dt(a, o));
54227
54231
  d.integrate(t, 0), n.right = d, n.forward();
54228
54232
  });
54229
54233
  }, sa = (t, e) => {
@@ -54248,7 +54252,7 @@ const q5 = (t, e, n) => {
54248
54252
  if (!Or(c, l)) {
54249
54253
  o.set(a, c);
54250
54254
  const { left: d, right: u } = n;
54251
- n.right = new mt(Ue(s, Mt(r.store, s)), d, d && d.lastId, u, u && u.id, e, null, new Dt(a, l)), n.right.integrate(t, 0), n.forward();
54255
+ n.right = new gt(Ue(s, Mt(r.store, s)), d, d && d.lastId, u, u && u.id, e, null, new Dt(a, l)), n.right.integrate(t, 0), n.forward();
54252
54256
  }
54253
54257
  }
54254
54258
  return o;
@@ -54263,7 +54267,7 @@ const q5 = (t, e, n) => {
54263
54267
  i
54264
54268
  ) : i instanceof Ht ? new _i(i) : new Ws(i);
54265
54269
  let { left: c, right: d, index: u } = n;
54266
- e._searchMarker && yl(e._searchMarker, n.index, l.getLength()), d = new mt(Ue(o, Mt(s.store, o)), c, c && c.lastId, d, d && d.id, e, null, l), d.integrate(t, 0), n.right = d, n.index = u, n.forward(), VC(t, e, n, a);
54270
+ e._searchMarker && yl(e._searchMarker, n.index, l.getLength()), d = new gt(Ue(o, Mt(s.store, o)), c, c && c.lastId, d, d && d.id, e, null, l), d.integrate(t, 0), n.right = d, n.index = u, n.forward(), VC(t, e, n, a);
54267
54271
  }, U5 = (t, e, n, i, r) => {
54268
54272
  const s = t.doc, o = s.clientID;
54269
54273
  HC(n, r);
@@ -54300,7 +54304,7 @@ const q5 = (t, e, n) => {
54300
54304
  for (; i > 0; i--)
54301
54305
  l += `
54302
54306
  `;
54303
- n.right = new mt(Ue(o, Mt(s.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new wi(l)), n.right.integrate(t, 0), n.forward();
54307
+ n.right = new gt(Ue(o, Mt(s.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new wi(l)), n.right.integrate(t, 0), n.forward();
54304
54308
  }
54305
54309
  VC(t, e, n, a);
54306
54310
  }, qC = (t, e, n, i, r) => {
@@ -54355,7 +54359,7 @@ const q5 = (t, e, n) => {
54355
54359
  }
54356
54360
  }, eie = (t) => {
54357
54361
  let e = 0;
54358
- return ot(
54362
+ return at(
54359
54363
  /** @type {Doc} */
54360
54364
  t.doc,
54361
54365
  (n) => {
@@ -54401,7 +54405,7 @@ const q5 = (t, e, n) => {
54401
54405
  }
54402
54406
  );
54403
54407
  }
54404
- ot(n, (i) => {
54408
+ at(n, (i) => {
54405
54409
  qr(t, t.deleteSet, (r) => {
54406
54410
  if (r instanceof Qn || !/** @type {YText} */
54407
54411
  r.parent._hasFormatting || e.has(
@@ -54482,7 +54486,7 @@ class nie extends Qu {
54482
54486
  /** @type {Doc} */
54483
54487
  this.target.doc
54484
54488
  ), n = [];
54485
- ot(e, (i) => {
54489
+ at(e, (i) => {
54486
54490
  const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
54487
54491
  let o = this.target._start, a = null;
54488
54492
  const l = {};
@@ -54646,7 +54650,7 @@ class Ur extends Ht {
54646
54650
  * @public
54647
54651
  */
54648
54652
  applyDelta(e, { sanitize: n = !0 } = {}) {
54649
- this.doc !== null ? ot(this.doc, (i) => {
54653
+ this.doc !== null ? at(this.doc, (i) => {
54650
54654
  const r = new Em(null, this._start, 0, /* @__PURE__ */ new Map());
54651
54655
  for (let s = 0; s < e.length; s++) {
54652
54656
  const o = e[s];
@@ -54726,7 +54730,7 @@ class Ur extends Ht {
54726
54730
  }
54727
54731
  c();
54728
54732
  };
54729
- return e || n ? ot(o, (u) => {
54733
+ return e || n ? at(o, (u) => {
54730
54734
  e && Sm(u, e), n && Sm(u, n), d();
54731
54735
  }, "cleanup") : d(), r;
54732
54736
  }
@@ -54744,7 +54748,7 @@ class Ur extends Ht {
54744
54748
  if (n.length <= 0)
54745
54749
  return;
54746
54750
  const r = this.doc;
54747
- r !== null ? ot(r, (s) => {
54751
+ r !== null ? at(r, (s) => {
54748
54752
  const o = Sc(s, this, e, !i);
54749
54753
  i || (i = {}, o.currentAttributes.forEach((a, l) => {
54750
54754
  i[l] = a;
@@ -54763,7 +54767,7 @@ class Ur extends Ht {
54763
54767
  */
54764
54768
  insertEmbed(e, n, i) {
54765
54769
  const r = this.doc;
54766
- r !== null ? ot(r, (s) => {
54770
+ r !== null ? at(r, (s) => {
54767
54771
  const o = Sc(s, this, e, !i);
54768
54772
  Rh(s, this, o, n, i || {});
54769
54773
  }) : this._pending.push(() => this.insertEmbed(e, n, i || {}));
@@ -54780,7 +54784,7 @@ class Ur extends Ht {
54780
54784
  if (n === 0)
54781
54785
  return;
54782
54786
  const i = this.doc;
54783
- i !== null ? ot(i, (r) => {
54787
+ i !== null ? at(i, (r) => {
54784
54788
  K5(r, Sc(r, this, e, !0), n);
54785
54789
  }) : this._pending.push(() => this.delete(e, n));
54786
54790
  }
@@ -54798,7 +54802,7 @@ class Ur extends Ht {
54798
54802
  if (n === 0)
54799
54803
  return;
54800
54804
  const r = this.doc;
54801
- r !== null ? ot(r, (s) => {
54805
+ r !== null ? at(r, (s) => {
54802
54806
  const o = Sc(s, this, e, !1);
54803
54807
  o.right !== null && U5(s, this, o, n, i);
54804
54808
  }) : this._pending.push(() => this.format(e, n, i));
@@ -54813,7 +54817,7 @@ class Ur extends Ht {
54813
54817
  * @public
54814
54818
  */
54815
54819
  removeAttribute(e) {
54816
- this.doc !== null ? ot(this.doc, (n) => {
54820
+ this.doc !== null ? at(this.doc, (n) => {
54817
54821
  Cf(n, this, e);
54818
54822
  }) : this._pending.push(() => this.removeAttribute(e));
54819
54823
  }
@@ -54828,7 +54832,7 @@ class Ur extends Ht {
54828
54832
  * @public
54829
54833
  */
54830
54834
  setAttribute(e, n) {
54831
- this.doc !== null ? ot(this.doc, (i) => {
54835
+ this.doc !== null ? at(this.doc, (i) => {
54832
54836
  by(i, this, e, n);
54833
54837
  }) : this._pending.push(() => this.setAttribute(e, n));
54834
54838
  }
@@ -55069,7 +55073,7 @@ class Ps extends Ht {
55069
55073
  * @param {Array<YXmlElement|YXmlText>} content The array of content
55070
55074
  */
55071
55075
  insert(e, n) {
55072
- this.doc !== null ? ot(this.doc, (i) => {
55076
+ this.doc !== null ? at(this.doc, (i) => {
55073
55077
  BC(i, this, e, n);
55074
55078
  }) : this._prelimContent.splice(e, 0, ...n);
55075
55079
  }
@@ -55085,7 +55089,7 @@ class Ps extends Ht {
55085
55089
  */
55086
55090
  insertAfter(e, n) {
55087
55091
  if (this.doc !== null)
55088
- ot(this.doc, (i) => {
55092
+ at(this.doc, (i) => {
55089
55093
  const r = e && e instanceof Ht ? e._item : e;
55090
55094
  _f(i, this, r, n);
55091
55095
  });
@@ -55106,7 +55110,7 @@ class Ps extends Ht {
55106
55110
  * @param {number} [length=1] The number of elements to remove. Defaults to 1.
55107
55111
  */
55108
55112
  delete(e, n = 1) {
55109
- this.doc !== null ? ot(this.doc, (i) => {
55113
+ this.doc !== null ? at(this.doc, (i) => {
55110
55114
  zC(i, this, e, n);
55111
55115
  }) : this._prelimContent.splice(e, n);
55112
55116
  }
@@ -55268,7 +55272,7 @@ class sn extends Ps {
55268
55272
  * @public
55269
55273
  */
55270
55274
  removeAttribute(e) {
55271
- this.doc !== null ? ot(this.doc, (n) => {
55275
+ this.doc !== null ? at(this.doc, (n) => {
55272
55276
  Cf(n, this, e);
55273
55277
  }) : this._prelimAttrs.delete(e);
55274
55278
  }
@@ -55283,7 +55287,7 @@ class sn extends Ps {
55283
55287
  * @public
55284
55288
  */
55285
55289
  setAttribute(e, n) {
55286
- this.doc !== null ? ot(this.doc, (i) => {
55290
+ this.doc !== null ? at(this.doc, (i) => {
55287
55291
  by(i, this, e, n);
55288
55292
  }) : this._prelimAttrs.set(e, n);
55289
55293
  }
@@ -56367,7 +56371,7 @@ const Eie = (t) => new _i(bie[t.readTypeRef()](t)), Lm = (t, e) => {
56367
56371
  let n = e, i = 0, r;
56368
56372
  do
56369
56373
  i > 0 && (n = Ue(n.client, n.clock + i)), r = vo(t, n), i = n.clock - r.id.clock, n = r.redone;
56370
- while (n !== null && r instanceof mt);
56374
+ while (n !== null && r instanceof gt);
56371
56375
  return {
56372
56376
  item: r,
56373
56377
  diff: i
@@ -56377,7 +56381,7 @@ const Eie = (t) => new _i(bie[t.readTypeRef()](t)), Lm = (t, e) => {
56377
56381
  t.keep = e, t = /** @type {AbstractType<any>} */
56378
56382
  t.parent._item;
56379
56383
  }, Ef = (t, e, n) => {
56380
- const { client: i, clock: r } = e.id, s = new mt(
56384
+ const { client: i, clock: r } = e.id, s = new gt(
56381
56385
  Ue(i, r + n),
56382
56386
  e,
56383
56387
  Ue(i, r + n - 1),
@@ -56445,7 +56449,7 @@ const Eie = (t) => new _i(bie[t.readTypeRef()](t)), Lm = (t, e) => {
56445
56449
  return null;
56446
56450
  } else
56447
56451
  u = p._map.get(e.parentSub) || null;
56448
- const m = Mt(a, l), g = Ue(l, m), y = new mt(
56452
+ const m = Mt(a, l), g = Ue(l, m), y = new gt(
56449
56453
  g,
56450
56454
  u,
56451
56455
  u && u.lastId,
@@ -56457,7 +56461,7 @@ const Eie = (t) => new _i(bie[t.readTypeRef()](t)), Lm = (t, e) => {
56457
56461
  );
56458
56462
  return e.redone = g, wy(y, !0), y.integrate(t, 0), y;
56459
56463
  };
56460
- let mt = class Mm extends xy {
56464
+ let gt = class Mm extends xy {
56461
56465
  /**
56462
56466
  * @param {ID} id
56463
56467
  * @param {Item | null} left
@@ -56778,8 +56782,8 @@ const Tie = () => {
56778
56782
  remove: t.length - n - i,
56779
56783
  insert: e.slice(n, e.length - i)
56780
56784
  };
56781
- }, Die = Iie, St = new ut("y-sync"), sr = new ut("y-undo");
56782
- new ut("yjs-cursor");
56785
+ }, Die = Iie, St = new ht("y-sync"), sr = new ht("y-undo");
56786
+ new ht("yjs-cursor");
56783
56787
  const Ri = (t, e) => t >>> e | t << 32 - e, Rie = (t) => Ri(t, 2) ^ Ri(t, 13) ^ Ri(t, 22), Fie = (t) => Ri(t, 6) ^ Ri(t, 11) ^ Ri(t, 25), Pie = (t) => Ri(t, 7) ^ Ri(t, 18) ^ t >>> 3, Bie = (t) => Ri(t, 17) ^ Ri(t, 19) ^ t >>> 10, zie = new Uint32Array([
56784
56788
  1116352408,
56785
56789
  1899447441,
@@ -56927,7 +56931,7 @@ e.sv.get(t.id.client) > t.id.clock && !ra(e.ds, t.id), qie = [{ light: "#ecd4443
56927
56931
  mapping: s
56928
56932
  } = {}) => {
56929
56933
  let o = !1;
56930
- const a = new Jie(t, s), l = new st({
56934
+ const a = new Jie(t, s), l = new ot({
56931
56935
  props: {
56932
56936
  editable: (c) => {
56933
56937
  const d = St.getState(c);
@@ -57211,7 +57215,7 @@ class Jie {
57211
57215
  n,
57212
57216
  n.deleteSet,
57213
57217
  (a) => {
57214
- if (a.constructor === mt) {
57218
+ if (a.constructor === gt) {
57215
57219
  const l = (
57216
57220
  /** @type {Y.ContentType} */
57217
57221
  /** @type {Y.Item} */
@@ -57708,7 +57712,7 @@ const sre = (t) => {
57708
57712
  }, ore = (t) => {
57709
57713
  var e, n;
57710
57714
  return ((n = (e = sr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.redo()) != null;
57711
- }, are = /* @__PURE__ */ new Set(["paragraph"]), lre = (t, e) => !(t instanceof mt) || !(t.content instanceof _i) || !(t.content.type instanceof Ur || t.content.type instanceof sn && e.has(t.content.type.nodeName)) || t.content.type._length === 0, cre = ({ protectedNodes: t = are, trackedOrigins: e = [], undoManager: n = null } = {}) => new st({
57715
+ }, are = /* @__PURE__ */ new Set(["paragraph"]), lre = (t, e) => !(t instanceof gt) || !(t.content instanceof _i) || !(t.content.type instanceof Ur || t.content.type instanceof sn && e.has(t.content.type.nodeName)) || t.content.type._length === 0, cre = ({ protectedNodes: t = are, trackedOrigins: e = [], undoManager: n = null } = {}) => new ot({
57712
57716
  key: sr,
57713
57717
  state: {
57714
57718
  init: (i, r) => {
@@ -57752,7 +57756,7 @@ const sre = (t) => {
57752
57756
  };
57753
57757
  }
57754
57758
  });
57755
- ft.create({
57759
+ ut.create({
57756
57760
  name: "collaboration",
57757
57761
  priority: 1e3,
57758
57762
  addOptions() {
@@ -57824,8 +57828,8 @@ ft.create({
57824
57828
  s,
57825
57829
  n,
57826
57830
  // Only add the filterInvalidContent plugin if content checking is enabled
57827
- this.editor.options.enableContentCheck && new st({
57828
- key: new ut("filterInvalidContent"),
57831
+ this.editor.options.enableContentCheck && new ot({
57832
+ key: new ht("filterInvalidContent"),
57829
57833
  filterTransaction: () => {
57830
57834
  var o;
57831
57835
  return this.storage.isDisabled && ((o = e.doc) === null || o === void 0 || o.destroy()), !0;
@@ -57839,14 +57843,14 @@ function dre(t) {
57839
57843
  }
57840
57844
  function Z5(t) {
57841
57845
  if (!t.length)
57842
- return at.empty;
57846
+ return lt.empty;
57843
57847
  const e = [], n = t[0].$from.node(0);
57844
57848
  return t.forEach((i) => {
57845
57849
  const r = i.$from.pos, s = i.$from.nodeAfter;
57846
57850
  s && e.push(Yt.node(r, r + s.nodeSize, {
57847
57851
  class: "ProseMirror-selectednoderange"
57848
57852
  }));
57849
- }), at.create(n, e);
57853
+ }), lt.create(n, e);
57850
57854
  }
57851
57855
  function i1(t, e, n) {
57852
57856
  const i = [], r = t.node(0);
@@ -57934,7 +57938,7 @@ tn.prototype.visible = !1;
57934
57938
  function Nc(t) {
57935
57939
  return t instanceof tn;
57936
57940
  }
57937
- ft.create({
57941
+ ut.create({
57938
57942
  name: "nodeRange",
57939
57943
  addOptions() {
57940
57944
  return {
@@ -57978,8 +57982,8 @@ ft.create({
57978
57982
  addProseMirrorPlugins() {
57979
57983
  let t = !1, e = !1;
57980
57984
  return [
57981
- new st({
57982
- key: new ut("nodeRange"),
57985
+ new ot({
57986
+ key: new ht("nodeRange"),
57983
57987
  props: {
57984
57988
  attributes: () => t ? {
57985
57989
  class: "ProseMirror-noderangeselection"
@@ -58113,7 +58117,7 @@ const X5 = (t, e) => {
58113
58117
  for (; n && n.parentNode && n.parentNode !== t.dom; )
58114
58118
  n = n.parentNode;
58115
58119
  return n;
58116
- }, nS = new ut("dragHandle"), iS = ({ pluginKey: t = nS, element: e, editor: n, tippyOptions: i, onNodeChange: r }) => {
58120
+ }, nS = new ht("dragHandle"), iS = ({ pluginKey: t = nS, element: e, editor: n, tippyOptions: i, onNodeChange: r }) => {
58117
58121
  const s = document.createElement("div");
58118
58122
  let o = null, a = !1, l = null, c = -1, d;
58119
58123
  return e.addEventListener("dragstart", (u) => {
@@ -58122,8 +58126,8 @@ const X5 = (t, e) => {
58122
58126
  }, 0);
58123
58127
  }), e.addEventListener("dragend", () => {
58124
58128
  e && (e.style.pointerEvents = "auto");
58125
- }), new st({
58126
- key: typeof t == "string" ? new ut(t) : t,
58129
+ }), new ot({
58130
+ key: typeof t == "string" ? new ht(t) : t,
58127
58131
  state: {
58128
58132
  init() {
58129
58133
  return { locked: !1 };
@@ -58223,7 +58227,7 @@ const X5 = (t, e) => {
58223
58227
  }
58224
58228
  });
58225
58229
  };
58226
- ft.create({
58230
+ ut.create({
58227
58231
  name: "dragHandle",
58228
58232
  addOptions() {
58229
58233
  return {
@@ -59576,7 +59580,7 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59576
59580
  })
59577
59581
  })]
59578
59582
  });
59579
- }, kae = xt(Zre, Xre), Ny = {
59583
+ }, kae = kt(Zre, Xre), Ny = {
59580
59584
  2: "gap-2",
59581
59585
  4: "gap-4",
59582
59586
  8: "gap-8"
@@ -59924,7 +59928,7 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59924
59928
  }, s))
59925
59929
  })]
59926
59930
  });
59927
- }), ko = xt(lse, dse), li = Object.assign(U(function({ chart: e, summaries: n, ...i }, r) {
59931
+ }), ko = kt(lse, dse), li = Object.assign(U(function({ chart: e, summaries: n, ...i }, r) {
59928
59932
  return f(ko, {
59929
59933
  ref: r,
59930
59934
  ...i,
@@ -59936,7 +59940,7 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59936
59940
  });
59937
59941
  }), {
59938
59942
  Skeleton: ko.Skeleton
59939
- }), fse = xt(U(function({ canBeBlurred: e, ...n }, i) {
59943
+ }), fse = kt(U(function({ canBeBlurred: e, ...n }, i) {
59940
59944
  const r = {
59941
59945
  ...n,
59942
59946
  header: {
@@ -59970,7 +59974,7 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59970
59974
  ...e.chart
59971
59975
  })
59972
59976
  });
59973
- }), hse = xt(use, li.Skeleton), pse = xt(U(function(e, n) {
59977
+ }), hse = kt(use, li.Skeleton), pse = kt(U(function(e, n) {
59974
59978
  return f(li, {
59975
59979
  ref: n,
59976
59980
  ...e,
@@ -59981,7 +59985,7 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59981
59985
  ...e.chart
59982
59986
  })
59983
59987
  });
59984
- }), li.Skeleton), mse = xt(U(function(e, n) {
59988
+ }), li.Skeleton), mse = kt(U(function(e, n) {
59985
59989
  return f(li, {
59986
59990
  ref: n,
59987
59991
  ...e,
@@ -59989,13 +59993,13 @@ const Wre = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
59989
59993
  ...e.chart
59990
59994
  })
59991
59995
  });
59992
- }), li.Skeleton), gse = xt(U(function(e, n) {
59996
+ }), li.Skeleton), gse = kt(U(function(e, n) {
59993
59997
  return f(li, {
59994
59998
  ref: n,
59995
59999
  ...e,
59996
60000
  chart: null
59997
60001
  });
59998
- }), li.Skeleton), yse = xt(U(function(e, n) {
60002
+ }), li.Skeleton), yse = kt(U(function(e, n) {
59999
60003
  return f(li, {
60000
60004
  ref: n,
60001
60005
  ...e,
@@ -61237,7 +61241,7 @@ const goe = {
61237
61241
  })
61238
61242
  })
61239
61243
  });
61240
- }), yoe = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], jae = xt(o6, () => f(Q6, {
61244
+ }), yoe = ["sm", "lg", "md", "md", "lg", "sm", "lg", "lg", "sm", "sm", "md", "md"], jae = kt(o6, () => f(Q6, {
61241
61245
  children: f(o6, {
61242
61246
  children: yoe.map((t, e) => f(ko.Skeleton, {
61243
61247
  height: t
@@ -61246,7 +61250,7 @@ const goe = {
61246
61250
  })), a6 = ({ children: t }) => f("div", {
61247
61251
  className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]",
61248
61252
  children: t
61249
- }), Vae = xt(U(function({ children: e }, n) {
61253
+ }), Vae = kt(U(function({ children: e }, n) {
61250
61254
  return f(ri, {
61251
61255
  ref: n,
61252
61256
  showBar: !1,