@univerjs/engine-formula 0.9.3-nightly.202507250819 → 0.9.4-nightly.202507290713
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 +2 -2
- package/lib/es/index.js +641 -641
- package/lib/index.js +641 -641
- package/lib/umd/index.js +2 -2
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Wu = Object.defineProperty;
|
|
2
2
|
var qu = (i, a, e) => a in i ? Wu(i, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[a] = e;
|
|
3
3
|
var A = (i, a, e) => qu(i, typeof a != "symbol" ? a + "" : a, e);
|
|
4
|
-
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as qe, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as
|
|
5
|
-
import { Subject as
|
|
4
|
+
import { ObjectMatrix as Ce, CommandType as Ie, RANGE_TYPE as et, AbsoluteRefType as we, Tools as qe, createIdentifier as Ze, Disposable as Ne, IUniverInstanceService as Yn, LRUMap as Ku, hashAlgorithm as Xu, moveRangeByOffset as aa, isValidRange as Zu, isFormulaString as yt, isFormulaId as Pt, Rectangle as Xa, cellToRange as zu, Inject as ye, UniverInstanceType as cr, BooleanNumber as Qi, LocaleService as Ju, LocaleType as Sr, numfmt as dt, BuildTextUtils as ec, isRealNum as Q, CellValueType as Rt, isTextFormat as tc, RichTextBuilder as rc, toDisposable as nc, Injector as Wi, generateRandomId as sc, sortRules as ac, RTree as Ms, IConfigService as ia, AsyncLock as ic, requestImmediateMacroTask as oc, ICommandService as sr, DataStreamTreeTokenType as ve, DisposableCollection as uc, Optional as cc, Plugin as lc, merge as fc, touchDependencies as ls } from "@univerjs/core";
|
|
5
|
+
import { Subject as lr, BehaviorSubject as qi, distinctUntilChanged as Ki, combineLatest as hc, map as mc, Observable as gc, shareReplay as dc } from "rxjs";
|
|
6
6
|
import { DataSyncPrimaryController as Cc } from "@univerjs/rpc";
|
|
7
7
|
var er = /* @__PURE__ */ ((i) => (i.FALSE = "FALSE", i.TRUE = "TRUE", i))(er || {}), xt = /* @__PURE__ */ ((i) => (i[i.SUCCESS = 0] = "SUCCESS", i[i.ERROR = 1] = "ERROR", i))(xt || {}), ct = /* @__PURE__ */ ((i) => (i[i.FRONT = 0] = "FRONT", i[i.BACK = 1] = "BACK", i))(ct || {});
|
|
8
8
|
function _c(i, a, e, t, r) {
|
|
@@ -17,9 +17,9 @@ function _c(i, a, e, t, r) {
|
|
|
17
17
|
return !1;
|
|
18
18
|
}
|
|
19
19
|
var m = /* @__PURE__ */ ((i) => (i.DIV_BY_ZERO = "#DIV/0!", i.NAME = "#NAME?", i.VALUE = "#VALUE!", i.NUM = "#NUM!", i.NA = "#N/A", i.CYCLE = "#CYCLE!", i.REF = "#REF!", i.SPILL = "#SPILL!", i.CALC = "#CALC!", i.ERROR = "#ERROR!", i.CONNECT = "#GETTING_DATA", i.NULL = "#NULL!", i))(m || {});
|
|
20
|
-
const
|
|
20
|
+
const Rr = new Set(Object.values(m)), Za = [...new Set(Object.values(m).map((i) => i.length))];
|
|
21
21
|
var Ac = /* @__PURE__ */ ((i) => (i[i.Financial = 0] = "Financial", i[i.Date = 1] = "Date", i[i.Math = 2] = "Math", i[i.Statistical = 3] = "Statistical", i[i.Lookup = 4] = "Lookup", i[i.Database = 5] = "Database", i[i.Text = 6] = "Text", i[i.Logical = 7] = "Logical", i[i.Information = 8] = "Information", i[i.Engineering = 9] = "Engineering", i[i.Cube = 10] = "Cube", i[i.Compatibility = 11] = "Compatibility", i[i.Web = 12] = "Web", i[i.Array = 13] = "Array", i[i.Univer = 14] = "Univer", i[i.User = 15] = "User", i[i.DefinedName = 16] = "DefinedName", i))(Ac || {}), X = /* @__PURE__ */ ((i) => (i.PLUS = "+", i.MINUS = "-", i.MULTIPLY = "*", i.DIVIDED = "/", i.CONCATENATE = "&", i.POWER = "^", i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))(X || {}), $ = /* @__PURE__ */ ((i) => (i.EQUALS = "=", i.NOT_EQUAL = "<>", i.GREATER_THAN = ">", i.GREATER_THAN_OR_EQUAL = ">=", i.LESS_THAN = "<", i.LESS_THAN_OR_EQUAL = "<=", i))($ || {});
|
|
22
|
-
const
|
|
22
|
+
const sn = /* @__PURE__ */ new Map([
|
|
23
23
|
["<>", 4],
|
|
24
24
|
["<", 4],
|
|
25
25
|
[">=", 4],
|
|
@@ -33,7 +33,7 @@ const nn = /* @__PURE__ */ new Map([
|
|
|
33
33
|
["*", 1],
|
|
34
34
|
["^", 0]
|
|
35
35
|
// ^
|
|
36
|
-
]), Dt = new Set(
|
|
36
|
+
]), Dt = new Set(sn.keys()), Ec = /* @__PURE__ */ new Set([
|
|
37
37
|
"=",
|
|
38
38
|
"<>",
|
|
39
39
|
">",
|
|
@@ -43,7 +43,7 @@ const nn = /* @__PURE__ */ new Map([
|
|
|
43
43
|
/* LESS_THAN_OR_EQUAL */
|
|
44
44
|
]);
|
|
45
45
|
var K = /* @__PURE__ */ ((i) => (i.OPEN_BRACKET = "(", i.CLOSE_BRACKET = ")", i.COMMA = ",", i.SINGLE_QUOTATION = "'", i.DOUBLE_QUOTATION = '"', i.OPEN_BRACES = "{", i.CLOSE_BRACES = "}", i.COLON = ":", i.OPEN_SQUARE_BRACKET = "[", i.CLOSE_SQUARE_BRACKET = "]", i))(K || {}), tt = /* @__PURE__ */ ((i) => (i.PERCENTAGE = "%", i.POUND = "#", i))(tt || {});
|
|
46
|
-
const
|
|
46
|
+
const fs = /* @__PURE__ */ new Set([
|
|
47
47
|
"%",
|
|
48
48
|
"#"
|
|
49
49
|
/* POUND */
|
|
@@ -56,7 +56,7 @@ const bc = " ", Xi = [
|
|
|
56
56
|
...Object.values(tt),
|
|
57
57
|
...Object.values(Me)
|
|
58
58
|
];
|
|
59
|
-
function
|
|
59
|
+
function an(i) {
|
|
60
60
|
return Xi.includes(i);
|
|
61
61
|
}
|
|
62
62
|
function yc(i) {
|
|
@@ -69,7 +69,7 @@ function Qb(i) {
|
|
|
69
69
|
return i[0] === "'" && i[i.length - 1] === "'" ? i.substring(1, i.length - 1) : i;
|
|
70
70
|
}
|
|
71
71
|
function Wb(i) {
|
|
72
|
-
return
|
|
72
|
+
return an(i) && i !== K.CLOSE_BRACES && i !== K.CLOSE_BRACKET && i !== K.SINGLE_QUOTATION && i !== K.DOUBLE_QUOTATION || i === " ";
|
|
73
73
|
}
|
|
74
74
|
const Rc = /* @__PURE__ */ new Set([
|
|
75
75
|
X.PLUS,
|
|
@@ -117,8 +117,8 @@ const Vc = /* @__PURE__ */ new Set([
|
|
|
117
117
|
function Nc(i) {
|
|
118
118
|
return Vc.has(i);
|
|
119
119
|
}
|
|
120
|
-
const Zi = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', za = new RegExp(Zi), Oc = "((?![\\[\\]\\/?*\\\\]).)*!", Tt = "$", oa = "\\s*?:\\s*?",
|
|
121
|
-
function
|
|
120
|
+
const Zi = '\\[([^\\[\\]\\/?:"<>|*\\\\]+)\\]', za = new RegExp(Zi), Oc = "((?![\\[\\]\\/?*\\\\]).)*!", Tt = "$", oa = "\\s*?:\\s*?", dn = "[A-Za-z]+", Cn = "[1-9][0-9]*", pr = `'?(${Zi})?(${Oc})?'?`, ws = `\\${Tt}?${dn}\\${Tt}?${Cn}`, Mc = `^(${Me.AT})?${pr}${ws}${oa}${ws}$`, Ja = new RegExp(Mc), wc = `^${pr}\\s*?${ws}(${tt.POUND})?$`, ei = new RegExp(wc), Sc = `^${pr}\\${Tt}?${Cn}${oa}\\${Tt}?${Cn}$`, ti = new RegExp(Sc), Dc = `^${pr}\\${Tt}?${dn}${oa}\\${Tt}?${dn}$`, ri = new RegExp(Dc), Lc = `^${pr}\\s*?\\${Tt}?${Cn}$`, ni = new RegExp(Lc), Pc = `^${pr}\\s*?\\${Tt}?${dn}$`, si = new RegExp(Pc), xc = "{.*?}", ai = new RegExp(xc, "g");
|
|
121
|
+
function Ir(i) {
|
|
122
122
|
return ei.lastIndex = 0, ei.test(i);
|
|
123
123
|
}
|
|
124
124
|
function jc(i) {
|
|
@@ -140,7 +140,7 @@ function Uc(i) {
|
|
|
140
140
|
return ai.lastIndex = 0, ai.test(i);
|
|
141
141
|
}
|
|
142
142
|
function ro(i) {
|
|
143
|
-
return
|
|
143
|
+
return Ir(i) || jc(i) || zi(i) || Ji(i);
|
|
144
144
|
}
|
|
145
145
|
function vc(i) {
|
|
146
146
|
const a = {};
|
|
@@ -174,12 +174,12 @@ const Bc = {
|
|
|
174
174
|
id: "formula.mutation.register-function",
|
|
175
175
|
type: Ie.MUTATION,
|
|
176
176
|
handler: () => !0
|
|
177
|
-
},
|
|
177
|
+
}, Ss = {
|
|
178
178
|
id: "formula.mutation.set-array-formula-data",
|
|
179
179
|
type: Ie.MUTATION,
|
|
180
180
|
handler: (i, a) => !0
|
|
181
181
|
}, Ic = /[^0-9]/g, Fc = /[^A-Za-z]/g;
|
|
182
|
-
function
|
|
182
|
+
function on(i) {
|
|
183
183
|
let a = i[0] === "$";
|
|
184
184
|
const e = i.substring(1);
|
|
185
185
|
let t = e.indexOf("$") > -1;
|
|
@@ -190,9 +190,9 @@ function qb(i) {
|
|
|
190
190
|
a.length > 1 && (i = a[a.length - 1]);
|
|
191
191
|
const e = i.split(":");
|
|
192
192
|
return e.length > 1 ? {
|
|
193
|
-
startAbsoluteRefType:
|
|
194
|
-
endAbsoluteRefType:
|
|
195
|
-
} : { startAbsoluteRefType:
|
|
193
|
+
startAbsoluteRefType: on(e[0]),
|
|
194
|
+
endAbsoluteRefType: on(e[1])
|
|
195
|
+
} : { startAbsoluteRefType: on(e[0]) };
|
|
196
196
|
}
|
|
197
197
|
function ii(i = we.NONE) {
|
|
198
198
|
let a = "", e = "";
|
|
@@ -226,14 +226,14 @@ function kc(i, a) {
|
|
|
226
226
|
return `${so(i)}!${Bt(a)}`;
|
|
227
227
|
}
|
|
228
228
|
function $c(i, a, e) {
|
|
229
|
-
return
|
|
229
|
+
return Ls(i) || Ls(a) ? `'[${Ps(i)}]${Ps(a)}'!${Bt(e)}` : `[${i}]${a}!${Bt(e)}`;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ds(i) {
|
|
232
232
|
const { unitId: a, sheetName: e, range: t } = i;
|
|
233
233
|
return a != null && a.length > 0 && e != null && e.length > 0 ? $c(a, e, t) : e != null && e.length > 0 ? kc(e, t) : Bt(t);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const a = Number.parseInt(i.replace(Ic, "")) - 1, e = qe.ABCatNum(i.replace(Fc, "")), t =
|
|
235
|
+
function hs(i) {
|
|
236
|
+
const a = Number.parseInt(i.replace(Ic, "")) - 1, e = qe.ABCatNum(i.replace(Fc, "")), t = on(i);
|
|
237
237
|
return {
|
|
238
238
|
row: a,
|
|
239
239
|
column: e,
|
|
@@ -252,10 +252,10 @@ function ua(i) {
|
|
|
252
252
|
unitId: e
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Pr(i) {
|
|
256
256
|
const { refBody: a, sheetName: e, unitId: t } = ua(i), r = a.indexOf(":");
|
|
257
257
|
if (r === -1) {
|
|
258
|
-
const _ =
|
|
258
|
+
const _ = hs(a), C = _.row, E = _.column, b = _.absoluteRefType;
|
|
259
259
|
return {
|
|
260
260
|
unitId: t,
|
|
261
261
|
sheetName: e,
|
|
@@ -269,7 +269,7 @@ function Lr(i) {
|
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
const n = a.substring(0, r), s = a.substring(r + 1), o =
|
|
272
|
+
const n = a.substring(0, r), s = a.substring(r + 1), o = hs(n), u = hs(s), c = o.row > u.row ? u.row : o.row, l = o.column > u.column ? u.column : o.column, f = o.row > u.row ? o.row : u.row, h = o.column > u.column ? o.column : u.column;
|
|
273
273
|
let d = et.NORMAL;
|
|
274
274
|
return Number.isNaN(c) && Number.isNaN(f) ? d = et.COLUMN : Number.isNaN(l) && Number.isNaN(h) && (d = et.ROW), {
|
|
275
275
|
unitId: t,
|
|
@@ -286,11 +286,11 @@ function Lr(i) {
|
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
const Yc = ["LOG10"];
|
|
289
|
-
function
|
|
289
|
+
function un(i) {
|
|
290
290
|
const a = no(i);
|
|
291
291
|
if (!ro(a) || Yc.includes(a.toUpperCase().trim()))
|
|
292
292
|
return !1;
|
|
293
|
-
const { range: e } =
|
|
293
|
+
const { range: e } = Pr(a);
|
|
294
294
|
return !(e.endColumn >= 16384);
|
|
295
295
|
}
|
|
296
296
|
function no(i) {
|
|
@@ -311,7 +311,7 @@ function no(i) {
|
|
|
311
311
|
function Kb(i, a) {
|
|
312
312
|
const e = (i == null ? void 0 : i.split(",")) || [];
|
|
313
313
|
return i === "" || e.length === 0 ? [] : Hc(i) ? e.map((n) => {
|
|
314
|
-
const s =
|
|
314
|
+
const s = Pr(n);
|
|
315
315
|
return {
|
|
316
316
|
unitId: s.unitId,
|
|
317
317
|
sheetId: a(s.sheetName),
|
|
@@ -321,15 +321,15 @@ function Kb(i, a) {
|
|
|
321
321
|
}) : [];
|
|
322
322
|
}
|
|
323
323
|
function Hc(i) {
|
|
324
|
-
return ((i == null ? void 0 : i.split(",")) || []).every((e) =>
|
|
324
|
+
return ((i == null ? void 0 : i.split(",")) || []).every((e) => un(e.trim()));
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Ls(i) {
|
|
327
327
|
return i.length === 0 ? !1 : !!(yc(i) || Gc(i) || Qc(i) || Wc(i) || /[\s!$%^&*()+\-=\[\]{};':"\\|,.<>\/?()]/.test(i));
|
|
328
328
|
}
|
|
329
329
|
function so(i) {
|
|
330
|
-
return
|
|
330
|
+
return Ls(i) ? `'${Ps(i)}'` : i;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ps(i) {
|
|
333
333
|
return i.replace(/'/g, "''");
|
|
334
334
|
}
|
|
335
335
|
function oi(i) {
|
|
@@ -350,14 +350,14 @@ var qc = Object.getOwnPropertyDescriptor, Kc = (i, a, e, t) => {
|
|
|
350
350
|
(s = i[n]) && (r = s(r) || r);
|
|
351
351
|
return r;
|
|
352
352
|
}, Xc = (i, a) => (e, t) => a(e, t, i);
|
|
353
|
-
let
|
|
353
|
+
let xs = class extends Ne {
|
|
354
354
|
constructor(a) {
|
|
355
355
|
super();
|
|
356
356
|
// 18.2.6 definedNames (Defined Names)
|
|
357
357
|
A(this, "_definedNameMap", {});
|
|
358
358
|
A(this, "_nameCacheMap", {});
|
|
359
359
|
// Cache for name-to-definition mapping
|
|
360
|
-
A(this, "_update$", new
|
|
360
|
+
A(this, "_update$", new lr());
|
|
361
361
|
A(this, "update$", this._update$.asObservable());
|
|
362
362
|
A(this, "_currentRange", {
|
|
363
363
|
unitId: "",
|
|
@@ -369,9 +369,9 @@ let Ps = class extends Ne {
|
|
|
369
369
|
endColumn: 0
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
A(this, "_currentRange$", new
|
|
372
|
+
A(this, "_currentRange$", new lr());
|
|
373
373
|
A(this, "currentRange$", this._currentRange$.asObservable());
|
|
374
|
-
A(this, "_focusRange$", new
|
|
374
|
+
A(this, "_focusRange$", new lr());
|
|
375
375
|
A(this, "focusRange$", this._focusRange$.asObservable());
|
|
376
376
|
this._univerInstanceService = a;
|
|
377
377
|
}
|
|
@@ -448,13 +448,13 @@ let Ps = class extends Ne {
|
|
|
448
448
|
this._nameCacheMap[a][t.name] = t;
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
|
-
|
|
452
|
-
Xc(0,
|
|
453
|
-
],
|
|
454
|
-
const
|
|
451
|
+
xs = Kc([
|
|
452
|
+
Xc(0, Yn)
|
|
453
|
+
], xs);
|
|
454
|
+
const Vr = Ze("univer.formula.defined-names.service"), Xb = (i, a) => {
|
|
455
455
|
const { unitId: e, id: t } = a;
|
|
456
456
|
return {
|
|
457
|
-
...i.get(
|
|
457
|
+
...i.get(Vr).getValueById(e, t),
|
|
458
458
|
unitId: e
|
|
459
459
|
};
|
|
460
460
|
}, ca = {
|
|
@@ -463,7 +463,7 @@ const pr = Ze("univer.formula.defined-names.service"), Xb = (i, a) => {
|
|
|
463
463
|
handler: (i, a) => {
|
|
464
464
|
if (a == null)
|
|
465
465
|
return !1;
|
|
466
|
-
const e = i.get(
|
|
466
|
+
const e = i.get(Vr), { id: t, unitId: r, name: n, formulaOrRefString: s, comment: o, hidden: u, localSheetId: c } = a;
|
|
467
467
|
return e.registerDefinedName(r, {
|
|
468
468
|
id: t,
|
|
469
469
|
name: n.trim(),
|
|
@@ -479,7 +479,7 @@ const pr = Ze("univer.formula.defined-names.service"), Xb = (i, a) => {
|
|
|
479
479
|
handler: (i, a) => {
|
|
480
480
|
if (a == null)
|
|
481
481
|
return !1;
|
|
482
|
-
const e = i.get(
|
|
482
|
+
const e = i.get(Vr), { unitId: t, id: r } = a;
|
|
483
483
|
return e.removeDefinedName(t, r), !0;
|
|
484
484
|
}
|
|
485
485
|
}, la = {
|
|
@@ -498,7 +498,7 @@ const pr = Ze("univer.formula.defined-names.service"), Xb = (i, a) => {
|
|
|
498
498
|
id: "formula.mutation.set-formula-calculation-stop",
|
|
499
499
|
type: Ie.MUTATION,
|
|
500
500
|
handler: () => !0
|
|
501
|
-
},
|
|
501
|
+
}, _n = {
|
|
502
502
|
id: "formula.mutation.set-formula-calculation-notification",
|
|
503
503
|
type: Ie.MUTATION,
|
|
504
504
|
handler: () => !0
|
|
@@ -557,16 +557,16 @@ class Nt {
|
|
|
557
557
|
return a.length <= 64 ? a : Xu(a).toString();
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
const ht = "P_1", Ut = "R_1",
|
|
561
|
-
function
|
|
562
|
-
const a =
|
|
560
|
+
const ht = "P_1", Ut = "R_1", mr = "L_1", Fr = "LR_1", fo = "LO_1", Jc = "LET", xr = "LAMBDA", el = "CUBE", tl = /* @__PURE__ */ new Set(["RAND", "RANDBETWEEN", "NOW", "TODAY"]), js = new Nt(1e5);
|
|
561
|
+
function gr(i) {
|
|
562
|
+
const a = js.get(i);
|
|
563
563
|
if (a)
|
|
564
564
|
return a;
|
|
565
|
-
const e =
|
|
566
|
-
return
|
|
565
|
+
const e = Pr(i);
|
|
566
|
+
return js.set(i, e), Pr(i);
|
|
567
567
|
}
|
|
568
568
|
function rl() {
|
|
569
|
-
|
|
569
|
+
js.clear();
|
|
570
570
|
}
|
|
571
571
|
var $e = /* @__PURE__ */ ((i) => (i[i.NORMAL = 0] = "NORMAL", i[i.NUMBER = 1] = "NUMBER", i[i.STRING = 2] = "STRING", i[i.FUNCTION = 3] = "FUNCTION", i[i.REFERENCE = 4] = "REFERENCE", i[i.ARRAY = 5] = "ARRAY", i[i.DEFINED_NAME = 6] = "DEFINED_NAME", i))($e || {});
|
|
572
572
|
function ui(i) {
|
|
@@ -682,7 +682,7 @@ class ae {
|
|
|
682
682
|
return r;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
const ho = 2e3,
|
|
685
|
+
const ho = 2e3, ms = new Nt(ho), gs = new Nt(ho);
|
|
686
686
|
class ga extends Ne {
|
|
687
687
|
constructor() {
|
|
688
688
|
super(...arguments);
|
|
@@ -707,7 +707,7 @@ class ga extends Ne {
|
|
|
707
707
|
}
|
|
708
708
|
// Table3[[#All],[Column1]:[Column2]]
|
|
709
709
|
dispose() {
|
|
710
|
-
this._resetTemp(), this._currentLexerNode.dispose(),
|
|
710
|
+
this._resetTemp(), this._currentLexerNode.dispose(), ms.clear(), gs.clear();
|
|
711
711
|
}
|
|
712
712
|
getUpLevel() {
|
|
713
713
|
return this._upLevel;
|
|
@@ -752,7 +752,7 @@ class ga extends Ne {
|
|
|
752
752
|
let s = n.getParent(), o = n;
|
|
753
753
|
for (; s; ) {
|
|
754
754
|
const u = s.getToken();
|
|
755
|
-
if (u !== ht && !
|
|
755
|
+
if (u !== ht && !an(u) && s.getStartIndex() !== -1) {
|
|
756
756
|
const c = s.getChildren().indexOf(o);
|
|
757
757
|
return {
|
|
758
758
|
functionName: u,
|
|
@@ -779,19 +779,19 @@ class ga extends Ne {
|
|
|
779
779
|
let u = o.getParent(), c = 0;
|
|
780
780
|
for (s[1] === K.OPEN_BRACKET && c++; u; ) {
|
|
781
781
|
const l = u.getToken();
|
|
782
|
-
l !== ht && l !== K.COLON && u.getStartIndex() !== -1 && l.toUpperCase() !==
|
|
782
|
+
l !== ht && l !== K.COLON && u.getStartIndex() !== -1 && l.toUpperCase() !== xr && (t === 0 ? c += 1 : t--), u = u.getParent();
|
|
783
783
|
}
|
|
784
784
|
return c;
|
|
785
785
|
}
|
|
786
786
|
sequenceNodesBuilder(e) {
|
|
787
|
-
const t =
|
|
787
|
+
const t = gs.get(e);
|
|
788
788
|
if (t)
|
|
789
789
|
return [...t];
|
|
790
790
|
const r = this._getSequenceArray(e);
|
|
791
791
|
if (r.length === 0)
|
|
792
792
|
return;
|
|
793
793
|
const n = this.getSequenceNode(r);
|
|
794
|
-
return
|
|
794
|
+
return gs.set(e, [...n]), n;
|
|
795
795
|
}
|
|
796
796
|
convertRefersToAbsolute(e, t, r, n = "") {
|
|
797
797
|
const s = this.sequenceNodesBuilder(e);
|
|
@@ -802,14 +802,14 @@ class ga extends Ne {
|
|
|
802
802
|
for (let u = 0, c = s.length; u < c; u++) {
|
|
803
803
|
const l = s[u];
|
|
804
804
|
if (typeof l != "string" && l.nodeType === $e.REFERENCE) {
|
|
805
|
-
const { token: f, endIndex: h } = l, d =
|
|
805
|
+
const { token: f, endIndex: h } = l, d = gr(f);
|
|
806
806
|
if (d == null)
|
|
807
807
|
continue;
|
|
808
808
|
const { range: _, sheetName: C, unitId: E } = d, b = {
|
|
809
809
|
..._,
|
|
810
810
|
startAbsoluteRefType: t,
|
|
811
811
|
endAbsoluteRefType: r
|
|
812
|
-
}, R =
|
|
812
|
+
}, R = Ds({
|
|
813
813
|
range: b,
|
|
814
814
|
unitId: E,
|
|
815
815
|
sheetName: C || n
|
|
@@ -838,7 +838,7 @@ class ga extends Ne {
|
|
|
838
838
|
o.push(l);
|
|
839
839
|
continue;
|
|
840
840
|
}
|
|
841
|
-
const { token: f } = l, h =
|
|
841
|
+
const { token: f } = l, h = gr(f), { sheetName: d, unitId: _ } = h;
|
|
842
842
|
let C = h.range;
|
|
843
843
|
if (!n && C.startAbsoluteRefType === we.ALL && C.endAbsoluteRefType === we.ALL) {
|
|
844
844
|
o.push(l);
|
|
@@ -846,7 +846,7 @@ class ga extends Ne {
|
|
|
846
846
|
} else
|
|
847
847
|
C = aa(C, t, r, n);
|
|
848
848
|
let E = "";
|
|
849
|
-
Zu(C) ? E =
|
|
849
|
+
Zu(C) ? E = Ds({
|
|
850
850
|
range: C,
|
|
851
851
|
unitId: _,
|
|
852
852
|
sheetName: d
|
|
@@ -865,7 +865,7 @@ class ga extends Ne {
|
|
|
865
865
|
if (this._currentLexerNode.getChildren().length === 0)
|
|
866
866
|
return !0;
|
|
867
867
|
const e = this._currentLexerNode.getChildren()[0];
|
|
868
|
-
return !!(e instanceof ae || Dt.has(e) ||
|
|
868
|
+
return !!(e instanceof ae || Dt.has(e) || fs.has(e) || e === Me.AT || e === K.COMMA || e === K.COLON || e === K.OPEN_BRACKET);
|
|
869
869
|
}
|
|
870
870
|
// eslint-disable-next-line complexity
|
|
871
871
|
getSequenceNode(e) {
|
|
@@ -881,12 +881,12 @@ class ga extends Ne {
|
|
|
881
881
|
const h = n - f.length;
|
|
882
882
|
let d = n - 1;
|
|
883
883
|
const _ = n - 1;
|
|
884
|
-
if (n === s - 1 && this._isLastMergeString(l) && (f += l, d += 1), f === "" ||
|
|
884
|
+
if (n === s - 1 && this._isLastMergeString(l) && (f += l, d += 1), f === "" || sn.has(f)) {
|
|
885
885
|
t.push(l);
|
|
886
886
|
continue;
|
|
887
887
|
}
|
|
888
888
|
const C = f.trim(), E = no(C);
|
|
889
|
-
r === !0 && C[C.length - 1] === K.DOUBLE_QUOTATION && C[0] !== K.OPEN_BRACES ? (r = !1, this._processPushSequenceNode(t, $e.STRING, f, h, d, _)) :
|
|
889
|
+
r === !0 && C[C.length - 1] === K.DOUBLE_QUOTATION && C[0] !== K.OPEN_BRACES ? (r = !1, this._processPushSequenceNode(t, $e.STRING, f, h, d, _)) : Ir(E) && un(E) ? this._processPushSequenceNode(t, $e.REFERENCE, f, h, d, _) : qe.isStringNumber(C) ? this._processPushSequenceNode(t, $e.NUMBER, f, h, d, _) : C.length > 0 && this._processPushSequenceNode(t, $e.FUNCTION, f, h, d, _), (n !== s - 1 || !this._isLastMergeString(l)) && t.push(l);
|
|
890
890
|
}
|
|
891
891
|
return this._mergeSequenceNodeReference(t);
|
|
892
892
|
}
|
|
@@ -906,7 +906,7 @@ class ga extends Ne {
|
|
|
906
906
|
return this._nodeMaker(e, void 0, t);
|
|
907
907
|
}
|
|
908
908
|
_isLastMergeString(e) {
|
|
909
|
-
return e === K.DOUBLE_QUOTATION || qe.isStringNumber(e) || !
|
|
909
|
+
return e === K.DOUBLE_QUOTATION || qe.isStringNumber(e) || !an(e);
|
|
910
910
|
}
|
|
911
911
|
/**
|
|
912
912
|
* Merge array and handle ref operations
|
|
@@ -926,7 +926,7 @@ class ga extends Ne {
|
|
|
926
926
|
t.push(s);
|
|
927
927
|
} else {
|
|
928
928
|
const o = e[n + 1], u = e[n + 2];
|
|
929
|
-
o === K.COLON && typeof s != "string" && u != null && typeof u != "string" &&
|
|
929
|
+
o === K.COLON && typeof s != "string" && u != null && typeof u != "string" && un((s.token + o + u.token).trim()) && (s.nodeType = $e.REFERENCE, s.token += o + u.token, s.endIndex = u.endIndex, n += 2), t.push(s);
|
|
930
930
|
}
|
|
931
931
|
n++;
|
|
932
932
|
}
|
|
@@ -942,7 +942,7 @@ class ga extends Ne {
|
|
|
942
942
|
const s = r.token.match(/^(\s*([-@+]\s*)+)(.*)$/);
|
|
943
943
|
if (s) {
|
|
944
944
|
const o = s[1], u = s[3];
|
|
945
|
-
if (
|
|
945
|
+
if (un(u.trim())) {
|
|
946
946
|
const c = o.length, l = r.startIndex, f = r.startIndex + c - 1, h = {
|
|
947
947
|
nodeType: $e.NORMAL,
|
|
948
948
|
// Use appropriate nodeType for operators
|
|
@@ -973,7 +973,7 @@ class ga extends Ne {
|
|
|
973
973
|
}
|
|
974
974
|
treeBuilder(e, t = !0, r, n) {
|
|
975
975
|
if (t === !0) {
|
|
976
|
-
const h =
|
|
976
|
+
const h = ms.get(e), d = n == null ? void 0 : n(e);
|
|
977
977
|
if (h && !d)
|
|
978
978
|
return h;
|
|
979
979
|
}
|
|
@@ -993,7 +993,7 @@ class ga extends Ne {
|
|
|
993
993
|
if (f && (this._currentLexerNode = f), t) {
|
|
994
994
|
if (!this._suffixExpressionHandler(this._currentLexerNode))
|
|
995
995
|
return m.VALUE;
|
|
996
|
-
|
|
996
|
+
ms.set(e, this._currentLexerNode);
|
|
997
997
|
}
|
|
998
998
|
return u && this._currentLexerNode.setDefinedNames(l), this._currentLexerNode;
|
|
999
999
|
}
|
|
@@ -1022,7 +1022,7 @@ class ga extends Ne {
|
|
|
1022
1022
|
const h = (u = s[s.length - 1]) == null ? void 0 : u.trim();
|
|
1023
1023
|
if (!h || h === K.OPEN_BRACKET)
|
|
1024
1024
|
break;
|
|
1025
|
-
const d =
|
|
1025
|
+
const d = sn.get(h), _ = sn.get(f);
|
|
1026
1026
|
if (d === void 0 || _ === void 0)
|
|
1027
1027
|
break;
|
|
1028
1028
|
if (_ >= d)
|
|
@@ -1180,7 +1180,7 @@ class ga extends Ne {
|
|
|
1180
1180
|
var r, n, s, o, u, c;
|
|
1181
1181
|
const e = (r = this._currentLexerNode) == null ? void 0 : r.getParent();
|
|
1182
1182
|
let t = !1;
|
|
1183
|
-
if (e && e.getToken() ===
|
|
1183
|
+
if (e && e.getToken() === mr) {
|
|
1184
1184
|
if ((n = e == null ? void 0 : e.getParent()) != null && n.getParent()) {
|
|
1185
1185
|
const l = (o = (s = this._currentLexerNode.getParent()) == null ? void 0 : s.getParent()) == null ? void 0 : o.getParent();
|
|
1186
1186
|
l && (this._currentLexerNode = l), t = !0;
|
|
@@ -1239,7 +1239,7 @@ class ga extends Ne {
|
|
|
1239
1239
|
const r = this._findPreviousToken(e, t) || "", n = e.length - 1 === t;
|
|
1240
1240
|
if (!n && this._isOperatorToken(r) || n && pc(r))
|
|
1241
1241
|
return !0;
|
|
1242
|
-
if (
|
|
1242
|
+
if (fs.has(r)) {
|
|
1243
1243
|
const s = this._findSecondLastNonSpaceToken(e, t);
|
|
1244
1244
|
if (s == null || Nc(s))
|
|
1245
1245
|
return !0;
|
|
@@ -1303,7 +1303,7 @@ class ga extends Ne {
|
|
|
1303
1303
|
let s = r[++n];
|
|
1304
1304
|
for (; s === " "; )
|
|
1305
1305
|
s = r[++n];
|
|
1306
|
-
return !!
|
|
1306
|
+
return !!an(s);
|
|
1307
1307
|
}
|
|
1308
1308
|
_checkIfErrorObject(e, t) {
|
|
1309
1309
|
return !!this._findErrorObject(e, t);
|
|
@@ -1311,7 +1311,7 @@ class ga extends Ne {
|
|
|
1311
1311
|
_findErrorObject(e, t) {
|
|
1312
1312
|
for (let r = 0; r < Za.length; r++) {
|
|
1313
1313
|
const n = Za[r], s = t.slice(e, e + n).join("").toUpperCase();
|
|
1314
|
-
if (
|
|
1314
|
+
if (Rr.has(s))
|
|
1315
1315
|
return s;
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
@@ -1367,7 +1367,7 @@ class ga extends Ne {
|
|
|
1367
1367
|
if (f && f === K.OPEN_BRACKET) {
|
|
1368
1368
|
if (!this._setParentCurrentLexerNode() && u !== o - 1)
|
|
1369
1369
|
return m.VALUE;
|
|
1370
|
-
this._newAndPushCurrentLexerNode(
|
|
1370
|
+
this._newAndPushCurrentLexerNode(mr, u, !0), this._openLambda();
|
|
1371
1371
|
} else if (!this._setAncestorCurrentLexerNode() && u !== o - 1)
|
|
1372
1372
|
return m.VALUE;
|
|
1373
1373
|
} else
|
|
@@ -1452,7 +1452,7 @@ class ga extends Ne {
|
|
|
1452
1452
|
C && C.changeToParent(f);
|
|
1453
1453
|
}
|
|
1454
1454
|
this._setCurrentLexerNode(d), this._currentLexerNode = h, this._openColon(_);
|
|
1455
|
-
} else if (
|
|
1455
|
+
} else if (fs.has(c) && this._checkSimilarErrorToken(c, u, s) && this.isSingleQuotationClose() && this.isDoubleQuotationClose() && this.isSquareBracketClose() && this.isBracesClose()) {
|
|
1456
1456
|
this._pushNodeToChildren(this._segment);
|
|
1457
1457
|
const l = new ae();
|
|
1458
1458
|
l.setToken(c);
|
|
@@ -1558,7 +1558,7 @@ var al = Object.getOwnPropertyDescriptor, il = (i, a, e, t) => {
|
|
|
1558
1558
|
(s = i[n]) && (r = s(r) || r);
|
|
1559
1559
|
return r;
|
|
1560
1560
|
}, ci = (i, a) => (e, t) => a(e, t, i);
|
|
1561
|
-
let
|
|
1561
|
+
let dr = class extends Ne {
|
|
1562
1562
|
constructor(a, e) {
|
|
1563
1563
|
super();
|
|
1564
1564
|
A(this, "_arrayFormulaRange", {});
|
|
@@ -1618,7 +1618,7 @@ let gr = class extends Ne {
|
|
|
1618
1618
|
});
|
|
1619
1619
|
}
|
|
1620
1620
|
getFormulaData() {
|
|
1621
|
-
const a = {}, e = this._univerInstanceService.getAllUnitsForType(
|
|
1621
|
+
const a = {}, e = this._univerInstanceService.getAllUnitsForType(cr.UNIVER_SHEET);
|
|
1622
1622
|
return e.length === 0 || e.forEach((t) => {
|
|
1623
1623
|
const r = t.getUnitId();
|
|
1624
1624
|
a[r] = {}, t.getSheets().forEach((s) => {
|
|
@@ -1673,7 +1673,7 @@ let gr = class extends Ne {
|
|
|
1673
1673
|
s.getValue(t, r) && (s.realDeleteValue(t, r), this._arrayFormulaRange[a] && (this._arrayFormulaRange[a][e] = s.getData()));
|
|
1674
1674
|
}
|
|
1675
1675
|
getCalculateData() {
|
|
1676
|
-
const a = this._univerInstanceService.getAllUnitsForType(
|
|
1676
|
+
const a = this._univerInstanceService.getAllUnitsForType(cr.UNIVER_SHEET), e = {}, t = {}, r = {};
|
|
1677
1677
|
for (const n of a) {
|
|
1678
1678
|
const s = n.getUnitId(), o = n.getSheets(), u = {}, c = {};
|
|
1679
1679
|
for (const l of o) {
|
|
@@ -1702,7 +1702,7 @@ let gr = class extends Ne {
|
|
|
1702
1702
|
* For formulas that are sensitive to hidden rows.
|
|
1703
1703
|
*/
|
|
1704
1704
|
getHiddenRowsFiltered() {
|
|
1705
|
-
const a = this._univerInstanceService.getAllUnitsForType(
|
|
1705
|
+
const a = this._univerInstanceService.getAllUnitsForType(cr.UNIVER_SHEET), e = {};
|
|
1706
1706
|
for (const t of a) {
|
|
1707
1707
|
const r = t.getUnitId(), n = t.getSheets();
|
|
1708
1708
|
e[r] = {};
|
|
@@ -1855,10 +1855,10 @@ let gr = class extends Ne {
|
|
|
1855
1855
|
}), t;
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
|
-
|
|
1859
|
-
ci(0,
|
|
1858
|
+
dr = il([
|
|
1859
|
+
ci(0, Yn),
|
|
1860
1860
|
ci(1, ye(ga))
|
|
1861
|
-
],
|
|
1861
|
+
], dr);
|
|
1862
1862
|
function li(i, a, e, t) {
|
|
1863
1863
|
i[a] || (i[a] = {}), i[a][e] || (i[a][e] = {});
|
|
1864
1864
|
const r = /* @__PURE__ */ new Map(), n = new Ce(i[a][e]);
|
|
@@ -1891,7 +1891,7 @@ function li(i, a, e, t) {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
|
-
const ol = class
|
|
1894
|
+
const ol = class Us {
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Accept two comparable values and creates new instance of interval
|
|
1897
1897
|
* Predicate Interval.comparable_less(low, high) supposed to return true on these values
|
|
@@ -1906,7 +1906,7 @@ const ol = class js {
|
|
|
1906
1906
|
* @returns {Interval}
|
|
1907
1907
|
*/
|
|
1908
1908
|
clone() {
|
|
1909
|
-
return new
|
|
1909
|
+
return new Us(this.low, this.high);
|
|
1910
1910
|
}
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Propery max returns clone of this interval
|
|
@@ -1953,7 +1953,7 @@ const ol = class js {
|
|
|
1953
1953
|
* @returns {Interval}
|
|
1954
1954
|
*/
|
|
1955
1955
|
merge(a) {
|
|
1956
|
-
return new
|
|
1956
|
+
return new Us(
|
|
1957
1957
|
this.low === void 0 ? a.low : this.low < a.low ? this.low : a.low,
|
|
1958
1958
|
this.high === void 0 ? a.high : this.high > a.high ? this.high : a.high
|
|
1959
1959
|
);
|
|
@@ -2421,8 +2421,8 @@ var ll = Object.getOwnPropertyDescriptor, fl = (i, a, e, t) => {
|
|
|
2421
2421
|
for (var r = t > 1 ? void 0 : t ? ll(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
2422
2422
|
(s = i[n]) && (r = s(r) || r);
|
|
2423
2423
|
return r;
|
|
2424
|
-
},
|
|
2425
|
-
let
|
|
2424
|
+
}, Xr = (i, a) => (e, t) => a(e, t, i);
|
|
2425
|
+
let vs = class extends Ne {
|
|
2426
2426
|
constructor(a, e, t, r) {
|
|
2427
2427
|
super();
|
|
2428
2428
|
A(this, "_unitData", {});
|
|
@@ -2508,7 +2508,7 @@ let Us = class extends Ne {
|
|
|
2508
2508
|
return this._localeService.getCurrentLocale();
|
|
2509
2509
|
}
|
|
2510
2510
|
getSheetsInfo() {
|
|
2511
|
-
const a = this._univerInstanceService.getCurrentUnitForType(
|
|
2511
|
+
const a = this._univerInstanceService.getCurrentUnitForType(cr.UNIVER_SHEET), { id: e, sheetOrder: t } = a.getSnapshot();
|
|
2512
2512
|
return {
|
|
2513
2513
|
sheetOrder: t,
|
|
2514
2514
|
sheetNameMap: this._sheetIdToNameMap[e]
|
|
@@ -2625,7 +2625,7 @@ let Us = class extends Ne {
|
|
|
2625
2625
|
});
|
|
2626
2626
|
}
|
|
2627
2627
|
_loadSheetData() {
|
|
2628
|
-
const a = this._univerInstanceService.getCurrentUnitForType(
|
|
2628
|
+
const a = this._univerInstanceService.getCurrentUnitForType(cr.UNIVER_SHEET), e = a == null ? void 0 : a.getActiveSheet();
|
|
2629
2629
|
return this._executeUnitId = a == null ? void 0 : a.getUnitId(), this._executeSubUnitId = e == null ? void 0 : e.getSheetId(), this._formulaDataModel.getCalculateData();
|
|
2630
2630
|
}
|
|
2631
2631
|
/**
|
|
@@ -2645,12 +2645,12 @@ let Us = class extends Ne {
|
|
|
2645
2645
|
}), this._unitData[e][t].rowData = a[e][t]);
|
|
2646
2646
|
}
|
|
2647
2647
|
};
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
],
|
|
2648
|
+
vs = fl([
|
|
2649
|
+
Xr(0, Yn),
|
|
2650
|
+
Xr(1, ye(Ju)),
|
|
2651
|
+
Xr(2, ye(dr)),
|
|
2652
|
+
Xr(3, ye(go))
|
|
2653
|
+
], vs);
|
|
2654
2654
|
const kt = Ze(
|
|
2655
2655
|
"univer.formula.current-data.service"
|
|
2656
2656
|
);
|
|
@@ -2658,8 +2658,8 @@ var hl = Object.getOwnPropertyDescriptor, ml = (i, a, e, t) => {
|
|
|
2658
2658
|
for (var r = t > 1 ? void 0 : t ? hl(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
2659
2659
|
(s = i[n]) && (r = s(r) || r);
|
|
2660
2660
|
return r;
|
|
2661
|
-
},
|
|
2662
|
-
let
|
|
2661
|
+
}, ds = (i, a) => (e, t) => a(e, t, i);
|
|
2662
|
+
let Cr = class extends Ne {
|
|
2663
2663
|
constructor(i, a, e) {
|
|
2664
2664
|
super(), this._definedNamesService = i, this._lexerTreeBuilder = a, this._formulaCurrentConfigService = e;
|
|
2665
2665
|
}
|
|
@@ -2722,12 +2722,12 @@ let dr = class extends Ne {
|
|
|
2722
2722
|
};
|
|
2723
2723
|
}
|
|
2724
2724
|
};
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
],
|
|
2730
|
-
function
|
|
2725
|
+
Cr = ml([
|
|
2726
|
+
ds(0, Vr),
|
|
2727
|
+
ds(1, ye(ga)),
|
|
2728
|
+
ds(2, kt)
|
|
2729
|
+
], Cr);
|
|
2730
|
+
function cn(i) {
|
|
2731
2731
|
if (i == null)
|
|
2732
2732
|
return !0;
|
|
2733
2733
|
const { v: a, f: e, si: t, p: r } = i;
|
|
@@ -2802,16 +2802,16 @@ function zb(i, a, e) {
|
|
|
2802
2802
|
const o = n || s;
|
|
2803
2803
|
return r.n.pattern = o, a;
|
|
2804
2804
|
}
|
|
2805
|
-
const
|
|
2805
|
+
const Ts = new Nt(1e5);
|
|
2806
2806
|
function hi(i) {
|
|
2807
|
-
const a =
|
|
2807
|
+
const a = Ts.get(i);
|
|
2808
2808
|
if (a !== void 0)
|
|
2809
2809
|
return a;
|
|
2810
2810
|
const e = _l(i);
|
|
2811
|
-
return
|
|
2811
|
+
return Ts.set(i, e), e;
|
|
2812
2812
|
}
|
|
2813
2813
|
function Cl() {
|
|
2814
|
-
|
|
2814
|
+
Ts.clear();
|
|
2815
2815
|
}
|
|
2816
2816
|
function _l(i) {
|
|
2817
2817
|
if (Al(i))
|
|
@@ -2822,7 +2822,7 @@ function _l(i) {
|
|
|
2822
2822
|
function Al(i) {
|
|
2823
2823
|
return !!gl.find((a) => i.includes(a)) && i.startsWith("_(");
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function Zr(i, a, e) {
|
|
2826
2826
|
if (i === "")
|
|
2827
2827
|
return a;
|
|
2828
2828
|
if (a === "")
|
|
@@ -2831,12 +2831,12 @@ function Xr(i, a, e) {
|
|
|
2831
2831
|
return e === X.PLUS || e === X.MINUS ? t === 4 && r === 4 || t === 11 && r === 11 ? "" : a : e === X.MULTIPLY || e === X.DIVIDED ? t === 6 && r === 6 || t === 7 && r === 7 || t === 8 && r === 8 || t === 9 && r === 9 ? a : "" : i || a;
|
|
2832
2832
|
}
|
|
2833
2833
|
const El = /* @__PURE__ */ new Map([
|
|
2834
|
-
[
|
|
2834
|
+
[Sr.EN_US, "$"],
|
|
2835
2835
|
// [LocaleType.JA_JP, '¥'],
|
|
2836
|
-
[
|
|
2837
|
-
[
|
|
2838
|
-
[
|
|
2839
|
-
[
|
|
2836
|
+
[Sr.RU_RU, "₽"],
|
|
2837
|
+
[Sr.VI_VN, "₫"],
|
|
2838
|
+
[Sr.ZH_CN, "¥"],
|
|
2839
|
+
[Sr.ZH_TW, "NT$"]
|
|
2840
2840
|
]);
|
|
2841
2841
|
function mi(i) {
|
|
2842
2842
|
return El.get(i) || "$";
|
|
@@ -2863,16 +2863,16 @@ function yl(i) {
|
|
|
2863
2863
|
};
|
|
2864
2864
|
const t = dt.parseNumber(a);
|
|
2865
2865
|
if (t && t.z)
|
|
2866
|
-
return
|
|
2866
|
+
return Cs(a, t.v, t.z);
|
|
2867
2867
|
const r = dt.parseDate(a);
|
|
2868
2868
|
if (r && r.z)
|
|
2869
|
-
return
|
|
2869
|
+
return Cs(a, r.v, r.z);
|
|
2870
2870
|
const n = dt.parseTime(a);
|
|
2871
|
-
return n && n.z ?
|
|
2871
|
+
return n && n.z ? Cs(a, n.v, n.z) : {
|
|
2872
2872
|
isNumberPattern: !1
|
|
2873
2873
|
};
|
|
2874
2874
|
}
|
|
2875
|
-
function
|
|
2875
|
+
function Cs(i, a, e) {
|
|
2876
2876
|
return _a.set(i, {
|
|
2877
2877
|
value: a,
|
|
2878
2878
|
pattern: e
|
|
@@ -2885,7 +2885,7 @@ function ds(i, a, e) {
|
|
|
2885
2885
|
function Rl() {
|
|
2886
2886
|
_a.clear();
|
|
2887
2887
|
}
|
|
2888
|
-
class
|
|
2888
|
+
class Hn {
|
|
2889
2889
|
constructor() {
|
|
2890
2890
|
A(this, "pattern", "");
|
|
2891
2891
|
}
|
|
@@ -2923,7 +2923,7 @@ class Yn {
|
|
|
2923
2923
|
return !1;
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
|
-
class $t extends
|
|
2926
|
+
class $t extends Hn {
|
|
2927
2927
|
constructor(e) {
|
|
2928
2928
|
super();
|
|
2929
2929
|
A(this, "_customData");
|
|
@@ -3221,17 +3221,17 @@ class $t extends Yn {
|
|
|
3221
3221
|
return g.create(m.VALUE);
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
|
-
const pl = 1e3,
|
|
3224
|
+
const pl = 1e3, Bs = new Nt(pl);
|
|
3225
3225
|
class g extends $t {
|
|
3226
3226
|
constructor(a, e = "") {
|
|
3227
3227
|
super(a), this._errorType = a, this._errorContent = e;
|
|
3228
3228
|
}
|
|
3229
3229
|
static create(a, e = "") {
|
|
3230
|
-
const t = `${a}-${e}`, r =
|
|
3230
|
+
const t = `${a}-${e}`, r = Bs.get(t);
|
|
3231
3231
|
if (r)
|
|
3232
3232
|
return r;
|
|
3233
3233
|
const n = new g(a, e);
|
|
3234
|
-
return
|
|
3234
|
+
return Bs.set(t, n), n;
|
|
3235
3235
|
}
|
|
3236
3236
|
getValue() {
|
|
3237
3237
|
return this._errorType;
|
|
@@ -3263,13 +3263,13 @@ function Vl(i) {
|
|
|
3263
3263
|
return (a = i == null ? void 0 : i.v) != null ? a : 0;
|
|
3264
3264
|
}
|
|
3265
3265
|
var Wt = /* @__PURE__ */ ((i) => (i[i.MIN = 0] = "MIN", i[i.MAX = 1] = "MAX", i))(Wt || {}), Le = /* @__PURE__ */ ((i) => (i[i.NORMAL = 0] = "NORMAL", i[i.MIN = 1] = "MIN", i[i.MAX = 2] = "MAX", i))(Le || {});
|
|
3266
|
-
function
|
|
3266
|
+
function An() {
|
|
3267
3267
|
return Intl && Intl.Collator ? new Intl.Collator(void 0, { numeric: !1 }).compare : (i, a) => i.localeCompare(a);
|
|
3268
3268
|
}
|
|
3269
3269
|
function Nl(i) {
|
|
3270
3270
|
return i.indexOf("*") > -1 || i.indexOf("?") > -1;
|
|
3271
3271
|
}
|
|
3272
|
-
function
|
|
3272
|
+
function _s(i, a) {
|
|
3273
3273
|
const e = Ml(a).replace(/~?[*?]/g, (r) => r.startsWith("~") ? `\\${r.substring(1)}` : r === "*" ? ".*" : r === "?" ? "." : r);
|
|
3274
3274
|
return new RegExp(`^${e}$`).test(i);
|
|
3275
3275
|
}
|
|
@@ -3280,14 +3280,14 @@ function Ol(i, a, e) {
|
|
|
3280
3280
|
let t = !1;
|
|
3281
3281
|
switch (e) {
|
|
3282
3282
|
case $.EQUALS:
|
|
3283
|
-
t =
|
|
3283
|
+
t = _s(i, a);
|
|
3284
3284
|
break;
|
|
3285
3285
|
case $.NOT_EQUAL:
|
|
3286
|
-
t = !
|
|
3286
|
+
t = !_s(i, a);
|
|
3287
3287
|
break;
|
|
3288
3288
|
case $.GREATER_THAN:
|
|
3289
3289
|
case $.GREATER_THAN_OR_EQUAL:
|
|
3290
|
-
t =
|
|
3290
|
+
t = _s(i, a) || i > gi(a);
|
|
3291
3291
|
break;
|
|
3292
3292
|
case $.LESS_THAN:
|
|
3293
3293
|
case $.LESS_THAN_OR_EQUAL:
|
|
@@ -3299,7 +3299,7 @@ function Ol(i, a, e) {
|
|
|
3299
3299
|
function Ml(i) {
|
|
3300
3300
|
return i.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
3301
3301
|
}
|
|
3302
|
-
function
|
|
3302
|
+
function Is(i) {
|
|
3303
3303
|
switch (i) {
|
|
3304
3304
|
case 1:
|
|
3305
3305
|
return 2;
|
|
@@ -3311,7 +3311,7 @@ function Bs(i) {
|
|
|
3311
3311
|
return 0;
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function Fs(i) {
|
|
3315
3315
|
return i === -2 ? 1 : 0;
|
|
3316
3316
|
}
|
|
3317
3317
|
function Aa(i) {
|
|
@@ -3345,7 +3345,7 @@ function Aa(i) {
|
|
|
3345
3345
|
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
3346
3346
|
* MIT Licence
|
|
3347
3347
|
*/
|
|
3348
|
-
var
|
|
3348
|
+
var ur = 9e15, Yt = 1e9, ks = "0123456789abcdef", En = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", bn = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", $s = {
|
|
3349
3349
|
// These values must be integers within the stated ranges (inclusive).
|
|
3350
3350
|
// Most of these values can be changed at run-time using the `Decimal.config` method.
|
|
3351
3351
|
// The maximum number of significant digits of the result of a calculation or base conversion.
|
|
@@ -3394,16 +3394,16 @@ var Fs = 9e15, Yt = 1e9, ks = "0123456789abcdef", An = "2.3025850929940456840179
|
|
|
3394
3394
|
// 0 to EXP_LIMIT
|
|
3395
3395
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
3396
3396
|
// JavaScript numbers: -324 (5e-324)
|
|
3397
|
-
minE: -
|
|
3397
|
+
minE: -ur,
|
|
3398
3398
|
// -1 to -EXP_LIMIT
|
|
3399
3399
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
3400
3400
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
3401
|
-
maxE:
|
|
3401
|
+
maxE: ur,
|
|
3402
3402
|
// 1 to EXP_LIMIT
|
|
3403
3403
|
// Whether to use cryptographically-secure random number generation, if available.
|
|
3404
3404
|
crypto: !1
|
|
3405
3405
|
// true/false
|
|
3406
|
-
}, _o, pt, oe = !0,
|
|
3406
|
+
}, _o, pt, oe = !0, Gn = "[DecimalError] ", It = Gn + "Invalid argument: ", Ao = Gn + "Precision limit exceeded", Eo = Gn + "crypto unavailable", bo = "[object Decimal]", Be = Math.floor, Pe = Math.pow, wl = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Sl = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Dl = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, yo = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, lt = 1e7, te = 7, Ll = 9007199254740991, Pl = En.length - 1, Ys = bn.length - 1, I = { toStringTag: bo };
|
|
3407
3407
|
I.absoluteValue = I.abs = function() {
|
|
3408
3408
|
var i = new this.constructor(this);
|
|
3409
3409
|
return i.s < 0 && (i.s = 1), J(i);
|
|
@@ -3481,7 +3481,7 @@ I.hyperbolicCosine = I.cosh = function() {
|
|
|
3481
3481
|
var i, a, e, t, r, n = this, s = n.constructor, o = new s(1);
|
|
3482
3482
|
if (!n.isFinite()) return new s(n.s ? 1 / 0 : NaN);
|
|
3483
3483
|
if (n.isZero()) return o;
|
|
3484
|
-
e = s.precision, t = s.rounding, s.precision = e + Math.max(n.e, n.sd()) + 4, s.rounding = 1, r = n.d.length, r < 32 ? (i = Math.ceil(r / 3), a = (1 /
|
|
3484
|
+
e = s.precision, t = s.rounding, s.precision = e + Math.max(n.e, n.sd()) + 4, s.rounding = 1, r = n.d.length, r < 32 ? (i = Math.ceil(r / 3), a = (1 / Wn(4, i)).toString()) : (i = 16, a = "2.3283064365386962890625e-10"), n = _r(s, 1, n.times(a), new s(1), !0);
|
|
3485
3485
|
for (var u, c = i, l = new s(8); c--; )
|
|
3486
3486
|
u = n.times(n), n = o.minus(u.times(l.minus(u.times(l))));
|
|
3487
3487
|
return J(n, s.precision = e, s.rounding = t, !0);
|
|
@@ -3490,9 +3490,9 @@ I.hyperbolicSine = I.sinh = function() {
|
|
|
3490
3490
|
var i, a, e, t, r = this, n = r.constructor;
|
|
3491
3491
|
if (!r.isFinite() || r.isZero()) return new n(r);
|
|
3492
3492
|
if (a = n.precision, e = n.rounding, n.precision = a + Math.max(r.e, r.sd()) + 4, n.rounding = 1, t = r.d.length, t < 3)
|
|
3493
|
-
r =
|
|
3493
|
+
r = _r(n, 2, r, r, !0);
|
|
3494
3494
|
else {
|
|
3495
|
-
i = 1.4 * Math.sqrt(t), i = i > 16 ? 16 : i | 0, r = r.times(1 /
|
|
3495
|
+
i = 1.4 * Math.sqrt(t), i = i > 16 ? 16 : i | 0, r = r.times(1 / Wn(5, i)), r = _r(n, 2, r, r, !0);
|
|
3496
3496
|
for (var s, o = new n(5), u = new n(16), c = new n(20); i--; )
|
|
3497
3497
|
s = r.times(r), r = r.times(o.plus(s.times(u.times(s).plus(c))));
|
|
3498
3498
|
}
|
|
@@ -3580,13 +3580,13 @@ I.logarithm = I.log = function(i) {
|
|
|
3580
3580
|
for (r = e[0]; r % 10 === 0; ) r /= 10;
|
|
3581
3581
|
n = r !== 1;
|
|
3582
3582
|
}
|
|
3583
|
-
if (oe = !1, o = f + d, s = jt(c, o), t = a ?
|
|
3583
|
+
if (oe = !1, o = f + d, s = jt(c, o), t = a ? yn(l, o + 10) : jt(i, o), u = Ve(s, t, o, 1), jr(u.d, r = f, h))
|
|
3584
3584
|
do
|
|
3585
|
-
if (o += 10, s = jt(c, o), t = a ?
|
|
3585
|
+
if (o += 10, s = jt(c, o), t = a ? yn(l, o + 10) : jt(i, o), u = Ve(s, t, o, 1), !n) {
|
|
3586
3586
|
+Ue(u.d).slice(r + 1, r + 15) + 1 == 1e14 && (u = J(u, f + 1, 0));
|
|
3587
3587
|
break;
|
|
3588
3588
|
}
|
|
3589
|
-
while (
|
|
3589
|
+
while (jr(u.d, r += 10, h));
|
|
3590
3590
|
return oe = !0, J(u, f, h);
|
|
3591
3591
|
};
|
|
3592
3592
|
I.minus = I.sub = function(i) {
|
|
@@ -3622,7 +3622,7 @@ I.minus = I.sub = function(i) {
|
|
|
3622
3622
|
}
|
|
3623
3623
|
for (; c[--s] === 0; ) c.pop();
|
|
3624
3624
|
for (; c[0] === 0; c.shift()) --e;
|
|
3625
|
-
return c[0] ? (i.d = c, i.e =
|
|
3625
|
+
return c[0] ? (i.d = c, i.e = Qn(c, e), oe ? J(i, o, u) : i) : new _(u === 3 ? -0 : 0);
|
|
3626
3626
|
};
|
|
3627
3627
|
I.modulo = I.mod = function(i) {
|
|
3628
3628
|
var a, e = this, t = e.constructor;
|
|
@@ -3653,7 +3653,7 @@ I.plus = I.add = function(i) {
|
|
|
3653
3653
|
for (s = c.length, r = l.length, s - r < 0 && (r = s, e = l, l = c, c = e), a = 0; r; )
|
|
3654
3654
|
a = (c[--r] = c[r] + l[r] + a) / lt | 0, c[r] %= lt;
|
|
3655
3655
|
for (a && (c.unshift(a), ++t), s = c.length; c[--s] == 0; ) c.pop();
|
|
3656
|
-
return i.d = c, i.e =
|
|
3656
|
+
return i.d = c, i.e = Qn(c, t), oe ? J(i, o, u) : i;
|
|
3657
3657
|
};
|
|
3658
3658
|
I.precision = I.sd = function(i) {
|
|
3659
3659
|
var a, e = this;
|
|
@@ -3701,7 +3701,7 @@ I.times = I.mul = function(i) {
|
|
|
3701
3701
|
n[r] = (n[r] + a) % lt | 0;
|
|
3702
3702
|
}
|
|
3703
3703
|
for (; !n[--s]; ) n.pop();
|
|
3704
|
-
return a ? ++e : n.shift(), i.d = n, i.e =
|
|
3704
|
+
return a ? ++e : n.shift(), i.d = n, i.e = Qn(n, e), oe ? J(i, f.precision, f.rounding) : i;
|
|
3705
3705
|
};
|
|
3706
3706
|
I.toBinary = function(i, a) {
|
|
3707
3707
|
return Ea(this, 2, i, a);
|
|
@@ -3764,7 +3764,7 @@ I.toPower = I.pow = function(i) {
|
|
|
3764
3764
|
if ((i.d[a] & 1) == 0 && (s = 1), o.e == 0 && o.d[0] == 1 && o.d.length == 1)
|
|
3765
3765
|
return o.s = s, o;
|
|
3766
3766
|
}
|
|
3767
|
-
return e = Pe(+o, c), a = e == 0 || !isFinite(e) ? Be(c * (Math.log("0." + Ue(o.d)) / Math.LN10 + o.e + 1)) : new u(e + "").e, a > u.maxE + 1 || a < u.minE - 1 ? new u(a > 0 ? s / 0 : 0) : (oe = !1, u.rounding = o.s = 1, e = Math.min(12, (a + "").length), r = Hs(i.times(jt(o, t + e)), t), r.d && (r = J(r, t + 5, 1),
|
|
3767
|
+
return e = Pe(+o, c), a = e == 0 || !isFinite(e) ? Be(c * (Math.log("0." + Ue(o.d)) / Math.LN10 + o.e + 1)) : new u(e + "").e, a > u.maxE + 1 || a < u.minE - 1 ? new u(a > 0 ? s / 0 : 0) : (oe = !1, u.rounding = o.s = 1, e = Math.min(12, (a + "").length), r = Hs(i.times(jt(o, t + e)), t), r.d && (r = J(r, t + 5, 1), jr(r.d, t, n) && (a = t + 10, r = J(Hs(i.times(jt(o, a + e)), a), a + 5, 1), +Ue(r.d).slice(t + 1, t + 15) + 1 == 1e14 && (r = J(r, t + 1, 0)))), r.s = s, oe = !0, u.rounding = n, J(r, t, n));
|
|
3768
3768
|
};
|
|
3769
3769
|
I.toPrecision = function(i, a) {
|
|
3770
3770
|
var e, t = this, r = t.constructor;
|
|
@@ -3800,12 +3800,12 @@ function He(i, a, e) {
|
|
|
3800
3800
|
if (i !== ~~i || i < a || i > e)
|
|
3801
3801
|
throw Error(It + i);
|
|
3802
3802
|
}
|
|
3803
|
-
function
|
|
3803
|
+
function jr(i, a, e, t) {
|
|
3804
3804
|
var r, n, s, o;
|
|
3805
3805
|
for (n = i[0]; n >= 10; n /= 10) --a;
|
|
3806
3806
|
return --a < 0 ? (a += te, r = 0) : (r = Math.ceil((a + 1) / te), a %= te), n = Pe(10, te - a), o = i[r] % n | 0, t == null ? a < 3 ? (a == 0 ? o = o / 100 | 0 : a == 1 && (o = o / 10 | 0), s = e < 4 && o == 99999 || e > 3 && o == 49999 || o == 5e4 || o == 0) : s = (e < 4 && o + 1 == n || e > 3 && o + 1 == n / 2) && (i[r + 1] / n / 100 | 0) == Pe(10, a - 2) - 1 || (o == n / 2 || o == 0) && (i[r + 1] / n / 100 | 0) == 0 : a < 4 ? (a == 0 ? o = o / 1e3 | 0 : a == 1 ? o = o / 100 | 0 : a == 2 && (o = o / 10 | 0), s = (t || e < 4) && o == 9999 || !t && e > 3 && o == 4999) : s = ((t || e < 4) && o + 1 == n || !t && e > 3 && o + 1 == n / 2) && (i[r + 1] / n / 1e3 | 0) == Pe(10, a - 3) - 1, s;
|
|
3807
3807
|
}
|
|
3808
|
-
function
|
|
3808
|
+
function ln(i, a, e) {
|
|
3809
3809
|
for (var t, r = [0], n, s = 0, o = i.length; s < o; ) {
|
|
3810
3810
|
for (n = r.length; n--; ) r[n] *= a;
|
|
3811
3811
|
for (r[0] += ks.indexOf(i.charAt(s++)), t = 0; t < r.length; t++)
|
|
@@ -3816,7 +3816,7 @@ function cn(i, a, e) {
|
|
|
3816
3816
|
function xl(i, a) {
|
|
3817
3817
|
var e, t, r;
|
|
3818
3818
|
if (a.isZero()) return a;
|
|
3819
|
-
t = a.d.length, t < 32 ? (e = Math.ceil(t / 3), r = (1 /
|
|
3819
|
+
t = a.d.length, t < 32 ? (e = Math.ceil(t / 3), r = (1 / Wn(4, e)).toString()) : (e = 16, r = "2.3283064365386962890625e-10"), i.precision += e, a = _r(i, 1, a.times(r), new i(1));
|
|
3820
3820
|
for (var n = e; n--; ) {
|
|
3821
3821
|
var s = a.times(a);
|
|
3822
3822
|
a = s.times(s).minus(s).times(8).plus(1);
|
|
@@ -3924,19 +3924,19 @@ function _t(i, a, e) {
|
|
|
3924
3924
|
var t, r = i.e, n = Ue(i.d), s = n.length;
|
|
3925
3925
|
return a ? (e && (t = e - s) > 0 ? n = n.charAt(0) + "." + n.slice(1) + Lt(t) : s > 1 && (n = n.charAt(0) + "." + n.slice(1)), n = n + (i.e < 0 ? "e" : "e+") + i.e) : r < 0 ? (n = "0." + Lt(-r - 1) + n, e && (t = e - s) > 0 && (n += Lt(t))) : r >= s ? (n += Lt(r + 1 - s), e && (t = e - r - 1) > 0 && (n = n + "." + Lt(t))) : ((t = r + 1) < s && (n = n.slice(0, t) + "." + n.slice(t)), e && (t = e - s) > 0 && (r + 1 === s && (n += "."), n += Lt(t))), n;
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
3927
|
+
function Qn(i, a) {
|
|
3928
3928
|
var e = i[0];
|
|
3929
3929
|
for (a *= te; e >= 10; e /= 10) a++;
|
|
3930
3930
|
return a;
|
|
3931
3931
|
}
|
|
3932
|
-
function
|
|
3932
|
+
function yn(i, a, e) {
|
|
3933
3933
|
if (a > Pl)
|
|
3934
3934
|
throw oe = !0, e && (i.precision = e), Error(Ao);
|
|
3935
|
-
return J(new i(
|
|
3935
|
+
return J(new i(En), a, 1, !0);
|
|
3936
3936
|
}
|
|
3937
3937
|
function gt(i, a, e) {
|
|
3938
3938
|
if (a > Ys) throw Error(Ao);
|
|
3939
|
-
return J(new i(
|
|
3939
|
+
return J(new i(bn), a, e, !0);
|
|
3940
3940
|
}
|
|
3941
3941
|
function Ro(i) {
|
|
3942
3942
|
var a = i.length - 1, e = a * te + 1;
|
|
@@ -3984,7 +3984,7 @@ function Hs(i, a) {
|
|
|
3984
3984
|
if (n = J(n.times(i), u, 1), e = e.times(++l), o = s.plus(Ve(n, e, u, 1)), Ue(o.d).slice(0, u) === Ue(s.d).slice(0, u)) {
|
|
3985
3985
|
for (r = f; r--; ) s = J(s.times(s), u, 1);
|
|
3986
3986
|
if (a == null)
|
|
3987
|
-
if (c < 3 &&
|
|
3987
|
+
if (c < 3 && jr(s.d, u - t, d, c))
|
|
3988
3988
|
h.precision = u += 10, e = n = o = new h(1), l = 0, c++;
|
|
3989
3989
|
else
|
|
3990
3990
|
return J(s, h.precision = _, d, oe = !0);
|
|
@@ -4003,11 +4003,11 @@ function jt(i, a) {
|
|
|
4003
4003
|
C = C.times(i), e = Ue(C.d), t = e.charAt(0), d++;
|
|
4004
4004
|
n = C.e, t > 1 ? (C = new b("0." + e), n++) : C = new b(t + "." + e.slice(1));
|
|
4005
4005
|
} else
|
|
4006
|
-
return c =
|
|
4006
|
+
return c = yn(b, l + 2, p).times(n + ""), C = jt(new b(t + "." + e.slice(1)), l - _).plus(c), b.precision = p, a == null ? J(C, p, R, oe = !0) : C;
|
|
4007
4007
|
for (f = C, u = s = C = Ve(C.minus(1), C.plus(1), l, 1), h = J(C.times(C), l, 1), r = 3; ; ) {
|
|
4008
4008
|
if (s = J(s.times(h), l, 1), c = u.plus(Ve(s, new b(r), l, 1)), Ue(c.d).slice(0, l) === Ue(u.d).slice(0, l))
|
|
4009
|
-
if (u = u.times(2), n !== 0 && (u = u.plus(
|
|
4010
|
-
if (
|
|
4009
|
+
if (u = u.times(2), n !== 0 && (u = u.plus(yn(b, l + 2, p).times(n + ""))), u = Ve(u, new b(d), l, 1), a == null)
|
|
4010
|
+
if (jr(u.d, l - _, R, o))
|
|
4011
4011
|
b.precision = l += _, c = s = C = Ve(f.minus(1), f.plus(1), l, 1), h = J(C.times(C), l, 1), r = o = 1;
|
|
4012
4012
|
else
|
|
4013
4013
|
return J(u, b.precision = p, R, oe = !0);
|
|
@@ -4019,7 +4019,7 @@ function jt(i, a) {
|
|
|
4019
4019
|
function No(i) {
|
|
4020
4020
|
return String(i.s * i.s / 0);
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function fn(i, a) {
|
|
4023
4023
|
var e, t, r;
|
|
4024
4024
|
for ((e = a.indexOf(".")) > -1 && (a = a.replace(".", "")), (t = a.search(/e/i)) > 0 ? (e < 0 && (e = t), e += +a.slice(t + 1), a = a.substring(0, t)) : e < 0 && (e = a.length), t = 0; a.charCodeAt(t) === 48; t++) ;
|
|
4025
4025
|
for (r = a.length; a.charCodeAt(r - 1) === 48; --r) ;
|
|
@@ -4038,7 +4038,7 @@ function ln(i, a) {
|
|
|
4038
4038
|
function jl(i, a) {
|
|
4039
4039
|
var e, t, r, n, s, o, u, c, l;
|
|
4040
4040
|
if (a.indexOf("_") > -1) {
|
|
4041
|
-
if (a = a.replace(/(\d)_(?=\d)/g, "$1"), yo.test(a)) return
|
|
4041
|
+
if (a = a.replace(/(\d)_(?=\d)/g, "$1"), yo.test(a)) return fn(i, a);
|
|
4042
4042
|
} else if (a === "Infinity" || a === "NaN")
|
|
4043
4043
|
return +a || (i.s = NaN), i.e = NaN, i.d = null, i;
|
|
4044
4044
|
if (Sl.test(a))
|
|
@@ -4049,19 +4049,19 @@ function jl(i, a) {
|
|
|
4049
4049
|
e = 8;
|
|
4050
4050
|
else
|
|
4051
4051
|
throw Error(It + a);
|
|
4052
|
-
for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = po(t, new t(e), n, n * 2)), c =
|
|
4053
|
-
return n < 0 ? new t(i.s * 0) : (i.e =
|
|
4052
|
+
for (n = a.search(/p/i), n > 0 ? (u = +a.slice(n + 1), a = a.substring(2, n)) : a = a.slice(2), n = a.indexOf("."), s = n >= 0, t = i.constructor, s && (a = a.replace(".", ""), o = a.length, n = o - n, r = po(t, new t(e), n, n * 2)), c = ln(a, e, lt), l = c.length - 1, n = l; c[n] === 0; --n) c.pop();
|
|
4053
|
+
return n < 0 ? new t(i.s * 0) : (i.e = Qn(c, l), i.d = c, oe = !1, s && (i = Ve(i, r, o * 4)), u && (i = i.times(Math.abs(u) < 54 ? Pe(2, u) : P.pow(2, u))), oe = !0, i);
|
|
4054
4054
|
}
|
|
4055
4055
|
function Ul(i, a) {
|
|
4056
4056
|
var e, t = a.d.length;
|
|
4057
4057
|
if (t < 3)
|
|
4058
|
-
return a.isZero() ? a :
|
|
4059
|
-
e = 1.4 * Math.sqrt(t), e = e > 16 ? 16 : e | 0, a = a.times(1 /
|
|
4058
|
+
return a.isZero() ? a : _r(i, 2, a, a);
|
|
4059
|
+
e = 1.4 * Math.sqrt(t), e = e > 16 ? 16 : e | 0, a = a.times(1 / Wn(5, e)), a = _r(i, 2, a, a);
|
|
4060
4060
|
for (var r, n = new i(5), s = new i(16), o = new i(20); e--; )
|
|
4061
4061
|
r = a.times(a), a = a.times(n.plus(r.times(s.times(r).minus(o))));
|
|
4062
4062
|
return a;
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function _r(i, a, e, t, r) {
|
|
4065
4065
|
var n, s, o, u, c = i.precision, l = Math.ceil(c / te);
|
|
4066
4066
|
for (oe = !1, u = e.times(e), o = new i(t); ; ) {
|
|
4067
4067
|
if (s = Ve(o.times(u), new i(a++ * a++), c, 1), o = r ? t.plus(s) : t.minus(s), t = Ve(s.times(u), new i(a++ * a++), c, 1), s = o.plus(t), s.d[l] !== void 0) {
|
|
@@ -4072,7 +4072,7 @@ function Cr(i, a, e, t, r) {
|
|
|
4072
4072
|
}
|
|
4073
4073
|
return oe = !0, s.d.length = l + 1, s;
|
|
4074
4074
|
}
|
|
4075
|
-
function
|
|
4075
|
+
function Wn(i, a) {
|
|
4076
4076
|
for (var e = i; --a; ) e *= i;
|
|
4077
4077
|
return e;
|
|
4078
4078
|
}
|
|
@@ -4094,7 +4094,7 @@ function Ea(i, a, e, t) {
|
|
|
4094
4094
|
if (_ ? (He(e, 1, Yt), t === void 0 ? t = d.rounding : He(t, 0, 8)) : (e = d.precision, t = d.rounding), !i.isFinite())
|
|
4095
4095
|
l = No(i);
|
|
4096
4096
|
else {
|
|
4097
|
-
for (l = _t(i), s = l.indexOf("."), _ ? (r = 2, a == 16 ? e = e * 4 - 3 : a == 8 && (e = e * 3 - 2)) : r = a, s >= 0 && (l = l.replace(".", ""), h = new d(1), h.e = l.length - s, h.d =
|
|
4097
|
+
for (l = _t(i), s = l.indexOf("."), _ ? (r = 2, a == 16 ? e = e * 4 - 3 : a == 8 && (e = e * 3 - 2)) : r = a, s >= 0 && (l = l.replace(".", ""), h = new d(1), h.e = l.length - s, h.d = ln(_t(h), 10, r), h.e = h.d.length), f = ln(l, 10, r), n = u = f.length; f[--u] == 0; ) f.pop();
|
|
4098
4098
|
if (!f[0])
|
|
4099
4099
|
l = _ ? "0p+0" : "0";
|
|
4100
4100
|
else {
|
|
@@ -4107,7 +4107,7 @@ function Ea(i, a, e, t) {
|
|
|
4107
4107
|
if (u > 1)
|
|
4108
4108
|
if (a == 16 || a == 8) {
|
|
4109
4109
|
for (s = a == 16 ? 4 : 3, --u; u % s; u++) l += "0";
|
|
4110
|
-
for (f =
|
|
4110
|
+
for (f = ln(l, r, a), u = f.length; !f[u - 1]; --u) ;
|
|
4111
4111
|
for (s = 1, l = "1."; s < u; s++) l += ks.charAt(f[s]);
|
|
4112
4112
|
} else
|
|
4113
4113
|
l = l.charAt(0) + "." + l.slice(1);
|
|
@@ -4165,7 +4165,7 @@ function Wl(i, a, e) {
|
|
|
4165
4165
|
return new this(i).clamp(a, e);
|
|
4166
4166
|
}
|
|
4167
4167
|
function ql(i) {
|
|
4168
|
-
if (!i || typeof i != "object") throw Error(
|
|
4168
|
+
if (!i || typeof i != "object") throw Error(Gn + "Object expected");
|
|
4169
4169
|
var a, e, t, r = i.defaults === !0, n = [
|
|
4170
4170
|
"precision",
|
|
4171
4171
|
1,
|
|
@@ -4174,16 +4174,16 @@ function ql(i) {
|
|
|
4174
4174
|
0,
|
|
4175
4175
|
8,
|
|
4176
4176
|
"toExpNeg",
|
|
4177
|
-
-
|
|
4177
|
+
-ur,
|
|
4178
4178
|
0,
|
|
4179
4179
|
"toExpPos",
|
|
4180
4180
|
0,
|
|
4181
|
-
|
|
4181
|
+
ur,
|
|
4182
4182
|
"maxE",
|
|
4183
4183
|
0,
|
|
4184
|
-
|
|
4184
|
+
ur,
|
|
4185
4185
|
"minE",
|
|
4186
|
-
-
|
|
4186
|
+
-ur,
|
|
4187
4187
|
0,
|
|
4188
4188
|
"modulo",
|
|
4189
4189
|
0,
|
|
@@ -4235,12 +4235,12 @@ function Mo(i) {
|
|
|
4235
4235
|
n || (c.s = NaN), c.e = NaN, c.d = null;
|
|
4236
4236
|
return;
|
|
4237
4237
|
}
|
|
4238
|
-
return
|
|
4238
|
+
return fn(c, n.toString());
|
|
4239
4239
|
}
|
|
4240
4240
|
if (u === "string")
|
|
4241
|
-
return (o = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (o === 43 && (n = n.slice(1)), c.s = 1), yo.test(n) ?
|
|
4241
|
+
return (o = n.charCodeAt(0)) === 45 ? (n = n.slice(1), c.s = -1) : (o === 43 && (n = n.slice(1)), c.s = 1), yo.test(n) ? fn(c, n) : jl(c, n);
|
|
4242
4242
|
if (u === "bigint")
|
|
4243
|
-
return n < 0 ? (n = -n, c.s = -1) : c.s = 1,
|
|
4243
|
+
return n < 0 ? (n = -n, c.s = -1) : c.s = 1, fn(c, n.toString());
|
|
4244
4244
|
throw Error(It + n);
|
|
4245
4245
|
}
|
|
4246
4246
|
if (r.prototype = I, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = ql, r.clone = Mo, r.isDecimal = _i, r.abs = vl, r.acos = Tl, r.acosh = Bl, r.add = Il, r.asin = Fl, r.asinh = kl, r.atan = $l, r.atanh = Yl, r.atan2 = Hl, r.cbrt = Gl, r.ceil = Ql, r.clamp = Wl, r.cos = Kl, r.cosh = Xl, r.div = Zl, r.exp = zl, r.floor = Jl, r.hypot = ef, r.ln = tf, r.log = rf, r.log10 = sf, r.log2 = nf, r.max = af, r.min = of, r.mod = uf, r.mul = cf, r.pow = lf, r.random = ff, r.round = hf, r.sign = mf, r.sin = gf, r.sinh = df, r.sqrt = Cf, r.sub = _f, r.sum = Af, r.tan = Ef, r.tanh = bf, r.trunc = yf, i === void 0 && (i = {}), i && i.defaults !== !0)
|
|
@@ -4356,8 +4356,8 @@ function yf(i) {
|
|
|
4356
4356
|
I[Symbol.for("nodejs.util.inspect.custom")] = I.toString;
|
|
4357
4357
|
I[Symbol.toStringTag] = "Decimal";
|
|
4358
4358
|
var P = I.constructor = Mo($s);
|
|
4359
|
-
An = new P(An);
|
|
4360
4359
|
En = new P(En);
|
|
4360
|
+
bn = new P(bn);
|
|
4361
4361
|
function Rf(i, a) {
|
|
4362
4362
|
const e = i + a;
|
|
4363
4363
|
return Number.isSafeInteger(e) ? e : new P(i).add(a).toNumber();
|
|
@@ -4366,7 +4366,7 @@ function pf(i, a) {
|
|
|
4366
4366
|
const e = i - a;
|
|
4367
4367
|
return Number.isSafeInteger(e) ? e : new P(i).sub(a).toNumber();
|
|
4368
4368
|
}
|
|
4369
|
-
function
|
|
4369
|
+
function Nr(i, a) {
|
|
4370
4370
|
const e = i * a;
|
|
4371
4371
|
return Number.isSafeInteger(e) ? e : new P(i).mul(a).toNumber();
|
|
4372
4372
|
}
|
|
@@ -4375,19 +4375,19 @@ function Vf(i, a) {
|
|
|
4375
4375
|
return Number.isSafeInteger(e) ? e : new P(i).div(a).toNumber();
|
|
4376
4376
|
}
|
|
4377
4377
|
function vt(i, a) {
|
|
4378
|
-
const e = 10 ** Math.trunc(a), t =
|
|
4379
|
-
return Math.round(
|
|
4378
|
+
const e = 10 ** Math.trunc(a), t = qn(i, e);
|
|
4379
|
+
return Math.round(Nr(i, e) + t) / e;
|
|
4380
4380
|
}
|
|
4381
4381
|
function Ke(i, a) {
|
|
4382
|
-
const e = 10 ** Math.trunc(a), t =
|
|
4383
|
-
return Math.floor(
|
|
4382
|
+
const e = 10 ** Math.trunc(a), t = qn(i, e);
|
|
4383
|
+
return Math.floor(Nr(i, e) + t) / e;
|
|
4384
4384
|
}
|
|
4385
4385
|
function Ye(i, a) {
|
|
4386
|
-
const e = 10 ** Math.trunc(a), t =
|
|
4387
|
-
return Math.ceil(
|
|
4386
|
+
const e = 10 ** Math.trunc(a), t = qn(i, e);
|
|
4387
|
+
return Math.ceil(Nr(i, e) - t) / e;
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4390
|
-
return Number.EPSILON * Math.max(1, Math.abs(
|
|
4389
|
+
function qn(i, a) {
|
|
4390
|
+
return Number.EPSILON * Math.max(1, Math.abs(Nr(i, a)));
|
|
4391
4391
|
}
|
|
4392
4392
|
function Ai(i, a) {
|
|
4393
4393
|
return i - a * Math.floor(i / a);
|
|
@@ -4426,9 +4426,9 @@ function Pf(i, a = 12, e = 1e-10) {
|
|
|
4426
4426
|
function xf(i) {
|
|
4427
4427
|
return i - Math.trunc(i);
|
|
4428
4428
|
}
|
|
4429
|
-
const
|
|
4429
|
+
const $n = class $n extends $t {
|
|
4430
4430
|
static create() {
|
|
4431
|
-
return this._instance = this._instance || new
|
|
4431
|
+
return this._instance = this._instance || new $n(0), this._instance;
|
|
4432
4432
|
}
|
|
4433
4433
|
isNull() {
|
|
4434
4434
|
return !0;
|
|
@@ -4548,8 +4548,8 @@ const kn = class kn extends $t {
|
|
|
4548
4548
|
return T.create(!1);
|
|
4549
4549
|
}
|
|
4550
4550
|
};
|
|
4551
|
-
A(
|
|
4552
|
-
let ue =
|
|
4551
|
+
A($n, "_instance");
|
|
4552
|
+
let ue = $n;
|
|
4553
4553
|
const qt = class qt extends $t {
|
|
4554
4554
|
constructor(e) {
|
|
4555
4555
|
super(e);
|
|
@@ -4694,7 +4694,7 @@ const qt = class qt extends $t {
|
|
|
4694
4694
|
return this._convertToNumber().ceil(e);
|
|
4695
4695
|
}
|
|
4696
4696
|
convertToNumberObjectValue() {
|
|
4697
|
-
return
|
|
4697
|
+
return Xn(this.getValue());
|
|
4698
4698
|
}
|
|
4699
4699
|
convertToBooleanObjectValue() {
|
|
4700
4700
|
return this;
|
|
@@ -4733,7 +4733,7 @@ class y extends $t {
|
|
|
4733
4733
|
let t = this.plusBy(e.getValue());
|
|
4734
4734
|
if (t.isError())
|
|
4735
4735
|
return t;
|
|
4736
|
-
const r =
|
|
4736
|
+
const r = Zr(this.getPattern(), e.getPattern(), X.PLUS);
|
|
4737
4737
|
return t = y.create(Number(t.getValue()), r), t;
|
|
4738
4738
|
}
|
|
4739
4739
|
equalZero() {
|
|
@@ -4747,7 +4747,7 @@ class y extends $t {
|
|
|
4747
4747
|
let t = this.minusBy(e.getValue());
|
|
4748
4748
|
if (t.isError())
|
|
4749
4749
|
return t;
|
|
4750
|
-
const r =
|
|
4750
|
+
const r = Zr(this.getPattern(), e.getPattern(), X.MINUS);
|
|
4751
4751
|
return t = y.create(Number(t.getValue()), r), t;
|
|
4752
4752
|
}
|
|
4753
4753
|
multiply(e) {
|
|
@@ -4756,7 +4756,7 @@ class y extends $t {
|
|
|
4756
4756
|
let t = this.multiplyBy(e.getValue());
|
|
4757
4757
|
if (t.isError())
|
|
4758
4758
|
return t;
|
|
4759
|
-
const r =
|
|
4759
|
+
const r = Zr(this.getPattern(), e.getPattern(), X.MULTIPLY);
|
|
4760
4760
|
return t = y.create(Number(t.getValue()), r), t;
|
|
4761
4761
|
}
|
|
4762
4762
|
divided(e) {
|
|
@@ -4767,7 +4767,7 @@ class y extends $t {
|
|
|
4767
4767
|
let t = this.dividedBy(e.getValue());
|
|
4768
4768
|
if (t.isError())
|
|
4769
4769
|
return t;
|
|
4770
|
-
const r =
|
|
4770
|
+
const r = Zr(this.getPattern(), e.getPattern(), X.DIVIDED);
|
|
4771
4771
|
return t = y.create(Number(t.getValue()), r), t;
|
|
4772
4772
|
}
|
|
4773
4773
|
mod(e) {
|
|
@@ -4831,7 +4831,7 @@ class y extends $t {
|
|
|
4831
4831
|
return g.create(m.VALUE);
|
|
4832
4832
|
if (!Number.isFinite(t) || !Number.isFinite(r))
|
|
4833
4833
|
return g.create(m.NUM);
|
|
4834
|
-
const n =
|
|
4834
|
+
const n = Nr(t, r);
|
|
4835
4835
|
return Number.isFinite(n) ? y.create(n) : g.create(m.NUM);
|
|
4836
4836
|
}
|
|
4837
4837
|
dividedBy(e) {
|
|
@@ -5102,7 +5102,7 @@ class y extends $t {
|
|
|
5102
5102
|
return this;
|
|
5103
5103
|
}
|
|
5104
5104
|
convertToBooleanObjectValue() {
|
|
5105
|
-
return
|
|
5105
|
+
return Kn(!0);
|
|
5106
5106
|
}
|
|
5107
5107
|
_compareInfinity(e, t, r) {
|
|
5108
5108
|
let n = !1;
|
|
@@ -5233,7 +5233,7 @@ class j extends $t {
|
|
|
5233
5233
|
}
|
|
5234
5234
|
}
|
|
5235
5235
|
convertToNumberObjectValue() {
|
|
5236
|
-
return
|
|
5236
|
+
return Xn(this.getValue());
|
|
5237
5237
|
}
|
|
5238
5238
|
convertToBooleanObjectValue() {
|
|
5239
5239
|
return T.create(!0);
|
|
@@ -5243,7 +5243,7 @@ class j extends $t {
|
|
|
5243
5243
|
return T.create(n);
|
|
5244
5244
|
}
|
|
5245
5245
|
}
|
|
5246
|
-
function
|
|
5246
|
+
function Kn(i) {
|
|
5247
5247
|
if (typeof i == "boolean")
|
|
5248
5248
|
return T.create(i);
|
|
5249
5249
|
let a = !1;
|
|
@@ -5258,7 +5258,7 @@ function Uf(i) {
|
|
|
5258
5258
|
let a = i.toString();
|
|
5259
5259
|
return a.charAt(0) === '"' && a.charAt(a.length - 1) === '"' && (a = a.slice(1, -1), a = a.replace(/""/g, '"')), j.create(a);
|
|
5260
5260
|
}
|
|
5261
|
-
function
|
|
5261
|
+
function Xn(i, a = "") {
|
|
5262
5262
|
if (typeof i == "boolean") {
|
|
5263
5263
|
let e = 0;
|
|
5264
5264
|
return i && (e = 1), y.create(e, a);
|
|
@@ -5614,7 +5614,7 @@ class q extends $t {
|
|
|
5614
5614
|
* @returns
|
|
5615
5615
|
*/
|
|
5616
5616
|
_binarySearch(e, t, r, n = Wt.MIN, s = Le.MIN) {
|
|
5617
|
-
const o =
|
|
5617
|
+
const o = An(), u = Number(e.getValue()), c = !Number.isNaN(u);
|
|
5618
5618
|
let l = 0, f = t.length - 1, h = -1, d = -1, _ = -1;
|
|
5619
5619
|
for (; l <= f; ) {
|
|
5620
5620
|
const C = Math.floor((l + f) / 2), E = t[C];
|
|
@@ -5963,7 +5963,7 @@ class q extends $t {
|
|
|
5963
5963
|
this._flattenCache = null, this._sliceCache.clear();
|
|
5964
5964
|
}
|
|
5965
5965
|
_sort(e) {
|
|
5966
|
-
const t =
|
|
5966
|
+
const t = An();
|
|
5967
5967
|
return (r, n) => {
|
|
5968
5968
|
const s = r[e], o = n[e];
|
|
5969
5969
|
return s == null ? 1 : o == null ? -1 : s.isError() && s.isError() ? 0 : s.isError() ? 1 : o.isError() ? -1 : t(
|
|
@@ -6048,7 +6048,7 @@ class q extends $t {
|
|
|
6048
6048
|
);
|
|
6049
6049
|
C != null && C.forEach((E, b) => {
|
|
6050
6050
|
let R = ue.create();
|
|
6051
|
-
|
|
6051
|
+
Rr.has(b) ? R = g.create(b) : typeof b == "string" ? R = j.create(b) : typeof b == "number" ? R = y.create(b) : typeof b == "boolean" && (R = T.create(b));
|
|
6052
6052
|
let p;
|
|
6053
6053
|
R.isError() ? p = R : e.isError() ? p = e : p = R.compare(e, s, o), (p.isError() || p.getValue() === !0) && E.forEach((N) => {
|
|
6054
6054
|
N >= f && N <= f + u - 1 && (r[N - f] == null && (r[N - f] = []), r[N - f][t] = p);
|
|
@@ -6279,10 +6279,10 @@ class Vt {
|
|
|
6279
6279
|
return T.create(a);
|
|
6280
6280
|
if (typeof a == "string") {
|
|
6281
6281
|
const t = a.toLocaleUpperCase().trim();
|
|
6282
|
-
if (
|
|
6282
|
+
if (Rr.has(t))
|
|
6283
6283
|
return g.create(t);
|
|
6284
6284
|
if (t === er.TRUE || t === er.FALSE)
|
|
6285
|
-
return
|
|
6285
|
+
return Kn(a);
|
|
6286
6286
|
if (Q(a))
|
|
6287
6287
|
return y.create(Number(a));
|
|
6288
6288
|
if (!e) {
|
|
@@ -6293,15 +6293,15 @@ class Vt {
|
|
|
6293
6293
|
const r = a.replace(/\n/g, "").replace(/\r/g, "");
|
|
6294
6294
|
return !Bf(r) && Uc(r) ? q.create(r) : Uf(a);
|
|
6295
6295
|
}
|
|
6296
|
-
return typeof a == "number" ?
|
|
6296
|
+
return typeof a == "number" ? Xn(a) : g.create(m.VALUE);
|
|
6297
6297
|
}
|
|
6298
6298
|
}
|
|
6299
6299
|
function Bf(i) {
|
|
6300
6300
|
const a = i.trim();
|
|
6301
6301
|
return a.startsWith('"') && a.endsWith('"');
|
|
6302
6302
|
}
|
|
6303
|
-
const If = 1e4,
|
|
6304
|
-
class
|
|
6303
|
+
const If = 1e4, Rn = new Nt(If);
|
|
6304
|
+
class Zn extends Hn {
|
|
6305
6305
|
constructor(e) {
|
|
6306
6306
|
super();
|
|
6307
6307
|
A(this, "_forcedSheetId", "");
|
|
@@ -6372,7 +6372,7 @@ class Xn extends Yn {
|
|
|
6372
6372
|
return e(g.create(m.REF), c, l);
|
|
6373
6373
|
const f = this.getCellData(c, l);
|
|
6374
6374
|
let h = !1;
|
|
6375
|
-
if (
|
|
6375
|
+
if (cn(f)) {
|
|
6376
6376
|
h = e(null, c, l);
|
|
6377
6377
|
continue;
|
|
6378
6378
|
}
|
|
@@ -6540,13 +6540,13 @@ class Xn extends Yn {
|
|
|
6540
6540
|
}
|
|
6541
6541
|
getCellValueObject(e) {
|
|
6542
6542
|
const t = Vl(e);
|
|
6543
|
-
if (
|
|
6543
|
+
if (Rr.has(t))
|
|
6544
6544
|
return g.create(t);
|
|
6545
6545
|
if (e.t === Rt.NUMBER) {
|
|
6546
6546
|
const r = this._getPatternByCell(e);
|
|
6547
|
-
return tc(r) ? j.create(t.toString()) :
|
|
6547
|
+
return tc(r) ? j.create(t.toString()) : Xn(t, r);
|
|
6548
6548
|
}
|
|
6549
|
-
return e.t === Rt.STRING || e.t === Rt.FORCE_STRING ? j.create(t.toString()) : e.t === Rt.BOOLEAN ?
|
|
6549
|
+
return e.t === Rt.STRING || e.t === Rt.FORCE_STRING ? j.create(t.toString()) : e.t === Rt.BOOLEAN ? Kn(t) : Vt.create(t);
|
|
6550
6550
|
}
|
|
6551
6551
|
_getPatternByCell(e) {
|
|
6552
6552
|
var n;
|
|
@@ -6614,7 +6614,7 @@ class Xn extends Yn {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
toArrayValueObject(e = !0) {
|
|
6616
6616
|
var _;
|
|
6617
|
-
const { startRow: t, endRow: r, startColumn: n, endColumn: s } = this.getRangePosition(), o = `${this.getUnitId()}_${this.getSheetId()}_${t}_${r}_${n}_${s}`, u =
|
|
6617
|
+
const { startRow: t, endRow: r, startColumn: n, endColumn: s } = this.getRangePosition(), o = `${this.getUnitId()}_${this.getSheetId()}_${t}_${r}_${n}_${s}`, u = Rn.get(o);
|
|
6618
6618
|
if (u && e)
|
|
6619
6619
|
return u;
|
|
6620
6620
|
const c = r - t + 1, l = s - n + 1;
|
|
@@ -6634,7 +6634,7 @@ class Xn extends Yn {
|
|
|
6634
6634
|
row: t,
|
|
6635
6635
|
column: n
|
|
6636
6636
|
}, d = q.create(h);
|
|
6637
|
-
return e &&
|
|
6637
|
+
return e && Rn.set(o, d), d;
|
|
6638
6638
|
}
|
|
6639
6639
|
toUnitRange() {
|
|
6640
6640
|
return {
|
|
@@ -6659,7 +6659,7 @@ class Xn extends Yn {
|
|
|
6659
6659
|
return q.create(e);
|
|
6660
6660
|
}
|
|
6661
6661
|
}
|
|
6662
|
-
class Ff extends
|
|
6662
|
+
class Ff extends Hn {
|
|
6663
6663
|
constructor(a) {
|
|
6664
6664
|
super(), this._promise = a;
|
|
6665
6665
|
}
|
|
@@ -6670,7 +6670,7 @@ class Ff extends Yn {
|
|
|
6670
6670
|
return this._promise;
|
|
6671
6671
|
}
|
|
6672
6672
|
}
|
|
6673
|
-
class kf extends
|
|
6673
|
+
class kf extends Hn {
|
|
6674
6674
|
constructor(a) {
|
|
6675
6675
|
super(), this._promiseList = a;
|
|
6676
6676
|
}
|
|
@@ -6700,7 +6700,7 @@ class kf extends Yn {
|
|
|
6700
6700
|
return q.create(e);
|
|
6701
6701
|
}
|
|
6702
6702
|
}
|
|
6703
|
-
class
|
|
6703
|
+
class pn extends Zn {
|
|
6704
6704
|
constructor(a, e, t) {
|
|
6705
6705
|
super(""), this.setRangeData(a), e && this.setForcedSheetIdDirect(e), t && this.setForcedUnitIdDirect(t);
|
|
6706
6706
|
}
|
|
@@ -6708,10 +6708,10 @@ class Rn extends Xn {
|
|
|
6708
6708
|
return !0;
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
|
-
class ba extends
|
|
6711
|
+
class ba extends Zn {
|
|
6712
6712
|
constructor(a) {
|
|
6713
6713
|
super(a);
|
|
6714
|
-
const e =
|
|
6714
|
+
const e = gr(a);
|
|
6715
6715
|
this.setForcedUnitIdDirect(e.unitId), this.setForcedSheetName(e.sheetName), this.setRangeData(e.range);
|
|
6716
6716
|
}
|
|
6717
6717
|
isCell() {
|
|
@@ -6733,7 +6733,7 @@ class ba extends Xn {
|
|
|
6733
6733
|
return t > n ? (o.startRow = n, o.endRow = t) : (o.startRow = t, o.endRow = n), r > s ? (o.startColumn = s, o.endColumn = r) : (o.startColumn = r, o.endColumn = s), a.startAbsoluteRefType && (o.startAbsoluteRefType = a.startAbsoluteRefType), e.startAbsoluteRefType && (o.endAbsoluteRefType = e.startAbsoluteRefType), o;
|
|
6734
6734
|
}
|
|
6735
6735
|
_createRange(a) {
|
|
6736
|
-
const e = new
|
|
6736
|
+
const e = new pn(
|
|
6737
6737
|
a,
|
|
6738
6738
|
this.getForcedSheetId(),
|
|
6739
6739
|
this.getForcedUnitId()
|
|
@@ -6747,10 +6747,10 @@ class ba extends Xn {
|
|
|
6747
6747
|
return s && e.setForcedUnitIdDirect(s), e;
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
|
-
class ya extends
|
|
6750
|
+
class ya extends Zn {
|
|
6751
6751
|
constructor(a) {
|
|
6752
6752
|
super(a);
|
|
6753
|
-
const e =
|
|
6753
|
+
const e = gr(a);
|
|
6754
6754
|
this.setForcedUnitIdDirect(e.unitId), this.setForcedSheetName(e.sheetName);
|
|
6755
6755
|
const t = {
|
|
6756
6756
|
...e.range,
|
|
@@ -6778,10 +6778,10 @@ class ya extends Xn {
|
|
|
6778
6778
|
return n > s ? t.endColumn = n : (t.startColumn = n, t.endColumn = s), r.startAbsoluteRefType && (t.endAbsoluteRefType = r.startAbsoluteRefType), t.rangeType = et.COLUMN, this.setToken(`${this.getToken()}${K.COLON}${e.getToken()}`), this;
|
|
6779
6779
|
}
|
|
6780
6780
|
}
|
|
6781
|
-
class Ra extends
|
|
6781
|
+
class Ra extends Zn {
|
|
6782
6782
|
constructor(a) {
|
|
6783
6783
|
super(a);
|
|
6784
|
-
const e =
|
|
6784
|
+
const e = gr(a);
|
|
6785
6785
|
this.setForcedUnitIdDirect(e.unitId), this.setForcedSheetName(e.sheetName);
|
|
6786
6786
|
const t = {
|
|
6787
6787
|
...e.range,
|
|
@@ -6838,9 +6838,9 @@ function O(i, a, e, t) {
|
|
|
6838
6838
|
}
|
|
6839
6839
|
s.push(u);
|
|
6840
6840
|
}
|
|
6841
|
-
return
|
|
6841
|
+
return Or(s, i, a);
|
|
6842
6842
|
}
|
|
6843
|
-
function
|
|
6843
|
+
function Or(i, a, e, t = "", r = "") {
|
|
6844
6844
|
const n = {
|
|
6845
6845
|
calculateValueList: i,
|
|
6846
6846
|
rowCount: a,
|
|
@@ -6868,7 +6868,7 @@ function pa(i) {
|
|
|
6868
6868
|
}
|
|
6869
6869
|
return [$.EQUALS, Vt.create(i)];
|
|
6870
6870
|
}
|
|
6871
|
-
function
|
|
6871
|
+
function zn(i, a, e, t) {
|
|
6872
6872
|
if (!e)
|
|
6873
6873
|
if (a.isString()) {
|
|
6874
6874
|
const r = `${a.getValue()}`, [n, s] = pa(r);
|
|
@@ -6881,7 +6881,7 @@ function $f(i, a) {
|
|
|
6881
6881
|
const e = Math.max(i.isArray() ? i.getRowCount() : 1, a.isArray() ? a.getRowCount() : 1), t = Math.max(i.isArray() ? i.getColumnCount() : 1, a.isArray() ? a.getColumnCount() : 1), r = O(e, t, i), n = O(e, t, a);
|
|
6882
6882
|
return r.mapValue((s, o, u) => {
|
|
6883
6883
|
const c = n.get(o, u);
|
|
6884
|
-
return s != null && s.isError() ? s : c != null && c.isError() ? c : s != null && s.isBoolean() && (c != null && c.isBoolean()) ?
|
|
6884
|
+
return s != null && s.isError() ? s : c != null && c.isError() ? c : s != null && s.isBoolean() && (c != null && c.isBoolean()) ? Kn(s.getValue() && c.getValue()) : T.create(!1);
|
|
6885
6885
|
});
|
|
6886
6886
|
}
|
|
6887
6887
|
function Yf(i) {
|
|
@@ -6944,7 +6944,7 @@ function Hf(i) {
|
|
|
6944
6944
|
};
|
|
6945
6945
|
}
|
|
6946
6946
|
}
|
|
6947
|
-
function
|
|
6947
|
+
function Mr(i) {
|
|
6948
6948
|
let a = 0, e = 0;
|
|
6949
6949
|
return i.forEach((t, r) => {
|
|
6950
6950
|
if (r % 2 === 1)
|
|
@@ -6955,7 +6955,7 @@ function Or(i) {
|
|
|
6955
6955
|
a = Math.max(a, 1), e = Math.max(e, 1);
|
|
6956
6956
|
}), { maxRowLength: a, maxColumnLength: e };
|
|
6957
6957
|
}
|
|
6958
|
-
function
|
|
6958
|
+
function kr(i, a, e, t) {
|
|
6959
6959
|
const r = a.getRowCount(), n = a.getColumnCount();
|
|
6960
6960
|
for (let s = 0; s < i.length; s++) {
|
|
6961
6961
|
if (s % 2 === 1) continue;
|
|
@@ -6965,7 +6965,7 @@ function Fr(i, a, e, t) {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
return null;
|
|
6967
6967
|
}
|
|
6968
|
-
function
|
|
6968
|
+
function $r(i, a, e, t = !1) {
|
|
6969
6969
|
const r = [];
|
|
6970
6970
|
for (let n = 0; n < i.length; n++) {
|
|
6971
6971
|
if (n % 2 === 1) continue;
|
|
@@ -6973,8 +6973,8 @@ function kr(i, a, e, t = !1) {
|
|
|
6973
6973
|
O(a, e, o, g.create(m.NA)).iterator((c, l, f) => {
|
|
6974
6974
|
if (!c)
|
|
6975
6975
|
return;
|
|
6976
|
-
let h =
|
|
6977
|
-
if (t && (h =
|
|
6976
|
+
let h = zn(s, c);
|
|
6977
|
+
if (t && (h = Jn(h, s, c)), r[l] === void 0 && (r[l] = []), r[l][f] === void 0) {
|
|
6978
6978
|
r[l][f] = h;
|
|
6979
6979
|
return;
|
|
6980
6980
|
}
|
|
@@ -6983,7 +6983,7 @@ function kr(i, a, e, t = !1) {
|
|
|
6983
6983
|
}
|
|
6984
6984
|
return r;
|
|
6985
6985
|
}
|
|
6986
|
-
function
|
|
6986
|
+
function Jn(i, a, e) {
|
|
6987
6987
|
const [t, r] = pa(`${e.getValue()}`);
|
|
6988
6988
|
return i.mapValue((n, s, o) => {
|
|
6989
6989
|
const u = a.get(s, o);
|
|
@@ -7012,7 +7012,7 @@ function Gf(i, a) {
|
|
|
7012
7012
|
const e = i.isString() && i.getValue() === "", t = a.isString() && a.getValue() === "";
|
|
7013
7013
|
return !!((e || i.isNull()) && (t || a.isNull()) || i.isString() && !e && a.isString() && !t);
|
|
7014
7014
|
}
|
|
7015
|
-
var
|
|
7015
|
+
var hn = /* @__PURE__ */ ((i) => (i[i.CELL = 0] = "CELL", i[i.COLUMN = 1] = "COLUMN", i[i.ROW = 2] = "ROW", i))(hn || {});
|
|
7016
7016
|
function Qf(i, a) {
|
|
7017
7017
|
let e;
|
|
7018
7018
|
switch (a) {
|
|
@@ -7050,7 +7050,7 @@ let Qs = class extends Ne {
|
|
|
7050
7050
|
};
|
|
7051
7051
|
let e = i;
|
|
7052
7052
|
if (i.startsWith("#") && ro(i.slice(1))) {
|
|
7053
|
-
const { unitId: t, sheetName: r, range: n } =
|
|
7053
|
+
const { unitId: t, sheetName: r, range: n } = Pr(i.slice(1)), s = this._univerInstanceService.getCurrentUnitOfType(cr.UNIVER_SHEET);
|
|
7054
7054
|
if (t === "" || t === s.getUnitId())
|
|
7055
7055
|
if (r === "")
|
|
7056
7056
|
e = `#gid=${s.getActiveSheet().getSheetId()}&range=${Bt(n)}`;
|
|
@@ -7065,7 +7065,7 @@ let Qs = class extends Ne {
|
|
|
7065
7065
|
}
|
|
7066
7066
|
};
|
|
7067
7067
|
Qs = Kf([
|
|
7068
|
-
Xf(0,
|
|
7068
|
+
Xf(0, Yn)
|
|
7069
7069
|
], Qs);
|
|
7070
7070
|
const So = Ze(
|
|
7071
7071
|
"univer.formula.hyperlink-engine-formula.service"
|
|
@@ -7074,7 +7074,7 @@ var Zf = Object.getOwnPropertyDescriptor, zf = (i, a, e, t) => {
|
|
|
7074
7074
|
for (var r = t > 1 ? void 0 : t ? Zf(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
7075
7075
|
(s = i[n]) && (r = s(r) || r);
|
|
7076
7076
|
return r;
|
|
7077
|
-
}, Ri = (i, a) => (e, t) => a(e, t, i), Je = /* @__PURE__ */ ((i) => (i[i.IDLE = 0] = "IDLE", i[i.START = 1] = "START", i[i.START_DEPENDENCY = 2] = "START_DEPENDENCY", i[i.START_CALCULATION = 3] = "START_CALCULATION", i[i.CURRENTLY_CALCULATING = 4] = "CURRENTLY_CALCULATING", i[i.START_DEPENDENCY_ARRAY_FORMULA = 5] = "START_DEPENDENCY_ARRAY_FORMULA", i[i.START_CALCULATION_ARRAY_FORMULA = 6] = "START_CALCULATION_ARRAY_FORMULA", i[i.CURRENTLY_CALCULATING_ARRAY_FORMULA = 7] = "CURRENTLY_CALCULATING_ARRAY_FORMULA", i[i.CALCULATION_COMPLETED = 8] = "CALCULATION_COMPLETED", i))(Je || {}),
|
|
7077
|
+
}, Ri = (i, a) => (e, t) => a(e, t, i), Je = /* @__PURE__ */ ((i) => (i[i.IDLE = 0] = "IDLE", i[i.START = 1] = "START", i[i.START_DEPENDENCY = 2] = "START_DEPENDENCY", i[i.START_CALCULATION = 3] = "START_CALCULATION", i[i.CURRENTLY_CALCULATING = 4] = "CURRENTLY_CALCULATING", i[i.START_DEPENDENCY_ARRAY_FORMULA = 5] = "START_DEPENDENCY_ARRAY_FORMULA", i[i.START_CALCULATION_ARRAY_FORMULA = 6] = "START_CALCULATION_ARRAY_FORMULA", i[i.CURRENTLY_CALCULATING_ARRAY_FORMULA = 7] = "CURRENTLY_CALCULATING_ARRAY_FORMULA", i[i.CALCULATION_COMPLETED = 8] = "CALCULATION_COMPLETED", i))(Je || {}), Lr = /* @__PURE__ */ ((i) => (i[i.INITIAL = 0] = "INITIAL", i[i.STOP_EXECUTION = 1] = "STOP_EXECUTION", i[i.NOT_EXECUTED = 2] = "NOT_EXECUTED", i[i.SUCCESS = 3] = "SUCCESS", i))(Lr || {});
|
|
7078
7078
|
let Ws = class extends Ne {
|
|
7079
7079
|
constructor(a, e) {
|
|
7080
7080
|
super();
|
|
@@ -7389,7 +7389,7 @@ let Ws = class extends Ne {
|
|
|
7389
7389
|
D
|
|
7390
7390
|
);
|
|
7391
7391
|
const U = (w = (M = (N = l == null ? void 0 : l[a]) == null ? void 0 : N[e]) == null ? void 0 : M.cellData) == null ? void 0 : w.getValue(S, D), x = this._getRuntimeFeatureCellValue(S, D, e, a);
|
|
7392
|
-
if (!
|
|
7392
|
+
if (!cn(L) || this._isInOtherArrayFormulaRange(a, e, t, r, S, D) || !cn(U) || !cn(x))
|
|
7393
7393
|
return !0;
|
|
7394
7394
|
}
|
|
7395
7395
|
return !1;
|
|
@@ -7605,17 +7605,17 @@ class Do extends bt {
|
|
|
7605
7605
|
return new qs(Ut);
|
|
7606
7606
|
}
|
|
7607
7607
|
}
|
|
7608
|
-
const Jf = 5e3,
|
|
7608
|
+
const Jf = 5e3, Ur = new Nt(Jf);
|
|
7609
7609
|
function pi(i, a, e, t, r) {
|
|
7610
|
-
let n =
|
|
7610
|
+
let n = Ur.get(`${i}${a}`);
|
|
7611
7611
|
if (n && !Lo(n, r))
|
|
7612
7612
|
return n;
|
|
7613
7613
|
const s = e.treeBuilder(a);
|
|
7614
|
-
if (
|
|
7614
|
+
if (Rr.has(s))
|
|
7615
7615
|
return xe.create(s);
|
|
7616
7616
|
if (n = t.parse(s), n == null)
|
|
7617
7617
|
throw new Error("astNode is null");
|
|
7618
|
-
return
|
|
7618
|
+
return Ur.set(`${i}${a}`, n), n;
|
|
7619
7619
|
}
|
|
7620
7620
|
function Lo(i, a) {
|
|
7621
7621
|
const e = a.getDirtyDefinedNameMap(), t = a.getExecuteUnitId();
|
|
@@ -7691,9 +7691,9 @@ class th extends Ne {
|
|
|
7691
7691
|
}
|
|
7692
7692
|
}
|
|
7693
7693
|
deleteFormulaAstCacheKey(...e) {
|
|
7694
|
-
|
|
7694
|
+
Ur.forEach((t, r) => {
|
|
7695
7695
|
e.forEach((n) => {
|
|
7696
|
-
r.includes(n) &&
|
|
7696
|
+
r.includes(n) && Ur.delete(r);
|
|
7697
7697
|
});
|
|
7698
7698
|
});
|
|
7699
7699
|
}
|
|
@@ -7703,7 +7703,7 @@ var Te = /* @__PURE__ */ ((i) => (i.COMPARE = "COMPARE", i.DIVIDED = "DIVIDED",
|
|
|
7703
7703
|
(s = i[n]) && (r = s(r) || r);
|
|
7704
7704
|
return r;
|
|
7705
7705
|
}, Vi = (i, a) => (e, t) => a(e, t, i);
|
|
7706
|
-
class
|
|
7706
|
+
class Vn extends Ge {
|
|
7707
7707
|
constructor(a, e, t) {
|
|
7708
7708
|
super(e), this._runtimeService = a, this._operatorString = e, this._functionExecutor = t;
|
|
7709
7709
|
}
|
|
@@ -7729,7 +7729,7 @@ class pn extends Ge {
|
|
|
7729
7729
|
return l !== u && c !== o || o === c && u === l ? g.create(m.VALUE) : c === o && n >= u && n <= l ? e.getCellByColumn(n) : u === l && r >= o && r <= c ? e.getCellByRow(r) : e.isTable() ? e.getCellByPosition(r) : g.create(m.VALUE);
|
|
7730
7730
|
}
|
|
7731
7731
|
}
|
|
7732
|
-
let
|
|
7732
|
+
let Nn = class extends bt {
|
|
7733
7733
|
constructor(i, a) {
|
|
7734
7734
|
super(), this._functionService = i, this._runtimeService = a;
|
|
7735
7735
|
}
|
|
@@ -7745,15 +7745,15 @@ let Vn = class extends bt {
|
|
|
7745
7745
|
let t = "";
|
|
7746
7746
|
if (e === Me.MINUS)
|
|
7747
7747
|
t = Te.MINUS;
|
|
7748
|
-
else return e === Me.AT ? new
|
|
7748
|
+
else return e === Me.AT ? new Vn(this._runtimeService, e) : void 0;
|
|
7749
7749
|
const r = this._functionService.getExecutor(t);
|
|
7750
|
-
return r ? new
|
|
7750
|
+
return r ? new Vn(this._runtimeService, e, r) : (console.error(`No function ${a}`), xe.create(m.NAME));
|
|
7751
7751
|
}
|
|
7752
7752
|
};
|
|
7753
|
-
|
|
7753
|
+
Nn = nh([
|
|
7754
7754
|
Vi(0, Ht),
|
|
7755
7755
|
Vi(1, Ot)
|
|
7756
|
-
],
|
|
7756
|
+
], Nn);
|
|
7757
7757
|
new RegExp(Me.MINUS, "g");
|
|
7758
7758
|
new RegExp(Me.AT, "g");
|
|
7759
7759
|
function Po(i, a, e) {
|
|
@@ -7762,9 +7762,9 @@ function Po(i, a, e) {
|
|
|
7762
7762
|
let o = 0;
|
|
7763
7763
|
if (s[0] === Me.MINUS) {
|
|
7764
7764
|
const u = a.getExecutor(Te.MINUS);
|
|
7765
|
-
t = new
|
|
7765
|
+
t = new Vn(e, Me.MINUS, u), o++;
|
|
7766
7766
|
}
|
|
7767
|
-
return s[0] === Me.AT && (r = new
|
|
7767
|
+
return s[0] === Me.AT && (r = new Vn(e, Me.AT), t && r.setParent(t), o++), o > 0 && (n = n.slice(o)), { tokenTrim: n, minusPrefixNode: t, atPrefixNode: r };
|
|
7768
7768
|
}
|
|
7769
7769
|
var sh = Object.getOwnPropertyDescriptor, ah = (i, a, e, t) => {
|
|
7770
7770
|
for (var r = t > 1 ? void 0 : t ? sh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
@@ -7933,7 +7933,7 @@ class oh extends Ge {
|
|
|
7933
7933
|
this.setValue(g.create(m.NAME));
|
|
7934
7934
|
}
|
|
7935
7935
|
}
|
|
7936
|
-
let
|
|
7936
|
+
let On = class extends bt {
|
|
7937
7937
|
constructor(i, a, e, t, r, n) {
|
|
7938
7938
|
super(), this._functionService = i, this._currentConfigService = a, this._runtimeService = e, this._definedNamesService = t, this._injector = r, this._formulaDataModel = n;
|
|
7939
7939
|
}
|
|
@@ -7968,20 +7968,20 @@ let Nn = class extends bt {
|
|
|
7968
7968
|
return ((e = (a = i.getParent()) == null ? void 0 : a.getParent()) == null ? void 0 : e.getToken()) === K.COLON;
|
|
7969
7969
|
}
|
|
7970
7970
|
};
|
|
7971
|
-
|
|
7971
|
+
On = ah([
|
|
7972
7972
|
ir(0, Ht),
|
|
7973
7973
|
ir(1, kt),
|
|
7974
7974
|
ir(2, Ot),
|
|
7975
|
-
ir(3,
|
|
7975
|
+
ir(3, Vr),
|
|
7976
7976
|
ir(4, ye(Wi)),
|
|
7977
|
-
ir(5, ye(
|
|
7978
|
-
],
|
|
7977
|
+
ir(5, ye(dr))
|
|
7978
|
+
], On);
|
|
7979
7979
|
var uh = Object.getOwnPropertyDescriptor, ch = (i, a, e, t) => {
|
|
7980
7980
|
for (var r = t > 1 ? void 0 : t ? uh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
7981
7981
|
(s = i[n]) && (r = s(r) || r);
|
|
7982
7982
|
return r;
|
|
7983
7983
|
}, lh = (i, a) => (e, t) => a(e, t, i);
|
|
7984
|
-
let
|
|
7984
|
+
let Ar = class extends Ne {
|
|
7985
7985
|
constructor(i) {
|
|
7986
7986
|
super(), this._runtimeService = i;
|
|
7987
7987
|
}
|
|
@@ -8027,7 +8027,7 @@ let _r = class extends Ne {
|
|
|
8027
8027
|
const t = i.getChildren(), r = t.length;
|
|
8028
8028
|
for (let n = 0; n < r; n++) {
|
|
8029
8029
|
const s = t[n];
|
|
8030
|
-
if (s.getToken().toUpperCase() ===
|
|
8030
|
+
if (s.getToken().toUpperCase() === xr && s.isEmptyParamFunction()) {
|
|
8031
8031
|
s.execute();
|
|
8032
8032
|
continue;
|
|
8033
8033
|
}
|
|
@@ -8041,7 +8041,7 @@ let _r = class extends Ne {
|
|
|
8041
8041
|
const t = i.getChildren(), r = t.length;
|
|
8042
8042
|
for (let n = 0; n < r; n++) {
|
|
8043
8043
|
const s = t[n];
|
|
8044
|
-
if (s.getToken().toUpperCase() ===
|
|
8044
|
+
if (s.getToken().toUpperCase() === xr && s.isEmptyParamFunction()) {
|
|
8045
8045
|
s.execute();
|
|
8046
8046
|
continue;
|
|
8047
8047
|
}
|
|
@@ -8050,11 +8050,11 @@ let _r = class extends Ne {
|
|
|
8050
8050
|
return i.nodeType === ie.REFERENCE && i.setRefOffset(a, e), i.execute(), xt.SUCCESS;
|
|
8051
8051
|
}
|
|
8052
8052
|
};
|
|
8053
|
-
|
|
8053
|
+
Ar = ch([
|
|
8054
8054
|
lh(0, Ot)
|
|
8055
|
-
],
|
|
8055
|
+
], Ar);
|
|
8056
8056
|
function xo(i) {
|
|
8057
|
-
return i instanceof ae ? i.getToken() ===
|
|
8057
|
+
return i instanceof ae ? i.getToken() === mr : !1;
|
|
8058
8058
|
}
|
|
8059
8059
|
function fh(i) {
|
|
8060
8060
|
return i instanceof ae ? i.getToken() === fo : !1;
|
|
@@ -8070,7 +8070,7 @@ function Va(i, a, e) {
|
|
|
8070
8070
|
const u = o.trim();
|
|
8071
8071
|
if (e.has(u)) {
|
|
8072
8072
|
const c = new ae();
|
|
8073
|
-
c.setToken(
|
|
8073
|
+
c.setToken(Fr), c.setLambdaId(a), c.setLambdaPrivacyVar(e), c.setLambdaParameter(u), t[s] = c;
|
|
8074
8074
|
}
|
|
8075
8075
|
}
|
|
8076
8076
|
}
|
|
@@ -8091,7 +8091,7 @@ function Ni(i, a = 0, e = 0) {
|
|
|
8091
8091
|
function jo(i) {
|
|
8092
8092
|
if (!i)
|
|
8093
8093
|
return;
|
|
8094
|
-
if (i.getToken() !==
|
|
8094
|
+
if (i.getToken() !== Fr)
|
|
8095
8095
|
return i;
|
|
8096
8096
|
const a = i, e = a.getCurrentLambdaPrivacyVar(), t = a.getLambdaParameter();
|
|
8097
8097
|
if (!e)
|
|
@@ -8142,7 +8142,7 @@ class Na extends $t {
|
|
|
8142
8142
|
const t = e.getChildren(), r = t.length;
|
|
8143
8143
|
for (let n = 0; n < r; n++) {
|
|
8144
8144
|
const s = t[n];
|
|
8145
|
-
if (s.getToken() ===
|
|
8145
|
+
if (s.getToken() === Fr) {
|
|
8146
8146
|
const u = s.getLambdaParameter(), c = this._lambdaPrivacyValueMap.get(u);
|
|
8147
8147
|
if (c)
|
|
8148
8148
|
s.setValue(c);
|
|
@@ -8210,7 +8210,7 @@ class dh extends Ge {
|
|
|
8210
8210
|
// return Promise.resolve(AstNodePromiseType.SUCCESS);
|
|
8211
8211
|
// }
|
|
8212
8212
|
}
|
|
8213
|
-
let
|
|
8213
|
+
let Mn = class extends bt {
|
|
8214
8214
|
constructor(i, a) {
|
|
8215
8215
|
super(), this._runtimeService = i, this._interpreter = a;
|
|
8216
8216
|
}
|
|
@@ -8223,7 +8223,7 @@ let On = class extends bt {
|
|
|
8223
8223
|
const r = a[a.length - 1];
|
|
8224
8224
|
if (!(e instanceof ae && r instanceof ae))
|
|
8225
8225
|
return xe.create(m.NAME);
|
|
8226
|
-
if (e.getToken() ===
|
|
8226
|
+
if (e.getToken() === mr) {
|
|
8227
8227
|
const o = e.getChildren();
|
|
8228
8228
|
if (t.length !== o.length)
|
|
8229
8229
|
return xe.create(m.VALUE);
|
|
@@ -8241,21 +8241,21 @@ let On = class extends bt {
|
|
|
8241
8241
|
return this._runtimeService.registerFunctionDefinitionPrivacyVar(n, s), this._updateLambdaStatement(r, n, s), new dh(i.getToken(), n, this._interpreter, [...s.keys()]);
|
|
8242
8242
|
}
|
|
8243
8243
|
checkAndCreateNodeType(i) {
|
|
8244
|
-
if (!(!(i instanceof ae) || i.getToken().trim().toUpperCase() !==
|
|
8244
|
+
if (!(!(i instanceof ae) || i.getToken().trim().toUpperCase() !== xr))
|
|
8245
8245
|
return this.create(i);
|
|
8246
8246
|
}
|
|
8247
8247
|
_updateLambdaStatement(i, a, e) {
|
|
8248
8248
|
Va(i, a, e);
|
|
8249
8249
|
}
|
|
8250
8250
|
};
|
|
8251
|
-
|
|
8251
|
+
Mn = gh([
|
|
8252
8252
|
Oi(0, Ot),
|
|
8253
|
-
Oi(1, ye(
|
|
8254
|
-
],
|
|
8253
|
+
Oi(1, ye(Ar))
|
|
8254
|
+
], Mn);
|
|
8255
8255
|
function Uo(i) {
|
|
8256
8256
|
if (!i)
|
|
8257
8257
|
return;
|
|
8258
|
-
if (i.getToken() !==
|
|
8258
|
+
if (i.getToken() !== Fr)
|
|
8259
8259
|
return i;
|
|
8260
8260
|
const a = i, e = a.getCurrentLambdaPrivacyVar(), t = a.getLambdaParameter();
|
|
8261
8261
|
if (e)
|
|
@@ -8293,7 +8293,7 @@ class vo extends bt {
|
|
|
8293
8293
|
return e ? new Ch(a.getToken(), t, e) : new xe(m.NAME);
|
|
8294
8294
|
}
|
|
8295
8295
|
checkAndCreateNodeType(a) {
|
|
8296
|
-
if (!(!(a instanceof ae) || a.getToken().trim() !==
|
|
8296
|
+
if (!(!(a instanceof ae) || a.getToken().trim() !== Fr))
|
|
8297
8297
|
return this.create(a);
|
|
8298
8298
|
}
|
|
8299
8299
|
}
|
|
@@ -8338,7 +8338,7 @@ class yh extends Ge {
|
|
|
8338
8338
|
);
|
|
8339
8339
|
}
|
|
8340
8340
|
}
|
|
8341
|
-
let
|
|
8341
|
+
let wn = class extends bt {
|
|
8342
8342
|
constructor(i) {
|
|
8343
8343
|
super(), this._functionService = i;
|
|
8344
8344
|
}
|
|
@@ -8360,15 +8360,15 @@ let Mn = class extends bt {
|
|
|
8360
8360
|
return this.create(a);
|
|
8361
8361
|
}
|
|
8362
8362
|
};
|
|
8363
|
-
|
|
8363
|
+
wn = Eh([
|
|
8364
8364
|
bh(0, Ht)
|
|
8365
|
-
],
|
|
8365
|
+
], wn);
|
|
8366
8366
|
var Rh = Object.getOwnPropertyDescriptor, ph = (i, a, e, t) => {
|
|
8367
8367
|
for (var r = t > 1 ? void 0 : t ? Rh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
8368
8368
|
(s = i[n]) && (r = s(r) || r);
|
|
8369
8369
|
return r;
|
|
8370
|
-
},
|
|
8371
|
-
class
|
|
8370
|
+
}, As = (i, a) => (e, t) => a(e, t, i);
|
|
8371
|
+
class Es extends Ge {
|
|
8372
8372
|
constructor(e, t, r, n, s = !1) {
|
|
8373
8373
|
super(r);
|
|
8374
8374
|
A(this, "_refOffsetX", 0);
|
|
@@ -8394,7 +8394,7 @@ class As extends Ge {
|
|
|
8394
8394
|
};
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
|
-
let
|
|
8397
|
+
let Sn = class extends bt {
|
|
8398
8398
|
constructor(i, a, e) {
|
|
8399
8399
|
super(), this._currentConfigService = i, this._formulaRuntimeService = a, this._functionService = e;
|
|
8400
8400
|
}
|
|
@@ -8409,7 +8409,7 @@ let wn = class extends bt {
|
|
|
8409
8409
|
if (!a && s.charAt(0) === '"' && s.charAt(s.length - 1) === '"')
|
|
8410
8410
|
return;
|
|
8411
8411
|
let c;
|
|
8412
|
-
if (
|
|
8412
|
+
if (Ir(s) ? c = new Es(r, n, s, hn.CELL, t) : a && this._checkParentIsUnionOperator(i) && (eo(s) ? c = new Es(r, n, s, hn.ROW, t) : to(s) && (c = new Es(r, n, s, hn.COLUMN, t))), c)
|
|
8413
8413
|
return u ? c.setParent(u) : o && c.setParent(o), c;
|
|
8414
8414
|
}
|
|
8415
8415
|
_checkParentIsUnionOperator(i) {
|
|
@@ -8417,16 +8417,16 @@ let wn = class extends bt {
|
|
|
8417
8417
|
return ((e = (a = i.getParent()) == null ? void 0 : a.getParent()) == null ? void 0 : e.getToken().trim()) === K.COLON;
|
|
8418
8418
|
}
|
|
8419
8419
|
};
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
],
|
|
8420
|
+
Sn = ph([
|
|
8421
|
+
As(0, kt),
|
|
8422
|
+
As(1, Ot),
|
|
8423
|
+
As(2, Ht)
|
|
8424
|
+
], Sn);
|
|
8425
8425
|
var Vh = Object.getOwnPropertyDescriptor, Nh = (i, a, e, t) => {
|
|
8426
8426
|
for (var r = t > 1 ? void 0 : t ? Vh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
8427
8427
|
(s = i[n]) && (r = s(r) || r);
|
|
8428
8428
|
return r;
|
|
8429
|
-
},
|
|
8429
|
+
}, bs = (i, a) => (e, t) => a(e, t, i);
|
|
8430
8430
|
class Mi extends Ge {
|
|
8431
8431
|
constructor(a, e, t, r) {
|
|
8432
8432
|
super(t), this._currentConfigService = a, this._lexer = e, this._operatorString = t, this._functionExecutor = r;
|
|
@@ -8460,7 +8460,7 @@ class Mi extends Ge {
|
|
|
8460
8460
|
return o && this._lexer.treeBuilder(o), g.create(m.VALUE);
|
|
8461
8461
|
}
|
|
8462
8462
|
}
|
|
8463
|
-
let
|
|
8463
|
+
let Dn = class extends bt {
|
|
8464
8464
|
constructor(i, a, e) {
|
|
8465
8465
|
super(), this._functionService = i, this._lexer = a, this._currentConfigService = e;
|
|
8466
8466
|
}
|
|
@@ -8481,11 +8481,11 @@ let Sn = class extends bt {
|
|
|
8481
8481
|
return t ? new Mi(this._currentConfigService, this._lexer, a, t) : (console.error(`No function ${i}`), xe.create(m.NAME));
|
|
8482
8482
|
}
|
|
8483
8483
|
};
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
],
|
|
8484
|
+
Dn = Nh([
|
|
8485
|
+
bs(0, Ht),
|
|
8486
|
+
bs(1, ye(Cr)),
|
|
8487
|
+
bs(2, kt)
|
|
8488
|
+
], Dn);
|
|
8489
8489
|
var Oh = Object.getOwnPropertyDescriptor, Mh = (i, a, e, t) => {
|
|
8490
8490
|
for (var r = t > 1 ? void 0 : t ? Oh(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
8491
8491
|
(s = i[n]) && (r = s(r) || r);
|
|
@@ -8509,7 +8509,7 @@ class Sh extends Ge {
|
|
|
8509
8509
|
return a.isError() || e.isError() || !a.isReferenceObject() || !e.isReferenceObject() ? g.create(m.REF) : (a = a, e = e, Wf(a, e));
|
|
8510
8510
|
}
|
|
8511
8511
|
}
|
|
8512
|
-
let
|
|
8512
|
+
let Ln = class extends bt {
|
|
8513
8513
|
constructor(i) {
|
|
8514
8514
|
super(), this._functionService = i;
|
|
8515
8515
|
}
|
|
@@ -8527,9 +8527,9 @@ let Dn = class extends bt {
|
|
|
8527
8527
|
return this.create(e);
|
|
8528
8528
|
}
|
|
8529
8529
|
};
|
|
8530
|
-
|
|
8530
|
+
Ln = Mh([
|
|
8531
8531
|
wh(0, Ht)
|
|
8532
|
-
],
|
|
8532
|
+
], Ln);
|
|
8533
8533
|
class Dh extends Ge {
|
|
8534
8534
|
constructor(a) {
|
|
8535
8535
|
super(a);
|
|
@@ -8550,7 +8550,7 @@ class To extends bt {
|
|
|
8550
8550
|
_checkValueNode(a) {
|
|
8551
8551
|
if (Number.isNaN(Number(a))) {
|
|
8552
8552
|
const e = a.trim(), t = e.charAt(0), r = e.charAt(e.length - 1);
|
|
8553
|
-
if (
|
|
8553
|
+
if (Rr.has(e))
|
|
8554
8554
|
return this.create(e);
|
|
8555
8555
|
if (t === '"' && r === '"')
|
|
8556
8556
|
return this.create(e);
|
|
@@ -8575,7 +8575,7 @@ var Lh = Object.getOwnPropertyDescriptor, Ph = (i, a, e, t) => {
|
|
|
8575
8575
|
(s = i[n]) && (r = s(r) || r);
|
|
8576
8576
|
return r;
|
|
8577
8577
|
}, ut = (i, a) => (e, t) => a(e, t, i);
|
|
8578
|
-
let
|
|
8578
|
+
let vr = class extends Ne {
|
|
8579
8579
|
constructor(a, e, t, r, n, s, o, u, c, l, f) {
|
|
8580
8580
|
super();
|
|
8581
8581
|
A(this, "_astNodeFactoryList", []);
|
|
@@ -8613,9 +8613,9 @@ let Ur = class extends Ne {
|
|
|
8613
8613
|
if (t % 2 !== 1 || t === 0)
|
|
8614
8614
|
return;
|
|
8615
8615
|
const r = new ae();
|
|
8616
|
-
r.setToken(
|
|
8616
|
+
r.setToken(xr);
|
|
8617
8617
|
const n = new ae();
|
|
8618
|
-
n.setToken(
|
|
8618
|
+
n.setToken(mr);
|
|
8619
8619
|
const s = [...e];
|
|
8620
8620
|
for (let u = 0; u < t; u++) {
|
|
8621
8621
|
const c = s[u];
|
|
@@ -8641,7 +8641,7 @@ let Ur = class extends Ne {
|
|
|
8641
8641
|
if (s = e, r === 0)
|
|
8642
8642
|
return new _h(Ut).setParent(e), s;
|
|
8643
8643
|
} else {
|
|
8644
|
-
if (o ===
|
|
8644
|
+
if (o === mr) {
|
|
8645
8645
|
let f = this._lambdaParameterHandler(a, e);
|
|
8646
8646
|
return f === !1 && (f = xe.create(m.ERROR)), f;
|
|
8647
8647
|
}
|
|
@@ -8747,19 +8747,19 @@ let Ur = class extends Ne {
|
|
|
8747
8747
|
].sort(ac);
|
|
8748
8748
|
}
|
|
8749
8749
|
};
|
|
8750
|
-
|
|
8750
|
+
vr = Ph([
|
|
8751
8751
|
ut(0, Ot),
|
|
8752
8752
|
ut(1, ye(Do)),
|
|
8753
|
-
ut(2, ye(
|
|
8754
|
-
ut(3, ye(
|
|
8753
|
+
ut(2, ye(On)),
|
|
8754
|
+
ut(3, ye(Mn)),
|
|
8755
8755
|
ut(4, ye(vo)),
|
|
8756
|
-
ut(5, ye(
|
|
8757
|
-
ut(6, ye(
|
|
8758
|
-
ut(7, ye(
|
|
8759
|
-
ut(8, ye(
|
|
8760
|
-
ut(9, ye(
|
|
8756
|
+
ut(5, ye(wn)),
|
|
8757
|
+
ut(6, ye(Nn)),
|
|
8758
|
+
ut(7, ye(Sn)),
|
|
8759
|
+
ut(8, ye(Dn)),
|
|
8760
|
+
ut(9, ye(Ln)),
|
|
8761
8761
|
ut(10, ye(To))
|
|
8762
|
-
],
|
|
8762
|
+
], vr);
|
|
8763
8763
|
class xh extends Ne {
|
|
8764
8764
|
constructor() {
|
|
8765
8765
|
super(...arguments);
|
|
@@ -8772,7 +8772,7 @@ class xh extends Ne {
|
|
|
8772
8772
|
A(this, "_definedNameMap", /* @__PURE__ */ new Map());
|
|
8773
8773
|
// unitId -> definedName -> treeId
|
|
8774
8774
|
A(this, "_otherFormulaDataMainData", /* @__PURE__ */ new Set());
|
|
8775
|
-
A(this, "_dependencyRTreeCache", new
|
|
8775
|
+
A(this, "_dependencyRTreeCache", new Ms());
|
|
8776
8776
|
A(this, "_dependencyTreeIdLast", 0);
|
|
8777
8777
|
}
|
|
8778
8778
|
buildDependencyTree(e, t) {
|
|
@@ -9104,7 +9104,7 @@ class jh extends xh {
|
|
|
9104
9104
|
this._allTreeMap.set(e.treeId, e);
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
|
-
const
|
|
9107
|
+
const es = Ze(
|
|
9108
9108
|
"univer.formula.dependency-manager.service"
|
|
9109
9109
|
);
|
|
9110
9110
|
class Uh extends Ne {
|
|
@@ -9112,7 +9112,7 @@ class Uh extends Ne {
|
|
|
9112
9112
|
super(...arguments);
|
|
9113
9113
|
A(this, "_referenceExecutorMap", /* @__PURE__ */ new Map());
|
|
9114
9114
|
// unitId -> subUnitId -> featureId -> IFeatureCalculationManagerParam
|
|
9115
|
-
A(this, "_onChanged$", new
|
|
9115
|
+
A(this, "_onChanged$", new lr());
|
|
9116
9116
|
A(this, "onChanged$", this._onChanged$.asObservable());
|
|
9117
9117
|
}
|
|
9118
9118
|
dispose() {
|
|
@@ -9150,7 +9150,7 @@ class Uh extends Ne {
|
|
|
9150
9150
|
return this._referenceExecutorMap;
|
|
9151
9151
|
}
|
|
9152
9152
|
}
|
|
9153
|
-
const
|
|
9153
|
+
const Tr = Ze(
|
|
9154
9154
|
"univer.formula.feature-calculation-manager.service"
|
|
9155
9155
|
);
|
|
9156
9156
|
class vh extends Ne {
|
|
@@ -9369,7 +9369,7 @@ class wi extends Bo {
|
|
|
9369
9369
|
return this.refTree == null ? "" : this.refTree.formulaId;
|
|
9370
9370
|
}
|
|
9371
9371
|
}
|
|
9372
|
-
class
|
|
9372
|
+
class ys extends Bo {
|
|
9373
9373
|
constructor(e) {
|
|
9374
9374
|
super();
|
|
9375
9375
|
A(this, "isCache", !1);
|
|
@@ -9519,12 +9519,12 @@ let Zs = class extends Ne {
|
|
|
9519
9519
|
constructor(a, e, t, r, n, s, o, u) {
|
|
9520
9520
|
super();
|
|
9521
9521
|
A(this, "_updateRangeFlattenCache", /* @__PURE__ */ new Map());
|
|
9522
|
-
A(this, "_dependencyRTreeCacheForAddressFunction", new
|
|
9522
|
+
A(this, "_dependencyRTreeCacheForAddressFunction", new Ms());
|
|
9523
9523
|
A(this, "_executedAddressFunctionNodeIds", /* @__PURE__ */ new Set());
|
|
9524
9524
|
this._currentConfigService = a, this._runtimeService = e, this._otherFormulaManagerService = t, this._featureCalculationManagerService = r, this._interpreter = n, this._astTreeBuilder = s, this._lexer = o, this._dependencyManagerService = u;
|
|
9525
9525
|
}
|
|
9526
9526
|
dispose() {
|
|
9527
|
-
this._updateRangeFlattenCache.clear(), this._dependencyRTreeCacheForAddressFunction.clear(),
|
|
9527
|
+
this._updateRangeFlattenCache.clear(), this._dependencyRTreeCacheForAddressFunction.clear(), Ur.clear();
|
|
9528
9528
|
}
|
|
9529
9529
|
async generate() {
|
|
9530
9530
|
this._updateRangeFlatten();
|
|
@@ -9700,7 +9700,7 @@ let Zs = class extends Ne {
|
|
|
9700
9700
|
});
|
|
9701
9701
|
}
|
|
9702
9702
|
_getFeatureFormulaTree(a, e, t) {
|
|
9703
|
-
const { unitId: r, subUnitId: n, dependencyRanges: s, getDirtyData: o } = t, u = e || or(this._dependencyManagerService), c = new
|
|
9703
|
+
const { unitId: r, subUnitId: n, dependencyRanges: s, getDirtyData: o } = t, u = e || or(this._dependencyManagerService), c = new ys(u);
|
|
9704
9704
|
c.unitId = r, c.subUnitId = n, c.rangeList = s, c.getDirtyData = o;
|
|
9705
9705
|
const l = o(this._currentConfigService.getDirtyData(), this._runtimeService.getAllRuntimeData()), f = this._convertDirtyRangesToUnitRange(l.dirtyRanges);
|
|
9706
9706
|
return c.featureDirtyRanges = f, c.featureId = a, c.type = Ks.FEATURE_FORMULA, this._dependencyManagerService.addFeatureFormulaDependency(r, n, a, c), this._dependencyManagerService.getFeatureFormulaDependency(t.unitId, t.subUnitId, a) && (c.isCache = !0), c;
|
|
@@ -9720,7 +9720,7 @@ let Zs = class extends Ne {
|
|
|
9720
9720
|
const f = this._dependencyManagerService.hasOtherFormulaDataMainData(l), h = u[l], { f: d, ranges: _ } = h;
|
|
9721
9721
|
let C = !1;
|
|
9722
9722
|
f && (C = !0);
|
|
9723
|
-
const E = pi(r, d, this._lexer, this._astTreeBuilder, this._currentConfigService), { firstRow: b, firstColumn: R } = this._getFirstCellOfRange(_), p = this._dependencyManagerService.getOtherFormulaDependency(r, o, l), N = (p == null ? void 0 : p.getValue(0, 0)) || or(this._dependencyManagerService), M = new
|
|
9723
|
+
const E = pi(r, d, this._lexer, this._astTreeBuilder, this._currentConfigService), { firstRow: b, firstColumn: R } = this._getFirstCellOfRange(_), p = this._dependencyManagerService.getOtherFormulaDependency(r, o, l), N = (p == null ? void 0 : p.getValue(0, 0)) || or(this._dependencyManagerService), M = new ys(N);
|
|
9724
9724
|
for (let w = 0; w < _.length; w++) {
|
|
9725
9725
|
const S = _[w], { startRow: D, startColumn: L, endRow: U, endColumn: x } = S;
|
|
9726
9726
|
for (let F = D; F <= U; F++)
|
|
@@ -9781,7 +9781,7 @@ let Zs = class extends Ne {
|
|
|
9781
9781
|
}
|
|
9782
9782
|
}
|
|
9783
9783
|
_createFDtree(a, e, t, r, n, s) {
|
|
9784
|
-
const { f: o, x: u = 0, y: c = 0 } = s, l = new
|
|
9784
|
+
const { f: o, x: u = 0, y: c = 0 } = s, l = new ys(or(this._dependencyManagerService)), f = n[a][e], h = pi(a, o, this._lexer, this._astTreeBuilder, this._currentConfigService);
|
|
9785
9785
|
return l.node = h, l.formula = o, l.unitId = a, l.subUnitId = e, l.row = t, l.column = r, l.rowCount = f.rowCount, l.columnCount = f.columnCount, l;
|
|
9786
9786
|
}
|
|
9787
9787
|
_createVirtualFDtree(a, e) {
|
|
@@ -9877,7 +9877,7 @@ let Zs = class extends Ne {
|
|
|
9877
9877
|
u.length !== 0 && await this._calculateAddressFunctionRuntimeData(a, u);
|
|
9878
9878
|
}
|
|
9879
9879
|
async _calculateListByFunctionRefNode(a) {
|
|
9880
|
-
const e = new
|
|
9880
|
+
const e = new Ms();
|
|
9881
9881
|
for (let t = 0, r = a.length; t < r; t++) {
|
|
9882
9882
|
const n = a[t];
|
|
9883
9883
|
e.insert({
|
|
@@ -10110,11 +10110,11 @@ Zs = Bh([
|
|
|
10110
10110
|
St(0, kt),
|
|
10111
10111
|
St(1, Ot),
|
|
10112
10112
|
St(2, Oa),
|
|
10113
|
-
St(3,
|
|
10114
|
-
St(4, ye(
|
|
10115
|
-
St(5, ye(
|
|
10116
|
-
St(6, ye(
|
|
10117
|
-
St(7,
|
|
10113
|
+
St(3, Tr),
|
|
10114
|
+
St(4, ye(Ar)),
|
|
10115
|
+
St(5, ye(vr)),
|
|
10116
|
+
St(6, ye(Cr)),
|
|
10117
|
+
St(7, es)
|
|
10118
10118
|
], Zs);
|
|
10119
10119
|
var Ih = Object.getOwnPropertyDescriptor, Fh = (i, a, e, t) => {
|
|
10120
10120
|
for (var r = t > 1 ? void 0 : t ? Ih(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
@@ -10125,15 +10125,15 @@ const kh = 500, zs = Ze("engine-formula.calculate-formula.service");
|
|
|
10125
10125
|
let Js = class extends Ne {
|
|
10126
10126
|
constructor(a, e, t, r, n, s, o) {
|
|
10127
10127
|
super();
|
|
10128
|
-
A(this, "_executionInProgressListener$", new
|
|
10128
|
+
A(this, "_executionInProgressListener$", new lr());
|
|
10129
10129
|
A(this, "executionInProgressListener$", this._executionInProgressListener$.asObservable());
|
|
10130
|
-
A(this, "_executionCompleteListener$", new
|
|
10130
|
+
A(this, "_executionCompleteListener$", new lr());
|
|
10131
10131
|
A(this, "executionCompleteListener$", this._executionCompleteListener$.asObservable());
|
|
10132
10132
|
A(this, "_executeLock", new ic());
|
|
10133
10133
|
this._configService = a, this._lexer = e, this._currentConfigService = t, this._runtimeService = r, this._formulaDependencyGenerator = n, this._interpreter = s, this._astTreeBuilder = o;
|
|
10134
10134
|
}
|
|
10135
10135
|
dispose() {
|
|
10136
|
-
super.dispose(), this._executionInProgressListener$.complete(), this._executionCompleteListener$.complete(),
|
|
10136
|
+
super.dispose(), this._executionInProgressListener$.complete(), this._executionCompleteListener$.complete(), Rn.clear(), We.clear(), Bs.clear(), Gs.clear();
|
|
10137
10137
|
}
|
|
10138
10138
|
/**
|
|
10139
10139
|
* Stop the execution of the formula.
|
|
@@ -10158,7 +10158,7 @@ let Js = class extends Ne {
|
|
|
10158
10158
|
this._runtimeService.setFormulaExecuteStage(Je.START), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._currentConfigService.load(a), this._runtimeService.reset();
|
|
10159
10159
|
const e = a.maxIteration || mo;
|
|
10160
10160
|
this._executeLock.acquire("FORMULA_EXECUTION_LOCK", async () => {
|
|
10161
|
-
for (let t = 0; t < e && (this._runtimeService.setFormulaCycleIndex(t), await this._executeStep(),
|
|
10161
|
+
for (let t = 0; t < e && (this._runtimeService.setFormulaCycleIndex(t), await this._executeStep(), Rn.clear(), !!this._runtimeService.isCycleDependency()); t++)
|
|
10162
10162
|
;
|
|
10163
10163
|
this._runtimeService.setFormulaExecuteStage(Je.CALCULATION_COMPLETED), this._executionInProgressListener$.next(this._runtimeService.getRuntimeState()), this._executionCompleteListener$.next(this._runtimeService.getAllRuntimeData()), We.clear(), this._runtimeService.reset();
|
|
10164
10164
|
});
|
|
@@ -10248,19 +10248,19 @@ let Js = class extends Ne {
|
|
|
10248
10248
|
};
|
|
10249
10249
|
Js = Fh([
|
|
10250
10250
|
Qt(0, ia),
|
|
10251
|
-
Qt(1, ye(
|
|
10251
|
+
Qt(1, ye(Cr)),
|
|
10252
10252
|
Qt(2, kt),
|
|
10253
10253
|
Qt(3, Ot),
|
|
10254
10254
|
Qt(4, Xs),
|
|
10255
|
-
Qt(5, ye(
|
|
10256
|
-
Qt(6, ye(
|
|
10255
|
+
Qt(5, ye(Ar)),
|
|
10256
|
+
Qt(6, ye(vr))
|
|
10257
10257
|
], Js);
|
|
10258
10258
|
var $h = Object.getOwnPropertyDescriptor, Yh = (i, a, e, t) => {
|
|
10259
10259
|
for (var r = t > 1 ? void 0 : t ? $h(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
10260
10260
|
(s = i[n]) && (r = s(r) || r);
|
|
10261
10261
|
return r;
|
|
10262
|
-
},
|
|
10263
|
-
let
|
|
10262
|
+
}, Rs = (i, a) => (e, t) => a(e, t, i);
|
|
10263
|
+
let Pn = class extends Ne {
|
|
10264
10264
|
constructor(i, a, e) {
|
|
10265
10265
|
super(), this._commandService = i, this._calculateFormulaService = a, this._formulaDataModel = e, this._initialize();
|
|
10266
10266
|
}
|
|
@@ -10274,7 +10274,7 @@ let Ln = class extends Ne {
|
|
|
10274
10274
|
this._calculateFormulaService.stopFormulaExecution();
|
|
10275
10275
|
else if (i.id === io.id)
|
|
10276
10276
|
this._calculate(i.params);
|
|
10277
|
-
else if (i.id ===
|
|
10277
|
+
else if (i.id === Ss.id) {
|
|
10278
10278
|
const a = i.params;
|
|
10279
10279
|
if (a == null)
|
|
10280
10280
|
return;
|
|
@@ -10306,18 +10306,18 @@ let Ln = class extends Ne {
|
|
|
10306
10306
|
this._calculateFormulaService.executionCompleteListener$.subscribe((i) => {
|
|
10307
10307
|
const a = i.functionsExecutedState;
|
|
10308
10308
|
switch (a) {
|
|
10309
|
-
case
|
|
10309
|
+
case Lr.NOT_EXECUTED:
|
|
10310
10310
|
break;
|
|
10311
|
-
case
|
|
10311
|
+
case Lr.STOP_EXECUTION:
|
|
10312
10312
|
break;
|
|
10313
|
-
case
|
|
10313
|
+
case Lr.SUCCESS:
|
|
10314
10314
|
this._applyResult(i);
|
|
10315
10315
|
break;
|
|
10316
|
-
case
|
|
10316
|
+
case Lr.INITIAL:
|
|
10317
10317
|
break;
|
|
10318
10318
|
}
|
|
10319
10319
|
this._commandService.executeCommand(
|
|
10320
|
-
|
|
10320
|
+
_n.id,
|
|
10321
10321
|
{
|
|
10322
10322
|
functionsExecutedState: a
|
|
10323
10323
|
},
|
|
@@ -10327,7 +10327,7 @@ let Ln = class extends Ne {
|
|
|
10327
10327
|
);
|
|
10328
10328
|
}), this._calculateFormulaService.executionInProgressListener$.subscribe((i) => {
|
|
10329
10329
|
this._commandService.executeCommand(
|
|
10330
|
-
|
|
10330
|
+
_n.id,
|
|
10331
10331
|
{
|
|
10332
10332
|
stageInfo: i
|
|
10333
10333
|
},
|
|
@@ -10344,7 +10344,7 @@ let Ln = class extends Ne {
|
|
|
10344
10344
|
return;
|
|
10345
10345
|
}
|
|
10346
10346
|
t && (this._formulaDataModel.clearPreviousArrayFormulaCellData(n), this._formulaDataModel.mergeArrayFormulaCellData(r), this._formulaDataModel.mergeArrayFormulaRange(t), this._commandService.executeCommand(
|
|
10347
|
-
|
|
10347
|
+
Ss.id,
|
|
10348
10348
|
{
|
|
10349
10349
|
arrayFormulaRange: this._formulaDataModel.getArrayFormulaRange(),
|
|
10350
10350
|
arrayFormulaCellData: this._formulaDataModel.getArrayFormulaCellData()
|
|
@@ -10364,11 +10364,11 @@ let Ln = class extends Ne {
|
|
|
10364
10364
|
);
|
|
10365
10365
|
}
|
|
10366
10366
|
};
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
],
|
|
10367
|
+
Pn = Yh([
|
|
10368
|
+
Rs(0, sr),
|
|
10369
|
+
Rs(1, zs),
|
|
10370
|
+
Rs(2, ye(dr))
|
|
10371
|
+
], Pn);
|
|
10372
10372
|
const Si = /[\[\]]/g;
|
|
10373
10373
|
function Di(i, a) {
|
|
10374
10374
|
if (Si.test(i)) {
|
|
@@ -10377,7 +10377,7 @@ function Di(i, a) {
|
|
|
10377
10377
|
}
|
|
10378
10378
|
return Number(i) - 1;
|
|
10379
10379
|
}
|
|
10380
|
-
function
|
|
10380
|
+
function ps(i, a = 0, e = 0) {
|
|
10381
10381
|
i = i.toLocaleUpperCase();
|
|
10382
10382
|
const t = i.split(/[RC]/), r = t[1], n = t[2], s = Di(r, a), o = Di(n, e);
|
|
10383
10383
|
return {
|
|
@@ -10389,7 +10389,7 @@ function Rs(i, a = 0, e = 0) {
|
|
|
10389
10389
|
function Hh(i, a = 0, e = 0) {
|
|
10390
10390
|
const { refBody: t, sheetName: r, unitId: n } = ua(i), s = t.indexOf(":");
|
|
10391
10391
|
if (s === -1) {
|
|
10392
|
-
const C =
|
|
10392
|
+
const C = ps(t, a, e), E = C.row, b = C.column, R = C.absoluteRefType;
|
|
10393
10393
|
return {
|
|
10394
10394
|
unitId: n,
|
|
10395
10395
|
sheetName: r,
|
|
@@ -10403,7 +10403,7 @@ function Hh(i, a = 0, e = 0) {
|
|
|
10403
10403
|
}
|
|
10404
10404
|
};
|
|
10405
10405
|
}
|
|
10406
|
-
const o = t.substring(0, s), u = t.substring(s + 1), c =
|
|
10406
|
+
const o = t.substring(0, s), u = t.substring(s + 1), c = ps(o, a, e), l = ps(u, a, e), f = c.row, h = c.column, d = l.row, _ = l.column;
|
|
10407
10407
|
return {
|
|
10408
10408
|
unitId: n,
|
|
10409
10409
|
sheetName: r,
|
|
@@ -10418,10 +10418,10 @@ function Hh(i, a = 0, e = 0) {
|
|
|
10418
10418
|
};
|
|
10419
10419
|
}
|
|
10420
10420
|
function Gh(i) {
|
|
10421
|
-
const a =
|
|
10421
|
+
const a = zr(i.startRow, i.startAbsoluteRefType, !0), e = zr(i.startColumn, i.startAbsoluteRefType, !1), t = zr(i.endRow, i.endAbsoluteRefType, !0), r = zr(i.endColumn, i.endAbsoluteRefType, !1);
|
|
10422
10422
|
return a === t && e === r ? `R${a}C${e}` : `R${a}C${e}:R${t}C${r}`;
|
|
10423
10423
|
}
|
|
10424
|
-
function
|
|
10424
|
+
function zr(i, a = we.ALL, e) {
|
|
10425
10425
|
switch (i += 1, a) {
|
|
10426
10426
|
case we.ALL:
|
|
10427
10427
|
return `${i}`;
|
|
@@ -10443,7 +10443,7 @@ function Xt(i) {
|
|
|
10443
10443
|
}
|
|
10444
10444
|
return a.isError(), a;
|
|
10445
10445
|
}
|
|
10446
|
-
function
|
|
10446
|
+
function Yr(...i) {
|
|
10447
10447
|
for (let a = 0; a < i.length; a++) {
|
|
10448
10448
|
const e = Xt(i[a]);
|
|
10449
10449
|
if (e.isError())
|
|
@@ -10782,7 +10782,7 @@ class V {
|
|
|
10782
10782
|
} else
|
|
10783
10783
|
t[0].push(n);
|
|
10784
10784
|
}
|
|
10785
|
-
return
|
|
10785
|
+
return Or(t, 1, t[0].length);
|
|
10786
10786
|
}
|
|
10787
10787
|
_includingLogicalValuesAndText(a) {
|
|
10788
10788
|
if (a.isBoolean() && (a = Yf(a)), a.isString()) {
|
|
@@ -10792,13 +10792,13 @@ class V {
|
|
|
10792
10792
|
return a;
|
|
10793
10793
|
}
|
|
10794
10794
|
createReferenceObject(a, e) {
|
|
10795
|
-
const t = a.getForcedUnitId(), r = a.getForcedSheetId() || "", n = a.getForcedSheetName(), o =
|
|
10795
|
+
const t = a.getForcedUnitId(), r = a.getForcedSheetId() || "", n = a.getForcedSheetName(), o = Ds({
|
|
10796
10796
|
unitId: t,
|
|
10797
10797
|
sheetName: n,
|
|
10798
10798
|
range: e
|
|
10799
10799
|
});
|
|
10800
10800
|
let u;
|
|
10801
|
-
return
|
|
10801
|
+
return Ir(o) ? u = new ba(o) : eo(o) ? u = new Ra(o) : to(o) ? u = new ya(o) : u = new pn(e, r, t), this._setReferenceDefault(a, u);
|
|
10802
10802
|
}
|
|
10803
10803
|
_setReferenceDefault(a, e) {
|
|
10804
10804
|
return this.unitId == null || this.subUnitId == null ? g.create(m.REF) : (e.setDefaultUnitId(this.unitId), e.setDefaultSheetId(this.subUnitId), e.setUnitData(a.getUnitData()), e.setRuntimeData(a.getRuntimeData()), e.setArrayFormulaCellData(a.getArrayFormulaCellData()), e.setRuntimeArrayFormulaCellData(a.getRuntimeArrayFormulaCellData()), e);
|
|
@@ -10813,7 +10813,7 @@ class Qh extends V {
|
|
|
10813
10813
|
calculate(e, t, r) {
|
|
10814
10814
|
if (e.isError())
|
|
10815
10815
|
return e;
|
|
10816
|
-
const { isError: n, errorObject: s, variants: o } =
|
|
10816
|
+
const { isError: n, errorObject: s, variants: o } = Yr(t, r);
|
|
10817
10817
|
if (n)
|
|
10818
10818
|
return s;
|
|
10819
10819
|
const { isError: u, errorObject: c, variants: l } = B(...o);
|
|
@@ -10863,7 +10863,7 @@ const qh = [
|
|
|
10863
10863
|
[Qh, ea.ARRAY_CONSTRAIN],
|
|
10864
10864
|
[Wh, ea.FLATTEN]
|
|
10865
10865
|
];
|
|
10866
|
-
var
|
|
10866
|
+
var Er;
|
|
10867
10867
|
((i) => {
|
|
10868
10868
|
const a = 0.636619772;
|
|
10869
10869
|
function e(n, s) {
|
|
@@ -11002,7 +11002,7 @@ var Ar;
|
|
|
11002
11002
|
}
|
|
11003
11003
|
return r(o, l, 2, 1);
|
|
11004
11004
|
})();
|
|
11005
|
-
})(
|
|
11005
|
+
})(Er || (Er = {}));
|
|
11006
11006
|
function Ma(i) {
|
|
11007
11007
|
return /^[01]{1,10}$/.test(i);
|
|
11008
11008
|
}
|
|
@@ -11071,7 +11071,7 @@ function Kh(i) {
|
|
|
11071
11071
|
}
|
|
11072
11072
|
return i < 1 ? t : -t;
|
|
11073
11073
|
}
|
|
11074
|
-
function
|
|
11074
|
+
function fr(i, a = 1) {
|
|
11075
11075
|
let e = Math.floor(i);
|
|
11076
11076
|
if (i < 0)
|
|
11077
11077
|
return Number.NaN;
|
|
@@ -11129,7 +11129,7 @@ function zh(i) {
|
|
|
11129
11129
|
}
|
|
11130
11130
|
return e;
|
|
11131
11131
|
}
|
|
11132
|
-
function
|
|
11132
|
+
function hr(i, a) {
|
|
11133
11133
|
return i.map((e) => a[0].map(
|
|
11134
11134
|
(t, r) => e.reduce((n, s, o) => n + s * a[o][r], 0)
|
|
11135
11135
|
));
|
|
@@ -11223,7 +11223,7 @@ function tm(i) {
|
|
|
11223
11223
|
const { matrixU: e, matrixS: t, matrixV: r } = a, n = mt(e), s = Array.from({ length: t.length }, () => new Array(i[0].length).fill(0)), o = Math.max(i.length, i[0].length) * Number.EPSILON * t[0];
|
|
11224
11224
|
for (let u = 0; u < t.length; u++)
|
|
11225
11225
|
Math.abs(t[u]) > o && (s[u][u] = 1 / t[u]);
|
|
11226
|
-
return
|
|
11226
|
+
return hr(r, hr(s, n));
|
|
11227
11227
|
}
|
|
11228
11228
|
function rm(i) {
|
|
11229
11229
|
const a = mt(i), e = a.length, t = a[0].length;
|
|
@@ -11232,14 +11232,14 @@ function rm(i) {
|
|
|
11232
11232
|
const r = new Array(t).fill(0), n = new Array(t).fill(0), s = Array.from({ length: t }, () => new Array(t).fill(0));
|
|
11233
11233
|
let o = Number.EPSILON, u = 0, c = 0, l = 0;
|
|
11234
11234
|
for (let C = 0; C < t; C++) {
|
|
11235
|
-
if (r[C] = u, c =
|
|
11235
|
+
if (r[C] = u, c = Vs(a, C, e, C, C), c <= 1e-64 / o)
|
|
11236
11236
|
u = 0;
|
|
11237
11237
|
else {
|
|
11238
11238
|
u = Math.sqrt(c), a[C][C] >= 0 && (u = -u);
|
|
11239
11239
|
const b = a[C][C] * u - c;
|
|
11240
11240
|
a[C][C] -= u;
|
|
11241
11241
|
for (let R = C + 1; R < t; R++) {
|
|
11242
|
-
c =
|
|
11242
|
+
c = Vs(a, C, e, C, R);
|
|
11243
11243
|
for (let p = C; p < e; p++)
|
|
11244
11244
|
a[p][R] += c / b * a[p][C];
|
|
11245
11245
|
}
|
|
@@ -11284,7 +11284,7 @@ function rm(i) {
|
|
|
11284
11284
|
a[C][E] = 0;
|
|
11285
11285
|
if (u !== 0) {
|
|
11286
11286
|
for (let E = C + 1; E < t; E++) {
|
|
11287
|
-
c =
|
|
11287
|
+
c = Vs(a, C + 1, e, C, E);
|
|
11288
11288
|
for (let b = C; b < e; b++)
|
|
11289
11289
|
a[b][E] += c / (a[C][C] * u) * a[b][C];
|
|
11290
11290
|
}
|
|
@@ -11311,7 +11311,7 @@ function rm(i) {
|
|
|
11311
11311
|
if (!b) {
|
|
11312
11312
|
let w = 0, S = 1;
|
|
11313
11313
|
for (let D = R; D < C + 1 && (h = S * r[D], d = n[D], r[D] *= w, !(Math.abs(h) <= o)); D++) {
|
|
11314
|
-
_ =
|
|
11314
|
+
_ = Jr(h, d), n[D] = _, w = d / _, S = -h / _;
|
|
11315
11315
|
for (let L = 0; L < e; L++) {
|
|
11316
11316
|
const U = a[L][R - 1], x = a[L][D];
|
|
11317
11317
|
a[L][R - 1] = U * w + x * S, a[L][D] = -U * S + x * w;
|
|
@@ -11329,16 +11329,16 @@ function rm(i) {
|
|
|
11329
11329
|
if (E >= 49)
|
|
11330
11330
|
return null;
|
|
11331
11331
|
let p = n[R];
|
|
11332
|
-
h = ((n[C - 1] - n[C]) * (n[C - 1] + n[C]) + (r[C - 1] - r[C]) * (r[C - 1] + r[C])) / (2 * r[C] * n[C - 1]), _ =
|
|
11332
|
+
h = ((n[C - 1] - n[C]) * (n[C - 1] + n[C]) + (r[C - 1] - r[C]) * (r[C - 1] + r[C])) / (2 * r[C] * n[C - 1]), _ = Jr(h, 1), h < 0 ? h = ((p - n[C]) * (p + n[C]) + r[C] * (n[C - 1] / (h - _) - r[C])) / p : h = ((p - n[C]) * (p + n[C]) + r[C] * (n[C - 1] / (h + _) - r[C])) / p;
|
|
11333
11333
|
let N = 1, M = 1;
|
|
11334
11334
|
for (let w = R + 1; w < C + 1; w++) {
|
|
11335
11335
|
let S = r[w], D = n[w];
|
|
11336
|
-
d = M * S, S *= N, _ =
|
|
11336
|
+
d = M * S, S *= N, _ = Jr(h, d), r[w - 1] = _, N = h / _, M = d / _, h = p * N + S * M, d = D * M, S = -p * M + S * N, D *= N;
|
|
11337
11337
|
for (let L = 0; L < t; L++) {
|
|
11338
11338
|
const U = s[L][w - 1], x = s[L][w];
|
|
11339
11339
|
s[L][w - 1] = U * N + x * M, s[L][w] = -U * M + x * N;
|
|
11340
11340
|
}
|
|
11341
|
-
_ =
|
|
11341
|
+
_ = Jr(h, d), n[w - 1] = _, N = h / _, M = d / _, h = N * S + M * D, p = -M * S + N * D;
|
|
11342
11342
|
for (let L = 0; L < e; L++) {
|
|
11343
11343
|
const U = a[L][w - 1], x = a[L][w];
|
|
11344
11344
|
a[L][w - 1] = U * N + x * M, a[L][w] = -U * M + x * N;
|
|
@@ -11369,11 +11369,11 @@ function rm(i) {
|
|
|
11369
11369
|
matrixV: s
|
|
11370
11370
|
};
|
|
11371
11371
|
}
|
|
11372
|
-
function
|
|
11372
|
+
function Jr(i, a) {
|
|
11373
11373
|
let e = 0;
|
|
11374
11374
|
return Math.abs(i) > Math.abs(a) ? (e = a / i, Math.abs(i) * Math.sqrt(1 + e * e)) : a !== 0 ? (e = i / a, Math.abs(a) * Math.sqrt(1 + e * e)) : 0;
|
|
11375
11375
|
}
|
|
11376
|
-
function
|
|
11376
|
+
function Vs(i, a, e, t, r) {
|
|
11377
11377
|
let n = 0;
|
|
11378
11378
|
for (let s = a; s < e; s++)
|
|
11379
11379
|
n += i[s][t] * i[s][r];
|
|
@@ -11385,7 +11385,7 @@ function Pi(i, a, e, t, r) {
|
|
|
11385
11385
|
n += i[t][s] * i[r][s];
|
|
11386
11386
|
return n;
|
|
11387
11387
|
}
|
|
11388
|
-
const
|
|
11388
|
+
const en = /* @__PURE__ */ new Map([
|
|
11389
11389
|
["I", 1],
|
|
11390
11390
|
["V", 5],
|
|
11391
11391
|
["X", 10],
|
|
@@ -11427,7 +11427,7 @@ const Jr = /* @__PURE__ */ new Map([
|
|
|
11427
11427
|
[1, 4, 5, 9, 10, 40, 45, 49, 50, 90, 95, 99, 100, 400, 450, 490, 495, 499, 500, 900, 950, 990, 995, 999, 1e3, 4e3]
|
|
11428
11428
|
];
|
|
11429
11429
|
function Fo(i, a, e) {
|
|
11430
|
-
return i <= 0 ? 0 : i >= 1 ? 1 :
|
|
11430
|
+
return i <= 0 ? 0 : i >= 1 ? 1 : ts(i, a, e);
|
|
11431
11431
|
}
|
|
11432
11432
|
function am(i, a, e) {
|
|
11433
11433
|
return i <= 0 || i >= 1 ? 0 : a === 1 && e === 1 ? 1 : a < 512 && e < 512 ? i ** (a - 1) * (1 - i) ** (e - 1) / xa(a, e) : Math.exp((a - 1) * Math.log(i) + (e - 1) * Math.log(1 - i) - ja(a, e));
|
|
@@ -11453,12 +11453,12 @@ function Pa(i, a, e) {
|
|
|
11453
11453
|
for (let c = 0; c < 10; c++) {
|
|
11454
11454
|
if (r === 0 || r === 1)
|
|
11455
11455
|
return r;
|
|
11456
|
-
if (s =
|
|
11456
|
+
if (s = ts(r, a, e) - i, o = Math.exp((a - 1) * Math.log(r) + (e - 1) * Math.log(1 - r) + n), u = s / o, r -= o = u / (1 - 0.5 * Math.min(1, u * ((a - 1) / r - (e - 1) / (1 - r)))), r <= 0 && (r = 0.5 * (r + o)), r >= 1 && (r = 0.5 * (r + o + 1)), Math.abs(o) < t * r && c > 0)
|
|
11457
11457
|
break;
|
|
11458
11458
|
}
|
|
11459
11459
|
return r;
|
|
11460
11460
|
}
|
|
11461
|
-
function
|
|
11461
|
+
function ts(i, a, e) {
|
|
11462
11462
|
const t = i === 0 || i === 1 ? 0 : Math.exp(ft(a + e) - ft(a) - ft(e) + a * Math.log(i) + e * Math.log(1 - i));
|
|
11463
11463
|
return i < (a + 1) / (a + e + 2) ? t * xi(i, a, e) / a : 1 - t * xi(1 - i, e, a) / e;
|
|
11464
11464
|
}
|
|
@@ -11474,7 +11474,7 @@ function xi(i, a, e) {
|
|
|
11474
11474
|
return o;
|
|
11475
11475
|
}
|
|
11476
11476
|
function xa(i, a) {
|
|
11477
|
-
return i + a > 170 ? Math.exp(ja(i, a)) :
|
|
11477
|
+
return i + a > 170 ? Math.exp(ja(i, a)) : mn(i) * mn(a) / mn(i + a);
|
|
11478
11478
|
}
|
|
11479
11479
|
function ja(i, a) {
|
|
11480
11480
|
return ft(i) + ft(a) - ft(i + a);
|
|
@@ -11504,7 +11504,7 @@ function $o(i, a) {
|
|
|
11504
11504
|
return i <= 0 ? 0 : i >= 1 ? 1 / 0 : 2 * Go(i, a / 2);
|
|
11505
11505
|
}
|
|
11506
11506
|
function Ta(i, a, e) {
|
|
11507
|
-
return i < 0 ? 0 :
|
|
11507
|
+
return i < 0 ? 0 : ts(a * i / (a * i + e), a / 2, e / 2);
|
|
11508
11508
|
}
|
|
11509
11509
|
function om(i, a, e) {
|
|
11510
11510
|
if (i < 0)
|
|
@@ -11539,7 +11539,7 @@ function Ho(i, a, e) {
|
|
|
11539
11539
|
const l = u / c;
|
|
11540
11540
|
return s - l * o + l * i;
|
|
11541
11541
|
}
|
|
11542
|
-
function
|
|
11542
|
+
function mn(i) {
|
|
11543
11543
|
const a = [
|
|
11544
11544
|
-1.716185138865495,
|
|
11545
11545
|
24.76565080557592,
|
|
@@ -11672,7 +11672,7 @@ function gm(i, a, e) {
|
|
|
11672
11672
|
return i <= 0 ? 0 : Math.exp(-Math.log(i) - 0.5 * Math.log(2 * Math.PI) - Math.log(e) - (Math.log(i) - a) ** 2 / (2 * e * e));
|
|
11673
11673
|
}
|
|
11674
11674
|
function dm(i, a, e) {
|
|
11675
|
-
return Math.exp(
|
|
11675
|
+
return Math.exp(rs(i, a, e));
|
|
11676
11676
|
}
|
|
11677
11677
|
function Cm(i, a, e) {
|
|
11678
11678
|
if (i < 0)
|
|
@@ -11685,13 +11685,13 @@ function Cm(i, a, e) {
|
|
|
11685
11685
|
function Fa(i, a, e) {
|
|
11686
11686
|
return i < 0 ? 0 : zt(i + a - 1, a - 1) * e ** a * (1 - e) ** i;
|
|
11687
11687
|
}
|
|
11688
|
-
function
|
|
11688
|
+
function Hr(i, a, e) {
|
|
11689
11689
|
return 0.5 * (1 + Zt((i - a) / Math.sqrt(2 * e * e)));
|
|
11690
11690
|
}
|
|
11691
11691
|
function Wo(i, a, e) {
|
|
11692
11692
|
return Math.exp(-0.5 * Math.log(2 * Math.PI) - Math.log(e) - (i - a) ** 2 / (2 * e * e));
|
|
11693
11693
|
}
|
|
11694
|
-
function
|
|
11694
|
+
function rs(i, a, e) {
|
|
11695
11695
|
return -1.4142135623730951 * e * Kh(2 * i) + a;
|
|
11696
11696
|
}
|
|
11697
11697
|
function _m(i, a) {
|
|
@@ -11701,17 +11701,17 @@ function _m(i, a) {
|
|
|
11701
11701
|
return e;
|
|
11702
11702
|
}
|
|
11703
11703
|
function qo(i, a) {
|
|
11704
|
-
return Math.exp(-a) * a ** i /
|
|
11704
|
+
return Math.exp(-a) * a ** i / fr(i);
|
|
11705
11705
|
}
|
|
11706
|
-
function
|
|
11707
|
-
const e = 0.5 *
|
|
11706
|
+
function Gr(i, a) {
|
|
11707
|
+
const e = 0.5 * ts(a / (i ** 2 + a), a / 2, 0.5);
|
|
11708
11708
|
return i < 0 ? e : 1 - e;
|
|
11709
11709
|
}
|
|
11710
11710
|
function Am(i, a) {
|
|
11711
11711
|
const e = (1 + i ** 2 / a) ** (-(a + 1) / 2);
|
|
11712
11712
|
return 1 / (Math.sqrt(a) * xa(0.5, a / 2)) * e;
|
|
11713
11713
|
}
|
|
11714
|
-
function
|
|
11714
|
+
function ns(i, a) {
|
|
11715
11715
|
let e = Pa(2 * Math.min(i, 1 - i), 0.5 * a, 0.5);
|
|
11716
11716
|
return e = Math.sqrt(a * (1 - e) / e), i > 0.5 ? e : -e;
|
|
11717
11717
|
}
|
|
@@ -11749,7 +11749,7 @@ function rt(i, a, e, t, r) {
|
|
|
11749
11749
|
noCalculate: o
|
|
11750
11750
|
};
|
|
11751
11751
|
}
|
|
11752
|
-
function
|
|
11752
|
+
function ss(i, a, e) {
|
|
11753
11753
|
const t = i.isArray() ? i.getRowCount() : 1, r = i.isArray() ? i.getColumnCount() : 1;
|
|
11754
11754
|
let n = t, s = r;
|
|
11755
11755
|
if (a && !a.isNull() && (n = a.isArray() ? a.getRowCount() : 1, s = a.isArray() ? a.getColumnCount() : 1, t === 1 && s !== r || r === 1 && n !== t || t !== 1 && r !== 1 && (n !== t || s !== r)))
|
|
@@ -11783,7 +11783,7 @@ function Ct(i) {
|
|
|
11783
11783
|
}
|
|
11784
11784
|
return t;
|
|
11785
11785
|
}
|
|
11786
|
-
function
|
|
11786
|
+
function as(i, a) {
|
|
11787
11787
|
const e = [];
|
|
11788
11788
|
let t = 1;
|
|
11789
11789
|
for (let r = 0; r < i; r++) {
|
|
@@ -11793,7 +11793,7 @@ function ss(i, a) {
|
|
|
11793
11793
|
}
|
|
11794
11794
|
return e;
|
|
11795
11795
|
}
|
|
11796
|
-
function
|
|
11796
|
+
function is(i, a, e, t) {
|
|
11797
11797
|
let r = a;
|
|
11798
11798
|
t && (r = a.map((o) => Math.log(o)));
|
|
11799
11799
|
let n, s;
|
|
@@ -11855,17 +11855,17 @@ function bm(i, a) {
|
|
|
11855
11855
|
intercept: 0
|
|
11856
11856
|
};
|
|
11857
11857
|
}
|
|
11858
|
-
function
|
|
11858
|
+
function os(i, a, e, t, r) {
|
|
11859
11859
|
const n = i.length === 1 && i[0].length > 1;
|
|
11860
11860
|
let s = i;
|
|
11861
11861
|
r && (s = i.map((C) => C.map((E) => Math.log(E))));
|
|
11862
11862
|
let o = a, u = e;
|
|
11863
11863
|
n && (s = mt(s), o = mt(o), u = mt(u)), t && (o = o.map((C) => [...C, 1]));
|
|
11864
|
-
const c = mt(o), l =
|
|
11864
|
+
const c = mt(o), l = hr(c, o), f = hr(c, s);
|
|
11865
11865
|
let h = Jh(l);
|
|
11866
11866
|
if (!h && (h = tm(l), !h))
|
|
11867
11867
|
return g.create(m.NA);
|
|
11868
|
-
let d =
|
|
11868
|
+
let d = hr(h, f);
|
|
11869
11869
|
t || d.push([0]), d = mt(d);
|
|
11870
11870
|
const _ = d[0].pop();
|
|
11871
11871
|
if (d[0].reverse(), d[0].push(_), r)
|
|
@@ -12130,7 +12130,7 @@ class tu extends V {
|
|
|
12130
12130
|
const [p, N, M] = R, w = +p.getValue(), S = +N.getValue(), D = Math.floor(+M.getValue());
|
|
12131
12131
|
if (w <= 0 || w >= 1 || S <= 0 || D < 1)
|
|
12132
12132
|
return g.create(m.NUM);
|
|
12133
|
-
const L = Math.abs(
|
|
12133
|
+
const L = Math.abs(rs(w / 2, 0, 1) * S / Math.sqrt(D));
|
|
12134
12134
|
return y.create(L);
|
|
12135
12135
|
});
|
|
12136
12136
|
return n === 1 && s === 1 ? l.get(0, 0) : l;
|
|
@@ -12537,7 +12537,7 @@ class fu extends V {
|
|
|
12537
12537
|
if (C <= 0)
|
|
12538
12538
|
return g.create(m.NUM);
|
|
12539
12539
|
let b;
|
|
12540
|
-
return E ? b =
|
|
12540
|
+
return E ? b = Hr(d, _, C) : b = Wo(d, _, C), y.create(b);
|
|
12541
12541
|
}
|
|
12542
12542
|
}
|
|
12543
12543
|
class hu extends V {
|
|
@@ -12568,7 +12568,7 @@ class hu extends V {
|
|
|
12568
12568
|
const [u, c, l] = o, f = +u.getValue(), h = +c.getValue(), d = +l.getValue();
|
|
12569
12569
|
if (f <= 0 || f >= 1 || d <= 0)
|
|
12570
12570
|
return g.create(m.NUM);
|
|
12571
|
-
const _ =
|
|
12571
|
+
const _ = rs(f, h, d);
|
|
12572
12572
|
return y.create(_);
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
@@ -12592,7 +12592,7 @@ class mu extends V {
|
|
|
12592
12592
|
const [s] = n, o = +s.getValue();
|
|
12593
12593
|
if (o <= 0 || o >= 1)
|
|
12594
12594
|
return g.create(m.NUM);
|
|
12595
|
-
const u =
|
|
12595
|
+
const u = rs(o, 0, 1);
|
|
12596
12596
|
return y.create(u);
|
|
12597
12597
|
}
|
|
12598
12598
|
}
|
|
@@ -12817,7 +12817,7 @@ class bu extends V {
|
|
|
12817
12817
|
const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
|
|
12818
12818
|
if (c <= 0 || c > 1 || l < 1 || l > 10 ** 10)
|
|
12819
12819
|
return g.create(m.NUM);
|
|
12820
|
-
const f = Math.abs(
|
|
12820
|
+
const f = Math.abs(ns(c / 2, l));
|
|
12821
12821
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
12822
12822
|
}
|
|
12823
12823
|
}
|
|
@@ -12864,7 +12864,7 @@ class yu extends V {
|
|
|
12864
12864
|
const { isError: s, errorObject: o, x: u, degFreedom: c } = this._getTDistParamByArrayValues(e, t, n);
|
|
12865
12865
|
if (s)
|
|
12866
12866
|
return o;
|
|
12867
|
-
let l =
|
|
12867
|
+
let l = Gr(-u, c);
|
|
12868
12868
|
return r === 2 && (l *= 2), Number.isNaN(l) || !Number.isFinite(l) ? g.create(m.NUM) : y.create(l);
|
|
12869
12869
|
}
|
|
12870
12870
|
_getArrayValues(e) {
|
|
@@ -13117,7 +13117,7 @@ class Nu extends V {
|
|
|
13117
13117
|
}
|
|
13118
13118
|
if (d <= 0)
|
|
13119
13119
|
return g.create(m.NUM);
|
|
13120
|
-
const _ = (f / l - c) / (d / Math.sqrt(l)), C = 1 -
|
|
13120
|
+
const _ = (f / l - c) / (d / Math.sqrt(l)), C = 1 - Hr(_, 0, 1);
|
|
13121
13121
|
return Number.isNaN(C) || !Number.isFinite(C) ? g.create(m.NUM) : y.create(C);
|
|
13122
13122
|
}
|
|
13123
13123
|
_getArrayValues(e) {
|
|
@@ -13299,7 +13299,7 @@ class Nm extends V {
|
|
|
13299
13299
|
const { isError: t, errorObject: r, variants: n } = B(e);
|
|
13300
13300
|
if (t)
|
|
13301
13301
|
return r;
|
|
13302
|
-
const [s] = n, o = +s.getValue(), u =
|
|
13302
|
+
const [s] = n, o = +s.getValue(), u = Hr(o, 0, 1);
|
|
13303
13303
|
return y.create(u);
|
|
13304
13304
|
}
|
|
13305
13305
|
}
|
|
@@ -13390,7 +13390,7 @@ class Mm extends V {
|
|
|
13390
13390
|
const [u, c, l] = o, f = +u.getValue(), h = Math.floor(+c.getValue()), d = Math.floor(+l.getValue());
|
|
13391
13391
|
if (f < 0 || h < 1 || h > 10 ** 10 || d < 1 || d > 2)
|
|
13392
13392
|
return g.create(m.NUM);
|
|
13393
|
-
let _ =
|
|
13393
|
+
let _ = Gr(-f, h);
|
|
13394
13394
|
return d === 2 && (_ *= 2), Number.isNaN(_) || !Number.isFinite(_) ? g.create(m.NUM) : y.create(_);
|
|
13395
13395
|
}
|
|
13396
13396
|
}
|
|
@@ -13937,7 +13937,7 @@ function Re(i) {
|
|
|
13937
13937
|
let r = (t - a.getTime()) / (1e3 * 3600 * 24);
|
|
13938
13938
|
return t > e.getTime() && (r += 1), Math.floor(r) + 1;
|
|
13939
13939
|
}
|
|
13940
|
-
function
|
|
13940
|
+
function Qr(i) {
|
|
13941
13941
|
const a = new Date(Date.UTC(1900, 0, 1, 0, 0, 0)), e = new Date(Date.UTC(1900, 1, 28, 0, 0, 0));
|
|
13942
13942
|
let r = (i.getTime() - a.getTime()) / (1e3 * 3600 * 24);
|
|
13943
13943
|
return i > e && (r += 1), r + 1;
|
|
@@ -13961,13 +13961,13 @@ function Ya(i) {
|
|
|
13961
13961
|
const r = t.getFullYear(), n = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getDate().toString().padStart(2, "0"), o = `${r}-${n}-${s}`;
|
|
13962
13962
|
return i.replace(/\//g, "-").split("-").map((c) => c.padStart(2, "0")).join("-") === o;
|
|
13963
13963
|
}
|
|
13964
|
-
function
|
|
13964
|
+
function xn(i) {
|
|
13965
13965
|
return dt.parseDate(i);
|
|
13966
13966
|
}
|
|
13967
13967
|
function Wm(i) {
|
|
13968
13968
|
return dt.parseValue(i);
|
|
13969
13969
|
}
|
|
13970
|
-
function
|
|
13970
|
+
function jn(i) {
|
|
13971
13971
|
return dt.parseTime(i);
|
|
13972
13972
|
}
|
|
13973
13973
|
function Ha(i) {
|
|
@@ -14003,11 +14003,11 @@ const Ou = {
|
|
|
14003
14003
|
17: [6]
|
|
14004
14004
|
// Saturday only
|
|
14005
14005
|
};
|
|
14006
|
-
function
|
|
14006
|
+
function Br(i) {
|
|
14007
14007
|
return !!(typeof i == "string" && /^[0|1]{7}/.test(i) || Ou[Number(i)]);
|
|
14008
14008
|
}
|
|
14009
14009
|
function Mu(i) {
|
|
14010
|
-
if (!
|
|
14010
|
+
if (!Br(i))
|
|
14011
14011
|
return [];
|
|
14012
14012
|
if (typeof i == "string" && /^[0|1]{7}/.test(i)) {
|
|
14013
14013
|
const a = [];
|
|
@@ -14017,7 +14017,7 @@ function Mu(i) {
|
|
|
14017
14017
|
}
|
|
14018
14018
|
return Ou[Number(i)] || [];
|
|
14019
14019
|
}
|
|
14020
|
-
function
|
|
14020
|
+
function Un(i, a, e = 1, t) {
|
|
14021
14021
|
const r = Mu(e), n = Math.floor(i), s = Math.floor(a), o = s > n ? n : s;
|
|
14022
14022
|
let u = 0;
|
|
14023
14023
|
const c = Math.abs(Math.floor(a) - Math.floor(i)) + 1;
|
|
@@ -14030,7 +14030,7 @@ function jn(i, a, e = 1, t) {
|
|
|
14030
14030
|
}
|
|
14031
14031
|
return s >= n ? u : -u;
|
|
14032
14032
|
}
|
|
14033
|
-
function
|
|
14033
|
+
function vn(i, a, e = 1, t) {
|
|
14034
14034
|
const r = Mu(e), n = Math.floor(i);
|
|
14035
14035
|
let s = n, o = Math.abs(a);
|
|
14036
14036
|
for (let u = 1; u <= o; u++) {
|
|
@@ -14056,15 +14056,15 @@ function k(i) {
|
|
|
14056
14056
|
const a = i.getValue();
|
|
14057
14057
|
if (i.isString()) {
|
|
14058
14058
|
let e;
|
|
14059
|
-
if (
|
|
14060
|
-
e = Pn(`${a}`).v;
|
|
14061
|
-
else if (xn(`${a}`))
|
|
14059
|
+
if (xn(`${a}`))
|
|
14062
14060
|
e = xn(`${a}`).v;
|
|
14061
|
+
else if (jn(`${a}`))
|
|
14062
|
+
e = jn(`${a}`).v;
|
|
14063
14063
|
else if (Q(a))
|
|
14064
14064
|
e = +a;
|
|
14065
14065
|
else
|
|
14066
14066
|
return g.create(m.VALUE);
|
|
14067
|
-
return e instanceof Date && (e =
|
|
14067
|
+
return e instanceof Date && (e = Qr(e)), +e < 0 || +e > 2958465 ? g.create(m.NUM) : +e;
|
|
14068
14068
|
} else {
|
|
14069
14069
|
const e = +i.getValue();
|
|
14070
14070
|
return e < 0 || e > 2958465 ? g.create(m.NUM) : e;
|
|
@@ -14145,10 +14145,10 @@ function zm(i) {
|
|
|
14145
14145
|
return i % 4 === 0 && i % 100 !== 0 || i % 400 === 0 || i === 1900;
|
|
14146
14146
|
}
|
|
14147
14147
|
const Jm = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], eg = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
14148
|
-
function
|
|
14148
|
+
function Wr(i, a) {
|
|
14149
14149
|
return Zm(i) ? Jm[a] : eg[a];
|
|
14150
14150
|
}
|
|
14151
|
-
function
|
|
14151
|
+
function us(i) {
|
|
14152
14152
|
return zm(i) ? 366 : 365;
|
|
14153
14153
|
}
|
|
14154
14154
|
function wu(i, a) {
|
|
@@ -14158,20 +14158,20 @@ function wu(i, a) {
|
|
|
14158
14158
|
case 4:
|
|
14159
14159
|
return 360;
|
|
14160
14160
|
case 1:
|
|
14161
|
-
return
|
|
14161
|
+
return us(re(i).getUTCFullYear());
|
|
14162
14162
|
case 3:
|
|
14163
14163
|
return 365;
|
|
14164
14164
|
default:
|
|
14165
14165
|
return -1;
|
|
14166
14166
|
}
|
|
14167
14167
|
}
|
|
14168
|
-
function
|
|
14169
|
-
return
|
|
14168
|
+
function br(i, a, e) {
|
|
14169
|
+
return Wr(i, a) === e;
|
|
14170
14170
|
}
|
|
14171
|
-
function
|
|
14171
|
+
function yr(i, a) {
|
|
14172
14172
|
let e = i.getUTCFullYear(), t = i.getUTCMonth();
|
|
14173
14173
|
const r = i.getUTCDate();
|
|
14174
|
-
return
|
|
14174
|
+
return br(e, t, r) ? (i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() + a), e = i.getUTCFullYear(), t = i.getUTCMonth(), i.setUTCDate(Wr(e, t))) : i.setUTCMonth(i.getUTCMonth() + a), i;
|
|
14175
14175
|
}
|
|
14176
14176
|
class tg extends V {
|
|
14177
14177
|
constructor() {
|
|
@@ -14249,7 +14249,7 @@ class rg extends V {
|
|
|
14249
14249
|
_ = Math.floor(t) - Math.floor(e);
|
|
14250
14250
|
break;
|
|
14251
14251
|
case "MD":
|
|
14252
|
-
_ = h - u, h < u && (C = new Date(Date.UTC(l, f - 1, 0)), _ +=
|
|
14252
|
+
_ = h - u, h < u && (C = new Date(Date.UTC(l, f - 1, 0)), _ += Wr(C.getUTCFullYear(), C.getUTCMonth()));
|
|
14253
14253
|
break;
|
|
14254
14254
|
case "YM":
|
|
14255
14255
|
_ = f - o, (f < o || f === o && h < u) && (_ += 12), h < u && (_ -= 1);
|
|
@@ -14275,11 +14275,11 @@ class ng extends V {
|
|
|
14275
14275
|
_handleSingleObject(e) {
|
|
14276
14276
|
if (e.isString()) {
|
|
14277
14277
|
const t = `${e.getValue()}`;
|
|
14278
|
-
let r =
|
|
14279
|
-
if (r === null && (r =
|
|
14278
|
+
let r = xn(t);
|
|
14279
|
+
if (r === null && (r = jn(t)), r) {
|
|
14280
14280
|
let { v: n, z: s } = r;
|
|
14281
14281
|
if (s && Ha(s))
|
|
14282
|
-
return n instanceof Date && (n =
|
|
14282
|
+
return n instanceof Date && (n = Qr(n)), y.create(Math.trunc(+n));
|
|
14283
14283
|
}
|
|
14284
14284
|
}
|
|
14285
14285
|
return g.create(m.VALUE);
|
|
@@ -14487,7 +14487,7 @@ class cg extends V {
|
|
|
14487
14487
|
const b = 25569 + l / 864e5;
|
|
14488
14488
|
return y.create(b);
|
|
14489
14489
|
} else {
|
|
14490
|
-
const b =
|
|
14490
|
+
const b = Qr(E);
|
|
14491
14491
|
return y.create(b, "yyyy-MM-dd AM/PM hh:mm:ss");
|
|
14492
14492
|
}
|
|
14493
14493
|
}
|
|
@@ -14656,7 +14656,7 @@ class gg extends V {
|
|
|
14656
14656
|
return u;
|
|
14657
14657
|
if (r)
|
|
14658
14658
|
return this._getResultByHolidays(o, u, r);
|
|
14659
|
-
const c =
|
|
14659
|
+
const c = Un(o, u);
|
|
14660
14660
|
return y.create(c);
|
|
14661
14661
|
}
|
|
14662
14662
|
_getResultByHolidays(e, t, r) {
|
|
@@ -14681,7 +14681,7 @@ class gg extends V {
|
|
|
14681
14681
|
return o;
|
|
14682
14682
|
n.push(o);
|
|
14683
14683
|
}
|
|
14684
|
-
const s =
|
|
14684
|
+
const s = Un(e, t, 1, n);
|
|
14685
14685
|
return y.create(s);
|
|
14686
14686
|
}
|
|
14687
14687
|
}
|
|
@@ -14714,9 +14714,9 @@ class dg extends V {
|
|
|
14714
14714
|
return o;
|
|
14715
14715
|
let u = 1;
|
|
14716
14716
|
if (r) {
|
|
14717
|
-
if (u = r.getValue(), r.isBoolean() && (u = +u), r.isString() && !
|
|
14717
|
+
if (u = r.getValue(), r.isBoolean() && (u = +u), r.isString() && !Br(u))
|
|
14718
14718
|
return g.create(m.VALUE);
|
|
14719
|
-
if (!
|
|
14719
|
+
if (!Br(u))
|
|
14720
14720
|
return g.create(m.NUM);
|
|
14721
14721
|
}
|
|
14722
14722
|
if (s.isBoolean() || o.isBoolean())
|
|
@@ -14729,7 +14729,7 @@ class dg extends V {
|
|
|
14729
14729
|
return l;
|
|
14730
14730
|
if (n)
|
|
14731
14731
|
return this._getResultByHolidays(c, l, u, n);
|
|
14732
|
-
const f =
|
|
14732
|
+
const f = Un(c, l, u);
|
|
14733
14733
|
return y.create(f);
|
|
14734
14734
|
}
|
|
14735
14735
|
_getResultByHolidays(e, t, r, n) {
|
|
@@ -14754,7 +14754,7 @@ class dg extends V {
|
|
|
14754
14754
|
return u;
|
|
14755
14755
|
s.push(u);
|
|
14756
14756
|
}
|
|
14757
|
-
const o =
|
|
14757
|
+
const o = Un(e, t, r, s);
|
|
14758
14758
|
return y.create(o);
|
|
14759
14759
|
}
|
|
14760
14760
|
}
|
|
@@ -14765,7 +14765,7 @@ class Cg extends V {
|
|
|
14765
14765
|
A(this, "maxParams", 0);
|
|
14766
14766
|
}
|
|
14767
14767
|
calculate() {
|
|
14768
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds())), r =
|
|
14768
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds())), r = Qr(t);
|
|
14769
14769
|
return y.create(r, Gm);
|
|
14770
14770
|
}
|
|
14771
14771
|
}
|
|
@@ -14843,7 +14843,7 @@ class Eg extends V {
|
|
|
14843
14843
|
if (r) {
|
|
14844
14844
|
let { v: n, z: s } = r;
|
|
14845
14845
|
if (s && Ha(s))
|
|
14846
|
-
return n instanceof Date && (n =
|
|
14846
|
+
return n instanceof Date && (n = Qr(n)), y.create(xf(+n));
|
|
14847
14847
|
}
|
|
14848
14848
|
}
|
|
14849
14849
|
return g.create(m.VALUE);
|
|
@@ -15041,7 +15041,7 @@ class Vg extends V {
|
|
|
15041
15041
|
return g.create(m.VALUE);
|
|
15042
15042
|
if (r)
|
|
15043
15043
|
return this._getResultByHolidays(o, u, r);
|
|
15044
|
-
const c =
|
|
15044
|
+
const c = vn(o, u);
|
|
15045
15045
|
return typeof c != "number" ? c : y.create(c);
|
|
15046
15046
|
}
|
|
15047
15047
|
_getResultByHolidays(e, t, r) {
|
|
@@ -15066,7 +15066,7 @@ class Vg extends V {
|
|
|
15066
15066
|
return o;
|
|
15067
15067
|
n.push(o);
|
|
15068
15068
|
}
|
|
15069
|
-
const s =
|
|
15069
|
+
const s = vn(e, t, 1, n);
|
|
15070
15070
|
return typeof s != "number" ? s : y.create(s);
|
|
15071
15071
|
}
|
|
15072
15072
|
}
|
|
@@ -15095,13 +15095,13 @@ class Ng extends V {
|
|
|
15095
15095
|
if (Number.isNaN(l))
|
|
15096
15096
|
return g.create(m.VALUE);
|
|
15097
15097
|
let f = s.getValue();
|
|
15098
|
-
if (s.isBoolean() && (f = +f), s.isString() && (!
|
|
15098
|
+
if (s.isBoolean() && (f = +f), s.isString() && (!Br(f) || f === "1111111"))
|
|
15099
15099
|
return g.create(m.VALUE);
|
|
15100
|
-
if (!
|
|
15100
|
+
if (!Br(f))
|
|
15101
15101
|
return g.create(m.NUM);
|
|
15102
15102
|
if (n)
|
|
15103
15103
|
return this._getResultByHolidays(c, l, f, n);
|
|
15104
|
-
const h =
|
|
15104
|
+
const h = vn(c, l, f);
|
|
15105
15105
|
return typeof h != "number" ? h : y.create(h);
|
|
15106
15106
|
}
|
|
15107
15107
|
_checkArrayError(e) {
|
|
@@ -15136,7 +15136,7 @@ class Ng extends V {
|
|
|
15136
15136
|
return u;
|
|
15137
15137
|
s.push(u);
|
|
15138
15138
|
}
|
|
15139
|
-
const o =
|
|
15139
|
+
const o = vn(e, t, r, s);
|
|
15140
15140
|
return typeof o != "number" ? o : y.create(o);
|
|
15141
15141
|
}
|
|
15142
15142
|
}
|
|
@@ -15249,7 +15249,7 @@ class Sg extends V {
|
|
|
15249
15249
|
return g.create(m.VALUE);
|
|
15250
15250
|
if (l < 0)
|
|
15251
15251
|
return g.create(m.NUM);
|
|
15252
|
-
const f =
|
|
15252
|
+
const f = Er.besseli(c, l);
|
|
15253
15253
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
15254
15254
|
}
|
|
15255
15255
|
}
|
|
@@ -15270,7 +15270,7 @@ class Dg extends V {
|
|
|
15270
15270
|
return g.create(m.VALUE);
|
|
15271
15271
|
if (l < 0)
|
|
15272
15272
|
return g.create(m.NUM);
|
|
15273
|
-
const f =
|
|
15273
|
+
const f = Er.besselj(c, l);
|
|
15274
15274
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
15275
15275
|
}
|
|
15276
15276
|
}
|
|
@@ -15291,7 +15291,7 @@ class Lg extends V {
|
|
|
15291
15291
|
return g.create(m.VALUE);
|
|
15292
15292
|
if (l < 0)
|
|
15293
15293
|
return g.create(m.NUM);
|
|
15294
|
-
const f =
|
|
15294
|
+
const f = Er.besselk(c, l);
|
|
15295
15295
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
15296
15296
|
}
|
|
15297
15297
|
}
|
|
@@ -15312,7 +15312,7 @@ class Pg extends V {
|
|
|
15312
15312
|
return g.create(m.VALUE);
|
|
15313
15313
|
if (l < 0)
|
|
15314
15314
|
return g.create(m.NUM);
|
|
15315
|
-
const f =
|
|
15315
|
+
const f = Er.bessely(c, l);
|
|
15316
15316
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
15317
15317
|
}
|
|
15318
15318
|
}
|
|
@@ -17265,7 +17265,7 @@ const P1 = [
|
|
|
17265
17265
|
[L1, Z.OCT2HEX]
|
|
17266
17266
|
];
|
|
17267
17267
|
var ee = /* @__PURE__ */ ((i) => (i.ACCRINT = "ACCRINT", i.ACCRINTM = "ACCRINTM", i.AMORDEGRC = "AMORDEGRC", i.AMORLINC = "AMORLINC", i.COUPDAYBS = "COUPDAYBS", i.COUPDAYS = "COUPDAYS", i.COUPDAYSNC = "COUPDAYSNC", i.COUPNCD = "COUPNCD", i.COUPNUM = "COUPNUM", i.COUPPCD = "COUPPCD", i.CUMIPMT = "CUMIPMT", i.CUMPRINC = "CUMPRINC", i.DB = "DB", i.DDB = "DDB", i.DISC = "DISC", i.DOLLARDE = "DOLLARDE", i.DOLLARFR = "DOLLARFR", i.DURATION = "DURATION", i.EFFECT = "EFFECT", i.FV = "FV", i.FVSCHEDULE = "FVSCHEDULE", i.INTRATE = "INTRATE", i.IPMT = "IPMT", i.IRR = "IRR", i.ISPMT = "ISPMT", i.MDURATION = "MDURATION", i.MIRR = "MIRR", i.NOMINAL = "NOMINAL", i.NPER = "NPER", i.NPV = "NPV", i.ODDFPRICE = "ODDFPRICE", i.ODDFYIELD = "ODDFYIELD", i.ODDLPRICE = "ODDLPRICE", i.ODDLYIELD = "ODDLYIELD", i.PDURATION = "PDURATION", i.PMT = "PMT", i.PPMT = "PPMT", i.PRICE = "PRICE", i.PRICEDISC = "PRICEDISC", i.PRICEMAT = "PRICEMAT", i.PV = "PV", i.RATE = "RATE", i.RECEIVED = "RECEIVED", i.RRI = "RRI", i.SLN = "SLN", i.SYD = "SYD", i.TBILLEQ = "TBILLEQ", i.TBILLPRICE = "TBILLPRICE", i.TBILLYIELD = "TBILLYIELD", i.VDB = "VDB", i.XIRR = "XIRR", i.XNPV = "XNPV", i.YIELD = "YIELD", i.YIELDDISC = "YIELDDISC", i.YIELDMAT = "YIELDMAT", i))(ee || {});
|
|
17268
|
-
function
|
|
17268
|
+
function cs(i, a, e, t) {
|
|
17269
17269
|
const r = Ft(i, a, e), { days: n } = _e(r, i, t);
|
|
17270
17270
|
return n;
|
|
17271
17271
|
}
|
|
@@ -17274,7 +17274,7 @@ function Xe(i, a, e, t) {
|
|
|
17274
17274
|
if (t === 1) {
|
|
17275
17275
|
const n = Ft(i, a, e);
|
|
17276
17276
|
let s = re(n);
|
|
17277
|
-
s =
|
|
17277
|
+
s = yr(s, 12 / e);
|
|
17278
17278
|
const o = Re(s);
|
|
17279
17279
|
n < 0 && e === 1 ? r = 365 : r = o - n;
|
|
17280
17280
|
} else t === 3 ? r = 365 / e : r = 360 / e;
|
|
@@ -17284,26 +17284,26 @@ function Su(i, a, e) {
|
|
|
17284
17284
|
const t = re(i);
|
|
17285
17285
|
let r = re(a);
|
|
17286
17286
|
for (r.setUTCFullYear(t.getUTCFullYear()), r < t && r.setUTCFullYear(r.getUTCFullYear() + 1); r > t; )
|
|
17287
|
-
r =
|
|
17288
|
-
return r =
|
|
17287
|
+
r = yr(r, -12 / e);
|
|
17288
|
+
return r = yr(r, 12 / e), Re(r);
|
|
17289
17289
|
}
|
|
17290
17290
|
function rr(i, a, e) {
|
|
17291
17291
|
let t = 0;
|
|
17292
17292
|
const r = re(i);
|
|
17293
17293
|
let n = re(a);
|
|
17294
17294
|
for (; n > r; )
|
|
17295
|
-
n =
|
|
17295
|
+
n = yr(n, -12 / e), t++;
|
|
17296
17296
|
return t;
|
|
17297
17297
|
}
|
|
17298
17298
|
function Ft(i, a, e) {
|
|
17299
17299
|
const t = re(i);
|
|
17300
17300
|
let r = re(a);
|
|
17301
17301
|
for (r.setUTCFullYear(t.getUTCFullYear()), r < t && r.setUTCFullYear(r.getUTCFullYear() + 1); r > t; )
|
|
17302
|
-
r =
|
|
17302
|
+
r = yr(r, -12 / e);
|
|
17303
17303
|
return Re(r);
|
|
17304
17304
|
}
|
|
17305
17305
|
function Du(i, a, e, t, r, n) {
|
|
17306
|
-
const s =
|
|
17306
|
+
const s = cs(i, a, r, n), o = Xe(i, a, r, n), u = rr(i, a, r), c = (o - s) / o - 1, l = t / r + 1, f = e * 100 / r;
|
|
17307
17307
|
let h = 0, d = 0;
|
|
17308
17308
|
for (let E = 1; E <= u; E++) {
|
|
17309
17309
|
const b = E + c, R = f / l ** b;
|
|
@@ -17312,7 +17312,7 @@ function Du(i, a, e, t, r, n) {
|
|
|
17312
17312
|
const _ = u + c, C = 100 / l ** _;
|
|
17313
17313
|
return h += _ * C, d += C, h / d / r;
|
|
17314
17314
|
}
|
|
17315
|
-
function
|
|
17315
|
+
function qr(i, a, e, t, r) {
|
|
17316
17316
|
let n;
|
|
17317
17317
|
if (i === 0)
|
|
17318
17318
|
n = (e + t) / a;
|
|
@@ -17335,7 +17335,7 @@ function nr(i, a, e, t, r) {
|
|
|
17335
17335
|
return -n;
|
|
17336
17336
|
}
|
|
17337
17337
|
function Lu(i, a, e, t, r, n) {
|
|
17338
|
-
const s =
|
|
17338
|
+
const s = qr(i, e, t, r, n);
|
|
17339
17339
|
return (a === 1 ? n === 1 ? 0 : -t : n === 1 ? nr(i, a - 2, s, t, 1) - s : nr(i, a - 1, s, t, 0)) * i;
|
|
17340
17340
|
}
|
|
17341
17341
|
function Pu(i, a) {
|
|
@@ -17410,22 +17410,22 @@ function Kt(i, a, e) {
|
|
|
17410
17410
|
return i < a ? t : 0;
|
|
17411
17411
|
}
|
|
17412
17412
|
function ju(i, a, e) {
|
|
17413
|
-
const t = re(i), r = t.getUTCFullYear(), n = t.getUTCMonth(), s = t.getUTCDate(), o =
|
|
17413
|
+
const t = re(i), r = t.getUTCFullYear(), n = t.getUTCMonth(), s = t.getUTCDate(), o = br(r, n, s), u = re(a), c = u.getUTCFullYear(), l = u.getUTCMonth(), f = u.getUTCDate(), h = br(c, l, f);
|
|
17414
17414
|
return !(s !== f && !(o && h) || Math.abs((c - r) * 12 + (l - n)) % (12 / e) !== 0);
|
|
17415
17415
|
}
|
|
17416
|
-
function
|
|
17416
|
+
function wr(i, a, e) {
|
|
17417
17417
|
return Ft(i, a, e) >= 0;
|
|
17418
17418
|
}
|
|
17419
17419
|
function Jt(i, a, e) {
|
|
17420
17420
|
let t = re(i);
|
|
17421
|
-
if (t =
|
|
17422
|
-
const r = t.getUTCFullYear(), n = t.getUTCMonth(), s =
|
|
17421
|
+
if (t = yr(t, a), e) {
|
|
17422
|
+
const r = t.getUTCFullYear(), n = t.getUTCMonth(), s = Wr(r, n);
|
|
17423
17423
|
t.setUTCDate(s);
|
|
17424
17424
|
}
|
|
17425
17425
|
return Re(t);
|
|
17426
17426
|
}
|
|
17427
17427
|
function U1(i, a, e, t) {
|
|
17428
|
-
const r = re(i), n = re(a), s = r.getUTCFullYear(), o = r.getUTCMonth(), u = r.getUTCDate(), c = n.getUTCFullYear(), l = n.getUTCMonth(), f = n.getUTCDate(), h =
|
|
17428
|
+
const r = re(i), n = re(a), s = r.getUTCFullYear(), o = r.getUTCMonth(), u = r.getUTCDate(), c = n.getUTCFullYear(), l = n.getUTCMonth(), f = n.getUTCDate(), h = br(s, o, u), d = !h && o !== 1 && u > 28 && u < Wr(s, o) ? br(c, l, f) : h, _ = Jt(a, 0, d);
|
|
17429
17429
|
let C = 1 + +(a < _), E = Jt(_, e, d);
|
|
17430
17430
|
for (; !(e > 0 ? E >= a : E <= a); )
|
|
17431
17431
|
E = Jt(E, e, d), C++;
|
|
@@ -17467,8 +17467,8 @@ function v1(i, a) {
|
|
|
17467
17467
|
while (Math.abs(_) > 1e-7 && f < 60);
|
|
17468
17468
|
return C;
|
|
17469
17469
|
}
|
|
17470
|
-
function
|
|
17471
|
-
const o = rr(i, a, n), u = Xe(i, a, n, s), c =
|
|
17470
|
+
function gn(i, a, e, t, r, n, s) {
|
|
17471
|
+
const o = rr(i, a, n), u = Xe(i, a, n, s), c = cs(i, a, n, s);
|
|
17472
17472
|
if (o === 1) {
|
|
17473
17473
|
const h = u - c, d = 100 * e / n + r, _ = t / n * h / u + 1, C = 100 * e / n * c / u;
|
|
17474
17474
|
return d / _ - C;
|
|
@@ -17513,7 +17513,7 @@ class T1 extends V {
|
|
|
17513
17513
|
if (l <= 0)
|
|
17514
17514
|
return y.create(0);
|
|
17515
17515
|
l = Ft(r, t, o);
|
|
17516
|
-
const f = 12 / o, h = re(t), d = h.getUTCFullYear(), _ = h.getUTCMonth(), C = h.getUTCDate(), E =
|
|
17516
|
+
const f = 12 / o, h = re(t), d = h.getUTCFullYear(), _ = h.getUTCMonth(), C = h.getUTCDate(), E = br(d, _, C);
|
|
17517
17517
|
let b = Jt(t, -f, E);
|
|
17518
17518
|
if (r > t && c)
|
|
17519
17519
|
for (b = t; b < r; )
|
|
@@ -17619,7 +17619,7 @@ class F1 extends V {
|
|
|
17619
17619
|
return g.create(m.VALUE);
|
|
17620
17620
|
if (![1, 2, 4].includes(E) || b < 0 || b > 4 || Math.floor(_) >= Math.floor(C))
|
|
17621
17621
|
return g.create(m.NUM);
|
|
17622
|
-
const R =
|
|
17622
|
+
const R = cs(_, C, E, b);
|
|
17623
17623
|
return y.create(R);
|
|
17624
17624
|
}
|
|
17625
17625
|
}
|
|
@@ -17766,7 +17766,7 @@ class Q1 extends V {
|
|
|
17766
17766
|
return Number.isNaN(b) || Number.isNaN(R) || Number.isNaN(p) || Number.isNaN(N) || Number.isNaN(M) || Number.isNaN(w) ? g.create(m.VALUE) : b <= 0 || R <= 0 || p <= 0 || N < 1 || M < 1 || N > M || N > R || M > R || ![0, 1].includes(w) ? g.create(m.NUM) : Math.trunc(N) !== N && Math.trunc(M) !== M && Math.trunc(N) === Math.trunc(M) ? y.create(0) : this._getResult(b, R, p, N, M, w);
|
|
17767
17767
|
}
|
|
17768
17768
|
_getResult(e, t, r, n, s, o) {
|
|
17769
|
-
const u =
|
|
17769
|
+
const u = qr(e, t, r, 0, o);
|
|
17770
17770
|
let c = 0, l = Math.ceil(n);
|
|
17771
17771
|
l === 1 && (o === 0 && (c = -r), l++);
|
|
17772
17772
|
let f = !1;
|
|
@@ -17795,7 +17795,7 @@ class W1 extends V {
|
|
|
17795
17795
|
return Number.isNaN(b) || Number.isNaN(R) || Number.isNaN(p) || Number.isNaN(N) || Number.isNaN(M) || Number.isNaN(w) ? g.create(m.VALUE) : b <= 0 || R <= 0 || p <= 0 || N < 1 || M < 1 || N > M || ![0, 1].includes(w) ? g.create(m.NUM) : Math.trunc(N) !== N && Math.trunc(M) !== M && Math.trunc(N) === Math.trunc(M) ? y.create(0) : this._getResult(b, R, p, N, M, w);
|
|
17796
17796
|
}
|
|
17797
17797
|
_getResult(e, t, r, n, s, o) {
|
|
17798
|
-
const u =
|
|
17798
|
+
const u = qr(e, t, r, 0, o);
|
|
17799
17799
|
let c = 0, l = Math.ceil(n);
|
|
17800
17800
|
l === 1 && (c = o === 0 ? u + r * e : u, l++);
|
|
17801
17801
|
for (let f = l; f <= s; f++)
|
|
@@ -18489,7 +18489,7 @@ class h0 extends V {
|
|
|
18489
18489
|
return y.create(ge);
|
|
18490
18490
|
}
|
|
18491
18491
|
_validDate(e, t, r, n, s) {
|
|
18492
|
-
return this._getDateCorrectOrder(e, t, r, n) && ju(e, t, s) &&
|
|
18492
|
+
return this._getDateCorrectOrder(e, t, r, n) && ju(e, t, s) && wr(n, e, s);
|
|
18493
18493
|
}
|
|
18494
18494
|
_getDateCorrectOrder(e, t, r, n) {
|
|
18495
18495
|
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && Math.floor(r) > Math.floor(n);
|
|
@@ -18523,7 +18523,7 @@ class m0 extends V {
|
|
|
18523
18523
|
return Number.isNaN(F) || Number.isNaN(W) || Number.isNaN(ne) || Number.isNaN(z) || Number.isNaN(G) ? g.create(m.VALUE) : F < 0 || W <= 0 || ne <= 0 || ![1, 2, 4].includes(z) || G < 0 || G > 4 || !this._validDate(L, x, D, U, z) ? g.create(m.NUM) : this._getResult(D, L, U, x, F, W, ne, z, G);
|
|
18524
18524
|
}
|
|
18525
18525
|
_validDate(e, t, r, n, s) {
|
|
18526
|
-
return this._getDateCorrectOrder(e, t, r, n) && ju(e, t, s) &&
|
|
18526
|
+
return this._getDateCorrectOrder(e, t, r, n) && ju(e, t, s) && wr(n, e, s);
|
|
18527
18527
|
}
|
|
18528
18528
|
_getDateCorrectOrder(e, t, r, n) {
|
|
18529
18529
|
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && Math.floor(r) > Math.floor(n);
|
|
@@ -18567,7 +18567,7 @@ class g0 extends V {
|
|
|
18567
18567
|
return y.create(ne);
|
|
18568
18568
|
}
|
|
18569
18569
|
_validDate(e, t, r, n) {
|
|
18570
|
-
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) &&
|
|
18570
|
+
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && wr(r, e, n);
|
|
18571
18571
|
}
|
|
18572
18572
|
_getResult(e, t, r, n, s, o, u, c) {
|
|
18573
18573
|
const l = this._getCoupDate(t, r, u), f = this._getFrac(r, e, l, u, c), h = this._getFrac(r, t, l, u, c), d = this._getFrac(e, t, l, u, c);
|
|
@@ -18630,7 +18630,7 @@ class d0 extends V {
|
|
|
18630
18630
|
return y.create(ne);
|
|
18631
18631
|
}
|
|
18632
18632
|
_validDate(e, t, r, n) {
|
|
18633
|
-
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) &&
|
|
18633
|
+
return Math.floor(e) > Math.floor(t) && Math.floor(t) > Math.floor(r) && wr(r, e, n);
|
|
18634
18634
|
}
|
|
18635
18635
|
_getResult(e, t, r, n, s, o, u, c) {
|
|
18636
18636
|
const l = this._getCoupDate(t, r, u), f = this._getFrac(r, e, l, u, c), h = this._getFrac(r, t, l, u, c), d = this._getFrac(e, t, l, u, c);
|
|
@@ -18718,7 +18718,7 @@ class _0 extends V {
|
|
|
18718
18718
|
const [x, F, W, ne, z] = U, G = +x.getValue(), ge = +F.getValue(), de = +W.getValue(), Ee = +ne.getValue(), pe = +z.getValue();
|
|
18719
18719
|
if (G <= -1)
|
|
18720
18720
|
return g.create(m.NUM);
|
|
18721
|
-
const me =
|
|
18721
|
+
const me = qr(G, ge, de, Ee, pe ? 1 : 0);
|
|
18722
18722
|
return Number.isNaN(me) || !Number.isFinite(me) ? g.create(m.NUM) : R === 0 && p === 0 ? y.create(me, ze(this.getLocale())) : y.create(me);
|
|
18723
18723
|
});
|
|
18724
18724
|
return c === 1 && l === 1 ? E.get(0, 0) : E;
|
|
@@ -18753,7 +18753,7 @@ class A0 extends V {
|
|
|
18753
18753
|
const [ne, z, G, ge, de, Ee] = W, pe = +ne.getValue(), me = +z.getValue(), ke = +G.getValue(), Mt = +ge.getValue(), ar = +de.getValue(), wt = +Ee.getValue();
|
|
18754
18754
|
if (me < 1 || Math.floor(me) > Math.ceil(ke) || me - ke >= 1)
|
|
18755
18755
|
return g.create(m.NUM);
|
|
18756
|
-
const ot =
|
|
18756
|
+
const ot = qr(pe, ke, Mt, ar, wt ? 1 : 0) - Lu(pe, me, ke, Mt, ar, wt ? 1 : 0);
|
|
18757
18757
|
return Number.isNaN(ot) || !Number.isFinite(ot) ? g.create(m.NUM) : N === 0 && M === 0 ? y.create(ot, ze(this.getLocale())) : y.create(ot);
|
|
18758
18758
|
});
|
|
18759
18759
|
return l === 1 && f === 1 ? R.get(0, 0) : R;
|
|
@@ -18780,9 +18780,9 @@ class E0 extends V {
|
|
|
18780
18780
|
const w = +C.getValue(), S = +E.getValue(), D = +b.getValue(), L = Math.floor(+R.getValue()), U = Math.floor(+p.getValue());
|
|
18781
18781
|
if (Number.isNaN(w) || Number.isNaN(S) || Number.isNaN(D) || Number.isNaN(L) || Number.isNaN(U))
|
|
18782
18782
|
return g.create(m.VALUE);
|
|
18783
|
-
if (w < 0 || S < 0 || D <= 0 || ![1, 2, 4].includes(L) || U < 0 || U > 4 || N >= M || !
|
|
18783
|
+
if (w < 0 || S < 0 || D <= 0 || ![1, 2, 4].includes(L) || U < 0 || U > 4 || N >= M || !wr(N, M, L))
|
|
18784
18784
|
return g.create(m.NUM);
|
|
18785
|
-
const x =
|
|
18785
|
+
const x = gn(N, M, w, S, D, L, U);
|
|
18786
18786
|
return y.create(x);
|
|
18787
18787
|
}
|
|
18788
18788
|
}
|
|
@@ -19081,7 +19081,7 @@ class w0 extends V {
|
|
|
19081
19081
|
return g.create(m.VALUE);
|
|
19082
19082
|
if (d <= 0 || f >= h)
|
|
19083
19083
|
return g.create(m.NUM);
|
|
19084
|
-
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b =
|
|
19084
|
+
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b = us(E);
|
|
19085
19085
|
if (_ > b)
|
|
19086
19086
|
return g.create(m.NUM);
|
|
19087
19087
|
let R = 365 * d / (360 - d * _);
|
|
@@ -19115,7 +19115,7 @@ class S0 extends V {
|
|
|
19115
19115
|
return g.create(m.VALUE);
|
|
19116
19116
|
if (d <= 0 || f >= h)
|
|
19117
19117
|
return g.create(m.NUM);
|
|
19118
|
-
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b =
|
|
19118
|
+
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b = us(E);
|
|
19119
19119
|
if (_ > b)
|
|
19120
19120
|
return g.create(m.NUM);
|
|
19121
19121
|
const R = 100 * (1 - d * _ / 360);
|
|
@@ -19143,7 +19143,7 @@ class D0 extends V {
|
|
|
19143
19143
|
return g.create(m.VALUE);
|
|
19144
19144
|
if (d <= 0 || f >= h)
|
|
19145
19145
|
return g.create(m.NUM);
|
|
19146
|
-
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b =
|
|
19146
|
+
const _ = Math.floor(h) - Math.floor(f), E = re(f).getUTCFullYear(), b = us(E);
|
|
19147
19147
|
if (_ > b)
|
|
19148
19148
|
return g.create(m.NUM);
|
|
19149
19149
|
const R = (100 - d) / d * 360 / _;
|
|
@@ -19533,19 +19533,19 @@ class j0 extends V {
|
|
|
19533
19533
|
const w = +C.getValue(), S = +E.getValue(), D = +b.getValue(), L = Math.floor(+R.getValue()), U = Math.floor(+p.getValue());
|
|
19534
19534
|
if (Number.isNaN(w) || Number.isNaN(S) || Number.isNaN(D) || Number.isNaN(L) || Number.isNaN(U))
|
|
19535
19535
|
return g.create(m.VALUE);
|
|
19536
|
-
if (w < 0 || S <= 0 || D <= 0 || ![1, 2, 4].includes(L) || U < 0 || U > 4 || N >= M || !
|
|
19536
|
+
if (w < 0 || S <= 0 || D <= 0 || ![1, 2, 4].includes(L) || U < 0 || U > 4 || N >= M || !wr(N, M, L))
|
|
19537
19537
|
return g.create(m.NUM);
|
|
19538
19538
|
const x = this._getResult(N, M, w, S, D, L, U);
|
|
19539
19539
|
return y.create(x);
|
|
19540
19540
|
}
|
|
19541
19541
|
_getResult(e, t, r, n, s, o, u) {
|
|
19542
19542
|
if (rr(e, t, o) > 1) {
|
|
19543
|
-
let E = r || 0.01, b =
|
|
19543
|
+
let E = r || 0.01, b = gn(e, t, r, E, s, o, u), R = b - n;
|
|
19544
19544
|
for (let p = 0; p < 100 && Math.abs(R) > 1e-7; p++)
|
|
19545
|
-
b =
|
|
19545
|
+
b = gn(e, t, r, 1.01 * E, s, o, u), E += -R / (b - n - R) * E * 0.01, R = gn(e, t, r, E, s, o, u) - n;
|
|
19546
19546
|
return E;
|
|
19547
19547
|
}
|
|
19548
|
-
const l =
|
|
19548
|
+
const l = cs(e, t, o, u), f = Xe(e, t, o, u), { days: h } = _e(e, t, u), d = n / 100 + l / f * r / o;
|
|
19549
19549
|
return (s / 100 + r / o - d) / d * o * f / h;
|
|
19550
19550
|
}
|
|
19551
19551
|
}
|
|
@@ -19770,7 +19770,7 @@ class F0 extends V {
|
|
|
19770
19770
|
A(this, "maxParams", 5);
|
|
19771
19771
|
}
|
|
19772
19772
|
calculate(e, t, r, n, s) {
|
|
19773
|
-
const o = n != null ? n : T.create(!0), u = s != null ? s : T.create(!0), { isError: c, errorObject: l, variants: f } =
|
|
19773
|
+
const o = n != null ? n : T.create(!0), u = s != null ? s : T.create(!0), { isError: c, errorObject: l, variants: f } = Yr(e, t, r, o, u);
|
|
19774
19774
|
if (c)
|
|
19775
19775
|
return l;
|
|
19776
19776
|
const [h, d, _, C, E] = f;
|
|
@@ -19806,7 +19806,7 @@ class $0 extends V {
|
|
|
19806
19806
|
return g.create(m.VALUE);
|
|
19807
19807
|
t = t.get(0, 0);
|
|
19808
19808
|
}
|
|
19809
|
-
return t.isError() ? t : t.isNumber() && t.getPattern() !== "" ? T.create(Ha(t.getPattern())) : t.isString() && (
|
|
19809
|
+
return t.isError() ? t : t.isNumber() && t.getPattern() !== "" ? T.create(Ha(t.getPattern())) : t.isString() && (xn(`${t.getValue()}`) || jn(`${t.getValue()}`)) ? T.create(!0) : T.create(!1);
|
|
19810
19810
|
}
|
|
19811
19811
|
}
|
|
19812
19812
|
class Y0 extends V {
|
|
@@ -21534,19 +21534,19 @@ class Hd extends V {
|
|
|
21534
21534
|
return g.create(m.REF);
|
|
21535
21535
|
const n = this._convertToDefinedName(r);
|
|
21536
21536
|
if (t === 0) {
|
|
21537
|
-
const f = Hh(n), { range: h, sheetName: d, unitId: _ } = f, C = new
|
|
21537
|
+
const f = Hh(n), { range: h, sheetName: d, unitId: _ } = f, C = new pn(h);
|
|
21538
21538
|
return C.setForcedUnitIdDirect(_), C.setForcedSheetName(d), this._setDefault(C);
|
|
21539
21539
|
}
|
|
21540
|
-
if (
|
|
21540
|
+
if (Ir(n))
|
|
21541
21541
|
return this._setDefault(new ba(n));
|
|
21542
21542
|
if (zi(n))
|
|
21543
21543
|
return this._setDefault(new Ra(n));
|
|
21544
21544
|
if (Ji(n))
|
|
21545
21545
|
return this._setDefault(new ya(n));
|
|
21546
|
-
const s =
|
|
21546
|
+
const s = gr(n), { range: o, sheetName: u, unitId: c } = s;
|
|
21547
21547
|
if (Number.isNaN(o.startRow) || o.endRow + 1 > 1048576 || Number.isNaN(o.startColumn) || o.endColumn + 1 > 16384)
|
|
21548
21548
|
return g.create(m.REF);
|
|
21549
|
-
const l = new
|
|
21549
|
+
const l = new pn(o);
|
|
21550
21550
|
return l.setForcedUnitIdDirect(c), l.setForcedSheetName(u), this._setDefault(l);
|
|
21551
21551
|
}
|
|
21552
21552
|
_setDefault(e) {
|
|
@@ -21852,7 +21852,7 @@ class Xd extends V {
|
|
|
21852
21852
|
}
|
|
21853
21853
|
}
|
|
21854
21854
|
_sort(e, t = 1) {
|
|
21855
|
-
const r =
|
|
21855
|
+
const r = An();
|
|
21856
21856
|
return t === 1 ? this._sortAsc(e, r) : this._sortDesc(e, r);
|
|
21857
21857
|
}
|
|
21858
21858
|
_sortAsc(e, t) {
|
|
@@ -21904,7 +21904,7 @@ class Zd extends V {
|
|
|
21904
21904
|
}
|
|
21905
21905
|
calculate(e, ...t) {
|
|
21906
21906
|
t.length === 1 && t.push(y.create(1));
|
|
21907
|
-
const r = this._getVariantsError(e, ...t), { maxRowLength: n, maxColumnLength: s } =
|
|
21907
|
+
const r = this._getVariantsError(e, ...t), { maxRowLength: n, maxColumnLength: s } = Mr(t);
|
|
21908
21908
|
if (r.isError()) {
|
|
21909
21909
|
const c = O(n, s, r);
|
|
21910
21910
|
return n === 1 && s === 1 ? c.get(0, 0) : c;
|
|
@@ -22017,7 +22017,7 @@ class Zd extends V {
|
|
|
22017
22017
|
return n;
|
|
22018
22018
|
}
|
|
22019
22019
|
_sort(e, t) {
|
|
22020
|
-
const r =
|
|
22020
|
+
const r = An();
|
|
22021
22021
|
return (n, s) => {
|
|
22022
22022
|
let o = n[e], u = s[e], c = this._compare(o, u, t[0], r);
|
|
22023
22023
|
if (c === 0 && t.length > 1) {
|
|
@@ -22423,7 +22423,7 @@ class nC extends V {
|
|
|
22423
22423
|
if (d.isError())
|
|
22424
22424
|
return u = d, !1;
|
|
22425
22425
|
c[f] === void 0 && (c[f] = []), c[f][h] = d;
|
|
22426
|
-
}), u ||
|
|
22426
|
+
}), u || Or(c, c.length, c[0].length, this.unitId || "", this.subUnitId || "");
|
|
22427
22427
|
}
|
|
22428
22428
|
_handleNonArrayColIndexNum(e, t, r, n) {
|
|
22429
22429
|
const s = Math.max(
|
|
@@ -22672,7 +22672,7 @@ class oC extends V {
|
|
|
22672
22672
|
}
|
|
22673
22673
|
_handleExpandObject(e, t, r, n, s, o = 0) {
|
|
22674
22674
|
if ((s === 2 || s === -2) && n !== 2) {
|
|
22675
|
-
const u =
|
|
22675
|
+
const u = Fs(s), c = Is(n);
|
|
22676
22676
|
return this.binarySearchExpand(
|
|
22677
22677
|
e,
|
|
22678
22678
|
t,
|
|
@@ -22693,7 +22693,7 @@ class oC extends V {
|
|
|
22693
22693
|
}
|
|
22694
22694
|
_handleSingleObject(e, t, r, n, s) {
|
|
22695
22695
|
if ((s === 2 || s === -2) && n !== 2) {
|
|
22696
|
-
const o =
|
|
22696
|
+
const o = Fs(s), u = Is(n);
|
|
22697
22697
|
return this.binarySearch(e, t, r, o, u);
|
|
22698
22698
|
}
|
|
22699
22699
|
return n === 2 ? this.fuzzySearch(e, t, r, s !== -1) : n === -1 || n === 1 ? this.orderSearch(
|
|
@@ -22751,7 +22751,7 @@ class uC extends V {
|
|
|
22751
22751
|
_handleSingleObject(e, t, r, n) {
|
|
22752
22752
|
let s;
|
|
22753
22753
|
if ((n === 2 || n === -2) && r !== 2) {
|
|
22754
|
-
const o =
|
|
22754
|
+
const o = Fs(n), u = Is(r);
|
|
22755
22755
|
s = t.binarySearch(e, o, u);
|
|
22756
22756
|
} else if (r === 2) {
|
|
22757
22757
|
const o = t.compare(e, $.EQUALS);
|
|
@@ -22912,7 +22912,7 @@ class dC extends V {
|
|
|
22912
22912
|
r && (t = t.slice(1));
|
|
22913
22913
|
let n = 0;
|
|
22914
22914
|
for (let s = 0; s < t.length; s++) {
|
|
22915
|
-
const o =
|
|
22915
|
+
const o = en.get(t[s]) || 0, u = en.get(t[s + 1]) || 0, c = en.get(t[s + 2]) || 0, l = en.get(t[s + 3]) || 0;
|
|
22916
22916
|
if (!o || c >= u && c > o || o === u && o === c && o === l || o === u / 2)
|
|
22917
22917
|
return g.create(m.VALUE);
|
|
22918
22918
|
o < u ? n -= o : n += o;
|
|
@@ -23378,7 +23378,7 @@ class TC extends V {
|
|
|
23378
23378
|
let t = e;
|
|
23379
23379
|
if (t.isString() && (t = t.convertToNumberObjectValue()), t.isError())
|
|
23380
23380
|
return t;
|
|
23381
|
-
const r = Math.floor(+t.getValue()), n =
|
|
23381
|
+
const r = Math.floor(+t.getValue()), n = fr(r);
|
|
23382
23382
|
return Number.isNaN(n) || !Number.isFinite(n) ? g.create(m.NUM) : y.create(n);
|
|
23383
23383
|
}
|
|
23384
23384
|
}
|
|
@@ -23402,7 +23402,7 @@ class BC extends V {
|
|
|
23402
23402
|
let t = e;
|
|
23403
23403
|
if (t.isString() && (t = t.convertToNumberObjectValue()), t.isError())
|
|
23404
23404
|
return t;
|
|
23405
|
-
const r = Math.floor(+t.getValue()), n =
|
|
23405
|
+
const r = Math.floor(+t.getValue()), n = fr(r, 2);
|
|
23406
23406
|
return Number.isNaN(n) || !Number.isFinite(n) ? g.create(m.NUM) : y.create(n);
|
|
23407
23407
|
}
|
|
23408
23408
|
}
|
|
@@ -23769,7 +23769,7 @@ class XC extends V {
|
|
|
23769
23769
|
return u;
|
|
23770
23770
|
if (c instanceof g)
|
|
23771
23771
|
return c;
|
|
23772
|
-
const l =
|
|
23772
|
+
const l = hr(u, c);
|
|
23773
23773
|
return q.createByArray(l);
|
|
23774
23774
|
}
|
|
23775
23775
|
_getMatrix(e, t, r) {
|
|
@@ -23865,7 +23865,7 @@ class JC extends V {
|
|
|
23865
23865
|
return u = !0, c = h, !1;
|
|
23866
23866
|
if (t += d, t > 170)
|
|
23867
23867
|
return u = !0, c = g.create(m.NUM), !1;
|
|
23868
|
-
r *=
|
|
23868
|
+
r *= fr(d);
|
|
23869
23869
|
}), u)
|
|
23870
23870
|
return c;
|
|
23871
23871
|
} else {
|
|
@@ -23874,10 +23874,10 @@ class JC extends V {
|
|
|
23874
23874
|
return c;
|
|
23875
23875
|
if (t += l, t > 170)
|
|
23876
23876
|
return g.create(m.NUM);
|
|
23877
|
-
r *=
|
|
23877
|
+
r *= fr(l);
|
|
23878
23878
|
}
|
|
23879
23879
|
}
|
|
23880
|
-
const n =
|
|
23880
|
+
const n = fr(t) / r;
|
|
23881
23881
|
return y.create(n);
|
|
23882
23882
|
}
|
|
23883
23883
|
_handleSingleObject(e) {
|
|
@@ -24783,7 +24783,7 @@ class V_ extends V {
|
|
|
24783
24783
|
}), C != null && C.isError())
|
|
24784
24784
|
return C;
|
|
24785
24785
|
}
|
|
24786
|
-
return
|
|
24786
|
+
return Or(r, 1, r[0].length);
|
|
24787
24787
|
}
|
|
24788
24788
|
_isRowHidden(e, t) {
|
|
24789
24789
|
const r = e[t];
|
|
@@ -24836,8 +24836,8 @@ class O_ extends V {
|
|
|
24836
24836
|
if (!e.isReferenceObject() || r && !r.isReferenceObject())
|
|
24837
24837
|
return g.create(m.VALUE);
|
|
24838
24838
|
const n = e.toArrayValueObject();
|
|
24839
|
-
let s =
|
|
24840
|
-
s =
|
|
24839
|
+
let s = zn(n, t);
|
|
24840
|
+
s = Jn(s, n, t);
|
|
24841
24841
|
const o = n.getRowCount(), u = n.getColumnCount();
|
|
24842
24842
|
let c = n;
|
|
24843
24843
|
if (r) {
|
|
@@ -24862,10 +24862,10 @@ class M_ extends V {
|
|
|
24862
24862
|
return e;
|
|
24863
24863
|
if (!e.isArray() || t.length < 2 || t.length % 2 !== 0 || t.some((u, c) => c % 2 === 0 && !u.isArray()))
|
|
24864
24864
|
return g.create(m.VALUE);
|
|
24865
|
-
const { maxRowLength: r, maxColumnLength: n } =
|
|
24865
|
+
const { maxRowLength: r, maxColumnLength: n } = Mr(t), s = kr(t, e, r, n);
|
|
24866
24866
|
if (s)
|
|
24867
24867
|
return s;
|
|
24868
|
-
const o =
|
|
24868
|
+
const o = $r(t, r, n, !0);
|
|
24869
24869
|
return this._aggregateResults(e, o);
|
|
24870
24870
|
}
|
|
24871
24871
|
_aggregateResults(e, t) {
|
|
@@ -25172,7 +25172,7 @@ class U_ extends V {
|
|
|
25172
25172
|
return _;
|
|
25173
25173
|
if (d.isString() && (d = d.convertToNumberObjectValue()), d.isError())
|
|
25174
25174
|
return d;
|
|
25175
|
-
const C = +_.getValue(), E = +d.getValue(), b = 10 ** Math.trunc(E), R =
|
|
25175
|
+
const C = +_.getValue(), E = +d.getValue(), b = 10 ** Math.trunc(E), R = qn(C, b), p = Math.trunc(Nr(C, b) + R) / b;
|
|
25176
25176
|
return y.create(p);
|
|
25177
25177
|
});
|
|
25178
25178
|
return n === 1 && s === 1 ? c.get(0, 0) : c;
|
|
@@ -25449,7 +25449,7 @@ function G_(i) {
|
|
|
25449
25449
|
if (t != null && t.isError())
|
|
25450
25450
|
return e = t, !1;
|
|
25451
25451
|
t != null && t.isNumber() && a[0].push(t);
|
|
25452
|
-
}), e ||
|
|
25452
|
+
}), e || Or(a, 1, a[0].length);
|
|
25453
25453
|
}
|
|
25454
25454
|
class Q_ extends V {
|
|
25455
25455
|
constructor() {
|
|
@@ -25571,13 +25571,13 @@ class K_ extends V {
|
|
|
25571
25571
|
if (r != null && r.isError())
|
|
25572
25572
|
return r;
|
|
25573
25573
|
let n = e;
|
|
25574
|
-
n.isReferenceObject() && (n = n.toArrayValueObject()), n.isArray() || (n =
|
|
25574
|
+
n.isReferenceObject() && (n = n.toArrayValueObject()), n.isArray() || (n = Or([[n]], 1, 1));
|
|
25575
25575
|
let s = t;
|
|
25576
25576
|
return s.isReferenceObject() && (s = s.toArrayValueObject()), r && !(r != null && r.isReferenceObject()) ? g.create(m.NA) : (s = s, s.isArray() ? s.map((o) => this._handleSingleObject(n, o, r)) : this._handleSingleObject(n, s, r));
|
|
25577
25577
|
}
|
|
25578
25578
|
_handleSingleObject(e, t, r) {
|
|
25579
|
-
let n =
|
|
25580
|
-
n =
|
|
25579
|
+
let n = zn(e, t);
|
|
25580
|
+
n = Jn(n, e, t);
|
|
25581
25581
|
let s = r ? this._createRangeReferenceObject(r, e) : e;
|
|
25582
25582
|
if (!s)
|
|
25583
25583
|
return g.create(m.VALUE);
|
|
@@ -25618,10 +25618,10 @@ class X_ extends V {
|
|
|
25618
25618
|
return g.create(m.NA);
|
|
25619
25619
|
if (!e.isArray() || t.length % 2 !== 0 || t.some((u, c) => c % 2 === 0 && !u.isArray()))
|
|
25620
25620
|
return g.create(m.VALUE);
|
|
25621
|
-
const { maxRowLength: r, maxColumnLength: n } =
|
|
25621
|
+
const { maxRowLength: r, maxColumnLength: n } = Mr(t), s = kr(t, e, r, n);
|
|
25622
25622
|
if (s)
|
|
25623
25623
|
return s;
|
|
25624
|
-
const o =
|
|
25624
|
+
const o = $r(t, r, n, !0);
|
|
25625
25625
|
return this._aggregateResults(e, o);
|
|
25626
25626
|
}
|
|
25627
25627
|
_aggregateResults(e, t) {
|
|
@@ -25823,7 +25823,7 @@ class tA extends V {
|
|
|
25823
25823
|
return g.create(m.NUM);
|
|
25824
25824
|
if (D === 1)
|
|
25825
25825
|
return g.create(m.DIV_BY_ZERO);
|
|
25826
|
-
const L = Math.abs(
|
|
25826
|
+
const L = Math.abs(ns(w / 2, D - 1) * S / Math.sqrt(D));
|
|
25827
25827
|
return y.create(L);
|
|
25828
25828
|
});
|
|
25829
25829
|
return n === 1 && s === 1 ? l.get(0, 0) : l;
|
|
@@ -25931,8 +25931,8 @@ class iA extends V {
|
|
|
25931
25931
|
return e.isError() || t.isError() ? g.create(m.NA) : e.isArray() ? t.isArray() ? t.mapValue((r) => this._handleSingleObject(e, r)) : this._handleSingleObject(e, t) : g.create(m.VALUE);
|
|
25932
25932
|
}
|
|
25933
25933
|
_handleSingleObject(e, t) {
|
|
25934
|
-
let r =
|
|
25935
|
-
r =
|
|
25934
|
+
let r = zn(e, t);
|
|
25935
|
+
r = Jn(r, e, t);
|
|
25936
25936
|
const n = e.pick(r);
|
|
25937
25937
|
return this._countA(n);
|
|
25938
25938
|
}
|
|
@@ -25954,10 +25954,10 @@ class oA extends V {
|
|
|
25954
25954
|
calculate(...e) {
|
|
25955
25955
|
if (e.length % 2 !== 0 || e.some((o, u) => u % 2 === 0 && !o.isArray()))
|
|
25956
25956
|
return g.create(m.VALUE);
|
|
25957
|
-
const { maxRowLength: t, maxColumnLength: r } =
|
|
25957
|
+
const { maxRowLength: t, maxColumnLength: r } = Mr(e), n = kr(e, e[0], t, r);
|
|
25958
25958
|
if (n)
|
|
25959
25959
|
return n;
|
|
25960
|
-
const s =
|
|
25960
|
+
const s = $r(e, t, r, !0);
|
|
25961
25961
|
return this._aggregateResults(s);
|
|
25962
25962
|
}
|
|
25963
25963
|
_aggregateResults(e) {
|
|
@@ -26324,7 +26324,7 @@ class CA extends V {
|
|
|
26324
26324
|
const [s] = n, o = +s.getValue();
|
|
26325
26325
|
if (o === 0 || o < 0 && o % 1 === 0)
|
|
26326
26326
|
return g.create(m.NUM);
|
|
26327
|
-
const u =
|
|
26327
|
+
const u = mn(o);
|
|
26328
26328
|
return Number.isNaN(u) || !Number.isFinite(u) ? g.create(m.NUM) : y.create(u);
|
|
26329
26329
|
}
|
|
26330
26330
|
}
|
|
@@ -26369,7 +26369,7 @@ class _A extends V {
|
|
|
26369
26369
|
const { isError: t, errorObject: r, variants: n } = B(e);
|
|
26370
26370
|
if (t)
|
|
26371
26371
|
return r;
|
|
26372
|
-
const [s] = n, o = +s.getValue(), u =
|
|
26372
|
+
const [s] = n, o = +s.getValue(), u = Hr(o, 0, 1) - 0.5;
|
|
26373
26373
|
return y.create(u);
|
|
26374
26374
|
}
|
|
26375
26375
|
}
|
|
@@ -26425,7 +26425,7 @@ class EA extends V {
|
|
|
26425
26425
|
A(this, "maxParams", 4);
|
|
26426
26426
|
}
|
|
26427
26427
|
calculate(e, t, r, n) {
|
|
26428
|
-
const { isError: s, errorObject: o } =
|
|
26428
|
+
const { isError: s, errorObject: o } = ss(e, t, r);
|
|
26429
26429
|
if (s)
|
|
26430
26430
|
return o;
|
|
26431
26431
|
const u = Ct(e);
|
|
@@ -26447,7 +26447,7 @@ class EA extends V {
|
|
|
26447
26447
|
return e.length === 1 && t.length > 1 || e[0].length === 1 && t[0].length > 1 ? e.length === 1 && t.length > 1 && (n ? t.length + 1 : t.length) > e[0].length || e[0].length === 1 && t[0].length > 1 && (n ? t[0].length + 1 : t[0].length) > e.length ? g.create(m.NA) : this._getResultByMultipleVariables(e, t, r, n) : this._getResultBySimpleVariables(e, t, r, n);
|
|
26448
26448
|
}
|
|
26449
26449
|
_getResultByMultipleVariables(e, t, r, n) {
|
|
26450
|
-
const s = e.length === 1 && e[0].length > 1, o =
|
|
26450
|
+
const s = e.length === 1 && e[0].length > 1, o = os(e, t, r, n, !0);
|
|
26451
26451
|
if (o instanceof g)
|
|
26452
26452
|
return o;
|
|
26453
26453
|
const { coefficients: u, newX: c } = o, l = u[0].length, f = u[0][l - 1];
|
|
@@ -26462,11 +26462,11 @@ class EA extends V {
|
|
|
26462
26462
|
return s && (h = mt(h)), q.createByArray(h);
|
|
26463
26463
|
}
|
|
26464
26464
|
_getResultBySimpleVariables(e, t, r, n) {
|
|
26465
|
-
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } =
|
|
26465
|
+
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } = is(o, s, n, !0), l = r.map((f) => f.map((h) => c * u ** h));
|
|
26466
26466
|
return q.createByArray(l);
|
|
26467
26467
|
}
|
|
26468
26468
|
_getKnownXsValues(e, t) {
|
|
26469
|
-
return !t || t.isNull() ?
|
|
26469
|
+
return !t || t.isNull() ? as(e.length, e[0].length) : Ct(t);
|
|
26470
26470
|
}
|
|
26471
26471
|
_getNewXsValues(e, t) {
|
|
26472
26472
|
return !t || t.isNull() ? e : Ct(t);
|
|
@@ -26686,7 +26686,7 @@ class NA extends V {
|
|
|
26686
26686
|
A(this, "maxParams", 4);
|
|
26687
26687
|
}
|
|
26688
26688
|
calculate(e, t, r, n) {
|
|
26689
|
-
const { isError: s, errorObject: o } =
|
|
26689
|
+
const { isError: s, errorObject: o } = ss(e, t);
|
|
26690
26690
|
if (s)
|
|
26691
26691
|
return o;
|
|
26692
26692
|
const u = Ct(e);
|
|
@@ -26709,7 +26709,7 @@ class NA extends V {
|
|
|
26709
26709
|
return e.length === 1 && t.length > 1 || e[0].length === 1 && t[0].length > 1 ? e.length === 1 && t.length > 1 && (r ? t.length + 1 : t.length) > e[0].length || e[0].length === 1 && t[0].length > 1 && (r ? t[0].length + 1 : t[0].length) > e.length ? g.create(m.NA) : this._getResultByMultipleVariables(e, t, r, n) : this._getResultBySimpleVariables(e, t, r, n);
|
|
26710
26710
|
}
|
|
26711
26711
|
_getResultByMultipleVariables(e, t, r, n) {
|
|
26712
|
-
const s =
|
|
26712
|
+
const s = os(e, t, t, r, !1);
|
|
26713
26713
|
if (s instanceof g)
|
|
26714
26714
|
return s;
|
|
26715
26715
|
const { coefficients: o, X: u, XTXInverse: c } = s;
|
|
@@ -26756,7 +26756,7 @@ class NA extends V {
|
|
|
26756
26756
|
return q.createByArray(l);
|
|
26757
26757
|
}
|
|
26758
26758
|
_getResultBySimpleVariables(e, t, r, n) {
|
|
26759
|
-
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } =
|
|
26759
|
+
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } = is(o, s, r, !1);
|
|
26760
26760
|
if (Number.isNaN(u))
|
|
26761
26761
|
return g.create(m.NA);
|
|
26762
26762
|
let l = [];
|
|
@@ -26796,7 +26796,7 @@ class NA extends V {
|
|
|
26796
26796
|
return q.createByArray(l);
|
|
26797
26797
|
}
|
|
26798
26798
|
_getKnownXsValues(e, t) {
|
|
26799
|
-
return !t || t.isNull() ?
|
|
26799
|
+
return !t || t.isNull() ? as(e.length, e[0].length) : Ct(t);
|
|
26800
26800
|
}
|
|
26801
26801
|
}
|
|
26802
26802
|
class OA extends V {
|
|
@@ -26806,7 +26806,7 @@ class OA extends V {
|
|
|
26806
26806
|
A(this, "maxParams", 4);
|
|
26807
26807
|
}
|
|
26808
26808
|
calculate(e, t, r, n) {
|
|
26809
|
-
const { isError: s, errorObject: o } =
|
|
26809
|
+
const { isError: s, errorObject: o } = ss(e, t);
|
|
26810
26810
|
if (s)
|
|
26811
26811
|
return o;
|
|
26812
26812
|
const u = Ct(e);
|
|
@@ -26830,7 +26830,7 @@ class OA extends V {
|
|
|
26830
26830
|
}
|
|
26831
26831
|
// eslint-disable-next-line max-lines-per-function
|
|
26832
26832
|
_getResultByMultipleVariables(e, t, r, n) {
|
|
26833
|
-
const s =
|
|
26833
|
+
const s = os(e, t, t, r, !0);
|
|
26834
26834
|
if (s instanceof g)
|
|
26835
26835
|
return s;
|
|
26836
26836
|
const { coefficients: o, Y: u, X: c, XTXInverse: l } = s;
|
|
@@ -26878,7 +26878,7 @@ class OA extends V {
|
|
|
26878
26878
|
return q.createByArray(f);
|
|
26879
26879
|
}
|
|
26880
26880
|
_getResultBySimpleVariables(e, t, r, n) {
|
|
26881
|
-
const s = e.flat(), o = t.flat(), { slope: u, intercept: c, Y: l } =
|
|
26881
|
+
const s = e.flat(), o = t.flat(), { slope: u, intercept: c, Y: l } = is(o, s, r, !0);
|
|
26882
26882
|
if (Number.isNaN(u))
|
|
26883
26883
|
return g.create(m.NA);
|
|
26884
26884
|
let f = [];
|
|
@@ -26916,7 +26916,7 @@ class OA extends V {
|
|
|
26916
26916
|
return q.createByArray(f);
|
|
26917
26917
|
}
|
|
26918
26918
|
_getKnownXsValues(e, t) {
|
|
26919
|
-
return !t || t.isNull() ?
|
|
26919
|
+
return !t || t.isNull() ? as(e.length, e[0].length) : Ct(t);
|
|
26920
26920
|
}
|
|
26921
26921
|
}
|
|
26922
26922
|
class MA extends V {
|
|
@@ -26977,7 +26977,7 @@ class wA extends V {
|
|
|
26977
26977
|
const f = 1 - l, h = r.length, d = r.reduce((b, R) => b + R, 0) / h, _ = r.reduce((b, R) => b + (R - d) ** 2, 0) / (h - 1), C = Math.sqrt(_);
|
|
26978
26978
|
if (C <= 0)
|
|
26979
26979
|
return g.create(m.NUM);
|
|
26980
|
-
const E = Math.abs(
|
|
26980
|
+
const E = Math.abs(ns(f / 2, h - 1) * C / Math.sqrt(h));
|
|
26981
26981
|
return y.create(E);
|
|
26982
26982
|
}
|
|
26983
26983
|
_getRangeValues(e) {
|
|
@@ -27058,10 +27058,10 @@ class LA extends V {
|
|
|
27058
27058
|
return g.create(m.NA);
|
|
27059
27059
|
if (!e.isArray() || t.length % 2 !== 0 || t.some((u, c) => c % 2 === 0 && !u.isArray()))
|
|
27060
27060
|
return g.create(m.VALUE);
|
|
27061
|
-
const { maxRowLength: r, maxColumnLength: n } =
|
|
27061
|
+
const { maxRowLength: r, maxColumnLength: n } = Mr(t), s = kr(t, e, r, n);
|
|
27062
27062
|
if (s)
|
|
27063
27063
|
return s;
|
|
27064
|
-
const o =
|
|
27064
|
+
const o = $r(t, r, n, !0);
|
|
27065
27065
|
return this._aggregateResults(e, o);
|
|
27066
27066
|
}
|
|
27067
27067
|
_aggregateResults(e, t) {
|
|
@@ -27198,10 +27198,10 @@ class UA extends V {
|
|
|
27198
27198
|
return g.create(m.NA);
|
|
27199
27199
|
if (!e.isArray() || t.length % 2 !== 0 || t.some((u, c) => c % 2 === 0 && !u.isArray()))
|
|
27200
27200
|
return g.create(m.VALUE);
|
|
27201
|
-
const { maxRowLength: r, maxColumnLength: n } =
|
|
27201
|
+
const { maxRowLength: r, maxColumnLength: n } = Mr(t), s = kr(t, e, r, n);
|
|
27202
27202
|
if (s)
|
|
27203
27203
|
return s;
|
|
27204
|
-
const o =
|
|
27204
|
+
const o = $r(t, r, n, !0);
|
|
27205
27205
|
return this._aggregateResults(e, o);
|
|
27206
27206
|
}
|
|
27207
27207
|
_aggregateResults(e, t) {
|
|
@@ -27316,7 +27316,7 @@ class BA extends V {
|
|
|
27316
27316
|
return n;
|
|
27317
27317
|
const [o, u] = s, c = +o.getValue(), l = +u.getValue();
|
|
27318
27318
|
let f;
|
|
27319
|
-
return l ? f =
|
|
27319
|
+
return l ? f = Hr(c, 0, 1) : f = Wo(c, 0, 1), y.create(f);
|
|
27320
27320
|
}
|
|
27321
27321
|
}
|
|
27322
27322
|
class IA extends V {
|
|
@@ -28188,7 +28188,7 @@ class sE extends V {
|
|
|
28188
28188
|
if (h < 1)
|
|
28189
28189
|
return g.create(m.NUM);
|
|
28190
28190
|
let _;
|
|
28191
|
-
return d ? _ =
|
|
28191
|
+
return d ? _ = Gr(f, h) : _ = Am(f, h), Number.isNaN(_) || !Number.isFinite(_) ? g.create(m.NUM) : y.create(_);
|
|
28192
28192
|
}
|
|
28193
28193
|
}
|
|
28194
28194
|
class aE extends V {
|
|
@@ -28217,7 +28217,7 @@ class aE extends V {
|
|
|
28217
28217
|
const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
|
|
28218
28218
|
if (c < 0 || l < 1 || l > 10 ** 10)
|
|
28219
28219
|
return g.create(m.NUM);
|
|
28220
|
-
const f =
|
|
28220
|
+
const f = Gr(-c, l) * 2;
|
|
28221
28221
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
28222
28222
|
}
|
|
28223
28223
|
}
|
|
@@ -28247,7 +28247,7 @@ class iE extends V {
|
|
|
28247
28247
|
const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
|
|
28248
28248
|
if (l < 1 || l > 10 ** 10)
|
|
28249
28249
|
return g.create(m.NUM);
|
|
28250
|
-
const f =
|
|
28250
|
+
const f = Gr(-c, l);
|
|
28251
28251
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
28252
28252
|
}
|
|
28253
28253
|
}
|
|
@@ -28277,7 +28277,7 @@ class oE extends V {
|
|
|
28277
28277
|
const [o, u] = s, c = +o.getValue(), l = Math.floor(+u.getValue());
|
|
28278
28278
|
if (c <= 0 || c > 1 || l < 1 || l > 10 ** 10)
|
|
28279
28279
|
return g.create(m.NUM);
|
|
28280
|
-
const f =
|
|
28280
|
+
const f = ns(c, l);
|
|
28281
28281
|
return Number.isNaN(f) || !Number.isFinite(f) ? g.create(m.NUM) : y.create(f);
|
|
28282
28282
|
}
|
|
28283
28283
|
}
|
|
@@ -28288,7 +28288,7 @@ class uE extends V {
|
|
|
28288
28288
|
A(this, "maxParams", 4);
|
|
28289
28289
|
}
|
|
28290
28290
|
calculate(e, t, r, n) {
|
|
28291
|
-
const { isError: s, errorObject: o } =
|
|
28291
|
+
const { isError: s, errorObject: o } = ss(e, t, r);
|
|
28292
28292
|
if (s)
|
|
28293
28293
|
return o;
|
|
28294
28294
|
const u = Ct(e);
|
|
@@ -28310,7 +28310,7 @@ class uE extends V {
|
|
|
28310
28310
|
return e.length === 1 && t.length > 1 || e[0].length === 1 && t[0].length > 1 ? e.length === 1 && t.length > 1 && (n ? t.length + 1 : t.length) > e[0].length || e[0].length === 1 && t[0].length > 1 && (n ? t[0].length + 1 : t[0].length) > e.length ? g.create(m.NA) : this._getResultByMultipleVariables(e, t, r, n) : this._getResultBySimpleVariables(e, t, r, n);
|
|
28311
28311
|
}
|
|
28312
28312
|
_getResultByMultipleVariables(e, t, r, n) {
|
|
28313
|
-
const s = e.length === 1 && e[0].length > 1, o =
|
|
28313
|
+
const s = e.length === 1 && e[0].length > 1, o = os(e, t, r, n, !1);
|
|
28314
28314
|
if (o instanceof g)
|
|
28315
28315
|
return o;
|
|
28316
28316
|
const { coefficients: u, newX: c } = o, l = u[0].length, f = u[0][l - 1];
|
|
@@ -28325,14 +28325,14 @@ class uE extends V {
|
|
|
28325
28325
|
return s && (h = mt(h)), q.createByArray(h);
|
|
28326
28326
|
}
|
|
28327
28327
|
_getResultBySimpleVariables(e, t, r, n) {
|
|
28328
|
-
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } =
|
|
28328
|
+
const s = e.flat(), o = t.flat(), { slope: u, intercept: c } = is(o, s, n, !1);
|
|
28329
28329
|
if (Number.isNaN(u))
|
|
28330
28330
|
return g.create(m.NA);
|
|
28331
28331
|
const l = r.map((f) => f.map((h) => u * h + c));
|
|
28332
28332
|
return q.createByArray(l);
|
|
28333
28333
|
}
|
|
28334
28334
|
_getKnownXsValues(e, t) {
|
|
28335
|
-
return !t || t.isNull() ?
|
|
28335
|
+
return !t || t.isNull() ? as(e.length, e[0].length) : Ct(t);
|
|
28336
28336
|
}
|
|
28337
28337
|
_getNewXsValues(e, t) {
|
|
28338
28338
|
return !t || t.isNull() ? e : Ct(t);
|
|
@@ -28895,10 +28895,10 @@ class NE extends V {
|
|
|
28895
28895
|
function qa(i) {
|
|
28896
28896
|
let a = 0;
|
|
28897
28897
|
for (let e = 0; e < i.length; e++)
|
|
28898
|
-
a +=
|
|
28898
|
+
a += Kr(i, e);
|
|
28899
28899
|
return a;
|
|
28900
28900
|
}
|
|
28901
|
-
function
|
|
28901
|
+
function Kr(i, a, e = "ltr") {
|
|
28902
28902
|
return OE(i, a, e) > 255 ? 2 : 1;
|
|
28903
28903
|
}
|
|
28904
28904
|
function Bi(i) {
|
|
@@ -29067,7 +29067,7 @@ class DE extends V {
|
|
|
29067
29067
|
return j.create("");
|
|
29068
29068
|
let l = 0, f = 0, h = "";
|
|
29069
29069
|
for (; f < c && l < r.length; )
|
|
29070
|
-
f +=
|
|
29070
|
+
f += Kr(r, l), h += r.charAt(l), l++;
|
|
29071
29071
|
return j.create(h);
|
|
29072
29072
|
}
|
|
29073
29073
|
}
|
|
@@ -29201,11 +29201,11 @@ class UE extends V {
|
|
|
29201
29201
|
n = n.substring(f - 1);
|
|
29202
29202
|
let d = 0, _ = 0, C = "";
|
|
29203
29203
|
for (; _ < h && d < n.length; )
|
|
29204
|
-
_ +=
|
|
29204
|
+
_ += Kr(n, d), C += n.charAt(d), d++;
|
|
29205
29205
|
return j.create(C);
|
|
29206
29206
|
}
|
|
29207
29207
|
}
|
|
29208
|
-
const
|
|
29208
|
+
const Dr = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九"], tn = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], vE = ["", "十", "百", "千"], TE = ["", "拾", "佰", "仟"], BE = ["", "万", "亿", "兆"];
|
|
29209
29209
|
class IE extends V {
|
|
29210
29210
|
constructor() {
|
|
29211
29211
|
super(...arguments);
|
|
@@ -29243,19 +29243,19 @@ class IE extends V {
|
|
|
29243
29243
|
for (let h = 0; h < c; h++) {
|
|
29244
29244
|
const d = Number(u[h]);
|
|
29245
29245
|
if (c === 1 && d === 0) {
|
|
29246
|
-
l += o === 2 ?
|
|
29246
|
+
l += o === 2 ? tn[0] : Dr[0];
|
|
29247
29247
|
break;
|
|
29248
29248
|
}
|
|
29249
29249
|
if (o === 3) {
|
|
29250
|
-
l +=
|
|
29250
|
+
l += Dr[d];
|
|
29251
29251
|
continue;
|
|
29252
29252
|
}
|
|
29253
29253
|
const _ = c - h - 1, C = _ % 4, E = Math.trunc(_ / 4);
|
|
29254
29254
|
if (c >= 17 && E > 2) {
|
|
29255
|
-
if (l += o === 1 ?
|
|
29255
|
+
if (l += o === 1 ? Dr[d] : tn[d], E > 3)
|
|
29256
29256
|
continue;
|
|
29257
29257
|
} else
|
|
29258
|
-
d === 0 ? f = C !== 0 : (f && (l += o === 1 ?
|
|
29258
|
+
d === 0 ? f = C !== 0 : (f && (l += o === 1 ? Dr[0] : tn[0], f = !1), l += o === 1 ? Dr[d] + vE[C] : tn[d] + TE[C]);
|
|
29259
29259
|
C === 0 && E > 0 && u.slice(Math.max(0, h - 3), h + 1) !== "0000" && (l += BE[E]);
|
|
29260
29260
|
}
|
|
29261
29261
|
return j.create(l);
|
|
@@ -29787,7 +29787,7 @@ class KE extends V {
|
|
|
29787
29787
|
A(this, "maxParams", 2);
|
|
29788
29788
|
}
|
|
29789
29789
|
calculate(e, t) {
|
|
29790
|
-
const { isError: r, errorObject: n, variants: s } =
|
|
29790
|
+
const { isError: r, errorObject: n, variants: s } = Yr(e, t);
|
|
29791
29791
|
if (r)
|
|
29792
29792
|
return n;
|
|
29793
29793
|
const [o, u] = s;
|
|
@@ -29823,7 +29823,7 @@ class XE extends V {
|
|
|
29823
29823
|
A(this, "maxParams", 2);
|
|
29824
29824
|
}
|
|
29825
29825
|
calculate(e, t) {
|
|
29826
|
-
const { isError: r, errorObject: n, variants: s } =
|
|
29826
|
+
const { isError: r, errorObject: n, variants: s } = Yr(e, t);
|
|
29827
29827
|
if (r)
|
|
29828
29828
|
return n;
|
|
29829
29829
|
const [o, u] = s;
|
|
@@ -29842,7 +29842,7 @@ class ZE extends V {
|
|
|
29842
29842
|
A(this, "maxParams", 3);
|
|
29843
29843
|
}
|
|
29844
29844
|
calculate(e, t, r) {
|
|
29845
|
-
const { isError: n, errorObject: s, variants: o } =
|
|
29845
|
+
const { isError: n, errorObject: s, variants: o } = Yr(e, t, r);
|
|
29846
29846
|
if (n)
|
|
29847
29847
|
return s;
|
|
29848
29848
|
const [u, c, l] = o;
|
|
@@ -29929,7 +29929,7 @@ class JE extends V {
|
|
|
29929
29929
|
d = d.substring(f - 1);
|
|
29930
29930
|
let E = 0, b = 0;
|
|
29931
29931
|
for (; b < h && E < d.length; )
|
|
29932
|
-
b +=
|
|
29932
|
+
b += Kr(d, E), E++;
|
|
29933
29933
|
return C += _ + d.substring(E), j.create(C);
|
|
29934
29934
|
}
|
|
29935
29935
|
}
|
|
@@ -30030,7 +30030,7 @@ class rb extends V {
|
|
|
30030
30030
|
return j.create("");
|
|
30031
30031
|
let l = r.length - 1, f = 0, h = "";
|
|
30032
30032
|
for (; f < c && l >= 0; )
|
|
30033
|
-
f +=
|
|
30033
|
+
f += Kr(r, l, "rtl"), h = r.charAt(l) + h, l--;
|
|
30034
30034
|
return j.create(h);
|
|
30035
30035
|
}
|
|
30036
30036
|
}
|
|
@@ -30896,7 +30896,7 @@ let sa = class extends Ne {
|
|
|
30896
30896
|
super();
|
|
30897
30897
|
A(this, "_computingCompleted$", new gc((a) => {
|
|
30898
30898
|
this._commandService.onCommandExecuted((e) => {
|
|
30899
|
-
if (e.id !==
|
|
30899
|
+
if (e.id !== _n.id) return;
|
|
30900
30900
|
const t = e.params;
|
|
30901
30901
|
if (t.stageInfo)
|
|
30902
30902
|
return a.next(
|
|
@@ -30920,8 +30920,8 @@ var Ob = Object.getOwnPropertyDescriptor, Mb = (i, a, e, t) => {
|
|
|
30920
30920
|
for (var r = t > 1 ? void 0 : t ? Ob(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
30921
30921
|
(s = i[n]) && (r = s(r) || r);
|
|
30922
30922
|
return r;
|
|
30923
|
-
},
|
|
30924
|
-
let
|
|
30923
|
+
}, rn = (i, a) => (e, t) => a(e, t, i);
|
|
30924
|
+
let Tn = class extends Ne {
|
|
30925
30925
|
constructor(i, a, e, t) {
|
|
30926
30926
|
super(), this._commandService = i, this._functionService = a, this._configService = e, this._dataSyncPrimaryController = t, this._initialize();
|
|
30927
30927
|
}
|
|
@@ -30931,10 +30931,10 @@ let vn = class extends Ne {
|
|
|
30931
30931
|
_registerCommands() {
|
|
30932
30932
|
[
|
|
30933
30933
|
co,
|
|
30934
|
-
|
|
30934
|
+
Ss,
|
|
30935
30935
|
io,
|
|
30936
30936
|
oo,
|
|
30937
|
-
|
|
30937
|
+
_n,
|
|
30938
30938
|
uo,
|
|
30939
30939
|
ca,
|
|
30940
30940
|
ao,
|
|
@@ -30977,18 +30977,18 @@ let vn = class extends Ne {
|
|
|
30977
30977
|
this._functionService.registerExecutors(...a);
|
|
30978
30978
|
}
|
|
30979
30979
|
};
|
|
30980
|
-
|
|
30981
|
-
|
|
30982
|
-
|
|
30983
|
-
|
|
30984
|
-
|
|
30985
|
-
],
|
|
30980
|
+
Tn = Mb([
|
|
30981
|
+
rn(0, sr),
|
|
30982
|
+
rn(1, Ht),
|
|
30983
|
+
rn(2, ia),
|
|
30984
|
+
rn(3, cc(Cc))
|
|
30985
|
+
], Tn);
|
|
30986
30986
|
var wb = Object.getOwnPropertyDescriptor, Sb = (i, a, e, t) => {
|
|
30987
30987
|
for (var r = t > 1 ? void 0 : t ? wb(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
30988
30988
|
(s = i[n]) && (r = s(r) || r);
|
|
30989
30989
|
return r;
|
|
30990
|
-
},
|
|
30991
|
-
let
|
|
30990
|
+
}, nn = (i, a) => (e, t) => a(e, t, i);
|
|
30991
|
+
let Bn = class extends Ne {
|
|
30992
30992
|
constructor(i, a, e) {
|
|
30993
30993
|
super(), this._commandService = i, this._dependencyManagerService = a, this._featureCalculationManagerService = e, this._initialize();
|
|
30994
30994
|
}
|
|
@@ -31064,18 +31064,18 @@ let Tn = class extends Ne {
|
|
|
31064
31064
|
this._dependencyManagerService.removeFormulaDependencyByDefinedName(e, t);
|
|
31065
31065
|
}
|
|
31066
31066
|
};
|
|
31067
|
-
|
|
31068
|
-
|
|
31069
|
-
|
|
31070
|
-
|
|
31071
|
-
|
|
31072
|
-
],
|
|
31067
|
+
Bn = Sb([
|
|
31068
|
+
nn(0, sr),
|
|
31069
|
+
nn(1, Tr),
|
|
31070
|
+
nn(1, es),
|
|
31071
|
+
nn(2, Tr)
|
|
31072
|
+
], Bn);
|
|
31073
31073
|
var Db = Object.getOwnPropertyDescriptor, Lb = (i, a, e, t) => {
|
|
31074
31074
|
for (var r = t > 1 ? void 0 : t ? Db(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
31075
31075
|
(s = i[n]) && (r = s(r) || r);
|
|
31076
31076
|
return r;
|
|
31077
31077
|
}, $i = (i, a) => (e, t) => a(e, t, i);
|
|
31078
|
-
let
|
|
31078
|
+
let In = class extends Ne {
|
|
31079
31079
|
constructor(i, a) {
|
|
31080
31080
|
super(), this._commandService = i, this._featureCalculationManagerService = a, this._initialize();
|
|
31081
31081
|
}
|
|
@@ -31102,16 +31102,16 @@ let Bn = class extends Ne {
|
|
|
31102
31102
|
);
|
|
31103
31103
|
}
|
|
31104
31104
|
};
|
|
31105
|
-
|
|
31105
|
+
In = Lb([
|
|
31106
31106
|
$i(0, sr),
|
|
31107
|
-
$i(1,
|
|
31108
|
-
],
|
|
31107
|
+
$i(1, Tr)
|
|
31108
|
+
], In);
|
|
31109
31109
|
var Pb = Object.getOwnPropertyDescriptor, xb = (i, a, e, t) => {
|
|
31110
31110
|
for (var r = t > 1 ? void 0 : t ? Pb(a, e) : a, n = i.length - 1, s; n >= 0; n--)
|
|
31111
31111
|
(s = i[n]) && (r = s(r) || r);
|
|
31112
31112
|
return r;
|
|
31113
|
-
},
|
|
31114
|
-
let
|
|
31113
|
+
}, Ns = (i, a) => (e, t) => a(e, t, i);
|
|
31114
|
+
let Fn = class extends Ne {
|
|
31115
31115
|
constructor(i, a, e) {
|
|
31116
31116
|
super(), this._commandService = i, this._otherFormulaManagerService = a, this._dependencyManagerService = e, this._initialize();
|
|
31117
31117
|
}
|
|
@@ -31140,11 +31140,11 @@ let In = class extends Ne {
|
|
|
31140
31140
|
);
|
|
31141
31141
|
}
|
|
31142
31142
|
};
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
],
|
|
31143
|
+
Fn = xb([
|
|
31144
|
+
Ns(0, sr),
|
|
31145
|
+
Ns(1, Oa),
|
|
31146
|
+
Ns(2, es)
|
|
31147
|
+
], Fn);
|
|
31148
31148
|
class jb extends Ne {
|
|
31149
31149
|
constructor() {
|
|
31150
31150
|
super(...arguments);
|
|
@@ -31180,7 +31180,7 @@ var Ub = Object.getOwnPropertyDescriptor, vb = (i, a, e, t) => {
|
|
|
31180
31180
|
(s = i[n]) && (r = s(r) || r);
|
|
31181
31181
|
return r;
|
|
31182
31182
|
}, Yi = (i, a) => (e, t) => a(e, t, i);
|
|
31183
|
-
let
|
|
31183
|
+
let kn = class extends Ne {
|
|
31184
31184
|
constructor(i, a) {
|
|
31185
31185
|
super(), this._commandService = i, this._superTableService = a, this._initialize();
|
|
31186
31186
|
}
|
|
@@ -31213,10 +31213,10 @@ let Fn = class extends Ne {
|
|
|
31213
31213
|
);
|
|
31214
31214
|
}
|
|
31215
31215
|
};
|
|
31216
|
-
|
|
31216
|
+
kn = vb([
|
|
31217
31217
|
Yi(0, sr),
|
|
31218
31218
|
Yi(1, Qu)
|
|
31219
|
-
],
|
|
31219
|
+
], kn);
|
|
31220
31220
|
class Tb extends Ne {
|
|
31221
31221
|
constructor() {
|
|
31222
31222
|
super(...arguments);
|
|
@@ -31250,8 +31250,8 @@ var Ib = Object.getOwnPropertyDescriptor, Fb = (i, a, e, t) => {
|
|
|
31250
31250
|
return r;
|
|
31251
31251
|
}, Hi = (i, a) => (e, t) => a(e, t, i);
|
|
31252
31252
|
const kb = "UNIVER_ENGINE_FORMULA_PLUGIN";
|
|
31253
|
-
var
|
|
31254
|
-
let Gi = (
|
|
31253
|
+
var Os;
|
|
31254
|
+
let Gi = (Os = class extends lc {
|
|
31255
31255
|
constructor(i = fi, a, e) {
|
|
31256
31256
|
super(), this._config = i, this._injector = a, this._configService = e;
|
|
31257
31257
|
const { ...t } = fc(
|
|
@@ -31266,19 +31266,19 @@ let Gi = (Ns = class extends lc {
|
|
|
31266
31266
|
}
|
|
31267
31267
|
onReady() {
|
|
31268
31268
|
var i;
|
|
31269
|
-
|
|
31270
|
-
[
|
|
31271
|
-
[
|
|
31272
|
-
]), (i = this._config) != null && i.notExecuteFormula ||
|
|
31269
|
+
ls(this._injector, [
|
|
31270
|
+
[Tn],
|
|
31271
|
+
[kn]
|
|
31272
|
+
]), (i = this._config) != null && i.notExecuteFormula || ls(this._injector, [
|
|
31273
|
+
[Fn],
|
|
31273
31274
|
[In],
|
|
31274
31275
|
[Bn],
|
|
31275
|
-
[
|
|
31276
|
-
[Ln]
|
|
31276
|
+
[Pn]
|
|
31277
31277
|
]);
|
|
31278
31278
|
}
|
|
31279
31279
|
onRendered() {
|
|
31280
31280
|
var i;
|
|
31281
|
-
(i = this._config) != null && i.notExecuteFormula ||
|
|
31281
|
+
(i = this._config) != null && i.notExecuteFormula || ls(this._injector, [
|
|
31282
31282
|
[zs],
|
|
31283
31283
|
[Xs]
|
|
31284
31284
|
]);
|
|
@@ -31287,46 +31287,46 @@ let Gi = (Ns = class extends lc {
|
|
|
31287
31287
|
const i = !this._config.notExecuteFormula, a = [
|
|
31288
31288
|
// Services
|
|
31289
31289
|
[Ht, { useClass: th }],
|
|
31290
|
-
[
|
|
31290
|
+
[Vr, { useClass: xs }],
|
|
31291
31291
|
[Bb, { useClass: Tb }],
|
|
31292
31292
|
[So, { useClass: Qs }],
|
|
31293
31293
|
[go, { useClass: cl }],
|
|
31294
31294
|
[Qu, { useClass: jb }],
|
|
31295
31295
|
[Gu],
|
|
31296
31296
|
// Models
|
|
31297
|
-
[
|
|
31297
|
+
[dr],
|
|
31298
31298
|
// Engine
|
|
31299
31299
|
[ga],
|
|
31300
31300
|
//Controllers
|
|
31301
|
-
[
|
|
31302
|
-
[
|
|
31301
|
+
[Tn],
|
|
31302
|
+
[kn],
|
|
31303
31303
|
[sa]
|
|
31304
31304
|
];
|
|
31305
31305
|
i && a.push(
|
|
31306
31306
|
// Services
|
|
31307
31307
|
[Oa, { useClass: vh }],
|
|
31308
31308
|
[Ot, { useClass: Ws }],
|
|
31309
|
-
[kt, { useClass:
|
|
31310
|
-
[
|
|
31309
|
+
[kt, { useClass: vs }],
|
|
31310
|
+
[Tr, { useClass: Uh }],
|
|
31311
31311
|
//Controller
|
|
31312
|
-
[
|
|
31313
|
-
[
|
|
31314
|
-
[Tn],
|
|
31312
|
+
[Pn],
|
|
31313
|
+
[Fn],
|
|
31315
31314
|
[Bn],
|
|
31315
|
+
[In],
|
|
31316
31316
|
// Calculation engine
|
|
31317
|
-
[
|
|
31318
|
-
[
|
|
31319
|
-
[
|
|
31317
|
+
[Ar],
|
|
31318
|
+
[vr],
|
|
31319
|
+
[Cr],
|
|
31320
31320
|
// AstNode factory
|
|
31321
31321
|
[Do],
|
|
31322
|
-
[Nn],
|
|
31323
31322
|
[On],
|
|
31324
|
-
[vo],
|
|
31325
31323
|
[Mn],
|
|
31326
|
-
[
|
|
31324
|
+
[vo],
|
|
31327
31325
|
[wn],
|
|
31326
|
+
[Nn],
|
|
31328
31327
|
[Sn],
|
|
31329
31328
|
[Dn],
|
|
31329
|
+
[Ln],
|
|
31330
31330
|
[To]
|
|
31331
31331
|
), a.forEach((e) => this._injector.add(e));
|
|
31332
31332
|
}
|
|
@@ -31334,11 +31334,11 @@ let Gi = (Ns = class extends lc {
|
|
|
31334
31334
|
var i;
|
|
31335
31335
|
(i = this._config) != null && i.notExecuteFormula || [
|
|
31336
31336
|
[zs, { useClass: Js }],
|
|
31337
|
-
[
|
|
31337
|
+
[es, { useClass: jh }],
|
|
31338
31338
|
[Xs, { useClass: Zs }]
|
|
31339
31339
|
].forEach((e) => this._injector.add(e));
|
|
31340
31340
|
}
|
|
31341
|
-
}, A(
|
|
31341
|
+
}, A(Os, "pluginName", kb), Os);
|
|
31342
31342
|
Gi = Fb([
|
|
31343
31343
|
Hi(1, ye(Wi)),
|
|
31344
31344
|
Hi(2, ia)
|
|
@@ -31347,25 +31347,25 @@ export {
|
|
|
31347
31347
|
Tb as ActiveDirtyManagerService,
|
|
31348
31348
|
q as ArrayValueObject,
|
|
31349
31349
|
Do as AstRootNodeFactory,
|
|
31350
|
-
|
|
31350
|
+
vr as AstTreeBuilder,
|
|
31351
31351
|
kf as AsyncArrayObject,
|
|
31352
31352
|
Jb as AsyncCustomFunction,
|
|
31353
31353
|
Ff as AsyncObject,
|
|
31354
31354
|
V as BaseFunction,
|
|
31355
|
-
|
|
31355
|
+
Zn as BaseReferenceObject,
|
|
31356
31356
|
$t as BaseValueObject,
|
|
31357
31357
|
er as BooleanValue,
|
|
31358
31358
|
T as BooleanValueObject,
|
|
31359
|
-
|
|
31359
|
+
Pn as CalculateController,
|
|
31360
31360
|
Js as CalculateFormulaService,
|
|
31361
31361
|
Lm as CustomFunction,
|
|
31362
31362
|
kh as DEFAULT_INTERVAL_COUNT,
|
|
31363
|
-
|
|
31363
|
+
xs as DefinedNamesService,
|
|
31364
31364
|
xh as DependencyManagerBaseService,
|
|
31365
31365
|
jh as DependencyManagerService,
|
|
31366
31366
|
Zb as ENGINE_FORMULA_CYCLE_REFERENCE_COUNT,
|
|
31367
31367
|
Ca as ENGINE_FORMULA_PLUGIN_CONFIG_KEY,
|
|
31368
|
-
|
|
31368
|
+
Rr as ERROR_TYPE_SET,
|
|
31369
31369
|
m as ErrorType,
|
|
31370
31370
|
g as ErrorValueObject,
|
|
31371
31371
|
ea as FUNCTION_NAMES_ARRAY,
|
|
@@ -31384,25 +31384,25 @@ export {
|
|
|
31384
31384
|
yb as FUNCTION_NAMES_UNIVER,
|
|
31385
31385
|
Hu as FUNCTION_NAMES_WEB,
|
|
31386
31386
|
Uh as FeatureCalculationManagerService,
|
|
31387
|
-
|
|
31388
|
-
|
|
31387
|
+
vs as FormulaCurrentConfigService,
|
|
31388
|
+
dr as FormulaDataModel,
|
|
31389
31389
|
Zs as FormulaDependencyGenerator,
|
|
31390
|
-
|
|
31390
|
+
ys as FormulaDependencyTree,
|
|
31391
31391
|
Ks as FormulaDependencyTreeType,
|
|
31392
31392
|
wi as FormulaDependencyTreeVirtual,
|
|
31393
31393
|
Je as FormulaExecuteStageType,
|
|
31394
|
-
|
|
31394
|
+
Lr as FormulaExecutedStateType,
|
|
31395
31395
|
Ws as FormulaRuntimeService,
|
|
31396
|
-
|
|
31396
|
+
On as FunctionNodeFactory,
|
|
31397
31397
|
th as FunctionService,
|
|
31398
31398
|
Ac as FunctionType,
|
|
31399
31399
|
Gu as GlobalComputingStatusService,
|
|
31400
31400
|
Qs as HyperlinkEngineFormulaService,
|
|
31401
31401
|
Bb as IActiveDirtyManagerService,
|
|
31402
31402
|
zs as ICalculateFormulaService,
|
|
31403
|
-
|
|
31404
|
-
|
|
31405
|
-
|
|
31403
|
+
Vr as IDefinedNamesService,
|
|
31404
|
+
es as IDependencyManagerService,
|
|
31405
|
+
Tr as IFeatureCalculationManagerService,
|
|
31406
31406
|
kt as IFormulaCurrentConfigService,
|
|
31407
31407
|
Xs as IFormulaDependencyGenerator,
|
|
31408
31408
|
Ot as IFormulaRuntimeService,
|
|
@@ -31411,30 +31411,30 @@ export {
|
|
|
31411
31411
|
Oa as IOtherFormulaManagerService,
|
|
31412
31412
|
go as ISheetRowFilteredService,
|
|
31413
31413
|
Qu as ISuperTableService,
|
|
31414
|
-
|
|
31415
|
-
|
|
31414
|
+
Ar as Interpreter,
|
|
31415
|
+
Mn as LambdaNodeFactory,
|
|
31416
31416
|
vo as LambdaParameterNodeFactory,
|
|
31417
31417
|
Na as LambdaValueObjectObject,
|
|
31418
|
-
|
|
31418
|
+
Cr as Lexer,
|
|
31419
31419
|
ae as LexerNode,
|
|
31420
31420
|
ga as LexerTreeBuilder,
|
|
31421
31421
|
ue as NullValueObject,
|
|
31422
31422
|
y as NumberValueObject,
|
|
31423
|
-
|
|
31423
|
+
wn as OperatorNodeFactory,
|
|
31424
31424
|
vh as OtherFormulaManagerService,
|
|
31425
|
-
|
|
31426
|
-
|
|
31427
|
-
|
|
31425
|
+
Nn as PrefixNodeFactory,
|
|
31426
|
+
pn as RangeReferenceObject,
|
|
31427
|
+
Sn as ReferenceNodeFactory,
|
|
31428
31428
|
Bc as RegisterFunctionMutation,
|
|
31429
31429
|
ao as RemoveDefinedNameMutation,
|
|
31430
31430
|
fa as RemoveFeatureCalculationMutation,
|
|
31431
31431
|
ma as RemoveOtherFormulaMutation,
|
|
31432
31432
|
zc as RemoveSuperTableMutation,
|
|
31433
|
-
|
|
31433
|
+
Ss as SetArrayFormulaDataMutation,
|
|
31434
31434
|
ca as SetDefinedNameMutation,
|
|
31435
31435
|
Xb as SetDefinedNameMutationFactory,
|
|
31436
31436
|
la as SetFeatureCalculationMutation,
|
|
31437
|
-
|
|
31437
|
+
_n as SetFormulaCalculationNotificationMutation,
|
|
31438
31438
|
uo as SetFormulaCalculationResultMutation,
|
|
31439
31439
|
io as SetFormulaCalculationStartMutation,
|
|
31440
31440
|
oo as SetFormulaCalculationStopMutation,
|
|
@@ -31444,17 +31444,17 @@ export {
|
|
|
31444
31444
|
lo as SetSuperTableOptionMutation,
|
|
31445
31445
|
cl as SheetRowFilteredService,
|
|
31446
31446
|
j as StringValueObject,
|
|
31447
|
-
|
|
31447
|
+
Dn as SuffixNodeFactory,
|
|
31448
31448
|
jb as SuperTableService,
|
|
31449
|
-
|
|
31449
|
+
Ln as UnionNodeFactory,
|
|
31450
31450
|
Gi as UniverFormulaEnginePlugin,
|
|
31451
31451
|
To as ValueNodeFactory,
|
|
31452
31452
|
Vt as ValueObjectFactory,
|
|
31453
31453
|
$ as compareToken,
|
|
31454
31454
|
vc as convertUnitDataToRuntime,
|
|
31455
31455
|
Hh as deserializeRangeForR1C1,
|
|
31456
|
-
|
|
31457
|
-
|
|
31456
|
+
Pr as deserializeRangeWithSheet,
|
|
31457
|
+
gr as deserializeRangeWithSheetWithCache,
|
|
31458
31458
|
qh as functionArray,
|
|
31459
31459
|
wm as functionCompatibility,
|
|
31460
31460
|
Sm as functionCube,
|
|
@@ -31476,17 +31476,17 @@ export {
|
|
|
31476
31476
|
or as generateRandomDependencyTreeId,
|
|
31477
31477
|
ui as generateStringWithSequence,
|
|
31478
31478
|
qb as getAbsoluteRefTypeWitString,
|
|
31479
|
-
|
|
31479
|
+
on as getAbsoluteRefTypeWithSingleString,
|
|
31480
31480
|
ty as getObjectValue,
|
|
31481
31481
|
Kb as getRangeWithRefsString,
|
|
31482
31482
|
zb as handleNumfmtInCell,
|
|
31483
31483
|
ua as handleRefStringInfo,
|
|
31484
31484
|
yc as includeFormulaLexerToken,
|
|
31485
31485
|
li as initSheetFormulaData,
|
|
31486
|
-
|
|
31486
|
+
an as isFormulaLexerToken,
|
|
31487
31487
|
_c as isInDirtyRange,
|
|
31488
31488
|
ro as isReferenceString,
|
|
31489
|
-
|
|
31489
|
+
un as isReferenceStringWithEffectiveColumn,
|
|
31490
31490
|
Hc as isReferenceStrings,
|
|
31491
31491
|
Wb as matchRefDrawToken,
|
|
31492
31492
|
K as matchToken,
|
|
@@ -31494,10 +31494,10 @@ export {
|
|
|
31494
31494
|
X as operatorToken,
|
|
31495
31495
|
$e as sequenceNodeType,
|
|
31496
31496
|
Bt as serializeRange,
|
|
31497
|
-
|
|
31497
|
+
Ds as serializeRangeToRefString,
|
|
31498
31498
|
kc as serializeRangeWithSheet,
|
|
31499
31499
|
$c as serializeRangeWithSpreadsheet,
|
|
31500
|
-
|
|
31500
|
+
hs as singleReferenceToGrid,
|
|
31501
31501
|
bi as strip,
|
|
31502
31502
|
Pf as stripErrorMargin
|
|
31503
31503
|
};
|