@univerjs/core 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/lib/cjs/index.js +7 -7
  2. package/lib/es/index.js +670 -650
  3. package/lib/types/common/unit.d.ts +1 -1
  4. package/lib/types/docs/data-model/action-types.d.ts +1 -1
  5. package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +1 -1
  6. package/lib/types/docs/data-model/document-data-model.d.ts +4 -5
  7. package/lib/types/docs/data-model/empty-snapshot.d.ts +1 -1
  8. package/lib/types/docs/data-model/text-x/text-x.d.ts +2 -2
  9. package/lib/types/docs/data-model/text-x/utils.d.ts +2 -2
  10. package/lib/types/observer/observable-hooks.d.ts +1 -1
  11. package/lib/types/services/command/command.service.d.ts +5 -3
  12. package/lib/types/services/context/context.service.d.ts +1 -1
  13. package/lib/types/services/floating-object/floating-object-manager.service.d.ts +3 -3
  14. package/lib/types/services/instance/instance.service.d.ts +7 -7
  15. package/lib/types/services/lifecycle/lifecycle.service.d.ts +4 -4
  16. package/lib/types/services/locale/locale.service.d.ts +6 -4
  17. package/lib/types/services/permission/permission.service.d.ts +4 -4
  18. package/lib/types/services/permission/univer.permission.service.d.ts +2 -2
  19. package/lib/types/services/plugin/plugin-holder.d.ts +5 -5
  20. package/lib/types/services/plugin/plugin.d.ts +3 -3
  21. package/lib/types/services/plugin/plugin.service.d.ts +3 -3
  22. package/lib/types/services/resource-loader/resource-loader.service.d.ts +5 -5
  23. package/lib/types/services/resource-loader/type.d.ts +1 -1
  24. package/lib/types/services/resource-manager/resource-manager.service.d.ts +2 -2
  25. package/lib/types/services/resource-manager/type.d.ts +3 -3
  26. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +3 -3
  27. package/lib/types/services/snapshot/snapshot-server.service.d.ts +1 -1
  28. package/lib/types/services/snapshot/snapshot-transform.d.ts +4 -4
  29. package/lib/types/services/snapshot/snapshot-utils.d.ts +5 -5
  30. package/lib/types/services/theme/theme.service.d.ts +1 -1
  31. package/lib/types/services/undoredo/undoredo.service.d.ts +6 -6
  32. package/lib/types/services/user-manager/user-manager.service.d.ts +5 -0
  33. package/lib/types/shared/color/color.d.ts +1 -1
  34. package/lib/types/shared/common.d.ts +5 -5
  35. package/lib/types/shared/lifecycle.d.ts +3 -3
  36. package/lib/types/shared/object-matrix-query.d.ts +1 -1
  37. package/lib/types/shared/object-matrix.d.ts +1 -1
  38. package/lib/types/shared/rectangle.d.ts +1 -1
  39. package/lib/types/shared/rxjs.d.ts +1 -1
  40. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -1
  41. package/lib/types/sheets/column-manager.d.ts +2 -2
  42. package/lib/types/sheets/empty-snapshot.d.ts +1 -1
  43. package/lib/types/sheets/range.d.ts +4 -4
  44. package/lib/types/sheets/row-manager.d.ts +3 -3
  45. package/lib/types/sheets/styles.d.ts +1 -1
  46. package/lib/types/sheets/view-model.d.ts +3 -3
  47. package/lib/types/sheets/workbook.d.ts +6 -6
  48. package/lib/types/sheets/worksheet.d.ts +7 -7
  49. package/lib/types/slides/slide-model.d.ts +1 -2
  50. package/lib/types/types/enum/locale-type.d.ts +2 -1
  51. package/lib/types/types/interfaces/i-cell-custom-render.d.ts +3 -3
  52. package/lib/types/types/interfaces/i-cell-data.d.ts +5 -5
  53. package/lib/types/types/interfaces/i-cell-validation-data.d.ts +1 -1
  54. package/lib/types/types/interfaces/i-data-validation.d.ts +5 -5
  55. package/lib/types/types/interfaces/i-document-data.d.ts +10 -4
  56. package/lib/types/types/interfaces/i-extra-model-data.d.ts +0 -6
  57. package/lib/types/types/interfaces/i-selection-data.d.ts +1 -1
  58. package/lib/types/types/interfaces/i-shape-properties.d.ts +1 -1
  59. package/lib/types/types/interfaces/i-slide-data.d.ts +10 -10
  60. package/lib/types/types/interfaces/i-style-data.d.ts +3 -3
  61. package/lib/types/types/interfaces/i-univer-data.d.ts +4 -4
  62. package/lib/types/types/interfaces/i-workbook-data.d.ts +4 -4
  63. package/lib/types/types/interfaces/i-worksheet-data.d.ts +6 -6
  64. package/lib/types/univer.d.ts +7 -7
  65. package/lib/umd/index.js +9 -9
  66. package/package.json +8 -8
