chartkick 5.0.6 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/lib/chartkick/helper.rb +1 -1
- data/lib/chartkick/version.rb +1 -1
- data/licenses/LICENSE-chart.js.txt +1 -1
- data/vendor/assets/javascripts/Chart.bundle.js +453 -587
- metadata +4 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Chart.js v4.4.
|
2
|
+
* Chart.js v4.4.4
|
3
3
|
* https://www.chartjs.org
|
4
4
|
* (c) 2024 Chart.js Contributors
|
5
5
|
* Released under the MIT License
|
@@ -26,6 +26,131 @@
|
|
26
26
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Chart = factory());
|
27
27
|
})(this, (function () { 'use strict';
|
28
28
|
|
29
|
+
function _arrayLikeToArray$1(r, a) {
|
30
|
+
(null == a || a > r.length) && (a = r.length);
|
31
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
32
|
+
return n;
|
33
|
+
}
|
34
|
+
function _arrayWithHoles(r) {
|
35
|
+
if (Array.isArray(r)) return r;
|
36
|
+
}
|
37
|
+
function _arrayWithoutHoles(r) {
|
38
|
+
if (Array.isArray(r)) return _arrayLikeToArray$1(r);
|
39
|
+
}
|
40
|
+
function _assertThisInitialized$1(e) {
|
41
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
42
|
+
return e;
|
43
|
+
}
|
44
|
+
function _callSuper(t, o, e) {
|
45
|
+
return o = _getPrototypeOf$1(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e));
|
46
|
+
}
|
47
|
+
function _classCallCheck$1(a, n) {
|
48
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
49
|
+
}
|
50
|
+
function _defineProperties$1(e, r) {
|
51
|
+
for (var t = 0; t < r.length; t++) {
|
52
|
+
var o = r[t];
|
53
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
function _createClass$1(e, r, t) {
|
57
|
+
return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", {
|
58
|
+
writable: !1
|
59
|
+
}), e;
|
60
|
+
}
|
61
|
+
function _createForOfIteratorHelper$1(r, e) {
|
62
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
63
|
+
if (!t) {
|
64
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) {
|
65
|
+
t && (r = t);
|
66
|
+
var n = 0,
|
67
|
+
F = function () {};
|
68
|
+
return {
|
69
|
+
s: F,
|
70
|
+
n: function () {
|
71
|
+
return n >= r.length ? {
|
72
|
+
done: !0
|
73
|
+
} : {
|
74
|
+
done: !1,
|
75
|
+
value: r[n++]
|
76
|
+
};
|
77
|
+
},
|
78
|
+
e: function (r) {
|
79
|
+
throw r;
|
80
|
+
},
|
81
|
+
f: F
|
82
|
+
};
|
83
|
+
}
|
84
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
85
|
+
}
|
86
|
+
var o,
|
87
|
+
a = !0,
|
88
|
+
u = !1;
|
89
|
+
return {
|
90
|
+
s: function () {
|
91
|
+
t = t.call(r);
|
92
|
+
},
|
93
|
+
n: function () {
|
94
|
+
var r = t.next();
|
95
|
+
return a = r.done, r;
|
96
|
+
},
|
97
|
+
e: function (r) {
|
98
|
+
u = !0, o = r;
|
99
|
+
},
|
100
|
+
f: function () {
|
101
|
+
try {
|
102
|
+
a || null == t.return || t.return();
|
103
|
+
} finally {
|
104
|
+
if (u) throw o;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
};
|
108
|
+
}
|
109
|
+
function _defineProperty$1(e, r, t) {
|
110
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
111
|
+
value: t,
|
112
|
+
enumerable: !0,
|
113
|
+
configurable: !0,
|
114
|
+
writable: !0
|
115
|
+
}) : e[r] = t, e;
|
116
|
+
}
|
117
|
+
function _get() {
|
118
|
+
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
|
119
|
+
var p = _superPropBase(e, t);
|
120
|
+
if (p) {
|
121
|
+
var n = Object.getOwnPropertyDescriptor(p, t);
|
122
|
+
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
|
123
|
+
}
|
124
|
+
}, _get.apply(null, arguments);
|
125
|
+
}
|
126
|
+
function _getPrototypeOf$1(t) {
|
127
|
+
return _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
128
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
129
|
+
}, _getPrototypeOf$1(t);
|
130
|
+
}
|
131
|
+
function _inherits$1(t, e) {
|
132
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
133
|
+
t.prototype = Object.create(e && e.prototype, {
|
134
|
+
constructor: {
|
135
|
+
value: t,
|
136
|
+
writable: !0,
|
137
|
+
configurable: !0
|
138
|
+
}
|
139
|
+
}), Object.defineProperty(t, "prototype", {
|
140
|
+
writable: !1
|
141
|
+
}), e && _setPrototypeOf$1(t, e);
|
142
|
+
}
|
143
|
+
function _isNativeReflectConstruct$1() {
|
144
|
+
try {
|
145
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
146
|
+
} catch (t) {}
|
147
|
+
return (_isNativeReflectConstruct$1 = function () {
|
148
|
+
return !!t;
|
149
|
+
})();
|
150
|
+
}
|
151
|
+
function _iterableToArray(r) {
|
152
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
153
|
+
}
|
29
154
|
function _iterableToArrayLimit(r, l) {
|
30
155
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
31
156
|
if (null != t) {
|
@@ -53,6 +178,12 @@
|
|
53
178
|
return a;
|
54
179
|
}
|
55
180
|
}
|
181
|
+
function _nonIterableRest() {
|
182
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
183
|
+
}
|
184
|
+
function _nonIterableSpread() {
|
185
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
186
|
+
}
|
56
187
|
function ownKeys(e, r) {
|
57
188
|
var t = Object.keys(e);
|
58
189
|
if (Object.getOwnPropertySymbols) {
|
@@ -74,6 +205,46 @@
|
|
74
205
|
}
|
75
206
|
return e;
|
76
207
|
}
|
208
|
+
function _possibleConstructorReturn$1(t, e) {
|
209
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
210
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
211
|
+
return _assertThisInitialized$1(t);
|
212
|
+
}
|
213
|
+
function _setPrototypeOf$1(t, e) {
|
214
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
215
|
+
return t.__proto__ = e, t;
|
216
|
+
}, _setPrototypeOf$1(t, e);
|
217
|
+
}
|
218
|
+
function _slicedToArray(r, e) {
|
219
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
220
|
+
}
|
221
|
+
function _superPropBase(t, o) {
|
222
|
+
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf$1(t)););
|
223
|
+
return t;
|
224
|
+
}
|
225
|
+
function _superPropGet(t, e, r, o) {
|
226
|
+
var p = _get(_getPrototypeOf$1(1 & o ? t.prototype : t), e, r);
|
227
|
+
return 2 & o ? function (t) {
|
228
|
+
return p.apply(r, t);
|
229
|
+
} : p;
|
230
|
+
}
|
231
|
+
function _toConsumableArray(r) {
|
232
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread();
|
233
|
+
}
|
234
|
+
function _toPrimitive(t, r) {
|
235
|
+
if ("object" != typeof t || !t) return t;
|
236
|
+
var e = t[Symbol.toPrimitive];
|
237
|
+
if (void 0 !== e) {
|
238
|
+
var i = e.call(t, r || "default");
|
239
|
+
if ("object" != typeof i) return i;
|
240
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
241
|
+
}
|
242
|
+
return ("string" === r ? String : Number)(t);
|
243
|
+
}
|
244
|
+
function _toPropertyKey(t) {
|
245
|
+
var i = _toPrimitive(t, "string");
|
246
|
+
return "symbol" == typeof i ? i : i + "";
|
247
|
+
}
|
77
248
|
function _typeof$1(o) {
|
78
249
|
"@babel/helpers - typeof";
|
79
250
|
|
@@ -83,231 +254,12 @@
|
|
83
254
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
84
255
|
}, _typeof$1(o);
|
85
256
|
}
|
86
|
-
function
|
87
|
-
if (
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
function _defineProperties$1(target, props) {
|
92
|
-
for (var i = 0; i < props.length; i++) {
|
93
|
-
var descriptor = props[i];
|
94
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
95
|
-
descriptor.configurable = true;
|
96
|
-
if ("value" in descriptor) descriptor.writable = true;
|
97
|
-
Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
function _createClass$1(Constructor, protoProps, staticProps) {
|
101
|
-
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
102
|
-
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
103
|
-
Object.defineProperty(Constructor, "prototype", {
|
104
|
-
writable: false
|
105
|
-
});
|
106
|
-
return Constructor;
|
107
|
-
}
|
108
|
-
function _defineProperty$1(obj, key, value) {
|
109
|
-
key = _toPropertyKey$1(key);
|
110
|
-
if (key in obj) {
|
111
|
-
Object.defineProperty(obj, key, {
|
112
|
-
value: value,
|
113
|
-
enumerable: true,
|
114
|
-
configurable: true,
|
115
|
-
writable: true
|
116
|
-
});
|
117
|
-
} else {
|
118
|
-
obj[key] = value;
|
119
|
-
}
|
120
|
-
return obj;
|
121
|
-
}
|
122
|
-
function _inherits$1(subClass, superClass) {
|
123
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
124
|
-
throw new TypeError("Super expression must either be null or a function");
|
125
|
-
}
|
126
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
127
|
-
constructor: {
|
128
|
-
value: subClass,
|
129
|
-
writable: true,
|
130
|
-
configurable: true
|
131
|
-
}
|
132
|
-
});
|
133
|
-
Object.defineProperty(subClass, "prototype", {
|
134
|
-
writable: false
|
135
|
-
});
|
136
|
-
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
137
|
-
}
|
138
|
-
function _getPrototypeOf$1(o) {
|
139
|
-
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
140
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
141
|
-
};
|
142
|
-
return _getPrototypeOf$1(o);
|
143
|
-
}
|
144
|
-
function _setPrototypeOf$1(o, p) {
|
145
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
146
|
-
o.__proto__ = p;
|
147
|
-
return o;
|
148
|
-
};
|
149
|
-
return _setPrototypeOf$1(o, p);
|
150
|
-
}
|
151
|
-
function _isNativeReflectConstruct$1() {
|
152
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
153
|
-
if (Reflect.construct.sham) return false;
|
154
|
-
if (typeof Proxy === "function") return true;
|
155
|
-
try {
|
156
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
157
|
-
return true;
|
158
|
-
} catch (e) {
|
159
|
-
return false;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
function _assertThisInitialized$1(self) {
|
163
|
-
if (self === void 0) {
|
164
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
165
|
-
}
|
166
|
-
return self;
|
167
|
-
}
|
168
|
-
function _possibleConstructorReturn$1(self, call) {
|
169
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
170
|
-
return call;
|
171
|
-
} else if (call !== void 0) {
|
172
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
173
|
-
}
|
174
|
-
return _assertThisInitialized$1(self);
|
175
|
-
}
|
176
|
-
function _createSuper$1(Derived) {
|
177
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
178
|
-
return function _createSuperInternal() {
|
179
|
-
var Super = _getPrototypeOf$1(Derived),
|
180
|
-
result;
|
181
|
-
if (hasNativeReflectConstruct) {
|
182
|
-
var NewTarget = _getPrototypeOf$1(this).constructor;
|
183
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
184
|
-
} else {
|
185
|
-
result = Super.apply(this, arguments);
|
186
|
-
}
|
187
|
-
return _possibleConstructorReturn$1(this, result);
|
188
|
-
};
|
189
|
-
}
|
190
|
-
function _superPropBase(object, property) {
|
191
|
-
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
192
|
-
object = _getPrototypeOf$1(object);
|
193
|
-
if (object === null) break;
|
194
|
-
}
|
195
|
-
return object;
|
196
|
-
}
|
197
|
-
function _get() {
|
198
|
-
if (typeof Reflect !== "undefined" && Reflect.get) {
|
199
|
-
_get = Reflect.get.bind();
|
200
|
-
} else {
|
201
|
-
_get = function _get(target, property, receiver) {
|
202
|
-
var base = _superPropBase(target, property);
|
203
|
-
if (!base) return;
|
204
|
-
var desc = Object.getOwnPropertyDescriptor(base, property);
|
205
|
-
if (desc.get) {
|
206
|
-
return desc.get.call(arguments.length < 3 ? target : receiver);
|
207
|
-
}
|
208
|
-
return desc.value;
|
209
|
-
};
|
257
|
+
function _unsupportedIterableToArray$1(r, a) {
|
258
|
+
if (r) {
|
259
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
260
|
+
var t = {}.toString.call(r).slice(8, -1);
|
261
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
210
262
|
}
|
211
|
-
return _get.apply(this, arguments);
|
212
|
-
}
|
213
|
-
function _slicedToArray(arr, i) {
|
214
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
215
|
-
}
|
216
|
-
function _toConsumableArray(arr) {
|
217
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
|
218
|
-
}
|
219
|
-
function _arrayWithoutHoles(arr) {
|
220
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
221
|
-
}
|
222
|
-
function _arrayWithHoles(arr) {
|
223
|
-
if (Array.isArray(arr)) return arr;
|
224
|
-
}
|
225
|
-
function _iterableToArray(iter) {
|
226
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
227
|
-
}
|
228
|
-
function _unsupportedIterableToArray$1(o, minLen) {
|
229
|
-
if (!o) return;
|
230
|
-
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
231
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
232
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
233
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
234
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
235
|
-
}
|
236
|
-
function _arrayLikeToArray$1(arr, len) {
|
237
|
-
if (len == null || len > arr.length) len = arr.length;
|
238
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
239
|
-
return arr2;
|
240
|
-
}
|
241
|
-
function _nonIterableSpread() {
|
242
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
243
|
-
}
|
244
|
-
function _nonIterableRest() {
|
245
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
246
|
-
}
|
247
|
-
function _createForOfIteratorHelper$1(o, allowArrayLike) {
|
248
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
249
|
-
if (!it) {
|
250
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") {
|
251
|
-
if (it) o = it;
|
252
|
-
var i = 0;
|
253
|
-
var F = function () {};
|
254
|
-
return {
|
255
|
-
s: F,
|
256
|
-
n: function () {
|
257
|
-
if (i >= o.length) return {
|
258
|
-
done: true
|
259
|
-
};
|
260
|
-
return {
|
261
|
-
done: false,
|
262
|
-
value: o[i++]
|
263
|
-
};
|
264
|
-
},
|
265
|
-
e: function (e) {
|
266
|
-
throw e;
|
267
|
-
},
|
268
|
-
f: F
|
269
|
-
};
|
270
|
-
}
|
271
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
272
|
-
}
|
273
|
-
var normalCompletion = true,
|
274
|
-
didErr = false,
|
275
|
-
err;
|
276
|
-
return {
|
277
|
-
s: function () {
|
278
|
-
it = it.call(o);
|
279
|
-
},
|
280
|
-
n: function () {
|
281
|
-
var step = it.next();
|
282
|
-
normalCompletion = step.done;
|
283
|
-
return step;
|
284
|
-
},
|
285
|
-
e: function (e) {
|
286
|
-
didErr = true;
|
287
|
-
err = e;
|
288
|
-
},
|
289
|
-
f: function () {
|
290
|
-
try {
|
291
|
-
if (!normalCompletion && it.return != null) it.return();
|
292
|
-
} finally {
|
293
|
-
if (didErr) throw err;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
};
|
297
|
-
}
|
298
|
-
function _toPrimitive$1(input, hint) {
|
299
|
-
if (typeof input !== "object" || input === null) return input;
|
300
|
-
var prim = input[Symbol.toPrimitive];
|
301
|
-
if (prim !== undefined) {
|
302
|
-
var res = prim.call(input, hint || "default");
|
303
|
-
if (typeof res !== "object") return res;
|
304
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
305
|
-
}
|
306
|
-
return (hint === "string" ? String : Number)(input);
|
307
|
-
}
|
308
|
-
function _toPropertyKey$1(arg) {
|
309
|
-
var key = _toPrimitive$1(arg, "string");
|
310
|
-
return typeof key === "symbol" ? key : String(key);
|
311
263
|
}
|
312
264
|
|
313
265
|
/*!
|
@@ -835,7 +787,7 @@
|
|
835
787
|
this._rgb = v;
|
836
788
|
this._valid = !!v;
|
837
789
|
}
|
838
|
-
_createClass$1(Color, [{
|
790
|
+
return _createClass$1(Color, [{
|
839
791
|
key: "valid",
|
840
792
|
get: function get() {
|
841
793
|
return this._valid;
|
@@ -968,7 +920,6 @@
|
|
968
920
|
return this;
|
969
921
|
}
|
970
922
|
}]);
|
971
|
-
return Color;
|
972
923
|
}();
|
973
924
|
|
974
925
|
/**
|
@@ -2170,7 +2121,7 @@
|
|
2170
2121
|
this.describe(_descriptors);
|
2171
2122
|
this.apply(_appliers);
|
2172
2123
|
}
|
2173
|
-
_createClass$1(Defaults, [{
|
2124
|
+
return _createClass$1(Defaults, [{
|
2174
2125
|
key: "set",
|
2175
2126
|
value: function set(scope, values) {
|
2176
2127
|
return _set(this, scope, values);
|
@@ -2223,7 +2174,6 @@
|
|
2223
2174
|
});
|
2224
2175
|
}
|
2225
2176
|
}]);
|
2226
|
-
return Defaults;
|
2227
2177
|
}();
|
2228
2178
|
var defaults = /* #__PURE__ */new Defaults({
|
2229
2179
|
_scriptable: function _scriptable(name) {
|
@@ -2328,6 +2278,9 @@
|
|
2328
2278
|
* Clears the entire canvas.
|
2329
2279
|
*/
|
2330
2280
|
function clearCanvas(canvas, ctx) {
|
2281
|
+
if (!ctx && !canvas) {
|
2282
|
+
return;
|
2283
|
+
}
|
2331
2284
|
ctx = ctx || canvas.getContext('2d');
|
2332
2285
|
ctx.save();
|
2333
2286
|
// canvas.width and canvas.height do not consider the canvas transform,
|
@@ -2996,7 +2949,7 @@
|
|
2996
2949
|
return isObject(value) && prop !== 'adapters' && (Object.getPrototypeOf(value) === null || value.constructor === Object);
|
2997
2950
|
};
|
2998
2951
|
function _cached(target, prop, resolve) {
|
2999
|
-
if (Object.prototype.hasOwnProperty.call(target, prop)) {
|
2952
|
+
if (Object.prototype.hasOwnProperty.call(target, prop) || prop === 'constructor') {
|
3000
2953
|
return target[prop];
|
3001
2954
|
}
|
3002
2955
|
var value = resolve();
|
@@ -3529,7 +3482,7 @@
|
|
3529
3482
|
function getContainerSize(canvas, width, height) {
|
3530
3483
|
var maxWidth, maxHeight;
|
3531
3484
|
if (width === undefined || height === undefined) {
|
3532
|
-
var container = _getParentNode(canvas);
|
3485
|
+
var container = canvas && _getParentNode(canvas);
|
3533
3486
|
if (!container) {
|
3534
3487
|
width = canvas.clientWidth;
|
3535
3488
|
height = canvas.clientHeight;
|
@@ -4087,7 +4040,7 @@
|
|
4087
4040
|
this._running = false;
|
4088
4041
|
this._lastDate = undefined;
|
4089
4042
|
}
|
4090
|
-
_createClass$1(Animator, [{
|
4043
|
+
return _createClass$1(Animator, [{
|
4091
4044
|
key: "_notify",
|
4092
4045
|
value: function _notify(chart, anims, date, type) {
|
4093
4046
|
var callbacks = anims.listeners[type];
|
@@ -4245,7 +4198,6 @@
|
|
4245
4198
|
return this._charts["delete"](chart);
|
4246
4199
|
}
|
4247
4200
|
}]);
|
4248
|
-
return Animator;
|
4249
4201
|
}();
|
4250
4202
|
var animator = /* #__PURE__ */new Animator();
|
4251
4203
|
var transparent = 'transparent';
|
@@ -4280,7 +4232,7 @@
|
|
4280
4232
|
this._to = to;
|
4281
4233
|
this._promises = undefined;
|
4282
4234
|
}
|
4283
|
-
_createClass$1(Animation, [{
|
4235
|
+
return _createClass$1(Animation, [{
|
4284
4236
|
key: "active",
|
4285
4237
|
value: function active() {
|
4286
4238
|
return this._active;
|
@@ -4356,7 +4308,6 @@
|
|
4356
4308
|
}
|
4357
4309
|
}
|
4358
4310
|
}]);
|
4359
|
-
return Animation;
|
4360
4311
|
}();
|
4361
4312
|
var Animations = /*#__PURE__*/function () {
|
4362
4313
|
function Animations(chart, config) {
|
@@ -4365,7 +4316,7 @@
|
|
4365
4316
|
this._properties = new Map();
|
4366
4317
|
this.configure(config);
|
4367
4318
|
}
|
4368
|
-
_createClass$1(Animations, [{
|
4319
|
+
return _createClass$1(Animations, [{
|
4369
4320
|
key: "configure",
|
4370
4321
|
value: function configure(config) {
|
4371
4322
|
if (!isObject(config)) {
|
@@ -4458,7 +4409,6 @@
|
|
4458
4409
|
}
|
4459
4410
|
}
|
4460
4411
|
}]);
|
4461
|
-
return Animations;
|
4462
4412
|
}();
|
4463
4413
|
function awaitAll(animations, properties) {
|
4464
4414
|
var running = [];
|
@@ -4561,16 +4511,17 @@
|
|
4561
4511
|
}
|
4562
4512
|
return value;
|
4563
4513
|
}
|
4564
|
-
function convertObjectDataToArray(data) {
|
4514
|
+
function convertObjectDataToArray(data, meta) {
|
4515
|
+
var iScale = meta.iScale,
|
4516
|
+
vScale = meta.vScale;
|
4517
|
+
var iAxisKey = iScale.axis === 'x' ? 'x' : 'y';
|
4518
|
+
var vAxisKey = vScale.axis === 'x' ? 'x' : 'y';
|
4565
4519
|
var keys = Object.keys(data);
|
4566
4520
|
var adata = new Array(keys.length);
|
4567
4521
|
var i, ilen, key;
|
4568
4522
|
for (i = 0, ilen = keys.length; i < ilen; ++i) {
|
4569
4523
|
key = keys[i];
|
4570
|
-
adata[i] = {
|
4571
|
-
x: key,
|
4572
|
-
y: data[key]
|
4573
|
-
};
|
4524
|
+
adata[i] = _defineProperty$1(_defineProperty$1({}, iAxisKey, key), vAxisKey, data[key]);
|
4574
4525
|
}
|
4575
4526
|
return adata;
|
4576
4527
|
}
|
@@ -4730,7 +4681,7 @@
|
|
4730
4681
|
this.dataElementType = (this instanceof DatasetController ? this.constructor : void 0).dataElementType;
|
4731
4682
|
this.initialize();
|
4732
4683
|
}
|
4733
|
-
_createClass$1(DatasetController, [{
|
4684
|
+
return _createClass$1(DatasetController, [{
|
4734
4685
|
key: "initialize",
|
4735
4686
|
value: function initialize() {
|
4736
4687
|
var meta = this._cachedMeta;
|
@@ -4815,13 +4766,14 @@
|
|
4815
4766
|
var data = dataset.data || (dataset.data = []);
|
4816
4767
|
var _data = this._data;
|
4817
4768
|
if (isObject(data)) {
|
4818
|
-
|
4769
|
+
var meta = this._cachedMeta;
|
4770
|
+
this._data = convertObjectDataToArray(data, meta);
|
4819
4771
|
} else if (_data !== data) {
|
4820
4772
|
if (_data) {
|
4821
4773
|
unlistenArrayEvents(_data, this);
|
4822
|
-
var
|
4823
|
-
clearStacks(
|
4824
|
-
|
4774
|
+
var _meta = this._cachedMeta;
|
4775
|
+
clearStacks(_meta);
|
4776
|
+
_meta._parsed = [];
|
4825
4777
|
}
|
4826
4778
|
if (data && Object.isExtensible(data)) {
|
4827
4779
|
listenArrayEvents(data, this);
|
@@ -5402,7 +5354,6 @@
|
|
5402
5354
|
this._sync(['_insertElements', 0, arguments.length]);
|
5403
5355
|
}
|
5404
5356
|
}]);
|
5405
|
-
return DatasetController;
|
5406
5357
|
}();
|
5407
5358
|
_defineProperty$1(DatasetController, "defaults", {});
|
5408
5359
|
_defineProperty$1(DatasetController, "datasetElementType", null);
|
@@ -5615,14 +5566,13 @@
|
|
5615
5566
|
var inflateAmount = _ref.inflateAmount;
|
5616
5567
|
properties.inflateAmount = inflateAmount === 'auto' ? ratio === 1 ? 0.33 : 0 : inflateAmount;
|
5617
5568
|
}
|
5618
|
-
var BarController = /*#__PURE__*/function (
|
5619
|
-
_inherits$1(BarController, _DatasetController);
|
5620
|
-
var _super = _createSuper$1(BarController);
|
5569
|
+
var BarController = /*#__PURE__*/function (_DatasetController2) {
|
5621
5570
|
function BarController() {
|
5622
5571
|
_classCallCheck$1(this, BarController);
|
5623
|
-
return
|
5572
|
+
return _callSuper(this, BarController, arguments);
|
5624
5573
|
}
|
5625
|
-
|
5574
|
+
_inherits$1(BarController, _DatasetController2);
|
5575
|
+
return _createClass$1(BarController, [{
|
5626
5576
|
key: "parsePrimitiveData",
|
5627
5577
|
value: function parsePrimitiveData(meta, data, start, count) {
|
5628
5578
|
return parseArrayOrPrimitive(meta, data, start, count);
|
@@ -5657,7 +5607,7 @@
|
|
5657
5607
|
}, {
|
5658
5608
|
key: "updateRangeFromParsed",
|
5659
5609
|
value: function updateRangeFromParsed(range, scale, parsed, stack) {
|
5660
|
-
|
5610
|
+
_superPropGet(BarController, "updateRangeFromParsed", this, 3)([range, scale, parsed, stack]);
|
5661
5611
|
var custom = parsed._custom;
|
5662
5612
|
if (custom && scale === this._cachedMeta.vScale) {
|
5663
5613
|
range.min = Math.min(range.min, custom.min);
|
@@ -5687,7 +5637,7 @@
|
|
5687
5637
|
key: "initialize",
|
5688
5638
|
value: function initialize() {
|
5689
5639
|
this.enableOptionSharing = true;
|
5690
|
-
|
5640
|
+
_superPropGet(BarController, "initialize", this, 3)([]);
|
5691
5641
|
var meta = this._cachedMeta;
|
5692
5642
|
meta.stack = this.getDataset().stack;
|
5693
5643
|
}
|
@@ -5744,8 +5694,12 @@
|
|
5744
5694
|
});
|
5745
5695
|
var stacked = iScale.options.stacked;
|
5746
5696
|
var stacks = [];
|
5697
|
+
var currentParsed = this._cachedMeta.controller.getParsed(dataIndex);
|
5698
|
+
var iScaleValue = currentParsed && currentParsed[iScale.axis];
|
5747
5699
|
var skipNull = function skipNull(meta) {
|
5748
|
-
var parsed = meta.
|
5700
|
+
var parsed = meta._parsed.find(function (item) {
|
5701
|
+
return item[iScale.axis] === iScaleValue;
|
5702
|
+
});
|
5749
5703
|
var val = parsed && parsed[meta.vScale.axis];
|
5750
5704
|
if (isNullOrUndef(val) || isNaN(val)) {
|
5751
5705
|
return true;
|
@@ -5911,13 +5865,12 @@
|
|
5911
5865
|
var ilen = rects.length;
|
5912
5866
|
var i = 0;
|
5913
5867
|
for (; i < ilen; ++i) {
|
5914
|
-
if (this.getParsed(i)[vScale.axis] !== null) {
|
5868
|
+
if (this.getParsed(i)[vScale.axis] !== null && !rects[i].hidden) {
|
5915
5869
|
rects[i].draw(this._ctx);
|
5916
5870
|
}
|
5917
5871
|
}
|
5918
5872
|
}
|
5919
5873
|
}]);
|
5920
|
-
return BarController;
|
5921
5874
|
}(DatasetController);
|
5922
5875
|
_defineProperty$1(BarController, "id", 'bar');
|
5923
5876
|
_defineProperty$1(BarController, "defaults", {
|
@@ -5948,23 +5901,22 @@
|
|
5948
5901
|
}
|
5949
5902
|
}
|
5950
5903
|
});
|
5951
|
-
var BubbleController = /*#__PURE__*/function (
|
5952
|
-
_inherits$1(BubbleController, _DatasetController2);
|
5953
|
-
var _super2 = _createSuper$1(BubbleController);
|
5904
|
+
var BubbleController = /*#__PURE__*/function (_DatasetController3) {
|
5954
5905
|
function BubbleController() {
|
5955
5906
|
_classCallCheck$1(this, BubbleController);
|
5956
|
-
return
|
5907
|
+
return _callSuper(this, BubbleController, arguments);
|
5957
5908
|
}
|
5958
|
-
|
5909
|
+
_inherits$1(BubbleController, _DatasetController3);
|
5910
|
+
return _createClass$1(BubbleController, [{
|
5959
5911
|
key: "initialize",
|
5960
5912
|
value: function initialize() {
|
5961
5913
|
this.enableOptionSharing = true;
|
5962
|
-
|
5914
|
+
_superPropGet(BubbleController, "initialize", this, 3)([]);
|
5963
5915
|
}
|
5964
5916
|
}, {
|
5965
5917
|
key: "parsePrimitiveData",
|
5966
5918
|
value: function parsePrimitiveData(meta, data, start, count) {
|
5967
|
-
var parsed =
|
5919
|
+
var parsed = _superPropGet(BubbleController, "parsePrimitiveData", this, 3)([meta, data, start, count]);
|
5968
5920
|
for (var i = 0; i < parsed.length; i++) {
|
5969
5921
|
parsed[i]._custom = this.resolveDataElementOptions(i + start).radius;
|
5970
5922
|
}
|
@@ -5973,7 +5925,7 @@
|
|
5973
5925
|
}, {
|
5974
5926
|
key: "parseArrayData",
|
5975
5927
|
value: function parseArrayData(meta, data, start, count) {
|
5976
|
-
var parsed =
|
5928
|
+
var parsed = _superPropGet(BubbleController, "parseArrayData", this, 3)([meta, data, start, count]);
|
5977
5929
|
for (var i = 0; i < parsed.length; i++) {
|
5978
5930
|
var item = data[start + i];
|
5979
5931
|
parsed[i]._custom = valueOrDefault(item[2], this.resolveDataElementOptions(i + start).radius);
|
@@ -5983,7 +5935,7 @@
|
|
5983
5935
|
}, {
|
5984
5936
|
key: "parseObjectData",
|
5985
5937
|
value: function parseObjectData(meta, data, start, count) {
|
5986
|
-
var parsed =
|
5938
|
+
var parsed = _superPropGet(BubbleController, "parseObjectData", this, 3)([meta, data, start, count]);
|
5987
5939
|
for (var i = 0; i < parsed.length; i++) {
|
5988
5940
|
var item = data[start + i];
|
5989
5941
|
parsed[i]._custom = valueOrDefault(item && item.r && +item.r, this.resolveDataElementOptions(i + start).radius);
|
@@ -6054,7 +6006,7 @@
|
|
6054
6006
|
key: "resolveDataElementOptions",
|
6055
6007
|
value: function resolveDataElementOptions(index, mode) {
|
6056
6008
|
var parsed = this.getParsed(index);
|
6057
|
-
var values =
|
6009
|
+
var values = _superPropGet(BubbleController, "resolveDataElementOptions", this, 3)([index, mode]);
|
6058
6010
|
if (values.$shared) {
|
6059
6011
|
values = Object.assign({}, values, {
|
6060
6012
|
$shared: false
|
@@ -6068,7 +6020,6 @@
|
|
6068
6020
|
return values;
|
6069
6021
|
}
|
6070
6022
|
}]);
|
6071
|
-
return BubbleController;
|
6072
6023
|
}(DatasetController);
|
6073
6024
|
_defineProperty$1(BubbleController, "id", 'bubble');
|
6074
6025
|
_defineProperty$1(BubbleController, "defaults", {
|
@@ -6125,13 +6076,11 @@
|
|
6125
6076
|
offsetY: offsetY
|
6126
6077
|
};
|
6127
6078
|
}
|
6128
|
-
var DoughnutController = /*#__PURE__*/function (
|
6129
|
-
_inherits$1(DoughnutController, _DatasetController3);
|
6130
|
-
var _super3 = _createSuper$1(DoughnutController);
|
6079
|
+
var DoughnutController = /*#__PURE__*/function (_DatasetController4) {
|
6131
6080
|
function DoughnutController(chart, datasetIndex) {
|
6132
6081
|
var _this4;
|
6133
6082
|
_classCallCheck$1(this, DoughnutController);
|
6134
|
-
_this4 =
|
6083
|
+
_this4 = _callSuper(this, DoughnutController, [chart, datasetIndex]);
|
6135
6084
|
_this4.enableOptionSharing = true;
|
6136
6085
|
_this4.innerRadius = undefined;
|
6137
6086
|
_this4.outerRadius = undefined;
|
@@ -6139,7 +6088,8 @@
|
|
6139
6088
|
_this4.offsetY = undefined;
|
6140
6089
|
return _this4;
|
6141
6090
|
}
|
6142
|
-
|
6091
|
+
_inherits$1(DoughnutController, _DatasetController4);
|
6092
|
+
return _createClass$1(DoughnutController, [{
|
6143
6093
|
key: "linkScales",
|
6144
6094
|
value: function linkScales() {}
|
6145
6095
|
}, {
|
@@ -6373,7 +6323,6 @@
|
|
6373
6323
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
6374
6324
|
}
|
6375
6325
|
}]);
|
6376
|
-
return DoughnutController;
|
6377
6326
|
}(DatasetController);
|
6378
6327
|
_defineProperty$1(DoughnutController, "id", 'doughnut');
|
6379
6328
|
_defineProperty$1(DoughnutController, "defaults", {
|
@@ -6440,19 +6389,18 @@
|
|
6440
6389
|
}
|
6441
6390
|
}
|
6442
6391
|
});
|
6443
|
-
var LineController = /*#__PURE__*/function (
|
6444
|
-
_inherits$1(LineController, _DatasetController4);
|
6445
|
-
var _super4 = _createSuper$1(LineController);
|
6392
|
+
var LineController = /*#__PURE__*/function (_DatasetController5) {
|
6446
6393
|
function LineController() {
|
6447
6394
|
_classCallCheck$1(this, LineController);
|
6448
|
-
return
|
6395
|
+
return _callSuper(this, LineController, arguments);
|
6449
6396
|
}
|
6450
|
-
|
6397
|
+
_inherits$1(LineController, _DatasetController5);
|
6398
|
+
return _createClass$1(LineController, [{
|
6451
6399
|
key: "initialize",
|
6452
6400
|
value: function initialize() {
|
6453
6401
|
this.enableOptionSharing = true;
|
6454
6402
|
this.supportsDecimation = true;
|
6455
|
-
|
6403
|
+
_superPropGet(LineController, "initialize", this, 3)([]);
|
6456
6404
|
}
|
6457
6405
|
}, {
|
6458
6406
|
key: "update",
|
@@ -6554,10 +6502,9 @@
|
|
6554
6502
|
value: function draw() {
|
6555
6503
|
var meta = this._cachedMeta;
|
6556
6504
|
meta.dataset.updateControlPoints(this.chart.chartArea, meta.iScale.axis);
|
6557
|
-
|
6505
|
+
_superPropGet(LineController, "draw", this, 3)([]);
|
6558
6506
|
}
|
6559
6507
|
}]);
|
6560
|
-
return LineController;
|
6561
6508
|
}(DatasetController);
|
6562
6509
|
_defineProperty$1(LineController, "id", 'line');
|
6563
6510
|
_defineProperty$1(LineController, "defaults", {
|
@@ -6576,18 +6523,17 @@
|
|
6576
6523
|
}
|
6577
6524
|
}
|
6578
6525
|
});
|
6579
|
-
var PolarAreaController = /*#__PURE__*/function (
|
6580
|
-
_inherits$1(PolarAreaController, _DatasetController5);
|
6581
|
-
var _super5 = _createSuper$1(PolarAreaController);
|
6526
|
+
var PolarAreaController = /*#__PURE__*/function (_DatasetController6) {
|
6582
6527
|
function PolarAreaController(chart, datasetIndex) {
|
6583
6528
|
var _this5;
|
6584
6529
|
_classCallCheck$1(this, PolarAreaController);
|
6585
|
-
_this5 =
|
6530
|
+
_this5 = _callSuper(this, PolarAreaController, [chart, datasetIndex]);
|
6586
6531
|
_this5.innerRadius = undefined;
|
6587
6532
|
_this5.outerRadius = undefined;
|
6588
6533
|
return _this5;
|
6589
6534
|
}
|
6590
|
-
|
6535
|
+
_inherits$1(PolarAreaController, _DatasetController6);
|
6536
|
+
return _createClass$1(PolarAreaController, [{
|
6591
6537
|
key: "getLabelAndValue",
|
6592
6538
|
value: function getLabelAndValue(index) {
|
6593
6539
|
var meta = this._cachedMeta;
|
@@ -6708,7 +6654,6 @@
|
|
6708
6654
|
return this.chart.getDataVisibility(index) ? toRadians(this.resolveDataElementOptions(index, mode).angle || defaultAngle) : 0;
|
6709
6655
|
}
|
6710
6656
|
}]);
|
6711
|
-
return PolarAreaController;
|
6712
6657
|
}(DatasetController);
|
6713
6658
|
_defineProperty$1(PolarAreaController, "id", 'polarArea');
|
6714
6659
|
_defineProperty$1(PolarAreaController, "defaults", {
|
@@ -6778,13 +6723,12 @@
|
|
6778
6723
|
}
|
6779
6724
|
}
|
6780
6725
|
});
|
6781
|
-
var PieController = /*#__PURE__*/function (
|
6782
|
-
_inherits$1(PieController, _DoughnutController);
|
6783
|
-
var _super6 = _createSuper$1(PieController);
|
6726
|
+
var PieController = /*#__PURE__*/function (_DoughnutController2) {
|
6784
6727
|
function PieController() {
|
6785
6728
|
_classCallCheck$1(this, PieController);
|
6786
|
-
return
|
6729
|
+
return _callSuper(this, PieController, arguments);
|
6787
6730
|
}
|
6731
|
+
_inherits$1(PieController, _DoughnutController2);
|
6788
6732
|
return _createClass$1(PieController);
|
6789
6733
|
}(DoughnutController);
|
6790
6734
|
_defineProperty$1(PieController, "id", 'pie');
|
@@ -6794,14 +6738,13 @@
|
|
6794
6738
|
circumference: 360,
|
6795
6739
|
radius: '100%'
|
6796
6740
|
});
|
6797
|
-
var RadarController = /*#__PURE__*/function (
|
6798
|
-
_inherits$1(RadarController, _DatasetController6);
|
6799
|
-
var _super7 = _createSuper$1(RadarController);
|
6741
|
+
var RadarController = /*#__PURE__*/function (_DatasetController7) {
|
6800
6742
|
function RadarController() {
|
6801
6743
|
_classCallCheck$1(this, RadarController);
|
6802
|
-
return
|
6744
|
+
return _callSuper(this, RadarController, arguments);
|
6803
6745
|
}
|
6804
|
-
|
6746
|
+
_inherits$1(RadarController, _DatasetController7);
|
6747
|
+
return _createClass$1(RadarController, [{
|
6805
6748
|
key: "getLabelAndValue",
|
6806
6749
|
value: function getLabelAndValue(index) {
|
6807
6750
|
var vScale = this._cachedMeta.vScale;
|
@@ -6860,7 +6803,6 @@
|
|
6860
6803
|
}
|
6861
6804
|
}
|
6862
6805
|
}]);
|
6863
|
-
return RadarController;
|
6864
6806
|
}(DatasetController);
|
6865
6807
|
_defineProperty$1(RadarController, "id", 'radar');
|
6866
6808
|
_defineProperty$1(RadarController, "defaults", {
|
@@ -6882,14 +6824,13 @@
|
|
6882
6824
|
}
|
6883
6825
|
}
|
6884
6826
|
});
|
6885
|
-
var ScatterController = /*#__PURE__*/function (
|
6886
|
-
_inherits$1(ScatterController, _DatasetController7);
|
6887
|
-
var _super8 = _createSuper$1(ScatterController);
|
6827
|
+
var ScatterController = /*#__PURE__*/function (_DatasetController8) {
|
6888
6828
|
function ScatterController() {
|
6889
6829
|
_classCallCheck$1(this, ScatterController);
|
6890
|
-
return
|
6830
|
+
return _callSuper(this, ScatterController, arguments);
|
6891
6831
|
}
|
6892
|
-
|
6832
|
+
_inherits$1(ScatterController, _DatasetController8);
|
6833
|
+
return _createClass$1(ScatterController, [{
|
6893
6834
|
key: "getLabelAndValue",
|
6894
6835
|
value: function getLabelAndValue(index) {
|
6895
6836
|
var meta = this._cachedMeta;
|
@@ -6949,7 +6890,7 @@
|
|
6949
6890
|
if (!this.datasetElementType && showLine) {
|
6950
6891
|
this.datasetElementType = this.chart.registry.getElement('line');
|
6951
6892
|
}
|
6952
|
-
|
6893
|
+
_superPropGet(ScatterController, "addElements", this, 3)([]);
|
6953
6894
|
}
|
6954
6895
|
}, {
|
6955
6896
|
key: "updateElements",
|
@@ -7016,7 +6957,6 @@
|
|
7016
6957
|
return Math.max(border, firstPoint, lastPoint) / 2;
|
7017
6958
|
}
|
7018
6959
|
}]);
|
7019
|
-
return ScatterController;
|
7020
6960
|
}(DatasetController);
|
7021
6961
|
_defineProperty$1(ScatterController, "id", 'scatter');
|
7022
6962
|
_defineProperty$1(ScatterController, "defaults", {
|
@@ -7071,7 +7011,7 @@
|
|
7071
7011
|
this.options = options || {};
|
7072
7012
|
}
|
7073
7013
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
7074
|
-
_createClass$1(DateAdapterBase, [{
|
7014
|
+
return _createClass$1(DateAdapterBase, [{
|
7075
7015
|
key: "init",
|
7076
7016
|
value: function init() {}
|
7077
7017
|
}, {
|
@@ -7126,7 +7066,6 @@
|
|
7126
7066
|
Object.assign(DateAdapterBase.prototype, members);
|
7127
7067
|
}
|
7128
7068
|
}]);
|
7129
|
-
return DateAdapterBase;
|
7130
7069
|
}();
|
7131
7070
|
var adapters = {
|
7132
7071
|
_date: DateAdapterBase
|
@@ -7271,7 +7210,7 @@
|
|
7271
7210
|
var rangeMethod = axis === 'x' ? 'inXRange' : 'inYRange';
|
7272
7211
|
var intersectsItem = false;
|
7273
7212
|
evaluateInteractionItems(chart, axis, position, function (element, datasetIndex, index) {
|
7274
|
-
if (element[rangeMethod](position[axis], useFinalPosition)) {
|
7213
|
+
if (element[rangeMethod] && element[rangeMethod](position[axis], useFinalPosition)) {
|
7275
7214
|
items.push({
|
7276
7215
|
element: element,
|
7277
7216
|
datasetIndex: datasetIndex,
|
@@ -7711,7 +7650,7 @@
|
|
7711
7650
|
function BasePlatform() {
|
7712
7651
|
_classCallCheck$1(this, BasePlatform);
|
7713
7652
|
}
|
7714
|
-
_createClass$1(BasePlatform, [{
|
7653
|
+
return _createClass$1(BasePlatform, [{
|
7715
7654
|
key: "acquireContext",
|
7716
7655
|
value: function acquireContext(canvas, aspectRatio) {}
|
7717
7656
|
}, {
|
@@ -7749,16 +7688,14 @@
|
|
7749
7688
|
key: "updateConfig",
|
7750
7689
|
value: function updateConfig(config) {}
|
7751
7690
|
}]);
|
7752
|
-
return BasePlatform;
|
7753
7691
|
}();
|
7754
7692
|
var BasicPlatform = /*#__PURE__*/function (_BasePlatform) {
|
7755
|
-
_inherits$1(BasicPlatform, _BasePlatform);
|
7756
|
-
var _super9 = _createSuper$1(BasicPlatform);
|
7757
7693
|
function BasicPlatform() {
|
7758
7694
|
_classCallCheck$1(this, BasicPlatform);
|
7759
|
-
return
|
7695
|
+
return _callSuper(this, BasicPlatform, arguments);
|
7760
7696
|
}
|
7761
|
-
|
7697
|
+
_inherits$1(BasicPlatform, _BasePlatform);
|
7698
|
+
return _createClass$1(BasicPlatform, [{
|
7762
7699
|
key: "acquireContext",
|
7763
7700
|
value: function acquireContext(item) {
|
7764
7701
|
return item && item.getContext && item.getContext('2d') || null;
|
@@ -7769,7 +7706,6 @@
|
|
7769
7706
|
config.options.animation = false;
|
7770
7707
|
}
|
7771
7708
|
}]);
|
7772
|
-
return BasicPlatform;
|
7773
7709
|
}(BasePlatform);
|
7774
7710
|
var EXPANDO_KEY = '$chartjs';
|
7775
7711
|
var EVENT_TYPES = {
|
@@ -7988,13 +7924,12 @@
|
|
7988
7924
|
return proxy;
|
7989
7925
|
}
|
7990
7926
|
var DomPlatform = /*#__PURE__*/function (_BasePlatform2) {
|
7991
|
-
_inherits$1(DomPlatform, _BasePlatform2);
|
7992
|
-
var _super10 = _createSuper$1(DomPlatform);
|
7993
7927
|
function DomPlatform() {
|
7994
7928
|
_classCallCheck$1(this, DomPlatform);
|
7995
|
-
return
|
7929
|
+
return _callSuper(this, DomPlatform, arguments);
|
7996
7930
|
}
|
7997
|
-
|
7931
|
+
_inherits$1(DomPlatform, _BasePlatform2);
|
7932
|
+
return _createClass$1(DomPlatform, [{
|
7998
7933
|
key: "acquireContext",
|
7999
7934
|
value: function acquireContext(canvas, aspectRatio) {
|
8000
7935
|
var context = canvas && canvas.getContext && canvas.getContext('2d');
|
@@ -8071,11 +8006,10 @@
|
|
8071
8006
|
}, {
|
8072
8007
|
key: "isAttached",
|
8073
8008
|
value: function isAttached(canvas) {
|
8074
|
-
var container = _getParentNode(canvas);
|
8009
|
+
var container = canvas && _getParentNode(canvas);
|
8075
8010
|
return !!(container && container.isConnected);
|
8076
8011
|
}
|
8077
8012
|
}]);
|
8078
|
-
return DomPlatform;
|
8079
8013
|
}(BasePlatform);
|
8080
8014
|
function _detectPlatform(canvas) {
|
8081
8015
|
if (!_isDomSupported() || typeof OffscreenCanvas !== 'undefined' && canvas instanceof OffscreenCanvas) {
|
@@ -8092,7 +8026,7 @@
|
|
8092
8026
|
_defineProperty$1(this, "options", void 0);
|
8093
8027
|
_defineProperty$1(this, "$animations", void 0);
|
8094
8028
|
}
|
8095
|
-
_createClass$1(Element, [{
|
8029
|
+
return _createClass$1(Element, [{
|
8096
8030
|
key: "tooltipPosition",
|
8097
8031
|
value: function tooltipPosition(useFinalPosition) {
|
8098
8032
|
var _this$getProps = this.getProps(['x', 'y'], useFinalPosition),
|
@@ -8124,7 +8058,6 @@
|
|
8124
8058
|
return ret;
|
8125
8059
|
}
|
8126
8060
|
}]);
|
8127
|
-
return Element;
|
8128
8061
|
}();
|
8129
8062
|
_defineProperty$1(Element, "defaults", {});
|
8130
8063
|
_defineProperty$1(Element, "defaultRoutes", undefined);
|
@@ -8367,13 +8300,11 @@
|
|
8367
8300
|
rotation: rotation
|
8368
8301
|
};
|
8369
8302
|
}
|
8370
|
-
var Scale = /*#__PURE__*/function (
|
8371
|
-
_inherits$1(Scale, _Element);
|
8372
|
-
var _super11 = _createSuper$1(Scale);
|
8303
|
+
var Scale = /*#__PURE__*/function (_Element2) {
|
8373
8304
|
function Scale(cfg) {
|
8374
8305
|
var _this9;
|
8375
8306
|
_classCallCheck$1(this, Scale);
|
8376
|
-
_this9 =
|
8307
|
+
_this9 = _callSuper(this, Scale);
|
8377
8308
|
_this9.id = cfg.id;
|
8378
8309
|
_this9.type = cfg.type;
|
8379
8310
|
_this9.options = undefined;
|
@@ -8423,7 +8354,8 @@
|
|
8423
8354
|
_this9.$context = undefined;
|
8424
8355
|
return _this9;
|
8425
8356
|
}
|
8426
|
-
|
8357
|
+
_inherits$1(Scale, _Element2);
|
8358
|
+
return _createClass$1(Scale, [{
|
8427
8359
|
key: "init",
|
8428
8360
|
value: function init(options) {
|
8429
8361
|
this.options = options.setContext(this.getContext());
|
@@ -9690,7 +9622,6 @@
|
|
9690
9622
|
return (this.isHorizontal() ? this.width : this.height) / fontSize;
|
9691
9623
|
}
|
9692
9624
|
}]);
|
9693
|
-
return Scale;
|
9694
9625
|
}(Element);
|
9695
9626
|
var TypedRegistry = /*#__PURE__*/function () {
|
9696
9627
|
function TypedRegistry(type, scope, override) {
|
@@ -9700,7 +9631,7 @@
|
|
9700
9631
|
this.override = override;
|
9701
9632
|
this.items = Object.create(null);
|
9702
9633
|
}
|
9703
|
-
_createClass$1(TypedRegistry, [{
|
9634
|
+
return _createClass$1(TypedRegistry, [{
|
9704
9635
|
key: "isForType",
|
9705
9636
|
value: function isForType(type) {
|
9706
9637
|
return Object.prototype.isPrototypeOf.call(this.type.prototype, type.prototype);
|
@@ -9751,7 +9682,6 @@
|
|
9751
9682
|
}
|
9752
9683
|
}
|
9753
9684
|
}]);
|
9754
|
-
return TypedRegistry;
|
9755
9685
|
}();
|
9756
9686
|
function registerDefaults(item, scope, parentScope) {
|
9757
9687
|
var itemDefaults = merge(Object.create(null), [parentScope ? defaults.get(parentScope) : {}, defaults.get(scope), item.defaults]);
|
@@ -9786,7 +9716,7 @@
|
|
9786
9716
|
this.scales = new TypedRegistry(Scale, 'scales');
|
9787
9717
|
this._typedRegistries = [this.controllers, this.scales, this.elements];
|
9788
9718
|
}
|
9789
|
-
_createClass$1(Registry, [{
|
9719
|
+
return _createClass$1(Registry, [{
|
9790
9720
|
key: "add",
|
9791
9721
|
value: function add() {
|
9792
9722
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
@@ -9931,7 +9861,6 @@
|
|
9931
9861
|
return item;
|
9932
9862
|
}
|
9933
9863
|
}]);
|
9934
|
-
return Registry;
|
9935
9864
|
}();
|
9936
9865
|
var registry = /* #__PURE__ */new Registry();
|
9937
9866
|
var PluginService = /*#__PURE__*/function () {
|
@@ -9939,7 +9868,7 @@
|
|
9939
9868
|
_classCallCheck$1(this, PluginService);
|
9940
9869
|
this._init = [];
|
9941
9870
|
}
|
9942
|
-
_createClass$1(PluginService, [{
|
9871
|
+
return _createClass$1(PluginService, [{
|
9943
9872
|
key: "notify",
|
9944
9873
|
value: function notify(chart, hook, args, filter) {
|
9945
9874
|
if (hook === 'beforeInit') {
|
@@ -10019,7 +9948,6 @@
|
|
10019
9948
|
this._notify(diff(descriptors, previousDescriptors), chart, 'start');
|
10020
9949
|
}
|
10021
9950
|
}]);
|
10022
|
-
return PluginService;
|
10023
9951
|
}();
|
10024
9952
|
function allPlugins(config) {
|
10025
9953
|
var localIds = {};
|
@@ -10241,7 +10169,7 @@
|
|
10241
10169
|
this._scopeCache = new Map();
|
10242
10170
|
this._resolverCache = new Map();
|
10243
10171
|
}
|
10244
|
-
_createClass$1(Config, [{
|
10172
|
+
return _createClass$1(Config, [{
|
10245
10173
|
key: "platform",
|
10246
10174
|
get: function get() {
|
10247
10175
|
return this._config.platform;
|
@@ -10419,7 +10347,6 @@
|
|
10419
10347
|
return isObject(context) ? _attachContext(resolver, context, undefined, descriptorDefaults) : resolver;
|
10420
10348
|
}
|
10421
10349
|
}]);
|
10422
|
-
return Config;
|
10423
10350
|
}();
|
10424
10351
|
function getResolver(resolverCache, scopes, prefixes) {
|
10425
10352
|
var cache = resolverCache.get(scopes);
|
@@ -10469,7 +10396,7 @@
|
|
10469
10396
|
}
|
10470
10397
|
return false;
|
10471
10398
|
}
|
10472
|
-
var version = "4.4.
|
10399
|
+
var version = "4.4.4";
|
10473
10400
|
var KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
|
10474
10401
|
function positionIsHorizontal(position, axis) {
|
10475
10402
|
return position === 'top' || position === 'bottom' || KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x';
|
@@ -10605,7 +10532,7 @@
|
|
10605
10532
|
this.update();
|
10606
10533
|
}
|
10607
10534
|
}
|
10608
|
-
_createClass$1(Chart, [{
|
10535
|
+
return _createClass$1(Chart, [{
|
10609
10536
|
key: "aspectRatio",
|
10610
10537
|
get: function get() {
|
10611
10538
|
var _this$options12 = this.options,
|
@@ -11077,8 +11004,8 @@
|
|
11077
11004
|
var _this$_resizeBeforeDr = this._resizeBeforeDraw,
|
11078
11005
|
width = _this$_resizeBeforeDr.width,
|
11079
11006
|
height = _this$_resizeBeforeDr.height;
|
11080
|
-
this._resize(width, height);
|
11081
11007
|
this._resizeBeforeDraw = null;
|
11008
|
+
this._resize(width, height);
|
11082
11009
|
}
|
11083
11010
|
this.clear();
|
11084
11011
|
if (this.width <= 0 || this.height <= 0) {
|
@@ -11368,8 +11295,8 @@
|
|
11368
11295
|
}
|
11369
11296
|
};
|
11370
11297
|
var detached;
|
11371
|
-
var
|
11372
|
-
_remove('attach',
|
11298
|
+
var _attached = function attached() {
|
11299
|
+
_remove('attach', _attached);
|
11373
11300
|
_this19.attached = true;
|
11374
11301
|
_this19.resize();
|
11375
11302
|
_add('resize', listener);
|
@@ -11380,10 +11307,10 @@
|
|
11380
11307
|
_remove('resize', listener);
|
11381
11308
|
_this19._stop();
|
11382
11309
|
_this19._resize(0, 0);
|
11383
|
-
_add('attach',
|
11310
|
+
_add('attach', _attached);
|
11384
11311
|
};
|
11385
11312
|
if (platform.isAttached(this.canvas)) {
|
11386
|
-
|
11313
|
+
_attached();
|
11387
11314
|
} else {
|
11388
11315
|
detached();
|
11389
11316
|
}
|
@@ -11554,7 +11481,6 @@
|
|
11554
11481
|
invalidatePlugins();
|
11555
11482
|
}
|
11556
11483
|
}]);
|
11557
|
-
return Chart;
|
11558
11484
|
}();
|
11559
11485
|
_defineProperty$1(Chart, "defaults", defaults);
|
11560
11486
|
_defineProperty$1(Chart, "instances", instances);
|
@@ -11781,20 +11707,18 @@
|
|
11781
11707
|
ctx.stroke();
|
11782
11708
|
}
|
11783
11709
|
}
|
11784
|
-
var ArcElement = /*#__PURE__*/function (
|
11785
|
-
_inherits$1(ArcElement, _Element2);
|
11786
|
-
var _super12 = _createSuper$1(ArcElement);
|
11710
|
+
var ArcElement = /*#__PURE__*/function (_Element3) {
|
11787
11711
|
function ArcElement(cfg) {
|
11788
11712
|
var _this23;
|
11789
11713
|
_classCallCheck$1(this, ArcElement);
|
11790
|
-
_this23 =
|
11791
|
-
_defineProperty$1(
|
11792
|
-
_defineProperty$1(
|
11793
|
-
_defineProperty$1(
|
11794
|
-
_defineProperty$1(
|
11795
|
-
_defineProperty$1(
|
11796
|
-
_defineProperty$1(
|
11797
|
-
_defineProperty$1(
|
11714
|
+
_this23 = _callSuper(this, ArcElement);
|
11715
|
+
_defineProperty$1(_this23, "circumference", void 0);
|
11716
|
+
_defineProperty$1(_this23, "endAngle", void 0);
|
11717
|
+
_defineProperty$1(_this23, "fullCircles", void 0);
|
11718
|
+
_defineProperty$1(_this23, "innerRadius", void 0);
|
11719
|
+
_defineProperty$1(_this23, "outerRadius", void 0);
|
11720
|
+
_defineProperty$1(_this23, "pixelMargin", void 0);
|
11721
|
+
_defineProperty$1(_this23, "startAngle", void 0);
|
11798
11722
|
_this23.options = undefined;
|
11799
11723
|
_this23.circumference = undefined;
|
11800
11724
|
_this23.startAngle = undefined;
|
@@ -11804,11 +11728,12 @@
|
|
11804
11728
|
_this23.pixelMargin = 0;
|
11805
11729
|
_this23.fullCircles = 0;
|
11806
11730
|
if (cfg) {
|
11807
|
-
Object.assign(
|
11731
|
+
Object.assign(_this23, cfg);
|
11808
11732
|
}
|
11809
11733
|
return _this23;
|
11810
11734
|
}
|
11811
|
-
|
11735
|
+
_inherits$1(ArcElement, _Element3);
|
11736
|
+
return _createClass$1(ArcElement, [{
|
11812
11737
|
key: "inRange",
|
11813
11738
|
value: function inRange(chartX, chartY, useFinalPosition) {
|
11814
11739
|
var point = this.getProps(['x', 'y'], useFinalPosition);
|
@@ -11826,7 +11751,8 @@
|
|
11826
11751
|
circumference = _this$getProps2.circumference;
|
11827
11752
|
var rAdjust = (this.options.spacing + this.options.borderWidth) / 2;
|
11828
11753
|
var _circumference = valueOrDefault(circumference, endAngle - startAngle);
|
11829
|
-
var
|
11754
|
+
var nonZeroBetween = _angleBetween(angle, startAngle, endAngle) && startAngle !== endAngle;
|
11755
|
+
var betweenAngles = _circumference >= TAU || nonZeroBetween;
|
11830
11756
|
var withinRadius = _isBetween(distance, innerRadius + rAdjust, outerRadius + rAdjust);
|
11831
11757
|
return betweenAngles && withinRadius;
|
11832
11758
|
}
|
@@ -11880,7 +11806,6 @@
|
|
11880
11806
|
ctx.restore();
|
11881
11807
|
}
|
11882
11808
|
}]);
|
11883
|
-
return ArcElement;
|
11884
11809
|
}(Element);
|
11885
11810
|
_defineProperty$1(ArcElement, "id", 'arc');
|
11886
11811
|
_defineProperty$1(ArcElement, "defaults", {
|
@@ -12089,13 +12014,11 @@
|
|
12089
12014
|
strokePathDirect(ctx, line, start, count);
|
12090
12015
|
}
|
12091
12016
|
}
|
12092
|
-
var LineElement = /*#__PURE__*/function (
|
12093
|
-
_inherits$1(LineElement, _Element3);
|
12094
|
-
var _super13 = _createSuper$1(LineElement);
|
12017
|
+
var LineElement = /*#__PURE__*/function (_Element4) {
|
12095
12018
|
function LineElement(cfg) {
|
12096
12019
|
var _this24;
|
12097
12020
|
_classCallCheck$1(this, LineElement);
|
12098
|
-
_this24 =
|
12021
|
+
_this24 = _callSuper(this, LineElement);
|
12099
12022
|
_this24.animated = true;
|
12100
12023
|
_this24.options = undefined;
|
12101
12024
|
_this24._chart = undefined;
|
@@ -12108,11 +12031,12 @@
|
|
12108
12031
|
_this24._pointsUpdated = false;
|
12109
12032
|
_this24._datasetIndex = undefined;
|
12110
12033
|
if (cfg) {
|
12111
|
-
Object.assign(
|
12034
|
+
Object.assign(_this24, cfg);
|
12112
12035
|
}
|
12113
12036
|
return _this24;
|
12114
12037
|
}
|
12115
|
-
|
12038
|
+
_inherits$1(LineElement, _Element4);
|
12039
|
+
return _createClass$1(LineElement, [{
|
12116
12040
|
key: "updateControlPoints",
|
12117
12041
|
value: function updateControlPoints(chartArea, indexAxis) {
|
12118
12042
|
var options = this.options;
|
@@ -12234,7 +12158,6 @@
|
|
12234
12158
|
}
|
12235
12159
|
}
|
12236
12160
|
}]);
|
12237
|
-
return LineElement;
|
12238
12161
|
}(Element);
|
12239
12162
|
_defineProperty$1(LineElement, "id", 'line');
|
12240
12163
|
_defineProperty$1(LineElement, "defaults", {
|
@@ -12266,26 +12189,25 @@
|
|
12266
12189
|
value = _el$getProps[axis];
|
12267
12190
|
return Math.abs(pos - value) < options.radius + options.hitRadius;
|
12268
12191
|
}
|
12269
|
-
var PointElement = /*#__PURE__*/function (
|
12270
|
-
_inherits$1(PointElement, _Element4);
|
12271
|
-
var _super14 = _createSuper$1(PointElement);
|
12192
|
+
var PointElement = /*#__PURE__*/function (_Element5) {
|
12272
12193
|
function PointElement(cfg) {
|
12273
12194
|
var _this25;
|
12274
12195
|
_classCallCheck$1(this, PointElement);
|
12275
|
-
_this25 =
|
12276
|
-
_defineProperty$1(
|
12277
|
-
_defineProperty$1(
|
12278
|
-
_defineProperty$1(
|
12196
|
+
_this25 = _callSuper(this, PointElement);
|
12197
|
+
_defineProperty$1(_this25, "parsed", void 0);
|
12198
|
+
_defineProperty$1(_this25, "skip", void 0);
|
12199
|
+
_defineProperty$1(_this25, "stop", void 0);
|
12279
12200
|
_this25.options = undefined;
|
12280
12201
|
_this25.parsed = undefined;
|
12281
12202
|
_this25.skip = undefined;
|
12282
12203
|
_this25.stop = undefined;
|
12283
12204
|
if (cfg) {
|
12284
|
-
Object.assign(
|
12205
|
+
Object.assign(_this25, cfg);
|
12285
12206
|
}
|
12286
12207
|
return _this25;
|
12287
12208
|
}
|
12288
|
-
|
12209
|
+
_inherits$1(PointElement, _Element5);
|
12210
|
+
return _createClass$1(PointElement, [{
|
12289
12211
|
key: "inRange",
|
12290
12212
|
value: function inRange(mouseX, mouseY, useFinalPosition) {
|
12291
12213
|
var options = this.options;
|
@@ -12344,7 +12266,6 @@
|
|
12344
12266
|
return options.radius + options.hitRadius;
|
12345
12267
|
}
|
12346
12268
|
}]);
|
12347
|
-
return PointElement;
|
12348
12269
|
}(Element);
|
12349
12270
|
_defineProperty$1(PointElement, "id", 'point');
|
12350
12271
|
/**
|
@@ -12478,13 +12399,11 @@
|
|
12478
12399
|
radius: rect.radius
|
12479
12400
|
};
|
12480
12401
|
}
|
12481
|
-
var BarElement = /*#__PURE__*/function (
|
12482
|
-
_inherits$1(BarElement, _Element5);
|
12483
|
-
var _super15 = _createSuper$1(BarElement);
|
12402
|
+
var BarElement = /*#__PURE__*/function (_Element6) {
|
12484
12403
|
function BarElement(cfg) {
|
12485
12404
|
var _this26;
|
12486
12405
|
_classCallCheck$1(this, BarElement);
|
12487
|
-
_this26 =
|
12406
|
+
_this26 = _callSuper(this, BarElement);
|
12488
12407
|
_this26.options = undefined;
|
12489
12408
|
_this26.horizontal = undefined;
|
12490
12409
|
_this26.base = undefined;
|
@@ -12492,11 +12411,12 @@
|
|
12492
12411
|
_this26.height = undefined;
|
12493
12412
|
_this26.inflateAmount = undefined;
|
12494
12413
|
if (cfg) {
|
12495
|
-
Object.assign(
|
12414
|
+
Object.assign(_this26, cfg);
|
12496
12415
|
}
|
12497
12416
|
return _this26;
|
12498
12417
|
}
|
12499
|
-
|
12418
|
+
_inherits$1(BarElement, _Element6);
|
12419
|
+
return _createClass$1(BarElement, [{
|
12500
12420
|
key: "draw",
|
12501
12421
|
value: function draw(ctx) {
|
12502
12422
|
var inflateAmount = this.inflateAmount,
|
@@ -12556,7 +12476,6 @@
|
|
12556
12476
|
return axis === 'x' ? this.width / 2 : this.height / 2;
|
12557
12477
|
}
|
12558
12478
|
}]);
|
12559
|
-
return BarElement;
|
12560
12479
|
}(Element);
|
12561
12480
|
_defineProperty$1(BarElement, "id", 'bar');
|
12562
12481
|
_defineProperty$1(BarElement, "defaults", {
|
@@ -13186,7 +13105,7 @@
|
|
13186
13105
|
this.y = opts.y;
|
13187
13106
|
this.radius = opts.radius;
|
13188
13107
|
}
|
13189
|
-
_createClass$1(simpleArc, [{
|
13108
|
+
return _createClass$1(simpleArc, [{
|
13190
13109
|
key: "pathSegment",
|
13191
13110
|
value: function pathSegment(ctx, bounds, opts) {
|
13192
13111
|
var x = this.x,
|
@@ -13213,7 +13132,6 @@
|
|
13213
13132
|
};
|
13214
13133
|
}
|
13215
13134
|
}]);
|
13216
|
-
return simpleArc;
|
13217
13135
|
}();
|
13218
13136
|
function _getTarget(source) {
|
13219
13137
|
var chart = source.chart,
|
@@ -13540,13 +13458,11 @@
|
|
13540
13458
|
var itemsEqual = function itemsEqual(a, b) {
|
13541
13459
|
return a !== null && b !== null && a.datasetIndex === b.datasetIndex && a.index === b.index;
|
13542
13460
|
};
|
13543
|
-
var Legend = /*#__PURE__*/function (
|
13544
|
-
_inherits$1(Legend, _Element6);
|
13545
|
-
var _super16 = _createSuper$1(Legend);
|
13461
|
+
var Legend = /*#__PURE__*/function (_Element7) {
|
13546
13462
|
function Legend(config) {
|
13547
13463
|
var _this27;
|
13548
13464
|
_classCallCheck$1(this, Legend);
|
13549
|
-
_this27 =
|
13465
|
+
_this27 = _callSuper(this, Legend);
|
13550
13466
|
_this27._added = false;
|
13551
13467
|
_this27.legendHitBoxes = [];
|
13552
13468
|
_this27._hoveredItem = null;
|
@@ -13571,7 +13487,8 @@
|
|
13571
13487
|
_this27.fullSize = undefined;
|
13572
13488
|
return _this27;
|
13573
13489
|
}
|
13574
|
-
|
13490
|
+
_inherits$1(Legend, _Element7);
|
13491
|
+
return _createClass$1(Legend, [{
|
13575
13492
|
key: "update",
|
13576
13493
|
value: function update(maxWidth, maxHeight, margins) {
|
13577
13494
|
this.maxWidth = maxWidth;
|
@@ -14008,7 +13925,6 @@
|
|
14008
13925
|
}
|
14009
13926
|
}
|
14010
13927
|
}]);
|
14011
|
-
return Legend;
|
14012
13928
|
}(Element);
|
14013
13929
|
function calculateItemSize(boxWidth, labelFont, ctx, legendItem, _itemHeight) {
|
14014
13930
|
var itemWidth = calculateItemWidth(legendItem, boxWidth, labelFont, ctx);
|
@@ -14156,13 +14072,11 @@
|
|
14156
14072
|
}
|
14157
14073
|
}
|
14158
14074
|
};
|
14159
|
-
var Title = /*#__PURE__*/function (
|
14160
|
-
_inherits$1(Title, _Element7);
|
14161
|
-
var _super17 = _createSuper$1(Title);
|
14075
|
+
var Title = /*#__PURE__*/function (_Element8) {
|
14162
14076
|
function Title(config) {
|
14163
14077
|
var _this30;
|
14164
14078
|
_classCallCheck$1(this, Title);
|
14165
|
-
_this30 =
|
14079
|
+
_this30 = _callSuper(this, Title);
|
14166
14080
|
_this30.chart = config.chart;
|
14167
14081
|
_this30.options = config.options;
|
14168
14082
|
_this30.ctx = config.ctx;
|
@@ -14178,7 +14092,8 @@
|
|
14178
14092
|
_this30.fullSize = undefined;
|
14179
14093
|
return _this30;
|
14180
14094
|
}
|
14181
|
-
|
14095
|
+
_inherits$1(Title, _Element8);
|
14096
|
+
return _createClass$1(Title, [{
|
14182
14097
|
key: "update",
|
14183
14098
|
value: function update(maxWidth, maxHeight) {
|
14184
14099
|
var opts = this.options;
|
@@ -14265,7 +14180,6 @@
|
|
14265
14180
|
});
|
14266
14181
|
}
|
14267
14182
|
}]);
|
14268
|
-
return Title;
|
14269
14183
|
}(Element);
|
14270
14184
|
function createTitle(chart, titleOpts) {
|
14271
14185
|
var title = new Title({
|
@@ -14373,6 +14287,9 @@
|
|
14373
14287
|
++count;
|
14374
14288
|
}
|
14375
14289
|
}
|
14290
|
+
if (count === 0 || xSet.size === 0) {
|
14291
|
+
return false;
|
14292
|
+
}
|
14376
14293
|
var xAverage = _toConsumableArray(xSet).reduce(function (a, b) {
|
14377
14294
|
return a + b;
|
14378
14295
|
}) / xSet.size;
|
@@ -14690,13 +14607,11 @@
|
|
14690
14607
|
}
|
14691
14608
|
return result;
|
14692
14609
|
}
|
14693
|
-
var Tooltip = /*#__PURE__*/function (
|
14694
|
-
_inherits$1(Tooltip, _Element8);
|
14695
|
-
var _super18 = _createSuper$1(Tooltip);
|
14610
|
+
var Tooltip = /*#__PURE__*/function (_Element9) {
|
14696
14611
|
function Tooltip(config) {
|
14697
14612
|
var _this31;
|
14698
14613
|
_classCallCheck$1(this, Tooltip);
|
14699
|
-
_this31 =
|
14614
|
+
_this31 = _callSuper(this, Tooltip);
|
14700
14615
|
_this31.opacity = 0;
|
14701
14616
|
_this31._active = [];
|
14702
14617
|
_this31._eventPosition = undefined;
|
@@ -14726,7 +14641,8 @@
|
|
14726
14641
|
_this31.labelTextColors = undefined;
|
14727
14642
|
return _this31;
|
14728
14643
|
}
|
14729
|
-
|
14644
|
+
_inherits$1(Tooltip, _Element9);
|
14645
|
+
return _createClass$1(Tooltip, [{
|
14730
14646
|
key: "initialize",
|
14731
14647
|
value: function initialize(options) {
|
14732
14648
|
this.options = options;
|
@@ -15323,7 +15239,6 @@
|
|
15323
15239
|
return position !== false && (caretX !== position.x || caretY !== position.y);
|
15324
15240
|
}
|
15325
15241
|
}]);
|
15326
|
-
return Tooltip;
|
15327
15242
|
}(Element);
|
15328
15243
|
_defineProperty$1(Tooltip, "positioners", positioners);
|
15329
15244
|
var plugin_tooltip = {
|
@@ -15489,18 +15404,17 @@
|
|
15489
15404
|
return value;
|
15490
15405
|
}
|
15491
15406
|
var CategoryScale = /*#__PURE__*/function (_Scale) {
|
15492
|
-
_inherits$1(CategoryScale, _Scale);
|
15493
|
-
var _super19 = _createSuper$1(CategoryScale);
|
15494
15407
|
function CategoryScale(cfg) {
|
15495
15408
|
var _this36;
|
15496
15409
|
_classCallCheck$1(this, CategoryScale);
|
15497
|
-
_this36 =
|
15410
|
+
_this36 = _callSuper(this, CategoryScale, [cfg]);
|
15498
15411
|
_this36._startValue = undefined;
|
15499
15412
|
_this36._valueRange = 0;
|
15500
15413
|
_this36._addedLabels = [];
|
15501
15414
|
return _this36;
|
15502
15415
|
}
|
15503
|
-
|
15416
|
+
_inherits$1(CategoryScale, _Scale);
|
15417
|
+
return _createClass$1(CategoryScale, [{
|
15504
15418
|
key: "init",
|
15505
15419
|
value: function init(scaleOptions) {
|
15506
15420
|
var added = this._addedLabels;
|
@@ -15524,7 +15438,7 @@
|
|
15524
15438
|
}
|
15525
15439
|
this._addedLabels = [];
|
15526
15440
|
}
|
15527
|
-
|
15441
|
+
_superPropGet(CategoryScale, "init", this, 3)([scaleOptions]);
|
15528
15442
|
}
|
15529
15443
|
}, {
|
15530
15444
|
key: "parse",
|
@@ -15582,7 +15496,7 @@
|
|
15582
15496
|
}, {
|
15583
15497
|
key: "configure",
|
15584
15498
|
value: function configure() {
|
15585
|
-
|
15499
|
+
_superPropGet(CategoryScale, "configure", this, 3)([]);
|
15586
15500
|
if (!this.isHorizontal()) {
|
15587
15501
|
this._reversePixels = !this._reversePixels;
|
15588
15502
|
}
|
@@ -15615,7 +15529,6 @@
|
|
15615
15529
|
return this.bottom;
|
15616
15530
|
}
|
15617
15531
|
}]);
|
15618
|
-
return CategoryScale;
|
15619
15532
|
}(Scale);
|
15620
15533
|
_defineProperty$1(CategoryScale, "id", 'category');
|
15621
15534
|
_defineProperty$1(CategoryScale, "defaults", {
|
@@ -15738,12 +15651,10 @@
|
|
15738
15651
|
return Math.min(minSpacing / ratio, length);
|
15739
15652
|
}
|
15740
15653
|
var LinearScaleBase = /*#__PURE__*/function (_Scale2) {
|
15741
|
-
_inherits$1(LinearScaleBase, _Scale2);
|
15742
|
-
var _super20 = _createSuper$1(LinearScaleBase);
|
15743
15654
|
function LinearScaleBase(cfg) {
|
15744
15655
|
var _this37;
|
15745
15656
|
_classCallCheck$1(this, LinearScaleBase);
|
15746
|
-
_this37 =
|
15657
|
+
_this37 = _callSuper(this, LinearScaleBase, [cfg]);
|
15747
15658
|
_this37.start = undefined;
|
15748
15659
|
_this37.end = undefined;
|
15749
15660
|
_this37._startValue = undefined;
|
@@ -15751,7 +15662,8 @@
|
|
15751
15662
|
_this37._valueRange = 0;
|
15752
15663
|
return _this37;
|
15753
15664
|
}
|
15754
|
-
|
15665
|
+
_inherits$1(LinearScaleBase, _Scale2);
|
15666
|
+
return _createClass$1(LinearScaleBase, [{
|
15755
15667
|
key: "parse",
|
15756
15668
|
value: function parse(raw, index) {
|
15757
15669
|
if (isNullOrUndef(raw)) {
|
@@ -15864,7 +15776,7 @@
|
|
15864
15776
|
var ticks = this.ticks;
|
15865
15777
|
var start = this.min;
|
15866
15778
|
var end = this.max;
|
15867
|
-
|
15779
|
+
_superPropGet(LinearScaleBase, "configure", this, 3)([]);
|
15868
15780
|
if (this.options.offset && ticks.length) {
|
15869
15781
|
var offset = (end - start) / Math.max(ticks.length - 1, 1) / 2;
|
15870
15782
|
start -= offset;
|
@@ -15880,16 +15792,14 @@
|
|
15880
15792
|
return formatNumber(value, this.chart.options.locale, this.options.ticks.format);
|
15881
15793
|
}
|
15882
15794
|
}]);
|
15883
|
-
return LinearScaleBase;
|
15884
15795
|
}(Scale);
|
15885
15796
|
var LinearScale = /*#__PURE__*/function (_LinearScaleBase) {
|
15886
|
-
_inherits$1(LinearScale, _LinearScaleBase);
|
15887
|
-
var _super21 = _createSuper$1(LinearScale);
|
15888
15797
|
function LinearScale() {
|
15889
15798
|
_classCallCheck$1(this, LinearScale);
|
15890
|
-
return
|
15799
|
+
return _callSuper(this, LinearScale, arguments);
|
15891
15800
|
}
|
15892
|
-
|
15801
|
+
_inherits$1(LinearScale, _LinearScaleBase);
|
15802
|
+
return _createClass$1(LinearScale, [{
|
15893
15803
|
key: "determineDataLimits",
|
15894
15804
|
value: function determineDataLimits() {
|
15895
15805
|
var _this$getMinMax2 = this.getMinMax(true),
|
@@ -15920,7 +15830,6 @@
|
|
15920
15830
|
return this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;
|
15921
15831
|
}
|
15922
15832
|
}]);
|
15923
|
-
return LinearScale;
|
15924
15833
|
}(LinearScaleBase);
|
15925
15834
|
_defineProperty$1(LinearScale, "id", 'linear');
|
15926
15835
|
_defineProperty$1(LinearScale, "defaults", {
|
@@ -15996,19 +15905,18 @@
|
|
15996
15905
|
return ticks;
|
15997
15906
|
}
|
15998
15907
|
var LogarithmicScale = /*#__PURE__*/function (_Scale3) {
|
15999
|
-
_inherits$1(LogarithmicScale, _Scale3);
|
16000
|
-
var _super22 = _createSuper$1(LogarithmicScale);
|
16001
15908
|
function LogarithmicScale(cfg) {
|
16002
15909
|
var _this38;
|
16003
15910
|
_classCallCheck$1(this, LogarithmicScale);
|
16004
|
-
_this38 =
|
15911
|
+
_this38 = _callSuper(this, LogarithmicScale, [cfg]);
|
16005
15912
|
_this38.start = undefined;
|
16006
15913
|
_this38.end = undefined;
|
16007
15914
|
_this38._startValue = undefined;
|
16008
15915
|
_this38._valueRange = 0;
|
16009
15916
|
return _this38;
|
16010
15917
|
}
|
16011
|
-
|
15918
|
+
_inherits$1(LogarithmicScale, _Scale3);
|
15919
|
+
return _createClass$1(LogarithmicScale, [{
|
16012
15920
|
key: "parse",
|
16013
15921
|
value: function parse(raw, index) {
|
16014
15922
|
var value = LinearScaleBase.prototype.parse.apply(this, [raw, index]);
|
@@ -16097,7 +16005,7 @@
|
|
16097
16005
|
key: "configure",
|
16098
16006
|
value: function configure() {
|
16099
16007
|
var start = this.min;
|
16100
|
-
|
16008
|
+
_superPropGet(LogarithmicScale, "configure", this, 3)([]);
|
16101
16009
|
this._startValue = log10(start);
|
16102
16010
|
this._valueRange = log10(this.max) - log10(start);
|
16103
16011
|
}
|
@@ -16119,7 +16027,6 @@
|
|
16119
16027
|
return Math.pow(10, this._startValue + decimal * this._valueRange);
|
16120
16028
|
}
|
16121
16029
|
}]);
|
16122
|
-
return LogarithmicScale;
|
16123
16030
|
}(Scale);
|
16124
16031
|
_defineProperty$1(LogarithmicScale, "id", 'logarithmic');
|
16125
16032
|
_defineProperty$1(LogarithmicScale, "defaults", {
|
@@ -16398,12 +16305,10 @@
|
|
16398
16305
|
});
|
16399
16306
|
}
|
16400
16307
|
var RadialLinearScale = /*#__PURE__*/function (_LinearScaleBase2) {
|
16401
|
-
_inherits$1(RadialLinearScale, _LinearScaleBase2);
|
16402
|
-
var _super23 = _createSuper$1(RadialLinearScale);
|
16403
16308
|
function RadialLinearScale(cfg) {
|
16404
16309
|
var _this39;
|
16405
16310
|
_classCallCheck$1(this, RadialLinearScale);
|
16406
|
-
_this39 =
|
16311
|
+
_this39 = _callSuper(this, RadialLinearScale, [cfg]);
|
16407
16312
|
_this39.xCenter = undefined;
|
16408
16313
|
_this39.yCenter = undefined;
|
16409
16314
|
_this39.drawingArea = undefined;
|
@@ -16411,7 +16316,8 @@
|
|
16411
16316
|
_this39._pointLabelItems = [];
|
16412
16317
|
return _this39;
|
16413
16318
|
}
|
16414
|
-
|
16319
|
+
_inherits$1(RadialLinearScale, _LinearScaleBase2);
|
16320
|
+
return _createClass$1(RadialLinearScale, [{
|
16415
16321
|
key: "setDimensions",
|
16416
16322
|
value: function setDimensions() {
|
16417
16323
|
var padding = this._padding = toPadding(getTickBackdropHeight(this.options) / 2);
|
@@ -16593,7 +16499,7 @@
|
|
16593
16499
|
ctx.strokeStyle = color;
|
16594
16500
|
ctx.setLineDash(optsAtIndex.borderDash);
|
16595
16501
|
ctx.lineDashOffset = optsAtIndex.borderDashOffset;
|
16596
|
-
offset = this.getDistanceFromCenterForValue(opts.
|
16502
|
+
offset = this.getDistanceFromCenterForValue(opts.reverse ? this.min : this.max);
|
16597
16503
|
position = this.getPointPosition(i, offset);
|
16598
16504
|
ctx.beginPath();
|
16599
16505
|
ctx.moveTo(this.xCenter, this.yCenter);
|
@@ -16649,7 +16555,6 @@
|
|
16649
16555
|
key: "drawTitle",
|
16650
16556
|
value: function drawTitle() {}
|
16651
16557
|
}]);
|
16652
|
-
return RadialLinearScale;
|
16653
16558
|
}(LinearScaleBase);
|
16654
16559
|
_defineProperty$1(RadialLinearScale, "id", 'radialLinear');
|
16655
16560
|
_defineProperty$1(RadialLinearScale, "defaults", {
|
@@ -16835,12 +16740,10 @@
|
|
16835
16740
|
return ilen === 0 || !majorUnit ? ticks : setMajorTicks(scale, ticks, map, majorUnit);
|
16836
16741
|
}
|
16837
16742
|
var TimeScale = /*#__PURE__*/function (_Scale4) {
|
16838
|
-
_inherits$1(TimeScale, _Scale4);
|
16839
|
-
var _super24 = _createSuper$1(TimeScale);
|
16840
16743
|
function TimeScale(props) {
|
16841
16744
|
var _this43;
|
16842
16745
|
_classCallCheck$1(this, TimeScale);
|
16843
|
-
_this43 =
|
16746
|
+
_this43 = _callSuper(this, TimeScale, [props]);
|
16844
16747
|
_this43._cache = {
|
16845
16748
|
data: [],
|
16846
16749
|
labels: [],
|
@@ -16853,7 +16756,8 @@
|
|
16853
16756
|
_this43._parseOpts = undefined;
|
16854
16757
|
return _this43;
|
16855
16758
|
}
|
16856
|
-
|
16759
|
+
_inherits$1(TimeScale, _Scale4);
|
16760
|
+
return _createClass$1(TimeScale, [{
|
16857
16761
|
key: "init",
|
16858
16762
|
value: function init(scaleOpts) {
|
16859
16763
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
@@ -16866,7 +16770,7 @@
|
|
16866
16770
|
round: time.round,
|
16867
16771
|
isoWeekday: time.isoWeekday
|
16868
16772
|
};
|
16869
|
-
|
16773
|
+
_superPropGet(TimeScale, "init", this, 3)([scaleOpts]);
|
16870
16774
|
this._normalized = opts.normalized;
|
16871
16775
|
}
|
16872
16776
|
}, {
|
@@ -16880,7 +16784,7 @@
|
|
16880
16784
|
}, {
|
16881
16785
|
key: "beforeLayout",
|
16882
16786
|
value: function beforeLayout() {
|
16883
|
-
|
16787
|
+
_superPropGet(TimeScale, "beforeLayout", this, 3)([]);
|
16884
16788
|
this._cache = {
|
16885
16789
|
data: [],
|
16886
16790
|
labels: [],
|
@@ -17152,7 +17056,6 @@
|
|
17152
17056
|
return _arrayUnique(values.sort(sorter));
|
17153
17057
|
}
|
17154
17058
|
}]);
|
17155
|
-
return TimeScale;
|
17156
17059
|
}(Scale);
|
17157
17060
|
_defineProperty$1(TimeScale, "id", 'time');
|
17158
17061
|
_defineProperty$1(TimeScale, "defaults", {
|
@@ -17206,26 +17109,25 @@
|
|
17206
17109
|
var span = nextSource - prevSource;
|
17207
17110
|
return span ? prevTarget + (nextTarget - prevTarget) * (val - prevSource) / span : prevTarget;
|
17208
17111
|
}
|
17209
|
-
var TimeSeriesScale = /*#__PURE__*/function (
|
17210
|
-
_inherits$1(TimeSeriesScale, _TimeScale);
|
17211
|
-
var _super25 = _createSuper$1(TimeSeriesScale);
|
17112
|
+
var TimeSeriesScale = /*#__PURE__*/function (_TimeScale2) {
|
17212
17113
|
function TimeSeriesScale(props) {
|
17213
17114
|
var _this44;
|
17214
17115
|
_classCallCheck$1(this, TimeSeriesScale);
|
17215
|
-
_this44 =
|
17116
|
+
_this44 = _callSuper(this, TimeSeriesScale, [props]);
|
17216
17117
|
_this44._table = [];
|
17217
17118
|
_this44._minPos = undefined;
|
17218
17119
|
_this44._tableRange = undefined;
|
17219
17120
|
return _this44;
|
17220
17121
|
}
|
17221
|
-
|
17122
|
+
_inherits$1(TimeSeriesScale, _TimeScale2);
|
17123
|
+
return _createClass$1(TimeSeriesScale, [{
|
17222
17124
|
key: "initOffsets",
|
17223
17125
|
value: function initOffsets() {
|
17224
17126
|
var timestamps = this._getTimestampsForTable();
|
17225
17127
|
var table = this._table = this.buildLookupTable(timestamps);
|
17226
17128
|
this._minPos = interpolate(table, this.min);
|
17227
17129
|
this._tableRange = interpolate(table, this.max) - this._minPos;
|
17228
|
-
|
17130
|
+
_superPropGet(TimeSeriesScale, "initOffsets", this, 3)([timestamps]);
|
17229
17131
|
}
|
17230
17132
|
}, {
|
17231
17133
|
key: "buildLookupTable",
|
@@ -17268,7 +17170,7 @@
|
|
17268
17170
|
value: function _generate() {
|
17269
17171
|
var min = this.min;
|
17270
17172
|
var max = this.max;
|
17271
|
-
var timestamps =
|
17173
|
+
var timestamps = _superPropGet(TimeSeriesScale, "getDataTimestamps", this, 3)([]);
|
17272
17174
|
if (!timestamps.includes(min) || !timestamps.length) {
|
17273
17175
|
timestamps.splice(0, 0, min);
|
17274
17176
|
}
|
@@ -17309,7 +17211,6 @@
|
|
17309
17211
|
return interpolate(this._table, decimal * this._tableRange + this._minPos, true);
|
17310
17212
|
}
|
17311
17213
|
}]);
|
17312
|
-
return TimeSeriesScale;
|
17313
17214
|
}(TimeScale);
|
17314
17215
|
_defineProperty$1(TimeSeriesScale, "id", 'timeseries');
|
17315
17216
|
_defineProperty$1(TimeSeriesScale, "defaults", TimeScale.defaults);
|
@@ -20895,201 +20796,166 @@
|
|
20895
20796
|
return target;
|
20896
20797
|
}
|
20897
20798
|
|
20898
|
-
function _arrayLikeToArray(
|
20899
|
-
|
20900
|
-
for (var
|
20901
|
-
return
|
20799
|
+
function _arrayLikeToArray(r, a) {
|
20800
|
+
(null == a || a > r.length) && (a = r.length);
|
20801
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
20802
|
+
return n;
|
20902
20803
|
}
|
20903
20804
|
|
20904
|
-
function _unsupportedIterableToArray(
|
20905
|
-
if (
|
20906
|
-
|
20907
|
-
|
20908
|
-
|
20909
|
-
|
20910
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
20805
|
+
function _unsupportedIterableToArray(r, a) {
|
20806
|
+
if (r) {
|
20807
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
20808
|
+
var t = {}.toString.call(r).slice(8, -1);
|
20809
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
20810
|
+
}
|
20911
20811
|
}
|
20912
20812
|
|
20913
|
-
function _createForOfIteratorHelper(
|
20914
|
-
var
|
20915
|
-
if (!
|
20916
|
-
if (Array.isArray(
|
20917
|
-
|
20918
|
-
var
|
20919
|
-
|
20813
|
+
function _createForOfIteratorHelper(r, e) {
|
20814
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
20815
|
+
if (!t) {
|
20816
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
20817
|
+
t && (r = t);
|
20818
|
+
var _n = 0,
|
20819
|
+
F = function F() {};
|
20920
20820
|
return {
|
20921
20821
|
s: F,
|
20922
20822
|
n: function n() {
|
20923
|
-
|
20924
|
-
done:
|
20925
|
-
}
|
20926
|
-
|
20927
|
-
|
20928
|
-
value: o[i++]
|
20823
|
+
return _n >= r.length ? {
|
20824
|
+
done: !0
|
20825
|
+
} : {
|
20826
|
+
done: !1,
|
20827
|
+
value: r[_n++]
|
20929
20828
|
};
|
20930
20829
|
},
|
20931
|
-
e: function e(
|
20932
|
-
throw
|
20830
|
+
e: function e(r) {
|
20831
|
+
throw r;
|
20933
20832
|
},
|
20934
20833
|
f: F
|
20935
20834
|
};
|
20936
20835
|
}
|
20937
20836
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
20938
20837
|
}
|
20939
|
-
var
|
20940
|
-
|
20941
|
-
|
20838
|
+
var o,
|
20839
|
+
a = !0,
|
20840
|
+
u = !1;
|
20942
20841
|
return {
|
20943
20842
|
s: function s() {
|
20944
|
-
|
20843
|
+
t = t.call(r);
|
20945
20844
|
},
|
20946
20845
|
n: function n() {
|
20947
|
-
var
|
20948
|
-
|
20949
|
-
return step;
|
20846
|
+
var r = t.next();
|
20847
|
+
return a = r.done, r;
|
20950
20848
|
},
|
20951
|
-
e: function e(
|
20952
|
-
|
20953
|
-
err = _e2;
|
20849
|
+
e: function e(r) {
|
20850
|
+
u = !0, o = r;
|
20954
20851
|
},
|
20955
20852
|
f: function f() {
|
20956
20853
|
try {
|
20957
|
-
|
20854
|
+
a || null == t["return"] || t["return"]();
|
20958
20855
|
} finally {
|
20959
|
-
if (
|
20856
|
+
if (u) throw o;
|
20960
20857
|
}
|
20961
20858
|
}
|
20962
20859
|
};
|
20963
20860
|
}
|
20964
20861
|
|
20965
|
-
function _assertThisInitialized(
|
20966
|
-
if (
|
20967
|
-
|
20968
|
-
}
|
20969
|
-
return self;
|
20862
|
+
function _assertThisInitialized(e) {
|
20863
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
20864
|
+
return e;
|
20970
20865
|
}
|
20971
20866
|
|
20972
|
-
function _setPrototypeOf(
|
20973
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
20974
|
-
|
20975
|
-
|
20976
|
-
};
|
20977
|
-
return _setPrototypeOf(o, p);
|
20867
|
+
function _setPrototypeOf(t, e) {
|
20868
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
20869
|
+
return t.__proto__ = e, t;
|
20870
|
+
}, _setPrototypeOf(t, e);
|
20978
20871
|
}
|
20979
20872
|
|
20980
|
-
function _inherits(
|
20981
|
-
if (typeof
|
20982
|
-
|
20983
|
-
}
|
20984
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
20873
|
+
function _inherits(t, e) {
|
20874
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
20875
|
+
t.prototype = Object.create(e && e.prototype, {
|
20985
20876
|
constructor: {
|
20986
|
-
value:
|
20987
|
-
writable:
|
20988
|
-
configurable:
|
20877
|
+
value: t,
|
20878
|
+
writable: !0,
|
20879
|
+
configurable: !0
|
20989
20880
|
}
|
20990
|
-
})
|
20991
|
-
|
20992
|
-
|
20993
|
-
});
|
20994
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
20881
|
+
}), Object.defineProperty(t, "prototype", {
|
20882
|
+
writable: !1
|
20883
|
+
}), e && _setPrototypeOf(t, e);
|
20995
20884
|
}
|
20996
20885
|
|
20997
|
-
function _getPrototypeOf(
|
20998
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
20999
|
-
return
|
21000
|
-
};
|
21001
|
-
return _getPrototypeOf(o);
|
20886
|
+
function _getPrototypeOf(t) {
|
20887
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
20888
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
20889
|
+
}, _getPrototypeOf(t);
|
21002
20890
|
}
|
21003
20891
|
|
21004
20892
|
function _isNativeReflectConstruct() {
|
21005
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
21006
|
-
if (Reflect.construct.sham) return false;
|
21007
|
-
if (typeof Proxy === "function") return true;
|
21008
20893
|
try {
|
21009
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
21010
|
-
|
21011
|
-
|
21012
|
-
return
|
21013
|
-
}
|
20894
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
20895
|
+
} catch (t) {}
|
20896
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
20897
|
+
return !!t;
|
20898
|
+
})();
|
21014
20899
|
}
|
21015
20900
|
|
21016
|
-
function _possibleConstructorReturn(
|
21017
|
-
if (
|
21018
|
-
|
21019
|
-
|
21020
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
21021
|
-
}
|
21022
|
-
return _assertThisInitialized(self);
|
20901
|
+
function _possibleConstructorReturn(t, e) {
|
20902
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
20903
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
20904
|
+
return _assertThisInitialized(t);
|
21023
20905
|
}
|
21024
20906
|
|
21025
|
-
function _createSuper(
|
21026
|
-
var
|
21027
|
-
return function
|
21028
|
-
var
|
21029
|
-
|
21030
|
-
if (
|
21031
|
-
var
|
21032
|
-
|
21033
|
-
} else
|
21034
|
-
|
21035
|
-
}
|
21036
|
-
return _possibleConstructorReturn(this, result);
|
20907
|
+
function _createSuper(t) {
|
20908
|
+
var r = _isNativeReflectConstruct();
|
20909
|
+
return function () {
|
20910
|
+
var e,
|
20911
|
+
o = _getPrototypeOf(t);
|
20912
|
+
if (r) {
|
20913
|
+
var s = _getPrototypeOf(this).constructor;
|
20914
|
+
e = Reflect.construct(o, arguments, s);
|
20915
|
+
} else e = o.apply(this, arguments);
|
20916
|
+
return _possibleConstructorReturn(this, e);
|
21037
20917
|
};
|
21038
20918
|
}
|
21039
20919
|
|
21040
|
-
function _classCallCheck(
|
21041
|
-
if (!(
|
21042
|
-
throw new TypeError("Cannot call a class as a function");
|
21043
|
-
}
|
20920
|
+
function _classCallCheck(a, n) {
|
20921
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
21044
20922
|
}
|
21045
20923
|
|
21046
|
-
function
|
21047
|
-
if (
|
21048
|
-
var
|
21049
|
-
if (
|
21050
|
-
var
|
21051
|
-
if (
|
20924
|
+
function toPrimitive(t, r) {
|
20925
|
+
if ("object" != _typeof(t) || !t) return t;
|
20926
|
+
var e = t[Symbol.toPrimitive];
|
20927
|
+
if (void 0 !== e) {
|
20928
|
+
var i = e.call(t, r || "default");
|
20929
|
+
if ("object" != _typeof(i)) return i;
|
21052
20930
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
21053
20931
|
}
|
21054
|
-
return (
|
20932
|
+
return ("string" === r ? String : Number)(t);
|
21055
20933
|
}
|
21056
20934
|
|
21057
|
-
function
|
21058
|
-
var
|
21059
|
-
return _typeof(
|
20935
|
+
function toPropertyKey(t) {
|
20936
|
+
var i = toPrimitive(t, "string");
|
20937
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
21060
20938
|
}
|
21061
20939
|
|
21062
|
-
function _defineProperties(
|
21063
|
-
for (var
|
21064
|
-
var
|
21065
|
-
|
21066
|
-
|
21067
|
-
|
21068
|
-
|
21069
|
-
|
21070
|
-
|
21071
|
-
|
21072
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
21073
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
21074
|
-
Object.defineProperty(Constructor, "prototype", {
|
21075
|
-
writable: false
|
21076
|
-
});
|
21077
|
-
return Constructor;
|
20940
|
+
function _defineProperties(e, r) {
|
20941
|
+
for (var t = 0; t < r.length; t++) {
|
20942
|
+
var o = r[t];
|
20943
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
20944
|
+
}
|
20945
|
+
}
|
20946
|
+
function _createClass(e, r, t) {
|
20947
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
20948
|
+
writable: !1
|
20949
|
+
}), e;
|
21078
20950
|
}
|
21079
20951
|
|
21080
|
-
function _defineProperty(
|
21081
|
-
|
21082
|
-
|
21083
|
-
|
21084
|
-
|
21085
|
-
|
21086
|
-
|
21087
|
-
writable: true
|
21088
|
-
});
|
21089
|
-
} else {
|
21090
|
-
obj[key] = value;
|
21091
|
-
}
|
21092
|
-
return obj;
|
20952
|
+
function _defineProperty(e, r, t) {
|
20953
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
20954
|
+
value: t,
|
20955
|
+
enumerable: !0,
|
20956
|
+
configurable: !0,
|
20957
|
+
writable: !0
|
20958
|
+
}) : e[r] = t, e;
|
21093
20959
|
}
|
21094
20960
|
|
21095
20961
|
var TIMEZONE_UNIT_PRIORITY = 10;
|