bi-components-library 1.3.2-next.67 → 1.3.2-next.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as v, jsxs as W, Fragment as tt } from "react/jsx-runtime";
2
- import ge, { useState as Q, useRef as ee, useMemo as Ve, useCallback as V, useEffect as be, createContext as Ao, useContext as Kf, useLayoutEffect as $e, useDebugValue as Qf, forwardRef as Cb } from "react";
2
+ import ge, { useState as Q, useRef as ee, useMemo as Ve, useCallback as V, useEffect as me, createContext as Ao, useContext as Kf, useLayoutEffect as $e, useDebugValue as Qf, forwardRef as Cb } from "react";
3
3
  import { Button as rr, Card as No, Modal as xb, Table as wo, Flex as ec, Spin as si, Empty as Sb, Select as Wl, Form as da, Input as _o, Space as kb, unstableSetRender as Ab, Tooltip as Io, DatePicker as Nb, Cascader as wb, Popover as Ha, Image as Xf, App as gr, Dropdown as _b, Popconfirm as Ib, ConfigProvider as Ob, Progress as Mb, Pagination as Rb, theme as Db } from "antd";
4
4
  import { createFromIconfontCN as Lb, LeftOutlined as Pb, SearchOutlined as Bb, ReloadOutlined as Fb, CloseCircleFilled as Jf, InfoCircleOutlined as Hb, SendOutlined as Ub, PauseCircleOutlined as zb, PlayCircleOutlined as Vb } from "@ant-design/icons";
5
5
  import { createRoot as $b } from "react-dom/client";
@@ -610,7 +610,7 @@ const { Option: e1 } = Wl, t1 = ({
610
610
  };
611
611
  g(z), S($);
612
612
  }, [a]);