package/lib/es/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var ws = Object.defineProperty;
2
- var Ls = (t, e, s) => e in t ? ws(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
1
+ var Ss = Object.defineProperty;
2
+ var Ls = (t, e, s) => e in t ? Ss(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var d = (t, e, s) => (Ls(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import { Subject as H, Observable as ie, filter as Xt, merge as bs, timer as vs, BehaviorSubject as q, map as Us, distinctUntilChanged as Ts, combineLatest as Ms } from "rxjs";
5
- import { filter as Ds, debounceTime as ps, first as xs, map as Ps } from "rxjs/operators";
6
- import { createIdentifier as G, Inject as P, Injector as tt } from "@wendellhu/redi";
7
- function Hs() {
8
- Fs();
4
+ import { Subject as H, Observable as ie, filter as Xt, merge as bs, timer as vs, BehaviorSubject as j, map as Us, distinctUntilChanged as Ts, combineLatest as Ms, finalize as Ds } from "rxjs";
5
+ import { filter as ps, debounceTime as xs, first as Ps, map as Hs } from "rxjs/operators";
6
+ import { createIdentifier as $, Inject as P, Injector as tt } from "@wendellhu/redi";
7
+ function Fs() {
8
+ Ws();
9
9
  }
10
10
  const dt = typeof global < "u" ? global : typeof self < "u" ? self : window;
11
- function Fs() {
11
+ function Ws() {
12
12
  typeof dt.requestIdleCallback != "function" && (dt.requestIdleCallback = function(s) {
13
13
  const n = Date.now();
14
14
  return setTimeout(function() {
@@ -24,7 +24,7 @@ function Fs() {
24
24
  clearTimeout(s);
25
25
  });
26
26
  }
27
- function Ws(t, e) {
27
+ function $s(t, e) {
28
28
  let s = 0, n = t.length - 1;
29
29
  for (; s <= n; ) {
30
30
  const r = Math.floor((n + s) / 2);
@@ -54,16 +54,16 @@ function Gs(t, e) {
54
54
  }
55
55
  return i;
56
56
  }
57
- function Co(t, e) {
57
+ function Oo(t, e) {
58
58
  let s = t.length - 1;
59
- return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? Number.POSITIVE_INFINITY : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = Gs(t, e) : s = Ws(t, e), s);
59
+ return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? Number.POSITIVE_INFINITY : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = Gs(t, e) : s = $s(t, e), s);
60
60
  }
61
- function Oo(t) {
61
+ function Ao(t) {
62
62
  const e = new Blob([t], { type: "text/javascript" });
63
63
  return window.URL.createObjectURL(e);
64
64
  }
65
- var Bs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Bs || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(S || {}), $s = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t.TLBR = "tlbr", t.TLBC_TLMR = "tlbc_tlmr", t.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", t.BLTR = "bl_tr", t.MLTR_BCTR = "mltr_bctr", t))($s || {}), B = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(B || {}), ks = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(ks || {}), Vs = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(Vs || {}), js = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(js || {}), Ks = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Ks || {}), Ys = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(Ys || {});
66
- function Ao(t) {
65
+ var Bs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Bs || {}), w = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.THIN = 1] = "THIN", t[t.HAIR = 2] = "HAIR", t[t.DOTTED = 3] = "DOTTED", t[t.DASHED = 4] = "DASHED", t[t.DASH_DOT = 5] = "DASH_DOT", t[t.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", t[t.DOUBLE = 7] = "DOUBLE", t[t.MEDIUM = 8] = "MEDIUM", t[t.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", t[t.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", t[t.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", t[t.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", t[t.THICK = 13] = "THICK", t))(w || {}), ks = /* @__PURE__ */ ((t) => (t.TOP = "top", t.BOTTOM = "bottom", t.LEFT = "left", t.RIGHT = "right", t.NONE = "none", t.ALL = "all", t.OUTSIDE = "outside", t.INSIDE = "inside", t.HORIZONTAL = "horizontal", t.VERTICAL = "vertical", t.TLBR = "tlbr", t.TLBC_TLMR = "tlbc_tlmr", t.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", t.BLTR = "bl_tr", t.MLTR_BCTR = "mltr_bctr", t))(ks || {}), G = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(G || {}), Vs = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(Vs || {}), js = /* @__PURE__ */ ((t) => (t[t.PASTE_NORMAL = 0] = "PASTE_NORMAL", t[t.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", t[t.PASTE_FORMAT = 2] = "PASTE_FORMAT", t[t.PASTE_FORMULA = 3] = "PASTE_FORMULA", t[t.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", t[t.PASTE_VALUES = 5] = "PASTE_VALUES", t[t.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", t[t.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", t))(js || {}), Ks = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(Ks || {}), Ys = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Ys || {}), zs = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(zs || {});
66
+ function Io(t) {
67
67
  switch (t) {
68
68
  case 3:
69
69
  return 1;
@@ -75,8 +75,8 @@ function Ao(t) {
75
75
  return 0;
76
76
  }
77
77
  }
78
- var zs = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(zs || {}), Xs = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(Xs || {}), ut = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(ut || {}), Js = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(Js || {}), qs = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(qs || {}), Zs = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(Zs || {}), oe = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(oe || {}), wt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(wt || {}), Qs = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(Qs || {}), st = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(st || {}), at = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(at || {}), Lt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(Lt || {}), Jt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Jt || {}), qt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(qt || {}), ct = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(ct || {}), C = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(C || {}), nt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(nt || {}), x = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(x || {}), ue = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(ue || {});
79
- const ys = {
78
+ var Xs = /* @__PURE__ */ ((t) => (t[t.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", t[t.TEXT = 1] = "TEXT", t[t.NUMBER = 2] = "NUMBER", t[t.PERCENT = 3] = "PERCENT", t[t.CURRENCY = 4] = "CURRENCY", t[t.DATE = 5] = "DATE", t[t.TIME = 6] = "TIME", t[t.DATE_TIME = 7] = "DATE_TIME", t[t.SCIENTIFIC = 8] = "SCIENTIFIC", t))(Xs || {}), Js = /* @__PURE__ */ ((t) => (t[t.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", t[t.MIN = 1] = "MIN", t[t.MAX = 2] = "MAX", t[t.NUMBER = 3] = "NUMBER", t[t.PERCENT = 4] = "PERCENT", t[t.PERCENTILE = 5] = "PERCENTILE", t))(Js || {}), ut = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t.RU_RU = "ruRU", t))(ut || {}), qs = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(qs || {}), Zs = /* @__PURE__ */ ((t) => (t[t.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", t[t.PAST_YEAR = 1] = "PAST_YEAR", t[t.PAST_MONTH = 2] = "PAST_MONTH", t[t.PAST_WEEK = 3] = "PAST_WEEK", t[t.YESTERDAY = 4] = "YESTERDAY", t[t.TODAY = 5] = "TODAY", t[t.TOMORROW = 6] = "TOMORROW", t))(Zs || {}), Qs = /* @__PURE__ */ ((t) => (t[t.TYPE_UNSPECIFIED = 0] = "TYPE_UNSPECIFIED", t[t.TEXT_BOX = 1] = "TEXT_BOX", t[t.RECTANGLE = 2] = "RECTANGLE", t[t.ROUND_RECTANGLE = 3] = "ROUND_RECTANGLE", t[t.ELLIPSE = 4] = "ELLIPSE", t[t.ARC = 5] = "ARC", t[t.BENT_ARROW = 6] = "BENT_ARROW", t[t.BENT_UP_ARROW = 7] = "BENT_UP_ARROW", t[t.BEVEL = 8] = "BEVEL", t[t.BLOCK_ARC = 9] = "BLOCK_ARC", t[t.BRACE_PAIR = 10] = "BRACE_PAIR", t[t.BRACKET_PAIR = 11] = "BRACKET_PAIR", t[t.CAN = 12] = "CAN", t[t.CHEVRON = 13] = "CHEVRON", t[t.CHORD = 14] = "CHORD", t[t.CLOUD = 15] = "CLOUD", t[t.CORNER = 16] = "CORNER", t[t.CUBE = 17] = "CUBE", t[t.CURVED_DOWN_ARROW = 18] = "CURVED_DOWN_ARROW", t[t.CURVED_LEFT_ARROW = 19] = "CURVED_LEFT_ARROW", t[t.CURVED_RIGHT_ARROW = 20] = "CURVED_RIGHT_ARROW", t[t.CURVED_UP_ARROW = 21] = "CURVED_UP_ARROW", t[t.DECAGON = 22] = "DECAGON", t[t.DIAGONAL_STRIPE = 23] = "DIAGONAL_STRIPE", t[t.DIAMOND = 24] = "DIAMOND", t[t.DODECAGON = 25] = "DODECAGON", t[t.DONUT = 26] = "DONUT", t[t.DOUBLE_WAVE = 27] = "DOUBLE_WAVE", t[t.DOWN_ARROW = 28] = "DOWN_ARROW", t[t.DOWN_ARROW_CALLOUT = 29] = "DOWN_ARROW_CALLOUT", t[t.FOLDED_CORNER = 30] = "FOLDED_CORNER", t[t.FRAME = 31] = "FRAME", t[t.HALF_FRAME = 32] = "HALF_FRAME", t[t.HEART = 33] = "HEART", t[t.HEPTAGON = 34] = "HEPTAGON", t[t.HEXAGON = 35] = "HEXAGON", t[t.HOME_PLATE = 36] = "HOME_PLATE", t[t.HORIZONTAL_SCROLL = 37] = "HORIZONTAL_SCROLL", t[t.IRREGULAR_SEAL_1 = 38] = "IRREGULAR_SEAL_1", t[t.IRREGULAR_SEAL_2 = 39] = "IRREGULAR_SEAL_2", t[t.LEFT_ARROW = 40] = "LEFT_ARROW", t[t.LEFT_ARROW_CALLOUT = 41] = "LEFT_ARROW_CALLOUT", t[t.LEFT_BRACE = 42] = "LEFT_BRACE", t[t.LEFT_BRACKET = 43] = "LEFT_BRACKET", t[t.LEFT_RIGHT_ARROW = 44] = "LEFT_RIGHT_ARROW", t[t.LEFT_RIGHT_ARROW_CALLOUT = 45] = "LEFT_RIGHT_ARROW_CALLOUT", t[t.LEFT_RIGHT_UP_ARROW = 46] = "LEFT_RIGHT_UP_ARROW", t[t.LEFT_UP_ARROW = 47] = "LEFT_UP_ARROW", t[t.LIGHTNING_BOLT = 48] = "LIGHTNING_BOLT", t[t.MATH_DIVIDE = 49] = "MATH_DIVIDE", t[t.MATH_EQUAL = 50] = "MATH_EQUAL", t[t.MATH_MINUS = 51] = "MATH_MINUS", t[t.MATH_MULTIPLY = 52] = "MATH_MULTIPLY", t[t.MATH_NOT_EQUAL = 53] = "MATH_NOT_EQUAL", t[t.MATH_PLUS = 54] = "MATH_PLUS", t[t.MOON = 55] = "MOON", t[t.NO_SMOKING = 56] = "NO_SMOKING", t[t.NOTCHED_RIGHT_ARROW = 57] = "NOTCHED_RIGHT_ARROW", t[t.OCTAGON = 58] = "OCTAGON", t[t.PARALLELOGRAM = 59] = "PARALLELOGRAM", t[t.PENTAGON = 60] = "PENTAGON", t[t.PIE = 61] = "PIE", t[t.PLAQUE = 62] = "PLAQUE", t[t.PLUS = 63] = "PLUS", t[t.QUAD_ARROW = 64] = "QUAD_ARROW", t[t.QUAD_ARROW_CALLOUT = 65] = "QUAD_ARROW_CALLOUT", t[t.RIBBON = 66] = "RIBBON", t[t.RIBBON_2 = 67] = "RIBBON_2", t[t.RIGHT_ARROW = 68] = "RIGHT_ARROW", t[t.RIGHT_ARROW_CALLOUT = 69] = "RIGHT_ARROW_CALLOUT", t[t.RIGHT_BRACE = 70] = "RIGHT_BRACE", t[t.RIGHT_BRACKET = 71] = "RIGHT_BRACKET", t[t.ROUND_1_RECTANGLE = 72] = "ROUND_1_RECTANGLE", t[t.ROUND_2_DIAGONAL_RECTANGLE = 73] = "ROUND_2_DIAGONAL_RECTANGLE", t[t.ROUND_2_SAME_RECTANGLE = 74] = "ROUND_2_SAME_RECTANGLE", t[t.RIGHT_TRIANGLE = 75] = "RIGHT_TRIANGLE", t[t.SMILEY_FACE = 76] = "SMILEY_FACE", t[t.SNIP_1_RECTANGLE = 77] = "SNIP_1_RECTANGLE", t[t.SNIP_2_DIAGONAL_RECTANGLE = 78] = "SNIP_2_DIAGONAL_RECTANGLE", t[t.SNIP_2_SAME_RECTANGLE = 79] = "SNIP_2_SAME_RECTANGLE", t[t.SNIP_ROUND_RECTANGLE = 80] = "SNIP_ROUND_RECTANGLE", t[t.STAR_10 = 81] = "STAR_10", t[t.STAR_12 = 82] = "STAR_12", t[t.STAR_16 = 83] = "STAR_16", t[t.STAR_24 = 84] = "STAR_24", t[t.STAR_32 = 85] = "STAR_32", t[t.STAR_4 = 86] = "STAR_4", t[t.STAR_5 = 87] = "STAR_5", t[t.STAR_6 = 88] = "STAR_6", t[t.STAR_7 = 89] = "STAR_7", t[t.STAR_8 = 90] = "STAR_8", t[t.STRIPED_RIGHT_ARROW = 91] = "STRIPED_RIGHT_ARROW", t[t.SUN = 92] = "SUN", t[t.TRAPEZOID = 93] = "TRAPEZOID", t[t.TRIANGLE = 94] = "TRIANGLE", t[t.UP_ARROW = 95] = "UP_ARROW", t[t.UP_ARROW_CALLOUT = 96] = "UP_ARROW_CALLOUT", t[t.UP_DOWN_ARROW = 97] = "UP_DOWN_ARROW", t[t.UTURN_ARROW = 98] = "UTURN_ARROW", t[t.VERTICAL_SCROLL = 99] = "VERTICAL_SCROLL", t[t.WAVE = 100] = "WAVE", t[t.WEDGE_ELLIPSE_CALLOUT = 101] = "WEDGE_ELLIPSE_CALLOUT", t[t.WEDGE_RECTANGLE_CALLOUT = 102] = "WEDGE_RECTANGLE_CALLOUT", t[t.WEDGE_ROUND_RECTANGLE_CALLOUT = 103] = "WEDGE_ROUND_RECTANGLE_CALLOUT", t[t.FLOW_CHART_ALTERNATE_PROCESS = 104] = "FLOW_CHART_ALTERNATE_PROCESS", t[t.FLOW_CHART_COLLATE = 105] = "FLOW_CHART_COLLATE", t[t.FLOW_CHART_CONNECTOR = 106] = "FLOW_CHART_CONNECTOR", t[t.FLOW_CHART_DECISION = 107] = "FLOW_CHART_DECISION", t[t.FLOW_CHART_DELAY = 108] = "FLOW_CHART_DELAY", t[t.FLOW_CHART_DISPLAY = 109] = "FLOW_CHART_DISPLAY", t[t.FLOW_CHART_DOCUMENT = 110] = "FLOW_CHART_DOCUMENT", t[t.FLOW_CHART_EXTRACT = 111] = "FLOW_CHART_EXTRACT", t[t.FLOW_CHART_INPUT_OUTPUT = 112] = "FLOW_CHART_INPUT_OUTPUT", t[t.FLOW_CHART_INTERNAL_STORAGE = 113] = "FLOW_CHART_INTERNAL_STORAGE", t[t.FLOW_CHART_MAGNETIC_DISK = 114] = "FLOW_CHART_MAGNETIC_DISK", t[t.FLOW_CHART_MAGNETIC_DRUM = 115] = "FLOW_CHART_MAGNETIC_DRUM", t[t.FLOW_CHART_MAGNETIC_TAPE = 116] = "FLOW_CHART_MAGNETIC_TAPE", t[t.FLOW_CHART_MANUAL_INPUT = 117] = "FLOW_CHART_MANUAL_INPUT", t[t.FLOW_CHART_MANUAL_OPERATION = 118] = "FLOW_CHART_MANUAL_OPERATION", t[t.FLOW_CHART_MERGE = 119] = "FLOW_CHART_MERGE", t[t.FLOW_CHART_MULTIDOCUMENT = 120] = "FLOW_CHART_MULTIDOCUMENT", t[t.FLOW_CHART_OFFLINE_STORAGE = 121] = "FLOW_CHART_OFFLINE_STORAGE", t[t.FLOW_CHART_OFFPAGE_CONNECTOR = 122] = "FLOW_CHART_OFFPAGE_CONNECTOR", t[t.FLOW_CHART_ONLINE_STORAGE = 123] = "FLOW_CHART_ONLINE_STORAGE", t[t.FLOW_CHART_OR = 124] = "FLOW_CHART_OR", t[t.FLOW_CHART_PREDEFINED_PROCESS = 125] = "FLOW_CHART_PREDEFINED_PROCESS", t[t.FLOW_CHART_PREPARATION = 126] = "FLOW_CHART_PREPARATION", t[t.FLOW_CHART_PROCESS = 127] = "FLOW_CHART_PROCESS", t[t.FLOW_CHART_PUNCHED_CARD = 128] = "FLOW_CHART_PUNCHED_CARD", t[t.FLOW_CHART_PUNCHED_TAPE = 129] = "FLOW_CHART_PUNCHED_TAPE", t[t.FLOW_CHART_SORT = 130] = "FLOW_CHART_SORT", t[t.FLOW_CHART_SUMMING_JUNCTION = 131] = "FLOW_CHART_SUMMING_JUNCTION", t[t.FLOW_CHART_TERMINATOR = 132] = "FLOW_CHART_TERMINATOR", t[t.ARROW_EAST = 133] = "ARROW_EAST", t[t.ARROW_NORTH_EAST = 134] = "ARROW_NORTH_EAST", t[t.ARROW_NORTH = 135] = "ARROW_NORTH", t[t.SPEECH = 136] = "SPEECH", t[t.STARBURST = 137] = "STARBURST", t[t.TEARDROP = 138] = "TEARDROP", t[t.ELLIPSE_RIBBON = 139] = "ELLIPSE_RIBBON", t[t.ELLIPSE_RIBBON_2 = 140] = "ELLIPSE_RIBBON_2", t[t.CLOUD_CALLOUT = 141] = "CLOUD_CALLOUT", t[t.CUSTOM = 142] = "CUSTOM", t))(Qs || {}), oe = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(oe || {}), St = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(St || {}), ys = /* @__PURE__ */ ((t) => (t[t.DASH = 0] = "DASH", t[t.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", t[t.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", t[t.DASHED_HEAVY = 3] = "DASHED_HEAVY", t[t.DASH_LONG = 4] = "DASH_LONG", t[t.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", t[t.DOT_DASH = 6] = "DOT_DASH", t[t.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", t[t.DOTTED = 8] = "DOTTED", t[t.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", t[t.DOUBLE = 10] = "DOUBLE", t[t.NONE = 11] = "NONE", t[t.SINGLE = 12] = "SINGLE", t[t.THICK = 13] = "THICK", t[t.WAVE = 14] = "WAVE", t[t.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", t[t.WAVY_HEAVY = 16] = "WAVY_HEAVY", t[t.WORDS = 17] = "WORDS", t))(ys || {}), st = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.CENTER = 2] = "CENTER", t[t.RIGHT = 3] = "RIGHT", t[t.JUSTIFIED = 4] = "JUSTIFIED", t))(st || {}), at = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(at || {}), Lt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(Lt || {}), Jt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Jt || {}), qt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(qt || {}), ct = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(ct || {}), C = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(C || {}), nt = /* @__PURE__ */ ((t) => (t[t.STRING = 1] = "STRING", t[t.NUMBER = 2] = "NUMBER", t[t.BOOLEAN = 3] = "BOOLEAN", t[t.FORCE_STRING = 4] = "FORCE_STRING", t))(nt || {}), x = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(x || {}), ue = /* @__PURE__ */ ((t) => (t.OFFICE = "Office", t.OFFICE_2007_2010 = "Office 2007-2010", t.GRAYSCALE = "Grayscale", t.BLUE_WARM = "Blue Warm", t.BLUE = "Blue", t.BLUE_II = "Blue II", t.BLUE_GREEN = "Blue Green", t.GREEN = "Green", t.GREEN_YELLOW = "Green Yellow", t.YELLOW = "Yellow", t.YELLOW_ORANGE = "Yellow Orange", t.ORANGE = "Orange", t.ORANGE_RED = "Orange Red", t.RED_ORANGE = "Red Orange", t.RED = "Red", t.RED_VIOLET = "Red Violet", t.VIOLET = "Violet", t.VIOLET_II = "Violet II", t.MEDIAN = "Median", t.PAPER = "Paper", t.MARQUEE = "Marquee", t.SLIPSTREAM = "Slipstream", t.Aspect = "Aspect", t))(ue || {});
79
+ const tn = {
80
80
  [ue.OFFICE]: {
81
81
  [x.ACCENT1]: "#4472C4",
82
82
  [x.ACCENT2]: "#ED7D31",
@@ -99,7 +99,7 @@ class ae {
99
99
  d(this, "_themeTint");
100
100
  d(this, "_rgbValue", "");
101
101
  d(this, "_colorType");
102
- this._colorType = B.UNSUPPORTED, this._themeColors = ue.OFFICE, this._themeTint = 0;
102
+ this._colorType = G.UNSUPPORTED, this._themeColors = ue.OFFICE, this._themeTint = 0;
103
103
  }
104
104
  asRgbColor() {
105
105
  return new Zt(this._rgbValue, this);
@@ -109,25 +109,25 @@ class ae {
109
109
  }
110
110
  build() {
111
111
  switch (this._colorType) {
112
- case B.THEME:
112
+ case G.THEME:
113
113
  return this.asThemeColor();
114
- case B.RGB:
114
+ case G.RGB:
115
115
  return this.asRgbColor();
116
- case B.UNSUPPORTED:
116
+ case G.UNSUPPORTED:
117
117
  throw new Error("unsupported color type");
118
118
  }
119
119
  }
120
120
  setRgbColor(e) {
121
- return this._colorType = B.RGB, this._rgbValue = e, this;
121
+ return this._colorType = G.RGB, this._rgbValue = e, this;
122
122
  }
123
123
  setThemeColors(e) {
124
- this._colorType = B.THEME, this._themeColors = e;
124
+ this._colorType = G.THEME, this._themeColors = e;
125
125
  }
126
126
  setThemeTint(e) {
127
- this._colorType = B.THEME, this._themeTint = e;
127
+ this._colorType = G.THEME, this._themeTint = e;
128
128
  }
129
129
  setThemeColor(e) {
130
- return this._colorType = B.THEME, this._themeValue = e, this;
130
+ return this._colorType = G.THEME, this._themeValue = e, this;
131
131
  }
132
132
  getColorType() {
133
133
  return this._colorType;
@@ -173,7 +173,7 @@ class rt {
173
173
  return !1;
174
174
  }
175
175
  }
176
- class tn {
176
+ class en {
177
177
  constructor(e) {
178
178
  d(this, "_saturation", 0);
179
179
  d(this, "_hue", 0);
@@ -260,7 +260,7 @@ const F = class F extends rt {
260
260
  return this._alpha;
261
261
  }
262
262
  getColorType() {
263
- return B.RGB;
263
+ return G.RGB;
264
264
  }
265
265
  clone() {
266
266
  return new F(this._cssString, this._builder);
@@ -279,7 +279,7 @@ d(F, "RGB_COLOR_AMT", 0), d(F, "RGBA_EXTRACT", new RegExp(
279
279
  "\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*"
280
280
  )), d(F, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
281
281
  let Zt = F;
282
- const Y = class Y extends rt {
282
+ const z = class z extends rt {
283
283
  constructor(s, n, r, i) {
284
284
  super(i);
285
285
  d(this, "_themeColorType");
@@ -294,39 +294,39 @@ const Y = class Y extends rt {
294
294
  return s < 0 ? r = n * (1 + s) : r = n * (1 - s) + (255 - 255 * (1 - s)), r;
295
295
  }
296
296
  asRgbColor() {
297
- const s = ys[this._themeColors];
297
+ const s = tn[this._themeColors];
298
298
  if (s == null)
299
299
  throw new Error("not find themeColors type");
300
300
  const n = s[this._themeColorType];
301
301
  if (n == null)
302
302
  throw new Error("not find themeColors value");
303
303
  let r;
304
- if (Y._cacheThemeColor.has(this._themeColors)) {
305
- if (r = Y._cacheThemeColor.get(this._themeColors), r.has(this._themeColorType))
304
+ if (z._cacheThemeColor.has(this._themeColors)) {
305
+ if (r = z._cacheThemeColor.get(this._themeColors), r.has(this._themeColorType))
306
306
  return r.get(this._themeColorType);
307
307
  } else
308
- r = /* @__PURE__ */ new Map(), Y._cacheThemeColor.set(this._themeColors, r);
309
- const i = new tn(rt.hexValueToRgbColor(n));
308
+ r = /* @__PURE__ */ new Map(), z._cacheThemeColor.set(this._themeColors, r);
309
+ const i = new en(rt.hexValueToRgbColor(n));
310
310
  i.setLightness(this.lumValue(this._themeTint, i.getLightness() * 255) / 255);
311
311
  const o = i.asRgbColor();
312
312
  return r.set(this._themeColorType, o), o;
313
313
  }
314
314
  clone() {
315
- return new Y(this._themeColorType, this._themeTint, this._themeColors, this._builder);
315
+ return new z(this._themeColorType, this._themeTint, this._themeColors, this._builder);
316
316
  }
317
317
  equals(s) {
318
- return s instanceof Y ? s._themeColorType === this._themeColorType : !1;
318
+ return s instanceof z ? s._themeColorType === this._themeColorType : !1;
319
319
  }
320
320
  getColorType() {
321
- return B.THEME;
321
+ return G.THEME;
322
322
  }
323
323
  getThemeColorType() {
324
324
  return this._themeColorType;
325
325
  }
326
326
  };
327
- d(Y, "_cacheThemeColor", /* @__PURE__ */ new Map());
328
- let Qt = Y;
329
- const Io = "rgb(", No = "rgba(", Ce = {
327
+ d(z, "_cacheThemeColor", /* @__PURE__ */ new Map());
328
+ let Qt = z;
329
+ const No = "rgb(", wo = "rgba(", Ce = {
330
330
  aliceBlue: [240, 248, 255],
331
331
  antiqueWhite: [250, 235, 215],
332
332
  aqua: [0, 255, 255],
@@ -477,7 +477,7 @@ const Io = "rgb(", No = "rgba(", Ce = {
477
477
  yellow: [255, 255, 0],
478
478
  yellowGreen: [154, 205, 5]
479
479
  };
480
- class $ {
480
+ class B {
481
481
  constructor(e) {
482
482
  d(this, "_color");
483
483
  d(this, "_rgbColor");
@@ -486,17 +486,17 @@ class $ {
486
486
  this._setNullColor();
487
487
  return;
488
488
  }
489
- if (e instanceof $) {
489
+ if (e instanceof B) {
490
490
  this._color = { ...e._color }, this._rgbColor = { ...e._rgbColor };
491
491
  return;
492
492
  }
493
- const s = $e(e);
493
+ const s = Be(e);
494
494
  if (s == null) {
495
495
  this._setNullColor();
496
496
  return;
497
497
  }
498
498
  this._color = s;
499
- const n = on(this._color);
499
+ const n = un(this._color);
500
500
  if (n == null) {
501
501
  this._setNullColor();
502
502
  return;
@@ -506,16 +506,16 @@ class $ {
506
506
  static mix(e, s, n) {
507
507
  var l, c;
508
508
  n = Math.min(1, Math.max(0, n));
509
- const r = new $(e).toRgb(), i = new $(s).toRgb(), o = (l = r.a) != null ? l : 1, u = (c = i.a) != null ? c : 1, a = {
509
+ const r = new B(e).toRgb(), i = new B(s).toRgb(), o = (l = r.a) != null ? l : 1, u = (c = i.a) != null ? c : 1, a = {
510
510
  r: (i.r - r.r) * n + r.r,
511
511
  g: (i.g - r.g) * n + r.g,
512
512
  b: (i.b - r.b) * n + r.b,
513
513
  a: (u - o) * n + o
514
514
  };
515
- return new $(a);
515
+ return new B(a);
516
516
  }
517
517
  static getContrastRatio(e, s) {
518
- const n = new $(e).getLuminance(), r = new $(s).getLuminance();
518
+ const n = new B(e).getLuminance(), r = new B(s).getLuminance();
519
519
  return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
520
520
  }
521
521
  get isValid() {
@@ -541,21 +541,21 @@ class $ {
541
541
  return e && u[0][0] === u[0][1] && u[1][0] === u[1][1] && u[2][0] === u[2][1] && u[3][0] === u[3][1] ? o ? `#${u[0][0]}${u[1][0]}${u[2][0]}${u[3][0]}` : `#${u[0][0]}${u[1][0]}${u[2][0]}` : o ? `#${u[0]}${u[1]}${u[2]}${u[3]}` : `#${u[0]}${u[1]}${u[2]}`;
542
542
  }
543
543
  toHsv() {
544
- return cn(this.toRgb());
544
+ return hn(this.toRgb());
545
545
  }
546
546
  toHsl() {
547
- return ln(this.toRgb());
547
+ return cn(this.toRgb());
548
548
  }
549
549
  lighten(e = 10) {
550
550
  const s = this.toHsl();
551
- return s.l += e, s.l = Math.min(Math.max(s.l, 0), 100), new $(s);
551
+ return s.l += e, s.l = Math.min(Math.max(s.l, 0), 100), new B(s);
552
552
  }
553
553
  darken(e = 10) {
554
554
  const s = this.toHsl();
555
- return s.l -= e, s.l = Math.min(Math.max(s.l, 0), 100), new $(s);
555
+ return s.l -= e, s.l = Math.min(Math.max(s.l, 0), 100), new B(s);
556
556
  }
557
557
  setAlpha(e) {
558
- return new $({ ...this._rgbColor, a: e });
558
+ return new B({ ...this._rgbColor, a: e });
559
559
  }
560
560
  getLuminance() {
561
561
  let { r: e, g: s, b: n } = this.toRgb();
@@ -589,8 +589,8 @@ class $ {
589
589
  };
590
590
  }
591
591
  }
592
- const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), $e = (t) => {
593
- if (dn(t)) {
592
+ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), Be = (t) => {
593
+ if (_n(t)) {
594
594
  if ("r" in t) {
595
595
  const n = {
596
596
  r: Math.round(t.r),
@@ -624,14 +624,14 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
624
624
  return n.a = s[3] || 1, n;
625
625
  }
626
626
  if (e.startsWith("#"))
627
- return en(e);
628
- if (e.startsWith("rgb"))
629
627
  return sn(e);
630
- if (e.startsWith("hsl"))
628
+ if (e.startsWith("rgb"))
631
629
  return nn(e);
632
- if (e.startsWith("hsv"))
630
+ if (e.startsWith("hsl"))
633
631
  return rn(e);
634
- }, en = (t) => {
632
+ if (e.startsWith("hsv"))
633
+ return on(e);
634
+ }, sn = (t) => {
635
635
  const e = t.substring(1), s = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
636
636
  let n = e.match(s);
637
637
  if (!n || n.length < 3)
@@ -643,7 +643,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
643
643
  b: Number.parseInt(n[2], 16)
644
644
  };
645
645
  return n.length > 3 && (r.a = Number.parseInt(n[3], 16) / 255), r;
646
- }, sn = (t) => {
646
+ }, nn = (t) => {
647
647
  const e = t.indexOf("(");
648
648
  if (e === -1)
649
649
  throw new Error(`The color '${t}' is illegal rgb color`);
@@ -656,7 +656,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
656
656
  b: Number.parseInt(s[2], 10)
657
657
  };
658
658
  return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
659
- }, nn = (t) => {
659
+ }, rn = (t) => {
660
660
  const e = t.indexOf("(");
661
661
  if (e === -1)
662
662
  throw new Error(`The color '${t}' is illegal hsl color`);
@@ -669,7 +669,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
669
669
  l: Number.parseFloat(s[2])
670
670
  };
671
671
  return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
672
- }, rn = (t) => {
672
+ }, on = (t) => {
673
673
  const e = t.indexOf("(");
674
674
  if (e === -1)
675
675
  throw new Error(`The color '${t}' is illegal hsv color`);
@@ -682,11 +682,11 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
682
682
  v: Number.parseFloat(s[2])
683
683
  };
684
684
  return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
685
- }, on = (t) => {
686
- const e = $e(t);
685
+ }, un = (t) => {
686
+ const e = Be(t);
687
687
  if (e != null)
688
- return "r" in e ? e : "l" in e ? un(e) : an(e);
689
- }, Wt = (t, e, s) => (s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? t + (e - t) * 6 * s : s < 1 / 2 ? e : s < 2 / 3 ? t + (e - t) * (2 / 3 - s) * 6 : t), un = (t) => {
688
+ return "r" in e ? e : "l" in e ? an(e) : ln(e);
689
+ }, Wt = (t, e, s) => (s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? t + (e - t) * 6 * s : s < 1 / 2 ? e : s < 2 / 3 ? t + (e - t) * (2 / 3 - s) * 6 : t), an = (t) => {
690
690
  let { h: e, s, l: n } = t;
691
691
  e /= 360, s /= 100, n /= 100;
692
692
  let r = 0, i = 0, o = 0;
@@ -702,7 +702,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
702
702
  b: Math.round(o * 255)
703
703
  };
704
704
  return t.a !== void 0 && (u.a = t.a), u;
705
- }, an = (t) => {
705
+ }, ln = (t) => {
706
706
  let { h: e, s, v: n } = t;
707
707
  e = e / 360 * 6, s /= 100, n /= 100;
708
708
  const r = Math.floor(e), i = e - r, o = n * (1 - s), u = n * (1 - i * s), a = n * (1 - (1 - i) * s), l = r % 6, c = [n, u, o, o, a, n][l], h = [a, n, n, u, o, o][l], _ = [o, o, a, n, n, u][l], f = {
@@ -711,7 +711,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
711
711
  b: _ * 255
712
712
  };
713
713
  return t.a !== void 0 && (f.a = t.a), f;
714
- }, ln = (t) => {
714
+ }, cn = (t) => {
715
715
  let { r: e, g: s, b: n } = t;
716
716
  e /= 255, s /= 255, n /= 255;
717
717
  const r = Math.max(e, s, n), i = Math.min(e, s, n), o = (r + i) / 2;
@@ -739,7 +739,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
739
739
  l: Math.round(o * 100)
740
740
  };
741
741
  return t.a !== void 0 && (l.a = t.a), l;
742
- }, cn = (t) => {
742
+ }, hn = (t) => {
743
743
  let { r: e, g: s, b: n } = t;
744
744
  e /= 255, s /= 255, n /= 255;
745
745
  const r = Math.max(e, s, n), i = Math.min(e, s, n);
@@ -767,20 +767,20 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Ft = (t) => (t /= 255, t <= 0.03
767
767
  v: Math.round(u * 100)
768
768
  };
769
769
  return t.a !== void 0 && (c.a = t.a), c;
770
- }, hn = (t) => t == null, dn = (t) => !hn(t) && typeof t == "object";
770
+ }, dn = (t) => t == null, _n = (t) => !dn(t) && typeof t == "object";
771
771
  function So(t) {
772
772
  const e = /^#(?:[0]{3}|[0]{6})\b/, s = /^rgb\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*\)$/, n = /^rgba\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*,\s*(1|1\.0*|0?\.\d+)\)$/, r = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
773
773
  return !!(e.test(t) || s.test(t) || n.test(t) || r.test(t) || i.test(t));
774
774
  }
775
- function wo(t) {
775
+ function Lo(t) {
776
776
  const e = /^#(?:[Ff]{3}|[Ff]{6})\b/, s = /^rgb\s*\(\s*255\s*,\s*255\s*,\s*255\s*\)$/, n = /^rgba\s*\(\s*255\s*,\s*255\s*,\s*255\s*,\s*(1|1\.0*|0?\.\d+)\)$/, r = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
777
777
  return !!(e.test(t) || s.test(t) || n.test(t) || r.test(t) || i.test(t));
778
778
  }
779
779
  var D = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(D || {});
780
- function Lo(t) {
780
+ function bo(t) {
781
781
  return t && (t.s !== void 0 || t.p !== void 0 || t.v !== void 0 || t.t !== void 0 || t.f !== void 0 || t.si !== void 0);
782
782
  }
783
- function bo(t) {
783
+ function vo(t) {
784
784
  if (t.t !== void 0)
785
785
  return t.t;
786
786
  if (typeof t.v == "string")
@@ -790,22 +790,22 @@ function bo(t) {
790
790
  if (typeof t.v == "boolean")
791
791
  return nt.BOOLEAN;
792
792
  }
793
- function vo(t) {
793
+ function Uo(t) {
794
794
  if (t == null)
795
795
  return !0;
796
- const { v: e, f: s, si: n, p: r, s: i } = t;
797
- return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
796
+ const { v: e, f: s, si: n, p: r, s: i, custom: o } = t;
797
+ return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null || o != null);
798
798
  }
799
- function Uo(t) {
799
+ function To(t) {
800
800
  return t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean");
801
801
  }
802
- var _n = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(_n || {}), fn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(fn || {}), Ct = /* @__PURE__ */ ((t) => (t[t.GLYPH_TYPE_UNSPECIFIED = 0] = "GLYPH_TYPE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.DECIMAL = 2] = "DECIMAL", t[t.ZERO_DECIMAL = 3] = "ZERO_DECIMAL", t[t.UPPER_ALPHA = 4] = "UPPER_ALPHA", t[t.ALPHA = 5] = "ALPHA", t[t.UPPER_ROMAN = 6] = "UPPER_ROMAN", t[t.ROMAN = 7] = "ROMAN", t))(Ct || {}), X = /* @__PURE__ */ ((t) => (t[t.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(X || {}), gn = /* @__PURE__ */ ((t) => (t[t.HYPERLINK = 0] = "HYPERLINK", t[t.FIELD = 1] = "FIELD", t[t.SDT = 2] = "SDT", t[t.BOOKMARK = 3] = "BOOKMARK", t[t.COMMENT = 4] = "COMMENT", t[t.CUSTOM = 5] = "CUSTOM", t))(gn || {}), En = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(En || {}), Rn = /* @__PURE__ */ ((t) => (t[t.DEFAULT = 0] = "DEFAULT", t[t.LINES = 1] = "LINES", t[t.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", t[t.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", t))(Rn || {}), mn = /* @__PURE__ */ ((t) => (t[t.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", t[t.CONTINUOUS = 1] = "CONTINUOUS", t[t.NEXT_PAGE = 2] = "NEXT_PAGE", t[t.EVEN_PAGE = 3] = "EVEN_PAGE", t[t.ODD_PAGE = 4] = "ODD_PAGE", t))(mn || {}), Cn = /* @__PURE__ */ ((t) => (t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", t))(Cn || {}), On = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(On || {}), An = /* @__PURE__ */ ((t) => (t[t.TEXT_RUN = 0] = "TEXT_RUN", t[t.AUTO_TEXT = 1] = "AUTO_TEXT", t[t.PAGE_BREAK = 2] = "PAGE_BREAK", t[t.COLUMN_BREAK = 3] = "COLUMN_BREAK", t[t.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", t[t.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", t[t.EQUATION = 6] = "EQUATION", t[t.DRAWING = 7] = "DRAWING", t[t.PERSON = 8] = "PERSON", t[t.RICH_LINK = 9] = "RICH_LINK", t))(An || {}), In = /* @__PURE__ */ ((t) => (t[t.BOTH_SIDES = 0] = "BOTH_SIDES", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT", t[t.LARGEST = 3] = "LARGEST", t))(In || {}), Nn = /* @__PURE__ */ ((t) => (t[t.INLINE = 0] = "INLINE", t[t.WRAP_NONE = 1] = "WRAP_NONE", t[t.WRAP_POLYGON = 2] = "WRAP_POLYGON", t[t.WRAP_SQUARE = 3] = "WRAP_SQUARE", t[t.WRAP_THROUGH = 4] = "WRAP_THROUGH", t[t.WRAP_TIGHT = 5] = "WRAP_TIGHT", t[t.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", t))(Nn || {}), Sn = /* @__PURE__ */ ((t) => (t[t.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", t[t.NORMAL_TEXT = 1] = "NORMAL_TEXT", t[t.TITLE = 2] = "TITLE", t[t.SUBTITLE = 3] = "SUBTITLE", t[t.HEADING_1 = 4] = "HEADING_1", t[t.HEADING_2 = 5] = "HEADING_2", t[t.HEADING_3 = 6] = "HEADING_3", t[t.HEADING_4 = 7] = "HEADING_4", t[t.HEADING_5 = 8] = "HEADING_5", t[t.HEADING_6 = 9] = "HEADING_6", t))(Sn || {}), wn = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(wn || {}), Ln = /* @__PURE__ */ ((t) => (t[t.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", t[t.SOLID = 1] = "SOLID", t[t.DOT = 2] = "DOT", t[t.DASH = 3] = "DASH", t))(Ln || {}), bn = /* @__PURE__ */ ((t) => (t[t.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(bn || {}), vn = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(vn || {}), Un = /* @__PURE__ */ ((t) => (t[t.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", t[t.CONTENT_ALIGNMENT_UNSUPPORTED = 1] = "CONTENT_ALIGNMENT_UNSUPPORTED", t[t.TOP = 2] = "TOP", t[t.MIDDLE = 3] = "MIDDLE", t[t.BOTTOM = 4] = "BOTTOM", t))(Un || {}), Tn = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Tn || {}), Mn = /* @__PURE__ */ ((t) => (t[t.PAGE = 0] = "PAGE", t[t.COLUMN = 1] = "COLUMN", t[t.CHARACTER = 2] = "CHARACTER", t[t.MARGIN = 3] = "MARGIN", t[t.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.LEFT_MARGIN = 6] = "LEFT_MARGIN", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(Mn || {}), Dn = /* @__PURE__ */ ((t) => (t[t.PAGE = 0] = "PAGE", t[t.PARAGRAPH = 1] = "PARAGRAPH", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.TOP_MARGIN = 4] = "TOP_MARGIN", t[t.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", t[t.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", t))(Dn || {}), pn = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(pn || {}), xn = /* @__PURE__ */ ((t) => (t[t.CENTER = 0] = "CENTER", t[t.INSIDE = 1] = "INSIDE", t[t.LEFT = 2] = "LEFT", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.RIGHT = 4] = "RIGHT", t))(xn || {}), Pn = /* @__PURE__ */ ((t) => (t[t.BOTTOM = 0] = "BOTTOM", t[t.CENTER = 1] = "CENTER", t[t.INSIDE = 2] = "INSIDE", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.TOP = 4] = "TOP", t))(Pn || {}), Hn = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Hn || {}), Fn = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Fn || {}), p = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(p || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(L || {});
803
- function To(t) {
802
+ var fn = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(fn || {}), gn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(gn || {}), Ct = /* @__PURE__ */ ((t) => (t[t.GLYPH_TYPE_UNSPECIFIED = 0] = "GLYPH_TYPE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.DECIMAL = 2] = "DECIMAL", t[t.ZERO_DECIMAL = 3] = "ZERO_DECIMAL", t[t.UPPER_ALPHA = 4] = "UPPER_ALPHA", t[t.ALPHA = 5] = "ALPHA", t[t.UPPER_ROMAN = 6] = "UPPER_ROMAN", t[t.ROMAN = 7] = "ROMAN", t))(Ct || {}), J = /* @__PURE__ */ ((t) => (t[t.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(J || {}), En = /* @__PURE__ */ ((t) => (t[t.HYPERLINK = 0] = "HYPERLINK", t[t.FIELD = 1] = "FIELD", t[t.SDT = 2] = "SDT", t[t.BOOKMARK = 3] = "BOOKMARK", t[t.COMMENT = 4] = "COMMENT", t[t.CUSTOM = 5] = "CUSTOM", t[t.MENTION = 6] = "MENTION", t))(En || {}), Rn = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(Rn || {}), mn = /* @__PURE__ */ ((t) => (t[t.DEFAULT = 0] = "DEFAULT", t[t.LINES = 1] = "LINES", t[t.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", t[t.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", t))(mn || {}), Cn = /* @__PURE__ */ ((t) => (t[t.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", t[t.CONTINUOUS = 1] = "CONTINUOUS", t[t.NEXT_PAGE = 2] = "NEXT_PAGE", t[t.EVEN_PAGE = 3] = "EVEN_PAGE", t[t.ODD_PAGE = 4] = "ODD_PAGE", t))(Cn || {}), On = /* @__PURE__ */ ((t) => (t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", t[t.NONE = 1] = "NONE", t[t.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", t))(On || {}), An = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(An || {}), In = /* @__PURE__ */ ((t) => (t[t.TEXT_RUN = 0] = "TEXT_RUN", t[t.AUTO_TEXT = 1] = "AUTO_TEXT", t[t.PAGE_BREAK = 2] = "PAGE_BREAK", t[t.COLUMN_BREAK = 3] = "COLUMN_BREAK", t[t.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", t[t.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", t[t.EQUATION = 6] = "EQUATION", t[t.DRAWING = 7] = "DRAWING", t[t.PERSON = 8] = "PERSON", t[t.RICH_LINK = 9] = "RICH_LINK", t))(In || {}), Nn = /* @__PURE__ */ ((t) => (t[t.BOTH_SIDES = 0] = "BOTH_SIDES", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT", t[t.LARGEST = 3] = "LARGEST", t))(Nn || {}), wn = /* @__PURE__ */ ((t) => (t[t.INLINE = 0] = "INLINE", t[t.WRAP_NONE = 1] = "WRAP_NONE", t[t.WRAP_POLYGON = 2] = "WRAP_POLYGON", t[t.WRAP_SQUARE = 3] = "WRAP_SQUARE", t[t.WRAP_THROUGH = 4] = "WRAP_THROUGH", t[t.WRAP_TIGHT = 5] = "WRAP_TIGHT", t[t.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", t))(wn || {}), Sn = /* @__PURE__ */ ((t) => (t[t.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", t[t.NORMAL_TEXT = 1] = "NORMAL_TEXT", t[t.TITLE = 2] = "TITLE", t[t.SUBTITLE = 3] = "SUBTITLE", t[t.HEADING_1 = 4] = "HEADING_1", t[t.HEADING_2 = 5] = "HEADING_2", t[t.HEADING_3 = 6] = "HEADING_3", t[t.HEADING_4 = 7] = "HEADING_4", t[t.HEADING_5 = 8] = "HEADING_5", t[t.HEADING_6 = 9] = "HEADING_6", t))(Sn || {}), Ln = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(Ln || {}), bn = /* @__PURE__ */ ((t) => (t[t.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", t[t.SOLID = 1] = "SOLID", t[t.DOT = 2] = "DOT", t[t.DASH = 3] = "DASH", t))(bn || {}), vn = /* @__PURE__ */ ((t) => (t[t.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", t[t.START = 1] = "START", t[t.CENTER = 2] = "CENTER", t[t.END = 3] = "END", t))(vn || {}), Un = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(Un || {}), Tn = /* @__PURE__ */ ((t) => (t[t.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", t[t.CONTENT_ALIGNMENT_UNSUPPORTED = 1] = "CONTENT_ALIGNMENT_UNSUPPORTED", t[t.TOP = 2] = "TOP", t[t.MIDDLE = 3] = "MIDDLE", t[t.BOTTOM = 4] = "BOTTOM", t))(Tn || {}), Mn = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Mn || {}), Dn = /* @__PURE__ */ ((t) => (t[t.PAGE = 0] = "PAGE", t[t.COLUMN = 1] = "COLUMN", t[t.CHARACTER = 2] = "CHARACTER", t[t.MARGIN = 3] = "MARGIN", t[t.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.LEFT_MARGIN = 6] = "LEFT_MARGIN", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(Dn || {}), pn = /* @__PURE__ */ ((t) => (t[t.PAGE = 0] = "PAGE", t[t.PARAGRAPH = 1] = "PARAGRAPH", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.TOP_MARGIN = 4] = "TOP_MARGIN", t[t.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", t[t.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", t))(pn || {}), xn = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(xn || {}), Pn = /* @__PURE__ */ ((t) => (t[t.CENTER = 0] = "CENTER", t[t.INSIDE = 1] = "INSIDE", t[t.LEFT = 2] = "LEFT", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.RIGHT = 4] = "RIGHT", t))(Pn || {}), Hn = /* @__PURE__ */ ((t) => (t[t.BOTTOM = 0] = "BOTTOM", t[t.CENTER = 1] = "CENTER", t[t.INSIDE = 2] = "INSIDE", t[t.OUTSIDE = 3] = "OUTSIDE", t[t.TOP = 4] = "TOP", t))(Hn || {}), Fn = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(Fn || {}), Wn = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(Wn || {}), p = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(p || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(L || {});
803
+ function Mo(t) {
804
804
  return [t.startRow, t.startColumn, t.endRow, t.endColumn];
805
805
  }
806
- var ke = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(ke || {}), Wn = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))(Wn || {}), Gn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", t[t.NEXT_SLIDE = 1] = "NEXT_SLIDE", t[t.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", t[t.FIRST_SLIDE = 3] = "FIRST_SLIDE", t[t.LAST_SLIDE = 4] = "LAST_SLIDE", t))(Gn || {});
806
+ var ke = /* @__PURE__ */ ((t) => (t[t.SLIDE = 0] = "SLIDE", t[t.MASTER = 1] = "MASTER", t[t.LAYOUT = 2] = "LAYOUT", t[t.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", t[t.NOTES_MASTER = 4] = "NOTES_MASTER", t))(ke || {}), $n = /* @__PURE__ */ ((t) => (t[t.SHAPE = 0] = "SHAPE", t[t.IMAGE = 1] = "IMAGE", t[t.TEXT = 2] = "TEXT", t[t.SPREADSHEET = 3] = "SPREADSHEET", t[t.DOCUMENT = 4] = "DOCUMENT", t[t.SLIDE = 5] = "SLIDE", t))($n || {}), Gn = /* @__PURE__ */ ((t) => (t[t.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", t[t.NEXT_SLIDE = 1] = "NEXT_SLIDE", t[t.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", t[t.FIRST_SLIDE = 3] = "FIRST_SLIDE", t[t.LAST_SLIDE = 4] = "LAST_SLIDE", t))(Gn || {});
807
807
  const Bn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
808
- let $n = (t) => crypto.getRandomValues(new Uint8Array(t)), kn = (t, e, s) => {
808
+ let kn = (t) => crypto.getRandomValues(new Uint8Array(t)), Vn = (t, e, s) => {
809
809
  let n = (2 << Math.log(t.length - 1) / Math.LN2) - 1, r = -~(1.6 * n * e / t.length);
810
810
  return (i = e) => {
811
811
  let o = "";
@@ -816,13 +816,13 @@ let $n = (t) => crypto.getRandomValues(new Uint8Array(t)), kn = (t, e, s) => {
816
816
  return o;
817
817
  }
818
818
  };
819
- }, Vn = (t, e = 21) => kn(t, e, $n), jn = (t = 21) => {
819
+ }, jn = (t, e = 21) => Vn(t, e, kn), Kn = (t = 21) => {
820
820
  let e = "", s = crypto.getRandomValues(new Uint8Array(t));
821
821
  for (; t--; )
822
822
  e += Bn[s[t] & 63];
823
823
  return e;
824
824
  };
825
- const Kn = /^-ms-/, Yn = /-([a-z])/g, K = [
825
+ const Yn = /^-ms-/, zn = /-([a-z])/g, Y = [
826
826
  "A",
827
827
  "B",
828
828
  "C",
@@ -853,16 +853,16 @@ const Kn = /^-ms-/, Yn = /-([a-z])/g, K = [
853
853
  class R {
854
854
  static stringAt(e) {
855
855
  let s = "", n = e;
856
- for (; n >= K.length; )
857
- n /= K.length, n -= 1, s += K[n % K.length];
858
- const r = e % K.length;
859
- return s += K[r], s;
856
+ for (; n >= Y.length; )
857
+ n /= Y.length, n -= 1, s += Y[n % Y.length];
858
+ const r = e % Y.length;
859
+ return s += Y[r], s;
860
860
  }
861
861
  static indexAt(e) {
862
862
  let s = 0;
863
863
  for (let n = 0; n < e.length - 1; n += 1) {
864
864
  const r = e.charCodeAt(n) - 65, i = e.length - 1 - n;
865
- s += K.length ** i + K.length * r;
865
+ s += Y.length ** i + Y.length * r;
866
866
  }
867
867
  return s += e.charCodeAt(e.length - 1) - 65, s;
868
868
  }
@@ -905,7 +905,7 @@ class R {
905
905
  return o ? "FF" : s ? "Opera" : u ? "Safari" : a ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
906
906
  }
907
907
  static generateRandomId(e = 21, s) {
908
- return s ? Vn(s, e)() : jn(e);
908
+ return s ? jn(s, e)() : Kn(e);
909
909
  }
910
910
  static getClassName(e) {
911
911
  return e.constructor.name;
@@ -1108,7 +1108,7 @@ class R {
1108
1108
  // Support: IE <=9 - 11, Edge 12 - 15
1109
1109
  // Microsoft forgot to hump their vendor prefix (#9572)
1110
1110
  static camelCase(e) {
1111
- return e.replace(Kn, "ms-").replace(Yn, this.fCamelCase);
1111
+ return e.replace(Yn, "ms-").replace(zn, this.fCamelCase);
1112
1112
  }
1113
1113
  /**
1114
1114
  * remove all null from object
@@ -1234,7 +1234,7 @@ class R {
1234
1234
  return !s && n;
1235
1235
  }
1236
1236
  }
1237
- function Mo(t) {
1237
+ function Do(t) {
1238
1238
  if (!t)
1239
1239
  return;
1240
1240
  const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
@@ -1247,10 +1247,10 @@ function Mo(t) {
1247
1247
  endColumn: I,
1248
1248
  startY: v,
1249
1249
  endY: M,
1250
- startX: j,
1251
- endX: Ss
1250
+ startX: K,
1251
+ endX: ws
1252
1252
  } = i;
1253
- c = g, h = E, _ = m, f = I, o = v, u = M, a = j, l = Ss;
1253
+ c = g, h = E, _ = m, f = I, o = v, u = M, a = K, l = ws;
1254
1254
  }
1255
1255
  return r && (o = i.startY, u = i.endY, a = i.startX, l = i.endX, _ = i.endRow, f = i.endColumn), {
1256
1256
  startRow: c,
@@ -1263,7 +1263,7 @@ function Mo(t) {
1263
1263
  endX: l
1264
1264
  };
1265
1265
  }
1266
- function Do(t) {
1266
+ function po(t) {
1267
1267
  if (!t)
1268
1268
  return;
1269
1269
  const {
@@ -1284,7 +1284,7 @@ function Do(t) {
1284
1284
  endColumn: _
1285
1285
  };
1286
1286
  }
1287
- function po(t) {
1287
+ function xo(t) {
1288
1288
  var s;
1289
1289
  return !t || (((s = t == null ? void 0 : t.v) == null ? void 0 : s.toString()) || "").length === 0 && !t.p;
1290
1290
  }
@@ -1297,16 +1297,16 @@ function V(t) {
1297
1297
  }
1298
1298
  return null;
1299
1299
  }
1300
- function xo(t) {
1300
+ function Po(t) {
1301
1301
  return R.isString(t) && t.substring(0, 1) === "=" && t.length > 1;
1302
1302
  }
1303
- function Po(t) {
1303
+ function Ho(t) {
1304
1304
  return R.isString(t) && t.length > 0;
1305
1305
  }
1306
- function Ho(t) {
1306
+ function Fo(t) {
1307
1307
  return "";
1308
1308
  }
1309
- function Fo(t, e = !1) {
1309
+ function Wo(t, e = !1) {
1310
1310
  var i;
1311
1311
  let s = "";
1312
1312
  const n = /* @__PURE__ */ new Map([
@@ -1386,7 +1386,7 @@ function Fo(t, e = !1) {
1386
1386
  [
1387
1387
  "td",
1388
1388
  () => {
1389
- t.td === wt.LEFT_TO_RIGHT ? s += "direction: ltr; " : t.td === wt.RIGHT_TO_LEFT && (s += "direction: rtl; ");
1389
+ t.td === St.LEFT_TO_RIGHT ? s += "direction: ltr; " : t.td === St.RIGHT_TO_LEFT && (s += "direction: rtl; ");
1390
1390
  }
1391
1391
  ],
1392
1392
  [
@@ -1429,35 +1429,35 @@ function Fo(t, e = !1) {
1429
1429
  }
1430
1430
  function ft(t) {
1431
1431
  let e = "";
1432
- return t === S.NONE ? e = "none" : t === S.THIN ? e = "0.5pt solid" : t === S.HAIR ? e = "0.5pt double" : t === S.DOTTED ? e = "0.5pt dotted" : t === S.DASHED || t === S.DASH_DOT ? e = "0.5pt dashed" : t === S.DASH_DOT_DOT ? e = "0.5pt dotted" : t === S.DOUBLE ? e = "0.5pt double" : t === S.MEDIUM ? e = "1pt solid" : t === S.MEDIUM_DASHED || t === S.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === S.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === S.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === S.THICK && (e = "1.5pt solid"), e;
1432
+ return t === w.NONE ? e = "none" : t === w.THIN ? e = "0.5pt solid" : t === w.HAIR ? e = "0.5pt double" : t === w.DOTTED ? e = "0.5pt dotted" : t === w.DASHED || t === w.DASH_DOT ? e = "0.5pt dashed" : t === w.DASH_DOT_DOT ? e = "0.5pt dotted" : t === w.DOUBLE ? e = "0.5pt double" : t === w.MEDIUM ? e = "1pt solid" : t === w.MEDIUM_DASHED || t === w.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === w.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === w.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === w.THICK && (e = "1.5pt solid"), e;
1433
1433
  }
1434
- function Wo(t) {
1434
+ function $o(t) {
1435
1435
  let e = 0;
1436
1436
  if (t = t.trim(), t === "none")
1437
- e = S.NONE;
1437
+ e = w.NONE;
1438
1438
  else if (t === "0.5pt solid")
1439
- e = S.THIN;
1439
+ e = w.THIN;
1440
1440
  else if (t === "0.5pt double")
1441
- e = S.HAIR;
1441
+ e = w.HAIR;
1442
1442
  else if (t === "0.5pt dotted")
1443
- e = S.DOTTED;
1443
+ e = w.DOTTED;
1444
1444
  else if (t === "0.5pt dashed")
1445
- e = S.DASHED;
1445
+ e = w.DASHED;
1446
1446
  else if (t === "1pt solid")
1447
- e = S.MEDIUM;
1447
+ e = w.MEDIUM;
1448
1448
  else if (t === "1pt dashed")
1449
- e = S.MEDIUM_DASHED;
1449
+ e = w.MEDIUM_DASHED;
1450
1450
  else if (t === "1pt dotted")
1451
- e = S.MEDIUM_DASH_DOT_DOT;
1451
+ e = w.MEDIUM_DASH_DOT_DOT;
1452
1452
  else if (t === "1.5pt solid")
1453
- e = S.THICK;
1453
+ e = w.THICK;
1454
1454
  else if (!t.includes("none"))
1455
- e = S.THIN;
1455
+ e = w.THIN;
1456
1456
  else
1457
- return S.NONE;
1457
+ return w.NONE;
1458
1458
  return e;
1459
1459
  }
1460
- function Gt(t, e) {
1460
+ function $t(t, e) {
1461
1461
  let s = t.body;
1462
1462
  if (e) {
1463
1463
  const { headers: n, footers: r } = t;
@@ -1475,11 +1475,11 @@ function Bo(t, e) {
1475
1475
  function Ve(t, e) {
1476
1476
  return Object.prototype.toString.call(t) === Object.prototype.toString.call(e) ? Object.prototype.toString.call(t) === "[object Object]" || Object.prototype.toString.call(t) === "[object Array]" ? Object.keys(t).length !== Object.keys(e).length ? !1 : Object.keys(t).every((s) => Ve(t[s], e[s])) : t === e : !1;
1477
1477
  }
1478
- function zn(t, e) {
1478
+ function Xn(t, e) {
1479
1479
  const s = t.ts || {}, n = e.ts || {};
1480
1480
  return t.sId !== e.sId ? !1 : Ve(s, n);
1481
1481
  }
1482
- function $o(t, e) {
1482
+ function ko(t, e) {
1483
1483
  return e.some((s) => t.indexOf(s) > -1);
1484
1484
  }
1485
1485
  function je(t, e, s, n) {
@@ -1490,31 +1490,31 @@ function je(t, e, s, n) {
1490
1490
  let i = [];
1491
1491
  return t === s ? i = [n + 1 - r, e - r] : e === n ? i = [t, s - 1] : i = [t, e - r], i;
1492
1492
  }
1493
- function ko(t) {
1493
+ function Vo(t) {
1494
1494
  if (t == null)
1495
1495
  return !1;
1496
1496
  const e = t.bullet;
1497
1497
  return (e == null ? void 0 : e.listId) != null;
1498
1498
  }
1499
- function Vo(t) {
1499
+ function jo(t) {
1500
1500
  if (t == null)
1501
1501
  return !1;
1502
1502
  const e = t.paragraphStyle;
1503
- return Xn(e);
1503
+ return Jn(e);
1504
1504
  }
1505
- function Xn(t) {
1505
+ function Jn(t) {
1506
1506
  return !(t == null || (t.indentStart == null || t.indentStart === 0) && t.hanging == null || t.hanging === 0);
1507
1507
  }
1508
- function Jn(t, e, s) {
1508
+ function qn(t, e, s) {
1509
1509
  return t.slice(0, e) + s + t.slice(e);
1510
1510
  }
1511
- function qn(t, e, s) {
1511
+ function Zn(t, e, s) {
1512
1512
  return e > s ? t : t.slice(0, e) + t.slice(s);
1513
1513
  }
1514
- function jo(t) {
1514
+ function Ko(t) {
1515
1515
  return t === null || t.toString().replace(/\s/g, "") === "" || typeof t == "boolean" ? !1 : !isNaN(t);
1516
1516
  }
1517
- function Ko(t) {
1517
+ function Yo(t) {
1518
1518
  let e = 0;
1519
1519
  for (let s = 0; s < t.length; s++)
1520
1520
  e = t.charCodeAt(s) + (e << 6) + (e << 16) - e;
@@ -1561,13 +1561,13 @@ function Ie(t, e, s) {
1561
1561
  function lt(t) {
1562
1562
  return typeof t == "function";
1563
1563
  }
1564
- function Zn(t) {
1564
+ function Qn(t) {
1565
1565
  var e = function(n) {
1566
1566
  Error.call(n), n.stack = new Error().stack;
1567
1567
  }, s = t(e);
1568
1568
  return s.prototype = Object.create(Error.prototype), s.prototype.constructor = s, s;
1569
1569
  }
1570
- var Bt = Zn(function(t) {
1570
+ var Gt = Qn(function(t) {
1571
1571
  return function(s) {
1572
1572
  t(this), this.message = s ? s.length + ` errors occurred during unsubscription:
1573
1573
  ` + s.map(function(n, r) {
@@ -1615,7 +1615,7 @@ var Ke = function() {
1615
1615
  try {
1616
1616
  c();
1617
1617
  } catch (E) {
1618
- i = E instanceof Bt ? E.errors : [E];
1618
+ i = E instanceof Gt ? E.errors : [E];
1619
1619
  }
1620
1620
  var h = this._finalizers;
1621
1621
  if (h) {
@@ -1624,9 +1624,9 @@ var Ke = function() {
1624
1624
  for (var _ = Oe(h), f = _.next(); !f.done; f = _.next()) {
1625
1625
  var g = f.value;
1626
1626
  try {
1627
- Se(g);
1627
+ we(g);
1628
1628
  } catch (E) {
1629
- i = i != null ? i : [], E instanceof Bt ? i = Ie(Ie([], Ae(i)), Ae(E.errors)) : i.push(E);
1629
+ i = i != null ? i : [], E instanceof Gt ? i = Ie(Ie([], Ae(i)), Ae(E.errors)) : i.push(E);
1630
1630
  }
1631
1631
  }
1632
1632
  } catch (E) {
@@ -1641,13 +1641,13 @@ var Ke = function() {
1641
1641
  }
1642
1642
  }
1643
1643
  if (i)
1644
- throw new Bt(i);
1644
+ throw new Gt(i);
1645
1645
  }
1646
1646
  }, t.prototype.add = function(e) {
1647
1647
  var s;
1648
1648
  if (e && e !== this)
1649
1649
  if (this.closed)
1650
- Se(e);
1650
+ we(e);
1651
1651
  else {
1652
1652
  if (e instanceof t) {
1653
1653
  if (e.closed || e._hasParent(this))
@@ -1674,13 +1674,13 @@ var Ke = function() {
1674
1674
  }(), t;
1675
1675
  }();
1676
1676
  Ke.EMPTY;
1677
- function Qn(t) {
1677
+ function yn(t) {
1678
1678
  return t instanceof Ke || t && "closed" in t && lt(t.remove) && lt(t.add) && lt(t.unsubscribe);
1679
1679
  }
1680
- function Se(t) {
1680
+ function we(t) {
1681
1681
  lt(t) ? t() : t.unsubscribe();
1682
1682
  }
1683
- class yn {
1683
+ class tr {
1684
1684
  /**
1685
1685
  * Create a new EventState
1686
1686
  * @param skipNextObservers defines a flag which will instruct the observable to skip following observers when set to true
@@ -1714,7 +1714,7 @@ class yn {
1714
1714
  this.isStopPropagation = !0;
1715
1715
  }
1716
1716
  }
1717
- function tr(t) {
1717
+ function er(t) {
1718
1718
  return t instanceof le;
1719
1719
  }
1720
1720
  class le {
@@ -1744,7 +1744,7 @@ class ce {
1744
1744
  d(this, "_observers", new Array());
1745
1745
  d(this, "_eventState");
1746
1746
  d(this, "_onObserverAdded");
1747
- this._eventState = new yn(), e && (this._onObserverAdded = e);
1747
+ this._eventState = new tr(), e && (this._onObserverAdded = e);
1748
1748
  }
1749
1749
  /**
1750
1750
  * Gets the list of observers
@@ -1906,9 +1906,9 @@ class ce {
1906
1906
  }
1907
1907
  function b(t) {
1908
1908
  let e = !1;
1909
- return t ? Qn(t) ? {
1909
+ return t ? yn(t) ? {
1910
1910
  dispose: () => t.unsubscribe()
1911
- } : tr(t) ? {
1911
+ } : er(t) ? {
1912
1912
  dispose: () => {
1913
1913
  e || (e = !0, t.dispose());
1914
1914
  }
@@ -1919,7 +1919,7 @@ function b(t) {
1919
1919
  } : t : b(() => {
1920
1920
  });
1921
1921
  }
1922
- function Yo(t) {
1922
+ function zo(t) {
1923
1923
  return b(() => {
1924
1924
  t.unsubscribe();
1925
1925
  });
@@ -1958,7 +1958,7 @@ class T {
1958
1958
  this._disposed || (this._disposed = !0, this._collection.dispose());
1959
1959
  }
1960
1960
  }
1961
- class zo extends T {
1961
+ class Xo extends T {
1962
1962
  constructor() {
1963
1963
  super(...arguments);
1964
1964
  d(this, "dispose$", new H());
@@ -1988,13 +1988,13 @@ function he(t, e) {
1988
1988
  const s = t.indexOf(e);
1989
1989
  return s > -1 ? (t.splice(s, 1), !0) : !1;
1990
1990
  }
1991
- function Xo(t) {
1991
+ function Jo(t) {
1992
1992
  const e = /* @__PURE__ */ new Set(), s = [];
1993
1993
  for (const n of t)
1994
1994
  e.has(n) || (e.add(n), s.push(n));
1995
1995
  return s;
1996
1996
  }
1997
- function er(t, e) {
1997
+ function sr(t, e) {
1998
1998
  for (let s = t.length - 1; s > -1; s--) {
1999
1999
  const n = t[s];
2000
2000
  if (e(n, s))
@@ -2002,13 +2002,13 @@ function er(t, e) {
2002
2002
  }
2003
2003
  return null;
2004
2004
  }
2005
- function Jo(t, e) {
2005
+ function qo(t, e) {
2006
2006
  if (t.length === 0)
2007
2007
  return t;
2008
2008
  const s = e % t.length;
2009
2009
  return t.slice(s).concat(t.slice(0, s));
2010
2010
  }
2011
- function qo(t, e) {
2011
+ function Zo(t, e) {
2012
2012
  const s = /* @__PURE__ */ new Map();
2013
2013
  return t.forEach((n) => {
2014
2014
  const r = e(n);
@@ -2017,7 +2017,7 @@ function qo(t, e) {
2017
2017
  }), s;
2018
2018
  }
2019
2019
  const N = Symbol("newer"), U = Symbol("older");
2020
- class sr {
2020
+ class nr {
2021
2021
  constructor(e) {
2022
2022
  d(this, "entry");
2023
2023
  this.entry = e;
@@ -2030,7 +2030,7 @@ class sr {
2030
2030
  return e ? (this.entry = e[N], { done: !1, value: e.key }) : { done: !0, value: void 0 };
2031
2031
  }
2032
2032
  }
2033
- class nr {
2033
+ class rr {
2034
2034
  constructor(e) {
2035
2035
  d(this, "entry");
2036
2036
  this.entry = e;
@@ -2043,7 +2043,7 @@ class nr {
2043
2043
  return e ? (this.entry = e[N], { done: !1, value: e.value }) : { done: !0, value: void 0 };
2044
2044
  }
2045
2045
  }
2046
- class rr {
2046
+ class ir {
2047
2047
  constructor(e) {
2048
2048
  d(this, "entry");
2049
2049
  this.entry = e;
@@ -2056,13 +2056,13 @@ class rr {
2056
2056
  return e ? (this.entry = e[N], { done: !1, value: [e.key, e.value] }) : { done: !0, value: void 0 };
2057
2057
  }
2058
2058
  }
2059
- var _o, fo;
2060
- class we {
2059
+ var fo, go;
2060
+ class Se {
2061
2061
  constructor(e, s) {
2062
2062
  d(this, "key");
2063
2063
  d(this, "value");
2064
- d(this, _o);
2065
2064
  d(this, fo);
2065
+ d(this, go);
2066
2066
  this.key = e, this.value = s, this[N] = void 0, this[U] = void 0;
2067
2067
  }
2068
2068
  toJSON() {
@@ -2072,8 +2072,8 @@ class we {
2072
2072
  };
2073
2073
  }
2074
2074
  }
2075
- _o = N, fo = U;
2076
- class ir {
2075
+ fo = N, go = U;
2076
+ class or {
2077
2077
  constructor(...e) {
2078
2078
  d(this, "_keymap");
2079
2079
  d(this, "size", 0);
@@ -2115,7 +2115,7 @@ class ir {
2115
2115
  this._keymap.clear();
2116
2116
  const r = e[Symbol.iterator]();
2117
2117
  for (let i = r.next(); !i.done; i = r.next()) {
2118
- const o = new we(i.value[0], i.value[1]);
2118
+ const o = new Se(i.value[0], i.value[1]);
2119
2119
  if (this._keymap.set(o.key, o), s ? (s[N] = o, o[U] = s) : this.oldest = o, s = o, n-- === 0)
2120
2120
  throw new Error("overflow");
2121
2121
  }
@@ -2123,7 +2123,7 @@ class ir {
2123
2123
  }
2124
2124
  set(e, s) {
2125
2125
  let n = this._keymap.get(e);
2126
- return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new we(e, s)), this.newest ? (this.newest[N] = n, n[U] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
2126
+ return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new Se(e, s)), this.newest ? (this.newest[N] = n, n[U] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
2127
2127
  }
2128
2128
  shift() {
2129
2129
  const e = this.oldest;
@@ -2151,16 +2151,16 @@ class ir {
2151
2151
  this.oldest = void 0, this.newest = void 0, this.size = 0, this._keymap.clear();
2152
2152
  }
2153
2153
  keys() {
2154
- return new sr(this.oldest);
2154
+ return new nr(this.oldest);
2155
2155
  }
2156
2156
  values() {
2157
- return new nr(this.oldest);
2157
+ return new rr(this.oldest);
2158
2158
  }
2159
2159
  entries() {
2160
2160
  return this[Symbol.iterator]();
2161
2161
  }
2162
2162
  [Symbol.iterator]() {
2163
- return new rr(this.oldest);
2163
+ return new ir(this.oldest);
2164
2164
  }
2165
2165
  forEach(e, s) {
2166
2166
  typeof s != "object" && (s = this);
@@ -2182,7 +2182,7 @@ class ir {
2182
2182
  return e;
2183
2183
  }
2184
2184
  }
2185
- function J(t) {
2185
+ function q(t) {
2186
2186
  let e = 0;
2187
2187
  const s = Object.keys(t);
2188
2188
  for (const n of s) {
@@ -2192,7 +2192,7 @@ function J(t) {
2192
2192
  return e + 1;
2193
2193
  }
2194
2194
  function Le(t, e, s) {
2195
- const n = J(s), r = s;
2195
+ const n = q(s), r = s;
2196
2196
  for (let i = n - 1; i >= t; i--)
2197
2197
  r[i + 1] = r[i];
2198
2198
  r[t] = e;
@@ -2202,7 +2202,7 @@ function be(t, e, s) {
2202
2202
  for (let r = t; r < n; r++)
2203
2203
  r < t + e ? delete s[r] : s[r] !== void 0 && (s[r - e] = s[r], delete s[r]);
2204
2204
  }
2205
- function Zo(t, e) {
2205
+ function Qo(t, e) {
2206
2206
  const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), u = o.length, a = {};
2207
2207
  let l = 0;
2208
2208
  for (let c = 0; c < r; c++, l++) {
@@ -2215,9 +2215,9 @@ function Zo(t, e) {
2215
2215
  }
2216
2216
  return a;
2217
2217
  }
2218
- function Qo(t, e, s) {
2218
+ function yo(t, e, s) {
2219
2219
  const n = s;
2220
- if (J(s) > 0) {
2220
+ if (q(s) > 0) {
2221
2221
  const i = {};
2222
2222
  let o = 0;
2223
2223
  for (let u = t; u <= e; u++)
@@ -2230,9 +2230,9 @@ function ve(t, e, s, n) {
2230
2230
  const r = t > s;
2231
2231
  if (!r && t + e > s)
2232
2232
  throw new Error("Invalid move operation");
2233
- r ? or(t, e, s, n) : ur(t, e, s, n);
2233
+ r ? ur(t, e, s, n) : ar(t, e, s, n);
2234
2234
  }
2235
- function or(t, e, s, n) {
2235
+ function ur(t, e, s, n) {
2236
2236
  const r = n, i = [];
2237
2237
  for (let o = t; o < t + e; o++)
2238
2238
  i.push(r[o]);
@@ -2244,7 +2244,7 @@ function or(t, e, s, n) {
2244
2244
  r[s + u] = o, o === void 0 && delete r[s + u];
2245
2245
  });
2246
2246
  }
2247
- function ur(t, e, s, n) {
2247
+ function ar(t, e, s, n) {
2248
2248
  const r = n, i = [];
2249
2249
  for (let o = t; o < t + e; o++)
2250
2250
  i.push(r[o]);
@@ -2436,7 +2436,7 @@ class k {
2436
2436
  return Object.keys(this._matrix).length;
2437
2437
  }
2438
2438
  getLength() {
2439
- return J(this._matrix);
2439
+ return q(this._matrix);
2440
2440
  }
2441
2441
  getRange() {
2442
2442
  const n = this.getLength() - 1;
@@ -2445,7 +2445,7 @@ class k {
2445
2445
  for (let o = 0; o < i; o++) {
2446
2446
  const u = this.getRow(o);
2447
2447
  if (u) {
2448
- const a = J(u) - 1;
2448
+ const a = q(u) - 1;
2449
2449
  r = a > r ? a : r;
2450
2450
  }
2451
2451
  }
@@ -2514,7 +2514,7 @@ class k {
2514
2514
  return this.forEach((u, a) => {
2515
2515
  if (i || (i = !0, e = u), a == null)
2516
2516
  return;
2517
- const l = J(a) - 1;
2517
+ const l = q(a) - 1;
2518
2518
  l > n && (n = l), Object.keys(a).forEach((c) => {
2519
2519
  const h = Number(c);
2520
2520
  o ? h < s && (s = h) : (o = !0, s = h);
@@ -2557,18 +2557,18 @@ class k {
2557
2557
  }
2558
2558
  }
2559
2559
  var ze = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(ze || {});
2560
- class ar {
2560
+ class lr {
2561
2561
  constructor() {
2562
2562
  d(this, "status", "init");
2563
2563
  }
2564
2564
  }
2565
- const yo = (t) => t.some(
2565
+ const tu = (t) => t.some(
2566
2566
  (e) => e.status === "init"
2567
2567
  /* INIT */
2568
2568
  ) ? "init" : t.some(
2569
2569
  (e) => e.status === "fetching"
2570
2570
  /* FETCHING */
2571
- ) ? "fetching" : "done", z = class z {
2571
+ ) ? "fetching" : "done", X = class X {
2572
2572
  static clone(e) {
2573
2573
  return e.rangeType !== void 0 ? {
2574
2574
  startRow: e.startRow,
@@ -2632,7 +2632,7 @@ const yo = (t) => t.some(
2632
2632
  return e.startRow <= s.startRow && e.endRow >= s.endRow && e.startColumn <= s.startColumn && e.endColumn >= s.endColumn;
2633
2633
  }
2634
2634
  static realContain(e, s) {
2635
- return z.contains(e, s) && (e.startRow < s.startRow || e.endRow > s.endRow || e.startColumn < s.startColumn || e.endColumn > s.endColumn);
2635
+ return X.contains(e, s) && (e.startRow < s.startRow || e.endRow > s.endRow || e.startColumn < s.startColumn || e.endColumn > s.endColumn);
2636
2636
  }
2637
2637
  static union(...e) {
2638
2638
  return e.reduce(
@@ -2675,34 +2675,34 @@ const yo = (t) => t.some(
2675
2675
  }), n.filter((u) => u.startRow <= u.endRow && u.startColumn <= u.endColumn);
2676
2676
  }
2677
2677
  };
2678
- d(z, "getRelativeRange", (e, s) => ({
2678
+ d(X, "getRelativeRange", (e, s) => ({
2679
2679
  startRow: e.startRow - s.startRow,
2680
2680
  endRow: e.endRow - e.startRow,
2681
2681
  startColumn: e.startColumn - s.startColumn,
2682
2682
  endColumn: e.endColumn - e.startColumn
2683
- })), d(z, "getPositionRange", (e, s, n) => ({
2683
+ })), d(X, "getPositionRange", (e, s, n) => ({
2684
2684
  ...n || {},
2685
2685
  startRow: n && [L.ROW, L.ALL].includes(n.startAbsoluteRefType || 0) ? n.startRow : e.startRow + s.startRow,
2686
2686
  endRow: n && [L.ROW, L.ALL].includes(n.endAbsoluteRefType || 0) ? n.endRow : e.endRow + e.startRow + s.startRow,
2687
2687
  startColumn: n && [L.COLUMN, L.ALL].includes(n.startAbsoluteRefType || 0) ? n.startColumn : e.startColumn + s.startColumn,
2688
2688
  endColumn: n && [L.COLUMN, L.ALL].includes(n.endAbsoluteRefType || 0) ? n.endColumn : e.endColumn + e.startColumn + s.startColumn
2689
- })), d(z, "moveHorizontal", (e, s = 0, n = 0) => ({
2689
+ })), d(X, "moveHorizontal", (e, s = 0, n = 0) => ({
2690
2690
  ...e,
2691
2691
  startColumn: e.startColumn + s,
2692
2692
  endColumn: e.endColumn + s + n
2693
- })), d(z, "moveVertical", (e, s = 0, n = 0) => ({
2693
+ })), d(X, "moveVertical", (e, s = 0, n = 0) => ({
2694
2694
  ...e,
2695
2695
  startRow: e.startRow + s,
2696
2696
  endRow: e.endRow + s + n
2697
- })), d(z, "moveOffset", (e, s, n) => ({
2697
+ })), d(X, "moveOffset", (e, s, n) => ({
2698
2698
  ...e,
2699
2699
  startRow: e.startRow + n,
2700
2700
  endRow: e.endRow + n,
2701
2701
  startColumn: e.startColumn + s,
2702
2702
  endColumn: e.endColumn + s
2703
2703
  }));
2704
- let Z = z;
2705
- class tu {
2704
+ let Z = X;
2705
+ class eu {
2706
2706
  constructor(e, s) {
2707
2707
  d(this, "_values", []);
2708
2708
  d(this, "_keys", []);
@@ -2779,7 +2779,7 @@ function Ue(t, e, s, n) {
2779
2779
  }
2780
2780
  };
2781
2781
  }
2782
- function eu(t) {
2782
+ function su(t) {
2783
2783
  if (t == null || t.length === 0)
2784
2784
  return Number.NaN;
2785
2785
  const e = t.toLowerCase().split(""), s = e.length, n = (o) => o.charCodeAt(0) - 96;
@@ -2788,37 +2788,37 @@ function eu(t) {
2788
2788
  i = n(e[o]), r += i * 26 ** (s - o - 1);
2789
2789
  return r === 0 ? Number.NaN : r - 1;
2790
2790
  }
2791
- const bt = 65, Xe = 90, lr = 97;
2792
- function su(t) {
2791
+ const bt = 65, Xe = 90, cr = 97;
2792
+ function nu(t) {
2793
2793
  const e = Xe - bt + 1;
2794
2794
  let s = "";
2795
2795
  for (; t >= 0; )
2796
2796
  s = String.fromCharCode(t % e + bt) + s, t = Math.floor(t / e) - 1;
2797
2797
  return s;
2798
2798
  }
2799
- function cr(t, e) {
2799
+ function hr(t, e) {
2800
2800
  let s = "";
2801
2801
  for (; e > 0; )
2802
2802
  s += t, e--;
2803
2803
  return s;
2804
2804
  }
2805
- function nu(t, e = !1) {
2805
+ function ru(t, e = !1) {
2806
2806
  const s = Xe - bt + 1;
2807
- let n = lr;
2807
+ let n = cr;
2808
2808
  e && (n = bt);
2809
2809
  const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
2810
- return cr(r, i);
2810
+ return hr(r, i);
2811
2811
  }
2812
- function ru(t, e) {
2812
+ function iu(t, e) {
2813
2813
  return t.zIndex > e.zIndex ? 1 : t.zIndex === e.zIndex ? 0 : -1;
2814
2814
  }
2815
- function iu(t, e) {
2815
+ function ou(t, e) {
2816
2816
  return t.zIndex > e.zIndex ? -1 : t.zIndex === e.zIndex ? 0 : 1;
2817
2817
  }
2818
2818
  function ht(t = "index", e = 1) {
2819
2819
  return (s, n) => s[t] > n[t] ? e : s[t] === n[t] ? 0 : -e;
2820
2820
  }
2821
- function ou(t, e) {
2821
+ function uu(t, e) {
2822
2822
  let s;
2823
2823
  return function(...n) {
2824
2824
  const r = this, i = function() {
@@ -2827,7 +2827,7 @@ function ou(t, e) {
2827
2827
  clearTimeout(s), s = setTimeout(i, e);
2828
2828
  };
2829
2829
  }
2830
- function $t(t, e, s) {
2830
+ function Bt(t, e, s) {
2831
2831
  const { dataStream: n, textRuns: r = [] } = t;
2832
2832
  let i = e;
2833
2833
  const o = [];
@@ -2844,18 +2844,18 @@ function $t(t, e, s) {
2844
2844
  }
2845
2845
  return i !== s && o.push(n.slice(i, s)), o.join("");
2846
2846
  }
2847
- function uu(t, e = !0) {
2847
+ function au(t, e = !0) {
2848
2848
  var s;
2849
2849
  if (e && ((s = t.paragraphs) != null && s.length)) {
2850
2850
  const { dataStream: n, paragraphs: r = [] } = t;
2851
2851
  let i = "", o = -1;
2852
2852
  for (const u of r) {
2853
2853
  const { startIndex: a, paragraphStyle: l = {} } = u, { spaceAbove: c, spaceBelow: h, lineSpacing: _ } = l, f = [];
2854
- 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`)), _ != null && f.push(`line-height: ${_}`), a > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${$t(t, o + 1, a)}</p>` : i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}></p>`, o = a;
2854
+ 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`)), _ != null && f.push(`line-height: ${_}`), a > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${Bt(t, o + 1, a)}</p>` : i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}></p>`, o = a;
2855
2855
  }
2856
- return o !== n.length && (i += $t(t, o, n.length)), i;
2856
+ return o !== n.length && (i += Bt(t, o, n.length)), i;
2857
2857
  } else
2858
- return $t(t, 0, t.dataStream.length);
2858
+ return Bt(t, 0, t.dataStream.length);
2859
2859
  }
2860
2860
  function Te(t, e) {
2861
2861
  const { st: s, ed: n, ts: r = {} } = e, { ff: i, fs: o, it: u, bl: a, ul: l, st: c, ol: h, bg: _, cl: f, va: g } = r;
@@ -2871,17 +2871,17 @@ const Et = {
2871
2871
  startColumn: -1,
2872
2872
  endColumn: -1
2873
2873
  }
2874
- }, au = {
2874
+ }, lu = {
2875
2875
  startRow: -1,
2876
2876
  startColumn: -1,
2877
2877
  endRow: -1,
2878
2878
  endColumn: -1
2879
- }, lu = {
2879
+ }, cu = {
2880
2880
  startRow: 0,
2881
2881
  startColumn: 0,
2882
2882
  endRow: 0,
2883
2883
  endColumn: 0
2884
- }, cu = {
2884
+ }, hu = {
2885
2885
  row: 0,
2886
2886
  column: 0
2887
2887
  }, kt = {
@@ -2937,7 +2937,7 @@ const Et = {
2937
2937
  /**
2938
2938
  * textDirection
2939
2939
  */
2940
- td: wt.UNSPECIFIED,
2940
+ td: St.UNSPECIFIED,
2941
2941
  /**
2942
2942
  * color
2943
2943
  */
@@ -2971,7 +2971,7 @@ const Et = {
2971
2971
  b: 0,
2972
2972
  l: 0
2973
2973
  }
2974
- }, hr = {
2974
+ }, dr = {
2975
2975
  id: "default_slide",
2976
2976
  title: "defaultSlide",
2977
2977
  pageSize: {
@@ -2979,7 +2979,7 @@ const Et = {
2979
2979
  height: 300
2980
2980
  }
2981
2981
  };
2982
- var dr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(dr || {});
2982
+ var _r = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(_r || {});
2983
2983
  function Rt(t, e) {
2984
2984
  const { textRuns: s = [] } = e;
2985
2985
  let n = 0;
@@ -3489,7 +3489,7 @@ class it {
3489
3489
  );
3490
3490
  }
3491
3491
  }
3492
- function _r(t, e) {
3492
+ function fr(t, e) {
3493
3493
  if (t.length === 0 || t[0].length === 0)
3494
3494
  return null;
3495
3495
  const s = new Array(t[0].length).fill(0);
@@ -3497,7 +3497,7 @@ function _r(t, e) {
3497
3497
  for (let i = 0; i < t.length; i++) {
3498
3498
  for (let u = 0; u < t[0].length; u++)
3499
3499
  s[u] = e(t[i][u]) ? s[u] + 1 : 0;
3500
- const o = fr(s);
3500
+ const o = gr(s);
3501
3501
  o.area > n && (n = o.area, r = {
3502
3502
  startColumn: o.start,
3503
3503
  startRow: i - o.height + 1,
@@ -3507,7 +3507,7 @@ function _r(t, e) {
3507
3507
  }
3508
3508
  return r;
3509
3509
  }
3510
- function fr(t) {
3510
+ function gr(t) {
3511
3511
  const e = [];
3512
3512
  let s = 0, n = { area: 0, height: 0, start: 0, end: 0 }, r = 0;
3513
3513
  for (; r < t.length; )
@@ -3523,27 +3523,27 @@ function fr(t) {
3523
3523
  }
3524
3524
  return n;
3525
3525
  }
3526
- function gr(t, e) {
3526
+ function Er(t, e) {
3527
3527
  it.foreach(e, (s, n) => {
3528
3528
  t[s][n] = void 0;
3529
3529
  });
3530
3530
  }
3531
- function hu(t, e) {
3531
+ function du(t, e) {
3532
3532
  const s = t.toFullArray(), n = [];
3533
3533
  for (; ; ) {
3534
- const r = _r(s, e);
3534
+ const r = fr(s, e);
3535
3535
  if (!r)
3536
3536
  break;
3537
- n.push(r), gr(s, r);
3537
+ n.push(r), Er(s, r);
3538
3538
  }
3539
3539
  return n;
3540
3540
  }
3541
- function du(t, e, s, n = !1) {
3541
+ function _u(t, e, s, n = !1) {
3542
3542
  let r = { ...t };
3543
3543
  const i = r.startAbsoluteRefType || L.NONE, o = r.endAbsoluteRefType || L.NONE;
3544
3544
  return !n && i === L.ALL && o === L.ALL ? r : n || i === L.NONE && o === L.NONE ? Z.moveOffset(r, e, s) : (i === L.NONE ? r = { ...r, startRow: r.startRow + s, startColumn: r.startColumn + e } : i === L.COLUMN ? r = { ...r, startRow: r.startRow + s } : i === L.ROW && (r = { ...r, startColumn: r.startColumn + e }), o === L.NONE ? r = { ...r, endRow: r.endRow + s, endColumn: r.endColumn + e } : o === L.COLUMN ? r = { ...r, endRow: r.endRow + s } : o === L.ROW && (r = { ...r, endColumn: r.endColumn + e }), r);
3545
3545
  }
3546
- async function Er(t) {
3546
+ async function Rr(t) {
3547
3547
  for (const [e, s] of t.entries())
3548
3548
  try {
3549
3549
  if (!await s())
@@ -3563,7 +3563,7 @@ async function Er(t) {
3563
3563
  index: -1
3564
3564
  };
3565
3565
  }
3566
- function Rr(t) {
3566
+ function mr(t) {
3567
3567
  for (const [e, s] of t.entries())
3568
3568
  try {
3569
3569
  if (!s())
@@ -3583,8 +3583,8 @@ function Rr(t) {
3583
3583
  index: -1
3584
3584
  };
3585
3585
  }
3586
- const pt = G("univer.context-service");
3587
- class mr extends T {
3586
+ const pt = $("univer.context-service");
3587
+ class Cr extends T {
3588
3588
  constructor() {
3589
3589
  super(...arguments);
3590
3590
  d(this, "_contextChanged$", new H());
@@ -3608,9 +3608,9 @@ class mr extends T {
3608
3608
  });
3609
3609
  }
3610
3610
  }
3611
- var Cr = /* @__PURE__ */ ((t) => (t[t.SILENT = 0] = "SILENT", t[t.ERROR = 1] = "ERROR", t[t.WARN = 2] = "WARN", t[t.INFO = 3] = "INFO", t[t.VERBOSE = 4] = "VERBOSE", t))(Cr || {});
3612
- const et = G("univer.log");
3613
- class Or extends T {
3611
+ var Or = /* @__PURE__ */ ((t) => (t[t.SILENT = 0] = "SILENT", t[t.ERROR = 1] = "ERROR", t[t.WARN = 2] = "WARN", t[t.INFO = 3] = "INFO", t[t.VERBOSE = 4] = "VERBOSE", t))(Or || {});
3612
+ const et = $("univer.log");
3613
+ class Ar extends T {
3614
3614
  constructor() {
3615
3615
  super(...arguments);
3616
3616
  d(this, "_logLevel", 3);
@@ -3635,22 +3635,23 @@ class Or extends T {
3635
3635
  /^\[(.*?)\]/g.test(r) ? s(`\x1B[97;104m${r}\x1B[0m`, ...n.slice(1)) : s(...n);
3636
3636
  }
3637
3637
  }
3638
- var Ar = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, Nr = (t, e, s, n) => {
3639
- for (var r = n > 1 ? void 0 : n ? Ir(e, s) : e, i = t.length - 1, o; i >= 0; i--)
3638
+ var Ir = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, wr = (t, e, s, n) => {
3639
+ for (var r = n > 1 ? void 0 : n ? Nr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
3640
3640
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
3641
- return n && r && Ar(e, s, r), r;
3641
+ return n && r && Ir(e, s, r), r;
3642
3642
  }, Me = (t, e) => (s, n) => e(s, n, t), xt = /* @__PURE__ */ ((t) => (t[t.COMMAND = 0] = "COMMAND", t[t.OPERATION = 1] = "OPERATION", t[t.MUTATION = 2] = "MUTATION", t))(xt || {});
3643
- const Pt = G("anywhere.command-service");
3643
+ const Pt = $("anywhere.command-service");
3644
3644
  class Sr {
3645
3645
  constructor() {
3646
3646
  d(this, "_commands", /* @__PURE__ */ new Map());
3647
+ d(this, "_commandTypes", /* @__PURE__ */ new Map());
3647
3648
  }
3648
3649
  registerCommand(e) {
3649
3650
  if (this._commands.has(e.id))
3650
3651
  throw new Error(`[CommandRegistry]: command "${e.id}" has been registered before.`);
3651
- return this._commands.set(e.id, e), b(() => {
3652
+ return this._commands.set(e.id, e), this._commandTypes.set(e.id, e.type), b(() => {
3652
3653
  var s;
3653
- this._commands.delete(e.id), (s = e.onDispose) == null || s.call(e);
3654
+ this._commands.delete(e.id), this._commandTypes.delete(e.id), (s = e.onDispose) == null || s.call(e);
3654
3655
  });
3655
3656
  }
3656
3657
  hasCommand(e) {
@@ -3659,8 +3660,11 @@ class Sr {
3659
3660
  getCommand(e) {
3660
3661
  return this._commands.has(e) ? [this._commands.get(e)] : null;
3661
3662
  }
3663
+ getCommandType(e) {
3664
+ return this._commandTypes.get(e);
3665
+ }
3662
3666
  }
3663
- const wr = {
3667
+ const Lr = {
3664
3668
  id: "nil",
3665
3669
  type: 0,
3666
3670
  handler: () => !0
@@ -3673,7 +3677,7 @@ let yt = class {
3673
3677
  d(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
3674
3678
  d(this, "_commandExecutingLevel", 0);
3675
3679
  d(this, "_commandExecutionStack", []);
3676
- this._injector = t, this._logService = e, this._commandRegistry = new Sr(), this._registerCommand(wr);
3680
+ this._injector = t, this._logService = e, this._commandRegistry = new Sr(), this._registerCommand(Lr);
3677
3681
  }
3678
3682
  hasCommand(t) {
3679
3683
  return this._commandRegistry.hasCommand(t);
@@ -3724,7 +3728,7 @@ let yt = class {
3724
3728
  params: e
3725
3729
  };
3726
3730
  if (i.type === 2) {
3727
- const l = er(
3731
+ const l = sr(
3728
3732
  this._commandExecutionStack,
3729
3733
  (c) => c.type === 0
3730
3734
  /* COMMAND */
@@ -3753,7 +3757,7 @@ let yt = class {
3753
3757
  s = e[0];
3754
3758
  } else {
3755
3759
  const r = new Ye();
3756
- s = new Lr(t.id), r.add(this._commandRegistry.registerCommand(s)), r.add(
3760
+ s = new br(t.id), r.add(this._commandRegistry.registerCommand(s)), r.add(
3757
3761
  b(() => {
3758
3762
  this._multiCommandDisposables.delete(t.id);
3759
3763
  })
@@ -3794,11 +3798,11 @@ let yt = class {
3794
3798
  return n;
3795
3799
  }
3796
3800
  };
3797
- yt = Nr([
3801
+ yt = wr([
3798
3802
  Me(0, P(tt)),
3799
3803
  Me(1, et)
3800
3804
  ], yt);
3801
- class Lr {
3805
+ class br {
3802
3806
  constructor(e) {
3803
3807
  d(this, "name");
3804
3808
  d(this, "multi", !0);
@@ -3832,27 +3836,27 @@ class Lr {
3832
3836
  }
3833
3837
  function Je(t, e, s) {
3834
3838
  const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
3835
- return Rr(n);
3839
+ return mr(n);
3836
3840
  }
3837
- function _u(t, e, s) {
3841
+ function fu(t, e, s) {
3838
3842
  const n = t.map((r) => () => e.executeCommand(r.id, r.params, s));
3839
- return Er(n);
3843
+ return Rr(n);
3840
3844
  }
3841
- function br(t) {
3845
+ function vr(t) {
3842
3846
  return new ie((e) => {
3843
3847
  const s = t((...n) => e.next(n));
3844
3848
  return () => s == null ? void 0 : s.dispose();
3845
3849
  });
3846
3850
  }
3847
- const fu = (t) => new Promise((e) => {
3851
+ const gu = (t) => new Promise((e) => {
3848
3852
  bs(
3849
- br(t.onCommandExecuted).pipe(Ds(([s]) => s.type === xt.MUTATION)),
3853
+ vr(t.onCommandExecuted).pipe(ps(([s]) => s.type === xt.MUTATION)),
3850
3854
  vs(300)
3851
- ).pipe(ps(16), xs()).subscribe(() => {
3855
+ ).pipe(xs(16), Ps()).subscribe(() => {
3852
3856
  e();
3853
3857
  });
3854
3858
  });
3855
- var W = /* @__PURE__ */ ((t) => (t[t.UNDEFINED = 0] = "UNDEFINED", t[t.OK = 1] = "OK", t[t.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", t[t.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", t[t.NOT_FOUND = 4] = "NOT_FOUND", t[t.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", t[t.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", t[t.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", t[t.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", t[t.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", t[t.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", t[t.APPLY_REJECT = 7001] = "APPLY_REJECT", t[t.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", t[t.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", t[t.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", t[t.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", t[t.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", t[t.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", t[t.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", t[t.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", t[t.UNRECOGNIZED = -1] = "UNRECOGNIZED", t))(W || {});
3859
+ var W = /* @__PURE__ */ ((t) => (t[t.UNDEFINED = 0] = "UNDEFINED", t[t.OK = 1] = "OK", t[t.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", t[t.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", t[t.NOT_FOUND = 4] = "NOT_FOUND", t[t.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", t[t.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", t[t.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", t[t.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", t[t.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", t[t.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", t[t.APPLY_REJECT = 7001] = "APPLY_REJECT", t[t.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", t[t.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", t[t.APPLY_PERMISSION_DENIED = 7004] = "APPLY_PERMISSION_DENIED", t[t.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", t[t.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", t[t.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", t[t.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", t[t.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", t[t.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", t[t.UNRECOGNIZED = -1] = "UNRECOGNIZED", t))(W || {});
3856
3860
  function qe(t) {
3857
3861
  return !!(t && t.code && t.code !== W.OK && t.code !== "OK");
3858
3862
  }
@@ -3894,7 +3898,7 @@ class Qe {
3894
3898
  return this._data;
3895
3899
  }
3896
3900
  }
3897
- class vr {
3901
+ class Ur {
3898
3902
  constructor() {
3899
3903
  d(this, "cursor", 0);
3900
3904
  }
@@ -3908,7 +3912,7 @@ class vr {
3908
3912
  this.cursor = e;
3909
3913
  }
3910
3914
  }
3911
- var Ur = /* @__PURE__ */ ((t) => (t[t.PARAGRAPH = 0] = "PARAGRAPH", t[t.SECTION_BREAK = 1] = "SECTION_BREAK", t[t.TABLE = 2] = "TABLE", t[t.TABLE_ROW = 3] = "TABLE_ROW", t[t.TABLE_CELL = 4] = "TABLE_CELL", t[t.CUSTOM_BLOCK = 5] = "CUSTOM_BLOCK", t))(Ur || {}), ye = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
3915
+ var Tr = /* @__PURE__ */ ((t) => (t[t.PARAGRAPH = 0] = "PARAGRAPH", t[t.SECTION_BREAK = 1] = "SECTION_BREAK", t[t.TABLE = 2] = "TABLE", t[t.TABLE_ROW = 3] = "TABLE_ROW", t[t.TABLE_CELL = 4] = "TABLE_CELL", t[t.CUSTOM_BLOCK = 5] = "CUSTOM_BLOCK", t))(Tr || {}), ye = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
3912
3916
  `, t.TABLE_START = "", t.TABLE_ROW_START = "\x1B", t.TABLE_CELL_START = "", t.TABLE_CELL_END = "", t.TABLE_ROW_END = "", t.TABLE_END = "", t.CUSTOM_RANGE_START = "", t.CUSTOM_RANGE_END = "", t.COLUMN_BREAK = "\v", t.PAGE_BREAK = "\f", t.DOCS_END = "\0", t.TAB = " ", t.CUSTOM_BLOCK = "\b", t.LETTER = "", t.SPACE = " ", t))(ye || {});
3913
3917
  function ts(t) {
3914
3918
  const e = [];
@@ -3921,7 +3925,7 @@ function ts(t) {
3921
3925
  continue;
3922
3926
  }
3923
3927
  const o = e.pop();
3924
- zn(s, o) && R.hasIntersectionBetweenTwoRanges(o.st, o.ed, s.st, s.ed) ? e.push({
3928
+ Xn(s, o) && R.hasIntersectionBetweenTwoRanges(o.st, o.ed, s.st, s.ed) ? e.push({
3925
3929
  ...s,
3926
3930
  st: o.st,
3927
3931
  ed: r
@@ -3999,7 +4003,7 @@ function _e(t, e, s, n) {
3999
4003
  l !== -1 && r.splice(l, 1), r.push(...i), r.sort(ht("startIndex"));
4000
4004
  }
4001
4005
  }
4002
- function Tr(t, e, s, n) {
4006
+ function Mr(t, e, s, n) {
4003
4007
  const { sectionBreaks: r } = t;
4004
4008
  if (r == null)
4005
4009
  return;
@@ -4050,7 +4054,7 @@ function fe(t, e, s, n) {
4050
4054
  r.push(...i), r.sort(ht("startIndex"));
4051
4055
  }
4052
4056
  }
4053
- function Mr(t, e, s, n) {
4057
+ function Dr(t, e, s, n) {
4054
4058
  const { customRanges: r } = t;
4055
4059
  if (r == null)
4056
4060
  return;
@@ -4098,7 +4102,11 @@ function ns(t, e, s) {
4098
4102
  }
4099
4103
  t.textRuns = u;
4100
4104
  }
4101
- return o;
4105
+ return o.length === 0 && o.push({
4106
+ st: 0,
4107
+ ed: e,
4108
+ ts: {}
4109
+ }), o;
4102
4110
  }
4103
4111
  function rs(t, e, s) {
4104
4112
  const { paragraphs: n } = t, r = s, i = s + e, o = [];
@@ -4208,10 +4216,10 @@ function as(t, e, s) {
4208
4216
  }
4209
4217
  return o;
4210
4218
  }
4211
- function Dr(t, e, s) {
4219
+ function pr(t, e, s) {
4212
4220
  const { dataStream: n } = t, r = s, i = s + e, o = ns(t, e, s), u = rs(t, e, s), a = is(t, e, s), l = os(t, e, s), c = us(t, e, s), h = as(t, e, s);
4213
4221
  let _ = "";
4214
- return n && (t.dataStream = qn(n, r, i), _ = n.slice(r, i)), {
4222
+ return n && (t.dataStream = Zn(n, r, i), _ = n.slice(r, i)), {
4215
4223
  dataStream: _,
4216
4224
  textRuns: o,
4217
4225
  paragraphs: u,
@@ -4221,16 +4229,16 @@ function Dr(t, e, s) {
4221
4229
  customRanges: h
4222
4230
  };
4223
4231
  }
4224
- function pr(t, e, s, n) {
4225
- t.dataStream = Jn(t.dataStream, n, e.dataStream), es(t, e, s, n), _e(t, e, s, n), Tr(t, e, s, n), ss(t, e, s, n), fe(t, e, s, n), Mr(t, e, s, n);
4232
+ function xr(t, e, s, n) {
4233
+ t.dataStream = qn(t.dataStream, n, e.dataStream), es(t, e, s, n), _e(t, e, s, n), Mr(t, e, s, n), ss(t, e, s, n), fe(t, e, s, n), Dr(t, e, s, n);
4226
4234
  }
4227
4235
  var te = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(te || {});
4228
- const gu = {
4236
+ const Eu = {
4229
4237
  BULLET_LIST: {
4230
4238
  listType: "BULLET_LIST",
4231
4239
  nestingLevel: [
4232
4240
  {
4233
- bulletAlignment: X.START,
4241
+ bulletAlignment: J.START,
4234
4242
  glyphFormat: " %0",
4235
4243
  textStyle: {
4236
4244
  fs: 12
@@ -4241,7 +4249,7 @@ const gu = {
4241
4249
  indentStart: 21
4242
4250
  },
4243
4251
  {
4244
- bulletAlignment: X.START,
4252
+ bulletAlignment: J.START,
4245
4253
  glyphFormat: " %1",
4246
4254
  textStyle: {
4247
4255
  fs: 12
@@ -4252,7 +4260,7 @@ const gu = {
4252
4260
  indentStart: 42
4253
4261
  },
4254
4262
  {
4255
- bulletAlignment: X.START,
4263
+ bulletAlignment: J.START,
4256
4264
  glyphFormat: " %1",
4257
4265
  textStyle: {
4258
4266
  fs: 12
@@ -4268,7 +4276,7 @@ const gu = {
4268
4276
  listType: "ORDER_LIST",
4269
4277
  nestingLevel: [
4270
4278
  {
4271
- bulletAlignment: X.START,
4279
+ bulletAlignment: J.START,
4272
4280
  glyphFormat: " %1.",
4273
4281
  textStyle: {
4274
4282
  fs: 12
@@ -4279,7 +4287,7 @@ const gu = {
4279
4287
  indentStart: 21
4280
4288
  },
4281
4289
  {
4282
- bulletAlignment: X.START,
4290
+ bulletAlignment: J.START,
4283
4291
  glyphFormat: " %1.%2)",
4284
4292
  textStyle: {
4285
4293
  fs: 12
@@ -4290,7 +4298,7 @@ const gu = {
4290
4298
  indentStart: 42
4291
4299
  },
4292
4300
  {
4293
- bulletAlignment: X.START,
4301
+ bulletAlignment: J.START,
4294
4302
  glyphFormat: " %1.%2.%3.",
4295
4303
  textStyle: {
4296
4304
  fs: 12
@@ -4303,8 +4311,8 @@ const gu = {
4303
4311
  ]
4304
4312
  }
4305
4313
  };
4306
- function xr(t, e, s, n, r) {
4307
- const i = Pr(t, e, s, n, r), o = Hr(t, e, s, n, r), u = Fr(t, e, s, n, r), a = Wr(t, e, s, n, r), l = Gr(t, e, s, n, r), c = Br(t, e, s, n, r);
4314
+ function Pr(t, e, s, n, r) {
4315
+ const i = Hr(t, e, s, n, r), o = Fr(t, e, s, n, r), u = Wr(t, e, s, n, r), a = $r(t, e, s, n, r), l = Gr(t, e, s, n, r), c = Br(t, e, s, n, r);
4308
4316
  return {
4309
4317
  dataStream: "",
4310
4318
  textRuns: i,
@@ -4315,7 +4323,7 @@ function xr(t, e, s, n, r) {
4315
4323
  customRanges: c
4316
4324
  };
4317
4325
  }
4318
- function Pr(t, e, s, n, r) {
4326
+ function Hr(t, e, s, n, r) {
4319
4327
  const { textRuns: i } = t, { textRuns: o } = e;
4320
4328
  if (i == null || o == null)
4321
4329
  return;
@@ -4337,8 +4345,8 @@ function ls(t, e, s) {
4337
4345
  }
4338
4346
  for (; o < r && u < i; ) {
4339
4347
  const { st: f, ed: g, ts: E } = t[o], { st: m, ed: I, ts: v, sId: M } = e[u];
4340
- let j;
4341
- s === D.COVER ? j = { ...v, ...E } : j = { ...E, ...v }, g < m ? (l() || n.push(t[o]), o++) : I < f ? (l() || n.push(e[u]), u++) : (n.push({
4348
+ let K;
4349
+ s === D.COVER ? K = { ...v, ...E } : K = { ...E, ...v }, g < m ? (l() || n.push(t[o]), o++) : I < f ? (l() || n.push(e[u]), u++) : (n.push({
4342
4350
  st: Math.min(f, m),
4343
4351
  ed: Math.max(f, m),
4344
4352
  ts: f < m ? { ...E } : { ...v },
@@ -4346,7 +4354,7 @@ function ls(t, e, s) {
4346
4354
  }), n.push({
4347
4355
  st: Math.max(f, m),
4348
4356
  ed: Math.min(g, I),
4349
- ts: j,
4357
+ ts: K,
4350
4358
  sId: M
4351
4359
  }), g < I ? (o++, e[u].st = g) : (u++, t[o].st = I), a = {
4352
4360
  st: Math.min(g, I),
@@ -4359,7 +4367,7 @@ function ls(t, e, s) {
4359
4367
  const c = n[n.length - 1], h = t[r - 1], _ = e[i - 1];
4360
4368
  return c.ed !== Math.max(h.ed, _.ed) && (h.ed > _.ed ? n.push(h) : n.push(_)), ts(n);
4361
4369
  }
4362
- function Hr(t, e, s, n, r) {
4370
+ function Fr(t, e, s, n, r) {
4363
4371
  const { paragraphs: i } = t, { paragraphs: o } = e;
4364
4372
  if (i == null || o == null)
4365
4373
  return;
@@ -4409,7 +4417,7 @@ function Hr(t, e, s, n, r) {
4409
4417
  }
4410
4418
  return _e(t, e, s, n), u;
4411
4419
  }
4412
- function Fr(t, e, s, n, r) {
4420
+ function Wr(t, e, s, n, r) {
4413
4421
  const { sectionBreaks: i } = t, { sectionBreaks: o } = e;
4414
4422
  if (i == null || o == null)
4415
4423
  return;
@@ -4438,7 +4446,7 @@ function Fr(t, e, s, n, r) {
4438
4446
  }
4439
4447
  return _e(t, e, s, n), u;
4440
4448
  }
4441
- function Wr(t, e, s, n, r) {
4449
+ function $r(t, e, s, n, r) {
4442
4450
  const { customBlocks: i } = t, { customBlocks: o } = e;
4443
4451
  if (i == null || o == null)
4444
4452
  return;
@@ -4575,14 +4583,14 @@ function De(t, e, s = D.COVER) {
4575
4583
  }
4576
4584
  return c < i.length && l.push(...i.slice(c)), h < u.length && l.push(...u.slice(h)), l.length && (n.paragraphs = l), n;
4577
4585
  }
4578
- function $r(t) {
4586
+ function kr(t) {
4579
4587
  const { body: e } = t;
4580
4588
  if (e == null)
4581
4589
  return !0;
4582
4590
  const { textRuns: s = [], paragraphs: n = [] } = e;
4583
4591
  return s.length === 0 && n.length === 0;
4584
4592
  }
4585
- function kr(t = R.generateRandomId(6), e = ut.EN_US, s = "") {
4593
+ function Vr(t = R.generateRandomId(6), e = ut.EN_US, s = "") {
4586
4594
  return {
4587
4595
  id: t,
4588
4596
  locale: e,
@@ -4629,7 +4637,7 @@ const hs = {
4629
4637
  id: "default_doc",
4630
4638
  documentStyle: {}
4631
4639
  };
4632
- class Vr extends de {
4640
+ class jr extends de {
4633
4641
  constructor(s) {
4634
4642
  super();
4635
4643
  d(this, "type", O.UNIVER_DOC);
@@ -4667,9 +4675,6 @@ class Vr extends de {
4667
4675
  getContainer() {
4668
4676
  return this.snapshot.container;
4669
4677
  }
4670
- getParentRenderUnitId() {
4671
- return this.snapshot.parentRenderUnitId;
4672
- }
4673
4678
  getSnapshot() {
4674
4679
  return this.snapshot;
4675
4680
  }
@@ -4717,10 +4722,10 @@ class Vr extends de {
4717
4722
  } : this.snapshot.settings.zoomRatio = 1;
4718
4723
  }
4719
4724
  }
4720
- class ot extends Vr {
4725
+ class ot extends jr {
4721
4726
  constructor(s) {
4722
4727
  var r;
4723
- super(R.isEmptyObject(s) ? kr() : s);
4728
+ super(R.isEmptyObject(s) ? Vr() : s);
4724
4729
  d(this, "_unitId");
4725
4730
  d(this, "headerModelMap", /* @__PURE__ */ new Map());
4726
4731
  d(this, "footerModelMap", /* @__PURE__ */ new Map());
@@ -4763,7 +4768,7 @@ class ot extends Vr {
4763
4768
  return this._unitId;
4764
4769
  }
4765
4770
  apply(s) {
4766
- const n = [], r = new vr();
4771
+ const n = [], r = new Ur();
4767
4772
  return r.reset(), s.forEach((i) => {
4768
4773
  if (i = R.deepClone(i), i.t === A.RETAIN) {
4769
4774
  const { coverType: o, body: u, len: a, segmentId: l } = i;
@@ -4808,23 +4813,23 @@ class ot extends Vr {
4808
4813
  _updateApply(s, n, r, i = D.COVER, o) {
4809
4814
  if (s == null)
4810
4815
  throw new Error("updateBody is none");
4811
- const u = this.snapshot, a = Gt(u, o);
4816
+ const u = this.snapshot, a = $t(u, o);
4812
4817
  if (a == null)
4813
4818
  throw new Error("no body has changed");
4814
- return xr(a, s, n, r, i);
4819
+ return Pr(a, s, n, r, i);
4815
4820
  }
4816
4821
  _deleteApply(s, n, r) {
4817
- const i = this.snapshot, o = Gt(i, r);
4822
+ const i = this.snapshot, o = $t(i, r);
4818
4823
  if (o == null)
4819
4824
  throw new Error("no body has changed");
4820
- return s <= 0 ? { dataStream: "" } : Dr(o, s, n);
4825
+ return s <= 0 ? { dataStream: "" } : pr(o, s, n);
4821
4826
  }
4822
4827
  _insertApply(s, n, r, i) {
4823
- const o = this.snapshot, u = Gt(o, i);
4828
+ const o = this.snapshot, u = $t(o, i);
4824
4829
  if (n !== 0) {
4825
4830
  if (u == null)
4826
4831
  throw new Error("no body has changed");
4827
- pr(u, s, n, r);
4832
+ xr(u, s, n, r);
4828
4833
  }
4829
4834
  }
4830
4835
  _initializeHeaderFooterModel() {
@@ -4844,8 +4849,8 @@ class ot extends Vr {
4844
4849
  super.updateDocumentId(s), this._unitId = s;
4845
4850
  }
4846
4851
  }
4847
- const jr = G("univer.config-service");
4848
- class Kr {
4852
+ const Kr = $("univer.config-service");
4853
+ class Yr {
4849
4854
  constructor() {
4850
4855
  d(this, "_config", /* @__PURE__ */ new Map());
4851
4856
  }
@@ -4859,7 +4864,7 @@ class Kr {
4859
4864
  this._config.delete(e);
4860
4865
  }
4861
4866
  }
4862
- class Yr extends T {
4867
+ class zr extends T {
4863
4868
  constructor() {
4864
4869
  super(...arguments);
4865
4870
  d(this, "_error$", new H());
@@ -4872,8 +4877,8 @@ class Yr extends T {
4872
4877
  this._error$.next({ errorKey: s });
4873
4878
  }
4874
4879
  }
4875
- const Eu = "__default_document_sub_component_id20231101__";
4876
- class zr {
4880
+ const Ru = "__default_document_sub_component_id20231101__";
4881
+ class Xr {
4877
4882
  constructor() {
4878
4883
  d(this, "_managerInfo", /* @__PURE__ */ new Map());
4879
4884
  /**
@@ -4962,13 +4967,13 @@ class zr {
4962
4967
  return n == null ? [] : (s == null || s.delete(e.floatingObjectId), [{ ...e, floatingObject: n }]);
4963
4968
  }
4964
4969
  }
4965
- const Xr = G(
4970
+ const Jr = $(
4966
4971
  "univer.floating-object.service"
4967
4972
  );
4968
- class Jr {
4973
+ class qr {
4969
4974
  constructor(e = {}) {
4970
4975
  d(this, "_styles");
4971
- d(this, "_cacheMap", new ir(1e5));
4976
+ d(this, "_cacheMap", new or(1e5));
4972
4977
  this._styles = e, this._generateCacheMap();
4973
4978
  }
4974
4979
  each(e) {
@@ -5020,7 +5025,7 @@ class Jr {
5020
5025
  return null;
5021
5026
  }
5022
5027
  }
5023
- class qr {
5028
+ class Zr {
5024
5029
  constructor(e, s) {
5025
5030
  d(this, "_columnData", {});
5026
5031
  this._config = e, this._columnData = s;
@@ -5104,7 +5109,7 @@ class qr {
5104
5109
  * @returns
5105
5110
  */
5106
5111
  getSize() {
5107
- return J(this._columnData);
5112
+ return q(this._columnData);
5108
5113
  }
5109
5114
  /**
5110
5115
  * Get the width of column
@@ -5145,7 +5150,7 @@ class qr {
5145
5150
  return this._columnData[e] = i, i;
5146
5151
  }
5147
5152
  }
5148
- class Zr {
5153
+ class Qr {
5149
5154
  constructor(e, s, n) {
5150
5155
  d(this, "_rowData");
5151
5156
  this._config = e, this._viewModel = s, this._rowData = n;
@@ -5249,18 +5254,18 @@ class Zr {
5249
5254
  * @returns
5250
5255
  */
5251
5256
  getSize() {
5252
- return J(this._rowData);
5257
+ return q(this._rowData);
5253
5258
  }
5254
5259
  }
5255
- const Ru = "DEFAULT_WORKSHEET_ROW_COUNT", Qr = 1e3, mu = "DEFAULT_WORKSHEET_COLUMN_COUNT", yr = 20, Cu = "DEFAULT_WORKSHEET_ROW_HEIGHT", ti = 19, Ou = "DEFAULT_WORKSHEET_COLUMN_WIDTH", ei = 73, Au = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", si = 46, Iu = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", ni = 20;
5256
- function ri(t) {
5260
+ const mu = "DEFAULT_WORKSHEET_ROW_COUNT", yr = 1e3, Cu = "DEFAULT_WORKSHEET_COLUMN_COUNT", ti = 20, Ou = "DEFAULT_WORKSHEET_ROW_HEIGHT", ei = 19, Au = "DEFAULT_WORKSHEET_COLUMN_WIDTH", si = 73, Iu = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", ni = 46, Nu = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", ri = 20;
5261
+ function ii(t) {
5257
5262
  const e = {
5258
5263
  name: "Sheet1",
5259
5264
  id: "sheet-01",
5260
5265
  tabColor: "",
5261
5266
  hidden: C.FALSE,
5262
- rowCount: Qr,
5263
- columnCount: yr,
5267
+ rowCount: yr,
5268
+ columnCount: ti,
5264
5269
  zoomRatio: 1,
5265
5270
  freeze: {
5266
5271
  xSplit: 0,
@@ -5270,19 +5275,19 @@ function ri(t) {
5270
5275
  },
5271
5276
  scrollTop: 0,
5272
5277
  scrollLeft: 0,
5273
- defaultColumnWidth: ei,
5274
- defaultRowHeight: ti,
5278
+ defaultColumnWidth: si,
5279
+ defaultRowHeight: ei,
5275
5280
  mergeData: [],
5276
5281
  cellData: {},
5277
5282
  rowData: {},
5278
5283
  columnData: {},
5279
5284
  showGridlines: C.TRUE,
5280
5285
  rowHeader: {
5281
- width: si,
5286
+ width: ni,
5282
5287
  hidden: C.FALSE
5283
5288
  },
5284
5289
  columnHeader: {
5285
- height: ni,
5290
+ height: ri,
5286
5291
  hidden: C.FALSE
5287
5292
  },
5288
5293
  selections: ["A1"],
@@ -5293,7 +5298,7 @@ function ri(t) {
5293
5298
  typeof t[n] > "u" && (t[n] = e[n]);
5294
5299
  }), t;
5295
5300
  }
5296
- class ii extends T {
5301
+ class oi extends T {
5297
5302
  constructor(s) {
5298
5303
  super();
5299
5304
  d(this, "_cellContentInterceptor", null);
@@ -5330,9 +5335,9 @@ class vt {
5330
5335
  d(this, "_columnManager");
5331
5336
  d(this, "_viewModel");
5332
5337
  var u;
5333
- this.unitId = e, this._styles = n, this._snapshot = ri(s);
5338
+ this.unitId = e, this._styles = n, this._snapshot = ii(s);
5334
5339
  const { columnData: r, rowData: i, cellData: o } = this._snapshot;
5335
- this._sheetId = (u = this._snapshot.id) != null ? u : R.generateRandomId(6), this._cellData = new k(o), this._viewModel = new ii((a, l) => this.getCellRaw(a, l)), this._rowManager = new Zr(this._snapshot, this._viewModel, i), this._columnManager = new qr(this._snapshot, r);
5340
+ this._sheetId = (u = this._snapshot.id) != null ? u : R.generateRandomId(6), this._cellData = new k(o), this._viewModel = new oi((a, l) => this.getCellRaw(a, l)), this._rowManager = new Qr(this._snapshot, this._viewModel, i), this._columnManager = new Zr(this._snapshot, r);
5336
5341
  }
5337
5342
  /**
5338
5343
  * @internal
@@ -5734,7 +5739,7 @@ class vt {
5734
5739
  };
5735
5740
  }
5736
5741
  }
5737
- function Nu(t) {
5742
+ function wu(t) {
5738
5743
  var n, r;
5739
5744
  if (!t)
5740
5745
  return "";
@@ -5744,24 +5749,24 @@ function Nu(t) {
5744
5749
  const s = t.v;
5745
5750
  return typeof s == "string" ? t.t === nt.BOOLEAN ? s.toUpperCase() : s : typeof s == "number" ? t.t === nt.BOOLEAN ? s ? "TRUE" : "FALSE" : s.toString() : typeof s == "boolean" ? s ? "TRUE" : "FALSE" : "";
5746
5751
  }
5747
- const oi = "0.1.10";
5748
- function ui(t = "", e = ut.ZH_CN, s = "") {
5752
+ const ui = "0.1.12";
5753
+ function ai(t = "", e = ut.ZH_CN, s = "") {
5749
5754
  return {
5750
5755
  id: t,
5751
5756
  sheetOrder: [],
5752
5757
  name: s,
5753
- appVersion: oi,
5758
+ appVersion: ui,
5754
5759
  locale: e,
5755
5760
  styles: {},
5756
5761
  sheets: {},
5757
5762
  resources: []
5758
5763
  };
5759
5764
  }
5760
- var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, ci = (t, e, s, n) => {
5761
- for (var r = n > 1 ? void 0 : n ? li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5765
+ var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, hi = (t, e, s, n) => {
5766
+ for (var r = n > 1 ? void 0 : n ? ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
5762
5767
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
5763
- return n && r && ai(e, s, r), r;
5764
- }, hi = (t, e) => (s, n) => e(s, n, t);
5768
+ return n && r && li(e, s, r), r;
5769
+ }, di = (t, e) => (s, n) => e(s, n, t);
5765
5770
  function Su(t, e) {
5766
5771
  return `${t.getUnitId()}|${e.getSheetId()}`;
5767
5772
  }
@@ -5773,7 +5778,7 @@ let Ut = class extends de {
5773
5778
  d(this, "sheetCreated$", this._sheetCreated$.asObservable());
5774
5779
  d(this, "_sheetDisposed$", new H());
5775
5780
  d(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
5776
- d(this, "_activeSheet$", new q(null));
5781
+ d(this, "_activeSheet$", new j(null));
5777
5782
  d(this, "activeSheet$", this._activeSheet$.asObservable());
5778
5783
  /**
5779
5784
  * sheets list
@@ -5794,10 +5799,10 @@ let Ut = class extends de {
5794
5799
  d(this, "_unitId");
5795
5800
  d(this, "_count");
5796
5801
  this._logService = s;
5797
- const n = ui();
5802
+ const n = ai();
5798
5803
  R.isEmptyObject(e) ? this._snapshot = n : this._snapshot = R.commonExtend(n, e);
5799
5804
  const { styles: r } = this._snapshot;
5800
- (this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = R.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Jr(r), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._passWorksheetSnapshots();
5805
+ (this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = R.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new qr(r), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._passWorksheetSnapshots();
5801
5806
  }
5802
5807
  get _activeSheet() {
5803
5808
  return this._activeSheet$.getValue();
@@ -5820,6 +5825,9 @@ let Ut = class extends de {
5820
5825
  getName() {
5821
5826
  return this._snapshot.name;
5822
5827
  }
5828
+ setName(e) {
5829
+ this._snapshot.name = e;
5830
+ }
5823
5831
  getUnitId() {
5824
5832
  return this._unitId;
5825
5833
  }
@@ -5847,9 +5855,6 @@ let Ut = class extends de {
5847
5855
  const o = new vt(this._unitId, n, this._styles);
5848
5856
  return this._worksheets.set(e, o), this._sheetCreated$.next(o), !0;
5849
5857
  }
5850
- getParentRenderUnitId() {
5851
- return this._snapshot.parentRenderUnitId;
5852
- }
5853
5858
  getSheetOrders() {
5854
5859
  return this._snapshot.sheetOrder;
5855
5860
  }
@@ -6080,8 +6085,8 @@ let Ut = class extends de {
6080
6085
  }
6081
6086
  }
6082
6087
  };
6083
- Ut = ci([
6084
- hi(1, et)
6088
+ Ut = hi([
6089
+ di(1, et)
6085
6090
  ], Ut);
6086
6091
  class ds extends de {
6087
6092
  constructor(s) {
@@ -6090,14 +6095,11 @@ class ds extends de {
6090
6095
  d(this, "type", O.UNIVER_SLIDE);
6091
6096
  d(this, "_snapshot");
6092
6097
  d(this, "_unitId");
6093
- this._snapshot = { ...hr, ...s }, this._unitId = (n = this._snapshot.id) != null ? n : R.generateRandomId(6);
6098
+ this._snapshot = { ...dr, ...s }, this._unitId = (n = this._snapshot.id) != null ? n : R.generateRandomId(6);
6094
6099
  }
6095
6100
  getContainer() {
6096
6101
  return this._snapshot.container;
6097
6102
  }
6098
- getParentRenderUnitId() {
6099
- return this._snapshot.parentRenderUnitId;
6100
- }
6101
6103
  getSnapshot() {
6102
6104
  return this._snapshot;
6103
6105
  }
@@ -6141,26 +6143,26 @@ class ds extends de {
6141
6143
  };
6142
6144
  }
6143
6145
  }
6144
- const Ot = "FOCUSING_SHEET", Vt = "FOCUSING_DOC", jt = "FOCUSING_SLIDE", wu = "FOCUSING_EDITOR_BUT_HIDDEN", di = "EDITOR_ACTIVATED", Lu = "FOCUSING_EDITOR_INPUT_FORMULA", _i = "FOCUSING_FORMULA_EDITOR", bu = "FOCUSING_UNIVER_EDITOR", vu = "FOCUSING_EDITOR_INPUT_FORMULA", Uu = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE";
6145
- var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, Ei = (t, e, s, n) => {
6146
- for (var r = n > 1 ? void 0 : n ? gi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6146
+ const Ot = "FOCUSING_SHEET", Vt = "FOCUSING_DOC", jt = "FOCUSING_SLIDE", Lu = "FOCUSING_EDITOR_BUT_HIDDEN", _i = "EDITOR_ACTIVATED", bu = "FOCUSING_EDITOR_INPUT_FORMULA", fi = "FOCUSING_FORMULA_EDITOR", vu = "FOCUSING_UNIVER_EDITOR", Uu = "FOCUSING_EDITOR_INPUT_FORMULA", Tu = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE";
6147
+ var gi = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, Ri = (t, e, s, n) => {
6148
+ for (var r = n > 1 ? void 0 : n ? Ei(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6147
6149
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6148
- return n && r && fi(e, s, r), r;
6150
+ return n && r && gi(e, s, r), r;
6149
6151
  }, pe = (t, e) => (s, n) => e(s, n, t);
6150
- const Q = G("univer.current");
6152
+ const Q = $("univer.current");
6151
6153
  let ee = class extends T {
6152
6154
  constructor(e, s) {
6153
6155
  super();
6154
6156
  d(this, "_unitsByType", /* @__PURE__ */ new Map());
6155
6157
  d(this, "_createHandler");
6156
6158
  d(this, "_ctorByType", /* @__PURE__ */ new Map());
6157
- d(this, "_currentUnits$", new q({}));
6159
+ d(this, "_currentUnits$", new j({}));
6158
6160
  d(this, "currentUnits$", this._currentUnits$.asObservable());
6159
6161
  d(this, "_unitAdded$", new H());
6160
6162
  d(this, "unitAdded$", this._unitAdded$.asObservable());
6161
6163
  d(this, "_unitDisposed$", new H());
6162
6164
  d(this, "unitDisposed$", this._unitDisposed$.asObservable());
6163
- d(this, "_focused$", new q(null));
6165
+ d(this, "_focused$", new j(null));
6164
6166
  d(this, "focused$", this._focused$.asObservable());
6165
6167
  this._injector = e, this._contextService = s;
6166
6168
  }
@@ -6200,7 +6202,7 @@ let ee = class extends T {
6200
6202
  }
6201
6203
  __addUnit(e) {
6202
6204
  const s = e.type;
6203
- this._unitsByType.has(s) || this._unitsByType.set(s, []), this._unitsByType.get(s).push(e), this._unitAdded$.next(e), this._currentUnits$.next({ ...this._currentUnits$.getValue(), [s]: e });
6205
+ this._unitsByType.has(s) || this._unitsByType.set(s, []), this._unitsByType.get(s).push(e), this._currentUnits$.next({ ...this._currentUnits$.getValue(), [s]: e }), this._unitAdded$.next(e);
6204
6206
  }
6205
6207
  getTypeOfUnitDisposed$(e) {
6206
6208
  return this.unitDisposed$.pipe(Xt((s) => s.type === e));
@@ -6263,12 +6265,12 @@ let ee = class extends T {
6263
6265
  }
6264
6266
  }
6265
6267
  };
6266
- ee = Ei([
6268
+ ee = Ri([
6267
6269
  pe(0, P(tt)),
6268
6270
  pe(1, pt)
6269
6271
  ], ee);
6270
- var w = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(w || {});
6271
- const Ri = {
6272
+ var S = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(S || {});
6273
+ const mi = {
6272
6274
  0: "Starting",
6273
6275
  1: "Ready",
6274
6276
  2: "Rendered",
@@ -6282,18 +6284,18 @@ function _s(t, e) {
6282
6284
  function fs(t, e) {
6283
6285
  At.has(t) || At.set(t, []), At.get(t).push(e);
6284
6286
  }
6285
- var mi = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, gs = (t, e, s, n) => {
6286
- for (var r = n > 1 ? void 0 : n ? Ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6287
+ var Ci = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, gs = (t, e, s, n) => {
6288
+ for (var r = n > 1 ? void 0 : n ? Oi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6287
6289
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6288
- return n && r && mi(e, s, r), r;
6290
+ return n && r && Ci(e, s, r), r;
6289
6291
  }, se = (t, e) => (s, n) => e(s, n, t);
6290
6292
  let y = class extends T {
6291
6293
  constructor(e) {
6292
6294
  super();
6293
- d(this, "_lifecycle$", new q(w.Starting));
6295
+ d(this, "_lifecycle$", new j(S.Starting));
6294
6296
  d(this, "lifecycle$", this._lifecycle$.asObservable());
6295
6297
  d(this, "_lock", !1);
6296
- this._logService = e, this._reportProgress(w.Starting);
6298
+ this._logService = e, this._reportProgress(S.Starting);
6297
6299
  }
6298
6300
  get stage() {
6299
6301
  return this._lifecycle$.getValue();
@@ -6316,10 +6318,14 @@ let y = class extends T {
6316
6318
  * @returns
6317
6319
  */
6318
6320
  subscribeWithPrevious() {
6319
- return new ie((e) => (this.stage === w.Starting || (this.stage === w.Ready ? e.next(w.Starting) : this.stage === w.Rendered ? (e.next(w.Starting), e.next(w.Ready)) : (e.next(w.Starting), e.next(w.Ready), e.next(w.Rendered))), this._lifecycle$.subscribe(e)));
6321
+ return new ie((e) => {
6322
+ this.stage === S.Starting || (this.stage === S.Ready ? e.next(S.Starting) : this.stage === S.Rendered ? (e.next(S.Starting), e.next(S.Ready)) : (e.next(S.Starting), e.next(S.Ready), e.next(S.Rendered))), this._lifecycle$.subscribe((s) => {
6323
+ e.next(s), s === S.Steady && e.complete();
6324
+ });
6325
+ });
6320
6326
  }
6321
6327
  _reportProgress(e) {
6322
- this._logService.debug("[LifecycleService]", `lifecycle progressed to "${Ri[e]}".`);
6328
+ this._logService.debug("[LifecycleService]", `lifecycle progressed to "${mi[e]}".`);
6323
6329
  }
6324
6330
  };
6325
6331
  y = gs([
@@ -6345,7 +6351,8 @@ Tt = gs([
6345
6351
  class It extends T {
6346
6352
  constructor() {
6347
6353
  super();
6348
- d(this, "_currentLocale", ut.ZH_CN);
6354
+ d(this, "_currentLocale$", new j(ut.ZH_CN));
6355
+ d(this, "currentLocale$", this._currentLocale$.asObservable());
6349
6356
  d(this, "_locales", null);
6350
6357
  d(this, "localeChanged$", new H());
6351
6358
  /**
@@ -6387,6 +6394,9 @@ class It extends T {
6387
6394
  });
6388
6395
  this.disposeWithMe(b(() => this.localeChanged$.complete()));
6389
6396
  }
6397
+ get _currentLocale() {
6398
+ return this._currentLocale$.value;
6399
+ }
6390
6400
  /**
6391
6401
  * Load more locales after init.
6392
6402
  *
@@ -6397,7 +6407,7 @@ class It extends T {
6397
6407
  this._locales = R.deepMerge((n = this._locales) != null ? n : {}, s);
6398
6408
  }
6399
6409
  setLocale(s) {
6400
- this._currentLocale = s, this.localeChanged$.next();
6410
+ this._currentLocale$.next(s), this.localeChanged$.next();
6401
6411
  }
6402
6412
  getLocales() {
6403
6413
  var s;
@@ -6415,13 +6425,13 @@ class It extends T {
6415
6425
  return null;
6416
6426
  }
6417
6427
  }
6418
- const ge = G("resource-manager-service");
6419
- var Oi = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, Ii = (t, e, s, n) => {
6420
- for (var r = n > 1 ? void 0 : n ? Ai(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6428
+ const ge = $("resource-manager-service");
6429
+ var Ai = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ni = (t, e, s, n) => {
6430
+ for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6421
6431
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6422
- return n && r && Oi(e, s, r), r;
6432
+ return n && r && Ai(e, s, r), r;
6423
6433
  }, xe = (t, e) => (s, n) => e(s, n, t);
6424
- const Es = G("univer.permission-service");
6434
+ const Es = $("univer.permission-service");
6425
6435
  let Nt = class extends T {
6426
6436
  constructor(e, s) {
6427
6437
  super();
@@ -6435,7 +6445,7 @@ let Nt = class extends T {
6435
6445
  });
6436
6446
  d(this, "addPermissionPoint", (e, s) => {
6437
6447
  const n = this._permissionPointMap.get(e) || /* @__PURE__ */ new Map();
6438
- return n.has(s.id) ? !1 : (n.set(s.id, new q(s)), this._permissionPointMap.set(e, n), !0);
6448
+ return n.has(s.id) ? !1 : (n.set(s.id, new j(s)), this._permissionPointMap.set(e, n), !0);
6439
6449
  });
6440
6450
  d(this, "updatePermissionPoint", (e, s, n) => {
6441
6451
  const r = this._permissionPointMap.get(e);
@@ -6505,7 +6515,7 @@ let Nt = class extends T {
6505
6515
  });
6506
6516
  return Ms(r).pipe(
6507
6517
  // Check that all permissions exist
6508
- Ps((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
6518
+ Hs((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
6509
6519
  );
6510
6520
  }
6511
6521
  composePermission(e, s) {
@@ -6518,27 +6528,27 @@ let Nt = class extends T {
6518
6528
  });
6519
6529
  }
6520
6530
  };
6521
- Nt = Ii([
6522
- _s(w.Starting, Nt),
6531
+ Nt = Ni([
6532
+ _s(S.Starting, Nt),
6523
6533
  xe(0, P(ge)),
6524
6534
  xe(1, P(Q))
6525
6535
  ], Nt);
6526
- const Ni = "univer.editable";
6527
- class Kt extends ar {
6536
+ const wi = "univer.editable";
6537
+ class Kt extends lr {
6528
6538
  constructor(s) {
6529
6539
  super();
6530
- d(this, "id", Ni);
6540
+ d(this, "id", wi);
6531
6541
  d(this, "value", !0);
6532
6542
  d(this, "unitID");
6533
6543
  this.unitID = s;
6534
6544
  }
6535
6545
  }
6536
- var Si = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, Li = (t, e, s, n) => {
6537
- for (var r = n > 1 ? void 0 : n ? wi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6546
+ var Si = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, bi = (t, e, s, n) => {
6547
+ for (var r = n > 1 ? void 0 : n ? Li(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6538
6548
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6539
6549
  return n && r && Si(e, s, r), r;
6540
6550
  }, Pe = (t, e) => (s, n) => e(s, n, t);
6541
- let St = class extends T {
6551
+ let wt = class extends T {
6542
6552
  constructor(t, e) {
6543
6553
  super(), this._permissionService = t, this._univerInstanceService = e, this._init();
6544
6554
  }
@@ -6559,12 +6569,12 @@ let St = class extends T {
6559
6569
  this._permissionService.updatePermissionPoint(t, s.id, e);
6560
6570
  }
6561
6571
  };
6562
- St = Li([
6563
- _s(w.Starting, St),
6572
+ wt = bi([
6573
+ _s(S.Starting, wt),
6564
6574
  Pe(0, P(Es)),
6565
6575
  Pe(1, P(Q))
6566
- ], St);
6567
- class bi extends T {
6576
+ ], wt);
6577
+ class vi extends T {
6568
6578
  constructor() {
6569
6579
  super(...arguments);
6570
6580
  d(this, "_resourceMap", /* @__PURE__ */ new Map());
@@ -6614,10 +6624,10 @@ class bi extends T {
6614
6624
  this._register$.complete(), this._resourceMap.clear();
6615
6625
  }
6616
6626
  }
6617
- var vi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Ti = (t, e, s, n) => {
6618
- for (var r = n > 1 ? void 0 : n ? Ui(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6627
+ var Ui = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, Mi = (t, e, s, n) => {
6628
+ for (var r = n > 1 ? void 0 : n ? Ti(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6619
6629
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6620
- return n && r && vi(e, s, r), r;
6630
+ return n && r && Ui(e, s, r), r;
6621
6631
  }, He = (t, e) => (s, n) => e(s, n, t);
6622
6632
  let ne = class extends T {
6623
6633
  constructor(e, s) {
@@ -6670,17 +6680,17 @@ let ne = class extends T {
6670
6680
  );
6671
6681
  }
6672
6682
  };
6673
- ne = Ti([
6683
+ ne = Mi([
6674
6684
  He(0, P(ge)),
6675
6685
  He(1, P(Q))
6676
6686
  ], ne);
6677
- const Rs = G("resource-loader-service");
6678
- fs(w.Ready, Rs);
6687
+ const Rs = $("resource-loader-service");
6688
+ fs(S.Ready, Rs);
6679
6689
  class ms extends T {
6680
6690
  constructor() {
6681
6691
  super();
6682
6692
  d(this, "_currentTheme");
6683
- d(this, "_currentTheme$", new q({}));
6693
+ d(this, "_currentTheme$", new j({}));
6684
6694
  d(this, "currentTheme$", this._currentTheme$.asObservable());
6685
6695
  this.disposeWithMe(b(() => this._currentTheme$.complete()));
6686
6696
  }
@@ -6693,20 +6703,20 @@ class ms extends T {
6693
6703
  this._currentTheme = s, this._currentTheme$.next(s);
6694
6704
  }
6695
6705
  }
6696
- const Mi = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", Di = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Tu = `\r
6706
+ const Di = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", pi = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", Mu = `\r
6697
6707
  `;
6698
- function Mu(t) {
6708
+ function Du(t) {
6699
6709
  return `__internalEditorId__${t}`;
6700
6710
  }
6701
- function Du(t) {
6711
+ function pu(t) {
6702
6712
  return t.startsWith("__");
6703
6713
  }
6704
- var pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Pi = (t, e, s, n) => {
6705
- for (var r = n > 1 ? void 0 : n ? xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6714
+ var xi = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, Hi = (t, e, s, n) => {
6715
+ for (var r = n > 1 ? void 0 : n ? Pi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6706
6716
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6707
- return n && r && pi(e, s, r), r;
6717
+ return n && r && xi(e, s, r), r;
6708
6718
  }, Yt = (t, e) => (s, n) => e(s, n, t);
6709
- const Ee = G("univer.undo-redo.service"), Hi = 20;
6719
+ const Ee = $("univer.undo-redo.service"), Fi = 20;
6710
6720
  class Cs {
6711
6721
  dispose() {
6712
6722
  }
@@ -6714,11 +6724,11 @@ class Cs {
6714
6724
  return !1;
6715
6725
  }
6716
6726
  }
6717
- const Fi = "univer.command.redo", Wi = "univer.command.undo", Gi = new class extends Cs {
6727
+ const Wi = "univer.command.redo", $i = "univer.command.undo", Gi = new class extends Cs {
6718
6728
  constructor() {
6719
6729
  super(...arguments);
6720
6730
  d(this, "type", xt.COMMAND);
6721
- d(this, "id", Wi);
6731
+ d(this, "id", $i);
6722
6732
  }
6723
6733
  async handler(e) {
6724
6734
  const s = e.get(Ee), n = s.pitchTopUndoElement();
@@ -6731,7 +6741,7 @@ const Fi = "univer.command.redo", Wi = "univer.command.undo", Gi = new class ext
6731
6741
  constructor() {
6732
6742
  super(...arguments);
6733
6743
  d(this, "type", xt.COMMAND);
6734
- d(this, "id", Fi);
6744
+ d(this, "id", Wi);
6735
6745
  }
6736
6746
  async handler(e) {
6737
6747
  const s = e.get(Ee), n = s.pitchTopRedoElement();
@@ -6745,7 +6755,7 @@ let re = class extends T {
6745
6755
  constructor(e, s, n) {
6746
6756
  super();
6747
6757
  d(this, "undoRedoStatus$");
6748
- d(this, "_undoRedoStatus$", new q({ undos: 0, redos: 0 }));
6758
+ d(this, "_undoRedoStatus$", new j({ undos: 0, redos: 0 }));
6749
6759
  // Undo and redo stacks are per unit.
6750
6760
  d(this, "_undoStacks", /* @__PURE__ */ new Map());
6751
6761
  d(this, "_redoStacks", /* @__PURE__ */ new Map());
@@ -6764,7 +6774,7 @@ let re = class extends T {
6764
6774
  } else
6765
6775
  i(e);
6766
6776
  function i(o) {
6767
- r.push(o), r.length > Hi && r.splice(0, 1);
6777
+ r.push(o), r.length > Fi && r.splice(0, 1);
6768
6778
  }
6769
6779
  this._updateStatus();
6770
6780
  }
@@ -6841,17 +6851,16 @@ let re = class extends T {
6841
6851
  _getFocusedUnitId() {
6842
6852
  var i, o, u, a;
6843
6853
  let e = "";
6844
- const s = this._contextService.getContextValue(Ot), n = this._contextService.getContextValue(_i), r = this._contextService.getContextValue(di);
6845
- return s ? n ? e = Di : r ? e = Mi : e = (o = (i = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : i.getUnitId()) != null ? o : "" : e = (a = (u = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : u.getUnitId()) != null ? a : "", e;
6854
+ const s = this._contextService.getContextValue(Ot), n = this._contextService.getContextValue(fi), r = this._contextService.getContextValue(_i);
6855
+ return s ? n ? e = pi : r ? e = Di : e = (o = (i = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : i.getUnitId()) != null ? o : "" : e = (a = (u = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : u.getUnitId()) != null ? a : "", e;
6846
6856
  }
6847
6857
  };
6848
- re = Pi([
6858
+ re = Hi([
6849
6859
  Yt(0, Q),
6850
6860
  Yt(1, Pt),
6851
6861
  Yt(2, pt)
6852
6862
  ], re);
6853
6863
  class Fe extends T {
6854
- // eslint-disable-next-line unused-imports/no-unused-vars
6855
6864
  onStarting(e) {
6856
6865
  }
6857
6866
  onReady() {
@@ -6868,7 +6877,7 @@ class Fe extends T {
6868
6877
  }
6869
6878
  }
6870
6879
  d(Fe, "pluginName"), d(Fe, "type", O.UNIVER_UNKNOWN);
6871
- class $i {
6880
+ class ki {
6872
6881
  constructor() {
6873
6882
  d(this, "_plugins", []);
6874
6883
  }
@@ -6883,7 +6892,7 @@ class $i {
6883
6892
  this._plugins.forEach(e);
6884
6893
  }
6885
6894
  }
6886
- class ki {
6895
+ class Vi {
6887
6896
  constructor() {
6888
6897
  d(this, "_pluginsRegistered", []);
6889
6898
  }
@@ -6898,18 +6907,18 @@ class ki {
6898
6907
  this._pluginsRegistered = [];
6899
6908
  }
6900
6909
  }
6901
- var Vi = Object.defineProperty, ji = Object.getOwnPropertyDescriptor, Ki = (t, e, s, n) => {
6902
- for (var r = n > 1 ? void 0 : n ? ji(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6910
+ var ji = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, Yi = (t, e, s, n) => {
6911
+ for (var r = n > 1 ? void 0 : n ? Ki(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6903
6912
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6904
- return n && r && Vi(e, s, r), r;
6913
+ return n && r && ji(e, s, r), r;
6905
6914
  }, mt = (t, e) => (s, n) => e(s, n, t);
6906
6915
  let Mt = class extends T {
6907
6916
  constructor(e, s, n, r) {
6908
6917
  super();
6909
6918
  d(this, "_started", !1);
6910
6919
  d(this, "_pluginRegistered", /* @__PURE__ */ new Set());
6911
- d(this, "_pluginStore", new $i());
6912
- d(this, "_pluginRegistry", new ki());
6920
+ d(this, "_pluginStore", new ki());
6921
+ d(this, "_pluginRegistry", new Vi());
6913
6922
  this._logService = e, this._injector = s, this._lifecycleService = n, this._lifecycleInitializerService = r;
6914
6923
  }
6915
6924
  get started() {
@@ -6934,23 +6943,25 @@ let Mt = class extends T {
6934
6943
  return;
6935
6944
  const e = this._pluginRegistry.getRegisterPlugins().map(({ plugin: n, options: r }) => this._initPlugin(n, r));
6936
6945
  this._pluginRegistry.removePlugins();
6937
- const s = this.disposeWithMe(this._lifecycleService.subscribeWithPrevious().subscribe((n) => {
6938
- this._pluginsRunLifecycle(e, n), n === w.Steady && s.dispose();
6946
+ const s = this.disposeWithMe(this._lifecycleService.subscribeWithPrevious().pipe(Ds(() => {
6947
+ Promise.resolve().then(() => s.dispose());
6948
+ })).subscribe((n) => {
6949
+ this._pluginsRunLifecycle(e, n);
6939
6950
  }));
6940
6951
  }
6941
6952
  _pluginsRunLifecycle(e, s) {
6942
6953
  e.forEach((n) => {
6943
6954
  switch (s) {
6944
- case w.Starting:
6955
+ case S.Starting:
6945
6956
  n.onStarting(this._injector);
6946
6957
  break;
6947
- case w.Ready:
6958
+ case S.Ready:
6948
6959
  n.onReady();
6949
6960
  break;
6950
- case w.Rendered:
6961
+ case S.Rendered:
6951
6962
  n.onRendered();
6952
6963
  break;
6953
- case w.Steady:
6964
+ case S.Steady:
6954
6965
  n.onSteady();
6955
6966
  break;
6956
6967
  }
@@ -6960,18 +6971,18 @@ let Mt = class extends T {
6960
6971
  return this._injector.createInstance(e, s);
6961
6972
  }
6962
6973
  };
6963
- Mt = Ki([
6974
+ Mt = Yi([
6964
6975
  mt(0, et),
6965
6976
  mt(1, P(tt)),
6966
6977
  mt(2, P(y)),
6967
6978
  mt(3, P(Tt))
6968
6979
  ], Mt);
6969
- var Yi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, Xi = (t, e, s, n) => {
6970
- for (var r = n > 1 ? void 0 : n ? zi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6980
+ var zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, Ji = (t, e, s, n) => {
6981
+ for (var r = n > 1 ? void 0 : n ? Xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
6971
6982
  (o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
6972
- return n && r && Yi(e, s, r), r;
6973
- }, Ji = (t, e) => (s, n) => e(s, n, t);
6974
- const qi = 4;
6983
+ return n && r && zi(e, s, r), r;
6984
+ }, qi = (t, e) => (s, n) => e(s, n, t);
6985
+ const Zi = 4;
6975
6986
  let Dt = class {
6976
6987
  constructor(t) {
6977
6988
  d(this, "_pluginHolderForUniver");
@@ -7013,7 +7024,7 @@ let Dt = class {
7013
7024
  () => {
7014
7025
  this._pluginHolderForUniver.started || this._pluginHolderForUniver.start(), this._flushPlugins(), this._clearFlushTimer();
7015
7026
  },
7016
- qi
7027
+ Zi
7017
7028
  ));
7018
7029
  }
7019
7030
  _clearFlushTimer() {
@@ -7025,10 +7036,10 @@ let Dt = class {
7025
7036
  e.started && e.flush();
7026
7037
  }
7027
7038
  };
7028
- Dt = Xi([
7029
- Ji(0, P(tt))
7039
+ Dt = Ji([
7040
+ qi(0, P(tt))
7030
7041
  ], Dt);
7031
- function Zi(t, e) {
7042
+ function Qi(t, e) {
7032
7043
  if (!e)
7033
7044
  return t;
7034
7045
  const s = [];
@@ -7043,11 +7054,20 @@ function Zi(t, e) {
7043
7054
  }
7044
7055
  return s;
7045
7056
  }
7046
- class Qi {
7057
+ class yi {
7047
7058
  constructor() {
7048
7059
  d(this, "_model", /* @__PURE__ */ new Map());
7049
7060
  d(this, "_userChange$", new H());
7050
7061
  d(this, "userChange$", this._userChange$.asObservable());
7062
+ d(this, "_currentUser");
7063
+ d(this, "_currentUser$", new j(null));
7064
+ d(this, "currentUser$", this._currentUser$.asObservable());
7065
+ }
7066
+ getCurrentUser() {
7067
+ return this._currentUser;
7068
+ }
7069
+ setCurrentUser(e) {
7070
+ this._currentUser = e, this.addUser(e), this._currentUser$.next(e);
7051
7071
  }
7052
7072
  addUser(e) {
7053
7073
  this._model.set(e.userID, e), this._userChange$.next({ type: "add", user: e });
@@ -7066,7 +7086,7 @@ class Qi {
7066
7086
  this._model.clear(), this._userChange$.next({ type: "clear" });
7067
7087
  }
7068
7088
  }
7069
- class pu {
7089
+ class xu {
7070
7090
  /**
7071
7091
  * Create a Univer instance.
7072
7092
  * @param config Configuration data for Univer
@@ -7075,7 +7095,7 @@ class pu {
7075
7095
  constructor(e = {}, s) {
7076
7096
  d(this, "_startedTypes", /* @__PURE__ */ new Set());
7077
7097
  d(this, "_injector");
7078
- const n = this._injector = yi(s, e == null ? void 0 : e.override), { theme: r, locale: i, locales: o, logLevel: u } = e;
7098
+ const n = this._injector = to(s, e == null ? void 0 : e.override), { theme: r, locale: i, locales: o, logLevel: u } = e;
7079
7099
  r && this._injector.get(ms).setTheme(r), o && this._injector.get(It).load(o), i && this._injector.get(It).setLocale(i), u && this._injector.get(et).setLogLevel(u), this._init(n), this._pluginService;
7080
7100
  }
7081
7101
  get _univerInstanceService() {
@@ -7132,42 +7152,42 @@ class pu {
7132
7152
  );
7133
7153
  }
7134
7154
  _tryProgressToReady() {
7135
- this._injector.get(y).stage < w.Ready && (this._injector.get(y).stage = w.Ready);
7155
+ this._injector.get(y).stage < S.Ready && (this._injector.get(y).stage = S.Ready);
7136
7156
  }
7137
7157
  /** Register a plugin into univer. */
7138
7158
  registerPlugin(e, s) {
7139
7159
  this._pluginService.registerPlugin(e, s);
7140
7160
  }
7141
7161
  }
7142
- function yi(t, e) {
7143
- const s = Zi([
7144
- [Yr],
7162
+ function to(t, e) {
7163
+ const s = Qi([
7164
+ [zr],
7145
7165
  [It],
7146
7166
  [ms],
7147
7167
  [y],
7148
7168
  [Tt],
7149
- [St],
7169
+ [wt],
7150
7170
  [Dt],
7151
- [Qi],
7171
+ [yi],
7152
7172
  // abstract services
7153
7173
  [Q, { useClass: ee }],
7154
7174
  [Es, { useClass: Nt }],
7155
- [et, { useClass: Or, lazy: !0 }],
7175
+ [et, { useClass: Ar, lazy: !0 }],
7156
7176
  [Pt, { useClass: yt, lazy: !0 }],
7157
7177
  [Ee, { useClass: re, lazy: !0 }],
7158
- [jr, { useClass: Kr }],
7159
- [pt, { useClass: mr }],
7160
- [Xr, { useClass: zr, lazy: !0 }],
7161
- [ge, { useClass: bi, lazy: !0 }],
7178
+ [Kr, { useClass: Yr }],
7179
+ [pt, { useClass: Cr }],
7180
+ [Jr, { useClass: Xr, lazy: !0 }],
7181
+ [ge, { useClass: vi, lazy: !0 }],
7162
7182
  [Rs, { useClass: ne, lazy: !0 }]
7163
7183
  ], e);
7164
7184
  return t ? t.createChild(s) : new tt(s);
7165
7185
  }
7166
- const xu = (t, e) => e.length === t.length && !t.some((s) => e.some((n) => !Z.equals(n, s))), Pu = (t, e) => e.length === t.length && t.every((s, n) => {
7186
+ const Pu = (t, e) => e.length === t.length && !t.some((s) => e.some((n) => !Z.equals(n, s))), Hu = (t, e) => e.length === t.length && t.every((s, n) => {
7167
7187
  const r = e[n];
7168
7188
  return r.unitId === s.unitId && r.sheetId === s.sheetId && Z.equals(s.range, r.range);
7169
7189
  });
7170
- function Hu(t, e) {
7190
+ function Fu(t, e) {
7171
7191
  if (Object.is(t, e))
7172
7192
  return !0;
7173
7193
  if (typeof t != "object" || !t || typeof e != "object" || !e)
@@ -7186,13 +7206,13 @@ function Hu(t, e) {
7186
7206
  }
7187
7207
  return !0;
7188
7208
  }
7189
- function to(t) {
7209
+ function eo(t) {
7190
7210
  return /^-?\d+(\.\d+)?$/.test(t);
7191
7211
  }
7192
- function Fu(t) {
7193
- return to(t) ? Number(t) <= Number.MAX_SAFE_INTEGER : !1;
7194
- }
7195
7212
  function Wu(t) {
7213
+ return eo(t) ? Number(t) <= Number.MAX_SAFE_INTEGER : !1;
7214
+ }
7215
+ function $u(t) {
7196
7216
  return ["true", "false"].includes(t.toLowerCase());
7197
7217
  }
7198
7218
  function Gu(t, e) {
@@ -7207,7 +7227,7 @@ function Bu(t, e = 16) {
7207
7227
  }, e)) : (s = o, t.apply(this, i));
7208
7228
  };
7209
7229
  }
7210
- function $u(t) {
7230
+ function ku(t) {
7211
7231
  const e = new MessageChannel();
7212
7232
  let s = !1;
7213
7233
  return e.port1.onmessage = () => {
@@ -7216,7 +7236,7 @@ function $u(t) {
7216
7236
  s = !0;
7217
7237
  };
7218
7238
  }
7219
- var eo = /* @__PURE__ */ ((t) => (t[t.TEXT = 0] = "TEXT", t[t.ARROW = 1] = "ARROW", t[t.CUSTOM = 2] = "CUSTOM", t))(eo || {});
7239
+ var so = /* @__PURE__ */ ((t) => (t[t.TEXT = 0] = "TEXT", t[t.ARROW = 1] = "ARROW", t[t.CUSTOM = 2] = "CUSTOM", t))(so || {});
7220
7240
  class We {
7221
7241
  constructor(e) {
7222
7242
  d(this, "_index", 0);
@@ -7267,7 +7287,7 @@ class We {
7267
7287
  return [];
7268
7288
  }
7269
7289
  }
7270
- function Ge(t) {
7290
+ function $e(t) {
7271
7291
  return Object.keys(t).length === 1;
7272
7292
  }
7273
7293
  class Re {
@@ -7342,19 +7362,19 @@ class Re {
7342
7362
  return this._actions.unshift(r), this;
7343
7363
  if (n.t === A.RETAIN && r.t === A.RETAIN && n.body == null && r.body == null)
7344
7364
  return n.len += r.len, this;
7345
- if (n.t === A.INSERT && Ge(n.body) && r.t === A.INSERT && Ge(r.body))
7365
+ if (n.t === A.INSERT && $e(n.body) && r.t === A.INSERT && $e(r.body))
7346
7366
  return n.len += r.len, n.body.dataStream += r.body.dataStream, this;
7347
7367
  }
7348
7368
  return s === this._actions.length ? this._actions.push(r) : this._actions.splice(s, 0, r), this;
7349
7369
  }
7350
7370
  trimEndUselessRetainAction() {
7351
7371
  let e = this._actions[this._actions.length - 1];
7352
- for (; e && e.t === A.RETAIN && $r(e); )
7372
+ for (; e && e.t === A.RETAIN && kr(e); )
7353
7373
  this._actions.pop(), e = this._actions[this._actions.length - 1];
7354
7374
  return this;
7355
7375
  }
7356
7376
  }
7357
- function ku(t, e, s) {
7377
+ function Vu(t, e, s) {
7358
7378
  if (e === "")
7359
7379
  return t;
7360
7380
  const n = {
@@ -7382,7 +7402,7 @@ function ku(t, e, s) {
7382
7402
  const u = r.getBody();
7383
7403
  return r.dispose(), u;
7384
7404
  }
7385
- class Vu extends ce {
7405
+ class ju extends ce {
7386
7406
  /**
7387
7407
  * Create a new WorkBookObserver with the specified callback
7388
7408
  * @param callback the callback that will be executed for that WorkBookObserver
@@ -7401,11 +7421,11 @@ class Vu extends ce {
7401
7421
  makeObserverBottomPriority() {
7402
7422
  }
7403
7423
  }
7404
- const ju = G("ILocalStorageService");
7405
- function Ku(t) {
7424
+ const Ku = $("ILocalStorageService");
7425
+ function Yu(t) {
7406
7426
  return `sheet_interceptor_${t}`;
7407
7427
  }
7408
- const so = (t) => function(e, s) {
7428
+ const no = (t) => function(e, s) {
7409
7429
  let n = -1;
7410
7430
  function r(i, o) {
7411
7431
  if (i <= n)
@@ -7414,7 +7434,7 @@ const so = (t) => function(e, s) {
7414
7434
  }
7415
7435
  return r(0, e);
7416
7436
  };
7417
- class Yu {
7437
+ class zu {
7418
7438
  constructor(e) {
7419
7439
  d(this, "_interceptorsByName", /* @__PURE__ */ new Map());
7420
7440
  d(this, "_interceptorPoints");
@@ -7422,7 +7442,7 @@ class Yu {
7422
7442
  }
7423
7443
  fetchThroughInterceptors(e) {
7424
7444
  const s = e, n = this._interceptorsByName.get(s);
7425
- return so(n || []);
7445
+ return no(n || []);
7426
7446
  }
7427
7447
  intercept(e, s) {
7428
7448
  const n = e;
@@ -7441,10 +7461,10 @@ class Yu {
7441
7461
  return this._interceptorPoints;
7442
7462
  }
7443
7463
  }
7444
- const zu = G(
7464
+ const Xu = $(
7445
7465
  "univer.snapshot-server-service"
7446
7466
  );
7447
- class Xu {
7467
+ class Ju {
7448
7468
  constructor() {
7449
7469
  d(this, "_sheetBlockCache", /* @__PURE__ */ new Map());
7450
7470
  }
@@ -7532,7 +7552,7 @@ class Xu {
7532
7552
  });
7533
7553
  }
7534
7554
  }
7535
- function Ju(t) {
7555
+ function qu(t) {
7536
7556
  return btoa(
7537
7557
  encodeURIComponent(t).replace(/%([0-9A-F]{2})/g, (e, s) => String.fromCharCode(Number.parseInt(s, 16)))
7538
7558
  );
@@ -7551,17 +7571,17 @@ function Is(t) {
7551
7571
  const e = R.deepClone(t);
7552
7572
  return delete e.id, delete e.rev, delete e.name, delete e.sheetOrder, delete e.sheets, Ht.encode(JSON.stringify(e));
7553
7573
  }
7554
- function no(t) {
7574
+ function ro(t) {
7555
7575
  const e = R.deepClone(t);
7556
7576
  return delete e.id, delete e.rev, delete e.title, delete e.resources, Ht.encode(JSON.stringify(e));
7557
7577
  }
7558
- function Be(t) {
7578
+ function Ge(t) {
7559
7579
  return JSON.parse(me.decode(t));
7560
7580
  }
7561
- function ro(t) {
7581
+ function io(t) {
7562
7582
  return JSON.parse(typeof t == "string" ? Os(t) : me.decode(t));
7563
7583
  }
7564
- function io(t) {
7584
+ function oo(t) {
7565
7585
  return JSON.parse(typeof t == "string" ? Os(t) : me.decode(t));
7566
7586
  }
7567
7587
  const zt = 256;
@@ -7569,7 +7589,7 @@ function Ns(t, e) {
7569
7589
  const s = new k(t), n = s.getLength(), r = [];
7570
7590
  let i = 0;
7571
7591
  for (; i < n; ) {
7572
- const o = Math.min(i + zt, n - 1), u = s.getSlice(i, Math.min(i + zt, n - 1), 0, e), a = oo(u);
7592
+ const o = Math.min(i + zt, n - 1), u = s.getSlice(i, Math.min(i + zt, n - 1), 0, e), a = uo(u);
7573
7593
  r.push({
7574
7594
  id: R.generateRandomId(19, "0123456789"),
7575
7595
  // an random ID for client, this would be changed after the block is saved in the server
@@ -7580,11 +7600,11 @@ function Ns(t, e) {
7580
7600
  }
7581
7601
  return r;
7582
7602
  }
7583
- function oo(t) {
7603
+ function uo(t) {
7584
7604
  const e = t.getData();
7585
7605
  return Ht.encode(JSON.stringify(e));
7586
7606
  }
7587
- async function qu(t, e, s, n, r) {
7607
+ async function Zu(t, e, s, n, r) {
7588
7608
  const i = {}, o = {};
7589
7609
  if (!await Promise.all(
7590
7610
  Object.entries(e.sheets).map(async ([h, _]) => {
@@ -7642,7 +7662,7 @@ async function qu(t, e, s, n, r) {
7642
7662
  }
7643
7663
  };
7644
7664
  }
7645
- async function Zu(t, e, s, n, r) {
7665
+ async function Qu(t, e, s, n, r) {
7646
7666
  var _, f;
7647
7667
  const i = {}, o = {};
7648
7668
  if (!await Promise.all(
@@ -7666,8 +7686,8 @@ async function Zu(t, e, s, n, r) {
7666
7686
  )
7667
7687
  );
7668
7688
  if (v.some((M) => {
7669
- var j;
7670
- return ((j = M.error) == null ? void 0 : j.code) !== W.OK;
7689
+ var K;
7690
+ return ((K = M.error) == null ? void 0 : K.code) !== W.OK;
7671
7691
  }))
7672
7692
  return !1;
7673
7693
  i[g] = {
@@ -7710,13 +7730,13 @@ ErrorCode: ${(_ = h.error) == null ? void 0 : _.code}:${(f = h.error) == null ?
7710
7730
  snapshot: c
7711
7731
  };
7712
7732
  }
7713
- function Qu(t, e, s) {
7733
+ function yu(t, e, s) {
7714
7734
  const n = t.workbook;
7715
7735
  if (!n)
7716
7736
  throw new Error("");
7717
7737
  const r = {};
7718
7738
  Object.entries(n.sheets).forEach(([a, l]) => {
7719
- const c = Be(l.originalMeta);
7739
+ const c = Ge(l.originalMeta);
7720
7740
  r[a] = {
7721
7741
  id: l.id,
7722
7742
  name: l.name,
@@ -7740,7 +7760,7 @@ function Qu(t, e, s) {
7740
7760
  else
7741
7761
  throw new Error("");
7742
7762
  }), h.forEach((f) => {
7743
- const g = ro(f.data);
7763
+ const g = io(f.data);
7744
7764
  Object.entries(g).forEach(([E, m]) => {
7745
7765
  const I = c.cellData[+E] = {};
7746
7766
  Object.entries(m).forEach(([v, M]) => {
@@ -7749,7 +7769,7 @@ function Qu(t, e, s) {
7749
7769
  });
7750
7770
  });
7751
7771
  });
7752
- const o = Be(n.originalMeta);
7772
+ const o = Ge(n.originalMeta);
7753
7773
  return {
7754
7774
  id: t.unitID,
7755
7775
  rev: n.rev,
@@ -7763,11 +7783,11 @@ function Qu(t, e, s) {
7763
7783
  ...o
7764
7784
  };
7765
7785
  }
7766
- function yu(t) {
7786
+ function ta(t) {
7767
7787
  const e = t.doc;
7768
7788
  if (e == null)
7769
7789
  throw new Error("transformSnapshotToDocumentData(): snapshot.doc is undefined.");
7770
- const { unitID: s, rev: n, name: r, originalMeta: i } = e, { body: o, documentStyle: u = {}, settings: a = {} } = io(i);
7790
+ const { unitID: s, rev: n, name: r, originalMeta: i } = e, { body: o, documentStyle: u = {}, settings: a = {} } = oo(i);
7771
7791
  return {
7772
7792
  id: s,
7773
7793
  rev: n,
@@ -7778,7 +7798,7 @@ function yu(t) {
7778
7798
  settings: a
7779
7799
  };
7780
7800
  }
7781
- async function ta(t, e, s, n, r) {
7801
+ async function ea(t, e, s, n, r) {
7782
7802
  var a, l, c;
7783
7803
  const i = {
7784
7804
  unitID: e.id,
@@ -7786,7 +7806,7 @@ async function ta(t, e, s, n, r) {
7786
7806
  creator: "",
7787
7807
  name: (a = e.title) != null ? a : "",
7788
7808
  resources: e.resources || [],
7789
- originalMeta: no(e)
7809
+ originalMeta: ro(e)
7790
7810
  }, o = {
7791
7811
  unitID: s,
7792
7812
  rev: i.rev,
@@ -7807,7 +7827,7 @@ ErrorCode: ${(l = u.error) == null ? void 0 : l.code}:${(c = u.error) == null ?
7807
7827
  snapshot: o
7808
7828
  };
7809
7829
  }
7810
- async function ea(t, e) {
7830
+ async function sa(t, e) {
7811
7831
  const s = t.workbook;
7812
7832
  if (!s)
7813
7833
  throw new Error("Workbook metadata is not available");
@@ -7827,178 +7847,178 @@ async function ea(t, e) {
7827
7847
  r.push(...u);
7828
7848
  }), await Promise.all(r), n;
7829
7849
  }
7830
- var uo = /* @__PURE__ */ ((t) => (t[t.INFO = 0] = "INFO", t[t.STOP = 1] = "STOP", t[t.WARNING = 2] = "WARNING", t))(uo || {}), ao = /* @__PURE__ */ ((t) => (t[t.DISABLED = 0] = "DISABLED", t[t.FULL_ALPHA = 1] = "FULL_ALPHA", t[t.FULL_HANGUL = 2] = "FULL_HANGUL", t[t.FULL_KATAKANA = 3] = "FULL_KATAKANA", t[t.HALF_ALPHA = 4] = "HALF_ALPHA", t[t.HALF_HANGUL = 5] = "HALF_HANGUL", t[t.HALF_KATAKANA = 6] = "HALF_KATAKANA", t[t.HIRAGANA = 7] = "HIRAGANA", t[t.NO_CONTROL = 8] = "NO_CONTROL", t[t.OFF = 9] = "OFF", t[t.ON = 10] = "ON", t))(ao || {}), lo = /* @__PURE__ */ ((t) => (t.BETWEEN = "between", t.EQUAL = "equal", t.GREATER_THAN = "greaterThan", t.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", t.LESS_THAN = "lessThan", t.LESS_THAN_OR_EQUAL = "lessThanOrEqual", t.NOT_BETWEEN = "notBetween", t.NOT_EQUAL = "notEqual", t))(lo || {}), co = /* @__PURE__ */ ((t) => (t.CUSTOM = "custom", t.LIST = "list", t.LIST_MULTIPLE = "listMultiple", t.NONE = "none", t.TEXT_LENGTH = "textLength", t.DATE = "date", t.TIME = "time", t.WHOLE = "whole", t.DECIMAL = "decimal", t.CHECKBOX = "checkbox", t))(co || {}), ho = /* @__PURE__ */ ((t) => (t.VALID = "valid", t.INVALID = "invalid", t.VALIDATING = "validating", t))(ho || {});
7831
- Hs();
7850
+ var ao = /* @__PURE__ */ ((t) => (t[t.INFO = 0] = "INFO", t[t.STOP = 1] = "STOP", t[t.WARNING = 2] = "WARNING", t))(ao || {}), lo = /* @__PURE__ */ ((t) => (t[t.DISABLED = 0] = "DISABLED", t[t.FULL_ALPHA = 1] = "FULL_ALPHA", t[t.FULL_HANGUL = 2] = "FULL_HANGUL", t[t.FULL_KATAKANA = 3] = "FULL_KATAKANA", t[t.HALF_ALPHA = 4] = "HALF_ALPHA", t[t.HALF_HANGUL = 5] = "HALF_HANGUL", t[t.HALF_KATAKANA = 6] = "HALF_KATAKANA", t[t.HIRAGANA = 7] = "HIRAGANA", t[t.NO_CONTROL = 8] = "NO_CONTROL", t[t.OFF = 9] = "OFF", t[t.ON = 10] = "ON", t))(lo || {}), co = /* @__PURE__ */ ((t) => (t.BETWEEN = "between", t.EQUAL = "equal", t.GREATER_THAN = "greaterThan", t.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", t.LESS_THAN = "lessThan", t.LESS_THAN_OR_EQUAL = "lessThanOrEqual", t.NOT_BETWEEN = "notBetween", t.NOT_EQUAL = "notEqual", t))(co || {}), ho = /* @__PURE__ */ ((t) => (t.CUSTOM = "custom", t.LIST = "list", t.LIST_MULTIPLE = "listMultiple", t.NONE = "none", t.TEXT_LENGTH = "textLength", t.DATE = "date", t.TIME = "time", t.WHOLE = "whole", t.DECIMAL = "decimal", t.CHECKBOX = "checkbox", t))(ho || {}), _o = /* @__PURE__ */ ((t) => (t.VALID = "valid", t.INVALID = "invalid", t.VALIDATING = "validating", t))(_o || {});
7851
+ Fs();
7832
7852
  export {
7833
- eu as ABCToNumber,
7853
+ su as ABCToNumber,
7834
7854
  L as AbsoluteRefType,
7835
7855
  We as ActionIterator,
7836
- xn as AlignTypeH,
7837
- Pn as AlignTypeV,
7856
+ Pn as AlignTypeH,
7857
+ Hn as AlignTypeV,
7838
7858
  Bs as AutoFillSeries,
7839
7859
  ct as BaselineOffset,
7840
- En as BlockType,
7860
+ Rn as BlockType,
7841
7861
  C as BooleanNumber,
7842
- S as BorderStyleTypes,
7843
- $s as BorderType,
7844
- X as BulletAlignment,
7862
+ w as BorderStyleTypes,
7863
+ ks as BorderType,
7864
+ J as BulletAlignment,
7845
7865
  Ce as COLORS,
7846
7866
  nt as CellValueType,
7847
- Xu as ClientSnapshotServerService,
7867
+ Ju as ClientSnapshotServerService,
7848
7868
  rt as Color,
7849
7869
  ae as ColorBuilder,
7850
- $ as ColorKit,
7851
- B as ColorType,
7852
- Cn as ColumnSeparatorType,
7870
+ B as ColorKit,
7871
+ G as ColorType,
7872
+ On as ColumnSeparatorType,
7853
7873
  yt as CommandService,
7854
7874
  xt as CommandType,
7855
- ks as CommonHideTypes,
7856
- Kr as ConfigService,
7857
- Un as ContentAlignment,
7858
- mr as ContextService,
7859
- Vs as CopyPasteType,
7860
- gn as CustomRangeType,
7861
- cu as DEFAULT_CELL,
7875
+ Vs as CommonHideTypes,
7876
+ Yr as ConfigService,
7877
+ Tn as ContentAlignment,
7878
+ Cr as ContextService,
7879
+ js as CopyPasteType,
7880
+ En as CustomRangeType,
7881
+ hu as DEFAULT_CELL,
7862
7882
  hs as DEFAULT_DOC,
7863
- Eu as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
7864
- Tu as DEFAULT_EMPTY_DOCUMENT_VALUE,
7865
- au as DEFAULT_RANGE,
7883
+ Ru as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
7884
+ Mu as DEFAULT_EMPTY_DOCUMENT_VALUE,
7885
+ lu as DEFAULT_RANGE,
7866
7886
  Et as DEFAULT_RANGE_ARRAY,
7867
- lu as DEFAULT_SELECTION,
7868
- hr as DEFAULT_SLIDE,
7887
+ cu as DEFAULT_SELECTION,
7888
+ dr as DEFAULT_SLIDE,
7869
7889
  kt as DEFAULT_STYLES,
7870
- yr as DEFAULT_WORKSHEET_COLUMN_COUNT,
7871
- mu as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
7872
- ni as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
7873
- Iu as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
7874
- ei as DEFAULT_WORKSHEET_COLUMN_WIDTH,
7875
- Ou as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
7876
- Qr as DEFAULT_WORKSHEET_ROW_COUNT,
7877
- Ru as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
7878
- ti as DEFAULT_WORKSHEET_ROW_HEIGHT,
7879
- Cu as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
7880
- si as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
7881
- Au as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
7882
- Di as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
7883
- Mi as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
7884
- Ln as DashStyleType,
7885
- Ur as DataStreamTreeNodeType,
7890
+ ti as DEFAULT_WORKSHEET_COLUMN_COUNT,
7891
+ Cu as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
7892
+ ri as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
7893
+ Nu as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
7894
+ si as DEFAULT_WORKSHEET_COLUMN_WIDTH,
7895
+ Au as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
7896
+ yr as DEFAULT_WORKSHEET_ROW_COUNT,
7897
+ mu as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
7898
+ ei as DEFAULT_WORKSHEET_ROW_HEIGHT,
7899
+ Ou as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
7900
+ ni as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
7901
+ Iu as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
7902
+ pi as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
7903
+ Di as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
7904
+ bn as DashStyleType,
7905
+ Tr as DataStreamTreeNodeType,
7886
7906
  ye as DataStreamTreeTokenType,
7887
- uo as DataValidationErrorStyle,
7888
- ao as DataValidationImeMode,
7889
- lo as DataValidationOperator,
7890
- eo as DataValidationRenderMode,
7891
- ho as DataValidationStatus,
7892
- co as DataValidationType,
7893
- Or as DesktopLogService,
7894
- js as DeveloperMetadataVisibility,
7895
- Ks as Dimension,
7896
- Ys as Direction,
7907
+ ao as DataValidationErrorStyle,
7908
+ lo as DataValidationImeMode,
7909
+ co as DataValidationOperator,
7910
+ so as DataValidationRenderMode,
7911
+ _o as DataValidationStatus,
7912
+ ho as DataValidationType,
7913
+ Ar as DesktopLogService,
7914
+ Ks as DeveloperMetadataVisibility,
7915
+ Ys as Dimension,
7916
+ zs as Direction,
7897
7917
  T as Disposable,
7898
7918
  Ye as DisposableCollection,
7899
- _n as DocStyleType,
7919
+ fn as DocStyleType,
7900
7920
  ot as DocumentDataModel,
7901
- di as EDITOR_ACTIVATED,
7902
- dr as EXTENSION_NAMES,
7903
- we as Entry,
7904
- rr as EntryIterator,
7905
- Yr as ErrorService,
7906
- yn as EventState,
7921
+ _i as EDITOR_ACTIVATED,
7922
+ _r as EXTENSION_NAMES,
7923
+ Se as Entry,
7924
+ ir as EntryIterator,
7925
+ zr as ErrorService,
7926
+ tr as EventState,
7907
7927
  Vt as FOCUSING_DOC,
7908
- wu as FOCUSING_EDITOR_BUT_HIDDEN,
7909
- Lu as FOCUSING_EDITOR_INPUT_FORMULA,
7910
- vu as FOCUSING_EDITOR_STANDALONE,
7911
- _i as FOCUSING_FORMULA_EDITOR,
7928
+ Lu as FOCUSING_EDITOR_BUT_HIDDEN,
7929
+ bu as FOCUSING_EDITOR_INPUT_FORMULA,
7930
+ Uu as FOCUSING_EDITOR_STANDALONE,
7931
+ fi as FOCUSING_FORMULA_EDITOR,
7912
7932
  Ot as FOCUSING_SHEET,
7913
7933
  jt as FOCUSING_SLIDE,
7914
- bu as FOCUSING_UNIVER_EDITOR,
7915
- Uu as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
7916
- zr as FloatingObjectManagerService,
7917
- fn as FollowNumberWithType,
7934
+ vu as FOCUSING_UNIVER_EDITOR,
7935
+ Tu as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
7936
+ Xr as FloatingObjectManagerService,
7937
+ gn as FollowNumberWithType,
7918
7938
  Jt as FontItalic,
7919
- Tn as FontStyleType,
7939
+ Mn as FontStyleType,
7920
7940
  qt as FontWeight,
7921
- zs as FormatType,
7941
+ Xs as FormatType,
7922
7942
  Ct as GlyphType,
7923
- Rn as GridType,
7924
- tn as HLSColor,
7943
+ mn as GridType,
7944
+ en as HLSColor,
7925
7945
  st as HorizontalAlign,
7926
7946
  Pt as ICommandService,
7927
- jr as IConfigService,
7947
+ Kr as IConfigService,
7928
7948
  pt as IContextService,
7929
- Xr as IFloatingObjectManagerService,
7930
- ju as ILocalStorageService,
7949
+ Jr as IFloatingObjectManagerService,
7950
+ Ku as ILocalStorageService,
7931
7951
  et as ILogService,
7932
7952
  Es as IPermissionService,
7933
7953
  Rs as IResourceLoaderService,
7934
7954
  ge as IResourceManagerService,
7935
- zu as ISnapshotServerService,
7955
+ Xu as ISnapshotServerService,
7936
7956
  Ee as IUndoRedoService,
7937
7957
  Q as IUniverInstanceService,
7938
- Yu as InterceptorManager,
7939
- Xs as InterpolationPointType,
7940
- sr as KeyIterator,
7958
+ zu as InterceptorManager,
7959
+ Js as InterpolationPointType,
7960
+ nr as KeyIterator,
7941
7961
  gt as LRUHelper,
7942
- ir as LRUMap,
7962
+ or as LRUMap,
7943
7963
  Tt as LifecycleInitializerService,
7944
7964
  y as LifecycleService,
7945
- w as LifecycleStages,
7965
+ S as LifecycleStages,
7946
7966
  re as LocalUndoRedoService,
7947
7967
  It as LocaleService,
7948
7968
  ut as LocaleType,
7949
- Cr as LogLevel,
7950
- vr as MemoryCursor,
7969
+ Or as LogLevel,
7970
+ Ur as MemoryCursor,
7951
7971
  Sn as NamedStyleType,
7952
- wr as NilCommand,
7953
- pn as NumberUnitType,
7972
+ Lr as NilCommand,
7973
+ xn as NumberUnitType,
7954
7974
  k as ObjectMatrix,
7955
- Mn as ObjectRelativeFromH,
7956
- Dn as ObjectRelativeFromV,
7975
+ Dn as ObjectRelativeFromH,
7976
+ pn as ObjectRelativeFromV,
7957
7977
  ce as Observable,
7958
- Vu as ObservableHooks,
7978
+ ju as ObservableHooks,
7959
7979
  le as Observer,
7960
7980
  _s as OnLifecycle,
7961
- gu as PRESET_LIST_TYPE,
7962
- Wn as PageElementType,
7963
- Fn as PageOrientType,
7981
+ Eu as PRESET_LIST_TYPE,
7982
+ $n as PageElementType,
7983
+ Wn as PageOrientType,
7964
7984
  ke as PageType,
7965
- An as ParagraphElementType,
7966
- ar as PermissionPoint,
7985
+ In as ParagraphElementType,
7986
+ lr as PermissionPoint,
7967
7987
  Nt as PermissionService,
7968
7988
  ze as PermissionStatus,
7969
7989
  Fe as Plugin,
7970
7990
  Mt as PluginHolder,
7971
7991
  Dt as PluginService,
7972
- Nn as PositionedObjectLayoutType,
7992
+ wn as PositionedObjectLayoutType,
7973
7993
  te as PresetListType,
7974
- Js as ProtectionType,
7994
+ qs as ProtectionType,
7975
7995
  p as RANGE_TYPE,
7976
- No as RGBA_PAREN,
7977
- Io as RGB_PAREN,
7996
+ wo as RGBA_PAREN,
7997
+ No as RGB_PAREN,
7978
7998
  it as Range,
7979
7999
  Z as Rectangle,
7980
8000
  Bi as RedoCommand,
7981
- Fi as RedoCommandId,
7982
- tu as RefAlias,
8001
+ Wi as RedoCommandId,
8002
+ eu as RefAlias,
7983
8003
  Ze as Registry,
7984
8004
  Qe as RegistryAsMap,
7985
- qs as RelativeDate,
8005
+ Zs as RelativeDate,
7986
8006
  Gn as RelativeSlideLink,
7987
- bi as ResourceManagerService,
8007
+ vi as ResourceManagerService,
7988
8008
  Zt as RgbColor,
7989
- zo as RxDisposable,
7990
- mn as SectionType,
7991
- Zs as ShapeType,
8009
+ Xo as RxDisposable,
8010
+ Cn as SectionType,
8011
+ Qs as ShapeType,
7992
8012
  oe as SheetTypes,
7993
- ii as SheetViewModel,
8013
+ oi as SheetViewModel,
7994
8014
  ds as SlideDataModel,
7995
- wn as SpacingRule,
7996
- Jr as Styles,
7997
- ys as THEME_COLORS,
7998
- bn as TabStopAlignment,
7999
- Qs as TextDecoration,
8000
- wt as TextDirection,
8001
- On as TextDirectionType,
8015
+ Ln as SpacingRule,
8016
+ qr as Styles,
8017
+ tn as THEME_COLORS,
8018
+ vn as TabStopAlignment,
8019
+ ys as TextDecoration,
8020
+ St as TextDirection,
8021
+ An as TextDirectionType,
8002
8022
  Re as TextX,
8003
8023
  A as TextXActionType,
8004
8024
  Qt as ThemeColor,
@@ -8007,122 +8027,122 @@ export {
8007
8027
  ms as ThemeService,
8008
8028
  R as Tools,
8009
8029
  Gi as UndoCommand,
8010
- Wi as UndoCommandId,
8030
+ $i as UndoCommandId,
8011
8031
  de as UnitModel,
8012
- pu as Univer,
8032
+ xu as Univer,
8013
8033
  Kt as UniverEditablePermission,
8014
- Ni as UniverEditablePermissionPoint,
8034
+ wi as UniverEditablePermissionPoint,
8015
8035
  ee as UniverInstanceService,
8016
8036
  O as UniverInstanceType,
8017
- St as UniverPermissionService,
8037
+ wt as UniverPermissionService,
8018
8038
  D as UpdateDocsAttributeType,
8019
- Qi as UserManagerService,
8020
- nr as ValueIterator,
8039
+ yi as UserManagerService,
8040
+ rr as ValueIterator,
8021
8041
  at as VerticalAlign,
8022
- vn as WidthType,
8042
+ Un as WidthType,
8023
8043
  Ut as Workbook,
8024
8044
  vt as Worksheet,
8025
8045
  Lt as WrapStrategy,
8026
- In as WrapTextType,
8027
- fu as afterInitApply,
8046
+ Nn as WrapTextType,
8047
+ gu as afterInitApply,
8028
8048
  Os as b64DecodeUnicode,
8029
- Ju as b64EncodeUnicode,
8030
- Ws as binarySearchArray,
8049
+ qu as b64EncodeUnicode,
8050
+ $s as binarySearchArray,
8031
8051
  Bo as cellToRange,
8032
- Hn as characterSpacingControlType,
8033
- $o as checkForSubstrings,
8034
- ko as checkParagraphHasBullet,
8035
- Vo as checkParagraphHasIndent,
8036
- Xn as checkParagraphHasIndentByStyle,
8037
- Oo as codeToBlob,
8052
+ Fn as characterSpacingControlType,
8053
+ ko as checkForSubstrings,
8054
+ Vo as checkParagraphHasBullet,
8055
+ jo as checkParagraphHasIndent,
8056
+ Jn as checkParagraphHasIndentByStyle,
8057
+ Ao as codeToBlob,
8038
8058
  De as composeBody,
8039
- so as composeInterceptors,
8040
- Zo as concatMatrixArray,
8041
- uu as convertBodyToHtml,
8059
+ no as composeInterceptors,
8060
+ Qo as concatMatrixArray,
8061
+ au as convertBodyToHtml,
8042
8062
  Te as covertTextRunToHtml,
8043
- Ku as createInterceptorKey,
8044
- Mu as createInternalEditorID,
8063
+ Yu as createInterceptorKey,
8064
+ Du as createInternalEditorID,
8045
8065
  Ue as createRowColIter,
8046
- ou as debounce,
8047
- Xo as dedupe,
8066
+ uu as debounce,
8067
+ Jo as dedupe,
8048
8068
  Ve as deepCompare,
8049
- qn as deleteContent,
8050
- Nu as extractPureTextFromCell,
8051
- br as fromCallback,
8052
- Yo as fromObservable,
8053
- qu as generateTemporarySnap,
8054
- J as getArrayLength,
8069
+ Zn as deleteContent,
8070
+ wu as extractPureTextFromCell,
8071
+ vr as fromCallback,
8072
+ zo as fromObservable,
8073
+ Zu as generateTemporarySnap,
8074
+ q as getArrayLength,
8055
8075
  cs as getBodySlice,
8056
- $t as getBodySliceHtml,
8057
- Wo as getBorderStyleType,
8058
- bo as getCellValueType,
8076
+ Bt as getBodySliceHtml,
8077
+ $o as getBorderStyleType,
8078
+ vo as getCellValueType,
8059
8079
  V as getColorStyle,
8060
- Gt as getDocsUpdateBody,
8061
- Ao as getReverseDirection,
8062
- ea as getSheetBlocksFromSnapshot,
8063
- yo as getTypeFromPermissionItemList,
8080
+ $t as getDocsUpdateBody,
8081
+ Io as getReverseDirection,
8082
+ sa as getSheetBlocksFromSnapshot,
8083
+ tu as getTypeFromPermissionItemList,
8064
8084
  Su as getWorksheetUID,
8065
- qo as groupBy,
8066
- Ho as handleJsonToDom,
8067
- Fo as handleStyleToString,
8068
- Ko as hashAlgorithm,
8085
+ Zo as groupBy,
8086
+ Fo as handleJsonToDom,
8087
+ Wo as handleStyleToString,
8088
+ Yo as hashAlgorithm,
8069
8089
  je as horizontalLineSegmentsSubtraction,
8070
8090
  Le as insertMatrixArray,
8071
- Jn as insertTextToContent,
8091
+ qn as insertTextToContent,
8072
8092
  So as isBlackColor,
8073
- Wu as isBooleanString,
8074
- Uo as isCellV,
8075
- po as isEmptyCell,
8076
- Po as isFormulaId,
8077
- xo as isFormulaString,
8078
- Lo as isICellData,
8079
- Du as isInternalEditorID,
8080
- vo as isNullCell,
8081
- to as isNumeric,
8082
- tr as isObserver,
8083
- xu as isRangesEqual,
8084
- jo as isRealNum,
8085
- Fu as isSafeNumeric,
8086
- zn as isSameStyleTextRun,
8087
- Pu as isUnitRangesEqual,
8093
+ $u as isBooleanString,
8094
+ To as isCellV,
8095
+ xo as isEmptyCell,
8096
+ Ho as isFormulaId,
8097
+ Po as isFormulaString,
8098
+ bo as isICellData,
8099
+ pu as isInternalEditorID,
8100
+ Uo as isNullCell,
8101
+ eo as isNumeric,
8102
+ er as isObserver,
8103
+ Pu as isRangesEqual,
8104
+ Ko as isRealNum,
8105
+ Wu as isSafeNumeric,
8106
+ Xn as isSameStyleTextRun,
8107
+ Hu as isUnitRangesEqual,
8088
8108
  Go as isValidRange,
8089
- wo as isWhiteColor,
8090
- Do as makeCellRangeToRangeData,
8091
- Mo as makeCellToSelection,
8092
- Zi as mergeOverrideWithDependencies,
8109
+ Lo as isWhiteColor,
8110
+ po as makeCellRangeToRangeData,
8111
+ Do as makeCellToSelection,
8112
+ Qi as mergeOverrideWithDependencies,
8093
8113
  Gu as mergeSets,
8094
- ri as mergeWorksheetSnapshotWithDefault,
8114
+ ii as mergeWorksheetSnapshotWithDefault,
8095
8115
  ve as moveMatrixArray,
8096
- du as moveRangeByOffset,
8116
+ _u as moveRangeByOffset,
8097
8117
  ts as normalizeTextRuns,
8098
- su as numberToABC,
8099
- nu as numberToListABC,
8118
+ nu as numberToABC,
8119
+ ru as numberToListABC,
8100
8120
  Gs as orderSearchArray,
8101
- hu as queryObjectMatrix,
8121
+ du as queryObjectMatrix,
8102
8122
  he as remove,
8103
- cr as repeatStringNumTimes,
8104
- ku as replaceInDocumentBody,
8105
- $u as requestImmediateMacroTask,
8106
- Jo as rotate,
8123
+ hr as repeatStringNumTimes,
8124
+ Vu as replaceInDocumentBody,
8125
+ ku as requestImmediateMacroTask,
8126
+ qo as rotate,
8107
8127
  fs as runOnLifecycle,
8108
- Co as searchArray,
8109
- To as selectionToArray,
8110
- Rr as sequence,
8111
- Er as sequenceAsync,
8128
+ Oo as searchArray,
8129
+ Mo as selectionToArray,
8130
+ mr as sequence,
8131
+ Rr as sequenceAsync,
8112
8132
  Je as sequenceExecute,
8113
- _u as sequenceExecuteAsync,
8114
- Hu as shallowEqual,
8115
- Qo as sliceMatrixArray,
8116
- ru as sortRules,
8117
- iu as sortRulesByDesc,
8133
+ fu as sequenceExecuteAsync,
8134
+ Fu as shallowEqual,
8135
+ yo as sliceMatrixArray,
8136
+ iu as sortRules,
8137
+ ou as sortRulesByDesc,
8118
8138
  ht as sortRulesFactory,
8119
8139
  be as spliceArray,
8120
8140
  me as textDecoder,
8121
8141
  Ht as textEncoder,
8122
8142
  Bu as throttle,
8123
8143
  b as toDisposable,
8124
- ta as transformDocumentDataToSnapshot,
8125
- yu as transformSnapshotToDocumentData,
8126
- Qu as transformSnapshotToWorkbookData,
8127
- Zu as transformWorkbookDataToSnapshot
8144
+ ea as transformDocumentDataToSnapshot,
8145
+ ta as transformSnapshotToDocumentData,
8146
+ yu as transformSnapshotToWorkbookData,
8147
+ Qu as transformWorkbookDataToSnapshot
8128
8148
  };