@spaziodati/atoka-design-system 2.1.6 → 2.1.7
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/AddableItems/index.js +1 -1050
- package/Alert/index.js +1 -321
- package/Badge/index.js +1 -285
- package/Bs4V3Wrapper/index.js +1 -253
- package/BubbleChart/index.js +2 -3424
- package/BubbleChart/index.js.LICENSE.txt +1 -0
- package/Button/index.js +1 -325
- package/ButtonDropdown/index.js +1 -601
- package/CardsPage/index.js +1 -2505
- package/CursorPagination/index.js +1 -948
- package/DatePicker/index.js +1 -449
- package/DetailPage/index.js +1 -1990
- package/Dropdown/index.js +1 -723
- package/EditableString/index.js +1 -3238
- package/EllipsableContent/index.js +1 -786
- package/EmptyState/index.js +1 -280
- package/Facet/index.js +1 -919
- package/FacetSection/index.js +1 -447
- package/FadeAnimation/index.js +1 -1157
- package/FeedbackButton/index.js +1 -400
- package/Form/index.js +1 -450
- package/Funnel/index.js +2 -3624
- package/Funnel/index.js.LICENSE.txt +1 -0
- package/GridCard/index.js +1 -1626
- package/HighlightableText/index.js +1 -625
- package/Histogram/index.js +1 -2346
- package/InlineStringEditor/index.js +1 -1862
- package/InputGroup/index.js +1 -279
- package/Jumbotron/index.js +1 -272
- package/Map/index.js +2 -5187
- package/Map/index.js.LICENSE.txt +10 -0
- package/Modal/index.js +1 -745
- package/Navbar/index.js +1 -3430
- package/Pagination/index.js +1 -990
- package/PieChart/index.js +1 -1971
- package/PublicFooter/index.js +1 -458
- package/PublicNavbar/index.js +1 -257
- package/RecordBit/index.js +1 -486
- package/ResultItemCard/index.js +1 -1073
- package/SelectDropdown/index.js +1 -1506
- package/Spinner/index.js +1 -327
- package/StatisticsItemCard/index.js +1 -1796
- package/StatisticsItemNumeric/index.js +1 -285
- package/StatisticsLegend/index.js +1 -1555
- package/StatisticsTooltip/index.js +1 -796
- package/Suggester/index.js +1 -1126
- package/SunBurst/index.js +1 -1166
- package/TabSwitcher/index.js +1 -1135
- package/Title/index.js +1 -304
- package/Toasts/index.js +1 -2285
- package/ToggleButtonGroup/index.js +1 -607
- package/Tooltip/index.js +1 -291
- package/Utils/index.js +2 -3002
- package/Utils/index.js.LICENSE.txt +1 -0
- package/{atoka-design-system-2.1.6.min.css → atoka-design-system-2.1.7.min.css} +0 -0
- package/index.js +2 -16819
- package/index.js.LICENSE.txt +10 -0
- package/package.json +1 -1
- package/AddableItems/index.js.map +0 -1
- package/Alert/index.js.map +0 -1
- package/Badge/index.js.map +0 -1
- package/Bs4V3Wrapper/index.js.map +0 -1
- package/BubbleChart/index.js.map +0 -1
- package/Button/index.js.map +0 -1
- package/ButtonDropdown/index.js.map +0 -1
- package/CardsPage/index.js.map +0 -1
- package/CursorPagination/index.js.map +0 -1
- package/DatePicker/index.js.map +0 -1
- package/DetailPage/index.js.map +0 -1
- package/Dropdown/index.js.map +0 -1
- package/EditableString/index.js.map +0 -1
- package/EllipsableContent/index.js.map +0 -1
- package/EmptyState/index.js.map +0 -1
- package/Facet/index.js.map +0 -1
- package/FacetSection/index.js.map +0 -1
- package/FadeAnimation/index.js.map +0 -1
- package/FeedbackButton/index.js.map +0 -1
- package/Form/index.js.map +0 -1
- package/Funnel/index.js.map +0 -1
- package/GridCard/index.js.map +0 -1
- package/HighlightableText/index.js.map +0 -1
- package/Histogram/index.js.map +0 -1
- package/InlineStringEditor/index.js.map +0 -1
- package/InputGroup/index.js.map +0 -1
- package/Jumbotron/index.js.map +0 -1
- package/Map/index.js.map +0 -1
- package/Modal/index.js.map +0 -1
- package/Navbar/index.js.map +0 -1
- package/Pagination/index.js.map +0 -1
- package/PieChart/index.js.map +0 -1
- package/PublicFooter/index.js.map +0 -1
- package/PublicNavbar/index.js.map +0 -1
- package/RecordBit/index.js.map +0 -1
- package/ResultItemCard/index.js.map +0 -1
- package/SelectDropdown/index.js.map +0 -1
- package/Spinner/index.js.map +0 -1
- package/StatisticsItemCard/index.js.map +0 -1
- package/StatisticsItemNumeric/index.js.map +0 -1
- package/StatisticsLegend/index.js.map +0 -1
- package/StatisticsTooltip/index.js.map +0 -1
- package/Suggester/index.js.map +0 -1
- package/SunBurst/index.js.map +0 -1
- package/TabSwitcher/index.js.map +0 -1
- package/Title/index.js.map +0 -1
- package/Toasts/index.js.map +0 -1
- package/ToggleButtonGroup/index.js.map +0 -1
- package/Tooltip/index.js.map +0 -1
- package/Utils/index.js.map +0 -1
- package/index.js.map +0 -1
package/BubbleChart/index.js
CHANGED
|
@@ -1,3424 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("@fortawesome/react-fontawesome"), require("@nivo/circle-packing"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define("atoka-design-system", ["@fortawesome/react-fontawesome", "@nivo/circle-packing", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText"], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["atoka-design-system"] = factory(require("@fortawesome/react-fontawesome"), require("@nivo/circle-packing"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"));
|
|
8
|
-
else
|
|
9
|
-
root["atoka-design-system"] = factory(root["@fortawesome/react-fontawesome"], root["@nivo/circle-packing"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"]);
|
|
10
|
-
})(self, function(__WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__3741__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__) {
|
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
|
12
|
-
/******/ var __webpack_modules__ = ({
|
|
13
|
-
|
|
14
|
-
/***/ 9172:
|
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
|
-
|
|
17
|
-
var _typeof = (__webpack_require__(6496)["default"]);
|
|
18
|
-
|
|
19
|
-
function _regeneratorRuntime() {
|
|
20
|
-
"use strict";
|
|
21
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
22
|
-
|
|
23
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
24
|
-
return exports;
|
|
25
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
26
|
-
var exports = {},
|
|
27
|
-
Op = Object.prototype,
|
|
28
|
-
hasOwn = Op.hasOwnProperty,
|
|
29
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
30
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
31
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
32
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
33
|
-
|
|
34
|
-
function define(obj, key, value) {
|
|
35
|
-
return Object.defineProperty(obj, key, {
|
|
36
|
-
value: value,
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0
|
|
40
|
-
}), obj[key];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
define({}, "");
|
|
45
|
-
} catch (err) {
|
|
46
|
-
define = function define(obj, key, value) {
|
|
47
|
-
return obj[key] = value;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
52
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
53
|
-
generator = Object.create(protoGenerator.prototype),
|
|
54
|
-
context = new Context(tryLocsList || []);
|
|
55
|
-
return generator._invoke = function (innerFn, self, context) {
|
|
56
|
-
var state = "suspendedStart";
|
|
57
|
-
return function (method, arg) {
|
|
58
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
59
|
-
|
|
60
|
-
if ("completed" === state) {
|
|
61
|
-
if ("throw" === method) throw arg;
|
|
62
|
-
return doneResult();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
for (context.method = method, context.arg = arg;;) {
|
|
66
|
-
var delegate = context.delegate;
|
|
67
|
-
|
|
68
|
-
if (delegate) {
|
|
69
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
70
|
-
|
|
71
|
-
if (delegateResult) {
|
|
72
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
73
|
-
return delegateResult;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
78
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
79
|
-
context.dispatchException(context.arg);
|
|
80
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
81
|
-
state = "executing";
|
|
82
|
-
var record = tryCatch(innerFn, self, context);
|
|
83
|
-
|
|
84
|
-
if ("normal" === record.type) {
|
|
85
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
86
|
-
return {
|
|
87
|
-
value: record.arg,
|
|
88
|
-
done: context.done
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
}(innerFn, self, context), generator;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function tryCatch(fn, obj, arg) {
|
|
99
|
-
try {
|
|
100
|
-
return {
|
|
101
|
-
type: "normal",
|
|
102
|
-
arg: fn.call(obj, arg)
|
|
103
|
-
};
|
|
104
|
-
} catch (err) {
|
|
105
|
-
return {
|
|
106
|
-
type: "throw",
|
|
107
|
-
arg: err
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
exports.wrap = wrap;
|
|
113
|
-
var ContinueSentinel = {};
|
|
114
|
-
|
|
115
|
-
function Generator() {}
|
|
116
|
-
|
|
117
|
-
function GeneratorFunction() {}
|
|
118
|
-
|
|
119
|
-
function GeneratorFunctionPrototype() {}
|
|
120
|
-
|
|
121
|
-
var IteratorPrototype = {};
|
|
122
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
123
|
-
return this;
|
|
124
|
-
});
|
|
125
|
-
var getProto = Object.getPrototypeOf,
|
|
126
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
127
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
128
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
129
|
-
|
|
130
|
-
function defineIteratorMethods(prototype) {
|
|
131
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
132
|
-
define(prototype, method, function (arg) {
|
|
133
|
-
return this._invoke(method, arg);
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
139
|
-
function invoke(method, arg, resolve, reject) {
|
|
140
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
141
|
-
|
|
142
|
-
if ("throw" !== record.type) {
|
|
143
|
-
var result = record.arg,
|
|
144
|
-
value = result.value;
|
|
145
|
-
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
146
|
-
invoke("next", value, resolve, reject);
|
|
147
|
-
}, function (err) {
|
|
148
|
-
invoke("throw", err, resolve, reject);
|
|
149
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
150
|
-
result.value = unwrapped, resolve(result);
|
|
151
|
-
}, function (error) {
|
|
152
|
-
return invoke("throw", error, resolve, reject);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
reject(record.arg);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
var previousPromise;
|
|
160
|
-
|
|
161
|
-
this._invoke = function (method, arg) {
|
|
162
|
-
function callInvokeWithMethodAndArg() {
|
|
163
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
164
|
-
invoke(method, arg, resolve, reject);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
173
|
-
var method = delegate.iterator[context.method];
|
|
174
|
-
|
|
175
|
-
if (undefined === method) {
|
|
176
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
177
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
178
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return ContinueSentinel;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
185
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
186
|
-
var info = record.arg;
|
|
187
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function pushTryEntry(locs) {
|
|
191
|
-
var entry = {
|
|
192
|
-
tryLoc: locs[0]
|
|
193
|
-
};
|
|
194
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
function resetTryEntry(entry) {
|
|
198
|
-
var record = entry.completion || {};
|
|
199
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
function Context(tryLocsList) {
|
|
203
|
-
this.tryEntries = [{
|
|
204
|
-
tryLoc: "root"
|
|
205
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function values(iterable) {
|
|
209
|
-
if (iterable) {
|
|
210
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
211
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
212
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
213
|
-
|
|
214
|
-
if (!isNaN(iterable.length)) {
|
|
215
|
-
var i = -1,
|
|
216
|
-
next = function next() {
|
|
217
|
-
for (; ++i < iterable.length;) {
|
|
218
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return next.value = undefined, next.done = !0, next;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
return next.next = next;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
return {
|
|
229
|
-
next: doneResult
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function doneResult() {
|
|
234
|
-
return {
|
|
235
|
-
value: undefined,
|
|
236
|
-
done: !0
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
241
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
242
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
243
|
-
}, exports.mark = function (genFun) {
|
|
244
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
245
|
-
}, exports.awrap = function (arg) {
|
|
246
|
-
return {
|
|
247
|
-
__await: arg
|
|
248
|
-
};
|
|
249
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
250
|
-
return this;
|
|
251
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
252
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
253
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
254
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
255
|
-
return result.done ? result.value : iter.next();
|
|
256
|
-
});
|
|
257
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
258
|
-
return this;
|
|
259
|
-
}), define(Gp, "toString", function () {
|
|
260
|
-
return "[object Generator]";
|
|
261
|
-
}), exports.keys = function (object) {
|
|
262
|
-
var keys = [];
|
|
263
|
-
|
|
264
|
-
for (var key in object) {
|
|
265
|
-
keys.push(key);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
return keys.reverse(), function next() {
|
|
269
|
-
for (; keys.length;) {
|
|
270
|
-
var key = keys.pop();
|
|
271
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
return next.done = !0, next;
|
|
275
|
-
};
|
|
276
|
-
}, exports.values = values, Context.prototype = {
|
|
277
|
-
constructor: Context,
|
|
278
|
-
reset: function reset(skipTempReset) {
|
|
279
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
280
|
-
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
stop: function stop() {
|
|
284
|
-
this.done = !0;
|
|
285
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
286
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
287
|
-
return this.rval;
|
|
288
|
-
},
|
|
289
|
-
dispatchException: function dispatchException(exception) {
|
|
290
|
-
if (this.done) throw exception;
|
|
291
|
-
var context = this;
|
|
292
|
-
|
|
293
|
-
function handle(loc, caught) {
|
|
294
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
298
|
-
var entry = this.tryEntries[i],
|
|
299
|
-
record = entry.completion;
|
|
300
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
301
|
-
|
|
302
|
-
if (entry.tryLoc <= this.prev) {
|
|
303
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
304
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
305
|
-
|
|
306
|
-
if (hasCatch && hasFinally) {
|
|
307
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
308
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
309
|
-
} else if (hasCatch) {
|
|
310
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
311
|
-
} else {
|
|
312
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
313
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
abrupt: function abrupt(type, arg) {
|
|
319
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
320
|
-
var entry = this.tryEntries[i];
|
|
321
|
-
|
|
322
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
323
|
-
var finallyEntry = entry;
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
329
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
330
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
331
|
-
},
|
|
332
|
-
complete: function complete(record, afterLoc) {
|
|
333
|
-
if ("throw" === record.type) throw record.arg;
|
|
334
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
335
|
-
},
|
|
336
|
-
finish: function finish(finallyLoc) {
|
|
337
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
338
|
-
var entry = this.tryEntries[i];
|
|
339
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"catch": function _catch(tryLoc) {
|
|
343
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
344
|
-
var entry = this.tryEntries[i];
|
|
345
|
-
|
|
346
|
-
if (entry.tryLoc === tryLoc) {
|
|
347
|
-
var record = entry.completion;
|
|
348
|
-
|
|
349
|
-
if ("throw" === record.type) {
|
|
350
|
-
var thrown = record.arg;
|
|
351
|
-
resetTryEntry(entry);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
return thrown;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
throw new Error("illegal catch attempt");
|
|
359
|
-
},
|
|
360
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
361
|
-
return this.delegate = {
|
|
362
|
-
iterator: values(iterable),
|
|
363
|
-
resultName: resultName,
|
|
364
|
-
nextLoc: nextLoc
|
|
365
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
366
|
-
}
|
|
367
|
-
}, exports;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
371
|
-
|
|
372
|
-
/***/ }),
|
|
373
|
-
|
|
374
|
-
/***/ 6496:
|
|
375
|
-
/***/ ((module) => {
|
|
376
|
-
|
|
377
|
-
function _typeof(obj) {
|
|
378
|
-
"@babel/helpers - typeof";
|
|
379
|
-
|
|
380
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
381
|
-
return typeof obj;
|
|
382
|
-
} : function (obj) {
|
|
383
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
384
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
388
|
-
|
|
389
|
-
/***/ }),
|
|
390
|
-
|
|
391
|
-
/***/ 9673:
|
|
392
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
393
|
-
|
|
394
|
-
var _typeof = __webpack_require__(6496);
|
|
395
|
-
|
|
396
|
-
// TODO(Babel 8): Remove this file.
|
|
397
|
-
var runtime = __webpack_require__(9172)();
|
|
398
|
-
|
|
399
|
-
module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
400
|
-
|
|
401
|
-
try {
|
|
402
|
-
regeneratorRuntime = runtime;
|
|
403
|
-
} catch (accidentalStrictMode) {
|
|
404
|
-
if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object") {
|
|
405
|
-
globalThis.regeneratorRuntime = runtime;
|
|
406
|
-
} else {
|
|
407
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/***/ }),
|
|
412
|
-
|
|
413
|
-
/***/ 6627:
|
|
414
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
415
|
-
|
|
416
|
-
"use strict";
|
|
417
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
418
|
-
/* harmony export */ "MR": () => (/* binding */ boundMethod)
|
|
419
|
-
/* harmony export */ });
|
|
420
|
-
/* unused harmony exports boundClass, default */
|
|
421
|
-
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
function _typeof(obj) {
|
|
425
|
-
if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
|
|
426
|
-
_typeof = function _typeof(obj) {
|
|
427
|
-
return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
428
|
-
};
|
|
429
|
-
} else {
|
|
430
|
-
_typeof = function _typeof(obj) {
|
|
431
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
return _typeof(obj);
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Return a descriptor removing the value and returning a getter
|
|
439
|
-
* The getter will return a .bind version of the function
|
|
440
|
-
* and memoize the result against a symbol on the instance
|
|
441
|
-
*/
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
function boundMethod(target, key, descriptor) {
|
|
445
|
-
var fn = descriptor.value;
|
|
446
|
-
|
|
447
|
-
if (typeof fn !== 'function') {
|
|
448
|
-
throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
|
|
449
|
-
} // In IE11 calling Object.defineProperty has a side-effect of evaluating the
|
|
450
|
-
// getter for the property which is being replaced. This causes infinite
|
|
451
|
-
// recursion and an "Out of stack space" error.
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
var definingProperty = false;
|
|
455
|
-
return {
|
|
456
|
-
configurable: true,
|
|
457
|
-
get: function get() {
|
|
458
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
459
|
-
if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
|
|
460
|
-
return fn;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
var boundFn = fn.bind(this);
|
|
464
|
-
definingProperty = true;
|
|
465
|
-
Object.defineProperty(this, key, {
|
|
466
|
-
configurable: true,
|
|
467
|
-
get: function get() {
|
|
468
|
-
return boundFn;
|
|
469
|
-
},
|
|
470
|
-
set: function set(value) {
|
|
471
|
-
fn = value;
|
|
472
|
-
delete this[key];
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
definingProperty = false;
|
|
476
|
-
return boundFn;
|
|
477
|
-
},
|
|
478
|
-
set: function set(value) {
|
|
479
|
-
fn = value;
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Use boundMethod to bind all methods on the target.prototype
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
function boundClass(target) {
|
|
488
|
-
// (Using reflect to get all keys including symbols)
|
|
489
|
-
var keys; // Use Reflect if exists
|
|
490
|
-
|
|
491
|
-
if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
|
|
492
|
-
keys = Reflect.ownKeys(target.prototype);
|
|
493
|
-
} else {
|
|
494
|
-
keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
|
|
495
|
-
|
|
496
|
-
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
497
|
-
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
keys.forEach(function (key) {
|
|
502
|
-
// Ignore special case target method
|
|
503
|
-
if (key === 'constructor') {
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
|
|
508
|
-
|
|
509
|
-
if (typeof descriptor.value === 'function') {
|
|
510
|
-
Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
return target;
|
|
514
|
-
}
|
|
515
|
-
function autobind() {
|
|
516
|
-
if (arguments.length === 1) {
|
|
517
|
-
return boundClass.apply(void 0, arguments);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
return boundMethod.apply(void 0, arguments);
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/***/ }),
|
|
524
|
-
|
|
525
|
-
/***/ 2766:
|
|
526
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
527
|
-
|
|
528
|
-
"use strict";
|
|
529
|
-
|
|
530
|
-
// EXPORTS
|
|
531
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
532
|
-
"ZP": () => (/* binding */ color),
|
|
533
|
-
"B8": () => (/* binding */ rgb)
|
|
534
|
-
});
|
|
535
|
-
|
|
536
|
-
// UNUSED EXPORTS: Color, Rgb, brighter, darker, hsl, hslConvert, rgbConvert
|
|
537
|
-
|
|
538
|
-
;// CONCATENATED MODULE: ./node_modules/d3-color/src/define.js
|
|
539
|
-
/* harmony default export */ function src_define(constructor, factory, prototype) {
|
|
540
|
-
constructor.prototype = factory.prototype = prototype;
|
|
541
|
-
prototype.constructor = constructor;
|
|
542
|
-
}
|
|
543
|
-
function extend(parent, definition) {
|
|
544
|
-
var prototype = Object.create(parent.prototype);
|
|
545
|
-
|
|
546
|
-
for (var key in definition) {
|
|
547
|
-
prototype[key] = definition[key];
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
return prototype;
|
|
551
|
-
}
|
|
552
|
-
;// CONCATENATED MODULE: ./node_modules/d3-color/src/color.js
|
|
553
|
-
|
|
554
|
-
function Color() {}
|
|
555
|
-
var _darker = 0.7;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
var _brighter = 1 / _darker;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
562
|
-
reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
563
|
-
reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
564
|
-
reHex = /^#([0-9a-f]{3,8})$/,
|
|
565
|
-
reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
|
|
566
|
-
reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
|
|
567
|
-
reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
|
|
568
|
-
reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
|
|
569
|
-
reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
|
|
570
|
-
reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
571
|
-
var named = {
|
|
572
|
-
aliceblue: 0xf0f8ff,
|
|
573
|
-
antiquewhite: 0xfaebd7,
|
|
574
|
-
aqua: 0x00ffff,
|
|
575
|
-
aquamarine: 0x7fffd4,
|
|
576
|
-
azure: 0xf0ffff,
|
|
577
|
-
beige: 0xf5f5dc,
|
|
578
|
-
bisque: 0xffe4c4,
|
|
579
|
-
black: 0x000000,
|
|
580
|
-
blanchedalmond: 0xffebcd,
|
|
581
|
-
blue: 0x0000ff,
|
|
582
|
-
blueviolet: 0x8a2be2,
|
|
583
|
-
brown: 0xa52a2a,
|
|
584
|
-
burlywood: 0xdeb887,
|
|
585
|
-
cadetblue: 0x5f9ea0,
|
|
586
|
-
chartreuse: 0x7fff00,
|
|
587
|
-
chocolate: 0xd2691e,
|
|
588
|
-
coral: 0xff7f50,
|
|
589
|
-
cornflowerblue: 0x6495ed,
|
|
590
|
-
cornsilk: 0xfff8dc,
|
|
591
|
-
crimson: 0xdc143c,
|
|
592
|
-
cyan: 0x00ffff,
|
|
593
|
-
darkblue: 0x00008b,
|
|
594
|
-
darkcyan: 0x008b8b,
|
|
595
|
-
darkgoldenrod: 0xb8860b,
|
|
596
|
-
darkgray: 0xa9a9a9,
|
|
597
|
-
darkgreen: 0x006400,
|
|
598
|
-
darkgrey: 0xa9a9a9,
|
|
599
|
-
darkkhaki: 0xbdb76b,
|
|
600
|
-
darkmagenta: 0x8b008b,
|
|
601
|
-
darkolivegreen: 0x556b2f,
|
|
602
|
-
darkorange: 0xff8c00,
|
|
603
|
-
darkorchid: 0x9932cc,
|
|
604
|
-
darkred: 0x8b0000,
|
|
605
|
-
darksalmon: 0xe9967a,
|
|
606
|
-
darkseagreen: 0x8fbc8f,
|
|
607
|
-
darkslateblue: 0x483d8b,
|
|
608
|
-
darkslategray: 0x2f4f4f,
|
|
609
|
-
darkslategrey: 0x2f4f4f,
|
|
610
|
-
darkturquoise: 0x00ced1,
|
|
611
|
-
darkviolet: 0x9400d3,
|
|
612
|
-
deeppink: 0xff1493,
|
|
613
|
-
deepskyblue: 0x00bfff,
|
|
614
|
-
dimgray: 0x696969,
|
|
615
|
-
dimgrey: 0x696969,
|
|
616
|
-
dodgerblue: 0x1e90ff,
|
|
617
|
-
firebrick: 0xb22222,
|
|
618
|
-
floralwhite: 0xfffaf0,
|
|
619
|
-
forestgreen: 0x228b22,
|
|
620
|
-
fuchsia: 0xff00ff,
|
|
621
|
-
gainsboro: 0xdcdcdc,
|
|
622
|
-
ghostwhite: 0xf8f8ff,
|
|
623
|
-
gold: 0xffd700,
|
|
624
|
-
goldenrod: 0xdaa520,
|
|
625
|
-
gray: 0x808080,
|
|
626
|
-
green: 0x008000,
|
|
627
|
-
greenyellow: 0xadff2f,
|
|
628
|
-
grey: 0x808080,
|
|
629
|
-
honeydew: 0xf0fff0,
|
|
630
|
-
hotpink: 0xff69b4,
|
|
631
|
-
indianred: 0xcd5c5c,
|
|
632
|
-
indigo: 0x4b0082,
|
|
633
|
-
ivory: 0xfffff0,
|
|
634
|
-
khaki: 0xf0e68c,
|
|
635
|
-
lavender: 0xe6e6fa,
|
|
636
|
-
lavenderblush: 0xfff0f5,
|
|
637
|
-
lawngreen: 0x7cfc00,
|
|
638
|
-
lemonchiffon: 0xfffacd,
|
|
639
|
-
lightblue: 0xadd8e6,
|
|
640
|
-
lightcoral: 0xf08080,
|
|
641
|
-
lightcyan: 0xe0ffff,
|
|
642
|
-
lightgoldenrodyellow: 0xfafad2,
|
|
643
|
-
lightgray: 0xd3d3d3,
|
|
644
|
-
lightgreen: 0x90ee90,
|
|
645
|
-
lightgrey: 0xd3d3d3,
|
|
646
|
-
lightpink: 0xffb6c1,
|
|
647
|
-
lightsalmon: 0xffa07a,
|
|
648
|
-
lightseagreen: 0x20b2aa,
|
|
649
|
-
lightskyblue: 0x87cefa,
|
|
650
|
-
lightslategray: 0x778899,
|
|
651
|
-
lightslategrey: 0x778899,
|
|
652
|
-
lightsteelblue: 0xb0c4de,
|
|
653
|
-
lightyellow: 0xffffe0,
|
|
654
|
-
lime: 0x00ff00,
|
|
655
|
-
limegreen: 0x32cd32,
|
|
656
|
-
linen: 0xfaf0e6,
|
|
657
|
-
magenta: 0xff00ff,
|
|
658
|
-
maroon: 0x800000,
|
|
659
|
-
mediumaquamarine: 0x66cdaa,
|
|
660
|
-
mediumblue: 0x0000cd,
|
|
661
|
-
mediumorchid: 0xba55d3,
|
|
662
|
-
mediumpurple: 0x9370db,
|
|
663
|
-
mediumseagreen: 0x3cb371,
|
|
664
|
-
mediumslateblue: 0x7b68ee,
|
|
665
|
-
mediumspringgreen: 0x00fa9a,
|
|
666
|
-
mediumturquoise: 0x48d1cc,
|
|
667
|
-
mediumvioletred: 0xc71585,
|
|
668
|
-
midnightblue: 0x191970,
|
|
669
|
-
mintcream: 0xf5fffa,
|
|
670
|
-
mistyrose: 0xffe4e1,
|
|
671
|
-
moccasin: 0xffe4b5,
|
|
672
|
-
navajowhite: 0xffdead,
|
|
673
|
-
navy: 0x000080,
|
|
674
|
-
oldlace: 0xfdf5e6,
|
|
675
|
-
olive: 0x808000,
|
|
676
|
-
olivedrab: 0x6b8e23,
|
|
677
|
-
orange: 0xffa500,
|
|
678
|
-
orangered: 0xff4500,
|
|
679
|
-
orchid: 0xda70d6,
|
|
680
|
-
palegoldenrod: 0xeee8aa,
|
|
681
|
-
palegreen: 0x98fb98,
|
|
682
|
-
paleturquoise: 0xafeeee,
|
|
683
|
-
palevioletred: 0xdb7093,
|
|
684
|
-
papayawhip: 0xffefd5,
|
|
685
|
-
peachpuff: 0xffdab9,
|
|
686
|
-
peru: 0xcd853f,
|
|
687
|
-
pink: 0xffc0cb,
|
|
688
|
-
plum: 0xdda0dd,
|
|
689
|
-
powderblue: 0xb0e0e6,
|
|
690
|
-
purple: 0x800080,
|
|
691
|
-
rebeccapurple: 0x663399,
|
|
692
|
-
red: 0xff0000,
|
|
693
|
-
rosybrown: 0xbc8f8f,
|
|
694
|
-
royalblue: 0x4169e1,
|
|
695
|
-
saddlebrown: 0x8b4513,
|
|
696
|
-
salmon: 0xfa8072,
|
|
697
|
-
sandybrown: 0xf4a460,
|
|
698
|
-
seagreen: 0x2e8b57,
|
|
699
|
-
seashell: 0xfff5ee,
|
|
700
|
-
sienna: 0xa0522d,
|
|
701
|
-
silver: 0xc0c0c0,
|
|
702
|
-
skyblue: 0x87ceeb,
|
|
703
|
-
slateblue: 0x6a5acd,
|
|
704
|
-
slategray: 0x708090,
|
|
705
|
-
slategrey: 0x708090,
|
|
706
|
-
snow: 0xfffafa,
|
|
707
|
-
springgreen: 0x00ff7f,
|
|
708
|
-
steelblue: 0x4682b4,
|
|
709
|
-
tan: 0xd2b48c,
|
|
710
|
-
teal: 0x008080,
|
|
711
|
-
thistle: 0xd8bfd8,
|
|
712
|
-
tomato: 0xff6347,
|
|
713
|
-
turquoise: 0x40e0d0,
|
|
714
|
-
violet: 0xee82ee,
|
|
715
|
-
wheat: 0xf5deb3,
|
|
716
|
-
white: 0xffffff,
|
|
717
|
-
whitesmoke: 0xf5f5f5,
|
|
718
|
-
yellow: 0xffff00,
|
|
719
|
-
yellowgreen: 0x9acd32
|
|
720
|
-
};
|
|
721
|
-
src_define(Color, color, {
|
|
722
|
-
copy: function copy(channels) {
|
|
723
|
-
return Object.assign(new this.constructor(), this, channels);
|
|
724
|
-
},
|
|
725
|
-
displayable: function displayable() {
|
|
726
|
-
return this.rgb().displayable();
|
|
727
|
-
},
|
|
728
|
-
hex: color_formatHex,
|
|
729
|
-
// Deprecated! Use color.formatHex.
|
|
730
|
-
formatHex: color_formatHex,
|
|
731
|
-
formatHsl: color_formatHsl,
|
|
732
|
-
formatRgb: color_formatRgb,
|
|
733
|
-
toString: color_formatRgb
|
|
734
|
-
});
|
|
735
|
-
|
|
736
|
-
function color_formatHex() {
|
|
737
|
-
return this.rgb().formatHex();
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
function color_formatHsl() {
|
|
741
|
-
return hslConvert(this).formatHsl();
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
function color_formatRgb() {
|
|
745
|
-
return this.rgb().formatRgb();
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
function color(format) {
|
|
749
|
-
var m, l;
|
|
750
|
-
format = (format + "").trim().toLowerCase();
|
|
751
|
-
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
|
|
752
|
-
: l === 3 ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, (m & 0xf) << 4 | m & 0xf, 1) // #f00
|
|
753
|
-
: l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
|
|
754
|
-
: l === 4 ? rgba(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, ((m & 0xf) << 4 | m & 0xf) / 0xff) // #f000
|
|
755
|
-
: null // invalid hex
|
|
756
|
-
) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
|
|
757
|
-
: (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
|
|
758
|
-
: (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
|
|
759
|
-
: (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
|
|
760
|
-
: (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
|
|
761
|
-
: (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
|
|
762
|
-
: named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
|
|
763
|
-
: format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
function rgbn(n) {
|
|
767
|
-
return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
function rgba(r, g, b, a) {
|
|
771
|
-
if (a <= 0) r = g = b = NaN;
|
|
772
|
-
return new Rgb(r, g, b, a);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
function rgbConvert(o) {
|
|
776
|
-
if (!(o instanceof Color)) o = color(o);
|
|
777
|
-
if (!o) return new Rgb();
|
|
778
|
-
o = o.rgb();
|
|
779
|
-
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
780
|
-
}
|
|
781
|
-
function rgb(r, g, b, opacity) {
|
|
782
|
-
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
|
783
|
-
}
|
|
784
|
-
function Rgb(r, g, b, opacity) {
|
|
785
|
-
this.r = +r;
|
|
786
|
-
this.g = +g;
|
|
787
|
-
this.b = +b;
|
|
788
|
-
this.opacity = +opacity;
|
|
789
|
-
}
|
|
790
|
-
src_define(Rgb, rgb, extend(Color, {
|
|
791
|
-
brighter: function brighter(k) {
|
|
792
|
-
k = k == null ? _brighter : Math.pow(_brighter, k);
|
|
793
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
794
|
-
},
|
|
795
|
-
darker: function darker(k) {
|
|
796
|
-
k = k == null ? _darker : Math.pow(_darker, k);
|
|
797
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
798
|
-
},
|
|
799
|
-
rgb: function rgb() {
|
|
800
|
-
return this;
|
|
801
|
-
},
|
|
802
|
-
displayable: function displayable() {
|
|
803
|
-
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
804
|
-
},
|
|
805
|
-
hex: rgb_formatHex,
|
|
806
|
-
// Deprecated! Use color.formatHex.
|
|
807
|
-
formatHex: rgb_formatHex,
|
|
808
|
-
formatRgb: rgb_formatRgb,
|
|
809
|
-
toString: rgb_formatRgb
|
|
810
|
-
}));
|
|
811
|
-
|
|
812
|
-
function rgb_formatHex() {
|
|
813
|
-
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
function rgb_formatRgb() {
|
|
817
|
-
var a = this.opacity;
|
|
818
|
-
a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
|
|
819
|
-
return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")");
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
function hex(value) {
|
|
823
|
-
value = Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
824
|
-
return (value < 16 ? "0" : "") + value.toString(16);
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
function hsla(h, s, l, a) {
|
|
828
|
-
if (a <= 0) h = s = l = NaN;else if (l <= 0 || l >= 1) h = s = NaN;else if (s <= 0) h = NaN;
|
|
829
|
-
return new Hsl(h, s, l, a);
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
function hslConvert(o) {
|
|
833
|
-
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
834
|
-
if (!(o instanceof Color)) o = color(o);
|
|
835
|
-
if (!o) return new Hsl();
|
|
836
|
-
if (o instanceof Hsl) return o;
|
|
837
|
-
o = o.rgb();
|
|
838
|
-
var r = o.r / 255,
|
|
839
|
-
g = o.g / 255,
|
|
840
|
-
b = o.b / 255,
|
|
841
|
-
min = Math.min(r, g, b),
|
|
842
|
-
max = Math.max(r, g, b),
|
|
843
|
-
h = NaN,
|
|
844
|
-
s = max - min,
|
|
845
|
-
l = (max + min) / 2;
|
|
846
|
-
|
|
847
|
-
if (s) {
|
|
848
|
-
if (r === max) h = (g - b) / s + (g < b) * 6;else if (g === max) h = (b - r) / s + 2;else h = (r - g) / s + 4;
|
|
849
|
-
s /= l < 0.5 ? max + min : 2 - max - min;
|
|
850
|
-
h *= 60;
|
|
851
|
-
} else {
|
|
852
|
-
s = l > 0 && l < 1 ? 0 : h;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
return new Hsl(h, s, l, o.opacity);
|
|
856
|
-
}
|
|
857
|
-
function hsl(h, s, l, opacity) {
|
|
858
|
-
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
function Hsl(h, s, l, opacity) {
|
|
862
|
-
this.h = +h;
|
|
863
|
-
this.s = +s;
|
|
864
|
-
this.l = +l;
|
|
865
|
-
this.opacity = +opacity;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
src_define(Hsl, hsl, extend(Color, {
|
|
869
|
-
brighter: function brighter(k) {
|
|
870
|
-
k = k == null ? _brighter : Math.pow(_brighter, k);
|
|
871
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
872
|
-
},
|
|
873
|
-
darker: function darker(k) {
|
|
874
|
-
k = k == null ? _darker : Math.pow(_darker, k);
|
|
875
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
876
|
-
},
|
|
877
|
-
rgb: function rgb() {
|
|
878
|
-
var h = this.h % 360 + (this.h < 0) * 360,
|
|
879
|
-
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
|
880
|
-
l = this.l,
|
|
881
|
-
m2 = l + (l < 0.5 ? l : 1 - l) * s,
|
|
882
|
-
m1 = 2 * l - m2;
|
|
883
|
-
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
884
|
-
},
|
|
885
|
-
displayable: function displayable() {
|
|
886
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
887
|
-
},
|
|
888
|
-
formatHsl: function formatHsl() {
|
|
889
|
-
var a = this.opacity;
|
|
890
|
-
a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
|
|
891
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
892
|
-
}
|
|
893
|
-
}));
|
|
894
|
-
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
895
|
-
|
|
896
|
-
function hsl2rgb(h, m1, m2) {
|
|
897
|
-
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
/***/ }),
|
|
901
|
-
|
|
902
|
-
/***/ 1820:
|
|
903
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
904
|
-
|
|
905
|
-
"use strict";
|
|
906
|
-
|
|
907
|
-
// EXPORTS
|
|
908
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
909
|
-
"Z": () => (/* binding */ linear_linear)
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
// UNUSED EXPORTS: linearish
|
|
913
|
-
|
|
914
|
-
;// CONCATENATED MODULE: ./node_modules/d3-array/src/ticks.js
|
|
915
|
-
var e10 = Math.sqrt(50),
|
|
916
|
-
e5 = Math.sqrt(10),
|
|
917
|
-
e2 = Math.sqrt(2);
|
|
918
|
-
/* harmony default export */ function ticks(start, stop, count) {
|
|
919
|
-
var reverse,
|
|
920
|
-
i = -1,
|
|
921
|
-
n,
|
|
922
|
-
ticks,
|
|
923
|
-
step;
|
|
924
|
-
stop = +stop, start = +start, count = +count;
|
|
925
|
-
if (start === stop && count > 0) return [start];
|
|
926
|
-
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
927
|
-
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
928
|
-
|
|
929
|
-
if (step > 0) {
|
|
930
|
-
var r0 = Math.round(start / step),
|
|
931
|
-
r1 = Math.round(stop / step);
|
|
932
|
-
if (r0 * step < start) ++r0;
|
|
933
|
-
if (r1 * step > stop) --r1;
|
|
934
|
-
ticks = new Array(n = r1 - r0 + 1);
|
|
935
|
-
|
|
936
|
-
while (++i < n) {
|
|
937
|
-
ticks[i] = (r0 + i) * step;
|
|
938
|
-
}
|
|
939
|
-
} else {
|
|
940
|
-
step = -step;
|
|
941
|
-
|
|
942
|
-
var _r = Math.round(start * step),
|
|
943
|
-
_r2 = Math.round(stop * step);
|
|
944
|
-
|
|
945
|
-
if (_r / step < start) ++_r;
|
|
946
|
-
if (_r2 / step > stop) --_r2;
|
|
947
|
-
ticks = new Array(n = _r2 - _r + 1);
|
|
948
|
-
|
|
949
|
-
while (++i < n) {
|
|
950
|
-
ticks[i] = (_r + i) / step;
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
if (reverse) ticks.reverse();
|
|
955
|
-
return ticks;
|
|
956
|
-
}
|
|
957
|
-
function tickIncrement(start, stop, count) {
|
|
958
|
-
var step = (stop - start) / Math.max(0, count),
|
|
959
|
-
power = Math.floor(Math.log(step) / Math.LN10),
|
|
960
|
-
error = step / Math.pow(10, power);
|
|
961
|
-
return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
962
|
-
}
|
|
963
|
-
function tickStep(start, stop, count) {
|
|
964
|
-
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
965
|
-
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
966
|
-
error = step0 / step1;
|
|
967
|
-
if (error >= e10) step1 *= 10;else if (error >= e5) step1 *= 5;else if (error >= e2) step1 *= 2;
|
|
968
|
-
return stop < start ? -step1 : step1;
|
|
969
|
-
}
|
|
970
|
-
;// CONCATENATED MODULE: ./node_modules/d3-array/src/ascending.js
|
|
971
|
-
/* harmony default export */ function ascending(a, b) {
|
|
972
|
-
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
973
|
-
}
|
|
974
|
-
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisector.js
|
|
975
|
-
|
|
976
|
-
/* harmony default export */ function bisector(f) {
|
|
977
|
-
var delta = f;
|
|
978
|
-
var compare = f;
|
|
979
|
-
|
|
980
|
-
if (f.length === 1) {
|
|
981
|
-
delta = function delta(d, x) {
|
|
982
|
-
return f(d) - x;
|
|
983
|
-
};
|
|
984
|
-
|
|
985
|
-
compare = ascendingComparator(f);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
function left(a, x, lo, hi) {
|
|
989
|
-
if (lo == null) lo = 0;
|
|
990
|
-
if (hi == null) hi = a.length;
|
|
991
|
-
|
|
992
|
-
while (lo < hi) {
|
|
993
|
-
var mid = lo + hi >>> 1;
|
|
994
|
-
if (compare(a[mid], x) < 0) lo = mid + 1;else hi = mid;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
return lo;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
function right(a, x, lo, hi) {
|
|
1001
|
-
if (lo == null) lo = 0;
|
|
1002
|
-
if (hi == null) hi = a.length;
|
|
1003
|
-
|
|
1004
|
-
while (lo < hi) {
|
|
1005
|
-
var mid = lo + hi >>> 1;
|
|
1006
|
-
if (compare(a[mid], x) > 0) hi = mid;else lo = mid + 1;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
return lo;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
function center(a, x, lo, hi) {
|
|
1013
|
-
if (lo == null) lo = 0;
|
|
1014
|
-
if (hi == null) hi = a.length;
|
|
1015
|
-
var i = left(a, x, lo, hi - 1);
|
|
1016
|
-
return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
return {
|
|
1020
|
-
left: left,
|
|
1021
|
-
center: center,
|
|
1022
|
-
right: right
|
|
1023
|
-
};
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
function ascendingComparator(f) {
|
|
1027
|
-
return function (d, x) {
|
|
1028
|
-
return ascending(f(d), x);
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
1032
|
-
var regenerator = __webpack_require__(9673);
|
|
1033
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
1034
|
-
;// CONCATENATED MODULE: ./node_modules/d3-array/src/number.js
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
var _marked = /*#__PURE__*/regenerator_default().mark(numbers);
|
|
1038
|
-
|
|
1039
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
1040
|
-
|
|
1041
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
1042
|
-
|
|
1043
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1044
|
-
|
|
1045
|
-
/* harmony default export */ function number(x) {
|
|
1046
|
-
return x === null ? NaN : +x;
|
|
1047
|
-
}
|
|
1048
|
-
function numbers(values, valueof) {
|
|
1049
|
-
var _iterator, _step, value, index, _iterator2, _step2, _value;
|
|
1050
|
-
|
|
1051
|
-
return regenerator_default().wrap(function numbers$(_context) {
|
|
1052
|
-
while (1) {
|
|
1053
|
-
switch (_context.prev = _context.next) {
|
|
1054
|
-
case 0:
|
|
1055
|
-
if (!(valueof === undefined)) {
|
|
1056
|
-
_context.next = 21;
|
|
1057
|
-
break;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
_iterator = _createForOfIteratorHelper(values);
|
|
1061
|
-
_context.prev = 2;
|
|
1062
|
-
|
|
1063
|
-
_iterator.s();
|
|
1064
|
-
|
|
1065
|
-
case 4:
|
|
1066
|
-
if ((_step = _iterator.n()).done) {
|
|
1067
|
-
_context.next = 11;
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
value = _step.value;
|
|
1072
|
-
|
|
1073
|
-
if (!(value != null && (value = +value) >= value)) {
|
|
1074
|
-
_context.next = 9;
|
|
1075
|
-
break;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
_context.next = 9;
|
|
1079
|
-
return value;
|
|
1080
|
-
|
|
1081
|
-
case 9:
|
|
1082
|
-
_context.next = 4;
|
|
1083
|
-
break;
|
|
1084
|
-
|
|
1085
|
-
case 11:
|
|
1086
|
-
_context.next = 16;
|
|
1087
|
-
break;
|
|
1088
|
-
|
|
1089
|
-
case 13:
|
|
1090
|
-
_context.prev = 13;
|
|
1091
|
-
_context.t0 = _context["catch"](2);
|
|
1092
|
-
|
|
1093
|
-
_iterator.e(_context.t0);
|
|
1094
|
-
|
|
1095
|
-
case 16:
|
|
1096
|
-
_context.prev = 16;
|
|
1097
|
-
|
|
1098
|
-
_iterator.f();
|
|
1099
|
-
|
|
1100
|
-
return _context.finish(16);
|
|
1101
|
-
|
|
1102
|
-
case 19:
|
|
1103
|
-
_context.next = 40;
|
|
1104
|
-
break;
|
|
1105
|
-
|
|
1106
|
-
case 21:
|
|
1107
|
-
index = -1;
|
|
1108
|
-
_iterator2 = _createForOfIteratorHelper(values);
|
|
1109
|
-
_context.prev = 23;
|
|
1110
|
-
|
|
1111
|
-
_iterator2.s();
|
|
1112
|
-
|
|
1113
|
-
case 25:
|
|
1114
|
-
if ((_step2 = _iterator2.n()).done) {
|
|
1115
|
-
_context.next = 32;
|
|
1116
|
-
break;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
_value = _step2.value;
|
|
1120
|
-
|
|
1121
|
-
if (!((_value = valueof(_value, ++index, values)) != null && (_value = +_value) >= _value)) {
|
|
1122
|
-
_context.next = 30;
|
|
1123
|
-
break;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
_context.next = 30;
|
|
1127
|
-
return _value;
|
|
1128
|
-
|
|
1129
|
-
case 30:
|
|
1130
|
-
_context.next = 25;
|
|
1131
|
-
break;
|
|
1132
|
-
|
|
1133
|
-
case 32:
|
|
1134
|
-
_context.next = 37;
|
|
1135
|
-
break;
|
|
1136
|
-
|
|
1137
|
-
case 34:
|
|
1138
|
-
_context.prev = 34;
|
|
1139
|
-
_context.t1 = _context["catch"](23);
|
|
1140
|
-
|
|
1141
|
-
_iterator2.e(_context.t1);
|
|
1142
|
-
|
|
1143
|
-
case 37:
|
|
1144
|
-
_context.prev = 37;
|
|
1145
|
-
|
|
1146
|
-
_iterator2.f();
|
|
1147
|
-
|
|
1148
|
-
return _context.finish(37);
|
|
1149
|
-
|
|
1150
|
-
case 40:
|
|
1151
|
-
case "end":
|
|
1152
|
-
return _context.stop();
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
}, _marked, null, [[2, 13, 16, 19], [23, 34, 37, 40]]);
|
|
1156
|
-
}
|
|
1157
|
-
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisect.js
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
var ascendingBisect = bisector(ascending);
|
|
1162
|
-
var bisectRight = ascendingBisect.right;
|
|
1163
|
-
var bisectLeft = ascendingBisect.left;
|
|
1164
|
-
var bisectCenter = bisector(number).center;
|
|
1165
|
-
/* harmony default export */ const bisect = (bisectRight);
|
|
1166
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1167
|
-
var esm_typeof = __webpack_require__(4329);
|
|
1168
|
-
// EXTERNAL MODULE: ./node_modules/d3-color/src/color.js + 1 modules
|
|
1169
|
-
var src_color = __webpack_require__(2766);
|
|
1170
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basis.js
|
|
1171
|
-
function basis(t1, v0, v1, v2, v3) {
|
|
1172
|
-
var t2 = t1 * t1,
|
|
1173
|
-
t3 = t2 * t1;
|
|
1174
|
-
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
1175
|
-
}
|
|
1176
|
-
/* harmony default export */ function src_basis(values) {
|
|
1177
|
-
var n = values.length - 1;
|
|
1178
|
-
return function (t) {
|
|
1179
|
-
var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
|
|
1180
|
-
v1 = values[i],
|
|
1181
|
-
v2 = values[i + 1],
|
|
1182
|
-
v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
|
|
1183
|
-
v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
|
|
1184
|
-
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/basisClosed.js
|
|
1188
|
-
|
|
1189
|
-
/* harmony default export */ function basisClosed(values) {
|
|
1190
|
-
var n = values.length;
|
|
1191
|
-
return function (t) {
|
|
1192
|
-
var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
|
|
1193
|
-
v0 = values[(i + n - 1) % n],
|
|
1194
|
-
v1 = values[i % n],
|
|
1195
|
-
v2 = values[(i + 1) % n],
|
|
1196
|
-
v3 = values[(i + 2) % n];
|
|
1197
|
-
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/constant.js
|
|
1201
|
-
/* harmony default export */ const src_constant = (function (x) {
|
|
1202
|
-
return function () {
|
|
1203
|
-
return x;
|
|
1204
|
-
};
|
|
1205
|
-
});
|
|
1206
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/color.js
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
function linear(a, d) {
|
|
1210
|
-
return function (t) {
|
|
1211
|
-
return a + t * d;
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
function exponential(a, b, y) {
|
|
1216
|
-
return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function (t) {
|
|
1217
|
-
return Math.pow(a + t * b, y);
|
|
1218
|
-
};
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
function hue(a, b) {
|
|
1222
|
-
var d = b - a;
|
|
1223
|
-
return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
|
|
1224
|
-
}
|
|
1225
|
-
function gamma(y) {
|
|
1226
|
-
return (y = +y) === 1 ? nogamma : function (a, b) {
|
|
1227
|
-
return b - a ? exponential(a, b, y) : src_constant(isNaN(a) ? b : a);
|
|
1228
|
-
};
|
|
1229
|
-
}
|
|
1230
|
-
function nogamma(a, b) {
|
|
1231
|
-
var d = b - a;
|
|
1232
|
-
return d ? linear(a, d) : src_constant(isNaN(a) ? b : a);
|
|
1233
|
-
}
|
|
1234
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/rgb.js
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
/* harmony default export */ const rgb = ((function rgbGamma(y) {
|
|
1240
|
-
var color = gamma(y);
|
|
1241
|
-
|
|
1242
|
-
function rgb(start, end) {
|
|
1243
|
-
var r = color((start = (0,src_color/* rgb */.B8)(start)).r, (end = (0,src_color/* rgb */.B8)(end)).r),
|
|
1244
|
-
g = color(start.g, end.g),
|
|
1245
|
-
b = color(start.b, end.b),
|
|
1246
|
-
opacity = nogamma(start.opacity, end.opacity);
|
|
1247
|
-
return function (t) {
|
|
1248
|
-
start.r = r(t);
|
|
1249
|
-
start.g = g(t);
|
|
1250
|
-
start.b = b(t);
|
|
1251
|
-
start.opacity = opacity(t);
|
|
1252
|
-
return start + "";
|
|
1253
|
-
};
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
rgb.gamma = rgbGamma;
|
|
1257
|
-
return rgb;
|
|
1258
|
-
})(1));
|
|
1259
|
-
|
|
1260
|
-
function rgbSpline(spline) {
|
|
1261
|
-
return function (colors) {
|
|
1262
|
-
var n = colors.length,
|
|
1263
|
-
r = new Array(n),
|
|
1264
|
-
g = new Array(n),
|
|
1265
|
-
b = new Array(n),
|
|
1266
|
-
i,
|
|
1267
|
-
color;
|
|
1268
|
-
|
|
1269
|
-
for (i = 0; i < n; ++i) {
|
|
1270
|
-
color = (0,src_color/* rgb */.B8)(colors[i]);
|
|
1271
|
-
r[i] = color.r || 0;
|
|
1272
|
-
g[i] = color.g || 0;
|
|
1273
|
-
b[i] = color.b || 0;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
r = spline(r);
|
|
1277
|
-
g = spline(g);
|
|
1278
|
-
b = spline(b);
|
|
1279
|
-
color.opacity = 1;
|
|
1280
|
-
return function (t) {
|
|
1281
|
-
color.r = r(t);
|
|
1282
|
-
color.g = g(t);
|
|
1283
|
-
color.b = b(t);
|
|
1284
|
-
return color + "";
|
|
1285
|
-
};
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
var rgbBasis = rgbSpline(src_basis);
|
|
1290
|
-
var rgbBasisClosed = rgbSpline(basisClosed);
|
|
1291
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/array.js
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
/* harmony default export */ function array(a, b) {
|
|
1295
|
-
return (isNumberArray(b) ? numberArray : genericArray)(a, b);
|
|
1296
|
-
}
|
|
1297
|
-
function genericArray(a, b) {
|
|
1298
|
-
var nb = b ? b.length : 0,
|
|
1299
|
-
na = a ? Math.min(nb, a.length) : 0,
|
|
1300
|
-
x = new Array(na),
|
|
1301
|
-
c = new Array(nb),
|
|
1302
|
-
i;
|
|
1303
|
-
|
|
1304
|
-
for (i = 0; i < na; ++i) {
|
|
1305
|
-
x[i] = value(a[i], b[i]);
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
for (; i < nb; ++i) {
|
|
1309
|
-
c[i] = b[i];
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
return function (t) {
|
|
1313
|
-
for (i = 0; i < na; ++i) {
|
|
1314
|
-
c[i] = x[i](t);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
return c;
|
|
1318
|
-
};
|
|
1319
|
-
}
|
|
1320
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/date.js
|
|
1321
|
-
/* harmony default export */ function date(a, b) {
|
|
1322
|
-
var d = new Date();
|
|
1323
|
-
return a = +a, b = +b, function (t) {
|
|
1324
|
-
return d.setTime(a * (1 - t) + b * t), d;
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/number.js
|
|
1328
|
-
/* harmony default export */ function src_number(a, b) {
|
|
1329
|
-
return a = +a, b = +b, function (t) {
|
|
1330
|
-
return a * (1 - t) + b * t;
|
|
1331
|
-
};
|
|
1332
|
-
}
|
|
1333
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/object.js
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
/* harmony default export */ function object(a, b) {
|
|
1337
|
-
var i = {},
|
|
1338
|
-
c = {},
|
|
1339
|
-
k;
|
|
1340
|
-
if (a === null || (0,esm_typeof/* default */.Z)(a) !== "object") a = {};
|
|
1341
|
-
if (b === null || (0,esm_typeof/* default */.Z)(b) !== "object") b = {};
|
|
1342
|
-
|
|
1343
|
-
for (k in b) {
|
|
1344
|
-
if (k in a) {
|
|
1345
|
-
i[k] = value(a[k], b[k]);
|
|
1346
|
-
} else {
|
|
1347
|
-
c[k] = b[k];
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
return function (t) {
|
|
1352
|
-
for (k in i) {
|
|
1353
|
-
c[k] = i[k](t);
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
return c;
|
|
1357
|
-
};
|
|
1358
|
-
}
|
|
1359
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/string.js
|
|
1360
|
-
|
|
1361
|
-
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
|
|
1362
|
-
reB = new RegExp(reA.source, "g");
|
|
1363
|
-
|
|
1364
|
-
function zero(b) {
|
|
1365
|
-
return function () {
|
|
1366
|
-
return b;
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
function one(b) {
|
|
1371
|
-
return function (t) {
|
|
1372
|
-
return b(t) + "";
|
|
1373
|
-
};
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
/* harmony default export */ function string(a, b) {
|
|
1377
|
-
var bi = reA.lastIndex = reB.lastIndex = 0,
|
|
1378
|
-
// scan index for next number in b
|
|
1379
|
-
am,
|
|
1380
|
-
// current match in a
|
|
1381
|
-
bm,
|
|
1382
|
-
// current match in b
|
|
1383
|
-
bs,
|
|
1384
|
-
// string preceding current number in b, if any
|
|
1385
|
-
i = -1,
|
|
1386
|
-
// index in s
|
|
1387
|
-
s = [],
|
|
1388
|
-
// string constants and placeholders
|
|
1389
|
-
q = []; // number interpolators
|
|
1390
|
-
// Coerce inputs to strings.
|
|
1391
|
-
|
|
1392
|
-
a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b.
|
|
1393
|
-
|
|
1394
|
-
while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
|
|
1395
|
-
if ((bs = bm.index) > bi) {
|
|
1396
|
-
// a string precedes the next number in b
|
|
1397
|
-
bs = b.slice(bi, bs);
|
|
1398
|
-
if (s[i]) s[i] += bs; // coalesce with previous string
|
|
1399
|
-
else s[++i] = bs;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
if ((am = am[0]) === (bm = bm[0])) {
|
|
1403
|
-
// numbers in a & b match
|
|
1404
|
-
if (s[i]) s[i] += bm; // coalesce with previous string
|
|
1405
|
-
else s[++i] = bm;
|
|
1406
|
-
} else {
|
|
1407
|
-
// interpolate non-matching numbers
|
|
1408
|
-
s[++i] = null;
|
|
1409
|
-
q.push({
|
|
1410
|
-
i: i,
|
|
1411
|
-
x: src_number(am, bm)
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
bi = reB.lastIndex;
|
|
1416
|
-
} // Add remains of b.
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
if (bi < b.length) {
|
|
1420
|
-
bs = b.slice(bi);
|
|
1421
|
-
if (s[i]) s[i] += bs; // coalesce with previous string
|
|
1422
|
-
else s[++i] = bs;
|
|
1423
|
-
} // Special optimization for only a single match.
|
|
1424
|
-
// Otherwise, interpolate each of the numbers and rejoin the string.
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function (t) {
|
|
1428
|
-
for (var i = 0, o; i < b; ++i) {
|
|
1429
|
-
s[(o = q[i]).i] = o.x(t);
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
return s.join("");
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/numberArray.js
|
|
1436
|
-
/* harmony default export */ function src_numberArray(a, b) {
|
|
1437
|
-
if (!b) b = [];
|
|
1438
|
-
var n = a ? Math.min(b.length, a.length) : 0,
|
|
1439
|
-
c = b.slice(),
|
|
1440
|
-
i;
|
|
1441
|
-
return function (t) {
|
|
1442
|
-
for (i = 0; i < n; ++i) {
|
|
1443
|
-
c[i] = a[i] * (1 - t) + b[i] * t;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
return c;
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
function numberArray_isNumberArray(x) {
|
|
1450
|
-
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
1451
|
-
}
|
|
1452
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/value.js
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
/* harmony default export */ function value(a, b) {
|
|
1464
|
-
var t = (0,esm_typeof/* default */.Z)(b),
|
|
1465
|
-
c;
|
|
1466
|
-
|
|
1467
|
-
return b == null || t === "boolean" ? src_constant(b) : (t === "number" ? src_number : t === "string" ? (c = (0,src_color/* default */.ZP)(b)) ? (b = c, rgb) : string : b instanceof src_color/* default */.ZP ? rgb : b instanceof Date ? date : numberArray_isNumberArray(b) ? src_numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : src_number)(a, b);
|
|
1468
|
-
}
|
|
1469
|
-
;// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/round.js
|
|
1470
|
-
/* harmony default export */ function round(a, b) {
|
|
1471
|
-
return a = +a, b = +b, function (t) {
|
|
1472
|
-
return Math.round(a * (1 - t) + b * t);
|
|
1473
|
-
};
|
|
1474
|
-
}
|
|
1475
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/constant.js
|
|
1476
|
-
function constants(x) {
|
|
1477
|
-
return function () {
|
|
1478
|
-
return x;
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/number.js
|
|
1482
|
-
function number_number(x) {
|
|
1483
|
-
return +x;
|
|
1484
|
-
}
|
|
1485
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/continuous.js
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
var unit = [0, 1];
|
|
1491
|
-
function identity(x) {
|
|
1492
|
-
return x;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
function normalize(a, b) {
|
|
1496
|
-
return (b -= a = +a) ? function (x) {
|
|
1497
|
-
return (x - a) / b;
|
|
1498
|
-
} : constants(isNaN(b) ? NaN : 0.5);
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
function clamper(a, b) {
|
|
1502
|
-
var t;
|
|
1503
|
-
if (a > b) t = a, a = b, b = t;
|
|
1504
|
-
return function (x) {
|
|
1505
|
-
return Math.max(a, Math.min(b, x));
|
|
1506
|
-
};
|
|
1507
|
-
} // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
|
|
1508
|
-
// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
function bimap(domain, range, interpolate) {
|
|
1512
|
-
var d0 = domain[0],
|
|
1513
|
-
d1 = domain[1],
|
|
1514
|
-
r0 = range[0],
|
|
1515
|
-
r1 = range[1];
|
|
1516
|
-
if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
|
|
1517
|
-
return function (x) {
|
|
1518
|
-
return r0(d0(x));
|
|
1519
|
-
};
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
function polymap(domain, range, interpolate) {
|
|
1523
|
-
var j = Math.min(domain.length, range.length) - 1,
|
|
1524
|
-
d = new Array(j),
|
|
1525
|
-
r = new Array(j),
|
|
1526
|
-
i = -1; // Reverse descending domains.
|
|
1527
|
-
|
|
1528
|
-
if (domain[j] < domain[0]) {
|
|
1529
|
-
domain = domain.slice().reverse();
|
|
1530
|
-
range = range.slice().reverse();
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
while (++i < j) {
|
|
1534
|
-
d[i] = normalize(domain[i], domain[i + 1]);
|
|
1535
|
-
r[i] = interpolate(range[i], range[i + 1]);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
return function (x) {
|
|
1539
|
-
var i = bisect(domain, x, 1, j) - 1;
|
|
1540
|
-
return r[i](d[i](x));
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
function copy(source, target) {
|
|
1545
|
-
return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
|
|
1546
|
-
}
|
|
1547
|
-
function transformer() {
|
|
1548
|
-
var domain = unit,
|
|
1549
|
-
range = unit,
|
|
1550
|
-
interpolate = value,
|
|
1551
|
-
transform,
|
|
1552
|
-
untransform,
|
|
1553
|
-
unknown,
|
|
1554
|
-
clamp = identity,
|
|
1555
|
-
piecewise,
|
|
1556
|
-
output,
|
|
1557
|
-
input;
|
|
1558
|
-
|
|
1559
|
-
function rescale() {
|
|
1560
|
-
var n = Math.min(domain.length, range.length);
|
|
1561
|
-
if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);
|
|
1562
|
-
piecewise = n > 2 ? polymap : bimap;
|
|
1563
|
-
output = input = null;
|
|
1564
|
-
return scale;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
function scale(x) {
|
|
1568
|
-
return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
scale.invert = function (y) {
|
|
1572
|
-
return clamp(untransform((input || (input = piecewise(range, domain.map(transform), src_number)))(y)));
|
|
1573
|
-
};
|
|
1574
|
-
|
|
1575
|
-
scale.domain = function (_) {
|
|
1576
|
-
return arguments.length ? (domain = Array.from(_, number_number), rescale()) : domain.slice();
|
|
1577
|
-
};
|
|
1578
|
-
|
|
1579
|
-
scale.range = function (_) {
|
|
1580
|
-
return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
scale.rangeRound = function (_) {
|
|
1584
|
-
return range = Array.from(_), interpolate = round, rescale();
|
|
1585
|
-
};
|
|
1586
|
-
|
|
1587
|
-
scale.clamp = function (_) {
|
|
1588
|
-
return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
scale.interpolate = function (_) {
|
|
1592
|
-
return arguments.length ? (interpolate = _, rescale()) : interpolate;
|
|
1593
|
-
};
|
|
1594
|
-
|
|
1595
|
-
scale.unknown = function (_) {
|
|
1596
|
-
return arguments.length ? (unknown = _, scale) : unknown;
|
|
1597
|
-
};
|
|
1598
|
-
|
|
1599
|
-
return function (t, u) {
|
|
1600
|
-
transform = t, untransform = u;
|
|
1601
|
-
return rescale();
|
|
1602
|
-
};
|
|
1603
|
-
}
|
|
1604
|
-
function continuous() {
|
|
1605
|
-
return transformer()(identity, identity);
|
|
1606
|
-
}
|
|
1607
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/init.js
|
|
1608
|
-
function initRange(domain, range) {
|
|
1609
|
-
switch (arguments.length) {
|
|
1610
|
-
case 0:
|
|
1611
|
-
break;
|
|
1612
|
-
|
|
1613
|
-
case 1:
|
|
1614
|
-
this.range(domain);
|
|
1615
|
-
break;
|
|
1616
|
-
|
|
1617
|
-
default:
|
|
1618
|
-
this.range(range).domain(domain);
|
|
1619
|
-
break;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
return this;
|
|
1623
|
-
}
|
|
1624
|
-
function initInterpolator(domain, interpolator) {
|
|
1625
|
-
switch (arguments.length) {
|
|
1626
|
-
case 0:
|
|
1627
|
-
break;
|
|
1628
|
-
|
|
1629
|
-
case 1:
|
|
1630
|
-
{
|
|
1631
|
-
if (typeof domain === "function") this.interpolator(domain);else this.range(domain);
|
|
1632
|
-
break;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
default:
|
|
1636
|
-
{
|
|
1637
|
-
this.domain(domain);
|
|
1638
|
-
if (typeof interpolator === "function") this.interpolator(interpolator);else this.range(interpolator);
|
|
1639
|
-
break;
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
return this;
|
|
1644
|
-
}
|
|
1645
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatSpecifier.js
|
|
1646
|
-
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
1647
|
-
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
1648
|
-
function formatSpecifier(specifier) {
|
|
1649
|
-
if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
|
|
1650
|
-
var match;
|
|
1651
|
-
return new FormatSpecifier({
|
|
1652
|
-
fill: match[1],
|
|
1653
|
-
align: match[2],
|
|
1654
|
-
sign: match[3],
|
|
1655
|
-
symbol: match[4],
|
|
1656
|
-
zero: match[5],
|
|
1657
|
-
width: match[6],
|
|
1658
|
-
comma: match[7],
|
|
1659
|
-
precision: match[8] && match[8].slice(1),
|
|
1660
|
-
trim: match[9],
|
|
1661
|
-
type: match[10]
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
|
|
1665
|
-
|
|
1666
|
-
function FormatSpecifier(specifier) {
|
|
1667
|
-
this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
|
|
1668
|
-
this.align = specifier.align === undefined ? ">" : specifier.align + "";
|
|
1669
|
-
this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
|
|
1670
|
-
this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
|
|
1671
|
-
this.zero = !!specifier.zero;
|
|
1672
|
-
this.width = specifier.width === undefined ? undefined : +specifier.width;
|
|
1673
|
-
this.comma = !!specifier.comma;
|
|
1674
|
-
this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
|
|
1675
|
-
this.trim = !!specifier.trim;
|
|
1676
|
-
this.type = specifier.type === undefined ? "" : specifier.type + "";
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
FormatSpecifier.prototype.toString = function () {
|
|
1680
|
-
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === undefined ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
1681
|
-
};
|
|
1682
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatDecimal.js
|
|
1683
|
-
/* harmony default export */ function formatDecimal(x) {
|
|
1684
|
-
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
1685
|
-
} // Computes the decimal coefficient and exponent of the specified number x with
|
|
1686
|
-
// significant digits p, where x is positive and p is in [1, 21] or undefined.
|
|
1687
|
-
// For example, formatDecimalParts(1.23) returns ["123", 0].
|
|
1688
|
-
|
|
1689
|
-
function formatDecimalParts(x, p) {
|
|
1690
|
-
if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
|
|
1691
|
-
|
|
1692
|
-
var i,
|
|
1693
|
-
coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
|
|
1694
|
-
// (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
|
|
1695
|
-
|
|
1696
|
-
return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
|
|
1697
|
-
}
|
|
1698
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/exponent.js
|
|
1699
|
-
|
|
1700
|
-
/* harmony default export */ function exponent(x) {
|
|
1701
|
-
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
1702
|
-
}
|
|
1703
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionPrefix.js
|
|
1704
|
-
|
|
1705
|
-
/* harmony default export */ function precisionPrefix(step, value) {
|
|
1706
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
|
|
1707
|
-
}
|
|
1708
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatGroup.js
|
|
1709
|
-
/* harmony default export */ function formatGroup(grouping, thousands) {
|
|
1710
|
-
return function (value, width) {
|
|
1711
|
-
var i = value.length,
|
|
1712
|
-
t = [],
|
|
1713
|
-
j = 0,
|
|
1714
|
-
g = grouping[0],
|
|
1715
|
-
length = 0;
|
|
1716
|
-
|
|
1717
|
-
while (i > 0 && g > 0) {
|
|
1718
|
-
if (length + g + 1 > width) g = Math.max(1, width - length);
|
|
1719
|
-
t.push(value.substring(i -= g, i + g));
|
|
1720
|
-
if ((length += g + 1) > width) break;
|
|
1721
|
-
g = grouping[j = (j + 1) % grouping.length];
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
return t.reverse().join(thousands);
|
|
1725
|
-
};
|
|
1726
|
-
}
|
|
1727
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatNumerals.js
|
|
1728
|
-
/* harmony default export */ function formatNumerals(numerals) {
|
|
1729
|
-
return function (value) {
|
|
1730
|
-
return value.replace(/[0-9]/g, function (i) {
|
|
1731
|
-
return numerals[+i];
|
|
1732
|
-
});
|
|
1733
|
-
};
|
|
1734
|
-
}
|
|
1735
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTrim.js
|
|
1736
|
-
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
1737
|
-
/* harmony default export */ function formatTrim(s) {
|
|
1738
|
-
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
1739
|
-
switch (s[i]) {
|
|
1740
|
-
case ".":
|
|
1741
|
-
i0 = i1 = i;
|
|
1742
|
-
break;
|
|
1743
|
-
|
|
1744
|
-
case "0":
|
|
1745
|
-
if (i0 === 0) i0 = i;
|
|
1746
|
-
i1 = i;
|
|
1747
|
-
break;
|
|
1748
|
-
|
|
1749
|
-
default:
|
|
1750
|
-
if (!+s[i]) break out;
|
|
1751
|
-
if (i0 > 0) i0 = 0;
|
|
1752
|
-
break;
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
1757
|
-
}
|
|
1758
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatPrefixAuto.js
|
|
1759
|
-
|
|
1760
|
-
var prefixExponent;
|
|
1761
|
-
/* harmony default export */ function formatPrefixAuto(x, p) {
|
|
1762
|
-
var d = formatDecimalParts(x, p);
|
|
1763
|
-
if (!d) return x + "";
|
|
1764
|
-
var coefficient = d[0],
|
|
1765
|
-
exponent = d[1],
|
|
1766
|
-
i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
|
|
1767
|
-
n = coefficient.length;
|
|
1768
|
-
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
|
|
1769
|
-
}
|
|
1770
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatRounded.js
|
|
1771
|
-
|
|
1772
|
-
/* harmony default export */ function formatRounded(x, p) {
|
|
1773
|
-
var d = formatDecimalParts(x, p);
|
|
1774
|
-
if (!d) return x + "";
|
|
1775
|
-
var coefficient = d[0],
|
|
1776
|
-
exponent = d[1];
|
|
1777
|
-
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
1778
|
-
}
|
|
1779
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/formatTypes.js
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
/* harmony default export */ const formatTypes = ({
|
|
1784
|
-
"%": function _(x, p) {
|
|
1785
|
-
return (x * 100).toFixed(p);
|
|
1786
|
-
},
|
|
1787
|
-
"b": function b(x) {
|
|
1788
|
-
return Math.round(x).toString(2);
|
|
1789
|
-
},
|
|
1790
|
-
"c": function c(x) {
|
|
1791
|
-
return x + "";
|
|
1792
|
-
},
|
|
1793
|
-
"d": formatDecimal,
|
|
1794
|
-
"e": function e(x, p) {
|
|
1795
|
-
return x.toExponential(p);
|
|
1796
|
-
},
|
|
1797
|
-
"f": function f(x, p) {
|
|
1798
|
-
return x.toFixed(p);
|
|
1799
|
-
},
|
|
1800
|
-
"g": function g(x, p) {
|
|
1801
|
-
return x.toPrecision(p);
|
|
1802
|
-
},
|
|
1803
|
-
"o": function o(x) {
|
|
1804
|
-
return Math.round(x).toString(8);
|
|
1805
|
-
},
|
|
1806
|
-
"p": function p(x, _p) {
|
|
1807
|
-
return formatRounded(x * 100, _p);
|
|
1808
|
-
},
|
|
1809
|
-
"r": formatRounded,
|
|
1810
|
-
"s": formatPrefixAuto,
|
|
1811
|
-
"X": function X(x) {
|
|
1812
|
-
return Math.round(x).toString(16).toUpperCase();
|
|
1813
|
-
},
|
|
1814
|
-
"x": function x(_x) {
|
|
1815
|
-
return Math.round(_x).toString(16);
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/identity.js
|
|
1819
|
-
/* harmony default export */ function src_identity(x) {
|
|
1820
|
-
return x;
|
|
1821
|
-
}
|
|
1822
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/locale.js
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
var map = Array.prototype.map,
|
|
1832
|
-
prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
1833
|
-
/* harmony default export */ function locale(locale) {
|
|
1834
|
-
var group = locale.grouping === undefined || locale.thousands === undefined ? src_identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
1835
|
-
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
1836
|
-
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
1837
|
-
decimal = locale.decimal === undefined ? "." : locale.decimal + "",
|
|
1838
|
-
numerals = locale.numerals === undefined ? src_identity : formatNumerals(map.call(locale.numerals, String)),
|
|
1839
|
-
percent = locale.percent === undefined ? "%" : locale.percent + "",
|
|
1840
|
-
minus = locale.minus === undefined ? "-" : locale.minus + "",
|
|
1841
|
-
nan = locale.nan === undefined ? "NaN" : locale.nan + "";
|
|
1842
|
-
|
|
1843
|
-
function newFormat(specifier) {
|
|
1844
|
-
specifier = formatSpecifier(specifier);
|
|
1845
|
-
var fill = specifier.fill,
|
|
1846
|
-
align = specifier.align,
|
|
1847
|
-
sign = specifier.sign,
|
|
1848
|
-
symbol = specifier.symbol,
|
|
1849
|
-
zero = specifier.zero,
|
|
1850
|
-
width = specifier.width,
|
|
1851
|
-
comma = specifier.comma,
|
|
1852
|
-
precision = specifier.precision,
|
|
1853
|
-
trim = specifier.trim,
|
|
1854
|
-
type = specifier.type; // The "n" type is an alias for ",g".
|
|
1855
|
-
|
|
1856
|
-
if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g".
|
|
1857
|
-
else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits.
|
|
1858
|
-
|
|
1859
|
-
if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "="; // Compute the prefix and suffix.
|
|
1860
|
-
// For SI-prefix, the suffix is lazily computed.
|
|
1861
|
-
|
|
1862
|
-
var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
|
|
1863
|
-
suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; // What format function should we use?
|
|
1864
|
-
// Is this an integer type?
|
|
1865
|
-
// Can this type generate exponential notation?
|
|
1866
|
-
|
|
1867
|
-
var formatType = formatTypes[type],
|
|
1868
|
-
maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,
|
|
1869
|
-
// or clamp the specified precision to the supported range.
|
|
1870
|
-
// For significant precision, it must be in [1, 21].
|
|
1871
|
-
// For fixed precision, it must be in [0, 20].
|
|
1872
|
-
|
|
1873
|
-
precision = precision === undefined ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
|
|
1874
|
-
|
|
1875
|
-
function format(value) {
|
|
1876
|
-
var valuePrefix = prefix,
|
|
1877
|
-
valueSuffix = suffix,
|
|
1878
|
-
i,
|
|
1879
|
-
n,
|
|
1880
|
-
c;
|
|
1881
|
-
|
|
1882
|
-
if (type === "c") {
|
|
1883
|
-
valueSuffix = formatType(value) + valueSuffix;
|
|
1884
|
-
value = "";
|
|
1885
|
-
} else {
|
|
1886
|
-
value = +value; // Determine the sign. -0 is not less than 0, but 1 / -0 is!
|
|
1887
|
-
|
|
1888
|
-
var valueNegative = value < 0 || 1 / value < 0; // Perform the initial formatting.
|
|
1889
|
-
|
|
1890
|
-
value = isNaN(value) ? nan : formatType(Math.abs(value), precision); // Trim insignificant zeros.
|
|
1891
|
-
|
|
1892
|
-
if (trim) value = formatTrim(value); // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
|
|
1893
|
-
|
|
1894
|
-
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; // Compute the prefix and suffix.
|
|
1895
|
-
|
|
1896
|
-
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
1897
|
-
valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be
|
|
1898
|
-
// grouped, and fractional or exponential “suffix” part that is not.
|
|
1899
|
-
|
|
1900
|
-
if (maybeSuffix) {
|
|
1901
|
-
i = -1, n = value.length;
|
|
1902
|
-
|
|
1903
|
-
while (++i < n) {
|
|
1904
|
-
if (c = value.charCodeAt(i), 48 > c || c > 57) {
|
|
1905
|
-
valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
|
|
1906
|
-
value = value.slice(0, i);
|
|
1907
|
-
break;
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
} // If the fill character is not "0", grouping is applied before padding.
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
if (comma && !zero) value = group(value, Infinity); // Compute the padding.
|
|
1915
|
-
|
|
1916
|
-
var length = valuePrefix.length + value.length + valueSuffix.length,
|
|
1917
|
-
padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding.
|
|
1918
|
-
|
|
1919
|
-
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment.
|
|
1920
|
-
|
|
1921
|
-
switch (align) {
|
|
1922
|
-
case "<":
|
|
1923
|
-
value = valuePrefix + value + valueSuffix + padding;
|
|
1924
|
-
break;
|
|
1925
|
-
|
|
1926
|
-
case "=":
|
|
1927
|
-
value = valuePrefix + padding + value + valueSuffix;
|
|
1928
|
-
break;
|
|
1929
|
-
|
|
1930
|
-
case "^":
|
|
1931
|
-
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
1932
|
-
break;
|
|
1933
|
-
|
|
1934
|
-
default:
|
|
1935
|
-
value = padding + valuePrefix + value + valueSuffix;
|
|
1936
|
-
break;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
return numerals(value);
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
format.toString = function () {
|
|
1943
|
-
return specifier + "";
|
|
1944
|
-
};
|
|
1945
|
-
|
|
1946
|
-
return format;
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
function formatPrefix(specifier, value) {
|
|
1950
|
-
var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
|
|
1951
|
-
e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
|
|
1952
|
-
k = Math.pow(10, -e),
|
|
1953
|
-
prefix = prefixes[8 + e / 3];
|
|
1954
|
-
return function (value) {
|
|
1955
|
-
return f(k * value) + prefix;
|
|
1956
|
-
};
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
return {
|
|
1960
|
-
format: newFormat,
|
|
1961
|
-
formatPrefix: formatPrefix
|
|
1962
|
-
};
|
|
1963
|
-
}
|
|
1964
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/defaultLocale.js
|
|
1965
|
-
|
|
1966
|
-
var defaultLocale_locale;
|
|
1967
|
-
var format;
|
|
1968
|
-
var formatPrefix;
|
|
1969
|
-
defaultLocale({
|
|
1970
|
-
decimal: ".",
|
|
1971
|
-
thousands: ",",
|
|
1972
|
-
grouping: [3],
|
|
1973
|
-
currency: ["$", ""],
|
|
1974
|
-
minus: "-"
|
|
1975
|
-
});
|
|
1976
|
-
function defaultLocale(definition) {
|
|
1977
|
-
defaultLocale_locale = locale(definition);
|
|
1978
|
-
format = defaultLocale_locale.format;
|
|
1979
|
-
formatPrefix = defaultLocale_locale.formatPrefix;
|
|
1980
|
-
return defaultLocale_locale;
|
|
1981
|
-
}
|
|
1982
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionRound.js
|
|
1983
|
-
|
|
1984
|
-
/* harmony default export */ function precisionRound(step, max) {
|
|
1985
|
-
step = Math.abs(step), max = Math.abs(max) - step;
|
|
1986
|
-
return Math.max(0, exponent(max) - exponent(step)) + 1;
|
|
1987
|
-
}
|
|
1988
|
-
;// CONCATENATED MODULE: ./node_modules/d3-format/src/precisionFixed.js
|
|
1989
|
-
|
|
1990
|
-
/* harmony default export */ function precisionFixed(step) {
|
|
1991
|
-
return Math.max(0, -exponent(Math.abs(step)));
|
|
1992
|
-
}
|
|
1993
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/tickFormat.js
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
function tickFormat(start, stop, count, specifier) {
|
|
1997
|
-
var step = tickStep(start, stop, count),
|
|
1998
|
-
precision;
|
|
1999
|
-
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
|
|
2000
|
-
|
|
2001
|
-
switch (specifier.type) {
|
|
2002
|
-
case "s":
|
|
2003
|
-
{
|
|
2004
|
-
var value = Math.max(Math.abs(start), Math.abs(stop));
|
|
2005
|
-
if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
|
|
2006
|
-
return formatPrefix(specifier, value);
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
case "":
|
|
2010
|
-
case "e":
|
|
2011
|
-
case "g":
|
|
2012
|
-
case "p":
|
|
2013
|
-
case "r":
|
|
2014
|
-
{
|
|
2015
|
-
if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
|
|
2016
|
-
break;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
case "f":
|
|
2020
|
-
case "%":
|
|
2021
|
-
{
|
|
2022
|
-
if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
|
|
2023
|
-
break;
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
return format(specifier);
|
|
2028
|
-
}
|
|
2029
|
-
;// CONCATENATED MODULE: ./node_modules/d3-scale/src/linear.js
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
function linearish(scale) {
|
|
2035
|
-
var domain = scale.domain;
|
|
2036
|
-
|
|
2037
|
-
scale.ticks = function (count) {
|
|
2038
|
-
var d = domain();
|
|
2039
|
-
return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
|
|
2040
|
-
};
|
|
2041
|
-
|
|
2042
|
-
scale.tickFormat = function (count, specifier) {
|
|
2043
|
-
var d = domain();
|
|
2044
|
-
return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
|
|
2045
|
-
};
|
|
2046
|
-
|
|
2047
|
-
scale.nice = function (count) {
|
|
2048
|
-
if (count == null) count = 10;
|
|
2049
|
-
var d = domain();
|
|
2050
|
-
var i0 = 0;
|
|
2051
|
-
var i1 = d.length - 1;
|
|
2052
|
-
var start = d[i0];
|
|
2053
|
-
var stop = d[i1];
|
|
2054
|
-
var prestep;
|
|
2055
|
-
var step;
|
|
2056
|
-
var maxIter = 10;
|
|
2057
|
-
|
|
2058
|
-
if (stop < start) {
|
|
2059
|
-
step = start, start = stop, stop = step;
|
|
2060
|
-
step = i0, i0 = i1, i1 = step;
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
while (maxIter-- > 0) {
|
|
2064
|
-
step = tickIncrement(start, stop, count);
|
|
2065
|
-
|
|
2066
|
-
if (step === prestep) {
|
|
2067
|
-
d[i0] = start;
|
|
2068
|
-
d[i1] = stop;
|
|
2069
|
-
return domain(d);
|
|
2070
|
-
} else if (step > 0) {
|
|
2071
|
-
start = Math.floor(start / step) * step;
|
|
2072
|
-
stop = Math.ceil(stop / step) * step;
|
|
2073
|
-
} else if (step < 0) {
|
|
2074
|
-
start = Math.ceil(start * step) / step;
|
|
2075
|
-
stop = Math.floor(stop * step) / step;
|
|
2076
|
-
} else {
|
|
2077
|
-
break;
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
prestep = step;
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
return scale;
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
return scale;
|
|
2087
|
-
}
|
|
2088
|
-
function linear_linear() {
|
|
2089
|
-
var scale = continuous();
|
|
2090
|
-
|
|
2091
|
-
scale.copy = function () {
|
|
2092
|
-
return copy(scale, linear_linear());
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
|
-
initRange.apply(scale, arguments);
|
|
2096
|
-
return linearish(scale);
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
/***/ }),
|
|
2100
|
-
|
|
2101
|
-
/***/ 8075:
|
|
2102
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2103
|
-
|
|
2104
|
-
"use strict";
|
|
2105
|
-
// ESM COMPAT FLAG
|
|
2106
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2107
|
-
|
|
2108
|
-
// EXPORTS
|
|
2109
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
2110
|
-
"BubbleChart": () => (/* reexport */ BubbleChart),
|
|
2111
|
-
"BubbleChartDataPoint": () => (/* reexport */ BubbleChart_namespaceObject.BubbleChartDataPoint),
|
|
2112
|
-
"BubbleChartTooltip": () => (/* reexport */ BubbleChart_namespaceObject.BubbleChartTooltip)
|
|
2113
|
-
});
|
|
2114
|
-
|
|
2115
|
-
// NAMESPACE OBJECT: ./src/components/BubbleChart/BubbleChart.tsx
|
|
2116
|
-
var BubbleChart_namespaceObject = {};
|
|
2117
|
-
__webpack_require__.r(BubbleChart_namespaceObject);
|
|
2118
|
-
__webpack_require__.d(BubbleChart_namespaceObject, {
|
|
2119
|
-
"O": () => (BubbleChart)
|
|
2120
|
-
});
|
|
2121
|
-
|
|
2122
|
-
// EXTERNAL MODULE: external "react"
|
|
2123
|
-
var external_react_ = __webpack_require__(8156);
|
|
2124
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2125
|
-
// EXTERNAL MODULE: ./src/components/Utils/Style.ts
|
|
2126
|
-
var Style = __webpack_require__(7540);
|
|
2127
|
-
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/index.ts + 1 modules
|
|
2128
|
-
var StatisticsTooltip = __webpack_require__(4806);
|
|
2129
|
-
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
2130
|
-
var Statistics = __webpack_require__(5909);
|
|
2131
|
-
// EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
|
|
2132
|
-
var Utils = __webpack_require__(4915);
|
|
2133
|
-
// EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
|
|
2134
|
-
var esm = __webpack_require__(6627);
|
|
2135
|
-
// EXTERNAL MODULE: external "@nivo/circle-packing"
|
|
2136
|
-
var circle_packing_ = __webpack_require__(3741);
|
|
2137
|
-
// EXTERNAL MODULE: external "classnames"
|
|
2138
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
2139
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2140
|
-
// EXTERNAL MODULE: ./src/components/Utils/Text.ts
|
|
2141
|
-
var Text = __webpack_require__(2394);
|
|
2142
|
-
;// CONCATENATED MODULE: ./src/components/BubbleChart/BubbleChartUI.tsx
|
|
2143
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
2144
|
-
var extendStatics = function (d, b) {
|
|
2145
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2146
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2147
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2148
|
-
return extendStatics(d, b);
|
|
2149
|
-
};
|
|
2150
|
-
return function (d, b) {
|
|
2151
|
-
if (typeof b !== "function" && b !== null)
|
|
2152
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2153
|
-
extendStatics(d, b);
|
|
2154
|
-
function __() { this.constructor = d; }
|
|
2155
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2156
|
-
};
|
|
2157
|
-
})();
|
|
2158
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
2159
|
-
__assign = Object.assign || function(t) {
|
|
2160
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2161
|
-
s = arguments[i];
|
|
2162
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2163
|
-
t[p] = s[p];
|
|
2164
|
-
}
|
|
2165
|
-
return t;
|
|
2166
|
-
};
|
|
2167
|
-
return __assign.apply(this, arguments);
|
|
2168
|
-
};
|
|
2169
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2170
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2171
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2172
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2173
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2174
|
-
};
|
|
2175
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
2176
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2177
|
-
};
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
var BubbleChartUI = /** @class */ (function (_super) {
|
|
2185
|
-
__extends(BubbleChartUI, _super);
|
|
2186
|
-
function BubbleChartUI() {
|
|
2187
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2188
|
-
_this.defaultLayers = ['circles', 'labels'];
|
|
2189
|
-
return _this;
|
|
2190
|
-
}
|
|
2191
|
-
BubbleChartUI.prototype.getEllipsedLabel = function (radius, input) {
|
|
2192
|
-
var maxLetterLength = Math.round((radius * 1.5) / BubbleChartUI.ESTIMATED_LETTER_PIXELS);
|
|
2193
|
-
return (0,Text/* ellipse */.Hp)(input, maxLetterLength);
|
|
2194
|
-
};
|
|
2195
|
-
BubbleChartUI.prototype.renderColor = function (d) {
|
|
2196
|
-
var _a, _b, _c, _d;
|
|
2197
|
-
// the color will be based on the significance, whereas the circle radius is based on the value
|
|
2198
|
-
return (_d = (_b = (_a = this === null || this === void 0 ? void 0 : this.props) === null || _a === void 0 ? void 0 : _a.colors) === null || _b === void 0 ? void 0 : _b[String((_c = d === null || d === void 0 ? void 0 : d.data) === null || _c === void 0 ? void 0 : _c['id'])]) !== null && _d !== void 0 ? _d : Style/* blue300 */.p5;
|
|
2199
|
-
};
|
|
2200
|
-
BubbleChartUI.prototype.getLabel = function (d) {
|
|
2201
|
-
return this.getEllipsedLabel(d.radius, d.data.label);
|
|
2202
|
-
};
|
|
2203
|
-
BubbleChartUI.prototype.renderContent = function () {
|
|
2204
|
-
var _a = this.props, id = _a.id, isCanvas = _a.isCanvas, fontSize = _a.fontSize, commonProps = {
|
|
2205
|
-
layers: this.defaultLayers,
|
|
2206
|
-
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
2207
|
-
data: this.props.data,
|
|
2208
|
-
colors: this.renderColor,
|
|
2209
|
-
id: "".concat(id, "-component"),
|
|
2210
|
-
padding: 4,
|
|
2211
|
-
leavesOnly: true,
|
|
2212
|
-
tooltip: this.props.renderTooltip,
|
|
2213
|
-
enableLabels: true,
|
|
2214
|
-
labelTextColor: 'white',
|
|
2215
|
-
label: this.getLabel,
|
|
2216
|
-
value: this.props.dataValueKey,
|
|
2217
|
-
};
|
|
2218
|
-
if (isCanvas) {
|
|
2219
|
-
var theme = {
|
|
2220
|
-
fontSize: fontSize,
|
|
2221
|
-
background: '#fff',
|
|
2222
|
-
};
|
|
2223
|
-
return external_react_default().createElement(circle_packing_.ResponsiveCirclePackingCanvas, __assign({}, commonProps, { theme: theme }));
|
|
2224
|
-
}
|
|
2225
|
-
return external_react_default().createElement(circle_packing_.ResponsiveCirclePacking, __assign({}, commonProps));
|
|
2226
|
-
};
|
|
2227
|
-
BubbleChartUI.prototype.render = function () {
|
|
2228
|
-
var _a, _b;
|
|
2229
|
-
var _c = this.props, id = _c.id, className = _c.className, chartRef = _c.chartRef, size = _c.size, chartWidth = (_a = size === null || size === void 0 ? void 0 : size.width) !== null && _a !== void 0 ? _a : '100%', chartHeight = (_b = size === null || size === void 0 ? void 0 : size.height) !== null && _b !== void 0 ? _b : '100%', classNames = external_classnames_default()('bubble-chart-container d-flex justify-content-center align-items-center', className);
|
|
2230
|
-
return (external_react_default().createElement("div", { id: id, className: classNames, ref: chartRef, style: { width: chartWidth, height: chartHeight } }, this.renderContent()));
|
|
2231
|
-
};
|
|
2232
|
-
var _a, _b;
|
|
2233
|
-
BubbleChartUI.displayName = 'BubbleChartUI';
|
|
2234
|
-
BubbleChartUI.ESTIMATED_LETTER_PIXELS = 6.2;
|
|
2235
|
-
BubbleChartUI.defaultProps = {
|
|
2236
|
-
labelSkipRadius: 17,
|
|
2237
|
-
dataValueKey: 'significance',
|
|
2238
|
-
};
|
|
2239
|
-
__decorate([
|
|
2240
|
-
esm/* boundMethod */.MR,
|
|
2241
|
-
__metadata("design:type", Function),
|
|
2242
|
-
__metadata("design:paramtypes", [typeof (_a = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _a : Object]),
|
|
2243
|
-
__metadata("design:returntype", String)
|
|
2244
|
-
], BubbleChartUI.prototype, "renderColor", null);
|
|
2245
|
-
__decorate([
|
|
2246
|
-
esm/* boundMethod */.MR,
|
|
2247
|
-
__metadata("design:type", Function),
|
|
2248
|
-
__metadata("design:paramtypes", [typeof (_b = typeof circle_packing_.ComputedDatum !== "undefined" && circle_packing_.ComputedDatum) === "function" ? _b : Object]),
|
|
2249
|
-
__metadata("design:returntype", String)
|
|
2250
|
-
], BubbleChartUI.prototype, "getLabel", null);
|
|
2251
|
-
return BubbleChartUI;
|
|
2252
|
-
}((external_react_default()).PureComponent));
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
;// CONCATENATED MODULE: ./src/components/BubbleChart/BubbleChart.tsx
|
|
2256
|
-
var BubbleChart_extends = (undefined && undefined.__extends) || (function () {
|
|
2257
|
-
var extendStatics = function (d, b) {
|
|
2258
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2259
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2260
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2261
|
-
return extendStatics(d, b);
|
|
2262
|
-
};
|
|
2263
|
-
return function (d, b) {
|
|
2264
|
-
if (typeof b !== "function" && b !== null)
|
|
2265
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2266
|
-
extendStatics(d, b);
|
|
2267
|
-
function __() { this.constructor = d; }
|
|
2268
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2269
|
-
};
|
|
2270
|
-
})();
|
|
2271
|
-
var BubbleChart_assign = (undefined && undefined.__assign) || function () {
|
|
2272
|
-
BubbleChart_assign = Object.assign || function(t) {
|
|
2273
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2274
|
-
s = arguments[i];
|
|
2275
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2276
|
-
t[p] = s[p];
|
|
2277
|
-
}
|
|
2278
|
-
return t;
|
|
2279
|
-
};
|
|
2280
|
-
return BubbleChart_assign.apply(this, arguments);
|
|
2281
|
-
};
|
|
2282
|
-
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
2283
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2284
|
-
if (!m) return o;
|
|
2285
|
-
var i = m.call(o), r, ar = [], e;
|
|
2286
|
-
try {
|
|
2287
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
2288
|
-
}
|
|
2289
|
-
catch (error) { e = { error: error }; }
|
|
2290
|
-
finally {
|
|
2291
|
-
try {
|
|
2292
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
2293
|
-
}
|
|
2294
|
-
finally { if (e) throw e.error; }
|
|
2295
|
-
}
|
|
2296
|
-
return ar;
|
|
2297
|
-
};
|
|
2298
|
-
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
|
|
2299
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2300
|
-
if (ar || !(i in from)) {
|
|
2301
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2302
|
-
ar[i] = from[i];
|
|
2303
|
-
}
|
|
2304
|
-
}
|
|
2305
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2306
|
-
};
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
/**
|
|
2314
|
-
* ### Overview
|
|
2315
|
-
*
|
|
2316
|
-
* The `BubbleChart` is most useful to display large sets of data.
|
|
2317
|
-
* Please note this chart is not suited for tree data structures.
|
|
2318
|
-
* Circle colors and size by default derive from the `significance`
|
|
2319
|
-
* prop of a given `datapoint`.
|
|
2320
|
-
* */
|
|
2321
|
-
var BubbleChart = /** @class */ (function (_super) {
|
|
2322
|
-
BubbleChart_extends(BubbleChart, _super);
|
|
2323
|
-
function BubbleChart() {
|
|
2324
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2325
|
-
}
|
|
2326
|
-
BubbleChart.prototype.shouldComponentUpdate = function (nextProps) {
|
|
2327
|
-
return !(0,Utils/* deepEqual */.vZ)(this.props, nextProps);
|
|
2328
|
-
};
|
|
2329
|
-
BubbleChart.prototype.getComponentSetup = function () {
|
|
2330
|
-
var _a, _b, _c, _d;
|
|
2331
|
-
var _e = this.props, otherId = _e.otherId, maxBubbleNumber = _e.maxBubbleNumber, data = _e.data, id = _e.id, numberToStringFormatter = _e.numberToStringFormatter, isCanvas = _e.isCanvas, total = _e.total, chartData = __spreadArray([], __read((data !== null && data !== void 0 ? data : [])), false), dataValueKey = (_a = this.props.dataValueKey) !== null && _a !== void 0 ? _a : BubbleChart.defaultDataValueKey, children = this.props.maxBubbleNumber == null
|
|
2332
|
-
? chartData.sort((0,Utils/* sortObjDesc */.kV)(dataValueKey))
|
|
2333
|
-
: (0,Statistics/* createDataWithOtherSlice */.xG)(chartData, otherId, otherId, maxBubbleNumber, total, dataValueKey), arrayColors = this.computeColors(children), colors = arrayColors === null || arrayColors === void 0 ? void 0 : arrayColors.reduce(function (acc, color, i) {
|
|
2334
|
-
acc[String(children[i].id)] = color;
|
|
2335
|
-
return acc;
|
|
2336
|
-
}, {}), childrenData = maxBubbleNumber == null ? children : children.slice(0, children.length - 1);
|
|
2337
|
-
return {
|
|
2338
|
-
isCanvas: isCanvas,
|
|
2339
|
-
colors: colors,
|
|
2340
|
-
numberToStringFormatter: numberToStringFormatter,
|
|
2341
|
-
renderTooltip: (_b = this.props.renderTooltip) !== null && _b !== void 0 ? _b : (0,StatisticsTooltip.getRenderStatisticsTooltip)({
|
|
2342
|
-
tooltipDataLabelKey: (_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.dataValueKey) !== null && _d !== void 0 ? _d : BubbleChart.defaultDataValueKey,
|
|
2343
|
-
tooltipDataTitleKey: 'label',
|
|
2344
|
-
otherId: this.props.otherId,
|
|
2345
|
-
numberToStringFormatter: this.props.numberToStringFormatter,
|
|
2346
|
-
withColor: true,
|
|
2347
|
-
}),
|
|
2348
|
-
data: {
|
|
2349
|
-
children: childrenData,
|
|
2350
|
-
value: 0,
|
|
2351
|
-
label: id,
|
|
2352
|
-
},
|
|
2353
|
-
};
|
|
2354
|
-
};
|
|
2355
|
-
BubbleChart.prototype.computeColors = function (children) {
|
|
2356
|
-
var _a;
|
|
2357
|
-
return (_a = (0,Style/* generateRangeColor */.vA)(children.length, this.props.colors)) === null || _a === void 0 ? void 0 : _a.reverse();
|
|
2358
|
-
};
|
|
2359
|
-
BubbleChart.prototype.render = function () {
|
|
2360
|
-
var _a = this.props, id = _a.id, className = _a.className, chartRef = _a.chartRef, size = _a.size, labelSkipRadius = _a.labelSkipRadius, fontSize = _a.fontSize;
|
|
2361
|
-
return (external_react_default().createElement(BubbleChartUI, BubbleChart_assign({}, this.getComponentSetup(), { id: id, chartRef: chartRef, className: className, size: size, labelSkipRadius: labelSkipRadius, fontSize: fontSize })));
|
|
2362
|
-
};
|
|
2363
|
-
BubbleChart.defaultDataValueKey = 'significance';
|
|
2364
|
-
BubbleChart.displayName = 'BubbleChart';
|
|
2365
|
-
BubbleChart.defaultProps = {
|
|
2366
|
-
colors: [Style/* blue30 */.KH, Style/* blue300 */.p5],
|
|
2367
|
-
dataValueKey: BubbleChart.defaultDataValueKey,
|
|
2368
|
-
};
|
|
2369
|
-
return BubbleChart;
|
|
2370
|
-
}((external_react_default()).Component));
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
;// CONCATENATED MODULE: ./src/components/BubbleChart/index.ts
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
/***/ }),
|
|
2378
|
-
|
|
2379
|
-
/***/ 8352:
|
|
2380
|
-
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
2381
|
-
|
|
2382
|
-
"use strict";
|
|
2383
|
-
|
|
2384
|
-
// UNUSED EXPORTS: Form
|
|
2385
|
-
|
|
2386
|
-
// EXTERNAL MODULE: external "react"
|
|
2387
|
-
var external_react_ = __webpack_require__(8156);
|
|
2388
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2389
|
-
// EXTERNAL MODULE: external "classnames"
|
|
2390
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
2391
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2392
|
-
// EXTERNAL MODULE: external "react-bootstrap/Form"
|
|
2393
|
-
var Form_ = __webpack_require__(8721);
|
|
2394
|
-
var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
|
|
2395
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
var FormLabel = external_react_default().memo(function (props) {
|
|
2401
|
-
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
|
|
2402
|
-
return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
|
|
2403
|
-
});
|
|
2404
|
-
FormLabel.displayName = 'FormLabel';
|
|
2405
|
-
|
|
2406
|
-
// EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
|
|
2407
|
-
var FormControl = __webpack_require__(2048);
|
|
2408
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
|
|
2409
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
2410
|
-
__assign = Object.assign || function(t) {
|
|
2411
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2412
|
-
s = arguments[i];
|
|
2413
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2414
|
-
t[p] = s[p];
|
|
2415
|
-
}
|
|
2416
|
-
return t;
|
|
2417
|
-
};
|
|
2418
|
-
return __assign.apply(this, arguments);
|
|
2419
|
-
};
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
var FormCheckbox = function (props) {
|
|
2425
|
-
var _a;
|
|
2426
|
-
var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
|
|
2427
|
-
return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
2428
|
-
};
|
|
2429
|
-
FormCheckbox.displayName = 'FormCheckbox';
|
|
2430
|
-
|
|
2431
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
|
|
2432
|
-
var FormRadio_assign = (undefined && undefined.__assign) || function () {
|
|
2433
|
-
FormRadio_assign = Object.assign || function(t) {
|
|
2434
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2435
|
-
s = arguments[i];
|
|
2436
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2437
|
-
t[p] = s[p];
|
|
2438
|
-
}
|
|
2439
|
-
return t;
|
|
2440
|
-
};
|
|
2441
|
-
return FormRadio_assign.apply(this, arguments);
|
|
2442
|
-
};
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
var FormRadio = function (props) {
|
|
2448
|
-
var _a;
|
|
2449
|
-
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
|
|
2450
|
-
return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
|
|
2451
|
-
};
|
|
2452
|
-
FormRadio.displayName = 'FormRadio';
|
|
2453
|
-
|
|
2454
|
-
// EXTERNAL MODULE: external "react-bootstrap/FormText"
|
|
2455
|
-
var FormText_ = __webpack_require__(8763);
|
|
2456
|
-
var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
|
|
2457
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
|
|
2458
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2459
|
-
var t = {};
|
|
2460
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2461
|
-
t[p] = s[p];
|
|
2462
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2463
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2464
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2465
|
-
t[p[i]] = s[p[i]];
|
|
2466
|
-
}
|
|
2467
|
-
return t;
|
|
2468
|
-
};
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
var FormHelp = external_react_default().memo(function (_a) {
|
|
2474
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
|
2475
|
-
var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
|
|
2476
|
-
return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
|
|
2477
|
-
});
|
|
2478
|
-
FormHelp.displayName = 'FormHelp';
|
|
2479
|
-
|
|
2480
|
-
;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
|
|
2481
|
-
var Form_assign = (undefined && undefined.__assign) || function () {
|
|
2482
|
-
Form_assign = Object.assign || function(t) {
|
|
2483
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2484
|
-
s = arguments[i];
|
|
2485
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2486
|
-
t[p] = s[p];
|
|
2487
|
-
}
|
|
2488
|
-
return t;
|
|
2489
|
-
};
|
|
2490
|
-
return Form_assign.apply(this, arguments);
|
|
2491
|
-
};
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
var Form = function (props) {
|
|
2502
|
-
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
|
|
2503
|
-
return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
|
|
2504
|
-
};
|
|
2505
|
-
Form.displayName = 'Form';
|
|
2506
|
-
Form.Control = FormControl/* FormControl */.N;
|
|
2507
|
-
Form.Label = FormLabel;
|
|
2508
|
-
Form.Checkbox = FormCheckbox;
|
|
2509
|
-
Form.Radio = FormRadio;
|
|
2510
|
-
Form.File = (Form_default()).File;
|
|
2511
|
-
Form.Switch = (Form_default()).Switch;
|
|
2512
|
-
Form.Help = FormHelp;
|
|
2513
|
-
Form.Group = (Form_default()).Group;
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
/***/ }),
|
|
2518
|
-
|
|
2519
|
-
/***/ 2048:
|
|
2520
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2521
|
-
|
|
2522
|
-
"use strict";
|
|
2523
|
-
|
|
2524
|
-
// EXPORTS
|
|
2525
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
2526
|
-
"N": () => (/* binding */ FormControl)
|
|
2527
|
-
});
|
|
2528
|
-
|
|
2529
|
-
// EXTERNAL MODULE: external "react"
|
|
2530
|
-
var external_react_ = __webpack_require__(8156);
|
|
2531
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2532
|
-
// EXTERNAL MODULE: external "classnames"
|
|
2533
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
2534
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2535
|
-
// EXTERNAL MODULE: external "react-bootstrap/FormControl"
|
|
2536
|
-
var FormControl_ = __webpack_require__(1082);
|
|
2537
|
-
var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
|
|
2538
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
|
|
2539
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2540
|
-
var t = {};
|
|
2541
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2542
|
-
t[p] = s[p];
|
|
2543
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2544
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2545
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2546
|
-
t[p[i]] = s[p[i]];
|
|
2547
|
-
}
|
|
2548
|
-
return t;
|
|
2549
|
-
};
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
var FormControlFeedBack = external_react_default().memo(function (_a) {
|
|
2554
|
-
var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
|
|
2555
|
-
var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
|
|
2556
|
-
'd-block': show,
|
|
2557
|
-
});
|
|
2558
|
-
return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
|
|
2559
|
-
});
|
|
2560
|
-
FormControlFeedBack.displayName = ' FormControlFeedBack';
|
|
2561
|
-
|
|
2562
|
-
;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
|
|
2563
|
-
var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
2564
|
-
var t = {};
|
|
2565
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2566
|
-
t[p] = s[p];
|
|
2567
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2568
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2569
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2570
|
-
t[p[i]] = s[p[i]];
|
|
2571
|
-
}
|
|
2572
|
-
return t;
|
|
2573
|
-
};
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
|
|
2580
|
-
var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
|
|
2581
|
-
var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
|
|
2582
|
-
'atoka-shadow': props.withShadow,
|
|
2583
|
-
'disabled': props.disabled,
|
|
2584
|
-
});
|
|
2585
|
-
return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
|
|
2586
|
-
});
|
|
2587
|
-
FormControlComponent.displayName = 'FormControlComponent';
|
|
2588
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2589
|
-
var FormControl = FormControlComponent;
|
|
2590
|
-
FormControl.FeedBack = FormControlFeedBack;
|
|
2591
|
-
FormControl.displayName = 'FormControl';
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
/***/ }),
|
|
2596
|
-
|
|
2597
|
-
/***/ 8007:
|
|
2598
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2599
|
-
|
|
2600
|
-
"use strict";
|
|
2601
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2602
|
-
/* harmony export */ "q": () => (/* binding */ getRenderStatisticsTooltip)
|
|
2603
|
-
/* harmony export */ });
|
|
2604
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
|
|
2605
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
2606
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4806);
|
|
2607
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
2608
|
-
__assign = Object.assign || function(t) {
|
|
2609
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2610
|
-
s = arguments[i];
|
|
2611
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2612
|
-
t[p] = s[p];
|
|
2613
|
-
}
|
|
2614
|
-
return t;
|
|
2615
|
-
};
|
|
2616
|
-
return __assign.apply(this, arguments);
|
|
2617
|
-
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
function getRenderStatisticsTooltip(_a) {
|
|
2621
|
-
var tooltipDataLabelKey = _a.tooltipDataLabelKey, tooltipDataValueKey = _a.tooltipDataValueKey, tooltipDataTitleKey = _a.tooltipDataTitleKey, otherId = _a.otherId, otherLabel = _a.otherLabel, numberToStringFormatter = _a.numberToStringFormatter, withColor = _a.withColor, _b = _a.className, className = _b === void 0 ? 'tooltip-background' : _b;
|
|
2622
|
-
// eslint-disable-next-line react/display-name
|
|
2623
|
-
return function (props) {
|
|
2624
|
-
var _a, _b, _c, _d;
|
|
2625
|
-
var tooltipData = __assign(__assign({}, props.data), { value: (_a = props.data) === null || _a === void 0 ? void 0 : _a['value'], label: (_b = props.data) === null || _b === void 0 ? void 0 : _b['label'], id: (_c = props.data) === null || _c === void 0 ? void 0 : _c['id'], percentage: (_d = props.data) === null || _d === void 0 ? void 0 : _d['percentage'] });
|
|
2626
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_index__WEBPACK_IMPORTED_MODULE_1__.StatisticsTooltip, { otherId: otherId, otherLabel: otherLabel, numberToStringFormatter: numberToStringFormatter, data: tooltipData, tooltipDataLabelKey: tooltipDataLabelKey, tooltipDataTitleKey: tooltipDataTitleKey, tooltipDataValueKey: tooltipDataValueKey, className: className !== null && className !== void 0 ? className : '', color: withColor ? props.color : undefined }));
|
|
2627
|
-
};
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
/***/ }),
|
|
2632
|
-
|
|
2633
|
-
/***/ 4806:
|
|
2634
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2635
|
-
|
|
2636
|
-
"use strict";
|
|
2637
|
-
|
|
2638
|
-
// EXPORTS
|
|
2639
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
2640
|
-
"StatisticsTooltip": () => (/* reexport */ StatisticsTooltip),
|
|
2641
|
-
"getRenderStatisticsTooltip": () => (/* reexport */ helpers/* getRenderStatisticsTooltip */.q)
|
|
2642
|
-
});
|
|
2643
|
-
|
|
2644
|
-
// UNUSED EXPORTS: GetRenderStatisticsTooltipType
|
|
2645
|
-
|
|
2646
|
-
// EXTERNAL MODULE: external "react"
|
|
2647
|
-
var external_react_ = __webpack_require__(8156);
|
|
2648
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
2649
|
-
// EXTERNAL MODULE: external "classnames"
|
|
2650
|
-
var external_classnames_ = __webpack_require__(8310);
|
|
2651
|
-
var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
|
|
2652
|
-
// EXTERNAL MODULE: ./src/components/Utils/Statistics.ts
|
|
2653
|
-
var Statistics = __webpack_require__(5909);
|
|
2654
|
-
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/StatisticsTooltip.tsx
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
var StatisticsTooltip = external_react_default().memo(function (props) {
|
|
2659
|
-
// eslint-disable-next-line react/display-name
|
|
2660
|
-
function renderSubtitle() {
|
|
2661
|
-
var values = [
|
|
2662
|
-
{ value: getLabel(), key: props.tooltipDataLabelKey, className: 'label' },
|
|
2663
|
-
{ value: getValue(), key: props.tooltipDataValueKey, className: 'value' },
|
|
2664
|
-
]
|
|
2665
|
-
.filter(function (el) { return el.value != null; })
|
|
2666
|
-
.map(function (el) { return (external_react_default().createElement("span", { key: el.key, className: el.className }, el.value)); });
|
|
2667
|
-
if (values.length === 0) {
|
|
2668
|
-
return null;
|
|
2669
|
-
}
|
|
2670
|
-
return external_react_default().createElement("div", { className: 'd-flex justify-content-between' }, values);
|
|
2671
|
-
}
|
|
2672
|
-
function getLabel() {
|
|
2673
|
-
var tooltipDataLabelKey = props.tooltipDataLabelKey, numberToStringFormatter = props.numberToStringFormatter, data = props.data, label = getValueFromData(tooltipDataLabelKey, data);
|
|
2674
|
-
if (label == null) {
|
|
2675
|
-
return undefined;
|
|
2676
|
-
}
|
|
2677
|
-
if (numberToStringFormatter == null) {
|
|
2678
|
-
return String(label);
|
|
2679
|
-
}
|
|
2680
|
-
if (typeof label == 'string') {
|
|
2681
|
-
return label;
|
|
2682
|
-
}
|
|
2683
|
-
return numberToStringFormatter(label);
|
|
2684
|
-
}
|
|
2685
|
-
function getValue() {
|
|
2686
|
-
var tooltipDataValueKey = props.tooltipDataValueKey, data = props.data, value = getValueFromData(tooltipDataValueKey, data);
|
|
2687
|
-
if (value == null) {
|
|
2688
|
-
return undefined;
|
|
2689
|
-
}
|
|
2690
|
-
if (typeof value == 'number') {
|
|
2691
|
-
return (0,Statistics/* normalizePercentage */.Ow)(value);
|
|
2692
|
-
}
|
|
2693
|
-
return value;
|
|
2694
|
-
}
|
|
2695
|
-
function getTitle() {
|
|
2696
|
-
var tooltipDataTitleKey = props.tooltipDataTitleKey, data = props.data, otherId = props.otherId, otherLabel = props.otherLabel, title = getValueFromData(tooltipDataTitleKey, data);
|
|
2697
|
-
if (title === otherId) {
|
|
2698
|
-
return otherLabel !== null && otherLabel !== void 0 ? otherLabel : otherId;
|
|
2699
|
-
}
|
|
2700
|
-
return title ? String(title) : undefined;
|
|
2701
|
-
}
|
|
2702
|
-
function getValueFromData(key, data) {
|
|
2703
|
-
return key == null ? undefined : data === null || data === void 0 ? void 0 : data[key];
|
|
2704
|
-
}
|
|
2705
|
-
var className = external_classnames_default()('statistics-tooltip', props === null || props === void 0 ? void 0 : props.className), colorRectangle = props.color == null ? null : external_react_default().createElement("span", { className: 'tooltip-rectangle', style: { background: props.color } });
|
|
2706
|
-
return (external_react_default().createElement("div", { className: className },
|
|
2707
|
-
external_react_default().createElement("div", { className: 'd-flex align-items-center' },
|
|
2708
|
-
colorRectangle,
|
|
2709
|
-
external_react_default().createElement("span", { className: 'text-left' }, getTitle())),
|
|
2710
|
-
renderSubtitle(),
|
|
2711
|
-
props.children));
|
|
2712
|
-
});
|
|
2713
|
-
StatisticsTooltip.displayName = 'StatisticsTooltip';
|
|
2714
|
-
|
|
2715
|
-
// EXTERNAL MODULE: ./src/components/StatisticsTooltip/helpers.tsx
|
|
2716
|
-
var helpers = __webpack_require__(8007);
|
|
2717
|
-
;// CONCATENATED MODULE: ./src/components/StatisticsTooltip/index.ts
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
/***/ }),
|
|
2723
|
-
|
|
2724
|
-
/***/ 5909:
|
|
2725
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2726
|
-
|
|
2727
|
-
"use strict";
|
|
2728
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2729
|
-
/* harmony export */ "xG": () => (/* binding */ createDataWithOtherSlice),
|
|
2730
|
-
/* harmony export */ "Ow": () => (/* binding */ normalizePercentage)
|
|
2731
|
-
/* harmony export */ });
|
|
2732
|
-
/* unused harmony export createCleanTree */
|
|
2733
|
-
/* harmony import */ var _Utils_Utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4915);
|
|
2734
|
-
var __values = (undefined && undefined.__values) || function(o) {
|
|
2735
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
2736
|
-
if (m) return m.call(o);
|
|
2737
|
-
if (o && typeof o.length === "number") return {
|
|
2738
|
-
next: function () {
|
|
2739
|
-
if (o && i >= o.length) o = void 0;
|
|
2740
|
-
return { value: o && o[i++], done: !o };
|
|
2741
|
-
}
|
|
2742
|
-
};
|
|
2743
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2744
|
-
};
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
function createDataWithOtherSlice(data, otherId, otherLabel, maxSlicesNumber, total, dataValueKey) {
|
|
2748
|
-
var _a, _b;
|
|
2749
|
-
if (maxSlicesNumber === void 0) { maxSlicesNumber = 0; }
|
|
2750
|
-
if (dataValueKey === void 0) { dataValueKey = 'value'; }
|
|
2751
|
-
var otherValue = 0, newOtherId = otherId !== null && otherId !== void 0 ? otherId : 'other',
|
|
2752
|
-
// We know it is defined but Typescript does not get it.
|
|
2753
|
-
newmaxSlicesNumber = maxSlicesNumber !== null && maxSlicesNumber !== void 0 ? maxSlicesNumber : 0, newData = [], maxToMinData = data === null || data === void 0 ? void 0 : data.sort((0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .sortObjDesc */ .kV)(dataValueKey));
|
|
2754
|
-
maxToMinData === null || maxToMinData === void 0 ? void 0 : maxToMinData.forEach(function (node, i) {
|
|
2755
|
-
var _a;
|
|
2756
|
-
if (i < newmaxSlicesNumber && node.id !== otherId) {
|
|
2757
|
-
newData.push(createCleanTree(node));
|
|
2758
|
-
}
|
|
2759
|
-
else {
|
|
2760
|
-
var nodeValue = (_a = Number(node === null || node === void 0 ? void 0 : node.value)) !== null && _a !== void 0 ? _a : 0;
|
|
2761
|
-
otherValue += nodeValue;
|
|
2762
|
-
}
|
|
2763
|
-
});
|
|
2764
|
-
var otherNode = {};
|
|
2765
|
-
otherNode['id'] = newOtherId;
|
|
2766
|
-
otherNode['value'] = parseFloat(otherValue.toFixed(2));
|
|
2767
|
-
otherNode['initialValue'] = parseFloat(otherValue.toFixed(2));
|
|
2768
|
-
otherNode['label'] = (_a = otherLabel !== null && otherLabel !== void 0 ? otherLabel : newOtherId) !== null && _a !== void 0 ? _a : '';
|
|
2769
|
-
if (((_b = data === null || data === void 0 ? void 0 : data[0]) === null || _b === void 0 ? void 0 : _b.percentage) != null && total != null) {
|
|
2770
|
-
otherNode['percentage'] = (otherValue / total) * 100;
|
|
2771
|
-
}
|
|
2772
|
-
if (maxSlicesNumber !== Infinity || otherValue !== 0) {
|
|
2773
|
-
newData.push(otherNode);
|
|
2774
|
-
}
|
|
2775
|
-
return newData;
|
|
2776
|
-
}
|
|
2777
|
-
function createCleanTree(node) {
|
|
2778
|
-
if (node.children == null) {
|
|
2779
|
-
return node;
|
|
2780
|
-
}
|
|
2781
|
-
var newNode = (0,_Utils_Utils__WEBPACK_IMPORTED_MODULE_0__/* .clone */ .d9)(node);
|
|
2782
|
-
removeValueIfChildren(newNode);
|
|
2783
|
-
return newNode;
|
|
2784
|
-
}
|
|
2785
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2786
|
-
function removeValueIfChildren(node) {
|
|
2787
|
-
var e_1, _a;
|
|
2788
|
-
var _b;
|
|
2789
|
-
var children = ((_b = node === null || node === void 0 ? void 0 : node['children']) !== null && _b !== void 0 ? _b : []);
|
|
2790
|
-
node['initialValue'] = node['value'];
|
|
2791
|
-
if (children.length > 0) {
|
|
2792
|
-
delete node['value'];
|
|
2793
|
-
}
|
|
2794
|
-
try {
|
|
2795
|
-
for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
|
|
2796
|
-
var child = children_1_1.value;
|
|
2797
|
-
removeValueIfChildren(child);
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2801
|
-
finally {
|
|
2802
|
-
try {
|
|
2803
|
-
if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
|
|
2804
|
-
}
|
|
2805
|
-
finally { if (e_1) throw e_1.error; }
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
function normalizePercentage(value) {
|
|
2809
|
-
var _a;
|
|
2810
|
-
return "".concat(parseInt((_a = value === null || value === void 0 ? void 0 : value.toFixed) === null || _a === void 0 ? void 0 : _a.call(value, 0), 10), "%");
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
/***/ }),
|
|
2815
|
-
|
|
2816
|
-
/***/ 7540:
|
|
2817
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2818
|
-
|
|
2819
|
-
"use strict";
|
|
2820
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2821
|
-
/* harmony export */ "vA": () => (/* binding */ generateRangeColor),
|
|
2822
|
-
/* harmony export */ "KH": () => (/* binding */ blue30),
|
|
2823
|
-
/* harmony export */ "p5": () => (/* binding */ blue300)
|
|
2824
|
-
/* harmony export */ });
|
|
2825
|
-
/* unused harmony exports calculateDomain, white, blue25, blue50, blue80, blue90, blue95, blue100, gray200, blue400, yellow, orange, red, green, gray100, gray300, gray400, purple, viola, pink100, pink200, salmon, black */
|
|
2826
|
-
/* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1820);
|
|
2827
|
-
|
|
2828
|
-
function generateRangeColor(len, rangeColors) {
|
|
2829
|
-
if (rangeColors === void 0) { rangeColors = ['#82CA9D', '#f6ea25', '#F7977A']; }
|
|
2830
|
-
var generatedColors = [];
|
|
2831
|
-
if (len === 0) {
|
|
2832
|
-
return undefined;
|
|
2833
|
-
}
|
|
2834
|
-
var colors = (0,d3_scale__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(), domain = calculateDomain(rangeColors.length, rangeColors.length), targetDomain = calculateDomain(len, rangeColors.length);
|
|
2835
|
-
colors = colors.domain(domain).range(rangeColors);
|
|
2836
|
-
for (var i = 0; i < len; i++) {
|
|
2837
|
-
generatedColors.push(colors(targetDomain[i]));
|
|
2838
|
-
}
|
|
2839
|
-
return generatedColors;
|
|
2840
|
-
}
|
|
2841
|
-
function calculateDomain(len, rangeColorsLength) {
|
|
2842
|
-
var domain = [];
|
|
2843
|
-
domain.push(0);
|
|
2844
|
-
for (var i = 0; i < len - 2; i++) {
|
|
2845
|
-
var num = Number((rangeColorsLength / len) * (i + 1));
|
|
2846
|
-
domain.push(parseFloat(num.toFixed(2)));
|
|
2847
|
-
}
|
|
2848
|
-
domain.push(rangeColorsLength);
|
|
2849
|
-
return domain;
|
|
2850
|
-
}
|
|
2851
|
-
// Keep these in sync with variables.less
|
|
2852
|
-
var white = '#FFFFFF', blue25 = '#eef2f5', blue30 = '#CBD8E0', blue50 = '#AFD1E0', blue80 = '#8FB7CB', blue90 = '#94C2DA', blue95 = '#6E9DB5', blue100 = '#578EA8', blue300 = 'rgb(32, 88, 113)', // #205871
|
|
2853
|
-
blue400 = '#11455C', gray100 = '#FAFAFA', gray200 = '#EBEBEB', gray300 = '#B0B0B0', gray400 = '#717171', yellow = '#FFBB00', orange = '#F38522', red = '#F72200', green = '#309B0A', purple = '#63619F', viola = '#965DA3', pink200 = '#C55795', pink100 = '#E85778', salmon = '#F86752', black = '#222222';
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
/***/ }),
|
|
2858
|
-
|
|
2859
|
-
/***/ 2394:
|
|
2860
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2861
|
-
|
|
2862
|
-
"use strict";
|
|
2863
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2864
|
-
/* harmony export */ "Hp": () => (/* binding */ ellipse)
|
|
2865
|
-
/* harmony export */ });
|
|
2866
|
-
/* unused harmony exports isStringEmpty, slugify, estimateWordSize, matchAndFormatRangeLabel, formatRange, ellipseAndFormat, escapeRegExp, isMatching, splitTextInParts */
|
|
2867
|
-
var __values = (undefined && undefined.__values) || function(o) {
|
|
2868
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
2869
|
-
if (m) return m.call(o);
|
|
2870
|
-
if (o && typeof o.length === "number") return {
|
|
2871
|
-
next: function () {
|
|
2872
|
-
if (o && i >= o.length) o = void 0;
|
|
2873
|
-
return { value: o && o[i++], done: !o };
|
|
2874
|
-
}
|
|
2875
|
-
};
|
|
2876
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2877
|
-
};
|
|
2878
|
-
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
2879
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2880
|
-
if (!m) return o;
|
|
2881
|
-
var i = m.call(o), r, ar = [], e;
|
|
2882
|
-
try {
|
|
2883
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
2884
|
-
}
|
|
2885
|
-
catch (error) { e = { error: error }; }
|
|
2886
|
-
finally {
|
|
2887
|
-
try {
|
|
2888
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
2889
|
-
}
|
|
2890
|
-
finally { if (e) throw e.error; }
|
|
2891
|
-
}
|
|
2892
|
-
return ar;
|
|
2893
|
-
};
|
|
2894
|
-
var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
|
|
2895
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2896
|
-
if (ar || !(i in from)) {
|
|
2897
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2898
|
-
ar[i] = from[i];
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2902
|
-
};
|
|
2903
|
-
function isStringEmpty(s) {
|
|
2904
|
-
if (s == null) {
|
|
2905
|
-
return true;
|
|
2906
|
-
}
|
|
2907
|
-
return s.match(/^\s*$/) !== null;
|
|
2908
|
-
}
|
|
2909
|
-
function slugify(text) {
|
|
2910
|
-
var a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;', b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------', p = new RegExp(a.split('').join('|'), 'g');
|
|
2911
|
-
return text
|
|
2912
|
-
.toString()
|
|
2913
|
-
.toLowerCase()
|
|
2914
|
-
.replace(/\s+/g, '-') // Replace spaces with -
|
|
2915
|
-
.replace(p, function (c) { return b.charAt(a.indexOf(c)); }) // Replace special characters
|
|
2916
|
-
.replace(/&/g, '-and-') // Replace & with 'and'
|
|
2917
|
-
.replace(/[^\w-]+/g, '') // Remove all non-word characters
|
|
2918
|
-
.replace(/--+/g, '-') // Replace multiple - with single -
|
|
2919
|
-
.replace(/^-+/, '') // Trim - from start of text
|
|
2920
|
-
.replace(/-+$/, ''); // Trim - from end of text
|
|
2921
|
-
}
|
|
2922
|
-
function estimateWordSize(wordLength, letterPixels, constant) {
|
|
2923
|
-
return wordLength * letterPixels + constant;
|
|
2924
|
-
}
|
|
2925
|
-
function ellipse(input, length) {
|
|
2926
|
-
if (input == null) {
|
|
2927
|
-
return '';
|
|
2928
|
-
}
|
|
2929
|
-
return input.length > length ? "".concat(input.substr(0, length - 1), "\u2026") : input;
|
|
2930
|
-
}
|
|
2931
|
-
function matchAndFormatRangeLabel(formatter) {
|
|
2932
|
-
return function (label) {
|
|
2933
|
-
var match = /^([\d*]+)-([\d*]+)$/.exec(label);
|
|
2934
|
-
if (match == null) {
|
|
2935
|
-
return label;
|
|
2936
|
-
}
|
|
2937
|
-
return formatRange({
|
|
2938
|
-
from: match[1],
|
|
2939
|
-
to: match[2],
|
|
2940
|
-
}, formatter !== null && formatter !== void 0 ? formatter : (function (v) { return v; }));
|
|
2941
|
-
};
|
|
2942
|
-
}
|
|
2943
|
-
function formatRange(item, formatter) {
|
|
2944
|
-
var _a, _b;
|
|
2945
|
-
var to = item.to === '*' ? '*' : formatter(parseInt((_a = item.to) !== null && _a !== void 0 ? _a : '0', 10)), from = formatter(parseInt((_b = item.from) !== null && _b !== void 0 ? _b : '0', 10));
|
|
2946
|
-
if (from === to) {
|
|
2947
|
-
return "".concat(from);
|
|
2948
|
-
}
|
|
2949
|
-
return "".concat(from, " - ").concat(to);
|
|
2950
|
-
}
|
|
2951
|
-
function ellipseAndFormat(formatter, maxLabelLength) {
|
|
2952
|
-
return function (value) {
|
|
2953
|
-
var strValue = value.toString();
|
|
2954
|
-
if (formatter == null) {
|
|
2955
|
-
return ellipse(strValue, maxLabelLength);
|
|
2956
|
-
}
|
|
2957
|
-
return ellipse("".concat(formatter(strValue)), maxLabelLength);
|
|
2958
|
-
};
|
|
2959
|
-
}
|
|
2960
|
-
function escapeRegExp(input) {
|
|
2961
|
-
// eslint-disable-next-line
|
|
2962
|
-
return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
|
|
2963
|
-
}
|
|
2964
|
-
function isMatching(text0, text1) {
|
|
2965
|
-
var e_1, _a;
|
|
2966
|
-
if (text0 == null || text1 == null) {
|
|
2967
|
-
return false;
|
|
2968
|
-
}
|
|
2969
|
-
text0 = text0.toLowerCase();
|
|
2970
|
-
text1 = text1.toLowerCase();
|
|
2971
|
-
if (text1.match(' ') === null) {
|
|
2972
|
-
return text0.match(escapeRegExp(text1)) !== null;
|
|
2973
|
-
}
|
|
2974
|
-
var splitNeedles = text1
|
|
2975
|
-
.split(' ')
|
|
2976
|
-
.filter(function (s) { return !isStringEmpty(s); })
|
|
2977
|
-
.sort(function (a, b) { return b.length - a.length; });
|
|
2978
|
-
try {
|
|
2979
|
-
for (var splitNeedles_1 = __values(splitNeedles), splitNeedles_1_1 = splitNeedles_1.next(); !splitNeedles_1_1.done; splitNeedles_1_1 = splitNeedles_1.next()) {
|
|
2980
|
-
var needle = splitNeedles_1_1.value;
|
|
2981
|
-
if (text0 === needle) {
|
|
2982
|
-
return true;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2987
|
-
finally {
|
|
2988
|
-
try {
|
|
2989
|
-
if (splitNeedles_1_1 && !splitNeedles_1_1.done && (_a = splitNeedles_1.return)) _a.call(splitNeedles_1);
|
|
2990
|
-
}
|
|
2991
|
-
finally { if (e_1) throw e_1.error; }
|
|
2992
|
-
}
|
|
2993
|
-
return false;
|
|
2994
|
-
}
|
|
2995
|
-
function splitTextInParts(needles, text) {
|
|
2996
|
-
var e_2, _a;
|
|
2997
|
-
if (text == null) {
|
|
2998
|
-
return [];
|
|
2999
|
-
}
|
|
3000
|
-
if (needles.match(' ') === null) {
|
|
3001
|
-
var re = new RegExp('(' + escapeRegExp(needles) + ')', 'gi');
|
|
3002
|
-
return text.split(re);
|
|
3003
|
-
}
|
|
3004
|
-
var splitNeedles = needles
|
|
3005
|
-
.split(' ')
|
|
3006
|
-
.filter(function (s) { return !isStringEmpty(s); })
|
|
3007
|
-
.sort(function (a, b) { return b.length - a.length; }), ret = [text];
|
|
3008
|
-
try {
|
|
3009
|
-
for (var splitNeedles_2 = __values(splitNeedles), splitNeedles_2_1 = splitNeedles_2.next(); !splitNeedles_2_1.done; splitNeedles_2_1 = splitNeedles_2.next()) {
|
|
3010
|
-
var needle = splitNeedles_2_1.value;
|
|
3011
|
-
var re = new RegExp('(' + needle + ')', 'gi');
|
|
3012
|
-
for (var index = 0; index < ret.length; index++) {
|
|
3013
|
-
var currentText = ret[index];
|
|
3014
|
-
if (isMatching(currentText, escapeRegExp(needles))) {
|
|
3015
|
-
continue;
|
|
3016
|
-
}
|
|
3017
|
-
var newParts = currentText.split(re).filter(function (s) { return s !== ''; });
|
|
3018
|
-
ret.splice.apply(ret, __spreadArray([index, 1], __read(newParts), false));
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3023
|
-
finally {
|
|
3024
|
-
try {
|
|
3025
|
-
if (splitNeedles_2_1 && !splitNeedles_2_1.done && (_a = splitNeedles_2.return)) _a.call(splitNeedles_2);
|
|
3026
|
-
}
|
|
3027
|
-
finally { if (e_2) throw e_2.error; }
|
|
3028
|
-
}
|
|
3029
|
-
return ret;
|
|
3030
|
-
}
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
/***/ }),
|
|
3034
|
-
|
|
3035
|
-
/***/ 4915:
|
|
3036
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3037
|
-
|
|
3038
|
-
"use strict";
|
|
3039
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3040
|
-
/* harmony export */ "kV": () => (/* binding */ sortObjDesc),
|
|
3041
|
-
/* harmony export */ "d9": () => (/* binding */ clone),
|
|
3042
|
-
/* harmony export */ "vZ": () => (/* binding */ deepEqual)
|
|
3043
|
-
/* harmony export */ });
|
|
3044
|
-
/* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, scrollToTop, zip, getDebouncer, rgbToHex */
|
|
3045
|
-
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
|
|
3046
|
-
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
|
|
3047
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
|
|
3048
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3049
|
-
/* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
|
|
3050
|
-
var __read = (undefined && undefined.__read) || function (o, n) {
|
|
3051
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3052
|
-
if (!m) return o;
|
|
3053
|
-
var i = m.call(o), r, ar = [], e;
|
|
3054
|
-
try {
|
|
3055
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3056
|
-
}
|
|
3057
|
-
catch (error) { e = { error: error }; }
|
|
3058
|
-
finally {
|
|
3059
|
-
try {
|
|
3060
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3061
|
-
}
|
|
3062
|
-
finally { if (e) throw e.error; }
|
|
3063
|
-
}
|
|
3064
|
-
return ar;
|
|
3065
|
-
};
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
function findChildrenByComponent(children,
|
|
3070
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3071
|
-
component) {
|
|
3072
|
-
var ret = [];
|
|
3073
|
-
React.Children.forEach(children, function (element) {
|
|
3074
|
-
if ((element === null || element === void 0 ? void 0 : element.type) === component) {
|
|
3075
|
-
ret.push(element);
|
|
3076
|
-
}
|
|
3077
|
-
});
|
|
3078
|
-
return ret;
|
|
3079
|
-
}
|
|
3080
|
-
function findChildByComponent(children,
|
|
3081
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3082
|
-
component) {
|
|
3083
|
-
var _a, _b;
|
|
3084
|
-
return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
|
|
3085
|
-
}
|
|
3086
|
-
function hasChildIconOrCheckboxComponent(children) {
|
|
3087
|
-
var ret = false;
|
|
3088
|
-
React.Children.forEach(children, function (element) {
|
|
3089
|
-
if ((element === null || element === void 0 ? void 0 : element.type) != null &&
|
|
3090
|
-
((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
|
|
3091
|
-
ret = true;
|
|
3092
|
-
return;
|
|
3093
|
-
}
|
|
3094
|
-
});
|
|
3095
|
-
return ret;
|
|
3096
|
-
}
|
|
3097
|
-
function scrollToTop() {
|
|
3098
|
-
window.scrollTo(0, 0);
|
|
3099
|
-
}
|
|
3100
|
-
function zip(arr1, arr2) {
|
|
3101
|
-
var ret = [];
|
|
3102
|
-
var i = 0;
|
|
3103
|
-
while (arr1[i]) {
|
|
3104
|
-
ret.push(arr1[i]);
|
|
3105
|
-
ret.push(arr2[i++]);
|
|
3106
|
-
}
|
|
3107
|
-
return ret;
|
|
3108
|
-
}
|
|
3109
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3110
|
-
function sortObjDesc(accessor) {
|
|
3111
|
-
return function (a, b) {
|
|
3112
|
-
var leftVal = 0, rightVal = 0;
|
|
3113
|
-
if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
|
|
3114
|
-
leftVal = a === null || a === void 0 ? void 0 : a[accessor];
|
|
3115
|
-
}
|
|
3116
|
-
if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
|
|
3117
|
-
rightVal = b === null || b === void 0 ? void 0 : b[accessor];
|
|
3118
|
-
}
|
|
3119
|
-
return leftVal > rightVal ? -1 : 1;
|
|
3120
|
-
};
|
|
3121
|
-
}
|
|
3122
|
-
function clone(ob) {
|
|
3123
|
-
return JSON.parse(JSON.stringify(ob));
|
|
3124
|
-
}
|
|
3125
|
-
function getDebouncer(delay) {
|
|
3126
|
-
if (delay === void 0) { delay = 1; }
|
|
3127
|
-
var debounceTimeout = null;
|
|
3128
|
-
return function debounce(f) {
|
|
3129
|
-
if (debounceTimeout !== null) {
|
|
3130
|
-
clearTimeout(debounceTimeout);
|
|
3131
|
-
}
|
|
3132
|
-
debounceTimeout = window.setTimeout(f, delay);
|
|
3133
|
-
};
|
|
3134
|
-
}
|
|
3135
|
-
function isObject(obj) {
|
|
3136
|
-
return typeof obj === 'object' && obj != null;
|
|
3137
|
-
}
|
|
3138
|
-
function deepEqual(obj1, obj2) {
|
|
3139
|
-
if (obj1 === obj2) {
|
|
3140
|
-
return true;
|
|
3141
|
-
}
|
|
3142
|
-
if (isObject(obj1) && isObject(obj2)) {
|
|
3143
|
-
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
|
|
3144
|
-
return false;
|
|
3145
|
-
}
|
|
3146
|
-
for (var prop in obj1) {
|
|
3147
|
-
if (!deepEqual(obj1[prop], obj2[prop])) {
|
|
3148
|
-
return false;
|
|
3149
|
-
}
|
|
3150
|
-
}
|
|
3151
|
-
return true;
|
|
3152
|
-
}
|
|
3153
|
-
return false;
|
|
3154
|
-
}
|
|
3155
|
-
function componentToHex(c) {
|
|
3156
|
-
if (isNaN(c)) {
|
|
3157
|
-
throw Error('The color has not been written correctly');
|
|
3158
|
-
}
|
|
3159
|
-
var hex = c.toString(16).toUpperCase();
|
|
3160
|
-
return hex.length === 1 ? '0' + hex : hex;
|
|
3161
|
-
}
|
|
3162
|
-
function cleanSingleColor(c) {
|
|
3163
|
-
return c.replace(/"|'/g, '').trim();
|
|
3164
|
-
}
|
|
3165
|
-
function rgbToHex(rgb) {
|
|
3166
|
-
if (rgb.includes('rgba')) {
|
|
3167
|
-
throw Error('not implemented');
|
|
3168
|
-
}
|
|
3169
|
-
var _a = __read(rgb
|
|
3170
|
-
.replace('rgb', '')
|
|
3171
|
-
.replace(/\(|\)/gi, '')
|
|
3172
|
-
.split(',')
|
|
3173
|
-
.map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
|
|
3174
|
-
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
3175
|
-
}
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
/***/ }),
|
|
3179
|
-
|
|
3180
|
-
/***/ 5692:
|
|
3181
|
-
/***/ ((module) => {
|
|
3182
|
-
|
|
3183
|
-
"use strict";
|
|
3184
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
|
|
3185
|
-
|
|
3186
|
-
/***/ }),
|
|
3187
|
-
|
|
3188
|
-
/***/ 3741:
|
|
3189
|
-
/***/ ((module) => {
|
|
3190
|
-
|
|
3191
|
-
"use strict";
|
|
3192
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__3741__;
|
|
3193
|
-
|
|
3194
|
-
/***/ }),
|
|
3195
|
-
|
|
3196
|
-
/***/ 8310:
|
|
3197
|
-
/***/ ((module) => {
|
|
3198
|
-
|
|
3199
|
-
"use strict";
|
|
3200
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
|
|
3201
|
-
|
|
3202
|
-
/***/ }),
|
|
3203
|
-
|
|
3204
|
-
/***/ 8156:
|
|
3205
|
-
/***/ ((module) => {
|
|
3206
|
-
|
|
3207
|
-
"use strict";
|
|
3208
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
|
|
3209
|
-
|
|
3210
|
-
/***/ }),
|
|
3211
|
-
|
|
3212
|
-
/***/ 8721:
|
|
3213
|
-
/***/ ((module) => {
|
|
3214
|
-
|
|
3215
|
-
"use strict";
|
|
3216
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
|
|
3217
|
-
|
|
3218
|
-
/***/ }),
|
|
3219
|
-
|
|
3220
|
-
/***/ 1082:
|
|
3221
|
-
/***/ ((module) => {
|
|
3222
|
-
|
|
3223
|
-
"use strict";
|
|
3224
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
|
|
3225
|
-
|
|
3226
|
-
/***/ }),
|
|
3227
|
-
|
|
3228
|
-
/***/ 8763:
|
|
3229
|
-
/***/ ((module) => {
|
|
3230
|
-
|
|
3231
|
-
"use strict";
|
|
3232
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
|
|
3233
|
-
|
|
3234
|
-
/***/ }),
|
|
3235
|
-
|
|
3236
|
-
/***/ 4329:
|
|
3237
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3238
|
-
|
|
3239
|
-
"use strict";
|
|
3240
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3241
|
-
/* harmony export */ "Z": () => (/* binding */ _typeof)
|
|
3242
|
-
/* harmony export */ });
|
|
3243
|
-
function _typeof(obj) {
|
|
3244
|
-
"@babel/helpers - typeof";
|
|
3245
|
-
|
|
3246
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
3247
|
-
return typeof obj;
|
|
3248
|
-
} : function (obj) {
|
|
3249
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3250
|
-
}, _typeof(obj);
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
/***/ })
|
|
3254
|
-
|
|
3255
|
-
/******/ });
|
|
3256
|
-
/************************************************************************/
|
|
3257
|
-
/******/ // The module cache
|
|
3258
|
-
/******/ var __webpack_module_cache__ = {};
|
|
3259
|
-
/******/
|
|
3260
|
-
/******/ // The require function
|
|
3261
|
-
/******/ function __webpack_require__(moduleId) {
|
|
3262
|
-
/******/ // Check if module is in cache
|
|
3263
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
3264
|
-
/******/ if (cachedModule !== undefined) {
|
|
3265
|
-
/******/ return cachedModule.exports;
|
|
3266
|
-
/******/ }
|
|
3267
|
-
/******/ // Create a new module (and put it into the cache)
|
|
3268
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
3269
|
-
/******/ // no module.id needed
|
|
3270
|
-
/******/ // no module.loaded needed
|
|
3271
|
-
/******/ exports: {}
|
|
3272
|
-
/******/ };
|
|
3273
|
-
/******/
|
|
3274
|
-
/******/ // Execute the module function
|
|
3275
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3276
|
-
/******/
|
|
3277
|
-
/******/ // Return the exports of the module
|
|
3278
|
-
/******/ return module.exports;
|
|
3279
|
-
/******/ }
|
|
3280
|
-
/******/
|
|
3281
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
3282
|
-
/******/ __webpack_require__.m = __webpack_modules__;
|
|
3283
|
-
/******/
|
|
3284
|
-
/************************************************************************/
|
|
3285
|
-
/******/ /* webpack/runtime/chunk loaded */
|
|
3286
|
-
/******/ (() => {
|
|
3287
|
-
/******/ var deferred = [];
|
|
3288
|
-
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
3289
|
-
/******/ if(chunkIds) {
|
|
3290
|
-
/******/ priority = priority || 0;
|
|
3291
|
-
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
3292
|
-
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
3293
|
-
/******/ return;
|
|
3294
|
-
/******/ }
|
|
3295
|
-
/******/ var notFulfilled = Infinity;
|
|
3296
|
-
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
3297
|
-
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
3298
|
-
/******/ var fulfilled = true;
|
|
3299
|
-
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
3300
|
-
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
3301
|
-
/******/ chunkIds.splice(j--, 1);
|
|
3302
|
-
/******/ } else {
|
|
3303
|
-
/******/ fulfilled = false;
|
|
3304
|
-
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
3305
|
-
/******/ }
|
|
3306
|
-
/******/ }
|
|
3307
|
-
/******/ if(fulfilled) {
|
|
3308
|
-
/******/ deferred.splice(i--, 1)
|
|
3309
|
-
/******/ var r = fn();
|
|
3310
|
-
/******/ if (r !== undefined) result = r;
|
|
3311
|
-
/******/ }
|
|
3312
|
-
/******/ }
|
|
3313
|
-
/******/ return result;
|
|
3314
|
-
/******/ };
|
|
3315
|
-
/******/ })();
|
|
3316
|
-
/******/
|
|
3317
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
3318
|
-
/******/ (() => {
|
|
3319
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
3320
|
-
/******/ __webpack_require__.n = (module) => {
|
|
3321
|
-
/******/ var getter = module && module.__esModule ?
|
|
3322
|
-
/******/ () => (module['default']) :
|
|
3323
|
-
/******/ () => (module);
|
|
3324
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
3325
|
-
/******/ return getter;
|
|
3326
|
-
/******/ };
|
|
3327
|
-
/******/ })();
|
|
3328
|
-
/******/
|
|
3329
|
-
/******/ /* webpack/runtime/define property getters */
|
|
3330
|
-
/******/ (() => {
|
|
3331
|
-
/******/ // define getter functions for harmony exports
|
|
3332
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
3333
|
-
/******/ for(var key in definition) {
|
|
3334
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
3335
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
3336
|
-
/******/ }
|
|
3337
|
-
/******/ }
|
|
3338
|
-
/******/ };
|
|
3339
|
-
/******/ })();
|
|
3340
|
-
/******/
|
|
3341
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
3342
|
-
/******/ (() => {
|
|
3343
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
3344
|
-
/******/ })();
|
|
3345
|
-
/******/
|
|
3346
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
3347
|
-
/******/ (() => {
|
|
3348
|
-
/******/ // define __esModule on exports
|
|
3349
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
3350
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
3351
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3352
|
-
/******/ }
|
|
3353
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
3354
|
-
/******/ };
|
|
3355
|
-
/******/ })();
|
|
3356
|
-
/******/
|
|
3357
|
-
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
3358
|
-
/******/ (() => {
|
|
3359
|
-
/******/ // no baseURI
|
|
3360
|
-
/******/
|
|
3361
|
-
/******/ // object to store loaded and loading chunks
|
|
3362
|
-
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
3363
|
-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
3364
|
-
/******/ var installedChunks = {
|
|
3365
|
-
/******/ 3227: 0,
|
|
3366
|
-
/******/ 9811: 0,
|
|
3367
|
-
/******/ 5785: 0
|
|
3368
|
-
/******/ };
|
|
3369
|
-
/******/
|
|
3370
|
-
/******/ // no chunk on demand loading
|
|
3371
|
-
/******/
|
|
3372
|
-
/******/ // no prefetching
|
|
3373
|
-
/******/
|
|
3374
|
-
/******/ // no preloaded
|
|
3375
|
-
/******/
|
|
3376
|
-
/******/ // no HMR
|
|
3377
|
-
/******/
|
|
3378
|
-
/******/ // no HMR manifest
|
|
3379
|
-
/******/
|
|
3380
|
-
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
3381
|
-
/******/
|
|
3382
|
-
/******/ // install a JSONP callback for chunk loading
|
|
3383
|
-
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
3384
|
-
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
3385
|
-
/******/ // add "moreModules" to the modules object,
|
|
3386
|
-
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
3387
|
-
/******/ var moduleId, chunkId, i = 0;
|
|
3388
|
-
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
3389
|
-
/******/ for(moduleId in moreModules) {
|
|
3390
|
-
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
3391
|
-
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
3392
|
-
/******/ }
|
|
3393
|
-
/******/ }
|
|
3394
|
-
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
3395
|
-
/******/ }
|
|
3396
|
-
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
3397
|
-
/******/ for(;i < chunkIds.length; i++) {
|
|
3398
|
-
/******/ chunkId = chunkIds[i];
|
|
3399
|
-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
3400
|
-
/******/ installedChunks[chunkId][0]();
|
|
3401
|
-
/******/ }
|
|
3402
|
-
/******/ installedChunks[chunkIds[i]] = 0;
|
|
3403
|
-
/******/ }
|
|
3404
|
-
/******/ return __webpack_require__.O(result);
|
|
3405
|
-
/******/ }
|
|
3406
|
-
/******/
|
|
3407
|
-
/******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
|
|
3408
|
-
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
3409
|
-
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
3410
|
-
/******/ })();
|
|
3411
|
-
/******/
|
|
3412
|
-
/************************************************************************/
|
|
3413
|
-
/******/
|
|
3414
|
-
/******/ // startup
|
|
3415
|
-
/******/ // Load entry module and return exports
|
|
3416
|
-
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
3417
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(8075)))
|
|
3418
|
-
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
3419
|
-
/******/
|
|
3420
|
-
/******/ return __webpack_exports__;
|
|
3421
|
-
/******/ })()
|
|
3422
|
-
;
|
|
3423
|
-
});
|
|
3424
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@fortawesome/react-fontawesome"),require("@nivo/circle-packing"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","@nivo/circle-packing","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],e):"object"==typeof exports?exports["atoka-design-system"]=e(require("@fortawesome/react-fontawesome"),require("@nivo/circle-packing"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):t["atoka-design-system"]=e(t["@fortawesome/react-fontawesome"],t["@nivo/circle-packing"],t.classnames,t.react,t["react-bootstrap/Form"],t["react-bootstrap/FormControl"],t["react-bootstrap/FormText"])}(self,(function(t,e,r,n,o,i,a){return(()=>{var l,u={9172:(t,e,r)=>{var n=r(6496).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=k(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function d(){}function y(){}function v(){}var m={};s(m,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==r&&i.call(b,l)&&(m=b);var w=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,a,l,u){var c=h(t[o],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,u)}),(function(t){r("throw",t,l,u)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function E(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return y.prototype=v,s(w,"constructor",v),s(v,"constructor",y),y.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(N.prototype),s(N.prototype,u,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,c,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},6496:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9673:(t,e,r)=>{var n=r(6496),o=r(9172)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},6627:(t,e,r)=>{"use strict";r.d(e,{MR:()=>i});var n=r(4329);function o(t){return o="function"==typeof Symbol&&"symbol"===(0,n.Z)(Symbol.iterator)?function(t){return(0,n.Z)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,n.Z)(t)},o(t)}function i(t,e,r){var n=r.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var r=n.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return r},set:function(t){n=t,delete this[e]}}),i=!1,r},set:function(t){n=t}}}},2766:(t,e,r)=>{"use strict";function n(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function o(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function i(){}r.d(e,{ZP:()=>x,B8:()=>O});var a=.7,l=1/a,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),p=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),y=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,s,s]+"\\)$"),m=new RegExp("^hsla\\("+[c,s,s,c]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function x(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?N(e):3===r?new S(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?k(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?k(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new S(e[1],e[2],e[3],1):(e=p.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?k(e[1],e[2],e[3],e[4]):(e=y.exec(t))?k(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?L(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?L(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?N(g[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function N(t){return new S(t>>16&255,t>>8&255,255&t,1)}function k(t,e,r,n){return n<=0&&(t=e=r=NaN),new S(t,e,r,n)}function M(t){return t instanceof i||(t=x(t)),t?new S((t=t.rgb()).r,t.g,t.b,t.opacity):new S}function O(t,e,r,n){return 1===arguments.length?M(t):new S(t,e,r,null==n?1:n)}function S(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function E(){return"#"+C(this.r)+C(this.g)+C(this.b)}function j(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function L(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new F(t,e,r,n)}function P(t){if(t instanceof F)return new F(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new F;if(t instanceof F)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),a=Math.max(e,r,n),l=NaN,u=a-o,c=(a+o)/2;return u?(l=e===a?(r-n)/u+6*(r<n):r===a?(n-e)/u+2:(e-r)/u+4,u/=c<.5?a+o:2-a-o,l*=60):u=c>0&&c<1?0:l,new F(l,u,c,t.opacity)}function F(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function _(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}n(i,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return P(this).formatHsl()},formatRgb:w,toString:w}),n(S,O,o(i,{brighter:function(t){return t=null==t?l:Math.pow(l,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:j,toString:j})),n(F,(function(t,e,r,n){return 1===arguments.length?P(t):new F(t,e,r,null==n?1:n)}),o(i,{brighter:function(t){return t=null==t?l:Math.pow(l,t),new F(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new F(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new S(_(t>=240?t-240:t+120,o,n),_(t,o,n),_(t<120?t+240:t-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},1820:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ot});var n=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(t,e,r){var a=(e-t)/Math.max(0,r),l=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,l);return l>=0?(u>=n?10:u>=o?5:u>=i?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(u>=n?10:u>=o?5:u>=i?2:1)}function l(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function u(t){var e=t,r=t;function n(t,e,n,o){for(null==n&&(n=0),null==o&&(o=t.length);n<o;){var i=n+o>>>1;r(t[i],e)<0?n=i+1:o=i}return n}return 1===t.length&&(e=function(e,r){return t(e)-r},r=function(t){return function(e,r){return l(t(e),r)}}(t)),{left:n,center:function(t,r,o,i){null==o&&(o=0),null==i&&(i=t.length);var a=n(t,r,o,i-1);return a>o&&e(t[a-1],r)>-e(t[a],r)?a-1:a},right:function(t,e,n,o){for(null==n&&(n=0),null==o&&(o=t.length);n<o;){var i=n+o>>>1;r(t[i],e)>0?o=i:n=i+1}return n}}}r(9673);var c=u(l),s=c.right;c.left,u((function(t){return null===t?NaN:+t})).center;const f=s;var h=r(4329),p=r(2766);function d(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}const y=function(t){return function(){return t}};function v(t,e){return function(r){return t+r*e}}function m(t){return 1==(t=+t)?g:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):y(isNaN(e)?r:e)}}function g(t,e){var r=e-t;return r?v(t,r):y(isNaN(t)?e:t)}const b=function t(e){var r=m(e);function n(t,e){var n=r((t=(0,p.B8)(t)).r,(e=(0,p.B8)(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=g(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function w(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),l=new Array(o);for(r=0;r<o;++r)n=(0,p.B8)(e[r]),i[r]=n.r||0,a[r]=n.g||0,l[r]=n.b||0;return i=t(i),a=t(a),l=t(l),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=l(t),n+""}}}w((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,l=n<e-1?t[n+2]:2*i-o;return d((r-n/e)*e,a,o,i,l)}})),w((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],l=t[(n+2)%e];return d((r-n/e)*e,o,i,a,l)}}));function x(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=C(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function N(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function k(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function M(t,e){var r,n={},o={};for(r in null!==t&&"object"===(0,h.Z)(t)||(t={}),null!==e&&"object"===(0,h.Z)(e)||(e={}),e)r in t?n[r]=C(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,S=new RegExp(O.source,"g");function E(t,e){var r,n,o,i=O.lastIndex=S.lastIndex=0,a=-1,l=[],u=[];for(t+="",e+="";(r=O.exec(t))&&(n=S.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,u.push({i:a,x:k(r,n)})),i=S.lastIndex;return i<e.length&&(o=e.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)l[(r=u[n]).i]=r.x(t);return l.join("")})}function j(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function C(t,e){var r,n,o=(0,h.Z)(e);return null==e||"boolean"===o?y(e):("number"===o?k:"string"===o?(r=(0,p.ZP)(e))?(e=r,b):E:e instanceof p.ZP?b:e instanceof Date?N:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?x:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?M:k:j))(t,e)}function L(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function P(t){return+t}var F=[0,1];function _(t){return t}function T(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function R(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=T(o,n),i=r(a,i)):(n=T(n,o),i=r(i,a)),function(t){return i(n(t))}}function A(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=T(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=f(t,e,1,n)-1;return i[r](o[r](e))}}function D(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function q(){var t,e,r,n,o,i,a=F,l=F,u=C,c=_;function s(){var t,e,r,u=Math.min(a.length,l.length);return c!==_&&(t=a[0],e=a[u-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=u>2?A:R,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),l,u)))(t(c(e)))}return f.invert=function(r){return c(e((i||(i=n(l,a.map(t),k)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,P),s()):a.slice()},f.range=function(t){return arguments.length?(l=Array.from(t),s()):l.slice()},f.rangeRound=function(t){return l=Array.from(t),u=L,s()},f.clamp=function(t){return arguments.length?(c=!!t||_,s()):c!==_},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function K(){return q()(_,_)}function I(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var V,z=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function B(t){if(!(e=z.exec(t)))throw new Error("invalid format: "+t);var e;return new Z({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Z(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function G(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function H(t){return(t=G(Math.abs(t)))?t[1]:NaN}function $(t,e){var r=G(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}B.prototype=Z.prototype,Z.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const X={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return $(100*t,e)},r:$,s:function(t,e){var r=G(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(V=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+G(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function U(t){return t}var Y,J,Q,W=Array.prototype.map,tt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function et(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?U:(e=W.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),i.push(t.substring(o-=l,o+l)),!((u+=l+1)>n));)l=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?U:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(W.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=B(t)).fill,r=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):X[g]||(void 0===v&&(v=12),m=!0,g="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===h?o:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===h?i:/[%p]/.test(g)?u:"",x=X[g],N=/[defgprs%]/.test(g);function k(t){var o,i,u,h=b,k=w;if("c"===g)k=x(t)+k,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),h=(M?"("===f?f:c:"-"===f||"("===f?"":f)+h,k=("s"===g?tt[8+V/3]:"")+k+(M&&"("===f?")":""),N)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){k=(46===u?a+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o);break}}y&&!p&&(t=n(t,1/0));var O=h.length+t.length+k.length,S=O<d?new Array(d-O+1).join(e):"";switch(y&&p&&(t=n(S+t,S.length?d-k.length:1/0),S=""),r){case"<":t=h+t+k+S;break;case"=":t=h+S+t+k;break;case"^":t=S.slice(0,O=S.length>>1)+h+t+k+S.slice(O);break;default:t=S+h+t+k}return l(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var r=f(((t=B(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(H(e)/3))),o=Math.pow(10,-n),i=tt[8+n/3];return function(t){return r(o*t)+i}}}}function rt(t,e,r,a){var l,u=function(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),l=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/l;return u>=n?l*=10:u>=o?l*=5:u>=i&&(l*=2),e<t?-l:l}(t,e,r);switch((a=B(null==a?",f":a)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=a.precision||isNaN(l=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(H(e)/3)))-H(Math.abs(t)))}(u,c))||(a.precision=l),Q(a,c);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(l=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,H(e)-H(t))+1}(u,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=l-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(l=function(t){return Math.max(0,-H(Math.abs(t)))}(u))||(a.precision=l-2*("%"===a.type))}return J(a)}function nt(t){var e=t.domain;return t.ticks=function(t){var r=e();return function(t,e,r){var n,o,i,l,u=-1;if(r=+r,(t=+t)==(e=+e)&&r>0)return[t];if((n=e<t)&&(o=t,t=e,e=o),0===(l=a(t,e,r))||!isFinite(l))return[];if(l>0){var c=Math.round(t/l),s=Math.round(e/l);for(c*l<t&&++c,s*l>e&&--s,i=new Array(o=s-c+1);++u<o;)i[u]=(c+u)*l}else{l=-l;var f=Math.round(t*l),h=Math.round(e*l);for(f/l<t&&++f,h/l>e&&--h,i=new Array(o=h-f+1);++u<o;)i[u]=(f+u)/l}return n&&i.reverse(),i}(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return rt(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),l=0,u=i.length-1,c=i[l],s=i[u],f=10;for(s<c&&(o=c,c=s,s=o,o=l,l=u,u=o);f-- >0;){if((o=a(c,s,r))===n)return i[l]=c,i[u]=s,e(i);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o}n=o}return t},t}function ot(){var t=K();return t.copy=function(){return D(t,ot())},I.apply(t,arguments),nt(t)}Y=et({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),J=Y.format,Q=Y.formatPrefix},8075:(t,e,r)=>{"use strict";r.r(e),r.d(e,{BubbleChart:()=>O,BubbleChartDataPoint:()=>n.BubbleChartDataPoint,BubbleChartTooltip:()=>n.BubbleChartTooltip});var n={};r.r(n),r.d(n,{O:()=>O});var o,i=r(8156),a=r.n(i),l=r(7540),u=r(4806),c=r(5909),s=r(4915),f=r(6627),h=r(3741),p=r(8310),d=r.n(p),y=r(2394),v=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=function(){return m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)},g=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},b=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayers=["circles","labels"],e}var r,n;return v(e,t),e.prototype.getEllipsedLabel=function(t,r){var n=Math.round(1.5*t/e.ESTIMATED_LETTER_PIXELS);return(0,y.Hp)(r,n)},e.prototype.renderColor=function(t){var e,r,n,o;return null!==(o=null===(r=null===(e=null==this?void 0:this.props)||void 0===e?void 0:e.colors)||void 0===r?void 0:r[String(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.id)])&&void 0!==o?o:l.p5},e.prototype.getLabel=function(t){return this.getEllipsedLabel(t.radius,t.data.label)},e.prototype.renderContent=function(){var t=this.props,e=t.id,r=t.isCanvas,n=t.fontSize,o={layers:this.defaultLayers,margin:{top:0,right:0,bottom:0,left:0},data:this.props.data,colors:this.renderColor,id:"".concat(e,"-component"),padding:4,leavesOnly:!0,tooltip:this.props.renderTooltip,enableLabels:!0,labelTextColor:"white",label:this.getLabel,value:this.props.dataValueKey};if(r){var i={fontSize:n,background:"#fff"};return a().createElement(h.ResponsiveCirclePackingCanvas,m({},o,{theme:i}))}return a().createElement(h.ResponsiveCirclePacking,m({},o))},e.prototype.render=function(){var t,e,r=this.props,n=r.id,o=r.className,i=r.chartRef,l=r.size,u=null!==(t=null==l?void 0:l.width)&&void 0!==t?t:"100%",c=null!==(e=null==l?void 0:l.height)&&void 0!==e?e:"100%",s=d()("bubble-chart-container d-flex justify-content-center align-items-center",o);return a().createElement("div",{id:n,className:s,ref:i,style:{width:u,height:c}},this.renderContent())},e.displayName="BubbleChartUI",e.ESTIMATED_LETTER_PIXELS=6.2,e.defaultProps={labelSkipRadius:17,dataValueKey:"significance"},g([f.MR,b("design:type",Function),b("design:paramtypes",["function"==typeof(r=void 0!==h.ComputedDatum&&h.ComputedDatum)?r:Object]),b("design:returntype",String)],e.prototype,"renderColor",null),g([f.MR,b("design:type",Function),b("design:paramtypes",["function"==typeof(n=void 0!==h.ComputedDatum&&h.ComputedDatum)?n:Object]),b("design:returntype",String)],e.prototype,"getLabel",null),e}(a().PureComponent),x=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(){return N=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},N.apply(this,arguments)},k=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},M=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.shouldComponentUpdate=function(t){return!(0,s.vZ)(this.props,t)},e.prototype.getComponentSetup=function(){var t,r,n,o,i=this.props,a=i.otherId,l=i.maxBubbleNumber,f=i.data,h=i.id,p=i.numberToStringFormatter,d=i.isCanvas,y=i.total,v=M([],k(null!=f?f:[]),!1),m=null!==(t=this.props.dataValueKey)&&void 0!==t?t:e.defaultDataValueKey,g=null==this.props.maxBubbleNumber?v.sort((0,s.kV)(m)):(0,c.xG)(v,a,a,l,y,m),b=this.computeColors(g),w=null==b?void 0:b.reduce((function(t,e,r){return t[String(g[r].id)]=e,t}),{}),x=null==l?g:g.slice(0,g.length-1);return{isCanvas:d,colors:w,numberToStringFormatter:p,renderTooltip:null!==(r=this.props.renderTooltip)&&void 0!==r?r:(0,u.getRenderStatisticsTooltip)({tooltipDataLabelKey:null!==(o=null===(n=this.props)||void 0===n?void 0:n.dataValueKey)&&void 0!==o?o:e.defaultDataValueKey,tooltipDataTitleKey:"label",otherId:this.props.otherId,numberToStringFormatter:this.props.numberToStringFormatter,withColor:!0}),data:{children:x,value:0,label:h}}},e.prototype.computeColors=function(t){var e;return null===(e=(0,l.vA)(t.length,this.props.colors))||void 0===e?void 0:e.reverse()},e.prototype.render=function(){var t=this.props,e=t.id,r=t.className,n=t.chartRef,o=t.size,i=t.labelSkipRadius,l=t.fontSize;return a().createElement(w,N({},this.getComponentSetup(),{id:e,chartRef:n,className:r,size:o,labelSkipRadius:i,fontSize:l}))},e.defaultDataValueKey="significance",e.displayName="BubbleChart",e.defaultProps={colors:[l.KH,l.p5],dataValueKey:e.defaultDataValueKey},e}(a().Component)},8352:(t,e,r)=>{"use strict";var n=r(8156),o=r.n(n),i=r(8310),a=r.n(i),l=r(8721),u=r.n(l),c=o().memo((function(t){var e=a()(null==t?void 0:t.className,"atoka-form-label");return o().createElement(u().Label,{className:e},t.children)}));c.displayName="FormLabel";var s=r(2048),f=function(){return f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)},h=function(t){var e,r=a()("atoka-form-checkbox",null==t?void 0:t.className);return o().createElement(u().Check,f({type:"checkbox"},t,{custom:!0,className:r,label:null!==(e=t.label)&&void 0!==e?e:""}))};h.displayName="FormCheckbox";var p=function(){return p=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},p.apply(this,arguments)},d=function(t){var e,r=a()(null==t?void 0:t.className,"atoka-form-radio");return o().createElement(u().Check,p({type:"radio"},t,{custom:!0,className:r,label:null!==(e=t.label)&&void 0!==e?e:""}))};d.displayName="FormRadio";var y=r(8763),v=r.n(y),m=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},g=o().memo((function(t){var e=t.children,r=m(t,["children"]),n=a()("d-block",null==r?void 0:r.className);return o().createElement(v(),{bsPrefix:"atoka-form-help",className:n},e)}));g.displayName="FormHelp";var b=function(){return b=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},b.apply(this,arguments)},w=function(t){var e=a()(null==t?void 0:t.className,"atoka-form");return o().createElement(u(),b({},t,{className:e}),t.children)};w.displayName="Form",w.Control=s.N,w.Label=c,w.Checkbox=h,w.Radio=d,w.File=u().File,w.Switch=u().Switch,w.Help=g,w.Group=u().Group},2048:(t,e,r)=>{"use strict";r.d(e,{N:()=>p});var n=r(8156),o=r.n(n),i=r(8310),a=r.n(i),l=r(1082),u=r.n(l),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},s=o().memo((function(t){var e=t.show,r=void 0===e||e,n=c(t,["show"]),i=a()(null==n?void 0:n.className,"atoka-form-control-feedback",{"d-block":r});return o().createElement(u().Feedback,{type:n.type,className:i},n.children)}));s.displayName=" FormControlFeedBack";var f=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},h=o().forwardRef((function(t,e){var r=t.size,n=void 0===r?"md":r,i=f(t,["size"]),l=a()("atoka-form-control",null==i?void 0:i.className,{"atoka-shadow":i.withShadow,disabled:i.disabled});return o().createElement(u(),{as:i.as,rows:i.rows,cols:i.cols,placeholder:i.placeholder,className:l,disabled:i.disabled,readOnly:i.readOnly,value:i.value,onChange:i.onChange,onKeyPress:i.onKeyPress,onKeyDown:i.onKeyDown,defaultValue:i.defaultValue,size:"md"===n?void 0:n,type:i.type,id:i.id,isValid:i.isValid,isInvalid:i.isInvalid,ref:e,autoComplete:"off"},i.children)}));h.displayName="FormControlComponent";var p=h;p.FeedBack=s,p.displayName="FormControl"},8007:(t,e,r)=>{"use strict";r.d(e,{q:()=>l});var n=r(8156),o=r.n(n),i=r(4806),a=function(){return a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)};function l(t){var e=t.tooltipDataLabelKey,r=t.tooltipDataValueKey,n=t.tooltipDataTitleKey,l=t.otherId,u=t.otherLabel,c=t.numberToStringFormatter,s=t.withColor,f=t.className,h=void 0===f?"tooltip-background":f;return function(t){var f,p,d,y,v=a(a({},t.data),{value:null===(f=t.data)||void 0===f?void 0:f.value,label:null===(p=t.data)||void 0===p?void 0:p.label,id:null===(d=t.data)||void 0===d?void 0:d.id,percentage:null===(y=t.data)||void 0===y?void 0:y.percentage});return o().createElement(i.StatisticsTooltip,{otherId:l,otherLabel:u,numberToStringFormatter:c,data:v,tooltipDataLabelKey:e,tooltipDataTitleKey:n,tooltipDataValueKey:r,className:null!=h?h:"",color:s?t.color:void 0})}}},4806:(t,e,r)=>{"use strict";r.d(e,{StatisticsTooltip:()=>u,getRenderStatisticsTooltip:()=>c.q});var n=r(8156),o=r.n(n),i=r(8310),a=r.n(i),l=r(5909),u=o().memo((function(t){function e(){var e=t.tooltipDataLabelKey,r=t.numberToStringFormatter,o=n(e,t.data);if(null!=o)return null==r?String(o):"string"==typeof o?o:r(o)}function r(){var e=n(t.tooltipDataValueKey,t.data);if(null!=e)return"number"==typeof e?(0,l.Ow)(e):e}function n(t,e){return null==t||null==e?void 0:e[t]}var i,u,c,s,f,h,p=a()("statistics-tooltip",null==t?void 0:t.className),d=null==t.color?null:o().createElement("span",{className:"tooltip-rectangle",style:{background:t.color}});return o().createElement("div",{className:p},o().createElement("div",{className:"d-flex align-items-center"},d,o().createElement("span",{className:"text-left"},(u=t.tooltipDataTitleKey,c=t.data,s=t.otherId,f=t.otherLabel,(h=n(u,c))===s?null!=f?f:s:h?String(h):void 0))),0===(i=[{value:e(),key:t.tooltipDataLabelKey,className:"label"},{value:r(),key:t.tooltipDataValueKey,className:"value"}].filter((function(t){return null!=t.value})).map((function(t){return o().createElement("span",{key:t.key,className:t.className},t.value)}))).length?null:o().createElement("div",{className:"d-flex justify-content-between"},i),t.children)}));u.displayName="StatisticsTooltip";var c=r(8007)},5909:(t,e,r)=>{"use strict";r.d(e,{xG:()=>i,Ow:()=>l});var n=r(4915),o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function i(t,e,r,o,i,l){var u,c;void 0===o&&(o=0),void 0===l&&(l="value");var s=0,f=null!=e?e:"other",h=null!=o?o:0,p=[],d=null==t?void 0:t.sort((0,n.kV)(l));null==d||d.forEach((function(t,r){var o;if(r<h&&t.id!==e)p.push(function(t){if(null==t.children)return t;var e=(0,n.d9)(t);return a(e),e}(t));else{var i=null!==(o=Number(null==t?void 0:t.value))&&void 0!==o?o:0;s+=i}}));var y={};return y.id=f,y.value=parseFloat(s.toFixed(2)),y.initialValue=parseFloat(s.toFixed(2)),y.label=null!==(u=null!=r?r:f)&&void 0!==u?u:"",null!=(null===(c=null==t?void 0:t[0])||void 0===c?void 0:c.percentage)&&null!=i&&(y.percentage=s/i*100),o===1/0&&0===s||p.push(y),p}function a(t){var e,r,n,i=null!==(n=null==t?void 0:t.children)&&void 0!==n?n:[];t.initialValue=t.value,i.length>0&&delete t.value;try{for(var l=o(i),u=l.next();!u.done;u=l.next()){a(u.value)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}}function l(t){var e;return"".concat(parseInt(null===(e=null==t?void 0:t.toFixed)||void 0===e?void 0:e.call(t,0),10),"%")}},7540:(t,e,r)=>{"use strict";r.d(e,{vA:()=>o,KH:()=>a,p5:()=>l});var n=r(1820);function o(t,e){void 0===e&&(e=["#82CA9D","#f6ea25","#F7977A"]);var r=[];if(0!==t){var o=(0,n.Z)(),a=i(e.length,e.length),l=i(t,e.length);o=o.domain(a).range(e);for(var u=0;u<t;u++)r.push(o(l[u]));return r}}function i(t,e){var r=[];r.push(0);for(var n=0;n<t-2;n++){var o=Number(e/t*(n+1));r.push(parseFloat(o.toFixed(2)))}return r.push(e),r}var a="#CBD8E0",l="rgb(32, 88, 113)"},2394:(t,e,r)=>{"use strict";r.d(e,{Hp:()=>n});function n(t,e){return null==t?"":t.length>e?"".concat(t.substr(0,e-1),"…"):t}},4915:(t,e,r)=>{"use strict";r.d(e,{kV:()=>n,d9:()=>o,vZ:()=>a});r(5692),r(8156),r(8352);function n(t){return function(e,r){var n=0,o=0;return null!=(null==e?void 0:e[t])&&(n=null==e?void 0:e[t]),null!=(null==r?void 0:r[t])&&(o=null==r?void 0:r[t]),n>o?-1:1}}function o(t){return JSON.parse(JSON.stringify(t))}function i(t){return"object"==typeof t&&null!=t}function a(t,e){if(t===e)return!0;if(i(t)&&i(e)){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!a(t[r],e[r]))return!1;return!0}return!1}},5692:e=>{"use strict";e.exports=t},3741:t=>{"use strict";t.exports=e},8310:t=>{"use strict";t.exports=r},8156:t=>{"use strict";t.exports=n},8721:t=>{"use strict";t.exports=o},1082:t=>{"use strict";t.exports=i},8763:t=>{"use strict";t.exports=a},4329:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})}},c={};function s(t){var e=c[t];if(void 0!==e)return e.exports;var r=c[t]={exports:{}};return u[t](r,r.exports,s),r.exports}s.m=u,l=[],s.O=(t,e,r,n)=>{if(!e){var o=1/0;for(c=0;c<l.length;c++){for(var[e,r,n]=l[c],i=!0,a=0;a<e.length;a++)(!1&n||o>=n)&&Object.keys(s.O).every((t=>s.O[t](e[a])))?e.splice(a--,1):(i=!1,n<o&&(o=n));if(i){l.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}n=n||0;for(var c=l.length;c>0&&l[c-1][2]>n;c--)l[c]=l[c-1];l[c]=[e,r,n]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={3227:0,9811:0,8699:0};s.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some((e=>0!==t[e]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var c=l(s)}for(e&&e(r);u<i.length;u++)o=i[u],s.o(t,o)&&t[o]&&t[o][0](),t[i[u]]=0;return s.O(c)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var f=s.O(void 0,[8699],(()=>s(8075)));return f=s.O(f)})()}));
|