@univerjs/core 0.9.1 → 0.9.2

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/lib/index.js CHANGED
@@ -3,7 +3,7 @@ var pc = (e, t, n) => t in e ? _c(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var p = (e, t, n) => pc(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { createIdentifier as ct, Inject as At, Injector as Yn } from "@wendellhu/redi";
5
5
  export * from "@wendellhu/redi";
6
- import { Subscription as Ec, Subject as it, Observable as br, filter as Rr, ReplaySubject as Cc, take as Rc, tap as Jo, debounceTime as Ic, map as qi, BehaviorSubject as et, merge as Tl, timer as wc, distinctUntilChanged as Oc, firstValueFrom as Sc, skip as Ml, of as Mr, combineLatest as vc } from "rxjs";
6
+ import { Subscription as Ec, Subject as it, Observable as br, filter as Rr, ReplaySubject as Cc, take as Rc, tap as Qo, debounceTime as Ic, map as Zi, BehaviorSubject as et, merge as Tl, timer as wc, distinctUntilChanged as Oc, firstValueFrom as Sc, skip as Ml, of as Mr, combineLatest as vc } from "rxjs";
7
7
  import { filter as bc, debounceTime as Ac, first as yc, map as Nc } from "rxjs/operators";
8
8
  import { defaultTheme as Lr } from "@univerjs/themes";
9
9
  function Tc(e, t) {
@@ -71,7 +71,7 @@ function xc() {
71
71
  function Dc() {
72
72
  Mc(), Lc(), xc();
73
73
  }
74
- function Os(e, t) {
74
+ function Ss(e, t) {
75
75
  const n = e.indexOf(t);
76
76
  return n > -1 ? (e.splice(n, 1), !0) : !1;
77
77
  }
@@ -117,10 +117,10 @@ function BC(e) {
117
117
  function Ct(e) {
118
118
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
119
119
  }
120
- var Bs, Qo;
120
+ var js, ea;
121
121
  function kc() {
122
- if (Qo) return Bs;
123
- Qo = 1;
122
+ if (ea) return js;
123
+ ea = 1;
124
124
  var e = function(t) {
125
125
  if (t = t || {}, this.Promise = t.Promise || Promise, this.queues = /* @__PURE__ */ Object.create(null), this.domainReentrant = t.domainReentrant || !1, this.domainReentrant) {
126
126
  if (typeof process > "u" || typeof process.domain > "u")
@@ -215,11 +215,11 @@ function kc() {
215
215
  } catch (n) {
216
216
  return this.Promise.reject(n);
217
217
  }
218
- }, Bs = e, Bs;
218
+ }, js = e, js;
219
219
  }
220
- var js, ea;
220
+ var Ws, ta;
221
221
  function Pc() {
222
- return ea || (ea = 1, js = kc()), js;
222
+ return ta || (ta = 1, Ws = kc()), Ws;
223
223
  }
224
224
  var Fc = Pc();
225
225
  const jC = /* @__PURE__ */ Ct(Fc), $c = /* @__PURE__ */ new Set(["true", "false"]);
@@ -261,12 +261,12 @@ function Vc(e, t) {
261
261
  }
262
262
  return !0;
263
263
  }
264
- class mi extends Error {
264
+ class gi extends Error {
265
265
  constructor(t) {
266
266
  super(t), this.name = "CustomCommandExecutionError";
267
267
  }
268
268
  }
269
- class VC extends mi {
269
+ class VC extends gi {
270
270
  constructor() {
271
271
  super("Canceled by facade"), this.name = "CanceledError";
272
272
  }
@@ -327,7 +327,7 @@ class XC {
327
327
  return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
328
328
  })
329
329
  // from large to small
330
- ), () => Os(this._interceptorsByName.get(r), n);
330
+ ), () => Ss(this._interceptorsByName.get(r), n);
331
331
  }
332
332
  getInterceptPoints() {
333
333
  return this._interceptorPoints;
@@ -382,7 +382,7 @@ class ZC {
382
382
  return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
383
383
  })
384
384
  // from large to small
385
- ), () => Os(this._asyncInterceptorsByName.get(r), n);
385
+ ), () => Ss(this._asyncInterceptorsByName.get(r), n);
386
386
  }
387
387
  getInterceptPoints() {
388
388
  return this._asyncInterceptorPoints;
@@ -417,11 +417,11 @@ function Xc([e, t, n]) {
417
417
  }
418
418
  return [o, a, i];
419
419
  }
420
- function hs(e, t, n) {
420
+ function ds(e, t, n) {
421
421
  const r = [e, t, n].map((s) => s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4);
422
422
  return 0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2];
423
423
  }
424
- function ta(e, t) {
424
+ function na(e, t) {
425
425
  return (Math.max(e, t) + 0.05) / (Math.min(e, t) + 0.05);
426
426
  }
427
427
  function qc(e, t, n) {
@@ -437,15 +437,15 @@ function qc(e, t, n) {
437
437
  }
438
438
  return [r, s, i];
439
439
  }
440
- const Ws = { r: 1, g: 1, b: 1 }, Ys = { r: 0, g: 0, b: 0 }, Zc = hs(Ws.r, Ws.g, Ws.b), Jc = hs(Ys.r, Ys.g, Ys.b);
440
+ const Ys = { r: 1, g: 1, b: 1 }, zs = { r: 0, g: 0, b: 0 }, Zc = ds(Ys.r, Ys.g, Ys.b), Jc = ds(zs.r, zs.g, zs.b);
441
441
  function Qc(e) {
442
- const t = hs(e[0], e[1], e[2]), n = ta(
442
+ const t = ds(e[0], e[1], e[2]), n = na(
443
443
  Zc,
444
444
  t
445
445
  ), r = Xc(e);
446
446
  let s = 1 - r[2], i, o, a;
447
447
  do
448
- i = qc(r[0], r[1], s), o = hs(i[0], i[1], i[2]), a = ta(o, Jc), s += 0.01;
448
+ i = qc(r[0], r[1], s), o = ds(i[0], i[1], i[2]), a = na(o, Jc), s += 0.01;
449
449
  while (s <= 1 && s >= 0 && Math.abs(a - n) < 0.01);
450
450
  return i;
451
451
  }
@@ -604,7 +604,7 @@ function i1(e) {
604
604
  e.unsubscribe();
605
605
  });
606
606
  }
607
- class Zi {
607
+ class Ji {
608
608
  constructor() {
609
609
  p(this, "_disposables", /* @__PURE__ */ new Set());
610
610
  }
@@ -625,7 +625,7 @@ class Zi {
625
625
  class Ve {
626
626
  constructor() {
627
627
  p(this, "_disposed", !1);
628
- p(this, "_collection", new Zi());
628
+ p(this, "_collection", new Ji());
629
629
  }
630
630
  disposeWithMe(t) {
631
631
  return this._collection.add(t);
@@ -732,8 +732,8 @@ var uh = Object.getOwnPropertyDescriptor, ch = (e, t, n, r) => {
732
732
  for (var s = r > 1 ? void 0 : r ? uh(t, n) : t, i = e.length - 1, o; i >= 0; i--)
733
733
  (o = e[i]) && (s = o(s) || s);
734
734
  return s;
735
- }, na = (e, t) => (n, r) => t(n, r, e), Ss = /* @__PURE__ */ ((e) => (e[e.COMMAND = 0] = "COMMAND", e[e.OPERATION = 1] = "OPERATION", e[e.MUTATION = 2] = "MUTATION", e))(Ss || {});
736
- const vs = ct("univer.core.command-service");
735
+ }, ra = (e, t) => (n, r) => t(n, r, e), vs = /* @__PURE__ */ ((e) => (e[e.COMMAND = 0] = "COMMAND", e[e.OPERATION = 1] = "OPERATION", e[e.MUTATION = 2] = "MUTATION", e))(vs || {});
736
+ const bs = ct("univer.core.command-service");
737
737
  class hh {
738
738
  constructor() {
739
739
  p(this, "_commands", /* @__PURE__ */ new Map());
@@ -764,7 +764,7 @@ const dh = {
764
764
  type: 0,
765
765
  handler: () => !0
766
766
  };
767
- let gi = class extends Ve {
767
+ let _i = class extends Ve {
768
768
  constructor(t, n) {
769
769
  super();
770
770
  p(this, "_commandRegistry");
@@ -822,7 +822,7 @@ let gi = class extends Ve {
822
822
  }
823
823
  throw new Error(`[CommandService]: command "${t}" is not registered.`);
824
824
  } catch (s) {
825
- if (s instanceof mi)
825
+ if (s instanceof gi)
826
826
  return !1;
827
827
  throw s;
828
828
  }
@@ -852,13 +852,13 @@ let gi = class extends Ve {
852
852
  }
853
853
  throw new Error(`[CommandService]: command "${t}" is not registered.`);
854
854
  } catch (i) {
855
- if (i instanceof mi)
855
+ if (i instanceof gi)
856
856
  return !1;
857
857
  throw i;
858
858
  }
859
859
  }
860
860
  _pushCommandExecutionStack(t) {
861
- return this._commandExecutionStack.push(t), We(() => Os(this._commandExecutionStack, t));
861
+ return this._commandExecutionStack.push(t), We(() => Ss(this._commandExecutionStack, t));
862
862
  }
863
863
  _registerMultiCommand(t) {
864
864
  const n = this._commandRegistry.getCommand(t.id);
@@ -869,7 +869,7 @@ let gi = class extends Ve {
869
869
  r = n[0];
870
870
  } else {
871
871
  r = new fh(t.id);
872
- const i = new Zi();
872
+ const i = new Ji();
873
873
  i.add(this._commandRegistry.registerCommand(r)), i.add(
874
874
  We(() => {
875
875
  this._multiCommandDisposables.delete(t.id);
@@ -911,10 +911,10 @@ let gi = class extends Ve {
911
911
  return s;
912
912
  }
913
913
  };
914
- gi = ch([
915
- na(0, At(Yn)),
916
- na(1, bt)
917
- ], gi);
914
+ _i = ch([
915
+ ra(0, At(Yn)),
916
+ ra(1, bt)
917
+ ], _i);
918
918
  class fh {
919
919
  constructor(t) {
920
920
  p(this, "name");
@@ -946,7 +946,7 @@ class fh {
946
946
  return this._implementations.length > 0;
947
947
  }
948
948
  }
949
- function Ji(e, t, n) {
949
+ function Qi(e, t, n) {
950
950
  const r = e.map((s) => () => t.syncExecuteCommand(s.id, s.params, n));
951
951
  return rh(r);
952
952
  }
@@ -960,7 +960,7 @@ function mh(e) {
960
960
  return () => n == null ? void 0 : n.dispose();
961
961
  });
962
962
  }
963
- function ra(e) {
963
+ function sa(e) {
964
964
  return function(n) {
965
965
  return new br((r) => (n.subscribe({
966
966
  next: (s) => {
@@ -975,10 +975,10 @@ function u1(e = 0) {
975
975
  return (t) => {
976
976
  let n = [];
977
977
  return t.pipe(
978
- Jo((r) => n.push(r)),
978
+ Qo((r) => n.push(r)),
979
979
  Ic(e),
980
- qi(() => n),
981
- Jo(() => n = [])
980
+ Zi(() => n),
981
+ Qo(() => n = [])
982
982
  );
983
983
  };
984
984
  }
@@ -992,7 +992,7 @@ function h1(e, t) {
992
992
  }
993
993
  const d1 = (e) => new Promise((t) => {
994
994
  Tl(
995
- mh(e.onCommandExecuted.bind(e)).pipe(bc(([n]) => n.type === Ss.MUTATION)),
995
+ mh(e.onCommandExecuted.bind(e)).pipe(bc(([n]) => n.type === vs.MUTATION)),
996
996
  wc(300)
997
997
  ).pipe(Ac(16), yc()).subscribe(() => {
998
998
  t();
@@ -1078,7 +1078,7 @@ function _1(e) {
1078
1078
  return 0;
1079
1079
  }
1080
1080
  }
1081
- var bh = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(bh || {}), bs = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.KO_KR = "koKR", e))(bs || {}), _i = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(_i || {}), Ah = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Ah || {}), yh = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(yh || {}), Nh = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Nh || {}), Th = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(Th || {}), Mh = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(Mh || {}), Lh = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(Lh || {}), xh = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(xh || {}), ds = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(ds || {}), Dh = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(Dh || {}), Dt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Dt || {}), xn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(xn || {}), $n = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))($n || {}), pi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(pi || {}), Ei = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Ei || {}), qt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(qt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), fn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(fn || {}), rt = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(rt || {}), Qi = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(Qi || {});
1081
+ var bh = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(bh || {}), As = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.KO_KR = "koKR", e))(As || {}), pi = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(pi || {}), Ah = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Ah || {}), yh = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(yh || {}), Nh = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Nh || {}), Th = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(Th || {}), Mh = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(Mh || {}), Lh = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(Lh || {}), xh = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(xh || {}), fs = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(fs || {}), Dh = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(Dh || {}), Dt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Dt || {}), xn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(xn || {}), $n = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))($n || {}), Ei = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(Ei || {}), Ci = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Ci || {}), qt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(qt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), fn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(fn || {}), rt = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(rt || {}), eo = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(eo || {});
1082
1082
  const Uh = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1083
1083
  let kh = (e) => crypto.getRandomValues(new Uint8Array(e)), Ph = (e, t, n) => {
1084
1084
  let r = (2 << Math.log2(e.length - 1)) - 1, s = -~(1.6 * r * t / e.length);
@@ -1425,7 +1425,7 @@ const Wh = /^-ms-/, Yh = /-([a-z])/g, Kt = [
1425
1425
  "Y",
1426
1426
  "Z"
1427
1427
  ];
1428
- function eo(e, t) {
1428
+ function to(e, t) {
1429
1429
  const n = G.getValueType(e), r = G.getValueType(t);
1430
1430
  return n !== r ? !1 : G.isArray(e) ? zh(e, t) : G.isObject(e) ? Vh(e, t) : G.isDate(e) ? e.getTime() === t.getTime() : G.isRegExp(e) ? e.toString() === t.toString() : e === t;
1431
1431
  }
@@ -1434,7 +1434,7 @@ function zh(e, t) {
1434
1434
  return !1;
1435
1435
  for (let n = 0, r = e.length; n < r; n++) {
1436
1436
  const s = e[n], i = t[n];
1437
- if (!eo(s, i))
1437
+ if (!to(s, i))
1438
1438
  return !1;
1439
1439
  }
1440
1440
  return !0;
@@ -1447,7 +1447,7 @@ function Vh(e, t) {
1447
1447
  if (!r.includes(s))
1448
1448
  return !1;
1449
1449
  const i = e[s], o = t[s];
1450
- if (!eo(i, o))
1450
+ if (!to(i, o))
1451
1451
  return !1;
1452
1452
  }
1453
1453
  return !0;
@@ -1572,7 +1572,7 @@ class G {
1572
1572
  return Number(Number(t).toFixed(n));
1573
1573
  }
1574
1574
  static diffValue(t, n) {
1575
- return eo(t, n);
1575
+ return to(t, n);
1576
1576
  }
1577
1577
  static deepClone(t) {
1578
1578
  if (!this.isDefine(t))
@@ -1826,7 +1826,7 @@ class G {
1826
1826
  function Zt(e = 21, t) {
1827
1827
  return t ? Fh(t, e)() : $h(e);
1828
1828
  }
1829
- function sa(...e) {
1829
+ function Ur(...e) {
1830
1830
  const t = {}, n = e.length;
1831
1831
  for (let r = n - 1; r >= 0; r--) {
1832
1832
  const s = e[r];
@@ -1839,7 +1839,7 @@ function sa(...e) {
1839
1839
  return t;
1840
1840
  }
1841
1841
  const p1 = () => typeof process < "u" && process.versions != null && process.versions.node != null;
1842
- function zs(e, t, n) {
1842
+ function Vs(e, t, n) {
1843
1843
  const { dataStream: r, textRuns: s = [] } = e;
1844
1844
  let i = t;
1845
1845
  const o = [];
@@ -1863,11 +1863,11 @@ function E1(e, t = !0) {
1863
1863
  let i = "", o = -1;
1864
1864
  for (const a of s) {
1865
1865
  const { startIndex: l, paragraphStyle: u = {} } = a, { spaceAbove: c, spaceBelow: h, lineSpacing: d } = u, f = [];
1866
- c != null && (typeof c == "number" ? f.push(`margin-top: ${c}px`) : f.push(`margin-top: ${c.v}px`)), h != null && (typeof h == "number" ? f.push(`margin-bottom: ${h}px`) : f.push(`margin-bottom: ${h.v}px`)), d != null && f.push(`line-height: ${d}`), l > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${zs(e, o + 1, l)}</p>` : i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}></p>`, o = l;
1866
+ c != null && (typeof c == "number" ? f.push(`margin-top: ${c}px`) : f.push(`margin-top: ${c.v}px`)), h != null && (typeof h == "number" ? f.push(`margin-bottom: ${h}px`) : f.push(`margin-bottom: ${h.v}px`)), d != null && f.push(`line-height: ${d}`), l > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${Vs(e, o + 1, l)}</p>` : i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}></p>`, o = l;
1867
1867
  }
1868
- return o !== r.length && (i += zs(e, o, r.length)), i;
1868
+ return o !== r.length && (i += Vs(e, o, r.length)), i;
1869
1869
  } else
1870
- return zs(e, 0, e.dataStream.length);
1870
+ return Vs(e, 0, e.dataStream.length);
1871
1871
  }
1872
1872
  function ia(e, t) {
1873
1873
  const { st: n, ed: r, ts: s = {} } = t, { ff: i, fs: o, it: a, bl: l, ul: u, st: c, ol: h, bg: d, cl: f, va: g } = s;
@@ -1876,7 +1876,7 @@ function ia(e, t) {
1876
1876
  return a === ie.TRUE && (_ = `<i>${_}</i>`), g === qt.SUPERSCRIPT ? _ = `<sup>${_}</sup>` : g === qt.SUBSCRIPT && (_ = `<sub>${_}</sub>`), (u == null ? void 0 : u.s) === ie.TRUE && (_ = `<u>${_}</u>`), (c == null ? void 0 : c.s) === ie.TRUE && (_ = `<s>${_}</s>`), l === ie.TRUE && (_ = `<strong>${_}</strong>`), i && R.push(`font-family: ${i}`), f && R.push(`color: ${f.rgb}`), o && R.push(`font-size: ${o}pt`), h && R.push("text-decoration: overline"), d && R.push(`background: ${d.rgb}`), R.length ? `<span style="${R.join("; ")};">${_}</span>` : _;
1877
1877
  }
1878
1878
  const Gh = {
1879
- [Qi.OFFICE]: {
1879
+ [eo.OFFICE]: {
1880
1880
  [rt.ACCENT1]: "#4472C4",
1881
1881
  [rt.ACCENT2]: "#ED7D31",
1882
1882
  [rt.ACCENT3]: "#A5A5A5",
@@ -1891,20 +1891,20 @@ const Gh = {
1891
1891
  [rt.FOLLOWED_HYPERLINK]: "#954F72"
1892
1892
  }
1893
1893
  };
1894
- class to {
1894
+ class no {
1895
1895
  constructor() {
1896
1896
  p(this, "_themeValue", rt.LIGHT1);
1897
1897
  p(this, "_themeColors");
1898
1898
  p(this, "_themeTint");
1899
1899
  p(this, "_rgbValue", "");
1900
1900
  p(this, "_colorType");
1901
- this._colorType = vt.UNSUPPORTED, this._themeColors = Qi.OFFICE, this._themeTint = 0;
1901
+ this._colorType = vt.UNSUPPORTED, this._themeColors = eo.OFFICE, this._themeTint = 0;
1902
1902
  }
1903
1903
  asRgbColor() {
1904
- return new Ci(this._rgbValue, this);
1904
+ return new Ri(this._rgbValue, this);
1905
1905
  }
1906
1906
  asThemeColor() {
1907
- return new Ri(this._themeValue, this._themeTint, this._themeColors, this);
1907
+ return new Ii(this._themeValue, this._themeTint, this._themeColors, this);
1908
1908
  }
1909
1909
  build() {
1910
1910
  switch (this._colorType) {
@@ -1943,7 +1943,7 @@ class Hn {
1943
1943
  static hexValueToRgbColor(t) {
1944
1944
  t ? t.indexOf("#") > -1 && (t = t.substring(1)) : t = "#000000";
1945
1945
  const n = +`0x${t[0]}${t[1]}`, r = +`0x${t[2]}${t[3]}`, s = +`0x${t[4]}${t[5]}`;
1946
- return new to().setRgbColor(`rgb(${n},${r},${s})`).asRgbColor();
1946
+ return new no().setRgbColor(`rgb(${n},${r},${s})`).asRgbColor();
1947
1947
  }
1948
1948
  static hexToRgbString(t) {
1949
1949
  const n = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
@@ -1986,7 +1986,7 @@ class Kh {
1986
1986
  this._lightness = (o + a) / 2, this._lightness < 0.5 ? this._saturation = l / (a + o) : this._saturation = l / (2 - a - o), n === a && (this._hue = (r - s) / l), r === a && (this._hue = 2 + (s - n) / l), s === a && (this._hue = 4 + (n - r) / l), this._hue *= 60, this._hue < 0 && (this._hue += 360), this._alpha = i;
1987
1987
  }
1988
1988
  asRgbColor() {
1989
- const t = new to();
1989
+ const t = new no();
1990
1990
  if (this._saturation === 0)
1991
1991
  return t.setRgbColor(
1992
1992
  `rgba(${this._lightness * 255},${this._lightness * 255},${this._lightness * 255},${this._alpha * 255})`
@@ -2077,7 +2077,7 @@ const gt = class gt extends Hn {
2077
2077
  p(gt, "RGB_COLOR_AMT", 0), p(gt, "RGBA_EXTRACT", new RegExp(
2078
2078
  "\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*"
2079
2079
  )), p(gt, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
2080
- let Ci = gt;
2080
+ let Ri = gt;
2081
2081
  const Xt = class Xt extends Hn {
2082
2082
  constructor(n, r, s, i) {
2083
2083
  super(i);
@@ -2124,7 +2124,7 @@ const Xt = class Xt extends Hn {
2124
2124
  }
2125
2125
  };
2126
2126
  p(Xt, "_cacheThemeColor", /* @__PURE__ */ new Map());
2127
- let Ri = Xt;
2127
+ let Ii = Xt;
2128
2128
  const C1 = "rgb(", R1 = "rgba(", oa = {
2129
2129
  aliceBlue: [240, 248, 255],
2130
2130
  antiqueWhite: [250, 235, 215],
@@ -2332,10 +2332,10 @@ class Tt {
2332
2332
  }
2333
2333
  toHexString(t) {
2334
2334
  const { r: n, g: r, b: s, a: i = 1 } = this.toRgb(), o = i < 1, a = [
2335
- Ur(Math.round(n).toString(16)),
2336
- Ur(Math.round(r).toString(16)),
2337
- Ur(Math.round(s).toString(16)),
2338
- Ur(Math.round(i * 255).toString(16))
2335
+ kr(Math.round(n).toString(16)),
2336
+ kr(Math.round(r).toString(16)),
2337
+ kr(Math.round(s).toString(16)),
2338
+ kr(Math.round(i * 255).toString(16))
2339
2339
  ];
2340
2340
  return t && a[0][0] === a[0][1] && a[1][0] === a[1][1] && a[2][0] === a[2][1] && a[3][0] === a[3][1] ? o ? `#${a[0][0]}${a[1][0]}${a[2][0]}${a[3][0]}` : `#${a[0][0]}${a[1][0]}${a[2][0]}` : o ? `#${a[0]}${a[1]}${a[2]}${a[3]}` : `#${a[0]}${a[1]}${a[2]}`;
2341
2341
  }
@@ -2358,7 +2358,7 @@ class Tt {
2358
2358
  }
2359
2359
  getLuminance() {
2360
2360
  let { r: t, g: n, b: r } = this.toRgb();
2361
- return t = Vs(t), n = Vs(n), r = Vs(r), Number((0.2126 * t + 0.7152 * n + 0.0722 * r).toFixed(3));
2361
+ return t = Gs(t), n = Gs(n), r = Gs(r), Number((0.2126 * t + 0.7152 * n + 0.0722 * r).toFixed(3));
2362
2362
  }
2363
2363
  getBrightness() {
2364
2364
  const { r: t, g: n, b: r } = this.toRgb();
@@ -2388,7 +2388,7 @@ class Tt {
2388
2388
  };
2389
2389
  }
2390
2390
  }
2391
- const Ur = (e) => e.length === 1 ? `0${e}` : e, Vs = (e) => (e /= 255, e <= 0.03928 ? e / 12.92 : ((e + 0.055) / 1.055) ** 2.4), Bl = (e) => {
2391
+ const kr = (e) => e.length === 1 ? `0${e}` : e, Gs = (e) => (e /= 255, e <= 0.03928 ? e / 12.92 : ((e + 0.055) / 1.055) ** 2.4), Bl = (e) => {
2392
2392
  if (id(e)) {
2393
2393
  if ("r" in e) {
2394
2394
  const r = {
@@ -2485,7 +2485,7 @@ const Ur = (e) => e.length === 1 ? `0${e}` : e, Vs = (e) => (e /= 255, e <= 0.03
2485
2485
  const t = Bl(e);
2486
2486
  if (t != null)
2487
2487
  return "r" in t ? t : "l" in t ? ed(t) : td(t);
2488
- }, Gs = (e, t, n) => (n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), ed = (e) => {
2488
+ }, Ks = (e, t, n) => (n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), ed = (e) => {
2489
2489
  let { h: t, s: n, l: r } = e;
2490
2490
  t /= 360, n /= 100, r /= 100;
2491
2491
  let s = 0, i = 0, o = 0;
@@ -2493,7 +2493,7 @@ const Ur = (e) => e.length === 1 ? `0${e}` : e, Vs = (e) => (e /= 255, e <= 0.03
2493
2493
  s = i = o = r;
2494
2494
  else {
2495
2495
  const l = r < 0.5 ? r * (1 + n) : r + n - r * n, u = 2 * r - l;
2496
- s = Gs(u, l, t + 1 / 3), i = Gs(u, l, t), o = Gs(u, l, t - 1 / 3);
2496
+ s = Ks(u, l, t + 1 / 3), i = Ks(u, l, t), o = Ks(u, l, t - 1 / 3);
2497
2497
  }
2498
2498
  const a = {
2499
2499
  r: Math.round(s * 255),
@@ -3105,7 +3105,7 @@ function jt(e) {
3105
3105
  if (e.rgb)
3106
3106
  return e.rgb;
3107
3107
  if (e.th)
3108
- return new to().setThemeColor(e.th).asThemeColor().asRgbColor().getCssString();
3108
+ return new no().setThemeColor(e.th).asThemeColor().asRgbColor().getCssString();
3109
3109
  }
3110
3110
  return null;
3111
3111
  }
@@ -3177,7 +3177,7 @@ function x1(e, t = !1) {
3177
3177
  "bd",
3178
3178
  () => {
3179
3179
  var o, a, l, u, c, h, d, f, g, _, R, b;
3180
- (o = e.bd) != null && o.b && (n += `border-bottom: ${kr((a = e.bd) == null ? void 0 : a.b.s)} ${(l = jt(e.bd.b.cl)) != null ? l : ""}; `), (u = e.bd) != null && u.t && (n += `border-top: ${kr((c = e.bd) == null ? void 0 : c.t.s)} ${(h = jt(e.bd.t.cl)) != null ? h : ""}; `), (d = e.bd) != null && d.r && (n += `border-right: ${kr((f = e.bd) == null ? void 0 : f.r.s)} ${(g = jt(e.bd.r.cl)) != null ? g : ""}; `), (_ = e.bd) != null && _.l && (n += `border-left: ${kr((R = e.bd) == null ? void 0 : R.l.s)} ${(b = jt(e.bd.l.cl)) != null ? b : ""}; `);
3180
+ (o = e.bd) != null && o.b && (n += `border-bottom: ${Pr((a = e.bd) == null ? void 0 : a.b.s)} ${(l = jt(e.bd.b.cl)) != null ? l : ""}; `), (u = e.bd) != null && u.t && (n += `border-top: ${Pr((c = e.bd) == null ? void 0 : c.t.s)} ${(h = jt(e.bd.t.cl)) != null ? h : ""}; `), (d = e.bd) != null && d.r && (n += `border-right: ${Pr((f = e.bd) == null ? void 0 : f.r.s)} ${(g = jt(e.bd.r.cl)) != null ? g : ""}; `), (_ = e.bd) != null && _.l && (n += `border-left: ${Pr((R = e.bd) == null ? void 0 : R.l.s)} ${(b = jt(e.bd.l.cl)) != null ? b : ""}; `);
3181
3181
  }
3182
3182
  ],
3183
3183
  [
@@ -3195,7 +3195,7 @@ function x1(e, t = !1) {
3195
3195
  [
3196
3196
  "td",
3197
3197
  () => {
3198
- e.td === ds.LEFT_TO_RIGHT ? n += "direction: ltr; " : e.td === ds.RIGHT_TO_LEFT && (n += "direction: rtl; ");
3198
+ e.td === fs.LEFT_TO_RIGHT ? n += "direction: ltr; " : e.td === fs.RIGHT_TO_LEFT && (n += "direction: rtl; ");
3199
3199
  }
3200
3200
  ],
3201
3201
  [
@@ -3236,7 +3236,7 @@ function x1(e, t = !1) {
3236
3236
  t && s.includes(o) || (i = r.get(o)) == null || i();
3237
3237
  return n;
3238
3238
  }
3239
- function kr(e) {
3239
+ function Pr(e) {
3240
3240
  let t = "";
3241
3241
  return e === Le.NONE ? t = "none" : e === Le.THIN ? t = "0.5pt solid" : e === Le.HAIR ? t = "0.5pt double" : e === Le.DOTTED ? t = "0.5pt dotted" : e === Le.DASHED || e === Le.DASH_DOT ? t = "0.5pt dashed" : e === Le.DASH_DOT_DOT ? t = "0.5pt dotted" : e === Le.DOUBLE ? t = "0.5pt double" : e === Le.MEDIUM ? t = "1pt solid" : e === Le.MEDIUM_DASHED || e === Le.MEDIUM_DASH_DOT ? t = "1pt dashed" : e === Le.MEDIUM_DASH_DOT_DOT ? t = "1pt dotted" : e === Le.SLANT_DASH_DOT ? t = "0.5pt dashed" : e === Le.THICK && (t = "1.5pt solid"), t;
3242
3242
  }
@@ -3321,7 +3321,7 @@ function gd(e, t) {
3321
3321
  function $1(e, t) {
3322
3322
  return t.some((n) => e.indexOf(n) > -1);
3323
3323
  }
3324
- var Qr = { exports: {} }, _d = Qr.exports, da;
3324
+ var es = { exports: {} }, _d = es.exports, da;
3325
3325
  function pd() {
3326
3326
  return da || (da = 1, function(e, t) {
3327
3327
  (function(n, r) {
@@ -3597,11 +3597,11 @@ function pd() {
3597
3597
  return $(1e3 * T);
3598
3598
  }, $.en = C[w], $.Ls = C, $.p = {}, $;
3599
3599
  });
3600
- }(Qr)), Qr.exports;
3600
+ }(es)), es.exports;
3601
3601
  }
3602
3602
  var Ed = pd();
3603
3603
  const en = /* @__PURE__ */ Ct(Ed);
3604
- var es = { exports: {} }, Cd = es.exports, fa;
3604
+ var ts = { exports: {} }, Cd = ts.exports, fa;
3605
3605
  function Rd() {
3606
3606
  return fa || (fa = 1, function(e, t) {
3607
3607
  (function(n, r) {
@@ -3649,11 +3649,11 @@ function Rd() {
3649
3649
  };
3650
3650
  };
3651
3651
  });
3652
- }(es)), es.exports;
3652
+ }(ts)), ts.exports;
3653
3653
  }
3654
3654
  var Id = Rd();
3655
3655
  const wd = /* @__PURE__ */ Ct(Id);
3656
- var ts = { exports: {} }, Od = ts.exports, ma;
3656
+ var ns = { exports: {} }, Od = ns.exports, ma;
3657
3657
  function Sd() {
3658
3658
  return ma || (ma = 1, function(e, t) {
3659
3659
  (function(n, r) {
@@ -3774,11 +3774,11 @@ function Sd() {
3774
3774
  };
3775
3775
  };
3776
3776
  });
3777
- }(ts)), ts.exports;
3777
+ }(ns)), ns.exports;
3778
3778
  }
3779
3779
  var vd = Sd();
3780
3780
  const bd = /* @__PURE__ */ Ct(vd);
3781
- var ns = { exports: {} }, Ad = ns.exports, ga;
3781
+ var rs = { exports: {} }, Ad = rs.exports, ga;
3782
3782
  function yd() {
3783
3783
  return ga || (ga = 1, function(e, t) {
3784
3784
  (function(n, r) {
@@ -3854,11 +3854,11 @@ function yd() {
3854
3854
  };
3855
3855
  };
3856
3856
  });
3857
- }(ns)), ns.exports;
3857
+ }(rs)), rs.exports;
3858
3858
  }
3859
3859
  var Nd = yd();
3860
3860
  const Td = /* @__PURE__ */ Ct(Nd);
3861
- var rs = { exports: {} }, Md = rs.exports, _a;
3861
+ var ss = { exports: {} }, Md = ss.exports, _a;
3862
3862
  function Ld() {
3863
3863
  return _a || (_a = 1, function(e, t) {
3864
3864
  (function(n, r) {
@@ -3881,11 +3881,11 @@ function Ld() {
3881
3881
  };
3882
3882
  };
3883
3883
  });
3884
- }(rs)), rs.exports;
3884
+ }(ss)), ss.exports;
3885
3885
  }
3886
3886
  var xd = Ld();
3887
3887
  const Dd = /* @__PURE__ */ Ct(xd);
3888
- var ss = { exports: {} }, Ud = ss.exports, pa;
3888
+ var is = { exports: {} }, Ud = is.exports, pa;
3889
3889
  function kd() {
3890
3890
  return pa || (pa = 1, function(e, t) {
3891
3891
  (function(n, r) {
@@ -3959,11 +3959,11 @@ function kd() {
3959
3959
  };
3960
3960
  };
3961
3961
  });
3962
- }(ss)), ss.exports;
3962
+ }(is)), is.exports;
3963
3963
  }
3964
3964
  var Pd = kd();
3965
3965
  const Fd = /* @__PURE__ */ Ct(Pd);
3966
- var is = { exports: {} }, $d = is.exports, Ea;
3966
+ var os = { exports: {} }, $d = os.exports, Ea;
3967
3967
  function Hd() {
3968
3968
  return Ea || (Ea = 1, function(e, t) {
3969
3969
  (function(n, r) {
@@ -3976,11 +3976,11 @@ function Hd() {
3976
3976
  };
3977
3977
  };
3978
3978
  });
3979
- }(is)), is.exports;
3979
+ }(os)), os.exports;
3980
3980
  }
3981
3981
  var Bd = Hd();
3982
3982
  const jd = /* @__PURE__ */ Ct(Bd);
3983
- var os = { exports: {} }, Wd = os.exports, Ca;
3983
+ var as = { exports: {} }, Wd = as.exports, Ca;
3984
3984
  function Yd() {
3985
3985
  return Ca || (Ca = 1, function(e, t) {
3986
3986
  (function(n, r) {
@@ -4003,11 +4003,11 @@ function Yd() {
4003
4003
  };
4004
4004
  };
4005
4005
  });
4006
- }(os)), os.exports;
4006
+ }(as)), as.exports;
4007
4007
  }
4008
4008
  var zd = Yd();
4009
4009
  const Vd = /* @__PURE__ */ Ct(zd);
4010
- var as = { exports: {} }, Gd = as.exports, Ra;
4010
+ var ls = { exports: {} }, Gd = ls.exports, Ra;
4011
4011
  function Kd() {
4012
4012
  return Ra || (Ra = 1, function(e, t) {
4013
4013
  (function(n, r) {
@@ -4020,7 +4020,7 @@ function Kd() {
4020
4020
  };
4021
4021
  };
4022
4022
  });
4023
- }(as)), as.exports;
4023
+ }(ls)), ls.exports;
4024
4024
  }
4025
4025
  var Xd = Kd();
4026
4026
  const qd = /* @__PURE__ */ Ct(Xd);
@@ -4032,7 +4032,7 @@ en.extend(Vd);
4032
4032
  en.extend(qd);
4033
4033
  en.extend(Fd);
4034
4034
  en.extend(Dd);
4035
- function no(e, t, n, r) {
4035
+ function ro(e, t, n, r) {
4036
4036
  if (e > t)
4037
4037
  throw new Error("a1 should be less than a2");
4038
4038
  if (n > r)
@@ -4140,7 +4140,7 @@ class Ia {
4140
4140
  };
4141
4141
  }
4142
4142
  }
4143
- class fs {
4143
+ class ms {
4144
4144
  constructor(...t) {
4145
4145
  p(this, "_keymap");
4146
4146
  p(this, "size", 0);
@@ -4148,27 +4148,27 @@ class fs {
4148
4148
  p(this, "oldest");
4149
4149
  p(this, "newest");
4150
4150
  p(this, "_onShiftListeners", []);
4151
- if (Pr.hasLength(t, 1)) {
4152
- if (Pr.isNumber(t[0])) {
4151
+ if (Fr.hasLength(t, 1)) {
4152
+ if (Fr.isNumber(t[0])) {
4153
4153
  const n = t[0];
4154
4154
  this._initialize(n, void 0);
4155
4155
  return;
4156
4156
  }
4157
- if (Pr.isIterable(t[0])) {
4157
+ if (Fr.isIterable(t[0])) {
4158
4158
  const n = t[0];
4159
4159
  this._initialize(0, n);
4160
4160
  return;
4161
4161
  }
4162
4162
  return;
4163
4163
  }
4164
- if (Pr.hasLength(t, 2)) {
4164
+ if (Fr.hasLength(t, 2)) {
4165
4165
  const n = t[0], r = t[1];
4166
4166
  this._initialize(n, r);
4167
4167
  }
4168
4168
  }
4169
4169
  onShift(t) {
4170
4170
  if (this._onShiftListeners.indexOf(t) === -1)
4171
- return this._onShiftListeners.push(t), We(() => Os(this._onShiftListeners, t));
4171
+ return this._onShiftListeners.push(t), We(() => Ss(this._onShiftListeners, t));
4172
4172
  throw new Error("[LRUMap]: the listener has been registered!");
4173
4173
  }
4174
4174
  _initialize(t, n) {
@@ -4249,7 +4249,7 @@ class fs {
4249
4249
  return t;
4250
4250
  }
4251
4251
  }
4252
- class Pr {
4252
+ class Fr {
4253
4253
  static hasLength(t, n) {
4254
4254
  return t.length === n;
4255
4255
  }
@@ -4266,7 +4266,7 @@ class Pr {
4266
4266
  return this.getValueType(t) === "[object Number]";
4267
4267
  }
4268
4268
  }
4269
- const or = 2, ar = 2 ** 2, ls = 2 ** 3, lr = 2 ** 4, ur = 2 ** 5, cr = 2 ** 6, Ii = 2 ** 7, wi = 2 ** 8, Oi = 2 ** 9, rf = 0, sf = 2958466, of = -694324, af = 35830291, lf = -1, wa = 1, Dn = 6, ro = "general", so = "hash", Un = "zero", io = "qmark", oo = "slash", Ir = "group", ms = "scale", ao = "comma", lo = "break", As = "text", uo = "plus", co = "minus", gs = "point", ho = "space", fo = "percent", ys = "digit", mo = "calendar", wr = "error", go = "datetime", _o = "duration", po = "condition", Eo = "dbnum", Co = "natnum", Ro = "locale", Io = "color", Wl = "modifier", wo = "ampm", Oo = "escaped", So = "string", vo = "skip", bo = "exp", Ao = "fill", yo = "paren", Ns = "char", uf = [
4269
+ const or = 2, ar = 2 ** 2, us = 2 ** 3, lr = 2 ** 4, ur = 2 ** 5, cr = 2 ** 6, wi = 2 ** 7, Oi = 2 ** 8, Si = 2 ** 9, rf = 0, sf = 2958466, of = -694324, af = 35830291, lf = -1, wa = 1, Dn = 6, so = "general", io = "hash", Un = "zero", oo = "qmark", ao = "slash", Ir = "group", gs = "scale", lo = "comma", uo = "break", ys = "text", co = "plus", ho = "minus", _s = "point", fo = "space", mo = "percent", Ns = "digit", go = "calendar", wr = "error", _o = "datetime", po = "duration", Eo = "condition", Co = "dbnum", Ro = "natnum", Io = "locale", wo = "color", Wl = "modifier", Oo = "ampm", So = "escaped", vo = "string", bo = "skip", Ao = "exp", yo = "fill", No = "paren", Ts = "char", uf = [
4270
4270
  "#000",
4271
4271
  "#FFF",
4272
4272
  "#F00",
@@ -4319,7 +4319,7 @@ const or = 2, ar = 2 ** 2, ls = 2 ** 3, lr = 2 ** 4, ur = 2 ** 5, cr = 2 ** 6, I
4319
4319
  "#3CC",
4320
4320
  "#9C0",
4321
4321
  "#FC0"
4322
- ], Si = [
4322
+ ], vi = [
4323
4323
  "¤",
4324
4324
  "$",
4325
4325
  "£",
@@ -4347,7 +4347,7 @@ const or = 2, ar = 2 ** 2, ls = 2 ** 3, lr = 2 ** 4, ur = 2 ** 5, cr = 2 ** 6, I
4347
4347
  "₽",
4348
4348
  "₾",
4349
4349
  "₿"
4350
- ], vi = new RegExp("[" + Si.join("") + "]"), Ks = Object.freeze({
4350
+ ], bi = new RegExp("[" + vi.join("") + "]"), Xs = Object.freeze({
4351
4351
  1078: "af",
4352
4352
  // Afrikaans
4353
4353
  1052: "sq",
@@ -4745,7 +4745,7 @@ const or = 2, ar = 2 ** 2, ls = 2 ** 3, lr = 2 ** 4, ur = 2 ** 5, cr = 2 ** 6, I
4745
4745
  bool: E("TRUE;FALSE"),
4746
4746
  preferMDY: !1
4747
4747
  };
4748
- function No(e) {
4748
+ function To(e) {
4749
4749
  const t = Yl.exec(e);
4750
4750
  if (!t)
4751
4751
  throw new SyntaxError(`Malformed locale: ${e}`);
@@ -4755,29 +4755,29 @@ function No(e) {
4755
4755
  territory: t[2] || ""
4756
4756
  };
4757
4757
  }
4758
- function To(e) {
4758
+ function Mo(e) {
4759
4759
  if (typeof e == "number")
4760
- return Ks[e & 65535] || null;
4760
+ return Xs[e & 65535] || null;
4761
4761
  const t = parseInt(e, 16);
4762
- return isFinite(t) && Ks[t & 65535] ? Ks[t & 65535] || null : Yl.test(e) ? e : null;
4762
+ return isFinite(t) && Xs[t & 65535] ? Xs[t & 65535] || null : Yl.test(e) ? e : null;
4763
4763
  }
4764
4764
  function Vn(e) {
4765
- const t = To(e);
4765
+ const t = Mo(e);
4766
4766
  let n = null;
4767
4767
  if (t) {
4768
- const r = No(t);
4768
+ const r = To(t);
4769
4769
  n = Nn[r.lang] || Nn[r.language] || null;
4770
4770
  }
4771
4771
  return n;
4772
4772
  }
4773
- function bi(e) {
4773
+ function Ai(e) {
4774
4774
  return Object.assign({}, cf, e);
4775
4775
  }
4776
4776
  function te(e, t) {
4777
- const n = typeof t == "object" ? t : No(t);
4778
- return Nn[n.lang] = bi(e), n.language !== n.lang && !Nn[n.language] && (Nn[n.language] = bi(e)), Nn[n.lang];
4777
+ const n = typeof t == "object" ? t : To(t);
4778
+ return Nn[n.lang] = Ai(e), n.language !== n.lang && !Nn[n.language] && (Nn[n.language] = Ai(e)), Nn[n.lang];
4779
4779
  }
4780
- const Jt = bi({ group: ",", preferMDY: !0 });
4780
+ const Jt = Ai({ group: ",", preferMDY: !0 });
4781
4781
  Jt.isDefault = !0;
4782
4782
  te({
4783
4783
  group: ",",
@@ -4787,7 +4787,7 @@ te({
4787
4787
  dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期"),
4788
4788
  ddd: E("周日;周一;周二;周三;周四;周五;周六")
4789
4789
  }, "zh_CN");
4790
- const Mo = {
4790
+ const Lo = {
4791
4791
  group: ",",
4792
4792
  ampm: E("上午;下午"),
4793
4793
  mmmm: E("1月;2月;3月;4月;5月;6月;7月;8月;9月;10月;11月;12月"),
@@ -4796,16 +4796,16 @@ const Mo = {
4796
4796
  ddd: E("周日;周一;周二;周三;周四;周五;周六")
4797
4797
  };
4798
4798
  te({
4799
- ...Mo,
4799
+ ...Lo,
4800
4800
  nan: "非數值",
4801
4801
  dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期")
4802
4802
  }, "zh_TW");
4803
4803
  te({
4804
- ...Mo,
4804
+ ...Lo,
4805
4805
  dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期")
4806
4806
  }, "zh_HK");
4807
4807
  te({
4808
- ...Mo,
4808
+ ...Lo,
4809
4809
  ampm: E("午前;午後"),
4810
4810
  dddd: E("日~;月~;火~;水~;木~;金~;土~", "曜日"),
4811
4811
  ddd: E("日;月;火;水;木;金;土")
@@ -4865,7 +4865,7 @@ te(xe({
4865
4865
  dddd: E("sunnun~;maanan~;tiis~;keskiviikkona;tors~;perjan~;lauan~", "taina"),
4866
4866
  bool: E("TOSI;EPÄTOSI")
4867
4867
  }, -1, 2), "fi");
4868
- const Lo = xe({
4868
+ const xo = xe({
4869
4869
  group: " ",
4870
4870
  decimal: ",",
4871
4871
  mmmm: E("janvier;février;mars;avril;mai;juin;juillet;août;septembre;octobre;novembre;décembre"),
@@ -4873,9 +4873,9 @@ const Lo = xe({
4873
4873
  dddd: E("~manche;lun~;mar~;mercre~;jeu~;vendre~;same~", "di"),
4874
4874
  bool: E("VRAI;FAUX")
4875
4875
  }, -1, 13);
4876
- te({ ...Lo }, "fr");
4877
- te({ ...Lo, mmm: E("janv.;févr.;mars;avr.;mai;juin;juill.;août;sept.;oct.;nov.;déc.") }, "fr_CA");
4878
- te({ group: "'", decimal: ".", ...Lo }, "fr_CH");
4876
+ te({ ...xo }, "fr");
4877
+ te({ ...xo, mmm: E("janv.;févr.;mars;avr.;mai;juin;juill.;août;sept.;oct.;nov.;déc.") }, "fr_CA");
4878
+ te({ group: "'", decimal: ".", ...xo }, "fr_CH");
4879
4879
  const zl = xe({
4880
4880
  mmmm: E("Januar;Februar;März;April;Mai;Juni;Juli;August;September;Oktober;November;Dezember"),
4881
4881
  mmm: E("Jan.;Feb.;März;Apr.;Mai;Juni;Juli;Aug.;Sept.;Okt.;Nov.;Dez."),
@@ -4972,7 +4972,7 @@ const Pt = {
4972
4972
  dddd: E("domingo;lunes;martes;miércoles;jueves;viernes;sábado"),
4973
4973
  ddd: E("dom;lun;mar;mié;jue;vie;sáb"),
4974
4974
  bool: E("VERDADERO;FALSO")
4975
- }, hf = E("ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"), xo = E("ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.");
4975
+ }, hf = E("ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"), Do = E("ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.");
4976
4976
  te({ ...Pt }, "es");
4977
4977
  te({ ...Pt }, "es_AR");
4978
4978
  te({ ...Pt }, "es_BO");
@@ -4980,9 +4980,9 @@ te({ ...Pt }, "es_CL");
4980
4980
  te({ ...Pt }, "es_CO");
4981
4981
  te({ ...Pt }, "es_EC");
4982
4982
  te({ ...Pt, mmm: hf, ampm: E("a.m.;p.m.") }, "es_MX");
4983
- te({ ...Pt, mmm: xo }, "es_PY");
4984
- te({ ...Pt, mmm: xo }, "es_UY");
4985
- te({ ...Pt, mmm: xo, mmmm: E("enero;febrero;marzo;abril;mayo;junio;julio;agosto;setiembre;octubre;noviembre;diciembre") }, "es_VE");
4983
+ te({ ...Pt, mmm: Do }, "es_PY");
4984
+ te({ ...Pt, mmm: Do }, "es_UY");
4985
+ te({ ...Pt, mmm: Do, mmmm: E("enero;febrero;marzo;abril;mayo;junio;julio;agosto;setiembre;octubre;noviembre;diciembre") }, "es_VE");
4986
4986
  te({
4987
4987
  decimal: ",",
4988
4988
  ampm: E("fm;em"),
@@ -5345,8 +5345,8 @@ function Jl(e, t = 0, n = !0) {
5345
5345
  const r = lt(e);
5346
5346
  return t === Dn ? mf(r) : t === lf ? ff(r) : Zl(r, n);
5347
5347
  }
5348
- const Fr = Math.floor, Xs = 86400;
5349
- function Do(e, t) {
5348
+ const $r = Math.floor, qs = 86400;
5349
+ function Uo(e, t) {
5350
5350
  let n = null;
5351
5351
  if (Array.isArray(e)) {
5352
5352
  const [r, s, i, o, a, l] = e;
@@ -5372,10 +5372,10 @@ function Do(e, t) {
5372
5372
  }
5373
5373
  function gf(e, t) {
5374
5374
  let n = e | 0;
5375
- const r = Xs * (e - n);
5376
- let s = Fr(r);
5377
- r - s > 0.9999 && (s += 1, s === Xs && (s = 0, n += 1));
5378
- const i = s < 0 ? Xs + s : s, [o, a, l] = Jl(e, 0, t && t.leap1900), u = Fr(i / 60 / 60) % 60, c = Fr(i / 60) % 60, h = Fr(i) % 60;
5375
+ const r = qs * (e - n);
5376
+ let s = $r(r);
5377
+ r - s > 0.9999 && (s += 1, s === qs && (s = 0, n += 1));
5378
+ const i = s < 0 ? qs + s : s, [o, a, l] = Jl(e, 0, t && t.leap1900), u = $r(i / 60 / 60) % 60, c = $r(i / 60) % 60, h = $r(i) % 60;
5379
5379
  return [o, a, l, u, c, h];
5380
5380
  }
5381
5381
  const _f = [
@@ -5478,23 +5478,23 @@ function Oa(e, t) {
5478
5478
  _f.forEach((e) => {
5479
5479
  e[0] !== "?" && Oa(e, Ql), e[0] !== "!" && Oa(e, eu);
5480
5480
  });
5481
- const Cf = (/* @__PURE__ */ new Date()).getUTCFullYear(), Sa = ".", Rf = ",", qs = " ", _r = " ", pr = " ", us = "'", cs = "٬", If = {
5482
- ".": [Rf, _r, pr, us, cs],
5483
- ",": [Sa, _r, pr, us, cs],
5484
- "٫": [Sa, _r, pr, us, cs]
5485
- }, Zs = (e) => e && e.length === 1 && e >= "0" && e <= "9";
5481
+ const Cf = (/* @__PURE__ */ new Date()).getUTCFullYear(), Sa = ".", Rf = ",", Zs = " ", _r = " ", pr = " ", cs = "'", hs = "٬", If = {
5482
+ ".": [Rf, _r, pr, cs, hs],
5483
+ ",": [Sa, _r, pr, cs, hs],
5484
+ "٫": [Sa, _r, pr, cs, hs]
5485
+ }, Js = (e) => e && e.length === 1 && e >= "0" && e <= "9";
5486
5486
  function tu(e, t = {}) {
5487
- const n = Vn(t.locale || "") || Jt, r = n.decimal, s = [...If[r] || [us, cs]];
5488
- !s.includes(n.group) && n.group !== qs && n.group !== r && s.push(n.group);
5487
+ const n = Vn(t.locale || "") || Jt, r = n.decimal, s = [...If[r] || [cs, hs]];
5488
+ !s.includes(n.group) && n.group !== Zs && n.group !== r && s.push(n.group);
5489
5489
  let i = "", o = "", a = 1, l = "", u = !1, c = !1, h = !1, d = !1, f = !1, g = null, _ = !1, R = 0;
5490
- const b = [qs, _r, pr, "+", "%", "(", "-"].concat(Si);
5490
+ const b = [Zs, _r, pr, "+", "%", "(", "-"].concat(vi);
5491
5491
  for (; b.includes(e[R]); ) {
5492
5492
  const v = e[R];
5493
5493
  if (v === "-") {
5494
5494
  if (u || c)
5495
5495
  return null;
5496
5496
  u = !0, a = -1;
5497
- } else if (vi.test(v)) {
5497
+ } else if (bi.test(v)) {
5498
5498
  if (f)
5499
5499
  return null;
5500
5500
  f = !0, g = v;
@@ -5510,7 +5510,7 @@ function tu(e, t = {}) {
5510
5510
  R++;
5511
5511
  }
5512
5512
  let H = !1, P;
5513
- if (e[R] === r || Zs(e[R]))
5513
+ if (e[R] === r || Js(e[R]))
5514
5514
  for (; R < e.length; ) {
5515
5515
  const v = e[R];
5516
5516
  if (!P && s.includes(v))
@@ -5519,7 +5519,7 @@ function tu(e, t = {}) {
5519
5519
  if (H)
5520
5520
  break;
5521
5521
  i += ".", H = !0;
5522
- } else if (Zs(v))
5522
+ } else if (Js(v))
5523
5523
  i += v;
5524
5524
  else
5525
5525
  break;
@@ -5528,15 +5528,15 @@ function tu(e, t = {}) {
5528
5528
  if (e[R] === "e" || e[R] === "E") {
5529
5529
  o += e[R], R++, (e[R] === "+" || e[R] === "-") && (o += e[R], R++);
5530
5530
  const v = R;
5531
- for (; Zs(e[R]); )
5531
+ for (; Js(e[R]); )
5532
5532
  o += e[R], R++;
5533
5533
  if (v === R)
5534
5534
  return null;
5535
5535
  }
5536
- const W = [qs, _r, pr, "%", "$", ")"].concat(Si);
5536
+ const W = [Zs, _r, pr, "%", "$", ")"].concat(vi);
5537
5537
  for (; W.includes(e[R]); ) {
5538
5538
  const v = e[R];
5539
- if (vi.test(v)) {
5539
+ if (bi.test(v)) {
5540
5540
  if (f)
5541
5541
  return null;
5542
5542
  f = !0, g = v, _ = !0;
@@ -5639,7 +5639,7 @@ const va = (e, t, n = !1) => {
5639
5639
  const u = /^\d\d\d\d\b/.exec(e);
5640
5640
  u && (a = Mt(e.slice(u[0].length), t[l], { ...n, year: +u[0], path: s + l }, r));
5641
5641
  } else if (l === "x") {
5642
- const u = Uo(e, { locale: r.locale });
5642
+ const u = ko(e, { locale: r.locale });
5643
5643
  u && (a = Mt("", t[l], { ...n, time: u.v, tf: u.z, path: s + l }, r));
5644
5644
  } else
5645
5645
  throw new Error(`Unknown date token "${l}"`);
@@ -5647,16 +5647,16 @@ const va = (e, t, n = !1) => {
5647
5647
  return a;
5648
5648
  }
5649
5649
  }
5650
- }, nu = (e) => e.replace(/\s+/g, " ").trim().replace(/’/, "'").replace(/\.$/, "").toLowerCase(), $r = (e, t) => {
5650
+ }, nu = (e) => e.replace(/\s+/g, " ").trim().replace(/’/, "'").replace(/\.$/, "").toLowerCase(), Hr = (e, t) => {
5651
5651
  const n = e.map((r, s) => [nu(r), s + 1, t]);
5652
5652
  return n.sort((r, s) => s[0].length - r[0].length), n;
5653
5653
  };
5654
5654
  function ru(e, t = {}) {
5655
5655
  var i;
5656
5656
  const n = Vn(t.locale || "") || Jt, r = {
5657
- mon: $r(n.mmmm, "F").concat($r(n.mmm, "M")),
5657
+ mon: Hr(n.mmmm, "F").concat(Hr(n.mmm, "M")),
5658
5658
  mp: n.mmm[0].at(-1) === ".",
5659
- day: $r(n.dddd, "l").concat($r(n.ddd, "D")),
5659
+ day: Hr(n.dddd, "l").concat(Hr(n.ddd, "D")),
5660
5660
  dp: n.ddd[0].at(-1) === ".",
5661
5661
  locale: t.locale
5662
5662
  }, s = Mt(
@@ -5686,15 +5686,15 @@ function ru(e, t = {}) {
5686
5686
  }
5687
5687
  return null;
5688
5688
  }
5689
- const Js = (e) => e.replace(/\s+/g, "").trim().replace(/\./g, "").toLowerCase();
5690
- function Uo(e, t = {}) {
5689
+ const Qs = (e) => e.replace(/\s+/g, "").trim().replace(/\./g, "").toLowerCase();
5690
+ function ko(e, t = {}) {
5691
5691
  const n = Vn(t.locale || "") || Jt, r = /^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?=\s*[^\s\d]|$)/.exec(e);
5692
5692
  let s = "";
5693
5693
  if (r) {
5694
- const i = Js(e.slice(r[0].length));
5695
- if (i === Js(n.ampm[0]) || i === "a" || i === "am")
5694
+ const i = Qs(e.slice(r[0].length));
5695
+ if (i === Qs(n.ampm[0]) || i === "a" || i === "am")
5696
5696
  s = "a";
5697
- else if (i === Js(n.ampm[1]) || i === "p" || i === "pm")
5697
+ else if (i === Qs(n.ampm[1]) || i === "p" || i === "pm")
5698
5698
  s = "p";
5699
5699
  else if (i)
5700
5700
  return null;
@@ -5726,7 +5726,7 @@ function su(e, t = {}) {
5726
5726
  }
5727
5727
  function Of(e, t) {
5728
5728
  var n, r, s;
5729
- return (s = (r = (n = tu(e, t)) != null ? n : ru(e, t)) != null ? r : Uo(e, t)) != null ? s : su(e, t);
5729
+ return (s = (r = (n = tu(e, t)) != null ? n : ru(e, t)) != null ? r : ko(e, t)) != null ? s : su(e, t);
5730
5730
  }
5731
5731
  function an(e, t, n) {
5732
5732
  return t[n + "_max"] = e.length, t[n + "_min"] = e.replace(/#/g, "").length, t;
@@ -5736,7 +5736,7 @@ function je(e, t) {
5736
5736
  }
5737
5737
  function ba(e, t) {
5738
5738
  const n = e && e.type;
5739
- return n === so || n === Un || n === io || n === ys && t === "den";
5739
+ return n === io || n === Un || n === oo || n === Ns && t === "den";
5740
5740
  }
5741
5741
  function hr(e) {
5742
5742
  var P, W, w;
@@ -5762,56 +5762,56 @@ function hr(e) {
5762
5762
  let o, a = !1, l = -1, u = !1, c = "", h = !1;
5763
5763
  for (; ++l < e.length && !u; ) {
5764
5764
  const C = e[l], v = C.type || wr;
5765
- if (c += C.raw, v === ro)
5765
+ if (c += C.raw, v === so)
5766
5766
  n.general = !0, je(C, t);
5767
5767
  else if (ba(C, r)) {
5768
5768
  const y = n[r + "_pattern"];
5769
5769
  ba(o, r) || (o == null ? void 0 : o.type) === Ir ? (y.push((y.pop() || "") + C.value), s.num += C.value) : (y.push(C.value), s = { type: r, num: C.value }, je(s, t));
5770
- } else if (v === yo)
5770
+ } else if (v === No)
5771
5771
  C.value === "(" && (n.parens = !0), je(C.value, t);
5772
- else if (v === ys)
5772
+ else if (v === Ns)
5773
5773
  je(C.value, t);
5774
- else if (v === oo)
5774
+ else if (v === ao)
5775
5775
  if (h = !0, n[r + "_pattern"].length) {
5776
5776
  if (!s)
5777
5777
  throw new SyntaxError("Format pattern is missing a numerator");
5778
5778
  n.fractions = !0, n.num_pattern.push(n[r + "_pattern"].pop()), s.type = "num", r = "den", je({ type: "div" }, t);
5779
5779
  } else
5780
5780
  je(C.value, t);
5781
- else if (v === ao)
5781
+ else if (v === lo)
5782
5782
  je(",", t);
5783
- else if (v === ms)
5783
+ else if (v === gs)
5784
5784
  n.scale = 1e-3 ** C.raw.length;
5785
5785
  else if (v === Ir) {
5786
5786
  if (r === "int" && (n.grouping = !0), r === "den")
5787
5787
  throw new SyntaxError("Cannot group denominator digits");
5788
- } else if (v === ho)
5788
+ } else if (v === fo)
5789
5789
  je(C, t);
5790
- else if (v === lo) {
5790
+ else if (v === uo) {
5791
5791
  u = !0;
5792
5792
  break;
5793
- } else if (v === As)
5793
+ } else if (v === ys)
5794
5794
  n.text = !0, je(C, t);
5795
- else if (v === uo || v === co)
5795
+ else if (v === co || v === ho)
5796
5796
  je(C, t);
5797
- else if (v === _o) {
5797
+ else if (v === po) {
5798
5798
  const y = C.value.toLowerCase(), F = y[0], $ = { type: "", size: 0, date: 1, pad: y.length };
5799
5799
  F === "h" ? ($.size = lr, $.type = "hour-elap") : F === "m" ? ($.size = ur, $.type = "min-elap") : ($.size = cr, $.type = "sec-elap"), n.date = n.date | $.size, i.push($), je($, t);
5800
- } else if (n.date && v === gs && ((P = e[l + 1]) == null ? void 0 : P.type) === Un) {
5800
+ } else if (n.date && v === _s && ((P = e[l + 1]) == null ? void 0 : P.type) === Un) {
5801
5801
  let y = 1;
5802
5802
  l++;
5803
5803
  let F = "0";
5804
5804
  ((W = e[l + 1]) == null ? void 0 : W.type) === Un && (F += "0", y = 2, l++), ((w = e[l + 1]) == null ? void 0 : w.type) === Un && (F += "0", y = 3, l++), c += F;
5805
- const $ = [cr, Ii, wi, Oi][y];
5805
+ const $ = [cr, wi, Oi, Si][y];
5806
5806
  n.date = n.date | $, n.date_eval = !0, n.sec_decimals = Math.max(n.sec_decimals, y), je({
5807
5807
  type: "subsec",
5808
5808
  size: $,
5809
5809
  decimals: y,
5810
5810
  date: 1
5811
5811
  }, t);
5812
- } else if (v === mo)
5812
+ } else if (v === go)
5813
5813
  a || (C.value === "B2" || C.value === "b2" ? n.date_system = Dn : n.date_system = wa);
5814
- else if (v === go) {
5814
+ else if (v === _o) {
5815
5815
  const y = { type: "", size: 0, date: 1 }, F = C.value.toLowerCase(), $ = F[0];
5816
5816
  if (F === "y" || F === "yy")
5817
5817
  y.size = or, y.type = "year-short";
@@ -5822,11 +5822,11 @@ function hr(e) {
5822
5822
  else if ($ === "b")
5823
5823
  y.size = or, y.type = "b-year";
5824
5824
  else if (F === "d" || F === "dd")
5825
- y.size = ls, y.type = "day", y.pad = /dd/.test(F);
5825
+ y.size = us, y.type = "day", y.pad = /dd/.test(F);
5826
5826
  else if (F === "ddd" || F === "aaa")
5827
- y.size = ls, y.type = "weekday-short";
5827
+ y.size = us, y.type = "weekday-short";
5828
5828
  else if ($ === "d" || $ === "a")
5829
- y.size = ls, y.type = "weekday";
5829
+ y.size = us, y.type = "weekday";
5830
5830
  else if ($ === "h")
5831
5831
  y.size = lr, y.type = "hour", y.pad = /hh/i.test(F);
5832
5832
  else if ($ === "m") {
@@ -5839,38 +5839,38 @@ function hr(e) {
5839
5839
  m && m.size & ur ? y.used = !0 : m && m.indeterminate && (delete m.indeterminate, m.size = ur, m.type = "min", y.used = !0);
5840
5840
  }
5841
5841
  n.date = n.date | y.size, n.date_eval = !0, i.push(y), je(y, t);
5842
- } else if (v === wo)
5842
+ } else if (v === Oo)
5843
5843
  n.clock = 12, n.date = n.date | lr, n.date_eval = !0, C.short = C.value === "A/P", je(C, t);
5844
- else if (v === So || v === Oo || v === Ns)
5844
+ else if (v === vo || v === So || v === Ts)
5845
5845
  je(C.value, t);
5846
- else if (v === po)
5846
+ else if (v === Eo)
5847
5847
  n.condition = [
5848
5848
  C.value[0],
5849
5849
  // operator
5850
5850
  parseFloat(C.value[1])
5851
5851
  // operand
5852
5852
  ];
5853
- else if (v === Ro) {
5853
+ else if (v === Io) {
5854
5854
  const y = C.value.split("-"), F = y.length < 2 ? "" : y.slice(1).join("-"), $ = y[0];
5855
5855
  $ && je($, t);
5856
- const m = To(F);
5856
+ const m = Mo(F);
5857
5857
  m && (n.locale = m);
5858
5858
  const D = parseInt(F, 16);
5859
5859
  isFinite(D) && D & 16711680 && (D >> 16 & 255) === 6 && (n.date_system = Dn), a = !0;
5860
- } else if (v === Io) {
5860
+ } else if (v === wo) {
5861
5861
  let y, F = C.value.toLowerCase();
5862
5862
  (y = /^color\s*(\d+)$/i.exec(F)) && (F = parseInt(y[1], 10)), n.color = F;
5863
- } else if (v === fo)
5863
+ } else if (v === mo)
5864
5864
  n.scale = 100, n.percent = !0, je("%", t);
5865
- else if (v === gs)
5865
+ else if (v === _s)
5866
5866
  je(C, t), n.date || (n.dec_fractions = !0, r = "frac");
5867
- else if (v === bo)
5867
+ else if (v === Ao)
5868
5868
  n.exponential = !0, n.exp_plus = C.value.includes("+"), r = "man", je({ type: "exp", plus: n.exp_plus }, t);
5869
- else if (v === vo)
5869
+ else if (v === bo)
5870
5870
  je(C, t);
5871
- else if (v === Ao)
5871
+ else if (v === yo)
5872
5872
  je(C, t);
5873
- else if (!(v === Eo || v === Co)) throw v === wr ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${v} in ${c}`);
5873
+ else if (!(v === Co || v === Ro)) throw v === wr ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${v} in ${c}`);
5874
5874
  o = C;
5875
5875
  }
5876
5876
  if (n.tokensUsed = l, n.pattern = c, /^((?:\[[^\]]+\])+)(;|$)/.test(n.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n.pattern) && je({ type: "text" }, t), n.fractions && n.dec_fractions || n.grouping && !n.int_pattern.length || n.fractions && n.exponential || n.fractions && n.den_pattern.length * n.num_pattern.length === 0 || h && !n.fractions && !n.date || n.exponential && (n.int_pattern.length || n.frac_pattern.length) * n.man_pattern.length === 0)
@@ -6031,8 +6031,8 @@ function Na(e, t, n, r) {
6031
6031
  h = Math.trunc(e);
6032
6032
  const N = qn * (e - h);
6033
6033
  if (d = Math.floor(N), W = N - d, Math.abs(W) < 1e-6 ? W = 0 : W > 0.9999 && (W = 0, d += 1, d === qn && (d = 0, h += 1)), W) {
6034
- const M = t.date & Oi || t.date & wi || t.date & Ii;
6035
- (M === Oi && W > 0.9995 || M === wi && W > 0.995 || M === Ii && W > 0.95 || !M && W >= 0.5) && (d++, W = 0);
6034
+ const M = t.date & Si || t.date & Oi || t.date & wi;
6035
+ (M === Si && W > 0.9995 || M === Oi && W > 0.995 || M === wi && W > 0.95 || !M && W >= 0.5) && (d++, W = 0);
6036
6036
  }
6037
6037
  if (h || t.date_system) {
6038
6038
  const M = Jl(e, t.date_system, n.leap1900);
@@ -6180,7 +6180,7 @@ function Na(e, t, n, r) {
6180
6180
  return m.join("");
6181
6181
  }
6182
6182
  const yf = hr([
6183
- { type: As, value: "@", raw: "@" }
6183
+ { type: ys, value: "@", raw: "@" }
6184
6184
  ]);
6185
6185
  function au(e, t) {
6186
6186
  for (let n = 0; n < 3; n++) {
@@ -6262,7 +6262,7 @@ function xf(e, t = null) {
6262
6262
  color: 0,
6263
6263
  parentheses: 0,
6264
6264
  grouped: n.grouping ? 1 : 0
6265
- }, o = !i.isDate && !i.isText && !n.error && n.tokens.some((d) => d.type === "string" && (t ? d.value === t : vi.test(d.value)));
6265
+ }, o = !i.isDate && !i.isText && !n.error && n.tokens.some((d) => d.type === "string" && (t ? d.value === t : bi.test(d.value)));
6266
6266
  let a = "G", l = s >= 0 ? Math.min(15, s) : "", u = "", c = "";
6267
6267
  if (r && r.color && (c = "-", i.color = 1), n.parens && (u = "()", i.parentheses = 1), o)
6268
6268
  a = "C", i.type = "currency";
@@ -6284,7 +6284,7 @@ function Df(e) {
6284
6284
  return {
6285
6285
  year: !!(t.date & or),
6286
6286
  month: !!(t.date & ar),
6287
- day: !!(t.date & ls),
6287
+ day: !!(t.date & us),
6288
6288
  hours: !!(t.date & lr),
6289
6289
  minutes: !!(t.date & ur),
6290
6290
  seconds: !!(t.date & cr),
@@ -6292,47 +6292,47 @@ function Df(e) {
6292
6292
  };
6293
6293
  }
6294
6294
  const Uf = [
6295
- [ro, /^General/i, 0],
6296
- [so, /^#/, 0],
6295
+ [so, /^General/i, 0],
6296
+ [io, /^#/, 0],
6297
6297
  [Un, /^0/, 0],
6298
- [io, /^\?/, 0],
6299
- [oo, /^\//, 0],
6298
+ [oo, /^\?/, 0],
6299
+ [ao, /^\//, 0],
6300
6300
  // Commas are dealt with as a special case in the tokenizer but will end up
6301
6301
  // as one of these:
6302
6302
  // [ TOKEN_GROUP, /^(,),*/, 1 ],
6303
6303
  // [ TOKEN_SCALE, /^(,),*/, 1 ],
6304
6304
  // [ TOKEN_COMMA, /^(,),*/, 1 ],
6305
- [lo, /^;/, 0],
6306
- [As, /^@/, 0],
6307
- [uo, /^\+/, 0],
6308
- [co, /^-/, 0],
6309
- [gs, /^\./, 0],
6310
- [ho, /^ /, 0],
6311
- [fo, /^%/, 0],
6312
- [ys, /^[1-9]/, 0],
6313
- [mo, /^(?:B[12])/i, 0],
6305
+ [uo, /^;/, 0],
6306
+ [ys, /^@/, 0],
6307
+ [co, /^\+/, 0],
6308
+ [ho, /^-/, 0],
6309
+ [_s, /^\./, 0],
6310
+ [fo, /^ /, 0],
6311
+ [mo, /^%/, 0],
6312
+ [Ns, /^[1-9]/, 0],
6313
+ [go, /^(?:B[12])/i, 0],
6314
6314
  [wr, /^B$/, 0],
6315
6315
  // pattern must not end in a "B"
6316
- [go, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
6317
- [_o, /^(?:\[(h+|m+|s+)\])/i, 1],
6318
- [po, /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/, [1, 2]],
6319
- [Eo, /^\[(DBNum[0-4]?\d)\]/i, 1],
6320
- [Co, /^\[(NatNum[0-4]?\d)\]/i, 1],
6321
- [Ro, /^\[\$([^\]]+)\]/, 1],
6322
- [Io, /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*\d+)\]/i, 1],
6316
+ [_o, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
6317
+ [po, /^(?:\[(h+|m+|s+)\])/i, 1],
6318
+ [Eo, /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/, [1, 2]],
6319
+ [Co, /^\[(DBNum[0-4]?\d)\]/i, 1],
6320
+ [Ro, /^\[(NatNum[0-4]?\d)\]/i, 1],
6321
+ [Io, /^\[\$([^\]]+)\]/, 1],
6322
+ [wo, /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*\d+)\]/i, 1],
6323
6323
  // conditionally allow these open ended directions?
6324
6324
  [Wl, /^\[([^\]]+)\]/, 1],
6325
- [wo, /^(?:AM\/PM|am\/pm|A\/P)/, 0],
6326
- [Oo, /^\\(.)/, 1],
6327
- [So, /^"([^"]*?)"/, 1],
6328
- [vo, /^_(\\.|.)/, 1],
6325
+ [Oo, /^(?:AM\/PM|am\/pm|A\/P)/, 0],
6326
+ [So, /^\\(.)/, 1],
6327
+ [vo, /^"([^"]*?)"/, 1],
6328
+ [bo, /^_(\\.|.)/, 1],
6329
6329
  // Google Sheets and Excel diverge on "e": Excel only accepts E.
6330
- [bo, /^[Ee]([+-])/, 1],
6331
- [Ao, /^\*(\\.|.)/, 1],
6332
- [yo, /^[()]/, 0],
6330
+ [Ao, /^[Ee]([+-])/, 1],
6331
+ [yo, /^\*(\\.|.)/, 1],
6332
+ [No, /^[()]/, 0],
6333
6333
  [wr, /^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/, 0],
6334
- [Ns, /^./, 0]
6335
- ], kf = 63, Pf = 35, Ff = 48, $f = 57, Qs = (e) => {
6334
+ [Ts, /^./, 0]
6335
+ ], kf = 63, Pf = 35, Ff = 48, $f = 57, ei = (e) => {
6336
6336
  const t = (e || "\0").charCodeAt(0);
6337
6337
  return t === kf || t === Pf || t >= Ff && t <= $f;
6338
6338
  };
@@ -6348,17 +6348,17 @@ function Tn(e) {
6348
6348
  i = a.length;
6349
6349
  const l = e[t - 1] || "";
6350
6350
  let u = !1, c = !1;
6351
- Qs(l) ? (u = !0, c = !0) : l === "." && (c = !0);
6351
+ ei(l) ? (u = !0, c = !0) : l === "." && (c = !0);
6352
6352
  const h = o[2] || "";
6353
- if (u && (!h || h === ";") && (u = !1), c && Qs(h) && (c = !1), u && !c)
6353
+ if (u && (!h || h === ";") && (u = !1), c && ei(h) && (c = !1), u && !c)
6354
6354
  n.push({ type: Ir, value: ",", raw: a });
6355
6355
  else if (!u && c)
6356
- n.push({ type: ms, value: ",", raw: a });
6356
+ n.push({ type: gs, value: ",", raw: a });
6357
6357
  else if (u && c) {
6358
- const d = { type: ms, value: ",", raw: a };
6358
+ const d = { type: gs, value: ",", raw: a };
6359
6359
  n.push(d), r.push(d);
6360
6360
  } else
6361
- n.push({ type: ao, value: ",", raw: a });
6361
+ n.push({ type: lo, value: ",", raw: a });
6362
6362
  } else {
6363
6363
  let a;
6364
6364
  for (const [l, u, c] of Uf) {
@@ -6369,17 +6369,17 @@ function Tn(e) {
6369
6369
  break;
6370
6370
  }
6371
6371
  }
6372
- r.length && a.raw === ";" && (r.length = 0), r.length && Qs(a.raw) && (r.forEach((l) => l.type = Ir), r.length = 0);
6372
+ r.length && a.raw === ";" && (r.length = 0), r.length && ei(a.raw) && (r.forEach((l) => l.type = Ir), r.length = 0);
6373
6373
  }
6374
6374
  if (!i) {
6375
6375
  const a = s[0];
6376
- i = 1, n.push({ type: Ns, value: a, raw: a });
6376
+ i = 1, n.push({ type: Ts, value: a, raw: a });
6377
6377
  }
6378
6378
  t += i;
6379
6379
  }
6380
6380
  return n;
6381
6381
  }
6382
- const ei = (e) => {
6382
+ const ti = (e) => {
6383
6383
  const t = e.condition;
6384
6384
  t && t[1] < 0 && (t[0] === "<" || t[0] === "<=" || t[0] === "=") || e.tokens.unshift({
6385
6385
  type: "minus",
@@ -6403,7 +6403,7 @@ function Hf(e) {
6403
6403
  throw new Error("Unexpected partition");
6404
6404
  s = o;
6405
6405
  }
6406
- o.locale && (r = To(o.locale)), t.push(o), i = ((h = u[o.tokensUsed]) == null ? void 0 : h.type) === "break" ? 1 : 0, u = u.slice(o.tokensUsed + i), a++;
6406
+ o.locale && (r = Mo(o.locale)), t.push(o), i = ((h = u[o.tokensUsed]) == null ? void 0 : h.type) === "break" ? 1 : 0, u = u.slice(o.tokensUsed + i), a++;
6407
6407
  } while (i && a < 4 && l < 3);
6408
6408
  if (i)
6409
6409
  throw new Error("Unexpected partition");
@@ -6416,8 +6416,8 @@ function Hf(e) {
6416
6416
  const d = t.length;
6417
6417
  if (d === 1 && (t[1] = hr(Tn("General")), t[1].generated = !0), d < 3) {
6418
6418
  const f = t[0], g = t[1];
6419
- if (ei(f), g.condition)
6420
- ei(g);
6419
+ if (ti(f), g.condition)
6420
+ ti(g);
6421
6421
  else {
6422
6422
  const _ = f.condition;
6423
6423
  (_[0] === "=" || _[1] >= 0 && (_[0] === ">" || _[0] === ">=")) && g.tokens.unshift({
@@ -6426,7 +6426,7 @@ function Hf(e) {
6426
6426
  });
6427
6427
  }
6428
6428
  } else
6429
- t.forEach(ei);
6429
+ t.forEach(ti);
6430
6430
  } else {
6431
6431
  if (t.length < 4 && s)
6432
6432
  for (let d = 0, f = t.length; d < f; d++)
@@ -6475,12 +6475,12 @@ function tn(e, t = !1) {
6475
6475
  }
6476
6476
  function Bf(e, t, n = {}) {
6477
6477
  var o;
6478
- const r = Object.assign({}, Xl, n), s = tn(e, r.throws), i = (o = Do(t, r)) != null ? o : t;
6478
+ const r = Object.assign({}, Xl, n), s = tn(e, r.throws), i = (o = Uo(t, r)) != null ? o : t;
6479
6479
  return Tf(i, s, r);
6480
6480
  }
6481
6481
  function jf(e, t, n) {
6482
6482
  var o;
6483
- const r = Object.assign({}, Xl, n), s = tn(e, r.throws), i = (o = Do(t, r)) != null ? o : t;
6483
+ const r = Object.assign({}, Xl, n), s = tn(e, r.throws), i = (o = Uo(t, r)) != null ? o : t;
6484
6484
  return Nf(i, s, r);
6485
6485
  }
6486
6486
  function Wf(e) {
@@ -6511,45 +6511,45 @@ function Kf(e) {
6511
6511
  return t.dateInfo || (t.dateInfo = Df(t.partitions)), t.dateInfo;
6512
6512
  }
6513
6513
  const An = Object.freeze({
6514
- AMPM: wo,
6515
- BREAK: lo,
6516
- CALENDAR: mo,
6517
- CHAR: Ns,
6518
- COLOR: Io,
6519
- COMMA: ao,
6520
- CONDITION: po,
6521
- DATETIME: go,
6522
- DBNUM: Eo,
6523
- DIGIT: ys,
6524
- DURATION: _o,
6514
+ AMPM: Oo,
6515
+ BREAK: uo,
6516
+ CALENDAR: go,
6517
+ CHAR: Ts,
6518
+ COLOR: wo,
6519
+ COMMA: lo,
6520
+ CONDITION: Eo,
6521
+ DATETIME: _o,
6522
+ DBNUM: Co,
6523
+ DIGIT: Ns,
6524
+ DURATION: po,
6525
6525
  ERROR: wr,
6526
- ESCAPED: Oo,
6527
- EXP: bo,
6528
- FILL: Ao,
6529
- GENERAL: ro,
6526
+ ESCAPED: So,
6527
+ EXP: Ao,
6528
+ FILL: yo,
6529
+ GENERAL: so,
6530
6530
  GROUP: Ir,
6531
- HASH: so,
6532
- LOCALE: Ro,
6533
- MINUS: co,
6531
+ HASH: io,
6532
+ LOCALE: Io,
6533
+ MINUS: ho,
6534
6534
  MODIFIER: Wl,
6535
- NATNUM: Co,
6536
- PAREN: yo,
6537
- PERCENT: fo,
6538
- PLUS: uo,
6539
- POINT: gs,
6540
- QMARK: io,
6541
- SCALE: ms,
6542
- SKIP: vo,
6543
- SLASH: oo,
6544
- SPACE: ho,
6545
- STRING: So,
6546
- TEXT: As,
6535
+ NATNUM: Ro,
6536
+ PAREN: No,
6537
+ PERCENT: mo,
6538
+ PLUS: co,
6539
+ POINT: _s,
6540
+ QMARK: oo,
6541
+ SCALE: gs,
6542
+ SKIP: bo,
6543
+ SLASH: ao,
6544
+ SPACE: fo,
6545
+ STRING: vo,
6546
+ TEXT: ys,
6547
6547
  ZERO: Un
6548
6548
  }), Y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6549
6549
  __proto__: null,
6550
6550
  addLocale: te,
6551
6551
  dateFromSerial: gf,
6552
- dateToSerial: Do,
6552
+ dateToSerial: Uo,
6553
6553
  dec2frac: ql,
6554
6554
  format: Bf,
6555
6555
  formatColor: jf,
@@ -6562,9 +6562,9 @@ const An = Object.freeze({
6562
6562
  isValidFormat: Vf,
6563
6563
  parseBool: su,
6564
6564
  parseDate: ru,
6565
- parseLocale: No,
6565
+ parseLocale: To,
6566
6566
  parseNumber: tu,
6567
- parseTime: Uo,
6567
+ parseTime: ko,
6568
6568
  parseValue: Of,
6569
6569
  round: pt,
6570
6570
  tokenTypes: An,
@@ -6593,7 +6593,7 @@ const An = Object.freeze({
6593
6593
  }, r = n(e), s = n(t);
6594
6594
  return r === s;
6595
6595
  };
6596
- var Xf = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Xf || {}), qf = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(qf || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ts = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ts || {}), _n = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(_n || {}), kn = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(kn || {}), Zf = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Zf || {}), hu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(hu || {}), Jf = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(Jf || {}), Qf = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(Qf || {}), em = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(em || {}), tm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(tm || {}), nm = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))(nm || {}), rm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(rm || {}), sm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(sm || {}), qe = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(qe || {}), im = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(im || {}), om = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(om || {}), am = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(am || {}), lm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(lm || {}), um = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(um || {}), cm = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(cm || {}), hm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(hm || {}), dm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(dm || {}), fm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(fm || {}), dr = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(dr || {}), mm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(mm || {}), gm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(gm || {}), _m = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(_m || {}), pm = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(pm || {}), Em = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(Em || {}), Cm = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(Cm || {}), Rm = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(Rm || {}), mt = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(mt || {});
6596
+ var Xf = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Xf || {}), qf = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(qf || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ms = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ms || {}), _n = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(_n || {}), kn = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(kn || {}), Zf = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Zf || {}), hu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(hu || {}), Jf = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(Jf || {}), Qf = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(Qf || {}), em = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(em || {}), tm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(tm || {}), nm = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))(nm || {}), rm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(rm || {}), sm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(sm || {}), qe = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(qe || {}), im = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(im || {}), om = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(om || {}), am = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(am || {}), lm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(lm || {}), um = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(um || {}), cm = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(cm || {}), hm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(hm || {}), dm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(dm || {}), fm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(fm || {}), dr = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(dr || {}), mm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(mm || {}), gm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(gm || {}), _m = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(_m || {}), pm = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(pm || {}), Em = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(Em || {}), Cm = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(Cm || {}), Rm = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(Rm || {}), mt = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(mt || {});
6597
6597
  const V1 = [
6598
6598
  "A3",
6599
6599
  "A4",
@@ -6683,7 +6683,7 @@ const G1 = {
6683
6683
  /**
6684
6684
  * textDirection
6685
6685
  */
6686
- td: ds.UNSPECIFIED,
6686
+ td: fs.UNSPECIFIED,
6687
6687
  /**
6688
6688
  * color
6689
6689
  */
@@ -6866,7 +6866,7 @@ const nR = {
6866
6866
  height: 1632
6867
6867
  }
6868
6868
  };
6869
- function Hr(e, t) {
6869
+ function Br(e, t) {
6870
6870
  const { textRuns: n = [] } = t;
6871
6871
  let r = 0;
6872
6872
  for (const i of n) {
@@ -7098,7 +7098,7 @@ const Cr = class Cr {
7098
7098
  getUnderline() {
7099
7099
  var n, r;
7100
7100
  const { p: t } = (n = this.getValue()) != null ? n : {};
7101
- return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Hr("ul", t.body) === ie.TRUE ? {
7101
+ return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Br("ul", t.body) === ie.TRUE ? {
7102
7102
  s: ie.TRUE
7103
7103
  } : {
7104
7104
  s: ie.FALSE
@@ -7122,7 +7122,7 @@ const Cr = class Cr {
7122
7122
  getStrikeThrough() {
7123
7123
  var n, r;
7124
7124
  const { p: t } = (n = this.getValue()) != null ? n : {};
7125
- return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Hr("st", t.body) === ie.TRUE ? {
7125
+ return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Br("st", t.body) === ie.TRUE ? {
7126
7126
  s: ie.TRUE
7127
7127
  } : {
7128
7128
  s: ie.FALSE
@@ -7169,7 +7169,7 @@ const Cr = class Cr {
7169
7169
  getFontStyle() {
7170
7170
  var n, r;
7171
7171
  const { p: t } = (n = this.getValue()) != null ? n : {};
7172
- return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Hr("it", t.body) === ie.TRUE ? pi.ITALIC : pi.NORMAL : this._getFontStyles()[0][0];
7172
+ return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Br("it", t.body) === ie.TRUE ? Ei.ITALIC : Ei.NORMAL : this._getFontStyles()[0][0];
7173
7173
  }
7174
7174
  /**
7175
7175
  * Returns the font styles of the cells in the range.
@@ -7186,7 +7186,7 @@ const Cr = class Cr {
7186
7186
  getFontWeight() {
7187
7187
  var n, r;
7188
7188
  const { p: t } = (n = this.getValue()) != null ? n : {};
7189
- return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Hr("bl", t.body) === ie.TRUE ? Ei.BOLD : Ei.NORMAL : this._getFontWeights()[0][0];
7189
+ return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? Br("bl", t.body) === ie.TRUE ? Ci.BOLD : Ci.NORMAL : this._getFontWeights()[0][0];
7190
7190
  }
7191
7191
  /**
7192
7192
  * Returns the font weights of the cells in the range.
@@ -7418,7 +7418,7 @@ function Zn(e, t, n) {
7418
7418
  function Am(e, t) {
7419
7419
  return e < t ? -1 : e > t ? 1 : 0;
7420
7420
  }
7421
- class Ai {
7421
+ class yi {
7422
7422
  constructor(t = 9) {
7423
7423
  this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
7424
7424
  }
@@ -7428,12 +7428,12 @@ class Ai {
7428
7428
  search(t) {
7429
7429
  let n = this.data;
7430
7430
  const r = [];
7431
- if (!jr(t, n)) return r;
7431
+ if (!Wr(t, n)) return r;
7432
7432
  const s = this.toBBox, i = [];
7433
7433
  for (; n; ) {
7434
7434
  for (let o = 0; o < n.children.length; o++) {
7435
7435
  const a = n.children[o], l = n.leaf ? s(a) : a;
7436
- jr(t, l) && (n.leaf ? r.push(a) : ni(t, l) ? this._all(a, r) : i.push(a));
7436
+ Wr(t, l) && (n.leaf ? r.push(a) : ri(t, l) ? this._all(a, r) : i.push(a));
7437
7437
  }
7438
7438
  n = i.pop();
7439
7439
  }
@@ -7441,13 +7441,13 @@ class Ai {
7441
7441
  }
7442
7442
  collides(t) {
7443
7443
  let n = this.data;
7444
- if (!jr(t, n)) return !1;
7444
+ if (!Wr(t, n)) return !1;
7445
7445
  const r = [];
7446
7446
  for (; n; ) {
7447
7447
  for (let s = 0; s < n.children.length; s++) {
7448
7448
  const i = n.children[s], o = n.leaf ? this.toBBox(i) : i;
7449
- if (jr(t, o)) {
7450
- if (n.leaf || ni(t, o)) return !0;
7449
+ if (Wr(t, o)) {
7450
+ if (n.leaf || ri(t, o)) return !0;
7451
7451
  r.push(i);
7452
7452
  }
7453
7453
  }
@@ -7493,7 +7493,7 @@ class Ai {
7493
7493
  if (c !== -1)
7494
7494
  return r.children.splice(c, 1), i.push(r), this._condense(i), this;
7495
7495
  }
7496
- !u && !r.leaf && ni(r, s) ? (i.push(r), o.push(a), a = 0, l = r, r = r.children[0]) : l ? (a++, r = l.children[a], u = !1) : r = null;
7496
+ !u && !r.leaf && ri(r, s) ? (i.push(r), o.push(a), a = 0, l = r, r = r.children[0]) : l ? (a++, r = l.children[a], u = !1) : r = null;
7497
7497
  }
7498
7498
  return this;
7499
7499
  }
@@ -7540,7 +7540,7 @@ class Ai {
7540
7540
  for (; s.push(n), !(n.leaf || s.length - 1 === r); ) {
7541
7541
  let i = 1 / 0, o = 1 / 0, a;
7542
7542
  for (let l = 0; l < n.children.length; l++) {
7543
- const u = n.children[l], c = ti(u), h = Mm(t, u) - c;
7543
+ const u = n.children[l], c = ni(u), h = Mm(t, u) - c;
7544
7544
  h < o ? (o = h, i = c < i ? c : i, a = u) : h === o && c < i && (i = c, a = u);
7545
7545
  }
7546
7546
  n = a || n.children[0];
@@ -7566,7 +7566,7 @@ class Ai {
7566
7566
  _chooseSplitIndex(t, n, r) {
7567
7567
  let s, i = 1 / 0, o = 1 / 0;
7568
7568
  for (let a = n; a <= r - n; a++) {
7569
- const l = fr(t, 0, a, this.toBBox), u = fr(t, a, r, this.toBBox), c = Lm(l, u), h = ti(l) + ti(u);
7569
+ const l = fr(t, 0, a, this.toBBox), u = fr(t, a, r, this.toBBox), c = Lm(l, u), h = ni(l) + ni(u);
7570
7570
  c < i ? (i = c, s = a, o = h < o ? h : o) : c === i && h < o && (o = h, s = a);
7571
7571
  }
7572
7572
  return s || r - n;
@@ -7580,14 +7580,14 @@ class Ai {
7580
7580
  _allDistMargin(t, n, r, s) {
7581
7581
  t.children.sort(s);
7582
7582
  const i = this.toBBox, o = fr(t, 0, n, i), a = fr(t, r - n, r, i);
7583
- let l = Br(o) + Br(a);
7583
+ let l = jr(o) + jr(a);
7584
7584
  for (let u = n; u < r - n; u++) {
7585
7585
  const c = t.children[u];
7586
- mr(o, t.leaf ? i(c) : c), l += Br(o);
7586
+ mr(o, t.leaf ? i(c) : c), l += jr(o);
7587
7587
  }
7588
7588
  for (let u = r - n - 1; u >= n; u--) {
7589
7589
  const c = t.children[u];
7590
- mr(a, t.leaf ? i(c) : c), l += Br(a);
7590
+ mr(a, t.leaf ? i(c) : c), l += jr(a);
7591
7591
  }
7592
7592
  return l;
7593
7593
  }
@@ -7626,10 +7626,10 @@ function Nm(e, t) {
7626
7626
  function Tm(e, t) {
7627
7627
  return e.minY - t.minY;
7628
7628
  }
7629
- function ti(e) {
7629
+ function ni(e) {
7630
7630
  return (e.maxX - e.minX) * (e.maxY - e.minY);
7631
7631
  }
7632
- function Br(e) {
7632
+ function jr(e) {
7633
7633
  return e.maxX - e.minX + (e.maxY - e.minY);
7634
7634
  }
7635
7635
  function Mm(e, t) {
@@ -7639,10 +7639,10 @@ function Lm(e, t) {
7639
7639
  const n = Math.max(e.minX, t.minX), r = Math.max(e.minY, t.minY), s = Math.min(e.maxX, t.maxX), i = Math.min(e.maxY, t.maxY);
7640
7640
  return Math.max(0, s - n) * Math.max(0, i - r);
7641
7641
  }
7642
- function ni(e, t) {
7642
+ function ri(e, t) {
7643
7643
  return e.minX <= t.minX && e.minY <= t.minY && t.maxX <= e.maxX && t.maxY <= e.maxY;
7644
7644
  }
7645
- function jr(e, t) {
7645
+ function Wr(e, t) {
7646
7646
  return t.minX <= e.maxX && t.minY <= e.maxY && t.maxX >= e.minX && t.maxY >= e.minY;
7647
7647
  }
7648
7648
  function yn(e) {
@@ -7904,7 +7904,7 @@ const Wt = class Wt {
7904
7904
  * ```
7905
7905
  */
7906
7906
  static doAnyRangesIntersect(t, n) {
7907
- const r = new Ai();
7907
+ const r = new yi();
7908
7908
  return r.load(t.map((s) => ({ minX: s.startColumn, minY: s.startRow, maxX: s.endColumn, maxY: s.endRow }))), n.some((s) => r.search({ minX: s.startColumn, minY: s.startRow, maxX: s.endColumn, maxY: s.endRow }).length > 0);
7909
7909
  }
7910
7910
  /**
@@ -8433,12 +8433,12 @@ function oR(e) {
8433
8433
  i = r(t[o]), s += i * 26 ** (n - o - 1);
8434
8434
  return s === 0 ? Number.NaN : s - 1;
8435
8435
  }
8436
- const _s = 65, gu = 90, jm = 97;
8436
+ const ps = 65, gu = 90, jm = 97;
8437
8437
  function aR(e) {
8438
- const t = gu - _s + 1;
8438
+ const t = gu - ps + 1;
8439
8439
  let n = "";
8440
8440
  for (; e >= 0; )
8441
- n = String.fromCharCode(e % t + _s) + n, e = Math.floor(e / t) - 1;
8441
+ n = String.fromCharCode(e % t + ps) + n, e = Math.floor(e / t) - 1;
8442
8442
  return n;
8443
8443
  }
8444
8444
  function Wm(e, t) {
@@ -8448,9 +8448,9 @@ function Wm(e, t) {
8448
8448
  return n;
8449
8449
  }
8450
8450
  function lR(e, t = !1) {
8451
- const n = gu - _s + 1;
8451
+ const n = gu - ps + 1;
8452
8452
  let r = jm;
8453
- t && (r = _s);
8453
+ t && (r = ps);
8454
8454
  const s = String.fromCharCode(e % n + r), i = Math.floor(e / n) + 1;
8455
8455
  return Wm(s, i);
8456
8456
  }
@@ -8460,13 +8460,13 @@ function uR(e, t) {
8460
8460
  function cR(e, t) {
8461
8461
  return e.zIndex > t.zIndex ? -1 : e.zIndex === t.zIndex ? 0 : 1;
8462
8462
  }
8463
- function Ms(e = "index", t = 1) {
8463
+ function Ls(e = "index", t = 1) {
8464
8464
  return (n, r) => n[e] > r[e] ? t : n[e] === r[e] ? 0 : -t;
8465
8465
  }
8466
- var Se = /* @__PURE__ */ ((e) => (e[e.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", e[e.UNIVER_DOC = 1] = "UNIVER_DOC", e[e.UNIVER_SHEET = 2] = "UNIVER_SHEET", e[e.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", e[e.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Se || {}), Lt = /* @__PURE__ */ ((e) => (e[e.Reader = 0] = "Reader", e[e.Editor = 1] = "Editor", e[e.Owner = 2] = "Owner", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Lt || {}), yi = /* @__PURE__ */ ((e) => (e[e.SomeCollaborator = 0] = "SomeCollaborator", e[e.AllCollaborator = 1] = "AllCollaborator", e[e.OneSelf = 2] = "OneSelf", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(yi || {});
8467
- class ko extends Ve {
8466
+ var Se = /* @__PURE__ */ ((e) => (e[e.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", e[e.UNIVER_DOC = 1] = "UNIVER_DOC", e[e.UNIVER_SHEET = 2] = "UNIVER_SHEET", e[e.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", e[e.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Se || {}), Lt = /* @__PURE__ */ ((e) => (e[e.Reader = 0] = "Reader", e[e.Editor = 1] = "Editor", e[e.Owner = 2] = "Owner", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Lt || {}), Ni = /* @__PURE__ */ ((e) => (e[e.SomeCollaborator = 0] = "SomeCollaborator", e[e.AllCollaborator = 1] = "AllCollaborator", e[e.OneSelf = 2] = "OneSelf", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Ni || {});
8467
+ class Po extends Ve {
8468
8468
  }
8469
- function Ym(e = G.generateRandomId(6), t = bs.EN_US, n = "") {
8469
+ function Ym(e = G.generateRandomId(6), t = As.EN_US, n = "") {
8470
8470
  return {
8471
8471
  id: e,
8472
8472
  locale: t,
@@ -8534,10 +8534,10 @@ function Ym(e = G.generateRandomId(6), t = bs.EN_US, n = "") {
8534
8534
  settings: {}
8535
8535
  };
8536
8536
  }
8537
- var un = {}, Jn = {}, Wr = {}, Pa;
8537
+ var un = {}, Jn = {}, Yr = {}, Pa;
8538
8538
  function zm() {
8539
- if (Pa) return Wr;
8540
- Pa = 1, Object.defineProperty(Wr, "__esModule", { value: !0 });
8539
+ if (Pa) return Yr;
8540
+ Pa = 1, Object.defineProperty(Yr, "__esModule", { value: !0 });
8541
8541
  function e(r, s) {
8542
8542
  if (Array.isArray(s))
8543
8543
  return !1;
@@ -8560,12 +8560,12 @@ function zm() {
8560
8560
  function n(r, s) {
8561
8561
  return r === s ? !0 : r === null || s === null || typeof r != "object" || typeof s != "object" ? !1 : Array.isArray(r) ? t(r, s) : e(r, s);
8562
8562
  }
8563
- return Wr.default = n, Wr;
8563
+ return Yr.default = n, Yr;
8564
8564
  }
8565
- var Yr = {}, Fa;
8565
+ var zr = {}, Fa;
8566
8566
  function Vm() {
8567
- if (Fa) return Yr;
8568
- Fa = 1, Object.defineProperty(Yr, "__esModule", { value: !0 });
8567
+ if (Fa) return zr;
8568
+ Fa = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
8569
8569
  function e(t) {
8570
8570
  if (t === null)
8571
8571
  return null;
@@ -8579,9 +8579,9 @@ function Vm() {
8579
8579
  } else
8580
8580
  return t;
8581
8581
  }
8582
- return Yr.default = e, Yr;
8582
+ return zr.default = e, zr;
8583
8583
  }
8584
- var ri = {}, $a;
8584
+ var si = {}, $a;
8585
8585
  function _u() {
8586
8586
  return $a || ($a = 1, function(e) {
8587
8587
  Object.defineProperty(e, "__esModule", { value: !0 }), e.eachChildOf = e.advancer = e.readCursor = e.writeCursor = e.WriteCursor = e.ReadCursor = e.isValidPathItem = void 0;
@@ -8808,18 +8808,18 @@ function _u() {
8808
8808
  g && c.ascend(), R && h.ascend();
8809
8809
  }
8810
8810
  e.eachChildOf = u;
8811
- }(ri)), ri;
8811
+ }(si)), si;
8812
8812
  }
8813
- var si = {}, Ha;
8813
+ var ii = {}, Ha;
8814
8814
  function pu() {
8815
8815
  return Ha || (Ha = 1, function(e) {
8816
8816
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ConflictType = void 0, function(t) {
8817
8817
  t[t.RM_UNEXPECTED_CONTENT = 1] = "RM_UNEXPECTED_CONTENT", t[t.DROP_COLLISION = 2] = "DROP_COLLISION", t[t.BLACKHOLE = 3] = "BLACKHOLE";
8818
8818
  }(e.ConflictType || (e.ConflictType = {}));
8819
- }(si)), si;
8819
+ }(ii)), ii;
8820
8820
  }
8821
8821
  var St = {}, cn = {}, Ba;
8822
- function Po() {
8822
+ function Fo() {
8823
8823
  return Ba || (Ba = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.uniToStrPos = cn.strPosToUni = void 0, cn.strPosToUni = (e, t = e.length) => {
8824
8824
  let n = 0, r = 0;
8825
8825
  for (; r < t; r++) {
@@ -8838,11 +8838,11 @@ function Po() {
8838
8838
  return n;
8839
8839
  }), cn;
8840
8840
  }
8841
- var ii = {}, ja;
8842
- function Ni() {
8841
+ var oi = {}, ja;
8842
+ function Ti() {
8843
8843
  return ja || (ja = 1, function(e) {
8844
8844
  Object.defineProperty(e, "__esModule", { value: !0 }), e.uniSlice = e.dlen = e.eachOp = void 0;
8845
- const t = Po(), n = (w) => {
8845
+ const t = Fo(), n = (w) => {
8846
8846
  if (!Array.isArray(w))
8847
8847
  throw Error("Op must be an array of components");
8848
8848
  let C = null;
@@ -9114,13 +9114,13 @@ function Ni() {
9114
9114
  };
9115
9115
  }
9116
9116
  e.default = W;
9117
- }(ii)), ii;
9117
+ }(oi)), oi;
9118
9118
  }
9119
- var zr = {}, Wa;
9119
+ var Vr = {}, Wa;
9120
9120
  function Gm() {
9121
- if (Wa) return zr;
9122
- Wa = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
9123
- const e = Ni(), t = Po();
9121
+ if (Wa) return Vr;
9122
+ Wa = 1, Object.defineProperty(Vr, "__esModule", { value: !0 });
9123
+ const e = Ti(), t = Fo();
9124
9124
  function n(r, s) {
9125
9125
  return {
9126
9126
  // Returns the text content of the document
@@ -9158,7 +9158,7 @@ function Gm() {
9158
9158
  onRemove: null
9159
9159
  };
9160
9160
  }
9161
- return zr.default = n, n.provides = { text: !0 }, zr;
9161
+ return Vr.default = n, n.provides = { text: !0 }, Vr;
9162
9162
  }
9163
9163
  var Ya;
9164
9164
  function Km() {
@@ -9182,7 +9182,7 @@ function Km() {
9182
9182
  return d && d.__esModule ? d : { default: d };
9183
9183
  };
9184
9184
  Object.defineProperty(e, "__esModule", { value: !0 }), e.type = e.remove = e.insert = void 0;
9185
- const i = Po(), o = r(Ni()), a = s(Gm()), l = {
9185
+ const i = Fo(), o = r(Ti()), a = s(Gm()), l = {
9186
9186
  create(d) {
9187
9187
  return d;
9188
9188
  },
@@ -9214,7 +9214,7 @@ function Km() {
9214
9214
  slice: o.uniSlice
9215
9215
  }, u = o.default(l), c = Object.assign(Object.assign({}, u), { api: a.default });
9216
9216
  e.type = c, e.insert = (d, f) => f.length === 0 ? [] : d === 0 ? [f] : [d, f], e.remove = (d, f) => o.dlen(f) === 0 ? [] : d === 0 ? [{ d: f }] : [d, { d: f }];
9217
- var h = Ni();
9217
+ var h = Ti();
9218
9218
  Object.defineProperty(e, "makeType", { enumerable: !0, get: function() {
9219
9219
  return h.default;
9220
9220
  } });
@@ -9815,15 +9815,15 @@ function Xm() {
9815
9815
  }
9816
9816
  const wt = He - se;
9817
9817
  let Bt = Rn(wt);
9818
- const Hs = wt - ze;
9818
+ const Bs = wt - ze;
9819
9819
  let Tr = null;
9820
9820
  {
9821
9821
  let Vt, Ot;
9822
9822
  for (; yt && typeof (Vt = re.getKey()) == "number"; ) {
9823
9823
  Ot = Vt - tt;
9824
9824
  const In = re.getComponent(), on = h(In);
9825
- if (Ot > Hs) break;
9826
- if (Ot === Hs) {
9825
+ if (Ot > Bs) break;
9826
+ if (Ot === Bs) {
9827
9827
  if (!on) {
9828
9828
  Tr = re;
9829
9829
  break;
@@ -9844,8 +9844,8 @@ function Xm() {
9844
9844
  yt = re.nextSibling();
9845
9845
  }
9846
9846
  }
9847
- const Zo = Hs + tt + Ht + sn;
9848
- o(Zo >= 0, "trying to descend to a negative index"), he.descend(Zo), Ke && (De = Bt = Tr = null, Ce++), ve(De, Ee, Bt, Tr, he, Oe) && sn++, he.ascend();
9847
+ const Jo = Bs + tt + Ht + sn;
9848
+ o(Jo >= 0, "trying to descend to a negative index"), he.descend(Jo), Ke && (De = Bt = Tr = null, Ce++), ve(De, Ee, Bt, Tr, he, Oe) && sn++, he.ascend();
9849
9849
  } else {
9850
9850
  let De;
9851
9851
  for (; It && (De = ae.getKey(), typeof De != "string" || !(De > fe || De === fe)); ) It = ae.nextSibling();
@@ -10015,7 +10015,7 @@ const Zm = /* @__PURE__ */ Ct(st), hR = /* @__PURE__ */ Tc({
10015
10015
  default: Zm
10016
10016
  }, [st]);
10017
10017
  var J = /* @__PURE__ */ ((e) => (e.RETAIN = "r", e.INSERT = "i", e.DELETE = "d", e))(J || {});
10018
- function Ls(e, t = !1) {
10018
+ function xs(e, t = !1) {
10019
10019
  const n = [];
10020
10020
  for (const r of e) {
10021
10021
  const { st: s, ed: i, ts: o } = r;
@@ -10065,7 +10065,7 @@ function Eu(e, t, n, r) {
10065
10065
  } else
10066
10066
  h.st += n, h.ed += n, a || (a = !0, i.push(...l)), i.push(h);
10067
10067
  }
10068
- a || (a = !0, i.push(...l)), e.textRuns = Ls(i);
10068
+ a || (a = !0, i.push(...l)), e.textRuns = xs(i);
10069
10069
  }
10070
10070
  function Cu(e, t, n, r) {
10071
10071
  const { paragraphs: s } = e;
@@ -10084,7 +10084,7 @@ function Cu(e, t, n, r) {
10084
10084
  const h = c.startIndex;
10085
10085
  a = o.indexOf(h);
10086
10086
  }
10087
- a !== -1 && s.splice(a, 1), s.push(...i), s.sort(Ms("startIndex"));
10087
+ a !== -1 && s.splice(a, 1), s.push(...i), s.sort(Ls("startIndex"));
10088
10088
  }
10089
10089
  }
10090
10090
  function Ru(e, t, n, r) {
@@ -10101,7 +10101,7 @@ function Ru(e, t, n, r) {
10101
10101
  const l = i[o];
10102
10102
  l.startIndex += r;
10103
10103
  }
10104
- s.push(...i), s.sort(Ms("startIndex"));
10104
+ s.push(...i), s.sort(Ls("startIndex"));
10105
10105
  }
10106
10106
  }
10107
10107
  function Iu(e, t, n, r) {
@@ -10116,7 +10116,7 @@ function Iu(e, t, n, r) {
10116
10116
  const l = i[o];
10117
10117
  l.startIndex += r;
10118
10118
  }
10119
- s.push(...i), s.sort(Ms("startIndex"));
10119
+ s.push(...i), s.sort(Ls("startIndex"));
10120
10120
  }
10121
10121
  s.length && !e.customBlocks && (e.customBlocks = s);
10122
10122
  }
@@ -10134,11 +10134,11 @@ function wu(e, t, n, r) {
10134
10134
  const l = i[o];
10135
10135
  l.startIndex += r, l.endIndex += r;
10136
10136
  }
10137
- s.push(...i), s.sort(Ms("startIndex"));
10137
+ s.push(...i), s.sort(Ls("startIndex"));
10138
10138
  }
10139
10139
  }
10140
10140
  const Ou = "$", Ga = (e) => e.split(Ou)[0];
10141
- function Fo(e) {
10141
+ function $o(e) {
10142
10142
  if (e.length <= 1) return e;
10143
10143
  e.sort((s, i) => s.startIndex - i.startIndex);
10144
10144
  const t = [];
@@ -10156,7 +10156,7 @@ function Fo(e) {
10156
10156
  }
10157
10157
  return t;
10158
10158
  }
10159
- function Ti(e, t) {
10159
+ function Mi(e, t) {
10160
10160
  const n = e.findIndex((s) => s.startIndex < t && s.endIndex >= t), r = e[n];
10161
10161
  r && e.splice(n, 1, {
10162
10162
  rangeId: r.rangeId,
@@ -10183,7 +10183,7 @@ function Su(e) {
10183
10183
  }
10184
10184
  return t.push(n), t;
10185
10185
  }
10186
- function Mi(e, t) {
10186
+ function Li(e, t) {
10187
10187
  e.filter((r) => r.startIndex < t && r.endIndex >= t).forEach((r) => {
10188
10188
  const s = e.indexOf(r);
10189
10189
  e.splice(s, 1, {
@@ -10202,7 +10202,7 @@ function Mi(e, t) {
10202
10202
  function Jm(e, t, n, r) {
10203
10203
  e.customRanges || (e.customRanges = []);
10204
10204
  const { customRanges: s } = e;
10205
- Ti(s, r);
10205
+ Mi(s, r);
10206
10206
  for (let o = 0, a = s.length; o < a; o++) {
10207
10207
  const l = s[o], { startIndex: u } = l;
10208
10208
  u >= r && (l.startIndex += n, l.endIndex += n);
@@ -10215,12 +10215,12 @@ function Jm(e, t, n, r) {
10215
10215
  }
10216
10216
  s.push(...i);
10217
10217
  }
10218
- e.customRanges = Fo(s);
10218
+ e.customRanges = $o(s);
10219
10219
  }
10220
10220
  function Qm(e, t, n, r) {
10221
10221
  e.customDecorations || (e.customDecorations = []);
10222
10222
  const { customDecorations: s } = e;
10223
- Mi(s, r);
10223
+ Li(s, r);
10224
10224
  for (let o = 0, a = s.length; o < a; o++) {
10225
10225
  const l = s[o], { startIndex: u } = l;
10226
10226
  u >= r && (l.startIndex += n, l.endIndex += n);
@@ -10342,7 +10342,7 @@ function Nu(e, t, n) {
10342
10342
  });
10343
10343
  continue;
10344
10344
  } else if (h <= s && d >= i) {
10345
- const f = no(h, d, s, i);
10345
+ const f = ro(h, d, s, i);
10346
10346
  if (f.length === 0 || (c.startIndex = f[0], c.endIndex = f[1], c.startIndex === c.endIndex))
10347
10347
  continue;
10348
10348
  } else i < h && (c.startIndex -= t, c.endIndex -= t);
@@ -10362,14 +10362,14 @@ function eg(e, t, n) {
10362
10362
  o.push(c);
10363
10363
  continue;
10364
10364
  } else if (Math.max(s, h) <= Math.min(i, d)) {
10365
- const f = no(h, d, s, i);
10365
+ const f = ro(h, d, s, i);
10366
10366
  if (f.length === 0)
10367
10367
  continue;
10368
10368
  c.startIndex = f[0], c.endIndex = f[1];
10369
10369
  } else i < h && (c.startIndex -= t, c.endIndex -= t);
10370
10370
  a.push(c);
10371
10371
  }
10372
- e.customRanges = Fo(a);
10372
+ e.customRanges = $o(a);
10373
10373
  }
10374
10374
  return o;
10375
10375
  }
@@ -10383,7 +10383,7 @@ function tg(e, t, n, r = !0) {
10383
10383
  a.push(h);
10384
10384
  continue;
10385
10385
  } else if (Math.max(i, d) <= Math.min(o, f)) {
10386
- const g = no(d, f, i, o);
10386
+ const g = ro(d, f, i, o);
10387
10387
  if (g.length === 0)
10388
10388
  continue;
10389
10389
  h.startIndex = g[0], h.endIndex = g[1];
@@ -10395,7 +10395,7 @@ function tg(e, t, n, r = !0) {
10395
10395
  return a;
10396
10396
  }
10397
10397
  var ng = /* @__PURE__ */ ((e) => (e.ORDER_LIST_QUICK_1 = "1.", e.ORDER_LIST_QUICK_2 = "a)", e.ORDER_LIST_QUICK_3 = "a.", e.ORDER_LIST_QUICK_4 = "i.", e.ORDER_LIST_QUICK_5 = "A.", e.ORDER_LIST_QUICK_6 = "I.", e.ORDER_LIST_QUICK_7 = "01.", e.BULLET_LIST = "*", e))(ng || {}), Yt = /* @__PURE__ */ ((e) => (e.BULLET_LIST = "BULLET_LIST", e.BULLET_LIST_1 = "BULLET_LIST_1", e.BULLET_LIST_2 = "BULLET_LIST_2", e.BULLET_LIST_3 = "BULLET_LIST_3", e.BULLET_LIST_4 = "BULLET_LIST_4", e.BULLET_LIST_5 = "BULLET_LIST_5", e.ORDER_LIST = "ORDER_LIST", e.ORDER_LIST_1 = "ORDER_LIST_1", e.ORDER_LIST_2 = "ORDER_LIST_2", e.ORDER_LIST_3 = "ORDER_LIST_3", e.ORDER_LIST_4 = "ORDER_LIST_4", e.ORDER_LIST_5 = "ORDER_LIST_5", e.ORDER_LIST_QUICK_2 = "ORDER_LIST_QUICK_2", e.ORDER_LIST_QUICK_3 = "ORDER_LIST_QUICK_3", e.ORDER_LIST_QUICK_4 = "ORDER_LIST_QUICK_4", e.ORDER_LIST_QUICK_5 = "ORDER_LIST_QUICK_5", e.ORDER_LIST_QUICK_6 = "ORDER_LIST_QUICK_6", e.CHECK_LIST = "CHECK_LIST", e.CHECK_LIST_CHECKED = "CHECK_LIST_CHECKED", e))(Yt || {});
10398
- const Vr = {
10398
+ const Gr = {
10399
10399
  "a)": { glyphFormat: "%1)", glyphType: me.DECIMAL },
10400
10400
  "1.": { glyphType: me.DECIMAL },
10401
10401
  "a.": { glyphFormat: "%1.", glyphType: me.LOWER_LETTER },
@@ -10409,7 +10409,7 @@ const Vr = {
10409
10409
  ].map((t, n) => ({
10410
10410
  glyphFormat: ` %${n + 1}`,
10411
10411
  glyphSymbol: t,
10412
- bulletAlignment: Ts.START,
10412
+ bulletAlignment: Ms.START,
10413
10413
  textStyle: {
10414
10414
  fs: 12
10415
10415
  },
@@ -10420,7 +10420,7 @@ const Vr = {
10420
10420
  }
10421
10421
  })), vn = (e) => e.map((t, n) => ({
10422
10422
  ...t,
10423
- bulletAlignment: Ts.START,
10423
+ bulletAlignment: Ms.START,
10424
10424
  textStyle: {
10425
10425
  fs: 12
10426
10426
  },
@@ -10432,7 +10432,7 @@ const Vr = {
10432
10432
  })), Ka = (e, t) => new Array(9).fill(0).map((n, r) => ({
10433
10433
  glyphFormat: ` %${r + 1}`,
10434
10434
  glyphSymbol: e,
10435
- bulletAlignment: Ts.START,
10435
+ bulletAlignment: Ms.START,
10436
10436
  textStyle: {
10437
10437
  fs: 16
10438
10438
  },
@@ -10442,7 +10442,7 @@ const Vr = {
10442
10442
  indentStart: { v: 21 * r },
10443
10443
  textStyle: t
10444
10444
  }
10445
- })), xs = {
10445
+ })), Ds = {
10446
10446
  BULLET_LIST: {
10447
10447
  listType: "BULLET_LIST",
10448
10448
  nestingLevel: Sn(["●", "○", "■"])
@@ -10564,28 +10564,28 @@ const Vr = {
10564
10564
  }
10565
10565
  )
10566
10566
  }
10567
- }, Gr = (e) => {
10568
- const { glyphFormat: t, glyphType: n } = e, r = G.deepClone(xs.ORDER_LIST);
10567
+ }, Kr = (e) => {
10568
+ const { glyphFormat: t, glyphType: n } = e, r = G.deepClone(Ds.ORDER_LIST);
10569
10569
  return r.nestingLevel[0].glyphFormat = t, r.nestingLevel[0].glyphType = n, r;
10570
10570
  }, rg = {
10571
- ORDER_LIST_QUICK_2: Gr(Vr[
10571
+ ORDER_LIST_QUICK_2: Kr(Gr[
10572
10572
  "a)"
10573
10573
  /* ORDER_LIST_QUICK_2 */
10574
10574
  ]),
10575
- ORDER_LIST_QUICK_3: Gr(Vr[
10575
+ ORDER_LIST_QUICK_3: Kr(Gr[
10576
10576
  "a."
10577
10577
  /* ORDER_LIST_QUICK_3 */
10578
10578
  ]),
10579
- ORDER_LIST_QUICK_4: Gr(Vr[
10579
+ ORDER_LIST_QUICK_4: Kr(Gr[
10580
10580
  "i."
10581
10581
  /* ORDER_LIST_QUICK_4 */
10582
10582
  ]),
10583
- ORDER_LIST_QUICK_6: Gr(Vr[
10583
+ ORDER_LIST_QUICK_6: Kr(Gr[
10584
10584
  "I."
10585
10585
  /* ORDER_LIST_QUICK_6 */
10586
10586
  ])
10587
10587
  };
10588
- Object.assign(xs, rg);
10588
+ Object.assign(Ds, rg);
10589
10589
  const dR = {
10590
10590
  "1.": "ORDER_LIST",
10591
10591
  "a)": "ORDER_LIST_QUICK_2",
@@ -10661,7 +10661,7 @@ function Tu(e, t, n) {
10661
10661
  }
10662
10662
  u();
10663
10663
  const c = r[r.length - 1], h = e[s - 1], d = t[i - 1];
10664
- return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)), Ls(r);
10664
+ return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)), xs(r);
10665
10665
  }
10666
10666
  function og(e, t, n, r, s) {
10667
10667
  const { paragraphs: i } = e, { paragraphs: o } = t;
@@ -10801,7 +10801,7 @@ function ug(e, t, n, r, s) {
10801
10801
  return wu(e, t, n, r), a;
10802
10802
  }
10803
10803
  function cg(e, t, n, r, s) {
10804
- e.customRanges || (e.customRanges = []), Ti(e.customRanges, r), Ti(e.customRanges, r + n);
10804
+ e.customRanges || (e.customRanges = []), Mi(e.customRanges, r), Mi(e.customRanges, r + n);
10805
10805
  const i = r, o = r + n - 1, { customRanges: a } = t, l = [], u = /* @__PURE__ */ new Map();
10806
10806
  e.customRanges.forEach((h) => {
10807
10807
  const { startIndex: d, endIndex: f } = h;
@@ -10815,10 +10815,10 @@ function cg(e, t, n, r, s) {
10815
10815
  startIndex: d + r,
10816
10816
  endIndex: f + r
10817
10817
  });
10818
- }), e.customRanges = Fo(l), c) : [];
10818
+ }), e.customRanges = $o(l), c) : [];
10819
10819
  }
10820
10820
  function hg(e, t, n, r, s) {
10821
- e.customDecorations || (e.customDecorations = []), Mi(e.customDecorations, r), Mi(e.customDecorations, r + n);
10821
+ e.customDecorations || (e.customDecorations = []), Li(e.customDecorations, r), Li(e.customDecorations, r + n);
10822
10822
  const i = [], { customDecorations: o } = e, { customDecorations: a = [] } = t;
10823
10823
  if (s === pe.REPLACE) {
10824
10824
  for (let l = 0; l < o.length; l++) {
@@ -10853,7 +10853,7 @@ function hg(e, t, n, r, s) {
10853
10853
  return e.customDecorations = Su(o), i;
10854
10854
  }
10855
10855
  var Mu = /* @__PURE__ */ ((e) => (e[e.copy = 0] = "copy", e[e.cut = 1] = "cut", e))(Mu || {});
10856
- function Li(e, t, n, r = !0) {
10856
+ function xi(e, t, n, r = !0) {
10857
10857
  const { textRuns: s } = e;
10858
10858
  if (s) {
10859
10859
  const i = [];
@@ -10869,7 +10869,7 @@ function Li(e, t, n, r = !0) {
10869
10869
  ed: n
10870
10870
  }) : i.push(a));
10871
10871
  }
10872
- return Ls(
10872
+ return xs(
10873
10873
  i.map((o) => {
10874
10874
  const { st: a, ed: l } = o;
10875
10875
  return {
@@ -10941,7 +10941,7 @@ function Ut(e, t, n, r = !0, s = 1) {
10941
10941
  const { dataStream: i } = e, o = {
10942
10942
  dataStream: i.slice(t, n)
10943
10943
  };
10944
- o.textRuns = Li(e, t, n, r);
10944
+ o.textRuns = xi(e, t, n, r);
10945
10945
  const a = dg(e, t, n);
10946
10946
  if (a.length && (o.tables = a), o.paragraphs = fg(e, t, n), s === 1) {
10947
10947
  const u = _g(e, t, n);
@@ -11229,7 +11229,7 @@ function Ag(e, t, n, r, s) {
11229
11229
  }
11230
11230
  h();
11231
11231
  const d = i[i.length - 1], f = t[o - 1], g = e[a - 1];
11232
- return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)), Ls(i, !0);
11232
+ return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)), xs(i, !0);
11233
11233
  }
11234
11234
  function yg(e, t, n, r, s) {
11235
11235
  if (e == null || t == null)
@@ -11688,11 +11688,11 @@ const Lg = [
11688
11688
  // DataStreamTreeTokenType.DOCS_END, // 文档结尾
11689
11689
  // DataStreamTreeTokenType.TAB, // 制表符
11690
11690
  // DataStreamTreeTokenType.CUSTOM_BLOCK, // 图片 mention 等不参与文档流的场景
11691
- ], $o = (e) => {
11691
+ ], Ho = (e) => {
11692
11692
  const t = e.endsWith(`\r
11693
11693
  `) ? e.slice(0, -2) : e;
11694
11694
  return Lg.reduce((n, r) => n.replaceAll(r, ""), t);
11695
- }, xg = (e) => e ? $o(e).replaceAll("\r", "") === "" : !0, Dg = (e) => {
11695
+ }, xg = (e) => e ? Ho(e).replaceAll("\r", "") === "" : !0, Dg = (e) => {
11696
11696
  const t = e.replace(/\n/g, "\r"), n = [], r = [];
11697
11697
  let s = 0, i = "";
11698
11698
  const o = (l, u = !0) => {
@@ -11723,7 +11723,7 @@ const Lg = [
11723
11723
  id: "default_doc",
11724
11724
  documentStyle: {}
11725
11725
  };
11726
- class Ug extends ko {
11726
+ class Ug extends Po {
11727
11727
  constructor(n) {
11728
11728
  var r;
11729
11729
  super();
@@ -11775,7 +11775,7 @@ class Ug extends ko {
11775
11775
  var s;
11776
11776
  const n = (s = this.snapshot.lists) != null ? s : {};
11777
11777
  return {
11778
- ...xs,
11778
+ ...Ds,
11779
11779
  ...n
11780
11780
  };
11781
11781
  }
@@ -11915,7 +11915,7 @@ class kt extends Ug {
11915
11915
  }
11916
11916
  getPlainText() {
11917
11917
  var n, r;
11918
- return $o((r = (n = this.getBody()) == null ? void 0 : n.dataStream) != null ? r : "");
11918
+ return Ho((r = (n = this.getBody()) == null ? void 0 : n.dataStream) != null ? r : "");
11919
11919
  }
11920
11920
  }
11921
11921
  function kg(e) {
@@ -12012,9 +12012,9 @@ function Bg(e, t) {
12012
12012
  collapsed: r === s
12013
12013
  };
12014
12014
  }
12015
- var oi, Ja;
12015
+ var ai, Ja;
12016
12016
  function jg() {
12017
- if (Ja) return oi;
12017
+ if (Ja) return ai;
12018
12018
  Ja = 1;
12019
12019
  var e = -1, t = 1, n = 0;
12020
12020
  function r(m, D, O, T, A) {
@@ -12373,7 +12373,7 @@ function jg() {
12373
12373
  function $(m, D, O, T) {
12374
12374
  return r(m, D, O, T, !0);
12375
12375
  }
12376
- return $.INSERT = t, $.DELETE = e, $.EQUAL = n, oi = $, oi;
12376
+ return $.INSERT = t, $.DELETE = e, $.EQUAL = n, ai = $, ai;
12377
12377
  }
12378
12378
  var Wg = jg();
12379
12379
  const Uu = /* @__PURE__ */ Ct(Wg);
@@ -12562,7 +12562,7 @@ const Xg = (e) => {
12562
12562
  switch (f) {
12563
12563
  // retain
12564
12564
  case 0: {
12565
- const _ = Li(n, u, u + g.length, !1), R = Li(a, u, u + g.length, !1), b = {
12565
+ const _ = xi(n, u, u + g.length, !1), R = xi(a, u, u + g.length, !1), b = {
12566
12566
  t: J.RETAIN,
12567
12567
  body: Kg(_, R) ? void 0 : {
12568
12568
  textRuns: _ == null ? void 0 : _.map((H) => {
@@ -12692,8 +12692,8 @@ function e_(e) {
12692
12692
  function t_(e, t, n, r) {
12693
12693
  return Math.max(e, n) <= Math.min(t, r);
12694
12694
  }
12695
- function xi(e, t, n, r) {
12696
- const { startOffset: s, endOffset: i } = e, o = r != null ? r : Ho(t, n), a = [];
12695
+ function Di(e, t, n, r) {
12696
+ const { startOffset: s, endOffset: i } = e, o = r != null ? r : Bo(t, n), a = [];
12697
12697
  let l = -1;
12698
12698
  for (let u = 0; u < o.length; u++) {
12699
12699
  const c = o[u], { startIndex: h } = c;
@@ -12701,10 +12701,10 @@ function xi(e, t, n, r) {
12701
12701
  }
12702
12702
  return a;
12703
12703
  }
12704
- function Di(e, t, n) {
12705
- const r = [], s = Ho(t, n);
12704
+ function Ui(e, t, n) {
12705
+ const r = [], s = Bo(t, n);
12706
12706
  for (const i of e) {
12707
- const o = xi(i, t, n, s);
12707
+ const o = Di(i, t, n, s);
12708
12708
  r.push(...o);
12709
12709
  }
12710
12710
  return r;
@@ -12717,7 +12717,7 @@ const n_ = [
12717
12717
  ut.TABLE_CELL_START,
12718
12718
  ut.TABLE_CELL_END
12719
12719
  ];
12720
- function Ho(e, t) {
12720
+ function Bo(e, t) {
12721
12721
  const n = [];
12722
12722
  for (let r = 0; r < e.length; r++) {
12723
12723
  const s = e[r], { startIndex: i } = s;
@@ -12861,7 +12861,7 @@ const a_ = (e) => {
12861
12861
  const { paragraphs: t, document: n, type: r } = e, s = new zn();
12862
12862
  s.reset();
12863
12863
  const i = new Ne(), o = (u = n.getSnapshot().lists) != null ? u : {}, a = (h = (c = n.getBody()) == null ? void 0 : c.tables) != null ? h : [], l = {
12864
- ...xs,
12864
+ ...Ds,
12865
12865
  ...o
12866
12866
  };
12867
12867
  for (const d of t) {
@@ -12911,7 +12911,7 @@ const a_ = (e) => {
12911
12911
  cursor: o,
12912
12912
  deleteLen: a,
12913
12913
  textX: l
12914
- } = e, u = r.getSelfOrHeaderFooterModel(n), c = (b = (R = u.getBody()) == null ? void 0 : R.paragraphs) != null ? b : [], h = (P = (H = u.getBody()) == null ? void 0 : H.dataStream) != null ? P : "", d = Di(t, c, h), f = new zn();
12914
+ } = e, u = r.getSelfOrHeaderFooterModel(n), c = (b = (R = u.getBody()) == null ? void 0 : R.paragraphs) != null ? b : [], h = (P = (H = u.getBody()) == null ? void 0 : H.dataStream) != null ? P : "", d = Ui(t, c, h), f = new zn();
12915
12915
  o && f.moveCursorTo(o);
12916
12916
  const g = l != null ? l : new Ne();
12917
12917
  d.sort((W, w) => W.startIndex - w.startIndex);
@@ -12979,10 +12979,10 @@ p(Je, "customRange", {
12979
12979
  retain: Vg
12980
12980
  }), p(Je, "range", {
12981
12981
  isIntersects: t_,
12982
- getParagraphsInRange: xi,
12983
- getParagraphsInRanges: Di
12982
+ getParagraphsInRange: Di,
12983
+ getParagraphsInRanges: Ui
12984
12984
  }), p(Je, "transform", {
12985
- getPlainText: $o,
12985
+ getPlainText: Ho,
12986
12986
  fromPlainText: Dg,
12987
12987
  isEmptyDocument: xg
12988
12988
  }), p(Je, "paragraph", {
@@ -12996,9 +12996,9 @@ p(Je, "customRange", {
12996
12996
  set: l_
12997
12997
  },
12998
12998
  util: {
12999
- transform: Ho,
13000
- getParagraphsInRange: xi,
13001
- getParagraphsInRanges: Di
12999
+ transform: Bo,
13000
+ getParagraphsInRange: Di,
13001
+ getParagraphsInRanges: Ui
13002
13002
  }
13003
13003
  }), p(Je, "drawing", {
13004
13004
  add: Jg
@@ -13050,7 +13050,7 @@ function Pu(e) {
13050
13050
  var t;
13051
13051
  return e.body = u_((t = e.body) != null ? t : { dataStream: "" }), e.drawingsOrder || (e.drawingsOrder = []), e.drawings || (e.drawings = {}), e.documentStyle || (e.documentStyle = {}), e;
13052
13052
  }
13053
- class Ds {
13053
+ class Us {
13054
13054
  /**
13055
13055
  * Creates a new TextStyleValue instance
13056
13056
  * @param {ITextStyle} style The initial style object
@@ -13075,7 +13075,7 @@ class Ds {
13075
13075
  * ```
13076
13076
  */
13077
13077
  static create(t = {}) {
13078
- return new Ds(t);
13078
+ return new Us(t);
13079
13079
  }
13080
13080
  /**
13081
13081
  * Gets the font family
@@ -13259,7 +13259,7 @@ class Ds {
13259
13259
  return { ...this._style };
13260
13260
  }
13261
13261
  }
13262
- class gn extends Ds {
13262
+ class gn extends Us {
13263
13263
  /**
13264
13264
  * Creates a new TextStyleBuilder instance
13265
13265
  * @param {ITextStyle} style Initial style object
@@ -13557,7 +13557,7 @@ class hn {
13557
13557
  return { ...this._decoration };
13558
13558
  }
13559
13559
  }
13560
- class Us {
13560
+ class ks {
13561
13561
  constructor(t = {}) {
13562
13562
  p(this, "_style");
13563
13563
  this._style = t;
@@ -13572,7 +13572,7 @@ class Us {
13572
13572
  * ```
13573
13573
  */
13574
13574
  static create(t = {}) {
13575
- return new Us(t);
13575
+ return new ks(t);
13576
13576
  }
13577
13577
  /**
13578
13578
  * Gets the first line indent
@@ -13896,7 +13896,7 @@ class Us {
13896
13896
  * ```
13897
13897
  */
13898
13898
  copy() {
13899
- return ps.create(G.deepClone(this._style));
13899
+ return Es.create(G.deepClone(this._style));
13900
13900
  }
13901
13901
  /**
13902
13902
  * Gets the value
@@ -13911,7 +13911,7 @@ class Us {
13911
13911
  return this._style;
13912
13912
  }
13913
13913
  }
13914
- class ps extends Us {
13914
+ class Es extends ks {
13915
13915
  /**
13916
13916
  * Creates a new paragraph style builder
13917
13917
  * @param style The paragraph style
@@ -13923,7 +13923,7 @@ class ps extends Us {
13923
13923
  * ```
13924
13924
  */
13925
13925
  static create(t = {}) {
13926
- return new ps(t);
13926
+ return new Es(t);
13927
13927
  }
13928
13928
  constructor(t = {}) {
13929
13929
  super(t);
@@ -14302,7 +14302,7 @@ class ps extends Us {
14302
14302
  * ```
14303
14303
  */
14304
14304
  copy() {
14305
- return ps.create(G.deepClone(this._style));
14305
+ return Es.create(G.deepClone(this._style));
14306
14306
  }
14307
14307
  /**
14308
14308
  * Builds and returns the final paragraph style configuration
@@ -14403,7 +14403,7 @@ class dn {
14403
14403
  */
14404
14404
  getParagraphStyle() {
14405
14405
  var t, n;
14406
- return Us.create((n = (t = this._data.body) == null ? void 0 : t.paragraphs) == null ? void 0 : n[0].paragraphStyle);
14406
+ return ks.create((n = (t = this._data.body) == null ? void 0 : t.paragraphs) == null ? void 0 : n[0].paragraphStyle);
14407
14407
  }
14408
14408
  /**
14409
14409
  * Gets the paragraph bullet of the current RichTextValue instance
@@ -14449,7 +14449,7 @@ class dn {
14449
14449
  var t, n;
14450
14450
  return ((n = (t = this._data.body) == null ? void 0 : t.textRuns) != null ? n : []).map((r) => ({
14451
14451
  ...r,
14452
- ts: r.ts ? Ds.create(r.ts) : null
14452
+ ts: r.ts ? Us.create(r.ts) : null
14453
14453
  }));
14454
14454
  }
14455
14455
  /**
@@ -14748,14 +14748,14 @@ function CR(e) {
14748
14748
  return () => n.unsubscribe();
14749
14749
  });
14750
14750
  }
14751
- const Bo = ct("core.resource-manager.service"), Ui = {
14751
+ const jo = ct("core.resource-manager.service"), ki = {
14752
14752
  [Lt.Editor]: "Editor",
14753
14753
  [Lt.Owner]: "Owner",
14754
14754
  [Lt.Reader]: "Reader",
14755
14755
  [Lt.UNRECOGNIZED]: "UNRECOGNIZED"
14756
- }, ki = (e) => e ? {
14757
- userID: `${Ui[e]}_${G.generateRandomId(8)}`,
14758
- name: Ui[e],
14756
+ }, Pi = (e) => e ? {
14757
+ userID: `${ki[e]}_${G.generateRandomId(8)}`,
14758
+ name: ki[e],
14759
14759
  avatar: ""
14760
14760
  } : {
14761
14761
  userID: "",
@@ -14763,14 +14763,14 @@ const Bo = ct("core.resource-manager.service"), Ui = {
14763
14763
  avatar: "",
14764
14764
  anonymous: !0,
14765
14765
  canBindAnonymous: !1
14766
- }, h_ = (e, t) => e.startsWith(Ui[t]);
14767
- class Es extends Ve {
14766
+ }, h_ = (e, t) => e.startsWith(ki[t]);
14767
+ class Cs extends Ve {
14768
14768
  constructor() {
14769
14769
  super(...arguments);
14770
14770
  p(this, "_model", /* @__PURE__ */ new Map());
14771
14771
  p(this, "_userChange$", new it());
14772
14772
  p(this, "userChange$", this._userChange$.asObservable());
14773
- p(this, "_currentUser$", new et(ki()));
14773
+ p(this, "_currentUser$", new et(Pi()));
14774
14774
  /**
14775
14775
  * When the current user undergoes a switch or change
14776
14776
  * @memberof UserManagerService
@@ -14811,7 +14811,7 @@ var d_ = Object.getOwnPropertyDescriptor, f_ = (e, t, n, r) => {
14811
14811
  (o = e[i]) && (s = o(s) || s);
14812
14812
  return s;
14813
14813
  }, Qa = (e, t) => (n, r) => t(n, r, e);
14814
- let Pi = class {
14814
+ let Fi = class {
14815
14815
  // private _sheetPermissionPointMap: Map<string, { action: UnitAction; allowed: boolean }[]> = new Map();
14816
14816
  constructor(e, t) {
14817
14817
  p(this, "_permissionMap", /* @__PURE__ */ new Map([]));
@@ -14819,7 +14819,7 @@ let Pi = class {
14819
14819
  }
14820
14820
  _initDefaultUser() {
14821
14821
  const e = this._userManagerService.getCurrentUser();
14822
- e && e.userID || this._userManagerService.setCurrentUser(ki(Lt.Owner));
14822
+ e && e.userID || this._userManagerService.setCurrentUser(Pi(Lt.Owner));
14823
14823
  }
14824
14824
  _getRole(e) {
14825
14825
  const t = this._userManagerService.getCurrentUser();
@@ -14870,10 +14870,10 @@ let Pi = class {
14870
14870
  shareRole: Lt.Owner,
14871
14871
  shareScope: -1,
14872
14872
  scope: {
14873
- read: yi.AllCollaborator,
14874
- edit: yi.AllCollaborator
14873
+ read: Ni.AllCollaborator,
14874
+ edit: Ni.AllCollaborator
14875
14875
  },
14876
- creator: ki(Lt.Owner),
14876
+ creator: Pi(Lt.Owner),
14877
14877
  strategies: [
14878
14878
  {
14879
14879
  action: 6,
@@ -14954,10 +14954,10 @@ let Pi = class {
14954
14954
  async putCollaborators(e) {
14955
14955
  }
14956
14956
  };
14957
- Pi = f_([
14958
- Qa(0, Bo),
14959
- Qa(1, At(Es))
14960
- ], Pi);
14957
+ Fi = f_([
14958
+ Qa(0, jo),
14959
+ Qa(1, At(Cs))
14960
+ ], Fi);
14961
14961
  const m_ = ct("IAuthzIoIoService");
14962
14962
  var Fu = typeof global == "object" && global && global.Object === Object && global, g_ = typeof self == "object" && self && self.Object === Object && self, Cn = Fu || g_ || Function("return this")(), Bn = Cn.Symbol, $u = Object.prototype, __ = $u.hasOwnProperty, p_ = $u.toString, er = Bn ? Bn.toStringTag : void 0;
14963
14963
  function E_(e) {
@@ -14982,7 +14982,7 @@ function Gn(e) {
14982
14982
  return e != null && typeof e == "object";
14983
14983
  }
14984
14984
  var S_ = "[object Symbol]";
14985
- function ks(e) {
14985
+ function Ps(e) {
14986
14986
  return typeof e == "symbol" || Gn(e) && Nr(e) == S_;
14987
14987
  }
14988
14988
  function v_(e, t) {
@@ -14996,7 +14996,7 @@ function Hu(e) {
14996
14996
  return e;
14997
14997
  if (jn(e))
14998
14998
  return v_(e, Hu) + "";
14999
- if (ks(e))
14999
+ if (Ps(e))
15000
15000
  return nl ? nl.call(e) : "";
15001
15001
  var t = e + "";
15002
15002
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
@@ -15019,7 +15019,7 @@ var rl = NaN, T_ = /^[-+]0x[0-9a-f]+$/i, M_ = /^0b[01]+$/i, L_ = /^0o[0-7]+$/i,
15019
15019
  function sl(e) {
15020
15020
  if (typeof e == "number")
15021
15021
  return e;
15022
- if (ks(e))
15022
+ if (Ps(e))
15023
15023
  return rl;
15024
15024
  if (Et(e)) {
15025
15025
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -15035,14 +15035,14 @@ function Bu(e) {
15035
15035
  return e;
15036
15036
  }
15037
15037
  var D_ = "[object AsyncFunction]", U_ = "[object Function]", k_ = "[object GeneratorFunction]", P_ = "[object Proxy]";
15038
- function jo(e) {
15038
+ function Wo(e) {
15039
15039
  if (!Et(e))
15040
15040
  return !1;
15041
15041
  var t = Nr(e);
15042
15042
  return t == U_ || t == k_ || t == D_ || t == P_;
15043
15043
  }
15044
- var ai = Cn["__core-js_shared__"], il = function() {
15045
- var e = /[^.]+$/.exec(ai && ai.keys && ai.keys.IE_PROTO || "");
15044
+ var li = Cn["__core-js_shared__"], il = function() {
15045
+ var e = /[^.]+$/.exec(li && li.keys && li.keys.IE_PROTO || "");
15046
15046
  return e ? "Symbol(src)_1." + e : "";
15047
15047
  }();
15048
15048
  function F_(e) {
@@ -15068,13 +15068,13 @@ var j_ = /[\\^$.*+?()[\]{}|]/g, W_ = /^\[object .+?Constructor\]$/, Y_ = Functio
15068
15068
  function X_(e) {
15069
15069
  if (!Et(e) || F_(e))
15070
15070
  return !1;
15071
- var t = jo(e) ? K_ : W_;
15071
+ var t = Wo(e) ? K_ : W_;
15072
15072
  return t.test(B_(e));
15073
15073
  }
15074
15074
  function q_(e, t) {
15075
15075
  return e == null ? void 0 : e[t];
15076
15076
  }
15077
- function Wo(e, t) {
15077
+ function Yo(e, t) {
15078
15078
  var n = q_(e, t);
15079
15079
  return X_(n) ? n : void 0;
15080
15080
  }
@@ -15128,46 +15128,46 @@ function sp(e) {
15128
15128
  return e;
15129
15129
  };
15130
15130
  }
15131
- var Cs = function() {
15131
+ var Rs = function() {
15132
15132
  try {
15133
- var e = Wo(Object, "defineProperty");
15133
+ var e = Yo(Object, "defineProperty");
15134
15134
  return e({}, "", {}), e;
15135
15135
  } catch {
15136
15136
  }
15137
- }(), ip = Cs ? function(e, t) {
15138
- return Cs(e, "toString", {
15137
+ }(), ip = Rs ? function(e, t) {
15138
+ return Rs(e, "toString", {
15139
15139
  configurable: !0,
15140
15140
  enumerable: !1,
15141
15141
  value: sp(t),
15142
15142
  writable: !0
15143
15143
  });
15144
15144
  } : Bu, op = rp(ip), ap = 9007199254740991, lp = /^(?:0|[1-9]\d*)$/;
15145
- function Yo(e, t) {
15145
+ function zo(e, t) {
15146
15146
  var n = typeof e;
15147
15147
  return t = t == null ? ap : t, !!t && (n == "number" || n != "symbol" && lp.test(e)) && e > -1 && e % 1 == 0 && e < t;
15148
15148
  }
15149
- function zo(e, t, n) {
15150
- t == "__proto__" && Cs ? Cs(e, t, {
15149
+ function Vo(e, t, n) {
15150
+ t == "__proto__" && Rs ? Rs(e, t, {
15151
15151
  configurable: !0,
15152
15152
  enumerable: !0,
15153
15153
  value: n,
15154
15154
  writable: !0
15155
15155
  }) : e[t] = n;
15156
15156
  }
15157
- function Ps(e, t) {
15157
+ function Fs(e, t) {
15158
15158
  return e === t || e !== e && t !== t;
15159
15159
  }
15160
15160
  var up = Object.prototype, cp = up.hasOwnProperty;
15161
15161
  function ju(e, t, n) {
15162
15162
  var r = e[t];
15163
- (!(cp.call(e, t) && Ps(r, n)) || n === void 0 && !(t in e)) && zo(e, t, n);
15163
+ (!(cp.call(e, t) && Fs(r, n)) || n === void 0 && !(t in e)) && Vo(e, t, n);
15164
15164
  }
15165
15165
  function hp(e, t, n, r) {
15166
15166
  var s = !n;
15167
15167
  n || (n = {});
15168
15168
  for (var i = -1, o = t.length; ++i < o; ) {
15169
15169
  var a = t[i], l = void 0;
15170
- l === void 0 && (l = e[a]), s ? zo(n, a, l) : ju(n, a, l);
15170
+ l === void 0 && (l = e[a]), s ? Vo(n, a, l) : ju(n, a, l);
15171
15171
  }
15172
15172
  return n;
15173
15173
  }
@@ -15189,14 +15189,14 @@ var mp = 9007199254740991;
15189
15189
  function Wu(e) {
15190
15190
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= mp;
15191
15191
  }
15192
- function Vo(e) {
15193
- return e != null && Wu(e.length) && !jo(e);
15192
+ function Go(e) {
15193
+ return e != null && Wu(e.length) && !Wo(e);
15194
15194
  }
15195
15195
  function gp(e, t, n) {
15196
15196
  if (!Et(n))
15197
15197
  return !1;
15198
15198
  var r = typeof t;
15199
- return (r == "number" ? Vo(n) && Yo(t, n.length) : r == "string" && t in n) ? Ps(n[t], e) : !1;
15199
+ return (r == "number" ? Go(n) && zo(t, n.length) : r == "string" && t in n) ? Fs(n[t], e) : !1;
15200
15200
  }
15201
15201
  function Yu(e) {
15202
15202
  return fp(function(t, n) {
@@ -15222,7 +15222,7 @@ var Ep = "[object Arguments]";
15222
15222
  function ll(e) {
15223
15223
  return Gn(e) && Nr(e) == Ep;
15224
15224
  }
15225
- var Vu = Object.prototype, Cp = Vu.hasOwnProperty, Rp = Vu.propertyIsEnumerable, Fi = ll(/* @__PURE__ */ function() {
15225
+ var Vu = Object.prototype, Cp = Vu.hasOwnProperty, Rp = Vu.propertyIsEnumerable, $i = ll(/* @__PURE__ */ function() {
15226
15226
  return arguments;
15227
15227
  }()) ? ll : function(e) {
15228
15228
  return Gn(e) && Cp.call(e, "callee") && !Rp.call(e, "callee");
@@ -15241,21 +15241,21 @@ function Xp(e) {
15241
15241
  return e(t);
15242
15242
  };
15243
15243
  }
15244
- var Xu = typeof exports == "object" && exports && !exports.nodeType && exports, Er = Xu && typeof module == "object" && module && !module.nodeType && module, qp = Er && Er.exports === Xu, li = qp && Fu.process, hl = function() {
15244
+ var Xu = typeof exports == "object" && exports && !exports.nodeType && exports, Er = Xu && typeof module == "object" && module && !module.nodeType && module, qp = Er && Er.exports === Xu, ui = qp && Fu.process, hl = function() {
15245
15245
  try {
15246
15246
  var e = Er && Er.require && Er.require("util").types;
15247
- return e || li && li.binding && li.binding("util");
15247
+ return e || ui && ui.binding && ui.binding("util");
15248
15248
  } catch {
15249
15249
  }
15250
15250
  }(), dl = hl && hl.isTypedArray, qu = dl ? Xp(dl) : Kp;
15251
15251
  function Zp(e, t) {
15252
- var n = jn(e), r = !n && Fi(e), s = !n && !r && Ku(e), i = !n && !r && !s && qu(e), o = n || r || s || i, a = o ? pp(e.length, String) : [], l = a.length;
15252
+ var n = jn(e), r = !n && $i(e), s = !n && !r && Ku(e), i = !n && !r && !s && qu(e), o = n || r || s || i, a = o ? pp(e.length, String) : [], l = a.length;
15253
15253
  for (var u in e)
15254
15254
  o && // Safari 9 has enumerable `arguments.length` in strict mode.
15255
15255
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
15256
15256
  s && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
15257
15257
  i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
15258
- Yo(u, l)) || a.push(u);
15258
+ zo(u, l)) || a.push(u);
15259
15259
  return a;
15260
15260
  }
15261
15261
  function Jp(e, t) {
@@ -15280,16 +15280,16 @@ function n0(e) {
15280
15280
  return n;
15281
15281
  }
15282
15282
  function Zu(e) {
15283
- return Vo(e) ? Zp(e) : n0(e);
15283
+ return Go(e) ? Zp(e) : n0(e);
15284
15284
  }
15285
15285
  var r0 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s0 = /^\w*$/;
15286
15286
  function i0(e, t) {
15287
15287
  if (jn(e))
15288
15288
  return !1;
15289
15289
  var n = typeof e;
15290
- return n == "number" || n == "symbol" || n == "boolean" || e == null || ks(e) ? !0 : s0.test(e) || !r0.test(e) || t != null && e in Object(t);
15290
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || Ps(e) ? !0 : s0.test(e) || !r0.test(e) || t != null && e in Object(t);
15291
15291
  }
15292
- var Sr = Wo(Object, "create");
15292
+ var Sr = Yo(Object, "create");
15293
15293
  function o0() {
15294
15294
  this.__data__ = Sr ? Sr(null) : {}, this.size = 0;
15295
15295
  }
@@ -15331,29 +15331,29 @@ En.prototype.set = _0;
15331
15331
  function p0() {
15332
15332
  this.__data__ = [], this.size = 0;
15333
15333
  }
15334
- function Fs(e, t) {
15334
+ function $s(e, t) {
15335
15335
  for (var n = e.length; n--; )
15336
- if (Ps(e[n][0], t))
15336
+ if (Fs(e[n][0], t))
15337
15337
  return n;
15338
15338
  return -1;
15339
15339
  }
15340
15340
  var E0 = Array.prototype, C0 = E0.splice;
15341
15341
  function R0(e) {
15342
- var t = this.__data__, n = Fs(t, e);
15342
+ var t = this.__data__, n = $s(t, e);
15343
15343
  if (n < 0)
15344
15344
  return !1;
15345
15345
  var r = t.length - 1;
15346
15346
  return n == r ? t.pop() : C0.call(t, n, 1), --this.size, !0;
15347
15347
  }
15348
15348
  function I0(e) {
15349
- var t = this.__data__, n = Fs(t, e);
15349
+ var t = this.__data__, n = $s(t, e);
15350
15350
  return n < 0 ? void 0 : t[n][1];
15351
15351
  }
15352
15352
  function w0(e) {
15353
- return Fs(this.__data__, e) > -1;
15353
+ return $s(this.__data__, e) > -1;
15354
15354
  }
15355
15355
  function O0(e, t) {
15356
- var n = this.__data__, r = Fs(n, e);
15356
+ var n = this.__data__, r = $s(n, e);
15357
15357
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
15358
15358
  }
15359
15359
  function zt(e) {
@@ -15368,7 +15368,7 @@ zt.prototype.delete = R0;
15368
15368
  zt.prototype.get = I0;
15369
15369
  zt.prototype.has = w0;
15370
15370
  zt.prototype.set = O0;
15371
- var Ju = Wo(Cn, "Map");
15371
+ var Ju = Yo(Cn, "Map");
15372
15372
  function S0() {
15373
15373
  this.size = 0, this.__data__ = {
15374
15374
  hash: new En(),
@@ -15380,22 +15380,22 @@ function v0(e) {
15380
15380
  var t = typeof e;
15381
15381
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
15382
15382
  }
15383
- function $s(e, t) {
15383
+ function Hs(e, t) {
15384
15384
  var n = e.__data__;
15385
15385
  return v0(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
15386
15386
  }
15387
15387
  function b0(e) {
15388
- var t = $s(this, e).delete(e);
15388
+ var t = Hs(this, e).delete(e);
15389
15389
  return this.size -= t ? 1 : 0, t;
15390
15390
  }
15391
15391
  function A0(e) {
15392
- return $s(this, e).get(e);
15392
+ return Hs(this, e).get(e);
15393
15393
  }
15394
15394
  function y0(e) {
15395
- return $s(this, e).has(e);
15395
+ return Hs(this, e).has(e);
15396
15396
  }
15397
15397
  function N0(e, t) {
15398
- var n = $s(this, e), r = n.size;
15398
+ var n = Hs(this, e), r = n.size;
15399
15399
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
15400
15400
  }
15401
15401
  function nn(e) {
@@ -15411,7 +15411,7 @@ nn.prototype.get = A0;
15411
15411
  nn.prototype.has = y0;
15412
15412
  nn.prototype.set = N0;
15413
15413
  var T0 = "Expected a function";
15414
- function Go(e, t) {
15414
+ function Ko(e, t) {
15415
15415
  if (typeof e != "function" || t != null && typeof t != "function")
15416
15416
  throw new TypeError(T0);
15417
15417
  var n = function() {
@@ -15421,12 +15421,12 @@ function Go(e, t) {
15421
15421
  var o = e.apply(this, r);
15422
15422
  return n.cache = i.set(s, o) || i, o;
15423
15423
  };
15424
- return n.cache = new (Go.Cache || nn)(), n;
15424
+ return n.cache = new (Ko.Cache || nn)(), n;
15425
15425
  }
15426
- Go.Cache = nn;
15426
+ Ko.Cache = nn;
15427
15427
  var M0 = 500;
15428
15428
  function L0(e) {
15429
- var t = Go(e, function(r) {
15429
+ var t = Ko(e, function(r) {
15430
15430
  return n.size === M0 && n.clear(), r;
15431
15431
  }), n = t.cache;
15432
15432
  return t;
@@ -15444,7 +15444,7 @@ function Qu(e, t) {
15444
15444
  return jn(e) ? e : i0(e, t) ? [e] : U0(k0(e));
15445
15445
  }
15446
15446
  function ec(e) {
15447
- if (typeof e == "string" || ks(e))
15447
+ if (typeof e == "string" || Ps(e))
15448
15448
  return e;
15449
15449
  var t = e + "";
15450
15450
  return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
@@ -15529,7 +15529,7 @@ function nE(e) {
15529
15529
  return t;
15530
15530
  };
15531
15531
  }
15532
- var rE = nE(), ui = function() {
15532
+ var rE = nE(), ci = function() {
15533
15533
  return Cn.Date.now();
15534
15534
  }, sE = "Expected a function", iE = Math.max, oE = Math.min;
15535
15535
  function RR(e, t, n) {
@@ -15553,7 +15553,7 @@ function RR(e, t, n) {
15553
15553
  return l === void 0 || v >= t || v < 0 || h && y >= i;
15554
15554
  }
15555
15555
  function b() {
15556
- var C = ui();
15556
+ var C = ci();
15557
15557
  if (R(C))
15558
15558
  return H(C);
15559
15559
  a = setTimeout(b, _(C));
@@ -15565,10 +15565,10 @@ function RR(e, t, n) {
15565
15565
  a !== void 0 && clearTimeout(a), u = 0, r = l = s = a = void 0;
15566
15566
  }
15567
15567
  function W() {
15568
- return a === void 0 ? o : H(ui());
15568
+ return a === void 0 ? o : H(ci());
15569
15569
  }
15570
15570
  function w() {
15571
- var C = ui(), v = R(C);
15571
+ var C = ci(), v = R(C);
15572
15572
  if (r = arguments, s = this, l = C, v) {
15573
15573
  if (a === void 0)
15574
15574
  return g(l);
@@ -15579,13 +15579,13 @@ function RR(e, t, n) {
15579
15579
  }
15580
15580
  return w.cancel = P, w.flush = W, w;
15581
15581
  }
15582
- function $i(e, t, n) {
15583
- (n !== void 0 && !Ps(e[t], n) || n === void 0 && !(t in e)) && zo(e, t, n);
15582
+ function Hi(e, t, n) {
15583
+ (n !== void 0 && !Fs(e[t], n) || n === void 0 && !(t in e)) && Vo(e, t, n);
15584
15584
  }
15585
15585
  function aE(e) {
15586
- return Gn(e) && Vo(e);
15586
+ return Gn(e) && Go(e);
15587
15587
  }
15588
- function Hi(e, t) {
15588
+ function Bi(e, t) {
15589
15589
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
15590
15590
  return e[t];
15591
15591
  }
@@ -15593,32 +15593,32 @@ function lE(e) {
15593
15593
  return hp(e, Zu(e));
15594
15594
  }
15595
15595
  function uE(e, t, n, r, s, i, o) {
15596
- var a = Hi(e, n), l = Hi(t, n), u = o.get(l);
15596
+ var a = Bi(e, n), l = Bi(t, n), u = o.get(l);
15597
15597
  if (u) {
15598
- $i(e, n, u);
15598
+ Hi(e, n, u);
15599
15599
  return;
15600
15600
  }
15601
15601
  var c = i ? i(a, l, n + "", e, t, o) : void 0, h = c === void 0;
15602
15602
  if (h) {
15603
15603
  var d = jn(l), f = !d && Ku(l), g = !d && !f && qu(l);
15604
- c = l, d || f || g ? jn(a) ? c = a : aE(a) ? c = Q_(a) : f ? (h = !1, c = J0(l)) : g ? (h = !1, c = eE(l)) : c = [] : Y0(l) || Fi(l) ? (c = a, Fi(a) ? c = lE(a) : (!Et(a) || jo(a)) && (c = tE(l))) : h = !1;
15604
+ c = l, d || f || g ? jn(a) ? c = a : aE(a) ? c = Q_(a) : f ? (h = !1, c = J0(l)) : g ? (h = !1, c = eE(l)) : c = [] : Y0(l) || $i(l) ? (c = a, $i(a) ? c = lE(a) : (!Et(a) || Wo(a)) && (c = tE(l))) : h = !1;
15605
15605
  }
15606
- h && (o.set(l, c), s(c, l, r, i, o), o.delete(l)), $i(e, n, c);
15606
+ h && (o.set(l, c), s(c, l, r, i, o), o.delete(l)), Hi(e, n, c);
15607
15607
  }
15608
- function Ko(e, t, n, r, s) {
15608
+ function Xo(e, t, n, r, s) {
15609
15609
  e !== t && rE(t, function(i, o) {
15610
15610
  if (s || (s = new Kn()), Et(i))
15611
- uE(e, t, o, n, Ko, r, s);
15611
+ uE(e, t, o, n, Xo, r, s);
15612
15612
  else {
15613
- var a = r ? r(Hi(e, o), i, o + "", e, t, s) : void 0;
15614
- a === void 0 && (a = i), $i(e, o, a);
15613
+ var a = r ? r(Bi(e, o), i, o + "", e, t, s) : void 0;
15614
+ a === void 0 && (a = i), Hi(e, o, a);
15615
15615
  }
15616
15616
  }, Zu);
15617
15617
  }
15618
15618
  var IR = Yu(function(e, t, n, r) {
15619
- Ko(e, t, n, r);
15619
+ Xo(e, t, n, r);
15620
15620
  }), sc = Yu(function(e, t, n) {
15621
- Ko(e, t, n);
15621
+ Xo(e, t, n);
15622
15622
  });
15623
15623
  function cE(e, t, n, r) {
15624
15624
  if (!Et(e))
@@ -15630,7 +15630,7 @@ function cE(e, t, n, r) {
15630
15630
  return e;
15631
15631
  if (s != o) {
15632
15632
  var c = a[l];
15633
- u = void 0, u === void 0 && (u = Et(c) ? c : Yo(t[s + 1]) ? [] : {});
15633
+ u = void 0, u === void 0 && (u = Et(c) ? c : zo(t[s + 1]) ? [] : {});
15634
15634
  }
15635
15635
  ju(a, l, u), a = a[l];
15636
15636
  }
@@ -15669,7 +15669,7 @@ class hE {
15669
15669
  });
15670
15670
  }
15671
15671
  }
15672
- const Kr = "FOCUSING_UNIT", gr = "FOCUSING_SHEET", Xr = "FOCUSING_DOC", qr = "FOCUSING_SLIDE", OR = "FOCUSING_EDITOR_BUT_HIDDEN", dE = "EDITOR_ACTIVATED", SR = "FOCUSING_EDITOR_INPUT_FORMULA", fE = "FOCUSING_FX_BAR_EDITOR", vR = "FOCUSING_UNIVER_EDITOR", bR = "FOCUSING_EDITOR_INPUT_FORMULA", AR = "FOCUSING_PANEL_EDITOR", yR = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE", NR = "FOCUSING_COMMON_DRAWINGS", TR = "FORMULA_EDITOR_ACTIVATED";
15672
+ const Xr = "FOCUSING_UNIT", gr = "FOCUSING_SHEET", qr = "FOCUSING_DOC", Zr = "FOCUSING_SLIDE", OR = "FOCUSING_EDITOR_BUT_HIDDEN", dE = "EDITOR_ACTIVATED", SR = "FOCUSING_EDITOR_INPUT_FORMULA", fE = "FOCUSING_FX_BAR_EDITOR", vR = "FOCUSING_UNIVER_EDITOR", bR = "FOCUSING_EDITOR_INPUT_FORMULA", AR = "FOCUSING_PANEL_EDITOR", yR = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE", NR = "FOCUSING_COMMON_DRAWINGS", TR = "FORMULA_EDITOR_ACTIVATED";
15673
15673
  class mE extends Ve {
15674
15674
  constructor() {
15675
15675
  super(...arguments);
@@ -15684,10 +15684,10 @@ class mE extends Ve {
15684
15684
  }
15685
15685
  }
15686
15686
  var oc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(oc || {}), gE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(gE || {});
15687
- const _l = ct("core.image-io.service"), _E = "0.9.1", pE = {
15687
+ const _l = ct("core.image-io.service"), _E = "0.9.2", pE = {
15688
15688
  version: _E
15689
15689
  };
15690
- function EE(e = "", t = bs.ZH_CN, n = "") {
15690
+ function EE(e = "", t = As.ZH_CN, n = "") {
15691
15691
  return {
15692
15692
  id: e,
15693
15693
  sheetOrder: [],
@@ -15702,7 +15702,7 @@ function EE(e = "", t = bs.ZH_CN, n = "") {
15702
15702
  class CE {
15703
15703
  constructor(t = {}) {
15704
15704
  p(this, "_styles");
15705
- p(this, "_cacheMap", new fs(1e5));
15705
+ p(this, "_cacheMap", new ms(1e5));
15706
15706
  this._styles = t, this._generateCacheMap();
15707
15707
  }
15708
15708
  each(t) {
@@ -15757,7 +15757,7 @@ class CE {
15757
15757
  const MR = (e, t) => t.length === e.length && !e.some((n) => t.some((r) => !pn.equals(r, n))), LR = (e, t) => t.length === e.length && e.every((n, r) => {
15758
15758
  const s = t[r];
15759
15759
  return s.unitId === n.unitId && s.sheetId === n.sheetId && pn.equals(n.range, s.range);
15760
- }), Bi = {
15760
+ }), ji = {
15761
15761
  t: 0,
15762
15762
  b: 2,
15763
15763
  // must over 1, see https://github.com/dream-num/univer/issues/2727
@@ -15769,7 +15769,7 @@ const MR = (e, t) => t.length === e.length && !e.some((n) => t.some((r) => !pn.e
15769
15769
  spr: 0.6,
15770
15770
  spo: e
15771
15771
  }), pl = 90;
15772
- function Zr(e, t, n = {}) {
15772
+ function Jr(e, t, n = {}) {
15773
15773
  const r = e.length, {
15774
15774
  textRotation: s,
15775
15775
  paddingData: i,
@@ -15777,7 +15777,7 @@ function Zr(e, t, n = {}) {
15777
15777
  verticalAlign: a = xn.UNSPECIFIED,
15778
15778
  wrapStrategy: l = $n.UNSPECIFIED,
15779
15779
  cellValueType: u
15780
- } = n, { t: c, r: h, b: d, l: f } = i || Bi, { vertexAngle: g, centerAngle: _ } = ac(s), R = {
15780
+ } = n, { t: c, r: h, b: d, l: f } = i || ji, { vertexAngle: g, centerAngle: _ } = ac(s), R = {
15781
15781
  id: "d",
15782
15782
  body: {
15783
15783
  dataStream: `${e}${Bc}`,
@@ -16320,8 +16320,8 @@ class kE extends Ve {
16320
16320
  * @property the original merge data
16321
16321
  */
16322
16322
  p(this, "_mergeData");
16323
- p(this, "_rangeMap", new fs(5e4));
16324
- p(this, "_skeletonCache", new fs(5e4));
16323
+ p(this, "_rangeMap", new ms(5e4));
16324
+ p(this, "_skeletonCache", new ms(5e4));
16325
16325
  this._init(n.concat());
16326
16326
  }
16327
16327
  _init(n) {
@@ -16524,7 +16524,7 @@ const Rl = {
16524
16524
  displayRawFormula: !1,
16525
16525
  ignoreTextRotation: !1
16526
16526
  };
16527
- class Rs {
16527
+ class Is {
16528
16528
  constructor(t, n, r) {
16529
16529
  p(this, "_sheetId");
16530
16530
  p(this, "_snapshot");
@@ -16638,11 +16638,27 @@ class Rs {
16638
16638
  *
16639
16639
  * @param {number} row The row index of the cell
16640
16640
  * @param {number} col The column index of the cell
16641
+ * @param {boolean} [rowPriority] If true, row style will precede column style, otherwise use this._isRowStylePrecedeColumnStyle
16641
16642
  * @returns {IStyleData} The composed style of the cell
16642
16643
  */
16643
16644
  getComposedCellStyle(t, n, r) {
16644
16645
  const s = this.getDefaultCellStyleInternal(), i = this.getRowStyle(t), o = this.getColumnStyle(n), a = this.getCell(t, n), l = this._styles.getStyleByCell(a);
16645
- return (r != null ? r : this._isRowStylePrecedeColumnStyle) ? sa(s, o, i, a == null ? void 0 : a.themeStyle, l) : sa(s, i, o, a == null ? void 0 : a.themeStyle, l);
16646
+ return (r != null ? r : this._isRowStylePrecedeColumnStyle) ? Ur(s, o, i, a == null ? void 0 : a.themeStyle, l) : Ur(s, i, o, a == null ? void 0 : a.themeStyle, l);
16647
+ }
16648
+ /**
16649
+ * Get the composed style of the cell. If you want to get the style of the cell without merging row style,
16650
+ * col style and default style, please use {@link getCellStyle} instead.
16651
+ * For performance reason, if you already have the cell data, you can use this method to avoid getting the cell data again.
16652
+ *
16653
+ * @param {number} row The row index of the cell
16654
+ * @param {number} col The column index of the cell
16655
+ * @param {Nullable<ICellDataForSheetInterceptor>} cellData The cell data of the cell.
16656
+ * @param {boolean} [rowPriority] If true, row style will precede column style, otherwise use this._isRowStylePrecedeColumnStyle
16657
+ * @returns {IStyleData} The composed style of the cell
16658
+ */
16659
+ getComposedCellStyleByCellData(t, n, r, s) {
16660
+ const i = this.getDefaultCellStyleInternal(), o = this.getRowStyle(t), a = this.getColumnStyle(n), l = this._styles.getStyleByCell(r);
16661
+ return (s != null ? s : this._isRowStylePrecedeColumnStyle) ? Ur(i, a, o, r == null ? void 0 : r.themeStyle, l) : Ur(i, o, a, r == null ? void 0 : r.themeStyle, l);
16646
16662
  }
16647
16663
  /**
16648
16664
  * Returns WorkSheet Cell Data Matrix
@@ -16714,7 +16730,7 @@ class Rs {
16714
16730
  */
16715
16731
  clone() {
16716
16732
  const { _snapshot: t } = this, n = G.deepClone(t);
16717
- return new Rs(this.unitId, n, this._styles);
16733
+ return new Is(this.unitId, n, this._styles);
16718
16734
  }
16719
16735
  /**
16720
16736
  * Get the merged cell list of the sheet.
@@ -17188,9 +17204,9 @@ class Rs {
17188
17204
  let a, l = "document";
17189
17205
  const u = IE(n), c = o ? nt.tr : u.textRotation || nt.tr;
17190
17206
  let h = u.horizontalAlign || nt.ht;
17191
- const d = u.verticalAlign || nt.vt, f = u.wrapStrategy || nt.tb, g = u.paddingData || Bi;
17207
+ const d = u.verticalAlign || nt.vt, f = u.wrapStrategy || nt.tb, g = u.paddingData || ji;
17192
17208
  if (t.f && i)
17193
- a = Zr(t.f.toString(), {}, { verticalAlign: d }), h = nt.ht;
17209
+ a = Jr(t.f.toString(), {}, { verticalAlign: d }), h = nt.ht;
17194
17210
  else if (t.p) {
17195
17211
  const { centerAngle: R, vertexAngle: b } = ac(c);
17196
17212
  a = this._updateConfigAndGetDocumentModel(
@@ -17210,7 +17226,7 @@ class Rs {
17210
17226
  const R = El(n);
17211
17227
  l = Cl(R).fontCache;
17212
17228
  let b = FE(t);
17213
- t.t === fn.FORCE_STRING && i && (b = `'${b}`), a = Zr(b, R, {
17229
+ t.t === fn.FORCE_STRING && i && (b = `'${b}`), a = Jr(b, R, {
17214
17230
  ...u,
17215
17231
  textRotation: c,
17216
17232
  cellValueType: t.t
@@ -17247,14 +17263,14 @@ class Rs {
17247
17263
  * Only used for cell edit, and no need to rotate text when edit cell content!
17248
17264
  */
17249
17265
  getBlankCellDocumentModel(t, n, r) {
17250
- const s = this.getComposedCellStyle(n, r), i = El(s), o = this.getCellDocumentModel(t, s, { ignoreTextRotation: !0 });
17266
+ const s = this.getComposedCellStyleByCellData(n, r, t), i = El(s), o = this.getCellDocumentModel(t, s, { ignoreTextRotation: !0 });
17251
17267
  if (o != null)
17252
- return o.documentModel == null && (o.documentModel = Zr("", i)), o;
17268
+ return o.documentModel == null && (o.documentModel = Jr("", i)), o;
17253
17269
  const a = "";
17254
17270
  let l = "document";
17255
- const u = nt.tr, c = nt.ht, h = nt.vt, d = nt.tb, f = Bi;
17271
+ const u = nt.tr, c = nt.ht, h = nt.vt, d = nt.tb, f = ji;
17256
17272
  return l = Cl({}).fontCache, {
17257
- documentModel: Zr(a, i),
17273
+ documentModel: Jr(a, i),
17258
17274
  fontString: l,
17259
17275
  textRotation: u,
17260
17276
  wrapStrategy: d,
@@ -17265,7 +17281,7 @@ class Rs {
17265
17281
  }
17266
17282
  // Only used for cell edit, and no need to rotate text when edit cell content!
17267
17283
  getCellDocumentModelWithFormula(t, n, r) {
17268
- const s = this.getComposedCellStyle(n, r);
17284
+ const s = this.getComposedCellStyleByCellData(n, r, t);
17269
17285
  return this.getCellDocumentModel(t, s, {
17270
17286
  isDeepClone: !0,
17271
17287
  displayRawFormula: !0,
@@ -17317,7 +17333,7 @@ var $E = Object.getOwnPropertyDescriptor, HE = (e, t, n, r) => {
17317
17333
  function HR(e, t) {
17318
17334
  return `${e.getUnitId()}|${t.getSheetId()}`;
17319
17335
  }
17320
- let Is = class extends ko {
17336
+ let ws = class extends Po {
17321
17337
  constructor(t = {}, n) {
17322
17338
  super();
17323
17339
  p(this, "type", Se.UNIVER_SHEET);
@@ -17410,7 +17426,7 @@ let Is = class extends ko {
17410
17426
  if (s[t])
17411
17427
  return !1;
17412
17428
  s[t] = r, i.splice(n, 0, t);
17413
- const o = new Rs(this._unitId, r, this._styles);
17429
+ const o = new Is(this._unitId, r, this._styles);
17414
17430
  return this._worksheets.set(t, o), this._sheetCreated$.next(o), !0;
17415
17431
  }
17416
17432
  getSheetOrders() {
@@ -17552,7 +17568,7 @@ let Is = class extends ko {
17552
17568
  for (const i in r) {
17553
17569
  const o = r[i], { name: a } = o;
17554
17570
  o.name = this.uniqueSheetName(a), o.name !== a && this._logService.debug("[Workbook]", `The worksheet name ${a} is duplicated, we changed it to ${o.name}. Please fix the problem in your snapshot.`);
17555
- const l = new Rs(this._unitId, o, this._styles);
17571
+ const l = new Is(this._unitId, o, this._styles);
17556
17572
  n.set(i, l), s.includes(i) || s.push(i);
17557
17573
  }
17558
17574
  this.ensureActiveSheet();
@@ -17572,10 +17588,10 @@ let Is = class extends ko {
17572
17588
  this._snapshot.custom = t;
17573
17589
  }
17574
17590
  };
17575
- Is = HE([
17591
+ ws = HE([
17576
17592
  BE(1, bt)
17577
- ], Is);
17578
- class lc extends ko {
17593
+ ], ws);
17594
+ class lc extends Po {
17579
17595
  constructor(n) {
17580
17596
  var r;
17581
17597
  super();
@@ -17674,7 +17690,7 @@ var jE = Object.getOwnPropertyDescriptor, WE = (e, t, n, r) => {
17674
17690
  return s;
17675
17691
  }, Il = (e, t) => (n, r) => t(n, r, e);
17676
17692
  const vr = ct("univer.current");
17677
- let ji = class extends Ve {
17693
+ let Wi = class extends Ve {
17678
17694
  constructor(t, n) {
17679
17695
  super();
17680
17696
  p(this, "_unitsByType", /* @__PURE__ */ new Map());
@@ -17708,7 +17724,7 @@ let ji = class extends Ve {
17708
17724
  };
17709
17725
  }
17710
17726
  getCurrentTypeOfUnit$(t) {
17711
- return this.currentUnits$.pipe(qi((n) => {
17727
+ return this.currentUnits$.pipe(Zi((n) => {
17712
17728
  var r;
17713
17729
  return (r = n.get(t)) != null ? r : null;
17714
17730
  }), Oc());
@@ -17778,7 +17794,7 @@ let ji = class extends Ve {
17778
17794
  return t ? (n = this._getUnitById(t)) == null ? void 0 : n[0] : null;
17779
17795
  }
17780
17796
  focusUnit(t) {
17781
- this._focused$.next(t), this.focused instanceof Is ? (this._contextService.setContextValue(Kr, !0), this._contextService.setContextValue(Xr, !1), this._contextService.setContextValue(gr, !0), this._contextService.setContextValue(qr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof kt ? (this._contextService.setContextValue(Kr, !0), this._contextService.setContextValue(Xr, !0), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(qr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof lc ? (this._contextService.setContextValue(Kr, !0), this._contextService.setContextValue(Xr, !1), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(qr, !0), this.setCurrentUnitForType(t)) : (this._contextService.setContextValue(Kr, !1), this._contextService.setContextValue(Xr, !1), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(qr, !1));
17797
+ this._focused$.next(t), this.focused instanceof ws ? (this._contextService.setContextValue(Xr, !0), this._contextService.setContextValue(qr, !1), this._contextService.setContextValue(gr, !0), this._contextService.setContextValue(Zr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof kt ? (this._contextService.setContextValue(Xr, !0), this._contextService.setContextValue(qr, !0), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(Zr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof lc ? (this._contextService.setContextValue(Xr, !0), this._contextService.setContextValue(qr, !1), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(Zr, !0), this.setCurrentUnitForType(t)) : (this._contextService.setContextValue(Xr, !1), this._contextService.setContextValue(qr, !1), this._contextService.setContextValue(gr, !1), this._contextService.setContextValue(Zr, !1));
17782
17798
  }
17783
17799
  getFocusedUnit() {
17784
17800
  return this.focused;
@@ -17809,10 +17825,10 @@ let ji = class extends Ve {
17809
17825
  }
17810
17826
  }
17811
17827
  };
17812
- ji = WE([
17828
+ Wi = WE([
17813
17829
  Il(0, At(Yn)),
17814
17830
  Il(1, yr)
17815
- ], ji);
17831
+ ], Wi);
17816
17832
  var ke = /* @__PURE__ */ ((e) => (e[e.Starting = 0] = "Starting", e[e.Ready = 1] = "Ready", e[e.Rendered = 2] = "Rendered", e[e.Steady = 3] = "Steady", e))(ke || {});
17817
17833
  const uc = {
17818
17834
  0: "Starting",
@@ -17861,8 +17877,8 @@ let Wn = class extends Ve {
17861
17877
  onStage(t) {
17862
17878
  return Sc(this.lifecycle$.pipe(
17863
17879
  Rr((n) => n >= t),
17864
- ra((n) => n === t),
17865
- qi(() => {
17880
+ sa((n) => n === t),
17881
+ Zi(() => {
17866
17882
  })
17867
17883
  )).catch((n) => n.name === "EmptyError" ? Promise.reject(new GE(t)) : Promise.reject(n));
17868
17884
  }
@@ -17872,7 +17888,7 @@ let Wn = class extends Ve {
17872
17888
  * @returns An observable that emits the lifecycle stages, including the current
17873
17889
  */
17874
17890
  subscribeWithPrevious() {
17875
- return Tl(cc(this.stage), this._lifecycle$.pipe(Ml(1))).pipe(ra((t) => t === ke.Steady));
17891
+ return Tl(cc(this.stage), this._lifecycle$.pipe(Ml(1))).pipe(sa((t) => t === ke.Steady));
17876
17892
  }
17877
17893
  _reportProgress(t) {
17878
17894
  this._logService.debug("[LifecycleService]", `lifecycle progressed to "${uc[t]}".`);
@@ -17902,7 +17918,7 @@ const BR = ct("ILocalStorageService");
17902
17918
  class Fn extends Ve {
17903
17919
  constructor() {
17904
17920
  super();
17905
- p(this, "_currentLocale$", new et(bs.ZH_CN));
17921
+ p(this, "_currentLocale$", new et(As.ZH_CN));
17906
17922
  p(this, "currentLocale$", this._currentLocale$.asObservable());
17907
17923
  p(this, "_locales", null);
17908
17924
  p(this, "localeChanged$", new it());
@@ -17982,17 +17998,17 @@ var KE = Object.getOwnPropertyDescriptor, XE = (e, t, n, r) => {
17982
17998
  (o = e[i]) && (s = o(s) || s);
17983
17999
  return s;
17984
18000
  }, qE = (e, t) => (n, r) => t(n, r, e);
17985
- let Wi = class {
18001
+ let Yi = class {
17986
18002
  constructor(e) {
17987
18003
  this._userManagerService = e;
17988
18004
  }
17989
18005
  async list(e) {
17990
18006
  return {
17991
18007
  list: [{
17992
- type: _i.PERSON,
18008
+ type: pi.PERSON,
17993
18009
  mentions: [
17994
18010
  {
17995
- objectType: _i.PERSON,
18011
+ objectType: pi.PERSON,
17996
18012
  objectId: this._userManagerService.getCurrentUser().userID,
17997
18013
  label: this._userManagerService.getCurrentUser().name,
17998
18014
  metadata: {
@@ -18009,9 +18025,9 @@ let Wi = class {
18009
18025
  };
18010
18026
  }
18011
18027
  };
18012
- Wi = XE([
18013
- qE(0, At(Es))
18014
- ], Wi);
18028
+ Yi = XE([
18029
+ qE(0, At(Cs))
18030
+ ], Yi);
18015
18031
  const ZE = ct("univer.service.mention-io");
18016
18032
  var hc = /* @__PURE__ */ ((e) => (e.INIT = "init", e.FETCHING = "fetching", e.DONE = "done", e))(hc || {});
18017
18033
  const JE = ct("univer.permission-service");
@@ -18107,7 +18123,7 @@ var tC = Object.getOwnPropertyDescriptor, nC = (e, t, n, r) => {
18107
18123
  for (var s = r > 1 ? void 0 : r ? tC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
18108
18124
  (o = e[i]) && (s = o(s) || s);
18109
18125
  return s;
18110
- }, ci = (e, t) => (n, r) => t(n, r, e);
18126
+ }, hi = (e, t) => (n, r) => t(n, r, e);
18111
18127
  const rC = 4, dc = Symbol("DependentOn");
18112
18128
  class wl extends Ve {
18113
18129
  onStarting() {
@@ -18146,7 +18162,7 @@ function jR(...e) {
18146
18162
  t[dc] = e;
18147
18163
  };
18148
18164
  }
18149
- let ws = class {
18165
+ let Os = class {
18150
18166
  constructor(e, t, n) {
18151
18167
  p(this, "_pluginRegistry", /* @__PURE__ */ new Map());
18152
18168
  p(this, "_pluginStore", new sC());
@@ -18259,18 +18275,18 @@ let ws = class {
18259
18275
  return this._pluginStore.addPlugin(n), this._loadedPlugins.add(e.pluginName), this._logService.debug("[PluginService]", `Plugin "${n.getPluginName()}" loaded.`), n;
18260
18276
  }
18261
18277
  };
18262
- ws = nC([
18263
- ci(0, At(Yn)),
18264
- ci(1, At(Wn)),
18265
- ci(2, bt)
18266
- ], ws);
18278
+ Os = nC([
18279
+ hi(0, At(Yn)),
18280
+ hi(1, At(Wn)),
18281
+ hi(2, bt)
18282
+ ], Os);
18267
18283
  const Ol = ct("resource-loader-service");
18268
18284
  var iC = Object.getOwnPropertyDescriptor, oC = (e, t, n, r) => {
18269
18285
  for (var s = r > 1 ? void 0 : r ? iC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
18270
18286
  (o = e[i]) && (s = o(s) || s);
18271
18287
  return s;
18272
18288
  }, aC = (e, t) => (n, r) => t(n, r, e);
18273
- let Yi = class extends Ve {
18289
+ let zi = class extends Ve {
18274
18290
  constructor(t) {
18275
18291
  super();
18276
18292
  p(this, "_resourceMap", /* @__PURE__ */ new Map());
@@ -18330,10 +18346,10 @@ let Yi = class extends Ve {
18330
18346
  this._register$.complete(), this._resourceMap.clear();
18331
18347
  }
18332
18348
  };
18333
- Yi = oC([
18349
+ zi = oC([
18334
18350
  aC(0, bt)
18335
- ], Yi);
18336
- class zi extends Ve {
18351
+ ], zi);
18352
+ class Vi extends Ve {
18337
18353
  constructor() {
18338
18354
  super();
18339
18355
  p(this, "_darkMode$", new et(!1));
@@ -18407,8 +18423,8 @@ var lC = Object.getOwnPropertyDescriptor, uC = (e, t, n, r) => {
18407
18423
  for (var s = r > 1 ? void 0 : r ? lC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
18408
18424
  (o = e[i]) && (s = o(s) || s);
18409
18425
  return s;
18410
- }, hi = (e, t) => (n, r) => t(n, r, e);
18411
- const Xo = ct("univer.undo-redo.service"), cC = 20;
18426
+ }, di = (e, t) => (n, r) => t(n, r, e);
18427
+ const qo = ct("univer.undo-redo.service"), cC = 20;
18412
18428
  class fc {
18413
18429
  dispose() {
18414
18430
  }
@@ -18419,31 +18435,31 @@ class fc {
18419
18435
  const hC = "univer.command.redo", dC = "univer.command.undo", fC = new class extends fc {
18420
18436
  constructor() {
18421
18437
  super(...arguments);
18422
- p(this, "type", Ss.COMMAND);
18438
+ p(this, "type", vs.COMMAND);
18423
18439
  p(this, "id", dC);
18424
18440
  }
18425
18441
  handler(t) {
18426
- const n = t.get(Xo), r = n.pitchTopUndoElement();
18442
+ const n = t.get(qo), r = n.pitchTopUndoElement();
18427
18443
  if (!r)
18428
18444
  return !1;
18429
- const s = t.get(vs);
18430
- return Ji(r.undoMutations, s) ? (n.popUndoToRedo(), !0) : !1;
18445
+ const s = t.get(bs);
18446
+ return Qi(r.undoMutations, s) ? (n.popUndoToRedo(), !0) : !1;
18431
18447
  }
18432
18448
  }(), mC = new class extends fc {
18433
18449
  constructor() {
18434
18450
  super(...arguments);
18435
- p(this, "type", Ss.COMMAND);
18451
+ p(this, "type", vs.COMMAND);
18436
18452
  p(this, "id", hC);
18437
18453
  }
18438
18454
  handler(t) {
18439
- const n = t.get(Xo), r = n.pitchTopRedoElement();
18455
+ const n = t.get(qo), r = n.pitchTopRedoElement();
18440
18456
  if (!r)
18441
18457
  return !1;
18442
- const s = t.get(vs);
18443
- return Ji(r.redoMutations, s) ? (n.popRedoToUndo(), !0) : !1;
18458
+ const s = t.get(bs);
18459
+ return Qi(r.redoMutations, s) ? (n.popRedoToUndo(), !0) : !1;
18444
18460
  }
18445
18461
  }();
18446
- let Vi = class extends Ve {
18462
+ let Gi = class extends Ve {
18447
18463
  constructor(t, n, r) {
18448
18464
  super();
18449
18465
  p(this, "undoRedoStatus$");
@@ -18502,7 +18518,7 @@ let Vi = class extends Ve {
18502
18518
  }
18503
18519
  rollback(t, n) {
18504
18520
  const r = n || this._getFocusedUnitId(), s = this._getUndoStack(r), i = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
18505
- i && i.id === t && (s.pop(), Ji(i.undoMutations, this._commandService));
18521
+ i && i.id === t && (s.pop(), Qi(i.undoMutations, this._commandService));
18506
18522
  }
18507
18523
  __tempBatchingUndoRedo(t) {
18508
18524
  if (this._batchingStatus.has(t))
@@ -18551,15 +18567,15 @@ let Vi = class extends Ve {
18551
18567
  return n ? r ? t = xl : s ? t = Ll : t = (o = (i = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : i.getUnitId()) != null ? o : "" : t = (l = (a = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : a.getUnitId()) != null ? l : "", t;
18552
18568
  }
18553
18569
  };
18554
- Vi = uC([
18555
- hi(0, vr),
18556
- hi(1, vs),
18557
- hi(2, yr)
18558
- ], Vi);
18570
+ Gi = uC([
18571
+ di(0, vr),
18572
+ di(1, bs),
18573
+ di(2, yr)
18574
+ ], Gi);
18559
18575
  class gC {
18560
18576
  constructor(t, n = 100) {
18561
18577
  p(this, "_imageCacheMap");
18562
- this._injector = t, this._imageCacheMap = new fs(n);
18578
+ this._injector = t, this._imageCacheMap = new ms(n);
18563
18579
  }
18564
18580
  _getImageCacheKey(t, n) {
18565
18581
  return `${t}-${n}`;
@@ -18597,8 +18613,8 @@ const Sl = [
18597
18613
  Uint32Array,
18598
18614
  Float32Array,
18599
18615
  Float64Array
18600
- ], di = 1, tr = 8;
18601
- class qo {
18616
+ ], fi = 1, tr = 8;
18617
+ class Zo {
18602
18618
  /**
18603
18619
  * Creates an index from raw `ArrayBuffer` data.
18604
18620
  * @param {ArrayBuffer} data
@@ -18610,13 +18626,13 @@ class qo {
18610
18626
  if (n !== 219)
18611
18627
  throw new Error("Data does not appear to be in a KDBush format.");
18612
18628
  const s = r >> 4;
18613
- if (s !== di)
18614
- throw new Error(`Got v${s} data when expected v${di}.`);
18629
+ if (s !== fi)
18630
+ throw new Error(`Got v${s} data when expected v${fi}.`);
18615
18631
  const i = Sl[r & 15];
18616
18632
  if (!i)
18617
18633
  throw new Error("Unrecognized array type.");
18618
18634
  const [o] = new Uint16Array(t, 2, 1), [a] = new Uint32Array(t, 4, 1);
18619
- return new qo(a, o, i, t);
18635
+ return new Zo(a, o, i, t);
18620
18636
  }
18621
18637
  /**
18622
18638
  * Creates an index that will hold a given number of items.
@@ -18631,7 +18647,7 @@ class qo {
18631
18647
  const i = Sl.indexOf(this.ArrayType), o = t * 2 * this.ArrayType.BYTES_PER_ELEMENT, a = t * this.IndexArrayType.BYTES_PER_ELEMENT, l = (8 - a % 8) % 8;
18632
18648
  if (i < 0)
18633
18649
  throw new Error(`Unexpected typed array class: ${r}.`);
18634
- s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, tr, t), this.coords = new this.ArrayType(this.data, tr + a + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(tr + o + a + l), this.ids = new this.IndexArrayType(this.data, tr, t), this.coords = new this.ArrayType(this.data, tr + a + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (di << 4) + i]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
18650
+ s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, tr, t), this.coords = new this.ArrayType(this.data, tr + a + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(tr + o + a + l), this.ids = new this.IndexArrayType(this.data, tr, t), this.coords = new this.ArrayType(this.data, tr + a + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (fi << 4) + i]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
18635
18651
  }
18636
18652
  /**
18637
18653
  * Add a point to the index.
@@ -18650,7 +18666,7 @@ class qo {
18650
18666
  const t = this._pos >> 1;
18651
18667
  if (t !== this.numItems)
18652
18668
  throw new Error(`Added ${t} items when expected ${this.numItems}.`);
18653
- return Gi(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0), this._finished = !0, this;
18669
+ return Ki(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0), this._finished = !0, this;
18654
18670
  }
18655
18671
  /**
18656
18672
  * Search the index for items within a given bounding box.
@@ -18700,10 +18716,10 @@ class qo {
18700
18716
  return l;
18701
18717
  }
18702
18718
  }
18703
- function Gi(e, t, n, r, s, i) {
18719
+ function Ki(e, t, n, r, s, i) {
18704
18720
  if (s - r <= n) return;
18705
18721
  const o = r + s >> 1;
18706
- mc(e, t, o, r, s, i), Gi(e, t, n, r, o - 1, 1 - i), Gi(e, t, n, o + 1, s, 1 - i);
18722
+ mc(e, t, o, r, s, i), Ki(e, t, n, r, o - 1, 1 - i), Ki(e, t, n, o + 1, s, 1 - i);
18707
18723
  }
18708
18724
  function mc(e, t, n, r, s, i) {
18709
18725
  for (; s > r; ) {
@@ -18721,9 +18737,9 @@ function mc(e, t, n, r, s, i) {
18721
18737
  }
18722
18738
  }
18723
18739
  function nr(e, t, n, r) {
18724
- fi(e, n, r), fi(t, 2 * n, 2 * r), fi(t, 2 * n + 1, 2 * r + 1);
18740
+ mi(e, n, r), mi(t, 2 * n, 2 * r), mi(t, 2 * n + 1, 2 * r + 1);
18725
18741
  }
18726
- function fi(e, t, n) {
18742
+ function mi(e, t, n) {
18727
18743
  const r = e[t];
18728
18744
  e[t] = e[n], e[n] = r;
18729
18745
  }
@@ -18743,7 +18759,7 @@ class YR {
18743
18759
  this.clear();
18744
18760
  }
18745
18761
  getTree(t, n) {
18746
- return this._tree.has(t) || this._tree.set(t, /* @__PURE__ */ new Map()), this._tree.get(t).has(n) || this._tree.get(t).set(n, new Ai()), this._tree.get(t).get(n);
18762
+ return this._tree.has(t) || this._tree.set(t, /* @__PURE__ */ new Map()), this._tree.get(t).has(n) || this._tree.get(t).set(n, new yi()), this._tree.get(t).get(n);
18747
18763
  }
18748
18764
  _getOneCellCache(t, n, r, s) {
18749
18765
  return this._oneCellCache.has(t) || this._oneCellCache.set(t, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).has(n) || this._oneCellCache.get(t).set(n, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).get(n).has(r) || this._oneCellCache.get(t).get(n).set(r, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).get(n).get(r).has(s) || this._oneCellCache.get(t).get(n).get(r).set(s, /* @__PURE__ */ new Set()), this._oneCellCache.get(t).get(n).get(r).get(s);
@@ -18808,7 +18824,7 @@ class YR {
18808
18824
  for (const [n, r] of this._oneCellCache) {
18809
18825
  this._kdTree.has(n) || this._kdTree.set(n, /* @__PURE__ */ new Map());
18810
18826
  for (const [s, i] of r) {
18811
- const o = this._getRdTreeItems(i), a = new qo(o.length);
18827
+ const o = this._getRdTreeItems(i), a = new Zo(o.length);
18812
18828
  (t = this._kdTree.get(n)) == null || t.set(s, {
18813
18829
  tree: a,
18814
18830
  items: o
@@ -18912,7 +18928,7 @@ class YR {
18912
18928
  for (const n in t) {
18913
18929
  this._tree.set(n, /* @__PURE__ */ new Map());
18914
18930
  for (const r in t[n]) {
18915
- const s = new Ai();
18931
+ const s = new yi();
18916
18932
  s.fromJSON(t[n][r]), this._tree.get(n).set(r, s);
18917
18933
  }
18918
18934
  }
@@ -18935,7 +18951,7 @@ var _C = Object.getOwnPropertyDescriptor, pC = (e, t, n, r) => {
18935
18951
  (o = e[i]) && (s = o(s) || s);
18936
18952
  return s;
18937
18953
  }, EC = (e, t) => (n, r) => t(n, r, e);
18938
- let Ki = class extends Ve {
18954
+ let Xi = class extends Ve {
18939
18955
  constructor(t) {
18940
18956
  super();
18941
18957
  p(this, "_fontLocale");
@@ -18957,15 +18973,15 @@ let Ki = class extends Ve {
18957
18973
  _localeInitial() {
18958
18974
  }
18959
18975
  };
18960
- Ki = pC([
18976
+ Xi = pC([
18961
18977
  EC(0, At(Fn))
18962
- ], Ki);
18978
+ ], Xi);
18963
18979
  var CC = Object.getOwnPropertyDescriptor, RC = (e, t, n, r) => {
18964
18980
  for (var s = r > 1 ? void 0 : r ? CC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
18965
18981
  (o = e[i]) && (s = o(s) || s);
18966
18982
  return s;
18967
- }, Jr = (e, t) => (n, r) => t(n, r, e);
18968
- let bl = class extends Ki {
18983
+ }, Qr = (e, t) => (n, r) => t(n, r, e);
18984
+ let bl = class extends Xi {
18969
18985
  constructor(t, n, r, s, i, o) {
18970
18986
  super(r);
18971
18987
  /**
@@ -19527,10 +19543,10 @@ let bl = class extends Ki {
19527
19543
  }
19528
19544
  };
19529
19545
  bl = RC([
19530
- Jr(2, At(Fn)),
19531
- Jr(3, yr),
19532
- Jr(4, ic),
19533
- Jr(5, At(Yn))
19546
+ Qr(2, At(Fn)),
19547
+ Qr(3, yr),
19548
+ Qr(4, ic),
19549
+ Qr(5, At(Yn))
19534
19550
  ], bl);
19535
19551
  function gc(e, t, n, r) {
19536
19552
  const s = e - 1, i = t - 1, o = n[s] || 0;
@@ -19641,7 +19657,7 @@ var OC = /* @__PURE__ */ ((e) => (e[e.INFO = 0] = "INFO", e[e.STOP = 1] = "STOP"
19641
19657
  (o = e[i]) && (s = o(s) || s);
19642
19658
  return s;
19643
19659
  }, Al = (e, t) => (n, r) => t(n, r, e);
19644
- let Xi = class extends Ve {
19660
+ let qi = class extends Ve {
19645
19661
  constructor(e, t) {
19646
19662
  super(), this._resourceManagerService = e, this._univerInstanceService = t, this._init();
19647
19663
  }
@@ -19706,10 +19722,10 @@ let Xi = class extends Ve {
19706
19722
  return r.resources = n, r;
19707
19723
  }
19708
19724
  };
19709
- Xi = TC([
19710
- Al(0, At(Bo)),
19725
+ qi = TC([
19726
+ Al(0, At(jo)),
19711
19727
  Al(1, At(vr))
19712
- ], Xi);
19728
+ ], qi);
19713
19729
  class XR {
19714
19730
  /**
19715
19731
  * Create a Univer instance.
@@ -19719,15 +19735,15 @@ class XR {
19719
19735
  constructor(t = {}, n) {
19720
19736
  p(this, "_startedTypes", /* @__PURE__ */ new Set());
19721
19737
  p(this, "_injector");
19722
- p(this, "_disposingCallbacks", new Zi());
19738
+ p(this, "_disposingCallbacks", new Ji());
19723
19739
  const r = this._injector = MC(n, t == null ? void 0 : t.override), { theme: s, darkMode: i, locale: o, locales: a, logLevel: l } = t;
19724
- s && this._injector.get(zi).setTheme(s), i && this._injector.get(zi).setDarkMode(i), a && this._injector.get(Fn).load(a), o && this._injector.get(Fn).setLocale(o), l && this._injector.get(bt).setLogLevel(l), this._init(r);
19740
+ s && this._injector.get(Vi).setTheme(s), i && this._injector.get(Vi).setDarkMode(i), a && this._injector.get(Fn).load(a), o && this._injector.get(Fn).setLocale(o), l && this._injector.get(bt).setLogLevel(l), this._init(r);
19725
19741
  }
19726
19742
  get _univerInstanceService() {
19727
19743
  return this._injector.get(vr);
19728
19744
  }
19729
19745
  get _pluginService() {
19730
- return this._injector.get(ws);
19746
+ return this._injector.get(Os);
19731
19747
  }
19732
19748
  /**
19733
19749
  * @ignore
@@ -19777,7 +19793,7 @@ class XR {
19777
19793
  return this._injector.get(bt).warn("[Univer]", "Univer.createUniverSlide is deprecated, use createUnit instead"), this._univerInstanceService.createUnit(Se.UNIVER_SLIDE, t);
19778
19794
  }
19779
19795
  _init(t) {
19780
- this._univerInstanceService.registerCtorForType(Se.UNIVER_SHEET, Is), this._univerInstanceService.registerCtorForType(Se.UNIVER_DOC, kt), this._univerInstanceService.registerCtorForType(Se.UNIVER_SLIDE, lc);
19796
+ this._univerInstanceService.registerCtorForType(Se.UNIVER_SHEET, ws), this._univerInstanceService.registerCtorForType(Se.UNIVER_DOC, kt), this._univerInstanceService.registerCtorForType(Se.UNIVER_SLIDE, lc);
19781
19797
  const n = t.get(vr);
19782
19798
  n.__setCreateHandler(
19783
19799
  (r, s, i, o) => {
@@ -19803,25 +19819,25 @@ function MC(e, t) {
19803
19819
  const n = eC([
19804
19820
  [mE],
19805
19821
  [Fn],
19806
- [zi],
19822
+ [Vi],
19807
19823
  [Wn],
19808
- [ws],
19809
- [Es],
19824
+ [Os],
19825
+ [Cs],
19810
19826
  // abstract services
19811
- [vr, { useClass: ji }],
19827
+ [vr, { useClass: Wi }],
19812
19828
  [JE, { useClass: QE }],
19813
19829
  [bt, { useClass: ah, lazy: !0 }],
19814
- [vs, { useClass: gi }],
19815
- [Xo, { useClass: Vi, lazy: !0 }],
19830
+ [bs, { useClass: _i }],
19831
+ [qo, { useClass: Gi, lazy: !0 }],
19816
19832
  [ic, { useClass: hE }],
19817
19833
  [yr, { useClass: ih }],
19818
- [Bo, { useClass: Yi, lazy: !0 }],
19819
- [Ol, { useClass: Xi, lazy: !0 }],
19820
- [m_, { useClass: Pi }],
19821
- [ZE, { useClass: Wi, lazy: !0 }]
19834
+ [jo, { useClass: zi, lazy: !0 }],
19835
+ [Ol, { useClass: qi, lazy: !0 }],
19836
+ [m_, { useClass: Fi }],
19837
+ [ZE, { useClass: Yi, lazy: !0 }]
19822
19838
  ], t), r = e ? e.createChild(n) : new Yn(n);
19823
19839
  return zc(r, [
19824
- [Es],
19840
+ [Cs],
19825
19841
  [Ol]
19826
19842
  ]), r;
19827
19843
  }
@@ -19837,7 +19853,7 @@ export {
19837
19853
  Nh as ArrowsAndMarkersShapes,
19838
19854
  ZC as AsyncInterceptorManager,
19839
19855
  jC as AsyncLock,
19840
- Pi as AuthzIoLocalService,
19856
+ Fi as AuthzIoLocalService,
19841
19857
  Eh as AutoFillSeries,
19842
19858
  qt as BaselineOffset,
19843
19859
  yh as BasicShapes,
@@ -19846,23 +19862,23 @@ export {
19846
19862
  Le as BorderStyleTypes,
19847
19863
  Ch as BorderType,
19848
19864
  Je as BuildTextUtils,
19849
- Ts as BulletAlignment,
19865
+ Ms as BulletAlignment,
19850
19866
  oa as COLORS,
19851
19867
  VC as CanceledError,
19852
19868
  ir as CellModeEnum,
19853
19869
  fn as CellValueType,
19854
19870
  Hn as Color,
19855
- to as ColorBuilder,
19871
+ no as ColorBuilder,
19856
19872
  Tt as ColorKit,
19857
19873
  vt as ColorType,
19858
19874
  em as ColumnSeparatorType,
19859
- gi as CommandService,
19860
- Ss as CommandType,
19875
+ _i as CommandService,
19876
+ vs as CommandType,
19861
19877
  Rh as CommonHideTypes,
19862
19878
  hE as ConfigService,
19863
19879
  ih as ContextService,
19864
19880
  Ih as CopyPasteType,
19865
- mi as CustomCommandExecutionError,
19881
+ gi as CustomCommandExecutionError,
19866
19882
  kn as CustomDecorationType,
19867
19883
  _n as CustomRangeType,
19868
19884
  q1 as DEFAULT_CELL,
@@ -19907,7 +19923,7 @@ export {
19907
19923
  Sh as Dimension,
19908
19924
  vh as Direction,
19909
19925
  Ve as Disposable,
19910
- Zi as DisposableCollection,
19926
+ Ji as DisposableCollection,
19911
19927
  Xf as DocStyleType,
19912
19928
  kt as DocumentDataModel,
19913
19929
  hu as DocumentFlavor,
@@ -19918,27 +19934,27 @@ export {
19918
19934
  c_ as EventState,
19919
19935
  ER as EventSubject,
19920
19936
  NR as FOCUSING_COMMON_DRAWINGS,
19921
- Xr as FOCUSING_DOC,
19937
+ qr as FOCUSING_DOC,
19922
19938
  OR as FOCUSING_EDITOR_BUT_HIDDEN,
19923
19939
  SR as FOCUSING_EDITOR_INPUT_FORMULA,
19924
19940
  bR as FOCUSING_EDITOR_STANDALONE,
19925
19941
  fE as FOCUSING_FX_BAR_EDITOR,
19926
19942
  AR as FOCUSING_PANEL_EDITOR,
19927
19943
  gr as FOCUSING_SHEET,
19928
- qr as FOCUSING_SLIDE,
19929
- Kr as FOCUSING_UNIT,
19944
+ Zr as FOCUSING_SLIDE,
19945
+ Xr as FOCUSING_UNIT,
19930
19946
  vR as FOCUSING_UNIVER_EDITOR,
19931
19947
  yR as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
19932
19948
  TR as FORMULA_EDITOR_ACTIVATED,
19933
19949
  qf as FollowNumberWithType,
19934
- pi as FontItalic,
19950
+ Ei as FontItalic,
19935
19951
  dr as FontStyleType,
19936
- Ei as FontWeight,
19952
+ Ci as FontWeight,
19937
19953
  Jf as GridType,
19938
19954
  Kh as HLSColor,
19939
19955
  Dt as HorizontalAlign,
19940
19956
  m_ as IAuthzIoService,
19941
- vs as ICommandService,
19957
+ bs as ICommandService,
19942
19958
  ic as IConfigService,
19943
19959
  yr as IContextService,
19944
19960
  _l as IImageIoService,
@@ -19947,9 +19963,9 @@ export {
19947
19963
  ZE as IMentionIOService,
19948
19964
  JE as IPermissionService,
19949
19965
  Ol as IResourceLoaderService,
19950
- Bo as IResourceManagerService,
19966
+ jo as IResourceManagerService,
19951
19967
  jc as IS_ROW_STYLE_PRECEDE_COLUMN_STYLE,
19952
- Xo as IUndoRedoService,
19968
+ qo as IUndoRedoService,
19953
19969
  vr as IUniverInstanceService,
19954
19970
  gC as ImageCacheMap,
19955
19971
  oc as ImageSourceType,
@@ -19959,20 +19975,20 @@ export {
19959
19975
  bh as InterpolationPointType,
19960
19976
  hR as JSON1,
19961
19977
  Qt as JSONX,
19962
- Pr as LRUHelper,
19963
- fs as LRUMap,
19978
+ Fr as LRUHelper,
19979
+ ms as LRUMap,
19964
19980
  Wn as LifecycleService,
19965
19981
  ke as LifecycleStages,
19966
19982
  GE as LifecycleUnreachableError,
19967
19983
  me as ListGlyphType,
19968
- Vi as LocalUndoRedoService,
19984
+ Gi as LocalUndoRedoService,
19969
19985
  Fn as LocaleService,
19970
- bs as LocaleType,
19986
+ As as LocaleType,
19971
19987
  oh as LogLevel,
19972
19988
  Dr as MOVE_BUFFER_VALUE,
19973
19989
  zn as MemoryCursor,
19974
- Wi as MentionIOLocalService,
19975
- _i as MentionType,
19990
+ Yi as MentionIOLocalService,
19991
+ pi as MentionType,
19976
19992
  J1 as NAMED_STYLE_MAP,
19977
19993
  Q1 as NAMED_STYLE_SPACE_MAP,
19978
19994
  qe as NamedStyleType,
@@ -19984,19 +20000,19 @@ export {
19984
20000
  Th as OtherShapes,
19985
20001
  nR as PAGE_SIZE,
19986
20002
  V1 as PAPER_TYPES,
19987
- xs as PRESET_LIST_TYPE,
20003
+ Ds as PRESET_LIST_TYPE,
19988
20004
  eR as PRINT_CHART_COMPONENT_KEY,
19989
20005
  Om as PageElementType,
19990
20006
  Rm as PageOrientType,
19991
20007
  du as PageType,
19992
20008
  mt as PaperType,
19993
20009
  nm as ParagraphElementType,
19994
- ps as ParagraphStyleBuilder,
19995
- Us as ParagraphStyleValue,
20010
+ Es as ParagraphStyleBuilder,
20011
+ ks as ParagraphStyleValue,
19996
20012
  QE as PermissionService,
19997
20013
  hc as PermissionStatus,
19998
20014
  wl as Plugin,
19999
- ws as PluginService,
20015
+ Os as PluginService,
20000
20016
  sm as PositionedObjectLayoutType,
20001
20017
  Yt as PresetListType,
20002
20018
  Ah as ProtectionType,
@@ -20004,7 +20020,7 @@ export {
20004
20020
  dR as QuickListTypeMap,
20005
20021
  ld as RANGE_DIRECTION,
20006
20022
  ge as RANGE_TYPE,
20007
- Ai as RBush,
20023
+ yi as RBush,
20008
20024
  a1 as RCDisposable,
20009
20025
  R1 as RGBA_PAREN,
20010
20026
  C1 as RGB_PAREN,
@@ -20019,8 +20035,8 @@ export {
20019
20035
  Pl as RegistryAsMap,
20020
20036
  Lh as RelativeDate,
20021
20037
  Sm as RelativeSlideLink,
20022
- Yi as ResourceManagerService,
20023
- Ci as RgbColor,
20038
+ zi as ResourceManagerService,
20039
+ Ri as RgbColor,
20024
20040
  Pn as RichTextBuilder,
20025
20041
  dn as RichTextValue,
20026
20042
  o1 as RxDisposable,
@@ -20029,7 +20045,7 @@ export {
20029
20045
  bl as SheetSkeleton,
20030
20046
  xh as SheetTypes,
20031
20047
  PE as SheetViewModel,
20032
- Ki as Skeleton,
20048
+ Xi as Skeleton,
20033
20049
  Mu as SliceBodyType,
20034
20050
  lc as SlideDataModel,
20035
20051
  im as SpacingRule,
@@ -20044,29 +20060,29 @@ export {
20044
20060
  hm as TableTextWrapType,
20045
20061
  Dh as TextDecoration,
20046
20062
  hn as TextDecorationBuilder,
20047
- ds as TextDirection,
20063
+ fs as TextDirection,
20048
20064
  tm as TextDirectionType,
20049
20065
  gn as TextStyleBuilder,
20050
- Ds as TextStyleValue,
20066
+ Us as TextStyleValue,
20051
20067
  Ne as TextX,
20052
20068
  J as TextXActionType,
20053
- Ri as ThemeColor,
20069
+ Ii as ThemeColor,
20054
20070
  rt as ThemeColorType,
20055
- Qi as ThemeColors,
20056
- zi as ThemeService,
20071
+ eo as ThemeColors,
20072
+ Vi as ThemeService,
20057
20073
  G as Tools,
20058
20074
  fC as UndoCommand,
20059
20075
  dC as UndoCommandId,
20060
- ko as UnitModel,
20076
+ Po as UnitModel,
20061
20077
  XR as Univer,
20062
- ji as UniverInstanceService,
20078
+ Wi as UniverInstanceService,
20063
20079
  Se as UniverInstanceType,
20064
20080
  pe as UpdateDocsAttributeType,
20065
- Es as UserManagerService,
20081
+ Cs as UserManagerService,
20066
20082
  xn as VerticalAlign,
20067
20083
  fm as VerticalAlignmentType,
20068
- Is as Workbook,
20069
- Rs as Worksheet,
20084
+ ws as Workbook,
20085
+ Is as Worksheet,
20070
20086
  $n as WrapStrategy,
20071
20087
  rm as WrapTextType,
20072
20088
  wE as addLinkToDocumentModel,
@@ -20086,7 +20102,7 @@ export {
20086
20102
  m1 as codeToBlob,
20087
20103
  Xa as composeBody,
20088
20104
  Gc as composeInterceptors,
20089
- sa as composeStyles,
20105
+ Ur as composeStyles,
20090
20106
  y1 as concatMatrixArray,
20091
20107
  E1 as convertBodyToHtml,
20092
20108
  dd as convertCellToRange,
@@ -20095,8 +20111,8 @@ export {
20095
20111
  F1 as covertCellValues,
20096
20112
  ia as covertTextRunToHtml,
20097
20113
  qC as createAsyncInterceptorKey,
20098
- ki as createDefaultUser,
20099
- Zr as createDocumentModelWithStyle,
20114
+ Pi as createDefaultUser,
20115
+ Jr as createDocumentModelWithStyle,
20100
20116
  KC as createInterceptorKey,
20101
20117
  YC as createInternalEditorID,
20102
20118
  ka as createRowColIter,
@@ -20115,7 +20131,7 @@ export {
20115
20131
  F0 as get,
20116
20132
  mn as getArrayLength,
20117
20133
  Ut as getBodySlice,
20118
- zs as getBodySliceHtml,
20134
+ Vs as getBodySliceHtml,
20119
20135
  D1 as getBorderStyleType,
20120
20136
  gc as getCellCoordByIndexSimple,
20121
20137
  b1 as getCellInfoInMergeData,
@@ -20130,18 +20146,18 @@ export {
20130
20146
  Pm as getIntersectRange,
20131
20147
  $R as getOriginCellValue,
20132
20148
  fg as getParagraphsSlice,
20133
- $o as getPlainText,
20149
+ Ho as getPlainText,
20134
20150
  _1 as getReverseDirection,
20135
20151
  fR as getSectionBreakSlice,
20136
20152
  dg as getTableSlice,
20137
- Li as getTextRunSlice,
20153
+ xi as getTextRunSlice,
20138
20154
  IC as getTransformOffsetX,
20139
20155
  wC as getTransformOffsetY,
20140
20156
  HR as getWorksheetUID,
20141
20157
  HC as groupBy,
20142
20158
  x1 as handleStyleToString,
20143
20159
  W1 as hashAlgorithm,
20144
- no as horizontalLineSegmentsSubtraction,
20160
+ ro as horizontalLineSegmentsSubtraction,
20145
20161
  aa as insertMatrixArray,
20146
20162
  Jd as insertTextToContent,
20147
20163
  JC as invertColorByHSL,
@@ -20182,13 +20198,13 @@ export {
20182
20198
  rR as moveRangeByOffset,
20183
20199
  WR as nameCharacterCheck,
20184
20200
  mR as normalizeBody,
20185
- Ls as normalizeTextRuns,
20201
+ xs as normalizeTextRuns,
20186
20202
  aR as numberToABC,
20187
20203
  lR as numberToListABC,
20188
20204
  Y1 as numfmt,
20189
20205
  sR as queryObjectMatrix,
20190
20206
  zC as registerDependencies,
20191
- Os as remove,
20207
+ Ss as remove,
20192
20208
  Wm as repeatStringNumTimes,
20193
20209
  _R as replaceInDocumentBody,
20194
20210
  r1 as requestImmediateMacroTask,
@@ -20198,7 +20214,7 @@ export {
20198
20214
  v1 as selectionToArray,
20199
20215
  rh as sequence,
20200
20216
  nh as sequenceAsync,
20201
- Ji as sequenceExecute,
20217
+ Qi as sequenceExecute,
20202
20218
  l1 as sequenceExecuteAsync,
20203
20219
  wR as set,
20204
20220
  Vc as shallowEqual,
@@ -20206,10 +20222,10 @@ export {
20206
20222
  N1 as sliceMatrixArray,
20207
20223
  uR as sortRules,
20208
20224
  cR as sortRulesByDesc,
20209
- Ms as sortRulesFactory,
20225
+ Ls as sortRulesFactory,
20210
20226
  la as spliceArray,
20211
20227
  mu as splitIntoGrid,
20212
- ra as takeAfter,
20228
+ sa as takeAfter,
20213
20229
  Uu as textDiff,
20214
20230
  GC as throttle,
20215
20231
  We as toDisposable,