@univerjs/sheets-conditional-formatting 0.5.5-nightly.202501211606 → 0.5.5
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/LICENSE +176 -0
- package/lib/es/facade.js +271 -290
- package/lib/es/index.js +1199 -1217
- package/lib/types/facade/conditional-formatting-builder.d.ts +0 -9
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRule = /* @__PURE__ */ __name(() => ({
|
|
1
|
+
var V2 = Object.defineProperty;
|
|
2
|
+
var O2 = (s, r, t) => r in s ? V2(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var m = (s, r, t) => O2(s, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { Tools as H, CommandType as J, Inject as A, ICommandService as f2, Disposable as m2, ObjectMatrix as T, RefAlias as $2, CellValueType as _, BooleanNumber as I2, LRUMap as b2, dayjs as v, Range as N, ColorKit as L2, Injector as F2, RTree as P2, IUniverInstanceService as S2, IResourceManagerService as W2, UniverInstanceType as c2, Rectangle as X, Plugin as Z2, merge as q2, touchDependencies as G2, IConfigService as j2 } from "@univerjs/core";
|
|
5
|
+
import { isRangesEqual as k1 } from "@univerjs/core";
|
|
6
|
+
import { Subject as i2, BehaviorSubject as H2 } from "rxjs";
|
|
7
|
+
import { distinctUntilChanged as X2, bufferTime as Y2, filter as K2, map as J2 } from "rxjs/operators";
|
|
8
|
+
import { IActiveDirtyManagerService as z2, SetFormulaCalculationResultMutation as Q2, SetOtherFormulaMutation as e0, RemoveOtherFormulaMutation as t0, BooleanValue as A2, ERROR_TYPE_SET as _2 } from "@univerjs/engine-formula";
|
|
9
|
+
import { isObject as n0, SpreadsheetExtensionRegistry as B2, SheetExtension as k2, FIX_ONE_PIXEL_BLUR_OFFSET as r0 } from "@univerjs/engine-render";
|
|
10
|
+
import { SheetInterceptorService as s0, RemoveSheetCommand as i0, ReorderRangeMutation as a0, MoveRangeMutation as l0, MoveColsMutation as o0, MoveRowsMutation as c0, InsertRowMutation as u0, RemoveRowMutation as h0, RemoveColMutation as d0, InsertColMutation as g0, SetRangeValuesMutation as C0 } from "@univerjs/sheets";
|
|
11
|
+
const N2 = "SHEET_CONDITIONAL_FORMATTING_PLUGIN";
|
|
12
|
+
var M = /* @__PURE__ */ ((s) => (s.beginsWith = "beginsWith", s.endsWith = "endsWith", s.containsText = "containsText", s.notContainsText = "notContainsText", s.equal = "equal", s.notEqual = "notEqual", s.containsBlanks = "containsBlanks", s.notContainsBlanks = "notContainsBlanks", s.containsErrors = "containsErrors", s.notContainsErrors = "notContainsErrors", s))(M || {}), R = /* @__PURE__ */ ((s) => (s.today = "today", s.yesterday = "yesterday", s.tomorrow = "tomorrow", s.last7Days = "last7Days", s.thisMonth = "thisMonth", s.lastMonth = "lastMonth", s.nextMonth = "nextMonth", s.thisWeek = "thisWeek", s.lastWeek = "lastWeek", s.nextWeek = "nextWeek", s))(R || {}), w = /* @__PURE__ */ ((s) => (s.greaterThan = "greaterThan", s.greaterThanOrEqual = "greaterThanOrEqual", s.lessThan = "lessThan", s.lessThanOrEqual = "lessThanOrEqual", s.notBetween = "notBetween", s.between = "between", s.equal = "equal", s.notEqual = "notEqual", s))(w || {}), y = /* @__PURE__ */ ((s) => (s.highlightCell = "highlightCell", s.dataBar = "dataBar", s.colorScale = "colorScale", s.iconSet = "iconSet", s))(y || {}), E = /* @__PURE__ */ ((s) => (s.uniqueValues = "uniqueValues", s.duplicateValues = "duplicateValues", s.rank = "rank", s.text = "text", s.timePeriod = "timePeriod", s.number = "number", s.average = "average", s.formula = "formula", s))(E || {}), x = /* @__PURE__ */ ((s) => (s.num = "num", s.min = "min", s.max = "max", s.percent = "percent", s.percentile = "percentile", s.formula = "formula", s))(x || {});
|
|
13
|
+
const E1 = "#fff", p1 = "#000000", A1 = () => ({
|
|
15
14
|
cfId: void 0,
|
|
16
15
|
ranges: [],
|
|
17
16
|
stopIfTrue: !1,
|
|
@@ -21,8 +20,8 @@ const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRu
|
|
|
21
20
|
operator: "containsText"
|
|
22
21
|
/* containsText */
|
|
23
22
|
}
|
|
24
|
-
}),
|
|
25
|
-
switch (
|
|
23
|
+
}), _1 = (s, r) => {
|
|
24
|
+
switch (s) {
|
|
26
25
|
case "text": {
|
|
27
26
|
if ([
|
|
28
27
|
"beginsWith",
|
|
@@ -32,7 +31,7 @@ const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRu
|
|
|
32
31
|
"notContainsText",
|
|
33
32
|
"notEqual"
|
|
34
33
|
/* notEqual */
|
|
35
|
-
].includes(
|
|
34
|
+
].includes(r))
|
|
36
35
|
return "";
|
|
37
36
|
break;
|
|
38
37
|
}
|
|
@@ -41,11 +40,11 @@ const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRu
|
|
|
41
40
|
"between",
|
|
42
41
|
"notBetween"
|
|
43
42
|
/* notBetween */
|
|
44
|
-
].includes(
|
|
43
|
+
].includes(r) ? [10, 100] : 10;
|
|
45
44
|
}
|
|
46
45
|
return "";
|
|
47
|
-
},
|
|
48
|
-
switch (
|
|
46
|
+
}, x1 = (s, r) => {
|
|
47
|
+
switch (s) {
|
|
49
48
|
case "formula":
|
|
50
49
|
return "=";
|
|
51
50
|
case "max":
|
|
@@ -54,289 +53,287 @@ const DEFAULT_BG_COLOR = "#fff", DEFAULT_FONT_COLOR = "#000000", createDefaultRu
|
|
|
54
53
|
case "percent":
|
|
55
54
|
case "percentile":
|
|
56
55
|
case "num":
|
|
57
|
-
return
|
|
56
|
+
return r !== void 0 ? r : 10;
|
|
58
57
|
}
|
|
59
58
|
return "";
|
|
60
|
-
},
|
|
61
|
-
if (!
|
|
59
|
+
}, W = (s, r, t) => {
|
|
60
|
+
if (!r)
|
|
62
61
|
return null;
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
62
|
+
const e = r.findIndex((n) => t(n) === s.id);
|
|
63
|
+
if (e < 0)
|
|
65
64
|
return null;
|
|
66
|
-
switch (
|
|
65
|
+
switch (s.type) {
|
|
67
66
|
case "after":
|
|
68
|
-
return
|
|
67
|
+
return e + 1;
|
|
69
68
|
case "before":
|
|
70
|
-
return
|
|
69
|
+
return e - 1;
|
|
71
70
|
case "self":
|
|
72
|
-
return
|
|
71
|
+
return e;
|
|
73
72
|
}
|
|
74
|
-
},
|
|
75
|
-
if (!
|
|
73
|
+
}, D0 = (s, r, t, e) => {
|
|
74
|
+
if (!t)
|
|
76
75
|
return null;
|
|
77
|
-
const
|
|
78
|
-
let
|
|
79
|
-
if (
|
|
76
|
+
const n = W(s, t, e);
|
|
77
|
+
let i = W(r, t, e);
|
|
78
|
+
if (n === null || i === null || n === i)
|
|
80
79
|
return;
|
|
81
|
-
const
|
|
82
|
-
switch (
|
|
80
|
+
const a = t.splice(n, 1)[0];
|
|
81
|
+
switch (n < i && (i = W(r, t, e)), r.type) {
|
|
83
82
|
case "before": {
|
|
84
|
-
|
|
83
|
+
t.splice(i + 1, 0, a);
|
|
85
84
|
break;
|
|
86
85
|
}
|
|
87
86
|
case "self":
|
|
88
87
|
case "after": {
|
|
89
|
-
|
|
88
|
+
t.splice(i, 0, a);
|
|
90
89
|
break;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
},
|
|
94
|
-
if (
|
|
95
|
-
return [
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
92
|
+
}, f0 = (s, r, t, e) => {
|
|
93
|
+
if (s.type === "after" && ["after", "before"].includes(r.type))
|
|
94
|
+
return [s, r];
|
|
95
|
+
const n = { ...s }, i = { ...r };
|
|
96
|
+
if (n.type !== "after") {
|
|
97
|
+
const a = W(n, t, e);
|
|
98
|
+
if (a === null)
|
|
100
99
|
return null;
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
|
|
100
|
+
if (a - 1 < 0) {
|
|
101
|
+
const u = t[a + 1];
|
|
102
|
+
if (u)
|
|
103
|
+
n.id = e(u), n.type = "before";
|
|
105
104
|
else
|
|
106
105
|
return null;
|
|
107
106
|
} else {
|
|
108
|
-
const
|
|
109
|
-
|
|
107
|
+
const u = e(t[a - 1]);
|
|
108
|
+
n.id = u, n.type = "after";
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
if (!["after", "before"].includes(
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
111
|
+
if (!["after", "before"].includes(i.type)) {
|
|
112
|
+
const a = W(i, t, e);
|
|
113
|
+
if (a === null)
|
|
115
114
|
return null;
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
else if (
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
} else if (
|
|
122
|
-
const
|
|
123
|
-
|
|
115
|
+
if (a === 0)
|
|
116
|
+
i.type = "before";
|
|
117
|
+
else if (a - 1 >= 0) {
|
|
118
|
+
const u = e(t[a - 1]);
|
|
119
|
+
i.id = u, i.type = "after";
|
|
120
|
+
} else if (a + 1 <= t.length - 1) {
|
|
121
|
+
const u = e(t[a + 1]);
|
|
122
|
+
i.id = u, i.type = "before";
|
|
124
123
|
} else
|
|
125
124
|
return null;
|
|
126
125
|
}
|
|
127
|
-
return
|
|
128
|
-
},
|
|
129
|
-
if (["after", "before"].includes(
|
|
130
|
-
if (
|
|
131
|
-
return [
|
|
132
|
-
if (
|
|
133
|
-
return [
|
|
126
|
+
return n.id === i.id && n.type === i.type ? null : [n, i];
|
|
127
|
+
}, m0 = (s, r) => {
|
|
128
|
+
if (["after", "before"].includes(r.type)) {
|
|
129
|
+
if (s.type === "after")
|
|
130
|
+
return [r, s];
|
|
131
|
+
if (s.type === "before")
|
|
132
|
+
return [r, { ...s, type: "self" }];
|
|
134
133
|
}
|
|
135
134
|
return null;
|
|
136
|
-
},
|
|
135
|
+
}, y1 = (s, r) => s.id === r.id && s.type === r.type, F0 = () => `${H.generateRandomId(8)}`;
|
|
136
|
+
class B {
|
|
137
137
|
constructor() {
|
|
138
138
|
// Map<unitID ,<sheetId ,IConditionFormattingRule[]>>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
_ensureList(
|
|
144
|
-
let
|
|
145
|
-
if (!
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
|
|
139
|
+
m(this, "_model", /* @__PURE__ */ new Map());
|
|
140
|
+
m(this, "_ruleChange$", new i2());
|
|
141
|
+
m(this, "$ruleChange", this._ruleChange$.asObservable());
|
|
142
|
+
}
|
|
143
|
+
_ensureList(r, t) {
|
|
144
|
+
let e = this.getSubunitRules(r, t);
|
|
145
|
+
if (!e) {
|
|
146
|
+
e = [];
|
|
147
|
+
let n = this._model.get(r);
|
|
148
|
+
n || (n = /* @__PURE__ */ new Map(), this._model.set(r, n)), n.set(t, e);
|
|
149
149
|
}
|
|
150
|
-
return
|
|
150
|
+
return e;
|
|
151
151
|
}
|
|
152
|
-
getRule(
|
|
153
|
-
const
|
|
154
|
-
return
|
|
152
|
+
getRule(r, t, e) {
|
|
153
|
+
const n = this.getSubunitRules(r, t);
|
|
154
|
+
return n ? n.find((i) => i.cfId === e) : null;
|
|
155
155
|
}
|
|
156
|
-
getUnitRules(
|
|
157
|
-
return this._model.get(
|
|
156
|
+
getUnitRules(r) {
|
|
157
|
+
return this._model.get(r) || null;
|
|
158
158
|
}
|
|
159
|
-
getSubunitRules(
|
|
160
|
-
var
|
|
161
|
-
return ((
|
|
159
|
+
getSubunitRules(r, t) {
|
|
160
|
+
var n;
|
|
161
|
+
return ((n = this._model.get(r)) == null ? void 0 : n.get(t)) || null;
|
|
162
162
|
}
|
|
163
|
-
deleteRule(
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
166
|
-
const
|
|
167
|
-
|
|
163
|
+
deleteRule(r, t, e) {
|
|
164
|
+
const n = this.getSubunitRules(r, t);
|
|
165
|
+
if (n) {
|
|
166
|
+
const i = n.findIndex((u) => u.cfId === e), a = n[i];
|
|
167
|
+
a && (n.splice(i, 1), this._ruleChange$.next({ rule: a, subUnitId: t, unitId: r, type: "delete" }));
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
setRule(
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
173
|
-
const
|
|
174
|
-
Object.assign(
|
|
170
|
+
setRule(r, t, e, n) {
|
|
171
|
+
const a = this._ensureList(r, t).find((u) => u.cfId === n);
|
|
172
|
+
if (a) {
|
|
173
|
+
const u = H.deepClone(a);
|
|
174
|
+
Object.assign(a, e), this._ruleChange$.next({ rule: a, subUnitId: t, unitId: r, type: "set", oldRule: u });
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
addRule(
|
|
178
|
-
const
|
|
179
|
-
|
|
177
|
+
addRule(r, t, e) {
|
|
178
|
+
const n = this._ensureList(r, t);
|
|
179
|
+
n.find((a) => a.cfId === e.cfId) || n.unshift(e), this._ruleChange$.next({ rule: e, subUnitId: t, unitId: r, type: "add" });
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* example [1,2,3,4,5,6],if you move behind 5 to 2, then cfId=5,targetId=2.
|
|
183
183
|
* if targetId does not exist, it defaults to top
|
|
184
184
|
*/
|
|
185
|
-
moveRulePriority(
|
|
186
|
-
const
|
|
187
|
-
if (
|
|
185
|
+
moveRulePriority(r, t, e, n) {
|
|
186
|
+
const i = this._ensureList(r, t), a = W(e, i, (o) => o.cfId), u = W(n, i, (o) => o.cfId);
|
|
187
|
+
if (u === null || a === null || u === a)
|
|
188
188
|
return;
|
|
189
|
-
const
|
|
190
|
-
|
|
189
|
+
const l = i[a];
|
|
190
|
+
l && (D0(e, n, i, (o) => o.cfId), this._ruleChange$.next({ rule: l, subUnitId: t, unitId: r, type: "sort" }));
|
|
191
191
|
}
|
|
192
|
-
createCfId(
|
|
193
|
-
return
|
|
192
|
+
createCfId(r, t) {
|
|
193
|
+
return F0();
|
|
194
194
|
}
|
|
195
|
-
deleteUnitId(
|
|
196
|
-
this._model.delete(
|
|
195
|
+
deleteUnitId(r) {
|
|
196
|
+
this._model.delete(r);
|
|
197
197
|
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const ConditionalFormattingFormulaMarkDirty = {
|
|
202
|
-
type: CommandType.MUTATION,
|
|
198
|
+
}
|
|
199
|
+
const s2 = {
|
|
200
|
+
type: J.MUTATION,
|
|
203
201
|
id: "sheet.mutation.conditional-formatting-formula-mark-dirty",
|
|
204
202
|
handler() {
|
|
205
203
|
return !0;
|
|
206
204
|
}
|
|
207
205
|
};
|
|
208
|
-
var
|
|
209
|
-
for (var
|
|
210
|
-
(
|
|
211
|
-
return
|
|
212
|
-
},
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
return (
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
constructor(_commandService, _activeDirtyManagerService, _conditionalFormattingRuleModel) {
|
|
206
|
+
var w0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, E0 = (s, r, t, e) => {
|
|
207
|
+
for (var n = e > 1 ? void 0 : e ? v0(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
208
|
+
(a = s[i]) && (n = (e ? a(r, t, n) : a(n)) || n);
|
|
209
|
+
return e && n && w0(r, t, n), n;
|
|
210
|
+
}, d2 = (s, r) => (t, e) => r(t, e, s), b = /* @__PURE__ */ ((s) => (s[s.NOT_REGISTER = 1] = "NOT_REGISTER", s[s.SUCCESS = 2] = "SUCCESS", s[s.WAIT = 3] = "WAIT", s[s.ERROR = 4] = "ERROR", s))(b || {});
|
|
211
|
+
const p0 = (s) => {
|
|
212
|
+
const r = s && s[0] && s[0][0];
|
|
213
|
+
return (r == null ? void 0 : r.t) === _.BOOLEAN ? r.v === I2.TRUE || r.v === !0 : r ? r.v : !1;
|
|
214
|
+
};
|
|
215
|
+
let G = class extends m2 {
|
|
216
|
+
constructor(r, t, e) {
|
|
220
217
|
super();
|
|
221
218
|
// Cache Formula ID and formula mapping.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this._commandService =
|
|
219
|
+
m(this, "_formulaMap", /* @__PURE__ */ new Map());
|
|
220
|
+
m(this, "_result$", new i2());
|
|
221
|
+
m(this, "result$", this._result$.asObservable());
|
|
222
|
+
this._commandService = r, this._activeDirtyManagerService = t, this._conditionalFormattingRuleModel = e, this._initFormulaCalculationResultChange(), this._initRuleChange();
|
|
226
223
|
}
|
|
227
224
|
_initRuleChange() {
|
|
228
|
-
const
|
|
229
|
-
switch (
|
|
230
|
-
case
|
|
231
|
-
return
|
|
232
|
-
case
|
|
233
|
-
return [
|
|
234
|
-
case
|
|
235
|
-
return
|
|
225
|
+
const r = (t) => {
|
|
226
|
+
switch (t.type) {
|
|
227
|
+
case y.colorScale:
|
|
228
|
+
return t.config.some((e) => e.value.type === x.formula);
|
|
229
|
+
case y.dataBar:
|
|
230
|
+
return [t.config.max, t.config.min].some((e) => e.type === x.formula);
|
|
231
|
+
case y.iconSet:
|
|
232
|
+
return t.config.some((e) => e.value.type === x.formula);
|
|
236
233
|
}
|
|
237
|
-
}
|
|
238
|
-
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((
|
|
239
|
-
const { unitId, subUnitId, rule, oldRule } =
|
|
240
|
-
|
|
234
|
+
};
|
|
235
|
+
this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((t) => {
|
|
236
|
+
const { unitId: e, subUnitId: n, rule: i, oldRule: a } = t;
|
|
237
|
+
t.type === "delete" && this._removeFormulaByCfId(e, n, i.cfId), t.type === "set" && (r(i.rule) || a && r(a.rule)) && this._removeFormulaByCfId(e, n, i.cfId);
|
|
241
238
|
}));
|
|
242
239
|
}
|
|
243
240
|
_initFormulaCalculationResultChange() {
|
|
244
|
-
this.disposeWithMe(this._commandService.onCommandExecuted((
|
|
245
|
-
if (
|
|
246
|
-
const
|
|
247
|
-
for (const
|
|
248
|
-
for (const
|
|
249
|
-
for (const
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
241
|
+
this.disposeWithMe(this._commandService.onCommandExecuted((r) => {
|
|
242
|
+
if (r.id === Q2.id) {
|
|
243
|
+
const t = r.params;
|
|
244
|
+
for (const e in t.unitOtherData)
|
|
245
|
+
for (const n in t.unitOtherData[e])
|
|
246
|
+
for (const i in t.unitOtherData[e][n]) {
|
|
247
|
+
const a = new T(t.unitOtherData[e][n][i]), u = this._ensureSubunitFormulaMap(e, n).getValue(i, ["formulaId"]);
|
|
248
|
+
if (!u)
|
|
252
249
|
continue;
|
|
253
|
-
const
|
|
254
|
-
if (!
|
|
250
|
+
const l = u.ranges;
|
|
251
|
+
if (!l)
|
|
255
252
|
continue;
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}),
|
|
260
|
-
const
|
|
261
|
-
(
|
|
253
|
+
const o = u.result, h = l[0].startRow, c = l[0].startColumn;
|
|
254
|
+
a.forValue((D, f, F) => {
|
|
255
|
+
o.setValue(h + D, c + f, p0(F));
|
|
256
|
+
}), u.status = 2;
|
|
257
|
+
const C = this._getAllFormulaResultByCfId(e, n, u.cfId).every(
|
|
258
|
+
(D) => D.status === 2
|
|
262
259
|
/* SUCCESS */
|
|
263
260
|
);
|
|
264
|
-
this._result$.next({ ...
|
|
261
|
+
this._result$.next({ ...u, isAllFinished: C });
|
|
265
262
|
}
|
|
266
263
|
}
|
|
267
264
|
})), this._activeDirtyManagerService.register(
|
|
268
|
-
|
|
265
|
+
s2.id,
|
|
269
266
|
{
|
|
270
|
-
commandId:
|
|
271
|
-
getDirtyData(
|
|
267
|
+
commandId: s2.id,
|
|
268
|
+
getDirtyData(r) {
|
|
272
269
|
return {
|
|
273
|
-
dirtyUnitOtherFormulaMap:
|
|
270
|
+
dirtyUnitOtherFormulaMap: r.params
|
|
274
271
|
};
|
|
275
272
|
}
|
|
276
273
|
}
|
|
277
274
|
);
|
|
278
275
|
}
|
|
279
|
-
_ensureSubunitFormulaMap(
|
|
280
|
-
let
|
|
281
|
-
|
|
282
|
-
let
|
|
283
|
-
return
|
|
276
|
+
_ensureSubunitFormulaMap(r, t) {
|
|
277
|
+
let e = this._formulaMap.get(r);
|
|
278
|
+
e || (e = /* @__PURE__ */ new Map(), this._formulaMap.set(r, e));
|
|
279
|
+
let n = e.get(t);
|
|
280
|
+
return n || (n = new $2([], ["formulaId", "id"]), e.set(t, n)), n;
|
|
284
281
|
}
|
|
285
|
-
getSubUnitFormulaMap(
|
|
286
|
-
var
|
|
287
|
-
return (
|
|
282
|
+
getSubUnitFormulaMap(r, t) {
|
|
283
|
+
var e;
|
|
284
|
+
return (e = this._formulaMap.get(r)) == null ? void 0 : e.get(t);
|
|
288
285
|
}
|
|
289
|
-
registerFormulaWithRange(
|
|
290
|
-
const
|
|
291
|
-
if (
|
|
286
|
+
registerFormulaWithRange(r, t, e, n, i = [{ startRow: 0, endRow: 0, startColumn: 0, endColumn: 0 }]) {
|
|
287
|
+
const a = this._ensureSubunitFormulaMap(r, t), u = this.createCFormulaId(e, n);
|
|
288
|
+
if (a.getValue(u, ["id"]))
|
|
292
289
|
return;
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
formulaText,
|
|
296
|
-
unitId,
|
|
297
|
-
subUnitId,
|
|
298
|
-
cfId,
|
|
299
|
-
id:
|
|
300
|
-
ranges,
|
|
301
|
-
formulaId,
|
|
290
|
+
const l = this._createFormulaId(r, t);
|
|
291
|
+
a.addValue({
|
|
292
|
+
formulaText: n,
|
|
293
|
+
unitId: r,
|
|
294
|
+
subUnitId: t,
|
|
295
|
+
cfId: e,
|
|
296
|
+
id: u,
|
|
297
|
+
ranges: i,
|
|
298
|
+
formulaId: l,
|
|
302
299
|
status: 3,
|
|
303
|
-
result: new
|
|
300
|
+
result: new T()
|
|
304
301
|
});
|
|
305
|
-
const
|
|
306
|
-
unitId,
|
|
307
|
-
subUnitId,
|
|
302
|
+
const o = {
|
|
303
|
+
unitId: r,
|
|
304
|
+
subUnitId: t,
|
|
308
305
|
formulaMap: {
|
|
309
|
-
[
|
|
310
|
-
f:
|
|
311
|
-
ranges
|
|
306
|
+
[l]: {
|
|
307
|
+
f: n,
|
|
308
|
+
ranges: i
|
|
312
309
|
}
|
|
313
310
|
}
|
|
314
311
|
};
|
|
315
|
-
this._commandService.executeCommand(
|
|
312
|
+
this._commandService.executeCommand(e0.id, o, { onlyLocal: !0 }).then(() => {
|
|
316
313
|
this._commandService.executeCommand(
|
|
317
|
-
|
|
318
|
-
{ [
|
|
314
|
+
s2.id,
|
|
315
|
+
{ [r]: { [t]: { [l]: !0 } } },
|
|
319
316
|
{ onlyLocal: !0 }
|
|
320
317
|
);
|
|
321
318
|
});
|
|
322
319
|
}
|
|
323
|
-
_removeFormulaByCfId(
|
|
324
|
-
const
|
|
325
|
-
this._commandService.executeCommand(
|
|
320
|
+
_removeFormulaByCfId(r, t, e) {
|
|
321
|
+
const i = this.deleteCache(r, t, e).map((a) => a.formulaId);
|
|
322
|
+
this._commandService.executeCommand(t0.id, { unitId: r, subUnitId: t, formulaIdList: i }, { onlyLocal: !0 });
|
|
326
323
|
}
|
|
327
|
-
getFormulaResultWithCoords(
|
|
328
|
-
const
|
|
329
|
-
if (!
|
|
324
|
+
getFormulaResultWithCoords(r, t, e, n, i = 0, a = 0) {
|
|
325
|
+
const u = this.getSubUnitFormulaMap(r, t);
|
|
326
|
+
if (!u)
|
|
330
327
|
return {
|
|
331
328
|
status: 1
|
|
332
329
|
/* NOT_REGISTER */
|
|
333
330
|
};
|
|
334
|
-
const
|
|
335
|
-
return
|
|
336
|
-
result:
|
|
331
|
+
const l = u.getValue(this.createCFormulaId(e, n), ["id"]);
|
|
332
|
+
return l ? l.status === 2 && l.result ? {
|
|
333
|
+
result: l.result.getValue(i, a),
|
|
337
334
|
status: 2
|
|
338
335
|
/* SUCCESS */
|
|
339
|
-
} :
|
|
336
|
+
} : l.status === 3 ? {
|
|
340
337
|
status: 3
|
|
341
338
|
/* WAIT */
|
|
342
339
|
} : {
|
|
@@ -347,22 +344,22 @@ let ConditionalFormattingFormulaService = (_a = class extends Disposable {
|
|
|
347
344
|
/* NOT_REGISTER */
|
|
348
345
|
};
|
|
349
346
|
}
|
|
350
|
-
getFormulaMatrix(
|
|
351
|
-
const
|
|
352
|
-
if (!
|
|
347
|
+
getFormulaMatrix(r, t, e, n) {
|
|
348
|
+
const i = this.getSubUnitFormulaMap(r, t);
|
|
349
|
+
if (!i)
|
|
353
350
|
return {
|
|
354
351
|
status: 1
|
|
355
352
|
/* NOT_REGISTER */
|
|
356
353
|
};
|
|
357
|
-
const
|
|
358
|
-
if (!
|
|
354
|
+
const a = i.getValue(this.createCFormulaId(e, n), ["id"]);
|
|
355
|
+
if (!a)
|
|
359
356
|
return {
|
|
360
357
|
status: 1
|
|
361
358
|
/* NOT_REGISTER */
|
|
362
359
|
};
|
|
363
|
-
if (
|
|
360
|
+
if (a.status === 2 && a.result)
|
|
364
361
|
return {
|
|
365
|
-
result:
|
|
362
|
+
result: a.result,
|
|
366
363
|
status: 2
|
|
367
364
|
/* SUCCESS */
|
|
368
365
|
};
|
|
@@ -370,63 +367,63 @@ let ConditionalFormattingFormulaService = (_a = class extends Disposable {
|
|
|
370
367
|
/**
|
|
371
368
|
* If `formulaText` is not provided, then all caches related to `cfId` will be deleted.
|
|
372
369
|
*/
|
|
373
|
-
deleteCache(
|
|
374
|
-
const
|
|
375
|
-
if (!
|
|
370
|
+
deleteCache(r, t, e, n) {
|
|
371
|
+
const i = this.getSubUnitFormulaMap(r, t);
|
|
372
|
+
if (!i)
|
|
376
373
|
return [];
|
|
377
|
-
if (
|
|
378
|
-
const
|
|
379
|
-
return
|
|
374
|
+
if (n) {
|
|
375
|
+
const a = this.createCFormulaId(e, n);
|
|
376
|
+
return i.deleteValue(a, ["id"]), [];
|
|
380
377
|
} else {
|
|
381
|
-
const
|
|
382
|
-
return
|
|
383
|
-
|
|
384
|
-
}),
|
|
378
|
+
const a = i.getValues().filter((u) => u.cfId === e);
|
|
379
|
+
return a.forEach((u) => {
|
|
380
|
+
i.deleteValue(u.formulaId, ["formulaId"]);
|
|
381
|
+
}), a;
|
|
385
382
|
}
|
|
386
383
|
}
|
|
387
|
-
_getAllFormulaResultByCfId(
|
|
388
|
-
const
|
|
389
|
-
return
|
|
384
|
+
_getAllFormulaResultByCfId(r, t, e) {
|
|
385
|
+
const n = this.getSubUnitFormulaMap(r, t);
|
|
386
|
+
return n ? n.getValues().filter((a) => a.cfId === e) : [];
|
|
390
387
|
}
|
|
391
388
|
/**
|
|
392
389
|
* The external environment is not aware of`formulaId`;it communicates internally with the formula engine.
|
|
393
390
|
*/
|
|
394
|
-
_createFormulaId(
|
|
395
|
-
return `sheet.cf_${
|
|
391
|
+
_createFormulaId(r, t) {
|
|
392
|
+
return `sheet.cf_${r}_${t}_${H.generateRandomId(8)}`;
|
|
396
393
|
}
|
|
397
394
|
/**
|
|
398
395
|
* A conditional formatting may have multiple formulas;if the formulas are identical,then the results will be consistent.
|
|
399
396
|
*/
|
|
400
|
-
createCFormulaId(
|
|
401
|
-
return `${
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
],
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
constructor(
|
|
397
|
+
createCFormulaId(r, t) {
|
|
398
|
+
return `${r}_${t}`;
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
G = E0([
|
|
402
|
+
d2(0, A(f2)),
|
|
403
|
+
d2(1, A(z2)),
|
|
404
|
+
d2(2, A(B))
|
|
405
|
+
], G);
|
|
406
|
+
var S = /* @__PURE__ */ ((s) => (s.preComputingStart = "preComputingStart", s.preComputing = "preComputing", s.preComputingEnd = "preComputingEnd", s.preComputingError = "preComputingError", s))(S || {});
|
|
407
|
+
class u2 {
|
|
408
|
+
constructor(r) {
|
|
412
409
|
/**
|
|
413
410
|
* 3nd-level cache
|
|
414
411
|
*/
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
m(this, "_cache");
|
|
413
|
+
m(this, "_preComputingStatus$", new H2(
|
|
417
414
|
"preComputingStart"
|
|
418
415
|
/* preComputingStart */
|
|
419
416
|
));
|
|
420
|
-
|
|
417
|
+
m(this, "preComputingStatus$", this._preComputingStatus$.asObservable().pipe(X2()));
|
|
421
418
|
/**
|
|
422
419
|
* 2nd-level cache
|
|
423
420
|
*/
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
this._context =
|
|
421
|
+
m(this, "_preComputingCache");
|
|
422
|
+
m(this, "_rule");
|
|
423
|
+
this._context = r, this._cache = new b2(r.limit), this._rule = r.rule, this._preComputingCache = null, this._initClearCacheListener();
|
|
427
424
|
}
|
|
428
|
-
setCacheLength(
|
|
429
|
-
this._cache.limit =
|
|
425
|
+
setCacheLength(r) {
|
|
426
|
+
this._cache.limit = r;
|
|
430
427
|
}
|
|
431
428
|
clearCache() {
|
|
432
429
|
this._cache.clear();
|
|
@@ -437,711 +434,698 @@ const _BaseCalculateUnit = class _BaseCalculateUnit {
|
|
|
437
434
|
/* preComputingStart */
|
|
438
435
|
), this._preComputingCache = null;
|
|
439
436
|
}
|
|
440
|
-
updateRule(
|
|
441
|
-
this._rule =
|
|
437
|
+
updateRule(r) {
|
|
438
|
+
this._rule = r, this.resetPreComputingCache();
|
|
442
439
|
}
|
|
443
|
-
getCell(
|
|
444
|
-
const
|
|
440
|
+
getCell(r, t) {
|
|
441
|
+
const e = this._createKey(r, t);
|
|
445
442
|
if (this._preComputingStatus$.getValue() === "preComputing")
|
|
446
|
-
return this._cache.get(
|
|
447
|
-
let
|
|
448
|
-
if (
|
|
443
|
+
return this._cache.get(e);
|
|
444
|
+
let n = this.getPreComputingResult(r, t);
|
|
445
|
+
if (n === null && (this._preComputingStatus$.next(
|
|
449
446
|
"preComputingStart"
|
|
450
447
|
/* preComputingStart */
|
|
451
|
-
), this.preComputing(
|
|
452
|
-
return this._cache.get(
|
|
448
|
+
), this.preComputing(r, t, this._getContext()), n = this.getPreComputingResult(r, t), n === null))
|
|
449
|
+
return this._cache.get(e);
|
|
453
450
|
if (this._preComputingStatus$.next(
|
|
454
451
|
"preComputingEnd"
|
|
455
452
|
/* preComputingEnd */
|
|
456
|
-
), this._cache.has(
|
|
457
|
-
return this._cache.get(
|
|
458
|
-
const
|
|
459
|
-
return
|
|
453
|
+
), this._cache.has(e))
|
|
454
|
+
return this._cache.get(e);
|
|
455
|
+
const i = this.getCellResult(r, t, n, this._getContext());
|
|
456
|
+
return i !== null && this._setCache(r, t, i), i;
|
|
460
457
|
}
|
|
461
|
-
setPreComputingCache(
|
|
462
|
-
this._preComputingCache =
|
|
458
|
+
setPreComputingCache(r) {
|
|
459
|
+
this._preComputingCache = r;
|
|
463
460
|
}
|
|
464
|
-
getPreComputingResult(
|
|
461
|
+
getPreComputingResult(r, t) {
|
|
465
462
|
return this._preComputingCache;
|
|
466
463
|
}
|
|
467
|
-
_createKey(
|
|
468
|
-
return `${
|
|
464
|
+
_createKey(r, t) {
|
|
465
|
+
return `${r}_${t}`;
|
|
469
466
|
}
|
|
470
|
-
_setCache(
|
|
471
|
-
const
|
|
472
|
-
this._cache.set(
|
|
467
|
+
_setCache(r, t, e) {
|
|
468
|
+
const n = this._createKey(r, t);
|
|
469
|
+
this._cache.set(n, e);
|
|
473
470
|
}
|
|
474
471
|
_getContext() {
|
|
475
472
|
return { ...this._context, rule: this._rule };
|
|
476
473
|
}
|
|
477
474
|
_initClearCacheListener() {
|
|
478
|
-
this.preComputingStatus$.subscribe((
|
|
479
|
-
|
|
475
|
+
this.preComputingStatus$.subscribe((r) => {
|
|
476
|
+
r === "preComputingEnd" && this.clearCache();
|
|
480
477
|
});
|
|
481
478
|
}
|
|
482
|
-
};
|
|
483
|
-
__name(_BaseCalculateUnit, "BaseCalculateUnit");
|
|
484
|
-
let BaseCalculateUnit = _BaseCalculateUnit;
|
|
485
|
-
function isFloatsEqual(a, b) {
|
|
486
|
-
return Math.abs(a - b) < Number.EPSILON;
|
|
487
479
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
480
|
+
function a2(s, r) {
|
|
481
|
+
return Math.abs(s - r) < Number.EPSILON;
|
|
482
|
+
}
|
|
483
|
+
const I = (s) => [void 0, null].includes(s), U = (s) => {
|
|
484
|
+
var e, n;
|
|
485
|
+
if (!s)
|
|
492
486
|
return null;
|
|
493
|
-
if (
|
|
494
|
-
return
|
|
495
|
-
const
|
|
496
|
-
return
|
|
497
|
-
},
|
|
498
|
-
function
|
|
499
|
-
if (
|
|
500
|
-
if (
|
|
487
|
+
if (s.t === _.BOOLEAN)
|
|
488
|
+
return s.v === I2.TRUE ? A2.TRUE : A2.FALSE;
|
|
489
|
+
const r = s.v, t = (n = (e = s.p) == null ? void 0 : e.body) == null ? void 0 : n.dataStream.replace(/\r\n$/, "");
|
|
490
|
+
return I(r) ? I(t) ? null : t : r;
|
|
491
|
+
}, g2 = 86400;
|
|
492
|
+
function A0(s, r = !0) {
|
|
493
|
+
if (r && s >= 0) {
|
|
494
|
+
if (s === 0)
|
|
501
495
|
return [1900, 1, 0];
|
|
502
|
-
if (
|
|
496
|
+
if (s === 60)
|
|
503
497
|
return [1900, 2, 29];
|
|
504
|
-
if (
|
|
505
|
-
return [1900,
|
|
506
|
-
}
|
|
507
|
-
let
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
const
|
|
515
|
-
return [100 * (
|
|
498
|
+
if (s < 60)
|
|
499
|
+
return [1900, s < 32 ? 1 : 2, (s - 1) % 31 + 1];
|
|
500
|
+
}
|
|
501
|
+
let t = s + 68569 + 2415019;
|
|
502
|
+
const e = Math.floor(4 * t / 146097);
|
|
503
|
+
t = t - Math.floor((146097 * e + 3) / 4);
|
|
504
|
+
const n = Math.floor(4e3 * (t + 1) / 1461001);
|
|
505
|
+
t = t - Math.floor(1461 * n / 4) + 31;
|
|
506
|
+
const i = Math.floor(80 * t / 2447), a = t - Math.floor(2447 * i / 80);
|
|
507
|
+
t = Math.floor(i / 11);
|
|
508
|
+
const u = i + 2 - 12 * t;
|
|
509
|
+
return [100 * (e - 49) + n + t | 0, u | 0, a | 0];
|
|
516
510
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
value2 > max && (max = value2);
|
|
511
|
+
const _0 = (s) => {
|
|
512
|
+
let r = s | 0;
|
|
513
|
+
const t = g2 * (s - r);
|
|
514
|
+
let e = Math.floor(t);
|
|
515
|
+
t - e > 0.9999 && (e += 1, e === g2 && (e = 0, r += 1));
|
|
516
|
+
const n = e < 0 ? g2 + e : e, [i, a, u] = A0(s, !0), l = Math.floor(n / 60 / 60) % 60, o = Math.floor(n / 60) % 60, h = Math.floor(n) % 60;
|
|
517
|
+
return v(`${i}/${a}/${u} ${l}:${o}:${h}`).valueOf();
|
|
518
|
+
}, l2 = (s, r, t) => {
|
|
519
|
+
switch (s.type) {
|
|
520
|
+
case x.max: {
|
|
521
|
+
let e = 0;
|
|
522
|
+
return r.forValue((n, i, a) => {
|
|
523
|
+
a > e && (e = a);
|
|
531
524
|
}), {
|
|
532
|
-
status:
|
|
533
|
-
result:
|
|
525
|
+
status: b.SUCCESS,
|
|
526
|
+
result: e
|
|
534
527
|
};
|
|
535
528
|
}
|
|
536
|
-
case
|
|
537
|
-
let
|
|
538
|
-
return
|
|
539
|
-
|
|
529
|
+
case x.min: {
|
|
530
|
+
let e;
|
|
531
|
+
return r.forValue((n, i, a) => {
|
|
532
|
+
e === void 0 && (e = a), a < e && (e = a);
|
|
540
533
|
}), {
|
|
541
|
-
status:
|
|
542
|
-
result:
|
|
534
|
+
status: b.SUCCESS,
|
|
535
|
+
result: e
|
|
543
536
|
};
|
|
544
537
|
}
|
|
545
|
-
case
|
|
546
|
-
let
|
|
547
|
-
|
|
548
|
-
(
|
|
538
|
+
case x.percent: {
|
|
539
|
+
let e, n;
|
|
540
|
+
r.forValue((u, l, o) => {
|
|
541
|
+
(e === void 0 || n === void 0) && (e = o, n = o), o > e && (e = o), o < n && (n = o);
|
|
549
542
|
});
|
|
550
|
-
const
|
|
543
|
+
const i = (e || 0) - (n || 0), a = Math.max(Math.min(Number(s.value) || 0, 100), 0);
|
|
551
544
|
return {
|
|
552
|
-
status:
|
|
553
|
-
result:
|
|
545
|
+
status: b.SUCCESS,
|
|
546
|
+
result: i * (a / 100) + (n || 0)
|
|
554
547
|
};
|
|
555
548
|
}
|
|
556
|
-
case
|
|
557
|
-
const
|
|
549
|
+
case x.percentile: {
|
|
550
|
+
const e = r.toNativeArray().sort((o, h) => o - h), n = Math.max(Math.min(Number(s.value) || 0, 100), 0), i = (e.length - 1) * n / 100, a = Math.floor(i), u = i - a, l = e[a] + (e[Math.min(a + 1, e.length - 1)] - e[a]) * u;
|
|
558
551
|
return {
|
|
559
|
-
status:
|
|
560
|
-
result
|
|
552
|
+
status: b.SUCCESS,
|
|
553
|
+
result: l
|
|
561
554
|
};
|
|
562
555
|
}
|
|
563
|
-
case
|
|
564
|
-
const { accessor, unitId, subUnitId, cfId } =
|
|
565
|
-
return
|
|
556
|
+
case x.formula: {
|
|
557
|
+
const { accessor: e, unitId: n, subUnitId: i, cfId: a } = t, u = String(s.value), l = e.get(G);
|
|
558
|
+
return l.registerFormulaWithRange(n, i, a, u), l.getFormulaResultWithCoords(n, i, a, u);
|
|
566
559
|
}
|
|
567
|
-
case
|
|
568
|
-
const
|
|
560
|
+
case x.num: {
|
|
561
|
+
const e = Number(s.value);
|
|
569
562
|
return {
|
|
570
|
-
status:
|
|
571
|
-
result: Number.isNaN(
|
|
563
|
+
status: b.SUCCESS,
|
|
564
|
+
result: Number.isNaN(e) ? 0 : e
|
|
572
565
|
};
|
|
573
566
|
}
|
|
574
567
|
}
|
|
575
|
-
},
|
|
576
|
-
const { accessor } =
|
|
577
|
-
return
|
|
578
|
-
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
const
|
|
582
|
-
|
|
568
|
+
}, M1 = (s, r, t, e) => {
|
|
569
|
+
const { accessor: n } = e, i = n.get(j), a = new T();
|
|
570
|
+
return t.ranges.forEach((u) => {
|
|
571
|
+
N.foreach(u, (l, o) => {
|
|
572
|
+
const h = i.getCellCfs(s, r, l, o);
|
|
573
|
+
if (h) {
|
|
574
|
+
const c = h.find((d) => d.cfId === t.cfId);
|
|
575
|
+
c != null && c.result && a.setValue(l, o, c.result);
|
|
583
576
|
}
|
|
584
577
|
});
|
|
585
|
-
}),
|
|
586
|
-
},
|
|
587
|
-
switch (
|
|
588
|
-
case
|
|
589
|
-
if (typeof
|
|
578
|
+
}), a;
|
|
579
|
+
}, Y = (s, r) => {
|
|
580
|
+
switch (s.operator) {
|
|
581
|
+
case w.between: {
|
|
582
|
+
if (typeof s.value != "object" || !s.value.length)
|
|
590
583
|
return;
|
|
591
|
-
const
|
|
592
|
-
return
|
|
584
|
+
const t = Math.min(...s.value), e = Math.max(...s.value);
|
|
585
|
+
return r >= t && r <= e;
|
|
593
586
|
}
|
|
594
|
-
case
|
|
595
|
-
if (typeof
|
|
587
|
+
case w.notBetween: {
|
|
588
|
+
if (typeof s.value != "object" || !s.value.length)
|
|
596
589
|
return;
|
|
597
|
-
const
|
|
598
|
-
return !(
|
|
590
|
+
const t = Math.min(...s.value), e = Math.max(...s.value);
|
|
591
|
+
return !(r >= t && r <= e);
|
|
599
592
|
}
|
|
600
|
-
case
|
|
601
|
-
const
|
|
602
|
-
return
|
|
593
|
+
case w.equal: {
|
|
594
|
+
const t = s.value || 0;
|
|
595
|
+
return a2(t, r);
|
|
603
596
|
}
|
|
604
|
-
case
|
|
605
|
-
const
|
|
606
|
-
return !
|
|
597
|
+
case w.notEqual: {
|
|
598
|
+
const t = s.value || 0;
|
|
599
|
+
return !a2(t, r);
|
|
607
600
|
}
|
|
608
|
-
case
|
|
609
|
-
const
|
|
610
|
-
return
|
|
601
|
+
case w.greaterThan: {
|
|
602
|
+
const t = s.value || 0;
|
|
603
|
+
return r > t;
|
|
611
604
|
}
|
|
612
|
-
case
|
|
613
|
-
const
|
|
614
|
-
return
|
|
605
|
+
case w.greaterThanOrEqual: {
|
|
606
|
+
const t = s.value || 0;
|
|
607
|
+
return r >= t;
|
|
615
608
|
}
|
|
616
|
-
case
|
|
617
|
-
const
|
|
618
|
-
return
|
|
609
|
+
case w.lessThan: {
|
|
610
|
+
const t = s.value || 0;
|
|
611
|
+
return r < t;
|
|
619
612
|
}
|
|
620
|
-
case
|
|
621
|
-
const
|
|
622
|
-
return
|
|
613
|
+
case w.lessThanOrEqual: {
|
|
614
|
+
const t = s.value || 0;
|
|
615
|
+
return r <= t;
|
|
623
616
|
}
|
|
624
617
|
default:
|
|
625
618
|
return !1;
|
|
626
619
|
}
|
|
627
|
-
},
|
|
628
|
-
switch (
|
|
629
|
-
case
|
|
630
|
-
return
|
|
631
|
-
case
|
|
632
|
-
return
|
|
633
|
-
case
|
|
634
|
-
return
|
|
635
|
-
case
|
|
636
|
-
return
|
|
637
|
-
}
|
|
638
|
-
return
|
|
639
|
-
},
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
642
|
-
return
|
|
643
|
-
if (
|
|
644
|
-
const
|
|
645
|
-
if (
|
|
646
|
-
const
|
|
647
|
-
const
|
|
648
|
-
return
|
|
620
|
+
}, x0 = (s) => {
|
|
621
|
+
switch (s) {
|
|
622
|
+
case w.greaterThan:
|
|
623
|
+
return w.lessThanOrEqual;
|
|
624
|
+
case w.greaterThanOrEqual:
|
|
625
|
+
return w.lessThan;
|
|
626
|
+
case w.lessThan:
|
|
627
|
+
return w.greaterThanOrEqual;
|
|
628
|
+
case w.lessThanOrEqual:
|
|
629
|
+
return w.greaterThan;
|
|
630
|
+
}
|
|
631
|
+
return s;
|
|
632
|
+
}, y0 = (s, r) => {
|
|
633
|
+
const t = (i) => i.a !== void 0 ? i : { ...i, a: 1 }, e = s.findIndex((i) => i.value >= r), n = e - 1;
|
|
634
|
+
if (e === 0)
|
|
635
|
+
return s[0].color.toRgbString();
|
|
636
|
+
if (n >= 0) {
|
|
637
|
+
const i = s[n], a = s[e];
|
|
638
|
+
if (i.color.isValid && a.color.isValid) {
|
|
639
|
+
const u = t(i.color.toRgb()), l = t(a.color.toRgb()), o = a.value - i.value, h = (r - i.value) / o, c = ["r", "g", "b", "a"].reduce((C, D) => {
|
|
640
|
+
const f = u[D];
|
|
641
|
+
return C[D] = (l[D] - f) * h + f, C;
|
|
649
642
|
}, {});
|
|
650
|
-
return new
|
|
643
|
+
return new L2(c).toRgbString();
|
|
651
644
|
}
|
|
652
645
|
} else
|
|
653
|
-
return
|
|
654
|
-
},
|
|
655
|
-
if (
|
|
646
|
+
return s[s.length - 1].color.toRgbString();
|
|
647
|
+
}, w2 = (s, r, t) => s.map((e) => {
|
|
648
|
+
if (e.startColumn > t || e.startRow > r)
|
|
656
649
|
return null;
|
|
657
|
-
const
|
|
658
|
-
return
|
|
659
|
-
}).filter((
|
|
660
|
-
function
|
|
661
|
-
let
|
|
662
|
-
return new
|
|
663
|
-
|
|
664
|
-
}),
|
|
650
|
+
const n = { ...e };
|
|
651
|
+
return n.endRow = Math.min(n.endRow, r), n.endColumn = Math.min(n.endColumn, t), n;
|
|
652
|
+
}).filter((e) => !!e);
|
|
653
|
+
function R1(s) {
|
|
654
|
+
let r = 0;
|
|
655
|
+
return new T(s).forValue((t, e, n) => {
|
|
656
|
+
r = Math.max(Number.isNaN(r) ? 0 : r, Number(n));
|
|
657
|
+
}), r;
|
|
665
658
|
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
!Number.isNaN(_value) && matrix.setValue(row, col, _value);
|
|
659
|
+
class M0 extends u2 {
|
|
660
|
+
preComputing(r, t, e) {
|
|
661
|
+
const n = e.rule, i = e.worksheet, a = new T();
|
|
662
|
+
!n.rule.config.every((h) => h.value.type === x.num) && w2(n.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((c) => {
|
|
663
|
+
N.foreach(c, (d, C) => {
|
|
664
|
+
const D = e.getCellValue(d, C), f = D && D.v;
|
|
665
|
+
if (!I(f) && (D == null ? void 0 : D.t) === _.NUMBER) {
|
|
666
|
+
const F = Number(f);
|
|
667
|
+
!Number.isNaN(F) && a.setValue(d, C, F);
|
|
676
668
|
}
|
|
677
669
|
});
|
|
678
670
|
});
|
|
679
|
-
const
|
|
680
|
-
value:
|
|
681
|
-
...
|
|
682
|
-
cfId:
|
|
671
|
+
const l = [...n.rule.config].sort((h, c) => h.index - c.index).map((h) => ({
|
|
672
|
+
value: l2(h.value, a, {
|
|
673
|
+
...e,
|
|
674
|
+
cfId: n.cfId
|
|
683
675
|
}),
|
|
684
|
-
color: new
|
|
676
|
+
color: new L2(h.color)
|
|
685
677
|
}));
|
|
686
|
-
if (!
|
|
687
|
-
const
|
|
678
|
+
if (!l.some((h) => n0(h.value) ? h.value.status !== b.SUCCESS : !1)) {
|
|
679
|
+
const h = l.map((c) => c.color).reduce((c, d, C) => (c.result.push({ color: d, value: c.sortValue[C] }), c), {
|
|
688
680
|
result: [],
|
|
689
|
-
sortValue:
|
|
681
|
+
sortValue: l.map((c) => c.value.result).sort((c, d) => c - d)
|
|
690
682
|
}).result;
|
|
691
|
-
this.setPreComputingCache(
|
|
683
|
+
this.setPreComputingCache(h), this._preComputingStatus$.next(S.preComputingEnd);
|
|
692
684
|
return;
|
|
693
685
|
}
|
|
694
|
-
this._preComputingStatus$.next(
|
|
686
|
+
this._preComputingStatus$.next(S.preComputing);
|
|
695
687
|
}
|
|
696
|
-
getCellResult(
|
|
697
|
-
if (!
|
|
688
|
+
getCellResult(r, t, e, n) {
|
|
689
|
+
if (!e)
|
|
698
690
|
return null;
|
|
699
|
-
const
|
|
700
|
-
if (
|
|
701
|
-
const
|
|
702
|
-
if (!Number.isNaN(
|
|
703
|
-
return
|
|
691
|
+
const i = n.getCellValue(r, t);
|
|
692
|
+
if (i.t === _.NUMBER) {
|
|
693
|
+
const a = Number(i.v);
|
|
694
|
+
if (!Number.isNaN(a))
|
|
695
|
+
return y0(e, a);
|
|
704
696
|
}
|
|
705
697
|
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
const dataBarUKey = "sheet-conditional-rule-data-bar", defaultDataBarPositiveColor = "#ffbe38", defaultDataBarNativeColor = "#abd91a", defaultPlaceholderColor = "#000", EXTENSION_Z_INDEX$1 = 34, _DataBar = class _DataBar extends SheetExtension {
|
|
698
|
+
}
|
|
699
|
+
const R0 = "sheet-conditional-rule-data-bar", x2 = "#ffbe38", y2 = "#abd91a", I0 = "#000", b0 = 34;
|
|
700
|
+
class L0 extends k2 {
|
|
710
701
|
constructor() {
|
|
711
702
|
super(...arguments);
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
703
|
+
m(this, "_paddingRightAndLeft", 2);
|
|
704
|
+
m(this, "_paddingTopAndBottom", 2);
|
|
705
|
+
m(this, "uKey", R0);
|
|
706
|
+
m(this, "Z_INDEX", b0);
|
|
707
|
+
m(this, "_radius", 1);
|
|
717
708
|
}
|
|
718
709
|
// eslint-disable-next-line max-lines-per-function
|
|
719
|
-
draw(
|
|
720
|
-
const { worksheet } =
|
|
721
|
-
if (!
|
|
710
|
+
draw(t, e, n, i) {
|
|
711
|
+
const { worksheet: a } = n;
|
|
712
|
+
if (!a)
|
|
722
713
|
return !1;
|
|
723
|
-
|
|
724
|
-
if (!
|
|
714
|
+
t.save(), N.foreach(n.rowColumnSegment, (u, l) => {
|
|
715
|
+
if (!a.getRowVisible(u) || !a.getColVisible(l))
|
|
725
716
|
return;
|
|
726
|
-
const
|
|
727
|
-
if (
|
|
728
|
-
const { color, value, startPoint, isGradient } =
|
|
729
|
-
let { isMerged, isMergedMainCell, mergeInfo, startY, endY, startX, endX } =
|
|
730
|
-
if (
|
|
717
|
+
const o = a.getCell(u, l);
|
|
718
|
+
if (o && o.dataBar) {
|
|
719
|
+
const { color: h, value: c, startPoint: d, isGradient: C } = o.dataBar, D = n.getCellWithCoordByIndex(u, l, !1);
|
|
720
|
+
let { isMerged: f, isMergedMainCell: F, mergeInfo: p, startY: L, endY: k, startX: V, endX: z } = D;
|
|
721
|
+
if (f || (F && (L = p.startY, k = p.endY, V = p.startX, z = p.endX), !this.isRenderDiffRangesByCell(p, i)))
|
|
731
722
|
return;
|
|
732
|
-
const
|
|
733
|
-
if (
|
|
734
|
-
const
|
|
735
|
-
if (
|
|
736
|
-
const
|
|
737
|
-
|
|
723
|
+
const Q = z - V, h2 = k + r0 - L, e2 = Q - this._paddingRightAndLeft * 2, p2 = h2 - this._paddingTopAndBottom * 2;
|
|
724
|
+
if (c > 0) {
|
|
725
|
+
const Z = Math.max(e2 * (1 - d / 100) * c / 100, 1), O = V + this._paddingRightAndLeft + d / 100 * e2, $ = L + this._paddingTopAndBottom;
|
|
726
|
+
if (C) {
|
|
727
|
+
const P = t.createLinearGradient(O, $, O + Z, $);
|
|
728
|
+
P.addColorStop(0, h), P.addColorStop(1, "rgb(255 255 255)"), t.fillStyle = P, t.strokeStyle = h, t.lineWidth = 1;
|
|
738
729
|
} else
|
|
739
|
-
|
|
740
|
-
this._drawRectWithRoundedCorner(
|
|
730
|
+
t.fillStyle = h;
|
|
731
|
+
this._drawRectWithRoundedCorner(t, O, $, Z, p2, !1, !0, !0, !1), C && t.stroke();
|
|
741
732
|
} else {
|
|
742
|
-
const
|
|
743
|
-
if (
|
|
744
|
-
const
|
|
745
|
-
|
|
733
|
+
const Z = Math.max(e2 * d / 100 * Math.abs(c) / 100, 1), O = V + this._paddingRightAndLeft + d / 100 * e2 - Z, $ = L + this._paddingTopAndBottom;
|
|
734
|
+
if (C) {
|
|
735
|
+
const P = t.createLinearGradient(O, $, O + Z, $);
|
|
736
|
+
P.addColorStop(0, "rgb(255 255 255)"), P.addColorStop(1, h), t.fillStyle = P, t.strokeStyle = h, t.lineWidth = 1;
|
|
746
737
|
} else
|
|
747
|
-
|
|
748
|
-
this._drawRectWithRoundedCorner(
|
|
738
|
+
t.fillStyle = h;
|
|
739
|
+
this._drawRectWithRoundedCorner(t, O, $, Z, p2, !0, !1, !1, !0), C && t.stroke();
|
|
749
740
|
}
|
|
750
741
|
}
|
|
751
|
-
}),
|
|
742
|
+
}), t.restore();
|
|
752
743
|
}
|
|
753
|
-
_drawRectWithRoundedCorner(
|
|
754
|
-
const
|
|
755
|
-
!
|
|
744
|
+
_drawRectWithRoundedCorner(t, e, n, i, a, u, l, o, h) {
|
|
745
|
+
const c = this._radius;
|
|
746
|
+
!a || !i || (t.beginPath(), t.moveTo(e + c, n), t.lineTo(e + i - c, n), l ? t.arcTo(e + i, n, e + i, n + c, c) : t.lineTo(e + i, n), t.lineTo(e + i, n + a - c), o ? t.arcTo(e + i, n + a, e + i - c, n + a, c) : t.lineTo(e + i, n + a), t.lineTo(e + c, n + a), h ? t.arcTo(e, n + a, e, n + a - c, c) : t.lineTo(e, n + a), t.lineTo(e, n + c), u ? t.arcTo(e, n, e + c, n, c) : t.lineTo(e, n), t.closePath(), t.fill());
|
|
756
747
|
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
const value = Number(cell2.v);
|
|
765
|
-
return Number.isNaN(value) ? null : value;
|
|
748
|
+
}
|
|
749
|
+
B2.add(L0);
|
|
750
|
+
const t2 = (s) => Math.max(Math.min(100, s), 0), S0 = (s, r, t) => {
|
|
751
|
+
const e = t(s, r);
|
|
752
|
+
if (e && e.t === _.NUMBER) {
|
|
753
|
+
const n = Number(e.v);
|
|
754
|
+
return Number.isNaN(n) ? null : n;
|
|
766
755
|
}
|
|
767
756
|
return null;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
757
|
+
};
|
|
758
|
+
class B0 extends u2 {
|
|
759
|
+
preComputing(r, t, e) {
|
|
760
|
+
const n = e.rule, i = n.rule, a = e.worksheet, u = new T();
|
|
761
|
+
![n.rule.config.max, n.rule.config.min].every((C) => C.type === x.num) && w2(n.ranges, a.getMaxRows() - 1, a.getMaxColumns() - 1).forEach((D) => {
|
|
762
|
+
N.foreach(D, (f, F) => {
|
|
763
|
+
const p = e.getCellValue(f, F), L = p && p.v;
|
|
764
|
+
if (!I(L) && (p == null ? void 0 : p.t) === _.NUMBER) {
|
|
765
|
+
const k = Number(L);
|
|
766
|
+
!Number.isNaN(k) && u.setValue(f, F, k);
|
|
777
767
|
}
|
|
778
768
|
});
|
|
779
769
|
});
|
|
780
|
-
const
|
|
781
|
-
let
|
|
782
|
-
if (
|
|
783
|
-
const
|
|
784
|
-
|
|
770
|
+
const o = l2(i.config.min, u, { ...e, cfId: n.cfId }), h = l2(i.config.max, u, { ...e, cfId: n.cfId });
|
|
771
|
+
let c = 0, d = 0;
|
|
772
|
+
if (o.status === b.SUCCESS) {
|
|
773
|
+
const C = Number(o.result);
|
|
774
|
+
c = Number.isNaN(C) ? 0 : C;
|
|
785
775
|
} else {
|
|
786
|
-
this._preComputingStatus$.next(
|
|
776
|
+
this._preComputingStatus$.next(S.preComputing);
|
|
787
777
|
return;
|
|
788
778
|
}
|
|
789
|
-
if (
|
|
790
|
-
const
|
|
791
|
-
|
|
792
|
-
let
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
else if (
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
} else
|
|
799
|
-
this.setPreComputingCache({ min, max, startPoint }), this._preComputingStatus$.next(
|
|
779
|
+
if (h.status === b.SUCCESS) {
|
|
780
|
+
const C = Number(h.result), D = Number.isNaN(C) ? 0 : C;
|
|
781
|
+
d = Math.max(D, c), c = Math.min(D, c);
|
|
782
|
+
let f = 50;
|
|
783
|
+
if (c < 0 && d <= 0)
|
|
784
|
+
f = 100;
|
|
785
|
+
else if (c < 0 && d > 0) {
|
|
786
|
+
const F = Math.abs(d) + Math.abs(c);
|
|
787
|
+
f = Math.abs(c) / F * 100;
|
|
788
|
+
} else c >= 0 && d > 0 && (f = 0);
|
|
789
|
+
this.setPreComputingCache({ min: c, max: d, startPoint: f }), this._preComputingStatus$.next(S.preComputingEnd);
|
|
800
790
|
return;
|
|
801
791
|
}
|
|
802
|
-
this._preComputingStatus$.next(
|
|
792
|
+
this._preComputingStatus$.next(S.preComputing);
|
|
803
793
|
}
|
|
804
794
|
// eslint-disable-next-line complexity
|
|
805
|
-
getCellResult(
|
|
806
|
-
const { min, max, startPoint } =
|
|
807
|
-
if (!(
|
|
808
|
-
if (
|
|
809
|
-
return { color:
|
|
810
|
-
if (
|
|
811
|
-
const
|
|
812
|
-
return
|
|
813
|
-
} else if (
|
|
814
|
-
if (
|
|
815
|
-
const
|
|
816
|
-
return
|
|
795
|
+
getCellResult(r, t, e, n) {
|
|
796
|
+
const { min: i, max: a, startPoint: u } = e, o = n.rule.rule, h = o.isShowValue, c = o.config.isGradient, d = S0(r, t, n.getCellValue);
|
|
797
|
+
if (!(d === null || d < i || i === a || a < i)) {
|
|
798
|
+
if (d === 0)
|
|
799
|
+
return { color: I0, startPoint: u, value: 0, isGradient: c, isShowValue: h };
|
|
800
|
+
if (i < 0 && a <= 0) {
|
|
801
|
+
const C = a - i, D = t2((a - d) / C * 100);
|
|
802
|
+
return D === 0 ? void 0 : { color: o.config.nativeColor || y2, startPoint: u, value: -D, isGradient: c, isShowValue: h };
|
|
803
|
+
} else if (i < 0 && a > 0)
|
|
804
|
+
if (d > 0) {
|
|
805
|
+
const C = t2(Math.min(d / a, 1) * 100);
|
|
806
|
+
return C === 0 ? void 0 : { color: o.config.positiveColor || x2, startPoint: u, value: C, isGradient: c, isShowValue: h };
|
|
817
807
|
} else {
|
|
818
|
-
const
|
|
819
|
-
return
|
|
808
|
+
const C = t2(Math.min(Math.abs(d) / Math.abs(i), 1) * 100);
|
|
809
|
+
return C === 0 ? void 0 : { color: o.config.nativeColor || y2, startPoint: u, value: -C, isGradient: c, isShowValue: h };
|
|
820
810
|
}
|
|
821
|
-
else if (
|
|
822
|
-
const
|
|
823
|
-
return
|
|
811
|
+
else if (i >= 0 && a > 0) {
|
|
812
|
+
const C = a - i, D = 0, f = t2((1 - (a - d) / C) * 100);
|
|
813
|
+
return f === 0 ? void 0 : { color: o.config.positiveColor || x2, startPoint: D, value: f, isGradient: c, isShowValue: h };
|
|
824
814
|
}
|
|
825
815
|
}
|
|
826
816
|
}
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
let DataBarCalculateUnit = _DataBarCalculateUnit;
|
|
830
|
-
const _HighlightCellCalculateUnit = class _HighlightCellCalculateUnit extends BaseCalculateUnit {
|
|
817
|
+
}
|
|
818
|
+
class k0 extends u2 {
|
|
831
819
|
// eslint-disable-next-line max-lines-per-function
|
|
832
|
-
preComputing(
|
|
833
|
-
const
|
|
834
|
-
switch (
|
|
835
|
-
case
|
|
836
|
-
let
|
|
837
|
-
return
|
|
838
|
-
|
|
839
|
-
const
|
|
840
|
-
|
|
820
|
+
preComputing(r, t, e) {
|
|
821
|
+
const n = e.rule.rule, i = e.rule.ranges, u = (() => {
|
|
822
|
+
switch (n.subType) {
|
|
823
|
+
case E.average: {
|
|
824
|
+
let l = 0, o = 0;
|
|
825
|
+
return i.forEach((h) => {
|
|
826
|
+
N.foreach(h, (c, d) => {
|
|
827
|
+
const C = e.getCellValue(c, d), D = U(C || void 0);
|
|
828
|
+
C && C.t === _.NUMBER && D !== void 0 && (l += Number(D) || 0, o++);
|
|
841
829
|
});
|
|
842
|
-
}), { value:
|
|
830
|
+
}), { value: l / o, type: n.subType };
|
|
843
831
|
}
|
|
844
|
-
case
|
|
845
|
-
case
|
|
846
|
-
const
|
|
847
|
-
return
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
if (
|
|
851
|
-
const
|
|
852
|
-
|
|
832
|
+
case E.uniqueValues:
|
|
833
|
+
case E.duplicateValues: {
|
|
834
|
+
const l = /* @__PURE__ */ new Map();
|
|
835
|
+
return i.forEach((o) => {
|
|
836
|
+
N.foreach(o, (h, c) => {
|
|
837
|
+
const d = e.getCellValue(h, c), C = U(d || void 0);
|
|
838
|
+
if (C !== void 0) {
|
|
839
|
+
const D = l.get(C);
|
|
840
|
+
D ? l.set(C, D + 1) : l.set(C, 1);
|
|
853
841
|
}
|
|
854
842
|
});
|
|
855
|
-
}), { value:
|
|
843
|
+
}), { value: l, type: n.subType };
|
|
856
844
|
}
|
|
857
|
-
case
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
const
|
|
862
|
-
|
|
845
|
+
case E.rank: {
|
|
846
|
+
const l = [];
|
|
847
|
+
i.forEach((c) => {
|
|
848
|
+
N.foreach(c, (d, C) => {
|
|
849
|
+
const D = e.getCellValue(d, C), f = U(D || void 0);
|
|
850
|
+
D && D.t === _.NUMBER && f !== void 0 && l.push(Number(f) || 0);
|
|
863
851
|
});
|
|
864
|
-
}),
|
|
865
|
-
const
|
|
866
|
-
return
|
|
852
|
+
}), l.sort((c, d) => d - c);
|
|
853
|
+
const o = e.rule.rule, h = o.isPercent ? Math.floor(Math.max(Math.min(o.value, 100), 0) / 100 * l.length) : Math.floor(Math.max(Math.min(o.isBottom ? o.value - 1 : o.value, l.length), 0));
|
|
854
|
+
return o.isBottom ? { value: l[l.length - h - 1], type: n.subType } : { value: l[Math.max(h - 1, 0)], type: n.subType };
|
|
867
855
|
}
|
|
868
|
-
case
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
return
|
|
873
|
-
value:
|
|
874
|
-
type:
|
|
875
|
-
}) : (this._preComputingStatus$.next(
|
|
856
|
+
case E.formula: {
|
|
857
|
+
const l = n, o = e.accessor.get(G);
|
|
858
|
+
o.registerFormulaWithRange(e.unitId, e.subUnitId, e.rule.cfId, l.value, e.rule.ranges);
|
|
859
|
+
const h = o.getFormulaMatrix(e.unitId, e.subUnitId, e.rule.cfId, l.value);
|
|
860
|
+
return h && h.status === b.SUCCESS ? (this._preComputingStatus$.next(S.preComputingEnd), {
|
|
861
|
+
value: h.result,
|
|
862
|
+
type: n.subType
|
|
863
|
+
}) : (this._preComputingStatus$.next(S.preComputing), null);
|
|
876
864
|
}
|
|
877
|
-
case
|
|
878
|
-
switch (
|
|
879
|
-
case
|
|
865
|
+
case E.timePeriod:
|
|
866
|
+
switch (n.operator) {
|
|
867
|
+
case R.last7Days:
|
|
880
868
|
return {
|
|
881
869
|
value: {
|
|
882
|
-
start:
|
|
883
|
-
end:
|
|
870
|
+
start: v().subtract(7, "day").valueOf(),
|
|
871
|
+
end: v().valueOf()
|
|
884
872
|
},
|
|
885
|
-
type:
|
|
873
|
+
type: n.subType
|
|
886
874
|
};
|
|
887
|
-
case
|
|
875
|
+
case R.lastMonth:
|
|
888
876
|
return {
|
|
889
877
|
value: {
|
|
890
|
-
start:
|
|
891
|
-
end:
|
|
878
|
+
start: v().startOf("month").subtract(1, "month").valueOf(),
|
|
879
|
+
end: v().endOf("month").subtract(1, "month").valueOf()
|
|
892
880
|
},
|
|
893
|
-
type:
|
|
881
|
+
type: n.subType
|
|
894
882
|
};
|
|
895
|
-
case
|
|
883
|
+
case R.lastWeek:
|
|
896
884
|
return {
|
|
897
885
|
value: {
|
|
898
|
-
start:
|
|
899
|
-
end:
|
|
886
|
+
start: v().startOf("week").subtract(1, "week").valueOf(),
|
|
887
|
+
end: v().endOf("week").subtract(1, "week").valueOf()
|
|
900
888
|
},
|
|
901
|
-
type:
|
|
889
|
+
type: n.subType
|
|
902
890
|
};
|
|
903
|
-
case
|
|
891
|
+
case R.nextMonth:
|
|
904
892
|
return {
|
|
905
893
|
value: {
|
|
906
|
-
start:
|
|
907
|
-
end:
|
|
894
|
+
start: v().startOf("month").add(1, "month").valueOf(),
|
|
895
|
+
end: v().endOf("month").add(1, "month").valueOf()
|
|
908
896
|
},
|
|
909
|
-
type:
|
|
897
|
+
type: n.subType
|
|
910
898
|
};
|
|
911
|
-
case
|
|
899
|
+
case R.nextWeek:
|
|
912
900
|
return {
|
|
913
901
|
value: {
|
|
914
|
-
start:
|
|
915
|
-
end:
|
|
902
|
+
start: v().startOf("week").add(1, "week").valueOf(),
|
|
903
|
+
end: v().endOf("week").add(1, "week").valueOf()
|
|
916
904
|
},
|
|
917
|
-
type:
|
|
905
|
+
type: n.subType
|
|
918
906
|
};
|
|
919
|
-
case
|
|
907
|
+
case R.thisMonth:
|
|
920
908
|
return {
|
|
921
909
|
value: {
|
|
922
|
-
start:
|
|
923
|
-
end:
|
|
910
|
+
start: v().startOf("month").valueOf(),
|
|
911
|
+
end: v().endOf("month").valueOf()
|
|
924
912
|
},
|
|
925
|
-
type:
|
|
913
|
+
type: n.subType
|
|
926
914
|
};
|
|
927
|
-
case
|
|
915
|
+
case R.thisWeek:
|
|
928
916
|
return {
|
|
929
917
|
value: {
|
|
930
|
-
start:
|
|
931
|
-
end:
|
|
918
|
+
start: v().startOf("week").valueOf(),
|
|
919
|
+
end: v().endOf("week").valueOf()
|
|
932
920
|
},
|
|
933
|
-
type:
|
|
921
|
+
type: n.subType
|
|
934
922
|
};
|
|
935
|
-
case
|
|
923
|
+
case R.today:
|
|
936
924
|
return {
|
|
937
925
|
value: {
|
|
938
|
-
start:
|
|
939
|
-
end:
|
|
926
|
+
start: v().startOf("day").valueOf(),
|
|
927
|
+
end: v().endOf("day").valueOf()
|
|
940
928
|
},
|
|
941
|
-
type:
|
|
929
|
+
type: n.subType
|
|
942
930
|
};
|
|
943
|
-
case
|
|
931
|
+
case R.tomorrow:
|
|
944
932
|
return {
|
|
945
933
|
value: {
|
|
946
|
-
start:
|
|
947
|
-
end:
|
|
934
|
+
start: v().startOf("day").add(1, "day").valueOf(),
|
|
935
|
+
end: v().endOf("day").add(1, "day").valueOf()
|
|
948
936
|
},
|
|
949
|
-
type:
|
|
937
|
+
type: n.subType
|
|
950
938
|
};
|
|
951
|
-
case
|
|
939
|
+
case R.yesterday:
|
|
952
940
|
return {
|
|
953
941
|
value: {
|
|
954
|
-
start:
|
|
955
|
-
end:
|
|
942
|
+
start: v().startOf("day").subtract(1, "day").valueOf(),
|
|
943
|
+
end: v().endOf("day").subtract(1, "day").valueOf()
|
|
956
944
|
},
|
|
957
|
-
type:
|
|
945
|
+
type: n.subType
|
|
958
946
|
};
|
|
959
947
|
}
|
|
960
948
|
}
|
|
961
|
-
}
|
|
962
|
-
this.setPreComputingCache(
|
|
949
|
+
})();
|
|
950
|
+
this.setPreComputingCache(u);
|
|
963
951
|
}
|
|
964
952
|
// eslint-disable-next-line max-lines-per-function
|
|
965
|
-
getCellResult(
|
|
966
|
-
const
|
|
967
|
-
return (
|
|
968
|
-
switch (
|
|
969
|
-
case
|
|
970
|
-
const
|
|
971
|
-
if (
|
|
953
|
+
getCellResult(r, t, e, n) {
|
|
954
|
+
const i = n.getCellValue(r, t), a = n.rule.rule;
|
|
955
|
+
return (() => {
|
|
956
|
+
switch (a.subType) {
|
|
957
|
+
case E.number: {
|
|
958
|
+
const o = i && Number(i.v);
|
|
959
|
+
if (I(o) || Number.isNaN(o) || (i == null ? void 0 : i.t) !== _.NUMBER)
|
|
972
960
|
return;
|
|
973
|
-
const
|
|
974
|
-
return
|
|
961
|
+
const h = a;
|
|
962
|
+
return Y({ operator: h.operator, value: h.value || 0 }, o || 0);
|
|
975
963
|
}
|
|
976
|
-
case
|
|
977
|
-
const
|
|
978
|
-
switch (
|
|
979
|
-
case
|
|
980
|
-
return
|
|
981
|
-
case
|
|
982
|
-
return /^\s*$/.test(
|
|
983
|
-
case
|
|
984
|
-
return !/^\s*$/.test(
|
|
985
|
-
case
|
|
986
|
-
return
|
|
987
|
-
case
|
|
988
|
-
return !
|
|
989
|
-
case
|
|
990
|
-
return
|
|
991
|
-
case
|
|
992
|
-
return
|
|
993
|
-
case
|
|
994
|
-
return
|
|
995
|
-
case
|
|
996
|
-
return
|
|
997
|
-
case
|
|
998
|
-
return
|
|
964
|
+
case E.text: {
|
|
965
|
+
const o = a, h = U(i), c = h === null ? "" : String(h), d = o.value || "";
|
|
966
|
+
switch (o.operator) {
|
|
967
|
+
case M.beginsWith:
|
|
968
|
+
return c.startsWith(d);
|
|
969
|
+
case M.containsBlanks:
|
|
970
|
+
return /^\s*$/.test(c);
|
|
971
|
+
case M.notContainsBlanks:
|
|
972
|
+
return !/^\s*$/.test(c);
|
|
973
|
+
case M.containsErrors:
|
|
974
|
+
return _2.has(c);
|
|
975
|
+
case M.notContainsErrors:
|
|
976
|
+
return !_2.has(c);
|
|
977
|
+
case M.containsText:
|
|
978
|
+
return c.indexOf(d) > -1;
|
|
979
|
+
case M.notContainsText:
|
|
980
|
+
return c.indexOf(d) === -1;
|
|
981
|
+
case M.endsWith:
|
|
982
|
+
return c.endsWith(d);
|
|
983
|
+
case M.equal:
|
|
984
|
+
return c === d;
|
|
985
|
+
case M.notEqual:
|
|
986
|
+
return c !== d;
|
|
999
987
|
default:
|
|
1000
988
|
return !1;
|
|
1001
989
|
}
|
|
1002
990
|
}
|
|
1003
|
-
case
|
|
1004
|
-
const
|
|
1005
|
-
if (
|
|
991
|
+
case E.timePeriod: {
|
|
992
|
+
const o = U(i);
|
|
993
|
+
if (I(o) || Number.isNaN(Number(o)) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
1006
994
|
return;
|
|
1007
|
-
const
|
|
1008
|
-
return
|
|
995
|
+
const h = _0(Number(o)), { start: c, end: d } = e.value;
|
|
996
|
+
return h >= c && h <= d;
|
|
1009
997
|
}
|
|
1010
|
-
case
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
998
|
+
case E.average: {
|
|
999
|
+
const o = i && i.v, h = Number(o);
|
|
1000
|
+
if (I(o) || Number.isNaN(h) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
1013
1001
|
return !1;
|
|
1014
|
-
const
|
|
1015
|
-
switch (
|
|
1016
|
-
case
|
|
1017
|
-
return
|
|
1018
|
-
case
|
|
1019
|
-
return
|
|
1020
|
-
case
|
|
1021
|
-
return
|
|
1022
|
-
case
|
|
1023
|
-
return
|
|
1024
|
-
case
|
|
1025
|
-
return
|
|
1026
|
-
case
|
|
1027
|
-
return !
|
|
1002
|
+
const c = a, d = e.value;
|
|
1003
|
+
switch (c.operator) {
|
|
1004
|
+
case w.greaterThan:
|
|
1005
|
+
return h > d;
|
|
1006
|
+
case w.greaterThanOrEqual:
|
|
1007
|
+
return h >= d;
|
|
1008
|
+
case w.lessThan:
|
|
1009
|
+
return h < d;
|
|
1010
|
+
case w.lessThanOrEqual:
|
|
1011
|
+
return h <= d;
|
|
1012
|
+
case w.equal:
|
|
1013
|
+
return a2(h, d);
|
|
1014
|
+
case w.notEqual:
|
|
1015
|
+
return !a2(h, d);
|
|
1028
1016
|
default:
|
|
1029
1017
|
return !1;
|
|
1030
1018
|
}
|
|
1031
1019
|
}
|
|
1032
|
-
case
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1020
|
+
case E.rank: {
|
|
1021
|
+
const o = U(i), h = Number(o);
|
|
1022
|
+
if (I(o) || Number.isNaN(h) || (i == null ? void 0 : i.t) !== _.NUMBER || !e)
|
|
1035
1023
|
return !1;
|
|
1036
|
-
const
|
|
1037
|
-
return
|
|
1024
|
+
const c = e.value;
|
|
1025
|
+
return a.isBottom ? h <= c : h >= c;
|
|
1038
1026
|
}
|
|
1039
|
-
case
|
|
1040
|
-
const
|
|
1041
|
-
return
|
|
1027
|
+
case E.uniqueValues: {
|
|
1028
|
+
const o = U(i);
|
|
1029
|
+
return I(o) || !e ? !1 : e.value.get(o) === 1;
|
|
1042
1030
|
}
|
|
1043
|
-
case
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1031
|
+
case E.duplicateValues: {
|
|
1032
|
+
const o = U(i);
|
|
1033
|
+
return I(o) || !e ? !1 : e.value.get(o) !== 1;
|
|
1046
1034
|
}
|
|
1047
|
-
case
|
|
1048
|
-
const
|
|
1049
|
-
return
|
|
1035
|
+
case E.formula: {
|
|
1036
|
+
const o = e == null ? void 0 : e.value;
|
|
1037
|
+
return o ? o.getValue(r, t) === !0 : !1;
|
|
1050
1038
|
}
|
|
1051
1039
|
}
|
|
1052
|
-
}
|
|
1040
|
+
})() ? a.style : {};
|
|
1053
1041
|
}
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
const value = Number(cell2.v);
|
|
1061
|
-
return Number.isNaN(value) ? null : value;
|
|
1042
|
+
}
|
|
1043
|
+
const N0 = (s, r, t) => {
|
|
1044
|
+
const e = t(s, r);
|
|
1045
|
+
if (e && e.t === _.NUMBER) {
|
|
1046
|
+
const n = Number(e.v);
|
|
1047
|
+
return Number.isNaN(n) ? null : n;
|
|
1062
1048
|
}
|
|
1063
1049
|
return null;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1050
|
+
};
|
|
1051
|
+
class T0 extends u2 {
|
|
1052
|
+
preComputing(r, t, e) {
|
|
1053
|
+
const n = e.rule.rule, i = e.worksheet, a = new T();
|
|
1054
|
+
!n.config.every((h) => h.value.type === x.num) && w2(e.rule.ranges, i.getMaxRows() - 1, i.getMaxColumns() - 1).forEach((c) => {
|
|
1055
|
+
N.foreach(c, (d, C) => {
|
|
1056
|
+
const D = e.getCellValue(d, C), f = D && D.v;
|
|
1057
|
+
if (!I(f) && (D == null ? void 0 : D.t) === _.NUMBER) {
|
|
1058
|
+
const F = Number(f);
|
|
1059
|
+
!Number.isNaN(F) && a.setValue(d, C, F);
|
|
1073
1060
|
}
|
|
1074
1061
|
});
|
|
1075
1062
|
});
|
|
1076
|
-
const
|
|
1077
|
-
if (!
|
|
1078
|
-
const
|
|
1079
|
-
operator:
|
|
1080
|
-
value: Number(
|
|
1081
|
-
})).reduce((
|
|
1082
|
-
const
|
|
1083
|
-
if (!
|
|
1084
|
-
|
|
1063
|
+
const l = n.config.map((h) => l2(h.value, a, { ...e, cfId: e.rule.cfId }));
|
|
1064
|
+
if (!l.some((h) => h.status !== b.SUCCESS)) {
|
|
1065
|
+
const h = l.map((c, d) => ({
|
|
1066
|
+
operator: n.config[d].operator,
|
|
1067
|
+
value: Number(c.result) || 0
|
|
1068
|
+
})).reduce((c, d, C, D) => {
|
|
1069
|
+
const f = n.config[C];
|
|
1070
|
+
if (!C || C === D.length - 1)
|
|
1071
|
+
c.push({ ...d, iconId: f.iconId, iconType: f.iconType });
|
|
1085
1072
|
else {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1073
|
+
const F = D[C - 1];
|
|
1074
|
+
Y(F, d.value) || c.push({ ...d, iconId: f.iconId, iconType: f.iconType });
|
|
1088
1075
|
}
|
|
1089
|
-
return
|
|
1076
|
+
return c;
|
|
1090
1077
|
}, []);
|
|
1091
|
-
this.setPreComputingCache(
|
|
1078
|
+
this.setPreComputingCache(h), this._preComputingStatus$.next(S.preComputingEnd);
|
|
1092
1079
|
return;
|
|
1093
1080
|
}
|
|
1094
|
-
this._preComputingStatus$.next(
|
|
1081
|
+
this._preComputingStatus$.next(S.preComputing);
|
|
1095
1082
|
}
|
|
1096
|
-
getCellResult(
|
|
1097
|
-
if (!
|
|
1083
|
+
getCellResult(r, t, e, n) {
|
|
1084
|
+
if (!e)
|
|
1098
1085
|
return null;
|
|
1099
|
-
const
|
|
1100
|
-
if (
|
|
1086
|
+
const i = N0(r, t, n.getCellValue);
|
|
1087
|
+
if (i === null)
|
|
1101
1088
|
return;
|
|
1102
|
-
const
|
|
1103
|
-
for (let
|
|
1104
|
-
const
|
|
1105
|
-
if (
|
|
1106
|
-
if (
|
|
1107
|
-
return { iconId, iconType, isShowValue };
|
|
1089
|
+
const a = n.rule.rule, u = a.isShowValue === void 0 ? !0 : !!a.isShowValue;
|
|
1090
|
+
for (let l = 0; l < e.length; l++) {
|
|
1091
|
+
const o = e[l], h = { ...o }, c = { ...o }, { iconId: d, iconType: C } = o;
|
|
1092
|
+
if (l === 0) {
|
|
1093
|
+
if (Y(o, i))
|
|
1094
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1108
1095
|
} else {
|
|
1109
|
-
if (
|
|
1110
|
-
return { iconId, iconType, isShowValue };
|
|
1096
|
+
if (l === e.length - 1)
|
|
1097
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1111
1098
|
{
|
|
1112
|
-
const
|
|
1113
|
-
if (
|
|
1114
|
-
return { iconId, iconType, isShowValue };
|
|
1099
|
+
const D = e[l - 1];
|
|
1100
|
+
if (c.operator = x0(D.operator), c.value = D.value, Y(h, i) && Y(c, i))
|
|
1101
|
+
return { iconId: d, iconType: C, isShowValue: u };
|
|
1115
1102
|
}
|
|
1116
1103
|
}
|
|
1117
1104
|
}
|
|
1118
1105
|
}
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
var _a2;
|
|
1129
|
-
let ConditionalFormattingViewModel = (_a2 = class extends Disposable {
|
|
1130
|
-
constructor(_injector, _conditionalFormattingRuleModel, _conditionalFormattingFormulaService, _univerInstanceService) {
|
|
1106
|
+
}
|
|
1107
|
+
var U0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, O0 = (s, r, t, e) => {
|
|
1108
|
+
for (var n = e > 1 ? void 0 : e ? V0(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
1109
|
+
(a = s[i]) && (n = (e ? a(r, t, n) : a(n)) || n);
|
|
1110
|
+
return e && n && U0(r, t, n), n;
|
|
1111
|
+
}, n2 = (s, r) => (t, e) => r(t, e, s);
|
|
1112
|
+
const C2 = 50 * 20 * 3 * 3;
|
|
1113
|
+
let j = class extends m2 {
|
|
1114
|
+
constructor(r, t, e, n) {
|
|
1131
1115
|
super();
|
|
1132
1116
|
// Map<unitID ,<sheetId ,ObjectMatrix>>
|
|
1133
|
-
|
|
1134
|
-
|
|
1117
|
+
m(this, "_calculateUnitManagers", /* @__PURE__ */ new Map());
|
|
1118
|
+
m(this, "_rTreeManager", new P2());
|
|
1135
1119
|
/**
|
|
1136
1120
|
* 1nd-level cache
|
|
1137
1121
|
*/
|
|
1138
|
-
|
|
1139
|
-
|
|
1122
|
+
m(this, "_cellCache", new b2(C2));
|
|
1123
|
+
m(this, "_markDirty$", new i2());
|
|
1140
1124
|
/**
|
|
1141
1125
|
* The rendering layer listens to this variable to determine whether a reRender is necessary.
|
|
1142
1126
|
* @memberof ConditionalFormattingViewModel
|
|
1143
1127
|
*/
|
|
1144
|
-
|
|
1128
|
+
m(this, "markDirty$", this._markDirty$.asObservable());
|
|
1145
1129
|
/**
|
|
1146
1130
|
`isNeedResetPreComputingCache` indicates whether it is necessary to remove the 2nd-level cache for each rule individually.
|
|
1147
1131
|
Generally, when the logic of a rule calculation is modified, the cache for that rule needs to be removed.
|
|
@@ -1151,189 +1135,189 @@ let ConditionalFormattingViewModel = (_a2 = class extends Disposable {
|
|
|
1151
1135
|
After the calculation is finished, it is only for marking as dirty, and the 2nd-level cache need to be cleared.
|
|
1152
1136
|
* @param {boolean} [isNeedResetPreComputingCache]
|
|
1153
1137
|
*/
|
|
1154
|
-
|
|
1155
|
-
if (this._cellCache.clear(),
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1138
|
+
m(this, "_markRuleDirtyAtOnce", (r, t, e, n = !0) => {
|
|
1139
|
+
if (this._cellCache.clear(), n) {
|
|
1140
|
+
const a = this._ensureCalculateUnitManager(r, t).get(e);
|
|
1141
|
+
a && a.resetPreComputingCache();
|
|
1158
1142
|
}
|
|
1159
1143
|
this._markDirty$.next({
|
|
1160
|
-
unitId,
|
|
1161
|
-
subUnitId,
|
|
1162
|
-
cfId
|
|
1144
|
+
unitId: r,
|
|
1145
|
+
subUnitId: t,
|
|
1146
|
+
cfId: e
|
|
1163
1147
|
});
|
|
1164
|
-
}
|
|
1148
|
+
});
|
|
1165
1149
|
/**
|
|
1166
1150
|
* For the same condition format being marked dirty multiple times at the same time,
|
|
1167
1151
|
* it will cause the style cache to be cleared, thereby causing the screen to flicker.
|
|
1168
1152
|
* Here,multiple dirties are merged into one..
|
|
1169
1153
|
*/
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
return this.disposeWithMe(
|
|
1173
|
-
const
|
|
1174
|
-
return
|
|
1175
|
-
const
|
|
1176
|
-
if (
|
|
1177
|
-
if (
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1154
|
+
m(this, "markRuleDirty", (() => {
|
|
1155
|
+
const r = new i2();
|
|
1156
|
+
return this.disposeWithMe(r.pipe(Y2(100), K2((t) => !!t.length), J2((t) => {
|
|
1157
|
+
const e = /* @__PURE__ */ new Set(), n = [];
|
|
1158
|
+
return t.forEach((i) => {
|
|
1159
|
+
const a = `${i.unitId}_${i.subUnitId}_${i.cfId}`;
|
|
1160
|
+
if (e.has(a)) {
|
|
1161
|
+
if (i.isNeedResetPreComputingCache) {
|
|
1162
|
+
const u = n.find((l) => l.cfId === i.cfId);
|
|
1163
|
+
u.isNeedResetPreComputingCache = !0;
|
|
1180
1164
|
}
|
|
1181
1165
|
return;
|
|
1182
1166
|
}
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
})).subscribe((
|
|
1186
|
-
|
|
1187
|
-
this._markRuleDirtyAtOnce(
|
|
1167
|
+
e.add(a), n.push({ ...i });
|
|
1168
|
+
}), n;
|
|
1169
|
+
})).subscribe((t) => {
|
|
1170
|
+
t.forEach((e) => {
|
|
1171
|
+
this._markRuleDirtyAtOnce(e.unitId, e.subUnitId, e.cfId, e.isNeedResetPreComputingCache);
|
|
1188
1172
|
});
|
|
1189
|
-
})), (
|
|
1190
|
-
|
|
1173
|
+
})), (t, e, n, i = !0) => {
|
|
1174
|
+
r.next({ unitId: t, subUnitId: e, cfId: n, isNeedResetPreComputingCache: i });
|
|
1191
1175
|
};
|
|
1192
1176
|
})());
|
|
1193
|
-
this._injector =
|
|
1177
|
+
this._injector = r, this._conditionalFormattingRuleModel = t, this._conditionalFormattingFormulaService = e, this._univerInstanceService = n, this._initRuleListener(), this._handleCustomFormulasSeparately(), this._initCFFormulaListener();
|
|
1194
1178
|
}
|
|
1195
1179
|
_initCFFormulaListener() {
|
|
1196
1180
|
this.disposeWithMe(
|
|
1197
|
-
this._conditionalFormattingFormulaService.result$.subscribe(({ unitId, subUnitId, cfId, isAllFinished }) => {
|
|
1198
|
-
|
|
1181
|
+
this._conditionalFormattingFormulaService.result$.subscribe(({ unitId: r, subUnitId: t, cfId: e, isAllFinished: n }) => {
|
|
1182
|
+
n && this._markRuleDirtyAtOnce(r, t, e, n);
|
|
1199
1183
|
})
|
|
1200
1184
|
);
|
|
1201
1185
|
}
|
|
1202
|
-
getCellCfs(
|
|
1203
|
-
const
|
|
1204
|
-
if (this._cellCache.has(
|
|
1205
|
-
return this._cellCache.get(
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1208
|
-
}
|
|
1209
|
-
_getCellCfs(
|
|
1210
|
-
var
|
|
1211
|
-
const
|
|
1212
|
-
return
|
|
1213
|
-
const
|
|
1214
|
-
return
|
|
1215
|
-
cfId:
|
|
1216
|
-
result:
|
|
1186
|
+
getCellCfs(r, t, e, n) {
|
|
1187
|
+
const i = this._createCacheKey(r, t, e, n);
|
|
1188
|
+
if (this._cellCache.has(i))
|
|
1189
|
+
return this._cellCache.get(i);
|
|
1190
|
+
const a = this._getCellCfs(r, t, e, n);
|
|
1191
|
+
return a.length && this._cellCache.set(i, a), a;
|
|
1192
|
+
}
|
|
1193
|
+
_getCellCfs(r, t, e, n) {
|
|
1194
|
+
var h;
|
|
1195
|
+
const i = (h = this._conditionalFormattingRuleModel.getSubunitRules(r, t)) != null ? h : [], a = this._ensureCalculateUnitManager(r, t), u = this._rTreeManager.bulkSearch([{ unitId: r, sheetId: t, range: { startColumn: n, endColumn: n, startRow: e, endRow: e } }]), l = i.filter((c) => u.has(c.cfId));
|
|
1196
|
+
return l.length ? l.map((c) => {
|
|
1197
|
+
const d = a.get(c.cfId);
|
|
1198
|
+
return d ? {
|
|
1199
|
+
cfId: c.cfId,
|
|
1200
|
+
result: d.getCell(e, n)
|
|
1217
1201
|
} : null;
|
|
1218
|
-
}).filter((
|
|
1202
|
+
}).filter((c) => !!c).map((c, d) => ({ ...c, priority: d })) : [];
|
|
1219
1203
|
}
|
|
1220
1204
|
_handleCustomFormulasSeparately() {
|
|
1221
1205
|
this.disposeWithMe(
|
|
1222
|
-
this._conditionalFormattingRuleModel.$ruleChange.subscribe((
|
|
1223
|
-
if (
|
|
1224
|
-
const { unitId, subUnitId } =
|
|
1225
|
-
|
|
1206
|
+
this._conditionalFormattingRuleModel.$ruleChange.subscribe((r) => {
|
|
1207
|
+
if (r.type === "set") {
|
|
1208
|
+
const { unitId: t, subUnitId: e } = r, n = r.oldRule;
|
|
1209
|
+
n.rule.type === y.highlightCell && n.rule.subType === E.formula && this._conditionalFormattingFormulaService.deleteCache(t, e, n.cfId);
|
|
1226
1210
|
}
|
|
1227
1211
|
})
|
|
1228
1212
|
);
|
|
1229
1213
|
}
|
|
1230
1214
|
_initRuleListener() {
|
|
1231
1215
|
this.disposeWithMe(
|
|
1232
|
-
this._conditionalFormattingRuleModel.$ruleChange.subscribe((
|
|
1233
|
-
const { unitId, subUnitId, rule } =
|
|
1234
|
-
switch (this.markRuleDirty(
|
|
1216
|
+
this._conditionalFormattingRuleModel.$ruleChange.subscribe((r) => {
|
|
1217
|
+
const { unitId: t, subUnitId: e, rule: n } = r, { cfId: i, ranges: a } = n, u = this._ensureCalculateUnitManager(t, e);
|
|
1218
|
+
switch (this.markRuleDirty(t, e, i), r.type) {
|
|
1235
1219
|
case "add": {
|
|
1236
|
-
this._rTreeManager.bulkInsert(
|
|
1237
|
-
const
|
|
1238
|
-
if (!
|
|
1220
|
+
this._rTreeManager.bulkInsert(a.map((o) => ({ unitId: t, sheetId: e, id: i, range: o })));
|
|
1221
|
+
const l = this._createRuleCalculateUnitInstance(t, e, n);
|
|
1222
|
+
if (!l)
|
|
1239
1223
|
return;
|
|
1240
|
-
|
|
1224
|
+
u.set(n.cfId, l);
|
|
1241
1225
|
break;
|
|
1242
1226
|
}
|
|
1243
1227
|
case "delete": {
|
|
1244
|
-
this._rTreeManager.bulkRemove(
|
|
1228
|
+
this._rTreeManager.bulkRemove(a.map((l) => ({ unitId: t, sheetId: e, id: i, range: l }))), u.delete(n.cfId);
|
|
1245
1229
|
break;
|
|
1246
1230
|
}
|
|
1247
1231
|
case "set": {
|
|
1248
|
-
const
|
|
1249
|
-
if (this._rTreeManager.bulkRemove(
|
|
1250
|
-
const
|
|
1251
|
-
if (!
|
|
1232
|
+
const l = r.oldRule;
|
|
1233
|
+
if (this._rTreeManager.bulkRemove(l.ranges.map((o) => ({ unitId: t, sheetId: e, id: l.cfId, range: o }))), this._rTreeManager.bulkInsert(a.map((o) => ({ unitId: t, sheetId: e, id: i, range: o }))), l.rule.type !== n.rule.type) {
|
|
1234
|
+
const o = this._createRuleCalculateUnitInstance(t, e, n);
|
|
1235
|
+
if (!o)
|
|
1252
1236
|
return;
|
|
1253
|
-
|
|
1237
|
+
u.delete(l.cfId), u.set(n.cfId, o);
|
|
1254
1238
|
} else {
|
|
1255
|
-
const
|
|
1256
|
-
if (!
|
|
1239
|
+
const o = u.get(l.cfId);
|
|
1240
|
+
if (!o)
|
|
1257
1241
|
return;
|
|
1258
|
-
|
|
1242
|
+
o.updateRule(n);
|
|
1259
1243
|
}
|
|
1260
1244
|
}
|
|
1261
1245
|
}
|
|
1262
1246
|
})
|
|
1263
1247
|
);
|
|
1264
1248
|
}
|
|
1265
|
-
_ensureCalculateUnitManager(
|
|
1266
|
-
let
|
|
1267
|
-
|
|
1268
|
-
let
|
|
1269
|
-
return
|
|
1249
|
+
_ensureCalculateUnitManager(r, t) {
|
|
1250
|
+
let e = this._calculateUnitManagers.get(r);
|
|
1251
|
+
e || (e = /* @__PURE__ */ new Map(), this._calculateUnitManagers.set(r, e));
|
|
1252
|
+
let n = e.get(t);
|
|
1253
|
+
return n || (n = /* @__PURE__ */ new Map(), e.set(t, n)), n;
|
|
1270
1254
|
}
|
|
1271
|
-
_createRuleCalculateUnitInstance(
|
|
1272
|
-
const
|
|
1273
|
-
if (!
|
|
1255
|
+
_createRuleCalculateUnitInstance(r, t, e) {
|
|
1256
|
+
const n = this._univerInstanceService.getUnit(r), i = n == null ? void 0 : n.getSheetBySheetId(t);
|
|
1257
|
+
if (!n || !i)
|
|
1274
1258
|
return;
|
|
1275
|
-
const
|
|
1276
|
-
workbook,
|
|
1277
|
-
worksheet,
|
|
1278
|
-
unitId,
|
|
1279
|
-
subUnitId,
|
|
1259
|
+
const a = {
|
|
1260
|
+
workbook: n,
|
|
1261
|
+
worksheet: i,
|
|
1262
|
+
unitId: r,
|
|
1263
|
+
subUnitId: t,
|
|
1280
1264
|
accessor: this._injector,
|
|
1281
|
-
rule,
|
|
1282
|
-
limit:
|
|
1283
|
-
getCellValue:
|
|
1265
|
+
rule: e,
|
|
1266
|
+
limit: C2,
|
|
1267
|
+
getCellValue: (u, l) => i.getCellRaw(u, l) || {}
|
|
1284
1268
|
};
|
|
1285
|
-
switch (
|
|
1286
|
-
case
|
|
1287
|
-
return new
|
|
1288
|
-
case
|
|
1289
|
-
return new
|
|
1290
|
-
case
|
|
1291
|
-
return new
|
|
1292
|
-
case
|
|
1293
|
-
return new
|
|
1269
|
+
switch (e.rule.type) {
|
|
1270
|
+
case y.colorScale:
|
|
1271
|
+
return new M0(a);
|
|
1272
|
+
case y.dataBar:
|
|
1273
|
+
return new B0(a);
|
|
1274
|
+
case y.highlightCell:
|
|
1275
|
+
return new k0(a);
|
|
1276
|
+
case y.iconSet:
|
|
1277
|
+
return new T0(a);
|
|
1294
1278
|
}
|
|
1295
1279
|
}
|
|
1296
|
-
_createCacheKey(
|
|
1297
|
-
return `${
|
|
1280
|
+
_createCacheKey(r, t, e, n) {
|
|
1281
|
+
return `${r}_${t}_${e}_${n}`;
|
|
1298
1282
|
}
|
|
1299
|
-
setCacheLength(
|
|
1300
|
-
this._cellCache.limit !==
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1283
|
+
setCacheLength(r = C2) {
|
|
1284
|
+
this._cellCache.limit !== r && (this._cellCache.limit = r, this._calculateUnitManagers.forEach((t) => {
|
|
1285
|
+
t.forEach((e) => {
|
|
1286
|
+
e.forEach((n) => {
|
|
1287
|
+
n.setCacheLength(r);
|
|
1304
1288
|
});
|
|
1305
1289
|
});
|
|
1306
1290
|
}));
|
|
1307
1291
|
}
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
],
|
|
1315
|
-
const feedback = { 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", 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", 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" }, star = { 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", 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", 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" }, progress = { 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", 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", 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", 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", 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" }, signal = { 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", 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", 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", 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", 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" }, feeling = { 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", 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", 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", 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", 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" }, arrow = JSON.parse('{"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","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","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","rightAndDown-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%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%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-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%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%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-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%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%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-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%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%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","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","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","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"}'), shape = { 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", 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", 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", "rhomboid-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%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "rhomboid-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%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-greed": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-pink": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-black": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A", "triangle-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%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%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", "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", "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", "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" }, feedback2 = { 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", 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", 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" }, flag = { "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", "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", "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" }, cell = { "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", "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", "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", "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", "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" }, ICON_MAP = {
|
|
1316
|
-
feedback,
|
|
1317
|
-
star,
|
|
1318
|
-
progress,
|
|
1319
|
-
signal,
|
|
1320
|
-
feeling,
|
|
1321
|
-
arrow,
|
|
1322
|
-
shape,
|
|
1323
|
-
feedback2,
|
|
1324
|
-
flag,
|
|
1325
|
-
cell
|
|
1326
|
-
},
|
|
1292
|
+
};
|
|
1293
|
+
j = O0([
|
|
1294
|
+
n2(0, A(F2)),
|
|
1295
|
+
n2(1, A(B)),
|
|
1296
|
+
n2(2, A(G)),
|
|
1297
|
+
n2(3, S2)
|
|
1298
|
+
], j);
|
|
1299
|
+
const $0 = { 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", 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", 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" }, P0 = { 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", 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", 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" }, W0 = { 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", 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", 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", 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", 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" }, Z0 = { 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", 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", 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", 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", 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" }, q0 = { 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", 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", 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", 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", 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" }, G0 = JSON.parse('{"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","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","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","rightAndDown-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%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%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-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%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%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-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%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%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-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%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%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","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","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","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"}'), j0 = { 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", 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", 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", "rhomboid-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%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "rhomboid-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%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-greed": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-pink": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A", "roundness-black": "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%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A", "triangle-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%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%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", "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", "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", "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" }, H0 = { 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", 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", 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" }, X0 = { "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", "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", "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" }, Y0 = { "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", "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", "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", "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", "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" }, g = {
|
|
1300
|
+
feedback: $0,
|
|
1301
|
+
star: P0,
|
|
1302
|
+
progress: W0,
|
|
1303
|
+
signal: Z0,
|
|
1304
|
+
feeling: q0,
|
|
1305
|
+
arrow: G0,
|
|
1306
|
+
shape: j0,
|
|
1307
|
+
feedback2: H0,
|
|
1308
|
+
flag: X0,
|
|
1309
|
+
cell: Y0
|
|
1310
|
+
}, K0 = [
|
|
1327
1311
|
{
|
|
1328
1312
|
title: "sheet.cf.iconSet.direction",
|
|
1329
1313
|
group: [
|
|
1330
|
-
{ name: "3Arrows", list: [
|
|
1331
|
-
{ name: "3ArrowsGray", list: [
|
|
1332
|
-
{ name: "4Arrows", list: [
|
|
1333
|
-
{ name: "4ArrowsGray", list: [
|
|
1334
|
-
{ name: "5Arrows", list: [
|
|
1335
|
-
{ name: "5ArrowsGray", list: [
|
|
1336
|
-
{ name: "3Triangles", list: [
|
|
1314
|
+
{ name: "3Arrows", list: [g.arrow["up-green"], g.arrow["right-gold"], g.arrow["down-red"]] },
|
|
1315
|
+
{ name: "3ArrowsGray", list: [g.arrow["up-gray"], g.arrow["right-gray"], g.arrow["down-gray"]] },
|
|
1316
|
+
{ name: "4Arrows", list: [g.arrow["up-green"], g.arrow["rightAndUp-gold"], g.arrow["rightAndDown-gold"], g.arrow["down-red"]] },
|
|
1317
|
+
{ name: "4ArrowsGray", list: [g.arrow["up-gray"], g.arrow["rightAndUp-gray"], g.arrow["rightAndDown-gray"], g.arrow["down-gray"]] },
|
|
1318
|
+
{ name: "5Arrows", list: [g.arrow["up-green"], g.arrow["rightAndUp-gold"], g.arrow["right-gold"], g.arrow["rightAndDown-gold"], g.arrow["down-red"]] },
|
|
1319
|
+
{ name: "5ArrowsGray", list: [g.arrow["up-gray"], g.arrow["rightAndUp-gray"], g.arrow["right-gray"], g.arrow["rightAndDown-gray"], g.arrow["down-gray"]] },
|
|
1320
|
+
{ name: "3Triangles", list: [g.shape.up, g.shape.cross, g.shape.down] }
|
|
1337
1321
|
]
|
|
1338
1322
|
},
|
|
1339
1323
|
{
|
|
@@ -1341,20 +1325,20 @@ const feedback = { mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
|
1341
1325
|
group: [
|
|
1342
1326
|
{
|
|
1343
1327
|
name: "3TrafficLights1",
|
|
1344
|
-
list: [
|
|
1328
|
+
list: [g.shape["roundness-greed"], g.shape["roundness-gold"], g.shape["roundness-red"]]
|
|
1345
1329
|
},
|
|
1346
1330
|
{
|
|
1347
1331
|
name: "3Signs",
|
|
1348
|
-
list: [
|
|
1332
|
+
list: [g.shape["roundness-greed"], g.shape["triangle-gold"], g.shape["rhomboid-red"]]
|
|
1349
1333
|
},
|
|
1350
|
-
{ name: "3TrafficLights2", list: [
|
|
1334
|
+
{ name: "3TrafficLights2", list: [g.shape["indicate-greed"], g.shape["indicate-gold"], g.shape["indicate-red"]] },
|
|
1351
1335
|
{
|
|
1352
1336
|
name: "4RedToBlack",
|
|
1353
|
-
list: [
|
|
1337
|
+
list: [g.shape["roundness-red"], g.shape["roundness-pink"], g.shape["roundness-gray"], g.shape["roundness-black"]]
|
|
1354
1338
|
},
|
|
1355
1339
|
{
|
|
1356
1340
|
name: "4TrafficLights",
|
|
1357
|
-
list: [
|
|
1341
|
+
list: [g.shape["roundness-greed"], g.shape["roundness-gold"], g.shape["roundness-red"], g.shape["roundness-black"]]
|
|
1358
1342
|
}
|
|
1359
1343
|
]
|
|
1360
1344
|
},
|
|
@@ -1363,15 +1347,15 @@ const feedback = { mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
|
1363
1347
|
group: [
|
|
1364
1348
|
{
|
|
1365
1349
|
name: "3Symbols",
|
|
1366
|
-
list: [
|
|
1350
|
+
list: [g.feedback.correct, g.feedback.warn, g.feedback.mistake]
|
|
1367
1351
|
},
|
|
1368
1352
|
{
|
|
1369
1353
|
name: "3Symbols2",
|
|
1370
|
-
list: [
|
|
1354
|
+
list: [g.feedback2.correct2, g.feedback2.warn2, g.feedback2.mistake2]
|
|
1371
1355
|
},
|
|
1372
1356
|
{
|
|
1373
1357
|
name: "3Flags",
|
|
1374
|
-
list: [
|
|
1358
|
+
list: [g.flag["flag-green"], g.flag["flag-gold"], g.flag["flag-red"]]
|
|
1375
1359
|
}
|
|
1376
1360
|
]
|
|
1377
1361
|
},
|
|
@@ -1380,225 +1364,225 @@ const feedback = { mistake: "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%
|
|
|
1380
1364
|
group: [
|
|
1381
1365
|
{
|
|
1382
1366
|
name: "4Rating",
|
|
1383
|
-
list: [
|
|
1367
|
+
list: [g.signal.signal25, g.signal.signal50, g.signal.signal75, g.signal.signal100]
|
|
1384
1368
|
},
|
|
1385
1369
|
{
|
|
1386
1370
|
name: "5Rating",
|
|
1387
|
-
list: [
|
|
1371
|
+
list: [g.signal.signal0, g.signal.signal25, g.signal.signal50, g.signal.signal75, g.signal.signal100]
|
|
1388
1372
|
},
|
|
1389
1373
|
{
|
|
1390
1374
|
name: "5Quarters",
|
|
1391
|
-
list: [
|
|
1375
|
+
list: [g.progress.progress100, g.progress.progress75, g.progress.progress50, g.progress.progress25, g.progress.progress0]
|
|
1392
1376
|
},
|
|
1393
1377
|
{
|
|
1394
1378
|
name: "_5Felling",
|
|
1395
|
-
list: [
|
|
1379
|
+
list: [g.feeling.guffaw, g.feeling.smile, g.feeling.noninductive, g.feeling.dissatisfied, g.feeling.impatient]
|
|
1396
1380
|
},
|
|
1397
1381
|
{
|
|
1398
1382
|
name: "5Boxes",
|
|
1399
|
-
list: [
|
|
1383
|
+
list: [g.cell["cell-100"], g.cell["cell-75"], g.cell["cell-50"], g.cell["cell-25"], g.cell["cell-0"]]
|
|
1400
1384
|
},
|
|
1401
1385
|
{
|
|
1402
1386
|
name: "3Stars",
|
|
1403
|
-
list: [
|
|
1387
|
+
list: [g.star.starFull, g.star.starIncomplete, g.star.starEmpty]
|
|
1404
1388
|
}
|
|
1405
1389
|
]
|
|
1406
1390
|
}
|
|
1407
|
-
],
|
|
1408
|
-
const { group } =
|
|
1409
|
-
for (const
|
|
1410
|
-
|
|
1411
|
-
return
|
|
1391
|
+
], o2 = K0.reduce((s, r) => {
|
|
1392
|
+
const { group: t } = r;
|
|
1393
|
+
for (const e of t)
|
|
1394
|
+
s[e.name] = e.list;
|
|
1395
|
+
return s;
|
|
1412
1396
|
}, {});
|
|
1413
|
-
for (const
|
|
1414
|
-
const
|
|
1415
|
-
Object.freeze(
|
|
1397
|
+
for (const s in o2) {
|
|
1398
|
+
const r = o2[s];
|
|
1399
|
+
Object.freeze(r);
|
|
1416
1400
|
}
|
|
1417
|
-
const
|
|
1418
|
-
type:
|
|
1401
|
+
const J0 = "EMPTY_ICON_TYPE", v2 = {
|
|
1402
|
+
type: J.MUTATION,
|
|
1419
1403
|
id: "sheet.mutation.move-conditional-rule",
|
|
1420
|
-
handler(
|
|
1421
|
-
if (!
|
|
1404
|
+
handler(s, r) {
|
|
1405
|
+
if (!r)
|
|
1422
1406
|
return !1;
|
|
1423
|
-
const { unitId, subUnitId, start, end } =
|
|
1424
|
-
return
|
|
1407
|
+
const { unitId: t, subUnitId: e, start: n, end: i } = r;
|
|
1408
|
+
return s.get(B).moveRulePriority(t, e, n, i), !0;
|
|
1425
1409
|
}
|
|
1426
|
-
},
|
|
1427
|
-
const { unitId, subUnitId } =
|
|
1428
|
-
if (!
|
|
1410
|
+
}, I1 = (s) => {
|
|
1411
|
+
const { unitId: r, subUnitId: t } = s, e = m0(s.start, s.end);
|
|
1412
|
+
if (!e)
|
|
1429
1413
|
return [];
|
|
1430
|
-
const [
|
|
1414
|
+
const [n, i] = e;
|
|
1431
1415
|
return [
|
|
1432
1416
|
{
|
|
1433
|
-
id:
|
|
1434
|
-
params: { unitId, subUnitId, start, end }
|
|
1417
|
+
id: v2.id,
|
|
1418
|
+
params: { unitId: r, subUnitId: t, start: n, end: i }
|
|
1435
1419
|
}
|
|
1436
1420
|
];
|
|
1437
|
-
},
|
|
1438
|
-
const
|
|
1439
|
-
if (
|
|
1440
|
-
const
|
|
1441
|
-
id:
|
|
1442
|
-
params: { unitId, subUnitId, rule:
|
|
1421
|
+
}, z0 = (s, r) => {
|
|
1422
|
+
const t = s.get(B), { unitId: e, subUnitId: n, cfId: i } = r, a = [...t.getSubunitRules(e, n) || []], u = a.findIndex((o) => o.cfId === i), l = a[u - 1];
|
|
1423
|
+
if (u > -1) {
|
|
1424
|
+
const o = a[u], h = [{
|
|
1425
|
+
id: T2.id,
|
|
1426
|
+
params: { unitId: e, subUnitId: n, rule: H.deepClone(o) }
|
|
1443
1427
|
}];
|
|
1444
|
-
if (
|
|
1445
|
-
const
|
|
1446
|
-
if (
|
|
1447
|
-
const
|
|
1448
|
-
if (!
|
|
1449
|
-
return
|
|
1450
|
-
const [
|
|
1451
|
-
unitId,
|
|
1452
|
-
subUnitId,
|
|
1453
|
-
start,
|
|
1454
|
-
end
|
|
1428
|
+
if (a.splice(u, 1), u !== 0) {
|
|
1429
|
+
const c = a[0];
|
|
1430
|
+
if (c) {
|
|
1431
|
+
const d = f0({ id: c.cfId, type: "before" }, { id: l.cfId, type: "after" }, a, (F) => F.cfId);
|
|
1432
|
+
if (!d)
|
|
1433
|
+
return h;
|
|
1434
|
+
const [C, D] = d, f = {
|
|
1435
|
+
unitId: e,
|
|
1436
|
+
subUnitId: n,
|
|
1437
|
+
start: C,
|
|
1438
|
+
end: D
|
|
1455
1439
|
};
|
|
1456
|
-
|
|
1440
|
+
h.push({ id: v2.id, params: f });
|
|
1457
1441
|
}
|
|
1458
1442
|
}
|
|
1459
|
-
return
|
|
1443
|
+
return h;
|
|
1460
1444
|
}
|
|
1461
1445
|
return [];
|
|
1462
|
-
},
|
|
1463
|
-
type:
|
|
1446
|
+
}, E2 = {
|
|
1447
|
+
type: J.MUTATION,
|
|
1464
1448
|
id: "sheet.mutation.delete-conditional-rule",
|
|
1465
|
-
handler(
|
|
1466
|
-
if (!
|
|
1449
|
+
handler(s, r) {
|
|
1450
|
+
if (!r)
|
|
1467
1451
|
return !1;
|
|
1468
|
-
const { unitId, subUnitId, cfId } =
|
|
1469
|
-
return
|
|
1452
|
+
const { unitId: t, subUnitId: e, cfId: n } = r;
|
|
1453
|
+
return s.get(B).deleteRule(t, e, n), !0;
|
|
1470
1454
|
}
|
|
1471
|
-
},
|
|
1472
|
-
type:
|
|
1455
|
+
}, b1 = (s, r) => ({ id: E2.id, params: { unitId: r.unitId, subUnitId: r.subUnitId, cfId: r.rule.cfId } }), T2 = {
|
|
1456
|
+
type: J.MUTATION,
|
|
1473
1457
|
id: "sheet.mutation.add-conditional-rule",
|
|
1474
|
-
handler(
|
|
1475
|
-
if (!
|
|
1458
|
+
handler(s, r) {
|
|
1459
|
+
if (!r)
|
|
1476
1460
|
return !1;
|
|
1477
|
-
const { unitId, subUnitId, rule } =
|
|
1478
|
-
return
|
|
1461
|
+
const { unitId: t, subUnitId: e, rule: n } = r;
|
|
1462
|
+
return s.get(B).addRule(t, e, n), !0;
|
|
1479
1463
|
}
|
|
1480
|
-
},
|
|
1481
|
-
type:
|
|
1464
|
+
}, U2 = {
|
|
1465
|
+
type: J.MUTATION,
|
|
1482
1466
|
id: "sheet.mutation.set-conditional-rule",
|
|
1483
|
-
handler(
|
|
1484
|
-
if (!
|
|
1467
|
+
handler(s, r) {
|
|
1468
|
+
if (!r)
|
|
1485
1469
|
return !1;
|
|
1486
|
-
const { unitId, subUnitId, rule } =
|
|
1487
|
-
return
|
|
1470
|
+
const { unitId: t, subUnitId: e, rule: n } = r, i = r.cfId || r.rule.cfId;
|
|
1471
|
+
return s.get(B).setRule(t, e, n, i), !0;
|
|
1488
1472
|
}
|
|
1489
|
-
},
|
|
1490
|
-
const
|
|
1491
|
-
return
|
|
1473
|
+
}, L1 = (s, r) => {
|
|
1474
|
+
const t = s.get(B), { unitId: e, subUnitId: n } = r, i = r.cfId || r.rule.cfId, a = t.getRule(e, n, i);
|
|
1475
|
+
return a ? [
|
|
1492
1476
|
{
|
|
1493
|
-
id:
|
|
1477
|
+
id: U2.id,
|
|
1494
1478
|
params: {
|
|
1495
|
-
unitId,
|
|
1496
|
-
subUnitId,
|
|
1497
|
-
cfId,
|
|
1498
|
-
rule:
|
|
1479
|
+
unitId: e,
|
|
1480
|
+
subUnitId: n,
|
|
1481
|
+
cfId: i,
|
|
1482
|
+
rule: H.deepClone(a)
|
|
1499
1483
|
}
|
|
1500
1484
|
}
|
|
1501
1485
|
] : [];
|
|
1502
|
-
},
|
|
1503
|
-
var
|
|
1504
|
-
for (var
|
|
1505
|
-
(
|
|
1506
|
-
return
|
|
1507
|
-
},
|
|
1508
|
-
let
|
|
1509
|
-
constructor(
|
|
1510
|
-
super(), this._conditionalFormattingRuleModel =
|
|
1486
|
+
}, Q0 = "ssheets-conditional-formatting.config", M2 = {};
|
|
1487
|
+
var e1 = Object.defineProperty, t1 = Object.getOwnPropertyDescriptor, n1 = (s, r, t, e) => {
|
|
1488
|
+
for (var n = e > 1 ? void 0 : e ? t1(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
1489
|
+
(a = s[i]) && (n = (e ? a(r, t, n) : a(n)) || n);
|
|
1490
|
+
return e && n && e1(r, t, n), n;
|
|
1491
|
+
}, q = (s, r) => (t, e) => r(t, e, s);
|
|
1492
|
+
let K = class extends m2 {
|
|
1493
|
+
constructor(s, r, t, e, n, i) {
|
|
1494
|
+
super(), this._conditionalFormattingRuleModel = s, this._injector = r, this._univerInstanceService = t, this._resourceManagerService = e, this._sheetInterceptorService = n, this._commandService = i, this._initCellChange(), this._initSnapshot(), this._initSheetChange();
|
|
1511
1495
|
}
|
|
1512
1496
|
get _conditionalFormattingViewModelV2() {
|
|
1513
|
-
return this._injector.get(
|
|
1514
|
-
}
|
|
1515
|
-
composeStyle(
|
|
1516
|
-
const
|
|
1517
|
-
if (
|
|
1518
|
-
const
|
|
1519
|
-
return
|
|
1520
|
-
var
|
|
1521
|
-
const
|
|
1522
|
-
if (
|
|
1523
|
-
|
|
1524
|
-
else if (
|
|
1525
|
-
const
|
|
1526
|
-
|
|
1527
|
-
} else if (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
} else if (
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1497
|
+
return this._injector.get(j);
|
|
1498
|
+
}
|
|
1499
|
+
composeStyle(s, r, t, e) {
|
|
1500
|
+
const n = this._conditionalFormattingViewModelV2.getCellCfs(s, r, t, e);
|
|
1501
|
+
if (n && (n != null && n.length)) {
|
|
1502
|
+
const i = n.map((l) => this._conditionalFormattingRuleModel.getRule(s, r, l.cfId)).filter((l) => !!l).reverse(), a = i.findIndex((l) => l == null ? void 0 : l.stopIfTrue);
|
|
1503
|
+
return a > -1 && i.splice(a + 1), i.reduce((l, o) => {
|
|
1504
|
+
var d;
|
|
1505
|
+
const h = o.rule.type, c = n.find((C) => C.cfId === o.cfId);
|
|
1506
|
+
if (h === y.highlightCell)
|
|
1507
|
+
c.result && H.deepMerge(l, { style: c.result });
|
|
1508
|
+
else if (h === y.colorScale) {
|
|
1509
|
+
const C = c == null ? void 0 : c.result;
|
|
1510
|
+
C && typeof C == "string" && (l.style = { ...(d = l.style) != null ? d : {}, bg: { rgb: C } });
|
|
1511
|
+
} else if (h === y.dataBar) {
|
|
1512
|
+
const C = c == null ? void 0 : c.result;
|
|
1513
|
+
C && (l.dataBar = C, l.isShowValue = C.isShowValue);
|
|
1514
|
+
} else if (h === y.iconSet) {
|
|
1515
|
+
const C = c == null ? void 0 : c.result;
|
|
1516
|
+
C && (l.iconSet = C, l.isShowValue = C.isShowValue);
|
|
1533
1517
|
}
|
|
1534
|
-
return
|
|
1518
|
+
return l;
|
|
1535
1519
|
}, {});
|
|
1536
1520
|
}
|
|
1537
1521
|
return null;
|
|
1538
1522
|
}
|
|
1539
1523
|
_initSnapshot() {
|
|
1540
|
-
const
|
|
1541
|
-
const
|
|
1542
|
-
return
|
|
1543
|
-
|
|
1544
|
-
}), JSON.stringify(
|
|
1545
|
-
},
|
|
1546
|
-
if (!
|
|
1524
|
+
const s = (t) => {
|
|
1525
|
+
const e = this._conditionalFormattingRuleModel.getUnitRules(t), n = {};
|
|
1526
|
+
return e ? (e.forEach((i, a) => {
|
|
1527
|
+
n[a] = i;
|
|
1528
|
+
}), JSON.stringify(n)) : "";
|
|
1529
|
+
}, r = (t) => {
|
|
1530
|
+
if (!t)
|
|
1547
1531
|
return {};
|
|
1548
1532
|
try {
|
|
1549
|
-
return JSON.parse(
|
|
1533
|
+
return JSON.parse(t);
|
|
1550
1534
|
} catch {
|
|
1551
1535
|
return {};
|
|
1552
1536
|
}
|
|
1553
|
-
}
|
|
1537
|
+
};
|
|
1554
1538
|
this.disposeWithMe(
|
|
1555
1539
|
this._resourceManagerService.registerPluginResource({
|
|
1556
|
-
pluginName:
|
|
1557
|
-
businesses: [
|
|
1558
|
-
toJson:
|
|
1559
|
-
parseJson:
|
|
1560
|
-
onUnLoad:
|
|
1561
|
-
this._conditionalFormattingRuleModel.deleteUnitId(
|
|
1562
|
-
},
|
|
1563
|
-
onLoad:
|
|
1564
|
-
Object.keys(
|
|
1565
|
-
[...
|
|
1566
|
-
this._conditionalFormattingRuleModel.addRule(
|
|
1540
|
+
pluginName: N2,
|
|
1541
|
+
businesses: [c2.UNIVER_SHEET],
|
|
1542
|
+
toJson: (t) => s(t),
|
|
1543
|
+
parseJson: (t) => r(t),
|
|
1544
|
+
onUnLoad: (t) => {
|
|
1545
|
+
this._conditionalFormattingRuleModel.deleteUnitId(t);
|
|
1546
|
+
},
|
|
1547
|
+
onLoad: (t, e) => {
|
|
1548
|
+
Object.keys(e).forEach((n) => {
|
|
1549
|
+
[...e[n]].reverse().forEach((a) => {
|
|
1550
|
+
this._conditionalFormattingRuleModel.addRule(t, n, a);
|
|
1567
1551
|
});
|
|
1568
1552
|
});
|
|
1569
|
-
}
|
|
1553
|
+
}
|
|
1570
1554
|
})
|
|
1571
1555
|
);
|
|
1572
1556
|
}
|
|
1573
1557
|
_initSheetChange() {
|
|
1574
1558
|
this.disposeWithMe(
|
|
1575
1559
|
this._sheetInterceptorService.interceptCommand({
|
|
1576
|
-
getMutations:
|
|
1577
|
-
if (
|
|
1578
|
-
const
|
|
1579
|
-
if (!
|
|
1560
|
+
getMutations: (s) => {
|
|
1561
|
+
if (s.id === i0.id) {
|
|
1562
|
+
const r = s.params, t = r.unitId || r1(this._univerInstanceService), e = r.subUnitId || s1(this._univerInstanceService);
|
|
1563
|
+
if (!e)
|
|
1580
1564
|
return { redos: [], undos: [] };
|
|
1581
|
-
const
|
|
1582
|
-
if (!
|
|
1565
|
+
const n = this._conditionalFormattingRuleModel.getSubunitRules(t, e);
|
|
1566
|
+
if (!n)
|
|
1583
1567
|
return { redos: [], undos: [] };
|
|
1584
|
-
const
|
|
1585
|
-
return
|
|
1586
|
-
const
|
|
1587
|
-
unitId,
|
|
1588
|
-
subUnitId,
|
|
1589
|
-
cfId:
|
|
1568
|
+
const i = [], a = [];
|
|
1569
|
+
return n.forEach((u) => {
|
|
1570
|
+
const l = {
|
|
1571
|
+
unitId: t,
|
|
1572
|
+
subUnitId: e,
|
|
1573
|
+
cfId: u.cfId
|
|
1590
1574
|
};
|
|
1591
|
-
|
|
1592
|
-
id:
|
|
1593
|
-
params:
|
|
1594
|
-
}),
|
|
1575
|
+
i.push({
|
|
1576
|
+
id: E2.id,
|
|
1577
|
+
params: l
|
|
1578
|
+
}), a.push(...z0(this._injector, l));
|
|
1595
1579
|
}), {
|
|
1596
|
-
redos,
|
|
1597
|
-
undos
|
|
1580
|
+
redos: i,
|
|
1581
|
+
undos: a
|
|
1598
1582
|
};
|
|
1599
1583
|
}
|
|
1600
1584
|
return { redos: [], undos: [] };
|
|
1601
|
-
}
|
|
1585
|
+
}
|
|
1602
1586
|
})
|
|
1603
1587
|
);
|
|
1604
1588
|
}
|
|
@@ -1606,80 +1590,80 @@ let ConditionalFormattingService = (_a3 = class extends Disposable {
|
|
|
1606
1590
|
_initCellChange() {
|
|
1607
1591
|
this.disposeWithMe(
|
|
1608
1592
|
// eslint-disable-next-line max-lines-per-function
|
|
1609
|
-
this._commandService.onCommandExecuted((
|
|
1610
|
-
const
|
|
1611
|
-
const
|
|
1612
|
-
return
|
|
1613
|
-
const
|
|
1614
|
-
|
|
1615
|
-
}), [...
|
|
1616
|
-
}
|
|
1617
|
-
switch (
|
|
1618
|
-
case
|
|
1619
|
-
const
|
|
1620
|
-
new
|
|
1621
|
-
|
|
1622
|
-
}),
|
|
1623
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1593
|
+
this._commandService.onCommandExecuted((s) => {
|
|
1594
|
+
const r = (t, e, n) => {
|
|
1595
|
+
const i = /* @__PURE__ */ new Set();
|
|
1596
|
+
return n.forEach(([a, u]) => {
|
|
1597
|
+
const l = this._conditionalFormattingViewModelV2.getCellCfs(t, e, a, u);
|
|
1598
|
+
l == null || l.forEach((o) => i.add(o.cfId));
|
|
1599
|
+
}), [...i].map((a) => this._conditionalFormattingRuleModel.getRule(t, e, a)).filter((a) => !!a);
|
|
1600
|
+
};
|
|
1601
|
+
switch (s.id) {
|
|
1602
|
+
case C0.id: {
|
|
1603
|
+
const t = s.params, { subUnitId: e, unitId: n, cellValue: i } = t, a = [];
|
|
1604
|
+
new T(i).forValue((l, o, h) => {
|
|
1605
|
+
h && Object.keys(h).some((d) => ["p", "v"].includes(d)) && a.push([l, o]);
|
|
1606
|
+
}), r(n, e, a).forEach((l) => {
|
|
1607
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(n, e, l.cfId);
|
|
1624
1608
|
});
|
|
1625
1609
|
break;
|
|
1626
1610
|
}
|
|
1627
|
-
case
|
|
1628
|
-
case
|
|
1629
|
-
const { range, unitId, subUnitId } =
|
|
1630
|
-
|
|
1631
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1611
|
+
case g0.id:
|
|
1612
|
+
case d0.id: {
|
|
1613
|
+
const { range: t, unitId: e, subUnitId: n } = s.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, n), a = { ...t, endColumn: Number.MAX_SAFE_INTEGER };
|
|
1614
|
+
i && i.filter((l) => l.ranges.some((o) => X.intersects(o, a))).forEach((l) => {
|
|
1615
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, n, l.cfId);
|
|
1632
1616
|
});
|
|
1633
1617
|
break;
|
|
1634
1618
|
}
|
|
1635
|
-
case
|
|
1636
|
-
case
|
|
1637
|
-
const { range, unitId, subUnitId } =
|
|
1638
|
-
|
|
1639
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1619
|
+
case h0.id:
|
|
1620
|
+
case u0.id: {
|
|
1621
|
+
const { range: t, unitId: e, subUnitId: n } = s.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, n), a = { ...t, endRow: Number.MAX_SAFE_INTEGER };
|
|
1622
|
+
i && i.filter((l) => l.ranges.some((o) => X.intersects(o, a))).forEach((l) => {
|
|
1623
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, n, l.cfId);
|
|
1640
1624
|
});
|
|
1641
1625
|
break;
|
|
1642
1626
|
}
|
|
1643
|
-
case
|
|
1644
|
-
const { sourceRange, targetRange, unitId, subUnitId } =
|
|
1645
|
-
startRow: Math.min(
|
|
1627
|
+
case c0.id: {
|
|
1628
|
+
const { sourceRange: t, targetRange: e, unitId: n, subUnitId: i } = s.params, a = this._conditionalFormattingRuleModel.getSubunitRules(n, i), u = {
|
|
1629
|
+
startRow: Math.min(t.startRow, e.startRow),
|
|
1646
1630
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1647
1631
|
startColumn: 0,
|
|
1648
1632
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1649
1633
|
};
|
|
1650
|
-
|
|
1651
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1634
|
+
a && a.filter((o) => o.ranges.some((h) => X.intersects(h, u))).forEach((o) => {
|
|
1635
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(n, i, o.cfId);
|
|
1652
1636
|
});
|
|
1653
1637
|
break;
|
|
1654
1638
|
}
|
|
1655
|
-
case
|
|
1656
|
-
const { sourceRange, targetRange, unitId, subUnitId } =
|
|
1639
|
+
case o0.id: {
|
|
1640
|
+
const { sourceRange: t, targetRange: e, unitId: n, subUnitId: i } = s.params, a = this._conditionalFormattingRuleModel.getSubunitRules(n, i), u = {
|
|
1657
1641
|
startRow: 0,
|
|
1658
1642
|
endRow: Number.MAX_SAFE_INTEGER,
|
|
1659
|
-
startColumn: Math.min(
|
|
1643
|
+
startColumn: Math.min(t.startColumn, e.startColumn),
|
|
1660
1644
|
endColumn: Number.MAX_SAFE_INTEGER
|
|
1661
1645
|
};
|
|
1662
|
-
|
|
1663
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1646
|
+
a && a.filter((o) => o.ranges.some((h) => X.intersects(h, u))).forEach((o) => {
|
|
1647
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(n, i, o.cfId);
|
|
1664
1648
|
});
|
|
1665
1649
|
break;
|
|
1666
1650
|
}
|
|
1667
|
-
case
|
|
1668
|
-
const { unitId, to, from } =
|
|
1669
|
-
const
|
|
1670
|
-
new
|
|
1671
|
-
|
|
1672
|
-
}),
|
|
1673
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1651
|
+
case l0.id: {
|
|
1652
|
+
const { unitId: t, to: e, from: n } = s.params, i = (a) => {
|
|
1653
|
+
const u = [];
|
|
1654
|
+
new T(a.value).forValue((o, h) => {
|
|
1655
|
+
u.push([o, h]);
|
|
1656
|
+
}), r(t, a.subUnitId, u).forEach((o) => {
|
|
1657
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(t, a.subUnitId, o.cfId);
|
|
1674
1658
|
});
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1659
|
+
};
|
|
1660
|
+
i(e), i(n);
|
|
1677
1661
|
break;
|
|
1678
1662
|
}
|
|
1679
|
-
case
|
|
1680
|
-
const { range, unitId, subUnitId } =
|
|
1681
|
-
|
|
1682
|
-
this._conditionalFormattingViewModelV2.markRuleDirty(
|
|
1663
|
+
case a0.id: {
|
|
1664
|
+
const { range: t, unitId: e, subUnitId: n } = s.params, i = this._conditionalFormattingRuleModel.getSubunitRules(e, n);
|
|
1665
|
+
i && i.filter((u) => u.ranges.some((l) => X.intersects(l, t))).forEach((u) => {
|
|
1666
|
+
this._conditionalFormattingViewModelV2.markRuleDirty(e, n, u.cfId);
|
|
1683
1667
|
});
|
|
1684
1668
|
break;
|
|
1685
1669
|
}
|
|
@@ -1687,183 +1671,181 @@ let ConditionalFormattingService = (_a3 = class extends Disposable {
|
|
|
1687
1671
|
})
|
|
1688
1672
|
);
|
|
1689
1673
|
}
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
],
|
|
1699
|
-
const
|
|
1700
|
-
var
|
|
1701
|
-
return (
|
|
1702
|
-
}
|
|
1703
|
-
var
|
|
1704
|
-
for (var
|
|
1705
|
-
(
|
|
1706
|
-
return
|
|
1707
|
-
},
|
|
1708
|
-
let
|
|
1709
|
-
constructor(
|
|
1710
|
-
super(), this._config =
|
|
1711
|
-
const { ...
|
|
1674
|
+
};
|
|
1675
|
+
K = n1([
|
|
1676
|
+
q(0, A(B)),
|
|
1677
|
+
q(1, A(F2)),
|
|
1678
|
+
q(2, A(S2)),
|
|
1679
|
+
q(3, A(W2)),
|
|
1680
|
+
q(4, A(s0)),
|
|
1681
|
+
q(5, A(f2))
|
|
1682
|
+
], K);
|
|
1683
|
+
const r1 = (s) => s.getCurrentUnitForType(c2.UNIVER_SHEET).getUnitId(), s1 = (s) => {
|
|
1684
|
+
var r;
|
|
1685
|
+
return (r = s.getCurrentUnitForType(c2.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : r.getSheetId();
|
|
1686
|
+
};
|
|
1687
|
+
var i1 = Object.defineProperty, a1 = Object.getOwnPropertyDescriptor, l1 = (s, r, t, e) => {
|
|
1688
|
+
for (var n = e > 1 ? void 0 : e ? a1(r, t) : r, i = s.length - 1, a; i >= 0; i--)
|
|
1689
|
+
(a = s[i]) && (n = (e ? a(r, t, n) : a(n)) || n);
|
|
1690
|
+
return e && n && i1(r, t, n), n;
|
|
1691
|
+
}, D2 = (s, r) => (t, e) => r(t, e, s), r2;
|
|
1692
|
+
let R2 = (r2 = class extends Z2 {
|
|
1693
|
+
constructor(s = M2, r, t, e) {
|
|
1694
|
+
super(), this._config = s, this._injector = r, this._commandService = t, this._configService = e;
|
|
1695
|
+
const { ...n } = q2(
|
|
1712
1696
|
{},
|
|
1713
|
-
|
|
1697
|
+
M2,
|
|
1714
1698
|
this._config
|
|
1715
1699
|
);
|
|
1716
|
-
this._configService.setConfig(
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
].forEach((
|
|
1722
|
-
this._injector.add(
|
|
1700
|
+
this._configService.setConfig(Q0, n), [
|
|
1701
|
+
[K],
|
|
1702
|
+
[G],
|
|
1703
|
+
[B],
|
|
1704
|
+
[j]
|
|
1705
|
+
].forEach((i) => {
|
|
1706
|
+
this._injector.add(i);
|
|
1723
1707
|
}), [
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
].forEach((
|
|
1730
|
-
this._commandService.registerCommand(
|
|
1708
|
+
T2,
|
|
1709
|
+
E2,
|
|
1710
|
+
U2,
|
|
1711
|
+
v2,
|
|
1712
|
+
s2
|
|
1713
|
+
].forEach((i) => {
|
|
1714
|
+
this._commandService.registerCommand(i);
|
|
1731
1715
|
});
|
|
1732
1716
|
}
|
|
1733
1717
|
onStarting() {
|
|
1734
|
-
this._injector.get(
|
|
1735
|
-
}
|
|
1736
|
-
},
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
],
|
|
1742
|
-
const
|
|
1718
|
+
this._injector.get(K), G2(this._injector, [[K], [j]]);
|
|
1719
|
+
}
|
|
1720
|
+
}, m(r2, "pluginName", N2), m(r2, "type", c2.UNIVER_SHEET), r2);
|
|
1721
|
+
R2 = l1([
|
|
1722
|
+
D2(1, A(F2)),
|
|
1723
|
+
D2(2, A(f2)),
|
|
1724
|
+
D2(3, j2)
|
|
1725
|
+
], R2);
|
|
1726
|
+
const o1 = "sheet-conditional-rule-icon", c1 = 35, u1 = 15, h1 = 2;
|
|
1727
|
+
class d1 extends k2 {
|
|
1743
1728
|
constructor() {
|
|
1744
1729
|
super();
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1730
|
+
m(this, "_paddingRightAndLeft", h1);
|
|
1731
|
+
m(this, "_width", u1);
|
|
1732
|
+
m(this, "_imageMap", /* @__PURE__ */ new Map());
|
|
1733
|
+
m(this, "uKey", o1);
|
|
1734
|
+
m(this, "Z_INDEX", c1);
|
|
1735
|
+
m(this, "_radius", 1);
|
|
1751
1736
|
this._init();
|
|
1752
1737
|
}
|
|
1753
|
-
draw(
|
|
1754
|
-
const { worksheet } =
|
|
1755
|
-
if (!
|
|
1738
|
+
draw(t, e, n, i) {
|
|
1739
|
+
const { worksheet: a } = n;
|
|
1740
|
+
if (!a)
|
|
1756
1741
|
return !1;
|
|
1757
|
-
|
|
1758
|
-
if (!
|
|
1742
|
+
t.save(), N.foreach(n.rowColumnSegment, (u, l) => {
|
|
1743
|
+
if (!a.getRowVisible(u) || !a.getColVisible(l))
|
|
1759
1744
|
return;
|
|
1760
|
-
const
|
|
1761
|
-
if (
|
|
1762
|
-
const { iconType, iconId } =
|
|
1763
|
-
if (
|
|
1745
|
+
const o = a.getCell(u, l);
|
|
1746
|
+
if (o != null && o.iconSet) {
|
|
1747
|
+
const { iconType: h, iconId: c } = o.iconSet;
|
|
1748
|
+
if (h === J0)
|
|
1764
1749
|
return;
|
|
1765
|
-
const
|
|
1766
|
-
if (!
|
|
1750
|
+
const d = this._imageMap.get(this._createKey(h, c));
|
|
1751
|
+
if (!d)
|
|
1767
1752
|
return;
|
|
1768
|
-
const
|
|
1769
|
-
let { isMerged, isMergedMainCell, mergeInfo, startY, endY, startX, endX } =
|
|
1770
|
-
if (
|
|
1753
|
+
const C = n.getCellWithCoordByIndex(u, l, !1);
|
|
1754
|
+
let { isMerged: D, isMergedMainCell: f, mergeInfo: F, startY: p, endY: L, startX: k, endX: V } = C;
|
|
1755
|
+
if (D || (f && (p = F.startY, L = F.endY, k = F.startX, V = F.endX), !this.isRenderDiffRangesByCell(F, i)))
|
|
1771
1756
|
return;
|
|
1772
|
-
const
|
|
1773
|
-
if (this._width >
|
|
1757
|
+
const z = V - k, Q = L - p;
|
|
1758
|
+
if (this._width > Q || this._width > z + this._paddingRightAndLeft * 2)
|
|
1774
1759
|
return;
|
|
1775
|
-
const
|
|
1776
|
-
|
|
1760
|
+
const h2 = (Q - this._width) / 2 + p;
|
|
1761
|
+
t.drawImage(d, k + this._paddingRightAndLeft, h2, this._width, this._width);
|
|
1777
1762
|
}
|
|
1778
|
-
}),
|
|
1763
|
+
}), t.restore();
|
|
1779
1764
|
}
|
|
1780
1765
|
_init() {
|
|
1781
|
-
for (const
|
|
1782
|
-
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1785
|
-
this._imageMap.set(
|
|
1786
|
-
},
|
|
1766
|
+
for (const t in o2)
|
|
1767
|
+
o2[t].forEach((n, i) => {
|
|
1768
|
+
const a = this._createKey(t, String(i)), u = new Image();
|
|
1769
|
+
u.onload = () => {
|
|
1770
|
+
this._imageMap.set(a, u);
|
|
1771
|
+
}, u.src = n;
|
|
1787
1772
|
});
|
|
1788
1773
|
}
|
|
1789
|
-
_createKey(
|
|
1790
|
-
return `${
|
|
1774
|
+
_createKey(t, e) {
|
|
1775
|
+
return `${t}_${e}`;
|
|
1791
1776
|
}
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
const value = removeUndefinedAttr(obj[key]);
|
|
1803
|
-
value !== void 0 && (result[key] = value);
|
|
1777
|
+
}
|
|
1778
|
+
B2.add(d1);
|
|
1779
|
+
function g1(s) {
|
|
1780
|
+
if (typeof s != "object" || s === null)
|
|
1781
|
+
return s;
|
|
1782
|
+
const r = {};
|
|
1783
|
+
for (const t in s)
|
|
1784
|
+
if (s.hasOwnProperty(t)) {
|
|
1785
|
+
const e = g1(s[t]);
|
|
1786
|
+
e !== void 0 && (r[t] = e);
|
|
1804
1787
|
}
|
|
1805
|
-
return
|
|
1788
|
+
return r;
|
|
1806
1789
|
}
|
|
1807
|
-
__name(removeUndefinedAttr, "removeUndefinedAttr");
|
|
1808
1790
|
export {
|
|
1809
|
-
AddConditionalRuleMutation,
|
|
1810
|
-
AddConditionalRuleMutationUndoFactory,
|
|
1811
|
-
CFNumberOperator,
|
|
1812
|
-
CFRuleType,
|
|
1813
|
-
CFSubRuleType,
|
|
1814
|
-
CFTextOperator,
|
|
1815
|
-
CFTimePeriodOperator,
|
|
1816
|
-
CFValueType,
|
|
1817
|
-
CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH,
|
|
1818
|
-
ConditionalFormattingFormulaMarkDirty,
|
|
1819
|
-
ConditionalFormattingFormulaService,
|
|
1820
|
-
ConditionalFormattingIcon,
|
|
1821
|
-
ConditionalFormattingRuleModel,
|
|
1822
|
-
ConditionalFormattingService,
|
|
1823
|
-
ConditionalFormattingViewModel,
|
|
1824
|
-
DEFAULT_BG_COLOR,
|
|
1825
|
-
DEFAULT_FONT_COLOR,
|
|
1826
|
-
DEFAULT_PADDING,
|
|
1827
|
-
DEFAULT_WIDTH,
|
|
1828
|
-
DataBar,
|
|
1829
|
-
DeleteConditionalRuleMutation,
|
|
1830
|
-
DeleteConditionalRuleMutationUndoFactory,
|
|
1831
|
-
EMPTY_ICON_TYPE,
|
|
1832
|
-
FormulaResultStatus,
|
|
1833
|
-
IconUKey,
|
|
1834
|
-
MoveConditionalRuleMutation,
|
|
1835
|
-
MoveConditionalRuleMutationUndoFactory,
|
|
1836
|
-
SHEET_CONDITIONAL_FORMATTING_PLUGIN,
|
|
1837
|
-
SetConditionalRuleMutation,
|
|
1838
|
-
UniverSheetsConditionalFormattingPlugin,
|
|
1839
|
-
anchorUndoFactory,
|
|
1840
|
-
compareWithNumber,
|
|
1841
|
-
createCfId,
|
|
1842
|
-
createDefaultRule,
|
|
1843
|
-
createDefaultValue,
|
|
1844
|
-
createDefaultValueByValueType,
|
|
1845
|
-
dataBarUKey,
|
|
1846
|
-
defaultDataBarNativeColor,
|
|
1847
|
-
defaultDataBarPositiveColor,
|
|
1848
|
-
defaultPlaceholderColor,
|
|
1849
|
-
filterRange,
|
|
1850
|
-
findIndexByAnchor,
|
|
1851
|
-
getCacheStyleMatrix,
|
|
1852
|
-
getCellValue,
|
|
1853
|
-
getColorScaleFromValue,
|
|
1854
|
-
getMaxInFormulaResult,
|
|
1855
|
-
getOppositeOperator,
|
|
1856
|
-
getValueByType,
|
|
1857
|
-
iconGroup,
|
|
1858
|
-
iconMap,
|
|
1859
|
-
isAnchorEqual,
|
|
1860
|
-
isFloatsEqual,
|
|
1861
|
-
isNullable,
|
|
1862
|
-
isRangesEqual,
|
|
1863
|
-
moveByAnchor,
|
|
1864
|
-
removeUndefinedAttr,
|
|
1865
|
-
serialTimeToTimestamp,
|
|
1866
|
-
setConditionalRuleMutationUndoFactory,
|
|
1867
|
-
toYMD_1900,
|
|
1868
|
-
transformSupportSymmetryAnchor
|
|
1791
|
+
T2 as AddConditionalRuleMutation,
|
|
1792
|
+
b1 as AddConditionalRuleMutationUndoFactory,
|
|
1793
|
+
w as CFNumberOperator,
|
|
1794
|
+
y as CFRuleType,
|
|
1795
|
+
E as CFSubRuleType,
|
|
1796
|
+
M as CFTextOperator,
|
|
1797
|
+
R as CFTimePeriodOperator,
|
|
1798
|
+
x as CFValueType,
|
|
1799
|
+
C2 as CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH,
|
|
1800
|
+
s2 as ConditionalFormattingFormulaMarkDirty,
|
|
1801
|
+
G as ConditionalFormattingFormulaService,
|
|
1802
|
+
d1 as ConditionalFormattingIcon,
|
|
1803
|
+
B as ConditionalFormattingRuleModel,
|
|
1804
|
+
K as ConditionalFormattingService,
|
|
1805
|
+
j as ConditionalFormattingViewModel,
|
|
1806
|
+
E1 as DEFAULT_BG_COLOR,
|
|
1807
|
+
p1 as DEFAULT_FONT_COLOR,
|
|
1808
|
+
h1 as DEFAULT_PADDING,
|
|
1809
|
+
u1 as DEFAULT_WIDTH,
|
|
1810
|
+
L0 as DataBar,
|
|
1811
|
+
E2 as DeleteConditionalRuleMutation,
|
|
1812
|
+
z0 as DeleteConditionalRuleMutationUndoFactory,
|
|
1813
|
+
J0 as EMPTY_ICON_TYPE,
|
|
1814
|
+
b as FormulaResultStatus,
|
|
1815
|
+
o1 as IconUKey,
|
|
1816
|
+
v2 as MoveConditionalRuleMutation,
|
|
1817
|
+
I1 as MoveConditionalRuleMutationUndoFactory,
|
|
1818
|
+
N2 as SHEET_CONDITIONAL_FORMATTING_PLUGIN,
|
|
1819
|
+
U2 as SetConditionalRuleMutation,
|
|
1820
|
+
R2 as UniverSheetsConditionalFormattingPlugin,
|
|
1821
|
+
m0 as anchorUndoFactory,
|
|
1822
|
+
Y as compareWithNumber,
|
|
1823
|
+
F0 as createCfId,
|
|
1824
|
+
A1 as createDefaultRule,
|
|
1825
|
+
_1 as createDefaultValue,
|
|
1826
|
+
x1 as createDefaultValueByValueType,
|
|
1827
|
+
R0 as dataBarUKey,
|
|
1828
|
+
y2 as defaultDataBarNativeColor,
|
|
1829
|
+
x2 as defaultDataBarPositiveColor,
|
|
1830
|
+
I0 as defaultPlaceholderColor,
|
|
1831
|
+
w2 as filterRange,
|
|
1832
|
+
W as findIndexByAnchor,
|
|
1833
|
+
M1 as getCacheStyleMatrix,
|
|
1834
|
+
U as getCellValue,
|
|
1835
|
+
y0 as getColorScaleFromValue,
|
|
1836
|
+
R1 as getMaxInFormulaResult,
|
|
1837
|
+
x0 as getOppositeOperator,
|
|
1838
|
+
l2 as getValueByType,
|
|
1839
|
+
K0 as iconGroup,
|
|
1840
|
+
o2 as iconMap,
|
|
1841
|
+
y1 as isAnchorEqual,
|
|
1842
|
+
a2 as isFloatsEqual,
|
|
1843
|
+
I as isNullable,
|
|
1844
|
+
k1 as isRangesEqual,
|
|
1845
|
+
D0 as moveByAnchor,
|
|
1846
|
+
g1 as removeUndefinedAttr,
|
|
1847
|
+
_0 as serialTimeToTimestamp,
|
|
1848
|
+
L1 as setConditionalRuleMutationUndoFactory,
|
|
1849
|
+
A0 as toYMD_1900,
|
|
1850
|
+
f0 as transformSupportSymmetryAnchor
|
|
1869
1851
|
};
|