@univerjs/core 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -7
- package/lib/es/index.js +747 -687
- package/lib/types/basics/univer-slide.d.ts +2 -2
- package/lib/types/basics/univer.d.ts +3 -3
- package/lib/types/docs/data-model/empty-snapshot.d.ts +18 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/context/context.d.ts +2 -1
- package/lib/types/services/instance/instance.service.d.ts +20 -20
- package/lib/types/shared/__test__/rectangle.spec.d.ts +16 -0
- package/lib/types/sheets/worksheet.d.ts +1 -1
- package/lib/types/slides/domain/slide-model.d.ts +3 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +1 -0
- package/lib/types/types/interfaces/i-slide-data.d.ts +2 -1
- package/lib/umd/index.js +8 -7
- package/package.json +6 -4
package/lib/es/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var h = (t, e, s) => (
|
|
1
|
+
var Ns = Object.defineProperty;
|
|
2
|
+
var Ss = (t, e, s) => e in t ? Ns(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
+
var h = (t, e, s) => (Ss(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
4
|
import { createIdentifier as F, Inject as M, Injector as tt } from "@wendellhu/redi";
|
|
5
|
-
import { Subject as D, Observable as re, filter as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
function
|
|
9
|
-
|
|
5
|
+
import { Subject as D, Observable as re, filter as ws, BehaviorSubject as j, combineLatest as bs } from "rxjs";
|
|
6
|
+
import { CellValueType as Ee, UniverType as K, ErrorCode as k, isError as Be } from "@univerjs/protocol";
|
|
7
|
+
import { map as vs } from "rxjs/operators";
|
|
8
|
+
function Ls() {
|
|
9
|
+
Ds();
|
|
10
10
|
}
|
|
11
11
|
const _t = typeof global < "u" ? global : typeof self < "u" ? self : window;
|
|
12
|
-
function
|
|
12
|
+
function Ds() {
|
|
13
13
|
typeof _t.requestIdleCallback != "function" && (_t.requestIdleCallback = function(s) {
|
|
14
14
|
const n = Date.now();
|
|
15
15
|
return setTimeout(function() {
|
|
@@ -25,12 +25,12 @@ function Ls() {
|
|
|
25
25
|
clearTimeout(s);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class ke {
|
|
29
29
|
constructor() {
|
|
30
30
|
h(this, "_data", []);
|
|
31
31
|
}
|
|
32
32
|
static create() {
|
|
33
|
-
return new
|
|
33
|
+
return new ke();
|
|
34
34
|
}
|
|
35
35
|
add(e) {
|
|
36
36
|
this._data.indexOf(e) > -1 || this._data.push(e);
|
|
@@ -43,12 +43,12 @@ class Be {
|
|
|
43
43
|
return this._data;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class Ge {
|
|
47
47
|
constructor() {
|
|
48
48
|
h(this, "_data", /* @__PURE__ */ new Map());
|
|
49
49
|
}
|
|
50
50
|
static create() {
|
|
51
|
-
return new
|
|
51
|
+
return new Ge();
|
|
52
52
|
}
|
|
53
53
|
add(e, s) {
|
|
54
54
|
this._data.has(e) || this._data.set(e, s);
|
|
@@ -61,7 +61,7 @@ class ke {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
var b = /* @__PURE__ */ ((t) => (t[t.Univer = 0] = "Univer", t[t.Doc = 1] = "Doc", t[t.Sheet = 2] = "Sheet", t[t.Slide = 3] = "Slide", t))(b || {});
|
|
64
|
-
class
|
|
64
|
+
class Ms {
|
|
65
65
|
constructor(e) {
|
|
66
66
|
h(this, "_name");
|
|
67
67
|
this._name = e;
|
|
@@ -80,8 +80,8 @@ class Ds {
|
|
|
80
80
|
return this._name;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
h(
|
|
84
|
-
class
|
|
83
|
+
h(Ms, "type", 0);
|
|
84
|
+
class Us {
|
|
85
85
|
constructor() {
|
|
86
86
|
h(this, "_plugins", []);
|
|
87
87
|
}
|
|
@@ -96,7 +96,7 @@ class Ms {
|
|
|
96
96
|
this._plugins.forEach(e);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class Ts {
|
|
100
100
|
constructor() {
|
|
101
101
|
h(this, "_pluginsRegisteredByBusiness", /* @__PURE__ */ new Map());
|
|
102
102
|
}
|
|
@@ -115,13 +115,13 @@ function y(t, e) {
|
|
|
115
115
|
const s = t.indexOf(e);
|
|
116
116
|
return s > -1 ? (t.splice(s, 1), !0) : !1;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function eo(t) {
|
|
119
119
|
const e = /* @__PURE__ */ new Set(), s = [];
|
|
120
120
|
for (const n of t)
|
|
121
121
|
e.has(n) || (e.add(n), s.push(n));
|
|
122
122
|
return s;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ps(t, e) {
|
|
125
125
|
for (let s = t.length - 1; s > -1; s--) {
|
|
126
126
|
const n = t[s];
|
|
127
127
|
if (e(n, s))
|
|
@@ -129,13 +129,13 @@ function Ts(t, e) {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function so(t, e) {
|
|
133
133
|
if (t.length === 0)
|
|
134
134
|
return t;
|
|
135
135
|
const s = e % t.length;
|
|
136
136
|
return t.slice(s).concat(t.slice(0, s));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function no(t, e) {
|
|
139
139
|
const s = /* @__PURE__ */ new Map();
|
|
140
140
|
return t.forEach((n) => {
|
|
141
141
|
const r = e(n);
|
|
@@ -143,7 +143,7 @@ function eo(t, e) {
|
|
|
143
143
|
s.has(r) || (i = [], s.set(r, i)), i.push(n);
|
|
144
144
|
}), s;
|
|
145
145
|
}
|
|
146
|
-
async function
|
|
146
|
+
async function xs(t) {
|
|
147
147
|
for (const [e, s] of t.entries())
|
|
148
148
|
try {
|
|
149
149
|
if (!await s())
|
|
@@ -163,7 +163,7 @@ async function Ps(t) {
|
|
|
163
163
|
index: -1
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ps(t) {
|
|
167
167
|
for (const [e, s] of t.entries())
|
|
168
168
|
try {
|
|
169
169
|
if (!s())
|
|
@@ -183,7 +183,7 @@ function xs(t) {
|
|
|
183
183
|
index: -1
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Re(t) {
|
|
187
187
|
var e = typeof Symbol == "function" && Symbol.iterator, s = e && t[e], n = 0;
|
|
188
188
|
if (s)
|
|
189
189
|
return s.call(t);
|
|
@@ -195,7 +195,7 @@ function Ee(t) {
|
|
|
195
195
|
};
|
|
196
196
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function me(t, e) {
|
|
199
199
|
var s = typeof Symbol == "function" && t[Symbol.iterator];
|
|
200
200
|
if (!s)
|
|
201
201
|
return t;
|
|
@@ -215,22 +215,22 @@ function Re(t, e) {
|
|
|
215
215
|
}
|
|
216
216
|
return i;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Oe(t, e, s) {
|
|
219
219
|
if (s || arguments.length === 2)
|
|
220
220
|
for (var n = 0, r = e.length, i; n < r; n++)
|
|
221
221
|
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
|
|
222
222
|
return t.concat(i || Array.prototype.slice.call(e));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ot(t) {
|
|
225
225
|
return typeof t == "function";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Hs(t) {
|
|
228
228
|
var e = function(n) {
|
|
229
229
|
Error.call(n), n.stack = new Error().stack;
|
|
230
230
|
}, s = t(e);
|
|
231
231
|
return s.prototype = Object.create(Error.prototype), s.prototype.constructor = s, s;
|
|
232
232
|
}
|
|
233
|
-
var Pt =
|
|
233
|
+
var Pt = Hs(function(t) {
|
|
234
234
|
return function(s) {
|
|
235
235
|
t(this), this.message = s ? s.length + ` errors occurred during unsubscription:
|
|
236
236
|
` + s.map(function(n, r) {
|
|
@@ -239,13 +239,13 @@ var Pt = ps(function(t) {
|
|
|
239
239
|
`) : "", this.name = "UnsubscriptionError", this.errors = s;
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
function
|
|
242
|
+
function Ie(t, e) {
|
|
243
243
|
if (t) {
|
|
244
244
|
var s = t.indexOf(e);
|
|
245
245
|
0 <= s && t.splice(s, 1);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
var
|
|
248
|
+
var $e = function() {
|
|
249
249
|
function t(e) {
|
|
250
250
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
251
251
|
}
|
|
@@ -257,7 +257,7 @@ var Ge = function() {
|
|
|
257
257
|
if (o)
|
|
258
258
|
if (this._parentage = null, Array.isArray(o))
|
|
259
259
|
try {
|
|
260
|
-
for (var a =
|
|
260
|
+
for (var a = Re(o), u = a.next(); !u.done; u = a.next()) {
|
|
261
261
|
var c = u.value;
|
|
262
262
|
c.remove(this);
|
|
263
263
|
}
|
|
@@ -274,7 +274,7 @@ var Ge = function() {
|
|
|
274
274
|
else
|
|
275
275
|
o.remove(this);
|
|
276
276
|
var l = this.initialTeardown;
|
|
277
|
-
if (
|
|
277
|
+
if (ot(l))
|
|
278
278
|
try {
|
|
279
279
|
l();
|
|
280
280
|
} catch (R) {
|
|
@@ -284,12 +284,12 @@ var Ge = function() {
|
|
|
284
284
|
if (d) {
|
|
285
285
|
this._finalizers = null;
|
|
286
286
|
try {
|
|
287
|
-
for (var _ =
|
|
287
|
+
for (var _ = Re(d), f = _.next(); !f.done; f = _.next()) {
|
|
288
288
|
var g = f.value;
|
|
289
289
|
try {
|
|
290
|
-
|
|
290
|
+
Ae(g);
|
|
291
291
|
} catch (R) {
|
|
292
|
-
i = i != null ? i : [], R instanceof Pt ? i =
|
|
292
|
+
i = i != null ? i : [], R instanceof Pt ? i = Oe(Oe([], me(i)), me(R.errors)) : i.push(R);
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
} catch (R) {
|
|
@@ -310,7 +310,7 @@ var Ge = function() {
|
|
|
310
310
|
var s;
|
|
311
311
|
if (e && e !== this)
|
|
312
312
|
if (this.closed)
|
|
313
|
-
|
|
313
|
+
Ae(e);
|
|
314
314
|
else {
|
|
315
315
|
if (e instanceof t) {
|
|
316
316
|
if (e.closed || e._hasParent(this))
|
|
@@ -327,23 +327,23 @@ var Ge = function() {
|
|
|
327
327
|
this._parentage = Array.isArray(s) ? (s.push(e), s) : s ? [s, e] : e;
|
|
328
328
|
}, t.prototype._removeParent = function(e) {
|
|
329
329
|
var s = this._parentage;
|
|
330
|
-
s === e ? this._parentage = null : Array.isArray(s) &&
|
|
330
|
+
s === e ? this._parentage = null : Array.isArray(s) && Ie(s, e);
|
|
331
331
|
}, t.prototype.remove = function(e) {
|
|
332
332
|
var s = this._finalizers;
|
|
333
|
-
s &&
|
|
333
|
+
s && Ie(s, e), e instanceof t && e._removeParent(this);
|
|
334
334
|
}, t.EMPTY = function() {
|
|
335
335
|
var e = new t();
|
|
336
336
|
return e.closed = !0, e;
|
|
337
337
|
}(), t;
|
|
338
338
|
}();
|
|
339
|
-
|
|
340
|
-
function
|
|
341
|
-
return t instanceof
|
|
339
|
+
$e.EMPTY;
|
|
340
|
+
function Ve(t) {
|
|
341
|
+
return t instanceof $e || t && "closed" in t && ot(t.remove) && ot(t.add) && ot(t.unsubscribe);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
343
|
+
function Ae(t) {
|
|
344
|
+
ot(t) ? t() : t.unsubscribe();
|
|
345
345
|
}
|
|
346
|
-
class
|
|
346
|
+
class Fs {
|
|
347
347
|
/**
|
|
348
348
|
* Create a new EventState
|
|
349
349
|
* @param skipNextObservers defines a flag which will instruct the observable to skip following observers when set to true
|
|
@@ -377,7 +377,7 @@ class Hs {
|
|
|
377
377
|
this.isStopPropagation = !0;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Ws(t) {
|
|
381
381
|
return t instanceof ie;
|
|
382
382
|
}
|
|
383
383
|
class ie {
|
|
@@ -407,7 +407,7 @@ class oe {
|
|
|
407
407
|
h(this, "_observers", new Array());
|
|
408
408
|
h(this, "_eventState");
|
|
409
409
|
h(this, "_onObserverAdded");
|
|
410
|
-
this._eventState = new
|
|
410
|
+
this._eventState = new Fs(), e && (this._onObserverAdded = e);
|
|
411
411
|
}
|
|
412
412
|
/**
|
|
413
413
|
* Gets the list of observers
|
|
@@ -569,11 +569,11 @@ class oe {
|
|
|
569
569
|
}
|
|
570
570
|
function S(t) {
|
|
571
571
|
let e = !1;
|
|
572
|
-
return
|
|
572
|
+
return Ve(t) ? {
|
|
573
573
|
dispose: () => {
|
|
574
574
|
e || (e = !0, t.unsubscribe());
|
|
575
575
|
}
|
|
576
|
-
} :
|
|
576
|
+
} : Ws(t) ? {
|
|
577
577
|
dispose: () => {
|
|
578
578
|
e || (e = !0, t.dispose());
|
|
579
579
|
}
|
|
@@ -583,12 +583,12 @@ function S(t) {
|
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function ro(t) {
|
|
587
587
|
return S(() => {
|
|
588
588
|
t.unsubscribe();
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
class
|
|
591
|
+
class je {
|
|
592
592
|
constructor() {
|
|
593
593
|
h(this, "_disposables", /* @__PURE__ */ new Set());
|
|
594
594
|
}
|
|
@@ -608,17 +608,17 @@ class Ve {
|
|
|
608
608
|
class T {
|
|
609
609
|
constructor() {
|
|
610
610
|
h(this, "_disposed", !1);
|
|
611
|
-
h(this, "_collection", new
|
|
611
|
+
h(this, "_collection", new je());
|
|
612
612
|
}
|
|
613
613
|
disposeWithMe(e) {
|
|
614
|
-
const s =
|
|
614
|
+
const s = Ve(e) ? S(e) : e;
|
|
615
615
|
return this._collection.add(s);
|
|
616
616
|
}
|
|
617
617
|
dispose() {
|
|
618
618
|
this._disposed || (this._disposed = !0, this._collection.dispose());
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
class
|
|
621
|
+
class io extends T {
|
|
622
622
|
constructor() {
|
|
623
623
|
super(...arguments);
|
|
624
624
|
h(this, "dispose$", new D());
|
|
@@ -627,8 +627,8 @@ class no extends T {
|
|
|
627
627
|
super.dispose(), this.dispose$.next(), this.dispose$.complete();
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
const
|
|
631
|
-
class
|
|
630
|
+
const lt = F("univer.context-service");
|
|
631
|
+
class Bs extends T {
|
|
632
632
|
constructor() {
|
|
633
633
|
super(...arguments);
|
|
634
634
|
h(this, "_contextChanged$", new D());
|
|
@@ -647,14 +647,14 @@ class Ws extends T {
|
|
|
647
647
|
}
|
|
648
648
|
subscribeContextValue$(s) {
|
|
649
649
|
return new re((n) => {
|
|
650
|
-
const r = this._contextChanged$.pipe(
|
|
650
|
+
const r = this._contextChanged$.pipe(ws((i) => typeof i[s] < "u")).subscribe((i) => n.next(i[s]));
|
|
651
651
|
return this._contextMap.has(s) && n.next(this._contextMap.get(s)), () => r.unsubscribe();
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
var
|
|
655
|
+
var ks = /* @__PURE__ */ ((t) => (t[t.SILENT = 0] = "SILENT", t[t.ERROR = 1] = "ERROR", t[t.WARN = 2] = "WARN", t[t.INFO = 3] = "INFO", t[t.VERBOSE = 4] = "VERBOSE", t))(ks || {});
|
|
656
656
|
const st = F("univer.log");
|
|
657
|
-
class
|
|
657
|
+
class Gs extends T {
|
|
658
658
|
constructor() {
|
|
659
659
|
super(...arguments);
|
|
660
660
|
h(this, "_logLevel", 3);
|
|
@@ -679,13 +679,13 @@ class ks extends T {
|
|
|
679
679
|
/^\[(.*?)\]/g.test(r) ? s(`\x1B[97;104m${r}\x1B[0m`, ...n.slice(1)) : s(...n);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
682
|
+
var $s = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, js = (t, e, s, n) => {
|
|
683
|
+
for (var r = n > 1 ? void 0 : n ? Vs(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
684
684
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
685
|
-
return n && r &&
|
|
686
|
-
},
|
|
685
|
+
return n && r && $s(e, s, r), r;
|
|
686
|
+
}, Ce = (t, e) => (s, n) => e(s, n, t), ae = /* @__PURE__ */ ((t) => (t[t.COMMAND = 0] = "COMMAND", t[t.OPERATION = 1] = "OPERATION", t[t.MUTATION = 2] = "MUTATION", t))(ae || {});
|
|
687
687
|
const Mt = F("anywhere.command-service");
|
|
688
|
-
class
|
|
688
|
+
class Ks {
|
|
689
689
|
constructor() {
|
|
690
690
|
h(this, "_commands", /* @__PURE__ */ new Map());
|
|
691
691
|
}
|
|
@@ -709,7 +709,7 @@ let jt = class {
|
|
|
709
709
|
h(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
|
|
710
710
|
h(this, "_commandExecutingLevel", 0);
|
|
711
711
|
h(this, "_commandExecutionStack", []);
|
|
712
|
-
this._injector = t, this._logService = e, this._commandRegistry = new
|
|
712
|
+
this._injector = t, this._logService = e, this._commandRegistry = new Ks(), this._registerCommand(zs);
|
|
713
713
|
}
|
|
714
714
|
registerCommand(t) {
|
|
715
715
|
return this._registerCommand(t);
|
|
@@ -757,7 +757,7 @@ let jt = class {
|
|
|
757
757
|
params: e
|
|
758
758
|
};
|
|
759
759
|
if (i.type === 2) {
|
|
760
|
-
const c =
|
|
760
|
+
const c = Ps(
|
|
761
761
|
this._commandExecutionStack,
|
|
762
762
|
(l) => l.type === 0
|
|
763
763
|
/* COMMAND */
|
|
@@ -785,8 +785,8 @@ let jt = class {
|
|
|
785
785
|
throw new Error("Command has registered as a single command.");
|
|
786
786
|
s = e[0];
|
|
787
787
|
} else {
|
|
788
|
-
const r = new
|
|
789
|
-
s = new
|
|
788
|
+
const r = new je();
|
|
789
|
+
s = new Ys(t.id), r.add(this._commandRegistry.registerCommand(s)), r.add(
|
|
790
790
|
S(() => {
|
|
791
791
|
this._multiCommandDisposables.delete(t.id);
|
|
792
792
|
})
|
|
@@ -827,11 +827,11 @@ let jt = class {
|
|
|
827
827
|
return n;
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
jt =
|
|
831
|
-
|
|
832
|
-
|
|
830
|
+
jt = js([
|
|
831
|
+
Ce(0, M(tt)),
|
|
832
|
+
Ce(1, st)
|
|
833
833
|
], jt);
|
|
834
|
-
class
|
|
834
|
+
class Ys {
|
|
835
835
|
constructor(e) {
|
|
836
836
|
h(this, "name");
|
|
837
837
|
h(this, "multi", !0);
|
|
@@ -841,7 +841,7 @@ class Ks {
|
|
|
841
841
|
h(this, "handler", async (e, s) => {
|
|
842
842
|
if (!this._implementations.length)
|
|
843
843
|
return !1;
|
|
844
|
-
const n = e.get(st), r = e.get(
|
|
844
|
+
const n = e.get(st), r = e.get(lt), i = e.get(tt);
|
|
845
845
|
for (const o of this._implementations) {
|
|
846
846
|
const a = o.command.preconditions;
|
|
847
847
|
if ((!a || a && a(r)) && (n.debug("[MultiCommand]", `executing implementation "${o.command.name}".`), await i.invoke(o.command.handler, s)))
|
|
@@ -863,20 +863,20 @@ class Ks {
|
|
|
863
863
|
return this._implementations.length > 0;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Ke(t, e, s) {
|
|
867
867
|
const n = t.map((r) => () => e.syncExecuteCommand(r.id, r.params, s));
|
|
868
|
-
return
|
|
868
|
+
return ps(n);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function oo(t, e, s) {
|
|
871
871
|
const n = t.map((r) => () => e.executeCommand(r.id, r.params, s));
|
|
872
|
-
return
|
|
872
|
+
return xs(n);
|
|
873
873
|
}
|
|
874
|
-
const
|
|
874
|
+
const zs = {
|
|
875
875
|
id: "nil",
|
|
876
876
|
type: 0,
|
|
877
877
|
handler: () => !0
|
|
878
|
-
},
|
|
879
|
-
class
|
|
878
|
+
}, Xs = F("univer.config-service");
|
|
879
|
+
class Js {
|
|
880
880
|
constructor() {
|
|
881
881
|
h(this, "_config", /* @__PURE__ */ new Map());
|
|
882
882
|
}
|
|
@@ -890,7 +890,7 @@ class Xs {
|
|
|
890
890
|
this._config.delete(e);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
class
|
|
893
|
+
class Qs extends T {
|
|
894
894
|
constructor() {
|
|
895
895
|
super(...arguments);
|
|
896
896
|
h(this, "_error$", new D());
|
|
@@ -903,8 +903,8 @@ class Js extends T {
|
|
|
903
903
|
this._error$.next({ errorKey: s });
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
const
|
|
907
|
-
class
|
|
906
|
+
const ao = "__default_document_sub_component_id20231101__";
|
|
907
|
+
class qs {
|
|
908
908
|
constructor() {
|
|
909
909
|
h(this, "_managerInfo", /* @__PURE__ */ new Map());
|
|
910
910
|
/**
|
|
@@ -993,10 +993,10 @@ class Qs {
|
|
|
993
993
|
return n == null ? [] : (s == null || s.delete(e.floatingObjectId), [{ ...e, floatingObject: n }]);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
const
|
|
996
|
+
const Zs = F(
|
|
997
997
|
"univer.floating-object.service"
|
|
998
998
|
);
|
|
999
|
-
class
|
|
999
|
+
class ys {
|
|
1000
1000
|
constructor() {
|
|
1001
1001
|
h(this, "cursor", 0);
|
|
1002
1002
|
}
|
|
@@ -1010,7 +1010,7 @@ class Zs {
|
|
|
1010
1010
|
this.cursor = e;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function tn(t, e) {
|
|
1014
1014
|
let s = 0, n = t.length - 1;
|
|
1015
1015
|
for (; s <= n; ) {
|
|
1016
1016
|
const r = Math.floor((n + s) / 2);
|
|
@@ -1025,7 +1025,7 @@ function ys(t, e) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
return -1;
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function en(t, e) {
|
|
1029
1029
|
let s = 0, n = 0, r = 0, i = -1, o = t.length - 1;
|
|
1030
1030
|
for (; s < t.length && o >= 0 && o >= s; ) {
|
|
1031
1031
|
if (n = t[o], o === 0 ? r = 0 : r = t[o - 1], e >= r && e <= n) {
|
|
@@ -1040,16 +1040,16 @@ function tn(t, e) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
return i;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function uo(t, e) {
|
|
1044
1044
|
let s = t.length - 1;
|
|
1045
|
-
return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? Number.POSITIVE_INFINITY : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s =
|
|
1045
|
+
return e < 0 ? -1 : e < t[0] ? 0 : e > t[t.length - 1] ? Number.POSITIVE_INFINITY : (t.length < 40 || e <= t[20] || e >= t[s - 20] ? s = en(t, e) : s = tn(t, e), s);
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function lo(t) {
|
|
1048
1048
|
const e = new Blob([t], { type: "text/javascript" });
|
|
1049
1049
|
return window.URL.createObjectURL(e);
|
|
1050
1050
|
}
|
|
1051
|
-
var
|
|
1052
|
-
function
|
|
1051
|
+
var sn = /* @__PURE__ */ ((t) => (t[t.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", t[t.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", t))(sn || {}), N = /* @__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))(N || {}), nn = /* @__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))(nn || {}), W = /* @__PURE__ */ ((t) => (t[t.UNSUPPORTED = 0] = "UNSUPPORTED", t[t.RGB = 1] = "RGB", t[t.HEX = 2] = "HEX", t[t.THEME = 3] = "THEME", t))(W || {}), rn = /* @__PURE__ */ ((t) => (t[t.ON = 0] = "ON", t[t.OFF = 1] = "OFF", t))(rn || {}), on = /* @__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))(on || {}), an = /* @__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))(an || {}), un = /* @__PURE__ */ ((t) => (t[t.DOCUMENT = 0] = "DOCUMENT", t[t.PROJECT = 1] = "PROJECT", t))(un || {}), ln = /* @__PURE__ */ ((t) => (t[t.COLUMNS = 0] = "COLUMNS", t[t.ROWS = 1] = "ROWS", t))(ln || {}), cn = /* @__PURE__ */ ((t) => (t[t.UP = 0] = "UP", t[t.RIGHT = 1] = "RIGHT", t[t.DOWN = 2] = "DOWN", t[t.LEFT = 3] = "LEFT", t))(cn || {});
|
|
1052
|
+
function co(t) {
|
|
1053
1053
|
switch (t) {
|
|
1054
1054
|
case 3:
|
|
1055
1055
|
return 1;
|
|
@@ -1061,8 +1061,8 @@ function uo(t) {
|
|
|
1061
1061
|
return 0;
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
var cn = /* @__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))(cn || {}), hn = /* @__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))(hn || {}), ht = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(ht || {}), dn = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(dn || {}), _n = /* @__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))(_n || {}), fn = /* @__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))(fn || {}), ue = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(ue || {}), wt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(wt || {}), gn = /* @__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))(gn || {}), et = /* @__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))(et || {}), ot = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(ot || {}), at = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(at || {}), Kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Kt || {}), Yt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(Yt || {}), zt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(zt || {}), m = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(m || {}), It = /* @__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))(It || {}), x = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(x || {}), le = /* @__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))(le || {});
|
|
1065
|
-
const
|
|
1064
|
+
var hn = /* @__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))(hn || {}), dn = /* @__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))(dn || {}), it = /* @__PURE__ */ ((t) => (t.EN_US = "enUS", t.ZH_CN = "zhCN", t))(it || {}), _n = /* @__PURE__ */ ((t) => (t[t.RANGE = 0] = "RANGE", t[t.SHEET = 1] = "SHEET", t))(_n || {}), fn = /* @__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))(fn || {}), gn = /* @__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))(gn || {}), ue = /* @__PURE__ */ ((t) => (t[t.GRID = 0] = "GRID", t[t.KANBAN = 1] = "KANBAN", t[t.GANTT = 2] = "GANTT", t))(ue || {}), wt = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", t[t.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", t))(wt || {}), En = /* @__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))(En || {}), et = /* @__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))(et || {}), at = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.TOP = 1] = "TOP", t[t.MIDDLE = 2] = "MIDDLE", t[t.BOTTOM = 3] = "BOTTOM", t))(at || {}), ut = /* @__PURE__ */ ((t) => (t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.OVERFLOW = 1] = "OVERFLOW", t[t.CLIP = 2] = "CLIP", t[t.WRAP = 3] = "WRAP", t))(ut || {}), Kt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ITALIC = 1] = "ITALIC", t))(Kt || {}), Yt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.BOLD = 1] = "BOLD", t))(Yt || {}), zt = /* @__PURE__ */ ((t) => (t[t.NORMAL = 1] = "NORMAL", t[t.SUBSCRIPT = 2] = "SUBSCRIPT", t[t.SUPERSCRIPT = 3] = "SUPERSCRIPT", t))(zt || {}), m = /* @__PURE__ */ ((t) => (t[t.FALSE = 0] = "FALSE", t[t.TRUE = 1] = "TRUE", t))(m || {}), It = /* @__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))(It || {}), x = /* @__PURE__ */ ((t) => (t[t.DARK1 = 0] = "DARK1", t[t.LIGHT1 = 1] = "LIGHT1", t[t.DARK2 = 2] = "DARK2", t[t.LIGHT2 = 3] = "LIGHT2", t[t.ACCENT1 = 4] = "ACCENT1", t[t.ACCENT2 = 5] = "ACCENT2", t[t.ACCENT3 = 6] = "ACCENT3", t[t.ACCENT4 = 7] = "ACCENT4", t[t.ACCENT5 = 8] = "ACCENT5", t[t.ACCENT6 = 9] = "ACCENT6", t[t.HYPERLINK = 10] = "HYPERLINK", t[t.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", t))(x || {}), le = /* @__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))(le || {});
|
|
1065
|
+
const Rn = {
|
|
1066
1066
|
[le.OFFICE]: {
|
|
1067
1067
|
[x.ACCENT1]: "#4472C4",
|
|
1068
1068
|
[x.ACCENT2]: "#ED7D31",
|
|
@@ -1159,7 +1159,7 @@ class nt {
|
|
|
1159
1159
|
return !1;
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
|
-
class
|
|
1162
|
+
class mn {
|
|
1163
1163
|
constructor(e) {
|
|
1164
1164
|
h(this, "_saturation", 0);
|
|
1165
1165
|
h(this, "_hue", 0);
|
|
@@ -1280,7 +1280,7 @@ const J = class J extends nt {
|
|
|
1280
1280
|
return s < 0 ? r = n * (1 + s) : r = n * (1 - s) + (255 - 255 * (1 - s)), r;
|
|
1281
1281
|
}
|
|
1282
1282
|
asRgbColor() {
|
|
1283
|
-
const s =
|
|
1283
|
+
const s = Rn[this._themeColors];
|
|
1284
1284
|
if (s == null)
|
|
1285
1285
|
throw new Error("not find themeColors type");
|
|
1286
1286
|
const n = s[this._themeColorType];
|
|
@@ -1292,7 +1292,7 @@ const J = class J extends nt {
|
|
|
1292
1292
|
return r.get(this._themeColorType);
|
|
1293
1293
|
} else
|
|
1294
1294
|
r = /* @__PURE__ */ new Map(), J._cacheThemeColor.set(this._themeColors, r);
|
|
1295
|
-
const i = new
|
|
1295
|
+
const i = new mn(nt.hexValueToRgbColor(n));
|
|
1296
1296
|
i.setLightness(this.lumValue(this._themeTint, i.getLightness() * 255) / 255);
|
|
1297
1297
|
const o = i.asRgbColor();
|
|
1298
1298
|
return r.set(this._themeColorType, o), o;
|
|
@@ -1312,7 +1312,7 @@ const J = class J extends nt {
|
|
|
1312
1312
|
};
|
|
1313
1313
|
h(J, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
1314
1314
|
let Jt = J;
|
|
1315
|
-
const
|
|
1315
|
+
const ho = "rgb(", _o = "rgba(", Ne = {
|
|
1316
1316
|
aliceBlue: [240, 248, 255],
|
|
1317
1317
|
antiqueWhite: [250, 235, 215],
|
|
1318
1318
|
aqua: [0, 255, 255],
|
|
@@ -1476,13 +1476,13 @@ class B {
|
|
|
1476
1476
|
this._color = { ...e._color }, this._rgbColor = { ...e._rgbColor };
|
|
1477
1477
|
return;
|
|
1478
1478
|
}
|
|
1479
|
-
const s =
|
|
1479
|
+
const s = Ye(e);
|
|
1480
1480
|
if (s == null) {
|
|
1481
1481
|
this._setNullColor();
|
|
1482
1482
|
return;
|
|
1483
1483
|
}
|
|
1484
1484
|
this._color = s;
|
|
1485
|
-
const n =
|
|
1485
|
+
const n = Nn(this._color);
|
|
1486
1486
|
if (n == null) {
|
|
1487
1487
|
this._setNullColor();
|
|
1488
1488
|
return;
|
|
@@ -1527,10 +1527,10 @@ class B {
|
|
|
1527
1527
|
return e && a[0][0] === a[0][1] && a[1][0] === a[1][1] && a[2][0] === a[2][1] && a[3][0] === a[3][1] ? o ? `#${a[0][0]}${a[1][0]}${a[2][0]}${a[3][0]}` : `#${a[0][0]}${a[1][0]}${a[2][0]}` : o ? `#${a[0]}${a[1]}${a[2]}${a[3]}` : `#${a[0]}${a[1]}${a[2]}`;
|
|
1528
1528
|
}
|
|
1529
1529
|
toHsv() {
|
|
1530
|
-
return
|
|
1530
|
+
return vn(this.toRgb());
|
|
1531
1531
|
}
|
|
1532
1532
|
toHsl() {
|
|
1533
|
-
return
|
|
1533
|
+
return bn(this.toRgb());
|
|
1534
1534
|
}
|
|
1535
1535
|
lighten(e = 10) {
|
|
1536
1536
|
const s = this.toHsl();
|
|
@@ -1575,8 +1575,8 @@ class B {
|
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4),
|
|
1579
|
-
if (
|
|
1578
|
+
const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4), Ye = (t) => {
|
|
1579
|
+
if (Dn(t)) {
|
|
1580
1580
|
if ("r" in t) {
|
|
1581
1581
|
const n = {
|
|
1582
1582
|
r: Math.round(t.r),
|
|
@@ -1601,8 +1601,8 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1601
1601
|
return t.a !== void 0 && (s.a = t.a), s;
|
|
1602
1602
|
}
|
|
1603
1603
|
const e = t.trim();
|
|
1604
|
-
if (
|
|
1605
|
-
const s =
|
|
1604
|
+
if (Ne[e]) {
|
|
1605
|
+
const s = Ne[e], n = {
|
|
1606
1606
|
r: Math.round(s[0]),
|
|
1607
1607
|
g: Math.round(s[1]),
|
|
1608
1608
|
b: Math.round(s[2])
|
|
@@ -1610,14 +1610,14 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1610
1610
|
return n.a = s[3] || 1, n;
|
|
1611
1611
|
}
|
|
1612
1612
|
if (e.startsWith("#"))
|
|
1613
|
-
return mn(e);
|
|
1614
|
-
if (e.startsWith("rgb"))
|
|
1615
1613
|
return On(e);
|
|
1616
|
-
if (e.startsWith("
|
|
1614
|
+
if (e.startsWith("rgb"))
|
|
1617
1615
|
return In(e);
|
|
1618
|
-
if (e.startsWith("
|
|
1616
|
+
if (e.startsWith("hsl"))
|
|
1619
1617
|
return An(e);
|
|
1620
|
-
|
|
1618
|
+
if (e.startsWith("hsv"))
|
|
1619
|
+
return Cn(e);
|
|
1620
|
+
}, On = (t) => {
|
|
1621
1621
|
const e = t.substring(1), s = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
1622
1622
|
let n = e.match(s);
|
|
1623
1623
|
if (!n || n.length < 3)
|
|
@@ -1629,7 +1629,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1629
1629
|
b: Number.parseInt(n[2], 16)
|
|
1630
1630
|
};
|
|
1631
1631
|
return n.length > 3 && (r.a = Number.parseInt(n[3], 16) / 255), r;
|
|
1632
|
-
},
|
|
1632
|
+
}, In = (t) => {
|
|
1633
1633
|
const e = t.indexOf("(");
|
|
1634
1634
|
if (e === -1)
|
|
1635
1635
|
throw new Error(`The color '${t}' is illegal rgb color`);
|
|
@@ -1642,7 +1642,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1642
1642
|
b: Number.parseInt(s[2], 10)
|
|
1643
1643
|
};
|
|
1644
1644
|
return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
|
|
1645
|
-
},
|
|
1645
|
+
}, An = (t) => {
|
|
1646
1646
|
const e = t.indexOf("(");
|
|
1647
1647
|
if (e === -1)
|
|
1648
1648
|
throw new Error(`The color '${t}' is illegal hsl color`);
|
|
@@ -1655,7 +1655,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1655
1655
|
l: Number.parseFloat(s[2])
|
|
1656
1656
|
};
|
|
1657
1657
|
return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
|
|
1658
|
-
},
|
|
1658
|
+
}, Cn = (t) => {
|
|
1659
1659
|
const e = t.indexOf("(");
|
|
1660
1660
|
if (e === -1)
|
|
1661
1661
|
throw new Error(`The color '${t}' is illegal hsv color`);
|
|
@@ -1668,11 +1668,11 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1668
1668
|
v: Number.parseFloat(s[2])
|
|
1669
1669
|
};
|
|
1670
1670
|
return s.length > 3 && (n.a = Number.parseFloat(s[3])), n;
|
|
1671
|
-
},
|
|
1672
|
-
const e =
|
|
1671
|
+
}, Nn = (t) => {
|
|
1672
|
+
const e = Ye(t);
|
|
1673
1673
|
if (e != null)
|
|
1674
|
-
return "r" in e ? e : "l" in e ?
|
|
1675
|
-
}, pt = (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),
|
|
1674
|
+
return "r" in e ? e : "l" in e ? Sn(e) : wn(e);
|
|
1675
|
+
}, pt = (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), Sn = (t) => {
|
|
1676
1676
|
let { h: e, s, l: n } = t;
|
|
1677
1677
|
e /= 360, s /= 100, n /= 100;
|
|
1678
1678
|
let r = 0, i = 0, o = 0;
|
|
@@ -1688,7 +1688,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1688
1688
|
b: Math.round(o * 255)
|
|
1689
1689
|
};
|
|
1690
1690
|
return t.a !== void 0 && (a.a = t.a), a;
|
|
1691
|
-
},
|
|
1691
|
+
}, wn = (t) => {
|
|
1692
1692
|
let { h: e, s, v: n } = t;
|
|
1693
1693
|
e = e / 360 * 6, s /= 100, n /= 100;
|
|
1694
1694
|
const r = Math.floor(e), i = e - r, o = n * (1 - s), a = n * (1 - i * s), u = n * (1 - (1 - i) * s), c = r % 6, l = [n, a, o, o, u, n][c], d = [u, n, n, a, o, o][c], _ = [o, o, u, n, n, a][c], f = {
|
|
@@ -1697,7 +1697,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1697
1697
|
b: _ * 255
|
|
1698
1698
|
};
|
|
1699
1699
|
return t.a !== void 0 && (f.a = t.a), f;
|
|
1700
|
-
},
|
|
1700
|
+
}, bn = (t) => {
|
|
1701
1701
|
let { r: e, g: s, b: n } = t;
|
|
1702
1702
|
e /= 255, s /= 255, n /= 255;
|
|
1703
1703
|
const r = Math.max(e, s, n), i = Math.min(e, s, n), o = (r + i) / 2;
|
|
@@ -1725,7 +1725,7 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1725
1725
|
l: Math.round(o * 100)
|
|
1726
1726
|
};
|
|
1727
1727
|
return t.a !== void 0 && (c.a = t.a), c;
|
|
1728
|
-
},
|
|
1728
|
+
}, vn = (t) => {
|
|
1729
1729
|
let { r: e, g: s, b: n } = t;
|
|
1730
1730
|
e /= 255, s /= 255, n /= 255;
|
|
1731
1731
|
const r = Math.max(e, s, n), i = Math.min(e, s, n);
|
|
@@ -1753,18 +1753,18 @@ const ft = (t) => t.length === 1 ? `0${t}` : t, xt = (t) => (t /= 255, t <= 0.03
|
|
|
1753
1753
|
v: Math.round(a * 100)
|
|
1754
1754
|
};
|
|
1755
1755
|
return t.a !== void 0 && (l.a = t.a), l;
|
|
1756
|
-
},
|
|
1757
|
-
function
|
|
1756
|
+
}, Ln = (t) => t == null, Dn = (t) => !Ln(t) && typeof t == "object";
|
|
1757
|
+
function fo(t) {
|
|
1758
1758
|
const e = /^#(?:[0]{3}|[0]{6})\b/, s = /^rgb\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*\)$/, n = /^rgba\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*,\s*(1|1\.0*|0?\.\d+)\)$/, r = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
|
|
1759
1759
|
return !!(e.test(t) || s.test(t) || n.test(t) || r.test(t) || i.test(t));
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function go(t) {
|
|
1762
1762
|
const e = /^#(?:[Ff]{3}|[Ff]{6})\b/, s = /^rgb\s*\(\s*255\s*,\s*255\s*,\s*255\s*\)$/, n = /^rgba\s*\(\s*255\s*,\s*255\s*,\s*255\s*,\s*(1|1\.0*|0?\.\d+)\)$/, r = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
|
|
1763
1763
|
return !!(e.test(t) || s.test(t) || n.test(t) || r.test(t) || i.test(t));
|
|
1764
1764
|
}
|
|
1765
1765
|
var U = /* @__PURE__ */ ((t) => (t[t.COVER = 0] = "COVER", t[t.REPLACE = 1] = "REPLACE", t[t.INTERSECTION = 2] = "INTERSECTION", t))(U || {});
|
|
1766
|
-
const
|
|
1767
|
-
let
|
|
1766
|
+
const Mn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1767
|
+
let Un = (t) => crypto.getRandomValues(new Uint8Array(t)), Tn = (t, e, s) => {
|
|
1768
1768
|
let n = (2 << Math.log(t.length - 1) / Math.LN2) - 1, r = -~(1.6 * n * e / t.length);
|
|
1769
1769
|
return (i = e) => {
|
|
1770
1770
|
let o = "";
|
|
@@ -1775,13 +1775,13 @@ let Mn = (t) => crypto.getRandomValues(new Uint8Array(t)), Un = (t, e, s) => {
|
|
|
1775
1775
|
return o;
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
1778
|
-
},
|
|
1778
|
+
}, Pn = (t, e = 21) => Tn(t, e, Un), xn = (t = 21) => {
|
|
1779
1779
|
let e = "", s = crypto.getRandomValues(new Uint8Array(t));
|
|
1780
1780
|
for (; t--; )
|
|
1781
|
-
e +=
|
|
1781
|
+
e += Mn[s[t] & 63];
|
|
1782
1782
|
return e;
|
|
1783
1783
|
};
|
|
1784
|
-
const
|
|
1784
|
+
const pn = /^-ms-/, Hn = /-([a-z])/g, X = [
|
|
1785
1785
|
"A",
|
|
1786
1786
|
"B",
|
|
1787
1787
|
"C",
|
|
@@ -1864,7 +1864,7 @@ class E {
|
|
|
1864
1864
|
return o ? "FF" : s ? "Opera" : a ? "Safari" : u ? "Chrome" : i ? "Edge" : r ? "IE11" : "Unknown browser";
|
|
1865
1865
|
}
|
|
1866
1866
|
static generateRandomId(e = 21, s) {
|
|
1867
|
-
return s ?
|
|
1867
|
+
return s ? Pn(s, e)() : xn(e);
|
|
1868
1868
|
}
|
|
1869
1869
|
static getClassName(e) {
|
|
1870
1870
|
return e.constructor.name;
|
|
@@ -2067,7 +2067,7 @@ class E {
|
|
|
2067
2067
|
// Support: IE <=9 - 11, Edge 12 - 15
|
|
2068
2068
|
// Microsoft forgot to hump their vendor prefix (#9572)
|
|
2069
2069
|
static camelCase(e) {
|
|
2070
|
-
return e.replace(
|
|
2070
|
+
return e.replace(pn, "ms-").replace(Hn, this.fCamelCase);
|
|
2071
2071
|
}
|
|
2072
2072
|
/**
|
|
2073
2073
|
* remove all null from object
|
|
@@ -2186,7 +2186,7 @@ class E {
|
|
|
2186
2186
|
return s >= n && r >= e;
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function Eo(t) {
|
|
2190
2190
|
if (!t)
|
|
2191
2191
|
return;
|
|
2192
2192
|
const { actualRow: e, actualColumn: s, isMerged: n, isMergedMainCell: r, mergeInfo: i } = t;
|
|
@@ -2200,9 +2200,9 @@ function fo(t) {
|
|
|
2200
2200
|
startY: P,
|
|
2201
2201
|
endY: L,
|
|
2202
2202
|
startX: z,
|
|
2203
|
-
endX:
|
|
2203
|
+
endX: Cs
|
|
2204
2204
|
} = i;
|
|
2205
|
-
l = g, d = R, _ = I, f = A, o = P, a = L, u = z, c =
|
|
2205
|
+
l = g, d = R, _ = I, f = A, o = P, a = L, u = z, c = Cs;
|
|
2206
2206
|
}
|
|
2207
2207
|
return r && (o = i.startY, a = i.endY, u = i.startX, c = i.endX, _ = i.endRow, f = i.endColumn), {
|
|
2208
2208
|
startRow: l,
|
|
@@ -2215,7 +2215,7 @@ function fo(t) {
|
|
|
2215
2215
|
endX: c
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Ro(t) {
|
|
2219
2219
|
if (!t)
|
|
2220
2220
|
return;
|
|
2221
2221
|
const {
|
|
@@ -2236,7 +2236,7 @@ function go(t) {
|
|
|
2236
2236
|
endColumn: _
|
|
2237
2237
|
};
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function mo(t) {
|
|
2240
2240
|
var s;
|
|
2241
2241
|
return !t || (((s = t == null ? void 0 : t.v) == null ? void 0 : s.toString()) || "").length === 0 && !t.p;
|
|
2242
2242
|
}
|
|
@@ -2249,16 +2249,16 @@ function V(t) {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
return null;
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function Oo(t) {
|
|
2253
2253
|
return E.isString(t) && t.substring(0, 1) === "=" && t.length > 1;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function Io(t) {
|
|
2256
2256
|
return E.isString(t) && t.indexOf("=") === -1 && t.length === 6;
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function Ao(t) {
|
|
2259
2259
|
return "";
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function Co(t, e = !1) {
|
|
2262
2262
|
var i;
|
|
2263
2263
|
let s = "";
|
|
2264
2264
|
const n = /* @__PURE__ */ new Map([
|
|
@@ -2293,21 +2293,21 @@ function Io(t, e = !1) {
|
|
|
2293
2293
|
"ul",
|
|
2294
2294
|
() => {
|
|
2295
2295
|
var o;
|
|
2296
|
-
(o = t.ul) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(
|
|
2296
|
+
(o = t.ul) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g, (a, u) => `${u} underline`) : s += "text-decoration-line: underline; ", t.ul.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${V(t.ul.cl)}; `), t.ul.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.ul.t} `));
|
|
2297
2297
|
}
|
|
2298
2298
|
],
|
|
2299
2299
|
[
|
|
2300
2300
|
"st",
|
|
2301
2301
|
() => {
|
|
2302
2302
|
var o;
|
|
2303
|
-
(o = t.st) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(
|
|
2303
|
+
(o = t.st) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g, (a, u) => `${u} line-through`) : s += "text-decoration-line: line-through; ", t.st.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${V(t.st.cl)}; `), t.st.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.st.t} `));
|
|
2304
2304
|
}
|
|
2305
2305
|
],
|
|
2306
2306
|
[
|
|
2307
2307
|
"ol",
|
|
2308
2308
|
() => {
|
|
2309
2309
|
var o;
|
|
2310
|
-
(o = t.ol) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(
|
|
2310
|
+
(o = t.ol) != null && o.s && (s.indexOf("text-decoration-line") > -1 ? s = s.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g, (a, u) => `${u} overline`) : s += "text-decoration-line: overline; ", t.ol.cl && s.indexOf("text-decoration-color") === -1 && (s += `text-decoration-color: ${V(t.ol.cl)}; `), t.ol.t && s.indexOf("text-decoration-style") === -1 && (s += `text-decoration-style: ${t.ol.t} `));
|
|
2311
2311
|
}
|
|
2312
2312
|
],
|
|
2313
2313
|
[
|
|
@@ -2357,13 +2357,13 @@ function Io(t, e = !1) {
|
|
|
2357
2357
|
[
|
|
2358
2358
|
"vt",
|
|
2359
2359
|
() => {
|
|
2360
|
-
t.vt ===
|
|
2360
|
+
t.vt === at.BOTTOM ? s += "vertical-align: bottom; " : t.vt === at.TOP ? s += "vertical-align: top; " : t.vt === at.MIDDLE && (s += "vertical-align: middle; ");
|
|
2361
2361
|
}
|
|
2362
2362
|
],
|
|
2363
2363
|
[
|
|
2364
2364
|
"tb",
|
|
2365
2365
|
() => {
|
|
2366
|
-
t.tb ===
|
|
2366
|
+
t.tb === ut.CLIP ? s += "text-overflow: clip; " : t.tb === ut.OVERFLOW ? s += "text-break: overflow; " : t.tb === ut.WRAP && (s += "word-wrap: break-word;");
|
|
2367
2367
|
}
|
|
2368
2368
|
],
|
|
2369
2369
|
[
|
|
@@ -2383,7 +2383,7 @@ function gt(t) {
|
|
|
2383
2383
|
let e = "";
|
|
2384
2384
|
return t === N.NONE ? e = "none" : t === N.THIN ? e = "0.5pt solid" : t === N.HAIR ? e = "0.5pt double" : t === N.DOTTED ? e = "0.5pt dotted" : t === N.DASHED || t === N.DASH_DOT ? e = "0.5pt dashed" : t === N.DASH_DOT_DOT ? e = "0.5pt dotted" : t === N.DOUBLE ? e = "0.5pt double" : t === N.MEDIUM ? e = "1pt solid" : t === N.MEDIUM_DASHED || t === N.MEDIUM_DASH_DOT ? e = "1pt dashed" : t === N.MEDIUM_DASH_DOT_DOT ? e = "1pt dotted" : t === N.SLANT_DASH_DOT ? e = "0.5pt dashed" : t === N.THICK && (e = "1.5pt solid"), e;
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function No(t) {
|
|
2387
2387
|
let e = 0;
|
|
2388
2388
|
if (t = t.trim(), t === "none")
|
|
2389
2389
|
e = N.NONE;
|
|
@@ -2415,21 +2415,21 @@ function Ht(t, e) {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
return s;
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function So(t) {
|
|
2419
2419
|
const { startRow: e, endRow: s, startColumn: n, endColumn: r } = t;
|
|
2420
2420
|
return !(e < 0 || n < 0 || s < 0 || r < 0);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2423
|
-
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) =>
|
|
2422
|
+
function ze(t, e) {
|
|
2423
|
+
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) => ze(t[s], e[s])) : t === e : !1;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Fn(t, e) {
|
|
2426
2426
|
const s = t.ts || {}, n = e.ts || {};
|
|
2427
|
-
return t.sId !== e.sId ? !1 :
|
|
2427
|
+
return t.sId !== e.sId ? !1 : ze(s, n);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function wo(t, e) {
|
|
2430
2430
|
return e.some((s) => t.indexOf(s) > -1);
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function Xe(t, e, s, n) {
|
|
2433
2433
|
if (t > e && ([t, e] = [e, t]), s > n && ([s, n] = [n, s]), e < s || n < t)
|
|
2434
2434
|
return [t, e];
|
|
2435
2435
|
s < t && (s = t), n > e && (n = e);
|
|
@@ -2437,31 +2437,31 @@ function ze(t, e, s, n) {
|
|
|
2437
2437
|
let i = [];
|
|
2438
2438
|
return t === s ? i = [n + 1 - r, e - r] : e === n ? i = [t, s - 1] : i = [t, e - r], i;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function bo(t) {
|
|
2441
2441
|
if (t == null)
|
|
2442
2442
|
return !1;
|
|
2443
2443
|
const e = t.bullet;
|
|
2444
2444
|
return (e == null ? void 0 : e.listId) != null;
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function vo(t) {
|
|
2447
2447
|
if (t == null)
|
|
2448
2448
|
return !1;
|
|
2449
2449
|
const e = t.paragraphStyle;
|
|
2450
|
-
return
|
|
2450
|
+
return Wn(e);
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function Wn(t) {
|
|
2453
2453
|
return !(t == null || (t.indentStart == null || t.indentStart === 0) && t.hanging == null || t.hanging === 0);
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function Bn(t, e, s) {
|
|
2456
2456
|
return t.slice(0, e) + s + t.slice(e);
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function kn(t, e, s) {
|
|
2459
2459
|
return e > s ? t : t.slice(0, e) + t.slice(s);
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function Lo(t) {
|
|
2462
2462
|
return t === null || t.toString().replace(/\s/g, "") === "" || typeof t == "boolean" ? !1 : !isNaN(t);
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function Do(t) {
|
|
2465
2465
|
let e = 0;
|
|
2466
2466
|
for (let s = 0; s < t.length; s++)
|
|
2467
2467
|
e = t.charCodeAt(s) + (e << 6) + (e << 16) - e;
|
|
@@ -2485,7 +2485,7 @@ class Et {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
const C = Symbol("newer"), v = Symbol("older");
|
|
2488
|
-
class
|
|
2488
|
+
class Gn {
|
|
2489
2489
|
constructor(e) {
|
|
2490
2490
|
h(this, "entry");
|
|
2491
2491
|
this.entry = e;
|
|
@@ -2498,7 +2498,7 @@ class kn {
|
|
|
2498
2498
|
return e ? (this.entry = e[C], { done: !1, value: e.key }) : { done: !0, value: void 0 };
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
class
|
|
2501
|
+
class $n {
|
|
2502
2502
|
constructor(e) {
|
|
2503
2503
|
h(this, "entry");
|
|
2504
2504
|
this.entry = e;
|
|
@@ -2511,7 +2511,7 @@ class Gn {
|
|
|
2511
2511
|
return e ? (this.entry = e[C], { done: !1, value: e.value }) : { done: !0, value: void 0 };
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
|
-
class
|
|
2514
|
+
class Vn {
|
|
2515
2515
|
constructor(e) {
|
|
2516
2516
|
h(this, "entry");
|
|
2517
2517
|
this.entry = e;
|
|
@@ -2524,13 +2524,13 @@ class $n {
|
|
|
2524
2524
|
return e ? (this.entry = e[C], { done: !1, value: [e.key, e.value] }) : { done: !0, value: void 0 };
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
var
|
|
2528
|
-
class
|
|
2527
|
+
var Xi, Ji;
|
|
2528
|
+
class Se {
|
|
2529
2529
|
constructor(e, s) {
|
|
2530
2530
|
h(this, "key");
|
|
2531
2531
|
h(this, "value");
|
|
2532
|
-
h(this,
|
|
2533
|
-
h(this,
|
|
2532
|
+
h(this, Xi);
|
|
2533
|
+
h(this, Ji);
|
|
2534
2534
|
this.key = e, this.value = s, this[C] = void 0, this[v] = void 0;
|
|
2535
2535
|
}
|
|
2536
2536
|
toJSON() {
|
|
@@ -2540,8 +2540,8 @@ class Ne {
|
|
|
2540
2540
|
};
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
|
|
2544
|
-
class
|
|
2543
|
+
Xi = C, Ji = v;
|
|
2544
|
+
class jn {
|
|
2545
2545
|
constructor(...e) {
|
|
2546
2546
|
h(this, "_keymap");
|
|
2547
2547
|
h(this, "size", 0);
|
|
@@ -2583,7 +2583,7 @@ class Vn {
|
|
|
2583
2583
|
this._keymap.clear();
|
|
2584
2584
|
const r = e[Symbol.iterator]();
|
|
2585
2585
|
for (let i = r.next(); !i.done; i = r.next()) {
|
|
2586
|
-
const o = new
|
|
2586
|
+
const o = new Se(i.value[0], i.value[1]);
|
|
2587
2587
|
if (this._keymap.set(o.key, o), s ? (s[C] = o, o[v] = s) : this.oldest = o, s = o, n-- === 0)
|
|
2588
2588
|
throw new Error("overflow");
|
|
2589
2589
|
}
|
|
@@ -2591,7 +2591,7 @@ class Vn {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
set(e, s) {
|
|
2593
2593
|
let n = this._keymap.get(e);
|
|
2594
|
-
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new
|
|
2594
|
+
return n ? (n.value = s, this._markEntryAsUsed(n), this) : (this._keymap.set(e, n = new Se(e, s)), this.newest ? (this.newest[C] = n, n[v] = this.newest) : this.oldest = n, this.newest = n, ++this.size, this.size > this.limit && this.shift(), this);
|
|
2595
2595
|
}
|
|
2596
2596
|
shift() {
|
|
2597
2597
|
const e = this.oldest;
|
|
@@ -2619,16 +2619,16 @@ class Vn {
|
|
|
2619
2619
|
this.oldest = void 0, this.newest = void 0, this.size = 0, this._keymap.clear();
|
|
2620
2620
|
}
|
|
2621
2621
|
keys() {
|
|
2622
|
-
return new
|
|
2622
|
+
return new Gn(this.oldest);
|
|
2623
2623
|
}
|
|
2624
2624
|
values() {
|
|
2625
|
-
return new
|
|
2625
|
+
return new $n(this.oldest);
|
|
2626
2626
|
}
|
|
2627
2627
|
entries() {
|
|
2628
2628
|
return this[Symbol.iterator]();
|
|
2629
2629
|
}
|
|
2630
2630
|
[Symbol.iterator]() {
|
|
2631
|
-
return new
|
|
2631
|
+
return new Vn(this.oldest);
|
|
2632
2632
|
}
|
|
2633
2633
|
forEach(e, s) {
|
|
2634
2634
|
typeof s != "object" && (s = this);
|
|
@@ -2659,13 +2659,13 @@ function Y(t) {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
return e + 1;
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function we(t, e, s) {
|
|
2663
2663
|
const n = Y(s), r = s;
|
|
2664
2664
|
for (let i = n - 1; i >= t; i--)
|
|
2665
2665
|
r[i + 1] = r[i];
|
|
2666
2666
|
r[t] = e;
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function be(t, e, s, n) {
|
|
2669
2669
|
const r = t + e, i = Y(s), o = s;
|
|
2670
2670
|
let a = 0;
|
|
2671
2671
|
const u = {};
|
|
@@ -2685,7 +2685,7 @@ function we(t, e, s, n) {
|
|
|
2685
2685
|
o[t + _] = n[_];
|
|
2686
2686
|
return u;
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function Mo(t, e) {
|
|
2689
2689
|
const s = t, n = Object.keys(s), r = n.length, i = e, o = Object.keys(i), a = o.length, u = {};
|
|
2690
2690
|
let c = 0;
|
|
2691
2691
|
for (let l = 0; l < r; l++, c++) {
|
|
@@ -2698,7 +2698,7 @@ function Lo(t, e) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
return u;
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function Uo(t, e, s) {
|
|
2702
2702
|
const n = s;
|
|
2703
2703
|
if (Y(s) > 0) {
|
|
2704
2704
|
const i = {};
|
|
@@ -2709,13 +2709,13 @@ function Do(t, e, s) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
return {};
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function ve(t, e, s, n) {
|
|
2713
2713
|
const r = t > s;
|
|
2714
2714
|
if (!r && t + e > s)
|
|
2715
2715
|
throw new Error("Invalid move operation");
|
|
2716
|
-
r ?
|
|
2716
|
+
r ? Kn(t, e, s, n) : Yn(t, e, s, n);
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function Kn(t, e, s, n) {
|
|
2719
2719
|
const r = n, i = [];
|
|
2720
2720
|
for (let o = t; o < t + e; o++)
|
|
2721
2721
|
i.push(r[o]);
|
|
@@ -2727,7 +2727,7 @@ function jn(t, e, s, n) {
|
|
|
2727
2727
|
r[s + a] = o, o == null && delete r[s + a];
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function Yn(t, e, s, n) {
|
|
2731
2731
|
const r = n, i = [];
|
|
2732
2732
|
for (let o = t; o < t + e; o++)
|
|
2733
2733
|
i.push(r[o]);
|
|
@@ -2846,29 +2846,29 @@ class G {
|
|
|
2846
2846
|
this._matrix[e] = s;
|
|
2847
2847
|
}
|
|
2848
2848
|
moveRows(e, s, n) {
|
|
2849
|
-
|
|
2849
|
+
ve(e, s, n, this._matrix);
|
|
2850
2850
|
}
|
|
2851
2851
|
moveColumns(e, s, n) {
|
|
2852
2852
|
this.forEach((r, i) => {
|
|
2853
|
-
|
|
2853
|
+
ve(e, s, n, i);
|
|
2854
2854
|
});
|
|
2855
2855
|
}
|
|
2856
2856
|
insertRows(e, s) {
|
|
2857
2857
|
for (let n = e; n < e + s; n++)
|
|
2858
|
-
|
|
2858
|
+
we(n, {}, this._matrix);
|
|
2859
2859
|
}
|
|
2860
2860
|
insertColumns(e, s) {
|
|
2861
2861
|
for (let n = e; n < e + s; n++)
|
|
2862
2862
|
this.forEach((r, i) => {
|
|
2863
|
-
|
|
2863
|
+
we(n, void 0, i);
|
|
2864
2864
|
});
|
|
2865
2865
|
}
|
|
2866
2866
|
removeRows(e, s) {
|
|
2867
|
-
|
|
2867
|
+
be(e, s, this._matrix);
|
|
2868
2868
|
}
|
|
2869
2869
|
removeColumns(e, s) {
|
|
2870
2870
|
this.forEach((n, r) => {
|
|
2871
|
-
|
|
2871
|
+
be(e, s, r);
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
/**
|
|
@@ -3028,21 +3028,21 @@ class G {
|
|
|
3028
3028
|
this._matrix = e;
|
|
3029
3029
|
}
|
|
3030
3030
|
}
|
|
3031
|
-
var
|
|
3032
|
-
class
|
|
3031
|
+
var Je = /* @__PURE__ */ ((t) => (t.INIT = "init", t.FETCHING = "fetching", t.DONE = "done", t))(Je || {});
|
|
3032
|
+
class zn {
|
|
3033
3033
|
constructor() {
|
|
3034
3034
|
h(this, "status", "init");
|
|
3035
3035
|
}
|
|
3036
3036
|
}
|
|
3037
|
-
const
|
|
3037
|
+
const To = (t) => t.some(
|
|
3038
3038
|
(e) => e.status === "init"
|
|
3039
3039
|
/* INIT */
|
|
3040
3040
|
) ? "init" : t.some(
|
|
3041
3041
|
(e) => e.status === "fetching"
|
|
3042
3042
|
/* FETCHING */
|
|
3043
3043
|
) ? "fetching" : "done";
|
|
3044
|
-
var p = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(p || {}),
|
|
3045
|
-
function
|
|
3044
|
+
var p = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(p || {}), Xn = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.ROW = 1] = "ROW", t[t.COLUMN = 2] = "COLUMN", t[t.ALL = 3] = "ALL", t))(Xn || {});
|
|
3045
|
+
function Po(t) {
|
|
3046
3046
|
return [t.startRow, t.startColumn, t.endRow, t.endColumn];
|
|
3047
3047
|
}
|
|
3048
3048
|
const Q = class Q {
|
|
@@ -3124,32 +3124,32 @@ const Q = class Q {
|
|
|
3124
3124
|
);
|
|
3125
3125
|
}
|
|
3126
3126
|
static subtract(e, s) {
|
|
3127
|
-
if (s.startRow
|
|
3127
|
+
if (s.startRow > e.endRow || s.endRow < e.startRow || s.startColumn > e.endColumn || s.endColumn < e.startColumn)
|
|
3128
3128
|
return [e];
|
|
3129
3129
|
const n = [];
|
|
3130
|
-
s.startRow
|
|
3130
|
+
s.startRow >= e.startRow && n.push({
|
|
3131
3131
|
startRow: e.startRow,
|
|
3132
3132
|
startColumn: e.startColumn,
|
|
3133
|
-
endRow: s.startRow,
|
|
3133
|
+
endRow: s.startRow - 1,
|
|
3134
3134
|
endColumn: e.endColumn
|
|
3135
|
-
}), s.endRow
|
|
3136
|
-
startRow: s.endRow,
|
|
3135
|
+
}), s.endRow <= e.endRow && n.push({
|
|
3136
|
+
startRow: s.endRow + 1,
|
|
3137
3137
|
startColumn: e.startColumn,
|
|
3138
3138
|
endRow: e.endRow,
|
|
3139
3139
|
endColumn: e.endColumn
|
|
3140
3140
|
});
|
|
3141
3141
|
const r = Math.max(e.startRow, s.startRow), i = Math.min(e.endRow, s.endRow);
|
|
3142
|
-
return s.startColumn
|
|
3142
|
+
return s.startColumn >= e.startColumn && n.push({
|
|
3143
3143
|
startRow: r,
|
|
3144
3144
|
startColumn: e.startColumn,
|
|
3145
3145
|
endRow: i,
|
|
3146
|
-
endColumn: s.startColumn
|
|
3147
|
-
}), s.endColumn
|
|
3146
|
+
endColumn: s.startColumn - 1
|
|
3147
|
+
}), s.endColumn <= e.endColumn && n.push({
|
|
3148
3148
|
startRow: r,
|
|
3149
|
-
startColumn: s.endColumn,
|
|
3149
|
+
startColumn: s.endColumn + 1,
|
|
3150
3150
|
endRow: i,
|
|
3151
3151
|
endColumn: e.endColumn
|
|
3152
|
-
}), n;
|
|
3152
|
+
}), n.filter((a) => a.startRow <= a.endRow && a.startColumn <= a.endColumn);
|
|
3153
3153
|
}
|
|
3154
3154
|
};
|
|
3155
3155
|
h(Q, "getRelativeRange", (e, s) => ({
|
|
@@ -3178,7 +3178,7 @@ h(Q, "getRelativeRange", (e, s) => ({
|
|
|
3178
3178
|
endColumn: e.endColumn + s
|
|
3179
3179
|
}));
|
|
3180
3180
|
let bt = Q;
|
|
3181
|
-
class
|
|
3181
|
+
class xo {
|
|
3182
3182
|
constructor(e, s) {
|
|
3183
3183
|
h(this, "_values", []);
|
|
3184
3184
|
h(this, "_keys", []);
|
|
@@ -3238,7 +3238,7 @@ class To {
|
|
|
3238
3238
|
this._values = [], this._keys = [], this._keyMaps.clear();
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function Le(t, e, s, n) {
|
|
3242
3242
|
return {
|
|
3243
3243
|
forEach(r) {
|
|
3244
3244
|
for (let i = t; i <= e; i++)
|
|
@@ -3247,7 +3247,7 @@ function ve(t, e, s, n) {
|
|
|
3247
3247
|
}
|
|
3248
3248
|
};
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
function po(t) {
|
|
3251
3251
|
if (t == null || t.length === 0)
|
|
3252
3252
|
return Number.NaN;
|
|
3253
3253
|
const e = t.toLowerCase().split(""), s = e.length, n = (o) => o.charCodeAt(0) - 96;
|
|
@@ -3256,37 +3256,37 @@ function Po(t) {
|
|
|
3256
3256
|
i = n(e[o]), r += i * 26 ** (s - o - 1);
|
|
3257
3257
|
return r === 0 ? Number.NaN : r - 1;
|
|
3258
3258
|
}
|
|
3259
|
-
const vt = 65,
|
|
3260
|
-
function
|
|
3261
|
-
const e =
|
|
3259
|
+
const vt = 65, Qe = 90, Jn = 97;
|
|
3260
|
+
function Ho(t) {
|
|
3261
|
+
const e = Qe - vt + 1;
|
|
3262
3262
|
let s = "";
|
|
3263
3263
|
for (; t >= 0; )
|
|
3264
3264
|
s = String.fromCharCode(t % e + vt) + s, t = Math.floor(t / e) - 1;
|
|
3265
3265
|
return s;
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function Qn(t, e) {
|
|
3268
3268
|
let s = "";
|
|
3269
3269
|
for (; e > 0; )
|
|
3270
3270
|
s += t, e--;
|
|
3271
3271
|
return s;
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3274
|
-
const s =
|
|
3275
|
-
let n =
|
|
3273
|
+
function Fo(t, e = !1) {
|
|
3274
|
+
const s = Qe - vt + 1;
|
|
3275
|
+
let n = Jn;
|
|
3276
3276
|
e && (n = vt);
|
|
3277
3277
|
const r = String.fromCharCode(t % s + n), i = Math.floor(t / s) + 1;
|
|
3278
|
-
return
|
|
3278
|
+
return Qn(r, i);
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function Wo(t, e) {
|
|
3281
3281
|
return t.zIndex > e.zIndex ? 1 : t.zIndex === e.zIndex ? 0 : -1;
|
|
3282
3282
|
}
|
|
3283
|
-
function
|
|
3283
|
+
function Bo(t, e) {
|
|
3284
3284
|
return t.zIndex > e.zIndex ? -1 : t.zIndex === e.zIndex ? 0 : 1;
|
|
3285
3285
|
}
|
|
3286
3286
|
function dt(t = "index", e = 1) {
|
|
3287
3287
|
return (s, n) => s[t] > n[t] ? e : s[t] === n[t] ? 0 : -e;
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function ko(t, e) {
|
|
3290
3290
|
let s;
|
|
3291
3291
|
return function(...n) {
|
|
3292
3292
|
const r = this, i = function() {
|
|
@@ -3295,9 +3295,9 @@ function Wo(t, e) {
|
|
|
3295
3295
|
clearTimeout(s), s = setTimeout(i, e);
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
|
-
var
|
|
3299
|
-
`, 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))(
|
|
3300
|
-
function
|
|
3298
|
+
var qn = /* @__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))(qn || {}), qe = /* @__PURE__ */ ((t) => (t.PARAGRAPH = "\r", t.SECTION_BREAK = `
|
|
3299
|
+
`, 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))(qe || {});
|
|
3300
|
+
function Ze(t) {
|
|
3301
3301
|
const e = [];
|
|
3302
3302
|
for (const s of t) {
|
|
3303
3303
|
const { st: n, ed: r, ts: i } = s;
|
|
@@ -3308,7 +3308,7 @@ function qe(t) {
|
|
|
3308
3308
|
continue;
|
|
3309
3309
|
}
|
|
3310
3310
|
const o = e.pop();
|
|
3311
|
-
|
|
3311
|
+
Fn(s, o) && E.hasIntersectionBetweenTwoRanges(o.st, o.ed, s.st, s.ed) ? e.push({
|
|
3312
3312
|
...s,
|
|
3313
3313
|
st: o.st,
|
|
3314
3314
|
ed: r
|
|
@@ -3316,7 +3316,7 @@ function qe(t) {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
return e;
|
|
3318
3318
|
}
|
|
3319
|
-
function
|
|
3319
|
+
function ye(t, e, s, n) {
|
|
3320
3320
|
var c;
|
|
3321
3321
|
const { textRuns: r } = t;
|
|
3322
3322
|
if (r == null)
|
|
@@ -3359,7 +3359,7 @@ function Ze(t, e, s, n) {
|
|
|
3359
3359
|
else
|
|
3360
3360
|
d.st += s, d.ed += s, a || (a = !0, i.push(...u)), i.push(d);
|
|
3361
3361
|
}
|
|
3362
|
-
a || (a = !0, i.push(...u)), t.textRuns =
|
|
3362
|
+
a || (a = !0, i.push(...u)), t.textRuns = Ze(i);
|
|
3363
3363
|
}
|
|
3364
3364
|
function he(t, e, s, n) {
|
|
3365
3365
|
const { paragraphs: r } = t;
|
|
@@ -3379,14 +3379,14 @@ function he(t, e, s, n) {
|
|
|
3379
3379
|
const f = _.startIndex;
|
|
3380
3380
|
c = a.indexOf(f);
|
|
3381
3381
|
}
|
|
3382
|
-
if (o ===
|
|
3382
|
+
if (o === qe.PARAGRAPH && i.length === 1) {
|
|
3383
3383
|
const l = r[u], d = i[0], _ = l.paragraphStyle, f = l.bullet;
|
|
3384
3384
|
l.paragraphStyle = d.paragraphStyle, l.bullet = d.bullet, d.paragraphStyle = _, d.bullet = f;
|
|
3385
3385
|
}
|
|
3386
3386
|
c !== -1 && r.splice(c, 1), r.push(...i), r.sort(dt("startIndex"));
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
function
|
|
3389
|
+
function Zn(t, e, s, n) {
|
|
3390
3390
|
const { sectionBreaks: r } = t;
|
|
3391
3391
|
if (r == null)
|
|
3392
3392
|
return;
|
|
@@ -3403,7 +3403,7 @@ function qn(t, e, s, n) {
|
|
|
3403
3403
|
r.push(...i), r.sort(dt("startIndex"));
|
|
3404
3404
|
}
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3406
|
+
function ts(t, e, s, n) {
|
|
3407
3407
|
const { customBlocks: r } = t;
|
|
3408
3408
|
if (r == null)
|
|
3409
3409
|
return;
|
|
@@ -3437,7 +3437,7 @@ function de(t, e, s, n) {
|
|
|
3437
3437
|
r.push(...i), r.sort(dt("startIndex"));
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function yn(t, e, s, n) {
|
|
3441
3441
|
const { customRanges: r } = t;
|
|
3442
3442
|
if (r == null)
|
|
3443
3443
|
return;
|
|
@@ -3454,7 +3454,7 @@ function Zn(t, e, s, n) {
|
|
|
3454
3454
|
r.push(...i), r.sort(dt("startIndex"));
|
|
3455
3455
|
}
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function es(t, e, s) {
|
|
3458
3458
|
const { textRuns: n } = t, r = s, i = s + e, o = [];
|
|
3459
3459
|
if (n) {
|
|
3460
3460
|
const a = [];
|
|
@@ -3487,7 +3487,7 @@ function ts(t, e, s) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
return o;
|
|
3489
3489
|
}
|
|
3490
|
-
function
|
|
3490
|
+
function ss(t, e, s) {
|
|
3491
3491
|
const { paragraphs: n } = t, r = s, i = s + e, o = [];
|
|
3492
3492
|
if (n) {
|
|
3493
3493
|
const a = [];
|
|
@@ -3507,7 +3507,7 @@ function es(t, e, s) {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
return o;
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function ns(t, e, s) {
|
|
3511
3511
|
const { sectionBreaks: n } = t, r = s, i = s + e - 1, o = [];
|
|
3512
3512
|
if (n) {
|
|
3513
3513
|
const a = [];
|
|
@@ -3527,7 +3527,7 @@ function ss(t, e, s) {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
return o;
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3530
|
+
function rs(t, e, s) {
|
|
3531
3531
|
const { customBlocks: n } = t, r = s, i = s + e - 1, o = [];
|
|
3532
3532
|
if (n) {
|
|
3533
3533
|
const a = [];
|
|
@@ -3547,7 +3547,7 @@ function ns(t, e, s) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
return o;
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3550
|
+
function is(t, e, s) {
|
|
3551
3551
|
const { tables: n } = t, r = s, i = s + e - 1, o = [];
|
|
3552
3552
|
if (n) {
|
|
3553
3553
|
const a = [];
|
|
@@ -3561,7 +3561,7 @@ function rs(t, e, s) {
|
|
|
3561
3561
|
});
|
|
3562
3562
|
continue;
|
|
3563
3563
|
} else if (d <= r && _ >= i) {
|
|
3564
|
-
const f =
|
|
3564
|
+
const f = Xe(d, _, r, i);
|
|
3565
3565
|
l.startIndex = f[0], l.endIndex = f[1];
|
|
3566
3566
|
} else
|
|
3567
3567
|
i < d && (l.startIndex -= e, l.endIndex -= e);
|
|
@@ -3571,7 +3571,7 @@ function rs(t, e, s) {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
return o;
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3574
|
+
function os(t, e, s) {
|
|
3575
3575
|
const { customRanges: n } = t, r = s, i = s + e - 1, o = [];
|
|
3576
3576
|
if (n) {
|
|
3577
3577
|
const a = [];
|
|
@@ -3585,7 +3585,7 @@ function is(t, e, s) {
|
|
|
3585
3585
|
});
|
|
3586
3586
|
continue;
|
|
3587
3587
|
} else if (d <= r && _ >= i) {
|
|
3588
|
-
const f =
|
|
3588
|
+
const f = Xe(d, _, r, i);
|
|
3589
3589
|
l.startIndex = f[0], l.endIndex = f[1];
|
|
3590
3590
|
} else
|
|
3591
3591
|
i < d && (l.startIndex -= e, l.endIndex -= e);
|
|
@@ -3595,10 +3595,10 @@ function is(t, e, s) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
return o;
|
|
3597
3597
|
}
|
|
3598
|
-
function
|
|
3599
|
-
const { dataStream: n } = t, r = s, i = s + e, o =
|
|
3598
|
+
function tr(t, e, s) {
|
|
3599
|
+
const { dataStream: n } = t, r = s, i = s + e, o = es(t, e, s), a = ss(t, e, s), u = ns(t, e, s), c = rs(t, e, s), l = is(t, e, s), d = os(t, e, s);
|
|
3600
3600
|
let _ = "";
|
|
3601
|
-
return n && (t.dataStream =
|
|
3601
|
+
return n && (t.dataStream = kn(n, r, i), _ = n.slice(r, i)), {
|
|
3602
3602
|
dataStream: _,
|
|
3603
3603
|
textRuns: o,
|
|
3604
3604
|
paragraphs: a,
|
|
@@ -3608,11 +3608,11 @@ function yn(t, e, s) {
|
|
|
3608
3608
|
customRanges: d
|
|
3609
3609
|
};
|
|
3610
3610
|
}
|
|
3611
|
-
function
|
|
3612
|
-
t.dataStream =
|
|
3611
|
+
function er(t, e, s, n) {
|
|
3612
|
+
t.dataStream = Bn(t.dataStream, n, e.dataStream), ye(t, e, s, n), he(t, e, s, n), Zn(t, e, s, n), ts(t, e, s, n), de(t, e, s, n), yn(t, e, s, n);
|
|
3613
3613
|
}
|
|
3614
|
-
var
|
|
3615
|
-
const
|
|
3614
|
+
var sr = /* @__PURE__ */ ((t) => (t[t.character = 0] = "character", t[t.paragraph = 1] = "paragraph", t[t.table = 2] = "table", t[t.numbering = 3] = "numbering", t))(sr || {}), nr = /* @__PURE__ */ ((t) => (t[t.TAB = 0] = "TAB", t[t.SPACE = 1] = "SPACE", t[t.NOTHING = 2] = "NOTHING", t))(nr || {}), At = /* @__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))(At || {}), Z = /* @__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))(Z || {}), rr = /* @__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))(rr || {}), ir = /* @__PURE__ */ ((t) => (t[t.DRAWING = 0] = "DRAWING", t[t.CUSTOM = 1] = "CUSTOM", t))(ir || {}), or = /* @__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))(or || {}), ar = /* @__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))(ar || {}), ur = /* @__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))(ur || {}), lr = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.TBRL = 1] = "TBRL", t[t.LRTBV = 2] = "LRTBV", t))(lr || {}), cr = /* @__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))(cr || {}), hr = /* @__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))(hr || {}), dr = /* @__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))(dr || {}), _r = /* @__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))(_r || {}), fr = /* @__PURE__ */ ((t) => (t[t.AUTO = 0] = "AUTO", t[t.AT_LEAST = 1] = "AT_LEAST", t[t.EXACT = 2] = "EXACT", t))(fr || {}), gr = /* @__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))(gr || {}), 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 || {}), Rr = /* @__PURE__ */ ((t) => (t.EVENLY_DISTRIBUTED = "0", t.FIXED_WIDTH = "1", t))(Rr || {}), mr = /* @__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))(mr || {}), Or = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.BOLD = "bold", t.ITALIC = "italic", t))(Or || {}), 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 || {}), Ar = /* @__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))(Ar || {}), Cr = /* @__PURE__ */ ((t) => (t[t.POINT = 0] = "POINT", t[t.LINE = 1] = "LINE", t[t.CHARACTER = 2] = "CHARACTER", t))(Cr || {}), Nr = /* @__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))(Nr || {}), Sr = /* @__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))(Sr || {}), wr = /* @__PURE__ */ ((t) => (t[t.compressPunctuation = 0] = "compressPunctuation", t[t.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", t[t.doNotCompress = 2] = "doNotCompress", t))(wr || {}), br = /* @__PURE__ */ ((t) => (t[t.PORTRAIT = 0] = "PORTRAIT", t[t.LANDSCAPE = 1] = "LANDSCAPE", t))(br || {}), Qt = /* @__PURE__ */ ((t) => (t.BULLET_LIST = "BULLET_LIST", t.ORDER_LIST = "ORDER_LIST", t))(Qt || {});
|
|
3615
|
+
const Go = {
|
|
3616
3616
|
BULLET_LIST: {
|
|
3617
3617
|
listType: "BULLET_LIST",
|
|
3618
3618
|
nestingLevel: [
|
|
@@ -3690,8 +3690,8 @@ const Bo = {
|
|
|
3690
3690
|
]
|
|
3691
3691
|
}
|
|
3692
3692
|
};
|
|
3693
|
-
function
|
|
3694
|
-
const i =
|
|
3693
|
+
function vr(t, e, s, n, r) {
|
|
3694
|
+
const i = Lr(t, e, s, n, r), o = Dr(t, e, s, n, r), a = Mr(t, e, s, n, r), u = Ur(t, e, s, n, r), c = Tr(t, e, s, n, r), l = Pr(t, e, s, n, r);
|
|
3695
3695
|
return {
|
|
3696
3696
|
dataStream: "",
|
|
3697
3697
|
textRuns: i,
|
|
@@ -3702,18 +3702,18 @@ function br(t, e, s, n, r) {
|
|
|
3702
3702
|
customRanges: l
|
|
3703
3703
|
};
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function Lr(t, e, s, n, r) {
|
|
3706
3706
|
const { textRuns: i } = t, { textRuns: o } = e;
|
|
3707
3707
|
if (i == null || o == null)
|
|
3708
3708
|
return;
|
|
3709
|
-
const a =
|
|
3709
|
+
const a = es(t, s, n);
|
|
3710
3710
|
if (r !== U.REPLACE) {
|
|
3711
|
-
const u =
|
|
3711
|
+
const u = as(o, a, r);
|
|
3712
3712
|
e.textRuns = u;
|
|
3713
3713
|
}
|
|
3714
|
-
return
|
|
3714
|
+
return ye(t, e, s, n), a;
|
|
3715
3715
|
}
|
|
3716
|
-
function
|
|
3716
|
+
function as(t, e, s) {
|
|
3717
3717
|
if (e.length === 0)
|
|
3718
3718
|
return t;
|
|
3719
3719
|
t = E.deepClone(t), e = E.deepClone(e);
|
|
@@ -3744,13 +3744,13 @@ function os(t, e, s) {
|
|
|
3744
3744
|
}
|
|
3745
3745
|
c();
|
|
3746
3746
|
const l = n[n.length - 1], d = t[r - 1], _ = e[i - 1];
|
|
3747
|
-
return l.ed !== Math.max(d.ed, _.ed) && (d.ed > _.ed ? n.push(d) : n.push(_)),
|
|
3747
|
+
return l.ed !== Math.max(d.ed, _.ed) && (d.ed > _.ed ? n.push(d) : n.push(_)), Ze(n);
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3749
|
+
function Dr(t, e, s, n, r) {
|
|
3750
3750
|
const { paragraphs: i } = t, { paragraphs: o } = e;
|
|
3751
3751
|
if (i == null || o == null)
|
|
3752
3752
|
return;
|
|
3753
|
-
const a =
|
|
3753
|
+
const a = ss(t, s, n);
|
|
3754
3754
|
if (r !== U.REPLACE) {
|
|
3755
3755
|
const u = [];
|
|
3756
3756
|
for (const c of o) {
|
|
@@ -3796,11 +3796,11 @@ function Lr(t, e, s, n, r) {
|
|
|
3796
3796
|
}
|
|
3797
3797
|
return he(t, e, s, n), a;
|
|
3798
3798
|
}
|
|
3799
|
-
function
|
|
3799
|
+
function Mr(t, e, s, n, r) {
|
|
3800
3800
|
const { sectionBreaks: i } = t, { sectionBreaks: o } = e;
|
|
3801
3801
|
if (i == null || o == null)
|
|
3802
3802
|
return;
|
|
3803
|
-
const a =
|
|
3803
|
+
const a = ns(t, s, n);
|
|
3804
3804
|
if (r !== U.REPLACE) {
|
|
3805
3805
|
const u = [];
|
|
3806
3806
|
for (const c of o) {
|
|
@@ -3825,11 +3825,11 @@ function Dr(t, e, s, n, r) {
|
|
|
3825
3825
|
}
|
|
3826
3826
|
return he(t, e, s, n), a;
|
|
3827
3827
|
}
|
|
3828
|
-
function
|
|
3828
|
+
function Ur(t, e, s, n, r) {
|
|
3829
3829
|
const { customBlocks: i } = t, { customBlocks: o } = e;
|
|
3830
3830
|
if (i == null || o == null)
|
|
3831
3831
|
return;
|
|
3832
|
-
const a =
|
|
3832
|
+
const a = rs(t, s, n);
|
|
3833
3833
|
if (r !== U.REPLACE) {
|
|
3834
3834
|
const u = [];
|
|
3835
3835
|
for (const c of o) {
|
|
@@ -3852,13 +3852,13 @@ function Mr(t, e, s, n, r) {
|
|
|
3852
3852
|
}
|
|
3853
3853
|
e.customBlocks = u;
|
|
3854
3854
|
}
|
|
3855
|
-
return
|
|
3855
|
+
return ts(t, e, s, n), a;
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function Tr(t, e, s, n, r) {
|
|
3858
3858
|
const { tables: i } = t, { tables: o } = e;
|
|
3859
3859
|
if (i == null || o == null)
|
|
3860
3860
|
return;
|
|
3861
|
-
const a =
|
|
3861
|
+
const a = is(t, s, n);
|
|
3862
3862
|
if (r !== U.REPLACE) {
|
|
3863
3863
|
const u = [];
|
|
3864
3864
|
for (const c of o) {
|
|
@@ -3883,11 +3883,11 @@ function Ur(t, e, s, n, r) {
|
|
|
3883
3883
|
}
|
|
3884
3884
|
return de(t, e, s, n), a;
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function Pr(t, e, s, n, r) {
|
|
3887
3887
|
const { customRanges: i } = t, { tables: o } = e;
|
|
3888
3888
|
if (i == null || o == null)
|
|
3889
3889
|
return;
|
|
3890
|
-
const a =
|
|
3890
|
+
const a = os(t, s, n);
|
|
3891
3891
|
if (r !== U.REPLACE) {
|
|
3892
3892
|
const u = [];
|
|
3893
3893
|
for (const c of o) {
|
|
@@ -3913,7 +3913,7 @@ function Tr(t, e, s, n, r) {
|
|
|
3913
3913
|
return de(t, e, s, n), a;
|
|
3914
3914
|
}
|
|
3915
3915
|
var O = /* @__PURE__ */ ((t) => (t.RETAIN = "r", t.INSERT = "i", t.DELETE = "d", t))(O || {});
|
|
3916
|
-
function
|
|
3916
|
+
function us(t, e, s) {
|
|
3917
3917
|
const { dataStream: n, textRuns: r = [], paragraphs: i = [] } = t, o = {
|
|
3918
3918
|
dataStream: n.slice(e, s)
|
|
3919
3919
|
}, a = [];
|
|
@@ -3947,12 +3947,12 @@ function as(t, e, s) {
|
|
|
3947
3947
|
startIndex: c.startIndex - e
|
|
3948
3948
|
}))), o;
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3950
|
+
function De(t, e, s = U.COVER) {
|
|
3951
3951
|
if (e.dataStream !== "")
|
|
3952
3952
|
throw new Error("Cannot compose other body with non-empty dataStream");
|
|
3953
3953
|
const n = {
|
|
3954
3954
|
dataStream: t.dataStream
|
|
3955
|
-
}, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: a = [] } = e, u =
|
|
3955
|
+
}, { textRuns: r = [], paragraphs: i = [] } = t, { textRuns: o = [], paragraphs: a = [] } = e, u = as(o, r, s);
|
|
3956
3956
|
u.length && (n.textRuns = u);
|
|
3957
3957
|
const c = [];
|
|
3958
3958
|
let l = 0, d = 0;
|
|
@@ -3962,21 +3962,64 @@ function Le(t, e, s = U.COVER) {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
return l < i.length && c.push(...i.slice(l)), d < a.length && c.push(...a.slice(d)), c.length && (n.paragraphs = c), n;
|
|
3964
3964
|
}
|
|
3965
|
-
function
|
|
3965
|
+
function xr(t) {
|
|
3966
3966
|
const { body: e } = t;
|
|
3967
3967
|
if (e == null)
|
|
3968
3968
|
return !0;
|
|
3969
3969
|
const { textRuns: s = [], paragraphs: n = [] } = e;
|
|
3970
3970
|
return s.length === 0 && n.length === 0;
|
|
3971
3971
|
}
|
|
3972
|
-
|
|
3972
|
+
function pr(t = E.generateRandomId(6), e = it.EN_US, s = "") {
|
|
3973
|
+
return {
|
|
3974
|
+
id: t,
|
|
3975
|
+
locale: e,
|
|
3976
|
+
title: s,
|
|
3977
|
+
// title should get from request.
|
|
3978
|
+
body: {
|
|
3979
|
+
dataStream: `\r
|
|
3980
|
+
`,
|
|
3981
|
+
textRuns: [],
|
|
3982
|
+
paragraphs: [
|
|
3983
|
+
{
|
|
3984
|
+
startIndex: 0,
|
|
3985
|
+
paragraphStyle: {
|
|
3986
|
+
spaceAbove: 5,
|
|
3987
|
+
lineSpacing: 1,
|
|
3988
|
+
spaceBelow: 0
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
],
|
|
3992
|
+
sectionBreaks: [
|
|
3993
|
+
{
|
|
3994
|
+
startIndex: 1
|
|
3995
|
+
}
|
|
3996
|
+
]
|
|
3997
|
+
},
|
|
3998
|
+
documentStyle: {
|
|
3999
|
+
pageSize: {
|
|
4000
|
+
width: 793.3333333333334,
|
|
4001
|
+
height: 1122.6666666666667
|
|
4002
|
+
},
|
|
4003
|
+
marginTop: 50,
|
|
4004
|
+
marginBottom: 50,
|
|
4005
|
+
marginRight: 40,
|
|
4006
|
+
marginLeft: 40,
|
|
4007
|
+
renderConfig: {
|
|
4008
|
+
vertexAngle: 0,
|
|
4009
|
+
centerAngle: 0
|
|
4010
|
+
}
|
|
4011
|
+
},
|
|
4012
|
+
settings: {}
|
|
4013
|
+
};
|
|
4014
|
+
}
|
|
4015
|
+
const ls = {
|
|
3973
4016
|
id: "default_doc",
|
|
3974
4017
|
documentStyle: {}
|
|
3975
4018
|
};
|
|
3976
|
-
class
|
|
4019
|
+
class Hr {
|
|
3977
4020
|
constructor(e) {
|
|
3978
4021
|
h(this, "snapshot");
|
|
3979
|
-
this.snapshot = { ...
|
|
4022
|
+
this.snapshot = { ...ls, ...e };
|
|
3980
4023
|
}
|
|
3981
4024
|
get drawings() {
|
|
3982
4025
|
return this.snapshot.drawings;
|
|
@@ -4056,9 +4099,10 @@ class xr {
|
|
|
4056
4099
|
} : this.snapshot.settings.zoomRatio = 1;
|
|
4057
4100
|
}
|
|
4058
4101
|
}
|
|
4059
|
-
class rt extends
|
|
4102
|
+
class rt extends Hr {
|
|
4060
4103
|
constructor(s) {
|
|
4061
4104
|
var r;
|
|
4105
|
+
E.isEmptyObject(s) && (s = pr());
|
|
4062
4106
|
super(s);
|
|
4063
4107
|
h(this, "_unitId");
|
|
4064
4108
|
h(this, "headerModelMap", /* @__PURE__ */ new Map());
|
|
@@ -4087,7 +4131,7 @@ class rt extends xr {
|
|
|
4087
4131
|
reset(s) {
|
|
4088
4132
|
if (s.id && s.id !== this._unitId)
|
|
4089
4133
|
throw new Error("Cannot reset a document model with a different unit id!");
|
|
4090
|
-
this.snapshot = { ...
|
|
4134
|
+
this.snapshot = { ...ls, ...s }, this._initializeHeaderFooterModel();
|
|
4091
4135
|
}
|
|
4092
4136
|
getSelfOrHeaderFooterModel(s) {
|
|
4093
4137
|
if (s != null) {
|
|
@@ -4102,7 +4146,7 @@ class rt extends xr {
|
|
|
4102
4146
|
return this._unitId;
|
|
4103
4147
|
}
|
|
4104
4148
|
apply(s) {
|
|
4105
|
-
const n = [], r = new
|
|
4149
|
+
const n = [], r = new ys();
|
|
4106
4150
|
return r.reset(), s.forEach((i) => {
|
|
4107
4151
|
if (i = E.deepClone(i), i.t === O.RETAIN) {
|
|
4108
4152
|
const { coverType: o, body: a, len: u, segmentId: c } = i;
|
|
@@ -4142,7 +4186,7 @@ class rt extends xr {
|
|
|
4142
4186
|
sliceBody(s, n) {
|
|
4143
4187
|
const r = this.getBody();
|
|
4144
4188
|
if (r != null)
|
|
4145
|
-
return
|
|
4189
|
+
return us(r, s, n);
|
|
4146
4190
|
}
|
|
4147
4191
|
_updateApply(s, n, r, i = U.COVER, o) {
|
|
4148
4192
|
if (s == null)
|
|
@@ -4150,20 +4194,20 @@ class rt extends xr {
|
|
|
4150
4194
|
const a = this.snapshot, u = Ht(a, o);
|
|
4151
4195
|
if (u == null)
|
|
4152
4196
|
throw new Error("no body has changed");
|
|
4153
|
-
return
|
|
4197
|
+
return vr(u, s, n, r, i);
|
|
4154
4198
|
}
|
|
4155
4199
|
_deleteApply(s, n, r) {
|
|
4156
4200
|
const i = this.snapshot, o = Ht(i, r);
|
|
4157
4201
|
if (o == null)
|
|
4158
4202
|
throw new Error("no body has changed");
|
|
4159
|
-
return s <= 0 ? { dataStream: "" } :
|
|
4203
|
+
return s <= 0 ? { dataStream: "" } : tr(o, s, n);
|
|
4160
4204
|
}
|
|
4161
4205
|
_insertApply(s, n, r, i) {
|
|
4162
4206
|
const o = this.snapshot, a = Ht(o, i);
|
|
4163
4207
|
if (n !== 0) {
|
|
4164
4208
|
if (a == null)
|
|
4165
4209
|
throw new Error("no body has changed");
|
|
4166
|
-
|
|
4210
|
+
er(a, s, n, r);
|
|
4167
4211
|
}
|
|
4168
4212
|
}
|
|
4169
4213
|
_initializeHeaderFooterModel() {
|
|
@@ -4183,7 +4227,7 @@ class rt extends xr {
|
|
|
4183
4227
|
super.updateDocumentId(s), this._unitId = s;
|
|
4184
4228
|
}
|
|
4185
4229
|
}
|
|
4186
|
-
const
|
|
4230
|
+
const Fr = "0.1.4", Rt = {
|
|
4187
4231
|
sheetId: "",
|
|
4188
4232
|
range: {
|
|
4189
4233
|
startRow: -1,
|
|
@@ -4191,25 +4235,25 @@ const pr = "0.1.3", Rt = {
|
|
|
4191
4235
|
startColumn: -1,
|
|
4192
4236
|
endColumn: -1
|
|
4193
4237
|
}
|
|
4194
|
-
},
|
|
4238
|
+
}, $o = {
|
|
4195
4239
|
startRow: -1,
|
|
4196
4240
|
startColumn: -1,
|
|
4197
4241
|
endRow: -1,
|
|
4198
4242
|
endColumn: -1
|
|
4199
|
-
},
|
|
4243
|
+
}, Vo = {
|
|
4200
4244
|
startRow: 0,
|
|
4201
4245
|
startColumn: 0,
|
|
4202
4246
|
endRow: 0,
|
|
4203
4247
|
endColumn: 0
|
|
4204
|
-
},
|
|
4248
|
+
}, jo = {
|
|
4205
4249
|
row: 0,
|
|
4206
4250
|
column: 0
|
|
4207
|
-
},
|
|
4251
|
+
}, Wr = {
|
|
4208
4252
|
id: "",
|
|
4209
4253
|
sheetOrder: [],
|
|
4210
4254
|
name: "",
|
|
4211
|
-
appVersion:
|
|
4212
|
-
locale:
|
|
4255
|
+
appVersion: Fr,
|
|
4256
|
+
locale: it.ZH_CN,
|
|
4213
4257
|
styles: {},
|
|
4214
4258
|
sheets: {},
|
|
4215
4259
|
resources: []
|
|
@@ -4286,11 +4330,11 @@ const pr = "0.1.3", Rt = {
|
|
|
4286
4330
|
/**
|
|
4287
4331
|
* verticalAlignment
|
|
4288
4332
|
*/
|
|
4289
|
-
vt:
|
|
4333
|
+
vt: at.UNSPECIFIED,
|
|
4290
4334
|
/**
|
|
4291
4335
|
* wrapStrategy
|
|
4292
4336
|
*/
|
|
4293
|
-
tb:
|
|
4337
|
+
tb: ut.UNSPECIFIED,
|
|
4294
4338
|
/**
|
|
4295
4339
|
* padding
|
|
4296
4340
|
*/
|
|
@@ -4300,7 +4344,7 @@ const pr = "0.1.3", Rt = {
|
|
|
4300
4344
|
b: 0,
|
|
4301
4345
|
l: 0
|
|
4302
4346
|
}
|
|
4303
|
-
},
|
|
4347
|
+
}, Br = {
|
|
4304
4348
|
id: "default_slide",
|
|
4305
4349
|
title: "defaultSlide",
|
|
4306
4350
|
pageSize: {
|
|
@@ -4308,11 +4352,11 @@ const pr = "0.1.3", Rt = {
|
|
|
4308
4352
|
height: 300
|
|
4309
4353
|
}
|
|
4310
4354
|
};
|
|
4311
|
-
var
|
|
4312
|
-
class
|
|
4355
|
+
var kr = /* @__PURE__ */ ((t) => (t.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", t.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", t))(kr || {});
|
|
4356
|
+
class Gr {
|
|
4313
4357
|
constructor(e = {}) {
|
|
4314
4358
|
h(this, "_styles");
|
|
4315
|
-
h(this, "_cacheMap", new
|
|
4359
|
+
h(this, "_cacheMap", new jn(1e5));
|
|
4316
4360
|
this._styles = e, this._generateCacheMap();
|
|
4317
4361
|
}
|
|
4318
4362
|
each(e) {
|
|
@@ -4364,10 +4408,10 @@ class Br {
|
|
|
4364
4408
|
return null;
|
|
4365
4409
|
}
|
|
4366
4410
|
}
|
|
4367
|
-
function
|
|
4411
|
+
function Ko(t) {
|
|
4368
4412
|
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);
|
|
4369
4413
|
}
|
|
4370
|
-
function
|
|
4414
|
+
function Yo(t) {
|
|
4371
4415
|
if (t.t !== void 0)
|
|
4372
4416
|
return t.t;
|
|
4373
4417
|
if (typeof t.v == "string")
|
|
@@ -4377,17 +4421,17 @@ function jo(t) {
|
|
|
4377
4421
|
if (typeof t.v == "boolean")
|
|
4378
4422
|
return It.BOOLEAN;
|
|
4379
4423
|
}
|
|
4380
|
-
function
|
|
4424
|
+
function zo(t) {
|
|
4381
4425
|
if (t == null)
|
|
4382
4426
|
return !0;
|
|
4383
4427
|
const { v: e, f: s, si: n, p: r, s: i } = t;
|
|
4384
4428
|
return !(!(e == null || typeof e == "string" && e.length === 0) || s != null && s.length > 0 || n != null && n.length > 0 || r != null);
|
|
4385
4429
|
}
|
|
4386
|
-
function
|
|
4430
|
+
function Xo(t) {
|
|
4387
4431
|
return t != null && (typeof t == "string" || typeof t == "number" || typeof t == "boolean");
|
|
4388
4432
|
}
|
|
4389
|
-
var
|
|
4390
|
-
class
|
|
4433
|
+
var cs = /* @__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))(cs || {}), $r = /* @__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))($r || {}), Vr = /* @__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))(Vr || {});
|
|
4434
|
+
class jr {
|
|
4391
4435
|
constructor(e, s) {
|
|
4392
4436
|
h(this, "_columnData", {});
|
|
4393
4437
|
this._config = e, this._columnData = s;
|
|
@@ -4540,7 +4584,7 @@ function mt(t, e) {
|
|
|
4540
4584
|
return e.dataStream.indexOf(`\r
|
|
4541
4585
|
`) === n ? m.TRUE : m.FALSE;
|
|
4542
4586
|
}
|
|
4543
|
-
class
|
|
4587
|
+
class ct {
|
|
4544
4588
|
constructor(e, s, n) {
|
|
4545
4589
|
h(this, "_range");
|
|
4546
4590
|
h(this, "_worksheet");
|
|
@@ -4662,7 +4706,7 @@ class lt {
|
|
|
4662
4706
|
startColumn: i + s,
|
|
4663
4707
|
endColumn: i + s
|
|
4664
4708
|
};
|
|
4665
|
-
return new
|
|
4709
|
+
return new ct(this._worksheet, a, this._deps);
|
|
4666
4710
|
}
|
|
4667
4711
|
/**
|
|
4668
4712
|
* Returns the starting column position for this range
|
|
@@ -5004,7 +5048,7 @@ class lt {
|
|
|
5004
5048
|
return this.getWrapStrategies()[0][0];
|
|
5005
5049
|
}
|
|
5006
5050
|
forEach(e) {
|
|
5007
|
-
|
|
5051
|
+
ct.foreach(this._range, e);
|
|
5008
5052
|
}
|
|
5009
5053
|
/**
|
|
5010
5054
|
*
|
|
@@ -5021,7 +5065,7 @@ class lt {
|
|
|
5021
5065
|
);
|
|
5022
5066
|
}
|
|
5023
5067
|
}
|
|
5024
|
-
class
|
|
5068
|
+
class Kr {
|
|
5025
5069
|
constructor(e, s) {
|
|
5026
5070
|
h(this, "_rowData");
|
|
5027
5071
|
this._config = e, this._rowData = s;
|
|
@@ -5128,15 +5172,15 @@ class Vr {
|
|
|
5128
5172
|
return Y(this._rowData);
|
|
5129
5173
|
}
|
|
5130
5174
|
}
|
|
5131
|
-
const
|
|
5132
|
-
function
|
|
5175
|
+
const Jo = "DEFAULT_WORKSHEET_ROW_COUNT", Yr = 1e3, Qo = "DEFAULT_WORKSHEET_COLUMN_COUNT", zr = 20, qo = "DEFAULT_WORKSHEET_ROW_HEIGHT", Xr = 19, Zo = "DEFAULT_WORKSHEET_COLUMN_WIDTH", Jr = 73, yo = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", Qr = 46, ta = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", qr = 20;
|
|
5176
|
+
function Zr(t) {
|
|
5133
5177
|
const e = {
|
|
5134
5178
|
name: "Sheet1",
|
|
5135
5179
|
id: "sheet-01",
|
|
5136
5180
|
tabColor: "",
|
|
5137
5181
|
hidden: m.FALSE,
|
|
5138
|
-
rowCount:
|
|
5139
|
-
columnCount:
|
|
5182
|
+
rowCount: Yr,
|
|
5183
|
+
columnCount: zr,
|
|
5140
5184
|
zoomRatio: 1,
|
|
5141
5185
|
freeze: {
|
|
5142
5186
|
xSplit: 0,
|
|
@@ -5146,19 +5190,19 @@ function Qr(t) {
|
|
|
5146
5190
|
},
|
|
5147
5191
|
scrollTop: 0,
|
|
5148
5192
|
scrollLeft: 0,
|
|
5149
|
-
defaultColumnWidth:
|
|
5150
|
-
defaultRowHeight:
|
|
5193
|
+
defaultColumnWidth: Jr,
|
|
5194
|
+
defaultRowHeight: Xr,
|
|
5151
5195
|
mergeData: [],
|
|
5152
5196
|
cellData: {},
|
|
5153
5197
|
rowData: {},
|
|
5154
5198
|
columnData: {},
|
|
5155
5199
|
showGridlines: m.TRUE,
|
|
5156
5200
|
rowHeader: {
|
|
5157
|
-
width:
|
|
5201
|
+
width: Qr,
|
|
5158
5202
|
hidden: m.FALSE
|
|
5159
5203
|
},
|
|
5160
5204
|
columnHeader: {
|
|
5161
|
-
height:
|
|
5205
|
+
height: qr,
|
|
5162
5206
|
hidden: m.FALSE
|
|
5163
5207
|
},
|
|
5164
5208
|
selections: ["A1"],
|
|
@@ -5169,7 +5213,7 @@ function Qr(t) {
|
|
|
5169
5213
|
typeof t[n] > "u" && (t[n] = e[n]);
|
|
5170
5214
|
}), t;
|
|
5171
5215
|
}
|
|
5172
|
-
class
|
|
5216
|
+
class yr extends T {
|
|
5173
5217
|
constructor() {
|
|
5174
5218
|
super(...arguments);
|
|
5175
5219
|
h(this, "_cellContentInterceptors", []);
|
|
@@ -5218,9 +5262,9 @@ class Lt {
|
|
|
5218
5262
|
h(this, "_columnManager");
|
|
5219
5263
|
h(this, "_viewModel");
|
|
5220
5264
|
var o;
|
|
5221
|
-
this._styles = s, this._snapshot =
|
|
5265
|
+
this._styles = s, this._snapshot = Zr(e);
|
|
5222
5266
|
const { columnData: n, rowData: r, cellData: i } = this._snapshot;
|
|
5223
|
-
this._sheetId = (o = this._snapshot.id) != null ? o : E.generateRandomId(6), this._cellData = new G(i), this._rowManager = new
|
|
5267
|
+
this._sheetId = (o = this._snapshot.id) != null ? o : E.generateRandomId(6), this._cellData = new G(i), this._rowManager = new Kr(this._snapshot, r), this._columnManager = new jr(this._snapshot, n), this._viewModel = new yr();
|
|
5224
5268
|
}
|
|
5225
5269
|
/**
|
|
5226
5270
|
* @internal
|
|
@@ -5333,12 +5377,12 @@ class Lt {
|
|
|
5333
5377
|
const i = this.getCellMatrix(), o = this._snapshot.mergeData.filter(
|
|
5334
5378
|
(u) => bt.intersects({ startRow: e, startColumn: s, endRow: n, endColumn: r }, u)
|
|
5335
5379
|
), a = new G();
|
|
5336
|
-
return
|
|
5380
|
+
return Le(e, n, s, r).forEach((u, c) => {
|
|
5337
5381
|
const l = i.getValue(u, c);
|
|
5338
5382
|
l && a.setValue(u, c, l);
|
|
5339
5383
|
}), o.forEach((u) => {
|
|
5340
5384
|
const { startColumn: c, startRow: l, endColumn: d, endRow: _ } = u;
|
|
5341
|
-
|
|
5385
|
+
Le(l, _, c, d).forEach((f, g) => {
|
|
5342
5386
|
f === l && g === c && a.setValue(f, g, {
|
|
5343
5387
|
...i.getValue(f, g),
|
|
5344
5388
|
rowSpan: _ - l + 1,
|
|
@@ -5348,9 +5392,9 @@ class Lt {
|
|
|
5348
5392
|
}), a;
|
|
5349
5393
|
}
|
|
5350
5394
|
getRange(e, s, n, r) {
|
|
5351
|
-
return typeof e == "object" ? new
|
|
5395
|
+
return typeof e == "object" ? new ct(this, e, {
|
|
5352
5396
|
getStyles: () => this._styles
|
|
5353
|
-
}) : new
|
|
5397
|
+
}) : new ct(
|
|
5354
5398
|
this,
|
|
5355
5399
|
{
|
|
5356
5400
|
startRow: e,
|
|
@@ -5562,12 +5606,20 @@ class Lt {
|
|
|
5562
5606
|
}
|
|
5563
5607
|
// #endregion
|
|
5564
5608
|
}
|
|
5565
|
-
|
|
5566
|
-
|
|
5609
|
+
function ea(t) {
|
|
5610
|
+
var n, r;
|
|
5611
|
+
const e = (r = (n = t.p) == null ? void 0 : n.body) == null ? void 0 : r.dataStream;
|
|
5612
|
+
if (e)
|
|
5613
|
+
return e;
|
|
5614
|
+
const s = t.v;
|
|
5615
|
+
return typeof s == "string" ? t.t === Ee.BOOLEAN ? s.toUpperCase() : s : typeof s == "number" ? t.t === Ee.BOOLEAN ? s ? "TRUE" : "FALSE" : s.toString() : typeof s == "boolean" ? s ? "TRUE" : "FALSE" : "";
|
|
5616
|
+
}
|
|
5617
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, si = (t, e, s, n) => {
|
|
5618
|
+
for (var r = n > 1 ? void 0 : n ? ei(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5567
5619
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
5568
|
-
return n && r &&
|
|
5569
|
-
},
|
|
5570
|
-
function
|
|
5620
|
+
return n && r && ti(e, s, r), r;
|
|
5621
|
+
}, ni = (t, e) => (s, n) => e(s, n, t);
|
|
5622
|
+
function sa(t, e) {
|
|
5571
5623
|
return `${t.getUnitId()}|${e.getSheetId()}`;
|
|
5572
5624
|
}
|
|
5573
5625
|
let Dt = class extends T {
|
|
@@ -5597,9 +5649,9 @@ let Dt = class extends T {
|
|
|
5597
5649
|
h(this, "_snapshot");
|
|
5598
5650
|
h(this, "_unitId");
|
|
5599
5651
|
h(this, "_count");
|
|
5600
|
-
this._logService = s, this._snapshot = E.commonExtend(
|
|
5652
|
+
this._logService = s, this._snapshot = E.commonExtend(Wr, e);
|
|
5601
5653
|
const { styles: n } = this._snapshot;
|
|
5602
|
-
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = E.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new
|
|
5654
|
+
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = E.generateRandomId(6)), this._unitId = this._snapshot.id, this._styles = new Gr(n), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._passWorksheetSnapshots();
|
|
5603
5655
|
}
|
|
5604
5656
|
get _activeSheet() {
|
|
5605
5657
|
return this._activeSheet$.getValue();
|
|
@@ -5882,15 +5934,21 @@ let Dt = class extends T {
|
|
|
5882
5934
|
}
|
|
5883
5935
|
}
|
|
5884
5936
|
};
|
|
5885
|
-
Dt =
|
|
5886
|
-
|
|
5937
|
+
Dt = si([
|
|
5938
|
+
ni(1, st)
|
|
5887
5939
|
], Dt);
|
|
5888
|
-
class
|
|
5940
|
+
class hs {
|
|
5889
5941
|
constructor(e) {
|
|
5890
5942
|
h(this, "_snapshot");
|
|
5891
5943
|
h(this, "_unitId");
|
|
5892
5944
|
var s;
|
|
5893
|
-
this._snapshot = { ...
|
|
5945
|
+
this._snapshot = { ...Br, ...e }, this._unitId = (s = this._snapshot.id) != null ? s : E.generateRandomId(6);
|
|
5946
|
+
}
|
|
5947
|
+
getContainer() {
|
|
5948
|
+
return this._snapshot.container;
|
|
5949
|
+
}
|
|
5950
|
+
getParentRenderUnitId() {
|
|
5951
|
+
return this._snapshot.parentRenderUnitId;
|
|
5894
5952
|
}
|
|
5895
5953
|
getSnapshot() {
|
|
5896
5954
|
return this._snapshot;
|
|
@@ -5924,7 +5982,7 @@ class cs {
|
|
|
5924
5982
|
addPage() {
|
|
5925
5983
|
return {
|
|
5926
5984
|
id: "cover_1",
|
|
5927
|
-
pageType:
|
|
5985
|
+
pageType: cs.SLIDE,
|
|
5928
5986
|
zIndex: 1,
|
|
5929
5987
|
title: "cover",
|
|
5930
5988
|
description: "this is first page, cover",
|
|
@@ -5935,13 +5993,13 @@ class cs {
|
|
|
5935
5993
|
};
|
|
5936
5994
|
}
|
|
5937
5995
|
}
|
|
5938
|
-
const qt = "FOCUSING_SHEET",
|
|
5939
|
-
var
|
|
5940
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
5996
|
+
const qt = "FOCUSING_SHEET", Me = "FOCUSING_DOC", Ue = "FOCUSING_SLIDE", na = "FOCUSING_EDITOR_BUT_HIDDEN", ri = "EDITOR_ACTIVATED", ra = "FOCUSING_EDITOR_INPUT_FORMULA", ii = "FOCUSING_FORMULA_EDITOR", ia = "FOCUSING_UNIVER_EDITOR", oa = "FOCUSING_EDITOR_INPUT_FORMULA", aa = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE";
|
|
5997
|
+
var oi = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, ui = (t, e, s, n) => {
|
|
5998
|
+
for (var r = n > 1 ? void 0 : n ? ai(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
5941
5999
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
5942
|
-
return n && r &&
|
|
5943
|
-
},
|
|
5944
|
-
const
|
|
6000
|
+
return n && r && oi(e, s, r), r;
|
|
6001
|
+
}, li = (t, e) => (s, n) => e(s, n, t), ci = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.DOC = 1] = "DOC", t[t.SHEET = 2] = "SHEET", t[t.SLIDE = 3] = "SLIDE", t))(ci || {});
|
|
6002
|
+
const ht = F("univer.current");
|
|
5945
6003
|
let Zt = class extends T {
|
|
5946
6004
|
constructor(e, s) {
|
|
5947
6005
|
super();
|
|
@@ -6046,7 +6104,7 @@ let Zt = class extends T {
|
|
|
6046
6104
|
return e;
|
|
6047
6105
|
}
|
|
6048
6106
|
focusUniverInstance(e) {
|
|
6049
|
-
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [
|
|
6107
|
+
e && (this._focused = this.getUniverSheetInstance(e) || this.getUniverDocInstance(e) || this.getUniverSlideInstance(e) || null), this._focused$.next(e), [Me, qt, Ue].forEach((s) => this._contextService.setContextValue(s, !1)), this._focused instanceof Dt ? this._contextService.setContextValue(qt, !0) : this._focused instanceof rt ? this._contextService.setContextValue(Me, !0) : this._focused instanceof hs && this._contextService.setContextValue(Ue, !0);
|
|
6050
6108
|
}
|
|
6051
6109
|
getFocusedUniverInstance() {
|
|
6052
6110
|
return this._focused;
|
|
@@ -6079,28 +6137,28 @@ let Zt = class extends T {
|
|
|
6079
6137
|
return !1;
|
|
6080
6138
|
}
|
|
6081
6139
|
};
|
|
6082
|
-
Zt =
|
|
6083
|
-
|
|
6140
|
+
Zt = ui([
|
|
6141
|
+
li(1, lt)
|
|
6084
6142
|
], Zt);
|
|
6085
6143
|
var w = /* @__PURE__ */ ((t) => (t[t.Starting = 0] = "Starting", t[t.Ready = 1] = "Ready", t[t.Rendered = 2] = "Rendered", t[t.Steady = 3] = "Steady", t))(w || {});
|
|
6086
|
-
const
|
|
6144
|
+
const hi = {
|
|
6087
6145
|
0: "Starting",
|
|
6088
6146
|
1: "Ready",
|
|
6089
6147
|
2: "Rendered",
|
|
6090
6148
|
3: "Steady"
|
|
6091
6149
|
}, Ct = /* @__PURE__ */ new Map();
|
|
6092
|
-
function
|
|
6150
|
+
function ds(t, e) {
|
|
6093
6151
|
return function(r) {
|
|
6094
|
-
|
|
6152
|
+
_s(t, e);
|
|
6095
6153
|
};
|
|
6096
6154
|
}
|
|
6097
|
-
function
|
|
6155
|
+
function _s(t, e) {
|
|
6098
6156
|
Ct.has(t) || Ct.set(t, []), Ct.get(t).push(e);
|
|
6099
6157
|
}
|
|
6100
|
-
var
|
|
6101
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6158
|
+
var di = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, fs = (t, e, s, n) => {
|
|
6159
|
+
for (var r = n > 1 ? void 0 : n ? _i(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6102
6160
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6103
|
-
return n && r &&
|
|
6161
|
+
return n && r && di(e, s, r), r;
|
|
6104
6162
|
}, yt = (t, e) => (s, n) => e(s, n, t);
|
|
6105
6163
|
let $ = class extends T {
|
|
6106
6164
|
constructor(e) {
|
|
@@ -6129,10 +6187,10 @@ let $ = class extends T {
|
|
|
6129
6187
|
return new re((e) => (this.stage === w.Starting || (this.stage === w.Ready ? e.next(w.Starting) : this.stage === w.Rendered ? (e.next(w.Starting), e.next(w.Ready)) : (e.next(w.Starting), e.next(w.Ready), e.next(w.Rendered))), this._lifecycle$.subscribe(e)));
|
|
6130
6188
|
}
|
|
6131
6189
|
_reportProgress(e) {
|
|
6132
|
-
this._logService.debug("[LifecycleService]", `lifecycle progressed to "${
|
|
6190
|
+
this._logService.debug("[LifecycleService]", `lifecycle progressed to "${hi[e]}".`);
|
|
6133
6191
|
}
|
|
6134
6192
|
};
|
|
6135
|
-
$ =
|
|
6193
|
+
$ = fs([
|
|
6136
6194
|
yt(0, st)
|
|
6137
6195
|
], $);
|
|
6138
6196
|
let q = class extends T {
|
|
@@ -6155,14 +6213,14 @@ let q = class extends T {
|
|
|
6155
6213
|
});
|
|
6156
6214
|
}
|
|
6157
6215
|
};
|
|
6158
|
-
q =
|
|
6216
|
+
q = fs([
|
|
6159
6217
|
yt(0, M($)),
|
|
6160
6218
|
yt(1, M(tt))
|
|
6161
6219
|
], q);
|
|
6162
6220
|
class Ot extends T {
|
|
6163
6221
|
constructor() {
|
|
6164
6222
|
super();
|
|
6165
|
-
h(this, "_currentLocale",
|
|
6223
|
+
h(this, "_currentLocale", it.ZH_CN);
|
|
6166
6224
|
h(this, "_locales", null);
|
|
6167
6225
|
h(this, "localeChanged$", new D());
|
|
6168
6226
|
/**
|
|
@@ -6232,14 +6290,14 @@ class Ot extends T {
|
|
|
6232
6290
|
return this._currentLocale;
|
|
6233
6291
|
}
|
|
6234
6292
|
}
|
|
6235
|
-
const
|
|
6236
|
-
|
|
6237
|
-
var
|
|
6238
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6293
|
+
const gs = F("resource-manager-service"), fi = F("ResourcePersistenceService");
|
|
6294
|
+
_s(w.Ready, fi);
|
|
6295
|
+
var gi = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, Ri = (t, e, s, n) => {
|
|
6296
|
+
for (var r = n > 1 ? void 0 : n ? Ei(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6239
6297
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6240
|
-
return n && r &&
|
|
6241
|
-
},
|
|
6242
|
-
const
|
|
6298
|
+
return n && r && gi(e, s, r), r;
|
|
6299
|
+
}, Te = (t, e) => (s, n) => e(s, n, t);
|
|
6300
|
+
const Es = F("univer.permission-service"), Pe = "PERMISSION";
|
|
6243
6301
|
let Nt = class extends T {
|
|
6244
6302
|
constructor(e, s) {
|
|
6245
6303
|
super();
|
|
@@ -6262,7 +6320,7 @@ let Nt = class extends T {
|
|
|
6262
6320
|
const i = r.get(s);
|
|
6263
6321
|
if (i) {
|
|
6264
6322
|
const o = i.getValue();
|
|
6265
|
-
o.value = n, o.status =
|
|
6323
|
+
o.value = n, o.status = Je.DONE, i.next(o);
|
|
6266
6324
|
}
|
|
6267
6325
|
});
|
|
6268
6326
|
h(this, "getPermissionPoint", (e, s) => {
|
|
@@ -6279,7 +6337,7 @@ let Nt = class extends T {
|
|
|
6279
6337
|
this.disposeWithMe(
|
|
6280
6338
|
S(
|
|
6281
6339
|
this._univerInstanceService.sheetAdded$.subscribe((e) => {
|
|
6282
|
-
this._resourceManagerService.registerPluginResource(e.getUnitId(),
|
|
6340
|
+
this._resourceManagerService.registerPluginResource(e.getUnitId(), Pe, {
|
|
6283
6341
|
onChange: (s, n) => {
|
|
6284
6342
|
n.forEach((r) => {
|
|
6285
6343
|
this.getPermissionPoint(s, r.id) ? this.updatePermissionPoint(s, r.id, r.value) : this.addPermissionPoint(s, r);
|
|
@@ -6293,7 +6351,7 @@ let Nt = class extends T {
|
|
|
6293
6351
|
), this.disposeWithMe(
|
|
6294
6352
|
S(
|
|
6295
6353
|
this._univerInstanceService.sheetDisposed$.subscribe((e) => {
|
|
6296
|
-
this._resourceManagerService.disposePluginResource(e.getUnitId(),
|
|
6354
|
+
this._resourceManagerService.disposePluginResource(e.getUnitId(), Pe);
|
|
6297
6355
|
})
|
|
6298
6356
|
)
|
|
6299
6357
|
);
|
|
@@ -6316,9 +6374,9 @@ let Nt = class extends T {
|
|
|
6316
6374
|
throw new Error(`${i} permissionPoint is not exist`);
|
|
6317
6375
|
return o.asObservable();
|
|
6318
6376
|
});
|
|
6319
|
-
return
|
|
6377
|
+
return bs(r).pipe(
|
|
6320
6378
|
// Check that all permissions exist
|
|
6321
|
-
|
|
6379
|
+
vs((i) => (i.every((o) => this._permissionPointMap.get(o.id)), i))
|
|
6322
6380
|
);
|
|
6323
6381
|
}
|
|
6324
6382
|
composePermission(e, s) {
|
|
@@ -6331,26 +6389,26 @@ let Nt = class extends T {
|
|
|
6331
6389
|
});
|
|
6332
6390
|
}
|
|
6333
6391
|
};
|
|
6334
|
-
Nt =
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6392
|
+
Nt = Ri([
|
|
6393
|
+
ds(w.Starting, Nt),
|
|
6394
|
+
Te(0, M(gs)),
|
|
6395
|
+
Te(1, M(ht))
|
|
6338
6396
|
], Nt);
|
|
6339
|
-
const
|
|
6340
|
-
class Wt extends
|
|
6397
|
+
const mi = "univer.editable";
|
|
6398
|
+
class Wt extends zn {
|
|
6341
6399
|
constructor(s) {
|
|
6342
6400
|
super();
|
|
6343
|
-
h(this, "id",
|
|
6401
|
+
h(this, "id", mi);
|
|
6344
6402
|
h(this, "value", !0);
|
|
6345
6403
|
h(this, "unitID");
|
|
6346
6404
|
this.unitID = s;
|
|
6347
6405
|
}
|
|
6348
6406
|
}
|
|
6349
|
-
var
|
|
6350
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6407
|
+
var Oi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ai = (t, e, s, n) => {
|
|
6408
|
+
for (var r = n > 1 ? void 0 : n ? Ii(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6351
6409
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6352
|
-
return n && r &&
|
|
6353
|
-
},
|
|
6410
|
+
return n && r && Oi(e, s, r), r;
|
|
6411
|
+
}, xe = (t, e) => (s, n) => e(s, n, t);
|
|
6354
6412
|
let St = class extends T {
|
|
6355
6413
|
constructor(t, e) {
|
|
6356
6414
|
super(), this._permissionService = t, this._univerInstanceService = e, this._init();
|
|
@@ -6372,12 +6430,12 @@ let St = class extends T {
|
|
|
6372
6430
|
this._permissionService.updatePermissionPoint(t, s.id, e);
|
|
6373
6431
|
}
|
|
6374
6432
|
};
|
|
6375
|
-
St =
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6433
|
+
St = Ai([
|
|
6434
|
+
ds(w.Starting, St),
|
|
6435
|
+
xe(0, M(Es)),
|
|
6436
|
+
xe(1, M(ht))
|
|
6379
6437
|
], St);
|
|
6380
|
-
class
|
|
6438
|
+
class Ci extends T {
|
|
6381
6439
|
constructor() {
|
|
6382
6440
|
super(...arguments);
|
|
6383
6441
|
h(this, "_resourceMap", /* @__PURE__ */ new Map());
|
|
@@ -6417,7 +6475,7 @@ class Ii extends T {
|
|
|
6417
6475
|
this._register$.complete(), this._resourceMap.clear();
|
|
6418
6476
|
}
|
|
6419
6477
|
}
|
|
6420
|
-
class
|
|
6478
|
+
class pe extends T {
|
|
6421
6479
|
constructor() {
|
|
6422
6480
|
super();
|
|
6423
6481
|
h(this, "_currentTheme");
|
|
@@ -6434,46 +6492,46 @@ class xe extends T {
|
|
|
6434
6492
|
this._currentTheme = s, this._currentTheme$.next(s);
|
|
6435
6493
|
}
|
|
6436
6494
|
}
|
|
6437
|
-
const
|
|
6495
|
+
const Ni = "__defaultDocumentNormalEditorSpecialUnitId_20231006__", Si = "__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__", ua = `\r
|
|
6438
6496
|
`;
|
|
6439
|
-
var
|
|
6440
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6497
|
+
var wi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, vi = (t, e, s, n) => {
|
|
6498
|
+
for (var r = n > 1 ? void 0 : n ? bi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6441
6499
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6442
|
-
return n && r &&
|
|
6500
|
+
return n && r && wi(e, s, r), r;
|
|
6443
6501
|
}, Bt = (t, e) => (s, n) => e(s, n, t);
|
|
6444
|
-
const _e = F("univer.undo-redo.service"),
|
|
6445
|
-
class
|
|
6502
|
+
const _e = F("univer.undo-redo.service"), Li = 20;
|
|
6503
|
+
class Rs {
|
|
6446
6504
|
dispose() {
|
|
6447
6505
|
}
|
|
6448
6506
|
async dispatchToHandlers() {
|
|
6449
6507
|
return !1;
|
|
6450
6508
|
}
|
|
6451
6509
|
}
|
|
6452
|
-
const
|
|
6510
|
+
const Di = "univer.command.redo", Mi = "univer.command.undo", Ui = new class extends Rs {
|
|
6453
6511
|
constructor() {
|
|
6454
6512
|
super(...arguments);
|
|
6455
6513
|
h(this, "type", ae.COMMAND);
|
|
6456
|
-
h(this, "id",
|
|
6514
|
+
h(this, "id", Mi);
|
|
6457
6515
|
}
|
|
6458
6516
|
async handler(e) {
|
|
6459
6517
|
const s = e.get(_e), n = s.pitchTopUndoElement();
|
|
6460
6518
|
if (!n)
|
|
6461
6519
|
return !1;
|
|
6462
6520
|
const r = e.get(Mt);
|
|
6463
|
-
return
|
|
6521
|
+
return Ke(n.undoMutations, r) ? (s.popUndoToRedo(), !0) : !1;
|
|
6464
6522
|
}
|
|
6465
|
-
}(),
|
|
6523
|
+
}(), Ti = new class extends Rs {
|
|
6466
6524
|
constructor() {
|
|
6467
6525
|
super(...arguments);
|
|
6468
6526
|
h(this, "type", ae.COMMAND);
|
|
6469
|
-
h(this, "id",
|
|
6527
|
+
h(this, "id", Di);
|
|
6470
6528
|
}
|
|
6471
6529
|
async handler(e) {
|
|
6472
6530
|
const s = e.get(_e), n = s.pitchTopRedoElement();
|
|
6473
6531
|
if (!n)
|
|
6474
6532
|
return !1;
|
|
6475
6533
|
const r = e.get(Mt);
|
|
6476
|
-
return
|
|
6534
|
+
return Ke(n.redoMutations, r) ? (s.popRedoToUndo(), !0) : !1;
|
|
6477
6535
|
}
|
|
6478
6536
|
}();
|
|
6479
6537
|
let te = class extends T {
|
|
@@ -6485,7 +6543,7 @@ let te = class extends T {
|
|
|
6485
6543
|
h(this, "_undoStacks", /* @__PURE__ */ new Map());
|
|
6486
6544
|
h(this, "_redoStacks", /* @__PURE__ */ new Map());
|
|
6487
6545
|
h(this, "_batchingStatus", /* @__PURE__ */ new Map());
|
|
6488
|
-
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(
|
|
6546
|
+
this._univerInstanceService = e, this._commandService = s, this._contextService = n, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(Ui)), this.disposeWithMe(this._commandService.registerCommand(Ti)), this.disposeWithMe(S(() => this._undoRedoStatus$.complete())), this.disposeWithMe(S(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
|
|
6489
6547
|
}
|
|
6490
6548
|
pushUndoRedo(e) {
|
|
6491
6549
|
const { unitID: s } = e, n = this._getRedoStack(s, !0), r = this._getUndoStack(s, !0);
|
|
@@ -6499,7 +6557,7 @@ let te = class extends T {
|
|
|
6499
6557
|
} else
|
|
6500
6558
|
i(e);
|
|
6501
6559
|
function i(o) {
|
|
6502
|
-
r.push(o), r.length >
|
|
6560
|
+
r.push(o), r.length > Li && r.splice(0, 1);
|
|
6503
6561
|
}
|
|
6504
6562
|
this._updateStatus();
|
|
6505
6563
|
}
|
|
@@ -6576,14 +6634,14 @@ let te = class extends T {
|
|
|
6576
6634
|
_getFocusedUniverInstanceId() {
|
|
6577
6635
|
var i, o, a, u;
|
|
6578
6636
|
let e = "";
|
|
6579
|
-
const s = this._contextService.getContextValue(qt), n = this._contextService.getContextValue(
|
|
6580
|
-
return s ? n ? e =
|
|
6637
|
+
const s = this._contextService.getContextValue(qt), n = this._contextService.getContextValue(ii), r = this._contextService.getContextValue(ri);
|
|
6638
|
+
return s ? n ? e = Si : r ? e = Ni : e = (o = (i = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : i.getUnitId()) != null ? o : "" : e = (u = (a = this._univerInstanceService.getFocusedUniverInstance()) == null ? void 0 : a.getUnitId()) != null ? u : "", e;
|
|
6581
6639
|
}
|
|
6582
6640
|
};
|
|
6583
|
-
te =
|
|
6584
|
-
Bt(0,
|
|
6641
|
+
te = vi([
|
|
6642
|
+
Bt(0, ht),
|
|
6585
6643
|
Bt(1, Mt),
|
|
6586
|
-
Bt(2,
|
|
6644
|
+
Bt(2, lt)
|
|
6587
6645
|
], te);
|
|
6588
6646
|
class Ut extends T {
|
|
6589
6647
|
constructor() {
|
|
@@ -6630,10 +6688,10 @@ class Ut extends T {
|
|
|
6630
6688
|
return this._injector.createInstance(s, n);
|
|
6631
6689
|
}
|
|
6632
6690
|
}
|
|
6633
|
-
var
|
|
6634
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6691
|
+
var Pi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, pi = (t, e, s, n) => {
|
|
6692
|
+
for (var r = n > 1 ? void 0 : n ? xi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6635
6693
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6636
|
-
return n && r &&
|
|
6694
|
+
return n && r && Pi(e, s, r), r;
|
|
6637
6695
|
}, kt = (t, e) => (s, n) => e(s, n, t);
|
|
6638
6696
|
let ee = class extends Ut {
|
|
6639
6697
|
constructor(t, e, s) {
|
|
@@ -6643,15 +6701,15 @@ let ee = class extends Ut {
|
|
|
6643
6701
|
return this._injector.createInstance(rt, t);
|
|
6644
6702
|
}
|
|
6645
6703
|
};
|
|
6646
|
-
ee =
|
|
6704
|
+
ee = pi([
|
|
6647
6705
|
kt(0, M(tt)),
|
|
6648
6706
|
kt(1, M($)),
|
|
6649
6707
|
kt(2, M(q))
|
|
6650
6708
|
], ee);
|
|
6651
|
-
var
|
|
6652
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6709
|
+
var Hi = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, Wi = (t, e, s, n) => {
|
|
6710
|
+
for (var r = n > 1 ? void 0 : n ? Fi(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6653
6711
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6654
|
-
return n && r &&
|
|
6712
|
+
return n && r && Hi(e, s, r), r;
|
|
6655
6713
|
}, Gt = (t, e) => (s, n) => e(s, n, t);
|
|
6656
6714
|
let se = class extends Ut {
|
|
6657
6715
|
constructor(t, e, s) {
|
|
@@ -6661,46 +6719,46 @@ let se = class extends Ut {
|
|
|
6661
6719
|
return this._injector.createInstance(Dt, t);
|
|
6662
6720
|
}
|
|
6663
6721
|
};
|
|
6664
|
-
se =
|
|
6722
|
+
se = Wi([
|
|
6665
6723
|
Gt(0, M(tt)),
|
|
6666
6724
|
Gt(1, M($)),
|
|
6667
6725
|
Gt(2, M(q))
|
|
6668
6726
|
], se);
|
|
6669
|
-
var
|
|
6670
|
-
for (var r = n > 1 ? void 0 : n ?
|
|
6727
|
+
var Bi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Gi = (t, e, s, n) => {
|
|
6728
|
+
for (var r = n > 1 ? void 0 : n ? ki(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
|
6671
6729
|
(o = t[i]) && (r = (n ? o(e, s, r) : o(r)) || r);
|
|
6672
|
-
return n && r &&
|
|
6730
|
+
return n && r && Bi(e, s, r), r;
|
|
6673
6731
|
}, $t = (t, e) => (s, n) => e(s, n, t);
|
|
6674
6732
|
let ne = class extends Ut {
|
|
6675
6733
|
constructor(t, e, s) {
|
|
6676
6734
|
super(), this._injector = t, this._lifecycleService = e, this._lifecycleInitializerService = s;
|
|
6677
6735
|
}
|
|
6678
6736
|
createSlide(t) {
|
|
6679
|
-
return this._injector.createInstance(
|
|
6737
|
+
return this._injector.createInstance(hs, t);
|
|
6680
6738
|
}
|
|
6681
6739
|
};
|
|
6682
|
-
ne =
|
|
6740
|
+
ne = Gi([
|
|
6683
6741
|
$t(0, M(tt)),
|
|
6684
6742
|
$t(1, M($)),
|
|
6685
6743
|
$t(2, M(q))
|
|
6686
6744
|
], ne);
|
|
6687
|
-
const
|
|
6688
|
-
class
|
|
6745
|
+
const $i = 200;
|
|
6746
|
+
class la extends Ut {
|
|
6689
6747
|
constructor(s = {}) {
|
|
6690
6748
|
super();
|
|
6691
6749
|
h(this, "_injector");
|
|
6692
|
-
h(this, "_univerPluginStore", new
|
|
6693
|
-
h(this, "_univerPluginRegistry", new
|
|
6750
|
+
h(this, "_univerPluginStore", new Us());
|
|
6751
|
+
h(this, "_univerPluginRegistry", new Ts());
|
|
6694
6752
|
h(this, "_univerSheet", null);
|
|
6695
6753
|
h(this, "_univerDoc", null);
|
|
6696
6754
|
h(this, "_univerSlide", null);
|
|
6697
6755
|
h(this, "_initLazyPluginsTimer");
|
|
6698
6756
|
this._injector = this._initDependencies();
|
|
6699
6757
|
const { theme: n, locale: r, locales: i, logLevel: o } = s;
|
|
6700
|
-
n && this._injector.get(
|
|
6758
|
+
n && this._injector.get(pe).setTheme(n), i && this._injector.get(Ot).load(i), r && this._injector.get(Ot).setLocale(r), o && this._injector.get(st).setLogLevel(o);
|
|
6701
6759
|
}
|
|
6702
6760
|
get _univerInstanceService() {
|
|
6703
|
-
return this._injector.get(
|
|
6761
|
+
return this._injector.get(ht);
|
|
6704
6762
|
}
|
|
6705
6763
|
get _lifecycleService() {
|
|
6706
6764
|
return this._injector.get($);
|
|
@@ -6765,7 +6823,7 @@ class ia extends Ut {
|
|
|
6765
6823
|
_initDependencies() {
|
|
6766
6824
|
return new tt([
|
|
6767
6825
|
[
|
|
6768
|
-
|
|
6826
|
+
ht,
|
|
6769
6827
|
{
|
|
6770
6828
|
useFactory: (s) => new Zt(
|
|
6771
6829
|
{
|
|
@@ -6775,23 +6833,23 @@ class ia extends Ut {
|
|
|
6775
6833
|
},
|
|
6776
6834
|
s
|
|
6777
6835
|
),
|
|
6778
|
-
deps: [
|
|
6836
|
+
deps: [lt]
|
|
6779
6837
|
}
|
|
6780
6838
|
],
|
|
6781
|
-
[
|
|
6839
|
+
[Qs],
|
|
6782
6840
|
[Ot],
|
|
6783
|
-
[
|
|
6841
|
+
[pe],
|
|
6784
6842
|
[$],
|
|
6785
6843
|
[q],
|
|
6786
|
-
[
|
|
6844
|
+
[Es, { useClass: Nt }],
|
|
6787
6845
|
[St],
|
|
6788
|
-
[st, { useClass:
|
|
6846
|
+
[st, { useClass: Gs, lazy: !0 }],
|
|
6789
6847
|
[Mt, { useClass: jt, lazy: !0 }],
|
|
6790
6848
|
[_e, { useClass: te, lazy: !0 }],
|
|
6791
|
-
[
|
|
6792
|
-
[
|
|
6793
|
-
[
|
|
6794
|
-
[
|
|
6849
|
+
[Xs, { useClass: Js }],
|
|
6850
|
+
[lt, { useClass: Bs }],
|
|
6851
|
+
[Zs, { useClass: qs, lazy: !0 }],
|
|
6852
|
+
[gs, { useClass: Ci, lazy: !0 }]
|
|
6795
6853
|
]);
|
|
6796
6854
|
}
|
|
6797
6855
|
/**
|
|
@@ -6822,7 +6880,7 @@ class ia extends Ut {
|
|
|
6822
6880
|
_scheduleInitPluginAfterStarted() {
|
|
6823
6881
|
this._initLazyPluginsTimer === void 0 && (this._initLazyPluginsTimer = setTimeout(
|
|
6824
6882
|
() => this._flushLazyPlugins(),
|
|
6825
|
-
|
|
6883
|
+
$i
|
|
6826
6884
|
));
|
|
6827
6885
|
}
|
|
6828
6886
|
_flushLazyPlugins() {
|
|
@@ -6865,7 +6923,7 @@ class ia extends Ut {
|
|
|
6865
6923
|
}
|
|
6866
6924
|
// #endregion
|
|
6867
6925
|
}
|
|
6868
|
-
function
|
|
6926
|
+
function ca(t, e = 16) {
|
|
6869
6927
|
let s = 0, n = null;
|
|
6870
6928
|
return function(...i) {
|
|
6871
6929
|
const o = Date.now();
|
|
@@ -6874,7 +6932,7 @@ function oa(t, e = 16) {
|
|
|
6874
6932
|
}, e)) : (s = o, t.apply(this, i));
|
|
6875
6933
|
};
|
|
6876
6934
|
}
|
|
6877
|
-
function
|
|
6935
|
+
function ha(t) {
|
|
6878
6936
|
const e = new MessageChannel();
|
|
6879
6937
|
let s = !1;
|
|
6880
6938
|
return e.port1.onmessage = () => {
|
|
@@ -6883,7 +6941,7 @@ function aa(t) {
|
|
|
6883
6941
|
s = !0;
|
|
6884
6942
|
};
|
|
6885
6943
|
}
|
|
6886
|
-
class
|
|
6944
|
+
class He {
|
|
6887
6945
|
constructor(e) {
|
|
6888
6946
|
h(this, "_index", 0);
|
|
6889
6947
|
h(this, "_offset", 0);
|
|
@@ -6903,7 +6961,7 @@ class pe {
|
|
|
6903
6961
|
}) : E.deepClone({
|
|
6904
6962
|
...s,
|
|
6905
6963
|
len: e,
|
|
6906
|
-
body:
|
|
6964
|
+
body: us(s.body, n, n + e)
|
|
6907
6965
|
});
|
|
6908
6966
|
} else
|
|
6909
6967
|
return {
|
|
@@ -6933,7 +6991,7 @@ class pe {
|
|
|
6933
6991
|
return [];
|
|
6934
6992
|
}
|
|
6935
6993
|
}
|
|
6936
|
-
function
|
|
6994
|
+
function Fe(t) {
|
|
6937
6995
|
return Object.keys(t).length === 1;
|
|
6938
6996
|
}
|
|
6939
6997
|
class fe {
|
|
@@ -6941,7 +6999,7 @@ class fe {
|
|
|
6941
6999
|
h(this, "_actions", []);
|
|
6942
7000
|
}
|
|
6943
7001
|
static compose(e, s) {
|
|
6944
|
-
const n = new
|
|
7002
|
+
const n = new He(e), r = new He(s), i = new fe();
|
|
6945
7003
|
for (; n.hasNext() || r.hasNext(); )
|
|
6946
7004
|
if (r.peekType() === O.INSERT)
|
|
6947
7005
|
i.push(r.next());
|
|
@@ -6951,10 +7009,10 @@ class fe {
|
|
|
6951
7009
|
const o = Math.min(n.peekLength(), r.peekLength()), a = n.next(o), u = r.next(o);
|
|
6952
7010
|
a.t === O.INSERT && u.t === O.RETAIN ? u.body == null ? i.push(a) : i.push({
|
|
6953
7011
|
...a,
|
|
6954
|
-
body:
|
|
7012
|
+
body: De(a.body, u.body, u.coverType)
|
|
6955
7013
|
}) : a.t === O.RETAIN && u.t === O.RETAIN ? a.body == null && u.body == null ? i.push(a.len !== Number.POSITIVE_INFINITY ? a : u) : a.body && u.body ? i.push({
|
|
6956
7014
|
...a,
|
|
6957
|
-
body:
|
|
7015
|
+
body: De(a.body, u.body, u.coverType)
|
|
6958
7016
|
}) : i.push(a.body ? a : u) : a.t === O.RETAIN && u.t === O.DELETE ? i.push(u) : a.t === O.INSERT && (u.t, O.DELETE);
|
|
6959
7017
|
}
|
|
6960
7018
|
return i.trimEndUselessRetainAction(), i.serialize();
|
|
@@ -7008,19 +7066,19 @@ class fe {
|
|
|
7008
7066
|
return this._actions.unshift(r), this;
|
|
7009
7067
|
if (n.t === O.RETAIN && r.t === O.RETAIN && n.body == null && r.body == null)
|
|
7010
7068
|
return n.len += r.len, this;
|
|
7011
|
-
if (n.t === O.INSERT &&
|
|
7069
|
+
if (n.t === O.INSERT && Fe(n.body) && r.t === O.INSERT && Fe(r.body))
|
|
7012
7070
|
return n.len += r.len, n.body.dataStream += r.body.dataStream, this;
|
|
7013
7071
|
}
|
|
7014
7072
|
return s === this._actions.length ? this._actions.push(r) : this._actions.splice(s, 0, r), this;
|
|
7015
7073
|
}
|
|
7016
7074
|
trimEndUselessRetainAction() {
|
|
7017
7075
|
let e = this._actions[this._actions.length - 1];
|
|
7018
|
-
for (; e && e.t === O.RETAIN &&
|
|
7076
|
+
for (; e && e.t === O.RETAIN && xr(e); )
|
|
7019
7077
|
this._actions.pop(), e = this._actions[this._actions.length - 1];
|
|
7020
7078
|
return this;
|
|
7021
7079
|
}
|
|
7022
7080
|
}
|
|
7023
|
-
function
|
|
7081
|
+
function da(t, e, s) {
|
|
7024
7082
|
if (e === "")
|
|
7025
7083
|
return t;
|
|
7026
7084
|
const n = {
|
|
@@ -7048,7 +7106,7 @@ function ua(t, e, s) {
|
|
|
7048
7106
|
const a = r.getBody();
|
|
7049
7107
|
return r.dispose(), a;
|
|
7050
7108
|
}
|
|
7051
|
-
class
|
|
7109
|
+
class _a extends oe {
|
|
7052
7110
|
/**
|
|
7053
7111
|
* Create a new WorkBookObserver with the specified callback
|
|
7054
7112
|
* @param callback the callback that will be executed for that WorkBookObserver
|
|
@@ -7067,14 +7125,14 @@ class la extends oe {
|
|
|
7067
7125
|
makeObserverBottomPriority() {
|
|
7068
7126
|
}
|
|
7069
7127
|
}
|
|
7070
|
-
const
|
|
7071
|
-
function
|
|
7128
|
+
const fa = F("ILocalStorageService");
|
|
7129
|
+
function ga(t) {
|
|
7072
7130
|
return new re((e) => {
|
|
7073
7131
|
const s = t((...n) => e.next(n));
|
|
7074
7132
|
return () => s == null ? void 0 : s.dispose();
|
|
7075
7133
|
});
|
|
7076
7134
|
}
|
|
7077
|
-
const
|
|
7135
|
+
const Ea = (t) => `sheet_interceptor_${t}`, Vi = (t) => function(e, s) {
|
|
7078
7136
|
let n = -1;
|
|
7079
7137
|
function r(i, o) {
|
|
7080
7138
|
if (i <= n)
|
|
@@ -7083,7 +7141,7 @@ const da = (t) => `sheet_interceptor_${t}`, Gi = (t) => function(e, s) {
|
|
|
7083
7141
|
}
|
|
7084
7142
|
return r(0, e);
|
|
7085
7143
|
};
|
|
7086
|
-
class
|
|
7144
|
+
class Ra {
|
|
7087
7145
|
constructor(e) {
|
|
7088
7146
|
h(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
7089
7147
|
h(this, "_interceptorPoints");
|
|
@@ -7091,7 +7149,7 @@ class _a {
|
|
|
7091
7149
|
}
|
|
7092
7150
|
fetchThroughInterceptors(e) {
|
|
7093
7151
|
const s = e, n = this._interceptorsByName.get(s);
|
|
7094
|
-
return
|
|
7152
|
+
return Vi(n || []);
|
|
7095
7153
|
}
|
|
7096
7154
|
intercept(e, s) {
|
|
7097
7155
|
const n = e;
|
|
@@ -7110,10 +7168,10 @@ class _a {
|
|
|
7110
7168
|
return this._interceptorPoints;
|
|
7111
7169
|
}
|
|
7112
7170
|
}
|
|
7113
|
-
const
|
|
7171
|
+
const ma = F(
|
|
7114
7172
|
"univer.snapshot-server-service"
|
|
7115
7173
|
);
|
|
7116
|
-
class
|
|
7174
|
+
class Oa {
|
|
7117
7175
|
constructor() {
|
|
7118
7176
|
h(this, "_sheetBlockCache", /* @__PURE__ */ new Map());
|
|
7119
7177
|
}
|
|
@@ -7201,44 +7259,44 @@ class ga {
|
|
|
7201
7259
|
});
|
|
7202
7260
|
}
|
|
7203
7261
|
}
|
|
7204
|
-
function
|
|
7262
|
+
function Ia(t) {
|
|
7205
7263
|
return btoa(
|
|
7206
7264
|
encodeURIComponent(t).replace(/%([0-9A-F]{2})/g, (e, s) => String.fromCharCode(Number.parseInt(s, 16)))
|
|
7207
7265
|
);
|
|
7208
7266
|
}
|
|
7209
|
-
function
|
|
7267
|
+
function ms(t) {
|
|
7210
7268
|
return decodeURIComponent(
|
|
7211
7269
|
Array.prototype.map.call(atob(t), (e) => `%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")
|
|
7212
7270
|
);
|
|
7213
7271
|
}
|
|
7214
7272
|
const Tt = new TextEncoder(), ge = new TextDecoder();
|
|
7215
|
-
function
|
|
7273
|
+
function Os(t) {
|
|
7216
7274
|
const e = E.deepClone(t);
|
|
7217
7275
|
return delete e.id, delete e.name, delete e.rowCount, delete e.columnCount, delete e.cellData, Tt.encode(JSON.stringify(e));
|
|
7218
7276
|
}
|
|
7219
|
-
function
|
|
7277
|
+
function Is(t) {
|
|
7220
7278
|
const e = E.deepClone(t);
|
|
7221
7279
|
return delete e.id, delete e.rev, delete e.name, delete e.sheetOrder, delete e.sheets, Tt.encode(JSON.stringify(e));
|
|
7222
7280
|
}
|
|
7223
|
-
function
|
|
7281
|
+
function ji(t) {
|
|
7224
7282
|
const e = E.deepClone(t);
|
|
7225
7283
|
return delete e.id, delete e.rev, delete e.title, delete e.resources, Tt.encode(JSON.stringify(e));
|
|
7226
7284
|
}
|
|
7227
|
-
function
|
|
7285
|
+
function We(t) {
|
|
7228
7286
|
return JSON.parse(ge.decode(t));
|
|
7229
7287
|
}
|
|
7230
|
-
function
|
|
7231
|
-
return JSON.parse(typeof t == "string" ?
|
|
7288
|
+
function Ki(t) {
|
|
7289
|
+
return JSON.parse(typeof t == "string" ? ms(t) : ge.decode(t));
|
|
7232
7290
|
}
|
|
7233
|
-
function
|
|
7234
|
-
return JSON.parse(typeof t == "string" ?
|
|
7291
|
+
function Yi(t) {
|
|
7292
|
+
return JSON.parse(typeof t == "string" ? ms(t) : ge.decode(t));
|
|
7235
7293
|
}
|
|
7236
7294
|
const Vt = 256;
|
|
7237
|
-
function
|
|
7295
|
+
function As(t, e) {
|
|
7238
7296
|
const s = new G(t), n = s.getLength(), r = [];
|
|
7239
7297
|
let i = 0;
|
|
7240
7298
|
for (; i < n; ) {
|
|
7241
|
-
const o = Math.min(i + Vt, n - 1), a = s.getSlice(i, Math.min(i + Vt, n - 1), 0, e), u =
|
|
7299
|
+
const o = Math.min(i + Vt, n - 1), a = s.getSlice(i, Math.min(i + Vt, n - 1), 0, e), u = zi(a);
|
|
7242
7300
|
r.push({
|
|
7243
7301
|
id: E.generateRandomId(19, "0123456789"),
|
|
7244
7302
|
// an random ID for client, this would be changed after the block is saved in the server
|
|
@@ -7249,11 +7307,11 @@ function Is(t, e) {
|
|
|
7249
7307
|
}
|
|
7250
7308
|
return r;
|
|
7251
7309
|
}
|
|
7252
|
-
function
|
|
7310
|
+
function zi(t) {
|
|
7253
7311
|
const e = t.getData();
|
|
7254
7312
|
return Tt.encode(JSON.stringify(e));
|
|
7255
7313
|
}
|
|
7256
|
-
async function
|
|
7314
|
+
async function Aa(t, e, s, n, r) {
|
|
7257
7315
|
const i = {}, o = {};
|
|
7258
7316
|
if (!await Promise.all(
|
|
7259
7317
|
Object.entries(e.sheets).map(async ([d, _]) => {
|
|
@@ -7263,10 +7321,10 @@ async function Ra(t, e, s, n, r) {
|
|
|
7263
7321
|
name: _.name,
|
|
7264
7322
|
rowCount: _.rowCount,
|
|
7265
7323
|
columnCount: _.columnCount,
|
|
7266
|
-
originalMeta:
|
|
7324
|
+
originalMeta: Os(_)
|
|
7267
7325
|
};
|
|
7268
7326
|
if (o[d] = f, _.cellData) {
|
|
7269
|
-
const g =
|
|
7327
|
+
const g = As(_.cellData, _.rowCount), R = await Promise.all(
|
|
7270
7328
|
g.map(
|
|
7271
7329
|
(I) => r.saveSheetBlock(t, {
|
|
7272
7330
|
unitID: s,
|
|
@@ -7289,7 +7347,7 @@ async function Ra(t, e, s, n, r) {
|
|
|
7289
7347
|
})
|
|
7290
7348
|
))
|
|
7291
7349
|
throw new Error("[transformWorkbookDataToSnapshot()]: Failed to save sheet blocks.");
|
|
7292
|
-
const u =
|
|
7350
|
+
const u = Is(e), c = {
|
|
7293
7351
|
unitID: e.id,
|
|
7294
7352
|
rev: n,
|
|
7295
7353
|
creator: "",
|
|
@@ -7311,7 +7369,7 @@ async function Ra(t, e, s, n, r) {
|
|
|
7311
7369
|
}
|
|
7312
7370
|
};
|
|
7313
7371
|
}
|
|
7314
|
-
async function
|
|
7372
|
+
async function Ca(t, e, s, n, r) {
|
|
7315
7373
|
var _, f;
|
|
7316
7374
|
const i = {}, o = {};
|
|
7317
7375
|
if (!await Promise.all(
|
|
@@ -7322,10 +7380,10 @@ async function ma(t, e, s, n, r) {
|
|
|
7322
7380
|
name: R.name,
|
|
7323
7381
|
rowCount: R.rowCount,
|
|
7324
7382
|
columnCount: R.columnCount,
|
|
7325
|
-
originalMeta:
|
|
7383
|
+
originalMeta: Os(R)
|
|
7326
7384
|
};
|
|
7327
7385
|
if (o[g] = I, R.cellData) {
|
|
7328
|
-
const A =
|
|
7386
|
+
const A = As(R.cellData, R.rowCount), P = await Promise.all(
|
|
7329
7387
|
A.map(
|
|
7330
7388
|
(L) => r.saveSheetBlock(t, {
|
|
7331
7389
|
unitID: s,
|
|
@@ -7348,7 +7406,7 @@ async function ma(t, e, s, n, r) {
|
|
|
7348
7406
|
})
|
|
7349
7407
|
))
|
|
7350
7408
|
throw new Error("[transformWorkbookDataToSnapshot()]: Failed to save sheet blocks.");
|
|
7351
|
-
const u =
|
|
7409
|
+
const u = Is(e), c = {
|
|
7352
7410
|
unitID: e.id,
|
|
7353
7411
|
rev: n,
|
|
7354
7412
|
creator: "",
|
|
@@ -7370,7 +7428,7 @@ async function ma(t, e, s, n, r) {
|
|
|
7370
7428
|
type: K.UNIVER_SHEET,
|
|
7371
7429
|
snapshot: l
|
|
7372
7430
|
});
|
|
7373
|
-
if (
|
|
7431
|
+
if (Be(d.error))
|
|
7374
7432
|
throw new Error(
|
|
7375
7433
|
`transformWorkbookDataToSnapshot(): Failed to save snapshot.
|
|
7376
7434
|
ErrorCode: ${(_ = d.error) == null ? void 0 : _.code}:${(f = d.error) == null ? void 0 : f.message}`
|
|
@@ -7379,13 +7437,13 @@ ErrorCode: ${(_ = d.error) == null ? void 0 : _.code}:${(f = d.error) == null ?
|
|
|
7379
7437
|
snapshot: l
|
|
7380
7438
|
};
|
|
7381
7439
|
}
|
|
7382
|
-
function
|
|
7440
|
+
function Na(t, e, s) {
|
|
7383
7441
|
const n = t.workbook;
|
|
7384
7442
|
if (!n)
|
|
7385
7443
|
throw new Error("");
|
|
7386
7444
|
const r = {};
|
|
7387
7445
|
Object.entries(n.sheets).forEach(([u, c]) => {
|
|
7388
|
-
const l =
|
|
7446
|
+
const l = We(c.originalMeta);
|
|
7389
7447
|
r[u] = {
|
|
7390
7448
|
id: c.id,
|
|
7391
7449
|
name: c.name,
|
|
@@ -7409,7 +7467,7 @@ function Oa(t, e, s) {
|
|
|
7409
7467
|
else
|
|
7410
7468
|
throw new Error("");
|
|
7411
7469
|
}), d.forEach((f) => {
|
|
7412
|
-
const g =
|
|
7470
|
+
const g = Ki(f.data);
|
|
7413
7471
|
Object.entries(g).forEach(([R, I]) => {
|
|
7414
7472
|
const A = l.cellData[+R] = {};
|
|
7415
7473
|
Object.entries(I).forEach(([P, L]) => {
|
|
@@ -7418,36 +7476,36 @@ function Oa(t, e, s) {
|
|
|
7418
7476
|
});
|
|
7419
7477
|
});
|
|
7420
7478
|
});
|
|
7421
|
-
const o =
|
|
7479
|
+
const o = We(n.originalMeta);
|
|
7422
7480
|
return {
|
|
7423
7481
|
id: t.unitID,
|
|
7424
7482
|
rev: n.rev,
|
|
7425
7483
|
name: n.name,
|
|
7426
7484
|
sheetOrder: n.sheetOrder,
|
|
7427
7485
|
appVersion: "",
|
|
7428
|
-
locale:
|
|
7486
|
+
locale: it.EN_US,
|
|
7429
7487
|
sheets: r,
|
|
7430
7488
|
styles: {},
|
|
7431
7489
|
resources: n.resources || [],
|
|
7432
7490
|
...o
|
|
7433
7491
|
};
|
|
7434
7492
|
}
|
|
7435
|
-
function
|
|
7493
|
+
function Sa(t) {
|
|
7436
7494
|
const e = t.doc;
|
|
7437
7495
|
if (e == null)
|
|
7438
7496
|
throw new Error("transformSnapshotToDocumentData(): snapshot.doc is undefined.");
|
|
7439
|
-
const { unitID: s, rev: n, name: r, originalMeta: i } = e, { body: o, documentStyle: a = {}, settings: u = {} } =
|
|
7497
|
+
const { unitID: s, rev: n, name: r, originalMeta: i } = e, { body: o, documentStyle: a = {}, settings: u = {} } = Yi(i);
|
|
7440
7498
|
return {
|
|
7441
7499
|
id: s,
|
|
7442
7500
|
rev: n,
|
|
7443
|
-
locale:
|
|
7501
|
+
locale: it.EN_US,
|
|
7444
7502
|
title: r,
|
|
7445
7503
|
body: o,
|
|
7446
7504
|
documentStyle: a,
|
|
7447
7505
|
settings: u
|
|
7448
7506
|
};
|
|
7449
7507
|
}
|
|
7450
|
-
async function
|
|
7508
|
+
async function wa(t, e, s, n, r) {
|
|
7451
7509
|
var u, c, l;
|
|
7452
7510
|
const i = {
|
|
7453
7511
|
unitID: e.id,
|
|
@@ -7455,7 +7513,7 @@ async function Aa(t, e, s, n, r) {
|
|
|
7455
7513
|
creator: "",
|
|
7456
7514
|
name: (u = e.title) != null ? u : "",
|
|
7457
7515
|
resources: e.resources || [],
|
|
7458
|
-
originalMeta:
|
|
7516
|
+
originalMeta: ji(e)
|
|
7459
7517
|
}, o = {
|
|
7460
7518
|
unitID: s,
|
|
7461
7519
|
rev: i.rev,
|
|
@@ -7467,7 +7525,7 @@ async function Aa(t, e, s, n, r) {
|
|
|
7467
7525
|
type: K.UNIVER_DOC,
|
|
7468
7526
|
snapshot: o
|
|
7469
7527
|
});
|
|
7470
|
-
if (
|
|
7528
|
+
if (Be(a.error))
|
|
7471
7529
|
throw new Error(
|
|
7472
7530
|
`transformDocumentDataToSnapshot(): Failed to save snapshot.
|
|
7473
7531
|
ErrorCode: ${(c = a.error) == null ? void 0 : c.code}:${(l = a.error) == null ? void 0 : l.message}`
|
|
@@ -7476,7 +7534,7 @@ ErrorCode: ${(c = a.error) == null ? void 0 : c.code}:${(l = a.error) == null ?
|
|
|
7476
7534
|
snapshot: o
|
|
7477
7535
|
};
|
|
7478
7536
|
}
|
|
7479
|
-
async function
|
|
7537
|
+
async function ba(t, e) {
|
|
7480
7538
|
const s = t.workbook;
|
|
7481
7539
|
if (!s)
|
|
7482
7540
|
throw new Error("Workbook metadata is not available");
|
|
@@ -7496,278 +7554,280 @@ async function Ca(t, e) {
|
|
|
7496
7554
|
r.push(...a);
|
|
7497
7555
|
}), await Promise.all(r), n;
|
|
7498
7556
|
}
|
|
7499
|
-
|
|
7557
|
+
Ls();
|
|
7500
7558
|
export {
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7559
|
+
po as ABCToNumber,
|
|
7560
|
+
Xn as AbsoluteRefType,
|
|
7561
|
+
He as ActionIterator,
|
|
7562
|
+
Nr as AlignTypeH,
|
|
7563
|
+
Sr as AlignTypeV,
|
|
7564
|
+
sn as AutoFillSeries,
|
|
7507
7565
|
zt as BaselineOffset,
|
|
7508
|
-
|
|
7566
|
+
ir as BlockType,
|
|
7509
7567
|
m as BooleanNumber,
|
|
7510
7568
|
N as BorderStyleTypes,
|
|
7511
|
-
|
|
7569
|
+
nn as BorderType,
|
|
7512
7570
|
Z as BulletAlignment,
|
|
7513
|
-
|
|
7571
|
+
Ne as COLORS,
|
|
7514
7572
|
It as CellValueType,
|
|
7515
|
-
|
|
7573
|
+
Oa as ClientSnapshotServerService,
|
|
7516
7574
|
nt as Color,
|
|
7517
7575
|
ce as ColorBuilder,
|
|
7518
7576
|
B as ColorKit,
|
|
7519
7577
|
W as ColorType,
|
|
7520
|
-
|
|
7578
|
+
ur as ColumnSeparatorType,
|
|
7521
7579
|
jt as CommandService,
|
|
7522
7580
|
ae as CommandType,
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7581
|
+
rn as CommonHideTypes,
|
|
7582
|
+
on as ConditionType,
|
|
7583
|
+
Js as ConfigService,
|
|
7584
|
+
mr as ContentAlignment,
|
|
7585
|
+
Bs as ContextService,
|
|
7586
|
+
an as CopyPasteType,
|
|
7587
|
+
rr as CustomRangeType,
|
|
7588
|
+
jo as DEFAULT_CELL,
|
|
7589
|
+
ls as DEFAULT_DOC,
|
|
7590
|
+
ao as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
7591
|
+
ua as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
7592
|
+
$o as DEFAULT_RANGE,
|
|
7535
7593
|
Rt as DEFAULT_RANGE_ARRAY,
|
|
7536
|
-
|
|
7537
|
-
|
|
7594
|
+
Vo as DEFAULT_SELECTION,
|
|
7595
|
+
Br as DEFAULT_SLIDE,
|
|
7538
7596
|
Ft as DEFAULT_STYLES,
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7597
|
+
Wr as DEFAULT_WORKBOOK,
|
|
7598
|
+
zr as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
7599
|
+
Qo as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
|
|
7600
|
+
qr as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
7601
|
+
ta as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
|
|
7602
|
+
Jr as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
7603
|
+
Zo as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
|
|
7604
|
+
Yr as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
7605
|
+
Jo as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
|
|
7606
|
+
Xr as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
7607
|
+
qo as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
|
|
7608
|
+
Qr as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
7609
|
+
yo as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
|
|
7610
|
+
Si as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
7611
|
+
Ni as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
7612
|
+
gr as DashStyleType,
|
|
7613
|
+
qn as DataStreamTreeNodeType,
|
|
7614
|
+
qe as DataStreamTreeTokenType,
|
|
7615
|
+
Gs as DesktopLogService,
|
|
7616
|
+
un as DeveloperMetadataVisibility,
|
|
7617
|
+
ln as Dimension,
|
|
7618
|
+
cn as Direction,
|
|
7561
7619
|
T as Disposable,
|
|
7562
|
-
|
|
7563
|
-
|
|
7620
|
+
je as DisposableCollection,
|
|
7621
|
+
sr as DocStyleType,
|
|
7564
7622
|
rt as DocumentDataModel,
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7623
|
+
ri as EDITOR_ACTIVATED,
|
|
7624
|
+
kr as EXTENSION_NAMES,
|
|
7625
|
+
Se as Entry,
|
|
7626
|
+
Vn as EntryIterator,
|
|
7627
|
+
Qs as ErrorService,
|
|
7628
|
+
Fs as EventState,
|
|
7629
|
+
Me as FOCUSING_DOC,
|
|
7630
|
+
na as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
7631
|
+
ra as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
7632
|
+
oa as FOCUSING_EDITOR_STANDALONE,
|
|
7633
|
+
ii as FOCUSING_FORMULA_EDITOR,
|
|
7575
7634
|
qt as FOCUSING_SHEET,
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7635
|
+
Ue as FOCUSING_SLIDE,
|
|
7636
|
+
ia as FOCUSING_UNIVER_EDITOR,
|
|
7637
|
+
aa as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
|
|
7638
|
+
qs as FloatingObjectManagerService,
|
|
7639
|
+
nr as FollowNumberWithType,
|
|
7581
7640
|
Kt as FontItalic,
|
|
7582
|
-
|
|
7641
|
+
Or as FontStyleType,
|
|
7583
7642
|
Yt as FontWeight,
|
|
7584
|
-
|
|
7643
|
+
hn as FormatType,
|
|
7585
7644
|
At as GlyphType,
|
|
7586
|
-
|
|
7587
|
-
|
|
7645
|
+
or as GridType,
|
|
7646
|
+
mn as HLSColor,
|
|
7588
7647
|
et as HorizontalAlign,
|
|
7589
7648
|
Mt as ICommandService,
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7649
|
+
Xs as IConfigService,
|
|
7650
|
+
lt as IContextService,
|
|
7651
|
+
Zs as IFloatingObjectManagerService,
|
|
7652
|
+
fa as ILocalStorageService,
|
|
7594
7653
|
st as ILogService,
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7654
|
+
Es as IPermissionService,
|
|
7655
|
+
gs as IResourceManagerService,
|
|
7656
|
+
fi as ISnapshotPersistenceService,
|
|
7657
|
+
ma as ISnapshotServerService,
|
|
7599
7658
|
_e as IUndoRedoService,
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7659
|
+
ht as IUniverInstanceService,
|
|
7660
|
+
Ra as InterceptorManager,
|
|
7661
|
+
dn as InterpolationPointType,
|
|
7662
|
+
Gn as KeyIterator,
|
|
7604
7663
|
Et as LRUHelper,
|
|
7605
|
-
|
|
7664
|
+
jn as LRUMap,
|
|
7606
7665
|
q as LifecycleInitializerService,
|
|
7607
7666
|
$ as LifecycleService,
|
|
7608
7667
|
w as LifecycleStages,
|
|
7609
7668
|
te as LocalUndoRedoService,
|
|
7610
7669
|
Ot as LocaleService,
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7670
|
+
it as LocaleType,
|
|
7671
|
+
ks as LogLevel,
|
|
7672
|
+
ys as MemoryCursor,
|
|
7673
|
+
_r as NamedStyleType,
|
|
7674
|
+
zs as NilCommand,
|
|
7675
|
+
Cr as NumberUnitType,
|
|
7617
7676
|
G as ObjectMatrix,
|
|
7618
|
-
|
|
7619
|
-
|
|
7677
|
+
Ir as ObjectRelativeFromH,
|
|
7678
|
+
Ar as ObjectRelativeFromV,
|
|
7620
7679
|
oe as Observable,
|
|
7621
|
-
|
|
7680
|
+
_a as ObservableHooks,
|
|
7622
7681
|
ie as Observer,
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7682
|
+
ds as OnLifecycle,
|
|
7683
|
+
Go as PRESET_LIST_TYPE,
|
|
7684
|
+
$r as PageElementType,
|
|
7685
|
+
br as PageOrientType,
|
|
7686
|
+
cs as PageType,
|
|
7687
|
+
cr as ParagraphElementType,
|
|
7688
|
+
zn as PermissionPoint,
|
|
7630
7689
|
Nt as PermissionService,
|
|
7631
|
-
|
|
7632
|
-
|
|
7690
|
+
Je as PermissionStatus,
|
|
7691
|
+
Ms as Plugin,
|
|
7633
7692
|
b as PluginType,
|
|
7634
|
-
|
|
7693
|
+
dr as PositionedObjectLayoutType,
|
|
7635
7694
|
Qt as PresetListType,
|
|
7636
|
-
|
|
7695
|
+
_n as ProtectionType,
|
|
7637
7696
|
p as RANGE_TYPE,
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7697
|
+
_o as RGBA_PAREN,
|
|
7698
|
+
ho as RGB_PAREN,
|
|
7699
|
+
ct as Range,
|
|
7641
7700
|
bt as Rectangle,
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7701
|
+
Ti as RedoCommand,
|
|
7702
|
+
Di as RedoCommandId,
|
|
7703
|
+
xo as RefAlias,
|
|
7704
|
+
ke as Registry,
|
|
7705
|
+
Ge as RegistryAsMap,
|
|
7706
|
+
fn as RelativeDate,
|
|
7707
|
+
Vr as RelativeSlideLink,
|
|
7708
|
+
Ci as ResourceManagerService,
|
|
7650
7709
|
Xt as RgbColor,
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7710
|
+
io as RxDisposable,
|
|
7711
|
+
ar as SectionType,
|
|
7712
|
+
gn as ShapeType,
|
|
7654
7713
|
ue as SheetTypes,
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7714
|
+
yr as SheetViewModel,
|
|
7715
|
+
hs as SlideDataModel,
|
|
7716
|
+
fr as SpacingRule,
|
|
7717
|
+
Gr as Styles,
|
|
7718
|
+
Rn as THEME_COLORS,
|
|
7719
|
+
Er as TabStopAlignment,
|
|
7720
|
+
En as TextDecoration,
|
|
7662
7721
|
wt as TextDirection,
|
|
7663
|
-
|
|
7722
|
+
lr as TextDirectionType,
|
|
7664
7723
|
fe as TextX,
|
|
7665
7724
|
O as TextXActionType,
|
|
7666
7725
|
Jt as ThemeColor,
|
|
7667
7726
|
x as ThemeColorType,
|
|
7668
7727
|
le as ThemeColors,
|
|
7669
|
-
|
|
7728
|
+
pe as ThemeService,
|
|
7670
7729
|
E as Tools,
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7730
|
+
Ui as UndoCommand,
|
|
7731
|
+
Mi as UndoCommandId,
|
|
7732
|
+
la as Univer,
|
|
7674
7733
|
ee as UniverDoc,
|
|
7675
7734
|
Wt as UniverEditablePermission,
|
|
7676
|
-
|
|
7735
|
+
mi as UniverEditablePermissionPoint,
|
|
7677
7736
|
Zt as UniverInstanceService,
|
|
7678
|
-
|
|
7737
|
+
ci as UniverInstanceType,
|
|
7679
7738
|
St as UniverPermissionService,
|
|
7680
7739
|
se as UniverSheet,
|
|
7681
7740
|
ne as UniverSlide,
|
|
7682
7741
|
U as UpdateDocsAttributeType,
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7742
|
+
$n as ValueIterator,
|
|
7743
|
+
at as VerticalAlign,
|
|
7744
|
+
Rr as WidthType,
|
|
7686
7745
|
Dt as Workbook,
|
|
7687
7746
|
Lt as Worksheet,
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7747
|
+
ut as WrapStrategy,
|
|
7748
|
+
hr as WrapTextType,
|
|
7749
|
+
ms as b64DecodeUnicode,
|
|
7750
|
+
Ia as b64EncodeUnicode,
|
|
7751
|
+
tn as binarySearchArray,
|
|
7752
|
+
wr as characterSpacingControlType,
|
|
7753
|
+
wo as checkForSubstrings,
|
|
7754
|
+
bo as checkParagraphHasBullet,
|
|
7755
|
+
vo as checkParagraphHasIndent,
|
|
7756
|
+
Wn as checkParagraphHasIndentByStyle,
|
|
7757
|
+
lo as codeToBlob,
|
|
7758
|
+
De as composeBody,
|
|
7759
|
+
Vi as composeInterceptors,
|
|
7760
|
+
Mo as concatMatrixArray,
|
|
7761
|
+
Ea as createInterceptorKey,
|
|
7762
|
+
Le as createRowColIter,
|
|
7763
|
+
ko as debounce,
|
|
7764
|
+
eo as dedupe,
|
|
7765
|
+
ze as deepCompare,
|
|
7766
|
+
kn as deleteContent,
|
|
7767
|
+
ea as extractPureTextFromCell,
|
|
7768
|
+
ga as fromCallback,
|
|
7769
|
+
ro as fromObservable,
|
|
7770
|
+
Aa as generateTemporarySnap,
|
|
7711
7771
|
Y as getArrayLength,
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7772
|
+
us as getBodySlice,
|
|
7773
|
+
No as getBorderStyleType,
|
|
7774
|
+
Yo as getCellValueType,
|
|
7715
7775
|
V as getColorStyle,
|
|
7716
7776
|
Ht as getDocsUpdateBody,
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7777
|
+
co as getReverseDirection,
|
|
7778
|
+
ba as getSheetBlocksFromSnapshot,
|
|
7779
|
+
To as getTypeFromPermissionItemList,
|
|
7780
|
+
sa as getWorksheetUID,
|
|
7781
|
+
no as groupBy,
|
|
7782
|
+
Ao as handleJsonToDom,
|
|
7783
|
+
Co as handleStyleToString,
|
|
7784
|
+
Do as hashAlgorithm,
|
|
7785
|
+
Xe as horizontalLineSegmentsSubtraction,
|
|
7786
|
+
we as insertMatrixArray,
|
|
7787
|
+
Bn as insertTextToContent,
|
|
7788
|
+
fo as isBlackColor,
|
|
7789
|
+
Xo as isCellV,
|
|
7790
|
+
mo as isEmptyCell,
|
|
7791
|
+
Io as isFormulaId,
|
|
7792
|
+
Oo as isFormulaString,
|
|
7793
|
+
Ko as isICellData,
|
|
7794
|
+
zo as isNullCell,
|
|
7795
|
+
Ws as isObserver,
|
|
7796
|
+
Lo as isRealNum,
|
|
7797
|
+
Fn as isSameStyleTextRun,
|
|
7798
|
+
So as isValidRange,
|
|
7799
|
+
go as isWhiteColor,
|
|
7800
|
+
Ro as makeCellRangeToRangeData,
|
|
7801
|
+
Eo as makeCellToSelection,
|
|
7802
|
+
Zr as mergeWorksheetSnapshotWithDefault,
|
|
7803
|
+
ve as moveMatrixArray,
|
|
7804
|
+
Ze as normalizeTextRuns,
|
|
7805
|
+
Ho as numberToABC,
|
|
7806
|
+
Fo as numberToListABC,
|
|
7807
|
+
en as orderSearchArray,
|
|
7748
7808
|
y as remove,
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7809
|
+
Qn as repeatStringNumTimes,
|
|
7810
|
+
da as replaceInDocumentBody,
|
|
7811
|
+
ha as requestImmediateMacroTask,
|
|
7812
|
+
so as rotate,
|
|
7813
|
+
_s as runOnLifecycle,
|
|
7814
|
+
uo as searchArray,
|
|
7815
|
+
Po as selectionToArray,
|
|
7816
|
+
ps as sequence,
|
|
7817
|
+
xs as sequenceAsync,
|
|
7818
|
+
Ke as sequenceExecute,
|
|
7819
|
+
oo as sequenceExecuteAsync,
|
|
7820
|
+
Uo as sliceMatrixArray,
|
|
7821
|
+
Wo as sortRules,
|
|
7822
|
+
Bo as sortRulesByDesc,
|
|
7763
7823
|
dt as sortRulesFactory,
|
|
7764
|
-
|
|
7824
|
+
be as spliceArray,
|
|
7765
7825
|
ge as textDecoder,
|
|
7766
7826
|
Tt as textEncoder,
|
|
7767
|
-
|
|
7827
|
+
ca as throttle,
|
|
7768
7828
|
S as toDisposable,
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7829
|
+
wa as transformDocumentDataToSnapshot,
|
|
7830
|
+
Sa as transformSnapshotToDocumentData,
|
|
7831
|
+
Na as transformSnapshotToWorkbookData,
|
|
7832
|
+
Ca as transformWorkbookDataToSnapshot
|
|
7773
7833
|
};
|