@univerjs/sheets-conditional-formatting 0.5.0-alpha.0 → 0.5.0-beta.1
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 +1 -1
- package/lib/es/index.js +1010 -1292
- package/lib/types/render/data-bar.render.d.ts +1 -1
- package/lib/types/render/icon.render.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -12
package/lib/es/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Tools as
|
|
5
|
-
import { Subject as
|
|
6
|
-
import { bufferTime as
|
|
7
|
-
import { SheetInterceptorService as
|
|
8
|
-
import { isObject as
|
|
9
|
-
import { IActiveDirtyManagerService as
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
const
|
|
1
|
+
var B2 = Object.defineProperty;
|
|
2
|
+
var k2 = (n, i, t) => i in n ? B2(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t;
|
|
3
|
+
var E = (n, i, t) => k2(n, typeof i != "symbol" ? i + "" : i, t);
|
|
4
|
+
import { Tools as Y, Inject as M, Injector as o2, ObjectMatrix as I, Range as R, CommandType as Q, ICommandService as C2, Disposable as x2, toDisposable as V2, RefAlias as U2, CellValueType as B, BooleanNumber as _2, dayjs as x, ColorKit as M2, createInterceptorKey as N2, IUniverInstanceService as O2, IResourceManagerService as T2, InterceptorManager as P2, UniverInstanceType as l2, Rectangle as H, Plugin as $2, IConfigService as W2 } from "@univerjs/core";
|
|
5
|
+
import { Subject as s2, Observable as q2 } from "rxjs";
|
|
6
|
+
import { bufferTime as y2, filter as D2, map as Z2 } from "rxjs/operators";
|
|
7
|
+
import { SheetInterceptorService as j2, RemoveSheetCommand as G2, ReorderRangeMutation as H2, MoveRangeMutation as X2, MoveColsMutation as Y2, MoveRowsMutation as K2, InsertRowMutation as J2, RemoveRowMutation as z2, RemoveColMutation as Q2, InsertColMutation as e0, SetRangeValuesMutation as t0 } from "@univerjs/sheets";
|
|
8
|
+
import { isObject as i0, SpreadsheetExtensionRegistry as R2, SheetExtension as I2, FIX_ONE_PIXEL_BLUR_OFFSET as s0 } from "@univerjs/engine-render";
|
|
9
|
+
import { IActiveDirtyManagerService as n0, SetFormulaCalculationResultMutation as r0, SetOtherFormulaMutation as a0, RemoveOtherFormulaMutation as o0, BooleanValue as w2, ERROR_TYPE_SET as E2 } from "@univerjs/engine-formula";
|
|
10
|
+
const L2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
11
|
+
var b = /* @__PURE__ */ ((n) => (n.beginsWith = "beginsWith", n.endsWith = "endsWith", n.containsText = "containsText", n.notContainsText = "notContainsText", n.equal = "equal", n.notEqual = "notEqual", n.containsBlanks = "containsBlanks", n.notContainsBlanks = "notContainsBlanks", n.containsErrors = "containsErrors", n.notContainsErrors = "notContainsErrors", n))(b || {}), S = /* @__PURE__ */ ((n) => (n.today = "today", n.yesterday = "yesterday", n.tomorrow = "tomorrow", n.last7Days = "last7Days", n.thisMonth = "thisMonth", n.lastMonth = "lastMonth", n.nextMonth = "nextMonth", n.thisWeek = "thisWeek", n.lastWeek = "lastWeek", n.nextWeek = "nextWeek", n))(S || {}), p = /* @__PURE__ */ ((n) => (n.greaterThan = "greaterThan", n.greaterThanOrEqual = "greaterThanOrEqual", n.lessThan = "lessThan", n.lessThanOrEqual = "lessThanOrEqual", n.notBetween = "notBetween", n.between = "between", n.equal = "equal", n.notEqual = "notEqual", n))(p || {}), L = /* @__PURE__ */ ((n) => (n.highlightCell = "highlightCell", n.dataBar = "dataBar", n.colorScale = "colorScale", n.iconSet = "iconSet", n))(L || {}), _ = /* @__PURE__ */ ((n) => (n.uniqueValues = "uniqueValues", n.duplicateValues = "duplicateValues", n.rank = "rank", n.text = "text", n.timePeriod = "timePeriod", n.number = "number", n.average = "average", n.formula = "formula", n))(_ || {}), U = /* @__PURE__ */ ((n) => (n.num = "num", n.min = "min", n.max = "max", n.percent = "percent", n.percentile = "percentile", n.formula = "formula", n))(U || {});
|
|
12
|
+
const C1 = "#fff", f1 = "#000000", m1 = () => ({
|
|
13
13
|
cfId: void 0,
|
|
14
14
|
ranges: [],
|
|
15
15
|
stopIfTrue: !1,
|
|
@@ -19,8 +19,8 @@ const U1 = "#fff", T1 = "#000000", W1 = () => ({
|
|
|
19
19
|
operator: "containsText"
|
|
20
20
|
/* containsText */
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
23
|
-
switch (
|
|
22
|
+
}), F1 = (n, i) => {
|
|
23
|
+
switch (n) {
|
|
24
24
|
case "text": {
|
|
25
25
|
if ([
|
|
26
26
|
"beginsWith",
|
|
@@ -30,7 +30,7 @@ const U1 = "#fff", T1 = "#000000", W1 = () => ({
|
|
|
30
30
|
"notContainsText",
|
|
31
31
|
"notEqual"
|
|
32
32
|
/* notEqual */
|
|
33
|
-
].includes(
|
|
33
|
+
].includes(i))
|
|
34
34
|
return "";
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
@@ -39,11 +39,11 @@ const U1 = "#fff", T1 = "#000000", W1 = () => ({
|
|
|
39
39
|
"between",
|
|
40
40
|
"notBetween"
|
|
41
41
|
/* notBetween */
|
|
42
|
-
].includes(
|
|
42
|
+
].includes(i) ? [10, 100] : 10;
|
|
43
43
|
}
|
|
44
44
|
return "";
|
|
45
|
-
},
|
|
46
|
-
switch (
|
|
45
|
+
}, w1 = (n, i) => {
|
|
46
|
+
switch (n) {
|
|
47
47
|
case "formula":
|
|
48
48
|
return "=";
|
|
49
49
|
case "max":
|
|
@@ -52,230 +52,230 @@ const U1 = "#fff", T1 = "#000000", W1 = () => ({
|
|
|
52
52
|
case "percent":
|
|
53
53
|
case "percentile":
|
|
54
54
|
case "num":
|
|
55
|
-
return
|
|
55
|
+
return i !== void 0 ? i : 10;
|
|
56
56
|
}
|
|
57
57
|
return "";
|
|
58
|
-
},
|
|
59
|
-
if (!
|
|
58
|
+
}, l0 = () => `${Y.generateRandomId(8)}`, j = (n, i, t) => {
|
|
59
|
+
if (!i)
|
|
60
60
|
return null;
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
61
|
+
const e = i.findIndex((s) => t(s) === n.id);
|
|
62
|
+
if (e < 0)
|
|
63
63
|
return null;
|
|
64
|
-
switch (
|
|
64
|
+
switch (n.type) {
|
|
65
65
|
case "after":
|
|
66
|
-
return
|
|
66
|
+
return e + 1;
|
|
67
67
|
case "before":
|
|
68
|
-
return
|
|
68
|
+
return e - 1;
|
|
69
69
|
case "self":
|
|
70
|
-
return
|
|
70
|
+
return e;
|
|
71
71
|
}
|
|
72
|
-
},
|
|
73
|
-
if (!
|
|
72
|
+
}, c0 = (n, i, t, e) => {
|
|
73
|
+
if (!t)
|
|
74
74
|
return null;
|
|
75
|
-
const
|
|
76
|
-
let r =
|
|
77
|
-
if (
|
|
75
|
+
const s = j(n, t, e);
|
|
76
|
+
let r = j(i, t, e);
|
|
77
|
+
if (s === null || r === null || s === r)
|
|
78
78
|
return;
|
|
79
|
-
const a =
|
|
80
|
-
switch (
|
|
79
|
+
const a = t.splice(s, 1)[0];
|
|
80
|
+
switch (s < r && (r = j(i, t, e)), i.type) {
|
|
81
81
|
case "before": {
|
|
82
|
-
|
|
82
|
+
t.splice(r + 1, 0, a);
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
case "self":
|
|
86
86
|
case "after": {
|
|
87
|
-
|
|
87
|
+
t.splice(r, 0, a);
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
},
|
|
92
|
-
if (
|
|
93
|
-
return [
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
-
const a =
|
|
91
|
+
}, u0 = (n, i, t, e) => {
|
|
92
|
+
if (n.type === "after" && ["after", "before"].includes(i.type))
|
|
93
|
+
return [n, i];
|
|
94
|
+
const s = { ...n }, r = { ...i };
|
|
95
|
+
if (s.type !== "after") {
|
|
96
|
+
const a = j(s, t, e);
|
|
97
97
|
if (a === null)
|
|
98
98
|
return null;
|
|
99
99
|
if (a - 1 < 0) {
|
|
100
|
-
const o =
|
|
100
|
+
const o = t[a + 1];
|
|
101
101
|
if (o)
|
|
102
|
-
|
|
102
|
+
s.id = e(o), s.type = "before";
|
|
103
103
|
else
|
|
104
104
|
return null;
|
|
105
105
|
} else {
|
|
106
|
-
const o = t
|
|
107
|
-
|
|
106
|
+
const o = e(t[a - 1]);
|
|
107
|
+
s.id = o, s.type = "after";
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
if (!["after", "before"].includes(r.type)) {
|
|
111
|
-
const a =
|
|
111
|
+
const a = j(r, t, e);
|
|
112
112
|
if (a === null)
|
|
113
113
|
return null;
|
|
114
114
|
if (a === 0)
|
|
115
115
|
r.type = "before";
|
|
116
116
|
else if (a - 1 >= 0) {
|
|
117
|
-
const o = t
|
|
117
|
+
const o = e(t[a - 1]);
|
|
118
118
|
r.id = o, r.type = "after";
|
|
119
|
-
} else if (a + 1 <=
|
|
120
|
-
const o = t
|
|
119
|
+
} else if (a + 1 <= t.length - 1) {
|
|
120
|
+
const o = e(t[a + 1]);
|
|
121
121
|
r.id = o, r.type = "before";
|
|
122
122
|
} else
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
125
|
-
return
|
|
126
|
-
},
|
|
127
|
-
if (["after", "before"].includes(
|
|
128
|
-
if (
|
|
129
|
-
return [
|
|
130
|
-
if (
|
|
131
|
-
return [
|
|
125
|
+
return s.id === r.id && s.type === r.type ? null : [s, r];
|
|
126
|
+
}, h0 = (n, i) => {
|
|
127
|
+
if (["after", "before"].includes(i.type)) {
|
|
128
|
+
if (n.type === "after")
|
|
129
|
+
return [i, n];
|
|
130
|
+
if (n.type === "before")
|
|
131
|
+
return [i, { ...n, type: "self" }];
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
|
-
},
|
|
135
|
-
var
|
|
136
|
-
for (var
|
|
137
|
-
(a =
|
|
138
|
-
return
|
|
139
|
-
},
|
|
140
|
-
let
|
|
141
|
-
constructor(
|
|
134
|
+
}, E1 = (n, i) => n.id === i.id && n.type === i.type;
|
|
135
|
+
var d0 = Object.defineProperty, g0 = Object.getOwnPropertyDescriptor, D0 = (n, i, t, e) => {
|
|
136
|
+
for (var s = e > 1 ? void 0 : e ? g0(i, t) : i, r = n.length - 1, a; r >= 0; r--)
|
|
137
|
+
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
138
|
+
return e && s && d0(i, t, s), s;
|
|
139
|
+
}, C0 = (n, i) => (t, e) => i(t, e, n);
|
|
140
|
+
let V = class {
|
|
141
|
+
constructor(n) {
|
|
142
142
|
// Map<unitID ,<sheetId ,IConditionFormattingRule[]>>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
E(this, "_model", /* @__PURE__ */ new Map());
|
|
144
|
+
E(this, "_ruleChange$", new s2());
|
|
145
|
+
E(this, "$ruleChange", this._ruleChange$.asObservable().pipe(
|
|
146
|
+
y2(16),
|
|
147
|
+
D2((n) => !!n.length),
|
|
148
148
|
// Operations for aggregated conditional formatting
|
|
149
149
|
// Adding and then deleting the same conditional format for multiple times will not result in any changes being propagated externally
|
|
150
150
|
// When multiple settings are applied to the same conditional format, only the last setting will be propagated externally.
|
|
151
|
-
(
|
|
152
|
-
|
|
153
|
-
next: (
|
|
154
|
-
const
|
|
151
|
+
(n) => new q2((i) => {
|
|
152
|
+
n.subscribe({
|
|
153
|
+
next: (t) => {
|
|
154
|
+
const e = (o) => `${o.unitId}_${o.subUnitId}_${o.rule.cfId}`, s = (o) => {
|
|
155
155
|
const l = o.findIndex((h) => h.type === "add"), c = o.findIndex((h) => h.type === "delete");
|
|
156
156
|
l !== -1 && c !== -1 && c > l && o.splice(l, c - l + 1);
|
|
157
|
-
}, r =
|
|
158
|
-
const h =
|
|
157
|
+
}, r = t.reduce((o, l, c) => {
|
|
158
|
+
const h = e(l);
|
|
159
159
|
return o[h] || (o[h] = []), o[h].push({ ...l, _index: c }), o;
|
|
160
160
|
}, {});
|
|
161
161
|
for (const o in r) {
|
|
162
162
|
const l = r[o];
|
|
163
|
-
l.length >= 2 &&
|
|
163
|
+
l.length >= 2 && s(l);
|
|
164
164
|
}
|
|
165
165
|
Object.keys(r).reduce((o, l) => {
|
|
166
166
|
const c = r[l];
|
|
167
167
|
return o.push(...c), o;
|
|
168
168
|
}, []).sort((o, l) => o._index - l._index).map((o) => o).forEach((o) => {
|
|
169
|
-
|
|
169
|
+
i.next(o);
|
|
170
170
|
});
|
|
171
171
|
},
|
|
172
|
-
error: (
|
|
173
|
-
complete: () =>
|
|
172
|
+
error: (t) => i.error(t),
|
|
173
|
+
complete: () => i.complete()
|
|
174
174
|
});
|
|
175
175
|
})
|
|
176
176
|
));
|
|
177
|
-
this._injector =
|
|
177
|
+
this._injector = n;
|
|
178
178
|
}
|
|
179
|
-
_ensureList(
|
|
180
|
-
let
|
|
181
|
-
if (!
|
|
182
|
-
|
|
183
|
-
let
|
|
184
|
-
|
|
179
|
+
_ensureList(n, i) {
|
|
180
|
+
let t = this.getSubunitRules(n, i);
|
|
181
|
+
if (!t) {
|
|
182
|
+
t = [];
|
|
183
|
+
let e = this._model.get(n);
|
|
184
|
+
e || (e = /* @__PURE__ */ new Map(), this._model.set(n, e)), e.set(i, t);
|
|
185
185
|
}
|
|
186
|
-
return
|
|
186
|
+
return t;
|
|
187
187
|
}
|
|
188
|
-
getRule(
|
|
189
|
-
const
|
|
190
|
-
return
|
|
188
|
+
getRule(n, i, t) {
|
|
189
|
+
const e = this.getSubunitRules(n, i);
|
|
190
|
+
return e ? e.find((s) => s.cfId === t) : null;
|
|
191
191
|
}
|
|
192
|
-
getUnitRules(
|
|
193
|
-
return this._model.get(
|
|
192
|
+
getUnitRules(n) {
|
|
193
|
+
return this._model.get(n) || null;
|
|
194
194
|
}
|
|
195
|
-
getSubunitRules(
|
|
196
|
-
var
|
|
197
|
-
return ((
|
|
195
|
+
getSubunitRules(n, i) {
|
|
196
|
+
var e;
|
|
197
|
+
return ((e = this._model.get(n)) == null ? void 0 : e.get(i)) || null;
|
|
198
198
|
}
|
|
199
|
-
deleteRule(
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
const
|
|
203
|
-
r && (
|
|
199
|
+
deleteRule(n, i, t) {
|
|
200
|
+
const e = this.getSubunitRules(n, i);
|
|
201
|
+
if (e) {
|
|
202
|
+
const s = e.findIndex((a) => a.cfId === t), r = e[s];
|
|
203
|
+
r && (e.splice(s, 1), this._ruleChange$.next({ rule: r, subUnitId: i, unitId: n, type: "delete" }));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
setRule(
|
|
207
|
-
const r = this._ensureList(
|
|
206
|
+
setRule(n, i, t, e) {
|
|
207
|
+
const r = this._ensureList(n, i).find((a) => a.cfId === e);
|
|
208
208
|
if (r) {
|
|
209
|
-
const a =
|
|
210
|
-
Object.assign(r,
|
|
209
|
+
const a = Y.deepClone(r);
|
|
210
|
+
Object.assign(r, t), this._ruleChange$.next({ rule: r, subUnitId: i, unitId: n, type: "set", oldRule: a });
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
addRule(
|
|
214
|
-
const
|
|
215
|
-
|
|
213
|
+
addRule(n, i, t) {
|
|
214
|
+
const e = this._ensureList(n, i);
|
|
215
|
+
e.find((r) => r.cfId === t.cfId) || e.unshift(t), this._ruleChange$.next({ rule: t, subUnitId: i, unitId: n, type: "add" });
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
* example [1,2,3,4,5,6],if you move behind 5 to 2, then cfId=5,targetId=2.
|
|
219
219
|
* if targetId does not exist, it defaults to top
|
|
220
220
|
*/
|
|
221
|
-
moveRulePriority(
|
|
222
|
-
const
|
|
221
|
+
moveRulePriority(n, i, t, e) {
|
|
222
|
+
const s = this._ensureList(n, i), r = j(t, s, (l) => l.cfId), a = j(e, s, (l) => l.cfId);
|
|
223
223
|
if (a === null || r === null || a === r)
|
|
224
224
|
return;
|
|
225
|
-
const o =
|
|
226
|
-
o && (
|
|
225
|
+
const o = s[r];
|
|
226
|
+
o && (c0(t, e, s, (l) => l.cfId), this._ruleChange$.next({ rule: o, subUnitId: i, unitId: n, type: "sort" }));
|
|
227
227
|
}
|
|
228
|
-
createCfId(
|
|
229
|
-
return
|
|
228
|
+
createCfId(n, i) {
|
|
229
|
+
return l0();
|
|
230
230
|
}
|
|
231
|
-
deleteUnitId(
|
|
232
|
-
this._model.delete(
|
|
231
|
+
deleteUnitId(n) {
|
|
232
|
+
this._model.delete(n);
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
],
|
|
238
|
-
class
|
|
235
|
+
V = D0([
|
|
236
|
+
C0(0, M(o2))
|
|
237
|
+
], V);
|
|
238
|
+
class c2 {
|
|
239
239
|
constructor() {
|
|
240
240
|
// Map<unitID ,<sheetId ,ObjectMatrix>>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
E(this, "_model", /* @__PURE__ */ new Map());
|
|
242
|
+
E(this, "_markDirty$", new s2());
|
|
243
|
+
E(this, "markDirty$", this._markDirty$.asObservable());
|
|
244
244
|
}
|
|
245
|
-
_ensureMatrix(
|
|
246
|
-
let
|
|
247
|
-
if (!
|
|
248
|
-
|
|
249
|
-
let
|
|
250
|
-
|
|
245
|
+
_ensureMatrix(i, t) {
|
|
246
|
+
let e = this.getMatrix(i, t);
|
|
247
|
+
if (!e) {
|
|
248
|
+
e = new I();
|
|
249
|
+
let s = this._model.get(i);
|
|
250
|
+
s || (s = /* @__PURE__ */ new Map(), this._model.set(i, s)), s.set(t, e);
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return e;
|
|
253
253
|
}
|
|
254
|
-
getMatrix(
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
254
|
+
getMatrix(i, t) {
|
|
255
|
+
var e;
|
|
256
|
+
return (e = this._model.get(i)) == null ? void 0 : e.get(t);
|
|
257
257
|
}
|
|
258
|
-
getCellCf(
|
|
259
|
-
const a = r != null ? r : this.getMatrix(
|
|
260
|
-
return a ? a.getValue(
|
|
258
|
+
getCellCf(i, t, e, s, r) {
|
|
259
|
+
const a = r != null ? r : this.getMatrix(i, t);
|
|
260
|
+
return a ? a.getValue(e, s) : null;
|
|
261
261
|
}
|
|
262
|
-
setCellCfRuleCache(
|
|
263
|
-
const l = this._ensureMatrix(
|
|
262
|
+
setCellCfRuleCache(i, t, e, s, r, a) {
|
|
263
|
+
const l = this._ensureMatrix(i, t).getValue(e, s), c = l == null ? void 0 : l.cfList.find((h) => h.cfId === r);
|
|
264
264
|
c && (c.ruleCache = a, c.isDirty = !1);
|
|
265
265
|
}
|
|
266
|
-
deleteCellCf(
|
|
267
|
-
const o = a != null ? a : this.getMatrix(
|
|
266
|
+
deleteCellCf(i, t, e, s, r, a) {
|
|
267
|
+
const o = a != null ? a : this.getMatrix(i, t);
|
|
268
268
|
if (o) {
|
|
269
|
-
const l = o.getValue(
|
|
269
|
+
const l = o.getValue(e, s);
|
|
270
270
|
if (l) {
|
|
271
271
|
const c = l.cfList, h = c.findIndex((u) => u.cfId === r);
|
|
272
|
-
h > -1 && c.splice(h, 1), c.length || o.realDeleteValue(
|
|
272
|
+
h > -1 && c.splice(h, 1), c.length || o.realDeleteValue(e, s);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
pushCellCf(
|
|
277
|
-
const a = this._ensureMatrix(
|
|
278
|
-
let o = a.getValue(
|
|
276
|
+
pushCellCf(i, t, e, s, r) {
|
|
277
|
+
const a = this._ensureMatrix(i, t);
|
|
278
|
+
let o = a.getValue(e, s);
|
|
279
279
|
if (!o)
|
|
280
280
|
o = { cfList: [{ cfId: r, isDirty: !0 }] };
|
|
281
281
|
else {
|
|
@@ -284,10 +284,10 @@ class I2 {
|
|
|
284
284
|
return;
|
|
285
285
|
l.push({ cfId: r, isDirty: !0 });
|
|
286
286
|
}
|
|
287
|
-
a.setValue(
|
|
287
|
+
a.setValue(e, s, o);
|
|
288
288
|
}
|
|
289
|
-
sortCellCf(
|
|
290
|
-
const a = this.getCellCf(
|
|
289
|
+
sortCellCf(i, t, e, s, r) {
|
|
290
|
+
const a = this.getCellCf(i, t, e, s);
|
|
291
291
|
if (a) {
|
|
292
292
|
const o = a.cfList.map((l) => {
|
|
293
293
|
const c = r.get(l.cfId);
|
|
@@ -296,48 +296,48 @@ class I2 {
|
|
|
296
296
|
a.cfList = o;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
markRuleDirty(
|
|
299
|
+
markRuleDirty(i, t, e, s, r) {
|
|
300
300
|
const a = (o, l) => {
|
|
301
|
-
const c = this.getCellCf(
|
|
301
|
+
const c = this.getCellCf(i, t, o, l);
|
|
302
302
|
if (c) {
|
|
303
|
-
const h = c.cfList.find((u) => u.cfId ===
|
|
303
|
+
const h = c.cfList.find((u) => u.cfId === e.cfId);
|
|
304
304
|
h && (h.isDirty = !0);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
s !== void 0 && r !== void 0 ? (a(s, r), this._markDirty$.next({ rule: e, unitId: i, subUnitId: t })) : (e.ranges.forEach((o) => {
|
|
308
|
+
R.foreach(o, (l, c) => {
|
|
309
309
|
a(l, c);
|
|
310
310
|
});
|
|
311
|
-
}), this._markDirty$.next({ rule:
|
|
311
|
+
}), this._markDirty$.next({ rule: e, unitId: i, subUnitId: t }));
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const f0 = {
|
|
315
315
|
mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
316
316
|
warn: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
317
317
|
correct: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
318
|
-
},
|
|
318
|
+
}, m0 = {
|
|
319
319
|
starEmpty: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
320
320
|
starIncomplete: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",
|
|
321
321
|
starFull: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
322
|
-
},
|
|
322
|
+
}, F0 = {
|
|
323
323
|
progress0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
324
324
|
progress25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
325
325
|
progress50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
326
326
|
progress75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
327
327
|
progress100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
328
|
-
},
|
|
328
|
+
}, w0 = {
|
|
329
329
|
signal0: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
330
330
|
signal25: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
331
331
|
signal50: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
332
332
|
signal75: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
333
333
|
signal100: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
334
|
-
},
|
|
334
|
+
}, E0 = {
|
|
335
335
|
guffaw: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
336
336
|
smile: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
337
337
|
noninductive: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
338
338
|
dissatisfied: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
339
339
|
impatient: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
340
|
-
},
|
|
340
|
+
}, v0 = {
|
|
341
341
|
"down-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
342
342
|
"right-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
343
343
|
"up-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
@@ -348,7 +348,7 @@ const V0 = {
|
|
|
348
348
|
"up-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
349
349
|
"rightAndDown-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
350
350
|
"rightAndUp-gray": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
351
|
-
},
|
|
351
|
+
}, p0 = {
|
|
352
352
|
cross: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
353
353
|
up: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
354
354
|
down: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
@@ -364,42 +364,42 @@ const V0 = {
|
|
|
364
364
|
"indicate-greed": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
365
365
|
"indicate-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
366
366
|
"indicate-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
367
|
-
},
|
|
367
|
+
}, A0 = {
|
|
368
368
|
mistake2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
369
369
|
warn2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
370
370
|
correct2: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"
|
|
371
|
-
},
|
|
371
|
+
}, x0 = {
|
|
372
372
|
"flag-green": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
373
373
|
"flag-gold": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
374
374
|
"flag-red": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
375
|
-
},
|
|
375
|
+
}, _0 = {
|
|
376
376
|
"cell-0": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
377
377
|
"cell-25": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
378
378
|
"cell-50": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
379
379
|
"cell-75": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A",
|
|
380
380
|
"cell-100": "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
381
|
-
},
|
|
382
|
-
feedback:
|
|
383
|
-
star:
|
|
384
|
-
progress:
|
|
385
|
-
signal:
|
|
386
|
-
feeling:
|
|
387
|
-
arrow:
|
|
388
|
-
shape:
|
|
389
|
-
feedback2:
|
|
390
|
-
flag:
|
|
391
|
-
cell:
|
|
392
|
-
},
|
|
381
|
+
}, f = {
|
|
382
|
+
feedback: f0,
|
|
383
|
+
star: m0,
|
|
384
|
+
progress: F0,
|
|
385
|
+
signal: w0,
|
|
386
|
+
feeling: E0,
|
|
387
|
+
arrow: v0,
|
|
388
|
+
shape: p0,
|
|
389
|
+
feedback2: A0,
|
|
390
|
+
flag: x0,
|
|
391
|
+
cell: _0
|
|
392
|
+
}, M0 = [
|
|
393
393
|
{
|
|
394
394
|
title: "sheet.cf.iconSet.direction",
|
|
395
395
|
group: [
|
|
396
|
-
{ name: "3Arrows", list: [
|
|
397
|
-
{ name: "3ArrowsGray", list: [
|
|
398
|
-
{ name: "4Arrows", list: [
|
|
399
|
-
{ name: "4ArrowsGray", list: [
|
|
400
|
-
{ name: "5Arrows", list: [
|
|
401
|
-
{ name: "5ArrowsGray", list: [
|
|
402
|
-
{ name: "3Triangles", list: [
|
|
396
|
+
{ name: "3Arrows", list: [f.arrow["up-green"], f.arrow["right-gold"], f.arrow["down-red"]] },
|
|
397
|
+
{ name: "3ArrowsGray", list: [f.arrow["up-gray"], f.arrow["right-gray"], f.arrow["down-gray"]] },
|
|
398
|
+
{ name: "4Arrows", list: [f.arrow["up-green"], f.arrow["rightAndUp-gold"], f.arrow["rightAndDown-gold"], f.arrow["down-red"]] },
|
|
399
|
+
{ name: "4ArrowsGray", list: [f.arrow["up-gray"], f.arrow["rightAndUp-gray"], f.arrow["rightAndDown-gray"], f.arrow["down-gray"]] },
|
|
400
|
+
{ name: "5Arrows", list: [f.arrow["up-green"], f.arrow["rightAndUp-gold"], f.arrow["right-gold"], f.arrow["rightAndDown-gold"], f.arrow["down-red"]] },
|
|
401
|
+
{ name: "5ArrowsGray", list: [f.arrow["up-gray"], f.arrow["rightAndUp-gray"], f.arrow["right-gray"], f.arrow["rightAndDown-gray"], f.arrow["down-gray"]] },
|
|
402
|
+
{ name: "3Triangles", list: [f.shape.up, f.shape.cross, f.shape.down] }
|
|
403
403
|
]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
@@ -407,20 +407,20 @@ const V0 = {
|
|
|
407
407
|
group: [
|
|
408
408
|
{
|
|
409
409
|
name: "3TrafficLights1",
|
|
410
|
-
list: [
|
|
410
|
+
list: [f.shape["roundness-greed"], f.shape["roundness-gold"], f.shape["roundness-red"]]
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
name: "3Signs",
|
|
414
|
-
list: [
|
|
414
|
+
list: [f.shape["roundness-greed"], f.shape["triangle-gold"], f.shape["rhomboid-red"]]
|
|
415
415
|
},
|
|
416
|
-
{ name: "3TrafficLights2", list: [
|
|
416
|
+
{ name: "3TrafficLights2", list: [f.shape["indicate-greed"], f.shape["indicate-gold"], f.shape["indicate-red"]] },
|
|
417
417
|
{
|
|
418
418
|
name: "4RedToBlack",
|
|
419
|
-
list: [
|
|
419
|
+
list: [f.shape["roundness-red"], f.shape["roundness-pink"], f.shape["roundness-gray"], f.shape["roundness-black"]]
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
name: "4TrafficLights",
|
|
423
|
-
list: [
|
|
423
|
+
list: [f.shape["roundness-greed"], f.shape["roundness-gold"], f.shape["roundness-red"], f.shape["roundness-black"]]
|
|
424
424
|
}
|
|
425
425
|
]
|
|
426
426
|
},
|
|
@@ -429,15 +429,15 @@ const V0 = {
|
|
|
429
429
|
group: [
|
|
430
430
|
{
|
|
431
431
|
name: "3Symbols",
|
|
432
|
-
list: [
|
|
432
|
+
list: [f.feedback.correct, f.feedback.warn, f.feedback.mistake]
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
name: "3Symbols2",
|
|
436
|
-
list: [
|
|
436
|
+
list: [f.feedback2.correct2, f.feedback2.warn2, f.feedback2.mistake2]
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
name: "3Flags",
|
|
440
|
-
list: [
|
|
440
|
+
list: [f.flag["flag-green"], f.flag["flag-gold"], f.flag["flag-red"]]
|
|
441
441
|
}
|
|
442
442
|
]
|
|
443
443
|
},
|
|
@@ -446,294 +446,294 @@ const V0 = {
|
|
|
446
446
|
group: [
|
|
447
447
|
{
|
|
448
448
|
name: "4Rating",
|
|
449
|
-
list: [
|
|
449
|
+
list: [f.signal.signal25, f.signal.signal50, f.signal.signal75, f.signal.signal100]
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
name: "5Rating",
|
|
453
|
-
list: [
|
|
453
|
+
list: [f.signal.signal0, f.signal.signal25, f.signal.signal50, f.signal.signal75, f.signal.signal100]
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
name: "5Quarters",
|
|
457
|
-
list: [
|
|
457
|
+
list: [f.progress.progress100, f.progress.progress75, f.progress.progress50, f.progress.progress25, f.progress.progress0]
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
name: "_5Felling",
|
|
461
|
-
list: [
|
|
461
|
+
list: [f.feeling.guffaw, f.feeling.smile, f.feeling.noninductive, f.feeling.dissatisfied, f.feeling.impatient]
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
464
|
name: "5Boxes",
|
|
465
|
-
list: [
|
|
465
|
+
list: [f.cell["cell-100"], f.cell["cell-75"], f.cell["cell-50"], f.cell["cell-25"], f.cell["cell-0"]]
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
name: "3Stars",
|
|
469
|
-
list: [
|
|
469
|
+
list: [f.star.starFull, f.star.starIncomplete, f.star.starEmpty]
|
|
470
470
|
}
|
|
471
471
|
]
|
|
472
472
|
}
|
|
473
|
-
],
|
|
474
|
-
const { group:
|
|
475
|
-
for (const
|
|
476
|
-
|
|
477
|
-
return
|
|
473
|
+
], n2 = M0.reduce((n, i) => {
|
|
474
|
+
const { group: t } = i;
|
|
475
|
+
for (const e of t)
|
|
476
|
+
n[e.name] = e.list;
|
|
477
|
+
return n;
|
|
478
478
|
}, {});
|
|
479
|
-
for (const
|
|
480
|
-
const
|
|
481
|
-
Object.freeze(
|
|
479
|
+
for (const n in n2) {
|
|
480
|
+
const i = n2[n];
|
|
481
|
+
Object.freeze(i);
|
|
482
482
|
}
|
|
483
|
-
const
|
|
484
|
-
type:
|
|
483
|
+
const y0 = "EMPTY_ICON_TYPE", f2 = {
|
|
484
|
+
type: Q.MUTATION,
|
|
485
485
|
id: "sheet.mutation.move-conditional-rule",
|
|
486
|
-
handler(
|
|
487
|
-
if (!
|
|
486
|
+
handler(n, i) {
|
|
487
|
+
if (!i)
|
|
488
488
|
return !1;
|
|
489
|
-
const { unitId:
|
|
490
|
-
return
|
|
489
|
+
const { unitId: t, subUnitId: e, start: s, end: r } = i;
|
|
490
|
+
return n.get(V).moveRulePriority(t, e, s, r), !0;
|
|
491
491
|
}
|
|
492
|
-
},
|
|
493
|
-
const { unitId:
|
|
494
|
-
if (!
|
|
492
|
+
}, v1 = (n) => {
|
|
493
|
+
const { unitId: i, subUnitId: t } = n, e = h0(n.start, n.end);
|
|
494
|
+
if (!e)
|
|
495
495
|
return [];
|
|
496
|
-
const [
|
|
496
|
+
const [s, r] = e;
|
|
497
497
|
return [
|
|
498
498
|
{
|
|
499
|
-
id:
|
|
500
|
-
params: { unitId:
|
|
499
|
+
id: f2.id,
|
|
500
|
+
params: { unitId: i, subUnitId: t, start: s, end: r }
|
|
501
501
|
}
|
|
502
502
|
];
|
|
503
|
-
},
|
|
504
|
-
const
|
|
503
|
+
}, R0 = (n, i) => {
|
|
504
|
+
const t = n.get(V), { unitId: e, subUnitId: s, cfId: r } = i, a = [...t.getSubunitRules(e, s) || []], o = a.findIndex((c) => c.cfId === r), l = a[o - 1];
|
|
505
505
|
if (o > -1) {
|
|
506
506
|
const c = a[o], h = [{
|
|
507
|
-
id:
|
|
508
|
-
params: { unitId:
|
|
507
|
+
id: b2.id,
|
|
508
|
+
params: { unitId: e, subUnitId: s, rule: Y.deepClone(c) }
|
|
509
509
|
}];
|
|
510
510
|
if (a.splice(o, 1), o !== 0) {
|
|
511
511
|
const u = a[0];
|
|
512
512
|
if (u) {
|
|
513
|
-
const
|
|
514
|
-
if (!
|
|
513
|
+
const g = u0({ id: u.cfId, type: "before" }, { id: l.cfId, type: "after" }, a, (m) => m.cfId);
|
|
514
|
+
if (!g)
|
|
515
515
|
return h;
|
|
516
|
-
const [d,
|
|
517
|
-
unitId:
|
|
518
|
-
subUnitId:
|
|
516
|
+
const [d, D] = g, C = {
|
|
517
|
+
unitId: e,
|
|
518
|
+
subUnitId: s,
|
|
519
519
|
start: d,
|
|
520
|
-
end:
|
|
520
|
+
end: D
|
|
521
521
|
};
|
|
522
|
-
h.push({ id:
|
|
522
|
+
h.push({ id: f2.id, params: C });
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
return h;
|
|
526
526
|
}
|
|
527
527
|
return [];
|
|
528
|
-
},
|
|
529
|
-
type:
|
|
528
|
+
}, m2 = {
|
|
529
|
+
type: Q.MUTATION,
|
|
530
530
|
id: "sheet.mutation.delete-conditional-rule",
|
|
531
|
-
handler(
|
|
532
|
-
if (!
|
|
531
|
+
handler(n, i) {
|
|
532
|
+
if (!i)
|
|
533
533
|
return !1;
|
|
534
|
-
const { unitId:
|
|
535
|
-
return
|
|
534
|
+
const { unitId: t, subUnitId: e, cfId: s } = i;
|
|
535
|
+
return n.get(V).deleteRule(t, e, s), !0;
|
|
536
536
|
}
|
|
537
|
-
},
|
|
538
|
-
type:
|
|
537
|
+
}, p1 = (n, i) => ({ id: m2.id, params: { unitId: i.unitId, subUnitId: i.subUnitId, cfId: i.rule.cfId } }), b2 = {
|
|
538
|
+
type: Q.MUTATION,
|
|
539
539
|
id: "sheet.mutation.add-conditional-rule",
|
|
540
|
-
handler(
|
|
541
|
-
if (!
|
|
540
|
+
handler(n, i) {
|
|
541
|
+
if (!i)
|
|
542
542
|
return !1;
|
|
543
|
-
const { unitId:
|
|
544
|
-
return
|
|
543
|
+
const { unitId: t, subUnitId: e, rule: s } = i;
|
|
544
|
+
return n.get(V).addRule(t, e, s), !0;
|
|
545
545
|
}
|
|
546
|
-
},
|
|
547
|
-
type:
|
|
546
|
+
}, i2 = {
|
|
547
|
+
type: Q.MUTATION,
|
|
548
548
|
id: "sheet.mutation.conditional-formatting-formula-mark-dirty",
|
|
549
549
|
handler() {
|
|
550
550
|
return !0;
|
|
551
551
|
}
|
|
552
|
-
},
|
|
553
|
-
type:
|
|
552
|
+
}, S2 = {
|
|
553
|
+
type: Q.MUTATION,
|
|
554
554
|
id: "sheet.mutation.set-conditional-rule",
|
|
555
|
-
handler(
|
|
556
|
-
if (!
|
|
555
|
+
handler(n, i) {
|
|
556
|
+
if (!i)
|
|
557
557
|
return !1;
|
|
558
|
-
const { unitId:
|
|
559
|
-
return
|
|
558
|
+
const { unitId: t, subUnitId: e, rule: s } = i, r = i.cfId || i.rule.cfId;
|
|
559
|
+
return n.get(V).setRule(t, e, s, r), !0;
|
|
560
560
|
}
|
|
561
|
-
},
|
|
562
|
-
const
|
|
561
|
+
}, A1 = (n, i) => {
|
|
562
|
+
const t = n.get(V), { unitId: e, subUnitId: s } = i, r = i.cfId || i.rule.cfId, a = t.getRule(e, s, r);
|
|
563
563
|
return a ? [
|
|
564
564
|
{
|
|
565
|
-
id:
|
|
565
|
+
id: S2.id,
|
|
566
566
|
params: {
|
|
567
|
-
unitId:
|
|
568
|
-
subUnitId:
|
|
567
|
+
unitId: e,
|
|
568
|
+
subUnitId: s,
|
|
569
569
|
cfId: r,
|
|
570
|
-
rule:
|
|
570
|
+
rule: Y.deepClone(a)
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
] : [];
|
|
574
|
-
},
|
|
575
|
-
var
|
|
576
|
-
for (var
|
|
577
|
-
(a =
|
|
578
|
-
return
|
|
579
|
-
},
|
|
580
|
-
const
|
|
581
|
-
const
|
|
582
|
-
return (
|
|
574
|
+
}, I0 = "ssheets-conditional-formatting.config", L0 = {};
|
|
575
|
+
var b0 = Object.defineProperty, S0 = Object.getOwnPropertyDescriptor, B0 = (n, i, t, e) => {
|
|
576
|
+
for (var s = e > 1 ? void 0 : e ? S0(i, t) : i, r = n.length - 1, a; r >= 0; r--)
|
|
577
|
+
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
578
|
+
return e && s && b0(i, t, s), s;
|
|
579
|
+
}, K = (n, i) => (t, e) => i(t, e, n), y = /* @__PURE__ */ ((n) => (n[n.NOT_REGISTER = 1] = "NOT_REGISTER", n[n.SUCCESS = 2] = "SUCCESS", n[n.WAIT = 3] = "WAIT", n[n.ERROR = 4] = "ERROR", n))(y || {});
|
|
580
|
+
const k0 = (n) => {
|
|
581
|
+
const i = n && n[0] && n[0][0];
|
|
582
|
+
return (i == null ? void 0 : i.t) === B.BOOLEAN ? i.v === _2.TRUE || i.v === !0 : i ? i.v : !1;
|
|
583
583
|
};
|
|
584
|
-
let
|
|
585
|
-
constructor(
|
|
584
|
+
let N = class extends x2 {
|
|
585
|
+
constructor(i, t, e, s, r) {
|
|
586
586
|
super();
|
|
587
587
|
// Cache Formula ID and formula mapping.
|
|
588
|
-
|
|
588
|
+
E(this, "_formulaMap", /* @__PURE__ */ new Map());
|
|
589
589
|
// Cache style results, style replacement needs to wait until the formula has been calculated, then replace.
|
|
590
|
-
|
|
591
|
-
this._commandService =
|
|
590
|
+
E(this, "_cache", /* @__PURE__ */ new Map());
|
|
591
|
+
this._commandService = i, this._injector = t, this._activeDirtyManagerService = e, this._conditionalFormattingViewModel = s, this._conditionalFormattingRuleModel = r, this._initFormulaCalculationResultChange(), this._initRuleChange(), this._initCache(), this.disposeWithMe(V2(() => {
|
|
592
592
|
this._cache.clear(), this._formulaMap.clear();
|
|
593
593
|
}));
|
|
594
594
|
}
|
|
595
595
|
_initCache() {
|
|
596
|
-
const
|
|
597
|
-
this.disposeWithMe(
|
|
598
|
-
const { unitId:
|
|
599
|
-
r === "end" && a && this._ensureCacheMap(
|
|
600
|
-
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((
|
|
601
|
-
if (
|
|
602
|
-
const { unitId:
|
|
603
|
-
this._deleteCache(
|
|
596
|
+
const i = this._injector.get(z);
|
|
597
|
+
this.disposeWithMe(i.ruleComputeStatus$.subscribe((t) => {
|
|
598
|
+
const { unitId: e, subUnitId: s, status: r, result: a, cfId: o } = t;
|
|
599
|
+
r === "end" && a && this._ensureCacheMap(e, s).set(o, a);
|
|
600
|
+
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((t) => {
|
|
601
|
+
if (t.type === "delete") {
|
|
602
|
+
const { unitId: e, subUnitId: s, rule: r } = t;
|
|
603
|
+
this._deleteCache(e, s, r.cfId);
|
|
604
604
|
}
|
|
605
605
|
}));
|
|
606
606
|
}
|
|
607
607
|
_initRuleChange() {
|
|
608
|
-
const
|
|
609
|
-
switch (
|
|
610
|
-
case
|
|
611
|
-
return
|
|
612
|
-
case
|
|
613
|
-
return
|
|
614
|
-
case
|
|
615
|
-
return [
|
|
616
|
-
case
|
|
617
|
-
return
|
|
608
|
+
const i = (t) => {
|
|
609
|
+
switch (t.type) {
|
|
610
|
+
case L.colorScale:
|
|
611
|
+
return t.config.some((e) => e.value.type === U.formula);
|
|
612
|
+
case L.highlightCell:
|
|
613
|
+
return t.subType === _.formula;
|
|
614
|
+
case L.dataBar:
|
|
615
|
+
return [t.config.max, t.config.min].some((e) => e.type === U.formula);
|
|
616
|
+
case L.iconSet:
|
|
617
|
+
return t.config.some((e) => e.value.type === U.formula);
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
|
-
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((
|
|
621
|
-
const { unitId:
|
|
622
|
-
|
|
620
|
+
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((t) => {
|
|
621
|
+
const { unitId: e, subUnitId: s, rule: r, oldRule: a } = t;
|
|
622
|
+
t.type === "delete" && this._removeFormulaByCfId(e, s, r.cfId), t.type === "set" && (i(r.rule) || a && i(a.rule)) && this._removeFormulaByCfId(e, s, r.cfId);
|
|
623
623
|
}));
|
|
624
624
|
}
|
|
625
625
|
_initFormulaCalculationResultChange() {
|
|
626
|
-
this.disposeWithMe(this._commandService.onCommandExecuted((
|
|
627
|
-
if (
|
|
628
|
-
const
|
|
629
|
-
for (const
|
|
630
|
-
for (const
|
|
626
|
+
this.disposeWithMe(this._commandService.onCommandExecuted((i) => {
|
|
627
|
+
if (i.id === r0.id) {
|
|
628
|
+
const t = i.params;
|
|
629
|
+
for (const e in t.unitOtherData)
|
|
630
|
+
for (const s in t.unitOtherData[e]) {
|
|
631
631
|
const r = /* @__PURE__ */ new Set();
|
|
632
|
-
for (const a in
|
|
633
|
-
const o = new
|
|
632
|
+
for (const a in t.unitOtherData[e][s]) {
|
|
633
|
+
const o = new I(t.unitOtherData[e][s][a]), l = this._ensureSubunitFormulaMap(e, s).getValue(a, ["formulaId"]);
|
|
634
634
|
if (!l)
|
|
635
635
|
continue;
|
|
636
636
|
const c = l.ranges;
|
|
637
637
|
if (!c)
|
|
638
638
|
continue;
|
|
639
|
-
const h = l.result, u = c[0].startRow,
|
|
640
|
-
o.forValue((d,
|
|
641
|
-
h.setValue(u + d,
|
|
639
|
+
const h = l.result, u = c[0].startRow, g = c[0].startColumn;
|
|
640
|
+
o.forValue((d, D, C) => {
|
|
641
|
+
h.setValue(u + d, g + D, k0(C));
|
|
642
642
|
}), l.status = 2, r.add(l.cfId);
|
|
643
643
|
}
|
|
644
644
|
for (const a of r) {
|
|
645
|
-
const o = this._conditionalFormattingRuleModel.getRule(
|
|
646
|
-
o && this._conditionalFormattingViewModel.markRuleDirty(
|
|
645
|
+
const o = this._conditionalFormattingRuleModel.getRule(e, s, a);
|
|
646
|
+
o && this._conditionalFormattingViewModel.markRuleDirty(e, s, o);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
})), this._activeDirtyManagerService.register(
|
|
651
|
-
|
|
651
|
+
i2.id,
|
|
652
652
|
{
|
|
653
|
-
commandId:
|
|
654
|
-
getDirtyData(
|
|
653
|
+
commandId: i2.id,
|
|
654
|
+
getDirtyData(i) {
|
|
655
655
|
return {
|
|
656
|
-
dirtyUnitOtherFormulaMap:
|
|
656
|
+
dirtyUnitOtherFormulaMap: i.params
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
);
|
|
661
661
|
}
|
|
662
|
-
_ensureSubunitFormulaMap(
|
|
663
|
-
let
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
return
|
|
667
|
-
}
|
|
668
|
-
_ensureCacheMap(
|
|
669
|
-
let
|
|
670
|
-
|
|
671
|
-
let
|
|
672
|
-
return
|
|
673
|
-
}
|
|
674
|
-
_deleteCache(
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
677
|
-
const r =
|
|
678
|
-
r && (
|
|
662
|
+
_ensureSubunitFormulaMap(i, t) {
|
|
663
|
+
let e = this._formulaMap.get(i);
|
|
664
|
+
e || (e = /* @__PURE__ */ new Map(), this._formulaMap.set(i, e));
|
|
665
|
+
let s = e.get(t);
|
|
666
|
+
return s || (s = new U2([], ["formulaId", "id"]), e.set(t, s)), s;
|
|
667
|
+
}
|
|
668
|
+
_ensureCacheMap(i, t) {
|
|
669
|
+
let e = this._cache.get(i);
|
|
670
|
+
e || (e = /* @__PURE__ */ new Map(), this._cache.set(i, e));
|
|
671
|
+
let s = e.get(t);
|
|
672
|
+
return s || (s = /* @__PURE__ */ new Map(), e.set(t, s)), s;
|
|
673
|
+
}
|
|
674
|
+
_deleteCache(i, t, e) {
|
|
675
|
+
const s = this._cache.get(i);
|
|
676
|
+
if (s) {
|
|
677
|
+
const r = s.get(t);
|
|
678
|
+
r && (e ? r.delete(e) : r.clear());
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
getCache(
|
|
682
|
-
return this._ensureCacheMap(
|
|
681
|
+
getCache(i, t, e) {
|
|
682
|
+
return this._ensureCacheMap(i, t).get(e);
|
|
683
683
|
}
|
|
684
|
-
getSubUnitFormulaMap(
|
|
685
|
-
var
|
|
686
|
-
return (
|
|
684
|
+
getSubUnitFormulaMap(i, t) {
|
|
685
|
+
var e;
|
|
686
|
+
return (e = this._formulaMap.get(i)) == null ? void 0 : e.get(t);
|
|
687
687
|
}
|
|
688
|
-
registerFormulaWithRange(
|
|
689
|
-
const a = this._ensureSubunitFormulaMap(
|
|
690
|
-
if (a.getValue(this.createCFormulaId(
|
|
688
|
+
registerFormulaWithRange(i, t, e, s, r = [{ startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }]) {
|
|
689
|
+
const a = this._ensureSubunitFormulaMap(i, t);
|
|
690
|
+
if (a.getValue(this.createCFormulaId(e, s), ["id"]))
|
|
691
691
|
return;
|
|
692
|
-
const o = this._createFormulaId(
|
|
692
|
+
const o = this._createFormulaId(i, t);
|
|
693
693
|
a.addValue({
|
|
694
|
-
formulaText:
|
|
695
|
-
cfId:
|
|
696
|
-
id: this.createCFormulaId(
|
|
694
|
+
formulaText: s,
|
|
695
|
+
cfId: e,
|
|
696
|
+
id: this.createCFormulaId(e, s),
|
|
697
697
|
ranges: r,
|
|
698
698
|
formulaId: o,
|
|
699
699
|
status: 3,
|
|
700
|
-
result: new
|
|
700
|
+
result: new I()
|
|
701
701
|
});
|
|
702
702
|
const l = {
|
|
703
|
-
unitId:
|
|
704
|
-
subUnitId:
|
|
703
|
+
unitId: i,
|
|
704
|
+
subUnitId: t,
|
|
705
705
|
formulaMap: {
|
|
706
706
|
[o]: {
|
|
707
|
-
f:
|
|
707
|
+
f: s,
|
|
708
708
|
ranges: r
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
|
-
this._commandService.executeCommand(
|
|
712
|
+
this._commandService.executeCommand(a0.id, l).then(() => {
|
|
713
713
|
this._commandService.executeCommand(
|
|
714
|
-
|
|
715
|
-
{ [
|
|
714
|
+
i2.id,
|
|
715
|
+
{ [i]: { [t]: { [o]: !0 } } }
|
|
716
716
|
);
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
_removeFormulaByCfId(
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
const r =
|
|
719
|
+
_removeFormulaByCfId(i, t, e) {
|
|
720
|
+
const s = this._ensureSubunitFormulaMap(i, t);
|
|
721
|
+
s.deleteValue(e);
|
|
722
|
+
const r = s.getValues().filter((o) => o.cfId === e);
|
|
723
723
|
r.forEach((o) => {
|
|
724
|
-
|
|
724
|
+
s.deleteValue(o.id, ["id"]);
|
|
725
725
|
});
|
|
726
726
|
const a = r.map((o) => o.formulaId);
|
|
727
|
-
this._commandService.executeCommand(
|
|
727
|
+
this._commandService.executeCommand(o0.id, { unitId: i, subUnitId: t, formulaIdList: a });
|
|
728
728
|
}
|
|
729
|
-
getFormulaResult(
|
|
730
|
-
const o = this.getSubUnitFormulaMap(
|
|
729
|
+
getFormulaResult(i, t, e, s, r = 0, a = 0) {
|
|
730
|
+
const o = this.getSubUnitFormulaMap(i, t);
|
|
731
731
|
if (!o)
|
|
732
732
|
return {
|
|
733
733
|
status: 1
|
|
734
734
|
/* NOT_REGISTER */
|
|
735
735
|
};
|
|
736
|
-
const l = o.getValue(this.createCFormulaId(
|
|
736
|
+
const l = o.getValue(this.createCFormulaId(e, s), ["id"]);
|
|
737
737
|
return l ? l.status === 2 && l.result ? {
|
|
738
738
|
result: l.result.getValue(r, a),
|
|
739
739
|
status: 2
|
|
@@ -749,659 +749,377 @@ let n2 = class extends q2 {
|
|
|
749
749
|
/* NOT_REGISTER */
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
|
-
_createFormulaId(
|
|
753
|
-
return `sheet.cf_${
|
|
752
|
+
_createFormulaId(i, t) {
|
|
753
|
+
return `sheet.cf_${i}_${t}_${Y.generateRandomId(8)}`;
|
|
754
754
|
}
|
|
755
|
-
createCFormulaId(
|
|
756
|
-
return `${
|
|
755
|
+
createCFormulaId(i, t) {
|
|
756
|
+
return `${i}_${t}`;
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
],
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
769
|
-
}
|
|
770
|
-
var Q2 = { exports: {} };
|
|
771
|
-
(function(s, n) {
|
|
772
|
-
(function(e, t) {
|
|
773
|
-
s.exports = t();
|
|
774
|
-
})(n1, function() {
|
|
775
|
-
var e = 1e3, t = 6e4, i = 36e5, r = "millisecond", a = "second", o = "minute", l = "hour", c = "day", h = "week", u = "month", f = "quarter", d = "year", g = "date", D = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
|
|
776
|
-
var E = ["th", "st", "nd", "rd"], w = A % 100;
|
|
777
|
-
return "[" + A + (E[(w - 20) % 10] || E[w] || E[0]) + "]";
|
|
778
|
-
} }, R = function(A, E, w) {
|
|
779
|
-
var p = String(A);
|
|
780
|
-
return !p || p.length >= E ? A : "" + Array(E + 1 - p.length).join(w) + A;
|
|
781
|
-
}, L = { s: R, z: function(A) {
|
|
782
|
-
var E = -A.utcOffset(), w = Math.abs(E), p = Math.floor(w / 60), v = w % 60;
|
|
783
|
-
return (E <= 0 ? "+" : "-") + R(p, 2, "0") + ":" + R(v, 2, "0");
|
|
784
|
-
}, m: function A(E, w) {
|
|
785
|
-
if (E.date() < w.date()) return -A(w, E);
|
|
786
|
-
var p = 12 * (w.year() - E.year()) + (w.month() - E.month()), v = E.clone().add(p, u), x = w - v < 0, _ = E.clone().add(p + (x ? -1 : 1), u);
|
|
787
|
-
return +(-(p + (w - v) / (x ? v - _ : _ - v)) || 0);
|
|
788
|
-
}, a: function(A) {
|
|
789
|
-
return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
|
|
790
|
-
}, p: function(A) {
|
|
791
|
-
return { M: u, y: d, w: h, d: c, D: g, h: l, m: o, s: a, ms: r, Q: f }[A] || String(A || "").toLowerCase().replace(/s$/, "");
|
|
792
|
-
}, u: function(A) {
|
|
793
|
-
return A === void 0;
|
|
794
|
-
} }, W = "en", U = {};
|
|
795
|
-
U[W] = y;
|
|
796
|
-
var h2 = "$isDayjsObject", i2 = function(A) {
|
|
797
|
-
return A instanceof Y || !(!A || !A[h2]);
|
|
798
|
-
}, a2 = function A(E, w, p) {
|
|
799
|
-
var v;
|
|
800
|
-
if (!E) return W;
|
|
801
|
-
if (typeof E == "string") {
|
|
802
|
-
var x = E.toLowerCase();
|
|
803
|
-
U[x] && (v = x), w && (U[x] = w, v = x);
|
|
804
|
-
var _ = E.split("-");
|
|
805
|
-
if (!v && _.length > 1) return A(_[0]);
|
|
806
|
-
} else {
|
|
807
|
-
var b = E.name;
|
|
808
|
-
U[b] = E, v = b;
|
|
809
|
-
}
|
|
810
|
-
return !p && v && (W = v), v || !p && W;
|
|
811
|
-
}, I = function(A, E) {
|
|
812
|
-
if (i2(A)) return A.clone();
|
|
813
|
-
var w = typeof E == "object" ? E : {};
|
|
814
|
-
return w.date = A, w.args = arguments, new Y(w);
|
|
815
|
-
}, M = L;
|
|
816
|
-
M.l = a2, M.i = i2, M.w = function(A, E) {
|
|
817
|
-
return I(A, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
818
|
-
};
|
|
819
|
-
var Y = function() {
|
|
820
|
-
function A(w) {
|
|
821
|
-
this.$L = a2(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[h2] = !0;
|
|
822
|
-
}
|
|
823
|
-
var E = A.prototype;
|
|
824
|
-
return E.parse = function(w) {
|
|
825
|
-
this.$d = function(p) {
|
|
826
|
-
var v = p.date, x = p.utc;
|
|
827
|
-
if (v === null) return /* @__PURE__ */ new Date(NaN);
|
|
828
|
-
if (M.u(v)) return /* @__PURE__ */ new Date();
|
|
829
|
-
if (v instanceof Date) return new Date(v);
|
|
830
|
-
if (typeof v == "string" && !/Z$/i.test(v)) {
|
|
831
|
-
var _ = v.match(m);
|
|
832
|
-
if (_) {
|
|
833
|
-
var b = _[2] - 1 || 0, k = (_[7] || "0").substring(0, 3);
|
|
834
|
-
return x ? new Date(Date.UTC(_[1], b, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, k)) : new Date(_[1], b, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, k);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
return new Date(v);
|
|
838
|
-
}(w), this.init();
|
|
839
|
-
}, E.init = function() {
|
|
840
|
-
var w = this.$d;
|
|
841
|
-
this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
|
|
842
|
-
}, E.$utils = function() {
|
|
843
|
-
return M;
|
|
844
|
-
}, E.isValid = function() {
|
|
845
|
-
return this.$d.toString() !== D;
|
|
846
|
-
}, E.isSame = function(w, p) {
|
|
847
|
-
var v = I(w);
|
|
848
|
-
return this.startOf(p) <= v && v <= this.endOf(p);
|
|
849
|
-
}, E.isAfter = function(w, p) {
|
|
850
|
-
return I(w) < this.startOf(p);
|
|
851
|
-
}, E.isBefore = function(w, p) {
|
|
852
|
-
return this.endOf(p) < I(w);
|
|
853
|
-
}, E.$g = function(w, p, v) {
|
|
854
|
-
return M.u(w) ? this[p] : this.set(v, w);
|
|
855
|
-
}, E.unix = function() {
|
|
856
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
857
|
-
}, E.valueOf = function() {
|
|
858
|
-
return this.$d.getTime();
|
|
859
|
-
}, E.startOf = function(w, p) {
|
|
860
|
-
var v = this, x = !!M.u(p) || p, _ = M.p(w), b = function(l2, P) {
|
|
861
|
-
var s2 = M.w(v.$u ? Date.UTC(v.$y, P, l2) : new Date(v.$y, P, l2), v);
|
|
862
|
-
return x ? s2 : s2.endOf(c);
|
|
863
|
-
}, k = function(l2, P) {
|
|
864
|
-
return M.w(v.toDate()[l2].apply(v.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), v);
|
|
865
|
-
}, O = this.$W, N = this.$M, G = this.$D, d2 = "set" + (this.$u ? "UTC" : "");
|
|
866
|
-
switch (_) {
|
|
867
|
-
case d:
|
|
868
|
-
return x ? b(1, 0) : b(31, 11);
|
|
869
|
-
case u:
|
|
870
|
-
return x ? b(1, N) : b(0, N + 1);
|
|
871
|
-
case h:
|
|
872
|
-
var o2 = this.$locale().weekStart || 0, C2 = (O < o2 ? O + 7 : O) - o2;
|
|
873
|
-
return b(x ? G - C2 : G + (6 - C2), N);
|
|
874
|
-
case c:
|
|
875
|
-
case g:
|
|
876
|
-
return k(d2 + "Hours", 0);
|
|
877
|
-
case l:
|
|
878
|
-
return k(d2 + "Minutes", 1);
|
|
879
|
-
case o:
|
|
880
|
-
return k(d2 + "Seconds", 2);
|
|
881
|
-
case a:
|
|
882
|
-
return k(d2 + "Milliseconds", 3);
|
|
883
|
-
default:
|
|
884
|
-
return this.clone();
|
|
885
|
-
}
|
|
886
|
-
}, E.endOf = function(w) {
|
|
887
|
-
return this.startOf(w, !1);
|
|
888
|
-
}, E.$set = function(w, p) {
|
|
889
|
-
var v, x = M.p(w), _ = "set" + (this.$u ? "UTC" : ""), b = (v = {}, v[c] = _ + "Date", v[g] = _ + "Date", v[u] = _ + "Month", v[d] = _ + "FullYear", v[l] = _ + "Hours", v[o] = _ + "Minutes", v[a] = _ + "Seconds", v[r] = _ + "Milliseconds", v)[x], k = x === c ? this.$D + (p - this.$W) : p;
|
|
890
|
-
if (x === u || x === d) {
|
|
891
|
-
var O = this.clone().set(g, 1);
|
|
892
|
-
O.$d[b](k), O.init(), this.$d = O.set(g, Math.min(this.$D, O.daysInMonth())).$d;
|
|
893
|
-
} else b && this.$d[b](k);
|
|
894
|
-
return this.init(), this;
|
|
895
|
-
}, E.set = function(w, p) {
|
|
896
|
-
return this.clone().$set(w, p);
|
|
897
|
-
}, E.get = function(w) {
|
|
898
|
-
return this[M.p(w)]();
|
|
899
|
-
}, E.add = function(w, p) {
|
|
900
|
-
var v, x = this;
|
|
901
|
-
w = Number(w);
|
|
902
|
-
var _ = M.p(p), b = function(N) {
|
|
903
|
-
var G = I(x);
|
|
904
|
-
return M.w(G.date(G.date() + Math.round(N * w)), x);
|
|
905
|
-
};
|
|
906
|
-
if (_ === u) return this.set(u, this.$M + w);
|
|
907
|
-
if (_ === d) return this.set(d, this.$y + w);
|
|
908
|
-
if (_ === c) return b(1);
|
|
909
|
-
if (_ === h) return b(7);
|
|
910
|
-
var k = (v = {}, v[o] = t, v[l] = i, v[a] = e, v)[_] || 1, O = this.$d.getTime() + w * k;
|
|
911
|
-
return M.w(O, this);
|
|
912
|
-
}, E.subtract = function(w, p) {
|
|
913
|
-
return this.add(-1 * w, p);
|
|
914
|
-
}, E.format = function(w) {
|
|
915
|
-
var p = this, v = this.$locale();
|
|
916
|
-
if (!this.isValid()) return v.invalidDate || D;
|
|
917
|
-
var x = w || "YYYY-MM-DDTHH:mm:ssZ", _ = M.z(this), b = this.$H, k = this.$m, O = this.$M, N = v.weekdays, G = v.months, d2 = v.meridiem, o2 = function(P, s2, m2, p2) {
|
|
918
|
-
return P && (P[s2] || P(p, x)) || m2[s2].slice(0, p2);
|
|
919
|
-
}, C2 = function(P) {
|
|
920
|
-
return M.s(b % 12 || 12, P, "0");
|
|
921
|
-
}, l2 = d2 || function(P, s2, m2) {
|
|
922
|
-
var p2 = P < 12 ? "AM" : "PM";
|
|
923
|
-
return m2 ? p2.toLowerCase() : p2;
|
|
924
|
-
};
|
|
925
|
-
return x.replace(F, function(P, s2) {
|
|
926
|
-
return s2 || function(m2) {
|
|
927
|
-
switch (m2) {
|
|
928
|
-
case "YY":
|
|
929
|
-
return String(p.$y).slice(-2);
|
|
930
|
-
case "YYYY":
|
|
931
|
-
return M.s(p.$y, 4, "0");
|
|
932
|
-
case "M":
|
|
933
|
-
return O + 1;
|
|
934
|
-
case "MM":
|
|
935
|
-
return M.s(O + 1, 2, "0");
|
|
936
|
-
case "MMM":
|
|
937
|
-
return o2(v.monthsShort, O, G, 3);
|
|
938
|
-
case "MMMM":
|
|
939
|
-
return o2(G, O);
|
|
940
|
-
case "D":
|
|
941
|
-
return p.$D;
|
|
942
|
-
case "DD":
|
|
943
|
-
return M.s(p.$D, 2, "0");
|
|
944
|
-
case "d":
|
|
945
|
-
return String(p.$W);
|
|
946
|
-
case "dd":
|
|
947
|
-
return o2(v.weekdaysMin, p.$W, N, 2);
|
|
948
|
-
case "ddd":
|
|
949
|
-
return o2(v.weekdaysShort, p.$W, N, 3);
|
|
950
|
-
case "dddd":
|
|
951
|
-
return N[p.$W];
|
|
952
|
-
case "H":
|
|
953
|
-
return String(b);
|
|
954
|
-
case "HH":
|
|
955
|
-
return M.s(b, 2, "0");
|
|
956
|
-
case "h":
|
|
957
|
-
return C2(1);
|
|
958
|
-
case "hh":
|
|
959
|
-
return C2(2);
|
|
960
|
-
case "a":
|
|
961
|
-
return l2(b, k, !0);
|
|
962
|
-
case "A":
|
|
963
|
-
return l2(b, k, !1);
|
|
964
|
-
case "m":
|
|
965
|
-
return String(k);
|
|
966
|
-
case "mm":
|
|
967
|
-
return M.s(k, 2, "0");
|
|
968
|
-
case "s":
|
|
969
|
-
return String(p.$s);
|
|
970
|
-
case "ss":
|
|
971
|
-
return M.s(p.$s, 2, "0");
|
|
972
|
-
case "SSS":
|
|
973
|
-
return M.s(p.$ms, 3, "0");
|
|
974
|
-
case "Z":
|
|
975
|
-
return _;
|
|
976
|
-
}
|
|
977
|
-
return null;
|
|
978
|
-
}(P) || _.replace(":", "");
|
|
979
|
-
});
|
|
980
|
-
}, E.utcOffset = function() {
|
|
981
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
982
|
-
}, E.diff = function(w, p, v) {
|
|
983
|
-
var x, _ = this, b = M.p(p), k = I(w), O = (k.utcOffset() - this.utcOffset()) * t, N = this - k, G = function() {
|
|
984
|
-
return M.m(_, k);
|
|
985
|
-
};
|
|
986
|
-
switch (b) {
|
|
987
|
-
case d:
|
|
988
|
-
x = G() / 12;
|
|
989
|
-
break;
|
|
990
|
-
case u:
|
|
991
|
-
x = G();
|
|
992
|
-
break;
|
|
993
|
-
case f:
|
|
994
|
-
x = G() / 3;
|
|
995
|
-
break;
|
|
996
|
-
case h:
|
|
997
|
-
x = (N - O) / 6048e5;
|
|
998
|
-
break;
|
|
999
|
-
case c:
|
|
1000
|
-
x = (N - O) / 864e5;
|
|
1001
|
-
break;
|
|
1002
|
-
case l:
|
|
1003
|
-
x = N / i;
|
|
1004
|
-
break;
|
|
1005
|
-
case o:
|
|
1006
|
-
x = N / t;
|
|
1007
|
-
break;
|
|
1008
|
-
case a:
|
|
1009
|
-
x = N / e;
|
|
1010
|
-
break;
|
|
1011
|
-
default:
|
|
1012
|
-
x = N;
|
|
1013
|
-
}
|
|
1014
|
-
return v ? x : M.a(x);
|
|
1015
|
-
}, E.daysInMonth = function() {
|
|
1016
|
-
return this.endOf(u).$D;
|
|
1017
|
-
}, E.$locale = function() {
|
|
1018
|
-
return U[this.$L];
|
|
1019
|
-
}, E.locale = function(w, p) {
|
|
1020
|
-
if (!w) return this.$L;
|
|
1021
|
-
var v = this.clone(), x = a2(w, p, !0);
|
|
1022
|
-
return x && (v.$L = x), v;
|
|
1023
|
-
}, E.clone = function() {
|
|
1024
|
-
return M.w(this.$d, this);
|
|
1025
|
-
}, E.toDate = function() {
|
|
1026
|
-
return new Date(this.valueOf());
|
|
1027
|
-
}, E.toJSON = function() {
|
|
1028
|
-
return this.isValid() ? this.toISOString() : null;
|
|
1029
|
-
}, E.toISOString = function() {
|
|
1030
|
-
return this.$d.toISOString();
|
|
1031
|
-
}, E.toString = function() {
|
|
1032
|
-
return this.$d.toUTCString();
|
|
1033
|
-
}, A;
|
|
1034
|
-
}(), t2 = Y.prototype;
|
|
1035
|
-
return I.prototype = t2, [["$ms", r], ["$s", a], ["$m", o], ["$H", l], ["$W", c], ["$M", u], ["$y", d], ["$D", g]].forEach(function(A) {
|
|
1036
|
-
t2[A[1]] = function(E) {
|
|
1037
|
-
return this.$g(E, A[0], A[1]);
|
|
1038
|
-
};
|
|
1039
|
-
}), I.extend = function(A, E) {
|
|
1040
|
-
return A.$i || (A(E, Y, I), A.$i = !0), I;
|
|
1041
|
-
}, I.locale = a2, I.isDayjs = i2, I.unix = function(A) {
|
|
1042
|
-
return I(1e3 * A);
|
|
1043
|
-
}, I.en = U[W], I.Ls = U, I.p = {}, I;
|
|
1044
|
-
});
|
|
1045
|
-
})(Q2);
|
|
1046
|
-
var s1 = Q2.exports;
|
|
1047
|
-
const $ = /* @__PURE__ */ i1(s1);
|
|
1048
|
-
function y2(s, n) {
|
|
1049
|
-
return Math.abs(s - n) < Number.EPSILON;
|
|
759
|
+
N = B0([
|
|
760
|
+
K(0, M(C2)),
|
|
761
|
+
K(1, M(o2)),
|
|
762
|
+
K(2, M(n0)),
|
|
763
|
+
K(3, M(c2)),
|
|
764
|
+
K(4, M(V))
|
|
765
|
+
], N);
|
|
766
|
+
function r2(n, i) {
|
|
767
|
+
return Math.abs(n - i) < Number.EPSILON;
|
|
1050
768
|
}
|
|
1051
|
-
const
|
|
1052
|
-
var
|
|
1053
|
-
if (!
|
|
769
|
+
const k = (n) => [void 0, null].includes(n), T = (n) => {
|
|
770
|
+
var e, s;
|
|
771
|
+
if (!n)
|
|
1054
772
|
return null;
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1059
|
-
},
|
|
1060
|
-
function
|
|
1061
|
-
if (
|
|
1062
|
-
if (
|
|
773
|
+
if (n.t === B.BOOLEAN)
|
|
774
|
+
return n.v === _2.TRUE ? w2.TRUE : w2.FALSE;
|
|
775
|
+
const i = n.v, t = (s = (e = n.p) == null ? void 0 : e.body) == null ? void 0 : s.dataStream.replace(/\r\n$/, "");
|
|
776
|
+
return k(i) ? k(t) ? null : t : i;
|
|
777
|
+
}, d2 = 86400;
|
|
778
|
+
function V0(n, i = !0) {
|
|
779
|
+
if (i && n >= 0) {
|
|
780
|
+
if (n === 0)
|
|
1063
781
|
return [1900, 1, 0];
|
|
1064
|
-
if (
|
|
782
|
+
if (n === 60)
|
|
1065
783
|
return [1900, 2, 29];
|
|
1066
|
-
if (
|
|
1067
|
-
return [1900,
|
|
1068
|
-
}
|
|
1069
|
-
let
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1074
|
-
const r = Math.floor(80 *
|
|
1075
|
-
|
|
1076
|
-
const o = r + 2 - 12 *
|
|
1077
|
-
return [100 * (
|
|
784
|
+
if (n < 60)
|
|
785
|
+
return [1900, n < 32 ? 1 : 2, (n - 1) % 31 + 1];
|
|
786
|
+
}
|
|
787
|
+
let t = n + 68569 + 2415019;
|
|
788
|
+
const e = Math.floor(4 * t / 146097);
|
|
789
|
+
t = t - Math.floor((146097 * e + 3) / 4);
|
|
790
|
+
const s = Math.floor(4e3 * (t + 1) / 1461001);
|
|
791
|
+
t = t - Math.floor(1461 * s / 4) + 31;
|
|
792
|
+
const r = Math.floor(80 * t / 2447), a = t - Math.floor(2447 * r / 80);
|
|
793
|
+
t = Math.floor(r / 11);
|
|
794
|
+
const o = r + 2 - 12 * t;
|
|
795
|
+
return [100 * (e - 49) + s + t | 0, o | 0, a | 0];
|
|
1078
796
|
}
|
|
1079
|
-
const
|
|
1080
|
-
let
|
|
1081
|
-
const
|
|
1082
|
-
let
|
|
1083
|
-
|
|
1084
|
-
const
|
|
1085
|
-
return
|
|
1086
|
-
},
|
|
1087
|
-
switch (
|
|
1088
|
-
case
|
|
1089
|
-
let
|
|
1090
|
-
return
|
|
1091
|
-
a >
|
|
797
|
+
const U0 = (n) => {
|
|
798
|
+
let i = n | 0;
|
|
799
|
+
const t = d2 * (n - i);
|
|
800
|
+
let e = Math.floor(t);
|
|
801
|
+
t - e > 0.9999 && (e += 1, e === d2 && (e = 0, i += 1));
|
|
802
|
+
const s = e < 0 ? d2 + e : e, [r, a, o] = V0(n, !0), l = Math.floor(s / 60 / 60) % 60, c = Math.floor(s / 60) % 60, h = Math.floor(s) % 60;
|
|
803
|
+
return x(`${r}/${a}/${o} ${l}:${c}:${h}`).valueOf();
|
|
804
|
+
}, a2 = (n, i, t) => {
|
|
805
|
+
switch (n.type) {
|
|
806
|
+
case U.max: {
|
|
807
|
+
let e = 0;
|
|
808
|
+
return i.forValue((s, r, a) => {
|
|
809
|
+
a > e && (e = a);
|
|
1092
810
|
}), {
|
|
1093
|
-
status:
|
|
1094
|
-
result:
|
|
811
|
+
status: y.SUCCESS,
|
|
812
|
+
result: e
|
|
1095
813
|
};
|
|
1096
814
|
}
|
|
1097
|
-
case
|
|
1098
|
-
let
|
|
1099
|
-
return
|
|
1100
|
-
|
|
815
|
+
case U.min: {
|
|
816
|
+
let e;
|
|
817
|
+
return i.forValue((s, r, a) => {
|
|
818
|
+
e === void 0 && (e = a), a < e && (e = a);
|
|
1101
819
|
}), {
|
|
1102
|
-
status:
|
|
1103
|
-
result:
|
|
820
|
+
status: y.SUCCESS,
|
|
821
|
+
result: e
|
|
1104
822
|
};
|
|
1105
823
|
}
|
|
1106
|
-
case
|
|
1107
|
-
let
|
|
1108
|
-
|
|
1109
|
-
(
|
|
824
|
+
case U.percent: {
|
|
825
|
+
let e, s;
|
|
826
|
+
i.forValue((o, l, c) => {
|
|
827
|
+
(e === void 0 || s === void 0) && (e = c, s = c), c > e && (e = c), c < s && (s = c);
|
|
1110
828
|
});
|
|
1111
|
-
const r = (
|
|
829
|
+
const r = (e || 0) - (s || 0), a = Math.max(Math.min(Number(n.value) || 0, 100), 0);
|
|
1112
830
|
return {
|
|
1113
|
-
status:
|
|
1114
|
-
result: r * (a / 100) + (
|
|
831
|
+
status: y.SUCCESS,
|
|
832
|
+
result: r * (a / 100) + (s || 0)
|
|
1115
833
|
};
|
|
1116
834
|
}
|
|
1117
|
-
case
|
|
1118
|
-
const
|
|
835
|
+
case U.percentile: {
|
|
836
|
+
const e = i.toNativeArray().sort((c, h) => c - h), s = Math.max(Math.min(Number(n.value) || 0, 100), 0), r = (e.length - 1) * s / 100, a = Math.floor(r), o = r - a, l = e[a] + (e[Math.min(a + 1, e.length - 1)] - e[a]) * o;
|
|
1119
837
|
return {
|
|
1120
|
-
status:
|
|
838
|
+
status: y.SUCCESS,
|
|
1121
839
|
result: l
|
|
1122
840
|
};
|
|
1123
841
|
}
|
|
1124
|
-
case
|
|
1125
|
-
const { accessor:
|
|
1126
|
-
return l.registerFormulaWithRange(
|
|
842
|
+
case U.formula: {
|
|
843
|
+
const { accessor: e, unitId: s, subUnitId: r, cfId: a } = t, o = String(n.value), l = e.get(N);
|
|
844
|
+
return l.registerFormulaWithRange(s, r, a, o), l.getFormulaResult(s, r, a, o);
|
|
1127
845
|
}
|
|
1128
|
-
case
|
|
1129
|
-
const
|
|
846
|
+
case U.num: {
|
|
847
|
+
const e = Number(n.value);
|
|
1130
848
|
return {
|
|
1131
|
-
status:
|
|
1132
|
-
result: Number.isNaN(
|
|
849
|
+
status: y.SUCCESS,
|
|
850
|
+
result: Number.isNaN(e) ? 0 : e
|
|
1133
851
|
};
|
|
1134
852
|
}
|
|
1135
853
|
}
|
|
1136
|
-
},
|
|
1137
|
-
const { accessor:
|
|
1138
|
-
return
|
|
1139
|
-
|
|
1140
|
-
const h = r.getCellCf(
|
|
854
|
+
}, x1 = (n, i, t, e) => {
|
|
855
|
+
const { accessor: s } = e, r = s.get(c2), a = new I();
|
|
856
|
+
return t.ranges.forEach((o) => {
|
|
857
|
+
R.foreach(o, (l, c) => {
|
|
858
|
+
const h = r.getCellCf(n, i, l, c);
|
|
1141
859
|
if (h) {
|
|
1142
|
-
const u = h.cfList.find((
|
|
860
|
+
const u = h.cfList.find((g) => g.cfId === t.cfId);
|
|
1143
861
|
u != null && u.ruleCache && a.setValue(l, c, u.ruleCache);
|
|
1144
862
|
}
|
|
1145
863
|
});
|
|
1146
864
|
}), a;
|
|
1147
|
-
},
|
|
1148
|
-
switch (
|
|
1149
|
-
case
|
|
1150
|
-
if (typeof
|
|
865
|
+
}, J = (n, i) => {
|
|
866
|
+
switch (n.operator) {
|
|
867
|
+
case p.between: {
|
|
868
|
+
if (typeof n.value != "object" || !n.value.length)
|
|
1151
869
|
return;
|
|
1152
|
-
const
|
|
1153
|
-
return
|
|
870
|
+
const t = Math.min(...n.value), e = Math.max(...n.value);
|
|
871
|
+
return i >= t && i <= e;
|
|
1154
872
|
}
|
|
1155
|
-
case
|
|
1156
|
-
if (typeof
|
|
873
|
+
case p.notBetween: {
|
|
874
|
+
if (typeof n.value != "object" || !n.value.length)
|
|
1157
875
|
return;
|
|
1158
|
-
const
|
|
1159
|
-
return !(
|
|
876
|
+
const t = Math.min(...n.value), e = Math.max(...n.value);
|
|
877
|
+
return !(i >= t && i <= e);
|
|
1160
878
|
}
|
|
1161
|
-
case
|
|
1162
|
-
const
|
|
1163
|
-
return
|
|
879
|
+
case p.equal: {
|
|
880
|
+
const t = n.value || 0;
|
|
881
|
+
return r2(t, i);
|
|
1164
882
|
}
|
|
1165
|
-
case
|
|
1166
|
-
const
|
|
1167
|
-
return !
|
|
883
|
+
case p.notEqual: {
|
|
884
|
+
const t = n.value || 0;
|
|
885
|
+
return !r2(t, i);
|
|
1168
886
|
}
|
|
1169
|
-
case
|
|
1170
|
-
const
|
|
1171
|
-
return
|
|
887
|
+
case p.greaterThan: {
|
|
888
|
+
const t = n.value || 0;
|
|
889
|
+
return i > t;
|
|
1172
890
|
}
|
|
1173
|
-
case
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
891
|
+
case p.greaterThanOrEqual: {
|
|
892
|
+
const t = n.value || 0;
|
|
893
|
+
return i >= t;
|
|
1176
894
|
}
|
|
1177
|
-
case
|
|
1178
|
-
const
|
|
1179
|
-
return
|
|
895
|
+
case p.lessThan: {
|
|
896
|
+
const t = n.value || 0;
|
|
897
|
+
return i < t;
|
|
1180
898
|
}
|
|
1181
|
-
case
|
|
1182
|
-
const
|
|
1183
|
-
return
|
|
899
|
+
case p.lessThanOrEqual: {
|
|
900
|
+
const t = n.value || 0;
|
|
901
|
+
return i <= t;
|
|
1184
902
|
}
|
|
1185
903
|
default:
|
|
1186
904
|
return !1;
|
|
1187
905
|
}
|
|
1188
|
-
},
|
|
1189
|
-
switch (
|
|
1190
|
-
case
|
|
1191
|
-
return
|
|
1192
|
-
case
|
|
1193
|
-
return
|
|
1194
|
-
case
|
|
1195
|
-
return
|
|
1196
|
-
case
|
|
1197
|
-
return
|
|
1198
|
-
}
|
|
1199
|
-
return
|
|
1200
|
-
},
|
|
1201
|
-
const
|
|
1202
|
-
if (
|
|
1203
|
-
return
|
|
1204
|
-
if (
|
|
1205
|
-
const r = s
|
|
906
|
+
}, N0 = (n) => {
|
|
907
|
+
switch (n) {
|
|
908
|
+
case p.greaterThan:
|
|
909
|
+
return p.lessThanOrEqual;
|
|
910
|
+
case p.greaterThanOrEqual:
|
|
911
|
+
return p.lessThan;
|
|
912
|
+
case p.lessThan:
|
|
913
|
+
return p.greaterThanOrEqual;
|
|
914
|
+
case p.lessThanOrEqual:
|
|
915
|
+
return p.greaterThan;
|
|
916
|
+
}
|
|
917
|
+
return n;
|
|
918
|
+
}, O0 = (n, i) => {
|
|
919
|
+
const t = (r) => r.a !== void 0 ? r : { ...r, a: 1 }, e = n.findIndex((r) => r.value >= i), s = e - 1;
|
|
920
|
+
if (e === 0)
|
|
921
|
+
return n[0].color.toRgbString();
|
|
922
|
+
if (s >= 0) {
|
|
923
|
+
const r = n[s], a = n[e];
|
|
1206
924
|
if (r.color.isValid && a.color.isValid) {
|
|
1207
|
-
const o =
|
|
1208
|
-
const
|
|
1209
|
-
return d[
|
|
925
|
+
const o = t(r.color.toRgb()), l = t(a.color.toRgb()), c = a.value - r.value, h = (i - r.value) / c, u = ["r", "g", "b", "a"].reduce((d, D) => {
|
|
926
|
+
const C = o[D];
|
|
927
|
+
return d[D] = (l[D] - C) * h + C, d;
|
|
1210
928
|
}, {});
|
|
1211
|
-
return new
|
|
929
|
+
return new M2(u).toRgbString();
|
|
1212
930
|
}
|
|
1213
931
|
} else
|
|
1214
|
-
return
|
|
1215
|
-
},
|
|
1216
|
-
if (
|
|
932
|
+
return n[n.length - 1].color.toRgbString();
|
|
933
|
+
}, u2 = (n, i, t) => n.map((e) => {
|
|
934
|
+
if (e.startColumn > t || e.startRow > i)
|
|
1217
935
|
return null;
|
|
1218
|
-
const
|
|
1219
|
-
return
|
|
1220
|
-
}).filter((
|
|
1221
|
-
function
|
|
1222
|
-
let
|
|
1223
|
-
return new
|
|
1224
|
-
|
|
1225
|
-
}),
|
|
936
|
+
const s = { ...e };
|
|
937
|
+
return s.endRow = Math.min(s.endRow, i), s.endColumn = Math.min(s.endColumn, t), s;
|
|
938
|
+
}).filter((e) => !!e);
|
|
939
|
+
function _1(n) {
|
|
940
|
+
let i = 0;
|
|
941
|
+
return new I(n).forValue((t, e, s) => {
|
|
942
|
+
i = Math.max(Number.isNaN(i) ? 0 : i, Number(s));
|
|
943
|
+
}), i;
|
|
1226
944
|
}
|
|
1227
|
-
const
|
|
1228
|
-
type:
|
|
1229
|
-
handle: async (
|
|
945
|
+
const T0 = "", P0 = {
|
|
946
|
+
type: L.colorScale,
|
|
947
|
+
handle: async (n, i) => {
|
|
1230
948
|
var u;
|
|
1231
|
-
const
|
|
1232
|
-
a.forEach((
|
|
1233
|
-
|
|
1234
|
-
const
|
|
1235
|
-
if (!
|
|
949
|
+
const t = n.rule, e = i.accessor.get(N), { worksheet: s } = i, r = new I(), a = u2(n.ranges, s.getMaxRows() - 1, s.getMaxColumns() - 1);
|
|
950
|
+
a.forEach((g) => {
|
|
951
|
+
R.foreach(g, (d, D) => {
|
|
952
|
+
const C = s == null ? void 0 : s.getCellRaw(d, D), m = C && C.v;
|
|
953
|
+
if (!k(m) && (C == null ? void 0 : C.t) === B.NUMBER) {
|
|
1236
954
|
const F = Number(m);
|
|
1237
|
-
!Number.isNaN(F) && r.setValue(d,
|
|
955
|
+
!Number.isNaN(F) && r.setValue(d, D, F);
|
|
1238
956
|
}
|
|
1239
957
|
});
|
|
1240
958
|
});
|
|
1241
|
-
const o = new
|
|
1242
|
-
a.forEach((
|
|
1243
|
-
|
|
1244
|
-
o.setValue(d,
|
|
959
|
+
const o = new I();
|
|
960
|
+
a.forEach((g) => {
|
|
961
|
+
R.foreach(g, (d, D) => {
|
|
962
|
+
o.setValue(d, D, T0);
|
|
1245
963
|
});
|
|
1246
964
|
});
|
|
1247
|
-
const l = [...
|
|
1248
|
-
value:
|
|
1249
|
-
color: new
|
|
965
|
+
const l = [...t.config].sort((g, d) => g.index - d.index).map((g) => ({
|
|
966
|
+
value: a2(g.value, r, { ...i, cfId: n.cfId }),
|
|
967
|
+
color: new M2(g.color)
|
|
1250
968
|
}));
|
|
1251
|
-
if (l.some((
|
|
1252
|
-
return (u =
|
|
1253
|
-
const h = l.map((
|
|
969
|
+
if (l.some((g) => i0(g.value) ? g.value.status !== y.SUCCESS : !1))
|
|
970
|
+
return (u = e.getCache(i.unitId, i.subUnitId, n.cfId)) != null ? u : o;
|
|
971
|
+
const h = l.map((g) => g.color).reduce((g, d, D) => (g.result.push({ color: d, value: g.sortValue[D] }), g), {
|
|
1254
972
|
result: [],
|
|
1255
|
-
sortValue: l.map((
|
|
973
|
+
sortValue: l.map((g) => g.value.result).sort((g, d) => g - d)
|
|
1256
974
|
}).result;
|
|
1257
|
-
return h.length <= 1 || r.forValue((
|
|
1258
|
-
const
|
|
1259
|
-
|
|
975
|
+
return h.length <= 1 || r.forValue((g, d, D) => {
|
|
976
|
+
const C = O0(h, D);
|
|
977
|
+
C && o.setValue(g, d, C);
|
|
1260
978
|
}), o;
|
|
1261
979
|
}
|
|
1262
|
-
},
|
|
1263
|
-
class
|
|
980
|
+
}, $0 = "sheet-conditional-rule-data-bar", v2 = "#ffbe38", p2 = "#abd91a", W0 = 34;
|
|
981
|
+
class q0 extends I2 {
|
|
1264
982
|
constructor() {
|
|
1265
983
|
super(...arguments);
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
984
|
+
E(this, "_paddingRightAndLeft", 2);
|
|
985
|
+
E(this, "_paddingTopAndBottom", 2);
|
|
986
|
+
E(this, "uKey", $0);
|
|
987
|
+
E(this, "Z_INDEX", W0);
|
|
988
|
+
E(this, "_radius", 1);
|
|
1271
989
|
}
|
|
1272
990
|
// eslint-disable-next-line max-lines-per-function
|
|
1273
|
-
draw(
|
|
1274
|
-
const { worksheet: a } =
|
|
991
|
+
draw(t, e, s, r) {
|
|
992
|
+
const { worksheet: a } = s;
|
|
1275
993
|
if (!a)
|
|
1276
994
|
return !1;
|
|
1277
|
-
|
|
995
|
+
t.save(), R.foreach(s.rowColumnSegment, (o, l) => {
|
|
1278
996
|
if (!a.getRowVisible(o) || !a.getColVisible(l))
|
|
1279
997
|
return;
|
|
1280
998
|
const c = a.getCell(o, l);
|
|
1281
999
|
if (c && c.dataBar) {
|
|
1282
|
-
const { color: h, value: u, startPoint:
|
|
1283
|
-
let { isMerged:
|
|
1284
|
-
if (
|
|
1000
|
+
const { color: h, value: u, startPoint: g, isGradient: d } = c.dataBar, D = s.getCellWithCoordByIndex(o, l, !1);
|
|
1001
|
+
let { isMerged: C, isMergedMainCell: m, mergeInfo: F, startY: w, endY: v, startX: A, endX: O } = D;
|
|
1002
|
+
if (C || (m && (w = F.startY, v = F.endY, A = F.startX, O = F.endX), !this.isRenderDiffRangesByCell(F, r)))
|
|
1285
1003
|
return;
|
|
1286
|
-
const
|
|
1004
|
+
const P = O - A, h2 = v + s0 - w, e2 = P - this._paddingRightAndLeft * 2, F2 = h2 - this._paddingTopAndBottom * 2;
|
|
1287
1005
|
if (u > 0) {
|
|
1288
|
-
const
|
|
1006
|
+
const G = Math.max(e2 * (1 - g / 100) * u / 100, 1), $ = A + this._paddingRightAndLeft + g / 100 * e2, W = w + this._paddingTopAndBottom;
|
|
1289
1007
|
if (d) {
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1008
|
+
const q = t.createLinearGradient($, W, $ + G, W);
|
|
1009
|
+
q.addColorStop(0, h), q.addColorStop(1, "rgb(255 255 255)"), t.fillStyle = q, t.strokeStyle = h, t.lineWidth = 1;
|
|
1292
1010
|
} else
|
|
1293
|
-
|
|
1294
|
-
this._drawRectWithRoundedCorner(
|
|
1011
|
+
t.fillStyle = h;
|
|
1012
|
+
this._drawRectWithRoundedCorner(t, $, W, G, F2, !1, !0, !0, !1), d && t.stroke();
|
|
1295
1013
|
} else {
|
|
1296
|
-
const
|
|
1014
|
+
const G = Math.max(e2 * g / 100 * Math.abs(u) / 100, 1), $ = A + this._paddingRightAndLeft + g / 100 * e2 - G, W = w + this._paddingTopAndBottom;
|
|
1297
1015
|
if (d) {
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1016
|
+
const q = t.createLinearGradient($, W, $ + G, W);
|
|
1017
|
+
q.addColorStop(0, "rgb(255 255 255)"), q.addColorStop(1, h), t.fillStyle = q, t.strokeStyle = h, t.lineWidth = 1;
|
|
1300
1018
|
} else
|
|
1301
|
-
|
|
1302
|
-
this._drawRectWithRoundedCorner(
|
|
1019
|
+
t.fillStyle = h;
|
|
1020
|
+
this._drawRectWithRoundedCorner(t, $, W, G, F2, !0, !1, !1, !0), d && t.stroke();
|
|
1303
1021
|
}
|
|
1304
1022
|
}
|
|
1305
|
-
}),
|
|
1023
|
+
}), t.restore();
|
|
1306
1024
|
}
|
|
1307
|
-
_drawRectWithRoundedCorner(
|
|
1025
|
+
_drawRectWithRoundedCorner(t, e, s, r, a, o, l, c, h) {
|
|
1308
1026
|
const u = this._radius;
|
|
1309
|
-
!a || !r || (
|
|
1027
|
+
!a || !r || (t.beginPath(), t.moveTo(e + u, s), t.lineTo(e + r - u, s), l ? t.arcTo(e + r, s, e + r, s + u, u) : t.lineTo(e + r, s), t.lineTo(e + r, s + a - u), c ? t.arcTo(e + r, s + a, e + r - u, s + a, u) : t.lineTo(e + r, s + a), t.lineTo(e + u, s + a), h ? t.arcTo(e, s + a, e, s + a - u, u) : t.lineTo(e, s + a), t.lineTo(e, s + u), o ? t.arcTo(e, s, e + u, s, u) : t.lineTo(e, s), t.closePath(), t.fill());
|
|
1310
1028
|
}
|
|
1311
1029
|
}
|
|
1312
|
-
|
|
1313
|
-
const
|
|
1314
|
-
Object.freeze(
|
|
1315
|
-
const
|
|
1316
|
-
type:
|
|
1030
|
+
R2.add(q0);
|
|
1031
|
+
const X = {};
|
|
1032
|
+
Object.freeze(X);
|
|
1033
|
+
const Z0 = {
|
|
1034
|
+
type: L.dataBar,
|
|
1317
1035
|
// eslint-disable-next-line max-lines-per-function
|
|
1318
|
-
handle: async (
|
|
1319
|
-
const
|
|
1320
|
-
a.forEach((
|
|
1321
|
-
|
|
1322
|
-
const
|
|
1323
|
-
if (!
|
|
1324
|
-
const
|
|
1325
|
-
!Number.isNaN(
|
|
1036
|
+
handle: async (n, i) => {
|
|
1037
|
+
const t = n.rule, e = i.accessor.get(N), { worksheet: s } = i, r = new I(), a = u2(n.ranges, s.getMaxRows() - 1, s.getMaxColumns() - 1);
|
|
1038
|
+
a.forEach((C) => {
|
|
1039
|
+
R.foreach(C, (m, F) => {
|
|
1040
|
+
const w = s == null ? void 0 : s.getCellRaw(m, F), v = w && w.v;
|
|
1041
|
+
if (!k(v) && (w == null ? void 0 : w.t) === B.NUMBER) {
|
|
1042
|
+
const A = Number(v);
|
|
1043
|
+
!Number.isNaN(A) && r.setValue(m, F, A);
|
|
1326
1044
|
}
|
|
1327
1045
|
});
|
|
1328
1046
|
});
|
|
1329
|
-
const o = new
|
|
1330
|
-
a.forEach((
|
|
1331
|
-
|
|
1332
|
-
o.setValue(m, F,
|
|
1047
|
+
const o = new I();
|
|
1048
|
+
a.forEach((C) => {
|
|
1049
|
+
R.foreach(C, (m, F) => {
|
|
1050
|
+
o.setValue(m, F, X);
|
|
1333
1051
|
});
|
|
1334
1052
|
});
|
|
1335
|
-
const l =
|
|
1053
|
+
const l = a2(t.config.min, r, { ...i, cfId: n.cfId }), c = a2(t.config.max, r, { ...i, cfId: n.cfId });
|
|
1336
1054
|
let h = 0, u = 0;
|
|
1337
|
-
if (l.status ===
|
|
1338
|
-
return
|
|
1339
|
-
if (l.status ===
|
|
1340
|
-
const
|
|
1341
|
-
h = Number.isNaN(
|
|
1055
|
+
if (l.status === y.WAIT)
|
|
1056
|
+
return e.getCache(i.unitId, i.subUnitId, n.cfId) || o;
|
|
1057
|
+
if (l.status === y.SUCCESS) {
|
|
1058
|
+
const C = Number(l.result);
|
|
1059
|
+
h = Number.isNaN(C) ? 0 : C;
|
|
1342
1060
|
} else
|
|
1343
1061
|
return o;
|
|
1344
|
-
if (c.status ===
|
|
1345
|
-
return
|
|
1346
|
-
if (c.status ===
|
|
1347
|
-
const
|
|
1062
|
+
if (c.status === y.WAIT)
|
|
1063
|
+
return e.getCache(i.unitId, i.subUnitId, n.cfId) || o;
|
|
1064
|
+
if (c.status === y.SUCCESS) {
|
|
1065
|
+
const C = Number(c.result), m = Number.isNaN(C) ? 0 : C;
|
|
1348
1066
|
u = Math.max(m, h), h = Math.min(m, h);
|
|
1349
1067
|
} else
|
|
1350
1068
|
return o;
|
|
1351
|
-
const
|
|
1069
|
+
const g = t.config.isGradient, d = t.isShowValue, D = (C) => Math.max(Math.min(100, C), 0);
|
|
1352
1070
|
if (!(h === u || u < h)) {
|
|
1353
1071
|
if (h < 0 && u <= 0) {
|
|
1354
|
-
const
|
|
1355
|
-
r.forValue((F,
|
|
1356
|
-
if (
|
|
1072
|
+
const C = u - h, m = 100;
|
|
1073
|
+
r.forValue((F, w, v) => {
|
|
1074
|
+
if (v > u)
|
|
1357
1075
|
return;
|
|
1358
|
-
const
|
|
1359
|
-
o.setValue(F,
|
|
1076
|
+
const A = D((u - v) / C * 100);
|
|
1077
|
+
o.setValue(F, w, { color: t.config.nativeColor || p2, startPoint: m, value: -A, isGradient: g, isShowValue: d });
|
|
1360
1078
|
});
|
|
1361
1079
|
} else if (h < 0 && u > 0) {
|
|
1362
|
-
const
|
|
1363
|
-
r.forValue((F,
|
|
1364
|
-
if (
|
|
1365
|
-
if (
|
|
1366
|
-
const
|
|
1367
|
-
o.setValue(F,
|
|
1080
|
+
const C = Math.abs(u) + Math.abs(h), m = Math.abs(h) / C * 100;
|
|
1081
|
+
r.forValue((F, w, v) => {
|
|
1082
|
+
if (v)
|
|
1083
|
+
if (v > 0) {
|
|
1084
|
+
const A = D(Math.min(v / u, 1) * 100);
|
|
1085
|
+
o.setValue(F, w, { color: t.config.positiveColor || v2, startPoint: m, value: A, isGradient: g, isShowValue: d });
|
|
1368
1086
|
} else {
|
|
1369
|
-
const
|
|
1370
|
-
o.setValue(F,
|
|
1087
|
+
const A = D(Math.min(Math.abs(v) / Math.abs(h), 1) * 100);
|
|
1088
|
+
o.setValue(F, w, { color: t.config.nativeColor || p2, startPoint: m, value: -A, isGradient: g, isShowValue: d });
|
|
1371
1089
|
}
|
|
1372
1090
|
});
|
|
1373
1091
|
} else if (h >= 0 && u > 0) {
|
|
1374
|
-
const
|
|
1375
|
-
r.forValue((F,
|
|
1376
|
-
if (
|
|
1092
|
+
const C = u - h, m = 0;
|
|
1093
|
+
r.forValue((F, w, v) => {
|
|
1094
|
+
if (v < h)
|
|
1377
1095
|
return;
|
|
1378
|
-
const
|
|
1379
|
-
o.setValue(F,
|
|
1096
|
+
const A = D((1 - (u - v) / C) * 100);
|
|
1097
|
+
o.setValue(F, w, { color: t.config.positiveColor || v2, startPoint: m, value: A, isGradient: g, isShowValue: d });
|
|
1380
1098
|
});
|
|
1381
1099
|
}
|
|
1382
1100
|
}
|
|
1383
1101
|
return o;
|
|
1384
1102
|
}
|
|
1385
|
-
},
|
|
1386
|
-
type:
|
|
1387
|
-
handle: async (
|
|
1388
|
-
const
|
|
1389
|
-
switch (
|
|
1390
|
-
case
|
|
1391
|
-
let u = 0,
|
|
1103
|
+
}, j0 = {
|
|
1104
|
+
type: L.highlightCell,
|
|
1105
|
+
handle: async (n, i) => {
|
|
1106
|
+
const t = n.rule, { worksheet: e, unitId: s, subUnitId: r } = i, a = u2(n.ranges, e.getMaxRows() - 1, e.getMaxColumns() - 1), l = (() => {
|
|
1107
|
+
switch (t.subType) {
|
|
1108
|
+
case _.average: {
|
|
1109
|
+
let u = 0, g = 0;
|
|
1392
1110
|
return a.forEach((d) => {
|
|
1393
|
-
|
|
1394
|
-
const m =
|
|
1395
|
-
m && m.t ===
|
|
1111
|
+
R.foreach(d, (D, C) => {
|
|
1112
|
+
const m = e == null ? void 0 : e.getCellRaw(D, C), F = T(m || void 0);
|
|
1113
|
+
m && m.t === B.NUMBER && F !== void 0 && (u += Number(F) || 0, g++);
|
|
1396
1114
|
});
|
|
1397
|
-
}), { average: u /
|
|
1115
|
+
}), { average: u / g };
|
|
1398
1116
|
}
|
|
1399
|
-
case
|
|
1400
|
-
case
|
|
1117
|
+
case _.uniqueValues:
|
|
1118
|
+
case _.duplicateValues: {
|
|
1401
1119
|
const u = /* @__PURE__ */ new Map();
|
|
1402
|
-
return a.forEach((
|
|
1403
|
-
|
|
1404
|
-
const
|
|
1120
|
+
return a.forEach((g) => {
|
|
1121
|
+
R.foreach(g, (d, D) => {
|
|
1122
|
+
const C = e == null ? void 0 : e.getCellRaw(d, D), m = T(C || void 0);
|
|
1405
1123
|
if (m !== void 0) {
|
|
1406
1124
|
const F = u.get(m);
|
|
1407
1125
|
F ? u.set(m, F + 1) : u.set(m, 1);
|
|
@@ -1409,245 +1127,245 @@ const f1 = {
|
|
|
1409
1127
|
});
|
|
1410
1128
|
}), { count: u };
|
|
1411
1129
|
}
|
|
1412
|
-
case
|
|
1130
|
+
case _.rank: {
|
|
1413
1131
|
const u = [];
|
|
1414
|
-
a.forEach((
|
|
1415
|
-
|
|
1416
|
-
const F =
|
|
1417
|
-
F && F.t ===
|
|
1132
|
+
a.forEach((D) => {
|
|
1133
|
+
R.foreach(D, (C, m) => {
|
|
1134
|
+
const F = e == null ? void 0 : e.getCellRaw(C, m), w = T(F || void 0);
|
|
1135
|
+
F && F.t === B.NUMBER && w !== void 0 && u.push(Number(w) || 0);
|
|
1418
1136
|
});
|
|
1419
|
-
}), u.sort((
|
|
1420
|
-
const
|
|
1421
|
-
return
|
|
1137
|
+
}), u.sort((D, C) => C - D);
|
|
1138
|
+
const g = n.rule, d = g.isPercent ? Math.floor(Math.max(Math.min(g.value, 100), 0) / 100 * u.length) : Math.floor(Math.max(Math.min(g.isBottom ? g.value - 1 : g.value, u.length), 0));
|
|
1139
|
+
return g.isBottom ? { rank: u[u.length - d - 1] } : { rank: u[Math.max(d - 1, 0)] };
|
|
1422
1140
|
}
|
|
1423
|
-
case
|
|
1424
|
-
const u =
|
|
1425
|
-
|
|
1141
|
+
case _.formula: {
|
|
1142
|
+
const u = t;
|
|
1143
|
+
i.accessor.get(N).registerFormulaWithRange(i.unitId, i.subUnitId, n.cfId, u.value, n.ranges);
|
|
1426
1144
|
break;
|
|
1427
1145
|
}
|
|
1428
|
-
case
|
|
1429
|
-
switch (
|
|
1430
|
-
case
|
|
1146
|
+
case _.timePeriod:
|
|
1147
|
+
switch (t.operator) {
|
|
1148
|
+
case S.last7Days:
|
|
1431
1149
|
return {
|
|
1432
1150
|
timePeriod: {
|
|
1433
|
-
start:
|
|
1434
|
-
end:
|
|
1151
|
+
start: x().subtract(7, "day").valueOf(),
|
|
1152
|
+
end: x().valueOf()
|
|
1435
1153
|
}
|
|
1436
1154
|
};
|
|
1437
|
-
case
|
|
1155
|
+
case S.lastMonth:
|
|
1438
1156
|
return {
|
|
1439
1157
|
timePeriod: {
|
|
1440
|
-
start:
|
|
1441
|
-
end:
|
|
1158
|
+
start: x().startOf("month").subtract(1, "month").valueOf(),
|
|
1159
|
+
end: x().endOf("month").subtract(1, "month").valueOf()
|
|
1442
1160
|
}
|
|
1443
1161
|
};
|
|
1444
|
-
case
|
|
1162
|
+
case S.lastWeek:
|
|
1445
1163
|
return {
|
|
1446
1164
|
timePeriod: {
|
|
1447
|
-
start:
|
|
1448
|
-
end:
|
|
1165
|
+
start: x().startOf("week").subtract(1, "week").valueOf(),
|
|
1166
|
+
end: x().endOf("week").subtract(1, "week").valueOf()
|
|
1449
1167
|
}
|
|
1450
1168
|
};
|
|
1451
|
-
case
|
|
1169
|
+
case S.nextMonth:
|
|
1452
1170
|
return {
|
|
1453
1171
|
timePeriod: {
|
|
1454
|
-
start:
|
|
1455
|
-
end:
|
|
1172
|
+
start: x().startOf("month").add(1, "month").valueOf(),
|
|
1173
|
+
end: x().endOf("month").add(1, "month").valueOf()
|
|
1456
1174
|
}
|
|
1457
1175
|
};
|
|
1458
|
-
case
|
|
1176
|
+
case S.nextWeek:
|
|
1459
1177
|
return {
|
|
1460
1178
|
timePeriod: {
|
|
1461
|
-
start:
|
|
1462
|
-
end:
|
|
1179
|
+
start: x().startOf("week").add(1, "week").valueOf(),
|
|
1180
|
+
end: x().endOf("week").add(1, "week").valueOf()
|
|
1463
1181
|
}
|
|
1464
1182
|
};
|
|
1465
|
-
case
|
|
1183
|
+
case S.thisMonth:
|
|
1466
1184
|
return {
|
|
1467
1185
|
timePeriod: {
|
|
1468
|
-
start:
|
|
1469
|
-
end:
|
|
1186
|
+
start: x().startOf("month").valueOf(),
|
|
1187
|
+
end: x().endOf("month").valueOf()
|
|
1470
1188
|
}
|
|
1471
1189
|
};
|
|
1472
|
-
case
|
|
1190
|
+
case S.thisWeek:
|
|
1473
1191
|
return {
|
|
1474
1192
|
timePeriod: {
|
|
1475
|
-
start:
|
|
1476
|
-
end:
|
|
1193
|
+
start: x().startOf("week").valueOf(),
|
|
1194
|
+
end: x().endOf("week").valueOf()
|
|
1477
1195
|
}
|
|
1478
1196
|
};
|
|
1479
|
-
case
|
|
1197
|
+
case S.today:
|
|
1480
1198
|
return {
|
|
1481
1199
|
timePeriod: {
|
|
1482
|
-
start:
|
|
1483
|
-
end:
|
|
1200
|
+
start: x().startOf("day").valueOf(),
|
|
1201
|
+
end: x().endOf("day").valueOf()
|
|
1484
1202
|
}
|
|
1485
1203
|
};
|
|
1486
|
-
case
|
|
1204
|
+
case S.tomorrow:
|
|
1487
1205
|
return {
|
|
1488
1206
|
timePeriod: {
|
|
1489
|
-
start:
|
|
1490
|
-
end:
|
|
1207
|
+
start: x().startOf("day").add(1, "day").valueOf(),
|
|
1208
|
+
end: x().endOf("day").add(1, "day").valueOf()
|
|
1491
1209
|
}
|
|
1492
1210
|
};
|
|
1493
|
-
case
|
|
1211
|
+
case S.yesterday:
|
|
1494
1212
|
return {
|
|
1495
1213
|
timePeriod: {
|
|
1496
|
-
start:
|
|
1497
|
-
end:
|
|
1214
|
+
start: x().startOf("day").subtract(1, "day").valueOf(),
|
|
1215
|
+
end: x().endOf("day").subtract(1, "day").valueOf()
|
|
1498
1216
|
}
|
|
1499
1217
|
};
|
|
1500
1218
|
}
|
|
1501
1219
|
}
|
|
1502
|
-
})(), c = (u,
|
|
1503
|
-
const d =
|
|
1504
|
-
switch (
|
|
1505
|
-
case
|
|
1506
|
-
const
|
|
1507
|
-
if (
|
|
1220
|
+
})(), c = (u, g) => {
|
|
1221
|
+
const d = e == null ? void 0 : e.getCellRaw(u, g);
|
|
1222
|
+
switch (t.subType) {
|
|
1223
|
+
case _.number: {
|
|
1224
|
+
const D = d && Number(d.v);
|
|
1225
|
+
if (k(D) || Number.isNaN(D) || (d == null ? void 0 : d.t) !== B.NUMBER)
|
|
1508
1226
|
return !1;
|
|
1509
|
-
const
|
|
1510
|
-
return
|
|
1227
|
+
const C = t;
|
|
1228
|
+
return J({ operator: C.operator, value: C.value || 0 }, D || 0);
|
|
1511
1229
|
}
|
|
1512
|
-
case
|
|
1513
|
-
const
|
|
1514
|
-
switch (
|
|
1515
|
-
case
|
|
1230
|
+
case _.text: {
|
|
1231
|
+
const D = t, C = T(d), m = C === null ? "" : String(C), F = D.value || "";
|
|
1232
|
+
switch (D.operator) {
|
|
1233
|
+
case b.beginsWith:
|
|
1516
1234
|
return m.startsWith(F);
|
|
1517
|
-
case
|
|
1235
|
+
case b.containsBlanks:
|
|
1518
1236
|
return /^\s*$/.test(m);
|
|
1519
|
-
case
|
|
1237
|
+
case b.notContainsBlanks:
|
|
1520
1238
|
return !/^\s*$/.test(m);
|
|
1521
|
-
case
|
|
1522
|
-
return
|
|
1523
|
-
case
|
|
1524
|
-
return !
|
|
1525
|
-
case
|
|
1239
|
+
case b.containsErrors:
|
|
1240
|
+
return E2.has(m);
|
|
1241
|
+
case b.notContainsErrors:
|
|
1242
|
+
return !E2.has(m);
|
|
1243
|
+
case b.containsText:
|
|
1526
1244
|
return m.indexOf(F) > -1;
|
|
1527
|
-
case
|
|
1245
|
+
case b.notContainsText:
|
|
1528
1246
|
return m.indexOf(F) === -1;
|
|
1529
|
-
case
|
|
1247
|
+
case b.endsWith:
|
|
1530
1248
|
return m.endsWith(F);
|
|
1531
|
-
case
|
|
1249
|
+
case b.equal:
|
|
1532
1250
|
return m === F;
|
|
1533
|
-
case
|
|
1251
|
+
case b.notEqual:
|
|
1534
1252
|
return m !== F;
|
|
1535
1253
|
default:
|
|
1536
1254
|
return !1;
|
|
1537
1255
|
}
|
|
1538
1256
|
}
|
|
1539
|
-
case
|
|
1540
|
-
const
|
|
1541
|
-
if (
|
|
1257
|
+
case _.timePeriod: {
|
|
1258
|
+
const D = T(d);
|
|
1259
|
+
if (k(D) || Number.isNaN(Number(D)) || (d == null ? void 0 : d.t) !== B.NUMBER)
|
|
1542
1260
|
return !1;
|
|
1543
|
-
const
|
|
1544
|
-
return
|
|
1261
|
+
const C = U0(Number(D)), { start: m, end: F } = l.timePeriod;
|
|
1262
|
+
return C >= m && C <= F;
|
|
1545
1263
|
}
|
|
1546
|
-
case
|
|
1547
|
-
const
|
|
1548
|
-
if (
|
|
1264
|
+
case _.average: {
|
|
1265
|
+
const D = d && d.v, C = Number(D);
|
|
1266
|
+
if (k(D) || Number.isNaN(C) || (d == null ? void 0 : d.t) !== B.NUMBER)
|
|
1549
1267
|
return !1;
|
|
1550
|
-
const m =
|
|
1268
|
+
const m = t, F = l == null ? void 0 : l.average;
|
|
1551
1269
|
switch (m.operator) {
|
|
1552
|
-
case
|
|
1553
|
-
return
|
|
1554
|
-
case
|
|
1555
|
-
return
|
|
1556
|
-
case
|
|
1557
|
-
return
|
|
1558
|
-
case
|
|
1559
|
-
return
|
|
1560
|
-
case
|
|
1561
|
-
return
|
|
1562
|
-
case
|
|
1563
|
-
return !
|
|
1270
|
+
case p.greaterThan:
|
|
1271
|
+
return C > F;
|
|
1272
|
+
case p.greaterThanOrEqual:
|
|
1273
|
+
return C >= F;
|
|
1274
|
+
case p.lessThan:
|
|
1275
|
+
return C < F;
|
|
1276
|
+
case p.lessThanOrEqual:
|
|
1277
|
+
return C <= F;
|
|
1278
|
+
case p.equal:
|
|
1279
|
+
return r2(C, F);
|
|
1280
|
+
case p.notEqual:
|
|
1281
|
+
return !r2(C, F);
|
|
1564
1282
|
default:
|
|
1565
1283
|
return !1;
|
|
1566
1284
|
}
|
|
1567
1285
|
}
|
|
1568
|
-
case
|
|
1569
|
-
const
|
|
1570
|
-
if (
|
|
1286
|
+
case _.rank: {
|
|
1287
|
+
const D = T(d), C = Number(D);
|
|
1288
|
+
if (k(D) || Number.isNaN(C) || (d == null ? void 0 : d.t) !== B.NUMBER)
|
|
1571
1289
|
return !1;
|
|
1572
1290
|
const m = l.rank;
|
|
1573
|
-
return
|
|
1291
|
+
return t.isBottom ? C <= m : C >= m;
|
|
1574
1292
|
}
|
|
1575
|
-
case
|
|
1576
|
-
const
|
|
1577
|
-
return
|
|
1293
|
+
case _.uniqueValues: {
|
|
1294
|
+
const D = T(d);
|
|
1295
|
+
return k(D) ? !1 : l.count.get(D) === 1;
|
|
1578
1296
|
}
|
|
1579
|
-
case
|
|
1580
|
-
const
|
|
1581
|
-
return
|
|
1297
|
+
case _.duplicateValues: {
|
|
1298
|
+
const D = T(d);
|
|
1299
|
+
return k(D) ? !1 : l.count.get(D) !== 1;
|
|
1582
1300
|
}
|
|
1583
|
-
case
|
|
1584
|
-
const
|
|
1585
|
-
return m && m.status ===
|
|
1301
|
+
case _.formula: {
|
|
1302
|
+
const D = t, m = i.accessor.get(N).getFormulaResult(s, r, n.cfId, D.value, u, g);
|
|
1303
|
+
return m && m.status === y.SUCCESS ? m.result === !0 : !1;
|
|
1586
1304
|
}
|
|
1587
1305
|
}
|
|
1588
|
-
}, h = new
|
|
1589
|
-
if (
|
|
1590
|
-
const u =
|
|
1591
|
-
if (!
|
|
1592
|
-
return
|
|
1306
|
+
}, h = new I();
|
|
1307
|
+
if (t.subType === _.formula) {
|
|
1308
|
+
const u = t, g = i.accessor.get(N), d = g.getSubUnitFormulaMap(s, r), D = d == null ? void 0 : d.getValue(g.createCFormulaId(n.cfId, u.value), ["id"]);
|
|
1309
|
+
if (!D || D.status !== y.SUCCESS)
|
|
1310
|
+
return g.getCache(s, r, n.cfId) || h;
|
|
1593
1311
|
}
|
|
1594
1312
|
return a.forEach((u) => {
|
|
1595
|
-
|
|
1596
|
-
c(
|
|
1313
|
+
R.foreach(u, (g, d) => {
|
|
1314
|
+
c(g, d) ? h.setValue(g, d, t.style) : h.setValue(g, d, X);
|
|
1597
1315
|
});
|
|
1598
1316
|
}), h;
|
|
1599
1317
|
}
|
|
1600
|
-
},
|
|
1601
|
-
type:
|
|
1602
|
-
handle: async (
|
|
1603
|
-
var
|
|
1604
|
-
const
|
|
1318
|
+
}, G0 = {
|
|
1319
|
+
type: L.iconSet,
|
|
1320
|
+
handle: async (n, i) => {
|
|
1321
|
+
var g;
|
|
1322
|
+
const t = n.rule, e = i.accessor.get(N), { worksheet: s } = i, r = new I(), a = u2(n.ranges, s.getMaxRows() - 1, s.getMaxColumns() - 1);
|
|
1605
1323
|
a.forEach((d) => {
|
|
1606
|
-
|
|
1607
|
-
const m =
|
|
1608
|
-
if (!
|
|
1609
|
-
const
|
|
1610
|
-
!Number.isNaN(
|
|
1324
|
+
R.foreach(d, (D, C) => {
|
|
1325
|
+
const m = s == null ? void 0 : s.getCellRaw(D, C), F = m && m.v;
|
|
1326
|
+
if (!k(F) && (m == null ? void 0 : m.t) === B.NUMBER) {
|
|
1327
|
+
const w = Number(F);
|
|
1328
|
+
!Number.isNaN(w) && r.setValue(D, C, w);
|
|
1611
1329
|
}
|
|
1612
1330
|
});
|
|
1613
1331
|
});
|
|
1614
|
-
const o = new
|
|
1332
|
+
const o = new I();
|
|
1615
1333
|
a.forEach((d) => {
|
|
1616
|
-
|
|
1617
|
-
o.setValue(
|
|
1334
|
+
R.foreach(d, (D, C) => {
|
|
1335
|
+
o.setValue(D, C, X);
|
|
1618
1336
|
});
|
|
1619
1337
|
});
|
|
1620
|
-
const l =
|
|
1621
|
-
if (l.some((d) => d.status !==
|
|
1622
|
-
return (
|
|
1623
|
-
const h = l.map((d,
|
|
1624
|
-
operator:
|
|
1338
|
+
const l = t.config.map((d) => a2(d.value, r, { ...i, cfId: n.cfId }));
|
|
1339
|
+
if (l.some((d) => d.status !== y.SUCCESS))
|
|
1340
|
+
return (g = e.getCache(i.unitId, i.subUnitId, n.cfId)) != null ? g : o;
|
|
1341
|
+
const h = l.map((d, D) => ({
|
|
1342
|
+
operator: t.config[D].operator,
|
|
1625
1343
|
value: Number(d.result) || 0
|
|
1626
|
-
})).reduce((d,
|
|
1627
|
-
const F =
|
|
1628
|
-
if (!
|
|
1629
|
-
d.push({ ...
|
|
1344
|
+
})).reduce((d, D, C, m) => {
|
|
1345
|
+
const F = t.config[C];
|
|
1346
|
+
if (!C || C === m.length - 1)
|
|
1347
|
+
d.push({ ...D, iconId: F.iconId, iconType: F.iconType });
|
|
1630
1348
|
else {
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1349
|
+
const w = m[C - 1];
|
|
1350
|
+
J(w, D.value) || d.push({ ...D, iconId: F.iconId, iconType: F.iconType });
|
|
1633
1351
|
}
|
|
1634
1352
|
return d;
|
|
1635
|
-
}, []), u =
|
|
1636
|
-
return r.forValue((d,
|
|
1353
|
+
}, []), u = t.isShowValue === void 0 ? !0 : !!t.isShowValue;
|
|
1354
|
+
return r.forValue((d, D, C) => {
|
|
1637
1355
|
for (let m = 0; m < h.length; m++) {
|
|
1638
|
-
const F = h[m],
|
|
1356
|
+
const F = h[m], w = { ...F }, v = { ...F }, { iconId: A, iconType: O } = F;
|
|
1639
1357
|
if (m === 0) {
|
|
1640
|
-
if (
|
|
1641
|
-
o.setValue(d,
|
|
1358
|
+
if (J(F, C)) {
|
|
1359
|
+
o.setValue(d, D, { iconId: A, iconType: O, isShowValue: u });
|
|
1642
1360
|
return;
|
|
1643
1361
|
}
|
|
1644
1362
|
} else if (m === h.length - 1) {
|
|
1645
|
-
o.setValue(d,
|
|
1363
|
+
o.setValue(d, D, { iconId: A, iconType: O, isShowValue: u });
|
|
1646
1364
|
return;
|
|
1647
1365
|
} else {
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1650
|
-
o.setValue(d,
|
|
1366
|
+
const P = h[m - 1];
|
|
1367
|
+
if (v.operator = N0(P.operator), v.value = P.value, J(w, C) && J(v, C)) {
|
|
1368
|
+
o.setValue(d, D, { iconId: A, iconType: O, isShowValue: u });
|
|
1651
1369
|
return;
|
|
1652
1370
|
}
|
|
1653
1371
|
}
|
|
@@ -1655,27 +1373,27 @@ const f1 = {
|
|
|
1655
1373
|
}), o;
|
|
1656
1374
|
}
|
|
1657
1375
|
};
|
|
1658
|
-
var
|
|
1659
|
-
for (var
|
|
1660
|
-
(a =
|
|
1661
|
-
return
|
|
1662
|
-
},
|
|
1663
|
-
const
|
|
1664
|
-
let
|
|
1665
|
-
constructor(
|
|
1376
|
+
var H0 = Object.defineProperty, X0 = Object.getOwnPropertyDescriptor, Y0 = (n, i, t, e) => {
|
|
1377
|
+
for (var s = e > 1 ? void 0 : e ? X0(i, t) : i, r = n.length - 1, a; r >= 0; r--)
|
|
1378
|
+
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
1379
|
+
return e && s && H0(i, t, s), s;
|
|
1380
|
+
}, Z = (n, i) => (t, e) => i(t, e, n);
|
|
1381
|
+
const K0 = N2("conditional-formatting-before-update-rule-result");
|
|
1382
|
+
let z = class extends x2 {
|
|
1383
|
+
constructor(i, t, e, s, r, a, o) {
|
|
1666
1384
|
super();
|
|
1667
1385
|
// <unitId,<subUnitId,<cfId,IComputeCache>>>
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
this._conditionalFormattingRuleModel =
|
|
1386
|
+
E(this, "_ruleCacheMap", /* @__PURE__ */ new Map());
|
|
1387
|
+
E(this, "_calculateUnit$", new s2());
|
|
1388
|
+
E(this, "_ruleComputeStatus$", new s2());
|
|
1389
|
+
E(this, "ruleComputeStatus$", this._ruleComputeStatus$.asObservable());
|
|
1390
|
+
E(this, "interceptorManager", new P2({ beforeUpdateRuleResult: K0 }));
|
|
1391
|
+
E(this, "_calculationUnitMap", /* @__PURE__ */ new Map());
|
|
1392
|
+
this._conditionalFormattingRuleModel = i, this._injector = t, this._conditionalFormattingViewModel = e, this._univerInstanceService = s, this._resourceManagerService = r, this._sheetInterceptorService = a, this._commandService = o, this._initCellChange(), this._initCacheManager(), this._initRemoteCalculate(), this._initSnapshot(), this._initSheetChange(), this._registerCalculationUnit(Z0), this._registerCalculationUnit(P0), this._registerCalculationUnit(j0), this._registerCalculationUnit(G0), this._calculateUnit$.pipe(y2(100), D2((l) => !!l.length), Z2((l) => {
|
|
1675
1393
|
const c = (u) => `${u.unitId}_${u.subUnitId}_${u.rule.cfId}`;
|
|
1676
|
-
return l.reduce((u,
|
|
1677
|
-
const d = c(
|
|
1678
|
-
return u.map[d] || (u.map[d] =
|
|
1394
|
+
return l.reduce((u, g) => {
|
|
1395
|
+
const d = c(g);
|
|
1396
|
+
return u.map[d] || (u.map[d] = g, u.list.push(g)), u;
|
|
1679
1397
|
}, {
|
|
1680
1398
|
map: {},
|
|
1681
1399
|
list: []
|
|
@@ -1688,24 +1406,24 @@ let v2 = class extends q2 {
|
|
|
1688
1406
|
this.interceptorManager.dispose();
|
|
1689
1407
|
});
|
|
1690
1408
|
}
|
|
1691
|
-
composeStyle(
|
|
1692
|
-
const r = this._conditionalFormattingViewModel.getCellCf(
|
|
1409
|
+
composeStyle(i, t, e, s) {
|
|
1410
|
+
const r = this._conditionalFormattingViewModel.getCellCf(i, t, e, s);
|
|
1693
1411
|
if (r) {
|
|
1694
|
-
const a = r.cfList.map((c) => this._conditionalFormattingRuleModel.getRule(
|
|
1412
|
+
const a = r.cfList.map((c) => this._conditionalFormattingRuleModel.getRule(i, t, c.cfId)).filter((c) => !!c).reverse(), o = a.findIndex((c) => c == null ? void 0 : c.stopIfTrue);
|
|
1695
1413
|
return o > -1 && a.splice(o + 1), a.reduce((c, h) => {
|
|
1696
1414
|
var d;
|
|
1697
|
-
const u = h.rule.type,
|
|
1698
|
-
if (
|
|
1699
|
-
|
|
1700
|
-
else if (u ===
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
} else if (u ===
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
} else if (u ===
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1415
|
+
const u = h.rule.type, g = r.cfList.find((D) => D.cfId === h.cfId);
|
|
1416
|
+
if (g != null && g.isDirty && this._calculateUnit$.next({ unitId: i, subUnitId: t, rule: h }), u === L.highlightCell)
|
|
1417
|
+
g.ruleCache && Y.deepMerge(c, { style: g.ruleCache });
|
|
1418
|
+
else if (u === L.colorScale) {
|
|
1419
|
+
const D = g == null ? void 0 : g.ruleCache;
|
|
1420
|
+
D && typeof D == "string" && (c.style = { ...(d = c.style) != null ? d : {}, bg: { rgb: D } });
|
|
1421
|
+
} else if (u === L.dataBar) {
|
|
1422
|
+
const D = g == null ? void 0 : g.ruleCache;
|
|
1423
|
+
D && D !== X && (c.dataBar = D, c.isShowValue = D.isShowValue);
|
|
1424
|
+
} else if (u === L.iconSet) {
|
|
1425
|
+
const D = g == null ? void 0 : g.ruleCache;
|
|
1426
|
+
D && D !== X && (c.iconSet = D, c.isShowValue = D.isShowValue);
|
|
1709
1427
|
}
|
|
1710
1428
|
return c;
|
|
1711
1429
|
}, {});
|
|
@@ -1713,33 +1431,33 @@ let v2 = class extends q2 {
|
|
|
1713
1431
|
return null;
|
|
1714
1432
|
}
|
|
1715
1433
|
_initSnapshot() {
|
|
1716
|
-
const
|
|
1717
|
-
const
|
|
1718
|
-
return
|
|
1434
|
+
const i = (e) => {
|
|
1435
|
+
const s = this._conditionalFormattingRuleModel.getUnitRules(e), r = {};
|
|
1436
|
+
return s ? (s.forEach((a, o) => {
|
|
1719
1437
|
r[o] = a;
|
|
1720
1438
|
}), JSON.stringify(r)) : "";
|
|
1721
|
-
},
|
|
1722
|
-
if (!
|
|
1439
|
+
}, t = (e) => {
|
|
1440
|
+
if (!e)
|
|
1723
1441
|
return {};
|
|
1724
1442
|
try {
|
|
1725
|
-
return JSON.parse(
|
|
1443
|
+
return JSON.parse(e);
|
|
1726
1444
|
} catch {
|
|
1727
1445
|
return {};
|
|
1728
1446
|
}
|
|
1729
1447
|
};
|
|
1730
1448
|
this.disposeWithMe(
|
|
1731
1449
|
this._resourceManagerService.registerPluginResource({
|
|
1732
|
-
pluginName:
|
|
1733
|
-
businesses: [
|
|
1734
|
-
toJson: (
|
|
1735
|
-
parseJson: (
|
|
1736
|
-
onUnLoad: (
|
|
1737
|
-
this._conditionalFormattingRuleModel.deleteUnitId(
|
|
1450
|
+
pluginName: L2,
|
|
1451
|
+
businesses: [l2.UNIVER_SHEET],
|
|
1452
|
+
toJson: (e) => i(e),
|
|
1453
|
+
parseJson: (e) => t(e),
|
|
1454
|
+
onUnLoad: (e) => {
|
|
1455
|
+
this._conditionalFormattingRuleModel.deleteUnitId(e);
|
|
1738
1456
|
},
|
|
1739
|
-
onLoad: (
|
|
1740
|
-
Object.keys(
|
|
1741
|
-
[...
|
|
1742
|
-
this._conditionalFormattingRuleModel.addRule(
|
|
1457
|
+
onLoad: (e, s) => {
|
|
1458
|
+
Object.keys(s).forEach((r) => {
|
|
1459
|
+
[...s[r]].reverse().forEach((o) => {
|
|
1460
|
+
this._conditionalFormattingRuleModel.addRule(e, r, o);
|
|
1743
1461
|
});
|
|
1744
1462
|
});
|
|
1745
1463
|
}
|
|
@@ -1749,25 +1467,25 @@ let v2 = class extends q2 {
|
|
|
1749
1467
|
_initSheetChange() {
|
|
1750
1468
|
this.disposeWithMe(
|
|
1751
1469
|
this._sheetInterceptorService.interceptCommand({
|
|
1752
|
-
getMutations: (
|
|
1753
|
-
if (
|
|
1754
|
-
const
|
|
1755
|
-
if (!
|
|
1470
|
+
getMutations: (i) => {
|
|
1471
|
+
if (i.id === G2.id) {
|
|
1472
|
+
const t = i.params, e = t.unitId || J0(this._univerInstanceService), s = t.subUnitId || z0(this._univerInstanceService);
|
|
1473
|
+
if (!s)
|
|
1756
1474
|
return { redos: [], undos: [] };
|
|
1757
|
-
const r = this._conditionalFormattingRuleModel.getSubunitRules(
|
|
1475
|
+
const r = this._conditionalFormattingRuleModel.getSubunitRules(e, s);
|
|
1758
1476
|
if (!r)
|
|
1759
1477
|
return { redos: [], undos: [] };
|
|
1760
1478
|
const a = [], o = [];
|
|
1761
1479
|
return r.forEach((l) => {
|
|
1762
1480
|
const c = {
|
|
1763
|
-
unitId:
|
|
1764
|
-
subUnitId:
|
|
1481
|
+
unitId: e,
|
|
1482
|
+
subUnitId: s,
|
|
1765
1483
|
cfId: l.cfId
|
|
1766
1484
|
};
|
|
1767
1485
|
a.push({
|
|
1768
|
-
id:
|
|
1486
|
+
id: m2.id,
|
|
1769
1487
|
params: c
|
|
1770
|
-
}), o.push(...
|
|
1488
|
+
}), o.push(...R0(this._injector, c));
|
|
1771
1489
|
}), {
|
|
1772
1490
|
redos: a,
|
|
1773
1491
|
undos: o
|
|
@@ -1778,107 +1496,107 @@ let v2 = class extends q2 {
|
|
|
1778
1496
|
})
|
|
1779
1497
|
);
|
|
1780
1498
|
}
|
|
1781
|
-
_registerCalculationUnit(
|
|
1782
|
-
this._calculationUnitMap.set(
|
|
1499
|
+
_registerCalculationUnit(i) {
|
|
1500
|
+
this._calculationUnitMap.set(i.type, i);
|
|
1783
1501
|
}
|
|
1784
|
-
_getComputedCache(
|
|
1785
|
-
var
|
|
1786
|
-
return (r = (
|
|
1502
|
+
_getComputedCache(i, t, e) {
|
|
1503
|
+
var s, r;
|
|
1504
|
+
return (r = (s = this._ruleCacheMap.get(i)) == null ? void 0 : s.get(t)) == null ? void 0 : r.get(e);
|
|
1787
1505
|
}
|
|
1788
|
-
_setComputedCache(
|
|
1789
|
-
let r = this._ruleCacheMap.get(
|
|
1790
|
-
r || (r = /* @__PURE__ */ new Map(), this._ruleCacheMap.set(
|
|
1791
|
-
let a = r.get(
|
|
1792
|
-
a || (a = /* @__PURE__ */ new Map(), r.set(
|
|
1506
|
+
_setComputedCache(i, t, e, s) {
|
|
1507
|
+
let r = this._ruleCacheMap.get(i);
|
|
1508
|
+
r || (r = /* @__PURE__ */ new Map(), this._ruleCacheMap.set(i, r));
|
|
1509
|
+
let a = r.get(t);
|
|
1510
|
+
a || (a = /* @__PURE__ */ new Map(), r.set(t, a)), a.set(e, s);
|
|
1793
1511
|
}
|
|
1794
|
-
_deleteComputeCache(
|
|
1795
|
-
const
|
|
1796
|
-
r && (r.delete(
|
|
1512
|
+
_deleteComputeCache(i, t, e) {
|
|
1513
|
+
const s = this._ruleCacheMap.get(i), r = s == null ? void 0 : s.get(t);
|
|
1514
|
+
r && (r.delete(e), r.size || s == null || s.delete(t));
|
|
1797
1515
|
}
|
|
1798
1516
|
_initCacheManager() {
|
|
1799
|
-
this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe((
|
|
1800
|
-
this._deleteComputeCache(
|
|
1801
|
-
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(
|
|
1802
|
-
const { unitId:
|
|
1803
|
-
this._deleteComputeCache(
|
|
1517
|
+
this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe((i) => {
|
|
1518
|
+
this._deleteComputeCache(i.unitId, i.subUnitId, i.rule.cfId);
|
|
1519
|
+
})), this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(D2((i) => i.type !== "sort")).subscribe((i) => {
|
|
1520
|
+
const { unitId: t, subUnitId: e, rule: s } = i;
|
|
1521
|
+
this._deleteComputeCache(t, e, s.cfId);
|
|
1804
1522
|
}));
|
|
1805
1523
|
}
|
|
1806
1524
|
_initCellChange() {
|
|
1807
1525
|
this.disposeWithMe(
|
|
1808
|
-
this._commandService.onCommandExecuted((
|
|
1809
|
-
const
|
|
1526
|
+
this._commandService.onCommandExecuted((i) => {
|
|
1527
|
+
const t = (e, s, r) => {
|
|
1810
1528
|
const a = /* @__PURE__ */ new Set();
|
|
1811
1529
|
return r.forEach(([o, l]) => {
|
|
1812
|
-
const c = this._conditionalFormattingViewModel.getCellCf(
|
|
1530
|
+
const c = this._conditionalFormattingViewModel.getCellCf(e, s, o, l);
|
|
1813
1531
|
c == null || c.cfList.forEach((h) => a.add(h.cfId));
|
|
1814
|
-
}), [...a].map((o) => this._conditionalFormattingRuleModel.getRule(
|
|
1532
|
+
}), [...a].map((o) => this._conditionalFormattingRuleModel.getRule(e, s, o)).filter((o) => !!o);
|
|
1815
1533
|
};
|
|
1816
|
-
switch (
|
|
1817
|
-
case
|
|
1818
|
-
const
|
|
1819
|
-
new
|
|
1534
|
+
switch (i.id) {
|
|
1535
|
+
case t0.id: {
|
|
1536
|
+
const e = i.params, { subUnitId: s, unitId: r, cellValue: a } = e, o = [];
|
|
1537
|
+
new I(a).forValue((c, h, u) => {
|
|
1820
1538
|
u && Object.keys(u).some((d) => ["p", "v"].includes(d)) && o.push([c, h]);
|
|
1821
|
-
}),
|
|
1822
|
-
this._conditionalFormattingViewModel.markRuleDirty(r,
|
|
1539
|
+
}), t(r, s, o).forEach((c) => {
|
|
1540
|
+
this._conditionalFormattingViewModel.markRuleDirty(r, s, c), this._deleteComputeCache(r, s, c.cfId);
|
|
1823
1541
|
});
|
|
1824
1542
|
break;
|
|
1825
1543
|
}
|
|
1826
|
-
case
|
|
1827
|
-
case
|
|
1828
|
-
const { range:
|
|
1829
|
-
a && a.filter((c) => c.ranges.some((h) =>
|
|
1830
|
-
this._conditionalFormattingViewModel.markRuleDirty(
|
|
1544
|
+
case e0.id:
|
|
1545
|
+
case Q2.id: {
|
|
1546
|
+
const { range: e, unitId: s, subUnitId: r } = i.params, a = this._conditionalFormattingRuleModel.getSubunitRules(s, r), o = { ...e, endColumn: Number.MAX_SAFE_INTEGER };
|
|
1547
|
+
a && a.filter((c) => c.ranges.some((h) => H.intersects(h, o))).forEach((c) => {
|
|
1548
|
+
this._conditionalFormattingViewModel.markRuleDirty(s, r, c), this._deleteComputeCache(s, r, c.cfId);
|
|
1831
1549
|
});
|
|
1832
1550
|
break;
|
|
1833
1551
|
}
|
|
1834
|
-
case
|
|
1835
|
-
case
|
|
1836
|
-
const { range:
|
|
1837
|
-
a && a.filter((c) => c.ranges.some((h) =>
|
|
1838
|
-
this._conditionalFormattingViewModel.markRuleDirty(
|
|
1552
|
+
case z2.id:
|
|
1553
|
+
case J2.id: {
|
|
1554
|
+
const { range: e, unitId: s, subUnitId: r } = i.params, a = this._conditionalFormattingRuleModel.getSubunitRules(s, r), o = { ...e, endRow: Number.MAX_SAFE_INTEGER };
|
|
1555
|
+
a && a.filter((c) => c.ranges.some((h) => H.intersects(h, o))).forEach((c) => {
|
|
1556
|
+
this._conditionalFormattingViewModel.markRuleDirty(s, r, c), this._deleteComputeCache(s, r, c.cfId);
|
|
1839
1557
|
});
|
|
1840
1558
|
break;
|
|
1841
1559
|
}
|
|
1842
|
-
case
|
|
1843
|
-
const { sourceRange:
|
|
1844
|
-
startRow: Math.min(
|
|
1560
|
+
case K2.id: {
|
|
1561
|
+
const { sourceRange: e, targetRange: s, unitId: r, subUnitId: a } = i.params, o = this._conditionalFormattingRuleModel.getSubunitRules(r, a), l = {
|
|
1562
|
+
startRow: Math.min(e.startRow, s.startRow),
|
|
1845
1563
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1846
1564
|
startColumn: 0,
|
|
1847
1565
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1848
1566
|
};
|
|
1849
|
-
o && o.filter((h) => h.ranges.some((u) =>
|
|
1567
|
+
o && o.filter((h) => h.ranges.some((u) => H.intersects(u, l))).forEach((h) => {
|
|
1850
1568
|
this._conditionalFormattingViewModel.markRuleDirty(r, a, h), this._deleteComputeCache(r, a, h.cfId);
|
|
1851
1569
|
});
|
|
1852
1570
|
break;
|
|
1853
1571
|
}
|
|
1854
|
-
case
|
|
1855
|
-
const { sourceRange:
|
|
1572
|
+
case Y2.id: {
|
|
1573
|
+
const { sourceRange: e, targetRange: s, unitId: r, subUnitId: a } = i.params, o = this._conditionalFormattingRuleModel.getSubunitRules(r, a), l = {
|
|
1856
1574
|
startRow: 0,
|
|
1857
1575
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1858
|
-
startColumn: Math.min(
|
|
1576
|
+
startColumn: Math.min(e.startColumn, s.startColumn),
|
|
1859
1577
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1860
1578
|
};
|
|
1861
|
-
o && o.filter((h) => h.ranges.some((u) =>
|
|
1579
|
+
o && o.filter((h) => h.ranges.some((u) => H.intersects(u, l))).forEach((h) => {
|
|
1862
1580
|
this._conditionalFormattingViewModel.markRuleDirty(r, a, h), this._deleteComputeCache(r, a, h.cfId);
|
|
1863
1581
|
});
|
|
1864
1582
|
break;
|
|
1865
1583
|
}
|
|
1866
|
-
case
|
|
1867
|
-
const { unitId:
|
|
1584
|
+
case X2.id: {
|
|
1585
|
+
const { unitId: e, to: s, from: r } = i.params, a = (o) => {
|
|
1868
1586
|
const l = [];
|
|
1869
|
-
new
|
|
1587
|
+
new I(o.value).forValue((h, u) => {
|
|
1870
1588
|
l.push([h, u]);
|
|
1871
|
-
}), e
|
|
1872
|
-
this._conditionalFormattingViewModel.markRuleDirty(
|
|
1589
|
+
}), t(e, o.subUnitId, l).forEach((h) => {
|
|
1590
|
+
this._conditionalFormattingViewModel.markRuleDirty(e, o.subUnitId, h), this._deleteComputeCache(e, o.subUnitId, h.cfId);
|
|
1873
1591
|
});
|
|
1874
1592
|
};
|
|
1875
|
-
a(
|
|
1593
|
+
a(s), a(r);
|
|
1876
1594
|
break;
|
|
1877
1595
|
}
|
|
1878
|
-
case
|
|
1879
|
-
const { range:
|
|
1880
|
-
a && a.filter((l) => l.ranges.some((c) =>
|
|
1881
|
-
this._conditionalFormattingViewModel.markRuleDirty(
|
|
1596
|
+
case H2.id: {
|
|
1597
|
+
const { range: e, unitId: s, subUnitId: r } = i.params, a = this._conditionalFormattingRuleModel.getSubunitRules(s, r);
|
|
1598
|
+
a && a.filter((l) => l.ranges.some((c) => H.intersects(c, e))).forEach((l) => {
|
|
1599
|
+
this._conditionalFormattingViewModel.markRuleDirty(s, r, l), this._deleteComputeCache(s, r, l.cfId);
|
|
1882
1600
|
});
|
|
1883
1601
|
break;
|
|
1884
1602
|
}
|
|
@@ -1887,203 +1605,203 @@ let v2 = class extends q2 {
|
|
|
1887
1605
|
);
|
|
1888
1606
|
}
|
|
1889
1607
|
_initRemoteCalculate() {
|
|
1890
|
-
this.disposeWithMe(this._ruleComputeStatus$.subscribe(({ status:
|
|
1891
|
-
const a = this._getComputedCache(
|
|
1892
|
-
a.status =
|
|
1893
|
-
subUnitId:
|
|
1894
|
-
unitId:
|
|
1895
|
-
cfId:
|
|
1608
|
+
this.disposeWithMe(this._ruleComputeStatus$.subscribe(({ status: i, subUnitId: t, unitId: e, cfId: s, result: r }) => {
|
|
1609
|
+
const a = this._getComputedCache(e, t, s) || {};
|
|
1610
|
+
a.status = i, this._setComputedCache(e, t, s, a), i === "end" && r && (this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({
|
|
1611
|
+
subUnitId: t,
|
|
1612
|
+
unitId: e,
|
|
1613
|
+
cfId: s
|
|
1896
1614
|
}, void 0), r.forValue((o, l, c) => {
|
|
1897
|
-
this._conditionalFormattingViewModel.setCellCfRuleCache(
|
|
1615
|
+
this._conditionalFormattingViewModel.setCellCfRuleCache(e, t, o, l, s, c);
|
|
1898
1616
|
}));
|
|
1899
1617
|
}));
|
|
1900
1618
|
}
|
|
1901
|
-
async _handleCalculateUnit(
|
|
1902
|
-
if (!this._conditionalFormattingRuleModel.getRule(
|
|
1619
|
+
async _handleCalculateUnit(i, t, e) {
|
|
1620
|
+
if (!this._conditionalFormattingRuleModel.getRule(i, t, e.cfId))
|
|
1903
1621
|
return;
|
|
1904
|
-
const
|
|
1905
|
-
let a = this._getComputedCache(
|
|
1622
|
+
const s = this._univerInstanceService.getUnit(i), r = s == null ? void 0 : s.getSheetBySheetId(t);
|
|
1623
|
+
let a = this._getComputedCache(i, t, e.cfId);
|
|
1906
1624
|
if (a && ["computing", "end"].includes(a.status))
|
|
1907
1625
|
return;
|
|
1908
|
-
a || (a = { status: "computing" }, this._setComputedCache(
|
|
1909
|
-
const o = this._calculationUnitMap.get(
|
|
1626
|
+
a || (a = { status: "computing" }, this._setComputedCache(i, t, e.cfId, a));
|
|
1627
|
+
const o = this._calculationUnitMap.get(e.rule.type);
|
|
1910
1628
|
if (!o || !r)
|
|
1911
1629
|
return;
|
|
1912
|
-
const l = { unitId:
|
|
1913
|
-
this._ruleComputeStatus$.next({ status: "end", unitId:
|
|
1630
|
+
const l = { unitId: i, subUnitId: t, accessor: this._injector, workbook: s, worksheet: r }, c = await o.handle(e, l);
|
|
1631
|
+
this._ruleComputeStatus$.next({ status: "end", unitId: i, subUnitId: t, cfId: e.cfId, result: c });
|
|
1914
1632
|
}
|
|
1915
1633
|
};
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
],
|
|
1925
|
-
const
|
|
1926
|
-
var
|
|
1927
|
-
return (
|
|
1634
|
+
z = Y0([
|
|
1635
|
+
Z(0, M(V)),
|
|
1636
|
+
Z(1, M(o2)),
|
|
1637
|
+
Z(2, M(c2)),
|
|
1638
|
+
Z(3, M(O2)),
|
|
1639
|
+
Z(4, M(T2)),
|
|
1640
|
+
Z(5, M(j2)),
|
|
1641
|
+
Z(6, M(C2))
|
|
1642
|
+
], z);
|
|
1643
|
+
const J0 = (n) => n.getCurrentUnitForType(l2.UNIVER_SHEET).getUnitId(), z0 = (n) => {
|
|
1644
|
+
var i;
|
|
1645
|
+
return (i = n.getCurrentUnitForType(l2.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : i.getSheetId();
|
|
1928
1646
|
};
|
|
1929
|
-
var
|
|
1930
|
-
for (var
|
|
1931
|
-
(a =
|
|
1932
|
-
return
|
|
1933
|
-
},
|
|
1934
|
-
let
|
|
1935
|
-
constructor(
|
|
1936
|
-
super(), this._config =
|
|
1937
|
-
const { ...
|
|
1938
|
-
this._configService.setConfig(
|
|
1939
|
-
[
|
|
1940
|
-
[
|
|
1941
|
-
[
|
|
1942
|
-
[
|
|
1647
|
+
var Q0 = Object.defineProperty, e1 = Object.getOwnPropertyDescriptor, t1 = (n, i, t, e) => {
|
|
1648
|
+
for (var s = e > 1 ? void 0 : e ? e1(i, t) : i, r = n.length - 1, a; r >= 0; r--)
|
|
1649
|
+
(a = n[r]) && (s = (e ? a(i, t, s) : a(s)) || s);
|
|
1650
|
+
return e && s && Q0(i, t, s), s;
|
|
1651
|
+
}, g2 = (n, i) => (t, e) => i(t, e, n), t2;
|
|
1652
|
+
let A2 = (t2 = class extends $2 {
|
|
1653
|
+
constructor(n = L0, i, t, e) {
|
|
1654
|
+
super(), this._config = n, this._injector = i, this._commandService = t, this._configService = e;
|
|
1655
|
+
const { ...s } = this._config;
|
|
1656
|
+
this._configService.setConfig(I0, s), [
|
|
1657
|
+
[z],
|
|
1658
|
+
[N],
|
|
1659
|
+
[V],
|
|
1660
|
+
[c2]
|
|
1943
1661
|
].forEach((r) => {
|
|
1944
1662
|
this._injector.add(r);
|
|
1945
1663
|
}), [
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1664
|
+
b2,
|
|
1665
|
+
m2,
|
|
1666
|
+
S2,
|
|
1667
|
+
f2,
|
|
1668
|
+
i2
|
|
1951
1669
|
].forEach((r) => {
|
|
1952
1670
|
this._commandService.registerCommand(r);
|
|
1953
1671
|
});
|
|
1954
1672
|
}
|
|
1955
1673
|
onStarting() {
|
|
1956
|
-
this._injector.get(
|
|
1957
|
-
}
|
|
1958
|
-
},
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
],
|
|
1964
|
-
const
|
|
1965
|
-
class
|
|
1674
|
+
this._injector.get(z);
|
|
1675
|
+
}
|
|
1676
|
+
}, E(t2, "pluginName", L2), E(t2, "type", l2.UNIVER_SHEET), t2);
|
|
1677
|
+
A2 = t1([
|
|
1678
|
+
g2(1, M(o2)),
|
|
1679
|
+
g2(2, M(C2)),
|
|
1680
|
+
g2(3, W2)
|
|
1681
|
+
], A2);
|
|
1682
|
+
const i1 = "sheet-conditional-rule-icon", s1 = 35, n1 = 15, r1 = 2;
|
|
1683
|
+
class a1 extends I2 {
|
|
1966
1684
|
constructor() {
|
|
1967
1685
|
super();
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1686
|
+
E(this, "_paddingRightAndLeft", r1);
|
|
1687
|
+
E(this, "_width", n1);
|
|
1688
|
+
E(this, "_imageMap", /* @__PURE__ */ new Map());
|
|
1689
|
+
E(this, "uKey", i1);
|
|
1690
|
+
E(this, "Z_INDEX", s1);
|
|
1691
|
+
E(this, "_radius", 1);
|
|
1974
1692
|
this._init();
|
|
1975
1693
|
}
|
|
1976
|
-
draw(
|
|
1977
|
-
const { worksheet: a } =
|
|
1694
|
+
draw(t, e, s, r) {
|
|
1695
|
+
const { worksheet: a } = s;
|
|
1978
1696
|
if (!a)
|
|
1979
1697
|
return !1;
|
|
1980
|
-
|
|
1698
|
+
t.save(), R.foreach(s.rowColumnSegment, (o, l) => {
|
|
1981
1699
|
if (!a.getRowVisible(o) || !a.getColVisible(l))
|
|
1982
1700
|
return;
|
|
1983
1701
|
const c = a.getCell(o, l);
|
|
1984
1702
|
if (c != null && c.iconSet) {
|
|
1985
1703
|
const { iconType: h, iconId: u } = c.iconSet;
|
|
1986
|
-
if (h ===
|
|
1704
|
+
if (h === y0)
|
|
1987
1705
|
return;
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1706
|
+
const g = this._imageMap.get(this._createKey(h, u));
|
|
1707
|
+
if (!g)
|
|
1990
1708
|
return;
|
|
1991
|
-
const d =
|
|
1992
|
-
let { isMerged:
|
|
1993
|
-
if (
|
|
1709
|
+
const d = s.getCellWithCoordByIndex(o, l, !1);
|
|
1710
|
+
let { isMerged: D, isMergedMainCell: C, mergeInfo: m, startY: F, endY: w, startX: v, endX: A } = d;
|
|
1711
|
+
if (D || (C && (F = m.startY, w = m.endY, v = m.startX, A = m.endX), !this.isRenderDiffRangesByCell(m, r)))
|
|
1994
1712
|
return;
|
|
1995
|
-
const
|
|
1996
|
-
if (this._width >
|
|
1713
|
+
const O = A - v, P = w - F;
|
|
1714
|
+
if (this._width > P || this._width > O + this._paddingRightAndLeft * 2)
|
|
1997
1715
|
return;
|
|
1998
|
-
const h2 = (
|
|
1999
|
-
|
|
1716
|
+
const h2 = (P - this._width) / 2 + F;
|
|
1717
|
+
t.drawImage(g, v + this._paddingRightAndLeft, h2, this._width, this._width);
|
|
2000
1718
|
}
|
|
2001
|
-
}),
|
|
1719
|
+
}), t.restore();
|
|
2002
1720
|
}
|
|
2003
1721
|
_init() {
|
|
2004
|
-
for (const
|
|
2005
|
-
|
|
2006
|
-
const a = this._createKey(
|
|
1722
|
+
for (const t in n2)
|
|
1723
|
+
n2[t].forEach((s, r) => {
|
|
1724
|
+
const a = this._createKey(t, String(r)), o = new Image();
|
|
2007
1725
|
o.onload = () => {
|
|
2008
1726
|
this._imageMap.set(a, o);
|
|
2009
|
-
}, o.src =
|
|
1727
|
+
}, o.src = s;
|
|
2010
1728
|
});
|
|
2011
1729
|
}
|
|
2012
|
-
_createKey(
|
|
2013
|
-
return `${
|
|
1730
|
+
_createKey(t, e) {
|
|
1731
|
+
return `${t}_${e}`;
|
|
2014
1732
|
}
|
|
2015
1733
|
}
|
|
2016
|
-
|
|
2017
|
-
const
|
|
2018
|
-
function
|
|
2019
|
-
if (typeof
|
|
2020
|
-
return
|
|
2021
|
-
const
|
|
2022
|
-
for (const
|
|
2023
|
-
if (
|
|
2024
|
-
const
|
|
2025
|
-
|
|
1734
|
+
R2.add(a1);
|
|
1735
|
+
const M1 = (n, i) => i.length === n.length && !n.some((t) => i.some((e) => !H.equals(e, t)));
|
|
1736
|
+
function o1(n) {
|
|
1737
|
+
if (typeof n != "object" || n === null)
|
|
1738
|
+
return n;
|
|
1739
|
+
const i = {};
|
|
1740
|
+
for (const t in n)
|
|
1741
|
+
if (n.hasOwnProperty(t)) {
|
|
1742
|
+
const e = o1(n[t]);
|
|
1743
|
+
e !== void 0 && (i[t] = e);
|
|
2026
1744
|
}
|
|
2027
|
-
return
|
|
1745
|
+
return i;
|
|
2028
1746
|
}
|
|
2029
1747
|
export {
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
1748
|
+
b2 as AddConditionalRuleMutation,
|
|
1749
|
+
p1 as AddConditionalRuleMutationUndoFactory,
|
|
1750
|
+
p as CFNumberOperator,
|
|
1751
|
+
L as CFRuleType,
|
|
1752
|
+
_ as CFSubRuleType,
|
|
1753
|
+
b as CFTextOperator,
|
|
1754
|
+
S as CFTimePeriodOperator,
|
|
1755
|
+
U as CFValueType,
|
|
1756
|
+
i2 as ConditionalFormattingFormulaMarkDirty,
|
|
1757
|
+
N as ConditionalFormattingFormulaService,
|
|
1758
|
+
a1 as ConditionalFormattingIcon,
|
|
1759
|
+
V as ConditionalFormattingRuleModel,
|
|
1760
|
+
z as ConditionalFormattingService,
|
|
1761
|
+
c2 as ConditionalFormattingViewModel,
|
|
1762
|
+
C1 as DEFAULT_BG_COLOR,
|
|
1763
|
+
f1 as DEFAULT_FONT_COLOR,
|
|
1764
|
+
r1 as DEFAULT_PADDING,
|
|
1765
|
+
n1 as DEFAULT_WIDTH,
|
|
1766
|
+
q0 as DataBar,
|
|
1767
|
+
m2 as DeleteConditionalRuleMutation,
|
|
1768
|
+
R0 as DeleteConditionalRuleMutationUndoFactory,
|
|
1769
|
+
y0 as EMPTY_ICON_TYPE,
|
|
1770
|
+
X as EMPTY_STYLE,
|
|
1771
|
+
y as FormulaResultStatus,
|
|
1772
|
+
i1 as IconUKey,
|
|
1773
|
+
f2 as MoveConditionalRuleMutation,
|
|
1774
|
+
v1 as MoveConditionalRuleMutationUndoFactory,
|
|
1775
|
+
L2 as SHEET_CONDITIONAL_FORMATTING_PLUGIN,
|
|
1776
|
+
S2 as SetConditionalRuleMutation,
|
|
1777
|
+
A2 as UniverSheetsConditionalFormattingPlugin,
|
|
1778
|
+
h0 as anchorUndoFactory,
|
|
1779
|
+
J as compareWithNumber,
|
|
1780
|
+
l0 as createCfId,
|
|
1781
|
+
m1 as createDefaultRule,
|
|
1782
|
+
F1 as createDefaultValue,
|
|
1783
|
+
w1 as createDefaultValueByValueType,
|
|
1784
|
+
$0 as dataBarUKey,
|
|
1785
|
+
p2 as defaultDataBarNativeColor,
|
|
1786
|
+
v2 as defaultDataBarPositiveColor,
|
|
1787
|
+
u2 as filterRange,
|
|
1788
|
+
j as findIndexByAnchor,
|
|
1789
|
+
x1 as getCacheStyleMatrix,
|
|
1790
|
+
T as getCellValue,
|
|
1791
|
+
O0 as getColorScaleFromValue,
|
|
1792
|
+
_1 as getMaxInFormulaResult,
|
|
1793
|
+
N0 as getOppositeOperator,
|
|
1794
|
+
a2 as getValueByType,
|
|
1795
|
+
M0 as iconGroup,
|
|
1796
|
+
n2 as iconMap,
|
|
1797
|
+
E1 as isAnchorEqual,
|
|
1798
|
+
r2 as isFloatsEqual,
|
|
1799
|
+
k as isNullable,
|
|
1800
|
+
M1 as isRangesEqual,
|
|
1801
|
+
c0 as moveByAnchor,
|
|
1802
|
+
o1 as removeUndefinedAttr,
|
|
1803
|
+
U0 as serialTimeToTimestamp,
|
|
1804
|
+
A1 as setConditionalRuleMutationUndoFactory,
|
|
1805
|
+
V0 as toYMD_1900,
|
|
1806
|
+
u0 as transformSupportSymmetryAnchor
|
|
2089
1807
|
};
|