613
- return be(() => {
613
+ return me(() => {
614
614
  const L = Object.keys(o).length > 0;
615
615
  (s && !w.current || L) && (k(), w.current = !0);
616
616
  }, [s, o, k]), /* @__PURE__ */ W("div", { children: [
@@ -906,7 +906,7 @@ wt.prototype.property = "";
906
906
  wt.prototype.spaceSeparated = !1;
907
907
  wt.prototype.space = void 0;
908
908
  let f1 = 0;
909
- const Ee = vr(), je = vr(), Hs = vr(), Z = vr(), He = vr(), Pr = vr(), Rt = vr();
909
+ const Ee = vr(), je = vr(), Hs = vr(), Z = vr(), He = vr(), Lr = vr(), Rt = vr();
910
910
  function vr() {
911
911
  return 2 ** ++f1;
912
912
  }
@@ -915,7 +915,7 @@ const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
915
915
  boolean: Ee,
916
916
  booleanish: je,
917
917
  commaOrSpaceSeparated: Rt,
918
- commaSeparated: Pr,
918
+ commaSeparated: Lr,
919
919
  number: Z,
920
920
  overloadedBoolean: Hs,
921
921
  spaceSeparated: He
@@ -950,7 +950,7 @@ Oo.prototype.defined = !0;
950
950
  function lc(e, t, n) {
951
951
  n && (e[t] = n);
952
952
  }
953
- function jr(e) {
953
+ function Yr(e) {
954
954
  const t = {}, n = {};
955
955
  for (const [r, l] of Object.entries(e.properties)) {
956
956
  const a = new Oo(
@@ -963,7 +963,7 @@ function jr(e) {
963
963
  }
964
964
  return new Yl(t, n, e.space);
965
965
  }
966
- const lh = jr({
966
+ const lh = Yr({
967
967
  properties: {
968
968
  ariaActiveDescendant: null,
969
969
  ariaAtomic: je,
@@ -1025,7 +1025,7 @@ function ah(e, t) {
1025
1025
  function ih(e, t) {
1026
1026
  return ah(e, t.toLowerCase());
1027
1027
  }
1028
- const h1 = jr({
1028
+ const h1 = Yr({
1029
1029
  attributes: {
1030
1030
  acceptcharset: "accept-charset",
1031
1031
  classname: "class",
@@ -1036,7 +1036,7 @@ const h1 = jr({
1036
1036
  properties: {
1037
1037
  // Standard Properties.
1038
1038
  abbr: null,
1039
- accept: Pr,
1039
+ accept: Lr,
1040
1040
  acceptCharset: He,
1041
1041
  accessKey: He,
1042
1042
  action: null,
@@ -1063,7 +1063,7 @@ const h1 = jr({
1063
1063
  contentEditable: je,
1064
1064
  controls: Ee,
1065
1065
  controlsList: He,
1066
- coords: Z | Pr,
1066
+ coords: Z | Lr,
1067
1067
  crossOrigin: null,
1068
1068
  data: null,
1069
1069
  dateTime: null,
@@ -1386,7 +1386,7 @@ const h1 = jr({
1386
1386
  },
1387
1387
  space: "html",
1388
1388
  transform: ih
1389
- }), p1 = jr({
1389
+ }), p1 = Yr({
1390
1390
  attributes: {
1391
1391
  accentHeight: "accent-height",
1392
1392
  alignmentBaseline: "alignment-baseline",
@@ -1645,9 +1645,9 @@ const h1 = jr({
1645
1645
  from: null,
1646
1646
  fx: null,
1647
1647
  fy: null,
1648
- g1: Pr,
1649
- g2: Pr,
1650
- glyphName: Pr,
1648
+ g1: Lr,
1649
+ g2: Lr,
1650
+ glyphName: Lr,
1651
1651
  glyphOrientationHorizontal: null,
1652
1652
  glyphOrientationVertical: null,
1653
1653
  glyphRef: null,
@@ -1945,7 +1945,7 @@ const h1 = jr({
1945
1945
  },
1946
1946
  space: "svg",
1947
1947
  transform: ah
1948
- }), sh = jr({
1948
+ }), sh = Yr({
1949
1949
  properties: {
1950
1950
  xLinkActuate: null,
1951
1951
  xLinkArcRole: null,
@@ -1959,12 +1959,12 @@ const h1 = jr({
1959
1959
  transform(e, t) {
1960
1960
  return "xlink:" + t.slice(5).toLowerCase();
1961
1961
  }
1962
- }), oh = jr({
1962
+ }), oh = Yr({
1963
1963
  attributes: { xmlnsxlink: "xmlns:xlink" },
1964
1964
  properties: { xmlnsXLink: null, xmlns: null },
1965
1965
  space: "xmlns",
1966
1966
  transform: ih
1967
- }), uh = jr({
1967
+ }), uh = Yr({
1968
1968
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1969
1969
  space: "xml",
1970
1970
  transform(e, t) {
@@ -2026,7 +2026,7 @@ function ch(e) {
2026
2026
  function Mo(e) {
2027
2027
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2028
2028
  }
2029
- var Ar = {}, Wi, sc;
2029
+ var kr = {}, Wi, sc;
2030
2030
  function E1() {
2031
2031
  if (sc) return Wi;
2032
2032
  sc = 1;
@@ -2118,12 +2118,12 @@ function E1() {
2118
2118
  }
2119
2119
  var oc;
2120
2120
  function T1() {
2121
- if (oc) return Ar;
2121
+ if (oc) return kr;
2122
2122
  oc = 1;
2123
- var e = Ar && Ar.__importDefault || function(r) {
2123
+ var e = kr && kr.__importDefault || function(r) {
2124
2124
  return r && r.__esModule ? r : { default: r };
2125
2125
  };
2126
- Object.defineProperty(Ar, "__esModule", { value: !0 }), Ar.default = n;
2126
+ Object.defineProperty(kr, "__esModule", { value: !0 }), kr.default = n;
2127
2127
  const t = e(E1());
2128
2128
  function n(r, l) {
2129
2129
  let a = null;
@@ -2137,7 +2137,7 @@ function T1() {
2137
2137
  s ? l(u, c, o) : c && (a = a || {}, a[u] = c);
2138
2138
  }), a;
2139
2139
  }
2140
- return Ar;
2140
+ return kr;
2141
2141
  }
2142
2142
  var rl = {}, uc;
2143
2143
  function C1() {
@@ -2687,7 +2687,7 @@ function vh(e, t) {
2687
2687
  n > 1114111 ? "�" : String.fromCodePoint(n)
2688
2688
  );
2689
2689
  }
2690
- function Br(e) {
2690
+ function Pr(e) {
2691
2691
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2692
2692
  }
2693
2693
  const en = Vn(/[A-Za-z]/), Lt = Vn(/[\dA-Za-z]/), J1 = Vn(/[#-'*+\--9=?A-Z^-~]/);
@@ -2715,7 +2715,7 @@ function Vn(e) {
2715
2715
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
2716
2716
  }
2717
2717
  }
2718
- function Gr(e) {
2718
+ function jr(e) {
2719
2719
  const t = [];
2720
2720
  let n = -1, r = 0, l = 0;
2721
2721
  for (; ++n < e.length; ) {
@@ -3655,7 +3655,7 @@ function Dg(e, t, n) {
3655
3655
  )(h);
3656
3656
  }
3657
3657
  function s(h) {
3658
- return l = Br(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), o) : n(h);
3658
+ return l = Pr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), o) : n(h);
3659
3659
  }
3660
3660
  function o(h) {
3661
3661
  return We(h) ? fn(e, u)(h) : u(h);
@@ -4123,7 +4123,7 @@ function nv(e, t, n) {
4123
4123
  }
4124
4124
  return s;
4125
4125
  function s(f) {
4126
- return a ? a._inactive ? d(f) : (i = r.parser.defined.includes(Br(r.sliceSerialize({
4126
+ return a ? a._inactive ? d(f) : (i = r.parser.defined.includes(Pr(r.sliceSerialize({
4127
4127
  start: a.end,
4128
4128
  end: r.now()
4129
4129
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(f), e.exit("labelMarker"), e.exit("labelEnd"), o) : n(f);
@@ -4175,7 +4175,7 @@ function lv(e, t, n) {
4175
4175
  return Sh.call(r, e, a, i, "reference", "referenceMarker", "referenceString")(s);
4176
4176
  }
4177
4177
  function a(s) {
4178
- return r.parser.defined.includes(Br(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(s) : n(s);
4178
+ return r.parser.defined.includes(Pr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(s) : n(s);
4179
4179
  }
4180
4180
  function i(s) {
4181
4181
  return n(s);
@@ -4890,7 +4890,7 @@ function jv(e) {
4890
4890
  definitionDestinationString: i,
4891
4891
  definitionLabelString: i,
4892
4892
  definitionTitleString: i,
4893
- emphasis: a(Cr),
4893
+ emphasis: a(Tr),
4894
4894
  hardBreakEscape: a(_e),
4895
4895
  hardBreakTrailing: a(_e),
4896
4896
  htmlFlow: a(ze, i),
@@ -4902,8 +4902,8 @@ function jv(e) {
4902
4902
  link: a(gn),
4903
4903
  listItem: a(Tt),
4904
4904
  listItemValue: f,
4905
- listOrdered: a(xr, d),
4906
- listUnordered: a(xr),
4905
+ listOrdered: a(Cr, d),
4906
+ listUnordered: a(Cr),
4907
4907
  paragraph: a(vn),
4908
4908
  reference: D,
4909
4909
  referenceString: i,
@@ -5135,7 +5135,7 @@ function jv(e) {
5135
5135
  }
5136
5136
  function A(j) {
5137
5137
  const te = this.resume(), ve = this.stack[this.stack.length - 1];
5138
- ve.label = te, ve.identifier = Br(this.sliceSerialize(j)).toLowerCase();
5138
+ ve.label = te, ve.identifier = Pr(this.sliceSerialize(j)).toLowerCase();
5139
5139
  }
5140
5140
  function S() {
5141
5141
  const j = this.resume(), te = this.stack[this.stack.length - 1];
@@ -5219,7 +5219,7 @@ function jv(e) {
5219
5219
  }
5220
5220
  function $(j) {
5221
5221
  const te = this.sliceSerialize(j), ve = this.stack[this.stack.length - 2];
5222
- ve.label = qv(te), ve.identifier = Br(te).toLowerCase();
5222
+ ve.label = qv(te), ve.identifier = Pr(te).toLowerCase();
5223
5223
  }
5224
5224
  function G() {
5225
5225
  const j = this.stack[this.stack.length - 1], te = this.resume(), ve = this.stack[this.stack.length - 1];
@@ -5245,7 +5245,7 @@ function jv(e) {
5245
5245
  }
5246
5246
  function pe(j) {
5247
5247
  const te = this.resume(), ve = this.stack[this.stack.length - 1];
5248
- ve.label = te, ve.identifier = Br(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
5248
+ ve.label = te, ve.identifier = Pr(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
5249
5249
  }
5250
5250
  function Se(j) {
5251
5251
  this.data.characterReferenceType = j.type;
@@ -5300,7 +5300,7 @@ function jv(e) {
5300
5300
  url: ""
5301
5301
  };
5302
5302
  }
5303
- function Cr() {
5303
+ function Tr() {
5304
5304
  return {
5305
5305
  type: "emphasis",
5306
5306
  children: []
@@ -5341,7 +5341,7 @@ function jv(e) {
5341
5341
  children: []
5342
5342
  };
5343
5343
  }
5344
- function xr(j) {
5344
+ function Cr(j) {
5345
5345
  return {
5346
5346
  type: "list",
5347
5347
  ordered: j.type === "listOrdered",
@@ -5491,7 +5491,7 @@ function ey(e, t) {
5491
5491
  return e.patch(t, n), e.applyData(t, n);
5492
5492
  }
5493
5493
  function ty(e, t) {
5494
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l = Gr(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
5494
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l = jr(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
5495
5495
  let i, s = e.footnoteCounts.get(r);
5496
5496
  s === void 0 ? (s = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = a + 1, s += 1, e.footnoteCounts.set(r, s);
5497
5497
  const o = {
@@ -5543,13 +5543,13 @@ function ly(e, t) {
5543
5543
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
5544
5544
  if (!r)
5545
5545
  return Ih(e, t);
5546
- const l = { src: Gr(r.url || ""), alt: t.alt };
5546
+ const l = { src: jr(r.url || ""), alt: t.alt };
5547
5547
  r.title !== null && r.title !== void 0 && (l.title = r.title);
5548
5548
  const a = { type: "element", tagName: "img", properties: l, children: [] };
5549
5549
  return e.patch(t, a), e.applyData(t, a);
5550
5550
  }
5551
5551
  function ay(e, t) {
5552
- const n = { src: Gr(t.url) };
5552
+ const n = { src: jr(t.url) };
5553
5553
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
5554
5554
  const r = { type: "element", tagName: "img", properties: n, children: [] };
5555
5555
  return e.patch(t, r), e.applyData(t, r);
@@ -5569,7 +5569,7 @@ function sy(e, t) {
5569
5569
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
5570
5570
  if (!r)
5571
5571
  return Ih(e, t);
5572
- const l = { href: Gr(r.url || "") };
5572
+ const l = { href: jr(r.url || "") };
5573
5573
  r.title !== null && r.title !== void 0 && (l.title = r.title);
5574
5574
  const a = {
5575
5575
  type: "element",
@@ -5580,7 +5580,7 @@ function sy(e, t) {
5580
5580
  return e.patch(t, a), e.applyData(t, a);
5581
5581
  }
5582
5582
  function oy(e, t) {
5583
- const n = { href: Gr(t.url) };
5583
+ const n = { href: jr(t.url) };
5584
5584
  t.title !== null && t.title !== void 0 && (n.title = t.title);
5585
5585
  const r = {
5586
5586
  type: "element",
@@ -5853,24 +5853,24 @@ const Mh = -1, di = 0, bl = 1, Ua = 2, Fo = 3, Ho = 4, Uo = 5, zo = 6, Rh = 7, D
5853
5853
  return n(new wc[a](i), l);
5854
5854
  };
5855
5855
  return r;
5856
- }, _c = (e) => Cy(/* @__PURE__ */ new Map(), e)(0), Nr = "", { toString: xy } = {}, { keys: Sy } = Object, il = (e) => {
5856
+ }, _c = (e) => Cy(/* @__PURE__ */ new Map(), e)(0), Ar = "", { toString: xy } = {}, { keys: Sy } = Object, il = (e) => {
5857
5857
  const t = typeof e;
5858
5858
  if (t !== "object" || !e)
5859
5859
  return [di, t];
5860
5860
  const n = xy.call(e).slice(8, -1);
5861
5861
  switch (n) {
5862
5862
  case "Array":
5863
- return [bl, Nr];
5863
+ return [bl, Ar];
5864
5864
  case "Object":
5865
- return [Ua, Nr];
5865
+ return [Ua, Ar];
5866
5866
  case "Date":
5867
- return [Fo, Nr];
5867
+ return [Fo, Ar];
5868
5868
  case "RegExp":
5869
- return [Ho, Nr];
5869
+ return [Ho, Ar];
5870
5870
  case "Map":
5871
- return [Uo, Nr];
5871
+ return [Uo, Ar];
5872
5872
  case "Set":
5873
- return [zo, Nr];
5873
+ return [zo, Ar];
5874
5874
  case "DataView":
5875
5875
  return [bl, n];
5876
5876
  }
@@ -5981,7 +5981,7 @@ function wy(e) {
5981
5981
  );
5982
5982
  if (!u)
5983
5983
  continue;
5984
- const c = e.all(u), d = String(u.identifier).toUpperCase(), f = Gr(d.toLowerCase());
5984
+ const c = e.all(u), d = String(u.identifier).toUpperCase(), f = jr(d.toLowerCase());
5985
5985
  let h = 0;
5986
5986
  const m = [], g = e.footnoteCounts.get(d);
5987
5987
  for (; g !== void 0 && ++h <= g; ) {
@@ -7881,7 +7881,7 @@ function IE(e, t) {
7881
7881
  const s = (
7882
7882
  /** @type {DefaultTreeAdapterMap['template']} */
7883
7883
  t
7884
- ), o = s.sourceCodeLocation, u = o && o.startTag && Mr(o.startTag), c = o && o.endTag && Mr(o.endTag), d = (
7884
+ ), o = s.sourceCodeLocation, u = o && o.startTag && Or(o.startTag), c = o && o.endTag && Or(o.endTag), d = (
7885
7885
  /** @type {Root} */
7886
7886
  $o(e, s.content)
7887
7887
  );
@@ -7896,7 +7896,7 @@ function Ia(e, t, n) {
7896
7896
  }
7897
7897
  }
7898
7898
  function OE(e, t, n) {
7899
- const r = Mr(n);
7899
+ const r = Or(n);
7900
7900
  if (t.type === "element") {
7901
7901
  const l = t.children[t.children.length - 1];
7902
7902
  if (r && !n.endTag && l && l.position && l.position.end && (r.end = Object.assign({}, l.position.end)), e.verbose) {
@@ -7904,17 +7904,17 @@ function OE(e, t, n) {
7904
7904
  let i;
7905
7905
  if (n.attrs)
7906
7906
  for (i in n.attrs)
7907
- Uh.call(n.attrs, i) && (a[oi(e.schema, i).property] = Mr(
7907
+ Uh.call(n.attrs, i) && (a[oi(e.schema, i).property] = Or(
7908
7908
  n.attrs[i]
7909
7909
  ));
7910
7910
  n.startTag;
7911
- const s = Mr(n.startTag), o = n.endTag ? Mr(n.endTag) : void 0, u = { opening: s };
7911
+ const s = Or(n.startTag), o = n.endTag ? Or(n.endTag) : void 0, u = { opening: s };
7912
7912
  o && (u.closing = o), u.properties = a, t.data = { position: u };
7913
7913
  }
7914
7914
  }
7915
7915
  return r;
7916
7916
  }
7917
- function Mr(e) {
7917
+ function Or(e) {
7918
7918
  const t = qc({
7919
7919
  line: e.startLine,
7920
7920
  column: e.startCol,
@@ -7956,11 +7956,11 @@ function LE(e, t) {
7956
7956
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
7957
7957
  childNodes: []
7958
7958
  };
7959
- return n.childNodes = qo(e.children, n, t), Kr(e, n), n;
7959
+ return n.childNodes = qo(e.children, n, t), Gr(e, n), n;
7960
7960
  }
7961
7961
  function PE(e, t) {
7962
7962
  const n = { nodeName: "#document-fragment", childNodes: [] };
7963
- return n.childNodes = qo(e.children, n, t), Kr(e, n), n;
7963
+ return n.childNodes = qo(e.children, n, t), Gr(e, n), n;
7964
7964
  }
7965
7965
  function BE(e) {
7966
7966
  const t = {
@@ -7970,7 +7970,7 @@ function BE(e) {
7970
7970
  systemId: "",
7971
7971
  parentNode: null
7972
7972
  };
7973
- return Kr(e, t), t;
7973
+ return Gr(e, t), t;
7974
7974
  }
7975
7975
  function FE(e) {
7976
7976
  const t = {
@@ -7978,7 +7978,7 @@ function FE(e) {
7978
7978
  value: e.value,
7979
7979
  parentNode: null
7980
7980
  };
7981
- return Kr(e, t), t;
7981
+ return Gr(e, t), t;
7982
7982
  }
7983
7983
  function HE(e) {
7984
7984
  const t = {
@@ -7986,7 +7986,7 @@ function HE(e) {
7986
7986
  data: e.value,
7987
7987
  parentNode: null
7988
7988
  };
7989
- return Kr(e, t), t;
7989
+ return Gr(e, t), t;
7990
7990
  }
7991
7991
  function UE(e, t) {
7992
7992
  const n = t;
@@ -8014,7 +8014,7 @@ function UE(e, t) {
8014
8014
  childNodes: [],
8015
8015
  parentNode: null
8016
8016
  };
8017
- return s.childNodes = qo(e.children, s, r), Kr(e, s), e.tagName === "template" && e.content && (s.content = PE(e.content, r)), s;
8017
+ return s.childNodes = qo(e.children, s, r), Gr(e, s), e.tagName === "template" && e.content && (s.content = PE(e.content, r)), s;
8018
8018
  }
8019
8019
  function zE(e, t, n) {
8020
8020
  const r = oi(e, t);
@@ -8041,7 +8041,7 @@ function qo(e, t, n) {
8041
8041
  }
8042
8042
  return l;
8043
8043
  }
8044
- function Kr(e, t) {
8044
+ function Gr(e, t) {
8045
8045
  const n = e.position;
8046
8046
  n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
8047
8047
  startLine: n.start.line,
@@ -8653,7 +8653,7 @@ const r2 = /* @__PURE__ */ new Map([
8653
8653
  [H.WBR, p.WBR],
8654
8654
  [H.XMP, p.XMP]
8655
8655
  ]);
8656
- function Qr(e) {
8656
+ function Kr(e) {
8657
8657
  var t;
8658
8658
  return (t = r2.get(e)) !== null && t !== void 0 ? t : p.UNKNOWN;
8659
8659
  }
@@ -8935,7 +8935,7 @@ class o2 {
8935
8935
  }
8936
8936
  emitCurrentTagToken() {
8937
8937
  const t = this.currentToken;
8938
- this.prepareToken(t), t.tagID = Qr(t.tagName), t.type === Ae.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
8938
+ this.prepareToken(t), t.tagID = Kr(t.tagName), t.type === Ae.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
8939
8939
  }
8940
8940
  emitCurrentComment(t) {
8941
8941
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -11426,7 +11426,7 @@ function Wo(e) {
11426
11426
  }
11427
11427
  function O2(e) {
11428
11428
  const t = w2.get(e.tagName);
11429
- t != null && (e.tagName = t, e.tagID = Qr(e.tagName));
11429
+ t != null && (e.tagName = t, e.tagID = Kr(e.tagName));
11430
11430
  }
11431
11431
  function M2(e, t) {
11432
11432
  return t === K.MATHML && (e === p.MI || e === p.MO || e === p.MN || e === p.MS || e === p.MTEXT);
@@ -11467,7 +11467,7 @@ class td {
11467
11467
  this.fragmentContext = r, this.scriptHandler = l, this.currentToken = null, this.stopped = !1, this.insertionMode = M.INITIAL, this.originalInsertionMode = M.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
11468
11468
  ...ed,
11469
11469
  ...t
11470
- }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new o2(this.options, this), this.activeFormattingElements = new b2(this.treeAdapter), this.fragmentContextID = r ? Qr(this.treeAdapter.getTagName(r)) : p.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new m2(this.document, this.treeAdapter, this);
11470
+ }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new o2(this.options, this), this.activeFormattingElements = new b2(this.treeAdapter), this.fragmentContextID = r ? Kr(this.treeAdapter.getTagName(r)) : p.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new m2(this.document, this.treeAdapter, this);
11471
11471
  }
11472
11472
  // API
11473
11473
  static parse(t, n) {
@@ -12096,7 +12096,7 @@ class td {
12096
12096
  break;
12097
12097
  }
12098
12098
  case M.IN_TABLE: {
12099
- Ur(this, t);
12099
+ Hr(this, t);
12100
12100
  break;
12101
12101
  }
12102
12102
  case M.IN_TABLE_TEXT: {
@@ -12390,7 +12390,7 @@ function V2(e, t) {
12390
12390
  return e.openElements.replace(t.element, r), t.element = r, r;
12391
12391
  }
12392
12392
  function $2(e, t, n) {
12393
- const r = e.treeAdapter.getTagName(t), l = Qr(r);
12393
+ const r = e.treeAdapter.getTagName(t), l = Kr(r);
12394
12394
  if (e._isElementCausesFosterParenting(l))
12395
12395
  e._fosterParentElement(n);
12396
12396
  else {
@@ -13197,7 +13197,7 @@ function KT(e, t) {
13197
13197
  function QT(e, t) {
13198
13198
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, K.HTML), e.formElement = e.openElements.current, e.openElements.pop());
13199
13199
  }
13200
- function Ur(e, t) {
13200
+ function Hr(e, t) {
13201
13201
  switch (t.tagID) {
13202
13202
  case p.TD:
13203
13203
  case p.TH:
@@ -13294,7 +13294,7 @@ function ol(e, t) {
13294
13294
  const cp = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
13295
13295
  function XT(e, t) {
13296
13296
  const n = t.tagID;
13297
- cp.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Ur(e, t)) : ft(e, t);
13297
+ cp.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Hr(e, t)) : ft(e, t);
13298
13298
  }
13299
13299
  function JT(e, t) {
13300
13300
  const n = t.tagID;
@@ -13373,11 +13373,11 @@ function bi(e, t) {
13373
13373
  case p.TBODY:
13374
13374
  case p.TFOOT:
13375
13375
  case p.THEAD: {
13376
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE, Ur(e, t));
13376
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE, Hr(e, t));
13377
13377
  break;
13378
13378
  }
13379
13379
  default:
13380
- Ur(e, t);
13380
+ Hr(e, t);
13381
13381
  }
13382
13382
  }
13383
13383
  function Js(e, t) {
@@ -13424,7 +13424,7 @@ function gi(e, t) {
13424
13424
  break;
13425
13425
  }
13426
13426
  default:
13427
- Ur(e, t);
13427
+ Hr(e, t);
13428
13428
  }
13429
13429
  }
13430
13430
  function dp(e, t) {
@@ -13567,7 +13567,7 @@ function l3(e, t) {
13567
13567
  case p.TBODY:
13568
13568
  case p.TFOOT:
13569
13569
  case p.THEAD: {
13570
- e.tmplInsertionModeStack[0] = M.IN_TABLE, e.insertionMode = M.IN_TABLE, Ur(e, t);
13570
+ e.tmplInsertionModeStack[0] = M.IN_TABLE, e.insertionMode = M.IN_TABLE, Hr(e, t);
13571
13571
  break;
13572
13572
  }
13573
13573
  case p.COL: {
@@ -13722,7 +13722,7 @@ function gp(e, t) {
13722
13722
  stitches: !1,
13723
13723
  options: t || {}
13724
13724
  };
13725
- r(e, l), Xr(l, an());
13725
+ r(e, l), Qr(l, an());
13726
13726
  const a = n ? l.parser.document : l.parser.getFragment(), i = _E(a, {
13727
13727
  // To do: support `space`?
13728
13728
  file: l.options.file
@@ -13758,7 +13758,7 @@ function T3(e, t) {
13758
13758
  chars: e.value,
13759
13759
  location: Ql(e)
13760
13760
  };
13761
- Xr(t, an(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13761
+ Qr(t, an(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13762
13762
  }
13763
13763
  function C3(e, t) {
13764
13764
  const n = {
@@ -13769,7 +13769,7 @@ function C3(e, t) {
13769
13769
  systemId: "",
13770
13770
  location: Ql(e)
13771
13771
  };
13772
- Xr(t, an(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13772
+ Qr(t, an(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13773
13773
  }
13774
13774
  function x3(e, t) {
13775
13775
  t.stitches = !0;
@@ -13789,7 +13789,7 @@ function yp(e, t) {
13789
13789
  data: n,
13790
13790
  location: Ql(e)
13791
13791
  };
13792
- Xr(t, an(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
13792
+ Qr(t, an(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
13793
13793
  }
13794
13794
  function S3(e, t) {
13795
13795
  if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Ep(t, an(e)), t.parser.tokenizer.write(
@@ -13814,7 +13814,7 @@ function k3(e, t) {
13814
13814
  throw v3.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
13815
13815
  }
13816
13816
  }
13817
- function Xr(e, t) {
13817
+ function Qr(e, t) {
13818
13818
  Ep(e, t);
13819
13819
  const n = e.parser.tokenizer.currentCharacterToken;
13820
13820
  n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = Ye.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
@@ -13835,7 +13835,7 @@ function Ep(e, t) {
13835
13835
  function A3(e, t) {
13836
13836
  const n = e.tagName.toLowerCase();
13837
13837
  if (t.parser.tokenizer.state === Ye.PLAINTEXT) return;
13838
- Xr(t, an(e));
13838
+ Qr(t, an(e));
13839
13839
  const r = t.parser.openElements.current;
13840
13840
  let l = "namespaceURI" in r ? r.namespaceURI : Zn.html;
13841
13841
  l === Zn.html && n === "svg" && (l = Zn.svg);
@@ -13846,7 +13846,7 @@ function A3(e, t) {
13846
13846
  ), i = {
13847
13847
  type: Ae.START_TAG,
13848
13848
  tagName: n,
13849
- tagID: Qr(n),
13849
+ tagID: Kr(n),
13850
13850
  // We always send start and end tags.
13851
13851
  selfClosing: !1,
13852
13852
  ackSelfClosing: !1,
@@ -13860,11 +13860,11 @@ function A3(e, t) {
13860
13860
  function N3(e, t) {
13861
13861
  const n = e.tagName.toLowerCase();
13862
13862
  if (!t.parser.tokenizer.inForeignNode && VE.includes(n) || t.parser.tokenizer.state === Ye.PLAINTEXT) return;
13863
- Xr(t, ui(e));
13863
+ Qr(t, ui(e));
13864
13864
  const r = {
13865
13865
  type: Ae.END_TAG,
13866
13866
  tagName: n,
13867
- tagID: Qr(n),
13867
+ tagID: Kr(n),
13868
13868
  selfClosing: !1,
13869
13869
  ackSelfClosing: !1,
13870
13870
  attrs: [],
@@ -13910,7 +13910,7 @@ function I3(e) {
13910
13910
  );
13911
13911
  };
13912
13912
  }
13913
- const Qn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Rr = {
13913
+ const Qn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Mr = {
13914
13914
  ancestors: {
13915
13915
  tbody: ["table"],
13916
13916
  td: ["table"],
@@ -14108,7 +14108,7 @@ const Qn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Rr = {
14108
14108
  function O3(e, t) {
14109
14109
  let n = { type: "root", children: [] };
14110
14110
  const r = {
14111
- schema: t ? { ...Rr, ...t } : Rr,
14111
+ schema: t ? { ...Mr, ...t } : Mr,
14112
14112
  stack: []
14113
14113
  }, l = Tp(r, e);
14114
14114
  return l && (Array.isArray(l) ? l.length === 1 ? n = l[0] : n.children = l : n = l), n;
@@ -15148,15 +15148,15 @@ function Jl(e) {
15148
15148
  return null;
15149
15149
  }
15150
15150
  const PC = {
15151
- ...Rr,
15151
+ ...Mr,
15152
15152
  attributes: {
15153
- ...Rr.attributes || {},
15153
+ ...Mr.attributes || {},
15154
15154
  span: [
15155
- ...(Rr.attributes || {}).span || [],
15155
+ ...(Mr.attributes || {}).span || [],
15156
15156
  "style"
15157
15157
  ],
15158
15158
  font: [
15159
- ...(Rr.attributes || {}).font || [],
15159
+ ...(Mr.attributes || {}).font || [],
15160
15160
  "color"
15161
15161
  ]
15162
15162
  }
@@ -15206,14 +15206,14 @@ const PC = {
15206
15206
  components: zC,
15207
15207
  children: FC(e)
15208
15208
  }
15209
- ), kp = Ao(null), Er = () => Kf(kp), qC = ({
15209
+ ), kp = Ao(null), Xr = () => Kf(kp), qC = ({
15210
15210
  data: e,
15211
15211
  initialPlatformIndex: t = 0,
15212
15212
  initialStepIndex: n = 0,
15213
15213
  onClose: r
15214
15214
  }) => {
15215
- const l = Er(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = Q(t), [u, c] = Q(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], g = Math.min(h.length, m.length), b = Math.min(Math.max(u, 0), Math.max(g - 1, 0)), E = h[b], A = m[b] || "", S = (e.description || "").trim(), O = (e.disclaimer || "").trim(), I = i > 1;
15216
- be(() => {
15215
+ const l = Xr(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = Q(t), [u, c] = Q(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], g = Math.min(h.length, m.length), b = Math.min(Math.max(u, 0), Math.max(g - 1, 0)), E = h[b], A = m[b] || "", S = (e.description || "").trim(), O = (e.disclaimer || "").trim(), I = i > 1;
15216
+ me(() => {
15217
15217
  const w = (_) => {
15218
15218
  _.key === "Escape" ? r() : _.key === "ArrowLeft" && b > 0 ? c(b - 1) : _.key === "ArrowRight" && b < g - 1 && c(b + 1);
15219
15219
  };
@@ -15432,7 +15432,7 @@ const PC = {
15432
15432
  );
15433
15433
  $e(() => {
15434
15434
  g.current !== i ? (g.current = i, I(!1)) : I(!0);
15435
- }, [I, i, s]), be(() => {
15435
+ }, [I, i, s]), me(() => {
15436
15436
  const k = h.current;
15437
15437
  if (!k || typeof ResizeObserver > "u") return;
15438
15438
  const P = k.closest(".rte-editor");
@@ -15660,7 +15660,7 @@ const eu = {
15660
15660
  return () => {
15661
15661
  window.cancelAnimationFrame(f), window.clearTimeout(h);
15662
15662
  };
15663
- }, [d]), be(() => {
15663
+ }, [d]), me(() => {
15664
15664
  if (!("fonts" in document)) return;
15665
15665
  let f = !1;
15666
15666
  const h = document.fonts;
@@ -15772,7 +15772,7 @@ const Ip = ge.memo(
15772
15772
  return () => {
15773
15773
  window.cancelAnimationFrame(_), window.clearTimeout(k);
15774
15774
  };
15775
- }, [I]), be(() => {
15775
+ }, [I]), me(() => {
15776
15776
  if (!("fonts" in document)) return;
15777
15777
  let _ = !1;
15778
15778
  const k = document.fonts;
@@ -22169,7 +22169,7 @@ const lx = [
22169
22169
  }, Dp = ge.memo(
22170
22170
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
22171
22171
  const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : lx, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = Q(() => ps(s)), [c, d] = Q(0), [f, h] = Q(100), m = ee(null);
22172
- be(() => {
22172
+ me(() => {
22173
22173
  u(ps(s));
22174
22174
  }, [s]);
22175
22175
  const g = o.length >= 2, b = V(
@@ -22214,7 +22214,7 @@ const lx = [
22214
22214
  return () => {
22215
22215
  window.cancelAnimationFrame(I), window.clearTimeout(C);
22216
22216
  };
22217
- }, [O]), be(() => {
22217
+ }, [O]), me(() => {
22218
22218
  if (!("fonts" in document)) return;
22219
22219
  let I = !1;
22220
22220
  const C = document.fonts;
@@ -22336,7 +22336,7 @@ const tu = (e) => {
22336
22336
  open: o
22337
22337
  }) => {
22338
22338
  const [u, c] = Q(!1), [d, f] = Q(null), [h, m] = Q(""), g = ee(0), b = ee(null);
22339
- be(() => {
22339
+ me(() => {
22340
22340
  if (!o) return;
22341
22341
  const C = ++g.current;
22342
22342
  c(!0), n({ nodeKey: e, nodeType: t }).then((w) => {
@@ -22355,7 +22355,7 @@ const tu = (e) => {
22355
22355
  (C) => s ? C.filter((w) => sx(w.url) === s) : C,
22356
22356
  [s]
22357
22357
  );
22358
- be(() => {
22358
+ me(() => {
22359
22359
  if (!o || !s || !d) return;
22360
22360
  const C = d.tabs.find((w) => E(w.items).length > 0);
22361
22361
  C && m((w) => w === C.key ? w : C.key);
@@ -22444,7 +22444,7 @@ const tu = (e) => {
22444
22444
  quiet: u,
22445
22445
  openSignal: c
22446
22446
  }) => {
22447
- const d = Er(), [f, h] = Q(!1), m = ee(null), g = ee({}).current, [b, E] = Q("bottomLeft"), [A, S] = Q(0), O = V(() => {
22447
+ const d = Xr(), [f, h] = Q(!1), m = ee(null), g = ee({}).current, [b, E] = Q("bottomLeft"), [A, S] = Q(0), O = V(() => {
22448
22448
  const k = e.current, P = m.current;
22449
22449
  if (!k || !P) return;
22450
22450
  const R = k.getBoundingClientRect(), F = P.getBoundingClientRect();
@@ -22466,14 +22466,14 @@ const tu = (e) => {
22466
22466
  new CustomEvent("rte-report-dropdown-opening", { detail: g })
22467
22467
  ), h(!0);
22468
22468
  }, [g]);
22469
- be(() => {
22469
+ me(() => {
22470
22470
  c !== void 0 && C();
22471
- }, [c, C]), be(() => {
22471
+ }, [c, C]), me(() => {
22472
22472
  const k = (P) => {
22473
22473
  P.detail !== g && h(!1);
22474
22474
  };
22475
22475
  return document.addEventListener("rte-report-dropdown-opening", k), () => document.removeEventListener("rte-report-dropdown-opening", k);
22476
- }, [g]), be(() => {
22476
+ }, [g]), me(() => {
22477
22477
  if (!f) return;
22478
22478
  const k = (P) => {
22479
22479
  const R = e.current, F = P.target;
@@ -22880,7 +22880,7 @@ const Bp = ({
22880
22880
  Fp.displayName = "MultiVariableSelectNode";
22881
22881
  function Hp(e) {
22882
22882
  const t = Ve(() => e == null ? "" : typeof e == "string" ? e : typeof URL > "u" || typeof URL.createObjectURL != "function" ? "" : URL.createObjectURL(e), [e]);
22883
- return be(() => {
22883
+ return me(() => {
22884
22884
  if (t && !(typeof e != "object" || e === null))
22885
22885
  return () => {
22886
22886
  typeof URL < "u" && typeof URL.revokeObjectURL == "function" && URL.revokeObjectURL(t);
@@ -22902,7 +22902,7 @@ const fx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, hx = (e) => fx.test(e), px
22902
22902
  onReplace: c,
22903
22903
  onRemove: d
22904
22904
  }) => {
22905
- const f = ee(null), h = ee(null), m = Er(), [g, b] = Q(!1), E = t != null, A = Hp(t), [S, O] = Q(!1), I = V(() => {
22905
+ const f = ee(null), h = ee(null), m = Xr(), [g, b] = Q(!1), E = t != null, A = Hp(t), [S, O] = Q(!1), I = V(() => {
22906
22906
  a || f.current?.click();
22907
22907
  }, [a]), C = V(
22908
22908
  ($) => {
@@ -23419,7 +23419,7 @@ const Td = 2 * Math.PI * 6.5, zp = "data:image/svg+xml,%3Csvg xmlns='http://www.
23419
23419
  T = Math.min(T + Math.random() * 15 + 5, 90), d(T);
23420
23420
  }, 400);
23421
23421
  }, [F]);
23422
- be(() => () => F(), [F]);
23422
+ me(() => () => F(), [F]);
23423
23423
  const L = V(
23424
23424
  async (T) => {
23425
23425
  if (!a) return;
@@ -23863,7 +23863,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23863
23863
  open: s
23864
23864
  }) => {
23865
23865
  const [o, u] = Q(!1), [c, d] = Q(null), [f, h] = Q(""), m = ee(0), g = ee(null);
23866
- be(() => {
23866
+ me(() => {
23867
23867
  if (!s) return;
23868
23868
  const I = ++m.current;
23869
23869
  u(!0), t({ nodeKey: e, nodeType: "report-url" }).then((C) => {
@@ -23882,7 +23882,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23882
23882
  (I) => i ? I.filter((C) => jp(C.url) === i) : I,
23883
23883
  [i]
23884
23884
  );
23885
- be(() => {
23885
+ me(() => {
23886
23886
  if (!s || !i || !c) return;
23887
23887
  const I = c.tabs.find((C) => b(C.items).length > 0);
23888
23888
  I && h((C) => C === I.key ? C : I.key);
@@ -23973,7 +23973,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23973
23973
  disabled: c,
23974
23974
  error: d
23975
23975
  }) => {
23976
- const f = Er(), h = Dx(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, E = !!l, A = E && !c && (b || g), S = !E && !!h && b, O = A || S, [I, C] = Q(!1), [w, _] = Q(!1), k = ee({}).current, P = ee(""), R = V(
23976
+ const f = Xr(), h = Dx(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, E = !!l, A = E && !c && (b || g), S = !E && !!h && b, O = A || S, [I, C] = Q(!1), [w, _] = Q(!1), k = ee({}).current, P = ee(""), R = V(
23977
23977
  async (_e) => {
23978
23978
  const ze = _e.trim();
23979
23979
  if (!(!ze || !r) && P.current !== ze) {
@@ -23987,7 +23987,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23987
23987
  },
23988
23988
  [r]
23989
23989
  );
23990
- be(() => {
23990
+ me(() => {
23991
23991
  m || (P.current = "");
23992
23992
  }, [m]);
23993
23993
  const F = V(() => {
@@ -24014,7 +24014,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24014
24014
  },
24015
24015
  [e.key, n, s]
24016
24016
  );
24017
- be(() => {
24017
+ me(() => {
24018
24018
  const _e = (ze) => {
24019
24019
  ze.detail !== k && _(!1);
24020
24020
  };
@@ -24042,14 +24042,14 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24042
24042
  }),
24043
24043
  [T]
24044
24044
  );
24045
- be(() => {
24045
+ me(() => {
24046
24046
  if (!w) return;
24047
24047
  const _e = (ze) => {
24048
24048
  const sn = G.current, gn = ze.target;
24049
24049
  if (sn?.contains(gn)) return;
24050
- const xr = document.querySelectorAll(".rte-report-dropdown-overlay");
24051
- for (let Tt = 0; Tt < xr.length; Tt++)
24052
- if (xr[Tt].contains(gn)) return;
24050
+ const Cr = document.querySelectorAll(".rte-report-dropdown-overlay");
24051
+ for (let Tt = 0; Tt < Cr.length; Tt++)
24052
+ if (Cr[Tt].contains(gn)) return;
24053
24053
  _(!1);
24054
24054
  };
24055
24055
  return document.addEventListener("mousedown", _e), () => document.removeEventListener("mousedown", _e);
@@ -24106,7 +24106,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24106
24106
  ze.closest(".rte-report-chip-clear-host") || ze.closest(".rte-report-dropdown-host") || (_e.stopPropagation(), w ? _(!1) : L());
24107
24107
  },
24108
24108
  [g, c, A, w, L]
24109
- ), Cr = /* @__PURE__ */ W(
24109
+ ), Tr = /* @__PURE__ */ W(
24110
24110
  "span",
24111
24111
  {
24112
24112
  ref: G,
@@ -24191,7 +24191,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24191
24191
  getPopupContainer: () => f ?? document.body,
24192
24192
  overlayClassName: "rte-report-dropdown-overlay",
24193
24193
  arrow: !1,
24194
- children: Cr
24194
+ children: Tr
24195
24195
  }
24196
24196
  )
24197
24197
  ]
@@ -24208,7 +24208,7 @@ const Rx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24208
24208
  getPopupContainer: () => f ?? document.body,
24209
24209
  overlayClassName: "rte-report-dropdown-overlay",
24210
24210
  arrow: !1,
24211
- children: Cr
24211
+ children: Tr
24212
24212
  }
24213
24213
  ) });
24214
24214
  }
@@ -27002,7 +27002,7 @@ function Od(e, t) {
27002
27002
  return !0;
27003
27003
  }
27004
27004
  }
27005
- class Tr {
27005
+ class Er {
27006
27006
  /**
27007
27007
  Create a serializer. `nodes` should map node names to functions
27008
27008
  that take a node and return a description of the corresponding
@@ -27091,7 +27091,7 @@ class Tr {
27091
27091
  properties in a schema's node and mark specs.
27092
27092
  */
27093
27093
  static fromSchema(t) {
27094
- return t.cached.domSerializer || (t.cached.domSerializer = new Tr(this.nodesFromSchema(t), this.marksFromSchema(t)));
27094
+ return t.cached.domSerializer || (t.cached.domSerializer = new Er(this.nodesFromSchema(t), this.marksFromSchema(t)));
27095
27095
  }
27096
27096
  /**
27097
27097
  Gather the serializers in a schema's node specs into an object.
@@ -28384,7 +28384,7 @@ function Nm(e, t) {
28384
28384
  }
28385
28385
  return n;
28386
28386
  }
28387
- class Fr extends ht {
28387
+ class Br extends ht {
28388
28388
  /**
28389
28389
  Construct an attribute step.
28390
28390
  */
@@ -28406,11 +28406,11 @@ class Fr extends ht {
28406
28406
  return Dt.empty;
28407
28407
  }
28408
28408
  invert(t) {
28409
- return new Fr(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
28409
+ return new Br(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
28410
28410
  }
28411
28411
  map(t) {
28412
28412
  let n = t.mapResult(this.pos, 1);
28413
- return n.deletedAfter ? null : new Fr(n.pos, this.attr, this.value);
28413
+ return n.deletedAfter ? null : new Br(n.pos, this.attr, this.value);
28414
28414
  }
28415
28415
  toJSON() {
28416
28416
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -28418,10 +28418,10 @@ class Fr extends ht {
28418
28418
  static fromJSON(t, n) {
28419
28419
  if (typeof n.pos != "number" || typeof n.attr != "string")
28420
28420
  throw new RangeError("Invalid input for AttrStep.fromJSON");
28421
- return new Fr(n.pos, n.attr, n.value);
28421
+ return new Br(n.pos, n.attr, n.value);
28422
28422
  }
28423
28423
  }
28424
- ht.jsonID("attr", Fr);
28424
+ ht.jsonID("attr", Br);
28425
28425
  class Fl extends ht {
28426
28426
  /**
28427
28427
  Construct an attribute step.
@@ -28456,15 +28456,15 @@ class Fl extends ht {
28456
28456
  }
28457
28457
  }
28458
28458
  ht.jsonID("docAttr", Fl);
28459
- let zr = class extends Error {
28459
+ let Ur = class extends Error {
28460
28460
  };
28461
- zr = function e(t) {
28461
+ Ur = function e(t) {
28462
28462
  let n = Error.call(this, t);
28463
28463
  return n.__proto__ = e.prototype, n;
28464
28464
  };
28465
- zr.prototype = Object.create(Error.prototype);
28466
- zr.prototype.constructor = zr;
28467
- zr.prototype.name = "TransformError";
28465
+ Ur.prototype = Object.create(Error.prototype);
28466
+ Ur.prototype.constructor = Ur;
28467
+ Ur.prototype.name = "TransformError";
28468
28468
  class DS {
28469
28469
  /**
28470
28470
  Create a transform that starts with the given document.
@@ -28485,7 +28485,7 @@ class DS {
28485
28485
  step(t) {
28486
28486
  let n = this.maybeStep(t);
28487
28487
  if (n.failed)
28488
- throw new zr(n.failed);
28488
+ throw new Ur(n.failed);
28489
28489
  return this;
28490
28490
  }
28491
28491
  /**
@@ -28638,7 +28638,7 @@ class DS {
28638
28638
  to set attributes on the document itself.
28639
28639
  */
28640
28640
  setNodeAttribute(t, n, r) {
28641
- return this.step(new Fr(t, n, r)), this;
28641
+ return this.step(new Br(t, n, r)), this;
28642
28642
  }
28643
28643
  /**
28644
28644
  Set a single attribute on the document to a new value.
@@ -28801,11 +28801,11 @@ class xe {
28801
28801
  found.
28802
28802
  */
28803
28803
  static findFrom(t, n, r = !1) {
28804
- let l = t.parent.inlineContent ? new ye(t) : Ir(t.node(0), t.parent, t.pos, t.index(), n, r);
28804
+ let l = t.parent.inlineContent ? new ye(t) : _r(t.node(0), t.parent, t.pos, t.index(), n, r);
28805
28805
  if (l)
28806
28806
  return l;
28807
28807
  for (let a = t.depth - 1; a >= 0; a--) {
28808
- let i = n < 0 ? Ir(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, r) : Ir(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, r);
28808
+ let i = n < 0 ? _r(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, r) : _r(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, r);
28809
28809
  if (i)
28810
28810
  return i;
28811
28811
  }
@@ -28826,14 +28826,14 @@ class xe {
28826
28826
  exists.
28827
28827
  */
28828
28828
  static atStart(t) {
28829
- return Ir(t, t, 0, 0, 1) || new Bt(t);
28829
+ return _r(t, t, 0, 0, 1) || new Bt(t);
28830
28830
  }
28831
28831
  /**
28832
28832
  Find the cursor or leaf node selection closest to the end of the
28833
28833
  given document.
28834
28834
  */
28835
28835
  static atEnd(t) {
28836
- return Ir(t, t, t.content.size, t.childCount, -1) || new Bt(t);
28836
+ return _r(t, t, t.content.size, t.childCount, -1) || new Bt(t);
28837
28837
  }
28838
28838
  /**
28839
28839
  Deserialize the JSON representation of a selection. Must be
@@ -29072,7 +29072,7 @@ const PS = {
29072
29072
  return new Bt(e);
29073
29073
  }
29074
29074
  };
29075
- function Ir(e, t, n, r, l, a = !1) {
29075
+ function _r(e, t, n, r, l, a = !1) {
29076
29076
  if (t.inlineContent)
29077
29077
  return ye.create(e, n);
29078
29078
  for (let i = r - (l > 0 ? 0 : 1); l > 0 ? i < t.childCount : i >= 0; i += l) {
@@ -29081,7 +29081,7 @@ function Ir(e, t, n, r, l, a = !1) {
29081
29081
  if (!a && he.isSelectable(s))
29082
29082
  return he.create(e, n - (l < 0 ? s.nodeSize : 0));
29083
29083
  } else {
29084
- let o = Ir(e, s, n + l, l < 0 ? s.childCount : 0, l, a);
29084
+ let o = _r(e, s, n + l, l < 0 ? s.childCount : 0, l, a);
29085
29085
  if (o)
29086
29086
  return o;
29087
29087
  }
@@ -29304,7 +29304,7 @@ class Es {
29304
29304
  });
29305
29305
  }
29306
29306
  }
29307
- class Dr {
29307
+ class Rr {
29308
29308
  /**
29309
29309
  @internal
29310
29310
  */
@@ -29379,7 +29379,7 @@ class Dr {
29379
29379
  applyInner(t) {
29380
29380
  if (!t.before.eq(this.doc))
29381
29381
  throw new RangeError("Applying a mismatched transaction");
29382
- let n = new Dr(this.config), r = this.config.fields;
29382
+ let n = new Rr(this.config), r = this.config.fields;
29383
29383
  for (let l = 0; l < r.length; l++) {
29384
29384
  let a = r[l];
29385
29385
  n[a.name] = a.apply(t, this[a.name], this, n);
@@ -29396,7 +29396,7 @@ class Dr {
29396
29396
  Create a new state.
29397
29397
  */
29398
29398
  static create(t) {
29399
- let n = new Es(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new Dr(n);
29399
+ let n = new Es(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new Rr(n);
29400
29400
  for (let l = 0; l < n.fields.length; l++)
29401
29401
  r[n.fields[l].name] = n.fields[l].init(t, r);
29402
29402
  return r;
@@ -29410,7 +29410,7 @@ class Dr {
29410
29410
  configuration object..
29411
29411
  */
29412
29412
  reconfigure(t) {
29413
- let n = new Es(this.schema, t.plugins), r = n.fields, l = new Dr(n);
29413
+ let n = new Es(this.schema, t.plugins), r = n.fields, l = new Rr(n);
29414
29414
  for (let a = 0; a < r.length; a++) {
29415
29415
  let i = r[a].name;
29416
29416
  l[i] = this.hasOwnProperty(i) ? this[i] : r[a].init(t, l);
@@ -29447,7 +29447,7 @@ class Dr {
29447
29447
  throw new RangeError("Invalid input for EditorState.fromJSON");
29448
29448
  if (!t.schema)
29449
29449
  throw new RangeError("Required config field 'schema' missing");
29450
- let l = new Es(t.schema, t.plugins), a = new Dr(l);
29450
+ let l = new Es(t.schema, t.plugins), a = new Rr(l);
29451
29451
  return l.fields.forEach((i) => {
29452
29452
  if (i.name == "doc")
29453
29453
  a.doc = Ln.fromJSON(t.schema, n.doc);
@@ -29519,7 +29519,7 @@ const lt = function(e) {
29519
29519
  for (var t = 0; ; t++)
29520
29520
  if (e = e.previousSibling, !e)
29521
29521
  return t;
29522
- }, Vr = function(e) {
29522
+ }, zr = function(e) {
29523
29523
  let t = e.assignedSlot || e.parentNode;
29524
29524
  return t && t.nodeType == 11 ? t.host : t;
29525
29525
  };
@@ -29630,7 +29630,7 @@ function WS(e, t, n) {
29630
29630
  }
29631
29631
  const rn = typeof navigator < "u" ? navigator : null, $d = typeof document < "u" ? document : null, Wn = rn && rn.userAgent || "", so = /Edge\/(\d+)/.exec(Wn), Im = /MSIE \d/.exec(Wn), oo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wn), At = !!(Im || oo || so), Pn = Im ? document.documentMode : oo ? +oo[1] : so ? +so[1] : 0, qt = !At && /gecko\/(\d+)/i.test(Wn);
29632
29632
  qt && +(/Firefox\/(\d+)/.exec(Wn) || [0, 0])[1];
29633
- const uo = !At && /Chrome\/(\d+)/.exec(Wn), it = !!uo, Om = uo ? +uo[1] : 0, ut = !At && !!rn && /Apple Computer/.test(rn.vendor), $r = ut && (/Mobile\/\w+/.test(Wn) || !!rn && rn.maxTouchPoints > 2), Ut = $r || (rn ? /Mac/.test(rn.platform) : !1), Mm = rn ? /Win/.test(rn.platform) : !1, hn = /Android \d/.test(Wn), ea = !!$d && "webkitFontSmoothing" in $d.documentElement.style, YS = ea ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29633
+ const uo = !At && /Chrome\/(\d+)/.exec(Wn), it = !!uo, Om = uo ? +uo[1] : 0, ut = !At && !!rn && /Apple Computer/.test(rn.vendor), Vr = ut && (/Mobile\/\w+/.test(Wn) || !!rn && rn.maxTouchPoints > 2), Ut = Vr || (rn ? /Mac/.test(rn.platform) : !1), Mm = rn ? /Win/.test(rn.platform) : !1, hn = /Android \d/.test(Wn), ea = !!$d && "webkitFontSmoothing" in $d.documentElement.style, YS = ea ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29634
29634
  function jS(e) {
29635
29635
  let t = e.defaultView && e.defaultView.visualViewport;
29636
29636
  return t ? {
@@ -29661,7 +29661,7 @@ function qd(e, t, n) {
29661
29661
  let r = e.someProp("scrollThreshold") || 0, l = e.someProp("scrollMargin") || 5, a = e.dom.ownerDocument;
29662
29662
  for (let i = n || e.dom; i; ) {
29663
29663
  if (i.nodeType != 1) {
29664
- i = Vr(i);
29664
+ i = zr(i);
29665
29665
  continue;
29666
29666
  }
29667
29667
  let s = i, o = s == a.body, u = o ? jS(a) : GS(s), c = 0, d = 0;
@@ -29677,7 +29677,7 @@ function qd(e, t, n) {
29677
29677
  let f = o ? "fixed" : getComputedStyle(i).position;
29678
29678
  if (/^(fixed|sticky)$/.test(f))
29679
29679
  break;
29680
- i = f == "absolute" ? i.offsetParent : Vr(i);
29680
+ i = f == "absolute" ? i.offsetParent : zr(i);
29681
29681
  }
29682
29682
  }
29683
29683
  function KS(e) {
@@ -29696,7 +29696,7 @@ function KS(e) {
29696
29696
  }
29697
29697
  function Rm(e) {
29698
29698
  let t = [], n = e.ownerDocument;
29699
- for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r = Vr(r))
29699
+ for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r = zr(r))
29700
29700
  ;
29701
29701
  return t;
29702
29702
  }
@@ -29710,18 +29710,18 @@ function Dm(e, t) {
29710
29710
  r.scrollTop != l + t && (r.scrollTop = l + t), r.scrollLeft != a && (r.scrollLeft = a);
29711
29711
  }
29712
29712
  }
29713
- let wr = null;
29713
+ let Nr = null;
29714
29714
  function XS(e) {
29715
29715
  if (e.setActive)
29716
29716
  return e.setActive();
29717
- if (wr)
29718
- return e.focus(wr);
29717
+ if (Nr)
29718
+ return e.focus(Nr);
29719
29719
  let t = Rm(e);
29720
- e.focus(wr == null ? {
29720
+ e.focus(Nr == null ? {
29721
29721
  get preventScroll() {
29722
- return wr = { preventScroll: !0 }, !0;
29722
+ return Nr = { preventScroll: !0 }, !0;
29723
29723
  }
29724
- } : void 0), wr || (wr = !1, Dm(t, 0));
29724
+ } : void 0), Nr || (Nr = !1, Dm(t, 0));
29725
29725
  }
29726
29726
  function Lm(e, t) {
29727
29727
  let n, r = 2e8, l, a = 0, i = t.top, s = t.top, o, u;
@@ -29819,7 +29819,7 @@ function n6(e, t) {
29819
29819
  return null;
29820
29820
  }
29821
29821
  if (ut)
29822
- for (let u = i; r && u; u = Vr(u))
29822
+ for (let u = i; r && u; u = zr(u))
29823
29823
  u.draggable && (r = void 0);
29824
29824
  if (i = ZS(i, t), r) {
29825
29825
  if (qt && r.nodeType == 1 && (l = Math.min(l, r.childNodes.length), l < r.childNodes.length)) {
@@ -30377,7 +30377,7 @@ class br extends ta {
30377
30377
  }
30378
30378
  static create(t, n, r, l) {
30379
30379
  let a = l.nodeViews[n.type.name], i = a && a(n, l, r);
30380
- return (!i || !i.dom) && (i = Tr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new br(t, n, i.dom, i.contentDOM || i.dom, i);
30380
+ return (!i || !i.dom) && (i = Er.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new br(t, n, i.dom, i.contentDOM || i.dom, i);
30381
30381
  }
30382
30382
  parseRule() {
30383
30383
  return this.dirty & ln || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -30432,7 +30432,7 @@ class Bn extends ta {
30432
30432
  c = document.createTextNode(n.text);
30433
30433
  else if (c.nodeType != 3)
30434
30434
  throw new RangeError("Text must be rendered as a DOM text node");
30435
- } else c || ({ dom: c, contentDOM: d } = Tr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
30435
+ } else c || ({ dom: c, contentDOM: d } = Er.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
30436
30436
  !d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
30437
30437
  let f = c;
30438
30438
  return c = $m(c, r, n), u ? o = new u6(t, n, r, l, c, d || null, f, u, a, i + 1) : n.isText ? new xi(t, n, r, l, c, f, a) : new Bn(t, n, r, l, c, d || null, f, a, i + 1);
@@ -30478,7 +30478,7 @@ class Bn extends ta {
30478
30478
  o.syncToMarks(u.marks, r, t, f);
30479
30479
  let h;
30480
30480
  o.findNodeMatch(u, c, d, f) || s && t.state.selection.from > l && t.state.selection.to < l + u.nodeSize && (h = o.findIndexWithChild(a.node)) > -1 && o.updateNodeAt(u, c, d, h, t) || o.updateNextNode(u, c, d, t, f, l) || o.addNode(u, c, d, t, l), l += u.nodeSize;
30481
- }), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == er) && (i && this.protectLocalComposition(t, i), zm(this.contentDOM, this.children, t), $r && m6(this.dom));
30481
+ }), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == er) && (i && this.protectLocalComposition(t, i), zm(this.contentDOM, this.children, t), Vr && m6(this.dom));
30482
30482
  }
30483
30483
  localCompositionInfo(t, n) {
30484
30484
  let { from: r, to: l } = t.state.selection;
@@ -31156,7 +31156,7 @@ function Al(e, t) {
31156
31156
  let n = e.pmViewDesc;
31157
31157
  return n && n.size == 0 && (t < 0 || e.nextSibling || e.nodeName != "BR");
31158
31158
  }
31159
- function _r(e, t) {
31159
+ function wr(e, t) {
31160
31160
  return t < 0 ? E6(e) : T6(e);
31161
31161
  }
31162
31162
  function E6(e) {
@@ -31343,22 +31343,22 @@ function k6(e) {
31343
31343
  function A6(e, t) {
31344
31344
  let n = t.keyCode, r = k6(t);
31345
31345
  if (n == 8 || Ut && n == 72 && r == "c")
31346
- return sf(e, -1) || _r(e, -1);
31346
+ return sf(e, -1) || wr(e, -1);
31347
31347
  if (n == 46 && !t.shiftKey || Ut && n == 68 && r == "c")
31348
- return sf(e, 1) || _r(e, 1);
31348
+ return sf(e, 1) || wr(e, 1);
31349
31349
  if (n == 13 || n == 27)
31350
31350
  return !0;
31351
31351
  if (n == 37 || Ut && n == 66 && r == "c") {
31352
31352
  let l = n == 37 ? lf(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
31353
- return rf(e, l, r) || _r(e, l);
31353
+ return rf(e, l, r) || wr(e, l);
31354
31354
  } else if (n == 39 || Ut && n == 70 && r == "c") {
31355
31355
  let l = n == 39 ? lf(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
31356
- return rf(e, l, r) || _r(e, l);
31356
+ return rf(e, l, r) || wr(e, l);
31357
31357
  } else {
31358
31358
  if (n == 38 || Ut && n == 80 && r == "c")
31359
- return af(e, -1, r) || _r(e, -1);
31359
+ return af(e, -1, r) || wr(e, -1);
31360
31360
  if (n == 40 || Ut && n == 78 && r == "c")
31361
- return S6(e) || af(e, 1, r) || _r(e, 1);
31361
+ return S6(e) || af(e, 1, r) || wr(e, 1);
31362
31362
  if (r == (Ut ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
31363
31363
  return !0;
31364
31364
  }
@@ -31374,7 +31374,7 @@ function uu(e, t) {
31374
31374
  let h = r.firstChild;
31375
31375
  n.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
31376
31376
  }
31377
- let i = e.someProp("clipboardSerializer") || Tr.fromSchema(e.state.schema), s = Zm(), o = s.createElement("div");
31377
+ let i = e.someProp("clipboardSerializer") || Er.fromSchema(e.state.schema), s = Zm(), o = s.createElement("div");
31378
31378
  o.appendChild(i.serializeFragment(r, { document: s }));
31379
31379
  let u = o.firstChild, c, d = 0;
31380
31380
  for (; u && u.nodeType == 1 && (c = Jm[u.nodeName.toLowerCase()]); ) {
@@ -31409,7 +31409,7 @@ function Gm(e, t, n, r, l) {
31409
31409
  if (d)
31410
31410
  s = d;
31411
31411
  else {
31412
- let f = l.marks(), { schema: h } = e.state, m = Tr.fromSchema(h);
31412
+ let f = l.marks(), { schema: h } = e.state, m = Er.fromSchema(h);
31413
31413
  i = document.createElement("div"), t.split(/(?:\r\n?|\n)+/).forEach((g) => {
31414
31414
  let b = i.appendChild(document.createElement("p"));
31415
31415
  g && b.appendChild(m.serializeNode(h.text(g, f)));
@@ -31606,7 +31606,7 @@ function F6(e, t) {
31606
31606
  vt.keydown = (e, t) => {
31607
31607
  let n = t;
31608
31608
  if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !t0(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(hn && it && n.keyCode == 13)))
31609
- if (n.keyCode != 229 && e.domObserver.forceFlush(), $r && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
31609
+ if (n.keyCode != 229 && e.domObserver.forceFlush(), Vr && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
31610
31610
  let r = Date.now();
31611
31611
  e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
31612
31612
  e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, Xn(13, "Enter"))), e.input.lastIOSEnter = 0);
@@ -31646,7 +31646,7 @@ function du(e, t, n, r, l) {
31646
31646
  return !0;
31647
31647
  return !1;
31648
31648
  }
31649
- function Hr(e, t, n) {
31649
+ function Fr(e, t, n) {
31650
31650
  if (e.focused || e.focus(), e.state.selection.eq(t))
31651
31651
  return;
31652
31652
  let r = e.state.tr.setSelection(t);
@@ -31656,7 +31656,7 @@ function U6(e, t) {
31656
31656
  if (t == -1)
31657
31657
  return !1;
31658
31658
  let n = e.state.doc.resolve(t), r = n.nodeAfter;
31659
- return r && r.isAtom && he.isSelectable(r) ? (Hr(e, new he(n)), !0) : !1;
31659
+ return r && r.isAtom && he.isSelectable(r) ? (Fr(e, new he(n)), !0) : !1;
31660
31660
  }
31661
31661
  function z6(e, t) {
31662
31662
  if (t == -1)
@@ -31671,7 +31671,7 @@ function z6(e, t) {
31671
31671
  break;
31672
31672
  }
31673
31673
  }
31674
- return l != null ? (Hr(e, he.create(e.state.doc, l)), !0) : !1;
31674
+ return l != null ? (Fr(e, he.create(e.state.doc, l)), !0) : !1;
31675
31675
  }
31676
31676
  function V6(e, t, n, r, l) {
31677
31677
  return du(e, "handleClickOn", t, n, r) || e.someProp("handleClick", (a) => a(e, t, r)) || (l ? z6(e, n) : U6(e, n));
@@ -31687,14 +31687,14 @@ function W6(e, t, n) {
31687
31687
  return !1;
31688
31688
  let r = e.state.doc;
31689
31689
  if (t == -1)
31690
- return r.inlineContent ? (Hr(e, ye.create(r, 0, r.content.size)), !0) : !1;
31690
+ return r.inlineContent ? (Fr(e, ye.create(r, 0, r.content.size)), !0) : !1;
31691
31691
  let l = r.resolve(t);
31692
31692
  for (let a = l.depth + 1; a > 0; a--) {
31693
31693
  let i = a > l.depth ? l.nodeAfter : l.node(a), s = l.before(a);
31694
31694
  if (i.inlineContent)
31695
- Hr(e, ye.create(r, s + 1, s + 1 + i.content.size));
31695
+ Fr(e, ye.create(r, s + 1, s + 1 + i.content.size));
31696
31696
  else if (he.isSelectable(i))
31697
- Hr(e, he.create(r, s));
31697
+ Fr(e, he.create(r, s));
31698
31698
  else
31699
31699
  continue;
31700
31700
  return !0;
@@ -31749,7 +31749,7 @@ class Y6 {
31749
31749
  // (hidden) cursor is doesn't change the selection, and
31750
31750
  // thus doesn't get a reaction from ProseMirror. This
31751
31751
  // works around that.
31752
- it && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Hr(this.view, xe.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
31752
+ it && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Fr(this.view, xe.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
31753
31753
  }
31754
31754
  move(t) {
31755
31755
  this.updateAllowDefault(t), Dn(this.view, "pointer"), t.buttons == 0 && this.done();
@@ -31852,7 +31852,7 @@ function X6(e, t) {
31852
31852
  n.parentNode && n.parentNode.removeChild(n), e.focus();
31853
31853
  }, 50);
31854
31854
  }
31855
- const Hl = At && Pn < 15 || $r && YS < 604;
31855
+ const Hl = At && Pn < 15 || Vr && YS < 604;
31856
31856
  gt.copy = vt.cut = (e, t) => {
31857
31857
  let n = t, r = e.state.selection, l = n.type == "cut";
31858
31858
  if (r.empty)
@@ -32139,13 +32139,13 @@ class Pt {
32139
32139
  return this.type instanceof Za;
32140
32140
  }
32141
32141
  }
32142
- const Or = [], or = {};
32142
+ const Ir = [], or = {};
32143
32143
  class Ke {
32144
32144
  /**
32145
32145
  @internal
32146
32146
  */
32147
32147
  constructor(t, n) {
32148
- this.local = t.length ? t : Or, this.children = n.length ? n : Or;
32148
+ this.local = t.length ? t : Ir, this.children = n.length ? n : Ir;
32149
32149
  }
32150
32150
  /**
32151
32151
  Create a set of decorations, using the structure of the given
@@ -32194,7 +32194,7 @@ class Ke {
32194
32194
  let o = this.local[s].map(t, r, l);
32195
32195
  o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
32196
32196
  }
32197
- return this.children.length ? nk(this.children, i || [], t, n, r, l, a) : i ? new Ke(i.sort(ur), Or) : ot;
32197
+ return this.children.length ? nk(this.children, i || [], t, n, r, l, a) : i ? new Ke(i.sort(ur), Ir) : ot;
32198
32198
  }
32199
32199
  /**
32200
32200
  Add the given array of decorations to the ones in the set,
@@ -32267,7 +32267,7 @@ class Ke {
32267
32267
  }
32268
32268
  }
32269
32269
  if (l) {
32270
- let s = new Ke(l.sort(ur), Or);
32270
+ let s = new Ke(l.sort(ur), Ir);
32271
32271
  return r ? new In([s, r]) : s;
32272
32272
  }
32273
32273
  return r || ot;
@@ -32299,7 +32299,7 @@ class Ke {
32299
32299
  */
32300
32300
  localsInner(t) {
32301
32301
  if (this == ot)
32302
- return Or;
32302
+ return Ir;
32303
32303
  if (t.inlineContent || !this.local.some(Fn.is))
32304
32304
  return this.local;
32305
32305
  let n = [];
@@ -32353,7 +32353,7 @@ class In {
32353
32353
  n.push(a[i]);
32354
32354
  }
32355
32355
  }
32356
- return n ? pu(r ? n : n.sort(ur)) : Or;
32356
+ return n ? pu(r ? n : n.sort(ur)) : Ir;
32357
32357
  }
32358
32358
  // Create a group for the given array of decoration sets, or return
32359
32359
  // a single set when possible.
@@ -32589,9 +32589,9 @@ class sk {
32589
32589
  if (!t.focusNode)
32590
32590
  return !0;
32591
32591
  let n = /* @__PURE__ */ new Set(), r;
32592
- for (let a = t.focusNode; a; a = Vr(a))
32592
+ for (let a = t.focusNode; a; a = zr(a))
32593
32593
  n.add(a);
32594
- for (let a = t.anchorNode; a; a = Vr(a))
32594
+ for (let a = t.anchorNode; a; a = zr(a))
32595
32595
  if (n.has(a)) {
32596
32596
  r = a;
32597
32597
  break;
@@ -32796,7 +32796,7 @@ function mk(e, t, n, r, l) {
32796
32796
  let o = e.state.selection, u = fk(e, t, n), c = e.state.doc, d = c.slice(u.from, u.to), f, h;
32797
32797
  e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (f = e.state.selection.to, h = "end") : (f = e.state.selection.from, h = "start"), e.input.lastKeyCode = null;
32798
32798
  let m = vk(d.content, u.doc.content, u.from, f, h);
32799
- if (m && e.input.domChangeCount++, ($r && e.input.lastIOSEnter > Date.now() - 225 || hn) && l.some((w) => w.nodeType == 1 && !pk.test(w.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (w) => w(e, Xn(13, "Enter")))) {
32799
+ if (m && e.input.domChangeCount++, (Vr && e.input.lastIOSEnter > Date.now() - 225 || hn) && l.some((w) => w.nodeType == 1 && !pk.test(w.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (w) => w(e, Xn(13, "Enter")))) {
32800
32800
  e.input.lastIOSEnter = 0;
32801
32801
  return;
32802
32802
  }
@@ -32815,7 +32815,7 @@ function mk(e, t, n, r, l) {
32815
32815
  }
32816
32816
  e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof ye && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), At && Pn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == "  " && (m.start--, m.endA--, m.endB--);
32817
32817
  let g = u.doc.resolveNoCache(m.start - u.from), b = u.doc.resolveNoCache(m.endB - u.from), E = c.resolve(m.start), A = g.sameParent(b) && g.parent.inlineContent && E.end() >= m.endA;
32818
- if (($r && e.input.lastIOSEnter > Date.now() - 225 && (!A || l.some((w) => w.nodeName == "DIV" || w.nodeName == "P")) || !A && g.pos < u.doc.content.size && (!g.sameParent(b) || !g.parent.inlineContent) && g.pos < b.pos && !/\S/.test(u.doc.textBetween(g.pos, b.pos, "", ""))) && e.someProp("handleKeyDown", (w) => w(e, Xn(13, "Enter")))) {
32818
+ if ((Vr && e.input.lastIOSEnter > Date.now() - 225 && (!A || l.some((w) => w.nodeName == "DIV" || w.nodeName == "P")) || !A && g.pos < u.doc.content.size && (!g.sameParent(b) || !g.parent.inlineContent) && g.pos < b.pos && !/\S/.test(u.doc.textBetween(g.pos, b.pos, "", ""))) && e.someProp("handleKeyDown", (w) => w(e, Xn(13, "Enter")))) {
32819
32819
  e.input.lastIOSEnter = 0;
32820
32820
  return;
32821
32821
  }
@@ -33470,13 +33470,13 @@ const h0 = (e, t, n) => {
33470
33470
  let a = l.nodeBefore;
33471
33471
  if (C0(e, l, t, -1))
33472
33472
  return !0;
33473
- if (r.parent.content.size == 0 && (qr(a, "end") || he.isSelectable(a)))
33473
+ if (r.parent.content.size == 0 && ($r(a, "end") || he.isSelectable(a)))
33474
33474
  for (let i = r.depth; ; i--) {
33475
33475
  let s = Ei(e.doc, r.before(i), r.after(i), ie.empty);
33476
33476
  if (s && s.slice.size < s.to - s.from) {
33477
33477
  if (t) {
33478
33478
  let o = e.tr.step(s);
33479
- o.setSelection(qr(a, "end") ? xe.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : he.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
33479
+ o.setSelection($r(a, "end") ? xe.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : he.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
33480
33480
  }
33481
33481
  return !0;
33482
33482
  }
@@ -33525,7 +33525,7 @@ function p0(e, t, n) {
33525
33525
  }
33526
33526
  return !0;
33527
33527
  }
33528
- function qr(e, t, n = !1) {
33528
+ function $r(e, t, n = !1) {
33529
33529
  for (let r = e; r; r = t == "start" ? r.firstChild : r.lastChild) {
33530
33530
  if (r.isTextblock)
33531
33531
  return !0;
@@ -33570,12 +33570,12 @@ const g0 = (e, t, n) => {
33570
33570
  let a = l.nodeAfter;
33571
33571
  if (C0(e, l, t, 1))
33572
33572
  return !0;
33573
- if (r.parent.content.size == 0 && (qr(a, "start") || he.isSelectable(a))) {
33573
+ if (r.parent.content.size == 0 && ($r(a, "start") || he.isSelectable(a))) {
33574
33574
  let i = Ei(e.doc, r.before(), r.after(), ie.empty);
33575
33575
  if (i && i.slice.size < i.to - i.from) {
33576
33576
  if (t) {
33577
33577
  let s = e.tr.step(i);
33578
- s.setSelection(qr(a, "start") ? xe.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : he.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
33578
+ s.setSelection($r(a, "start") ? xe.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : he.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
33579
33579
  }
33580
33580
  return !0;
33581
33581
  }
@@ -33734,7 +33734,7 @@ function C0(e, t, n, r) {
33734
33734
  let c = a.type.spec.isolating || r > 0 && o ? null : xe.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), f = d && Zr(d);
33735
33735
  if (f != null && f >= t.depth)
33736
33736
  return n && n(e.tr.lift(d, f).scrollIntoView()), !0;
33737
- if (u && qr(a, "start", !0) && qr(l, "end")) {
33737
+ if (u && $r(a, "start", !0) && $r(l, "end")) {
33738
33738
  let h = l, m = [];
33739
33739
  for (; m.push(h), !h.isTextblock; )
33740
33740
  h = h.lastChild;
@@ -34231,7 +34231,7 @@ function kf(e, t) {
34231
34231
  return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
34232
34232
  }
34233
34233
  function Eu(e, t) {
34234
- const n = Tr.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
34234
+ const n = Er.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
34235
34235
  return l.appendChild(n), l.innerHTML;
34236
34236
  }
34237
34237
  const Zk = (e, t = 500) => {
@@ -34589,9 +34589,9 @@ function uA(e) {
34589
34589
  const t = e.filter((n, r) => e.indexOf(n) !== r);
34590
34590
  return Array.from(new Set(t));
34591
34591
  }
34592
- class Lr {
34592
+ class Dr {
34593
34593
  constructor(t, n) {
34594
- this.splittableMarks = [], this.editor = n, this.extensions = Lr.resolve(t), this.schema = Jk(this.extensions, n), this.setupExtensions();
34594
+ this.splittableMarks = [], this.editor = n, this.extensions = Dr.resolve(t), this.schema = Jk(this.extensions, n), this.setupExtensions();
34595
34595
  }
34596
34596
  /**
34597
34597
  * Returns a flattened and sorted extension list while
@@ -34600,7 +34600,7 @@ class Lr {
34600
34600
  * @returns An flattened and sorted array of Tiptap extensions
34601
34601
  */
34602
34602
  static resolve(t) {
34603
- const n = Lr.sort(Lr.flatten(t)), r = uA(n.map((l) => l.name));
34603
+ const n = Dr.sort(Dr.flatten(t)), r = uA(n.map((l) => l.name));
34604
34604
  return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((l) => `'${l}'`).join(", ")}]. This can lead to issues.`), n;
34605
34605
  }
34606
34606
  /**
@@ -34653,7 +34653,7 @@ class Lr {
34653
34653
  * @returns An array of Prosemirror plugins
34654
34654
  */
34655
34655
  get plugins() {
34656
- const { editor: t } = this, n = Lr.sort([...this.extensions].reverse()), r = [], l = [], a = n.map((i) => {
34656
+ const { editor: t } = this, n = Dr.sort([...this.extensions].reverse()), r = [], l = [], a = n.map((i) => {
34657
34657
  const s = {
34658
34658
  name: i.name,
34659
34659
  options: i.options,
@@ -36247,7 +36247,7 @@ class FN extends Kk {
36247
36247
  _N,
36248
36248
  DN
36249
36249
  ].filter((a) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[a.name] !== !1 : !0) : [], ...this.options.extensions].filter((a) => ["extension", "node", "mark"].includes(a?.type));
36250
- this.extensionManager = new Lr(l, this);
36250
+ this.extensionManager = new Dr(l, this);
36251
36251
  }
36252
36252
  /**
36253
36253
  * Creates an command manager.
@@ -36291,7 +36291,7 @@ class FN extends Kk {
36291
36291
  ...(t = this.options.editorProps) === null || t === void 0 ? void 0 : t.attributes
36292
36292
  },
36293
36293
  dispatchTransaction: this.dispatchTransaction.bind(this),
36294
- state: Dr.create({
36294
+ state: Rr.create({
36295
36295
  doc: n,
36296
36296
  selection: r || void 0
36297
36297
  })
@@ -36451,7 +36451,7 @@ class FN extends Kk {
36451
36451
  return this.$pos(0);
36452
36452
  }
36453
36453
  }
36454
- function Wr(e) {
36454
+ function qr(e) {
36455
36455
  return new wi({
36456
36456
  find: e.find,
36457
36457
  handler: ({ state: t, range: n, match: r }) => {
@@ -36560,7 +36560,7 @@ class Nt {
36560
36560
  })), n;
36561
36561
  }
36562
36562
  }
36563
- function Yr(e) {
36563
+ function Wr(e) {
36564
36564
  return new lA({
36565
36565
  find: e.find,
36566
36566
  handler: ({ state: t, range: n, match: r, pasteEvent: l }) => {
@@ -36979,7 +36979,7 @@ function ZN() {
36979
36979
  }
36980
36980
  process.env.NODE_ENV === "production" ? Co.exports = JN() : Co.exports = ZN();
36981
36981
  var e4 = Co.exports;
36982
- const t4 = typeof window < "u" ? $e : be;
36982
+ const t4 = typeof window < "u" ? $e : me;
36983
36983
  class n4 {
36984
36984
  constructor(t) {
36985
36985
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
@@ -37165,7 +37165,7 @@ function a4(e = {}, t = []) {
37165
37165
  const n = ee(e);
37166
37166
  n.current = e;
37167
37167
  const [r] = Q(() => new Su(n)), l = Mi.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
37168
- return Qf(l), be(r.onRender(t)), r4({
37168
+ return Qf(l), me(r.onRender(t)), r4({
37169
37169
  editor: l,
37170
37170
  selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
37171
37171
  }), l;
@@ -37269,11 +37269,11 @@ const u4 = /^\s*>\s$/, c4 = Nt.create({
37269
37269
  },
37270
37270
  addInputRules() {
37271
37271
  return [
37272
- Wr({
37272
+ qr({
37273
37273
  find: d4,
37274
37274
  type: this.type
37275
37275
  }),
37276
- Wr({
37276
+ qr({
37277
37277
  find: h4,
37278
37278
  type: this.type
37279
37279
  })
@@ -37281,11 +37281,11 @@ const u4 = /^\s*>\s$/, c4 = Nt.create({
37281
37281
  },
37282
37282
  addPasteRules() {
37283
37283
  return [
37284
- Yr({
37284
+ Wr({
37285
37285
  find: f4,
37286
37286
  type: this.type
37287
37287
  }),
37288
- Yr({
37288
+ Wr({
37289
37289
  find: p4,
37290
37290
  type: this.type
37291
37291
  })
@@ -37371,7 +37371,7 @@ const u4 = /^\s*>\s$/, c4 = Nt.create({
37371
37371
  },
37372
37372
  addInputRules() {
37373
37373
  return [
37374
- Wr({
37374
+ qr({
37375
37375
  find: v4,
37376
37376
  type: this.type
37377
37377
  })
@@ -37379,7 +37379,7 @@ const u4 = /^\s*>\s$/, c4 = Nt.create({
37379
37379
  },
37380
37380
  addPasteRules() {
37381
37381
  return [
37382
- Yr({
37382
+ Wr({
37383
37383
  find: y4,
37384
37384
  type: this.type
37385
37385
  })
@@ -38387,11 +38387,11 @@ const F0 = B0(!1, !0), H0 = B0(!0, !0), j4 = ct.create({
38387
38387
  },
38388
38388
  addInputRules() {
38389
38389
  return [
38390
- Wr({
38390
+ qr({
38391
38391
  find: K4,
38392
38392
  type: this.type
38393
38393
  }),
38394
- Wr({
38394
+ qr({
38395
38395
  find: X4,
38396
38396
  type: this.type
38397
38397
  })
@@ -38399,11 +38399,11 @@ const F0 = B0(!1, !0), H0 = B0(!0, !0), j4 = ct.create({
38399
38399
  },
38400
38400
  addPasteRules() {
38401
38401
  return [
38402
- Yr({
38402
+ Wr({
38403
38403
  find: Q4,
38404
38404
  type: this.type
38405
38405
  }),
38406
- Yr({
38406
+ Wr({
38407
38407
  find: J4,
38408
38408
  type: this.type
38409
38409
  })
@@ -38573,7 +38573,7 @@ const F0 = B0(!1, !0), H0 = B0(!0, !0), j4 = ct.create({
38573
38573
  },
38574
38574
  addInputRules() {
38575
38575
  return [
38576
- Wr({
38576
+ qr({
38577
38577
  find: lw,
38578
38578
  type: this.type
38579
38579
  })
@@ -38581,7 +38581,7 @@ const F0 = B0(!1, !0), H0 = B0(!0, !0), j4 = ct.create({
38581
38581
  },
38582
38582
  addPasteRules() {
38583
38583
  return [
38584
- Yr({
38584
+ Wr({
38585
38585
  find: aw,
38586
38586
  type: this.type
38587
38587
  })
@@ -38670,9 +38670,9 @@ const dw = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
38670
38670
  ), U0 = ge.memo(
38671
38671
  ({ node: e, value: t, onChange: n, disabled: r, error: l, nodeDefaults: a, onExpandChange: i }) => {
38672
38672
  const s = typeof e.minHeight == "number" ? e.minHeight : a?.richtext?.minHeight ?? 40, o = typeof e.maxHeight == "number" ? e.maxHeight : a?.richtext?.maxHeight ?? 160, u = Math.max(o, s), c = e.expandable !== !1, [d, f] = Q(!1), h = ee(n), m = ee(e.key);
38673
- be(() => {
38673
+ me(() => {
38674
38674
  h.current = n;
38675
- }, [n]), be(() => {
38675
+ }, [n]), me(() => {
38676
38676
  m.current = e.key;
38677
38677
  }, [e.key]);
38678
38678
  const g = a4({
@@ -38691,11 +38691,11 @@ const dw = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
38691
38691
  }
38692
38692
  }
38693
38693
  });
38694
- be(() => {
38694
+ me(() => {
38695
38695
  if (!g) return;
38696
38696
  const S = g.getHTML(), O = t ?? "";
38697
38697
  S !== O && (g.isFocused || g.commands.setContent(O, !1));
38698
- }, [t, g]), be(() => {
38698
+ }, [t, g]), me(() => {
38699
38699
  g && g.setEditable(!r);
38700
38700
  }, [r, g]);
38701
38701
  const b = V(() => {
@@ -39009,7 +39009,7 @@ const Vf = (e) => typeof e == "string" || Array.isArray(e) && e.every((t) => typ
39009
39009
  };
39010
39010
  function pw(e, t, n, r, l, a) {
39011
39011
  const i = ee({});
39012
- be(() => {
39012
+ me(() => {
39013
39013
  if (!e) return;
39014
39014
  const s = hw(r);
39015
39015
  n((u) => {
@@ -39783,13 +39783,13 @@ const Ow = ["全部技能", "我的技能", "订阅技能", "系统技能"], Mw
39783
39783
  }, 300);
39784
39784
  }, []), S = V(() => {
39785
39785
  window.clearTimeout(E.current), b(!1), m(!1);
39786
- }, []), [O, I] = Q(""), [C, w] = Q(""), _ = Er(), k = _ ? () => _ : void 0, P = ee(0), R = ee(null), F = ee(0), q = ee(0), L = V(() => {
39786
+ }, []), [O, I] = Q(""), [C, w] = Q(""), _ = Xr(), k = _ ? () => _ : void 0, P = ee(0), R = ee(null), F = ee(0), q = ee(0), L = V(() => {
39787
39787
  const T = R.current;
39788
39788
  T && (T.classList.add("is-scrolling"), window.clearTimeout(q.current), q.current = window.setTimeout(() => {
39789
39789
  T.classList.remove("is-scrolling");
39790
39790
  }, 300));
39791
39791
  }, []);
39792
- be(() => {
39792
+ me(() => {
39793
39793
  const T = window.setTimeout(() => w(O.trim()), 300);
39794
39794
  return () => window.clearTimeout(T);
39795
39795
  }, [O]);
@@ -39812,9 +39812,11 @@ const Ow = ["全部技能", "我的技能", "订阅技能", "系统技能"], Mw
39812
39812
  T === P.current && S();
39813
39813
  }
39814
39814
  }, [l, u, C, A, S]);
39815
- be(() => {
39815
+ me(() => {
39816
39816
  y();
39817
- }, [y]);
39817
+ }, [y]), me(() => {
39818
+ R.current?.scrollTo({ top: 0 });
39819
+ }, [u, C]);
39818
39820
  const [B, z] = Q(!1);
39819
39821
  $e(() => {
39820
39822
  if (u === 0 && !h && d.length > 0) {
@@ -39932,14 +39934,14 @@ const Na = 4, Jw = () => /* @__PURE__ */ v(
39932
39934
  }
39933
39935
  ), Y0 = ge.memo(({ disabled: e, selectedSkill: t, onSkillSelect: n, onSkillCardClick: r, onSkillAction: l, skillListFetch: a, onSkillHeaderAction: i, showCreateSkill: s, skillPanelOpen: o, onSkillPanelOpenChange: u, createDisabled: c, skillPanelOpenDelay: d }) => {
39934
39936
  const [f, h] = Q(!1), m = o !== void 0, [g, b] = Q(o ?? !1), E = ee(0);
39935
- be(() => {
39937
+ me(() => {
39936
39938
  if (m)
39937
39939
  return o ? d && d > 0 ? E.current = window.setTimeout(() => b(!0), d) : b(!0) : (window.clearTimeout(E.current), b(!1)), () => window.clearTimeout(E.current);
39938
39940
  }, [m, o, d]);
39939
39941
  const A = m ? g : f, S = V((y) => {
39940
39942
  const B = typeof y == "function" ? y(A) : y;
39941
39943
  m || h(B), u?.(B);
39942
- }, [m, A, u]), [O, I] = Q(null), C = ee(null), w = ee(null), _ = Er(), k = V(() => (C.current?.closest(".rich-text-editor") ?? C.current)?.getBoundingClientRect() ?? null, []), P = V(() => {
39944
+ }, [m, A, u]), [O, I] = Q(null), C = ee(null), w = ee(null), _ = Xr(), k = V(() => (C.current?.closest(".rich-text-editor") ?? C.current)?.getBoundingClientRect() ?? null, []), P = V(() => {
39943
39945
  const y = k();
39944
39946
  if (!y) return;
39945
39947
  const B = Math.max(0, window.innerHeight - y.bottom - Na * 2), z = Math.max(0, y.top - Na * 2), G = (w.current?.scrollHeight ?? 0) > B && z > B, T = G ? z : B, oe = (w.current?.offsetParent ?? _)?.getBoundingClientRect(), D = oe?.left ?? 0, pe = oe?.top ?? 0, Se = y.left - D;
@@ -39960,7 +39962,7 @@ const Na = 4, Jw = () => /* @__PURE__ */ v(
39960
39962
  return $ && z && $.observe(z), () => {
39961
39963
  cancelAnimationFrame(y), window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P), B?.disconnect(), $?.disconnect();
39962
39964
  };
39963
- }, [A, P]), be(() => {
39965
+ }, [A, P]), me(() => {
39964
39966
  if (!A || m) return;
39965
39967
  const y = (B) => {
39966
39968
  const z = B.target;
@@ -40203,18 +40205,22 @@ const a_ = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)
40203
40205
  const t = (e || "").split(".").pop()?.toLowerCase() || "";
40204
40206
  return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(t) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(t) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(t) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(t) ? "icon-txt" : t === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(t) ? "icon-a-htmljson" : t === "md" ? "icon-md" : "icon-lianjie";
40205
40207
  }, o_ = ({ file: e, onRemove: t }) => {
40206
- const n = i_(e), r = Er(), l = Hp(n ? e : null);
40208
+ const n = i_(e), r = Hp(n ? e : null);
40207
40209
  return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", children: [
40208
- n ? /* @__PURE__ */ v(
40209
- Xf,
40210
- {
40211
- className: "rte-footer-file-thumb",
40212
- width: 32,
40213
- height: 32,
40214
- src: l,
40215
- alt: e.name,
40216
- preview: r ? { getContainer: () => r } : void 0
40217
- }
40210
+ n ? (
40211
+ // 预览层走 antd 默认 document.body:popupHost 是 fixed+inset:0,但任何
40212
+ // 祖先链上的 transform/filter/will-change 都会让它退化为相对祖先定位(CSS 包含块规则),
40213
+ // 预览遮罩跟着缩水 → 盖不住 sidebar。document.body 不会被业务容器困住,最稳。
40214
+ /* @__PURE__ */ v(
40215
+ Xf,
40216
+ {
40217
+ className: "rte-footer-file-thumb",
40218
+ width: 32,
40219
+ height: 32,
40220
+ src: r,
40221
+ alt: e.name
40222
+ }
40223
+ )
40218
40224
  ) : /* @__PURE__ */ v("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ v("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ v("use", { xlinkHref: `#${s_(e.name)}` }) }) }),
40219
40225
  /* @__PURE__ */ W("div", { className: "rte-footer-file-info", children: [
40220
40226
  /* @__PURE__ */ v("span", { className: "rte-footer-file-name", title: e.name, children: e.name }),
@@ -40224,8 +40230,8 @@ const a_ = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)
40224
40230
  "span",
40225
40231
  {
40226
40232
  className: "rte-footer-file-remove",
40227
- onClick: (a) => {
40228
- a.stopPropagation(), t();
40233
+ onClick: (l) => {
40234
+ l.stopPropagation(), t();
40229
40235
  },
40230
40236
  children: /* @__PURE__ */ v(
40231
40237
  "i",
@@ -40363,7 +40369,7 @@ const P_ = (e) => {
40363
40369
  collapsed: Le = !1,
40364
40370
  onCollapsedChange: Ft,
40365
40371
  collapseTransitionMs: pt = 260,
40366
- nodeDefaults: Cr,
40372
+ nodeDefaults: Tr,
40367
40373
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
40368
40374
  onExpandedHeightChange: bn,
40369
40375
  // 折叠态固定总高度(px):传入则折叠 max-height 直接用该值,不传则内部测第一行可视高度。
@@ -40378,20 +40384,20 @@ const P_ = (e) => {
40378
40384
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
40379
40385
  scrollContainerRef: gn,
40380
40386
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
40381
- autoCollapseOnScroll: xr
40387
+ autoCollapseOnScroll: Cr
40382
40388
  } = e, [Tt, vn] = Q({}), [_t, na] = Q({}), [st, j] = Q(u ?? []), [te, ve] = Q({}), [Te, Me] = Q(_w), [Ct, Qt] = Q(() => /* @__PURE__ */ new Set()), [Ht, Yt] = Q({}), [It, mt] = Q(null), yn = V(
40383
40389
  () => sn?.() ?? It ?? document.body,
40384
40390
  [sn, It]
40385
40391
  ), Ot = ee(null), [ra, eb] = Q(null), tb = V((U, se) => {
40386
40392
  eb(se ? U : null);
40387
40393
  }, []), jn = ee(null), [nb, rb] = Q(58), [Gn, Au] = Q(58), [Ri, Nu] = Q(!1), wu = ee(0), _u = ee(Le), [la, Iu] = Q(!1);
40388
- _u.current !== Le && (_u.current = Le, wu.current = (typeof performance < "u" ? performance.now() : Date.now()) + pt, Iu(!0)), be(() => {
40394
+ _u.current !== Le && (_u.current = Le, wu.current = (typeof performance < "u" ? performance.now() : Date.now()) + pt, Iu(!0)), me(() => {
40389
40395
  if (!la) return;
40390
40396
  const U = setTimeout(() => Iu(!1), pt);
40391
40397
  return () => clearTimeout(U);
40392
40398
  }, [la, Le, pt]);
40393
40399
  const [Kn, Ou] = Q(""), el = ee(null), Mu = ee(null), [Di, Ru] = Q(0), Li = ee(!1);
40394
- be(() => {
40400
+ me(() => {
40395
40401
  if (!u || u.length === st.length && u.every((re, ae) => {
40396
40402
  const ne = st[ae];
40397
40403
  return ne && re.name === ne.name && re.size === ne.size && re.lastModified === ne.lastModified;
@@ -40412,7 +40418,7 @@ const P_ = (e) => {
40412
40418
  () => ww(t, Te, Ct),
40413
40419
  [t, Te, Ct]
40414
40420
  ), Pi = ee(null), Du = ee(!1);
40415
- be(() => {
40421
+ me(() => {
40416
40422
  const U = t.find((se) => se.type === "tag")?.text ?? null;
40417
40423
  if (!Du.current) {
40418
40424
  Du.current = !0, Pi.current = U;
@@ -40432,7 +40438,7 @@ const P_ = (e) => {
40432
40438
  const nl = ee(/* @__PURE__ */ new Map()), Lu = ee(""), Pu = (t.find((U) => U.type === "tag")?.text || "") + "||" + t.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|");
40433
40439
  Lu.current !== Pu && (Lu.current = Pu, nl.current = /* @__PURE__ */ new Map());
40434
40440
  const [bt, aa] = Q(null);
40435
- be(() => {
40441
+ me(() => {
40436
40442
  pe !== void 0 && aa(pe);
40437
40443
  }, [pe]);
40438
40444
  const Bu = V(
@@ -40446,10 +40452,10 @@ const P_ = (e) => {
40446
40452
  },
40447
40453
  [q]
40448
40454
  );
40449
- be(() => {
40455
+ me(() => {
40450
40456
  tl && aa(null);
40451
40457
  }, [tl]);
40452
- const { errors: sb, validate: Fu, clearError: Hu } = gw(xt), { excludedKeys: Sr, hideSeparator: Uu } = Ew(xt, Tt, _t), { analyzeReport: ia, analyzeMarkdown: zu, analyzeMarkdownName: Vu, resolveReportName: sa } = Tw({
40458
+ const { errors: sb, validate: Fu, clearError: Hu } = gw(xt), { excludedKeys: xr, hideSeparator: Uu } = Ew(xt, Tt, _t), { analyzeReport: ia, analyzeMarkdown: zu, analyzeMarkdownName: Vu, resolveReportName: sa } = Tw({
40453
40459
  reportAnalyze: O,
40454
40460
  markdownAnalyze: P,
40455
40461
  markdownNameAnalyze: R,
@@ -40462,12 +40468,12 @@ const P_ = (e) => {
40462
40468
  xt.find(
40463
40469
  (ne) => ne.key === re && ne.type === "markdown-module"
40464
40470
  ) && vn((ne) => {
40465
- const me = { ...ne, [U]: se };
40466
- return Object.keys(me).filter((Ce) => Ce.startsWith(`${re}__module_`)).every((Ce) => $u(me[Ce])) && (Me((Ce) => {
40471
+ const be = { ...ne, [U]: se };
40472
+ return Object.keys(be).filter((Ce) => Ce.startsWith(`${re}__module_`)).every((Ce) => $u(be[Ce])) && (Me((Ce) => {
40467
40473
  if (!Ce.markdownModules[re]) return Ce;
40468
40474
  const Be = { ...Ce.markdownModules };
40469
40475
  return delete Be[re], { ...Ce, markdownModules: Be };
40470
- }), Object.keys(me).filter((Ce) => Ce.startsWith(`${re}__module_`)).forEach((Ce) => delete me[Ce]), me[re] = ""), me;
40476
+ }), Object.keys(be).filter((Ce) => Ce.startsWith(`${re}__module_`)).forEach((Ce) => delete be[Ce]), be[re] = ""), be;
40471
40477
  });
40472
40478
  return;
40473
40479
  }
@@ -40503,32 +40509,32 @@ const P_ = (e) => {
40503
40509
  const Ie = { ...se };
40504
40510
  return delete Ie[U], Ie;
40505
40511
  }
40506
- const [, re, ae] = fe, ne = parseInt(ae, 10), me = {};
40512
+ const [, re, ae] = fe, ne = parseInt(ae, 10), be = {};
40507
40513
  for (const [Ie, Ce] of Object.entries(se)) {
40508
40514
  if (Ie === U) continue;
40509
40515
  const Be = Ie.match(/^(.+)_(\d+)$/);
40510
40516
  if (Be && Be[1] === re) {
40511
40517
  const Mt = parseInt(Be[2], 10);
40512
- Mt > ne ? me[`${re}_${Mt - 1}`] = Ce : me[Ie] = Ce;
40518
+ Mt > ne ? be[`${re}_${Mt - 1}`] = Ce : be[Ie] = Ce;
40513
40519
  } else
40514
- me[Ie] = Ce;
40520
+ be[Ie] = Ce;
40515
40521
  }
40516
- return me;
40522
+ return be;
40517
40523
  });
40518
40524
  }, []), db = V((U, se) => {
40519
40525
  Yt((fe) => {
40520
40526
  const re = `${U}_`, ae = [];
40521
- for (const me of Object.keys(fe)) {
40522
- if (!me.startsWith(re)) continue;
40523
- const Ie = me.slice(re.length);
40524
- /^\d+$/.test(Ie) && ae.push([Number(Ie), fe[me]]);
40527
+ for (const be of Object.keys(fe)) {
40528
+ if (!be.startsWith(re)) continue;
40529
+ const Ie = be.slice(re.length);
40530
+ /^\d+$/.test(Ie) && ae.push([Number(Ie), fe[be]]);
40525
40531
  }
40526
40532
  if (ae.length === 0) return fe;
40527
40533
  const ne = { ...fe };
40528
- for (const [me] of ae) delete ne[`${U}_${me}`];
40529
- for (const [me, Ie] of ae) {
40530
- if (me === se) continue;
40531
- const Ce = me > se ? me - 1 : me;
40534
+ for (const [be] of ae) delete ne[`${U}_${be}`];
40535
+ for (const [be, Ie] of ae) {
40536
+ if (be === se) continue;
40537
+ const Ce = be > se ? be - 1 : be;
40532
40538
  ne[`${U}_${Ce}`] = Ie;
40533
40539
  }
40534
40540
  return ne;
@@ -40560,20 +40566,20 @@ const P_ = (e) => {
40560
40566
  reportModules: { ...re.reportModules, [U]: fe.modules }
40561
40567
  })), vn((re) => {
40562
40568
  const ae = { ...re };
40563
- return fe.modules.forEach((ne, me) => {
40564
- ae[`${U}__module_${me}`] = ne.content;
40569
+ return fe.modules.forEach((ne, be) => {
40570
+ ae[`${U}__module_${be}`] = ne.content;
40565
40571
  }), ae;
40566
40572
  })) : fe.status === "failed" && (Bi(U, ""), vn((re) => {
40567
40573
  let ae = !1;
40568
40574
  const ne = { ...re };
40569
- for (const me of Object.keys(ne))
40570
- me.startsWith(`${U}__module_`) && (delete ne[me], ae = !0);
40575
+ for (const be of Object.keys(ne))
40576
+ be.startsWith(`${U}__module_`) && (delete ne[be], ae = !0);
40571
40577
  return ae ? ne : re;
40572
40578
  }));
40573
40579
  },
40574
40580
  [ia, sa, Bi]
40575
40581
  );
40576
- be(() => {
40582
+ me(() => {
40577
40583
  if (!i || t.length === 0) return;
40578
40584
  const U = t.filter((fe) => fe.type === "report-url" && fe.key), se = t.filter((fe) => fe.type === "multi-variable-select" && fe.key);
40579
40585
  if (!(U.length === 0 && se.length === 0)) {
@@ -40587,10 +40593,10 @@ const P_ = (e) => {
40587
40593
  }
40588
40594
  for (const fe of se) {
40589
40595
  const re = fe.key, ae = i[re];
40590
- !Array.isArray(ae) || ae.length === 0 || ae.forEach((ne, me) => {
40596
+ !Array.isArray(ae) || ae.length === 0 || ae.forEach((ne, be) => {
40591
40597
  const Ie = typeof ne == "string" ? ne.trim() : "";
40592
40598
  if (!Ie) return;
40593
- const Ce = `${re}_${me}`;
40599
+ const Ce = `${re}_${be}`;
40594
40600
  nl.current.get(Ce) !== Ie && (nl.current.set(Ce, Ie), setTimeout(() => {
40595
40601
  Fi(Ce, Ie, "multi-variable-select");
40596
40602
  }, 100));
@@ -40602,12 +40608,12 @@ const P_ = (e) => {
40602
40608
  async (U, se, fe) => {
40603
40609
  const ae = Date.now();
40604
40610
  Qt((ne) => {
40605
- const me = new Set(ne);
40606
- return me.add(U), me;
40611
+ const be = new Set(ne);
40612
+ return be.add(U), be;
40607
40613
  });
40608
40614
  try {
40609
- const ne = await fe(U, se), me = Date.now() - ae;
40610
- me < 500 && await new Promise((Ie) => setTimeout(Ie, 500 - me)), ne && (Me((Ie) => ({
40615
+ const ne = await fe(U, se), be = Date.now() - ae;
40616
+ be < 500 && await new Promise((Ie) => setTimeout(Ie, 500 - be)), ne && (Me((Ie) => ({
40611
40617
  ...Ie,
40612
40618
  markdownModules: { ...Ie.markdownModules, [U]: ne.modules }
40613
40619
  })), vn((Ie) => {
@@ -40619,8 +40625,8 @@ const P_ = (e) => {
40619
40625
  } finally {
40620
40626
  Qt((ne) => {
40621
40627
  if (!ne.has(U)) return ne;
40622
- const me = new Set(ne);
40623
- return me.delete(U), me;
40628
+ const be = new Set(ne);
40629
+ return be.delete(U), be;
40624
40630
  });
40625
40631
  }
40626
40632
  },
@@ -40632,9 +40638,9 @@ const P_ = (e) => {
40632
40638
  (U, se) => oa(U, se, Vu),
40633
40639
  [oa, Vu]
40634
40640
  );
40635
- be(() => {
40641
+ me(() => {
40636
40642
  s?.(_t);
40637
- }, [_t, s]), be(() => {
40643
+ }, [_t, s]), me(() => {
40638
40644
  if (Li.current) {
40639
40645
  Li.current = !1;
40640
40646
  return;
@@ -40649,21 +40655,21 @@ const P_ = (e) => {
40649
40655
  if (!ae && !st.length) return;
40650
40656
  const ne = bt ? `【${bt.title}】${ae}` : ae;
40651
40657
  if (st.length) {
40652
- const me = new FormData();
40653
- ne && me.append("prompt", ne), st.forEach((Ie) => me.append("files", Ie)), n(me, ne, U);
40658
+ const be = new FormData();
40659
+ ne && be.append("prompt", ne), st.forEach((Ie) => be.append("files", Ie)), n(be, ne, U);
40654
40660
  } else
40655
40661
  n(ae, ne, U);
40656
40662
  Ou(""), j([]);
40657
40663
  return;
40658
40664
  }
40659
- if (!Fu(Tt, _t, Sr)) return;
40665
+ if (!Fu(Tt, _t, xr)) return;
40660
40666
  const { formData: se, fullPrompt: fe, hasContent: re } = await Nw({
40661
40667
  config: xt,
40662
40668
  values: Tt,
40663
40669
  files: _t,
40664
40670
  footerFiles: st,
40665
40671
  markdownModules: Te.markdownModules,
40666
- excludedKeys: Sr,
40672
+ excludedKeys: xr,
40667
40673
  hideSeparator: Uu
40668
40674
  });
40669
40675
  re && (n(se, fe, U), j([]));
@@ -40680,13 +40686,13 @@ const P_ = (e) => {
40680
40686
  l,
40681
40687
  Fu,
40682
40688
  n,
40683
- Sr
40689
+ xr
40684
40690
  ]), mb = V(
40685
40691
  (U) => {
40686
40692
  U.key === "Enter" && (U.nativeEvent.isComposing || U.keyCode === 229 || U.shiftKey || (U.preventDefault(), Ui()));
40687
40693
  },
40688
40694
  [Ui]
40689
- ), bb = Ve(() => t.length === 0 ? Kn.trim().length > 0 : bw(xt, Tt, _t, Sr), [t.length, Kn, xt, Tt, _t, Sr]);
40695
+ ), bb = Ve(() => t.length === 0 ? Kn.trim().length > 0 : bw(xt, Tt, _t, xr), [t.length, Kn, xt, Tt, _t, xr]);
40690
40696
  $e(() => {
40691
40697
  if (!bt) {
40692
40698
  Ru(0);
@@ -40696,11 +40702,11 @@ const P_ = (e) => {
40696
40702
  if (!U) return;
40697
40703
  const se = U.getBoundingClientRect().width - 2;
40698
40704
  Ru(Math.max(0, se));
40699
- }, [bt, t.length]), be(() => {
40705
+ }, [bt, t.length]), me(() => {
40700
40706
  !bt || t.length > 0 || el.current?.focus();
40701
40707
  }, [bt, t.length]);
40702
40708
  const qu = ee(null), [gb, Wu] = Q(!1);
40703
- be(() => {
40709
+ me(() => {
40704
40710
  const U = (se) => {
40705
40711
  const fe = qu.current;
40706
40712
  if (!fe) return;
@@ -40770,16 +40776,16 @@ const P_ = (e) => {
40770
40776
  const fe = U.style.maxHeight;
40771
40777
  U.style.maxHeight = "none";
40772
40778
  const re = U.offsetHeight, ae = U.scrollHeight, ne = U.parentElement;
40773
- let me = 1 / 0;
40779
+ let be = 1 / 0;
40774
40780
  if (ne) {
40775
40781
  let Be = 0;
40776
40782
  for (const ca of Array.from(ne.children))
40777
40783
  ca !== U && (Be += ca.offsetHeight);
40778
40784
  const Mt = getComputedStyle(ne), zi = parseFloat(Mt.paddingTop) + parseFloat(Mt.paddingBottom);
40779
- me = Math.max(0, ne.clientHeight - Be - zi);
40785
+ be = Math.max(0, ne.clientHeight - Be - zi);
40780
40786
  }
40781
40787
  U.style.maxHeight = fe;
40782
- const Ie = Math.max(Math.ceil(ae || 0), Math.ceil(re || 0)), Ce = Math.min(Ie, Math.ceil(me));
40788
+ const Ie = Math.max(Math.ceil(ae || 0), Math.ceil(re || 0)), Ce = Math.min(Ie, Math.ceil(be));
40783
40789
  Ce > 0 && Au((Be) => Be === Ce ? Be : Ce);
40784
40790
  }
40785
40791
  try {
@@ -40787,7 +40793,7 @@ const P_ = (e) => {
40787
40793
  re.selectNodeContents(fe);
40788
40794
  const ae = Array.from(re.getClientRects()).filter((ne) => ne.height > 0);
40789
40795
  if (ae.length > 0) {
40790
- const ne = Math.min(...ae.map((on) => on.top)), me = parseFloat(getComputedStyle(U).lineHeight) || 34, Ie = Math.max(me, 1);
40796
+ const ne = Math.min(...ae.map((on) => on.top)), be = parseFloat(getComputedStyle(U).lineHeight) || 34, Ie = Math.max(be, 1);
40791
40797
  let Ce = 0;
40792
40798
  for (const on of ae)
40793
40799
  on.top < ne + Ie && (Ce = Math.max(Ce, on.bottom));
@@ -40803,15 +40809,15 @@ const P_ = (e) => {
40803
40809
  } catch {
40804
40810
  }
40805
40811
  }
40806
- }, [Le]), kr = Ve(
40812
+ }, [Le]), Sr = Ve(
40807
40813
  () => xt.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|"),
40808
40814
  [xt]
40809
- ), Xu = ee(kr);
40810
- Xu.current !== kr && (Xu.current = kr, Le || (Au(jf), Nu(!0))), be(() => {
40815
+ ), Xu = ee(Sr);
40816
+ Xu.current !== Sr && (Xu.current = Sr, Le || (Au(jf), Nu(!0))), me(() => {
40811
40817
  if (!Ri) return;
40812
40818
  const U = setTimeout(() => Nu(!1), pt);
40813
40819
  return () => clearTimeout(U);
40814
- }, [Ri, kr, pt]), $e(() => {
40820
+ }, [Ri, Sr, pt]), $e(() => {
40815
40821
  const U = jn.current;
40816
40822
  if (!U || (ua(), typeof ResizeObserver > "u")) return;
40817
40823
  const se = () => {
@@ -40826,9 +40832,9 @@ const P_ = (e) => {
40826
40832
  return re && ae && ae.observe(re), () => {
40827
40833
  fe.disconnect(), ae?.disconnect();
40828
40834
  };
40829
- }, [ua, xt, _t, st.length, Ht, Le, kr, Kn]);
40835
+ }, [ua, xt, _t, st.length, Ht, Le, Sr, Kn]);
40830
40836
  const Ju = ee(-1);
40831
- be(() => {
40837
+ me(() => {
40832
40838
  Le || Gn <= 0 || Gn >= jf || Ju.current !== Gn && (Ju.current = Gn, bn?.(Gn));
40833
40839
  }, [Gn, Le, bn]);
40834
40840
  const Zu = Ve(
@@ -40905,8 +40911,8 @@ const P_ = (e) => {
40905
40911
  Zu.has(Mt) ? re.push(Be) : ae = !0;
40906
40912
  }
40907
40913
  if (ae && Ot.current?.error("粘贴文件中含不支持的类型,已自动过滤"), re.length === 0) return;
40908
- const ne = 50 * 1024 * 1024, me = st.reduce((Be, Mt) => Be + Mt.size, 0), Ie = [];
40909
- let Ce = me;
40914
+ const ne = 50 * 1024 * 1024, be = st.reduce((Be, Mt) => Be + Mt.size, 0), Ie = [];
40915
+ let Ce = be;
40910
40916
  for (const Be of re) {
40911
40917
  if (Ce + Be.size > ne) {
40912
40918
  Ot.current?.error("文件总大小不能超过 50MB");
@@ -40965,7 +40971,7 @@ const P_ = (e) => {
40965
40971
  onClick: Ku,
40966
40972
  onInput: Eb,
40967
40973
  children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: xt.map((U, se) => {
40968
- if (U.key && Sr.has(U.key) || Uu && U.exclusionGroup === "separator" || ra && U.key !== ra) return null;
40974
+ if (U.key && xr.has(U.key) || Uu && U.exclusionGroup === "separator" || ra && U.key !== ra) return null;
40969
40975
  const fe = (U.type === "report-module" || U.type === "markdown-module") && U.key ? `${U.key}__module_${U.moduleIndex ?? 0}` : U.key;
40970
40976
  return /* @__PURE__ */ v(
40971
40977
  z0,
@@ -40997,11 +41003,11 @@ const P_ = (e) => {
40997
41003
  disabled: l,
40998
41004
  error: fe ? sb[fe] : void 0,
40999
41005
  index: se,
41000
- nodeDefaults: Cr
41006
+ nodeDefaults: Tr
41001
41007
  },
41002
41008
  fe ?? `text-${se}`
41003
41009
  );
41004
- }) }, kr)
41010
+ }) }, Sr)
41005
41011
  }
41006
41012
  ),
41007
41013
  /* @__PURE__ */ v(
@@ -41370,7 +41376,7 @@ const p_ = ({
41370
41376
  ...i
41371
41377
  }) => {
41372
41378
  const [s, o] = Q(""), [u, c] = Q(0), [d, f] = Q(!1), [h, m] = Q(!1), [g, b] = Q(!1), E = ee(void 0), A = ee(void 0), S = ee(e), O = ee(u), I = ee(h), C = ee(s);
41373
- be(() => {
41379
+ me(() => {
41374
41380
  S.current = e, O.current = u, I.current = h, C.current = s;
41375
41381
  });
41376
41382
  const w = V((L, y) => {
@@ -41402,9 +41408,9 @@ const p_ = ({
41402
41408
  }, 2e3);
41403
41409
  });
41404
41410
  }, [_, w]);
41405
- return be(() => (r && e.length > 0 && !h && k(), () => {
41411
+ return me(() => (r && e.length > 0 && !h && k(), () => {
41406
41412
  E.current && window.clearTimeout(E.current), A.current && window.clearTimeout(A.current);
41407
- }), [u, h, r, e.length, k]), be(() => {
41413
+ }), [u, h, r, e.length, k]), me(() => {
41408
41414
  !d && r && e.length > 0 && !h && k();
41409
41415
  }, [u, d, r, e.length, h, k]), /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
41410
41416
  /* @__PURE__ */ v(
@@ -41551,7 +41557,7 @@ const m_ = ({
41551
41557
  // 其他原生属性
41552
41558
  }) => {
41553
41559
  const [m, g] = Q(""), [b, E] = Q(0), [A, S] = Q(!1), [O, I] = Q(!1), [C, w] = Q(!1), [_, k] = Q(l || ""), P = ee(void 0), R = ee(void 0), F = ee(e), q = ee(b), L = ee(O), y = ee(m), B = ee(null);
41554
- be(() => {
41560
+ me(() => {
41555
41561
  F.current = e, q.current = b, L.current = O, y.current = m;
41556
41562
  });
41557
41563
  const z = V((de, we) => {
@@ -41583,9 +41589,9 @@ const m_ = ({
41583
41589
  }, 2e3);
41584
41590
  });
41585
41591
  }, [$, z]);
41586
- be(() => (r && e.length > 0 && !O && G(), () => {
41592
+ me(() => (r && e.length > 0 && !O && G(), () => {
41587
41593
  P.current && window.clearTimeout(P.current), R.current && window.clearTimeout(R.current);
41588
- }), [b, O, r, e.length, G]), be(() => {
41594
+ }), [b, O, r, e.length, G]), me(() => {
41589
41595
  !A && r && e.length > 0 && !O && G();
41590
41596
  }, [b, A, r, e.length, O, G]);
41591
41597
  const T = (de) => {
@@ -42044,14 +42050,14 @@ const b_ = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
42044
42050
  const I = Math.max(...O);
42045
42051
  E.style.height = `${I}px`;
42046
42052
  }, [e, u, n]);
42047
- be(() => {
42053
+ me(() => {
42048
42054
  const b = () => {
42049
42055
  const E = f();
42050
42056
  E !== u && c(E);
42051
42057
  };
42052
42058
  if (r)
42053
42059
  return window.addEventListener("resize", b), b(), () => window.removeEventListener("resize", b);
42054
- }, [r, f, u]), be(() => {
42060
+ }, [r, f, u]), me(() => {
42055
42061
  const b = setTimeout(() => {
42056
42062
  h();
42057
42063
  }, 100);