@univerjs/core 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/lib/cjs/index.js +6 -6
- package/lib/es/index.js +379 -283
- package/lib/types/docs/data-model/__tests__/replacement.spec.d.ts +16 -0
- package/lib/types/docs/data-model/replacement.d.ts +17 -0
- package/lib/types/docs/data-model/text-x/text-x.d.ts +3 -3
- package/lib/types/index.d.ts +4 -0
- package/lib/types/services/context/context.d.ts +1 -0
- package/lib/types/shared/debounce.d.ts +18 -0
- package/lib/types/shared/generate.d.ts +1 -1
- package/lib/types/shared/index.d.ts +1 -0
- package/lib/types/sheets/__tests__/worksheet.spec.d.ts +16 -0
- package/lib/types/sheets/worksheet.d.ts +22 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +1 -1
- package/lib/umd/index.js +6 -6
- package/package.json +2 -2
package/lib/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var cs = Object.defineProperty;
|
|
2
2
|
var hs = (t, e, s) => e in t ? cs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var h = (t, e, s) => (hs(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { createIdentifier as F, Inject as D, Injector as
|
|
5
|
-
import { Subject as v, Observable as
|
|
4
|
+
import { createIdentifier as F, Inject as D, Injector as q } from "@wendellhu/redi";
|
|
5
|
+
import { Subject as v, Observable as Me, filter as _s, BehaviorSubject as k, combineLatest as ds } from "rxjs";
|
|
6
6
|
import { map as fs } from "rxjs/operators";
|
|
7
7
|
function gs() {
|
|
8
8
|
Es();
|
|
@@ -24,12 +24,12 @@ function Es() {
|
|
|
24
24
|
clearTimeout(s);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
class
|
|
27
|
+
class Ue {
|
|
28
28
|
constructor() {
|
|
29
29
|
h(this, "_data", []);
|
|
30
30
|
}
|
|
31
31
|
static create() {
|
|
32
|
-
return new
|
|
32
|
+
return new Ue();
|
|
33
33
|
}
|
|
34
34
|
add(e) {
|
|
35
35
|
this._data.indexOf(e) > -1 || this._data.push(e);
|
|
@@ -42,12 +42,12 @@ class Me {
|
|
|
42
42
|
return this._data;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
class
|
|
45
|
+
class Te {
|
|
46
46
|
constructor() {
|
|
47
47
|
h(this, "_data", /* @__PURE__ */ new Map());
|
|
48
48
|
}
|
|
49
49
|
static create() {
|
|
50
|
-
return new
|
|
50
|
+
return new Te();
|
|
51
51
|
}
|
|
52
52
|
add(e, s) {
|
|
53
53
|
this._data.has(e) || this._data.set(e, s);
|
|
@@ -110,7 +110,7 @@ class Os {
|
|
|
110
110
|
this._pluginsRegisteredByBusiness.delete(e);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function J(t, e) {
|
|
114
114
|
const s = t.indexOf(e);
|
|
115
115
|
return s > -1 ? (t.splice(s, 1), !0) : !1;
|
|
116
116
|
}
|
|
@@ -168,7 +168,7 @@ function Cs(t) {
|
|
|
168
168
|
index: -1
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function ae(t) {
|
|
172
172
|
var e = typeof Symbol == "function" && Symbol.iterator, s = e && t[e], n = 0;
|
|
173
173
|
if (s)
|
|
174
174
|
return s.call(t);
|
|
@@ -180,7 +180,7 @@ function le(t) {
|
|
|
180
180
|
};
|
|
181
181
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function ce(t, e) {
|
|
184
184
|
var s = typeof Symbol == "function" && t[Symbol.iterator];
|
|
185
185
|
if (!s)
|
|
186
186
|
return t;
|
|
@@ -200,13 +200,13 @@ function ae(t, e) {
|
|
|
200
200
|
}
|
|
201
201
|
return i;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function he(t, e, s) {
|
|
204
204
|
if (s || arguments.length === 2)
|
|
205
205
|
for (var n = 0, r = e.length, i; n < r; n++)
|
|
206
206
|
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
|
|
207
207
|
return t.concat(i || Array.prototype.slice.call(e));
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function nt(t) {
|
|
210
210
|
return typeof t == "function";
|
|
211
211
|
}
|
|
212
212
|
function Ns(t) {
|
|
@@ -224,13 +224,13 @@ var Dt = Ns(function(t) {
|
|
|
224
224
|
`) : "", this.name = "UnsubscriptionError", this.errors = s;
|
|
225
225
|
};
|
|
226
226
|
});
|
|
227
|
-
function
|
|
227
|
+
function _e(t, e) {
|
|
228
228
|
if (t) {
|
|
229
229
|
var s = t.indexOf(e);
|
|
230
230
|
0 <= s && t.splice(s, 1);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var Pe = function() {
|
|
234
234
|
function t(e) {
|
|
235
235
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
236
236
|
}
|
|
@@ -242,7 +242,7 @@ var Te = function() {
|
|
|
242
242
|
if (o)
|
|
243
243
|
if (this._parentage = null, Array.isArray(o))
|
|
244
244
|
try {
|
|
245
|
-
for (var u =
|
|
245
|
+
for (var u = ae(o), l = u.next(); !l.done; l = u.next()) {
|
|
246
246
|
var c = l.value;
|
|
247
247
|
c.remove(this);
|
|
248
248
|
}
|
|
@@ -259,7 +259,7 @@ var Te = function() {
|
|
|
259
259
|
else
|
|
260
260
|
o.remove(this);
|
|
261
261
|
var a = this.initialTeardown;
|
|
262
|
-
if (
|
|
262
|
+
if (nt(a))
|
|
263
263
|
try {
|
|
264
264
|
a();
|
|
265
265
|
} catch (R) {
|
|
@@ -269,12 +269,12 @@ var Te = function() {
|
|
|
269
269
|
if (_) {
|
|
270
270
|
this._finalizers = null;
|
|
271
271
|
try {
|
|
272
|
-
for (var d =
|
|
272
|
+
for (var d = ae(_), f = d.next(); !f.done; f = d.next()) {
|
|
273
273
|
var g = f.value;
|
|
274
274
|
try {
|
|
275
|
-
|
|
275
|
+
de(g);
|
|
276
276
|
} catch (R) {
|
|
277
|
-
i = i != null ? i : [], R instanceof Dt ? i =
|
|
277
|
+
i = i != null ? i : [], R instanceof Dt ? i = he(he([], ce(i)), ce(R.errors)) : i.push(R);
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} catch (R) {
|
|
@@ -295,7 +295,7 @@ var Te = function() {
|
|
|
295
295
|
var s;
|
|
296
296
|
if (e && e !== this)
|
|
297
297
|
if (this.closed)
|
|
298
|
-
|
|
298
|
+
de(e);
|
|
299
299
|
else {
|
|
300
300
|
if (e instanceof t) {
|
|
301
301
|
if (e.closed || e._hasParent(this))
|
|
@@ -312,21 +312,21 @@ var Te = function() {
|
|
|
312
312
|
this._parentage = Array.isArray(s) ? (s.push(e), s) : s ? [s, e] : e;
|
|
313
313
|
}, t.prototype._removeParent = function(e) {
|
|
314
314
|
var s = this._parentage;
|
|
315
|
-
s === e ? this._parentage = null : Array.isArray(s) &&
|
|
315
|
+
s === e ? this._parentage = null : Array.isArray(s) && _e(s, e);
|
|
316
316
|
}, t.prototype.remove = function(e) {
|
|
317
317
|
var s = this._finalizers;
|
|
318
|
-
s &&
|
|
318
|
+
s && _e(s, e), e instanceof t && e._removeParent(this);
|
|
319
319
|
}, t.EMPTY = function() {
|
|
320
320
|
var e = new t();
|
|
321
321
|
return e.closed = !0, e;
|
|
322
322
|
}(), t;
|
|
323
323
|
}();
|
|
324
|
-
|
|
325
|
-
function
|
|
326
|
-
return t instanceof
|
|
324
|
+
Pe.EMPTY;
|
|
325
|
+
function xe(t) {
|
|
326
|
+
return t instanceof Pe || t && "closed" in t && nt(t.remove) && nt(t.add) && nt(t.unsubscribe);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
328
|
+
function de(t) {
|
|
329
|
+
nt(t) ? t() : t.unsubscribe();
|
|
330
330
|
}
|
|
331
331
|
class Ss {
|
|
332
332
|
/**
|
|
@@ -554,7 +554,7 @@ class te {
|
|
|
554
554
|
}
|
|
555
555
|
function N(t) {
|
|
556
556
|
let e = !1;
|
|
557
|
-
return
|
|
557
|
+
return xe(t) ? {
|
|
558
558
|
dispose: () => {
|
|
559
559
|
e || (e = !0, t.unsubscribe());
|
|
560
560
|
}
|
|
@@ -573,7 +573,7 @@ function Hi(t) {
|
|
|
573
573
|
t.unsubscribe();
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class He {
|
|
577
577
|
constructor() {
|
|
578
578
|
h(this, "_disposables", /* @__PURE__ */ new Set());
|
|
579
579
|
}
|
|
@@ -593,10 +593,10 @@ class xe {
|
|
|
593
593
|
class U {
|
|
594
594
|
constructor() {
|
|
595
595
|
h(this, "_disposed", !1);
|
|
596
|
-
h(this, "_collection", new
|
|
596
|
+
h(this, "_collection", new He());
|
|
597
597
|
}
|
|
598
598
|
disposeWithMe(e) {
|
|
599
|
-
const s =
|
|
599
|
+
const s = xe(e) ? N(e) : e;
|
|
600
600
|
return this._collection.add(s);
|
|
601
601
|
}
|
|
602
602
|
dispose() {
|
|
@@ -612,7 +612,7 @@ class Fi extends U {
|
|
|
612
612
|
super.dispose(), this.dispose$.next(), this.dispose$.complete();
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
const
|
|
615
|
+
const ut = F("univer.context-service");
|
|
616
616
|
class Ls extends U {
|
|
617
617
|
constructor() {
|
|
618
618
|
super(...arguments);
|
|
@@ -631,7 +631,7 @@ class Ls extends U {
|
|
|
631
631
|
this._contextMap.set(s, n), this._contextChanged$.next({ [s]: n });
|
|
632
632
|
}
|
|
633
633
|
subscribeContextValue$(s) {
|
|
634
|
-
return new
|
|
634
|
+
return new Me((n) => {
|
|
635
635
|
const r = this._contextChanged$.pipe(_s((i) => typeof i[s] < "u")).subscribe((i) => n.next(i[s]));
|
|
636
636
|
return this._contextMap.has(s) && n.next(this._contextMap.get(s)), () => r.unsubscribe();
|
|
637
637
|
});
|
|
@@ -668,7 +668,7 @@ var Ds = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, Us = (t, e
|
|
|
668
668
|
for (var r = n > 1 ? void 0 : n ? Ms(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
669
669
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
670
670
|
return n && r && Ds(e, s, r), r;
|
|
671
|
-
},
|
|
671
|
+
}, fe = (t, e) => (s, n) => e(s, n, t), ee = /* @__PURE__ */ ((t) => (t[t.COMMAND = 0] = "COMMAND", t[t.OPERATION = 1] = "OPERATION", t[t.MUTATION = 2] = "MUTATION", t))(ee || {});
|
|
672
672
|
const bt = F("anywhere.command-service");
|
|
673
673
|
class Ts {
|
|
674
674
|
constructor() {
|
|
@@ -757,7 +757,7 @@ let Bt = class {
|
|
|
757
757
|
throw new Error(`[CommandService]: command "${t}" is not registered.`);
|
|
758
758
|
}
|
|
759
759
|
_pushCommandExecutionStack(t) {
|
|
760
|
-
return this._commandExecutionStack.push(t), N(() =>
|
|
760
|
+
return this._commandExecutionStack.push(t), N(() => J(this._commandExecutionStack, t));
|
|
761
761
|
}
|
|
762
762
|
_registerCommand(t) {
|
|
763
763
|
return this._commandRegistry.registerCommand(t);
|
|
@@ -770,7 +770,7 @@ let Bt = class {
|
|
|
770
770
|
throw new Error("Command has registered as a single command.");
|
|
771
771
|
s = e[0];
|
|
772
772
|
} else {
|
|
773
|
-
const r = new
|
|
773
|
+
const r = new He();
|
|
774
774
|
s = new Ps(t.id), r.add(this._commandRegistry.registerCommand(s)), r.add(
|
|
775
775
|
N(() => {
|
|
776
776
|
this._multiCommandDisposables.delete(t.id);
|
|
@@ -813,8 +813,8 @@ let Bt = class {
|
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
815
|
Bt = Us([
|
|
816
|
-
|
|
817
|
-
|
|
816
|
+
fe(0, D(q)),
|
|
817
|
+
fe(1, y)
|
|
818
818
|
], Bt);
|
|
819
819
|
class Ps {
|
|
820
820
|
constructor(e) {
|
|
@@ -826,7 +826,7 @@ class Ps {
|
|
|
826
826
|
h(this, "handler", async (e, s) => {
|
|
827
827
|
if (!this._implementations.length)
|
|
828
828
|
return !1;
|
|
829
|
-
const n = e.get(y), r = e.get(
|
|
829
|
+
const n = e.get(y), r = e.get(ut), i = e.get(q);
|
|
830
830
|
for (const o of this._implementations) {
|
|
831
831
|
const u = o.command.preconditions;
|
|
832
832
|
if ((!u || u && u(r)) && (n.debug("[MultiCommand]", `executing implementation "${o.command.name}".`), await i.invoke(o.command.handler, s)))
|
|
@@ -848,7 +848,7 @@ class Ps {
|
|
|
848
848
|
return this._implementations.length > 0;
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Fe(t, e, s) {
|
|
852
852
|
const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
|
|
853
853
|
return Cs(n);
|
|
854
854
|
}
|
|
@@ -1033,7 +1033,7 @@ function Gi(t) {
|
|
|
1033
1033
|
const e = new Blob([t], { type: "text/javascript" });
|
|
1034
1034
|
return window.URL.createObjectURL(e);
|
|
1035
1035
|
}
|
|
1036
|
-
var Vs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Vs || {}), I = /* @__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))(I || {}), js = /* @__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))(js || {}), H = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(H || {}), Ys = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(Ys || {}), Ks = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(Ks || {}), zs = /* @__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))(zs || {}), Xs = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(Xs || {}), Qs = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Qs || {}),
|
|
1036
|
+
var Vs = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(Vs || {}), I = /* @__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))(I || {}), js = /* @__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))(js || {}), H = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(H || {}), Ys = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(Ys || {}), Ks = /* @__PURE__ */ ((t) => (t[t.CONDITION_TYPE_UNSPECIFIED = 0] = "CONDITION_TYPE_UNSPECIFIED", t[t.NUMNUMBER_BETWEENR_GREATER = 1] = "NUMNUMBER_BETWEENR_GREATER", t[t.NUMBER_GREATER_THAN_EQ = 2] = "NUMBER_GREATER_THAN_EQ", t[t.NUMBER_LESS = 3] = "NUMBER_LESS", t[t.NUMBER_LESS_THAN_EQ = 4] = "NUMBER_LESS_THAN_EQ", t[t.NUMBER_EQ = 5] = "NUMBER_EQ", t[t.NUMBER_NOT_EQ = 6] = "NUMBER_NOT_EQ", t[t.NUMBER_BETWEEN = 7] = "NUMBER_BETWEEN", t[t.NUMBER_NOT_BETWEEN = 8] = "NUMBER_NOT_BETWEEN", t[t.TEXT_CONTAINS = 9] = "TEXT_CONTAINS", t[t.TEXT_NOT_CONTAINS = 10] = "TEXT_NOT_CONTAINS", t[t.TEXT_STARTS_WITH = 11] = "TEXT_STARTS_WITH", t[t.TEXT_ENDS_WITH = 12] = "TEXT_ENDS_WITH", t[t.TEXT_EQ = 13] = "TEXT_EQ", t[t.TEXT_IS_EMAIL = 14] = "TEXT_IS_EMAIL", t[t.TEXT_IS_URL = 15] = "TEXT_IS_URL", t[t.DATE_EQ = 16] = "DATE_EQ", t[t.DATE_BEFORE = 17] = "DATE_BEFORE", t[t.DATE_AFTER = 18] = "DATE_AFTER", t[t.DATE_ON_OR_BEFORE = 19] = "DATE_ON_OR_BEFORE", t[t.DATE_ON_OR_AFTER = 20] = "DATE_ON_OR_AFTER", t[t.DATE_BETWEEN = 21] = "DATE_BETWEEN", t[t.DATE_NOT_BETWEEN = 22] = "DATE_NOT_BETWEEN", t[t.DATE_IS_VALID = 23] = "DATE_IS_VALID", t[t.ONE_OF_RANGE = 24] = "ONE_OF_RANGE", t[t.ONE_OF_LIST = 25] = "ONE_OF_LIST", t[t.BLANK = 26] = "BLANK", t[t.NOT_BLANK = 27] = "NOT_BLANK", t[t.CUSTOM_FORMULA = 28] = "CUSTOM_FORMULA", t[t.BOOLEAN = 29] = "BOOLEAN", t[t.TEXT_NOT_EQ = 30] = "TEXT_NOT_EQ", t[t.DATE_NOT_EQ = 31] = "DATE_NOT_EQ", t))(Ks || {}), zs = /* @__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))(zs || {}), Xs = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(Xs || {}), Qs = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(Qs || {}), Js = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(Js || {});
|
|
1037
1037
|
function $i(t) {
|
|
1038
1038
|
switch (t) {
|
|
1039
1039
|
case 3:
|
|
@@ -1046,7 +1046,7 @@ function $i(t) {
|
|
|
1046
1046
|
return 0;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
var Js = /* @__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))(Js || {}), Zs = /* @__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))(Zs || {}), se = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(se || {}), ys = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(ys || {}), tn = /* @__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))(tn || {}), en = /* @__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))(en || {}), sn = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(sn || {}), Nt = /* @__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))(Nt || {}), nn = /* @__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))(nn || {}), Z = /* @__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))(Z || {}), nt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(nt || {}), rt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(rt || {}), Gt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Gt || {}), $t = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))($t || {}), kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(kt || {}), O = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(O || {}), mt = /* @__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))(mt || {}), T = /* @__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))(T || {}), ne = /* @__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))(ne || {});
|
|
1049
|
+
var qs = /* @__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))(qs || {}), Zs = /* @__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))(Zs || {}), se = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(se || {}), ys = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(ys || {}), tn = /* @__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))(tn || {}), en = /* @__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))(en || {}), sn = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(sn || {}), Nt = /* @__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))(Nt || {}), nn = /* @__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))(nn || {}), Z = /* @__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))(Z || {}), rt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(rt || {}), it = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(it || {}), Gt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Gt || {}), $t = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))($t || {}), kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(kt || {}), O = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(O || {}), mt = /* @__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))(mt || {}), T = /* @__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))(T || {}), ne = /* @__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))(ne || {});
|
|
1050
1050
|
const rn = {
|
|
1051
1051
|
[ne.OFFICE]: {
|
|
1052
1052
|
[T.ACCENT1]: "#4472C4",
|
|
@@ -1297,7 +1297,7 @@ const K = class K extends tt {
|
|
|
1297
1297
|
};
|
|
1298
1298
|
h(K, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
1299
1299
|
let jt = K;
|
|
1300
|
-
const ki = "rgb(", Vi = "rgba(",
|
|
1300
|
+
const ki = "rgb(", Vi = "rgba(", ge = {
|
|
1301
1301
|
aliceBlue: [240, 248, 255],
|
|
1302
1302
|
antiqueWhite: [250, 235, 215],
|
|
1303
1303
|
aqua: [0, 255, 255],
|
|
@@ -1461,7 +1461,7 @@ class p {
|
|
|
1461
1461
|
this._color = { ...e._color }, this._rgbColor = { ...e._rgbColor };
|
|
1462
1462
|
return;
|
|
1463
1463
|
}
|
|
1464
|
-
const s =
|
|
1464
|
+
const s = We(e);
|
|
1465
1465
|
if (s == null) {
|
|
1466
1466
|
this._setNullColor();
|
|
1467
1467
|
return;
|
|
@@ -1560,7 +1560,7 @@ class p {
|
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
|
-
const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4),
|
|
1563
|
+
const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), We = (t) => {
|
|
1564
1564
|
if (Rn(t)) {
|
|
1565
1565
|
if ("r" in t) {
|
|
1566
1566
|
const n = {
|
|
@@ -1586,8 +1586,8 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
|
|
|
1586
1586
|
return t.a !== void 0 && (s.a = t.a), s;
|
|
1587
1587
|
}
|
|
1588
1588
|
const e = t.trim();
|
|
1589
|
-
if (
|
|
1590
|
-
const s =
|
|
1589
|
+
if (ge[e]) {
|
|
1590
|
+
const s = ge[e], n = {
|
|
1591
1591
|
r: Math.round(s[0]),
|
|
1592
1592
|
g: Math.round(s[1]),
|
|
1593
1593
|
b: Math.round(s[2])
|
|
@@ -1654,7 +1654,7 @@ const _t = (t) => t.length === 1 ? `0${t}` : t, Mt = (t) => (t /= 255, t <= 0.03
|
|
|
1654
1654
|
};
|
|
1655
1655
|
return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
|
|
1656
1656
|
}, hn = (t) => {
|
|
1657
|
-
const e =
|
|
1657
|
+
const e = We(t);
|
|
1658
1658
|
if (e != null)
|
|
1659
1659
|
return "r" in e ? e : "l" in e ? _n(e) : dn(e);
|
|
1660
1660
|
}, Ut = (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), _n = (t) => {
|
|
@@ -2165,10 +2165,10 @@ function ji(t) {
|
|
|
2165
2165
|
endColumn: S,
|
|
2166
2166
|
startY: W,
|
|
2167
2167
|
endY: G,
|
|
2168
|
-
startX:
|
|
2168
|
+
startX: st,
|
|
2169
2169
|
endX: as
|
|
2170
2170
|
} = i;
|
|
2171
|
-
a = g, _ = R, d = w, f = S, o = W, u = G, l =
|
|
2171
|
+
a = g, _ = R, d = w, f = S, o = W, u = G, l = st, c = as;
|
|
2172
2172
|
}
|
|
2173
2173
|
return r && (o = i.startY, u = i.endY, l = i.startX, c = i.endX, d = i.endRow, f = i.endColumn), {
|
|
2174
2174
|
startRow: a,
|
|
@@ -2224,7 +2224,7 @@ function Xi(t) {
|
|
|
2224
2224
|
function Qi(t) {
|
|
2225
2225
|
return "";
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Ji(t, e = !1) {
|
|
2228
2228
|
var i;
|
|
2229
2229
|
let s = "";
|
|
2230
2230
|
const n = /* @__PURE__ */ new Map([
|
|
@@ -2323,13 +2323,13 @@ function qi(t, e = !1) {
|
|
|
2323
2323
|
[
|
|
2324
2324
|
"vt",
|
|
2325
2325
|
() => {
|
|
2326
|
-
t.vt ===
|
|
2326
|
+
t.vt === rt.BOTTOM ? s += "vertical-align: bottom; " : t.vt === rt.TOP ? s += "vertical-align: top; " : t.vt === rt.MIDDLE && (s += "vertical-align: middle; ");
|
|
2327
2327
|
}
|
|
2328
2328
|
],
|
|
2329
2329
|
[
|
|
2330
2330
|
"tb",
|
|
2331
2331
|
() => {
|
|
2332
|
-
t.tb ===
|
|
2332
|
+
t.tb === it.CLIP ? s += "text-overflow: clip; " : t.tb === it.OVERFLOW ? s += "text-break: overflow; " : t.tb === it.WRAP && (s += "word-wrap: break-word;");
|
|
2333
2333
|
}
|
|
2334
2334
|
],
|
|
2335
2335
|
[
|
|
@@ -2349,7 +2349,7 @@ function dt(t) {
|
|
|
2349
2349
|
let e = "";
|
|
2350
2350
|
return t === I.NONE ? e = "none" : t === I.THIN ? e = "0.5pt solid" : t === I.HAIR ? e = "0.5pt double" : t === I.DOTTED ? e = "0.5pt dotted" : t === I.DASHED || t === I.DASH_DOT ? e = "0.5pt dashed" : t === I.DASH_DOT_DOT ? e = "0.5pt dotted" : t === I.DOUBLE ? e = "0.5pt double" : t === I.MEDIUM ? e = "1pt solid" : t === I.MEDIUM_DASHED || t === I.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === I.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === I.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === I.THICK && (e = "1.5pt solid"), e;
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function qi(t) {
|
|
2353
2353
|
let e = 0;
|
|
2354
2354
|
if (t = t.trim(), t === "none")
|
|
2355
2355
|
e = I.NONE;
|
|
@@ -2385,14 +2385,14 @@ function Zi(t) {
|
|
|
2385
2385
|
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = t;
|
|
2386
2386
|
return !(e < 0 || n < 0 || s < 0 || r < 0);
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2389
|
-
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) =>
|
|
2388
|
+
function pe(t, e) {
|
|
2389
|
+
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) => pe(t[s], e[s])) : t === e : !1;
|
|
2390
2390
|
}
|
|
2391
2391
|
function Cn(t, e) {
|
|
2392
2392
|
const s = t.ts || {}, n = e.ts || {};
|
|
2393
|
-
return t.sId !== e.sId ? !1 :
|
|
2393
|
+
return t.sId !== e.sId ? !1 : pe(s, n);
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Be(t, e, s, n) {
|
|
2396
2396
|
if (t > e && ([t, e] = [e, t]), s > n && ([s, n] = [n, s]), e < s || n < t)
|
|
2397
2397
|
return [t, e];
|
|
2398
2398
|
s < t && (s = t), n > e && (n = e);
|
|
@@ -2488,7 +2488,7 @@ class vn {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
2490
|
var vi, Di;
|
|
2491
|
-
class
|
|
2491
|
+
class Ee {
|
|
2492
2492
|
constructor(e, s) {
|
|
2493
2493
|
h(this, "key");
|
|
2494
2494
|
h(this, "value");
|
|
@@ -2532,7 +2532,7 @@ class Dn {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
onShift(e) {
|
|
2534
2534
|
if (this._onShiftListeners.indexOf(e) === -1)
|
|
2535
|
-
return this._onShiftListeners.push(e), N(() =>
|
|
2535
|
+
return this._onShiftListeners.push(e), N(() => J(this._onShiftListeners, e));
|
|
2536
2536
|
throw new Error("[LRUMap]: the listener has been registered!");
|
|
2537
2537
|
}
|
|
2538
2538
|
_initialize(e, s) {
|
|
@@ -2546,7 +2546,7 @@ class Dn {
|
|
|
2546
2546
|
this._keymap.clear();
|
|
2547
2547
|
const r = e[Symbol.iterator]();
|
|
2548
2548
|
for (let i = r.next(); !i.done; i = r.next()) {
|
|
2549
|
-
const o = new
|
|
2549
|
+
const o = new Ee(i.value[0], i.value[1]);
|
|
2550
2550
|
if (this._keymap.set(o.key, o), s ? (s[A] = o, o[b] = s) : this.oldest = o, s = o, n-- === 0)
|
|
2551
2551
|
throw new Error("overflow");
|
|
2552
2552
|
}
|
|
@@ -2554,7 +2554,7 @@ class Dn {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
set(e, s) {
|
|
2556
2556
|
let n = this._keymap.get(e);
|
|
2557
|
-
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new
|
|
2557
|
+
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new Ee(e, s)), this.newest ? (this.newest[A] = n, n[b] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
|
|
2558
2558
|
}
|
|
2559
2559
|
shift() {
|
|
2560
2560
|
const e = this.oldest;
|
|
@@ -2622,13 +2622,13 @@ function j(t) {
|
|
|
2622
2622
|
}
|
|
2623
2623
|
return e + 1;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Re(t, e, s) {
|
|
2626
2626
|
const n = j(s), r = s;
|
|
2627
2627
|
for (let i = n - 1; i >= t; i--)
|
|
2628
2628
|
r[i + 1] = r[i];
|
|
2629
2629
|
r[t] = e;
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function me(t, e, s, n) {
|
|
2632
2632
|
const r = t + e, i = j(s), o = s;
|
|
2633
2633
|
let u = 0;
|
|
2634
2634
|
const l = {};
|
|
@@ -2672,7 +2672,7 @@ function ro(t, e, s) {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
return {};
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function Oe(t, e, s, n) {
|
|
2676
2676
|
const r = t > s;
|
|
2677
2677
|
if (!r && t + e > s)
|
|
2678
2678
|
throw new Error("Invalid move operation");
|
|
@@ -2806,29 +2806,29 @@ class V {
|
|
|
2806
2806
|
this._matrix[e] = s;
|
|
2807
2807
|
}
|
|
2808
2808
|
moveRows(e, s, n) {
|
|
2809
|
-
|
|
2809
|
+
Oe(e, s, n, this._matrix);
|
|
2810
2810
|
}
|
|
2811
2811
|
moveColumns(e, s, n) {
|
|
2812
2812
|
this.forEach((r, i) => {
|
|
2813
|
-
|
|
2813
|
+
Oe(e, s, n, i);
|
|
2814
2814
|
});
|
|
2815
2815
|
}
|
|
2816
2816
|
insertRows(e, s) {
|
|
2817
2817
|
for (let n = e; n < e + s; n++)
|
|
2818
|
-
|
|
2818
|
+
Re(n, {}, this._matrix);
|
|
2819
2819
|
}
|
|
2820
2820
|
insertColumns(e, s) {
|
|
2821
2821
|
for (let n = e; n < e + s; n++)
|
|
2822
2822
|
this.forEach((r, i) => {
|
|
2823
|
-
|
|
2823
|
+
Re(n, void 0, i);
|
|
2824
2824
|
});
|
|
2825
2825
|
}
|
|
2826
2826
|
removeRows(e, s) {
|
|
2827
|
-
|
|
2827
|
+
me(e, s, this._matrix);
|
|
2828
2828
|
}
|
|
2829
2829
|
removeColumns(e, s) {
|
|
2830
2830
|
this.forEach((n, r) => {
|
|
2831
|
-
|
|
2831
|
+
me(e, s, r);
|
|
2832
2832
|
});
|
|
2833
2833
|
}
|
|
2834
2834
|
/**
|
|
@@ -2988,7 +2988,7 @@ class V {
|
|
|
2988
2988
|
this._matrix = e;
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
var
|
|
2991
|
+
var Ge = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(Ge || {});
|
|
2992
2992
|
class Tn {
|
|
2993
2993
|
constructor() {
|
|
2994
2994
|
h(this, "status", "init");
|
|
@@ -3137,7 +3137,7 @@ h(z, "getRelativeRange", (e, s) => ({
|
|
|
3137
3137
|
startColumn: e.startColumn + s,
|
|
3138
3138
|
endColumn: e.endColumn + s
|
|
3139
3139
|
}));
|
|
3140
|
-
let
|
|
3140
|
+
let ot = z;
|
|
3141
3141
|
class uo {
|
|
3142
3142
|
constructor(e, s) {
|
|
3143
3143
|
h(this, "_values", []);
|
|
@@ -3198,7 +3198,7 @@ class uo {
|
|
|
3198
3198
|
this._values = [], this._keys = [], this._keyMaps.clear();
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function Ae(t, e, s, n) {
|
|
3202
3202
|
return {
|
|
3203
3203
|
forEach(r) {
|
|
3204
3204
|
for (let i = t; i <= e; i++)
|
|
@@ -3216,9 +3216,9 @@ function lo(t) {
|
|
|
3216
3216
|
i = n(e[o]), r += i * 26 ** (s - o - 1);
|
|
3217
3217
|
return r === 0 ? Number.NaN : r - 1;
|
|
3218
3218
|
}
|
|
3219
|
-
const St = 65,
|
|
3219
|
+
const St = 65, $e = 90, xn = 97;
|
|
3220
3220
|
function ao(t) {
|
|
3221
|
-
const e =
|
|
3221
|
+
const e = $e - St + 1;
|
|
3222
3222
|
let s = "";
|
|
3223
3223
|
for (; t >= 0; )
|
|
3224
3224
|
s = String.fromCharCode(t % e + St) + s, t = Math.floor(t / e) - 1;
|
|
@@ -3231,7 +3231,7 @@ function Hn(t, e) {
|
|
|
3231
3231
|
return s;
|
|
3232
3232
|
}
|
|
3233
3233
|
function co(t, e = !1) {
|
|
3234
|
-
const s =
|
|
3234
|
+
const s = $e - St + 1;
|
|
3235
3235
|
let n = xn;
|
|
3236
3236
|
e && (n = St);
|
|
3237
3237
|
const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
|
|
@@ -3246,9 +3246,18 @@ function _o(t, e) {
|
|
|
3246
3246
|
function ct(t = "index", e = 1) {
|
|
3247
3247
|
return (s, n) => s[t] > n[t] ? e : s[t] === n[t] ? 0 : -e;
|
|
3248
3248
|
}
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
function
|
|
3249
|
+
function fo(t, e) {
|
|
3250
|
+
let s;
|
|
3251
|
+
return function(...n) {
|
|
3252
|
+
const r = this, i = function() {
|
|
3253
|
+
s = null, t.apply(r, n);
|
|
3254
|
+
};
|
|
3255
|
+
clearTimeout(s), s = setTimeout(i, e);
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
var Fn = /* @__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))(Fn || {}), ke = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
|
|
3259
|
+
`, 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))(ke || {});
|
|
3260
|
+
function Ve(t) {
|
|
3252
3261
|
const e = [];
|
|
3253
3262
|
for (const s of t) {
|
|
3254
3263
|
const { st: n, ed: r, ts: i } = s;
|
|
@@ -3267,7 +3276,7 @@ function ke(t) {
|
|
|
3267
3276
|
}
|
|
3268
3277
|
return e;
|
|
3269
3278
|
}
|
|
3270
|
-
function
|
|
3279
|
+
function je(t, e, s, n) {
|
|
3271
3280
|
var c;
|
|
3272
3281
|
const { textRuns: r } = t;
|
|
3273
3282
|
if (r == null)
|
|
@@ -3310,7 +3319,7 @@ function Ve(t, e, s, n) {
|
|
|
3310
3319
|
else
|
|
3311
3320
|
_.st += s, _.ed += s, u || (u = !0, i.push(...l)), i.push(_);
|
|
3312
3321
|
}
|
|
3313
|
-
u || (u = !0, i.push(...l)), t.textRuns =
|
|
3322
|
+
u || (u = !0, i.push(...l)), t.textRuns = Ve(i);
|
|
3314
3323
|
}
|
|
3315
3324
|
function ie(t, e, s, n) {
|
|
3316
3325
|
const { paragraphs: r } = t;
|
|
@@ -3330,7 +3339,7 @@ function ie(t, e, s, n) {
|
|
|
3330
3339
|
const f = d.startIndex;
|
|
3331
3340
|
c = u.indexOf(f);
|
|
3332
3341
|
}
|
|
3333
|
-
if (o ===
|
|
3342
|
+
if (o === ke.PARAGRAPH && i.length === 1) {
|
|
3334
3343
|
const a = r[l], _ = i[0], d = a.paragraphStyle, f = a.bullet;
|
|
3335
3344
|
a.paragraphStyle = _.paragraphStyle, a.bullet = _.bullet, _.paragraphStyle = d, _.bullet = f;
|
|
3336
3345
|
}
|
|
@@ -3354,7 +3363,7 @@ function Wn(t, e, s, n) {
|
|
|
3354
3363
|
r.push(...i), r.sort(ct("startIndex"));
|
|
3355
3364
|
}
|
|
3356
3365
|
}
|
|
3357
|
-
function
|
|
3366
|
+
function Ye(t, e, s, n) {
|
|
3358
3367
|
const { customBlocks: r } = t;
|
|
3359
3368
|
if (r == null)
|
|
3360
3369
|
return;
|
|
@@ -3405,7 +3414,7 @@ function pn(t, e, s, n) {
|
|
|
3405
3414
|
r.push(...i), r.sort(ct("startIndex"));
|
|
3406
3415
|
}
|
|
3407
3416
|
}
|
|
3408
|
-
function
|
|
3417
|
+
function Ke(t, e, s) {
|
|
3409
3418
|
const { textRuns: n } = t, r = s, i = s + e, o = [];
|
|
3410
3419
|
if (n) {
|
|
3411
3420
|
const u = [];
|
|
@@ -3438,7 +3447,7 @@ function Ye(t, e, s) {
|
|
|
3438
3447
|
}
|
|
3439
3448
|
return o;
|
|
3440
3449
|
}
|
|
3441
|
-
function
|
|
3450
|
+
function ze(t, e, s) {
|
|
3442
3451
|
const { paragraphs: n } = t, r = s, i = s + e, o = [];
|
|
3443
3452
|
if (n) {
|
|
3444
3453
|
const u = [];
|
|
@@ -3458,7 +3467,7 @@ function Ke(t, e, s) {
|
|
|
3458
3467
|
}
|
|
3459
3468
|
return o;
|
|
3460
3469
|
}
|
|
3461
|
-
function
|
|
3470
|
+
function Xe(t, e, s) {
|
|
3462
3471
|
const { sectionBreaks: n } = t, r = s, i = s + e - 1, o = [];
|
|
3463
3472
|
if (n) {
|
|
3464
3473
|
const u = [];
|
|
@@ -3478,7 +3487,7 @@ function ze(t, e, s) {
|
|
|
3478
3487
|
}
|
|
3479
3488
|
return o;
|
|
3480
3489
|
}
|
|
3481
|
-
function
|
|
3490
|
+
function Qe(t, e, s) {
|
|
3482
3491
|
const { customBlocks: n } = t, r = s, i = s + e - 1, o = [];
|
|
3483
3492
|
if (n) {
|
|
3484
3493
|
const u = [];
|
|
@@ -3498,7 +3507,7 @@ function Xe(t, e, s) {
|
|
|
3498
3507
|
}
|
|
3499
3508
|
return o;
|
|
3500
3509
|
}
|
|
3501
|
-
function
|
|
3510
|
+
function Je(t, e, s) {
|
|
3502
3511
|
const { tables: n } = t, r = s, i = s + e - 1, o = [];
|
|
3503
3512
|
if (n) {
|
|
3504
3513
|
const u = [];
|
|
@@ -3512,7 +3521,7 @@ function Qe(t, e, s) {
|
|
|
3512
3521
|
});
|
|
3513
3522
|
continue;
|
|
3514
3523
|
} else if (_ <= r && d >= i) {
|
|
3515
|
-
const f =
|
|
3524
|
+
const f = Be(_, d, r, i);
|
|
3516
3525
|
a.startIndex = f[0], a.endIndex = f[1];
|
|
3517
3526
|
} else
|
|
3518
3527
|
i < _ && (a.startIndex -= e, a.endIndex -= e);
|
|
@@ -3536,7 +3545,7 @@ function qe(t, e, s) {
|
|
|
3536
3545
|
});
|
|
3537
3546
|
continue;
|
|
3538
3547
|
} else if (_ <= r && d >= i) {
|
|
3539
|
-
const f =
|
|
3548
|
+
const f = Be(_, d, r, i);
|
|
3540
3549
|
a.startIndex = f[0], a.endIndex = f[1];
|
|
3541
3550
|
} else
|
|
3542
3551
|
i < _ && (a.startIndex -= e, a.endIndex -= e);
|
|
@@ -3547,7 +3556,7 @@ function qe(t, e, s) {
|
|
|
3547
3556
|
return o;
|
|
3548
3557
|
}
|
|
3549
3558
|
function Bn(t, e, s) {
|
|
3550
|
-
const { dataStream: n } = t, r = s, i = s + e, o =
|
|
3559
|
+
const { dataStream: n } = t, r = s, i = s + e, o = Ke(t, e, s), u = ze(t, e, s), l = Xe(t, e, s), c = Qe(t, e, s), a = Je(t, e, s), _ = qe(t, e, s);
|
|
3551
3560
|
let d = "";
|
|
3552
3561
|
return n && (t.dataStream = wn(n, r, i), d = n.slice(r, i)), {
|
|
3553
3562
|
dataStream: d,
|
|
@@ -3560,10 +3569,10 @@ function Bn(t, e, s) {
|
|
|
3560
3569
|
};
|
|
3561
3570
|
}
|
|
3562
3571
|
function Gn(t, e, s, n) {
|
|
3563
|
-
t.dataStream = Sn(t.dataStream, n, e.dataStream),
|
|
3572
|
+
t.dataStream = Sn(t.dataStream, n, e.dataStream), je(t, e, s, n), ie(t, e, s, n), Wn(t, e, s, n), Ye(t, e, s, n), oe(t, e, s, n), pn(t, e, s, n);
|
|
3564
3573
|
}
|
|
3565
|
-
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 || {}), kn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(kn || {}), Ot = /* @__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))(Ot || {}), Q = /* @__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))(Q || {}), Vn = /* @__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))(Vn || {}), jn = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(jn || {}), Yn = /* @__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))(Yn || {}), Kn = /* @__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))(Kn || {}), zn = /* @__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))(zn || {}), Xn = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(Xn || {}), Qn = /* @__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))(Qn || {}),
|
|
3566
|
-
const
|
|
3574
|
+
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 || {}), kn = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(kn || {}), Ot = /* @__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))(Ot || {}), Q = /* @__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))(Q || {}), Vn = /* @__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))(Vn || {}), jn = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(jn || {}), Yn = /* @__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))(Yn || {}), Kn = /* @__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))(Kn || {}), zn = /* @__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))(zn || {}), Xn = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(Xn || {}), Qn = /* @__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))(Qn || {}), Jn = /* @__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))(Jn || {}), qn = /* @__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))(qn || {}), Zn = /* @__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))(Zn || {}), yn = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(yn || {}), tr = /* @__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))(tr || {}), er = /* @__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))(er || {}), sr = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(sr || {}), nr = /* @__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))(nr || {}), rr = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(rr || {}), ir = /* @__PURE__ */ ((t) => (t[t.CHARACTER = 0] = "CHARACTER", t[t.COLUMN = 1] = "COLUMN", t[t.INSIDE_MARGIN = 2] = "INSIDE_MARGIN", t[t.LEFT_MARGIN = 3] = "LEFT_MARGIN", t[t.MARGIN = 4] = "MARGIN", t[t.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", t[t.PAGE = 6] = "PAGE", t[t.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", t))(ir || {}), or = /* @__PURE__ */ ((t) => (t[t.BOTTOM_MARGIN = 0] = "BOTTOM_MARGIN", t[t.INSIDE_MARGIN = 1] = "INSIDE_MARGIN", t[t.LINE = 2] = "LINE", t[t.MARGIN = 3] = "MARGIN", t[t.OUTSIDE_MARGIN = 4] = "OUTSIDE_MARGIN", t[t.PAGE = 5] = "PAGE", t[t.PARAGRAPH = 6] = "PARAGRAPH", t[t.TOP_MARGIN = 7] = "TOP_MARGIN", t))(or || {}), ur = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(ur || {}), lr = /* @__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))(lr || {}), ar = /* @__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))(ar || {}), cr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(cr || {}), hr = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(hr || {}), Yt = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(Yt || {});
|
|
3575
|
+
const go = {
|
|
3567
3576
|
BULLET_LIST: {
|
|
3568
3577
|
listType: "BULLET_LIST",
|
|
3569
3578
|
nestingLevel: [
|
|
@@ -3657,14 +3666,14 @@ function dr(t, e, s, n, r) {
|
|
|
3657
3666
|
const { textRuns: i } = t, { textRuns: o } = e;
|
|
3658
3667
|
if (i == null || o == null)
|
|
3659
3668
|
return;
|
|
3660
|
-
const u =
|
|
3669
|
+
const u = Ke(t, s, n);
|
|
3661
3670
|
if (r !== M.REPLACE) {
|
|
3662
|
-
const l =
|
|
3671
|
+
const l = Ze(o, u, r);
|
|
3663
3672
|
e.textRuns = l;
|
|
3664
3673
|
}
|
|
3665
|
-
return
|
|
3674
|
+
return je(t, e, s, n), u;
|
|
3666
3675
|
}
|
|
3667
|
-
function
|
|
3676
|
+
function Ze(t, e, s) {
|
|
3668
3677
|
if (e.length === 0)
|
|
3669
3678
|
return t;
|
|
3670
3679
|
t = E.deepClone(t), e = E.deepClone(e);
|
|
@@ -3675,8 +3684,8 @@ function Je(t, e, s) {
|
|
|
3675
3684
|
}
|
|
3676
3685
|
for (; o < r && u < i; ) {
|
|
3677
3686
|
const { st: f, ed: g, ts: R } = t[o], { st: w, ed: S, ts: W, sId: G } = e[u];
|
|
3678
|
-
let
|
|
3679
|
-
s === M.COVER ?
|
|
3687
|
+
let st;
|
|
3688
|
+
s === M.COVER ? st = { ...W, ...R } : st = { ...R, ...W }, g < w ? (c() || n.push(t[o]), o++) : S < f ? (c() || n.push(e[u]), u++) : (n.push({
|
|
3680
3689
|
st: Math.min(f, w),
|
|
3681
3690
|
ed: Math.max(f, w),
|
|
3682
3691
|
ts: f < w ? { ...R } : { ...W },
|
|
@@ -3684,7 +3693,7 @@ function Je(t, e, s) {
|
|
|
3684
3693
|
}), n.push({
|
|
3685
3694
|
st: Math.max(f, w),
|
|
3686
3695
|
ed: Math.min(g, S),
|
|
3687
|
-
ts:
|
|
3696
|
+
ts: st,
|
|
3688
3697
|
sId: G
|
|
3689
3698
|
}), g < S ? (o++, e[u].st = g) : (u++, t[o].st = S), l = {
|
|
3690
3699
|
st: Math.min(g, S),
|
|
@@ -3695,13 +3704,13 @@ function Je(t, e, s) {
|
|
|
3695
3704
|
}
|
|
3696
3705
|
c();
|
|
3697
3706
|
const a = n[n.length - 1], _ = t[r - 1], d = e[i - 1];
|
|
3698
|
-
return a.ed !== Math.max(_.ed, d.ed) && (_.ed > d.ed ? n.push(_) : n.push(d)),
|
|
3707
|
+
return a.ed !== Math.max(_.ed, d.ed) && (_.ed > d.ed ? n.push(_) : n.push(d)), Ve(n);
|
|
3699
3708
|
}
|
|
3700
3709
|
function fr(t, e, s, n, r) {
|
|
3701
3710
|
const { paragraphs: i } = t, { paragraphs: o } = e;
|
|
3702
3711
|
if (i == null || o == null)
|
|
3703
3712
|
return;
|
|
3704
|
-
const u =
|
|
3713
|
+
const u = ze(t, s, n);
|
|
3705
3714
|
if (r !== M.REPLACE) {
|
|
3706
3715
|
const l = [];
|
|
3707
3716
|
for (const c of o) {
|
|
@@ -3751,7 +3760,7 @@ function gr(t, e, s, n, r) {
|
|
|
3751
3760
|
const { sectionBreaks: i } = t, { sectionBreaks: o } = e;
|
|
3752
3761
|
if (i == null || o == null)
|
|
3753
3762
|
return;
|
|
3754
|
-
const u =
|
|
3763
|
+
const u = Xe(t, s, n);
|
|
3755
3764
|
if (r !== M.REPLACE) {
|
|
3756
3765
|
const l = [];
|
|
3757
3766
|
for (const c of o) {
|
|
@@ -3780,7 +3789,7 @@ function Er(t, e, s, n, r) {
|
|
|
3780
3789
|
const { customBlocks: i } = t, { customBlocks: o } = e;
|
|
3781
3790
|
if (i == null || o == null)
|
|
3782
3791
|
return;
|
|
3783
|
-
const u =
|
|
3792
|
+
const u = Qe(t, s, n);
|
|
3784
3793
|
if (r !== M.REPLACE) {
|
|
3785
3794
|
const l = [];
|
|
3786
3795
|
for (const c of o) {
|
|
@@ -3803,13 +3812,13 @@ function Er(t, e, s, n, r) {
|
|
|
3803
3812
|
}
|
|
3804
3813
|
e.customBlocks = l;
|
|
3805
3814
|
}
|
|
3806
|
-
return
|
|
3815
|
+
return Ye(t, e, s, n), u;
|
|
3807
3816
|
}
|
|
3808
3817
|
function Rr(t, e, s, n, r) {
|
|
3809
3818
|
const { tables: i } = t, { tables: o } = e;
|
|
3810
3819
|
if (i == null || o == null)
|
|
3811
3820
|
return;
|
|
3812
|
-
const u =
|
|
3821
|
+
const u = Je(t, s, n);
|
|
3813
3822
|
if (r !== M.REPLACE) {
|
|
3814
3823
|
const l = [];
|
|
3815
3824
|
for (const c of o) {
|
|
@@ -3864,7 +3873,7 @@ function mr(t, e, s, n, r) {
|
|
|
3864
3873
|
return oe(t, e, s, n), u;
|
|
3865
3874
|
}
|
|
3866
3875
|
var m = /* @__PURE__ */ ((t) => (t.RETAIN = "r", t.INSERT = "i", t.DELETE = "d", t))(m || {});
|
|
3867
|
-
function
|
|
3876
|
+
function ye(t, e, s) {
|
|
3868
3877
|
const { dataStream: n, textRuns: r = [], paragraphs: i = [] } = t, o = {
|
|
3869
3878
|
dataStream: n.slice(e, s)
|
|
3870
3879
|
}, u = [];
|
|
@@ -3898,12 +3907,12 @@ function Ze(t, e, s) {
|
|
|
3898
3907
|
startIndex: c.startIndex - e
|
|
3899
3908
|
}))), o;
|
|
3900
3909
|
}
|
|
3901
|
-
function
|
|
3910
|
+
function Ie(t, e, s = M.COVER) {
|
|
3902
3911
|
if (e.dataStream !== "")
|
|
3903
3912
|
throw new Error("Cannot compose other body with non-empty dataStream");
|
|
3904
3913
|
const n = {
|
|
3905
3914
|
dataStream: t.dataStream
|
|
3906
|
-
}, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: u = [] } = e, l =
|
|
3915
|
+
}, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: u = [] } = e, l = Ze(o, r, s);
|
|
3907
3916
|
l.length && (n.textRuns = l);
|
|
3908
3917
|
const c = [];
|
|
3909
3918
|
let a = 0, _ = 0;
|
|
@@ -3920,14 +3929,14 @@ function Or(t) {
|
|
|
3920
3929
|
const { textRuns: s = [], paragraphs: n = [] } = e;
|
|
3921
3930
|
return s.length === 0 && n.length === 0;
|
|
3922
3931
|
}
|
|
3923
|
-
const
|
|
3932
|
+
const ts = {
|
|
3924
3933
|
id: "default_doc",
|
|
3925
3934
|
documentStyle: {}
|
|
3926
3935
|
};
|
|
3927
3936
|
class Ar {
|
|
3928
3937
|
constructor(e) {
|
|
3929
3938
|
h(this, "snapshot");
|
|
3930
|
-
this.snapshot = { ...
|
|
3939
|
+
this.snapshot = { ...ts, ...e };
|
|
3931
3940
|
}
|
|
3932
3941
|
get drawings() {
|
|
3933
3942
|
return this.snapshot.drawings;
|
|
@@ -4007,7 +4016,7 @@ class Ar {
|
|
|
4007
4016
|
} : this.snapshot.settings.zoomRatio = 1;
|
|
4008
4017
|
}
|
|
4009
4018
|
}
|
|
4010
|
-
class
|
|
4019
|
+
class et extends Ar {
|
|
4011
4020
|
constructor(s) {
|
|
4012
4021
|
var r;
|
|
4013
4022
|
super(s);
|
|
@@ -4038,7 +4047,7 @@ class ut extends Ar {
|
|
|
4038
4047
|
reset(s) {
|
|
4039
4048
|
if (s.id && s.id !== this._unitId)
|
|
4040
4049
|
throw new Error("Cannot reset a document model with a different unit id!");
|
|
4041
|
-
this.snapshot = { ...
|
|
4050
|
+
this.snapshot = { ...ts, ...s }, this._initializeHeaderFooterModel();
|
|
4042
4051
|
}
|
|
4043
4052
|
getSelfOrHeaderFooterModel(s) {
|
|
4044
4053
|
if (s != null) {
|
|
@@ -4093,7 +4102,7 @@ class ut extends Ar {
|
|
|
4093
4102
|
sliceBody(s, n) {
|
|
4094
4103
|
const r = this.getBody();
|
|
4095
4104
|
if (r != null)
|
|
4096
|
-
return
|
|
4105
|
+
return ye(r, s, n);
|
|
4097
4106
|
}
|
|
4098
4107
|
_updateApply(s, n, r, i = M.COVER, o) {
|
|
4099
4108
|
if (s == null)
|
|
@@ -4122,19 +4131,19 @@ class ut extends Ar {
|
|
|
4122
4131
|
if (s)
|
|
4123
4132
|
for (const r in s) {
|
|
4124
4133
|
const i = s[r];
|
|
4125
|
-
this.headerModelMap.set(r, new
|
|
4134
|
+
this.headerModelMap.set(r, new et(i));
|
|
4126
4135
|
}
|
|
4127
4136
|
if (n)
|
|
4128
4137
|
for (const r in n) {
|
|
4129
4138
|
const i = n[r];
|
|
4130
|
-
this.footerModelMap.set(r, new
|
|
4139
|
+
this.footerModelMap.set(r, new et(i));
|
|
4131
4140
|
}
|
|
4132
4141
|
}
|
|
4133
4142
|
updateDocumentId(s) {
|
|
4134
4143
|
super.updateDocumentId(s), this._unitId = s;
|
|
4135
4144
|
}
|
|
4136
4145
|
}
|
|
4137
|
-
const Ir = "0.1.
|
|
4146
|
+
const Ir = "0.1.2", gt = {
|
|
4138
4147
|
sheetId: "",
|
|
4139
4148
|
range: {
|
|
4140
4149
|
startRow: -1,
|
|
@@ -4142,17 +4151,17 @@ const Ir = "0.1.1", gt = {
|
|
|
4142
4151
|
startColumn: -1,
|
|
4143
4152
|
endColumn: -1
|
|
4144
4153
|
}
|
|
4145
|
-
},
|
|
4154
|
+
}, Eo = {
|
|
4146
4155
|
startRow: -1,
|
|
4147
4156
|
startColumn: -1,
|
|
4148
4157
|
endRow: -1,
|
|
4149
4158
|
endColumn: -1
|
|
4150
|
-
},
|
|
4159
|
+
}, Ro = {
|
|
4151
4160
|
startRow: 0,
|
|
4152
4161
|
startColumn: 0,
|
|
4153
4162
|
endRow: 0,
|
|
4154
4163
|
endColumn: 0
|
|
4155
|
-
},
|
|
4164
|
+
}, mo = {
|
|
4156
4165
|
row: 0,
|
|
4157
4166
|
column: 0
|
|
4158
4167
|
}, Cr = {
|
|
@@ -4237,11 +4246,11 @@ const Ir = "0.1.1", gt = {
|
|
|
4237
4246
|
/**
|
|
4238
4247
|
* verticalAlignment
|
|
4239
4248
|
*/
|
|
4240
|
-
vt:
|
|
4249
|
+
vt: rt.UNSPECIFIED,
|
|
4241
4250
|
/**
|
|
4242
4251
|
* wrapStrategy
|
|
4243
4252
|
*/
|
|
4244
|
-
tb:
|
|
4253
|
+
tb: it.UNSPECIFIED,
|
|
4245
4254
|
/**
|
|
4246
4255
|
* padding
|
|
4247
4256
|
*/
|
|
@@ -4315,10 +4324,10 @@ class wr {
|
|
|
4315
4324
|
return null;
|
|
4316
4325
|
}
|
|
4317
4326
|
}
|
|
4318
|
-
function
|
|
4327
|
+
function Oo(t) {
|
|
4319
4328
|
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);
|
|
4320
4329
|
}
|
|
4321
|
-
function
|
|
4330
|
+
function Ao(t) {
|
|
4322
4331
|
if (t.t !== void 0)
|
|
4323
4332
|
return t.t;
|
|
4324
4333
|
if (typeof t.v == "string")
|
|
@@ -4328,16 +4337,16 @@ function Oo(t) {
|
|
|
4328
4337
|
if (typeof t.v == "boolean")
|
|
4329
4338
|
return mt.BOOLEAN;
|
|
4330
4339
|
}
|
|
4331
|
-
function
|
|
4340
|
+
function Io(t) {
|
|
4332
4341
|
if (t == null)
|
|
4333
4342
|
return !0;
|
|
4334
4343
|
const { v: e, f: s, si: n, p: r, s: i } = t;
|
|
4335
4344
|
return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
|
|
4336
4345
|
}
|
|
4337
|
-
function
|
|
4346
|
+
function Co(t) {
|
|
4338
4347
|
return t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean");
|
|
4339
4348
|
}
|
|
4340
|
-
var
|
|
4349
|
+
var es = /* @__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))(es || {}), Lr = /* @__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))(Lr || {}), br = /* @__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))(br || {});
|
|
4341
4350
|
class vr {
|
|
4342
4351
|
constructor(e, s) {
|
|
4343
4352
|
h(this, "_columnData", {});
|
|
@@ -5071,7 +5080,7 @@ class Dr {
|
|
|
5071
5080
|
return j(this._rowData);
|
|
5072
5081
|
}
|
|
5073
5082
|
}
|
|
5074
|
-
const
|
|
5083
|
+
const No = "DEFAULT_WORKSHEET_ROW_COUNT", Mr = 1e3, So = "DEFAULT_WORKSHEET_COLUMN_COUNT", Ur = 20, wo = "DEFAULT_WORKSHEET_ROW_HEIGHT", Tr = 19, Lo = "DEFAULT_WORKSHEET_COLUMN_WIDTH", Pr = 73, bo = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", xr = 46, vo = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", Hr = 20;
|
|
5075
5084
|
function Fr(t) {
|
|
5076
5085
|
const e = {
|
|
5077
5086
|
name: "Sheet1",
|
|
@@ -5134,22 +5143,22 @@ class Wr extends U {
|
|
|
5134
5143
|
registerCellContentInterceptor(s) {
|
|
5135
5144
|
if (this._cellContentInterceptors.includes(s))
|
|
5136
5145
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5137
|
-
return this._cellContentInterceptors.push(s), N(() =>
|
|
5146
|
+
return this._cellContentInterceptors.push(s), N(() => J(this._cellContentInterceptors, s));
|
|
5138
5147
|
}
|
|
5139
5148
|
registerRowFilteredInterceptor(s) {
|
|
5140
5149
|
if (this._rowFilteredInterceptors.includes(s))
|
|
5141
5150
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5142
|
-
return this._rowFilteredInterceptors.push(s), N(() =>
|
|
5151
|
+
return this._rowFilteredInterceptors.push(s), N(() => J(this._rowFilteredInterceptors, s));
|
|
5143
5152
|
}
|
|
5144
5153
|
registerRowVisibleInterceptor(s) {
|
|
5145
5154
|
if (this._rowVisibleInterceptors.includes(s))
|
|
5146
5155
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5147
|
-
return this._rowVisibleInterceptors.push(s), N(() =>
|
|
5156
|
+
return this._rowVisibleInterceptors.push(s), N(() => J(this._rowVisibleInterceptors, s));
|
|
5148
5157
|
}
|
|
5149
5158
|
registerColVisibleInterceptor(s) {
|
|
5150
5159
|
if (this._colVisibleInterceptors.includes(s))
|
|
5151
5160
|
throw new Error("[SheetViewModel]: Interceptor already registered.");
|
|
5152
|
-
return this._colVisibleInterceptors.push(s), N(() =>
|
|
5161
|
+
return this._colVisibleInterceptors.push(s), N(() => J(this._colVisibleInterceptors, s));
|
|
5153
5162
|
}
|
|
5154
5163
|
}
|
|
5155
5164
|
class wt {
|
|
@@ -5254,7 +5263,7 @@ class wt {
|
|
|
5254
5263
|
const n = this._snapshot.mergeData, r = [];
|
|
5255
5264
|
for (let i = 0; i < n.length; i++) {
|
|
5256
5265
|
const o = n[i];
|
|
5257
|
-
|
|
5266
|
+
ot.intersects(
|
|
5258
5267
|
{
|
|
5259
5268
|
startRow: e,
|
|
5260
5269
|
startColumn: s,
|
|
@@ -5270,7 +5279,7 @@ class wt {
|
|
|
5270
5279
|
const n = this._snapshot.mergeData;
|
|
5271
5280
|
for (let r = 0; r < n.length; r++) {
|
|
5272
5281
|
const i = n[r];
|
|
5273
|
-
if (
|
|
5282
|
+
if (ot.intersects(
|
|
5274
5283
|
{
|
|
5275
5284
|
startRow: e,
|
|
5276
5285
|
startColumn: s,
|
|
@@ -5298,14 +5307,14 @@ class wt {
|
|
|
5298
5307
|
// PERF: we could not skip indexes with merged cells, because we have already known the merged cells' range
|
|
5299
5308
|
getMatrixWithMergedCells(e, s, n, r) {
|
|
5300
5309
|
const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
|
|
5301
|
-
(l) =>
|
|
5310
|
+
(l) => ot.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, l)
|
|
5302
5311
|
), u = new V();
|
|
5303
|
-
return
|
|
5312
|
+
return Ae(e, n, s, r).forEach((l, c) => {
|
|
5304
5313
|
const a = i.getValue(l, c);
|
|
5305
5314
|
a && u.setValue(l, c, a);
|
|
5306
5315
|
}), o.forEach((l) => {
|
|
5307
5316
|
const { startColumn: c, startRow: a, endColumn: _, endRow: d } = l;
|
|
5308
|
-
|
|
5317
|
+
Ae(a, d, c, _).forEach((f, g) => {
|
|
5309
5318
|
f === a && g === c && u.setValue(f, g, {
|
|
5310
5319
|
...i.getValue(f, g),
|
|
5311
5320
|
rowSpan: d - a + 1,
|
|
@@ -5474,6 +5483,59 @@ class wt {
|
|
|
5474
5483
|
return e && (e.v !== void 0 || e.f !== void 0 || e.p !== void 0);
|
|
5475
5484
|
}
|
|
5476
5485
|
// #region iterators
|
|
5486
|
+
// NOTE: performance intensive. Should keep an eye on methods in this region.
|
|
5487
|
+
/**
|
|
5488
|
+
* Iterate a range row by row.
|
|
5489
|
+
*
|
|
5490
|
+
* Performance intensive.
|
|
5491
|
+
*/
|
|
5492
|
+
iterateByRow(e) {
|
|
5493
|
+
const { startRow: s, startColumn: n, endRow: r, endColumn: i } = e, o = this;
|
|
5494
|
+
let u = s, l = n;
|
|
5495
|
+
return {
|
|
5496
|
+
next() {
|
|
5497
|
+
for (; ; ) {
|
|
5498
|
+
if (l > i && (u += 1, l = n), u > r)
|
|
5499
|
+
return { done: !0, value: void 0 };
|
|
5500
|
+
const c = o.getCell(u, l), a = o.getMergedCell(u, l);
|
|
5501
|
+
if (a && (!c || u !== a.startRow || l !== a.startColumn))
|
|
5502
|
+
l = a.endColumn + 1;
|
|
5503
|
+
else if (!c)
|
|
5504
|
+
l += 1;
|
|
5505
|
+
else {
|
|
5506
|
+
const _ = { row: u, col: l, value: c };
|
|
5507
|
+
return a && (_.colSpan = a.endColumn - a.startColumn + 1, _.rowSpan = a.endRow - a.startRow + 1), l += 1, { done: !1, value: _ };
|
|
5508
|
+
}
|
|
5509
|
+
}
|
|
5510
|
+
}
|
|
5511
|
+
};
|
|
5512
|
+
}
|
|
5513
|
+
/**
|
|
5514
|
+
* Iterate a range column by column. This is pretty similar to `iterateByRow` but with different order.
|
|
5515
|
+
*
|
|
5516
|
+
* Performance intensive.
|
|
5517
|
+
*/
|
|
5518
|
+
iterateByColumn(e) {
|
|
5519
|
+
const { startRow: s, startColumn: n, endRow: r, endColumn: i } = e, o = this;
|
|
5520
|
+
let u = s, l = n;
|
|
5521
|
+
return {
|
|
5522
|
+
next() {
|
|
5523
|
+
for (; ; ) {
|
|
5524
|
+
if (u > r && (l += 1, u = s), l > i)
|
|
5525
|
+
return { done: !0, value: void 0 };
|
|
5526
|
+
const c = o.getCell(u, l), a = o.getMergedCell(u, l);
|
|
5527
|
+
if (a && (!c || u !== a.startRow || l !== a.startColumn))
|
|
5528
|
+
u = a.endRow + 1;
|
|
5529
|
+
else if (!c)
|
|
5530
|
+
u += 1;
|
|
5531
|
+
else {
|
|
5532
|
+
const _ = { row: u, col: l, value: c };
|
|
5533
|
+
return a && (_.colSpan = a.endColumn - a.startColumn + 1, _.rowSpan = a.endRow - a.startRow + 1), u += 1, { done: !1, value: _ };
|
|
5534
|
+
}
|
|
5535
|
+
}
|
|
5536
|
+
}
|
|
5537
|
+
};
|
|
5538
|
+
}
|
|
5477
5539
|
// #endregion
|
|
5478
5540
|
}
|
|
5479
5541
|
var pr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, Gr = (t, e, s, n) => {
|
|
@@ -5481,7 +5543,7 @@ var pr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, Gr = (t, e
|
|
|
5481
5543
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
5482
5544
|
return n && r && pr(e, s, r), r;
|
|
5483
5545
|
}, $r = (t, e) => (s, n) => e(s, n, t);
|
|
5484
|
-
function
|
|
5546
|
+
function Do(t, e) {
|
|
5485
5547
|
return `${t.getUnitId()}|${e.getSheetId()}`;
|
|
5486
5548
|
}
|
|
5487
5549
|
let Lt = class extends U {
|
|
@@ -5791,7 +5853,7 @@ let Lt = class extends U {
|
|
|
5791
5853
|
Lt = Gr([
|
|
5792
5854
|
$r(1, y)
|
|
5793
5855
|
], Lt);
|
|
5794
|
-
class
|
|
5856
|
+
class ss {
|
|
5795
5857
|
constructor(e) {
|
|
5796
5858
|
h(this, "_snapshot");
|
|
5797
5859
|
h(this, "_unitId");
|
|
@@ -5830,7 +5892,7 @@ class es {
|
|
|
5830
5892
|
addPage() {
|
|
5831
5893
|
return {
|
|
5832
5894
|
id: "cover_1",
|
|
5833
|
-
pageType:
|
|
5895
|
+
pageType: es.SLIDE,
|
|
5834
5896
|
zIndex: 1,
|
|
5835
5897
|
title: "cover",
|
|
5836
5898
|
description: "this is first page, cover",
|
|
@@ -5841,7 +5903,7 @@ class es {
|
|
|
5841
5903
|
};
|
|
5842
5904
|
}
|
|
5843
5905
|
}
|
|
5844
|
-
const Kt = "FOCUSING_SHEET",
|
|
5906
|
+
const Kt = "FOCUSING_SHEET", Ce = "FOCUSING_DOC", Ne = "FOCUSING_SLIDE", Mo = "FOCUSING_EDITOR_BUT_HIDDEN", kr = "EDITOR_ACTIVATED", Uo = "FOCUSING_EDITOR_INPUT_FORMULA", Vr = "FOCUSING_FORMULA_EDITOR", To = "FOCUSING_UNIVER_EDITOR", Po = "FOCUSING_UNIVER_EDITOR_SINGLE_MODE";
|
|
5845
5907
|
var jr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, Kr = (t, e, s, n) => {
|
|
5846
5908
|
for (var r = n > 1 ? void 0 : n ? Yr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5847
5909
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
@@ -5952,7 +6014,7 @@ let zt = class extends U {
|
|
|
5952
6014
|
return e;
|
|
5953
6015
|
}
|
|
5954
6016
|
focusUniverInstance(e) {
|
|
5955
|
-
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [
|
|
6017
|
+
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [Ce, Kt, Ne].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Lt ? this._contextService.setContextValue(Kt, !0) : this._focused instanceof et ? this._contextService.setContextValue(Ce, !0) : this._focused instanceof ss && this._contextService.setContextValue(Ne, !0);
|
|
5956
6018
|
}
|
|
5957
6019
|
getFocusedUniverInstance() {
|
|
5958
6020
|
return this._focused;
|
|
@@ -5986,7 +6048,7 @@ let zt = class extends U {
|
|
|
5986
6048
|
}
|
|
5987
6049
|
};
|
|
5988
6050
|
zt = Kr([
|
|
5989
|
-
zr(1,
|
|
6051
|
+
zr(1, ut)
|
|
5990
6052
|
], zt);
|
|
5991
6053
|
var C = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(C || {});
|
|
5992
6054
|
const Qr = {
|
|
@@ -5995,18 +6057,18 @@ const Qr = {
|
|
|
5995
6057
|
2: "Rendered",
|
|
5996
6058
|
3: "Steady"
|
|
5997
6059
|
}, At = /* @__PURE__ */ new Map();
|
|
5998
|
-
function
|
|
6060
|
+
function ns(t, e) {
|
|
5999
6061
|
return function(r) {
|
|
6000
|
-
|
|
6062
|
+
rs(t, e);
|
|
6001
6063
|
};
|
|
6002
6064
|
}
|
|
6003
|
-
function
|
|
6065
|
+
function rs(t, e) {
|
|
6004
6066
|
At.has(t) || At.set(t, []), At.get(t).push(e);
|
|
6005
6067
|
}
|
|
6006
|
-
var
|
|
6007
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6068
|
+
var Jr = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, is = (t, e, s, n) => {
|
|
6069
|
+
for (var r = n > 1 ? void 0 : n ? qr(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6008
6070
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6009
|
-
return n && r &&
|
|
6071
|
+
return n && r && Jr(e, s, r), r;
|
|
6010
6072
|
}, Xt = (t, e) => (s, n) => e(s, n, t);
|
|
6011
6073
|
let B = class extends U {
|
|
6012
6074
|
constructor(e) {
|
|
@@ -6032,13 +6094,13 @@ let B = class extends U {
|
|
|
6032
6094
|
* @returns
|
|
6033
6095
|
*/
|
|
6034
6096
|
subscribeWithPrevious() {
|
|
6035
|
-
return new
|
|
6097
|
+
return new Me((e) => (this.stage === C.Starting || (this.stage === C.Ready ? e.next(C.Starting) : this.stage === C.Rendered ? (e.next(C.Starting), e.next(C.Ready)) : (e.next(C.Starting), e.next(C.Ready), e.next(C.Rendered))), this._lifecycle$.subscribe(e)));
|
|
6036
6098
|
}
|
|
6037
6099
|
_reportProgress(e) {
|
|
6038
6100
|
this._logService.debug("[LifecycleService]", `lifecycle progressed to "${Qr[e]}".`);
|
|
6039
6101
|
}
|
|
6040
6102
|
};
|
|
6041
|
-
B =
|
|
6103
|
+
B = is([
|
|
6042
6104
|
Xt(0, y)
|
|
6043
6105
|
], B);
|
|
6044
6106
|
let X = class extends U {
|
|
@@ -6061,9 +6123,9 @@ let X = class extends U {
|
|
|
6061
6123
|
});
|
|
6062
6124
|
}
|
|
6063
6125
|
};
|
|
6064
|
-
X =
|
|
6126
|
+
X = is([
|
|
6065
6127
|
Xt(0, D(B)),
|
|
6066
|
-
Xt(1, D(
|
|
6128
|
+
Xt(1, D(q))
|
|
6067
6129
|
], X);
|
|
6068
6130
|
class Rt extends U {
|
|
6069
6131
|
constructor() {
|
|
@@ -6134,14 +6196,14 @@ class Rt extends U {
|
|
|
6134
6196
|
return (s = this._locales) == null ? void 0 : s[this._currentLocale];
|
|
6135
6197
|
}
|
|
6136
6198
|
}
|
|
6137
|
-
const
|
|
6138
|
-
|
|
6199
|
+
const os = F("resource-manager-service"), Zr = F("ResourcePersistenceService");
|
|
6200
|
+
rs(C.Ready, Zr);
|
|
6139
6201
|
var yr = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ei = (t, e, s, n) => {
|
|
6140
6202
|
for (var r = n > 1 ? void 0 : n ? ti(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6141
6203
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6142
6204
|
return n && r && yr(e, s, r), r;
|
|
6143
|
-
},
|
|
6144
|
-
const
|
|
6205
|
+
}, Se = (t, e) => (s, n) => e(s, n, t);
|
|
6206
|
+
const us = F("univer.permission-service"), we = "PERMISSION";
|
|
6145
6207
|
let It = class extends U {
|
|
6146
6208
|
constructor(e, s) {
|
|
6147
6209
|
super();
|
|
@@ -6164,7 +6226,7 @@ let It = class extends U {
|
|
|
6164
6226
|
const i = r.get(s);
|
|
6165
6227
|
if (i) {
|
|
6166
6228
|
const o = i.getValue();
|
|
6167
|
-
o.value = n, o.status =
|
|
6229
|
+
o.value = n, o.status = Ge.DONE, i.next(o);
|
|
6168
6230
|
}
|
|
6169
6231
|
});
|
|
6170
6232
|
h(this, "getPermissionPoint", (e, s) => {
|
|
@@ -6181,7 +6243,7 @@ let It = class extends U {
|
|
|
6181
6243
|
this.disposeWithMe(
|
|
6182
6244
|
N(
|
|
6183
6245
|
this._univerInstanceService.sheetAdded$.subscribe((e) => {
|
|
6184
|
-
this._resourceManagerService.registerPluginResource(e.getUnitId(),
|
|
6246
|
+
this._resourceManagerService.registerPluginResource(e.getUnitId(), we, {
|
|
6185
6247
|
onChange: (s, n) => {
|
|
6186
6248
|
n.forEach((r) => {
|
|
6187
6249
|
this.getPermissionPoint(s, r.id) ? this.updatePermissionPoint(s, r.id, r.value) : this.addPermissionPoint(s, r);
|
|
@@ -6195,7 +6257,7 @@ let It = class extends U {
|
|
|
6195
6257
|
), this.disposeWithMe(
|
|
6196
6258
|
N(
|
|
6197
6259
|
this._univerInstanceService.sheetDisposed$.subscribe((e) => {
|
|
6198
|
-
this._resourceManagerService.disposePluginResource(e.getUnitId(),
|
|
6260
|
+
this._resourceManagerService.disposePluginResource(e.getUnitId(), we);
|
|
6199
6261
|
})
|
|
6200
6262
|
)
|
|
6201
6263
|
);
|
|
@@ -6234,9 +6296,9 @@ let It = class extends U {
|
|
|
6234
6296
|
}
|
|
6235
6297
|
};
|
|
6236
6298
|
It = ei([
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6299
|
+
ns(C.Starting, It),
|
|
6300
|
+
Se(0, D(os)),
|
|
6301
|
+
Se(1, D(at))
|
|
6240
6302
|
], It);
|
|
6241
6303
|
const si = "univer.editable";
|
|
6242
6304
|
class xt extends Tn {
|
|
@@ -6252,7 +6314,7 @@ var ni = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, ii = (t, e
|
|
|
6252
6314
|
for (var r = n > 1 ? void 0 : n ? ri(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6253
6315
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6254
6316
|
return n && r && ni(e, s, r), r;
|
|
6255
|
-
},
|
|
6317
|
+
}, Le = (t, e) => (s, n) => e(s, n, t);
|
|
6256
6318
|
let Ct = class extends U {
|
|
6257
6319
|
constructor(t, e) {
|
|
6258
6320
|
super(), this._permissionService = t, this._univerInstanceService = e, this._init();
|
|
@@ -6275,9 +6337,9 @@ let Ct = class extends U {
|
|
|
6275
6337
|
}
|
|
6276
6338
|
};
|
|
6277
6339
|
Ct = ii([
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6340
|
+
ns(C.Starting, Ct),
|
|
6341
|
+
Le(0, D(us)),
|
|
6342
|
+
Le(1, D(at))
|
|
6281
6343
|
], Ct);
|
|
6282
6344
|
class oi extends U {
|
|
6283
6345
|
constructor() {
|
|
@@ -6319,7 +6381,7 @@ class oi extends U {
|
|
|
6319
6381
|
this._register$.complete(), this._resourceMap.clear();
|
|
6320
6382
|
}
|
|
6321
6383
|
}
|
|
6322
|
-
class
|
|
6384
|
+
class be extends U {
|
|
6323
6385
|
constructor() {
|
|
6324
6386
|
super();
|
|
6325
6387
|
h(this, "_currentTheme");
|
|
@@ -6336,7 +6398,7 @@ class Le extends U {
|
|
|
6336
6398
|
this._currentTheme = s, this._currentTheme$.next(s);
|
|
6337
6399
|
}
|
|
6338
6400
|
}
|
|
6339
|
-
const ui = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", li = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__",
|
|
6401
|
+
const ui = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", li = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", xo = `\r
|
|
6340
6402
|
`;
|
|
6341
6403
|
var ai = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, hi = (t, e, s, n) => {
|
|
6342
6404
|
for (var r = n > 1 ? void 0 : n ? ci(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
@@ -6344,14 +6406,14 @@ var ai = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, hi = (t, e
|
|
|
6344
6406
|
return n && r && ai(e, s, r), r;
|
|
6345
6407
|
}, Ht = (t, e) => (s, n) => e(s, n, t);
|
|
6346
6408
|
const ue = F("univer.undo-redo.service"), _i = 20;
|
|
6347
|
-
class
|
|
6409
|
+
class ls {
|
|
6348
6410
|
dispose() {
|
|
6349
6411
|
}
|
|
6350
6412
|
async dispatchToHandlers() {
|
|
6351
6413
|
return !1;
|
|
6352
6414
|
}
|
|
6353
6415
|
}
|
|
6354
|
-
const di = "univer.command.redo", fi = "univer.command.undo", gi = new class extends
|
|
6416
|
+
const di = "univer.command.redo", fi = "univer.command.undo", gi = new class extends ls {
|
|
6355
6417
|
constructor() {
|
|
6356
6418
|
super(...arguments);
|
|
6357
6419
|
h(this, "type", ee.COMMAND);
|
|
@@ -6362,9 +6424,9 @@ const di = "univer.command.redo", fi = "univer.command.undo", gi = new class ext
|
|
|
6362
6424
|
if (!n)
|
|
6363
6425
|
return !1;
|
|
6364
6426
|
const r = e.get(bt);
|
|
6365
|
-
return (n.undo ? await n.undo(n.undoMutations) :
|
|
6427
|
+
return (n.undo ? await n.undo(n.undoMutations) : Fe(n.undoMutations, r)) ? (s.popUndoToRedo(), !0) : !1;
|
|
6366
6428
|
}
|
|
6367
|
-
}(), Ei = new class extends
|
|
6429
|
+
}(), Ei = new class extends ls {
|
|
6368
6430
|
constructor() {
|
|
6369
6431
|
super(...arguments);
|
|
6370
6432
|
h(this, "type", ee.COMMAND);
|
|
@@ -6375,7 +6437,7 @@ const di = "univer.command.redo", fi = "univer.command.undo", gi = new class ext
|
|
|
6375
6437
|
if (!n)
|
|
6376
6438
|
return !1;
|
|
6377
6439
|
const r = e.get(bt);
|
|
6378
|
-
return (n.redo ? await n.redo(n.redoMutations) :
|
|
6440
|
+
return (n.redo ? await n.redo(n.redoMutations) : Fe(n.redoMutations, r)) ? (s.popRedoToUndo(), !0) : !1;
|
|
6379
6441
|
}
|
|
6380
6442
|
}();
|
|
6381
6443
|
let Qt = class extends U {
|
|
@@ -6451,7 +6513,7 @@ let Qt = class extends U {
|
|
|
6451
6513
|
Qt = hi([
|
|
6452
6514
|
Ht(0, at),
|
|
6453
6515
|
Ht(1, bt),
|
|
6454
|
-
Ht(2,
|
|
6516
|
+
Ht(2, ut)
|
|
6455
6517
|
], Qt);
|
|
6456
6518
|
class vt extends U {
|
|
6457
6519
|
constructor() {
|
|
@@ -6503,25 +6565,25 @@ var Ri = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, Oi = (t, e
|
|
|
6503
6565
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6504
6566
|
return n && r && Ri(e, s, r), r;
|
|
6505
6567
|
}, Ft = (t, e) => (s, n) => e(s, n, t);
|
|
6506
|
-
let
|
|
6568
|
+
let Jt = class extends vt {
|
|
6507
6569
|
constructor(t, e, s) {
|
|
6508
6570
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6509
6571
|
}
|
|
6510
6572
|
createDoc(t) {
|
|
6511
|
-
return this._injector.createInstance(
|
|
6573
|
+
return this._injector.createInstance(et, t);
|
|
6512
6574
|
}
|
|
6513
6575
|
};
|
|
6514
|
-
|
|
6515
|
-
Ft(0, D(
|
|
6576
|
+
Jt = Oi([
|
|
6577
|
+
Ft(0, D(q)),
|
|
6516
6578
|
Ft(1, D(B)),
|
|
6517
6579
|
Ft(2, D(X))
|
|
6518
|
-
],
|
|
6580
|
+
], Jt);
|
|
6519
6581
|
var Ai = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ci = (t, e, s, n) => {
|
|
6520
6582
|
for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6521
6583
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6522
6584
|
return n && r && Ai(e, s, r), r;
|
|
6523
6585
|
}, Wt = (t, e) => (s, n) => e(s, n, t);
|
|
6524
|
-
let
|
|
6586
|
+
let qt = class extends vt {
|
|
6525
6587
|
constructor(t, e, s) {
|
|
6526
6588
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6527
6589
|
}
|
|
@@ -6529,11 +6591,11 @@ let Jt = class extends vt {
|
|
|
6529
6591
|
return this._injector.createInstance(Lt, t);
|
|
6530
6592
|
}
|
|
6531
6593
|
};
|
|
6532
|
-
|
|
6533
|
-
Wt(0, D(
|
|
6594
|
+
qt = Ci([
|
|
6595
|
+
Wt(0, D(q)),
|
|
6534
6596
|
Wt(1, D(B)),
|
|
6535
6597
|
Wt(2, D(X))
|
|
6536
|
-
],
|
|
6598
|
+
], qt);
|
|
6537
6599
|
var Ni = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, wi = (t, e, s, n) => {
|
|
6538
6600
|
for (var r = n > 1 ? void 0 : n ? Si(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6539
6601
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
@@ -6544,16 +6606,16 @@ let Zt = class extends vt {
|
|
|
6544
6606
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6545
6607
|
}
|
|
6546
6608
|
createSlide(t) {
|
|
6547
|
-
return this._injector.createInstance(
|
|
6609
|
+
return this._injector.createInstance(ss, t);
|
|
6548
6610
|
}
|
|
6549
6611
|
};
|
|
6550
6612
|
Zt = wi([
|
|
6551
|
-
pt(0, D(
|
|
6613
|
+
pt(0, D(q)),
|
|
6552
6614
|
pt(1, D(B)),
|
|
6553
6615
|
pt(2, D(X))
|
|
6554
6616
|
], Zt);
|
|
6555
6617
|
const Li = 200;
|
|
6556
|
-
class
|
|
6618
|
+
class Ho extends vt {
|
|
6557
6619
|
constructor(s = {}) {
|
|
6558
6620
|
super();
|
|
6559
6621
|
h(this, "_injector");
|
|
@@ -6565,7 +6627,7 @@ class Po extends vt {
|
|
|
6565
6627
|
h(this, "_initLazyPluginsTimer");
|
|
6566
6628
|
this._injector = this._initDependencies();
|
|
6567
6629
|
const { theme: n, locale: r, locales: i, logLevel: o } = s;
|
|
6568
|
-
n && this._injector.get(
|
|
6630
|
+
n && this._injector.get(be).setTheme(n), i && this._injector.get(Rt).load(i), r && this._injector.get(Rt).setLocale(r), o && this._injector.get(y).setLogLevel(o);
|
|
6569
6631
|
}
|
|
6570
6632
|
get _univerInstanceService() {
|
|
6571
6633
|
return this._injector.get(at);
|
|
@@ -6597,7 +6659,7 @@ class Po extends vt {
|
|
|
6597
6659
|
r();
|
|
6598
6660
|
else {
|
|
6599
6661
|
this._tryProgressToStart();
|
|
6600
|
-
const i = this._univerSheet = this._injector.createInstance(
|
|
6662
|
+
const i = this._univerSheet = this._injector.createInstance(qt), o = this._univerPluginRegistry.getRegisterPlugins(L.Sheet).map((u) => [u.plugin, u.options]);
|
|
6601
6663
|
this._univerPluginRegistry.clearPluginsOfType(L.Sheet), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6602
6664
|
}
|
|
6603
6665
|
return n;
|
|
@@ -6611,7 +6673,7 @@ class Po extends vt {
|
|
|
6611
6673
|
r();
|
|
6612
6674
|
else {
|
|
6613
6675
|
this._tryProgressToStart();
|
|
6614
|
-
const i = this._univerDoc = this._injector.createInstance(
|
|
6676
|
+
const i = this._univerDoc = this._injector.createInstance(Jt), o = this._univerPluginRegistry.getRegisterPlugins(L.Doc).map((u) => [u.plugin, u.options]);
|
|
6615
6677
|
this._univerPluginRegistry.clearPluginsOfType(L.Doc), i.addPlugins(o), r(), this._tryProgressToReady();
|
|
6616
6678
|
}
|
|
6617
6679
|
return n;
|
|
@@ -6631,7 +6693,7 @@ class Po extends vt {
|
|
|
6631
6693
|
return n;
|
|
6632
6694
|
}
|
|
6633
6695
|
_initDependencies() {
|
|
6634
|
-
return new
|
|
6696
|
+
return new q([
|
|
6635
6697
|
[
|
|
6636
6698
|
at,
|
|
6637
6699
|
{
|
|
@@ -6643,23 +6705,23 @@ class Po extends vt {
|
|
|
6643
6705
|
},
|
|
6644
6706
|
s
|
|
6645
6707
|
),
|
|
6646
|
-
deps: [
|
|
6708
|
+
deps: [ut]
|
|
6647
6709
|
}
|
|
6648
6710
|
],
|
|
6649
6711
|
[Ws],
|
|
6650
6712
|
[Rt],
|
|
6651
|
-
[
|
|
6713
|
+
[be],
|
|
6652
6714
|
[B],
|
|
6653
6715
|
[X],
|
|
6654
|
-
[
|
|
6716
|
+
[us, { useClass: It }],
|
|
6655
6717
|
[Ct],
|
|
6656
6718
|
[y, { useClass: vs, lazy: !0 }],
|
|
6657
6719
|
[bt, { useClass: Bt, lazy: !0 }],
|
|
6658
6720
|
[ue, { useClass: Qt, lazy: !0 }],
|
|
6659
6721
|
[Hs, { useClass: Fs }],
|
|
6660
|
-
[
|
|
6722
|
+
[ut, { useClass: Ls }],
|
|
6661
6723
|
[Bs, { useClass: ps, lazy: !0 }],
|
|
6662
|
-
[
|
|
6724
|
+
[os, { useClass: oi, lazy: !0 }]
|
|
6663
6725
|
]);
|
|
6664
6726
|
}
|
|
6665
6727
|
/**
|
|
@@ -6733,7 +6795,7 @@ class Po extends vt {
|
|
|
6733
6795
|
}
|
|
6734
6796
|
// #endregion
|
|
6735
6797
|
}
|
|
6736
|
-
function
|
|
6798
|
+
function Fo(t, e = 16) {
|
|
6737
6799
|
let s = 0, n = null;
|
|
6738
6800
|
return function(...i) {
|
|
6739
6801
|
const o = Date.now();
|
|
@@ -6742,7 +6804,7 @@ function xo(t, e = 16) {
|
|
|
6742
6804
|
}, e)) : (s = o, t.apply(this, i));
|
|
6743
6805
|
};
|
|
6744
6806
|
}
|
|
6745
|
-
function
|
|
6807
|
+
function Wo(t) {
|
|
6746
6808
|
const e = new MessageChannel();
|
|
6747
6809
|
let s = !1;
|
|
6748
6810
|
return e.port1.onmessage = () => {
|
|
@@ -6751,7 +6813,7 @@ function Ho(t) {
|
|
|
6751
6813
|
s = !0;
|
|
6752
6814
|
};
|
|
6753
6815
|
}
|
|
6754
|
-
class
|
|
6816
|
+
class ve {
|
|
6755
6817
|
constructor(e) {
|
|
6756
6818
|
h(this, "_index", 0);
|
|
6757
6819
|
h(this, "_offset", 0);
|
|
@@ -6771,7 +6833,7 @@ class be {
|
|
|
6771
6833
|
}) : E.deepClone({
|
|
6772
6834
|
...s,
|
|
6773
6835
|
len: e,
|
|
6774
|
-
body:
|
|
6836
|
+
body: ye(s.body, n, n + e)
|
|
6775
6837
|
});
|
|
6776
6838
|
} else
|
|
6777
6839
|
return {
|
|
@@ -6801,15 +6863,15 @@ class be {
|
|
|
6801
6863
|
return [];
|
|
6802
6864
|
}
|
|
6803
6865
|
}
|
|
6804
|
-
function
|
|
6866
|
+
function De(t) {
|
|
6805
6867
|
return Object.keys(t).length === 1;
|
|
6806
6868
|
}
|
|
6807
|
-
class
|
|
6869
|
+
class le {
|
|
6808
6870
|
constructor() {
|
|
6809
6871
|
h(this, "_actions", []);
|
|
6810
6872
|
}
|
|
6811
6873
|
static compose(e, s) {
|
|
6812
|
-
const n = new
|
|
6874
|
+
const n = new ve(e), r = new ve(s), i = new le();
|
|
6813
6875
|
for (; n.hasNext() || r.hasNext(); )
|
|
6814
6876
|
if (r.peekType() === m.INSERT)
|
|
6815
6877
|
i.push(r.next());
|
|
@@ -6819,15 +6881,15 @@ class ls {
|
|
|
6819
6881
|
const o = Math.min(n.peekLength(), r.peekLength()), u = n.next(o), l = r.next(o);
|
|
6820
6882
|
u.t === m.INSERT && l.t === m.RETAIN ? l.body == null ? i.push(u) : i.push({
|
|
6821
6883
|
...u,
|
|
6822
|
-
body:
|
|
6884
|
+
body: Ie(u.body, l.body, l.coverType)
|
|
6823
6885
|
}) : u.t === m.RETAIN && l.t === m.RETAIN ? u.body == null && l.body == null ? i.push(u.len !== Number.POSITIVE_INFINITY ? u : l) : u.body && l.body ? i.push({
|
|
6824
6886
|
...u,
|
|
6825
|
-
body:
|
|
6887
|
+
body: Ie(u.body, l.body, l.coverType)
|
|
6826
6888
|
}) : i.push(u.body ? u : l) : u.t === m.RETAIN && l.t === m.DELETE ? i.push(l) : u.t === m.INSERT && (l.t, m.DELETE);
|
|
6827
6889
|
}
|
|
6828
6890
|
return i.trimEndUselessRetainAction(), i.serialize();
|
|
6829
6891
|
}
|
|
6830
|
-
insert(e, s, n) {
|
|
6892
|
+
insert(e, s, n = "") {
|
|
6831
6893
|
const r = {
|
|
6832
6894
|
t: m.INSERT,
|
|
6833
6895
|
body: s,
|
|
@@ -6838,7 +6900,7 @@ class ls {
|
|
|
6838
6900
|
};
|
|
6839
6901
|
return this.push(r), this;
|
|
6840
6902
|
}
|
|
6841
|
-
retain(e, s, n, r) {
|
|
6903
|
+
retain(e, s = "", n, r) {
|
|
6842
6904
|
const i = {
|
|
6843
6905
|
t: m.RETAIN,
|
|
6844
6906
|
len: e,
|
|
@@ -6846,7 +6908,7 @@ class ls {
|
|
|
6846
6908
|
};
|
|
6847
6909
|
return n != null && (i.body = n), r != null && (i.coverType = r), this.push(i), this;
|
|
6848
6910
|
}
|
|
6849
|
-
delete(e, s) {
|
|
6911
|
+
delete(e, s = "") {
|
|
6850
6912
|
const n = {
|
|
6851
6913
|
t: m.DELETE,
|
|
6852
6914
|
len: e,
|
|
@@ -6876,7 +6938,7 @@ class ls {
|
|
|
6876
6938
|
return this._actions.unshift(r), this;
|
|
6877
6939
|
if (n.t === m.RETAIN && r.t === m.RETAIN && n.body == null && r.body == null)
|
|
6878
6940
|
return n.len += r.len, this;
|
|
6879
|
-
if (n.t === m.INSERT &&
|
|
6941
|
+
if (n.t === m.INSERT && De(n.body) && r.t === m.INSERT && De(r.body))
|
|
6880
6942
|
return n.len += r.len, n.body.dataStream += r.body.dataStream, this;
|
|
6881
6943
|
}
|
|
6882
6944
|
return s === this._actions.length ? this._actions.push(r) : this._actions.splice(s, 0, r), this;
|
|
@@ -6888,7 +6950,35 @@ class ls {
|
|
|
6888
6950
|
return this;
|
|
6889
6951
|
}
|
|
6890
6952
|
}
|
|
6891
|
-
|
|
6953
|
+
function po(t, e, s) {
|
|
6954
|
+
if (e === "")
|
|
6955
|
+
return t;
|
|
6956
|
+
const n = {
|
|
6957
|
+
id: "mock-id",
|
|
6958
|
+
body: t,
|
|
6959
|
+
documentStyle: {}
|
|
6960
|
+
}, r = new et(n), i = e.length;
|
|
6961
|
+
let o;
|
|
6962
|
+
for (; (o = r.getBody().dataStream.indexOf(e)) >= 0; ) {
|
|
6963
|
+
const l = new le();
|
|
6964
|
+
if (o > 0 && l.retain(o), s.length > 0) {
|
|
6965
|
+
const a = r.sliceBody(o, o + i), _ = {
|
|
6966
|
+
dataStream: s
|
|
6967
|
+
};
|
|
6968
|
+
Array.isArray(a == null ? void 0 : a.textRuns) && a.textRuns.length && (_.textRuns = [{
|
|
6969
|
+
...a.textRuns[0],
|
|
6970
|
+
st: 0,
|
|
6971
|
+
ed: s.length
|
|
6972
|
+
}]), l.insert(s.length, _);
|
|
6973
|
+
}
|
|
6974
|
+
l.delete(i);
|
|
6975
|
+
const c = l.serialize();
|
|
6976
|
+
r.apply(c);
|
|
6977
|
+
}
|
|
6978
|
+
const u = r.getBody();
|
|
6979
|
+
return r.dispose(), u;
|
|
6980
|
+
}
|
|
6981
|
+
class Bo extends te {
|
|
6892
6982
|
/**
|
|
6893
6983
|
* Create a new WorkBookObserver with the specified callback
|
|
6894
6984
|
* @param callback the callback that will be executed for that WorkBookObserver
|
|
@@ -6907,7 +6997,7 @@ class Fo extends te {
|
|
|
6907
6997
|
makeObserverBottomPriority() {
|
|
6908
6998
|
}
|
|
6909
6999
|
}
|
|
6910
|
-
const
|
|
7000
|
+
const Go = F("ILocalStorageService"), $o = (t) => `sheet_interceptor_${t}`, bi = (t) => function(e, s) {
|
|
6911
7001
|
let n = -1;
|
|
6912
7002
|
function r(i, o) {
|
|
6913
7003
|
if (i <= n)
|
|
@@ -6916,7 +7006,7 @@ const Wo = F("ILocalStorageService"), po = (t) => `sheet_interceptor_${t}`, bi =
|
|
|
6916
7006
|
}
|
|
6917
7007
|
return r(0, e);
|
|
6918
7008
|
};
|
|
6919
|
-
class
|
|
7009
|
+
class ko {
|
|
6920
7010
|
constructor(e) {
|
|
6921
7011
|
h(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
6922
7012
|
h(this, "_interceptorPoints");
|
|
@@ -6937,7 +7027,7 @@ class Bo {
|
|
|
6937
7027
|
return ((u = o.priority) != null ? u : 0) - ((l = i.priority) != null ? l : 0);
|
|
6938
7028
|
})
|
|
6939
7029
|
// from large to small
|
|
6940
|
-
), () =>
|
|
7030
|
+
), () => J(this._interceptorsByName.get(n), s);
|
|
6941
7031
|
}
|
|
6942
7032
|
getInterceptPoints() {
|
|
6943
7033
|
return this._interceptorPoints;
|
|
@@ -6947,7 +7037,7 @@ gs();
|
|
|
6947
7037
|
export {
|
|
6948
7038
|
lo as ABCToNumber,
|
|
6949
7039
|
Pn as AbsoluteRefType,
|
|
6950
|
-
|
|
7040
|
+
ve as ActionIterator,
|
|
6951
7041
|
lr as AlignTypeH,
|
|
6952
7042
|
ar as AlignTypeV,
|
|
6953
7043
|
Vs as AutoFillSeries,
|
|
@@ -6957,7 +7047,7 @@ export {
|
|
|
6957
7047
|
I as BorderStyleTypes,
|
|
6958
7048
|
js as BorderType,
|
|
6959
7049
|
Q as BulletAlignment,
|
|
6960
|
-
|
|
7050
|
+
ge as COLORS,
|
|
6961
7051
|
mt as CellValueType,
|
|
6962
7052
|
tt as Color,
|
|
6963
7053
|
re as ColorBuilder,
|
|
@@ -6968,84 +7058,87 @@ export {
|
|
|
6968
7058
|
ee as CommandType,
|
|
6969
7059
|
Ys as CommonHideTypes,
|
|
6970
7060
|
Ks as ConditionType,
|
|
7061
|
+
Fs as ConfigService,
|
|
6971
7062
|
nr as ContentAlignment,
|
|
6972
7063
|
Ls as ContextService,
|
|
6973
7064
|
zs as CopyPasteType,
|
|
6974
7065
|
Vn as CustomRangeType,
|
|
6975
|
-
|
|
6976
|
-
|
|
7066
|
+
mo as DEFAULT_CELL,
|
|
7067
|
+
ts as DEFAULT_DOC,
|
|
6977
7068
|
pi as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
6978
|
-
|
|
6979
|
-
|
|
7069
|
+
xo as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
7070
|
+
Eo as DEFAULT_RANGE,
|
|
6980
7071
|
gt as DEFAULT_RANGE_ARRAY,
|
|
6981
|
-
|
|
7072
|
+
Ro as DEFAULT_SELECTION,
|
|
6982
7073
|
Nr as DEFAULT_SLIDE,
|
|
6983
7074
|
Pt as DEFAULT_STYLES,
|
|
6984
7075
|
Cr as DEFAULT_WORKBOOK,
|
|
6985
7076
|
Ur as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
6986
|
-
|
|
7077
|
+
So as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
|
|
6987
7078
|
Hr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
6988
|
-
|
|
7079
|
+
vo as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
|
|
6989
7080
|
Pr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
6990
|
-
|
|
7081
|
+
Lo as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
|
|
6991
7082
|
Mr as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
6992
|
-
|
|
7083
|
+
No as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
|
|
6993
7084
|
Tr as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
6994
|
-
|
|
7085
|
+
wo as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
|
|
6995
7086
|
xr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
6996
|
-
|
|
7087
|
+
bo as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
|
|
6997
7088
|
li as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
6998
7089
|
ui as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
6999
7090
|
tr as DashStyleType,
|
|
7000
7091
|
Fn as DataStreamTreeNodeType,
|
|
7001
|
-
|
|
7092
|
+
ke as DataStreamTreeTokenType,
|
|
7002
7093
|
vs as DesktopLogService,
|
|
7003
7094
|
Xs as DeveloperMetadataVisibility,
|
|
7004
7095
|
Qs as Dimension,
|
|
7005
|
-
|
|
7096
|
+
Js as Direction,
|
|
7006
7097
|
U as Disposable,
|
|
7007
|
-
|
|
7098
|
+
He as DisposableCollection,
|
|
7008
7099
|
$n as DocStyleType,
|
|
7009
|
-
|
|
7100
|
+
et as DocumentDataModel,
|
|
7010
7101
|
kr as EDITOR_ACTIVATED,
|
|
7011
7102
|
Sr as EXTENSION_NAMES,
|
|
7012
|
-
|
|
7103
|
+
Ee as Entry,
|
|
7013
7104
|
vn as EntryIterator,
|
|
7014
7105
|
Ws as ErrorService,
|
|
7015
7106
|
Ss as EventState,
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7107
|
+
Ce as FOCUSING_DOC,
|
|
7108
|
+
Mo as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
7109
|
+
Uo as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
7019
7110
|
Vr as FOCUSING_FORMULA_EDITOR,
|
|
7020
7111
|
Kt as FOCUSING_SHEET,
|
|
7021
|
-
|
|
7022
|
-
|
|
7112
|
+
Ne as FOCUSING_SLIDE,
|
|
7113
|
+
To as FOCUSING_UNIVER_EDITOR,
|
|
7114
|
+
Po as FOCUSING_UNIVER_EDITOR_SINGLE_MODE,
|
|
7023
7115
|
ps as FloatingObjectManagerService,
|
|
7024
7116
|
kn as FollowNumberWithType,
|
|
7025
7117
|
Gt as FontItalic,
|
|
7026
7118
|
rr as FontStyleType,
|
|
7027
7119
|
$t as FontWeight,
|
|
7028
|
-
|
|
7120
|
+
qs as FormatType,
|
|
7029
7121
|
Ot as GlyphType,
|
|
7030
7122
|
Yn as GridType,
|
|
7031
7123
|
on as HLSColor,
|
|
7032
7124
|
Z as HorizontalAlign,
|
|
7033
7125
|
bt as ICommandService,
|
|
7034
7126
|
Hs as IConfigService,
|
|
7035
|
-
|
|
7127
|
+
ut as IContextService,
|
|
7036
7128
|
Bs as IFloatingObjectManagerService,
|
|
7037
|
-
|
|
7129
|
+
Go as ILocalStorageService,
|
|
7038
7130
|
y as ILogService,
|
|
7039
|
-
|
|
7040
|
-
|
|
7131
|
+
us as IPermissionService,
|
|
7132
|
+
os as IResourceManagerService,
|
|
7041
7133
|
Zr as ISnapshotPersistenceService,
|
|
7042
7134
|
ue as IUndoRedoService,
|
|
7043
7135
|
at as IUniverInstanceService,
|
|
7044
|
-
|
|
7136
|
+
ko as InterceptorManager,
|
|
7045
7137
|
Zs as InterpolationPointType,
|
|
7046
7138
|
Ln as KeyIterator,
|
|
7047
7139
|
ft as LRUHelper,
|
|
7048
7140
|
Dn as LRUMap,
|
|
7141
|
+
X as LifecycleInitializerService,
|
|
7049
7142
|
B as LifecycleService,
|
|
7050
7143
|
C as LifecycleStages,
|
|
7051
7144
|
Qt as LocalUndoRedoService,
|
|
@@ -7060,32 +7153,32 @@ export {
|
|
|
7060
7153
|
ir as ObjectRelativeFromH,
|
|
7061
7154
|
or as ObjectRelativeFromV,
|
|
7062
7155
|
te as Observable,
|
|
7063
|
-
|
|
7156
|
+
Bo as ObservableHooks,
|
|
7064
7157
|
yt as Observer,
|
|
7065
|
-
|
|
7066
|
-
|
|
7158
|
+
ns as OnLifecycle,
|
|
7159
|
+
go as PRESET_LIST_TYPE,
|
|
7067
7160
|
Lr as PageElementType,
|
|
7068
7161
|
hr as PageOrientType,
|
|
7069
|
-
|
|
7162
|
+
es as PageType,
|
|
7070
7163
|
Qn as ParagraphElementType,
|
|
7071
7164
|
Tn as PermissionPoint,
|
|
7072
7165
|
It as PermissionService,
|
|
7073
|
-
|
|
7166
|
+
Ge as PermissionStatus,
|
|
7074
7167
|
Rs as Plugin,
|
|
7075
7168
|
L as PluginType,
|
|
7076
|
-
|
|
7169
|
+
qn as PositionedObjectLayoutType,
|
|
7077
7170
|
Yt as PresetListType,
|
|
7078
7171
|
ys as ProtectionType,
|
|
7079
7172
|
P as RANGE_TYPE,
|
|
7080
7173
|
Vi as RGBA_PAREN,
|
|
7081
7174
|
ki as RGB_PAREN,
|
|
7082
7175
|
lt as Range,
|
|
7083
|
-
|
|
7176
|
+
ot as Rectangle,
|
|
7084
7177
|
Ei as RedoCommand,
|
|
7085
7178
|
di as RedoCommandId,
|
|
7086
7179
|
uo as RefAlias,
|
|
7087
|
-
|
|
7088
|
-
|
|
7180
|
+
Ue as Registry,
|
|
7181
|
+
Te as RegistryAsMap,
|
|
7089
7182
|
tn as RelativeDate,
|
|
7090
7183
|
br as RelativeSlideLink,
|
|
7091
7184
|
oi as ResourceManagerService,
|
|
@@ -7095,7 +7188,7 @@ export {
|
|
|
7095
7188
|
en as ShapeType,
|
|
7096
7189
|
sn as SheetTypes,
|
|
7097
7190
|
Wr as SheetViewModel,
|
|
7098
|
-
|
|
7191
|
+
ss as Slide,
|
|
7099
7192
|
yn as SpacingRule,
|
|
7100
7193
|
wr as Styles,
|
|
7101
7194
|
rn as THEME_COLORS,
|
|
@@ -7103,67 +7196,69 @@ export {
|
|
|
7103
7196
|
nn as TextDecoration,
|
|
7104
7197
|
Nt as TextDirection,
|
|
7105
7198
|
Xn as TextDirectionType,
|
|
7106
|
-
|
|
7199
|
+
le as TextX,
|
|
7107
7200
|
m as TextXActionType,
|
|
7108
7201
|
jt as ThemeColor,
|
|
7109
7202
|
T as ThemeColorType,
|
|
7110
7203
|
ne as ThemeColors,
|
|
7111
|
-
|
|
7204
|
+
be as ThemeService,
|
|
7112
7205
|
E as Tools,
|
|
7113
7206
|
gi as UndoCommand,
|
|
7114
7207
|
fi as UndoCommandId,
|
|
7115
|
-
|
|
7116
|
-
|
|
7208
|
+
Ho as Univer,
|
|
7209
|
+
Jt as UniverDoc,
|
|
7117
7210
|
xt as UniverEditablePermission,
|
|
7118
7211
|
si as UniverEditablePermissionPoint,
|
|
7212
|
+
zt as UniverInstanceService,
|
|
7119
7213
|
Xr as UniverInstanceType,
|
|
7120
7214
|
Ct as UniverPermissionService,
|
|
7121
|
-
|
|
7215
|
+
qt as UniverSheet,
|
|
7122
7216
|
Zt as UniverSlide,
|
|
7123
7217
|
M as UpdateDocsAttributeType,
|
|
7124
7218
|
bn as ValueIterator,
|
|
7125
|
-
|
|
7219
|
+
rt as VerticalAlign,
|
|
7126
7220
|
sr as WidthType,
|
|
7127
7221
|
Lt as Workbook,
|
|
7128
7222
|
wt as Worksheet,
|
|
7129
|
-
|
|
7130
|
-
|
|
7223
|
+
it as WrapStrategy,
|
|
7224
|
+
Jn as WrapTextType,
|
|
7131
7225
|
$s as binarySearchArray,
|
|
7132
7226
|
cr as characterSpacingControlType,
|
|
7133
7227
|
yi as checkParagraphHasBullet,
|
|
7134
7228
|
to as checkParagraphHasIndent,
|
|
7135
7229
|
Nn as checkParagraphHasIndentByStyle,
|
|
7136
7230
|
Gi as codeToBlob,
|
|
7137
|
-
|
|
7231
|
+
Ie as composeBody,
|
|
7138
7232
|
bi as composeInterceptors,
|
|
7139
7233
|
no as concatMatrixArray,
|
|
7140
|
-
|
|
7141
|
-
|
|
7234
|
+
$o as createInterceptorKey,
|
|
7235
|
+
Ae as createRowColIter,
|
|
7236
|
+
fo as debounce,
|
|
7142
7237
|
xi as dedupe,
|
|
7143
|
-
|
|
7238
|
+
pe as deepCompare,
|
|
7144
7239
|
wn as deleteContent,
|
|
7145
7240
|
Hi as fromObservable,
|
|
7146
7241
|
j as getArrayLength,
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7242
|
+
ye as getBodySlice,
|
|
7243
|
+
qi as getBorderStyleType,
|
|
7244
|
+
Ao as getCellValueType,
|
|
7150
7245
|
$ as getColorStyle,
|
|
7151
7246
|
Tt as getDocsUpdateBody,
|
|
7152
7247
|
$i as getReverseDirection,
|
|
7153
7248
|
io as getTypeFromPermissionItemList,
|
|
7154
|
-
|
|
7249
|
+
Do as getWorksheetUID,
|
|
7155
7250
|
Qi as handleJsonToDom,
|
|
7156
|
-
|
|
7251
|
+
Ji as handleStyleToString,
|
|
7157
7252
|
so as hashAlgorithm,
|
|
7158
|
-
|
|
7159
|
-
|
|
7253
|
+
Be as horizontalLineSegmentsSubtraction,
|
|
7254
|
+
Re as insertMatrixArray,
|
|
7160
7255
|
Sn as insertTextToContent,
|
|
7161
|
-
|
|
7256
|
+
Co as isCellV,
|
|
7162
7257
|
Ki as isEmptyCell,
|
|
7163
7258
|
Xi as isFormulaId,
|
|
7164
7259
|
zi as isFormulaString,
|
|
7165
|
-
|
|
7166
|
-
|
|
7260
|
+
Oo as isICellData,
|
|
7261
|
+
Io as isNullCell,
|
|
7167
7262
|
ws as isObserver,
|
|
7168
7263
|
eo as isRealNum,
|
|
7169
7264
|
Cn as isSameStyleTextRun,
|
|
@@ -7171,26 +7266,27 @@ export {
|
|
|
7171
7266
|
Yi as makeCellRangeToRangeData,
|
|
7172
7267
|
ji as makeCellToSelection,
|
|
7173
7268
|
Fr as mergeWorksheetSnapshotWithDefault,
|
|
7174
|
-
|
|
7175
|
-
|
|
7269
|
+
Oe as moveMatrixArray,
|
|
7270
|
+
Ve as normalizeTextRuns,
|
|
7176
7271
|
ao as numberToABC,
|
|
7177
7272
|
co as numberToListABC,
|
|
7178
7273
|
ks as orderSearchArray,
|
|
7179
|
-
|
|
7274
|
+
J as remove,
|
|
7180
7275
|
Hn as repeatStringNumTimes,
|
|
7181
|
-
|
|
7182
|
-
|
|
7276
|
+
po as replaceInDocumentBody,
|
|
7277
|
+
Wo as requestImmediateMacroTask,
|
|
7278
|
+
rs as runOnLifecycle,
|
|
7183
7279
|
Bi as searchArray,
|
|
7184
7280
|
oo as selectionToArray,
|
|
7185
7281
|
Cs as sequence,
|
|
7186
7282
|
Is as sequenceAsync,
|
|
7187
|
-
|
|
7283
|
+
Fe as sequenceExecute,
|
|
7188
7284
|
Wi as sequenceExecuteAsync,
|
|
7189
7285
|
ro as sliceMatrixArray,
|
|
7190
7286
|
ho as sortRules,
|
|
7191
7287
|
_o as sortRulesByDesc,
|
|
7192
7288
|
ct as sortRulesFactory,
|
|
7193
|
-
|
|
7194
|
-
|
|
7289
|
+
me as spliceArray,
|
|
7290
|
+
Fo as throttle,
|
|
7195
7291
|
N as toDisposable
|
|
7196
7292
|
};
|